@processmaker/screen-builder 3.8.22 → 3.8.23
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.
- package/dist/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.es.js +40 -2
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +2 -2
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/renderer/form-record-list.vue +77 -0
- package/src/components/task.vue +6 -0
|
@@ -353,7 +353,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
353
353
|
}`},"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>
|
|
354
354
|
| <mf-value> [ '<' | '>' ]? '='? <mf-name>
|
|
355
355
|
| <mf-value> '<' '='? <mf-name> '<' '='? <mf-value>
|
|
356
|
-
| <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>"}},CW={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"}}},kW=wW,TW=SW,MW=PW,ep=CW,Zx=/^\s*\|\s*/;function DW(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 tp(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]=Zx.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(Zx,""));return r}function Kx(t){const e={};for(const r in t)e[r]=t[r].syntax;return e}function AW(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?tp(t[i].descriptors,a||{}):a&&Kx(a)}}for(const i in e)hasOwnProperty.call(t,i)||(r[i]={prelude:e[i].prelude||null,descriptors:e[i].descriptors&&Kx(e[i].descriptors)});return r}var OW={types:tp(MW,ep.syntaxes),atrules:AW(DW(kW),ep.atrules),properties:tp(TW,ep.properties)},_x=de.cmpChar,$x=de.isDigit,Ps=de.TYPE,ew=Ps.WhiteSpace,tw=Ps.Comment,rp=Ps.Ident,ii=Ps.Number,zW=Ps.Dimension,Nr=43,Vt=45,vu=110,$i=!0,EW=!1;function gu(t,e){var r=this.scanner.tokenStart+t,i=this.scanner.source.charCodeAt(r);for((i===Nr||i===Vt)&&(e&&this.error("Number sign is not allowed"),r++);r<this.scanner.tokenEnd;r++)$x(this.scanner.source.charCodeAt(r))||this.error("Integer is expected",r)}function Za(t){return gu.call(this,0,t)}function Si(t,e){if(!_x(this.scanner.source,this.scanner.tokenStart+t,e)){var r="";switch(e){case vu:r="N is expected";break;case Vt:r="HyphenMinus is expected";break}this.error(r,this.scanner.tokenStart+t)}}function ip(){for(var t=0,e=0,r=this.scanner.tokenType;r===ew||r===tw;)r=this.scanner.lookupType(++t);if(r!==ii)if(this.scanner.isDelim(Nr,t)||this.scanner.isDelim(Vt,t)){e=this.scanner.isDelim(Nr,t)?Nr:Vt;do r=this.scanner.lookupType(++t);while(r===ew||r===tw);r!==ii&&(this.scanner.skip(t),Za.call(this,$i))}else return null;return t>0&&this.scanner.skip(t),e===0&&(r=this.scanner.source.charCodeAt(this.scanner.tokenStart),r!==Nr&&r!==Vt&&this.error("Number sign is expected")),Za.call(this,e!==0),e===Vt?"-"+this.consume(ii):this.consume(ii)}var jW={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var t=this.scanner.tokenStart,e=null,r=null;if(this.scanner.tokenType===ii)Za.call(this,EW),r=this.consume(ii);else if(this.scanner.tokenType===rp&&_x(this.scanner.source,this.scanner.tokenStart,Vt))switch(e="-1",Si.call(this,1,vu),this.scanner.getTokenLength()){case 2:this.scanner.next(),r=ip.call(this);break;case 3:Si.call(this,2,Vt),this.scanner.next(),this.scanner.skipSC(),Za.call(this,$i),r="-"+this.consume(ii);break;default:Si.call(this,2,Vt),gu.call(this,3,$i),this.scanner.next(),r=this.scanner.substrToCursor(t+2)}else if(this.scanner.tokenType===rp||this.scanner.isDelim(Nr)&&this.scanner.lookupType(1)===rp){var i=0;switch(e="1",this.scanner.isDelim(Nr)&&(i=1,this.scanner.next()),Si.call(this,0,vu),this.scanner.getTokenLength()){case 1:this.scanner.next(),r=ip.call(this);break;case 2:Si.call(this,1,Vt),this.scanner.next(),this.scanner.skipSC(),Za.call(this,$i),r="-"+this.consume(ii);break;default:Si.call(this,1,Vt),gu.call(this,2,$i),this.scanner.next(),r=this.scanner.substrToCursor(t+i+1)}}else if(this.scanner.tokenType===zW){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=a===Nr||a===Vt,n=this.scanner.tokenStart+i;n<this.scanner.tokenEnd&&$x(this.scanner.source.charCodeAt(n));n++);n===this.scanner.tokenStart+i&&this.error("Integer is expected",this.scanner.tokenStart+i),Si.call(this,n-this.scanner.tokenStart,vu),e=this.scanner.source.substring(t,n),n+1===this.scanner.tokenEnd?(this.scanner.next(),r=ip.call(this)):(Si.call(this,n-this.scanner.tokenStart+1,Vt),n+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),Za.call(this,$i),r="-"+this.consume(ii)):(gu.call(this,n-this.scanner.tokenStart+2,$i),this.scanner.next(),r=this.scanner.substrToCursor(n+1)))}else this.error();return e!==null&&e.charCodeAt(0)===Nr&&(e=e.substr(1)),r!==null&&r.charCodeAt(0)===Nr&&(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))}},NW=de,bu=NW.TYPE,IW=bu.WhiteSpace,ap=bu.Semicolon,rw=bu.LeftCurlyBracket,LW=bu.Delim,FW=33;function BW(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===IW?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function iw(){return 0}function RW(t){return t===rw?1:0}function HW(t){return t===rw||t===ap?1:0}function VW(t,e,r){return t===LW&&e.charCodeAt(r)===FW||t===ap?1:0}function qW(t){return t===ap?2:0}var ea={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||iw)),r&&this.scanner.tokenStart>i?a=BW.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:iw,leftCurlyBracket:RW,leftCurlyBracketOrSemicolon:HW,exclamationMarkOrSemicolon:VW,semicolonIncluded:qW}},yu=de.TYPE,WW=ea.mode,aw=yu.AtKeyword,nw=yu.Semicolon,np=yu.LeftCurlyBracket,XW=yu.RightCurlyBracket;function sw(t){return this.Raw(t,WW.leftCurlyBracketOrSemicolon,!0)}function JW(){for(var t=1,e;e=this.scanner.lookupType(t);t++){if(e===XW)return!0;if(e===np||e===aw)return!1}return!1}var UW={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(aw),e=this.scanner.substrToCursor(t+1),r=e.toLowerCase(),this.scanner.skipSC(),this.scanner.eof===!1&&this.scanner.tokenType!==np&&this.scanner.tokenType!==nw&&(this.parseAtrulePrelude?(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),sw),i.type==="AtrulePrelude"&&i.children.head===null&&(i=null)):i=sw.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case nw:this.scanner.next();break;case np:this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this):a=this.Block(JW.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"},ow=de.TYPE,GW=ow.Semicolon,QW=ow.LeftCurlyBracket,YW={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!==QW&&this.scanner.tokenType!==GW&&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"},Cs=de.TYPE,ks=Cs.Ident,ZW=Cs.String,KW=Cs.Colon,_W=Cs.LeftSquareBracket,lw=Cs.RightSquareBracket,$W=36,uw=42,xu=61,eX=94,sp=124,tX=126;function rX(){this.scanner.eof&&this.error("Unexpected end of input");var t=this.scanner.tokenStart,e=!1,r=!0;return this.scanner.isDelim(uw)?(e=!0,r=!1,this.scanner.next()):this.scanner.isDelim(sp)||this.eat(ks),this.scanner.isDelim(sp)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==xu?(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===KW&&(this.scanner.next(),this.eat(ks)),{type:"Identifier",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}}function iX(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(t);return e!==xu&&e!==tX&&e!==eX&&e!==$W&&e!==uw&&e!==sp&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),e!==xu&&(this.scanner.isDelim(xu)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(t)}var aX={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(_W),this.scanner.skipSC(),e=rX.call(this),this.scanner.skipSC(),this.scanner.tokenType!==lw&&(this.scanner.tokenType!==ks&&(r=iX.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===ZW?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===ks&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(lw),{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("]")}},Ka=de.TYPE,nX=ea.mode,sX=Ka.WhiteSpace,oX=Ka.Comment,cw=Ka.Semicolon,lX=Ka.AtKeyword,uX=Ka.LeftCurlyBracket,dw=Ka.RightCurlyBracket;function fw(t){return this.Raw(t,null,!0)}function cX(){return this.parseWithFallback(this.Rule,fw)}function pw(t){return this.Raw(t,nX.semicolonIncluded,!0)}function dX(){if(this.scanner.tokenType===cw)return pw.call(this,this.scanner.tokenIndex);var t=this.parseWithFallback(this.Declaration,pw);return this.scanner.tokenType===cw&&this.scanner.next(),t}var fX={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(t){var e=t?dX:cX,r=this.scanner.tokenStart,i=this.createList();this.eat(uX);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case dw:break e;case sX:case oX:this.scanner.next();break;case lX:i.push(this.parseWithFallback(this.Atrule,fw));break;default:i.push(e.call(this))}return this.scanner.eof||this.eat(dw),{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"},hw=de.TYPE,pX=hw.LeftSquareBracket,hX=hw.RightSquareBracket,mX={name:"Brackets",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(pX),i=t.call(this,e),this.scanner.eof||this.eat(hX),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("["),this.children(t),this.chunk("]")}},vX=de.TYPE.CDC,gX={name:"CDC",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(vX),{type:"CDC",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("-->")}},bX=de.TYPE.CDO,yX={name:"CDO",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(bX),{type:"CDO",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("<!--")}},xX=de.TYPE,wX=xX.Ident,SX=46,PX={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(SX)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(wX)}},generate:function(t){this.chunk("."),this.chunk(t.name)}},CX=de.TYPE,kX=CX.Ident,TX=43,mw=47,MX=62,DX=126,AX={name:"Combinator",structure:{name:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case MX:case TX:case DX:this.scanner.next();break;case mw:this.scanner.next(),(this.scanner.tokenType!==kX||this.scanner.lookupValue(0,"deep")===!1)&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(mw)||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)}},OX=de.TYPE,zX=OX.Comment,EX=42,jX=47,NX={name:"Comment",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenEnd;return this.eat(zX),e-t+2>=2&&this.scanner.source.charCodeAt(e-2)===EX&&this.scanner.source.charCodeAt(e-1)===jX&&(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("*/")}},IX=pf.isCustomProperty,_a=de.TYPE,vw=ea.mode,gw=_a.Ident,bw=_a.Hash,LX=_a.Colon,yw=_a.Semicolon,xw=_a.Delim,FX=_a.WhiteSpace,ww=33,BX=35,RX=36,HX=38,VX=42,qX=43,Sw=47;function WX(t){return this.Raw(t,vw.exclamationMarkOrSemicolon,!0)}function XX(t){return this.Raw(t,vw.exclamationMarkOrSemicolon,!1)}function JX(){var t=this.scanner.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==yw&&this.scanner.isDelim(ww)===!1&&this.scanner.isBalanceEdge(t)===!1&&this.error(),e}var UX={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenIndex,r=GX.call(this),i=IX(r),a=i?this.parseCustomProperty:this.parseValue,n=i?XX:WX,s=!1,o;this.scanner.skipSC(),this.eat(LX);const u=this.scanner.tokenIndex;if(i||this.scanner.skipSC(),a?o=this.parseWithFallback(JX,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)===FX){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.scanner.isDelim(ww)&&(s=QX.call(this),this.scanner.skipSC()),this.scanner.eof===!1&&this.scanner.tokenType!==yw&&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 GX(){var t=this.scanner.tokenStart;if(this.scanner.tokenType===xw)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case VX:case RX:case qX:case BX:case HX:this.scanner.next();break;case Sw:this.scanner.next(),this.scanner.isDelim(Sw)&&this.scanner.next();break}return this.scanner.tokenType===bw?this.eat(bw):this.eat(gw),this.scanner.substrToCursor(t)}function QX(){this.eat(xw),this.scanner.skipSC();var t=this.consume(gw);return t==="important"?!0:t}var op=de.TYPE,YX=ea.mode,ZX=op.WhiteSpace,KX=op.Comment,_X=op.Semicolon;function $X(t){return this.Raw(t,YX.semicolonIncluded,!0)}var eJ={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case ZX:case KX:case _X:this.scanner.next();break;default:t.push(this.parseWithFallback(this.Declaration,$X))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")})}},tJ=os.consumeNumber,rJ=de.TYPE,iJ=rJ.Dimension,aJ={name:"Dimension",structure:{value:String,unit:String},parse:function(){var t=this.scanner.tokenStart,e=tJ(this.scanner.source,t);return this.eat(iJ),{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)}},nJ=de.TYPE,sJ=nJ.RightParenthesis,oJ={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(sJ),{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"},lJ=de.TYPE,uJ=lJ.Hash,cJ={name:"Hash",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(uJ),{type:"Hash",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.value)}},dJ=de.TYPE,fJ=dJ.Ident,pJ={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(fJ)}},generate:function(t){this.chunk(t.name)}},hJ=de.TYPE,mJ=hJ.Hash,vJ={name:"IdSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(mJ),{type:"IdSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.name)}},ta=de.TYPE,Pw=ta.Ident,gJ=ta.Number,bJ=ta.Dimension,yJ=ta.LeftParenthesis,Cw=ta.RightParenthesis,xJ=ta.Colon,wJ=ta.Delim,SJ={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var t=this.scanner.tokenStart,e,r=null;if(this.eat(yJ),this.scanner.skipSC(),e=this.consume(Pw),this.scanner.skipSC(),this.scanner.tokenType!==Cw){switch(this.eat(xJ),this.scanner.skipSC(),this.scanner.tokenType){case gJ:this.lookupNonWSType(1)===wJ?r=this.Ratio():r=this.Number();break;case bJ:r=this.Dimension();break;case Pw:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(Cw),{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(")")}},wu=de.TYPE,PJ=wu.WhiteSpace,CJ=wu.Comment,kJ=wu.Ident,TJ=wu.LeftParenthesis,MJ={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 CJ:this.scanner.next();continue;case PJ:r=this.WhiteSpace();continue;case kJ:e=this.Identifier();break;case TJ: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)}},DJ=de.TYPE.Comma,AJ={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===DJ);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t,function(){this.chunk(",")})}},OJ={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))}},zJ=de.TYPE.Number,EJ={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(zJ)}},generate:function(t){this.chunk(t.value)}},jJ={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)}},kw=de.TYPE,NJ=kw.LeftParenthesis,IJ=kw.RightParenthesis,LJ={name:"Parentheses",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(NJ),i=t.call(this,e),this.scanner.eof||this.eat(IJ),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("("),this.children(t),this.chunk(")")}},FJ=os.consumeNumber,BJ=de.TYPE,RJ=BJ.Percentage,HJ={name:"Percentage",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=FJ(this.scanner.source,t);return this.eat(RJ),{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("%")}},Su=de.TYPE,VJ=Su.Ident,qJ=Su.Function,WJ=Su.Colon,XJ=Su.RightParenthesis,JJ={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(WJ),this.scanner.tokenType===qJ?(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(XJ)):r=this.consume(VJ),{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"},Pu=de.TYPE,UJ=Pu.Ident,GJ=Pu.Function,Tw=Pu.Colon,QJ=Pu.RightParenthesis,YJ={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(Tw),this.eat(Tw),this.scanner.tokenType===GJ?(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(QJ)):r=this.consume(UJ),{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"},ZJ=de.isDigit,Mw=de.TYPE,KJ=Mw.Number,_J=Mw.Delim,$J=47,eU=46;function Dw(){this.scanner.skipWS();for(var t=this.consume(KJ),e=0;e<t.length;e++){var r=t.charCodeAt(e);!ZJ(r)&&r!==eU&&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 tU={name:"Ratio",structure:{left:String,right:String},parse:function(){var t=this.scanner.tokenStart,e=Dw.call(this),r;return this.scanner.skipWS(),this.scanner.isDelim($J)||this.error("Solidus is expected"),this.eat(_J),r=Dw.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)}},rU=de.TYPE,iU=ea.mode,aU=rU.LeftCurlyBracket;function Aw(t){return this.Raw(t,iU.leftCurlyBracket,!0)}function nU(){var t=this.SelectorList();return t.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==aU&&this.error(),t}var sU={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(nU,Aw):r=Aw.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"},oU={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)}},lU=de.TYPE,uU=lU.Comma,cU={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;){if(t.push(this.Selector()),this.scanner.tokenType===uU){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"},dU=de.TYPE.String,fU={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(dU)}},generate:function(t){this.chunk(t.value)}},Ts=de.TYPE,pU=Ts.WhiteSpace,hU=Ts.Comment,mU=Ts.AtKeyword,vU=Ts.CDO,gU=Ts.CDC,bU=33;function Ow(t){return this.Raw(t,null,!1)}var yU={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 pU:this.scanner.next();continue;case hU:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==bU){this.scanner.next();continue}r=this.Comment();break;case vU:r=this.CDO();break;case gU:r=this.CDC();break;case mU:r=this.parseWithFallback(this.Atrule,Ow);break;default:r=this.parseWithFallback(this.Rule,Ow)}e.push(r)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)},walkContext:"stylesheet"},xU=de.TYPE,wU=xU.Ident,SU=42,zw=124;function lp(){this.scanner.tokenType!==wU&&this.scanner.isDelim(SU)===!1&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var PU={name:"TypeSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.isDelim(zw)?(this.scanner.next(),lp.call(this)):(lp.call(this),this.scanner.isDelim(zw)&&(this.scanner.next(),lp.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},CU=de.isHexDigit,Ew=de.cmpChar,up=de.TYPE,kU=de.NAME,TU=up.Ident,jw=up.Number,Nw=up.Dimension,Cu=43,Iw=45,cp=63,MU=117;function Ms(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===Iw&&e&&i!==0)return Ms.call(this,t+i+1,!1)===0&&this.error(),-1;CU(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 ku(t){for(var e=0;this.scanner.isDelim(cp);)++e>t&&this.error("Too many question marks"),this.scanner.next()}function dp(t){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==t&&this.error(kU[t]+" is expected")}function DU(){var t=0;if(this.scanner.isDelim(Cu)){if(this.scanner.next(),this.scanner.tokenType===TU){t=Ms.call(this,0,!0),t>0&&ku.call(this,6-t);return}if(this.scanner.isDelim(cp)){this.scanner.next(),ku.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===jw){if(dp.call(this,Cu),t=Ms.call(this,1,!0),this.scanner.isDelim(cp)){ku.call(this,6-t);return}if(this.scanner.tokenType===Nw||this.scanner.tokenType===jw){dp.call(this,Iw),Ms.call(this,1,!1);return}return}if(this.scanner.tokenType===Nw){dp.call(this,Cu),t=Ms.call(this,1,!0),t>0&&ku.call(this,6-t);return}this.error()}var AU={name:"UnicodeRange",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return Ew(this.scanner.source,t,MU)||this.error("U is expected"),Ew(this.scanner.source,t+1,Cu)||this.error("Plus sign is expected"),this.scanner.next(),DU.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},Lw=de.isWhiteSpace,OU=de.cmpStr,fp=de.TYPE,Fw=fp.Function,Bw=fp.Url,zU=fp.RightParenthesis,EU={name:"Url",structure:{value:["String","Raw"]},parse:function(){var t=this.scanner.tokenStart,e;switch(this.scanner.tokenType){case Bw:for(var r=t+4,i=this.scanner.tokenEnd-1;r<i&&Lw(this.scanner.source.charCodeAt(r));)r++;for(;r<i&&Lw(this.scanner.source.charCodeAt(i-1));)i--;e={type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)},this.eat(Bw);break;case Fw:OU(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Fw),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(zU);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(")")}},jU={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)}},NU=de.TYPE.WhiteSpace,IU=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),LU={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(NU),IU},generate:function(t){this.chunk(t.value)}},pp={AnPlusB:jW,Atrule:UW,AtrulePrelude:YW,AttributeSelector:aX,Block:fX,Brackets:mX,CDC:gX,CDO:yX,ClassSelector:PX,Combinator:AX,Comment:NX,Declaration:UX,DeclarationList:eJ,Dimension:aJ,Function:oJ,Hash:cJ,Identifier:pJ,IdSelector:vJ,MediaFeature:SJ,MediaQuery:MJ,MediaQueryList:AJ,Nth:OJ,Number:EJ,Operator:jJ,Parentheses:LJ,Percentage:HJ,PseudoClassSelector:JJ,PseudoElementSelector:YJ,Ratio:tU,Raw:ea,Rule:sU,Selector:oU,SelectorList:cU,String:fU,StyleSheet:yU,TypeSelector:PU,UnicodeRange:AU,Url:EU,Value:jU,WhiteSpace:LU},hp=OW,FU={generic:!0,types:hp.types,atrules:hp.atrules,properties:hp.properties,node:pp},Rw=de.cmpChar,BU=de.cmpStr,ar=de.TYPE,RU=ar.Ident,HU=ar.String,VU=ar.Number,qU=ar.Function,WU=ar.Url,XU=ar.Hash,JU=ar.Dimension,UU=ar.Percentage,GU=ar.LeftParenthesis,QU=ar.LeftSquareBracket,YU=ar.Comma,ZU=ar.Delim,KU=35,_U=42,Hw=43,$U=45,eG=47,tG=117,Vw=function(e){switch(this.scanner.tokenType){case XU:return this.Hash();case YU:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case GU:return this.Parentheses(this.readSequence,e.recognizer);case QU:return this.Brackets(this.readSequence,e.recognizer);case HU:return this.String();case JU:return this.Dimension();case UU:return this.Percentage();case VU:return this.Number();case qU:return BU(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case WU:return this.Url();case RU:return Rw(this.scanner.source,this.scanner.tokenStart,tG)&&Rw(this.scanner.source,this.scanner.tokenStart+1,Hw)?this.UnicodeRange():this.Identifier();case ZU:var r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r===eG||r===_U||r===Hw||r===$U)return this.Operator();r===KU&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1);break}},rG={getNode:Vw},Pi=de.TYPE,iG=Pi.Delim,aG=Pi.Ident,nG=Pi.Dimension,sG=Pi.Percentage,oG=Pi.Number,lG=Pi.Hash,qw=Pi.Colon,uG=Pi.LeftSquareBracket,cG=35,dG=42,fG=43,pG=47,Ww=46,hG=62,mG=124,vG=126;function gG(t){switch(this.scanner.tokenType){case uG:return this.AttributeSelector();case lG:return this.IdSelector();case qw:return this.scanner.lookupType(1)===qw?this.PseudoElementSelector():this.PseudoClassSelector();case aG:return this.TypeSelector();case oG:case sG:return this.Percentage();case nG:this.scanner.source.charCodeAt(this.scanner.tokenStart)===Ww&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case iG:var e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case fG:case hG:case vG:return t.space=null,t.ignoreWSAfter=!0,this.Combinator();case pG:return this.Combinator();case Ww:return this.ClassSelector();case dG:case mG:return this.TypeSelector();case cG:return this.IdSelector()}break}}var bG={getNode:gG},yG=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))},Xw=de.TYPE,xG=ea.mode,wG=Xw.Comma,SG=Xw.WhiteSpace,PG=function(){var t=this.createList();if(this.scanner.skipSC(),t.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===wG){t.push(this.Operator());const e=this.scanner.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,xG.exclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty()){for(let i=e-this.scanner.tokenIndex;i<=0;i++)if(this.scanner.lookupType(i)===SG){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(r)}return t},CG={getNode:Vw,expression:yG,var:PG},kG={AtrulePrelude:rG,Selector:bG,Value:CG},TG={parse:{prelude:null,block:function(){return this.Block(!0)}}},Ds=de.TYPE,MG=Ds.String,DG=Ds.Ident,AG=Ds.Url,OG=Ds.Function,zG=Ds.LeftParenthesis,EG={parse:{prelude:function(){var t=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case MG:t.push(this.String());break;case AG:case OG:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===DG||this.lookupNonWSType(0)===zG)&&(t.push(this.WhiteSpace()),t.push(this.MediaQueryList())),t},block:null}},jG={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},NG={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},$a=de.TYPE,IG=$a.WhiteSpace,LG=$a.Comment,Jw=$a.Ident,FG=$a.Function,BG=$a.Colon,RG=$a.LeftParenthesis;function HG(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function VG(){return this.scanner.skipSC(),this.scanner.tokenType===Jw&&this.lookupNonWSType(1)===BG?this.createSingleNodeList(this.Declaration()):Uw.call(this)}function Uw(){var t=this.createList(),e=null,r;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case IG:e=this.WhiteSpace();continue;case LG:this.scanner.next();continue;case FG:r=this.Function(HG,this.scope.AtrulePrelude);break;case Jw:r=this.Identifier();break;case RG:r=this.Parentheses(VG,this.scope.AtrulePrelude);break;default:break e}e!==null&&(t.push(e),e=null),t.push(r)}return t}var qG={parse:{prelude:function(){var t=Uw.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block:function(){return this.Block(!1)}}},WG={"font-face":TG,import:EG,media:jG,page:NG,supports:qG},XG={parse:function(){return this.createSingleNodeList(this.Identifier())}},JG={parse:function(){return this.createSingleNodeList(this.SelectorList())}},UG={parse:function(){return this.createSingleNodeList(this.Identifier())}},Gw={parse:function(){return this.createSingleNodeList(this.SelectorList())}},GG=Gw,QG=Gw,YG=!0,Qw={parse:function(){return this.createSingleNodeList(this.Nth(YG))}},ZG=Qw,KG=Qw,_G=!1,Yw={parse:function(){return this.createSingleNodeList(this.Nth(_G))}},$G=Yw,eQ=Yw,tQ={parse:function(){return this.createSingleNodeList(this.Selector())}},rQ={dir:XG,has:JG,lang:UG,matches:GG,not:QG,"nth-child":ZG,"nth-last-child":KG,"nth-last-of-type":$G,"nth-of-type":eQ,slotted:tQ},iQ={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:kG,atrule:WG,pseudo:rQ,node:pp},aQ={node:pp};const nQ={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 sQ(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}$d.exports=Qb.create(sQ(FU,iQ,aQ)),$d.exports.version=nQ.version;var oQ=$d.exports,ra=oQ,Zw={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.Scrollparent=r()})(Tt,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})})(Zw);var lQ=Zw.exports;const uQ=sr(lQ),cQ={name:"custom-css-output",render(t){return t("style",this.$slots.default)}},Tu=[{code:"AFN",name:"Afghanistan Afghani",format:"####.##",symbol:""},{code:"ALL",name:"Albanian Lek",format:"####.##",symbol:""},{code:"DZD",name:"Algerian Dinar",format:"####.##",symbol:"دج (Arabic) or DA (Latin)"},{code:"AOA",name:"Angolan Kwanza",format:"####.##",symbol:"Kz"},{code:"ARS",name:"Argentine Peso",format:"#.###,##",symbol:""},{code:"AMD",name:"Armenian Dram",format:"#,###.##",symbol:"֏"},{code:"AWG",name:"Aruban Guilder",format:"#,###.##",symbol:""},{code:"AUD",name:"Australian Dollar",format:"# ###.##",symbol:""},{code:"AZN",name:"Azerbaijanian Manat",format:"####.##",symbol:""},{code:"BSD",name:"Bahamian Dollar",format:"#,###.##",symbol:""},{code:"BHD",name:"Bahraini Dinar",format:"#,###.###",symbol:".د.ب (Arabic) or BD (Latin"},{code:"BDT",name:"Bangladesh Taka",format:"#,###.##",symbol:"৳"},{code:"BBD",name:"Barbados Dollar",format:"####.##",symbol:""},{code:"BYN",name:"Belarussian Ruble",format:"####",symbol:""},{code:"BZD",name:"Belize Dollar",format:"#,###.##",symbol:""},{code:"BMD",name:"Bermudian Dollar",format:"#,###.##",symbol:""},{code:"BTN",name:"Bhutan Ngultrum",format:"####.##",symbol:"Nu"},{code:"BOB",name:"Bolivia, Boliviano",format:"#,###.##",symbol:""},{code:"BAM",name:"Bosnia and Herzegovina, Convertible Marks",format:"#,###.##",symbol:""},{code:"BWP",name:"Botswana, Pula",format:"#,###.##",symbol:""},{code:"BRL",name:"Brazilian Real",format:"#.###,##",symbol:""},{code:"BND",name:"Brunei Dollar",format:"#,###.##",symbol:""},{code:"BGN",name:"Bulgarian Lev",format:"####.##",symbol:""},{code:"BIF",name:"Burundi Franc",format:"####",symbol:"FBu"},{code:"KHR",name:"Cambodia, Riel",format:"####.##",symbol:""},{code:"CAD",name:"Canadian Dollar",format:"#,###.##",symbol:""},{code:"CVE",name:"Cape Verde Escudo",format:"####.##",symbol:""},{code:"KYD",name:"Cayman Islands Dollar",format:"#,###.##",symbol:""},{code:"XPF",name:"CFP Franc",format:"####",symbol:"₣"},{code:"CLP",name:"Chilean Peso",format:"#.###",symbol:""},{code:"CNY",name:"China Yuan Renminbi",format:"#,###.##",symbol:""},{code:"COP",name:"Colombian Peso",format:"#.###,##",symbol:""},{code:"KMF",name:"Comoro Franc",format:"####",symbol:"CF"},{code:"CRC",name:"Costa Rican Colon",format:"#.###,##",symbol:""},{code:"HRK",name:"Croatian Kuna",format:"#.###,##",symbol:""},{code:"CUP",name:"Cuban Peso",format:"#,###.##",symbol:""},{code:"CZK",name:"Czech Koruna",format:"#.###,##",symbol:""},{code:"DKK",name:"Danish Krone",format:"#.###,##",symbol:""},{code:"DJF",name:"Djibouti Franc",format:"####",symbol:"Fdj"},{code:"DOP",name:"Dominican Peso",format:"#,###.##",symbol:""},{code:"XCD",name:"East Caribbean Dollar",format:"#,###.##",symbol:""},{code:"EGP",name:"Egyptian Pound",format:"#,###.##",symbol:""},{code:"SVC",name:"El Salvador Colon",format:"#,###.##",symbol:""},{code:"ERN",name:"Eritrea Nakfa",format:"####.##",symbol:"Nkf (Latin script) ናቕፋ (Ge'ez script) ناكفا (Arabic script)"},{code:"ETB",name:"Ethiopian Birr",format:"####.##",symbol:"Br (Latin Script) ብር (Ethiopic Script)"},{code:"EUR",name:"Euro",format:"#,###.##",symbol:""},{code:"FKP",name:"Falkland Islands Pound",format:"####.##",symbol:""},{code:"FJD",name:"Fiji Dollar",format:"####.##",symbol:""},{code:"CDF",name:"Congolais Franc",format:"####.##",symbol:"FC"},{code:"GMD",name:"Gambia Dalasi",format:"####.##",symbol:"D"},{code:"GEL",name:"Georgia Lari",format:"####.##",symbol:"ლ (Lasi) of the Georgian script"},{code:"GHC",name:"Ghana Cedi",format:"#,###.##",symbol:""},{code:"GIP",name:"Gibraltar Pound",format:"#,###.##",symbol:""},{code:"GTQ",name:"Guatemala, Quetzal",format:"#,###.##",symbol:""},{code:"GWP",name:"Guinea-Bissau Peso",format:"####.##",symbol:"$ or COL$"},{code:"GYD",name:"Guyana Dollar",format:"####.##",symbol:""},{code:"HTG",name:"Haitian Gourde",format:"####.##",symbol:"G"},{code:"HNL",name:"Honduran Lempira",format:"#,###.##",symbol:""},{code:"HKD",name:"Hong Kong Dollar",format:"#,###.##",symbol:""},{code:"HUF",name:"Hungary Forint",format:"#.###",symbol:""},{code:"ISK",name:"Iceland Krona",format:"#.###",symbol:""},{code:"INR",name:"Indian Rupee",format:"#,###.##",symbol:"₹"},{code:"IDR",name:"Indonesian Rupiah",format:"#.###,##",symbol:""},{code:"IRR",name:"Iranian Rial",format:"#,###.##",symbol:""},{code:"IQD",name:"Iraqi Dinar",format:"####.###",symbol:"ع.د"},{code:"JMD",name:"Jamaican Dollar",format:"#,###.##",symbol:""},{code:"JPY",name:"Japanese Yen",format:"#,###",symbol:""},{code:"JOD",name:"Jordanian Dinar",format:"#,###.###",symbol:"د.ا"},{code:"KZT",name:"Kazakhstan Tenge",format:"####.##",symbol:""},{code:"KES",name:"Kenyan Shilling",format:"#,###.##",symbol:"KES"},{code:"KWD",name:"Kuwaiti Dinar",format:"#,###.###",symbol:"د.ك or KD"},{code:"KGS",name:"Kyrgyzstan Som",format:"####.##",symbol:""},{code:"LAK",name:"Laos, Kip",format:"####.##",symbol:""},{code:"LVL",name:"Latvian Lats",format:"#,###.##",symbol:"Ls"},{code:"LBP",name:"Lebanese Pound",format:"# ###",symbol:""},{code:"LSL",name:"Lesotho Loti",format:"####.##",symbol:"L (singular) or M (plural)"},{code:"LRD",name:"Liberian Dollar",format:"####.##",symbol:""},{code:"LYD",name:"Libyan Dinar",format:"####.###",symbol:"LD and ل.د"},{code:"LTL",name:"Lithuanian Litas",format:"# ###,##",symbol:"Lt"},{code:"MOP",name:"Macao Pataca",format:"####.##",symbol:"MOP$"},{code:"MKD",name:"Macedonia, Denar",format:"#,###.##",symbol:""},{code:"MGA",name:"Malagasy Ariary",format:"####",symbol:"Ar"},{code:"MWK",name:"Malawi Kwacha",format:"####.##",symbol:"MK"},{code:"MYR",name:"Malaysian Ringgit",format:"#,###.##",symbol:""},{code:"MVR",name:"Maldives Rufiyaa",format:"####.##",symbol:"Rf"},{code:"MTL",name:"Maltese Lira",format:"#,###.##",symbol:"₤ and Lm"},{code:"MRO",name:"Mauritanian Ouguiya",format:"####.##",symbol:"UM"},{code:"MUR",name:"Mauritius Rupee",format:"#,###",symbol:""},{code:"MXN",name:"Mexican Peso",format:"#,###.##",symbol:""},{code:"MDL",name:"Moldovan Leu",format:"####.##",symbol:"L"},{code:"MNT",name:"Mongolian Tugrik",format:"####.##",symbol:""},{code:"MAD",name:"Moroccan Dirham",format:"####.##",symbol:"MAD"},{code:"MZM",name:"Mozambique Metical",format:"#.###,##",symbol:""},{code:"MMK",name:"Myanmar Kyat",format:"####.##",symbol:"K"},{code:"NAD",name:"Namibian Dollar",format:"####.##",symbol:""},{code:"NPR",name:"Nepalese Rupee",format:"#,###.##",symbol:""},{code:"ANG",name:"Netherlands Antillian Guilder",format:"#.###,##",symbol:""},{code:"ILS",name:"New Israeli Shekel",format:"#,###.##",symbol:""},{code:"TWD",name:"New Taiwan Dollar",format:"####.##",symbol:""},{code:"TRY",name:"New Turkish Lira",format:"#,###.##",symbol:"₺"},{code:"NZD",name:"New Zealand Dollar",format:"#,###.##",symbol:""},{code:"NIO",name:"Nicaragua, Cordoba Oro",format:"####.##",symbol:""},{code:"NGN",name:"Nigeria, Naira",format:"#,###.##",symbol:""},{code:"KPW",name:"North Korean Won",format:"####.##",symbol:""},{code:"NOK",name:"Norwegian Krone",format:"#.###,##",symbol:""},{code:"PKR",name:"Pakistan Rupee",format:"#,###.##",symbol:""},{code:"PAB",name:"Panama Balboa",format:"####.##",symbol:""},{code:"PGK",name:"Papua New Guinea Kina",format:"####.##",symbol:"K"},{code:"PYG",name:"Paraguay Guarani",format:"####",symbol:""},{code:"PEN",name:"Peru Nuevo Sol",format:"#,###.##",symbol:""},{code:"UYU",name:"Uruguay Peso",format:"#.###,##",symbol:""},{code:"PHP",name:"Philippine Peso",format:"#,###.##",symbol:""},{code:"PLN",name:"Poland Zloty",format:"# ###,##",symbol:""},{code:"GBP",name:"United Kingdom Pound Sterling",format:"#,###.##",symbol:""},{code:"QAR",name:"Qatari Rial",format:"####.##",symbol:""},{code:"OMR",name:"Rial Omani",format:"#,###.###",symbol:"ر.ع."},{code:"RON",name:"Romania, New Leu",format:"#.###,##",symbol:""},{code:"RUB",name:"Russian Ruble",format:"#.###,##",symbol:""},{code:"RWF",name:"Rwanda Franc",format:"####",symbol:"FRw"},{code:"SHP",name:"Saint Helena Pound",format:"####.##",symbol:""},{code:"WST",name:"Samoa Tala",format:"####.##",symbol:"SAT"},{code:"STN",name:"Sao Tome and Principe Dobra",format:"####.##",symbol:"Db"},{code:"SAR",name:"Saudi Riyal",format:"#,###.##",symbol:""},{code:"RSD",name:"Serbian Dinar",format:"####.##",symbol:""},{code:"SCR",name:"Seychelles Rupee",format:"####.##",symbol:""},{code:"SLL",name:"Sierra Leone Leone",format:"####.##",symbol:"Le"},{code:"SGD",name:"Singapore Dollar",format:"#,###.##",symbol:""},{code:"SKK",name:"Slovak Koruna",format:"# ###,##",symbol:"Sk"},{code:"SIT",name:"Slovenia Tolar",format:"#.###,##",symbol:"SlT"},{code:"SBD",name:"Solomon Islands Dollar",format:"####.##",symbol:""},{code:"SOS",name:"Somali Shilling",format:"####.##",symbol:""},{code:"ZAR",name:"South Africa Rand",format:"# ###.##",symbol:""},{code:"KRW",name:"South Korea Won",format:"#,###",symbol:""},{code:"LKR",name:"Sri Lanka Rupee",format:"####.##",symbol:""},{code:"SDD",name:"Sudanese Dinar",format:"####.##",symbol:"LSd"},{code:"SRD",name:"Surinam Dollar",format:"####.##",symbol:"$"},{code:"SZL",name:"Swaziland Lilangeni",format:"#, ###.##",symbol:"L (singular) or E (plural)"},{code:"SEK",name:"Swedish Krona",format:"# ###,##",symbol:""},{code:"CHF",name:"Swiss Franc",format:"#'###.##",symbol:""},{code:"SYP",name:"Syrian Pound",format:"####.##",symbol:""},{code:"TZS",name:"Tanzanian Shilling",format:"#,###.##",symbol:"TSh"},{code:"THB",name:"Thailand, Baht",format:"#,###.##",symbol:""},{code:"TOP",name:"Tongan Paanga",format:"#,###.##",symbol:"T$"},{code:"TTD",name:"Trinidad and Tobago Dollar",format:"####.##",symbol:""},{code:"TND",name:"Tunisian Dinar",format:"####.###",symbol:"د.ت (Tunisian Arabic) or DT (Latin)"},{code:"TMT",name:"Turkmenistani New Manat",format:"####.##",symbol:"T"},{code:"AED",name:"UAE Dirham",format:"#,###.##",symbol:"د.إ"},{code:"UGX",name:"Uganda Shilling",format:"####.##",symbol:"USh"},{code:"UAH",name:"Ukraine Hryvnia",format:"# ###,##",symbol:""},{code:"CLF",name:"Unidad de Fomento",format:"####.##",symbol:"CLF"},{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"},{code:"UZS",name:"Uzbekistan Sum",format:"####.##",symbol:""},{code:"VUV",name:"Vanuatu Vatu",format:"#,###",symbol:"VT"},{code:"VES",name:"Venezuela Bolivares Fuertes",format:"#.###,##",symbol:""},{code:"VND",name:"Viet Nam Dong",format:"#.###",symbol:""},{code:"YER",name:"Yemeni Rial",format:"####.##",symbol:""},{code:"ZMK",name:"Zambian Kwacha",format:"####.##",symbol:"ZK"},{code:"ZWD",name:"Zimbabwe Dollar",format:"# ###.##",symbol:""}],dQ=Object.freeze(Object.defineProperty({__proto__:null,default:Tu},Symbol.toStringTag,{value:"Module"}));function Kw(t){return t.component!=="FormMultiColumn"?t:t.items.flatMap(Kw)}function fQ(t){return t.flatMap(e=>e.items).flatMap(Kw)}Bt.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."),Bt.register("after",function(t,e){const r=kr(t).toISOString(),i=kr(e).toISOString();return r>i},"The :attribute must be after :after."),Bt.register("after_or_equal",function(t,e){const r=kr(t).toISOString(),i=kr(e).toISOString();return r>=i},"The :attribute must be equal or after :after_or_equal."),Bt.register("before",function(t,e){const r=kr(t).toISOString(),i=kr(e).toISOString();return r<i},"The :attribute must be before :before."),Bt.register("before_or_equal",function(t,e){const r=kr(t).toISOString(),i=kr(e).toISOString();return r<=i},"The :attribute must be equal or before :before_or_equal."),Bt.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,"")),kr(t,[e,kr.ISO_8601],!0).isValid()},"The :attribute must be a valid date.");function pQ(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=G.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 Bt(r.data,r.rules)},r.getErrors=()=>r.failed()?r.validator.errors.errors:{},r.failed=()=>(r.getValidator(),r.validator.fails()),r}const hQ={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 mQ=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()])])},vQ=[],gQ=ie(hQ,mQ,vQ,!1,null,null,null,null);const _w=gQ.exports,bQ={props:{value:Object}};var yQ=function(){var e=this,r=e._self._c;return r("b-alert",{ref:"alert",attrs:{variant:"danger",dismissible:""},model:{value:e.value.show,callback:function(i){e.$set(e.value,"show",i)},expression:"value.show"}},[r("b",[e._v(" "+e._s(e.value.error)+" ")]),r("ul",e._l(e.value.errors,function(i,a){return r("li",{key:`error-${a}`},[e._v(e._s(i))])}),0)])},xQ=[],wQ=ie(bQ,yQ,xQ,!1,null,null,null,null);const mp=wQ.exports,Iae="",SQ={name:"ScreenRenderer",components:{WatchersSynchronous:_w,ScreenRendererError:mp},mixins:[Lb,Pc],props:{loopContext:{type:String,default:""},taskdraft:Object},data(){return{currentDefinition:null,codigo:"",displayAsyncLoading:!1}},watch:{definition:{deep:!0,handler(t){G.isEmpty(t.config)||this.rebuildScreen(t)}}},mounted(){this.currentDefinition=G.cloneDeep(this.definition),this.component=this.buildComponent(this.currentDefinition)},methods:{rebuildScreen(t){G.isEqual(t,this.currentDefinition)||(this.currentDefinition=G.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.$emit("updatedPage"),this.$refs.component.setCurrentPage(t)},afterSubmit(){this.$emit("after-submit",...arguments)}}};var PQ=function(){var i;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||((i=e.value)==null?void 0:i._parent),"_initial-page":e.currentPage,taskdraft:e.taskdraft},on:{"after-submit":e.afterSubmit,submit:e.submit,asyncWatcherTriggered:e.onAsyncWatcherOn,asyncWatcherCompleted:e.onAsyncWatcherOff}}),e.showErrors&&e.building.error?r("screen-renderer-error",{model:{value:e.building,callback:function(a){e.building=a},expression:"building"}}):e._e(),r("watchers-synchronous",{ref:"watchersSynchronous"})],1)},CQ=[],kQ=ie(SQ,PQ,CQ,!1,null,null,null,null);const $w=kQ.exports,Lae="",TQ={name:"VueFormRenderer",components:{ScreenRenderer:$w,CustomCssOutput:cQ},mixins:[Pc,qh,Cd],model:{prop:"data",event:"update"},props:["config","data","_parent","page","computed","customCss","mode","watchers","isLoop","ancestorScreens","loopContext","showErrors","testScreenDefinition","deviceScreen","taskdraft"],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=Tu.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 Jb.format(e,a)};return function(e){const r=JSON.parse(`[${e}]`);return t(G.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":Vh}},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=G.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=uQ(this.$el),this.containerObserver.observe(this.$refs.formRendererContainer),this.$store.dispatch("clipboardModule/initializeClipboard")},methods:{...Nt.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=fQ(this.definition.config),e=G.cloneDeep(this.definition.config);return this.checkForRecordList(t,e),this.dataTypeValidator=pQ(e,this.data),this.errors=this.dataTypeValidator.getErrors(),this.errors&&(this.formSubmitErrorClass="invalid-form-submission"),G.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))},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t,e=!1,r=null){this.$emit("submit",t,e,r)},parseCss(){const t=`.${this.containerClass}`;try{const e=ra.parse(this.customCss,{onParseError(a){throw a.formattedMessage}});let r=0;ra.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=[];ra.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:[]};ra.walk(a.prelude,{visit:"MediaFeature",enter:u=>{["min-width","max-width"].includes(u.name)&&(o[G.camelCase(u.name)]=parseInt(u.value.value,10),o.rules.length===0&&ra.walk(a.block,{visit:"Rule",enter:l=>{const c=ra.generate(l);o.rules.push(c)}}),i.push(o))}}),s.remove(n)}}}),this.customCssWrapped=ra.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.$emit("update-page-task"),this.$refs.renderer.setCurrentPage(t)},onContainerObserver(t){t[0].target.getBoundingClientRect(),this.parseCss()},saveClipboarToLocalStorage(t){localStorage.setItem("savedClipboard",JSON.stringify(t))}}};var MQ=function(){var i;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||((i=e.data)==null?void 0:i._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,taskdraft:e.taskdraft},on:{updatePage:e.setCurrentPage,"after-submit":e.afterSubmit,submit:e.submit}})],1)},DQ=[],AQ=ie(TQ,MQ,DQ,!1,null,"560176a3",null,null);const Ci=AQ.exports,OQ={name:"FormLoop",components:{VueFormRenderer:Ci},mixins:[],props:["value","config","transientData","name","mode","formConfig"],data(){return{matrix:[],items:[],additionalItems:0,transientDataCopy:null,parentObjectChanges:[]}},computed:{parentLoopContext(){let t=this.$parent,e=0,r="";for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e>100)throw new Error("Loop Error");e++}return t&&(r=t.loopContext),r},rendererConfig(){const{items:t}=this;return[{name:"LoopItem",items:t}]},times(){if(!this.config||!this.config.settings)return[];if(this.config.settings.type==="existing"){const e=G.get(this.transientData,this.name,null);return e?[...e.keys()]:[]}let{times:t}=this.config.settings;try{t=Qt.render(t,this.transientData)}catch(e){throw new Error(e)}return t=parseInt(t),Number.isNaN(t)?[]:(t>100&&(t=100),t+=this.additionalItems,[...Array(t).keys()])}},watch:{transientData:{handler(){this.transientDataCopy=G.cloneDeep(this.transientData),this.$delete(this.transientDataCopy,this.name);const t=G.get(this,`transientData.${this.name}`,null);t&&Array.isArray(t)?this.matrix=t:this.matrix=[],this.setupMatrix()},immediate:!0},value:{handler(){this.items=this.value},immediate:!0},matrix:{handler(){G.isEqual(this.$parent.transientData[this.name],this.matrix)||this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},deep:!0},times(){this.setupMatrix()},"config.settings.times":{handler(){this.additionalItems=0}}},mounted(){this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},methods:{getLoopContext(t){let e=`${this.name}.${t.toString()}`;return this.parentLoopContext!==""&&(e=`${this.parentLoopContext}.${e}`),e},add(){this.config.settings.type==="existing"?this.setMatrixValue(this.matrix.length,{}):this.additionalItems++},remove(){this.config.settings.type==="existing"?this.$delete(this.matrix,this.matrix.length-1):this.additionalItems--},removeConfirm(){const t=this.$t("Are you sure you want to delete this?");window.ProcessMaker.confirmModal(this.$t("Caution!"),t,"",()=>{this.remove()})},setMatrixValue(t,e){const r=G.omit(e,"_parent");this.registerParentVariableChanges(e),this.$set(this.matrix,t,r),this.setChagnedParentVariables()},registerParentVariableChanges(t){t._parent&&Object.keys(t._parent).forEach(e=>{G.isEqual(this.transientDataCopy[e],t._parent[e])||this.parentObjectChanges.push({key:e,value:t._parent[e]})})},setChagnedParentVariables(){this.parentObjectChanges.forEach(t=>{this.$set(this.$parent.transientData,t.key,t.value)}),this.parentObjectChanges=[]},getMatrixValue(t){let e=G.cloneDeep(this.matrix[t]);return e||(e={}),e._parent=G.cloneDeep(this.transientDataCopy),e},setupMatrix(){for(const t of this.times)typeof this.matrix[t]>"u"&&this.setMatrixValue(t,{});this.matrix.length!==this.times.length&&(this.matrix=this.matrix.slice(0,this.times.length))},submit(){this.$emit("submit")}}};var zQ=function(){var e=this,r=e._self._c;return r("div",[e._l(e.times,function(i){return r("form",{key:i,on:{submit:function(a){a.preventDefault()}}},[r("vue-form-renderer",{attrs:{data:e.getMatrixValue(i),config:e.rendererConfig,computed:null,"custom-css":null,watchers:null,"is-loop":!0,"debug-context":"Loop #"+i,mode:e.mode,"loop-context":e.getLoopContext(i),"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:function(a){return e.$emit("pageNavigate",a)},update:function(a){return e.setMatrixValue(i,a)}}})],1)}),e.config.settings.add?r("b-row",{staticClass:"justify-content-md-center"},[r("b-col",{attrs:{md:"auto"}},[r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"secondary",title:e.$t("Add Item")},on:{click:e.add}},[r("i",{staticClass:"fas fa-plus"})]),e.times.length>0?r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"outline-danger",title:e.$t("Delete Item")},on:{click:e.removeConfirm}},[r("i",{staticClass:"fas fa-minus"})]):e._e()],1)],1):e._e()],2)},EQ=[],jQ=ie(OQ,zQ,EQ,!1,null,null,null,null);const As=jQ.exports,Fae="",Mu=typeof window>"u"?global:window,vp=[{name:"empty",items:[]}],NQ={components:{VueFormRenderer:Ci},props:{name:String,screen:Number,value:null,validationData:null,_parent:null,ancestorScreens:{type:Array,default:()=>[]}},data(){return{localData:{},config:vp,computed:[],customCSS:null,watchers:[],screenTitle:null}},computed:{validatedConfig(){return this.config&&this.config[0]?this.config:vp},data:{get(){return this.validationData||this.localData},set(t){Object.keys(t).forEach(e=>{this.validationData&&this.$set(this.validationData,e,t[e])})}},placeholder(){return this.screen?"":this.$t("Select a screen to nest")}},methods:{isSubmitButton(t){return t.config&&t.component==="FormButton"&&t.config.event==="submit"},hideSubmitButtons(t){t.forEach(e=>{Array.isArray(e)&&this.hideSubmitButtons(e),e.items&&this.hideSubmitButtons(e.items),this.isSubmitButton(e)&&(e.config.hidden=!0)})},disableForm(t){t.forEach(e=>{Array.isArray(e)&&this.disableForm(e),e.items&&this.disableForm(e.items),e&&e.config&&(e.config.disabled=!0,e.config.readonly=!0,e.config.editable=!1)})},loadScreen(t){this.config=vp,this.computed=[],this.customCSS=null,this.watchers=[],this.screenTitle=null,t&&this.$dataProvider.getScreen(t).then(e=>{this.config=e.data.config,this.hideSubmitButtons(this.config),this.computed=e.data.computed,this.customCSS=e.data.custom_css,this.watchers=e.data.watchers,this.screenTitle=e.data.title,this.$attrs.disabled&&this.disableForm(this.config),this.ancestorScreens.includes(this.screenTitle)?Mu.ProcessMaker.alert(`Rendering of nested "${this.screenTitle}" screen was disallowed to prevent loop.`,"warning"):(Mu.nestedScreens||(Mu.nestedScreens={}),Mu.nestedScreens["id_"+t]=this.config,this.$root.$emit("nested-screen-updated"))})},errors(){return this.$refs.nestedScreen.isValid(),this.$refs.nestedScreen.errors}},watch:{screen(t){this.loadScreen(t)}},mounted(){this.loadScreen(this.screen)}};var IQ=function(){var e=this,r=e._self._c;return e.ancestorScreens.includes(e.screenTitle)?e._e():r("vue-form-renderer",{ref:"nestedScreen",staticClass:"form-nested-screen",attrs:{placeholder:e.placeholder,config:e.validatedConfig,"ancestor-screens":[...e.ancestorScreens,e.screenTitle],mode:"preview",computed:e.computed,"custom-css":e.customCSS,watchers:e.watchers,"debug-context":"Nested Screen",_parent:e._parent},on:{"css-errors":function(i){e.cssErrors=i}},model:{value:e.data,callback:function(i){e.data=i},expression:"data"}})},LQ=[],FQ=ie(NQ,IQ,LQ,!1,null,null,null,null);const Os=FQ.exports,Bae="",BQ={name:"MustacheHelper"};var RQ=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"mustache",attrs:{title:e.$t("This field accepts mustache syntax")}},[e._v(" {} ")])},HQ=[],VQ=ie(BQ,RQ,HQ,!1,null,"8cef93f7",null,null);const ki=VQ.exports,qQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjA1MTQgMy43Mzg4OUwxNS40NTc2IDIuMzMyNjVDMTYuMDY3OCAxLjcyMjQ1IDE3LjA1NzIgMS43MjI0NSAxNy42Njc0IDIuMzMyNjVDMTguMjc3NSAyLjk0Mjg0IDE4LjI3NzUgMy45MzIxNiAxNy42Njc0IDQuNTQyMzVMOC44MTg0OSAxMy4zOTEyQzguMzc3OTIgMTMuODMxOCA3LjgzNDUzIDE0LjE1NTYgNy4yMzc0MSAxNC4zMzM1TDUgMTVMNS42NjY0OCAxMi43NjI2QzUuODQ0MzUgMTIuMTY1NSA2LjE2ODIgMTEuNjIyMSA2LjYwODc3IDExLjE4MTVMMTQuMDUxNCAzLjczODg5Wk0xNC4wNTE0IDMuNzM4ODlMMTYuMjUgNS45Mzc0OU0x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DQuODc1IDMuNDk1MjdNMTEuMTI1IDMuNDk1MjdWMi43MzE4MkMxMS4xMjUgMS43NDkwMiAxMC4zNjYxIDAuOTI4NTI2IDkuMzgzODIgMC44OTcxMDNDOC45MjQzNSAwLjg4MjQwNSA4LjQ2MzA0IDAuODc1IDggMC44NzVDNy41MzY5NiAwLjg3NSA3LjA3NTY1IDAuODgyNDA1IDYuNjE2MTggMC44OTcxMDNDNS42MzM4OCAwLjkyODUyNiA0Ljg3NSAxLjc0OTAyIDQuODc1IDIuNzMxODJWMy40OTUyN00xMS4xMjUgMy40OTUyN0MxMC4wOTM4IDMuNDE1NTggOS4wNTE2NCAzLjM3NSA4IDMuMzc1QzYuOTQ4MzYgMy4zNzUgNS45MDYyIDMuNDE1NTggNC44NzUgMy40OTUyNyIgc3Ryb2tlPSIjNTk2MzcyIiBzdHJva2Utd2lkdGg9IjEuMjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",Rae="",XQ={key:"__actions",label:"Actions",thClass:"text-right",tdClass:"text-right"},JQ={components:{VueFormRenderer:Ci,MustacheHelper:ki},mixins:[_d],props:["name","label","fields","value","editable","_config","form","validationData","formConfig","formComputed","formWatchers","_perPage","source","paginationOption","designerMode","bgcolormodern"],data(){return{editFormVersion:0,single:"",plural:"",addItem:{},editItem:{},editIndex:null,currentPage:1,paginatorPage:1,perPageSelectEnabled:!1,perPage:5,lastPage:1,css:{tableClass:"table table-hover table-responsive text-break mb-0 d-table",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",renderIcon(t){return`<i class="${t.join(" ")}"></i>`}},initFormValues:{},currentRowIndex:null,collectionData:{},selectedRow:null,selectedRows:[],selectedIndex:null,rows:[],selectAll:!1,styleMode:"Classic",isPopoverVisible:null,popoverPosition:{top:"0px",left:"0px"}}},computed:{tableClassModern(){if(this.styleMode==="Modern")switch(this.bgcolormodern){case"alert alert-primary":return"record-list-table-primary";case"alert alert-success":return"record-list-table-success";case"alert alert-warning":return"record-list-table-warning";case"alert alert-secondary":return"record-list-table-secondary";default:return"record-list-table-secondary"}return""},indeterminate(){return this.selectedRows.length>0&&this.selectedRows.length<this.tableData.data.length},popupConfig(){const t=[];return t[this.form]=this.formConfig[this.form],t},debug(){return{perPageSelectEnabled:this.perPageSelectEnabled,perPageSelectEnabled2:this.$refs.pagination&&this.$refs.pagination.perPageSelectEnabled}},parentObj(){let t=this.$parent;for(;"transientData"in t.$props;)t=t.$parent;return t},dataManager(){if(this.$refs.vuetable){const t=this.$refs.vuetable.makePagination(this.value.length);return{pagination:t,data:this.value.slice(t.from-1,t.to)}}console.log("refs vuetable not exists")},tableData(){const t=Array.isArray(this.collectionData)&&this.collectionData.length?this.collectionData:Array.isArray(this.value)?this.value:[];this.value&&(this.selectedIndex=this.value.selectedRowIndex);const e=this.paginatorPage-1;this.lastPage=Math.ceil(t.length/this.perPage);const r={total:t.length,per_page:this.perPage,current_page:this.paginatorPage,last_page:this.lastPage,next_page_url:null,prev_page_url:null,from:e,to:t.length,data:t,lastSortConfig:!1};return this.selectedIndex!==null&&this.selectedIndex<r.data.length&&(this.selectedRow=r.data[this.selectedIndex]),Array.isArray(this.value)&&this.value.length>0&&this.rows.length===0&&this.value.forEach(i=>{i.hasOwnProperty("selectedRowsIndex")&&this.selectedRows.push(r.data[i.selectedRowsIndex])}),r},tableFields(){var e,r,i;const t=this.getTableFieldsFromDataSource();return this.editable&&!this.selfReferenced&&t.push(XQ),((e=this.source)==null?void 0:e.sourceOptions)==="Collection"&&(["single-field","single-record"].includes((r=this.source)==null?void 0:r.dataSelectionOptions)&&t.unshift({key:"radio",label:"",sortable:!1}),((i=this.source)==null?void 0:i.dataSelectionOptions)==="multiple-records"&&t.unshift({key:"checkbox",label:"",sortable:!1})),t},selfReferenced(){return this.form&&this.form===this.$parent.currentPage}},watch:{"tableData.total":{deep:!0,handler(t){const e=Math.ceil(t/this.perPage);this.currentPage=this.currentPage>e?e:this.currentPage,this.currentPage=this.currentPage==0?1:this.currentPage}},validationData:{handler(t,e){var r,i,a,n,s,o,u;((r=this.source)==null?void 0:r.sourceOptions)==="Collection"&&((a=(i=this.source)==null?void 0:i.collectionFields)!=null&&a.pmql)&&this.onCollectionChange((s=(n=this.source)==null?void 0:n.collectionFields)==null?void 0:s.collectionId,(u=(o=this.source)==null?void 0:o.collectionFields)==null?void 0:u.pmql)},deep:!0,immediate:!1}},mounted(){var t,e,r,i,a,n,s;this._perPage&&(this.perPage=this._perPage),this.updateRowDataNamePrefix=G.debounce(this.updateRowDataNamePrefix,100),this.paginationOption!=null&&(this.perPage=this.paginationOption),((t=this.source)==null?void 0:t.sourceOptions)==="Collection"&&this.onCollectionChange((r=(e=this.source)==null?void 0:e.collectionFields)==null?void 0:r.collectionId,(a=(i=this.source)==null?void 0:i.collectionFields)==null?void 0:a.pmql),this.setStyleMode((n=this.designerMode)==null?void 0:n.designerOptions),this.$root.$emit("record-list-option",(s=this.source)==null?void 0:s.sourceOptions)},methods:{togglePopover(t,e,r){if(this.deleteIndex=G.find(this.tableData.data,{row_id:r}),this.isPopoverVisible=this.isPopoverVisible===t?null:t,this.isPopoverVisible!==null){const i=e.target.getBoundingClientRect();this.popoverPosition={top:`${i.bottom+window.scrollY}px`,left:`${i.left+window.scrollX}px`}}},hidePopover(){this.isPopoverVisible=null},popover_remove(){this.remove(),this.hidePopover()},rowClass(t){return this.isRowSelected(t)?"sel-row":""},isRowSelected(t){return this.selectedRows.includes(t)||this.selectedRow===t},setStyleMode(t){this.styleMode=t||"Classic"},selectAllRows(){if(this.allRowsSelected){const t=this.tableData.data.map((e,r)=>({...e,selectedRowsIndex:r}));this.selectedRows=t,this.collectionData=t,this.onMultipleSelectionChange()}else this.selectedRows=[],this.onMultipleSelectionChange()},componentOutput(t){this.$emit("input",t)},onRadioChange(t,e){var i;const r=(this.currentPage-1)*this.perPage+e;if((i=this.source)!=null&&i.singleField){let a=t[this.source.singleField];this.componentOutput(a)}else t={...t,selectedRowIndex:r},this.componentOutput(t)},onMultipleSelectionChange(t){this.collectionData.forEach((e,r)=>{this.selectedRows.forEach(i=>{this.areObjectsEqual(i,e)&&(i.selectedRowsIndex=r)})}),this.componentOutput(this.selectedRows),this.rows.push(t)},areObjectsEqual(t,e){const r=Object.keys(t),i=Object.keys(e);return r.length!==i.length?!1:r.every(a=>t[a]===e[a])},onCollectionChange(t,e){if(!e||e.trim()===""){this.fetchAllRecords(t);return}const r=this.processMustacheInPmql(e);r&&this.fetchRecordsWithPmql(t,r)},processMustacheInPmql(t){if(!t||!t.includes("{{"))return t;try{const e=this.validationData||{};let r=Qt.render(t,e);return this.hasEmptyValues(r)?(this.collectionData=[],null):(r=r.replace(/= ([^"'\s][^"']*[^"'\s]|[^"'\s]+)(?=\s|$)/g,'= "$1"'),r)}catch{return this.collectionData=[],null}},hasEmptyValues(t){return['= ""','= " "',"= null","= undefined"].some(r=>t.includes(r))},isValidPmql(t){return t&&t.trim()!==""&&!t.includes("{{")},fetchAllRecords(t){this.$dataProvider.getCollectionRecordsList(t,{}).then(e=>{const r=e.data;this.changeCollectionColumns(r,this.fields)}).catch(()=>{this.collectionData=[]})},fetchRecordsWithPmql(t,e){if(!this.isValidPmql(e)){this.collectionData=[];return}const r={params:{pmql:e}};this.$dataProvider.getCollectionRecordsList(t,r).then(i=>{const a=i.data;this.changeCollectionColumns(a,this.fields)}).catch(()=>{this.collectionData=[]}),this.$emit("change",this.field)},changeCollectionColumns(t,e){const r=e.optionsList;t.forEach(i=>{let a=i.data,n={};Object.keys(a).forEach(s=>{const o=r.find(u=>u.content===s);o&&(n[o.key]=a[s])}),i.data=n}),this.setCollectionIntoList(t)},setCollectionIntoList(t){const e=[];t.forEach(r=>{if(r.hasOwnProperty("data")){const i=r.data,a={};for(const[n,s]of Object.entries(i))a[n]=s;e.push(a)}}),this.collectionData=e},updateRowDataNamePrefix(){this.setUploadDataNamePrefix(this.currentRowIndex)},emitShownEvent(){window.ProcessMaker.EventBus.$emit("modal-shown")},formatIfDate(t){return $.dateUtils.formatIfDate(t)},isImage(t,e){const r=G.get(e,t.key);return typeof r=="string"&&r.substr(0,11)==="data:image/"},isWebEntryFile(t,e){const r=G.get(e,t.key),i=/^webentry_.*:*$/;let a=r;return Array.isArray(r)&&(a=r[0].file),i.test(a)},formatIfWebEntryFile(t,e){return G.get(window,"PM4ConfigOverrides.requestFiles",{})[`${t.key}.${e.row_id}`].map(a=>a.file_name).join(", ")},isFiledownload(t){return t.key==="__filedownload"},setUploadDataNamePrefix(t=null){this.currentRowIndex=t;let e=null;t!==null&&this.editItem?e=this.editItem.row_id:this.addItem&&(e=this.addItem.row_id),this.$root.$emit("set-upload-data-name",this,t,e)},getTableFieldsFromDataSource(){var n;const{jsonData:t,key:e,value:r,dataName:i}=this.fields;let a={};return((n=this.source)==null?void 0:n.sourceOptions)==="Collection"?a=s=>({key:s[e||"key"],sortable:!0,label:s[e||"key"],tdClass:"table-column"}):a=s=>({key:s[e||"value"],sortable:!0,label:s[r||"content"],tdClass:"table-column"}),this.getValidFieldData(t,i).map(a)},getValidFieldData(t,e){let r=this.validationData[e];if(t)try{r=JSON.parse(t)}catch{r=[]}return Array.isArray(r)?r:[]},hideInformation(){this.$refs.infoModal.hide()},onPaginationData(t){this.$refs.pagination.setPaginationData(t)},onChangePerPage(t){this.perPage=parseInt(t)},onChangePage(t){t=="next"?this.paginatorPage+=1:t=="prev"?this.paginatorPage-=1:this.paginatorPage=t,this.paginatorPage<=0&&(this.paginatorPage=1),this.paginatorPage>this.lastPage&&(this.paginatorPage=this.lastPage)},showEditForm(t,e){const r=(this.currentPage-1)*this.perPage+t;this.editItem=JSON.parse(JSON.stringify(G.find(this.tableData.data,{row_id:e}))),this.editIndex=r,this.editFormVersion++,this.$nextTick(()=>{this.setUploadDataNamePrefix(r),this.$refs.editModal.show()})},edit(t){if(this.$refs.addRenderer.hasSubmitted(!0),this.$refs.editRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid){t.preventDefault();return}const e=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],r=G.findIndex(e,{row_id:this.editItem.row_id});e[r]=JSON.parse(JSON.stringify(this.editItem)),delete e[r]._parent,this.$emit("input",e)},showAddForm(){const t=Math.random().toString(36).substring(2)+Date.now().toString(36);if(this.$set(this.addItem,"row_id",t),this.setUploadDataNamePrefix(),!this.form){this.$refs.infoModal.show();return}this.$refs.addModal.show();const{_parent:e,...r}=this.addItem;this.initFormValues=G.cloneDeep(r)},handleHideAddModal(){this.addItem=this.initFormValues,this.$refs.addRenderer.hasSubmitted(!1)},async handleOk(t){if(this.$refs.addRenderer.hasSubmitted(!0),t.preventDefault(),this.$refs.addRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid)return;const e=this.value?JSON.parse(JSON.stringify(this.value)):[],r=JSON.parse(JSON.stringify({...this.addItem,_parent:void 0}));delete r._parent,e[e.length]=r,this.$emit("input",e),this.addItem={},this.$nextTick(()=>{this.$refs.addModal.hide()})},showDeleteConfirmation(t,e){this.deleteIndex=G.find(this.tableData.data,{row_id:e}),this.$refs.deleteModal.show()},downloadFile(t,e,r){const i=this.$root.task.request_data._request.id,a=`${this.name}.${r}.${e}`;window.ProcessMaker.apiClient.get(`requests/${i}/files?name=${a}`).then(n=>{const s=n.data;if(s&&s.data&&s.data.length){const o=s.data[0];this.downloadRecordListFile(o,i)}})},downloadRecordListFile(t,e){window.ProcessMaker.apiClient({baseURL:"/",url:`/request/${e}/files/${t.id}`,method:"GET",responseType:"blob"}).then(r=>{const i=window.URL.createObjectURL(new Blob([r.data])),a=document.createElement("a");a.href=i,a.setAttribute("download",t.file_name),document.body.appendChild(a),a.click()})},remove(){const t=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],e=this.deleteIndex;G.remove(t,{row_id:this.deleteIndex.row_id}),this.$emit("input",t),this.$root.$emit("removed-record",this,e)}}};var UQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"data-table overflow-auto"},[r("div",{staticClass:"row mb-2 ml-0 mr-0"},[r("div",{staticClass:"col"},[r("h4",[e._v(e._s(e.label))])]),e.styleMode==="Classic"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-primary",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()]),!e.value&&!e.tableData.data?r("div",[e._v(" "+e._s(e.$t("This record list is empty or contains no data."))+" ")]):[r("b-table",{ref:"vuetable",class:e.tableClassModern,attrs:{"per-page":e.perPage,"data-manager":e.dataManager,fields:e.tableFields,items:e.tableData.data,"sort-compare-options":{numeric:!1},"sort-null-last":!0,"sort-icon-left":"",css:e.css,"empty-text":e.$t("No Data Available"),"current-page":e.currentPage,"data-cy":"table","tbody-tr-class":e.rowClass},scopedSlots:e._u([{key:"head(checkbox)",fn:function(i){return[r("b-form-checkbox",{attrs:{indeterminate:e.indeterminate,"aria-label":"Select All"},on:{change:e.selectAllRows},model:{value:e.allRowsSelected,callback:function(a){e.allRowsSelected=a},expression:"allRowsSelected"}})]}},{key:"cell(checkbox)",fn:function({index:i,item:a}){return[r("b-form-checkbox",{attrs:{value:a},on:{change:function(n){return e.onMultipleSelectionChange(i)}},model:{value:e.selectedRows,callback:function(n){e.selectedRows=n},expression:"selectedRows"}})]}},{key:"cell(radio)",fn:function({index:i,item:a}){return[r("b-form-radio",{attrs:{value:a},on:{change:function(n){return e.onRadioChange(a,i)}},model:{value:e.selectedRow,callback:function(n){e.selectedRow=n},expression:"selectedRow"}})]}},{key:"cell()",fn:function({index:i,field:a,item:n}){return[e.isFiledownload(a,n)?[r("span",{attrs:{href:"#"},on:{click:function(s){return e.downloadFile(n,a.key,i)}}},[e._v(e._s(e.mustache(a.key,n)))])]:e.isImage(a,n)?[r("img",{staticStyle:{},attrs:{src:e.mustache(a.key,n)}})]:e.isWebEntryFile(a,n)?[e._v(" "+e._s(e.formatIfWebEntryFile(a,n))+" ")]:[e._v(" "+e._s(e.formatIfDate(e.mustache(a.key,n)))+" ")]]}},{key:"cell(__actions)",fn:function({index:i,item:a}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"btn-group btn-group-sm",attrs:{role:"group","aria-label":"Actions"}},[r("button",{class:{btn:!0,"btn-primary":e.styleMode==="Classic"},attrs:{title:e.$t("Edit"),"data-cy":"edit-row"},on:{click:function(n){return e.showEditForm(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-edit"}):r("img",{attrs:{src:qQ,alt:"edit"}})]),r("button",{ref:"deleteButton",class:{btn:!0,"btn-danger":e.styleMode==="Classic"},attrs:{title:e.$t("Delete"),"data-cy":"remove-row",popover:"manual"},on:{click:function(n){e.styleMode==="Modern"?e.togglePopover(i,n,a.row_id):e.showDeleteConfirmation(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-trash-alt"}):r("img",{attrs:{src:WQ,alt:"delete"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPopoverVisible===i,expression:"isPopoverVisible === index"}],staticClass:"popover-content"},[r("p",[e._v("Are you sure you want to delete it?")]),r("button",{staticClass:"btn btn-light",on:{click:e.hidePopover}},[e._v("CANCEL")]),r("button",{staticClass:"btn btn-danger",on:{click:function(n){return e.popover_remove()}}},[e._v("DELETE")])])])])]}}])}),r("div",{staticClass:"d-flex justify-content-between align-items-center"},[r("div",{staticClass:"col text-left"},[e.tableData.total>e.perPage&&e.perPage!==0?r("b-pagination",{attrs:{"data-cy":"table-pagination","total-rows":e.tableData.total,"per-page":e.perPage,"aria-label":e.$t("Pagination"),"aria-controls":"vuetable"},on:{change:e.onChangePage},model:{value:e.currentPage,callback:function(i){e.currentPage=i},expression:"currentPage"}}):e._e()],1),e.styleMode==="Modern"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-link text-primary class-button-modern",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[r("span",{staticClass:"mr-1"},[e._v("+")]),e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()])],e.editable&&!e.selfReferenced?r("b-modal",{ref:"addModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Ok"),"cancel-title":e.$t("Cancel"),title:e.$t("Add"),"header-close-content":"×","data-cy":"modal-add"},on:{ok:e.handleOk,hidden:e.handleHideAddModal,shown:e.emitShownEvent}},[r("vue-form-renderer",{key:Array.isArray(e.value)?e.value.length:0,ref:"addRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Add",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.addItem,callback:function(i){e.addItem=i},expression:"addItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"editModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),title:e.$t("Edit Record"),"header-close-content":"×","data-cy":"modal-edit"},on:{ok:e.edit,hidden:function(i){return e.$refs.addRenderer.hasSubmitted(!1)},shown:e.emitShownEvent}},[r("vue-form-renderer",{key:e.editFormVersion,ref:"editRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Edit",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.editItem,callback:function(i){e.editItem=i},expression:"editItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"deleteModal",attrs:{size:"lg","ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),title:e.$t("Delete Record"),"header-close-content":"×","data-cy":"modal-remove"},on:{ok:e.remove}},[r("p",[e._v(e._s(e.$t("Are you sure you want to remove this record?")))])]):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"infoModal",attrs:{size:"sm","ok-title":e.$t("OK"),title:e.$t("Information form"),"header-close-content":"×","ok-only":"","data-cy":"modal-not-assigned"},on:{ok:e.hideInformation}},[r("p",[e._v(e._s(e.$t("The form to be displayed is not assigned.")))])]):e._e(),e.editable&&e.selfReferenced?r("div",{staticClass:"alert alert-danger"},[e._v(" "+e._s(e.$t("The Record List control is not allowed to reference other controls on its own page to add or edit records. Specify a secondary page with controls to enter records."))+" ")]):e._e()],2)},GQ=[],QQ=ie(JQ,UQ,GQ,!1,null,null,null,null);const Du=QQ.exports,YQ={name:"FormRecordListStatic",components:{},mixins:[_d],props:["label","fields","value","editable","_config","form"],mounted(){},methods:{formatIfDate(t){return $.formatIfDate(t)}}};var ZQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"record-list"},[r("h4",[e._v(e._s(e.$t(e.label)))]),r("table",[r("thead",[r("tr",e._l(e.fields,function(i,a){return r("th",{key:a},[e._v(" "+e._s(i.content)+" ")])}),0)]),r("tbody",e._l(e.value,function(i,a){return r("tr",{key:a},e._l(e.fields,function(n,s){return r("td",{key:s},[e._v(" "+e._s(e.formatIfDate(e.mustache(n.value,i)))+" ")])}),0)}),0)])])},KQ=[],_Q=ie(YQ,ZQ,KQ,!1,null,null,null,null);const eS=_Q.exports,$Q={props:["label","fontSize","fontWeight","textAlign","verticalAlign","validationData","color","name"],computed:{styles(){return{fontSize:this.fontSize,fontWeight:this.fontWeight,textAlign:this.textAlign,verticalAlign:this.verticalAlign,color:this.color}},rendered(){if(!this.validationData)return this.label;try{return Qt.render(this.label,this.validationData)}catch{return this.label}}}};var eY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{style:e.styles,domProps:{innerHTML:e._s(e.rendered)}})])},tY=[],rY=ie($Q,eY,tY,!1,null,null,null,null);const Au=rY.exports,iY={};var aY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"row"},[e._t("default")],2)},nY=[],sY=ie(iY,aY,nY,!1,null,null,null,null);const gp=sY.exports,oY="data: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MzIDE2LjMxODcgMTMwLjMyOVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xNy4xMDI1IDEzMC4zMTVIMjAuMzYxNVYxMjQuNzA3SDE3LjEwMjVWMTMwLjMxNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",Hae="",lY={props:["title","link","url"],data(){return{linkText:`View All ${this.link}`}},methods:{openLink(){window.open(this.url,"_blank")}}};var uY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"container content"},[r("img",{attrs:{src:oY,alt:"empty table"}}),r("span",{staticClass:"title"},[e._v(" "+e._s(e.$t(e.title))+" ")]),e.url!==""?r("b-link",{on:{click:function(i){return e.openLink()}}},[e._v(" "+e._s(e.$t(e.linkText))+" ")]):e._e()],1)},cY=[],dY=ie(lY,uY,cY,!1,null,"7665402d",null,null);const bp=dY.exports,fY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDQuOEwxLjA2NjY3IDAuMzIwMDAzVjBIMFYxMC42NjY3VjE1LjczMzNIMS4wNjY2N1YxMC4yNjY3TDE2IDQuOFoiIGZpbGw9IiM1NTYyNzEiLz4KPC9zdmc+Cg==",Vae="",pY=kn(),hY={components:{formEmpty:bp,Recommendations:t=>{var e;t(((e=window.SharedComponents)==null?void 0:e.Recommendations)||{template:"<span></span>"})}},mixins:[pY,kc],data(){var t,e;return{countInProgress:"0",countOverdue:"0",countResponse:"0",fields:[],data:[],tableData:[],orderBy:"ID",order_direction:"DESC",status:"",showTable:!0,tableHeaders:[],pmqlSearch:"",sortOrder:[{field:"ID",sortField:"ID",direction:"DESC"}],advancedFilter:"",tasksPreview:((t=window.SharedComponents)==null?void 0:t.TasksHome)||{},taskTooltip:((e=window.SharedComponents)==null?void 0:e.TaskTooltip)||{},rowPosition:{},ellipsisShow:!1,isTooltipVisible:!1,disableRuleTooltip:!1,hiderTimer:null}},computed:{noDataUrl(){var t,e;return`${(e=(t=window.ProcessMaker)==null?void 0:t.app)==null?void 0:e.url}/tasks`}},mounted(){this.setupColumns(),this.pmql=`(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`,this.fetch(),this.$root.$on("dropdownSelectionTask",this.fetchData),this.$root.$on("searchTask",this.fetchSearch)},methods:{getSortParam(){return this.sortOrder instanceof Array&&this.sortOrder.length>0?`&order_by=${this.sortOrder[0].sortField}&order_direction=${this.sortOrder[0].direction}`:""},fetch(){Vue.nextTick(()=>{let t="",e="";this.pmql!==void 0&&(t=this.pmql),this.pmqlSearch&&(t=`${t} AND ${this.pmqlSearch}`),this.filterDropdowns!==void 0&&(e=this.filterDropdowns);let{filter:r}=this,i="";r&&r.length&&(r.isPMQL()?(t=`(${t}) and (${r})`,r=""):i=`&user_id=${window.ProcessMaker.user.id}&filter=${r}&statusfilter=ACTIVE,CLOSED`),this.previousFilter!==r&&(this.page=1),this.previousFilter=r,this.previousPmql!==t&&(this.page=1),this.previousPmql=t;const a=[];ProcessMaker.apiClient.get(`tasks?page=${this.page}&include=process,processRequest,processRequest.user,user,data&pmql=${encodeURIComponent(t)}
|
|
356
|
+
| <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>"}},CW={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"}}},kW=wW,TW=SW,MW=PW,ep=CW,Zx=/^\s*\|\s*/;function DW(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 tp(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]=Zx.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(Zx,""));return r}function Kx(t){const e={};for(const r in t)e[r]=t[r].syntax;return e}function AW(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?tp(t[i].descriptors,a||{}):a&&Kx(a)}}for(const i in e)hasOwnProperty.call(t,i)||(r[i]={prelude:e[i].prelude||null,descriptors:e[i].descriptors&&Kx(e[i].descriptors)});return r}var OW={types:tp(MW,ep.syntaxes),atrules:AW(DW(kW),ep.atrules),properties:tp(TW,ep.properties)},_x=de.cmpChar,$x=de.isDigit,Ps=de.TYPE,ew=Ps.WhiteSpace,tw=Ps.Comment,rp=Ps.Ident,ii=Ps.Number,zW=Ps.Dimension,Nr=43,Vt=45,vu=110,$i=!0,EW=!1;function gu(t,e){var r=this.scanner.tokenStart+t,i=this.scanner.source.charCodeAt(r);for((i===Nr||i===Vt)&&(e&&this.error("Number sign is not allowed"),r++);r<this.scanner.tokenEnd;r++)$x(this.scanner.source.charCodeAt(r))||this.error("Integer is expected",r)}function Za(t){return gu.call(this,0,t)}function Si(t,e){if(!_x(this.scanner.source,this.scanner.tokenStart+t,e)){var r="";switch(e){case vu:r="N is expected";break;case Vt:r="HyphenMinus is expected";break}this.error(r,this.scanner.tokenStart+t)}}function ip(){for(var t=0,e=0,r=this.scanner.tokenType;r===ew||r===tw;)r=this.scanner.lookupType(++t);if(r!==ii)if(this.scanner.isDelim(Nr,t)||this.scanner.isDelim(Vt,t)){e=this.scanner.isDelim(Nr,t)?Nr:Vt;do r=this.scanner.lookupType(++t);while(r===ew||r===tw);r!==ii&&(this.scanner.skip(t),Za.call(this,$i))}else return null;return t>0&&this.scanner.skip(t),e===0&&(r=this.scanner.source.charCodeAt(this.scanner.tokenStart),r!==Nr&&r!==Vt&&this.error("Number sign is expected")),Za.call(this,e!==0),e===Vt?"-"+this.consume(ii):this.consume(ii)}var jW={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var t=this.scanner.tokenStart,e=null,r=null;if(this.scanner.tokenType===ii)Za.call(this,EW),r=this.consume(ii);else if(this.scanner.tokenType===rp&&_x(this.scanner.source,this.scanner.tokenStart,Vt))switch(e="-1",Si.call(this,1,vu),this.scanner.getTokenLength()){case 2:this.scanner.next(),r=ip.call(this);break;case 3:Si.call(this,2,Vt),this.scanner.next(),this.scanner.skipSC(),Za.call(this,$i),r="-"+this.consume(ii);break;default:Si.call(this,2,Vt),gu.call(this,3,$i),this.scanner.next(),r=this.scanner.substrToCursor(t+2)}else if(this.scanner.tokenType===rp||this.scanner.isDelim(Nr)&&this.scanner.lookupType(1)===rp){var i=0;switch(e="1",this.scanner.isDelim(Nr)&&(i=1,this.scanner.next()),Si.call(this,0,vu),this.scanner.getTokenLength()){case 1:this.scanner.next(),r=ip.call(this);break;case 2:Si.call(this,1,Vt),this.scanner.next(),this.scanner.skipSC(),Za.call(this,$i),r="-"+this.consume(ii);break;default:Si.call(this,1,Vt),gu.call(this,2,$i),this.scanner.next(),r=this.scanner.substrToCursor(t+i+1)}}else if(this.scanner.tokenType===zW){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=a===Nr||a===Vt,n=this.scanner.tokenStart+i;n<this.scanner.tokenEnd&&$x(this.scanner.source.charCodeAt(n));n++);n===this.scanner.tokenStart+i&&this.error("Integer is expected",this.scanner.tokenStart+i),Si.call(this,n-this.scanner.tokenStart,vu),e=this.scanner.source.substring(t,n),n+1===this.scanner.tokenEnd?(this.scanner.next(),r=ip.call(this)):(Si.call(this,n-this.scanner.tokenStart+1,Vt),n+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),Za.call(this,$i),r="-"+this.consume(ii)):(gu.call(this,n-this.scanner.tokenStart+2,$i),this.scanner.next(),r=this.scanner.substrToCursor(n+1)))}else this.error();return e!==null&&e.charCodeAt(0)===Nr&&(e=e.substr(1)),r!==null&&r.charCodeAt(0)===Nr&&(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))}},NW=de,bu=NW.TYPE,IW=bu.WhiteSpace,ap=bu.Semicolon,rw=bu.LeftCurlyBracket,LW=bu.Delim,FW=33;function BW(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===IW?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function iw(){return 0}function RW(t){return t===rw?1:0}function HW(t){return t===rw||t===ap?1:0}function VW(t,e,r){return t===LW&&e.charCodeAt(r)===FW||t===ap?1:0}function qW(t){return t===ap?2:0}var ea={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||iw)),r&&this.scanner.tokenStart>i?a=BW.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:iw,leftCurlyBracket:RW,leftCurlyBracketOrSemicolon:HW,exclamationMarkOrSemicolon:VW,semicolonIncluded:qW}},yu=de.TYPE,WW=ea.mode,aw=yu.AtKeyword,nw=yu.Semicolon,np=yu.LeftCurlyBracket,XW=yu.RightCurlyBracket;function sw(t){return this.Raw(t,WW.leftCurlyBracketOrSemicolon,!0)}function JW(){for(var t=1,e;e=this.scanner.lookupType(t);t++){if(e===XW)return!0;if(e===np||e===aw)return!1}return!1}var UW={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(aw),e=this.scanner.substrToCursor(t+1),r=e.toLowerCase(),this.scanner.skipSC(),this.scanner.eof===!1&&this.scanner.tokenType!==np&&this.scanner.tokenType!==nw&&(this.parseAtrulePrelude?(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),sw),i.type==="AtrulePrelude"&&i.children.head===null&&(i=null)):i=sw.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case nw:this.scanner.next();break;case np:this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this):a=this.Block(JW.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"},ow=de.TYPE,GW=ow.Semicolon,QW=ow.LeftCurlyBracket,YW={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!==QW&&this.scanner.tokenType!==GW&&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"},Cs=de.TYPE,ks=Cs.Ident,ZW=Cs.String,KW=Cs.Colon,_W=Cs.LeftSquareBracket,lw=Cs.RightSquareBracket,$W=36,uw=42,xu=61,eX=94,sp=124,tX=126;function rX(){this.scanner.eof&&this.error("Unexpected end of input");var t=this.scanner.tokenStart,e=!1,r=!0;return this.scanner.isDelim(uw)?(e=!0,r=!1,this.scanner.next()):this.scanner.isDelim(sp)||this.eat(ks),this.scanner.isDelim(sp)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==xu?(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===KW&&(this.scanner.next(),this.eat(ks)),{type:"Identifier",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}}function iX(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(t);return e!==xu&&e!==tX&&e!==eX&&e!==$W&&e!==uw&&e!==sp&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),e!==xu&&(this.scanner.isDelim(xu)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(t)}var aX={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(_W),this.scanner.skipSC(),e=rX.call(this),this.scanner.skipSC(),this.scanner.tokenType!==lw&&(this.scanner.tokenType!==ks&&(r=iX.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===ZW?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===ks&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(lw),{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("]")}},Ka=de.TYPE,nX=ea.mode,sX=Ka.WhiteSpace,oX=Ka.Comment,cw=Ka.Semicolon,lX=Ka.AtKeyword,uX=Ka.LeftCurlyBracket,dw=Ka.RightCurlyBracket;function fw(t){return this.Raw(t,null,!0)}function cX(){return this.parseWithFallback(this.Rule,fw)}function pw(t){return this.Raw(t,nX.semicolonIncluded,!0)}function dX(){if(this.scanner.tokenType===cw)return pw.call(this,this.scanner.tokenIndex);var t=this.parseWithFallback(this.Declaration,pw);return this.scanner.tokenType===cw&&this.scanner.next(),t}var fX={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(t){var e=t?dX:cX,r=this.scanner.tokenStart,i=this.createList();this.eat(uX);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case dw:break e;case sX:case oX:this.scanner.next();break;case lX:i.push(this.parseWithFallback(this.Atrule,fw));break;default:i.push(e.call(this))}return this.scanner.eof||this.eat(dw),{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"},hw=de.TYPE,pX=hw.LeftSquareBracket,hX=hw.RightSquareBracket,mX={name:"Brackets",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(pX),i=t.call(this,e),this.scanner.eof||this.eat(hX),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("["),this.children(t),this.chunk("]")}},vX=de.TYPE.CDC,gX={name:"CDC",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(vX),{type:"CDC",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("-->")}},bX=de.TYPE.CDO,yX={name:"CDO",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(bX),{type:"CDO",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("<!--")}},xX=de.TYPE,wX=xX.Ident,SX=46,PX={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(SX)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(wX)}},generate:function(t){this.chunk("."),this.chunk(t.name)}},CX=de.TYPE,kX=CX.Ident,TX=43,mw=47,MX=62,DX=126,AX={name:"Combinator",structure:{name:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case MX:case TX:case DX:this.scanner.next();break;case mw:this.scanner.next(),(this.scanner.tokenType!==kX||this.scanner.lookupValue(0,"deep")===!1)&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(mw)||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)}},OX=de.TYPE,zX=OX.Comment,EX=42,jX=47,NX={name:"Comment",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenEnd;return this.eat(zX),e-t+2>=2&&this.scanner.source.charCodeAt(e-2)===EX&&this.scanner.source.charCodeAt(e-1)===jX&&(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("*/")}},IX=pf.isCustomProperty,_a=de.TYPE,vw=ea.mode,gw=_a.Ident,bw=_a.Hash,LX=_a.Colon,yw=_a.Semicolon,xw=_a.Delim,FX=_a.WhiteSpace,ww=33,BX=35,RX=36,HX=38,VX=42,qX=43,Sw=47;function WX(t){return this.Raw(t,vw.exclamationMarkOrSemicolon,!0)}function XX(t){return this.Raw(t,vw.exclamationMarkOrSemicolon,!1)}function JX(){var t=this.scanner.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==yw&&this.scanner.isDelim(ww)===!1&&this.scanner.isBalanceEdge(t)===!1&&this.error(),e}var UX={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenIndex,r=GX.call(this),i=IX(r),a=i?this.parseCustomProperty:this.parseValue,n=i?XX:WX,s=!1,o;this.scanner.skipSC(),this.eat(LX);const u=this.scanner.tokenIndex;if(i||this.scanner.skipSC(),a?o=this.parseWithFallback(JX,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)===FX){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.scanner.isDelim(ww)&&(s=QX.call(this),this.scanner.skipSC()),this.scanner.eof===!1&&this.scanner.tokenType!==yw&&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 GX(){var t=this.scanner.tokenStart;if(this.scanner.tokenType===xw)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case VX:case RX:case qX:case BX:case HX:this.scanner.next();break;case Sw:this.scanner.next(),this.scanner.isDelim(Sw)&&this.scanner.next();break}return this.scanner.tokenType===bw?this.eat(bw):this.eat(gw),this.scanner.substrToCursor(t)}function QX(){this.eat(xw),this.scanner.skipSC();var t=this.consume(gw);return t==="important"?!0:t}var op=de.TYPE,YX=ea.mode,ZX=op.WhiteSpace,KX=op.Comment,_X=op.Semicolon;function $X(t){return this.Raw(t,YX.semicolonIncluded,!0)}var eJ={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case ZX:case KX:case _X:this.scanner.next();break;default:t.push(this.parseWithFallback(this.Declaration,$X))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")})}},tJ=os.consumeNumber,rJ=de.TYPE,iJ=rJ.Dimension,aJ={name:"Dimension",structure:{value:String,unit:String},parse:function(){var t=this.scanner.tokenStart,e=tJ(this.scanner.source,t);return this.eat(iJ),{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)}},nJ=de.TYPE,sJ=nJ.RightParenthesis,oJ={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(sJ),{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"},lJ=de.TYPE,uJ=lJ.Hash,cJ={name:"Hash",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(uJ),{type:"Hash",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.value)}},dJ=de.TYPE,fJ=dJ.Ident,pJ={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(fJ)}},generate:function(t){this.chunk(t.name)}},hJ=de.TYPE,mJ=hJ.Hash,vJ={name:"IdSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(mJ),{type:"IdSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.name)}},ta=de.TYPE,Pw=ta.Ident,gJ=ta.Number,bJ=ta.Dimension,yJ=ta.LeftParenthesis,Cw=ta.RightParenthesis,xJ=ta.Colon,wJ=ta.Delim,SJ={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var t=this.scanner.tokenStart,e,r=null;if(this.eat(yJ),this.scanner.skipSC(),e=this.consume(Pw),this.scanner.skipSC(),this.scanner.tokenType!==Cw){switch(this.eat(xJ),this.scanner.skipSC(),this.scanner.tokenType){case gJ:this.lookupNonWSType(1)===wJ?r=this.Ratio():r=this.Number();break;case bJ:r=this.Dimension();break;case Pw:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(Cw),{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(")")}},wu=de.TYPE,PJ=wu.WhiteSpace,CJ=wu.Comment,kJ=wu.Ident,TJ=wu.LeftParenthesis,MJ={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 CJ:this.scanner.next();continue;case PJ:r=this.WhiteSpace();continue;case kJ:e=this.Identifier();break;case TJ: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)}},DJ=de.TYPE.Comma,AJ={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===DJ);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t,function(){this.chunk(",")})}},OJ={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))}},zJ=de.TYPE.Number,EJ={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(zJ)}},generate:function(t){this.chunk(t.value)}},jJ={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)}},kw=de.TYPE,NJ=kw.LeftParenthesis,IJ=kw.RightParenthesis,LJ={name:"Parentheses",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(NJ),i=t.call(this,e),this.scanner.eof||this.eat(IJ),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("("),this.children(t),this.chunk(")")}},FJ=os.consumeNumber,BJ=de.TYPE,RJ=BJ.Percentage,HJ={name:"Percentage",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=FJ(this.scanner.source,t);return this.eat(RJ),{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("%")}},Su=de.TYPE,VJ=Su.Ident,qJ=Su.Function,WJ=Su.Colon,XJ=Su.RightParenthesis,JJ={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(WJ),this.scanner.tokenType===qJ?(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(XJ)):r=this.consume(VJ),{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"},Pu=de.TYPE,UJ=Pu.Ident,GJ=Pu.Function,Tw=Pu.Colon,QJ=Pu.RightParenthesis,YJ={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(Tw),this.eat(Tw),this.scanner.tokenType===GJ?(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(QJ)):r=this.consume(UJ),{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"},ZJ=de.isDigit,Mw=de.TYPE,KJ=Mw.Number,_J=Mw.Delim,$J=47,eU=46;function Dw(){this.scanner.skipWS();for(var t=this.consume(KJ),e=0;e<t.length;e++){var r=t.charCodeAt(e);!ZJ(r)&&r!==eU&&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 tU={name:"Ratio",structure:{left:String,right:String},parse:function(){var t=this.scanner.tokenStart,e=Dw.call(this),r;return this.scanner.skipWS(),this.scanner.isDelim($J)||this.error("Solidus is expected"),this.eat(_J),r=Dw.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)}},rU=de.TYPE,iU=ea.mode,aU=rU.LeftCurlyBracket;function Aw(t){return this.Raw(t,iU.leftCurlyBracket,!0)}function nU(){var t=this.SelectorList();return t.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==aU&&this.error(),t}var sU={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(nU,Aw):r=Aw.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"},oU={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)}},lU=de.TYPE,uU=lU.Comma,cU={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;){if(t.push(this.Selector()),this.scanner.tokenType===uU){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"},dU=de.TYPE.String,fU={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(dU)}},generate:function(t){this.chunk(t.value)}},Ts=de.TYPE,pU=Ts.WhiteSpace,hU=Ts.Comment,mU=Ts.AtKeyword,vU=Ts.CDO,gU=Ts.CDC,bU=33;function Ow(t){return this.Raw(t,null,!1)}var yU={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 pU:this.scanner.next();continue;case hU:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==bU){this.scanner.next();continue}r=this.Comment();break;case vU:r=this.CDO();break;case gU:r=this.CDC();break;case mU:r=this.parseWithFallback(this.Atrule,Ow);break;default:r=this.parseWithFallback(this.Rule,Ow)}e.push(r)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)},walkContext:"stylesheet"},xU=de.TYPE,wU=xU.Ident,SU=42,zw=124;function lp(){this.scanner.tokenType!==wU&&this.scanner.isDelim(SU)===!1&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var PU={name:"TypeSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.isDelim(zw)?(this.scanner.next(),lp.call(this)):(lp.call(this),this.scanner.isDelim(zw)&&(this.scanner.next(),lp.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},CU=de.isHexDigit,Ew=de.cmpChar,up=de.TYPE,kU=de.NAME,TU=up.Ident,jw=up.Number,Nw=up.Dimension,Cu=43,Iw=45,cp=63,MU=117;function Ms(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===Iw&&e&&i!==0)return Ms.call(this,t+i+1,!1)===0&&this.error(),-1;CU(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 ku(t){for(var e=0;this.scanner.isDelim(cp);)++e>t&&this.error("Too many question marks"),this.scanner.next()}function dp(t){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==t&&this.error(kU[t]+" is expected")}function DU(){var t=0;if(this.scanner.isDelim(Cu)){if(this.scanner.next(),this.scanner.tokenType===TU){t=Ms.call(this,0,!0),t>0&&ku.call(this,6-t);return}if(this.scanner.isDelim(cp)){this.scanner.next(),ku.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===jw){if(dp.call(this,Cu),t=Ms.call(this,1,!0),this.scanner.isDelim(cp)){ku.call(this,6-t);return}if(this.scanner.tokenType===Nw||this.scanner.tokenType===jw){dp.call(this,Iw),Ms.call(this,1,!1);return}return}if(this.scanner.tokenType===Nw){dp.call(this,Cu),t=Ms.call(this,1,!0),t>0&&ku.call(this,6-t);return}this.error()}var AU={name:"UnicodeRange",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return Ew(this.scanner.source,t,MU)||this.error("U is expected"),Ew(this.scanner.source,t+1,Cu)||this.error("Plus sign is expected"),this.scanner.next(),DU.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},Lw=de.isWhiteSpace,OU=de.cmpStr,fp=de.TYPE,Fw=fp.Function,Bw=fp.Url,zU=fp.RightParenthesis,EU={name:"Url",structure:{value:["String","Raw"]},parse:function(){var t=this.scanner.tokenStart,e;switch(this.scanner.tokenType){case Bw:for(var r=t+4,i=this.scanner.tokenEnd-1;r<i&&Lw(this.scanner.source.charCodeAt(r));)r++;for(;r<i&&Lw(this.scanner.source.charCodeAt(i-1));)i--;e={type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)},this.eat(Bw);break;case Fw:OU(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Fw),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(zU);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(")")}},jU={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)}},NU=de.TYPE.WhiteSpace,IU=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),LU={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(NU),IU},generate:function(t){this.chunk(t.value)}},pp={AnPlusB:jW,Atrule:UW,AtrulePrelude:YW,AttributeSelector:aX,Block:fX,Brackets:mX,CDC:gX,CDO:yX,ClassSelector:PX,Combinator:AX,Comment:NX,Declaration:UX,DeclarationList:eJ,Dimension:aJ,Function:oJ,Hash:cJ,Identifier:pJ,IdSelector:vJ,MediaFeature:SJ,MediaQuery:MJ,MediaQueryList:AJ,Nth:OJ,Number:EJ,Operator:jJ,Parentheses:LJ,Percentage:HJ,PseudoClassSelector:JJ,PseudoElementSelector:YJ,Ratio:tU,Raw:ea,Rule:sU,Selector:oU,SelectorList:cU,String:fU,StyleSheet:yU,TypeSelector:PU,UnicodeRange:AU,Url:EU,Value:jU,WhiteSpace:LU},hp=OW,FU={generic:!0,types:hp.types,atrules:hp.atrules,properties:hp.properties,node:pp},Rw=de.cmpChar,BU=de.cmpStr,ar=de.TYPE,RU=ar.Ident,HU=ar.String,VU=ar.Number,qU=ar.Function,WU=ar.Url,XU=ar.Hash,JU=ar.Dimension,UU=ar.Percentage,GU=ar.LeftParenthesis,QU=ar.LeftSquareBracket,YU=ar.Comma,ZU=ar.Delim,KU=35,_U=42,Hw=43,$U=45,eG=47,tG=117,Vw=function(e){switch(this.scanner.tokenType){case XU:return this.Hash();case YU:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case GU:return this.Parentheses(this.readSequence,e.recognizer);case QU:return this.Brackets(this.readSequence,e.recognizer);case HU:return this.String();case JU:return this.Dimension();case UU:return this.Percentage();case VU:return this.Number();case qU:return BU(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case WU:return this.Url();case RU:return Rw(this.scanner.source,this.scanner.tokenStart,tG)&&Rw(this.scanner.source,this.scanner.tokenStart+1,Hw)?this.UnicodeRange():this.Identifier();case ZU:var r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r===eG||r===_U||r===Hw||r===$U)return this.Operator();r===KU&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1);break}},rG={getNode:Vw},Pi=de.TYPE,iG=Pi.Delim,aG=Pi.Ident,nG=Pi.Dimension,sG=Pi.Percentage,oG=Pi.Number,lG=Pi.Hash,qw=Pi.Colon,uG=Pi.LeftSquareBracket,cG=35,dG=42,fG=43,pG=47,Ww=46,hG=62,mG=124,vG=126;function gG(t){switch(this.scanner.tokenType){case uG:return this.AttributeSelector();case lG:return this.IdSelector();case qw:return this.scanner.lookupType(1)===qw?this.PseudoElementSelector():this.PseudoClassSelector();case aG:return this.TypeSelector();case oG:case sG:return this.Percentage();case nG:this.scanner.source.charCodeAt(this.scanner.tokenStart)===Ww&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case iG:var e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case fG:case hG:case vG:return t.space=null,t.ignoreWSAfter=!0,this.Combinator();case pG:return this.Combinator();case Ww:return this.ClassSelector();case dG:case mG:return this.TypeSelector();case cG:return this.IdSelector()}break}}var bG={getNode:gG},yG=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))},Xw=de.TYPE,xG=ea.mode,wG=Xw.Comma,SG=Xw.WhiteSpace,PG=function(){var t=this.createList();if(this.scanner.skipSC(),t.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===wG){t.push(this.Operator());const e=this.scanner.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,xG.exclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty()){for(let i=e-this.scanner.tokenIndex;i<=0;i++)if(this.scanner.lookupType(i)===SG){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(r)}return t},CG={getNode:Vw,expression:yG,var:PG},kG={AtrulePrelude:rG,Selector:bG,Value:CG},TG={parse:{prelude:null,block:function(){return this.Block(!0)}}},Ds=de.TYPE,MG=Ds.String,DG=Ds.Ident,AG=Ds.Url,OG=Ds.Function,zG=Ds.LeftParenthesis,EG={parse:{prelude:function(){var t=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case MG:t.push(this.String());break;case AG:case OG:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===DG||this.lookupNonWSType(0)===zG)&&(t.push(this.WhiteSpace()),t.push(this.MediaQueryList())),t},block:null}},jG={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},NG={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},$a=de.TYPE,IG=$a.WhiteSpace,LG=$a.Comment,Jw=$a.Ident,FG=$a.Function,BG=$a.Colon,RG=$a.LeftParenthesis;function HG(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function VG(){return this.scanner.skipSC(),this.scanner.tokenType===Jw&&this.lookupNonWSType(1)===BG?this.createSingleNodeList(this.Declaration()):Uw.call(this)}function Uw(){var t=this.createList(),e=null,r;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case IG:e=this.WhiteSpace();continue;case LG:this.scanner.next();continue;case FG:r=this.Function(HG,this.scope.AtrulePrelude);break;case Jw:r=this.Identifier();break;case RG:r=this.Parentheses(VG,this.scope.AtrulePrelude);break;default:break e}e!==null&&(t.push(e),e=null),t.push(r)}return t}var qG={parse:{prelude:function(){var t=Uw.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block:function(){return this.Block(!1)}}},WG={"font-face":TG,import:EG,media:jG,page:NG,supports:qG},XG={parse:function(){return this.createSingleNodeList(this.Identifier())}},JG={parse:function(){return this.createSingleNodeList(this.SelectorList())}},UG={parse:function(){return this.createSingleNodeList(this.Identifier())}},Gw={parse:function(){return this.createSingleNodeList(this.SelectorList())}},GG=Gw,QG=Gw,YG=!0,Qw={parse:function(){return this.createSingleNodeList(this.Nth(YG))}},ZG=Qw,KG=Qw,_G=!1,Yw={parse:function(){return this.createSingleNodeList(this.Nth(_G))}},$G=Yw,eQ=Yw,tQ={parse:function(){return this.createSingleNodeList(this.Selector())}},rQ={dir:XG,has:JG,lang:UG,matches:GG,not:QG,"nth-child":ZG,"nth-last-child":KG,"nth-last-of-type":$G,"nth-of-type":eQ,slotted:tQ},iQ={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:kG,atrule:WG,pseudo:rQ,node:pp},aQ={node:pp};const nQ={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 sQ(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}$d.exports=Qb.create(sQ(FU,iQ,aQ)),$d.exports.version=nQ.version;var oQ=$d.exports,ra=oQ,Zw={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.Scrollparent=r()})(Tt,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})})(Zw);var lQ=Zw.exports;const uQ=sr(lQ),cQ={name:"custom-css-output",render(t){return t("style",this.$slots.default)}},Tu=[{code:"AFN",name:"Afghanistan Afghani",format:"####.##",symbol:""},{code:"ALL",name:"Albanian Lek",format:"####.##",symbol:""},{code:"DZD",name:"Algerian Dinar",format:"####.##",symbol:"دج (Arabic) or DA (Latin)"},{code:"AOA",name:"Angolan Kwanza",format:"####.##",symbol:"Kz"},{code:"ARS",name:"Argentine Peso",format:"#.###,##",symbol:""},{code:"AMD",name:"Armenian Dram",format:"#,###.##",symbol:"֏"},{code:"AWG",name:"Aruban Guilder",format:"#,###.##",symbol:""},{code:"AUD",name:"Australian Dollar",format:"# ###.##",symbol:""},{code:"AZN",name:"Azerbaijanian Manat",format:"####.##",symbol:""},{code:"BSD",name:"Bahamian Dollar",format:"#,###.##",symbol:""},{code:"BHD",name:"Bahraini Dinar",format:"#,###.###",symbol:".د.ب (Arabic) or BD (Latin"},{code:"BDT",name:"Bangladesh Taka",format:"#,###.##",symbol:"৳"},{code:"BBD",name:"Barbados Dollar",format:"####.##",symbol:""},{code:"BYN",name:"Belarussian Ruble",format:"####",symbol:""},{code:"BZD",name:"Belize Dollar",format:"#,###.##",symbol:""},{code:"BMD",name:"Bermudian Dollar",format:"#,###.##",symbol:""},{code:"BTN",name:"Bhutan Ngultrum",format:"####.##",symbol:"Nu"},{code:"BOB",name:"Bolivia, Boliviano",format:"#,###.##",symbol:""},{code:"BAM",name:"Bosnia and Herzegovina, Convertible Marks",format:"#,###.##",symbol:""},{code:"BWP",name:"Botswana, Pula",format:"#,###.##",symbol:""},{code:"BRL",name:"Brazilian Real",format:"#.###,##",symbol:""},{code:"BND",name:"Brunei Dollar",format:"#,###.##",symbol:""},{code:"BGN",name:"Bulgarian Lev",format:"####.##",symbol:""},{code:"BIF",name:"Burundi Franc",format:"####",symbol:"FBu"},{code:"KHR",name:"Cambodia, Riel",format:"####.##",symbol:""},{code:"CAD",name:"Canadian Dollar",format:"#,###.##",symbol:""},{code:"CVE",name:"Cape Verde Escudo",format:"####.##",symbol:""},{code:"KYD",name:"Cayman Islands Dollar",format:"#,###.##",symbol:""},{code:"XPF",name:"CFP Franc",format:"####",symbol:"₣"},{code:"CLP",name:"Chilean Peso",format:"#.###",symbol:""},{code:"CNY",name:"China Yuan Renminbi",format:"#,###.##",symbol:""},{code:"COP",name:"Colombian Peso",format:"#.###,##",symbol:""},{code:"KMF",name:"Comoro Franc",format:"####",symbol:"CF"},{code:"CRC",name:"Costa Rican Colon",format:"#.###,##",symbol:""},{code:"HRK",name:"Croatian Kuna",format:"#.###,##",symbol:""},{code:"CUP",name:"Cuban Peso",format:"#,###.##",symbol:""},{code:"CZK",name:"Czech Koruna",format:"#.###,##",symbol:""},{code:"DKK",name:"Danish Krone",format:"#.###,##",symbol:""},{code:"DJF",name:"Djibouti Franc",format:"####",symbol:"Fdj"},{code:"DOP",name:"Dominican Peso",format:"#,###.##",symbol:""},{code:"XCD",name:"East Caribbean Dollar",format:"#,###.##",symbol:""},{code:"EGP",name:"Egyptian Pound",format:"#,###.##",symbol:""},{code:"SVC",name:"El Salvador Colon",format:"#,###.##",symbol:""},{code:"ERN",name:"Eritrea Nakfa",format:"####.##",symbol:"Nkf (Latin script) ናቕፋ (Ge'ez script) ناكفا (Arabic script)"},{code:"ETB",name:"Ethiopian Birr",format:"####.##",symbol:"Br (Latin Script) ብር (Ethiopic Script)"},{code:"EUR",name:"Euro",format:"#,###.##",symbol:""},{code:"FKP",name:"Falkland Islands Pound",format:"####.##",symbol:""},{code:"FJD",name:"Fiji Dollar",format:"####.##",symbol:""},{code:"CDF",name:"Congolais Franc",format:"####.##",symbol:"FC"},{code:"GMD",name:"Gambia Dalasi",format:"####.##",symbol:"D"},{code:"GEL",name:"Georgia Lari",format:"####.##",symbol:"ლ (Lasi) of the Georgian script"},{code:"GHC",name:"Ghana Cedi",format:"#,###.##",symbol:""},{code:"GIP",name:"Gibraltar Pound",format:"#,###.##",symbol:""},{code:"GTQ",name:"Guatemala, Quetzal",format:"#,###.##",symbol:""},{code:"GWP",name:"Guinea-Bissau Peso",format:"####.##",symbol:"$ or COL$"},{code:"GYD",name:"Guyana Dollar",format:"####.##",symbol:""},{code:"HTG",name:"Haitian Gourde",format:"####.##",symbol:"G"},{code:"HNL",name:"Honduran Lempira",format:"#,###.##",symbol:""},{code:"HKD",name:"Hong Kong Dollar",format:"#,###.##",symbol:""},{code:"HUF",name:"Hungary Forint",format:"#.###",symbol:""},{code:"ISK",name:"Iceland Krona",format:"#.###",symbol:""},{code:"INR",name:"Indian Rupee",format:"#,###.##",symbol:"₹"},{code:"IDR",name:"Indonesian Rupiah",format:"#.###,##",symbol:""},{code:"IRR",name:"Iranian Rial",format:"#,###.##",symbol:""},{code:"IQD",name:"Iraqi Dinar",format:"####.###",symbol:"ع.د"},{code:"JMD",name:"Jamaican Dollar",format:"#,###.##",symbol:""},{code:"JPY",name:"Japanese Yen",format:"#,###",symbol:""},{code:"JOD",name:"Jordanian Dinar",format:"#,###.###",symbol:"د.ا"},{code:"KZT",name:"Kazakhstan Tenge",format:"####.##",symbol:""},{code:"KES",name:"Kenyan Shilling",format:"#,###.##",symbol:"KES"},{code:"KWD",name:"Kuwaiti Dinar",format:"#,###.###",symbol:"د.ك or KD"},{code:"KGS",name:"Kyrgyzstan Som",format:"####.##",symbol:""},{code:"LAK",name:"Laos, Kip",format:"####.##",symbol:""},{code:"LVL",name:"Latvian Lats",format:"#,###.##",symbol:"Ls"},{code:"LBP",name:"Lebanese Pound",format:"# ###",symbol:""},{code:"LSL",name:"Lesotho Loti",format:"####.##",symbol:"L (singular) or M (plural)"},{code:"LRD",name:"Liberian Dollar",format:"####.##",symbol:""},{code:"LYD",name:"Libyan Dinar",format:"####.###",symbol:"LD and ل.د"},{code:"LTL",name:"Lithuanian Litas",format:"# ###,##",symbol:"Lt"},{code:"MOP",name:"Macao Pataca",format:"####.##",symbol:"MOP$"},{code:"MKD",name:"Macedonia, Denar",format:"#,###.##",symbol:""},{code:"MGA",name:"Malagasy Ariary",format:"####",symbol:"Ar"},{code:"MWK",name:"Malawi Kwacha",format:"####.##",symbol:"MK"},{code:"MYR",name:"Malaysian Ringgit",format:"#,###.##",symbol:""},{code:"MVR",name:"Maldives Rufiyaa",format:"####.##",symbol:"Rf"},{code:"MTL",name:"Maltese Lira",format:"#,###.##",symbol:"₤ and Lm"},{code:"MRO",name:"Mauritanian Ouguiya",format:"####.##",symbol:"UM"},{code:"MUR",name:"Mauritius Rupee",format:"#,###",symbol:""},{code:"MXN",name:"Mexican Peso",format:"#,###.##",symbol:""},{code:"MDL",name:"Moldovan Leu",format:"####.##",symbol:"L"},{code:"MNT",name:"Mongolian Tugrik",format:"####.##",symbol:""},{code:"MAD",name:"Moroccan Dirham",format:"####.##",symbol:"MAD"},{code:"MZM",name:"Mozambique Metical",format:"#.###,##",symbol:""},{code:"MMK",name:"Myanmar Kyat",format:"####.##",symbol:"K"},{code:"NAD",name:"Namibian Dollar",format:"####.##",symbol:""},{code:"NPR",name:"Nepalese Rupee",format:"#,###.##",symbol:""},{code:"ANG",name:"Netherlands Antillian Guilder",format:"#.###,##",symbol:""},{code:"ILS",name:"New Israeli Shekel",format:"#,###.##",symbol:""},{code:"TWD",name:"New Taiwan Dollar",format:"####.##",symbol:""},{code:"TRY",name:"New Turkish Lira",format:"#,###.##",symbol:"₺"},{code:"NZD",name:"New Zealand Dollar",format:"#,###.##",symbol:""},{code:"NIO",name:"Nicaragua, Cordoba Oro",format:"####.##",symbol:""},{code:"NGN",name:"Nigeria, Naira",format:"#,###.##",symbol:""},{code:"KPW",name:"North Korean Won",format:"####.##",symbol:""},{code:"NOK",name:"Norwegian Krone",format:"#.###,##",symbol:""},{code:"PKR",name:"Pakistan Rupee",format:"#,###.##",symbol:""},{code:"PAB",name:"Panama Balboa",format:"####.##",symbol:""},{code:"PGK",name:"Papua New Guinea Kina",format:"####.##",symbol:"K"},{code:"PYG",name:"Paraguay Guarani",format:"####",symbol:""},{code:"PEN",name:"Peru Nuevo Sol",format:"#,###.##",symbol:""},{code:"UYU",name:"Uruguay Peso",format:"#.###,##",symbol:""},{code:"PHP",name:"Philippine Peso",format:"#,###.##",symbol:""},{code:"PLN",name:"Poland Zloty",format:"# ###,##",symbol:""},{code:"GBP",name:"United Kingdom Pound Sterling",format:"#,###.##",symbol:""},{code:"QAR",name:"Qatari Rial",format:"####.##",symbol:""},{code:"OMR",name:"Rial Omani",format:"#,###.###",symbol:"ر.ع."},{code:"RON",name:"Romania, New Leu",format:"#.###,##",symbol:""},{code:"RUB",name:"Russian Ruble",format:"#.###,##",symbol:""},{code:"RWF",name:"Rwanda Franc",format:"####",symbol:"FRw"},{code:"SHP",name:"Saint Helena Pound",format:"####.##",symbol:""},{code:"WST",name:"Samoa Tala",format:"####.##",symbol:"SAT"},{code:"STN",name:"Sao Tome and Principe Dobra",format:"####.##",symbol:"Db"},{code:"SAR",name:"Saudi Riyal",format:"#,###.##",symbol:""},{code:"RSD",name:"Serbian Dinar",format:"####.##",symbol:""},{code:"SCR",name:"Seychelles Rupee",format:"####.##",symbol:""},{code:"SLL",name:"Sierra Leone Leone",format:"####.##",symbol:"Le"},{code:"SGD",name:"Singapore Dollar",format:"#,###.##",symbol:""},{code:"SKK",name:"Slovak Koruna",format:"# ###,##",symbol:"Sk"},{code:"SIT",name:"Slovenia Tolar",format:"#.###,##",symbol:"SlT"},{code:"SBD",name:"Solomon Islands Dollar",format:"####.##",symbol:""},{code:"SOS",name:"Somali Shilling",format:"####.##",symbol:""},{code:"ZAR",name:"South Africa Rand",format:"# ###.##",symbol:""},{code:"KRW",name:"South Korea Won",format:"#,###",symbol:""},{code:"LKR",name:"Sri Lanka Rupee",format:"####.##",symbol:""},{code:"SDD",name:"Sudanese Dinar",format:"####.##",symbol:"LSd"},{code:"SRD",name:"Surinam Dollar",format:"####.##",symbol:"$"},{code:"SZL",name:"Swaziland Lilangeni",format:"#, ###.##",symbol:"L (singular) or E (plural)"},{code:"SEK",name:"Swedish Krona",format:"# ###,##",symbol:""},{code:"CHF",name:"Swiss Franc",format:"#'###.##",symbol:""},{code:"SYP",name:"Syrian Pound",format:"####.##",symbol:""},{code:"TZS",name:"Tanzanian Shilling",format:"#,###.##",symbol:"TSh"},{code:"THB",name:"Thailand, Baht",format:"#,###.##",symbol:""},{code:"TOP",name:"Tongan Paanga",format:"#,###.##",symbol:"T$"},{code:"TTD",name:"Trinidad and Tobago Dollar",format:"####.##",symbol:""},{code:"TND",name:"Tunisian Dinar",format:"####.###",symbol:"د.ت (Tunisian Arabic) or DT (Latin)"},{code:"TMT",name:"Turkmenistani New Manat",format:"####.##",symbol:"T"},{code:"AED",name:"UAE Dirham",format:"#,###.##",symbol:"د.إ"},{code:"UGX",name:"Uganda Shilling",format:"####.##",symbol:"USh"},{code:"UAH",name:"Ukraine Hryvnia",format:"# ###,##",symbol:""},{code:"CLF",name:"Unidad de Fomento",format:"####.##",symbol:"CLF"},{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"},{code:"UZS",name:"Uzbekistan Sum",format:"####.##",symbol:""},{code:"VUV",name:"Vanuatu Vatu",format:"#,###",symbol:"VT"},{code:"VES",name:"Venezuela Bolivares Fuertes",format:"#.###,##",symbol:""},{code:"VND",name:"Viet Nam Dong",format:"#.###",symbol:""},{code:"YER",name:"Yemeni Rial",format:"####.##",symbol:""},{code:"ZMK",name:"Zambian Kwacha",format:"####.##",symbol:"ZK"},{code:"ZWD",name:"Zimbabwe Dollar",format:"# ###.##",symbol:""}],dQ=Object.freeze(Object.defineProperty({__proto__:null,default:Tu},Symbol.toStringTag,{value:"Module"}));function Kw(t){return t.component!=="FormMultiColumn"?t:t.items.flatMap(Kw)}function fQ(t){return t.flatMap(e=>e.items).flatMap(Kw)}Bt.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."),Bt.register("after",function(t,e){const r=kr(t).toISOString(),i=kr(e).toISOString();return r>i},"The :attribute must be after :after."),Bt.register("after_or_equal",function(t,e){const r=kr(t).toISOString(),i=kr(e).toISOString();return r>=i},"The :attribute must be equal or after :after_or_equal."),Bt.register("before",function(t,e){const r=kr(t).toISOString(),i=kr(e).toISOString();return r<i},"The :attribute must be before :before."),Bt.register("before_or_equal",function(t,e){const r=kr(t).toISOString(),i=kr(e).toISOString();return r<=i},"The :attribute must be equal or before :before_or_equal."),Bt.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,"")),kr(t,[e,kr.ISO_8601],!0).isValid()},"The :attribute must be a valid date.");function pQ(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=G.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 Bt(r.data,r.rules)},r.getErrors=()=>r.failed()?r.validator.errors.errors:{},r.failed=()=>(r.getValidator(),r.validator.fails()),r}const hQ={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 mQ=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()])])},vQ=[],gQ=ie(hQ,mQ,vQ,!1,null,null,null,null);const _w=gQ.exports,bQ={props:{value:Object}};var yQ=function(){var e=this,r=e._self._c;return r("b-alert",{ref:"alert",attrs:{variant:"danger",dismissible:""},model:{value:e.value.show,callback:function(i){e.$set(e.value,"show",i)},expression:"value.show"}},[r("b",[e._v(" "+e._s(e.value.error)+" ")]),r("ul",e._l(e.value.errors,function(i,a){return r("li",{key:`error-${a}`},[e._v(e._s(i))])}),0)])},xQ=[],wQ=ie(bQ,yQ,xQ,!1,null,null,null,null);const mp=wQ.exports,Iae="",SQ={name:"ScreenRenderer",components:{WatchersSynchronous:_w,ScreenRendererError:mp},mixins:[Lb,Pc],props:{loopContext:{type:String,default:""},taskdraft:Object},data(){return{currentDefinition:null,codigo:"",displayAsyncLoading:!1}},watch:{definition:{deep:!0,handler(t){G.isEmpty(t.config)||this.rebuildScreen(t)}}},mounted(){this.currentDefinition=G.cloneDeep(this.definition),this.component=this.buildComponent(this.currentDefinition)},methods:{rebuildScreen(t){G.isEqual(t,this.currentDefinition)||(this.currentDefinition=G.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.$emit("updatedPage"),this.$refs.component.setCurrentPage(t)},afterSubmit(){this.$emit("after-submit",...arguments)}}};var PQ=function(){var i;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||((i=e.value)==null?void 0:i._parent),"_initial-page":e.currentPage,taskdraft:e.taskdraft},on:{"after-submit":e.afterSubmit,submit:e.submit,asyncWatcherTriggered:e.onAsyncWatcherOn,asyncWatcherCompleted:e.onAsyncWatcherOff}}),e.showErrors&&e.building.error?r("screen-renderer-error",{model:{value:e.building,callback:function(a){e.building=a},expression:"building"}}):e._e(),r("watchers-synchronous",{ref:"watchersSynchronous"})],1)},CQ=[],kQ=ie(SQ,PQ,CQ,!1,null,null,null,null);const $w=kQ.exports,Lae="",TQ={name:"VueFormRenderer",components:{ScreenRenderer:$w,CustomCssOutput:cQ},mixins:[Pc,qh,Cd],model:{prop:"data",event:"update"},props:["config","data","_parent","page","computed","customCss","mode","watchers","isLoop","ancestorScreens","loopContext","showErrors","testScreenDefinition","deviceScreen","taskdraft"],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=Tu.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 Jb.format(e,a)};return function(e){const r=JSON.parse(`[${e}]`);return t(G.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":Vh}},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=G.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=uQ(this.$el),this.containerObserver.observe(this.$refs.formRendererContainer),this.$store.dispatch("clipboardModule/initializeClipboard")},methods:{...Nt.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=fQ(this.definition.config),e=G.cloneDeep(this.definition.config);return this.checkForRecordList(t,e),this.dataTypeValidator=pQ(e,this.data),this.errors=this.dataTypeValidator.getErrors(),this.errors&&(this.formSubmitErrorClass="invalid-form-submission"),G.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))},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t,e=!1,r=null){this.$emit("submit",t,e,r)},parseCss(){const t=`.${this.containerClass}`;try{const e=ra.parse(this.customCss,{onParseError(a){throw a.formattedMessage}});let r=0;ra.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=[];ra.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:[]};ra.walk(a.prelude,{visit:"MediaFeature",enter:u=>{["min-width","max-width"].includes(u.name)&&(o[G.camelCase(u.name)]=parseInt(u.value.value,10),o.rules.length===0&&ra.walk(a.block,{visit:"Rule",enter:l=>{const c=ra.generate(l);o.rules.push(c)}}),i.push(o))}}),s.remove(n)}}}),this.customCssWrapped=ra.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.$emit("update-page-task"),this.$refs.renderer.setCurrentPage(t)},onContainerObserver(t){t[0].target.getBoundingClientRect(),this.parseCss()},saveClipboarToLocalStorage(t){localStorage.setItem("savedClipboard",JSON.stringify(t))}}};var MQ=function(){var i;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||((i=e.data)==null?void 0:i._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,taskdraft:e.taskdraft},on:{updatePage:e.setCurrentPage,"after-submit":e.afterSubmit,submit:e.submit}})],1)},DQ=[],AQ=ie(TQ,MQ,DQ,!1,null,"560176a3",null,null);const Ci=AQ.exports,OQ={name:"FormLoop",components:{VueFormRenderer:Ci},mixins:[],props:["value","config","transientData","name","mode","formConfig"],data(){return{matrix:[],items:[],additionalItems:0,transientDataCopy:null,parentObjectChanges:[]}},computed:{parentLoopContext(){let t=this.$parent,e=0,r="";for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e>100)throw new Error("Loop Error");e++}return t&&(r=t.loopContext),r},rendererConfig(){const{items:t}=this;return[{name:"LoopItem",items:t}]},times(){if(!this.config||!this.config.settings)return[];if(this.config.settings.type==="existing"){const e=G.get(this.transientData,this.name,null);return e?[...e.keys()]:[]}let{times:t}=this.config.settings;try{t=Qt.render(t,this.transientData)}catch(e){throw new Error(e)}return t=parseInt(t),Number.isNaN(t)?[]:(t>100&&(t=100),t+=this.additionalItems,[...Array(t).keys()])}},watch:{transientData:{handler(){this.transientDataCopy=G.cloneDeep(this.transientData),this.$delete(this.transientDataCopy,this.name);const t=G.get(this,`transientData.${this.name}`,null);t&&Array.isArray(t)?this.matrix=t:this.matrix=[],this.setupMatrix()},immediate:!0},value:{handler(){this.items=this.value},immediate:!0},matrix:{handler(){G.isEqual(this.$parent.transientData[this.name],this.matrix)||this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},deep:!0},times(){this.setupMatrix()},"config.settings.times":{handler(){this.additionalItems=0}}},mounted(){this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},methods:{getLoopContext(t){let e=`${this.name}.${t.toString()}`;return this.parentLoopContext!==""&&(e=`${this.parentLoopContext}.${e}`),e},add(){this.config.settings.type==="existing"?this.setMatrixValue(this.matrix.length,{}):this.additionalItems++},remove(){this.config.settings.type==="existing"?this.$delete(this.matrix,this.matrix.length-1):this.additionalItems--},removeConfirm(){const t=this.$t("Are you sure you want to delete this?");window.ProcessMaker.confirmModal(this.$t("Caution!"),t,"",()=>{this.remove()})},setMatrixValue(t,e){const r=G.omit(e,"_parent");this.registerParentVariableChanges(e),this.$set(this.matrix,t,r),this.setChagnedParentVariables()},registerParentVariableChanges(t){t._parent&&Object.keys(t._parent).forEach(e=>{G.isEqual(this.transientDataCopy[e],t._parent[e])||this.parentObjectChanges.push({key:e,value:t._parent[e]})})},setChagnedParentVariables(){this.parentObjectChanges.forEach(t=>{this.$set(this.$parent.transientData,t.key,t.value)}),this.parentObjectChanges=[]},getMatrixValue(t){let e=G.cloneDeep(this.matrix[t]);return e||(e={}),e._parent=G.cloneDeep(this.transientDataCopy),e},setupMatrix(){for(const t of this.times)typeof this.matrix[t]>"u"&&this.setMatrixValue(t,{});this.matrix.length!==this.times.length&&(this.matrix=this.matrix.slice(0,this.times.length))},submit(){this.$emit("submit")}}};var zQ=function(){var e=this,r=e._self._c;return r("div",[e._l(e.times,function(i){return r("form",{key:i,on:{submit:function(a){a.preventDefault()}}},[r("vue-form-renderer",{attrs:{data:e.getMatrixValue(i),config:e.rendererConfig,computed:null,"custom-css":null,watchers:null,"is-loop":!0,"debug-context":"Loop #"+i,mode:e.mode,"loop-context":e.getLoopContext(i),"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:function(a){return e.$emit("pageNavigate",a)},update:function(a){return e.setMatrixValue(i,a)}}})],1)}),e.config.settings.add?r("b-row",{staticClass:"justify-content-md-center"},[r("b-col",{attrs:{md:"auto"}},[r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"secondary",title:e.$t("Add Item")},on:{click:e.add}},[r("i",{staticClass:"fas fa-plus"})]),e.times.length>0?r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"outline-danger",title:e.$t("Delete Item")},on:{click:e.removeConfirm}},[r("i",{staticClass:"fas fa-minus"})]):e._e()],1)],1):e._e()],2)},EQ=[],jQ=ie(OQ,zQ,EQ,!1,null,null,null,null);const As=jQ.exports,Fae="",Mu=typeof window>"u"?global:window,vp=[{name:"empty",items:[]}],NQ={components:{VueFormRenderer:Ci},props:{name:String,screen:Number,value:null,validationData:null,_parent:null,ancestorScreens:{type:Array,default:()=>[]}},data(){return{localData:{},config:vp,computed:[],customCSS:null,watchers:[],screenTitle:null}},computed:{validatedConfig(){return this.config&&this.config[0]?this.config:vp},data:{get(){return this.validationData||this.localData},set(t){Object.keys(t).forEach(e=>{this.validationData&&this.$set(this.validationData,e,t[e])})}},placeholder(){return this.screen?"":this.$t("Select a screen to nest")}},methods:{isSubmitButton(t){return t.config&&t.component==="FormButton"&&t.config.event==="submit"},hideSubmitButtons(t){t.forEach(e=>{Array.isArray(e)&&this.hideSubmitButtons(e),e.items&&this.hideSubmitButtons(e.items),this.isSubmitButton(e)&&(e.config.hidden=!0)})},disableForm(t){t.forEach(e=>{Array.isArray(e)&&this.disableForm(e),e.items&&this.disableForm(e.items),e&&e.config&&(e.config.disabled=!0,e.config.readonly=!0,e.config.editable=!1)})},loadScreen(t){this.config=vp,this.computed=[],this.customCSS=null,this.watchers=[],this.screenTitle=null,t&&this.$dataProvider.getScreen(t).then(e=>{this.config=e.data.config,this.hideSubmitButtons(this.config),this.computed=e.data.computed,this.customCSS=e.data.custom_css,this.watchers=e.data.watchers,this.screenTitle=e.data.title,this.$attrs.disabled&&this.disableForm(this.config),this.ancestorScreens.includes(this.screenTitle)?Mu.ProcessMaker.alert(`Rendering of nested "${this.screenTitle}" screen was disallowed to prevent loop.`,"warning"):(Mu.nestedScreens||(Mu.nestedScreens={}),Mu.nestedScreens["id_"+t]=this.config,this.$root.$emit("nested-screen-updated"))})},errors(){return this.$refs.nestedScreen.isValid(),this.$refs.nestedScreen.errors}},watch:{screen(t){this.loadScreen(t)}},mounted(){this.loadScreen(this.screen)}};var IQ=function(){var e=this,r=e._self._c;return e.ancestorScreens.includes(e.screenTitle)?e._e():r("vue-form-renderer",{ref:"nestedScreen",staticClass:"form-nested-screen",attrs:{placeholder:e.placeholder,config:e.validatedConfig,"ancestor-screens":[...e.ancestorScreens,e.screenTitle],mode:"preview",computed:e.computed,"custom-css":e.customCSS,watchers:e.watchers,"debug-context":"Nested Screen",_parent:e._parent},on:{"css-errors":function(i){e.cssErrors=i}},model:{value:e.data,callback:function(i){e.data=i},expression:"data"}})},LQ=[],FQ=ie(NQ,IQ,LQ,!1,null,null,null,null);const Os=FQ.exports,Bae="",BQ={name:"MustacheHelper"};var RQ=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"mustache",attrs:{title:e.$t("This field accepts mustache syntax")}},[e._v(" {} ")])},HQ=[],VQ=ie(BQ,RQ,HQ,!1,null,"8cef93f7",null,null);const ki=VQ.exports,qQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjA1MTQgMy43Mzg4OUwxNS40NTc2IDIuMzMyNjVDMTYuMDY3OCAxLjcyMjQ1IDE3LjA1NzIgMS43MjI0NSAxNy42Njc0IDIuMzMyNjVDMTguMjc3NSAyLjk0Mjg0IDE4LjI3NzUgMy45MzIxNiAxNy42Njc0IDQuNTQyMzVMOC44MTg0OSAxMy4zOTEyQzguMzc3OTIgMTMuODMxOCA3LjgzNDUzIDE0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xMi4xMDEzIDMuNTcwNzEgMTEuMTI1IDMuNDk1MjdNMS4xMjUgMy45NjM1OEMxLjQwNzk4IDMuOTE0NTYgMS42OTE5OCAzLjg2ODUxIDEuOTc2OTYgMy44MjU0N00xLjk3Njk2IDMuODI1NDdDMi45MzIzMSAzLjY4MTIgMy44OTg3NCAzLjU3MDcxIDQuODc1IDMuNDk1MjdNMTEuMTI1IDMuNDk1MjdWMi43MzE4MkMxMS4xMjUgMS43NDkwMiAxMC4zNjYxIDAuOTI4NTI2IDkuMzgzODIgMC44OTcxMDNDOC45MjQzNSAwLjg4MjQwNSA4LjQ2MzA0IDAuODc1IDggMC44NzVDNy41MzY5NiAwLjg3NSA3LjA3NTY1IDAuODgyNDA1IDYuNjE2MTggMC44OTcxMDNDNS42MzM4OCAwLjkyODUyNiA0Ljg3NSAxLjc0OTAyIDQuODc1IDIuNzMxODJWMy40OTUyN00xMS4xMjUgMy40OTUyN0MxMC4wOTM4IDMuNDE1NTggOS4wNTE2NCAzLjM3NSA4IDMuMzc1QzYuOTQ4MzYgMy4zNzUgNS45MDYyIDMuNDE1NTggNC44NzUgMy40OTUyNyIgc3Ryb2tlPSIjNTk2MzcyIiBzdHJva2Utd2lkdGg9IjEuMjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",Rae="",XQ={key:"__actions",label:"Actions",thClass:"text-right",tdClass:"text-right"},JQ={components:{VueFormRenderer:Ci,MustacheHelper:ki},mixins:[_d],props:["name","label","fields","value","editable","_config","form","validationData","formConfig","formComputed","formWatchers","_perPage","source","paginationOption","designerMode","bgcolormodern"],data(){return{editFormVersion:0,single:"",plural:"",addItem:{},editItem:{},editIndex:null,currentPage:1,paginatorPage:1,perPageSelectEnabled:!1,perPage:5,lastPage:1,css:{tableClass:"table table-hover table-responsive text-break mb-0 d-table",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",renderIcon(t){return`<i class="${t.join(" ")}"></i>`}},initFormValues:{},currentRowIndex:null,collectionData:{},selectedRow:null,selectedRows:[],selectedIndex:null,rows:[],selectAll:!1,styleMode:"Classic",isPopoverVisible:null,popoverPosition:{top:"0px",left:"0px"}}},computed:{tableClassModern(){if(this.styleMode==="Modern")switch(this.bgcolormodern){case"alert alert-primary":return"record-list-table-primary";case"alert alert-success":return"record-list-table-success";case"alert alert-warning":return"record-list-table-warning";case"alert alert-secondary":return"record-list-table-secondary";default:return"record-list-table-secondary"}return""},indeterminate(){return this.selectedRows.length>0&&this.selectedRows.length<this.tableData.data.length},popupConfig(){const t=[];return t[this.form]=this.formConfig[this.form],t},debug(){return{perPageSelectEnabled:this.perPageSelectEnabled,perPageSelectEnabled2:this.$refs.pagination&&this.$refs.pagination.perPageSelectEnabled}},parentObj(){let t=this.$parent;for(;"transientData"in t.$props;)t=t.$parent;return t},dataManager(){if(this.$refs.vuetable){const t=this.$refs.vuetable.makePagination(this.value.length);return{pagination:t,data:this.value.slice(t.from-1,t.to)}}console.log("refs vuetable not exists")},tableData(){const t=Array.isArray(this.collectionData)&&this.collectionData.length?this.collectionData:Array.isArray(this.value)?this.value:[];this.value&&(this.selectedIndex=this.value.selectedRowIndex);const e=this.paginatorPage-1;this.lastPage=Math.ceil(t.length/this.perPage);const r={total:t.length,per_page:this.perPage,current_page:this.paginatorPage,last_page:this.lastPage,next_page_url:null,prev_page_url:null,from:e,to:t.length,data:t,lastSortConfig:!1};return this.selectedIndex!==null&&this.selectedIndex<r.data.length&&(this.selectedRow=r.data[this.selectedIndex]),Array.isArray(this.value)&&this.value.length>0&&this.rows.length===0&&this.value.forEach(i=>{i.hasOwnProperty("selectedRowsIndex")&&this.selectedRows.push(r.data[i.selectedRowsIndex])}),r},tableFields(){var e,r,i;const t=this.getTableFieldsFromDataSource();return this.editable&&!this.selfReferenced&&t.push(XQ),((e=this.source)==null?void 0:e.sourceOptions)==="Collection"&&(["single-field","single-record"].includes((r=this.source)==null?void 0:r.dataSelectionOptions)&&t.unshift({key:"radio",label:"",sortable:!1}),((i=this.source)==null?void 0:i.dataSelectionOptions)==="multiple-records"&&t.unshift({key:"checkbox",label:"",sortable:!1})),t},selfReferenced(){return this.form&&this.form===this.$parent.currentPage}},watch:{"tableData.total":{deep:!0,handler(t){const e=Math.ceil(t/this.perPage);this.currentPage=this.currentPage>e?e:this.currentPage,this.currentPage=this.currentPage==0?1:this.currentPage}},validationData:{handler(t,e){var r,i,a,n,s,o,u;((r=this.source)==null?void 0:r.sourceOptions)==="Collection"&&((a=(i=this.source)==null?void 0:i.collectionFields)!=null&&a.pmql)&&this.onCollectionChange((s=(n=this.source)==null?void 0:n.collectionFields)==null?void 0:s.collectionId,(u=(o=this.source)==null?void 0:o.collectionFields)==null?void 0:u.pmql)},deep:!0,immediate:!1}},mounted(){var t,e,r,i,a,n,s;this._perPage&&(this.perPage=this._perPage),this.updateRowDataNamePrefix=G.debounce(this.updateRowDataNamePrefix,100),this.paginationOption!=null&&(this.perPage=this.paginationOption),((t=this.source)==null?void 0:t.sourceOptions)==="Collection"&&this.onCollectionChange((r=(e=this.source)==null?void 0:e.collectionFields)==null?void 0:r.collectionId,(a=(i=this.source)==null?void 0:i.collectionFields)==null?void 0:a.pmql),this.setStyleMode((n=this.designerMode)==null?void 0:n.designerOptions),this.$root.$emit("record-list-option",(s=this.source)==null?void 0:s.sourceOptions)},methods:{togglePopover(t,e,r){if(this.deleteIndex=G.find(this.tableData.data,{row_id:r}),this.isPopoverVisible=this.isPopoverVisible===t?null:t,this.isPopoverVisible!==null){const i=e.target.getBoundingClientRect();this.popoverPosition={top:`${i.bottom+window.scrollY}px`,left:`${i.left+window.scrollX}px`}}},hidePopover(){this.isPopoverVisible=null},popover_remove(){this.remove(),this.hidePopover()},rowClass(t){return this.isRowSelected(t)?"sel-row":""},isRowSelected(t){return this.selectedRows.includes(t)||this.selectedRow===t},setStyleMode(t){this.styleMode=t||"Classic"},selectAllRows(){if(this.allRowsSelected){const t=this.tableData.data.map((e,r)=>({...e,selectedRowsIndex:r}));this.selectedRows=t,this.collectionData=t,this.onMultipleSelectionChange()}else this.selectedRows=[],this.onMultipleSelectionChange()},componentOutput(t){this.$emit("input",t)},onRadioChange(t,e){var i;const r=(this.currentPage-1)*this.perPage+e;if((i=this.source)!=null&&i.singleField){let a=t[this.source.singleField];this.componentOutput(a)}else t={...t,selectedRowIndex:r},this.componentOutput(t)},onMultipleSelectionChange(t){this.collectionData.forEach((e,r)=>{this.selectedRows.forEach(i=>{this.areObjectsEqual(i,e)&&(i.selectedRowsIndex=r)})}),this.componentOutput(this.selectedRows),this.rows.push(t)},areObjectsEqual(t,e){const r=Object.keys(t),i=Object.keys(e);return r.length!==i.length?!1:r.every(a=>t[a]===e[a])},onCollectionChange(t,e){if(!e||e.trim()===""){this.fetchAllRecords(t);return}const r=this.processMustacheInPmql(e);r&&this.fetchRecordsWithPmql(t,r)},processMustacheInPmql(t){if(!t||!t.includes("{{"))return t;try{const e=this.validationData||{};let r=Qt.render(t,e);return this.hasEmptyValues(r)?(this.collectionData=[],null):(r=r.replace(/= ([^"'\s][^"']*[^"'\s]|[^"'\s]+)(?=\s|$)/g,'= "$1"'),r)}catch{return this.collectionData=[],null}},hasEmptyValues(t){return['= ""','= " "',"= null","= undefined"].some(r=>t.includes(r))},isValidPmql(t){return t&&t.trim()!==""&&!t.includes("{{")},fetchAllRecords(t){this.$dataProvider.getCollectionRecordsList(t,{}).then(e=>{const r=e.data;this.changeCollectionColumns(r,this.fields)}).catch(()=>{this.collectionData=[]})},fetchRecordsWithPmql(t,e){if(!this.isValidPmql(e)){this.collectionData=[];return}const r={params:{pmql:e}};this.$dataProvider.getCollectionRecordsList(t,r).then(i=>{const a=i.data;this.changeCollectionColumns(a,this.fields)}).catch(()=>{this.collectionData=[]}),this.$emit("change",this.field)},changeCollectionColumns(t,e){const r=e.optionsList;t.forEach(i=>{let a=i.data,n={};Object.keys(a).forEach(s=>{const o=r.find(u=>u.content===s);o&&(n[o.key]=a[s])}),i.data=n}),this.setCollectionIntoList(t)},setCollectionIntoList(t){const e=[];t.forEach(r=>{if(r.hasOwnProperty("data")){const i=r.data,a={};for(const[n,s]of Object.entries(i))a[n]=s;e.push(a)}}),this.collectionData=e,this.reapplyCollectionSelections(e)},reapplyCollectionSelections(t){if(!this.shouldPersistCollectionSelection()||!Array.isArray(this.selectedRows)||this.selectedRows.length===0)return;const e=this.selectedRows.reduce((i,a)=>{const n=this.getCollectionRowKey(a);if(!n)return i;const s=i.get(n)||0;return i.set(n,s+1),i},new Map);if(e.size===0){this.selectedRows=[];return}const r=[];t.forEach((i,a)=>{const n=this.getCollectionRowKey(i),s=e.get(n);s&&(i.selectedRowsIndex=a,r.push(i),s===1?e.delete(n):e.set(n,s-1))}),this.selectedRows=r},shouldPersistCollectionSelection(){var e,r,i,a;const t=(r=(e=this.source)==null?void 0:e.collectionFields)==null?void 0:r.pmql;return((i=this.source)==null?void 0:i.sourceOptions)==="Collection"&&((a=this.source)==null?void 0:a.dataSelectionOptions)==="multiple-records"&&typeof t=="string"&&t.trim().length>0},getCollectionRowKey(t){if(!t||typeof t!="object")return null;const e=Object.entries(t).filter(([r])=>r!=="selectedRowsIndex");return e.length===0?null:(e.sort(([r],[i])=>r>i?1:r<i?-1:0),JSON.stringify(e))},updateRowDataNamePrefix(){this.setUploadDataNamePrefix(this.currentRowIndex)},emitShownEvent(){window.ProcessMaker.EventBus.$emit("modal-shown")},formatIfDate(t){return $.dateUtils.formatIfDate(t)},isImage(t,e){const r=G.get(e,t.key);return typeof r=="string"&&r.substr(0,11)==="data:image/"},isWebEntryFile(t,e){const r=G.get(e,t.key),i=/^webentry_.*:*$/;let a=r;return Array.isArray(r)&&(a=r[0].file),i.test(a)},formatIfWebEntryFile(t,e){return G.get(window,"PM4ConfigOverrides.requestFiles",{})[`${t.key}.${e.row_id}`].map(a=>a.file_name).join(", ")},isFiledownload(t){return t.key==="__filedownload"},setUploadDataNamePrefix(t=null){this.currentRowIndex=t;let e=null;t!==null&&this.editItem?e=this.editItem.row_id:this.addItem&&(e=this.addItem.row_id),this.$root.$emit("set-upload-data-name",this,t,e)},getTableFieldsFromDataSource(){var n;const{jsonData:t,key:e,value:r,dataName:i}=this.fields;let a={};return((n=this.source)==null?void 0:n.sourceOptions)==="Collection"?a=s=>({key:s[e||"key"],sortable:!0,label:s[e||"key"],tdClass:"table-column"}):a=s=>({key:s[e||"value"],sortable:!0,label:s[r||"content"],tdClass:"table-column"}),this.getValidFieldData(t,i).map(a)},getValidFieldData(t,e){let r=this.validationData[e];if(t)try{r=JSON.parse(t)}catch{r=[]}return Array.isArray(r)?r:[]},hideInformation(){this.$refs.infoModal.hide()},onPaginationData(t){this.$refs.pagination.setPaginationData(t)},onChangePerPage(t){this.perPage=parseInt(t)},onChangePage(t){t=="next"?this.paginatorPage+=1:t=="prev"?this.paginatorPage-=1:this.paginatorPage=t,this.paginatorPage<=0&&(this.paginatorPage=1),this.paginatorPage>this.lastPage&&(this.paginatorPage=this.lastPage)},showEditForm(t,e){const r=(this.currentPage-1)*this.perPage+t;this.editItem=JSON.parse(JSON.stringify(G.find(this.tableData.data,{row_id:e}))),this.editIndex=r,this.editFormVersion++,this.$nextTick(()=>{this.setUploadDataNamePrefix(r),this.$refs.editModal.show()})},edit(t){if(this.$refs.addRenderer.hasSubmitted(!0),this.$refs.editRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid){t.preventDefault();return}const e=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],r=G.findIndex(e,{row_id:this.editItem.row_id});e[r]=JSON.parse(JSON.stringify(this.editItem)),delete e[r]._parent,this.$emit("input",e)},showAddForm(){const t=Math.random().toString(36).substring(2)+Date.now().toString(36);if(this.$set(this.addItem,"row_id",t),this.setUploadDataNamePrefix(),!this.form){this.$refs.infoModal.show();return}this.$refs.addModal.show();const{_parent:e,...r}=this.addItem;this.initFormValues=G.cloneDeep(r)},handleHideAddModal(){this.addItem=this.initFormValues,this.$refs.addRenderer.hasSubmitted(!1)},async handleOk(t){if(this.$refs.addRenderer.hasSubmitted(!0),t.preventDefault(),this.$refs.addRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid)return;const e=this.value?JSON.parse(JSON.stringify(this.value)):[],r=JSON.parse(JSON.stringify({...this.addItem,_parent:void 0}));delete r._parent,e[e.length]=r,this.$emit("input",e),this.addItem={},this.$nextTick(()=>{this.$refs.addModal.hide()})},showDeleteConfirmation(t,e){this.deleteIndex=G.find(this.tableData.data,{row_id:e}),this.$refs.deleteModal.show()},downloadFile(t,e,r){const i=this.$root.task.request_data._request.id,a=`${this.name}.${r}.${e}`;window.ProcessMaker.apiClient.get(`requests/${i}/files?name=${a}`).then(n=>{const s=n.data;if(s&&s.data&&s.data.length){const o=s.data[0];this.downloadRecordListFile(o,i)}})},downloadRecordListFile(t,e){window.ProcessMaker.apiClient({baseURL:"/",url:`/request/${e}/files/${t.id}`,method:"GET",responseType:"blob"}).then(r=>{const i=window.URL.createObjectURL(new Blob([r.data])),a=document.createElement("a");a.href=i,a.setAttribute("download",t.file_name),document.body.appendChild(a),a.click()})},remove(){const t=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],e=this.deleteIndex;G.remove(t,{row_id:this.deleteIndex.row_id}),this.$emit("input",t),this.$root.$emit("removed-record",this,e)}}};var UQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"data-table overflow-auto"},[r("div",{staticClass:"row mb-2 ml-0 mr-0"},[r("div",{staticClass:"col"},[r("h4",[e._v(e._s(e.label))])]),e.styleMode==="Classic"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-primary",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()]),!e.value&&!e.tableData.data?r("div",[e._v(" "+e._s(e.$t("This record list is empty or contains no data."))+" ")]):[r("b-table",{ref:"vuetable",class:e.tableClassModern,attrs:{"per-page":e.perPage,"data-manager":e.dataManager,fields:e.tableFields,items:e.tableData.data,"sort-compare-options":{numeric:!1},"sort-null-last":!0,"sort-icon-left":"",css:e.css,"empty-text":e.$t("No Data Available"),"current-page":e.currentPage,"data-cy":"table","tbody-tr-class":e.rowClass},scopedSlots:e._u([{key:"head(checkbox)",fn:function(i){return[r("b-form-checkbox",{attrs:{indeterminate:e.indeterminate,"aria-label":"Select All"},on:{change:e.selectAllRows},model:{value:e.allRowsSelected,callback:function(a){e.allRowsSelected=a},expression:"allRowsSelected"}})]}},{key:"cell(checkbox)",fn:function({index:i,item:a}){return[r("b-form-checkbox",{attrs:{value:a},on:{change:function(n){return e.onMultipleSelectionChange(i)}},model:{value:e.selectedRows,callback:function(n){e.selectedRows=n},expression:"selectedRows"}})]}},{key:"cell(radio)",fn:function({index:i,item:a}){return[r("b-form-radio",{attrs:{value:a},on:{change:function(n){return e.onRadioChange(a,i)}},model:{value:e.selectedRow,callback:function(n){e.selectedRow=n},expression:"selectedRow"}})]}},{key:"cell()",fn:function({index:i,field:a,item:n}){return[e.isFiledownload(a,n)?[r("span",{attrs:{href:"#"},on:{click:function(s){return e.downloadFile(n,a.key,i)}}},[e._v(e._s(e.mustache(a.key,n)))])]:e.isImage(a,n)?[r("img",{staticStyle:{},attrs:{src:e.mustache(a.key,n)}})]:e.isWebEntryFile(a,n)?[e._v(" "+e._s(e.formatIfWebEntryFile(a,n))+" ")]:[e._v(" "+e._s(e.formatIfDate(e.mustache(a.key,n)))+" ")]]}},{key:"cell(__actions)",fn:function({index:i,item:a}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"btn-group btn-group-sm",attrs:{role:"group","aria-label":"Actions"}},[r("button",{class:{btn:!0,"btn-primary":e.styleMode==="Classic"},attrs:{title:e.$t("Edit"),"data-cy":"edit-row"},on:{click:function(n){return e.showEditForm(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-edit"}):r("img",{attrs:{src:qQ,alt:"edit"}})]),r("button",{ref:"deleteButton",class:{btn:!0,"btn-danger":e.styleMode==="Classic"},attrs:{title:e.$t("Delete"),"data-cy":"remove-row",popover:"manual"},on:{click:function(n){e.styleMode==="Modern"?e.togglePopover(i,n,a.row_id):e.showDeleteConfirmation(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-trash-alt"}):r("img",{attrs:{src:WQ,alt:"delete"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPopoverVisible===i,expression:"isPopoverVisible === index"}],staticClass:"popover-content"},[r("p",[e._v("Are you sure you want to delete it?")]),r("button",{staticClass:"btn btn-light",on:{click:e.hidePopover}},[e._v("CANCEL")]),r("button",{staticClass:"btn btn-danger",on:{click:function(n){return e.popover_remove()}}},[e._v("DELETE")])])])])]}}])}),r("div",{staticClass:"d-flex justify-content-between align-items-center"},[r("div",{staticClass:"col text-left"},[e.tableData.total>e.perPage&&e.perPage!==0?r("b-pagination",{attrs:{"data-cy":"table-pagination","total-rows":e.tableData.total,"per-page":e.perPage,"aria-label":e.$t("Pagination"),"aria-controls":"vuetable"},on:{change:e.onChangePage},model:{value:e.currentPage,callback:function(i){e.currentPage=i},expression:"currentPage"}}):e._e()],1),e.styleMode==="Modern"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-link text-primary class-button-modern",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[r("span",{staticClass:"mr-1"},[e._v("+")]),e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()])],e.editable&&!e.selfReferenced?r("b-modal",{ref:"addModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Ok"),"cancel-title":e.$t("Cancel"),title:e.$t("Add"),"header-close-content":"×","data-cy":"modal-add"},on:{ok:e.handleOk,hidden:e.handleHideAddModal,shown:e.emitShownEvent}},[r("vue-form-renderer",{key:Array.isArray(e.value)?e.value.length:0,ref:"addRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Add",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.addItem,callback:function(i){e.addItem=i},expression:"addItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"editModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),title:e.$t("Edit Record"),"header-close-content":"×","data-cy":"modal-edit"},on:{ok:e.edit,hidden:function(i){return e.$refs.addRenderer.hasSubmitted(!1)},shown:e.emitShownEvent}},[r("vue-form-renderer",{key:e.editFormVersion,ref:"editRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Edit",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.editItem,callback:function(i){e.editItem=i},expression:"editItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"deleteModal",attrs:{size:"lg","ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),title:e.$t("Delete Record"),"header-close-content":"×","data-cy":"modal-remove"},on:{ok:e.remove}},[r("p",[e._v(e._s(e.$t("Are you sure you want to remove this record?")))])]):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"infoModal",attrs:{size:"sm","ok-title":e.$t("OK"),title:e.$t("Information form"),"header-close-content":"×","ok-only":"","data-cy":"modal-not-assigned"},on:{ok:e.hideInformation}},[r("p",[e._v(e._s(e.$t("The form to be displayed is not assigned.")))])]):e._e(),e.editable&&e.selfReferenced?r("div",{staticClass:"alert alert-danger"},[e._v(" "+e._s(e.$t("The Record List control is not allowed to reference other controls on its own page to add or edit records. Specify a secondary page with controls to enter records."))+" ")]):e._e()],2)},GQ=[],QQ=ie(JQ,UQ,GQ,!1,null,null,null,null);const Du=QQ.exports,YQ={name:"FormRecordListStatic",components:{},mixins:[_d],props:["label","fields","value","editable","_config","form"],mounted(){},methods:{formatIfDate(t){return $.formatIfDate(t)}}};var ZQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"record-list"},[r("h4",[e._v(e._s(e.$t(e.label)))]),r("table",[r("thead",[r("tr",e._l(e.fields,function(i,a){return r("th",{key:a},[e._v(" "+e._s(i.content)+" ")])}),0)]),r("tbody",e._l(e.value,function(i,a){return r("tr",{key:a},e._l(e.fields,function(n,s){return r("td",{key:s},[e._v(" "+e._s(e.formatIfDate(e.mustache(n.value,i)))+" ")])}),0)}),0)])])},KQ=[],_Q=ie(YQ,ZQ,KQ,!1,null,null,null,null);const eS=_Q.exports,$Q={props:["label","fontSize","fontWeight","textAlign","verticalAlign","validationData","color","name"],computed:{styles(){return{fontSize:this.fontSize,fontWeight:this.fontWeight,textAlign:this.textAlign,verticalAlign:this.verticalAlign,color:this.color}},rendered(){if(!this.validationData)return this.label;try{return Qt.render(this.label,this.validationData)}catch{return this.label}}}};var eY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{style:e.styles,domProps:{innerHTML:e._s(e.rendered)}})])},tY=[],rY=ie($Q,eY,tY,!1,null,null,null,null);const Au=rY.exports,iY={};var aY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"row"},[e._t("default")],2)},nY=[],sY=ie(iY,aY,nY,!1,null,null,null,null);const gp=sY.exports,oY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjE1MyIgdmlld0JveD0iMCAwIDE0NiAxNTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTUuMDAxIDMzLjQ5OTZDMTE1LjAwMSA0MC4xMjczIDEyMC4zNzQgNDUuNSAxMjcuMDAxIDQ1LjVDMTMzLjYyOCA0NS41IDEzOS4wMDEgNDAuMTI3MyAxMzkuMDAxIDMzLjQ5OTZDMTM5LjA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NTg5MzQgMTI4LjkwM0M5LjI2ODY0IDEyOC43MzggOC45NDM1IDEyOC41NzkgOC44MDM3NSAxMjguMjE5QzguNjcxMTcgMTI3Ljg4IDguODI5NyAxMjcuNDE3IDkuMTg1MzQgMTI3LjMzQzguNDM3MzMgMTI3LjUxNCA4LjE0MjYxIDEyNi4zMjggOC43MjU3OCAxMjUuOTQ1QzguNDE2NzMgMTI1LjY4MiA4LjE1OTY1IDEyNS4zMzUgOC4wOTUxNSAxMjQuOTM1QzguMDI5NzUgMTI0LjUzNCA4LjE5MzY4IDEyNC4wODIgOC41NTAyMiAxMjMuODg4QzguNzg0MDMgMTIzLjc2MSA5LjA2MDg0IDEyMy43NTcgOS4zMjY4OSAxMjMuNzU1QzEwLjIyMzYgMTIzLjc0OCAxMS4xMjAzIDEyMy43NDEgMTIuMDE3IDEyMy43MzRDMTEuNzc0MiAxMjIuMzMyIDExLjcwMDggMTIwLjgwMyAxMi40MTM4IDExOS41NzFDMTIuNjI4OCAxMTkuMTk5IDEzLjIwNTggMTE4Ljc1NSAxMy42NjM1IDExOS4wNEMxNC4wOTI2IDExOS4zMDggMTMuOTc0MyAxMTkuOTczIDEzLjk1MTkgMTIwLjM5M0MxMy44NjMzIDEyMi4xMzggMTQuODU1OSAxMjMuODkzIDE2LjM5NzYgMTI0LjcxNUMxNi4zOTc2IDEyNC43MTUgMTYuMjk1NCAxMjguNDMzIDE2LjMxODcgMTMwLjMyOVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xNy4xMDI1IDEzMC4zMTVIMjAuMzYxNVYxMjQuNzA3SDE3LjEwMjVWMTMwLjMxNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",Hae="",lY={props:["title","link","url"],data(){return{linkText:`View All ${this.link}`}},methods:{openLink(){window.open(this.url,"_blank")}}};var uY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"container content"},[r("img",{attrs:{src:oY,alt:"empty table"}}),r("span",{staticClass:"title"},[e._v(" "+e._s(e.$t(e.title))+" ")]),e.url!==""?r("b-link",{on:{click:function(i){return e.openLink()}}},[e._v(" "+e._s(e.$t(e.linkText))+" ")]):e._e()],1)},cY=[],dY=ie(lY,uY,cY,!1,null,"7665402d",null,null);const bp=dY.exports,fY="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDQuOEwxLjA2NjY3IDAuMzIwMDAzVjBIMFYxMC42NjY3VjE1LjczMzNIMS4wNjY2N1YxMC4yNjY3TDE2IDQuOFoiIGZpbGw9IiM1NTYyNzEiLz4KPC9zdmc+Cg==",Vae="",pY=kn(),hY={components:{formEmpty:bp,Recommendations:t=>{var e;t(((e=window.SharedComponents)==null?void 0:e.Recommendations)||{template:"<span></span>"})}},mixins:[pY,kc],data(){var t,e;return{countInProgress:"0",countOverdue:"0",countResponse:"0",fields:[],data:[],tableData:[],orderBy:"ID",order_direction:"DESC",status:"",showTable:!0,tableHeaders:[],pmqlSearch:"",sortOrder:[{field:"ID",sortField:"ID",direction:"DESC"}],advancedFilter:"",tasksPreview:((t=window.SharedComponents)==null?void 0:t.TasksHome)||{},taskTooltip:((e=window.SharedComponents)==null?void 0:e.TaskTooltip)||{},rowPosition:{},ellipsisShow:!1,isTooltipVisible:!1,disableRuleTooltip:!1,hiderTimer:null}},computed:{noDataUrl(){var t,e;return`${(e=(t=window.ProcessMaker)==null?void 0:t.app)==null?void 0:e.url}/tasks`}},mounted(){this.setupColumns(),this.pmql=`(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`,this.fetch(),this.$root.$on("dropdownSelectionTask",this.fetchData),this.$root.$on("searchTask",this.fetchSearch)},methods:{getSortParam(){return this.sortOrder instanceof Array&&this.sortOrder.length>0?`&order_by=${this.sortOrder[0].sortField}&order_direction=${this.sortOrder[0].direction}`:""},fetch(){Vue.nextTick(()=>{let t="",e="";this.pmql!==void 0&&(t=this.pmql),this.pmqlSearch&&(t=`${t} AND ${this.pmqlSearch}`),this.filterDropdowns!==void 0&&(e=this.filterDropdowns);let{filter:r}=this,i="";r&&r.length&&(r.isPMQL()?(t=`(${t}) and (${r})`,r=""):i=`&user_id=${window.ProcessMaker.user.id}&filter=${r}&statusfilter=ACTIVE,CLOSED`),this.previousFilter!==r&&(this.page=1),this.previousFilter=r,this.previousPmql!==t&&(this.page=1),this.previousPmql=t;const a=[];ProcessMaker.apiClient.get(`tasks?page=${this.page}&include=process,processRequest,processRequest.user,user,data&pmql=${encodeURIComponent(t)}
|
|
357
357
|
&per_page=${this.perPage}
|
|
358
358
|
${i}
|
|
359
359
|
${this.getSortParam()}
|
|
@@ -378,5 +378,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
378
378
|
content: $t(element.popoverContent),
|
|
379
379
|
customClass: 'custom-popover',
|
|
380
380
|
boundaryPadding: 16
|
|
381
|
-
}`,modifiers:{hover:!0,right:!0}}],key:o,staticClass:"gray-text",attrs:{"data-control":e.controls.indexOf(s),boundary:"viewport","data-cy":`controls-${s.component}`,disabled:!e.canDragControl(s)},on:{mousedown:function(u){return e.disableEnableDragControl(s,u)}}},[s.config&&s.config.icon?r("i",{class:s.config.icon}):e._e(),r("span",{staticClass:"svg-icon",staticStyle:{width:"12px",height:"12px"},domProps:{innerHTML:e._s(s.config.svg)}}),e._v(" "+e._s(e.$t(s.label))+" ")])}),1):e._e()],1)],1)]})],2)],1)],1),r("b-col",{ref:"screen-container",staticClass:"overflow-auto mh-100 p-0 d-flex flex-column position-relative",attrs:{id:"screen-container"}},[r("tabs-bar",{ref:"tabsBar",attrs:{pages:e.config,"is-multi-page":e.showToolbar,"show-clipboard":e.showClipboard},on:{"tab-opened":function(i){e.currentPage=i},"close-clipboard":e.closeClipboard},scopedSlots:e._u([{key:"tabs-start",fn:function(){return[e.showToolbar?r("pages-dropdown",{attrs:{data:e.sortedPages},on:{addPage:function(i){return e.$bvModal.show("addPageModal")},clickPage:e.onClick,seeAllPages:function(i){return e.$bvModal.show("openSortable")},clipboard:e.openClipboard}}):e._e()]},proxy:!0},{key:"default",fn:function({currentPage:i}){return[e.isClipboardPage(i)?r("b-button",{staticClass:"no-text-transform",attrs:{variant:"link"},on:{click:e.clearClipboard}},[e._v(" "+e._s(e.$t("Clear All"))+" ")]):e._e(),e.isCurrentPageEmpty(i)?r("div",{staticClass:"d-flex justify-content-center align-items-center drag-placeholder text-center position-absolute rounded mt-4 flex-column",attrs:{"data-cy":"screen-drop-zone"}},[r("svg",{attrs:{width:"81",height:"107",viewBox:"0 0 81 107",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M47.125 28.6562V0.5H5.71875C2.96523 0.5 0.75 2.71523 0.75 5.46875V101.531C0.75 104.285 2.96523 106.5 5.71875 106.5H75.2812C78.0348 106.5 80.25 104.285 80.25 101.531V33.625H52.0938C49.3609 33.625 47.125 31.3891 47.125 28.6562ZM60.375 77.5156C60.375 78.882 59.257 80 57.8906 80H23.1094C21.743 80 20.625 78.882 20.625 77.5156V75.8594C20.625 74.493 21.743 73.375 23.1094 73.375H57.8906C59.257 73.375 60.375 74.493 60.375 75.8594V77.5156ZM60.375 64.2656C60.375 65.632 59.257 66.75 57.8906 66.75H23.1094C21.743 66.75 20.625 65.632 20.625 64.2656V62.6094C20.625 61.243 21.743 60.125 23.1094 60.125H57.8906C59.257 60.125 60.375 61.243 60.375 62.6094V64.2656ZM60.375 49.3594V51.0156C60.375 52.382 59.257 53.5 57.8906 53.5H23.1094C21.743 53.5 20.625 52.382 20.625 51.0156V49.3594C20.625 47.993 21.743 46.875 23.1094 46.875H57.8906C59.257 46.875 60.375 47.993 60.375 49.3594ZM80.25 25.7371V27H53.75V0.5H55.0129C56.3379 0.5 57.6008 1.01758 58.5324 1.94922L78.8008 22.2383C79.7324 23.1699 80.25 24.4328 80.25 25.7371Z",fill:"#699CFF"}})]),r("h3",[e._v(e._s(e.$t("Place your controls here.")))]),r("p",[e._v(" "+e._s(e.$t("To begin creating a screen, drag and drop items from the Controls Menu on the left."))+" ")])]):e._e(),e.renderControls?r("draggable",e._b({key:e.editorContentKey,staticClass:"h-100",attrs:{"data-cy":"editor-content","ghost-class":"form-control-ghost",value:e.extendedPages[i].items},on:{input:e.updateConfig}},"draggable",{group:{name:"controls"},swapThreshold:.5},!1),e._l(e.extendedPages[i].items,function(a,n){return r("div",{key:n,staticClass:"control-item mt-4 mb-4",class:{selected:e.selected===a,hasError:e.hasError(a)},attrs:{selector:a.config.customCssSelector},on:{click:function(s){return e.inspect(a)}}},[a.container?r("div",{staticClass:"card container-lement",class:{"ai-section-card":e.isAiSection(a)},attrs:{"data-cy":"screen-element-container"},on:{click:function(s){return e.inspect(a)}}},[e.selected===a?r("div",{staticClass:"card-header form-element-header d-flex align-items-center",class:{pulse:e.isAiSection(a)&&e.aiPreview(a)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),a.config.icon?r("i",{staticClass:"mr-2 ml-1",class:a.config.icon}):e._e(),e._v(" "+e._s(a.config.name||a.label||e.$t("Field Name"))+" "),!e.isClipboardPage(i)&&e.isInClipboard(e.extendedPages[i].items[n])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[!e.isClipboardPage(i)&&e.screenType==="form"?r("clipboard-button",{attrs:{index:n,config:a.config,isInClipboard:e.isInClipboard(e.extendedPages[i].items[n]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(s){return e.addToClipboard(e.extendedPages[i].items[n])},removeFromClipboard:function(s){return e.removeFromClipboard(e.extendedPages[i].items[n])}}}):e._e(),e.isAiSection(a)&&e.aiPreview(a)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{"data-test":"apply-ai-btn",title:e.$t("Apply Changes")},on:{click:function(s){return e.applyAiChanges(a)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(a)&&e.aiPreview(a)?e._e():r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{"data-test":"copy-control-btn",title:e.$t("Copy Control")},on:{click:function(s){return e.duplicateItem(n)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"data-test":"delete-control-btn",title:e.$t("Delete Control")},on:{click:function(s){return e.deleteItem(n)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])],1)],1):e._e(),r(a["editor-component"],{tag:"component",staticClass:"card-body",class:e.elementCssClass(a),attrs:{"validation-errors":e.validationErrors,selected:e.selected,config:a.config,"ai-element":a,"screen-type":e.screenType},on:{inspect:e.inspect,"update-state":e.updateState},model:{value:a.items,callback:function(s){e.$set(a,"items",s)},expression:"element.items"}})],1):r("div",{staticClass:"card",attrs:{"data-cy":"screen-element-container"}},[e.selected===a?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"}),a.config.icon?r("i",{staticClass:"mr-2 ml-1",class:a.config.icon}):e._e(),e._v(" "+e._s(a.config.name||e.$t("Variable Name"))+" "),!e.isClipboardPage(i)&&e.isInClipboard(e.extendedPages[i].items[n])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[!e.isClipboardPage(i)&&e.screenType==="form"?r("clipboard-button",{attrs:{index:n,config:a.config,isInClipboard:e.isInClipboard(e.extendedPages[i].items[n]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(s){return e.addToClipboard(e.extendedPages[i].items[n])},removeFromClipboard:function(s){return e.removeFromClipboard(e.extendedPages[i].items[n])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Copy Control"),"data-test":"copy-control-btn"},on:{click:function(s){return e.duplicateItem(n)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{title:e.$t("Delete Control")},on:{click:function(s){return e.deleteItem(n)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])],1)],1):e._e(),r(a["editor-component"],e._b({tag:"component",staticClass:"card-body m-0 pb-4 pt-4",class:[e.elementCssClass(a),{"prevent-interaction":!a.config.interactive}],attrs:{tabindex:a.config.interactive?0:-1,"screen-type":e.screenType},on:{input:function(s){a.config.interactive&&(a.config.content=s)}},nativeOn:{focusout:function(s){return e.updateState.apply(null,arguments)}}},"component",a.config,!1))],1)])}),0):e._e(),e.isCurrentPageEmpty(i)?e._e():r("div",{attrs:{"data-cy":"screen-drop-zone"}},[e._v(" ")])]}}])})],1),e.renderControls?r("b-col",{staticClass:"overflow-auto mh-100 p-0 d-flex flex-column position-relative inspector-column"},[r("b-card",{staticClass:"p-0 h-100 border-top-0 border-bottom-0 border-right-0 rounded-0 inspector-column",attrs:{"no-body":""}},[e.showTemplatesPanel?r("div",[r("b-card-body",{staticClass:"p-2 h-100 overflow-auto screen-templates-column"},[r("screen-templates",{ref:"screenTemplates",attrs:{"shared-templates-data":e.sharedTemplatesData,"screen-id":e.screen.id,"screen-type":e.screen.type,currentScreenPage:e.currentPage},on:{"close-templates-panel":e.closeTemplatesPanel}})],1)],1):r("div",[r("b-card-body",{staticClass:"p-0 h-100 overflow-auto"},[e._l(e.accordions,function(i){return[e.getInspectorFields(i)&&e.getInspectorFields(i).length>0?r("b-button",{key:`${e.accordionName(i)}-button`,staticClass:"text-left card-header d-flex align-items-center w-100 outline-0 text-capitalize shadow-none",attrs:{variant:"outline","data-cy":`accordion-${e.accordionName(i).replace(" ","")}`,"accordion-name":`accordion-${e.accordionName(i).replace(" ","")}`,"is-open":i.open?"1":"0"},on:{click:function(a){return e.toggleAccordion(i)}}},[r("i",{staticClass:"fas fa-cog mr-2"}),e._v(" "+e._s(e.$t(e.accordionName(i)))+" "),r("i",{staticClass:"fas fa-angle-down ml-auto",class:{"fas fa-angle-right":!i.open}})]):e._e(),r("b-collapse",{key:`${e.accordionName(i)}-collapse`,attrs:{id:e.accordionName(i)},model:{value:i.open,callback:function(a){e.$set(i,"open",a)},expression:"accordion.open"}},e._l(e.getInspectorFields(i),function(a,n){return e.shouldShow(a,i)?r(a.type,e._b({key:n,tag:"component",staticClass:"border-bottom m-0 p-4",attrs:{"data-cy":"inspector-"+(a.field||a.config.name),"field-name":a.field,"field-accordion":`accordion-${e.accordionName(i).replace(" ","")}`,builder:e.builder,"form-config":e.config,"screen-type":e.screenType,"current-page":e.currentPage,"selected-control":e.selected},on:{"update-state":e.updateState,setName:function(s){e.inspection.config.name=s}},nativeOn:{focusout:function(s){return e.updateState.apply(null,arguments)}},model:{value:e.inspection.config[a.field],callback:function(s){e.$set(e.inspection.config,a.field,s)},expression:"inspection.config[item.field]"}},"component",a.config,!1)):e._e()}),1)]})],2)],1)])],1):e._e(),r("b-modal",{ref:"openSortable",attrs:{id:"openSortable","header-close-content":"×",role:"dialog",size:"lg",title:e.$t("Edit Pages"),"ok-title":e.$t("DONE"),"ok-only":"","ok-variant":"secondary","header-class":"modal-header-custom"},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Edit Pages")))]),r("span",{staticClass:"modal-subtitle"},[e._v(e._s(e.$t("Change pages order and name")))])]},proxy:!0},{key:"modal-header-close",fn:function({close:i}){return[r("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"}},[e._v("×")])]}}])},[r("Sortable",{attrs:{fields:e.fields,items:e.config,"search-properties":e.searchProperties},on:{"item-edit":()=>{},"item-delete":e.confirmDelete,"add-page":function(i){return e.$bvModal.show("addPageModal")}}})],1),r("b-modal",{ref:"addPageModal",attrs:{id:"addPageModal","header-class":"pb-2",size:"lg","ok-title":e.$t("SAVE"),"cancel-title":e.$t("CANCEL"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"×","data-cy":"add-page-modal","ok-disabled":!e.addPageName||!!e.checkPageName(e.addPageName)},on:{ok:e.addPage,show:function(i){e.addPageName="",e.showAddPageValidations=!1}},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Create New Page")))]),r("small",{staticClass:"modal-subtitle mb-n2"},[e._v(e._s(e.$t("Create a new page in your screen")))])]},proxy:!0}])},[r("form-input",{ref:"addPageInput",attrs:{name:e.$t("Page Name"),label:e.$t("Page Name")+" *",helper:e.$t("The name of the new page to add"),error:e.checkPageName(e.addPageName),"data-cy":"add-page-name","aria-required":"true"},model:{value:e.addPageName,callback:function(i){e.addPageName=i},expression:"addPageName"}})],1),r("b-modal",{ref:"editPageModal",attrs:{title:e.$t("Edit Page Title"),"ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"×"},on:{ok:e.editPage}},[r("required"),r("form-input",{ref:"editPageInput",attrs:{name:e.$t("Page Name"),label:e.$t("Page Name")+" *",helper:e.$t("The new name of the page"),validation:"required",error:e.checkPageName(e.editPageName),required:"","aria-required":"true"},model:{value:e.editPageName,callback:function(i){e.editPageName=i},expression:"editPageName"}})],1),r("b-modal",{ref:"confirm",attrs:{title:e.$t("Caution!"),"ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"×"},on:{ok:e.deletePage,cancel:e.hideConfirmModal}},[r("p",[e._v(e._s(e.confirmMessage))]),r("div",{attrs:{slot:"modal-ok"},slot:"modal-ok"},[e._v(e._s(e.$t("Delete")))])])],1)},A$=[],O$=ie(M$,D$,A$,!1,null,"0db10927",null,null);const jS=O$.exports,z$=1,E$={name:"FormMultiColumn",mixins:[da,Bb,_c],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:fi,FormInput:Zi,FormSelectList:$.FormSelectList,FormTextArea:$.FormTextArea,FormCheckbox:$.FormCheckbox,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,...en},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=z$;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 j$=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)])},N$=[],I$=ie(E$,j$,N$,!1,null,null,null,null);const ju=I$.exports,L$={type:"CodeEditor",field:"handler",config:{label:"Click Handler",helper:"The handler is a JavaScript function that will be executed when the button is clicked.",dataFeature:"i1177"}},F$={type:"FormCheckbox",field:"handlerSecurityEnabled",config:{label:"Secure Handler Execution",toggle:!0,helper:"When enabled, the handler runs inside a sandboxed worker. Disable to allow full JavaScript access."}},NS={value:"string",content:"Text"},IS={value:"int",content:"Integer"},B$={value:"currency",content:"Currency"},R$={value:"password",content:"Password"},H$={value:"percentage",content:"Percentage"},LS={value:"float",content:"Decimal"},FS={value:"datetime",content:"Datetime"},BS={value:"date",content:"Date"},V$={value:"boolean",content:"Boolean"},q$=[NS,IS,B$,H$,LS,FS,BS,R$],W$=[NS,IS,LS];function Nu(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 X$(){return{type:"SelectDataTypeMask",field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const RS=Nu(q$),J$=Nu(W$),U$=Nu([V$]),HS=Nu([BS,FS]),VS=X$(),G$=[{editorComponent:$.FormHtmlEditor,editorBinding:"FormHtmlEditor",rendererComponent:$.FormHtmlEditor,rendererBinding:"FormHtmlEditor",control:{popoverContent:"Use a Rich Text Editor to add HTML-formatted",order:2,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:$.FormInput,builderBinding:"FormInput",rendererComponent:Zi,rendererBinding:"FormMaskedInput",control:{popoverContent:"Collect a string of text and format it as one of several data types",order:2,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:[Kt,Ur,RS,VS,Gi,Un,Da,bl,Ui,Ji,Gn]}},{editorComponent:$.FormTextArea,editorBinding:"FormTextArea",rendererComponent:$.FormTextArea,rendererBinding:"FormTextArea",control:{popoverContent:"Collect a multi-line string of text, to allow for extensive, richly formatted responses",order:5,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:[Kt,Ur,Un,Da,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Gi,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},bl,Ui,Ji,Gn]}},{editorComponent:$.FormSelectList,editorBinding:"FormSelectList",rendererComponent:$.FormSelectList,rendererBinding:"FormSelectList",control:{popoverContent:"Collect options from a list, as radio butttons or dropdowns",order:3,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:ai.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],optionsListExtra:[],key:"value",value:"content",ariaLabel:"ariaLabel",valueTypeReturned:"single"},helper:null},inspector:[Kt,Ur,Un,Gi,Da,{type:"OptionsList",field:"options",config:{}},Ui,Ji,Gn,bl]}},{editorComponent:$.FormCheckbox,editorBinding:"FormCheckbox",rendererComponent:$.FormCheckbox,rendererBinding:"FormCheckbox",control:{popoverContent:"Add a checkbox or toggle for true/false responses",order:7,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:[Kt,Ur,Da,Gi,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},Ui,Ji,Og,Sd]}},{editorComponent:$.FormDatePicker,editorBinding:"FormDatePicker",rendererComponent:$.FormDatePicker,rendererBinding:"FormDatePicker",control:{popoverContent:"Collect a date or date/time",order:6,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"}},Kt,Ur,HS,Gi,Un,Da,Ui,Ji,Sd,Gn]}},{editorComponent:Yi,editorBinding:"FormButton",rendererComponent:Yi,rendererBinding:"FormButton",control:{popoverContent:"Add special buttons that link between subpages within this Form",order:2,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"}},Ag,Pd]}},{editorComponent:ju,editorBinding:"FormMultiColumn",rendererComponent:ju,rendererBinding:"FormMultiColumn",control:{popoverContent:"Organize and group your content in columns",order:3,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"}},Ui,Ji]}},{editorComponent:As,editorBinding:"FormLoop",rendererComponent:As,rendererBinding:"FormLoop",control:{popoverContent:"Add a repeatable section of content",order:6,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:Ls,editorBinding:"FormDynamicPanel",rendererComponent:Ls,rendererBinding:"FormDynamicPanel",control:{popoverContent:"Add a dynamic panel component",order:6,group:"Content Fields",label:"Dynamic Panel",component:"FormDynamicPanel","editor-component":"DynamicPanel","editor-control":"DynamicPanel",container:!0,items:[],config:{name:"",icon:"fas fa-th-large",settings:{type:"new",varname:"dynamic_panel",indexName:"",add:!1,emptyStateMessage:"No data available. Please configure an Index Name for this dynamic panel."}},inspector:[{type:"DynamicPanelInspector",field:"settings",config:{}}]}},{editorComponent:Au,editorBinding:"FormText",rendererComponent:Du,rendererBinding:"FormRecordList",control:{popoverContent:"Format content in a table structure and allow for adding rows",order:5,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:ai.provideData,jsonData:""},form:"",source:{collectionFields:[],collectionFieldsColumns:[],pmql:null,sourceOptions:"Variable",variableStore:null,dataSelectionOptions:"no-selection",singleField:null}},inspector:[Kt,{type:"FormInput",field:"label",config:{label:"List Label",helper:"The label describes this record list"}},{type:"collectionDataSource",field:"source",config:{label:"Source of Record List",helper:"A record list can display the data of a defined variable or a collection"}},{type:"FormCheckbox",field:"editable",config:{label:"Editable?",helper:"Should records be editable/removable and can new records be added"},if:"hideControl"},{type:"ColumnSetup",field:"fields",config:{label:"Columns",helper:"List of columns to display in the record list"}},{type:"FormMultiselect",field:"paginationOption",config:{icon:"fas",label:"Pagination",options:[{content:"No Pagination (show all)",value:0},{content:"5 items per page",value:5},{content:"10 items per page",value:10},{content:"15 items per page",value:15},{content:"25 items per page",value:25},{content:"50 items per page",value:50}]}},{type:"PageSelect",field:"form",config:{label:"Record Form",helper:"The form to use for adding/editing records"},if:"hideControl"},{type:"collectionDesignerMode",field:"designerMode",config:{label:"Table Style",helper:""}},Z5,Y5,Q5]}},{editorComponent:ns,editorBinding:"FormImage",rendererComponent:ns,rendererBinding:"FormImage",control:{popoverContent:"Upload an image to your screen",order:4,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:Mn,editorBinding:"FormAvatar",rendererComponent:Mn,rendererBinding:"FormAvatar",control:{popoverContent:"User avatar",order:4,group:"Dashboards",label:"User Avatar",component:"FormAvatar","editor-component":"FormAvatar","editor-control":"FormAvatar",config:{label:"User Avatar",icon:"fas fa-user-circle",variant:"primary",event:"submit",name:null,value:null,renderImage:!1},inspector:[{type:"FormInput",field:"height",config:{label:"Height",helper:"Avatar height",type:"number"}},{type:"FormInput",field:"width",config:{label:"Width",helper:"Avatar width",type:"number"}}]}},{editorComponent:Yi,editorBinding:"FormSubmit",rendererComponent:Yi,rendererBinding:"FormButton",control:{popoverContent:"Add an action to submit your form or update a field",order:4,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:{},handler:"",handlerSecurityEnabled:!0},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:"+gl}},jg,L$,F$,Ig,Lg,Ng,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},Pd,{type:"VariablesToSubmit",field:"variablesToSubmit",config:{label:"Variables to Submit",helper:"Select which variables should be included in the submission payload. Only variables from the parent (top-level) request can be used."}}]}},{editorComponent:Os,editorBinding:"FormNestedScreen",rendererComponent:Os,rendererBinding:"FormNestedScreen",control:{popoverContent:"Add and reuse another Form within this Form",order:7,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:Tn,rendererBinding:"FileUpload",builderComponent:Tn,builderBinding:"FileUpload",control:{group:"Files",popoverContent:"Collect files uploaded into the Form",order:2,label:"File Upload",component:"FileUpload","editor-component":"FileUpload","editor-control":"FileUpload",config:{label:"New File Upload",icon:"fas fa-file-upload"},inspector:[Kt,{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:Au,rendererBinding:"FormText",builderComponent:ho,builderBinding:"FileDownload",control:{popoverContent:"Offer a File download",order:3,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:$.BFormComponent,rendererBinding:"BFormComponent",builderComponent:$.BFormComponent,builderBinding:"BFormComponent",control:{popoverContent:"Add one of several Bootstrap Vue components",order:2,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:[Kt,Ur,{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:"{}"}},Gi]}},{rendererComponent:$.BWrapperComponent,rendererBinding:"BWrapperComponent",builderComponent:$.BWrapperComponent,builderBinding:"BWrapperComponent",control:{popoverContent:"Wrap an existing subpage within this Form into a Bootstrap Vue component",order:3,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:[Kt,Ur,{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:zs,editorBinding:"FormListTable",rendererComponent:zs,rendererBinding:"FormListTable",control:{popoverContent:"Create List Table",order:6.5,group:"Dashboards",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 Cases"},{value:"Start New Request",content:"Start New Case"}]}}]}},{editorComponent:Es,editorBinding:"FormAnalyticsChart",rendererComponent:Es,rendererBinding:"FormAnalyticsChart",control:{popoverContent:"Add a chart from the Analytics Reports",order:7,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"}}]}},{editorComponent:js,editorBinding:"LinkButton",rendererComponent:js,rendererBinding:"LinkButton",control:{popoverContent:"Add a URL where this link should redirect",group:"Content Fields",order:7,label:"Link URL",component:"LinkButton","editor-component":"LinkButton","editor-control":"LinkButton",config:{label:"New Link",icon:"fas fa-link",variant:"primary",variantStyle:"link",event:"link",value:"link"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the link's text"}},{type:"FormInput",field:"linkUrl",config:{label:"Link URL",helper:"Type here the URL link. Mustache syntax is supported."}},K5,Eg]}},{control:{popoverContent:"Drag and paste copied elements to your desired location.",order:1,group:"Clipboard",label:"Drag & Paste",component:"Clipboard",config:{icon:"fa fa-clipboard"},inspector:[]}},{editorComponent:Ns,editorBinding:"FormCollectionRecordControl",rendererComponent:Ns,rendererBinding:"FormCollectionRecordControl",control:{popoverContent:"Create a Collection Record Control",order:7,group:"Content Fields",label:"Collection Record Control",component:"FormCollectionRecordControl","editor-component":"FormCollectionRecordControl","editor-control":"FormCollectionRecordControl",config:{name:"Collection Record Control",icon:"fas fa-database",label:"Collection Record Control",collectionmode:{modeId:"Edit",submitCollectionCheck:!0}},inspector:[{type:"collectionRecordsList",field:"collection",config:{label:"Collection Name",helper:"Select a collection",value:""}},{type:"FormInput",field:"record",config:{label:"Record ID",helper:"Supports Mustache Variable and the Collection Record",value:""}},{type:"collectionDisplayMode",field:"collectionmode",config:{label:"Mode",options:[{value:"Edit",text:"Edit"},{value:"View",text:"View"}]}}]}},{editorComponent:Is,editorBinding:"FormCollectionViewControl",rendererComponent:Is,rendererBinding:"FormCollectionViewControl",control:{popoverContent:"Create a Collection View Control",order:7,group:"Content Fields",label:"Collection Record View",component:"FormCollectionViewControl","editor-component":"FormCollectionViewControl","editor-control":"FormCollectionViewControl",config:{name:"Collection View Control",icon:"fas fa-database",label:"Collection View Control"},inspector:[{type:"collectionRecordsList",field:"collection",config:{label:"Collection Name",helper:"Select a collection",value:""}},{type:"FormInput",field:"record",config:{label:"Record ID",helper:"Supports Mustache Variable and the Collection Record",value:""}}]}},{editorComponent:Fs,editorBinding:"CaseProgressBar",rendererComponent:Fs,rendererBinding:"CaseProgressBar",control:{popoverContent:"Add a progress bar to show the status of a case",order:7,group:"Dashboards",label:"Case Progress Bar",component:"CaseProgressBar","editor-component":"CaseProgressBar","editor-control":"CaseProgressBar",config:{label:"New Case Progress Bar",icon:"fas fa-chart-bar",variant:"primary",event:"submit",name:null,fieldValue:null,tooltip:{}},inspector:[]}}],Q$="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NS4wNTYyIDczLjg4NkM4NS4wNTYyIDczLjg4NiAxMTUuMDggOTYuNjcgMTYwLjcyNCA1NC4wNjhDMjAxLjI2IDE2LjIzNDMgMjM0LjM1OSA3NS45Mjc1IDIzNC41OSAxMDQuNTEzQzIzNC44OSAxNDEuNTQzIDE5NC4wNTQgMTcxLjE3MyAyMTMuODcyIDE5NS40OTVDMjMzLjY5IDIxOS44MTcgMTc0LjU3IDI1OS45ODEgMTQyLjcwOCAyMjUuMjIyQzEwMy4wNzIgMTgxLjk4MyA5Mi4zMzQ1IDIxNy4xMTQgNjkuNzQyNSAyMTcuMTE0QzUzLjUyNzggMjE3LjExNCAyMC4yMzc2IDE3Ni44MjUgNDIuNzE4MSAxNDYuODUxQzYxLjYzNTIgMTIxLjYyOSA1MS4zMTgyIDExMy4yNTggNDYuMzIyIDEwNC41MTNDMzkuMTE0OSA5MS45MDIxIDU2LjIzMDQgNTcuNjcxNSA4NS4wNTYyIDczLjg4NloiIGZpbGw9IiNERUVFRkEiLz4KPHBhdGggZD0iTTIwNS41OTIgMTI0LjIzNUMyMDcuMjA2IDEyNC44MzUgMjA4Ljk2OSAxMjQuODc1IDIxMC42NDcgMTI0LjQ4OUMyMTcuNjc3IDEyMi44NzYgMjQxLjg1IDExOC42MDMgMjM3LjY1IDEzNy4zMzVDMjM2Ljcz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LjkwNUMxNDYuNTAzIDE2OS41NzEgMTQ2LjYzNyAxNjkuMjUzIDE0Ni44NyAxNjkuMDE0QzE0Ny4xMDMgMTY4Ljc3NSAxNDcuNDE3IDE2OC42MzMgMTQ3Ljc1IDE2OC42MTVWMTY4LjYxNVoiIGZpbGw9IiM1MkE1RUMiLz4KPHBhdGggZD0iTTE1NC4zMjIgMTYzLjMxN0MxNTUuMTc0IDE2Mi42OTEgMTU2LjQ2MyAxNjMuMDQyIDE1Ny4yNDMgMTY0LjExMkwxNzEuMTAzIDE4My4xMUMxNzEuOTMxIDE4NC4yNDUgMTcxLjg2NyAxODUuNzQ0IDE3MC45NjMgMTg2LjQwOEwxNjkuNzAzIDE4Ny4zMzNDMTY4Ljc5OSAxODcuOTk3IDE2Ny40MTggMTg3LjU1OCAxNjYuNjY2IDE4Ni4zNjhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",kne="",Y$={props:["instanceId"],data(){return{title:"We're Sorry",message:"An error has occurred. Please try again. If the problem persists, please contact your administrator.",label:"View error details"}},methods:{redirectToError(){this.instanceId&&(window.location.href=`/requests/${this.instanceId}`)}}};var Z$=function(){var e=this,r=e._self._c;return r("div",{staticClass:"simple-error-message-main"},[e._m(0),r("p",[r("b-button",{attrs:{variant:"primary"},on:{click:e.redirectToError}},[e._v(e._s(e.$t(e.label)))])],1),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:Q$}})])}],_$=ie(Y$,Z$,K$,!1,null,null,null,null);const $$=_$.exports,Tne="",eee={components:{simpleErrorMessage:$$,VueFormRenderer:Ci},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},screenVersion:{type:Number,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},alwaysAllowEditing:{type:Boolean,default:!1},disableInterstitial:{type:Boolean,default:!1},waitLoadingListeners:{type:Boolean,default:!1},isWebEntry:{type:Boolean,default:!1}},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,loadingTask:!1,loadingListeners:this.waitLoadingListeners,isSelfService:!1}},watch:{initialScreenId:{handler(){this.screenId=this.initialScreenId}},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)}},requestId:{handler(){this.requestId?(this.setMetaValue(),this.initSocketListeners()):this.unsubscribeSocketListeners()}},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=G.get(this.screen,"_interstitial",!1);let e=G.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 G.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=null,setTimeout(()=>{this.renderComponent="simpleErrorMessage"},0)},loadScreen(t){this.disabled=!0;let e="?include=nested";this.requestId&&(e+="&request_id="+this.requestId),this.$dataProvider.getScreen(t,e).then(r=>{this.screen=r.data,this.disabled=!1})},reload(){this.taskId?this.loadTask():this.loadNextAssignedTask()},loadTask(t=!1){if(!this.taskId)return;let e=`/${this.taskId}?include=data,user,draft,requestor,processRequest,component,screen,requestData,loopContext,bpmnTagName,interstitial,definition,nested,userRequestPermission,elementDestination`;return this.screenVersion&&(e+=`&screen_version=${this.screenVersion}`),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(e).then(r=>{if(this.task=r.data,this.linkTask(t),this.checkTaskStatus(),window.PM4ConfigOverrides&&window.PM4ConfigOverrides.getScreenEndpoint&&window.PM4ConfigOverrides.getScreenEndpoint.includes("tasks/")){const i=window.PM4ConfigOverrides.getScreenEndpoint.split("/");i[1]=this.task.id,window.PM4ConfigOverrides.getScreenEndpoint=i.join("/")}}).catch(()=>{this.hasErrors=!0}).finally(()=>{this.loadingTask=!1})})},linkTask(t){this.nodeId=this.task.element_id,this.listenForParentChanges(),this.task.process_request.status==="COMPLETED"&&(this.taskPreview||(this.$emit("completed",this.task.process_request.id),t&&window.ProcessMaker.apiClient.get(`/requests/${this.requestId}/end-event-destination`).then(e=>{var r,i;if(!((i=(r=e.data)==null?void 0:r.data)!=null&&i.endEventDestination)){window.location.href=`/requests/${this.requestId}`;return}this.processCompletedRedirect(e.data.data,this.userId,this.requestId)}))),this.taskPreview&&this.task.status==="CLOSED"&&(this.task.interstitial_screen._interstitial=!1,this.alwaysAllowEditing||(this.task.screen.config=this.disableForm(this.task.screen.config)),this.screen=this.task.screen)},prepareTask(){(!this.loadingButton||this.task.status==="ACTIVE")&&(this.resetScreenState(),this.requestData=G.get(this.task,"request_data",{}),this.loopContext=G.get(this.task,"loop_context",""),this.task.draft&&(this.requestData=G.merge({},this.requestData,this.task.draft.data)),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},pageUpdate(){this.$emit("updated-page-core")},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()},setSelfService(){this.$nextTick(()=>{window.ProcessMaker.isSelfService?this.isSelfService=!0:this.isSelfService=!1})},closeTask(t=null){this.hasErrors&&this.emitError(),this.shouldLoadNextTask()?this.loadNextAssignedTask(t):this.task.allow_interstitial?this.showInterstitial(t):this.taskPreview||this.emitClosedEvent()},shouldLoadNextTask(){return this.task.process_request.status==="COMPLETED"||this.loadingButton},showInterstitial(t){this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen,this.loadNextAssignedTask(t)},emitError(){this.$emit("error",this.requestId)},async emitClosedEvent(){var t;this.$emit("closed",(t=this.task)==null?void 0:t.id,await this.getDestinationUrl())},async getDestinationUrl(){const{elementDestination:t,allow_interstitial:e}=this.task||{};if(!t)return null;if(t.type==="taskSource")try{const a={processRequestId:this.requestId,status:"ACTIVE",userId:this.userId},s=(await this.retryApiCall(()=>this.getTasks(a))).data.data[0];return e&&(s==null?void 0:s.user_id)===this.userId?`/tasks/${s.id}/edit`:this.getSessionRedirectUrl()}catch{return null}const r=t.value;return r?(sessionStorage.setItem("sessionUrlActionBlocker",document.referrer),r):sessionStorage.getItem("elementDestinationURL")||null},getSessionRedirectUrl(){const t=sessionStorage.getItem("sessionUrlSelfService");return t?(sessionStorage.removeItem("sessionUrlSelfService"),t):document.referrer||"/tasks"},loadNextAssignedTask(t=null){if(t||(t=this.requestId),!this.userId)return;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(this.$emit("load-data-task",i),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,this.loadTask()}else this.parentRequest&&["COMPLETED","CLOSED"].includes(this.task.process_request.status)&&this.$emit("completed",this.getAllowedRequestId());this.disabled=!1})},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},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t=null,e=!1,r=null){var a,n;if(this.disabled)return;this.disabled=!0;const i=t&&typeof t=="object"?t:this.requestData||{};t&&typeof t=="object"&&this.onUpdate(Object.assign({},this.requestData,t)),e?this.loadingButton=!0:this.loadingButton=!1,this.$emit("submit",this.task,i,e,r),(a=this.task)!=null&&a.allow_interstitial&&!this.loadingButton&&!this.disableInterstitial&&(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen),((n=this.task)==null?void 0:n.bpmn_tag_name)==="manualTask"&&(this.checkTaskStatus(),this.reload())},onUpdate(t){this.$emit("input",t),this.setSelfService()},activityAssigned(){},processCompleted(t=null){let e;this.parentRequest&&(e=this.getAllowedRequestId(),this.$emit("completed",e))},async retryApiCall(t,e=3,r=1e3){for(let i=0;i<e;i++)try{return await t()}catch(a){if(i===e-1)throw a;await new Promise(n=>{setTimeout(n,r)})}},getNextRequest(t,e){return window.ProcessMaker.apiClient.post(`/process_events/${t}?event=${e}`,{})},getTasks(t){const e={user_id:this.userId,process_request_id:t.processRequestId,page:t.page||1,per_page:t.perPage||1,status:t.status},r=new URLSearchParams(e).toString();return this.$dataProvider.getTasks(`?${r}`)},parseJsonSafely(t){try{return JSON.parse(t)}catch(e){return console.error("Invalid JSON string:",e),null}},async processCompletedRedirect(t,e,r){if(this.isWebEntry){this.$emit("completed",r);return}try{const i=this.resolveDestinationUrl(t);if(i){window.location.href=i;return}await this.handleNextRequestRedirection(t,e,r)}catch(i){console.error("Error processing completed redirect:",i),this.$emit("completed",r)}},resolveDestinationUrl(t){return t.endEventDestination.type!=="anotherProcess"?t.endEventDestination.value||`/requests/${this.requestId}`:null},async handleNextRequestRedirection(t,e,r){const i=await this.fetchNextRequest(t.endEventDestination),a=await this.fetchFirstTask(i);(a==null?void 0:a.user_id)===e?this.redirectToTask(a.id):this.redirectToRequest(r)},async fetchNextRequest(t){const e=this.parseJsonSafely(t.value);return await this.retryApiCall(()=>this.getNextRequest(e.processId,e.startEvent))},async fetchFirstTask(t){const e={processRequestId:t.data.id,status:"ACTIVE",page:1,perPage:1};return(await this.retryApiCall(()=>this.getTasks(e))).data.data[0]||null},getAllowedRequestId(){const e=(this.task.user_request_permission||[]).find(i=>i.process_request_id===this.parentRequest);return e&&e.allowed?this.parentRequest:this.requestId},redirectToTask(t){this.$emit("redirect",t)},redirectToRequest(t){window.location.href=`/requests/${t}`},initSocketListeners(){this.addProcessUpdateListener(),this.addRedirectListener(),this.loadingListeners=!1,this.taskId||this.reload()},addProcessUpdateListener(){this.addSocketListener(`updated-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".ProcessUpdated",t=>this.handleProcessUpdate(t))},handleProcessUpdate(t){const{event:e,elementDestination:r,tokenId:i}=t;e==="ACTIVITY_COMPLETED"&&this.task.id===i&&r&&(this.task.elementDestination=r,this.task.allow_interstitial=r.type==="displayNextAssignedTask"),e==="ACTIVITY_EXCEPTION"&&(this.$emit("error",this.requestId),window.location.href=`/requests/${this.requestId}`)},addRedirectListener(){this.addSocketListener(`redirect-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".RedirectTo",t=>this.handleRedirect(t))},handleRedirect(t){var e,r;if(!((r=(e=t.params)==null?void 0:e.activeTokens)!=null&&r.includes(this.taskId)))switch(t.method){case"redirectToTask":this.handleRedirectToTask(t);break;case"processUpdated":this.handleProcessUpdated(t);break;case"processCompletedRedirect":this.processCompletedRedirect(t.params[0],this.userId,this.requestId);break;default:this.handleDefaultRedirect(t)}},async handleRedirectToTask(t){var e,r,i,a;if((e=t==null?void 0:t.params[0])!=null&&e.tokenId&&((r=this.task.user)==null?void 0:r.id)===((i=t.params[0])==null?void 0:i.userId)||((a=this.task.elementDestination)==null?void 0:a.type)==="taskSource"){if(this.loadingTask=!0,this.task&&!(this.task.allow_interstitial||this.isSameUser(this.task,t))){window.location.href=await this.getDestinationUrl();return}this.nodeId=t.params[0].nodeId,this.taskId=t.params[0].tokenId,this.renderComponent==="ConversationalForm"&&(window.location.href=`/tasks/${this.taskId}/edit`),this.reload()}},isSameUser(t,e){var a,n,s;const r=((a=t.user)==null?void 0:a.id)===e.params[0].userId,i=((n=t.elementDestination)==null?void 0:n.type)===null||((s=t.elementDestination)==null?void 0:s.type)==="taskSource";return r&&i},handleProcessUpdated(t){var r,i,a,n;const e=(r=this.task.elementDestination)==null?void 0:r.value;if(e&&e!=="taskSource"&&((i=t==null?void 0:t.params[0])==null?void 0:i.tokenId)===this.taskId&&((a=t==null?void 0:t.params[0])==null?void 0:a.requestStatus)==="ACTIVE"){window.location.href=e;return}["ACTIVITY_ACTIVATED","ACTIVITY_COMPLETED"].includes(t.event)&&t.elementType==="task"&&((n=this.task.elementDestination)!=null&&n.type||(this.taskId=t.taskId),this.reload()),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)},handleDefaultRedirect(t){console.warn("redirect",t),window.location.href=`/requests/${this.requestId}`},existsEventMessage(t,e){return sessionStorage.getItem(t)?!0:(sessionStorage.setItem(t,e),!1)},listenForParentChanges(){this.parentRequest&&this.addSocketListener(`parent-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,".ProcessUpdated",t=>{var e;if(["ACTIVITY_ACTIVATED"].includes(t.event)){if((e=t.activeTokens)!=null&&e.includes(this.taskId))return;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)},hasUrlActionBlocker(){var e;const t=sessionStorage.getItem("sessionUrlActionBlocker");return t?(sessionStorage.removeItem("sessionUrlActionBlocker"),this.$emit("closed",(e=this.task)==null?void 0:e.id,t),!0):!1}},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,this.loadTask(!0),this.setSelfService()},destroyed(){this.unsubscribeSocketListeners()}};var tee=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||e.isSelfService,id:"overlay-background",variant:e.isSelfService?"white":"transparent",blur:null,cardStyles:"pointer-events: none;pointer-events: none;inset: 1px",rounded:"sm"},scopedSlots:e._u([{key:"overlay",fn:function(){return[r("div",{staticClass:"text-center"},[e.isSelfService?r("p",[e._v("Please claim this task to continue.")]):e._e()])]},proxy:!0}],null,!1,2076353390)},[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",class:{loading:e.loadingTask||e.loadingListeners},attrs:{config:e.screen.config,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,"loop-context":e.loopContext,taskdraft:this.task},on:{"update-page-task":e.pageUpdate,update:e.onUpdate,"after-submit":e.afterSubmit,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:{"update-page-task":e.pageUpdate,update:e.onUpdate,"after-submit":e.afterSubmit,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)},ree=[],iee=ie(eee,tee,ree,!1,null,"b674103a",null,null);const qS=iee.exports,Dne="",aee={name:"Loop",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],props:["value","name","config","selected","validationErrors","screenType"],data(){return{items:[],cancelledJobs:[]}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},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)})},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=G.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)}})},onChange(t){this.$emit("update-state")}}};var nee=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"},on:{change:e.onChange}},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),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-primary 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"})])],1)],1):e._e(),r(i["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(i),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":i,config:i.config,"screen-type":e.screenType},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},see=[],oee=ie(aee,nee,see,!1,null,"9d689ab6",null,null);const WS=oee.exports,Ane="",lee={name:"DynamicPanel",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],props:["value","name","config","selected","validationErrors","screenType"],data(){return{items:[],cancelledJobs:[]}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},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)})},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=G.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)}})},onChange(t){this.$emit("update-state")}}};var uee=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"},on:{change:e.onChange}},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),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-primary 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"})])],1)],1):e._e(),r(i["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(i),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":i,config:i.config,"screen-type":e.screenType},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},cee=[],dee=ie(lee,uee,cee,!1,null,"8968be54",null,null);const XS=dee.exports,One="",fee=1,pee={name:"MultiColumn",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],props:["value","name","config","selected","validationErrors","screenType"],data(){return{items:[],cancelledJobs:[]}},computed:{classContainer(){return this.items.length>0?"form-group":"column-draggable"}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)},"config.options":function(t){this.items=t.map((e,r)=>this.items[r]?this.items[r]:[])}},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)})},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=fee;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=G.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 hee=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"))+" "),e.isInClipboard(n)&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:n.config,isInClipboard:e.isInClipboard(n),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(o){return e.addToClipboard(n)},removeFromClipboard:function(o){return e.removeFromClipboard(n)}}}):e._e(),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-primary 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"})])],1)],1):e._e(),r(n["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(n),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":n,config:n.config,"screen-type":e.screenType},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"))+" "),e.isInClipboard(n)&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:n.config,isInClipboard:e.isInClipboard(n),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(o){return e.addToClipboard(n)},removeFromClipboard:function(o){return e.removeFromClipboard(n)}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(o){n.config.interactive&&(n.config.content=o)}}},"component",n.config,!1))],1)])])}),0)]})],2)])])},mee=[],vee=ie(pee,hee,mee,!1,null,"fb76657c",null,null);const JS=vee.exports,gee={name:"default-loading-spinner"};var bee=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},yee=[],xee=ie(gee,bee,yee,!1,null,null,null,null);const US=xee.exports,wee=!0;function Iu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=Iu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=Iu(i))}}),e}const GS=async(t,e)=>{if(t.length===0)return;const r=Cc(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+=Iu(a.vdata),n+=Iu(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})}},See=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},Pee=G.debounce(GS,500),Lu=[],Cee=(t,e)=>{Lu.includes(t)||Lu.push(t),Pee(Lu,e)},QS={namespaced:wee,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(){Lu.length=0},validate({commit:t},e){Cee(e,t)},async validateNow({commit:t},e){await GS([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 See(t,e)}}},Fu={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),Fu.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),Fu.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),Fu.methods.emitChanges())}}},Mi=class Mi{static saveToLocalStorage(e){localStorage.setItem("clipboard",JSON.stringify(e))}static loadFromLocalStorage(){const e=localStorage.getItem("clipboard");if(e)try{return JSON.parse(e)}catch(r){return console.error("Failed to parse clipboard data from localStorage:",r),[]}else return[]}static saveToServer(e){return Mi.saveToServerFn?Mi.saveToServerFn(e):Promise.resolve()}static loadFromServer(){return Mi.loadFromServerFn?Mi.loadFromServerFn().then(e=>{if(Array.isArray(e))return e;throw new Error("Invalid server response: Expected array for clipboard content")}).catch(e=>(console.error("Failed to load clipboard from server:",e),[])):Promise.resolve([])}};oe(Mi,"loadFromServerFn",null),oe(Mi,"saveToServerFn",null);let gt=Mi;const kee={namespaced:!0,state(){return{clipboard:[]}},getters:{clipboardItems:t=>t.clipboard,isInClipboard:t=>e=>!e||!e.uuid?!1:t.clipboard.some(r=>r.uuid===e.uuid)},mutations:{SET_CLIPBOARD(t,e){if(!Array.isArray(e))throw new Error("Clipboard content must be an array");t.clipboard.splice(0,t.clipboard.length,...e)},ADD_TO_CLIPBOARD(t,e){(Array.isArray(e)?e:[e]).forEach(i=>{i.uuid||(i.uuid=mh()),t.clipboard.some(a=>a.uuid===i.uuid)||t.clipboard.push(i)})},REMOVE_FROM_CLIPBOARD(t,e){if(!e||!e.uuid){console.error("Item or item uuid is missing");return}const r=t.clipboard.findIndex(i=>i.uuid===e.uuid);r!==-1&&t.clipboard.splice(r,1)},CLEAR_CLIPBOARD(t){t.clipboard.splice(0,t.clipboard.length)}},actions:{initializeClipboard({commit:t}){const e=gt.loadFromLocalStorage();t("SET_CLIPBOARD",e),gt.loadFromServer().then(r=>{r.length>0&&(t("SET_CLIPBOARD",r),gt.saveToLocalStorage(r))}),window.addEventListener("storage",r=>{if(r.key==="clipboard"){const i=gt.loadFromLocalStorage();t("SET_CLIPBOARD",i)}})},setupSaveToServerFn({commit:t},e){gt.saveToServerFn=e},setupLoadFromServerFn({commit:t},e){gt.loadFromServerFn=e},addToClipboard({commit:t,state:e},r){if(!r)throw new Error("Item is missing");t("ADD_TO_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},pushState({commit:t,state:e},r){t("SET_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},removeFromClipboard({commit:t,state:e},r){t("REMOVE_FROM_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},clearClipboard({commit:t,state:e}){t("CLEAR_CLIPBOARD"),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)}}},zne="",Tee={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 Mee=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)])])},Dee=[],Aee=ie(Tee,Mee,Dee,!1,null,"d660c896",null,null);const YS=Aee.exports,ZS="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ib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43NDUtMjQgMjR2ODBjMCAxMy4yNTUgMTAuNzQ1IDI0IDI0IDI0em0tMjQtNDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0VjU2YzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR6bTI0IDI2NEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0di04MGMwLTEzLjI1NS0xMC43NDUtMjQtMjQtMjRIMjA1LjMzM2MtMTMuMjU1IDAtMjQgMTAuNzQ1LTI0IDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNHoiPjwvcGF0aD48L3N2Zz4=",Ene="",Oee=typeof window>"u"?global:window,zee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:oi,Sortable:zp},mixins:[Tc],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("Name"),key:"property"},{label:this.$t("Type"),key:"type",cb:t=>{switch(t){case"expression":return"Formula";case"javascript":return"JavaScript";default:return t}}}],monacoOptions:{automaticLayout:!0,lineNumbers:"off",minimap:!1},monacoEditor:null,errors:{},searchProperties:["property","type"]}},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"},modalSize(){return this.displayList?"lg":"xl"}},watch:{value(){this.value.forEach(t=>{this.numberItem++,t.id=this.numberItem,Object.hasOwn(t,"byPass")||(t.byPass=!1)}),this.current=this.value}},created(){Bt.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 Bt(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()},toggleBypass(t){this.current=this.current.map(e=>e.id===t?{...e,byPass:!e.byPass}:e),this.$emit("input",this.current)},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,byPass:!1})):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){Oee.ProcessMaker.confirmModal(this.$t("Are you sure you want to delete the calc ?"),this.$t("If you do, you won’t be able to recover the Calc configuration."),"",()=>{this.remove(t)})},remove(t){this.current=this.current.filter(e=>e.id!==t.id),this.$emit("input",this.current),this.displayTableList()},editorMounted(t){this.monacoEditor=t},getByPassIcon(t){return new URL(Object.assign({"../assets/icons/Bypass.svg":ZS,"../assets/icons/ErrorMessage.svg":KS,"../assets/icons/Unbypass.svg":_S,"../assets/icons/angle-double-right-solid.svg":$S,"../assets/icons/calendar-regular.svg":eP,"../assets/icons/caret-square-down-solid.svg":tP,"../assets/icons/check-square-solid.svg":rP,"../assets/icons/columns-solid.svg":iP,"../assets/icons/font-solid.svg":aP,"../assets/icons/list-ul-solid.svg":nP,"../assets/icons/paragraph-solid.svg":sP,"../assets/icons/share-square-solid.svg":oP,"../assets/icons/square-regular.svg":lP,"../assets/icons/th-list-solid.svg":uP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Eee=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{id:"computed-properties",size:e.modalSize,"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 border-0","no-close-on-backdrop":"","header-close-content":"×","data-cy":"calcs-modal"},on:{hidden:e.displayTableList},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Calculated Properties")))]),r("small",{directives:[{name:"show",rawName:"v-show",value:!e.displayList,expression:"!displayList"}],staticClass:"modal-subtitle my-2"},[e._v(" "+e._s(e.$t("Perform mathematical calculations offering quick, convenient, and accurate operations, enhancing user efficiency and usability."))+" ")])]},proxy:!0}])},[e.displayList?[r("Sortable",{staticClass:"mb-3",attrs:{fields:e.fields,items:e.current,"disable-key":"byPass","inline-edit":!1,"data-test-actions":{tableBox:{"data-cy":"calcs-table"},btnNew:{"data-cy":"calcs-add-property"},btnEdit:{"data-cy":"calcs-table-edit"},btnDelete:{"data-cy":"calcs-table-remove"}},searchProperties:e.searchProperties},on:{"item-edit":e.editProperty,"item-delete":e.deleteProperty,"add-page":e.displayFormProperty},scopedSlots:e._u([{key:"options",fn:function({item:i}){return[r("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{customClass:"bypass-btn-tooltip"},expression:"{ customClass: 'bypass-btn-tooltip' }"}],staticClass:"btn",attrs:{title:i.byPass?e.$t("Unbypass Calc"):e.$t("Bypass Calc"),"data-test":"calcs-bypass"},on:{click:function(a){return e.toggleBypass(i.id)}}},[r("img",{attrs:{src:e.getByPassIcon(i),alt:"Bypass",width:"24"}})]),r("div",{staticClass:"sortable-item-vr"})]}}],null,!1,1100542621)}),r("template",{slot:"modal-footer"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-close"},on:{click:function(i){return e.$refs.modal.hide()}}},[e._v(" "+e._s(e.$t("Done"))+" ")])])])]:[r("b-row",[r("b-col",[r("form-input",{ref:"property",staticClass:"mb-3 calcs-input",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"}})],1),r("b-col",[r("form-text-area",{ref:"name",staticClass:"mb-3 calcs-input",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"}})],1)],1),r("div",{staticClass:"form-group mb-3",staticStyle:{position:"relative"}},[r("div",{staticClass:"d-flex justify-content-between mb-1"},[r("label",{staticClass:"m-0"},[e._v(e._s(e.$t("Formula")+" *"))]),r("div",[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 fa-lg"})])])]),r("form-text-area",{directives:[{name:"show",rawName:"v-show",value:!e.isJS,expression:"!isJS"}],ref:"formula",staticClass:"calcs-input-formula",attrs:{rows:"5",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 text-uppercase",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 text-uppercase",attrs:{"data-cy":"calcs-button-save"},on:{click:e.validateData}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])]],2)},jee=[],Nee=ie(zee,Eee,jee,!1,null,"6d70559c",null,null);const Iee=Nee.exports,jne="",Lee={props:["value","cssErrors"],components:{MonacoEditor:oi},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 Fee=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":"×"},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)},Bee=[],Ree=ie(Lee,Fee,Bee,!1,null,"3824b29b",null,null);const Hee=Ree.exports,Nne="",Vee=typeof window>"u"?global:window,qee={name:"WatchersForm",components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,FormMultiSelect:$.FormMultiSelect,FormCheckbox:$.FormCheckbox,MonacoEditor:oi,DataMapping:kp,OutboundConfig:Ap,ScreenVariableSelector:wp},mixins:[Tc],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()){Vee.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=G.uniqueId(new Date().getTime()),this.config.byPass=!1),this.save()})},save(){this.$emit("save-form")},inputDataEditorMounted(t){this.inputDataEditor=t},scriptConfigEditorMounted(t){this.scriptConfigEditor=t}}};var Wee=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 text-uppercase",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 text-uppercase",attrs:{"data-cy":"watchers-button-save"},on:{click:e.validateDataAndSave}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])},Xee=[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"})])}],Jee=ie(qee,Wee,Xee,!1,null,"74e7876e",null,null);const cP=Jee.exports,Ine="",Uee={components:{BasicSearch:YS,FormInput:$.FormInput,FormTextArea:$.FormTextArea,Sortable:zp},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"},{label:this.$t("Watching Variable"),key:"watching"},{label:this.$t("Output Variable"),key:"output_variable"},{label:this.$t("Source"),key:"script.title"}],searchProperties:["name","output_variable","watching","script.title"]}},methods:{displayFormProperty(){this.$emit("display-form")},editProperty(t){this.$emit("edit-form",t)},deleteProperty(t){this.$emit("delete-form",t)},getByPassIcon(t){return new URL(Object.assign({"../assets/icons/Bypass.svg":ZS,"../assets/icons/ErrorMessage.svg":KS,"../assets/icons/Unbypass.svg":_S,"../assets/icons/angle-double-right-solid.svg":$S,"../assets/icons/calendar-regular.svg":eP,"../assets/icons/caret-square-down-solid.svg":tP,"../assets/icons/check-square-solid.svg":rP,"../assets/icons/columns-solid.svg":iP,"../assets/icons/font-solid.svg":aP,"../assets/icons/list-ul-solid.svg":nP,"../assets/icons/paragraph-solid.svg":sP,"../assets/icons/share-square-solid.svg":oP,"../assets/icons/square-regular.svg":lP,"../assets/icons/th-list-solid.svg":uP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Gee=function(){var e=this,r=e._self._c;return r("Sortable",{attrs:{fields:e.fields,items:e.value,"disable-key":"byPass","inline-edit":!1,"data-test-actions":{tableBox:{"data-cy":"watchers-table"},btnNew:{"data-cy":"watchers-add-watcher"},btnEdit:{"data-cy":"watchers-table-edit"},btnDelete:{"data-cy":"watchers-table-remove"}},searchProperties:e.searchProperties},on:{"item-edit":e.editProperty,"item-delete":e.deleteProperty,"add-page":e.displayFormProperty,ordered:function(i){return e.$emit("ordered",i)}},scopedSlots:e._u([{key:"options",fn:function({item:i}){return[r("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{customClass:"bypass-btn-tooltip"},expression:"{ customClass: 'bypass-btn-tooltip' }"}],staticClass:"btn",attrs:{title:i.byPass?e.$t("Unbypass Watcher"):e.$t("Bypass Watcher"),"data-test":"watchers-bypass"},on:{click:function(a){return a.preventDefault(),e.$emit("toggle-bypass",i.uid)}}},[r("img",{attrs:{src:e.getByPassIcon(i),alt:"Bypass",width:"24"}})]),r("div",{staticClass:"sortable-item-vr"})]}}])})},Qee=[],Yee=ie(Uee,Gee,Qee,!1,null,"cfbb5df9",null,null);const dP=Yee.exports,Lne="",fP=typeof window>"u"?global:window,Zee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:oi,WatchersList:dP,WatchersForm:cP},props:{value:{type:Array,required:!0}},data(){return{enableList:!0,current:[],add:{uid:"",name:"",variable:"",script_id:"",script_key:"",input_data:"",script_configuration:"",synchronous:!1,byPass:!1}}},computed:{modalSize(){return"xl"}},watch:{value:{handler(t){this.current=this.getValuesWithOutputVarsNames(t)}}},methods:{getValuesWithOutputVarsNames(t){return t.map(r=>{var a,n;const i={...r};if(Object.hasOwn(i,"byPass")||(i.byPass=!1),((n=(a=i==null?void 0:i.script)==null?void 0:a.id)==null?void 0:n.substr(0,11))==="data_source"){const s=JSON.parse(i.script_configuration),o=s!=null&&s.dataMapping?s.dataMapping.map(l=>l.key).join(", "):"",u=50;i.output_variable=o.length>u?`${o.substr(0,u)}...`:o}return i})},toggleBypass(t){this.current=this.current.map(e=>e.uid===t?{...e,byPass:!e.byPass}:e),this.$emit("input",this.current)},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",G.cloneDeep(t))},confirmRemoval(t){fP.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){fP.ProcessMaker.alert(t,"success")}}};var Kee=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:e.modalSize,id:"watchers-popup","hide-footer":"","header-close-content":"×","no-close-on-backdrop":"","data-cy":"watchers-modal"},on:{hidden:e.displayList},scopedSlots:e._u([{key:"modal-title",fn:function(){return[e._v(" "+e._s(e.$t("Watchers"))+" "),r("small",{staticClass:"d-block my-2 modal-subtitle"},[e._v(" "+e._s(e.$t("Manage your active watchers for this screen"))+" ")])]},proxy:!0}])},[e.enableList?[r("watchers-list",{on:{"display-form":e.displayForm,"edit-form":e.edit,"delete-form":e.confirmRemoval,"toggle-bypass":e.toggleBypass,ordered:function(i){return e.$emit("input",i)}},model:{value:e.current,callback:function(i){e.current=i},expression:"current"}}),r("div",{staticClass:"d-flex justify-content-end mt-3 mr-1"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-close"},on:{click:function(i){return e.$refs.modal.hide()}}},[e._v(" "+e._s(e.$t("Done"))+" ")])])])]:[r("required"),r("watchers-form",{attrs:{refs:"form",config:e.add},on:{"display-list":e.displayList,"save-form":e.save}})]],2)},_ee=[],$ee=ie(Zee,Kee,_ee,!1,null,"d5f54c66",null,null);const ete=$ee.exports,Fne="",tte={...en,FormMultiColumn:ju};function rte(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const ite={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",pc),t.component("FormImage",ns),t.component("FormAvatar",Mn),t.component("FormLoop",As),t.component("FormDynamicPanel",Ls),t.component("FormMultiColumn",ju),t.component("FormNestedScreen",Os),t.component("FormRecordList",Du),t.component("Loop",WS),t.component("DynamicPanel",XS),t.component("MultiColumn",JS),t.component("NewFormMultiColumn",gp),t.component("ScreenRenderer",$w),t.component("Task",qS),t.component("VueFormBuilder",jS),t.component("VueFormRenderer",Ci),t.component("DefaultLoadingSpinner",US),t.use($),t.component("FormButton",Yi),t.component("FileUpload",Tn),t.component("FileDownload",ho),t.component("FormAnalyticsChart",Es),t.component("FormMaskedInput",Zi),t.use(Hl),t.use(Nt),t.component("FormListTable",zs),t.component("LinkButton",js),t.component("CaseProgressBar",Fs),t.component("FormCollectionRecordControl",Ns),t.component("FormCollectionViewControl",Is);const e=new Nt.Store({modules:{globalErrorsModule:QS,undoRedoModule:Fu,clipboardModule:kee}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return rte(this).getDataReference(r,i)}}})}};function ate(t,e){t.defaults.adapter=wb(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new Ll({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}Q.AddLoopRow=pc,Q.AnalyticsSelector=CS,Q.BasicSearch=YS,Q.CaseProgressBar=Fs,Q.Clipboard=Cn,Q.CodeEditor=Op,Q.CollectionDesignerMode=oS,Q.CollectionDisplayMode=nS,Q.CollectionRecordsList=Ou,Q.CollectionSelectList=Cp,Q.ColorSelect=zu,Q.ColorSelectModern=lS,Q.ColorSelectRecord=zu,Q.ColumnSetup=uS,Q.ComputedProperties=Iee,Q.ContainerColumns=cS,Q.Currencies=dQ,Q.CurrentPageProperty=Pc,Q.CustomCSS=Hee,Q.DataFormatProperty=VS,Q.DataMapping=kp,Q.DataReference=Hh,Q.DataTypeBooleanProperty=U$,Q.DataTypeDateTimeProperty=HS,Q.DataTypeProperty=RS,Q.DataTypeWithoutDateProperty=J$,Q.DefaultLoadingSpinner=US,Q.DefaultValueEditor=Tp,Q.DeviceDetector=qh,Q.DeviceVisibility=wd,Q.DynamicPanel=XS,Q.DynamicPanelInspector=mS,Q.EditOption=dS,Q.EncryptedConfig=kS,Q.FileDownload=ho,Q.FileUpload=Tn,Q.FormAnalyticsChart=Es,Q.FormAvatar=Mn,Q.FormBuilderControls=G$,Q.FormButton=Yi,Q.FormCollectionRecordControl=Ns,Q.FormCollectionViewControl=Is,Q.FormDynamicPanel=Ls,Q.FormImage=ns,Q.FormInputMasked=Zi,Q.FormListTable=zs,Q.FormLoop=As,Q.FormMaskedInput=Zi,Q.FormMultiselect=Mp,Q.FormNestedScreen=Os,Q.FormRecordList=Du,Q.FormRecordListStatic=eS,Q.FormRequests=xp,Q.FormTasks=yp,Q.FormText=Au,Q.HasColorProperty=da,Q.ImageUpload=fS,Q.ImageVariable=pS,Q.InputVariable=Dp,Q.Json2Vue=Lb,Q.LabelSubmitButton=PS,Q.LabelSubmitButtonProperty=Lg,Q.LinkButton=js,Q.LoadingSubmitButton=SS,Q.LoadingSubmitButtonProperty=Ig,Q.Loop=WS,Q.LoopInspector=hS,Q.MultiColumn=JS,Q.MultipleUploadsCheckbox=zS,Q.MustacheHelper=ki,Q.NewFormMultiColumn=gp,Q.OptionsList=vS,Q.OutboundConfig=Ap,Q.PageSelect=gS,Q.RequiredCheckbox=OS,Q.ScreenBase=kd,Q.ScreenRendererError=mp,Q.ScreenSelector=bS,Q.SelectDataTypeMask=xS,Q.Task=qS,Q.Tooltip=xd,Q.ValidationMsg=yl,Q.ValidationSelect=wS,Q.VariableNameGenerator=AS,Q.VariablesToSubmit=TS,Q.VariablesToSubmitFilter=Cd,Q.VisibilityRule=Fg,Q.VueFormBuilder=jS,Q.VueFormRenderer=Ci,Q.WatchersForm=cP,Q.WatchersList=dP,Q.WatchersPopup=ete,Q.WatchersSynchronous=_w,Q.accordions=DS,Q.bgcolorProperty=Ji,Q.buttonLabelProperty=Ag,Q.buttonTypeEvent=jg,Q.buttonVariantStyleProperty=Pd,Q.canOpenJsonFile=KC,Q.collectionDataSource=aS,Q.colorProperty=Ui,Q.computedFields=Fh,Q.dataSourceValues=ai,Q.dataSources=Bs,Q.datatable=kc,Q.default=ite,Q.defaultValueProperty=Gn,Q.defaultValues=G0,Q.deviceVisibilityProperty=_5,Q.disabledProperty=Sd,Q.focusErrors=Tc,Q.formTypes=Rs,Q.formWatchers=cO,Q.getValidPath=_c,Q.globalErrorsModule=QS,Q.globalProperties=WK,Q.helperTextProperty=Da,Q.initializeScreenCache=ate,Q.inspector=MS,Q.javascriptReservedKeywords=gl,Q.keyNameProperty=Kt,Q.labelProperty=Ur,Q.linkVariantStyleProperty=Eg,Q.multiselectApi=Fb,Q.mustacheEvaluation=_d,Q.placeholderProperty=Un,Q.readonlyProperty=bl,Q.renderer=tte,Q.shouldElementBeVisible=Bb,Q.testing=Hb,Q.toggleStyleProperty=Og,Q.tooltipProperty=Ng,Q.validationRulesProperty=Gi,Q.validators=xl,Q.watchers=Bg,Object.defineProperties(Q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
381
|
+
}`,modifiers:{hover:!0,right:!0}}],key:o,staticClass:"gray-text",attrs:{"data-control":e.controls.indexOf(s),boundary:"viewport","data-cy":`controls-${s.component}`,disabled:!e.canDragControl(s)},on:{mousedown:function(u){return e.disableEnableDragControl(s,u)}}},[s.config&&s.config.icon?r("i",{class:s.config.icon}):e._e(),r("span",{staticClass:"svg-icon",staticStyle:{width:"12px",height:"12px"},domProps:{innerHTML:e._s(s.config.svg)}}),e._v(" "+e._s(e.$t(s.label))+" ")])}),1):e._e()],1)],1)]})],2)],1)],1),r("b-col",{ref:"screen-container",staticClass:"overflow-auto mh-100 p-0 d-flex flex-column position-relative",attrs:{id:"screen-container"}},[r("tabs-bar",{ref:"tabsBar",attrs:{pages:e.config,"is-multi-page":e.showToolbar,"show-clipboard":e.showClipboard},on:{"tab-opened":function(i){e.currentPage=i},"close-clipboard":e.closeClipboard},scopedSlots:e._u([{key:"tabs-start",fn:function(){return[e.showToolbar?r("pages-dropdown",{attrs:{data:e.sortedPages},on:{addPage:function(i){return e.$bvModal.show("addPageModal")},clickPage:e.onClick,seeAllPages:function(i){return e.$bvModal.show("openSortable")},clipboard:e.openClipboard}}):e._e()]},proxy:!0},{key:"default",fn:function({currentPage:i}){return[e.isClipboardPage(i)?r("b-button",{staticClass:"no-text-transform",attrs:{variant:"link"},on:{click:e.clearClipboard}},[e._v(" "+e._s(e.$t("Clear All"))+" ")]):e._e(),e.isCurrentPageEmpty(i)?r("div",{staticClass:"d-flex justify-content-center align-items-center drag-placeholder text-center position-absolute rounded mt-4 flex-column",attrs:{"data-cy":"screen-drop-zone"}},[r("svg",{attrs:{width:"81",height:"107",viewBox:"0 0 81 107",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M47.125 28.6562V0.5H5.71875C2.96523 0.5 0.75 2.71523 0.75 5.46875V101.531C0.75 104.285 2.96523 106.5 5.71875 106.5H75.2812C78.0348 106.5 80.25 104.285 80.25 101.531V33.625H52.0938C49.3609 33.625 47.125 31.3891 47.125 28.6562ZM60.375 77.5156C60.375 78.882 59.257 80 57.8906 80H23.1094C21.743 80 20.625 78.882 20.625 77.5156V75.8594C20.625 74.493 21.743 73.375 23.1094 73.375H57.8906C59.257 73.375 60.375 74.493 60.375 75.8594V77.5156ZM60.375 64.2656C60.375 65.632 59.257 66.75 57.8906 66.75H23.1094C21.743 66.75 20.625 65.632 20.625 64.2656V62.6094C20.625 61.243 21.743 60.125 23.1094 60.125H57.8906C59.257 60.125 60.375 61.243 60.375 62.6094V64.2656ZM60.375 49.3594V51.0156C60.375 52.382 59.257 53.5 57.8906 53.5H23.1094C21.743 53.5 20.625 52.382 20.625 51.0156V49.3594C20.625 47.993 21.743 46.875 23.1094 46.875H57.8906C59.257 46.875 60.375 47.993 60.375 49.3594ZM80.25 25.7371V27H53.75V0.5H55.0129C56.3379 0.5 57.6008 1.01758 58.5324 1.94922L78.8008 22.2383C79.7324 23.1699 80.25 24.4328 80.25 25.7371Z",fill:"#699CFF"}})]),r("h3",[e._v(e._s(e.$t("Place your controls here.")))]),r("p",[e._v(" "+e._s(e.$t("To begin creating a screen, drag and drop items from the Controls Menu on the left."))+" ")])]):e._e(),e.renderControls?r("draggable",e._b({key:e.editorContentKey,staticClass:"h-100",attrs:{"data-cy":"editor-content","ghost-class":"form-control-ghost",value:e.extendedPages[i].items},on:{input:e.updateConfig}},"draggable",{group:{name:"controls"},swapThreshold:.5},!1),e._l(e.extendedPages[i].items,function(a,n){return r("div",{key:n,staticClass:"control-item mt-4 mb-4",class:{selected:e.selected===a,hasError:e.hasError(a)},attrs:{selector:a.config.customCssSelector},on:{click:function(s){return e.inspect(a)}}},[a.container?r("div",{staticClass:"card container-lement",class:{"ai-section-card":e.isAiSection(a)},attrs:{"data-cy":"screen-element-container"},on:{click:function(s){return e.inspect(a)}}},[e.selected===a?r("div",{staticClass:"card-header form-element-header d-flex align-items-center",class:{pulse:e.isAiSection(a)&&e.aiPreview(a)}},[r("i",{staticClass:"fas fa-arrows-alt-v mr-1 text-muted"}),a.config.icon?r("i",{staticClass:"mr-2 ml-1",class:a.config.icon}):e._e(),e._v(" "+e._s(a.config.name||a.label||e.$t("Field Name"))+" "),!e.isClipboardPage(i)&&e.isInClipboard(e.extendedPages[i].items[n])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[!e.isClipboardPage(i)&&e.screenType==="form"?r("clipboard-button",{attrs:{index:n,config:a.config,isInClipboard:e.isInClipboard(e.extendedPages[i].items[n]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(s){return e.addToClipboard(e.extendedPages[i].items[n])},removeFromClipboard:function(s){return e.removeFromClipboard(e.extendedPages[i].items[n])}}}):e._e(),e.isAiSection(a)&&e.aiPreview(a)?r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{"data-test":"apply-ai-btn",title:e.$t("Apply Changes")},on:{click:function(s){return e.applyAiChanges(a)}}},[e._v(" "+e._s(e.$t("Apply Changes"))+" ")]):e._e(),e.isAiSection(a)&&e.aiPreview(a)?e._e():r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{"data-test":"copy-control-btn",title:e.$t("Copy Control")},on:{click:function(s){return e.duplicateItem(n)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{"data-test":"delete-control-btn",title:e.$t("Delete Control")},on:{click:function(s){return e.deleteItem(n)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])],1)],1):e._e(),r(a["editor-component"],{tag:"component",staticClass:"card-body",class:e.elementCssClass(a),attrs:{"validation-errors":e.validationErrors,selected:e.selected,config:a.config,"ai-element":a,"screen-type":e.screenType},on:{inspect:e.inspect,"update-state":e.updateState},model:{value:a.items,callback:function(s){e.$set(a,"items",s)},expression:"element.items"}})],1):r("div",{staticClass:"card",attrs:{"data-cy":"screen-element-container"}},[e.selected===a?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"}),a.config.icon?r("i",{staticClass:"mr-2 ml-1",class:a.config.icon}):e._e(),e._v(" "+e._s(a.config.name||e.$t("Variable Name"))+" "),!e.isClipboardPage(i)&&e.isInClipboard(e.extendedPages[i].items[n])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[!e.isClipboardPage(i)&&e.screenType==="form"?r("clipboard-button",{attrs:{index:n,config:a.config,isInClipboard:e.isInClipboard(e.extendedPages[i].items[n]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(s){return e.addToClipboard(e.extendedPages[i].items[n])},removeFromClipboard:function(s){return e.removeFromClipboard(e.extendedPages[i].items[n])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary mr-2",attrs:{title:e.$t("Copy Control"),"data-test":"copy-control-btn"},on:{click:function(s){return e.duplicateItem(n)}}},[r("i",{staticClass:"fas fa-copy text-light"})]),r("button",{staticClass:"btn btn-sm btn-danger",attrs:{title:e.$t("Delete Control")},on:{click:function(s){return e.deleteItem(n)}}},[r("i",{staticClass:"far fa-trash-alt text-light"})])],1)],1):e._e(),r(a["editor-component"],e._b({tag:"component",staticClass:"card-body m-0 pb-4 pt-4",class:[e.elementCssClass(a),{"prevent-interaction":!a.config.interactive}],attrs:{tabindex:a.config.interactive?0:-1,"screen-type":e.screenType},on:{input:function(s){a.config.interactive&&(a.config.content=s)}},nativeOn:{focusout:function(s){return e.updateState.apply(null,arguments)}}},"component",a.config,!1))],1)])}),0):e._e(),e.isCurrentPageEmpty(i)?e._e():r("div",{attrs:{"data-cy":"screen-drop-zone"}},[e._v(" ")])]}}])})],1),e.renderControls?r("b-col",{staticClass:"overflow-auto mh-100 p-0 d-flex flex-column position-relative inspector-column"},[r("b-card",{staticClass:"p-0 h-100 border-top-0 border-bottom-0 border-right-0 rounded-0 inspector-column",attrs:{"no-body":""}},[e.showTemplatesPanel?r("div",[r("b-card-body",{staticClass:"p-2 h-100 overflow-auto screen-templates-column"},[r("screen-templates",{ref:"screenTemplates",attrs:{"shared-templates-data":e.sharedTemplatesData,"screen-id":e.screen.id,"screen-type":e.screen.type,currentScreenPage:e.currentPage},on:{"close-templates-panel":e.closeTemplatesPanel}})],1)],1):r("div",[r("b-card-body",{staticClass:"p-0 h-100 overflow-auto"},[e._l(e.accordions,function(i){return[e.getInspectorFields(i)&&e.getInspectorFields(i).length>0?r("b-button",{key:`${e.accordionName(i)}-button`,staticClass:"text-left card-header d-flex align-items-center w-100 outline-0 text-capitalize shadow-none",attrs:{variant:"outline","data-cy":`accordion-${e.accordionName(i).replace(" ","")}`,"accordion-name":`accordion-${e.accordionName(i).replace(" ","")}`,"is-open":i.open?"1":"0"},on:{click:function(a){return e.toggleAccordion(i)}}},[r("i",{staticClass:"fas fa-cog mr-2"}),e._v(" "+e._s(e.$t(e.accordionName(i)))+" "),r("i",{staticClass:"fas fa-angle-down ml-auto",class:{"fas fa-angle-right":!i.open}})]):e._e(),r("b-collapse",{key:`${e.accordionName(i)}-collapse`,attrs:{id:e.accordionName(i)},model:{value:i.open,callback:function(a){e.$set(i,"open",a)},expression:"accordion.open"}},e._l(e.getInspectorFields(i),function(a,n){return e.shouldShow(a,i)?r(a.type,e._b({key:n,tag:"component",staticClass:"border-bottom m-0 p-4",attrs:{"data-cy":"inspector-"+(a.field||a.config.name),"field-name":a.field,"field-accordion":`accordion-${e.accordionName(i).replace(" ","")}`,builder:e.builder,"form-config":e.config,"screen-type":e.screenType,"current-page":e.currentPage,"selected-control":e.selected},on:{"update-state":e.updateState,setName:function(s){e.inspection.config.name=s}},nativeOn:{focusout:function(s){return e.updateState.apply(null,arguments)}},model:{value:e.inspection.config[a.field],callback:function(s){e.$set(e.inspection.config,a.field,s)},expression:"inspection.config[item.field]"}},"component",a.config,!1)):e._e()}),1)]})],2)],1)])],1):e._e(),r("b-modal",{ref:"openSortable",attrs:{id:"openSortable","header-close-content":"×",role:"dialog",size:"lg",title:e.$t("Edit Pages"),"ok-title":e.$t("DONE"),"ok-only":"","ok-variant":"secondary","header-class":"modal-header-custom"},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Edit Pages")))]),r("span",{staticClass:"modal-subtitle"},[e._v(e._s(e.$t("Change pages order and name")))])]},proxy:!0},{key:"modal-header-close",fn:function({close:i}){return[r("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"}},[e._v("×")])]}}])},[r("Sortable",{attrs:{fields:e.fields,items:e.config,"search-properties":e.searchProperties},on:{"item-edit":()=>{},"item-delete":e.confirmDelete,"add-page":function(i){return e.$bvModal.show("addPageModal")}}})],1),r("b-modal",{ref:"addPageModal",attrs:{id:"addPageModal","header-class":"pb-2",size:"lg","ok-title":e.$t("SAVE"),"cancel-title":e.$t("CANCEL"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"×","data-cy":"add-page-modal","ok-disabled":!e.addPageName||!!e.checkPageName(e.addPageName)},on:{ok:e.addPage,show:function(i){e.addPageName="",e.showAddPageValidations=!1}},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Create New Page")))]),r("small",{staticClass:"modal-subtitle mb-n2"},[e._v(e._s(e.$t("Create a new page in your screen")))])]},proxy:!0}])},[r("form-input",{ref:"addPageInput",attrs:{name:e.$t("Page Name"),label:e.$t("Page Name")+" *",helper:e.$t("The name of the new page to add"),error:e.checkPageName(e.addPageName),"data-cy":"add-page-name","aria-required":"true"},model:{value:e.addPageName,callback:function(i){e.addPageName=i},expression:"addPageName"}})],1),r("b-modal",{ref:"editPageModal",attrs:{title:e.$t("Edit Page Title"),"ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"×"},on:{ok:e.editPage}},[r("required"),r("form-input",{ref:"editPageInput",attrs:{name:e.$t("Page Name"),label:e.$t("Page Name")+" *",helper:e.$t("The new name of the page"),validation:"required",error:e.checkPageName(e.editPageName),required:"","aria-required":"true"},model:{value:e.editPageName,callback:function(i){e.editPageName=i},expression:"editPageName"}})],1),r("b-modal",{ref:"confirm",attrs:{title:e.$t("Caution!"),"ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),"cancel-variant":"btn btn-outline-secondary","ok-variant":"btn btn-secondary ml-2","header-close-content":"×"},on:{ok:e.deletePage,cancel:e.hideConfirmModal}},[r("p",[e._v(e._s(e.confirmMessage))]),r("div",{attrs:{slot:"modal-ok"},slot:"modal-ok"},[e._v(e._s(e.$t("Delete")))])])],1)},A$=[],O$=ie(M$,D$,A$,!1,null,"0db10927",null,null);const jS=O$.exports,z$=1,E$={name:"FormMultiColumn",mixins:[da,Bb,_c],props:["value","selected","name","config","transientData","formConfig"],components:{draggable:fi,FormInput:Zi,FormSelectList:$.FormSelectList,FormTextArea:$.FormTextArea,FormCheckbox:$.FormCheckbox,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,...en},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=z$;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 j$=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)])},N$=[],I$=ie(E$,j$,N$,!1,null,null,null,null);const ju=I$.exports,L$={type:"CodeEditor",field:"handler",config:{label:"Click Handler",helper:"The handler is a JavaScript function that will be executed when the button is clicked.",dataFeature:"i1177"}},F$={type:"FormCheckbox",field:"handlerSecurityEnabled",config:{label:"Secure Handler Execution",toggle:!0,helper:"When enabled, the handler runs inside a sandboxed worker. Disable to allow full JavaScript access."}},NS={value:"string",content:"Text"},IS={value:"int",content:"Integer"},B$={value:"currency",content:"Currency"},R$={value:"password",content:"Password"},H$={value:"percentage",content:"Percentage"},LS={value:"float",content:"Decimal"},FS={value:"datetime",content:"Datetime"},BS={value:"date",content:"Date"},V$={value:"boolean",content:"Boolean"},q$=[NS,IS,B$,H$,LS,FS,BS,R$],W$=[NS,IS,LS];function Nu(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 X$(){return{type:"SelectDataTypeMask",field:"dataMask",config:{label:"Data Format",name:"Data Format",helper:"The data format for the selected type."}}}const RS=Nu(q$),J$=Nu(W$),U$=Nu([V$]),HS=Nu([BS,FS]),VS=X$(),G$=[{editorComponent:$.FormHtmlEditor,editorBinding:"FormHtmlEditor",rendererComponent:$.FormHtmlEditor,rendererBinding:"FormHtmlEditor",control:{popoverContent:"Use a Rich Text Editor to add HTML-formatted",order:2,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:$.FormInput,builderBinding:"FormInput",rendererComponent:Zi,rendererBinding:"FormMaskedInput",control:{popoverContent:"Collect a string of text and format it as one of several data types",order:2,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:[Kt,Ur,RS,VS,Gi,Un,Da,bl,Ui,Ji,Gn]}},{editorComponent:$.FormTextArea,editorBinding:"FormTextArea",rendererComponent:$.FormTextArea,rendererBinding:"FormTextArea",control:{popoverContent:"Collect a multi-line string of text, to allow for extensive, richly formatted responses",order:5,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:[Kt,Ur,Un,Da,{type:"FormCheckbox",field:"richtext",config:{label:"Rich Text",helper:""}},Gi,{type:"FormInput",field:"rows",config:{label:"Rows",helper:"The number of rows to provide for input",validation:"integer"}},bl,Ui,Ji,Gn]}},{editorComponent:$.FormSelectList,editorBinding:"FormSelectList",rendererComponent:$.FormSelectList,rendererBinding:"FormSelectList",control:{popoverContent:"Collect options from a list, as radio butttons or dropdowns",order:3,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:ai.provideData,jsonData:"",pmqlQuery:"",dataName:"response",renderAs:"dropdown",allowMultiSelect:!1,selectedOptions:[],optionsList:[],optionsListExtra:[],key:"value",value:"content",ariaLabel:"ariaLabel",valueTypeReturned:"single"},helper:null},inspector:[Kt,Ur,Un,Gi,Da,{type:"OptionsList",field:"options",config:{}},Ui,Ji,Gn,bl]}},{editorComponent:$.FormCheckbox,editorBinding:"FormCheckbox",rendererComponent:$.FormCheckbox,rendererBinding:"FormCheckbox",control:{popoverContent:"Add a checkbox or toggle for true/false responses",order:7,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:[Kt,Ur,Da,Gi,{type:"FormCheckbox",field:"initiallyChecked",config:{label:"Checked by default",helper:"Should the checkbox be checked by default"}},Ui,Ji,Og,Sd]}},{editorComponent:$.FormDatePicker,editorBinding:"FormDatePicker",rendererComponent:$.FormDatePicker,rendererBinding:"FormDatePicker",control:{popoverContent:"Collect a date or date/time",order:6,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"}},Kt,Ur,HS,Gi,Un,Da,Ui,Ji,Sd,Gn]}},{editorComponent:Yi,editorBinding:"FormButton",rendererComponent:Yi,rendererBinding:"FormButton",control:{popoverContent:"Add special buttons that link between subpages within this Form",order:2,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"}},Ag,Pd]}},{editorComponent:ju,editorBinding:"FormMultiColumn",rendererComponent:ju,rendererBinding:"FormMultiColumn",control:{popoverContent:"Organize and group your content in columns",order:3,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"}},Ui,Ji]}},{editorComponent:As,editorBinding:"FormLoop",rendererComponent:As,rendererBinding:"FormLoop",control:{popoverContent:"Add a repeatable section of content",order:6,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:Ls,editorBinding:"FormDynamicPanel",rendererComponent:Ls,rendererBinding:"FormDynamicPanel",control:{popoverContent:"Add a dynamic panel component",order:6,group:"Content Fields",label:"Dynamic Panel",component:"FormDynamicPanel","editor-component":"DynamicPanel","editor-control":"DynamicPanel",container:!0,items:[],config:{name:"",icon:"fas fa-th-large",settings:{type:"new",varname:"dynamic_panel",indexName:"",add:!1,emptyStateMessage:"No data available. Please configure an Index Name for this dynamic panel."}},inspector:[{type:"DynamicPanelInspector",field:"settings",config:{}}]}},{editorComponent:Au,editorBinding:"FormText",rendererComponent:Du,rendererBinding:"FormRecordList",control:{popoverContent:"Format content in a table structure and allow for adding rows",order:5,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:ai.provideData,jsonData:""},form:"",source:{collectionFields:[],collectionFieldsColumns:[],pmql:null,sourceOptions:"Variable",variableStore:null,dataSelectionOptions:"no-selection",singleField:null}},inspector:[Kt,{type:"FormInput",field:"label",config:{label:"List Label",helper:"The label describes this record list"}},{type:"collectionDataSource",field:"source",config:{label:"Source of Record List",helper:"A record list can display the data of a defined variable or a collection"}},{type:"FormCheckbox",field:"editable",config:{label:"Editable?",helper:"Should records be editable/removable and can new records be added"},if:"hideControl"},{type:"ColumnSetup",field:"fields",config:{label:"Columns",helper:"List of columns to display in the record list"}},{type:"FormMultiselect",field:"paginationOption",config:{icon:"fas",label:"Pagination",options:[{content:"No Pagination (show all)",value:0},{content:"5 items per page",value:5},{content:"10 items per page",value:10},{content:"15 items per page",value:15},{content:"25 items per page",value:25},{content:"50 items per page",value:50}]}},{type:"PageSelect",field:"form",config:{label:"Record Form",helper:"The form to use for adding/editing records"},if:"hideControl"},{type:"collectionDesignerMode",field:"designerMode",config:{label:"Table Style",helper:""}},Z5,Y5,Q5]}},{editorComponent:ns,editorBinding:"FormImage",rendererComponent:ns,rendererBinding:"FormImage",control:{popoverContent:"Upload an image to your screen",order:4,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:Mn,editorBinding:"FormAvatar",rendererComponent:Mn,rendererBinding:"FormAvatar",control:{popoverContent:"User avatar",order:4,group:"Dashboards",label:"User Avatar",component:"FormAvatar","editor-component":"FormAvatar","editor-control":"FormAvatar",config:{label:"User Avatar",icon:"fas fa-user-circle",variant:"primary",event:"submit",name:null,value:null,renderImage:!1},inspector:[{type:"FormInput",field:"height",config:{label:"Height",helper:"Avatar height",type:"number"}},{type:"FormInput",field:"width",config:{label:"Width",helper:"Avatar width",type:"number"}}]}},{editorComponent:Yi,editorBinding:"FormSubmit",rendererComponent:Yi,rendererBinding:"FormButton",control:{popoverContent:"Add an action to submit your form or update a field",order:4,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:{},handler:"",handlerSecurityEnabled:!0},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:"+gl}},jg,L$,F$,Ig,Lg,Ng,{type:"FormInput",field:"fieldValue",config:{label:"Value",helper:"The value being submitted"}},Pd,{type:"VariablesToSubmit",field:"variablesToSubmit",config:{label:"Variables to Submit",helper:"Select which variables should be included in the submission payload. Only variables from the parent (top-level) request can be used."}}]}},{editorComponent:Os,editorBinding:"FormNestedScreen",rendererComponent:Os,rendererBinding:"FormNestedScreen",control:{popoverContent:"Add and reuse another Form within this Form",order:7,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:Tn,rendererBinding:"FileUpload",builderComponent:Tn,builderBinding:"FileUpload",control:{group:"Files",popoverContent:"Collect files uploaded into the Form",order:2,label:"File Upload",component:"FileUpload","editor-component":"FileUpload","editor-control":"FileUpload",config:{label:"New File Upload",icon:"fas fa-file-upload"},inspector:[Kt,{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:Au,rendererBinding:"FormText",builderComponent:ho,builderBinding:"FileDownload",control:{popoverContent:"Offer a File download",order:3,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:$.BFormComponent,rendererBinding:"BFormComponent",builderComponent:$.BFormComponent,builderBinding:"BFormComponent",control:{popoverContent:"Add one of several Bootstrap Vue components",order:2,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:[Kt,Ur,{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:"{}"}},Gi]}},{rendererComponent:$.BWrapperComponent,rendererBinding:"BWrapperComponent",builderComponent:$.BWrapperComponent,builderBinding:"BWrapperComponent",control:{popoverContent:"Wrap an existing subpage within this Form into a Bootstrap Vue component",order:3,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:[Kt,Ur,{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:zs,editorBinding:"FormListTable",rendererComponent:zs,rendererBinding:"FormListTable",control:{popoverContent:"Create List Table",order:6.5,group:"Dashboards",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 Cases"},{value:"Start New Request",content:"Start New Case"}]}}]}},{editorComponent:Es,editorBinding:"FormAnalyticsChart",rendererComponent:Es,rendererBinding:"FormAnalyticsChart",control:{popoverContent:"Add a chart from the Analytics Reports",order:7,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"}}]}},{editorComponent:js,editorBinding:"LinkButton",rendererComponent:js,rendererBinding:"LinkButton",control:{popoverContent:"Add a URL where this link should redirect",group:"Content Fields",order:7,label:"Link URL",component:"LinkButton","editor-component":"LinkButton","editor-control":"LinkButton",config:{label:"New Link",icon:"fas fa-link",variant:"primary",variantStyle:"link",event:"link",value:"link"},inspector:[{type:"FormInput",field:"label",config:{label:"Label",helper:"The label describes the link's text"}},{type:"FormInput",field:"linkUrl",config:{label:"Link URL",helper:"Type here the URL link. Mustache syntax is supported."}},K5,Eg]}},{control:{popoverContent:"Drag and paste copied elements to your desired location.",order:1,group:"Clipboard",label:"Drag & Paste",component:"Clipboard",config:{icon:"fa fa-clipboard"},inspector:[]}},{editorComponent:Ns,editorBinding:"FormCollectionRecordControl",rendererComponent:Ns,rendererBinding:"FormCollectionRecordControl",control:{popoverContent:"Create a Collection Record Control",order:7,group:"Content Fields",label:"Collection Record Control",component:"FormCollectionRecordControl","editor-component":"FormCollectionRecordControl","editor-control":"FormCollectionRecordControl",config:{name:"Collection Record Control",icon:"fas fa-database",label:"Collection Record Control",collectionmode:{modeId:"Edit",submitCollectionCheck:!0}},inspector:[{type:"collectionRecordsList",field:"collection",config:{label:"Collection Name",helper:"Select a collection",value:""}},{type:"FormInput",field:"record",config:{label:"Record ID",helper:"Supports Mustache Variable and the Collection Record",value:""}},{type:"collectionDisplayMode",field:"collectionmode",config:{label:"Mode",options:[{value:"Edit",text:"Edit"},{value:"View",text:"View"}]}}]}},{editorComponent:Is,editorBinding:"FormCollectionViewControl",rendererComponent:Is,rendererBinding:"FormCollectionViewControl",control:{popoverContent:"Create a Collection View Control",order:7,group:"Content Fields",label:"Collection Record View",component:"FormCollectionViewControl","editor-component":"FormCollectionViewControl","editor-control":"FormCollectionViewControl",config:{name:"Collection View Control",icon:"fas fa-database",label:"Collection View Control"},inspector:[{type:"collectionRecordsList",field:"collection",config:{label:"Collection Name",helper:"Select a collection",value:""}},{type:"FormInput",field:"record",config:{label:"Record ID",helper:"Supports Mustache Variable and the Collection Record",value:""}}]}},{editorComponent:Fs,editorBinding:"CaseProgressBar",rendererComponent:Fs,rendererBinding:"CaseProgressBar",control:{popoverContent:"Add a progress bar to show the status of a case",order:7,group:"Dashboards",label:"Case Progress Bar",component:"CaseProgressBar","editor-component":"CaseProgressBar","editor-control":"CaseProgressBar",config:{label:"New Case Progress Bar",icon:"fas fa-chart-bar",variant:"primary",event:"submit",name:null,fieldValue:null,tooltip:{}},inspector:[]}}],Q$="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgxIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MSAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04NS4wNTYyIDczLjg4NkM4NS4wNTYyIDczLjg4NiAxMTUuMDggOTYuNjcgMTYwLjcyNCA1NC4wNjhDMjAxLjI2IDE2LjIzNDMgMjM0LjM1OSA3NS45Mjc1IDIzNC41OSAxMDQuNTEzQzIzNC44OSAxNDEuNTQzIDE5NC4wNTQgMTcxLjE3MyAyMTMuODcyIDE5NS40OTVDMjMzLjY5IDIxOS44MTcgMTc0LjU3IDI1OS45ODEgMTQyLjcwOCAyMjUuMjIyQzEwMy4wNzIgMTgxLjk4MyA5Mi4zMzQ1IDIxNy4xMTQgNjkuNzQyNSAyMTcuMTE0QzUzLjUyNzggMjE3LjExNCAyMC4yMzc2IDE3Ni44MjUgNDIuNzE4MSAxNDYuODUxQzYxLjYzNTIgMTIxLjYyOSA1MS4zMTgyIDExMy4yNTggNDYuMzIyIDEwNC41MTNDMzkuMTE0OSA5MS45MDIxIDU2LjIzMDQgNTcuNjcxNSA4NS4wNTYyIDczLjg4NloiIGZpbGw9IiNERUVFRkEiLz4KPHBhdGggZD0iTTIwNS41OTIgMTI0LjIzNUMyMDcuMjA2IDEyNC44MzUgMjA4Ljk2OSAxMjQuODc1IDIxMC42NDcgMTI0LjQ4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ggMTgyLjYyOSAxNDYuMDU1IDE4Mi40NTggMTQ2LjA2NCAxODIuMjg3TDE0Ni40OTQgMTY5LjkwNUMxNDYuNTAzIDE2OS41NzEgMTQ2LjYzNyAxNjkuMjUzIDE0Ni44NyAxNjkuMDE0QzE0Ny4xMDMgMTY4Ljc3NSAxNDcuNDE3IDE2OC42MzMgMTQ3Ljc1IDE2OC42MTVWMTY4LjYxNVoiIGZpbGw9IiM1MkE1RUMiLz4KPHBhdGggZD0iTTE1NC4zMjIgMTYzLjMxN0MxNTUuMTc0IDE2Mi42OTEgMTU2LjQ2MyAxNjMuMDQyIDE1Ny4yNDMgMTY0LjExMkwxNzEuMTAzIDE4My4xMUMxNzEuOTMxIDE4NC4yNDUgMTcxLjg2NyAxODUuNzQ0IDE3MC45NjMgMTg2LjQwOEwxNjkuNzAzIDE4Ny4zMzNDMTY4Ljc5OSAxODcuOTk3IDE2Ny40MTggMTg3LjU1OCAxNjYuNjY2IDE4Ni4zNjhMMTU0LjA2NSAxNjYuNDQ0QzE1My4zNTcgMTY1LjMyMyAxNTMuNDcgMTYzLjk0MyAxNTQuMzIyIDE2My4zMTdaIiBmaWxsPSIjNTJBNUVDIi8+Cjwvc3ZnPgo=",kne="",Y$={props:["instanceId"],data(){return{title:"We're Sorry",message:"An error has occurred. Please try again. If the problem persists, please contact your administrator.",label:"View error details"}},methods:{redirectToError(){this.instanceId&&(window.location.href=`/requests/${this.instanceId}`)}}};var Z$=function(){var e=this,r=e._self._c;return r("div",{staticClass:"simple-error-message-main"},[e._m(0),r("p",[r("b-button",{attrs:{variant:"primary"},on:{click:e.redirectToError}},[e._v(e._s(e.$t(e.label)))])],1),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:Q$}})])}],_$=ie(Y$,Z$,K$,!1,null,null,null,null);const $$=_$.exports,Tne="",eee={components:{simpleErrorMessage:$$,VueFormRenderer:Ci},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},screenVersion:{type:Number,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},alwaysAllowEditing:{type:Boolean,default:!1},disableInterstitial:{type:Boolean,default:!1},waitLoadingListeners:{type:Boolean,default:!1},isWebEntry:{type:Boolean,default:!1}},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,loadingTask:!1,loadingListeners:this.waitLoadingListeners,isSelfService:!1}},watch:{initialScreenId:{handler(){this.screenId=this.initialScreenId}},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)}},requestId:{handler(){this.requestId?(this.setMetaValue(),this.initSocketListeners()):this.unsubscribeSocketListeners()}},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=G.get(this.screen,"_interstitial",!1);let e=G.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 G.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=null,setTimeout(()=>{this.renderComponent="simpleErrorMessage"},0)},loadScreen(t){this.disabled=!0;let e="?include=nested";this.requestId&&(e+="&request_id="+this.requestId),this.$dataProvider.getScreen(t,e).then(r=>{this.screen=r.data,this.disabled=!1})},reload(){this.taskId?this.loadTask():this.loadNextAssignedTask()},loadTask(t=!1){if(!this.taskId)return;let e=`/${this.taskId}?include=data,user,draft,requestor,processRequest,component,screen,requestData,loopContext,bpmnTagName,interstitial,definition,nested,userRequestPermission,elementDestination`;return this.screenVersion&&(e+=`&screen_version=${this.screenVersion}`),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(e).then(r=>{if(this.task=r.data,this.linkTask(t),this.checkTaskStatus(),window.PM4ConfigOverrides&&window.PM4ConfigOverrides.getScreenEndpoint&&window.PM4ConfigOverrides.getScreenEndpoint.includes("tasks/")){const i=window.PM4ConfigOverrides.getScreenEndpoint.split("/");i[1]=this.task.id,window.PM4ConfigOverrides.getScreenEndpoint=i.join("/")}}).catch(()=>{this.hasErrors=!0}).finally(()=>{this.loadingTask=!1})})},linkTask(t){this.nodeId=this.task.element_id,this.listenForParentChanges(),this.task.process_request.status==="COMPLETED"&&(this.taskPreview||(this.$emit("completed",this.task.process_request.id),t&&window.ProcessMaker.apiClient.get(`/requests/${this.requestId}/end-event-destination`).then(e=>{var r,i;if(!((i=(r=e.data)==null?void 0:r.data)!=null&&i.endEventDestination)){window.location.href=`/requests/${this.requestId}`;return}this.processCompletedRedirect(e.data.data,this.userId,this.requestId)}))),this.taskPreview&&this.task.status==="CLOSED"&&(this.task.interstitial_screen._interstitial=!1,this.alwaysAllowEditing||(this.task.screen.config=this.disableForm(this.task.screen.config)),this.screen=this.task.screen)},prepareTask(){(!this.loadingButton||this.task.status==="ACTIVE")&&(this.resetScreenState(),this.requestData=G.get(this.task,"request_data",{}),this.loopContext=G.get(this.task,"loop_context",""),this.task.draft&&(this.requestData=G.merge({},this.requestData,this.task.draft.data)),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},pageUpdate(){this.$emit("updated-page-core")},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()},setSelfService(){this.$nextTick(()=>{window.ProcessMaker.isSelfService?this.isSelfService=!0:this.isSelfService=!1})},closeTask(t=null){this.hasErrors&&this.emitError(),this.shouldLoadNextTask()?this.loadNextAssignedTask(t):this.task.allow_interstitial?this.showInterstitial(t):this.taskPreview||this.emitClosedEvent()},shouldLoadNextTask(){return this.task.process_request.status==="COMPLETED"||this.loadingButton},showInterstitial(t){this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen,this.loadNextAssignedTask(t)},emitError(){this.$emit("error",this.requestId)},async emitClosedEvent(){var t;this.$emit("closed",(t=this.task)==null?void 0:t.id,await this.getDestinationUrl())},async getDestinationUrl(){const{elementDestination:t,allow_interstitial:e}=this.task||{};if(!t)return null;if(t.type==="taskSource")try{const a={processRequestId:this.requestId,status:"ACTIVE",userId:this.userId},s=(await this.retryApiCall(()=>this.getTasks(a))).data.data[0];return e&&(s==null?void 0:s.user_id)===this.userId?`/tasks/${s.id}/edit`:this.getSessionRedirectUrl()}catch{return null}const r=t.value;return r?(sessionStorage.setItem("sessionUrlActionBlocker",document.referrer),r):sessionStorage.getItem("elementDestinationURL")||null},getSessionRedirectUrl(){const t=sessionStorage.getItem("sessionUrlSelfService");return t?(sessionStorage.removeItem("sessionUrlSelfService"),t):document.referrer||"/tasks"},loadNextAssignedTask(t=null){if(t||(t=this.requestId),!this.userId)return;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(this.$emit("load-data-task",i),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,this.loadTask()}else this.parentRequest&&["COMPLETED","CLOSED"].includes(this.task.process_request.status)&&this.$emit("completed",this.getAllowedRequestId());this.disabled=!1})},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},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t=null,e=!1,r=null){var a,n;if(this.disabled)return;this.disabled=!0;const i=t&&typeof t=="object"?t:this.requestData||{};t&&typeof t=="object"&&this.onUpdate(Object.assign({},this.requestData,t)),e?this.loadingButton=!0:this.loadingButton=!1,this.$emit("submit",this.task,i,e,r),(a=this.task)!=null&&a.allow_interstitial&&!this.loadingButton&&!this.disableInterstitial&&(this.task.interstitial_screen._interstitial=!0,this.screen=this.task.interstitial_screen),((n=this.task)==null?void 0:n.bpmn_tag_name)==="manualTask"&&(this.checkTaskStatus(),this.reload())},onUpdate(t){this.$emit("input",t),this.setSelfService()},activityAssigned(){},processCompleted(t=null){let e;this.parentRequest&&(e=this.getAllowedRequestId(),this.$emit("completed",e))},async retryApiCall(t,e=3,r=1e3){for(let i=0;i<e;i++)try{return await t()}catch(a){if(i===e-1)throw a;await new Promise(n=>{setTimeout(n,r)})}},getNextRequest(t,e){return window.ProcessMaker.apiClient.post(`/process_events/${t}?event=${e}`,{})},getTasks(t){const e={user_id:this.userId,process_request_id:t.processRequestId,page:t.page||1,per_page:t.perPage||1,status:t.status},r=new URLSearchParams(e).toString();return this.$dataProvider.getTasks(`?${r}`)},parseJsonSafely(t){try{return JSON.parse(t)}catch(e){return console.error("Invalid JSON string:",e),null}},async processCompletedRedirect(t,e,r){if(this.isWebEntry){this.$emit("completed",r);return}try{const i=this.resolveDestinationUrl(t);if(i){window.location.href=i;return}await this.handleNextRequestRedirection(t,e,r)}catch(i){console.error("Error processing completed redirect:",i),this.$emit("completed",r)}},resolveDestinationUrl(t){return t.endEventDestination.type!=="anotherProcess"?t.endEventDestination.value||`/requests/${this.requestId}`:null},async handleNextRequestRedirection(t,e,r){const i=await this.fetchNextRequest(t.endEventDestination),a=await this.fetchFirstTask(i);(a==null?void 0:a.user_id)===e?this.redirectToTask(a.id):this.redirectToRequest(r)},async fetchNextRequest(t){const e=this.parseJsonSafely(t.value);return await this.retryApiCall(()=>this.getNextRequest(e.processId,e.startEvent))},async fetchFirstTask(t){const e={processRequestId:t.data.id,status:"ACTIVE",page:1,perPage:1};return(await this.retryApiCall(()=>this.getTasks(e))).data.data[0]||null},getAllowedRequestId(){const e=(this.task.user_request_permission||[]).find(i=>i.process_request_id===this.parentRequest);return e&&e.allowed?this.parentRequest:this.requestId},redirectToTask(t){this.$emit("redirect",t)},redirectToRequest(t){window.location.href=`/requests/${t}`},initSocketListeners(){this.addProcessUpdateListener(),this.addRedirectListener(),this.loadingListeners=!1,this.taskId||this.reload()},addProcessUpdateListener(){this.addSocketListener(`updated-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".ProcessUpdated",t=>this.handleProcessUpdate(t))},handleProcessUpdate(t){if(!this.task){this.reload();return}const{event:e,elementDestination:r,tokenId:i}=t;e==="ACTIVITY_COMPLETED"&&this.task.id===i&&r&&(this.task.elementDestination=r,this.task.allow_interstitial=r.type==="displayNextAssignedTask"),e==="ACTIVITY_EXCEPTION"&&(this.$emit("error",this.requestId),window.location.href=`/requests/${this.requestId}`)},addRedirectListener(){this.addSocketListener(`redirect-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.requestId}`,".RedirectTo",t=>this.handleRedirect(t))},handleRedirect(t){var e,r;if(!((r=(e=t.params)==null?void 0:e.activeTokens)!=null&&r.includes(this.taskId)))switch(t.method){case"redirectToTask":this.handleRedirectToTask(t);break;case"processUpdated":this.handleProcessUpdated(t);break;case"processCompletedRedirect":this.processCompletedRedirect(t.params[0],this.userId,this.requestId);break;default:this.handleDefaultRedirect(t)}},async handleRedirectToTask(t){var e,r,i,a;if((e=t==null?void 0:t.params[0])!=null&&e.tokenId&&((r=this.task.user)==null?void 0:r.id)===((i=t.params[0])==null?void 0:i.userId)||((a=this.task.elementDestination)==null?void 0:a.type)==="taskSource"){if(this.loadingTask=!0,this.task&&!(this.task.allow_interstitial||this.isSameUser(this.task,t))){window.location.href=await this.getDestinationUrl();return}this.nodeId=t.params[0].nodeId,this.taskId=t.params[0].tokenId,this.renderComponent==="ConversationalForm"&&(window.location.href=`/tasks/${this.taskId}/edit`),this.reload()}},isSameUser(t,e){var a,n,s;const r=((a=t.user)==null?void 0:a.id)===e.params[0].userId,i=((n=t.elementDestination)==null?void 0:n.type)===null||((s=t.elementDestination)==null?void 0:s.type)==="taskSource";return r&&i},handleProcessUpdated(t){var r,i,a,n;const e=(r=this.task.elementDestination)==null?void 0:r.value;if(e&&e!=="taskSource"&&((i=t==null?void 0:t.params[0])==null?void 0:i.tokenId)===this.taskId&&((a=t==null?void 0:t.params[0])==null?void 0:a.requestStatus)==="ACTIVE"){window.location.href=e;return}["ACTIVITY_ACTIVATED","ACTIVITY_COMPLETED"].includes(t.event)&&t.elementType==="task"&&((n=this.task.elementDestination)!=null&&n.type||(this.taskId=t.taskId),this.reload()),t.event==="ACTIVITY_EXCEPTION"&&this.$emit("error",this.requestId)},handleDefaultRedirect(t){console.warn("redirect",t),window.location.href=`/requests/${this.requestId}`},existsEventMessage(t,e){return sessionStorage.getItem(t)?!0:(sessionStorage.setItem(t,e),!1)},listenForParentChanges(){this.parentRequest&&this.addSocketListener(`parent-${this.requestId}`,`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,".ProcessUpdated",t=>{var e;if(["ACTIVITY_ACTIVATED"].includes(t.event)){if((e=t.activeTokens)!=null&&e.includes(this.taskId))return;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)},hasUrlActionBlocker(){var e;const t=sessionStorage.getItem("sessionUrlActionBlocker");return t?(sessionStorage.removeItem("sessionUrlActionBlocker"),this.$emit("closed",(e=this.task)==null?void 0:e.id,t),!0):!1}},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,this.loadTask(!0),this.setSelfService()},destroyed(){this.unsubscribeSocketListeners()}};var tee=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||e.isSelfService,id:"overlay-background",variant:e.isSelfService?"white":"transparent",blur:null,cardStyles:"pointer-events: none;pointer-events: none;inset: 1px",rounded:"sm"},scopedSlots:e._u([{key:"overlay",fn:function(){return[r("div",{staticClass:"text-center"},[e.isSelfService?r("p",[e._v("Please claim this task to continue.")]):e._e()])]},proxy:!0}],null,!1,2076353390)},[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",class:{loading:e.loadingTask||e.loadingListeners},attrs:{config:e.screen.config,computed:e.screen.computed,"custom-css":e.screen.custom_css,watchers:e.screen.watchers,"loop-context":e.loopContext,taskdraft:this.task},on:{"update-page-task":e.pageUpdate,update:e.onUpdate,"after-submit":e.afterSubmit,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:{"update-page-task":e.pageUpdate,update:e.onUpdate,"after-submit":e.afterSubmit,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)},ree=[],iee=ie(eee,tee,ree,!1,null,"b8b1823e",null,null);const qS=iee.exports,Dne="",aee={name:"Loop",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],props:["value","name","config","selected","validationErrors","screenType"],data(){return{items:[],cancelledJobs:[]}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},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)})},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=G.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)}})},onChange(t){this.$emit("update-state")}}};var nee=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"},on:{change:e.onChange}},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),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-primary 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"})])],1)],1):e._e(),r(i["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(i),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":i,config:i.config,"screen-type":e.screenType},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},see=[],oee=ie(aee,nee,see,!1,null,"9d689ab6",null,null);const WS=oee.exports,Ane="",lee={name:"DynamicPanel",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],props:["value","name","config","selected","validationErrors","screenType"],data(){return{items:[],cancelledJobs:[]}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},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)})},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=G.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)}})},onChange(t){this.$emit("update-state")}}};var uee=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"},on:{change:e.onChange}},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),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-primary 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"})])],1)],1):e._e(),r(i["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(i),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":i,config:i.config,"screen-type":e.screenType},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"))+" "),e.isInClipboard(e.items[a])&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:i.config,isInClipboard:e.isInClipboard(e.items[a]),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(n){return e.addToClipboard(e.items[a])},removeFromClipboard:function(n){return e.removeFromClipboard(e.items[a])}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(n){i.config.interactive&&(i.config.content=n)}}},"component",i.config,!1))],1)])])}),0)],1)},cee=[],dee=ie(lee,uee,cee,!1,null,"8968be54",null,null);const XS=dee.exports,One="",fee=1,pee={name:"MultiColumn",components:{draggable:fi,FormInput:$.FormInput,FormSelectList:$.FormSelectList,FormCheckbox:$.FormCheckbox,FormTextArea:$.FormTextArea,FormDatePicker:$.FormDatePicker,FormHtmlEditor:$.FormHtmlEditor,FormHtmlViewer:$.FormHtmlViewer,ClipboardButton:Eu,...en},mixins:[da,Cn],props:["value","name","config","selected","validationErrors","screenType"],data(){return{items:[],cancelledJobs:[]}},computed:{classContainer(){return this.items.length>0?"form-group":"column-draggable"}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)},"config.options":function(t){this.items=t.map((e,r)=>this.items[r]?this.items[r]:[])}},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)})},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=fee;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=G.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 hee=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"))+" "),e.isInClipboard(n)&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:n.config,isInClipboard:e.isInClipboard(n),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(o){return e.addToClipboard(n)},removeFromClipboard:function(o){return e.removeFromClipboard(n)}}}):e._e(),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-primary 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"})])],1)],1):e._e(),r(n["editor-component"],{tag:"component",staticClass:"mb-3 mr-3 ml-3",class:e.elementCssClass(n),attrs:{"validation-errors":e.validationErrors,selected:e.selected,"ai-element":n,config:n.config,"screen-type":e.screenType},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"))+" "),e.isInClipboard(n)&&e.screenType==="form"?r("b-badge",{staticClass:"m-2 custom-badge",attrs:{"data-cy":"copied-badge",pill:""}},[r("i",{staticClass:"far fa-check-circle"}),r("span",{staticClass:"pl-2"},[e._v(e._s(e.$t("Copied")))])]):e._e(),r("div",{staticClass:"ml-auto"},[e.screenType==="form"?r("clipboard-button",{attrs:{index:a,config:n.config,isInClipboard:e.isInClipboard(n),addTitle:e.$t("Add to clipboard"),removeTitle:e.$t("Remove from clipboard")},on:{addToClipboard:function(o){return e.addToClipboard(n)},removeFromClipboard:function(o){return e.removeFromClipboard(n)}}}):e._e(),r("button",{staticClass:"btn btn-sm btn-primary 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"})])],1)],1):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,"screen-type":e.screenType},on:{input:function(o){n.config.interactive&&(n.config.content=o)}}},"component",n.config,!1))],1)])])}),0)]})],2)])])},mee=[],vee=ie(pee,hee,mee,!1,null,"fb76657c",null,null);const JS=vee.exports,gee={name:"default-loading-spinner"};var bee=function(){var e=this,r=e._self._c;return r("div",[e._v("Loading Data...")])},yee=[],xee=ie(gee,bee,yee,!1,null,null,null,null);const US=xee.exports,wee=!0;function Iu(t){let e=0;return typeof t!="object"||Object.entries(t).forEach(([r,i])=>{if(i){if(typeof i=="object"&&"$each"in i){e+=Iu(i.$each.$iter);return}r!=="$iter"&&typeof i=="object"&&"$invalid"in i&&i.$invalid&&Number.isNaN(Number(r))&&e++,r!=="$iter"&&i&&(e+=Iu(i))}}),e}const GS=async(t,e)=>{if(t.length===0)return;const r=Cc(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+=Iu(a.vdata),n+=Iu(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})}},See=async(t,e)=>{t("basic",{key:"valid",value:!e.value}),t("disableSubmit",{key:"disableSubmit",value:e.value})},Pee=G.debounce(GS,500),Lu=[],Cee=(t,e)=>{Lu.includes(t)||Lu.push(t),Pee(Lu,e)},QS={namespaced:wee,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(){Lu.length=0},validate({commit:t},e){Cee(e,t)},async validateNow({commit:t},e){await GS([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 See(t,e)}}},Fu={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),Fu.methods.emitChanges())},undo({state:t,getters:e,commit:r}){e.canUndo&&(r("setPosition",t.position-1),Fu.methods.emitChanges())},redo({state:t,getters:e,commit:r}){e.canRedo&&(r("setPosition",t.position+1),Fu.methods.emitChanges())}}},Mi=class Mi{static saveToLocalStorage(e){localStorage.setItem("clipboard",JSON.stringify(e))}static loadFromLocalStorage(){const e=localStorage.getItem("clipboard");if(e)try{return JSON.parse(e)}catch(r){return console.error("Failed to parse clipboard data from localStorage:",r),[]}else return[]}static saveToServer(e){return Mi.saveToServerFn?Mi.saveToServerFn(e):Promise.resolve()}static loadFromServer(){return Mi.loadFromServerFn?Mi.loadFromServerFn().then(e=>{if(Array.isArray(e))return e;throw new Error("Invalid server response: Expected array for clipboard content")}).catch(e=>(console.error("Failed to load clipboard from server:",e),[])):Promise.resolve([])}};oe(Mi,"loadFromServerFn",null),oe(Mi,"saveToServerFn",null);let gt=Mi;const kee={namespaced:!0,state(){return{clipboard:[]}},getters:{clipboardItems:t=>t.clipboard,isInClipboard:t=>e=>!e||!e.uuid?!1:t.clipboard.some(r=>r.uuid===e.uuid)},mutations:{SET_CLIPBOARD(t,e){if(!Array.isArray(e))throw new Error("Clipboard content must be an array");t.clipboard.splice(0,t.clipboard.length,...e)},ADD_TO_CLIPBOARD(t,e){(Array.isArray(e)?e:[e]).forEach(i=>{i.uuid||(i.uuid=mh()),t.clipboard.some(a=>a.uuid===i.uuid)||t.clipboard.push(i)})},REMOVE_FROM_CLIPBOARD(t,e){if(!e||!e.uuid){console.error("Item or item uuid is missing");return}const r=t.clipboard.findIndex(i=>i.uuid===e.uuid);r!==-1&&t.clipboard.splice(r,1)},CLEAR_CLIPBOARD(t){t.clipboard.splice(0,t.clipboard.length)}},actions:{initializeClipboard({commit:t}){const e=gt.loadFromLocalStorage();t("SET_CLIPBOARD",e),gt.loadFromServer().then(r=>{r.length>0&&(t("SET_CLIPBOARD",r),gt.saveToLocalStorage(r))}),window.addEventListener("storage",r=>{if(r.key==="clipboard"){const i=gt.loadFromLocalStorage();t("SET_CLIPBOARD",i)}})},setupSaveToServerFn({commit:t},e){gt.saveToServerFn=e},setupLoadFromServerFn({commit:t},e){gt.loadFromServerFn=e},addToClipboard({commit:t,state:e},r){if(!r)throw new Error("Item is missing");t("ADD_TO_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},pushState({commit:t,state:e},r){t("SET_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},removeFromClipboard({commit:t,state:e},r){t("REMOVE_FROM_CLIPBOARD",r),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)},clearClipboard({commit:t,state:e}){t("CLEAR_CLIPBOARD"),gt.saveToLocalStorage(e.clipboard),gt.saveToServer(e.clipboard)}}},zne="",Tee={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 Mee=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)])])},Dee=[],Aee=ie(Tee,Mee,Dee,!1,null,"d660c896",null,null);const YS=Aee.exports,ZS="data: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C43NDUgMjQtMjR2LTgwYzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR2ODBjMCAxMy4yNTUgMTAuNzQ1IDI0IDI0IDI0em0tMjQtNDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0VjU2YzAtMTMuMjU1LTEwLjc0NS0yNC0yNC0yNEgyMDUuMzMzYy0xMy4yNTUgMC0yNCAxMC43NDUtMjQgMjR6bTI0IDI2NEg0ODhjMTMuMjU1IDAgMjQtMTAuNzQ1IDI0LTI0di04MGMwLTEzLjI1NS0xMC43NDUtMjQtMjQtMjRIMjA1LjMzM2MtMTMuMjU1IDAtMjQgMTAuNzQ1LTI0IDI0djgwYzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNHoiPjwvcGF0aD48L3N2Zz4=",Ene="",Oee=typeof window>"u"?global:window,zee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:oi,Sortable:zp},mixins:[Tc],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("Name"),key:"property"},{label:this.$t("Type"),key:"type",cb:t=>{switch(t){case"expression":return"Formula";case"javascript":return"JavaScript";default:return t}}}],monacoOptions:{automaticLayout:!0,lineNumbers:"off",minimap:!1},monacoEditor:null,errors:{},searchProperties:["property","type"]}},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"},modalSize(){return this.displayList?"lg":"xl"}},watch:{value(){this.value.forEach(t=>{this.numberItem++,t.id=this.numberItem,Object.hasOwn(t,"byPass")||(t.byPass=!1)}),this.current=this.value}},created(){Bt.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 Bt(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()},toggleBypass(t){this.current=this.current.map(e=>e.id===t?{...e,byPass:!e.byPass}:e),this.$emit("input",this.current)},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,byPass:!1})):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){Oee.ProcessMaker.confirmModal(this.$t("Are you sure you want to delete the calc ?"),this.$t("If you do, you won’t be able to recover the Calc configuration."),"",()=>{this.remove(t)})},remove(t){this.current=this.current.filter(e=>e.id!==t.id),this.$emit("input",this.current),this.displayTableList()},editorMounted(t){this.monacoEditor=t},getByPassIcon(t){return new URL(Object.assign({"../assets/icons/Bypass.svg":ZS,"../assets/icons/ErrorMessage.svg":KS,"../assets/icons/Unbypass.svg":_S,"../assets/icons/angle-double-right-solid.svg":$S,"../assets/icons/calendar-regular.svg":eP,"../assets/icons/caret-square-down-solid.svg":tP,"../assets/icons/check-square-solid.svg":rP,"../assets/icons/columns-solid.svg":iP,"../assets/icons/font-solid.svg":aP,"../assets/icons/list-ul-solid.svg":nP,"../assets/icons/paragraph-solid.svg":sP,"../assets/icons/share-square-solid.svg":oP,"../assets/icons/square-regular.svg":lP,"../assets/icons/th-list-solid.svg":uP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Eee=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{id:"computed-properties",size:e.modalSize,"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 border-0","no-close-on-backdrop":"","header-close-content":"×","data-cy":"calcs-modal"},on:{hidden:e.displayTableList},scopedSlots:e._u([{key:"modal-title",fn:function(){return[r("h5",{staticClass:"modal-title"},[e._v(e._s(e.$t("Calculated Properties")))]),r("small",{directives:[{name:"show",rawName:"v-show",value:!e.displayList,expression:"!displayList"}],staticClass:"modal-subtitle my-2"},[e._v(" "+e._s(e.$t("Perform mathematical calculations offering quick, convenient, and accurate operations, enhancing user efficiency and usability."))+" ")])]},proxy:!0}])},[e.displayList?[r("Sortable",{staticClass:"mb-3",attrs:{fields:e.fields,items:e.current,"disable-key":"byPass","inline-edit":!1,"data-test-actions":{tableBox:{"data-cy":"calcs-table"},btnNew:{"data-cy":"calcs-add-property"},btnEdit:{"data-cy":"calcs-table-edit"},btnDelete:{"data-cy":"calcs-table-remove"}},searchProperties:e.searchProperties},on:{"item-edit":e.editProperty,"item-delete":e.deleteProperty,"add-page":e.displayFormProperty},scopedSlots:e._u([{key:"options",fn:function({item:i}){return[r("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{customClass:"bypass-btn-tooltip"},expression:"{ customClass: 'bypass-btn-tooltip' }"}],staticClass:"btn",attrs:{title:i.byPass?e.$t("Unbypass Calc"):e.$t("Bypass Calc"),"data-test":"calcs-bypass"},on:{click:function(a){return e.toggleBypass(i.id)}}},[r("img",{attrs:{src:e.getByPassIcon(i),alt:"Bypass",width:"24"}})]),r("div",{staticClass:"sortable-item-vr"})]}}],null,!1,1100542621)}),r("template",{slot:"modal-footer"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-close"},on:{click:function(i){return e.$refs.modal.hide()}}},[e._v(" "+e._s(e.$t("Done"))+" ")])])])]:[r("b-row",[r("b-col",[r("form-input",{ref:"property",staticClass:"mb-3 calcs-input",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"}})],1),r("b-col",[r("form-text-area",{ref:"name",staticClass:"mb-3 calcs-input",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"}})],1)],1),r("div",{staticClass:"form-group mb-3",staticStyle:{position:"relative"}},[r("div",{staticClass:"d-flex justify-content-between mb-1"},[r("label",{staticClass:"m-0"},[e._v(e._s(e.$t("Formula")+" *"))]),r("div",[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 fa-lg"})])])]),r("form-text-area",{directives:[{name:"show",rawName:"v-show",value:!e.isJS,expression:"!isJS"}],ref:"formula",staticClass:"calcs-input-formula",attrs:{rows:"5",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 text-uppercase",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 text-uppercase",attrs:{"data-cy":"calcs-button-save"},on:{click:e.validateData}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])]],2)},jee=[],Nee=ie(zee,Eee,jee,!1,null,"6d70559c",null,null);const Iee=Nee.exports,jne="",Lee={props:["value","cssErrors"],components:{MonacoEditor:oi},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 Fee=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":"×"},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)},Bee=[],Ree=ie(Lee,Fee,Bee,!1,null,"3824b29b",null,null);const Hee=Ree.exports,Nne="",Vee=typeof window>"u"?global:window,qee={name:"WatchersForm",components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,FormMultiSelect:$.FormMultiSelect,FormCheckbox:$.FormCheckbox,MonacoEditor:oi,DataMapping:kp,OutboundConfig:Ap,ScreenVariableSelector:wp},mixins:[Tc],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()){Vee.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=G.uniqueId(new Date().getTime()),this.config.byPass=!1),this.save()})},save(){this.$emit("save-form")},inputDataEditorMounted(t){this.inputDataEditor=t},scriptConfigEditorMounted(t){this.scriptConfigEditor=t}}};var Wee=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 text-uppercase",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 text-uppercase",attrs:{"data-cy":"watchers-button-save"},on:{click:e.validateDataAndSave}},[e._v(" "+e._s(e.$t("Save"))+" ")])])])},Xee=[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"})])}],Jee=ie(qee,Wee,Xee,!1,null,"74e7876e",null,null);const cP=Jee.exports,Ine="",Uee={components:{BasicSearch:YS,FormInput:$.FormInput,FormTextArea:$.FormTextArea,Sortable:zp},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"},{label:this.$t("Watching Variable"),key:"watching"},{label:this.$t("Output Variable"),key:"output_variable"},{label:this.$t("Source"),key:"script.title"}],searchProperties:["name","output_variable","watching","script.title"]}},methods:{displayFormProperty(){this.$emit("display-form")},editProperty(t){this.$emit("edit-form",t)},deleteProperty(t){this.$emit("delete-form",t)},getByPassIcon(t){return new URL(Object.assign({"../assets/icons/Bypass.svg":ZS,"../assets/icons/ErrorMessage.svg":KS,"../assets/icons/Unbypass.svg":_S,"../assets/icons/angle-double-right-solid.svg":$S,"../assets/icons/calendar-regular.svg":eP,"../assets/icons/caret-square-down-solid.svg":tP,"../assets/icons/check-square-solid.svg":rP,"../assets/icons/columns-solid.svg":iP,"../assets/icons/font-solid.svg":aP,"../assets/icons/list-ul-solid.svg":nP,"../assets/icons/paragraph-solid.svg":sP,"../assets/icons/share-square-solid.svg":oP,"../assets/icons/square-regular.svg":lP,"../assets/icons/th-list-solid.svg":uP})[`../assets/icons/${t.byPass?"Unbypass":"Bypass"}.svg`],self.location).href}}};var Gee=function(){var e=this,r=e._self._c;return r("Sortable",{attrs:{fields:e.fields,items:e.value,"disable-key":"byPass","inline-edit":!1,"data-test-actions":{tableBox:{"data-cy":"watchers-table"},btnNew:{"data-cy":"watchers-add-watcher"},btnEdit:{"data-cy":"watchers-table-edit"},btnDelete:{"data-cy":"watchers-table-remove"}},searchProperties:e.searchProperties},on:{"item-edit":e.editProperty,"item-delete":e.deleteProperty,"add-page":e.displayFormProperty,ordered:function(i){return e.$emit("ordered",i)}},scopedSlots:e._u([{key:"options",fn:function({item:i}){return[r("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{customClass:"bypass-btn-tooltip"},expression:"{ customClass: 'bypass-btn-tooltip' }"}],staticClass:"btn",attrs:{title:i.byPass?e.$t("Unbypass Watcher"):e.$t("Bypass Watcher"),"data-test":"watchers-bypass"},on:{click:function(a){return a.preventDefault(),e.$emit("toggle-bypass",i.uid)}}},[r("img",{attrs:{src:e.getByPassIcon(i),alt:"Bypass",width:"24"}})]),r("div",{staticClass:"sortable-item-vr"})]}}])})},Qee=[],Yee=ie(Uee,Gee,Qee,!1,null,"cfbb5df9",null,null);const dP=Yee.exports,Lne="",fP=typeof window>"u"?global:window,Zee={components:{FormInput:$.FormInput,FormTextArea:$.FormTextArea,MonacoEditor:oi,WatchersList:dP,WatchersForm:cP},props:{value:{type:Array,required:!0}},data(){return{enableList:!0,current:[],add:{uid:"",name:"",variable:"",script_id:"",script_key:"",input_data:"",script_configuration:"",synchronous:!1,byPass:!1}}},computed:{modalSize(){return"xl"}},watch:{value:{handler(t){this.current=this.getValuesWithOutputVarsNames(t)}}},methods:{getValuesWithOutputVarsNames(t){return t.map(r=>{var a,n;const i={...r};if(Object.hasOwn(i,"byPass")||(i.byPass=!1),((n=(a=i==null?void 0:i.script)==null?void 0:a.id)==null?void 0:n.substr(0,11))==="data_source"){const s=JSON.parse(i.script_configuration),o=s!=null&&s.dataMapping?s.dataMapping.map(l=>l.key).join(", "):"",u=50;i.output_variable=o.length>u?`${o.substr(0,u)}...`:o}return i})},toggleBypass(t){this.current=this.current.map(e=>e.uid===t?{...e,byPass:!e.byPass}:e),this.$emit("input",this.current)},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",G.cloneDeep(t))},confirmRemoval(t){fP.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){fP.ProcessMaker.alert(t,"success")}}};var Kee=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:e.modalSize,id:"watchers-popup","hide-footer":"","header-close-content":"×","no-close-on-backdrop":"","data-cy":"watchers-modal"},on:{hidden:e.displayList},scopedSlots:e._u([{key:"modal-title",fn:function(){return[e._v(" "+e._s(e.$t("Watchers"))+" "),r("small",{staticClass:"d-block my-2 modal-subtitle"},[e._v(" "+e._s(e.$t("Manage your active watchers for this screen"))+" ")])]},proxy:!0}])},[e.enableList?[r("watchers-list",{on:{"display-form":e.displayForm,"edit-form":e.edit,"delete-form":e.confirmRemoval,"toggle-bypass":e.toggleBypass,ordered:function(i){return e.$emit("input",i)}},model:{value:e.current,callback:function(i){e.current=i},expression:"current"}}),r("div",{staticClass:"d-flex justify-content-end mt-3 mr-1"},[r("div",{staticClass:"d-flex align-items-end"},[r("button",{staticClass:"btn btn-secondary ml-3 text-uppercase",attrs:{"data-cy":"calcs-button-close"},on:{click:function(i){return e.$refs.modal.hide()}}},[e._v(" "+e._s(e.$t("Done"))+" ")])])])]:[r("required"),r("watchers-form",{attrs:{refs:"form",config:e.add},on:{"display-list":e.displayList,"save-form":e.save}})]],2)},_ee=[],$ee=ie(Zee,Kee,_ee,!1,null,"d5f54c66",null,null);const ete=$ee.exports,Fne="",tte={...en,FormMultiColumn:ju};function rte(t){let e=t.$parent;for(;e;){if(e.$options.name==="ScreenContent")return e;e=e.$parent}return null}const ite={install(t){if(t._processMakerVueFormBuilderInstalled)return;t._processMakerVueFormBuilderInstalled=!0,t.component("AddLoopRow",pc),t.component("FormImage",ns),t.component("FormAvatar",Mn),t.component("FormLoop",As),t.component("FormDynamicPanel",Ls),t.component("FormMultiColumn",ju),t.component("FormNestedScreen",Os),t.component("FormRecordList",Du),t.component("Loop",WS),t.component("DynamicPanel",XS),t.component("MultiColumn",JS),t.component("NewFormMultiColumn",gp),t.component("ScreenRenderer",$w),t.component("Task",qS),t.component("VueFormBuilder",jS),t.component("VueFormRenderer",Ci),t.component("DefaultLoadingSpinner",US),t.use($),t.component("FormButton",Yi),t.component("FileUpload",Tn),t.component("FileDownload",ho),t.component("FormAnalyticsChart",Es),t.component("FormMaskedInput",Zi),t.use(Hl),t.use(Nt),t.component("FormListTable",zs),t.component("LinkButton",js),t.component("CaseProgressBar",Fs),t.component("FormCollectionRecordControl",Ns),t.component("FormCollectionViewControl",Is);const e=new Nt.Store({modules:{globalErrorsModule:QS,undoRedoModule:Fu,clipboardModule:kee}});t.mixin({store:e}),t.mixin({methods:{getScreenDataReference(r=null,i=null){return rte(this).getDataReference(r,i)}}})}};function ate(t,e){t.defaults.adapter=wb(t.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new Ll({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})})}Q.AddLoopRow=pc,Q.AnalyticsSelector=CS,Q.BasicSearch=YS,Q.CaseProgressBar=Fs,Q.Clipboard=Cn,Q.CodeEditor=Op,Q.CollectionDesignerMode=oS,Q.CollectionDisplayMode=nS,Q.CollectionRecordsList=Ou,Q.CollectionSelectList=Cp,Q.ColorSelect=zu,Q.ColorSelectModern=lS,Q.ColorSelectRecord=zu,Q.ColumnSetup=uS,Q.ComputedProperties=Iee,Q.ContainerColumns=cS,Q.Currencies=dQ,Q.CurrentPageProperty=Pc,Q.CustomCSS=Hee,Q.DataFormatProperty=VS,Q.DataMapping=kp,Q.DataReference=Hh,Q.DataTypeBooleanProperty=U$,Q.DataTypeDateTimeProperty=HS,Q.DataTypeProperty=RS,Q.DataTypeWithoutDateProperty=J$,Q.DefaultLoadingSpinner=US,Q.DefaultValueEditor=Tp,Q.DeviceDetector=qh,Q.DeviceVisibility=wd,Q.DynamicPanel=XS,Q.DynamicPanelInspector=mS,Q.EditOption=dS,Q.EncryptedConfig=kS,Q.FileDownload=ho,Q.FileUpload=Tn,Q.FormAnalyticsChart=Es,Q.FormAvatar=Mn,Q.FormBuilderControls=G$,Q.FormButton=Yi,Q.FormCollectionRecordControl=Ns,Q.FormCollectionViewControl=Is,Q.FormDynamicPanel=Ls,Q.FormImage=ns,Q.FormInputMasked=Zi,Q.FormListTable=zs,Q.FormLoop=As,Q.FormMaskedInput=Zi,Q.FormMultiselect=Mp,Q.FormNestedScreen=Os,Q.FormRecordList=Du,Q.FormRecordListStatic=eS,Q.FormRequests=xp,Q.FormTasks=yp,Q.FormText=Au,Q.HasColorProperty=da,Q.ImageUpload=fS,Q.ImageVariable=pS,Q.InputVariable=Dp,Q.Json2Vue=Lb,Q.LabelSubmitButton=PS,Q.LabelSubmitButtonProperty=Lg,Q.LinkButton=js,Q.LoadingSubmitButton=SS,Q.LoadingSubmitButtonProperty=Ig,Q.Loop=WS,Q.LoopInspector=hS,Q.MultiColumn=JS,Q.MultipleUploadsCheckbox=zS,Q.MustacheHelper=ki,Q.NewFormMultiColumn=gp,Q.OptionsList=vS,Q.OutboundConfig=Ap,Q.PageSelect=gS,Q.RequiredCheckbox=OS,Q.ScreenBase=kd,Q.ScreenRendererError=mp,Q.ScreenSelector=bS,Q.SelectDataTypeMask=xS,Q.Task=qS,Q.Tooltip=xd,Q.ValidationMsg=yl,Q.ValidationSelect=wS,Q.VariableNameGenerator=AS,Q.VariablesToSubmit=TS,Q.VariablesToSubmitFilter=Cd,Q.VisibilityRule=Fg,Q.VueFormBuilder=jS,Q.VueFormRenderer=Ci,Q.WatchersForm=cP,Q.WatchersList=dP,Q.WatchersPopup=ete,Q.WatchersSynchronous=_w,Q.accordions=DS,Q.bgcolorProperty=Ji,Q.buttonLabelProperty=Ag,Q.buttonTypeEvent=jg,Q.buttonVariantStyleProperty=Pd,Q.canOpenJsonFile=KC,Q.collectionDataSource=aS,Q.colorProperty=Ui,Q.computedFields=Fh,Q.dataSourceValues=ai,Q.dataSources=Bs,Q.datatable=kc,Q.default=ite,Q.defaultValueProperty=Gn,Q.defaultValues=G0,Q.deviceVisibilityProperty=_5,Q.disabledProperty=Sd,Q.focusErrors=Tc,Q.formTypes=Rs,Q.formWatchers=cO,Q.getValidPath=_c,Q.globalErrorsModule=QS,Q.globalProperties=WK,Q.helperTextProperty=Da,Q.initializeScreenCache=ate,Q.inspector=MS,Q.javascriptReservedKeywords=gl,Q.keyNameProperty=Kt,Q.labelProperty=Ur,Q.linkVariantStyleProperty=Eg,Q.multiselectApi=Fb,Q.mustacheEvaluation=_d,Q.placeholderProperty=Un,Q.readonlyProperty=bl,Q.renderer=tte,Q.shouldElementBeVisible=Bb,Q.testing=Hb,Q.toggleStyleProperty=Og,Q.tooltipProperty=Ng,Q.validationRulesProperty=Gi,Q.validators=xl,Q.watchers=Bg,Object.defineProperties(Q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
382
382
|
//# sourceMappingURL=vue-form-builder.umd.js.map
|