@ddict/popup 1.0.21 → 1.0.22
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 +544 -544
- package/dist/popup.umd.js +7 -7
- package/package.json +1 -1
package/dist/popup.es.js
CHANGED
|
@@ -1,87 +1,82 @@
|
|
|
1
|
-
import { openBlock as w, createElementBlock as T, createElementVNode as h,
|
|
2
|
-
const Cn = "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", yn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%20fill='%233B5695'%20class='bi%20bi-list-stars%20fill-primaryColor'%3e%3cpath%20fill-rule='evenodd'%20d='M5%2011.5a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5z'/%3e%3cpath%20d='M2.242%202.194a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.256-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53z'/%3e%3c/svg%3e", wn = "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", Sn = "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", En = "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", Le = (e, o) => {
|
|
3
|
-
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [n, l] of o)
|
|
5
|
-
t[n] = l;
|
|
6
|
-
return t;
|
|
7
|
-
}, Re = (e) => (Tt("data-v-5c07032a"), e = e(), It(), e), On = { class: "flex justify-between" }, $n = /* @__PURE__ */ Re(() => /* @__PURE__ */ h("div", { class: "flex flex-row" }, [
|
|
1
|
+
import { openBlock as w, createElementBlock as T, createElementVNode as h, computed as S, unref as V, shallowRef as pn, watch as F, triggerRef as ut, onScopeDispose as tt, ref as E, onUnmounted as nt, inject as Ie, watchEffect as ie, onMounted as Ce, cloneVNode as $t, h as Ee, Fragment as Z, defineComponent as ae, provide as ot, reactive as Tt, nextTick as Q, toRaw as K, effectScope as It, markRaw as de, hasInjectionContext as vn, getCurrentInstance as Lt, isRef as xe, isReactive as lt, toRef as Ge, getCurrentScope as Rt, toRefs as ct, mergeModels as hn, useModel as mn, createBlock as ee, withCtx as Re, createVNode as H, renderList as se, normalizeClass as _e, toDisplayString as te, createCommentVNode as X, withModifiers as dt, createTextVNode as gn, withDirectives as Pt, vModelText as Vt, pushScopeId as bn, popScopeId as xn } from "vue";
|
|
2
|
+
const _n = "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,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%20fill='%233B5695'%20class='bi%20bi-list-stars%20fill-primaryColor'%3e%3cpath%20fill-rule='evenodd'%20d='M5%2011.5a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5z'/%3e%3cpath%20d='M2.242%202.194a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.256-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53z'/%3e%3c/svg%3e", yn = "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", wn = "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", Sn = "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", En = { class: "flex justify-between" }, On = /* @__PURE__ */ h("div", { class: "flex flex-row" }, [
|
|
8
3
|
/* @__PURE__ */ h("img", {
|
|
9
|
-
src:
|
|
4
|
+
src: _n,
|
|
10
5
|
alt: "Vue logo",
|
|
11
6
|
class: "w-24"
|
|
12
7
|
})
|
|
13
|
-
], -1)
|
|
14
|
-
class: "tooltip tooltip-bottom
|
|
8
|
+
], -1), $n = { class: "flex" }, Tn = {
|
|
9
|
+
class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%]",
|
|
15
10
|
"data-tip": "Saved Words"
|
|
16
|
-
},
|
|
17
|
-
src:
|
|
11
|
+
}, In = /* @__PURE__ */ h("img", {
|
|
12
|
+
src: Cn,
|
|
18
13
|
alt: "Star list",
|
|
19
14
|
class: "w-7"
|
|
20
|
-
}, null, -1)
|
|
21
|
-
|
|
22
|
-
],
|
|
23
|
-
class: "tooltip tooltip-bottom
|
|
15
|
+
}, null, -1), Ln = [
|
|
16
|
+
In
|
|
17
|
+
], Rn = {
|
|
18
|
+
class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%]",
|
|
24
19
|
"data-tip": "Reader"
|
|
25
|
-
},
|
|
26
|
-
src:
|
|
20
|
+
}, Pn = /* @__PURE__ */ h("img", {
|
|
21
|
+
src: yn,
|
|
27
22
|
alt: "Reader",
|
|
28
23
|
class: "w-7"
|
|
29
|
-
}, null, -1)
|
|
30
|
-
|
|
31
|
-
],
|
|
32
|
-
class: "tooltip tooltip-bottom
|
|
24
|
+
}, null, -1), Vn = [
|
|
25
|
+
Pn
|
|
26
|
+
], kn = {
|
|
27
|
+
class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] md:hidden",
|
|
33
28
|
"data-tip": "Full screen"
|
|
34
|
-
},
|
|
35
|
-
src:
|
|
29
|
+
}, Mn = /* @__PURE__ */ h("img", {
|
|
30
|
+
src: wn,
|
|
36
31
|
alt: "Full screen",
|
|
37
32
|
class: "w-7"
|
|
38
|
-
}, null, -1)
|
|
39
|
-
|
|
40
|
-
],
|
|
41
|
-
class: "tooltip tooltip-bottom
|
|
33
|
+
}, null, -1), Nn = [
|
|
34
|
+
Mn
|
|
35
|
+
], Dn = {
|
|
36
|
+
class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%]",
|
|
42
37
|
"data-tip": "Settings"
|
|
43
|
-
},
|
|
44
|
-
src:
|
|
38
|
+
}, An = /* @__PURE__ */ h("img", {
|
|
39
|
+
src: Sn,
|
|
45
40
|
alt: "Setting",
|
|
46
41
|
class: "w-7"
|
|
47
|
-
}, null, -1)
|
|
48
|
-
|
|
49
|
-
],
|
|
42
|
+
}, null, -1), Fn = [
|
|
43
|
+
An
|
|
44
|
+
], jn = {
|
|
50
45
|
__name: "Header",
|
|
51
46
|
emits: ["settings", "fullScreen", "reader", "starList"],
|
|
52
47
|
setup(e, { emit: o }) {
|
|
53
48
|
const t = o;
|
|
54
|
-
return (n, l) => (w(), T("div",
|
|
55
|
-
|
|
56
|
-
h("div",
|
|
57
|
-
h("div",
|
|
49
|
+
return (n, l) => (w(), T("div", En, [
|
|
50
|
+
On,
|
|
51
|
+
h("div", $n, [
|
|
52
|
+
h("div", Tn, [
|
|
58
53
|
h("button", {
|
|
59
54
|
class: "btn btn-ghost btn-circle",
|
|
60
55
|
onClick: l[0] || (l[0] = (r) => t("starList"))
|
|
61
|
-
},
|
|
56
|
+
}, Ln)
|
|
62
57
|
]),
|
|
63
|
-
h("div",
|
|
58
|
+
h("div", Rn, [
|
|
64
59
|
h("button", {
|
|
65
60
|
class: "btn btn-ghost btn-circle",
|
|
66
61
|
onClick: l[1] || (l[1] = (r) => t("reader"))
|
|
67
|
-
},
|
|
62
|
+
}, Vn)
|
|
68
63
|
]),
|
|
69
|
-
h("div",
|
|
64
|
+
h("div", kn, [
|
|
70
65
|
h("button", {
|
|
71
66
|
class: "btn btn-ghost btn-circle",
|
|
72
67
|
onClick: l[2] || (l[2] = (r) => t("fullScreen"))
|
|
73
|
-
},
|
|
68
|
+
}, Nn)
|
|
74
69
|
]),
|
|
75
|
-
h("div",
|
|
70
|
+
h("div", Dn, [
|
|
76
71
|
h("button", {
|
|
77
72
|
class: "btn btn-ghost btn-circle",
|
|
78
73
|
onClick: l[3] || (l[3] = (r) => t("settings"))
|
|
79
|
-
},
|
|
74
|
+
}, Fn)
|
|
80
75
|
])
|
|
81
76
|
])
|
|
82
77
|
]));
|
|
83
78
|
}
|
|
84
|
-
}
|
|
79
|
+
};
|
|
85
80
|
function ye(e, o, t) {
|
|
86
81
|
let n = t.initialDeps ?? [], l;
|
|
87
82
|
return () => {
|
|
@@ -114,22 +109,22 @@ function ye(e, o, t) {
|
|
|
114
109
|
return (a = t == null ? void 0 : t.onChange) == null || a.call(t, l), l;
|
|
115
110
|
};
|
|
116
111
|
}
|
|
117
|
-
function
|
|
112
|
+
function qe(e, o) {
|
|
118
113
|
if (e === void 0)
|
|
119
114
|
throw new Error("Unexpected undefined");
|
|
120
115
|
return e;
|
|
121
116
|
}
|
|
122
|
-
const
|
|
117
|
+
const Bn = (e, o) => Math.abs(e - o) < 1, Hn = (e, o, t) => {
|
|
123
118
|
let n;
|
|
124
119
|
return function(...l) {
|
|
125
120
|
e.clearTimeout(n), n = e.setTimeout(() => o.apply(this, l), t);
|
|
126
121
|
};
|
|
127
|
-
},
|
|
122
|
+
}, zn = (e) => e, Un = (e) => {
|
|
128
123
|
const o = Math.max(e.startIndex - e.overscan, 0), t = Math.min(e.endIndex + e.overscan, e.count - 1), n = [];
|
|
129
124
|
for (let l = o; l <= t; l++)
|
|
130
125
|
n.push(l);
|
|
131
126
|
return n;
|
|
132
|
-
},
|
|
127
|
+
}, Zn = (e, o) => {
|
|
133
128
|
const t = e.scrollElement;
|
|
134
129
|
if (!t)
|
|
135
130
|
return;
|
|
@@ -157,9 +152,9 @@ const zn = (e, o) => Math.abs(e - o) < 1, Un = (e, o, t) => {
|
|
|
157
152
|
return r.observe(t, { box: "border-box" }), () => {
|
|
158
153
|
r.unobserve(t);
|
|
159
154
|
};
|
|
160
|
-
},
|
|
155
|
+
}, ft = {
|
|
161
156
|
passive: !0
|
|
162
|
-
},
|
|
157
|
+
}, Wn = typeof window > "u" ? !0 : "onscrollend" in window, Gn = (e, o) => {
|
|
163
158
|
const t = e.scrollElement;
|
|
164
159
|
if (!t)
|
|
165
160
|
return;
|
|
@@ -167,8 +162,8 @@ const zn = (e, o) => Math.abs(e - o) < 1, Un = (e, o, t) => {
|
|
|
167
162
|
if (!n)
|
|
168
163
|
return;
|
|
169
164
|
let l = 0;
|
|
170
|
-
const r =
|
|
171
|
-
} :
|
|
165
|
+
const r = Wn ? () => {
|
|
166
|
+
} : Hn(
|
|
172
167
|
n,
|
|
173
168
|
() => {
|
|
174
169
|
o(l, !1);
|
|
@@ -177,10 +172,10 @@ const zn = (e, o) => Math.abs(e - o) < 1, Un = (e, o, t) => {
|
|
|
177
172
|
), i = (u) => () => {
|
|
178
173
|
l = t[e.options.horizontal ? "scrollLeft" : "scrollTop"], r(), o(l, u);
|
|
179
174
|
}, s = i(!0), a = i(!1);
|
|
180
|
-
return a(), t.addEventListener("scroll", s,
|
|
175
|
+
return a(), t.addEventListener("scroll", s, ft), t.addEventListener("scrollend", a, ft), () => {
|
|
181
176
|
t.removeEventListener("scroll", s), t.removeEventListener("scrollend", a);
|
|
182
177
|
};
|
|
183
|
-
},
|
|
178
|
+
}, qn = (e, o, t) => {
|
|
184
179
|
if (o != null && o.borderBoxSize) {
|
|
185
180
|
const n = o.borderBoxSize[0];
|
|
186
181
|
if (n)
|
|
@@ -191,7 +186,7 @@ const zn = (e, o) => Math.abs(e - o) < 1, Un = (e, o, t) => {
|
|
|
191
186
|
return Math.round(
|
|
192
187
|
e.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]
|
|
193
188
|
);
|
|
194
|
-
},
|
|
189
|
+
}, Jn = (e, {
|
|
195
190
|
adjustments: o = 0,
|
|
196
191
|
behavior: t
|
|
197
192
|
}, n) => {
|
|
@@ -202,7 +197,7 @@ const zn = (e, o) => Math.abs(e - o) < 1, Un = (e, o, t) => {
|
|
|
202
197
|
behavior: t
|
|
203
198
|
});
|
|
204
199
|
};
|
|
205
|
-
class
|
|
200
|
+
class Kn {
|
|
206
201
|
constructor(o) {
|
|
207
202
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
|
208
203
|
let t = null;
|
|
@@ -237,11 +232,11 @@ class Qn {
|
|
|
237
232
|
scrollPaddingStart: 0,
|
|
238
233
|
scrollPaddingEnd: 0,
|
|
239
234
|
horizontal: !1,
|
|
240
|
-
getItemKey:
|
|
241
|
-
rangeExtractor:
|
|
235
|
+
getItemKey: zn,
|
|
236
|
+
rangeExtractor: Un,
|
|
242
237
|
onChange: () => {
|
|
243
238
|
},
|
|
244
|
-
measureElement:
|
|
239
|
+
measureElement: qn,
|
|
245
240
|
initialRect: { width: 0, height: 0 },
|
|
246
241
|
scrollMargin: 0,
|
|
247
242
|
gap: 0,
|
|
@@ -361,7 +356,7 @@ class Qn {
|
|
|
361
356
|
}
|
|
362
357
|
), this.calculateRange = ye(
|
|
363
358
|
() => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
|
|
364
|
-
(t, n, l) => this.range = t.length > 0 && n > 0 ?
|
|
359
|
+
(t, n, l) => this.range = t.length > 0 && n > 0 ? Yn({
|
|
365
360
|
measurements: t,
|
|
366
361
|
outerSize: n,
|
|
367
362
|
scrollOffset: l
|
|
@@ -430,11 +425,11 @@ class Qn {
|
|
|
430
425
|
), this.getVirtualItemForOffset = (t) => {
|
|
431
426
|
const n = this.getMeasurements();
|
|
432
427
|
if (n.length !== 0)
|
|
433
|
-
return
|
|
434
|
-
n[
|
|
428
|
+
return qe(
|
|
429
|
+
n[kt(
|
|
435
430
|
0,
|
|
436
431
|
n.length - 1,
|
|
437
|
-
(l) =>
|
|
432
|
+
(l) => qe(n[l]).start,
|
|
438
433
|
t
|
|
439
434
|
)]
|
|
440
435
|
);
|
|
@@ -478,10 +473,10 @@ class Qn {
|
|
|
478
473
|
if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
|
|
479
474
|
this.options.getItemKey(t)
|
|
480
475
|
)) {
|
|
481
|
-
const [u] =
|
|
476
|
+
const [u] = qe(
|
|
482
477
|
this.getOffsetForIndex(t, s)
|
|
483
478
|
);
|
|
484
|
-
|
|
479
|
+
Bn(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: s, behavior: l });
|
|
485
480
|
} else
|
|
486
481
|
this.scrollToIndex(t, { align: s, behavior: l });
|
|
487
482
|
}));
|
|
@@ -510,7 +505,7 @@ class Qn {
|
|
|
510
505
|
}, this.setOptions(o);
|
|
511
506
|
}
|
|
512
507
|
}
|
|
513
|
-
const
|
|
508
|
+
const kt = (e, o, t, n) => {
|
|
514
509
|
for (; e <= o; ) {
|
|
515
510
|
const l = (e + o) / 2 | 0, r = t(l);
|
|
516
511
|
if (r < n)
|
|
@@ -522,19 +517,19 @@ const Dt = (e, o, t, n) => {
|
|
|
522
517
|
}
|
|
523
518
|
return e > 0 ? e - 1 : 0;
|
|
524
519
|
};
|
|
525
|
-
function
|
|
520
|
+
function Yn({
|
|
526
521
|
measurements: e,
|
|
527
522
|
outerSize: o,
|
|
528
523
|
scrollOffset: t
|
|
529
524
|
}) {
|
|
530
|
-
const n = e.length - 1, r =
|
|
525
|
+
const n = e.length - 1, r = kt(0, n, (s) => e[s].start, t);
|
|
531
526
|
let i = r;
|
|
532
527
|
for (; i < n && e[i].end < t + o; )
|
|
533
528
|
i++;
|
|
534
529
|
return { startIndex: r, endIndex: i };
|
|
535
530
|
}
|
|
536
|
-
function
|
|
537
|
-
const o = new
|
|
531
|
+
function Qn(e) {
|
|
532
|
+
const o = new Kn(V(e)), t = pn(o), n = o._didMount();
|
|
538
533
|
return F(
|
|
539
534
|
() => V(e).getScrollElement(),
|
|
540
535
|
(l) => {
|
|
@@ -550,37 +545,37 @@ function eo(e) {
|
|
|
550
545
|
...l,
|
|
551
546
|
onChange: (r, i) => {
|
|
552
547
|
var s;
|
|
553
|
-
|
|
548
|
+
ut(t), (s = l.onChange) == null || s.call(l, r, i);
|
|
554
549
|
}
|
|
555
|
-
}), o._willUpdate(),
|
|
550
|
+
}), o._willUpdate(), ut(t);
|
|
556
551
|
},
|
|
557
552
|
{
|
|
558
553
|
immediate: !0
|
|
559
554
|
}
|
|
560
|
-
),
|
|
555
|
+
), tt(n), t;
|
|
561
556
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
557
|
+
function Xn(e) {
|
|
558
|
+
return Qn(
|
|
564
559
|
S(() => ({
|
|
565
|
-
observeElementRect:
|
|
566
|
-
observeElementOffset:
|
|
567
|
-
scrollToFn:
|
|
560
|
+
observeElementRect: Zn,
|
|
561
|
+
observeElementOffset: Gn,
|
|
562
|
+
scrollToFn: Jn,
|
|
568
563
|
...V(e)
|
|
569
564
|
}))
|
|
570
565
|
);
|
|
571
566
|
}
|
|
572
|
-
function
|
|
567
|
+
function eo(e, o, t) {
|
|
573
568
|
let n = E(t == null ? void 0 : t.value), l = S(() => e.value !== void 0);
|
|
574
569
|
return [S(() => l.value ? e.value : n.value), function(r) {
|
|
575
570
|
return l.value || (n.value = r), o == null ? void 0 : o(r);
|
|
576
571
|
}];
|
|
577
572
|
}
|
|
578
|
-
function
|
|
573
|
+
function to(e) {
|
|
579
574
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((o) => setTimeout(() => {
|
|
580
575
|
throw o;
|
|
581
576
|
}));
|
|
582
577
|
}
|
|
583
|
-
function
|
|
578
|
+
function De() {
|
|
584
579
|
let e = [], o = { addEventListener(t, n, l, r) {
|
|
585
580
|
return t.addEventListener(n, l, r), o.add(() => t.removeEventListener(n, l, r));
|
|
586
581
|
}, requestAnimationFrame(...t) {
|
|
@@ -595,7 +590,7 @@ function Fe() {
|
|
|
595
590
|
o.add(() => clearTimeout(n));
|
|
596
591
|
}, microTask(...t) {
|
|
597
592
|
let n = { current: !0 };
|
|
598
|
-
return
|
|
593
|
+
return to(() => {
|
|
599
594
|
n.current && t[0]();
|
|
600
595
|
}), o.add(() => {
|
|
601
596
|
n.current = !1;
|
|
@@ -606,7 +601,7 @@ function Fe() {
|
|
|
606
601
|
Object.assign(t.style, { [n]: r });
|
|
607
602
|
});
|
|
608
603
|
}, group(t) {
|
|
609
|
-
let n =
|
|
604
|
+
let n = De();
|
|
610
605
|
return t(n), this.add(() => n.dispose());
|
|
611
606
|
}, add(t) {
|
|
612
607
|
return e.push(t), () => {
|
|
@@ -618,19 +613,19 @@ function Fe() {
|
|
|
618
613
|
} };
|
|
619
614
|
return o;
|
|
620
615
|
}
|
|
621
|
-
function
|
|
622
|
-
let e =
|
|
623
|
-
return
|
|
616
|
+
function no() {
|
|
617
|
+
let e = De();
|
|
618
|
+
return nt(() => e.dispose()), e;
|
|
624
619
|
}
|
|
625
|
-
function
|
|
626
|
-
let e =
|
|
620
|
+
function oo() {
|
|
621
|
+
let e = no();
|
|
627
622
|
return (o) => {
|
|
628
623
|
e.dispose(), e.nextFrame(o);
|
|
629
624
|
};
|
|
630
625
|
}
|
|
631
|
-
let
|
|
632
|
-
function
|
|
633
|
-
return Ie(
|
|
626
|
+
let lo = Symbol("headlessui.useid"), so = 0;
|
|
627
|
+
function Le() {
|
|
628
|
+
return Ie(lo, () => `${++so}`)();
|
|
634
629
|
}
|
|
635
630
|
function P(e) {
|
|
636
631
|
var o;
|
|
@@ -646,10 +641,10 @@ function le(e, o, ...t) {
|
|
|
646
641
|
let n = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map((l) => `"${l}"`).join(", ")}.`);
|
|
647
642
|
throw Error.captureStackTrace && Error.captureStackTrace(n, le), n;
|
|
648
643
|
}
|
|
649
|
-
var
|
|
650
|
-
let
|
|
644
|
+
var ro = Object.defineProperty, io = (e, o, t) => o in e ? ro(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, pt = (e, o, t) => (io(e, typeof o != "symbol" ? o + "" : o, t), t);
|
|
645
|
+
let ao = class {
|
|
651
646
|
constructor() {
|
|
652
|
-
|
|
647
|
+
pt(this, "current", this.detect()), pt(this, "currentId", 0);
|
|
653
648
|
}
|
|
654
649
|
set(o) {
|
|
655
650
|
this.current !== o && (this.currentId = 0, this.current = o);
|
|
@@ -669,9 +664,9 @@ let co = class {
|
|
|
669
664
|
detect() {
|
|
670
665
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
671
666
|
}
|
|
672
|
-
},
|
|
673
|
-
function
|
|
674
|
-
if (
|
|
667
|
+
}, st = new ao();
|
|
668
|
+
function rt(e) {
|
|
669
|
+
if (st.isServer) return null;
|
|
675
670
|
if (e instanceof Node) return e.ownerDocument;
|
|
676
671
|
if (e != null && e.hasOwnProperty("value")) {
|
|
677
672
|
let o = P(e);
|
|
@@ -679,28 +674,28 @@ function it(e) {
|
|
|
679
674
|
}
|
|
680
675
|
return document;
|
|
681
676
|
}
|
|
682
|
-
let
|
|
683
|
-
var
|
|
684
|
-
function
|
|
677
|
+
let vt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
678
|
+
var uo = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(uo || {}), co = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(co || {}), fo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(fo || {}), Mt = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Mt || {});
|
|
679
|
+
function po(e, o = 0) {
|
|
685
680
|
var t;
|
|
686
|
-
return e === ((t =
|
|
687
|
-
return e.matches(
|
|
681
|
+
return e === ((t = rt(e)) == null ? void 0 : t.body) ? !1 : le(o, { 0() {
|
|
682
|
+
return e.matches(vt);
|
|
688
683
|
}, 1() {
|
|
689
684
|
let n = e;
|
|
690
685
|
for (; n !== null; ) {
|
|
691
|
-
if (n.matches(
|
|
686
|
+
if (n.matches(vt)) return !0;
|
|
692
687
|
n = n.parentElement;
|
|
693
688
|
}
|
|
694
689
|
return !1;
|
|
695
690
|
} });
|
|
696
691
|
}
|
|
697
|
-
var
|
|
692
|
+
var vo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(vo || {});
|
|
698
693
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
699
694
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
700
695
|
}, !0), document.addEventListener("click", (e) => {
|
|
701
696
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
702
697
|
}, !0));
|
|
703
|
-
function
|
|
698
|
+
function ho(e, o = (t) => t) {
|
|
704
699
|
return e.slice().sort((t, n) => {
|
|
705
700
|
let l = o(t), r = o(n);
|
|
706
701
|
if (l === null || r === null) return 0;
|
|
@@ -708,26 +703,26 @@ function go(e, o = (t) => t) {
|
|
|
708
703
|
return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
709
704
|
});
|
|
710
705
|
}
|
|
711
|
-
function
|
|
706
|
+
function mo() {
|
|
712
707
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
713
708
|
}
|
|
714
|
-
function
|
|
709
|
+
function go() {
|
|
715
710
|
return /Android/gi.test(window.navigator.userAgent);
|
|
716
711
|
}
|
|
717
|
-
function
|
|
718
|
-
return
|
|
712
|
+
function Nt() {
|
|
713
|
+
return mo() || go();
|
|
719
714
|
}
|
|
720
|
-
function
|
|
721
|
-
|
|
715
|
+
function Pe(e, o, t) {
|
|
716
|
+
st.isServer || ie((n) => {
|
|
722
717
|
document.addEventListener(e, o, t), n(() => document.removeEventListener(e, o, t));
|
|
723
718
|
});
|
|
724
719
|
}
|
|
725
|
-
function
|
|
726
|
-
|
|
720
|
+
function bo(e, o, t) {
|
|
721
|
+
st.isServer || ie((n) => {
|
|
727
722
|
window.addEventListener(e, o, t), n(() => window.removeEventListener(e, o, t));
|
|
728
723
|
});
|
|
729
724
|
}
|
|
730
|
-
function
|
|
725
|
+
function xo(e, o, t = S(() => !0)) {
|
|
731
726
|
function n(r, i) {
|
|
732
727
|
if (!t.value || r.defaultPrevented) return;
|
|
733
728
|
let s = i(r);
|
|
@@ -740,86 +735,86 @@ function Co(e, o, t = S(() => !0)) {
|
|
|
740
735
|
let c = u instanceof HTMLElement ? u : P(u);
|
|
741
736
|
if (c != null && c.contains(s) || r.composed && r.composedPath().includes(c)) return;
|
|
742
737
|
}
|
|
743
|
-
return !
|
|
738
|
+
return !po(s, Mt.Loose) && s.tabIndex !== -1 && r.preventDefault(), o(r, s);
|
|
744
739
|
}
|
|
745
740
|
let l = E(null);
|
|
746
|
-
|
|
741
|
+
Pe("pointerdown", (r) => {
|
|
747
742
|
var i, s;
|
|
748
743
|
t.value && (l.value = ((s = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : s[0]) || r.target);
|
|
749
|
-
}, !0),
|
|
744
|
+
}, !0), Pe("mousedown", (r) => {
|
|
750
745
|
var i, s;
|
|
751
746
|
t.value && (l.value = ((s = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : s[0]) || r.target);
|
|
752
|
-
}, !0),
|
|
753
|
-
|
|
754
|
-
}, !0),
|
|
747
|
+
}, !0), Pe("click", (r) => {
|
|
748
|
+
Nt() || l.value && (n(r, () => l.value), l.value = null);
|
|
749
|
+
}, !0), Pe("touchend", (r) => n(r, () => r.target instanceof HTMLElement ? r.target : null), !0), bo("blur", (r) => n(r, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
755
750
|
}
|
|
756
|
-
function
|
|
751
|
+
function ht(e, o) {
|
|
757
752
|
if (e) return e;
|
|
758
753
|
let t = o ?? "button";
|
|
759
754
|
if (typeof t == "string" && t.toLowerCase() === "button") return "button";
|
|
760
755
|
}
|
|
761
|
-
function
|
|
762
|
-
let t = E(
|
|
756
|
+
function _o(e, o) {
|
|
757
|
+
let t = E(ht(e.value.type, e.value.as));
|
|
763
758
|
return Ce(() => {
|
|
764
|
-
t.value =
|
|
759
|
+
t.value = ht(e.value.type, e.value.as);
|
|
765
760
|
}), ie(() => {
|
|
766
761
|
var n;
|
|
767
762
|
t.value || P(o) && P(o) instanceof HTMLButtonElement && !((n = P(o)) != null && n.hasAttribute("type")) && (t.value = "button");
|
|
768
763
|
}), t;
|
|
769
764
|
}
|
|
770
|
-
function
|
|
765
|
+
function mt(e) {
|
|
771
766
|
return [e.screenX, e.screenY];
|
|
772
767
|
}
|
|
773
|
-
function
|
|
768
|
+
function Co() {
|
|
774
769
|
let e = E([-1, -1]);
|
|
775
770
|
return { wasMoved(o) {
|
|
776
|
-
let t =
|
|
771
|
+
let t = mt(o);
|
|
777
772
|
return e.value[0] === t[0] && e.value[1] === t[1] ? !1 : (e.value = t, !0);
|
|
778
773
|
}, update(o) {
|
|
779
|
-
e.value =
|
|
774
|
+
e.value = mt(o);
|
|
780
775
|
} };
|
|
781
776
|
}
|
|
782
|
-
function
|
|
777
|
+
function yo({ container: e, accept: o, walk: t, enabled: n }) {
|
|
783
778
|
ie(() => {
|
|
784
779
|
let l = e.value;
|
|
785
780
|
if (!l || n !== void 0 && !n.value) return;
|
|
786
|
-
let r =
|
|
781
|
+
let r = rt(e);
|
|
787
782
|
if (!r) return;
|
|
788
783
|
let i = Object.assign((a) => o(a), { acceptNode: o }), s = r.createTreeWalker(l, NodeFilter.SHOW_ELEMENT, i, !1);
|
|
789
784
|
for (; s.nextNode(); ) t(s.currentNode);
|
|
790
785
|
});
|
|
791
786
|
}
|
|
792
|
-
var Oe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Oe || {}),
|
|
787
|
+
var Oe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Oe || {}), wo = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(wo || {});
|
|
793
788
|
function pe({ visible: e = !0, features: o = 0, ourProps: t, theirProps: n, ...l }) {
|
|
794
789
|
var r;
|
|
795
|
-
let i =
|
|
796
|
-
if (e || o & 2 && i.static) return
|
|
790
|
+
let i = At(n, t), s = Object.assign(l, { props: i });
|
|
791
|
+
if (e || o & 2 && i.static) return Je(s);
|
|
797
792
|
if (o & 1) {
|
|
798
793
|
let a = (r = i.unmount) == null || r ? 0 : 1;
|
|
799
794
|
return le(a, { 0() {
|
|
800
795
|
return null;
|
|
801
796
|
}, 1() {
|
|
802
|
-
return
|
|
797
|
+
return Je({ ...l, props: { ...i, hidden: !0, style: { display: "none" } } });
|
|
803
798
|
} });
|
|
804
799
|
}
|
|
805
|
-
return
|
|
800
|
+
return Je(s);
|
|
806
801
|
}
|
|
807
|
-
function
|
|
802
|
+
function Je({ props: e, attrs: o, slots: t, slot: n, name: l }) {
|
|
808
803
|
var r, i;
|
|
809
|
-
let { as: s, ...a } =
|
|
804
|
+
let { as: s, ...a } = je(e, ["unmount", "static"]), u = (r = t.default) == null ? void 0 : r.call(t, n), c = {};
|
|
810
805
|
if (n) {
|
|
811
806
|
let p = !1, g = [];
|
|
812
807
|
for (let [x, _] of Object.entries(n)) typeof _ == "boolean" && (p = !0), _ === !0 && g.push(x);
|
|
813
808
|
p && (c["data-headlessui-state"] = g.join(" "));
|
|
814
809
|
}
|
|
815
810
|
if (s === "template") {
|
|
816
|
-
if (u =
|
|
811
|
+
if (u = Dt(u ?? []), Object.keys(a).length > 0 || Object.keys(o).length > 0) {
|
|
817
812
|
let [p, ...g] = u ?? [];
|
|
818
|
-
if (
|
|
813
|
+
if (!Eo(p) || g.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(a).concat(Object.keys(o)).map((v) => v.trim()).filter((v, $, N) => N.indexOf(v) === $).sort((v, $) => v.localeCompare($)).map((v) => ` - ${v}`).join(`
|
|
819
814
|
`), "", "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((v) => ` - ${v}`).join(`
|
|
820
815
|
`)].join(`
|
|
821
816
|
`));
|
|
822
|
-
let x =
|
|
817
|
+
let x = At((i = p.props) != null ? i : {}, a, c), _ = $t(p, x, !0);
|
|
823
818
|
for (let v in x) v.startsWith("on") && (_.props || (_.props = {}), _.props[v] = x[v]);
|
|
824
819
|
return _;
|
|
825
820
|
}
|
|
@@ -827,10 +822,10 @@ function Ke({ props: e, attrs: o, slots: t, slot: n, name: l }) {
|
|
|
827
822
|
}
|
|
828
823
|
return Ee(s, Object.assign({}, a, c), { default: () => u });
|
|
829
824
|
}
|
|
830
|
-
function
|
|
831
|
-
return e.flatMap((o) => o.type === Z ?
|
|
825
|
+
function Dt(e) {
|
|
826
|
+
return e.flatMap((o) => o.type === Z ? Dt(o.children) : [o]);
|
|
832
827
|
}
|
|
833
|
-
function
|
|
828
|
+
function At(...e) {
|
|
834
829
|
if (e.length === 0) return {};
|
|
835
830
|
if (e.length === 1) return e[0];
|
|
836
831
|
let o = {}, t = {};
|
|
@@ -845,53 +840,53 @@ function Bt(...e) {
|
|
|
845
840
|
} });
|
|
846
841
|
return o;
|
|
847
842
|
}
|
|
848
|
-
function
|
|
843
|
+
function So(e) {
|
|
849
844
|
let o = Object.assign({}, e);
|
|
850
845
|
for (let t in o) o[t] === void 0 && delete o[t];
|
|
851
846
|
return o;
|
|
852
847
|
}
|
|
853
|
-
function
|
|
848
|
+
function je(e, o = []) {
|
|
854
849
|
let t = Object.assign({}, e);
|
|
855
850
|
for (let n of o) n in t && delete t[n];
|
|
856
851
|
return t;
|
|
857
852
|
}
|
|
858
|
-
function
|
|
853
|
+
function Eo(e) {
|
|
859
854
|
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
860
855
|
}
|
|
861
|
-
var
|
|
862
|
-
let
|
|
856
|
+
var Ft = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Ft || {});
|
|
857
|
+
let Oo = ae({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: o, attrs: t }) {
|
|
863
858
|
return () => {
|
|
864
859
|
var n;
|
|
865
860
|
let { features: l, ...r } = e, i = { "aria-hidden": (l & 2) === 2 ? !0 : (n = r["aria-hidden"]) != null ? n : void 0, hidden: (l & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(l & 4) === 4 && (l & 2) !== 2 && { display: "none" } } };
|
|
866
861
|
return pe({ ourProps: i, theirProps: r, slot: {}, attrs: t, slots: o, name: "Hidden" });
|
|
867
862
|
};
|
|
868
|
-
} }),
|
|
863
|
+
} }), jt = Symbol("Context");
|
|
869
864
|
var $e = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))($e || {});
|
|
870
|
-
function
|
|
871
|
-
return Ie(
|
|
865
|
+
function $o() {
|
|
866
|
+
return Ie(jt, null);
|
|
872
867
|
}
|
|
873
|
-
function
|
|
874
|
-
|
|
868
|
+
function To(e) {
|
|
869
|
+
ot(jt, e);
|
|
875
870
|
}
|
|
876
|
-
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 || {}),
|
|
877
|
-
function
|
|
871
|
+
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 || {}), Bt = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(Bt || {});
|
|
872
|
+
function Io(e) {
|
|
878
873
|
function o() {
|
|
879
874
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", o));
|
|
880
875
|
}
|
|
881
876
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", o), o());
|
|
882
877
|
}
|
|
883
878
|
let ce = [];
|
|
884
|
-
|
|
879
|
+
Io(() => {
|
|
885
880
|
function e(o) {
|
|
886
881
|
o.target instanceof HTMLElement && o.target !== document.body && ce[0] !== o.target && (ce.unshift(o.target), ce = ce.filter((t) => t != null && t.isConnected), ce.splice(10));
|
|
887
882
|
}
|
|
888
883
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
889
884
|
});
|
|
890
|
-
function
|
|
885
|
+
function Lo(e) {
|
|
891
886
|
throw new Error("Unexpected object: " + e);
|
|
892
887
|
}
|
|
893
888
|
var z = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(z || {});
|
|
894
|
-
function
|
|
889
|
+
function gt(e, o) {
|
|
895
890
|
let t = o.resolveItems();
|
|
896
891
|
if (t.length <= 0) return null;
|
|
897
892
|
let n = o.resolveActiveIndex(), l = n ?? -1;
|
|
@@ -920,40 +915,40 @@ function bt(e, o) {
|
|
|
920
915
|
case 5:
|
|
921
916
|
return null;
|
|
922
917
|
default:
|
|
923
|
-
|
|
918
|
+
Lo(e);
|
|
924
919
|
}
|
|
925
920
|
}
|
|
926
|
-
function
|
|
927
|
-
for (let [n, l] of Object.entries(e))
|
|
921
|
+
function Ht(e = {}, o = null, t = []) {
|
|
922
|
+
for (let [n, l] of Object.entries(e)) Ut(t, zt(o, n), l);
|
|
928
923
|
return t;
|
|
929
924
|
}
|
|
930
|
-
function
|
|
925
|
+
function zt(e, o) {
|
|
931
926
|
return e ? e + "[" + o + "]" : o;
|
|
932
927
|
}
|
|
933
|
-
function
|
|
934
|
-
if (Array.isArray(t)) for (let [n, l] of t.entries())
|
|
935
|
-
else t instanceof Date ? e.push([o, t.toISOString()]) : typeof t == "boolean" ? e.push([o, t ? "1" : "0"]) : typeof t == "string" ? e.push([o, t]) : typeof t == "number" ? e.push([o, `${t}`]) : t == null ? e.push([o, ""]) :
|
|
928
|
+
function Ut(e, o, t) {
|
|
929
|
+
if (Array.isArray(t)) for (let [n, l] of t.entries()) Ut(e, zt(o, n.toString()), l);
|
|
930
|
+
else t instanceof Date ? e.push([o, t.toISOString()]) : typeof t == "boolean" ? e.push([o, t ? "1" : "0"]) : typeof t == "string" ? e.push([o, t]) : typeof t == "number" ? e.push([o, `${t}`]) : t == null ? e.push([o, ""]) : Ht(t, o, e);
|
|
936
931
|
}
|
|
937
|
-
function
|
|
932
|
+
function Ro(e, o) {
|
|
938
933
|
return e === o;
|
|
939
934
|
}
|
|
940
|
-
var
|
|
941
|
-
let
|
|
935
|
+
var Po = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Po || {}), Vo = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Vo || {}), ko = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(ko || {});
|
|
936
|
+
let Zt = Symbol("ComboboxContext");
|
|
942
937
|
function ve(e) {
|
|
943
|
-
let o = Ie(
|
|
938
|
+
let o = Ie(Zt, null);
|
|
944
939
|
if (o === null) {
|
|
945
940
|
let t = new Error(`<${e} /> is missing a parent <Combobox /> component.`);
|
|
946
941
|
throw Error.captureStackTrace && Error.captureStackTrace(t, ve), t;
|
|
947
942
|
}
|
|
948
943
|
return o;
|
|
949
944
|
}
|
|
950
|
-
let
|
|
945
|
+
let Wt = Symbol("VirtualContext"), Mo = ae({ name: "VirtualProvider", setup(e, { slots: o }) {
|
|
951
946
|
let t = ve("VirtualProvider"), n = S(() => {
|
|
952
947
|
let s = P(t.optionsRef);
|
|
953
948
|
if (!s) return { start: 0, end: 0 };
|
|
954
949
|
let a = window.getComputedStyle(s);
|
|
955
950
|
return { start: parseFloat(a.paddingBlockStart || a.paddingTop), end: parseFloat(a.paddingBlockEnd || a.paddingBottom) };
|
|
956
|
-
}), l =
|
|
951
|
+
}), l = Xn(S(() => ({ scrollPaddingStart: n.value.start, scrollPaddingEnd: n.value.end, count: t.virtual.value.options.length, estimateSize() {
|
|
957
952
|
return 40;
|
|
958
953
|
}, getScrollElement() {
|
|
959
954
|
return P(t.optionsRef);
|
|
@@ -963,19 +958,19 @@ let Jt = Symbol("VirtualContext"), Do = ae({ name: "VirtualProvider", setup(e, {
|
|
|
963
958
|
}), i = E(0);
|
|
964
959
|
return F([r], () => {
|
|
965
960
|
i.value += 1;
|
|
966
|
-
}),
|
|
961
|
+
}), ot(Wt, t.virtual.value ? l : null), () => [Ee("div", { style: { position: "relative", width: "100%", height: `${l.value.getTotalSize()}px` }, ref: (s) => {
|
|
967
962
|
if (s) {
|
|
968
963
|
if (typeof process < "u" && process.env.JEST_WORKER_ID !== void 0 || t.activationTrigger.value === 0) return;
|
|
969
964
|
t.activeOptionIndex.value !== null && t.virtual.value.options.length > t.activeOptionIndex.value && l.value.scrollToIndex(t.activeOptionIndex.value);
|
|
970
965
|
}
|
|
971
|
-
} }, l.value.getVirtualItems().map((s) =>
|
|
972
|
-
} }),
|
|
966
|
+
} }, l.value.getVirtualItems().map((s) => $t(o.default({ option: t.virtual.value.options[s.index], open: t.comboboxState.value === 0 })[0], { key: `${i.value}-${s.index}`, "data-index": s.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": s.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${s.start}px)`, overflowAnchor: "none" } })))];
|
|
967
|
+
} }), No = 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 }) {
|
|
973
968
|
let l = E(1), r = E(null), i = E(null), s = E(null), a = E(null), u = E({ static: !1, hold: !1 }), c = E([]), p = E(null), g = E(2), x = E(!1);
|
|
974
969
|
function _(d = (f) => f) {
|
|
975
|
-
let f = p.value !== null ? c.value[p.value] : null, y = d(c.value.slice()), O = y.length > 0 && y[0].dataRef.order.value !== null ? y.sort((A, G) => A.dataRef.order.value - G.dataRef.order.value) :
|
|
970
|
+
let f = p.value !== null ? c.value[p.value] : null, y = d(c.value.slice()), O = y.length > 0 && y[0].dataRef.order.value !== null ? y.sort((A, G) => A.dataRef.order.value - G.dataRef.order.value) : ho(y, (A) => P(A.dataRef.domRef)), M = f ? O.indexOf(f) : null;
|
|
976
971
|
return M === -1 && (M = null), { options: O, activeOptionIndex: M };
|
|
977
972
|
}
|
|
978
|
-
let v = S(() => e.multiple ? 1 : 0), $ = S(() => e.nullable), [N, I] =
|
|
973
|
+
let v = S(() => e.multiple ? 1 : 0), $ = S(() => e.nullable), [N, I] = eo(S(() => e.modelValue), (d) => n("update:modelValue", d), S(() => e.defaultValue)), k = S(() => N.value === void 0 ? le(v.value, { 1: [], 0: void 0 }) : N.value), D = null, m = null;
|
|
979
974
|
function R(d) {
|
|
980
975
|
return le(v.value, { 0() {
|
|
981
976
|
return I == null ? void 0 : I(d);
|
|
@@ -997,7 +992,7 @@ let Jt = Symbol("VirtualContext"), Do = ae({ name: "VirtualProvider", setup(e, {
|
|
|
997
992
|
let y = e.by;
|
|
998
993
|
return (d == null ? void 0 : d[y]) === (f == null ? void 0 : f[y]);
|
|
999
994
|
}
|
|
1000
|
-
return e.by === null ?
|
|
995
|
+
return e.by === null ? Ro(d, f) : e.by(d, f);
|
|
1001
996
|
}, calculateIndex(d) {
|
|
1002
997
|
return b.virtual.value ? e.by === null ? b.virtual.value.options.indexOf(d) : b.virtual.value.options.findIndex((f) => b.compare(f, d)) : c.value.findIndex((f) => b.compare(f.dataRef.value, d));
|
|
1003
998
|
}, defaultValue: S(() => e.defaultValue), nullable: $, immediate: S(() => !1), virtual: S(() => null), inputRef: i, labelRef: r, buttonRef: s, optionsRef: a, disabled: S(() => e.disabled), options: c, change(d) {
|
|
@@ -1031,7 +1026,7 @@ let Jt = Symbol("VirtualContext"), Do = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1031
1026
|
x.value = !1, D !== null && cancelAnimationFrame(D), D = requestAnimationFrame(() => {
|
|
1032
1027
|
if (e.disabled || a.value && !u.value.static && l.value === 1) return;
|
|
1033
1028
|
if (b.virtual.value) {
|
|
1034
|
-
p.value = d === z.Specific ? f :
|
|
1029
|
+
p.value = d === z.Specific ? f : gt({ focus: d }, { resolveItems: () => b.virtual.value.options, resolveActiveIndex: () => {
|
|
1035
1030
|
var A, G;
|
|
1036
1031
|
return (G = (A = b.activeOptionIndex.value) != null ? A : b.virtual.value.options.findIndex((q) => {
|
|
1037
1032
|
var j;
|
|
@@ -1047,7 +1042,7 @@ let Jt = Symbol("VirtualContext"), Do = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1047
1042
|
let A = O.options.findIndex((G) => !G.dataRef.disabled);
|
|
1048
1043
|
A !== -1 && (O.activeOptionIndex = A);
|
|
1049
1044
|
}
|
|
1050
|
-
let M = d === z.Specific ? f :
|
|
1045
|
+
let M = d === z.Specific ? f : gt({ focus: d }, { resolveItems: () => O.options, resolveActiveIndex: () => O.activeOptionIndex, resolveId: (A) => A.id, resolveDisabled: (A) => A.dataRef.disabled });
|
|
1051
1046
|
p.value = M, g.value = y ?? 2, c.value = O.options;
|
|
1052
1047
|
});
|
|
1053
1048
|
}, selectOption(d) {
|
|
@@ -1065,7 +1060,7 @@ let Jt = Symbol("VirtualContext"), Do = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1065
1060
|
b.goToOption(z.Specific, b.activeOptionIndex.value);
|
|
1066
1061
|
}
|
|
1067
1062
|
}, registerOption(d, f) {
|
|
1068
|
-
let y =
|
|
1063
|
+
let y = Tt({ id: d, dataRef: f });
|
|
1069
1064
|
if (b.virtual.value) {
|
|
1070
1065
|
c.value.push(y);
|
|
1071
1066
|
return;
|
|
@@ -1091,7 +1086,7 @@ let Jt = Symbol("VirtualContext"), Do = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1091
1086
|
}, isActive(d) {
|
|
1092
1087
|
return p.value === b.calculateIndex(d);
|
|
1093
1088
|
} };
|
|
1094
|
-
|
|
1089
|
+
xo([i, s, a], () => b.closeCombobox(), S(() => l.value === 0)), ot(Zt, b), To(S(() => le(l.value, { 0: $e.Open, 1: $e.Closed })));
|
|
1095
1090
|
let L = S(() => {
|
|
1096
1091
|
var d;
|
|
1097
1092
|
return (d = P(i)) == null ? void 0 : d.closest("form");
|
|
@@ -1110,12 +1105,12 @@ let Jt = Symbol("VirtualContext"), Do = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1110
1105
|
}), () => {
|
|
1111
1106
|
var d, f, y;
|
|
1112
1107
|
let { name: O, disabled: M, form: A, ...G } = e, q = { open: l.value === 0, disabled: M, activeIndex: b.activeOptionIndex.value, activeOption: b.activeOptionIndex.value === null ? null : b.virtual.value ? b.virtual.value.options[(d = b.activeOptionIndex.value) != null ? d : 0] : (y = (f = b.options.value[b.activeOptionIndex.value]) == null ? void 0 : f.dataRef.value) != null ? y : null, value: k.value };
|
|
1113
|
-
return Ee(Z, [...O != null && k.value != null ?
|
|
1108
|
+
return Ee(Z, [...O != null && k.value != null ? Ht({ [O]: k.value }).map(([j, fn]) => Ee(Oo, So({ features: Ft.Hidden, key: j, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: A, disabled: M, name: j, value: fn }))) : [], pe({ theirProps: { ...t, ...je(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: q, slots: o, attrs: t, name: "Combobox" })]);
|
|
1114
1109
|
};
|
|
1115
1110
|
} });
|
|
1116
1111
|
ae({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t }) {
|
|
1117
1112
|
var n;
|
|
1118
|
-
let l = (n = e.id) != null ? n : `headlessui-combobox-label-${
|
|
1113
|
+
let l = (n = e.id) != null ? n : `headlessui-combobox-label-${Le()}`, r = ve("ComboboxLabel");
|
|
1119
1114
|
function i() {
|
|
1120
1115
|
var s;
|
|
1121
1116
|
(s = P(r.inputRef)) == null || s.focus({ preventScroll: !0 });
|
|
@@ -1125,9 +1120,9 @@ ae({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "lab
|
|
|
1125
1120
|
return pe({ ourProps: u, theirProps: a, slot: s, attrs: o, slots: t, name: "ComboboxLabel" });
|
|
1126
1121
|
};
|
|
1127
1122
|
} });
|
|
1128
|
-
let
|
|
1123
|
+
let Do = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t, expose: n }) {
|
|
1129
1124
|
var l;
|
|
1130
|
-
let r = (l = e.id) != null ? l : `headlessui-combobox-button-${
|
|
1125
|
+
let r = (l = e.id) != null ? l : `headlessui-combobox-button-${Le()}`, i = ve("ComboboxButton");
|
|
1131
1126
|
n({ el: i.buttonRef, $el: i.buttonRef });
|
|
1132
1127
|
function s(c) {
|
|
1133
1128
|
i.disabled.value || (i.comboboxState.value === 0 ? i.closeCombobox() : (c.preventDefault(), i.openCombobox()), Q(() => {
|
|
@@ -1160,15 +1155,15 @@ let Fo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1160
1155
|
return;
|
|
1161
1156
|
}
|
|
1162
1157
|
}
|
|
1163
|
-
let u =
|
|
1158
|
+
let u = _o(S(() => ({ as: e.as, type: o.type })), i.buttonRef);
|
|
1164
1159
|
return () => {
|
|
1165
1160
|
var c, p;
|
|
1166
1161
|
let g = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...x } = e, _ = { ref: i.buttonRef, id: r, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = P(i.optionsRef)) == null ? void 0 : c.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(p = P(i.labelRef)) == null ? void 0 : p.id, r].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: a, onClick: s };
|
|
1167
1162
|
return pe({ ourProps: _, theirProps: x, slot: g, attrs: o, slots: t, name: "ComboboxButton" });
|
|
1168
1163
|
};
|
|
1169
|
-
} }),
|
|
1164
|
+
} }), Ao = 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: l }) {
|
|
1170
1165
|
var r;
|
|
1171
|
-
let i = (r = e.id) != null ? r : `headlessui-combobox-input-${
|
|
1166
|
+
let i = (r = e.id) != null ? r : `headlessui-combobox-input-${Le()}`, s = ve("ComboboxInput"), a = S(() => rt(P(s.inputRef))), u = { value: !1 };
|
|
1172
1167
|
l({ el: s.inputRef, $el: s.inputRef });
|
|
1173
1168
|
function c() {
|
|
1174
1169
|
s.change(null);
|
|
@@ -1205,11 +1200,11 @@ let Fo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1205
1200
|
g.value = !0;
|
|
1206
1201
|
}
|
|
1207
1202
|
function _() {
|
|
1208
|
-
|
|
1203
|
+
De().nextFrame(() => {
|
|
1209
1204
|
g.value = !1;
|
|
1210
1205
|
});
|
|
1211
1206
|
}
|
|
1212
|
-
let v =
|
|
1207
|
+
let v = oo();
|
|
1213
1208
|
function $(m) {
|
|
1214
1209
|
switch (u.value = !0, v(() => {
|
|
1215
1210
|
u.value = !1;
|
|
@@ -1261,7 +1256,7 @@ let Fo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1261
1256
|
function k(m) {
|
|
1262
1257
|
var R, C, b;
|
|
1263
1258
|
let L = (R = m.relatedTarget) != null ? R : ce.find((d) => d !== m.currentTarget);
|
|
1264
|
-
(C = P(s.buttonRef)) != null && C.contains(L) || (b = P(s.optionsRef)) != null && b.contains(L) || s.disabled.value || s.immediate.value && s.comboboxState.value !== 0 && (s.openCombobox(),
|
|
1259
|
+
(C = P(s.buttonRef)) != null && C.contains(L) || (b = P(s.optionsRef)) != null && b.contains(L) || s.disabled.value || s.immediate.value && s.comboboxState.value !== 0 && (s.openCombobox(), De().nextFrame(() => {
|
|
1265
1260
|
s.setActivationTrigger(1);
|
|
1266
1261
|
}));
|
|
1267
1262
|
}
|
|
@@ -1274,15 +1269,15 @@ let Fo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1274
1269
|
let y = { open: s.comboboxState.value === 0 }, { displayValue: O, onChange: M, ...A } = e, G = { "aria-controls": (m = s.optionsRef.value) == null ? void 0 : m.id, "aria-expanded": s.comboboxState.value === 0, "aria-activedescendant": s.activeOptionIndex.value === null ? void 0 : s.virtual.value ? (R = s.options.value.find((q) => !s.virtual.value.disabled(q.dataRef.value) && s.compare(q.dataRef.value, s.virtual.value.options[s.activeOptionIndex.value]))) == null ? void 0 : R.id : (C = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : C.id, "aria-labelledby": (d = (b = P(s.labelRef)) == null ? void 0 : b.id) != null ? d : (L = P(s.buttonRef)) == null ? void 0 : L.id, "aria-autocomplete": "list", id: i, onCompositionstart: x, onCompositionend: _, onKeydown: $, onInput: N, onFocus: k, onBlur: I, role: "combobox", type: (f = t.type) != null ? f : "text", tabIndex: 0, ref: s.inputRef, defaultValue: D.value, disabled: s.disabled.value === !0 ? !0 : void 0 };
|
|
1275
1270
|
return pe({ ourProps: G, theirProps: A, slot: y, attrs: t, slots: n, features: Oe.RenderStrategy | Oe.Static, name: "ComboboxInput" });
|
|
1276
1271
|
};
|
|
1277
|
-
} }),
|
|
1278
|
-
let l = ve("ComboboxOptions"), r = `headlessui-combobox-options-${
|
|
1272
|
+
} }), Fo = 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 }) {
|
|
1273
|
+
let l = ve("ComboboxOptions"), r = `headlessui-combobox-options-${Le()}`;
|
|
1279
1274
|
n({ el: l.optionsRef, $el: l.optionsRef }), ie(() => {
|
|
1280
1275
|
l.optionsPropsRef.value.static = e.static;
|
|
1281
1276
|
}), ie(() => {
|
|
1282
1277
|
l.optionsPropsRef.value.hold = e.hold;
|
|
1283
1278
|
});
|
|
1284
|
-
let i =
|
|
1285
|
-
|
|
1279
|
+
let i = $o(), s = S(() => i !== null ? (i.value & $e.Open) === $e.Open : l.comboboxState.value === 0);
|
|
1280
|
+
yo({ container: S(() => P(l.optionsRef)), enabled: S(() => l.comboboxState.value === 0), accept(u) {
|
|
1286
1281
|
return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
1287
1282
|
}, walk(u) {
|
|
1288
1283
|
u.setAttribute("role", "none");
|
|
@@ -1292,17 +1287,17 @@ let Fo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1292
1287
|
}
|
|
1293
1288
|
return () => {
|
|
1294
1289
|
var u, c, p;
|
|
1295
|
-
let g = { open: l.comboboxState.value === 0 }, x = { "aria-labelledby": (p = (u = P(l.labelRef)) == null ? void 0 : u.id) != null ? p : (c = P(l.buttonRef)) == null ? void 0 : c.id, id: r, ref: l.optionsRef, role: "listbox", "aria-multiselectable": l.mode.value === 1 ? !0 : void 0, onMousedown: a }, _ =
|
|
1296
|
-
return pe({ ourProps: x, theirProps: _, slot: g, attrs: o, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ee(
|
|
1290
|
+
let g = { open: l.comboboxState.value === 0 }, x = { "aria-labelledby": (p = (u = P(l.labelRef)) == null ? void 0 : u.id) != null ? p : (c = P(l.buttonRef)) == null ? void 0 : c.id, id: r, ref: l.optionsRef, role: "listbox", "aria-multiselectable": l.mode.value === 1 ? !0 : void 0, onMousedown: a }, _ = je(e, ["hold"]);
|
|
1291
|
+
return pe({ ourProps: x, theirProps: _, slot: g, attrs: o, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ee(Mo, {}, t.default)] } : t, features: Oe.RenderStrategy | Oe.Static, visible: s.value, name: "ComboboxOptions" });
|
|
1297
1292
|
};
|
|
1298
|
-
} }),
|
|
1299
|
-
let l = ve("ComboboxOption"), r = `headlessui-combobox-option-${
|
|
1293
|
+
} }), jo = 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 }) {
|
|
1294
|
+
let l = ve("ComboboxOption"), r = `headlessui-combobox-option-${Le()}`, i = E(null), s = S(() => e.disabled);
|
|
1300
1295
|
n({ el: i, $el: i });
|
|
1301
1296
|
let a = S(() => {
|
|
1302
1297
|
var I;
|
|
1303
1298
|
return l.virtual.value ? l.activeOptionIndex.value === l.calculateIndex(e.value) : l.activeOptionIndex.value === null ? !1 : ((I = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : I.id) === r;
|
|
1304
|
-
}), u = S(() => l.isSelected(e.value)), c = Ie(
|
|
1305
|
-
Ce(() => l.registerOption(r, p)),
|
|
1299
|
+
}), u = S(() => l.isSelected(e.value)), c = Ie(Wt, null), p = S(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: S(() => e.order) }));
|
|
1300
|
+
Ce(() => l.registerOption(r, p)), nt(() => l.unregisterOption(r, a.value)), ie(() => {
|
|
1306
1301
|
let I = P(i);
|
|
1307
1302
|
I && (c == null || c.value.measureElement(I));
|
|
1308
1303
|
}), ie(() => {
|
|
@@ -1312,7 +1307,7 @@ let Fo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1312
1307
|
}));
|
|
1313
1308
|
});
|
|
1314
1309
|
function g(I) {
|
|
1315
|
-
I.preventDefault(), I.button ===
|
|
1310
|
+
I.preventDefault(), I.button === Bt.Left && (s.value || (l.selectOption(r), Nt() || requestAnimationFrame(() => {
|
|
1316
1311
|
var k;
|
|
1317
1312
|
return (k = P(l.inputRef)) == null ? void 0 : k.focus({ preventScroll: !0 });
|
|
1318
1313
|
}), l.mode.value === 0 && l.closeCombobox()));
|
|
@@ -1323,7 +1318,7 @@ let Fo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1323
1318
|
let k = l.calculateIndex(e.value);
|
|
1324
1319
|
l.goToOption(z.Specific, k);
|
|
1325
1320
|
}
|
|
1326
|
-
let _ =
|
|
1321
|
+
let _ = Co();
|
|
1327
1322
|
function v(I) {
|
|
1328
1323
|
_.update(I);
|
|
1329
1324
|
}
|
|
@@ -1338,11 +1333,11 @@ let Fo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1338
1333
|
_.wasMoved(I) && (e.disabled || (k = l.virtual.value) != null && k.disabled(e.value) || a.value && (l.optionsPropsRef.value.hold || l.goToOption(z.Nothing)));
|
|
1339
1334
|
}
|
|
1340
1335
|
return () => {
|
|
1341
|
-
let { disabled: I } = e, k = { active: a.value, selected: u.value, disabled: I }, D = { id: r, ref: i, role: "option", tabIndex: I === !0 ? void 0 : -1, "aria-disabled": I === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: g, onFocus: x, onPointerenter: v, onMouseenter: v, onPointermove: $, onMousemove: $, onPointerleave: N, onMouseleave: N }, m =
|
|
1336
|
+
let { disabled: I } = e, k = { active: a.value, selected: u.value, disabled: I }, D = { id: r, ref: i, role: "option", tabIndex: I === !0 ? void 0 : -1, "aria-disabled": I === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: g, onFocus: x, onPointerenter: v, onMouseenter: v, onPointermove: $, onMousemove: $, onPointerleave: N, onMouseleave: N }, m = je(e, ["order", "value"]);
|
|
1342
1337
|
return pe({ ourProps: D, theirProps: m, slot: k, attrs: t, slots: o, name: "ComboboxOption" });
|
|
1343
1338
|
};
|
|
1344
1339
|
} });
|
|
1345
|
-
function
|
|
1340
|
+
function Bo(e, o) {
|
|
1346
1341
|
return w(), T("svg", {
|
|
1347
1342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1348
1343
|
viewBox: "0 0 20 20",
|
|
@@ -1357,7 +1352,7 @@ function zo(e, o) {
|
|
|
1357
1352
|
})
|
|
1358
1353
|
]);
|
|
1359
1354
|
}
|
|
1360
|
-
function
|
|
1355
|
+
function Ho(e, o) {
|
|
1361
1356
|
return w(), T("svg", {
|
|
1362
1357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1363
1358
|
viewBox: "0 0 20 20",
|
|
@@ -1372,7 +1367,7 @@ function Uo(e, o) {
|
|
|
1372
1367
|
})
|
|
1373
1368
|
]);
|
|
1374
1369
|
}
|
|
1375
|
-
function
|
|
1370
|
+
function zo(e, o) {
|
|
1376
1371
|
return w(), T("svg", {
|
|
1377
1372
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1378
1373
|
viewBox: "0 0 20 20",
|
|
@@ -1387,33 +1382,33 @@ function Zo(e, o) {
|
|
|
1387
1382
|
})
|
|
1388
1383
|
]);
|
|
1389
1384
|
}
|
|
1390
|
-
var
|
|
1391
|
-
function
|
|
1385
|
+
var Gt = !1;
|
|
1386
|
+
function Ve(e, o, t) {
|
|
1392
1387
|
return Array.isArray(e) ? (e.length = Math.max(e.length, o), e.splice(o, 1, t), t) : (e[o] = t, t);
|
|
1393
1388
|
}
|
|
1394
|
-
function
|
|
1389
|
+
function Ke(e, o) {
|
|
1395
1390
|
if (Array.isArray(e)) {
|
|
1396
1391
|
e.splice(o, 1);
|
|
1397
1392
|
return;
|
|
1398
1393
|
}
|
|
1399
1394
|
delete e[o];
|
|
1400
1395
|
}
|
|
1401
|
-
function
|
|
1402
|
-
return
|
|
1396
|
+
function Uo() {
|
|
1397
|
+
return qt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1403
1398
|
}
|
|
1404
|
-
function
|
|
1399
|
+
function qt() {
|
|
1405
1400
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1406
1401
|
}
|
|
1407
|
-
const
|
|
1408
|
-
let me,
|
|
1409
|
-
function
|
|
1402
|
+
const Zo = typeof Proxy == "function", Wo = "devtools-plugin:setup", Go = "plugin:settings:set";
|
|
1403
|
+
let me, Ye;
|
|
1404
|
+
function qo() {
|
|
1410
1405
|
var e;
|
|
1411
|
-
return me !== void 0 || (typeof window < "u" && window.performance ? (me = !0,
|
|
1406
|
+
return me !== void 0 || (typeof window < "u" && window.performance ? (me = !0, Ye = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (me = !0, Ye = globalThis.perf_hooks.performance) : me = !1), me;
|
|
1412
1407
|
}
|
|
1413
|
-
function
|
|
1414
|
-
return
|
|
1408
|
+
function Jo() {
|
|
1409
|
+
return qo() ? Ye.now() : Date.now();
|
|
1415
1410
|
}
|
|
1416
|
-
class
|
|
1411
|
+
class Ko {
|
|
1417
1412
|
constructor(o, t) {
|
|
1418
1413
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = o, this.hook = t;
|
|
1419
1414
|
const n = {};
|
|
@@ -1441,9 +1436,9 @@ class Qo {
|
|
|
1441
1436
|
r = i;
|
|
1442
1437
|
},
|
|
1443
1438
|
now() {
|
|
1444
|
-
return
|
|
1439
|
+
return Jo();
|
|
1445
1440
|
}
|
|
1446
|
-
}, t && t.on(
|
|
1441
|
+
}, t && t.on(Go, (i, s) => {
|
|
1447
1442
|
i === this.plugin.id && this.fallbacks.setSettings(s);
|
|
1448
1443
|
}), this.proxiedOn = new Proxy({}, {
|
|
1449
1444
|
get: (i, s) => this.target ? this.target.on[s] : (...a) => {
|
|
@@ -1475,12 +1470,12 @@ class Qo {
|
|
|
1475
1470
|
t.resolve(await this.target[t.method](...t.args));
|
|
1476
1471
|
}
|
|
1477
1472
|
}
|
|
1478
|
-
function
|
|
1479
|
-
const t = e, n =
|
|
1473
|
+
function Jt(e, o) {
|
|
1474
|
+
const t = e, n = qt(), l = Uo(), r = Zo && t.enableEarlyProxy;
|
|
1480
1475
|
if (l && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
1481
|
-
l.emit(
|
|
1476
|
+
l.emit(Wo, e, o);
|
|
1482
1477
|
else {
|
|
1483
|
-
const i = r ? new
|
|
1478
|
+
const i = r ? new Ko(t, l) : null;
|
|
1484
1479
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1485
1480
|
pluginDescriptor: t,
|
|
1486
1481
|
setupFn: o,
|
|
@@ -1494,7 +1489,7 @@ function Qt(e, o) {
|
|
|
1494
1489
|
* @license MIT
|
|
1495
1490
|
*/
|
|
1496
1491
|
let we;
|
|
1497
|
-
const Te = (e) => we = e,
|
|
1492
|
+
const Te = (e) => we = e, Kt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
1498
1493
|
/* istanbul ignore next */
|
|
1499
1494
|
Symbol()
|
|
1500
1495
|
);
|
|
@@ -1505,19 +1500,19 @@ var ne;
|
|
|
1505
1500
|
(function(e) {
|
|
1506
1501
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
1507
1502
|
})(ne || (ne = {}));
|
|
1508
|
-
const
|
|
1509
|
-
function
|
|
1503
|
+
const Be = typeof window < "u", Se = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && Be, bt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
1504
|
+
function Yo(e, { autoBom: o = !1 } = {}) {
|
|
1510
1505
|
return o && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
1511
1506
|
}
|
|
1512
|
-
function
|
|
1507
|
+
function it(e, o, t) {
|
|
1513
1508
|
const n = new XMLHttpRequest();
|
|
1514
1509
|
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
1515
|
-
|
|
1510
|
+
Xt(n.response, o, t);
|
|
1516
1511
|
}, n.onerror = function() {
|
|
1517
1512
|
console.error("could not download file");
|
|
1518
1513
|
}, n.send();
|
|
1519
1514
|
}
|
|
1520
|
-
function
|
|
1515
|
+
function Yt(e) {
|
|
1521
1516
|
const o = new XMLHttpRequest();
|
|
1522
1517
|
o.open("HEAD", e, !1);
|
|
1523
1518
|
try {
|
|
@@ -1526,7 +1521,7 @@ function en(e) {
|
|
|
1526
1521
|
}
|
|
1527
1522
|
return o.status >= 200 && o.status <= 299;
|
|
1528
1523
|
}
|
|
1529
|
-
function
|
|
1524
|
+
function ke(e) {
|
|
1530
1525
|
try {
|
|
1531
1526
|
e.dispatchEvent(new MouseEvent("click"));
|
|
1532
1527
|
} catch {
|
|
@@ -1534,43 +1529,43 @@ function Ne(e) {
|
|
|
1534
1529
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
1535
1530
|
}
|
|
1536
1531
|
}
|
|
1537
|
-
const
|
|
1532
|
+
const Me = typeof navigator == "object" ? navigator : { userAgent: "" }, Qt = /Macintosh/.test(Me.userAgent) && /AppleWebKit/.test(Me.userAgent) && !/Safari/.test(Me.userAgent), Xt = Be ? (
|
|
1538
1533
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
1539
|
-
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !
|
|
1534
|
+
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Qt ? Qo : (
|
|
1540
1535
|
// Use msSaveOrOpenBlob as a second approach
|
|
1541
|
-
"msSaveOrOpenBlob" in
|
|
1536
|
+
"msSaveOrOpenBlob" in Me ? Xo : (
|
|
1542
1537
|
// Fallback to using FileReader and a popup
|
|
1543
|
-
|
|
1538
|
+
e2
|
|
1544
1539
|
)
|
|
1545
1540
|
)
|
|
1546
1541
|
) : () => {
|
|
1547
1542
|
};
|
|
1548
|
-
function
|
|
1543
|
+
function Qo(e, o = "download", t) {
|
|
1549
1544
|
const n = document.createElement("a");
|
|
1550
|
-
n.download = o, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ?
|
|
1545
|
+
n.download = o, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Yt(n.href) ? it(e, o, t) : (n.target = "_blank", ke(n)) : ke(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
|
|
1551
1546
|
URL.revokeObjectURL(n.href);
|
|
1552
1547
|
}, 4e4), setTimeout(function() {
|
|
1553
|
-
|
|
1548
|
+
ke(n);
|
|
1554
1549
|
}, 0));
|
|
1555
1550
|
}
|
|
1556
|
-
function
|
|
1551
|
+
function Xo(e, o = "download", t) {
|
|
1557
1552
|
if (typeof e == "string")
|
|
1558
|
-
if (
|
|
1559
|
-
|
|
1553
|
+
if (Yt(e))
|
|
1554
|
+
it(e, o, t);
|
|
1560
1555
|
else {
|
|
1561
1556
|
const n = document.createElement("a");
|
|
1562
1557
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
1563
|
-
|
|
1558
|
+
ke(n);
|
|
1564
1559
|
});
|
|
1565
1560
|
}
|
|
1566
1561
|
else
|
|
1567
|
-
navigator.msSaveOrOpenBlob(
|
|
1562
|
+
navigator.msSaveOrOpenBlob(Yo(e, t), o);
|
|
1568
1563
|
}
|
|
1569
|
-
function
|
|
1564
|
+
function e2(e, o, t, n) {
|
|
1570
1565
|
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
|
|
1571
|
-
return
|
|
1572
|
-
const l = e.type === "application/octet-stream", r = /constructor/i.test(String(
|
|
1573
|
-
if ((i || l && r ||
|
|
1566
|
+
return it(e, o, t);
|
|
1567
|
+
const l = e.type === "application/octet-stream", r = /constructor/i.test(String(bt.HTMLElement)) || "safari" in bt, i = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
1568
|
+
if ((i || l && r || Qt) && typeof FileReader < "u") {
|
|
1574
1569
|
const s = new FileReader();
|
|
1575
1570
|
s.onloadend = function() {
|
|
1576
1571
|
let a = s.result;
|
|
@@ -1589,39 +1584,39 @@ function B(e, o) {
|
|
|
1589
1584
|
const t = "🍍 " + e;
|
|
1590
1585
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(t, o) : o === "error" ? console.error(t) : o === "warn" ? console.warn(t) : console.log(t);
|
|
1591
1586
|
}
|
|
1592
|
-
function
|
|
1587
|
+
function at(e) {
|
|
1593
1588
|
return "_a" in e && "install" in e;
|
|
1594
1589
|
}
|
|
1595
|
-
function
|
|
1590
|
+
function en() {
|
|
1596
1591
|
if (!("clipboard" in navigator))
|
|
1597
1592
|
return B("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
1598
1593
|
}
|
|
1599
|
-
function
|
|
1594
|
+
function tn(e) {
|
|
1600
1595
|
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (B('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
1601
1596
|
}
|
|
1602
|
-
async function
|
|
1603
|
-
if (!
|
|
1597
|
+
async function t2(e) {
|
|
1598
|
+
if (!en())
|
|
1604
1599
|
try {
|
|
1605
1600
|
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), B("Global state copied to clipboard.");
|
|
1606
1601
|
} catch (o) {
|
|
1607
|
-
if (
|
|
1602
|
+
if (tn(o))
|
|
1608
1603
|
return;
|
|
1609
1604
|
B("Failed to serialize the state. Check the console for more details.", "error"), console.error(o);
|
|
1610
1605
|
}
|
|
1611
1606
|
}
|
|
1612
|
-
async function
|
|
1613
|
-
if (!
|
|
1607
|
+
async function n2(e) {
|
|
1608
|
+
if (!en())
|
|
1614
1609
|
try {
|
|
1615
|
-
|
|
1610
|
+
nn(e, JSON.parse(await navigator.clipboard.readText())), B("Global state pasted from clipboard.");
|
|
1616
1611
|
} catch (o) {
|
|
1617
|
-
if (
|
|
1612
|
+
if (tn(o))
|
|
1618
1613
|
return;
|
|
1619
1614
|
B("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(o);
|
|
1620
1615
|
}
|
|
1621
1616
|
}
|
|
1622
|
-
async function
|
|
1617
|
+
async function o2(e) {
|
|
1623
1618
|
try {
|
|
1624
|
-
|
|
1619
|
+
Xt(new Blob([JSON.stringify(e.state.value)], {
|
|
1625
1620
|
type: "text/plain;charset=utf-8"
|
|
1626
1621
|
}), "pinia-state.json");
|
|
1627
1622
|
} catch (o) {
|
|
@@ -1629,7 +1624,7 @@ async function s2(e) {
|
|
|
1629
1624
|
}
|
|
1630
1625
|
}
|
|
1631
1626
|
let oe;
|
|
1632
|
-
function
|
|
1627
|
+
function l2() {
|
|
1633
1628
|
oe || (oe = document.createElement("input"), oe.type = "file", oe.accept = ".json");
|
|
1634
1629
|
function e() {
|
|
1635
1630
|
return new Promise((o, t) => {
|
|
@@ -1644,18 +1639,18 @@ function r2() {
|
|
|
1644
1639
|
}
|
|
1645
1640
|
return e;
|
|
1646
1641
|
}
|
|
1647
|
-
async function
|
|
1642
|
+
async function s2(e) {
|
|
1648
1643
|
try {
|
|
1649
|
-
const t = await
|
|
1644
|
+
const t = await l2()();
|
|
1650
1645
|
if (!t)
|
|
1651
1646
|
return;
|
|
1652
1647
|
const { text: n, file: l } = t;
|
|
1653
|
-
|
|
1648
|
+
nn(e, JSON.parse(n)), B(`Global state imported from "${l.name}".`);
|
|
1654
1649
|
} catch (o) {
|
|
1655
1650
|
B("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(o);
|
|
1656
1651
|
}
|
|
1657
1652
|
}
|
|
1658
|
-
function
|
|
1653
|
+
function nn(e, o) {
|
|
1659
1654
|
for (const t in o) {
|
|
1660
1655
|
const n = e.state.value[t];
|
|
1661
1656
|
n ? Object.assign(n, o[t]) : e.state.value[t] = o[t];
|
|
@@ -1668,18 +1663,18 @@ function Y(e) {
|
|
|
1668
1663
|
}
|
|
1669
1664
|
};
|
|
1670
1665
|
}
|
|
1671
|
-
const
|
|
1672
|
-
function
|
|
1673
|
-
return
|
|
1674
|
-
id:
|
|
1675
|
-
label:
|
|
1666
|
+
const on = "🍍 Pinia (root)", Qe = "_root";
|
|
1667
|
+
function r2(e) {
|
|
1668
|
+
return at(e) ? {
|
|
1669
|
+
id: Qe,
|
|
1670
|
+
label: on
|
|
1676
1671
|
} : {
|
|
1677
1672
|
id: e.$id,
|
|
1678
1673
|
label: e.$id
|
|
1679
1674
|
};
|
|
1680
1675
|
}
|
|
1681
|
-
function
|
|
1682
|
-
if (
|
|
1676
|
+
function i2(e) {
|
|
1677
|
+
if (at(e)) {
|
|
1683
1678
|
const t = Array.from(e._s.keys()), n = e._s;
|
|
1684
1679
|
return {
|
|
1685
1680
|
state: t.map((r) => ({
|
|
@@ -1714,7 +1709,7 @@ function u2(e) {
|
|
|
1714
1709
|
value: e[t]
|
|
1715
1710
|
}))), o;
|
|
1716
1711
|
}
|
|
1717
|
-
function
|
|
1712
|
+
function a2(e) {
|
|
1718
1713
|
return e ? Array.isArray(e) ? e.reduce((o, t) => (o.keys.push(t.key), o.operations.push(t.type), o.oldValue[t.key] = t.oldValue, o.newValue[t.key] = t.newValue, o), {
|
|
1719
1714
|
oldValue: {},
|
|
1720
1715
|
keys: [],
|
|
@@ -1727,7 +1722,7 @@ function c2(e) {
|
|
|
1727
1722
|
newValue: e.newValue
|
|
1728
1723
|
} : {};
|
|
1729
1724
|
}
|
|
1730
|
-
function
|
|
1725
|
+
function u2(e) {
|
|
1731
1726
|
switch (e) {
|
|
1732
1727
|
case ne.direct:
|
|
1733
1728
|
return "mutation";
|
|
@@ -1740,15 +1735,15 @@ function d2(e) {
|
|
|
1740
1735
|
}
|
|
1741
1736
|
}
|
|
1742
1737
|
let be = !0;
|
|
1743
|
-
const
|
|
1744
|
-
function
|
|
1745
|
-
|
|
1738
|
+
const Ne = [], ue = "pinia:mutations", U = "pinia", { assign: c2 } = Object, Ae = (e) => "🍍 " + e;
|
|
1739
|
+
function d2(e, o) {
|
|
1740
|
+
Jt({
|
|
1746
1741
|
id: "dev.esm.pinia",
|
|
1747
1742
|
label: "Pinia 🍍",
|
|
1748
1743
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
1749
1744
|
packageName: "pinia",
|
|
1750
1745
|
homepage: "https://pinia.vuejs.org",
|
|
1751
|
-
componentStateTypes:
|
|
1746
|
+
componentStateTypes: Ne,
|
|
1752
1747
|
app: e
|
|
1753
1748
|
}, (t) => {
|
|
1754
1749
|
typeof t.now != "function" && B("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), t.addTimelineLayer({
|
|
@@ -1764,28 +1759,28 @@ function p2(e, o) {
|
|
|
1764
1759
|
{
|
|
1765
1760
|
icon: "content_copy",
|
|
1766
1761
|
action: () => {
|
|
1767
|
-
|
|
1762
|
+
t2(o);
|
|
1768
1763
|
},
|
|
1769
1764
|
tooltip: "Serialize and copy the state"
|
|
1770
1765
|
},
|
|
1771
1766
|
{
|
|
1772
1767
|
icon: "content_paste",
|
|
1773
1768
|
action: async () => {
|
|
1774
|
-
await
|
|
1769
|
+
await n2(o), t.sendInspectorTree(U), t.sendInspectorState(U);
|
|
1775
1770
|
},
|
|
1776
1771
|
tooltip: "Replace the state with the content of your clipboard"
|
|
1777
1772
|
},
|
|
1778
1773
|
{
|
|
1779
1774
|
icon: "save",
|
|
1780
1775
|
action: () => {
|
|
1781
|
-
|
|
1776
|
+
o2(o);
|
|
1782
1777
|
},
|
|
1783
1778
|
tooltip: "Save the state as a JSON file"
|
|
1784
1779
|
},
|
|
1785
1780
|
{
|
|
1786
1781
|
icon: "folder_open",
|
|
1787
1782
|
action: async () => {
|
|
1788
|
-
await
|
|
1783
|
+
await s2(o), t.sendInspectorTree(U), t.sendInspectorState(U);
|
|
1789
1784
|
},
|
|
1790
1785
|
tooltip: "Import the state from a JSON file"
|
|
1791
1786
|
}
|
|
@@ -1806,7 +1801,7 @@ function p2(e, o) {
|
|
|
1806
1801
|
const i = n.componentInstance.proxy._pStores;
|
|
1807
1802
|
Object.values(i).forEach((s) => {
|
|
1808
1803
|
n.instanceData.state.push({
|
|
1809
|
-
type:
|
|
1804
|
+
type: Ae(s.$id),
|
|
1810
1805
|
key: "state",
|
|
1811
1806
|
editable: !0,
|
|
1812
1807
|
value: s._isOptionsAPI ? {
|
|
@@ -1825,7 +1820,7 @@ function p2(e, o) {
|
|
|
1825
1820
|
Object.keys(s.$state).reduce((a, u) => (a[u] = s.$state[u], a), {})
|
|
1826
1821
|
)
|
|
1827
1822
|
}), s._getters && s._getters.length && n.instanceData.state.push({
|
|
1828
|
-
type:
|
|
1823
|
+
type: Ae(s.$id),
|
|
1829
1824
|
key: "getters",
|
|
1830
1825
|
editable: !1,
|
|
1831
1826
|
value: s._getters.reduce((a, u) => {
|
|
@@ -1842,22 +1837,22 @@ function p2(e, o) {
|
|
|
1842
1837
|
}), t.on.getInspectorTree((n) => {
|
|
1843
1838
|
if (n.app === e && n.inspectorId === U) {
|
|
1844
1839
|
let l = [o];
|
|
1845
|
-
l = l.concat(Array.from(o._s.values())), n.rootNodes = (n.filter ? l.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) :
|
|
1840
|
+
l = l.concat(Array.from(o._s.values())), n.rootNodes = (n.filter ? l.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) : on.toLowerCase().includes(n.filter.toLowerCase())) : l).map(r2);
|
|
1846
1841
|
}
|
|
1847
1842
|
}), t.on.getInspectorState((n) => {
|
|
1848
1843
|
if (n.app === e && n.inspectorId === U) {
|
|
1849
|
-
const l = n.nodeId ===
|
|
1844
|
+
const l = n.nodeId === Qe ? o : o._s.get(n.nodeId);
|
|
1850
1845
|
if (!l)
|
|
1851
1846
|
return;
|
|
1852
|
-
l && (n.state =
|
|
1847
|
+
l && (n.state = i2(l));
|
|
1853
1848
|
}
|
|
1854
1849
|
}), t.on.editInspectorState((n, l) => {
|
|
1855
1850
|
if (n.app === e && n.inspectorId === U) {
|
|
1856
|
-
const r = n.nodeId ===
|
|
1851
|
+
const r = n.nodeId === Qe ? o : o._s.get(n.nodeId);
|
|
1857
1852
|
if (!r)
|
|
1858
1853
|
return B(`store "${n.nodeId}" not found`, "error");
|
|
1859
1854
|
const { path: i } = n;
|
|
1860
|
-
|
|
1855
|
+
at(r) ? i.unshift("state") : (i.length !== 1 || !r._customProperties.has(i[0]) || i[0] in r.$state) && i.unshift("$state"), be = !1, n.set(r, i, n.state.value), be = !0;
|
|
1861
1856
|
}
|
|
1862
1857
|
}), t.on.editComponentState((n) => {
|
|
1863
1858
|
if (n.type.startsWith("🍍")) {
|
|
@@ -1874,14 +1869,14 @@ Only state can be modified.`);
|
|
|
1874
1869
|
});
|
|
1875
1870
|
});
|
|
1876
1871
|
}
|
|
1877
|
-
function
|
|
1878
|
-
|
|
1872
|
+
function f2(e, o) {
|
|
1873
|
+
Ne.includes(Ae(o.$id)) || Ne.push(Ae(o.$id)), Jt({
|
|
1879
1874
|
id: "dev.esm.pinia",
|
|
1880
1875
|
label: "Pinia 🍍",
|
|
1881
1876
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
1882
1877
|
packageName: "pinia",
|
|
1883
1878
|
homepage: "https://pinia.vuejs.org",
|
|
1884
|
-
componentStateTypes:
|
|
1879
|
+
componentStateTypes: Ne,
|
|
1885
1880
|
app: e,
|
|
1886
1881
|
settings: {
|
|
1887
1882
|
logStoreChanges: {
|
|
@@ -1898,7 +1893,7 @@ function v2(e, o) {
|
|
|
1898
1893
|
}, (t) => {
|
|
1899
1894
|
const n = typeof t.now == "function" ? t.now.bind(t) : Date.now;
|
|
1900
1895
|
o.$onAction(({ after: i, onError: s, name: a, args: u }) => {
|
|
1901
|
-
const c =
|
|
1896
|
+
const c = ln++;
|
|
1902
1897
|
t.addTimelineEvent({
|
|
1903
1898
|
layerId: ue,
|
|
1904
1899
|
event: {
|
|
@@ -1967,8 +1962,8 @@ function v2(e, o) {
|
|
|
1967
1962
|
return;
|
|
1968
1963
|
const u = {
|
|
1969
1964
|
time: n(),
|
|
1970
|
-
title:
|
|
1971
|
-
data:
|
|
1965
|
+
title: u2(s),
|
|
1966
|
+
data: c2({ store: Y(o.$id) }, a2(i)),
|
|
1972
1967
|
groupId: re
|
|
1973
1968
|
};
|
|
1974
1969
|
s === ne.patchFunction ? u.subtitle = "⤵️" : s === ne.patchObject ? u.subtitle = "🧩" : i && !Array.isArray(i) && (u.subtitle = i.type), i && (u.data["rawEvent(s)"] = {
|
|
@@ -2004,12 +1999,12 @@ function v2(e, o) {
|
|
|
2004
1999
|
}, t.notifyComponentUpdate(), t.sendInspectorTree(U), t.sendInspectorState(U), t.getSettings().logStoreChanges && B(`"${o.$id}" store installed 🆕`);
|
|
2005
2000
|
});
|
|
2006
2001
|
}
|
|
2007
|
-
let
|
|
2008
|
-
function
|
|
2002
|
+
let ln = 0, re;
|
|
2003
|
+
function xt(e, o, t) {
|
|
2009
2004
|
const n = o.reduce((l, r) => (l[r] = K(e)[r], l), {});
|
|
2010
2005
|
for (const l in n)
|
|
2011
2006
|
e[l] = function() {
|
|
2012
|
-
const r =
|
|
2007
|
+
const r = ln, i = t ? new Proxy(e, {
|
|
2013
2008
|
get(...a) {
|
|
2014
2009
|
return re = r, Reflect.get(...a);
|
|
2015
2010
|
},
|
|
@@ -2022,28 +2017,28 @@ function _t(e, o, t) {
|
|
|
2022
2017
|
return re = void 0, s;
|
|
2023
2018
|
};
|
|
2024
2019
|
}
|
|
2025
|
-
function
|
|
2020
|
+
function p2({ app: e, store: o, options: t }) {
|
|
2026
2021
|
if (o.$id.startsWith("__hot:"))
|
|
2027
2022
|
return;
|
|
2028
|
-
o._isOptionsAPI = !!t.state,
|
|
2023
|
+
o._isOptionsAPI = !!t.state, xt(o, Object.keys(t.actions), o._isOptionsAPI);
|
|
2029
2024
|
const n = o._hotUpdate;
|
|
2030
2025
|
K(o)._hotUpdate = function(l) {
|
|
2031
|
-
n.apply(this, arguments),
|
|
2032
|
-
},
|
|
2026
|
+
n.apply(this, arguments), xt(o, Object.keys(l._hmrPayload.actions), !!o._isOptionsAPI);
|
|
2027
|
+
}, f2(
|
|
2033
2028
|
e,
|
|
2034
2029
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
2035
2030
|
o
|
|
2036
2031
|
);
|
|
2037
2032
|
}
|
|
2038
|
-
function
|
|
2039
|
-
const e =
|
|
2033
|
+
function v2() {
|
|
2034
|
+
const e = It(!0), o = e.run(() => E({}));
|
|
2040
2035
|
let t = [], n = [];
|
|
2041
2036
|
const l = de({
|
|
2042
2037
|
install(r) {
|
|
2043
|
-
Te(l), l._a = r, r.provide(
|
|
2038
|
+
Te(l), l._a = r, r.provide(Kt, l), r.config.globalProperties.$pinia = l, Se && d2(r, l), n.forEach((i) => t.push(i)), n = [];
|
|
2044
2039
|
},
|
|
2045
2040
|
use(r) {
|
|
2046
|
-
return !this._a && !
|
|
2041
|
+
return !this._a && !Gt ? n.push(r) : t.push(r), this;
|
|
2047
2042
|
},
|
|
2048
2043
|
_p: t,
|
|
2049
2044
|
// it's actually undefined here
|
|
@@ -2053,73 +2048,73 @@ function m2() {
|
|
|
2053
2048
|
_s: /* @__PURE__ */ new Map(),
|
|
2054
2049
|
state: o
|
|
2055
2050
|
});
|
|
2056
|
-
return Se && typeof Proxy < "u" && l.use(
|
|
2051
|
+
return Se && typeof Proxy < "u" && l.use(p2), l;
|
|
2057
2052
|
}
|
|
2058
|
-
function
|
|
2053
|
+
function sn(e, o) {
|
|
2059
2054
|
for (const t in o) {
|
|
2060
2055
|
const n = o[t];
|
|
2061
2056
|
if (!(t in e))
|
|
2062
2057
|
continue;
|
|
2063
2058
|
const l = e[t];
|
|
2064
|
-
fe(l) && fe(n) && !xe(n) && !
|
|
2059
|
+
fe(l) && fe(n) && !xe(n) && !lt(n) ? e[t] = sn(l, n) : e[t] = n;
|
|
2065
2060
|
}
|
|
2066
2061
|
return e;
|
|
2067
2062
|
}
|
|
2068
|
-
const
|
|
2063
|
+
const rn = () => {
|
|
2069
2064
|
};
|
|
2070
|
-
function
|
|
2065
|
+
function _t(e, o, t, n = rn) {
|
|
2071
2066
|
e.push(o);
|
|
2072
2067
|
const l = () => {
|
|
2073
2068
|
const r = e.indexOf(o);
|
|
2074
2069
|
r > -1 && (e.splice(r, 1), n());
|
|
2075
2070
|
};
|
|
2076
|
-
return !t &&
|
|
2071
|
+
return !t && Rt() && tt(l), l;
|
|
2077
2072
|
}
|
|
2078
2073
|
function ge(e, ...o) {
|
|
2079
2074
|
e.slice().forEach((t) => {
|
|
2080
2075
|
t(...o);
|
|
2081
2076
|
});
|
|
2082
2077
|
}
|
|
2083
|
-
const
|
|
2084
|
-
function
|
|
2078
|
+
const h2 = (e) => e();
|
|
2079
|
+
function Xe(e, o) {
|
|
2085
2080
|
e instanceof Map && o instanceof Map && o.forEach((t, n) => e.set(n, t)), e instanceof Set && o instanceof Set && o.forEach(e.add, e);
|
|
2086
2081
|
for (const t in o) {
|
|
2087
2082
|
if (!o.hasOwnProperty(t))
|
|
2088
2083
|
continue;
|
|
2089
2084
|
const n = o[t], l = e[t];
|
|
2090
|
-
fe(l) && fe(n) && e.hasOwnProperty(t) && !xe(n) && !
|
|
2085
|
+
fe(l) && fe(n) && e.hasOwnProperty(t) && !xe(n) && !lt(n) ? e[t] = Xe(l, n) : e[t] = n;
|
|
2091
2086
|
}
|
|
2092
2087
|
return e;
|
|
2093
2088
|
}
|
|
2094
|
-
const
|
|
2089
|
+
const m2 = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
2095
2090
|
/* istanbul ignore next */
|
|
2096
2091
|
Symbol()
|
|
2097
2092
|
);
|
|
2098
|
-
function
|
|
2099
|
-
return !fe(e) || !e.hasOwnProperty(
|
|
2093
|
+
function g2(e) {
|
|
2094
|
+
return !fe(e) || !e.hasOwnProperty(m2);
|
|
2100
2095
|
}
|
|
2101
2096
|
const { assign: J } = Object;
|
|
2102
|
-
function
|
|
2097
|
+
function Ct(e) {
|
|
2103
2098
|
return !!(xe(e) && e.effect);
|
|
2104
2099
|
}
|
|
2105
|
-
function
|
|
2100
|
+
function yt(e, o, t, n) {
|
|
2106
2101
|
const { state: l, actions: r, getters: i } = o, s = t.state.value[e];
|
|
2107
2102
|
let a;
|
|
2108
2103
|
function u() {
|
|
2109
2104
|
!s && (process.env.NODE_ENV === "production" || !n) && (t.state.value[e] = l ? l() : {});
|
|
2110
2105
|
const c = process.env.NODE_ENV !== "production" && n ? (
|
|
2111
2106
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
2112
|
-
|
|
2113
|
-
) :
|
|
2107
|
+
ct(E(l ? l() : {}).value)
|
|
2108
|
+
) : ct(t.state.value[e]);
|
|
2114
2109
|
return J(c, r, Object.keys(i || {}).reduce((p, g) => (process.env.NODE_ENV !== "production" && g in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${g}" in store "${e}".`), p[g] = de(S(() => {
|
|
2115
2110
|
Te(t);
|
|
2116
2111
|
const x = t._s.get(e);
|
|
2117
2112
|
return i[g].call(x, x);
|
|
2118
2113
|
})), p), {}));
|
|
2119
2114
|
}
|
|
2120
|
-
return a =
|
|
2115
|
+
return a = et(e, u, o, t, n, !0), a;
|
|
2121
2116
|
}
|
|
2122
|
-
function
|
|
2117
|
+
function et(e, o, t = {}, n, l, r) {
|
|
2123
2118
|
let i;
|
|
2124
2119
|
const s = J({ actions: {} }, t);
|
|
2125
2120
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
@@ -2128,7 +2123,7 @@ function tt(e, o, t = {}, n, l, r) {
|
|
|
2128
2123
|
deep: !0
|
|
2129
2124
|
// flush: 'post',
|
|
2130
2125
|
};
|
|
2131
|
-
process.env.NODE_ENV !== "production" && !
|
|
2126
|
+
process.env.NODE_ENV !== "production" && !Gt && (a.onTrigger = (d) => {
|
|
2132
2127
|
u ? x = d : u == !1 && !C._hotUpdating && (Array.isArray(x) ? x.push(d) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
2133
2128
|
});
|
|
2134
2129
|
let u, c, p = [], g = [], x;
|
|
@@ -2142,7 +2137,7 @@ function tt(e, o, t = {}, n, l, r) {
|
|
|
2142
2137
|
type: ne.patchFunction,
|
|
2143
2138
|
storeId: e,
|
|
2144
2139
|
events: x
|
|
2145
|
-
}) : (
|
|
2140
|
+
}) : (Xe(n.state.value[e], d), f = {
|
|
2146
2141
|
type: ne.patchObject,
|
|
2147
2142
|
payload: d,
|
|
2148
2143
|
storeId: e,
|
|
@@ -2162,7 +2157,7 @@ function tt(e, o, t = {}, n, l, r) {
|
|
|
2162
2157
|
/* istanbul ignore next */
|
|
2163
2158
|
process.env.NODE_ENV !== "production" ? () => {
|
|
2164
2159
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
2165
|
-
} :
|
|
2160
|
+
} : rn
|
|
2166
2161
|
);
|
|
2167
2162
|
function k() {
|
|
2168
2163
|
i.stop(), p = [], g = [], n._s.delete(e);
|
|
@@ -2202,11 +2197,11 @@ function tt(e, o, t = {}, n, l, r) {
|
|
|
2202
2197
|
_p: n,
|
|
2203
2198
|
// _s: scope,
|
|
2204
2199
|
$id: e,
|
|
2205
|
-
$onAction:
|
|
2200
|
+
$onAction: _t.bind(null, g),
|
|
2206
2201
|
$patch: N,
|
|
2207
2202
|
$reset: I,
|
|
2208
2203
|
$subscribe(d, f = {}) {
|
|
2209
|
-
const y =
|
|
2204
|
+
const y = _t(p, d, f.detached, () => O()), O = i.run(() => F(() => n.state.value[e], (M) => {
|
|
2210
2205
|
(f.flush === "sync" ? c : u) && d({
|
|
2211
2206
|
storeId: e,
|
|
2212
2207
|
type: ne.direct,
|
|
@@ -2216,7 +2211,7 @@ function tt(e, o, t = {}, n, l, r) {
|
|
|
2216
2211
|
return y;
|
|
2217
2212
|
},
|
|
2218
2213
|
$dispose: k
|
|
2219
|
-
}, C =
|
|
2214
|
+
}, C = Tt(process.env.NODE_ENV !== "production" || Se ? J(
|
|
2220
2215
|
{
|
|
2221
2216
|
_hmrPayload: m,
|
|
2222
2217
|
_customProperties: de(/* @__PURE__ */ new Set())
|
|
@@ -2227,18 +2222,18 @@ function tt(e, o, t = {}, n, l, r) {
|
|
|
2227
2222
|
// setupStore
|
|
2228
2223
|
) : R);
|
|
2229
2224
|
n._s.set(e, C);
|
|
2230
|
-
const L = (n._a && n._a.runWithContext ||
|
|
2225
|
+
const L = (n._a && n._a.runWithContext || h2)(() => n._e.run(() => (i = It()).run(o)));
|
|
2231
2226
|
for (const d in L) {
|
|
2232
2227
|
const f = L[d];
|
|
2233
|
-
if (xe(f) && !
|
|
2234
|
-
process.env.NODE_ENV !== "production" && l ?
|
|
2228
|
+
if (xe(f) && !Ct(f) || lt(f))
|
|
2229
|
+
process.env.NODE_ENV !== "production" && l ? Ve(v.value, d, Ge(L, d)) : r || (_ && g2(f) && (xe(f) ? f.value = _[d] : Xe(f, _[d])), n.state.value[e][d] = f), process.env.NODE_ENV !== "production" && m.state.push(d);
|
|
2235
2230
|
else if (typeof f == "function") {
|
|
2236
2231
|
const y = process.env.NODE_ENV !== "production" && l ? f : D(d, f);
|
|
2237
2232
|
L[d] = y, process.env.NODE_ENV !== "production" && (m.actions[d] = f), s.actions[d] = f;
|
|
2238
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
2233
|
+
} else process.env.NODE_ENV !== "production" && Ct(f) && (m.getters[d] = r ? (
|
|
2239
2234
|
// @ts-expect-error
|
|
2240
2235
|
t.getters[d]
|
|
2241
|
-
) : f,
|
|
2236
|
+
) : f, Be && (L._getters || // @ts-expect-error: same
|
|
2242
2237
|
(L._getters = de([]))).push(d));
|
|
2243
2238
|
}
|
|
2244
2239
|
if (J(C, L), J(K(C), L), Object.defineProperty(C, "$state", {
|
|
@@ -2254,29 +2249,29 @@ function tt(e, o, t = {}, n, l, r) {
|
|
|
2254
2249
|
C._hotUpdating = !0, d._hmrPayload.state.forEach((f) => {
|
|
2255
2250
|
if (f in C.$state) {
|
|
2256
2251
|
const y = d.$state[f], O = C.$state[f];
|
|
2257
|
-
typeof y == "object" && fe(y) && fe(O) ?
|
|
2252
|
+
typeof y == "object" && fe(y) && fe(O) ? sn(y, O) : d.$state[f] = O;
|
|
2258
2253
|
}
|
|
2259
|
-
|
|
2254
|
+
Ve(C, f, Ge(d.$state, f));
|
|
2260
2255
|
}), Object.keys(C.$state).forEach((f) => {
|
|
2261
|
-
f in d.$state ||
|
|
2262
|
-
}), u = !1, c = !1, n.state.value[e] =
|
|
2256
|
+
f in d.$state || Ke(C, f);
|
|
2257
|
+
}), u = !1, c = !1, n.state.value[e] = Ge(d._hmrPayload, "hotState"), c = !0, Q().then(() => {
|
|
2263
2258
|
u = !0;
|
|
2264
2259
|
});
|
|
2265
2260
|
for (const f in d._hmrPayload.actions) {
|
|
2266
2261
|
const y = d[f];
|
|
2267
|
-
|
|
2262
|
+
Ve(C, f, D(f, y));
|
|
2268
2263
|
}
|
|
2269
2264
|
for (const f in d._hmrPayload.getters) {
|
|
2270
2265
|
const y = d._hmrPayload.getters[f], O = r ? (
|
|
2271
2266
|
// special handling of options api
|
|
2272
2267
|
S(() => (Te(n), y.call(C, C)))
|
|
2273
2268
|
) : y;
|
|
2274
|
-
|
|
2269
|
+
Ve(C, f, O);
|
|
2275
2270
|
}
|
|
2276
2271
|
Object.keys(C._hmrPayload.getters).forEach((f) => {
|
|
2277
|
-
f in d._hmrPayload.getters ||
|
|
2272
|
+
f in d._hmrPayload.getters || Ke(C, f);
|
|
2278
2273
|
}), Object.keys(C._hmrPayload.actions).forEach((f) => {
|
|
2279
|
-
f in d._hmrPayload.actions ||
|
|
2274
|
+
f in d._hmrPayload.actions || Ke(C, f);
|
|
2280
2275
|
}), C._hmrPayload = d._hmrPayload, C._getters = d._getters, C._hotUpdating = !1;
|
|
2281
2276
|
})), Se) {
|
|
2282
2277
|
const d = {
|
|
@@ -2309,7 +2304,7 @@ function tt(e, o, t = {}, n, l, r) {
|
|
|
2309
2304
|
state: () => new MyClass()
|
|
2310
2305
|
Found in store "${C.$id}".`), _ && r && t.hydrate && t.hydrate(C.$state, _), u = !0, c = !0, C;
|
|
2311
2306
|
}
|
|
2312
|
-
function
|
|
2307
|
+
function He(e, o, t) {
|
|
2313
2308
|
let n, l;
|
|
2314
2309
|
const r = typeof o == "function";
|
|
2315
2310
|
if (typeof e == "string")
|
|
@@ -2317,21 +2312,21 @@ function Ue(e, o, t) {
|
|
|
2317
2312
|
else if (l = e, n = e.id, process.env.NODE_ENV !== "production" && typeof n != "string")
|
|
2318
2313
|
throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
|
|
2319
2314
|
function i(s, a) {
|
|
2320
|
-
const u =
|
|
2315
|
+
const u = vn();
|
|
2321
2316
|
if (s = // in test mode, ignore the argument provided as we can always retrieve a
|
|
2322
2317
|
// pinia instance with getActivePinia()
|
|
2323
|
-
(process.env.NODE_ENV === "test" && we && we._testing ? null : s) || (u ? Ie(
|
|
2318
|
+
(process.env.NODE_ENV === "test" && we && we._testing ? null : s) || (u ? Ie(Kt, null) : null), s && Te(s), process.env.NODE_ENV !== "production" && !we)
|
|
2324
2319
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
2325
2320
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
2326
2321
|
This will fail in production.`);
|
|
2327
|
-
s = we, s._s.has(n) || (r ?
|
|
2322
|
+
s = we, s._s.has(n) || (r ? et(n, o, l, s) : yt(n, l, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
|
|
2328
2323
|
const c = s._s.get(n);
|
|
2329
2324
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
2330
|
-
const p = "__hot:" + n, g = r ?
|
|
2325
|
+
const p = "__hot:" + n, g = r ? et(p, o, l, s, !0) : yt(p, J({}, l), s, !0);
|
|
2331
2326
|
a._hotUpdate(g), delete s.state.value[p], s._s.delete(p);
|
|
2332
2327
|
}
|
|
2333
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2334
|
-
const p =
|
|
2328
|
+
if (process.env.NODE_ENV !== "production" && Be) {
|
|
2329
|
+
const p = Lt();
|
|
2335
2330
|
if (p && p.proxy && // avoid adding stores that are just built for hot module replacement
|
|
2336
2331
|
!a) {
|
|
2337
2332
|
const g = p.proxy, x = "_pStores" in g ? g._pStores : g._pStores = {};
|
|
@@ -2342,9 +2337,9 @@ This will fail in production.`);
|
|
|
2342
2337
|
}
|
|
2343
2338
|
return i.$id = n, i;
|
|
2344
2339
|
}
|
|
2345
|
-
const
|
|
2340
|
+
const ze = He("loader", () => ({ loading: E(!1) })), wt = {
|
|
2346
2341
|
__name: "Select",
|
|
2347
|
-
props: /* @__PURE__ */
|
|
2342
|
+
props: /* @__PURE__ */ hn({
|
|
2348
2343
|
languages: {
|
|
2349
2344
|
type: Object,
|
|
2350
2345
|
required: !0
|
|
@@ -2355,32 +2350,32 @@ const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
|
|
|
2355
2350
|
}),
|
|
2356
2351
|
emits: ["update:modelValue"],
|
|
2357
2352
|
setup(e) {
|
|
2358
|
-
const o =
|
|
2353
|
+
const o = ze(), t = e, n = mn(e, "modelValue"), l = E(""), r = E(null), i = S(() => Object.entries(t.languages).filter(
|
|
2359
2354
|
([, a]) => a.toLowerCase().includes(l.value.toLowerCase())
|
|
2360
2355
|
)), s = (a) => {
|
|
2361
2356
|
a.target.value = "", l.value = "", r.value && r.value.$el.click();
|
|
2362
2357
|
};
|
|
2363
|
-
return (a, u) => (w(), ee(V(
|
|
2358
|
+
return (a, u) => (w(), ee(V(No), {
|
|
2364
2359
|
modelValue: n.value,
|
|
2365
2360
|
"onUpdate:modelValue": u[3] || (u[3] = (c) => n.value = c),
|
|
2366
2361
|
disabled: V(o).loading,
|
|
2367
2362
|
as: "div",
|
|
2368
2363
|
class: "relative mt-1"
|
|
2369
2364
|
}, {
|
|
2370
|
-
default:
|
|
2371
|
-
H(V(
|
|
2365
|
+
default: Re(() => [
|
|
2366
|
+
H(V(Ao), {
|
|
2372
2367
|
class: "w-full bg-white border border-gray-300 rounded py-2.5 pl-3 pr-10 text-sm text-gray-800 font-medium focus:outline-none focus:ring-0.5 focus:ring-gray-400 focus:border-gray-400",
|
|
2373
2368
|
onChange: u[0] || (u[0] = (c) => l.value = c.target.value),
|
|
2374
2369
|
displayValue: (c) => e.languages[c],
|
|
2375
2370
|
onFocus: u[1] || (u[1] = (c) => s(c))
|
|
2376
2371
|
}, null, 8, ["displayValue"]),
|
|
2377
|
-
H(V(
|
|
2372
|
+
H(V(Do), {
|
|
2378
2373
|
ref_key: "btnSelect",
|
|
2379
2374
|
ref: r,
|
|
2380
2375
|
class: "absolute inset-y-0 right-0 flex items-center pr-2"
|
|
2381
2376
|
}, {
|
|
2382
|
-
default:
|
|
2383
|
-
H(V(
|
|
2377
|
+
default: Re(() => [
|
|
2378
|
+
H(V(Ho), {
|
|
2384
2379
|
class: "h-5 w-5 text-gray-400",
|
|
2385
2380
|
"aria-hidden": "true",
|
|
2386
2381
|
onClick: u[2] || (u[2] = (c) => s(c))
|
|
@@ -2388,13 +2383,13 @@ const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
|
|
|
2388
2383
|
]),
|
|
2389
2384
|
_: 1
|
|
2390
2385
|
}, 512),
|
|
2391
|
-
H(V(
|
|
2392
|
-
default:
|
|
2393
|
-
(w(!0), T(Z, null, se(i.value, ([c, p]) => (w(), ee(V(
|
|
2386
|
+
H(V(Fo), { 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" }, {
|
|
2387
|
+
default: Re(() => [
|
|
2388
|
+
(w(!0), T(Z, null, se(i.value, ([c, p]) => (w(), ee(V(jo), {
|
|
2394
2389
|
key: c,
|
|
2395
2390
|
value: c
|
|
2396
2391
|
}, {
|
|
2397
|
-
default:
|
|
2392
|
+
default: Re(({ active: g, selected: x }) => [
|
|
2398
2393
|
h("li", {
|
|
2399
2394
|
class: _e([
|
|
2400
2395
|
"relative cursor-default select-none py-2 pl-3 pr-9",
|
|
@@ -2415,19 +2410,19 @@ const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
|
|
|
2415
2410
|
_: 1
|
|
2416
2411
|
}, 8, ["modelValue", "disabled"]));
|
|
2417
2412
|
}
|
|
2418
|
-
},
|
|
2419
|
-
src:
|
|
2413
|
+
}, an = "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='M3.68688%202.3131C3.88214%202.50837%203.88214%202.82495%203.68688%203.02021L2.04043%204.66666L3.68688%206.3131C3.88214%206.50837%203.88214%206.82495%203.68688%207.02021C3.49162%207.21547%203.17504%207.21547%202.97977%207.02021L0.979775%205.02021C0.784513%204.82495%200.784513%204.50837%200.979775%204.3131L2.97977%202.3131C3.17504%202.11784%203.49162%202.11784%203.68688%202.3131Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M12.3131%208.97977C12.5084%208.78451%2012.825%208.78451%2013.0202%208.97977L15.0202%2010.9798C15.2155%2011.175%2015.2155%2011.4916%2015.0202%2011.6869L13.0202%2013.6869C12.825%2013.8821%2012.5084%2013.8821%2012.3131%2013.6869C12.1178%2013.4916%2012.1178%2013.175%2012.3131%2012.9798L13.9596%2011.3333L12.3131%209.68688C12.1178%209.49161%2012.1178%209.17503%2012.3131%208.97977Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%204.66666C0.833328%204.39051%201.05719%204.16666%201.33333%204.16666H14.6667C14.9428%204.16666%2015.1667%204.39051%2015.1667%204.66666C15.1667%204.9428%2014.9428%205.16666%2014.6667%205.16666H1.33333C1.05719%205.16666%200.833328%204.9428%200.833328%204.66666Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%2011.3333C0.833328%2011.0572%201.05719%2010.8333%201.33333%2010.8333H14.6667C14.9428%2010.8333%2015.1667%2011.0572%2015.1667%2011.3333C15.1667%2011.6095%2014.9428%2011.8333%2014.6667%2011.8333H1.33333C1.05719%2011.8333%200.833328%2011.6095%200.833328%2011.3333Z'%20fill='%237E7E7E'/%3e%3c/svg%3e", b2 = ["disabled"], x2 = /* @__PURE__ */ h("img", {
|
|
2414
|
+
src: an,
|
|
2420
2415
|
alt: "swap",
|
|
2421
2416
|
class: "w-4"
|
|
2422
|
-
}, null, -1),
|
|
2423
|
-
|
|
2424
|
-
],
|
|
2425
|
-
src:
|
|
2417
|
+
}, null, -1), _2 = [
|
|
2418
|
+
x2
|
|
2419
|
+
], C2 = ["disabled"], y2 = /* @__PURE__ */ h("img", {
|
|
2420
|
+
src: an,
|
|
2426
2421
|
alt: "swap",
|
|
2427
2422
|
class: "w-4"
|
|
2428
|
-
}, null, -1),
|
|
2429
|
-
|
|
2430
|
-
],
|
|
2423
|
+
}, null, -1), w2 = [
|
|
2424
|
+
y2
|
|
2425
|
+
], S2 = {
|
|
2431
2426
|
__name: "SwapBtn",
|
|
2432
2427
|
props: {
|
|
2433
2428
|
isBidirect: {
|
|
@@ -2437,17 +2432,17 @@ const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
|
|
|
2437
2432
|
},
|
|
2438
2433
|
emits: ["swap"],
|
|
2439
2434
|
setup(e, { emit: o }) {
|
|
2440
|
-
const t =
|
|
2435
|
+
const t = ze(), n = o;
|
|
2441
2436
|
return (l, r) => e.isBidirect ? (w(), T("button", {
|
|
2442
2437
|
key: 1,
|
|
2443
2438
|
onClick: r[0] || (r[0] = (i) => n("swap")),
|
|
2444
2439
|
disabled: V(t).loading
|
|
2445
|
-
},
|
|
2440
|
+
}, w2, 8, C2)) : (w(), T("button", {
|
|
2446
2441
|
key: 0,
|
|
2447
2442
|
disabled: V(t).loading
|
|
2448
|
-
},
|
|
2443
|
+
}, _2, 8, b2));
|
|
2449
2444
|
}
|
|
2450
|
-
},
|
|
2445
|
+
}, Ue = He("language", () => {
|
|
2451
2446
|
const e = E("auto"), o = E("en"), t = E({
|
|
2452
2447
|
src: [],
|
|
2453
2448
|
target: []
|
|
@@ -2464,29 +2459,29 @@ const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
|
|
|
2464
2459
|
return t.value.src[a] || t.value.target[a];
|
|
2465
2460
|
}
|
|
2466
2461
|
return { languages: t, src: e, target: o, srcLabel: n, targetLabel: l, init: r, swap: i, getLabel: s };
|
|
2467
|
-
}),
|
|
2462
|
+
}), E2 = {
|
|
2468
2463
|
key: 0,
|
|
2469
2464
|
class: "flex"
|
|
2470
|
-
},
|
|
2465
|
+
}, O2 = {
|
|
2471
2466
|
__name: "Selects",
|
|
2472
2467
|
setup(e) {
|
|
2473
|
-
const o =
|
|
2468
|
+
const o = Ue();
|
|
2474
2469
|
function t() {
|
|
2475
2470
|
o.swap();
|
|
2476
2471
|
}
|
|
2477
|
-
return (n, l) => V(o).languages ? (w(), T("div",
|
|
2478
|
-
H(
|
|
2472
|
+
return (n, l) => V(o).languages ? (w(), T("div", E2, [
|
|
2473
|
+
H(wt, {
|
|
2479
2474
|
modelValue: V(o).src,
|
|
2480
2475
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => V(o).src = r),
|
|
2481
2476
|
languages: V(o).languages.src,
|
|
2482
2477
|
class: "grow"
|
|
2483
2478
|
}, null, 8, ["modelValue", "languages"]),
|
|
2484
|
-
H(
|
|
2479
|
+
H(S2, {
|
|
2485
2480
|
isBidirect: V(o).src !== "auto",
|
|
2486
2481
|
class: "grow-0 mx-3",
|
|
2487
2482
|
onSwap: t
|
|
2488
2483
|
}, null, 8, ["isBidirect"]),
|
|
2489
|
-
H(
|
|
2484
|
+
H(wt, {
|
|
2490
2485
|
modelValue: V(o).target,
|
|
2491
2486
|
"onUpdate:modelValue": l[1] || (l[1] = (r) => V(o).target = r),
|
|
2492
2487
|
languages: V(o).languages.target,
|
|
@@ -2494,14 +2489,19 @@ const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
|
|
|
2494
2489
|
}, null, 8, ["modelValue", "languages"])
|
|
2495
2490
|
])) : X("", !0);
|
|
2496
2491
|
}
|
|
2497
|
-
},
|
|
2492
|
+
}, $2 = {
|
|
2498
2493
|
INPUT_MAX_LENGTH: 5e3,
|
|
2499
2494
|
INPUT_DEBOUNCE: 500
|
|
2500
|
-
},
|
|
2501
|
-
|
|
2502
|
-
|
|
2495
|
+
}, Ze = (e, o) => {
|
|
2496
|
+
const t = e.__vccOpts || e;
|
|
2497
|
+
for (const [n, l] of o)
|
|
2498
|
+
t[n] = l;
|
|
2499
|
+
return t;
|
|
2500
|
+
}, T2 = {}, I2 = { class: "mr-2 loading loading-dots loading-xs" };
|
|
2501
|
+
function L2(e, o) {
|
|
2502
|
+
return w(), T("span", I2);
|
|
2503
2503
|
}
|
|
2504
|
-
const
|
|
2504
|
+
const R2 = /* @__PURE__ */ Ze(T2, [["render", L2]]), P2 = "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", V2 = "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", un = He("tts", () => {
|
|
2505
2505
|
const e = E({
|
|
2506
2506
|
src: null,
|
|
2507
2507
|
target: null
|
|
@@ -2525,17 +2525,17 @@ const V2 = /* @__PURE__ */ Le(L2, [["render", P2]]), k2 = "data:image/svg+xml,%3
|
|
|
2525
2525
|
get: t,
|
|
2526
2526
|
reset: n
|
|
2527
2527
|
};
|
|
2528
|
-
}),
|
|
2529
|
-
src:
|
|
2528
|
+
}), k2 = /* @__PURE__ */ h("img", {
|
|
2529
|
+
src: P2,
|
|
2530
2530
|
alt: "Play"
|
|
2531
|
+
}, null, -1), M2 = [
|
|
2532
|
+
k2
|
|
2533
|
+
], N2 = /* @__PURE__ */ h("img", {
|
|
2534
|
+
src: V2,
|
|
2535
|
+
alt: "Stop"
|
|
2531
2536
|
}, null, -1), D2 = [
|
|
2532
2537
|
N2
|
|
2533
|
-
], A2 =
|
|
2534
|
-
src: M2,
|
|
2535
|
-
alt: "Stop"
|
|
2536
|
-
}, null, -1), F2 = [
|
|
2537
|
-
A2
|
|
2538
|
-
], j2 = {
|
|
2538
|
+
], A2 = {
|
|
2539
2539
|
__name: "SpeakBtn",
|
|
2540
2540
|
props: {
|
|
2541
2541
|
type: {
|
|
@@ -2545,7 +2545,7 @@ const V2 = /* @__PURE__ */ Le(L2, [["render", P2]]), k2 = "data:image/svg+xml,%3
|
|
|
2545
2545
|
},
|
|
2546
2546
|
emits: ["loadTTS"],
|
|
2547
2547
|
setup(e, { emit: o }) {
|
|
2548
|
-
const t =
|
|
2548
|
+
const t = un(), n = e, l = o, r = S(() => t.tts[n.type]), i = E(!1), s = new Audio();
|
|
2549
2549
|
F(
|
|
2550
2550
|
r,
|
|
2551
2551
|
() => {
|
|
@@ -2556,7 +2556,7 @@ const V2 = /* @__PURE__ */ Le(L2, [["render", P2]]), k2 = "data:image/svg+xml,%3
|
|
|
2556
2556
|
u();
|
|
2557
2557
|
},
|
|
2558
2558
|
{ immediate: !0 }
|
|
2559
|
-
),
|
|
2559
|
+
), nt(() => {
|
|
2560
2560
|
c(), s.src = "";
|
|
2561
2561
|
});
|
|
2562
2562
|
function a() {
|
|
@@ -2579,48 +2579,48 @@ const V2 = /* @__PURE__ */ Le(L2, [["render", P2]]), k2 = "data:image/svg+xml,%3
|
|
|
2579
2579
|
}, (p, g) => i.value ? (w(), T("button", {
|
|
2580
2580
|
key: 1,
|
|
2581
2581
|
class: "btn btn-xs btn-ghost btn-circle",
|
|
2582
|
-
onClick:
|
|
2583
|
-
},
|
|
2582
|
+
onClick: dt(c, ["prevent"])
|
|
2583
|
+
}, D2)) : (w(), T("button", {
|
|
2584
2584
|
key: 0,
|
|
2585
2585
|
class: "btn btn-xs btn-ghost btn-circle",
|
|
2586
|
-
onClick:
|
|
2587
|
-
},
|
|
2586
|
+
onClick: dt(a, ["prevent"])
|
|
2587
|
+
}, M2));
|
|
2588
2588
|
}
|
|
2589
|
-
},
|
|
2590
|
-
src:
|
|
2589
|
+
}, F2 = "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", j2 = {}, B2 = { class: "btn btn-xs btn-circle btn-ghost" }, H2 = /* @__PURE__ */ h("img", {
|
|
2590
|
+
src: F2,
|
|
2591
2591
|
alt: "Clear",
|
|
2592
2592
|
class: "w-4"
|
|
2593
|
-
}, null, -1),
|
|
2594
|
-
|
|
2593
|
+
}, null, -1), z2 = [
|
|
2594
|
+
H2
|
|
2595
2595
|
];
|
|
2596
|
-
function
|
|
2597
|
-
return w(), T("button",
|
|
2596
|
+
function U2(e, o) {
|
|
2597
|
+
return w(), T("button", B2, z2);
|
|
2598
2598
|
}
|
|
2599
|
-
const
|
|
2599
|
+
const Z2 = /* @__PURE__ */ Ze(j2, [["render", U2]]), W2 = "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", G2 = "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='%23FFC857'/%3e%3c/svg%3e", q2 = { class: "btn btn-xs btn-circle btn-ghost" }, J2 = {
|
|
2600
2600
|
key: 0,
|
|
2601
|
-
src:
|
|
2601
|
+
src: W2,
|
|
2602
2602
|
alt: "Clear",
|
|
2603
2603
|
class: "w-4"
|
|
2604
|
-
},
|
|
2604
|
+
}, K2 = {
|
|
2605
2605
|
key: 1,
|
|
2606
|
-
src:
|
|
2606
|
+
src: G2,
|
|
2607
2607
|
alt: "Clear",
|
|
2608
2608
|
class: "w-4"
|
|
2609
|
-
},
|
|
2609
|
+
}, Y2 = {
|
|
2610
2610
|
__name: "FavoriteBtn",
|
|
2611
2611
|
props: {
|
|
2612
2612
|
isFilled: Boolean
|
|
2613
2613
|
},
|
|
2614
2614
|
setup(e) {
|
|
2615
2615
|
const o = e;
|
|
2616
|
-
return (t, n) => (w(), T("button",
|
|
2617
|
-
o.isFilled ? (w(), T("img",
|
|
2616
|
+
return (t, n) => (w(), T("button", q2, [
|
|
2617
|
+
o.isFilled ? (w(), T("img", J2)) : (w(), T("img", K2))
|
|
2618
2618
|
]));
|
|
2619
2619
|
}
|
|
2620
|
-
},
|
|
2620
|
+
}, Q2 = { class: "flex flex-row rounded-t-lg bg-white border border-b-0 px-1 pr-1 pt-1 gap-1 items-center" }, X2 = { class: "text-sm text-gray-600" }, el = {
|
|
2621
2621
|
key: 0,
|
|
2622
2622
|
class: "italic"
|
|
2623
|
-
},
|
|
2623
|
+
}, tl = /* @__PURE__ */ h("div", { class: "flex-grow" }, null, -1), cn = {
|
|
2624
2624
|
__name: "TranslationBtnGroup",
|
|
2625
2625
|
props: {
|
|
2626
2626
|
loading: {
|
|
@@ -2664,37 +2664,37 @@ const G2 = /* @__PURE__ */ Le(H2, [["render", W2]]), q2 = "data:image/svg+xml,%3
|
|
|
2664
2664
|
emits: ["clear", "favorite", "loadTTS"],
|
|
2665
2665
|
setup(e, { emit: o }) {
|
|
2666
2666
|
const t = e, n = o;
|
|
2667
|
-
return (l, r) => (w(), T("div",
|
|
2668
|
-
t.src ? (w(), ee(
|
|
2667
|
+
return (l, r) => (w(), T("div", Q2, [
|
|
2668
|
+
t.src ? (w(), ee(A2, {
|
|
2669
2669
|
key: 0,
|
|
2670
2670
|
type: t.type,
|
|
2671
2671
|
onLoadTTS: r[0] || (r[0] = (i) => n("loadTTS"))
|
|
2672
2672
|
}, null, 8, ["type"])) : X("", !0),
|
|
2673
|
-
h("div",
|
|
2674
|
-
|
|
2675
|
-
e.phonetic ? (w(), T("span",
|
|
2673
|
+
h("div", X2, [
|
|
2674
|
+
gn(te(e.srcLabel) + " ", 1),
|
|
2675
|
+
e.phonetic ? (w(), T("span", el, "- [" + te(t.phonetic) + "]", 1)) : X("", !0)
|
|
2676
2676
|
]),
|
|
2677
|
-
|
|
2678
|
-
t.loading ? (w(), ee(
|
|
2679
|
-
t.src && t.isClearBtn ? (w(), ee(
|
|
2677
|
+
tl,
|
|
2678
|
+
t.loading ? (w(), ee(R2, { key: 1 })) : X("", !0),
|
|
2679
|
+
t.src && t.isClearBtn ? (w(), ee(Z2, {
|
|
2680
2680
|
key: 2,
|
|
2681
2681
|
onClick: r[1] || (r[1] = (i) => n("clear"))
|
|
2682
2682
|
})) : X("", !0),
|
|
2683
|
-
t.src && t.isFavoriteBtn ? (w(), ee(
|
|
2683
|
+
t.src && t.isFavoriteBtn ? (w(), ee(Y2, {
|
|
2684
2684
|
key: 3,
|
|
2685
2685
|
isFilled: t.isFavorite,
|
|
2686
2686
|
onClick: r[2] || (r[2] = (i) => n("favorite"))
|
|
2687
2687
|
}, null, 8, ["isFilled"])) : X("", !0)
|
|
2688
2688
|
]));
|
|
2689
2689
|
}
|
|
2690
|
-
}, he =
|
|
2690
|
+
}, he = He("translation", () => {
|
|
2691
2691
|
const e = E(null), o = E(null), t = E(null), n = E({
|
|
2692
2692
|
src: null,
|
|
2693
2693
|
target: null
|
|
2694
2694
|
}), l = E(null), r = E([]), i = E([]), s = E([]), a = E([]), u = E({
|
|
2695
2695
|
src: null,
|
|
2696
2696
|
target: null
|
|
2697
|
-
}), c =
|
|
2697
|
+
}), c = Ue(), p = S(() => c.getLabel(e.value)), g = S(() => c.getLabel(o.value));
|
|
2698
2698
|
function x(v) {
|
|
2699
2699
|
e.value = v.src, o.value = v.target, t.value = v.text, n.value = v.phonetic, l.value = v.result, r.value = v.dictionary, i.value = v.definitions, s.value = v.synonyms, a.value = v.examples, u.value = v.tts;
|
|
2700
2700
|
}
|
|
@@ -2724,17 +2724,17 @@ const G2 = /* @__PURE__ */ Le(H2, [["render", W2]]), q2 = "data:image/svg+xml,%3
|
|
|
2724
2724
|
reset: _
|
|
2725
2725
|
};
|
|
2726
2726
|
});
|
|
2727
|
-
function
|
|
2728
|
-
return
|
|
2727
|
+
function nl(e) {
|
|
2728
|
+
return Rt() ? (tt(e), !0) : !1;
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function Fe(e) {
|
|
2731
2731
|
return typeof e == "function" ? e() : V(e);
|
|
2732
2732
|
}
|
|
2733
|
-
const
|
|
2733
|
+
const ol = typeof window < "u" && typeof document < "u";
|
|
2734
2734
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2735
|
-
const
|
|
2735
|
+
const St = () => {
|
|
2736
2736
|
};
|
|
2737
|
-
function
|
|
2737
|
+
function ll(e, o) {
|
|
2738
2738
|
function t(...n) {
|
|
2739
2739
|
return new Promise((l, r) => {
|
|
2740
2740
|
Promise.resolve(e(() => o.apply(this, n), { fn: o, thisArg: this, args: n })).then(l).catch(r);
|
|
@@ -2742,13 +2742,13 @@ function rl(e, o) {
|
|
|
2742
2742
|
}
|
|
2743
2743
|
return t;
|
|
2744
2744
|
}
|
|
2745
|
-
function
|
|
2746
|
-
let t, n, l =
|
|
2745
|
+
function sl(e, o = {}) {
|
|
2746
|
+
let t, n, l = St;
|
|
2747
2747
|
const r = (s) => {
|
|
2748
|
-
clearTimeout(s), l(), l =
|
|
2748
|
+
clearTimeout(s), l(), l = St;
|
|
2749
2749
|
};
|
|
2750
2750
|
return (s) => {
|
|
2751
|
-
const a =
|
|
2751
|
+
const a = Fe(e), u = Fe(o.maxWait);
|
|
2752
2752
|
return t && r(t), a <= 0 || u !== void 0 && u <= 0 ? (n && (r(n), n = null), Promise.resolve(s())) : new Promise((c, p) => {
|
|
2753
2753
|
l = o.rejectOnCancel ? p : c, u && !n && (n = setTimeout(() => {
|
|
2754
2754
|
t && r(t), n = null, c(s());
|
|
@@ -2758,34 +2758,34 @@ function il(e, o = {}) {
|
|
|
2758
2758
|
});
|
|
2759
2759
|
};
|
|
2760
2760
|
}
|
|
2761
|
-
function
|
|
2762
|
-
return
|
|
2763
|
-
|
|
2761
|
+
function rl(e, o = 200, t = {}) {
|
|
2762
|
+
return ll(
|
|
2763
|
+
sl(o, t),
|
|
2764
2764
|
e
|
|
2765
2765
|
);
|
|
2766
2766
|
}
|
|
2767
|
-
function
|
|
2767
|
+
function Et(e) {
|
|
2768
2768
|
var o;
|
|
2769
|
-
const t =
|
|
2769
|
+
const t = Fe(e);
|
|
2770
2770
|
return (o = t == null ? void 0 : t.$el) != null ? o : t;
|
|
2771
2771
|
}
|
|
2772
|
-
const
|
|
2773
|
-
function
|
|
2774
|
-
const e = E(!1), o =
|
|
2772
|
+
const il = ol ? window : void 0;
|
|
2773
|
+
function al() {
|
|
2774
|
+
const e = E(!1), o = Lt();
|
|
2775
2775
|
return o && Ce(() => {
|
|
2776
2776
|
e.value = !0;
|
|
2777
2777
|
}, o), e;
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2780
|
-
const o =
|
|
2779
|
+
function ul(e) {
|
|
2780
|
+
const o = al();
|
|
2781
2781
|
return S(() => (o.value, !!e()));
|
|
2782
2782
|
}
|
|
2783
|
-
function
|
|
2784
|
-
const { window: n =
|
|
2783
|
+
function cl(e, o, t = {}) {
|
|
2784
|
+
const { window: n = il, ...l } = t;
|
|
2785
2785
|
let r;
|
|
2786
|
-
const i =
|
|
2786
|
+
const i = ul(() => n && "ResizeObserver" in n), s = () => {
|
|
2787
2787
|
r && (r.disconnect(), r = void 0);
|
|
2788
|
-
}, a = S(() => Array.isArray(e) ? e.map((p) =>
|
|
2788
|
+
}, a = S(() => Array.isArray(e) ? e.map((p) => Et(p)) : [Et(e)]), u = F(
|
|
2789
2789
|
a,
|
|
2790
2790
|
(p) => {
|
|
2791
2791
|
if (s(), i.value && n) {
|
|
@@ -2798,12 +2798,12 @@ function fl(e, o, t = {}) {
|
|
|
2798
2798
|
), c = () => {
|
|
2799
2799
|
s(), u();
|
|
2800
2800
|
};
|
|
2801
|
-
return
|
|
2801
|
+
return nl(c), {
|
|
2802
2802
|
isSupported: i,
|
|
2803
2803
|
stop: c
|
|
2804
2804
|
};
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function dn(e) {
|
|
2807
2807
|
var o;
|
|
2808
2808
|
const t = E(e == null ? void 0 : e.element), n = E(e == null ? void 0 : e.input), l = (o = e == null ? void 0 : e.styleProp) != null ? o : "height", r = E(1);
|
|
2809
2809
|
function i() {
|
|
@@ -2811,18 +2811,18 @@ function vn(e) {
|
|
|
2811
2811
|
if (!t.value)
|
|
2812
2812
|
return;
|
|
2813
2813
|
let a = "";
|
|
2814
|
-
t.value.style[l] = "1px", r.value = (s = t.value) == null ? void 0 : s.scrollHeight, e != null && e.styleTarget ?
|
|
2814
|
+
t.value.style[l] = "1px", r.value = (s = t.value) == null ? void 0 : s.scrollHeight, e != null && e.styleTarget ? Fe(e.styleTarget).style[l] = `${r.value}px` : a = `${r.value}px`, t.value.style[l] = a;
|
|
2815
2815
|
}
|
|
2816
2816
|
return F([n, t], () => Q(i), { immediate: !0 }), F(r, () => {
|
|
2817
2817
|
var s;
|
|
2818
2818
|
return (s = e == null ? void 0 : e.onResize) == null ? void 0 : s.call(e);
|
|
2819
|
-
}),
|
|
2819
|
+
}), cl(t, () => i()), e != null && e.watch && F(e.watch, i, { immediate: !0, deep: !0 }), {
|
|
2820
2820
|
textarea: t,
|
|
2821
2821
|
input: n,
|
|
2822
2822
|
triggerResize: i
|
|
2823
2823
|
};
|
|
2824
2824
|
}
|
|
2825
|
-
const
|
|
2825
|
+
const dl = {
|
|
2826
2826
|
__name: "TranslationInput",
|
|
2827
2827
|
props: {
|
|
2828
2828
|
text: {
|
|
@@ -2835,9 +2835,9 @@ const pl = {
|
|
|
2835
2835
|
const t = he(), n = e, l = E(""), r = S(() => t.src), i = S(() => t.srcLabel), s = S(() => {
|
|
2836
2836
|
var _;
|
|
2837
2837
|
return (_ = t.phonetic) == null ? void 0 : _.src;
|
|
2838
|
-
}), { textarea: a } =
|
|
2838
|
+
}), { textarea: a } = dn({ input: l, styleProp: "minHeight" }), u = o, c = rl(() => {
|
|
2839
2839
|
u("change", l.value);
|
|
2840
|
-
},
|
|
2840
|
+
}, $2.INPUT_DEBOUNCE);
|
|
2841
2841
|
function p() {
|
|
2842
2842
|
if (!l.value) {
|
|
2843
2843
|
g();
|
|
@@ -2857,7 +2857,7 @@ const pl = {
|
|
|
2857
2857
|
l.value !== _ && x(), l.value = _;
|
|
2858
2858
|
}
|
|
2859
2859
|
), (_, v) => (w(), T(Z, null, [
|
|
2860
|
-
H(
|
|
2860
|
+
H(cn, {
|
|
2861
2861
|
src: r.value,
|
|
2862
2862
|
srcLabel: i.value,
|
|
2863
2863
|
type: "src",
|
|
@@ -2866,7 +2866,7 @@ const pl = {
|
|
|
2866
2866
|
onClear: g,
|
|
2867
2867
|
onLoadTTS: v[0] || (v[0] = ($) => u("loadTTS"))
|
|
2868
2868
|
}, null, 8, ["src", "srcLabel", "phonetic"]),
|
|
2869
|
-
|
|
2869
|
+
Pt(h("textarea", {
|
|
2870
2870
|
ref_key: "textarea",
|
|
2871
2871
|
ref: a,
|
|
2872
2872
|
"onUpdate:modelValue": v[1] || (v[1] = ($) => l.value = $),
|
|
@@ -2877,7 +2877,7 @@ const pl = {
|
|
|
2877
2877
|
onFocus: x
|
|
2878
2878
|
}, null, 544), [
|
|
2879
2879
|
[
|
|
2880
|
-
|
|
2880
|
+
Vt,
|
|
2881
2881
|
l.value,
|
|
2882
2882
|
void 0,
|
|
2883
2883
|
{ trim: !0 }
|
|
@@ -2885,7 +2885,7 @@ const pl = {
|
|
|
2885
2885
|
])
|
|
2886
2886
|
], 64));
|
|
2887
2887
|
}
|
|
2888
|
-
},
|
|
2888
|
+
}, fl = /* @__PURE__ */ Ze(dl, [["__scopeId", "data-v-90bf3e0d"]]), pl = (e) => (bn("data-v-f47b8efe"), e = e(), xn(), e), vl = { class: "flex flex-col" }, hl = /* @__PURE__ */ pl(() => /* @__PURE__ */ h("div", { class: "w-full flex align-item-center justify-end mt-2" }, null, -1)), ml = {
|
|
2889
2889
|
__name: "TranslationResult",
|
|
2890
2890
|
props: {
|
|
2891
2891
|
isFavoriteFeatureEnabled: Boolean,
|
|
@@ -2896,9 +2896,9 @@ const pl = {
|
|
|
2896
2896
|
const t = he(), n = S(() => t.result), l = S(() => t.target), r = S(() => t.targetLabel), i = S(() => {
|
|
2897
2897
|
var g;
|
|
2898
2898
|
return (g = t.phonetic) == null ? void 0 : g.target;
|
|
2899
|
-
}), s = e, a =
|
|
2899
|
+
}), s = e, a = ze(), { textarea: u, input: c } = dn({ input: n, styleProp: "minHeight" }), p = o;
|
|
2900
2900
|
return (g, x) => (w(), T(Z, null, [
|
|
2901
|
-
H(
|
|
2901
|
+
H(cn, {
|
|
2902
2902
|
loading: V(a).loading,
|
|
2903
2903
|
src: l.value,
|
|
2904
2904
|
srcLabel: r.value,
|
|
@@ -2909,8 +2909,8 @@ const pl = {
|
|
|
2909
2909
|
onFavorite: x[0] || (x[0] = (_) => p("favorite")),
|
|
2910
2910
|
onLoadTTS: x[1] || (x[1] = (_) => p("loadTTS"))
|
|
2911
2911
|
}, null, 8, ["loading", "src", "srcLabel", "isFavoriteBtn", "isFavorite", "phonetic"]),
|
|
2912
|
-
h("div",
|
|
2913
|
-
|
|
2912
|
+
h("div", vl, [
|
|
2913
|
+
Pt(h("textarea", {
|
|
2914
2914
|
ref_key: "textarea",
|
|
2915
2915
|
ref: u,
|
|
2916
2916
|
"onUpdate:modelValue": x[2] || (x[2] = (_) => xe(c) ? c.value = _ : null),
|
|
@@ -2919,43 +2919,43 @@ const pl = {
|
|
|
2919
2919
|
rows: "2",
|
|
2920
2920
|
spellcheck: "false"
|
|
2921
2921
|
}, null, 512), [
|
|
2922
|
-
[
|
|
2922
|
+
[Vt, V(c)]
|
|
2923
2923
|
]),
|
|
2924
|
-
|
|
2924
|
+
hl
|
|
2925
2925
|
])
|
|
2926
2926
|
], 64));
|
|
2927
2927
|
}
|
|
2928
|
-
},
|
|
2928
|
+
}, gl = /* @__PURE__ */ Ze(ml, [["__scopeId", "data-v-f47b8efe"]]), bl = { class: "btn btn-sm btn-circle btn-ghost" }, We = {
|
|
2929
2929
|
__name: "ToggleBtn",
|
|
2930
2930
|
props: {
|
|
2931
2931
|
isExpanded: Boolean
|
|
2932
2932
|
},
|
|
2933
2933
|
setup(e) {
|
|
2934
2934
|
const o = e;
|
|
2935
|
-
return (t, n) => (w(), T("button",
|
|
2936
|
-
o.isExpanded ? (w(), ee(V(
|
|
2935
|
+
return (t, n) => (w(), T("button", bl, [
|
|
2936
|
+
o.isExpanded ? (w(), ee(V(zo), {
|
|
2937
2937
|
key: 0,
|
|
2938
2938
|
class: "w-7 text-gray-400"
|
|
2939
|
-
})) : (w(), ee(V(
|
|
2939
|
+
})) : (w(), ee(V(Bo), {
|
|
2940
2940
|
key: 1,
|
|
2941
2941
|
class: "w-7 text-gray-400"
|
|
2942
2942
|
}))
|
|
2943
2943
|
]));
|
|
2944
2944
|
}
|
|
2945
|
-
},
|
|
2945
|
+
}, xl = { class: "card border bg-white rounded-lg" }, _l = { class: "card-body px-4 py-2 gap-0" }, Cl = { class: "flex justify-between items-center" }, yl = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Translations", -1), wl = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Sl = { class: "list-none list-inside" }, El = ["onClick"], Ol = { class: "text-base font-normal text-gray-800 leading-4" }, $l = {
|
|
2946
2946
|
__name: "Dictionary",
|
|
2947
2947
|
emits: ["translate"],
|
|
2948
2948
|
setup(e, { emit: o }) {
|
|
2949
|
-
const t = E(!0), n = he(), l =
|
|
2949
|
+
const t = E(!0), n = he(), l = Ue(), r = S(() => n.dictionary), i = o, s = () => {
|
|
2950
2950
|
t.value = !t.value;
|
|
2951
2951
|
}, a = (u) => {
|
|
2952
2952
|
i("translate", u, n.target, n.src), l.src = n.target, l.target = n.src, window.scrollTo(0, 0);
|
|
2953
2953
|
};
|
|
2954
|
-
return (u, c) => (w(), T("div",
|
|
2955
|
-
h("div",
|
|
2956
|
-
h("div",
|
|
2957
|
-
|
|
2958
|
-
H(
|
|
2954
|
+
return (u, c) => (w(), T("div", xl, [
|
|
2955
|
+
h("div", _l, [
|
|
2956
|
+
h("div", Cl, [
|
|
2957
|
+
yl,
|
|
2958
|
+
H(We, {
|
|
2959
2959
|
isExpanded: t.value,
|
|
2960
2960
|
onClick: s
|
|
2961
2961
|
}, null, 8, ["isExpanded"])
|
|
@@ -2968,16 +2968,16 @@ const pl = {
|
|
|
2968
2968
|
key: `${p.pos}-${g}`,
|
|
2969
2969
|
class: "mb-2"
|
|
2970
2970
|
}, [
|
|
2971
|
-
h("h5",
|
|
2972
|
-
h("ul",
|
|
2971
|
+
h("h5", wl, te(p.pos), 1),
|
|
2972
|
+
h("ul", Sl, [
|
|
2973
2973
|
(w(!0), T(Z, null, se(p.items, (x, _) => (w(), T("li", {
|
|
2974
2974
|
key: `${x.word}-${_}`
|
|
2975
2975
|
}, [
|
|
2976
2976
|
h("span", {
|
|
2977
2977
|
class: "p-3 m-0.5 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
|
|
2978
2978
|
onClick: (v) => a(x.word)
|
|
2979
|
-
}, te(x.word), 9,
|
|
2980
|
-
h("small",
|
|
2979
|
+
}, te(x.word), 9, El),
|
|
2980
|
+
h("small", Ol, " - " + te(x.reverse_translation.join(", ")), 1)
|
|
2981
2981
|
]))), 128))
|
|
2982
2982
|
])
|
|
2983
2983
|
]))), 128))
|
|
@@ -2986,20 +2986,20 @@ const pl = {
|
|
|
2986
2986
|
])
|
|
2987
2987
|
]));
|
|
2988
2988
|
}
|
|
2989
|
-
},
|
|
2989
|
+
}, Tl = { class: "card border bg-white rounded-lg" }, Il = { class: "card-body px-4 py-2 gap-0" }, Ll = { class: "flex justify-between items-center" }, Rl = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Definitions", -1), Pl = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Vl = { class: "text-base text-textCustom list-decimal list-outside ml-5" }, kl = /* @__PURE__ */ h("br", null, null, -1), Ml = {
|
|
2990
2990
|
key: 0,
|
|
2991
2991
|
class: "italic"
|
|
2992
|
-
},
|
|
2992
|
+
}, Nl = {
|
|
2993
2993
|
__name: "Definition",
|
|
2994
2994
|
setup(e) {
|
|
2995
2995
|
const o = E(!0), t = he(), n = S(() => t.definitions), l = () => {
|
|
2996
2996
|
o.value = !o.value;
|
|
2997
2997
|
};
|
|
2998
|
-
return (r, i) => (w(), T("div",
|
|
2999
|
-
h("div",
|
|
3000
|
-
h("div",
|
|
3001
|
-
|
|
3002
|
-
H(
|
|
2998
|
+
return (r, i) => (w(), T("div", Tl, [
|
|
2999
|
+
h("div", Il, [
|
|
3000
|
+
h("div", Ll, [
|
|
3001
|
+
Rl,
|
|
3002
|
+
H(We, {
|
|
3003
3003
|
isExpanded: o.value,
|
|
3004
3004
|
onClick: l
|
|
3005
3005
|
}, null, 8, ["isExpanded"])
|
|
@@ -3012,15 +3012,15 @@ const pl = {
|
|
|
3012
3012
|
key: `${s.pos}-${a}`,
|
|
3013
3013
|
class: "mb-2"
|
|
3014
3014
|
}, [
|
|
3015
|
-
h("h5",
|
|
3016
|
-
h("ul",
|
|
3015
|
+
h("h5", Pl, te(s.pos), 1),
|
|
3016
|
+
h("ul", Vl, [
|
|
3017
3017
|
(w(!0), T(Z, null, se(s.items, (u, c) => (w(), T("li", {
|
|
3018
3018
|
key: `${u.gloss}-${c}`,
|
|
3019
3019
|
class: "mb-1"
|
|
3020
3020
|
}, [
|
|
3021
3021
|
h("span", null, te(u.gloss), 1),
|
|
3022
|
-
|
|
3023
|
-
u.example ? (w(), T("small",
|
|
3022
|
+
kl,
|
|
3023
|
+
u.example ? (w(), T("small", Ml, '"' + te(u.example) + '"', 1)) : X("", !0)
|
|
3024
3024
|
]))), 128))
|
|
3025
3025
|
])
|
|
3026
3026
|
]))), 128))
|
|
@@ -3029,17 +3029,17 @@ const pl = {
|
|
|
3029
3029
|
])
|
|
3030
3030
|
]));
|
|
3031
3031
|
}
|
|
3032
|
-
},
|
|
3032
|
+
}, Dl = { class: "card border bg-white rounded-lg" }, Al = { class: "card-body px-4 py-2 gap-0" }, Fl = { class: "flex justify-between items-center" }, jl = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Examples", -1), Bl = { class: "text-textCustom list-decimal list-outside ml-7 mt-2" }, Hl = ["innerHTML"], zl = {
|
|
3033
3033
|
__name: "Example",
|
|
3034
3034
|
setup(e) {
|
|
3035
3035
|
const o = E(!0), t = he(), n = S(() => t.examples), l = () => {
|
|
3036
3036
|
o.value = !o.value;
|
|
3037
3037
|
};
|
|
3038
|
-
return (r, i) => (w(), T("div",
|
|
3039
|
-
h("div",
|
|
3040
|
-
h("div",
|
|
3041
|
-
|
|
3042
|
-
H(
|
|
3038
|
+
return (r, i) => (w(), T("div", Dl, [
|
|
3039
|
+
h("div", Al, [
|
|
3040
|
+
h("div", Fl, [
|
|
3041
|
+
jl,
|
|
3042
|
+
H(We, {
|
|
3043
3043
|
isExpanded: o.value,
|
|
3044
3044
|
onClick: l
|
|
3045
3045
|
}, null, 8, ["isExpanded"])
|
|
@@ -3047,17 +3047,17 @@ const pl = {
|
|
|
3047
3047
|
h("div", {
|
|
3048
3048
|
class: _e(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
|
|
3049
3049
|
}, [
|
|
3050
|
-
h("ul",
|
|
3050
|
+
h("ul", Bl, [
|
|
3051
3051
|
(w(!0), T(Z, null, se(n.value, (s, a) => (w(), T("li", {
|
|
3052
3052
|
key: `${s.definition_id}-${a}`,
|
|
3053
3053
|
innerHTML: s
|
|
3054
|
-
}, null, 8,
|
|
3054
|
+
}, null, 8, Hl))), 128))
|
|
3055
3055
|
])
|
|
3056
3056
|
], 2)
|
|
3057
3057
|
])
|
|
3058
3058
|
]));
|
|
3059
3059
|
}
|
|
3060
|
-
},
|
|
3060
|
+
}, Ul = { class: "card border bg-white rounded-lg" }, Zl = { class: "card-body px-4 py-2 gap-0" }, Wl = { class: "flex justify-between items-center" }, Gl = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Synonyms", -1), ql = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Jl = { class: "list-none list-inside" }, Kl = { class: "flex flex-wrap" }, Yl = ["onClick"], Ql = {
|
|
3061
3061
|
__name: "Synonyms",
|
|
3062
3062
|
emits: ["translate"],
|
|
3063
3063
|
setup(e, { emit: o }) {
|
|
@@ -3066,11 +3066,11 @@ const pl = {
|
|
|
3066
3066
|
}, s = (a) => {
|
|
3067
3067
|
r("translate", a), window.scrollTo(0, 0);
|
|
3068
3068
|
};
|
|
3069
|
-
return (a, u) => (w(), T("div",
|
|
3070
|
-
h("div",
|
|
3071
|
-
h("div",
|
|
3072
|
-
|
|
3073
|
-
H(
|
|
3069
|
+
return (a, u) => (w(), T("div", Ul, [
|
|
3070
|
+
h("div", Zl, [
|
|
3071
|
+
h("div", Wl, [
|
|
3072
|
+
Gl,
|
|
3073
|
+
H(We, {
|
|
3074
3074
|
isExpanded: t.value,
|
|
3075
3075
|
onClick: i
|
|
3076
3076
|
}, null, 8, ["isExpanded"])
|
|
@@ -3083,18 +3083,18 @@ const pl = {
|
|
|
3083
3083
|
key: `${c.pos}-${p}`,
|
|
3084
3084
|
class: "mb-2"
|
|
3085
3085
|
}, [
|
|
3086
|
-
h("h5",
|
|
3087
|
-
h("ul",
|
|
3086
|
+
h("h5", ql, te(c.pos), 1),
|
|
3087
|
+
h("ul", Jl, [
|
|
3088
3088
|
(w(!0), T(Z, null, se(c.items, (g, x) => (w(), T("li", {
|
|
3089
3089
|
key: `${g.word}-${x}`,
|
|
3090
3090
|
class: "mb-2"
|
|
3091
3091
|
}, [
|
|
3092
|
-
h("div",
|
|
3092
|
+
h("div", Kl, [
|
|
3093
3093
|
(w(!0), T(Z, null, se(g.synonym, (_, v) => (w(), T("span", {
|
|
3094
3094
|
key: `${_}-${v}`,
|
|
3095
3095
|
class: "p-3 m-0.5 ml-0 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
|
|
3096
3096
|
onClick: ($) => s(_)
|
|
3097
|
-
}, te(_), 9,
|
|
3097
|
+
}, te(_), 9, Yl))), 128))
|
|
3098
3098
|
])
|
|
3099
3099
|
]))), 128))
|
|
3100
3100
|
])
|
|
@@ -3105,22 +3105,22 @@ const pl = {
|
|
|
3105
3105
|
]));
|
|
3106
3106
|
}
|
|
3107
3107
|
};
|
|
3108
|
-
function
|
|
3108
|
+
function Xl() {
|
|
3109
3109
|
document.documentElement.setAttribute("dir", "rtl");
|
|
3110
3110
|
}
|
|
3111
|
-
function
|
|
3111
|
+
function es() {
|
|
3112
3112
|
document.documentElement.removeAttribute("dir");
|
|
3113
3113
|
}
|
|
3114
|
-
const
|
|
3115
|
-
supportRTL:
|
|
3116
|
-
removeRTL:
|
|
3117
|
-
},
|
|
3114
|
+
const Ot = {
|
|
3115
|
+
supportRTL: Xl,
|
|
3116
|
+
removeRTL: es
|
|
3117
|
+
}, ts = ["ar", "fa", "iw", "yi", "ur", "pa"], ns = { class: "bg-white min-h-screen flex flex-col" }, os = { class: "py-2 px-5 shadow-lg" }, ls = { class: "px-5 flex-grow" }, ss = { class: "flex flex-col lg:flex-row lg:gap-2" }, rs = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, is = /* @__PURE__ */ h("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1), as = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, us = { class: "grid grid-cols-1 lg:grid-cols-3 gap-4" }, cs = {
|
|
3118
3118
|
key: 0,
|
|
3119
3119
|
class: "w-full my-4"
|
|
3120
|
-
},
|
|
3120
|
+
}, ds = {
|
|
3121
3121
|
key: 1,
|
|
3122
3122
|
class: "text-textCustom italic font-medium"
|
|
3123
|
-
},
|
|
3123
|
+
}, vs = {
|
|
3124
3124
|
__name: "Popup",
|
|
3125
3125
|
props: {
|
|
3126
3126
|
opt: {
|
|
@@ -3159,9 +3159,9 @@ const $t = {
|
|
|
3159
3159
|
"favorite"
|
|
3160
3160
|
],
|
|
3161
3161
|
setup(e, { emit: o }) {
|
|
3162
|
-
const t =
|
|
3162
|
+
const t = v2(), n = he(t), l = un(t), r = Ue(t), i = ze(t), s = e, a = o, u = E(""), c = () => {
|
|
3163
3163
|
const v = s.opt.target;
|
|
3164
|
-
|
|
3164
|
+
ts.includes(v) ? Ot.supportRTL() : Ot.removeRTL();
|
|
3165
3165
|
};
|
|
3166
3166
|
F(
|
|
3167
3167
|
() => s.translation,
|
|
@@ -3205,29 +3205,29 @@ const $t = {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
return (v, $) => {
|
|
3207
3207
|
var N, I, k, D;
|
|
3208
|
-
return w(), T("div",
|
|
3209
|
-
h("div",
|
|
3210
|
-
H(
|
|
3208
|
+
return w(), T("div", ns, [
|
|
3209
|
+
h("div", os, [
|
|
3210
|
+
H(jn, {
|
|
3211
3211
|
onReader: $[0] || ($[0] = (m) => a("reader")),
|
|
3212
3212
|
onSettings: $[1] || ($[1] = (m) => a("settings")),
|
|
3213
3213
|
onFullScreen: $[2] || ($[2] = (m) => a("fullscreen")),
|
|
3214
3214
|
onStarList: $[3] || ($[3] = (m) => a("starList"))
|
|
3215
3215
|
})
|
|
3216
3216
|
]),
|
|
3217
|
-
h("div",
|
|
3218
|
-
H(
|
|
3219
|
-
h("div",
|
|
3220
|
-
h("div",
|
|
3221
|
-
H(
|
|
3217
|
+
h("div", ls, [
|
|
3218
|
+
H(O2, { class: "my-4" }),
|
|
3219
|
+
h("div", ss, [
|
|
3220
|
+
h("div", rs, [
|
|
3221
|
+
H(fl, {
|
|
3222
3222
|
text: u.value,
|
|
3223
3223
|
onChange: g,
|
|
3224
3224
|
onClear: p,
|
|
3225
3225
|
onLoadTTS: $[4] || ($[4] = (m) => x("src"))
|
|
3226
3226
|
}, null, 8, ["text"])
|
|
3227
3227
|
]),
|
|
3228
|
-
|
|
3229
|
-
h("div",
|
|
3230
|
-
H(
|
|
3228
|
+
is,
|
|
3229
|
+
h("div", as, [
|
|
3230
|
+
H(gl, {
|
|
3231
3231
|
isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
|
|
3232
3232
|
isFavorite: e.isFavorite,
|
|
3233
3233
|
onFavorite: $[5] || ($[5] = (m) => a("favorite")),
|
|
@@ -3236,26 +3236,26 @@ const $t = {
|
|
|
3236
3236
|
])
|
|
3237
3237
|
]),
|
|
3238
3238
|
s.translation ? (w(), T(Z, { key: 0 }, [
|
|
3239
|
-
h("div",
|
|
3240
|
-
(N = V(n).dictionary) != null && N.length ? (w(), ee(
|
|
3239
|
+
h("div", us, [
|
|
3240
|
+
(N = V(n).dictionary) != null && N.length ? (w(), ee($l, {
|
|
3241
3241
|
key: 0,
|
|
3242
3242
|
onTranslate: _
|
|
3243
3243
|
})) : X("", !0),
|
|
3244
|
-
(I = V(n).definitions) != null && I.length ? (w(), ee(
|
|
3245
|
-
(k = V(n).synonyms) != null && k.length ? (w(), ee(
|
|
3244
|
+
(I = V(n).definitions) != null && I.length ? (w(), ee(Nl, { key: 1 })) : X("", !0),
|
|
3245
|
+
(k = V(n).synonyms) != null && k.length ? (w(), ee(Ql, {
|
|
3246
3246
|
key: 2,
|
|
3247
3247
|
onTranslate: _
|
|
3248
3248
|
})) : X("", !0)
|
|
3249
3249
|
]),
|
|
3250
|
-
(D = V(n).examples) != null && D.length ? (w(), T("div",
|
|
3251
|
-
H(
|
|
3250
|
+
(D = V(n).examples) != null && D.length ? (w(), T("div", cs, [
|
|
3251
|
+
H(zl)
|
|
3252
3252
|
])) : X("", !0)
|
|
3253
|
-
], 64)) : (w(), T("span",
|
|
3253
|
+
], 64)) : (w(), T("span", ds, "Service unavailable"))
|
|
3254
3254
|
])
|
|
3255
3255
|
]);
|
|
3256
3256
|
};
|
|
3257
3257
|
}
|
|
3258
3258
|
};
|
|
3259
3259
|
export {
|
|
3260
|
-
|
|
3260
|
+
vs as default
|
|
3261
3261
|
};
|