playbook_ui 13.10.0.pre.alpha.play845addswiftkitspage1332 → 13.10.0.pre.alpha.play10481357
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +11 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +8 -4
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.jsx +33 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.md +3 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor_advanced.test.js +47 -0
- data/dist/menu.yml +110 -281
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/pb_doc_helper.rb +1 -12
- data/lib/playbook/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4be354f837930c062c2ca20fb53bbeb46c9eb62f30a8e1719eee358ce16e0f8b
|
4
|
+
data.tar.gz: e0768ac01b6863cfab1a30ea9ab9bfeb41879a0b4500cf6b2ffe09824984f823
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7843c0ec8b259fb4eaea357b2345665a23879952c4093dcf43598d1ee4533f3077ae84a6b7b040243ffcaaf057ab67246406ffab8437bb2ef11741eaf6d579ee
|
7
|
+
data.tar.gz: 7f956d0c0beb74d55e19cab98bceee15ba08fe26591dba9d84bdd2445f9c1dc17e77494874e58e1f25a2fc3d944687bc97e5fd4e49594b5a15f6d58226b23791
|
@@ -4,6 +4,7 @@ import inlineFocus from './inlineFocus'
|
|
4
4
|
import useFocus from './useFocus'
|
5
5
|
import { globalProps, GlobalProps } from '../utilities/globalProps'
|
6
6
|
import { buildAriaProps, buildDataProps, noop } from '../utilities/props'
|
7
|
+
import cn from 'classnames'
|
7
8
|
|
8
9
|
try {
|
9
10
|
const Trix = require('trix')
|
@@ -29,6 +30,7 @@ type Editor = {
|
|
29
30
|
type RichTextEditorProps = {
|
30
31
|
aria?: { [key: string]: string },
|
31
32
|
advancedEditor?: any,
|
33
|
+
advancedEditorToolbar?: boolean,
|
32
34
|
toolbarBottom?: Boolean,
|
33
35
|
children?: React.ReactNode | React.ReactNode[]
|
34
36
|
className?: string,
|
@@ -51,6 +53,7 @@ const RichTextEditor = (props: RichTextEditorProps) => {
|
|
51
53
|
const {
|
52
54
|
aria = {},
|
53
55
|
advancedEditor,
|
56
|
+
advancedEditorToolbar = true,
|
54
57
|
toolbarBottom = false,
|
55
58
|
children,
|
56
59
|
className,
|
@@ -163,8 +166,14 @@ const RichTextEditor = (props: RichTextEditorProps) => {
|
|
163
166
|
>
|
164
167
|
{
|
165
168
|
advancedEditor ? (
|
166
|
-
<div
|
167
|
-
|
169
|
+
<div
|
170
|
+
className={cn("pb_rich_text_editor_advanced_container", {
|
171
|
+
["toolbar-active"]: advancedEditorToolbar,
|
172
|
+
})}
|
173
|
+
>
|
174
|
+
{advancedEditorToolbar && (
|
175
|
+
<EditorToolbar extensions={extensions} editor={advancedEditor}/>
|
176
|
+
)}
|
168
177
|
{ children }
|
169
178
|
</div>
|
170
179
|
) : (
|
@@ -65,9 +65,7 @@
|
|
65
65
|
.ProseMirror {
|
66
66
|
background: $white;
|
67
67
|
border: 1px solid $border_light;
|
68
|
-
border-
|
69
|
-
border-bottom-right-radius: $border_rad_heaviest;
|
70
|
-
border-bottom-left-radius: $border_rad_heaviest;
|
68
|
+
border-radius: $border_rad_heaviest;
|
71
69
|
height: 100%;
|
72
70
|
padding: 1rem 1.5rem 1.5rem 1.5rem;
|
73
71
|
line-height: $lh_loose;
|
@@ -127,7 +125,6 @@
|
|
127
125
|
}
|
128
126
|
&:focus-visible {
|
129
127
|
outline: unset;
|
130
|
-
border-top-color: $primary;
|
131
128
|
@include transition_default;
|
132
129
|
}
|
133
130
|
h1 {
|
@@ -228,4 +225,11 @@
|
|
228
225
|
border-radius: $border_rad_heaviest;
|
229
226
|
transition: box-shadow 0.3s ease-in-out, border-radius 0.3s ease-in-out;
|
230
227
|
}
|
228
|
+
&.toolbar-active {
|
229
|
+
.ProseMirror {
|
230
|
+
border-top: none;
|
231
|
+
border-top-left-radius: initial;
|
232
|
+
border-top-right-radius: initial;
|
233
|
+
}
|
234
|
+
}
|
231
235
|
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { useEditor, EditorContent } from "@tiptap/react";
|
3
|
+
|
4
|
+
import { RichTextEditor } from "../..";
|
5
|
+
|
6
|
+
import Document from "@tiptap/extension-document";
|
7
|
+
import Paragraph from "@tiptap/extension-paragraph";
|
8
|
+
import Text from "@tiptap/extension-text";
|
9
|
+
|
10
|
+
const RichTextEditorToolbarDisabled = (props) => {
|
11
|
+
const editor = useEditor({
|
12
|
+
extensions: [Document, Paragraph, Text],
|
13
|
+
content:
|
14
|
+
"Add your text here. You can format your text, add links, quotes, and bullets.",
|
15
|
+
});
|
16
|
+
if (!editor) {
|
17
|
+
return null;
|
18
|
+
}
|
19
|
+
|
20
|
+
return (
|
21
|
+
<div>
|
22
|
+
<RichTextEditor
|
23
|
+
advancedEditor={editor}
|
24
|
+
advancedEditorToolbar={false}
|
25
|
+
{...props}
|
26
|
+
>
|
27
|
+
<EditorContent editor={editor} />
|
28
|
+
</RichTextEditor>
|
29
|
+
</div>
|
30
|
+
);
|
31
|
+
};
|
32
|
+
|
33
|
+
export default RichTextEditorToolbarDisabled;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
This variant allows you to optionally include the default toolbar.
|
2
|
+
|
3
|
+
The default toolbar relies on [Tiptap's StarterKit](https://tiptap.dev/api/extensions/starter-kit) which might add that are not necessary for your application. Setting the `advancedEditorToobar` to false enables you to instantiate an editor with the minimum requirements.
|
@@ -15,6 +15,7 @@ examples:
|
|
15
15
|
- rich_text_editor_default: Default
|
16
16
|
- rich_text_editor_advanced_default: Advanced Default
|
17
17
|
- rich_text_editor_more_extensions: Advanced (Extra Extensions)
|
18
|
+
- rich_text_editor_toolbar_disabled: Advanced (Toolbar disabled)
|
18
19
|
- rich_text_editor_simple: Simple
|
19
20
|
- rich_text_editor_attributes: Attributes
|
20
21
|
- rich_text_editor_focus: Focus
|
@@ -8,4 +8,5 @@ export { default as RichTextEditorToolbarBottom } from './_rich_text_editor_tool
|
|
8
8
|
export { default as RichTextEditorInline } from './_rich_text_editor_inline.jsx'
|
9
9
|
export { default as RichTextEditorPreview } from './_rich_text_editor_preview.jsx'
|
10
10
|
export { default as RichTextEditorAdvancedDefault } from './_rich_text_editor_advanced_default.jsx'
|
11
|
-
export { default as RichTextEditorMoreExtensions } from './_rich_text_editor_more_extensions.jsx'
|
11
|
+
export { default as RichTextEditorMoreExtensions } from './_rich_text_editor_more_extensions.jsx'
|
12
|
+
export { default as RichTextEditorToolbarDisabled } from './_rich_text_editor_toolbar_disabled.jsx'
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { render } from "../utilities/test-utils";
|
3
|
+
import { useEditor, EditorContent } from "@tiptap/react";
|
4
|
+
import StarterKit from "@tiptap/starter-kit";
|
5
|
+
import Link from "@tiptap/extension-link";
|
6
|
+
|
7
|
+
import RichTextEditor from "./_rich_text_editor";
|
8
|
+
|
9
|
+
const kitClass = "pb_rich_text_editor_advanced_container";
|
10
|
+
|
11
|
+
const EditorTest = (props) => {
|
12
|
+
const editor = useEditor({
|
13
|
+
extensions: [StarterKit, Link],
|
14
|
+
content: "",
|
15
|
+
});
|
16
|
+
|
17
|
+
return (
|
18
|
+
<RichTextEditor
|
19
|
+
advancedEditor={editor}
|
20
|
+
{...props}
|
21
|
+
>
|
22
|
+
<EditorContent editor={editor} />
|
23
|
+
</RichTextEditor>
|
24
|
+
);
|
25
|
+
};
|
26
|
+
|
27
|
+
test("returns namespaced class name", () => {
|
28
|
+
const { container } = render(<EditorTest />);
|
29
|
+
|
30
|
+
expect(container.getElementsByClassName(kitClass).length).toBeGreaterThan(0);
|
31
|
+
});
|
32
|
+
|
33
|
+
test("returns toolbar class name", () => {
|
34
|
+
const { container } = render(<EditorTest />);
|
35
|
+
|
36
|
+
expect(
|
37
|
+
container.getElementsByClassName(`${kitClass} toolbar-active`).length
|
38
|
+
).toBeGreaterThan(0);
|
39
|
+
});
|
40
|
+
|
41
|
+
test("doesn't returns toolbar class name", () => {
|
42
|
+
const { container } = render(<EditorTest advancedEditorToolbar={false} />);
|
43
|
+
|
44
|
+
expect(
|
45
|
+
container.getElementsByClassName(`${kitClass} toolbar-active`).length
|
46
|
+
).toBe(0);
|
47
|
+
});
|
data/dist/menu.yml
CHANGED
@@ -1,282 +1,111 @@
|
|
1
|
-
web: &web ["rails", "react"]
|
2
|
-
all: &all ["rails", "react", "swift"]
|
3
|
-
rails_only: &rails_only ["rails"]
|
4
|
-
react_only: &react_only ["react"]
|
5
|
-
|
6
1
|
kits:
|
7
|
-
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
- name: "icon"
|
118
|
-
components:
|
119
|
-
- name: "icon"
|
120
|
-
platforms: *web
|
121
|
-
- name: "icon_circle"
|
122
|
-
components:
|
123
|
-
- name: "icon_circle"
|
124
|
-
platforms: *web
|
125
|
-
- name: "icon_stat_value"
|
126
|
-
components:
|
127
|
-
- name: "icon_stat_value"
|
128
|
-
platforms: *web
|
129
|
-
- name: "icon_value"
|
130
|
-
components:
|
131
|
-
- name: "icon_value"
|
132
|
-
platforms: *web
|
133
|
-
- name: "image"
|
134
|
-
components:
|
135
|
-
- name: "image"
|
136
|
-
platforms: *web
|
137
|
-
- name: "layouts"
|
138
|
-
components:
|
139
|
-
- name: "flex"
|
140
|
-
platforms: *web
|
141
|
-
- name: "layout"
|
142
|
-
platforms: *web
|
143
|
-
- name: "lightbox"
|
144
|
-
components:
|
145
|
-
- name: "lightbox"
|
146
|
-
platforms: *react_only
|
147
|
-
- name: "list"
|
148
|
-
components:
|
149
|
-
- name: "list"
|
150
|
-
platforms: *web
|
151
|
-
- name: "loading_inline"
|
152
|
-
components:
|
153
|
-
- name: "loading_inline"
|
154
|
-
platforms: *web
|
155
|
-
- name: "map"
|
156
|
-
components:
|
157
|
-
- name: "map"
|
158
|
-
platforms: *react_only
|
159
|
-
- name: "nav"
|
160
|
-
components:
|
161
|
-
- name: "nav"
|
162
|
-
platforms: *web
|
163
|
-
- name: "pagination"
|
164
|
-
components:
|
165
|
-
- name: "pagination"
|
166
|
-
platforms: *rails_only
|
167
|
-
- name: "popover"
|
168
|
-
components:
|
169
|
-
- name: "popover"
|
170
|
-
platforms: *web
|
171
|
-
- name: "progress"
|
172
|
-
components:
|
173
|
-
- name: "progress_pills"
|
174
|
-
platforms: *web
|
175
|
-
- name: "progress_simple"
|
176
|
-
platforms: *web
|
177
|
-
- name: "progress_step"
|
178
|
-
platforms: *web
|
179
|
-
- name: "section_separator"
|
180
|
-
components:
|
181
|
-
- name: "section_separator"
|
182
|
-
platforms: *web
|
183
|
-
- name: "star_rating"
|
184
|
-
components:
|
185
|
-
- name: "star_rating"
|
186
|
-
platforms: *web
|
187
|
-
- name: "table"
|
188
|
-
components:
|
189
|
-
- name: "table"
|
190
|
-
platforms: *web
|
191
|
-
- name: "tags"
|
192
|
-
components:
|
193
|
-
- name: "tags"
|
194
|
-
platforms: *web
|
195
|
-
- name: "badge"
|
196
|
-
platforms: *web
|
197
|
-
- name: "hashtag"
|
198
|
-
platforms: *web
|
199
|
-
- name: "pill"
|
200
|
-
platforms: *all
|
201
|
-
- name: "timeline"
|
202
|
-
components:
|
203
|
-
- name: "timeline"
|
204
|
-
platforms: *web
|
205
|
-
- name: "time_and_date"
|
206
|
-
components:
|
207
|
-
- name: "date"
|
208
|
-
platforms: *web
|
209
|
-
- name: "date_range_inline"
|
210
|
-
platforms: *web
|
211
|
-
- name: "date_range_stacked"
|
212
|
-
platforms: *web
|
213
|
-
- name: "date_stacked"
|
214
|
-
platforms: *web
|
215
|
-
- name: "date_time"
|
216
|
-
platforms: *web
|
217
|
-
- name: "date_time_stacked"
|
218
|
-
platforms: *web
|
219
|
-
- name: "date_year_stacked"
|
220
|
-
platforms: *web
|
221
|
-
- name: "time"
|
222
|
-
platforms: *web
|
223
|
-
- name: "time_range_inline"
|
224
|
-
platforms: *web
|
225
|
-
- name: "time_stacked"
|
226
|
-
platforms: *web
|
227
|
-
- name: "timestamp"
|
228
|
-
platforms: *all
|
229
|
-
- name: "weekday_stacked"
|
230
|
-
platforms: *web
|
231
|
-
- name: "tooltip"
|
232
|
-
components:
|
233
|
-
- name: "tooltip"
|
234
|
-
platforms: *web
|
235
|
-
- name: "typography"
|
236
|
-
components:
|
237
|
-
- name: "body"
|
238
|
-
platforms: *web
|
239
|
-
- name: "caption"
|
240
|
-
platforms: *web
|
241
|
-
- name: "detail"
|
242
|
-
platforms: *web
|
243
|
-
- name: "title"
|
244
|
-
platforms: *web
|
245
|
-
- name: "typography_patterns"
|
246
|
-
components:
|
247
|
-
- name: "contact"
|
248
|
-
platforms: *web
|
249
|
-
- name: "currency"
|
250
|
-
platforms: *web
|
251
|
-
- name: "dashboard_value"
|
252
|
-
platforms: *web
|
253
|
-
- name: "home_address_street"
|
254
|
-
platforms: *web
|
255
|
-
- name: "label_pill"
|
256
|
-
platforms: *web
|
257
|
-
- name: "label_value"
|
258
|
-
platforms: *web
|
259
|
-
- name: "message"
|
260
|
-
platforms: *web
|
261
|
-
- name: "person"
|
262
|
-
platforms: *web
|
263
|
-
- name: "person_contact"
|
264
|
-
platforms: *web
|
265
|
-
- name: "source"
|
266
|
-
platforms: *web
|
267
|
-
- name: "stat_change"
|
268
|
-
platforms: *web
|
269
|
-
- name: "stat_value"
|
270
|
-
platforms: *web
|
271
|
-
- name: "title_count"
|
272
|
-
platforms: *web
|
273
|
-
- name: "title_detail"
|
274
|
-
platforms: *web
|
275
|
-
- name: "user_badge"
|
276
|
-
components:
|
277
|
-
- name: "user_badge"
|
278
|
-
platforms: *web
|
279
|
-
- name: "walkthrough"
|
280
|
-
components:
|
281
|
-
- name: "walkthrough"
|
282
|
-
platforms: *web
|
2
|
+
- avatars:
|
3
|
+
- avatar
|
4
|
+
- avatar_action_button
|
5
|
+
- multiple_users
|
6
|
+
- multiple_users_stacked
|
7
|
+
- user
|
8
|
+
- background
|
9
|
+
- bread_crumbs
|
10
|
+
- buttons:
|
11
|
+
- button
|
12
|
+
- button_toolbar
|
13
|
+
- circle_icon_button
|
14
|
+
- card
|
15
|
+
- collapsible
|
16
|
+
- charts_and_graphs:
|
17
|
+
- bar_graph
|
18
|
+
- circle_chart
|
19
|
+
- distribution_bar
|
20
|
+
- gauge
|
21
|
+
- legend
|
22
|
+
- line_graph
|
23
|
+
- treemap_chart
|
24
|
+
- dialog
|
25
|
+
- filter
|
26
|
+
- fixed_confirmation_toast
|
27
|
+
- forms:
|
28
|
+
- checkbox
|
29
|
+
- date_picker
|
30
|
+
- file_upload
|
31
|
+
- form
|
32
|
+
- form_group
|
33
|
+
- form_pill
|
34
|
+
- multi_level_select
|
35
|
+
- passphrase
|
36
|
+
- phone_number_input
|
37
|
+
- radio
|
38
|
+
- rich_text_editor
|
39
|
+
- select
|
40
|
+
- selectable_card
|
41
|
+
- selectable_card_icon
|
42
|
+
- selectable_icon
|
43
|
+
- selectable_list
|
44
|
+
- text_input
|
45
|
+
- textarea
|
46
|
+
- toggle
|
47
|
+
- typeahead
|
48
|
+
- highlight
|
49
|
+
- icon
|
50
|
+
- icon_circle
|
51
|
+
- icon_stat_value
|
52
|
+
- icon_value
|
53
|
+
- image
|
54
|
+
- layouts:
|
55
|
+
- flex
|
56
|
+
- layout
|
57
|
+
- lightbox
|
58
|
+
- list
|
59
|
+
- loading_inline
|
60
|
+
- map
|
61
|
+
- nav
|
62
|
+
- tags:
|
63
|
+
- badge
|
64
|
+
- hashtag
|
65
|
+
- pill
|
66
|
+
- pagination
|
67
|
+
- popover
|
68
|
+
- progress:
|
69
|
+
- progress_pills
|
70
|
+
- progress_simple
|
71
|
+
- progress_step
|
72
|
+
- section_separator
|
73
|
+
- star_rating
|
74
|
+
- table
|
75
|
+
- timeline
|
76
|
+
- time_and_date:
|
77
|
+
- date
|
78
|
+
- date_range_inline
|
79
|
+
- date_range_stacked
|
80
|
+
- date_stacked
|
81
|
+
- date_time
|
82
|
+
- date_time_stacked
|
83
|
+
- date_year_stacked
|
84
|
+
- time
|
85
|
+
- time_range_inline
|
86
|
+
- time_stacked
|
87
|
+
- timestamp
|
88
|
+
- weekday_stacked
|
89
|
+
- tooltip
|
90
|
+
- typography:
|
91
|
+
- body
|
92
|
+
- caption
|
93
|
+
- detail
|
94
|
+
- title
|
95
|
+
- typography_patterns:
|
96
|
+
- contact
|
97
|
+
- currency
|
98
|
+
- dashboard_value
|
99
|
+
- home_address_street
|
100
|
+
- label_pill
|
101
|
+
- label_value
|
102
|
+
- message
|
103
|
+
- person
|
104
|
+
- person_contact
|
105
|
+
- source
|
106
|
+
- stat_change
|
107
|
+
- stat_value
|
108
|
+
- title_count
|
109
|
+
- title_detail
|
110
|
+
- user_badge
|
111
|
+
- walkthrough
|
data/dist/playbook-rails.js
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
*
|
29
29
|
* http://api.jqueryui.com/category/ui-core/
|
30
30
|
*/
|
31
|
-
var i=/input|select|textarea|button|object|iframe/;function r(t){var e=t.offsetWidth<=0&&t.offsetHeight<=0;if(e&&!t.innerHTML)return!0;try{var n=window.getComputedStyle(t),i=n.getPropertyValue("display");return e?"contents"!==i&&function(t,e){return"visible"!==e.getPropertyValue("overflow")||t.scrollWidth<=0&&t.scrollHeight<=0}(t,n):"none"===i}catch(t){return console.warn("Failed to inspect element style"),!1}}function o(t,e){var n=t.nodeName.toLowerCase();return(i.test(n)&&!t.disabled||"a"===n&&t.href||e)&&function(t){for(var e=t,n=t.getRootNode&&t.getRootNode();e&&e!==document.body;){if(n&&e===n&&(e=n.host.parentNode),r(e))return!1;e=e.parentNode}return!0}(t)}function a(t){var e=t.getAttribute("tabindex");null===e&&(e=void 0);var n=isNaN(e);return(n||e>=0)&&o(t,!n)}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(t){return t.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(t){return t.removeAttribute("aria-hidden")})));s=null},e.log=function(){0},e.assertNodeList=l,e.setElement=function(t){var e=t;if("string"==typeof e&&a.canUseDOM){var n=document.querySelectorAll(e);l(n,e),e=n}return s=e||s},e.validateElement=d,e.hide=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.setAttribute("aria-hidden","true")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.show=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.removeAttribute("aria-hidden")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.documentNotReadyOrSSRTesting=function(){s=null};var i,r=n(167),o=(i=r)&&i.__esModule?i:{default:i},a=n(165);var s=null;function l(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function d(t){var e=t||s;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(t){return console.log(t)})),console.log("end portalOpenInstances ----------")},e.resetState=function(){r=new i};var i=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new i;e.default=r},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(204),l=n.n(s),d=n(2),c=n(4),u=n(12),h=n(23),p=n(178),f=n(176),g=n(177),m=n(9),v=n(63),y=n(14),b=n(135);function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var O=function t(e){var n=e.aria,o=void 0===n?{}:n,s=e.cancelButton,p=e.confirmButton,f=e.className,g=e.data,_=void 0===g?{}:g,O=e.id,w=e.size,C=void 0===w?"md":w,$=e.children,k=e.loading,S=void 0!==k&&k,E=e.fullHeight,j=void 0!==E&&E,A=e.opened,M=e.onCancel,P=void 0===M?function(){}:M,T=e.onConfirm,D=void 0===T?function(){}:T,L=e.onClose,I=void 0===L?function(){}:L,N=e.placement,R=void 0===N?"center":N,F=e.portalClassName,B=e.shouldCloseOnOverlayClick,z=void 0===B||B,W=e.status,H=e.text,U=e.title,Y=e.trigger,G=Object(d.a)(o),X=Object(d.c)(_),V={base:a()("pb_dialog",Object(d.b)("pb_dialog",C,R)),afterOpen:"pb_dialog_after_open",beforeClose:"pb_dialog_before_close"},q={base:"pb_dialog_overlay ".concat(null!==j&&(j?"xl"===C?"full_height_center":"full_height_".concat(R):null)),afterOpen:"pb_dialog_overlay_after_open",beforeClose:"pb_dialog_overlay_before_close"},K=a()(Object(d.b)("pb_dialog_wrapper"),Object(c.c)(e),f),Z=x(Object(i.useState)(!1),2),J=Z[0],Q=Z[1],tt=Y?J:A,et={onClose:Y?function(){Q(!1)}:I};Y&&document.querySelector(Y).addEventListener("click",(function(){Q(!0),document.querySelector("#cancel-button").addEventListener("click",(function(){Q(!1)}))}),{once:!0});var nt={default:{icon:"exclamation-circle",variant:"default",size:"lg"},info:{icon:"info-circle",variant:"default",size:"lg"},caution:{icon:"exclamation-triangle",variant:"yellow",size:"lg"},delete:{icon:"trash-alt",variant:"red",size:"lg"},error:{icon:"times-circle",variant:"red",size:"lg"},success:{icon:"check-circle",variant:"green",size:"lg"}};return r.a.createElement(b.a.Provider,{value:et},r.a.createElement("div",Object.assign({},G,X,{className:K}),r.a.createElement(l.a,{ariaHideApp:!1,className:V,closeTimeoutMS:200,contentLabel:"Minimal Modal Example",id:O,isOpen:tt,onRequestClose:I,overlayClassName:q,portalClassName:F,shouldCloseOnOverlayClick:z},r.a.createElement(r.a.Fragment,null,U&&!W?r.a.createElement(t.Header,null,U):null,!W&&H?r.a.createElement(t.Body,null,H):null,W&&r.a.createElement(t.Body,{className:"dialog_status_text_align",padding:"md"},r.a.createElement(m.a,{align:"center",orientation:"column"},r.a.createElement(v.a,{icon:nt[W].icon,size:nt[W].size,variant:nt[W].variant}),r.a.createElement(y.a,{marginTop:"sm",size:3},U),r.a.createElement(u.a,{marginTop:"xs",text:H}))),s&&p?r.a.createElement(t.Footer,null,r.a.createElement(h.a,{loading:S,onClick:D,htmlType:"button",variant:"primary"},p),r.a.createElement(h.a,{id:"cancel-button",onClick:P,variant:"link",htmlType:"button"},s)):null,$))))};O.Header=p.a,O.Body=g.a,O.Footer=f.a,e.a=O},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(70),l=n.n(s),d=n(26),c=n.n(d),u=n(53),h=n(77),p=n(71),f=n(116),g=n.n(f),m=n(207),v=n.n(m),y=n(8),b=n.n(y),x=n(10),_=n.n(x),O=n(2),w=n(4);function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};e.a=function(t){var e=t.aria,n=void 0===e?{}:e,o=(t.className,t.chartData),s=t.dark,d=void 0!==s&&s,f=t.data,m=void 0===f?{}:f,y=t.disableAnimation,x=void 0!==y&&y,$=t.fullCircle,S=void 0!==$&&$,E=t.height,j=void 0===E?null:E,A=t.id,M=t.max,P=void 0===M?100:M,T=t.min,D=void 0===T?0:T,L=t.prefix,I=void 0===L?"":L,N=t.showLabels,R=void 0!==N&&N,F=t.style,B=void 0===F?"solidgauge":F,z=t.suffix,W=void 0===z?"":z,H=t.title,U=void 0===H?"":H,Y=t.tooltipHtml,G=void 0===Y?'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>':Y,X=t.colors,V=void 0===X?[]:X,q=t.minorTickInterval,K=void 0===q?null:q,Z=t.circumference,J=void 0===Z?S?[0,360]:[-100,100]:Z,Q=k(t,["aria","className","chartData","dark","data","disableAnimation","fullCircle","height","id","max","min","prefix","showLabels","style","suffix","title","tooltipHtml","colors","minorTickInterval","circumference"]),tt=Object(O.a)(n),et=Object(O.c)(m);g()(c.a),v()(c.a);d?c.a.setOptions(h.a):c.a.setOptions(u.a),c.a.setOptions({tooltip:{pointFormat:G,followPointer:!0}});var nt=Object(O.b)({pb_gauge_kit:!0}),it=C(Object(i.useState)({}),2),rt=it[0],ot=it[1];return Object(i.useEffect)((function(){var t=o.map((function(t){return t.y=t.value,delete t.value,t})),e={chart:{events:{load:function(){setTimeout(this.reflow.bind(this),0)}},type:B,height:j},title:{text:U},yAxis:{min:D,max:P,lineWidth:0,tickWidth:0,minorTickInterval:K,tickAmount:2,tickPositions:[D,P],labels:{y:26,enabled:R}},credits:!1,series:[{data:t}],pane:{center:["50%","50%"],size:"90%",startAngle:J[0],endAngle:J[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:void 0!==V&&V.length>0?Object(p.a)(V):u.a.colors,plotOptions:{series:{animation:!x},solidgauge:{borderColor:void 0!==V&&1===V.length?Object(p.a)(V).join():u.a.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:b.a.text_lt_default,enabled:!0,format:'<span class="prefix">'.concat(I,"</span>")+'<span class="fix">{y:,f}</span>'+'<span class="suffix">'.concat(W,"</span>"),style:{fontFamily:_.a.font_family_base,fontWeight:_.a.regular,fontSize:_.a.heading_2},y:-26}}}};ot(Object.assign({},e)),document.querySelector(".prefix")&&(document.querySelectorAll(".prefix").forEach((function(t){t.setAttribute("y","28")})),document.querySelectorAll(".fix").forEach((function(t){return t.setAttribute("y","38")})))}),[o]),r.a.createElement(l.a,{containerProps:Object.assign(Object.assign({className:a()(nt,Object(w.c)(Q)),id:A},tt),et),highcharts:c.a,options:rt})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n(58),r=n(257);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=[0,20],h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,i,d=l(c);function c(){return o(this,c),d.apply(this,arguments)}return e=c,i=[{key:"selector",get:function(){return"[data-pb-popover-kit]"}}],(n=[{key:"moveTooltip",value:function(){document.querySelector("body").appendChild(this.tooltip)}},{key:"connect",value:function(){var t=this;this.moveTooltip(),this.popper=Object(r.a)(this.triggerElement,this.tooltip,{placement:this.position,strategy:"fixed",modifiers:[{name:"offset",options:{offset:this.offset}}]}),this.triggerElement.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.tooltip.classList.contains("show")||t.checkCloseTooltip(),setTimeout((function(){t.toggleTooltip(),t.popper.update()}),0)}))}},{key:"checkCloseTooltip",value:function(){var t=this;document.querySelector("body").addEventListener("click",(function(e){var n=e.target,i=null!==n.closest("#".concat(t.tooltipId)),r=null!==n.closest("#".concat(t.triggerElementId));switch(t.closeOnClick){case"any":(i||!i&&!r)&&t.hideTooltip();break;case"outside":i||r||t.hideTooltip();break;case"inside":i&&t.hideTooltip()}}),!0)}},{key:"hideTooltip",value:function(){this.tooltip.classList.remove("show"),this.tooltip.classList.add("hide")}},{key:"toggleTooltip",value:function(){this.tooltip.classList.toggle("show"),this.tooltip.classList.toggle("hide")}},{key:"triggerElement",get:function(){return this._triggerElement=this._triggerElement||document.querySelector("#".concat(this.triggerElementId))}},{key:"tooltip",get:function(){return this._tooltip=this._tooltip||this.element.querySelector("#".concat(this.tooltipId))}},{key:"position",get:function(){return this.element.dataset.pbPopoverPosition}},{key:"triggerElementId",get:function(){return this.element.dataset.pbPopoverTriggerElementId}},{key:"tooltipId",get:function(){return this.element.dataset.pbPopoverTooltipId}},{key:"offset",get:function(){return"true"===this.element.dataset.pbPopoverOffset?u:[0,0]}},{key:"closeOnClick",get:function(){return this.element.dataset.pbPopoverCloseOnClick}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var i=n(58),r=n(169),o=n(171),a=n(173),s=n(172);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=[0,20],g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(p,t);var e,n,i,h=u(p);function p(){return l(this,p),h.apply(this,arguments)}return e=p,i=[{key:"selector",get:function(){return"[data-pb-tooltip-kit]"}}],(n=[{key:"connect",value:function(){var t=this;this.triggerElements.forEach((function(e){e.addEventListener("mouseenter",(function(){t.mouseenterTimeout=setTimeout((function(){t.showTooltip(e),t.checkCloseTooltip(e)}),250),e.addEventListener("mouseleave",(function(){clearTimeout(t.mouseenterTimeout),setTimeout((function(){t.hideTooltip()}),0)}),{once:!0})}))})),this.tooltip.addEventListener("mouseenter",(function(){clearTimeout(t.mouseenterTimeout)})),this.tooltip.addEventListener("mouseleave",(function(){t.hideTooltip()}))}},{key:"checkCloseTooltip",value:function(t){var e=this;document.querySelector("body").addEventListener("click",(function(n){var i=n.target,r=i.closest("#".concat(e.tooltipId))===e.tooltip;i.closest(e.triggerElementSelector)===t||r?e.checkCloseTooltip(t):e.hideTooltip()}),{once:!0})}},{key:"showTooltip",value:function(t){this.popper=Object(r.a)(t,this.tooltip,{placement:this.position,modifiers:[{name:"offset",options:{offset:f}},{name:"arrow",options:{element:document.querySelector("#".concat(this.tooltipId,"-arrow"))}},o.a,a.a,s.a]}),this.tooltip.classList.add("show")}},{key:"hideTooltip",value:function(){var t=this;this.tooltip.classList.add("fade_out"),setTimeout((function(){t.popper&&(t.popper.destroy(),t.tooltip.classList.remove("show"),t.tooltip.classList.remove("fade_out"))}),250)}},{key:"triggerElements",get:function(){var t;return(t=this.triggerElementId?document.querySelector("#".concat(this.triggerElementId)):this.triggerElementSelector.indexOf("#")>-1?document.querySelector("".concat(this.triggerElementSelector)):document.querySelectorAll("".concat(this.triggerElementSelector)))?(t.length||(t=[t]),this._triggerElements=this._triggerElements||t):(console.error("Tooltip Kit: an invalid or unavailable DOM reference was provided!"),[])}},{key:"tooltip",get:function(){return this._tooltip=this._tooltip||this.element.querySelector("#".concat(this.tooltipId))}},{key:"position",get:function(){return this.element.dataset.pbTooltipPosition}},{key:"triggerElementId",get:function(){return this.element.dataset.pbTooltipTriggerElementId}},{key:"tooltipId",get:function(){return this.element.dataset.pbTooltipTooltipId}},{key:"triggerElementSelector",get:function(){return this.element.dataset.pbTooltipTriggerElementSelector}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),p}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n(58),r=n(22);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,n,i,a=c(u);function u(){return s(this,u),a.apply(this,arguments)}return e=u,i=[{key:"selector",get:function(){return"[data-pb-typeahead-kit]"}}],(n=[{key:"connect",value:function(){var t=this;this.element.addEventListener("keydown",(function(e){return t.handleKeydown(e)})),this.searchInput.addEventListener("focus",(function(){return t.debouncedSearch()})),this.searchInput.addEventListener("input",(function(){return t.debouncedSearch()})),this.resultsElement.addEventListener("click",(function(e){return t.optionSelected(e)}))}},{key:"handleKeydown",value:function(t){"ArrowUp"===t.key?(t.preventDefault(),this.focusPreviousOption()):"ArrowDown"===t.key&&(t.preventDefault(),this.focusNextOption())}},{key:"search",value:function(){var t=this;if(this.searchTerm.length<parseInt(this.searchTermMinimumLength))return this.clearResults();this.toggleResultsLoadingIndicator(!0),this.showResults();var e=this.searchTerm,n=this.searchContext,i={searchingFor:e,searchingContext:n,setResults:function(i){t.resultsCacheUpdate(e,n,i)}};this.element.dispatchEvent(new CustomEvent("pb-typeahead-kit-search",{bubbles:!0,detail:i}))}},{key:"resultsCacheUpdate",value:function(t,e,n){var i=this.cacheKeyFor(t,e);this.resultsOptionCache.has(i)&&this.resultsOptionCache.delete(i),this.resultsOptionCache.size>32&&this.resultsOptionCache.delete(this.resultsOptionCache.keys().next().value),this.resultsOptionCache.set(i,n),this.showResults()}},{key:"resultsCacheClear",value:function(){this.resultsOptionCache.clear()}},{key:"debouncedSearch",get:function(){return this._debouncedSearch=this._debouncedSearch||Object(r.debounce)(this.search,parseInt(this.searchDebounceTimeout)).bind(this)}},{key:"showResults",value:function(){var t=this;if(this.resultsOptionCache.has(this.searchTermAndContext)){this.toggleResultsLoadingIndicator(!1),this.clearResults();var e,n=o(this.resultsOptionCache.get(this.searchTermAndContext));try{for(n.s();!(e=n.n()).done;){var i=e.value;this.resultsElement.appendChild(this.newResultOption(i.cloneNode(!0)))}}catch(t){n.e(t)}finally{n.f()}var r,a=o(this.resultsElement.querySelectorAll("[data-result-option-item]"));try{for(a.s();!(r=a.n()).done;)r.value.addEventListener("mousedown",(function(e){return t.optionSelected(e)}))}catch(t){a.e(t)}finally{a.f()}}}},{key:"optionSelected",value:function(t){var e=t.target.closest("[data-result-option-item]");e&&(this.resultsCacheClear(),this.searchInputClear(),this.clearResults(),this.element.dispatchEvent(new CustomEvent("pb-typeahead-kit-result-option-selected",{bubbles:!0,detail:{selected:e,typeahead:this}})))}},{key:"clearResults",value:function(){this.resultsElement.innerHTML=""}},{key:"newResultOption",value:function(t){var e=this.resultOptionTemplate.content.cloneNode(!0);return e.querySelector('slot[name="content"]').replaceWith(t),e}},{key:"focusPreviousOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)-1;(this.resultOptionItems[t]||this.resultOptionItems[this.resultOptionItems.length-1]).focus()}},{key:"focusNextOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)+1;(this.resultOptionItems[t]||this.resultOptionItems[0]).focus()}},{key:"resultOptionItems",get:function(){return Array.from(this.resultsElement.querySelectorAll("[data-result-option-item]"))}},{key:"currentSelectedResultOptionItem",get:function(){return document.activeElement.closest("[data-result-option-item]")}},{key:"searchInput",get:function(){return this._searchInput=this._searchInput||this.element.querySelector('input[type="search"]')}},{key:"searchTerm",get:function(){return this.searchInput.value}},{key:"searchContext",get:function(){if(this._searchContext)return this._searchContext;var t=this.element.dataset.searchContextValueSelector;return t?(this.element.parentNode.querySelector(t)||this.element.closest(t)).value:null},set:function(t){this._searchContext=t}},{key:"searchTermAndContext",get:function(){return this.cacheKeyFor(this.searchTerm,this.searchContext)}},{key:"cacheKeyFor",value:function(t,e){return[t,JSON.stringify(e)].join()}},{key:"searchInputClear",value:function(){this.searchInput.value=""}},{key:"searchTermMinimumLength",get:function(){return this.element.dataset.pbTypeaheadKitSearchTermMinimumLength}},{key:"searchDebounceTimeout",get:function(){return this.element.dataset.pbTypeaheadKitSearchDebounceTimeout}},{key:"resultsElement",get:function(){return this._resultsElement=this._resultsElement||this.element.querySelector("[data-pb-typeahead-kit-results]")}},{key:"resultOptionTemplate",get:function(){return this._resultOptionTemplate=this._resultOptionTemplate||this.element.querySelector("template[data-pb-typeahead-kit-result-option]")}},{key:"resultsOptionCache",get:function(){return this._resultsOptionCache=this._resultsOptionCache||new Map}},{key:"resultsLoadingIndicator",get:function(){return this._resultsLoadingIndicator=this._resultsLoadingIndicator||this.element.querySelector("[data-pb-typeahead-kit-loading-indicator]")}},{key:"toggleResultsLoadingIndicator",value:function(t){var e="0";t&&(e="1"),this.resultsLoadingIndicator.style.opacity=e}}])&&l(e.prototype,n),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.a)},function(t,e,n){"use strict";e.a=function(){var t=document.querySelectorAll("[data-open-dialog]"),e=document.querySelectorAll("[data-close-dialog]"),n=document.querySelectorAll(".pb_dialog_rails");t.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.openDialog,n=document.getElementById(e);n.open||n.showModal()}))})),e.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.closeDialog;document.getElementById(e).close()}))})),n.forEach((function(t){t.addEventListener("mousedown",(function(e){if("overlay_close"!==t.parentElement.dataset.overlayClick){var n=e.target.getBoundingClientRect();(e.clientX<n.left||e.clientX>n.right||e.clientY<n.top||e.clientY>n.bottom)&&(t.close(),e.stopPropagation())}}))}))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=function(){var t=event.target.closest(".pb_rich_text_editor_kit");t.classList.contains("inline")&&t.classList.toggle("focused")},l=function(){document.querySelectorAll(".focus-editor-targets trix-editor").forEach((function(t){var e=t.toolbarElement;t==document.activeElement?(t.classList.add("focused-editor"),e.style.display="block"):e.contains(document.activeElement)||(t.classList.remove("focused-editor"),e.style.display="none")}))},d=n(4),c=n(2),u=n(209),h=n(110),p=n(9),f=n(15),g=n(55),m=n(7),v=n(160),y=function(t){var e=t.classname,n=t.disable,i=t.onclick,o=t.icon,a=t.text;return r.a.createElement(v.a,{delay:{open:2e3},interaction:!0,placement:"top",text:a},r.a.createElement("button",{className:e,disabled:n,onClick:i,role:"button",type:"button"},r.a.createElement(p.a,{align:"center",className:"toolbar_button_icon",justify:"center"},r.a.createElement(m.a,{icon:o,size:"lg"}))))},b=n(76),x=n(23),_=n(48),O=n(24);function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var $=function(t){for(var e=t.editor,n=w(Object(i.useState)(!1),2),o=n[0],a=n[1],s=[{node:"paragraph",icon:"paragraph",isActive:e.isActive("paragraph"),text:"Paragraph",onclick:function(){return e.chain().focus().setParagraph().run()}},{node:"heading-1",icon:"h1",isActive:e.isActive("heading",{level:1}),text:"Heading 1",onclick:function(){return e.chain().focus().toggleHeading({level:1}).run()}},{node:"heading-2",icon:"h2",isActive:e.isActive("heading",{level:2}),text:"Heading 2",onclick:function(){return e.chain().focus().toggleHeading({level:2}).run()}},{node:"heading-3",icon:"h3",isActive:e.isActive("heading",{level:3}),text:"Heading 3",onclick:function(){return e.chain().focus().toggleHeading({level:3}).run()}},{node:"bulletList",icon:"list",isActive:e.isActive("bulletList"),text:"Bullet List",onclick:function(){return e.chain().focus().toggleBulletList().run()}},{node:"orderedList",icon:"list-ol",isActive:e.isActive("orderedList"),text:"Ordered List",onclick:function(){return e.chain().focus().toggleOrderedList().run()}},{node:"blockquote",icon:"block-quote",isActive:e.isActive("blockquote"),text:"Block Quote",onclick:function(){return e.chain().focus().toggleBlockquote().run()}}],l=0,d=[],c=0,u=s;c<u.length;c++){var h=u[c],f=h.text,g=h.isActive,v=h.icon;g&&(l++,d.push(r.a.createElement(p.a,{align:"center",key:v,gap:"xs"},r.a.createElement(m.a,{icon:v,size:"lg"}),r.a.createElement("div",null,f),r.a.createElement(p.a,{className:o?"fa-flip-vertical":"",display:"inline_flex"},r.a.createElement(m.a,{fixedWidth:!0,icon:"angle-down","margin-left":"xs"})))))}var y=r.a.createElement(x.a,{className:"editor-dropdown-button",onClick:function(){a(!0)},variant:"secondary"},2===l?d[1]:1===l?d[0]||null:r.a.createElement(p.a,{align:"center",key:"paragraph",gap:"xs"},r.a.createElement(m.a,{icon:"paragraph",size:"lg"}),r.a.createElement("div",null,"Paragraph"),r.a.createElement(p.a,{className:o?"fa-flip-vertical":"",display:"inline_flex"},r.a.createElement(m.a,{fixedWidth:!0,icon:"angle-down","margin-left":"xs"}))));return r.a.createElement(b.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:y,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingTop:"xs",paddingBottom:"xs",variant:"subtle"},s.map((function(t,e){var n=t.icon,i=t.text,o=t.onclick,s=t.isActive;return r.a.createElement(O.a,{cursor:"pointer",className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},text:i,paddingTop:"xxs",paddingBottom:"xxs"})}))))},k=function(t){var e=t.editor,n=Object(i.useCallback)((function(){var t=e.getAttributes("link").href,n=window.prompt("URL",t);null!==n&&(""!==n?e.chain().focus().extendMarkRange("link").setLink({href:n}).run():e.chain().focus().extendMarkRange("link").unsetLink().run())}),[e]),o=[{onclick:function(){return e.chain().focus().toggleCodeBlock().run()},icon:"code",isActive:e.isActive("codeBlock"),text:"Codeblock"},{onclick:n,icon:"link",isActive:e.isActive("link"),text:"Link"}];return r.a.createElement(r.a.Fragment,null,o.map((function(t,e){var n=t.onclick,i=t.icon,o=t.text,a=t.isActive;return r.a.createElement(y,{classname:"toolbar_button ".concat(a?"is-active":""),onclick:n,icon:i,key:e,text:o})})))},S=function(t){var e=t.editor,n=[{classname:"toolbar_button",icon:"undo",text:"Undo",onclick:function(){return e.chain().focus().undo().run()},disable:!e.can().chain().focus().undo().run()},{classname:"toolbar_button",icon:"redo",text:"Redo",onclick:function(){return e.chain().focus().redo().run()},disable:!e.can().chain().focus().redo().run()}];return r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{displayFlex:!0},n.map((function(t,e){var n=t.onclick,i=t.classname,o=t.disable,a=t.icon,s=t.text;return r.a.createElement(y,{classname:i,onclick:n,disable:o,icon:a,key:e,text:s})}))))};function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var A=function(t){var e=t.extensions,n=E(Object(i.useState)(!1),2),o=n[0],a=n[1],s=r.a.createElement("button",{className:"toolbar_button",onClick:function(){a(!0)},role:"button",type:"button"},r.a.createElement(p.a,{align:"center",className:"toolbar_button_icon",justify:"center"},r.a.createElement(m.a,{icon:"ellipsis",size:"lg"})));return r.a.createElement(b.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:s,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingTop:e.length>1?"xs":"none",paddingBottom:e.length>1?"xs":"none",variant:"subtle"},e&&e.map((function(t,e){var n=t.icon,i=t.text,o=t.onclick,s=t.isActive;return r.a.createElement(O.a,{cursor:"pointer",className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},text:i,paddingTop:"xxs",paddingBottom:"xxs"})}))))},M=function(t){var e=t.editor,n=t.extensions,i=[{icon:"bold",text:"Bold",classname:"toolbar_button ".concat(e.isActive("bold")?"is-active":""),onclick:function(){return e.chain().focus().toggleBold().run()}},{icon:"italic",text:"Italic",classname:"toolbar_button ".concat(e.isActive("italic")?"is-active":""),onclick:function(){return e.chain().focus().toggleItalic().run()}},{icon:"strikethrough",text:"Strikethrough",classname:"toolbar_button ".concat(e.isActive("strike")?"is-active":""),onclick:function(){return e.chain().focus().toggleStrike().run()}}];return r.a.createElement(h.a,{backgroundColor:"white",className:"toolbar"},r.a.createElement(p.a,{flex:"0",justify:"between",paddingX:"sm",paddingY:"xxs"},r.a.createElement(f.a,{className:"toolbar_block",displayFlex:!0},r.a.createElement($,{editor:e}),r.a.createElement(g.a,{orientation:"vertical"}),i&&i.map((function(t,e){var n=t.icon,i=t.text,o=t.classname,a=t.onclick;return r.a.createElement(y,{classname:o,icon:n,key:e,text:i,onclick:a})})),r.a.createElement(g.a,{orientation:"vertical"}),r.a.createElement(k,{editor:e}),n&&r.a.createElement(r.a.Fragment,null,r.a.createElement(A,{extensions:n}))),r.a.createElement(S,{editor:e})))};function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}try{n(250).config.textAttributes.inlineCode={tagName:"code",inheritable:!0}}catch(t){}e.a=function(t){var e=t.aria,n=void 0===e?{}:e,o=t.advancedEditor,h=t.toolbarBottom,p=void 0!==h&&h,f=t.children,g=t.className,m=t.data,v=void 0===m?{}:m,y=t.focus,b=void 0!==y&&y,x=t.inline,_=void 0!==x&&x,O=t.extensions,w=t.name,C=t.onChange,$=void 0===C?c.d:C,k=t.placeholder,S=t.simple,E=void 0!==S&&S,j=t.sticky,A=void 0!==j&&j,T=t.template,D=void 0===T?"":T,L=t.value,I=void 0===L?"":L,N=t.maxWidth,R=void 0===N?"md":N,F=Object(c.a)(n),B=Object(c.c)(v),z=P(Object(i.useState)(),2),W=z[0],H=z[1],U=null==W?void 0:W.element;if(W){var Y=U.parentElement.querySelector("trix-toolbar"),G=Y.querySelector("[data-trix-attribute=code]"),X=Y.querySelector("[data-trix-attribute=inlineCode]");X||(X=G.cloneNode(!0)),X.dataset.trixAttribute="inlineCode",G.insertAdjacentElement("afterend",X),p&&W.element.after(Y);U.addEventListener("trix-selection-change",(function(){var t=function(){if(W.attributeIsActive("code"))return"block";if(W.attributeIsActive("inlineCode"))return"inline";var t=W.getSelectedRange();if(t[0]==t[1])return"block";var e=W.getSelectedDocument().toString().trim();return/\n/.test(e)?"block":"inline"}();G.hidden="inline"==t,X.hidden="block"==t})),b&&(document.addEventListener("trix-focus",l),document.addEventListener("trix-blur",l),l()),document.addEventListener("trix-focus",s),document.addEventListener("trix-blur",s)}Object(i.useEffect)((function(){W&&D&&(W.loadHTML(""),W.setSelectedRange([0,0]),W.insertHTML(D))}),[W,D]),Object(i.useEffect)((function(){U&&U.addEventListener("click",(function(t){var e=t.target;if(e.closest(".pb_rich_text_editor_kit")){var n=e.closest("a");n&&n.hasAttribute("href")&&window.open(n.href)}}))}),[U]);var V=E?"simple":"",q=b?"focus-editor-targets":"",K=A?"sticky":"",Z=_?"inline":"",J=p?"toolbar-bottom":"",Q=a()(Object(d.c)(t,{maxWidth:R}),g);return Q=a()("pb_rich_text_editor_kit",V,q,K,Z,J,Q),r.a.createElement("div",Object.assign({},F,B,{className:Q}),o?r.a.createElement("div",{className:"pb_rich_text_editor_advanced_container"},r.a.createElement(M,{extensions:O,editor:o}),f):r.a.createElement(u.TrixEditor,{className:"",fileParamName:w,mergeTags:[],onChange:$,onEditorReady:function(t){return H(t)},placeholder:k,value:I}))}},function(t,e,n){"use strict";var i,r=n(0),o=n.n(r),a=n(3),s=n.n(a),l=n(208),d=n.n(l),c=(n(242),n(249),n(2)),u=n(4),h=n(41),p=function(t){return Object.keys(t).length<1};function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}!function(t){t[t.TooShort=2]="TooShort",t[t.TooLong=3]="TooLong",t[t.MissingAreaCode=4]="MissingAreaCode",t[t.SomethingWentWrong=-99]="SomethingWentWrong"}(i||(i={}));var m=function(){for(var t=window.intlTelInputGlobals.getCountryData(),e=0;e<t.length;e++){var n=t[e];n.name=n.name.split("(")[0].trim()}};m();var v=function(t,e){var n=t.aria,a=void 0===n?{}:n,l=t.className,g=t.dark,v=void 0!==g&&g,y=t.data,b=void 0===y?{}:y,x=t.disabled,_=void 0!==x&&x,O=t.id,w=void 0===O?"":O,C=t.initialCountry,$=void 0===C?"":C,k=t.isValid,S=void 0===k?function(){}:k,E=t.label,j=void 0===E?"":E,A=t.name,M=void 0===A?"":A,P=t.onChange,T=void 0===P?function(){}:P,D=t.onValidate,L=void 0===D?function(){return null}:D,I=t.onlyCountries,N=void 0===I?[]:I,R=t.required,F=void 0!==R&&R,B=t.preferredCountries,z=void 0===B?[]:B,W=t.value,H=void 0===W?"":W,U=Object(c.a)(a),Y=Object(c.c)(b),G=s()(Object(c.b)("pb_phone_number_input"),Object(u.c)(t),l),X=Object(r.useRef)(),V=f(Object(r.useState)(H),2),q=V[0],K=V[1],Z=f(Object(r.useState)(),2),J=Z[0],Q=Z[1],tt=f(Object(r.useState)(t.error),2),et=tt[0],nt=tt[1],it=f(Object(r.useState)(!1),2),rt=it[0],ot=it[1],at=f(Object(r.useState)(),2),st=at[0],lt=at[1];Object(r.useEffect)((function(){(null==et?void 0:et.length)>0?L(!1):L(!0)}),[et,L]),Object(r.useImperativeHandle)(e,(function(){return{clearField:function(){K(""),nt("")},inputNode:function(){return X.current}}}));var dt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=J.getSelectedCountryData().name,n=t.length>0?" (".concat(t,")"):"";return nt("Invalid ".concat(e," phone number").concat(n)),!0},ct=function(){J&&S(J.isValidNumber()),function(t){if(t)return q&&!function(t){return/^[()+\-\ .\d]*$/g.test(t)}(q)?dt("enter numbers only"):void 0}(J)||function(t){if(t)return t.getValidationError()===i.TooLong?dt("too long"):void nt("")}(J)||function(t){if(t)return t.getValidationError()===i.TooShort||1===q.length?dt("too short"):void nt("")}(J)||function(t){if(F&&t)return t.getValidationError()===i.SomethingWentWrong?1===q.length?dt("too short"):0===q.length?(nt("Missing phone number"),!0):dt():void 0}(J)||function(t){if(F&&t)t.getValidationError()===i.MissingAreaCode&&dt("missing area code")}(J)},ut=function(t,e){return Object.assign(Object.assign({},t.getSelectedCountryData()),{number:e})};Object(r.useEffect)(m,[]),Object(r.useEffect)((function(){var t=d()(X.current,{separateDialCode:!0,preferredCountries:z,allowDropdown:!_,autoInsertDialCode:!1,initialCountry:$,onlyCountries:N});X.current.addEventListener("countrychange",(function(e){var n=ut(t,e.target.value);lt(n),T(n),ct()})),X.current.addEventListener("open:countrydropdown",(function(){return ot(!0)})),X.current.addEventListener("close:countrydropdown",(function(){return ot(!1)})),Q(t)}),[]);var ht={className:rt?"dropdown_open":"",dark:v,"data-phone-number":JSON.stringify(st),disabled:_,error:et,type:"tel",id:w,label:j,name:M,onBlur:ct,onChange:function(t){K(t.target.value);var e=ut(J,t.target.value);lt(e),T(e),S(J.isValidNumber())},value:q},pt={className:G};return p(a)||(ht=Object.assign(Object.assign({},ht),U)),p(b)||(pt=Object.assign(Object.assign({},pt),Y)),F&&(ht.required=!0),o.a.createElement("div",Object.assign({},pt),o.a.createElement(h.a,Object.assign({ref:function(t){e&&(e.current=t),X.current=t}},ht)))};e.a=Object(r.forwardRef)(v)},,function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(2),o=(i=r)&&i.__esModule?i:{default:i};e.default=o.default,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function r(t){return t&&t.__esModule?t:{default:t}}e.default=d;var o=n(3),a=r(n(4)),s=n(14),l=r(n(15));function d(t){var e=t.activeClassName,n=void 0===e?"":e,r=t.activeIndex,a=void 0===r?-1:r,d=t.activeStyle,c=t.autoEscape,u=t.caseSensitive,h=void 0!==u&&u,p=t.className,f=t.findChunks,g=t.highlightClassName,m=void 0===g?"":g,v=t.highlightStyle,y=void 0===v?{}:v,b=t.highlightTag,x=void 0===b?"mark":b,_=t.sanitize,O=t.searchWords,w=t.textToHighlight,C=t.unhighlightTag,$=void 0===C?"span":C,k=t.unhighlightClassName,S=void 0===k?"":k,E=t.unhighlightStyle,j=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),A=(0,o.findAll)({autoEscape:c,caseSensitive:h,findChunks:f,sanitize:_,searchWords:O,textToHighlight:w}),M=x,P=-1,T="",D=void 0,L=(0,l.default)((function(t){var e={};for(var n in t)e[n.toLowerCase()]=t[n];return e}));return(0,s.createElement)("span",i({className:p},j,{children:A.map((function(t,e){var i=w.substr(t.start,t.end-t.start);if(t.highlight){P++;var r=void 0;r="object"==typeof m?h?m[i]:(m=L(m))[i.toLowerCase()]:m;var o=P===+a;T=r+" "+(o?n:""),D=!0===o&&null!=d?Object.assign({},y,d):y;var l={children:i,className:T,key:e,style:D};return"string"!=typeof M&&(l.highlightIndex=P),(0,s.createElement)(M,l)}return(0,s.createElement)($,{children:i,className:S,key:e,style:E})}))}))}d.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},t.exports=e.default},function(t,e){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);Object.defineProperty(e,"combineChunks",{enumerable:!0,get:function(){return i.combineChunks}}),Object.defineProperty(e,"fillInChunks",{enumerable:!0,get:function(){return i.fillInChunks}}),Object.defineProperty(e,"findAll",{enumerable:!0,get:function(){return i.findAll}}),Object.defineProperty(e,"findChunks",{enumerable:!0,get:function(){return i.findChunks}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAll=function(t){var e=t.autoEscape,o=t.caseSensitive,a=void 0!==o&&o,s=t.findChunks,l=void 0===s?i:s,d=t.sanitize,c=t.searchWords,u=t.textToHighlight;return r({chunksToHighlight:n({chunks:l({autoEscape:e,caseSensitive:a,sanitize:d,searchWords:c,textToHighlight:u})}),totalLength:u?u.length:0})};var n=e.combineChunks=function(t){var e=t.chunks;return e=e.sort((function(t,e){return t.start-e.start})).reduce((function(t,e){if(0===t.length)return[e];var n=t.pop();if(e.start<=n.end){var i=Math.max(n.end,e.end);t.push({start:n.start,end:i})}else t.push(n,e);return t}),[])},i=function(t){var e=t.autoEscape,n=t.caseSensitive,i=t.sanitize,r=void 0===i?o:i,a=t.searchWords,s=t.textToHighlight;return s=r(s),a.filter((function(t){return t})).reduce((function(t,i){i=r(i),e&&(i=i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(i,n?"g":"gi"),a=void 0;a=o.exec(s);){var l=a.index,d=o.lastIndex;d>l&&t.push({start:l,end:d}),a.index==o.lastIndex&&o.lastIndex++}return t}),[])};e.findChunks=i;var r=e.fillInChunks=function(t){var e=t.chunksToHighlight,n=t.totalLength,i=[],r=function(t,e,n){e-t>0&&i.push({start:t,end:e,highlight:n})};if(0===e.length)r(0,n,!1);else{var o=0;e.forEach((function(t){r(o,t.start,!1),r(t.start,t.end,!0),o=t.end})),r(o,n,!1)}return i};function o(t){return t}}])},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n(6)((function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}),!0)}else t.exports=n(13)()}).call(e,n(5))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,d=[],c=!1,u=-1;function h(){c&&l&&(c=!1,l.length?d=l.concat(d):u=-1,d.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=d.length;e;){for(l=d,d=[];++u<e;)l&&l[u].run();u=-1,e=d.length}l=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new f(t,e)),1!==d.length||c||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";var i=n(7),r=n(8),o=n(9),a=n(10),s=n(11),l=n(12);t.exports=function(t,n){var d="function"==typeof Symbol&&Symbol.iterator;var c={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:p(i.thatReturnsNull),arrayOf:function(t){return p((function(e,n,i,r,o){if("function"!=typeof t)return new h("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a))return new h("Invalid "+r+" `"+o+"` of type `"+m(a)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<a.length;l++){var d=t(a,l,i,r,o+"["+l+"]",s);if(d instanceof Error)return d}return null}))},element:p((function(e,n,i,r,o){var a=e[n];return t(a)?null:new h("Invalid "+r+" `"+o+"` of type `"+m(a)+"` supplied to `"+i+"`, expected a single ReactElement.")})),instanceOf:function(t){return p((function(e,n,i,r,o){if(!(e[n]instanceof t)){var a=t.name||"<<anonymous>>";return new h("Invalid "+r+" `"+o+"` of type `"+function(t){if(!t.constructor||!t.constructor.name)return"<<anonymous>>";return t.constructor.name}(e[n])+"` supplied to `"+i+"`, expected instance of `"+a+"`.")}return null}))},node:p((function(t,e,n,i,r){return g(t[e])?null:new h("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return p((function(e,n,i,r,o){if("function"!=typeof t)return new h("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var a=e[n],l=m(a);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var d in a)if(a.hasOwnProperty(d)){var c=t(a,d,i,r,o+"."+d,s);if(c instanceof Error)return c}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;return p((function(e,n,i,r,o){for(var a=e[n],s=0;s<t.length;s++)if(u(a,t[s]))return null;return new h("Invalid "+r+" `"+o+"` of value `"+a+"` supplied to `"+i+"`, expected one of "+JSON.stringify(t)+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<t.length;n++){var r=t[n];if("function"!=typeof r)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",y(r),n),i.thatReturnsNull}return p((function(e,n,i,r,o){for(var a=0;a<t.length;a++){if(null==(0,t[a])(e,n,i,r,o,s))return null}return new h("Invalid "+r+" `"+o+"` supplied to `"+i+"`.")}))},shape:function(t){return p((function(e,n,i,r,o){var a=e[n],l=m(a);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var d in t){var c=t[d];if(c){var u=c(a,d,i,r,o+"."+d,s);if(u)return u}}return null}))},exact:function(t){return p((function(e,n,i,r,o){var l=e[n],d=m(l);if("object"!==d)return new h("Invalid "+r+" `"+o+"` of type `"+d+"` supplied to `"+i+"`, expected `object`.");var c=a({},e[n],t);for(var u in c){var p=t[u];if(!p)return new h("Invalid "+r+" `"+o+"` key `"+u+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,u,i,r,o+"."+u,s);if(f)return f}return null}))}};function u(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){this.message=t,this.stack=""}function p(t){if("production"!==e.env.NODE_ENV)var i={},a=0;function l(l,d,c,u,p,f,g){if(u=u||"<<anonymous>>",f=f||c,g!==s)if(n)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var m=u+":"+c;!i[m]&&a<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,u),i[m]=!0,a++)}return null==d[c]?l?null===d[c]?new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(d,c,u,p,f)}var d=l.bind(null,!1);return d.isRequired=l.bind(null,!0),d}function f(t){return p((function(e,n,i,r,o,a){var s=e[n];return m(s)!==t?new h("Invalid "+r+" `"+o+"` of type `"+v(s)+"` supplied to `"+i+"`, expected `"+t+"`."):null}))}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||t(e))return!0;var n=function(t){var e=t&&(d&&t[d]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!n)return!1;var i,r=n.call(e);if(n!==e.entries){for(;!(i=r.next()).done;)if(!g(i.value))return!1}else for(;!(i=r.next()).done;){var o=i.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function m(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function v(t){if(null==t)return""+t;var e=m(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function y(t){var e=v(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,c.checkPropTypes=l,c.PropTypes=c,c}}).call(e,n(5))},function(t,e){"use strict";function n(t){return function(){return t}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,n){(function(e){"use strict";var n=function(t){};"production"!==e.env.NODE_ENV&&(n=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=function(t,e,i,r,o,a,s,l){if(n(e),!t){var d;if(void 0===e)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,r,o,a,s,l],u=0;(d=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw d.framesToPop=1,d}}}).call(e,n(5))},function(t,e,n){(function(e){"use strict";var i=n(7);if("production"!==e.env.NODE_ENV){var r=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=0,o="Warning: "+t.replace(/%s/g,(function(){return n[r++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(t){}};i=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];r.apply(void 0,[e].concat(i))}}}t.exports=i}).call(e,n(5))},function(t,e){
|
31
|
+
var i=/input|select|textarea|button|object|iframe/;function r(t){var e=t.offsetWidth<=0&&t.offsetHeight<=0;if(e&&!t.innerHTML)return!0;try{var n=window.getComputedStyle(t),i=n.getPropertyValue("display");return e?"contents"!==i&&function(t,e){return"visible"!==e.getPropertyValue("overflow")||t.scrollWidth<=0&&t.scrollHeight<=0}(t,n):"none"===i}catch(t){return console.warn("Failed to inspect element style"),!1}}function o(t,e){var n=t.nodeName.toLowerCase();return(i.test(n)&&!t.disabled||"a"===n&&t.href||e)&&function(t){for(var e=t,n=t.getRootNode&&t.getRootNode();e&&e!==document.body;){if(n&&e===n&&(e=n.host.parentNode),r(e))return!1;e=e.parentNode}return!0}(t)}function a(t){var e=t.getAttribute("tabindex");null===e&&(e=void 0);var n=isNaN(e);return(n||e>=0)&&o(t,!n)}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(t){return t.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(t){return t.removeAttribute("aria-hidden")})));s=null},e.log=function(){0},e.assertNodeList=l,e.setElement=function(t){var e=t;if("string"==typeof e&&a.canUseDOM){var n=document.querySelectorAll(e);l(n,e),e=n}return s=e||s},e.validateElement=d,e.hide=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.setAttribute("aria-hidden","true")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.show=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.removeAttribute("aria-hidden")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.documentNotReadyOrSSRTesting=function(){s=null};var i,r=n(167),o=(i=r)&&i.__esModule?i:{default:i},a=n(165);var s=null;function l(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function d(t){var e=t||s;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(t){return console.log(t)})),console.log("end portalOpenInstances ----------")},e.resetState=function(){r=new i};var i=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new i;e.default=r},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(204),l=n.n(s),d=n(2),c=n(4),u=n(12),h=n(23),p=n(178),f=n(176),g=n(177),m=n(9),v=n(63),y=n(14),b=n(135);function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var O=function t(e){var n=e.aria,o=void 0===n?{}:n,s=e.cancelButton,p=e.confirmButton,f=e.className,g=e.data,_=void 0===g?{}:g,O=e.id,w=e.size,C=void 0===w?"md":w,$=e.children,k=e.loading,S=void 0!==k&&k,E=e.fullHeight,j=void 0!==E&&E,A=e.opened,M=e.onCancel,P=void 0===M?function(){}:M,T=e.onConfirm,D=void 0===T?function(){}:T,L=e.onClose,I=void 0===L?function(){}:L,N=e.placement,R=void 0===N?"center":N,F=e.portalClassName,B=e.shouldCloseOnOverlayClick,z=void 0===B||B,W=e.status,H=e.text,U=e.title,Y=e.trigger,G=Object(d.a)(o),X=Object(d.c)(_),V={base:a()("pb_dialog",Object(d.b)("pb_dialog",C,R)),afterOpen:"pb_dialog_after_open",beforeClose:"pb_dialog_before_close"},q={base:"pb_dialog_overlay ".concat(null!==j&&(j?"xl"===C?"full_height_center":"full_height_".concat(R):null)),afterOpen:"pb_dialog_overlay_after_open",beforeClose:"pb_dialog_overlay_before_close"},K=a()(Object(d.b)("pb_dialog_wrapper"),Object(c.c)(e),f),Z=x(Object(i.useState)(!1),2),J=Z[0],Q=Z[1],tt=Y?J:A,et={onClose:Y?function(){Q(!1)}:I};Y&&document.querySelector(Y).addEventListener("click",(function(){Q(!0),document.querySelector("#cancel-button").addEventListener("click",(function(){Q(!1)}))}),{once:!0});var nt={default:{icon:"exclamation-circle",variant:"default",size:"lg"},info:{icon:"info-circle",variant:"default",size:"lg"},caution:{icon:"exclamation-triangle",variant:"yellow",size:"lg"},delete:{icon:"trash-alt",variant:"red",size:"lg"},error:{icon:"times-circle",variant:"red",size:"lg"},success:{icon:"check-circle",variant:"green",size:"lg"}};return r.a.createElement(b.a.Provider,{value:et},r.a.createElement("div",Object.assign({},G,X,{className:K}),r.a.createElement(l.a,{ariaHideApp:!1,className:V,closeTimeoutMS:200,contentLabel:"Minimal Modal Example",id:O,isOpen:tt,onRequestClose:I,overlayClassName:q,portalClassName:F,shouldCloseOnOverlayClick:z},r.a.createElement(r.a.Fragment,null,U&&!W?r.a.createElement(t.Header,null,U):null,!W&&H?r.a.createElement(t.Body,null,H):null,W&&r.a.createElement(t.Body,{className:"dialog_status_text_align",padding:"md"},r.a.createElement(m.a,{align:"center",orientation:"column"},r.a.createElement(v.a,{icon:nt[W].icon,size:nt[W].size,variant:nt[W].variant}),r.a.createElement(y.a,{marginTop:"sm",size:3},U),r.a.createElement(u.a,{marginTop:"xs",text:H}))),s&&p?r.a.createElement(t.Footer,null,r.a.createElement(h.a,{loading:S,onClick:D,htmlType:"button",variant:"primary"},p),r.a.createElement(h.a,{id:"cancel-button",onClick:P,variant:"link",htmlType:"button"},s)):null,$))))};O.Header=p.a,O.Body=g.a,O.Footer=f.a,e.a=O},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(70),l=n.n(s),d=n(26),c=n.n(d),u=n(53),h=n(77),p=n(71),f=n(116),g=n.n(f),m=n(207),v=n.n(m),y=n(8),b=n.n(y),x=n(10),_=n.n(x),O=n(2),w=n(4);function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};e.a=function(t){var e=t.aria,n=void 0===e?{}:e,o=(t.className,t.chartData),s=t.dark,d=void 0!==s&&s,f=t.data,m=void 0===f?{}:f,y=t.disableAnimation,x=void 0!==y&&y,$=t.fullCircle,S=void 0!==$&&$,E=t.height,j=void 0===E?null:E,A=t.id,M=t.max,P=void 0===M?100:M,T=t.min,D=void 0===T?0:T,L=t.prefix,I=void 0===L?"":L,N=t.showLabels,R=void 0!==N&&N,F=t.style,B=void 0===F?"solidgauge":F,z=t.suffix,W=void 0===z?"":z,H=t.title,U=void 0===H?"":H,Y=t.tooltipHtml,G=void 0===Y?'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>':Y,X=t.colors,V=void 0===X?[]:X,q=t.minorTickInterval,K=void 0===q?null:q,Z=t.circumference,J=void 0===Z?S?[0,360]:[-100,100]:Z,Q=k(t,["aria","className","chartData","dark","data","disableAnimation","fullCircle","height","id","max","min","prefix","showLabels","style","suffix","title","tooltipHtml","colors","minorTickInterval","circumference"]),tt=Object(O.a)(n),et=Object(O.c)(m);g()(c.a),v()(c.a);d?c.a.setOptions(h.a):c.a.setOptions(u.a),c.a.setOptions({tooltip:{pointFormat:G,followPointer:!0}});var nt=Object(O.b)({pb_gauge_kit:!0}),it=C(Object(i.useState)({}),2),rt=it[0],ot=it[1];return Object(i.useEffect)((function(){var t=o.map((function(t){return t.y=t.value,delete t.value,t})),e={chart:{events:{load:function(){setTimeout(this.reflow.bind(this),0)}},type:B,height:j},title:{text:U},yAxis:{min:D,max:P,lineWidth:0,tickWidth:0,minorTickInterval:K,tickAmount:2,tickPositions:[D,P],labels:{y:26,enabled:R}},credits:!1,series:[{data:t}],pane:{center:["50%","50%"],size:"90%",startAngle:J[0],endAngle:J[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:void 0!==V&&V.length>0?Object(p.a)(V):u.a.colors,plotOptions:{series:{animation:!x},solidgauge:{borderColor:void 0!==V&&1===V.length?Object(p.a)(V).join():u.a.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:b.a.text_lt_default,enabled:!0,format:'<span class="prefix">'.concat(I,"</span>")+'<span class="fix">{y:,f}</span>'+'<span class="suffix">'.concat(W,"</span>"),style:{fontFamily:_.a.font_family_base,fontWeight:_.a.regular,fontSize:_.a.heading_2},y:-26}}}};ot(Object.assign({},e)),document.querySelector(".prefix")&&(document.querySelectorAll(".prefix").forEach((function(t){t.setAttribute("y","28")})),document.querySelectorAll(".fix").forEach((function(t){return t.setAttribute("y","38")})))}),[o]),r.a.createElement(l.a,{containerProps:Object.assign(Object.assign({className:a()(nt,Object(w.c)(Q)),id:A},tt),et),highcharts:c.a,options:rt})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n(58),r=n(257);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=[0,20],h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,i,d=l(c);function c(){return o(this,c),d.apply(this,arguments)}return e=c,i=[{key:"selector",get:function(){return"[data-pb-popover-kit]"}}],(n=[{key:"moveTooltip",value:function(){document.querySelector("body").appendChild(this.tooltip)}},{key:"connect",value:function(){var t=this;this.moveTooltip(),this.popper=Object(r.a)(this.triggerElement,this.tooltip,{placement:this.position,strategy:"fixed",modifiers:[{name:"offset",options:{offset:this.offset}}]}),this.triggerElement.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.tooltip.classList.contains("show")||t.checkCloseTooltip(),setTimeout((function(){t.toggleTooltip(),t.popper.update()}),0)}))}},{key:"checkCloseTooltip",value:function(){var t=this;document.querySelector("body").addEventListener("click",(function(e){var n=e.target,i=null!==n.closest("#".concat(t.tooltipId)),r=null!==n.closest("#".concat(t.triggerElementId));switch(t.closeOnClick){case"any":(i||!i&&!r)&&t.hideTooltip();break;case"outside":i||r||t.hideTooltip();break;case"inside":i&&t.hideTooltip()}}),!0)}},{key:"hideTooltip",value:function(){this.tooltip.classList.remove("show"),this.tooltip.classList.add("hide")}},{key:"toggleTooltip",value:function(){this.tooltip.classList.toggle("show"),this.tooltip.classList.toggle("hide")}},{key:"triggerElement",get:function(){return this._triggerElement=this._triggerElement||document.querySelector("#".concat(this.triggerElementId))}},{key:"tooltip",get:function(){return this._tooltip=this._tooltip||this.element.querySelector("#".concat(this.tooltipId))}},{key:"position",get:function(){return this.element.dataset.pbPopoverPosition}},{key:"triggerElementId",get:function(){return this.element.dataset.pbPopoverTriggerElementId}},{key:"tooltipId",get:function(){return this.element.dataset.pbPopoverTooltipId}},{key:"offset",get:function(){return"true"===this.element.dataset.pbPopoverOffset?u:[0,0]}},{key:"closeOnClick",get:function(){return this.element.dataset.pbPopoverCloseOnClick}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var i=n(58),r=n(169),o=n(171),a=n(173),s=n(172);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=[0,20],g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(p,t);var e,n,i,h=u(p);function p(){return l(this,p),h.apply(this,arguments)}return e=p,i=[{key:"selector",get:function(){return"[data-pb-tooltip-kit]"}}],(n=[{key:"connect",value:function(){var t=this;this.triggerElements.forEach((function(e){e.addEventListener("mouseenter",(function(){t.mouseenterTimeout=setTimeout((function(){t.showTooltip(e),t.checkCloseTooltip(e)}),250),e.addEventListener("mouseleave",(function(){clearTimeout(t.mouseenterTimeout),setTimeout((function(){t.hideTooltip()}),0)}),{once:!0})}))})),this.tooltip.addEventListener("mouseenter",(function(){clearTimeout(t.mouseenterTimeout)})),this.tooltip.addEventListener("mouseleave",(function(){t.hideTooltip()}))}},{key:"checkCloseTooltip",value:function(t){var e=this;document.querySelector("body").addEventListener("click",(function(n){var i=n.target,r=i.closest("#".concat(e.tooltipId))===e.tooltip;i.closest(e.triggerElementSelector)===t||r?e.checkCloseTooltip(t):e.hideTooltip()}),{once:!0})}},{key:"showTooltip",value:function(t){this.popper=Object(r.a)(t,this.tooltip,{placement:this.position,modifiers:[{name:"offset",options:{offset:f}},{name:"arrow",options:{element:document.querySelector("#".concat(this.tooltipId,"-arrow"))}},o.a,a.a,s.a]}),this.tooltip.classList.add("show")}},{key:"hideTooltip",value:function(){var t=this;this.tooltip.classList.add("fade_out"),setTimeout((function(){t.popper&&(t.popper.destroy(),t.tooltip.classList.remove("show"),t.tooltip.classList.remove("fade_out"))}),250)}},{key:"triggerElements",get:function(){var t;return(t=this.triggerElementId?document.querySelector("#".concat(this.triggerElementId)):this.triggerElementSelector.indexOf("#")>-1?document.querySelector("".concat(this.triggerElementSelector)):document.querySelectorAll("".concat(this.triggerElementSelector)))?(t.length||(t=[t]),this._triggerElements=this._triggerElements||t):(console.error("Tooltip Kit: an invalid or unavailable DOM reference was provided!"),[])}},{key:"tooltip",get:function(){return this._tooltip=this._tooltip||this.element.querySelector("#".concat(this.tooltipId))}},{key:"position",get:function(){return this.element.dataset.pbTooltipPosition}},{key:"triggerElementId",get:function(){return this.element.dataset.pbTooltipTriggerElementId}},{key:"tooltipId",get:function(){return this.element.dataset.pbTooltipTooltipId}},{key:"triggerElementSelector",get:function(){return this.element.dataset.pbTooltipTriggerElementSelector}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),p}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n(58),r=n(22);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,n,i,a=c(u);function u(){return s(this,u),a.apply(this,arguments)}return e=u,i=[{key:"selector",get:function(){return"[data-pb-typeahead-kit]"}}],(n=[{key:"connect",value:function(){var t=this;this.element.addEventListener("keydown",(function(e){return t.handleKeydown(e)})),this.searchInput.addEventListener("focus",(function(){return t.debouncedSearch()})),this.searchInput.addEventListener("input",(function(){return t.debouncedSearch()})),this.resultsElement.addEventListener("click",(function(e){return t.optionSelected(e)}))}},{key:"handleKeydown",value:function(t){"ArrowUp"===t.key?(t.preventDefault(),this.focusPreviousOption()):"ArrowDown"===t.key&&(t.preventDefault(),this.focusNextOption())}},{key:"search",value:function(){var t=this;if(this.searchTerm.length<parseInt(this.searchTermMinimumLength))return this.clearResults();this.toggleResultsLoadingIndicator(!0),this.showResults();var e=this.searchTerm,n=this.searchContext,i={searchingFor:e,searchingContext:n,setResults:function(i){t.resultsCacheUpdate(e,n,i)}};this.element.dispatchEvent(new CustomEvent("pb-typeahead-kit-search",{bubbles:!0,detail:i}))}},{key:"resultsCacheUpdate",value:function(t,e,n){var i=this.cacheKeyFor(t,e);this.resultsOptionCache.has(i)&&this.resultsOptionCache.delete(i),this.resultsOptionCache.size>32&&this.resultsOptionCache.delete(this.resultsOptionCache.keys().next().value),this.resultsOptionCache.set(i,n),this.showResults()}},{key:"resultsCacheClear",value:function(){this.resultsOptionCache.clear()}},{key:"debouncedSearch",get:function(){return this._debouncedSearch=this._debouncedSearch||Object(r.debounce)(this.search,parseInt(this.searchDebounceTimeout)).bind(this)}},{key:"showResults",value:function(){var t=this;if(this.resultsOptionCache.has(this.searchTermAndContext)){this.toggleResultsLoadingIndicator(!1),this.clearResults();var e,n=o(this.resultsOptionCache.get(this.searchTermAndContext));try{for(n.s();!(e=n.n()).done;){var i=e.value;this.resultsElement.appendChild(this.newResultOption(i.cloneNode(!0)))}}catch(t){n.e(t)}finally{n.f()}var r,a=o(this.resultsElement.querySelectorAll("[data-result-option-item]"));try{for(a.s();!(r=a.n()).done;)r.value.addEventListener("mousedown",(function(e){return t.optionSelected(e)}))}catch(t){a.e(t)}finally{a.f()}}}},{key:"optionSelected",value:function(t){var e=t.target.closest("[data-result-option-item]");e&&(this.resultsCacheClear(),this.searchInputClear(),this.clearResults(),this.element.dispatchEvent(new CustomEvent("pb-typeahead-kit-result-option-selected",{bubbles:!0,detail:{selected:e,typeahead:this}})))}},{key:"clearResults",value:function(){this.resultsElement.innerHTML=""}},{key:"newResultOption",value:function(t){var e=this.resultOptionTemplate.content.cloneNode(!0);return e.querySelector('slot[name="content"]').replaceWith(t),e}},{key:"focusPreviousOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)-1;(this.resultOptionItems[t]||this.resultOptionItems[this.resultOptionItems.length-1]).focus()}},{key:"focusNextOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)+1;(this.resultOptionItems[t]||this.resultOptionItems[0]).focus()}},{key:"resultOptionItems",get:function(){return Array.from(this.resultsElement.querySelectorAll("[data-result-option-item]"))}},{key:"currentSelectedResultOptionItem",get:function(){return document.activeElement.closest("[data-result-option-item]")}},{key:"searchInput",get:function(){return this._searchInput=this._searchInput||this.element.querySelector('input[type="search"]')}},{key:"searchTerm",get:function(){return this.searchInput.value}},{key:"searchContext",get:function(){if(this._searchContext)return this._searchContext;var t=this.element.dataset.searchContextValueSelector;return t?(this.element.parentNode.querySelector(t)||this.element.closest(t)).value:null},set:function(t){this._searchContext=t}},{key:"searchTermAndContext",get:function(){return this.cacheKeyFor(this.searchTerm,this.searchContext)}},{key:"cacheKeyFor",value:function(t,e){return[t,JSON.stringify(e)].join()}},{key:"searchInputClear",value:function(){this.searchInput.value=""}},{key:"searchTermMinimumLength",get:function(){return this.element.dataset.pbTypeaheadKitSearchTermMinimumLength}},{key:"searchDebounceTimeout",get:function(){return this.element.dataset.pbTypeaheadKitSearchDebounceTimeout}},{key:"resultsElement",get:function(){return this._resultsElement=this._resultsElement||this.element.querySelector("[data-pb-typeahead-kit-results]")}},{key:"resultOptionTemplate",get:function(){return this._resultOptionTemplate=this._resultOptionTemplate||this.element.querySelector("template[data-pb-typeahead-kit-result-option]")}},{key:"resultsOptionCache",get:function(){return this._resultsOptionCache=this._resultsOptionCache||new Map}},{key:"resultsLoadingIndicator",get:function(){return this._resultsLoadingIndicator=this._resultsLoadingIndicator||this.element.querySelector("[data-pb-typeahead-kit-loading-indicator]")}},{key:"toggleResultsLoadingIndicator",value:function(t){var e="0";t&&(e="1"),this.resultsLoadingIndicator.style.opacity=e}}])&&l(e.prototype,n),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.a)},function(t,e,n){"use strict";e.a=function(){var t=document.querySelectorAll("[data-open-dialog]"),e=document.querySelectorAll("[data-close-dialog]"),n=document.querySelectorAll(".pb_dialog_rails");t.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.openDialog,n=document.getElementById(e);n.open||n.showModal()}))})),e.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.closeDialog;document.getElementById(e).close()}))})),n.forEach((function(t){t.addEventListener("mousedown",(function(e){if("overlay_close"!==t.parentElement.dataset.overlayClick){var n=e.target.getBoundingClientRect();(e.clientX<n.left||e.clientX>n.right||e.clientY<n.top||e.clientY>n.bottom)&&(t.close(),e.stopPropagation())}}))}))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=function(){var t=event.target.closest(".pb_rich_text_editor_kit");t.classList.contains("inline")&&t.classList.toggle("focused")},l=function(){document.querySelectorAll(".focus-editor-targets trix-editor").forEach((function(t){var e=t.toolbarElement;t==document.activeElement?(t.classList.add("focused-editor"),e.style.display="block"):e.contains(document.activeElement)||(t.classList.remove("focused-editor"),e.style.display="none")}))},d=n(4),c=n(2),u=n(209),h=n(110),p=n(9),f=n(15),g=n(55),m=n(7),v=n(160),y=function(t){var e=t.classname,n=t.disable,i=t.onclick,o=t.icon,a=t.text;return r.a.createElement(v.a,{delay:{open:2e3},interaction:!0,placement:"top",text:a},r.a.createElement("button",{className:e,disabled:n,onClick:i,role:"button",type:"button"},r.a.createElement(p.a,{align:"center",className:"toolbar_button_icon",justify:"center"},r.a.createElement(m.a,{icon:o,size:"lg"}))))},b=n(76),x=n(23),_=n(48),O=n(24);function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var $=function(t){for(var e=t.editor,n=w(Object(i.useState)(!1),2),o=n[0],a=n[1],s=[{node:"paragraph",icon:"paragraph",isActive:e.isActive("paragraph"),text:"Paragraph",onclick:function(){return e.chain().focus().setParagraph().run()}},{node:"heading-1",icon:"h1",isActive:e.isActive("heading",{level:1}),text:"Heading 1",onclick:function(){return e.chain().focus().toggleHeading({level:1}).run()}},{node:"heading-2",icon:"h2",isActive:e.isActive("heading",{level:2}),text:"Heading 2",onclick:function(){return e.chain().focus().toggleHeading({level:2}).run()}},{node:"heading-3",icon:"h3",isActive:e.isActive("heading",{level:3}),text:"Heading 3",onclick:function(){return e.chain().focus().toggleHeading({level:3}).run()}},{node:"bulletList",icon:"list",isActive:e.isActive("bulletList"),text:"Bullet List",onclick:function(){return e.chain().focus().toggleBulletList().run()}},{node:"orderedList",icon:"list-ol",isActive:e.isActive("orderedList"),text:"Ordered List",onclick:function(){return e.chain().focus().toggleOrderedList().run()}},{node:"blockquote",icon:"block-quote",isActive:e.isActive("blockquote"),text:"Block Quote",onclick:function(){return e.chain().focus().toggleBlockquote().run()}}],l=0,d=[],c=0,u=s;c<u.length;c++){var h=u[c],f=h.text,g=h.isActive,v=h.icon;g&&(l++,d.push(r.a.createElement(p.a,{align:"center",key:v,gap:"xs"},r.a.createElement(m.a,{icon:v,size:"lg"}),r.a.createElement("div",null,f),r.a.createElement(p.a,{className:o?"fa-flip-vertical":"",display:"inline_flex"},r.a.createElement(m.a,{fixedWidth:!0,icon:"angle-down","margin-left":"xs"})))))}var y=r.a.createElement(x.a,{className:"editor-dropdown-button",onClick:function(){a(!0)},variant:"secondary"},2===l?d[1]:1===l?d[0]||null:r.a.createElement(p.a,{align:"center",key:"paragraph",gap:"xs"},r.a.createElement(m.a,{icon:"paragraph",size:"lg"}),r.a.createElement("div",null,"Paragraph"),r.a.createElement(p.a,{className:o?"fa-flip-vertical":"",display:"inline_flex"},r.a.createElement(m.a,{fixedWidth:!0,icon:"angle-down","margin-left":"xs"}))));return r.a.createElement(b.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:y,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingTop:"xs",paddingBottom:"xs",variant:"subtle"},s.map((function(t,e){var n=t.icon,i=t.text,o=t.onclick,s=t.isActive;return r.a.createElement(O.a,{cursor:"pointer",className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},text:i,paddingTop:"xxs",paddingBottom:"xxs"})}))))},k=function(t){var e=t.editor,n=Object(i.useCallback)((function(){var t=e.getAttributes("link").href,n=window.prompt("URL",t);null!==n&&(""!==n?e.chain().focus().extendMarkRange("link").setLink({href:n}).run():e.chain().focus().extendMarkRange("link").unsetLink().run())}),[e]),o=[{onclick:function(){return e.chain().focus().toggleCodeBlock().run()},icon:"code",isActive:e.isActive("codeBlock"),text:"Codeblock"},{onclick:n,icon:"link",isActive:e.isActive("link"),text:"Link"}];return r.a.createElement(r.a.Fragment,null,o.map((function(t,e){var n=t.onclick,i=t.icon,o=t.text,a=t.isActive;return r.a.createElement(y,{classname:"toolbar_button ".concat(a?"is-active":""),onclick:n,icon:i,key:e,text:o})})))},S=function(t){var e=t.editor,n=[{classname:"toolbar_button",icon:"undo",text:"Undo",onclick:function(){return e.chain().focus().undo().run()},disable:!e.can().chain().focus().undo().run()},{classname:"toolbar_button",icon:"redo",text:"Redo",onclick:function(){return e.chain().focus().redo().run()},disable:!e.can().chain().focus().redo().run()}];return r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{displayFlex:!0},n.map((function(t,e){var n=t.onclick,i=t.classname,o=t.disable,a=t.icon,s=t.text;return r.a.createElement(y,{classname:i,onclick:n,disable:o,icon:a,key:e,text:s})}))))};function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var A=function(t){var e=t.extensions,n=E(Object(i.useState)(!1),2),o=n[0],a=n[1],s=r.a.createElement("button",{className:"toolbar_button",onClick:function(){a(!0)},role:"button",type:"button"},r.a.createElement(p.a,{align:"center",className:"toolbar_button_icon",justify:"center"},r.a.createElement(m.a,{icon:"ellipsis",size:"lg"})));return r.a.createElement(b.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:s,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingTop:e.length>1?"xs":"none",paddingBottom:e.length>1?"xs":"none",variant:"subtle"},e&&e.map((function(t,e){var n=t.icon,i=t.text,o=t.onclick,s=t.isActive;return r.a.createElement(O.a,{cursor:"pointer",className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},text:i,paddingTop:"xxs",paddingBottom:"xxs"})}))))},M=function(t){var e=t.editor,n=t.extensions,i=[{icon:"bold",text:"Bold",classname:"toolbar_button ".concat(e.isActive("bold")?"is-active":""),onclick:function(){return e.chain().focus().toggleBold().run()}},{icon:"italic",text:"Italic",classname:"toolbar_button ".concat(e.isActive("italic")?"is-active":""),onclick:function(){return e.chain().focus().toggleItalic().run()}},{icon:"strikethrough",text:"Strikethrough",classname:"toolbar_button ".concat(e.isActive("strike")?"is-active":""),onclick:function(){return e.chain().focus().toggleStrike().run()}}];return r.a.createElement(h.a,{backgroundColor:"white",className:"toolbar"},r.a.createElement(p.a,{flex:"0",justify:"between",paddingX:"sm",paddingY:"xxs"},r.a.createElement(f.a,{className:"toolbar_block",displayFlex:!0},r.a.createElement($,{editor:e}),r.a.createElement(g.a,{orientation:"vertical"}),i&&i.map((function(t,e){var n=t.icon,i=t.text,o=t.classname,a=t.onclick;return r.a.createElement(y,{classname:o,icon:n,key:e,text:i,onclick:a})})),r.a.createElement(g.a,{orientation:"vertical"}),r.a.createElement(k,{editor:e}),n&&r.a.createElement(r.a.Fragment,null,r.a.createElement(A,{extensions:n}))),r.a.createElement(S,{editor:e})))};function P(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}try{n(250).config.textAttributes.inlineCode={tagName:"code",inheritable:!0}}catch(t){}e.a=function(t){var e=t.aria,n=void 0===e?{}:e,o=t.advancedEditor,h=t.advancedEditorToolbar,p=void 0===h||h,f=t.toolbarBottom,g=void 0!==f&&f,m=t.children,v=t.className,y=t.data,b=void 0===y?{}:y,x=t.focus,_=void 0!==x&&x,O=t.inline,w=void 0!==O&&O,C=t.extensions,$=t.name,k=t.onChange,S=void 0===k?c.d:k,E=t.placeholder,j=t.simple,A=void 0!==j&&j,D=t.sticky,L=void 0!==D&&D,I=t.template,N=void 0===I?"":I,R=t.value,F=void 0===R?"":R,B=t.maxWidth,z=void 0===B?"md":B,W=Object(c.a)(n),H=Object(c.c)(b),U=T(Object(i.useState)(),2),Y=U[0],G=U[1],X=null==Y?void 0:Y.element;if(Y){var V=X.parentElement.querySelector("trix-toolbar"),q=V.querySelector("[data-trix-attribute=code]"),K=V.querySelector("[data-trix-attribute=inlineCode]");K||(K=q.cloneNode(!0)),K.dataset.trixAttribute="inlineCode",q.insertAdjacentElement("afterend",K),g&&Y.element.after(V);X.addEventListener("trix-selection-change",(function(){var t=function(){if(Y.attributeIsActive("code"))return"block";if(Y.attributeIsActive("inlineCode"))return"inline";var t=Y.getSelectedRange();if(t[0]==t[1])return"block";var e=Y.getSelectedDocument().toString().trim();return/\n/.test(e)?"block":"inline"}();q.hidden="inline"==t,K.hidden="block"==t})),_&&(document.addEventListener("trix-focus",l),document.addEventListener("trix-blur",l),l()),document.addEventListener("trix-focus",s),document.addEventListener("trix-blur",s)}Object(i.useEffect)((function(){Y&&N&&(Y.loadHTML(""),Y.setSelectedRange([0,0]),Y.insertHTML(N))}),[Y,N]),Object(i.useEffect)((function(){X&&X.addEventListener("click",(function(t){var e=t.target;if(e.closest(".pb_rich_text_editor_kit")){var n=e.closest("a");n&&n.hasAttribute("href")&&window.open(n.href)}}))}),[X]);var Z=A?"simple":"",J=_?"focus-editor-targets":"",Q=L?"sticky":"",tt=w?"inline":"",et=g?"toolbar-bottom":"",nt=a()(Object(d.c)(t,{maxWidth:z}),v);return nt=a()("pb_rich_text_editor_kit",Z,J,Q,tt,et,nt),r.a.createElement("div",Object.assign({},W,H,{className:nt}),o?r.a.createElement("div",{className:a()("pb_rich_text_editor_advanced_container",P({},"toolbar-active",p))},p&&r.a.createElement(M,{extensions:C,editor:o}),m):r.a.createElement(u.TrixEditor,{className:"",fileParamName:$,mergeTags:[],onChange:S,onEditorReady:function(t){return G(t)},placeholder:E,value:F}))}},function(t,e,n){"use strict";var i,r=n(0),o=n.n(r),a=n(3),s=n.n(a),l=n(208),d=n.n(l),c=(n(242),n(249),n(2)),u=n(4),h=n(41),p=function(t){return Object.keys(t).length<1};function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}!function(t){t[t.TooShort=2]="TooShort",t[t.TooLong=3]="TooLong",t[t.MissingAreaCode=4]="MissingAreaCode",t[t.SomethingWentWrong=-99]="SomethingWentWrong"}(i||(i={}));var m=function(){for(var t=window.intlTelInputGlobals.getCountryData(),e=0;e<t.length;e++){var n=t[e];n.name=n.name.split("(")[0].trim()}};m();var v=function(t,e){var n=t.aria,a=void 0===n?{}:n,l=t.className,g=t.dark,v=void 0!==g&&g,y=t.data,b=void 0===y?{}:y,x=t.disabled,_=void 0!==x&&x,O=t.id,w=void 0===O?"":O,C=t.initialCountry,$=void 0===C?"":C,k=t.isValid,S=void 0===k?function(){}:k,E=t.label,j=void 0===E?"":E,A=t.name,M=void 0===A?"":A,P=t.onChange,T=void 0===P?function(){}:P,D=t.onValidate,L=void 0===D?function(){return null}:D,I=t.onlyCountries,N=void 0===I?[]:I,R=t.required,F=void 0!==R&&R,B=t.preferredCountries,z=void 0===B?[]:B,W=t.value,H=void 0===W?"":W,U=Object(c.a)(a),Y=Object(c.c)(b),G=s()(Object(c.b)("pb_phone_number_input"),Object(u.c)(t),l),X=Object(r.useRef)(),V=f(Object(r.useState)(H),2),q=V[0],K=V[1],Z=f(Object(r.useState)(),2),J=Z[0],Q=Z[1],tt=f(Object(r.useState)(t.error),2),et=tt[0],nt=tt[1],it=f(Object(r.useState)(!1),2),rt=it[0],ot=it[1],at=f(Object(r.useState)(),2),st=at[0],lt=at[1];Object(r.useEffect)((function(){(null==et?void 0:et.length)>0?L(!1):L(!0)}),[et,L]),Object(r.useImperativeHandle)(e,(function(){return{clearField:function(){K(""),nt("")},inputNode:function(){return X.current}}}));var dt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=J.getSelectedCountryData().name,n=t.length>0?" (".concat(t,")"):"";return nt("Invalid ".concat(e," phone number").concat(n)),!0},ct=function(){J&&S(J.isValidNumber()),function(t){if(t)return q&&!function(t){return/^[()+\-\ .\d]*$/g.test(t)}(q)?dt("enter numbers only"):void 0}(J)||function(t){if(t)return t.getValidationError()===i.TooLong?dt("too long"):void nt("")}(J)||function(t){if(t)return t.getValidationError()===i.TooShort||1===q.length?dt("too short"):void nt("")}(J)||function(t){if(F&&t)return t.getValidationError()===i.SomethingWentWrong?1===q.length?dt("too short"):0===q.length?(nt("Missing phone number"),!0):dt():void 0}(J)||function(t){if(F&&t)t.getValidationError()===i.MissingAreaCode&&dt("missing area code")}(J)},ut=function(t,e){return Object.assign(Object.assign({},t.getSelectedCountryData()),{number:e})};Object(r.useEffect)(m,[]),Object(r.useEffect)((function(){var t=d()(X.current,{separateDialCode:!0,preferredCountries:z,allowDropdown:!_,autoInsertDialCode:!1,initialCountry:$,onlyCountries:N});X.current.addEventListener("countrychange",(function(e){var n=ut(t,e.target.value);lt(n),T(n),ct()})),X.current.addEventListener("open:countrydropdown",(function(){return ot(!0)})),X.current.addEventListener("close:countrydropdown",(function(){return ot(!1)})),Q(t)}),[]);var ht={className:rt?"dropdown_open":"",dark:v,"data-phone-number":JSON.stringify(st),disabled:_,error:et,type:"tel",id:w,label:j,name:M,onBlur:ct,onChange:function(t){K(t.target.value);var e=ut(J,t.target.value);lt(e),T(e),S(J.isValidNumber())},value:q},pt={className:G};return p(a)||(ht=Object.assign(Object.assign({},ht),U)),p(b)||(pt=Object.assign(Object.assign({},pt),Y)),F&&(ht.required=!0),o.a.createElement("div",Object.assign({},pt),o.a.createElement(h.a,Object.assign({ref:function(t){e&&(e.current=t),X.current=t}},ht)))};e.a=Object(r.forwardRef)(v)},,function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(2),o=(i=r)&&i.__esModule?i:{default:i};e.default=o.default,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function r(t){return t&&t.__esModule?t:{default:t}}e.default=d;var o=n(3),a=r(n(4)),s=n(14),l=r(n(15));function d(t){var e=t.activeClassName,n=void 0===e?"":e,r=t.activeIndex,a=void 0===r?-1:r,d=t.activeStyle,c=t.autoEscape,u=t.caseSensitive,h=void 0!==u&&u,p=t.className,f=t.findChunks,g=t.highlightClassName,m=void 0===g?"":g,v=t.highlightStyle,y=void 0===v?{}:v,b=t.highlightTag,x=void 0===b?"mark":b,_=t.sanitize,O=t.searchWords,w=t.textToHighlight,C=t.unhighlightTag,$=void 0===C?"span":C,k=t.unhighlightClassName,S=void 0===k?"":k,E=t.unhighlightStyle,j=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),A=(0,o.findAll)({autoEscape:c,caseSensitive:h,findChunks:f,sanitize:_,searchWords:O,textToHighlight:w}),M=x,P=-1,T="",D=void 0,L=(0,l.default)((function(t){var e={};for(var n in t)e[n.toLowerCase()]=t[n];return e}));return(0,s.createElement)("span",i({className:p},j,{children:A.map((function(t,e){var i=w.substr(t.start,t.end-t.start);if(t.highlight){P++;var r=void 0;r="object"==typeof m?h?m[i]:(m=L(m))[i.toLowerCase()]:m;var o=P===+a;T=r+" "+(o?n:""),D=!0===o&&null!=d?Object.assign({},y,d):y;var l={children:i,className:T,key:e,style:D};return"string"!=typeof M&&(l.highlightIndex=P),(0,s.createElement)(M,l)}return(0,s.createElement)($,{children:i,className:S,key:e,style:E})}))}))}d.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},t.exports=e.default},function(t,e){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);Object.defineProperty(e,"combineChunks",{enumerable:!0,get:function(){return i.combineChunks}}),Object.defineProperty(e,"fillInChunks",{enumerable:!0,get:function(){return i.fillInChunks}}),Object.defineProperty(e,"findAll",{enumerable:!0,get:function(){return i.findAll}}),Object.defineProperty(e,"findChunks",{enumerable:!0,get:function(){return i.findChunks}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAll=function(t){var e=t.autoEscape,o=t.caseSensitive,a=void 0!==o&&o,s=t.findChunks,l=void 0===s?i:s,d=t.sanitize,c=t.searchWords,u=t.textToHighlight;return r({chunksToHighlight:n({chunks:l({autoEscape:e,caseSensitive:a,sanitize:d,searchWords:c,textToHighlight:u})}),totalLength:u?u.length:0})};var n=e.combineChunks=function(t){var e=t.chunks;return e=e.sort((function(t,e){return t.start-e.start})).reduce((function(t,e){if(0===t.length)return[e];var n=t.pop();if(e.start<=n.end){var i=Math.max(n.end,e.end);t.push({start:n.start,end:i})}else t.push(n,e);return t}),[])},i=function(t){var e=t.autoEscape,n=t.caseSensitive,i=t.sanitize,r=void 0===i?o:i,a=t.searchWords,s=t.textToHighlight;return s=r(s),a.filter((function(t){return t})).reduce((function(t,i){i=r(i),e&&(i=i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(i,n?"g":"gi"),a=void 0;a=o.exec(s);){var l=a.index,d=o.lastIndex;d>l&&t.push({start:l,end:d}),a.index==o.lastIndex&&o.lastIndex++}return t}),[])};e.findChunks=i;var r=e.fillInChunks=function(t){var e=t.chunksToHighlight,n=t.totalLength,i=[],r=function(t,e,n){e-t>0&&i.push({start:t,end:e,highlight:n})};if(0===e.length)r(0,n,!1);else{var o=0;e.forEach((function(t){r(o,t.start,!1),r(t.start,t.end,!0),o=t.end})),r(o,n,!1)}return i};function o(t){return t}}])},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n(6)((function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}),!0)}else t.exports=n(13)()}).call(e,n(5))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,d=[],c=!1,u=-1;function h(){c&&l&&(c=!1,l.length?d=l.concat(d):u=-1,d.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=d.length;e;){for(l=d,d=[];++u<e;)l&&l[u].run();u=-1,e=d.length}l=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new f(t,e)),1!==d.length||c||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";var i=n(7),r=n(8),o=n(9),a=n(10),s=n(11),l=n(12);t.exports=function(t,n){var d="function"==typeof Symbol&&Symbol.iterator;var c={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:p(i.thatReturnsNull),arrayOf:function(t){return p((function(e,n,i,r,o){if("function"!=typeof t)return new h("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a))return new h("Invalid "+r+" `"+o+"` of type `"+m(a)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<a.length;l++){var d=t(a,l,i,r,o+"["+l+"]",s);if(d instanceof Error)return d}return null}))},element:p((function(e,n,i,r,o){var a=e[n];return t(a)?null:new h("Invalid "+r+" `"+o+"` of type `"+m(a)+"` supplied to `"+i+"`, expected a single ReactElement.")})),instanceOf:function(t){return p((function(e,n,i,r,o){if(!(e[n]instanceof t)){var a=t.name||"<<anonymous>>";return new h("Invalid "+r+" `"+o+"` of type `"+function(t){if(!t.constructor||!t.constructor.name)return"<<anonymous>>";return t.constructor.name}(e[n])+"` supplied to `"+i+"`, expected instance of `"+a+"`.")}return null}))},node:p((function(t,e,n,i,r){return g(t[e])?null:new h("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return p((function(e,n,i,r,o){if("function"!=typeof t)return new h("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var a=e[n],l=m(a);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var d in a)if(a.hasOwnProperty(d)){var c=t(a,d,i,r,o+"."+d,s);if(c instanceof Error)return c}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;return p((function(e,n,i,r,o){for(var a=e[n],s=0;s<t.length;s++)if(u(a,t[s]))return null;return new h("Invalid "+r+" `"+o+"` of value `"+a+"` supplied to `"+i+"`, expected one of "+JSON.stringify(t)+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<t.length;n++){var r=t[n];if("function"!=typeof r)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",y(r),n),i.thatReturnsNull}return p((function(e,n,i,r,o){for(var a=0;a<t.length;a++){if(null==(0,t[a])(e,n,i,r,o,s))return null}return new h("Invalid "+r+" `"+o+"` supplied to `"+i+"`.")}))},shape:function(t){return p((function(e,n,i,r,o){var a=e[n],l=m(a);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var d in t){var c=t[d];if(c){var u=c(a,d,i,r,o+"."+d,s);if(u)return u}}return null}))},exact:function(t){return p((function(e,n,i,r,o){var l=e[n],d=m(l);if("object"!==d)return new h("Invalid "+r+" `"+o+"` of type `"+d+"` supplied to `"+i+"`, expected `object`.");var c=a({},e[n],t);for(var u in c){var p=t[u];if(!p)return new h("Invalid "+r+" `"+o+"` key `"+u+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,u,i,r,o+"."+u,s);if(f)return f}return null}))}};function u(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){this.message=t,this.stack=""}function p(t){if("production"!==e.env.NODE_ENV)var i={},a=0;function l(l,d,c,u,p,f,g){if(u=u||"<<anonymous>>",f=f||c,g!==s)if(n)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var m=u+":"+c;!i[m]&&a<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,u),i[m]=!0,a++)}return null==d[c]?l?null===d[c]?new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(d,c,u,p,f)}var d=l.bind(null,!1);return d.isRequired=l.bind(null,!0),d}function f(t){return p((function(e,n,i,r,o,a){var s=e[n];return m(s)!==t?new h("Invalid "+r+" `"+o+"` of type `"+v(s)+"` supplied to `"+i+"`, expected `"+t+"`."):null}))}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||t(e))return!0;var n=function(t){var e=t&&(d&&t[d]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!n)return!1;var i,r=n.call(e);if(n!==e.entries){for(;!(i=r.next()).done;)if(!g(i.value))return!1}else for(;!(i=r.next()).done;){var o=i.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function m(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function v(t){if(null==t)return""+t;var e=m(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function y(t){var e=v(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,c.checkPropTypes=l,c.PropTypes=c,c}}).call(e,n(5))},function(t,e){"use strict";function n(t){return function(){return t}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,n){(function(e){"use strict";var n=function(t){};"production"!==e.env.NODE_ENV&&(n=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=function(t,e,i,r,o,a,s,l){if(n(e),!t){var d;if(void 0===e)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,r,o,a,s,l],u=0;(d=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw d.framesToPop=1,d}}}).call(e,n(5))},function(t,e,n){(function(e){"use strict";var i=n(7);if("production"!==e.env.NODE_ENV){var r=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=0,o="Warning: "+t.replace(/%s/g,(function(){return n[r++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(t){}};i=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];r.apply(void 0,[e].concat(i))}}}t.exports=i}).call(e,n(5))},function(t,e){
|
32
32
|
/*
|
33
33
|
object-assign
|
34
34
|
(c) Sindre Sorhus
|
@@ -46,18 +46,7 @@ module Playbook
|
|
46
46
|
# rubocop:disable Naming/AccessorMethodName
|
47
47
|
def get_kits
|
48
48
|
menu = YAML.load_file(Playbook::Engine.root.join("dist/menu.yml"))
|
49
|
-
|
50
|
-
menu["kits"].each do |kit|
|
51
|
-
kit_name = kit["name"]
|
52
|
-
components = kit["components"].map { |c| c["name"] }
|
53
|
-
|
54
|
-
all_kits << if components.size == 1
|
55
|
-
components.first
|
56
|
-
else
|
57
|
-
{ kit_name => components }
|
58
|
-
end
|
59
|
-
end
|
60
|
-
all_kits
|
49
|
+
menu["kits"]
|
61
50
|
end
|
62
51
|
|
63
52
|
def get_kits_pb_website
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.10.0.pre.alpha.
|
4
|
+
version: 13.10.0.pre.alpha.play10481357
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-10-
|
12
|
+
date: 2023-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -1852,6 +1852,8 @@ files:
|
|
1852
1852
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
|
1853
1853
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb
|
1854
1854
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx
|
1855
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.jsx
|
1856
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.md
|
1855
1857
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml
|
1856
1858
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/index.js
|
1857
1859
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/templates.js
|
@@ -1859,6 +1861,7 @@ files:
|
|
1859
1861
|
- app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.html.erb
|
1860
1862
|
- app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb
|
1861
1863
|
- app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.test.js
|
1864
|
+
- app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor_advanced.test.js
|
1862
1865
|
- app/pb_kits/playbook/pb_rich_text_editor/useFocus.ts
|
1863
1866
|
- app/pb_kits/playbook/pb_section_separator/_section_separator.scss
|
1864
1867
|
- app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
|