Skip to content

Create 81171483 - #704

Open
jmarrujo1991-lab wants to merge 1 commit into
microsoft:mainfrom
jmarrujo1991-lab:patch-15
Open

Create 81171483#704
jmarrujo1991-lab wants to merge 1 commit into
microsoft:mainfrom
jmarrujo1991-lab:patch-15

Conversation

@jmarrujo1991-lab

Copy link
Copy Markdown

Summary of the Pull Request

References and Relevant Issues

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)

Copilot AI lite review requested due to automatic review settings August 29, 2026 18:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@microsoft-github-policy-service

Copy link
Copy Markdown

jmarrujo1991-lab please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"
Contributor License Agreement

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is effective as of the latest signature
date below.

  1. Definitions.
    “Code” means the computer software code, whether in human-readable or machine-executable form,
    that is delivered by You to Microsoft under this Agreement.
    “Project” means any of the projects owned or managed by Microsoft and offered under a license
    approved by the Open Source Initiative (www.opensource.org).
    “Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any
    Project, including but not limited to communication on electronic mailing lists, source code control
    systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of
    discussing and improving that Project, but excluding communication that is conspicuously marked or
    otherwise designated in writing by You as “Not a Submission.”
    “Submission” means the Code and any other copyrightable material Submitted by You, including any
    associated comments and documentation.
  2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any
    Project. This Agreement covers any and all Submissions that You, now or in the future (except as
    described in Section 4 below), Submit to any Project.
  3. Originality of Work. You represent that each of Your Submissions is entirely Your original work.
    Should You wish to Submit materials that are not Your original work, You may Submit them separately
    to the Project if You (a) retain all copyright and license information that was in the materials as You
    received them, (b) in the description accompanying Your Submission, include the phrase “Submission
    containing materials of a third party:” followed by the names of the third party and any licenses or other
    restrictions of which You are aware, and (c) follow any other instructions in the Project’s written
    guidelines concerning Submissions.
  4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else
    for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your
    Submission is made in the course of Your work for an employer or Your employer has intellectual
    property rights in Your Submission by contract or applicable law, You must secure permission from Your
    employer to make the Submission before signing this Agreement. In that case, the term “You” in this
    Agreement will refer to You and the employer collectively. If You change employers in the future and
    desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement
    and secure permission from the new employer before Submitting those Submissions.
  5. Licenses.
  • Copyright License. You grant Microsoft, and those who receive the Submission directly or
    indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the
    Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute
    the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third
    parties.
  • Patent License. You grant Microsoft, and those who receive the Submission directly or
    indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under
    Your patent claims that are necessarily infringed by the Submission or the combination of the
    Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and
    import or otherwise dispose of the Submission alone or with the Project.
  • Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement.
    No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are
    granted by implication, exhaustion, estoppel or otherwise.
  1. Representations and Warranties. You represent that You are legally entitled to grant the above
    licenses. You represent that each of Your Submissions is entirely Your original work (except as You may
    have disclosed under Section 3). You represent that You have secured permission from Your employer to
    make the Submission in cases where Your Submission is made in the course of Your work for Your
    employer or Your employer has intellectual property rights in Your Submission by contract or applicable
    law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You
    have the necessary authority to bind the listed employer to the obligations contained in this Agreement.
    You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS
    REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES
    EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
    PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF
    NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
  2. Notice to Microsoft. You agree to notify Microsoft in writing of any facts or circumstances of which
    You later become aware that would make Your representations in this Agreement inaccurate in any
    respect.
  3. Information about Submissions. You agree that contributions to Projects and information about
    contributions may be maintained indefinitely and disclosed publicly, including Your name and other
    information that You submit with Your Submission.
  4. Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and
    the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County,
    Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to
    exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all
    defenses of lack of personal jurisdiction and forum non-conveniens.
  5. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and
    supersedes any and all prior agreements, understandings or communications, written or oral, between
    the parties relating to the subject matter hereof. This Agreement may be assigned by Microsoft.

@github-actions

Copy link
Copy Markdown

check-spelling-bot Report

⚠️ Dictionary not found

