@ddict/popup 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/popup.css +1 -1
- package/dist/popup.es.js +260 -248
- package/dist/popup.umd.js +7 -7
- package/package.json +1 -1
package/dist/popup.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as
|
|
1
|
+
import { openBlock as y, createElementBlock as O, createElementVNode as g, computed as w, unref as M, shallowRef as cn, watch as H, triggerRef as rt, onScopeDispose as Xe, ref as S, onUnmounted as wt, inject as Le, watchEffect as re, onMounted as xe, cloneVNode as Et, h as Se, Fragment as Z, defineComponent as ae, provide as et, reactive as St, nextTick as Q, toRaw as K, mergeModels as dn, useModel as fn, createBlock as ee, withCtx as Ve, createVNode as B, renderList as le, normalizeClass as Ce, toDisplayString as te, effectScope as Ot, markRaw as de, hasInjectionContext as pn, getCurrentInstance as $t, isRef as _e, isReactive as tt, toRef as Ze, getCurrentScope as It, toRefs as at, createCommentVNode as X, withModifiers as vn, createTextVNode as hn, withDirectives as Lt, vModelText as Tt, pushScopeId as mn, popScopeId as gn } from "vue";
|
|
2
2
|
const bn = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%200%2096%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.151%208.94498H35.7256V23.055H40.151C44.7473%2023.055%2047.826%2020.0825%2047.826%2015.9795C47.8267%2011.8093%2044.7678%208.94498%2040.151%208.94498ZM40.1312%2021.025H37.993V10.9974H40.1312C43.4217%2010.9974%2045.4972%2012.9846%2045.4972%2015.9795C45.4965%2018.9296%2043.4012%2021.025%2040.1312%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M54.5158%208.94498H50.0903V23.055H54.5158C59.1121%2023.055%2062.1908%2020.0825%2062.1908%2015.9795C62.1914%2011.8093%2059.1351%208.94498%2054.5158%208.94498ZM54.496%2021.025H52.3578V10.9974H54.496C57.789%2010.9974%2059.8619%2012.9846%2059.8619%2015.9795C59.8613%2018.9296%2057.766%2021.025%2054.496%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M66.7237%208.94498H64.4575V23.055H66.7237V8.94498Z'%20fill='%233B5695'/%3e%3cpath%20d='M76.4301%2010.7837C78.29%2010.7837%2079.7436%2011.6603%2080.7487%2013.2207L82.4589%2011.9591C81.2401%209.97057%2078.9957%208.70953%2076.409%208.70953C72.3898%208.64555%2068.9048%2011.9591%2068.9906%2016C68.9048%2020.0403%2072.3898%2023.3544%2076.409%2023.2905C79.0385%2023.2905%2081.2618%2022.0294%2082.4589%2020.0409L80.7487%2018.7793C79.7436%2020.3397%2078.29%2021.2163%2076.4301%2021.2163C73.544%2021.2163%2071.3418%2018.993%2071.3418%2016C71.3418%2013.007%2073.5433%2010.7837%2076.4301%2010.7837Z'%20fill='%233B5695'/%3e%3cpath%20d='M83.3135%208.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.66351%204.7121H4.604V15.4427L6.87208%2013.3839V6.79143H8.64559C11.4639%206.79143%2013.2835%208.47857%2013.2835%2011.0877C13.2835%2013.6916%2011.421%2015.4427%208.64559%2015.4427H4.604V17.5016H8.66351C12.7531%2017.5016%2015.6098%2014.8644%2015.6098%2011.0877C15.6104%207.27575%2012.8196%204.7121%208.66351%204.7121Z'%20fill='%233B5695'/%3e%3cpath%20d='M26.2425%209.25528H21.5502L20.7537%2014.293L21.4523%2014.3308L21.4069%2014.7294C21.3916%2014.8656%2021.3289%2015.0448%2021.112%2015.1734C21.1017%2015.9399%2021.0845%2017.0493%2020.9706%2018.1766H26.5937V19.8586H21.4677C22.4133%2022.9424%2024.1254%2024.9648%2026.5611%2025.8669L27.1536%2026.0864L26.6795%2026.5048C26.4875%2026.6737%2026.2182%2027.0141%2026.0896%2027.2489L25.9258%2027.5438L25.6155%2027.4152C23.167%2026.4095%2021.4223%2024.4926%2020.2905%2021.563C19.3602%2024.3365%2017.5797%2026.2553%2014.8592%2027.428L14.5438%2027.5617L14.3775%2027.2642C14.2764%2027.08%2014.0294%2026.7876%2013.8151%2026.5989L13.3564%2026.1951L13.9239%2025.9655C16.4555%2024.9392%2018.064%2023.1414%2018.8228%2020.4837C19.6647%2019.8381%2020.2099%2018.8221%2020.2169%2017.6801V4.53231C20.2169%202.58349%2018.6334%201%2016.6846%201H3.53487C1.58349%201%200%202.58349%200%204.53231V17.6795C0%2019.6283%201.58349%2021.2143%203.53487%2021.2143H8.25528V27.2431C8.25528%2029.3135%209.93986%2031%2012.0096%2031H26.2431C28.3161%2031%2029.9974%2029.3129%2029.9974%2027.2431V13.0096C29.9974%2010.9392%2028.3154%209.25528%2026.2425%209.25528ZM3.53487%2019.4517C2.55662%2019.4517%201.762%2018.6603%201.762%2017.6788V4.53231C1.762%203.55662%202.55598%202.762%203.53487%202.762H16.6839C17.6571%202.762%2018.4517%203.55598%2018.4517%204.53231V17.6795C18.4517%2017.778%2018.444%2017.8733%2018.4267%2017.9667C18.3941%2018.1811%2018.3231%2018.38%2018.215%2018.5592C17.9149%2019.0934%2017.3372%2019.4517%2016.6846%2019.4517H3.53487Z'%20fill='%233B5695'/%3e%3c/svg%3e", Cn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.5%203.25C5.25736%203.25%204.25%204.25736%204.25%205.5H3.5H2.75C2.75%203.42893%204.42893%201.75%206.5%201.75H17.5C17.9142%201.75%2018.25%202.08579%2018.25%202.5V15.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25H6.5C5.26293%2016.25%204.25%2017.2576%204.25%2018.5C4.25%2018.9142%203.91421%2019.25%203.5%2019.25C3.08579%2019.25%202.75%2018.9142%202.75%2018.5V5.5C2.75%205.49993%202.75%205.5%203.5%205.5C4.25%205.5%204.25%205.49993%204.25%205.5V15.5017C4.87779%2015.0296%205.65755%2014.75%206.5%2014.75H16.75V3.25H6.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.5%202.75C20.9142%202.75%2021.25%203.08579%2021.25%203.5V21.5C21.25%2021.9142%2020.9142%2022.25%2020.5%2022.25H6.5C4.42893%2022.25%202.75%2020.5711%202.75%2018.5C2.75%2016.4289%204.42893%2014.75%206.5%2014.75H17.4995C17.4996%2014.75%2017.5%2014.75%2017.5%2015.5C17.5%2016.25%2017.5001%2016.25%2017.5%2016.25H6.5C5.25736%2016.25%204.25%2017.2574%204.25%2018.5C4.25%2019.7426%205.25736%2020.75%206.5%2020.75H19.75V3.5C19.75%203.08579%2020.0858%202.75%2020.5%202.75ZM18.25%2015.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25V15.5L17.4995%2014.75C17.9137%2014.75%2018.25%2015.0858%2018.25%2015.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2018.5C6.25%2018.0858%206.58579%2017.75%207%2017.75H17C17.4142%2017.75%2017.75%2018.0858%2017.75%2018.5C17.75%2018.9142%2017.4142%2019.25%2017%2019.25H7C6.58579%2019.25%206.25%2018.9142%206.25%2018.5Z'%20fill='%233B5695'/%3e%3c/svg%3e", _n = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.467%202.47236C2.75841%202.17799%203.23328%202.17559%203.52764%202.467L8.52765%207.41675C8.82201%207.70816%208.82441%208.18303%208.533%208.4774C8.24159%208.77176%207.76672%208.77416%207.47235%208.48275L2.47236%203.533C2.17799%203.24159%202.17559%202.76672%202.467%202.47236Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.533%2015.4724C8.82441%2015.7667%208.82201%2016.2416%208.52765%2016.533L3.52765%2021.4828C3.23328%2021.7742%202.75841%2021.7718%202.467%2021.4774C2.17559%2021.183%202.17799%2020.7082%202.47236%2020.4167L7.47235%2015.467C7.76672%2015.1756%208.24159%2015.178%208.533%2015.4724Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.52%2015.4697C15.8129%2015.1768%2016.2877%2015.1768%2016.5806%2015.4697L21.5304%2020.4194C21.8233%2020.7123%2021.8233%2021.1872%2021.5304%2021.4801C21.2375%2021.773%2020.7626%2021.773%2020.4697%2021.4801L15.52%2016.5303C15.2271%2016.2374%2015.2271%2015.7626%2015.52%2015.4697Z'%20fill='%233B5695'/%3e%3cpath%20d='M21.4801%202.46967C21.773%202.76256%2021.773%203.23744%2021.4801%203.53033L16.5303%208.48008C16.2374%208.77297%2015.7626%208.77297%2015.4697%208.48008C15.1768%208.18719%2015.1768%207.71231%2015.4697%207.41942L20.4194%202.46967C20.7123%202.17678%2021.1872%202.17678%2021.4801%202.46967Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.75%203C15.75%202.58579%2016.0858%202.25%2016.5%202.25H21C21.4142%202.25%2021.75%202.58579%2021.75%203V7.5C21.75%207.91421%2021.4142%208.25%2021%208.25C20.5858%208.25%2020.25%207.91421%2020.25%207.5V3.75H16.5C16.0858%203.75%2015.75%203.41421%2015.75%203Z'%20fill='%233B5695'/%3e%3cpath%20d='M21%2015.75C21.4142%2015.75%2021.75%2016.0858%2021.75%2016.5V21C21.75%2021.4142%2021.4142%2021.75%2021%2021.75H16.5C16.0858%2021.75%2015.75%2021.4142%2015.75%2021C15.75%2020.5858%2016.0858%2020.25%2016.5%2020.25H20.25V16.5C20.25%2016.0858%2020.5858%2015.75%2021%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M3%2015.75C3.41421%2015.75%203.75%2016.0858%203.75%2016.5V20.25H7.5C7.91421%2020.25%208.25%2020.5858%208.25%2021C8.25%2021.4142%207.91421%2021.75%207.5%2021.75H3C2.58579%2021.75%202.25%2021.4142%202.25%2021V16.5C2.25%2016.0858%202.58579%2015.75%203%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M2.25%203C2.25%202.58579%202.58579%202.25%203%202.25H7.5C7.91421%202.25%208.25%202.58579%208.25%203C8.25%203.41421%207.91421%203.75%207.5%203.75H3.75V7.5C3.75%207.91421%203.41421%208.25%203%208.25C2.58579%208.25%202.25%207.91421%202.25%207.5V3Z'%20fill='%233B5695'/%3e%3c/svg%3e", xn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%233B5695'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%233B5695'/%3e%3c/svg%3e", yn = { class: "flex justify-between" }, wn = /* @__PURE__ */ g("div", { class: "flex flex-row" }, [
|
|
3
3
|
/* @__PURE__ */ g("img", {
|
|
4
4
|
src: bn,
|
|
@@ -28,7 +28,7 @@ const bn = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%20
|
|
|
28
28
|
emits: ["settings", "fullScreen", "reader"],
|
|
29
29
|
setup(e, { emit: o }) {
|
|
30
30
|
const t = o;
|
|
31
|
-
return (n, s) => (
|
|
31
|
+
return (n, s) => (y(), O("div", yn, [
|
|
32
32
|
wn,
|
|
33
33
|
g("div", En, [
|
|
34
34
|
g("button", {
|
|
@@ -54,18 +54,18 @@ function ye(e, o, t) {
|
|
|
54
54
|
let u;
|
|
55
55
|
t.key && ((i = t.debug) != null && i.call(t)) && (u = Date.now());
|
|
56
56
|
const p = e();
|
|
57
|
-
if (!(p.length !== n.length || p.some((
|
|
57
|
+
if (!(p.length !== n.length || p.some((h, m) => n[m] !== h)))
|
|
58
58
|
return s;
|
|
59
59
|
n = p;
|
|
60
60
|
let v;
|
|
61
61
|
if (t.key && ((r = t.debug) != null && r.call(t)) && (v = Date.now()), s = o(...p), t.key && ((l = t.debug) != null && l.call(t))) {
|
|
62
|
-
const
|
|
63
|
-
for (
|
|
64
|
-
|
|
65
|
-
return
|
|
62
|
+
const h = Math.round((Date.now() - u) * 100) / 100, m = Math.round((Date.now() - v) * 100) / 100, $ = m / 16, N = (R, I) => {
|
|
63
|
+
for (R = String(R); R.length < I; )
|
|
64
|
+
R = " " + R;
|
|
65
|
+
return R;
|
|
66
66
|
};
|
|
67
67
|
console.info(
|
|
68
|
-
`%c⏱ ${
|
|
68
|
+
`%c⏱ ${N(m, 5)} /${N(h, 5)} ms`,
|
|
69
69
|
`
|
|
70
70
|
font-size: .6rem;
|
|
71
71
|
font-weight: bold;
|
|
@@ -307,13 +307,13 @@ class Bn {
|
|
|
307
307
|
this.options.measureElement(D, void 0, this)
|
|
308
308
|
);
|
|
309
309
|
});
|
|
310
|
-
const
|
|
310
|
+
const h = i(f), m = this.options.lanes === 1 ? p[f - 1] : this.getFurthestMeasurement(p, f), $ = m ? m.end + this.options.gap : n + s, N = l.get(h), R = typeof N == "number" ? N : this.options.estimateSize(f), I = $ + R, k = m ? m.lane : f % this.options.lanes;
|
|
311
311
|
p[f] = {
|
|
312
312
|
index: f,
|
|
313
313
|
start: $,
|
|
314
|
-
size:
|
|
314
|
+
size: R,
|
|
315
315
|
end: I,
|
|
316
|
-
key:
|
|
316
|
+
key: h,
|
|
317
317
|
lane: k,
|
|
318
318
|
measureElement: v
|
|
319
319
|
};
|
|
@@ -526,7 +526,7 @@ function zn(e) {
|
|
|
526
526
|
}
|
|
527
527
|
function Un(e) {
|
|
528
528
|
return zn(
|
|
529
|
-
|
|
529
|
+
w(() => ({
|
|
530
530
|
observeElementRect: Nn,
|
|
531
531
|
observeElementOffset: Dn,
|
|
532
532
|
scrollToFn: jn,
|
|
@@ -535,8 +535,8 @@ function Un(e) {
|
|
|
535
535
|
);
|
|
536
536
|
}
|
|
537
537
|
function Zn(e, o, t) {
|
|
538
|
-
let n = S(t == null ? void 0 : t.value), s =
|
|
539
|
-
return [
|
|
538
|
+
let n = S(t == null ? void 0 : t.value), s = w(() => e.value !== void 0);
|
|
539
|
+
return [w(() => s.value ? e.value : n.value), function(i) {
|
|
540
540
|
return s.value || (n.value = i), o == null ? void 0 : o(i);
|
|
541
541
|
}];
|
|
542
542
|
}
|
|
@@ -692,7 +692,7 @@ function ao(e, o, t) {
|
|
|
692
692
|
window.addEventListener(e, o, t), n(() => window.removeEventListener(e, o, t));
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
|
-
function uo(e, o, t =
|
|
695
|
+
function uo(e, o, t = w(() => !0)) {
|
|
696
696
|
function n(i, r) {
|
|
697
697
|
if (!t.value || i.defaultPrevented) return;
|
|
698
698
|
let l = r(i);
|
|
@@ -774,26 +774,26 @@ function Ge({ props: e, attrs: o, slots: t, slot: n, name: s }) {
|
|
|
774
774
|
let { as: l, ...a } = je(e, ["unmount", "static"]), u = (i = t.default) == null ? void 0 : i.call(t, n), p = {};
|
|
775
775
|
if (n) {
|
|
776
776
|
let f = !1, v = [];
|
|
777
|
-
for (let [
|
|
777
|
+
for (let [h, m] of Object.entries(n)) typeof m == "boolean" && (f = !0), m === !0 && v.push(h);
|
|
778
778
|
f && (p["data-headlessui-state"] = v.join(" "));
|
|
779
779
|
}
|
|
780
780
|
if (l === "template") {
|
|
781
781
|
if (u = kt(u ?? []), Object.keys(a).length > 0 || Object.keys(o).length > 0) {
|
|
782
782
|
let [f, ...v] = u ?? [];
|
|
783
|
-
if (!mo(f) || v.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${s} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(a).concat(Object.keys(o)).map(($) => $.trim()).filter(($,
|
|
783
|
+
if (!mo(f) || v.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${s} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(a).concat(Object.keys(o)).map(($) => $.trim()).filter(($, N, R) => R.indexOf($) === N).sort(($, N) => $.localeCompare(N)).map(($) => ` - ${$}`).join(`
|
|
784
784
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map(($) => ` - ${$}`).join(`
|
|
785
785
|
`)].join(`
|
|
786
786
|
`));
|
|
787
|
-
let
|
|
788
|
-
for (let $ in
|
|
789
|
-
return
|
|
787
|
+
let h = Rt((r = f.props) != null ? r : {}, a, p), m = Et(f, h, !0);
|
|
788
|
+
for (let $ in h) $.startsWith("on") && (m.props || (m.props = {}), m.props[$] = h[$]);
|
|
789
|
+
return m;
|
|
790
790
|
}
|
|
791
791
|
return Array.isArray(u) && u.length === 1 ? u[0] : u;
|
|
792
792
|
}
|
|
793
793
|
return Se(l, Object.assign({}, a, p), { default: () => u });
|
|
794
794
|
}
|
|
795
795
|
function kt(e) {
|
|
796
|
-
return e.flatMap((o) => o.type ===
|
|
796
|
+
return e.flatMap((o) => o.type === Z ? kt(o.children) : [o]);
|
|
797
797
|
}
|
|
798
798
|
function Rt(...e) {
|
|
799
799
|
if (e.length === 0) return {};
|
|
@@ -838,7 +838,7 @@ function bo() {
|
|
|
838
838
|
function Co(e) {
|
|
839
839
|
et(At, e);
|
|
840
840
|
}
|
|
841
|
-
var
|
|
841
|
+
var W = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(W || {}), Dt = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(Dt || {});
|
|
842
842
|
function _o(e) {
|
|
843
843
|
function o() {
|
|
844
844
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", o));
|
|
@@ -913,16 +913,16 @@ function ve(e) {
|
|
|
913
913
|
return o;
|
|
914
914
|
}
|
|
915
915
|
let zt = Symbol("VirtualContext"), Oo = ae({ name: "VirtualProvider", setup(e, { slots: o }) {
|
|
916
|
-
let t = ve("VirtualProvider"), n =
|
|
916
|
+
let t = ve("VirtualProvider"), n = w(() => {
|
|
917
917
|
let l = V(t.optionsRef);
|
|
918
918
|
if (!l) return { start: 0, end: 0 };
|
|
919
919
|
let a = window.getComputedStyle(l);
|
|
920
920
|
return { start: parseFloat(a.paddingBlockStart || a.paddingTop), end: parseFloat(a.paddingBlockEnd || a.paddingBottom) };
|
|
921
|
-
}), s = Un(
|
|
921
|
+
}), s = Un(w(() => ({ scrollPaddingStart: n.value.start, scrollPaddingEnd: n.value.end, count: t.virtual.value.options.length, estimateSize() {
|
|
922
922
|
return 40;
|
|
923
923
|
}, getScrollElement() {
|
|
924
924
|
return V(t.optionsRef);
|
|
925
|
-
}, overscan: 12 }))), i =
|
|
925
|
+
}, overscan: 12 }))), i = w(() => {
|
|
926
926
|
var l;
|
|
927
927
|
return (l = t.virtual.value) == null ? void 0 : l.options;
|
|
928
928
|
}), r = S(0);
|
|
@@ -935,12 +935,12 @@ let zt = Symbol("VirtualContext"), Oo = ae({ name: "VirtualProvider", setup(e, {
|
|
|
935
935
|
}
|
|
936
936
|
} }, s.value.getVirtualItems().map((l) => Et(o.default({ option: t.virtual.value.options[l.index], open: t.comboboxState.value === 0 })[0], { key: `${r.value}-${l.index}`, "data-index": l.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": l.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${l.start}px)`, overflowAnchor: "none" } })))];
|
|
937
937
|
} }), $o = ae({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: o, attrs: t, emit: n }) {
|
|
938
|
-
let s = S(1), i = S(null), r = S(null), l = S(null), a = S(null), u = S({ static: !1, hold: !1 }), p = S([]), f = S(null), v = S(2),
|
|
939
|
-
function
|
|
940
|
-
let d = f.value !== null ? p.value[f.value] : null, x = c(p.value.slice()), E = x.length > 0 && x[0].dataRef.order.value !== null ? x.sort((
|
|
938
|
+
let s = S(1), i = S(null), r = S(null), l = S(null), a = S(null), u = S({ static: !1, hold: !1 }), p = S([]), f = S(null), v = S(2), h = S(!1);
|
|
939
|
+
function m(c = (d) => d) {
|
|
940
|
+
let d = f.value !== null ? p.value[f.value] : null, x = c(p.value.slice()), E = x.length > 0 && x[0].dataRef.order.value !== null ? x.sort((A, G) => A.dataRef.order.value - G.dataRef.order.value) : lo(x, (A) => V(A.dataRef.domRef)), P = d ? E.indexOf(d) : null;
|
|
941
941
|
return P === -1 && (P = null), { options: E, activeOptionIndex: P };
|
|
942
942
|
}
|
|
943
|
-
let $ =
|
|
943
|
+
let $ = w(() => e.multiple ? 1 : 0), N = w(() => e.nullable), [R, I] = Zn(w(() => e.modelValue), (c) => n("update:modelValue", c), w(() => e.defaultValue)), k = w(() => R.value === void 0 ? se($.value, { 1: [], 0: void 0 }) : R.value), D = null, _ = null;
|
|
944
944
|
function T(c) {
|
|
945
945
|
return se($.value, { 0() {
|
|
946
946
|
return I == null ? void 0 : I(c);
|
|
@@ -949,7 +949,7 @@ let zt = Symbol("VirtualContext"), Oo = ae({ name: "VirtualProvider", setup(e, {
|
|
|
949
949
|
return E === -1 ? d.push(x) : d.splice(E, 1), I == null ? void 0 : I(d);
|
|
950
950
|
} });
|
|
951
951
|
}
|
|
952
|
-
let C =
|
|
952
|
+
let C = w(() => {
|
|
953
953
|
});
|
|
954
954
|
H([C], ([c], [d]) => {
|
|
955
955
|
if (b.virtual.value && c && d && f.value !== null) {
|
|
@@ -965,10 +965,10 @@ let zt = Symbol("VirtualContext"), Oo = ae({ name: "VirtualProvider", setup(e, {
|
|
|
965
965
|
return e.by === null ? yo(c, d) : e.by(c, d);
|
|
966
966
|
}, calculateIndex(c) {
|
|
967
967
|
return b.virtual.value ? e.by === null ? b.virtual.value.options.indexOf(c) : b.virtual.value.options.findIndex((d) => b.compare(d, c)) : p.value.findIndex((d) => b.compare(d.dataRef.value, c));
|
|
968
|
-
}, defaultValue:
|
|
968
|
+
}, defaultValue: w(() => e.defaultValue), nullable: N, immediate: w(() => !1), virtual: w(() => null), inputRef: r, labelRef: i, buttonRef: l, optionsRef: a, disabled: w(() => e.disabled), options: p, change(c) {
|
|
969
969
|
I(c);
|
|
970
|
-
}, activeOptionIndex:
|
|
971
|
-
if (
|
|
970
|
+
}, activeOptionIndex: w(() => {
|
|
971
|
+
if (h.value && f.value === null && (b.virtual.value ? b.virtual.value.options.length > 0 : p.value.length > 0)) {
|
|
972
972
|
if (b.virtual.value) {
|
|
973
973
|
let d = b.virtual.value.options.findIndex((x) => {
|
|
974
974
|
var E;
|
|
@@ -981,9 +981,9 @@ let zt = Symbol("VirtualContext"), Oo = ae({ name: "VirtualProvider", setup(e, {
|
|
|
981
981
|
}
|
|
982
982
|
return f.value;
|
|
983
983
|
}), activationTrigger: v, optionsPropsRef: u, closeCombobox() {
|
|
984
|
-
|
|
984
|
+
h.value = !1, !e.disabled && s.value !== 1 && (s.value = 1, f.value = null);
|
|
985
985
|
}, openCombobox() {
|
|
986
|
-
if (
|
|
986
|
+
if (h.value = !0, !e.disabled && s.value !== 0) {
|
|
987
987
|
if (b.value.value) {
|
|
988
988
|
let c = b.calculateIndex(b.value.value);
|
|
989
989
|
c !== -1 && (f.value = c);
|
|
@@ -993,26 +993,26 @@ let zt = Symbol("VirtualContext"), Oo = ae({ name: "VirtualProvider", setup(e, {
|
|
|
993
993
|
}, setActivationTrigger(c) {
|
|
994
994
|
v.value = c;
|
|
995
995
|
}, goToOption(c, d, x) {
|
|
996
|
-
|
|
996
|
+
h.value = !1, D !== null && cancelAnimationFrame(D), D = requestAnimationFrame(() => {
|
|
997
997
|
if (e.disabled || a.value && !u.value.static && s.value === 1) return;
|
|
998
998
|
if (b.virtual.value) {
|
|
999
999
|
f.value = c === z.Specific ? d : vt({ focus: c }, { resolveItems: () => b.virtual.value.options, resolveActiveIndex: () => {
|
|
1000
|
-
var
|
|
1001
|
-
return (G = (
|
|
1000
|
+
var A, G;
|
|
1001
|
+
return (G = (A = b.activeOptionIndex.value) != null ? A : b.virtual.value.options.findIndex((q) => {
|
|
1002
1002
|
var F;
|
|
1003
1003
|
return !((F = b.virtual.value) != null && F.disabled(q));
|
|
1004
1004
|
})) != null ? G : null;
|
|
1005
|
-
}, resolveDisabled: (
|
|
1005
|
+
}, resolveDisabled: (A) => b.virtual.value.disabled(A), resolveId() {
|
|
1006
1006
|
throw new Error("Function not implemented.");
|
|
1007
1007
|
} }), v.value = x ?? 2;
|
|
1008
1008
|
return;
|
|
1009
1009
|
}
|
|
1010
|
-
let E =
|
|
1010
|
+
let E = m();
|
|
1011
1011
|
if (E.activeOptionIndex === null) {
|
|
1012
|
-
let
|
|
1013
|
-
|
|
1012
|
+
let A = E.options.findIndex((G) => !G.dataRef.disabled);
|
|
1013
|
+
A !== -1 && (E.activeOptionIndex = A);
|
|
1014
1014
|
}
|
|
1015
|
-
let P = c === z.Specific ? d : vt({ focus: c }, { resolveItems: () => E.options, resolveActiveIndex: () => E.activeOptionIndex, resolveId: (
|
|
1015
|
+
let P = c === z.Specific ? d : vt({ focus: c }, { resolveItems: () => E.options, resolveActiveIndex: () => E.activeOptionIndex, resolveId: (A) => A.id, resolveDisabled: (A) => A.dataRef.disabled });
|
|
1016
1016
|
f.value = P, v.value = x ?? 2, p.value = E.options;
|
|
1017
1017
|
});
|
|
1018
1018
|
}, selectOption(c) {
|
|
@@ -1036,18 +1036,18 @@ let zt = Symbol("VirtualContext"), Oo = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1036
1036
|
return;
|
|
1037
1037
|
}
|
|
1038
1038
|
_ && cancelAnimationFrame(_);
|
|
1039
|
-
let E =
|
|
1039
|
+
let E = m((P) => (P.push(x), P));
|
|
1040
1040
|
f.value === null && b.isSelected(d.value.value) && (E.activeOptionIndex = E.options.indexOf(x)), p.value = E.options, f.value = E.activeOptionIndex, v.value = 2, E.options.some((P) => !V(P.dataRef.domRef)) && (_ = requestAnimationFrame(() => {
|
|
1041
|
-
let P =
|
|
1041
|
+
let P = m();
|
|
1042
1042
|
p.value = P.options, f.value = P.activeOptionIndex;
|
|
1043
1043
|
}));
|
|
1044
1044
|
}, unregisterOption(c, d) {
|
|
1045
|
-
if (D !== null && cancelAnimationFrame(D), d && (
|
|
1045
|
+
if (D !== null && cancelAnimationFrame(D), d && (h.value = !0), b.virtual.value) {
|
|
1046
1046
|
p.value = p.value.filter((E) => E.id !== c);
|
|
1047
1047
|
return;
|
|
1048
1048
|
}
|
|
1049
|
-
let x =
|
|
1050
|
-
let P = E.findIndex((
|
|
1049
|
+
let x = m((E) => {
|
|
1050
|
+
let P = E.findIndex((A) => A.id === c);
|
|
1051
1051
|
return P !== -1 && E.splice(P, 1), E;
|
|
1052
1052
|
});
|
|
1053
1053
|
p.value = x.options, f.value = x.activeOptionIndex, v.value = 2;
|
|
@@ -1056,8 +1056,8 @@ let zt = Symbol("VirtualContext"), Oo = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1056
1056
|
}, isActive(c) {
|
|
1057
1057
|
return f.value === b.calculateIndex(c);
|
|
1058
1058
|
} };
|
|
1059
|
-
uo([r, l, a], () => b.closeCombobox(),
|
|
1060
|
-
let L =
|
|
1059
|
+
uo([r, l, a], () => b.closeCombobox(), w(() => s.value === 0)), et(Ht, b), Co(w(() => se(s.value, { 0: $e.Open, 1: $e.Closed })));
|
|
1060
|
+
let L = w(() => {
|
|
1061
1061
|
var c;
|
|
1062
1062
|
return (c = V(r)) == null ? void 0 : c.closest("form");
|
|
1063
1063
|
});
|
|
@@ -1074,8 +1074,8 @@ let zt = Symbol("VirtualContext"), Oo = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1074
1074
|
}, { immediate: !0 });
|
|
1075
1075
|
}), () => {
|
|
1076
1076
|
var c, d, x;
|
|
1077
|
-
let { name: E, disabled: P, form:
|
|
1078
|
-
return Se(
|
|
1077
|
+
let { name: E, disabled: P, form: A, ...G } = e, q = { open: s.value === 0, disabled: P, activeIndex: b.activeOptionIndex.value, activeOption: b.activeOptionIndex.value === null ? null : b.virtual.value ? b.virtual.value.options[(c = b.activeOptionIndex.value) != null ? c : 0] : (x = (d = b.options.value[b.activeOptionIndex.value]) == null ? void 0 : d.dataRef.value) != null ? x : null, value: k.value };
|
|
1078
|
+
return Se(Z, [...E != null && k.value != null ? Ft({ [E]: k.value }).map(([F, un]) => Se(go, ho({ features: Nt.Hidden, key: F, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: A, disabled: P, name: F, value: un }))) : [], pe({ theirProps: { ...t, ...je(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: q, slots: o, attrs: t, name: "Combobox" })]);
|
|
1079
1079
|
};
|
|
1080
1080
|
} });
|
|
1081
1081
|
ae({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t }) {
|
|
@@ -1095,52 +1095,52 @@ let Io = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1095
1095
|
let i = (s = e.id) != null ? s : `headlessui-combobox-button-${Te()}`, r = ve("ComboboxButton");
|
|
1096
1096
|
n({ el: r.buttonRef, $el: r.buttonRef });
|
|
1097
1097
|
function l(p) {
|
|
1098
|
-
r.disabled.value || (r.comboboxState.value === 0 ? r.closeCombobox() : (p.preventDefault(), r.openCombobox()),
|
|
1098
|
+
r.disabled.value || (r.comboboxState.value === 0 ? r.closeCombobox() : (p.preventDefault(), r.openCombobox()), Q(() => {
|
|
1099
1099
|
var f;
|
|
1100
1100
|
return (f = V(r.inputRef)) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
1101
1101
|
}));
|
|
1102
1102
|
}
|
|
1103
1103
|
function a(p) {
|
|
1104
1104
|
switch (p.key) {
|
|
1105
|
-
case
|
|
1106
|
-
p.preventDefault(), p.stopPropagation(), r.comboboxState.value === 1 && r.openCombobox(),
|
|
1105
|
+
case W.ArrowDown:
|
|
1106
|
+
p.preventDefault(), p.stopPropagation(), r.comboboxState.value === 1 && r.openCombobox(), Q(() => {
|
|
1107
1107
|
var f;
|
|
1108
1108
|
return (f = r.inputRef.value) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
1109
1109
|
});
|
|
1110
1110
|
return;
|
|
1111
|
-
case
|
|
1112
|
-
p.preventDefault(), p.stopPropagation(), r.comboboxState.value === 1 && (r.openCombobox(),
|
|
1111
|
+
case W.ArrowUp:
|
|
1112
|
+
p.preventDefault(), p.stopPropagation(), r.comboboxState.value === 1 && (r.openCombobox(), Q(() => {
|
|
1113
1113
|
r.value.value || r.goToOption(z.Last);
|
|
1114
|
-
})),
|
|
1114
|
+
})), Q(() => {
|
|
1115
1115
|
var f;
|
|
1116
1116
|
return (f = r.inputRef.value) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
1117
1117
|
});
|
|
1118
1118
|
return;
|
|
1119
|
-
case
|
|
1119
|
+
case W.Escape:
|
|
1120
1120
|
if (r.comboboxState.value !== 0) return;
|
|
1121
|
-
p.preventDefault(), r.optionsRef.value && !r.optionsPropsRef.value.static && p.stopPropagation(), r.closeCombobox(),
|
|
1121
|
+
p.preventDefault(), r.optionsRef.value && !r.optionsPropsRef.value.static && p.stopPropagation(), r.closeCombobox(), Q(() => {
|
|
1122
1122
|
var f;
|
|
1123
1123
|
return (f = r.inputRef.value) == null ? void 0 : f.focus({ preventScroll: !0 });
|
|
1124
1124
|
});
|
|
1125
1125
|
return;
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
|
-
let u = co(
|
|
1128
|
+
let u = co(w(() => ({ as: e.as, type: o.type })), r.buttonRef);
|
|
1129
1129
|
return () => {
|
|
1130
1130
|
var p, f;
|
|
1131
|
-
let v = { open: r.comboboxState.value === 0, disabled: r.disabled.value, value: r.value.value }, { ...
|
|
1132
|
-
return pe({ ourProps:
|
|
1131
|
+
let v = { open: r.comboboxState.value === 0, disabled: r.disabled.value, value: r.value.value }, { ...h } = e, m = { ref: r.buttonRef, id: i, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (p = V(r.optionsRef)) == null ? void 0 : p.id, "aria-expanded": r.comboboxState.value === 0, "aria-labelledby": r.labelRef.value ? [(f = V(r.labelRef)) == null ? void 0 : f.id, i].join(" ") : void 0, disabled: r.disabled.value === !0 ? !0 : void 0, onKeydown: a, onClick: l };
|
|
1132
|
+
return pe({ ourProps: m, theirProps: h, slot: v, attrs: o, slots: t, name: "ComboboxButton" });
|
|
1133
1133
|
};
|
|
1134
1134
|
} }), Lo = ae({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: o, attrs: t, slots: n, expose: s }) {
|
|
1135
1135
|
var i;
|
|
1136
|
-
let r = (i = e.id) != null ? i : `headlessui-combobox-input-${Te()}`, l = ve("ComboboxInput"), a =
|
|
1136
|
+
let r = (i = e.id) != null ? i : `headlessui-combobox-input-${Te()}`, l = ve("ComboboxInput"), a = w(() => ot(V(l.inputRef))), u = { value: !1 };
|
|
1137
1137
|
s({ el: l.inputRef, $el: l.inputRef });
|
|
1138
1138
|
function p() {
|
|
1139
1139
|
l.change(null);
|
|
1140
1140
|
let _ = V(l.optionsRef);
|
|
1141
1141
|
_ && (_.scrollTop = 0), l.goToOption(z.Nothing);
|
|
1142
1142
|
}
|
|
1143
|
-
let f =
|
|
1143
|
+
let f = w(() => {
|
|
1144
1144
|
var _;
|
|
1145
1145
|
let T = l.value.value;
|
|
1146
1146
|
return V(l.inputRef) ? typeof e.displayValue < "u" && T !== void 0 ? (_ = e.displayValue(T)) != null ? _ : "" : typeof T == "string" ? T : "" : "";
|
|
@@ -1166,20 +1166,20 @@ let Io = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1166
1166
|
});
|
|
1167
1167
|
});
|
|
1168
1168
|
let v = S(!1);
|
|
1169
|
-
function
|
|
1169
|
+
function h() {
|
|
1170
1170
|
v.value = !0;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function m() {
|
|
1173
1173
|
Ae().nextFrame(() => {
|
|
1174
1174
|
v.value = !1;
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
1177
|
let $ = qn();
|
|
1178
|
-
function
|
|
1178
|
+
function N(_) {
|
|
1179
1179
|
switch (u.value = !0, $(() => {
|
|
1180
1180
|
u.value = !1;
|
|
1181
1181
|
}), _.key) {
|
|
1182
|
-
case
|
|
1182
|
+
case W.Enter:
|
|
1183
1183
|
if (u.value = !1, l.comboboxState.value !== 0 || v.value) return;
|
|
1184
1184
|
if (_.preventDefault(), _.stopPropagation(), l.activeOptionIndex.value === null) {
|
|
1185
1185
|
l.closeCombobox();
|
|
@@ -1187,35 +1187,35 @@ let Io = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1187
1187
|
}
|
|
1188
1188
|
l.selectActiveOption(), l.mode.value === 0 && l.closeCombobox();
|
|
1189
1189
|
break;
|
|
1190
|
-
case
|
|
1190
|
+
case W.ArrowDown:
|
|
1191
1191
|
return u.value = !1, _.preventDefault(), _.stopPropagation(), se(l.comboboxState.value, { 0: () => l.goToOption(z.Next), 1: () => l.openCombobox() });
|
|
1192
|
-
case
|
|
1192
|
+
case W.ArrowUp:
|
|
1193
1193
|
return u.value = !1, _.preventDefault(), _.stopPropagation(), se(l.comboboxState.value, { 0: () => l.goToOption(z.Previous), 1: () => {
|
|
1194
|
-
l.openCombobox(),
|
|
1194
|
+
l.openCombobox(), Q(() => {
|
|
1195
1195
|
l.value.value || l.goToOption(z.Last);
|
|
1196
1196
|
});
|
|
1197
1197
|
} });
|
|
1198
|
-
case
|
|
1198
|
+
case W.Home:
|
|
1199
1199
|
if (_.shiftKey) break;
|
|
1200
1200
|
return u.value = !1, _.preventDefault(), _.stopPropagation(), l.goToOption(z.First);
|
|
1201
|
-
case
|
|
1201
|
+
case W.PageUp:
|
|
1202
1202
|
return u.value = !1, _.preventDefault(), _.stopPropagation(), l.goToOption(z.First);
|
|
1203
|
-
case
|
|
1203
|
+
case W.End:
|
|
1204
1204
|
if (_.shiftKey) break;
|
|
1205
1205
|
return u.value = !1, _.preventDefault(), _.stopPropagation(), l.goToOption(z.Last);
|
|
1206
|
-
case
|
|
1206
|
+
case W.PageDown:
|
|
1207
1207
|
return u.value = !1, _.preventDefault(), _.stopPropagation(), l.goToOption(z.Last);
|
|
1208
|
-
case
|
|
1208
|
+
case W.Escape:
|
|
1209
1209
|
if (u.value = !1, l.comboboxState.value !== 0) return;
|
|
1210
1210
|
_.preventDefault(), l.optionsRef.value && !l.optionsPropsRef.value.static && _.stopPropagation(), l.nullable.value && l.mode.value === 0 && l.value.value === null && p(), l.closeCombobox();
|
|
1211
1211
|
break;
|
|
1212
|
-
case
|
|
1212
|
+
case W.Tab:
|
|
1213
1213
|
if (u.value = !1, l.comboboxState.value !== 0) return;
|
|
1214
1214
|
l.mode.value === 0 && l.activationTrigger.value !== 1 && l.selectActiveOption(), l.closeCombobox();
|
|
1215
1215
|
break;
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function R(_) {
|
|
1219
1219
|
o("change", _), l.nullable.value && l.mode.value === 0 && _.target.value === "" && p(), l.openCombobox();
|
|
1220
1220
|
}
|
|
1221
1221
|
function I(_) {
|
|
@@ -1230,14 +1230,14 @@ let Io = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1230
1230
|
l.setActivationTrigger(1);
|
|
1231
1231
|
}));
|
|
1232
1232
|
}
|
|
1233
|
-
let D =
|
|
1233
|
+
let D = w(() => {
|
|
1234
1234
|
var _, T, C, b;
|
|
1235
1235
|
return (b = (C = (T = e.defaultValue) != null ? T : l.defaultValue.value !== void 0 ? (_ = e.displayValue) == null ? void 0 : _.call(e, l.defaultValue.value) : null) != null ? C : l.defaultValue.value) != null ? b : "";
|
|
1236
1236
|
});
|
|
1237
1237
|
return () => {
|
|
1238
1238
|
var _, T, C, b, L, c, d;
|
|
1239
|
-
let x = { open: l.comboboxState.value === 0 }, { displayValue: E, onChange: P, ...
|
|
1240
|
-
return pe({ ourProps: G, theirProps:
|
|
1239
|
+
let x = { open: l.comboboxState.value === 0 }, { displayValue: E, onChange: P, ...A } = e, G = { "aria-controls": (_ = l.optionsRef.value) == null ? void 0 : _.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (T = l.options.value.find((q) => !l.virtual.value.disabled(q.dataRef.value) && l.compare(q.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : T.id : (C = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : C.id, "aria-labelledby": (c = (b = V(l.labelRef)) == null ? void 0 : b.id) != null ? c : (L = V(l.buttonRef)) == null ? void 0 : L.id, "aria-autocomplete": "list", id: r, onCompositionstart: h, onCompositionend: m, onKeydown: N, onInput: R, onFocus: k, onBlur: I, role: "combobox", type: (d = t.type) != null ? d : "text", tabIndex: 0, ref: l.inputRef, defaultValue: D.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
|
|
1240
|
+
return pe({ ourProps: G, theirProps: A, slot: x, attrs: t, slots: n, features: Oe.RenderStrategy | Oe.Static, name: "ComboboxInput" });
|
|
1241
1241
|
};
|
|
1242
1242
|
} }), To = ae({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: o, slots: t, expose: n }) {
|
|
1243
1243
|
let s = ve("ComboboxOptions"), i = `headlessui-combobox-options-${Te()}`;
|
|
@@ -1246,8 +1246,8 @@ let Io = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1246
1246
|
}), re(() => {
|
|
1247
1247
|
s.optionsPropsRef.value.hold = e.hold;
|
|
1248
1248
|
});
|
|
1249
|
-
let r = bo(), l =
|
|
1250
|
-
po({ container:
|
|
1249
|
+
let r = bo(), l = w(() => r !== null ? (r.value & $e.Open) === $e.Open : s.comboboxState.value === 0);
|
|
1250
|
+
po({ container: w(() => V(s.optionsRef)), enabled: w(() => s.comboboxState.value === 0), accept(u) {
|
|
1251
1251
|
return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
1252
1252
|
}, walk(u) {
|
|
1253
1253
|
u.setAttribute("role", "none");
|
|
@@ -1257,21 +1257,21 @@ let Io = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1257
1257
|
}
|
|
1258
1258
|
return () => {
|
|
1259
1259
|
var u, p, f;
|
|
1260
|
-
let v = { open: s.comboboxState.value === 0 },
|
|
1261
|
-
return pe({ ourProps:
|
|
1260
|
+
let v = { open: s.comboboxState.value === 0 }, h = { "aria-labelledby": (f = (u = V(s.labelRef)) == null ? void 0 : u.id) != null ? f : (p = V(s.buttonRef)) == null ? void 0 : p.id, id: i, ref: s.optionsRef, role: "listbox", "aria-multiselectable": s.mode.value === 1 ? !0 : void 0, onMousedown: a }, m = je(e, ["hold"]);
|
|
1261
|
+
return pe({ ourProps: h, theirProps: m, slot: v, attrs: o, slots: s.virtual.value && s.comboboxState.value === 0 ? { ...t, default: () => [Se(Oo, {}, t.default)] } : t, features: Oe.RenderStrategy | Oe.Static, visible: l.value, name: "ComboboxOptions" });
|
|
1262
1262
|
};
|
|
1263
1263
|
} }), Vo = ae({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: o, attrs: t, expose: n }) {
|
|
1264
|
-
let s = ve("ComboboxOption"), i = `headlessui-combobox-option-${Te()}`, r = S(null), l =
|
|
1264
|
+
let s = ve("ComboboxOption"), i = `headlessui-combobox-option-${Te()}`, r = S(null), l = w(() => e.disabled);
|
|
1265
1265
|
n({ el: r, $el: r });
|
|
1266
|
-
let a =
|
|
1266
|
+
let a = w(() => {
|
|
1267
1267
|
var I;
|
|
1268
1268
|
return s.virtual.value ? s.activeOptionIndex.value === s.calculateIndex(e.value) : s.activeOptionIndex.value === null ? !1 : ((I = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : I.id) === i;
|
|
1269
|
-
}), u =
|
|
1269
|
+
}), u = w(() => s.isSelected(e.value)), p = Le(zt, null), f = w(() => ({ disabled: e.disabled, value: e.value, domRef: r, order: w(() => e.order) }));
|
|
1270
1270
|
xe(() => s.registerOption(i, f)), wt(() => s.unregisterOption(i, a.value)), re(() => {
|
|
1271
1271
|
let I = V(r);
|
|
1272
1272
|
I && (p == null || p.value.measureElement(I));
|
|
1273
1273
|
}), re(() => {
|
|
1274
|
-
s.comboboxState.value === 0 && a.value && (s.virtual.value || s.activationTrigger.value !== 0 &&
|
|
1274
|
+
s.comboboxState.value === 0 && a.value && (s.virtual.value || s.activationTrigger.value !== 0 && Q(() => {
|
|
1275
1275
|
var I, k;
|
|
1276
1276
|
return (k = (I = V(r)) == null ? void 0 : I.scrollIntoView) == null ? void 0 : k.call(I, { block: "nearest" });
|
|
1277
1277
|
}));
|
|
@@ -1282,33 +1282,33 @@ let Io = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1282
1282
|
return (k = V(s.inputRef)) == null ? void 0 : k.focus({ preventScroll: !0 });
|
|
1283
1283
|
}), s.mode.value === 0 && s.closeCombobox()));
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function h() {
|
|
1286
1286
|
var I;
|
|
1287
1287
|
if (e.disabled || (I = s.virtual.value) != null && I.disabled(e.value)) return s.goToOption(z.Nothing);
|
|
1288
1288
|
let k = s.calculateIndex(e.value);
|
|
1289
1289
|
s.goToOption(z.Specific, k);
|
|
1290
1290
|
}
|
|
1291
|
-
let
|
|
1291
|
+
let m = fo();
|
|
1292
1292
|
function $(I) {
|
|
1293
|
-
|
|
1293
|
+
m.update(I);
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function N(I) {
|
|
1296
1296
|
var k;
|
|
1297
|
-
if (!
|
|
1297
|
+
if (!m.wasMoved(I) || e.disabled || (k = s.virtual.value) != null && k.disabled(e.value) || a.value) return;
|
|
1298
1298
|
let D = s.calculateIndex(e.value);
|
|
1299
1299
|
s.goToOption(z.Specific, D, 0);
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function R(I) {
|
|
1302
1302
|
var k;
|
|
1303
|
-
|
|
1303
|
+
m.wasMoved(I) && (e.disabled || (k = s.virtual.value) != null && k.disabled(e.value) || a.value && (s.optionsPropsRef.value.hold || s.goToOption(z.Nothing)));
|
|
1304
1304
|
}
|
|
1305
1305
|
return () => {
|
|
1306
|
-
let { disabled: I } = e, k = { active: a.value, selected: u.value, disabled: I }, D = { id: i, ref: r, role: "option", tabIndex: I === !0 ? void 0 : -1, "aria-disabled": I === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: v, onFocus:
|
|
1306
|
+
let { disabled: I } = e, k = { active: a.value, selected: u.value, disabled: I }, D = { id: i, ref: r, role: "option", tabIndex: I === !0 ? void 0 : -1, "aria-disabled": I === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: v, onFocus: h, onPointerenter: $, onMouseenter: $, onPointermove: N, onMousemove: N, onPointerleave: R, onMouseleave: R }, _ = je(e, ["order", "value"]);
|
|
1307
1307
|
return pe({ ourProps: D, theirProps: _, slot: k, attrs: t, slots: o, name: "ComboboxOption" });
|
|
1308
1308
|
};
|
|
1309
1309
|
} });
|
|
1310
1310
|
function Po(e, o) {
|
|
1311
|
-
return
|
|
1311
|
+
return y(), O("svg", {
|
|
1312
1312
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1313
1313
|
viewBox: "0 0 20 20",
|
|
1314
1314
|
fill: "currentColor",
|
|
@@ -1323,7 +1323,7 @@ function Po(e, o) {
|
|
|
1323
1323
|
]);
|
|
1324
1324
|
}
|
|
1325
1325
|
function Mo(e, o) {
|
|
1326
|
-
return
|
|
1326
|
+
return y(), O("svg", {
|
|
1327
1327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1328
1328
|
viewBox: "0 0 20 20",
|
|
1329
1329
|
fill: "currentColor",
|
|
@@ -1338,7 +1338,7 @@ function Mo(e, o) {
|
|
|
1338
1338
|
]);
|
|
1339
1339
|
}
|
|
1340
1340
|
function ko(e, o) {
|
|
1341
|
-
return
|
|
1341
|
+
return y(), O("svg", {
|
|
1342
1342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1343
1343
|
viewBox: "0 0 20 20",
|
|
1344
1344
|
fill: "currentColor",
|
|
@@ -1365,12 +1365,12 @@ const ht = {
|
|
|
1365
1365
|
}),
|
|
1366
1366
|
emits: ["update:modelValue"],
|
|
1367
1367
|
setup(e) {
|
|
1368
|
-
const o = e, t = fn(e, "modelValue"), n = S(""), s = S(null), i =
|
|
1368
|
+
const o = e, t = fn(e, "modelValue"), n = S(""), s = S(null), i = w(() => Object.entries(o.languages).filter(
|
|
1369
1369
|
([, l]) => l.toLowerCase().includes(n.value.toLowerCase())
|
|
1370
1370
|
)), r = (l) => {
|
|
1371
1371
|
l.target.value = "", n.value = "", s.value && s.value.$el.click();
|
|
1372
1372
|
};
|
|
1373
|
-
return (l, a) => (
|
|
1373
|
+
return (l, a) => (y(), ee(M($o), {
|
|
1374
1374
|
modelValue: t.value,
|
|
1375
1375
|
"onUpdate:modelValue": a[3] || (a[3] = (u) => t.value = u),
|
|
1376
1376
|
as: "div",
|
|
@@ -1399,7 +1399,7 @@ const ht = {
|
|
|
1399
1399
|
}, 512),
|
|
1400
1400
|
B(M(To), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50" }, {
|
|
1401
1401
|
default: Ve(() => [
|
|
1402
|
-
(
|
|
1402
|
+
(y(!0), O(Z, null, le(i.value, ([u, p]) => (y(), ee(M(Vo), {
|
|
1403
1403
|
key: u,
|
|
1404
1404
|
value: u
|
|
1405
1405
|
}, {
|
|
@@ -1412,7 +1412,7 @@ const ht = {
|
|
|
1412
1412
|
}, [
|
|
1413
1413
|
g("span", {
|
|
1414
1414
|
class: Ce(["block truncate", v && "font-semibold"])
|
|
1415
|
-
},
|
|
1415
|
+
}, te(p), 3)
|
|
1416
1416
|
], 2)
|
|
1417
1417
|
]),
|
|
1418
1418
|
_: 2
|
|
@@ -1447,10 +1447,10 @@ const ht = {
|
|
|
1447
1447
|
emits: ["swap"],
|
|
1448
1448
|
setup(e, { emit: o }) {
|
|
1449
1449
|
const t = o;
|
|
1450
|
-
return (n, s) => e.isBidirect ? (
|
|
1450
|
+
return (n, s) => e.isBidirect ? (y(), O("button", {
|
|
1451
1451
|
key: 1,
|
|
1452
1452
|
onClick: s[0] || (s[0] = (i) => t("swap"))
|
|
1453
|
-
}, Fo)) : (
|
|
1453
|
+
}, Fo)) : (y(), O("button", Ro, Ao));
|
|
1454
1454
|
}
|
|
1455
1455
|
};
|
|
1456
1456
|
var Zt = !1;
|
|
@@ -2177,10 +2177,10 @@ function _t(e, o, t, n) {
|
|
|
2177
2177
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
2178
2178
|
at(S(s ? s() : {}).value)
|
|
2179
2179
|
) : at(t.state.value[e]);
|
|
2180
|
-
return J(p, i, Object.keys(r || {}).reduce((f, v) => (process.env.NODE_ENV !== "production" && v in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${v}" in store "${e}".`), f[v] = de(
|
|
2180
|
+
return J(p, i, Object.keys(r || {}).reduce((f, v) => (process.env.NODE_ENV !== "production" && v in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${v}" in store "${e}".`), f[v] = de(w(() => {
|
|
2181
2181
|
Ie(t);
|
|
2182
|
-
const
|
|
2183
|
-
return r[v].call(
|
|
2182
|
+
const h = t._s.get(e);
|
|
2183
|
+
return r[v].call(h, h);
|
|
2184
2184
|
})), f), {}));
|
|
2185
2185
|
}
|
|
2186
2186
|
return a = Qe(e, u, o, t, n, !0), a;
|
|
@@ -2195,28 +2195,28 @@ function Qe(e, o, t = {}, n, s, i) {
|
|
|
2195
2195
|
// flush: 'post',
|
|
2196
2196
|
};
|
|
2197
2197
|
process.env.NODE_ENV !== "production" && !Zt && (a.onTrigger = (c) => {
|
|
2198
|
-
u ?
|
|
2198
|
+
u ? h = c : u == !1 && !C._hotUpdating && (Array.isArray(h) ? h.push(c) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
2199
2199
|
});
|
|
2200
|
-
let u, p, f = [], v = [],
|
|
2201
|
-
const
|
|
2202
|
-
!i && !
|
|
2200
|
+
let u, p, f = [], v = [], h;
|
|
2201
|
+
const m = n.state.value[e];
|
|
2202
|
+
!i && !m && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
2203
2203
|
const $ = S({});
|
|
2204
|
-
let
|
|
2205
|
-
function
|
|
2204
|
+
let N;
|
|
2205
|
+
function R(c) {
|
|
2206
2206
|
let d;
|
|
2207
|
-
u = p = !1, process.env.NODE_ENV !== "production" && (
|
|
2207
|
+
u = p = !1, process.env.NODE_ENV !== "production" && (h = []), typeof c == "function" ? (c(n.state.value[e]), d = {
|
|
2208
2208
|
type: ne.patchFunction,
|
|
2209
2209
|
storeId: e,
|
|
2210
|
-
events:
|
|
2210
|
+
events: h
|
|
2211
2211
|
}) : (Ye(n.state.value[e], c), d = {
|
|
2212
2212
|
type: ne.patchObject,
|
|
2213
2213
|
payload: c,
|
|
2214
2214
|
storeId: e,
|
|
2215
|
-
events:
|
|
2215
|
+
events: h
|
|
2216
2216
|
});
|
|
2217
|
-
const x =
|
|
2218
|
-
|
|
2219
|
-
|
|
2217
|
+
const x = N = Symbol();
|
|
2218
|
+
Q().then(() => {
|
|
2219
|
+
N === x && (u = !0);
|
|
2220
2220
|
}), p = !0, ge(f, d, n.state.value[e]);
|
|
2221
2221
|
}
|
|
2222
2222
|
const I = i ? function() {
|
|
@@ -2237,7 +2237,7 @@ function Qe(e, o, t = {}, n, s, i) {
|
|
|
2237
2237
|
return function() {
|
|
2238
2238
|
Ie(n);
|
|
2239
2239
|
const x = Array.from(arguments), E = [], P = [];
|
|
2240
|
-
function
|
|
2240
|
+
function A(F) {
|
|
2241
2241
|
E.push(F);
|
|
2242
2242
|
}
|
|
2243
2243
|
function G(F) {
|
|
@@ -2247,7 +2247,7 @@ function Qe(e, o, t = {}, n, s, i) {
|
|
|
2247
2247
|
args: x,
|
|
2248
2248
|
name: c,
|
|
2249
2249
|
store: C,
|
|
2250
|
-
after:
|
|
2250
|
+
after: A,
|
|
2251
2251
|
onError: G
|
|
2252
2252
|
});
|
|
2253
2253
|
let q;
|
|
@@ -2269,14 +2269,14 @@ function Qe(e, o, t = {}, n, s, i) {
|
|
|
2269
2269
|
// _s: scope,
|
|
2270
2270
|
$id: e,
|
|
2271
2271
|
$onAction: bt.bind(null, v),
|
|
2272
|
-
$patch:
|
|
2272
|
+
$patch: R,
|
|
2273
2273
|
$reset: I,
|
|
2274
2274
|
$subscribe(c, d = {}) {
|
|
2275
2275
|
const x = bt(f, c, d.detached, () => E()), E = r.run(() => H(() => n.state.value[e], (P) => {
|
|
2276
2276
|
(d.flush === "sync" ? p : u) && c({
|
|
2277
2277
|
storeId: e,
|
|
2278
2278
|
type: ne.direct,
|
|
2279
|
-
events:
|
|
2279
|
+
events: h
|
|
2280
2280
|
}, P);
|
|
2281
2281
|
}, J({}, a, d)));
|
|
2282
2282
|
return x;
|
|
@@ -2297,7 +2297,7 @@ function Qe(e, o, t = {}, n, s, i) {
|
|
|
2297
2297
|
for (const c in L) {
|
|
2298
2298
|
const d = L[c];
|
|
2299
2299
|
if (_e(d) && !Ct(d) || tt(d))
|
|
2300
|
-
process.env.NODE_ENV !== "production" && s ? Me($.value, c, Ze(L, c)) : i || (
|
|
2300
|
+
process.env.NODE_ENV !== "production" && s ? Me($.value, c, Ze(L, c)) : i || (m && v2(d) && (_e(d) ? d.value = m[c] : Ye(d, m[c])), n.state.value[e][c] = d), process.env.NODE_ENV !== "production" && _.state.push(c);
|
|
2301
2301
|
else if (typeof d == "function") {
|
|
2302
2302
|
const x = process.env.NODE_ENV !== "production" && s ? d : D(c, d);
|
|
2303
2303
|
L[c] = x, process.env.NODE_ENV !== "production" && (_.actions[c] = d), l.actions[c] = d;
|
|
@@ -2312,7 +2312,7 @@ function Qe(e, o, t = {}, n, s, i) {
|
|
|
2312
2312
|
set: (c) => {
|
|
2313
2313
|
if (process.env.NODE_ENV !== "production" && s)
|
|
2314
2314
|
throw new Error("cannot set hotState");
|
|
2315
|
-
|
|
2315
|
+
R((d) => {
|
|
2316
2316
|
J(d, c);
|
|
2317
2317
|
});
|
|
2318
2318
|
}
|
|
@@ -2325,7 +2325,7 @@ function Qe(e, o, t = {}, n, s, i) {
|
|
|
2325
2325
|
Me(C, d, Ze(c.$state, d));
|
|
2326
2326
|
}), Object.keys(C.$state).forEach((d) => {
|
|
2327
2327
|
d in c.$state || qe(C, d);
|
|
2328
|
-
}), u = !1, p = !1, n.state.value[e] = Ze(c._hmrPayload, "hotState"), p = !0,
|
|
2328
|
+
}), u = !1, p = !1, n.state.value[e] = Ze(c._hmrPayload, "hotState"), p = !0, Q().then(() => {
|
|
2329
2329
|
u = !0;
|
|
2330
2330
|
});
|
|
2331
2331
|
for (const d in c._hmrPayload.actions) {
|
|
@@ -2335,7 +2335,7 @@ function Qe(e, o, t = {}, n, s, i) {
|
|
|
2335
2335
|
for (const d in c._hmrPayload.getters) {
|
|
2336
2336
|
const x = c._hmrPayload.getters[d], E = i ? (
|
|
2337
2337
|
// special handling of options api
|
|
2338
|
-
|
|
2338
|
+
w(() => (Ie(n), x.call(C, C)))
|
|
2339
2339
|
) : x;
|
|
2340
2340
|
Me(C, d, E);
|
|
2341
2341
|
}
|
|
@@ -2373,7 +2373,7 @@ function Qe(e, o, t = {}, n, s, i) {
|
|
|
2373
2373
|
})));
|
|
2374
2374
|
}), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
2375
2375
|
state: () => new MyClass()
|
|
2376
|
-
Found in store "${C.$id}".`),
|
|
2376
|
+
Found in store "${C.$id}".`), m && i && t.hydrate && t.hydrate(C.$state, m), u = !0, p = !0, C;
|
|
2377
2377
|
}
|
|
2378
2378
|
function it(e, o, t) {
|
|
2379
2379
|
let n, s;
|
|
@@ -2400,8 +2400,8 @@ This will fail in production.`);
|
|
|
2400
2400
|
const f = $t();
|
|
2401
2401
|
if (f && f.proxy && // avoid adding stores that are just built for hot module replacement
|
|
2402
2402
|
!a) {
|
|
2403
|
-
const v = f.proxy,
|
|
2404
|
-
|
|
2403
|
+
const v = f.proxy, h = "_pStores" in v ? v._pStores : v._pStores = {};
|
|
2404
|
+
h[n] = p;
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
2407
|
return p;
|
|
@@ -2412,7 +2412,7 @@ const He = it("language", () => {
|
|
|
2412
2412
|
const e = S("auto"), o = S("en"), t = S({
|
|
2413
2413
|
src: [],
|
|
2414
2414
|
target: []
|
|
2415
|
-
}), n =
|
|
2415
|
+
}), n = w(() => t.value.src[e.value]), s = w(() => t.value.target[o.value]);
|
|
2416
2416
|
function i(a, u) {
|
|
2417
2417
|
e.value = a == null ? void 0 : a.src, o.value = a == null ? void 0 : a.target, t.value = u;
|
|
2418
2418
|
}
|
|
@@ -2435,7 +2435,7 @@ const He = it("language", () => {
|
|
|
2435
2435
|
function t() {
|
|
2436
2436
|
o.swap();
|
|
2437
2437
|
}
|
|
2438
|
-
return (n, s) => M(o).languages ? (
|
|
2438
|
+
return (n, s) => M(o).languages ? (y(), O("div", h2, [
|
|
2439
2439
|
B(ht, {
|
|
2440
2440
|
modelValue: M(o).src,
|
|
2441
2441
|
"onUpdate:modelValue": s[0] || (s[0] = (i) => M(o).src = i),
|
|
@@ -2453,7 +2453,7 @@ const He = it("language", () => {
|
|
|
2453
2453
|
languages: M(o).languages.target,
|
|
2454
2454
|
class: "grow"
|
|
2455
2455
|
}, null, 8, ["modelValue", "languages"])
|
|
2456
|
-
])) :
|
|
2456
|
+
])) : X("", !0);
|
|
2457
2457
|
}
|
|
2458
2458
|
}, g2 = {
|
|
2459
2459
|
INPUT_MAX_LENGTH: 5e3,
|
|
@@ -2465,7 +2465,7 @@ const He = it("language", () => {
|
|
|
2465
2465
|
return t;
|
|
2466
2466
|
}, b2 = {}, C2 = { class: "mr-2 loading loading-dots loading-xs" };
|
|
2467
2467
|
function _2(e, o) {
|
|
2468
|
-
return
|
|
2468
|
+
return y(), O("span", C2);
|
|
2469
2469
|
}
|
|
2470
2470
|
const x2 = /* @__PURE__ */ ze(b2, [["render", _2]]), y2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33325%204.66667H3.51125C3.82693%204.6667%204.13239%204.55473%204.37325%204.35067L6.83392%202.26667C6.99592%202.12953%207.19374%202.04156%207.40407%202.01312C7.61441%201.98468%207.82849%202.01696%208.02109%202.10615C8.21369%202.19534%208.37678%202.33772%208.49114%202.51652C8.60551%202.69532%208.66638%202.90309%208.66659%203.11534V12.8847C8.66649%2013.097%208.60565%2013.305%208.49125%2013.4839C8.37685%2013.6628%208.21367%2013.8053%208.02094%2013.8945C7.82822%2013.9837%207.614%2014.0159%207.40356%2013.9874C7.19312%2013.9588%206.99523%2013.8707%206.83325%2013.7333L4.37325%2011.6487C4.13229%2011.4449%203.82685%2011.3331%203.51125%2011.3333H2.33325C2.06804%2011.3333%201.81368%2011.228%201.62615%2011.0404C1.43861%2010.8529%201.33325%2010.5986%201.33325%2010.3333V5.66667C1.33325%205.40145%201.43861%205.1471%201.62615%204.95956C1.81368%204.77203%202.06804%204.66667%202.33325%204.66667ZM11.1779%2011.18C11.5969%2010.763%2011.9294%2010.2674%2012.1562%209.72156C12.3831%209.17572%2012.4999%208.59044%2012.4999%207.99934C12.4999%207.40823%2012.3831%206.82295%2012.1562%206.27711C11.9294%205.73127%2011.5969%205.23564%2011.1779%204.81867C11.1317%204.77098%2011.0765%204.73297%2011.0155%204.70686C10.9544%204.68075%2010.8888%204.66705%2010.8224%204.66657C10.756%204.66609%2010.6902%204.67883%2010.6288%204.70406C10.5674%204.72929%2010.5116%204.76649%2010.4647%204.8135C10.4179%204.86051%2010.3808%204.91639%2010.3558%204.97787C10.3307%205.03935%2010.3181%205.10521%2010.3188%205.17159C10.3195%205.23798%2010.3334%205.30357%2010.3597%205.36453C10.3859%205.42549%2010.4241%205.48061%2010.4719%205.52667C10.7977%205.85079%2011.0562%206.23609%2011.2326%206.66043C11.409%207.08477%2011.4998%207.53979%2011.4998%207.99934C11.4998%208.45888%2011.409%208.9139%2011.2326%209.33824C11.0562%209.76258%2010.7977%2010.1479%2010.4719%2010.472C10.4241%2010.5181%2010.3859%2010.5732%2010.3597%2010.6341C10.3334%2010.6951%2010.3195%2010.7607%2010.3188%2010.8271C10.3181%2010.8935%2010.3307%2010.9593%2010.3558%2011.0208C10.3808%2011.0823%2010.4179%2011.1382%2010.4647%2011.1852C10.5116%2011.2322%2010.5674%2011.2694%2010.6288%2011.2946C10.6902%2011.3198%2010.756%2011.3326%2010.8224%2011.3321C10.8888%2011.3316%2010.9544%2011.3179%2011.0155%2011.2918C11.0765%2011.2657%2011.1317%2011.2277%2011.1779%2011.18ZM12.7113%2013.2127C12.6123%2013.2126%2012.5157%2013.1832%2012.4335%2013.1281C12.3513%2013.0731%2012.2873%2012.9949%2012.2495%2012.9035C12.2118%2012.8121%2012.202%2012.7115%2012.2214%2012.6146C12.2408%2012.5176%2012.2886%2012.4285%2012.3586%2012.3587C12.9317%2011.7866%2013.3865%2011.1071%2013.6967%2010.359C14.0069%209.61101%2014.1666%208.80915%2014.1666%207.99934C14.1666%207.18952%2014.0069%206.38766%2013.6967%205.63963C13.3865%204.8916%2012.9317%204.2121%2012.3586%203.64C12.3122%203.59351%2012.2754%203.53834%2012.2503%203.47764C12.2252%203.41693%2012.2124%203.35188%2012.2124%203.2862C12.2125%203.22052%2012.2255%203.15549%2012.2507%203.09483C12.2759%203.03417%2012.3128%202.97907%2012.3593%202.93267C12.4057%202.88627%2012.4609%202.84948%2012.5216%202.8244C12.5823%202.79932%2012.6474%202.78645%2012.7131%202.78651C12.7787%202.78657%2012.8438%202.79957%2012.9044%202.82476C12.9651%202.84995%2013.0202%202.88685%2013.0666%202.93334C13.7327%203.59825%2014.2612%204.38801%2014.6218%205.25741C14.9824%206.12681%2015.168%207.05879%2015.168%208C15.168%208.94122%2014.9824%209.87319%2014.6218%2010.7426C14.2612%2011.612%2013.7327%2012.4018%2013.0666%2013.0667C13.02%2013.1134%2012.9646%2013.1504%2012.9036%2013.1756C12.8426%2013.2007%2012.7772%2013.2129%2012.7113%2013.2127Z'%20fill='%233B5695'/%3e%3c/svg%3e", w2 = "data:image/svg+xml,%3csvg%20class='swap-on%20fill-current%20h-4%20w-4'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M4.5%207.5a3%203%200%200%201%203-3h9a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203h-9a3%203%200%200%201-3-3v-9Z'%20clip-rule='evenodd'%20fill='%238595BE'/%3e%3c/svg%3e", E2 = {
|
|
2471
2471
|
key: 0,
|
|
@@ -2497,11 +2497,11 @@ const x2 = /* @__PURE__ */ ze(b2, [["render", _2]]), y2 = "data:image/svg+xml,%3
|
|
|
2497
2497
|
}
|
|
2498
2498
|
return n.onended = () => {
|
|
2499
2499
|
t.value = !1;
|
|
2500
|
-
}, (i, r) => (
|
|
2500
|
+
}, (i, r) => (y(), O("button", {
|
|
2501
2501
|
class: "btn btn-xs btn-ghost btn-circle",
|
|
2502
2502
|
onClick: vn(s, ["prevent"])
|
|
2503
2503
|
}, [
|
|
2504
|
-
t.value ? (
|
|
2504
|
+
t.value ? (y(), O("img", S2)) : (y(), O("img", E2))
|
|
2505
2505
|
]));
|
|
2506
2506
|
}
|
|
2507
2507
|
}, $2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", I2 = {}, L2 = { class: "btn btn-xs btn-circle btn-ghost" }, T2 = /* @__PURE__ */ g("img", {
|
|
@@ -2512,7 +2512,7 @@ const x2 = /* @__PURE__ */ ze(b2, [["render", _2]]), y2 = "data:image/svg+xml,%3
|
|
|
2512
2512
|
T2
|
|
2513
2513
|
];
|
|
2514
2514
|
function P2(e, o) {
|
|
2515
|
-
return
|
|
2515
|
+
return y(), O("button", L2, V2);
|
|
2516
2516
|
}
|
|
2517
2517
|
const M2 = /* @__PURE__ */ ze(I2, [["render", P2]]), k2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e", R2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", N2 = { class: "btn btn-xs btn-circle btn-ghost" }, A2 = {
|
|
2518
2518
|
key: 0,
|
|
@@ -2531,8 +2531,8 @@ const M2 = /* @__PURE__ */ ze(I2, [["render", P2]]), k2 = "data:image/svg+xml,%3
|
|
|
2531
2531
|
},
|
|
2532
2532
|
setup(e) {
|
|
2533
2533
|
const o = e;
|
|
2534
|
-
return (t, n) => (
|
|
2535
|
-
o.isFilled ? (
|
|
2534
|
+
return (t, n) => (y(), O("button", N2, [
|
|
2535
|
+
o.isFilled ? (y(), O("img", A2)) : (y(), O("img", D2))
|
|
2536
2536
|
]));
|
|
2537
2537
|
}
|
|
2538
2538
|
}, j2 = { class: "flex flex-row rounded-t-lg bg-white border border-b-0 px-1 pr-1 pt-1 gap-1 items-center" }, B2 = { class: "text-sm text-gray-600" }, H2 = {
|
|
@@ -2582,26 +2582,26 @@ const M2 = /* @__PURE__ */ ze(I2, [["render", P2]]), k2 = "data:image/svg+xml,%3
|
|
|
2582
2582
|
emits: ["clear", "favorite"],
|
|
2583
2583
|
setup(e, { emit: o }) {
|
|
2584
2584
|
const t = e, n = o;
|
|
2585
|
-
return (s, i) => (
|
|
2586
|
-
t.tts ? (
|
|
2585
|
+
return (s, i) => (y(), O("div", j2, [
|
|
2586
|
+
t.tts ? (y(), ee(O2, {
|
|
2587
2587
|
key: 0,
|
|
2588
2588
|
url: t.tts
|
|
2589
|
-
}, null, 8, ["url"])) :
|
|
2589
|
+
}, null, 8, ["url"])) : X("", !0),
|
|
2590
2590
|
g("div", B2, [
|
|
2591
|
-
hn(
|
|
2592
|
-
e.phonetic ? (
|
|
2591
|
+
hn(te(e.srcLabel) + " ", 1),
|
|
2592
|
+
e.phonetic ? (y(), O("span", H2, "- [" + te(t.phonetic) + "]", 1)) : X("", !0)
|
|
2593
2593
|
]),
|
|
2594
2594
|
z2,
|
|
2595
|
-
t.loading ? (
|
|
2596
|
-
t.src && t.isClearBtn ? (
|
|
2595
|
+
t.loading ? (y(), ee(x2, { key: 1 })) : X("", !0),
|
|
2596
|
+
t.src && t.isClearBtn ? (y(), ee(M2, {
|
|
2597
2597
|
key: 2,
|
|
2598
2598
|
onClick: i[0] || (i[0] = (r) => n("clear"))
|
|
2599
|
-
})) :
|
|
2600
|
-
t.src && t.isFavoriteBtn ? (
|
|
2599
|
+
})) : X("", !0),
|
|
2600
|
+
t.src && t.isFavoriteBtn ? (y(), ee(F2, {
|
|
2601
2601
|
key: 3,
|
|
2602
2602
|
isFilled: t.isFavorite,
|
|
2603
2603
|
onClick: i[1] || (i[1] = (r) => n("favorite"))
|
|
2604
|
-
}, null, 8, ["isFilled"])) :
|
|
2604
|
+
}, null, 8, ["isFilled"])) : X("", !0)
|
|
2605
2605
|
]));
|
|
2606
2606
|
}
|
|
2607
2607
|
}, he = it("translation", () => {
|
|
@@ -2611,11 +2611,11 @@ const M2 = /* @__PURE__ */ ze(I2, [["render", P2]]), k2 = "data:image/svg+xml,%3
|
|
|
2611
2611
|
}), n = S(null), s = S([]), i = S([]), r = S([]), l = S([]), a = S({
|
|
2612
2612
|
src: null,
|
|
2613
2613
|
target: null
|
|
2614
|
-
}), u = He(), p =
|
|
2615
|
-
function v(
|
|
2616
|
-
e.value =
|
|
2614
|
+
}), u = He(), p = w(() => u.getLabel(e.value)), f = w(() => u.getLabel(o.value));
|
|
2615
|
+
function v(m) {
|
|
2616
|
+
e.value = m.src, o.value = m.target, t.value = m.phonetic, n.value = m.result, s.value = m.dictionary, i.value = m.definitions, r.value = m.synonyms, l.value = m.examples, a.value = m.tts;
|
|
2617
2617
|
}
|
|
2618
|
-
function
|
|
2618
|
+
function h() {
|
|
2619
2619
|
e.value = null, o.value = null, t.value = {
|
|
2620
2620
|
src: null,
|
|
2621
2621
|
target: null
|
|
@@ -2637,7 +2637,7 @@ const M2 = /* @__PURE__ */ ze(I2, [["render", P2]]), k2 = "data:image/svg+xml,%3
|
|
|
2637
2637
|
examples: l,
|
|
2638
2638
|
tts: a,
|
|
2639
2639
|
init: v,
|
|
2640
|
-
reset:
|
|
2640
|
+
reset: h
|
|
2641
2641
|
};
|
|
2642
2642
|
});
|
|
2643
2643
|
function U2(e) {
|
|
@@ -2694,14 +2694,14 @@ function K2() {
|
|
|
2694
2694
|
}
|
|
2695
2695
|
function Y2(e) {
|
|
2696
2696
|
const o = K2();
|
|
2697
|
-
return
|
|
2697
|
+
return w(() => (o.value, !!e()));
|
|
2698
2698
|
}
|
|
2699
2699
|
function Q2(e, o, t = {}) {
|
|
2700
2700
|
const { window: n = J2, ...s } = t;
|
|
2701
2701
|
let i;
|
|
2702
2702
|
const r = Y2(() => n && "ResizeObserver" in n), l = () => {
|
|
2703
2703
|
i && (i.disconnect(), i = void 0);
|
|
2704
|
-
}, a =
|
|
2704
|
+
}, a = w(() => Array.isArray(e) ? e.map((f) => yt(f)) : [yt(e)]), u = H(
|
|
2705
2705
|
a,
|
|
2706
2706
|
(f) => {
|
|
2707
2707
|
if (l(), r.value && n) {
|
|
@@ -2729,7 +2729,7 @@ function rn(e) {
|
|
|
2729
2729
|
let a = "";
|
|
2730
2730
|
t.value.style[s] = "1px", i.value = (l = t.value) == null ? void 0 : l.scrollHeight, e != null && e.styleTarget ? Fe(e.styleTarget).style[s] = `${i.value}px` : a = `${i.value}px`, t.value.style[s] = a;
|
|
2731
2731
|
}
|
|
2732
|
-
return H([n, t], () =>
|
|
2732
|
+
return H([n, t], () => Q(r), { immediate: !0 }), H(i, () => {
|
|
2733
2733
|
var l;
|
|
2734
2734
|
return (l = e == null ? void 0 : e.onResize) == null ? void 0 : l.call(e);
|
|
2735
2735
|
}), Q2(t, () => r()), e != null && e.watch && H(e.watch, r, { immediate: !0, deep: !0 }), {
|
|
@@ -2748,48 +2748,51 @@ const X2 = {
|
|
|
2748
2748
|
},
|
|
2749
2749
|
emits: ["change", "clear"],
|
|
2750
2750
|
setup(e, { emit: o }) {
|
|
2751
|
-
const t = he(), n = e, s = S(
|
|
2752
|
-
var
|
|
2753
|
-
return (
|
|
2754
|
-
}), a =
|
|
2755
|
-
var
|
|
2756
|
-
return (
|
|
2751
|
+
const t = he(), n = e, s = S(""), i = w(() => t.src), r = w(() => t.srcLabel), l = w(() => {
|
|
2752
|
+
var $;
|
|
2753
|
+
return ($ = t.phonetic) == null ? void 0 : $.src;
|
|
2754
|
+
}), a = w(() => {
|
|
2755
|
+
var $;
|
|
2756
|
+
return ($ = t.tts) == null ? void 0 : $.src;
|
|
2757
2757
|
}), { textarea: u } = rn({ input: s, styleProp: "minHeight" }), p = o, f = q2(() => {
|
|
2758
2758
|
p("change", s.value);
|
|
2759
2759
|
}, g2.INPUT_DEBOUNCE);
|
|
2760
2760
|
function v() {
|
|
2761
2761
|
if (!s.value) {
|
|
2762
|
-
|
|
2762
|
+
h();
|
|
2763
2763
|
return;
|
|
2764
2764
|
}
|
|
2765
2765
|
f();
|
|
2766
2766
|
}
|
|
2767
|
-
function
|
|
2767
|
+
function h() {
|
|
2768
2768
|
p("clear"), s.value = "", u.value.focus();
|
|
2769
2769
|
}
|
|
2770
|
+
async function m() {
|
|
2771
|
+
await Q(), u.value.select();
|
|
2772
|
+
}
|
|
2770
2773
|
return H(
|
|
2771
2774
|
() => n.text,
|
|
2772
|
-
(
|
|
2773
|
-
s.value =
|
|
2775
|
+
($) => {
|
|
2776
|
+
s.value !== $ && m(), s.value = $;
|
|
2774
2777
|
}
|
|
2775
|
-
), (
|
|
2778
|
+
), ($, N) => (y(), O(Z, null, [
|
|
2776
2779
|
B(ln, {
|
|
2777
2780
|
src: i.value,
|
|
2778
2781
|
srcLabel: r.value,
|
|
2779
2782
|
tts: a.value,
|
|
2780
2783
|
phonetic: l.value,
|
|
2781
2784
|
isClearBtn: !0,
|
|
2782
|
-
onClear:
|
|
2785
|
+
onClear: h
|
|
2783
2786
|
}, null, 8, ["src", "srcLabel", "tts", "phonetic"]),
|
|
2784
2787
|
Lt(g("textarea", {
|
|
2785
2788
|
ref_key: "textarea",
|
|
2786
2789
|
ref: u,
|
|
2787
|
-
"onUpdate:modelValue":
|
|
2788
|
-
class: "w-full border rounded-b-md border-t-0 outline-none outline-0 px-3 pl-5 bg-white text-gray-800 font-semibold resize-none pb-3",
|
|
2790
|
+
"onUpdate:modelValue": N[0] || (N[0] = (R) => s.value = R),
|
|
2791
|
+
class: "w-full border rounded-b-md border-t-0 outline-none outline-0 px-3 pl-5 bg-white text-gray-800 font-semibold resize-none pb-3 overflow-x-hidden overflow-y-hidden",
|
|
2789
2792
|
autofocus: "",
|
|
2790
2793
|
rows: "2",
|
|
2791
2794
|
onInput: v,
|
|
2792
|
-
onFocus:
|
|
2795
|
+
onFocus: m
|
|
2793
2796
|
}, null, 544), [
|
|
2794
2797
|
[
|
|
2795
2798
|
Tt,
|
|
@@ -2800,7 +2803,7 @@ const X2 = {
|
|
|
2800
2803
|
])
|
|
2801
2804
|
], 64));
|
|
2802
2805
|
}
|
|
2803
|
-
}, es = /* @__PURE__ */ ze(X2, [["__scopeId", "data-v-
|
|
2806
|
+
}, es = /* @__PURE__ */ ze(X2, [["__scopeId", "data-v-bfa5aec3"]]), ts = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.2018%204.409H8.2373L7.46364%202H2.79867C2.35907%202%202%202.3595%202%202.7995V10.937C2%2011.376%202.36008%2011.7355%202.79867%2011.7355H7.79971L8.53636%2014H13.2013C13.6404%2014%2014%2013.6465%2014%2013.214V5.195C14%204.7625%2013.6404%204.409%2013.2018%204.409ZM5.3702%208.749C4.33499%208.749%203.49481%207.909%203.49481%206.874C3.49481%205.839%204.33499%204.999%205.3702%204.999C5.87631%204.999%206.3004%205.1865%206.62646%205.487L6.13136%205.963C5.9244%205.77181%205.65196%205.66729%205.3702%205.671C4.71757%205.671%204.18846%206.211%204.18846%206.8755C4.18846%207.54%204.71757%208.08%205.3697%208.08C6.12336%208.08%206.43492%207.54%206.46493%207.176L5.3707%207.175V6.533H7.12607C7.15107%206.648%207.17108%206.7615%207.17108%206.915C7.17108%207.9885%206.45393%208.7495%205.3697%208.7495L5.3702%208.749ZM13.7504%2013.214C13.7504%2013.509%2013.5044%2013.75%2013.2018%2013.75H8.76341L10.5883%2011.735H10.5908L10.2207%2010.584L10.2237%2010.5815C10.2237%2010.5815%2010.5078%2010.3375%2010.8623%209.9615C11.2184%2010.347%2011.6775%2010.811%2012.2716%2011.364L12.6572%2010.978C12.0211%2010.401%2011.555%209.943%2011.2119%209.5755C11.6715%209.032%2012.1381%208.348%2012.2366%207.722H13.2538V7.723H13.2548V7.253H10.9884V6.493H10.2527V7.253H9.15049L8.31432%204.648L8.31732%204.659H13.2018C13.5044%204.659%2013.7504%204.899%2013.7504%205.195V13.214ZM10.5078%209.5585C10.2397%209.8325%2010.0362%209.995%2010.0362%209.995L10.0322%209.997L9.30202%207.723H11.6845C11.531%208.265%2011.1904%208.777%2010.8588%209.175C10.2707%208.479%2010.2687%208.253%2010.2687%208.253H9.6576C9.6576%208.253%209.6826%208.5925%2010.5078%209.5585Z'%20fill='%237E7E7E'/%3e%3c/svg%3e", an = it("loader", () => ({ loading: S(!1) })), ns = (e) => (mn("data-v-6aeed8dd"), e = e(), gn(), e), os = { class: "flex flex-col" }, ss = /* @__PURE__ */ ns(() => /* @__PURE__ */ g("div", { class: "w-full flex align-item-center justify-end" }, [
|
|
2804
2807
|
/* @__PURE__ */ g("span", { class: "text-sm" }, "Powered by Google Translate"),
|
|
2805
2808
|
/* @__PURE__ */ g("img", {
|
|
2806
2809
|
src: ts,
|
|
@@ -2813,14 +2816,14 @@ const X2 = {
|
|
|
2813
2816
|
isFavoriteFeatureEnabled: Boolean
|
|
2814
2817
|
},
|
|
2815
2818
|
setup(e) {
|
|
2816
|
-
const o = he(), t = S(!1), n =
|
|
2819
|
+
const o = he(), t = S(!1), n = w(() => o.result), s = w(() => o.target), i = w(() => o.targetLabel), r = w(() => {
|
|
2817
2820
|
var v;
|
|
2818
2821
|
return (v = o.phonetic) == null ? void 0 : v.target;
|
|
2819
|
-
}), l =
|
|
2822
|
+
}), l = w(() => {
|
|
2820
2823
|
var v;
|
|
2821
2824
|
return (v = o.tts) == null ? void 0 : v.target;
|
|
2822
2825
|
}), a = e, u = an(), { textarea: p, input: f } = rn({ input: n, styleProp: "minHeight" });
|
|
2823
|
-
return (v,
|
|
2826
|
+
return (v, h) => (y(), O(Z, null, [
|
|
2824
2827
|
B(ln, {
|
|
2825
2828
|
loading: M(u).loading,
|
|
2826
2829
|
src: s.value,
|
|
@@ -2829,14 +2832,14 @@ const X2 = {
|
|
|
2829
2832
|
isFavoriteBtn: a.isFavoriteFeatureEnabled,
|
|
2830
2833
|
isFavorite: t.value,
|
|
2831
2834
|
phonetic: r.value,
|
|
2832
|
-
onFavorite:
|
|
2835
|
+
onFavorite: h[0] || (h[0] = (m) => t.value = !t.value)
|
|
2833
2836
|
}, null, 8, ["loading", "src", "srcLabel", "tts", "isFavoriteBtn", "isFavorite", "phonetic"]),
|
|
2834
2837
|
g("div", os, [
|
|
2835
2838
|
Lt(g("textarea", {
|
|
2836
2839
|
ref_key: "textarea",
|
|
2837
2840
|
ref: p,
|
|
2838
|
-
"onUpdate:modelValue":
|
|
2839
|
-
class: "w-full border rounded-b-md border-t-0 outline-none outline-0 px-3 pl-5 bg-white text-gray-800 font-semibold resize-none pb-3",
|
|
2841
|
+
"onUpdate:modelValue": h[1] || (h[1] = (m) => _e(f) ? f.value = m : null),
|
|
2842
|
+
class: "w-full border rounded-b-md border-t-0 outline-none outline-0 px-3 pl-5 bg-white text-gray-800 font-semibold resize-none pb-3 overflow-x-hidden overflow-y-hidden",
|
|
2840
2843
|
readonly: "",
|
|
2841
2844
|
rows: "2",
|
|
2842
2845
|
spellcheck: "false"
|
|
@@ -2847,18 +2850,18 @@ const X2 = {
|
|
|
2847
2850
|
])
|
|
2848
2851
|
], 64));
|
|
2849
2852
|
}
|
|
2850
|
-
}, is = /* @__PURE__ */ ze(ls, [["__scopeId", "data-v-
|
|
2853
|
+
}, is = /* @__PURE__ */ ze(ls, [["__scopeId", "data-v-6aeed8dd"]]), rs = { class: "btn btn-sm btn-circle btn-ghost" }, Ue = {
|
|
2851
2854
|
__name: "ToggleBtn",
|
|
2852
2855
|
props: {
|
|
2853
2856
|
isExpanded: Boolean
|
|
2854
2857
|
},
|
|
2855
2858
|
setup(e) {
|
|
2856
2859
|
const o = e;
|
|
2857
|
-
return (t, n) => (
|
|
2858
|
-
o.isExpanded ? (
|
|
2860
|
+
return (t, n) => (y(), O("button", rs, [
|
|
2861
|
+
o.isExpanded ? (y(), ee(M(ko), {
|
|
2859
2862
|
key: 0,
|
|
2860
2863
|
class: "w-7 text-gray-400"
|
|
2861
|
-
})) : (
|
|
2864
|
+
})) : (y(), ee(M(Po), {
|
|
2862
2865
|
key: 1,
|
|
2863
2866
|
class: "w-7 text-gray-400"
|
|
2864
2867
|
}))
|
|
@@ -2868,12 +2871,12 @@ const X2 = {
|
|
|
2868
2871
|
__name: "Dictionary",
|
|
2869
2872
|
emits: ["translate"],
|
|
2870
2873
|
setup(e, { emit: o }) {
|
|
2871
|
-
const t = S(!0), n = he(), s = He(), i =
|
|
2874
|
+
const t = S(!0), n = he(), s = He(), i = w(() => n.dictionary), r = o, l = () => {
|
|
2872
2875
|
t.value = !t.value;
|
|
2873
2876
|
}, a = (u) => {
|
|
2874
2877
|
r("translate", u, n.target, n.src), s.src = n.target, s.target = n.src;
|
|
2875
2878
|
};
|
|
2876
|
-
return (u, p) => (
|
|
2879
|
+
return (u, p) => (y(), O("div", as, [
|
|
2877
2880
|
g("div", us, [
|
|
2878
2881
|
g("div", cs, [
|
|
2879
2882
|
ds,
|
|
@@ -2886,20 +2889,20 @@ const X2 = {
|
|
|
2886
2889
|
class: Ce(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
|
|
2887
2890
|
}, [
|
|
2888
2891
|
g("ul", null, [
|
|
2889
|
-
(
|
|
2892
|
+
(y(!0), O(Z, null, le(i.value, (f, v) => (y(), O("li", {
|
|
2890
2893
|
key: `${f.pos}-${v}`,
|
|
2891
2894
|
class: "mb-2"
|
|
2892
2895
|
}, [
|
|
2893
|
-
g("h5", fs,
|
|
2896
|
+
g("h5", fs, te(f.pos), 1),
|
|
2894
2897
|
g("ul", ps, [
|
|
2895
|
-
(
|
|
2896
|
-
key: `${
|
|
2898
|
+
(y(!0), O(Z, null, le(f.items, (h, m) => (y(), O("li", {
|
|
2899
|
+
key: `${h.word}-${m}`
|
|
2897
2900
|
}, [
|
|
2898
2901
|
g("span", {
|
|
2899
2902
|
class: "p-3 m-0.5 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
|
|
2900
|
-
onClick: ($) => a(
|
|
2901
|
-
},
|
|
2902
|
-
g("small", hs, " - " +
|
|
2903
|
+
onClick: ($) => a(h.word)
|
|
2904
|
+
}, te(h.word), 9, vs),
|
|
2905
|
+
g("small", hs, " - " + te(h.reverse_translation.join(", ")), 1)
|
|
2903
2906
|
]))), 128))
|
|
2904
2907
|
])
|
|
2905
2908
|
]))), 128))
|
|
@@ -2914,10 +2917,10 @@ const X2 = {
|
|
|
2914
2917
|
}, Ss = {
|
|
2915
2918
|
__name: "Definition",
|
|
2916
2919
|
setup(e) {
|
|
2917
|
-
const o = S(!0), t = he(), n =
|
|
2920
|
+
const o = S(!0), t = he(), n = w(() => t.definitions), s = () => {
|
|
2918
2921
|
o.value = !o.value;
|
|
2919
2922
|
};
|
|
2920
|
-
return (i, r) => (
|
|
2923
|
+
return (i, r) => (y(), O("div", gs, [
|
|
2921
2924
|
g("div", bs, [
|
|
2922
2925
|
g("div", Cs, [
|
|
2923
2926
|
_s,
|
|
@@ -2930,19 +2933,19 @@ const X2 = {
|
|
|
2930
2933
|
class: Ce(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
|
|
2931
2934
|
}, [
|
|
2932
2935
|
g("ul", null, [
|
|
2933
|
-
(
|
|
2936
|
+
(y(!0), O(Z, null, le(n.value, (l, a) => (y(), O("li", {
|
|
2934
2937
|
key: `${l.pos}-${a}`,
|
|
2935
2938
|
class: "mb-2"
|
|
2936
2939
|
}, [
|
|
2937
|
-
g("h5", xs,
|
|
2940
|
+
g("h5", xs, te(l.pos), 1),
|
|
2938
2941
|
g("ul", ys, [
|
|
2939
|
-
(
|
|
2942
|
+
(y(!0), O(Z, null, le(l.items, (u, p) => (y(), O("li", {
|
|
2940
2943
|
key: `${u.gloss}-${p}`,
|
|
2941
2944
|
class: "mb-1"
|
|
2942
2945
|
}, [
|
|
2943
|
-
g("span", null,
|
|
2946
|
+
g("span", null, te(u.gloss), 1),
|
|
2944
2947
|
ws,
|
|
2945
|
-
u.example ? (
|
|
2948
|
+
u.example ? (y(), O("small", Es, '"' + te(u.example) + '"', 1)) : X("", !0)
|
|
2946
2949
|
]))), 128))
|
|
2947
2950
|
])
|
|
2948
2951
|
]))), 128))
|
|
@@ -2954,10 +2957,10 @@ const X2 = {
|
|
|
2954
2957
|
}, Os = { class: "card border bg-white rounded-lg" }, $s = { class: "card-body px-4 py-2 gap-0" }, Is = { class: "flex justify-between items-center" }, Ls = /* @__PURE__ */ g("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Examples", -1), Ts = { class: "text-textCustom list-decimal list-outside ml-7 mt-2" }, Vs = ["innerHTML"], Ps = {
|
|
2955
2958
|
__name: "Example",
|
|
2956
2959
|
setup(e) {
|
|
2957
|
-
const o = S(!0), t = he(), n =
|
|
2960
|
+
const o = S(!0), t = he(), n = w(() => t.examples), s = () => {
|
|
2958
2961
|
o.value = !o.value;
|
|
2959
2962
|
};
|
|
2960
|
-
return (i, r) => (
|
|
2963
|
+
return (i, r) => (y(), O("div", Os, [
|
|
2961
2964
|
g("div", $s, [
|
|
2962
2965
|
g("div", Is, [
|
|
2963
2966
|
Ls,
|
|
@@ -2970,7 +2973,7 @@ const X2 = {
|
|
|
2970
2973
|
class: Ce(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
|
|
2971
2974
|
}, [
|
|
2972
2975
|
g("ul", Ts, [
|
|
2973
|
-
(
|
|
2976
|
+
(y(!0), O(Z, null, le(n.value, (l, a) => (y(), O("li", {
|
|
2974
2977
|
key: `${l.definition_id}-${a}`,
|
|
2975
2978
|
innerHTML: l
|
|
2976
2979
|
}, null, 8, Vs))), 128))
|
|
@@ -2983,12 +2986,12 @@ const X2 = {
|
|
|
2983
2986
|
__name: "Synonyms",
|
|
2984
2987
|
emits: ["translate"],
|
|
2985
2988
|
setup(e, { emit: o }) {
|
|
2986
|
-
const t = S(!0), n = he(), s =
|
|
2989
|
+
const t = S(!0), n = he(), s = w(() => n.synonyms), i = o, r = () => {
|
|
2987
2990
|
t.value = !t.value;
|
|
2988
2991
|
}, l = (a) => {
|
|
2989
2992
|
i("translate", a);
|
|
2990
2993
|
};
|
|
2991
|
-
return (a, u) => (
|
|
2994
|
+
return (a, u) => (y(), O("div", Ms, [
|
|
2992
2995
|
g("div", ks, [
|
|
2993
2996
|
g("div", Rs, [
|
|
2994
2997
|
Ns,
|
|
@@ -3001,22 +3004,22 @@ const X2 = {
|
|
|
3001
3004
|
class: Ce(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
|
|
3002
3005
|
}, [
|
|
3003
3006
|
g("ul", null, [
|
|
3004
|
-
(
|
|
3007
|
+
(y(!0), O(Z, null, le(s.value, (p, f) => (y(), O("li", {
|
|
3005
3008
|
key: `${p.pos}-${f}`,
|
|
3006
3009
|
class: "mb-2"
|
|
3007
3010
|
}, [
|
|
3008
|
-
g("h5", As,
|
|
3011
|
+
g("h5", As, te(p.pos), 1),
|
|
3009
3012
|
g("ul", Ds, [
|
|
3010
|
-
(
|
|
3011
|
-
key: `${v.word}-${
|
|
3013
|
+
(y(!0), O(Z, null, le(p.items, (v, h) => (y(), O("li", {
|
|
3014
|
+
key: `${v.word}-${h}`,
|
|
3012
3015
|
class: "mb-2"
|
|
3013
3016
|
}, [
|
|
3014
3017
|
g("div", Fs, [
|
|
3015
|
-
(
|
|
3016
|
-
key: `${
|
|
3018
|
+
(y(!0), O(Z, null, le(v.synonym, (m, $) => (y(), O("span", {
|
|
3019
|
+
key: `${m}-${$}`,
|
|
3017
3020
|
class: "p-3 m-0.5 ml-0 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
|
|
3018
|
-
onClick: (
|
|
3019
|
-
},
|
|
3021
|
+
onClick: (N) => l(m)
|
|
3022
|
+
}, te(m), 9, js))), 128))
|
|
3020
3023
|
])
|
|
3021
3024
|
]))), 128))
|
|
3022
3025
|
])
|
|
@@ -3029,10 +3032,13 @@ const X2 = {
|
|
|
3029
3032
|
}, Hs = { class: "bg-white min-h-screen flex flex-col" }, zs = { class: "py-2 px-5 shadow-lg" }, Us = { class: "px-5 flex-grow" }, Zs = { class: "flex flex-col lg:flex-row lg:gap-2" }, Ws = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, Gs = /* @__PURE__ */ g("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1), qs = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, Js = { class: "grid grid-cols-1 lg:grid-cols-3 gap-4" }, Ks = {
|
|
3030
3033
|
key: 0,
|
|
3031
3034
|
class: "w-full my-4"
|
|
3032
|
-
}, Ys =
|
|
3035
|
+
}, Ys = {
|
|
3036
|
+
key: 1,
|
|
3037
|
+
class: "text-textCustom italic font-medium"
|
|
3038
|
+
}, Qs = /* @__PURE__ */ g("div", { class: "mt-auto py-5 px-5" }, [
|
|
3033
3039
|
/* @__PURE__ */ g("span", { class: "block text-center text-gray-700" }, " The site is not affiliated with Google Translate "),
|
|
3034
3040
|
/* @__PURE__ */ g("span", { class: "block text-center text-gray-700" }, "Since 2011")
|
|
3035
|
-
], -1),
|
|
3041
|
+
], -1), tl = {
|
|
3036
3042
|
__name: "Popup",
|
|
3037
3043
|
props: {
|
|
3038
3044
|
opt: {
|
|
@@ -3058,13 +3064,17 @@ const X2 = {
|
|
|
3058
3064
|
H(
|
|
3059
3065
|
() => r.translation,
|
|
3060
3066
|
(v) => {
|
|
3061
|
-
|
|
3067
|
+
try {
|
|
3068
|
+
i.loading = !1, a.value = v.text, n.init(v);
|
|
3069
|
+
} catch (h) {
|
|
3070
|
+
console.error(h);
|
|
3071
|
+
}
|
|
3062
3072
|
},
|
|
3063
3073
|
{ immediate: !0 }
|
|
3064
|
-
), H([() => r.opt, () => r.languages], ([v,
|
|
3065
|
-
s.init(v,
|
|
3066
|
-
}), H([() => s.src, () => s.target], ([v,
|
|
3067
|
-
l("opt", { src: v, target:
|
|
3074
|
+
), H([() => r.opt, () => r.languages], ([v, h]) => {
|
|
3075
|
+
s.init(v, h), f(a.value);
|
|
3076
|
+
}), H([() => s.src, () => s.target], ([v, h]) => {
|
|
3077
|
+
l("opt", { src: v, target: h }), f(a.value);
|
|
3068
3078
|
}), xe(() => {
|
|
3069
3079
|
s.init(r.opt, r.languages);
|
|
3070
3080
|
});
|
|
@@ -3072,21 +3082,21 @@ const X2 = {
|
|
|
3072
3082
|
a.value = "", n.reset();
|
|
3073
3083
|
}
|
|
3074
3084
|
function p(v) {
|
|
3075
|
-
|
|
3085
|
+
f(v);
|
|
3076
3086
|
}
|
|
3077
|
-
function f(v,
|
|
3078
|
-
a.value = v, i.loading = !0, l("translate", {
|
|
3079
|
-
src:
|
|
3080
|
-
target:
|
|
3087
|
+
function f(v, h = s.src, m = s.target) {
|
|
3088
|
+
v && (a.value = v, i.loading = !0, l("translate", {
|
|
3089
|
+
src: h,
|
|
3090
|
+
target: m,
|
|
3081
3091
|
text: v
|
|
3082
|
-
});
|
|
3092
|
+
}));
|
|
3083
3093
|
}
|
|
3084
|
-
return (v,
|
|
3094
|
+
return (v, h) => (y(), O("div", Hs, [
|
|
3085
3095
|
g("div", zs, [
|
|
3086
3096
|
B(Vn, {
|
|
3087
|
-
onReader:
|
|
3088
|
-
onSettings:
|
|
3089
|
-
onFullScreen:
|
|
3097
|
+
onReader: h[0] || (h[0] = (m) => l("reader")),
|
|
3098
|
+
onSettings: h[1] || (h[1] = (m) => l("settings")),
|
|
3099
|
+
onFullScreen: h[2] || (h[2] = (m) => l("fullscreen"))
|
|
3090
3100
|
})
|
|
3091
3101
|
]),
|
|
3092
3102
|
g("div", Us, [
|
|
@@ -3104,25 +3114,27 @@ const X2 = {
|
|
|
3104
3114
|
B(is, { isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled }, null, 8, ["isFavoriteFeatureEnabled"])
|
|
3105
3115
|
])
|
|
3106
3116
|
]),
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3117
|
+
r.translation ? (y(), O(Z, { key: 0 }, [
|
|
3118
|
+
g("div", Js, [
|
|
3119
|
+
M(n).dictionary.length ? (y(), ee(ms, {
|
|
3120
|
+
key: 0,
|
|
3121
|
+
onTranslate: f
|
|
3122
|
+
})) : X("", !0),
|
|
3123
|
+
M(n).definitions.length ? (y(), ee(Ss, { key: 1 })) : X("", !0),
|
|
3124
|
+
M(n).synonyms.length ? (y(), ee(Bs, {
|
|
3125
|
+
key: 2,
|
|
3126
|
+
onTranslate: f
|
|
3127
|
+
})) : X("", !0)
|
|
3128
|
+
]),
|
|
3129
|
+
M(n).examples.length ? (y(), O("div", Ks, [
|
|
3130
|
+
B(Ps)
|
|
3131
|
+
])) : X("", !0)
|
|
3132
|
+
], 64)) : (y(), O("span", Ys, "Service unavailable"))
|
|
3121
3133
|
]),
|
|
3122
|
-
|
|
3134
|
+
Qs
|
|
3123
3135
|
]));
|
|
3124
3136
|
}
|
|
3125
3137
|
};
|
|
3126
3138
|
export {
|
|
3127
|
-
|
|
3139
|
+
tl as default
|
|
3128
3140
|
};
|