@cartbot/plate-search 3.1.11 → 3.1.12
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 +14 -0
- package/build/dist/css/plate-search.css +1 -1
- package/build/dist/js/plate-search.js +11 -11
- package/dist/css/plate-search.css +1 -1
- package/dist/js/plate-search.es.js +412 -406
- package/dist/js/plate-search.js +11 -11
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import Gt, { createContext as xa, useState as q, useRef as
|
|
2
|
+
import Gt, { createContext as xa, useState as q, useRef as Oe, useEffect as B, forwardRef as ya, useImperativeHandle as Ea } from "react";
|
|
3
3
|
import { createRoot as Yt } from "react-dom/client";
|
|
4
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 */
|
|
@@ -12,7 +12,7 @@ const {
|
|
|
12
12
|
} = Object;
|
|
13
13
|
let {
|
|
14
14
|
freeze: z,
|
|
15
|
-
seal:
|
|
15
|
+
seal: W,
|
|
16
16
|
create: Xt
|
|
17
17
|
} = Object, {
|
|
18
18
|
apply: dt,
|
|
@@ -21,7 +21,7 @@ let {
|
|
|
21
21
|
z || (z = function(t) {
|
|
22
22
|
return t;
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
W || (W = function(t) {
|
|
25
25
|
return t;
|
|
26
26
|
});
|
|
27
27
|
dt || (dt = function(t, c, l) {
|
|
@@ -30,7 +30,7 @@ dt || (dt = function(t, c, l) {
|
|
|
30
30
|
mt || (mt = function(t, c) {
|
|
31
31
|
return new t(...c);
|
|
32
32
|
});
|
|
33
|
-
const
|
|
33
|
+
const Be = F(Array.prototype.forEach), ka = F(Array.prototype.lastIndexOf), It = F(Array.prototype.pop), Se = F(Array.prototype.push), Sa = F(Array.prototype.splice), $e = F(String.prototype.toLowerCase), nt = F(String.prototype.toString), Ht = F(String.prototype.match), Ce = F(String.prototype.replace), Ca = F(String.prototype.indexOf), La = F(String.prototype.trim), $ = F(Object.prototype.hasOwnProperty), U = F(RegExp.prototype.test), Le = Ma(TypeError);
|
|
34
34
|
function F(o) {
|
|
35
35
|
return function(t) {
|
|
36
36
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -46,8 +46,8 @@ function Ma(o) {
|
|
|
46
46
|
return mt(o, c);
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
49
|
+
function w(o, t) {
|
|
50
|
+
let c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : $e;
|
|
51
51
|
Ot && Ot(o, null);
|
|
52
52
|
let l = t.length;
|
|
53
53
|
for (; l--; ) {
|
|
@@ -71,7 +71,7 @@ function Q(o) {
|
|
|
71
71
|
$(o, c) && (Array.isArray(l) ? t[c] = Na(l) : l && typeof l == "object" && l.constructor === Object ? t[c] = Q(l) : t[c] = l);
|
|
72
72
|
return t;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Me(o, t) {
|
|
75
75
|
for (; o !== null; ) {
|
|
76
76
|
const l = Ta(o, t);
|
|
77
77
|
if (l) {
|
|
@@ -87,13 +87,13 @@ function Ce(o, t) {
|
|
|
87
87
|
}
|
|
88
88
|
return c;
|
|
89
89
|
}
|
|
90
|
-
const Dt = 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"]), Pt = 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"]),
|
|
90
|
+
const Dt = 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"]), Pt = 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"]), We = z(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ha = W(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Da = W(/<%[\w\W]*|[\w\W]*%>/gm), Pa = W(/\$\{[\w\W]*/gm), Ua = W(/^data-[\-\w.\u00B7-\uFFFF]+$/), za = W(/^aria-[\-\w]+$/), Kt = W(
|
|
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
|
-
), Fa =
|
|
93
|
+
), Fa = W(/^(?:\w+script|data):/i), Za = W(
|
|
94
94
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
95
95
|
// eslint-disable-line no-control-regex
|
|
96
|
-
), Jt =
|
|
96
|
+
), Jt = W(/^html$/i), Va = W(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
97
97
|
var Ft = /* @__PURE__ */ Object.freeze({
|
|
98
98
|
__proto__: null,
|
|
99
99
|
ARIA_ATTR: za,
|
|
@@ -107,7 +107,7 @@ var Ft = /* @__PURE__ */ Object.freeze({
|
|
|
107
107
|
MUSTACHE_EXPR: Ha,
|
|
108
108
|
TMPLIT_EXPR: Pa
|
|
109
109
|
});
|
|
110
|
-
const
|
|
110
|
+
const Ne = {
|
|
111
111
|
element: 1,
|
|
112
112
|
text: 3,
|
|
113
113
|
// Deprecated
|
|
@@ -151,7 +151,7 @@ const Le = {
|
|
|
151
151
|
function Qt() {
|
|
152
152
|
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ja();
|
|
153
153
|
const t = (d) => Qt(d);
|
|
154
|
-
if (t.version = "3.2.6", t.removed = [], !o || !o.document || o.document.nodeType !==
|
|
154
|
+
if (t.version = "3.2.6", t.removed = [], !o || !o.document || o.document.nodeType !== Ne.document || !o.Element)
|
|
155
155
|
return t.isSupported = !1, t;
|
|
156
156
|
let {
|
|
157
157
|
document: c
|
|
@@ -160,45 +160,45 @@ function Qt() {
|
|
|
160
160
|
DocumentFragment: h,
|
|
161
161
|
HTMLTemplateElement: p,
|
|
162
162
|
Node: m,
|
|
163
|
-
Element:
|
|
163
|
+
Element: v,
|
|
164
164
|
NodeFilter: r,
|
|
165
165
|
NamedNodeMap: f = o.NamedNodeMap || o.MozNamedAttrMap,
|
|
166
|
-
HTMLFormElement:
|
|
167
|
-
DOMParser:
|
|
168
|
-
trustedTypes:
|
|
169
|
-
} = o, y =
|
|
166
|
+
HTMLFormElement: x,
|
|
167
|
+
DOMParser: I,
|
|
168
|
+
trustedTypes: k
|
|
169
|
+
} = o, y = v.prototype, H = Me(y, "cloneNode"), Z = Me(y, "remove"), V = Me(y, "nextSibling"), ge = Me(y, "childNodes"), ee = Me(y, "parentNode");
|
|
170
170
|
if (typeof p == "function") {
|
|
171
171
|
const d = c.createElement("template");
|
|
172
172
|
d.content && d.content.ownerDocument && (c = d.content.ownerDocument);
|
|
173
173
|
}
|
|
174
|
-
let
|
|
174
|
+
let S, te = "";
|
|
175
175
|
const {
|
|
176
|
-
implementation:
|
|
177
|
-
createNodeIterator:
|
|
178
|
-
createDocumentFragment:
|
|
179
|
-
getElementsByTagName:
|
|
176
|
+
implementation: le,
|
|
177
|
+
createNodeIterator: Ge,
|
|
178
|
+
createDocumentFragment: we,
|
|
179
|
+
getElementsByTagName: Ye
|
|
180
180
|
} = c, {
|
|
181
|
-
importNode:
|
|
181
|
+
importNode: Ie
|
|
182
182
|
} = l;
|
|
183
|
-
let
|
|
184
|
-
t.isSupported = typeof qt == "function" && typeof ee == "function" &&
|
|
183
|
+
let M = Zt();
|
|
184
|
+
t.isSupported = typeof qt == "function" && typeof ee == "function" && le && le.createHTMLDocument !== void 0;
|
|
185
185
|
const {
|
|
186
|
-
MUSTACHE_EXPR:
|
|
187
|
-
ERB_EXPR:
|
|
188
|
-
TMPLIT_EXPR:
|
|
189
|
-
DATA_ATTR:
|
|
190
|
-
ARIA_ATTR:
|
|
186
|
+
MUSTACHE_EXPR: He,
|
|
187
|
+
ERB_EXPR: C,
|
|
188
|
+
TMPLIT_EXPR: ae,
|
|
189
|
+
DATA_ATTR: be,
|
|
190
|
+
ARIA_ATTR: De,
|
|
191
191
|
IS_SCRIPT_OR_DATA: qe,
|
|
192
|
-
ATTR_WHITESPACE:
|
|
193
|
-
CUSTOM_ELEMENT:
|
|
192
|
+
ATTR_WHITESPACE: ve,
|
|
193
|
+
CUSTOM_ELEMENT: Xe
|
|
194
194
|
} = Ft;
|
|
195
195
|
let {
|
|
196
|
-
IS_ALLOWED_URI:
|
|
197
|
-
} = Ft,
|
|
198
|
-
const xe =
|
|
199
|
-
let
|
|
200
|
-
const
|
|
201
|
-
let
|
|
196
|
+
IS_ALLOWED_URI: Pe
|
|
197
|
+
} = Ft, E = null;
|
|
198
|
+
const xe = w({}, [...Dt, ...rt, ...it, ...lt, ...Pt]);
|
|
199
|
+
let R = null;
|
|
200
|
+
const ye = w({}, [...Ut, ...st, ...zt, ...We]);
|
|
201
|
+
let T = Object.seal(Xt(null, {
|
|
202
202
|
tagNameCheck: {
|
|
203
203
|
writable: !0,
|
|
204
204
|
configurable: !1,
|
|
@@ -217,68 +217,68 @@ function Qt() {
|
|
|
217
217
|
enumerable: !0,
|
|
218
218
|
value: !1
|
|
219
219
|
}
|
|
220
|
-
})), oe = null,
|
|
220
|
+
})), oe = null, se = null, Ee = !0, _e = !0, Ae = !1, i = !0, g = !1, b = !0, _ = !1, ne = !1, ce = !1, G = !1, Ue = !1, ze = !1, ft = !0, gt = !1;
|
|
221
221
|
const ha = "user-content-";
|
|
222
|
-
let Ke = !0,
|
|
223
|
-
const wt =
|
|
222
|
+
let Ke = !0, Re = !1, de = {}, me = null;
|
|
223
|
+
const wt = w({}, ["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
224
|
let bt = null;
|
|
225
|
-
const vt =
|
|
225
|
+
const vt = w({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
226
226
|
let Je = null;
|
|
227
|
-
const xt =
|
|
228
|
-
let
|
|
229
|
-
const pa =
|
|
230
|
-
let
|
|
231
|
-
const ua =
|
|
232
|
-
let
|
|
227
|
+
const xt = w({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ze = "http://www.w3.org/2000/svg", X = "http://www.w3.org/1999/xhtml";
|
|
228
|
+
let he = X, Qe = !1, et = null;
|
|
229
|
+
const pa = w({}, [Fe, Ze, X], nt);
|
|
230
|
+
let Ve = w({}, ["mi", "mo", "mn", "ms", "mtext"]), je = w({}, ["annotation-xml"]);
|
|
231
|
+
const ua = w({}, ["title", "style", "font", "a", "script"]);
|
|
232
|
+
let Te = null;
|
|
233
233
|
const fa = ["application/xhtml+xml", "text/html"], ga = "text/html";
|
|
234
|
-
let
|
|
234
|
+
let N = null, pe = null;
|
|
235
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
|
-
if (!(
|
|
240
|
-
if ((!e || typeof e != "object") && (e = {}), e = Q(e),
|
|
241
|
-
fa.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? ga : e.PARSER_MEDIA_TYPE,
|
|
239
|
+
if (!(pe && pe === e)) {
|
|
240
|
+
if ((!e || typeof e != "object") && (e = {}), e = Q(e), Te = // eslint-disable-next-line unicorn/prefer-includes
|
|
241
|
+
fa.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? ga : e.PARSER_MEDIA_TYPE, N = Te === "application/xhtml+xml" ? nt : $e, E = $(e, "ALLOWED_TAGS") ? w({}, e.ALLOWED_TAGS, N) : xe, R = $(e, "ALLOWED_ATTR") ? w({}, e.ALLOWED_ATTR, N) : ye, et = $(e, "ALLOWED_NAMESPACES") ? w({}, e.ALLOWED_NAMESPACES, nt) : pa, Je = $(e, "ADD_URI_SAFE_ATTR") ? w(Q(xt), e.ADD_URI_SAFE_ATTR, N) : xt, bt = $(e, "ADD_DATA_URI_TAGS") ? w(Q(vt), e.ADD_DATA_URI_TAGS, N) : vt, me = $(e, "FORBID_CONTENTS") ? w({}, e.FORBID_CONTENTS, N) : wt, oe = $(e, "FORBID_TAGS") ? w({}, e.FORBID_TAGS, N) : Q({}), se = $(e, "FORBID_ATTR") ? w({}, e.FORBID_ATTR, N) : Q({}), de = $(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Ee = e.ALLOW_ARIA_ATTR !== !1, _e = e.ALLOW_DATA_ATTR !== !1, Ae = e.ALLOW_UNKNOWN_PROTOCOLS || !1, i = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, g = e.SAFE_FOR_TEMPLATES || !1, b = e.SAFE_FOR_XML !== !1, _ = e.WHOLE_DOCUMENT || !1, G = e.RETURN_DOM || !1, Ue = e.RETURN_DOM_FRAGMENT || !1, ze = e.RETURN_TRUSTED_TYPE || !1, ce = e.FORCE_BODY || !1, ft = e.SANITIZE_DOM !== !1, gt = e.SANITIZE_NAMED_PROPS || !1, Ke = e.KEEP_CONTENT !== !1, Re = e.IN_PLACE || !1, Pe = e.ALLOWED_URI_REGEXP || Kt, he = e.NAMESPACE || X, Ve = e.MATHML_TEXT_INTEGRATION_POINTS || Ve, je = e.HTML_INTEGRATION_POINTS || je, T = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && yt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), g && (_e = !1), Ue && (G = !0), de && (E = w({}, Pt), R = [], de.html === !0 && (w(E, Dt), w(R, Ut)), de.svg === !0 && (w(E, rt), w(R, st), w(R, We)), de.svgFilters === !0 && (w(E, it), w(R, st), w(R, We)), de.mathMl === !0 && (w(E, lt), w(R, zt), w(R, We))), e.ADD_TAGS && (E === xe && (E = Q(E)), w(E, e.ADD_TAGS, N)), e.ADD_ATTR && (R === ye && (R = Q(R)), w(R, e.ADD_ATTR, N)), e.ADD_URI_SAFE_ATTR && w(Je, e.ADD_URI_SAFE_ATTR, N), e.FORBID_CONTENTS && (me === wt && (me = Q(me)), w(me, e.FORBID_CONTENTS, N)), Ke && (E["#text"] = !0), _ && w(E, ["html", "head", "body"]), E.table && (w(E, ["tbody"]), delete oe.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
242
242
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
243
|
-
throw
|
|
243
|
+
throw Le('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 Le('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
246
|
+
S = e.TRUSTED_TYPES_POLICY, te = S.createHTML("");
|
|
247
247
|
} else
|
|
248
|
-
|
|
249
|
-
z && z(e),
|
|
248
|
+
S === void 0 && (S = Ba(k, u)), S !== null && typeof te == "string" && (te = S.createHTML(""));
|
|
249
|
+
z && z(e), pe = e;
|
|
250
250
|
}
|
|
251
|
-
}, Et =
|
|
251
|
+
}, Et = w({}, [...rt, ...it, ...Oa]), _t = w({}, [...lt, ...Ia]), ba = function(e) {
|
|
252
252
|
let n = ee(e);
|
|
253
253
|
(!n || !n.tagName) && (n = {
|
|
254
|
-
namespaceURI:
|
|
254
|
+
namespaceURI: he,
|
|
255
255
|
tagName: "template"
|
|
256
256
|
});
|
|
257
|
-
const s =
|
|
258
|
-
return et[e.namespaceURI] ? e.namespaceURI ===
|
|
257
|
+
const s = $e(e.tagName), A = $e(n.tagName);
|
|
258
|
+
return et[e.namespaceURI] ? e.namespaceURI === Ze ? n.namespaceURI === X ? s === "svg" : n.namespaceURI === Fe ? s === "svg" && (A === "annotation-xml" || Ve[A]) : !!Et[s] : e.namespaceURI === Fe ? n.namespaceURI === X ? s === "math" : n.namespaceURI === Ze ? s === "math" && je[A] : !!_t[s] : e.namespaceURI === X ? n.namespaceURI === Ze && !je[A] || n.namespaceURI === Fe && !Ve[A] ? !1 : !_t[s] && (ua[s] || !Et[s]) : !!(Te === "application/xhtml+xml" && et[e.namespaceURI]) : !1;
|
|
259
259
|
}, Y = function(e) {
|
|
260
|
-
|
|
260
|
+
Se(t.removed, {
|
|
261
261
|
element: e
|
|
262
262
|
});
|
|
263
263
|
try {
|
|
264
264
|
ee(e).removeChild(e);
|
|
265
265
|
} catch {
|
|
266
|
-
|
|
266
|
+
Z(e);
|
|
267
267
|
}
|
|
268
|
-
},
|
|
268
|
+
}, ue = function(e, n) {
|
|
269
269
|
try {
|
|
270
|
-
|
|
270
|
+
Se(t.removed, {
|
|
271
271
|
attribute: n.getAttributeNode(e),
|
|
272
272
|
from: n
|
|
273
273
|
});
|
|
274
274
|
} catch {
|
|
275
|
-
|
|
275
|
+
Se(t.removed, {
|
|
276
276
|
attribute: null,
|
|
277
277
|
from: n
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
if (n.removeAttribute(e), e === "is")
|
|
281
|
-
if (
|
|
281
|
+
if (G || Ue)
|
|
282
282
|
try {
|
|
283
283
|
Y(n);
|
|
284
284
|
} catch {
|
|
@@ -290,30 +290,30 @@ function Qt() {
|
|
|
290
290
|
}
|
|
291
291
|
}, At = function(e) {
|
|
292
292
|
let n = null, s = null;
|
|
293
|
-
if (
|
|
293
|
+
if (ce)
|
|
294
294
|
e = "<remove></remove>" + e;
|
|
295
295
|
else {
|
|
296
|
-
const
|
|
297
|
-
s =
|
|
296
|
+
const L = Ht(e, /^[\r\n\t ]+/);
|
|
297
|
+
s = L && L[0];
|
|
298
298
|
}
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
if (
|
|
299
|
+
Te === "application/xhtml+xml" && he === X && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
300
|
+
const A = S ? S.createHTML(e) : e;
|
|
301
|
+
if (he === X)
|
|
302
302
|
try {
|
|
303
|
-
n = new
|
|
303
|
+
n = new I().parseFromString(A, Te);
|
|
304
304
|
} catch {
|
|
305
305
|
}
|
|
306
306
|
if (!n || !n.documentElement) {
|
|
307
|
-
n =
|
|
307
|
+
n = le.createDocument(he, "template", null);
|
|
308
308
|
try {
|
|
309
|
-
n.documentElement.innerHTML = Qe ? te :
|
|
309
|
+
n.documentElement.innerHTML = Qe ? te : A;
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
const D = n.body || n.documentElement;
|
|
314
|
-
return e && s && D.insertBefore(c.createTextNode(s), D.childNodes[0] || null),
|
|
314
|
+
return e && s && D.insertBefore(c.createTextNode(s), D.childNodes[0] || null), he === X ? Ye.call(n, _ ? "html" : "body")[0] : _ ? n.documentElement : D;
|
|
315
315
|
}, Rt = function(e) {
|
|
316
|
-
return
|
|
316
|
+
return Ge.call(
|
|
317
317
|
e.ownerDocument || e,
|
|
318
318
|
e,
|
|
319
319
|
// eslint-disable-next-line no-bitwise
|
|
@@ -321,63 +321,63 @@ function Qt() {
|
|
|
321
321
|
null
|
|
322
322
|
);
|
|
323
323
|
}, at = function(e) {
|
|
324
|
-
return e instanceof
|
|
324
|
+
return e instanceof x && (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
325
|
}, Tt = function(e) {
|
|
326
326
|
return typeof m == "function" && e instanceof m;
|
|
327
327
|
};
|
|
328
328
|
function K(d, e, n) {
|
|
329
|
-
|
|
330
|
-
s.call(t, e, n,
|
|
329
|
+
Be(d, (s) => {
|
|
330
|
+
s.call(t, e, n, pe);
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
333
|
const kt = function(e) {
|
|
334
334
|
let n = null;
|
|
335
|
-
if (K(
|
|
335
|
+
if (K(M.beforeSanitizeElements, e, null), at(e))
|
|
336
336
|
return Y(e), !0;
|
|
337
|
-
const s =
|
|
338
|
-
if (K(
|
|
337
|
+
const s = N(e.nodeName);
|
|
338
|
+
if (K(M.uponSanitizeElement, e, {
|
|
339
339
|
tagName: s,
|
|
340
|
-
allowedTags:
|
|
341
|
-
}),
|
|
340
|
+
allowedTags: E
|
|
341
|
+
}), b && e.hasChildNodes() && !Tt(e.firstElementChild) && U(/<[/\w!]/g, e.innerHTML) && U(/<[/\w!]/g, e.textContent) || e.nodeType === Ne.progressingInstruction || b && e.nodeType === Ne.comment && U(/<[/\w]/g, e.data))
|
|
342
342
|
return Y(e), !0;
|
|
343
|
-
if (!
|
|
344
|
-
if (!oe[s] && Ct(s) && (
|
|
343
|
+
if (!E[s] || oe[s]) {
|
|
344
|
+
if (!oe[s] && Ct(s) && (T.tagNameCheck instanceof RegExp && U(T.tagNameCheck, s) || T.tagNameCheck instanceof Function && T.tagNameCheck(s)))
|
|
345
345
|
return !1;
|
|
346
|
-
if (Ke && !
|
|
347
|
-
const
|
|
348
|
-
if (D &&
|
|
349
|
-
const
|
|
350
|
-
for (let
|
|
351
|
-
const J =
|
|
352
|
-
J.__removalCount = (e.__removalCount || 0) + 1,
|
|
346
|
+
if (Ke && !me[s]) {
|
|
347
|
+
const A = ee(e) || e.parentNode, D = ge(e) || e.childNodes;
|
|
348
|
+
if (D && A) {
|
|
349
|
+
const L = D.length;
|
|
350
|
+
for (let j = L - 1; j >= 0; --j) {
|
|
351
|
+
const J = H(D[j], !0);
|
|
352
|
+
J.__removalCount = (e.__removalCount || 0) + 1, A.insertBefore(J, V(e));
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
return Y(e), !0;
|
|
357
357
|
}
|
|
358
|
-
return e instanceof
|
|
359
|
-
n =
|
|
360
|
-
}), e.textContent !== n && (
|
|
358
|
+
return e instanceof v && !ba(e) || (s === "noscript" || s === "noembed" || s === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Y(e), !0) : (g && e.nodeType === Ne.text && (n = e.textContent, Be([He, C, ae], (A) => {
|
|
359
|
+
n = Ce(n, A, " ");
|
|
360
|
+
}), e.textContent !== n && (Se(t.removed, {
|
|
361
361
|
element: e.cloneNode()
|
|
362
|
-
}), e.textContent = n)), K(
|
|
362
|
+
}), e.textContent = n)), K(M.afterSanitizeElements, e, null), !1);
|
|
363
363
|
}, St = function(e, n, s) {
|
|
364
364
|
if (ft && (n === "id" || n === "name") && (s in c || s in wa))
|
|
365
365
|
return !1;
|
|
366
|
-
if (!(
|
|
367
|
-
if (!(Ee && U(
|
|
368
|
-
if (!
|
|
366
|
+
if (!(_e && !se[n] && U(be, n))) {
|
|
367
|
+
if (!(Ee && U(De, n))) {
|
|
368
|
+
if (!R[n] || se[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
|
-
!(Ct(e) && (
|
|
373
|
+
!(Ct(e) && (T.tagNameCheck instanceof RegExp && U(T.tagNameCheck, e) || T.tagNameCheck instanceof Function && T.tagNameCheck(e)) && (T.attributeNameCheck instanceof RegExp && U(T.attributeNameCheck, n) || T.attributeNameCheck instanceof Function && T.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
|
-
n === "is" &&
|
|
375
|
+
n === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && U(T.tagNameCheck, s) || T.tagNameCheck instanceof Function && T.tagNameCheck(s)))
|
|
376
376
|
) return !1;
|
|
377
377
|
} else if (!Je[n]) {
|
|
378
|
-
if (!U(
|
|
378
|
+
if (!U(Pe, Ce(s, ve, ""))) {
|
|
379
379
|
if (!((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && Ca(s, "data:") === 0 && bt[e])) {
|
|
380
|
-
if (!(
|
|
380
|
+
if (!(Ae && !U(qe, Ce(s, ve, "")))) {
|
|
381
381
|
if (s)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
@@ -388,9 +388,9 @@ function Qt() {
|
|
|
388
388
|
}
|
|
389
389
|
return !0;
|
|
390
390
|
}, Ct = function(e) {
|
|
391
|
-
return e !== "annotation-xml" && Ht(e,
|
|
391
|
+
return e !== "annotation-xml" && Ht(e, Xe);
|
|
392
392
|
}, Lt = function(e) {
|
|
393
|
-
K(
|
|
393
|
+
K(M.beforeSanitizeAttributes, e, null);
|
|
394
394
|
const {
|
|
395
395
|
attributes: n
|
|
396
396
|
} = e;
|
|
@@ -400,130 +400,130 @@ function Qt() {
|
|
|
400
400
|
attrName: "",
|
|
401
401
|
attrValue: "",
|
|
402
402
|
keepAttr: !0,
|
|
403
|
-
allowedAttributes:
|
|
403
|
+
allowedAttributes: R,
|
|
404
404
|
forceKeepAttr: void 0
|
|
405
405
|
};
|
|
406
|
-
let
|
|
407
|
-
for (;
|
|
408
|
-
const D = n[
|
|
409
|
-
name:
|
|
410
|
-
namespaceURI:
|
|
406
|
+
let A = n.length;
|
|
407
|
+
for (; A--; ) {
|
|
408
|
+
const D = n[A], {
|
|
409
|
+
name: L,
|
|
410
|
+
namespaceURI: j,
|
|
411
411
|
value: J
|
|
412
|
-
} = D,
|
|
413
|
-
let P =
|
|
414
|
-
if (s.attrName =
|
|
415
|
-
|
|
412
|
+
} = D, ke = N(L), ot = J;
|
|
413
|
+
let P = L === "value" ? ot : La(ot);
|
|
414
|
+
if (s.attrName = ke, s.attrValue = P, s.keepAttr = !0, s.forceKeepAttr = void 0, K(M.uponSanitizeAttribute, e, s), P = s.attrValue, gt && (ke === "id" || ke === "name") && (ue(L, e), P = ha + P), b && U(/((--!?|])>)|<\/(style|title)/i, P)) {
|
|
415
|
+
ue(L, e);
|
|
416
416
|
continue;
|
|
417
417
|
}
|
|
418
418
|
if (s.forceKeepAttr)
|
|
419
419
|
continue;
|
|
420
420
|
if (!s.keepAttr) {
|
|
421
|
-
|
|
421
|
+
ue(L, e);
|
|
422
422
|
continue;
|
|
423
423
|
}
|
|
424
|
-
if (!
|
|
425
|
-
|
|
424
|
+
if (!i && U(/\/>/i, P)) {
|
|
425
|
+
ue(L, e);
|
|
426
426
|
continue;
|
|
427
427
|
}
|
|
428
|
-
|
|
429
|
-
P =
|
|
428
|
+
g && Be([He, C, ae], (Nt) => {
|
|
429
|
+
P = Ce(P, Nt, " ");
|
|
430
430
|
});
|
|
431
|
-
const Mt =
|
|
432
|
-
if (!St(Mt,
|
|
433
|
-
|
|
431
|
+
const Mt = N(e.nodeName);
|
|
432
|
+
if (!St(Mt, ke, P)) {
|
|
433
|
+
ue(L, e);
|
|
434
434
|
continue;
|
|
435
435
|
}
|
|
436
|
-
if (
|
|
437
|
-
switch (
|
|
436
|
+
if (S && typeof k == "object" && typeof k.getAttributeType == "function" && !j)
|
|
437
|
+
switch (k.getAttributeType(Mt, ke)) {
|
|
438
438
|
case "TrustedHTML": {
|
|
439
|
-
P =
|
|
439
|
+
P = S.createHTML(P);
|
|
440
440
|
break;
|
|
441
441
|
}
|
|
442
442
|
case "TrustedScriptURL": {
|
|
443
|
-
P =
|
|
443
|
+
P = S.createScriptURL(P);
|
|
444
444
|
break;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
if (P !== ot)
|
|
448
448
|
try {
|
|
449
|
-
|
|
449
|
+
j ? e.setAttributeNS(j, L, P) : e.setAttribute(L, P), at(e) ? Y(e) : It(t.removed);
|
|
450
450
|
} catch {
|
|
451
|
-
|
|
451
|
+
ue(L, e);
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
K(
|
|
454
|
+
K(M.afterSanitizeAttributes, e, null);
|
|
455
455
|
}, va = function d(e) {
|
|
456
456
|
let n = null;
|
|
457
457
|
const s = Rt(e);
|
|
458
|
-
for (K(
|
|
459
|
-
K(
|
|
460
|
-
K(
|
|
458
|
+
for (K(M.beforeSanitizeShadowDOM, e, null); n = s.nextNode(); )
|
|
459
|
+
K(M.uponSanitizeShadowNode, n, null), kt(n), Lt(n), n.content instanceof h && d(n.content);
|
|
460
|
+
K(M.afterSanitizeShadowDOM, e, null);
|
|
461
461
|
};
|
|
462
462
|
return t.sanitize = function(d) {
|
|
463
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, s = null,
|
|
463
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, s = null, A = null, D = null;
|
|
464
464
|
if (Qe = !d, Qe && (d = "<!-->"), typeof d != "string" && !Tt(d))
|
|
465
465
|
if (typeof d.toString == "function") {
|
|
466
466
|
if (d = d.toString(), typeof d != "string")
|
|
467
|
-
throw
|
|
467
|
+
throw Le("dirty is not a string, aborting");
|
|
468
468
|
} else
|
|
469
|
-
throw
|
|
469
|
+
throw Le("toString is not a function");
|
|
470
470
|
if (!t.isSupported)
|
|
471
471
|
return d;
|
|
472
|
-
if (
|
|
472
|
+
if (ne || tt(e), t.removed = [], typeof d == "string" && (Re = !1), Re) {
|
|
473
473
|
if (d.nodeName) {
|
|
474
|
-
const J =
|
|
475
|
-
if (!
|
|
476
|
-
throw
|
|
474
|
+
const J = N(d.nodeName);
|
|
475
|
+
if (!E[J] || oe[J])
|
|
476
|
+
throw Le("root node is forbidden and cannot be sanitized in-place");
|
|
477
477
|
}
|
|
478
478
|
} else if (d instanceof m)
|
|
479
|
-
n = At("<!---->"), s = n.ownerDocument.importNode(d, !0), s.nodeType ===
|
|
479
|
+
n = At("<!---->"), s = n.ownerDocument.importNode(d, !0), s.nodeType === Ne.element && s.nodeName === "BODY" || s.nodeName === "HTML" ? n = s : n.appendChild(s);
|
|
480
480
|
else {
|
|
481
|
-
if (!
|
|
481
|
+
if (!G && !g && !_ && // eslint-disable-next-line unicorn/prefer-includes
|
|
482
482
|
d.indexOf("<") === -1)
|
|
483
|
-
return
|
|
483
|
+
return S && ze ? S.createHTML(d) : d;
|
|
484
484
|
if (n = At(d), !n)
|
|
485
|
-
return
|
|
485
|
+
return G ? null : ze ? te : "";
|
|
486
486
|
}
|
|
487
|
-
n &&
|
|
488
|
-
const
|
|
489
|
-
for (;
|
|
490
|
-
kt(
|
|
491
|
-
if (
|
|
487
|
+
n && ce && Y(n.firstChild);
|
|
488
|
+
const L = Rt(Re ? d : n);
|
|
489
|
+
for (; A = L.nextNode(); )
|
|
490
|
+
kt(A), Lt(A), A.content instanceof h && va(A.content);
|
|
491
|
+
if (Re)
|
|
492
492
|
return d;
|
|
493
|
-
if (
|
|
494
|
-
if (
|
|
495
|
-
for (D =
|
|
493
|
+
if (G) {
|
|
494
|
+
if (Ue)
|
|
495
|
+
for (D = we.call(n.ownerDocument); n.firstChild; )
|
|
496
496
|
D.appendChild(n.firstChild);
|
|
497
497
|
else
|
|
498
498
|
D = n;
|
|
499
|
-
return (
|
|
499
|
+
return (R.shadowroot || R.shadowrootmode) && (D = Ie.call(l, D, !0)), D;
|
|
500
500
|
}
|
|
501
|
-
let
|
|
502
|
-
return
|
|
503
|
-
` +
|
|
504
|
-
|
|
505
|
-
}),
|
|
501
|
+
let j = _ ? n.outerHTML : n.innerHTML;
|
|
502
|
+
return _ && E["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && U(Jt, n.ownerDocument.doctype.name) && (j = "<!DOCTYPE " + n.ownerDocument.doctype.name + `>
|
|
503
|
+
` + j), g && Be([He, C, ae], (J) => {
|
|
504
|
+
j = Ce(j, J, " ");
|
|
505
|
+
}), S && ze ? S.createHTML(j) : j;
|
|
506
506
|
}, t.setConfig = function() {
|
|
507
507
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
508
|
-
tt(d),
|
|
508
|
+
tt(d), ne = !0;
|
|
509
509
|
}, t.clearConfig = function() {
|
|
510
|
-
|
|
510
|
+
pe = null, ne = !1;
|
|
511
511
|
}, t.isValidAttribute = function(d, e, n) {
|
|
512
|
-
|
|
513
|
-
const s =
|
|
514
|
-
return St(s,
|
|
512
|
+
pe || tt({});
|
|
513
|
+
const s = N(d), A = N(e);
|
|
514
|
+
return St(s, A, n);
|
|
515
515
|
}, t.addHook = function(d, e) {
|
|
516
|
-
typeof e == "function" &&
|
|
516
|
+
typeof e == "function" && Se(M[d], e);
|
|
517
517
|
}, t.removeHook = function(d, e) {
|
|
518
518
|
if (e !== void 0) {
|
|
519
|
-
const n = ka(
|
|
520
|
-
return n === -1 ? void 0 : Sa(
|
|
519
|
+
const n = ka(M[d], e);
|
|
520
|
+
return n === -1 ? void 0 : Sa(M[d], n, 1)[0];
|
|
521
521
|
}
|
|
522
|
-
return It(
|
|
522
|
+
return It(M[d]);
|
|
523
523
|
}, t.removeHooks = function(d) {
|
|
524
|
-
|
|
524
|
+
M[d] = [];
|
|
525
525
|
}, t.removeAllHooks = function() {
|
|
526
|
-
|
|
526
|
+
M = Zt();
|
|
527
527
|
}, t;
|
|
528
528
|
}
|
|
529
529
|
var Vt = Qt();
|
|
@@ -694,7 +694,7 @@ const Wa = /* @__PURE__ */ new Map([
|
|
|
694
694
|
size: "1em",
|
|
695
695
|
weight: "regular",
|
|
696
696
|
mirrored: !1
|
|
697
|
-
}),
|
|
697
|
+
}), ie = a.forwardRef(
|
|
698
698
|
(o, t) => {
|
|
699
699
|
const {
|
|
700
700
|
alt: c,
|
|
@@ -703,13 +703,13 @@ const Wa = /* @__PURE__ */ new Map([
|
|
|
703
703
|
weight: h,
|
|
704
704
|
mirrored: p,
|
|
705
705
|
children: m,
|
|
706
|
-
weights:
|
|
706
|
+
weights: v,
|
|
707
707
|
...r
|
|
708
708
|
} = o, {
|
|
709
709
|
color: f = "currentColor",
|
|
710
|
-
size:
|
|
711
|
-
weight:
|
|
712
|
-
mirrored:
|
|
710
|
+
size: x,
|
|
711
|
+
weight: I = "regular",
|
|
712
|
+
mirrored: k = !1,
|
|
713
713
|
...y
|
|
714
714
|
} = a.useContext(Ka);
|
|
715
715
|
return /* @__PURE__ */ a.createElement(
|
|
@@ -717,32 +717,32 @@ const Wa = /* @__PURE__ */ new Map([
|
|
|
717
717
|
{
|
|
718
718
|
ref: t,
|
|
719
719
|
xmlns: "http://www.w3.org/2000/svg",
|
|
720
|
-
width: u ??
|
|
721
|
-
height: u ??
|
|
720
|
+
width: u ?? x,
|
|
721
|
+
height: u ?? x,
|
|
722
722
|
fill: l ?? f,
|
|
723
723
|
viewBox: "0 0 256 256",
|
|
724
|
-
transform: p ||
|
|
724
|
+
transform: p || k ? "scale(-1, 1)" : void 0,
|
|
725
725
|
...y,
|
|
726
726
|
...r
|
|
727
727
|
},
|
|
728
728
|
!!c && /* @__PURE__ */ a.createElement("title", null, c),
|
|
729
729
|
m,
|
|
730
|
-
|
|
730
|
+
v.get(h ?? I)
|
|
731
731
|
);
|
|
732
732
|
}
|
|
733
733
|
);
|
|
734
|
-
|
|
735
|
-
const ea = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(
|
|
734
|
+
ie.displayName = "IconBase";
|
|
735
|
+
const ea = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(ie, { ref: t, ...o, weights: Wa }));
|
|
736
736
|
ea.displayName = "ArrowLeftIcon";
|
|
737
|
-
const ta = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(
|
|
737
|
+
const ta = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(ie, { ref: t, ...o, weights: $a }));
|
|
738
738
|
ta.displayName = "ArrowsClockwiseIcon";
|
|
739
|
-
const aa = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(
|
|
739
|
+
const aa = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(ie, { ref: t, ...o, weights: Ga }));
|
|
740
740
|
aa.displayName = "CarIcon";
|
|
741
|
-
const oa = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(
|
|
741
|
+
const oa = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(ie, { ref: t, ...o, weights: Ya }));
|
|
742
742
|
oa.displayName = "CircleNotchIcon";
|
|
743
|
-
const na = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(
|
|
743
|
+
const na = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(ie, { ref: t, ...o, weights: qa }));
|
|
744
744
|
na.displayName = "XIcon";
|
|
745
|
-
const ra = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(
|
|
745
|
+
const ra = a.forwardRef((o, t) => /* @__PURE__ */ a.createElement(ie, { ref: t, ...o, weights: Xa }));
|
|
746
746
|
ra.displayName = "XCircleIcon";
|
|
747
747
|
function ia(o) {
|
|
748
748
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
@@ -768,8 +768,8 @@ var la = { exports: {} };
|
|
|
768
768
|
function c() {
|
|
769
769
|
for (var h = 0, p = {}; h < arguments.length; h++) {
|
|
770
770
|
var m = arguments[h];
|
|
771
|
-
for (var
|
|
772
|
-
p[
|
|
771
|
+
for (var v in m)
|
|
772
|
+
p[v] = m[v];
|
|
773
773
|
}
|
|
774
774
|
return p;
|
|
775
775
|
}
|
|
@@ -779,51 +779,51 @@ var la = { exports: {} };
|
|
|
779
779
|
function u(h) {
|
|
780
780
|
function p() {
|
|
781
781
|
}
|
|
782
|
-
function m(r, f,
|
|
782
|
+
function m(r, f, x) {
|
|
783
783
|
if (!(typeof document > "u")) {
|
|
784
|
-
|
|
784
|
+
x = c({
|
|
785
785
|
path: "/"
|
|
786
|
-
}, p.defaults,
|
|
786
|
+
}, p.defaults, x), typeof x.expires == "number" && (x.expires = new Date(/* @__PURE__ */ new Date() * 1 + x.expires * 864e5)), x.expires = x.expires ? x.expires.toUTCString() : "";
|
|
787
787
|
try {
|
|
788
|
-
var
|
|
789
|
-
/^[\{\[]/.test(
|
|
788
|
+
var I = JSON.stringify(f);
|
|
789
|
+
/^[\{\[]/.test(I) && (f = I);
|
|
790
790
|
} catch {
|
|
791
791
|
}
|
|
792
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
|
|
794
|
-
for (var y in
|
|
795
|
-
|
|
796
|
-
return document.cookie = r + "=" + f +
|
|
793
|
+
var k = "";
|
|
794
|
+
for (var y in x)
|
|
795
|
+
x[y] && (k += "; " + y, x[y] !== !0 && (k += "=" + x[y].split(";")[0]));
|
|
796
|
+
return document.cookie = r + "=" + f + k;
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function v(r, f) {
|
|
800
800
|
if (!(typeof document > "u")) {
|
|
801
|
-
for (var
|
|
802
|
-
var y =
|
|
803
|
-
!f &&
|
|
801
|
+
for (var x = {}, I = document.cookie ? document.cookie.split("; ") : [], k = 0; k < I.length; k++) {
|
|
802
|
+
var y = I[k].split("="), H = y.slice(1).join("=");
|
|
803
|
+
!f && H.charAt(0) === '"' && (H = H.slice(1, -1));
|
|
804
804
|
try {
|
|
805
|
-
var
|
|
806
|
-
if (
|
|
805
|
+
var Z = l(y[0]);
|
|
806
|
+
if (H = (h.read || h)(H, Z) || l(H), f)
|
|
807
807
|
try {
|
|
808
|
-
|
|
808
|
+
H = JSON.parse(H);
|
|
809
809
|
} catch {
|
|
810
810
|
}
|
|
811
|
-
if (
|
|
811
|
+
if (x[Z] = H, r === Z)
|
|
812
812
|
break;
|
|
813
813
|
} catch {
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
return r ?
|
|
816
|
+
return r ? x[r] : x;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
return p.set = m, p.get = function(r) {
|
|
820
|
-
return
|
|
820
|
+
return v(
|
|
821
821
|
r,
|
|
822
822
|
!1
|
|
823
823
|
/* read as raw */
|
|
824
824
|
);
|
|
825
825
|
}, p.getJSON = function(r) {
|
|
826
|
-
return
|
|
826
|
+
return v(
|
|
827
827
|
r,
|
|
828
828
|
!0
|
|
829
829
|
/* read as json */
|
|
@@ -847,8 +847,8 @@ function da() {
|
|
|
847
847
|
}
|
|
848
848
|
da.resetWarningCache = ca;
|
|
849
849
|
var ao = function() {
|
|
850
|
-
function o(l, u, h, p, m,
|
|
851
|
-
if (
|
|
850
|
+
function o(l, u, h, p, m, v) {
|
|
851
|
+
if (v !== to) {
|
|
852
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
|
);
|
|
@@ -886,7 +886,7 @@ var ao = function() {
|
|
|
886
886
|
};
|
|
887
887
|
sa.exports = ao();
|
|
888
888
|
var oo = sa.exports;
|
|
889
|
-
const
|
|
889
|
+
const O = /* @__PURE__ */ ia(oo);
|
|
890
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,
|
|
@@ -899,7 +899,7 @@ function ma({ error: o }) {
|
|
|
899
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
|
-
error:
|
|
902
|
+
error: O.string.isRequired
|
|
903
903
|
};
|
|
904
904
|
function no({ className: o, alt: t = "Partbot Logo" }) {
|
|
905
905
|
return /* @__PURE__ */ React.createElement("span", { className: o, role: "img", "aria-label": t }, /* @__PURE__ */ React.createElement(
|
|
@@ -981,75 +981,77 @@ function no({ className: o, alt: t = "Partbot Logo" }) {
|
|
|
981
981
|
))
|
|
982
982
|
));
|
|
983
983
|
}
|
|
984
|
-
const ro = "3.1.
|
|
984
|
+
const ro = "3.1.12", ht = {
|
|
985
985
|
version: ro
|
|
986
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
987
|
function ut(o) {
|
|
988
|
-
const [t, c] = q(!1), [l, u] = q(!1), [h, p] = q(""), [m,
|
|
989
|
-
|
|
988
|
+
const [t, c] = q(!1), [l, u] = q(!1), [h, p] = q(""), [m, v] = q(""), [r, f] = q(null), [x, I] = q(!1), k = Oe(null), [y, H] = q(Bt), [Z, V] = q(null), ge = o.apiKey, ee = o.callbackUrl, S = o.productsUrl, te = o.useGeolocation === "true", le = o.themeColor || "#4f46e5", Ge = o.buttonTheme || "light", we = o.responsive !== void 0 ? o.responsive : !0, Ye = o.intro || "Enter your Number Plate and select your State or Territory to find your vehicle.", Ie = o.placeholder || "PL8SRCH", M = o.supportMessage, C = (o.displayMode === "inline" ? "inline" : "modal") === "inline", ae = o.isOpen !== void 0, be = o.isOpen, De = o.onOpenChange, qe = o.hideDefaultButton || !1, ve = o.onModalClose, Xe = o.autoCloseOnSelect || !1, Pe = o.actionButtonLabel || "Show Products", E = C ? !0 : ae ? be : t;
|
|
989
|
+
B(() => {
|
|
990
990
|
console.log(
|
|
991
991
|
"[PlateSearch] Controlled:",
|
|
992
992
|
ae,
|
|
993
993
|
"isOpenProp:",
|
|
994
|
-
|
|
994
|
+
be,
|
|
995
995
|
"actualOpen:",
|
|
996
|
-
|
|
996
|
+
E,
|
|
997
997
|
"internal open state:",
|
|
998
998
|
t
|
|
999
999
|
);
|
|
1000
|
-
}, [ae,
|
|
1001
|
-
const
|
|
1002
|
-
ae || c(i),
|
|
1003
|
-
},
|
|
1004
|
-
|
|
1000
|
+
}, [ae, be, E, t]);
|
|
1001
|
+
const xe = (i) => {
|
|
1002
|
+
ae || c(i), De && De(i);
|
|
1003
|
+
}, R = () => {
|
|
1004
|
+
if (C)
|
|
1005
|
+
return;
|
|
1006
|
+
xe(!1);
|
|
1005
1007
|
const i = new CustomEvent("plate-search-modal-close", {
|
|
1006
1008
|
detail: { timestamp: Date.now() }
|
|
1007
1009
|
});
|
|
1008
|
-
document.dispatchEvent(i),
|
|
1010
|
+
document.dispatchEvent(i), ve && ve();
|
|
1009
1011
|
};
|
|
1010
|
-
|
|
1012
|
+
B(() => {
|
|
1011
1013
|
console.info(
|
|
1012
1014
|
`Vehicle Registration Search (v${ht.version}) powered by Partbot https://use.partbot.io`
|
|
1013
1015
|
);
|
|
1014
|
-
}, []),
|
|
1016
|
+
}, []), B(() => {
|
|
1015
1017
|
const i = localStorage.getItem(
|
|
1016
1018
|
"partbot_selected_vehicle"
|
|
1017
1019
|
);
|
|
1018
1020
|
if (i) {
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1021
|
-
(
|
|
1022
|
-
)) &&
|
|
1021
|
+
const g = JSON.parse(i);
|
|
1022
|
+
g.description && (g.vehicle_ids.length > 0 || Object.values(g.vehicle).every(
|
|
1023
|
+
(b) => b !== null && b !== "" && (typeof b != "object" || Object.keys(b).length > 0)
|
|
1024
|
+
)) && V(g);
|
|
1023
1025
|
}
|
|
1024
|
-
}, []),
|
|
1025
|
-
document.documentElement.style.setProperty("--partbot-theme",
|
|
1026
|
-
}, [
|
|
1027
|
-
|
|
1028
|
-
const { latitude:
|
|
1026
|
+
}, []), B(() => {
|
|
1027
|
+
document.documentElement.style.setProperty("--partbot-theme", le);
|
|
1028
|
+
}, [le]), B(() => {
|
|
1029
|
+
E && te && "geolocation" in navigator && navigator.geolocation.getCurrentPosition(async function(i) {
|
|
1030
|
+
const { latitude: g, longitude: b } = i.coords;
|
|
1029
1031
|
try {
|
|
1030
1032
|
const ne = await (await fetch(
|
|
1031
|
-
`https://maps.googleapis.com/maps/api/geocode/json?latlng=${
|
|
1033
|
+
`https://maps.googleapis.com/maps/api/geocode/json?latlng=${g},${b}&key=AIzaSyDAdDL5E8iWK_oc0FLqdW-QAhZo84xIX0k`
|
|
1032
1034
|
)).json();
|
|
1033
1035
|
if (ne.results && ne.results[0]) {
|
|
1034
|
-
const
|
|
1035
|
-
(
|
|
1036
|
+
const ce = ne.results[0].address_components.find(
|
|
1037
|
+
(G) => G.types.includes("administrative_area_level_1")
|
|
1036
1038
|
);
|
|
1037
|
-
if (
|
|
1038
|
-
const
|
|
1039
|
-
|
|
1039
|
+
if (ce) {
|
|
1040
|
+
const G = ce.short_name;
|
|
1041
|
+
v(G);
|
|
1040
1042
|
}
|
|
1041
1043
|
}
|
|
1042
|
-
} catch (
|
|
1043
|
-
console.error("Geocoding error:",
|
|
1044
|
+
} catch (_) {
|
|
1045
|
+
console.error("Geocoding error:", _);
|
|
1044
1046
|
}
|
|
1045
1047
|
});
|
|
1046
|
-
}, [te,
|
|
1048
|
+
}, [te, E]), B(() => {
|
|
1047
1049
|
let i = localStorage.getItem("partbot_plate_details");
|
|
1048
1050
|
i && (i = JSON.parse(i), i.plate ? p(i.plate.number) : localStorage.removeItem("partbot_plate_details"));
|
|
1049
|
-
}, []),
|
|
1050
|
-
const i = (
|
|
1051
|
-
var
|
|
1052
|
-
(
|
|
1051
|
+
}, []), B(() => {
|
|
1052
|
+
const i = (g) => {
|
|
1053
|
+
var b;
|
|
1054
|
+
(b = g.detail) != null && b.userSelected && (localStorage.removeItem("partbot_plate_details"), p(""), f(null), V(null));
|
|
1053
1055
|
};
|
|
1054
1056
|
return window.addEventListener("vehicle-search-change", i), () => {
|
|
1055
1057
|
window.removeEventListener(
|
|
@@ -1057,32 +1059,32 @@ function ut(o) {
|
|
|
1057
1059
|
i
|
|
1058
1060
|
);
|
|
1059
1061
|
};
|
|
1060
|
-
}, []),
|
|
1062
|
+
}, []), B(() => {
|
|
1061
1063
|
const i = () => {
|
|
1062
|
-
p(""), f(null),
|
|
1064
|
+
p(""), f(null), V(null);
|
|
1063
1065
|
};
|
|
1064
1066
|
return document.addEventListener("partbot-clear-vehicle", i), () => {
|
|
1065
1067
|
document.removeEventListener("partbot-clear-vehicle", i);
|
|
1066
1068
|
};
|
|
1067
|
-
}, []),
|
|
1068
|
-
|
|
1069
|
-
}, [
|
|
1070
|
-
if (
|
|
1071
|
-
const i = document.documentElement.style.overflow,
|
|
1072
|
-
return
|
|
1073
|
-
document.documentElement.style.overflow = i, document.documentElement.style.paddingRight =
|
|
1069
|
+
}, []), B(() => {
|
|
1070
|
+
E && !l && u(!0), E && k.current && k.current.focus();
|
|
1071
|
+
}, [E, l]), B(() => {
|
|
1072
|
+
if (!C && E) {
|
|
1073
|
+
const i = document.documentElement.style.overflow, g = document.documentElement.style.paddingRight, b = window.innerWidth - document.documentElement.clientWidth;
|
|
1074
|
+
return b > 0 && (document.documentElement.style.paddingRight = `${b}px`), document.documentElement.style.overflow = "hidden", () => {
|
|
1075
|
+
document.documentElement.style.overflow = i, document.documentElement.style.paddingRight = g;
|
|
1074
1076
|
};
|
|
1075
1077
|
}
|
|
1076
|
-
}, [
|
|
1077
|
-
const
|
|
1078
|
+
}, [E, C]);
|
|
1079
|
+
const ye = (i) => {
|
|
1078
1080
|
if (i && i.preventDefault(), !m || !h)
|
|
1079
1081
|
return;
|
|
1080
|
-
|
|
1081
|
-
const
|
|
1082
|
+
I(!0);
|
|
1083
|
+
const g = {
|
|
1082
1084
|
plate: h,
|
|
1083
1085
|
state: m
|
|
1084
1086
|
};
|
|
1085
|
-
async function
|
|
1087
|
+
async function b() {
|
|
1086
1088
|
return (await fetch(y, {
|
|
1087
1089
|
method: "POST",
|
|
1088
1090
|
mode: "cors",
|
|
@@ -1093,27 +1095,27 @@ function ut(o) {
|
|
|
1093
1095
|
// include, *same-origin, omit
|
|
1094
1096
|
headers: {
|
|
1095
1097
|
"Content-Type": "application/json",
|
|
1096
|
-
Authorization: `Basic ${
|
|
1098
|
+
Authorization: `Basic ${ge}`
|
|
1097
1099
|
},
|
|
1098
1100
|
redirect: "follow",
|
|
1099
1101
|
// manual, *follow, error
|
|
1100
1102
|
referrerPolicy: "no-referrer",
|
|
1101
1103
|
// no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
|
|
1102
|
-
body: JSON.stringify(
|
|
1104
|
+
body: JSON.stringify(g)
|
|
1103
1105
|
})).json();
|
|
1104
1106
|
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
}).catch((
|
|
1108
|
-
console.error("Error:",
|
|
1107
|
+
b().then((_) => {
|
|
1108
|
+
I(!1), _.plate ? (localStorage.setItem("partbot_plate_details", JSON.stringify(_)), f(_)) : _ && _.indexOf("Invalid API Key") !== -1 ? f({ error: _ }) : f({ error: "Could not find any matching vehicles." });
|
|
1109
|
+
}).catch((_) => {
|
|
1110
|
+
console.error("Error:", _), f({ error: "Could not find any matching vehicles." });
|
|
1109
1111
|
});
|
|
1110
1112
|
};
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
+
B(() => {
|
|
1114
|
+
ye();
|
|
1113
1115
|
}, [y]);
|
|
1114
|
-
const
|
|
1115
|
-
localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"), ct.remove("partbot_selected_vehicle"), f(null),
|
|
1116
|
-
},
|
|
1116
|
+
const T = (i) => {
|
|
1117
|
+
localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"), ct.remove("partbot_selected_vehicle"), f(null), H(Wt);
|
|
1118
|
+
}, oe = (i) => {
|
|
1117
1119
|
window.open(
|
|
1118
1120
|
`mailto:report@partbot.io?subject=${encodeURIComponent(
|
|
1119
1121
|
"Registration Search Issue"
|
|
@@ -1121,10 +1123,10 @@ function ut(o) {
|
|
|
1121
1123
|
`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:`
|
|
1122
1124
|
)}`
|
|
1123
1125
|
);
|
|
1124
|
-
},
|
|
1125
|
-
p(""), f(null),
|
|
1126
|
-
},
|
|
1127
|
-
var
|
|
1126
|
+
}, se = (i) => {
|
|
1127
|
+
p(""), f(null), H(Bt), V(null), localStorage.removeItem("partbot_plate_details"), localStorage.removeItem("partbot_selected_vehicle"), ct.remove("partbot_selected_vehicle");
|
|
1128
|
+
}, Ee = (i) => {
|
|
1129
|
+
var g = JSON.stringify({
|
|
1128
1130
|
description: i.description,
|
|
1129
1131
|
vehicle_ids: i.vehicle_ids,
|
|
1130
1132
|
vehicle: {
|
|
@@ -1132,38 +1134,38 @@ function ut(o) {
|
|
|
1132
1134
|
year: r.factory_vehicle.year
|
|
1133
1135
|
}
|
|
1134
1136
|
});
|
|
1135
|
-
localStorage.setItem("partbot_selected_vehicle",
|
|
1137
|
+
localStorage.setItem("partbot_selected_vehicle", g), ct.set("partbot_selected_vehicle", g, {
|
|
1136
1138
|
secure: !0
|
|
1137
1139
|
});
|
|
1138
|
-
const
|
|
1140
|
+
const b = {
|
|
1139
1141
|
vehicle_ids: i.vehicle_ids
|
|
1140
1142
|
};
|
|
1141
1143
|
document.dispatchEvent(
|
|
1142
|
-
new CustomEvent("plate-search-change", { detail:
|
|
1144
|
+
new CustomEvent("plate-search-change", { detail: b })
|
|
1143
1145
|
), window.dispatchEvent(
|
|
1144
|
-
new CustomEvent("plate-search-change", { detail:
|
|
1145
|
-
),
|
|
1146
|
-
},
|
|
1147
|
-
if (
|
|
1146
|
+
new CustomEvent("plate-search-change", { detail: b })
|
|
1147
|
+
), V(i), Xe && !C && R(), ee && ee !== window.location.href && (C || R(), window.location.href = ee + window.location.search);
|
|
1148
|
+
}, _e = (i) => {
|
|
1149
|
+
if (R(), S)
|
|
1148
1150
|
try {
|
|
1149
|
-
const
|
|
1150
|
-
if (
|
|
1151
|
+
const g = new URL(S, window.location.origin);
|
|
1152
|
+
if (g.origin !== window.location.origin) {
|
|
1151
1153
|
console.warn(
|
|
1152
1154
|
"Partbot: Blocked navigation to external productsUrl",
|
|
1153
|
-
|
|
1155
|
+
g.toString()
|
|
1154
1156
|
);
|
|
1155
1157
|
return;
|
|
1156
1158
|
}
|
|
1157
|
-
window.location.assign(
|
|
1158
|
-
} catch (
|
|
1159
|
+
window.location.assign(g.href);
|
|
1160
|
+
} catch (g) {
|
|
1159
1161
|
console.error(
|
|
1160
1162
|
"Partbot: Invalid productsUrl provided",
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
+
S,
|
|
1164
|
+
g
|
|
1163
1165
|
);
|
|
1164
1166
|
}
|
|
1165
|
-
},
|
|
1166
|
-
const
|
|
1167
|
+
}, Ae = (i) => {
|
|
1168
|
+
const g = [
|
|
1167
1169
|
"series",
|
|
1168
1170
|
"variant",
|
|
1169
1171
|
"body",
|
|
@@ -1173,73 +1175,73 @@ function ut(o) {
|
|
|
1173
1175
|
"engine_capacity",
|
|
1174
1176
|
"cylinders"
|
|
1175
1177
|
];
|
|
1176
|
-
return Object.entries(i).filter(([
|
|
1178
|
+
return Object.entries(i).filter(([b, _]) => _ !== null && g.includes(b) && typeof _ != "object").map(([b, _]) => b === "cylinders" ? `${_}cyl` : _).join(" ");
|
|
1177
1179
|
};
|
|
1178
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, !
|
|
1180
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, !qe && !C && /* @__PURE__ */ React.createElement(
|
|
1179
1181
|
"button",
|
|
1180
1182
|
{
|
|
1181
|
-
onClick: (i) =>
|
|
1183
|
+
onClick: (i) => xe(!E),
|
|
1182
1184
|
type: "button",
|
|
1183
|
-
className: `${
|
|
1185
|
+
className: `${Ge === "dark" ? "bg-transparent text-stone-100 hover:text-white" : "bg-white text-stone-700 hover:bg-stone-50"} inline-flex items-center ${we ? "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`
|
|
1184
1186
|
},
|
|
1185
1187
|
/* @__PURE__ */ React.createElement(
|
|
1186
1188
|
aa,
|
|
1187
1189
|
{
|
|
1188
1190
|
weight: "fill",
|
|
1189
|
-
className:
|
|
1191
|
+
className: we ? "h-5 w-5 md:-ml-1 md:mr-2" : "mr-2 -ml-1 h-5 w-5",
|
|
1190
1192
|
"aria-hidden": "true"
|
|
1191
1193
|
}
|
|
1192
1194
|
),
|
|
1193
1195
|
/* @__PURE__ */ React.createElement(
|
|
1194
1196
|
"span",
|
|
1195
1197
|
{
|
|
1196
|
-
className:
|
|
1198
|
+
className: we ? "hidden md:inline mt-0.5" : "inline mt-0.5"
|
|
1197
1199
|
},
|
|
1198
|
-
h ||
|
|
1200
|
+
h || Ie
|
|
1199
1201
|
)
|
|
1200
1202
|
), /* @__PURE__ */ React.createElement(
|
|
1201
1203
|
"div",
|
|
1202
1204
|
{
|
|
1203
|
-
className: `${
|
|
1204
|
-
style: {
|
|
1205
|
+
className: C ? "inline-container" : `${E ? "modal-container modal-container-open" : "modal-container modal-container-close"}`,
|
|
1206
|
+
style: C ? void 0 : {
|
|
1205
1207
|
zIndex: 2147483647,
|
|
1206
|
-
...!
|
|
1208
|
+
...!E && !l ? { display: "none" } : {}
|
|
1207
1209
|
},
|
|
1208
1210
|
onClick: (i) => {
|
|
1209
|
-
i.target === i.currentTarget &&
|
|
1211
|
+
!C && i.target === i.currentTarget && R();
|
|
1210
1212
|
}
|
|
1211
1213
|
},
|
|
1212
1214
|
/* @__PURE__ */ React.createElement(
|
|
1213
1215
|
"div",
|
|
1214
1216
|
{
|
|
1215
|
-
role: "dialog",
|
|
1216
|
-
"aria-modal": "true",
|
|
1217
|
-
"aria-label": "Number plate search dialog",
|
|
1218
|
-
className:
|
|
1217
|
+
role: C ? "region" : "dialog",
|
|
1218
|
+
"aria-modal": C ? void 0 : "true",
|
|
1219
|
+
"aria-label": C ? "Number plate search" : "Number plate search dialog",
|
|
1220
|
+
className: C ? "inline-panel" : E ? "modal modal-open" : "modal modal-close"
|
|
1219
1221
|
},
|
|
1220
|
-
/* @__PURE__ */ React.createElement("div", { className: "absolute top-0 right-0 pt-4 pr-4" }, /* @__PURE__ */ React.createElement(
|
|
1222
|
+
!C && /* @__PURE__ */ React.createElement("div", { className: "absolute top-0 right-0 pt-4 pr-4" }, /* @__PURE__ */ React.createElement(
|
|
1221
1223
|
"button",
|
|
1222
1224
|
{
|
|
1223
1225
|
type: "button",
|
|
1224
1226
|
className: "focus:outline-none focus:ring-bg-theme-color rounded-md bg-white text-stone-400 hover:text-stone-500",
|
|
1225
|
-
onClick: () =>
|
|
1227
|
+
onClick: () => R()
|
|
1226
1228
|
},
|
|
1227
1229
|
/* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "Close"),
|
|
1228
1230
|
/* @__PURE__ */ React.createElement(na, { size: 16, weight: "bold", "aria-hidden": "true" })
|
|
1229
1231
|
)),
|
|
1230
|
-
r && !
|
|
1232
|
+
r && !Z && /* @__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(i, g) {
|
|
1231
1233
|
return /* @__PURE__ */ React.createElement(
|
|
1232
1234
|
"div",
|
|
1233
1235
|
{
|
|
1234
|
-
key:
|
|
1236
|
+
key: g,
|
|
1235
1237
|
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"
|
|
1236
1238
|
},
|
|
1237
|
-
/* @__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" }, i.description), /* @__PURE__ */ React.createElement("div", { className: "text-stone-600" },
|
|
1239
|
+
/* @__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" }, i.description), /* @__PURE__ */ React.createElement("div", { className: "text-stone-600" }, Ae(i.vehicle)))),
|
|
1238
1240
|
/* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
1239
1241
|
"button",
|
|
1240
1242
|
{
|
|
1241
1243
|
className: "justify-center rounded-md border border-transparent bg-theme-color px-2 py-1.5 text-xs font-medium text-white shadow-sm",
|
|
1242
|
-
onClick: () =>
|
|
1244
|
+
onClick: () => Ee(i)
|
|
1243
1245
|
},
|
|
1244
1246
|
"Select vehicle"
|
|
1245
1247
|
))
|
|
@@ -1261,39 +1263,39 @@ function ut(o) {
|
|
|
1261
1263
|
}
|
|
1262
1264
|
)
|
|
1263
1265
|
)), /* @__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(
|
|
1264
|
-
(i,
|
|
1266
|
+
(i, g) => /* @__PURE__ */ React.createElement(
|
|
1265
1267
|
"div",
|
|
1266
1268
|
{
|
|
1267
|
-
key:
|
|
1269
|
+
key: g,
|
|
1268
1270
|
className: "flex items-center justify-between rounded-md border border-stone-200 p-3 text-sm"
|
|
1269
1271
|
},
|
|
1270
1272
|
/* @__PURE__ */ React.createElement("div", null, r.differing_attributes.map(
|
|
1271
|
-
(
|
|
1273
|
+
(b) => /* @__PURE__ */ React.createElement(
|
|
1272
1274
|
"div",
|
|
1273
1275
|
{
|
|
1274
|
-
key:
|
|
1276
|
+
key: b,
|
|
1275
1277
|
className: "text-xs text-stone-600"
|
|
1276
1278
|
},
|
|
1277
|
-
/* @__PURE__ */ React.createElement("span", { className: "font-medium capitalize" },
|
|
1279
|
+
/* @__PURE__ */ React.createElement("span", { className: "font-medium capitalize" }, b, ":"),
|
|
1278
1280
|
" ",
|
|
1279
|
-
i.vehicle[
|
|
1281
|
+
i.vehicle[b]
|
|
1280
1282
|
)
|
|
1281
1283
|
)),
|
|
1282
1284
|
/* @__PURE__ */ React.createElement(
|
|
1283
1285
|
"button",
|
|
1284
1286
|
{
|
|
1285
|
-
onClick: () =>
|
|
1287
|
+
onClick: () => Ee(i),
|
|
1286
1288
|
className: "ml-4 rounded-md bg-theme-color px-3 py-1.5 text-xs font-medium text-white hover:bg-opacity-90"
|
|
1287
1289
|
},
|
|
1288
1290
|
"Select"
|
|
1289
1291
|
)
|
|
1290
1292
|
)
|
|
1291
|
-
)))))) : /* @__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..."),
|
|
1293
|
+
)))))) : /* @__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..."), M && /* @__PURE__ */ React.createElement(
|
|
1292
1294
|
"div",
|
|
1293
1295
|
{
|
|
1294
1296
|
className: "pl8srch-text mx-auto my-6 w-full text-sm text-stone-500",
|
|
1295
1297
|
dangerouslySetInnerHTML: {
|
|
1296
|
-
__html: Vt.sanitize(
|
|
1298
|
+
__html: Vt.sanitize(M)
|
|
1297
1299
|
}
|
|
1298
1300
|
}
|
|
1299
1301
|
), y !== Wt && /* @__PURE__ */ React.createElement(
|
|
@@ -1301,7 +1303,7 @@ function ut(o) {
|
|
|
1301
1303
|
{
|
|
1302
1304
|
type: "button",
|
|
1303
1305
|
className: "mb-5 hidden w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-base font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",
|
|
1304
|
-
onClick:
|
|
1306
|
+
onClick: T
|
|
1305
1307
|
},
|
|
1306
1308
|
"Try Again",
|
|
1307
1309
|
" ",
|
|
@@ -1317,14 +1319,14 @@ function ut(o) {
|
|
|
1317
1319
|
), /* @__PURE__ */ React.createElement("div", { className: "align-center flex justify-between" }, /* @__PURE__ */ React.createElement(
|
|
1318
1320
|
"button",
|
|
1319
1321
|
{
|
|
1320
|
-
onClick:
|
|
1322
|
+
onClick: oe,
|
|
1321
1323
|
className: "text-xs text-theme-color"
|
|
1322
1324
|
},
|
|
1323
1325
|
"Report incorrect search results"
|
|
1324
1326
|
), /* @__PURE__ */ React.createElement(
|
|
1325
1327
|
"button",
|
|
1326
1328
|
{
|
|
1327
|
-
onClick:
|
|
1329
|
+
onClick: se,
|
|
1328
1330
|
className: "text-xs text-theme-color"
|
|
1329
1331
|
},
|
|
1330
1332
|
/* @__PURE__ */ React.createElement(
|
|
@@ -1338,33 +1340,33 @@ function ut(o) {
|
|
|
1338
1340
|
" ",
|
|
1339
1341
|
"Back to search"
|
|
1340
1342
|
))))),
|
|
1341
|
-
|
|
1343
|
+
Z && /* @__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}` : Z.description), Z.vehicle && /* @__PURE__ */ React.createElement("div", { className: "mt-2 text-xs text-stone-600" }, Ae(Z.vehicle))), /* @__PURE__ */ React.createElement("div", { className: "mt-6 flex gap-4" }, /* @__PURE__ */ React.createElement(
|
|
1342
1344
|
"button",
|
|
1343
1345
|
{
|
|
1344
1346
|
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",
|
|
1345
|
-
onClick:
|
|
1347
|
+
onClick: se
|
|
1346
1348
|
},
|
|
1347
1349
|
"Clear Vehicle"
|
|
1348
|
-
),
|
|
1350
|
+
), S && /* @__PURE__ */ React.createElement(
|
|
1349
1351
|
"button",
|
|
1350
1352
|
{
|
|
1351
1353
|
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",
|
|
1352
|
-
onClick:
|
|
1354
|
+
onClick: _e
|
|
1353
1355
|
},
|
|
1354
|
-
|
|
1356
|
+
Pe
|
|
1355
1357
|
)))),
|
|
1356
|
-
!
|
|
1358
|
+
!Z && !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(
|
|
1357
1359
|
"div",
|
|
1358
1360
|
{
|
|
1359
1361
|
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!",
|
|
1360
1362
|
dangerouslySetInnerHTML: {
|
|
1361
|
-
__html: Vt.sanitize(
|
|
1363
|
+
__html: Vt.sanitize(Ye)
|
|
1362
1364
|
}
|
|
1363
1365
|
}
|
|
1364
1366
|
)), /* @__PURE__ */ React.createElement(
|
|
1365
1367
|
"form",
|
|
1366
1368
|
{
|
|
1367
|
-
onSubmit:
|
|
1369
|
+
onSubmit: ye,
|
|
1368
1370
|
className: "flex flex-col items-center text-black"
|
|
1369
1371
|
},
|
|
1370
1372
|
/* @__PURE__ */ React.createElement(
|
|
@@ -1372,40 +1374,40 @@ function ut(o) {
|
|
|
1372
1374
|
{
|
|
1373
1375
|
type: "text",
|
|
1374
1376
|
name: "plate",
|
|
1375
|
-
ref:
|
|
1377
|
+
ref: k,
|
|
1376
1378
|
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"}`,
|
|
1377
|
-
placeholder:
|
|
1379
|
+
placeholder: Ie,
|
|
1378
1380
|
value: h,
|
|
1379
1381
|
onChange: (i) => p(i.target.value.toUpperCase())
|
|
1380
1382
|
}
|
|
1381
1383
|
),
|
|
1382
|
-
/* @__PURE__ */ React.createElement("span", { className: "relative z-0 my-5 flex w-full rounded-md items-stretch shadow-sm" }, jt.map((i,
|
|
1383
|
-
let
|
|
1384
|
-
return i === m && (
|
|
1384
|
+
/* @__PURE__ */ React.createElement("span", { className: "relative z-0 my-5 flex w-full rounded-md items-stretch shadow-sm" }, jt.map((i, g) => {
|
|
1385
|
+
let b = "bg-white text-stone-700 hover:bg-stone-50 border-stone-300";
|
|
1386
|
+
return i === m && (b = "bg-theme-color text-white hover:bg-theme-color border-theme-color"), g === 0 ? /* @__PURE__ */ React.createElement(
|
|
1385
1387
|
"button",
|
|
1386
1388
|
{
|
|
1387
1389
|
key: i,
|
|
1388
|
-
onClick: (
|
|
1390
|
+
onClick: (_) => v(i),
|
|
1389
1391
|
type: "button",
|
|
1390
|
-
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 ${
|
|
1392
|
+
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 ${b}`
|
|
1391
1393
|
},
|
|
1392
1394
|
i
|
|
1393
|
-
) : jt.length ===
|
|
1395
|
+
) : jt.length === g + 1 ? /* @__PURE__ */ React.createElement(
|
|
1394
1396
|
"button",
|
|
1395
1397
|
{
|
|
1396
1398
|
key: i,
|
|
1397
|
-
onClick: (
|
|
1399
|
+
onClick: (_) => v(i),
|
|
1398
1400
|
type: "button",
|
|
1399
|
-
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 ${
|
|
1401
|
+
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 ${b}`
|
|
1400
1402
|
},
|
|
1401
1403
|
i
|
|
1402
1404
|
) : /* @__PURE__ */ React.createElement(
|
|
1403
1405
|
"button",
|
|
1404
1406
|
{
|
|
1405
1407
|
key: i,
|
|
1406
|
-
onClick: (
|
|
1408
|
+
onClick: (_) => v(i),
|
|
1407
1409
|
type: "button",
|
|
1408
|
-
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 ${
|
|
1410
|
+
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 ${b}`
|
|
1409
1411
|
},
|
|
1410
1412
|
i
|
|
1411
1413
|
);
|
|
@@ -1417,7 +1419,7 @@ function ut(o) {
|
|
|
1417
1419
|
className: "hover:bg-theme-color-800 flex w-full items-center justify-center rounded-md border border-transparent bg-theme-color px-4 py-2 text-base font-medium text-white shadow-sm"
|
|
1418
1420
|
},
|
|
1419
1421
|
"Find your vehicle",
|
|
1420
|
-
|
|
1422
|
+
x ? /* @__PURE__ */ React.createElement(
|
|
1421
1423
|
oa,
|
|
1422
1424
|
{
|
|
1423
1425
|
weight: "bold",
|
|
@@ -1442,31 +1444,32 @@ function ut(o) {
|
|
|
1442
1444
|
));
|
|
1443
1445
|
}
|
|
1444
1446
|
ut.propTypes = {
|
|
1445
|
-
apiKey:
|
|
1446
|
-
callbackUrl:
|
|
1447
|
-
productsUrl:
|
|
1448
|
-
themeColor:
|
|
1449
|
-
useGeolocation:
|
|
1450
|
-
buttonTheme:
|
|
1451
|
-
responsive:
|
|
1452
|
-
placeholder:
|
|
1453
|
-
intro:
|
|
1454
|
-
supportMessage:
|
|
1455
|
-
actionButtonLabel:
|
|
1456
|
-
isOpen:
|
|
1457
|
-
onOpenChange:
|
|
1458
|
-
hideDefaultButton:
|
|
1459
|
-
onModalClose:
|
|
1460
|
-
autoCloseOnSelect:
|
|
1447
|
+
apiKey: O.string.isRequired,
|
|
1448
|
+
callbackUrl: O.string,
|
|
1449
|
+
productsUrl: O.string,
|
|
1450
|
+
themeColor: O.string,
|
|
1451
|
+
useGeolocation: O.bool,
|
|
1452
|
+
buttonTheme: O.oneOf(["light", "dark"]),
|
|
1453
|
+
responsive: O.bool,
|
|
1454
|
+
placeholder: O.string,
|
|
1455
|
+
intro: O.string,
|
|
1456
|
+
supportMessage: O.string,
|
|
1457
|
+
actionButtonLabel: O.string,
|
|
1458
|
+
isOpen: O.bool,
|
|
1459
|
+
onOpenChange: O.func,
|
|
1460
|
+
hideDefaultButton: O.bool,
|
|
1461
|
+
onModalClose: O.func,
|
|
1462
|
+
autoCloseOnSelect: O.bool,
|
|
1463
|
+
displayMode: O.oneOf(["modal", "inline"])
|
|
1461
1464
|
};
|
|
1462
|
-
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)}}';
|
|
1465
|
+
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}.inline-container{margin-top:calc(var(--spacing)*4);width:100%;position:relative}.inline-panel{width:100%;height:auto;max-width:var(--container-lg);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);border-radius:var(--radius-xl);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;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);display:inline-block;overflow:hidden}@media (min-width:48rem){.inline-panel{padding-inline:calc(var(--spacing)*12)}}.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)}}';
|
|
1463
1466
|
function io({ domElement: o, webComponentInstance: t }) {
|
|
1464
|
-
const c = o.getAttribute("data-api-key"), l = 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"),
|
|
1465
|
-
return
|
|
1467
|
+
const c = o.getAttribute("data-api-key"), l = 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"), v = o.getAttribute("data-responsive") ? o.getAttribute("data-responsive") === "true" : !0, r = o.getAttribute("data-placeholder"), f = o.getAttribute("data-intro"), x = o.getAttribute("data-support-message"), I = o.getAttribute("data-action-button-label"), k = o.getAttribute("data-display-mode") || "modal", y = o.getAttribute("data-hide-default-button") === "true", H = o.getAttribute("data-auto-close-on-select") === "true", [Z, V] = q(!1);
|
|
1468
|
+
return B(() => {
|
|
1466
1469
|
t && (t._modalControls = {
|
|
1467
|
-
open: () =>
|
|
1468
|
-
close: () =>
|
|
1469
|
-
toggle: () =>
|
|
1470
|
+
open: () => V(!0),
|
|
1471
|
+
close: () => V(!1),
|
|
1472
|
+
toggle: () => V((ge) => !ge)
|
|
1470
1473
|
});
|
|
1471
1474
|
}, [t]), /* @__PURE__ */ React.createElement("div", { className: "App" }, /* @__PURE__ */ React.createElement(
|
|
1472
1475
|
ut,
|
|
@@ -1478,21 +1481,22 @@ function io({ domElement: o, webComponentInstance: t }) {
|
|
|
1478
1481
|
themeColor: h,
|
|
1479
1482
|
useGeolocation: p,
|
|
1480
1483
|
buttonTheme: m,
|
|
1481
|
-
responsive:
|
|
1484
|
+
responsive: v,
|
|
1482
1485
|
placeholder: r,
|
|
1483
1486
|
intro: f,
|
|
1484
|
-
supportMessage:
|
|
1485
|
-
actionButtonLabel:
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1487
|
+
supportMessage: x,
|
|
1488
|
+
actionButtonLabel: I,
|
|
1489
|
+
displayMode: k,
|
|
1490
|
+
hideDefaultButton: y,
|
|
1491
|
+
autoCloseOnSelect: H,
|
|
1492
|
+
isOpen: Z,
|
|
1493
|
+
onOpenChange: V
|
|
1490
1494
|
}
|
|
1491
1495
|
));
|
|
1492
1496
|
}
|
|
1493
|
-
class
|
|
1497
|
+
class fe extends HTMLElement {
|
|
1494
1498
|
constructor() {
|
|
1495
|
-
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";
|
|
1499
|
+
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.displayMode = this.dataset.displayMode || "modal", this.hideDefaultButton = this.dataset.hideDefaultButton === "true", this.autoCloseOnSelect = this.dataset.autoCloseOnSelect === "true";
|
|
1496
1500
|
}
|
|
1497
1501
|
connectedCallback() {
|
|
1498
1502
|
var p;
|
|
@@ -1524,47 +1528,48 @@ class we extends HTMLElement {
|
|
|
1524
1528
|
["data-intro", this.intro],
|
|
1525
1529
|
["data-support-message", this.supportMessage],
|
|
1526
1530
|
["data-action-button-label", this.actionButtonLabel],
|
|
1531
|
+
["data-display-mode", this.displayMode],
|
|
1527
1532
|
["data-hide-default-button", this.hideDefaultButton],
|
|
1528
1533
|
["data-auto-close-on-select", this.autoCloseOnSelect]
|
|
1529
|
-
].filter(([m,
|
|
1534
|
+
].filter(([m, v]) => v != null).map(([m, v]) => `${m}="${v}"`).join(" "), u = (m, v) => {
|
|
1530
1535
|
if (!/@import/i.test(m) && "adoptedStyleSheets" in Document.prototype)
|
|
1531
1536
|
try {
|
|
1532
|
-
const
|
|
1533
|
-
return
|
|
1534
|
-
} catch (
|
|
1535
|
-
console.warn("Partbot: constructable sheet failed, falling back",
|
|
1537
|
+
const x = new CSSStyleSheet();
|
|
1538
|
+
return x.replaceSync(m), console.info(`Partbot: using constructable stylesheet (${v})`), x;
|
|
1539
|
+
} catch (x) {
|
|
1540
|
+
console.warn("Partbot: constructable sheet failed, falling back", x);
|
|
1536
1541
|
}
|
|
1537
1542
|
const f = document.createElement("style");
|
|
1538
1543
|
return f.textContent = m, this.debug && console.info(
|
|
1539
|
-
`Partbot: using <style> element fallback (${
|
|
1544
|
+
`Partbot: using <style> element fallback (${v})`,
|
|
1540
1545
|
f.textContent
|
|
1541
1546
|
), f;
|
|
1542
1547
|
};
|
|
1543
|
-
|
|
1548
|
+
fe.__stylePromise || (t ? fe.__stylePromise = fetch(t).then((m) => {
|
|
1544
1549
|
if (!m.ok) throw new Error(`HTTP ${m.status}`);
|
|
1545
1550
|
return m.text();
|
|
1546
1551
|
}).then((m) => u(m, t.href)).catch((m) => (console.warn(
|
|
1547
1552
|
"Partbot: external stylesheet failed, falling back to inline",
|
|
1548
1553
|
m
|
|
1549
|
-
), u(pt, "inline-fallback"))) :
|
|
1554
|
+
), u(pt, "inline-fallback"))) : fe.__stylePromise = Promise.resolve(
|
|
1550
1555
|
u(pt, "inline")
|
|
1551
1556
|
));
|
|
1552
1557
|
const h = document.createElement("template");
|
|
1553
1558
|
if (h.innerHTML = `
|
|
1554
|
-
<div class="partbot-plate-search isolate" ${l}></div>`, this.attachShadow({ mode: "open" }),
|
|
1555
|
-
var
|
|
1559
|
+
<div class="partbot-plate-search isolate" ${l}></div>`, this.attachShadow({ mode: "open" }), fe.__stylePromise.then((m) => {
|
|
1560
|
+
var v, r;
|
|
1556
1561
|
if (m) {
|
|
1557
1562
|
if (m instanceof CSSStyleSheet ? this.shadowRoot.adoptedStyleSheets = [m] : m instanceof HTMLStyleElement && this.shadowRoot.prepend(m.cloneNode(!0)), this.debug)
|
|
1558
1563
|
try {
|
|
1559
|
-
const f = (
|
|
1564
|
+
const f = (v = this.shadowRoot.adoptedStyleSheets) == null ? void 0 : v[0];
|
|
1560
1565
|
f && console.info(
|
|
1561
1566
|
"Partbot debug: first rule in adopted sheet →",
|
|
1562
1567
|
(r = f.cssRules[0]) == null ? void 0 : r.cssText
|
|
1563
1568
|
);
|
|
1564
|
-
const
|
|
1569
|
+
const x = getComputedStyle(this).getPropertyValue("--tw-border-style");
|
|
1565
1570
|
console.info(
|
|
1566
1571
|
"Partbot debug: --tw-border-style on :host →",
|
|
1567
|
-
|
|
1572
|
+
x
|
|
1568
1573
|
);
|
|
1569
1574
|
} catch (f) {
|
|
1570
1575
|
console.warn("Partbot debug: failed to inspect stylesheet", f);
|
|
@@ -1598,10 +1603,10 @@ class we extends HTMLElement {
|
|
|
1598
1603
|
this._modalControls && this._modalControls.toggle();
|
|
1599
1604
|
}
|
|
1600
1605
|
}
|
|
1601
|
-
customElements.define("plate-search",
|
|
1606
|
+
customElements.define("plate-search", fe);
|
|
1602
1607
|
const co = ya(
|
|
1603
1608
|
function(t, c) {
|
|
1604
|
-
const l =
|
|
1609
|
+
const l = Oe(null), u = Oe(null), h = Oe(null), p = Oe(null), [m, v] = q(!1);
|
|
1605
1610
|
return Ea(
|
|
1606
1611
|
c,
|
|
1607
1612
|
() => ({
|
|
@@ -1616,7 +1621,7 @@ const co = ya(
|
|
|
1616
1621
|
}
|
|
1617
1622
|
}),
|
|
1618
1623
|
[t.onOpenChange, t.isOpen]
|
|
1619
|
-
),
|
|
1624
|
+
), B(() => {
|
|
1620
1625
|
if (!l.current || u.current) return;
|
|
1621
1626
|
const r = l.current.attachShadow({ mode: "open" });
|
|
1622
1627
|
u.current = r;
|
|
@@ -1636,16 +1641,16 @@ const co = ya(
|
|
|
1636
1641
|
font-style: normal;
|
|
1637
1642
|
}`, document.head.appendChild(y);
|
|
1638
1643
|
}
|
|
1639
|
-
const
|
|
1640
|
-
|
|
1641
|
-
const
|
|
1642
|
-
return p.current =
|
|
1644
|
+
const x = pt.replace(/@import\s+["']https:\/\/fonts\.googleapis\.com[^;]+;/g, "").replace(/@import\s+["']tailwindcss["'];/g, ""), I = document.createElement("style");
|
|
1645
|
+
I.textContent = x, r.appendChild(I);
|
|
1646
|
+
const k = Yt(f);
|
|
1647
|
+
return p.current = k, v(!0), () => {
|
|
1643
1648
|
p.current && (setTimeout(() => {
|
|
1644
1649
|
var y;
|
|
1645
1650
|
(y = p.current) == null || y.unmount();
|
|
1646
1651
|
}, 0), p.current = null);
|
|
1647
1652
|
};
|
|
1648
|
-
}, []),
|
|
1653
|
+
}, []), B(() => {
|
|
1649
1654
|
if (p.current && m) {
|
|
1650
1655
|
console.log(
|
|
1651
1656
|
"[PlateSearchShadowWrapper] Rendering with isOpen:",
|
|
@@ -1668,6 +1673,7 @@ const co = ya(
|
|
|
1668
1673
|
t.intro,
|
|
1669
1674
|
t.supportMessage,
|
|
1670
1675
|
t.actionButtonLabel,
|
|
1676
|
+
t.displayMode,
|
|
1671
1677
|
t.onOpenChange,
|
|
1672
1678
|
t.hideDefaultButton,
|
|
1673
1679
|
t.onModalClose,
|
|
@@ -1686,12 +1692,12 @@ const co = ya(
|
|
|
1686
1692
|
}
|
|
1687
1693
|
), mo = _a;
|
|
1688
1694
|
typeof window < "u" && (window.React = window.React || Gt);
|
|
1689
|
-
const
|
|
1695
|
+
const re = document.querySelector("plate-search");
|
|
1690
1696
|
var $t;
|
|
1691
|
-
if (
|
|
1692
|
-
const o = (($t =
|
|
1697
|
+
if (re) {
|
|
1698
|
+
const o = (($t = re.shadowRoot) == null ? void 0 : $t.querySelector(
|
|
1693
1699
|
".partbot-plate-search"
|
|
1694
|
-
)) ||
|
|
1700
|
+
)) || re.querySelector(".partbot-plate-search");
|
|
1695
1701
|
if (!o)
|
|
1696
1702
|
console.error("Partbot: failed to locate .partbot-plate-search container");
|
|
1697
1703
|
else {
|
|
@@ -1700,11 +1706,11 @@ if (le) {
|
|
|
1700
1706
|
t || (t = Yt(o)), t.render(
|
|
1701
1707
|
Gt.createElement(io, {
|
|
1702
1708
|
domElement: o,
|
|
1703
|
-
webComponentInstance:
|
|
1709
|
+
webComponentInstance: re
|
|
1704
1710
|
})
|
|
1705
1711
|
);
|
|
1706
1712
|
}, l = [
|
|
1707
|
-
...
|
|
1713
|
+
...re.shadowRoot ? re.shadowRoot.querySelectorAll("link") : re.querySelectorAll("link")
|
|
1708
1714
|
];
|
|
1709
1715
|
if (l.length === 0)
|
|
1710
1716
|
c();
|