Problems were encountered retrieving check dictionaries (cspell:sql/src/sql.txt cspell:node/dict/node.txt cspell:redis/dict/redis.txt cspell:css/dict/css.txt cspell:haskell/dict/haskell.txt cspell:k8s/dict/k8s.txt cspell:swift/src/swift.txt cspell:cpp/src/stdlib-c.txt cspell:r/src/r.txt cspell:ada/dict/ada.txt cspell:python/src/python/python.txt cspell:public-licenses/src/additional-licenses.txt cspell:java/src/java.txt cspell:docker/src/docker-words.txt cspell:elixir/dict/elixir.txt cspell:rust/dict/rust.txt cspell:scala/dict/scala.txt cspell:ruby/dict/ruby.txt cspell:gaming-terms/dict/gaming-terms.txt cspell:django/dict/django.txt cspell:php/dict/php.txt cspell:cpp/src/people.txt cspell:fullstack/dict/fullstack.txt cspell:cpp/src/lang-jargon.txt cspell:html/dict/html.txt cspell:lua/dict/lua.txt cspell:npm/dict/npm.txt cspell:clojure/src/clojure.txt cspell:powershell/dict/powershell.txt cspell:python/src/common/extra.txt cspell:cpp/src/lang-keywords.txt cspell:cpp/src/stdlib-cerrno.txt cspell:cpp/src/ecosystem.txt cspell:software-terms/dict/webServices.txt cspell:typescript/dict/typescript.txt cspell:cpp/src/stdlib-cpp.txt cspell:sql/src/tsql.txt cspell:cpp/src/compiler-msvc.txt cspell:cpp/src/stdlib-cmath.txt cspell:latex/dict/latex.txt cspell:svelte/dict/svelte.txt cspell:dotnet/dict/dotnet.txt cspell:dart/src/dart.txt cspell:java/src/java-terms.txt cspell:cpp/src/compiler-gcc.txt cspell:cpp/src/template-strings.txt cspell:python/src/python/python-lib.txt cspell:monkeyc/src/monkeyc_keywords.txt cspell:software-terms/dict/softwareTerms.txt cspell:shell/dict/shell-all-words.txt cspell:golang/dict/go.txt cspell:cpp/src/compiler-clang-attributes.txt cspell:python/src/additional_words.txt cspell:public-licenses/src/generated/public-licenses.txt).

⚠️ For more information, see check-dictionary-not-found.

🔴 Please review

See the 📂 files view, the 📜action log, 👼 SARIF report, or 📝 job summary for details.

Unrecognized words (231)
abf
abfe
Abrev
acf
Aduyr
affiliatename
AMf
AMRC
AMx
autosizes
baad
Bbw
bgd
blockmain
bnm
Bqg
Bqpqu
BUa
Busque
CBF
Cckhj
cecd
cercano
CEWS
Cgowul
CKn
Cljyiv
Cmn
conservationfeaturedsection
contentaa
contentb
contentc
contentf
contentfb
csssitewidefixes
Cwkelt
dadt
dcdae
dfc
dfce
dff
DHzf
DJRF
DPoy
Dspwn
DUYD
DXjoped
Ebwtc
eea
eeba
effc
EIZi
ELZs
EOV
EQEt
extlink
EZJ
EZzs
farmersgov
fbb
fcc
fce
feab
FKEGl
flickr
Fluwz
FNshox
foaf
footernav
fpac
fsa
fscsc
FUk
GBr
GJf
Gmb
GMNz
Gmq
GMRv
GVAKW
haga
handplanting
helpdeskfooterlink
HGa
hpu
Hsb
HWGMC
HXs
identitysandbox
IDnspk
Ijj
INY
iplw
ITz
JGZ
JMk
JSDZRa
jyj
KKEWk
KPy
Kvc
kvr
Kwy
lazyautosizes
lazyerror
lazyload
lazyloading
lazypreload
lazysizes
LGQVGXi
LOGQ
Lqf
Lras
mainnavigation
mainpg
Meefu
megamenu
MEH
Mfq
MGE
MNz
Mobi
msvalidate
MTwi
nacdnet
ncustom
newsletteremailsignup
Nij
nnon
nuestras
Nxdy
nxx
Okpty
Oucyn
Ovc
PAJm
Pccmkq
PDY
PFLe
PKn
PNV
precomposed
Prhx
protectionandrecoveryfeatured
QLCP
rdfs
ric
Rkc
rma
ROHs
Rtyoo
Rwp
Rwv
Rxmth
RZdx
scl
seperator
serverurl
serveup
servicecenter
shortlink
shs
sidemenu
sioc
sioct
sitewide
skos
SKRy
solicitud
SRhl
stcode
tagline
Tazp
tbm
Tde
techsupport
tkjm
Tnso
traducciones
TVc
TVf
TXz
tyrpa
Tzld
Uav
Uhw
UHytq
Uib
unveilhooks
updatelogoblock
Uplt
UQslec
USCIS
usda
Uwo
uwy
UYSP
UZRl
VFSc
VLdqf
VMn
Vmq
VMWD
Vqv
Vzh
WBl
WDI
Wkz
workingwithusfeaturedsection
wps
WVV
wwqm
Wzv
XBk
XDJ
Xifh
Xoqf
Xsf
XUy
YEWu
yfw
ynr
yourbusinessfeaturedsection
ZDRIr
ZDu
Zhp
ZSg
Zsm
Zxu
ZYcs
Zzhli
These words are not needed and should be removed AHP aiu Backgrounder CANTCALLOUT Ccc cplusplus ctl Debian depl DFF dotnet drv endptr EOFs evt frob frobnicate Fullwidth gitlab hdr idl IME inbox ININPUTSYNCCALL INJ intelligentterminal Ioctl KVM lbl lld lsb NODEFAULT NONINFRINGEMENT notif oss outdir Podcast pri prioritization rcv SCL segfault SND sourced SWP Tbl TBM testname transitioning unk unparseable unregisters Virt VMs webpage websites WINVER WSLENV xsi

To accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands

