playbook_ui 13.2.0 → 13.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c03b530a4b2b16b5dcf7ea348a4aa6a66db48f68359fed8469e47746c6fad2c
4
- data.tar.gz: 5695a441ba55870888683da55c49814c94de842a952614d711325bfd1813fe35
3
+ metadata.gz: 9f58a60dbe08112a0b7b1cea36c7838386d7b7577809d4030a9b139b179df83d
4
+ data.tar.gz: 4bfb13a37f222531335ffa4b950026c1f0c7daeb2b33aecf3cf06fd02fa3684a
5
5
  SHA512:
6
- metadata.gz: cb2dd83ad7e0030f750adb29cab24f33d979922ac9763e35de399c8df427053ae501e0b24a168116c6fccf876885bf7fc9e7e0356b94bae6ef7ccb14cf7bf45c
7
- data.tar.gz: 51fa2673e72139fdfce189b16a2364430eb8518fb9480d5b8c203bd66956478654506a20e358fbd6e6de955c97270503ed69f92857fe51789ddc30595daff9b3
6
+ metadata.gz: 8554a0a8db1af2d8ca5e08f92f03354c68df334eeea9c8d33f103e825295fabc25e28c8a2466dadb381e4a11810d0059771ddeff2dd60505ba3f181f1af5e211
7
+ data.tar.gz: 06dd58fecce7e733a01e77d54cdad22b051f7ec5036e881726ecc283407d28451c98fce6b05b4649fa13bd7868d601d9d1767dc0cb52393f55352314177b7210
@@ -37,10 +37,15 @@
37
37
  font-size: $font_smaller;
38
38
  letter-spacing: $lspace_loose;
39
39
  }
40
+
41
+ &[class*=_truncate] {
42
+ @include body_truncate;
43
+ }
40
44
 
41
45
  @each $status_name, $status_value in $pb_body_status {
42
46
  &[class*=#{$status_name}] {
43
47
  @include pb_body($status_value);
48
+ @include body_truncate;
44
49
  }
45
50
  }
46
51
 
@@ -19,6 +19,7 @@ type BodyProps = {
19
19
  status?: 'neutral' | 'negative' | 'positive',
20
20
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div',
21
21
  text?: string,
22
+ truncate?: null | '1' | '2' | '3' | '4' | '5',
22
23
  variant?: null | 'link',
23
24
  } & GlobalProps
24
25
 
@@ -36,13 +37,15 @@ const Body = (props: BodyProps): React.ReactElement => {
36
37
  status = null,
37
38
  tag = 'div',
38
39
  text = '',
40
+ truncate = null,
39
41
  variant = null,
40
42
  } = props
41
43
 
42
44
  const ariaProps: {[key: string]: any} = buildAriaProps(aria)
43
45
  const dataProps: {[key: string]: any} = buildDataProps(data)
46
+ const isTruncated = truncate ? `truncate_${truncate}` : ''
44
47
  const classes = classnames(
45
- buildCss('pb_body_kit', color, variant, status),
48
+ buildCss('pb_body_kit', color, variant, status, isTruncated),
46
49
  globalProps(props),
47
50
  className
48
51
  )
@@ -36,6 +36,25 @@ $pb_body_status: (
36
36
  font-family: $font-family-base;
37
37
  }
38
38
 
39
+ $pb_body_truncate: (
40
+ truncate_1: 1,
41
+ truncate_2: 2,
42
+ truncate_3: 3,
43
+ truncate_4: 4,
44
+ truncate_5: 5
45
+ );
46
+
47
+ @mixin body_truncate {
48
+ @each $name, $number in $pb_body_truncate {
49
+ &[class*=_#{$name}] {
50
+ overflow: hidden;
51
+ display: -webkit-box;
52
+ -webkit-line-clamp: $number;
53
+ -webkit-box-orient: vertical;
54
+ }
55
+ }
56
+ }
57
+
39
58
 
40
59
  // Colors ======================
