@processmaker/screen-builder 2.82.0 → 2.82.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49203,7 +49203,7 @@ const JX = Cu(YX), Lte = Cu(QX), Nte = Cu([HX]), ZX = Cu([jS, zS]), XX = KX(), R
49203
49203
  rendererComponent: pi,
49204
49204
  rendererBinding: "FormButton",
49205
49205
  control: {
49206
- popoverContent: "Add and reuse another Form within this Form",
49206
+ popoverContent: "Add special buttons that link between subpages within this Form",
49207
49207
  order: 1,
49208
49208
  group: "Navigation",
49209
49209
  label: "Page Navigation",
@@ -49283,7 +49283,7 @@ const JX = Cu(YX), Lte = Cu(QX), Nte = Cu([HX]), ZX = Cu([jS, zS]), XX = KX(), R
49283
49283
  rendererComponent: Vo,
49284
49284
  rendererBinding: "FormLoop",
49285
49285
  control: {
49286
- popoverContent: "Format content in a table structure and allow for adding rows",
49286
+ popoverContent: "Add a repeatable section of content",
49287
49287
  order: 5,
49288
49288
  group: "Content Fields",
49289
49289
  label: "Loop",
@@ -49318,7 +49318,7 @@ const JX = Cu(YX), Lte = Cu(QX), Nte = Cu([HX]), ZX = Cu([jS, zS]), XX = KX(), R
49318
49318
  rendererComponent: _p,
49319
49319
  rendererBinding: "FormRecordList",
49320
49320
  control: {
49321
- popoverContent: "Format content in a table structure",
49321
+ popoverContent: "Format content in a table structure and allow for adding rows",
49322
49322
  order: 4,
49323
49323
  group: "Content Fields",
49324
49324
  label: "Record List",
@@ -49509,7 +49509,7 @@ const JX = Cu(YX), Lte = Cu(QX), Nte = Cu([HX]), ZX = Cu([jS, zS]), XX = KX(), R
49509
49509
  rendererComponent: Wo,
49510
49510
  rendererBinding: "FormNestedScreen",
49511
49511
  control: {
49512
- popoverContent: "Add a repeatable section of content",
49512
+ popoverContent: "Add and reuse another Form within this Form",
49513
49513
  order: 6,
49514
49514
  group: "Content Fields",
49515
49515
  label: "Nested Screen",
@@ -49544,7 +49544,7 @@ const JX = Cu(YX), Lte = Cu(QX), Nte = Cu([HX]), ZX = Cu([jS, zS]), XX = KX(), R
49544
49544
  builderBinding: "FileUpload",
49545
49545
  control: {
49546
49546
  group: "Files",
49547
- popoverContent: "Add special buttons that link between subpages within this Form",
49547
+ popoverContent: "Collect files uploaded into the Form",
49548
49548
  order: 1,
49549
49549
  label: "File Upload",
49550
49550
  component: "FileUpload",
@@ -49596,7 +49596,7 @@ const JX = Cu(YX), Lte = Cu(QX), Nte = Cu([HX]), ZX = Cu([jS, zS]), XX = KX(), R
49596
49596
  builderComponent: Pd,
49597
49597
  builderBinding: "FileDownload",
49598
49598
  control: {
49599
- popoverContent: "Collect files uploaded into the Form",
49599
+ popoverContent: "Offer a File download",
49600
49600
  order: 2,
49601
49601
  group: "Files",
49602
49602
  label: "File Download",
@@ -49633,7 +49633,7 @@ const JX = Cu(YX), Lte = Cu(QX), Nte = Cu([HX]), ZX = Cu([jS, zS]), XX = KX(), R
49633
49633
  builderComponent: of,
49634
49634
  builderBinding: "BFormComponent",
49635
49635
  control: {
49636
- popoverContent: "Add a Preview section that displays the content of a File",
49636
+ popoverContent: "Add one of several Bootstrap Vue components",
49637
49637
  order: 1,
49638
49638
  group: "Advanced",
49639
49639
  label: "Bootstrap Component",
@@ -49687,7 +49687,7 @@ const JX = Cu(YX), Lte = Cu(QX), Nte = Cu([HX]), ZX = Cu([jS, zS]), XX = KX(), R
49687
49687
  builderComponent: lf,
49688
49688
  builderBinding: "BWrapperComponent",
49689
49689
  control: {
49690
- popoverContent: "Wrap an existing subpage within this Form into a Bootstrap Vue component ",
49690
+ popoverContent: "Wrap an existing subpage within this Form into a Bootstrap Vue component",
49691
49691
  order: 2,
49692
49692
  group: "Advanced",
49693
49693
  label: "Bootstrap Wrapper",
@@ -345,4 +345,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
345
345
  }`},"keyframe-block-list":{syntax:"<keyframe-block>+"},"keyframe-selector":{syntax:"from | to | <percentage>"},"leader()":{syntax:"leader( <leader-type> )"},"leader-type":{syntax:"dotted | solid | space | <string>"},"length-percentage":{syntax:"<length> | <percentage>"},"line-names":{syntax:"'[' <custom-ident>* ']'"},"line-name-list":{syntax:"[ <line-names> | <name-repeat> ]+"},"line-style":{syntax:"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset"},"line-width":{syntax:"<length> | thin | medium | thick"},"linear-color-hint":{syntax:"<length-percentage>"},"linear-color-stop":{syntax:"<color> <color-stop-length>?"},"linear-gradient()":{syntax:"linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"mask-layer":{syntax:"<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"},"mask-position":{syntax:"[ <length-percentage> | left | center | right ] [ <length-percentage> | top | center | bottom ]?"},"mask-reference":{syntax:"none | <image> | <mask-source>"},"mask-source":{syntax:"<url>"},"masking-mode":{syntax:"alpha | luminance | match-source"},"matrix()":{syntax:"matrix( <number>#{6} )"},"matrix3d()":{syntax:"matrix3d( <number>#{16} )"},"max()":{syntax:"max( <calc-sum># )"},"media-and":{syntax:"<media-in-parens> [ and <media-in-parens> ]+"},"media-condition":{syntax:"<media-not> | <media-and> | <media-or> | <media-in-parens>"},"media-condition-without-or":{syntax:"<media-not> | <media-and> | <media-in-parens>"},"media-feature":{syntax:"( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"},"media-in-parens":{syntax:"( <media-condition> ) | <media-feature> | <general-enclosed>"},"media-not":{syntax:"not <media-in-parens>"},"media-or":{syntax:"<media-in-parens> [ or <media-in-parens> ]+"},"media-query":{syntax:"<media-condition> | [ not | only ]? <media-type> [ and <media-condition-without-or> ]?"},"media-query-list":{syntax:"<media-query>#"},"media-type":{syntax:"<ident>"},"mf-boolean":{syntax:"<mf-name>"},"mf-name":{syntax:"<ident>"},"mf-plain":{syntax:"<mf-name> : <mf-value>"},"mf-range":{syntax:`<mf-name> [ '<' | '>' ]? '='? <mf-value>
346
346
  | <mf-value> [ '<' | '>' ]? '='? <mf-name>
347
347
  | <mf-value> '<' '='? <mf-name> '<' '='? <mf-value>
348
- | <mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`},"mf-value":{syntax:"<number> | <dimension> | <ident> | <ratio>"},"min()":{syntax:"min( <calc-sum># )"},"minmax()":{syntax:"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"named-color":{syntax:"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen"},"namespace-prefix":{syntax:"<ident>"},"ns-prefix":{syntax:"[ <ident-token> | '*' ]? '|'"},"number-percentage":{syntax:"<number> | <percentage>"},"numeric-figure-values":{syntax:"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{syntax:"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{syntax:"[ proportional-nums | tabular-nums ]"},nth:{syntax:"<an-plus-b> | even | odd"},"opacity()":{syntax:"opacity( [ <number-percentage> ] )"},"overflow-position":{syntax:"unsafe | safe"},"outline-radius":{syntax:"<length> | <percentage>"},"page-body":{syntax:"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{syntax:"<page-margin-box-type> '{' <declaration-list> '}'"},"page-margin-box-type":{syntax:"@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom"},"page-selector-list":{syntax:"[ <page-selector># ]?"},"page-selector":{syntax:"<pseudo-page>+ | <ident> <pseudo-page>*"},"path()":{syntax:"path( [ <fill-rule>, ]? <string> )"},"paint()":{syntax:"paint( <ident>, <declaration-value>? )"},"perspective()":{syntax:"perspective( <length> )"},"polygon()":{syntax:"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},position:{syntax:"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pseudo-class-selector":{syntax:"':' <ident-token> | ':' <function-token> <any-value> ')'"},"pseudo-element-selector":{syntax:"':' <pseudo-class-selector>"},"pseudo-page":{syntax:": [ left | right | first | blank ]"},quote:{syntax:"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{syntax:"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"relative-selector":{syntax:"<combinator>? <complex-selector>"},"relative-selector-list":{syntax:"<relative-selector>#"},"relative-size":{syntax:"larger | smaller"},"repeat-style":{syntax:"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{syntax:"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"repeating-radial-gradient()":{syntax:"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"rgb()":{syntax:"rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"},"rgba()":{syntax:"rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"},"rotate()":{syntax:"rotate( [ <angle> | <zero> ] )"},"rotate3d()":{syntax:"rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )"},"rotateX()":{syntax:"rotateX( [ <angle> | <zero> ] )"},"rotateY()":{syntax:"rotateY( [ <angle> | <zero> ] )"},"rotateZ()":{syntax:"rotateZ( [ <angle> | <zero> ] )"},"saturate()":{syntax:"saturate( <number-percentage> )"},"scale()":{syntax:"scale( <number> , <number>? )"},"scale3d()":{syntax:"scale3d( <number> , <number> , <number> )"},"scaleX()":{syntax:"scaleX( <number> )"},"scaleY()":{syntax:"scaleY( <number> )"},"scaleZ()":{syntax:"scaleZ( <number> )"},"self-position":{syntax:"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{syntax:"<length-percentage> | closest-side | farthest-side"},"skew()":{syntax:"skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )"},"skewX()":{syntax:"skewX( [ <angle> | <zero> ] )"},"skewY()":{syntax:"skewY( [ <angle> | <zero> ] )"},"sepia()":{syntax:"sepia( <number-percentage> )"},shadow:{syntax:"inset? && <length>{2,4} && <color>?"},"shadow-t":{syntax:"[ <length>{2,3} && <color>? ]"},shape:{syntax:"rect(<top>, <right>, <bottom>, <left>)"},"shape-box":{syntax:"<box> | margin-box"},"side-or-corner":{syntax:"[ left | right ] || [ top | bottom ]"},"single-animation":{syntax:"<time> || <timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state> || [ none | <keyframes-name> ]"},"single-animation-direction":{syntax:"normal | reverse | alternate | alternate-reverse"},"single-animation-fill-mode":{syntax:"none | forwards | backwards | both"},"single-animation-iteration-count":{syntax:"infinite | <number>"},"single-animation-play-state":{syntax:"running | paused"},"single-transition":{syntax:"[ none | <single-transition-property> ] || <time> || <timing-function> || <time>"},"single-transition-property":{syntax:"all | <custom-ident>"},size:{syntax:"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}"},"step-position":{syntax:"jump-start | jump-end | jump-none | jump-both | start | end"},"step-timing-function":{syntax:"step-start | step-end | steps(<integer>[, <step-position>]?)"},"subclass-selector":{syntax:"<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"},"supports-condition":{syntax:"not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"},"supports-in-parens":{syntax:"( <supports-condition> ) | <supports-feature> | <general-enclosed>"},"supports-feature":{syntax:"<supports-decl> | <supports-selector-fn>"},"supports-decl":{syntax:"( <declaration> )"},"supports-selector-fn":{syntax:"selector( <complex-selector> )"},symbol:{syntax:"<string> | <image> | <custom-ident>"},target:{syntax:"<target-counter()> | <target-counters()> | <target-text()>"},"target-counter()":{syntax:"target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )"},"target-counters()":{syntax:"target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )"},"target-text()":{syntax:"target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )"},"time-percentage":{syntax:"<time> | <percentage>"},"timing-function":{syntax:"linear | <cubic-bezier-timing-function> | <step-timing-function>"},"track-breadth":{syntax:"<length-percentage> | <flex> | min-content | max-content | auto"},"track-list":{syntax:"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?"},"track-repeat":{syntax:"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )"},"track-size":{syntax:"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )"},"transform-function":{syntax:"<matrix()> | <translate()> | <translateX()> | <translateY()> | <scale()> | <scaleX()> | <scaleY()> | <rotate()> | <skew()> | <skewX()> | <skewY()> | <matrix3d()> | <translate3d()> | <translateZ()> | <scale3d()> | <scaleZ()> | <rotate3d()> | <rotateX()> | <rotateY()> | <rotateZ()> | <perspective()>"},"transform-list":{syntax:"<transform-function>+"},"translate()":{syntax:"translate( <length-percentage> , <length-percentage>? )"},"translate3d()":{syntax:"translate3d( <length-percentage> , <length-percentage> , <length> )"},"translateX()":{syntax:"translateX( <length-percentage> )"},"translateY()":{syntax:"translateY( <length-percentage> )"},"translateZ()":{syntax:"translateZ( <length> )"},"type-or-unit":{syntax:"string | color | url | integer | number | length | angle | time | frequency | cap | ch | em | ex | ic | lh | rlh | rem | vb | vi | vw | vh | vmin | vmax | mm | Q | cm | in | pt | pc | px | deg | grad | rad | turn | ms | s | Hz | kHz | %"},"type-selector":{syntax:"<wq-name> | <ns-prefix>? '*'"},"var()":{syntax:"var( <custom-property-name> , <declaration-value>? )"},"viewport-length":{syntax:"auto | <length-percentage>"},"wq-name":{syntax:"<ns-prefix>? <ident-token>"}},pG={atrules:{charset:{prelude:"<string>"},"font-face":{descriptors:{"unicode-range":{comment:"replaces <unicode-range>, an old production name",syntax:"<urange>#"}}}},properties:{"-moz-background-clip":{comment:"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"padding | border"},"-moz-border-radius-bottomleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius",syntax:"<'border-bottom-left-radius'>"},"-moz-border-radius-bottomright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-border-radius-topleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius",syntax:"<'border-top-left-radius'>"},"-moz-border-radius-topright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-control-character-visibility":{comment:"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588",syntax:"visible | hidden"},"-moz-osx-font-smoothing":{comment:"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | grayscale"},"-moz-user-select":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"none | text | all | -moz-none"},"-ms-flex-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"start | end | center | baseline | stretch"},"-ms-flex-item-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack",syntax:"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-shrink'>"},"-ms-flex-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack",syntax:"start | end | center | justify | distribute"},"-ms-flex-order":{comment:"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx",syntax:"<integer>"},"-ms-flex-positive":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-grow'>"},"-ms-flex-preferred-size":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-basis'>"},"-ms-interpolation-mode":{comment:"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx",syntax:"nearest-neighbor | bicubic"},"-ms-grid-column-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx",syntax:"start | end | center | stretch"},"-ms-grid-row-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx",syntax:"start | end | center | stretch"},"-ms-hyphenate-limit-last":{comment:"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits",syntax:"none | always | column | page | spread"},"-webkit-appearance":{comment:"webkit specific keywords",references:["http://css-infos.net/property/-webkit-appearance"],syntax:"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"},"-webkit-background-clip":{comment:"https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"[ <box> | border | padding | content | text ]#"},"-webkit-column-break-after":{comment:"added, http://help.dottoro.com/lcrthhhv.php",syntax:"always | auto | avoid"},"-webkit-column-break-before":{comment:"added, http://help.dottoro.com/lcxquvkf.php",syntax:"always | auto | avoid"},"-webkit-column-break-inside":{comment:"added, http://help.dottoro.com/lclhnthl.php",syntax:"always | auto | avoid"},"-webkit-font-smoothing":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{comment:"missed",references:["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],syntax:"economy | exact"},"-webkit-text-security":{comment:"missed; http://help.dottoro.com/lcbkewgt.php",syntax:"none | circle | disc | square"},"-webkit-user-drag":{comment:"missed; http://help.dottoro.com/lcbixvwm.php",syntax:"none | element | auto"},"-webkit-user-select":{comment:"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"auto | none | text | all"},"alignment-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],syntax:"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],syntax:"baseline | sub | super | <svg-length>"},behavior:{comment:"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx",syntax:"<url>+"},"clip-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],syntax:"nonzero | evenodd"},cue:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'cue-before'> <'cue-after'>?"},"cue-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},"cue-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},cursor:{comment:"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out",references:["https://www.sitepoint.com/css3-cursor-styles/"],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"},display:{comment:"extended with -ms-flexbox",syntax:"| <-non-standard-display>"},position:{comment:"extended with -webkit-sticky",syntax:"| -webkit-sticky"},"dominant-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],syntax:"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{comment:"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality",references:["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],syntax:"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},fill:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<paint>"},"fill-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<number-zero-one>"},"fill-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"nonzero | evenodd"},filter:{comment:"extend with IE legacy syntaxes",syntax:"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],syntax:"<angle>"},"glyph-orientation-vertical":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],syntax:"<angle>"},kerning:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#KerningProperty"],syntax:"auto | <svg-length>"},"letter-spacing":{comment:"fix syntax <length> -> <length-percentage>",references:["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],syntax:"normal | <length-percentage>"},marker:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-end":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-mid":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-start":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"max-width":{comment:"fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width",syntax:"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},width:{comment:"per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)",syntax:"| fit-content | -moz-fit-content | -webkit-fit-content"},"min-width":{comment:"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},overflow:{comment:"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"| <-non-standard-overflow>"},pause:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'pause-before'> <'pause-after'>?"},"pause-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"pause-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},rest:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'rest-before'> <'rest-after'>?"},"rest-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"shape-rendering":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#ShapeRenderingPropert"],syntax:"auto | optimizeSpeed | crispEdges | geometricPrecision"},src:{comment:"added @font-face's src property https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src",syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#"},speak:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | none | normal"},"speak-as":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]"},stroke:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<paint>"},"stroke-dasharray":{comment:"added SVG property; a list of comma and/or white space separated <length>s and <percentage>s",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"none | [ <svg-length>+ ]#"},"stroke-dashoffset":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"stroke-linecap":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"butt | round | square"},"stroke-linejoin":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"miter | round | bevel"},"stroke-miterlimit":{comment:"added SVG property (<miterlimit> = <number-one-or-greater>) ",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-one-or-greater>"},"stroke-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-zero-one>"},"stroke-width":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"text-anchor":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#TextAlignmentProperties"],syntax:"start | middle | end"},"unicode-bidi":{comment:"added prefixed keywords https://developer.mozilla.org/en-US/docs/Web/CSS/unicode-bidi",syntax:"| -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"},"unicode-range":{comment:"added missed property https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range",syntax:"<urange>#"},"voice-balance":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<number> | left | center | right | leftwards | rightwards"},"voice-duration":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | <time>"},"voice-family":{comment:"<name> -> <family-name>, https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve"},"voice-pitch":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-range":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-rate":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>"},"voice-stress":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | strong | moderate | none | reduced"},"voice-volume":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]"},"writing-mode":{comment:"extend with SVG keywords",syntax:"| <svg-writing-mode>"}},syntaxes:{"-legacy-gradient":{comment:"added collection of legacy gradient syntaxes",syntax:"<-webkit-gradient()> | <-legacy-linear-gradient> | <-legacy-repeating-linear-gradient> | <-legacy-radial-gradient> | <-legacy-repeating-radial-gradient>"},"-legacy-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-repeating-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-linear-gradient-arguments":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"[ <angle> | <side-or-corner> ]? , <color-stop-list>"},"-legacy-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-repeating-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-radial-gradient-arguments":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"},"-legacy-radial-gradient-size":{comment:"before a standard it contains 2 extra keywords (`contain` and `cover`) https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltsize",syntax:"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"},"-legacy-radial-gradient-shape":{comment:"define to double sure it doesn't extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape",syntax:"circle | ellipse"},"-non-standard-font":{comment:"non standard fonts",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body"},"-non-standard-color":{comment:"non standard colors",references:["http://cssdot.ru/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA_CSS/color-i305.html","https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Mozilla_Color_Preference_Extensions"],syntax:"-moz-ButtonDefault | -moz-ButtonHoverFace | -moz-ButtonHoverText | -moz-CellHighlight | -moz-CellHighlightText | -moz-Combobox | -moz-ComboboxText | -moz-Dialog | -moz-DialogText | -moz-dragtargetzone | -moz-EvenTreeRow | -moz-Field | -moz-FieldText | -moz-html-CellHighlight | -moz-html-CellHighlightText | -moz-mac-accentdarkestshadow | -moz-mac-accentdarkshadow | -moz-mac-accentface | -moz-mac-accentlightesthighlight | -moz-mac-accentlightshadow | -moz-mac-accentregularhighlight | -moz-mac-accentregularshadow | -moz-mac-chrome-active | -moz-mac-chrome-inactive | -moz-mac-focusring | -moz-mac-menuselect | -moz-mac-menushadow | -moz-mac-menutextselect | -moz-MenuHover | -moz-MenuHoverText | -moz-MenuBarText | -moz-MenuBarHoverText | -moz-nativehyperlinktext | -moz-OddTreeRow | -moz-win-communicationstext | -moz-win-mediatext | -moz-activehyperlinktext | -moz-default-background-color | -moz-default-color | -moz-hyperlinktext | -moz-visitedhyperlinktext | -webkit-activelink | -webkit-focus-ring-color | -webkit-link | -webkit-text"},"-non-standard-image-rendering":{comment:"non-standard keywords http://phrogz.net/tmp/canvas_image_zoom.html",syntax:"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast"},"-non-standard-overflow":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"-moz-scrollbars-none | -moz-scrollbars-horizontal | -moz-scrollbars-vertical | -moz-hidden-unscrollable"},"-non-standard-width":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"fill-available | min-intrinsic | intrinsic | -moz-available | -moz-fit-content | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content"},"-webkit-gradient()":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/ - TODO: simplify when after match algorithm improvement ( [, point, radius | , point] -> [, radius]? , point )",syntax:"-webkit-gradient( <-webkit-gradient-type>, <-webkit-gradient-point> [, <-webkit-gradient-point> | , <-webkit-gradient-radius>, <-webkit-gradient-point> ] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )"},"-webkit-gradient-color-stop":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )"},"-webkit-gradient-point":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]"},"-webkit-gradient-radius":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"<length> | <percentage>"},"-webkit-gradient-type":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"linear | radial"},"-webkit-mask-box-repeat":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"repeat | stretch | round"},"-webkit-mask-clip-style":{comment:"missed; there is no enough information about `-webkit-mask-clip` property, but looks like all those keywords are working",syntax:"border | border-box | padding | padding-box | content | content-box | text"},"-ms-filter-function-list":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function>+"},"-ms-filter-function":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function-progid> | <-ms-filter-function-legacy>"},"-ms-filter-function-progid":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"'progid:' [ <ident-token> '.' ]* [ <ident-token> | <function-token> <any-value>? ) ]"},"-ms-filter-function-legacy":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<ident-token> | <function-token> <any-value>? )"},"-ms-filter":{syntax:"<string>"},age:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"child | young | old"},"attr-name":{syntax:"<wq-name>"},"attr-fallback":{syntax:"<any-value>"},"border-radius":{comment:"missed, https://drafts.csswg.org/css-backgrounds-3/#the-border-radius",syntax:"<length-percentage>{1,2}"},bottom:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"content-list":{comment:"missed -> https://drafts.csswg.org/css-content/#typedef-content-list (document-url, <target> and leader() is omitted util stabilization)",syntax:"[ <string> | contents | <image> | <quote> | <target> | <leader()> | <attr()> | counter( <ident>, <'list-style-type'>? ) ]+"},"element()":{comment:"https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation",syntax:"element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"},"generic-voice":{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"[ <age>? <gender> <integer>? ]"},gender:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"male | female | neutral"},"generic-family":{comment:"added -apple-system",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"| -apple-system"},gradient:{comment:"added legacy syntaxes support",syntax:"| <-legacy-gradient>"},left:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"mask-image":{comment:"missed; https://drafts.fxtf.org/css-masking-1/#the-mask-image",syntax:"<mask-reference>#"},"name-repeat":{comment:"missed, and looks like obsolete, keep it as is since other property syntaxes should be changed too; https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-name-repeat",syntax:"repeat( [ <positive-integer> | auto-fill ], <line-names>+)"},"named-color":{comment:"added non standard color names",syntax:"| <-non-standard-color>"},paint:{comment:"used by SVG https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint",syntax:"none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke"},"page-size":{comment:"https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size",syntax:"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},ratio:{comment:"missed, https://drafts.csswg.org/mediaqueries-4/#typedef-ratio",syntax:"<integer> / <integer>"},right:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},shape:{comment:"missed spaces in function body and add backwards compatible syntax",syntax:"rect( <top>, <right>, <bottom>, <left> ) | rect( <top> <right> <bottom> <left> )"},"svg-length":{comment:"All coordinates and lengths in SVG can be specified with or without a unit identifier",references:["https://www.w3.org/TR/SVG11/coords.html#Units"],syntax:"<percentage> | <length> | <number>"},"svg-writing-mode":{comment:"SVG specific keywords (deprecated for CSS)",references:["https://developer.mozilla.org/en/docs/Web/CSS/writing-mode","https://www.w3.org/TR/SVG/text.html#WritingModeProperty"],syntax:"lr-tb | rl-tb | tb-rl | lr | rl | tb"},top:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"track-group":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"'(' [ <string>* <track-minmax> <string>* ]+ ')' [ '[' <positive-integer> ']' ]? | <track-minmax>"},"track-list-v0":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"[ <string>* <track-group> <string>* ]+ | none"},"track-minmax":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"minmax( <track-breadth> , <track-breadth> ) | auto | <track-breadth> | fit-content"},x:{comment:"missed; not sure we should add it, but no others except `cursor` is using it so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},y:{comment:"missed; not sure we should add it, but no others except `cursor` is using so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},declaration:{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"<ident-token> : <declaration-value>? [ '!' important ]?"},"declaration-list":{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"[ <declaration>? ';' ]* <declaration>?"},url:{comment:"https://drafts.csswg.org/css-values-4/#urls",syntax:"url( <string> <url-modifier>* ) | <url-token>"},"url-modifier":{comment:"https://drafts.csswg.org/css-values-4/#typedef-url-modifier",syntax:"<ident> | <function-token> <any-value> )"},"number-zero-one":{syntax:"<number [0,1]>"},"number-one-or-greater":{syntax:"<number [1,∞]>"},"positive-integer":{syntax:"<integer [0,∞]>"},"-non-standard-display":{syntax:"-ms-inline-flexbox | -ms-grid | -ms-inline-grid | -webkit-flex | -webkit-inline-flex | -webkit-box | -webkit-inline-box | -moz-inline-stack | -moz-box | -moz-inline-box"}}},fG=uG,hG=cG,mG=dG,Bp=pG,NS=/^\s*\|\s*/;function gG(t){const e=Object.create(null);for(const r in t){const i=t[r];let a=null;if(i.descriptors){a=Object.create(null);for(const n in i.descriptors)a[n]=i.descriptors[n].syntax}e[r.substr(1)]={prelude:i.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:a}}return e}function Wp(t,e){const r={};for(const i in t)r[i]=t[i].syntax||t[i];for(const i in e)i in t?e[i].syntax?r[i]=NS.test(e[i].syntax)?r[i]+" "+e[i].syntax.trim():e[i].syntax:delete r[i]:e[i].syntax&&(r[i]=e[i].syntax.replace(NS,""));return r}function RS(t){const e={};for(const r in t)e[r]=t[r].syntax;return e}function vG(t,e){const r={};for(const i in t){const a=e[i]&&e[i].descriptors||null;r[i]={prelude:i in e&&"prelude"in e[i]?e[i].prelude:t[i].prelude||null,descriptors:t[i].descriptors?Wp(t[i].descriptors,a||{}):a&&RS(a)}}for(const i in e)hasOwnProperty.call(t,i)||(r[i]={prelude:e[i].prelude||null,descriptors:e[i].descriptors&&RS(e[i].descriptors)});return r}var bG={types:Wp(mG,Bp.syntaxes),atrules:vG(gG(fG),Bp.atrules),properties:Wp(hG,Bp.properties)},FS=ce.cmpChar,qS=ce.isDigit,Ss=ce.TYPE,BS=Ss.WhiteSpace,WS=Ss.Comment,Vp=Ss.Ident,ti=Ss.Number,yG=Ss.Dimension,$r=43,Rt=45,iu=110,Ui=!0,SG=!1;function au(t,e){var r=this.scanner.tokenStart+t,i=this.scanner.source.charCodeAt(r);for((i===$r||i===Rt)&&(e&&this.error("Number sign is not allowed"),r++);r<this.scanner.tokenEnd;r++)qS(this.scanner.source.charCodeAt(r))||this.error("Integer is expected",r)}function Wa(t){return au.call(this,0,t)}function yi(t,e){if(!FS(this.scanner.source,this.scanner.tokenStart+t,e)){var r="";switch(e){case iu:r="N is expected";break;case Rt:r="HyphenMinus is expected";break}this.error(r,this.scanner.tokenStart+t)}}function Up(){for(var t=0,e=0,r=this.scanner.tokenType;r===BS||r===WS;)r=this.scanner.lookupType(++t);if(r!==ti)if(this.scanner.isDelim($r,t)||this.scanner.isDelim(Rt,t)){e=this.scanner.isDelim($r,t)?$r:Rt;do r=this.scanner.lookupType(++t);while(r===BS||r===WS);r!==ti&&(this.scanner.skip(t),Wa.call(this,Ui))}else return null;return t>0&&this.scanner.skip(t),e===0&&(r=this.scanner.source.charCodeAt(this.scanner.tokenStart),r!==$r&&r!==Rt&&this.error("Number sign is expected")),Wa.call(this,e!==0),e===Rt?"-"+this.consume(ti):this.consume(ti)}var xG={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var t=this.scanner.tokenStart,e=null,r=null;if(this.scanner.tokenType===ti)Wa.call(this,SG),r=this.consume(ti);else if(this.scanner.tokenType===Vp&&FS(this.scanner.source,this.scanner.tokenStart,Rt))switch(e="-1",yi.call(this,1,iu),this.scanner.getTokenLength()){case 2:this.scanner.next(),r=Up.call(this);break;case 3:yi.call(this,2,Rt),this.scanner.next(),this.scanner.skipSC(),Wa.call(this,Ui),r="-"+this.consume(ti);break;default:yi.call(this,2,Rt),au.call(this,3,Ui),this.scanner.next(),r=this.scanner.substrToCursor(t+2)}else if(this.scanner.tokenType===Vp||this.scanner.isDelim($r)&&this.scanner.lookupType(1)===Vp){var i=0;switch(e="1",this.scanner.isDelim($r)&&(i=1,this.scanner.next()),yi.call(this,0,iu),this.scanner.getTokenLength()){case 1:this.scanner.next(),r=Up.call(this);break;case 2:yi.call(this,1,Rt),this.scanner.next(),this.scanner.skipSC(),Wa.call(this,Ui),r="-"+this.consume(ti);break;default:yi.call(this,1,Rt),au.call(this,2,Ui),this.scanner.next(),r=this.scanner.substrToCursor(t+i+1)}}else if(this.scanner.tokenType===yG){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=a===$r||a===Rt,n=this.scanner.tokenStart+i;n<this.scanner.tokenEnd&&qS(this.scanner.source.charCodeAt(n));n++);n===this.scanner.tokenStart+i&&this.error("Integer is expected",this.scanner.tokenStart+i),yi.call(this,n-this.scanner.tokenStart,iu),e=this.scanner.source.substring(t,n),n+1===this.scanner.tokenEnd?(this.scanner.next(),r=Up.call(this)):(yi.call(this,n-this.scanner.tokenStart+1,Rt),n+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),Wa.call(this,Ui),r="-"+this.consume(ti)):(au.call(this,n-this.scanner.tokenStart+2,Ui),this.scanner.next(),r=this.scanner.substrToCursor(n+1)))}else this.error();return e!==null&&e.charCodeAt(0)===$r&&(e=e.substr(1)),r!==null&&r.charCodeAt(0)===$r&&(r=r.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.scanner.tokenStart),a:e,b:r}},generate:function(t){var e=t.a!==null&&t.a!==void 0,r=t.b!==null&&t.b!==void 0;e?(this.chunk(t.a==="+1"?"+n":t.a==="1"?"n":t.a==="-1"?"-n":t.a+"n"),r&&(r=String(t.b),r.charAt(0)==="-"||r.charAt(0)==="+"?(this.chunk(r.charAt(0)),this.chunk(r.substr(1))):(this.chunk("+"),this.chunk(r)))):this.chunk(String(t.b))}},kG=ce,nu=kG.TYPE,_G=nu.WhiteSpace,Gp=nu.Semicolon,VS=nu.LeftCurlyBracket,wG=nu.Delim,CG=33;function TG(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===_G?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function US(){return 0}function AG(t){return t===VS?1:0}function OG(t){return t===VS||t===Gp?1:0}function EG(t,e,r){return t===wG&&e.charCodeAt(r)===CG||t===Gp?1:0}function MG(t){return t===Gp?2:0}var Gi={name:"Raw",structure:{value:String},parse:function(t,e,r){var i=this.scanner.getTokenStart(t),a;return this.scanner.skip(this.scanner.getRawLength(t,e||US)),r&&this.scanner.tokenStart>i?a=TG.call(this):a=this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(i,a),value:this.scanner.source.substring(i,a)}},generate:function(t){this.chunk(t.value)},mode:{default:US,leftCurlyBracket:AG,leftCurlyBracketOrSemicolon:OG,exclamationMarkOrSemicolon:EG,semicolonIncluded:MG}},su=ce.TYPE,$G=Gi.mode,GS=su.AtKeyword,HS=su.Semicolon,Hp=su.LeftCurlyBracket,DG=su.RightCurlyBracket;function YS(t){return this.Raw(t,$G.leftCurlyBracketOrSemicolon,!0)}function PG(){for(var t=1,e;e=this.scanner.lookupType(t);t++){if(e===DG)return!0;if(e===Hp||e===GS)return!1}return!1}var IG={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var t=this.scanner.tokenStart,e,r,i=null,a=null;switch(this.eat(GS),e=this.scanner.substrToCursor(t+1),r=e.toLowerCase(),this.scanner.skipSC(),this.scanner.eof===!1&&this.scanner.tokenType!==Hp&&this.scanner.tokenType!==HS&&(this.parseAtrulePrelude?(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),YS),i.type==="AtrulePrelude"&&i.children.head===null&&(i=null)):i=YS.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case HS:this.scanner.next();break;case Hp:this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this):a=this.Block(PG.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.scanner.tokenStart),name:e,prelude:i,block:a}},generate:function(t){this.chunk("@"),this.chunk(t.name),t.prelude!==null&&(this.chunk(" "),this.node(t.prelude)),t.block?this.node(t.block):this.chunk(";")},walkContext:"atrule"},QS=ce.TYPE,zG=QS.Semicolon,jG=QS.LeftCurlyBracket,LG={name:"AtrulePrelude",structure:{children:[[]]},parse:function(t){var e=null;return t!==null&&(t=t.toLowerCase()),this.scanner.skipSC(),this.atrule.hasOwnProperty(t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),this.scanner.eof!==!0&&this.scanner.tokenType!==jG&&this.scanner.tokenType!==zG&&this.error("Semicolon or block is expected"),e===null&&(e=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t)},walkContext:"atrulePrelude"},xs=ce.TYPE,ks=xs.Ident,NG=xs.String,RG=xs.Colon,FG=xs.LeftSquareBracket,KS=xs.RightSquareBracket,qG=36,JS=42,ou=61,BG=94,Yp=124,WG=126;function VG(){this.scanner.eof&&this.error("Unexpected end of input");var t=this.scanner.tokenStart,e=!1,r=!0;return this.scanner.isDelim(JS)?(e=!0,r=!1,this.scanner.next()):this.scanner.isDelim(Yp)||this.eat(ks),this.scanner.isDelim(Yp)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==ou?(this.scanner.next(),this.eat(ks)):e&&this.error("Identifier is expected",this.scanner.tokenEnd):e&&this.error("Vertical line is expected"),r&&this.scanner.tokenType===RG&&(this.scanner.next(),this.eat(ks)),{type:"Identifier",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}}function UG(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(t);return e!==ou&&e!==WG&&e!==BG&&e!==qG&&e!==JS&&e!==Yp&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),e!==ou&&(this.scanner.isDelim(ou)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(t)}var GG={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var t=this.scanner.tokenStart,e,r=null,i=null,a=null;return this.eat(FG),this.scanner.skipSC(),e=VG.call(this),this.scanner.skipSC(),this.scanner.tokenType!==KS&&(this.scanner.tokenType!==ks&&(r=UG.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===NG?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===ks&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(KS),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:r,value:i,flags:a}},generate:function(t){var e=" ";this.chunk("["),this.node(t.name),t.matcher!==null&&(this.chunk(t.matcher),t.value!==null&&(this.node(t.value),t.value.type==="String"&&(e=""))),t.flags!==null&&(this.chunk(e),this.chunk(t.flags)),this.chunk("]")}},Va=ce.TYPE,HG=Gi.mode,YG=Va.WhiteSpace,QG=Va.Comment,ZS=Va.Semicolon,KG=Va.AtKeyword,JG=Va.LeftCurlyBracket,XS=Va.RightCurlyBracket;function ex(t){return this.Raw(t,null,!0)}function ZG(){return this.parseWithFallback(this.Rule,ex)}function tx(t){return this.Raw(t,HG.semicolonIncluded,!0)}function XG(){if(this.scanner.tokenType===ZS)return tx.call(this,this.scanner.tokenIndex);var t=this.parseWithFallback(this.Declaration,tx);return this.scanner.tokenType===ZS&&this.scanner.next(),t}var eH={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(t){var e=t?XG:ZG,r=this.scanner.tokenStart,i=this.createList();this.eat(JG);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case XS:break e;case YG:case QG:this.scanner.next();break;case KG:i.push(this.parseWithFallback(this.Atrule,ex));break;default:i.push(e.call(this))}return this.scanner.eof||this.eat(XS),{type:"Block",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("{"),this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")}),this.chunk("}")},walkContext:"block"},rx=ce.TYPE,tH=rx.LeftSquareBracket,rH=rx.RightSquareBracket,iH={name:"Brackets",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(tH),i=t.call(this,e),this.scanner.eof||this.eat(rH),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("["),this.children(t),this.chunk("]")}},aH=ce.TYPE.CDC,nH={name:"CDC",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(aH),{type:"CDC",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("-->")}},sH=ce.TYPE.CDO,oH={name:"CDO",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(sH),{type:"CDO",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("<!--")}},lH=ce.TYPE,uH=lH.Ident,cH=46,dH={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(cH)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(uH)}},generate:function(t){this.chunk("."),this.chunk(t.name)}},pH=ce.TYPE,fH=pH.Ident,hH=43,ix=47,mH=62,gH=126,vH={name:"Combinator",structure:{name:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case mH:case hH:case gH:this.scanner.next();break;case ix:this.scanner.next(),(this.scanner.tokenType!==fH||this.scanner.lookupValue(0,"deep")===!1)&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(ix)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},bH=ce.TYPE,yH=bH.Comment,SH=42,xH=47,kH={name:"Comment",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenEnd;return this.eat(yH),e-t+2>=2&&this.scanner.source.charCodeAt(e-2)===SH&&this.scanner.source.charCodeAt(e-1)===xH&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t+2,e)}},generate:function(t){this.chunk("/*"),this.chunk(t.value),this.chunk("*/")}},_H=tp.isCustomProperty,Ua=ce.TYPE,ax=Gi.mode,nx=Ua.Ident,sx=Ua.Hash,wH=Ua.Colon,ox=Ua.Semicolon,lx=Ua.Delim,CH=Ua.WhiteSpace,ux=33,TH=35,AH=36,OH=38,EH=42,MH=43,cx=47;function $H(t){return this.Raw(t,ax.exclamationMarkOrSemicolon,!0)}function DH(t){return this.Raw(t,ax.exclamationMarkOrSemicolon,!1)}function PH(){var t=this.scanner.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==ox&&this.scanner.isDelim(ux)===!1&&this.scanner.isBalanceEdge(t)===!1&&this.error(),e}var IH={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenIndex,r=zH.call(this),i=_H(r),a=i?this.parseCustomProperty:this.parseValue,n=i?DH:$H,s=!1,o;this.scanner.skipSC(),this.eat(wH);const u=this.scanner.tokenIndex;if(i||this.scanner.skipSC(),a?o=this.parseWithFallback(PH,n):o=n.call(this,this.scanner.tokenIndex),i&&o.type==="Value"&&o.children.isEmpty()){for(let l=u-this.scanner.tokenIndex;l<=0;l++)if(this.scanner.lookupType(l)===CH){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.scanner.isDelim(ux)&&(s=jH.call(this),this.scanner.skipSC()),this.scanner.eof===!1&&this.scanner.tokenType!==ox&&this.scanner.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:s,property:r,value:o}},generate:function(t){this.chunk(t.property),this.chunk(":"),this.node(t.value),t.important&&this.chunk(t.important===!0?"!important":"!"+t.important)},walkContext:"declaration"};function zH(){var t=this.scanner.tokenStart;if(this.scanner.tokenType===lx)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case EH:case AH:case MH:case TH:case OH:this.scanner.next();break;case cx:this.scanner.next(),this.scanner.isDelim(cx)&&this.scanner.next();break}return this.scanner.tokenType===sx?this.eat(sx):this.eat(nx),this.scanner.substrToCursor(t)}function jH(){this.eat(lx),this.scanner.skipSC();var t=this.consume(nx);return t==="important"?!0:t}var Qp=ce.TYPE,LH=Gi.mode,NH=Qp.WhiteSpace,RH=Qp.Comment,FH=Qp.Semicolon;function qH(t){return this.Raw(t,LH.semicolonIncluded,!0)}var BH={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case NH:case RH:case FH:this.scanner.next();break;default:t.push(this.parseWithFallback(this.Declaration,qH))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")})}},WH=as.consumeNumber,VH=ce.TYPE,UH=VH.Dimension,GH={name:"Dimension",structure:{value:String,unit:String},parse:function(){var t=this.scanner.tokenStart,e=WH(this.scanner.source,t);return this.eat(UH),{type:"Dimension",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e),unit:this.scanner.source.substring(e,this.scanner.tokenStart)}},generate:function(t){this.chunk(t.value),this.chunk(t.unit)}},HH=ce.TYPE,YH=HH.RightParenthesis,QH={name:"Function",structure:{name:String,children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=this.consumeFunctionName(),a=i.toLowerCase(),n;return n=e.hasOwnProperty(a)?e[a].call(this,e):t.call(this,e),this.scanner.eof||this.eat(YH),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:i,children:n}},generate:function(t){this.chunk(t.name),this.chunk("("),this.children(t),this.chunk(")")},walkContext:"function"},KH=ce.TYPE,JH=KH.Hash,ZH={name:"Hash",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(JH),{type:"Hash",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.value)}},XH=ce.TYPE,e7=XH.Ident,t7={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(e7)}},generate:function(t){this.chunk(t.name)}},r7=ce.TYPE,i7=r7.Hash,a7={name:"IdSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(i7),{type:"IdSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.name)}},Hi=ce.TYPE,dx=Hi.Ident,n7=Hi.Number,s7=Hi.Dimension,o7=Hi.LeftParenthesis,px=Hi.RightParenthesis,l7=Hi.Colon,u7=Hi.Delim,c7={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var t=this.scanner.tokenStart,e,r=null;if(this.eat(o7),this.scanner.skipSC(),e=this.consume(dx),this.scanner.skipSC(),this.scanner.tokenType!==px){switch(this.eat(l7),this.scanner.skipSC(),this.scanner.tokenType){case n7:this.lookupNonWSType(1)===u7?r=this.Ratio():r=this.Number();break;case s7:r=this.Dimension();break;case dx:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(px),{type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:r}},generate:function(t){this.chunk("("),this.chunk(t.name),t.value!==null&&(this.chunk(":"),this.node(t.value)),this.chunk(")")}},lu=ce.TYPE,d7=lu.WhiteSpace,p7=lu.Comment,f7=lu.Ident,h7=lu.LeftParenthesis,m7={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var t=this.createList(),e=null,r=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case p7:this.scanner.next();continue;case d7:r=this.WhiteSpace();continue;case f7:e=this.Identifier();break;case h7:e=this.MediaFeature();break;default:break e}r!==null&&(t.push(r),r=null),t.push(e)}return e===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},g7=ce.TYPE.Comma,v7={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(t){var e=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(e.push(this.MediaQuery(t)),this.scanner.tokenType===g7);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t,function(){this.chunk(",")})}},b7={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(t){this.scanner.skipSC();var e=this.scanner.tokenStart,r=e,i=null,a;return this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?a=this.Identifier():a=this.AnPlusB(),this.scanner.skipSC(),t&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),i=this.SelectorList(),this.needPositions&&(r=this.getLastListNode(i.children).loc.end.offset)):this.needPositions&&(r=a.loc.end.offset),{type:"Nth",loc:this.getLocation(e,r),nth:a,selector:i}},generate:function(t){this.node(t.nth),t.selector!==null&&(this.chunk(" of "),this.node(t.selector))}},y7=ce.TYPE.Number,S7={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(y7)}},generate:function(t){this.chunk(t.value)}},x7={name:"Operator",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},fx=ce.TYPE,k7=fx.LeftParenthesis,_7=fx.RightParenthesis,w7={name:"Parentheses",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(k7),i=t.call(this,e),this.scanner.eof||this.eat(_7),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("("),this.children(t),this.chunk(")")}},C7=as.consumeNumber,T7=ce.TYPE,A7=T7.Percentage,O7={name:"Percentage",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=C7(this.scanner.source,t);return this.eat(A7),{type:"Percentage",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e)}},generate:function(t){this.chunk(t.value),this.chunk("%")}},uu=ce.TYPE,E7=uu.Ident,M7=uu.Function,$7=uu.Colon,D7=uu.RightParenthesis,P7={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat($7),this.scanner.tokenType===M7?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(D7)):r=this.consume(E7),{type:"PseudoClassSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk(":"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},cu=ce.TYPE,I7=cu.Ident,z7=cu.Function,hx=cu.Colon,j7=cu.RightParenthesis,L7={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(hx),this.eat(hx),this.scanner.tokenType===z7?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(j7)):r=this.consume(I7),{type:"PseudoElementSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk("::"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},N7=ce.isDigit,mx=ce.TYPE,R7=mx.Number,F7=mx.Delim,q7=47,B7=46;function gx(){this.scanner.skipWS();for(var t=this.consume(R7),e=0;e<t.length;e++){var r=t.charCodeAt(e);!N7(r)&&r!==B7&&this.error("Unsigned number is expected",this.scanner.tokenStart-t.length+e)}return Number(t)===0&&this.error("Zero number is not allowed",this.scanner.tokenStart-t.length),t}var W7={name:"Ratio",structure:{left:String,right:String},parse:function(){var t=this.scanner.tokenStart,e=gx.call(this),r;return this.scanner.skipWS(),this.scanner.isDelim(q7)||this.error("Solidus is expected"),this.eat(F7),r=gx.call(this),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:e,right:r}},generate:function(t){this.chunk(t.left),this.chunk("/"),this.chunk(t.right)}},V7=ce.TYPE,U7=Gi.mode,G7=V7.LeftCurlyBracket;function vx(t){return this.Raw(t,U7.leftCurlyBracket,!0)}function H7(){var t=this.SelectorList();return t.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==G7&&this.error(),t}var Y7={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var t=this.scanner.tokenIndex,e=this.scanner.tokenStart,r,i;return this.parseRulePrelude?r=this.parseWithFallback(H7,vx):r=vx.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.scanner.tokenStart),prelude:r,block:i}},generate:function(t){this.node(t.prelude),this.node(t.block)},walkContext:"rule"},Q7={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},K7=ce.TYPE,J7=K7.Comma,Z7={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;){if(t.push(this.Selector()),this.scanner.tokenType===J7){this.scanner.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(){this.chunk(",")})},walkContext:"selector"},X7=ce.TYPE.String,eY={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(X7)}},generate:function(t){this.chunk(t.value)}},_s=ce.TYPE,tY=_s.WhiteSpace,rY=_s.Comment,iY=_s.AtKeyword,aY=_s.CDO,nY=_s.CDC,sY=33;function bx(t){return this.Raw(t,null,!1)}var oY={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var t=this.scanner.tokenStart,e=this.createList(),r;!this.scanner.eof;){switch(this.scanner.tokenType){case tY:this.scanner.next();continue;case rY:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==sY){this.scanner.next();continue}r=this.Comment();break;case aY:r=this.CDO();break;case nY:r=this.CDC();break;case iY:r=this.parseWithFallback(this.Atrule,bx);break;default:r=this.parseWithFallback(this.Rule,bx)}e.push(r)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)},walkContext:"stylesheet"},lY=ce.TYPE,uY=lY.Ident,cY=42,yx=124;function Kp(){this.scanner.tokenType!==uY&&this.scanner.isDelim(cY)===!1&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var dY={name:"TypeSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.isDelim(yx)?(this.scanner.next(),Kp.call(this)):(Kp.call(this),this.scanner.isDelim(yx)&&(this.scanner.next(),Kp.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},pY=ce.isHexDigit,Sx=ce.cmpChar,Jp=ce.TYPE,fY=ce.NAME,hY=Jp.Ident,xx=Jp.Number,kx=Jp.Dimension,du=43,_x=45,Zp=63,mY=117;function ws(t,e){for(var r=this.scanner.tokenStart+t,i=0;r<this.scanner.tokenEnd;r++){var a=this.scanner.source.charCodeAt(r);if(a===_x&&e&&i!==0)return ws.call(this,t+i+1,!1)===0&&this.error(),-1;pY(a)||this.error(e&&i!==0?"HyphenMinus"+(i<6?" or hex digit":"")+" is expected":i<6?"Hex digit is expected":"Unexpected input",r),++i>6&&this.error("Too many hex digits",r)}return this.scanner.next(),i}function pu(t){for(var e=0;this.scanner.isDelim(Zp);)++e>t&&this.error("Too many question marks"),this.scanner.next()}function Xp(t){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==t&&this.error(fY[t]+" is expected")}function gY(){var t=0;if(this.scanner.isDelim(du)){if(this.scanner.next(),this.scanner.tokenType===hY){t=ws.call(this,0,!0),t>0&&pu.call(this,6-t);return}if(this.scanner.isDelim(Zp)){this.scanner.next(),pu.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===xx){if(Xp.call(this,du),t=ws.call(this,1,!0),this.scanner.isDelim(Zp)){pu.call(this,6-t);return}if(this.scanner.tokenType===kx||this.scanner.tokenType===xx){Xp.call(this,_x),ws.call(this,1,!1);return}return}if(this.scanner.tokenType===kx){Xp.call(this,du),t=ws.call(this,1,!0),t>0&&pu.call(this,6-t);return}this.error()}var vY={name:"UnicodeRange",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return Sx(this.scanner.source,t,mY)||this.error("U is expected"),Sx(this.scanner.source,t+1,du)||this.error("Plus sign is expected"),this.scanner.next(),gY.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},wx=ce.isWhiteSpace,bY=ce.cmpStr,ef=ce.TYPE,Cx=ef.Function,Tx=ef.Url,yY=ef.RightParenthesis,SY={name:"Url",structure:{value:["String","Raw"]},parse:function(){var t=this.scanner.tokenStart,e;switch(this.scanner.tokenType){case Tx:for(var r=t+4,i=this.scanner.tokenEnd-1;r<i&&wx(this.scanner.source.charCodeAt(r));)r++;for(;r<i&&wx(this.scanner.source.charCodeAt(i-1));)i--;e={type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)},this.eat(Tx);break;case Cx:bY(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Cx),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(yY);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e}},generate:function(t){this.chunk("url"),this.chunk("("),this.node(t.value),this.chunk(")")}},xY={name:"Value",structure:{children:[[]]},parse:function(){var t=this.scanner.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)}},kY=ce.TYPE.WhiteSpace,_Y=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),wY={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(kY),_Y},generate:function(t){this.chunk(t.value)}},tf={AnPlusB:xG,Atrule:IG,AtrulePrelude:LG,AttributeSelector:GG,Block:eH,Brackets:iH,CDC:nH,CDO:oH,ClassSelector:dH,Combinator:vH,Comment:kH,Declaration:IH,DeclarationList:BH,Dimension:GH,Function:QH,Hash:ZH,Identifier:t7,IdSelector:a7,MediaFeature:c7,MediaQuery:m7,MediaQueryList:v7,Nth:b7,Number:S7,Operator:x7,Parentheses:w7,Percentage:O7,PseudoClassSelector:P7,PseudoElementSelector:L7,Ratio:W7,Raw:Gi,Rule:Y7,Selector:Q7,SelectorList:Z7,String:eY,StyleSheet:oY,TypeSelector:dY,UnicodeRange:vY,Url:SY,Value:xY,WhiteSpace:wY},rf=bG,CY={generic:!0,types:rf.types,atrules:rf.atrules,properties:rf.properties,node:tf},Ax=ce.cmpChar,TY=ce.cmpStr,rr=ce.TYPE,AY=rr.Ident,OY=rr.String,EY=rr.Number,MY=rr.Function,$Y=rr.Url,DY=rr.Hash,PY=rr.Dimension,IY=rr.Percentage,zY=rr.LeftParenthesis,jY=rr.LeftSquareBracket,LY=rr.Comma,NY=rr.Delim,RY=35,FY=42,Ox=43,qY=45,BY=47,WY=117,Ex=function(e){switch(this.scanner.tokenType){case DY:return this.Hash();case LY:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case zY:return this.Parentheses(this.readSequence,e.recognizer);case jY:return this.Brackets(this.readSequence,e.recognizer);case OY:return this.String();case PY:return this.Dimension();case IY:return this.Percentage();case EY:return this.Number();case MY:return TY(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case $Y:return this.Url();case AY:return Ax(this.scanner.source,this.scanner.tokenStart,WY)&&Ax(this.scanner.source,this.scanner.tokenStart+1,Ox)?this.UnicodeRange():this.Identifier();case NY:var r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r===BY||r===FY||r===Ox||r===qY)return this.Operator();r===RY&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1);break}},VY={getNode:Ex},Si=ce.TYPE,UY=Si.Delim,GY=Si.Ident,HY=Si.Dimension,YY=Si.Percentage,QY=Si.Number,KY=Si.Hash,Mx=Si.Colon,JY=Si.LeftSquareBracket,ZY=35,XY=42,eQ=43,tQ=47,$x=46,rQ=62,iQ=124,aQ=126;function nQ(t){switch(this.scanner.tokenType){case JY:return this.AttributeSelector();case KY:return this.IdSelector();case Mx:return this.scanner.lookupType(1)===Mx?this.PseudoElementSelector():this.PseudoClassSelector();case GY:return this.TypeSelector();case QY:case YY:return this.Percentage();case HY:this.scanner.source.charCodeAt(this.scanner.tokenStart)===$x&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case UY:var e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case eQ:case rQ:case aQ:return t.space=null,t.ignoreWSAfter=!0,this.Combinator();case tQ:return this.Combinator();case $x:return this.ClassSelector();case XY:case iQ:return this.TypeSelector();case ZY:return this.IdSelector()}break}}var sQ={getNode:nQ},oQ=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))},Dx=ce.TYPE,lQ=Gi.mode,uQ=Dx.Comma,cQ=Dx.WhiteSpace,dQ=function(){var t=this.createList();if(this.scanner.skipSC(),t.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===uQ){t.push(this.Operator());const e=this.scanner.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,lQ.exclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty()){for(let i=e-this.scanner.tokenIndex;i<=0;i++)if(this.scanner.lookupType(i)===cQ){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(r)}return t},pQ={getNode:Ex,expression:oQ,var:dQ},fQ={AtrulePrelude:VY,Selector:sQ,Value:pQ},hQ={parse:{prelude:null,block:function(){return this.Block(!0)}}},Cs=ce.TYPE,mQ=Cs.String,gQ=Cs.Ident,vQ=Cs.Url,bQ=Cs.Function,yQ=Cs.LeftParenthesis,SQ={parse:{prelude:function(){var t=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case mQ:t.push(this.String());break;case vQ:case bQ:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===gQ||this.lookupNonWSType(0)===yQ)&&(t.push(this.WhiteSpace()),t.push(this.MediaQueryList())),t},block:null}},xQ={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},kQ={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},Ga=ce.TYPE,_Q=Ga.WhiteSpace,wQ=Ga.Comment,Px=Ga.Ident,CQ=Ga.Function,TQ=Ga.Colon,AQ=Ga.LeftParenthesis;function OQ(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function EQ(){return this.scanner.skipSC(),this.scanner.tokenType===Px&&this.lookupNonWSType(1)===TQ?this.createSingleNodeList(this.Declaration()):Ix.call(this)}function Ix(){var t=this.createList(),e=null,r;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case _Q:e=this.WhiteSpace();continue;case wQ:this.scanner.next();continue;case CQ:r=this.Function(OQ,this.scope.AtrulePrelude);break;case Px:r=this.Identifier();break;case AQ:r=this.Parentheses(EQ,this.scope.AtrulePrelude);break;default:break e}e!==null&&(t.push(e),e=null),t.push(r)}return t}var MQ={parse:{prelude:function(){var t=Ix.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block:function(){return this.Block(!1)}}},$Q={"font-face":hQ,import:SQ,media:xQ,page:kQ,supports:MQ},DQ={parse:function(){return this.createSingleNodeList(this.Identifier())}},PQ={parse:function(){return this.createSingleNodeList(this.SelectorList())}},IQ={parse:function(){return this.createSingleNodeList(this.Identifier())}},zx={parse:function(){return this.createSingleNodeList(this.SelectorList())}},zQ=zx,jQ=zx,LQ=!0,jx={parse:function(){return this.createSingleNodeList(this.Nth(LQ))}},NQ=jx,RQ=jx,FQ=!1,Lx={parse:function(){return this.createSingleNodeList(this.Nth(FQ))}},qQ=Lx,BQ=Lx,WQ={parse:function(){return this.createSingleNodeList(this.Selector())}},VQ={dir:DQ,has:PQ,lang:IQ,matches:zQ,not:jQ,"nth-child":NQ,"nth-last-child":RQ,"nth-last-of-type":qQ,"nth-of-type":BQ,slotted:WQ},UQ={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:fQ,atrule:$Q,pseudo:VQ,node:tf},GQ={node:tf};const HQ={name:"css-tree",version:"1.1.3",description:"A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations",author:"Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",license:"MIT",repository:"csstree/csstree",keywords:["css","ast","tokenizer","parser","walker","lexer","generator","utils","syntax","validation"],main:"lib/index.js",unpkg:"dist/csstree.min.js",jsdelivr:"dist/csstree.min.js",scripts:{build:"rollup --config",lint:"eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint","lint-and-test":"npm run lint && npm test","update:docs":"node scripts/update-docs","review:syntax-patch":"node scripts/review-syntax-patch",test:"mocha --reporter progress",coverage:"nyc npm test",travis:"nyc npm run lint-and-test && npm run coveralls",coveralls:"nyc report --reporter=text-lcov | coveralls",prepublishOnly:"npm run build",hydrogen:"node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null"},dependencies:{"mdn-data":"2.0.14","source-map":"^0.6.1"},devDependencies:{"@rollup/plugin-commonjs":"^11.0.2","@rollup/plugin-json":"^4.0.2","@rollup/plugin-node-resolve":"^7.1.1",coveralls:"^3.0.9",eslint:"^6.8.0","json-to-ast":"^2.1.0",mocha:"^6.2.3",nyc:"^14.1.1",rollup:"^1.32.1","rollup-plugin-terser":"^5.3.0"},engines:{node:">=8.0.0"},files:["data","dist","lib"]};function YQ(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}Bd.exports=jb.create(YQ(CY,UQ,GQ)),Bd.exports.version=HQ.version;var QQ=Bd.exports,Yi=QQ,Nx={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.Scrollparent=r()})(wt,function(){function e(i){var a=getComputedStyle(i,null).getPropertyValue("overflow");return a.indexOf("scroll")>-1||a.indexOf("auto")>-1}function r(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var a=i.parentNode;a.parentNode;){if(e(a))return a;a=a.parentNode}return document.scrollingElement||document.documentElement}}return r})})(Nx);var KQ=Nx.exports;const JQ=Vt(KQ),ZQ={name:"custom-css-output",render(t){return t("style",this.$slots.default)}};function Rx(t){return t.component!=="FormMultiColumn"?t:t.items.flatMap(Rx)}function XQ(t){return t.flatMap(e=>e.items).flatMap(Rx)}Tt.register("custom-same",function(t,e){let r;const i=t;return e.includes(".")?r=e.split(".").reduce((a,n)=>a[n],this.validator.input):r=this.validator._flattenObject(this.validator.input)[e],r===i},"The :attribute and :custom-same fields must match."),Tt.register("after",function(t,e){const r=xr(t).toISOString(),i=xr(e).toISOString();return r>i},"The :attribute must be after :after."),Tt.register("after_or_equal",function(t,e){const r=xr(t).toISOString(),i=xr(e).toISOString();return r>=i},"The :attribute must be equal or after :after_or_equal."),Tt.register("before",function(t,e){const r=xr(t).toISOString(),i=xr(e).toISOString();return r<i},"The :attribute must be before :before."),Tt.register("before_or_equal",function(t,e){const r=xr(t).toISOString(),i=xr(e).toISOString();return r<=i},"The :attribute must be equal or before :before_or_equal."),Tt.register("custom_date",function(t){let e="MM/DD/YYYY";return typeof window.ProcessMaker<"u"&&window.ProcessMaker.user&&window.ProcessMaker.user.datetime_format&&(e=window.ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,"")),xr(t,[e,xr.ISO_8601],!0).isValid()},"The :attribute must be a valid date.");function eK(t,e){const r={},i={int:"integer",boolean:"boolean",string:"string",datetime:"custom-datetime",date:"custom-date",float:"regex:/^[+-]?\\d+(\\.\\d+)?$/",currency:"regex:/^[+-]?\\d+(\\.\\d+)?$/",array:"array",percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/",password:"string"};return r.validator=null,r.config=t,r.data=e,r.elements={},r.rules={},r.getDataAndRules=a=>{a.forEach(n=>{if(n){if(Array.isArray(n)&&r.getDataAndRules(n),n.items&&(n.component==="FormLoop"?r.ruleFormLoop(n.config.name,n.items):r.getDataAndRules(n.items)),n.component==="FormNestedScreen"){const s=Y.get(window,`nestedScreens.id_${n.config.screen}`);s&&r.getDataAndRules(s)}n.config&&n.config.name&&n.config.validation&&r.addRule(n.config.name,n.config.validation),n.component==="FormInput"&&n.config&&n.config.name&&n.config.dataFormat&&r.addRuleFormat(n.config.name,n.config.dataFormat)}})},r.addRule=(a,n)=>{const s=[];typeof n=="string"?s.push(n):n.forEach(o=>{s.push(o.value)}),r.rules[a]=s},r.addRuleFormat=(a,n)=>{r.rules[a]||(r.rules[a]=[]),r.rules[a].push(i[n])},r.ruleFormLoop=(a,n)=>{n.forEach(s=>{Array.isArray(s)&&r.ruleFormLoop(a,s),s.items&&(s.component==="FormLoop"?r.ruleFormLoop(`${a}.*.${s.config.name}`,s.items):r.ruleFormLoop(a,s.items)),s.config&&s.config.name&&s.config.validation&&(Array.isArray(s.config.validation)&&s.config.validation.forEach(o=>{if(!o.value.includes(":"))return;const u=o.value.split(":")[0];let l=o.value.split(":")[1],c;if(u.includes("required_")||u.includes("same")){if(l.includes("_parent"))l=l.split("_parent.").pop(),c=`${u}:${l}`;else if(!l.includes(","))c=`${u}:${a}.*.${l}`;else{l=l.split(",")[0];const d=o.value.split(":")[1].split(",")[1];c=`${u}:${a}.*.${l},${d}`}o.value=c}}),r.addRule(`${a}.*.${s.config.name}`,s.config.validation)),s.component==="FormInput"&&s.config&&s.config.name&&s.config.dataFormat&&r.addRuleFormat(`${a}.*.${s.config.name}`,s.config.dataFormat)})},r.getValidator=()=>{r.getDataAndRules(r.config),r.validator=new Tt(r.data,r.rules)},r.getErrors=()=>r.failed()?r.validator.errors.errors:{},r.failed=()=>(r.getValidator(),r.validator.fails()),r}const Ote="",tK={name:"VueFormRenderer",components:{CustomCssOutput:ZQ},mixins:[tc,ch],model:{prop:"data",event:"update"},props:["config","data","_parent","page","computed","customCss","mode","watchers","isLoop","ancestorScreens","loopContext","showErrors","testScreenDefinition","deviceScreen"],data(){return{definition:{config:this.config,computed:this.computed,customCss:this.customCss,watchers:this.watchers,isMobile:!1},formSubmitErrorClass:"",watchers_config:{api:{execute:null,execution:null}},customCssWrapped:"",customFunctions:{formatCurrency(){const t=(e,r)=>{const i=Al.find(n=>n.code===r),a={alias:"currency"};if(i){const n=i.format.match(/[.,]/g);n.length===0?n.push("","."):n.length===1&&n.push(n[0]==="."?",":"."),a.digits=(i.format.split(n[1])[1]||"").length,a.radixPoint=n[1],a.groupSeparator=n[0],a.prefix=`${i.symbol} `,a.suffix=` ${i.code}`}return ub.format(e,a)};return function(e){const r=JSON.parse(`[${e}]`);return t(Y.get(this,r[0]),r[1])}}},scrollable:null,containerObserver:null}},computed:{containerClass(){return this.parentScreen?`screen-${this.parentScreen}`:"custom-css-scope"},cssDevice(){return{"--mobile-width":uh}},containerDeviceClass(){return this.deviceScreen==="mobile"?"container-mobile":"container-desktop"}},watch:{customCss(t){this.definition.customCss=t,this.parseCss()},config:{deep:!0,handler(t){this.definition.config=t,this.$nextTick(()=>{this.registerCustomFunctions()})}},data:{deep:!0,handler(){this.$emit("update",this.data);const t=this.getMainScreen();t&&this.validate(t)}},computed:{deep:!0,handler(t){this.definition.computed=t}},watchers:{deep:!0,handler(t){this.definition.watchers=t}}},created(){this.parseCss=Y.debounce(this.parseCss,500,{leading:!0}),this.containerObserver=new ResizeObserver(this.onContainerObserver)},mounted(){this.registerCustomFunctions(),window.ProcessMaker&&window.ProcessMaker.EventBus&&window.ProcessMaker.EventBus.$emit("screen-renderer-init",this),this.scrollable=JQ(this.$el),this.containerObserver.observe(this.$refs.formRendererContainer)},methods:{...Pt.mapActions("globalErrorsModule",["validate","hasSubmitted","showValidationOnLoad","restartValidation"]),getMainScreen(){return this.$refs.renderer&&this.$refs.renderer.$refs.component},countElements(t){const e={config:t};return this.$refs.renderer.countElements(e)},checkForRecordList(t,e){return t.forEach(r=>{r.items&&this.checkForRecordList(r.items,e),r.component==="FormRecordList"&&this.removeRecordListForms(r,e)}),e},removeRecordListForms(t,e){const r=t.config.form;return delete e[r],e},checkForNestedScreenErrors(t){if(t.$options._componentTag==="FormNestedScreen")return t.errors()},isValid(){const t=XQ(this.definition.config),e=Y.cloneDeep(this.definition.config);return this.checkForRecordList(t,e),this.dataTypeValidator=eK(e,this.data),this.errors=this.dataTypeValidator.getErrors(),this.errors&&(this.formSubmitErrorClass="invalid-form-submission"),Y.size(this.errors)===0},registerCustomFunctions(t=this){t.registerCustomFunction instanceof Function&&Object.keys(this.customFunctions).forEach(e=>{t.registerCustomFunction(e,this.customFunctions[e])}),t.$children instanceof Array&&t.$children.forEach(e=>this.registerCustomFunctions(e))},submit(t,e=!1){this.$emit("submit",this.data,e)},parseCss(){const t=`.${this.containerClass}`;try{const e=Yi.parse(this.customCss,{onParseError(a){throw a.formattedMessage}});let r=0;Yi.walk(e,function(a,n,s){if(a.type.match(/^.+Selector$/)&&a.name!==t&&s&&(n.prev||(s.prependData({type:"WhiteSpace",loc:null,value:" "}),s.prependData({type:"TypeSelector",loc:null,name:t}))),r>5e3)throw Error("CSS is too long");r+=1});const i=[];Yi.walk(e,{visit:"Atrule",enter:(a,n,s)=>{if(!n.prev&&a.name==="media"){const o={minWidth:0,maxWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),rules:[]};Yi.walk(a.prelude,{visit:"MediaFeature",enter:u=>{["min-width","max-width"].includes(u.name)&&(o[Y.camelCase(u.name)]=parseInt(u.value.value,10),o.rules.length===0&&Yi.walk(a.block,{visit:"Rule",enter:l=>{const c=Yi.generate(l);o.rules.push(c)}}),i.push(o))}}),s.remove(n)}}}),this.customCssWrapped=Yi.generate(e),i.forEach(a=>{const{width:n}=this.$refs.formRendererContainer.getBoundingClientRect();n>=a.minWidth&&n<=a.maxWidth&&(this.customCssWrapped+=a.rules.join(" "))}),this.$emit("css-errors","")}catch(e){this.$emit("css-errors",e)}},getCurrentPage(){return this.$refs.renderer.getCurrentPage()},setCurrentPage(t){this.$refs.renderer.setCurrentPage(t)},onContainerObserver(t){t[0].target.getBoundingClientRect(),this.parseCss()}}};var rK=function(){var e=this,r=e._self._c;return r("div",{ref:"formRendererContainer",class:[e.containerClass,e.containerDeviceClass],style:e.cssDevice,attrs:{id:"vue-form-renderer","data-cy":"screen-renderer-container"}},[r("custom-css-output",[e._v(e._s(e.customCssWrapped))]),r("screen-renderer",{ref:"renderer",staticClass:"p-0",attrs:{value:e.data,_parent:e._parent,definition:e.definition,"current-page":e.currentPage,"data-cy":"screen-renderer","show-errors":e.showErrors,"test-screen-definition":e.testScreenDefinition||!1,"loop-context":e.loopContext},on:{submit:e.submit}})],1)},iK=[],aK=ue(tK,rK,iK,!1,null,"23f7208b",null,null);const Fx=aK.exports,nK=1,sK={name:"FormMultiColumn",mixins:[mn,ab,Ec],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:Oi,FormInput:Bi,FormSelectList:te.FormSelectList,FormTextArea:te.FormTextArea,FormCheckbox:te.FormCheckbox,FormDatePicker:te.FormDatePicker,FormHtmlEditor:te.FormHtmlEditor,FormHtmlViewer:te.FormHtmlViewer,...es},data(){return{items:[]}},computed:{model(){return this.$parent.model}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},methods:{classColumn(t){let e=nK;return this.config.options[t]&&this.config.options[t].content&&(e=this.config.options[t].content),`col-sm-${e} ${this.columnVerticalAlign(t)}`},columnVerticalAlign(t){let e="";if(this.items.length>0&&this.items[t].length===1){let r=this.items[0].filter(n=>n.component==="FormText");if(r.length===0)return"";let i=r[0],a=" justify-content-"+(i.config.textAlign==="right"?"end":i.config.textAlign);switch(i.config.verticalAlign){case"top":e="d-flex align-items-start"+a;break;case"middle":e="d-flex align-items-center"+a;break;case"bottom":e="d-flex align-items-end"+a;break}}return e},inspect(t){this.$emit("inspect",t)},submit(){this.$emit("submit")},pageNavigate(t){this.$emit("pageNavigate",t)}}};var oK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{staticClass:"row"},e._l(e.items,function(i,a){return r("div",{key:a,staticClass:"column-draggable",class:e.classColumn(a)},[e._l(i.filter(e.shouldElementBeVisible),function(n,s){return[n.container?r(n.component,{key:s,ref:"container",refInFor:!0,tag:"component",class:e.elementCssClass(n),attrs:{transientData:e.transientData,config:n.config,name:n.config.name!==void 0?n.config.name:null,"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:e.pageNavigate},model:{value:n.items,callback:function(o){e.$set(n,"items",o)},expression:"element.items"}}):r("div",{key:s,staticClass:"w-100",attrs:{id:n.config.name?n.config.name:void 0,selector:n.config.customCssSelector}},[r(n.component,e._b({ref:"elements",refInFor:!0,tag:"component",class:e.elementCssClass(n),attrs:{validationData:e.transientData,disabled:n.config.interactive||n.config.disabled,"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:e.pageNavigate},model:{value:e.model[e.getValidPath(n.config.name)],callback:function(o){e.$set(e.model,e.getValidPath(n.config.name),o)},expression:"model[getValidPath(element.config.name)]"}},"component",n.config,!1))],1)]})],2)}),0)])},lK=[],uK=ue(sK,oK,lK,!1,null,null,null,null);const fu=uK.exports,qx={value:"string",content:"Text"},Bx={value:"int",content:"Integer"},cK={value:"currency",content:"Currency"},dK={value:"password",content:"Password"},pK={value:"percentage",content:"Percentage"},Wx={value:"float",content:"Decimal"},Vx={value:"datetime",content:"Datetime"},Ux={value:"date",content:"Date"},fK={value:"boolean",content:"Boolean"},hK=[qx,Bx,cK,pK,Wx,Vx,Ux,dK],mK=[qx,Bx,Wx];function hu(t){return{type:"FormMultiselect",field:"dataFormat",config:{label:"Data Type",name:"Data Type",helper:"The data type specifies what kind of data is stored in the variable.",validation:"required",options:t}}}function gK(){return{type:qd,field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const Gx=hu(hK),vK=hu(mK),bK=hu([fK]),Hx=hu([Ux,Vx]),Yx=gK(),yK=[{editorComponent:te.FormHtmlEditor,editorBinding:"FormHtmlEditor",rendererComponent:te.FormHtmlEditor,rendererBinding:"FormHtmlEditor",control:{popoverContent:"Use a Rich Text Editor to add HTML-formatted",order:1,group:"Content Fields",label:"Rich Text",component:"FormHtmlViewer","editor-component":"FormHtmlEditor","editor-control":"FormHtmlEditor",config:{icon:"fas fa-pencil-ruler",interactive:!0,content:"<p>Rich text editor</p>",renderVarHtml:null},inspector:[{type:"FormTextArea",field:"content",config:{rows:5,label:"Content",helper:"The HTML text to display",value:""}},{type:"FormCheckbox",field:"renderVarHtml",config:{label:"Render HTML from a Variable",helper:"",value:""}}]}},{builderComponent:te.FormInput,builderBinding:"FormInput",rendererComponent:Bi,rendererBinding:"FormMaskedInput",control:{popoverContent:"Collect a string of text and format it as one of several data types",order:1,group:"Input Fields",label:"Line Input",component:"FormInput","editor-component":"FormInput","editor-control":"FormInput",config:{icon:"far fa-square",label:"New Input",name:"",placeholder:"",validation:"",helper:null,type:"text",dataFormat:"string"},inspector:[Qt,Br,Gx,Yx,Ri,jn,ya,tl,ci,ui,Ln]}},{editorComponent:te.FormTextArea,editorBinding:"FormTextArea",rendererComponent:te.FormTextArea,rendererBinding:"FormTextArea",control:{popoverContent:"Collect a multi-line string of text, to allow for extensive, richly formatted responses",order:4,group:"Input Fields",label:"Textarea",component:"FormTextArea","editor-component":"FormTextArea","editor-control":"FormTextArea","fa-icon":"fas fa-paragraph",config:{icon:"fas fa-paragraph",label:"New Textarea",placeholder:"",helper:null,rows:2,richtext:!1,currency:{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"}},inspector:[Qt,Br,jn,ya,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Ri,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},tl,ci,ui,Ln]}},{editorComponent:te.FormSelectList,editorBinding:"FormSelectList",rendererComponent:te.FormSelectList,rendererBinding:"FormSelectList",control:{popoverContent:"Collect options from a list, as radio butttons or dropdowns",order:2,group:"Input Fields",label:"Select List",component:"FormSelectList","editor-component":"FormSelectList","editor-control":"FormSelectList",config:{icon:"fas fa-angle-double-down",label:"New Select List",placeholder:"",validation:"",dataSourceUrl:"",dataSourceEndpoint:"",rootElement:"response",options:{showRenderAs:!0,dataSource:Hr.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],key:"value",value:"content",valueTypeReturned:"single"},helper:null},inspector:[Qt,Br,jn,Ri,ya,{type:"OptionsList",field:"options",config:{}},ci,ui,Ln,tl]}},{editorComponent:te.FormCheckbox,editorBinding:"FormCheckbox",rendererComponent:te.FormCheckbox,rendererBinding:"FormCheckbox",control:{popoverContent:"Add a checkbox or toggle for true/false responses",order:6,group:"Input Fields",label:"Checkbox",component:"FormCheckbox","editor-component":"FormCheckbox","editor-control":"FormCheckbox",config:{icon:"fas fa-check-square",label:"New Checkbox",helper:null,name:null,initiallyChecked:!1,validation:"",toggle:!1},inspector:[Qt,Br,ya,Ri,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},ci,ui,Zg,Xc]}},{editorComponent:te.FormDatePicker,editorBinding:"FormDatePicker",rendererComponent:te.FormDatePicker,rendererBinding:"FormDatePicker",control:{popoverContent:"Collect a date or date/time",order:5,group:"Input Fields",label:"Date Picker",component:"FormDatePicker","editor-component":"FormDatePicker","editor-control":"FormDatePicker",config:{icon:"far fa-calendar-alt",label:"New Date Picker",type:"datetime",name:"",placeholder:"",minDate:"",maxDate:""},inspector:[{type:"FormInput",field:"minDate",config:{name:"Minimum Date",label:"Minimum Date",validation:"date_or_mustache"}},{type:"FormInput",field:"maxDate",config:{name:"Maximum Date",label:"Maximum Date",validation:"after_min_date|date_or_mustache"}},Qt,Br,Hx,Ri,jn,ya,ci,ui,Xc,Ln]}},{editorComponent:qi,editorBinding:"FormButton",rendererComponent:qi,rendererBinding:"FormButton",control:{popoverContent:"Add and reuse another Form within this Form",order:1,group:"Navigation",label:"Page Navigation",component:"FormButton","editor-component":"FormButton","editor-control":"PageNavigation",config:{icon:"far fa-compass",label:"Page Navigation",variant:"primary",event:"pageNavigate",eventData:null},inspector:[{type:"PageSelect",field:"eventData",config:{label:"Destination Screen",helper:"The destination page to navigate to"}},Jg,ed]}},{editorComponent:fu,editorBinding:"FormMultiColumn",rendererComponent:fu,rendererBinding:"FormMultiColumn",control:{popoverContent:"Organize and group your content in columns",order:2,group:"Content Fields",label:"Multicolumn / Table",component:"FormMultiColumn","editor-component":"MultiColumn","editor-control":"MultiColumn",container:!0,items:[[],[]],config:{icon:"fas fa-table",options:[{value:"1",content:"6"},{value:"2",content:"6"}]},inspector:[{type:"ContainerColumns",field:"options",config:{label:"Column Width",validation:"columns-adds-to-12"}},ci,ui]}},{editorComponent:Kn,editorBinding:"FormLoop",rendererComponent:Kn,rendererBinding:"FormLoop",control:{popoverContent:"Format content in a table structure and allow for adding rows",order:5,group:"Content Fields",label:"Loop",component:"FormLoop","editor-component":"Loop","editor-control":"Loop",container:!0,items:[],config:{name:"",icon:"fas fa-redo",settings:{type:"new",varname:"loop",times:"3",add:!1}},inspector:[{type:"LoopInspector",field:"settings",config:{}}]}},{editorComponent:Tl,editorBinding:"FormText",rendererComponent:Cl,rendererBinding:"FormRecordList",control:{popoverContent:"Format content in a table structure",order:4,group:"Content Fields",label:"Record List",component:"FormRecordList","editor-component":"FormText","editor-control":"FormRecordList",config:{name:"",icon:"fas fa-th-list",label:"New Record List",editable:!1,fields:{dataSource:Hr.provideData,jsonData:""},form:""},inspector:[Qt,{type:"FormInput",field:"label",config:{label:"List Label",helper:"The label describes this record list"}},{type:"FormCheckbox",field:"editable",config:{label:"Editable?",helper:"Should records be editable/removable and can new records be added"}},{type:"ColumnSetup",field:"fields",config:{label:"Columns",helper:"List of columns to display in the record list"}},{type:"PageSelect",field:"form",config:{label:"Record Form",helper:"The form to use for adding/editing records"}},ci,ui]}},{editorComponent:Qn,editorBinding:"FormImage",rendererComponent:Qn,rendererBinding:"FormImage",control:{popoverContent:"Upload an image to your screen",order:3,group:"Content Fields",label:"Image",component:"FormImage","editor-component":"FormImage","editor-control":"FormImage",config:{label:"Image",icon:"fas fa-image",variant:"primary",event:"submit",name:null,value:null,renderImage:!1},inspector:[{type:"FormInput",field:"name",config:{label:"Name",helper:"Image name"}},{type:"ImageUpload",field:"image",config:{label:"Upload",helper:"Upload image"}},{type:"ImageVariable",field:"imageName",config:{label:"Render from a variable name",helper:null}},{type:"FormInput",field:"height",config:{label:"Height",helper:"Image height",type:"number"}},{type:"FormInput",field:"width",config:{label:"Width",helper:"image width",type:"number"}}]}},{editorComponent:qi,editorBinding:"FormSubmit",rendererComponent:qi,rendererBinding:"FormButton",control:{popoverContent:"Add an action to submit your form or update a field",order:3,group:"Input Fields",label:"Submit Button",component:"FormButton","editor-component":"FormButton","editor-control":"FormSubmit",config:{icon:"fas fa-share-square",label:"New Submit",variant:"primary",event:"submit",loading:!1,loadingLabel:"Loading...",defaultSubmit:!0,name:null,fieldValue:null,tooltip:{}},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the button's text"}},{type:"FormInput",field:"name",config:{label:"Variable Name",name:"Variable Name",helper:"A variable name is a symbolic name to reference information.",validation:"regex:/^(?:[A-Za-z])(?:[0-9A-Z_.a-z])*(?<![.])$/|not_in:"+el}},Xg,tv,rv,ev,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},ed]}},{editorComponent:Jn,editorBinding:"FormNestedScreen",rendererComponent:Jn,rendererBinding:"FormNestedScreen",control:{popoverContent:"Add a repeatable section of content",order:6,group:"Content Fields",label:"Nested Screen",component:"FormNestedScreen","editor-component":"FormNestedScreen","editor-control":"FormNestedScreen",config:{label:"Nested Screen",icon:"fas fa-file-invoice",variant:"primary",name:"Nested Screen",value:null},inspector:[{type:"ScreenSelector",field:"screen",config:{label:"Screen",name:"SelectScreen","validate-nested":!1,helper:"Select a screen"}}]}},{rendererComponent:vn,rendererBinding:"FileUpload",builderComponent:vn,builderBinding:"FileUpload",control:{group:"Files",popoverContent:"Add special buttons that link between subpages within this Form",order:1,label:"File Upload",component:"FileUpload","editor-component":"FileUpload","editor-control":"FileUpload",config:{label:"New File Upload",icon:"fas fa-file-upload"},inspector:[Qt,{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the field's name"}},{type:"MultipleUploadsCheckbox",field:"multipleUpload",config:{label:"Upload multiple files"}},{type:"FormInput",field:"accept",config:{label:"File Accepted",helper:"Common file types: application/msword, image/gif, image/jpeg, application/pdf, application/vnd.ms-powerpoint, application/vnd.ms-excel, text/plain"}},{type:"RequiredCheckbox",field:"validation",config:{label:"Required",helper:"Prevent form from being submitted unless a file is uploaded"}}]}},{rendererComponent:Tl,rendererBinding:"FormText",builderComponent:Js,builderBinding:"FileDownload",control:{popoverContent:"Collect files uploaded into the Form",order:2,group:"Files",label:"File Download",component:"FileDownload","editor-component":"FormText","editor-control":"FileDownload",config:{label:"New File Download",icon:"fas fa-file-download"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The text to display"}},{type:"FormInput",field:"name",config:{label:"Name",helper:"The name of the Download"}}]}},{rendererComponent:te.BFormComponent,rendererBinding:"BFormComponent",builderComponent:te.BFormComponent,builderBinding:"BFormComponent",control:{popoverContent:"Add a Preview section that displays the content of a File",order:1,group:"Advanced",label:"Bootstrap Component",component:"BFormComponent","editor-component":"BFormComponent","editor-control":"BFormComponent",config:{bootstrapComponent:"b-form-tags",bootstrapConfig:"{}",label:"New Bootstrap Component",icon:"fab fa-bootstrap"},inspector:[Qt,Br,{type:"FormMultiselect",field:"bootstrapComponent",config:{icon:"fas",label:"Bootstrap vue component",validation:"required",options:[{value:"b-embed",content:"Embed"},{value:"b-img",content:"Image"},{value:"b-form-rating",content:"Form Rating"},{value:"b-form-spinbutton",content:"Form Spinbutton"},{value:"b-form-tags",content:"Form Tags"},{value:"b-form-timepicker",content:"Form Timepicker"},{value:"b-table",content:"Table"}]}},{type:"FormTextArea",field:"bootstrapConfig",config:{rows:5,label:"Config",helper:"Properties in JSON format. See https://bootstrap-vue.org/docs/components",value:"{}"}},Ri]}},{rendererComponent:te.BWrapperComponent,rendererBinding:"BWrapperComponent",builderComponent:te.BWrapperComponent,builderBinding:"BWrapperComponent",control:{popoverContent:"Wrap an existing subpage within this Form into a Bootstrap Vue component ",order:2,group:"Advanced",label:"Bootstrap Wrapper",component:"BWrapperComponent","editor-component":"BWrapperComponent","editor-control":"BWrapperComponent",config:{bootstrapComponent:"b-modal",bootstrapConfig:"{}",label:"New Bootstrap Wrapper",icon:"fab fa-bootstrap",name:"",form:""},inspector:[Qt,Br,{type:"FormMultiselect",field:"bootstrapComponent",config:{icon:"fas",label:"Bootstrap vue component",validation:"required",options:[{value:"b-alert",content:"Alert"},{value:"b-card",content:"Card"},{value:"b-collapse",content:"Collapse"},{value:"b-jumbotron",content:"Jumbotron"},{value:"b-modal",content:"Modal"}]}},{type:"PageSelect",field:"form",config:{label:"Page",helper:"The page to use inside the component"}},{type:"FormTextArea",field:"bootstrapConfig",config:{rows:5,label:"Config",helper:"Properties in JSON format. See https://bootstrap-vue.org/docs/components",value:"{}"}}]}},{editorComponent:Zn,editorBinding:"FormListTable",rendererComponent:Zn,rendererBinding:"FormListTable",control:{popoverContent:"Create List Table",order:3,group:"Files",label:"List Table",component:"FormListTable","editor-component":"FormListTable","editor-control":"FormListTable",config:{label:"List Table",icon:"fas fa-list",variant:"primary"},inspector:[{type:"FormMultiselect",field:"listOption",config:{icon:"fas fa-list",label:"List Table",options:[{value:"My Tasks",content:"My Tasks"},{value:"My Requests",content:"My Requests"},{value:"Start New Request",content:"Start New Request"}]}}]}},{editorComponent:Xn,editorBinding:"FormAnalyticsChart",rendererComponent:Xn,rendererBinding:"FormAnalyticsChart",control:{popoverContent:"Add a chart from the Analytics Reports",order:6,group:"Dashboards",label:"Analytics Chart",component:"FormAnalyticsChart","editor-component":"FormAnalyticsChart","editor-control":"FormAnalyticsChart",config:{label:"Analytics Chart",icon:"fas fa-chart-area",variant:"primary"},inspector:[{type:"AnalyticsSelector",field:"listChartOption",config:{label:"Chart"}}]}}],SK="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NS4wNTYyIDczLjg4NkM4NS4wNTYyIDczLjg4NiAxMTUuMDggOTYuNjcgMTYwLjcyNCA1NC4wNjhDMjAxLjI2IDE2LjIzNDMgMjM0LjM1OSA3NS45Mjc1IDIzNC41OSAxMDQuNTEzQzIzNC44OSAxNDEuNTQzIDE5NC4wNTQgMTcxLjE3MyAyMTMuODcyIDE5NS40OTVDMjMzLjY5IDIxOS44MTcgMTc0LjU3IDI1OS45ODEgMTQyLjcwOCAyMjUuMjIyQzEwMy4wNzIgMTgxLjk4MyA5Mi4zMzQ1IDIxNy4xMTQgNjkuNzQyNSAyMTcuMTE0QzUzLjUyNzggMjE3LjExNCAyMC4yMzc2IDE3Ni44MjUgNDIuNzE4MSAxNDYuODUxQzYxLjYzNTIgMTIxLjYyOSA1MS4zMTgyIDExMy4yNTggNDYuMzIyIDEwNC41MTNDMzkuMTE0OSA5MS45MDIxIDU2LjIzMDQgNTcuNjcxNSA4NS4wNTYyIDczLjg4NloiIGZpbGw9IiNERUVFRkEiLz4KPHBhdGggZD0iTTIwNS41OTIgMTI0LjIzNUMyMDcuMjA2IDEyNC44MzUgMjA4Ljk2OSAxMjQuODc1IDIxMC42NDcgMTI0LjQ4OUMyMTcuNjc3IDEyMi44NzYgMjQxLjg1IDExOC42MDMgMjM3LjY1IDEzNy4zMzVDMjM2LjczNSAxNDEuMDUxIDIyMi41NzggMTYxLjg2NCAyNDIuNzM5IDE2OS40NjJDMjQ0LjIxNyAxNzAuMDI2IDI0NS43NzkgMTcwLjMzNCAyNDcuMzYgMTcwLjM3MkMyNTMuNTY4IDE3MC41IDI2NS44NjkgMTY5LjAzNCAyNzEuMDE3IDE2My43OTRDMjc3LjIzNyAxNTcuNDYzIDI3MC40NDIgMTYwLjQ2NSAyNzAuNDQyIDE2MC40NjVDMjcwLjQ0MiAxNjAuNDY1IDI0Ni43OTggMTcwLjc4MyAyMzguNDQ2IDE1OS44MzZDMjM3LjUxNyAxNTguNjE4IDIzNi45MjUgMTU2Ljg0OSAyMzYuNzU2IDE1NS4zMjZDMjM2LjQ2MiAxNTIuNjg2IDIzNy42MzQgMTQ5LjE5NyAyMzkuMTc0IDE0Ni4xNTlDMjQxLjI1OSAxNDIuMDQ4IDI1MS4yNjYgMTIzLjU1NSAyMjkuNTM5IDExOC4xNjhDMjI0LjUzMyAxMTYuOTc2IDIxNy4yNjMgMTE1LjkwNiAyMDcuODkgMTE5Ljg1MkMyMDIuNDIyIDEyMi4xNTQgMjAzLjYzMyAxMjMuNTA3IDIwNS41OTIgMTI0LjIzNVoiIGZpbGw9IiNCQ0RDRjgiLz4KPHBhdGggZD0iTTIxMC40MyAxMTcuMzMxTDIwNC4xMzcgMTE5LjY4N0MyMDEuOTY1IDEyMC41IDIwMC44NjMgMTIyLjkyIDIwMS42NzYgMTI1LjA5MkwyMDEuOTg4IDEyNS45MjZDMjAyLjgwMSAxMjguMDk4IDIwNS4yMjEgMTI5LjIgMjA3LjM5MyAxMjguMzg3TDIxMy42ODcgMTI2LjAzMkMyMTUuODU5IDEyNS4yMTkgMjE2Ljk2MSAxMjIuNzk5IDIxNi4xNDggMTIwLjYyNkwyMTUuODM2IDExOS43OTNDMjE1LjAyMyAxMTcuNjIgMjEyLjYwMyAxMTYuNTE4IDIxMC40MyAxMTcuMzMxWiIgZmlsbD0iIzE1NzJDMiIvPgo8cGF0aCBkPSJNMTcxLjgwMSAxMjQuMTQ3TDE1MS4wNDYgMTMxLjkxNEMxNDkuOTYgMTMyLjMyMSAxNDkuNDA5IDEzMy41MzEgMTQ5LjgxNSAxMzQuNjE3TDE0OS44OTcgMTM0LjgzNkMxNTAuMzAzIDEzNS45MjIgMTUxLjUxMyAxMzYuNDczIDE1Mi42IDEzNi4wNjZMMTczLjM1NSAxMjguMjk5QzE3NC40NDEgMTI3Ljg5MiAxNzQuOTkyIDEyNi42ODIgMTc0LjU4NSAxMjUuNTk2TDE3NC41MDMgMTI1LjM3N0MxNzQuMDk3IDEyNC4yOTEgMTcyLjg4NyAxMjMuNzQgMTcxLjgwMSAxMjQuMTQ3WiIgZmlsbD0iIzUyQTVFQyIvPgo8cGF0aCBkPSJNMTc3LjU5MyAxMzkuNjI0TDE1Ni44MzggMTQ3LjM5MUMxNTUuNzUyIDE0Ny43OTggMTU1LjIwMSAxNDkuMDA4IDE1NS42MDggMTUwLjA5NEwxNTUuNjg5IDE1MC4zMTNDMTU2LjA5NiAxNTEuMzk5IDE1Ny4zMDYgMTUxLjk1IDE1OC4zOTIgMTUxLjU0M0wxNzkuMTQ3IDE0My43NzZDMTgwLjIzMyAxNDMuMzY5IDE4MC43ODQgMTQyLjE1OSAxODAuMzc4IDE0MS4wNzNMMTgwLjI5NiAxNDAuODU0QzE3OS44OSAxMzkuNzY4IDE3OC42NzkgMTM5LjIxNyAxNzcuNTkzIDEzOS42MjRaIiBmaWxsPSIjNTJBNUVDIi8+CjxwYXRoIGQ9Ik0xOTYuNzU1IDExMy41ODVMMTc5LjkzNCAxMTkuODhDMTc3Ljc2MSAxMjAuNjkzIDE3Ni42NTkgMTIzLjExNCAxNzcuNDcyIDEyNS4yODZMMTgzLjIxNiAxNDAuNjMxQzE4NC4wMjkgMTQyLjgwMyAxODYuNDQ5IDE0My45MDUgMTg4LjYyMSAxNDMuMDkyTDIwNS40NDMgMTM2Ljc5N0MyMDcuNjE1IDEzNS45ODQgMjA4LjcxNyAxMzMuNTY0IDIwNy45MDQgMTMxLjM5MUwyMDIuMTYxIDExNi4wNDZDMjAxLjM0OCAxMTMuODc0IDE5OC45MjggMTEyLjc3MiAxOTYuNzU1IDExMy41ODVaIiBmaWxsPSIjNTJBNUVDIi8+CjxwYXRoIGQ9Ik0xODEuNjcyIDExNy42MUwxNjQuODUgMTIzLjkwNkMxNjIuNjc4IDEyNC43MTkgMTYxLjU3NiAxMjcuMTM5IDE2Mi4zODkgMTI5LjMxMkwxNjkuMjQxIDE0Ny42MTlDMTcwLjA1NCAxNDkuNzkxIDE3Mi40NzQgMTUwLjg5MyAxNzQuNjQ2IDE1MC4wOEwxOTEuNDY4IDE0My43ODVDMTkzLjY0IDE0Mi45NzIgMTk0Ljc0MiAxNDAuNTUxIDE5My45MjkgMTM4LjM3OUwxODcuMDc3IDEyMC4wNzJDMTg2LjI2NCAxMTcuODk5IDE4My44NDQgMTE2Ljc5NyAxODEuNjcyIDExNy42MVoiIGZpbGw9IiMxNTcyQzIiLz4KPHBhdGggZD0iTTE4NC4zMDUgMTEzLjg5NUwxODQuMTczIDExMy45NDRDMTgyLjcyNSAxMTQuNDg2IDE4MS45OSAxMTYuMSAxODIuNTMyIDExNy41NDhMMTkyLjEzMSAxNDMuMTk1QzE5Mi42NzMgMTQ0LjY0MyAxOTQuMjg2IDE0NS4zNzggMTk1LjczNCAxNDQuODM2TDE5NS44NjYgMTQ0Ljc4NkMxOTcuMzE1IDE0NC4yNDQgMTk4LjA0OSAxNDIuNjMxIDE5Ny41MDcgMTQxLjE4MkwxODcuOTA5IDExNS41MzZDMTg3LjM2NyAxMTQuMDg4IDE4NS43NTMgMTEzLjM1MyAxODQuMzA1IDExMy44OTVaIiBmaWxsPSIjMTU3MkMyIi8+CjxwYXRoIGQ9Ik0xMi43ODE2IDEzMC4yOTJDMTIuNzgxNiAxMzAuMjkyIDQ2LjU2NDggMTIwLjc5OCA0MS42NiAxNDIuNjcyQzQwLjgwODMgMTQ2LjEzMyAyOC41NDcyIDE2My45NTMgNDMuMTUyIDE3Mi41MDlDNDYuMjg4IDE3NC4zNDYgNDkuOTA3IDE3NS4xNiA1My41NDEzIDE3NS4xNDFDNjAuMDU3MyAxNzUuMTA3IDcwLjM4NzIgMTczLjg1MyA3NS4wMjc4IDE2OS4xM0M4MS4yNDcxIDE2Mi43OTkgNzQuNDUyNiAxNjUuODAxIDc0LjQ1MjYgMTY1LjgwMUM3NC40NTI2IDE2NS44MDEgNTUuMDUwNCAxNzMuNzgyIDQ1LjA2ODcgMTY3LjQyQzQxLjY2MDQgMTY1LjI0OCA0MC4xMTU1IDE2MS4wNDIgNDEuMDQxMSAxNTcuMTA3QzQxLjUxNDEgMTU1LjE1MyA0Mi4yMzQ1IDE1My4yNjcgNDMuMTg0NyAxNTEuNDk1QzQ1LjM1NTYgMTQ3LjQyOSA1NS4yNzY4IDEyOC44OTEgMzMuNTQ4OCAxMjMuNTA0QzI4LjU0MzYgMTIyLjMxMiAyMS4yNzM4IDEyMS4yNDIgMTEuOTAwMSAxMjUuMTg4QzIuNTI2MzcgMTI5LjEzNSAxMi43ODE2IDEzMC4yOTIgMTIuNzgxNiAxMzAuMjkyWiIgZmlsbD0iI0JDRENGOCIvPgo8cGF0aCBkPSJNNzkuNTcwNCAxNjAuOTA2TDczLjI3NzIgMTYzLjI2MkM3MS4xMDQ4IDE2NC4wNzUgNzAuMDAyOCAxNjYuNDk1IDcwLjgxNTggMTY4LjY2N0w3MS4xMjc4IDE2OS41MDFDNzEuOTQwOCAxNzEuNjczIDc0LjM2MTEgMTcyLjc3NSA3Ni41MzM1IDE3MS45NjJMODIuODI2OCAxNjkuNjA3Qzg0Ljk5OTIgMTY4Ljc5NCA4Ni4xMDEyIDE2Ni4zNzQgODUuMjg4MSAxNjQuMjAxTDg0Ljk3NjIgMTYzLjM2OEM4NC4xNjMxIDE2MS4xOTUgODEuNzQyOSAxNjAuMDkzIDc5LjU3MDQgMTYwLjkwNloiIGZpbGw9IiMxNTcyQzIiLz4KPHBhdGggZD0iTTkwLjIwMzEgMTUwLjU1Mkw4MC44NzYyIDE1NC4wNDNDNzguNzAzNyAxNTQuODU2IDc3LjYwMTcgMTU3LjI3NiA3OC40MTQ4IDE1OS40NDlMODIuOTEyMiAxNzEuNDY1QzgzLjcyNTMgMTczLjYzOCA4Ni4xNDU1IDE3NC43NCA4OC4zMTc5IDE3My45MjdMOTcuNjQ0OCAxNzAuNDM2Qzk5LjgxNzMgMTY5LjYyMyAxMDAuOTE5IDE2Ny4yMDMgMTAwLjEwNiAxNjUuMDNMOTUuNjA4OCAxNTMuMDEzQzk0Ljc5NTcgMTUwLjg0MSA5Mi4zNzU1IDE0OS43MzkgOTAuMjAzMSAxNTAuNTUyWiIgZmlsbD0iIzUyQTVFQyIvPgo8cGF0aCBkPSJNMTA1LjczIDE0MS4zTDkxLjgyMTMgMTQ2LjUwNkM4OS42NDg5IDE0Ny4zMTkgODguNTQ2OSAxNDkuNzM5IDg5LjM2IDE1MS45MTJMOTYuMjExNyAxNzAuMjE5Qzk3LjAyNDggMTcyLjM5MiA5OS40NDUgMTczLjQ5NCAxMDEuNjE3IDE3Mi42OEwxMTUuNTI2IDE2Ny40NzVDMTE3LjY5OSAxNjYuNjYyIDExOC44MDEgMTY0LjI0MiAxMTcuOTg4IDE2Mi4wNjlMMTExLjEzNiAxNDMuNzYyQzExMC4zMjMgMTQxLjU4OSAxMDcuOTAzIDE0MC40ODcgMTA1LjczIDE0MS4zWiIgZmlsbD0iIzE1NzJDMiIvPgo8cGF0aCBkPSJNMTA4LjY3NyAxMzcuNTA5TDEwOC41NDUgMTM3LjU1OEMxMDcuMDk2IDEzOC4xIDEwNi4zNjIgMTM5LjcxNCAxMDYuOTA0IDE0MS4xNjJMMTE2LjUwMiAxNjYuODA5QzExNy4wNDQgMTY4LjI1NyAxMTguNjU4IDE2OC45OTIgMTIwLjEwNiAxNjguNDVMMTIwLjIzOCAxNjguNEMxMjEuNjg2IDE2Ny44NTggMTIyLjQyMSAxNjYuMjQ1IDEyMS44NzkgMTY0Ljc5NkwxMTIuMjggMTM5LjE1QzExMS43MzggMTM3LjcwMiAxMTAuMTI1IDEzNi45NjcgMTA4LjY3NyAxMzcuNTA5WiIgZmlsbD0iIzE1NzJDMiIvPgo8cGF0aCBkPSJNMTQ0LjE5NCAxMjEuMTdDMTQzLjY5MyAxMjEuMTE0IDE0My4yMzMgMTIwLjg2NyAxNDIuOTExIDEyMC40NzlDMTQyLjU5IDEyMC4wOTEgMTQyLjQzMSAxMTkuNTk0IDE0Mi40NjggMTE5LjA5MUwxNDMuNTA2IDEwMC4xMzVDMTQzLjU2OCA5OS4wMDI3IDE0NC41MjQgOTguMTQyNCAxNDUuNjA5IDk4LjI0MjVMMTQ3LjEyMSA5OC4zODI1QzE0OC4yMDYgOTguNDgyNiAxNDguOTgzIDk5LjUwMjUgMTQ4LjgzMSAxMDAuNjI3TDE0Ni4yODEgMTE5LjQ0M0MxNDYuMjIzIDExOS45NDQgMTQ1Ljk3MyAxMjAuNDAzIDE0NS41ODQgMTIwLjcyNUMxNDUuMTk1IDEyMS4wNDcgMTQ0LjY5NyAxMjEuMjA2IDE0NC4xOTQgMTIxLjE3VjEyMS4xN1oiIGZpbGw9IiM1MkE1RUMiLz4KPHBhdGggZD0iTTEzNS4yMzMgMTIyLjgwNEMxMzUuMDc3IDEyMi44NSAxMzQuOTE0IDEyMi44NjUgMTM0Ljc1MiAxMjIuODQ4QzEzNC41OTEgMTIyLjgzIDEzNC40MzQgMTIyLjc4MSAxMzQuMjkyIDEyMi43MDNDMTM0LjE0OSAxMjIuNjI2IDEzNC4wMjQgMTIyLjUyMSAxMzMuOTIyIDEyMi4zOTRDMTMzLjgyIDEyMi4yNjggMTMzLjc0NCAxMjIuMTIyIDEzMy42OTggMTIxLjk2N0wxMjkuOTkyIDExMC4xNzVDMTI5Ljg4NCAxMDkuODQgMTI5LjkxNCAxMDkuNDc1IDEzMC4wNzQgMTA5LjE2MkMxMzAuMjM1IDEwOC44NDggMTMwLjUxMyAxMDguNjExIDEzMC44NDkgMTA4LjUwM0wxMzEuODA4IDEwOC4yMTNDMTMxLjk3MyAxMDguMTY1IDEzMi4xNDYgMTA4LjE1MiAxMzIuMzE2IDEwOC4xNzRDMTMyLjQ4NiAxMDguMTk2IDEzMi42NDkgMTA4LjI1MyAxMzIuNzk2IDEwOC4zNDJDMTMyLjk0MyAxMDguNDMgMTMzLjA3IDEwOC41NDggMTMzLjE2OSAxMDguNjg4QzEzMy4yNjggMTA4LjgyOCAxMzMuMzM3IDEwOC45ODcgMTMzLjM3MSAxMDkuMTU1TDEzNi4xMTggMTIxLjIzN0MxMzYuMTk1IDEyMS41NjEgMTM2LjE0NiAxMjEuOTAzIDEzNS45ODIgMTIyLjE5NEMxMzUuODE4IDEyMi40ODQgMTM1LjU1MSAxMjIuNzAyIDEzNS4yMzMgMTIyLjgwNFYxMjIuODA0WiIgZmlsbD0iIzUyQTVFQyIvPgo8cGF0aCBkPSJNMTMwLjIzMiAxMjkuNjA0QzEyOS41NjggMTMwLjQyNyAxMjguMjMzIDEzMC40MTcgMTI3LjIwNCAxMjkuNTgyTDEwOC45NTMgMTE0Ljc1M0MxMDcuODYzIDExMy44NjcgMTA3LjU0MSAxMTIuNDAxIDEwOC4yNDUgMTExLjUyOUwxMDkuMjI3IDExMC4zMTNDMTA5LjkzMiAxMDkuNDQgMTExLjM3OCAxMDkuNTEyIDExMi40MSAxMTAuNDdMMTI5LjY4IDEyNi41MTVDMTMwLjY1MyAxMjcuNDE5IDEzMC44OTYgMTI4Ljc4MiAxMzAuMjMyIDEyOS42MDRaIiBmaWxsPSIjNTJBNUVDIi8+CjxwYXRoIGQ9Ik0xMzguNjY5IDE2Ny45MDZDMTM5LjEzOSAxNjguMDg4IDEzOS41MiAxNjguNDQ1IDEzOS43MzIgMTY4LjkwMkMxMzkuOTQ1IDE2OS4zNTkgMTM5Ljk3MSAxNjkuODgxIDEzOS44MDcgMTcwLjM1N0wxMzMuOTYyIDE4OC40MTlDMTMzLjYxMyAxODkuNDk4IDEzMi40NjkgMTkwLjA4NSAxMzEuNDQ1IDE4OS43MTFMMTMwLjAxOCAxODkuMTlDMTI4Ljk5NSAxODguODE2IDEyOC41MDQgMTg3LjYzMSAxMjguOTM4IDE4Ni41ODRMMTM2LjIwOSAxNjkuMDQzQzEzNi4zOTQgMTY4LjU3MyAxMzYuNzUyIDE2OC4xOTMgMTM3LjIxMSAxNjcuOTgxQzEzNy42NjkgMTY3Ljc2OSAxMzguMTkxIDE2Ny43NDIgMTM4LjY2OSAxNjcuOTA2VjE2Ny45MDZaIiBmaWxsPSIjNTJBNUVDIi8+CjxwYXRoIGQ9Ik0xNDcuNzUgMTY4LjYxNUMxNDcuOTEyIDE2OC42MSAxNDguMDc0IDE2OC42MzggMTQ4LjIyNiAxNjguNjk2QzE0OC4zNzcgMTY4Ljc1NCAxNDguNTE2IDE2OC44NDEgMTQ4LjYzNCAxNjguOTUzQzE0OC43NTIgMTY5LjA2NCAxNDguODQ3IDE2OS4xOTggMTQ4LjkxMyAxNjkuMzQ2QzE0OC45NzkgMTY5LjQ5NCAxNDkuMDE2IDE2OS42NTQgMTQ5LjAyIDE2OS44MTdMMTQ5LjU5MiAxODIuMTY0QzE0OS42MSAxODIuNTE2IDE0OS40ODkgMTgyLjg2IDE0OS4yNTMgMTgzLjEyMkMxNDkuMDE4IDE4My4zODUgMTQ4LjY4OCAxODMuNTQzIDE0OC4zMzcgMTgzLjU2MkwxNDcuMzM1IDE4My41OTdDMTQ3LjE2MyAxODMuNjAxIDE0Ni45OTMgMTgzLjU3IDE0Ni44MzQgMTgzLjUwNUMxNDYuNjc1IDE4My40NCAxNDYuNTMyIDE4My4zNDMgMTQ2LjQxMiAxODMuMjJDMTQ2LjI5MyAxODMuMDk3IDE0Ni4yIDE4Mi45NTEgMTQ2LjE0IDE4Mi43OUMxNDYuMDggMTgyLjYyOSAxNDYuMDU1IDE4Mi40NTggMTQ2LjA2NCAxODIuMjg3TDE0Ni40OTQgMTY5LjkwNUMxNDYuNTAzIDE2OS41NzEgMTQ2LjYzNyAxNjkuMjUzIDE0Ni44NyAxNjkuMDE0QzE0Ny4xMDMgMTY4Ljc3NSAxNDcuNDE3IDE2OC42MzMgMTQ3Ljc1IDE2OC42MTVWMTY4LjYxNVoiIGZpbGw9IiM1MkE1RUMiLz4KPHBhdGggZD0iTTE1NC4zMjIgMTYzLjMxN0MxNTUuMTc0IDE2Mi42OTEgMTU2LjQ2MyAxNjMuMDQyIDE1Ny4yNDMgMTY0LjExMkwxNzEuMTAzIDE4My4xMUMxNzEuOTMxIDE4NC4yNDUgMTcxLjg2NyAxODUuNzQ0IDE3MC45NjMgMTg2LjQwOEwxNjkuNzAzIDE4Ny4zMzNDMTY4Ljc5OSAxODcuOTk3IDE2Ny40MTggMTg3LjU1OCAxNjYuNjY2IDE4Ni4zNjhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",Ete="",xK={data(){return{title:"We're Sorry",message:"An error has occurred. Please try again. If the problem persists, please contact your administrator."}}};var kK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"simple-error-message-main"},[e._m(0),r("p",[r("span",{staticClass:"simple-error-message-title"},[e._v(" "+e._s(e.$t(e.title))+" ")])]),r("p",[r("span",{staticClass:"simple-error-message-message"},[e._v(e._s(e.$t(e.message)))])])])},_K=[function(){var t=this,e=t._self._c;return e("p",[e("img",{staticClass:"simple-error-message-icon",attrs:{src:SK}})])}],wK=ue(xK,kK,_K,!1,null,null,null,null);const CK={components:{simpleErrorMessage:wK.exports},props:{initialTaskId:{type:Number,default:null},initialScreenId:{type:Number,default:null},initialRequestId:{type:Number,default:null},initialProcessId:{type:Number,default:null},initialNodeId:{type:String,default:null},userId:{type:Number,default:null},csrfToken:{type:String,default:null},value:{type:Object,default:()=>{}},beforeLoadTask:{type:Function,default:()=>new Promise(t=>{t()})},initialLoopContext:{type:String,default:""},taskPreview:{type:Boolean,default:!1},loading:{type:Number,default:null}},data(){return{task:null,taskId:null,request:null,requestId:null,screen:null,screenId:null,renderComponent:"task-screen",processId:null,nodeId:null,disabled:!1,socketListeners:[],requestData:{},hasErrors:!1,refreshScreen:0,redirecting:null,loadingButton:!1}},watch:{initialScreenId:{handler(){this.screenId=this.initialScreenId}},initialTaskId:{handler(){this.taskId=this.initialTaskId}},initialRequestId:{handler(){this.requestId=this.initialRequestId}},initialProcessId:{handler(){this.processId=this.initialProcessId}},initialNodeId:{handler(){this.nodeId=this.initialNodeId}},screenId:{handler(){this.screenId&&this.loadScreen(this.screenId)}},taskId:{handler(){this.taskId&&(!this.task||this.task.id!==this.taskId)&&this.loadTask()}},requestId:{handler(){this.requestId?(this.setMetaValue(),this.initSocketListeners()):this.unsubscribeSocketListeners()}},task:{handler(){this.screen||(this.screen=this.task&&this.task.interstitial_screen),this.taskId=this.task.id,this.nodeId=this.task.element_id,this.listenForParentChanges(),this.task.process_request.status==="COMPLETED"&&(this.taskPreview||this.$emit("completed",this.task.process_request.id)),this.taskPreview&&this.task.status==="CLOSED"&&(this.task.interstitial_screen._interstitial=!1,this.task.screen.config=this.disableForm(this.task.screen.config),this.screen=this.task.screen)}},value:{handler(){this.requestData=this.value}},screen:{handler(){if(this.screen&&this.renderComponent!=="ConversationalForm")if(this.screen.type==="CONVERSATIONAL")this.renderComponent="ConversationalForm";else{const t=Y.get(this.screen,"_interstitial",!1);let e=Y.get(this,"task.component","task-screen");(e===null||t)&&(e="task-screen"),this.renderComponent=e}}}},computed:{shouldAddSubmitButton(){return this.task?this.task.bpmn_tag_name==="manualTask"||!this.task.screen&&this.task.element_type!=="startEvent":!1},showTaskIsCompleted(){return this.task&&this.task.advanceStatus==="completed"&&!this.screen},screenTypeClass(){return this.screen?this.screen.type.toLowerCase()+"-screen":void 0},parentRequest(){return Y.get(this.task,"process_request.parent_request_id",null)}},methods:{disableForm(t){if(t instanceof Array)for(let e of t)e.component==="FormButton"&&e.config.event==="submit"?t.splice(t.indexOf(e),1):this.disableForm(e);return t.config!==void 0&&(t.config.disabled=!0),t.items!==void 0&&this.disableForm(t.items),t},showSimpleErrorMessage(){this.renderComponent="simpleErrorMessage"},loadScreen(t){let e="?include=nested";this.requestId&&(e+="&request_id="+this.requestId),this.$dataProvider.getScreen(t,e).then(r=>{this.screen=r.data})},reload(){this.taskId?this.loadTask():this.loadNextAssignedTask()},loadTask(){const t=`/${this.taskId}?include=data,user,requestor,processRequest,component,screen,requestData,loopContext,bpmnTagName,interstitial,definition,nested,userRequestPermission`;return window.ProcessMaker&&window.ProcessMaker.packages&&window.ProcessMaker.packages.includes("package-vocabularies")&&(window.ProcessMaker.VocabulariesSchemaUrl=`vocabularies/task_schema/${this.taskId}`),this.beforeLoadTask(this.taskId,this.nodeId).then(()=>{this.$dataProvider.getTasks(t).then(e=>{if(this.task=e.data,this.checkTaskStatus(),window.PM4ConfigOverrides&&window.PM4ConfigOverrides.getScreenEndpoint&&window.PM4ConfigOverrides.getScreenEndpoint.includes("tasks/")){const r=window.PM4ConfigOverrides.getScreenEndpoint.split("/");r[1]=this.task.id,window.PM4ConfigOverrides.getScreenEndpoint=r.join("/")}}).catch(()=>{this.hasErrors=!0})})},prepareTask(){(!this.loadingButton||this.task.status==="ACTIVE")&&(this.resetScreenState(),this.requestData=Y.get(this.task,"request_data",{}),this.loopContext=Y.get(this.task,"loop_context",""),this.refreshScreen++),this.$emit("task-updated",this.task),this.task.process_request.status==="ERROR"?(this.hasErrors=!0,this.$emit("error",this.requestId)):this.hasErrors=!1},resetScreenState(){this.loadingButton=!1,this.disabled=!1,this.$refs.renderer&&this.$refs.renderer.$children[0]&&(this.$refs.renderer.$children[0].currentPage=0,this.$refs.renderer.restartValidation())},checkTaskStatus(){this.task.status=="COMPLETED"||this.task.status=="CLOSED"||this.task.status=="TRIGGERED"?this.closeTask():this.screen=this.task.screen,this.prepareTask()},disableForSelfService(){this.$nextTick(()=>{window.ProcessMaker.isSelfService?this.disabled=!0:this.disabled=!1})},closeTask(t=null){if(this.hasErrors){this.$emit("error",this.requestId);return}this.task.process_request.status==="COMPLETED"?this.loadNextAssignedTask(t):this.loadingButton?this.loadNextAssignedTask(t):this.task.allow_interstitial?(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen,this.loadNextAssignedTask(t)):this.taskPreview||this.$emit("closed",this.task.id)},loadNextAssignedTask(t=null){t||(t=this.requestId);const e=window.Cypress?"":`&t=${Date.now()}`,r=`?user_id=${this.userId}&status=ACTIVE&process_request_id=${t}&include_sub_tasks=1${e}`;return this.$dataProvider.getTasks(r).then(i=>{if(i.data.data.length>0){let a=i.data.data[0];if(a.process_request_id!==this.requestId){if(this.redirecting===a.process_request_id)return;this.unsubscribeSocketListeners(),this.redirecting=a.process_request_id,this.$emit("redirect",a.id,!0);return}else this.emitIfTaskCompleted(t);this.taskId=a.id,this.nodeId=a.element_id}else this.parentRequest&&["COMPLETED","CLOSED"].includes(this.task.process_request.status)&&this.$emit("completed",this.getAllowedRequestId())})},emitIfTaskCompleted(t){this.task&&this.parentRequest&&t==this.task.process_request_id&&this.task.process_request.status==="COMPLETED"&&this.$emit("completed",this.parentRequest)},classHeaderCard(t){let e="bg-success";switch(t){case"completed":e="bg-secondary";break;case"overdue":e="bg-danger";break}return"card-header text-capitalize text-white "+e},submit(t=null,e=!1){this.disabled||(this.disabled=!0,t&&this.onUpdate(Object.assign({},this.requestData,t)),e?this.loadingButton=!0:this.loadingButton=!1,this.$emit("submit",this.task,e),this.task&&this.task.allow_interstitial&&!this.loadingButton&&(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen))},onUpdate(t){this.$emit("input",t),this.disableForSelfService()},activityAssigned(){},processCompleted(){let t;this.parentRequest&&(t=this.getAllowedRequestId(),this.$emit("completed",t)),t!==this.requestId&&this.$emit("completed",this.requestId)},getAllowedRequestId(){const e=(this.task.user_request_permission||[]).find(i=>i.process_request_id===this.parentRequest);return e&&e.allowed?this.parentRequest:this.requestId},processUpdated:Y.debounce(function(t){(t.event==="ACTIVITY_COMPLETED"||t.event==="ACTIVITY_ACTIVATED")&&this.reload(),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)},300),initSocketListeners(){this.addSocketListener(`completed-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".ProcessCompleted",t=>{this.processCompleted(t)}),this.addSocketListener(`updated-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".ProcessUpdated",t=>{this.processUpdated(t)}),this.taskId||this.reload()},listenForParentChanges(){this.parentRequest&&this.addSocketListener(`parent-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,".ProcessUpdated",t=>{["ACTIVITY_ACTIVATED"].includes(t.event)&&this.closeTask(this.parentRequest),["ACTIVITY_COMPLETED"].includes(t.event)&&this.task.process_request.status==="COMPLETED"&&this.processCompleted(),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)})},addSocketListener(t,e,r,i){t in this.socketListeners||(this.socketListeners[t]={channel:e,event:r},window.Echo.private(e).listen(r,a=>{i(a)}))},unsubscribeSocketListeners(){Object.values(this.socketListeners).forEach(t=>{window.Echo.private(t.channel).stopListening(t.event)}),this.socketListeners={}},obtainPayload(t){return new Promise(e=>{window.ProcessMaker.apiClient.get(t).then(r=>{e(r.data)}).catch(()=>{})})},setMetaValue(){const t=document.head.querySelector('meta[name="request-id"]');t&&t.setAttribute("content",this.requestId)}},mounted(){this.screenId=this.initialScreenId,this.taskId=this.initialTaskId,this.requestId=this.initialRequestId,this.processId=this.initialProcessId,this.nodeId=this.initialNodeId,this.requestData=this.value,this.loopContext=this.initialLoopContext},destroyed(){this.unsubscribeSocketListeners()}};var TK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tab-pane active show h-100",attrs:{id:"tab-form",role:"tabpanel","aria-labelledby":"tab-form"}},[e.screen?[r("b-overlay",{attrs:{show:e.disabled,id:"overlay-background",variant:"white",cardStyles:"pointer-events: none;pointer-events: none;inset: 1px",rounded:"sm"},scopedSlots:e._u([{key:"overlay",fn:function(){return[r("div",{staticClass:"text-center"},[r("p",[e._v("Please claim this task to continue.")])])]},proxy:!0}],null,!1,2499821482)},[r("div",{staticClass:"card card-body border-top-0 h-100",class:e.screenTypeClass},[e.renderComponent==="task-screen"?r("div",[r("vue-form-renderer",{key:e.refreshScreen,ref:"renderer",attrs:{config:e.screen.config,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,"loop-context":e.loopContext},on:{update:e.onUpdate,submit:e.submit},model:{value:e.requestData,callback:function(i){e.requestData=i},expression:"requestData"}})],1):r("div",[r(e.renderComponent,{tag:"component",attrs:{"process-id":e.processId,"instance-id":e.requestId,"token-id":e.taskId,screen:e.screen.config,"csrf-token":e.csrfToken,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,data:e.requestData,type:e.screen.type},on:{submit:e.submit}})],1)]),e.shouldAddSubmitButton?r("div",{staticClass:"card-footer"},[r("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return e.submit(null)}}},[e._v(" "+e._s(e.$t("Complete Task"))+" ")])]):e._e()])]:e._e(),e.showTaskIsCompleted?[r("div",{staticClass:"card card-body text-center"},[r("h1",[e._v(" "+e._s(e.$t("Task Completed"))+" "),r("i",{staticClass:"fas fa-clipboard-check"})])])]:e._e()],2)},AK=[],OK=ue(CK,TK,AK,!1,null,null,null,null);const Qx=OK.exports,Dte="",EK={name:"Loop",mixins:[mn],props:["value","name","config","selected","validationErrors"],components:{draggable:Oi,FormInput:te.FormInput,FormSelectList:te.FormSelectList,FormCheckbox:te.FormCheckbox,FormTextArea:te.FormTextArea,FormDatePicker:te.FormDatePicker,FormHtmlEditor:te.FormHtmlEditor,FormHtmlViewer:te.FormHtmlViewer,...es},data(){return{items:[],cancelledJobs:[]}},mounted(){!localStorage.getItem("cancelledJobs")||localStorage.getItem("cancelledJobs")==="null"?this.cancelledJobs=[]:this.cancelledJobs=JSON.parse(localStorage.getItem("cancelledJobs")),this.$root.$on("ai-form-generated",(t,e)=>{this.previewAiChanges(t,e)}),this.$root.$on("ai-form-progress-updated",(t,e)=>{this.updateProgress(t,e)})},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},methods:{hasError(t){return this.validationErrors?this.validationErrors.some(({item:e})=>e===t):!1},inspect(t){this.$emit("inspect",t)},deleteItem(t){this.items.splice(t,1),this.$emit("update-state")},duplicateItem(t){const e=Y.cloneDeep(this.items[t]);this.items.push(e),this.$emit("update-state")},isAiSection(t){return t.component==="AiSection"},aiPreview(t){return t.items&&t.items[0]&&t.items[0].length},applyAiChanges(t){this.$root.$emit("apply-ai-changes",t)},previewAiChanges(t,e){this.value.forEach(r=>{r.component==="AiSection"&&e===r.config.aiConfig.nonce&&this.$set(r,"items",JSON.parse(JSON.stringify(t)))})},updateProgress(t,e){this.value.forEach(r=>{if(r.component==="AiSection"&&e===r.config.aiConfig.nonce){if(this.cancelledJobs.some(i=>i===e))return;this.$set(r.config.aiConfig,"progress",t)}})}}};var MK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"column-draggable",attrs:{selector:e.config.customCssSelector}},[r("draggable",{staticStyle:{"min-height":"80px"},attrs:{list:e.items,group:"controls"}},e._l(e.items,function(i,a){return r("div",{key:a,staticClass:"control-item",class:{selected:e.selected===i,hasError:e.hasError(i)},on:{click:function(n){return n.stopPropagation(),e.inspect(i)}}},[i.container?r("div",{on:{click:function(n){return n.stopPropagation(),e.inspect(i)}}},[r("div",{staticClass:"m-2 card border-0",class:{"ai-section-card":e.isAiSection(i)&&e.selected===i}},[e.selected===i?r("div",{staticClass:"card-header form-element-header d-flex align-items-center border rounded",class:{pulse:e.isAiSection(i)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),i.config.icon?r("i",{staticClass:"mr-2 ml-1",class:i.config.icon}):e._e(),e._v(" "+e._s(i.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(i)&&e.aiPreview(i)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Apply Changes")},on:{click:function(n){return e.applyAiChanges(i)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(i)&&e.aiPreview(i)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(n){return e.duplicateItem(a)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(n){return e.deleteItem(a)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(i["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(i),attrs:{validationErrors:e.validationErrors,selected:e.selected,"ai-element":i,config:i.config},on:{inspect:e.inspect,"update-state":function(n){return e.$emit("update-state")}},model:{value:i.items,callback:function(n){e.$set(i,"items",n)},expression:"element.items"}})],1)]):r("div",{attrs:{id:i.config.name?i.config.name:void 0}},[r("div",{staticClass:"m-2",class:{card:e.selected===i}},[e.selected===i?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),i.config.icon?r("i",{staticClass:"mr-2 ml-1",class:i.config.icon}):e._e(),e._v(" "+e._s(i.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(n){return e.duplicateItem(a)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(n){return e.deleteItem(a)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(i["editor-component"],e._b({tag:"component",staticClass:"p-3",class:[e.elementCssClass(i),{"prevent-interaction":!i.config.interactive}],attrs:{tabindex:i.config.interactive?0:-1,config:i.config},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},$K=[],DK=ue(EK,MK,$K,!1,null,"f4214cff",null,null);const Kx=DK.exports,Pte="",PK=1,IK={name:"MultiColumn",mixins:[mn],props:["value","name","config","selected","validationErrors"],components:{draggable:Oi,FormInput:te.FormInput,FormSelectList:te.FormSelectList,FormCheckbox:te.FormCheckbox,FormTextArea:te.FormTextArea,FormDatePicker:te.FormDatePicker,FormHtmlEditor:te.FormHtmlEditor,FormHtmlViewer:te.FormHtmlViewer,...es},data(){return{items:[],cancelledJobs:[]}},mounted(){!localStorage.getItem("cancelledJobs")||localStorage.getItem("cancelledJobs")==="null"?this.cancelledJobs=[]:this.cancelledJobs=JSON.parse(localStorage.getItem("cancelledJobs")),this.$root.$on("ai-form-generated",(t,e)=>{this.previewAiChanges(t,e)}),this.$root.$on("ai-form-progress-updated",(t,e)=>{this.updateProgress(t,e)})},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)},"config.options"(t){this.items=t.map((e,r)=>this.items[r]?this.items[r]:[])}},computed:{classContainer(){return this.items.length>0?"form-group":"column-draggable"}},methods:{hasError(t){return this.validationErrors.some(({item:e})=>e===t)},updateContainerConfig(t,e){this.items[e]=t,this.$emit("update-state")},classColumn(t){let e=PK;return this.config.options[t]&&this.config.options[t].content&&(e=this.config.options[t].content),"col-sm-"+e},inspect(t){this.$emit("inspect",t)},deleteItem(t,e){this.items[t].splice(e,1),this.$emit("update-state")},duplicateItem(t,e){const r=Y.cloneDeep(this.items[t][e]);this.items[t].push(r),this.$emit("update-state")},isAiSection(t){return t.component==="AiSection"},aiPreview(t){return t.items&&t.items[0]&&t.items[0].length},applyAiChanges(t){this.$root.$emit("apply-ai-changes",t)},previewAiChanges(t,e){this.value.forEach(r=>{r.forEach(i=>{i.component==="AiSection"&&e===i.config.aiConfig.nonce&&this.$set(i,"items",JSON.parse(JSON.stringify(t)))})})},updateProgress(t,e){this.value.forEach(r=>{r.forEach(i=>{if(i.component==="AiSection"&&e===i.config.aiConfig.nonce){if(this.cancelledJobs.some(a=>a===e))return;this.$set(i.config.aiConfig,"progress",t)}})})}}};var zK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"mb-1 mt-1 pb-0 pt-0",class:e.classContainer},[r("div",{attrs:{selector:e.config.customCssSelector}},[r("div",{staticClass:"row"},[e._l(e.items,function(i,a){return[r("draggable",{key:a,staticClass:"column-draggable",class:e.classColumn(a),attrs:{value:e.items[a],group:"controls"},on:{input:function(n){return e.updateContainerConfig(n,a)}},model:{value:e.items[a],callback:function(n){e.$set(e.items,a,n)},expression:"items[index]"}},e._l(i,function(n,s){return r("div",{key:s,staticClass:"control-item",class:{selected:e.selected===n,hasError:e.hasError(n)},on:{click:function(o){return o.stopPropagation(),e.inspect(n)}}},[n.container?r("div",{on:{click:function(o){return o.stopPropagation(),e.inspect(n)}}},[r("div",{staticClass:"m-2 card border-0",class:{"ai-section-card":e.isAiSection(n)&&e.selected===n}},[e.selected===n?r("div",{staticClass:"card-header form-element-header d-flex align-items-center border rounded",class:{pulse:e.isAiSection(n)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),n.config.icon?r("i",{staticClass:"mr-2 ml-1",class:n.config.icon}):e._e(),e._v(" "+e._s(n.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(n)&&e.aiPreview(n)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Apply Changes")},on:{click:function(o){return e.applyAiChanges(n)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(n)&&e.aiPreview(n)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{"aria-label":e.$t("Duplicate")},on:{click:function(o){return e.duplicateItem(a,s)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(o){return e.deleteItem(a,s)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(n["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(n),attrs:{validationErrors:e.validationErrors,selected:e.selected,"ai-element":n,config:n.config},on:{inspect:e.inspect,"update-state":function(o){return e.$emit("update-state")}},model:{value:n.items,callback:function(o){e.$set(n,"items",o)},expression:"element.items"}})],1)]):r("div",{attrs:{id:n.config.name?n.config.name:void 0}},[r("div",{staticClass:"m-2",class:{card:e.selected===n}},[e.selected===n?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),n.config.icon?r("i",{staticClass:"mr-2 ml-1",class:n.config.icon}):e._e(),e._v(" "+e._s(n.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(o){return e.duplicateItem(a,s)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(o){return e.deleteItem(a,s)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(n["editor-component"],e._b({tag:"component",staticClass:"p-3",class:[e.elementCssClass(n),{"prevent-interaction":!n.config.interactive}],attrs:{tabindex:n.config.interactive?0:-1,config:n.config},on:{input:function(o){n.config.interactive&&(n.config.content=o)}}},"component",n.config,!1))],1)])])}),0)]})],2)])])},jK=[],LK=ue(IK,zK,jK,!1,null,"47d444df",null,null);const Jx=LK.exports,NK={props:["value"],data(){return{display:"running",errorMessage:"",showMessage:!1,variables:[]}},computed:{message(){return this.$t("{{variable}} running.",{variable:this.variables.join(", ")})}},methods:{error(t){this.display="error",this.errorMessage=t},show(t){this.variables.indexOf(t)===-1&&this.variables.push(t),this.display="running",this.errorMessage="",this.showMessage=!1,this.$refs.modal.show()},hide(t){t===-1&&this.variables.splice(0);const e=this.variables.indexOf(t);e>-1&&this.variables.splice(e,1),this.variables.length===0&&this.$refs.modal.hide()}}};var RK=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"watchers-synchronous",title:"","hide-header":"","no-close-on-esc":"","hide-header-close":"","no-close-on-backdrop":""}},[e.display==="running"?r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("svg",{staticClass:"lds-gear",attrs:{width:"50%",height:"50%",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])])]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.message))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("This window will automatically close when complete.")))])]):r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("i",{staticClass:"fas fa-sad-tear fa-10x"})]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.$t("Something has gone wrong.")))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("Unfortunately this screen has had an issue. We've notified the administrator."))+" "),r("a",{attrs:{href:"javascript:void(0)","data-cy":"watchers-show-error-message"},on:{click:function(i){e.showMessage=!e.showMessage}}},[r("i",{staticClass:"fas fa-info-circle"})])]),e.showMessage?r("small",{staticClass:"text-danger text-left small"},[e._v(e._s(e.errorMessage))]):e._e()]),r("div",{staticClass:"w-100 text-right",attrs:{slot:"modal-footer"},slot:"modal-footer"},[e.display==="error"?r("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:function(i){return e.hide(-1)}}},[e._v(e._s(e.$t("Close")))]):e._e()])])},FK=[],qK=ue(NK,RK,FK,!1,null,null,null,null);const Zx=qK.exports,Ite="",BK={name:"ScreenRenderer",components:{WatchersSynchronous:Zx,ScreenRendererError:$d},mixins:[rb,tc],props:{loopContext:{type:String,default:""}},data(){return{currentDefinition:null,codigo:"",displayAsyncLoading:!1}},watch:{definition:{deep:!0,handler(t){Y.isEmpty(t.config)||this.rebuildScreen(t)}}},mounted(){this.currentDefinition=Y.cloneDeep(this.definition),this.component=this.buildComponent(this.currentDefinition)},methods:{rebuildScreen(t){Y.isEqual(t,this.currentDefinition)||(this.currentDefinition=Y.cloneDeep(t),this.component=this.buildComponent(this.currentDefinition))},onAsyncWatcherOn(){this.displayAsyncLoading=typeof this._parent>"u"},onAsyncWatcherOff(){this.displayAsyncLoading=!1},getCurrentPage(){return this.$refs.component.getCurrentPage()},setCurrentPage(t){this.$refs.component.setCurrentPage(t)}}};var WK=function(){var e=this,r=e._self._c;return r("b-container",{attrs:{fluid:""}},[e.displayAsyncLoading?r("div",{ref:"watchersAsynchronous",staticClass:"alert alert-light",attrs:{role:"alert"}},[r("svg",{staticClass:"lds-gear",attrs:{width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])]),e._v(" "+e._s(e.$t("Loading..."))+" ")]):e._e(),r(e.component,{ref:"component",tag:"component",attrs:{vdata:e.value,_parent:e._parent,"_initial-page":e.currentPage},on:{submit:e.submit,asyncWatcherTriggered:e.onAsyncWatcherOn,asyncWatcherCompleted:e.onAsyncWatcherOff}}),e.showErrors&&e.building.error?r("screen-renderer-error",{model:{value:e.building,callback:function(i){e.building=i},expression:"building"}}):e._e(),r("watchers-synchronous",{ref:"watchersSynchronous"})],1)},VK=[],UK=ue(BK,WK,VK,!1,null,null,null,null);const GK=UK.exports,HK={name:"default-loading-spinner"};var YK=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},QK=[],KK=ue(HK,YK,QK,!1,null,null,null,null);const Xx=KK.exports,JK=!0;function mu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=mu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=mu(i))}}),e}const ek=async(t,e)=>{if(t.length===0)return;const r=lh(t[0]),i=[];t.forEach(n=>{r!==n&&i.push(n.loadValidationRules())}),await Promise.all(i);try{await r.loadValidationRules()}catch(n){console.warn("There was a problem rendering the screen",n)}const a=r.$v;if(a){let n=0,s="";a.$invalid&&(n+=mu(a.vdata),n+=mu(a.schema),s=n===1?"There is a validation error in your form.":"There are {{items}} validation errors in your form.",s=r.$t(s,{items:n})),e("basic",{key:"valid",value:!a.$invalid}),e("basic",{key:"message",value:s})}},ZK=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},XK=Y.debounce(ek,500),gu=[],eJ=(t,e)=>{gu.includes(t)||gu.push(t),XK(gu,e)},tk={namespaced:JK,state:()=>({locked:!1,valid:!0,message:"",mode:"",submitted:!1,showValidationOnLoad:!1,disableSubmit:!1}),getters:{isValidScreen(t){return t.valid},getErrorMessage(t){return t.message},getMode(t){return t.mode},showValidationErrors(t){return t.showValidationOnLoad||t.submitted}},mutations:{basic(t,e){t[e.key]=e.value},setMode(t,e){t.mode=e},disableSubmit(t,e){t.disableSubmit=e.value,t.message=e.message}},actions:{restartValidation(){gu.length=0},validate({commit:t},e){eJ(e,t)},async validateNow({commit:t},e){await ek([e],t)},close({commit:t}){t("basic",{key:"valid",value:!0})},hasSubmitted({commit:t},e){t("basic",{key:"submitted",value:e})},showValidationOnLoad({commit:t},e){t("basic",{key:"showValidationOnLoad",value:e})},async disableSubmitOnPhotoVideoUpload({commit:t},e){await ZK(t,e)}}},vu={namespaced:!0,state(){return{stack:[],position:null}},getters:{canUndo(t){return t.position>0},canRedo(t){return t.position<t.stack.length-1},currentState(t,e){const r=t.stack[t.position];return e.nextState&&e.nextState.deletedPage&&(r.currentPage=e.nextState.currentPage),r},nextState(t,e){return e.canRedo?t.stack[t.position+1]:!1}},mutations:{setPosition(t,e){t.position=e},setState(t,e){t.stack.push(e)}},methods:{emitChanges(){window.ProcessMaker.EventBus.$emit("screen-change")}},actions:{pushState({state:t,getters:e,commit:r},i){i.config!==e.currentState&&(r("setState",i),r("setPosition",t.stack.length-1),vu.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),vu.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),vu.methods.emitChanges())}}},zte="",tJ={props:{placeholder:{type:String},value:{type:String}},data(){return{query:""}},watch:{query(t){this.$emit("input",t)}},methods:{runSearch(t){this.$emit("submit",this.query)}},mounted(){this.query=this.value}};var rJ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"basic-search"},[r("div",{staticClass:"d-flex"},[r("div",{staticClass:"flex-grow-1"},[r("div",{staticClass:"search-bar-basic d-flex w-100"},[r("div",{staticClass:"search-bar-inputs flex-grow w-100"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"search_input",staticClass:"search-bar-manual-input form-control",attrs:{type:"text",placeholder:e.placeholder?e.placeholder:e.$t("Search"),"data-cy":"watchers-table-search"},domProps:{value:e.query},on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.runSearch.apply(null,arguments)},input:function(i){i.target.composing||(e.query=i.target.value)}}})]),r("div",{staticClass:"search-bar-actions d-flex flex-shrink"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"btn-search-run",attrs:{variant:"primary",title:e.$t("Search")},on:{click:e.runSearch}},[r("i",{staticClass:"fas fa-search",attrs:{"data-cy":"watchers-table-search-button"}})])],1)])]),r("div",{staticClass:"search-bar-buttons"},[e._t("buttons")],2)])])},iJ=[],aJ=ue(tJ,rJ,iJ,!1,null,"d660c896",null,null);const rk=aJ.exports,jte="",nJ={components:{FormInput:te.FormInput,FormTextArea:te.FormTextArea,MonacoEditor:Yr},mixins:[ic],props:["value"],data(){return{required:!0,numberItem:0,displayList:!0,ruleDescription:"",ruleFormula:"",rulePropName:"",editorInvalid:!1,existsProperty:!1,current:[],add:{id:0,name:"",property:"",type:"expression",formula:""},css:{tableClass:"table table-hover table-responsive text-break mb-0",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending"},fields:[{label:this.$t("Property Name"),key:"property"},{label:this.$t("Description"),key:"name"},{key:"__actions",label:"",class:"text-right"}],monacoOptions:{automaticLayout:!0,lineNumbers:"off",minimap:!1},monacoEditor:null,errors:{}}},computed:{javascriptTypeClass(){const{isJS:t}=this;return{"btn-outline-secondary":t,"text-dark":t,"btn-outline-light":!t,"text-secondary":!t}},expressionTypeClass(){const t=!this.isJS;return{"btn-outline-secondary":t,"text-dark":t,"btn-outline-light":!t,"text-secondary":!t}},isJS(){return this.add.type==="javascript"}},watch:{value(){this.value.forEach(t=>{this.numberItem++,t.id=this.numberItem}),this.current=this.value}},created(){Tt.register("exists-property",()=>{let t=!0;return this.current.forEach(e=>{e.property===this.add.property&&e.id!==this.add.id&&(t=!1)}),t},this.$t("Property already exists"))},methods:{switchExpressionType(t){this.add.type=t},show(){this.$refs.modal.show()},emptyForm(){this.add.id=0,this.add.name="",this.add.property="",this.add.type="expression",this.add.formula="",this.editorInvalid=!1,this.existsProperty=!1,this.ruleDescription="",this.ruleFormula="",this.rulePropName=""},displayTableList(){this.emptyForm(),this.displayList=!0},displayFormProperty(){this.emptyForm(),this.displayList=!1},validateData(){this.errors=[];const t={property:"required|exists-property",name:"required",formula:"required"},e={property:this.add.property,name:this.add.name,formula:this.add.formula},r=new Tt(e,t),i=r.passes();this.errors=Object.fromEntries(Object.keys(r.errors.all()).map(a=>[a,r.errors.first(a)])),i?this.saveProperty():this.focusFirstCalculatedPropertiesError()},saveProperty(){this.add.id===0?(this.numberItem++,this.current.push({id:this.numberItem,property:this.add.property,name:this.add.name,formula:this.add.formula,type:this.add.type})):this.current.forEach(t=>{t.id===this.add.id&&(t.name=this.add.name,t.property=this.add.property,t.formula=this.add.formula,t.type=this.add.type)}),this.$emit("input",this.current),this.displayTableList()},editProperty(t){this.add.id=t.id,this.add.name=t.name,this.add.property=t.property,this.add.type=t.type?t.type:"expression",this.add.formula=t.formula,this.displayList=!1},deleteProperty(t){this.current=this.current.filter(e=>e.id!==t.id),this.$emit("input",this.current),this.displayTableList()},editorMounted(t){this.monacoEditor=t}}};var sJ=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{id:"computed-properties",size:"lg",title:e.$t("Calculated Properties"),"content-class":"p-3","header-class":"m-0 p-0 mb-3","body-class":"m-0 p-0","title-class":"m-0","footer-class":"m-0 p-0","no-close-on-backdrop":"","header-close-content":"&times;","data-cy":"calcs-modal"},on:{hidden:e.displayTableList}},[e.displayList?[r("div",{staticClass:"d-flex align-items-end flex-column mb-3"},[r("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-cy":"calcs-add-property"},on:{click:function(i){return i.stopPropagation(),e.displayFormProperty.apply(null,arguments)}}},[r("i",{staticClass:"fas fa-plus"}),e._v(" "+e._s(e.$t("Property"))+" ")])]),r("div",{staticClass:"card card-body table-card"},[r("b-table",{attrs:{css:e.css,fields:e.fields,items:e.current,"empty-text":e.$t("No Data Available"),"data-cy":"calcs-table"},scopedSlots:e._u([{key:"cell(__actions)",fn:function({item:i}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"popout"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"link",title:e.$t("Edit"),"data-cy":"calcs-table-edit"},on:{click:function(a){return e.editProperty(i)}}},[r("i",{staticClass:"fas fa-edit fa-lg fa-fw"})]),r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"link",title:e.$t("Delete"),"data-cy":"calcs-table-remove"},on:{click:function(a){return e.deleteProperty(i)}}},[r("i",{staticClass:"fas fa-trash-alt fa-lg fa-fw"})])],1)])]}}],null,!1,3545130899)})],1),r("template",{slot:"modal-footer"},[r("span")])]:[r("required"),r("form-input",{ref:"property",staticClass:"mb-3",attrs:{label:e.$t("Property Name")+" *",name:"property",error:e.errors.property,"data-cy":"calcs-property-name",required:"","aria-required":"true"},model:{value:e.add.property,callback:function(i){e.$set(e.add,"property",i)},expression:"add.property"}}),r("form-text-area",{ref:"name",staticClass:"mb-3",attrs:{label:e.$t("Description")+" *",name:"name",error:e.errors.name,"data-cy":"calcs-property-description",required:"","aria-required":"true"},model:{value:e.add.name,callback:function(i){e.$set(e.add,"name",i)},expression:"add.name"}}),r("div",{staticClass:"form-group mb-3",staticStyle:{position:"relative"}},[r("label",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}]},[e._v(e._s(e.$t("Formula")+" *"))]),r("div",{staticClass:"float-right"},[r("a",{staticClass:"btn btn-sm",class:e.expressionTypeClass,attrs:{"data-cy":"calcs-switch-formula"},on:{click:function(i){return e.switchExpressionType("expression")}}},[r("i",{staticClass:"fas fa-square-root-alt"})]),r("a",{staticClass:"btn btn-sm",class:e.javascriptTypeClass,attrs:{"data-cy":"calcs-switch-javascript"},on:{click:function(i){return e.switchExpressionType("javascript")}}},[r("i",{staticClass:"fab fa-js-square"})])]),r("form-text-area",{directives:[{name:"show",rawName:"v-show",value:!e.isJS,expression:"!isJS"}],ref:"formula",attrs:{rows:"5",label:e.$t("Formula")+" *",name:"formula",error:e.errors.formula,"data-cy":"calcs-property-formula",required:"","aria-required":"true"},model:{value:e.add.formula,callback:function(i){e.$set(e.add,"formula",i)},expression:"add.formula"}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}],staticClass:"editor-border",class:{"is-invalid":!!e.errors.formula}}),r("monaco-editor",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}],staticClass:"editor",attrs:{options:e.monacoOptions,language:"javascript","data-cy":"calcs-property-javascript",required:"","aria-required":"true"},on:{editorDidMount:e.editorMounted},model:{value:e.add.formula,callback:function(i){e.$set(e.add,"formula",i)},expression:"add.formula"}}),e.isJS&&e.errors.formula?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.errors.formula))])]):e._e()],1),r("template",{slot:"modal-footer"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-outline-secondary",attrs:{"data-cy":"calcs-button-cancel"},on:{click:e.displayTableList}},[e._v(" "+e._s(e.$t("Cancel"))+" ")]),r("button",{staticClass:"btn btn-secondary ml-3",attrs:{"data-cy":"calcs-button-save"},on:{click:e.validateData}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])]],2)},oJ=[],lJ=ue(nJ,sJ,oJ,!1,null,"5efce491",null,null);const uJ=lJ.exports,Lte="",cJ={props:["value","cssErrors"],components:{MonacoEditor:Yr},data(){return{saveValue:"",innerValue:"",monacoOptions:{language:"css",automaticLayout:!0,minimap:{enabled:!1}}}},watch:{innerValue(t){this.$emit("input",t)}},methods:{show(){this.innerValue=this.value,this.saveValue=this.value,this.$refs.modal.show()},close(){this.$refs.modal.hide()},hide(){this.innerValue=this.saveValue,this.$emit("input",this.innerValue)},save(){this.saveValue=this.innerValue,this.$refs.modal.hide()}}};var dJ=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"custom-css",title:e.$t("Custom CSS"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","no-close-on-backdrop":"","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),"header-close-content":"&times;"},on:{ok:e.save,cancel:e.close,hide:e.hide}},[r("p",[e._v(e._s(e.$t("You can set CSS Selector names in the inspector. Use them here with [selector='my-selector']")))]),r("div",{staticClass:"editor"},[r("monaco-editor",{staticClass:"monaco",attrs:{options:e.monacoOptions,"data-cy":"monaco-editor"},model:{value:e.innerValue,callback:function(i){e.innerValue=i},expression:"innerValue"}})],1),r("b-alert",{attrs:{show:e.cssErrors!="",variant:"danger"}},[r("pre",[e._v(e._s(e.cssErrors))])]),r("div",{attrs:{slot:"modal-cancel","data-cy":"cancel-button"},slot:"modal-cancel"},[e._v(e._s(e.$t("Cancel")))]),r("div",{attrs:{slot:"modal-ok","data-cy":"save-button"},slot:"modal-ok"},[e._v(e._s(e.$t("Save")))])],1)},pJ=[],fJ=ue(cJ,dJ,pJ,!1,null,"3824b29b",null,null);const hJ=fJ.exports,Nte="",mJ=typeof window>"u"?global:window,gJ={name:"WatchersForm",components:{FormInput:te.FormInput,FormTextArea:te.FormTextArea,FormMultiSelect:te.FormMultiSelect,FormCheckbox:te.FormCheckbox,MonacoEditor:Yr,DataMapping:jd,OutboundConfig:Fd,ScreenVariableSelector:fb},mixins:[ic],props:{config:{type:Object,default(){return{name:"",watching:"",script:"",script_id:"",script_key:"",input_data:"{}",script_configuration:"{}",output_variable:"",synchronous:!1,run_onload:!1,show_async_loading:!1}}}},data(){return{scriptConfig:"",endpoint:null,endpoints:[],ruleWatcherName:"",ruleWatcherVariable:"",ruleWatcherScript:"",ruleWatcherOutputVariable:"",required:!0,inputDataInvalid:!1,scriptConfigurationInvalid:!1,scripts:[],script:null,monacoOptions:{automaticLayout:!0,lineNumbers:"on",minimap:{enabled:!1}},endpointError:null,inputDataEditor:null,scriptConfigEditor:null}},computed:{dataSourceLink(){const t=this.selectedDataSourceId(),e=this.endpoint;return t&&e?`/designer/data-sources/${t}/resources/${e}`:""},dataSourceConfigWarning(){const t=this.selectedDataSourceId(),e=this.scripts.find(i=>i.type==="Data Connectors");if(typeof e>"u"||e===null)return"";const r=e.items.find(i=>i.id===`data_source-${t}`);return typeof r>"u"||e===null?"":r.validationStatus.length>0?r.validationStatus:""},isDatasource(){return this.config.script&&this.config.script.id.substr(0,11)==="data_source"},isScript(){return!this.config.script||this.config.script.id.substr(0,6)==="script"},hasInputData(){let t;try{t=JSON.parse(this.config.script_configuration)}catch{return!1}return typeof t.input_data>"u"||t.input_data==null?!1:Object.keys(t.input_data).length===0&&t.input_data.constructor===Object},outputVarLabel(){const t=this.ruleWatcherOutputVariable=="required"?" *":"";return this.$t("Output Variable")+t}},watch:{scriptConfig(t){try{const e=JSON.parse(this.config.script_configuration),r=JSON.parse(t);this.config.script_configuration=JSON.stringify({...e,...r},null," ")}catch{}},endpoint(t){this.setConfig("endpoint",t);const e=this.scriptConfig?JSON.parse(this.scriptConfig):{},r=e.dataMapping||[],i=this.scripts.find(a=>a.items&&a.items.length>0&&a.items[0].id&&a.items[0].id.substr(0,11)==="data_source");if(i&&r.length===0){const a=i.items.find(s=>`data_source-${e.dataSource}`===s.id),n=(a.endpoints&&a.endpoints[t]?a.endpoints[t].dataMapping:[])||[];e.dataMapping=[],n.forEach(s=>{e.dataMapping.push({key:s.key,value:s.value})}),this.scriptConfig=JSON.stringify(e)}},config:{deep:!0,immediate:!0,handler(t){t.input_data||(t.input_data="{}"),t.script_configuration?this.scriptConfig=this.config.script_configuration:t.script_configuration="{}",this.endpoint=this.getConfig().endpoint}},"config.script":{handler(t,e){if(!t)this.config.script_id="",this.config.script_key="",this.config.datasource_script_id="";else if(typeof t=="object"){const r=t.id.split("-"),i=e&&e.id&&e.id.split("-").length>0?e.id.split("-")[0]:"";this.config.script_id=r[1],this.config.script_key=t.key,i!==r[0]&&(this.config.script_configuration="{}"),r[0]==="data_source"&&this.setConfig("dataSource",this.config.script_id),this.config.datasource_script_id=t.dataSourceScriptId}return t}}},methods:{selectedDataSourceId(){let t=null;try{t=JSON.parse(this.scriptConfig).dataSource}catch{t=null}return t},setValidations(){this.ruleWatcherName="required",this.ruleWatcherVariable="required",this.ruleWatcherScript="required",this.hasInputData&&(this.ruleWatcherOutputVariable="required")},getConfig(){try{return JSON.parse(this.config.script_configuration)}catch{return{}}},setConfig(t,e){const r=this.getConfig();JSON.stringify(r[t])!==JSON.stringify(e)&&(r[t]=e,this.config.script_configuration=JSON.stringify(r),this.scriptConfig=this.config.script_configuration)},loadEndpoints(){const t=this.config.script.id.substr(0,11)==="data_source"?this.config.script.id.substr(12):null;this.endpoints.splice(0),t&&window.ProcessMaker&&window.ProcessMaker.apiClient&&window.ProcessMaker.apiClient.get(`/data_sources/${t}`).then(e=>{for(const r in e.data.endpoints)this.endpoints.push(r)})},loadSources(){this.scripts=[],this.$root.$children[0].watchers_config.api.scripts.forEach(t=>{t(this.scripts)})},displayTableList(){this.$emit("display-list")},jsonIsValid(t){try{JSON.parse(this.config[t])}catch{return!1}return!0},isFormValid(){this.isDatasource&&!this.endpoint?this.endpointError=this.$t("Endpoint is required"):this.endpointError=null;for(const t in this.$refs)if(this.$refs[t]&&this.$refs[t].name&&this.$refs[t].validator&&this.$refs[t].validator.errorCount!==0)return!1;return!(!this.config.watching||!this.config.script||this.endpointError||!this.jsonIsValid("input_data")||!this.jsonIsValid("script_configuration"))},validateDataAndSave(){this.setValidations(),this.$nextTick(()=>{if(!this.isFormValid()){mJ.ProcessMaker.alert(this.$t("An error occurred. Check the form for errors in red text."),"danger"),this.focusFirstWatcherError();return}this.config.uid||(this.config.uid=Y.uniqueId(new Date().getTime())),this.save()})},save(){this.$emit("save-form")},inputDataEditorMounted(t){this.inputDataEditor=t},scriptConfigEditorMounted(t){this.scriptConfigEditor=t}}};var vJ=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"accordion",attrs:{id:"watcherAccordion"}},[r("div",{staticClass:"card card-overflow"},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherConfigButton",staticClass:"p-3 btn btn-link d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherConfig","data-cy":"watchers-accordion-configuration"}},[e._m(0),e._m(1)])])]),r("div",{staticClass:"collapse show",attrs:{id:"watcherConfig","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[r("form-input",{ref:"name",attrs:{label:e.$t("Watcher Name")+" *",name:e.$t("Watcher Name"),validation:e.ruleWatcherName,helper:e.$t("A name to describe this Watcher"),"data-cy":"watchers-watcher-name",required:"","aria-required":"true"},model:{value:e.config.name,callback:function(i){e.$set(e.config,"name",i)},expression:"config.name"}}),r("screen-variable-selector",{ref:"watching",attrs:{name:e.$t("Variable to Watch"),label:e.$t("Variable to Watch")+" *",validation:e.ruleWatcherVariable,helper:e.$t("Select the variable to watch on this screen or type any request variable name"),"data-cy":"watchers-watcher-variable"},model:{value:e.config.watching,callback:function(i){e.$set(e.config,"watching",i)},expression:"config.watching"}}),r("form-checkbox",{attrs:{name:e.$t("Run Synchronously"),label:e.$t("Run Synchronously"),toggle:!0,helper:e.$t("Wait for the Watcher to run before accepting more input"),"data-cy":"watchers-watcher-synchronous"},model:{value:e.config.synchronous,callback:function(i){e.$set(e.config,"synchronous",i)},expression:"config.synchronous"}}),r("form-checkbox",{directives:[{name:"show",rawName:"v-show",value:!e.config.synchronous,expression:"!config.synchronous"}],attrs:{name:e.$t("Show message while loading remote data"),label:e.$t("Show message while loading remote data"),toggle:!0,"data-cy":"watchers-watcher-show-loading"},model:{value:e.config.show_async_loading,callback:function(i){e.$set(e.config,"show_async_loading",i)},expression:"config.show_async_loading"}}),r("form-checkbox",{attrs:{name:e.$t("Run Watcher on Screen Load"),label:e.$t("Run watcher on Screen Load"),toggle:!0,"data-cy":"watchers-watcher-run-onload"},model:{value:e.config.run_onload,callback:function(i){e.$set(e.config,"run_onload",i)},expression:"config.run_onload"}})],1)])]),r("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherSourceButton",staticClass:"p-3 btn btn-link collapsed d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherSource","data-cy":"watchers-accordion-source"}},[e._m(2),e._m(3)])])]),r("div",{staticClass:"collapse",attrs:{id:"watcherSource","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[r("form-multi-select",{ref:"script",attrs:{name:e.$t("Source"),label:e.$t("Source")+" *",options:e.scripts,placeholder:e.$t("None"),multiple:!1,"show-labels":!1,searchable:!0,"option-value":"id","option-content":"title","group-values":"items","group-label":"type",validation:e.ruleWatcherScript,helper:e.$t("The source to access when this Watcher runs"),"data-cy":"watchers-watcher-source"},on:{open:e.loadSources},model:{value:e.config.script,callback:function(i){e.$set(e.config,"script",i)},expression:"config.script"}}),e.isScript?r("div",[e.config.script?r("b-alert",{attrs:{show:"",variant:"warning"}},[r("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" "+e._s(e.$t("Using watchers with Scripts can slow the performance of your screen."))+" ")]):e._e(),r("div",{staticClass:"form-group"},[r("label",[e._v(e._s(e.$t("Input Data")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("input_data")}},[r("monaco-editor",{ref:"input_data",staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-input_data"},on:{editorDidMount:e.inputDataEditorMounted},model:{value:e.config.input_data,callback:function(i){e.$set(e.config,"input_data",i)},expression:"config.input_data"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Data to pass to the script (valid JSON object, variables supported)")))]),e.inputDataInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("The Input Data field is required")))])]):e._e(),e.jsonIsValid("input_data")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])]),r("div",{staticClass:"form-group"},[r("label",[e._v(e._s(e.$t("Script Configuration")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("script_configuration")}},[r("monaco-editor",{ref:"script_configuration",staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-script_configuration"},on:{editorDidMount:e.scriptConfigEditorMounted},model:{value:e.config.script_configuration,callback:function(i){e.$set(e.config,"script_configuration",i)},expression:"config.script_configuration"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Configuration data for the script (valid JSON object, variables supported)")))]),e.scriptConfigurationInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(" "+e._s(e.$t("The Script Configuration field is required"))+" ")])]):e._e(),e.jsonIsValid("script_configuration")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])])],1):e._e(),e.isDatasource?r("div",[r("div",{staticClass:"form-group"},[r("form-multi-select",{ref:"endpoint",attrs:{name:e.$t("Resource"),label:e.$t("Resource"),options:e.endpoints,placeholder:e.$t("Select a resource"),multiple:!1,"show-labels":!1,searchable:!0,"internal-search":!1,helper:e.$t("The Data Connector resource to access when this Watcher runs"),"data-cy":"watchers-watcher-endpoint"},on:{"search-change":e.loadEndpoints,open:function(i){return e.loadEndpoints()}},model:{value:e.endpoint,callback:function(i){e.endpoint=i},expression:"endpoint"}}),e.endpointError?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.endpointError))])]):e._e(),e.dataSourceConfigWarning.length>0?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.dataSourceConfigWarning))])]):e._e(),r("a",{directives:[{name:"show",rawName:"v-show",value:e.dataSourceLink.length>0,expression:"dataSourceLink.length > 0"}],staticClass:"link-primary",attrs:{href:e.dataSourceLink,target:"_blank"}},[e._v(" "+e._s(e.$t("Open Data Connector"))+" "),r("i",{staticClass:"ml-1 fas fa-external-link-alt"})])],1),e.hasInputData?e._e():r("outbound-config",{model:{value:e.scriptConfig,callback:function(i){e.scriptConfig=i},expression:"scriptConfig"}}),e.hasInputData?r("div",{staticClass:"form-group"},[e._m(4),r("div",{staticClass:"row pl-3 mt-1"},[r("label",[e._v(e._s(e.$t("Input Data")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("input_data")}},[r("monaco-editor",{staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-input_data"},model:{value:e.config.input_data,callback:function(i){e.$set(e.config,"input_data",i)},expression:"config.input_data"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Data to pass to the Data Connector (valid JSON object, variables supported)")))]),e.inputDataInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("The Input Data field is required")))])]):e._e(),e.jsonIsValid("input_data")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])])]):e._e()],1):e._e()],1)])]),r("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherOutputButton",staticClass:"p-3 btn btn-link collapsed d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherOutput","data-cy":"watchers-accordion-output"}},[e._m(5),e._m(6)])])]),r("div",{staticClass:"collapse",attrs:{id:"watcherOutput","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[e.hasInputData||e.isScript?r("form-input",{ref:"propOutputVariableName",attrs:{label:e.outputVarLabel,name:e.$t("Output Variable"),helper:e.$t("The variable that will store the output of the Watcher"),validation:e.ruleWatcherOutputVariable,"data-cy":"watchers-watcher-output_variable",required:e.ruleWatcherOutputVariable=="required","aria-required":e.ruleWatcherOutputVariable=="required"},model:{value:e.config.output_variable,callback:function(i){e.$set(e.config,"output_variable",i)},expression:"config.output_variable"}}):e._e(),e.isDatasource?r("data-mapping",{model:{value:e.scriptConfig,callback:function(i){e.scriptConfig=i},expression:"scriptConfig"}}):e._e()],1)])])]),r("div",{staticClass:"d-flex justify-content-end mt-3"},[r("button",{staticClass:"btn btn-outline-secondary",attrs:{"data-cy":"watchers-button-cancel"},on:{click:function(i){return i.stopPropagation(),e.displayTableList.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("Cancel"))+" ")]),r("button",{staticClass:"btn btn-secondary ml-3",attrs:{"data-cy":"watchers-button-save"},on:{click:e.validateDataAndSave}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])},bJ=[function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-cog"}),t._v(" Configuration")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-file-upload"}),t._v(" Source")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row pl-3"},[e("span",{staticClass:"text-danger"},[t._v(" * Deprecation Warning: Recreate the watcher to use the new format. Version 4.2 will not support Input Data as a JSON object. ")])])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-file-download"}),t._v(" Output")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])}],yJ=ue(gJ,vJ,bJ,!1,null,"60e1dcd1",null,null);const ik=yJ.exports,Rte="",SJ={components:{BasicSearch:rk,FormInput:te.FormInput,FormTextArea:te.FormTextArea},props:{value:{type:Array,default(){return[]}}},data(){return{filter:"",css:{tableClass:"table table-hover table-responsive text-break mb-0",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending"},fields:[{label:this.$t("Name"),key:"name",tdClass:"break-word"},{label:this.$t("Watching Variable"),key:"watching"},{label:this.$t("Output Variable"),key:"output_variable",tdClass:"break-word"},{label:this.$t("Source"),key:"script.title"},{key:"actions",label:""}]}},computed:{filtered(){const t=this.getValuesWithOutputVarsNames(this.value);if(!this.filter)return t;const e=[];return t.forEach(r=>{Object.keys(r).find(i=>typeof r[i]=="string"?r[i].indexOf(this.filter)>=0:!1)&&e.push(r)}),e}},methods:{search(){},displayFormProperty(){this.$emit("display-form")},editProperty(t){this.$emit("edit-form",t)},deleteProperty(t){this.$emit("delete-form",t)},getValuesWithOutputVarsNames(t){return t.map(r=>{let i=Object.assign({},r);if(i.script&&i.script.id&&i.script.id.substr(0,11)==="data_source"){let a=JSON.parse(i.script_configuration),n=a&&a.dataMapping?a.dataMapping.map(o=>o.key).join(", "):"";const s=50;i.output_variable=n.length>s?n.substr(0,s)+"...":n}return i})}}};var xJ=function(){var e=this,r=e._self._c;return r("div",[r("b-row",{staticClass:"mb-3"},[r("b-col",[r("basic-search",{on:{submit:e.search},model:{value:e.filter,callback:function(i){e.filter=i},expression:"filter"}},[r("template",{slot:"buttons"},[r("b-btn",{staticClass:"text-nowrap",attrs:{variant:"secondary","data-cy":"watchers-add-watcher"},on:{click:function(i){return i.stopPropagation(),e.displayFormProperty.apply(null,arguments)}}},[r("i",{staticClass:"fas fa-plus"}),e._v(" "+e._s(e.$t("Watcher"))+" ")])],1)],2)],1)],1),r("div",{staticClass:"card card-body table-card watchers-list"},[r("b-table",{attrs:{items:e.filtered,fields:e.fields,"empty-text":e.$t("No Data Available"),"data-cy":"watchers-table","sort-icon-left":""},scopedSlots:e._u([{key:"cell(actions)",fn:function({item:i}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"popout"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"link",title:e.$t("Edit"),"data-cy":"watchers-table-edit"},on:{click:function(a){return e.editProperty(i)}}},[r("i",{staticClass:"fas fa-edit fa-lg fa-fw"})]),r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"link",title:e.$t("Delete"),"data-cy":"watchers-table-remove"},on:{click:function(a){return e.deleteProperty(i)}}},[r("i",{staticClass:"fas fa-trash-alt fa-lg fa-fw"})])],1)])]}}])})],1),r("template",{slot:"modal-footer"},[r("span")])],2)},kJ=[],_J=ue(SJ,xJ,kJ,!1,null,null,null,null);const ak=_J.exports,nk=typeof window>"u"?global:window,wJ={components:{FormInput:te.FormInput,FormTextArea:te.FormTextArea,MonacoEditor:Yr,WatchersList:ak,WatchersForm:ik},props:["value"],data(){return{enableList:!0,current:[],add:{uid:"",name:"",variable:"",script_id:"",script_key:"",input_data:"",script_configuration:"",synchronous:!1}}},watch:{value:{handler(t){this.current=t}}},computed:{},methods:{show(){this.$refs.modal.show()},displayList(){this.add={},this.enableList=!0},displayForm(){this.add={},this.enableList=!1},save(){let t=this.$t("Watcher Saved"),e=this.current.findIndex(r=>r.uid===this.add.uid);e===-1?this.current.push(this.add):(t=this.$t("Watcher Updated"),this.current[e]=this.add),this.showAlert(t),this.$emit("input",this.current),this.displayList()},edit(t){this.displayForm(),this.$set(this,"add",Y.cloneDeep(t))},confirmRemoval(t){nk.ProcessMaker.confirmModal(this.$t("Caution!"),this.$t("Are you sure you want to delete the Watcher?"),"",()=>{this.remove(t)})},remove(t){this.current=this.current.filter(e=>e.uid!==t.uid),this.$emit("input",this.current),this.showAlert(this.$t("Watcher deleted")),this.displayList()},showAlert(t){nk.ProcessMaker.alert(t,"success")}}};var CJ=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"watchers-popup",title:e.$t("Watchers"),"hide-footer":"","header-close-content":"&times;","no-close-on-backdrop":"","data-cy":"watchers-modal"},on:{hidden:e.displayList}},[e.enableList?[r("watchers-list",{on:{"display-form":e.displayForm,"edit-form":e.edit,"delete-form":e.confirmRemoval},model:{value:e.current,callback:function(i){e.current=i},expression:"current"}})]:[r("required"),r("watchers-form",{attrs:{refs:"form",config:e.add},on:{"display-list":e.displayList,"save-form":e.save}})]],2)},TJ=[],AJ=ue(wJ,CJ,TJ,!1,null,null,null,null);const OJ=AJ.exports,EJ={...es,FormMultiColumn:fu};function MJ(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const $J={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",Uu),t.component("FormImage",Qn),t.component("FormLoop",Kn),t.component("FormMultiColumn",fu),t.component("FormNestedScreen",Jn),t.component("FormRecordList",Cl),t.component("Loop",Kx),t.component("MultiColumn",Jx),t.component("NewFormMultiColumn",Md),t.component("ScreenRenderer",GK),t.component("Task",Qx),t.component("VueFormBuilder",zb),t.component("VueFormRenderer",Fx),t.component("DefaultLoadingSpinner",Xx),t.use(te),t.component("FormButton",qi),t.component("FileUpload",vn),t.component("FileDownload",Js),t.component("FormAnalyticsChart",Xn),t.component("FormMaskedInput",Bi),t.use(_l),t.use(Pt),t.component("FormListTable",Zn);const e=new Pt.Store({modules:{globalErrorsModule:tk,undoRedoModule:vu}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return MJ(this).getDataReference(r,i)}}})}};function DJ(t,e){t.defaults.adapter=qv(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new yl({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}K.AddLoopRow=Uu,K.AnalyticsSelector=Eb,K.BasicSearch=rk,K.CollectionSelectList=zd,K.ColorSelect=mb,K.ColumnSetup=gb,K.ComputedProperties=uJ,K.ContainerColumns=vb,K.Currencies=Z9,K.CurrentPageProperty=tc,K.CustomCSS=hJ,K.DataFormatProperty=Yx,K.DataMapping=jd,K.DataReference=oh,K.DataTypeBooleanProperty=bK,K.DataTypeDateTimeProperty=Hx,K.DataTypeProperty=Gx,K.DataTypeWithoutDateProperty=vK,K.DefaultLoadingSpinner=Xx,K.DefaultValueEditor=Ld,K.DeviceDetector=ch,K.DeviceVisibility=Zc,K.EditOption=bb,K.FileDownload=Js,K.FileUpload=vn,K.FormAnalyticsChart=Xn,K.FormBuilderControls=yK,K.FormButton=qi,K.FormImage=Qn,K.FormInputMasked=Bi,K.FormListTable=Zn,K.FormLoop=Kn,K.FormMaskedInput=Bi,K.FormMultiselect=Nd,K.FormNestedScreen=Jn,K.FormRecordList=Cl,K.FormRecordListStatic=pb,K.FormRequests=Id,K.FormTasks=Pd,K.FormText=Tl,K.HasColorProperty=mn,K.ImageUpload=yb,K.ImageVariable=Sb,K.InputVariable=Rd,K.Json2Vue=rb,K.LabelSubmitButton=Ob,K.LabelSubmitButtonProperty=rv,K.LoadingSubmitButton=Ab,K.LoadingSubmitButtonProperty=tv,K.Loop=Kx,K.LoopInspector=xb,K.MultiColumn=Jx,K.MultipleUploadsCheckbox=Ib,K.MustacheHelper=Aa,K.NewFormMultiColumn=Md,K.OptionsList=kb,K.OutboundConfig=Fd,K.PageSelect=_b,K.RequiredCheckbox=Pb,K.ScreenBase=td,K.ScreenRendererError=$d,K.ScreenSelector=wb,K.SelectDataTypeMask=qd,K.Task=Qx,K.Tooltip=Jc,K.ValidationMsg=rl,K.ValidationSelect=Tb,K.VariableNameGenerator=Db,K.VisibilityRule=iv,K.VueFormBuilder=zb,K.VueFormRenderer=Fx,K.WatchersForm=ik,K.WatchersList=ak,K.WatchersPopup=OJ,K.WatchersSynchronous=Zx,K.accordions=$b,K.bgcolorProperty=ui,K.buttonLabelProperty=Jg,K.buttonTypeEvent=Xg,K.buttonVariantStyleProperty=ed,K.canOpenJsonFile=E_,K.colorProperty=ci,K.computedFields=ah,K.dataSourceValues=Hr,K.dataSources=ts,K.datatable=rc,K.default=$J,K.defaultValueProperty=Ln,K.defaultValues=Cw,K.deviceVisibilityProperty=wq,K.disabledProperty=Xc,K.focusErrors=ic,K.formTypes=rs,K.formWatchers=qE,K.getValidPath=Ec,K.globalErrorsModule=tk,K.globalProperties=G9,K.helperTextProperty=ya,K.initializeScreenCache=DJ,K.inspector=Mb,K.javascriptReservedKeywords=el,K.keyNameProperty=Qt,K.labelProperty=Br,K.multiselectApi=ib,K.mustacheEvaluation=Od,K.placeholderProperty=jn,K.readonlyProperty=tl,K.renderer=EJ,K.shouldElementBeVisible=ab,K.testing=sb,K.toggleStyleProperty=Zg,K.tooltipProperty=ev,K.validationRulesProperty=Ri,K.validators=il,K.watchers=av,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
348
+ | <mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`},"mf-value":{syntax:"<number> | <dimension> | <ident> | <ratio>"},"min()":{syntax:"min( <calc-sum># )"},"minmax()":{syntax:"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"named-color":{syntax:"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen"},"namespace-prefix":{syntax:"<ident>"},"ns-prefix":{syntax:"[ <ident-token> | '*' ]? '|'"},"number-percentage":{syntax:"<number> | <percentage>"},"numeric-figure-values":{syntax:"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{syntax:"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{syntax:"[ proportional-nums | tabular-nums ]"},nth:{syntax:"<an-plus-b> | even | odd"},"opacity()":{syntax:"opacity( [ <number-percentage> ] )"},"overflow-position":{syntax:"unsafe | safe"},"outline-radius":{syntax:"<length> | <percentage>"},"page-body":{syntax:"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{syntax:"<page-margin-box-type> '{' <declaration-list> '}'"},"page-margin-box-type":{syntax:"@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom"},"page-selector-list":{syntax:"[ <page-selector># ]?"},"page-selector":{syntax:"<pseudo-page>+ | <ident> <pseudo-page>*"},"path()":{syntax:"path( [ <fill-rule>, ]? <string> )"},"paint()":{syntax:"paint( <ident>, <declaration-value>? )"},"perspective()":{syntax:"perspective( <length> )"},"polygon()":{syntax:"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},position:{syntax:"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pseudo-class-selector":{syntax:"':' <ident-token> | ':' <function-token> <any-value> ')'"},"pseudo-element-selector":{syntax:"':' <pseudo-class-selector>"},"pseudo-page":{syntax:": [ left | right | first | blank ]"},quote:{syntax:"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{syntax:"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"relative-selector":{syntax:"<combinator>? <complex-selector>"},"relative-selector-list":{syntax:"<relative-selector>#"},"relative-size":{syntax:"larger | smaller"},"repeat-style":{syntax:"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{syntax:"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"repeating-radial-gradient()":{syntax:"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"rgb()":{syntax:"rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"},"rgba()":{syntax:"rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"},"rotate()":{syntax:"rotate( [ <angle> | <zero> ] )"},"rotate3d()":{syntax:"rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )"},"rotateX()":{syntax:"rotateX( [ <angle> | <zero> ] )"},"rotateY()":{syntax:"rotateY( [ <angle> | <zero> ] )"},"rotateZ()":{syntax:"rotateZ( [ <angle> | <zero> ] )"},"saturate()":{syntax:"saturate( <number-percentage> )"},"scale()":{syntax:"scale( <number> , <number>? )"},"scale3d()":{syntax:"scale3d( <number> , <number> , <number> )"},"scaleX()":{syntax:"scaleX( <number> )"},"scaleY()":{syntax:"scaleY( <number> )"},"scaleZ()":{syntax:"scaleZ( <number> )"},"self-position":{syntax:"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{syntax:"<length-percentage> | closest-side | farthest-side"},"skew()":{syntax:"skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )"},"skewX()":{syntax:"skewX( [ <angle> | <zero> ] )"},"skewY()":{syntax:"skewY( [ <angle> | <zero> ] )"},"sepia()":{syntax:"sepia( <number-percentage> )"},shadow:{syntax:"inset? && <length>{2,4} && <color>?"},"shadow-t":{syntax:"[ <length>{2,3} && <color>? ]"},shape:{syntax:"rect(<top>, <right>, <bottom>, <left>)"},"shape-box":{syntax:"<box> | margin-box"},"side-or-corner":{syntax:"[ left | right ] || [ top | bottom ]"},"single-animation":{syntax:"<time> || <timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state> || [ none | <keyframes-name> ]"},"single-animation-direction":{syntax:"normal | reverse | alternate | alternate-reverse"},"single-animation-fill-mode":{syntax:"none | forwards | backwards | both"},"single-animation-iteration-count":{syntax:"infinite | <number>"},"single-animation-play-state":{syntax:"running | paused"},"single-transition":{syntax:"[ none | <single-transition-property> ] || <time> || <timing-function> || <time>"},"single-transition-property":{syntax:"all | <custom-ident>"},size:{syntax:"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}"},"step-position":{syntax:"jump-start | jump-end | jump-none | jump-both | start | end"},"step-timing-function":{syntax:"step-start | step-end | steps(<integer>[, <step-position>]?)"},"subclass-selector":{syntax:"<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"},"supports-condition":{syntax:"not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"},"supports-in-parens":{syntax:"( <supports-condition> ) | <supports-feature> | <general-enclosed>"},"supports-feature":{syntax:"<supports-decl> | <supports-selector-fn>"},"supports-decl":{syntax:"( <declaration> )"},"supports-selector-fn":{syntax:"selector( <complex-selector> )"},symbol:{syntax:"<string> | <image> | <custom-ident>"},target:{syntax:"<target-counter()> | <target-counters()> | <target-text()>"},"target-counter()":{syntax:"target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )"},"target-counters()":{syntax:"target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )"},"target-text()":{syntax:"target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )"},"time-percentage":{syntax:"<time> | <percentage>"},"timing-function":{syntax:"linear | <cubic-bezier-timing-function> | <step-timing-function>"},"track-breadth":{syntax:"<length-percentage> | <flex> | min-content | max-content | auto"},"track-list":{syntax:"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?"},"track-repeat":{syntax:"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )"},"track-size":{syntax:"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )"},"transform-function":{syntax:"<matrix()> | <translate()> | <translateX()> | <translateY()> | <scale()> | <scaleX()> | <scaleY()> | <rotate()> | <skew()> | <skewX()> | <skewY()> | <matrix3d()> | <translate3d()> | <translateZ()> | <scale3d()> | <scaleZ()> | <rotate3d()> | <rotateX()> | <rotateY()> | <rotateZ()> | <perspective()>"},"transform-list":{syntax:"<transform-function>+"},"translate()":{syntax:"translate( <length-percentage> , <length-percentage>? )"},"translate3d()":{syntax:"translate3d( <length-percentage> , <length-percentage> , <length> )"},"translateX()":{syntax:"translateX( <length-percentage> )"},"translateY()":{syntax:"translateY( <length-percentage> )"},"translateZ()":{syntax:"translateZ( <length> )"},"type-or-unit":{syntax:"string | color | url | integer | number | length | angle | time | frequency | cap | ch | em | ex | ic | lh | rlh | rem | vb | vi | vw | vh | vmin | vmax | mm | Q | cm | in | pt | pc | px | deg | grad | rad | turn | ms | s | Hz | kHz | %"},"type-selector":{syntax:"<wq-name> | <ns-prefix>? '*'"},"var()":{syntax:"var( <custom-property-name> , <declaration-value>? )"},"viewport-length":{syntax:"auto | <length-percentage>"},"wq-name":{syntax:"<ns-prefix>? <ident-token>"}},pG={atrules:{charset:{prelude:"<string>"},"font-face":{descriptors:{"unicode-range":{comment:"replaces <unicode-range>, an old production name",syntax:"<urange>#"}}}},properties:{"-moz-background-clip":{comment:"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"padding | border"},"-moz-border-radius-bottomleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius",syntax:"<'border-bottom-left-radius'>"},"-moz-border-radius-bottomright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-border-radius-topleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius",syntax:"<'border-top-left-radius'>"},"-moz-border-radius-topright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-control-character-visibility":{comment:"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588",syntax:"visible | hidden"},"-moz-osx-font-smoothing":{comment:"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | grayscale"},"-moz-user-select":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"none | text | all | -moz-none"},"-ms-flex-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"start | end | center | baseline | stretch"},"-ms-flex-item-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack",syntax:"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-shrink'>"},"-ms-flex-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack",syntax:"start | end | center | justify | distribute"},"-ms-flex-order":{comment:"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx",syntax:"<integer>"},"-ms-flex-positive":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-grow'>"},"-ms-flex-preferred-size":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-basis'>"},"-ms-interpolation-mode":{comment:"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx",syntax:"nearest-neighbor | bicubic"},"-ms-grid-column-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx",syntax:"start | end | center | stretch"},"-ms-grid-row-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx",syntax:"start | end | center | stretch"},"-ms-hyphenate-limit-last":{comment:"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits",syntax:"none | always | column | page | spread"},"-webkit-appearance":{comment:"webkit specific keywords",references:["http://css-infos.net/property/-webkit-appearance"],syntax:"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"},"-webkit-background-clip":{comment:"https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"[ <box> | border | padding | content | text ]#"},"-webkit-column-break-after":{comment:"added, http://help.dottoro.com/lcrthhhv.php",syntax:"always | auto | avoid"},"-webkit-column-break-before":{comment:"added, http://help.dottoro.com/lcxquvkf.php",syntax:"always | auto | avoid"},"-webkit-column-break-inside":{comment:"added, http://help.dottoro.com/lclhnthl.php",syntax:"always | auto | avoid"},"-webkit-font-smoothing":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{comment:"missed",references:["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],syntax:"economy | exact"},"-webkit-text-security":{comment:"missed; http://help.dottoro.com/lcbkewgt.php",syntax:"none | circle | disc | square"},"-webkit-user-drag":{comment:"missed; http://help.dottoro.com/lcbixvwm.php",syntax:"none | element | auto"},"-webkit-user-select":{comment:"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"auto | none | text | all"},"alignment-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],syntax:"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],syntax:"baseline | sub | super | <svg-length>"},behavior:{comment:"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx",syntax:"<url>+"},"clip-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],syntax:"nonzero | evenodd"},cue:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'cue-before'> <'cue-after'>?"},"cue-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},"cue-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},cursor:{comment:"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out",references:["https://www.sitepoint.com/css3-cursor-styles/"],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"},display:{comment:"extended with -ms-flexbox",syntax:"| <-non-standard-display>"},position:{comment:"extended with -webkit-sticky",syntax:"| -webkit-sticky"},"dominant-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],syntax:"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{comment:"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality",references:["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],syntax:"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},fill:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<paint>"},"fill-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<number-zero-one>"},"fill-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"nonzero | evenodd"},filter:{comment:"extend with IE legacy syntaxes",syntax:"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],syntax:"<angle>"},"glyph-orientation-vertical":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],syntax:"<angle>"},kerning:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#KerningProperty"],syntax:"auto | <svg-length>"},"letter-spacing":{comment:"fix syntax <length> -> <length-percentage>",references:["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],syntax:"normal | <length-percentage>"},marker:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-end":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-mid":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-start":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"max-width":{comment:"fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width",syntax:"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},width:{comment:"per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)",syntax:"| fit-content | -moz-fit-content | -webkit-fit-content"},"min-width":{comment:"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},overflow:{comment:"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"| <-non-standard-overflow>"},pause:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'pause-before'> <'pause-after'>?"},"pause-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"pause-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},rest:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'rest-before'> <'rest-after'>?"},"rest-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"shape-rendering":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#ShapeRenderingPropert"],syntax:"auto | optimizeSpeed | crispEdges | geometricPrecision"},src:{comment:"added @font-face's src property https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src",syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#"},speak:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | none | normal"},"speak-as":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]"},stroke:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<paint>"},"stroke-dasharray":{comment:"added SVG property; a list of comma and/or white space separated <length>s and <percentage>s",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"none | [ <svg-length>+ ]#"},"stroke-dashoffset":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"stroke-linecap":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"butt | round | square"},"stroke-linejoin":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"miter | round | bevel"},"stroke-miterlimit":{comment:"added SVG property (<miterlimit> = <number-one-or-greater>) ",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-one-or-greater>"},"stroke-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-zero-one>"},"stroke-width":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"text-anchor":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#TextAlignmentProperties"],syntax:"start | middle | end"},"unicode-bidi":{comment:"added prefixed keywords https://developer.mozilla.org/en-US/docs/Web/CSS/unicode-bidi",syntax:"| -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"},"unicode-range":{comment:"added missed property https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range",syntax:"<urange>#"},"voice-balance":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<number> | left | center | right | leftwards | rightwards"},"voice-duration":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | <time>"},"voice-family":{comment:"<name> -> <family-name>, https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve"},"voice-pitch":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-range":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-rate":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>"},"voice-stress":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | strong | moderate | none | reduced"},"voice-volume":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]"},"writing-mode":{comment:"extend with SVG keywords",syntax:"| <svg-writing-mode>"}},syntaxes:{"-legacy-gradient":{comment:"added collection of legacy gradient syntaxes",syntax:"<-webkit-gradient()> | <-legacy-linear-gradient> | <-legacy-repeating-linear-gradient> | <-legacy-radial-gradient> | <-legacy-repeating-radial-gradient>"},"-legacy-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-repeating-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-linear-gradient-arguments":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"[ <angle> | <side-or-corner> ]? , <color-stop-list>"},"-legacy-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-repeating-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-radial-gradient-arguments":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"},"-legacy-radial-gradient-size":{comment:"before a standard it contains 2 extra keywords (`contain` and `cover`) https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltsize",syntax:"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"},"-legacy-radial-gradient-shape":{comment:"define to double sure it doesn't extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape",syntax:"circle | ellipse"},"-non-standard-font":{comment:"non standard fonts",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body"},"-non-standard-color":{comment:"non standard colors",references:["http://cssdot.ru/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA_CSS/color-i305.html","https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Mozilla_Color_Preference_Extensions"],syntax:"-moz-ButtonDefault | -moz-ButtonHoverFace | -moz-ButtonHoverText | -moz-CellHighlight | -moz-CellHighlightText | -moz-Combobox | -moz-ComboboxText | -moz-Dialog | -moz-DialogText | -moz-dragtargetzone | -moz-EvenTreeRow | -moz-Field | -moz-FieldText | -moz-html-CellHighlight | -moz-html-CellHighlightText | -moz-mac-accentdarkestshadow | -moz-mac-accentdarkshadow | -moz-mac-accentface | -moz-mac-accentlightesthighlight | -moz-mac-accentlightshadow | -moz-mac-accentregularhighlight | -moz-mac-accentregularshadow | -moz-mac-chrome-active | -moz-mac-chrome-inactive | -moz-mac-focusring | -moz-mac-menuselect | -moz-mac-menushadow | -moz-mac-menutextselect | -moz-MenuHover | -moz-MenuHoverText | -moz-MenuBarText | -moz-MenuBarHoverText | -moz-nativehyperlinktext | -moz-OddTreeRow | -moz-win-communicationstext | -moz-win-mediatext | -moz-activehyperlinktext | -moz-default-background-color | -moz-default-color | -moz-hyperlinktext | -moz-visitedhyperlinktext | -webkit-activelink | -webkit-focus-ring-color | -webkit-link | -webkit-text"},"-non-standard-image-rendering":{comment:"non-standard keywords http://phrogz.net/tmp/canvas_image_zoom.html",syntax:"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast"},"-non-standard-overflow":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"-moz-scrollbars-none | -moz-scrollbars-horizontal | -moz-scrollbars-vertical | -moz-hidden-unscrollable"},"-non-standard-width":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"fill-available | min-intrinsic | intrinsic | -moz-available | -moz-fit-content | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content"},"-webkit-gradient()":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/ - TODO: simplify when after match algorithm improvement ( [, point, radius | , point] -> [, radius]? , point )",syntax:"-webkit-gradient( <-webkit-gradient-type>, <-webkit-gradient-point> [, <-webkit-gradient-point> | , <-webkit-gradient-radius>, <-webkit-gradient-point> ] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )"},"-webkit-gradient-color-stop":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )"},"-webkit-gradient-point":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]"},"-webkit-gradient-radius":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"<length> | <percentage>"},"-webkit-gradient-type":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"linear | radial"},"-webkit-mask-box-repeat":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"repeat | stretch | round"},"-webkit-mask-clip-style":{comment:"missed; there is no enough information about `-webkit-mask-clip` property, but looks like all those keywords are working",syntax:"border | border-box | padding | padding-box | content | content-box | text"},"-ms-filter-function-list":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function>+"},"-ms-filter-function":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function-progid> | <-ms-filter-function-legacy>"},"-ms-filter-function-progid":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"'progid:' [ <ident-token> '.' ]* [ <ident-token> | <function-token> <any-value>? ) ]"},"-ms-filter-function-legacy":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<ident-token> | <function-token> <any-value>? )"},"-ms-filter":{syntax:"<string>"},age:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"child | young | old"},"attr-name":{syntax:"<wq-name>"},"attr-fallback":{syntax:"<any-value>"},"border-radius":{comment:"missed, https://drafts.csswg.org/css-backgrounds-3/#the-border-radius",syntax:"<length-percentage>{1,2}"},bottom:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"content-list":{comment:"missed -> https://drafts.csswg.org/css-content/#typedef-content-list (document-url, <target> and leader() is omitted util stabilization)",syntax:"[ <string> | contents | <image> | <quote> | <target> | <leader()> | <attr()> | counter( <ident>, <'list-style-type'>? ) ]+"},"element()":{comment:"https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation",syntax:"element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"},"generic-voice":{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"[ <age>? <gender> <integer>? ]"},gender:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"male | female | neutral"},"generic-family":{comment:"added -apple-system",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"| -apple-system"},gradient:{comment:"added legacy syntaxes support",syntax:"| <-legacy-gradient>"},left:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"mask-image":{comment:"missed; https://drafts.fxtf.org/css-masking-1/#the-mask-image",syntax:"<mask-reference>#"},"name-repeat":{comment:"missed, and looks like obsolete, keep it as is since other property syntaxes should be changed too; https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-name-repeat",syntax:"repeat( [ <positive-integer> | auto-fill ], <line-names>+)"},"named-color":{comment:"added non standard color names",syntax:"| <-non-standard-color>"},paint:{comment:"used by SVG https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint",syntax:"none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke"},"page-size":{comment:"https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size",syntax:"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},ratio:{comment:"missed, https://drafts.csswg.org/mediaqueries-4/#typedef-ratio",syntax:"<integer> / <integer>"},right:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},shape:{comment:"missed spaces in function body and add backwards compatible syntax",syntax:"rect( <top>, <right>, <bottom>, <left> ) | rect( <top> <right> <bottom> <left> )"},"svg-length":{comment:"All coordinates and lengths in SVG can be specified with or without a unit identifier",references:["https://www.w3.org/TR/SVG11/coords.html#Units"],syntax:"<percentage> | <length> | <number>"},"svg-writing-mode":{comment:"SVG specific keywords (deprecated for CSS)",references:["https://developer.mozilla.org/en/docs/Web/CSS/writing-mode","https://www.w3.org/TR/SVG/text.html#WritingModeProperty"],syntax:"lr-tb | rl-tb | tb-rl | lr | rl | tb"},top:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"track-group":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"'(' [ <string>* <track-minmax> <string>* ]+ ')' [ '[' <positive-integer> ']' ]? | <track-minmax>"},"track-list-v0":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"[ <string>* <track-group> <string>* ]+ | none"},"track-minmax":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"minmax( <track-breadth> , <track-breadth> ) | auto | <track-breadth> | fit-content"},x:{comment:"missed; not sure we should add it, but no others except `cursor` is using it so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},y:{comment:"missed; not sure we should add it, but no others except `cursor` is using so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},declaration:{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"<ident-token> : <declaration-value>? [ '!' important ]?"},"declaration-list":{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"[ <declaration>? ';' ]* <declaration>?"},url:{comment:"https://drafts.csswg.org/css-values-4/#urls",syntax:"url( <string> <url-modifier>* ) | <url-token>"},"url-modifier":{comment:"https://drafts.csswg.org/css-values-4/#typedef-url-modifier",syntax:"<ident> | <function-token> <any-value> )"},"number-zero-one":{syntax:"<number [0,1]>"},"number-one-or-greater":{syntax:"<number [1,∞]>"},"positive-integer":{syntax:"<integer [0,∞]>"},"-non-standard-display":{syntax:"-ms-inline-flexbox | -ms-grid | -ms-inline-grid | -webkit-flex | -webkit-inline-flex | -webkit-box | -webkit-inline-box | -moz-inline-stack | -moz-box | -moz-inline-box"}}},fG=uG,hG=cG,mG=dG,Bp=pG,NS=/^\s*\|\s*/;function gG(t){const e=Object.create(null);for(const r in t){const i=t[r];let a=null;if(i.descriptors){a=Object.create(null);for(const n in i.descriptors)a[n]=i.descriptors[n].syntax}e[r.substr(1)]={prelude:i.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:a}}return e}function Wp(t,e){const r={};for(const i in t)r[i]=t[i].syntax||t[i];for(const i in e)i in t?e[i].syntax?r[i]=NS.test(e[i].syntax)?r[i]+" "+e[i].syntax.trim():e[i].syntax:delete r[i]:e[i].syntax&&(r[i]=e[i].syntax.replace(NS,""));return r}function RS(t){const e={};for(const r in t)e[r]=t[r].syntax;return e}function vG(t,e){const r={};for(const i in t){const a=e[i]&&e[i].descriptors||null;r[i]={prelude:i in e&&"prelude"in e[i]?e[i].prelude:t[i].prelude||null,descriptors:t[i].descriptors?Wp(t[i].descriptors,a||{}):a&&RS(a)}}for(const i in e)hasOwnProperty.call(t,i)||(r[i]={prelude:e[i].prelude||null,descriptors:e[i].descriptors&&RS(e[i].descriptors)});return r}var bG={types:Wp(mG,Bp.syntaxes),atrules:vG(gG(fG),Bp.atrules),properties:Wp(hG,Bp.properties)},FS=ce.cmpChar,qS=ce.isDigit,Ss=ce.TYPE,BS=Ss.WhiteSpace,WS=Ss.Comment,Vp=Ss.Ident,ti=Ss.Number,yG=Ss.Dimension,$r=43,Rt=45,iu=110,Ui=!0,SG=!1;function au(t,e){var r=this.scanner.tokenStart+t,i=this.scanner.source.charCodeAt(r);for((i===$r||i===Rt)&&(e&&this.error("Number sign is not allowed"),r++);r<this.scanner.tokenEnd;r++)qS(this.scanner.source.charCodeAt(r))||this.error("Integer is expected",r)}function Wa(t){return au.call(this,0,t)}function yi(t,e){if(!FS(this.scanner.source,this.scanner.tokenStart+t,e)){var r="";switch(e){case iu:r="N is expected";break;case Rt:r="HyphenMinus is expected";break}this.error(r,this.scanner.tokenStart+t)}}function Up(){for(var t=0,e=0,r=this.scanner.tokenType;r===BS||r===WS;)r=this.scanner.lookupType(++t);if(r!==ti)if(this.scanner.isDelim($r,t)||this.scanner.isDelim(Rt,t)){e=this.scanner.isDelim($r,t)?$r:Rt;do r=this.scanner.lookupType(++t);while(r===BS||r===WS);r!==ti&&(this.scanner.skip(t),Wa.call(this,Ui))}else return null;return t>0&&this.scanner.skip(t),e===0&&(r=this.scanner.source.charCodeAt(this.scanner.tokenStart),r!==$r&&r!==Rt&&this.error("Number sign is expected")),Wa.call(this,e!==0),e===Rt?"-"+this.consume(ti):this.consume(ti)}var xG={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var t=this.scanner.tokenStart,e=null,r=null;if(this.scanner.tokenType===ti)Wa.call(this,SG),r=this.consume(ti);else if(this.scanner.tokenType===Vp&&FS(this.scanner.source,this.scanner.tokenStart,Rt))switch(e="-1",yi.call(this,1,iu),this.scanner.getTokenLength()){case 2:this.scanner.next(),r=Up.call(this);break;case 3:yi.call(this,2,Rt),this.scanner.next(),this.scanner.skipSC(),Wa.call(this,Ui),r="-"+this.consume(ti);break;default:yi.call(this,2,Rt),au.call(this,3,Ui),this.scanner.next(),r=this.scanner.substrToCursor(t+2)}else if(this.scanner.tokenType===Vp||this.scanner.isDelim($r)&&this.scanner.lookupType(1)===Vp){var i=0;switch(e="1",this.scanner.isDelim($r)&&(i=1,this.scanner.next()),yi.call(this,0,iu),this.scanner.getTokenLength()){case 1:this.scanner.next(),r=Up.call(this);break;case 2:yi.call(this,1,Rt),this.scanner.next(),this.scanner.skipSC(),Wa.call(this,Ui),r="-"+this.consume(ti);break;default:yi.call(this,1,Rt),au.call(this,2,Ui),this.scanner.next(),r=this.scanner.substrToCursor(t+i+1)}}else if(this.scanner.tokenType===yG){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=a===$r||a===Rt,n=this.scanner.tokenStart+i;n<this.scanner.tokenEnd&&qS(this.scanner.source.charCodeAt(n));n++);n===this.scanner.tokenStart+i&&this.error("Integer is expected",this.scanner.tokenStart+i),yi.call(this,n-this.scanner.tokenStart,iu),e=this.scanner.source.substring(t,n),n+1===this.scanner.tokenEnd?(this.scanner.next(),r=Up.call(this)):(yi.call(this,n-this.scanner.tokenStart+1,Rt),n+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),Wa.call(this,Ui),r="-"+this.consume(ti)):(au.call(this,n-this.scanner.tokenStart+2,Ui),this.scanner.next(),r=this.scanner.substrToCursor(n+1)))}else this.error();return e!==null&&e.charCodeAt(0)===$r&&(e=e.substr(1)),r!==null&&r.charCodeAt(0)===$r&&(r=r.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.scanner.tokenStart),a:e,b:r}},generate:function(t){var e=t.a!==null&&t.a!==void 0,r=t.b!==null&&t.b!==void 0;e?(this.chunk(t.a==="+1"?"+n":t.a==="1"?"n":t.a==="-1"?"-n":t.a+"n"),r&&(r=String(t.b),r.charAt(0)==="-"||r.charAt(0)==="+"?(this.chunk(r.charAt(0)),this.chunk(r.substr(1))):(this.chunk("+"),this.chunk(r)))):this.chunk(String(t.b))}},kG=ce,nu=kG.TYPE,_G=nu.WhiteSpace,Gp=nu.Semicolon,VS=nu.LeftCurlyBracket,wG=nu.Delim,CG=33;function TG(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===_G?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function US(){return 0}function AG(t){return t===VS?1:0}function OG(t){return t===VS||t===Gp?1:0}function EG(t,e,r){return t===wG&&e.charCodeAt(r)===CG||t===Gp?1:0}function MG(t){return t===Gp?2:0}var Gi={name:"Raw",structure:{value:String},parse:function(t,e,r){var i=this.scanner.getTokenStart(t),a;return this.scanner.skip(this.scanner.getRawLength(t,e||US)),r&&this.scanner.tokenStart>i?a=TG.call(this):a=this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(i,a),value:this.scanner.source.substring(i,a)}},generate:function(t){this.chunk(t.value)},mode:{default:US,leftCurlyBracket:AG,leftCurlyBracketOrSemicolon:OG,exclamationMarkOrSemicolon:EG,semicolonIncluded:MG}},su=ce.TYPE,$G=Gi.mode,GS=su.AtKeyword,HS=su.Semicolon,Hp=su.LeftCurlyBracket,DG=su.RightCurlyBracket;function YS(t){return this.Raw(t,$G.leftCurlyBracketOrSemicolon,!0)}function PG(){for(var t=1,e;e=this.scanner.lookupType(t);t++){if(e===DG)return!0;if(e===Hp||e===GS)return!1}return!1}var IG={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var t=this.scanner.tokenStart,e,r,i=null,a=null;switch(this.eat(GS),e=this.scanner.substrToCursor(t+1),r=e.toLowerCase(),this.scanner.skipSC(),this.scanner.eof===!1&&this.scanner.tokenType!==Hp&&this.scanner.tokenType!==HS&&(this.parseAtrulePrelude?(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),YS),i.type==="AtrulePrelude"&&i.children.head===null&&(i=null)):i=YS.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case HS:this.scanner.next();break;case Hp:this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this):a=this.Block(PG.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.scanner.tokenStart),name:e,prelude:i,block:a}},generate:function(t){this.chunk("@"),this.chunk(t.name),t.prelude!==null&&(this.chunk(" "),this.node(t.prelude)),t.block?this.node(t.block):this.chunk(";")},walkContext:"atrule"},QS=ce.TYPE,zG=QS.Semicolon,jG=QS.LeftCurlyBracket,LG={name:"AtrulePrelude",structure:{children:[[]]},parse:function(t){var e=null;return t!==null&&(t=t.toLowerCase()),this.scanner.skipSC(),this.atrule.hasOwnProperty(t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),this.scanner.eof!==!0&&this.scanner.tokenType!==jG&&this.scanner.tokenType!==zG&&this.error("Semicolon or block is expected"),e===null&&(e=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t)},walkContext:"atrulePrelude"},xs=ce.TYPE,ks=xs.Ident,NG=xs.String,RG=xs.Colon,FG=xs.LeftSquareBracket,KS=xs.RightSquareBracket,qG=36,JS=42,ou=61,BG=94,Yp=124,WG=126;function VG(){this.scanner.eof&&this.error("Unexpected end of input");var t=this.scanner.tokenStart,e=!1,r=!0;return this.scanner.isDelim(JS)?(e=!0,r=!1,this.scanner.next()):this.scanner.isDelim(Yp)||this.eat(ks),this.scanner.isDelim(Yp)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==ou?(this.scanner.next(),this.eat(ks)):e&&this.error("Identifier is expected",this.scanner.tokenEnd):e&&this.error("Vertical line is expected"),r&&this.scanner.tokenType===RG&&(this.scanner.next(),this.eat(ks)),{type:"Identifier",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}}function UG(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(t);return e!==ou&&e!==WG&&e!==BG&&e!==qG&&e!==JS&&e!==Yp&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),e!==ou&&(this.scanner.isDelim(ou)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(t)}var GG={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var t=this.scanner.tokenStart,e,r=null,i=null,a=null;return this.eat(FG),this.scanner.skipSC(),e=VG.call(this),this.scanner.skipSC(),this.scanner.tokenType!==KS&&(this.scanner.tokenType!==ks&&(r=UG.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===NG?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===ks&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(KS),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:r,value:i,flags:a}},generate:function(t){var e=" ";this.chunk("["),this.node(t.name),t.matcher!==null&&(this.chunk(t.matcher),t.value!==null&&(this.node(t.value),t.value.type==="String"&&(e=""))),t.flags!==null&&(this.chunk(e),this.chunk(t.flags)),this.chunk("]")}},Va=ce.TYPE,HG=Gi.mode,YG=Va.WhiteSpace,QG=Va.Comment,ZS=Va.Semicolon,KG=Va.AtKeyword,JG=Va.LeftCurlyBracket,XS=Va.RightCurlyBracket;function ex(t){return this.Raw(t,null,!0)}function ZG(){return this.parseWithFallback(this.Rule,ex)}function tx(t){return this.Raw(t,HG.semicolonIncluded,!0)}function XG(){if(this.scanner.tokenType===ZS)return tx.call(this,this.scanner.tokenIndex);var t=this.parseWithFallback(this.Declaration,tx);return this.scanner.tokenType===ZS&&this.scanner.next(),t}var eH={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(t){var e=t?XG:ZG,r=this.scanner.tokenStart,i=this.createList();this.eat(JG);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case XS:break e;case YG:case QG:this.scanner.next();break;case KG:i.push(this.parseWithFallback(this.Atrule,ex));break;default:i.push(e.call(this))}return this.scanner.eof||this.eat(XS),{type:"Block",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("{"),this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")}),this.chunk("}")},walkContext:"block"},rx=ce.TYPE,tH=rx.LeftSquareBracket,rH=rx.RightSquareBracket,iH={name:"Brackets",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(tH),i=t.call(this,e),this.scanner.eof||this.eat(rH),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("["),this.children(t),this.chunk("]")}},aH=ce.TYPE.CDC,nH={name:"CDC",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(aH),{type:"CDC",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("-->")}},sH=ce.TYPE.CDO,oH={name:"CDO",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(sH),{type:"CDO",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("<!--")}},lH=ce.TYPE,uH=lH.Ident,cH=46,dH={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(cH)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(uH)}},generate:function(t){this.chunk("."),this.chunk(t.name)}},pH=ce.TYPE,fH=pH.Ident,hH=43,ix=47,mH=62,gH=126,vH={name:"Combinator",structure:{name:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case mH:case hH:case gH:this.scanner.next();break;case ix:this.scanner.next(),(this.scanner.tokenType!==fH||this.scanner.lookupValue(0,"deep")===!1)&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(ix)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},bH=ce.TYPE,yH=bH.Comment,SH=42,xH=47,kH={name:"Comment",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenEnd;return this.eat(yH),e-t+2>=2&&this.scanner.source.charCodeAt(e-2)===SH&&this.scanner.source.charCodeAt(e-1)===xH&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t+2,e)}},generate:function(t){this.chunk("/*"),this.chunk(t.value),this.chunk("*/")}},_H=tp.isCustomProperty,Ua=ce.TYPE,ax=Gi.mode,nx=Ua.Ident,sx=Ua.Hash,wH=Ua.Colon,ox=Ua.Semicolon,lx=Ua.Delim,CH=Ua.WhiteSpace,ux=33,TH=35,AH=36,OH=38,EH=42,MH=43,cx=47;function $H(t){return this.Raw(t,ax.exclamationMarkOrSemicolon,!0)}function DH(t){return this.Raw(t,ax.exclamationMarkOrSemicolon,!1)}function PH(){var t=this.scanner.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==ox&&this.scanner.isDelim(ux)===!1&&this.scanner.isBalanceEdge(t)===!1&&this.error(),e}var IH={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenIndex,r=zH.call(this),i=_H(r),a=i?this.parseCustomProperty:this.parseValue,n=i?DH:$H,s=!1,o;this.scanner.skipSC(),this.eat(wH);const u=this.scanner.tokenIndex;if(i||this.scanner.skipSC(),a?o=this.parseWithFallback(PH,n):o=n.call(this,this.scanner.tokenIndex),i&&o.type==="Value"&&o.children.isEmpty()){for(let l=u-this.scanner.tokenIndex;l<=0;l++)if(this.scanner.lookupType(l)===CH){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.scanner.isDelim(ux)&&(s=jH.call(this),this.scanner.skipSC()),this.scanner.eof===!1&&this.scanner.tokenType!==ox&&this.scanner.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:s,property:r,value:o}},generate:function(t){this.chunk(t.property),this.chunk(":"),this.node(t.value),t.important&&this.chunk(t.important===!0?"!important":"!"+t.important)},walkContext:"declaration"};function zH(){var t=this.scanner.tokenStart;if(this.scanner.tokenType===lx)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case EH:case AH:case MH:case TH:case OH:this.scanner.next();break;case cx:this.scanner.next(),this.scanner.isDelim(cx)&&this.scanner.next();break}return this.scanner.tokenType===sx?this.eat(sx):this.eat(nx),this.scanner.substrToCursor(t)}function jH(){this.eat(lx),this.scanner.skipSC();var t=this.consume(nx);return t==="important"?!0:t}var Qp=ce.TYPE,LH=Gi.mode,NH=Qp.WhiteSpace,RH=Qp.Comment,FH=Qp.Semicolon;function qH(t){return this.Raw(t,LH.semicolonIncluded,!0)}var BH={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case NH:case RH:case FH:this.scanner.next();break;default:t.push(this.parseWithFallback(this.Declaration,qH))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")})}},WH=as.consumeNumber,VH=ce.TYPE,UH=VH.Dimension,GH={name:"Dimension",structure:{value:String,unit:String},parse:function(){var t=this.scanner.tokenStart,e=WH(this.scanner.source,t);return this.eat(UH),{type:"Dimension",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e),unit:this.scanner.source.substring(e,this.scanner.tokenStart)}},generate:function(t){this.chunk(t.value),this.chunk(t.unit)}},HH=ce.TYPE,YH=HH.RightParenthesis,QH={name:"Function",structure:{name:String,children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=this.consumeFunctionName(),a=i.toLowerCase(),n;return n=e.hasOwnProperty(a)?e[a].call(this,e):t.call(this,e),this.scanner.eof||this.eat(YH),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:i,children:n}},generate:function(t){this.chunk(t.name),this.chunk("("),this.children(t),this.chunk(")")},walkContext:"function"},KH=ce.TYPE,JH=KH.Hash,ZH={name:"Hash",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(JH),{type:"Hash",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.value)}},XH=ce.TYPE,e7=XH.Ident,t7={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(e7)}},generate:function(t){this.chunk(t.name)}},r7=ce.TYPE,i7=r7.Hash,a7={name:"IdSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(i7),{type:"IdSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.name)}},Hi=ce.TYPE,dx=Hi.Ident,n7=Hi.Number,s7=Hi.Dimension,o7=Hi.LeftParenthesis,px=Hi.RightParenthesis,l7=Hi.Colon,u7=Hi.Delim,c7={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var t=this.scanner.tokenStart,e,r=null;if(this.eat(o7),this.scanner.skipSC(),e=this.consume(dx),this.scanner.skipSC(),this.scanner.tokenType!==px){switch(this.eat(l7),this.scanner.skipSC(),this.scanner.tokenType){case n7:this.lookupNonWSType(1)===u7?r=this.Ratio():r=this.Number();break;case s7:r=this.Dimension();break;case dx:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(px),{type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:r}},generate:function(t){this.chunk("("),this.chunk(t.name),t.value!==null&&(this.chunk(":"),this.node(t.value)),this.chunk(")")}},lu=ce.TYPE,d7=lu.WhiteSpace,p7=lu.Comment,f7=lu.Ident,h7=lu.LeftParenthesis,m7={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var t=this.createList(),e=null,r=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case p7:this.scanner.next();continue;case d7:r=this.WhiteSpace();continue;case f7:e=this.Identifier();break;case h7:e=this.MediaFeature();break;default:break e}r!==null&&(t.push(r),r=null),t.push(e)}return e===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},g7=ce.TYPE.Comma,v7={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(t){var e=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(e.push(this.MediaQuery(t)),this.scanner.tokenType===g7);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t,function(){this.chunk(",")})}},b7={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(t){this.scanner.skipSC();var e=this.scanner.tokenStart,r=e,i=null,a;return this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?a=this.Identifier():a=this.AnPlusB(),this.scanner.skipSC(),t&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),i=this.SelectorList(),this.needPositions&&(r=this.getLastListNode(i.children).loc.end.offset)):this.needPositions&&(r=a.loc.end.offset),{type:"Nth",loc:this.getLocation(e,r),nth:a,selector:i}},generate:function(t){this.node(t.nth),t.selector!==null&&(this.chunk(" of "),this.node(t.selector))}},y7=ce.TYPE.Number,S7={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(y7)}},generate:function(t){this.chunk(t.value)}},x7={name:"Operator",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},fx=ce.TYPE,k7=fx.LeftParenthesis,_7=fx.RightParenthesis,w7={name:"Parentheses",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(k7),i=t.call(this,e),this.scanner.eof||this.eat(_7),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("("),this.children(t),this.chunk(")")}},C7=as.consumeNumber,T7=ce.TYPE,A7=T7.Percentage,O7={name:"Percentage",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=C7(this.scanner.source,t);return this.eat(A7),{type:"Percentage",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e)}},generate:function(t){this.chunk(t.value),this.chunk("%")}},uu=ce.TYPE,E7=uu.Ident,M7=uu.Function,$7=uu.Colon,D7=uu.RightParenthesis,P7={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat($7),this.scanner.tokenType===M7?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(D7)):r=this.consume(E7),{type:"PseudoClassSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk(":"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},cu=ce.TYPE,I7=cu.Ident,z7=cu.Function,hx=cu.Colon,j7=cu.RightParenthesis,L7={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(hx),this.eat(hx),this.scanner.tokenType===z7?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(j7)):r=this.consume(I7),{type:"PseudoElementSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk("::"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},N7=ce.isDigit,mx=ce.TYPE,R7=mx.Number,F7=mx.Delim,q7=47,B7=46;function gx(){this.scanner.skipWS();for(var t=this.consume(R7),e=0;e<t.length;e++){var r=t.charCodeAt(e);!N7(r)&&r!==B7&&this.error("Unsigned number is expected",this.scanner.tokenStart-t.length+e)}return Number(t)===0&&this.error("Zero number is not allowed",this.scanner.tokenStart-t.length),t}var W7={name:"Ratio",structure:{left:String,right:String},parse:function(){var t=this.scanner.tokenStart,e=gx.call(this),r;return this.scanner.skipWS(),this.scanner.isDelim(q7)||this.error("Solidus is expected"),this.eat(F7),r=gx.call(this),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:e,right:r}},generate:function(t){this.chunk(t.left),this.chunk("/"),this.chunk(t.right)}},V7=ce.TYPE,U7=Gi.mode,G7=V7.LeftCurlyBracket;function vx(t){return this.Raw(t,U7.leftCurlyBracket,!0)}function H7(){var t=this.SelectorList();return t.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==G7&&this.error(),t}var Y7={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var t=this.scanner.tokenIndex,e=this.scanner.tokenStart,r,i;return this.parseRulePrelude?r=this.parseWithFallback(H7,vx):r=vx.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.scanner.tokenStart),prelude:r,block:i}},generate:function(t){this.node(t.prelude),this.node(t.block)},walkContext:"rule"},Q7={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},K7=ce.TYPE,J7=K7.Comma,Z7={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;){if(t.push(this.Selector()),this.scanner.tokenType===J7){this.scanner.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(){this.chunk(",")})},walkContext:"selector"},X7=ce.TYPE.String,eY={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(X7)}},generate:function(t){this.chunk(t.value)}},_s=ce.TYPE,tY=_s.WhiteSpace,rY=_s.Comment,iY=_s.AtKeyword,aY=_s.CDO,nY=_s.CDC,sY=33;function bx(t){return this.Raw(t,null,!1)}var oY={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var t=this.scanner.tokenStart,e=this.createList(),r;!this.scanner.eof;){switch(this.scanner.tokenType){case tY:this.scanner.next();continue;case rY:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==sY){this.scanner.next();continue}r=this.Comment();break;case aY:r=this.CDO();break;case nY:r=this.CDC();break;case iY:r=this.parseWithFallback(this.Atrule,bx);break;default:r=this.parseWithFallback(this.Rule,bx)}e.push(r)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)},walkContext:"stylesheet"},lY=ce.TYPE,uY=lY.Ident,cY=42,yx=124;function Kp(){this.scanner.tokenType!==uY&&this.scanner.isDelim(cY)===!1&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var dY={name:"TypeSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.isDelim(yx)?(this.scanner.next(),Kp.call(this)):(Kp.call(this),this.scanner.isDelim(yx)&&(this.scanner.next(),Kp.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},pY=ce.isHexDigit,Sx=ce.cmpChar,Jp=ce.TYPE,fY=ce.NAME,hY=Jp.Ident,xx=Jp.Number,kx=Jp.Dimension,du=43,_x=45,Zp=63,mY=117;function ws(t,e){for(var r=this.scanner.tokenStart+t,i=0;r<this.scanner.tokenEnd;r++){var a=this.scanner.source.charCodeAt(r);if(a===_x&&e&&i!==0)return ws.call(this,t+i+1,!1)===0&&this.error(),-1;pY(a)||this.error(e&&i!==0?"HyphenMinus"+(i<6?" or hex digit":"")+" is expected":i<6?"Hex digit is expected":"Unexpected input",r),++i>6&&this.error("Too many hex digits",r)}return this.scanner.next(),i}function pu(t){for(var e=0;this.scanner.isDelim(Zp);)++e>t&&this.error("Too many question marks"),this.scanner.next()}function Xp(t){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==t&&this.error(fY[t]+" is expected")}function gY(){var t=0;if(this.scanner.isDelim(du)){if(this.scanner.next(),this.scanner.tokenType===hY){t=ws.call(this,0,!0),t>0&&pu.call(this,6-t);return}if(this.scanner.isDelim(Zp)){this.scanner.next(),pu.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===xx){if(Xp.call(this,du),t=ws.call(this,1,!0),this.scanner.isDelim(Zp)){pu.call(this,6-t);return}if(this.scanner.tokenType===kx||this.scanner.tokenType===xx){Xp.call(this,_x),ws.call(this,1,!1);return}return}if(this.scanner.tokenType===kx){Xp.call(this,du),t=ws.call(this,1,!0),t>0&&pu.call(this,6-t);return}this.error()}var vY={name:"UnicodeRange",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return Sx(this.scanner.source,t,mY)||this.error("U is expected"),Sx(this.scanner.source,t+1,du)||this.error("Plus sign is expected"),this.scanner.next(),gY.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},wx=ce.isWhiteSpace,bY=ce.cmpStr,ef=ce.TYPE,Cx=ef.Function,Tx=ef.Url,yY=ef.RightParenthesis,SY={name:"Url",structure:{value:["String","Raw"]},parse:function(){var t=this.scanner.tokenStart,e;switch(this.scanner.tokenType){case Tx:for(var r=t+4,i=this.scanner.tokenEnd-1;r<i&&wx(this.scanner.source.charCodeAt(r));)r++;for(;r<i&&wx(this.scanner.source.charCodeAt(i-1));)i--;e={type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)},this.eat(Tx);break;case Cx:bY(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Cx),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(yY);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e}},generate:function(t){this.chunk("url"),this.chunk("("),this.node(t.value),this.chunk(")")}},xY={name:"Value",structure:{children:[[]]},parse:function(){var t=this.scanner.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)}},kY=ce.TYPE.WhiteSpace,_Y=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),wY={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(kY),_Y},generate:function(t){this.chunk(t.value)}},tf={AnPlusB:xG,Atrule:IG,AtrulePrelude:LG,AttributeSelector:GG,Block:eH,Brackets:iH,CDC:nH,CDO:oH,ClassSelector:dH,Combinator:vH,Comment:kH,Declaration:IH,DeclarationList:BH,Dimension:GH,Function:QH,Hash:ZH,Identifier:t7,IdSelector:a7,MediaFeature:c7,MediaQuery:m7,MediaQueryList:v7,Nth:b7,Number:S7,Operator:x7,Parentheses:w7,Percentage:O7,PseudoClassSelector:P7,PseudoElementSelector:L7,Ratio:W7,Raw:Gi,Rule:Y7,Selector:Q7,SelectorList:Z7,String:eY,StyleSheet:oY,TypeSelector:dY,UnicodeRange:vY,Url:SY,Value:xY,WhiteSpace:wY},rf=bG,CY={generic:!0,types:rf.types,atrules:rf.atrules,properties:rf.properties,node:tf},Ax=ce.cmpChar,TY=ce.cmpStr,rr=ce.TYPE,AY=rr.Ident,OY=rr.String,EY=rr.Number,MY=rr.Function,$Y=rr.Url,DY=rr.Hash,PY=rr.Dimension,IY=rr.Percentage,zY=rr.LeftParenthesis,jY=rr.LeftSquareBracket,LY=rr.Comma,NY=rr.Delim,RY=35,FY=42,Ox=43,qY=45,BY=47,WY=117,Ex=function(e){switch(this.scanner.tokenType){case DY:return this.Hash();case LY:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case zY:return this.Parentheses(this.readSequence,e.recognizer);case jY:return this.Brackets(this.readSequence,e.recognizer);case OY:return this.String();case PY:return this.Dimension();case IY:return this.Percentage();case EY:return this.Number();case MY:return TY(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case $Y:return this.Url();case AY:return Ax(this.scanner.source,this.scanner.tokenStart,WY)&&Ax(this.scanner.source,this.scanner.tokenStart+1,Ox)?this.UnicodeRange():this.Identifier();case NY:var r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r===BY||r===FY||r===Ox||r===qY)return this.Operator();r===RY&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1);break}},VY={getNode:Ex},Si=ce.TYPE,UY=Si.Delim,GY=Si.Ident,HY=Si.Dimension,YY=Si.Percentage,QY=Si.Number,KY=Si.Hash,Mx=Si.Colon,JY=Si.LeftSquareBracket,ZY=35,XY=42,eQ=43,tQ=47,$x=46,rQ=62,iQ=124,aQ=126;function nQ(t){switch(this.scanner.tokenType){case JY:return this.AttributeSelector();case KY:return this.IdSelector();case Mx:return this.scanner.lookupType(1)===Mx?this.PseudoElementSelector():this.PseudoClassSelector();case GY:return this.TypeSelector();case QY:case YY:return this.Percentage();case HY:this.scanner.source.charCodeAt(this.scanner.tokenStart)===$x&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case UY:var e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case eQ:case rQ:case aQ:return t.space=null,t.ignoreWSAfter=!0,this.Combinator();case tQ:return this.Combinator();case $x:return this.ClassSelector();case XY:case iQ:return this.TypeSelector();case ZY:return this.IdSelector()}break}}var sQ={getNode:nQ},oQ=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))},Dx=ce.TYPE,lQ=Gi.mode,uQ=Dx.Comma,cQ=Dx.WhiteSpace,dQ=function(){var t=this.createList();if(this.scanner.skipSC(),t.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===uQ){t.push(this.Operator());const e=this.scanner.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,lQ.exclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty()){for(let i=e-this.scanner.tokenIndex;i<=0;i++)if(this.scanner.lookupType(i)===cQ){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(r)}return t},pQ={getNode:Ex,expression:oQ,var:dQ},fQ={AtrulePrelude:VY,Selector:sQ,Value:pQ},hQ={parse:{prelude:null,block:function(){return this.Block(!0)}}},Cs=ce.TYPE,mQ=Cs.String,gQ=Cs.Ident,vQ=Cs.Url,bQ=Cs.Function,yQ=Cs.LeftParenthesis,SQ={parse:{prelude:function(){var t=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case mQ:t.push(this.String());break;case vQ:case bQ:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===gQ||this.lookupNonWSType(0)===yQ)&&(t.push(this.WhiteSpace()),t.push(this.MediaQueryList())),t},block:null}},xQ={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},kQ={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},Ga=ce.TYPE,_Q=Ga.WhiteSpace,wQ=Ga.Comment,Px=Ga.Ident,CQ=Ga.Function,TQ=Ga.Colon,AQ=Ga.LeftParenthesis;function OQ(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function EQ(){return this.scanner.skipSC(),this.scanner.tokenType===Px&&this.lookupNonWSType(1)===TQ?this.createSingleNodeList(this.Declaration()):Ix.call(this)}function Ix(){var t=this.createList(),e=null,r;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case _Q:e=this.WhiteSpace();continue;case wQ:this.scanner.next();continue;case CQ:r=this.Function(OQ,this.scope.AtrulePrelude);break;case Px:r=this.Identifier();break;case AQ:r=this.Parentheses(EQ,this.scope.AtrulePrelude);break;default:break e}e!==null&&(t.push(e),e=null),t.push(r)}return t}var MQ={parse:{prelude:function(){var t=Ix.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block:function(){return this.Block(!1)}}},$Q={"font-face":hQ,import:SQ,media:xQ,page:kQ,supports:MQ},DQ={parse:function(){return this.createSingleNodeList(this.Identifier())}},PQ={parse:function(){return this.createSingleNodeList(this.SelectorList())}},IQ={parse:function(){return this.createSingleNodeList(this.Identifier())}},zx={parse:function(){return this.createSingleNodeList(this.SelectorList())}},zQ=zx,jQ=zx,LQ=!0,jx={parse:function(){return this.createSingleNodeList(this.Nth(LQ))}},NQ=jx,RQ=jx,FQ=!1,Lx={parse:function(){return this.createSingleNodeList(this.Nth(FQ))}},qQ=Lx,BQ=Lx,WQ={parse:function(){return this.createSingleNodeList(this.Selector())}},VQ={dir:DQ,has:PQ,lang:IQ,matches:zQ,not:jQ,"nth-child":NQ,"nth-last-child":RQ,"nth-last-of-type":qQ,"nth-of-type":BQ,slotted:WQ},UQ={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:fQ,atrule:$Q,pseudo:VQ,node:tf},GQ={node:tf};const HQ={name:"css-tree",version:"1.1.3",description:"A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations",author:"Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",license:"MIT",repository:"csstree/csstree",keywords:["css","ast","tokenizer","parser","walker","lexer","generator","utils","syntax","validation"],main:"lib/index.js",unpkg:"dist/csstree.min.js",jsdelivr:"dist/csstree.min.js",scripts:{build:"rollup --config",lint:"eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint","lint-and-test":"npm run lint && npm test","update:docs":"node scripts/update-docs","review:syntax-patch":"node scripts/review-syntax-patch",test:"mocha --reporter progress",coverage:"nyc npm test",travis:"nyc npm run lint-and-test && npm run coveralls",coveralls:"nyc report --reporter=text-lcov | coveralls",prepublishOnly:"npm run build",hydrogen:"node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null"},dependencies:{"mdn-data":"2.0.14","source-map":"^0.6.1"},devDependencies:{"@rollup/plugin-commonjs":"^11.0.2","@rollup/plugin-json":"^4.0.2","@rollup/plugin-node-resolve":"^7.1.1",coveralls:"^3.0.9",eslint:"^6.8.0","json-to-ast":"^2.1.0",mocha:"^6.2.3",nyc:"^14.1.1",rollup:"^1.32.1","rollup-plugin-terser":"^5.3.0"},engines:{node:">=8.0.0"},files:["data","dist","lib"]};function YQ(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}Bd.exports=jb.create(YQ(CY,UQ,GQ)),Bd.exports.version=HQ.version;var QQ=Bd.exports,Yi=QQ,Nx={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.Scrollparent=r()})(wt,function(){function e(i){var a=getComputedStyle(i,null).getPropertyValue("overflow");return a.indexOf("scroll")>-1||a.indexOf("auto")>-1}function r(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var a=i.parentNode;a.parentNode;){if(e(a))return a;a=a.parentNode}return document.scrollingElement||document.documentElement}}return r})})(Nx);var KQ=Nx.exports;const JQ=Vt(KQ),ZQ={name:"custom-css-output",render(t){return t("style",this.$slots.default)}};function Rx(t){return t.component!=="FormMultiColumn"?t:t.items.flatMap(Rx)}function XQ(t){return t.flatMap(e=>e.items).flatMap(Rx)}Tt.register("custom-same",function(t,e){let r;const i=t;return e.includes(".")?r=e.split(".").reduce((a,n)=>a[n],this.validator.input):r=this.validator._flattenObject(this.validator.input)[e],r===i},"The :attribute and :custom-same fields must match."),Tt.register("after",function(t,e){const r=xr(t).toISOString(),i=xr(e).toISOString();return r>i},"The :attribute must be after :after."),Tt.register("after_or_equal",function(t,e){const r=xr(t).toISOString(),i=xr(e).toISOString();return r>=i},"The :attribute must be equal or after :after_or_equal."),Tt.register("before",function(t,e){const r=xr(t).toISOString(),i=xr(e).toISOString();return r<i},"The :attribute must be before :before."),Tt.register("before_or_equal",function(t,e){const r=xr(t).toISOString(),i=xr(e).toISOString();return r<=i},"The :attribute must be equal or before :before_or_equal."),Tt.register("custom_date",function(t){let e="MM/DD/YYYY";return typeof window.ProcessMaker<"u"&&window.ProcessMaker.user&&window.ProcessMaker.user.datetime_format&&(e=window.ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,"")),xr(t,[e,xr.ISO_8601],!0).isValid()},"The :attribute must be a valid date.");function eK(t,e){const r={},i={int:"integer",boolean:"boolean",string:"string",datetime:"custom-datetime",date:"custom-date",float:"regex:/^[+-]?\\d+(\\.\\d+)?$/",currency:"regex:/^[+-]?\\d+(\\.\\d+)?$/",array:"array",percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/",password:"string"};return r.validator=null,r.config=t,r.data=e,r.elements={},r.rules={},r.getDataAndRules=a=>{a.forEach(n=>{if(n){if(Array.isArray(n)&&r.getDataAndRules(n),n.items&&(n.component==="FormLoop"?r.ruleFormLoop(n.config.name,n.items):r.getDataAndRules(n.items)),n.component==="FormNestedScreen"){const s=Y.get(window,`nestedScreens.id_${n.config.screen}`);s&&r.getDataAndRules(s)}n.config&&n.config.name&&n.config.validation&&r.addRule(n.config.name,n.config.validation),n.component==="FormInput"&&n.config&&n.config.name&&n.config.dataFormat&&r.addRuleFormat(n.config.name,n.config.dataFormat)}})},r.addRule=(a,n)=>{const s=[];typeof n=="string"?s.push(n):n.forEach(o=>{s.push(o.value)}),r.rules[a]=s},r.addRuleFormat=(a,n)=>{r.rules[a]||(r.rules[a]=[]),r.rules[a].push(i[n])},r.ruleFormLoop=(a,n)=>{n.forEach(s=>{Array.isArray(s)&&r.ruleFormLoop(a,s),s.items&&(s.component==="FormLoop"?r.ruleFormLoop(`${a}.*.${s.config.name}`,s.items):r.ruleFormLoop(a,s.items)),s.config&&s.config.name&&s.config.validation&&(Array.isArray(s.config.validation)&&s.config.validation.forEach(o=>{if(!o.value.includes(":"))return;const u=o.value.split(":")[0];let l=o.value.split(":")[1],c;if(u.includes("required_")||u.includes("same")){if(l.includes("_parent"))l=l.split("_parent.").pop(),c=`${u}:${l}`;else if(!l.includes(","))c=`${u}:${a}.*.${l}`;else{l=l.split(",")[0];const d=o.value.split(":")[1].split(",")[1];c=`${u}:${a}.*.${l},${d}`}o.value=c}}),r.addRule(`${a}.*.${s.config.name}`,s.config.validation)),s.component==="FormInput"&&s.config&&s.config.name&&s.config.dataFormat&&r.addRuleFormat(`${a}.*.${s.config.name}`,s.config.dataFormat)})},r.getValidator=()=>{r.getDataAndRules(r.config),r.validator=new Tt(r.data,r.rules)},r.getErrors=()=>r.failed()?r.validator.errors.errors:{},r.failed=()=>(r.getValidator(),r.validator.fails()),r}const Ote="",tK={name:"VueFormRenderer",components:{CustomCssOutput:ZQ},mixins:[tc,ch],model:{prop:"data",event:"update"},props:["config","data","_parent","page","computed","customCss","mode","watchers","isLoop","ancestorScreens","loopContext","showErrors","testScreenDefinition","deviceScreen"],data(){return{definition:{config:this.config,computed:this.computed,customCss:this.customCss,watchers:this.watchers,isMobile:!1},formSubmitErrorClass:"",watchers_config:{api:{execute:null,execution:null}},customCssWrapped:"",customFunctions:{formatCurrency(){const t=(e,r)=>{const i=Al.find(n=>n.code===r),a={alias:"currency"};if(i){const n=i.format.match(/[.,]/g);n.length===0?n.push("","."):n.length===1&&n.push(n[0]==="."?",":"."),a.digits=(i.format.split(n[1])[1]||"").length,a.radixPoint=n[1],a.groupSeparator=n[0],a.prefix=`${i.symbol} `,a.suffix=` ${i.code}`}return ub.format(e,a)};return function(e){const r=JSON.parse(`[${e}]`);return t(Y.get(this,r[0]),r[1])}}},scrollable:null,containerObserver:null}},computed:{containerClass(){return this.parentScreen?`screen-${this.parentScreen}`:"custom-css-scope"},cssDevice(){return{"--mobile-width":uh}},containerDeviceClass(){return this.deviceScreen==="mobile"?"container-mobile":"container-desktop"}},watch:{customCss(t){this.definition.customCss=t,this.parseCss()},config:{deep:!0,handler(t){this.definition.config=t,this.$nextTick(()=>{this.registerCustomFunctions()})}},data:{deep:!0,handler(){this.$emit("update",this.data);const t=this.getMainScreen();t&&this.validate(t)}},computed:{deep:!0,handler(t){this.definition.computed=t}},watchers:{deep:!0,handler(t){this.definition.watchers=t}}},created(){this.parseCss=Y.debounce(this.parseCss,500,{leading:!0}),this.containerObserver=new ResizeObserver(this.onContainerObserver)},mounted(){this.registerCustomFunctions(),window.ProcessMaker&&window.ProcessMaker.EventBus&&window.ProcessMaker.EventBus.$emit("screen-renderer-init",this),this.scrollable=JQ(this.$el),this.containerObserver.observe(this.$refs.formRendererContainer)},methods:{...Pt.mapActions("globalErrorsModule",["validate","hasSubmitted","showValidationOnLoad","restartValidation"]),getMainScreen(){return this.$refs.renderer&&this.$refs.renderer.$refs.component},countElements(t){const e={config:t};return this.$refs.renderer.countElements(e)},checkForRecordList(t,e){return t.forEach(r=>{r.items&&this.checkForRecordList(r.items,e),r.component==="FormRecordList"&&this.removeRecordListForms(r,e)}),e},removeRecordListForms(t,e){const r=t.config.form;return delete e[r],e},checkForNestedScreenErrors(t){if(t.$options._componentTag==="FormNestedScreen")return t.errors()},isValid(){const t=XQ(this.definition.config),e=Y.cloneDeep(this.definition.config);return this.checkForRecordList(t,e),this.dataTypeValidator=eK(e,this.data),this.errors=this.dataTypeValidator.getErrors(),this.errors&&(this.formSubmitErrorClass="invalid-form-submission"),Y.size(this.errors)===0},registerCustomFunctions(t=this){t.registerCustomFunction instanceof Function&&Object.keys(this.customFunctions).forEach(e=>{t.registerCustomFunction(e,this.customFunctions[e])}),t.$children instanceof Array&&t.$children.forEach(e=>this.registerCustomFunctions(e))},submit(t,e=!1){this.$emit("submit",this.data,e)},parseCss(){const t=`.${this.containerClass}`;try{const e=Yi.parse(this.customCss,{onParseError(a){throw a.formattedMessage}});let r=0;Yi.walk(e,function(a,n,s){if(a.type.match(/^.+Selector$/)&&a.name!==t&&s&&(n.prev||(s.prependData({type:"WhiteSpace",loc:null,value:" "}),s.prependData({type:"TypeSelector",loc:null,name:t}))),r>5e3)throw Error("CSS is too long");r+=1});const i=[];Yi.walk(e,{visit:"Atrule",enter:(a,n,s)=>{if(!n.prev&&a.name==="media"){const o={minWidth:0,maxWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),rules:[]};Yi.walk(a.prelude,{visit:"MediaFeature",enter:u=>{["min-width","max-width"].includes(u.name)&&(o[Y.camelCase(u.name)]=parseInt(u.value.value,10),o.rules.length===0&&Yi.walk(a.block,{visit:"Rule",enter:l=>{const c=Yi.generate(l);o.rules.push(c)}}),i.push(o))}}),s.remove(n)}}}),this.customCssWrapped=Yi.generate(e),i.forEach(a=>{const{width:n}=this.$refs.formRendererContainer.getBoundingClientRect();n>=a.minWidth&&n<=a.maxWidth&&(this.customCssWrapped+=a.rules.join(" "))}),this.$emit("css-errors","")}catch(e){this.$emit("css-errors",e)}},getCurrentPage(){return this.$refs.renderer.getCurrentPage()},setCurrentPage(t){this.$refs.renderer.setCurrentPage(t)},onContainerObserver(t){t[0].target.getBoundingClientRect(),this.parseCss()}}};var rK=function(){var e=this,r=e._self._c;return r("div",{ref:"formRendererContainer",class:[e.containerClass,e.containerDeviceClass],style:e.cssDevice,attrs:{id:"vue-form-renderer","data-cy":"screen-renderer-container"}},[r("custom-css-output",[e._v(e._s(e.customCssWrapped))]),r("screen-renderer",{ref:"renderer",staticClass:"p-0",attrs:{value:e.data,_parent:e._parent,definition:e.definition,"current-page":e.currentPage,"data-cy":"screen-renderer","show-errors":e.showErrors,"test-screen-definition":e.testScreenDefinition||!1,"loop-context":e.loopContext},on:{submit:e.submit}})],1)},iK=[],aK=ue(tK,rK,iK,!1,null,"23f7208b",null,null);const Fx=aK.exports,nK=1,sK={name:"FormMultiColumn",mixins:[mn,ab,Ec],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:Oi,FormInput:Bi,FormSelectList:te.FormSelectList,FormTextArea:te.FormTextArea,FormCheckbox:te.FormCheckbox,FormDatePicker:te.FormDatePicker,FormHtmlEditor:te.FormHtmlEditor,FormHtmlViewer:te.FormHtmlViewer,...es},data(){return{items:[]}},computed:{model(){return this.$parent.model}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},methods:{classColumn(t){let e=nK;return this.config.options[t]&&this.config.options[t].content&&(e=this.config.options[t].content),`col-sm-${e} ${this.columnVerticalAlign(t)}`},columnVerticalAlign(t){let e="";if(this.items.length>0&&this.items[t].length===1){let r=this.items[0].filter(n=>n.component==="FormText");if(r.length===0)return"";let i=r[0],a=" justify-content-"+(i.config.textAlign==="right"?"end":i.config.textAlign);switch(i.config.verticalAlign){case"top":e="d-flex align-items-start"+a;break;case"middle":e="d-flex align-items-center"+a;break;case"bottom":e="d-flex align-items-end"+a;break}}return e},inspect(t){this.$emit("inspect",t)},submit(){this.$emit("submit")},pageNavigate(t){this.$emit("pageNavigate",t)}}};var oK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{staticClass:"row"},e._l(e.items,function(i,a){return r("div",{key:a,staticClass:"column-draggable",class:e.classColumn(a)},[e._l(i.filter(e.shouldElementBeVisible),function(n,s){return[n.container?r(n.component,{key:s,ref:"container",refInFor:!0,tag:"component",class:e.elementCssClass(n),attrs:{transientData:e.transientData,config:n.config,name:n.config.name!==void 0?n.config.name:null,"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:e.pageNavigate},model:{value:n.items,callback:function(o){e.$set(n,"items",o)},expression:"element.items"}}):r("div",{key:s,staticClass:"w-100",attrs:{id:n.config.name?n.config.name:void 0,selector:n.config.customCssSelector}},[r(n.component,e._b({ref:"elements",refInFor:!0,tag:"component",class:e.elementCssClass(n),attrs:{validationData:e.transientData,disabled:n.config.interactive||n.config.disabled,"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:e.pageNavigate},model:{value:e.model[e.getValidPath(n.config.name)],callback:function(o){e.$set(e.model,e.getValidPath(n.config.name),o)},expression:"model[getValidPath(element.config.name)]"}},"component",n.config,!1))],1)]})],2)}),0)])},lK=[],uK=ue(sK,oK,lK,!1,null,null,null,null);const fu=uK.exports,qx={value:"string",content:"Text"},Bx={value:"int",content:"Integer"},cK={value:"currency",content:"Currency"},dK={value:"password",content:"Password"},pK={value:"percentage",content:"Percentage"},Wx={value:"float",content:"Decimal"},Vx={value:"datetime",content:"Datetime"},Ux={value:"date",content:"Date"},fK={value:"boolean",content:"Boolean"},hK=[qx,Bx,cK,pK,Wx,Vx,Ux,dK],mK=[qx,Bx,Wx];function hu(t){return{type:"FormMultiselect",field:"dataFormat",config:{label:"Data Type",name:"Data Type",helper:"The data type specifies what kind of data is stored in the variable.",validation:"required",options:t}}}function gK(){return{type:qd,field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const Gx=hu(hK),vK=hu(mK),bK=hu([fK]),Hx=hu([Ux,Vx]),Yx=gK(),yK=[{editorComponent:te.FormHtmlEditor,editorBinding:"FormHtmlEditor",rendererComponent:te.FormHtmlEditor,rendererBinding:"FormHtmlEditor",control:{popoverContent:"Use a Rich Text Editor to add HTML-formatted",order:1,group:"Content Fields",label:"Rich Text",component:"FormHtmlViewer","editor-component":"FormHtmlEditor","editor-control":"FormHtmlEditor",config:{icon:"fas fa-pencil-ruler",interactive:!0,content:"<p>Rich text editor</p>",renderVarHtml:null},inspector:[{type:"FormTextArea",field:"content",config:{rows:5,label:"Content",helper:"The HTML text to display",value:""}},{type:"FormCheckbox",field:"renderVarHtml",config:{label:"Render HTML from a Variable",helper:"",value:""}}]}},{builderComponent:te.FormInput,builderBinding:"FormInput",rendererComponent:Bi,rendererBinding:"FormMaskedInput",control:{popoverContent:"Collect a string of text and format it as one of several data types",order:1,group:"Input Fields",label:"Line Input",component:"FormInput","editor-component":"FormInput","editor-control":"FormInput",config:{icon:"far fa-square",label:"New Input",name:"",placeholder:"",validation:"",helper:null,type:"text",dataFormat:"string"},inspector:[Qt,Br,Gx,Yx,Ri,jn,ya,tl,ci,ui,Ln]}},{editorComponent:te.FormTextArea,editorBinding:"FormTextArea",rendererComponent:te.FormTextArea,rendererBinding:"FormTextArea",control:{popoverContent:"Collect a multi-line string of text, to allow for extensive, richly formatted responses",order:4,group:"Input Fields",label:"Textarea",component:"FormTextArea","editor-component":"FormTextArea","editor-control":"FormTextArea","fa-icon":"fas fa-paragraph",config:{icon:"fas fa-paragraph",label:"New Textarea",placeholder:"",helper:null,rows:2,richtext:!1,currency:{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"}},inspector:[Qt,Br,jn,ya,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Ri,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},tl,ci,ui,Ln]}},{editorComponent:te.FormSelectList,editorBinding:"FormSelectList",rendererComponent:te.FormSelectList,rendererBinding:"FormSelectList",control:{popoverContent:"Collect options from a list, as radio butttons or dropdowns",order:2,group:"Input Fields",label:"Select List",component:"FormSelectList","editor-component":"FormSelectList","editor-control":"FormSelectList",config:{icon:"fas fa-angle-double-down",label:"New Select List",placeholder:"",validation:"",dataSourceUrl:"",dataSourceEndpoint:"",rootElement:"response",options:{showRenderAs:!0,dataSource:Hr.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],key:"value",value:"content",valueTypeReturned:"single"},helper:null},inspector:[Qt,Br,jn,Ri,ya,{type:"OptionsList",field:"options",config:{}},ci,ui,Ln,tl]}},{editorComponent:te.FormCheckbox,editorBinding:"FormCheckbox",rendererComponent:te.FormCheckbox,rendererBinding:"FormCheckbox",control:{popoverContent:"Add a checkbox or toggle for true/false responses",order:6,group:"Input Fields",label:"Checkbox",component:"FormCheckbox","editor-component":"FormCheckbox","editor-control":"FormCheckbox",config:{icon:"fas fa-check-square",label:"New Checkbox",helper:null,name:null,initiallyChecked:!1,validation:"",toggle:!1},inspector:[Qt,Br,ya,Ri,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},ci,ui,Zg,Xc]}},{editorComponent:te.FormDatePicker,editorBinding:"FormDatePicker",rendererComponent:te.FormDatePicker,rendererBinding:"FormDatePicker",control:{popoverContent:"Collect a date or date/time",order:5,group:"Input Fields",label:"Date Picker",component:"FormDatePicker","editor-component":"FormDatePicker","editor-control":"FormDatePicker",config:{icon:"far fa-calendar-alt",label:"New Date Picker",type:"datetime",name:"",placeholder:"",minDate:"",maxDate:""},inspector:[{type:"FormInput",field:"minDate",config:{name:"Minimum Date",label:"Minimum Date",validation:"date_or_mustache"}},{type:"FormInput",field:"maxDate",config:{name:"Maximum Date",label:"Maximum Date",validation:"after_min_date|date_or_mustache"}},Qt,Br,Hx,Ri,jn,ya,ci,ui,Xc,Ln]}},{editorComponent:qi,editorBinding:"FormButton",rendererComponent:qi,rendererBinding:"FormButton",control:{popoverContent:"Add special buttons that link between subpages within this Form",order:1,group:"Navigation",label:"Page Navigation",component:"FormButton","editor-component":"FormButton","editor-control":"PageNavigation",config:{icon:"far fa-compass",label:"Page Navigation",variant:"primary",event:"pageNavigate",eventData:null},inspector:[{type:"PageSelect",field:"eventData",config:{label:"Destination Screen",helper:"The destination page to navigate to"}},Jg,ed]}},{editorComponent:fu,editorBinding:"FormMultiColumn",rendererComponent:fu,rendererBinding:"FormMultiColumn",control:{popoverContent:"Organize and group your content in columns",order:2,group:"Content Fields",label:"Multicolumn / Table",component:"FormMultiColumn","editor-component":"MultiColumn","editor-control":"MultiColumn",container:!0,items:[[],[]],config:{icon:"fas fa-table",options:[{value:"1",content:"6"},{value:"2",content:"6"}]},inspector:[{type:"ContainerColumns",field:"options",config:{label:"Column Width",validation:"columns-adds-to-12"}},ci,ui]}},{editorComponent:Kn,editorBinding:"FormLoop",rendererComponent:Kn,rendererBinding:"FormLoop",control:{popoverContent:"Add a repeatable section of content",order:5,group:"Content Fields",label:"Loop",component:"FormLoop","editor-component":"Loop","editor-control":"Loop",container:!0,items:[],config:{name:"",icon:"fas fa-redo",settings:{type:"new",varname:"loop",times:"3",add:!1}},inspector:[{type:"LoopInspector",field:"settings",config:{}}]}},{editorComponent:Tl,editorBinding:"FormText",rendererComponent:Cl,rendererBinding:"FormRecordList",control:{popoverContent:"Format content in a table structure and allow for adding rows",order:4,group:"Content Fields",label:"Record List",component:"FormRecordList","editor-component":"FormText","editor-control":"FormRecordList",config:{name:"",icon:"fas fa-th-list",label:"New Record List",editable:!1,fields:{dataSource:Hr.provideData,jsonData:""},form:""},inspector:[Qt,{type:"FormInput",field:"label",config:{label:"List Label",helper:"The label describes this record list"}},{type:"FormCheckbox",field:"editable",config:{label:"Editable?",helper:"Should records be editable/removable and can new records be added"}},{type:"ColumnSetup",field:"fields",config:{label:"Columns",helper:"List of columns to display in the record list"}},{type:"PageSelect",field:"form",config:{label:"Record Form",helper:"The form to use for adding/editing records"}},ci,ui]}},{editorComponent:Qn,editorBinding:"FormImage",rendererComponent:Qn,rendererBinding:"FormImage",control:{popoverContent:"Upload an image to your screen",order:3,group:"Content Fields",label:"Image",component:"FormImage","editor-component":"FormImage","editor-control":"FormImage",config:{label:"Image",icon:"fas fa-image",variant:"primary",event:"submit",name:null,value:null,renderImage:!1},inspector:[{type:"FormInput",field:"name",config:{label:"Name",helper:"Image name"}},{type:"ImageUpload",field:"image",config:{label:"Upload",helper:"Upload image"}},{type:"ImageVariable",field:"imageName",config:{label:"Render from a variable name",helper:null}},{type:"FormInput",field:"height",config:{label:"Height",helper:"Image height",type:"number"}},{type:"FormInput",field:"width",config:{label:"Width",helper:"image width",type:"number"}}]}},{editorComponent:qi,editorBinding:"FormSubmit",rendererComponent:qi,rendererBinding:"FormButton",control:{popoverContent:"Add an action to submit your form or update a field",order:3,group:"Input Fields",label:"Submit Button",component:"FormButton","editor-component":"FormButton","editor-control":"FormSubmit",config:{icon:"fas fa-share-square",label:"New Submit",variant:"primary",event:"submit",loading:!1,loadingLabel:"Loading...",defaultSubmit:!0,name:null,fieldValue:null,tooltip:{}},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the button's text"}},{type:"FormInput",field:"name",config:{label:"Variable Name",name:"Variable Name",helper:"A variable name is a symbolic name to reference information.",validation:"regex:/^(?:[A-Za-z])(?:[0-9A-Z_.a-z])*(?<![.])$/|not_in:"+el}},Xg,tv,rv,ev,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},ed]}},{editorComponent:Jn,editorBinding:"FormNestedScreen",rendererComponent:Jn,rendererBinding:"FormNestedScreen",control:{popoverContent:"Add and reuse another Form within this Form",order:6,group:"Content Fields",label:"Nested Screen",component:"FormNestedScreen","editor-component":"FormNestedScreen","editor-control":"FormNestedScreen",config:{label:"Nested Screen",icon:"fas fa-file-invoice",variant:"primary",name:"Nested Screen",value:null},inspector:[{type:"ScreenSelector",field:"screen",config:{label:"Screen",name:"SelectScreen","validate-nested":!1,helper:"Select a screen"}}]}},{rendererComponent:vn,rendererBinding:"FileUpload",builderComponent:vn,builderBinding:"FileUpload",control:{group:"Files",popoverContent:"Collect files uploaded into the Form",order:1,label:"File Upload",component:"FileUpload","editor-component":"FileUpload","editor-control":"FileUpload",config:{label:"New File Upload",icon:"fas fa-file-upload"},inspector:[Qt,{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the field's name"}},{type:"MultipleUploadsCheckbox",field:"multipleUpload",config:{label:"Upload multiple files"}},{type:"FormInput",field:"accept",config:{label:"File Accepted",helper:"Common file types: application/msword, image/gif, image/jpeg, application/pdf, application/vnd.ms-powerpoint, application/vnd.ms-excel, text/plain"}},{type:"RequiredCheckbox",field:"validation",config:{label:"Required",helper:"Prevent form from being submitted unless a file is uploaded"}}]}},{rendererComponent:Tl,rendererBinding:"FormText",builderComponent:Js,builderBinding:"FileDownload",control:{popoverContent:"Offer a File download",order:2,group:"Files",label:"File Download",component:"FileDownload","editor-component":"FormText","editor-control":"FileDownload",config:{label:"New File Download",icon:"fas fa-file-download"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The text to display"}},{type:"FormInput",field:"name",config:{label:"Name",helper:"The name of the Download"}}]}},{rendererComponent:te.BFormComponent,rendererBinding:"BFormComponent",builderComponent:te.BFormComponent,builderBinding:"BFormComponent",control:{popoverContent:"Add one of several Bootstrap Vue components",order:1,group:"Advanced",label:"Bootstrap Component",component:"BFormComponent","editor-component":"BFormComponent","editor-control":"BFormComponent",config:{bootstrapComponent:"b-form-tags",bootstrapConfig:"{}",label:"New Bootstrap Component",icon:"fab fa-bootstrap"},inspector:[Qt,Br,{type:"FormMultiselect",field:"bootstrapComponent",config:{icon:"fas",label:"Bootstrap vue component",validation:"required",options:[{value:"b-embed",content:"Embed"},{value:"b-img",content:"Image"},{value:"b-form-rating",content:"Form Rating"},{value:"b-form-spinbutton",content:"Form Spinbutton"},{value:"b-form-tags",content:"Form Tags"},{value:"b-form-timepicker",content:"Form Timepicker"},{value:"b-table",content:"Table"}]}},{type:"FormTextArea",field:"bootstrapConfig",config:{rows:5,label:"Config",helper:"Properties in JSON format. See https://bootstrap-vue.org/docs/components",value:"{}"}},Ri]}},{rendererComponent:te.BWrapperComponent,rendererBinding:"BWrapperComponent",builderComponent:te.BWrapperComponent,builderBinding:"BWrapperComponent",control:{popoverContent:"Wrap an existing subpage within this Form into a Bootstrap Vue component",order:2,group:"Advanced",label:"Bootstrap Wrapper",component:"BWrapperComponent","editor-component":"BWrapperComponent","editor-control":"BWrapperComponent",config:{bootstrapComponent:"b-modal",bootstrapConfig:"{}",label:"New Bootstrap Wrapper",icon:"fab fa-bootstrap",name:"",form:""},inspector:[Qt,Br,{type:"FormMultiselect",field:"bootstrapComponent",config:{icon:"fas",label:"Bootstrap vue component",validation:"required",options:[{value:"b-alert",content:"Alert"},{value:"b-card",content:"Card"},{value:"b-collapse",content:"Collapse"},{value:"b-jumbotron",content:"Jumbotron"},{value:"b-modal",content:"Modal"}]}},{type:"PageSelect",field:"form",config:{label:"Page",helper:"The page to use inside the component"}},{type:"FormTextArea",field:"bootstrapConfig",config:{rows:5,label:"Config",helper:"Properties in JSON format. See https://bootstrap-vue.org/docs/components",value:"{}"}}]}},{editorComponent:Zn,editorBinding:"FormListTable",rendererComponent:Zn,rendererBinding:"FormListTable",control:{popoverContent:"Create List Table",order:3,group:"Files",label:"List Table",component:"FormListTable","editor-component":"FormListTable","editor-control":"FormListTable",config:{label:"List Table",icon:"fas fa-list",variant:"primary"},inspector:[{type:"FormMultiselect",field:"listOption",config:{icon:"fas fa-list",label:"List Table",options:[{value:"My Tasks",content:"My Tasks"},{value:"My Requests",content:"My Requests"},{value:"Start New Request",content:"Start New Request"}]}}]}},{editorComponent:Xn,editorBinding:"FormAnalyticsChart",rendererComponent:Xn,rendererBinding:"FormAnalyticsChart",control:{popoverContent:"Add a chart from the Analytics Reports",order:6,group:"Dashboards",label:"Analytics Chart",component:"FormAnalyticsChart","editor-component":"FormAnalyticsChart","editor-control":"FormAnalyticsChart",config:{label:"Analytics Chart",icon:"fas fa-chart-area",variant:"primary"},inspector:[{type:"AnalyticsSelector",field:"listChartOption",config:{label:"Chart"}}]}}],SK="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NS4wNTYyIDczLjg4NkM4NS4wNTYyIDczLjg4NiAxMTUuMDggOTYuNjcgMTYwLjcyNCA1NC4wNjhDMjAxLjI2IDE2LjIzNDMgMjM0LjM1OSA3NS45Mjc1IDIzNC41OSAxMDQuNTEzQzIzNC44OSAxNDEuNTQzIDE5NC4wNTQgMTcxLjE3MyAyMTMuODcyIDE5NS40OTVDMjMzLjY5IDIxOS44MTcgMTc0LjU3IDI1OS45ODEgMTQyLjcwOCAyMjUuMjIyQzEwMy4wNzIgMTgxLjk4MyA5Mi4zMzQ1IDIxNy4xMTQgNjkuNzQyNSAyMTcuMTE0QzUzLjUyNzggMjE3LjExNCAyMC4yMzc2IDE3Ni44MjUgNDIuNzE4MSAxNDYuODUxQzYxLjYzNTIgMTIxLjYyOSA1MS4zMTgyIDExMy4yNTggNDYuMzIyIDEwNC41MTNDMzkuMTE0OSA5MS45MDIxIDU2LjIzMDQgNTcuNjcxNSA4NS4wNTYyIDczLjg4NloiIGZpbGw9IiNERUVFRkEiLz4KPHBhdGggZD0iTTIwNS41OTIgMTI0LjIzNUMyMDcuMjA2IDEyNC44MzUgMjA4Ljk2OSAxMjQuODc1IDIxMC42NDcgMTI0LjQ4OUMyMTcuNjc3IDEyMi44NzYgMjQxLjg1IDExOC42MDMgMjM3LjY1IDEzNy4zMzVDMjM2LjczNSAxNDEuMDUxIDIyMi41NzggMTYxLjg2NCAyNDIuNzM5IDE2OS40NjJDMjQ0LjIxNyAxNzAuMDI2IDI0NS43NzkgMTcwLjMzNCAyNDcuMzYgMTcwLjM3MkMyNTMuNTY4IDE3MC41IDI2NS44NjkgMTY5LjAzNCAyNzEuMDE3IDE2My43OTRDMjc3LjIzNyAxNTcuNDYzIDI3MC40NDIgMTYwLjQ2NSAyNzAuNDQyIDE2MC40NjVDMjcwLjQ0MiAxNjAuNDY1IDI0Ni43OTggMTcwLjc4MyAyMzguNDQ2IDE1OS44MzZDMjM3LjUxNyAxNTguNjE4IDIzNi45MjUgMTU2Ljg0OSAyMzYuNzU2IDE1NS4zMjZDMjM2LjQ2MiAxNTIuNjg2IDIzNy42MzQgMTQ5LjE5NyAyMzkuMTc0IDE0Ni4xNTlDMjQxLjI1OSAxNDIuMDQ4IDI1MS4yNjYgMTIzLjU1NSAyMjkuNTM5IDExOC4xNjhDMjI0LjUzMyAxMTYuOTc2IDIxNy4yNjMgMTE1LjkwNiAyMDcuODkgMTE5Ljg1MkMyMDIuNDIyIDEyMi4xNTQgMjAzLjYzMyAxMjMuNTA3IDIwNS41OTIgMTI0LjIzNVoiIGZpbGw9IiNCQ0RDRjgiLz4KPHBhdGggZD0iTTIxMC40MyAxMTcuMzMxTDIwNC4xMzcgMTE5LjY4N0MyMDEuOTY1IDEyMC41IDIwMC44NjMgMTIyLjkyIDIwMS42NzYgMTI1LjA5MkwyMDEuOTg4IDEyNS45MjZDMjAyLjgwMSAxMjguMDk4IDIwNS4yMjEgMTI5LjIgMjA3LjM5MyAxMjguMzg3TDIxMy42ODcgMTI2LjAzMkMyMTUuODU5IDEyNS4yMTkgMjE2Ljk2MSAxMjIuNzk5IDIxNi4xNDggMTIwLjYyNkwyMTUuODM2IDExOS43OTNDMjE1LjAyMyAxMTcuNjIgMjEyLjYwMyAxMTYuNTE4IDIxMC40MyAxMTcuMzMxWiIgZmlsbD0iIzE1NzJDMiIvPgo8cGF0aCBkPSJNMTcxLjgwMSAxMjQuMTQ3TDE1MS4wNDYgMTMxLjkxNEMxNDkuOTYgMTMyLjMyMSAxNDkuNDA5IDEzMy41MzEgMTQ5LjgxNSAxMzQuNjE3TDE0OS44OTcgMTM0LjgzNkMxNTAuMzAzIDEzNS45MjIgMTUxLjUxMyAxMzYuNDczIDE1Mi42IDEzNi4wNjZMMTczLjM1NSAxMjguMjk5QzE3NC40NDEgMTI3Ljg5MiAxNzQuOTkyIDEyNi42ODIgMTc0LjU4NSAxMjUuNTk2TDE3NC41MDMgMTI1LjM3N0MxNzQuMDk3IDEyNC4yOTEgMTcyLjg4NyAxMjMuNzQgMTcxLjgwMSAxMjQuMTQ3WiIgZmlsbD0iIzUyQTVFQyIvPgo8cGF0aCBkPSJNMTc3LjU5MyAxMzkuNjI0TDE1Ni44MzggMTQ3LjM5MUMxNTUuNzUyIDE0Ny43OTggMTU1LjIwMSAxNDkuMDA4IDE1NS42MDggMTUwLjA5NEwxNTUuNjg5IDE1MC4zMTNDMTU2LjA5NiAxNTEuMzk5IDE1Ny4zMDYgMTUxLjk1IDE1OC4zOTIgMTUxLjU0M0wxNzkuMTQ3IDE0My43NzZDMTgwLjIzMyAxNDMuMzY5IDE4MC43ODQgMTQyLjE1OSAxODAuMzc4IDE0MS4wNzNMMTgwLjI5NiAxNDAuODU0QzE3OS44OSAxMzkuNzY4IDE3OC42NzkgMTM5LjIxNyAxNzcuNTkzIDEzOS42MjRaIiBmaWxsPSIjNTJBNUVDIi8+CjxwYXRoIGQ9Ik0xOTYuNzU1IDExMy41ODVMMTc5LjkzNCAxMTkuODhDMTc3Ljc2MSAxMjAuNjkzIDE3Ni42NTkgMTIzLjExNCAxNzcuNDcyIDEyNS4yODZMMTgzLjIxNiAxNDAuNjMxQzE4NC4wMjkgMTQyLjgwMyAxODYuNDQ5IDE0My45MDUgMTg4LjYyMSAxNDMuMDkyTDIwNS40NDMgMTM2Ljc5N0MyMDcuNjE1IDEzNS45ODQgMjA4LjcxNyAxMzMuNTY0IDIwNy45MDQgMTMxLjM5MUwyMDIuMTYxIDExNi4wNDZDMjAxLjM0OCAxMTMuODc0IDE5OC45MjggMTEyLjc3MiAxOTYuNzU1IDExMy41ODVaIiBmaWxsPSIjNTJBNUVDIi8+CjxwYXRoIGQ9Ik0xODEuNjcyIDExNy42MUwxNjQuODUgMTIzLjkwNkMxNjIuNjc4IDEyNC43MTkgMTYxLjU3NiAxMjcuMTM5IDE2Mi4zODkgMTI5LjMxMkwxNjkuMjQxIDE0Ny42MTlDMTcwLjA1NCAxNDkuNzkxIDE3Mi40NzQgMTUwLjg5MyAxNzQuNjQ2IDE1MC4wOEwxOTEuNDY4IDE0My43ODVDMTkzLjY0IDE0Mi45NzIgMTk0Ljc0MiAxNDAuNTUxIDE5My45MjkgMTM4LjM3OUwxODcuMDc3IDEyMC4wNzJDMTg2LjI2NCAxMTcuODk5IDE4My44NDQgMTE2Ljc5NyAxODEuNjcyIDExNy42MVoiIGZpbGw9IiMxNTcyQzIiLz4KPHBhdGggZD0iTTE4NC4zMDUgMTEzLjg5NUwxODQuMTczIDExMy45NDRDMTgyLjcyNSAxMTQuNDg2IDE4MS45OSAxMTYuMSAxODIuNTMyIDExNy41NDhMMTkyLjEzMSAxNDMuMTk1QzE5Mi42NzMgMTQ0LjY0MyAxOTQuMjg2IDE0NS4zNzggMTk1LjczNCAxNDQuODM2TDE5NS44NjYgMTQ0Ljc4NkMxOTcuMzE1IDE0NC4yNDQgMTk4LjA0OSAxNDIuNjMxIDE5Ny41MDcgMTQxLjE4MkwxODcuOTA5IDExNS41MzZDMTg3LjM2NyAxMTQuMDg4IDE4NS43NTMgMTEzLjM1MyAxODQuMzA1IDExMy44OTVaIiBmaWxsPSIjMTU3MkMyIi8+CjxwYXRoIGQ9Ik0xMi43ODE2IDEzMC4yOTJDMTIuNzgxNiAxMzAuMjkyIDQ2LjU2NDggMTIwLjc5OCA0MS42NiAxNDIuNjcyQzQwLjgwODMgMTQ2LjEzMyAyOC41NDcyIDE2My45NTMgNDMuMTUyIDE3Mi41MDlDNDYuMjg4IDE3NC4zNDYgNDkuOTA3IDE3NS4xNiA1My41NDEzIDE3NS4xNDFDNjAuMDU3MyAxNzUuMTA3IDcwLjM4NzIgMTczLjg1MyA3NS4wMjc4IDE2OS4xM0M4MS4yNDcxIDE2Mi43OTkgNzQuNDUyNiAxNjUuODAxIDc0LjQ1MjYgMTY1LjgwMUM3NC40NTI2IDE2NS44MDEgNTUuMDUwNCAxNzMuNzgyIDQ1LjA2ODcgMTY3LjQyQzQxLjY2MDQgMTY1LjI0OCA0MC4xMTU1IDE2MS4wNDIgNDEuMDQxMSAxNTcuMTA3QzQxLjUxNDEgMTU1LjE1MyA0Mi4yMzQ1IDE1My4yNjcgNDMuMTg0NyAxNTEuNDk1QzQ1LjM1NTYgMTQ3LjQyOSA1NS4yNzY4IDEyOC44OTEgMzMuNTQ4OCAxMjMuNTA0QzI4LjU0MzYgMTIyLjMxMiAyMS4yNzM4IDEyMS4yNDIgMTEuOTAwMSAxMjUuMTg4QzIuNTI2MzcgMTI5LjEzNSAxMi43ODE2IDEzMC4yOTIgMTIuNzgxNiAxMzAuMjkyWiIgZmlsbD0iI0JDRENGOCIvPgo8cGF0aCBkPSJNNzkuNTcwNCAxNjAuOTA2TDczLjI3NzIgMTYzLjI2MkM3MS4xMDQ4IDE2NC4wNzUgNzAuMDAyOCAxNjYuNDk1IDcwLjgxNTggMTY4LjY2N0w3MS4xMjc4IDE2OS41MDFDNzEuOTQwOCAxNzEuNjczIDc0LjM2MTEgMTcyLjc3NSA3Ni41MzM1IDE3MS45NjJMODIuODI2OCAxNjkuNjA3Qzg0Ljk5OTIgMTY4Ljc5NCA4Ni4xMDEyIDE2Ni4zNzQgODUuMjg4MSAxNjQuMjAxTDg0Ljk3NjIgMTYzLjM2OEM4NC4xNjMxIDE2MS4xOTUgODEuNzQyOSAxNjAuMDkzIDc5LjU3MDQgMTYwLjkwNloiIGZpbGw9IiMxNTcyQzIiLz4KPHBhdGggZD0iTTkwLjIwMzEgMTUwLjU1Mkw4MC44NzYyIDE1NC4wNDNDNzguNzAzNyAxNTQuODU2IDc3LjYwMTcgMTU3LjI3NiA3OC40MTQ4IDE1OS40NDlMODIuOTEyMiAxNzEuNDY1QzgzLjcyNTMgMTczLjYzOCA4Ni4xNDU1IDE3NC43NCA4OC4zMTc5IDE3My45MjdMOTcuNjQ0OCAxNzAuNDM2Qzk5LjgxNzMgMTY5LjYyMyAxMDAuOTE5IDE2Ny4yMDMgMTAwLjEwNiAxNjUuMDNMOTUuNjA4OCAxNTMuMDEzQzk0Ljc5NTcgMTUwLjg0MSA5Mi4zNzU1IDE0OS43MzkgOTAuMjAzMSAxNTAuNTUyWiIgZmlsbD0iIzUyQTVFQyIvPgo8cGF0aCBkPSJNMTA1LjczIDE0MS4zTDkxLjgyMTMgMTQ2LjUwNkM4OS42NDg5IDE0Ny4zMTkgODguNTQ2OSAxNDkuNzM5IDg5LjM2IDE1MS45MTJMOTYuMjExNyAxNzAuMjE5Qzk3LjAyNDggMTcyLjM5MiA5OS40NDUgMTczLjQ5NCAxMDEuNjE3IDE3Mi42OEwxMTUuNTI2IDE2Ny40NzVDMTE3LjY5OSAxNjYuNjYyIDExOC44MDEgMTY0LjI0MiAxMTcuOTg4IDE2Mi4wNjlMMTExLjEzNiAxNDMuNzYyQzExMC4zMjMgMTQxLjU4OSAxMDcuOTAzIDE0MC40ODcgMTA1LjczIDE0MS4zWiIgZmlsbD0iIzE1NzJDMiIvPgo8cGF0aCBkPSJNMTA4LjY3NyAxMzcuNTA5TDEwOC41NDUgMTM3LjU1OEMxMDcuMDk2IDEzOC4xIDEwNi4zNjIgMTM5LjcxNCAxMDYuOTA0IDE0MS4xNjJMMTE2LjUwMiAxNjYuODA5QzExNy4wNDQgMTY4LjI1NyAxMTguNjU4IDE2OC45OTIgMTIwLjEwNiAxNjguNDVMMTIwLjIzOCAxNjguNEMxMjEuNjg2IDE2Ny44NTggMTIyLjQyMSAxNjYuMjQ1IDEyMS44NzkgMTY0Ljc5NkwxMTIuMjggMTM5LjE1QzExMS43MzggMTM3LjcwMiAxMTAuMTI1IDEzNi45NjcgMTA4LjY3NyAxMzcuNTA5WiIgZmlsbD0iIzE1NzJDMiIvPgo8cGF0aCBkPSJNMTQ0LjE5NCAxMjEuMTdDMTQzLjY5MyAxMjEuMTE0IDE0My4yMzMgMTIwLjg2NyAxNDIuOTExIDEyMC40NzlDMTQyLjU5IDEyMC4wOTEgMTQyLjQzMSAxMTkuNTk0IDE0Mi40NjggMTE5LjA5MUwxNDMuNTA2IDEwMC4xMzVDMTQzLjU2OCA5OS4wMDI3IDE0NC41MjQgOTguMTQyNCAxNDUuNjA5IDk4LjI0MjVMMTQ3LjEyMSA5OC4zODI1QzE0OC4yMDYgOTguNDgyNiAxNDguOTgzIDk5LjUwMjUgMTQ4LjgzMSAxMDAuNjI3TDE0Ni4yODEgMTE5LjQ0M0MxNDYuMjIzIDExOS45NDQgMTQ1Ljk3MyAxMjAuNDAzIDE0NS41ODQgMTIwLjcyNUMxNDUuMTk1IDEyMS4wNDcgMTQ0LjY5NyAxMjEuMjA2IDE0NC4xOTQgMTIxLjE3VjEyMS4xN1oiIGZpbGw9IiM1MkE1RUMiLz4KPHBhdGggZD0iTTEzNS4yMzMgMTIyLjgwNEMxMzUuMDc3IDEyMi44NSAxMzQuOTE0IDEyMi44NjUgMTM0Ljc1MiAxMjIuODQ4QzEzNC41OTEgMTIyLjgzIDEzNC40MzQgMTIyLjc4MSAxMzQuMjkyIDEyMi43MDNDMTM0LjE0OSAxMjIuNjI2IDEzNC4wMjQgMTIyLjUyMSAxMzMuOTIyIDEyMi4zOTRDMTMzLjgyIDEyMi4yNjggMTMzLjc0NCAxMjIuMTIyIDEzMy42OTggMTIxLjk2N0wxMjkuOTkyIDExMC4xNzVDMTI5Ljg4NCAxMDkuODQgMTI5LjkxNCAxMDkuNDc1IDEzMC4wNzQgMTA5LjE2MkMxMzAuMjM1IDEwOC44NDggMTMwLjUxMyAxMDguNjExIDEzMC44NDkgMTA4LjUwM0wxMzEuODA4IDEwOC4yMTNDMTMxLjk3MyAxMDguMTY1IDEzMi4xNDYgMTA4LjE1MiAxMzIuMzE2IDEwOC4xNzRDMTMyLjQ4NiAxMDguMTk2IDEzMi42NDkgMTA4LjI1MyAxMzIuNzk2IDEwOC4zNDJDMTMyLjk0MyAxMDguNDMgMTMzLjA3IDEwOC41NDggMTMzLjE2OSAxMDguNjg4QzEzMy4yNjggMTA4LjgyOCAxMzMuMzM3IDEwOC45ODcgMTMzLjM3MSAxMDkuMTU1TDEzNi4xMTggMTIxLjIzN0MxMzYuMTk1IDEyMS41NjEgMTM2LjE0NiAxMjEuOTAzIDEzNS45ODIgMTIyLjE5NEMxMzUuODE4IDEyMi40ODQgMTM1LjU1MSAxMjIuNzAyIDEzNS4yMzMgMTIyLjgwNFYxMjIuODA0WiIgZmlsbD0iIzUyQTVFQyIvPgo8cGF0aCBkPSJNMTMwLjIzMiAxMjkuNjA0QzEyOS41NjggMTMwLjQyNyAxMjguMjMzIDEzMC40MTcgMTI3LjIwNCAxMjkuNTgyTDEwOC45NTMgMTE0Ljc1M0MxMDcuODYzIDExMy44NjcgMTA3LjU0MSAxMTIuNDAxIDEwOC4yNDUgMTExLjUyOUwxMDkuMjI3IDExMC4zMTNDMTA5LjkzMiAxMDkuNDQgMTExLjM3OCAxMDkuNTEyIDExMi40MSAxMTAuNDdMMTI5LjY4IDEyNi41MTVDMTMwLjY1MyAxMjcuNDE5IDEzMC44OTYgMTI4Ljc4MiAxMzAuMjMyIDEyOS42MDRaIiBmaWxsPSIjNTJBNUVDIi8+CjxwYXRoIGQ9Ik0xMzguNjY5IDE2Ny45MDZDMTM5LjEzOSAxNjguMDg4IDEzOS41MiAxNjguNDQ1IDEzOS43MzIgMTY4LjkwMkMxMzkuOTQ1IDE2OS4zNTkgMTM5Ljk3MSAxNjkuODgxIDEzOS44MDcgMTcwLjM1N0wxMzMuOTYyIDE4OC40MTlDMTMzLjYxMyAxODkuNDk4IDEzMi40NjkgMTkwLjA4NSAxMzEuNDQ1IDE4OS43MTFMMTMwLjAxOCAxODkuMTlDMTI4Ljk5NSAxODguODE2IDEyOC41MDQgMTg3LjYzMSAxMjguOTM4IDE4Ni41ODRMMTM2LjIwOSAxNjkuMDQzQzEzNi4zOTQgMTY4LjU3MyAxMzYuNzUyIDE2OC4xOTMgMTM3LjIxMSAxNjcuOTgxQzEzNy42NjkgMTY3Ljc2OSAxMzguMTkxIDE2Ny43NDIgMTM4LjY2OSAxNjcuOTA2VjE2Ny45MDZaIiBmaWxsPSIjNTJBNUVDIi8+CjxwYXRoIGQ9Ik0xNDcuNzUgMTY4LjYxNUMxNDcuOTEyIDE2OC42MSAxNDguMDc0IDE2OC42MzggMTQ4LjIyNiAxNjguNjk2QzE0OC4zNzcgMTY4Ljc1NCAxNDguNTE2IDE2OC44NDEgMTQ4LjYzNCAxNjguOTUzQzE0OC43NTIgMTY5LjA2NCAxNDguODQ3IDE2OS4xOTggMTQ4LjkxMyAxNjkuMzQ2QzE0OC45NzkgMTY5LjQ5NCAxNDkuMDE2IDE2OS42NTQgMTQ5LjAyIDE2OS44MTdMMTQ5LjU5MiAxODIuMTY0QzE0OS42MSAxODIuNTE2IDE0OS40ODkgMTgyLjg2IDE0OS4yNTMgMTgzLjEyMkMxNDkuMDE4IDE4My4zODUgMTQ4LjY4OCAxODMuNTQzIDE0OC4zMzcgMTgzLjU2MkwxNDcuMzM1IDE4My41OTdDMTQ3LjE2MyAxODMuNjAxIDE0Ni45OTMgMTgzLjU3IDE0Ni44MzQgMTgzLjUwNUMxNDYuNjc1IDE4My40NCAxNDYuNTMyIDE4My4zNDMgMTQ2LjQxMiAxODMuMjJDMTQ2LjI5MyAxODMuMDk3IDE0Ni4yIDE4Mi45NTEgMTQ2LjE0IDE4Mi43OUMxNDYuMDggMTgyLjYyOSAxNDYuMDU1IDE4Mi40NTggMTQ2LjA2NCAxODIuMjg3TDE0Ni40OTQgMTY5LjkwNUMxNDYuNTAzIDE2OS41NzEgMTQ2LjYzNyAxNjkuMjUzIDE0Ni44NyAxNjkuMDE0QzE0Ny4xMDMgMTY4Ljc3NSAxNDcuNDE3IDE2OC42MzMgMTQ3Ljc1IDE2OC42MTVWMTY4LjYxNVoiIGZpbGw9IiM1MkE1RUMiLz4KPHBhdGggZD0iTTE1NC4zMjIgMTYzLjMxN0MxNTUuMTc0IDE2Mi42OTEgMTU2LjQ2MyAxNjMuMDQyIDE1Ny4yNDMgMTY0LjExMkwxNzEuMTAzIDE4My4xMUMxNzEuOTMxIDE4NC4yNDUgMTcxLjg2NyAxODUuNzQ0IDE3MC45NjMgMTg2LjQwOEwxNjkuNzAzIDE4Ny4zMzNDMTY4Ljc5OSAxODcuOTk3IDE2Ny40MTggMTg3LjU1OCAxNjYuNjY2IDE4Ni4zNjhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",Ete="",xK={data(){return{title:"We're Sorry",message:"An error has occurred. Please try again. If the problem persists, please contact your administrator."}}};var kK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"simple-error-message-main"},[e._m(0),r("p",[r("span",{staticClass:"simple-error-message-title"},[e._v(" "+e._s(e.$t(e.title))+" ")])]),r("p",[r("span",{staticClass:"simple-error-message-message"},[e._v(e._s(e.$t(e.message)))])])])},_K=[function(){var t=this,e=t._self._c;return e("p",[e("img",{staticClass:"simple-error-message-icon",attrs:{src:SK}})])}],wK=ue(xK,kK,_K,!1,null,null,null,null);const CK={components:{simpleErrorMessage:wK.exports},props:{initialTaskId:{type:Number,default:null},initialScreenId:{type:Number,default:null},initialRequestId:{type:Number,default:null},initialProcessId:{type:Number,default:null},initialNodeId:{type:String,default:null},userId:{type:Number,default:null},csrfToken:{type:String,default:null},value:{type:Object,default:()=>{}},beforeLoadTask:{type:Function,default:()=>new Promise(t=>{t()})},initialLoopContext:{type:String,default:""},taskPreview:{type:Boolean,default:!1},loading:{type:Number,default:null}},data(){return{task:null,taskId:null,request:null,requestId:null,screen:null,screenId:null,renderComponent:"task-screen",processId:null,nodeId:null,disabled:!1,socketListeners:[],requestData:{},hasErrors:!1,refreshScreen:0,redirecting:null,loadingButton:!1}},watch:{initialScreenId:{handler(){this.screenId=this.initialScreenId}},initialTaskId:{handler(){this.taskId=this.initialTaskId}},initialRequestId:{handler(){this.requestId=this.initialRequestId}},initialProcessId:{handler(){this.processId=this.initialProcessId}},initialNodeId:{handler(){this.nodeId=this.initialNodeId}},screenId:{handler(){this.screenId&&this.loadScreen(this.screenId)}},taskId:{handler(){this.taskId&&(!this.task||this.task.id!==this.taskId)&&this.loadTask()}},requestId:{handler(){this.requestId?(this.setMetaValue(),this.initSocketListeners()):this.unsubscribeSocketListeners()}},task:{handler(){this.screen||(this.screen=this.task&&this.task.interstitial_screen),this.taskId=this.task.id,this.nodeId=this.task.element_id,this.listenForParentChanges(),this.task.process_request.status==="COMPLETED"&&(this.taskPreview||this.$emit("completed",this.task.process_request.id)),this.taskPreview&&this.task.status==="CLOSED"&&(this.task.interstitial_screen._interstitial=!1,this.task.screen.config=this.disableForm(this.task.screen.config),this.screen=this.task.screen)}},value:{handler(){this.requestData=this.value}},screen:{handler(){if(this.screen&&this.renderComponent!=="ConversationalForm")if(this.screen.type==="CONVERSATIONAL")this.renderComponent="ConversationalForm";else{const t=Y.get(this.screen,"_interstitial",!1);let e=Y.get(this,"task.component","task-screen");(e===null||t)&&(e="task-screen"),this.renderComponent=e}}}},computed:{shouldAddSubmitButton(){return this.task?this.task.bpmn_tag_name==="manualTask"||!this.task.screen&&this.task.element_type!=="startEvent":!1},showTaskIsCompleted(){return this.task&&this.task.advanceStatus==="completed"&&!this.screen},screenTypeClass(){return this.screen?this.screen.type.toLowerCase()+"-screen":void 0},parentRequest(){return Y.get(this.task,"process_request.parent_request_id",null)}},methods:{disableForm(t){if(t instanceof Array)for(let e of t)e.component==="FormButton"&&e.config.event==="submit"?t.splice(t.indexOf(e),1):this.disableForm(e);return t.config!==void 0&&(t.config.disabled=!0),t.items!==void 0&&this.disableForm(t.items),t},showSimpleErrorMessage(){this.renderComponent="simpleErrorMessage"},loadScreen(t){let e="?include=nested";this.requestId&&(e+="&request_id="+this.requestId),this.$dataProvider.getScreen(t,e).then(r=>{this.screen=r.data})},reload(){this.taskId?this.loadTask():this.loadNextAssignedTask()},loadTask(){const t=`/${this.taskId}?include=data,user,requestor,processRequest,component,screen,requestData,loopContext,bpmnTagName,interstitial,definition,nested,userRequestPermission`;return window.ProcessMaker&&window.ProcessMaker.packages&&window.ProcessMaker.packages.includes("package-vocabularies")&&(window.ProcessMaker.VocabulariesSchemaUrl=`vocabularies/task_schema/${this.taskId}`),this.beforeLoadTask(this.taskId,this.nodeId).then(()=>{this.$dataProvider.getTasks(t).then(e=>{if(this.task=e.data,this.checkTaskStatus(),window.PM4ConfigOverrides&&window.PM4ConfigOverrides.getScreenEndpoint&&window.PM4ConfigOverrides.getScreenEndpoint.includes("tasks/")){const r=window.PM4ConfigOverrides.getScreenEndpoint.split("/");r[1]=this.task.id,window.PM4ConfigOverrides.getScreenEndpoint=r.join("/")}}).catch(()=>{this.hasErrors=!0})})},prepareTask(){(!this.loadingButton||this.task.status==="ACTIVE")&&(this.resetScreenState(),this.requestData=Y.get(this.task,"request_data",{}),this.loopContext=Y.get(this.task,"loop_context",""),this.refreshScreen++),this.$emit("task-updated",this.task),this.task.process_request.status==="ERROR"?(this.hasErrors=!0,this.$emit("error",this.requestId)):this.hasErrors=!1},resetScreenState(){this.loadingButton=!1,this.disabled=!1,this.$refs.renderer&&this.$refs.renderer.$children[0]&&(this.$refs.renderer.$children[0].currentPage=0,this.$refs.renderer.restartValidation())},checkTaskStatus(){this.task.status=="COMPLETED"||this.task.status=="CLOSED"||this.task.status=="TRIGGERED"?this.closeTask():this.screen=this.task.screen,this.prepareTask()},disableForSelfService(){this.$nextTick(()=>{window.ProcessMaker.isSelfService?this.disabled=!0:this.disabled=!1})},closeTask(t=null){if(this.hasErrors){this.$emit("error",this.requestId);return}this.task.process_request.status==="COMPLETED"?this.loadNextAssignedTask(t):this.loadingButton?this.loadNextAssignedTask(t):this.task.allow_interstitial?(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen,this.loadNextAssignedTask(t)):this.taskPreview||this.$emit("closed",this.task.id)},loadNextAssignedTask(t=null){t||(t=this.requestId);const e=window.Cypress?"":`&t=${Date.now()}`,r=`?user_id=${this.userId}&status=ACTIVE&process_request_id=${t}&include_sub_tasks=1${e}`;return this.$dataProvider.getTasks(r).then(i=>{if(i.data.data.length>0){let a=i.data.data[0];if(a.process_request_id!==this.requestId){if(this.redirecting===a.process_request_id)return;this.unsubscribeSocketListeners(),this.redirecting=a.process_request_id,this.$emit("redirect",a.id,!0);return}else this.emitIfTaskCompleted(t);this.taskId=a.id,this.nodeId=a.element_id}else this.parentRequest&&["COMPLETED","CLOSED"].includes(this.task.process_request.status)&&this.$emit("completed",this.getAllowedRequestId())})},emitIfTaskCompleted(t){this.task&&this.parentRequest&&t==this.task.process_request_id&&this.task.process_request.status==="COMPLETED"&&this.$emit("completed",this.parentRequest)},classHeaderCard(t){let e="bg-success";switch(t){case"completed":e="bg-secondary";break;case"overdue":e="bg-danger";break}return"card-header text-capitalize text-white "+e},submit(t=null,e=!1){this.disabled||(this.disabled=!0,t&&this.onUpdate(Object.assign({},this.requestData,t)),e?this.loadingButton=!0:this.loadingButton=!1,this.$emit("submit",this.task,e),this.task&&this.task.allow_interstitial&&!this.loadingButton&&(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen))},onUpdate(t){this.$emit("input",t),this.disableForSelfService()},activityAssigned(){},processCompleted(){let t;this.parentRequest&&(t=this.getAllowedRequestId(),this.$emit("completed",t)),t!==this.requestId&&this.$emit("completed",this.requestId)},getAllowedRequestId(){const e=(this.task.user_request_permission||[]).find(i=>i.process_request_id===this.parentRequest);return e&&e.allowed?this.parentRequest:this.requestId},processUpdated:Y.debounce(function(t){(t.event==="ACTIVITY_COMPLETED"||t.event==="ACTIVITY_ACTIVATED")&&this.reload(),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)},300),initSocketListeners(){this.addSocketListener(`completed-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".ProcessCompleted",t=>{this.processCompleted(t)}),this.addSocketListener(`updated-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".ProcessUpdated",t=>{this.processUpdated(t)}),this.taskId||this.reload()},listenForParentChanges(){this.parentRequest&&this.addSocketListener(`parent-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,".ProcessUpdated",t=>{["ACTIVITY_ACTIVATED"].includes(t.event)&&this.closeTask(this.parentRequest),["ACTIVITY_COMPLETED"].includes(t.event)&&this.task.process_request.status==="COMPLETED"&&this.processCompleted(),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)})},addSocketListener(t,e,r,i){t in this.socketListeners||(this.socketListeners[t]={channel:e,event:r},window.Echo.private(e).listen(r,a=>{i(a)}))},unsubscribeSocketListeners(){Object.values(this.socketListeners).forEach(t=>{window.Echo.private(t.channel).stopListening(t.event)}),this.socketListeners={}},obtainPayload(t){return new Promise(e=>{window.ProcessMaker.apiClient.get(t).then(r=>{e(r.data)}).catch(()=>{})})},setMetaValue(){const t=document.head.querySelector('meta[name="request-id"]');t&&t.setAttribute("content",this.requestId)}},mounted(){this.screenId=this.initialScreenId,this.taskId=this.initialTaskId,this.requestId=this.initialRequestId,this.processId=this.initialProcessId,this.nodeId=this.initialNodeId,this.requestData=this.value,this.loopContext=this.initialLoopContext},destroyed(){this.unsubscribeSocketListeners()}};var TK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"tab-pane active show h-100",attrs:{id:"tab-form",role:"tabpanel","aria-labelledby":"tab-form"}},[e.screen?[r("b-overlay",{attrs:{show:e.disabled,id:"overlay-background",variant:"white",cardStyles:"pointer-events: none;pointer-events: none;inset: 1px",rounded:"sm"},scopedSlots:e._u([{key:"overlay",fn:function(){return[r("div",{staticClass:"text-center"},[r("p",[e._v("Please claim this task to continue.")])])]},proxy:!0}],null,!1,2499821482)},[r("div",{staticClass:"card card-body border-top-0 h-100",class:e.screenTypeClass},[e.renderComponent==="task-screen"?r("div",[r("vue-form-renderer",{key:e.refreshScreen,ref:"renderer",attrs:{config:e.screen.config,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,"loop-context":e.loopContext},on:{update:e.onUpdate,submit:e.submit},model:{value:e.requestData,callback:function(i){e.requestData=i},expression:"requestData"}})],1):r("div",[r(e.renderComponent,{tag:"component",attrs:{"process-id":e.processId,"instance-id":e.requestId,"token-id":e.taskId,screen:e.screen.config,"csrf-token":e.csrfToken,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,data:e.requestData,type:e.screen.type},on:{submit:e.submit}})],1)]),e.shouldAddSubmitButton?r("div",{staticClass:"card-footer"},[r("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return e.submit(null)}}},[e._v(" "+e._s(e.$t("Complete Task"))+" ")])]):e._e()])]:e._e(),e.showTaskIsCompleted?[r("div",{staticClass:"card card-body text-center"},[r("h1",[e._v(" "+e._s(e.$t("Task Completed"))+" "),r("i",{staticClass:"fas fa-clipboard-check"})])])]:e._e()],2)},AK=[],OK=ue(CK,TK,AK,!1,null,null,null,null);const Qx=OK.exports,Dte="",EK={name:"Loop",mixins:[mn],props:["value","name","config","selected","validationErrors"],components:{draggable:Oi,FormInput:te.FormInput,FormSelectList:te.FormSelectList,FormCheckbox:te.FormCheckbox,FormTextArea:te.FormTextArea,FormDatePicker:te.FormDatePicker,FormHtmlEditor:te.FormHtmlEditor,FormHtmlViewer:te.FormHtmlViewer,...es},data(){return{items:[],cancelledJobs:[]}},mounted(){!localStorage.getItem("cancelledJobs")||localStorage.getItem("cancelledJobs")==="null"?this.cancelledJobs=[]:this.cancelledJobs=JSON.parse(localStorage.getItem("cancelledJobs")),this.$root.$on("ai-form-generated",(t,e)=>{this.previewAiChanges(t,e)}),this.$root.$on("ai-form-progress-updated",(t,e)=>{this.updateProgress(t,e)})},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},methods:{hasError(t){return this.validationErrors?this.validationErrors.some(({item:e})=>e===t):!1},inspect(t){this.$emit("inspect",t)},deleteItem(t){this.items.splice(t,1),this.$emit("update-state")},duplicateItem(t){const e=Y.cloneDeep(this.items[t]);this.items.push(e),this.$emit("update-state")},isAiSection(t){return t.component==="AiSection"},aiPreview(t){return t.items&&t.items[0]&&t.items[0].length},applyAiChanges(t){this.$root.$emit("apply-ai-changes",t)},previewAiChanges(t,e){this.value.forEach(r=>{r.component==="AiSection"&&e===r.config.aiConfig.nonce&&this.$set(r,"items",JSON.parse(JSON.stringify(t)))})},updateProgress(t,e){this.value.forEach(r=>{if(r.component==="AiSection"&&e===r.config.aiConfig.nonce){if(this.cancelledJobs.some(i=>i===e))return;this.$set(r.config.aiConfig,"progress",t)}})}}};var MK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"column-draggable",attrs:{selector:e.config.customCssSelector}},[r("draggable",{staticStyle:{"min-height":"80px"},attrs:{list:e.items,group:"controls"}},e._l(e.items,function(i,a){return r("div",{key:a,staticClass:"control-item",class:{selected:e.selected===i,hasError:e.hasError(i)},on:{click:function(n){return n.stopPropagation(),e.inspect(i)}}},[i.container?r("div",{on:{click:function(n){return n.stopPropagation(),e.inspect(i)}}},[r("div",{staticClass:"m-2 card border-0",class:{"ai-section-card":e.isAiSection(i)&&e.selected===i}},[e.selected===i?r("div",{staticClass:"card-header form-element-header d-flex align-items-center border rounded",class:{pulse:e.isAiSection(i)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),i.config.icon?r("i",{staticClass:"mr-2 ml-1",class:i.config.icon}):e._e(),e._v(" "+e._s(i.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(i)&&e.aiPreview(i)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Apply Changes")},on:{click:function(n){return e.applyAiChanges(i)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(i)&&e.aiPreview(i)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(n){return e.duplicateItem(a)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(n){return e.deleteItem(a)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(i["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(i),attrs:{validationErrors:e.validationErrors,selected:e.selected,"ai-element":i,config:i.config},on:{inspect:e.inspect,"update-state":function(n){return e.$emit("update-state")}},model:{value:i.items,callback:function(n){e.$set(i,"items",n)},expression:"element.items"}})],1)]):r("div",{attrs:{id:i.config.name?i.config.name:void 0}},[r("div",{staticClass:"m-2",class:{card:e.selected===i}},[e.selected===i?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),i.config.icon?r("i",{staticClass:"mr-2 ml-1",class:i.config.icon}):e._e(),e._v(" "+e._s(i.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(n){return e.duplicateItem(a)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(n){return e.deleteItem(a)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(i["editor-component"],e._b({tag:"component",staticClass:"p-3",class:[e.elementCssClass(i),{"prevent-interaction":!i.config.interactive}],attrs:{tabindex:i.config.interactive?0:-1,config:i.config},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},$K=[],DK=ue(EK,MK,$K,!1,null,"f4214cff",null,null);const Kx=DK.exports,Pte="",PK=1,IK={name:"MultiColumn",mixins:[mn],props:["value","name","config","selected","validationErrors"],components:{draggable:Oi,FormInput:te.FormInput,FormSelectList:te.FormSelectList,FormCheckbox:te.FormCheckbox,FormTextArea:te.FormTextArea,FormDatePicker:te.FormDatePicker,FormHtmlEditor:te.FormHtmlEditor,FormHtmlViewer:te.FormHtmlViewer,...es},data(){return{items:[],cancelledJobs:[]}},mounted(){!localStorage.getItem("cancelledJobs")||localStorage.getItem("cancelledJobs")==="null"?this.cancelledJobs=[]:this.cancelledJobs=JSON.parse(localStorage.getItem("cancelledJobs")),this.$root.$on("ai-form-generated",(t,e)=>{this.previewAiChanges(t,e)}),this.$root.$on("ai-form-progress-updated",(t,e)=>{this.updateProgress(t,e)})},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)},"config.options"(t){this.items=t.map((e,r)=>this.items[r]?this.items[r]:[])}},computed:{classContainer(){return this.items.length>0?"form-group":"column-draggable"}},methods:{hasError(t){return this.validationErrors.some(({item:e})=>e===t)},updateContainerConfig(t,e){this.items[e]=t,this.$emit("update-state")},classColumn(t){let e=PK;return this.config.options[t]&&this.config.options[t].content&&(e=this.config.options[t].content),"col-sm-"+e},inspect(t){this.$emit("inspect",t)},deleteItem(t,e){this.items[t].splice(e,1),this.$emit("update-state")},duplicateItem(t,e){const r=Y.cloneDeep(this.items[t][e]);this.items[t].push(r),this.$emit("update-state")},isAiSection(t){return t.component==="AiSection"},aiPreview(t){return t.items&&t.items[0]&&t.items[0].length},applyAiChanges(t){this.$root.$emit("apply-ai-changes",t)},previewAiChanges(t,e){this.value.forEach(r=>{r.forEach(i=>{i.component==="AiSection"&&e===i.config.aiConfig.nonce&&this.$set(i,"items",JSON.parse(JSON.stringify(t)))})})},updateProgress(t,e){this.value.forEach(r=>{r.forEach(i=>{if(i.component==="AiSection"&&e===i.config.aiConfig.nonce){if(this.cancelledJobs.some(a=>a===e))return;this.$set(i.config.aiConfig,"progress",t)}})})}}};var zK=function(){var e=this,r=e._self._c;return r("div",{staticClass:"mb-1 mt-1 pb-0 pt-0",class:e.classContainer},[r("div",{attrs:{selector:e.config.customCssSelector}},[r("div",{staticClass:"row"},[e._l(e.items,function(i,a){return[r("draggable",{key:a,staticClass:"column-draggable",class:e.classColumn(a),attrs:{value:e.items[a],group:"controls"},on:{input:function(n){return e.updateContainerConfig(n,a)}},model:{value:e.items[a],callback:function(n){e.$set(e.items,a,n)},expression:"items[index]"}},e._l(i,function(n,s){return r("div",{key:s,staticClass:"control-item",class:{selected:e.selected===n,hasError:e.hasError(n)},on:{click:function(o){return o.stopPropagation(),e.inspect(n)}}},[n.container?r("div",{on:{click:function(o){return o.stopPropagation(),e.inspect(n)}}},[r("div",{staticClass:"m-2 card border-0",class:{"ai-section-card":e.isAiSection(n)&&e.selected===n}},[e.selected===n?r("div",{staticClass:"card-header form-element-header d-flex align-items-center border rounded",class:{pulse:e.isAiSection(n)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),n.config.icon?r("i",{staticClass:"mr-2 ml-1",class:n.config.icon}):e._e(),e._v(" "+e._s(n.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[e.isAiSection(n)&&e.aiPreview(n)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Apply Changes")},on:{click:function(o){return e.applyAiChanges(n)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(n)&&e.aiPreview(n)?e._e():r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{"aria-label":e.$t("Duplicate")},on:{click:function(o){return e.duplicateItem(a,s)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(o){return e.deleteItem(a,s)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(n["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(n),attrs:{validationErrors:e.validationErrors,selected:e.selected,"ai-element":n,config:n.config},on:{inspect:e.inspect,"update-state":function(o){return e.$emit("update-state")}},model:{value:n.items,callback:function(o){e.$set(n,"items",o)},expression:"element.items"}})],1)]):r("div",{attrs:{id:n.config.name?n.config.name:void 0}},[r("div",{staticClass:"m-2",class:{card:e.selected===n}},[e.selected===n?r("div",{staticClass:"card-header form-element-header d-flex align-items-center"},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),n.config.icon?r("i",{staticClass:"mr-2 ml-1",class:n.config.icon}):e._e(),e._v(" "+e._s(n.config.name||e.$t("Variable Name"))+" "),r("div",{staticClass:"ml-auto"},[r("button",{staticClass:"btn btn-sm btn-secondary mr-2",attrs:{title:e.$t("Copy Control")},on:{click:function(o){return e.duplicateItem(a,s)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"aria-label":e.$t("Delete")},on:{click:function(o){return e.deleteItem(a,s)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])])]):e._e(),r(n["editor-component"],e._b({tag:"component",staticClass:"p-3",class:[e.elementCssClass(n),{"prevent-interaction":!n.config.interactive}],attrs:{tabindex:n.config.interactive?0:-1,config:n.config},on:{input:function(o){n.config.interactive&&(n.config.content=o)}}},"component",n.config,!1))],1)])])}),0)]})],2)])])},jK=[],LK=ue(IK,zK,jK,!1,null,"47d444df",null,null);const Jx=LK.exports,NK={props:["value"],data(){return{display:"running",errorMessage:"",showMessage:!1,variables:[]}},computed:{message(){return this.$t("{{variable}} running.",{variable:this.variables.join(", ")})}},methods:{error(t){this.display="error",this.errorMessage=t},show(t){this.variables.indexOf(t)===-1&&this.variables.push(t),this.display="running",this.errorMessage="",this.showMessage=!1,this.$refs.modal.show()},hide(t){t===-1&&this.variables.splice(0);const e=this.variables.indexOf(t);e>-1&&this.variables.splice(e,1),this.variables.length===0&&this.$refs.modal.hide()}}};var RK=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"watchers-synchronous",title:"","hide-header":"","no-close-on-esc":"","hide-header-close":"","no-close-on-backdrop":""}},[e.display==="running"?r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("svg",{staticClass:"lds-gear",attrs:{width:"50%",height:"50%",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])])]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.message))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("This window will automatically close when complete.")))])]):r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("i",{staticClass:"fas fa-sad-tear fa-10x"})]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.$t("Something has gone wrong.")))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("Unfortunately this screen has had an issue. We've notified the administrator."))+" "),r("a",{attrs:{href:"javascript:void(0)","data-cy":"watchers-show-error-message"},on:{click:function(i){e.showMessage=!e.showMessage}}},[r("i",{staticClass:"fas fa-info-circle"})])]),e.showMessage?r("small",{staticClass:"text-danger text-left small"},[e._v(e._s(e.errorMessage))]):e._e()]),r("div",{staticClass:"w-100 text-right",attrs:{slot:"modal-footer"},slot:"modal-footer"},[e.display==="error"?r("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:function(i){return e.hide(-1)}}},[e._v(e._s(e.$t("Close")))]):e._e()])])},FK=[],qK=ue(NK,RK,FK,!1,null,null,null,null);const Zx=qK.exports,Ite="",BK={name:"ScreenRenderer",components:{WatchersSynchronous:Zx,ScreenRendererError:$d},mixins:[rb,tc],props:{loopContext:{type:String,default:""}},data(){return{currentDefinition:null,codigo:"",displayAsyncLoading:!1}},watch:{definition:{deep:!0,handler(t){Y.isEmpty(t.config)||this.rebuildScreen(t)}}},mounted(){this.currentDefinition=Y.cloneDeep(this.definition),this.component=this.buildComponent(this.currentDefinition)},methods:{rebuildScreen(t){Y.isEqual(t,this.currentDefinition)||(this.currentDefinition=Y.cloneDeep(t),this.component=this.buildComponent(this.currentDefinition))},onAsyncWatcherOn(){this.displayAsyncLoading=typeof this._parent>"u"},onAsyncWatcherOff(){this.displayAsyncLoading=!1},getCurrentPage(){return this.$refs.component.getCurrentPage()},setCurrentPage(t){this.$refs.component.setCurrentPage(t)}}};var WK=function(){var e=this,r=e._self._c;return r("b-container",{attrs:{fluid:""}},[e.displayAsyncLoading?r("div",{ref:"watchersAsynchronous",staticClass:"alert alert-light",attrs:{role:"alert"}},[r("svg",{staticClass:"lds-gear",attrs:{width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])]),e._v(" "+e._s(e.$t("Loading..."))+" ")]):e._e(),r(e.component,{ref:"component",tag:"component",attrs:{vdata:e.value,_parent:e._parent,"_initial-page":e.currentPage},on:{submit:e.submit,asyncWatcherTriggered:e.onAsyncWatcherOn,asyncWatcherCompleted:e.onAsyncWatcherOff}}),e.showErrors&&e.building.error?r("screen-renderer-error",{model:{value:e.building,callback:function(i){e.building=i},expression:"building"}}):e._e(),r("watchers-synchronous",{ref:"watchersSynchronous"})],1)},VK=[],UK=ue(BK,WK,VK,!1,null,null,null,null);const GK=UK.exports,HK={name:"default-loading-spinner"};var YK=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},QK=[],KK=ue(HK,YK,QK,!1,null,null,null,null);const Xx=KK.exports,JK=!0;function mu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=mu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=mu(i))}}),e}const ek=async(t,e)=>{if(t.length===0)return;const r=lh(t[0]),i=[];t.forEach(n=>{r!==n&&i.push(n.loadValidationRules())}),await Promise.all(i);try{await r.loadValidationRules()}catch(n){console.warn("There was a problem rendering the screen",n)}const a=r.$v;if(a){let n=0,s="";a.$invalid&&(n+=mu(a.vdata),n+=mu(a.schema),s=n===1?"There is a validation error in your form.":"There are {{items}} validation errors in your form.",s=r.$t(s,{items:n})),e("basic",{key:"valid",value:!a.$invalid}),e("basic",{key:"message",value:s})}},ZK=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},XK=Y.debounce(ek,500),gu=[],eJ=(t,e)=>{gu.includes(t)||gu.push(t),XK(gu,e)},tk={namespaced:JK,state:()=>({locked:!1,valid:!0,message:"",mode:"",submitted:!1,showValidationOnLoad:!1,disableSubmit:!1}),getters:{isValidScreen(t){return t.valid},getErrorMessage(t){return t.message},getMode(t){return t.mode},showValidationErrors(t){return t.showValidationOnLoad||t.submitted}},mutations:{basic(t,e){t[e.key]=e.value},setMode(t,e){t.mode=e},disableSubmit(t,e){t.disableSubmit=e.value,t.message=e.message}},actions:{restartValidation(){gu.length=0},validate({commit:t},e){eJ(e,t)},async validateNow({commit:t},e){await ek([e],t)},close({commit:t}){t("basic",{key:"valid",value:!0})},hasSubmitted({commit:t},e){t("basic",{key:"submitted",value:e})},showValidationOnLoad({commit:t},e){t("basic",{key:"showValidationOnLoad",value:e})},async disableSubmitOnPhotoVideoUpload({commit:t},e){await ZK(t,e)}}},vu={namespaced:!0,state(){return{stack:[],position:null}},getters:{canUndo(t){return t.position>0},canRedo(t){return t.position<t.stack.length-1},currentState(t,e){const r=t.stack[t.position];return e.nextState&&e.nextState.deletedPage&&(r.currentPage=e.nextState.currentPage),r},nextState(t,e){return e.canRedo?t.stack[t.position+1]:!1}},mutations:{setPosition(t,e){t.position=e},setState(t,e){t.stack.push(e)}},methods:{emitChanges(){window.ProcessMaker.EventBus.$emit("screen-change")}},actions:{pushState({state:t,getters:e,commit:r},i){i.config!==e.currentState&&(r("setState",i),r("setPosition",t.stack.length-1),vu.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),vu.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),vu.methods.emitChanges())}}},zte="",tJ={props:{placeholder:{type:String},value:{type:String}},data(){return{query:""}},watch:{query(t){this.$emit("input",t)}},methods:{runSearch(t){this.$emit("submit",this.query)}},mounted(){this.query=this.value}};var rJ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"basic-search"},[r("div",{staticClass:"d-flex"},[r("div",{staticClass:"flex-grow-1"},[r("div",{staticClass:"search-bar-basic d-flex w-100"},[r("div",{staticClass:"search-bar-inputs flex-grow w-100"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"search_input",staticClass:"search-bar-manual-input form-control",attrs:{type:"text",placeholder:e.placeholder?e.placeholder:e.$t("Search"),"data-cy":"watchers-table-search"},domProps:{value:e.query},on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.runSearch.apply(null,arguments)},input:function(i){i.target.composing||(e.query=i.target.value)}}})]),r("div",{staticClass:"search-bar-actions d-flex flex-shrink"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"btn-search-run",attrs:{variant:"primary",title:e.$t("Search")},on:{click:e.runSearch}},[r("i",{staticClass:"fas fa-search",attrs:{"data-cy":"watchers-table-search-button"}})])],1)])]),r("div",{staticClass:"search-bar-buttons"},[e._t("buttons")],2)])])},iJ=[],aJ=ue(tJ,rJ,iJ,!1,null,"d660c896",null,null);const rk=aJ.exports,jte="",nJ={components:{FormInput:te.FormInput,FormTextArea:te.FormTextArea,MonacoEditor:Yr},mixins:[ic],props:["value"],data(){return{required:!0,numberItem:0,displayList:!0,ruleDescription:"",ruleFormula:"",rulePropName:"",editorInvalid:!1,existsProperty:!1,current:[],add:{id:0,name:"",property:"",type:"expression",formula:""},css:{tableClass:"table table-hover table-responsive text-break mb-0",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending"},fields:[{label:this.$t("Property Name"),key:"property"},{label:this.$t("Description"),key:"name"},{key:"__actions",label:"",class:"text-right"}],monacoOptions:{automaticLayout:!0,lineNumbers:"off",minimap:!1},monacoEditor:null,errors:{}}},computed:{javascriptTypeClass(){const{isJS:t}=this;return{"btn-outline-secondary":t,"text-dark":t,"btn-outline-light":!t,"text-secondary":!t}},expressionTypeClass(){const t=!this.isJS;return{"btn-outline-secondary":t,"text-dark":t,"btn-outline-light":!t,"text-secondary":!t}},isJS(){return this.add.type==="javascript"}},watch:{value(){this.value.forEach(t=>{this.numberItem++,t.id=this.numberItem}),this.current=this.value}},created(){Tt.register("exists-property",()=>{let t=!0;return this.current.forEach(e=>{e.property===this.add.property&&e.id!==this.add.id&&(t=!1)}),t},this.$t("Property already exists"))},methods:{switchExpressionType(t){this.add.type=t},show(){this.$refs.modal.show()},emptyForm(){this.add.id=0,this.add.name="",this.add.property="",this.add.type="expression",this.add.formula="",this.editorInvalid=!1,this.existsProperty=!1,this.ruleDescription="",this.ruleFormula="",this.rulePropName=""},displayTableList(){this.emptyForm(),this.displayList=!0},displayFormProperty(){this.emptyForm(),this.displayList=!1},validateData(){this.errors=[];const t={property:"required|exists-property",name:"required",formula:"required"},e={property:this.add.property,name:this.add.name,formula:this.add.formula},r=new Tt(e,t),i=r.passes();this.errors=Object.fromEntries(Object.keys(r.errors.all()).map(a=>[a,r.errors.first(a)])),i?this.saveProperty():this.focusFirstCalculatedPropertiesError()},saveProperty(){this.add.id===0?(this.numberItem++,this.current.push({id:this.numberItem,property:this.add.property,name:this.add.name,formula:this.add.formula,type:this.add.type})):this.current.forEach(t=>{t.id===this.add.id&&(t.name=this.add.name,t.property=this.add.property,t.formula=this.add.formula,t.type=this.add.type)}),this.$emit("input",this.current),this.displayTableList()},editProperty(t){this.add.id=t.id,this.add.name=t.name,this.add.property=t.property,this.add.type=t.type?t.type:"expression",this.add.formula=t.formula,this.displayList=!1},deleteProperty(t){this.current=this.current.filter(e=>e.id!==t.id),this.$emit("input",this.current),this.displayTableList()},editorMounted(t){this.monacoEditor=t}}};var sJ=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{id:"computed-properties",size:"lg",title:e.$t("Calculated Properties"),"content-class":"p-3","header-class":"m-0 p-0 mb-3","body-class":"m-0 p-0","title-class":"m-0","footer-class":"m-0 p-0","no-close-on-backdrop":"","header-close-content":"&times;","data-cy":"calcs-modal"},on:{hidden:e.displayTableList}},[e.displayList?[r("div",{staticClass:"d-flex align-items-end flex-column mb-3"},[r("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-cy":"calcs-add-property"},on:{click:function(i){return i.stopPropagation(),e.displayFormProperty.apply(null,arguments)}}},[r("i",{staticClass:"fas fa-plus"}),e._v(" "+e._s(e.$t("Property"))+" ")])]),r("div",{staticClass:"card card-body table-card"},[r("b-table",{attrs:{css:e.css,fields:e.fields,items:e.current,"empty-text":e.$t("No Data Available"),"data-cy":"calcs-table"},scopedSlots:e._u([{key:"cell(__actions)",fn:function({item:i}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"popout"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"link",title:e.$t("Edit"),"data-cy":"calcs-table-edit"},on:{click:function(a){return e.editProperty(i)}}},[r("i",{staticClass:"fas fa-edit fa-lg fa-fw"})]),r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"link",title:e.$t("Delete"),"data-cy":"calcs-table-remove"},on:{click:function(a){return e.deleteProperty(i)}}},[r("i",{staticClass:"fas fa-trash-alt fa-lg fa-fw"})])],1)])]}}],null,!1,3545130899)})],1),r("template",{slot:"modal-footer"},[r("span")])]:[r("required"),r("form-input",{ref:"property",staticClass:"mb-3",attrs:{label:e.$t("Property Name")+" *",name:"property",error:e.errors.property,"data-cy":"calcs-property-name",required:"","aria-required":"true"},model:{value:e.add.property,callback:function(i){e.$set(e.add,"property",i)},expression:"add.property"}}),r("form-text-area",{ref:"name",staticClass:"mb-3",attrs:{label:e.$t("Description")+" *",name:"name",error:e.errors.name,"data-cy":"calcs-property-description",required:"","aria-required":"true"},model:{value:e.add.name,callback:function(i){e.$set(e.add,"name",i)},expression:"add.name"}}),r("div",{staticClass:"form-group mb-3",staticStyle:{position:"relative"}},[r("label",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}]},[e._v(e._s(e.$t("Formula")+" *"))]),r("div",{staticClass:"float-right"},[r("a",{staticClass:"btn btn-sm",class:e.expressionTypeClass,attrs:{"data-cy":"calcs-switch-formula"},on:{click:function(i){return e.switchExpressionType("expression")}}},[r("i",{staticClass:"fas fa-square-root-alt"})]),r("a",{staticClass:"btn btn-sm",class:e.javascriptTypeClass,attrs:{"data-cy":"calcs-switch-javascript"},on:{click:function(i){return e.switchExpressionType("javascript")}}},[r("i",{staticClass:"fab fa-js-square"})])]),r("form-text-area",{directives:[{name:"show",rawName:"v-show",value:!e.isJS,expression:"!isJS"}],ref:"formula",attrs:{rows:"5",label:e.$t("Formula")+" *",name:"formula",error:e.errors.formula,"data-cy":"calcs-property-formula",required:"","aria-required":"true"},model:{value:e.add.formula,callback:function(i){e.$set(e.add,"formula",i)},expression:"add.formula"}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}],staticClass:"editor-border",class:{"is-invalid":!!e.errors.formula}}),r("monaco-editor",{directives:[{name:"show",rawName:"v-show",value:e.isJS,expression:"isJS"}],staticClass:"editor",attrs:{options:e.monacoOptions,language:"javascript","data-cy":"calcs-property-javascript",required:"","aria-required":"true"},on:{editorDidMount:e.editorMounted},model:{value:e.add.formula,callback:function(i){e.$set(e.add,"formula",i)},expression:"add.formula"}}),e.isJS&&e.errors.formula?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.errors.formula))])]):e._e()],1),r("template",{slot:"modal-footer"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-outline-secondary",attrs:{"data-cy":"calcs-button-cancel"},on:{click:e.displayTableList}},[e._v(" "+e._s(e.$t("Cancel"))+" ")]),r("button",{staticClass:"btn btn-secondary ml-3",attrs:{"data-cy":"calcs-button-save"},on:{click:e.validateData}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])]],2)},oJ=[],lJ=ue(nJ,sJ,oJ,!1,null,"5efce491",null,null);const uJ=lJ.exports,Lte="",cJ={props:["value","cssErrors"],components:{MonacoEditor:Yr},data(){return{saveValue:"",innerValue:"",monacoOptions:{language:"css",automaticLayout:!0,minimap:{enabled:!1}}}},watch:{innerValue(t){this.$emit("input",t)}},methods:{show(){this.innerValue=this.value,this.saveValue=this.value,this.$refs.modal.show()},close(){this.$refs.modal.hide()},hide(){this.innerValue=this.saveValue,this.$emit("input",this.innerValue)},save(){this.saveValue=this.innerValue,this.$refs.modal.hide()}}};var dJ=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"custom-css",title:e.$t("Custom CSS"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","no-close-on-backdrop":"","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),"header-close-content":"&times;"},on:{ok:e.save,cancel:e.close,hide:e.hide}},[r("p",[e._v(e._s(e.$t("You can set CSS Selector names in the inspector. Use them here with [selector='my-selector']")))]),r("div",{staticClass:"editor"},[r("monaco-editor",{staticClass:"monaco",attrs:{options:e.monacoOptions,"data-cy":"monaco-editor"},model:{value:e.innerValue,callback:function(i){e.innerValue=i},expression:"innerValue"}})],1),r("b-alert",{attrs:{show:e.cssErrors!="",variant:"danger"}},[r("pre",[e._v(e._s(e.cssErrors))])]),r("div",{attrs:{slot:"modal-cancel","data-cy":"cancel-button"},slot:"modal-cancel"},[e._v(e._s(e.$t("Cancel")))]),r("div",{attrs:{slot:"modal-ok","data-cy":"save-button"},slot:"modal-ok"},[e._v(e._s(e.$t("Save")))])],1)},pJ=[],fJ=ue(cJ,dJ,pJ,!1,null,"3824b29b",null,null);const hJ=fJ.exports,Nte="",mJ=typeof window>"u"?global:window,gJ={name:"WatchersForm",components:{FormInput:te.FormInput,FormTextArea:te.FormTextArea,FormMultiSelect:te.FormMultiSelect,FormCheckbox:te.FormCheckbox,MonacoEditor:Yr,DataMapping:jd,OutboundConfig:Fd,ScreenVariableSelector:fb},mixins:[ic],props:{config:{type:Object,default(){return{name:"",watching:"",script:"",script_id:"",script_key:"",input_data:"{}",script_configuration:"{}",output_variable:"",synchronous:!1,run_onload:!1,show_async_loading:!1}}}},data(){return{scriptConfig:"",endpoint:null,endpoints:[],ruleWatcherName:"",ruleWatcherVariable:"",ruleWatcherScript:"",ruleWatcherOutputVariable:"",required:!0,inputDataInvalid:!1,scriptConfigurationInvalid:!1,scripts:[],script:null,monacoOptions:{automaticLayout:!0,lineNumbers:"on",minimap:{enabled:!1}},endpointError:null,inputDataEditor:null,scriptConfigEditor:null}},computed:{dataSourceLink(){const t=this.selectedDataSourceId(),e=this.endpoint;return t&&e?`/designer/data-sources/${t}/resources/${e}`:""},dataSourceConfigWarning(){const t=this.selectedDataSourceId(),e=this.scripts.find(i=>i.type==="Data Connectors");if(typeof e>"u"||e===null)return"";const r=e.items.find(i=>i.id===`data_source-${t}`);return typeof r>"u"||e===null?"":r.validationStatus.length>0?r.validationStatus:""},isDatasource(){return this.config.script&&this.config.script.id.substr(0,11)==="data_source"},isScript(){return!this.config.script||this.config.script.id.substr(0,6)==="script"},hasInputData(){let t;try{t=JSON.parse(this.config.script_configuration)}catch{return!1}return typeof t.input_data>"u"||t.input_data==null?!1:Object.keys(t.input_data).length===0&&t.input_data.constructor===Object},outputVarLabel(){const t=this.ruleWatcherOutputVariable=="required"?" *":"";return this.$t("Output Variable")+t}},watch:{scriptConfig(t){try{const e=JSON.parse(this.config.script_configuration),r=JSON.parse(t);this.config.script_configuration=JSON.stringify({...e,...r},null," ")}catch{}},endpoint(t){this.setConfig("endpoint",t);const e=this.scriptConfig?JSON.parse(this.scriptConfig):{},r=e.dataMapping||[],i=this.scripts.find(a=>a.items&&a.items.length>0&&a.items[0].id&&a.items[0].id.substr(0,11)==="data_source");if(i&&r.length===0){const a=i.items.find(s=>`data_source-${e.dataSource}`===s.id),n=(a.endpoints&&a.endpoints[t]?a.endpoints[t].dataMapping:[])||[];e.dataMapping=[],n.forEach(s=>{e.dataMapping.push({key:s.key,value:s.value})}),this.scriptConfig=JSON.stringify(e)}},config:{deep:!0,immediate:!0,handler(t){t.input_data||(t.input_data="{}"),t.script_configuration?this.scriptConfig=this.config.script_configuration:t.script_configuration="{}",this.endpoint=this.getConfig().endpoint}},"config.script":{handler(t,e){if(!t)this.config.script_id="",this.config.script_key="",this.config.datasource_script_id="";else if(typeof t=="object"){const r=t.id.split("-"),i=e&&e.id&&e.id.split("-").length>0?e.id.split("-")[0]:"";this.config.script_id=r[1],this.config.script_key=t.key,i!==r[0]&&(this.config.script_configuration="{}"),r[0]==="data_source"&&this.setConfig("dataSource",this.config.script_id),this.config.datasource_script_id=t.dataSourceScriptId}return t}}},methods:{selectedDataSourceId(){let t=null;try{t=JSON.parse(this.scriptConfig).dataSource}catch{t=null}return t},setValidations(){this.ruleWatcherName="required",this.ruleWatcherVariable="required",this.ruleWatcherScript="required",this.hasInputData&&(this.ruleWatcherOutputVariable="required")},getConfig(){try{return JSON.parse(this.config.script_configuration)}catch{return{}}},setConfig(t,e){const r=this.getConfig();JSON.stringify(r[t])!==JSON.stringify(e)&&(r[t]=e,this.config.script_configuration=JSON.stringify(r),this.scriptConfig=this.config.script_configuration)},loadEndpoints(){const t=this.config.script.id.substr(0,11)==="data_source"?this.config.script.id.substr(12):null;this.endpoints.splice(0),t&&window.ProcessMaker&&window.ProcessMaker.apiClient&&window.ProcessMaker.apiClient.get(`/data_sources/${t}`).then(e=>{for(const r in e.data.endpoints)this.endpoints.push(r)})},loadSources(){this.scripts=[],this.$root.$children[0].watchers_config.api.scripts.forEach(t=>{t(this.scripts)})},displayTableList(){this.$emit("display-list")},jsonIsValid(t){try{JSON.parse(this.config[t])}catch{return!1}return!0},isFormValid(){this.isDatasource&&!this.endpoint?this.endpointError=this.$t("Endpoint is required"):this.endpointError=null;for(const t in this.$refs)if(this.$refs[t]&&this.$refs[t].name&&this.$refs[t].validator&&this.$refs[t].validator.errorCount!==0)return!1;return!(!this.config.watching||!this.config.script||this.endpointError||!this.jsonIsValid("input_data")||!this.jsonIsValid("script_configuration"))},validateDataAndSave(){this.setValidations(),this.$nextTick(()=>{if(!this.isFormValid()){mJ.ProcessMaker.alert(this.$t("An error occurred. Check the form for errors in red text."),"danger"),this.focusFirstWatcherError();return}this.config.uid||(this.config.uid=Y.uniqueId(new Date().getTime())),this.save()})},save(){this.$emit("save-form")},inputDataEditorMounted(t){this.inputDataEditor=t},scriptConfigEditorMounted(t){this.scriptConfigEditor=t}}};var vJ=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"accordion",attrs:{id:"watcherAccordion"}},[r("div",{staticClass:"card card-overflow"},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherConfigButton",staticClass:"p-3 btn btn-link d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherConfig","data-cy":"watchers-accordion-configuration"}},[e._m(0),e._m(1)])])]),r("div",{staticClass:"collapse show",attrs:{id:"watcherConfig","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[r("form-input",{ref:"name",attrs:{label:e.$t("Watcher Name")+" *",name:e.$t("Watcher Name"),validation:e.ruleWatcherName,helper:e.$t("A name to describe this Watcher"),"data-cy":"watchers-watcher-name",required:"","aria-required":"true"},model:{value:e.config.name,callback:function(i){e.$set(e.config,"name",i)},expression:"config.name"}}),r("screen-variable-selector",{ref:"watching",attrs:{name:e.$t("Variable to Watch"),label:e.$t("Variable to Watch")+" *",validation:e.ruleWatcherVariable,helper:e.$t("Select the variable to watch on this screen or type any request variable name"),"data-cy":"watchers-watcher-variable"},model:{value:e.config.watching,callback:function(i){e.$set(e.config,"watching",i)},expression:"config.watching"}}),r("form-checkbox",{attrs:{name:e.$t("Run Synchronously"),label:e.$t("Run Synchronously"),toggle:!0,helper:e.$t("Wait for the Watcher to run before accepting more input"),"data-cy":"watchers-watcher-synchronous"},model:{value:e.config.synchronous,callback:function(i){e.$set(e.config,"synchronous",i)},expression:"config.synchronous"}}),r("form-checkbox",{directives:[{name:"show",rawName:"v-show",value:!e.config.synchronous,expression:"!config.synchronous"}],attrs:{name:e.$t("Show message while loading remote data"),label:e.$t("Show message while loading remote data"),toggle:!0,"data-cy":"watchers-watcher-show-loading"},model:{value:e.config.show_async_loading,callback:function(i){e.$set(e.config,"show_async_loading",i)},expression:"config.show_async_loading"}}),r("form-checkbox",{attrs:{name:e.$t("Run Watcher on Screen Load"),label:e.$t("Run watcher on Screen Load"),toggle:!0,"data-cy":"watchers-watcher-run-onload"},model:{value:e.config.run_onload,callback:function(i){e.$set(e.config,"run_onload",i)},expression:"config.run_onload"}})],1)])]),r("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherSourceButton",staticClass:"p-3 btn btn-link collapsed d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherSource","data-cy":"watchers-accordion-source"}},[e._m(2),e._m(3)])])]),r("div",{staticClass:"collapse",attrs:{id:"watcherSource","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[r("form-multi-select",{ref:"script",attrs:{name:e.$t("Source"),label:e.$t("Source")+" *",options:e.scripts,placeholder:e.$t("None"),multiple:!1,"show-labels":!1,searchable:!0,"option-value":"id","option-content":"title","group-values":"items","group-label":"type",validation:e.ruleWatcherScript,helper:e.$t("The source to access when this Watcher runs"),"data-cy":"watchers-watcher-source"},on:{open:e.loadSources},model:{value:e.config.script,callback:function(i){e.$set(e.config,"script",i)},expression:"config.script"}}),e.isScript?r("div",[e.config.script?r("b-alert",{attrs:{show:"",variant:"warning"}},[r("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" "+e._s(e.$t("Using watchers with Scripts can slow the performance of your screen."))+" ")]):e._e(),r("div",{staticClass:"form-group"},[r("label",[e._v(e._s(e.$t("Input Data")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("input_data")}},[r("monaco-editor",{ref:"input_data",staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-input_data"},on:{editorDidMount:e.inputDataEditorMounted},model:{value:e.config.input_data,callback:function(i){e.$set(e.config,"input_data",i)},expression:"config.input_data"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Data to pass to the script (valid JSON object, variables supported)")))]),e.inputDataInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("The Input Data field is required")))])]):e._e(),e.jsonIsValid("input_data")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])]),r("div",{staticClass:"form-group"},[r("label",[e._v(e._s(e.$t("Script Configuration")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("script_configuration")}},[r("monaco-editor",{ref:"script_configuration",staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-script_configuration"},on:{editorDidMount:e.scriptConfigEditorMounted},model:{value:e.config.script_configuration,callback:function(i){e.$set(e.config,"script_configuration",i)},expression:"config.script_configuration"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Configuration data for the script (valid JSON object, variables supported)")))]),e.scriptConfigurationInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(" "+e._s(e.$t("The Script Configuration field is required"))+" ")])]):e._e(),e.jsonIsValid("script_configuration")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])])],1):e._e(),e.isDatasource?r("div",[r("div",{staticClass:"form-group"},[r("form-multi-select",{ref:"endpoint",attrs:{name:e.$t("Resource"),label:e.$t("Resource"),options:e.endpoints,placeholder:e.$t("Select a resource"),multiple:!1,"show-labels":!1,searchable:!0,"internal-search":!1,helper:e.$t("The Data Connector resource to access when this Watcher runs"),"data-cy":"watchers-watcher-endpoint"},on:{"search-change":e.loadEndpoints,open:function(i){return e.loadEndpoints()}},model:{value:e.endpoint,callback:function(i){e.endpoint=i},expression:"endpoint"}}),e.endpointError?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.endpointError))])]):e._e(),e.dataSourceConfigWarning.length>0?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.dataSourceConfigWarning))])]):e._e(),r("a",{directives:[{name:"show",rawName:"v-show",value:e.dataSourceLink.length>0,expression:"dataSourceLink.length > 0"}],staticClass:"link-primary",attrs:{href:e.dataSourceLink,target:"_blank"}},[e._v(" "+e._s(e.$t("Open Data Connector"))+" "),r("i",{staticClass:"ml-1 fas fa-external-link-alt"})])],1),e.hasInputData?e._e():r("outbound-config",{model:{value:e.scriptConfig,callback:function(i){e.scriptConfig=i},expression:"scriptConfig"}}),e.hasInputData?r("div",{staticClass:"form-group"},[e._m(4),r("div",{staticClass:"row pl-3 mt-1"},[r("label",[e._v(e._s(e.$t("Input Data")))]),r("div",{staticClass:"form-border",class:{"is-invalid":!e.jsonIsValid("input_data")}},[r("monaco-editor",{staticClass:"editor",attrs:{options:e.monacoOptions,language:"json","data-cy":"watchers-watcher-input_data"},model:{value:e.config.input_data,callback:function(i){e.$set(e.config,"input_data",i)},expression:"config.input_data"}})],1),r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.$t("Data to pass to the Data Connector (valid JSON object, variables supported)")))]),e.inputDataInvalid?r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("The Input Data field is required")))])]):e._e(),e.jsonIsValid("input_data")?e._e():r("div",{staticClass:"invalid-feedback d-block"},[r("div",[e._v(e._s(e.$t("This must be valid JSON")))])])])]):e._e()],1):e._e()],1)])]),r("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[r("div",{staticClass:"card-header p-0"},[r("div",{staticClass:"mb-0"},[r("button",{ref:"watcherOutputButton",staticClass:"p-3 btn btn-link collapsed d-flex w-100 text-capitalize text-reset justify-content-between",attrs:{type:"button","data-toggle":"collapse","data-target":"#watcherOutput","data-cy":"watchers-accordion-output"}},[e._m(5),e._m(6)])])]),r("div",{staticClass:"collapse",attrs:{id:"watcherOutput","data-parent":"#watcherAccordion"}},[r("div",{staticClass:"card-body pt-3 px-3 pb-0"},[e.hasInputData||e.isScript?r("form-input",{ref:"propOutputVariableName",attrs:{label:e.outputVarLabel,name:e.$t("Output Variable"),helper:e.$t("The variable that will store the output of the Watcher"),validation:e.ruleWatcherOutputVariable,"data-cy":"watchers-watcher-output_variable",required:e.ruleWatcherOutputVariable=="required","aria-required":e.ruleWatcherOutputVariable=="required"},model:{value:e.config.output_variable,callback:function(i){e.$set(e.config,"output_variable",i)},expression:"config.output_variable"}}):e._e(),e.isDatasource?r("data-mapping",{model:{value:e.scriptConfig,callback:function(i){e.scriptConfig=i},expression:"scriptConfig"}}):e._e()],1)])])]),r("div",{staticClass:"d-flex justify-content-end mt-3"},[r("button",{staticClass:"btn btn-outline-secondary",attrs:{"data-cy":"watchers-button-cancel"},on:{click:function(i){return i.stopPropagation(),e.displayTableList.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("Cancel"))+" ")]),r("button",{staticClass:"btn btn-secondary ml-3",attrs:{"data-cy":"watchers-button-save"},on:{click:e.validateDataAndSave}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])},bJ=[function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-cog"}),t._v(" Configuration")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-file-upload"}),t._v(" Source")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row pl-3"},[e("span",{staticClass:"text-danger"},[t._v(" * Deprecation Warning: Recreate the watcher to use the new format. Version 4.2 will not support Input Data as a JSON object. ")])])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-fw fa-file-download"}),t._v(" Output")])},function(){var t=this,e=t._self._c;return e("div",[e("i",{staticClass:"fas fa-angle-down arrow-open mr-2"}),e("i",{staticClass:"fas fa-angle-right arrow-closed mr-2"})])}],yJ=ue(gJ,vJ,bJ,!1,null,"60e1dcd1",null,null);const ik=yJ.exports,Rte="",SJ={components:{BasicSearch:rk,FormInput:te.FormInput,FormTextArea:te.FormTextArea},props:{value:{type:Array,default(){return[]}}},data(){return{filter:"",css:{tableClass:"table table-hover table-responsive text-break mb-0",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending"},fields:[{label:this.$t("Name"),key:"name",tdClass:"break-word"},{label:this.$t("Watching Variable"),key:"watching"},{label:this.$t("Output Variable"),key:"output_variable",tdClass:"break-word"},{label:this.$t("Source"),key:"script.title"},{key:"actions",label:""}]}},computed:{filtered(){const t=this.getValuesWithOutputVarsNames(this.value);if(!this.filter)return t;const e=[];return t.forEach(r=>{Object.keys(r).find(i=>typeof r[i]=="string"?r[i].indexOf(this.filter)>=0:!1)&&e.push(r)}),e}},methods:{search(){},displayFormProperty(){this.$emit("display-form")},editProperty(t){this.$emit("edit-form",t)},deleteProperty(t){this.$emit("delete-form",t)},getValuesWithOutputVarsNames(t){return t.map(r=>{let i=Object.assign({},r);if(i.script&&i.script.id&&i.script.id.substr(0,11)==="data_source"){let a=JSON.parse(i.script_configuration),n=a&&a.dataMapping?a.dataMapping.map(o=>o.key).join(", "):"";const s=50;i.output_variable=n.length>s?n.substr(0,s)+"...":n}return i})}}};var xJ=function(){var e=this,r=e._self._c;return r("div",[r("b-row",{staticClass:"mb-3"},[r("b-col",[r("basic-search",{on:{submit:e.search},model:{value:e.filter,callback:function(i){e.filter=i},expression:"filter"}},[r("template",{slot:"buttons"},[r("b-btn",{staticClass:"text-nowrap",attrs:{variant:"secondary","data-cy":"watchers-add-watcher"},on:{click:function(i){return i.stopPropagation(),e.displayFormProperty.apply(null,arguments)}}},[r("i",{staticClass:"fas fa-plus"}),e._v(" "+e._s(e.$t("Watcher"))+" ")])],1)],2)],1)],1),r("div",{staticClass:"card card-body table-card watchers-list"},[r("b-table",{attrs:{items:e.filtered,fields:e.fields,"empty-text":e.$t("No Data Available"),"data-cy":"watchers-table","sort-icon-left":""},scopedSlots:e._u([{key:"cell(actions)",fn:function({item:i}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"popout"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"link",title:e.$t("Edit"),"data-cy":"watchers-table-edit"},on:{click:function(a){return e.editProperty(i)}}},[r("i",{staticClass:"fas fa-edit fa-lg fa-fw"})]),r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"link",title:e.$t("Delete"),"data-cy":"watchers-table-remove"},on:{click:function(a){return e.deleteProperty(i)}}},[r("i",{staticClass:"fas fa-trash-alt fa-lg fa-fw"})])],1)])]}}])})],1),r("template",{slot:"modal-footer"},[r("span")])],2)},kJ=[],_J=ue(SJ,xJ,kJ,!1,null,null,null,null);const ak=_J.exports,nk=typeof window>"u"?global:window,wJ={components:{FormInput:te.FormInput,FormTextArea:te.FormTextArea,MonacoEditor:Yr,WatchersList:ak,WatchersForm:ik},props:["value"],data(){return{enableList:!0,current:[],add:{uid:"",name:"",variable:"",script_id:"",script_key:"",input_data:"",script_configuration:"",synchronous:!1}}},watch:{value:{handler(t){this.current=t}}},computed:{},methods:{show(){this.$refs.modal.show()},displayList(){this.add={},this.enableList=!0},displayForm(){this.add={},this.enableList=!1},save(){let t=this.$t("Watcher Saved"),e=this.current.findIndex(r=>r.uid===this.add.uid);e===-1?this.current.push(this.add):(t=this.$t("Watcher Updated"),this.current[e]=this.add),this.showAlert(t),this.$emit("input",this.current),this.displayList()},edit(t){this.displayForm(),this.$set(this,"add",Y.cloneDeep(t))},confirmRemoval(t){nk.ProcessMaker.confirmModal(this.$t("Caution!"),this.$t("Are you sure you want to delete the Watcher?"),"",()=>{this.remove(t)})},remove(t){this.current=this.current.filter(e=>e.uid!==t.uid),this.$emit("input",this.current),this.showAlert(this.$t("Watcher deleted")),this.displayList()},showAlert(t){nk.ProcessMaker.alert(t,"success")}}};var CJ=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"watchers-popup",title:e.$t("Watchers"),"hide-footer":"","header-close-content":"&times;","no-close-on-backdrop":"","data-cy":"watchers-modal"},on:{hidden:e.displayList}},[e.enableList?[r("watchers-list",{on:{"display-form":e.displayForm,"edit-form":e.edit,"delete-form":e.confirmRemoval},model:{value:e.current,callback:function(i){e.current=i},expression:"current"}})]:[r("required"),r("watchers-form",{attrs:{refs:"form",config:e.add},on:{"display-list":e.displayList,"save-form":e.save}})]],2)},TJ=[],AJ=ue(wJ,CJ,TJ,!1,null,null,null,null);const OJ=AJ.exports,EJ={...es,FormMultiColumn:fu};function MJ(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const $J={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",Uu),t.component("FormImage",Qn),t.component("FormLoop",Kn),t.component("FormMultiColumn",fu),t.component("FormNestedScreen",Jn),t.component("FormRecordList",Cl),t.component("Loop",Kx),t.component("MultiColumn",Jx),t.component("NewFormMultiColumn",Md),t.component("ScreenRenderer",GK),t.component("Task",Qx),t.component("VueFormBuilder",zb),t.component("VueFormRenderer",Fx),t.component("DefaultLoadingSpinner",Xx),t.use(te),t.component("FormButton",qi),t.component("FileUpload",vn),t.component("FileDownload",Js),t.component("FormAnalyticsChart",Xn),t.component("FormMaskedInput",Bi),t.use(_l),t.use(Pt),t.component("FormListTable",Zn);const e=new Pt.Store({modules:{globalErrorsModule:tk,undoRedoModule:vu}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return MJ(this).getDataReference(r,i)}}})}};function DJ(t,e){t.defaults.adapter=qv(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new yl({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}K.AddLoopRow=Uu,K.AnalyticsSelector=Eb,K.BasicSearch=rk,K.CollectionSelectList=zd,K.ColorSelect=mb,K.ColumnSetup=gb,K.ComputedProperties=uJ,K.ContainerColumns=vb,K.Currencies=Z9,K.CurrentPageProperty=tc,K.CustomCSS=hJ,K.DataFormatProperty=Yx,K.DataMapping=jd,K.DataReference=oh,K.DataTypeBooleanProperty=bK,K.DataTypeDateTimeProperty=Hx,K.DataTypeProperty=Gx,K.DataTypeWithoutDateProperty=vK,K.DefaultLoadingSpinner=Xx,K.DefaultValueEditor=Ld,K.DeviceDetector=ch,K.DeviceVisibility=Zc,K.EditOption=bb,K.FileDownload=Js,K.FileUpload=vn,K.FormAnalyticsChart=Xn,K.FormBuilderControls=yK,K.FormButton=qi,K.FormImage=Qn,K.FormInputMasked=Bi,K.FormListTable=Zn,K.FormLoop=Kn,K.FormMaskedInput=Bi,K.FormMultiselect=Nd,K.FormNestedScreen=Jn,K.FormRecordList=Cl,K.FormRecordListStatic=pb,K.FormRequests=Id,K.FormTasks=Pd,K.FormText=Tl,K.HasColorProperty=mn,K.ImageUpload=yb,K.ImageVariable=Sb,K.InputVariable=Rd,K.Json2Vue=rb,K.LabelSubmitButton=Ob,K.LabelSubmitButtonProperty=rv,K.LoadingSubmitButton=Ab,K.LoadingSubmitButtonProperty=tv,K.Loop=Kx,K.LoopInspector=xb,K.MultiColumn=Jx,K.MultipleUploadsCheckbox=Ib,K.MustacheHelper=Aa,K.NewFormMultiColumn=Md,K.OptionsList=kb,K.OutboundConfig=Fd,K.PageSelect=_b,K.RequiredCheckbox=Pb,K.ScreenBase=td,K.ScreenRendererError=$d,K.ScreenSelector=wb,K.SelectDataTypeMask=qd,K.Task=Qx,K.Tooltip=Jc,K.ValidationMsg=rl,K.ValidationSelect=Tb,K.VariableNameGenerator=Db,K.VisibilityRule=iv,K.VueFormBuilder=zb,K.VueFormRenderer=Fx,K.WatchersForm=ik,K.WatchersList=ak,K.WatchersPopup=OJ,K.WatchersSynchronous=Zx,K.accordions=$b,K.bgcolorProperty=ui,K.buttonLabelProperty=Jg,K.buttonTypeEvent=Xg,K.buttonVariantStyleProperty=ed,K.canOpenJsonFile=E_,K.colorProperty=ci,K.computedFields=ah,K.dataSourceValues=Hr,K.dataSources=ts,K.datatable=rc,K.default=$J,K.defaultValueProperty=Ln,K.defaultValues=Cw,K.deviceVisibilityProperty=wq,K.disabledProperty=Xc,K.focusErrors=ic,K.formTypes=rs,K.formWatchers=qE,K.getValidPath=Ec,K.globalErrorsModule=tk,K.globalProperties=G9,K.helperTextProperty=ya,K.initializeScreenCache=DJ,K.inspector=Mb,K.javascriptReservedKeywords=el,K.keyNameProperty=Qt,K.labelProperty=Br,K.multiselectApi=ib,K.mustacheEvaluation=Od,K.placeholderProperty=jn,K.readonlyProperty=tl,K.renderer=EJ,K.shouldElementBeVisible=ab,K.testing=sb,K.toggleStyleProperty=Zg,K.tooltipProperty=ev,K.validationRulesProperty=Ri,K.validators=il,K.watchers=av,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/screen-builder",
3
- "version": "2.82.0",
3
+ "version": "2.82.1",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "serve": "vue-cli-service serve",
@@ -340,7 +340,7 @@ export default [
340
340
  rendererComponent: FormButton,
341
341
  rendererBinding: 'FormButton',
342
342
  control: {
343
- popoverContent: "Add and reuse another Form within this Form",
343
+ popoverContent: "Add special buttons that link between subpages within this Form",
344
344
  order: 1.0,
345
345
  group: 'Navigation',
346
346
  label: 'Page Navigation',
@@ -420,7 +420,7 @@ export default [
420
420
  rendererComponent: FormLoop,
421
421
  rendererBinding: 'FormLoop',
422
422
  control: {
423
- popoverContent: "Format content in a table structure and allow for adding rows",
423
+ popoverContent: "Add a repeatable section of content",
424
424
  order: 5.0,
425
425
  group: 'Content Fields',
426
426
  label: 'Loop',
@@ -456,7 +456,7 @@ export default [
456
456
  rendererComponent: FormRecordList,
457
457
  rendererBinding: 'FormRecordList',
458
458
  control: {
459
- popoverContent: "Format content in a table structure",
459
+ popoverContent: "Format content in a table structure and allow for adding rows",
460
460
  order: 4.0,
461
461
  group: 'Content Fields',
462
462
  label: 'Record List',
@@ -647,7 +647,7 @@ export default [
647
647
  rendererComponent: FormNestedScreen,
648
648
  rendererBinding: 'FormNestedScreen',
649
649
  control: {
650
- popoverContent: "Add a repeatable section of content",
650
+ popoverContent: "Add and reuse another Form within this Form",
651
651
  order: 6.0,
652
652
  group: 'Content Fields',
653
653
  label: 'Nested Screen',
@@ -682,7 +682,7 @@ export default [
682
682
  builderBinding: 'FileUpload',
683
683
  control: {
684
684
  group: "Files",
685
- popoverContent: "Add special buttons that link between subpages within this Form",
685
+ popoverContent: "Collect files uploaded into the Form",
686
686
  order: 1.0,
687
687
  label: 'File Upload',
688
688
  component: 'FileUpload',
@@ -734,7 +734,7 @@ export default [
734
734
  builderComponent: FileDownload,
735
735
  builderBinding: 'FileDownload',
736
736
  control: {
737
- popoverContent: "Collect files uploaded into the Form",
737
+ popoverContent: "Offer a File download",
738
738
  order: 2.0,
739
739
  group: "Files",
740
740
  label: 'File Download',
@@ -770,7 +770,7 @@ export default [
770
770
  builderComponent: BFormComponent,
771
771
  builderBinding: 'BFormComponent',
772
772
  control: {
773
- popoverContent: "Add a Preview section that displays the content of a File",
773
+ popoverContent: "Add one of several Bootstrap Vue components",
774
774
  order: 1.0,
775
775
  group: 'Advanced',
776
776
  label: 'Bootstrap Component',
@@ -824,7 +824,7 @@ export default [
824
824
  builderComponent: BWrapperComponent,
825
825
  builderBinding: 'BWrapperComponent',
826
826
  control: {
827
- popoverContent: "Wrap an existing subpage within this Form into a Bootstrap Vue component ",
827
+ popoverContent: "Wrap an existing subpage within this Form into a Bootstrap Vue component",
828
828
  order: 2.0,
829
829
  group: 'Advanced',
830
830
  label: 'Bootstrap Wrapper',