... in a clone of the git@github.com:jmarrujo1991-lab/intelligent-terminal.git repository
on the patch-15 branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/cfb6f7e75bbfc89c71eaa30366d0c166f1bd9c8c/apply.pl' |
perl - 'https://github.com/microsoft/intelligent-terminal/actions/runs/33269476567/attempts/1' &&
git commit -m 'Update check-spelling metadata'
Available 📚 dictionaries could cover words (expected and unrecognized) not in the 📘 dictionary

This includes both expected items (2103) from .github/actions/spelling/expect/alphabet.txt .github/actions/spelling/expect/expect.txt .github/actions/spelling/expect/web.txt and unrecognized words (231)

Dictionary Entries Covers Uniquely
cspell:csharp/csharp.txt 32 2 2
cspell:aws/aws.txt 232 2 2
cspell:fonts/fonts.txt 536 1 1

Consider adding to the extra_dictionaries array (in the .github/actions/spelling/config.json file):

    "cspell:csharp/csharp.txt",
    "cspell:aws/aws.txt",
    "cspell:fonts/fonts.txt",

To stop checking additional dictionaries, put (in the .github/actions/spelling/config.json file):

"check_extra_dictionaries": []
Pattern suggestions ✂️ (5)

You could add these patterns to .github/actions/spelling/patterns/1505aa14e6aba0f6abd51f83ad30e71d7499ba08.txt:

# Automatically suggested patterns

# hit-count: 3 file-count: 2
# container images
image: [-\w./:@]+

# hit-count: 3 file-count: 1
# css url wrappings
\burl\([^)]+\)

# hit-count: 3 file-count: 1
# hex runs
\b(?=(?:[a-fA-F]{0,2}\d)*[a-fA-F]{3})[0-9a-fA-F]{16,}\b

