playbook_ui 13.28.0.pre.alpha.PLAY1349checkboxzindexsticky2947 → 13.28.0.pre.alpha.PLAY13592980
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_advanced_table/advanced_table.html.erb +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +40 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.md +3 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +14 -4
- data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +10 -2
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +34 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +31 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +10 -0
- data/app/pb_kits/playbook/pb_icon/icon.rb +3 -2
- data/app/pb_kits/playbook/pb_pill/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_tooltip/index.js +1 -0
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/forms/builder/dropdown_field.rb +14 -0
- data/lib/playbook/forms/builder.rb +1 -0
- data/lib/playbook/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92568f129e159a335286fea16a09cde1f875a7078f29f93a52529df80b721799
|
4
|
+
data.tar.gz: 45eb715f867daffffb657f0acd08ead48c67a83cb8d99afa543d074ae6f900aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dff4947e668a926470d8582708cba1e3b7bf62f7e35a2321328bfe0fabb6726464cff7534cbbdd3ef80b3aba9c30c62af05d91d95c232e3d3e257ceabdf71f2d
|
7
|
+
data.tar.gz: 3e43e9a72ff98dbe31bea3481a45eec9471d703b9f07966fcf1d5513d5d43cfa57c7899d3bb2f57b89b63a703ae3ed409b10cccb224b8a4fdcec75af84f6eb06
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<% if content.present? %>
|
4
4
|
<% content.presence %>
|
5
5
|
<% else %>
|
6
|
-
<%= pb_rails("advanced_table/table_header", props: {column_definitions: object.column_definitions, enable_toggle_expansion: object.enable_toggle_expansion }) %>
|
7
|
-
<%= pb_rails("advanced_table/table_body", props: {table_data: object.table_data, column_definitions: object.column_definitions}) %>
|
6
|
+
<%= pb_rails("advanced_table/table_header", props: { column_definitions: object.column_definitions, enable_toggle_expansion: object.enable_toggle_expansion }) %>
|
7
|
+
<%= pb_rails("advanced_table/table_body", props: { id: object.id, table_data: object.table_data, column_definitions: object.column_definitions }) %>
|
8
8
|
<% end %>
|
9
9
|
<% end %>
|
10
10
|
<% end %>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<%
|
2
|
+
column_definitions = [
|
3
|
+
{
|
4
|
+
accessor: "year",
|
5
|
+
label: "Year",
|
6
|
+
cellAccessors: ["quarter", "month", "day"],
|
7
|
+
},
|
8
|
+
{
|
9
|
+
accessor: "newEnrollments",
|
10
|
+
label: "New Enrollments",
|
11
|
+
},
|
12
|
+
{
|
13
|
+
accessor: "scheduledMeetings",
|
14
|
+
label: "Scheduled Meetings",
|
15
|
+
},
|
16
|
+
{
|
17
|
+
accessor: "attendanceRate",
|
18
|
+
label: "Attendance Rate",
|
19
|
+
},
|
20
|
+
{
|
21
|
+
accessor: "completedClasses",
|
22
|
+
label: "Completed Classes",
|
23
|
+
},
|
24
|
+
{
|
25
|
+
accessor: "classCompletionRate",
|
26
|
+
label: "Class Completion Rate",
|
27
|
+
},
|
28
|
+
{
|
29
|
+
accessor: "graduatedStudents",
|
30
|
+
label: "Graduated Students",
|
31
|
+
}
|
32
|
+
]
|
33
|
+
|
34
|
+
subrow_headers = ["Quarter", "Month", "Day"]
|
35
|
+
%>
|
36
|
+
|
37
|
+
<%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions }) do %>
|
38
|
+
<%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
|
39
|
+
<%= pb_rails("advanced_table/table_body", props: { id: "subrow_headers", table_data: @table_data, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all" }) %>
|
40
|
+
<% end %>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
`subrow_headers` is an optional prop that if present will add header rows at each level of the nested data. The prop takes an array of strings, each string being the text for each header row. The array of strings must be in the order in which they need to be rendered in the UI according to depth.
|
2
|
+
|
3
|
+
`enable_toggle_expansion` is an additional optional prop that can be used in conjunction with the subRowHeaders prop. `enable_toggle_expansion` is a string that can be "all", "header" or "none". If set to "all", the toggle exapansion button will appear in the table header as well as in the subRow headers. If set to "header" button will only appear in header and NOT in subRow headers. This is set to "header" by default.
|
@@ -1,3 +1,3 @@
|
|
1
1
|
`subRowHeaders` is an optional prop that if present will add header rows at each level of the nested data. The prop takes an array of strings, each string being the text for each header row. The array of strings must be in the order in which they need to be rendered in the UI according to depth.
|
2
2
|
|
3
|
-
`enableToggleExpansion` is an additional optional prop that can be used in conjunction with the subRowHeaders prop. `enableToggleExpansion` is a string that can be
|
3
|
+
`enableToggleExpansion` is an additional optional prop that can be used in conjunction with the subRowHeaders prop. `enableToggleExpansion` is a string that can be "all", "header" or "none". If set to "all", the toggle exapansion button will appear in the table header as well as in the subRow headers. If set to "header" button will only appear in header and NOT in subRow headers. This is set to "header" by default.
|
@@ -1,6 +1,7 @@
|
|
1
1
|
examples:
|
2
2
|
rails:
|
3
3
|
- advanced_table_beta: Default (Required Props)
|
4
|
+
- advanced_table_beta_subrow_headers: SubRow Headers
|
4
5
|
react:
|
5
6
|
- advanced_table_default: Default (Required Props)
|
6
7
|
- advanced_table_loading: Loading State
|
@@ -12,4 +13,3 @@ examples:
|
|
12
13
|
- advanced_table_table_options: Table Options
|
13
14
|
- advanced_table_table_props: Table Props
|
14
15
|
- advanced_table_inline_row_loading: inline Row Loading
|
15
|
-
|
@@ -3,20 +3,30 @@
|
|
3
3
|
module Playbook
|
4
4
|
module PbAdvancedTable
|
5
5
|
class TableBody < Playbook::KitBase
|
6
|
+
prop :id, type: Playbook::Props::String,
|
7
|
+
default: ""
|
6
8
|
prop :table_data, type: Playbook::Props::Array,
|
7
9
|
default: []
|
8
10
|
prop :column_definitions, type: Playbook::Props::Array,
|
9
11
|
default: []
|
12
|
+
prop :enable_toggle_expansion, type: Playbook::Props::Enum,
|
13
|
+
values: %w[all header none],
|
14
|
+
default: "header"
|
15
|
+
prop :subrow_headers, type: Playbook::Props::Array,
|
16
|
+
default: []
|
10
17
|
|
11
|
-
def render_row_and_children(row, column_definitions, current_depth
|
18
|
+
def render_row_and_children(row, column_definitions, current_depth, first_parent_child)
|
12
19
|
output = ActiveSupport::SafeBuffer.new
|
20
|
+
is_first_child_of_subrow = current_depth.positive? && first_parent_child && subrow_headers[current_depth - 1].present?
|
13
21
|
|
14
|
-
output << pb_rails("advanced_table/
|
22
|
+
output << pb_rails("advanced_table/table_subrow_header", props: { row: row, column_definitions: column_definitions, depth: current_depth, subrow_header: subrow_headers[current_depth - 1] }) if is_first_child_of_subrow && enable_toggle_expansion == "all"
|
23
|
+
|
24
|
+
output << pb_rails("advanced_table/table_row", props: { id: id, row: row, column_definitions: column_definitions, depth: current_depth })
|
15
25
|
|
16
26
|
if row[:children].present?
|
17
|
-
output << content_tag(:div, class: "toggle-content", data: { advanced_table_content: row.object_id }) do
|
27
|
+
output << content_tag(:div, class: "toggle-content", data: { advanced_table_content: row.object_id.to_s + id }) do
|
18
28
|
row[:children].map do |child_row|
|
19
|
-
render_row_and_children(child_row, column_definitions, current_depth + 1)
|
29
|
+
render_row_and_children(child_row, column_definitions, current_depth + 1, row.children.first == child_row)
|
20
30
|
end.join.html_safe
|
21
31
|
end
|
22
32
|
end
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= pb_rails("table/table_header", props: { tag:"div", id:item[:accessor], classname:object.th_classname}) do %>
|
5
5
|
<%= pb_rails("flex", props:{ align: "center", justify: index.zero? ? "start" : "end", text_align:"end" }) do %>
|
6
6
|
<% if index.zero? && (object.enable_toggle_expansion == "header" || object.enable_toggle_expansion == "all") %>
|
7
|
-
<button class="gray-icon toggle-all-icon">
|
7
|
+
<button class="gray-icon toggle-all-icon" onclick="expandAllRows(this)">
|
8
8
|
<%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right:"xs" }) %>
|
9
9
|
</button>
|
10
10
|
<% end %>
|
@@ -13,4 +13,12 @@
|
|
13
13
|
<% end %>
|
14
14
|
<% end %>
|
15
15
|
<% end %>
|
16
|
-
<% end %>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<script type="text/javascript">
|
19
|
+
var expandAllRows = (element) => {
|
20
|
+
element.closest('.pb_table').querySelectorAll('.pb_advanced_table_body > .pb_table_tr [data-advanced-table]').forEach((button) => {
|
21
|
+
button.dispatchEvent(new Event('click'));
|
22
|
+
});
|
23
|
+
};
|
24
|
+
</script>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<div style="padding-left: <%= depth * 1.25 %>em">
|
6
6
|
<%= pb_rails("flex", props:{align: "center", column_gap: "xs"}) do %>
|
7
7
|
<% if index.zero? && object.row[:children].present? %>
|
8
|
-
<button id="<%= object.row.object_id %>" class="gray-icon expand-toggle-icon" data-advanced-table="true" >
|
8
|
+
<button id="<%= object.row.object_id.to_s + object.id %>" class="gray-icon expand-toggle-icon" data-advanced-table="true" >
|
9
9
|
<%= pb_rails("icon", props: { id: "advanced-table_open_icon", icon: "circle-play", cursor: "pointer" }) %>
|
10
10
|
<%= pb_rails("icon", props: { id: "advanced-table_close_icon", display: "none", icon: "circle-play", cursor: "pointer", rotation: 90 }) %>
|
11
11
|
</button>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<%= content_tag(:div,
|
2
|
+
aria: object.aria,
|
3
|
+
class: object.classname,
|
4
|
+
data: object.data,
|
5
|
+
id: object.id) do %>
|
6
|
+
<% object.column_definitions.each_with_index do |column, index| %>
|
7
|
+
<%= pb_rails("table/table_cell", props: { tag: "div", classname: object.td_classname}) do %>
|
8
|
+
<%= pb_rails("flex", props:{ align: "center", justify: "start" }) do %>
|
9
|
+
<div style="padding-left: <%= depth * 1.25 %>em">
|
10
|
+
<%= pb_rails("flex", props:{align: "center", column_gap: "xs"}) do %>
|
11
|
+
<% if index.zero? && object.row[:children].present? %>
|
12
|
+
<button class="gray-icon toggle-all-icon" onclick="expandAllSubRows(this, <%= depth %>)">
|
13
|
+
<%= pb_rails("icon", props: { icon: "arrows-from-line", cursor: "pointer", fixed_width: true, padding_right:"xs" }) %>
|
14
|
+
</button>
|
15
|
+
<% end %>
|
16
|
+
<%= pb_rails("flex/flex_item") do %>
|
17
|
+
<% if index.zero? %>
|
18
|
+
<%= pb_rails("caption", props: { margin_left: object.row[:children].present? ? "none" : "xs", text: object.subrow_header }) %>
|
19
|
+
<% end %>
|
20
|
+
<% end %>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
24
|
+
<% end %>
|
25
|
+
<% end %>
|
26
|
+
<% end %>
|
27
|
+
|
28
|
+
<script type="text/javascript">
|
29
|
+
var expandAllSubRows = (element, rowDepth) => {
|
30
|
+
element.closest(".toggle-content").querySelectorAll('.depth-sub-row-' + rowDepth + ' [data-advanced-table]').forEach((button) => {
|
31
|
+
button.dispatchEvent(new Event('click'));
|
32
|
+
});
|
33
|
+
};
|
34
|
+
</script>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Playbook
|
4
|
+
module PbAdvancedTable
|
5
|
+
class TableSubrowHeader < Playbook::KitBase
|
6
|
+
prop :column_definitions, type: Playbook::Props::Array,
|
7
|
+
default: []
|
8
|
+
prop :depth
|
9
|
+
prop :row
|
10
|
+
prop :enable_toggle_expansion, type: Playbook::Props::Enum,
|
11
|
+
values: %w[all header none],
|
12
|
+
default: "header"
|
13
|
+
prop :subrow_header, type: Playbook::Props::String,
|
14
|
+
default: ""
|
15
|
+
|
16
|
+
def classname
|
17
|
+
generate_classname("pb_table_tr", "bg-white", subrow_depth_classname, separator: " ")
|
18
|
+
end
|
19
|
+
|
20
|
+
def td_classname
|
21
|
+
generate_classname("id-cell", "chrome-styles", separator: " ")
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def subrow_depth_classname
|
27
|
+
depth.positive? ? "depth-sub-row-#{depth}" : ""
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -13,6 +13,15 @@
|
|
13
13
|
]
|
14
14
|
%>
|
15
15
|
|
16
|
+
<%
|
17
|
+
example_dropdown_options = [
|
18
|
+
{ label: 'United States', value: 'United States', id: 'us' },
|
19
|
+
{ label: 'Canada', value: 'Canada', id: 'ca' },
|
20
|
+
{ label: 'Pakistan', value: 'Pakistan', id: 'pk' },
|
21
|
+
]
|
22
|
+
|
23
|
+
%>
|
24
|
+
|
16
25
|
<%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
|
17
26
|
<%= form.typeahead :example_user, props: { data: { typeahead_example1: true, user: {} }, placeholder: "Search for a user" } %>
|
18
27
|
<%= form.text_field :example_text_field, props: { label: true } %>
|
@@ -23,6 +32,7 @@
|
|
23
32
|
<%= form.password_field :example_password_field, props: { label: true } %>
|
24
33
|
<%= form.url_field :example_url_field, props: { label: true } %>
|
25
34
|
<%= form.text_area :example_text_area, props: { label: true } %>
|
35
|
+
<%= form.dropdown_field :example_dropdown, props: { label: true, options: example_dropdown_options } %>
|
26
36
|
<%= form.select :example_select, [ ["Yes", 1], ["No", 2] ], props: { label: true } %>
|
27
37
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
28
38
|
<%= form.check_box :example_checkbox,
|
@@ -81,9 +81,10 @@ module Playbook
|
|
81
81
|
|
82
82
|
def asset_path
|
83
83
|
return unless Rails.application.config.respond_to?(:icon_path)
|
84
|
-
return unless Dir.entries(Rails.application.config.icon_path).include? "#{icon}.svg"
|
85
84
|
|
86
|
-
Rails.
|
85
|
+
base_path = Rails.application.config.icon_path
|
86
|
+
icon_path = Dir.glob(Rails.root.join(base_path, "**", "#{icon}.svg")).first
|
87
|
+
icon_path if icon_path && File.exist?(icon_path)
|
87
88
|
end
|
88
89
|
|
89
90
|
def render_svg
|
@@ -1 +1 @@
|
|
1
|
-
A pill uses both a keyword and a specific color to categorize an item. Each pill directly corresponds to a data color
|
1
|
+
A pill uses both a keyword and a specific color to categorize an item. Each pill directly corresponds to a data color <a href="https://playbook.powerapp.cloud/visual_guidelines/colors" target="_blank">here</a>.
|
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(179),o=(i=r)&&i.__esModule?i:{default:i},a=n(177);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){var i=n(90).default,r=n(269);t.exports=function(t){var e=r(t,"string");return"symbol"===i(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=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},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var i=n(210);t.exports=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(223),l=n.n(s),d=n(2),c=n(4),u=n(9),h=n(26),p=n(195),f=n(193),g=n(194),m=n(7),v=n(56),b=n(12),y=n(150);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 w=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,w=e.htmlOptions,O=void 0===w?{}:w,$=e.id,C=e.size,k=void 0===C?"md":C,S=e.children,j=e.loading,E=void 0!==j&&j,M=e.fullHeight,A=void 0!==M&&M,P=e.opened,T=e.onCancel,L=e.onConfirm,D=e.onClose,I=e.placement,N=void 0===I?"center":I,R=e.portalClassName,F=e.shouldCloseOnOverlayClick,B=void 0===F||F,z=e.status,H=e.text,W=e.title,Y=e.trigger,U=Object(d.a)(o),G=Object(d.c)(_),V=Object(d.d)(O),X={base:a()("pb_dialog",Object(d.b)("pb_dialog",k,N)),afterOpen:"pb_dialog_after_open",beforeClose:"pb_dialog_before_close"},q={base:"pb_dialog_overlay ".concat(null!==A&&(A?"xl"===k?"full_height_center":"full_height_".concat(N):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:P,et={onClose:Y?function(){Q(!1)}:D};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(y.a.Provider,{value:et},r.a.createElement("div",Object.assign({},U,G,V,{className:K}),r.a.createElement(l.a,{ariaHideApp:!1,className:X,closeTimeoutMS:200,contentLabel:"Minimal Modal Example",id:$,isOpen:tt,onRequestClose:D,overlayClassName:q,portalClassName:R,shouldCloseOnOverlayClick:B},r.a.createElement(r.a.Fragment,null,W&&!z?r.a.createElement(t.Header,null,W):null,!z&&H?r.a.createElement(t.Body,null,H):null,z&&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[z].icon,size:nt[z].size,variant:nt[z].variant}),r.a.createElement(b.a,{marginTop:"sm",size:3},W),r.a.createElement(u.a,{marginTop:"xs",text:H}))),s&&p?r.a.createElement(t.Footer,null,r.a.createElement(h.a,{htmlType:"button",loading:E,onClick:L,variant:"primary"},p),r.a.createElement(h.a,{htmlType:"button",id:"cancel-button",onClick:T,variant:"link"},s)):null,S))))};w.Header=p.a,w.Body=g.a,w.Footer=f.a,e.a=w},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(67),l=n.n(s),d=n(29),c=n.n(d),u=n(49),h=n(75),p=n(68),f=n(121),g=n.n(f),m=n(226),v=n.n(m),b=n(8),y=n.n(b),x=n(10),_=n.n(x),w=n(2),O=n(4);function $(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 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.chartData,s=t.dark,d=void 0!==s&&s,f=t.data,m=void 0===f?{}:f,b=t.disableAnimation,x=void 0!==b&&b,C=t.fullCircle,S=void 0!==C&&C,j=t.height,E=void 0===j?null:j,M=t.htmlOptions,A=void 0===M?{}:M,P=t.id,T=t.max,L=void 0===T?100:T,D=t.min,I=void 0===D?0:D,N=t.prefix,R=void 0===N?"":N,F=t.showLabels,B=void 0!==F&&F,z=t.style,H=void 0===z?"solidgauge":z,W=t.suffix,Y=void 0===W?"":W,U=t.title,G=void 0===U?"":U,V=t.tooltipHtml,X=void 0===V?'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>':V,q=t.colors,K=void 0===q?[]:q,Z=t.minorTickInterval,J=void 0===Z?null:Z,Q=t.circumference,tt=void 0===Q?S?[0,360]:[-100,100]:Q,et=k(t,["aria","chartData","dark","data","disableAnimation","fullCircle","height","htmlOptions","id","max","min","prefix","showLabels","style","suffix","title","tooltipHtml","colors","minorTickInterval","circumference"]),nt=Object(w.a)(n),it=Object(w.c)(m),rt=Object(w.d)(A);g()(c.a),v()(c.a);d?c.a.setOptions(h.a):c.a.setOptions(u.a),c.a.setOptions({tooltip:{pointFormat:X,followPointer:!0}});var ot=Object(w.b)({pb_gauge_kit:!0}),at=$(Object(i.useState)({}),2),st=at[0],lt=at[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:H,height:E},title:{text:G},yAxis:{min:I,max:L,lineWidth:0,tickWidth:0,minorTickInterval:J,tickAmount:2,tickPositions:[I,L],labels:{y:26,enabled:B}},credits:!1,series:[{data:t}],pane:{center:["50%","50%"],size:"90%",startAngle:tt[0],endAngle:tt[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:void 0!==K&&K.length>0?Object(p.a)(K):u.a.colors,plotOptions:{series:{animation:!x},solidgauge:{borderColor:void 0!==K&&1===K.length?Object(p.a)(K).join():u.a.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:y.a.text_lt_default,enabled:!0,format:'<span class="prefix">'.concat(R,"</span>")+'<span class="fix">{y:,f}</span>'+'<span class="suffix">'.concat(Y,"</span>"),style:{fontFamily:_.a.font_family_base,fontWeight:_.a.regular,fontSize:_.a.heading_2},y:-26}}}};lt(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(Object.assign({className:a()(ot,Object(O.c)(et)),id:P},nt),it),rt),highcharts:c.a,options:st})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n(55),r=n(295);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,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=typeof t||!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:e+""}function l(t,e){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,i=u(t);if(e){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return c(this,n)}}function c(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 u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=[0,20],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&&l(t,e)}(c,t);var e,n,i,s=d(c);function c(){return o(this,c),s.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?h:[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 m}));var i=n(55),r=n(184),o=n(186),a=n(189),s=n(188);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,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=typeof t||!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:e+""}function u(t,e){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return p(this,n)}}function p(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 f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=[0,20],m=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&&u(t,e)}(p,t);var e,n,i,c=h(p);function p(){return l(this,p),c.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){"false"!==this.shouldShowTooltip&&(this.popper=Object(r.a)(t,this.tooltip,{placement:this.position,modifiers:[{name:"offset",options:{offset:g}},{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}},{key:"shouldShowTooltip",get:function(){return this.element.dataset.pbTooltipShowTooltip}}])&&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 f}));var i=n(55),r=n(25);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,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!=typeof t||!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:e+""}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(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();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=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)}(d,t);var e,n,i,a=u(d);function d(){return s(this,d),a.apply(this,arguments)}return e=d,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}),d}(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(229),h=n(115),p=n(7),f=n(16),g=n(53),m=n(5),v=n(173),b=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"}))))},y=n(74),x=n(26),_=n(46),w=n(27);function O(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 C=function(t){for(var e=t.editor,n=O(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",gap:"xs",key:v},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 b=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",gap:"xs",key:"paragraph"},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(y.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:b,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingBottom:"xs",paddingTop:"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(w.a,{className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),cursor:"pointer",iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},paddingBottom:"xxs",paddingTop:"xxs",text:i})}))))},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(b,{classname:"toolbar_button ".concat(a?"is-active":""),icon:i,key:e,onclick:n,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(b,{classname:i,disable:o,icon:a,key:e,onclick:n,text:s})}))))};function j(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 E(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 E(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 E(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 M=function(t){var e=t.extensions,n=j(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(y.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:s,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingBottom:e.length>1?"xs":"none",paddingTop: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(w.a,{className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),cursor:"pointer",iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},paddingBottom:"xxs",paddingTop:"xxs",text:i})}))))},A=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(C,{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(b,{classname:o,icon:n,key:e,onclick:a,text:i})})),r.a.createElement(g.a,{orientation:"vertical"}),r.a.createElement(k,{editor:e}),n&&r.a.createElement(r.a.Fragment,null,r.a.createElement(M,{extensions:n}))),r.a.createElement(S,{editor:e})))};function P(t,e,n){var i;return(e="symbol"==typeof(i=function(t,e){if("object"!=typeof t||!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)}(e,"string"))?i:i+"")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 L(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 L(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 L(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(267).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,b=t.data,y=void 0===b?{}:b,x=t.focus,_=void 0!==x&&x,w=t.htmlOptions,O=void 0===w?{}:w,$=t.inline,C=void 0!==$&&$,k=t.extensions,S=t.name,j=t.onChange,E=void 0===j?c.e:j,M=t.placeholder,L=t.simple,D=void 0!==L&&L,I=t.sticky,N=void 0!==I&&I,R=t.template,F=void 0===R?"":R,B=t.value,z=void 0===B?"":B,H=t.maxWidth,W=void 0===H?"md":H,Y=Object(c.a)(n),U=Object(c.c)(y),G=T(Object(i.useState)(),2),V=G[0],X=G[1],q=Object(c.d)(O),K=null==V?void 0:V.element;if(V){var Z=K.parentElement.querySelector("trix-toolbar"),J=Z.querySelector("[data-trix-attribute=code]"),Q=Z.querySelector("[data-trix-attribute=inlineCode]");Q||(Q=J.cloneNode(!0)),Q.dataset.trixAttribute="inlineCode",J.insertAdjacentElement("afterend",Q),g&&V.element.after(Z);K.addEventListener("trix-selection-change",(function(){var t=function(){if(V.attributeIsActive("code"))return"block";if(V.attributeIsActive("inlineCode"))return"inline";var t=V.getSelectedRange();if(t[0]==t[1])return"block";var e=V.getSelectedDocument().toString().trim();return/\n/.test(e)?"block":"inline"}();J.hidden="inline"==t,Q.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(){V&&F&&(V.loadHTML(""),V.setSelectedRange([0,0]),V.insertHTML(F))}),[V,F]),Object(i.useEffect)((function(){K&&K.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)}}))}),[K]);var tt=D?"simple":"",et=_?"focus-editor-targets":"",nt=N?"sticky":"",it=C?"inline":"",rt=g?"toolbar-bottom":"",ot=a()(Object(d.c)(t,{maxWidth:W}),v);return ot=a()("pb_rich_text_editor_kit",tt,et,nt,it,rt,ot),r.a.createElement("div",Object.assign({},Y,U,q,{className:ot}),o?r.a.createElement("div",{className:a()("pb_rich_text_editor_advanced_container",P({},"toolbar-active",p))},p&&r.a.createElement(A,{editor:o,extensions:k}),m):r.a.createElement(u.TrixEditor,{className:"",fileParamName:S,mergeTags:[],onChange:E,onEditorReady:function(t){return X(t)},placeholder:M,value:z}))}},,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,b=void 0===v?{}:v,y=t.highlightTag,x=void 0===y?"mark":y,_=t.sanitize,w=t.searchWords,O=t.textToHighlight,$=t.unhighlightTag,C=void 0===$?"span":$,k=t.unhighlightClassName,S=void 0===k?"":k,j=t.unhighlightStyle,E=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"]),M=(0,o.findAll)({autoEscape:c,caseSensitive:h,findChunks:f,sanitize:_,searchWords:w,textToHighlight:O}),A=x,P=-1,T="",L=void 0,D=(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},E,{children:M.map((function(t,e){var i=O.substr(t.start,t.end-t.start);if(t.highlight){P++;var r=void 0;r="object"==typeof m?h?m[i]:(m=D(m))[i.toLowerCase()]:m;var o=P===+a;T=r+" "+(o?n:""),L=!0===o&&null!=d?Object.assign({},b,d):b;var l={children:i,className:T,key:e,style:L};return"string"!=typeof A&&(l.highlightIndex=P),(0,s.createElement)(A,l)}return(0,s.createElement)(C,{children:i,className:S,key:e,style:j})}))}))}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.",b(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 b(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(179),o=(i=r)&&i.__esModule?i:{default:i},a=n(177);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){var i=n(90).default,r=n(269);t.exports=function(t){var e=r(t,"string");return"symbol"===i(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=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},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var i=n(210);t.exports=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(223),l=n.n(s),d=n(2),c=n(4),u=n(9),h=n(26),p=n(195),f=n(193),g=n(194),m=n(7),v=n(56),b=n(12),y=n(150);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 w=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,w=e.htmlOptions,O=void 0===w?{}:w,$=e.id,C=e.size,k=void 0===C?"md":C,S=e.children,j=e.loading,E=void 0!==j&&j,M=e.fullHeight,A=void 0!==M&&M,P=e.opened,T=e.onCancel,L=e.onConfirm,D=e.onClose,I=e.placement,N=void 0===I?"center":I,R=e.portalClassName,F=e.shouldCloseOnOverlayClick,B=void 0===F||F,z=e.status,H=e.text,W=e.title,Y=e.trigger,U=Object(d.a)(o),G=Object(d.c)(_),V=Object(d.d)(O),X={base:a()("pb_dialog",Object(d.b)("pb_dialog",k,N)),afterOpen:"pb_dialog_after_open",beforeClose:"pb_dialog_before_close"},q={base:"pb_dialog_overlay ".concat(null!==A&&(A?"xl"===k?"full_height_center":"full_height_".concat(N):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:P,et={onClose:Y?function(){Q(!1)}:D};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(y.a.Provider,{value:et},r.a.createElement("div",Object.assign({},U,G,V,{className:K}),r.a.createElement(l.a,{ariaHideApp:!1,className:X,closeTimeoutMS:200,contentLabel:"Minimal Modal Example",id:$,isOpen:tt,onRequestClose:D,overlayClassName:q,portalClassName:R,shouldCloseOnOverlayClick:B},r.a.createElement(r.a.Fragment,null,W&&!z?r.a.createElement(t.Header,null,W):null,!z&&H?r.a.createElement(t.Body,null,H):null,z&&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[z].icon,size:nt[z].size,variant:nt[z].variant}),r.a.createElement(b.a,{marginTop:"sm",size:3},W),r.a.createElement(u.a,{marginTop:"xs",text:H}))),s&&p?r.a.createElement(t.Footer,null,r.a.createElement(h.a,{htmlType:"button",loading:E,onClick:L,variant:"primary"},p),r.a.createElement(h.a,{htmlType:"button",id:"cancel-button",onClick:T,variant:"link"},s)):null,S))))};w.Header=p.a,w.Body=g.a,w.Footer=f.a,e.a=w},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(67),l=n.n(s),d=n(29),c=n.n(d),u=n(49),h=n(75),p=n(68),f=n(121),g=n.n(f),m=n(226),v=n.n(m),b=n(8),y=n.n(b),x=n(10),_=n.n(x),w=n(2),O=n(4);function $(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 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.chartData,s=t.dark,d=void 0!==s&&s,f=t.data,m=void 0===f?{}:f,b=t.disableAnimation,x=void 0!==b&&b,C=t.fullCircle,S=void 0!==C&&C,j=t.height,E=void 0===j?null:j,M=t.htmlOptions,A=void 0===M?{}:M,P=t.id,T=t.max,L=void 0===T?100:T,D=t.min,I=void 0===D?0:D,N=t.prefix,R=void 0===N?"":N,F=t.showLabels,B=void 0!==F&&F,z=t.style,H=void 0===z?"solidgauge":z,W=t.suffix,Y=void 0===W?"":W,U=t.title,G=void 0===U?"":U,V=t.tooltipHtml,X=void 0===V?'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>':V,q=t.colors,K=void 0===q?[]:q,Z=t.minorTickInterval,J=void 0===Z?null:Z,Q=t.circumference,tt=void 0===Q?S?[0,360]:[-100,100]:Q,et=k(t,["aria","chartData","dark","data","disableAnimation","fullCircle","height","htmlOptions","id","max","min","prefix","showLabels","style","suffix","title","tooltipHtml","colors","minorTickInterval","circumference"]),nt=Object(w.a)(n),it=Object(w.c)(m),rt=Object(w.d)(A);g()(c.a),v()(c.a);d?c.a.setOptions(h.a):c.a.setOptions(u.a),c.a.setOptions({tooltip:{pointFormat:X,followPointer:!0}});var ot=Object(w.b)({pb_gauge_kit:!0}),at=$(Object(i.useState)({}),2),st=at[0],lt=at[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:H,height:E},title:{text:G},yAxis:{min:I,max:L,lineWidth:0,tickWidth:0,minorTickInterval:J,tickAmount:2,tickPositions:[I,L],labels:{y:26,enabled:B}},credits:!1,series:[{data:t}],pane:{center:["50%","50%"],size:"90%",startAngle:tt[0],endAngle:tt[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:void 0!==K&&K.length>0?Object(p.a)(K):u.a.colors,plotOptions:{series:{animation:!x},solidgauge:{borderColor:void 0!==K&&1===K.length?Object(p.a)(K).join():u.a.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:y.a.text_lt_default,enabled:!0,format:'<span class="prefix">'.concat(R,"</span>")+'<span class="fix">{y:,f}</span>'+'<span class="suffix">'.concat(Y,"</span>"),style:{fontFamily:_.a.font_family_base,fontWeight:_.a.regular,fontSize:_.a.heading_2},y:-26}}}};lt(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(Object.assign({className:a()(ot,Object(O.c)(et)),id:P},nt),it),rt),highcharts:c.a,options:st})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n(55),r=n(295);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,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=typeof t||!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:e+""}function l(t,e){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,i=u(t);if(e){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return c(this,n)}}function c(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 u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=[0,20],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&&l(t,e)}(c,t);var e,n,i,s=d(c);function c(){return o(this,c),s.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?h:[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 m}));var i=n(55),r=n(184),o=n(186),a=n(189),s=n(188);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,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=typeof t||!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:e+""}function u(t,e){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return p(this,n)}}function p(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 f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=[0,20],m=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&&u(t,e)}(p,t);var e,n,i,c=h(p);function p(){return l(this,p),c.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){"false"!==this.shouldShowTooltip&&(this.popper=Object(r.a)(t,this.tooltip,{placement:this.position,strategy:"fixed",modifiers:[{name:"offset",options:{offset:g}},{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}},{key:"shouldShowTooltip",get:function(){return this.element.dataset.pbTooltipShowTooltip}}])&&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 f}));var i=n(55),r=n(25);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,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!=typeof t||!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:e+""}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(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}();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=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)}(d,t);var e,n,i,a=u(d);function d(){return s(this,d),a.apply(this,arguments)}return e=d,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}),d}(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(229),h=n(115),p=n(7),f=n(16),g=n(53),m=n(5),v=n(173),b=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"}))))},y=n(74),x=n(26),_=n(46),w=n(27);function O(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 C=function(t){for(var e=t.editor,n=O(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",gap:"xs",key:v},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 b=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",gap:"xs",key:"paragraph"},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(y.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:b,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingBottom:"xs",paddingTop:"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(w.a,{className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),cursor:"pointer",iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},paddingBottom:"xxs",paddingTop:"xxs",text:i})}))))},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(b,{classname:"toolbar_button ".concat(a?"is-active":""),icon:i,key:e,onclick:n,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(b,{classname:i,disable:o,icon:a,key:e,onclick:n,text:s})}))))};function j(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 E(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 E(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 E(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 M=function(t){var e=t.extensions,n=j(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(y.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:s,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingBottom:e.length>1?"xs":"none",paddingTop: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(w.a,{className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),cursor:"pointer",iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},paddingBottom:"xxs",paddingTop:"xxs",text:i})}))))},A=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(C,{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(b,{classname:o,icon:n,key:e,onclick:a,text:i})})),r.a.createElement(g.a,{orientation:"vertical"}),r.a.createElement(k,{editor:e}),n&&r.a.createElement(r.a.Fragment,null,r.a.createElement(M,{extensions:n}))),r.a.createElement(S,{editor:e})))};function P(t,e,n){var i;return(e="symbol"==typeof(i=function(t,e){if("object"!=typeof t||!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)}(e,"string"))?i:i+"")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 L(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 L(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 L(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(267).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,b=t.data,y=void 0===b?{}:b,x=t.focus,_=void 0!==x&&x,w=t.htmlOptions,O=void 0===w?{}:w,$=t.inline,C=void 0!==$&&$,k=t.extensions,S=t.name,j=t.onChange,E=void 0===j?c.e:j,M=t.placeholder,L=t.simple,D=void 0!==L&&L,I=t.sticky,N=void 0!==I&&I,R=t.template,F=void 0===R?"":R,B=t.value,z=void 0===B?"":B,H=t.maxWidth,W=void 0===H?"md":H,Y=Object(c.a)(n),U=Object(c.c)(y),G=T(Object(i.useState)(),2),V=G[0],X=G[1],q=Object(c.d)(O),K=null==V?void 0:V.element;if(V){var Z=K.parentElement.querySelector("trix-toolbar"),J=Z.querySelector("[data-trix-attribute=code]"),Q=Z.querySelector("[data-trix-attribute=inlineCode]");Q||(Q=J.cloneNode(!0)),Q.dataset.trixAttribute="inlineCode",J.insertAdjacentElement("afterend",Q),g&&V.element.after(Z);K.addEventListener("trix-selection-change",(function(){var t=function(){if(V.attributeIsActive("code"))return"block";if(V.attributeIsActive("inlineCode"))return"inline";var t=V.getSelectedRange();if(t[0]==t[1])return"block";var e=V.getSelectedDocument().toString().trim();return/\n/.test(e)?"block":"inline"}();J.hidden="inline"==t,Q.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(){V&&F&&(V.loadHTML(""),V.setSelectedRange([0,0]),V.insertHTML(F))}),[V,F]),Object(i.useEffect)((function(){K&&K.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)}}))}),[K]);var tt=D?"simple":"",et=_?"focus-editor-targets":"",nt=N?"sticky":"",it=C?"inline":"",rt=g?"toolbar-bottom":"",ot=a()(Object(d.c)(t,{maxWidth:W}),v);return ot=a()("pb_rich_text_editor_kit",tt,et,nt,it,rt,ot),r.a.createElement("div",Object.assign({},Y,U,q,{className:ot}),o?r.a.createElement("div",{className:a()("pb_rich_text_editor_advanced_container",P({},"toolbar-active",p))},p&&r.a.createElement(A,{editor:o,extensions:k}),m):r.a.createElement(u.TrixEditor,{className:"",fileParamName:S,mergeTags:[],onChange:E,onEditorReady:function(t){return X(t)},placeholder:M,value:z}))}},,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,b=void 0===v?{}:v,y=t.highlightTag,x=void 0===y?"mark":y,_=t.sanitize,w=t.searchWords,O=t.textToHighlight,$=t.unhighlightTag,C=void 0===$?"span":$,k=t.unhighlightClassName,S=void 0===k?"":k,j=t.unhighlightStyle,E=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"]),M=(0,o.findAll)({autoEscape:c,caseSensitive:h,findChunks:f,sanitize:_,searchWords:w,textToHighlight:O}),A=x,P=-1,T="",L=void 0,D=(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},E,{children:M.map((function(t,e){var i=O.substr(t.start,t.end-t.start);if(t.highlight){P++;var r=void 0;r="object"==typeof m?h?m[i]:(m=D(m))[i.toLowerCase()]:m;var o=P===+a;T=r+" "+(o?n:""),L=!0===o&&null!=d?Object.assign({},b,d):b;var l={children:i,className:T,key:e,style:L};return"string"!=typeof A&&(l.highlightIndex=P),(0,s.createElement)(A,l)}return(0,s.createElement)(C,{children:i,className:S,key:e,style:j})}))}))}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.",b(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 b(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
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Playbook
|
4
|
+
module Forms
|
5
|
+
class Builder
|
6
|
+
def dropdown_field(name, props: {})
|
7
|
+
props[:name] = name
|
8
|
+
props[:margin_bottom] = "sm"
|
9
|
+
props[:label] = @template.label(@object_name, name) if props[:label] == true
|
10
|
+
@template.pb_rails("dropdown", props: props)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -13,6 +13,7 @@ module Playbook
|
|
13
13
|
require_relative "builder/intl_telephone_field"
|
14
14
|
require_relative "builder/multi_level_select_field"
|
15
15
|
require_relative "builder/phone_number_field"
|
16
|
+
require_relative "builder/dropdown_field"
|
16
17
|
|
17
18
|
prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
|
18
19
|
prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
|
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.28.0.pre.alpha.
|
4
|
+
version: 13.28.0.pre.alpha.PLAY13592980
|
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: 2024-05-
|
12
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -263,6 +263,8 @@ files:
|
|
263
263
|
- app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx
|
264
264
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.html.erb
|
265
265
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.md
|
266
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb
|
267
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.md
|
266
268
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
|
267
269
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md
|
268
270
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
|
@@ -297,6 +299,8 @@ files:
|
|
297
299
|
- app/pb_kits/playbook/pb_advanced_table/table_header.rb
|
298
300
|
- app/pb_kits/playbook/pb_advanced_table/table_row.html.erb
|
299
301
|
- app/pb_kits/playbook/pb_advanced_table/table_row.rb
|
302
|
+
- app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
|
303
|
+
- app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
|
300
304
|
- app/pb_kits/playbook/pb_avatar/Utilities/GetPlacementPropsHelper.tsx
|
301
305
|
- app/pb_kits/playbook/pb_avatar/_avatar.scss
|
302
306
|
- app/pb_kits/playbook/pb_avatar/_avatar.tsx
|
@@ -2930,6 +2934,7 @@ files:
|
|
2930
2934
|
- lib/playbook/forms/builder/checkbox_field.rb
|
2931
2935
|
- lib/playbook/forms/builder/collection_select_field.rb
|
2932
2936
|
- lib/playbook/forms/builder/date_picker_field.rb
|
2937
|
+
- lib/playbook/forms/builder/dropdown_field.rb
|
2933
2938
|
- lib/playbook/forms/builder/form_field_builder.rb
|
2934
2939
|
- lib/playbook/forms/builder/intl_telephone_field.rb
|
2935
2940
|
- lib/playbook/forms/builder/multi_level_select_field.rb
|