diff options
author | Volker E <volker.e@wikimedia.org> | 2023-09-27 11:44:43 -0700 |
---|---|---|
committer | Eric Gardner <gardner.ec@gmail.com> | 2023-09-27 14:10:59 -0700 |
commit | 5863935f150a1536ce3aea6b9fa7b3f0f93f0c4d (patch) | |
tree | 6220b9f48b09f287dfb81e9082f858256e2cda6e /resources/lib/codex-search | |
parent | b9219da2202bd546ad1bc52e0287c4397b42f145 (diff) | |
download | mediawikicore-5863935f150a1536ce3aea6b9fa7b3f0f93f0c4d.tar.gz mediawikicore-5863935f150a1536ce3aea6b9fa7b3f0f93f0c4d.zip |
Update Codex from v0.19.0 to v0.20.0
In preparation for Codex's upcoming 1.0 release, this patch makes
some additional changes in how the library is vendored into MW.
* foreign-resources.yml: codex-search is removed as a stand-alone
package (the upstream NPM package has also been deprecated).
The search-specific build of Codex now lives in the main "codex"
package. The foreign-resources.yml file has been updated to pull
in the codex-search scripts and styles from this new location.
* resources.php: The resource module definitions for codex-search
and codex-search-styles have been updated to use the relocated
CSS/JS files.
* UMD bundles: Upstream, Codex now designates the CJS bundle as the
primary entry point. A UMD bundle of the main Codex library is still
produced but this is intended mainly for usage through CDNs or basic
script-tag inclusion; in the future the codex.umd.js bundle may be
removed from MediaWiki and users should not rely on it. The
codex-search.umd.js bundle has been removed.
* MJS bundles: Codex also produces .mjs (ESM) bundles upstream;
for users outside of MediaWiki these are the recommended bundles
to use. However, within MediaWiki only the CommonJS build should be
used, as ResourceLoader does not support delivery of ESM scripts at
present. The codex.mjs and codex-search.mjs bundles have been removed
from MediaWiki with this patch.
Bug: T335324
Bug: T340020
Bug: T340119
Bug: T344848
Bug: T345281
Bug: T345688
Bug: T346099
Bug: T346435
Bug: T346988
Change-Id: I84b26ddf5f9a0a98faf0df8c7acaa5f678032786
Diffstat (limited to 'resources/lib/codex-search')
-rw-r--r-- | resources/lib/codex-search/LICENSE | 339 | ||||
-rw-r--r-- | resources/lib/codex-search/README.md | 5 | ||||
-rw-r--r-- | resources/lib/codex-search/codex-search.mjs | 2097 | ||||
-rw-r--r-- | resources/lib/codex-search/codex-search.style-legacy-rtl.css | 1 | ||||
-rw-r--r-- | resources/lib/codex-search/codex-search.style-legacy.css | 1 | ||||
-rw-r--r-- | resources/lib/codex-search/codex-search.style-rtl.css | 1 | ||||
-rw-r--r-- | resources/lib/codex-search/codex-search.style.css | 1 | ||||
-rw-r--r-- | resources/lib/codex-search/codex-search.umd.js | 1 |
8 files changed, 0 insertions, 2446 deletions
diff --git a/resources/lib/codex-search/LICENSE b/resources/lib/codex-search/LICENSE deleted file mode 100644 index d159169d1050..000000000000 --- a/resources/lib/codex-search/LICENSE +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/resources/lib/codex-search/README.md b/resources/lib/codex-search/README.md deleted file mode 100644 index 3cd51122907f..000000000000 --- a/resources/lib/codex-search/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Codex-search - -This package is a subset of the `@wikimedia/codex` package, containing only the CdxTypeaheadSearch -component. It's only intended for use in MediaWiki; do not use this package elsewhere. -Use the `@wikimedia/codex` package instead.
\ No newline at end of file diff --git a/resources/lib/codex-search/codex-search.mjs b/resources/lib/codex-search/codex-search.mjs deleted file mode 100644 index 762ce473d62c..000000000000 --- a/resources/lib/codex-search/codex-search.mjs +++ /dev/null @@ -1,2097 +0,0 @@ -var Fe = Object.defineProperty, Ne = Object.defineProperties; -var Oe = Object.getOwnPropertyDescriptors; -var re = Object.getOwnPropertySymbols; -var we = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable; -var _e = (e, t, n) => t in e ? Fe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ke = (e, t) => { - for (var n in t || (t = {})) - we.call(t, n) && _e(e, n, t[n]); - if (re) - for (var n of re(t)) - xe.call(t, n) && _e(e, n, t[n]); - return e; -}, Me = (e, t) => Ne(e, Oe(t)); -var ne = (e, t) => { - var n = {}; - for (var a in e) - we.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]); - if (e != null && re) - for (var a of re(e)) - t.indexOf(a) < 0 && xe.call(e, a) && (n[a] = e[a]); - return n; -}; -var ye = (e, t, n) => new Promise((a, s) => { - var r = (u) => { - try { - i(n.next(u)); - } catch (d) { - s(d); - } - }, o = (u) => { - try { - i(n.throw(u)); - } catch (d) { - s(d); - } - }, i = (u) => u.done ? a(u.value) : Promise.resolve(u.value).then(r, o); - i((n = n.apply(e, t)).next()); -}); -import { ref as b, onMounted as X, defineComponent as E, computed as h, openBlock as p, createElementBlock as g, normalizeClass as A, toDisplayString as B, createCommentVNode as x, resolveComponent as L, createVNode as W, Transition as qe, withCtx as H, normalizeStyle as le, createElementVNode as S, createTextVNode as ae, withModifiers as Se, renderSlot as D, createBlock as K, resolveDynamicComponent as He, Fragment as $e, warn as Te, watch as G, getCurrentInstance as ze, onUnmounted as Ve, toRef as z, nextTick as de, withDirectives as Be, mergeProps as J, renderList as Ue, vShow as Qe, Comment as Pe, withKeys as Ie, inject as ce, vModelDynamic as je } from "vue"; -const We = '<path d="M12.43 14.34A5 5 0 0110 15a5 5 0 113.95-2L17 16.09V3a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 001.45-.63z"/><circle cx="10" cy="10" r="3"/>', Ge = '<path d="M10 0a10 10 0 1010 10A10 10 0 0010 0zm5.66 14.24-1.41 1.41L10 11.41l-4.24 4.25-1.42-1.42L8.59 10 4.34 5.76l1.42-1.42L10 8.59l4.24-4.24 1.41 1.41L11.41 10z"/>', Je = '<path d="M19 3H1v14h18zM3 14l3.5-4.5 2.5 3L12.5 8l4.5 6z"/><path d="M19 5H1V3h18zm0 12H1v-2h18z"/>', Xe = '<path d="M12.2 13.6a7 7 0 111.4-1.4l5.4 5.4-1.4 1.4zM3 8a5 5 0 1010 0A5 5 0 003 8z"/>', Ye = We, Ze = Ge, et = Je, tt = Xe; -function nt(e, t, n) { - if (typeof e == "string" || "path" in e) - return e; - if ("shouldFlip" in e) - return e.ltr; - if ("rtl" in e) - return n === "rtl" ? e.rtl : e.ltr; - const a = t in e.langCodeMap ? e.langCodeMap[t] : e.default; - return typeof a == "string" || "path" in a ? a : a.ltr; -} -function at(e, t) { - if (typeof e == "string") - return !1; - if ("langCodeMap" in e) { - const n = t in e.langCodeMap ? e.langCodeMap[t] : e.default; - if (typeof n == "string") - return !1; - e = n; - } - if ("shouldFlipExceptions" in e && Array.isArray(e.shouldFlipExceptions)) { - const n = e.shouldFlipExceptions.indexOf(t); - return n === void 0 || n === -1; - } - return "shouldFlip" in e ? e.shouldFlip : !1; -} -function lt(e) { - const t = b(null); - return X(() => { - const n = window.getComputedStyle(e.value).direction; - t.value = n === "ltr" || n === "rtl" ? n : null; - }), t; -} -function ot(e) { - const t = b(""); - return X(() => { - let n = e.value; - for (; n && n.lang === ""; ) - n = n.parentElement; - t.value = n ? n.lang : null; - }), t; -} -function U(e) { - return (t) => typeof t == "string" && e.indexOf(t) !== -1; -} -const be = "cdx", st = [ - "default", - "progressive", - "destructive" -], it = [ - "normal", - "primary", - "quiet" -], ut = [ - "medium", - "large" -], rt = [ - "x-small", - "small", - "medium" -], dt = [ - "text", - "search", - "number", - "email", - "month", - "password", - "tel", - "url", - "week", - "date", - "datetime-local", - "time" -], Le = [ - "default", - "error" -], ct = 120, ht = 500, j = "cdx-menu-footer-item", ft = Symbol("CdxFieldInputId"), pt = Symbol("CdxFieldDescriptionId"), mt = Symbol("CdxFieldStatus"), gt = Symbol("CdxDisabled"), vt = U(rt), yt = E({ - name: "CdxIcon", - props: { - /** The SVG path or an object containing that path plus other data. */ - icon: { - type: [String, Object], - required: !0 - }, - /** - * Accessible label for the icon. If not included, the icon will be hidden from screen - * readers via `aria-hidden="true"`. Browsers also display this label as a tooltip when the - * user hovers over the icon. Note that this label is not rendered as visible text next - * to the icon. - */ - iconLabel: { - type: String, - default: "" - }, - /** - * Explicitly set the language code to use for the icon. See - * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/lang. - * Defaults to the lang attribute of the nearest ancestor at mount time. - */ - lang: { - type: String, - default: null - }, - /** - * Explicitly set the direction to use for the icon. See - * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir. - * Defaults to the computed direction at mount time. - */ - dir: { - type: String, - default: null - }, - /** - * Specify icon size by choosing one of several pre-defined size - * options. See the type documentation for supported size options. - * The `medium` size is used by default if no size prop is provided. - */ - size: { - type: String, - default: "medium", - validator: vt - } - }, - setup(e) { - const t = b(), n = lt(t), a = ot(t), s = h(() => e.dir || n.value), r = h(() => e.lang || a.value), o = h(() => ({ - "cdx-icon--flipped": s.value === "rtl" && r.value !== null && at(e.icon, r.value), - [`cdx-icon--${e.size}`]: !0 - })), i = h( - () => nt(e.icon, r.value || "", s.value || "ltr") - ), u = h(() => typeof i.value == "string" ? i.value : ""), d = h(() => typeof i.value != "string" ? i.value.path : ""); - return { - rootElement: t, - rootClasses: o, - iconSvg: u, - iconPath: d - }; - } -}); -const F = (e, t) => { - const n = e.__vccOpts || e; - for (const [a, s] of t) - n[a] = s; - return n; -}, bt = ["aria-hidden"], Ct = { key: 0 }, $t = ["innerHTML"], It = ["d"]; -function St(e, t, n, a, s, r) { - return p(), g("span", { - ref: "rootElement", - class: A(["cdx-icon", e.rootClasses]) - }, [ - (p(), g("svg", { - xmlns: "http://www.w3.org/2000/svg", - "xmlns:xlink": "http://www.w3.org/1999/xlink", - width: "20", - height: "20", - viewBox: "0 0 20 20", - "aria-hidden": e.iconLabel ? void 0 : !0 - }, [ - e.iconLabel ? (p(), g("title", Ct, B(e.iconLabel), 1)) : x("", !0), - e.iconSvg ? (p(), g("g", { - key: 1, - innerHTML: e.iconSvg - }, null, 8, $t)) : (p(), g("path", { - key: 2, - d: e.iconPath - }, null, 8, It)) - ], 8, bt)) - ], 2); -} -const he = /* @__PURE__ */ F(yt, [["render", St]]), _t = E({ - name: "CdxThumbnail", - components: { CdxIcon: he }, - props: { - /** - * Thumbnail data. - */ - thumbnail: { - type: [Object, null], - default: null - }, - /** - * Thumbnail placeholder icon. - */ - placeholderIcon: { - type: [String, Object], - default: et - } - }, - setup: (e) => { - const t = b(!1), n = b({}), a = (s) => { - const r = s.replace(/([\\"\n])/g, "\\$1"), o = new Image(); - o.onload = () => { - n.value = { backgroundImage: `url("${r}")` }, t.value = !0; - }, o.onerror = () => { - t.value = !1; - }, o.src = r; - }; - return X(() => { - var s; - (s = e.thumbnail) != null && s.url && a(e.thumbnail.url); - }), { - thumbnailStyle: n, - thumbnailLoaded: t - }; - } -}); -const wt = { class: "cdx-thumbnail" }, xt = { - key: 0, - class: "cdx-thumbnail__placeholder" -}; -function kt(e, t, n, a, s, r) { - const o = L("cdx-icon"); - return p(), g("span", wt, [ - e.thumbnailLoaded ? x("", !0) : (p(), g("span", xt, [ - W(o, { - icon: e.placeholderIcon, - class: "cdx-thumbnail__placeholder__icon--vue" - }, null, 8, ["icon"]) - ])), - W(qe, { name: "cdx-thumbnail__image" }, { - default: H(() => [ - e.thumbnailLoaded ? (p(), g("span", { - key: 0, - style: le(e.thumbnailStyle), - class: "cdx-thumbnail__image" - }, null, 4)) : x("", !0) - ]), - _: 1 - }) - ]); -} -const Mt = /* @__PURE__ */ F(_t, [["render", kt]]); -function Tt(e) { - return e.replace(/([\\{}()|.?*+\-^$[\]])/g, "\\$1"); -} -const Vt = "[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣ৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఀ-ఄా-ౄె-ైొ-్ౕౖౢౣಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝᠋-᠍ᢅᢆᢩᤠ-ᤫᤰ-᤻ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼᪰-᪾ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-ᮭ᯦-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣠-꣱ꣿꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꧥꨩ-ꨶꩃꩌꩍꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭ﬞ︀-️︠-︯]"; -function Bt(e, t) { - if (!e) - return [t, "", ""]; - const n = Tt(e), a = new RegExp( - // Per https://www.regular-expressions.info/unicode.html, "any code point that is not a - // combining mark can be followed by any number of combining marks." See also the - // discussion in https://phabricator.wikimedia.org/T35242. - n + Vt + "*", - "i" - ).exec(t); - if (!a || a.index === void 0) - return [t, "", ""]; - const s = a.index, r = s + a[0].length, o = t.slice(s, r), i = t.slice(0, s), u = t.slice(r, t.length); - return [i, o, u]; -} -const Lt = E({ - name: "CdxSearchResultTitle", - props: { - /** - * Title text. - */ - title: { - type: String, - required: !0 - }, - /** - * The current search query. - */ - searchQuery: { - type: String, - default: "" - } - }, - setup: (e) => ({ - titleChunks: h(() => Bt(e.searchQuery, String(e.title))) - }) -}); -const Kt = { class: "cdx-search-result-title" }, At = { class: "cdx-search-result-title__match" }; -function Rt(e, t, n, a, s, r) { - return p(), g("span", Kt, [ - S("bdi", null, [ - ae(B(e.titleChunks[0]), 1), - S("span", At, B(e.titleChunks[1]), 1), - ae(B(e.titleChunks[2]), 1) - ]) - ]); -} -const Dt = /* @__PURE__ */ F(Lt, [["render", Rt]]), Et = E({ - name: "CdxMenuItem", - components: { CdxIcon: he, CdxThumbnail: Mt, CdxSearchResultTitle: Dt }, - props: { - /** - * ID for HTML `id` attribute. - */ - id: { - type: String, - required: !0 - }, - /** - * The value provided to the parent menu component when this menu item is selected. - */ - value: { - type: [String, Number], - required: !0 - }, - /** - * Whether the menu item is disabled. - */ - disabled: { - type: Boolean, - default: !1 - }, - /** - * Whether this menu item is selected. - */ - selected: { - type: Boolean, - default: !1 - }, - /** - * Whether this menu item is being pressed. - */ - active: { - type: Boolean, - default: !1 - }, - /** - * Whether this menu item is visually highlighted due to hover or keyboard navigation. - */ - highlighted: { - type: Boolean, - default: !1 - }, - /** - * Label for the menu item. If this isn't provided, the value will be displayed instead. - */ - label: { - type: String, - default: "" - }, - /** - * Text that matches current search query. Only used for search results and will be - * displayed after the label. - */ - match: { - type: String, - default: "" - }, - /** - * Text that supports the label. Supporting text will appear next to the label in a more - * subtle color. - */ - supportingText: { - type: String, - default: "" - }, - /** - * URL for the menu item. If provided, the content of the menu item will be wrapped in an - * anchor tag. - */ - url: { - type: String, - default: "" - }, - /** - * Icon for the menu item. - */ - icon: { - type: [String, Object], - default: "" - }, - /** - * Whether a thumbnail (or a placeholder icon) should be displayed. - */ - showThumbnail: { - type: Boolean, - default: !1 - }, - /** - * Thumbnail for the menu item. - */ - thumbnail: { - type: [Object, null], - default: null - }, - /** - * Description of the menu item. - */ - description: { - type: [String, null], - default: "" - }, - /** - * The search query to be highlighted within the menu item's title. - */ - searchQuery: { - type: String, - default: "" - }, - /** - * Whether to bold menu item labels. - */ - boldLabel: { - type: Boolean, - default: !1 - }, - /** - * Whether to hide description text overflow via an ellipsis. - */ - hideDescriptionOverflow: { - type: Boolean, - default: !1 - }, - /** - * Optional language codes for label, match, supporting text, and description. - * - * If included, that language code will be added as a `lang` attribute to the element - * wrapping that text node. - */ - language: { - type: Object, - default: () => ({}) - } - }, - emits: [ - /** - * Emitted when the menu item becomes selected, active or highlighted in response to - * user interaction. Handled in the Menu component. - * - * @property {MenuState} menuState State to change - * @property {boolean} setState Whether to set that state to this menu item - */ - "change" - ], - setup: (e, { emit: t }) => { - const n = () => { - e.highlighted || t("change", "highlighted", !0); - }, a = () => { - t("change", "highlighted", !1); - }, s = (m) => { - m.button === 0 && t("change", "active", !0); - }, r = () => { - t("change", "selected", !0); - }, o = h(() => e.searchQuery.length > 0), i = h(() => ({ - "cdx-menu-item--selected": e.selected, - // Only show the active visual state when the menu item is both active and - // highlighted. This means, on mousedown -> mouseleave, the menu item is still - // technically tracked by the menu as active, but will not appear active to the - // user. This also means in the case of mousedown -> mouseleave -> mouseenter, the - // menu item will appear active again, and on click (releasing the mouse button), - // the item will be selected. - "cdx-menu-item--active": e.active && e.highlighted, - "cdx-menu-item--highlighted": e.highlighted, - "cdx-menu-item--enabled": !e.disabled, - "cdx-menu-item--disabled": e.disabled, - "cdx-menu-item--highlight-query": o.value, - "cdx-menu-item--bold-label": e.boldLabel, - "cdx-menu-item--has-description": !!e.description, - "cdx-menu-item--hide-description-overflow": e.hideDescriptionOverflow - })), u = h(() => e.url ? "a" : "span"), d = h(() => e.label || String(e.value)); - return { - onMouseMove: n, - onMouseLeave: a, - onMouseDown: s, - onClick: r, - highlightQuery: o, - rootClasses: i, - contentTag: u, - title: d - }; - } -}); -const Ft = ["id", "aria-disabled", "aria-selected"], Nt = { class: "cdx-menu-item__text" }, Ot = ["lang"], qt = ["lang"], Ht = ["lang"], zt = ["lang"]; -function Ut(e, t, n, a, s, r) { - const o = L("cdx-thumbnail"), i = L("cdx-icon"), u = L("cdx-search-result-title"); - return p(), g("li", { - id: e.id, - role: "option", - class: A(["cdx-menu-item", e.rootClasses]), - "aria-disabled": e.disabled, - "aria-selected": e.selected, - onMousemove: t[0] || (t[0] = (...d) => e.onMouseMove && e.onMouseMove(...d)), - onMouseleave: t[1] || (t[1] = (...d) => e.onMouseLeave && e.onMouseLeave(...d)), - onMousedown: t[2] || (t[2] = Se((...d) => e.onMouseDown && e.onMouseDown(...d), ["prevent"])), - onClick: t[3] || (t[3] = (...d) => e.onClick && e.onClick(...d)) - }, [ - D(e.$slots, "default", {}, () => [ - (p(), K(He(e.contentTag), { - href: e.url ? e.url : void 0, - class: "cdx-menu-item__content" - }, { - default: H(() => { - var d, m, C, v, k, w; - return [ - e.showThumbnail ? (p(), K(o, { - key: 0, - thumbnail: e.thumbnail, - class: "cdx-menu-item__thumbnail" - }, null, 8, ["thumbnail"])) : e.icon ? (p(), K(i, { - key: 1, - icon: e.icon, - class: "cdx-menu-item__icon" - }, null, 8, ["icon"])) : x("", !0), - S("span", Nt, [ - e.highlightQuery ? (p(), K(u, { - key: 0, - title: e.title, - "search-query": e.searchQuery, - lang: (d = e.language) == null ? void 0 : d.label - }, null, 8, ["title", "search-query", "lang"])) : (p(), g("span", { - key: 1, - class: "cdx-menu-item__text__label", - lang: (m = e.language) == null ? void 0 : m.label - }, [ - S("bdi", null, B(e.title), 1) - ], 8, Ot)), - e.match ? (p(), g($e, { key: 2 }, [ - ae(B(" ") + " "), - e.highlightQuery ? (p(), K(u, { - key: 0, - title: e.match, - "search-query": e.searchQuery, - lang: (C = e.language) == null ? void 0 : C.match - }, null, 8, ["title", "search-query", "lang"])) : (p(), g("span", { - key: 1, - class: "cdx-menu-item__text__match", - lang: (v = e.language) == null ? void 0 : v.match - }, [ - S("bdi", null, B(e.match), 1) - ], 8, qt)) - ], 64)) : x("", !0), - e.supportingText ? (p(), g($e, { key: 3 }, [ - ae(B(" ") + " "), - S("span", { - class: "cdx-menu-item__text__supporting-text", - lang: (k = e.language) == null ? void 0 : k.supportingText - }, [ - S("bdi", null, B(e.supportingText), 1) - ], 8, Ht) - ], 64)) : x("", !0), - e.description ? (p(), g("span", { - key: 4, - class: "cdx-menu-item__text__description", - lang: (w = e.language) == null ? void 0 : w.description - }, [ - S("bdi", null, B(e.description), 1) - ], 8, zt)) : x("", !0) - ]) - ]; - }), - _: 1 - }, 8, ["href"])) - ]) - ], 42, Ft); -} -const Qt = /* @__PURE__ */ F(Et, [["render", Ut]]); -function Ke(e, t) { - if (e()) { - Te(t); - return; - } - const n = G(e, (a) => { - a && (Te(t), n()); - }); -} -const Pt = E({ - name: "CdxProgressBar", - props: { - /** - * Whether this is the smaller, inline variant. - */ - inline: { - type: Boolean, - default: !1 - }, - /** - * Whether the progress bar is disabled. - */ - disabled: { - type: Boolean, - default: !1 - } - }, - setup(e, { attrs: t }) { - Ke( - () => !e.inline && !t["aria-label"] && !t["aria-hidden"], - "CdxProgressBar: Progress bars require one of the following attribute, aria-label or aria-hidden. See documentation on https://doc.wikimedia.org/codex/latest/components/demos/progressbar.html" - ); - const n = h(() => ({ - "cdx-progress-bar--block": !e.inline, - "cdx-progress-bar--inline": e.inline, - "cdx-progress-bar--enabled": !e.disabled, - "cdx-progress-bar--disabled": e.disabled - })), a = h(() => e.inline ? "true" : void 0); - return { - rootClasses: n, - computedAriaHidden: a - }; - } -}); -const jt = ["aria-hidden", "aria-disabled"], Wt = /* @__PURE__ */ S("div", { class: "cdx-progress-bar__bar" }, null, -1), Gt = [ - Wt -]; -function Jt(e, t, n, a, s, r) { - return p(), g("div", { - class: A(["cdx-progress-bar", e.rootClasses]), - role: "progressbar", - "aria-hidden": e.computedAriaHidden, - "aria-disabled": e.disabled - }, Gt, 10, jt); -} -const Xt = /* @__PURE__ */ F(Pt, [["render", Jt]]); -let Ce = 0; -function Ae(e) { - const t = ze(), n = (t == null ? void 0 : t.props.id) || (t == null ? void 0 : t.attrs.id); - return e ? `${be}-${e}-${Ce++}` : n ? `${be}-${n}-${Ce++}` : `${be}-${Ce++}`; -} -function Yt(e, t) { - const n = b(!1); - let a = !1; - if (typeof window != "object" || !("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype)) - return n; - const s = new window.IntersectionObserver( - (r) => { - const o = r[0]; - o && (n.value = o.isIntersecting); - }, - t - ); - return X(() => { - a = !0, e.value && s.observe(e.value); - }), Ve(() => { - a = !1, s.disconnect(); - }), G(e, (r) => { - a && (s.disconnect(), n.value = !1, r && s.observe(r)); - }), n; -} -function fe(e, t = h(() => ({}))) { - const n = h(() => { - const r = ne(t.value, []); - return e.class && e.class.split(" ").forEach((i) => { - r[i] = !0; - }), r; - }), a = h(() => { - if ("style" in e) - return e.style; - }), s = h(() => { - const u = e, { class: r, style: o } = u; - return ne(u, ["class", "style"]); - }); - return { - rootClasses: n, - rootStyle: a, - otherAttrs: s - }; -} -const Zt = E({ - name: "CdxMenu", - components: { - CdxMenuItem: Qt, - CdxProgressBar: Xt - }, - /** - * Attributes, besides class and style, will be passed to the <ul> element. - */ - inheritAttrs: !1, - props: { - /** Menu items. See the MenuItemData type. */ - menuItems: { - type: Array, - required: !0 - }, - /** - * Interactive footer item. - * - * This is a special menu item which is pinned to the bottom of the menu. When scrolling is - * enabled within the menu, the footer item will always be visible at the bottom of the - * menu. When scrolling is not enabled, the footer item will simply appear as the last menu - * item. - * - * The footer item is selectable, like other menu items. - */ - footer: { - type: Object, - default: null - }, - /** - * Value of the selected menu item, or undefined if no item is selected. - * - * Must be bound with `v-model:selected`. - * - * The property should be initialized to `null` rather than using a falsy value. - */ - selected: { - type: [String, Number, null], - required: !0 - }, - /** - * Whether the menu is expanded. Must be bound with `v-model:expanded`. - */ - expanded: { - type: Boolean, - required: !0 - }, - /** - * Whether to display pending state indicators. Meant to indicate that new menu items are - * being fetched or computed. - * - * When true, the menu will expand if not already expanded, and an inline progress bar will - * display. If there are no menu items yet, a message can be displayed in the `pending` - * slot, e.g. "Loading results". - */ - showPending: { - type: Boolean, - default: !1 - }, - /** - * Limit the number of menu items to display before scrolling. - * - * Setting this prop to anything falsy will show all menu items. - * - * By default, all menu items are shown. - */ - visibleItemLimit: { - type: Number, - default: null - }, - /** - * Whether menu item thumbnails (or a placeholder icon) should be displayed. - */ - showThumbnail: { - type: Boolean, - default: !1 - }, - /** - * Whether to bold menu item labels. - */ - boldLabel: { - type: Boolean, - default: !1 - }, - /** - * Whether to hide description text overflow via an ellipsis. - */ - hideDescriptionOverflow: { - type: Boolean, - default: !1 - }, - /** - * The search query to be highlighted within the menu items' titles. - */ - searchQuery: { - type: String, - default: "" - }, - /** - * Whether to show the `no-results` slot content. - * - * The Menu component automatically shows this slot when there is content in the - * `no-results` slot and there are zero menu items. However, some components may need to - * customize this behavior, e.g. to show the slot even when there is at least one menu item. - * This prop can be used to override the default Menu behavior. - * - * Possible values: - * `null` (default): the `no-results` slot will display only if there are zero menu items. - * `true`: the `no-results` slot will display, regardless of number of menu items. - * `false`: the `no-results` slot will not display, regardless of number of menu items. - */ - showNoResultsSlot: { - type: Boolean, - default: null - } - }, - emits: [ - // Don't remove the spaces in the "string | number | null" type below; removing these - // spaces causes the documentation to render the type as "union" instead. - /** - * When the selected menu item changes. - * - * @property {string | number | null} selectedValue The `.value` property of the - * selected menu item, or null if no item is selected. - */ - "update:selected", - /** - * When the menu opens or closes. - * - * @property {boolean} newValue The new expanded state (true for open, false for closed) - */ - "update:expanded", - /** - * When a menu item is clicked. - * - * Typically, components with menus will respond to the selected value change, but - * occasionally, a component might want to react specifically when a menu item is clicked. - * - * @property {MenuItemDataWithId} menuItem The menu item that was clicked - */ - "menu-item-click", - /** - * When a menu item is highlighted via keyboard navigation. - * - * @property {MenuItemDataWithId} highlightedMenuItem The menu item - * was highlighted - */ - "menu-item-keyboard-navigation", - /** - * When the user scrolls towards the bottom of the menu. - * - * If it is possible to add or load more menu items, then now would be a good moment - * so that the user can experience infinite scrolling. - */ - "load-more" - ], - expose: [ - "clearActive", - "getHighlightedMenuItem", - "getHighlightedViaKeyboard", - "delegateKeyNavigation" - ], - setup(e, { emit: t, slots: n, attrs: a }) { - const s = h(() => (e.footer && e.menuItems ? [...e.menuItems, e.footer] : e.menuItems).map((c) => Me(ke({}, c), { - id: Ae("menu-item") - }))), r = h(() => n["no-results"] ? e.showNoResultsSlot !== null ? e.showNoResultsSlot : s.value.length === 0 : !1), o = b(null), i = b(!1), u = b(null), d = "additions removals"; - let m = "", C = null; - function v() { - m = "", C !== null && (clearTimeout(C), C = null); - } - function k() { - C !== null && clearTimeout(C), C = setTimeout(v, 1500); - } - function w() { - return s.value.find( - (l) => l.value === e.selected - ) || null; - } - function M(l, c) { - var y; - if (!(c && c.disabled)) - switch (l) { - case "selected": - t("update:selected", (y = c == null ? void 0 : c.value) != null ? y : null), t("update:expanded", !1), u.value = null; - break; - case "highlighted": - o.value = c || null, i.value = !1; - break; - case "highlightedViaKeyboard": - o.value = c || null, i.value = !0; - break; - case "active": - u.value = c || null; - break; - } - } - const I = h(() => { - if (o.value !== null) - return s.value.findIndex( - (l) => ( - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - l.value === o.value.value - ) - ); - }); - function Y(l) { - l && (M("highlightedViaKeyboard", l), t("menu-item-keyboard-navigation", l)); - } - function Z(l) { - var _; - const c = (P) => { - for (let V = P - 1; V >= 0; V--) - if (!s.value[V].disabled) - return s.value[V]; - }; - l = l || s.value.length; - const y = (_ = c(l)) != null ? _ : c(s.value.length); - Y(y); - } - function ee(l) { - const c = (_) => s.value.find((P, V) => !P.disabled && V > _); - l = l != null ? l : -1; - const y = c(l) || c(-1); - Y(y); - } - function oe(l) { - if (l.key === "Clear") - return v(), !0; - if (l.key === "Backspace") - return m = m.slice(0, -1), k(), !0; - if (l.key.length === 1 && !l.metaKey && !l.ctrlKey && !l.altKey) { - e.expanded || t("update:expanded", !0), m += l.key.toLowerCase(); - const c = m.length > 1 && m.split("").every((V) => V === m[0]); - let y = s.value, _ = m; - c && I.value !== void 0 && (y = y.slice(I.value + 1).concat(y.slice(0, I.value)), _ = m[0]); - const P = y.find( - (V) => !V.disabled && String(V.label || V.value).toLowerCase().indexOf(_) === 0 - ); - return P && (M("highlightedViaKeyboard", P), O()), k(), !0; - } - return !1; - } - function se(l, { prevent: c = !0, characterNavigation: y = !1 } = {}) { - if (y) { - if (oe(l)) - return !0; - v(); - } - function _() { - c && (l.preventDefault(), l.stopPropagation()); - } - switch (l.key) { - case "Enter": - case " ": - return _(), e.expanded ? (o.value && i.value && t("update:selected", o.value.value), t("update:expanded", !1)) : t("update:expanded", !0), !0; - case "Tab": - return e.expanded && (o.value && i.value && t("update:selected", o.value.value), t("update:expanded", !1)), !0; - case "ArrowUp": - return _(), e.expanded ? (o.value === null && M("highlightedViaKeyboard", w()), Z(I.value)) : t("update:expanded", !0), O(), !0; - case "ArrowDown": - return _(), e.expanded ? (o.value === null && M("highlightedViaKeyboard", w()), ee(I.value)) : t("update:expanded", !0), O(), !0; - case "Home": - return _(), e.expanded ? (o.value === null && M("highlightedViaKeyboard", w()), ee()) : t("update:expanded", !0), O(), !0; - case "End": - return _(), e.expanded ? (o.value === null && M("highlightedViaKeyboard", w()), Z()) : t("update:expanded", !0), O(), !0; - case "Escape": - return _(), t("update:expanded", !1), !0; - default: - return !1; - } - } - function $() { - M("active", null); - } - const T = [], R = b(void 0), N = Yt( - R, - { threshold: 0.8 } - ); - G(N, (l) => { - l && t("load-more"); - }); - function ie(l, c) { - if (l) { - T[c] = l.$el; - const y = e.visibleItemLimit; - if (!y || e.menuItems.length < y) - return; - const _ = Math.min( - y, - Math.max(2, Math.floor(0.2 * e.menuItems.length)) - ); - c === e.menuItems.length - _ && (R.value = l.$el); - } - } - function O() { - if (!e.visibleItemLimit || e.visibleItemLimit > e.menuItems.length || I.value === void 0) - return; - const l = I.value >= 0 ? I.value : 0; - T[l].scrollIntoView({ - behavior: "smooth", - block: "nearest" - }); - } - const q = b(null), Q = b(null); - function te() { - if (Q.value = null, !e.visibleItemLimit || T.length <= e.visibleItemLimit) { - q.value = null; - return; - } - const l = T[0], c = T[e.visibleItemLimit]; - if (q.value = ue( - l, - c - ), e.footer) { - const y = T[T.length - 1]; - Q.value = y.scrollHeight; - } - } - function ue(l, c) { - const y = l.getBoundingClientRect().top; - return c.getBoundingClientRect().top - y + 2; - } - X(() => { - document.addEventListener("mouseup", $); - }), Ve(() => { - document.removeEventListener("mouseup", $); - }), G(z(e, "expanded"), (l) => ye(this, null, function* () { - if (l) { - const c = w(); - c && !o.value && M("highlighted", c), yield de(), te(), yield de(), O(); - } else - M("highlighted", null); - })), G(z(e, "menuItems"), (l) => ye(this, null, function* () { - l.length < T.length && (T.length = l.length), e.expanded && (yield de(), te(), yield de(), O()); - }), { deep: !0 }); - const pe = h(() => ({ - "max-height": q.value ? `${q.value}px` : void 0, - "overflow-y": q.value ? "scroll" : void 0, - "margin-bottom": Q.value ? `${Q.value}px` : void 0 - })), me = h(() => ({ - "cdx-menu--has-footer": !!e.footer, - "cdx-menu--has-sticky-footer": !!e.footer && !!q.value - })), { - rootClasses: ge, - rootStyle: ve, - otherAttrs: f - } = fe(a, me); - return { - listBoxStyle: pe, - rootClasses: ge, - rootStyle: ve, - otherAttrs: f, - assignTemplateRef: ie, - computedMenuItems: s, - computedShowNoResultsSlot: r, - highlightedMenuItem: o, - highlightedViaKeyboard: i, - activeMenuItem: u, - handleMenuItemChange: M, - handleKeyNavigation: se, - ariaRelevant: d - }; - }, - // Public methods - // These must be in the methods block, not in the setup function, otherwise their documentation - // won't be picked up by vue-docgen - methods: { - /** - * Get the highlighted menu item, if any. - * - * The parent component should set `aria-activedescendant` to the `.id` property of the - * object returned by this method. If this method returns null, `aria-activedescendant` - * should not be set. - * - * @public - * @return {MenuItemDataWithId|null} The highlighted menu item, - * or null if no item is highlighted or if the menu is closed. - */ - getHighlightedMenuItem() { - return this.expanded ? this.highlightedMenuItem : null; - }, - /** - * Get whether the last highlighted item was highlighted via the keyboard. - * - * @public - * @return {boolean} Whether the last highlighted menu item was highlighted via keyboard. - */ - getHighlightedViaKeyboard() { - return this.highlightedViaKeyboard; - }, - /** - * Ensure no menu item is active. This unsets the active item if there is one. - * - * @public - */ - clearActive() { - this.handleMenuItemChange("active", null); - }, - /** - * Handles all necessary keyboard navigation. - * - * The parent component should listen for keydown events on its focusable element, - * and pass those events to this method. Events for arrow keys, tab and enter are handled - * by this method. If a different key was pressed, this method will return false to indicate - * that it didn't handle the event. - * - * @public - * @param event {KeyboardEvent} Keydown event object - * @param options - * @param options.prevent {boolean} If false, do not call e.preventDefault() or - * e.stopPropagation() - * @param options.characterNavigation {boolean} - * @return Whether the event was handled - */ - delegateKeyNavigation(e, { prevent: t = !0, characterNavigation: n = !1 } = {}) { - return this.handleKeyNavigation(e, { prevent: t, characterNavigation: n }); - } - } -}); -const en = ["aria-live", "aria-relevant"], tn = { - key: 0, - class: "cdx-menu__pending cdx-menu-item" -}, nn = { - key: 1, - class: "cdx-menu__no-results cdx-menu-item" -}; -function an(e, t, n, a, s, r) { - const o = L("cdx-menu-item"), i = L("cdx-progress-bar"); - return Be((p(), g("div", { - class: A(["cdx-menu", e.rootClasses]), - style: le(e.rootStyle) - }, [ - S("ul", J({ - class: "cdx-menu__listbox", - role: "listbox", - style: e.listBoxStyle, - "aria-live": e.showPending ? "polite" : void 0, - "aria-relevant": e.showPending ? e.ariaRelevant : void 0 - }, e.otherAttrs), [ - e.showPending && e.computedMenuItems.length === 0 && e.$slots.pending ? (p(), g("li", tn, [ - D(e.$slots, "pending") - ])) : x("", !0), - e.computedShowNoResultsSlot ? (p(), g("li", nn, [ - D(e.$slots, "no-results") - ])) : x("", !0), - (p(!0), g($e, null, Ue(e.computedMenuItems, (u, d) => { - var m, C; - return p(), K(o, J({ - key: u.value, - ref_for: !0, - ref: (v) => e.assignTemplateRef(v, d) - }, u, { - selected: u.value === e.selected, - active: u.value === ((m = e.activeMenuItem) == null ? void 0 : m.value), - highlighted: u.value === ((C = e.highlightedMenuItem) == null ? void 0 : C.value), - "show-thumbnail": e.showThumbnail, - "bold-label": e.boldLabel, - "hide-description-overflow": e.hideDescriptionOverflow, - "search-query": e.searchQuery, - onChange: (v, k) => e.handleMenuItemChange(v, k ? u : null), - onClick: (v) => e.$emit("menu-item-click", u) - }), { - default: H(() => { - var v, k; - return [ - D(e.$slots, "default", { - menuItem: u, - active: u.value === ((v = e.activeMenuItem) == null ? void 0 : v.value) && u.value === ((k = e.highlightedMenuItem) == null ? void 0 : k.value) - }) - ]; - }), - _: 2 - }, 1040, ["selected", "active", "highlighted", "show-thumbnail", "bold-label", "hide-description-overflow", "search-query", "onChange", "onClick"]); - }), 128)), - e.showPending ? (p(), K(i, { - key: 2, - class: "cdx-menu__progress-bar", - inline: !0 - })) : x("", !0) - ], 16, en) - ], 6)), [ - [Qe, e.expanded] - ]); -} -const ln = /* @__PURE__ */ F(Zt, [["render", an]]); -function Re(e) { - const t = []; - for (const n of e) - // HTML tag - typeof n.type == "string" || // Component - typeof n.type == "object" ? t.push(n) : n.type !== Pe && (typeof n.children == "string" && n.children.trim() !== "" ? t.push(n.children) : Array.isArray(n.children) && t.push(...Re(n.children))); - return t; -} -function on(e, t) { - return typeof e.type == "object" && "name" in e.type ? t !== void 0 ? e.type.name === t : !0 : !1; -} -function sn(e, t) { - return typeof e.type == "string" ? t !== void 0 ? e.type === t.toLowerCase() : !0 : !1; -} -function un(e) { - const t = typeof e == "function" ? e() : e; - return t ? Re(t) : []; -} -function rn(e, t, n) { - const a = h(() => { - const s = un(e); - if (s.length !== 1) - return !1; - const r = s[0]; - return !!(typeof r == "object" && (on(r, "CdxIcon") || sn(r, "svg"))); - }); - return Ke( - () => a.value && !t["aria-label"] && !t["aria-hidden"], - `${n}: Icon-only buttons require one of the following attributes: aria-label or aria-hidden. See documentation at https://doc.wikimedia.org/codex/latest/components/demos/button.html#icon-only-button` - ), a; -} -const dn = U(st), cn = U(it), hn = U(ut), fn = E({ - name: "CdxButton", - props: { - /** - * The kind of action that will be taken on click. - * - * @values 'default', 'progressive', 'destructive' - */ - action: { - type: String, - default: "default", - validator: dn - }, - /** - * Visual prominence of the button. - * - * @values 'normal', 'primary', 'quiet' - */ - weight: { - type: String, - default: "normal", - validator: cn - }, - /** - * Button size. - * - * Most buttons should use the default medium size. In rare cases the large size should - * be used, for example to make icon-only buttons larger on touchscreens. - * - * @values 'medium', 'large' - */ - size: { - type: String, - default: "medium", - validator: hn - } - }, - emits: ["click"], - setup(e, { emit: t, slots: n, attrs: a }) { - const s = rn(n.default, a, "CdxButton"), r = b(!1); - return { - rootClasses: h(() => ({ - [`cdx-button--action-${e.action}`]: !0, - [`cdx-button--weight-${e.weight}`]: !0, - [`cdx-button--size-${e.size}`]: !0, - "cdx-button--framed": e.weight !== "quiet", - "cdx-button--icon-only": s.value, - "cdx-button--is-active": r.value - })), - onClick: (d) => { - t("click", d); - }, - setActive: (d) => { - r.value = d; - } - }; - } -}); -function pn(e, t, n, a, s, r) { - return p(), g("button", { - class: A(["cdx-button", e.rootClasses]), - onClick: t[0] || (t[0] = (...o) => e.onClick && e.onClick(...o)), - onKeydown: t[1] || (t[1] = Ie((o) => e.setActive(!0), ["space", "enter"])), - onKeyup: t[2] || (t[2] = Ie((o) => e.setActive(!1), ["space", "enter"])) - }, [ - D(e.$slots, "default") - ], 34); -} -const mn = /* @__PURE__ */ F(fn, [["render", pn]]); -function De(e, t, n) { - return h({ - get: () => e.value, - set: (a) => ( - // If eventName is undefined, then 'update:modelValue' must be a valid EventName, - // but TypeScript's type analysis isn't clever enough to realize that - t(n || "update:modelValue", a) - ) - }); -} -function gn(e) { - const t = ce(gt, b(!1)); - return h(() => t.value || e.value); -} -function Ee(e, t, n) { - const a = gn(e), s = ce(mt, b("default")), r = h(() => t != null && t.value && t.value !== "default" ? t.value : s.value), o = ce(ft, void 0), i = h( - () => o && o.value ? o.value : n - ); - return { - computedDisabled: a, - computedStatus: r, - computedInputId: i - }; -} -const vn = U(dt), yn = U(Le), bn = E({ - name: "CdxTextInput", - components: { CdxIcon: he }, - /** - * We want the input to inherit attributes, not the root element. - */ - inheritAttrs: !1, - expose: [ - "focus", - "blur" - ], - props: { - /** - * Current value of the input. - * - * Provided by `v-model` binding in the parent component. - */ - modelValue: { - type: [String, Number], - default: "" - }, - /** - * `type` attribute of the input. - * - * @values 'text', 'search', 'number', 'email', 'password', 'tel', 'url', - * 'week', 'month', 'date', 'datetime-local', 'time' - */ - inputType: { - type: String, - default: "text", - validator: vn - }, - /** - * `status` attribute of the input. - * - * @values 'default', 'error' - */ - status: { - type: String, - default: "default", - validator: yn - }, - /** - * Whether the input is disabled. - */ - disabled: { - type: Boolean, - default: !1 - }, - /** - * An icon at the start of the input element. Similar to a `::before` pseudo-element. - */ - startIcon: { - type: [String, Object], - default: void 0 - }, - /** - * An icon at the end of the input element. Similar to an `::after` pseudo-element. - */ - endIcon: { - type: [String, Object], - default: void 0 - }, - /** - * Add a clear button at the end of the input element. - * - * When the clear button is pressed, the input's value is set to an empty string. - * The clear button is displayed when input text is present. - */ - clearable: { - type: Boolean, - default: !1 - } - }, - emits: [ - /** - * When the input value changes - * - * @property {string | number} modelValue The new model value - */ - "update:modelValue", - /** - * When the user presses a key. - * - * This event is not emitted when the user presses the Home or End key (T314728), - * but is emitted for Ctrl/Cmd+Home and Ctrl/Cmd+End. - * - * @property {KeyboardEvent} - */ - "keydown", - /** - * When the input value changes via direct use of the input - * - * @property {InputEvent} event - */ - "input", - /** - * When an input value change is committed by the user (e.g. on blur) - * - * @property {Event} event - */ - "change", - /** - * When the input comes into focus - * - * @property {FocusEvent} event - */ - "focus", - /** - * When the input loses focus - * - * @property {FocusEvent} event - */ - "blur", - /** - * When the input value is cleared through the use of the clear button - * - * @property {MouseEvent} event - */ - "clear" - ], - setup(e, { emit: t, attrs: n }) { - const a = n.id, { - computedDisabled: s, - computedStatus: r, - computedInputId: o - } = Ee( - z(e, "disabled"), - z(e, "status"), - a - ), i = ce(pt, void 0), u = De(z(e, "modelValue"), t), d = h(() => e.clearable && !!u.value && !s.value), m = h(() => ({ - "cdx-text-input--has-start-icon": !!e.startIcon, - "cdx-text-input--has-end-icon": !!e.endIcon, - "cdx-text-input--clearable": d.value, - [`cdx-text-input--status-${r.value}`]: !0 - })), { - rootClasses: C, - rootStyle: v, - otherAttrs: k - } = fe(n, m), w = h(() => { - const R = k.value, { id: $ } = R; - return ne(R, ["id"]); - }), M = h(() => ({ - "cdx-text-input__input--has-value": !!u.value - })); - return { - computedInputId: o, - descriptionId: i, - wrappedModel: u, - isClearable: d, - rootClasses: C, - rootStyle: v, - otherAttrsMinusId: w, - inputClasses: M, - computedDisabled: s, - onClear: ($) => { - u.value = "", t("clear", $); - }, - onInput: ($) => { - t("input", $); - }, - onChange: ($) => { - t("change", $); - }, - onKeydown: ($) => { - ($.key === "Home" || $.key === "End") && !$.ctrlKey && !$.metaKey || t("keydown", $); - }, - onFocus: ($) => { - t("focus", $); - }, - onBlur: ($) => { - t("blur", $); - }, - cdxIconClear: Ze - }; - }, - // Public methods - // These must be in the methods block, not in the setup function, otherwise their documentation - // won't be picked up by vue-docgen - methods: { - /** - * Focus the component's input element. - * - * @public - */ - focus() { - this.$refs.input.focus(); - }, - /** - * Blur the component's input element. - * - * @public - */ - blur() { - this.$refs.input.blur(); - } - } -}); -const Cn = ["id", "type", "aria-describedby", "disabled"]; -function $n(e, t, n, a, s, r) { - const o = L("cdx-icon"); - return p(), g("div", { - class: A(["cdx-text-input", e.rootClasses]), - style: le(e.rootStyle) - }, [ - Be(S("input", J({ - id: e.computedInputId, - ref: "input", - "onUpdate:modelValue": t[0] || (t[0] = (i) => e.wrappedModel = i), - class: ["cdx-text-input__input", e.inputClasses] - }, e.otherAttrsMinusId, { - type: e.inputType, - "aria-describedby": e.descriptionId, - disabled: e.computedDisabled, - size: "1", - onInput: t[1] || (t[1] = (...i) => e.onInput && e.onInput(...i)), - onChange: t[2] || (t[2] = (...i) => e.onChange && e.onChange(...i)), - onFocus: t[3] || (t[3] = (...i) => e.onFocus && e.onFocus(...i)), - onBlur: t[4] || (t[4] = (...i) => e.onBlur && e.onBlur(...i)), - onKeydown: t[5] || (t[5] = (...i) => e.onKeydown && e.onKeydown(...i)) - }), null, 16, Cn), [ - [je, e.wrappedModel] - ]), - e.startIcon ? (p(), K(o, { - key: 0, - icon: e.startIcon, - class: "cdx-text-input__icon-vue cdx-text-input__start-icon" - }, null, 8, ["icon"])) : x("", !0), - e.endIcon ? (p(), K(o, { - key: 1, - icon: e.endIcon, - class: "cdx-text-input__icon-vue cdx-text-input__end-icon" - }, null, 8, ["icon"])) : x("", !0), - e.isClearable ? (p(), K(o, { - key: 2, - icon: e.cdxIconClear, - class: "cdx-text-input__icon-vue cdx-text-input__clear-icon", - onMousedown: t[6] || (t[6] = Se(() => { - }, ["prevent"])), - onClick: e.onClear - }, null, 8, ["icon", "onClick"])) : x("", !0) - ], 6); -} -const In = /* @__PURE__ */ F(bn, [["render", $n]]), Sn = U(Le), _n = E({ - name: "CdxSearchInput", - components: { - CdxButton: mn, - CdxTextInput: In - }, - /** - * Attributes, besides class, will be passed to the TextInput's input element. - */ - inheritAttrs: !1, - props: { - /** - * Value of the search input, provided by `v-model` binding in the parent component. - */ - modelValue: { - type: [String, Number], - default: "" - }, - /** - * Submit button text. - * - * If this is provided, a submit button with this label will be added. - */ - buttonLabel: { - type: String, - default: "" - }, - /** - * Whether the search input is disabled. - */ - disabled: { - type: Boolean, - default: !1 - }, - /** - * `status` property of the TextInput component - * - * @values 'default', 'error' - */ - status: { - type: String, - default: "default", - validator: Sn - } - }, - emits: [ - /** - * When the input value changes - * - * @property {string | number} value The new value - */ - "update:modelValue", - /** - * When the submit button is clicked. - * - * @property {string | number} value The current input - */ - "submit-click", - /** - * When the input value changes via direct use of the input - * - * @property {InputEvent} event - */ - "input", - /** - * When an input value change is committed by the user (e.g. on blur) - * - * @property {Event} event - */ - "change", - /** - * When the input comes into focus - * - * @property {FocusEvent} event - */ - "focus", - /** - * When the input loses focus - * - * @property {FocusEvent} event - */ - "blur" - ], - setup(e, { emit: t, attrs: n }) { - const a = De(z(e, "modelValue"), t), { computedDisabled: s } = Ee(z(e, "disabled")), r = h(() => ({ - "cdx-search-input--has-end-button": !!e.buttonLabel - })), { - rootClasses: o, - rootStyle: i, - otherAttrs: u - } = fe(n, r); - return { - wrappedModel: a, - computedDisabled: s, - rootClasses: o, - rootStyle: i, - otherAttrs: u, - handleSubmit: () => { - t("submit-click", a.value); - }, - searchIcon: tt - }; - }, - methods: { - /** - * Focus the component's input element. - * - * @public - */ - focus() { - this.$refs.textInput.focus(); - } - } -}); -const wn = { class: "cdx-search-input__input-wrapper" }; -function xn(e, t, n, a, s, r) { - const o = L("cdx-text-input"), i = L("cdx-button"); - return p(), g("div", { - class: A(["cdx-search-input", e.rootClasses]), - style: le(e.rootStyle) - }, [ - S("div", wn, [ - W(o, J({ - ref: "textInput", - modelValue: e.wrappedModel, - "onUpdate:modelValue": t[0] || (t[0] = (u) => e.wrappedModel = u), - class: "cdx-search-input__text-input", - "input-type": "search", - "start-icon": e.searchIcon, - disabled: e.computedDisabled, - status: e.status - }, e.otherAttrs, { - onKeydown: Ie(e.handleSubmit, ["enter"]), - onInput: t[1] || (t[1] = (u) => e.$emit("input", u)), - onChange: t[2] || (t[2] = (u) => e.$emit("change", u)), - onFocus: t[3] || (t[3] = (u) => e.$emit("focus", u)), - onBlur: t[4] || (t[4] = (u) => e.$emit("blur", u)) - }), null, 16, ["modelValue", "start-icon", "disabled", "status", "onKeydown"]), - D(e.$slots, "default") - ]), - e.buttonLabel ? (p(), K(i, { - key: 0, - class: "cdx-search-input__end-button", - disabled: e.computedDisabled, - onClick: e.handleSubmit - }, { - default: H(() => [ - ae(B(e.buttonLabel), 1) - ]), - _: 1 - }, 8, ["disabled", "onClick"])) : x("", !0) - ], 6); -} -const kn = /* @__PURE__ */ F(_n, [["render", xn]]), Mn = E({ - name: "CdxTypeaheadSearch", - components: { - CdxIcon: he, - CdxMenu: ln, - CdxSearchInput: kn - }, - /** - * Attributes, besides class, will be passed to the TextInput's input element. - */ - inheritAttrs: !1, - props: { - /** - * ID attribute for the form. - */ - id: { - type: String, - required: !0 - }, - /** - * Action attribute for form. - */ - formAction: { - type: String, - required: !0 - }, - /** - * Label attribute for the list of search results. - */ - searchResultsLabel: { - type: String, - required: !0 - }, - /** - * List of search results. See the SearchResult type. - */ - searchResults: { - type: Array, - required: !0 - }, - /** - * Label for the submit button. - * - * If no label is provided, the submit button will not be displayed. - */ - buttonLabel: { - type: String, - default: "" - }, - /** - * Initial value for the text input. - * - * Triggers an initial `input` event on mount. - */ - initialInputValue: { - type: String, - default: "" - }, - /** - * Link for the final menu item. - * - * This will typically be a link to the search page for the current search query. - */ - searchFooterUrl: { - type: String, - default: "" - }, - /** - * Time interval for debouncing input events, in ms. - */ - debounceInterval: { - type: Number, - default: ct - }, - /** - * Whether the search query should be highlighted within a search result's title. - */ - highlightQuery: { - type: Boolean, - default: !1 - }, - /** - * Whether to show search results' thumbnails (or a placeholder icon). - */ - showThumbnail: { - type: Boolean, - default: !1 - }, - /** - * Contract the width of the input when unfocused and expand the width of - * the input when focused to accommodate the extra width of the thumbnails. - * - * This prop is ignored if showThumbnail is false. - */ - autoExpandWidth: { - type: Boolean, - default: !1 - }, - /** - * Limit the number of menu items to display before scrolling. - * - * Setting this prop to anything falsy will show all menu items. - * - * By default, all menu items are shown. - */ - visibleItemLimit: { - type: Number, - default: null - } - }, - emits: [ - /** - * When the text input value changes. Debounced by default. - * - * @property {string} value The new input value - */ - "input", - /** - * When a search result is selected. - * - * @property {SearchResultClickEvent} event Data for the selected result - */ - "search-result-click", - /** - * When the form is submitted. - * - * @property {SearchResultClickEvent} event Data for the selected result - */ - "submit", - /** - * When the user scrolls towards the bottom of the menu. - * - * If it is possible to add or load more menu items, then now would be a good moment - * so that the user can experience infinite scrolling. - */ - "load-more" - ], - setup(e, { attrs: t, emit: n, slots: a }) { - const s = b(), r = b(), o = Ae("typeahead-search-menu"), i = b(!1), u = b(!1), d = b(!1), m = b(!1), C = b(e.initialInputValue), v = b(""), k = h(() => { - var f, l; - return (l = (f = r.value) == null ? void 0 : f.getHighlightedMenuItem()) == null ? void 0 : l.id; - }), w = b(null), M = h(() => ({ - "cdx-typeahead-search__menu-message--has-thumbnail": e.showThumbnail - })), I = h( - () => e.searchResults.find( - (f) => f.value === w.value - ) - ), Y = h( - () => e.searchFooterUrl ? { value: j, url: e.searchFooterUrl } : void 0 - ), Z = h(() => ({ - "cdx-typeahead-search--show-thumbnail": e.showThumbnail, - "cdx-typeahead-search--expanded": i.value, - "cdx-typeahead-search--auto-expand-width": e.showThumbnail && e.autoExpandWidth - })), { - rootClasses: ee, - rootStyle: oe, - otherAttrs: se - } = fe(t, Z); - function $(f) { - return f; - } - const T = h(() => ({ - visibleItemLimit: e.visibleItemLimit, - showThumbnail: e.showThumbnail, - // In case search queries aren't highlighted, default to a bold label. - boldLabel: !0, - hideDescriptionOverflow: !0 - })); - let R, N; - function ie(f, l = !1) { - I.value && I.value.label !== f && I.value.value !== f && (w.value = null), N !== void 0 && (clearTimeout(N), N = void 0), f === "" ? i.value = !1 : (u.value = !0, a["search-results-pending"] && (N = setTimeout(() => { - m.value && (i.value = !0), d.value = !0; - }, ht))), R !== void 0 && (clearTimeout(R), R = void 0); - const c = () => { - n("input", f); - }; - l ? c() : R = setTimeout(() => { - c(); - }, e.debounceInterval); - } - function O(f) { - if (f === j) { - w.value = null, C.value = v.value; - return; - } - w.value = f, f !== null && (C.value = I.value ? I.value.label || String(I.value.value) : ""); - } - function q() { - m.value = !0, (v.value || d.value) && (i.value = !0); - } - function Q() { - m.value = !1, i.value = !1; - } - function te(f) { - const y = f, { id: l } = y, c = ne(y, ["id"]); - if (c.value === j) { - n("search-result-click", { - searchResult: null, - index: e.searchResults.length, - numberOfResults: e.searchResults.length - }); - return; - } - ue(c); - } - function ue(f) { - const l = { - searchResult: f, - index: e.searchResults.findIndex( - (c) => c.value === f.value - ), - numberOfResults: e.searchResults.length - }; - n("search-result-click", l); - } - function pe(f) { - if (f.value === j) { - C.value = v.value; - return; - } - C.value = f.value ? f.label || String(f.value) : ""; - } - function me(f) { - var l; - i.value = !1, (l = r.value) == null || l.clearActive(), te(f); - } - function ge(f) { - if (I.value) - ue(I.value), f.stopPropagation(), window.location.assign(I.value.url), f.preventDefault(); - else { - const l = { - searchResult: null, - index: -1, - numberOfResults: e.searchResults.length - }; - n("submit", l); - } - } - function ve(f) { - if (!r.value || !v.value || f.key === " ") - return; - const l = r.value.getHighlightedMenuItem(), c = r.value.getHighlightedViaKeyboard(); - switch (f.key) { - case "Enter": - l && (l.value === j && c ? window.location.assign(e.searchFooterUrl) : r.value.delegateKeyNavigation(f, { prevent: !1 })), i.value = !1; - break; - case "Tab": - i.value = !1; - break; - default: - r.value.delegateKeyNavigation(f); - break; - } - } - return X(() => { - e.initialInputValue && ie(e.initialInputValue, !0); - }), G(z(e, "searchResults"), () => { - v.value = C.value.trim(), m.value && u.value && v.value.length > 0 && (i.value = !0), N !== void 0 && (clearTimeout(N), N = void 0), u.value = !1, d.value = !1; - }), { - form: s, - menu: r, - menuId: o, - highlightedId: k, - selection: w, - menuMessageClass: M, - footer: Y, - asSearchResult: $, - inputValue: C, - searchQuery: v, - expanded: i, - showPending: d, - rootClasses: ee, - rootStyle: oe, - otherAttrs: se, - menuConfig: T, - onUpdateInputValue: ie, - onUpdateMenuSelection: O, - onFocus: q, - onBlur: Q, - onSearchResultClick: te, - onSearchResultKeyboardNavigation: pe, - onSearchFooterClick: me, - onSubmit: ge, - onKeydown: ve, - MenuFooterValue: j, - articleIcon: Ye - }; - }, - methods: { - /** - * Focus the component's input element. - * - * @public - */ - focus() { - this.$refs.searchInput.focus(); - } - } -}); -const Tn = ["id", "action"], Vn = { class: "cdx-typeahead-search__menu-message__text" }, Bn = { class: "cdx-typeahead-search__menu-message__text" }, Ln = ["href", "onClickCapture"], Kn = { class: "cdx-menu-item__text cdx-typeahead-search__search-footer__text" }, An = { class: "cdx-typeahead-search__search-footer__query" }; -function Rn(e, t, n, a, s, r) { - const o = L("cdx-icon"), i = L("cdx-menu"), u = L("cdx-search-input"); - return p(), g("div", { - class: A(["cdx-typeahead-search", e.rootClasses]), - style: le(e.rootStyle) - }, [ - S("form", { - id: e.id, - ref: "form", - class: "cdx-typeahead-search__form", - action: e.formAction, - onSubmit: t[4] || (t[4] = (...d) => e.onSubmit && e.onSubmit(...d)) - }, [ - W(u, J({ - ref: "searchInput", - modelValue: e.inputValue, - "onUpdate:modelValue": t[3] || (t[3] = (d) => e.inputValue = d), - "button-label": e.buttonLabel - }, e.otherAttrs, { - class: "cdx-typeahead-search__input", - name: "search", - role: "combobox", - autocomplete: "off", - "aria-autocomplete": "list", - "aria-controls": e.menuId, - "aria-expanded": e.expanded, - "aria-activedescendant": e.highlightedId, - "onUpdate:modelValue": e.onUpdateInputValue, - onFocus: e.onFocus, - onBlur: e.onBlur, - onKeydown: e.onKeydown - }), { - default: H(() => [ - W(i, J({ - id: e.menuId, - ref: "menu", - expanded: e.expanded, - "onUpdate:expanded": t[0] || (t[0] = (d) => e.expanded = d), - "show-pending": e.showPending, - selected: e.selection, - "menu-items": e.searchResults, - footer: e.footer, - "search-query": e.highlightQuery ? e.searchQuery : "", - "show-no-results-slot": e.searchQuery.length > 0 && e.searchResults.length === 0 && e.$slots["search-no-results-text"] && e.$slots["search-no-results-text"]().length > 0 - }, e.menuConfig, { - "aria-label": e.searchResultsLabel, - "onUpdate:selected": e.onUpdateMenuSelection, - onMenuItemClick: t[1] || (t[1] = (d) => e.onSearchResultClick(e.asSearchResult(d))), - onMenuItemKeyboardNavigation: e.onSearchResultKeyboardNavigation, - onLoadMore: t[2] || (t[2] = (d) => e.$emit("load-more")) - }), { - pending: H(() => [ - S("div", { - class: A(["cdx-menu-item__content cdx-typeahead-search__menu-message", e.menuMessageClass]) - }, [ - S("span", Vn, [ - D(e.$slots, "search-results-pending") - ]) - ], 2) - ]), - "no-results": H(() => [ - S("div", { - class: A(["cdx-menu-item__content cdx-typeahead-search__menu-message", e.menuMessageClass]) - }, [ - S("span", Bn, [ - D(e.$slots, "search-no-results-text") - ]) - ], 2) - ]), - default: H(({ menuItem: d, active: m }) => [ - d.value === e.MenuFooterValue ? (p(), g("a", { - key: 0, - class: A(["cdx-menu-item__content cdx-typeahead-search__search-footer", { - "cdx-typeahead-search__search-footer__active": m - }]), - href: e.asSearchResult(d).url, - onClickCapture: Se((C) => e.onSearchFooterClick(e.asSearchResult(d)), ["stop"]) - }, [ - W(o, { - class: "cdx-menu-item__thumbnail cdx-typeahead-search__search-footer__icon", - icon: e.articleIcon - }, null, 8, ["icon"]), - S("span", Kn, [ - D(e.$slots, "search-footer-text", { searchQuery: e.searchQuery }, () => [ - S("strong", An, B(e.searchQuery), 1) - ]) - ]) - ], 42, Ln)) : x("", !0) - ]), - _: 3 - }, 16, ["id", "expanded", "show-pending", "selected", "menu-items", "footer", "search-query", "show-no-results-slot", "aria-label", "onUpdate:selected", "onMenuItemKeyboardNavigation"]) - ]), - _: 3 - }, 16, ["modelValue", "button-label", "aria-controls", "aria-expanded", "aria-activedescendant", "onUpdate:modelValue", "onFocus", "onBlur", "onKeydown"]), - D(e.$slots, "default") - ], 40, Tn) - ], 6); -} -const Fn = /* @__PURE__ */ F(Mn, [["render", Rn]]); -export { - Fn as CdxTypeaheadSearch -}; diff --git a/resources/lib/codex-search/codex-search.style-legacy-rtl.css b/resources/lib/codex-search/codex-search.style-legacy-rtl.css deleted file mode 100644 index a8311d8f76df..000000000000 --- a/resources/lib/codex-search/codex-search.style-legacy-rtl.css +++ /dev/null @@ -1 +0,0 @@ -.cdx-icon{color:#202122;display:inline-flex;align-items:center;justify-content:center;vertical-align:text-bottom}.cdx-icon svg{fill:currentcolor;width:100%;height:100%}.cdx-icon--x-small{min-width:12px;min-height:12px;width:.8571429em;height:.8571429em}.cdx-icon--small{min-width:16px;min-height:16px;width:1.1428571em;height:1.1428571em}.cdx-icon--medium{min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em}.cdx-icon--flipped svg{transform:scaleX(-1)}.cdx-thumbnail{display:inline-flex}.cdx-thumbnail__placeholder,.cdx-thumbnail__image{background-position:center;background-repeat:no-repeat;background-size:cover;flex-shrink:0;box-sizing:border-box;min-width:40px;min-height:40px;width:2.8571429em;height:2.8571429em;border:1px solid #c8ccd1;border-radius:2px}.cdx-thumbnail__image{display:inline-block}.cdx-thumbnail__image-enter-active{transition-property:opacity;transition-duration:.1s}.cdx-thumbnail__image-enter-from{opacity:0}.cdx-thumbnail__placeholder{background-color:#f8f9fa;display:inline-flex;align-items:center;justify-content:center}.cdx-thumbnail__placeholder__icon{background-position:center;background-repeat:no-repeat;background-size:max(1.4285714em,20px);min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em;display:inline-block;vertical-align:text-bottom;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20" fill="%2372777d"><path d="M19 3H1v14h18zM3 14l3.5-4.5 2.5 3L12.5 8l4.5 6z"/><path d="M19 5H1V3h18zm0 12H1v-2h18z"/></svg>')}.cdx-thumbnail__placeholder__icon--vue{color:#72777d}.cdx-search-result-title{display:inline-block;font-weight:700}.cdx-search-result-title__match{font-weight:400}.cdx-menu-item{list-style:none;position:relative;padding:8px 12px;line-height:1.6;transition-property:background-color,color,border-color,box-shadow;transition-duration:.1s}.cdx-menu-item__content{display:flex;align-items:center;line-height:1.4285714;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.cdx-menu-item__content,.cdx-menu-item__content:hover{text-decoration:none}.cdx-menu-item--has-description .cdx-menu-item__content{align-items:flex-start}.cdx-menu-item__text__description{display:block}.cdx-menu-item__thumbnail{margin-left:8px}.cdx-menu-item__icon{color:inherit;margin-left:8px}.cdx-menu-item--bold-label .cdx-menu-item__text__label{font-weight:700}.cdx-menu-item--hide-description-overflow .cdx-menu-item__text{overflow:hidden}.cdx-menu-item--hide-description-overflow .cdx-menu-item__text__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cdx-menu-item--enabled,.cdx-menu-item--enabled .cdx-menu-item__content{color:#202122}.cdx-menu-item--enabled .cdx-menu-item__text__supporting-text,.cdx-menu-item--enabled .cdx-menu-item__text__description{color:#54595d}.cdx-menu-item--enabled.cdx-menu-item--highlighted{background-color:#eaecf0;cursor:pointer}.cdx-menu-item--enabled.cdx-menu-item--active{background-color:#eaf3ff;color:#36c}.cdx-menu-item--enabled.cdx-menu-item--active .cdx-menu-item__content,.cdx-menu-item--enabled.cdx-menu-item--active .cdx-menu-item__text__description{color:#36c}.cdx-menu-item--enabled.cdx-menu-item--selected{background-color:#eaf3ff}.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted,.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted .cdx-menu-item__content,.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted .cdx-menu-item__text__description{color:#36c}.cdx-menu-item--disabled{color:#72777d;cursor:default}.cdx-menu-item--disabled .cdx-menu-item__text__description{color:#72777d}.cdx-progress-bar{box-sizing:border-box;overflow-x:hidden}.cdx-progress-bar__bar{width:33.33%;height:100%}.cdx-progress-bar:not(.cdx-progress-bar--inline){position:relative;z-index:1;height:1.1428571em;max-width:none;border:1px solid #a2a9b1;border-radius:9999px;box-shadow:0 2px 2px rgba(0,0,0,.2)}.cdx-progress-bar--inline{width:100%;height:.2857143em}.cdx-progress-bar:not(.cdx-progress-bar--disabled) .cdx-progress-bar__bar{background-color:#36c;animation-name:cdx-animation-progress-bar__bar;animation-duration:1.6s;animation-timing-function:linear;animation-iteration-count:infinite}.cdx-progress-bar:not(.cdx-progress-bar--disabled).cdx-progress-bar--block{background-color:#fff}.cdx-progress-bar--disabled .cdx-progress-bar__bar{background-color:#c8ccd1}.cdx-progress-bar--disabled:not(.cdx-progress-bar--inline){background-color:#eaecf0}@keyframes cdx-animation-progress-bar__bar{0%{transform:translate(100%)}to{transform:translate(-300%)}}.cdx-menu{background-color:#fff;position:absolute;right:0;z-index:50;box-sizing:border-box;width:100%;border:1px solid #a2a9b1;border-radius:0 0 2px 2px;box-shadow:0 2px 2px rgba(0,0,0,.2)}.cdx-menu__progress-bar{position:absolute;top:0}.cdx-menu__listbox{margin:0;padding:0}.cdx-menu--has-sticky-footer .cdx-menu-item:last-of-type{position:absolute;bottom:0;width:100%}.cdx-menu--has-footer .cdx-menu-item:last-of-type:not(:first-of-type){border-top:1px solid #c8ccd1}.cdx-button{box-sizing:border-box;min-width:32px;min-height:32px;max-width:32em;margin:0;border-width:1px;border-style:solid;border-radius:2px;padding-left:11px;padding-right:11px;font-family:inherit;font-size:inherit;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none;transition-property:background-color,color,border-color,box-shadow;transition-duration:.1s}.cdx-button--size-large{min-width:44px;min-height:44px;padding-left:15px;padding-right:15px}.cdx-button--icon-only{padding-left:5px;padding-right:5px}.cdx-button--icon-only.cdx-button--size-large{padding-left:11px;padding-right:11px}.cdx-button::-moz-focus-inner{border:0;padding:0}.cdx-button .cdx-button__icon,.cdx-button .cdx-icon{vertical-align:middle}.cdx-button .cdx-icon{color:inherit}.cdx-button--fake-button{display:inline-flex;align-items:center;justify-content:center}.cdx-button--fake-button,.cdx-button--fake-button:hover,.cdx-button--fake-button:focus{text-decoration:none}.cdx-button--fake-button:not(.cdx-button--icon-only) .cdx-button__icon{margin-left:4px}.cdx-button:enabled,.cdx-button.cdx-button--fake-button--enabled{background-color:#f8f9fa;color:#202122;border-color:#a2a9b1}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled .cdx-button__icon{background-color:#202122}}.cdx-button:enabled:hover,.cdx-button.cdx-button--fake-button--enabled:hover{background-color:#fff;color:#404244;cursor:pointer}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled:hover .cdx-button__icon{background-color:#404244}}.cdx-button:enabled:active,.cdx-button.cdx-button--fake-button--enabled:active,.cdx-button:enabled.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--is-active{background-color:#eaecf0;color:#000;border-color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled:active .cdx-button__icon,.cdx-button:enabled.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--is-active .cdx-button__icon{background-color:#000}}.cdx-button:enabled:focus,.cdx-button.cdx-button--fake-button--enabled:focus{outline:1px solid transparent}.cdx-button:enabled:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled:focus:not(:active):not(.cdx-button--is-active){border-color:#36c;box-shadow:inset 0 0 0 1px #36c}.cdx-button:enabled.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive{color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive .cdx-button__icon{background-color:#36c}}.cdx-button:enabled.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:hover{color:#447ff5;border-color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#447ff5}}.cdx-button:enabled.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive.cdx-button--is-active{background-color:#eaf3ff;color:#2a4b8d;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#2a4b8d}}.cdx-button:enabled.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive{color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive .cdx-button__icon{background-color:#d73333}}.cdx-button:enabled.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:hover{color:#ff4242;border-color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#ff4242}}.cdx-button:enabled.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive.cdx-button--is-active{background-color:#fee7e6;color:#b32424;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#b32424}}.cdx-button:enabled.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive{background-color:#36c;color:#fff;border-color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover{background-color:#447ff5;border-color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active{background-color:#2a4b8d;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:focus:not(:active):not(.cdx-button--is-active){border-color:#36c;box-shadow:inset 0 0 0 1px #36c,inset 0 0 0 2px #fff}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive{background-color:#d73333;color:#fff;border-color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover{background-color:#ff4242;border-color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active{background-color:#b32424;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333,inset 0 0 0 2px #fff}.cdx-button:enabled.cdx-button--weight-quiet,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet{background-color:rgba(255,255,255,0);border-color:transparent}.cdx-button:enabled.cdx-button--weight-quiet:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:hover{background-color:rgba(0,24,73,.027)}.cdx-button:enabled.cdx-button--weight-quiet:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--is-active{background-color:rgba(0,24,73,.082);color:#000;border-color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--is-active .cdx-button__icon{background-color:#000}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive{color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive .cdx-button__icon{background-color:#36c}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover{background-color:#eaf3ff;color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#447ff5}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active{background-color:#2a4b8d;color:#fff;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive{color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive .cdx-button__icon{background-color:#d73333}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover{background-color:#fee7e6;color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#ff4242}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active{background-color:#b32424;color:#fff;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333}.cdx-button:disabled,.cdx-button.cdx-button--fake-button--disabled{background-color:#c8ccd1;color:#fff;border-color:transparent}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:disabled .cdx-button__icon,.cdx-button.cdx-button--fake-button--disabled .cdx-button__icon{background-color:#fff}}.cdx-button:disabled.cdx-button--weight-quiet,.cdx-button.cdx-button--fake-button--disabled.cdx-button--weight-quiet{background-color:rgba(255,255,255,0);color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:disabled.cdx-button--weight-quiet .cdx-button__icon,.cdx-button.cdx-button--fake-button--disabled.cdx-button--weight-quiet .cdx-button__icon{background-color:#72777d}}.cdx-text-input{position:relative;box-sizing:border-box;min-width:256px}.cdx-text-input__start-icon{position:absolute;top:50%;min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em;transition-property:color;transition-duration:.1s;right:9px;transform:translateY(-50%)}.cdx-text-input__icon.cdx-text-input__end-icon{min-width:16px;min-height:16px;width:1.1428571em;height:1.1428571em;background-position:center;background-repeat:no-repeat;background-size:max(1.1428571em,16px)}.cdx-text-input__clear-icon,.cdx-text-input__end-icon{position:absolute;top:50%;min-width:16px;min-height:16px;width:1.1428571em;height:1.1428571em;transition-property:color;transition-duration:.1s;left:9px;transform:translateY(-50%)}.cdx-text-input__clear-icon:hover{cursor:pointer}.cdx-text-input__end-icon+.cdx-text-input__clear-icon{left:calc(calc(8px * 2 + 1.1428571em) + 1px)}.cdx-text-input__input{display:block;box-sizing:border-box;min-height:32px;width:100%;margin:0;border-width:1px;border-style:solid;border-radius:2px;padding:4px 8px;font-family:inherit;font-size:inherit;line-height:1.4285714}.cdx-text-input__input:enabled{background-color:#fff;color:#202122;border-color:#a2a9b1;box-shadow:inset 0 0 0 1px transparent;transition-property:background-color,color,border-color,box-shadow;transition-duration:.25s}.cdx-text-input__input:enabled~.cdx-text-input__icon-vue{color:#72777d}.cdx-text-input__input:enabled~.cdx-text-input__icon{opacity:.51}.cdx-text-input__input:enabled:hover{border-color:#72777d}.cdx-text-input__input:enabled:focus~.cdx-text-input__icon-vue,.cdx-text-input__input:enabled.cdx-text-input__input--has-value~.cdx-text-input__icon-vue{color:#202122}.cdx-text-input__input:enabled:focus~.cdx-text-input__icon,.cdx-text-input__input:enabled.cdx-text-input__input--has-value~.cdx-text-input__icon{opacity:1}.cdx-text-input__input:enabled:focus{border-color:#36c;box-shadow:inset 0 0 0 1px #36c;outline:1px solid transparent}.cdx-text-input__input:enabled:read-only{background-color:#f8f9fa}.cdx-text-input__input:disabled{background-color:#eaecf0;color:#72777d;-webkit-text-fill-color:#72777d;border-color:#c8ccd1}.cdx-text-input__input:disabled~.cdx-text-input__icon-vue{color:#72777d;pointer-events:none}.cdx-text-input__input:disabled~.cdx-text-input__icon{opacity:.51}.cdx-text-input__input::-webkit-input-placeholder{color:#72777d;opacity:1}.cdx-text-input__input::placeholder{color:#72777d;opacity:1}.cdx-text-input__input::-ms-clear{display:none}.cdx-text-input__input[type=search]{-webkit-appearance:none;-moz-appearance:textfield}.cdx-text-input__input[type=search]::-webkit-search-decoration,.cdx-text-input__input[type=search]::-webkit-search-cancel-button{display:none}.cdx-text-input--has-start-icon .cdx-text-input__input{padding-right:calc(8px + 8px + 1.4285714em)}.cdx-text-input--has-end-icon .cdx-text-input__input,.cdx-text-input--clearable .cdx-text-input__input{padding-left:calc(8px + 8px + 1.1428571em)}.cdx-text-input--has-end-icon.cdx-text-input--clearable .cdx-text-input__input{padding-left:calc(8px + calc(8px * 2 + 1.1428571em) + 1.1428571em)}.cdx-text-input--status-error .cdx-text-input__input:enabled{border-color:#b32424}.cdx-text-input--status-error .cdx-text-input__input:enabled:focus{border-color:#36c}.cdx-search-input--has-end-button{background-color:#fff;display:flex;border:1px solid #a2a9b1;border-radius:2px}.cdx-search-input--has-end-button .cdx-search-input__input-wrapper{flex-grow:1;margin:-1px}.cdx-search-input--has-end-button .cdx-search-input__input-wrapper .cdx-text-input__input{border-top-left-radius:0;border-bottom-left-radius:0}.cdx-search-input__end-button{flex-shrink:0;margin:-1px 0 -1px -1px;border-top-right-radius:0;border-bottom-right-radius:0}.cdx-search-input__end-button:hover,.cdx-search-input__end-button:focus{z-index:1}.cdx-search-input__input-wrapper{position:relative}.cdx-search-input .cdx-text-input__icon.cdx-text-input__start-icon{background-position:center;background-repeat:no-repeat;background-size:max(1.4285714em,20px);min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em;display:inline-block;vertical-align:text-bottom;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20" fill="%23202122"><path d="M12.2 13.6a7 7 0 111.4-1.4l5.4 5.4-1.4 1.4zM3 8a5 5 0 1010 0A5 5 0 003 8z"/></svg>')}.cdx-typeahead-search .cdx-menu-item{padding:0}.cdx-typeahead-search .cdx-menu-item__content{padding:8px 12px}.cdx-typeahead-search__search-footer{box-sizing:border-box;min-height:56px}.cdx-typeahead-search__search-footer:visited{color:#202122}.cdx-typeahead-search__search-footer:hover{text-decoration:none;cursor:pointer}.cdx-typeahead-search__search-footer__icon{color:#54595d}.cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__icon,.cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__text{color:#36c}.cdx-typeahead-search .cdx-typeahead-search__menu-message--has-thumbnail{padding-right:20px}.cdx-typeahead-search__input [aria-expanded=true],.cdx-typeahead-search__input[aria-expanded=true]{border-bottom-right-radius:0;border-bottom-left-radius:0}.cdx-typeahead-search .cdx-text-input--has-start-icon .cdx-text-input__input{padding-right:36px}.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width:not(.cdx-typeahead-search--expanded){margin-right:24px}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width),.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded{margin-right:0}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width) .cdx-text-input__input,.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded .cdx-text-input__input{padding-right:60px}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width) .cdx-text-input__start-icon,.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded .cdx-text-input__start-icon{position:absolute;top:50%;min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em;transition-property:color;transition-duration:.1s;right:22px;transform:translateY(-50%)}.cdx-typeahead-search--show-thumbnail .cdx-typeahead-search__search-footer__icon{flex-shrink:0;min-width:40px;width:2.8571429em}.cdx-typeahead-search .cdx-menu-item:first-child .cdx-typeahead-search__search-footer{border-top:unset} diff --git a/resources/lib/codex-search/codex-search.style-legacy.css b/resources/lib/codex-search/codex-search.style-legacy.css deleted file mode 100644 index e2a6fd426b48..000000000000 --- a/resources/lib/codex-search/codex-search.style-legacy.css +++ /dev/null @@ -1 +0,0 @@ -.cdx-icon{color:#202122;display:inline-flex;align-items:center;justify-content:center;vertical-align:text-bottom}.cdx-icon svg{fill:currentcolor;width:100%;height:100%}.cdx-icon--x-small{min-width:12px;min-height:12px;width:.8571429em;height:.8571429em}.cdx-icon--small{min-width:16px;min-height:16px;width:1.1428571em;height:1.1428571em}.cdx-icon--medium{min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em}.cdx-icon--flipped svg{transform:scaleX(-1)}.cdx-thumbnail{display:inline-flex}.cdx-thumbnail__placeholder,.cdx-thumbnail__image{background-position:center;background-repeat:no-repeat;background-size:cover;flex-shrink:0;box-sizing:border-box;min-width:40px;min-height:40px;width:2.8571429em;height:2.8571429em;border:1px solid #c8ccd1;border-radius:2px}.cdx-thumbnail__image{display:inline-block}.cdx-thumbnail__image-enter-active{transition-property:opacity;transition-duration:.1s}.cdx-thumbnail__image-enter-from{opacity:0}.cdx-thumbnail__placeholder{background-color:#f8f9fa;display:inline-flex;align-items:center;justify-content:center}.cdx-thumbnail__placeholder__icon{background-position:center;background-repeat:no-repeat;background-size:max(1.4285714em,20px);min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em;display:inline-block;vertical-align:text-bottom;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20" fill="%2372777d"><path d="M19 3H1v14h18zM3 14l3.5-4.5 2.5 3L12.5 8l4.5 6z"/><path d="M19 5H1V3h18zm0 12H1v-2h18z"/></svg>')}.cdx-thumbnail__placeholder__icon--vue{color:#72777d}.cdx-search-result-title{display:inline-block;font-weight:700}.cdx-search-result-title__match{font-weight:400}.cdx-menu-item{list-style:none;position:relative;padding:8px 12px;line-height:1.6;transition-property:background-color,color,border-color,box-shadow;transition-duration:.1s}.cdx-menu-item__content{display:flex;align-items:center;line-height:1.4285714;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.cdx-menu-item__content,.cdx-menu-item__content:hover{text-decoration:none}.cdx-menu-item--has-description .cdx-menu-item__content{align-items:flex-start}.cdx-menu-item__text__description{display:block}.cdx-menu-item__thumbnail{margin-right:8px}.cdx-menu-item__icon{color:inherit;margin-right:8px}.cdx-menu-item--bold-label .cdx-menu-item__text__label{font-weight:700}.cdx-menu-item--hide-description-overflow .cdx-menu-item__text{overflow:hidden}.cdx-menu-item--hide-description-overflow .cdx-menu-item__text__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cdx-menu-item--enabled,.cdx-menu-item--enabled .cdx-menu-item__content{color:#202122}.cdx-menu-item--enabled .cdx-menu-item__text__supporting-text,.cdx-menu-item--enabled .cdx-menu-item__text__description{color:#54595d}.cdx-menu-item--enabled.cdx-menu-item--highlighted{background-color:#eaecf0;cursor:pointer}.cdx-menu-item--enabled.cdx-menu-item--active{background-color:#eaf3ff;color:#36c}.cdx-menu-item--enabled.cdx-menu-item--active .cdx-menu-item__content,.cdx-menu-item--enabled.cdx-menu-item--active .cdx-menu-item__text__description{color:#36c}.cdx-menu-item--enabled.cdx-menu-item--selected{background-color:#eaf3ff}.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted,.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted .cdx-menu-item__content,.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted .cdx-menu-item__text__description{color:#36c}.cdx-menu-item--disabled{color:#72777d;cursor:default}.cdx-menu-item--disabled .cdx-menu-item__text__description{color:#72777d}.cdx-progress-bar{box-sizing:border-box;overflow-x:hidden}.cdx-progress-bar__bar{width:33.33%;height:100%}.cdx-progress-bar:not(.cdx-progress-bar--inline){position:relative;z-index:1;height:1.1428571em;max-width:none;border:1px solid #a2a9b1;border-radius:9999px;box-shadow:0 2px 2px rgba(0,0,0,.2)}.cdx-progress-bar--inline{width:100%;height:.2857143em}.cdx-progress-bar:not(.cdx-progress-bar--disabled) .cdx-progress-bar__bar{background-color:#36c;animation-name:cdx-animation-progress-bar__bar;animation-duration:1.6s;animation-timing-function:linear;animation-iteration-count:infinite}.cdx-progress-bar:not(.cdx-progress-bar--disabled).cdx-progress-bar--block{background-color:#fff}.cdx-progress-bar--disabled .cdx-progress-bar__bar{background-color:#c8ccd1}.cdx-progress-bar--disabled:not(.cdx-progress-bar--inline){background-color:#eaecf0}@keyframes cdx-animation-progress-bar__bar{0%{transform:translate(-100%)}to{transform:translate(300%)}}.cdx-menu{background-color:#fff;position:absolute;left:0;z-index:50;box-sizing:border-box;width:100%;border:1px solid #a2a9b1;border-radius:0 0 2px 2px;box-shadow:0 2px 2px rgba(0,0,0,.2)}.cdx-menu__progress-bar{position:absolute;top:0}.cdx-menu__listbox{margin:0;padding:0}.cdx-menu--has-sticky-footer .cdx-menu-item:last-of-type{position:absolute;bottom:0;width:100%}.cdx-menu--has-footer .cdx-menu-item:last-of-type:not(:first-of-type){border-top:1px solid #c8ccd1}.cdx-button{box-sizing:border-box;min-width:32px;min-height:32px;max-width:32em;margin:0;border-width:1px;border-style:solid;border-radius:2px;padding-right:11px;padding-left:11px;font-family:inherit;font-size:inherit;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none;transition-property:background-color,color,border-color,box-shadow;transition-duration:.1s}.cdx-button--size-large{min-width:44px;min-height:44px;padding-right:15px;padding-left:15px}.cdx-button--icon-only{padding-right:5px;padding-left:5px}.cdx-button--icon-only.cdx-button--size-large{padding-right:11px;padding-left:11px}.cdx-button::-moz-focus-inner{border:0;padding:0}.cdx-button .cdx-button__icon,.cdx-button .cdx-icon{vertical-align:middle}.cdx-button .cdx-icon{color:inherit}.cdx-button--fake-button{display:inline-flex;align-items:center;justify-content:center}.cdx-button--fake-button,.cdx-button--fake-button:hover,.cdx-button--fake-button:focus{text-decoration:none}.cdx-button--fake-button:not(.cdx-button--icon-only) .cdx-button__icon{margin-right:4px}.cdx-button:enabled,.cdx-button.cdx-button--fake-button--enabled{background-color:#f8f9fa;color:#202122;border-color:#a2a9b1}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled .cdx-button__icon{background-color:#202122}}.cdx-button:enabled:hover,.cdx-button.cdx-button--fake-button--enabled:hover{background-color:#fff;color:#404244;cursor:pointer}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled:hover .cdx-button__icon{background-color:#404244}}.cdx-button:enabled:active,.cdx-button.cdx-button--fake-button--enabled:active,.cdx-button:enabled.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--is-active{background-color:#eaecf0;color:#000;border-color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled:active .cdx-button__icon,.cdx-button:enabled.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--is-active .cdx-button__icon{background-color:#000}}.cdx-button:enabled:focus,.cdx-button.cdx-button--fake-button--enabled:focus{outline:1px solid transparent}.cdx-button:enabled:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled:focus:not(:active):not(.cdx-button--is-active){border-color:#36c;box-shadow:inset 0 0 0 1px #36c}.cdx-button:enabled.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive{color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive .cdx-button__icon{background-color:#36c}}.cdx-button:enabled.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:hover{color:#447ff5;border-color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#447ff5}}.cdx-button:enabled.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive.cdx-button--is-active{background-color:#eaf3ff;color:#2a4b8d;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#2a4b8d}}.cdx-button:enabled.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive{color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive .cdx-button__icon{background-color:#d73333}}.cdx-button:enabled.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:hover{color:#ff4242;border-color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#ff4242}}.cdx-button:enabled.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive.cdx-button--is-active{background-color:#fee7e6;color:#b32424;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#b32424}}.cdx-button:enabled.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive{background-color:#36c;color:#fff;border-color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover{background-color:#447ff5;border-color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active{background-color:#2a4b8d;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:focus:not(:active):not(.cdx-button--is-active){border-color:#36c;box-shadow:inset 0 0 0 1px #36c,inset 0 0 0 2px #fff}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive{background-color:#d73333;color:#fff;border-color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover{background-color:#ff4242;border-color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active{background-color:#b32424;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333,inset 0 0 0 2px #fff}.cdx-button:enabled.cdx-button--weight-quiet,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet{background-color:rgba(255,255,255,0);border-color:transparent}.cdx-button:enabled.cdx-button--weight-quiet:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:hover{background-color:rgba(0,24,73,.027)}.cdx-button:enabled.cdx-button--weight-quiet:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--is-active{background-color:rgba(0,24,73,.082);color:#000;border-color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--is-active .cdx-button__icon{background-color:#000}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive{color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive .cdx-button__icon{background-color:#36c}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover{background-color:#eaf3ff;color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#447ff5}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active{background-color:#2a4b8d;color:#fff;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive{color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive .cdx-button__icon{background-color:#d73333}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover{background-color:#fee7e6;color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#ff4242}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active{background-color:#b32424;color:#fff;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333}.cdx-button:disabled,.cdx-button.cdx-button--fake-button--disabled{background-color:#c8ccd1;color:#fff;border-color:transparent}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:disabled .cdx-button__icon,.cdx-button.cdx-button--fake-button--disabled .cdx-button__icon{background-color:#fff}}.cdx-button:disabled.cdx-button--weight-quiet,.cdx-button.cdx-button--fake-button--disabled.cdx-button--weight-quiet{background-color:rgba(255,255,255,0);color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:disabled.cdx-button--weight-quiet .cdx-button__icon,.cdx-button.cdx-button--fake-button--disabled.cdx-button--weight-quiet .cdx-button__icon{background-color:#72777d}}.cdx-text-input{position:relative;box-sizing:border-box;min-width:256px}.cdx-text-input__start-icon{position:absolute;top:50%;min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em;transition-property:color;transition-duration:.1s;left:9px;transform:translateY(-50%)}.cdx-text-input__icon.cdx-text-input__end-icon{min-width:16px;min-height:16px;width:1.1428571em;height:1.1428571em;background-position:center;background-repeat:no-repeat;background-size:max(1.1428571em,16px)}.cdx-text-input__clear-icon,.cdx-text-input__end-icon{position:absolute;top:50%;min-width:16px;min-height:16px;width:1.1428571em;height:1.1428571em;transition-property:color;transition-duration:.1s;right:9px;transform:translateY(-50%)}.cdx-text-input__clear-icon:hover{cursor:pointer}.cdx-text-input__end-icon+.cdx-text-input__clear-icon{right:calc(calc(8px * 2 + 1.1428571em) + 1px)}.cdx-text-input__input{display:block;box-sizing:border-box;min-height:32px;width:100%;margin:0;border-width:1px;border-style:solid;border-radius:2px;padding:4px 8px;font-family:inherit;font-size:inherit;line-height:1.4285714}.cdx-text-input__input:enabled{background-color:#fff;color:#202122;border-color:#a2a9b1;box-shadow:inset 0 0 0 1px transparent;transition-property:background-color,color,border-color,box-shadow;transition-duration:.25s}.cdx-text-input__input:enabled~.cdx-text-input__icon-vue{color:#72777d}.cdx-text-input__input:enabled~.cdx-text-input__icon{opacity:.51}.cdx-text-input__input:enabled:hover{border-color:#72777d}.cdx-text-input__input:enabled:focus~.cdx-text-input__icon-vue,.cdx-text-input__input:enabled.cdx-text-input__input--has-value~.cdx-text-input__icon-vue{color:#202122}.cdx-text-input__input:enabled:focus~.cdx-text-input__icon,.cdx-text-input__input:enabled.cdx-text-input__input--has-value~.cdx-text-input__icon{opacity:1}.cdx-text-input__input:enabled:focus{border-color:#36c;box-shadow:inset 0 0 0 1px #36c;outline:1px solid transparent}.cdx-text-input__input:enabled:read-only{background-color:#f8f9fa}.cdx-text-input__input:disabled{background-color:#eaecf0;color:#72777d;-webkit-text-fill-color:#72777d;border-color:#c8ccd1}.cdx-text-input__input:disabled~.cdx-text-input__icon-vue{color:#72777d;pointer-events:none}.cdx-text-input__input:disabled~.cdx-text-input__icon{opacity:.51}.cdx-text-input__input::-webkit-input-placeholder{color:#72777d;opacity:1}.cdx-text-input__input::placeholder{color:#72777d;opacity:1}.cdx-text-input__input::-ms-clear{display:none}.cdx-text-input__input[type=search]{-webkit-appearance:none;-moz-appearance:textfield}.cdx-text-input__input[type=search]::-webkit-search-decoration,.cdx-text-input__input[type=search]::-webkit-search-cancel-button{display:none}.cdx-text-input--has-start-icon .cdx-text-input__input{padding-left:calc(8px + 8px + 1.4285714em)}.cdx-text-input--has-end-icon .cdx-text-input__input,.cdx-text-input--clearable .cdx-text-input__input{padding-right:calc(8px + 8px + 1.1428571em)}.cdx-text-input--has-end-icon.cdx-text-input--clearable .cdx-text-input__input{padding-right:calc(8px + calc(8px * 2 + 1.1428571em) + 1.1428571em)}.cdx-text-input--status-error .cdx-text-input__input:enabled{border-color:#b32424}.cdx-text-input--status-error .cdx-text-input__input:enabled:focus{border-color:#36c}.cdx-search-input--has-end-button{background-color:#fff;display:flex;border:1px solid #a2a9b1;border-radius:2px}.cdx-search-input--has-end-button .cdx-search-input__input-wrapper{flex-grow:1;margin:-1px}.cdx-search-input--has-end-button .cdx-search-input__input-wrapper .cdx-text-input__input{border-top-right-radius:0;border-bottom-right-radius:0}.cdx-search-input__end-button{flex-shrink:0;margin:-1px -1px -1px 0;border-top-left-radius:0;border-bottom-left-radius:0}.cdx-search-input__end-button:hover,.cdx-search-input__end-button:focus{z-index:1}.cdx-search-input__input-wrapper{position:relative}.cdx-search-input .cdx-text-input__icon.cdx-text-input__start-icon{background-position:center;background-repeat:no-repeat;background-size:max(1.4285714em,20px);min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em;display:inline-block;vertical-align:text-bottom;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20" fill="%23202122"><path d="M12.2 13.6a7 7 0 111.4-1.4l5.4 5.4-1.4 1.4zM3 8a5 5 0 1010 0A5 5 0 003 8z"/></svg>')}.cdx-typeahead-search .cdx-menu-item{padding:0}.cdx-typeahead-search .cdx-menu-item__content{padding:8px 12px}.cdx-typeahead-search__search-footer{box-sizing:border-box;min-height:56px}.cdx-typeahead-search__search-footer:visited{color:#202122}.cdx-typeahead-search__search-footer:hover{text-decoration:none;cursor:pointer}.cdx-typeahead-search__search-footer__icon{color:#54595d}.cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__icon,.cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__text{color:#36c}.cdx-typeahead-search .cdx-typeahead-search__menu-message--has-thumbnail{padding-left:20px}.cdx-typeahead-search__input [aria-expanded=true],.cdx-typeahead-search__input[aria-expanded=true]{border-bottom-left-radius:0;border-bottom-right-radius:0}.cdx-typeahead-search .cdx-text-input--has-start-icon .cdx-text-input__input{padding-left:36px}.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width:not(.cdx-typeahead-search--expanded){margin-left:24px}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width),.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded{margin-left:0}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width) .cdx-text-input__input,.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded .cdx-text-input__input{padding-left:60px}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width) .cdx-text-input__start-icon,.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded .cdx-text-input__start-icon{position:absolute;top:50%;min-width:20px;min-height:20px;width:1.4285714em;height:1.4285714em;transition-property:color;transition-duration:.1s;left:22px;transform:translateY(-50%)}.cdx-typeahead-search--show-thumbnail .cdx-typeahead-search__search-footer__icon{flex-shrink:0;min-width:40px;width:2.8571429em}.cdx-typeahead-search .cdx-menu-item:first-child .cdx-typeahead-search__search-footer{border-top:unset} diff --git a/resources/lib/codex-search/codex-search.style-rtl.css b/resources/lib/codex-search/codex-search.style-rtl.css deleted file mode 100644 index a01df159dbee..000000000000 --- a/resources/lib/codex-search/codex-search.style-rtl.css +++ /dev/null @@ -1 +0,0 @@ -.cdx-icon{color:#202122;display:inline-flex;align-items:center;justify-content:center;vertical-align:text-bottom}.cdx-icon svg{fill:currentcolor;width:100%;height:100%}.cdx-icon--x-small{min-width:12px;min-height:12px;width:.75em;height:.75em}.cdx-icon--small{min-width:16px;min-height:16px;width:1em;height:1em}.cdx-icon--medium{min-width:20px;min-height:20px;width:1.25em;height:1.25em}.cdx-icon--flipped svg{transform:scaleX(-1)}.cdx-thumbnail{display:inline-flex}.cdx-thumbnail__placeholder,.cdx-thumbnail__image{background-position:center;background-repeat:no-repeat;background-size:cover;flex-shrink:0;box-sizing:border-box;min-width:40px;min-height:40px;width:2.5em;height:2.5em;border:1px solid #c8ccd1;border-radius:2px}.cdx-thumbnail__image{display:inline-block}.cdx-thumbnail__image-enter-active{transition-property:opacity;transition-duration:.1s}.cdx-thumbnail__image-enter-from{opacity:0}.cdx-thumbnail__placeholder{background-color:#f8f9fa;display:inline-flex;align-items:center;justify-content:center}.cdx-thumbnail__placeholder__icon{background-position:center;background-repeat:no-repeat;background-size:max(1.25em,20px);min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20" fill="%2372777d"><path d="M19 3H1v14h18zM3 14l3.5-4.5 2.5 3L12.5 8l4.5 6z"/><path d="M19 5H1V3h18zm0 12H1v-2h18z"/></svg>')}.cdx-thumbnail__placeholder__icon--vue{color:#72777d}.cdx-search-result-title{display:inline-block;font-weight:700}.cdx-search-result-title__match{font-weight:400}.cdx-menu-item{list-style:none;position:relative;padding:8px 12px;line-height:1.6;transition-property:background-color,color,border-color,box-shadow;transition-duration:.1s}.cdx-menu-item__content{display:flex;align-items:center;line-height:1.4285714;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.cdx-menu-item__content,.cdx-menu-item__content:hover{text-decoration:none}.cdx-menu-item--has-description .cdx-menu-item__content{align-items:flex-start}.cdx-menu-item__text__description{display:block}.cdx-menu-item__thumbnail{margin-left:8px}.cdx-menu-item__icon{color:inherit;margin-left:8px}.cdx-menu-item--bold-label .cdx-menu-item__text__label{font-weight:700}.cdx-menu-item--hide-description-overflow .cdx-menu-item__text{overflow:hidden}.cdx-menu-item--hide-description-overflow .cdx-menu-item__text__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cdx-menu-item--enabled,.cdx-menu-item--enabled .cdx-menu-item__content{color:#202122}.cdx-menu-item--enabled .cdx-menu-item__text__supporting-text,.cdx-menu-item--enabled .cdx-menu-item__text__description{color:#54595d}.cdx-menu-item--enabled.cdx-menu-item--highlighted{background-color:#eaecf0;cursor:pointer}.cdx-menu-item--enabled.cdx-menu-item--active{background-color:#eaf3ff;color:#36c}.cdx-menu-item--enabled.cdx-menu-item--active .cdx-menu-item__content,.cdx-menu-item--enabled.cdx-menu-item--active .cdx-menu-item__text__description{color:#36c}.cdx-menu-item--enabled.cdx-menu-item--selected{background-color:#eaf3ff}.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted,.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted .cdx-menu-item__content,.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted .cdx-menu-item__text__description{color:#36c}.cdx-menu-item--disabled{color:#72777d;cursor:default}.cdx-menu-item--disabled .cdx-menu-item__text__description{color:#72777d}.cdx-progress-bar{box-sizing:border-box;overflow-x:hidden}.cdx-progress-bar__bar{width:33.33%;height:100%}.cdx-progress-bar:not(.cdx-progress-bar--inline){position:relative;z-index:1;height:1em;max-width:none;border:1px solid #a2a9b1;border-radius:9999px;box-shadow:0 2px 2px rgba(0,0,0,.2)}.cdx-progress-bar--inline{width:100%;height:.25em}.cdx-progress-bar:not(.cdx-progress-bar--disabled) .cdx-progress-bar__bar{background-color:#36c;animation-name:cdx-animation-progress-bar__bar;animation-duration:1.6s;animation-timing-function:linear;animation-iteration-count:infinite}.cdx-progress-bar:not(.cdx-progress-bar--disabled).cdx-progress-bar--block{background-color:#fff}.cdx-progress-bar--disabled .cdx-progress-bar__bar{background-color:#c8ccd1}.cdx-progress-bar--disabled:not(.cdx-progress-bar--inline){background-color:#eaecf0}@keyframes cdx-animation-progress-bar__bar{0%{transform:translate(100%)}to{transform:translate(-300%)}}.cdx-menu{background-color:#fff;position:absolute;right:0;z-index:50;box-sizing:border-box;width:100%;border:1px solid #a2a9b1;border-radius:0 0 2px 2px;box-shadow:0 2px 2px rgba(0,0,0,.2)}.cdx-menu__progress-bar{position:absolute;top:0}.cdx-menu__listbox{margin:0;padding:0}.cdx-menu--has-sticky-footer .cdx-menu-item:last-of-type{position:absolute;bottom:0;width:100%}.cdx-menu--has-footer .cdx-menu-item:last-of-type:not(:first-of-type){border-top:1px solid #c8ccd1}.cdx-button{box-sizing:border-box;min-width:32px;min-height:32px;max-width:28em;margin:0;border-width:1px;border-style:solid;border-radius:2px;padding-left:11px;padding-right:11px;font-family:inherit;font-size:inherit;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none;transition-property:background-color,color,border-color,box-shadow;transition-duration:.1s}.cdx-button--size-large{min-width:44px;min-height:44px;padding-left:15px;padding-right:15px}.cdx-button--icon-only{padding-left:5px;padding-right:5px}.cdx-button--icon-only.cdx-button--size-large{padding-left:11px;padding-right:11px}.cdx-button::-moz-focus-inner{border:0;padding:0}.cdx-button .cdx-button__icon,.cdx-button .cdx-icon{vertical-align:middle}.cdx-button .cdx-icon{color:inherit}.cdx-button--fake-button{display:inline-flex;align-items:center;justify-content:center}.cdx-button--fake-button,.cdx-button--fake-button:hover,.cdx-button--fake-button:focus{text-decoration:none}.cdx-button--fake-button:not(.cdx-button--icon-only) .cdx-button__icon{margin-left:4px}.cdx-button:enabled,.cdx-button.cdx-button--fake-button--enabled{background-color:#f8f9fa;color:#202122;border-color:#a2a9b1}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled .cdx-button__icon{background-color:#202122}}.cdx-button:enabled:hover,.cdx-button.cdx-button--fake-button--enabled:hover{background-color:#fff;color:#404244;cursor:pointer}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled:hover .cdx-button__icon{background-color:#404244}}.cdx-button:enabled:active,.cdx-button.cdx-button--fake-button--enabled:active,.cdx-button:enabled.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--is-active{background-color:#eaecf0;color:#000;border-color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled:active .cdx-button__icon,.cdx-button:enabled.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--is-active .cdx-button__icon{background-color:#000}}.cdx-button:enabled:focus,.cdx-button.cdx-button--fake-button--enabled:focus{outline:1px solid transparent}.cdx-button:enabled:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled:focus:not(:active):not(.cdx-button--is-active){border-color:#36c;box-shadow:inset 0 0 0 1px #36c}.cdx-button:enabled.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive{color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive .cdx-button__icon{background-color:#36c}}.cdx-button:enabled.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:hover{color:#447ff5;border-color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#447ff5}}.cdx-button:enabled.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive.cdx-button--is-active{background-color:#eaf3ff;color:#2a4b8d;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#2a4b8d}}.cdx-button:enabled.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive{color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive .cdx-button__icon{background-color:#d73333}}.cdx-button:enabled.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:hover{color:#ff4242;border-color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#ff4242}}.cdx-button:enabled.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive.cdx-button--is-active{background-color:#fee7e6;color:#b32424;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#b32424}}.cdx-button:enabled.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive{background-color:#36c;color:#fff;border-color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover{background-color:#447ff5;border-color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active{background-color:#2a4b8d;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:focus:not(:active):not(.cdx-button--is-active){border-color:#36c;box-shadow:inset 0 0 0 1px #36c,inset 0 0 0 2px #fff}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive{background-color:#d73333;color:#fff;border-color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover{background-color:#ff4242;border-color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active{background-color:#b32424;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333,inset 0 0 0 2px #fff}.cdx-button:enabled.cdx-button--weight-quiet,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet{background-color:rgba(255,255,255,0);border-color:transparent}.cdx-button:enabled.cdx-button--weight-quiet:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:hover{background-color:rgba(0,24,73,.027)}.cdx-button:enabled.cdx-button--weight-quiet:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--is-active{background-color:rgba(0,24,73,.082);color:#000;border-color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--is-active .cdx-button__icon{background-color:#000}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive{color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive .cdx-button__icon{background-color:#36c}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover{background-color:#eaf3ff;color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#447ff5}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active{background-color:#2a4b8d;color:#fff;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive{color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive .cdx-button__icon{background-color:#d73333}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover{background-color:#fee7e6;color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#ff4242}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active{background-color:#b32424;color:#fff;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333}.cdx-button:disabled,.cdx-button.cdx-button--fake-button--disabled{background-color:#c8ccd1;color:#fff;border-color:transparent}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:disabled .cdx-button__icon,.cdx-button.cdx-button--fake-button--disabled .cdx-button__icon{background-color:#fff}}.cdx-button:disabled.cdx-button--weight-quiet,.cdx-button.cdx-button--fake-button--disabled.cdx-button--weight-quiet{background-color:rgba(255,255,255,0);color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:disabled.cdx-button--weight-quiet .cdx-button__icon,.cdx-button.cdx-button--fake-button--disabled.cdx-button--weight-quiet .cdx-button__icon{background-color:#72777d}}.cdx-text-input{position:relative;box-sizing:border-box;min-width:256px}.cdx-text-input__start-icon{position:absolute;top:50%;min-width:20px;min-height:20px;width:1.25em;height:1.25em;transition-property:color;transition-duration:.1s;right:9px;transform:translateY(-50%)}.cdx-text-input__icon.cdx-text-input__end-icon{min-width:16px;min-height:16px;width:1em;height:1em;background-position:center;background-repeat:no-repeat;background-size:max(1em,16px)}.cdx-text-input__clear-icon,.cdx-text-input__end-icon{position:absolute;top:50%;min-width:16px;min-height:16px;width:1em;height:1em;transition-property:color;transition-duration:.1s;left:9px;transform:translateY(-50%)}.cdx-text-input__clear-icon:hover{cursor:pointer}.cdx-text-input__end-icon+.cdx-text-input__clear-icon{left:calc(17px + 1em)}.cdx-text-input__input{display:block;box-sizing:border-box;min-height:32px;width:100%;margin:0;border-width:1px;border-style:solid;border-radius:2px;padding:4px 8px;font-family:inherit;font-size:inherit;line-height:1.4285714}.cdx-text-input__input:enabled{background-color:#fff;color:#202122;border-color:#a2a9b1;box-shadow:inset 0 0 0 1px transparent;transition-property:background-color,color,border-color,box-shadow;transition-duration:.25s}.cdx-text-input__input:enabled~.cdx-text-input__icon-vue{color:#72777d}.cdx-text-input__input:enabled~.cdx-text-input__icon{opacity:.51}.cdx-text-input__input:enabled:hover{border-color:#72777d}.cdx-text-input__input:enabled:focus~.cdx-text-input__icon-vue,.cdx-text-input__input:enabled.cdx-text-input__input--has-value~.cdx-text-input__icon-vue{color:#202122}.cdx-text-input__input:enabled:focus~.cdx-text-input__icon,.cdx-text-input__input:enabled.cdx-text-input__input--has-value~.cdx-text-input__icon{opacity:1}.cdx-text-input__input:enabled:focus{border-color:#36c;box-shadow:inset 0 0 0 1px #36c;outline:1px solid transparent}.cdx-text-input__input:enabled:read-only{background-color:#f8f9fa}.cdx-text-input__input:disabled{background-color:#eaecf0;color:#72777d;-webkit-text-fill-color:#72777d;border-color:#c8ccd1}.cdx-text-input__input:disabled~.cdx-text-input__icon-vue{color:#72777d;pointer-events:none}.cdx-text-input__input:disabled~.cdx-text-input__icon{opacity:.51}.cdx-text-input__input::-webkit-input-placeholder{color:#72777d;opacity:1}.cdx-text-input__input::placeholder{color:#72777d;opacity:1}.cdx-text-input__input::-ms-clear{display:none}.cdx-text-input__input[type=search]{-webkit-appearance:none;-moz-appearance:textfield}.cdx-text-input__input[type=search]::-webkit-search-decoration,.cdx-text-input__input[type=search]::-webkit-search-cancel-button{display:none}.cdx-text-input--has-start-icon .cdx-text-input__input{padding-right:calc(16px + 1.25em)}.cdx-text-input--has-end-icon .cdx-text-input__input,.cdx-text-input--clearable .cdx-text-input__input{padding-left:calc(16px + 1em)}.cdx-text-input--has-end-icon.cdx-text-input--clearable .cdx-text-input__input{padding-left:calc(24px + 2em)}.cdx-text-input--status-error .cdx-text-input__input:enabled{border-color:#b32424}.cdx-text-input--status-error .cdx-text-input__input:enabled:focus{border-color:#36c}.cdx-search-input--has-end-button{background-color:#fff;display:flex;border:1px solid #a2a9b1;border-radius:2px}.cdx-search-input--has-end-button .cdx-search-input__input-wrapper{flex-grow:1;margin:-1px}.cdx-search-input--has-end-button .cdx-search-input__input-wrapper .cdx-text-input__input{border-top-left-radius:0;border-bottom-left-radius:0}.cdx-search-input__end-button{flex-shrink:0;margin:-1px 0 -1px -1px;border-top-right-radius:0;border-bottom-right-radius:0}.cdx-search-input__end-button:hover,.cdx-search-input__end-button:focus{z-index:1}.cdx-search-input__input-wrapper{position:relative}.cdx-search-input .cdx-text-input__icon.cdx-text-input__start-icon{background-position:center;background-repeat:no-repeat;background-size:max(1.25em,20px);min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20" fill="%23202122"><path d="M12.2 13.6a7 7 0 111.4-1.4l5.4 5.4-1.4 1.4zM3 8a5 5 0 1010 0A5 5 0 003 8z"/></svg>')}.cdx-typeahead-search .cdx-menu-item{padding:0}.cdx-typeahead-search .cdx-menu-item__content{padding:8px 12px}.cdx-typeahead-search__search-footer{box-sizing:border-box;min-height:56px}.cdx-typeahead-search__search-footer:visited{color:#202122}.cdx-typeahead-search__search-footer:hover{text-decoration:none;cursor:pointer}.cdx-typeahead-search__search-footer__icon{color:#54595d}.cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__icon,.cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__text{color:#36c}.cdx-typeahead-search .cdx-typeahead-search__menu-message--has-thumbnail{padding-right:20px}.cdx-typeahead-search__input [aria-expanded=true],.cdx-typeahead-search__input[aria-expanded=true]{border-bottom-right-radius:0;border-bottom-left-radius:0}.cdx-typeahead-search .cdx-text-input--has-start-icon .cdx-text-input__input{padding-right:36px}.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width:not(.cdx-typeahead-search--expanded){margin-right:24px}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width),.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded{margin-right:0}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width) .cdx-text-input__input,.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded .cdx-text-input__input{padding-right:60px}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width) .cdx-text-input__start-icon,.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded .cdx-text-input__start-icon{position:absolute;top:50%;min-width:20px;min-height:20px;width:1.25em;height:1.25em;transition-property:color;transition-duration:.1s;right:22px;transform:translateY(-50%)}.cdx-typeahead-search--show-thumbnail .cdx-typeahead-search__search-footer__icon{flex-shrink:0;min-width:40px;width:2.5em}.cdx-typeahead-search .cdx-menu-item:first-child .cdx-typeahead-search__search-footer{border-top:unset} diff --git a/resources/lib/codex-search/codex-search.style.css b/resources/lib/codex-search/codex-search.style.css deleted file mode 100644 index b6f6a2f2125d..000000000000 --- a/resources/lib/codex-search/codex-search.style.css +++ /dev/null @@ -1 +0,0 @@ -.cdx-icon{color:#202122;display:inline-flex;align-items:center;justify-content:center;vertical-align:text-bottom}.cdx-icon svg{fill:currentcolor;width:100%;height:100%}.cdx-icon--x-small{min-width:12px;min-height:12px;width:.75em;height:.75em}.cdx-icon--small{min-width:16px;min-height:16px;width:1em;height:1em}.cdx-icon--medium{min-width:20px;min-height:20px;width:1.25em;height:1.25em}.cdx-icon--flipped svg{transform:scaleX(-1)}.cdx-thumbnail{display:inline-flex}.cdx-thumbnail__placeholder,.cdx-thumbnail__image{background-position:center;background-repeat:no-repeat;background-size:cover;flex-shrink:0;box-sizing:border-box;min-width:40px;min-height:40px;width:2.5em;height:2.5em;border:1px solid #c8ccd1;border-radius:2px}.cdx-thumbnail__image{display:inline-block}.cdx-thumbnail__image-enter-active{transition-property:opacity;transition-duration:.1s}.cdx-thumbnail__image-enter-from{opacity:0}.cdx-thumbnail__placeholder{background-color:#f8f9fa;display:inline-flex;align-items:center;justify-content:center}.cdx-thumbnail__placeholder__icon{background-position:center;background-repeat:no-repeat;background-size:max(1.25em,20px);min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20" fill="%2372777d"><path d="M19 3H1v14h18zM3 14l3.5-4.5 2.5 3L12.5 8l4.5 6z"/><path d="M19 5H1V3h18zm0 12H1v-2h18z"/></svg>')}.cdx-thumbnail__placeholder__icon--vue{color:#72777d}.cdx-search-result-title{display:inline-block;font-weight:700}.cdx-search-result-title__match{font-weight:400}.cdx-menu-item{list-style:none;position:relative;padding:8px 12px;line-height:1.6;transition-property:background-color,color,border-color,box-shadow;transition-duration:.1s}.cdx-menu-item__content{display:flex;align-items:center;line-height:1.4285714;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.cdx-menu-item__content,.cdx-menu-item__content:hover{text-decoration:none}.cdx-menu-item--has-description .cdx-menu-item__content{align-items:flex-start}.cdx-menu-item__text__description{display:block}.cdx-menu-item__thumbnail{margin-right:8px}.cdx-menu-item__icon{color:inherit;margin-right:8px}.cdx-menu-item--bold-label .cdx-menu-item__text__label{font-weight:700}.cdx-menu-item--hide-description-overflow .cdx-menu-item__text{overflow:hidden}.cdx-menu-item--hide-description-overflow .cdx-menu-item__text__description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cdx-menu-item--enabled,.cdx-menu-item--enabled .cdx-menu-item__content{color:#202122}.cdx-menu-item--enabled .cdx-menu-item__text__supporting-text,.cdx-menu-item--enabled .cdx-menu-item__text__description{color:#54595d}.cdx-menu-item--enabled.cdx-menu-item--highlighted{background-color:#eaecf0;cursor:pointer}.cdx-menu-item--enabled.cdx-menu-item--active{background-color:#eaf3ff;color:#36c}.cdx-menu-item--enabled.cdx-menu-item--active .cdx-menu-item__content,.cdx-menu-item--enabled.cdx-menu-item--active .cdx-menu-item__text__description{color:#36c}.cdx-menu-item--enabled.cdx-menu-item--selected{background-color:#eaf3ff}.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted,.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted .cdx-menu-item__content,.cdx-menu-item--enabled.cdx-menu-item--selected.cdx-menu-item--highlighted .cdx-menu-item__text__description{color:#36c}.cdx-menu-item--disabled{color:#72777d;cursor:default}.cdx-menu-item--disabled .cdx-menu-item__text__description{color:#72777d}.cdx-progress-bar{box-sizing:border-box;overflow-x:hidden}.cdx-progress-bar__bar{width:33.33%;height:100%}.cdx-progress-bar:not(.cdx-progress-bar--inline){position:relative;z-index:1;height:1em;max-width:none;border:1px solid #a2a9b1;border-radius:9999px;box-shadow:0 2px 2px rgba(0,0,0,.2)}.cdx-progress-bar--inline{width:100%;height:.25em}.cdx-progress-bar:not(.cdx-progress-bar--disabled) .cdx-progress-bar__bar{background-color:#36c;animation-name:cdx-animation-progress-bar__bar;animation-duration:1.6s;animation-timing-function:linear;animation-iteration-count:infinite}.cdx-progress-bar:not(.cdx-progress-bar--disabled).cdx-progress-bar--block{background-color:#fff}.cdx-progress-bar--disabled .cdx-progress-bar__bar{background-color:#c8ccd1}.cdx-progress-bar--disabled:not(.cdx-progress-bar--inline){background-color:#eaecf0}@keyframes cdx-animation-progress-bar__bar{0%{transform:translate(-100%)}to{transform:translate(300%)}}.cdx-menu{background-color:#fff;position:absolute;left:0;z-index:50;box-sizing:border-box;width:100%;border:1px solid #a2a9b1;border-radius:0 0 2px 2px;box-shadow:0 2px 2px rgba(0,0,0,.2)}.cdx-menu__progress-bar{position:absolute;top:0}.cdx-menu__listbox{margin:0;padding:0}.cdx-menu--has-sticky-footer .cdx-menu-item:last-of-type{position:absolute;bottom:0;width:100%}.cdx-menu--has-footer .cdx-menu-item:last-of-type:not(:first-of-type){border-top:1px solid #c8ccd1}.cdx-button{box-sizing:border-box;min-width:32px;min-height:32px;max-width:28em;margin:0;border-width:1px;border-style:solid;border-radius:2px;padding-right:11px;padding-left:11px;font-family:inherit;font-size:inherit;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none;transition-property:background-color,color,border-color,box-shadow;transition-duration:.1s}.cdx-button--size-large{min-width:44px;min-height:44px;padding-right:15px;padding-left:15px}.cdx-button--icon-only{padding-right:5px;padding-left:5px}.cdx-button--icon-only.cdx-button--size-large{padding-right:11px;padding-left:11px}.cdx-button::-moz-focus-inner{border:0;padding:0}.cdx-button .cdx-button__icon,.cdx-button .cdx-icon{vertical-align:middle}.cdx-button .cdx-icon{color:inherit}.cdx-button--fake-button{display:inline-flex;align-items:center;justify-content:center}.cdx-button--fake-button,.cdx-button--fake-button:hover,.cdx-button--fake-button:focus{text-decoration:none}.cdx-button--fake-button:not(.cdx-button--icon-only) .cdx-button__icon{margin-right:4px}.cdx-button:enabled,.cdx-button.cdx-button--fake-button--enabled{background-color:#f8f9fa;color:#202122;border-color:#a2a9b1}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled .cdx-button__icon{background-color:#202122}}.cdx-button:enabled:hover,.cdx-button.cdx-button--fake-button--enabled:hover{background-color:#fff;color:#404244;cursor:pointer}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled:hover .cdx-button__icon{background-color:#404244}}.cdx-button:enabled:active,.cdx-button.cdx-button--fake-button--enabled:active,.cdx-button:enabled.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--is-active{background-color:#eaecf0;color:#000;border-color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled:active .cdx-button__icon,.cdx-button:enabled.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--is-active .cdx-button__icon{background-color:#000}}.cdx-button:enabled:focus,.cdx-button.cdx-button--fake-button--enabled:focus{outline:1px solid transparent}.cdx-button:enabled:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled:focus:not(:active):not(.cdx-button--is-active){border-color:#36c;box-shadow:inset 0 0 0 1px #36c}.cdx-button:enabled.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive{color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive .cdx-button__icon{background-color:#36c}}.cdx-button:enabled.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:hover{color:#447ff5;border-color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#447ff5}}.cdx-button:enabled.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive.cdx-button--is-active{background-color:#eaf3ff;color:#2a4b8d;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#2a4b8d}}.cdx-button:enabled.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive{color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive .cdx-button__icon{background-color:#d73333}}.cdx-button:enabled.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:hover{color:#ff4242;border-color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#ff4242}}.cdx-button:enabled.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive.cdx-button--is-active{background-color:#fee7e6;color:#b32424;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#b32424}}.cdx-button:enabled.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive{background-color:#36c;color:#fff;border-color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover{background-color:#447ff5;border-color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active{background-color:#2a4b8d;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-progressive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-progressive:focus:not(:active):not(.cdx-button--is-active){border-color:#36c;box-shadow:inset 0 0 0 1px #36c,inset 0 0 0 2px #fff}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive{background-color:#d73333;color:#fff;border-color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover{background-color:#ff4242;border-color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active{background-color:#b32424;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-primary.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-primary.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333,inset 0 0 0 2px #fff}.cdx-button:enabled.cdx-button--weight-quiet,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet{background-color:rgba(255,255,255,0);border-color:transparent}.cdx-button:enabled.cdx-button--weight-quiet:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:hover{background-color:rgba(0,24,73,.027)}.cdx-button:enabled.cdx-button--weight-quiet:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--is-active{background-color:rgba(0,24,73,.082);color:#000;border-color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--is-active .cdx-button__icon{background-color:#000}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive{color:#36c}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive .cdx-button__icon{background-color:#36c}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover{background-color:#eaf3ff;color:#447ff5}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:hover .cdx-button__icon{background-color:#447ff5}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active{background-color:#2a4b8d;color:#fff;border-color:#2a4b8d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-progressive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive{color:#d73333}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive .cdx-button__icon{background-color:#d73333}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover{background-color:#fee7e6;color:#ff4242}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:hover .cdx-button__icon{background-color:#ff4242}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active{background-color:#b32424;color:#fff;border-color:#b32424}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:active .cdx-button__icon,.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon,.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive.cdx-button--is-active .cdx-button__icon{background-color:#fff}}.cdx-button:enabled.cdx-button--weight-quiet.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active),.cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet.cdx-button--action-destructive:focus:not(:active):not(.cdx-button--is-active){border-color:#d73333;box-shadow:inset 0 0 0 1px #d73333}.cdx-button:disabled,.cdx-button.cdx-button--fake-button--disabled{background-color:#c8ccd1;color:#fff;border-color:transparent}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:disabled .cdx-button__icon,.cdx-button.cdx-button--fake-button--disabled .cdx-button__icon{background-color:#fff}}.cdx-button:disabled.cdx-button--weight-quiet,.cdx-button.cdx-button--fake-button--disabled.cdx-button--weight-quiet{background-color:rgba(255,255,255,0);color:#72777d}@supports ((-webkit-mask-image: none) or (mask-image: none)){.cdx-button:disabled.cdx-button--weight-quiet .cdx-button__icon,.cdx-button.cdx-button--fake-button--disabled.cdx-button--weight-quiet .cdx-button__icon{background-color:#72777d}}.cdx-text-input{position:relative;box-sizing:border-box;min-width:256px}.cdx-text-input__start-icon{position:absolute;top:50%;min-width:20px;min-height:20px;width:1.25em;height:1.25em;transition-property:color;transition-duration:.1s;left:9px;transform:translateY(-50%)}.cdx-text-input__icon.cdx-text-input__end-icon{min-width:16px;min-height:16px;width:1em;height:1em;background-position:center;background-repeat:no-repeat;background-size:max(1em,16px)}.cdx-text-input__clear-icon,.cdx-text-input__end-icon{position:absolute;top:50%;min-width:16px;min-height:16px;width:1em;height:1em;transition-property:color;transition-duration:.1s;right:9px;transform:translateY(-50%)}.cdx-text-input__clear-icon:hover{cursor:pointer}.cdx-text-input__end-icon+.cdx-text-input__clear-icon{right:calc(17px + 1em)}.cdx-text-input__input{display:block;box-sizing:border-box;min-height:32px;width:100%;margin:0;border-width:1px;border-style:solid;border-radius:2px;padding:4px 8px;font-family:inherit;font-size:inherit;line-height:1.4285714}.cdx-text-input__input:enabled{background-color:#fff;color:#202122;border-color:#a2a9b1;box-shadow:inset 0 0 0 1px transparent;transition-property:background-color,color,border-color,box-shadow;transition-duration:.25s}.cdx-text-input__input:enabled~.cdx-text-input__icon-vue{color:#72777d}.cdx-text-input__input:enabled~.cdx-text-input__icon{opacity:.51}.cdx-text-input__input:enabled:hover{border-color:#72777d}.cdx-text-input__input:enabled:focus~.cdx-text-input__icon-vue,.cdx-text-input__input:enabled.cdx-text-input__input--has-value~.cdx-text-input__icon-vue{color:#202122}.cdx-text-input__input:enabled:focus~.cdx-text-input__icon,.cdx-text-input__input:enabled.cdx-text-input__input--has-value~.cdx-text-input__icon{opacity:1}.cdx-text-input__input:enabled:focus{border-color:#36c;box-shadow:inset 0 0 0 1px #36c;outline:1px solid transparent}.cdx-text-input__input:enabled:read-only{background-color:#f8f9fa}.cdx-text-input__input:disabled{background-color:#eaecf0;color:#72777d;-webkit-text-fill-color:#72777d;border-color:#c8ccd1}.cdx-text-input__input:disabled~.cdx-text-input__icon-vue{color:#72777d;pointer-events:none}.cdx-text-input__input:disabled~.cdx-text-input__icon{opacity:.51}.cdx-text-input__input::-webkit-input-placeholder{color:#72777d;opacity:1}.cdx-text-input__input::placeholder{color:#72777d;opacity:1}.cdx-text-input__input::-ms-clear{display:none}.cdx-text-input__input[type=search]{-webkit-appearance:none;-moz-appearance:textfield}.cdx-text-input__input[type=search]::-webkit-search-decoration,.cdx-text-input__input[type=search]::-webkit-search-cancel-button{display:none}.cdx-text-input--has-start-icon .cdx-text-input__input{padding-left:calc(16px + 1.25em)}.cdx-text-input--has-end-icon .cdx-text-input__input,.cdx-text-input--clearable .cdx-text-input__input{padding-right:calc(16px + 1em)}.cdx-text-input--has-end-icon.cdx-text-input--clearable .cdx-text-input__input{padding-right:calc(24px + 2em)}.cdx-text-input--status-error .cdx-text-input__input:enabled{border-color:#b32424}.cdx-text-input--status-error .cdx-text-input__input:enabled:focus{border-color:#36c}.cdx-search-input--has-end-button{background-color:#fff;display:flex;border:1px solid #a2a9b1;border-radius:2px}.cdx-search-input--has-end-button .cdx-search-input__input-wrapper{flex-grow:1;margin:-1px}.cdx-search-input--has-end-button .cdx-search-input__input-wrapper .cdx-text-input__input{border-top-right-radius:0;border-bottom-right-radius:0}.cdx-search-input__end-button{flex-shrink:0;margin:-1px -1px -1px 0;border-top-left-radius:0;border-bottom-left-radius:0}.cdx-search-input__end-button:hover,.cdx-search-input__end-button:focus{z-index:1}.cdx-search-input__input-wrapper{position:relative}.cdx-search-input .cdx-text-input__icon.cdx-text-input__start-icon{background-position:center;background-repeat:no-repeat;background-size:max(1.25em,20px);min-width:20px;min-height:20px;width:1.25em;height:1.25em;display:inline-block;vertical-align:text-bottom;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20" fill="%23202122"><path d="M12.2 13.6a7 7 0 111.4-1.4l5.4 5.4-1.4 1.4zM3 8a5 5 0 1010 0A5 5 0 003 8z"/></svg>')}.cdx-typeahead-search .cdx-menu-item{padding:0}.cdx-typeahead-search .cdx-menu-item__content{padding:8px 12px}.cdx-typeahead-search__search-footer{box-sizing:border-box;min-height:56px}.cdx-typeahead-search__search-footer:visited{color:#202122}.cdx-typeahead-search__search-footer:hover{text-decoration:none;cursor:pointer}.cdx-typeahead-search__search-footer__icon{color:#54595d}.cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__icon,.cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__text{color:#36c}.cdx-typeahead-search .cdx-typeahead-search__menu-message--has-thumbnail{padding-left:20px}.cdx-typeahead-search__input [aria-expanded=true],.cdx-typeahead-search__input[aria-expanded=true]{border-bottom-left-radius:0;border-bottom-right-radius:0}.cdx-typeahead-search .cdx-text-input--has-start-icon .cdx-text-input__input{padding-left:36px}.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width:not(.cdx-typeahead-search--expanded){margin-left:24px}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width),.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded{margin-left:0}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width) .cdx-text-input__input,.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded .cdx-text-input__input{padding-left:60px}.cdx-typeahead-search--show-thumbnail:not(.cdx-typeahead-search--auto-expand-width) .cdx-text-input__start-icon,.cdx-typeahead-search--show-thumbnail.cdx-typeahead-search--auto-expand-width.cdx-typeahead-search--expanded .cdx-text-input__start-icon{position:absolute;top:50%;min-width:20px;min-height:20px;width:1.25em;height:1.25em;transition-property:color;transition-duration:.1s;left:22px;transform:translateY(-50%)}.cdx-typeahead-search--show-thumbnail .cdx-typeahead-search__search-footer__icon{flex-shrink:0;min-width:40px;width:2.5em}.cdx-typeahead-search .cdx-menu-item:first-child .cdx-typeahead-search__search-footer{border-top:unset} diff --git a/resources/lib/codex-search/codex-search.umd.js b/resources/lib/codex-search/codex-search.umd.js deleted file mode 100644 index 5812f231bfce..000000000000 --- a/resources/lib/codex-search/codex-search.umd.js +++ /dev/null @@ -1 +0,0 @@ -(function(p,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(p=typeof globalThis!="undefined"?globalThis:p||self,t(p["codex-search"]={},p.Vue))})(this,function(p,t){"use strict";var Zt=Object.defineProperty,en=Object.defineProperties;var tn=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var ge=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var fe=(p,t,C)=>t in p?Zt(p,t,{enumerable:!0,configurable:!0,writable:!0,value:C}):p[t]=C,be=(p,t)=>{for(var C in t||(t={}))ge.call(t,C)&&fe(p,C,t[C]);if(Z)for(var C of Z(t))ye.call(t,C)&&fe(p,C,t[C]);return p},Ce=(p,t)=>en(p,tn(t));var P=(p,t)=>{var C={};for(var _ in p)ge.call(p,_)&&t.indexOf(_)<0&&(C[_]=p[_]);if(p!=null&&Z)for(var _ of Z(p))t.indexOf(_)<0&&ye.call(p,_)&&(C[_]=p[_]);return C};var re=(p,t,C)=>new Promise((_,Q)=>{var ee=E=>{try{z(C.next(E))}catch(F){Q(F)}},te=E=>{try{z(C.throw(E))}catch(F){Q(F)}},z=E=>E.done?_(E.value):Promise.resolve(E.value).then(ee,te);z((C=C.apply(p,t)).next())});const C='<path d="M12.43 14.34A5 5 0 0110 15a5 5 0 113.95-2L17 16.09V3a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 001.45-.63z"/><circle cx="10" cy="10" r="3"/>',_='<path d="M10 0a10 10 0 1010 10A10 10 0 0010 0zm5.66 14.24-1.41 1.41L10 11.41l-4.24 4.25-1.42-1.42L8.59 10 4.34 5.76l1.42-1.42L10 8.59l4.24-4.24 1.41 1.41L11.41 10z"/>',Q='<path d="M19 3H1v14h18zM3 14l3.5-4.5 2.5 3L12.5 8l4.5 6z"/><path d="M19 5H1V3h18zm0 12H1v-2h18z"/>',ee='<path d="M12.2 13.6a7 7 0 111.4-1.4l5.4 5.4-1.4 1.4zM3 8a5 5 0 1010 0A5 5 0 003 8z"/>',te=C,z=_,E=Q,F=ee;function ke(e,n,o){if(typeof e=="string"||"path"in e)return e;if("shouldFlip"in e)return e.ltr;if("rtl"in e)return o==="rtl"?e.rtl:e.ltr;const s=n in e.langCodeMap?e.langCodeMap[n]:e.default;return typeof s=="string"||"path"in s?s:s.ltr}function Se(e,n){if(typeof e=="string")return!1;if("langCodeMap"in e){const o=n in e.langCodeMap?e.langCodeMap[n]:e.default;if(typeof o=="string")return!1;e=o}if("shouldFlipExceptions"in e&&Array.isArray(e.shouldFlipExceptions)){const o=e.shouldFlipExceptions.indexOf(n);return o===void 0||o===-1}return"shouldFlip"in e?e.shouldFlip:!1}function we(e){const n=t.ref(null);return t.onMounted(()=>{const o=window.getComputedStyle(e.value).direction;n.value=o==="ltr"||o==="rtl"?o:null}),n}function $e(e){const n=t.ref("");return t.onMounted(()=>{let o=e.value;for(;o&&o.lang==="";)o=o.parentElement;n.value=o?o.lang:null}),n}function L(e){return n=>typeof n=="string"&&e.indexOf(n)!==-1}const ne="cdx",Ie=["default","progressive","destructive"],Be=["normal","primary","quiet"],_e=["medium","large"],xe=["x-small","small","medium"],Me=["text","search","number","email","month","password","tel","url","week","date","datetime-local","time"],de=["default","error"],Ve=120,ve=500,R="cdx-menu-footer-item",Ee=Symbol("CdxFieldInputId"),Te=Symbol("CdxFieldDescriptionId"),Ne=Symbol("CdxFieldStatus"),Ke=Symbol("CdxDisabled"),Le=L(xe),Re=t.defineComponent({name:"CdxIcon",props:{icon:{type:[String,Object],required:!0},iconLabel:{type:String,default:""},lang:{type:String,default:null},dir:{type:String,default:null},size:{type:String,default:"medium",validator:Le}},setup(e){const n=t.ref(),o=we(n),s=$e(n),i=t.computed(()=>e.dir||o.value),d=t.computed(()=>e.lang||s.value),a=t.computed(()=>({"cdx-icon--flipped":i.value==="rtl"&&d.value!==null&&Se(e.icon,d.value),[`cdx-icon--${e.size}`]:!0})),r=t.computed(()=>ke(e.icon,d.value||"",i.value||"ltr")),c=t.computed(()=>typeof r.value=="string"?r.value:""),u=t.computed(()=>typeof r.value!="string"?r.value.path:"");return{rootElement:n,rootClasses:a,iconSvg:c,iconPath:u}}}),nn="",V=(e,n)=>{const o=e.__vccOpts||e;for(const[s,i]of n)o[s]=i;return o},De=["aria-hidden"],Ae={key:0},ze=["innerHTML"],Fe=["d"];function Oe(e,n,o,s,i,d){return t.openBlock(),t.createElementBlock("span",{ref:"rootElement",class:t.normalizeClass(["cdx-icon",e.rootClasses])},[(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 20 20","aria-hidden":e.iconLabel?void 0:!0},[e.iconLabel?(t.openBlock(),t.createElementBlock("title",Ae,t.toDisplayString(e.iconLabel),1)):t.createCommentVNode("",!0),e.iconSvg?(t.openBlock(),t.createElementBlock("g",{key:1,innerHTML:e.iconSvg},null,8,ze)):(t.openBlock(),t.createElementBlock("path",{key:2,d:e.iconPath},null,8,Fe))],8,De))],2)}const j=V(Re,[["render",Oe]]),qe=t.defineComponent({name:"CdxThumbnail",components:{CdxIcon:j},props:{thumbnail:{type:[Object,null],default:null},placeholderIcon:{type:[String,Object],default:E}},setup:e=>{const n=t.ref(!1),o=t.ref({}),s=i=>{const d=i.replace(/([\\"\n])/g,"\\$1"),a=new Image;a.onload=()=>{o.value={backgroundImage:`url("${d}")`},n.value=!0},a.onerror=()=>{n.value=!1},a.src=d};return t.onMounted(()=>{var i;(i=e.thumbnail)!=null&&i.url&&s(e.thumbnail.url)}),{thumbnailStyle:o,thumbnailLoaded:n}}}),on="",He={class:"cdx-thumbnail"},Ue={key:0,class:"cdx-thumbnail__placeholder"};function Pe(e,n,o,s,i,d){const a=t.resolveComponent("cdx-icon");return t.openBlock(),t.createElementBlock("span",He,[e.thumbnailLoaded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Ue,[t.createVNode(a,{icon:e.placeholderIcon,class:"cdx-thumbnail__placeholder__icon--vue"},null,8,["icon"])])),t.createVNode(t.Transition,{name:"cdx-thumbnail__image"},{default:t.withCtx(()=>[e.thumbnailLoaded?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.thumbnailStyle),class:"cdx-thumbnail__image"},null,4)):t.createCommentVNode("",!0)]),_:1})])}const Qe=V(qe,[["render",Pe]]);function je(e){return e.replace(/([\\{}()|.?*+\-^$[\]])/g,"\\$1")}const We="[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣ৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఀ-ఄా-ౄె-ైొ-్ౕౖౢౣಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝᠋-᠍ᢅᢆᢩᤠ-ᤫᤰ-᤻ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼᪰-᪾ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-ᮭ᯦-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣠-꣱ꣿꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꧥꨩ-ꨶꩃꩌꩍꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭ﬞ︀-️︠-︯]";function Ge(e,n){if(!e)return[n,"",""];const o=je(e),s=new RegExp(o+We+"*","i").exec(n);if(!s||s.index===void 0)return[n,"",""];const i=s.index,d=i+s[0].length,a=n.slice(i,d),r=n.slice(0,i),c=n.slice(d,n.length);return[r,a,c]}const Je=t.defineComponent({name:"CdxSearchResultTitle",props:{title:{type:String,required:!0},searchQuery:{type:String,default:""}},setup:e=>({titleChunks:t.computed(()=>Ge(e.searchQuery,String(e.title)))})}),ln="",Xe={class:"cdx-search-result-title"},Ye={class:"cdx-search-result-title__match"};function Ze(e,n,o,s,i,d){return t.openBlock(),t.createElementBlock("span",Xe,[t.createElementVNode("bdi",null,[t.createTextVNode(t.toDisplayString(e.titleChunks[0]),1),t.createElementVNode("span",Ye,t.toDisplayString(e.titleChunks[1]),1),t.createTextVNode(t.toDisplayString(e.titleChunks[2]),1)])])}const et=V(Je,[["render",Ze]]),tt=t.defineComponent({name:"CdxMenuItem",components:{CdxIcon:j,CdxThumbnail:Qe,CdxSearchResultTitle:et},props:{id:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},active:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},label:{type:String,default:""},match:{type:String,default:""},supportingText:{type:String,default:""},url:{type:String,default:""},icon:{type:[String,Object],default:""},showThumbnail:{type:Boolean,default:!1},thumbnail:{type:[Object,null],default:null},description:{type:[String,null],default:""},searchQuery:{type:String,default:""},boldLabel:{type:Boolean,default:!1},hideDescriptionOverflow:{type:Boolean,default:!1},language:{type:Object,default:()=>({})}},emits:["change"],setup:(e,{emit:n})=>{const o=()=>{e.highlighted||n("change","highlighted",!0)},s=()=>{n("change","highlighted",!1)},i=f=>{f.button===0&&n("change","active",!0)},d=()=>{n("change","selected",!0)},a=t.computed(()=>e.searchQuery.length>0),r=t.computed(()=>({"cdx-menu-item--selected":e.selected,"cdx-menu-item--active":e.active&&e.highlighted,"cdx-menu-item--highlighted":e.highlighted,"cdx-menu-item--enabled":!e.disabled,"cdx-menu-item--disabled":e.disabled,"cdx-menu-item--highlight-query":a.value,"cdx-menu-item--bold-label":e.boldLabel,"cdx-menu-item--has-description":!!e.description,"cdx-menu-item--hide-description-overflow":e.hideDescriptionOverflow})),c=t.computed(()=>e.url?"a":"span"),u=t.computed(()=>e.label||String(e.value));return{onMouseMove:o,onMouseLeave:s,onMouseDown:i,onClick:d,highlightQuery:a,rootClasses:r,contentTag:c,title:u}}}),an="",nt=["id","aria-disabled","aria-selected"],ot={class:"cdx-menu-item__text"},lt=["lang"],at=["lang"],it=["lang"],st=["lang"];function rt(e,n,o,s,i,d){const a=t.resolveComponent("cdx-thumbnail"),r=t.resolveComponent("cdx-icon"),c=t.resolveComponent("cdx-search-result-title");return t.openBlock(),t.createElementBlock("li",{id:e.id,role:"option",class:t.normalizeClass(["cdx-menu-item",e.rootClasses]),"aria-disabled":e.disabled,"aria-selected":e.selected,onMousemove:n[0]||(n[0]=(...u)=>e.onMouseMove&&e.onMouseMove(...u)),onMouseleave:n[1]||(n[1]=(...u)=>e.onMouseLeave&&e.onMouseLeave(...u)),onMousedown:n[2]||(n[2]=t.withModifiers((...u)=>e.onMouseDown&&e.onMouseDown(...u),["prevent"])),onClick:n[3]||(n[3]=(...u)=>e.onClick&&e.onClick(...u))},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.contentTag),{href:e.url?e.url:void 0,class:"cdx-menu-item__content"},{default:t.withCtx(()=>{var u,f,b,g,I,$;return[e.showThumbnail?(t.openBlock(),t.createBlock(a,{key:0,thumbnail:e.thumbnail,class:"cdx-menu-item__thumbnail"},null,8,["thumbnail"])):e.icon?(t.openBlock(),t.createBlock(r,{key:1,icon:e.icon,class:"cdx-menu-item__icon"},null,8,["icon"])):t.createCommentVNode("",!0),t.createElementVNode("span",ot,[e.highlightQuery?(t.openBlock(),t.createBlock(c,{key:0,title:e.title,"search-query":e.searchQuery,lang:(u=e.language)==null?void 0:u.label},null,8,["title","search-query","lang"])):(t.openBlock(),t.createElementBlock("span",{key:1,class:"cdx-menu-item__text__label",lang:(f=e.language)==null?void 0:f.label},[t.createElementVNode("bdi",null,t.toDisplayString(e.title),1)],8,lt)),e.match?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString(" ")+" "),e.highlightQuery?(t.openBlock(),t.createBlock(c,{key:0,title:e.match,"search-query":e.searchQuery,lang:(b=e.language)==null?void 0:b.match},null,8,["title","search-query","lang"])):(t.openBlock(),t.createElementBlock("span",{key:1,class:"cdx-menu-item__text__match",lang:(g=e.language)==null?void 0:g.match},[t.createElementVNode("bdi",null,t.toDisplayString(e.match),1)],8,at))],64)):t.createCommentVNode("",!0),e.supportingText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode(t.toDisplayString(" ")+" "),t.createElementVNode("span",{class:"cdx-menu-item__text__supporting-text",lang:(I=e.language)==null?void 0:I.supportingText},[t.createElementVNode("bdi",null,t.toDisplayString(e.supportingText),1)],8,it)],64)):t.createCommentVNode("",!0),e.description?(t.openBlock(),t.createElementBlock("span",{key:4,class:"cdx-menu-item__text__description",lang:($=e.language)==null?void 0:$.description},[t.createElementVNode("bdi",null,t.toDisplayString(e.description),1)],8,st)):t.createCommentVNode("",!0)])]}),_:1},8,["href"]))])],42,nt)}const dt=V(tt,[["render",rt]]);function ce(e,n){if(e()){t.warn(n);return}const o=t.watch(e,s=>{s&&(t.warn(n),o())})}const ct=t.defineComponent({name:"CdxProgressBar",props:{inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e,{attrs:n}){ce(()=>!e.inline&&!n["aria-label"]&&!n["aria-hidden"],"CdxProgressBar: Progress bars require one of the following attribute, aria-label or aria-hidden. See documentation on https://doc.wikimedia.org/codex/latest/components/demos/progressbar.html");const o=t.computed(()=>({"cdx-progress-bar--block":!e.inline,"cdx-progress-bar--inline":e.inline,"cdx-progress-bar--enabled":!e.disabled,"cdx-progress-bar--disabled":e.disabled})),s=t.computed(()=>e.inline?"true":void 0);return{rootClasses:o,computedAriaHidden:s}}}),sn="",ut=["aria-hidden","aria-disabled"],ht=[t.createElementVNode("div",{class:"cdx-progress-bar__bar"},null,-1)];function mt(e,n,o,s,i,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-progress-bar",e.rootClasses]),role:"progressbar","aria-hidden":e.computedAriaHidden,"aria-disabled":e.disabled},ht,10,ut)}const pt=V(ct,[["render",mt]]);let oe=0;function ue(e){const n=t.getCurrentInstance(),o=(n==null?void 0:n.props.id)||(n==null?void 0:n.attrs.id);return e?`${ne}-${e}-${oe++}`:o?`${ne}-${o}-${oe++}`:`${ne}-${oe++}`}function ft(e,n){const o=t.ref(!1);let s=!1;if(typeof window!="object"||!("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype))return o;const i=new window.IntersectionObserver(d=>{const a=d[0];a&&(o.value=a.isIntersecting)},n);return t.onMounted(()=>{s=!0,e.value&&i.observe(e.value)}),t.onUnmounted(()=>{s=!1,i.disconnect()}),t.watch(e,d=>{s&&(i.disconnect(),o.value=!1,d&&i.observe(d))}),o}function W(e,n=t.computed(()=>({}))){const o=t.computed(()=>{const d=P(n.value,[]);return e.class&&e.class.split(" ").forEach(r=>{d[r]=!0}),d}),s=t.computed(()=>{if("style"in e)return e.style}),i=t.computed(()=>{const c=e,{class:d,style:a}=c;return P(c,["class","style"])});return{rootClasses:o,rootStyle:s,otherAttrs:i}}const gt=t.defineComponent({name:"CdxMenu",components:{CdxMenuItem:dt,CdxProgressBar:pt},inheritAttrs:!1,props:{menuItems:{type:Array,required:!0},footer:{type:Object,default:null},selected:{type:[String,Number,null],required:!0},expanded:{type:Boolean,required:!0},showPending:{type:Boolean,default:!1},visibleItemLimit:{type:Number,default:null},showThumbnail:{type:Boolean,default:!1},boldLabel:{type:Boolean,default:!1},hideDescriptionOverflow:{type:Boolean,default:!1},searchQuery:{type:String,default:""},showNoResultsSlot:{type:Boolean,default:null}},emits:["update:selected","update:expanded","menu-item-click","menu-item-keyboard-navigation","load-more"],expose:["clearActive","getHighlightedMenuItem","getHighlightedViaKeyboard","delegateKeyNavigation"],setup(e,{emit:n,slots:o,attrs:s}){const i=t.computed(()=>(e.footer&&e.menuItems?[...e.menuItems,e.footer]:e.menuItems).map(h=>Ce(be({},h),{id:ue("menu-item")}))),d=t.computed(()=>o["no-results"]?e.showNoResultsSlot!==null?e.showNoResultsSlot:i.value.length===0:!1),a=t.ref(null),r=t.ref(!1),c=t.ref(null),u="additions removals";let f="",b=null;function g(){f="",b!==null&&(clearTimeout(b),b=null)}function I(){b!==null&&clearTimeout(b),b=setTimeout(g,1500)}function $(){return i.value.find(l=>l.value===e.selected)||null}function B(l,h){var y;if(!(h&&h.disabled))switch(l){case"selected":n("update:selected",(y=h==null?void 0:h.value)!=null?y:null),n("update:expanded",!1),c.value=null;break;case"highlighted":a.value=h||null,r.value=!1;break;case"highlightedViaKeyboard":a.value=h||null,r.value=!0;break;case"active":c.value=h||null;break}}const S=t.computed(()=>{if(a.value!==null)return i.value.findIndex(l=>l.value===a.value.value)});function O(l){l&&(B("highlightedViaKeyboard",l),n("menu-item-keyboard-navigation",l))}function q(l){var w;const h=A=>{for(let M=A-1;M>=0;M--)if(!i.value[M].disabled)return i.value[M]};l=l||i.value.length;const y=(w=h(l))!=null?w:h(i.value.length);O(y)}function H(l){const h=w=>i.value.find((A,M)=>!A.disabled&&M>w);l=l!=null?l:-1;const y=h(l)||h(-1);O(y)}function G(l){if(l.key==="Clear")return g(),!0;if(l.key==="Backspace")return f=f.slice(0,-1),I(),!0;if(l.key.length===1&&!l.metaKey&&!l.ctrlKey&&!l.altKey){e.expanded||n("update:expanded",!0),f+=l.key.toLowerCase();const h=f.length>1&&f.split("").every(M=>M===f[0]);let y=i.value,w=f;h&&S.value!==void 0&&(y=y.slice(S.value+1).concat(y.slice(0,S.value)),w=f[0]);const A=y.find(M=>!M.disabled&&String(M.label||M.value).toLowerCase().indexOf(w)===0);return A&&(B("highlightedViaKeyboard",A),N()),I(),!0}return!1}function J(l,{prevent:h=!0,characterNavigation:y=!1}={}){if(y){if(G(l))return!0;g()}function w(){h&&(l.preventDefault(),l.stopPropagation())}switch(l.key){case"Enter":case" ":return w(),e.expanded?(a.value&&r.value&&n("update:selected",a.value.value),n("update:expanded",!1)):n("update:expanded",!0),!0;case"Tab":return e.expanded&&(a.value&&r.value&&n("update:selected",a.value.value),n("update:expanded",!1)),!0;case"ArrowUp":return w(),e.expanded?(a.value===null&&B("highlightedViaKeyboard",$()),q(S.value)):n("update:expanded",!0),N(),!0;case"ArrowDown":return w(),e.expanded?(a.value===null&&B("highlightedViaKeyboard",$()),H(S.value)):n("update:expanded",!0),N(),!0;case"Home":return w(),e.expanded?(a.value===null&&B("highlightedViaKeyboard",$()),H()):n("update:expanded",!0),N(),!0;case"End":return w(),e.expanded?(a.value===null&&B("highlightedViaKeyboard",$()),q()):n("update:expanded",!0),N(),!0;case"Escape":return w(),n("update:expanded",!1),!0;default:return!1}}function k(){B("active",null)}const x=[],v=t.ref(void 0),T=ft(v,{threshold:.8});t.watch(T,l=>{l&&n("load-more")});function X(l,h){if(l){x[h]=l.$el;const y=e.visibleItemLimit;if(!y||e.menuItems.length<y)return;const w=Math.min(y,Math.max(2,Math.floor(.2*e.menuItems.length)));h===e.menuItems.length-w&&(v.value=l.$el)}}function N(){if(!e.visibleItemLimit||e.visibleItemLimit>e.menuItems.length||S.value===void 0)return;const l=S.value>=0?S.value:0;x[l].scrollIntoView({behavior:"smooth",block:"nearest"})}const K=t.ref(null),D=t.ref(null);function U(){if(D.value=null,!e.visibleItemLimit||x.length<=e.visibleItemLimit){K.value=null;return}const l=x[0],h=x[e.visibleItemLimit];if(K.value=Y(l,h),e.footer){const y=x[x.length-1];D.value=y.scrollHeight}}function Y(l,h){const y=l.getBoundingClientRect().top;return h.getBoundingClientRect().top-y+2}t.onMounted(()=>{document.addEventListener("mouseup",k)}),t.onUnmounted(()=>{document.removeEventListener("mouseup",k)}),t.watch(t.toRef(e,"expanded"),l=>re(this,null,function*(){if(l){const h=$();h&&!a.value&&B("highlighted",h),yield t.nextTick(),U(),yield t.nextTick(),N()}else B("highlighted",null)})),t.watch(t.toRef(e,"menuItems"),l=>re(this,null,function*(){l.length<x.length&&(x.length=l.length),e.expanded&&(yield t.nextTick(),U(),yield t.nextTick(),N())}),{deep:!0});const le=t.computed(()=>({"max-height":K.value?`${K.value}px`:void 0,"overflow-y":K.value?"scroll":void 0,"margin-bottom":D.value?`${D.value}px`:void 0})),ae=t.computed(()=>({"cdx-menu--has-footer":!!e.footer,"cdx-menu--has-sticky-footer":!!e.footer&&!!K.value})),{rootClasses:ie,rootStyle:se,otherAttrs:m}=W(s,ae);return{listBoxStyle:le,rootClasses:ie,rootStyle:se,otherAttrs:m,assignTemplateRef:X,computedMenuItems:i,computedShowNoResultsSlot:d,highlightedMenuItem:a,highlightedViaKeyboard:r,activeMenuItem:c,handleMenuItemChange:B,handleKeyNavigation:J,ariaRelevant:u}},methods:{getHighlightedMenuItem(){return this.expanded?this.highlightedMenuItem:null},getHighlightedViaKeyboard(){return this.highlightedViaKeyboard},clearActive(){this.handleMenuItemChange("active",null)},delegateKeyNavigation(e,{prevent:n=!0,characterNavigation:o=!1}={}){return this.handleKeyNavigation(e,{prevent:n,characterNavigation:o})}}}),dn="",yt=["aria-live","aria-relevant"],bt={key:0,class:"cdx-menu__pending cdx-menu-item"},Ct={key:1,class:"cdx-menu__no-results cdx-menu-item"};function kt(e,n,o,s,i,d){const a=t.resolveComponent("cdx-menu-item"),r=t.resolveComponent("cdx-progress-bar");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-menu",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("ul",t.mergeProps({class:"cdx-menu__listbox",role:"listbox",style:e.listBoxStyle,"aria-live":e.showPending?"polite":void 0,"aria-relevant":e.showPending?e.ariaRelevant:void 0},e.otherAttrs),[e.showPending&&e.computedMenuItems.length===0&&e.$slots.pending?(t.openBlock(),t.createElementBlock("li",bt,[t.renderSlot(e.$slots,"pending")])):t.createCommentVNode("",!0),e.computedShowNoResultsSlot?(t.openBlock(),t.createElementBlock("li",Ct,[t.renderSlot(e.$slots,"no-results")])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedMenuItems,(c,u)=>{var f,b;return t.openBlock(),t.createBlock(a,t.mergeProps({key:c.value,ref_for:!0,ref:g=>e.assignTemplateRef(g,u)},c,{selected:c.value===e.selected,active:c.value===((f=e.activeMenuItem)==null?void 0:f.value),highlighted:c.value===((b=e.highlightedMenuItem)==null?void 0:b.value),"show-thumbnail":e.showThumbnail,"bold-label":e.boldLabel,"hide-description-overflow":e.hideDescriptionOverflow,"search-query":e.searchQuery,onChange:(g,I)=>e.handleMenuItemChange(g,I?c:null),onClick:g=>e.$emit("menu-item-click",c)}),{default:t.withCtx(()=>{var g,I;return[t.renderSlot(e.$slots,"default",{menuItem:c,active:c.value===((g=e.activeMenuItem)==null?void 0:g.value)&&c.value===((I=e.highlightedMenuItem)==null?void 0:I.value)})]}),_:2},1040,["selected","active","highlighted","show-thumbnail","bold-label","hide-description-overflow","search-query","onChange","onClick"])}),128)),e.showPending?(t.openBlock(),t.createBlock(r,{key:2,class:"cdx-menu__progress-bar",inline:!0})):t.createCommentVNode("",!0)],16,yt)],6)),[[t.vShow,e.expanded]])}const St=V(gt,[["render",kt]]);function he(e){const n=[];for(const o of e)typeof o.type=="string"||typeof o.type=="object"?n.push(o):o.type!==t.Comment&&(typeof o.children=="string"&&o.children.trim()!==""?n.push(o.children):Array.isArray(o.children)&&n.push(...he(o.children)));return n}function wt(e,n){return typeof e.type=="object"&&"name"in e.type?n!==void 0?e.type.name===n:!0:!1}function $t(e,n){return typeof e.type=="string"?n!==void 0?e.type===n.toLowerCase():!0:!1}function It(e){const n=typeof e=="function"?e():e;return n?he(n):[]}function Bt(e,n,o){const s=t.computed(()=>{const i=It(e);if(i.length!==1)return!1;const d=i[0];return!!(typeof d=="object"&&(wt(d,"CdxIcon")||$t(d,"svg")))});return ce(()=>s.value&&!n["aria-label"]&&!n["aria-hidden"],`${o}: Icon-only buttons require one of the following attributes: aria-label or aria-hidden. See documentation at https://doc.wikimedia.org/codex/latest/components/demos/button.html#icon-only-button`),s}const _t=L(Ie),xt=L(Be),Mt=L(_e),Vt=t.defineComponent({name:"CdxButton",props:{action:{type:String,default:"default",validator:_t},weight:{type:String,default:"normal",validator:xt},size:{type:String,default:"medium",validator:Mt}},emits:["click"],setup(e,{emit:n,slots:o,attrs:s}){const i=Bt(o.default,s,"CdxButton"),d=t.ref(!1);return{rootClasses:t.computed(()=>({[`cdx-button--action-${e.action}`]:!0,[`cdx-button--weight-${e.weight}`]:!0,[`cdx-button--size-${e.size}`]:!0,"cdx-button--framed":e.weight!=="quiet","cdx-button--icon-only":i.value,"cdx-button--is-active":d.value})),onClick:u=>{n("click",u)},setActive:u=>{d.value=u}}}}),cn="";function vt(e,n,o,s,i,d){return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["cdx-button",e.rootClasses]),onClick:n[0]||(n[0]=(...a)=>e.onClick&&e.onClick(...a)),onKeydown:n[1]||(n[1]=t.withKeys(a=>e.setActive(!0),["space","enter"])),onKeyup:n[2]||(n[2]=t.withKeys(a=>e.setActive(!1),["space","enter"]))},[t.renderSlot(e.$slots,"default")],34)}const Et=V(Vt,[["render",vt]]);function me(e,n,o){return t.computed({get:()=>e.value,set:s=>n(o||"update:modelValue",s)})}function Tt(e){const n=t.inject(Ke,t.ref(!1));return t.computed(()=>n.value||e.value)}function pe(e,n,o){const s=Tt(e),i=t.inject(Ne,t.ref("default")),d=t.computed(()=>n!=null&&n.value&&n.value!=="default"?n.value:i.value),a=t.inject(Ee,void 0),r=t.computed(()=>a&&a.value?a.value:o);return{computedDisabled:s,computedStatus:d,computedInputId:r}}const Nt=L(Me),Kt=L(de),Lt=t.defineComponent({name:"CdxTextInput",components:{CdxIcon:j},inheritAttrs:!1,expose:["focus","blur"],props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text",validator:Nt},status:{type:String,default:"default",validator:Kt},disabled:{type:Boolean,default:!1},startIcon:{type:[String,Object],default:void 0},endIcon:{type:[String,Object],default:void 0},clearable:{type:Boolean,default:!1}},emits:["update:modelValue","keydown","input","change","focus","blur","clear"],setup(e,{emit:n,attrs:o}){const s=o.id,{computedDisabled:i,computedStatus:d,computedInputId:a}=pe(t.toRef(e,"disabled"),t.toRef(e,"status"),s),r=t.inject(Te,void 0),c=me(t.toRef(e,"modelValue"),n),u=t.computed(()=>e.clearable&&!!c.value&&!i.value),f=t.computed(()=>({"cdx-text-input--has-start-icon":!!e.startIcon,"cdx-text-input--has-end-icon":!!e.endIcon,"cdx-text-input--clearable":u.value,[`cdx-text-input--status-${d.value}`]:!0})),{rootClasses:b,rootStyle:g,otherAttrs:I}=W(o,f),$=t.computed(()=>{const v=I.value,{id:k}=v;return P(v,["id"])}),B=t.computed(()=>({"cdx-text-input__input--has-value":!!c.value}));return{computedInputId:a,descriptionId:r,wrappedModel:c,isClearable:u,rootClasses:b,rootStyle:g,otherAttrsMinusId:$,inputClasses:B,computedDisabled:i,onClear:k=>{c.value="",n("clear",k)},onInput:k=>{n("input",k)},onChange:k=>{n("change",k)},onKeydown:k=>{(k.key==="Home"||k.key==="End")&&!k.ctrlKey&&!k.metaKey||n("keydown",k)},onFocus:k=>{n("focus",k)},onBlur:k=>{n("blur",k)},cdxIconClear:z}},methods:{focus(){this.$refs.input.focus()},blur(){this.$refs.input.blur()}}}),un="",Rt=["id","type","aria-describedby","disabled"];function Dt(e,n,o,s,i,d){const a=t.resolveComponent("cdx-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-text-input",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:e.computedInputId,ref:"input","onUpdate:modelValue":n[0]||(n[0]=r=>e.wrappedModel=r),class:["cdx-text-input__input",e.inputClasses]},e.otherAttrsMinusId,{type:e.inputType,"aria-describedby":e.descriptionId,disabled:e.computedDisabled,size:"1",onInput:n[1]||(n[1]=(...r)=>e.onInput&&e.onInput(...r)),onChange:n[2]||(n[2]=(...r)=>e.onChange&&e.onChange(...r)),onFocus:n[3]||(n[3]=(...r)=>e.onFocus&&e.onFocus(...r)),onBlur:n[4]||(n[4]=(...r)=>e.onBlur&&e.onBlur(...r)),onKeydown:n[5]||(n[5]=(...r)=>e.onKeydown&&e.onKeydown(...r))}),null,16,Rt),[[t.vModelDynamic,e.wrappedModel]]),e.startIcon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.startIcon,class:"cdx-text-input__icon-vue cdx-text-input__start-icon"},null,8,["icon"])):t.createCommentVNode("",!0),e.endIcon?(t.openBlock(),t.createBlock(a,{key:1,icon:e.endIcon,class:"cdx-text-input__icon-vue cdx-text-input__end-icon"},null,8,["icon"])):t.createCommentVNode("",!0),e.isClearable?(t.openBlock(),t.createBlock(a,{key:2,icon:e.cdxIconClear,class:"cdx-text-input__icon-vue cdx-text-input__clear-icon",onMousedown:n[6]||(n[6]=t.withModifiers(()=>{},["prevent"])),onClick:e.onClear},null,8,["icon","onClick"])):t.createCommentVNode("",!0)],6)}const At=V(Lt,[["render",Dt]]),zt=L(de),Ft=t.defineComponent({name:"CdxSearchInput",components:{CdxButton:Et,CdxTextInput:At},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},buttonLabel:{type:String,default:""},disabled:{type:Boolean,default:!1},status:{type:String,default:"default",validator:zt}},emits:["update:modelValue","submit-click","input","change","focus","blur"],setup(e,{emit:n,attrs:o}){const s=me(t.toRef(e,"modelValue"),n),{computedDisabled:i}=pe(t.toRef(e,"disabled")),d=t.computed(()=>({"cdx-search-input--has-end-button":!!e.buttonLabel})),{rootClasses:a,rootStyle:r,otherAttrs:c}=W(o,d);return{wrappedModel:s,computedDisabled:i,rootClasses:a,rootStyle:r,otherAttrs:c,handleSubmit:()=>{n("submit-click",s.value)},searchIcon:F}},methods:{focus(){this.$refs.textInput.focus()}}}),hn="",Ot={class:"cdx-search-input__input-wrapper"};function qt(e,n,o,s,i,d){const a=t.resolveComponent("cdx-text-input"),r=t.resolveComponent("cdx-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-search-input",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",Ot,[t.createVNode(a,t.mergeProps({ref:"textInput",modelValue:e.wrappedModel,"onUpdate:modelValue":n[0]||(n[0]=c=>e.wrappedModel=c),class:"cdx-search-input__text-input","input-type":"search","start-icon":e.searchIcon,disabled:e.computedDisabled,status:e.status},e.otherAttrs,{onKeydown:t.withKeys(e.handleSubmit,["enter"]),onInput:n[1]||(n[1]=c=>e.$emit("input",c)),onChange:n[2]||(n[2]=c=>e.$emit("change",c)),onFocus:n[3]||(n[3]=c=>e.$emit("focus",c)),onBlur:n[4]||(n[4]=c=>e.$emit("blur",c))}),null,16,["modelValue","start-icon","disabled","status","onKeydown"]),t.renderSlot(e.$slots,"default")]),e.buttonLabel?(t.openBlock(),t.createBlock(r,{key:0,class:"cdx-search-input__end-button",disabled:e.computedDisabled,onClick:e.handleSubmit},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.buttonLabel),1)]),_:1},8,["disabled","onClick"])):t.createCommentVNode("",!0)],6)}const Ht=V(Ft,[["render",qt]]),Ut=t.defineComponent({name:"CdxTypeaheadSearch",components:{CdxIcon:j,CdxMenu:St,CdxSearchInput:Ht},inheritAttrs:!1,props:{id:{type:String,required:!0},formAction:{type:String,required:!0},searchResultsLabel:{type:String,required:!0},searchResults:{type:Array,required:!0},buttonLabel:{type:String,default:""},initialInputValue:{type:String,default:""},searchFooterUrl:{type:String,default:""},debounceInterval:{type:Number,default:Ve},highlightQuery:{type:Boolean,default:!1},showThumbnail:{type:Boolean,default:!1},autoExpandWidth:{type:Boolean,default:!1},visibleItemLimit:{type:Number,default:null}},emits:["input","search-result-click","submit","load-more"],setup(e,{attrs:n,emit:o,slots:s}){const i=t.ref(),d=t.ref(),a=ue("typeahead-search-menu"),r=t.ref(!1),c=t.ref(!1),u=t.ref(!1),f=t.ref(!1),b=t.ref(e.initialInputValue),g=t.ref(""),I=t.computed(()=>{var m,l;return(l=(m=d.value)==null?void 0:m.getHighlightedMenuItem())==null?void 0:l.id}),$=t.ref(null),B=t.computed(()=>({"cdx-typeahead-search__menu-message--has-thumbnail":e.showThumbnail})),S=t.computed(()=>e.searchResults.find(m=>m.value===$.value)),O=t.computed(()=>e.searchFooterUrl?{value:R,url:e.searchFooterUrl}:void 0),q=t.computed(()=>({"cdx-typeahead-search--show-thumbnail":e.showThumbnail,"cdx-typeahead-search--expanded":r.value,"cdx-typeahead-search--auto-expand-width":e.showThumbnail&&e.autoExpandWidth})),{rootClasses:H,rootStyle:G,otherAttrs:J}=W(n,q);function k(m){return m}const x=t.computed(()=>({visibleItemLimit:e.visibleItemLimit,showThumbnail:e.showThumbnail,boldLabel:!0,hideDescriptionOverflow:!0}));let v,T;function X(m,l=!1){S.value&&S.value.label!==m&&S.value.value!==m&&($.value=null),T!==void 0&&(clearTimeout(T),T=void 0),m===""?r.value=!1:(c.value=!0,s["search-results-pending"]&&(T=setTimeout(()=>{f.value&&(r.value=!0),u.value=!0},ve))),v!==void 0&&(clearTimeout(v),v=void 0);const h=()=>{o("input",m)};l?h():v=setTimeout(()=>{h()},e.debounceInterval)}function N(m){if(m===R){$.value=null,b.value=g.value;return}$.value=m,m!==null&&(b.value=S.value?S.value.label||String(S.value.value):"")}function K(){f.value=!0,(g.value||u.value)&&(r.value=!0)}function D(){f.value=!1,r.value=!1}function U(m){const y=m,{id:l}=y,h=P(y,["id"]);if(h.value===R){o("search-result-click",{searchResult:null,index:e.searchResults.length,numberOfResults:e.searchResults.length});return}Y(h)}function Y(m){const l={searchResult:m,index:e.searchResults.findIndex(h=>h.value===m.value),numberOfResults:e.searchResults.length};o("search-result-click",l)}function le(m){if(m.value===R){b.value=g.value;return}b.value=m.value?m.label||String(m.value):""}function ae(m){var l;r.value=!1,(l=d.value)==null||l.clearActive(),U(m)}function ie(m){if(S.value)Y(S.value),m.stopPropagation(),window.location.assign(S.value.url),m.preventDefault();else{const l={searchResult:null,index:-1,numberOfResults:e.searchResults.length};o("submit",l)}}function se(m){if(!d.value||!g.value||m.key===" ")return;const l=d.value.getHighlightedMenuItem(),h=d.value.getHighlightedViaKeyboard();switch(m.key){case"Enter":l&&(l.value===R&&h?window.location.assign(e.searchFooterUrl):d.value.delegateKeyNavigation(m,{prevent:!1})),r.value=!1;break;case"Tab":r.value=!1;break;default:d.value.delegateKeyNavigation(m);break}}return t.onMounted(()=>{e.initialInputValue&&X(e.initialInputValue,!0)}),t.watch(t.toRef(e,"searchResults"),()=>{g.value=b.value.trim(),f.value&&c.value&&g.value.length>0&&(r.value=!0),T!==void 0&&(clearTimeout(T),T=void 0),c.value=!1,u.value=!1}),{form:i,menu:d,menuId:a,highlightedId:I,selection:$,menuMessageClass:B,footer:O,asSearchResult:k,inputValue:b,searchQuery:g,expanded:r,showPending:u,rootClasses:H,rootStyle:G,otherAttrs:J,menuConfig:x,onUpdateInputValue:X,onUpdateMenuSelection:N,onFocus:K,onBlur:D,onSearchResultClick:U,onSearchResultKeyboardNavigation:le,onSearchFooterClick:ae,onSubmit:ie,onKeydown:se,MenuFooterValue:R,articleIcon:te}},methods:{focus(){this.$refs.searchInput.focus()}}}),mn="",Pt=["id","action"],Qt={class:"cdx-typeahead-search__menu-message__text"},jt={class:"cdx-typeahead-search__menu-message__text"},Wt=["href","onClickCapture"],Gt={class:"cdx-menu-item__text cdx-typeahead-search__search-footer__text"},Jt={class:"cdx-typeahead-search__search-footer__query"};function Xt(e,n,o,s,i,d){const a=t.resolveComponent("cdx-icon"),r=t.resolveComponent("cdx-menu"),c=t.resolveComponent("cdx-search-input");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-typeahead-search",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("form",{id:e.id,ref:"form",class:"cdx-typeahead-search__form",action:e.formAction,onSubmit:n[4]||(n[4]=(...u)=>e.onSubmit&&e.onSubmit(...u))},[t.createVNode(c,t.mergeProps({ref:"searchInput",modelValue:e.inputValue,"onUpdate:modelValue":n[3]||(n[3]=u=>e.inputValue=u),"button-label":e.buttonLabel},e.otherAttrs,{class:"cdx-typeahead-search__input",name:"search",role:"combobox",autocomplete:"off","aria-autocomplete":"list","aria-controls":e.menuId,"aria-expanded":e.expanded,"aria-activedescendant":e.highlightedId,"onUpdate:modelValue":e.onUpdateInputValue,onFocus:e.onFocus,onBlur:e.onBlur,onKeydown:e.onKeydown}),{default:t.withCtx(()=>[t.createVNode(r,t.mergeProps({id:e.menuId,ref:"menu",expanded:e.expanded,"onUpdate:expanded":n[0]||(n[0]=u=>e.expanded=u),"show-pending":e.showPending,selected:e.selection,"menu-items":e.searchResults,footer:e.footer,"search-query":e.highlightQuery?e.searchQuery:"","show-no-results-slot":e.searchQuery.length>0&&e.searchResults.length===0&&e.$slots["search-no-results-text"]&&e.$slots["search-no-results-text"]().length>0},e.menuConfig,{"aria-label":e.searchResultsLabel,"onUpdate:selected":e.onUpdateMenuSelection,onMenuItemClick:n[1]||(n[1]=u=>e.onSearchResultClick(e.asSearchResult(u))),onMenuItemKeyboardNavigation:e.onSearchResultKeyboardNavigation,onLoadMore:n[2]||(n[2]=u=>e.$emit("load-more"))}),{pending:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["cdx-menu-item__content cdx-typeahead-search__menu-message",e.menuMessageClass])},[t.createElementVNode("span",Qt,[t.renderSlot(e.$slots,"search-results-pending")])],2)]),"no-results":t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["cdx-menu-item__content cdx-typeahead-search__menu-message",e.menuMessageClass])},[t.createElementVNode("span",jt,[t.renderSlot(e.$slots,"search-no-results-text")])],2)]),default:t.withCtx(({menuItem:u,active:f})=>[u.value===e.MenuFooterValue?(t.openBlock(),t.createElementBlock("a",{key:0,class:t.normalizeClass(["cdx-menu-item__content cdx-typeahead-search__search-footer",{"cdx-typeahead-search__search-footer__active":f}]),href:e.asSearchResult(u).url,onClickCapture:t.withModifiers(b=>e.onSearchFooterClick(e.asSearchResult(u)),["stop"])},[t.createVNode(a,{class:"cdx-menu-item__thumbnail cdx-typeahead-search__search-footer__icon",icon:e.articleIcon},null,8,["icon"]),t.createElementVNode("span",Gt,[t.renderSlot(e.$slots,"search-footer-text",{searchQuery:e.searchQuery},()=>[t.createElementVNode("strong",Jt,t.toDisplayString(e.searchQuery),1)])])],42,Wt)):t.createCommentVNode("",!0)]),_:3},16,["id","expanded","show-pending","selected","menu-items","footer","search-query","show-no-results-slot","aria-label","onUpdate:selected","onMenuItemKeyboardNavigation"])]),_:3},16,["modelValue","button-label","aria-controls","aria-expanded","aria-activedescendant","onUpdate:modelValue","onFocus","onBlur","onKeydown"]),t.renderSlot(e.$slots,"default")],40,Pt)],6)}const Yt=V(Ut,[["render",Xt]]);p.CdxTypeaheadSearch=Yt,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}); |