# hit-count: 1 file-count: 1
# JavaScript regular expressions
# javascript exec/test regex
/.{3,}?/[gim]*\.(?:exec|test)\(

# hit-count: 1 file-count: 1
# assign regex
= /[^*].*?(?:[a-z]{3,}|[A-Z]{3,}|[A-Z][a-z]{2,}).*/[gim]*(?=\W|$)

Alternatively, if a pattern suggestion doesn't make sense for this project, add a # to the beginning of the line in the candidates file with the pattern to stop suggesting it.

Warnings and Notices ⚠️ (2)

See the 📂 files view, the 📜action log, 👼 SARIF report, or 📝 job summary for details.

⚠️ Warnings and Notices Count
ℹ️ candidate-pattern 6
⚠️ check-dictionary-not-found 54

See ⚠️ Event descriptions for more information.

✏️ Contributor please read this

By default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.

If the listed items are:

  • ... misspelled, then please correct them instead of using the command.
  • ... names, please add them to .github/actions/spelling/allow/names.txt.
  • ... APIs, you can add them to a file in .github/actions/spelling/allow/.
  • ... just things you're using, please add them to an appropriate file in .github/actions/spelling/expect/.
  • ... tokens you only need in one place and shouldn't generally be used, you can add an item in an appropriate file in .github/actions/spelling/patterns/.

See the README.md in each directory for more information.

🔬 You can test your commits without appending to a PR by creating a new branch with that extra change and pushing it to your fork. The check-spelling action will run in response to your push -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. 😉

If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

@jmarrujo1991-lab

Copy link
Copy Markdown
Author

jmarrujo1991-lab please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

      , nd = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
            function rd(t, e) {
                t && od(t, e)
            }
            function od(t, e) {
                if (1 === t.type) {
                    for (var n in t.attrsMap)
                        if (uu.test(n)) {
                            var r = t.attrsMap[n];
                            if (r) {
                                var o = t.rawAttrsMap[n];
                                "v-for" === n ? id(t, 'v-for="'.concat(r, '"'), e, o) : "v-slot" === n || "#" === n[0] ? ld(r, "".concat(n, '="').concat(r, '"'), e, o) : lu.test(n) ? ad(r, "".concat(n, '="').concat(r, '"'), e, o) : cd(r, "".concat(n, '="').concat(r, '"'), e, o)
                            }
                        }
                    if (t.children)
                        for (var a = 0; a < t.children.length; a++)
                            od(t.children[a], e)
                } else
                    2 === t.type && cd(t.expression, t.text, e, t)
            }
            function ad(t, e, n, r) {
                var o = t.replace(nd, "")
                  , a = o.match(ed);
                a && "$" !== o.charAt(a.index - 1) && n("avoid using JavaScript unary operator as property name: " + '"'.concat(a[0], '" in expression ').concat(e.trim()), r),
                cd(t, e, n, r)
            }
            function id(t, e, n, r) {
                cd(t.for || "", e, n, r),
                sd(t.alias, "v-for alias", e, n, r),
                sd(t.iterator1, "v-for iterator", e, n, r),
                sd(t.iterator2, "v-for iterator", e, n, r)
            }
            function sd(t, e, n, r, o) {
                if ("string" == typeof t)
                    try {
                        new Function("var ".concat(t, "=_"))
                    } catch (a) {
                        r("invalid ".concat(e, ' "').concat(t, '" in expression: ').concat(n.trim()), o)
                    }
            }
            function cd(t, e, n, r) {
                try {
                    new Function("return ".concat(t))
                } catch (a) {
                    var o = t.replace(nd, "").match(td);
                    n(o ? "avoid using JavaScript keyword as property name: " + '"'.concat(o[0], '"\n  Raw expression: ').concat(e.trim()) : "invalid expression: ".concat(a.message, " in\n\n") + "    ".concat(t, "\n\n") + "  Raw expression: ".concat(e.trim(), "\n"), r)
                }
            }
            function ld(t, e, n, r) {
                try {
                    new Function(t,"")
                } catch (o) {
                    n("invalid function parameter expression: ".concat(o.message, " in\n\n") + "    ".concat(t, "\n\n") + "  Raw expression: ".concat(e.trim(), "\n"), r)
                }
            }
            var ud = 2;
            function fd(t, e, n) {
                void 0 === e && (e = 0),
                void 0 === n && (n = t.length);
                for (var r = t.split(/\r?\n/), o = 0, a = [], i = 0; i < r.length; i++)
                    if ((o += r[i].length + 1) >= e) {
                        for (var s = i - ud; s <= i + ud || n > o; s++)
                            if (!(s < 0 || s >= r.length)) {
                                a.push("".concat(s + 1).concat(dd(" ", 3 - String(s + 1).length), "|  ").concat(r[s]));
                                var c = r[s].length;
                                if (s === i) {
                                    var l = e - (o - c) + 1
                                      , u = n > o ? c - l : n - e;
                                    a.push("   |  " + dd(" ", l) + dd("^", u))
                                } else if (s > i) {
                                    if (n > o) {
                                        var f = Math.min(n - o, c);
                                        a.push("   |  " + dd("^", f))
                                    }
                                    o += c + 1
                                }
                            }
                        break
                    }
                return a.join("\n")
            }
            function dd(t, e) {
                var n = "";
                if (e > 0)
                    for (; 1 & e && (n += t),
                    !((e >>>= 1) <= 0); )
                        t += t;
                return n
            }
            function pd(t, e) {
                try {
                    return new Function(t)
                } catch (n) {
                    return e.push({
                        err: n,
                        code: t
                    }),
                    R
                }
            }
            function vd(t) {
                var e = Object.create(null);
                return function(n, r, o) {
                    var a = (r = P({}, r)).warn || ia;
                    delete r.warn;
                    try {
                        new Function("return 1")
                    } catch (t) {
                        t.toString().match(/unsafe-eval|CSP/) && a("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")
                    }
                    var i = r.delimiters ? String(r.delimiters) + n : n;
                    if (e[i])
                        return e[i];
                    var s = t(n, r);
                    s.errors && s.errors.length && (r.outputSourceRange ? s.errors.forEach((function(t) {
                        a("Error compiling template:\n\n".concat(t.msg, "\n\n") + fd(n, t.start, t.end), o)
                    }
                    )) : a("Error compiling template:\n\n".concat(n, "\n\n") + s.errors.map((function(t) {
                        return "- ".concat(t)
                    }
                    )).join("\n") + "\n", o)),
                    s.tips && s.tips.length && (r.outputSourceRange ? s.tips.forEach((function(t) {
                        return sa(t.msg, o)
                    }
                    )) : s.tips.forEach((function(t) {
                        return sa(t, o)
                    }
                    )));
                    var c = {}
                      , l = [];
                    return c.render = pd(s.render, l),
                    c.staticRenderFns = s.staticRenderFns.map((function(t) {
                        return pd(t, l)
                    }
                    )),
                    s.errors && s.errors.length || !l.length || a("Failed to generate render function:\n\n" + l.map((function(t) {
                        var e = t.err
                          , n = t.code;
                        return "".concat(e.toString(), " in\n\n").concat(n, "\n")
                    }
                    )).join("\n"), o),
                    e[i] = c
                }
            }
            function hd(t) {
                return function(e) {
                    function n(n, r) {
                        var o = Object.create(e)
                          , a = []
                          , i = []
                          , s = function(t, e, n) {
                            (n ? i : a).push(t)
                        };
                        if (r) {
                            if (r.outputSourceRange) {
                                var c = n.match(/^\s*/)[0].length;
                                s = function(t, e, n) {
                                    var r = "string" == typeof t ? {
                                        msg: t
                                    } : t;
                                    e && (null != e.start && (r.start = e.start + c),
                                    null != e.end && (r.end = e.end + c)),
                                    (n ? i : a).push(r)
                                }
                            }
                            for (var l in r.modules && (o.modules = (e.modules || []).concat(r.modules)),
                            r.directives && (o.directives = P(Object.create(e.directives || null), r.directives)),
                            r)
                                "modules" !== l && "directives" !== l && (o[l] = r[l])
                        }
                        o.warn = s;
                        var u = t(n.trim(), o);
                        return rd(u.ast, s),
                        u.errors = a,
                        u.tips = i,
                        u
                    }
                    return {
                        compile: n,
                        compileToFunctions: vd(n)
                    }
                }
            }
            var md, gd = hd((function(t, e) {
                var n = $u(t.trim(), e);
                !1 !== e.optimize && cf(n, e);
                var r = Af(n, e);
                return {
                    ast: n,
                    render: r.render,
                    staticRenderFns: r.staticRenderFns
                }
            }
            ))(af).compileToFunctions;
            function yd(t) {
                return (md = md || document.createElement("div")).innerHTML = t ? '<a href="\n"/>' : '<div a="\n"/>',
                md.innerHTML.indexOf("&#10;") > 0
            }
            var _d = !!et && yd(!1)
              , bd = !!et && yd(!0)
              , wd = $((function(t) {
                var e = Ti(t);
                return e && e.innerHTML
            }
            ))
              , xd = Ha.prototype.$mount;
            function kd(t) {
                if (t.outerHTML)
                    return t.outerHTML;
                var e = document.createElement("div");
                return e.appendChild(t.cloneNode(!0)),
                e.innerHTML
            }
            function Cd(t, e) {
                var n = new xo(gt,t,R,{
                    sync: !0
                });
                e && (n.update = function() {
                    e((function() {
                        return n.run()
                    }
                    ))
                }
                )
            }
            return Ha.prototype.$mount = function(t, e) {
                if ((t = t && Ti(t)) === document.body || t === document.documentElement)
                    return ia("Do not mount Vue to <html> or <body> - mount to normal elements instead."),
                    this;
                var n = this.$options;
                if (!n.render) {
                    var r = n.template;
                    if (r)
                        if ("string" == typeof r)
                            "#" === r.charAt(0) && ((r = wd(r)) || ia("Template element not found or is empty: ".concat(n.template), this));
                        else {
                            if (!r.nodeType)
                                return ia("invalid template option:" + r, this),
                                this;
                            r = r.innerHTML
                        }
                    else
                        t && (r = kd(t));
                    if (r) {
                        K.performance && we && we("compile");
                        var o = gd(r, {
                            outputSourceRange: !0,
                            shouldDecodeNewlines: _d,
                            shouldDecodeNewlinesForHref: bd,
                            delimiters: n.delimiters,
                            comments: n.comments
                        }, this)
                          , a = o.render
                          , i = o.staticRenderFns;
                        n.render = a,
                        n.staticRenderFns = i,
                        K.performance && we && (we("compile end"),
                        xe("vue ".concat(this._name, " compile"), "compile", "compile end"))
                    }
                }
                return xd.call(this, t, e)
            }
            ,
            Ha.compile = gd,
            P(Ha, go),
            Ha.effect = Cd,
            Ha
        }()
    }
}
  , e = {};
