@cartbot/plate-search 3.1.3 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -0
- package/build/dist/css/plate-search.css +1 -1
- package/build/dist/js/plate-search.js +12 -12
- package/dist/css/plate-search.css +1 -1
- package/dist/js/plate-search.es.js +652 -641
- package/dist/js/plate-search.js +12 -12
- package/package.json +1 -1
|
@@ -1,130 +1,130 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import
|
|
3
|
-
import { createRoot as
|
|
4
|
-
const
|
|
2
|
+
import Gt, { createContext as xa, useState as Y, useRef as Me, useEffect as j, forwardRef as ya, useImperativeHandle as Ea } from "react";
|
|
3
|
+
import { createRoot as Yt } from "react-dom/client";
|
|
4
|
+
const _a = "/css/plate-search.css";
|
|
5
5
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
6
6
|
const {
|
|
7
|
-
entries:
|
|
8
|
-
setPrototypeOf:
|
|
9
|
-
isFrozen:
|
|
10
|
-
getPrototypeOf:
|
|
11
|
-
getOwnPropertyDescriptor:
|
|
7
|
+
entries: qt,
|
|
8
|
+
setPrototypeOf: Ot,
|
|
9
|
+
isFrozen: Aa,
|
|
10
|
+
getPrototypeOf: Ra,
|
|
11
|
+
getOwnPropertyDescriptor: Ta
|
|
12
12
|
} = Object;
|
|
13
13
|
let {
|
|
14
14
|
freeze: z,
|
|
15
|
-
seal:
|
|
16
|
-
create:
|
|
15
|
+
seal: B,
|
|
16
|
+
create: Xt
|
|
17
17
|
} = Object, {
|
|
18
|
-
apply:
|
|
19
|
-
construct:
|
|
18
|
+
apply: dt,
|
|
19
|
+
construct: mt
|
|
20
20
|
} = typeof Reflect < "u" && Reflect;
|
|
21
21
|
z || (z = function(t) {
|
|
22
22
|
return t;
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
B || (B = function(t) {
|
|
25
25
|
return t;
|
|
26
26
|
});
|
|
27
|
-
|
|
28
|
-
return t.apply(
|
|
27
|
+
dt || (dt = function(t, c, i) {
|
|
28
|
+
return t.apply(c, i);
|
|
29
29
|
});
|
|
30
|
-
|
|
31
|
-
return new t(...
|
|
30
|
+
mt || (mt = function(t, c) {
|
|
31
|
+
return new t(...c);
|
|
32
32
|
});
|
|
33
|
-
const
|
|
34
|
-
function F(
|
|
33
|
+
const Ve = F(Array.prototype.forEach), ka = F(Array.prototype.lastIndexOf), It = F(Array.prototype.pop), Te = F(Array.prototype.push), Sa = F(Array.prototype.splice), Be = F(String.prototype.toLowerCase), nt = F(String.prototype.toString), Ht = F(String.prototype.match), ke = F(String.prototype.replace), Ca = F(String.prototype.indexOf), La = F(String.prototype.trim), W = F(Object.prototype.hasOwnProperty), U = F(RegExp.prototype.test), Se = Ma(TypeError);
|
|
34
|
+
function F(o) {
|
|
35
35
|
return function(t) {
|
|
36
36
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
37
|
-
for (var
|
|
38
|
-
i[
|
|
39
|
-
return
|
|
37
|
+
for (var c = arguments.length, i = new Array(c > 1 ? c - 1 : 0), u = 1; u < c; u++)
|
|
38
|
+
i[u - 1] = arguments[u];
|
|
39
|
+
return dt(o, t, i);
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ma(o) {
|
|
43
43
|
return function() {
|
|
44
|
-
for (var t = arguments.length,
|
|
45
|
-
|
|
46
|
-
return
|
|
44
|
+
for (var t = arguments.length, c = new Array(t), i = 0; i < t; i++)
|
|
45
|
+
c[i] = arguments[i];
|
|
46
|
+
return mt(o, c);
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function g(
|
|
50
|
-
let
|
|
51
|
-
|
|
49
|
+
function g(o, t) {
|
|
50
|
+
let c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Be;
|
|
51
|
+
Ot && Ot(o, null);
|
|
52
52
|
let i = t.length;
|
|
53
53
|
for (; i--; ) {
|
|
54
|
-
let
|
|
55
|
-
if (typeof
|
|
56
|
-
const
|
|
57
|
-
|
|
54
|
+
let u = t[i];
|
|
55
|
+
if (typeof u == "string") {
|
|
56
|
+
const h = c(u);
|
|
57
|
+
h !== u && (Aa(t) || (t[i] = h), u = h);
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
o[u] = !0;
|
|
60
60
|
}
|
|
61
|
-
return
|
|
61
|
+
return o;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
for (let t = 0; t <
|
|
65
|
-
W(
|
|
66
|
-
return
|
|
63
|
+
function Na(o) {
|
|
64
|
+
for (let t = 0; t < o.length; t++)
|
|
65
|
+
W(o, t) || (o[t] = null);
|
|
66
|
+
return o;
|
|
67
67
|
}
|
|
68
|
-
function Q(
|
|
69
|
-
const t =
|
|
70
|
-
for (const [
|
|
71
|
-
W(
|
|
68
|
+
function Q(o) {
|
|
69
|
+
const t = Xt(null);
|
|
70
|
+
for (const [c, i] of qt(o))
|
|
71
|
+
W(o, c) && (Array.isArray(i) ? t[c] = Na(i) : i && typeof i == "object" && i.constructor === Object ? t[c] = Q(i) : t[c] = i);
|
|
72
72
|
return t;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
for (;
|
|
76
|
-
const i =
|
|
74
|
+
function Ce(o, t) {
|
|
75
|
+
for (; o !== null; ) {
|
|
76
|
+
const i = Ta(o, t);
|
|
77
77
|
if (i) {
|
|
78
78
|
if (i.get)
|
|
79
79
|
return F(i.get);
|
|
80
80
|
if (typeof i.value == "function")
|
|
81
81
|
return F(i.value);
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
o = Ra(o);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function c() {
|
|
86
86
|
return null;
|
|
87
87
|
}
|
|
88
|
-
return
|
|
88
|
+
return c;
|
|
89
89
|
}
|
|
90
|
-
const Pt = z(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
90
|
+
const Pt = z(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), rt = z(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), it = z(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Oa = z(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), lt = z(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ia = z(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Dt = z(["#text"]), Ut = z(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), st = z(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), zt = z(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), je = z(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ha = B(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Pa = B(/<%[\w\W]*|[\w\W]*%>/gm), Da = B(/\$\{[\w\W]*/gm), Ua = B(/^data-[\-\w.\u00B7-\uFFFF]+$/), za = B(/^aria-[\-\w]+$/), Kt = B(
|
|
91
91
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
92
92
|
// eslint-disable-line no-useless-escape
|
|
93
|
-
),
|
|
93
|
+
), Fa = B(/^(?:\w+script|data):/i), Za = B(
|
|
94
94
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
95
95
|
// eslint-disable-line no-control-regex
|
|
96
|
-
),
|
|
97
|
-
var
|
|
96
|
+
), Jt = B(/^html$/i), Va = B(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
97
|
+
var Ft = /* @__PURE__ */ Object.freeze({
|
|
98
98
|
__proto__: null,
|
|
99
|
-
ARIA_ATTR:
|
|
100
|
-
ATTR_WHITESPACE:
|
|
101
|
-
CUSTOM_ELEMENT:
|
|
102
|
-
DATA_ATTR:
|
|
103
|
-
DOCTYPE_NAME:
|
|
99
|
+
ARIA_ATTR: za,
|
|
100
|
+
ATTR_WHITESPACE: Za,
|
|
101
|
+
CUSTOM_ELEMENT: Va,
|
|
102
|
+
DATA_ATTR: Ua,
|
|
103
|
+
DOCTYPE_NAME: Jt,
|
|
104
104
|
ERB_EXPR: Pa,
|
|
105
|
-
IS_ALLOWED_URI:
|
|
106
|
-
IS_SCRIPT_OR_DATA:
|
|
107
|
-
MUSTACHE_EXPR:
|
|
108
|
-
TMPLIT_EXPR:
|
|
105
|
+
IS_ALLOWED_URI: Kt,
|
|
106
|
+
IS_SCRIPT_OR_DATA: Fa,
|
|
107
|
+
MUSTACHE_EXPR: Ha,
|
|
108
|
+
TMPLIT_EXPR: Da
|
|
109
109
|
});
|
|
110
|
-
const
|
|
110
|
+
const Le = {
|
|
111
111
|
element: 1,
|
|
112
112
|
text: 3,
|
|
113
113
|
// Deprecated
|
|
114
114
|
progressingInstruction: 7,
|
|
115
115
|
comment: 8,
|
|
116
116
|
document: 9
|
|
117
|
-
},
|
|
117
|
+
}, ja = function() {
|
|
118
118
|
return typeof window > "u" ? null : window;
|
|
119
|
-
},
|
|
119
|
+
}, Ba = function(t, c) {
|
|
120
120
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
121
121
|
return null;
|
|
122
122
|
let i = null;
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
const
|
|
123
|
+
const u = "data-tt-policy-suffix";
|
|
124
|
+
c && c.hasAttribute(u) && (i = c.getAttribute(u));
|
|
125
|
+
const h = "dompurify" + (i ? "#" + i : "");
|
|
126
126
|
try {
|
|
127
|
-
return t.createPolicy(
|
|
127
|
+
return t.createPolicy(h, {
|
|
128
128
|
createHTML(p) {
|
|
129
129
|
return p;
|
|
130
130
|
},
|
|
@@ -133,9 +133,9 @@ const Oe = {
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
} catch {
|
|
136
|
-
return console.warn("TrustedTypes policy " +
|
|
136
|
+
return console.warn("TrustedTypes policy " + h + " could not be created."), null;
|
|
137
137
|
}
|
|
138
|
-
},
|
|
138
|
+
}, Zt = function() {
|
|
139
139
|
return {
|
|
140
140
|
afterSanitizeAttributes: [],
|
|
141
141
|
afterSanitizeElements: [],
|
|
@@ -148,57 +148,57 @@ const Oe = {
|
|
|
148
148
|
uponSanitizeShadowNode: []
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
|
-
function
|
|
152
|
-
let
|
|
153
|
-
const t = (
|
|
154
|
-
if (t.version = "3.2.6", t.removed = [], !
|
|
151
|
+
function Qt() {
|
|
152
|
+
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ja();
|
|
153
|
+
const t = (d) => Qt(d);
|
|
154
|
+
if (t.version = "3.2.6", t.removed = [], !o || !o.document || o.document.nodeType !== Le.document || !o.Element)
|
|
155
155
|
return t.isSupported = !1, t;
|
|
156
156
|
let {
|
|
157
|
-
document:
|
|
158
|
-
} =
|
|
159
|
-
const i =
|
|
160
|
-
DocumentFragment:
|
|
157
|
+
document: c
|
|
158
|
+
} = o;
|
|
159
|
+
const i = c, u = i.currentScript, {
|
|
160
|
+
DocumentFragment: h,
|
|
161
161
|
HTMLTemplateElement: p,
|
|
162
|
-
Node:
|
|
163
|
-
Element:
|
|
164
|
-
NodeFilter:
|
|
165
|
-
NamedNodeMap:
|
|
162
|
+
Node: m,
|
|
163
|
+
Element: w,
|
|
164
|
+
NodeFilter: r,
|
|
165
|
+
NamedNodeMap: f = o.NamedNodeMap || o.MozNamedAttrMap,
|
|
166
166
|
HTMLFormElement: b,
|
|
167
167
|
DOMParser: N,
|
|
168
|
-
trustedTypes:
|
|
169
|
-
} =
|
|
168
|
+
trustedTypes: T
|
|
169
|
+
} = o, v = w.prototype, O = Ce(v, "cloneNode"), I = Ce(v, "remove"), q = Ce(v, "nextSibling"), We = Ce(v, "childNodes"), ee = Ce(v, "parentNode");
|
|
170
170
|
if (typeof p == "function") {
|
|
171
|
-
const
|
|
172
|
-
|
|
171
|
+
const d = c.createElement("template");
|
|
172
|
+
d.content && d.content.ownerDocument && (c = d.content.ownerDocument);
|
|
173
173
|
}
|
|
174
|
-
let
|
|
174
|
+
let k, te = "";
|
|
175
175
|
const {
|
|
176
176
|
implementation: ce,
|
|
177
|
-
createNodeIterator:
|
|
178
|
-
createDocumentFragment:
|
|
179
|
-
getElementsByTagName:
|
|
180
|
-
} =
|
|
181
|
-
importNode:
|
|
177
|
+
createNodeIterator: $e,
|
|
178
|
+
createDocumentFragment: be,
|
|
179
|
+
getElementsByTagName: Ge
|
|
180
|
+
} = c, {
|
|
181
|
+
importNode: Ne
|
|
182
182
|
} = i;
|
|
183
|
-
let L =
|
|
184
|
-
t.isSupported = typeof
|
|
183
|
+
let L = Zt();
|
|
184
|
+
t.isSupported = typeof qt == "function" && typeof ee == "function" && ce && ce.createHTMLDocument !== void 0;
|
|
185
185
|
const {
|
|
186
|
-
MUSTACHE_EXPR:
|
|
187
|
-
ERB_EXPR:
|
|
186
|
+
MUSTACHE_EXPR: ae,
|
|
187
|
+
ERB_EXPR: re,
|
|
188
188
|
TMPLIT_EXPR: de,
|
|
189
|
-
DATA_ATTR:
|
|
190
|
-
ARIA_ATTR:
|
|
191
|
-
IS_SCRIPT_OR_DATA:
|
|
192
|
-
ATTR_WHITESPACE:
|
|
193
|
-
CUSTOM_ELEMENT:
|
|
194
|
-
} =
|
|
189
|
+
DATA_ATTR: Ye,
|
|
190
|
+
ARIA_ATTR: Oe,
|
|
191
|
+
IS_SCRIPT_OR_DATA: qe,
|
|
192
|
+
ATTR_WHITESPACE: Ie,
|
|
193
|
+
CUSTOM_ELEMENT: V
|
|
194
|
+
} = Ft;
|
|
195
195
|
let {
|
|
196
|
-
IS_ALLOWED_URI:
|
|
197
|
-
} =
|
|
198
|
-
const
|
|
196
|
+
IS_ALLOWED_URI: ve
|
|
197
|
+
} = Ft, _ = null;
|
|
198
|
+
const xe = g({}, [...Pt, ...rt, ...it, ...lt, ...Dt]);
|
|
199
199
|
let S = null;
|
|
200
|
-
const
|
|
201
|
-
let A = Object.seal(
|
|
200
|
+
const He = g({}, [...Ut, ...st, ...zt, ...je]);
|
|
201
|
+
let A = Object.seal(Xt(null, {
|
|
202
202
|
tagNameCheck: {
|
|
203
203
|
writable: !0,
|
|
204
204
|
configurable: !1,
|
|
@@ -217,47 +217,47 @@ function ea() {
|
|
|
217
217
|
enumerable: !0,
|
|
218
218
|
value: !1
|
|
219
219
|
}
|
|
220
|
-
})),
|
|
221
|
-
const
|
|
222
|
-
let
|
|
223
|
-
const
|
|
224
|
-
let
|
|
225
|
-
const
|
|
226
|
-
let
|
|
227
|
-
const
|
|
228
|
-
let ue =
|
|
229
|
-
const
|
|
230
|
-
let
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
const
|
|
220
|
+
})), oe = null, ye = null, Ee = !0, l = !0, x = !1, y = !0, E = !1, ne = !0, $ = !1, ie = !1, Xe = !1, me = !1, Pe = !1, De = !1, ft = !0, gt = !1;
|
|
221
|
+
const ha = "user-content-";
|
|
222
|
+
let Ke = !0, _e = !1, he = {}, pe = null;
|
|
223
|
+
const wt = g({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
224
|
+
let bt = null;
|
|
225
|
+
const vt = g({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
226
|
+
let Je = null;
|
|
227
|
+
const xt = g({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ue = "http://www.w3.org/1998/Math/MathML", ze = "http://www.w3.org/2000/svg", X = "http://www.w3.org/1999/xhtml";
|
|
228
|
+
let ue = X, Qe = !1, et = null;
|
|
229
|
+
const pa = g({}, [Ue, ze, X], nt);
|
|
230
|
+
let Fe = g({}, ["mi", "mo", "mn", "ms", "mtext"]), Ze = g({}, ["annotation-xml"]);
|
|
231
|
+
const ua = g({}, ["title", "style", "font", "a", "script"]);
|
|
232
|
+
let Ae = null;
|
|
233
|
+
const fa = ["application/xhtml+xml", "text/html"], ga = "text/html";
|
|
234
234
|
let M = null, fe = null;
|
|
235
|
-
const
|
|
235
|
+
const wa = c.createElement("form"), yt = function(e) {
|
|
236
236
|
return e instanceof RegExp || e instanceof Function;
|
|
237
|
-
},
|
|
237
|
+
}, tt = function() {
|
|
238
238
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
239
239
|
if (!(fe && fe === e)) {
|
|
240
|
-
if ((!e || typeof e != "object") && (e = {}), e = Q(e),
|
|
241
|
-
|
|
240
|
+
if ((!e || typeof e != "object") && (e = {}), e = Q(e), Ae = // eslint-disable-next-line unicorn/prefer-includes
|
|
241
|
+
fa.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? ga : e.PARSER_MEDIA_TYPE, M = Ae === "application/xhtml+xml" ? nt : Be, _ = W(e, "ALLOWED_TAGS") ? g({}, e.ALLOWED_TAGS, M) : xe, S = W(e, "ALLOWED_ATTR") ? g({}, e.ALLOWED_ATTR, M) : He, et = W(e, "ALLOWED_NAMESPACES") ? g({}, e.ALLOWED_NAMESPACES, nt) : pa, Je = W(e, "ADD_URI_SAFE_ATTR") ? g(Q(xt), e.ADD_URI_SAFE_ATTR, M) : xt, bt = W(e, "ADD_DATA_URI_TAGS") ? g(Q(vt), e.ADD_DATA_URI_TAGS, M) : vt, pe = W(e, "FORBID_CONTENTS") ? g({}, e.FORBID_CONTENTS, M) : wt, oe = W(e, "FORBID_TAGS") ? g({}, e.FORBID_TAGS, M) : Q({}), ye = W(e, "FORBID_ATTR") ? g({}, e.FORBID_ATTR, M) : Q({}), he = W(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Ee = e.ALLOW_ARIA_ATTR !== !1, l = e.ALLOW_DATA_ATTR !== !1, x = e.ALLOW_UNKNOWN_PROTOCOLS || !1, y = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, E = e.SAFE_FOR_TEMPLATES || !1, ne = e.SAFE_FOR_XML !== !1, $ = e.WHOLE_DOCUMENT || !1, me = e.RETURN_DOM || !1, Pe = e.RETURN_DOM_FRAGMENT || !1, De = e.RETURN_TRUSTED_TYPE || !1, Xe = e.FORCE_BODY || !1, ft = e.SANITIZE_DOM !== !1, gt = e.SANITIZE_NAMED_PROPS || !1, Ke = e.KEEP_CONTENT !== !1, _e = e.IN_PLACE || !1, ve = e.ALLOWED_URI_REGEXP || Kt, ue = e.NAMESPACE || X, Fe = e.MATHML_TEXT_INTEGRATION_POINTS || Fe, Ze = e.HTML_INTEGRATION_POINTS || Ze, A = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (A.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (A.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (A.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), E && (l = !1), Pe && (me = !0), he && (_ = g({}, Dt), S = [], he.html === !0 && (g(_, Pt), g(S, Ut)), he.svg === !0 && (g(_, rt), g(S, st), g(S, je)), he.svgFilters === !0 && (g(_, it), g(S, st), g(S, je)), he.mathMl === !0 && (g(_, lt), g(S, zt), g(S, je))), e.ADD_TAGS && (_ === xe && (_ = Q(_)), g(_, e.ADD_TAGS, M)), e.ADD_ATTR && (S === He && (S = Q(S)), g(S, e.ADD_ATTR, M)), e.ADD_URI_SAFE_ATTR && g(Je, e.ADD_URI_SAFE_ATTR, M), e.FORBID_CONTENTS && (pe === wt && (pe = Q(pe)), g(pe, e.FORBID_CONTENTS, M)), Ke && (_["#text"] = !0), $ && g(_, ["html", "head", "body"]), _.table && (g(_, ["tbody"]), delete oe.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
242
242
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
243
|
-
throw
|
|
243
|
+
throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
244
244
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
245
|
-
throw
|
|
246
|
-
|
|
245
|
+
throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
246
|
+
k = e.TRUSTED_TYPES_POLICY, te = k.createHTML("");
|
|
247
247
|
} else
|
|
248
|
-
|
|
248
|
+
k === void 0 && (k = Ba(T, u)), k !== null && typeof te == "string" && (te = k.createHTML(""));
|
|
249
249
|
z && z(e), fe = e;
|
|
250
250
|
}
|
|
251
|
-
},
|
|
252
|
-
let
|
|
253
|
-
(!
|
|
251
|
+
}, Et = g({}, [...rt, ...it, ...Oa]), _t = g({}, [...lt, ...Ia]), ba = function(e) {
|
|
252
|
+
let n = ee(e);
|
|
253
|
+
(!n || !n.tagName) && (n = {
|
|
254
254
|
namespaceURI: ue,
|
|
255
255
|
tagName: "template"
|
|
256
256
|
});
|
|
257
|
-
const s =
|
|
258
|
-
return
|
|
257
|
+
const s = Be(e.tagName), R = Be(n.tagName);
|
|
258
|
+
return et[e.namespaceURI] ? e.namespaceURI === ze ? n.namespaceURI === X ? s === "svg" : n.namespaceURI === Ue ? s === "svg" && (R === "annotation-xml" || Fe[R]) : !!Et[s] : e.namespaceURI === Ue ? n.namespaceURI === X ? s === "math" : n.namespaceURI === ze ? s === "math" && Ze[R] : !!_t[s] : e.namespaceURI === X ? n.namespaceURI === ze && !Ze[R] || n.namespaceURI === Ue && !Fe[R] ? !1 : !_t[s] && (ua[s] || !Et[s]) : !!(Ae === "application/xhtml+xml" && et[e.namespaceURI]) : !1;
|
|
259
259
|
}, G = function(e) {
|
|
260
|
-
|
|
260
|
+
Te(t.removed, {
|
|
261
261
|
element: e
|
|
262
262
|
});
|
|
263
263
|
try {
|
|
@@ -265,119 +265,119 @@ function ea() {
|
|
|
265
265
|
} catch {
|
|
266
266
|
I(e);
|
|
267
267
|
}
|
|
268
|
-
}, ge = function(e,
|
|
268
|
+
}, ge = function(e, n) {
|
|
269
269
|
try {
|
|
270
|
-
|
|
271
|
-
attribute:
|
|
272
|
-
from:
|
|
270
|
+
Te(t.removed, {
|
|
271
|
+
attribute: n.getAttributeNode(e),
|
|
272
|
+
from: n
|
|
273
273
|
});
|
|
274
274
|
} catch {
|
|
275
|
-
|
|
275
|
+
Te(t.removed, {
|
|
276
276
|
attribute: null,
|
|
277
|
-
from:
|
|
277
|
+
from: n
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
-
if (
|
|
281
|
-
if (me ||
|
|
280
|
+
if (n.removeAttribute(e), e === "is")
|
|
281
|
+
if (me || Pe)
|
|
282
282
|
try {
|
|
283
|
-
G(
|
|
283
|
+
G(n);
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
else
|
|
287
287
|
try {
|
|
288
|
-
|
|
288
|
+
n.setAttribute(e, "");
|
|
289
289
|
} catch {
|
|
290
290
|
}
|
|
291
|
-
},
|
|
292
|
-
let
|
|
293
|
-
if (
|
|
291
|
+
}, At = function(e) {
|
|
292
|
+
let n = null, s = null;
|
|
293
|
+
if (Xe)
|
|
294
294
|
e = "<remove></remove>" + e;
|
|
295
295
|
else {
|
|
296
|
-
const C =
|
|
296
|
+
const C = Ht(e, /^[\r\n\t ]+/);
|
|
297
297
|
s = C && C[0];
|
|
298
298
|
}
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
if (ue ===
|
|
299
|
+
Ae === "application/xhtml+xml" && ue === X && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
300
|
+
const R = k ? k.createHTML(e) : e;
|
|
301
|
+
if (ue === X)
|
|
302
302
|
try {
|
|
303
|
-
|
|
303
|
+
n = new N().parseFromString(R, Ae);
|
|
304
304
|
} catch {
|
|
305
305
|
}
|
|
306
|
-
if (!
|
|
307
|
-
|
|
306
|
+
if (!n || !n.documentElement) {
|
|
307
|
+
n = ce.createDocument(ue, "template", null);
|
|
308
308
|
try {
|
|
309
|
-
|
|
309
|
+
n.documentElement.innerHTML = Qe ? te : R;
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
const
|
|
314
|
-
return e && s &&
|
|
315
|
-
},
|
|
316
|
-
return
|
|
313
|
+
const P = n.body || n.documentElement;
|
|
314
|
+
return e && s && P.insertBefore(c.createTextNode(s), P.childNodes[0] || null), ue === X ? Ge.call(n, $ ? "html" : "body")[0] : $ ? n.documentElement : P;
|
|
315
|
+
}, Rt = function(e) {
|
|
316
|
+
return $e.call(
|
|
317
317
|
e.ownerDocument || e,
|
|
318
318
|
e,
|
|
319
319
|
// eslint-disable-next-line no-bitwise
|
|
320
|
-
|
|
320
|
+
r.SHOW_ELEMENT | r.SHOW_COMMENT | r.SHOW_TEXT | r.SHOW_PROCESSING_INSTRUCTION | r.SHOW_CDATA_SECTION,
|
|
321
321
|
null
|
|
322
322
|
);
|
|
323
|
-
},
|
|
324
|
-
return e instanceof b && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof
|
|
325
|
-
},
|
|
326
|
-
return typeof
|
|
323
|
+
}, at = function(e) {
|
|
324
|
+
return e instanceof b && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof f) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
325
|
+
}, Tt = function(e) {
|
|
326
|
+
return typeof m == "function" && e instanceof m;
|
|
327
327
|
};
|
|
328
|
-
function
|
|
329
|
-
|
|
330
|
-
s.call(t, e,
|
|
328
|
+
function K(d, e, n) {
|
|
329
|
+
Ve(d, (s) => {
|
|
330
|
+
s.call(t, e, n, fe);
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
|
-
const
|
|
334
|
-
let
|
|
335
|
-
if (
|
|
333
|
+
const kt = function(e) {
|
|
334
|
+
let n = null;
|
|
335
|
+
if (K(L.beforeSanitizeElements, e, null), at(e))
|
|
336
336
|
return G(e), !0;
|
|
337
337
|
const s = M(e.nodeName);
|
|
338
|
-
if (
|
|
338
|
+
if (K(L.uponSanitizeElement, e, {
|
|
339
339
|
tagName: s,
|
|
340
340
|
allowedTags: _
|
|
341
|
-
}),
|
|
341
|
+
}), ne && e.hasChildNodes() && !Tt(e.firstElementChild) && U(/<[/\w!]/g, e.innerHTML) && U(/<[/\w!]/g, e.textContent) || e.nodeType === Le.progressingInstruction || ne && e.nodeType === Le.comment && U(/<[/\w]/g, e.data))
|
|
342
342
|
return G(e), !0;
|
|
343
|
-
if (!_[s] ||
|
|
344
|
-
if (!
|
|
343
|
+
if (!_[s] || oe[s]) {
|
|
344
|
+
if (!oe[s] && Ct(s) && (A.tagNameCheck instanceof RegExp && U(A.tagNameCheck, s) || A.tagNameCheck instanceof Function && A.tagNameCheck(s)))
|
|
345
345
|
return !1;
|
|
346
|
-
if (
|
|
347
|
-
const
|
|
348
|
-
if (
|
|
349
|
-
const C =
|
|
346
|
+
if (Ke && !pe[s]) {
|
|
347
|
+
const R = ee(e) || e.parentNode, P = We(e) || e.childNodes;
|
|
348
|
+
if (P && R) {
|
|
349
|
+
const C = P.length;
|
|
350
350
|
for (let Z = C - 1; Z >= 0; --Z) {
|
|
351
|
-
const
|
|
352
|
-
|
|
351
|
+
const J = O(P[Z], !0);
|
|
352
|
+
J.__removalCount = (e.__removalCount || 0) + 1, R.insertBefore(J, q(e));
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
return G(e), !0;
|
|
357
357
|
}
|
|
358
|
-
return e instanceof
|
|
359
|
-
|
|
360
|
-
}), e.textContent !==
|
|
358
|
+
return e instanceof w && !ba(e) || (s === "noscript" || s === "noembed" || s === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (G(e), !0) : (E && e.nodeType === Le.text && (n = e.textContent, Ve([ae, re, de], (R) => {
|
|
359
|
+
n = ke(n, R, " ");
|
|
360
|
+
}), e.textContent !== n && (Te(t.removed, {
|
|
361
361
|
element: e.cloneNode()
|
|
362
|
-
}), e.textContent =
|
|
363
|
-
},
|
|
364
|
-
if (
|
|
362
|
+
}), e.textContent = n)), K(L.afterSanitizeElements, e, null), !1);
|
|
363
|
+
}, St = function(e, n, s) {
|
|
364
|
+
if (ft && (n === "id" || n === "name") && (s in c || s in wa))
|
|
365
365
|
return !1;
|
|
366
|
-
if (!(
|
|
367
|
-
if (!(
|
|
368
|
-
if (!S[
|
|
366
|
+
if (!(l && !ye[n] && U(Ye, n))) {
|
|
367
|
+
if (!(Ee && U(Oe, n))) {
|
|
368
|
+
if (!S[n] || ye[n]) {
|
|
369
369
|
if (
|
|
370
370
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
371
371
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
372
372
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
373
|
-
!(
|
|
373
|
+
!(Ct(e) && (A.tagNameCheck instanceof RegExp && U(A.tagNameCheck, e) || A.tagNameCheck instanceof Function && A.tagNameCheck(e)) && (A.attributeNameCheck instanceof RegExp && U(A.attributeNameCheck, n) || A.attributeNameCheck instanceof Function && A.attributeNameCheck(n)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
374
374
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
375
|
-
|
|
375
|
+
n === "is" && A.allowCustomizedBuiltInElements && (A.tagNameCheck instanceof RegExp && U(A.tagNameCheck, s) || A.tagNameCheck instanceof Function && A.tagNameCheck(s)))
|
|
376
376
|
) return !1;
|
|
377
|
-
} else if (!
|
|
378
|
-
if (!U(
|
|
379
|
-
if (!((
|
|
380
|
-
if (!(x && !U(
|
|
377
|
+
} else if (!Je[n]) {
|
|
378
|
+
if (!U(ve, ke(s, Ie, ""))) {
|
|
379
|
+
if (!((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && Ca(s, "data:") === 0 && bt[e])) {
|
|
380
|
+
if (!(x && !U(qe, ke(s, Ie, "")))) {
|
|
381
381
|
if (s)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
@@ -387,14 +387,14 @@ function ea() {
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
return !0;
|
|
390
|
+
}, Ct = function(e) {
|
|
391
|
+
return e !== "annotation-xml" && Ht(e, V);
|
|
390
392
|
}, Lt = function(e) {
|
|
391
|
-
|
|
392
|
-
}, Mt = function(e) {
|
|
393
|
-
X(L.beforeSanitizeAttributes, e, null);
|
|
393
|
+
K(L.beforeSanitizeAttributes, e, null);
|
|
394
394
|
const {
|
|
395
|
-
attributes:
|
|
395
|
+
attributes: n
|
|
396
396
|
} = e;
|
|
397
|
-
if (!
|
|
397
|
+
if (!n || at(e))
|
|
398
398
|
return;
|
|
399
399
|
const s = {
|
|
400
400
|
attrName: "",
|
|
@@ -403,15 +403,15 @@ function ea() {
|
|
|
403
403
|
allowedAttributes: S,
|
|
404
404
|
forceKeepAttr: void 0
|
|
405
405
|
};
|
|
406
|
-
let
|
|
407
|
-
for (;
|
|
408
|
-
const
|
|
406
|
+
let R = n.length;
|
|
407
|
+
for (; R--; ) {
|
|
408
|
+
const P = n[R], {
|
|
409
409
|
name: C,
|
|
410
410
|
namespaceURI: Z,
|
|
411
|
-
value:
|
|
412
|
-
} =
|
|
413
|
-
let
|
|
414
|
-
if (s.attrName = Re, s.attrValue =
|
|
411
|
+
value: J
|
|
412
|
+
} = P, Re = M(C), ot = J;
|
|
413
|
+
let D = C === "value" ? ot : La(ot);
|
|
414
|
+
if (s.attrName = Re, s.attrValue = D, s.keepAttr = !0, s.forceKeepAttr = void 0, K(L.uponSanitizeAttribute, e, s), D = s.attrValue, gt && (Re === "id" || Re === "name") && (ge(C, e), D = ha + D), ne && U(/((--!?|])>)|<\/(style|title)/i, D)) {
|
|
415
415
|
ge(C, e);
|
|
416
416
|
continue;
|
|
417
417
|
}
|
|
@@ -421,113 +421,113 @@ function ea() {
|
|
|
421
421
|
ge(C, e);
|
|
422
422
|
continue;
|
|
423
423
|
}
|
|
424
|
-
if (!y && U(/\/>/i,
|
|
424
|
+
if (!y && U(/\/>/i, D)) {
|
|
425
425
|
ge(C, e);
|
|
426
426
|
continue;
|
|
427
427
|
}
|
|
428
|
-
E &&
|
|
429
|
-
|
|
428
|
+
E && Ve([ae, re, de], (Nt) => {
|
|
429
|
+
D = ke(D, Nt, " ");
|
|
430
430
|
});
|
|
431
|
-
const
|
|
432
|
-
if (!
|
|
431
|
+
const Mt = M(e.nodeName);
|
|
432
|
+
if (!St(Mt, Re, D)) {
|
|
433
433
|
ge(C, e);
|
|
434
434
|
continue;
|
|
435
435
|
}
|
|
436
|
-
if (
|
|
437
|
-
switch (
|
|
436
|
+
if (k && typeof T == "object" && typeof T.getAttributeType == "function" && !Z)
|
|
437
|
+
switch (T.getAttributeType(Mt, Re)) {
|
|
438
438
|
case "TrustedHTML": {
|
|
439
|
-
|
|
439
|
+
D = k.createHTML(D);
|
|
440
440
|
break;
|
|
441
441
|
}
|
|
442
442
|
case "TrustedScriptURL": {
|
|
443
|
-
|
|
443
|
+
D = k.createScriptURL(D);
|
|
444
444
|
break;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
if (
|
|
447
|
+
if (D !== ot)
|
|
448
448
|
try {
|
|
449
|
-
Z ? e.setAttributeNS(Z, C,
|
|
449
|
+
Z ? e.setAttributeNS(Z, C, D) : e.setAttribute(C, D), at(e) ? G(e) : It(t.removed);
|
|
450
450
|
} catch {
|
|
451
451
|
ge(C, e);
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
|
|
455
|
-
},
|
|
456
|
-
let
|
|
457
|
-
const s =
|
|
458
|
-
for (
|
|
459
|
-
|
|
460
|
-
|
|
454
|
+
K(L.afterSanitizeAttributes, e, null);
|
|
455
|
+
}, va = function d(e) {
|
|
456
|
+
let n = null;
|
|
457
|
+
const s = Rt(e);
|
|
458
|
+
for (K(L.beforeSanitizeShadowDOM, e, null); n = s.nextNode(); )
|
|
459
|
+
K(L.uponSanitizeShadowNode, n, null), kt(n), Lt(n), n.content instanceof h && d(n.content);
|
|
460
|
+
K(L.afterSanitizeShadowDOM, e, null);
|
|
461
461
|
};
|
|
462
|
-
return t.sanitize = function(
|
|
463
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
464
|
-
if (
|
|
465
|
-
if (typeof
|
|
466
|
-
if (
|
|
467
|
-
throw
|
|
462
|
+
return t.sanitize = function(d) {
|
|
463
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, s = null, R = null, P = null;
|
|
464
|
+
if (Qe = !d, Qe && (d = "<!-->"), typeof d != "string" && !Tt(d))
|
|
465
|
+
if (typeof d.toString == "function") {
|
|
466
|
+
if (d = d.toString(), typeof d != "string")
|
|
467
|
+
throw Se("dirty is not a string, aborting");
|
|
468
468
|
} else
|
|
469
|
-
throw
|
|
469
|
+
throw Se("toString is not a function");
|
|
470
470
|
if (!t.isSupported)
|
|
471
|
-
return
|
|
472
|
-
if (
|
|
473
|
-
if (
|
|
474
|
-
const
|
|
475
|
-
if (!_[
|
|
476
|
-
throw
|
|
471
|
+
return d;
|
|
472
|
+
if (ie || tt(e), t.removed = [], typeof d == "string" && (_e = !1), _e) {
|
|
473
|
+
if (d.nodeName) {
|
|
474
|
+
const J = M(d.nodeName);
|
|
475
|
+
if (!_[J] || oe[J])
|
|
476
|
+
throw Se("root node is forbidden and cannot be sanitized in-place");
|
|
477
477
|
}
|
|
478
|
-
} else if (
|
|
479
|
-
|
|
478
|
+
} else if (d instanceof m)
|
|
479
|
+
n = At("<!---->"), s = n.ownerDocument.importNode(d, !0), s.nodeType === Le.element && s.nodeName === "BODY" || s.nodeName === "HTML" ? n = s : n.appendChild(s);
|
|
480
480
|
else {
|
|
481
481
|
if (!me && !E && !$ && // eslint-disable-next-line unicorn/prefer-includes
|
|
482
|
-
|
|
483
|
-
return
|
|
484
|
-
if (
|
|
485
|
-
return me ? null :
|
|
482
|
+
d.indexOf("<") === -1)
|
|
483
|
+
return k && De ? k.createHTML(d) : d;
|
|
484
|
+
if (n = At(d), !n)
|
|
485
|
+
return me ? null : De ? te : "";
|
|
486
486
|
}
|
|
487
|
-
|
|
488
|
-
const C =
|
|
489
|
-
for (;
|
|
490
|
-
|
|
491
|
-
if (
|
|
492
|
-
return
|
|
487
|
+
n && Xe && G(n.firstChild);
|
|
488
|
+
const C = Rt(_e ? d : n);
|
|
489
|
+
for (; R = C.nextNode(); )
|
|
490
|
+
kt(R), Lt(R), R.content instanceof h && va(R.content);
|
|
491
|
+
if (_e)
|
|
492
|
+
return d;
|
|
493
493
|
if (me) {
|
|
494
|
-
if (
|
|
495
|
-
for (
|
|
496
|
-
|
|
494
|
+
if (Pe)
|
|
495
|
+
for (P = be.call(n.ownerDocument); n.firstChild; )
|
|
496
|
+
P.appendChild(n.firstChild);
|
|
497
497
|
else
|
|
498
|
-
|
|
499
|
-
return (S.shadowroot || S.shadowrootmode) && (
|
|
498
|
+
P = n;
|
|
499
|
+
return (S.shadowroot || S.shadowrootmode) && (P = Ne.call(i, P, !0)), P;
|
|
500
500
|
}
|
|
501
|
-
let Z = $ ?
|
|
502
|
-
return $ && _["!doctype"] &&
|
|
503
|
-
` + Z), E &&
|
|
504
|
-
Z =
|
|
505
|
-
}),
|
|
501
|
+
let Z = $ ? n.outerHTML : n.innerHTML;
|
|
502
|
+
return $ && _["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && U(Jt, n.ownerDocument.doctype.name) && (Z = "<!DOCTYPE " + n.ownerDocument.doctype.name + `>
|
|
503
|
+
` + Z), E && Ve([ae, re, de], (J) => {
|
|
504
|
+
Z = ke(Z, J, " ");
|
|
505
|
+
}), k && De ? k.createHTML(Z) : Z;
|
|
506
506
|
}, t.setConfig = function() {
|
|
507
|
-
let
|
|
508
|
-
|
|
507
|
+
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
508
|
+
tt(d), ie = !0;
|
|
509
509
|
}, t.clearConfig = function() {
|
|
510
|
-
fe = null,
|
|
511
|
-
}, t.isValidAttribute = function(
|
|
512
|
-
fe ||
|
|
513
|
-
const s = M(
|
|
514
|
-
return
|
|
515
|
-
}, t.addHook = function(
|
|
516
|
-
typeof e == "function" &&
|
|
517
|
-
}, t.removeHook = function(
|
|
510
|
+
fe = null, ie = !1;
|
|
511
|
+
}, t.isValidAttribute = function(d, e, n) {
|
|
512
|
+
fe || tt({});
|
|
513
|
+
const s = M(d), R = M(e);
|
|
514
|
+
return St(s, R, n);
|
|
515
|
+
}, t.addHook = function(d, e) {
|
|
516
|
+
typeof e == "function" && Te(L[d], e);
|
|
517
|
+
}, t.removeHook = function(d, e) {
|
|
518
518
|
if (e !== void 0) {
|
|
519
|
-
const
|
|
520
|
-
return
|
|
519
|
+
const n = ka(L[d], e);
|
|
520
|
+
return n === -1 ? void 0 : Sa(L[d], n, 1)[0];
|
|
521
521
|
}
|
|
522
|
-
return
|
|
523
|
-
}, t.removeHooks = function(
|
|
524
|
-
L[
|
|
522
|
+
return It(L[d]);
|
|
523
|
+
}, t.removeHooks = function(d) {
|
|
524
|
+
L[d] = [];
|
|
525
525
|
}, t.removeAllHooks = function() {
|
|
526
|
-
L =
|
|
526
|
+
L = Zt();
|
|
527
527
|
}, t;
|
|
528
528
|
}
|
|
529
|
-
var
|
|
530
|
-
const
|
|
529
|
+
var Vt = Qt();
|
|
530
|
+
const Wa = /* @__PURE__ */ new Map([
|
|
531
531
|
[
|
|
532
532
|
"bold",
|
|
533
533
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z" }))
|
|
@@ -552,7 +552,7 @@ const $a = /* @__PURE__ */ new Map([
|
|
|
552
552
|
"thin",
|
|
553
553
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z" }))
|
|
554
554
|
]
|
|
555
|
-
]),
|
|
555
|
+
]), $a = /* @__PURE__ */ new Map([
|
|
556
556
|
[
|
|
557
557
|
"bold",
|
|
558
558
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z" }))
|
|
@@ -577,7 +577,7 @@ const $a = /* @__PURE__ */ new Map([
|
|
|
577
577
|
"thin",
|
|
578
578
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z" }))
|
|
579
579
|
]
|
|
580
|
-
]),
|
|
580
|
+
]), Ga = /* @__PURE__ */ new Map([
|
|
581
581
|
[
|
|
582
582
|
"bold",
|
|
583
583
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M240,100h-8.2L205.08,39.88A20,20,0,0,0,186.8,28H69.2A20,20,0,0,0,50.92,39.88L24.2,100H16a12,12,0,0,0,0,24h4v76a20,20,0,0,0,20,20H68a20,20,0,0,0,20-20V180h80v20a20,20,0,0,0,20,20h28a20,20,0,0,0,20-20V124h4a12,12,0,0,0,0-24ZM71.8,52H184.2l21.33,48H50.47ZM64,196H44V180H64Zm128,0V180h20v16Zm20-40H44V124H212Z" }))
|
|
@@ -608,7 +608,7 @@ const $a = /* @__PURE__ */ new Map([
|
|
|
608
608
|
"thin",
|
|
609
609
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M240,108H226.6L197.77,43.13a12,12,0,0,0-11-7.13H69.2a12,12,0,0,0-11,7.13L29.4,108H16a4,4,0,0,0,0,8H28v84a12,12,0,0,0,12,12H64a12,12,0,0,0,12-12V180H180v20a12,12,0,0,0,12,12h24a12,12,0,0,0,12-12V116h12a4,4,0,0,0,0-8ZM65.54,46.38A4,4,0,0,1,69.2,44H186.8a4,4,0,0,1,3.66,2.38L217.84,108H38.16ZM68,200a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V180H68Zm148,4H192a4,4,0,0,1-4-4V180h32v20A4,4,0,0,1,216,204Zm4-32H36V116H220ZM60,144a4,4,0,0,1,4-4H80a4,4,0,0,1,0,8H64A4,4,0,0,1,60,144Zm112,0a4,4,0,0,1,4-4h16a4,4,0,0,1,0,8H176A4,4,0,0,1,172,144Z" }))
|
|
610
610
|
]
|
|
611
|
-
]),
|
|
611
|
+
]), Ya = /* @__PURE__ */ new Map([
|
|
612
612
|
[
|
|
613
613
|
"bold",
|
|
614
614
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z" }))
|
|
@@ -633,7 +633,7 @@ const $a = /* @__PURE__ */ new Map([
|
|
|
633
633
|
"thin",
|
|
634
634
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z" }))
|
|
635
635
|
]
|
|
636
|
-
]),
|
|
636
|
+
]), qa = /* @__PURE__ */ new Map([
|
|
637
637
|
[
|
|
638
638
|
"bold",
|
|
639
639
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z" }))
|
|
@@ -664,7 +664,7 @@ const $a = /* @__PURE__ */ new Map([
|
|
|
664
664
|
"thin",
|
|
665
665
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z" }))
|
|
666
666
|
]
|
|
667
|
-
]),
|
|
667
|
+
]), Xa = /* @__PURE__ */ new Map([
|
|
668
668
|
[
|
|
669
669
|
"bold",
|
|
670
670
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z" }))
|
|
@@ -689,65 +689,65 @@ const $a = /* @__PURE__ */ new Map([
|
|
|
689
689
|
"thin",
|
|
690
690
|
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z" }))
|
|
691
691
|
]
|
|
692
|
-
]),
|
|
692
|
+
]), Ka = xa({
|
|
693
693
|
color: "currentColor",
|
|
694
694
|
size: "1em",
|
|
695
695
|
weight: "regular",
|
|
696
696
|
mirrored: !1
|
|
697
|
-
}),
|
|
698
|
-
(
|
|
697
|
+
}), se = a.forwardRef(
|
|
698
|
+
(o, t) => {
|
|
699
699
|
const {
|
|
700
|
-
alt:
|
|
700
|
+
alt: c,
|
|
701
701
|
color: i,
|
|
702
|
-
size:
|
|
703
|
-
weight:
|
|
702
|
+
size: u,
|
|
703
|
+
weight: h,
|
|
704
704
|
mirrored: p,
|
|
705
|
-
children:
|
|
706
|
-
weights:
|
|
707
|
-
...
|
|
708
|
-
} =
|
|
709
|
-
color:
|
|
705
|
+
children: m,
|
|
706
|
+
weights: w,
|
|
707
|
+
...r
|
|
708
|
+
} = o, {
|
|
709
|
+
color: f = "currentColor",
|
|
710
710
|
size: b,
|
|
711
711
|
weight: N = "regular",
|
|
712
|
-
mirrored:
|
|
713
|
-
...
|
|
714
|
-
} = a.useContext(
|
|
712
|
+
mirrored: T = !1,
|
|
713
|
+
...v
|
|
714
|
+
} = a.useContext(Ka);
|
|
715
715
|
return /* @__PURE__ */ a.createElement(
|
|
716
716
|
"svg",
|
|
717
717
|
{
|
|
718
718
|
ref: t,
|
|
719
719
|
xmlns: "http://www.w3.org/2000/svg",
|
|
720
|
-
width:
|
|
721
|
-
height:
|
|
722
|
-
fill: i ??
|
|
720
|
+
width: u ?? b,
|
|
721
|
+
height: u ?? b,
|
|
722
|
+
fill: i ?? f,
|
|
723
723
|
viewBox: "0 0 256 256",
|
|
724
|
-
transform: p ||
|
|
725
|
-
...
|
|
726
|
-
...
|
|
724
|
+
transform: p || T ? "scale(-1, 1)" : void 0,
|
|
725
|
+
...v,
|
|
726
|
+
...r
|
|
727
727
|
},
|
|
728
|
-
!!
|
|
729
|
-
|
|
730
|
-
|
|
728
|
+
!!c && /* @__PURE__ */ a.createElement("title", null, c),
|
|
729
|
+
m,
|
|
730
|
+
w.get(h ?? N)
|
|
731
731
|
);
|
|
732
732
|
}
|
|
733
733
|
);
|
|
734
|
-
|
|
735
|
-
const
|
|
736
|
-
|
|
737
|
-
const
|
|
738
|
-
|
|
739
|
-
const
|
|
740
|
-
|
|
741
|
-
const oa = a.forwardRef((
|
|
734
|
+
se.displayName = "IconBase";
|
|
735
|
+
const ea = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(se, { ref: t, ...o, weights: Wa }));
|
|
736
|
+
ea.displayName = "ArrowLeftIcon";
|
|
737
|
+
const ta = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(se, { ref: t, ...o, weights: $a }));
|
|
738
|
+
ta.displayName = "ArrowsClockwiseIcon";
|
|
739
|
+
const aa = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(se, { ref: t, ...o, weights: Ga }));
|
|
740
|
+
aa.displayName = "CarIcon";
|
|
741
|
+
const oa = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(se, { ref: t, ...o, weights: Ya }));
|
|
742
742
|
oa.displayName = "CircleNotchIcon";
|
|
743
|
-
const na = a.forwardRef((
|
|
743
|
+
const na = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(se, { ref: t, ...o, weights: qa }));
|
|
744
744
|
na.displayName = "XIcon";
|
|
745
|
-
const
|
|
746
|
-
|
|
747
|
-
function
|
|
748
|
-
return
|
|
745
|
+
const ra = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(se, { ref: t, ...o, weights: Xa }));
|
|
746
|
+
ra.displayName = "XCircleIcon";
|
|
747
|
+
function ia(o) {
|
|
748
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
749
749
|
}
|
|
750
|
-
var
|
|
750
|
+
var la = { exports: {} };
|
|
751
751
|
/*!
|
|
752
752
|
* JavaScript Cookie v2.2.1
|
|
753
753
|
* https://github.com/js-cookie/js-cookie
|
|
@@ -755,154 +755,154 @@ var ca = { exports: {} };
|
|
|
755
755
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
756
756
|
* Released under the MIT license
|
|
757
757
|
*/
|
|
758
|
-
(function(
|
|
759
|
-
(function(
|
|
758
|
+
(function(o, t) {
|
|
759
|
+
(function(c) {
|
|
760
760
|
var i;
|
|
761
|
-
if (
|
|
762
|
-
var
|
|
763
|
-
|
|
764
|
-
return window.Cookies =
|
|
761
|
+
if (o.exports = c(), i = !0, !i) {
|
|
762
|
+
var u = window.Cookies, h = window.Cookies = c();
|
|
763
|
+
h.noConflict = function() {
|
|
764
|
+
return window.Cookies = u, h;
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
767
|
})(function() {
|
|
768
|
-
function
|
|
769
|
-
for (var
|
|
770
|
-
var
|
|
771
|
-
for (var
|
|
772
|
-
p[
|
|
768
|
+
function c() {
|
|
769
|
+
for (var h = 0, p = {}; h < arguments.length; h++) {
|
|
770
|
+
var m = arguments[h];
|
|
771
|
+
for (var w in m)
|
|
772
|
+
p[w] = m[w];
|
|
773
773
|
}
|
|
774
774
|
return p;
|
|
775
775
|
}
|
|
776
|
-
function i(
|
|
777
|
-
return
|
|
776
|
+
function i(h) {
|
|
777
|
+
return h.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function u(h) {
|
|
780
780
|
function p() {
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function m(r, f, b) {
|
|
783
783
|
if (!(typeof document > "u")) {
|
|
784
|
-
b =
|
|
784
|
+
b = c({
|
|
785
785
|
path: "/"
|
|
786
786
|
}, p.defaults, b), typeof b.expires == "number" && (b.expires = new Date(/* @__PURE__ */ new Date() * 1 + b.expires * 864e5)), b.expires = b.expires ? b.expires.toUTCString() : "";
|
|
787
787
|
try {
|
|
788
|
-
var N = JSON.stringify(
|
|
789
|
-
/^[\{\[]/.test(N) && (
|
|
788
|
+
var N = JSON.stringify(f);
|
|
789
|
+
/^[\{\[]/.test(N) && (f = N);
|
|
790
790
|
} catch {
|
|
791
791
|
}
|
|
792
|
-
|
|
793
|
-
var
|
|
794
|
-
for (var
|
|
795
|
-
b[
|
|
796
|
-
return document.cookie =
|
|
792
|
+
f = h.write ? h.write(f, r) : encodeURIComponent(String(f)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), r = encodeURIComponent(String(r)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
|
|
793
|
+
var T = "";
|
|
794
|
+
for (var v in b)
|
|
795
|
+
b[v] && (T += "; " + v, b[v] !== !0 && (T += "=" + b[v].split(";")[0]));
|
|
796
|
+
return document.cookie = r + "=" + f + T;
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function w(r, f) {
|
|
800
800
|
if (!(typeof document > "u")) {
|
|
801
|
-
for (var b = {}, N = document.cookie ? document.cookie.split("; ") : [],
|
|
802
|
-
var
|
|
803
|
-
!
|
|
801
|
+
for (var b = {}, N = document.cookie ? document.cookie.split("; ") : [], T = 0; T < N.length; T++) {
|
|
802
|
+
var v = N[T].split("="), O = v.slice(1).join("=");
|
|
803
|
+
!f && O.charAt(0) === '"' && (O = O.slice(1, -1));
|
|
804
804
|
try {
|
|
805
|
-
var I = i(
|
|
806
|
-
if (O = (
|
|
805
|
+
var I = i(v[0]);
|
|
806
|
+
if (O = (h.read || h)(O, I) || i(O), f)
|
|
807
807
|
try {
|
|
808
808
|
O = JSON.parse(O);
|
|
809
809
|
} catch {
|
|
810
810
|
}
|
|
811
|
-
if (b[I] = O,
|
|
811
|
+
if (b[I] = O, r === I)
|
|
812
812
|
break;
|
|
813
813
|
} catch {
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
return
|
|
816
|
+
return r ? b[r] : b;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
return p.set =
|
|
820
|
-
return
|
|
821
|
-
|
|
819
|
+
return p.set = m, p.get = function(r) {
|
|
820
|
+
return w(
|
|
821
|
+
r,
|
|
822
822
|
!1
|
|
823
823
|
/* read as raw */
|
|
824
824
|
);
|
|
825
|
-
}, p.getJSON = function(
|
|
826
|
-
return
|
|
827
|
-
|
|
825
|
+
}, p.getJSON = function(r) {
|
|
826
|
+
return w(
|
|
827
|
+
r,
|
|
828
828
|
!0
|
|
829
829
|
/* read as json */
|
|
830
830
|
);
|
|
831
|
-
}, p.remove = function(
|
|
832
|
-
|
|
831
|
+
}, p.remove = function(r, f) {
|
|
832
|
+
m(r, "", c(f, {
|
|
833
833
|
expires: -1
|
|
834
834
|
}));
|
|
835
|
-
}, p.defaults = {}, p.withConverter =
|
|
835
|
+
}, p.defaults = {}, p.withConverter = u, p;
|
|
836
836
|
}
|
|
837
|
-
return
|
|
837
|
+
return u(function() {
|
|
838
838
|
});
|
|
839
839
|
});
|
|
840
|
-
})(
|
|
841
|
-
var
|
|
842
|
-
const
|
|
843
|
-
var sa = { exports: {} },
|
|
844
|
-
function
|
|
840
|
+
})(la);
|
|
841
|
+
var Ja = la.exports;
|
|
842
|
+
const ct = /* @__PURE__ */ ia(Ja);
|
|
843
|
+
var sa = { exports: {} }, Qa = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", eo = Qa, to = eo;
|
|
844
|
+
function ca() {
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function da() {
|
|
847
847
|
}
|
|
848
|
-
|
|
849
|
-
var
|
|
850
|
-
function
|
|
851
|
-
if (
|
|
852
|
-
var
|
|
848
|
+
da.resetWarningCache = ca;
|
|
849
|
+
var ao = function() {
|
|
850
|
+
function o(i, u, h, p, m, w) {
|
|
851
|
+
if (w !== to) {
|
|
852
|
+
var r = new Error(
|
|
853
853
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
854
854
|
);
|
|
855
|
-
throw
|
|
855
|
+
throw r.name = "Invariant Violation", r;
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
|
-
|
|
858
|
+
o.isRequired = o;
|
|
859
859
|
function t() {
|
|
860
|
-
return
|
|
860
|
+
return o;
|
|
861
861
|
}
|
|
862
|
-
var
|
|
863
|
-
array:
|
|
864
|
-
bigint:
|
|
865
|
-
bool:
|
|
866
|
-
func:
|
|
867
|
-
number:
|
|
868
|
-
object:
|
|
869
|
-
string:
|
|
870
|
-
symbol:
|
|
871
|
-
any:
|
|
862
|
+
var c = {
|
|
863
|
+
array: o,
|
|
864
|
+
bigint: o,
|
|
865
|
+
bool: o,
|
|
866
|
+
func: o,
|
|
867
|
+
number: o,
|
|
868
|
+
object: o,
|
|
869
|
+
string: o,
|
|
870
|
+
symbol: o,
|
|
871
|
+
any: o,
|
|
872
872
|
arrayOf: t,
|
|
873
|
-
element:
|
|
874
|
-
elementType:
|
|
873
|
+
element: o,
|
|
874
|
+
elementType: o,
|
|
875
875
|
instanceOf: t,
|
|
876
|
-
node:
|
|
876
|
+
node: o,
|
|
877
877
|
objectOf: t,
|
|
878
878
|
oneOf: t,
|
|
879
879
|
oneOfType: t,
|
|
880
880
|
shape: t,
|
|
881
881
|
exact: t,
|
|
882
|
-
checkPropTypes:
|
|
883
|
-
resetWarningCache:
|
|
882
|
+
checkPropTypes: da,
|
|
883
|
+
resetWarningCache: ca
|
|
884
884
|
};
|
|
885
|
-
return
|
|
885
|
+
return c.PropTypes = c, c;
|
|
886
886
|
};
|
|
887
|
-
sa.exports =
|
|
888
|
-
var
|
|
889
|
-
const H = /* @__PURE__ */
|
|
890
|
-
function
|
|
887
|
+
sa.exports = ao();
|
|
888
|
+
var oo = sa.exports;
|
|
889
|
+
const H = /* @__PURE__ */ ia(oo);
|
|
890
|
+
function ma({ error: o }) {
|
|
891
891
|
return /* @__PURE__ */ React.createElement("div", { className: "rounded-md bg-red-50 p-4" }, /* @__PURE__ */ React.createElement("div", { className: "flex justify-center items-center" }, /* @__PURE__ */ React.createElement("div", { className: "flex-shrink-0" }, /* @__PURE__ */ React.createElement(
|
|
892
|
-
|
|
892
|
+
ra,
|
|
893
893
|
{
|
|
894
894
|
size: 20,
|
|
895
895
|
weight: "bold",
|
|
896
896
|
className: "text-red-400",
|
|
897
897
|
"aria-hidden": "true"
|
|
898
898
|
}
|
|
899
|
-
)), /* @__PURE__ */ React.createElement("div", { className: "ml-3" }, /* @__PURE__ */ React.createElement("h3", { className: "text-sm font-medium text-red-800" },
|
|
899
|
+
)), /* @__PURE__ */ React.createElement("div", { className: "ml-3" }, /* @__PURE__ */ React.createElement("h3", { className: "text-sm font-medium text-red-800" }, o))));
|
|
900
900
|
}
|
|
901
|
-
|
|
901
|
+
ma.propTypes = {
|
|
902
902
|
error: H.string.isRequired
|
|
903
903
|
};
|
|
904
|
-
function
|
|
905
|
-
return /* @__PURE__ */ React.createElement("span", { className:
|
|
904
|
+
function no({ className: o, alt: t = "Partbot Logo" }) {
|
|
905
|
+
return /* @__PURE__ */ React.createElement("span", { className: o, role: "img", "aria-label": t }, /* @__PURE__ */ React.createElement(
|
|
906
906
|
"svg",
|
|
907
907
|
{
|
|
908
908
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -981,78 +981,91 @@ function nr({ className: r, alt: t = "Partbot Logo" }) {
|
|
|
981
981
|
))
|
|
982
982
|
));
|
|
983
983
|
}
|
|
984
|
-
const
|
|
985
|
-
version:
|
|
986
|
-
},
|
|
987
|
-
function
|
|
988
|
-
const [t,
|
|
989
|
-
|
|
984
|
+
const ro = "3.1.5", ht = {
|
|
985
|
+
version: ro
|
|
986
|
+
}, jt = ["ACT", "NSW", "NT", "QLD", "SA", "TAS", "VIC", "WA"], Bt = "https://api.partbot.io/v1/vehicles/plate-search", Wt = "https://api.partbot.io/v1/vehicles/plate-search-retry";
|
|
987
|
+
function ut(o) {
|
|
988
|
+
const [t, c] = Y(!1), [i, u] = Y(!1), [h, p] = Y(""), [m, w] = Y(""), [r, f] = Y(null), [b, N] = Y(!1), T = Me(null), [v, O] = Y(Bt), [I, q] = Y(null), We = o.apiKey, ee = o.callbackUrl, k = o.productsUrl, te = o.useGeolocation === "true", ce = o.themeColor || "#4f46e5", $e = o.buttonTheme || "light", be = o.responsive !== void 0 ? o.responsive : !0, Ge = o.intro || "Enter your Number Plate and select your State or Territory to find your vehicle.", Ne = o.placeholder || "PL8SRCH", L = o.supportMessage, ae = o.isOpen !== void 0, re = o.isOpen, de = o.onOpenChange, Ye = o.hideDefaultButton || !1, Oe = o.onModalClose, qe = o.autoCloseOnSelect || !1, Ie = o.actionButtonLabel || "Show Products", V = ae ? re : t;
|
|
989
|
+
j(() => {
|
|
990
|
+
console.log(
|
|
991
|
+
"[PlateSearch] Controlled:",
|
|
992
|
+
ae,
|
|
993
|
+
"isOpenProp:",
|
|
994
|
+
re,
|
|
995
|
+
"actualOpen:",
|
|
996
|
+
V,
|
|
997
|
+
"internal open state:",
|
|
998
|
+
t
|
|
999
|
+
);
|
|
1000
|
+
}, [ae, re, V, t]);
|
|
1001
|
+
const ve = (l) => {
|
|
1002
|
+
ae || c(l), de && de(l);
|
|
990
1003
|
}, _ = () => {
|
|
991
|
-
|
|
992
|
-
const
|
|
1004
|
+
ve(!1);
|
|
1005
|
+
const l = new CustomEvent("plate-search-modal-close", {
|
|
993
1006
|
detail: { timestamp: Date.now() }
|
|
994
1007
|
});
|
|
995
|
-
document.dispatchEvent(
|
|
1008
|
+
document.dispatchEvent(l), Oe && Oe();
|
|
996
1009
|
};
|
|
997
|
-
|
|
1010
|
+
j(() => {
|
|
998
1011
|
console.info(
|
|
999
|
-
`Vehicle Registration Search (v${
|
|
1012
|
+
`Vehicle Registration Search (v${ht.version}) powered by Partbot https://use.partbot.io`
|
|
1000
1013
|
);
|
|
1001
|
-
}, []),
|
|
1002
|
-
const
|
|
1014
|
+
}, []), j(() => {
|
|
1015
|
+
const l = localStorage.getItem(
|
|
1003
1016
|
"partbot_selected_vehicle"
|
|
1004
1017
|
);
|
|
1005
|
-
if (
|
|
1006
|
-
const x = JSON.parse(
|
|
1018
|
+
if (l) {
|
|
1019
|
+
const x = JSON.parse(l);
|
|
1007
1020
|
x.description && (x.vehicle_ids.length > 0 || Object.values(x.vehicle).every(
|
|
1008
1021
|
(y) => y !== null && y !== "" && (typeof y != "object" || Object.keys(y).length > 0)
|
|
1009
|
-
)) &&
|
|
1022
|
+
)) && q(x);
|
|
1010
1023
|
}
|
|
1011
|
-
}, []),
|
|
1024
|
+
}, []), j(() => {
|
|
1012
1025
|
document.documentElement.style.setProperty("--partbot-theme", ce);
|
|
1013
|
-
}, [ce]),
|
|
1014
|
-
t && te && "geolocation" in navigator && navigator.geolocation.getCurrentPosition(async function(
|
|
1015
|
-
const { latitude: x, longitude: y } =
|
|
1026
|
+
}, [ce]), j(() => {
|
|
1027
|
+
t && te && "geolocation" in navigator && navigator.geolocation.getCurrentPosition(async function(l) {
|
|
1028
|
+
const { latitude: x, longitude: y } = l.coords;
|
|
1016
1029
|
try {
|
|
1017
|
-
const
|
|
1030
|
+
const ne = await (await fetch(
|
|
1018
1031
|
`https://maps.googleapis.com/maps/api/geocode/json?latlng=${x},${y}&key=AIzaSyDAdDL5E8iWK_oc0FLqdW-QAhZo84xIX0k`
|
|
1019
1032
|
)).json();
|
|
1020
|
-
if (
|
|
1021
|
-
const $ =
|
|
1022
|
-
(
|
|
1033
|
+
if (ne.results && ne.results[0]) {
|
|
1034
|
+
const $ = ne.results[0].address_components.find(
|
|
1035
|
+
(ie) => ie.types.includes("administrative_area_level_1")
|
|
1023
1036
|
);
|
|
1024
1037
|
if ($) {
|
|
1025
|
-
const
|
|
1026
|
-
|
|
1038
|
+
const ie = $.short_name;
|
|
1039
|
+
w(ie);
|
|
1027
1040
|
}
|
|
1028
1041
|
}
|
|
1029
1042
|
} catch (E) {
|
|
1030
1043
|
console.error("Geocoding error:", E);
|
|
1031
1044
|
}
|
|
1032
1045
|
});
|
|
1033
|
-
}, [te, t]),
|
|
1034
|
-
let
|
|
1035
|
-
|
|
1036
|
-
}, []),
|
|
1037
|
-
|
|
1038
|
-
}, [
|
|
1039
|
-
if (
|
|
1040
|
-
const
|
|
1046
|
+
}, [te, t]), j(() => {
|
|
1047
|
+
let l = localStorage.getItem("partbot_plate_details");
|
|
1048
|
+
l && (l = JSON.parse(l), l.plate ? p(l.plate.number) : localStorage.removeItem("partbot_plate_details"));
|
|
1049
|
+
}, []), j(() => {
|
|
1050
|
+
V && !i && u(!0), V && T.current && T.current.focus();
|
|
1051
|
+
}, [V, i]), j(() => {
|
|
1052
|
+
if (V) {
|
|
1053
|
+
const l = document.documentElement.style.overflow, x = document.documentElement.style.paddingRight, y = window.innerWidth - document.documentElement.clientWidth;
|
|
1041
1054
|
return y > 0 && (document.documentElement.style.paddingRight = `${y}px`), document.documentElement.style.overflow = "hidden", () => {
|
|
1042
|
-
document.documentElement.style.overflow =
|
|
1055
|
+
document.documentElement.style.overflow = l, document.documentElement.style.paddingRight = x;
|
|
1043
1056
|
};
|
|
1044
1057
|
}
|
|
1045
|
-
}, [
|
|
1046
|
-
const
|
|
1047
|
-
if (
|
|
1058
|
+
}, [V]);
|
|
1059
|
+
const xe = (l) => {
|
|
1060
|
+
if (l && l.preventDefault(), !m || !h)
|
|
1048
1061
|
return;
|
|
1049
1062
|
N(!0);
|
|
1050
1063
|
const x = {
|
|
1051
|
-
plate:
|
|
1052
|
-
state:
|
|
1064
|
+
plate: h,
|
|
1065
|
+
state: m
|
|
1053
1066
|
};
|
|
1054
1067
|
async function y() {
|
|
1055
|
-
return (await fetch(
|
|
1068
|
+
return (await fetch(v, {
|
|
1056
1069
|
method: "POST",
|
|
1057
1070
|
mode: "cors",
|
|
1058
1071
|
// no-cors, *cors, same-origin
|
|
@@ -1062,7 +1075,7 @@ function ie(r) {
|
|
|
1062
1075
|
// include, *same-origin, omit
|
|
1063
1076
|
headers: {
|
|
1064
1077
|
"Content-Type": "application/json",
|
|
1065
|
-
Authorization: `Basic ${
|
|
1078
|
+
Authorization: `Basic ${We}`
|
|
1066
1079
|
},
|
|
1067
1080
|
redirect: "follow",
|
|
1068
1081
|
// manual, *follow, error
|
|
@@ -1072,48 +1085,48 @@ function ie(r) {
|
|
|
1072
1085
|
})).json();
|
|
1073
1086
|
}
|
|
1074
1087
|
y().then((E) => {
|
|
1075
|
-
N(!1), E.plate ? (localStorage.setItem("partbot_plate_details", JSON.stringify(E)),
|
|
1088
|
+
N(!1), E.plate ? (localStorage.setItem("partbot_plate_details", JSON.stringify(E)), f(E)) : E && E.indexOf("Invalid API Key") !== -1 ? f({ error: E }) : f({ error: "Could not find any matching vehicles." });
|
|
1076
1089
|
}).catch((E) => {
|
|
1077
|
-
console.error("Error:", E),
|
|
1090
|
+
console.error("Error:", E), f({ error: "Could not find any matching vehicles." });
|
|
1078
1091
|
});
|
|
1079
1092
|
};
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}, [
|
|
1083
|
-
const S = (
|
|
1084
|
-
localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"),
|
|
1085
|
-
},
|
|
1093
|
+
j(() => {
|
|
1094
|
+
xe();
|
|
1095
|
+
}, [v]);
|
|
1096
|
+
const S = (l) => {
|
|
1097
|
+
localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"), ct.remove("partbot_selected_vehicle"), f(null), O(Wt);
|
|
1098
|
+
}, He = (l) => {
|
|
1086
1099
|
window.open(
|
|
1087
1100
|
`mailto:report@partbot.io?subject=${encodeURIComponent(
|
|
1088
1101
|
"Registration Search Issue"
|
|
1089
1102
|
)}&body=${encodeURIComponent(
|
|
1090
|
-
`Incorrect vehicles were shown for ${
|
|
1103
|
+
`Incorrect vehicles were shown for ${m} number plate: ${h}, vehicle: ${r.factory_vehicle.make} ${r.factory_vehicle.model} ${r.factory_vehicle.year} ${r.factory_vehicle.body} ${r.factory_vehicle.series}. Please provide details of the correct vehicle below:`
|
|
1091
1104
|
)}`
|
|
1092
1105
|
);
|
|
1093
|
-
}, A = (
|
|
1094
|
-
p(""),
|
|
1095
|
-
},
|
|
1106
|
+
}, A = (l) => {
|
|
1107
|
+
p(""), f(null), O(Bt), q(null), localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"), ct.remove("partbot_selected_vehicle");
|
|
1108
|
+
}, oe = (l) => {
|
|
1096
1109
|
var x = JSON.stringify({
|
|
1097
|
-
description:
|
|
1098
|
-
vehicle_ids:
|
|
1110
|
+
description: l.description,
|
|
1111
|
+
vehicle_ids: l.vehicle_ids,
|
|
1099
1112
|
vehicle: {
|
|
1100
|
-
...
|
|
1101
|
-
year:
|
|
1113
|
+
...l.vehicle,
|
|
1114
|
+
year: r.factory_vehicle.year
|
|
1102
1115
|
}
|
|
1103
1116
|
});
|
|
1104
|
-
localStorage.setItem("partbot_selected_vehicle", x),
|
|
1117
|
+
localStorage.setItem("partbot_selected_vehicle", x), ct.set("partbot_selected_vehicle", x, {
|
|
1105
1118
|
secure: !0
|
|
1106
1119
|
});
|
|
1107
1120
|
var y = new CustomEvent("plate-search-change", {
|
|
1108
1121
|
detail: {
|
|
1109
|
-
vehicle_ids:
|
|
1122
|
+
vehicle_ids: l.vehicle_ids
|
|
1110
1123
|
}
|
|
1111
1124
|
});
|
|
1112
|
-
document.dispatchEvent(y),
|
|
1113
|
-
},
|
|
1114
|
-
if (_(),
|
|
1125
|
+
document.dispatchEvent(y), q(l), qe && _(), ee && ee !== window.location.href && (_(), window.location.href = ee + window.location.search);
|
|
1126
|
+
}, ye = (l) => {
|
|
1127
|
+
if (_(), k)
|
|
1115
1128
|
try {
|
|
1116
|
-
const x = new URL(
|
|
1129
|
+
const x = new URL(k, window.location.origin);
|
|
1117
1130
|
if (x.origin !== window.location.origin) {
|
|
1118
1131
|
console.warn(
|
|
1119
1132
|
"Partbot: Blocked navigation to external productsUrl",
|
|
@@ -1125,11 +1138,11 @@ function ie(r) {
|
|
|
1125
1138
|
} catch (x) {
|
|
1126
1139
|
console.error(
|
|
1127
1140
|
"Partbot: Invalid productsUrl provided",
|
|
1128
|
-
|
|
1141
|
+
k,
|
|
1129
1142
|
x
|
|
1130
1143
|
);
|
|
1131
1144
|
}
|
|
1132
|
-
},
|
|
1145
|
+
}, Ee = (l) => {
|
|
1133
1146
|
const x = [
|
|
1134
1147
|
"series",
|
|
1135
1148
|
"variant",
|
|
@@ -1140,40 +1153,40 @@ function ie(r) {
|
|
|
1140
1153
|
"engine_capacity",
|
|
1141
1154
|
"cylinders"
|
|
1142
1155
|
];
|
|
1143
|
-
return Object.entries(
|
|
1156
|
+
return Object.entries(l).filter(([y, E]) => E !== null && x.includes(y) && typeof E != "object").map(([y, E]) => y === "cylinders" ? `${E}cyl` : E).join(" ");
|
|
1144
1157
|
};
|
|
1145
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, !
|
|
1158
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, !Ye && /* @__PURE__ */ React.createElement(
|
|
1146
1159
|
"button",
|
|
1147
1160
|
{
|
|
1148
|
-
onClick: (
|
|
1161
|
+
onClick: (l) => ve(!V),
|
|
1149
1162
|
type: "button",
|
|
1150
|
-
className: `${
|
|
1163
|
+
className: `${$e === "dark" ? "bg-transparent text-stone-100 hover:text-white" : "bg-white text-stone-700 hover:bg-stone-50"} inline-flex items-center ${be ? "px-2 md:px-3" : "px-3"} text-md focus:outline-none focus:ring-bg-theme-color h-[44px] rounded-md border-4 border-double border-stone-400 font-license text-base font-medium shadow-sm transition cursor-pointer leading-none`
|
|
1151
1164
|
},
|
|
1152
1165
|
/* @__PURE__ */ React.createElement(
|
|
1153
|
-
|
|
1166
|
+
aa,
|
|
1154
1167
|
{
|
|
1155
1168
|
weight: "fill",
|
|
1156
|
-
className:
|
|
1169
|
+
className: be ? "h-5 w-5 md:-ml-1 md:mr-2" : "mr-2 -ml-1 h-5 w-5",
|
|
1157
1170
|
"aria-hidden": "true"
|
|
1158
1171
|
}
|
|
1159
1172
|
),
|
|
1160
1173
|
/* @__PURE__ */ React.createElement(
|
|
1161
1174
|
"span",
|
|
1162
1175
|
{
|
|
1163
|
-
className:
|
|
1176
|
+
className: be ? "hidden md:inline mt-0.5" : "inline mt-0.5"
|
|
1164
1177
|
},
|
|
1165
|
-
|
|
1178
|
+
h || Ne
|
|
1166
1179
|
)
|
|
1167
1180
|
), /* @__PURE__ */ React.createElement(
|
|
1168
1181
|
"div",
|
|
1169
1182
|
{
|
|
1170
|
-
className: `${
|
|
1183
|
+
className: `${V ? "modal-container modal-container-open" : "modal-container modal-container-close"}`,
|
|
1171
1184
|
style: {
|
|
1172
1185
|
zIndex: 2147483647,
|
|
1173
|
-
...!
|
|
1186
|
+
...!V && !i ? { display: "none" } : {}
|
|
1174
1187
|
},
|
|
1175
|
-
onClick: (
|
|
1176
|
-
|
|
1188
|
+
onClick: (l) => {
|
|
1189
|
+
l.target === l.currentTarget && _();
|
|
1177
1190
|
}
|
|
1178
1191
|
},
|
|
1179
1192
|
/* @__PURE__ */ React.createElement(
|
|
@@ -1182,39 +1195,39 @@ function ie(r) {
|
|
|
1182
1195
|
role: "dialog",
|
|
1183
1196
|
"aria-modal": "true",
|
|
1184
1197
|
"aria-label": "Number plate search dialog",
|
|
1185
|
-
className:
|
|
1198
|
+
className: V ? "modal modal-open" : "modal modal-close"
|
|
1186
1199
|
},
|
|
1187
1200
|
/* @__PURE__ */ React.createElement("div", { className: "absolute top-0 right-0 pt-4 pr-4" }, /* @__PURE__ */ React.createElement(
|
|
1188
1201
|
"button",
|
|
1189
1202
|
{
|
|
1190
1203
|
type: "button",
|
|
1191
|
-
className: "focus:outline-none focus:ring-bg-theme-color rounded-md bg-white text-
|
|
1204
|
+
className: "focus:outline-none focus:ring-bg-theme-color rounded-md bg-white text-stone-400 hover:text-stone-500",
|
|
1192
1205
|
onClick: () => _()
|
|
1193
1206
|
},
|
|
1194
1207
|
/* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close"),
|
|
1195
1208
|
/* @__PURE__ */ React.createElement(na, { size: 16, weight: "bold", "aria-hidden": "true" })
|
|
1196
1209
|
)),
|
|
1197
|
-
|
|
1210
|
+
r && !I && /* @__PURE__ */ React.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React.createElement("div", { className: "mb-5 text-center" }, /* @__PURE__ */ React.createElement("div", { className: "inline-flex items-center text-center text-2xl font-extrabold tracking-tight text-black" }, /* @__PURE__ */ React.createElement("div", null, "Results for", " ", /* @__PURE__ */ React.createElement("span", { className: "text-theme-color" }, h, " (", m, ")"))), /* @__PURE__ */ React.createElement("div", { className: "mt-6" }, /* @__PURE__ */ React.createElement("div", { className: "modal-scroll-area" }, r.vehicles ? /* @__PURE__ */ React.createElement("div", { className: "grid gap-3 text-left" }, r.vehicles.map(function(l, x) {
|
|
1198
1211
|
return /* @__PURE__ */ React.createElement(
|
|
1199
1212
|
"div",
|
|
1200
1213
|
{
|
|
1201
1214
|
key: x,
|
|
1202
|
-
className: "focus:outline-none relative grid cursor-pointer gap-4 rounded-lg border border-
|
|
1215
|
+
className: "focus:outline-none relative grid cursor-pointer gap-4 rounded-lg border border-stone-300 bg-white px-4 py-4 shadow-sm hover:border-stone-400 sm:flex sm:justify-between"
|
|
1203
1216
|
},
|
|
1204
|
-
/* @__PURE__ */ React.createElement("div", { className: "pr-5 text-xs" }, /* @__PURE__ */ React.createElement("div", { className: "grid gap-2" }, /* @__PURE__ */ React.createElement("div", { className: "text-sm font-bold text-
|
|
1217
|
+
/* @__PURE__ */ React.createElement("div", { className: "pr-5 text-xs" }, /* @__PURE__ */ React.createElement("div", { className: "grid gap-2" }, /* @__PURE__ */ React.createElement("div", { className: "text-sm font-bold text-stone-900" }, l.description), /* @__PURE__ */ React.createElement("div", { className: "text-stone-600" }, Ee(l.vehicle)))),
|
|
1205
1218
|
/* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
1206
1219
|
"button",
|
|
1207
1220
|
{
|
|
1208
1221
|
className: "justify-center rounded-md border border-transparent bg-theme-color px-2 py-1.5 text-xs font-medium text-white shadow-sm",
|
|
1209
|
-
onClick: () =>
|
|
1222
|
+
onClick: () => oe(l)
|
|
1210
1223
|
},
|
|
1211
1224
|
"Select vehicle"
|
|
1212
1225
|
))
|
|
1213
1226
|
);
|
|
1214
|
-
}),
|
|
1227
|
+
}), r.differing_attributes && r.vehicle_breakdown && r.vehicle_breakdown.length > 0 && /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("details", { className: "[&_summary::-webkit-details-marker]:hidden group rounded-lg border border-stone-300 bg-white" }, /* @__PURE__ */ React.createElement("summary", { className: "flex cursor-pointer items-center justify-between px-4 py-2 text-left text-sm font-medium text-stone-900" }, /* @__PURE__ */ React.createElement("span", null, "More options..."), /* @__PURE__ */ React.createElement(
|
|
1215
1228
|
"svg",
|
|
1216
1229
|
{
|
|
1217
|
-
className: "!h-5 !w-5 text-
|
|
1230
|
+
className: "!h-5 !w-5 text-stone-500 transition duration-300 group-open:rotate-180",
|
|
1218
1231
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1219
1232
|
viewBox: "0 0 20 20",
|
|
1220
1233
|
fill: "currentColor"
|
|
@@ -1227,43 +1240,43 @@ function ie(r) {
|
|
|
1227
1240
|
clipRule: "evenodd"
|
|
1228
1241
|
}
|
|
1229
1242
|
)
|
|
1230
|
-
)), /* @__PURE__ */ React.createElement("div", { className: "border-t border-
|
|
1231
|
-
(
|
|
1243
|
+
)), /* @__PURE__ */ React.createElement("div", { className: "border-t border-stone-200 px-4 py-3" }, /* @__PURE__ */ React.createElement("div", { className: "grid gap-3" }, r.vehicle_breakdown && r.vehicle_breakdown.map(
|
|
1244
|
+
(l, x) => /* @__PURE__ */ React.createElement(
|
|
1232
1245
|
"div",
|
|
1233
1246
|
{
|
|
1234
1247
|
key: x,
|
|
1235
|
-
className: "flex items-center justify-between rounded-md border border-
|
|
1248
|
+
className: "flex items-center justify-between rounded-md border border-stone-200 p-3 text-sm"
|
|
1236
1249
|
},
|
|
1237
|
-
/* @__PURE__ */ React.createElement("div", null,
|
|
1250
|
+
/* @__PURE__ */ React.createElement("div", null, r.differing_attributes.map(
|
|
1238
1251
|
(y) => /* @__PURE__ */ React.createElement(
|
|
1239
1252
|
"div",
|
|
1240
1253
|
{
|
|
1241
1254
|
key: y,
|
|
1242
|
-
className: "text-xs text-
|
|
1255
|
+
className: "text-xs text-stone-600"
|
|
1243
1256
|
},
|
|
1244
1257
|
/* @__PURE__ */ React.createElement("span", { className: "font-medium capitalize" }, y, ":"),
|
|
1245
1258
|
" ",
|
|
1246
|
-
|
|
1259
|
+
l.vehicle[y]
|
|
1247
1260
|
)
|
|
1248
1261
|
)),
|
|
1249
1262
|
/* @__PURE__ */ React.createElement(
|
|
1250
1263
|
"button",
|
|
1251
1264
|
{
|
|
1252
|
-
onClick: () =>
|
|
1265
|
+
onClick: () => oe(l),
|
|
1253
1266
|
className: "ml-4 rounded-md bg-theme-color px-3 py-1.5 text-xs font-medium text-white hover:bg-opacity-90"
|
|
1254
1267
|
},
|
|
1255
1268
|
"Select"
|
|
1256
1269
|
)
|
|
1257
1270
|
)
|
|
1258
|
-
)))))) : /* @__PURE__ */ React.createElement("div", { className: "my-5" }, /* @__PURE__ */ React.createElement(
|
|
1271
|
+
)))))) : /* @__PURE__ */ React.createElement("div", { className: "my-5" }, /* @__PURE__ */ React.createElement(ma, { error: r.error }))), r.vehicles && r.vehicles.length > 3 && /* @__PURE__ */ React.createElement("div", { className: "pb-4 text-center text-xs text-stone-500" }, "Scroll for more..."), L && /* @__PURE__ */ React.createElement(
|
|
1259
1272
|
"div",
|
|
1260
1273
|
{
|
|
1261
|
-
className: "pl8srch-text mx-auto my-6 w-full text-sm text-
|
|
1274
|
+
className: "pl8srch-text mx-auto my-6 w-full text-sm text-stone-500",
|
|
1262
1275
|
dangerouslySetInnerHTML: {
|
|
1263
|
-
__html:
|
|
1276
|
+
__html: Vt.sanitize(L)
|
|
1264
1277
|
}
|
|
1265
1278
|
}
|
|
1266
|
-
),
|
|
1279
|
+
), v !== Wt && /* @__PURE__ */ React.createElement(
|
|
1267
1280
|
"button",
|
|
1268
1281
|
{
|
|
1269
1282
|
type: "button",
|
|
@@ -1273,7 +1286,7 @@ function ie(r) {
|
|
|
1273
1286
|
"Try Again",
|
|
1274
1287
|
" ",
|
|
1275
1288
|
/* @__PURE__ */ React.createElement(
|
|
1276
|
-
|
|
1289
|
+
ta,
|
|
1277
1290
|
{
|
|
1278
1291
|
size: 16,
|
|
1279
1292
|
weight: "bold",
|
|
@@ -1284,7 +1297,7 @@ function ie(r) {
|
|
|
1284
1297
|
), /* @__PURE__ */ React.createElement("div", { className: "align-center flex justify-between" }, /* @__PURE__ */ React.createElement(
|
|
1285
1298
|
"button",
|
|
1286
1299
|
{
|
|
1287
|
-
onClick:
|
|
1300
|
+
onClick: He,
|
|
1288
1301
|
className: "text-xs text-theme-color"
|
|
1289
1302
|
},
|
|
1290
1303
|
"Report incorrect search results"
|
|
@@ -1295,7 +1308,7 @@ function ie(r) {
|
|
|
1295
1308
|
className: "text-xs text-theme-color"
|
|
1296
1309
|
},
|
|
1297
1310
|
/* @__PURE__ */ React.createElement(
|
|
1298
|
-
|
|
1311
|
+
ea,
|
|
1299
1312
|
{
|
|
1300
1313
|
size: 12,
|
|
1301
1314
|
weight: "bold",
|
|
@@ -1305,33 +1318,33 @@ function ie(r) {
|
|
|
1305
1318
|
" ",
|
|
1306
1319
|
"Back to search"
|
|
1307
1320
|
))))),
|
|
1308
|
-
I && /* @__PURE__ */ React.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React.createElement("div", { className: "mb-5 text-center" }, /* @__PURE__ */ React.createElement("div", { className: "grid items-center" }, /* @__PURE__ */ React.createElement("div", { className: "inline-flex items-center justify-center gap-1 text-center text-2xl font-extrabold tracking-tight text-black" }, /* @__PURE__ */ React.createElement("span", null, "Selected Vehicle"),
|
|
1321
|
+
I && /* @__PURE__ */ React.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React.createElement("div", { className: "mb-5 text-center" }, /* @__PURE__ */ React.createElement("div", { className: "grid items-center" }, /* @__PURE__ */ React.createElement("div", { className: "inline-flex items-center justify-center gap-1 text-center text-2xl font-extrabold tracking-tight text-black" }, /* @__PURE__ */ React.createElement("span", null, "Selected Vehicle"), h && /* @__PURE__ */ React.createElement("span", { className: "text-theme-color" }, "(", h, ")")), /* @__PURE__ */ React.createElement("div", { className: "text-medium mt-5 text-sm text-stone-500" }, r && r.factory_vehicle ? `${r.factory_vehicle.make} ${r.factory_vehicle.model} ${r.factory_vehicle.year}` : I.description), I.vehicle && /* @__PURE__ */ React.createElement("div", { className: "mt-2 text-xs text-stone-600" }, Ee(I.vehicle))), /* @__PURE__ */ React.createElement("div", { className: "mt-6 flex gap-4" }, /* @__PURE__ */ React.createElement(
|
|
1309
1322
|
"button",
|
|
1310
1323
|
{
|
|
1311
1324
|
className: "mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",
|
|
1312
1325
|
onClick: A
|
|
1313
1326
|
},
|
|
1314
1327
|
"Clear Vehicle"
|
|
1315
|
-
),
|
|
1328
|
+
), k && /* @__PURE__ */ React.createElement(
|
|
1316
1329
|
"button",
|
|
1317
1330
|
{
|
|
1318
1331
|
className: "mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",
|
|
1319
|
-
onClick:
|
|
1332
|
+
onClick: ye
|
|
1320
1333
|
},
|
|
1321
|
-
|
|
1334
|
+
Ie
|
|
1322
1335
|
)))),
|
|
1323
|
-
!I && !
|
|
1336
|
+
!I && !r && /* @__PURE__ */ React.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React.createElement("div", { className: "mb-5 text-center" }, /* @__PURE__ */ React.createElement("div", { className: "inline-flex items-center text-2xl font-extrabold tracking-tight text-black" }, /* @__PURE__ */ React.createElement("span", null, "Number Plate Search")), /* @__PURE__ */ React.createElement(
|
|
1324
1337
|
"div",
|
|
1325
1338
|
{
|
|
1326
|
-
className: "[&>a]:text-theme-color hover:[&>a]:text-theme-color pl8srch-text text-balance mx-auto mt-3 mb-4 max-w-sm text-sm text-
|
|
1339
|
+
className: "[&>a]:text-theme-color hover:[&>a]:text-theme-color pl8srch-text text-balance mx-auto mt-3 mb-4 max-w-sm text-sm text-stone-500 whitespace-normal!",
|
|
1327
1340
|
dangerouslySetInnerHTML: {
|
|
1328
|
-
__html:
|
|
1341
|
+
__html: Vt.sanitize(Ge)
|
|
1329
1342
|
}
|
|
1330
1343
|
}
|
|
1331
1344
|
)), /* @__PURE__ */ React.createElement(
|
|
1332
1345
|
"form",
|
|
1333
1346
|
{
|
|
1334
|
-
onSubmit:
|
|
1347
|
+
onSubmit: xe,
|
|
1335
1348
|
className: "flex flex-col items-center text-black"
|
|
1336
1349
|
},
|
|
1337
1350
|
/* @__PURE__ */ React.createElement(
|
|
@@ -1339,42 +1352,42 @@ function ie(r) {
|
|
|
1339
1352
|
{
|
|
1340
1353
|
type: "text",
|
|
1341
1354
|
name: "plate",
|
|
1342
|
-
ref:
|
|
1343
|
-
className: `pl8srch-input h-[130px] w-full rounded-xl border-[6px] px-6 pt-5 pb-2 text-center font-license text-[60px] uppercase md:h-[150px] md:border-8 md:text-[75px] focus:outline-none focus:ring-bg-theme-color focus:border-theme-color transition-all duration-200 ${
|
|
1344
|
-
placeholder:
|
|
1345
|
-
value:
|
|
1346
|
-
onChange: (
|
|
1355
|
+
ref: T,
|
|
1356
|
+
className: `pl8srch-input h-[130px] w-full rounded-xl border-[6px] px-6 pt-5 pb-2 text-center font-license text-[60px] uppercase md:h-[150px] md:border-8 md:text-[75px] focus:outline-none focus:ring-bg-theme-color focus:border-theme-color transition-all duration-200 ${h ? "border-theme-color" : "border-stone-300"}`,
|
|
1357
|
+
placeholder: Ne,
|
|
1358
|
+
value: h,
|
|
1359
|
+
onChange: (l) => p(l.target.value.toUpperCase())
|
|
1347
1360
|
}
|
|
1348
1361
|
),
|
|
1349
|
-
/* @__PURE__ */ React.createElement("span", { className: "relative z-0 my-5 flex w-full rounded-md items-stretch shadow-sm" },
|
|
1350
|
-
let y = "bg-white text-
|
|
1351
|
-
return
|
|
1362
|
+
/* @__PURE__ */ React.createElement("span", { className: "relative z-0 my-5 flex w-full rounded-md items-stretch shadow-sm" }, jt.map((l, x) => {
|
|
1363
|
+
let y = "bg-white text-stone-700 hover:bg-stone-50 border-stone-300";
|
|
1364
|
+
return l === m && (y = "bg-theme-color text-white hover:bg-theme-color border-theme-color"), x === 0 ? /* @__PURE__ */ React.createElement(
|
|
1352
1365
|
"button",
|
|
1353
1366
|
{
|
|
1354
|
-
key:
|
|
1355
|
-
onClick: (E) =>
|
|
1367
|
+
key: l,
|
|
1368
|
+
onClick: (E) => w(l),
|
|
1356
1369
|
type: "button",
|
|
1357
1370
|
className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative inline-flex items-center cursor-pointer rounded-l-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${y}`
|
|
1358
1371
|
},
|
|
1359
|
-
|
|
1360
|
-
) :
|
|
1372
|
+
l
|
|
1373
|
+
) : jt.length === x + 1 ? /* @__PURE__ */ React.createElement(
|
|
1361
1374
|
"button",
|
|
1362
1375
|
{
|
|
1363
|
-
key:
|
|
1364
|
-
onClick: (E) =>
|
|
1376
|
+
key: l,
|
|
1377
|
+
onClick: (E) => w(l),
|
|
1365
1378
|
type: "button",
|
|
1366
1379
|
className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer rounded-r-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${y}`
|
|
1367
1380
|
},
|
|
1368
|
-
|
|
1381
|
+
l
|
|
1369
1382
|
) : /* @__PURE__ */ React.createElement(
|
|
1370
1383
|
"button",
|
|
1371
1384
|
{
|
|
1372
|
-
key:
|
|
1373
|
-
onClick: (E) =>
|
|
1385
|
+
key: l,
|
|
1386
|
+
onClick: (E) => w(l),
|
|
1374
1387
|
type: "button",
|
|
1375
1388
|
className: `focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${y}`
|
|
1376
1389
|
},
|
|
1377
|
-
|
|
1390
|
+
l
|
|
1378
1391
|
);
|
|
1379
1392
|
})),
|
|
1380
1393
|
/* @__PURE__ */ React.createElement(
|
|
@@ -1400,15 +1413,15 @@ function ie(r) {
|
|
|
1400
1413
|
href: `https://use.partbot.io/?ref=${window.location.hostname}`,
|
|
1401
1414
|
target: "_blank",
|
|
1402
1415
|
rel: "noreferrer",
|
|
1403
|
-
className: "mx-auto inline-flex max-w-sm items-center text-center text-xs font-medium tracking-tight text-
|
|
1416
|
+
className: "mx-auto inline-flex max-w-sm items-center text-center text-xs font-medium tracking-tight text-stone-500 transition gap-2"
|
|
1404
1417
|
},
|
|
1405
1418
|
/* @__PURE__ */ React.createElement("span", null, "Powered by"),
|
|
1406
|
-
/* @__PURE__ */ React.createElement(
|
|
1419
|
+
/* @__PURE__ */ React.createElement(no, { className: "inline h-4" })
|
|
1407
1420
|
))
|
|
1408
1421
|
)
|
|
1409
1422
|
));
|
|
1410
1423
|
}
|
|
1411
|
-
|
|
1424
|
+
ut.propTypes = {
|
|
1412
1425
|
apiKey: H.string.isRequired,
|
|
1413
1426
|
callbackUrl: H.string,
|
|
1414
1427
|
productsUrl: H.string,
|
|
@@ -1426,38 +1439,38 @@ ie.propTypes = {
|
|
|
1426
1439
|
onModalClose: H.func,
|
|
1427
1440
|
autoCloseOnSelect: H.bool
|
|
1428
1441
|
};
|
|
1429
|
-
const ft = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap";/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}plate-search,plate-search *,plate-search:before,plate-search:after,plate-search::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}:host,:host *,:host:before,:host:after,:host::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}plate-search,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.modal-container{inset:calc(var(--spacing)*0);top:calc(var(--spacing)*0);z-index:9999;background-color:#00000080;justify-content:center;align-items:flex-start;width:100vw;height:100vh;display:flex;position:fixed;overflow-y:auto}@supports (color:color-mix(in lab,red,red)){.modal-container{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.modal-container{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (min-width:48rem){.modal-container{align-items:center}}.modal-container-open{pointer-events:auto;opacity:1;--tw-duration:.2s;--tw-ease:var(--ease-out);transition-duration:.2s;transition-timing-function:var(--ease-out)}.modal-container-close{pointer-events:none;opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}.modal{width:100vw;height:100vh;transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);overscroll-behavior:auto;background-color:var(--color-white);padding-inline:calc(var(--spacing)*6);padding-top:calc(var(--spacing)*8);padding-bottom:calc(var(--spacing)*8);text-align:left;vertical-align:bottom;font-family:var(--font-sans);--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));display:inline-block;overflow:hidden}@media (min-width:40rem){.modal{margin-block:calc(var(--spacing)*8);width:100%;max-width:var(--container-lg);vertical-align:middle}}@media (min-width:48rem){.modal{margin:calc(var(--spacing)*3);height:auto;max-width:var(--container-lg);border-radius:var(--radius-xl);padding-inline:calc(var(--spacing)*12)}}.modal-close{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}@media (min-width:40rem){.modal-close{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}}.modal-open{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:1;--tw-duration:.3s;--tw-ease:var(--ease-out);transition-duration:.3s;transition-timing-function:var(--ease-out)}.modal-scroll-area{margin-top:calc(var(--spacing)*3);margin-bottom:calc(var(--spacing)*3);max-height:380px;overflow:auto}.pl8srch-text a{color:var(--partbot-theme);opacity:.8;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.2s;text-decoration-line:underline;transition-duration:.2s}@media (hover:hover){.pl8srch-text a:hover{color:var(--partbot-theme);opacity:1}}}@layer utilities{.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-0{z-index:0}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.-ml-px{margin-left:-1px}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\\!h-5{height:calc(var(--spacing)*5)!important}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-\\[44px\\]{height:44px}.h-\\[130px\\]{height:130px}.h-full{height:100%}.min-h-screen{min-height:100vh}.\\!w-5{width:calc(var(--spacing)*5)!important}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:var(--container-sm)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-\\[6px\\]{border-style:var(--tw-border-style);border-width:6px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-double{--tw-border-style:double;border-style:double}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-stone-300{border-color:var(--color-stone-300)}.border-theme-color{border-color:var(--partbot-theme)}.border-transparent{border-color:#0000}.border-t-white\\/20{border-top-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-t-white\\/20{border-top-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-b-emerald-600{border-bottom-color:var(--color-emerald-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-theme-color{background-color:var(--partbot-theme)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[60px\\]{font-size:60px}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-balance{text-wrap:balance}.whitespace-normal\\!{white-space:normal!important}.whitespace-nowrap{white-space:nowrap}.text-black{color:var(--color-black)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-700{color:var(--color-emerald-700)}.text-gray-100{color:var(--color-gray-100)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-400{color:var(--color-red-400)}.text-red-800{color:var(--color-red-800)}.text-theme-color{color:var(--partbot-theme)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.group-open\\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-theme-color:hover{background-color:var(--partbot-theme)}.hover\\:text-gray-500:hover{color:var(--color-gray-500)}.hover\\:text-white:hover{color:var(--color-white)}}.focus\\:z-10:focus{z-index:10}.focus\\:border-bg-theme-color:focus,.focus\\:border-theme-color:focus{border-color:var(--partbot-theme)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-bg-theme-color:focus{--tw-ring-color:var(--partbot-theme)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\\:flex{display:flex}.sm\\:max-w-prose{max-width:65ch}.sm\\:justify-between{justify-content:space-between}.sm\\:overflow-hidden{overflow:hidden}.sm\\:px-3{padding-inline:calc(var(--spacing)*3)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\\:mt-6{margin-top:calc(var(--spacing)*6)}.md\\:mt-12{margin-top:calc(var(--spacing)*12)}.md\\:mr-2{margin-right:calc(var(--spacing)*2)}.md\\:-ml-1{margin-left:calc(var(--spacing)*-1)}.md\\:inline{display:inline}.md\\:h-\\[150px\\]{height:150px}.md\\:max-w-2xl{max-width:var(--container-2xl)}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-center{justify-content:center}.md\\:border-8{border-style:var(--tw-border-style);border-width:8px}.md\\:p-4{padding:calc(var(--spacing)*4)}.md\\:px-3{padding-inline:calc(var(--spacing)*3)}.md\\:py-12{padding-block:calc(var(--spacing)*12)}.md\\:text-center{text-align:center}.md\\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.md\\:text-\\[75px\\]{font-size:75px}}@media (min-width:64rem){.lg\\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\\:py-12{padding-block:calc(var(--spacing)*12)}.lg\\:text-8xl{font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.lg\\:leading-20{--tw-leading:calc(var(--spacing)*20);line-height:calc(var(--spacing)*20)}}.\\[\\&_summary\\:\\:-webkit-details-marker\\]\\:hidden summary::-webkit-details-marker{display:none}.\\[\\&\\>a\\]\\:text-theme-color>a{color:var(--partbot-theme)}@media (hover:hover){.hover\\:\\[\\&\\>a\\]\\:text-theme-color:hover>a{color:var(--partbot-theme)}}.font-license{font-family:var(--font-license)}}@font-face{font-family:License Plate;src:url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)format("woff2");font-weight:400;font-style:normal}:host{overflow-wrap:break-word;white-space:normal;display:block;overflow:visible}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}';
|
|
1430
|
-
function
|
|
1431
|
-
const
|
|
1432
|
-
return
|
|
1442
|
+
const pt = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap";/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}plate-search,plate-search *,plate-search:before,plate-search:after,plate-search::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}:host,:host *,:host:before,:host:after,:host::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-100:oklch(97% .001 106.424);--color-stone-200:oklch(92.3% .003 48.717);--color-stone-300:oklch(86.9% .005 56.366);--color-stone-400:oklch(70.9% .01 56.259);--color-stone-500:oklch(55.3% .013 58.071);--color-stone-600:oklch(44.4% .011 73.639);--color-stone-700:oklch(37.4% .01 67.558);--color-stone-900:oklch(21.6% .006 56.043);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}plate-search,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-100:oklch(97% .001 106.424);--color-stone-200:oklch(92.3% .003 48.717);--color-stone-300:oklch(86.9% .005 56.366);--color-stone-400:oklch(70.9% .01 56.259);--color-stone-500:oklch(55.3% .013 58.071);--color-stone-600:oklch(44.4% .011 73.639);--color-stone-700:oklch(37.4% .01 67.558);--color-stone-900:oklch(21.6% .006 56.043);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-100:oklch(97% .001 106.424);--color-stone-200:oklch(92.3% .003 48.717);--color-stone-300:oklch(86.9% .005 56.366);--color-stone-400:oklch(70.9% .01 56.259);--color-stone-500:oklch(55.3% .013 58.071);--color-stone-600:oklch(44.4% .011 73.639);--color-stone-700:oklch(37.4% .01 67.558);--color-stone-900:oklch(21.6% .006 56.043);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.modal-container{inset:calc(var(--spacing)*0);top:calc(var(--spacing)*0);z-index:9999;background-color:#00000080;justify-content:center;align-items:flex-start;width:100vw;height:100vh;display:flex;position:fixed;overflow-y:auto}@supports (color:color-mix(in lab,red,red)){.modal-container{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.modal-container{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (min-width:48rem){.modal-container{align-items:center}}.modal-container-open{pointer-events:auto;opacity:1;--tw-duration:.2s;--tw-ease:var(--ease-out);transition-duration:.2s;transition-timing-function:var(--ease-out)}.modal-container-close{pointer-events:none;opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}.modal{width:100vw;height:100vh;transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);overscroll-behavior:auto;background-color:var(--color-white);padding-inline:calc(var(--spacing)*6);padding-top:calc(var(--spacing)*8);padding-bottom:calc(var(--spacing)*8);text-align:left;vertical-align:bottom;font-family:var(--font-sans);--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));display:inline-block;overflow:hidden}@media (min-width:40rem){.modal{margin-block:calc(var(--spacing)*8);width:100%;max-width:var(--container-lg);vertical-align:middle}}@media (min-width:48rem){.modal{margin:calc(var(--spacing)*3);height:auto;max-width:var(--container-lg);border-radius:var(--radius-xl);padding-inline:calc(var(--spacing)*12)}}.modal-close{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}@media (min-width:40rem){.modal-close{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}}.modal-open{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:1;--tw-duration:.3s;--tw-ease:var(--ease-out);transition-duration:.3s;transition-timing-function:var(--ease-out)}.modal-scroll-area{margin-top:calc(var(--spacing)*3);margin-bottom:calc(var(--spacing)*3);max-height:380px;overflow:auto}.pl8srch-text a{color:var(--partbot-theme);opacity:.8;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.2s;text-decoration-line:underline;transition-duration:.2s}@media (hover:hover){.pl8srch-text a:hover{color:var(--partbot-theme);opacity:1}}}@layer utilities{.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-0{z-index:0}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.-ml-px{margin-left:-1px}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\\!h-5{height:calc(var(--spacing)*5)!important}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-\\[44px\\]{height:44px}.h-\\[130px\\]{height:130px}.h-full{height:100%}.min-h-screen{min-height:100vh}.\\!w-5{width:calc(var(--spacing)*5)!important}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:var(--container-sm)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-\\[6px\\]{border-style:var(--tw-border-style);border-width:6px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-double{--tw-border-style:double;border-style:double}.border-stone-200{border-color:var(--color-stone-200)}.border-stone-300{border-color:var(--color-stone-300)}.border-stone-400{border-color:var(--color-stone-400)}.border-theme-color{border-color:var(--partbot-theme)}.border-transparent{border-color:#0000}.border-t-white\\/20{border-top-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-t-white\\/20{border-top-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-b-emerald-600{border-bottom-color:var(--color-emerald-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-theme-color{background-color:var(--partbot-theme)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[60px\\]{font-size:60px}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-balance{text-wrap:balance}.whitespace-normal\\!{white-space:normal!important}.whitespace-nowrap{white-space:nowrap}.text-black{color:var(--color-black)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-700{color:var(--color-emerald-700)}.text-red-400{color:var(--color-red-400)}.text-red-800{color:var(--color-red-800)}.text-stone-100{color:var(--color-stone-100)}.text-stone-400{color:var(--color-stone-400)}.text-stone-500{color:var(--color-stone-500)}.text-stone-600{color:var(--color-stone-600)}.text-stone-700{color:var(--color-stone-700)}.text-stone-900{color:var(--color-stone-900)}.text-theme-color{color:var(--partbot-theme)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.group-open\\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media (hover:hover){.hover\\:border-stone-400:hover{border-color:var(--color-stone-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-stone-50:hover{background-color:var(--color-stone-50)}.hover\\:bg-theme-color:hover{background-color:var(--partbot-theme)}.hover\\:text-stone-500:hover{color:var(--color-stone-500)}.hover\\:text-white:hover{color:var(--color-white)}}.focus\\:z-10:focus{z-index:10}.focus\\:border-bg-theme-color:focus,.focus\\:border-theme-color:focus{border-color:var(--partbot-theme)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-bg-theme-color:focus{--tw-ring-color:var(--partbot-theme)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\\:flex{display:flex}.sm\\:max-w-prose{max-width:65ch}.sm\\:justify-between{justify-content:space-between}.sm\\:overflow-hidden{overflow:hidden}.sm\\:px-3{padding-inline:calc(var(--spacing)*3)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\\:mt-6{margin-top:calc(var(--spacing)*6)}.md\\:mt-12{margin-top:calc(var(--spacing)*12)}.md\\:mr-2{margin-right:calc(var(--spacing)*2)}.md\\:-ml-1{margin-left:calc(var(--spacing)*-1)}.md\\:inline{display:inline}.md\\:h-\\[150px\\]{height:150px}.md\\:max-w-2xl{max-width:var(--container-2xl)}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-center{justify-content:center}.md\\:border-8{border-style:var(--tw-border-style);border-width:8px}.md\\:p-4{padding:calc(var(--spacing)*4)}.md\\:px-3{padding-inline:calc(var(--spacing)*3)}.md\\:py-12{padding-block:calc(var(--spacing)*12)}.md\\:text-center{text-align:center}.md\\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.md\\:text-\\[75px\\]{font-size:75px}}@media (min-width:64rem){.lg\\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\\:py-12{padding-block:calc(var(--spacing)*12)}.lg\\:text-8xl{font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.lg\\:leading-20{--tw-leading:calc(var(--spacing)*20);line-height:calc(var(--spacing)*20)}}.\\[\\&_summary\\:\\:-webkit-details-marker\\]\\:hidden summary::-webkit-details-marker{display:none}.\\[\\&\\>a\\]\\:text-theme-color>a{color:var(--partbot-theme)}@media (hover:hover){.hover\\:\\[\\&\\>a\\]\\:text-theme-color:hover>a{color:var(--partbot-theme)}}.font-license{font-family:var(--font-license)}}@font-face{font-family:License Plate;src:url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)format("woff2");font-weight:400;font-style:normal}:host{overflow-wrap:break-word;white-space:normal;display:block;overflow:visible}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}';
|
|
1443
|
+
function io({ domElement: o, webComponentInstance: t }) {
|
|
1444
|
+
const c = o.getAttribute("data-api-key"), i = o.getAttribute("data-callback-url"), u = o.getAttribute("data-products-url"), h = o.getAttribute("data-theme-color"), p = o.getAttribute("data-use-geolocation") === "true", m = o.getAttribute("data-button"), w = o.getAttribute("data-responsive") ? o.getAttribute("data-responsive") === "true" : !0, r = o.getAttribute("data-placeholder"), f = o.getAttribute("data-intro"), b = o.getAttribute("data-support-message"), N = o.getAttribute("data-action-button-label"), T = o.getAttribute("data-hide-default-button") === "true", v = o.getAttribute("data-auto-close-on-select") === "true", [O, I] = Y(!1);
|
|
1445
|
+
return j(() => {
|
|
1433
1446
|
t && (t._modalControls = {
|
|
1434
1447
|
open: () => I(!0),
|
|
1435
1448
|
close: () => I(!1),
|
|
1436
|
-
toggle: () => I((
|
|
1449
|
+
toggle: () => I((q) => !q)
|
|
1437
1450
|
});
|
|
1438
1451
|
}, [t]), /* @__PURE__ */ React.createElement("div", { className: "App" }, /* @__PURE__ */ React.createElement(
|
|
1439
|
-
|
|
1452
|
+
ut,
|
|
1440
1453
|
{
|
|
1441
1454
|
className: "partbot",
|
|
1442
|
-
apiKey:
|
|
1455
|
+
apiKey: c,
|
|
1443
1456
|
callbackUrl: i,
|
|
1444
|
-
productsUrl:
|
|
1445
|
-
themeColor:
|
|
1457
|
+
productsUrl: u,
|
|
1458
|
+
themeColor: h,
|
|
1446
1459
|
useGeolocation: p,
|
|
1447
|
-
buttonTheme:
|
|
1448
|
-
responsive:
|
|
1449
|
-
placeholder:
|
|
1450
|
-
intro:
|
|
1460
|
+
buttonTheme: m,
|
|
1461
|
+
responsive: w,
|
|
1462
|
+
placeholder: r,
|
|
1463
|
+
intro: f,
|
|
1451
1464
|
supportMessage: b,
|
|
1452
1465
|
actionButtonLabel: N,
|
|
1453
|
-
hideDefaultButton:
|
|
1454
|
-
autoCloseOnSelect:
|
|
1466
|
+
hideDefaultButton: T,
|
|
1467
|
+
autoCloseOnSelect: v,
|
|
1455
1468
|
isOpen: O,
|
|
1456
1469
|
onOpenChange: I
|
|
1457
1470
|
}
|
|
1458
1471
|
));
|
|
1459
1472
|
}
|
|
1460
|
-
class
|
|
1473
|
+
class we extends HTMLElement {
|
|
1461
1474
|
constructor() {
|
|
1462
1475
|
super(), this.apiKey = this.dataset.apiKey, this.callbackUrl = this.dataset.callbackUrl, this.productsUrl = this.dataset.productsUrl, this.themeColor = this.dataset.themeColor, this.useGeolocation = this.dataset.useGeolocation, this.debug = this.dataset.debug === "true", this.assetUrl = this.dataset.assetUrl, this.buttonTheme = this.dataset.button, this.responsive = this.dataset.responsive ? this.dataset.responsive === "true" : !0, this.placeholder = this.dataset.placeholder, this.intro = this.dataset.intro, this.supportMessage = this.dataset.supportMessage, this.actionButtonLabel = this.dataset.actionButtonLabel, this.hideDefaultButton = this.dataset.hideDefaultButton === "true", this.autoCloseOnSelect = this.dataset.autoCloseOnSelect === "true";
|
|
1463
1476
|
}
|
|
@@ -1469,14 +1482,14 @@ class be extends HTMLElement {
|
|
|
1469
1482
|
this.assetUrl.replace(/\/$/, "") + "/css/plate-search.css",
|
|
1470
1483
|
window.location.href
|
|
1471
1484
|
)), !t) {
|
|
1472
|
-
let
|
|
1485
|
+
let m = "latest";
|
|
1473
1486
|
try {
|
|
1474
|
-
const
|
|
1475
|
-
|
|
1487
|
+
const r = (((p = document.currentScript) == null ? void 0 : p.src) || "").match(/plate-search@([^/]+)/);
|
|
1488
|
+
r && r[1] && (m = r[1]);
|
|
1476
1489
|
} catch {
|
|
1477
1490
|
}
|
|
1478
|
-
|
|
1479
|
-
`https://unpkg.com/@cartbot/plate-search@${
|
|
1491
|
+
m === "latest" && ht.version && (m = ht.version), t = new URL(
|
|
1492
|
+
`https://unpkg.com/@cartbot/plate-search@${m}/build/dist/css/plate-search.css`
|
|
1480
1493
|
);
|
|
1481
1494
|
}
|
|
1482
1495
|
const i = [
|
|
@@ -1493,56 +1506,56 @@ class be extends HTMLElement {
|
|
|
1493
1506
|
["data-action-button-label", this.actionButtonLabel],
|
|
1494
1507
|
["data-hide-default-button", this.hideDefaultButton],
|
|
1495
1508
|
["data-auto-close-on-select", this.autoCloseOnSelect]
|
|
1496
|
-
].filter(([
|
|
1497
|
-
if (!/@import/i.test(
|
|
1509
|
+
].filter(([m, w]) => w != null).map(([m, w]) => `${m}="${w}"`).join(" "), u = (m, w) => {
|
|
1510
|
+
if (!/@import/i.test(m) && "adoptedStyleSheets" in Document.prototype)
|
|
1498
1511
|
try {
|
|
1499
1512
|
const b = new CSSStyleSheet();
|
|
1500
|
-
return b.replaceSync(
|
|
1513
|
+
return b.replaceSync(m), console.info(`Partbot: using constructable stylesheet (${w})`), b;
|
|
1501
1514
|
} catch (b) {
|
|
1502
1515
|
console.warn("Partbot: constructable sheet failed, falling back", b);
|
|
1503
1516
|
}
|
|
1504
|
-
const
|
|
1505
|
-
return
|
|
1506
|
-
`Partbot: using <style> element fallback (${
|
|
1507
|
-
|
|
1508
|
-
),
|
|
1517
|
+
const f = document.createElement("style");
|
|
1518
|
+
return f.textContent = m, this.debug && console.info(
|
|
1519
|
+
`Partbot: using <style> element fallback (${w})`,
|
|
1520
|
+
f.textContent
|
|
1521
|
+
), f;
|
|
1509
1522
|
};
|
|
1510
|
-
|
|
1511
|
-
if (!
|
|
1512
|
-
return
|
|
1513
|
-
}).then((
|
|
1523
|
+
we.__stylePromise || (t ? we.__stylePromise = fetch(t).then((m) => {
|
|
1524
|
+
if (!m.ok) throw new Error(`HTTP ${m.status}`);
|
|
1525
|
+
return m.text();
|
|
1526
|
+
}).then((m) => u(m, t.href)).catch((m) => (console.warn(
|
|
1514
1527
|
"Partbot: external stylesheet failed, falling back to inline",
|
|
1515
|
-
|
|
1516
|
-
),
|
|
1517
|
-
|
|
1528
|
+
m
|
|
1529
|
+
), u(pt, "inline-fallback"))) : we.__stylePromise = Promise.resolve(
|
|
1530
|
+
u(pt, "inline")
|
|
1518
1531
|
));
|
|
1519
|
-
const
|
|
1520
|
-
if (
|
|
1521
|
-
<div class="partbot-plate-search isolate" ${i}></div>`, this.attachShadow({ mode: "open" }),
|
|
1522
|
-
var
|
|
1523
|
-
if (
|
|
1524
|
-
if (
|
|
1532
|
+
const h = document.createElement("template");
|
|
1533
|
+
if (h.innerHTML = `
|
|
1534
|
+
<div class="partbot-plate-search isolate" ${i}></div>`, this.attachShadow({ mode: "open" }), we.__stylePromise.then((m) => {
|
|
1535
|
+
var w, r;
|
|
1536
|
+
if (m) {
|
|
1537
|
+
if (m instanceof CSSStyleSheet ? this.shadowRoot.adoptedStyleSheets = [m] : m instanceof HTMLStyleElement && this.shadowRoot.prepend(m.cloneNode(!0)), this.debug)
|
|
1525
1538
|
try {
|
|
1526
|
-
const
|
|
1527
|
-
|
|
1539
|
+
const f = (w = this.shadowRoot.adoptedStyleSheets) == null ? void 0 : w[0];
|
|
1540
|
+
f && console.info(
|
|
1528
1541
|
"Partbot debug: first rule in adopted sheet →",
|
|
1529
|
-
(
|
|
1542
|
+
(r = f.cssRules[0]) == null ? void 0 : r.cssText
|
|
1530
1543
|
);
|
|
1531
1544
|
const b = getComputedStyle(this).getPropertyValue("--tw-border-style");
|
|
1532
1545
|
console.info(
|
|
1533
1546
|
"Partbot debug: --tw-border-style on :host →",
|
|
1534
1547
|
b
|
|
1535
1548
|
);
|
|
1536
|
-
} catch (
|
|
1537
|
-
console.warn("Partbot debug: failed to inspect stylesheet",
|
|
1549
|
+
} catch (f) {
|
|
1550
|
+
console.warn("Partbot debug: failed to inspect stylesheet", f);
|
|
1538
1551
|
}
|
|
1539
1552
|
requestAnimationFrame(() => {
|
|
1540
1553
|
this.style.visibility = "visible";
|
|
1541
1554
|
});
|
|
1542
1555
|
}
|
|
1543
|
-
}), this.shadowRoot.appendChild(
|
|
1544
|
-
const
|
|
1545
|
-
|
|
1556
|
+
}), this.shadowRoot.appendChild(h.content.cloneNode(!0)), !document.head.querySelector("style[data-partbot-license]")) {
|
|
1557
|
+
const m = document.createElement("style");
|
|
1558
|
+
m.setAttribute("data-partbot-license", ""), m.appendChild(
|
|
1546
1559
|
document.createTextNode(`
|
|
1547
1560
|
@font-face {
|
|
1548
1561
|
font-family: "License Plate";
|
|
@@ -1551,7 +1564,7 @@ class be extends HTMLElement {
|
|
|
1551
1564
|
font-weight: normal;
|
|
1552
1565
|
font-style: normal;
|
|
1553
1566
|
}`)
|
|
1554
|
-
), document.head.appendChild(
|
|
1567
|
+
), document.head.appendChild(m);
|
|
1555
1568
|
}
|
|
1556
1569
|
}
|
|
1557
1570
|
// Public API methods for controlling the modal
|
|
@@ -1565,38 +1578,30 @@ class be extends HTMLElement {
|
|
|
1565
1578
|
this._modalControls && this._modalControls.toggle();
|
|
1566
1579
|
}
|
|
1567
1580
|
}
|
|
1568
|
-
customElements.define("plate-search",
|
|
1569
|
-
const
|
|
1570
|
-
function(t,
|
|
1571
|
-
const i =
|
|
1572
|
-
return
|
|
1573
|
-
|
|
1581
|
+
customElements.define("plate-search", we);
|
|
1582
|
+
const co = ya(
|
|
1583
|
+
function(t, c) {
|
|
1584
|
+
const i = Me(null), u = Me(null), h = Me(null), p = Me(null), [m, w] = Y(!1);
|
|
1585
|
+
return Ea(
|
|
1586
|
+
c,
|
|
1574
1587
|
() => ({
|
|
1575
1588
|
open: () => {
|
|
1576
|
-
|
|
1577
|
-
Se(ie, { ...t, isOpen: !0 })
|
|
1578
|
-
);
|
|
1589
|
+
t.onOpenChange && t.onOpenChange(!0);
|
|
1579
1590
|
},
|
|
1580
1591
|
close: () => {
|
|
1581
|
-
|
|
1582
|
-
Se(ie, { ...t, isOpen: !1 })
|
|
1583
|
-
);
|
|
1592
|
+
t.onOpenChange && t.onOpenChange(!1);
|
|
1584
1593
|
},
|
|
1585
1594
|
toggle: () => {
|
|
1586
|
-
|
|
1587
|
-
d.current = u, t.onOpenChange && t.onOpenChange(u), l.current && p.current && l.current.render(
|
|
1588
|
-
Se(ie, { ...t, isOpen: u })
|
|
1589
|
-
);
|
|
1595
|
+
t.onOpenChange && t.onOpenChange(!t.isOpen);
|
|
1590
1596
|
}
|
|
1591
1597
|
}),
|
|
1592
|
-
[t]
|
|
1593
|
-
),
|
|
1594
|
-
if (
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
f
|
|
1598
|
-
|
|
1599
|
-
if (u.appendChild(n), !document.head.querySelector('link[href*="fonts.googleapis.com"]')) {
|
|
1598
|
+
[t.onOpenChange, t.isOpen]
|
|
1599
|
+
), j(() => {
|
|
1600
|
+
if (!i.current || u.current) return;
|
|
1601
|
+
const r = i.current.attachShadow({ mode: "open" });
|
|
1602
|
+
u.current = r;
|
|
1603
|
+
const f = document.createElement("div");
|
|
1604
|
+
if (h.current = f, r.appendChild(f), !document.head.querySelector('link[href*="fonts.googleapis.com"]')) {
|
|
1600
1605
|
const v = document.createElement("link");
|
|
1601
1606
|
v.rel = "stylesheet", v.href = "https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap", document.head.appendChild(v);
|
|
1602
1607
|
}
|
|
@@ -1611,20 +1616,27 @@ const dr = Ea(
|
|
|
1611
1616
|
font-style: normal;
|
|
1612
1617
|
}`, document.head.appendChild(v);
|
|
1613
1618
|
}
|
|
1614
|
-
const
|
|
1615
|
-
|
|
1616
|
-
const
|
|
1617
|
-
return
|
|
1618
|
-
|
|
1619
|
+
const b = pt.replace(/@import\s+["']https:\/\/fonts\.googleapis\.com[^;]+;/g, "").replace(/@import\s+["']tailwindcss["'];/g, ""), N = document.createElement("style");
|
|
1620
|
+
N.textContent = b, r.appendChild(N);
|
|
1621
|
+
const T = Yt(f);
|
|
1622
|
+
return p.current = T, w(!0), () => {
|
|
1623
|
+
p.current && (setTimeout(() => {
|
|
1619
1624
|
var v;
|
|
1620
|
-
(v =
|
|
1621
|
-
}, 0),
|
|
1625
|
+
(v = p.current) == null || v.unmount();
|
|
1626
|
+
}, 0), p.current = null);
|
|
1622
1627
|
};
|
|
1623
|
-
}, []),
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1628
|
+
}, []), j(() => {
|
|
1629
|
+
if (p.current && m) {
|
|
1630
|
+
console.log(
|
|
1631
|
+
"[PlateSearchShadowWrapper] Rendering with isOpen:",
|
|
1632
|
+
t.isOpen
|
|
1633
|
+
);
|
|
1634
|
+
const r = t.isOpen !== void 0 ? `controlled-${t.isOpen}` : "uncontrolled";
|
|
1635
|
+
p.current.render(/* @__PURE__ */ React.createElement(ut, { key: r, ...t }));
|
|
1636
|
+
}
|
|
1627
1637
|
}, [
|
|
1638
|
+
m,
|
|
1639
|
+
t.isOpen,
|
|
1628
1640
|
t.apiKey,
|
|
1629
1641
|
t.callbackUrl,
|
|
1630
1642
|
t.productsUrl,
|
|
@@ -1636,7 +1648,6 @@ const dr = Ea(
|
|
|
1636
1648
|
t.intro,
|
|
1637
1649
|
t.supportMessage,
|
|
1638
1650
|
t.actionButtonLabel,
|
|
1639
|
-
t.isOpen,
|
|
1640
1651
|
t.onOpenChange,
|
|
1641
1652
|
t.hideDefaultButton,
|
|
1642
1653
|
t.onModalClose,
|
|
@@ -1653,44 +1664,44 @@ const dr = Ea(
|
|
|
1653
1664
|
}
|
|
1654
1665
|
);
|
|
1655
1666
|
}
|
|
1656
|
-
),
|
|
1657
|
-
typeof window < "u" && (window.React = window.React ||
|
|
1658
|
-
const
|
|
1659
|
-
var
|
|
1660
|
-
if (
|
|
1661
|
-
const
|
|
1667
|
+
), mo = _a;
|
|
1668
|
+
typeof window < "u" && (window.React = window.React || Gt);
|
|
1669
|
+
const le = document.querySelector("plate-search");
|
|
1670
|
+
var $t;
|
|
1671
|
+
if (le) {
|
|
1672
|
+
const o = (($t = le.shadowRoot) == null ? void 0 : $t.querySelector(
|
|
1662
1673
|
".partbot-plate-search"
|
|
1663
|
-
)) ||
|
|
1664
|
-
if (!
|
|
1674
|
+
)) || le.querySelector(".partbot-plate-search");
|
|
1675
|
+
if (!o)
|
|
1665
1676
|
console.error("Partbot: failed to locate .partbot-plate-search container");
|
|
1666
1677
|
else {
|
|
1667
1678
|
let t;
|
|
1668
|
-
const
|
|
1669
|
-
t || (t =
|
|
1670
|
-
|
|
1671
|
-
domElement:
|
|
1672
|
-
webComponentInstance:
|
|
1679
|
+
const c = () => {
|
|
1680
|
+
t || (t = Yt(o)), t.render(
|
|
1681
|
+
Gt.createElement(io, {
|
|
1682
|
+
domElement: o,
|
|
1683
|
+
webComponentInstance: le
|
|
1673
1684
|
})
|
|
1674
1685
|
);
|
|
1675
1686
|
}, i = [
|
|
1676
|
-
...
|
|
1687
|
+
...le.shadowRoot ? le.shadowRoot.querySelectorAll("link") : le.querySelectorAll("link")
|
|
1677
1688
|
];
|
|
1678
1689
|
if (i.length === 0)
|
|
1679
|
-
|
|
1690
|
+
c();
|
|
1680
1691
|
else {
|
|
1681
|
-
let
|
|
1682
|
-
const
|
|
1683
|
-
++
|
|
1692
|
+
let u = 0;
|
|
1693
|
+
const h = () => {
|
|
1694
|
+
++u >= i.length && c();
|
|
1684
1695
|
};
|
|
1685
1696
|
i.forEach((p) => {
|
|
1686
|
-
p.sheet || p.complete ?
|
|
1697
|
+
p.sheet || p.complete ? h() : (p.addEventListener("load", h, { once: !0 }), p.addEventListener("error", h, { once: !0 }));
|
|
1687
1698
|
});
|
|
1688
1699
|
}
|
|
1689
1700
|
}
|
|
1690
1701
|
}
|
|
1691
1702
|
export {
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1703
|
+
co as PlateSearch,
|
|
1704
|
+
ut as PlateSearchRaw,
|
|
1705
|
+
co as default,
|
|
1706
|
+
mo as plateSearchCssUrl
|
|
1696
1707
|
};
|