41
60
  @mixin pb_body_light {
@@ -18,9 +18,12 @@ module Playbook
18
18
  default: false
19
19
  prop :highlighted_text, type: Playbook::Props::Array,
20
20
  default: []
21
+ prop :truncate, type: Playbook::Props::Enum,
22
+ values: [nil, "1", "2", "3", "4", "5"],
23
+ default: nil
21
24
 
22
25
  def classname
23
- generate_classname("pb_body_kit", color_class, status_class)
26
+ generate_classname("pb_body_kit", color_class, status_class, is_truncated)
24
27
  end
25
28
 
26
29
  def content
@@ -28,6 +31,10 @@ module Playbook
28
31
  highlighting ? apply_highlight(body_text) : body_text
29
32
  end
30
33
 
34
+ def is_truncated
35
+ truncate ? "truncate_#{truncate}" : nil
36
+ end
37
+
31
38
  private
32
39
 
33
40
  def apply_highlight(text)
@@ -0,0 +1,54 @@
1
+ <%= pb_rails("table", props: { size: "lg"} ) do %>
2
+ <thead>
3
+ <tr>
4
+ <%= pb_rails("table/table_header", props: {
5
+ id: "name",
6
+ colspan: 2,
7
+ sort_menu: [
8
+ { item: "Name", link: "?q[sorts]=name+desc", active: false, direction: "desc" },
9
+ { item: "Name", link: "?q[sorts]=name+asc", active: true, direction: "asc" },
10
+ ],
11
+ }) %>
12
+ <%= pb_rails("table/table_header", props: {
13
+ text: "Age",
14
+ id: "age",
15
+ sort_menu: [
16
+ { item: "Age", link: "?q[sorts]=age+desc", active: false, direction: "desc" },
17
+ { item: "Age", link: "?q[sorts]=age+asc", active: false, direction: "asc" },
18
+ ],
19
+ }) %>
20
+ <%= pb_rails("table/table_header", props: {
21
+ text: "Territory",
22
+ id: "territory",
23
+ sort_menu: [
24
+ { item: "Territory", link: "?q[sorts]=territory+desc", active: false, direction: "desc" },
25
+ { item: "Territory", link: "?q[sorts]=territory+asc", active: false, direction: "asc" },
26
+ ],
27
+ }) %>
28
+ <%= pb_rails("table/table_header", props: { text: "Job Title" }) %>
29
+ </tr>
30
+ </thead>
31
+ <tbody>
32
+ <tr>
33
+ <td>Name 1</td>
34
+ <td>Name 2</td>
35
+ <td>Value 3</td>
36
+ <td>Value 4</td>
37
+ <td>Value 5</td>
38
+ </tr>
39
+ <tr>
40
+ <td>Name 1</td>
41
+ <td>Name 2</td>
42
+ <td>Value 3</td>
43
+ <td>Value 4</td>
44
+ <td>Value 5</td>
45
+ </tr>
46
+ <tr>
47
+ <td>Name 1</td>
48
+ <td>Name 2</td>
49
+ <td>Value 3</td>
50
+ <td>Value 4</td>
51
+ <td>Value 5</td>
52
+ </tr>
53
+ </tbody>
54
+ <% end %>
@@ -0,0 +1 @@
1
+ A kit that produces a `<th>` tag. You can also use the `sort_menu` prop to make the header a sortable link, just like <a href="https://playbook.powerapp.cloud/kits/filter#sort-only" target="_blank">our filter kit.</a>
@@ -4,6 +4,7 @@ examples:
4
4
  - table_md: Medium
5
5
  - table_lg: Large
6
6
  - table_sticky: Sticky Header
7
+ - table_header: Table Header
7
8
  - table_alignment_row: Row Alignment
8
9
  - table_alignment_column: Column Alignment
9
10
  - table_alignment_shift_row: Shift Row
@@ -17,3 +17,4 @@
17
17
  @import "desktop_collapse";
18
18
  @import "sticky_header";
19
19
  @import "vertical_border";
20
+ @import "table_header";
@@ -0,0 +1,31 @@
1
+
2
+ $text_align_values: (
3
+ start: start,
4
+ end: end,
5
+ left: left,
6
+ right: right,
7
+ center: center,
8
+ justify: justify,
9
+ justify-all: justify-all,
10
+ match-parent: match-parent,
11
+ );
12
+
13
+ [class^=pb_table] {
14
+ thead {
15
+ [class^=pb_table_header_kit] {
16
+ @each $align_name, $align_value in $text_align_values {
17
+ &[class*=_align_#{$align_name}] {
18
+ text-align: $align_value;
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }
24
+
25
+ [class^=pb_table] {
26
+ thead {
27
+ [class^=pb_th_active] {
28
+ color: $primary !important;
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,64 @@
1
+ <%= content_tag(:th,
2
+ colspan: object.colspan,
3
+ aria: object.aria,
4
+ class: object.classname,
5
+ data: object.data,
6
+ id: "pb-th#{object.id}") do %>
7
+ <% object.sort_menu.each do |item| %>
8
+ <% if item[:active] == true %>
9
+ <%= pb_rails("flex", props:{ align: object.align_content }) do %>
10
+ <%= content.presence || content_tag(:span, item[:item], class: "pb_th_active") %>
11
+ <span class="pb_th_active">
12
+ <%= pb_rails("icon", props: { icon: object.sort_icon(item[:direction]),
13
+ fixed_width: true,
14
+ classname: "pb_th_active",
15
+ padding_left: "xs" }) %>
16
+ </span>
17
+ <% end %>
18
+ <% end %>
19
+ <% end %>
20
+ <% if object.sort_menu.all? { |item| item[:active] == false } %>
21
+ <%= pb_rails("flex", props:{ align: object.align_content }) do %>
22
+ <%= content.presence || object.text %>
23
+ <%= pb_rails("icon", props: { icon: "arrow-up-arrow-down",
24
+ fixed_width: true,
25
+ padding_left: "xs" }) %>
26
+ <% end %>
27
+ <% else %>
28
+ <%= content.presence || object.text %>
29
+ <% end %>
30
+ <% if object.sort_menu != [{}] && object.colspan > 1 %>
31
+ <%= pb_rails("popover", props: { classname: "pb_filter_sort_menu",
32
+ close_on_click: "outside",
33
+ trigger_element_id: "pb-th#{object.id}",
34
+ tooltip_id: "sort-filter-btn-tooltip#{object.id}",
35
+ position: object.placement ,
36
+ padding: 'none'}) do %>
37
+ <%= pb_rails("list") do %>
38
+ <% object.sort_menu.each do |item| %>
39
+ <%= pb_rails("list/item") do %>
40
+ <%= pb_rails("button", props: { variant: "link" ,
41
+ classname: "p-0",
42
+ text: item[:item],
43
+ link: item[:link],
44
+ icon: sort_icon(item[:direction]),
45
+ icon_right: true }) %>
46
+ <% end %>
47
+ <% end %>
48
+ <% end %>
49
+ <% end %>
50
+ <% end %>
51
+ <% end %>
52
+ <% if object.sort_menu != [{}] && object.colspan == 1 %>
53
+ <script>
54
+ document.addEventListener("DOMContentLoaded", function() {
55
+ var thId = `<%= "#pb-th#{object.id}" %>`
56
+ var firstLink = `<%= next_link %>`
57
+ var thElement = document.querySelector(thId);
58
+
59
+ thElement.addEventListener("click", function() {
60
+ window.location.href = firstLink;
61
+ });
62
+ });
63
+ </script>
64
+ <% end %>
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Playbook
4
+ module PbTable
5
+ class TableHeader < Playbook::KitBase
6
+ prop :align, type: Playbook::Props::Enum,
7
+ values: %w[start center end stretch baseline none],
8
+ default: "start"
9
+ prop :align_content, type: Playbook::Props::Enum,
10
+ values: %w[start center end stretch baseline none],
11
+ default: "center"
12
+ prop :colspan, type: Playbook::Props::Number,
13
+ default: 1
14
+ prop :placement, type: Playbook::Props::Enum,
15
+ values: %w[top bottom left right top-start top-end bottom-start bottom-end right-start right-end left-start left-end],
16
+ default: "bottom-start"
17
+ prop :sort_menu, type: Playbook::Props::HashArray,
18
+ default: [{}]
19
+ prop :text, type: Playbook::Props::String,
20
+ default: ""
21
+
22
+ def classname
23
+ generate_classname("pb_table_header_kit", align_class)
24
+ end
25
+
26
+ def align_class
27
+ align.present? ? "align_#{align}" : nil
28
+ end
29
+
30
+ def next_link
31
+ return sort_menu[0][:link] if sort_menu.all? { |item| item[:active] == false }
32
+
33
+ sort_menu.each_with_index do |item, index|
34
+ if item[:active] == true
35
+ next_index = (index + 1) % sort_menu.length
36
+ sort_menu[next_index][:link]
37
+ end
38
+ end
39
+ end
40
+
41
+ def sort_icon(direction)
42
+ case direction
43
+ when "asc"
44
+ "sort-amount-up"
45
+ when "desc"
46
+ "sort-amount-down"
47
+ else
48
+ ""
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -35,6 +35,10 @@
35
35
  @include pb_title_thin;
36
36
  }
37
37
 
38
+ &[class*=_truncate] {
39
+ @include title_truncate;
40
+ }
41
+
38
42
  @each $size, $size_value in $breakpoints_grid {
39
43
  @each $title_size_value in [1, 2, 3, 4] {
40
44
  $min_size: map-get($size_value, "min");
@@ -46,6 +50,7 @@
46
50
  @else if $title_size_value == 3 { @include pb_title_3; }
47
51
  @else if $title_size_value == 4 { @include pb_title_4; }
48
52
  @include title_colors;
53
+ @include title_truncate;
49
54
  @if $title_size_value != 4 { @include pb_title_bold; }
50
55
  }
51
56
  }
@@ -17,6 +17,7 @@ type TitleProps = {
17
17
  size?: SizeType | SizeResponsiveType,
18
18
  tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "span",
19
19
  text?: string,
20
+ truncate?: null | '1' | '2' | '3' | '4' | '5',
20
21
  variant?: null | "link",
21
22
  } & GlobalProps
22
23
 
@@ -33,12 +34,14 @@ const Title = (props: TitleProps): React.ReactElement => {
33
34
  bold = true,
34
35
  tag = 'h3',
35
36
  text,
37
+ truncate = null,
36
38
  variant = null,
37
39
  } = props
38
40
 
39
41
  const ariaProps: {[key: string]: string | number} = buildAriaProps(aria)
40
42
  const dataProps: {[key: string]: string | number} = buildDataProps(data)
41
43
  const getBold = bold ? '' : 'thin'
44
+ const isTruncated = truncate ? `truncate_${truncate}` : null
42
45
  const isSizeNumberOrString = typeof size === "number" || typeof size === "string"
43
46
 
44
47
  const buildResponsiveSizeCss = () => {
@@ -54,7 +57,7 @@ const Title = (props: TitleProps): React.ReactElement => {
54
57
  }
55
58
 
56
59
  const classes = classnames(
57
- buildCss('pb_title_kit', isSizeNumberOrString ? `size_${size}` : "", variant, color, getBold),
60
+ buildCss('pb_title_kit', isSizeNumberOrString ? `size_${size}` : "", variant, color, getBold, isTruncated),
58
61
  globalProps(props),
59
62
  buildResponsiveSizeCss(),
60
63
  className
@@ -15,4 +15,23 @@ $pb_title_colors: (
15
15
  color: $color
16
16
  }
17
17
  }
18
+ }
19
+
20
+ $pb_title_truncate: (
21
+ truncate_1: 1,
22
+ truncate_2: 2,
23
+ truncate_3: 3,
24
+ truncate_4: 4,
25
+ truncate_5: 5
26
+ );
27
+
28
+ @mixin title_truncate {
29
+ @each $name, $number in $pb_title_truncate {
30
+ &[class*=_#{$name}] {
31
+ overflow: hidden;
32
+ display: -webkit-box;
33
+ -webkit-line-clamp: $number;
34
+ -webkit-box-orient: vertical;
35
+ }
36
+ }
18
37
  }
@@ -16,12 +16,15 @@ module Playbook
16
16
  default: nil,
17
17
  deprecated: true
18
18
  prop :bold, type: Playbook::Props::Boolean, default: true
19
+ prop :truncate, type: Playbook::Props::Enum,
20
+ values: [nil, "1", "2", "3", "4", "5"],
21
+ default: nil
19
22
 
20
23
  def classname
21
24
  if is_size_responsive
22
- generate_classname("pb_title_kit", variant, color, is_bold) + generate_responsive_size_classname
25
+ generate_classname("pb_title_kit", variant, color, is_bold, is_truncated) + generate_responsive_size_classname
23
26
  else
24
- generate_classname("pb_title_kit", size, variant, color, is_bold)
27
+ generate_classname("pb_title_kit", size, variant, color, is_bold, is_truncated)
25
28
  end
26
29
  end
27
30
 
@@ -29,6 +32,10 @@ module Playbook
29
32
  bold ? nil : "thin"
30
33
  end
31
34
 
35
+ def is_truncated
36
+ truncate ? "truncate_#{truncate}" : nil
37
+ end
38
+
32
39
  def is_size_responsive
33
40
  try(:size).is_a?(::Hash)
34
41
  end
@@ -3,7 +3,7 @@
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var i=arguments[e];if(i){var o=typeof i;if("string"===o||"number"===o)t.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&t.push(a)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){t.push(i.toString());continue}for(var s in i)n.call(i,s)&&i[s]&&t.push(s)}}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(i=function(){return r}.apply(e,[]))||(t.exports=i)}()},function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h}));var i=n(22),r=n(54),o=[0,1];function a(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 s(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 s(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 s(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 l=function(t,e){return Object.keys(t).map((function(n){var i="string"==typeof t[n]?Object(r.a)(t[n]):t[n];return"".concat(e,"_").concat(n,"_").concat(i)})).join(" ")},d={hoverProps:function(t){var e=t.hover,n="";return e?(n+=e.shadow?"hover_shadow_".concat(e.shadow," "):"",n+=e.background?"hover_background_".concat(e.background," "):"",n+=e.scale?"hover_scale_".concat(e.scale," "):""):n},spacingProps:function(t){var e=t.marginRight,n=t.marginLeft,i=t.marginTop,r=t.marginBottom,o=t.marginX,s=t.marginY,l=t.margin,d=t.paddingRight,c=t.paddingLeft,u=t.paddingTop,h=t.paddingBottom,p=t.paddingX,f=t.paddingY,g=t.padding,m="",v={marginRight:e,marginLeft:n,marginTop:i,marginBottom:r,marginX:o,marginY:s,margin:l,paddingRight:d,paddingLeft:c,paddingTop:u,paddingBottom:h,paddingX:p,paddingY:f,padding:g};function y(t){return{marginRight:"mr",marginLeft:"ml",marginTop:"mt",marginBottom:"mb",marginX:"mx",marginY:"my",margin:"m",paddingRight:"pr",paddingLeft:"pl",paddingTop:"pt",paddingBottom:"pb",paddingX:"px",paddingY:"py",padding:"p"}[t]}return Object.entries(v).forEach((function(t){var e=a(t,2),n=e[0],i=e[1];if(i)if("object"==typeof i)m+=function(t,e){var n="";return Object.entries(t).forEach((function(t){var i=a(t,2),r=i[0],o=i[1];n+="".concat(e,"_").concat(r,"_").concat(o," ")})),n}(i,y(n));else{var r=y(n);m+="".concat(r,"_").concat(i," ")}})),m.trim()},borderRadiusProps:function(t){var e=t.borderRadius,n="";return n+=e?"border_radius_".concat(e," "):""},darkProps:function(t){return t.dark?"dark":""},numberSpacingProps:function(t){var e=t.numberSpacing,n="";return n+=e?"ns_".concat(e," "):""},maxWidthProps:function(t){var e=t.maxWidth,n="";return n+=e?"max_width_".concat(e," "):""},zIndexProps:function(t){var e="";return Object.entries(t).forEach((function(t){"zIndex"==t[0]&&("number"==typeof t[1]?e+="z_index_".concat(t[1]," "):"object"==typeof t[1]&&Object.entries(t[1]).forEach((function(t){e+="z_index_".concat(t[0],"_").concat(t[1]," ")})))})),e},shadowProps:function(t){var e=t.shadow,n="";return n+=e?"shadow_".concat(e," "):""},lineHeightProps:function(t){var e=t.lineHeight,n="";return n+=e?"line_height_".concat(e," "):""},displayProps:function(t){var e="";return Object.entries(t).forEach((function(t){"display"==t[0]&&("string"==typeof t[1]?e+="display_".concat(t[1]," "):"object"==typeof t[1]&&Object.entries(t[1]).forEach((function(t){e+="display_".concat(t[0],"_").concat(t[1]," ")})))})),e},cursorProps:function(t){var e=t.cursor,n="";return n+=e?"cursor_".concat(Object(r.a)(e)):""},alignContentProps:function(t){var e=t.alignContent;return"object"==typeof e?l(e,"align_content"):e?"align_content_".concat(Object(r.a)(e)):""},alignItemsProps:function(t){var e=t.alignItems;return"object"==typeof e?l(e,"align_items"):e?"align_items_".concat(Object(r.a)(e)):""},alignSelfProps:function(t){var e=t.alignSelf;return"object"==typeof e?l(e,"align_self"):e?"align_self_".concat(e):""},flexDirectionProps:function(t){var e=t.flexDirection;return"object"==typeof e?l(e,"flex_direction"):e?"flex_direction_".concat(Object(r.a)(e)):""},flexWrapProps:function(t){var e=t.flexWrap;return"object"==typeof e?l(e,"flex_wrap"):e?"flex_wrap_".concat(Object(r.a)(e)):""},flexProps:function(t){var e=t.flex;return"object"==typeof e?l(e,"flex"):e?"flex_".concat(e):""},flexGrowProps:function(t){var e=t.flexGrow;return"object"==typeof e?l(e,"flex_grow"):o.includes(e)?"flex_grow_".concat(e):""},flexShrinkProps:function(t){var e=t.flexShrink;return"object"==typeof e?l(e,"flex_shrink"):o.includes(e)?"flex_shrink_".concat(e):""},justifyContentProps:function(t){var e=t.justifyContent;return"object"==typeof e?l(e,"justify_content"):e?"justify_content_".concat(Object(r.a)(e)):""},justifySelfProps:function(t){var e=t.justifySelf;return"object"==typeof e?l(e,"justify_self"):e?"justify_self_".concat(e):""},orderProps:function(t){var e=t.order;return"object"==typeof e?l(e,"flex_order"):e?"flex_order_".concat(e):""},positionProps:function(t){var e=t.position,n="";return n+=e&&"static"!==e?"position_".concat(e):""}},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},t),e);return Object.keys(d).map((function(t){return d[t](n)})).filter((function(t){return(null==t?void 0:t.length)>0})).join(" ")},u=function(t){},h=function(t){return Object(i.omit)(t,["marginRight","marginLeft","marginTop","marginBottom","marginX","marginY","margin","paddingRight","paddingLeft","paddingTop","paddingBottom","paddingX","paddingY","padding","dark"])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(147);function r(t,e,n){return(e=Object(i.a)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={horizontal:"fa-flip-horizontal",vertical:"fa-flip-vertical",both:"fa-flip-horizontal fa-flip-vertical",none:""};e.a=function(t){var e,n=t.aria,i=void 0===n?{}:n,o=t.border,u=void 0!==o&&o,h=t.className,p=t.customIcon,f=t.data,g=void 0===f?{}:f,m=t.fixedWidth,v=void 0===m||m,y=t.flip,b=void 0===y?"none":y,x=t.icon,_=t.id,O=t.inverse,w=void 0!==O&&O,C=t.listItem,$=void 0!==C&&C,k=t.pull,E=t.pulse,S=void 0!==E&&E,j=t.rotation,A=t.size,M=t.fontStyle,D=void 0===M?"far":M,P=t.spin,T=(d(e={"fa-border":u,"fa-fw":v,"fa-inverse":w,"fa-li":$,"fa-pulse":S,"fa-spin":void 0!==P&&P},"fa-".concat(A),A),d(e,"fa-pull-".concat(k),k),d(e,"fa-rotate-".concat(j),j),e);p||(T["fa-".concat(x)]=x);var L=a()(c[b],"pb_icon_kit",p?"":D,T,Object(l.c)(t),h),I=a()("pb_icon_kit_emoji",Object(l.c)(t),h);!i.label&&(i.label="".concat(x," icon"));var N=Object(s.a)(i),R=Object(s.c)(g);return r.a.createElement(r.a.Fragment,null,function(t){return t?r.a.createElement(r.a.Fragment,null,r.a.cloneElement(t,Object.assign(Object.assign({},R),{className:L,id:_}))):/^((?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])|\uFE0F)+$/.test(x)?r.a.createElement(r.a.Fragment,null,r.a.createElement("span",Object.assign({},R,{className:I,id:_}),x)):r.a.createElement(r.a.Fragment,null,r.a.createElement("i",Object.assign({},R,{className:L,id:_})),r.a.createElement("span",Object.assign({},N,{hidden:!0})))}(p))}},function(t,e,n){t.exports={windows:"#003DB2",siding:"#6000AC",doors:"#B85C00",solar:"#007E8F",roofing:"#760B24",gutters:"#008540",insulation:"#96006C",product_1_background:"#003DB2",product_1_highlight:"#0057FF",product_2_background:"#6000AC",product_2_highlight:"#8200E9",product_3_background:"#B85C00",product_3_highlight:"#CE7500",product_4_background:"#007E8F",product_4_highlight:"#00B9D2",product_5_background:"#760B24",product_5_highlight:"#B8032E",product_6_background:"#008540",product_6_highlight:"#00A851",product_7_background:"#96006C",product_7_highlight:"#CD0094",product_8_background:"#144075",product_8_highlight:"#1A569E",product_9_background:"#fcc419",product_9_highlight:"#ffd43b",product_10_background:"#20c997",product_10_highlight:"#38d9a9",success:"#1CA05C",success_secondary:"#24cb75",success_sm:"#157F48",success_subtle:"rgba(28,160,92,0.1)",warning:"#F9BB00",warning_secondary:"#ffcb2d",warning_subtle:"rgba(249,187,0,0.1)",error:"#DA0014",error_secondary:"#ff0e24",error_subtle:"rgba(218,0,20,0.1)",info:"#00C4D7",info_secondary:"#0be9ff",info_subtle:"rgba(0,196,215,0.1)",neutral:"#C1CDD6",neutral_secondary:"#e0e6ea",neutral_subtle:"rgba(193,205,214,0.1)",primary:"#0056CF",primary_secondary:"#036cff",data_1:"#0056CF",data_2:"#F9BB00",data_3:"#9E64E9",data_4:"#1CA05C",data_5:"#FD804C",data_6:"#144075",data_7:"#00C4D7",data_8:"#DA0014",shadow:"rgba(60,106,172,0.2)",shadow_dark:"#0a0527",royal:"#0056CF",purple:"#9E64E9",teal:"#00C4D7",red:"#DA0014","#ff0":"#F9BB00",green:"#1CA05C",orange:"#FD804C",default:"#93a8b8","#fff":"#fff",silver:"#F3F7FB",slate:"#C1CDD6",charcoal:"#242B42","#000":"#000",secondary:"#F9BB00",tertiary:"#9E64E9",bg_light:"#F3F7FB",bg_dark:"#0a0527",bg_dark_card:"#231E3D",card_light:"#fff",card_dark:"#231e3d",active_light:"#f7fbff",active_dark:"#0082ff",primary_action:"#0056CF",primary_action_dark:"#0082ff",hover_light:"#e0eaf5",hover_dark:"rgba(255,255,255,0.2)",border_light:"#E4E8F0",border_dark:"#3b3752",text_lt_default:"#242B42",text_lt_light:"#687887",text_lt_lighter:"#C1CDD6",text_dk_default:"#fff",text_dk_light:"rgba(255,255,255,0.6)",text_dk_lighter:"rgba(255,255,255,0.4)",category_1:"#0056CF",category_2:"#0CD2E5",category_3:"#F9BB00",category_4:"#14D595",category_5:"#A057FF",category_6:"#FF7034",category_7:"#97DA22",category_8:"#EA599F",category_9:"#0091FF",category_10:"#5027E4",category_11:"#DA0014",category_12:"#109922",category_13:"#058F9D",category_14:"#A33E6F",category_15:"#B2171C",category_16:"#0A5C49",category_17:"#325B91",category_18:"#BE4714",category_19:"navy",category_20:"#5C0E0A",category_21:"#040830",gradient_start:"#1C75F2",gradient_end:"#0056CF"}},function(t,e,n){t.exports={font_family_base:'"Proxima Nova","Helvetica Neue",Helvetica,Arial,sans_serif',text_jumbo:"36px",text_largest:"32px",text_larger:"28px",text_large:"20px",text_base:"16px",text_default:"16px",text_normal:"16px",text_medium:"16px",text_small:"14px",text_smaller:"12px",text_smallest:"11px",heading_1:"46px",heading_2:"34px",heading_3:"28px",heading_4:"16px",lighter:"100",light:"300",bold:"600",regular:"400"}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.align,n=void 0===e?"none":e,i=t.children,o=t.className,d=t.data,c=void 0===d?{}:d,u=t.inline,h=void 0!==u&&u,p=t.horizontal,f=void 0===p?"left":p,g=t.justify,m=void 0===g?"none":g,v=t.orientation,y=void 0===v?"row":v,b=t.spacing,x=void 0===b?"none":b,_=t.gap,O=void 0===_?"none":_,w=t.rowGap,C=void 0===w?"none":w,$=t.columnGap,k=void 0===$?"none":$,E=t.reverse,S=void 0!==E&&E,j=t.vertical,A=void 0===j?"top":j,M=t.wrap,D=void 0!==M&&M,P=t.alignSelf,T=void 0===P?"none":P,L=void 0!==y?"orientation_".concat(y):"",I="justify_content_".concat("none"!==m?m:f),N="align_items_".concat("none"!==n?n:A),R=!0===h?"inline":"",F=void 0!==x?"spacing_".concat(x):"",B="none"!==O?"gap_".concat(O):"",z="none"!==C?"rowGap_".concat(C):"",W="none"!==k?"columnGap_".concat(k):"",H=!0===D?"wrap":"",U=!0===S?"reverse":"",Y="none"!==T?"align_self_".concat(T):"",G=Object(s.c)(c);return r.a.createElement("div",Object.assign({className:a()(Object(s.b)("pb_flex_kit",L,I,N,R,U,H,F,B,z,W,Y),Object(l.c)(t),o)},G),i)}},function(t,e,n){"use strict";n.d(e,"m",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"k",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"o",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return f})),n.d(e,"n",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"g",(function(){return v}));var i="top",r="bottom",o="right",a="left",s="auto",l=[i,r,o,a],d="start",c="end",u="clippingParents",h="viewport",p="popper",f="reference",g=l.reduce((function(t,e){return t.concat([e+"-"+d,e+"-"+c])}),[]),m=[].concat(l,[s]).reduce((function(t,e){return t.concat([e,e+"-"+d,e+"-"+c])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(125);e.a=function(t){t.variant&&Object(l.a)("Body",["status"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,c=t.color,u=void 0===c?"":c,h=t.data,p=void 0===h?{}:h,f=t.highlightedText,g=void 0===f?[]:f,m=t.highlighting,v=void 0!==m&&m,y=t.id,b=void 0===y?"":y,x=t.status,_=void 0===x?null:x,O=t.tag,w=void 0===O?"div":O,C=t.text,$=void 0===C?"":C,k=t.variant,E=void 0===k?null:k,S=Object(s.a)(n),j=Object(s.c)(p),A=a()(Object(s.b)("pb_body_kit",u,E,_),Object(l.c)(t),o),M="".concat(w);return r.a.createElement(M,Object.assign({},S,j,{className:A,id:b}),v&&r.a.createElement(d.a,{highlightedText:g,text:$},i),!v&&($||i))}},function(t,e,n){t.exports=n(221)()},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)("Title",["variant"]);var e,n=t.aria,i=void 0===n?{}:n,o=t.children,d=t.className,c=t.color,u=t.data,h=void 0===u?{}:u,p=t.id,f=t.size,g=void 0===f?3:f,m=t.bold,v=void 0===m||m,y=t.tag,b=void 0===y?"h3":y,x=t.text,_=t.variant,O=void 0===_?null:_,w=Object(s.a)(i),C=Object(s.c)(h),$=v?"":"thin",k="number"==typeof g||"string"==typeof g,E=a()(Object(s.b)("pb_title_kit",k?"size_".concat(g):"",O,c,$),Object(l.c)(t),(e="",k||Object.entries(g).forEach((function(t){e+="pb_title_kit_".concat(t[0],"_").concat(t[1]," ")})),e.trim()),d),S="".concat(b);return r.a.createElement(S,Object.assign({},w,C,{className:E,id:p}),x||o)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.children,n=t.className,i=t.fixedSize,o=t.grow,d=t.overflow,c=void 0===d?null:d,u=t.shrink,h=t.flex,p=void 0===h?"none":h,f=t.order,g=void 0===f?"none":f,m=t.alignSelf,v=t.displayFlex,y=!0===o?"grow":"",b=!0===v?"display_flex_".concat(v):"",x="none"!==p?"flex_".concat(p):"",_=c?"overflow_".concat(c):"",O=!0===u?"shrink":"",w=m?"align_self_".concat(m):"",C=void 0!==i?{flexBasis:"".concat(i)}:null,$="none"!==g?"order_".concat(g):null;return r.a.createElement("div",{className:a()(Object(s.b)("pb_flex_item_kit",y,O,x,b),_,$,w,Object(l.c)(t),n),style:C},e)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)("Title",["variant"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,d=t.color,c=t.data,u=void 0===c?{}:c,h=t.id,p=t.size,f=void 0===p?"md":p,g=t.tag,m=void 0===g?"div":g,v=t.text,y=t.variant,b=void 0===y?null:y,x=["h1","h2","h3","h4","h5","h6","p","span","div","caption"].includes(m)?m:"div",_=Object(s.a)(n),O=Object(s.c)(u),w=a()(Object(s.b)("pb_caption_kit",f,b,d),Object(l.c)(t),o);return r.a.createElement(x,Object.assign({},_,O,{className:w,id:h}),v||i)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(22),a=n(3),s=n.n(a),l=n(2),d=n(5);function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t){var e,n,i=t.aria,a=void 0===i?{}:i,u=t.background,h=void 0===u?"none":u,p=t.borderNone,f=void 0!==p&&p,g=t.borderRadius,m=void 0===g?"md":g,v=t.children,y=t.className,b=t.data,x=void 0===b?{}:b,_=t.highlight,O=void 0===_?{}:_,w=t.selected,C=void 0!==w&&w,$=t.tag,k=void 0===$?"div":$,E=1==f?"border_none":"",S=1==C?"selected":"deselected",j="none"==h?"":"background_".concat(h),A=Object(l.b)("pb_card_kit",S,E,"border_radius_".concat(m),j,(c(e={},"highlight_".concat(O.position),O.position),c(e,"highlight_".concat(O.color),O.color),e)),M=Object(l.a)(a),D=Object(l.c)(x),P=r.a.Children.toArray(v),T=P.filter((function(t){return"Header"!==Object(o.get)(t,"type.displayName")})),L=["div","section","footer","header","article","aside","main","nav"].includes(k)?k:"div";return r.a.createElement(L,Object.assign({},M,D,{className:s()(A,Object(d.c)(t),y)}),(n="Header",P.filter((function(t){return Object(o.get)(t,"type.displayName")===n})).map((function(t,e){if(r.a.isValidElement(t))return r.a.cloneElement(t,{key:"".concat(n.toLowerCase(),"-").concat(e)})}))),T)};u.Header=function(t){var e=t.children,n=t.className,i=t.headerColor,o=void 0===i?"category_1":i,a=t.headerColorStriped,c=void 0!==a&&a,u=Object(l.b)("pb_card_header_kit","".concat(o),c?"striped":""),h=Object(d.c)(t);return r.a.createElement("div",{className:s()(u,h,n)},e)},u.Body=function(t){var e=t.children,n=t.className,i=Object(l.b)("pb_card_body_kit"),o=Object(d.c)(t);return r.a.createElement("div",{className:s()(i,o,n)},e)},e.a=u},function(t,e,n){"use strict";var i=["SU","M","T","W","TH","F","S"],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=function(t){return"string"!=typeof t||t.includes("T")?new Date(t):new Date(t.replace(/-/g,"/"))},s=function(t,e){return e?new Date(a(t).toLocaleString("en-US",{timeZone:e})).getDate():a(t).getDate()},l=function(t){return a(t).getMonth()+1},d=function(t,e){var n=a(t);return e?n.toLocaleTimeString("en-US",{timeZone:e,timeStyle:"short"}).split(" ")[0]:n.toLocaleTimeString("en-US",{timeStyle:"short"}).split(" ")[0]},c=function(t,e){var n=a(t);return e?n.toLocaleString("en-US",{timeZone:e,hour12:!0}).slice(-2).charAt(0).toLocaleLowerCase():n.toLocaleString("en-US",{hour12:!0}).slice(-2).charAt(0).toLocaleLowerCase()},u=function(t){var e=a(t),n=e.getDay(),i=new Date(e.setHours(0,0,0)),r=0===n?6:n-1;return i.setDate(e.getDate()-r),i},h=function(t){var e=a(t),n=e.getDay(),i=new Date(e.setHours(23,59,59,0)),r=0===n?0:7-n;return i.setDate(e.getDate()+r),i},p=function(t){var e=a(t);return new Date(e.getFullYear(),e.getMonth(),1)},f=function(t){var e=a(t);return new Date(e.getFullYear(),e.getMonth()+1,0,23,59,59)},g=function(t){var e=a(t),n=Math.floor(e.getMonth()/3);return new Date(e.getFullYear(),3*n,1)},m=function(t){var e=a(t),n=Math.floor(e.getMonth()/3),i=new Date(e.getFullYear(),3*(n+1),1);return new Date(i.getTime()-1)},v=function(t){var e=a(t);return new Date(e.getFullYear(),0,1)},y=function(t){var e=a(t);return new Date(e.getFullYear(),11,31,23,59,59)};e.a={toMinute:function(t,e){var n=a(t);return e?n.toLocaleTimeString("en-US",{timeZone:e,hour:"2-digit",minute:"2-digit"}).slice(3,5):n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}).slice(3,5)},toHour:function(t,e){var n=a(t);return e?n.toLocaleTimeString("en-US",{timeZone:e,hour:"numeric"}).split(" ")[0]:n.toLocaleTimeString("en-US",{hour:"numeric"}).split(" ")[0]},toDay:s,toDayAbbr:function(t){var e=a(t);return i[e.getDay()]},toWeekday:function(t){var e=a(t);return r[e.getDay()]},toMonth:function(t,e){if(e){var n=new Date(a(t).toLocaleString("en-US",{timeZone:e}));return o[n.getMonth()]}var i=a(t);return o[i.getMonth()]},toMonthNum:l,toYear:function(t,e){return e?new Date(a(t).toLocaleString("en-US",{timeZone:e})).getFullYear():a(t).getFullYear()},toTime:d,toMeridiem:c,toTimeZone:function(t,e){var n=a(t);return e?n.toLocaleString("en-US",{timeZone:e,timeZoneName:"short"}).split(" ")[3]:n.toLocaleString("en-US",{timeZoneName:"short"}).split(" ")[3]},toTimeWithMeridiem:function(t,e){var n=a(t);return"".concat(d(n,e)).concat(c(n,e))},toIso:function(t){return a(t).toISOString()},fromNow:function(t){for(var e=a(t).getTime(),n=(new Date).getTime()-e,i="".concat(Math.round(n/315576e5)," years ago"),r=0,o=[{min:0,max:44999,value:"a few seconds ago"},{min:45e3,max:89999,value:"a minute ago"},{min:9e4,max:2649999,value:"".concat(Math.round(n/6e4)," minutes ago")},{min:265e4,max:7299999,value:"an hour ago"},{min:73e5,max:75699999,value:"".concat(Math.round(n/36e5)," hours ago")},{min:757e5,max:172899999,value:"a day ago"},{min:1729e5,max:2169999999,value:"".concat(Math.round(n/864e5)," days ago")},{min:217e7,max:5184999999,value:"a month ago"},{min:5185e6,max:27561699999,value:"".concat(Math.round(n/2630016000.0000005)," months ago")},{min:275617e5,max:63072999999,value:"a year ago"}];r<o.length;r++){var s=o[r];if(n>=s.min&&n<=s.max){i=s.value;break}}return i},toCustomFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"month_day",n=a(t);return"month_day"==e?"".concat(l(n),"/").concat(s(n)):"".concat(n.toLocaleString("en-US",{month:"short"})," ").concat(s(n))},getYesterdayDate:function(t){var e=a(t),n=new Date;return n.setDate(e.getDate()-1),n},getFirstDayOfWeek:u,getLastDayOfWeek:h,getPreviousWeekStartDate:function(t){var e=u(t);return new Date(e.getFullYear(),e.getMonth(),e.getDate()-7)},getPreviousWeekEndDate:function(t){var e=h(t);return new Date(e.getFullYear(),e.getMonth(),e.getDate()-7,e.getHours(),e.getMinutes(),e.getSeconds())},getMonthStartDate:p,getMonthEndDate:f,getPreviousMonthStartDate:function(t){var e=p(t);return new Date(e.getFullYear(),e.getMonth()-1,e.getDate())},getPreviousMonthEndDate:function(t){var e=f(t);return new Date(e.getFullYear(),e.getMonth()-1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())},getQuarterStartDate:g,getQuarterEndDate:m,getPreviousQuarterStartDate:function(t){var e=g(t);return new Date(e.getFullYear(),e.getMonth()-3,e.getDate())},getPreviousQuarterEndDate:function(t){var e=m(t);return new Date(e.getFullYear(),e.getMonth()-3,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())},getYearStartDate:v,getYearEndDate:y,getPreviousYearStartDate:function(t){var e=v(t);return new Date(e.getFullYear()-1,e.getMonth(),e.getDate())},getPreviousYearEndDate:function(t){var e=y(t);return new Date(e.getFullYear()-1,e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return O}));var i=n(145);var r=n(0),o=n(115);n(251);function a(t,e,n){var i="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "})),i}var s=function(t,e,n){var i=t.key+"-"+e.name;if(!1===n&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var r=e;do{t.insert("."+i,r,t.sheet,!0);r=r.next}while(void 0!==r)}},l=n(85),d=Object.prototype.hasOwnProperty,c=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)():null),u=Object(r.createContext)({}),h=c.Provider,p=function(t){var e=function(e,n){return Object(r.createElement)(c.Consumer,null,(function(i){return t(e,i,n)}))};return Object(r.forwardRef)(e)},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(t,e){var n={};for(var i in e)d.call(e,i)&&(n[i]=e[i]);return n[f]=t,n},m=function(){return null},v=function(t,e,n,i){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var c=e[f],u=[o],h="";"string"==typeof e.className?h=a(t.registered,u,e.className):null!=e.className&&(h=e.className+" ");var p=Object(l.a)(u);s(t,p,"string"==typeof c);h+=t.key+"-"+p.name;var g={};for(var v in e)d.call(e,v)&&"css"!==v&&v!==f&&(g[v]=e[v]);g.ref=i,g.className=h;var y=Object(r.createElement)(c,g),b=Object(r.createElement)(m,null);return Object(r.createElement)(r.Fragment,null,b,y)},y=p((function(t,e,n){return"function"==typeof t.css?Object(r.createElement)(u.Consumer,null,(function(i){return v(e,t,i,n)})):v(e,t,null,n)}));var b=n(146),x=n(60),_=function(t,e){var n=arguments;if(null==e||!d.call(e,"css"))return r.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=y,o[1]=g(t,e);for(var a=2;a<i;a++)o[a]=n[a];return r.createElement.apply(null,o)},O=(r.Component,function(){var t=x.a.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),w=function t(e){for(var n=e.length,i=0,r="";i<n;i++){var o=e[i];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=t(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r};function C(t,e,n){var i=[],r=a(t,i,n);return i.length<2?n:r+e(i)}var $=function(){return null},k=p((function(t,e){return Object(r.createElement)(u.Consumer,null,(function(n){var i=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Object(l.a)(n,e.registered);return s(e,r,!1),e.key+"-"+r.name},o={css:i,cx:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(e.registered,i,w(n))},theme:n},a=t.children(o);var d=Object(r.createElement)($,null);return Object(r.createElement)(r.Fragment,null,d,a)}))}))},function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():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}).apply(this,arguments)}n.d(e,"a",(function(){return i}))},function(t,e,n){(function(t,i){var r;
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var i=arguments[e];if(i){var o=typeof i;if("string"===o||"number"===o)t.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&t.push(a)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){t.push(i.toString());continue}for(var s in i)n.call(i,s)&&i[s]&&t.push(s)}}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(i=function(){return r}.apply(e,[]))||(t.exports=i)}()},function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h}));var i=n(22),r=n(54),o=[0,1];function a(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 s(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 s(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 s(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 l=function(t,e){return Object.keys(t).map((function(n){var i="string"==typeof t[n]?Object(r.a)(t[n]):t[n];return"".concat(e,"_").concat(n,"_").concat(i)})).join(" ")},d={hoverProps:function(t){var e=t.hover,n="";return e?(n+=e.shadow?"hover_shadow_".concat(e.shadow," "):"",n+=e.background?"hover_background_".concat(e.background," "):"",n+=e.scale?"hover_scale_".concat(e.scale," "):""):n},spacingProps:function(t){var e=t.marginRight,n=t.marginLeft,i=t.marginTop,r=t.marginBottom,o=t.marginX,s=t.marginY,l=t.margin,d=t.paddingRight,c=t.paddingLeft,u=t.paddingTop,h=t.paddingBottom,p=t.paddingX,f=t.paddingY,g=t.padding,m="",v={marginRight:e,marginLeft:n,marginTop:i,marginBottom:r,marginX:o,marginY:s,margin:l,paddingRight:d,paddingLeft:c,paddingTop:u,paddingBottom:h,paddingX:p,paddingY:f,padding:g};function y(t){return{marginRight:"mr",marginLeft:"ml",marginTop:"mt",marginBottom:"mb",marginX:"mx",marginY:"my",margin:"m",paddingRight:"pr",paddingLeft:"pl",paddingTop:"pt",paddingBottom:"pb",paddingX:"px",paddingY:"py",padding:"p"}[t]}return Object.entries(v).forEach((function(t){var e=a(t,2),n=e[0],i=e[1];if(i)if("object"==typeof i)m+=function(t,e){var n="";return Object.entries(t).forEach((function(t){var i=a(t,2),r=i[0],o=i[1];n+="".concat(e,"_").concat(r,"_").concat(o," ")})),n}(i,y(n));else{var r=y(n);m+="".concat(r,"_").concat(i," ")}})),m.trim()},borderRadiusProps:function(t){var e=t.borderRadius,n="";return n+=e?"border_radius_".concat(e," "):""},darkProps:function(t){return t.dark?"dark":""},numberSpacingProps:function(t){var e=t.numberSpacing,n="";return n+=e?"ns_".concat(e," "):""},maxWidthProps:function(t){var e=t.maxWidth,n="";return n+=e?"max_width_".concat(e," "):""},zIndexProps:function(t){var e="";return Object.entries(t).forEach((function(t){"zIndex"==t[0]&&("number"==typeof t[1]?e+="z_index_".concat(t[1]," "):"object"==typeof t[1]&&Object.entries(t[1]).forEach((function(t){e+="z_index_".concat(t[0],"_").concat(t[1]," ")})))})),e},shadowProps:function(t){var e=t.shadow,n="";return n+=e?"shadow_".concat(e," "):""},lineHeightProps:function(t){var e=t.lineHeight,n="";return n+=e?"line_height_".concat(e," "):""},displayProps:function(t){var e="";return Object.entries(t).forEach((function(t){"display"==t[0]&&("string"==typeof t[1]?e+="display_".concat(t[1]," "):"object"==typeof t[1]&&Object.entries(t[1]).forEach((function(t){e+="display_".concat(t[0],"_").concat(t[1]," ")})))})),e},cursorProps:function(t){var e=t.cursor,n="";return n+=e?"cursor_".concat(Object(r.a)(e)):""},alignContentProps:function(t){var e=t.alignContent;return"object"==typeof e?l(e,"align_content"):e?"align_content_".concat(Object(r.a)(e)):""},alignItemsProps:function(t){var e=t.alignItems;return"object"==typeof e?l(e,"align_items"):e?"align_items_".concat(Object(r.a)(e)):""},alignSelfProps:function(t){var e=t.alignSelf;return"object"==typeof e?l(e,"align_self"):e?"align_self_".concat(e):""},flexDirectionProps:function(t){var e=t.flexDirection;return"object"==typeof e?l(e,"flex_direction"):e?"flex_direction_".concat(Object(r.a)(e)):""},flexWrapProps:function(t){var e=t.flexWrap;return"object"==typeof e?l(e,"flex_wrap"):e?"flex_wrap_".concat(Object(r.a)(e)):""},flexProps:function(t){var e=t.flex;return"object"==typeof e?l(e,"flex"):e?"flex_".concat(e):""},flexGrowProps:function(t){var e=t.flexGrow;return"object"==typeof e?l(e,"flex_grow"):o.includes(e)?"flex_grow_".concat(e):""},flexShrinkProps:function(t){var e=t.flexShrink;return"object"==typeof e?l(e,"flex_shrink"):o.includes(e)?"flex_shrink_".concat(e):""},justifyContentProps:function(t){var e=t.justifyContent;return"object"==typeof e?l(e,"justify_content"):e?"justify_content_".concat(Object(r.a)(e)):""},justifySelfProps:function(t){var e=t.justifySelf;return"object"==typeof e?l(e,"justify_self"):e?"justify_self_".concat(e):""},orderProps:function(t){var e=t.order;return"object"==typeof e?l(e,"flex_order"):e?"flex_order_".concat(e):""},positionProps:function(t){var e=t.position,n="";return n+=e&&"static"!==e?"position_".concat(e):""}},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},t),e);return Object.keys(d).map((function(t){return d[t](n)})).filter((function(t){return(null==t?void 0:t.length)>0})).join(" ")},u=function(t){},h=function(t){return Object(i.omit)(t,["marginRight","marginLeft","marginTop","marginBottom","marginX","marginY","margin","paddingRight","paddingLeft","paddingTop","paddingBottom","paddingX","paddingY","padding","dark"])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(147);function r(t,e,n){return(e=Object(i.a)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={horizontal:"fa-flip-horizontal",vertical:"fa-flip-vertical",both:"fa-flip-horizontal fa-flip-vertical",none:""};e.a=function(t){var e,n=t.aria,i=void 0===n?{}:n,o=t.border,u=void 0!==o&&o,h=t.className,p=t.customIcon,f=t.data,g=void 0===f?{}:f,m=t.fixedWidth,v=void 0===m||m,y=t.flip,b=void 0===y?"none":y,x=t.icon,_=t.id,O=t.inverse,w=void 0!==O&&O,C=t.listItem,$=void 0!==C&&C,k=t.pull,E=t.pulse,S=void 0!==E&&E,j=t.rotation,A=t.size,M=t.fontStyle,D=void 0===M?"far":M,P=t.spin,T=(d(e={"fa-border":u,"fa-fw":v,"fa-inverse":w,"fa-li":$,"fa-pulse":S,"fa-spin":void 0!==P&&P},"fa-".concat(A),A),d(e,"fa-pull-".concat(k),k),d(e,"fa-rotate-".concat(j),j),e);p||(T["fa-".concat(x)]=x);var L=a()(c[b],"pb_icon_kit",p?"":D,T,Object(l.c)(t),h),I=a()("pb_icon_kit_emoji",Object(l.c)(t),h);!i.label&&(i.label="".concat(x," icon"));var N=Object(s.a)(i),R=Object(s.c)(g);return r.a.createElement(r.a.Fragment,null,function(t){return t?r.a.createElement(r.a.Fragment,null,r.a.cloneElement(t,Object.assign(Object.assign({},R),{className:L,id:_}))):/^((?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])|\uFE0F)+$/.test(x)?r.a.createElement(r.a.Fragment,null,r.a.createElement("span",Object.assign({},R,{className:I,id:_}),x)):r.a.createElement(r.a.Fragment,null,r.a.createElement("i",Object.assign({},R,{className:L,id:_})),r.a.createElement("span",Object.assign({},N,{hidden:!0})))}(p))}},function(t,e,n){t.exports={windows:"#003DB2",siding:"#6000AC",doors:"#B85C00",solar:"#007E8F",roofing:"#760B24",gutters:"#008540",insulation:"#96006C",product_1_background:"#003DB2",product_1_highlight:"#0057FF",product_2_background:"#6000AC",product_2_highlight:"#8200E9",product_3_background:"#B85C00",product_3_highlight:"#CE7500",product_4_background:"#007E8F",product_4_highlight:"#00B9D2",product_5_background:"#760B24",product_5_highlight:"#B8032E",product_6_background:"#008540",product_6_highlight:"#00A851",product_7_background:"#96006C",product_7_highlight:"#CD0094",product_8_background:"#144075",product_8_highlight:"#1A569E",product_9_background:"#fcc419",product_9_highlight:"#ffd43b",product_10_background:"#20c997",product_10_highlight:"#38d9a9",success:"#1CA05C",success_secondary:"#24cb75",success_sm:"#157F48",success_subtle:"rgba(28,160,92,0.1)",warning:"#F9BB00",warning_secondary:"#ffcb2d",warning_subtle:"rgba(249,187,0,0.1)",error:"#DA0014",error_secondary:"#ff0e24",error_subtle:"rgba(218,0,20,0.1)",info:"#00C4D7",info_secondary:"#0be9ff",info_subtle:"rgba(0,196,215,0.1)",neutral:"#C1CDD6",neutral_secondary:"#e0e6ea",neutral_subtle:"rgba(193,205,214,0.1)",primary:"#0056CF",primary_secondary:"#036cff",data_1:"#0056CF",data_2:"#F9BB00",data_3:"#9E64E9",data_4:"#1CA05C",data_5:"#FD804C",data_6:"#144075",data_7:"#00C4D7",data_8:"#DA0014",shadow:"rgba(60,106,172,0.2)",shadow_dark:"#0a0527",royal:"#0056CF",purple:"#9E64E9",teal:"#00C4D7",red:"#DA0014","#ff0":"#F9BB00",green:"#1CA05C",orange:"#FD804C",default:"#93a8b8","#fff":"#fff",silver:"#F3F7FB",slate:"#C1CDD6",charcoal:"#242B42","#000":"#000",secondary:"#F9BB00",tertiary:"#9E64E9",bg_light:"#F3F7FB",bg_dark:"#0a0527",bg_dark_card:"#231E3D",card_light:"#fff",card_dark:"#231e3d",active_light:"#f7fbff",active_dark:"#0082ff",primary_action:"#0056CF",primary_action_dark:"#0082ff",hover_light:"#e0eaf5",hover_dark:"rgba(255,255,255,0.2)",border_light:"#E4E8F0",border_dark:"#3b3752",text_lt_default:"#242B42",text_lt_light:"#687887",text_lt_lighter:"#C1CDD6",text_dk_default:"#fff",text_dk_light:"rgba(255,255,255,0.6)",text_dk_lighter:"rgba(255,255,255,0.4)",category_1:"#0056CF",category_2:"#0CD2E5",category_3:"#F9BB00",category_4:"#14D595",category_5:"#A057FF",category_6:"#FF7034",category_7:"#97DA22",category_8:"#EA599F",category_9:"#0091FF",category_10:"#5027E4",category_11:"#DA0014",category_12:"#109922",category_13:"#058F9D",category_14:"#A33E6F",category_15:"#B2171C",category_16:"#0A5C49",category_17:"#325B91",category_18:"#BE4714",category_19:"navy",category_20:"#5C0E0A",category_21:"#040830",gradient_start:"#1C75F2",gradient_end:"#0056CF"}},function(t,e,n){t.exports={font_family_base:'"Proxima Nova","Helvetica Neue",Helvetica,Arial,sans_serif',text_jumbo:"36px",text_largest:"32px",text_larger:"28px",text_large:"20px",text_base:"16px",text_default:"16px",text_normal:"16px",text_medium:"16px",text_small:"14px",text_smaller:"12px",text_smallest:"11px",heading_1:"46px",heading_2:"34px",heading_3:"28px",heading_4:"16px",lighter:"100",light:"300",bold:"600",regular:"400"}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.align,n=void 0===e?"none":e,i=t.children,o=t.className,d=t.data,c=void 0===d?{}:d,u=t.inline,h=void 0!==u&&u,p=t.horizontal,f=void 0===p?"left":p,g=t.justify,m=void 0===g?"none":g,v=t.orientation,y=void 0===v?"row":v,b=t.spacing,x=void 0===b?"none":b,_=t.gap,O=void 0===_?"none":_,w=t.rowGap,C=void 0===w?"none":w,$=t.columnGap,k=void 0===$?"none":$,E=t.reverse,S=void 0!==E&&E,j=t.vertical,A=void 0===j?"top":j,M=t.wrap,D=void 0!==M&&M,P=t.alignSelf,T=void 0===P?"none":P,L=void 0!==y?"orientation_".concat(y):"",I="justify_content_".concat("none"!==m?m:f),N="align_items_".concat("none"!==n?n:A),R=!0===h?"inline":"",F=void 0!==x?"spacing_".concat(x):"",B="none"!==O?"gap_".concat(O):"",z="none"!==C?"rowGap_".concat(C):"",W="none"!==k?"columnGap_".concat(k):"",H=!0===D?"wrap":"",U=!0===S?"reverse":"",Y="none"!==T?"align_self_".concat(T):"",G=Object(s.c)(c);return r.a.createElement("div",Object.assign({className:a()(Object(s.b)("pb_flex_kit",L,I,N,R,U,H,F,B,z,W,Y),Object(l.c)(t),o)},G),i)}},function(t,e,n){"use strict";n.d(e,"m",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"k",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"o",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return f})),n.d(e,"n",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"g",(function(){return v}));var i="top",r="bottom",o="right",a="left",s="auto",l=[i,r,o,a],d="start",c="end",u="clippingParents",h="viewport",p="popper",f="reference",g=l.reduce((function(t,e){return t.concat([e+"-"+d,e+"-"+c])}),[]),m=[].concat(l,[s]).reduce((function(t,e){return t.concat([e,e+"-"+d,e+"-"+c])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),d=n(125);e.a=function(t){t.variant&&Object(l.a)("Body",["status"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,c=t.color,u=void 0===c?"":c,h=t.data,p=void 0===h?{}:h,f=t.highlightedText,g=void 0===f?[]:f,m=t.highlighting,v=void 0!==m&&m,y=t.id,b=void 0===y?"":y,x=t.status,_=void 0===x?null:x,O=t.tag,w=void 0===O?"div":O,C=t.text,$=void 0===C?"":C,k=t.truncate,E=void 0===k?null:k,S=t.variant,j=void 0===S?null:S,A=Object(s.a)(n),M=Object(s.c)(p),D=E?"truncate_".concat(E):"",P=a()(Object(s.b)("pb_body_kit",u,j,_,D),Object(l.c)(t),o),T="".concat(w);return r.a.createElement(T,Object.assign({},A,M,{className:P,id:b}),v&&r.a.createElement(d.a,{highlightedText:g,text:$},i),!v&&($||i))}},function(t,e,n){t.exports=n(221)()},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)("Title",["variant"]);var e,n=t.aria,i=void 0===n?{}:n,o=t.children,d=t.className,c=t.color,u=t.data,h=void 0===u?{}:u,p=t.id,f=t.size,g=void 0===f?3:f,m=t.bold,v=void 0===m||m,y=t.tag,b=void 0===y?"h3":y,x=t.text,_=t.truncate,O=void 0===_?null:_,w=t.variant,C=void 0===w?null:w,$=Object(s.a)(i),k=Object(s.c)(h),E=v?"":"thin",S=O?"truncate_".concat(O):null,j="number"==typeof g||"string"==typeof g,A=a()(Object(s.b)("pb_title_kit",j?"size_".concat(g):"",C,c,E,S),Object(l.c)(t),(e="",j||Object.entries(g).forEach((function(t){e+="pb_title_kit_".concat(t[0],"_").concat(t[1]," ")})),e.trim()),d),M="".concat(b);return r.a.createElement(M,Object.assign({},$,k,{className:A,id:p}),x||o)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.children,n=t.className,i=t.fixedSize,o=t.grow,d=t.overflow,c=void 0===d?null:d,u=t.shrink,h=t.flex,p=void 0===h?"none":h,f=t.order,g=void 0===f?"none":f,m=t.alignSelf,v=t.displayFlex,y=!0===o?"grow":"",b=!0===v?"display_flex_".concat(v):"",x="none"!==p?"flex_".concat(p):"",_=c?"overflow_".concat(c):"",O=!0===u?"shrink":"",w=m?"align_self_".concat(m):"",C=void 0!==i?{flexBasis:"".concat(i)}:null,$="none"!==g?"order_".concat(g):null;return r.a.createElement("div",{className:a()(Object(s.b)("pb_flex_item_kit",y,O,x,b),_,$,w,Object(l.c)(t),n),style:C},e)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)("Title",["variant"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,d=t.color,c=t.data,u=void 0===c?{}:c,h=t.id,p=t.size,f=void 0===p?"md":p,g=t.tag,m=void 0===g?"div":g,v=t.text,y=t.variant,b=void 0===y?null:y,x=["h1","h2","h3","h4","h5","h6","p","span","div","caption"].includes(m)?m:"div",_=Object(s.a)(n),O=Object(s.c)(u),w=a()(Object(s.b)("pb_caption_kit",f,b,d),Object(l.c)(t),o);return r.a.createElement(x,Object.assign({},_,O,{className:w,id:h}),v||i)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(22),a=n(3),s=n.n(a),l=n(2),d=n(5);function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t){var e,n,i=t.aria,a=void 0===i?{}:i,u=t.background,h=void 0===u?"none":u,p=t.borderNone,f=void 0!==p&&p,g=t.borderRadius,m=void 0===g?"md":g,v=t.children,y=t.className,b=t.data,x=void 0===b?{}:b,_=t.highlight,O=void 0===_?{}:_,w=t.selected,C=void 0!==w&&w,$=t.tag,k=void 0===$?"div":$,E=1==f?"border_none":"",S=1==C?"selected":"deselected",j="none"==h?"":"background_".concat(h),A=Object(l.b)("pb_card_kit",S,E,"border_radius_".concat(m),j,(c(e={},"highlight_".concat(O.position),O.position),c(e,"highlight_".concat(O.color),O.color),e)),M=Object(l.a)(a),D=Object(l.c)(x),P=r.a.Children.toArray(v),T=P.filter((function(t){return"Header"!==Object(o.get)(t,"type.displayName")})),L=["div","section","footer","header","article","aside","main","nav"].includes(k)?k:"div";return r.a.createElement(L,Object.assign({},M,D,{className:s()(A,Object(d.c)(t),y)}),(n="Header",P.filter((function(t){return Object(o.get)(t,"type.displayName")===n})).map((function(t,e){if(r.a.isValidElement(t))return r.a.cloneElement(t,{key:"".concat(n.toLowerCase(),"-").concat(e)})}))),T)};u.Header=function(t){var e=t.children,n=t.className,i=t.headerColor,o=void 0===i?"category_1":i,a=t.headerColorStriped,c=void 0!==a&&a,u=Object(l.b)("pb_card_header_kit","".concat(o),c?"striped":""),h=Object(d.c)(t);return r.a.createElement("div",{className:s()(u,h,n)},e)},u.Body=function(t){var e=t.children,n=t.className,i=Object(l.b)("pb_card_body_kit"),o=Object(d.c)(t);return r.a.createElement("div",{className:s()(i,o,n)},e)},e.a=u},function(t,e,n){"use strict";var i=["SU","M","T","W","TH","F","S"],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=function(t){return"string"!=typeof t||t.includes("T")?new Date(t):new Date(t.replace(/-/g,"/"))},s=function(t,e){return e?new Date(a(t).toLocaleString("en-US",{timeZone:e})).getDate():a(t).getDate()},l=function(t){return a(t).getMonth()+1},d=function(t,e){var n=a(t);return e?n.toLocaleTimeString("en-US",{timeZone:e,timeStyle:"short"}).split(" ")[0]:n.toLocaleTimeString("en-US",{timeStyle:"short"}).split(" ")[0]},c=function(t,e){var n=a(t);return e?n.toLocaleString("en-US",{timeZone:e,hour12:!0}).slice(-2).charAt(0).toLocaleLowerCase():n.toLocaleString("en-US",{hour12:!0}).slice(-2).charAt(0).toLocaleLowerCase()},u=function(t){var e=a(t),n=e.getDay(),i=new Date(e.setHours(0,0,0)),r=0===n?6:n-1;return i.setDate(e.getDate()-r),i},h=function(t){var e=a(t),n=e.getDay(),i=new Date(e.setHours(23,59,59,0)),r=0===n?0:7-n;return i.setDate(e.getDate()+r),i},p=function(t){var e=a(t);return new Date(e.getFullYear(),e.getMonth(),1)},f=function(t){var e=a(t);return new Date(e.getFullYear(),e.getMonth()+1,0,23,59,59)},g=function(t){var e=a(t),n=Math.floor(e.getMonth()/3);return new Date(e.getFullYear(),3*n,1)},m=function(t){var e=a(t),n=Math.floor(e.getMonth()/3),i=new Date(e.getFullYear(),3*(n+1),1);return new Date(i.getTime()-1)},v=function(t){var e=a(t);return new Date(e.getFullYear(),0,1)},y=function(t){var e=a(t);return new Date(e.getFullYear(),11,31,23,59,59)};e.a={toMinute:function(t,e){var n=a(t);return e?n.toLocaleTimeString("en-US",{timeZone:e,hour:"2-digit",minute:"2-digit"}).slice(3,5):n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}).slice(3,5)},toHour:function(t,e){var n=a(t);return e?n.toLocaleTimeString("en-US",{timeZone:e,hour:"numeric"}).split(" ")[0]:n.toLocaleTimeString("en-US",{hour:"numeric"}).split(" ")[0]},toDay:s,toDayAbbr:function(t){var e=a(t);return i[e.getDay()]},toWeekday:function(t){var e=a(t);return r[e.getDay()]},toMonth:function(t,e){if(e){var n=new Date(a(t).toLocaleString("en-US",{timeZone:e}));return o[n.getMonth()]}var i=a(t);return o[i.getMonth()]},toMonthNum:l,toYear:function(t,e){return e?new Date(a(t).toLocaleString("en-US",{timeZone:e})).getFullYear():a(t).getFullYear()},toTime:d,toMeridiem:c,toTimeZone:function(t,e){var n=a(t);return e?n.toLocaleString("en-US",{timeZone:e,timeZoneName:"short"}).split(" ")[3]:n.toLocaleString("en-US",{timeZoneName:"short"}).split(" ")[3]},toTimeWithMeridiem:function(t,e){var n=a(t);return"".concat(d(n,e)).concat(c(n,e))},toIso:function(t){return a(t).toISOString()},fromNow:function(t){for(var e=a(t).getTime(),n=(new Date).getTime()-e,i="".concat(Math.round(n/315576e5)," years ago"),r=0,o=[{min:0,max:44999,value:"a few seconds ago"},{min:45e3,max:89999,value:"a minute ago"},{min:9e4,max:2649999,value:"".concat(Math.round(n/6e4)," minutes ago")},{min:265e4,max:7299999,value:"an hour ago"},{min:73e5,max:75699999,value:"".concat(Math.round(n/36e5)," hours ago")},{min:757e5,max:172899999,value:"a day ago"},{min:1729e5,max:2169999999,value:"".concat(Math.round(n/864e5)," days ago")},{min:217e7,max:5184999999,value:"a month ago"},{min:5185e6,max:27561699999,value:"".concat(Math.round(n/2630016000.0000005)," months ago")},{min:275617e5,max:63072999999,value:"a year ago"}];r<o.length;r++){var s=o[r];if(n>=s.min&&n<=s.max){i=s.value;break}}return i},toCustomFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"month_day",n=a(t);return"month_day"==e?"".concat(l(n),"/").concat(s(n)):"".concat(n.toLocaleString("en-US",{month:"short"})," ").concat(s(n))},getYesterdayDate:function(t){var e=a(t),n=new Date;return n.setDate(e.getDate()-1),n},getFirstDayOfWeek:u,getLastDayOfWeek:h,getPreviousWeekStartDate:function(t){var e=u(t);return new Date(e.getFullYear(),e.getMonth(),e.getDate()-7)},getPreviousWeekEndDate:function(t){var e=h(t);return new Date(e.getFullYear(),e.getMonth(),e.getDate()-7,e.getHours(),e.getMinutes(),e.getSeconds())},getMonthStartDate:p,getMonthEndDate:f,getPreviousMonthStartDate:function(t){var e=p(t);return new Date(e.getFullYear(),e.getMonth()-1,e.getDate())},getPreviousMonthEndDate:function(t){var e=f(t);return new Date(e.getFullYear(),e.getMonth()-1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())},getQuarterStartDate:g,getQuarterEndDate:m,getPreviousQuarterStartDate:function(t){var e=g(t);return new Date(e.getFullYear(),e.getMonth()-3,e.getDate())},getPreviousQuarterEndDate:function(t){var e=m(t);return new Date(e.getFullYear(),e.getMonth()-3,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())},getYearStartDate:v,getYearEndDate:y,getPreviousYearStartDate:function(t){var e=v(t);return new Date(e.getFullYear()-1,e.getMonth(),e.getDate())},getPreviousYearEndDate:function(t){var e=y(t);return new Date(e.getFullYear()-1,e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds())}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return O}));var i=n(145);var r=n(0),o=n(115);n(251);function a(t,e,n){var i="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "})),i}var s=function(t,e,n){var i=t.key+"-"+e.name;if(!1===n&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var r=e;do{t.insert("."+i,r,t.sheet,!0);r=r.next}while(void 0!==r)}},l=n(85),d=Object.prototype.hasOwnProperty,c=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)():null),u=Object(r.createContext)({}),h=c.Provider,p=function(t){var e=function(e,n){return Object(r.createElement)(c.Consumer,null,(function(i){return t(e,i,n)}))};return Object(r.forwardRef)(e)},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(t,e){var n={};for(var i in e)d.call(e,i)&&(n[i]=e[i]);return n[f]=t,n},m=function(){return null},v=function(t,e,n,i){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var c=e[f],u=[o],h="";"string"==typeof e.className?h=a(t.registered,u,e.className):null!=e.className&&(h=e.className+" ");var p=Object(l.a)(u);s(t,p,"string"==typeof c);h+=t.key+"-"+p.name;var g={};for(var v in e)d.call(e,v)&&"css"!==v&&v!==f&&(g[v]=e[v]);g.ref=i,g.className=h;var y=Object(r.createElement)(c,g),b=Object(r.createElement)(m,null);return Object(r.createElement)(r.Fragment,null,b,y)},y=p((function(t,e,n){return"function"==typeof t.css?Object(r.createElement)(u.Consumer,null,(function(i){return v(e,t,i,n)})):v(e,t,null,n)}));var b=n(146),x=n(60),_=function(t,e){var n=arguments;if(null==e||!d.call(e,"css"))return r.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=y,o[1]=g(t,e);for(var a=2;a<i;a++)o[a]=n[a];return r.createElement.apply(null,o)},O=(r.Component,function(){var t=x.a.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),w=function t(e){for(var n=e.length,i=0,r="";i<n;i++){var o=e[i];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=t(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r};function C(t,e,n){var i=[],r=a(t,i,n);return i.length<2?n:r+e(i)}var $=function(){return null},k=p((function(t,e){return Object(r.createElement)(u.Consumer,null,(function(n){var i=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Object(l.a)(n,e.registered);return s(e,r,!1),e.key+"-"+r.name},o={css:i,cx:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(e.registered,i,w(n))},theme:n},a=t.children(o);var d=Object(r.createElement)($,null);return Object(r.createElement)(r.Fragment,null,d,a)}))}))},function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():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}).apply(this,arguments)}n.d(e,"a",(function(){return i}))},function(t,e,n){(function(t,i){var r;
7
7
  /**
8
8
  * @license
9
9
  * Lodash <https://lodash.com/>
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "13.1.0"
5
- VERSION = "13.2.0"
4
+ PREVIOUS_VERSION = "13.2.0"
5
+ VERSION = "13.3.0"
6
6
  end
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.2.0
4
+ version: 13.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-09-01 00:00:00.000000000 Z
12
+ date: 2023-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2057,6 +2057,8 @@ files:
2057
2057
  - app/pb_kits/playbook/pb_table/docs/_table_data_table.md
2058
2058
  - app/pb_kits/playbook/pb_table/docs/_table_disable_hover.html.erb
2059
2059
  - app/pb_kits/playbook/pb_table/docs/_table_disable_hover.jsx
2060
+ - app/pb_kits/playbook/pb_table/docs/_table_header.html.erb
2061
+ - app/pb_kits/playbook/pb_table/docs/_table_header.md
2060
2062
  - app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb
2061
2063
  - app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx
2062
2064
  - app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.md
@@ -2112,12 +2114,15 @@ files:
2112
2114
  - app/pb_kits/playbook/pb_table/styles/_structure.scss
2113
2115
  - app/pb_kits/playbook/pb_table/styles/_table-card.scss
2114
2116
  - app/pb_kits/playbook/pb_table/styles/_table-dark.scss
2117
+ - app/pb_kits/playbook/pb_table/styles/_table_header.scss
2115
2118
  - app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss
2116
2119
  - app/pb_kits/playbook/pb_table/styles/_variables.scss
2117
2120
  - app/pb_kits/playbook/pb_table/styles/_vertical_border.scss
2118
2121
  - app/pb_kits/playbook/pb_table/table.html.erb
2119
2122
  - app/pb_kits/playbook/pb_table/table.rb
2120
2123
  - app/pb_kits/playbook/pb_table/table.test.js
2124
+ - app/pb_kits/playbook/pb_table/table_header.html.erb
2125
+ - app/pb_kits/playbook/pb_table/table_header.rb
2121
2126
  - app/pb_kits/playbook/pb_table/table_row.html.erb
2122
2127
  - app/pb_kits/playbook/pb_table/table_row.rb
2123
2128
  - app/pb_kits/playbook/pb_text_input/_text_input.scss