function n(r) {
    var o = e[r];
    if (void 0 !== o)
        return o.exports;
    var a = e[r] = {
        exports: {}
    };
    return t[r].call(a.exports, a, a.exports, n),
    a.exports
}
n.n = t => {
    var e = t && t.__esModule ? () => t.default : () => t;
    return n.d(e, {
        a: e
    }),
    e
}
,
n.d = (t, e) => {
    for (var r in e)
        n.o(e, r) && !n.o(t, r) && Object.defineProperty(t, r, {
            enumerable: !0,
            get: e[r]
        })
}
,
n.g = function() {
    if ("object" == typeof globalThis)
        return globalThis;
    try {
        return this || new Function("return this")()
    } catch (t) {
        if ("object" == typeof window)
            return window
    }
}(),
n.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e),
( () => {
    "use strict";
    var t = n(52)
      , e = n.n(t)
      , r = function() {
        var t = this
          , e = t._self._c;
        return e("div", {
            staticClass: "container"
        }, [e("div", {
            ref: "thisStepper",
            staticClass: "row simple-stepper pb-12",
            attrs: {
                id: t.stepperId,
                lang: t.data.lang_code
            }
        }, [e("div", {
            staticClass: "medium-12"
        }, [t.data.stepper_header ? e("h2", [t._v(t._s(t.data.stepper_header))]) : t._e(), t._v(" "), t.data.stepper_description ? e("p", [t._v(t._s(t.data.stepper_description))]) : t._e(), t._v(" "), t._l(t.data.questions, (function(n, r) {
            return t.stepIsVisible(r) || 0 === r ? e("div", {
                class: t.elementClasses("input-row", t.answeredClass(n, r)),
                attrs: {
                    id: "stepper-row-".concat(r + 1)
                }
            }, [e("div", {
                staticClass: "question-number mr-2"
            }, [e("div", {
                staticClass: "number-container"
            }, [e("div", {
                staticClass: "number"
            }, [t._v(t._s(t.stepNumber(r)))])])]), t._v(" "), e("div", {
                staticClass: "question-and-answer pl-4 full-width"
            }, [e("h3", {
                staticClass: "question mt-6"
            }, [t._v("\n            " + t._s(n.question) + "\n          ")]), t._v(" "), e("div", {
                staticClass: "stepper-description",
                domProps: {
                    innerHTML: t._s(t.processLinksInContent(n.description))
                },
                on: {
                    click: t.handleLinkAlert
                }
            }), t._v(" "), "radio" === n.type ? e("fieldset", {
                staticClass: "m-0 p-0 no-border",
                on: {
                    click: function(e) {
                        return t.showPrintLink()
                    }
                }
            }, [e("legend", {
                staticClass: "sr-only"
            }, [t._v(t._s(n.question))]), t._v(" "), t._l(n.options, (function(o, a) {
                return e("RadioButton", {
                    key: a,
                    attrs: {
                        stepIndex: r,
                        id: t.formOptionId(n.question, o.value),
                        name: t.formOptionName(r, o),
                        value: o.value,
                        text: o.text,
                        option: o,
                        checked: t.optionIsChecked(o.value, r)
                    }
                })
            }
            ))], 2) : t._e(), t._v(" "), t.getResult(r) && t.getResult(r).result ? e("Result", {
                attrs: {
                    data: t.getResult(r).result,
                    printLink: t.printLink,
                    selectedValue: t.selectedValue
                }
            }) : t._e()], 1)]) : t._e()
        }
        ))], 2), t._v(" "), e("iframe", {
            staticStyle: {
                height: "0",
                width: "0",
                visiblity: "hidden",
                border: "none"
            },
            attrs: {
                id: "print-frame",
                "aria-hidden": "true",
                title: "print_frame",
                name: "print_frame",
                tabindex: "-1",
                srcdoc: t.printCss
            }
        })])])
    };
    r._withStripped = !0;
    var o = function() {
        var t = this
          , e = t._self._c;
        return e("div", t._l(t.data, (function(n, r, o) {
            return e("div", {
                staticClass: "row"
            }, ["alert" === r ? e("div", {
                staticClass: "medium-12"
            }, [e("Alert", {
                attrs: {
                    data: t.data.alert
                }
            })], 1) : t._e(), t._v(" "), "markup" === r ? e("div", {
                staticClass: "medium-12"
            }, [e("div", {
                domProps: {
                    innerHTML: t._s(t.data.markup)
                }
            })]) : t._e(), t._v(" "), "button" === r || o === Object.keys(t.data).length - 1 ? e("div", {
                class: t.setRowClasses()
            }, ["button" === r ? e("div", {
                staticClass: "mr-8"
            }, [e("Button", {
                attrs: {
                    data: t.data.button
                }
            })], 1) : t._e(), t._v(" "), t.printLink && !t.firefoxOnAndroid() ? e("div", {
                staticClass: "inline-flex print-btn mr-auto"
            }, [e("span", {
                staticClass: "icon print"
            }), t._v(" "), e("a", {
                staticClass: "text-link no-icon mt-4 pr-0",
                attrs: {
                    tabindex: "0"
                },
                on: {
                    click: t.printStepper
                }
            }, [t._v("Print Results")])]) : t._e(), t._v(" "), e("div", {
                staticClass: "start-over-container"
            }, [e("a", {
                staticClass: "btn tertiary pl-0 start-over",
                attrs: {
                    tabindex: "0"
                },
                on: {
                    click: t.goBacktoStart
                }
            }, [t._v("\n          Start Over\n        ")])])]) : t._e()])
        }
        )), 0)
    };
    o._withStripped = !0;
    var a = function() {
        var t = this
          , e = t._self._c;
        return e("div", {
            staticClass: "alert-wrapper full-width pt-6 pb-8"
        }, [e("div", {
            class: t.setAlertClasses(),
            attrs: {
                id: "coronavirus-alert"
            }
        }, [e("div", {
            staticClass: "usa-alert-body"
        }, [e("div", {
            staticClass: "usa-alert-text"
        }, [e("h2", {
            staticClass: "usa-alert-heading headline-4"
        }, [t._v("\n          " + t._s(t.data.header) + "\n        ")]), t._v(" "), e("div", {
            domProps: {
                innerHTML: t._s(t.processLinksInContent(t.data.content))
            },
            on: {
                click: t.handleLinkAlert
            }
        })])])])])
    };
    a._withStripped = !0;
    function i(t, e, n, r, o, a, i, s) {
        var c, l = "function" == typeof t ? t.options : t;
        if (e && (l.render = e,
        l.staticRenderFns = n,
        l._compiled = !0),
        r && (l.functional = !0),
        a && (l._scopeId = "data-v-" + a),
        i ? (c = function(t) {
            (t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__),
            o && o.call(this, t),
            t && t._registeredComponents && t._registeredComponents.add(i)
        }
        ,
        l._ssrRegister = c) : o && (c = s ? function() {
            o.call(this, (l.functional ? this.parent : this).$root.$options.shadowRoot)
        }
        : o),
        c)
            if (l.functional) {
                l._injectStyles = c;
                var u = l.render;
                l.render = function(t, e) {
                    return c.call(e),
                    u(t, e)
                }
            } else {
                var f = l.beforeCreate;
                l.beforeCreate = f ? [].concat(f, c) : [c]
            }
        return {
            exports: t,
            options: l
        }
    }
    const s = i({
        name: "Alert",
        props: ["data"],
        data: function() {
            return {
                extLinks: []
            }
        },
        methods: {
            setAlertClasses: function() {
                var t = "usa-alert";
                return "success" === this.data.type && (t = "".concat(t, " usa-alert-success")),
                "info" === this.data.type && (t = "".concat(t, " usa-alert-info")),
                "error" === this.data.type && (t = "".concat(t, " usa-alert-error")),
                "warning" === this.data.type && (t = "".concat(t, " usa-alert-warning")),
                t
            }
        }
    }, a, [], !1, null, null, null).exports;
    var c = function() {
        var t = this;
        return (0,
        t._self._c)("a", {
            staticClass: "btn",
            attrs: {
                href: t.data.link,
                target: "_new"
            },
            on: {
                click: t.handleLinkAlert
            }
        }, [t._v("\n  " + t._s(t.data.value) + "\n")])
    };
    c._withStripped = !0;
    var l = i({
        name: "Button",
        props: ["data"]
    }, c, [], !1, null, null, null);
    const u = i({
        name: "Result",
        props: ["data", "printLink", "selectedValue"],
        components: {
            Alert: s,
            Button: l.exports
        },
        methods: {
            setRowClasses: function() {
                var t = this.webFriendlyName(this.selectedValue);
                return "medium-12 stepper-button-row-".concat(t, " flex flex-align-items-center flex-column-m")
            },
            showStartOver: function() {
                return !this.data.button
            },
            goBacktoStart: function() {
                this.$parent.resetStepper(),
                this.$parent.scrollToFirstStep()
            },
            printStepper: function() {
                this.$parent.printStepper()
            },
            firefoxOnAndroid: function() {
                return this.is_firefox() && this.is_android()
            }
        }
    }, o, [], !1, null, null, null).exports;
    var f = function() {
        var t = this
          , e = t._self._c;
        return e("Fragment", [e("label", {
            class: t.labelClasses()
        }, [e("input", {
            staticClass: "radio-button-input",
            attrs: {
                type: "radio",
                name: t.name
            },
            domProps: {
                value: t.value,
                checked: t.checked
            },
            on: {
                click: function(e) {
                    return t.$parent.processAnswer(t.option, t.stepIndex)
                }
            }
        }), t._v(" "), e("span", [t._v(t._s(t.text))])])])
    };
    function d(t, e, n) {
        return e in t ? Object.defineProperty(t, e, {
            value: n,
            enumerable: !0,
            configurable: !0,
            writable: !0
        }) : t[e] = n,
        t
    }
    function p(t) {
        for (var e = 1; e < arguments.length; e++) {
            var n = null != arguments[e] ? arguments[e] : {}
              , r = Object.keys(n);
            "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(t) {
                return Object.getOwnPropertyDescriptor(n, t).enumerable
            }
            )))),
            r.forEach((function(e) {
                d(t, e, n[e])
            }
            ))
        }
        return t
    }
    f._withStripped = !0;
    var v = function(t, e, n) {
        Object.defineProperty(t, e, {
            configurable: !0,
            get: function() {
                return n
            },
            set: function(t) {
                console.warn("tried to set frozen property ".concat(e, " with ").concat(t))
            }
        })
    }
      , h = {
        abstract: !0,
        name: "Fragment",
        props: {
            name: {
                type: String,
                default: function() {
                    return Math.floor(Date.now() * Math.random()).toString(16)
                }
            },
            html: {
                type: String,
                default: null
            }
        },
        mounted: function() {
            var t = this.$el
              , e = t.parentNode;
            t.__isFragment = !0,
            t.__isMounted = !1;
            var n = document.createComment("fragment#".concat(this.name, "#head"))
              , r = document.createComment("fragment#".concat(this.name, "#tail"));
            t.__head = n,
            t.__tail = r;
            var o = document.createDocumentFragment();
            if (o.appendChild(n),
            Array.from(t.childNodes).forEach((function(e) {
                var n = !e.hasOwnProperty("__isFragmentChild__");
                o.appendChild(e),
                n && (v(e, "parentNode", t),
                v(e, "__isFragmentChild__", !0))
            }
            )),
            o.appendChild(r),
            this.html) {
                var a = document.createElement("template");
                a.innerHTML = this.html,
                Array.from(a.content.childNodes).forEach((function(t) {
                    o.appendChild(t)
                }
                ))
            }
            var i = t.nextSibling;
            e.insertBefore(o, t, !0),
            e.removeChild(t),
            v(t, "parentNode", e),
            v(t, "nextSibling", i),
            i && v(i, "previousSibling", t),
            t.__isMounted = !0
        },
        render: function(t) {
            var e = this
              , n = this.$slots.default;
            return n && n.length && n.forEach((function(t) {
                return t.data = p({}, t.data, {
                    attrs: p({
                        fragment: e.name
                    }, (t.data || {}).attrs)
                })
            }
            )),
            t("div", {
                attrs: {
                    fragment: this.name
                }
            }, n)
        }
    };
    const m = i({
        name: "RadioButton",
        props: ["stepIndex", "id", "option", "name", "value", "text", "checked"],
        components: {
            Fragment: h
        },
        methods: {
            labelClasses: function() {
                var t = "radio-button-label flex";
                return this.checked && (t = "".concat(t, " checked")),
                t
            }
        }
    }, f, [], !1, null, null, null).exports;
    n(136);
    const g = {
        name: "App",
        props: ["data", "options"],
        data: function() {
            return {
                stepperId: this.data.anchor_link_id ? this.data.anchor_link_id : this.data.element_id,
                visibleSteps: [],
                selected: [],
                results: [],
                printLink: !1,
                printCss: "",
                printPopUpPage: this.options.print.printPopupPage,
                selectedValue: "",
                touchDevice: "ontouchstart" in document.documentElement
            }
        },
        components: {
            Result: u,
            RadioButton: m
        },
        mounted: function() {
            this.resetStepper();
            var t = [];
            this.options && this.options.print && (this.printLink = this.options.print.showPrintLink,
            this.options.print.printCssFiles.forEach((function(e) {
                t.push('<link href="'.concat(e, '" rel="stylesheet" type="text/css">'))
            }
            )));
            this.printCss = t.join("\r\n")
        },
        methods: {
            stepNumber: function(t) {
                return this.visibleSteps.findIndex((function(e) {
                    return e.stepIndex === t
                }
                )) + 1
            },
            resetStepper: function() {
                this.visibleSteps = [{
                    stepIndex: 0
                }],
                this.results = [],
                this.selectedValue = ""
            },
            scrollToFirstStep: function() {
                this.scrollToStep(0)
            },
            stepIsVisible: function(t) {
                return this.visibleSteps.filter((function(e) {
                    return e.stepIndex === t
                }
                )).length
            },
            optionIsChecked: function(t, e) {
                return Boolean(this.visibleSteps.findIndex((function(n) {
                    return n.stepIndex === e && n.answer === t
                }
                )) > -1)
            },
            processAnswer: function(t, e) {
                if (this.selectedValue = "",
                this.visibleSteps = this.visibleSteps.filter((function(t) {
                    return t.stepIndex <= e
                }
                )),
                this.results = [],
                t.value && (this.selectedValue = t.value,
                this.setAnswer(e, t.value),
                t.go_to || this.scrollToStep(e + 1)),
                t.go_to) {
                    var n = t.go_to - 1;
                    this.setAnswer(n),
                    this.scrollToStep(n)
                }
                t.result && !t.go_to && (this.results = this.results.filter((function(t) {
                    return t.stepIndex !== e
                }
                )),
                this.results.push({
                    stepIndex: e,
                    result: t.result
                }))
            },
            setAnswer: function(t, e) {
                this.results = [],
                this.visibleSteps = this.visibleSteps.filter((function(e) {
                    return e.stepIndex !== t
                }
                )),
                this.visibleSteps.push({
                    stepIndex: t,
                    answer: e
                })
            },
            getResult: function(t) {
                return this.results ? this.results.filter((function(e) {
                    return e.stepIndex === t
                }
                ))[0] : []
            },
            showPrintLink: function() {
                this.options && this.options.print.showPrintLink && this.visibleSteps.length === this.visibleSteps.filter((function(t) {
                    return t.answer
                }
                )).length ? this.printLink = !0 : this.printLink = !1
            },
            formOptionId: function(t, e) {
                return this.createFormElementId("".concat(this.webFriendlyName(t).substring(0, 30), "-").concat(this.webFriendlyName(e)))
            },
            formOptionName: function(t) {
                return "".concat(this.stepperId, "-input-").concat(t + 1)
            },
            answeredClass: function(t, e) {
                return this.visibleSteps.filter((function(t) {
                    return t.stepIndex > e
                }
                )).length ? "answered" : ""
            },
            scrollToStep: function(t) {
                var e = this;
                t !== this.data.questions.length && setTimeout((function() {
                    var n = document.querySelector("#".concat(e.stepperId, " #stepper-row-").concat(t + 1));
                    n && n.scrollIntoView({
                        behavior: "smooth"
                    })
                }
                ), 200)
            },
            printStepper: function() {
                var t = this.$refs.thisStepper.outerHTML
                  , e = this.printCss;
                this.is_safari() && !this.touchDevice || this.is_chrome() && this.is_ios() ? this.printPopUp(t, e, this.printPopUpPage) : this.printFromIframe(t, e)
            }
        }
    };
    const y = i(g, r, [], !1, null, null, null).exports;
    n(171).i(e()),
    window.FGStepper = function(t, n) {
        var r = document.getElementById(t.element_id)
          , o = document.querySelector('script[data-drupal-selector="drupal-settings-json"]');
        if (JSON.parse(o.innerHTML).data && JSON.parse(o.innerHTML).data.extlink) {
            var a = o ? JSON.parse(o.innerHTML).data.extlink : "";
            a && localStorage.setItem("extlink_data", JSON.stringify(a))
        }
        JSON.parse(o.innerHTML).data && JSON.parse(o.innerHTML).data.extlink || !localStorage.getItem("extlink_data") || localStorage.removeItem("extlink_data"),
        new (e())({
            el: r,
            render: function(e) {
                return e(y, {
                    props: {
                        data: t,
                        options: n
                    }
                })
            }
        })
    }
}
)()

}
)();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants