@ddict/popup 1.0.18 → 1.0.20
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/assets/icons/favorite.svg +1 -1
- package/dist/assets/icons/star-list.svg +5 -0
- package/dist/popup.css +1 -1
- package/dist/popup.es.js +617 -585
- package/dist/popup.umd.js +7 -7
- package/package.json +1 -1
package/dist/popup.es.js
CHANGED
|
@@ -1,62 +1,77 @@
|
|
|
1
|
-
import { openBlock as w, createElementBlock as
|
|
2
|
-
const xn = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%200%2096%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.151%208.94498H35.7256V23.055H40.151C44.7473%2023.055%2047.826%2020.0825%2047.826%2015.9795C47.8267%2011.8093%2044.7678%208.94498%2040.151%208.94498ZM40.1312%2021.025H37.993V10.9974H40.1312C43.4217%2010.9974%2045.4972%2012.9846%2045.4972%2015.9795C45.4965%2018.9296%2043.4012%2021.025%2040.1312%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M54.5158%208.94498H50.0903V23.055H54.5158C59.1121%2023.055%2062.1908%2020.0825%2062.1908%2015.9795C62.1914%2011.8093%2059.1351%208.94498%2054.5158%208.94498ZM54.496%2021.025H52.3578V10.9974H54.496C57.789%2010.9974%2059.8619%2012.9846%2059.8619%2015.9795C59.8613%2018.9296%2057.766%2021.025%2054.496%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M66.7237%208.94498H64.4575V23.055H66.7237V8.94498Z'%20fill='%233B5695'/%3e%3cpath%20d='M76.4301%2010.7837C78.29%2010.7837%2079.7436%2011.6603%2080.7487%2013.2207L82.4589%2011.9591C81.2401%209.97057%2078.9957%208.70953%2076.409%208.70953C72.3898%208.64555%2068.9048%2011.9591%2068.9906%2016C68.9048%2020.0403%2072.3898%2023.3544%2076.409%2023.2905C79.0385%2023.2905%2081.2618%2022.0294%2082.4589%2020.0409L80.7487%2018.7793C79.7436%2020.3397%2078.29%2021.2163%2076.4301%2021.2163C73.544%2021.2163%2071.3418%2018.993%2071.3418%2016C71.3418%2013.007%2073.5433%2010.7837%2076.4301%2010.7837Z'%20fill='%233B5695'/%3e%3cpath%20d='M83.3135%208.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.66351%204.7121H4.604V15.4427L6.87208%2013.3839V6.79143H8.64559C11.4639%206.79143%2013.2835%208.47857%2013.2835%2011.0877C13.2835%2013.6916%2011.421%2015.4427%208.64559%2015.4427H4.604V17.5016H8.66351C12.7531%2017.5016%2015.6098%2014.8644%2015.6098%2011.0877C15.6104%207.27575%2012.8196%204.7121%208.66351%204.7121Z'%20fill='%233B5695'/%3e%3cpath%20d='M26.2425%209.25528H21.5502L20.7537%2014.293L21.4523%2014.3308L21.4069%2014.7294C21.3916%2014.8656%2021.3289%2015.0448%2021.112%2015.1734C21.1017%2015.9399%2021.0845%2017.0493%2020.9706%2018.1766H26.5937V19.8586H21.4677C22.4133%2022.9424%2024.1254%2024.9648%2026.5611%2025.8669L27.1536%2026.0864L26.6795%2026.5048C26.4875%2026.6737%2026.2182%2027.0141%2026.0896%2027.2489L25.9258%2027.5438L25.6155%2027.4152C23.167%2026.4095%2021.4223%2024.4926%2020.2905%2021.563C19.3602%2024.3365%2017.5797%2026.2553%2014.8592%2027.428L14.5438%2027.5617L14.3775%2027.2642C14.2764%2027.08%2014.0294%2026.7876%2013.8151%2026.5989L13.3564%2026.1951L13.9239%2025.9655C16.4555%2024.9392%2018.064%2023.1414%2018.8228%2020.4837C19.6647%2019.8381%2020.2099%2018.8221%2020.2169%2017.6801V4.53231C20.2169%202.58349%2018.6334%201%2016.6846%201H3.53487C1.58349%201%200%202.58349%200%204.53231V17.6795C0%2019.6283%201.58349%2021.2143%203.53487%2021.2143H8.25528V27.2431C8.25528%2029.3135%209.93986%2031%2012.0096%2031H26.2431C28.3161%2031%2029.9974%2029.3129%2029.9974%2027.2431V13.0096C29.9974%2010.9392%2028.3154%209.25528%2026.2425%209.25528ZM3.53487%2019.4517C2.55662%2019.4517%201.762%2018.6603%201.762%2017.6788V4.53231C1.762%203.55662%202.55598%202.762%203.53487%202.762H16.6839C17.6571%202.762%2018.4517%203.55598%2018.4517%204.53231V17.6795C18.4517%2017.778%2018.444%2017.8733%2018.4267%2017.9667C18.3941%2018.1811%2018.3231%2018.38%2018.215%2018.5592C17.9149%2019.0934%2017.3372%2019.4517%2016.6846%2019.4517H3.53487Z'%20fill='%233B5695'/%3e%3c/svg%3e", Cn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.5%203.25C5.25736%203.25%204.25%204.25736%204.25%205.5H3.5H2.75C2.75%203.42893%204.42893%201.75%206.5%201.75H17.5C17.9142%201.75%2018.25%202.08579%2018.25%202.5V15.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25H6.5C5.26293%2016.25%204.25%2017.2576%204.25%2018.5C4.25%2018.9142%203.91421%2019.25%203.5%2019.25C3.08579%2019.25%202.75%2018.9142%202.75%2018.5V5.5C2.75%205.49993%202.75%205.5%203.5%205.5C4.25%205.5%204.25%205.49993%204.25%205.5V15.5017C4.87779%2015.0296%205.65755%2014.75%206.5%2014.75H16.75V3.25H6.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.5%202.75C20.9142%202.75%2021.25%203.08579%2021.25%203.5V21.5C21.25%2021.9142%2020.9142%2022.25%2020.5%2022.25H6.5C4.42893%2022.25%202.75%2020.5711%202.75%2018.5C2.75%2016.4289%204.42893%2014.75%206.5%2014.75H17.4995C17.4996%2014.75%2017.5%2014.75%2017.5%2015.5C17.5%2016.25%2017.5001%2016.25%2017.5%2016.25H6.5C5.25736%2016.25%204.25%2017.2574%204.25%2018.5C4.25%2019.7426%205.25736%2020.75%206.5%2020.75H19.75V3.5C19.75%203.08579%2020.0858%202.75%2020.5%202.75ZM18.25%2015.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25V15.5L17.4995%2014.75C17.9137%2014.75%2018.25%2015.0858%2018.25%2015.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2018.5C6.25%2018.0858%206.58579%2017.75%207%2017.75H17C17.4142%2017.75%2017.75%2018.0858%2017.75%2018.5C17.75%2018.9142%2017.4142%2019.25%2017%2019.25H7C6.58579%2019.25%206.25%2018.9142%206.25%2018.5Z'%20fill='%233B5695'/%3e%3c/svg%3e", 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%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", 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='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", Sn = { class: "flex justify-between" }, En = /* @__PURE__ */ g("div", { class: "flex flex-row" }, [
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
src:
|
|
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 st, 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 le, 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" }, [
|
|
3
|
+
/* @__PURE__ */ h("img", {
|
|
4
|
+
src: _n,
|
|
5
5
|
alt: "Vue logo",
|
|
6
6
|
class: "w-24"
|
|
7
7
|
})
|
|
8
|
-
], -1),
|
|
8
|
+
], -1), $n = { class: "flex" }, Tn = {
|
|
9
9
|
class: "tooltip tooltip-bottom tooltip-success 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%]",
|
|
10
|
-
"data-tip": "
|
|
11
|
-
},
|
|
10
|
+
"data-tip": "Saved Words"
|
|
11
|
+
}, In = /* @__PURE__ */ h("img", {
|
|
12
12
|
src: Cn,
|
|
13
|
+
alt: "Star list",
|
|
14
|
+
class: "w-7"
|
|
15
|
+
}, null, -1), Ln = [
|
|
16
|
+
In
|
|
17
|
+
], Rn = {
|
|
18
|
+
class: "tooltip tooltip-bottom tooltip-success 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%]",
|
|
19
|
+
"data-tip": "Reader"
|
|
20
|
+
}, Pn = /* @__PURE__ */ h("img", {
|
|
21
|
+
src: yn,
|
|
13
22
|
alt: "Reader",
|
|
14
23
|
class: "w-7"
|
|
15
|
-
}, null, -1),
|
|
16
|
-
|
|
17
|
-
],
|
|
24
|
+
}, null, -1), Vn = [
|
|
25
|
+
Pn
|
|
26
|
+
], kn = {
|
|
18
27
|
class: "tooltip tooltip-bottom tooltip-success 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",
|
|
19
28
|
"data-tip": "Full screen"
|
|
20
|
-
},
|
|
21
|
-
src:
|
|
29
|
+
}, Mn = /* @__PURE__ */ h("img", {
|
|
30
|
+
src: wn,
|
|
22
31
|
alt: "Full screen",
|
|
23
32
|
class: "w-7"
|
|
24
|
-
}, null, -1),
|
|
25
|
-
|
|
26
|
-
],
|
|
33
|
+
}, null, -1), Nn = [
|
|
34
|
+
Mn
|
|
35
|
+
], Dn = {
|
|
27
36
|
class: "tooltip tooltip-bottom tooltip-success 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%]",
|
|
28
|
-
"data-tip": "
|
|
29
|
-
},
|
|
30
|
-
src:
|
|
37
|
+
"data-tip": "Settings"
|
|
38
|
+
}, An = /* @__PURE__ */ h("img", {
|
|
39
|
+
src: Sn,
|
|
31
40
|
alt: "Setting",
|
|
32
41
|
class: "w-7"
|
|
33
|
-
}, null, -1),
|
|
34
|
-
|
|
35
|
-
],
|
|
42
|
+
}, null, -1), Fn = [
|
|
43
|
+
An
|
|
44
|
+
], jn = {
|
|
36
45
|
__name: "Header",
|
|
37
|
-
emits: ["settings", "fullScreen", "reader"],
|
|
46
|
+
emits: ["settings", "fullScreen", "reader", "starList"],
|
|
38
47
|
setup(e, { emit: o }) {
|
|
39
48
|
const t = o;
|
|
40
|
-
return (n, s) => (w(),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
return (n, s) => (w(), T("div", En, [
|
|
50
|
+
On,
|
|
51
|
+
h("div", $n, [
|
|
52
|
+
h("div", Tn, [
|
|
53
|
+
h("button", {
|
|
54
|
+
class: "btn btn-ghost btn-circle",
|
|
55
|
+
onClick: s[0] || (s[0] = (r) => t("starList"))
|
|
56
|
+
}, Ln)
|
|
57
|
+
]),
|
|
58
|
+
h("div", Rn, [
|
|
59
|
+
h("button", {
|
|
45
60
|
class: "btn btn-ghost btn-circle",
|
|
46
|
-
onClick: s[
|
|
47
|
-
},
|
|
61
|
+
onClick: s[1] || (s[1] = (r) => t("reader"))
|
|
62
|
+
}, Vn)
|
|
48
63
|
]),
|
|
49
|
-
|
|
50
|
-
|
|
64
|
+
h("div", kn, [
|
|
65
|
+
h("button", {
|
|
51
66
|
class: "btn btn-ghost btn-circle",
|
|
52
|
-
onClick: s[
|
|
53
|
-
},
|
|
67
|
+
onClick: s[2] || (s[2] = (r) => t("fullScreen"))
|
|
68
|
+
}, Nn)
|
|
54
69
|
]),
|
|
55
|
-
|
|
56
|
-
|
|
70
|
+
h("div", Dn, [
|
|
71
|
+
h("button", {
|
|
57
72
|
class: "btn btn-ghost btn-circle",
|
|
58
|
-
onClick: s[
|
|
59
|
-
},
|
|
73
|
+
onClick: s[3] || (s[3] = (r) => t("settings"))
|
|
74
|
+
}, Fn)
|
|
60
75
|
])
|
|
61
76
|
])
|
|
62
77
|
]));
|
|
@@ -69,18 +84,18 @@ function ye(e, o, t) {
|
|
|
69
84
|
let u;
|
|
70
85
|
t.key && ((r = t.debug) != null && r.call(t)) && (u = Date.now());
|
|
71
86
|
const c = e();
|
|
72
|
-
if (!(c.length !== n.length || c.some((
|
|
87
|
+
if (!(c.length !== n.length || c.some((x, _) => n[_] !== x)))
|
|
73
88
|
return s;
|
|
74
89
|
n = c;
|
|
75
|
-
let
|
|
76
|
-
if (t.key && ((i = t.debug) != null && i.call(t)) && (
|
|
77
|
-
const
|
|
90
|
+
let g;
|
|
91
|
+
if (t.key && ((i = t.debug) != null && i.call(t)) && (g = Date.now()), s = o(...c), t.key && ((l = t.debug) != null && l.call(t))) {
|
|
92
|
+
const x = Math.round((Date.now() - u) * 100) / 100, _ = Math.round((Date.now() - g) * 100) / 100, v = _ / 16, $ = (N, I) => {
|
|
78
93
|
for (N = String(N); N.length < I; )
|
|
79
94
|
N = " " + N;
|
|
80
95
|
return N;
|
|
81
96
|
};
|
|
82
97
|
console.info(
|
|
83
|
-
`%c⏱ ${
|
|
98
|
+
`%c⏱ ${$(_, 5)} /${$(x, 5)} ms`,
|
|
84
99
|
`
|
|
85
100
|
font-size: .6rem;
|
|
86
101
|
font-weight: bold;
|
|
@@ -99,17 +114,17 @@ function qe(e, o) {
|
|
|
99
114
|
throw new Error("Unexpected undefined");
|
|
100
115
|
return e;
|
|
101
116
|
}
|
|
102
|
-
const
|
|
117
|
+
const Bn = (e, o) => Math.abs(e - o) < 1, Hn = (e, o, t) => {
|
|
103
118
|
let n;
|
|
104
119
|
return function(...s) {
|
|
105
120
|
e.clearTimeout(n), n = e.setTimeout(() => o.apply(this, s), t);
|
|
106
121
|
};
|
|
107
|
-
},
|
|
122
|
+
}, zn = (e) => e, Un = (e) => {
|
|
108
123
|
const o = Math.max(e.startIndex - e.overscan, 0), t = Math.min(e.endIndex + e.overscan, e.count - 1), n = [];
|
|
109
124
|
for (let s = o; s <= t; s++)
|
|
110
125
|
n.push(s);
|
|
111
126
|
return n;
|
|
112
|
-
},
|
|
127
|
+
}, Zn = (e, o) => {
|
|
113
128
|
const t = e.scrollElement;
|
|
114
129
|
if (!t)
|
|
115
130
|
return;
|
|
@@ -139,7 +154,7 @@ const Dn = (e, o) => Math.abs(e - o) < 1, An = (e, o, t) => {
|
|
|
139
154
|
};
|
|
140
155
|
}, ft = {
|
|
141
156
|
passive: !0
|
|
142
|
-
},
|
|
157
|
+
}, Wn = typeof window > "u" ? !0 : "onscrollend" in window, Gn = (e, o) => {
|
|
143
158
|
const t = e.scrollElement;
|
|
144
159
|
if (!t)
|
|
145
160
|
return;
|
|
@@ -147,8 +162,8 @@ const Dn = (e, o) => Math.abs(e - o) < 1, An = (e, o, t) => {
|
|
|
147
162
|
if (!n)
|
|
148
163
|
return;
|
|
149
164
|
let s = 0;
|
|
150
|
-
const r =
|
|
151
|
-
} :
|
|
165
|
+
const r = Wn ? () => {
|
|
166
|
+
} : Hn(
|
|
152
167
|
n,
|
|
153
168
|
() => {
|
|
154
169
|
o(s, !1);
|
|
@@ -160,7 +175,7 @@ const Dn = (e, o) => Math.abs(e - o) < 1, An = (e, o, t) => {
|
|
|
160
175
|
return a(), t.addEventListener("scroll", l, ft), t.addEventListener("scrollend", a, ft), () => {
|
|
161
176
|
t.removeEventListener("scroll", l), t.removeEventListener("scrollend", a);
|
|
162
177
|
};
|
|
163
|
-
},
|
|
178
|
+
}, qn = (e, o, t) => {
|
|
164
179
|
if (o != null && o.borderBoxSize) {
|
|
165
180
|
const n = o.borderBoxSize[0];
|
|
166
181
|
if (n)
|
|
@@ -171,7 +186,7 @@ const Dn = (e, o) => Math.abs(e - o) < 1, An = (e, o, t) => {
|
|
|
171
186
|
return Math.round(
|
|
172
187
|
e.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]
|
|
173
188
|
);
|
|
174
|
-
},
|
|
189
|
+
}, Jn = (e, {
|
|
175
190
|
adjustments: o = 0,
|
|
176
191
|
behavior: t
|
|
177
192
|
}, n) => {
|
|
@@ -182,7 +197,7 @@ const Dn = (e, o) => Math.abs(e - o) < 1, An = (e, o, t) => {
|
|
|
182
197
|
behavior: t
|
|
183
198
|
});
|
|
184
199
|
};
|
|
185
|
-
class
|
|
200
|
+
class Kn {
|
|
186
201
|
constructor(o) {
|
|
187
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__ */ (() => {
|
|
188
203
|
let t = null;
|
|
@@ -217,11 +232,11 @@ class Wn {
|
|
|
217
232
|
scrollPaddingStart: 0,
|
|
218
233
|
scrollPaddingEnd: 0,
|
|
219
234
|
horizontal: !1,
|
|
220
|
-
getItemKey:
|
|
221
|
-
rangeExtractor:
|
|
235
|
+
getItemKey: zn,
|
|
236
|
+
rangeExtractor: Un,
|
|
222
237
|
onChange: () => {
|
|
223
238
|
},
|
|
224
|
-
measureElement:
|
|
239
|
+
measureElement: qn,
|
|
225
240
|
initialRect: { width: 0, height: 0 },
|
|
226
241
|
scrollMargin: 0,
|
|
227
242
|
gap: 0,
|
|
@@ -310,27 +325,27 @@ class Wn {
|
|
|
310
325
|
this.pendingMeasuredCacheIndexes = [];
|
|
311
326
|
const c = this.measurementsCache.slice(0, u);
|
|
312
327
|
for (let p = u; p < t; p++) {
|
|
313
|
-
let
|
|
314
|
-
|
|
315
|
-
const m = r(p),
|
|
328
|
+
let g = (a = this.measurementsCache[p]) == null ? void 0 : a.measureElement;
|
|
329
|
+
g || (g = (D) => {
|
|
330
|
+
const m = r(p), R = this.elementsCache.get(m);
|
|
316
331
|
if (!D) {
|
|
317
|
-
|
|
332
|
+
R && (this.observer.unobserve(R), this.elementsCache.delete(m));
|
|
318
333
|
return;
|
|
319
334
|
}
|
|
320
|
-
|
|
335
|
+
R !== D && (R && this.observer.unobserve(R), this.observer.observe(D), this.elementsCache.set(m, D)), D.isConnected && this.resizeItem(
|
|
321
336
|
p,
|
|
322
337
|
this.options.measureElement(D, void 0, this)
|
|
323
338
|
);
|
|
324
339
|
});
|
|
325
|
-
const
|
|
340
|
+
const x = r(p), _ = this.options.lanes === 1 ? c[p - 1] : this.getFurthestMeasurement(c, p), v = _ ? _.end + this.options.gap : n + s, $ = l.get(x), N = typeof $ == "number" ? $ : this.options.estimateSize(p), I = v + N, k = _ ? _.lane : p % this.options.lanes;
|
|
326
341
|
c[p] = {
|
|
327
342
|
index: p,
|
|
328
343
|
start: v,
|
|
329
344
|
size: N,
|
|
330
345
|
end: I,
|
|
331
|
-
key:
|
|
346
|
+
key: x,
|
|
332
347
|
lane: k,
|
|
333
|
-
measureElement:
|
|
348
|
+
measureElement: g
|
|
334
349
|
};
|
|
335
350
|
}
|
|
336
351
|
return this.measurementsCache = c, c;
|
|
@@ -341,7 +356,7 @@ class Wn {
|
|
|
341
356
|
}
|
|
342
357
|
), this.calculateRange = ye(
|
|
343
358
|
() => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
|
|
344
|
-
(t, n, s) => this.range = t.length > 0 && n > 0 ?
|
|
359
|
+
(t, n, s) => this.range = t.length > 0 && n > 0 ? Yn({
|
|
345
360
|
measurements: t,
|
|
346
361
|
outerSize: n,
|
|
347
362
|
scrollOffset: s
|
|
@@ -461,7 +476,7 @@ class Wn {
|
|
|
461
476
|
const [u] = qe(
|
|
462
477
|
this.getOffsetForIndex(t, l)
|
|
463
478
|
);
|
|
464
|
-
|
|
479
|
+
Bn(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: l, behavior: s });
|
|
465
480
|
} else
|
|
466
481
|
this.scrollToIndex(t, { align: l, behavior: s });
|
|
467
482
|
}));
|
|
@@ -502,7 +517,7 @@ const kt = (e, o, t, n) => {
|
|
|
502
517
|
}
|
|
503
518
|
return e > 0 ? e - 1 : 0;
|
|
504
519
|
};
|
|
505
|
-
function
|
|
520
|
+
function Yn({
|
|
506
521
|
measurements: e,
|
|
507
522
|
outerSize: o,
|
|
508
523
|
scrollOffset: t
|
|
@@ -513,8 +528,8 @@ function Gn({
|
|
|
513
528
|
i++;
|
|
514
529
|
return { startIndex: r, endIndex: i };
|
|
515
530
|
}
|
|
516
|
-
function
|
|
517
|
-
const o = new
|
|
531
|
+
function Qn(e) {
|
|
532
|
+
const o = new Kn(V(e)), t = pn(o), n = o._didMount();
|
|
518
533
|
return F(
|
|
519
534
|
() => V(e).getScrollElement(),
|
|
520
535
|
(s) => {
|
|
@@ -539,23 +554,23 @@ function qn(e) {
|
|
|
539
554
|
}
|
|
540
555
|
), tt(n), t;
|
|
541
556
|
}
|
|
542
|
-
function
|
|
543
|
-
return
|
|
557
|
+
function Xn(e) {
|
|
558
|
+
return Qn(
|
|
544
559
|
S(() => ({
|
|
545
|
-
observeElementRect:
|
|
546
|
-
observeElementOffset:
|
|
547
|
-
scrollToFn:
|
|
560
|
+
observeElementRect: Zn,
|
|
561
|
+
observeElementOffset: Gn,
|
|
562
|
+
scrollToFn: Jn,
|
|
548
563
|
...V(e)
|
|
549
564
|
}))
|
|
550
565
|
);
|
|
551
566
|
}
|
|
552
|
-
function
|
|
567
|
+
function eo(e, o, t) {
|
|
553
568
|
let n = E(t == null ? void 0 : t.value), s = S(() => e.value !== void 0);
|
|
554
569
|
return [S(() => s.value ? e.value : n.value), function(r) {
|
|
555
570
|
return s.value || (n.value = r), o == null ? void 0 : o(r);
|
|
556
571
|
}];
|
|
557
572
|
}
|
|
558
|
-
function
|
|
573
|
+
function to(e) {
|
|
559
574
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((o) => setTimeout(() => {
|
|
560
575
|
throw o;
|
|
561
576
|
}));
|
|
@@ -575,7 +590,7 @@ function De() {
|
|
|
575
590
|
o.add(() => clearTimeout(n));
|
|
576
591
|
}, microTask(...t) {
|
|
577
592
|
let n = { current: !0 };
|
|
578
|
-
return
|
|
593
|
+
return to(() => {
|
|
579
594
|
n.current && t[0]();
|
|
580
595
|
}), o.add(() => {
|
|
581
596
|
n.current = !1;
|
|
@@ -598,21 +613,21 @@ function De() {
|
|
|
598
613
|
} };
|
|
599
614
|
return o;
|
|
600
615
|
}
|
|
601
|
-
function
|
|
616
|
+
function no() {
|
|
602
617
|
let e = De();
|
|
603
618
|
return nt(() => e.dispose()), e;
|
|
604
619
|
}
|
|
605
|
-
function
|
|
606
|
-
let e =
|
|
620
|
+
function oo() {
|
|
621
|
+
let e = no();
|
|
607
622
|
return (o) => {
|
|
608
623
|
e.dispose(), e.nextFrame(o);
|
|
609
624
|
};
|
|
610
625
|
}
|
|
611
|
-
let
|
|
626
|
+
let so = Symbol("headlessui.useid"), lo = 0;
|
|
612
627
|
function Le() {
|
|
613
|
-
return Ie(
|
|
628
|
+
return Ie(so, () => `${++lo}`)();
|
|
614
629
|
}
|
|
615
|
-
function
|
|
630
|
+
function P(e) {
|
|
616
631
|
var o;
|
|
617
632
|
if (e == null || e.value == null) return null;
|
|
618
633
|
let t = (o = e.value.$el) != null ? o : e.value;
|
|
@@ -626,8 +641,8 @@ function se(e, o, ...t) {
|
|
|
626
641
|
let n = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map((s) => `"${s}"`).join(", ")}.`);
|
|
627
642
|
throw Error.captureStackTrace && Error.captureStackTrace(n, se), n;
|
|
628
643
|
}
|
|
629
|
-
var
|
|
630
|
-
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 {
|
|
631
646
|
constructor() {
|
|
632
647
|
pt(this, "current", this.detect()), pt(this, "currentId", 0);
|
|
633
648
|
}
|
|
@@ -649,19 +664,19 @@ let so = class {
|
|
|
649
664
|
detect() {
|
|
650
665
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
651
666
|
}
|
|
652
|
-
}, lt = new
|
|
667
|
+
}, lt = new ao();
|
|
653
668
|
function rt(e) {
|
|
654
669
|
if (lt.isServer) return null;
|
|
655
670
|
if (e instanceof Node) return e.ownerDocument;
|
|
656
671
|
if (e != null && e.hasOwnProperty("value")) {
|
|
657
|
-
let o =
|
|
672
|
+
let o = P(e);
|
|
658
673
|
if (o) return o.ownerDocument;
|
|
659
674
|
}
|
|
660
675
|
return document;
|
|
661
676
|
}
|
|
662
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(",");
|
|
663
|
-
var
|
|
664
|
-
function
|
|
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) {
|
|
665
680
|
var t;
|
|
666
681
|
return e === ((t = rt(e)) == null ? void 0 : t.body) ? !1 : se(o, { 0() {
|
|
667
682
|
return e.matches(vt);
|
|
@@ -674,13 +689,13 @@ function ao(e, o = 0) {
|
|
|
674
689
|
return !1;
|
|
675
690
|
} });
|
|
676
691
|
}
|
|
677
|
-
var
|
|
692
|
+
var vo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(vo || {});
|
|
678
693
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
679
694
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
680
695
|
}, !0), document.addEventListener("click", (e) => {
|
|
681
696
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
682
697
|
}, !0));
|
|
683
|
-
function
|
|
698
|
+
function ho(e, o = (t) => t) {
|
|
684
699
|
return e.slice().sort((t, n) => {
|
|
685
700
|
let s = o(t), r = o(n);
|
|
686
701
|
if (s === null || r === null) return 0;
|
|
@@ -688,26 +703,26 @@ function co(e, o = (t) => t) {
|
|
|
688
703
|
return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
689
704
|
});
|
|
690
705
|
}
|
|
691
|
-
function
|
|
706
|
+
function mo() {
|
|
692
707
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
693
708
|
}
|
|
694
|
-
function
|
|
709
|
+
function go() {
|
|
695
710
|
return /Android/gi.test(window.navigator.userAgent);
|
|
696
711
|
}
|
|
697
712
|
function Nt() {
|
|
698
|
-
return
|
|
713
|
+
return mo() || go();
|
|
699
714
|
}
|
|
700
|
-
function
|
|
715
|
+
function Pe(e, o, t) {
|
|
701
716
|
lt.isServer || ie((n) => {
|
|
702
717
|
document.addEventListener(e, o, t), n(() => document.removeEventListener(e, o, t));
|
|
703
718
|
});
|
|
704
719
|
}
|
|
705
|
-
function
|
|
720
|
+
function bo(e, o, t) {
|
|
706
721
|
lt.isServer || ie((n) => {
|
|
707
722
|
window.addEventListener(e, o, t), n(() => window.removeEventListener(e, o, t));
|
|
708
723
|
});
|
|
709
724
|
}
|
|
710
|
-
function
|
|
725
|
+
function xo(e, o, t = S(() => !0)) {
|
|
711
726
|
function n(r, i) {
|
|
712
727
|
if (!t.value || r.defaultPrevented) return;
|
|
713
728
|
let l = i(r);
|
|
@@ -717,40 +732,40 @@ function ho(e, o, t = S(() => !0)) {
|
|
|
717
732
|
}(e);
|
|
718
733
|
for (let u of a) {
|
|
719
734
|
if (u === null) continue;
|
|
720
|
-
let c = u instanceof HTMLElement ? u :
|
|
735
|
+
let c = u instanceof HTMLElement ? u : P(u);
|
|
721
736
|
if (c != null && c.contains(l) || r.composed && r.composedPath().includes(c)) return;
|
|
722
737
|
}
|
|
723
|
-
return !
|
|
738
|
+
return !po(l, Mt.Loose) && l.tabIndex !== -1 && r.preventDefault(), o(r, l);
|
|
724
739
|
}
|
|
725
740
|
let s = E(null);
|
|
726
|
-
|
|
741
|
+
Pe("pointerdown", (r) => {
|
|
727
742
|
var i, l;
|
|
728
743
|
t.value && (s.value = ((l = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : l[0]) || r.target);
|
|
729
|
-
}, !0),
|
|
744
|
+
}, !0), Pe("mousedown", (r) => {
|
|
730
745
|
var i, l;
|
|
731
746
|
t.value && (s.value = ((l = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : l[0]) || r.target);
|
|
732
|
-
}, !0),
|
|
747
|
+
}, !0), Pe("click", (r) => {
|
|
733
748
|
Nt() || s.value && (n(r, () => s.value), s.value = null);
|
|
734
|
-
}, !0),
|
|
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);
|
|
735
750
|
}
|
|
736
751
|
function ht(e, o) {
|
|
737
752
|
if (e) return e;
|
|
738
753
|
let t = o ?? "button";
|
|
739
754
|
if (typeof t == "string" && t.toLowerCase() === "button") return "button";
|
|
740
755
|
}
|
|
741
|
-
function
|
|
756
|
+
function _o(e, o) {
|
|
742
757
|
let t = E(ht(e.value.type, e.value.as));
|
|
743
758
|
return Ce(() => {
|
|
744
759
|
t.value = ht(e.value.type, e.value.as);
|
|
745
760
|
}), ie(() => {
|
|
746
761
|
var n;
|
|
747
|
-
t.value ||
|
|
762
|
+
t.value || P(o) && P(o) instanceof HTMLButtonElement && !((n = P(o)) != null && n.hasAttribute("type")) && (t.value = "button");
|
|
748
763
|
}), t;
|
|
749
764
|
}
|
|
750
765
|
function mt(e) {
|
|
751
766
|
return [e.screenX, e.screenY];
|
|
752
767
|
}
|
|
753
|
-
function
|
|
768
|
+
function Co() {
|
|
754
769
|
let e = E([-1, -1]);
|
|
755
770
|
return { wasMoved(o) {
|
|
756
771
|
let t = mt(o);
|
|
@@ -759,7 +774,7 @@ function go() {
|
|
|
759
774
|
e.value = mt(o);
|
|
760
775
|
} };
|
|
761
776
|
}
|
|
762
|
-
function
|
|
777
|
+
function yo({ container: e, accept: o, walk: t, enabled: n }) {
|
|
763
778
|
ie(() => {
|
|
764
779
|
let s = e.value;
|
|
765
780
|
if (!s || n !== void 0 && !n.value) return;
|
|
@@ -769,7 +784,7 @@ function bo({ container: e, accept: o, walk: t, enabled: n }) {
|
|
|
769
784
|
for (; l.nextNode(); ) t(l.currentNode);
|
|
770
785
|
});
|
|
771
786
|
}
|
|
772
|
-
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 || {});
|
|
773
788
|
function pe({ visible: e = !0, features: o = 0, ourProps: t, theirProps: n, ...s }) {
|
|
774
789
|
var r;
|
|
775
790
|
let i = At(n, t), l = Object.assign(s, { props: i });
|
|
@@ -788,20 +803,20 @@ function Je({ props: e, attrs: o, slots: t, slot: n, name: s }) {
|
|
|
788
803
|
var r, i;
|
|
789
804
|
let { as: l, ...a } = je(e, ["unmount", "static"]), u = (r = t.default) == null ? void 0 : r.call(t, n), c = {};
|
|
790
805
|
if (n) {
|
|
791
|
-
let p = !1,
|
|
792
|
-
for (let [
|
|
793
|
-
p && (c["data-headlessui-state"] =
|
|
806
|
+
let p = !1, g = [];
|
|
807
|
+
for (let [x, _] of Object.entries(n)) typeof _ == "boolean" && (p = !0), _ === !0 && g.push(x);
|
|
808
|
+
p && (c["data-headlessui-state"] = g.join(" "));
|
|
794
809
|
}
|
|
795
810
|
if (l === "template") {
|
|
796
811
|
if (u = Dt(u ?? []), Object.keys(a).length > 0 || Object.keys(o).length > 0) {
|
|
797
|
-
let [p, ...
|
|
798
|
-
if (!
|
|
812
|
+
let [p, ...g] = u ?? [];
|
|
813
|
+
if (!Eo(p) || g.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${s} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(a).concat(Object.keys(o)).map((v) => v.trim()).filter((v, $, N) => N.indexOf(v) === $).sort((v, $) => v.localeCompare($)).map((v) => ` - ${v}`).join(`
|
|
799
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(`
|
|
800
815
|
`)].join(`
|
|
801
816
|
`));
|
|
802
|
-
let
|
|
803
|
-
for (let v in
|
|
804
|
-
return
|
|
817
|
+
let x = At((i = p.props) != null ? i : {}, a, c), _ = $t(p, x, !0);
|
|
818
|
+
for (let v in x) v.startsWith("on") && (_.props || (_.props = {}), _.props[v] = x[v]);
|
|
819
|
+
return _;
|
|
805
820
|
}
|
|
806
821
|
return Array.isArray(u) && u.length === 1 ? u[0] : u;
|
|
807
822
|
}
|
|
@@ -825,7 +840,7 @@ function At(...e) {
|
|
|
825
840
|
} });
|
|
826
841
|
return o;
|
|
827
842
|
}
|
|
828
|
-
function
|
|
843
|
+
function So(e) {
|
|
829
844
|
let o = Object.assign({}, e);
|
|
830
845
|
for (let t in o) o[t] === void 0 && delete o[t];
|
|
831
846
|
return o;
|
|
@@ -835,11 +850,11 @@ function je(e, o = []) {
|
|
|
835
850
|
for (let n of o) n in t && delete t[n];
|
|
836
851
|
return t;
|
|
837
852
|
}
|
|
838
|
-
function
|
|
853
|
+
function Eo(e) {
|
|
839
854
|
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
840
855
|
}
|
|
841
856
|
var Ft = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Ft || {});
|
|
842
|
-
let
|
|
857
|
+
let Oo = ae({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: o, attrs: t }) {
|
|
843
858
|
return () => {
|
|
844
859
|
var n;
|
|
845
860
|
let { features: s, ...r } = e, i = { "aria-hidden": (s & 2) === 2 ? !0 : (n = r["aria-hidden"]) != null ? n : void 0, hidden: (s & 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", ...(s & 4) === 4 && (s & 2) !== 2 && { display: "none" } } };
|
|
@@ -847,27 +862,27 @@ let yo = ae({ name: "Hidden", props: { as: { type: [Object, String], default: "d
|
|
|
847
862
|
};
|
|
848
863
|
} }), jt = Symbol("Context");
|
|
849
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 || {});
|
|
850
|
-
function
|
|
865
|
+
function $o() {
|
|
851
866
|
return Ie(jt, null);
|
|
852
867
|
}
|
|
853
|
-
function
|
|
868
|
+
function To(e) {
|
|
854
869
|
ot(jt, e);
|
|
855
870
|
}
|
|
856
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 || {});
|
|
857
|
-
function
|
|
872
|
+
function Io(e) {
|
|
858
873
|
function o() {
|
|
859
874
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", o));
|
|
860
875
|
}
|
|
861
876
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", o), o());
|
|
862
877
|
}
|
|
863
878
|
let ce = [];
|
|
864
|
-
|
|
879
|
+
Io(() => {
|
|
865
880
|
function e(o) {
|
|
866
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));
|
|
867
882
|
}
|
|
868
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 });
|
|
869
884
|
});
|
|
870
|
-
function
|
|
885
|
+
function Lo(e) {
|
|
871
886
|
throw new Error("Unexpected object: " + e);
|
|
872
887
|
}
|
|
873
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 || {});
|
|
@@ -900,7 +915,7 @@ function gt(e, o) {
|
|
|
900
915
|
case 5:
|
|
901
916
|
return null;
|
|
902
917
|
default:
|
|
903
|
-
|
|
918
|
+
Lo(e);
|
|
904
919
|
}
|
|
905
920
|
}
|
|
906
921
|
function Ht(e = {}, o = null, t = []) {
|
|
@@ -914,10 +929,10 @@ function Ut(e, o, t) {
|
|
|
914
929
|
if (Array.isArray(t)) for (let [n, s] of t.entries()) Ut(e, zt(o, n.toString()), s);
|
|
915
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);
|
|
916
931
|
}
|
|
917
|
-
function
|
|
932
|
+
function Ro(e, o) {
|
|
918
933
|
return e === o;
|
|
919
934
|
}
|
|
920
|
-
var
|
|
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 || {});
|
|
921
936
|
let Zt = Symbol("ComboboxContext");
|
|
922
937
|
function ve(e) {
|
|
923
938
|
let o = Ie(Zt, null);
|
|
@@ -927,16 +942,16 @@ function ve(e) {
|
|
|
927
942
|
}
|
|
928
943
|
return o;
|
|
929
944
|
}
|
|
930
|
-
let Wt = Symbol("VirtualContext"),
|
|
945
|
+
let Wt = Symbol("VirtualContext"), Mo = ae({ name: "VirtualProvider", setup(e, { slots: o }) {
|
|
931
946
|
let t = ve("VirtualProvider"), n = S(() => {
|
|
932
|
-
let l =
|
|
947
|
+
let l = P(t.optionsRef);
|
|
933
948
|
if (!l) return { start: 0, end: 0 };
|
|
934
949
|
let a = window.getComputedStyle(l);
|
|
935
950
|
return { start: parseFloat(a.paddingBlockStart || a.paddingTop), end: parseFloat(a.paddingBlockEnd || a.paddingBottom) };
|
|
936
|
-
}), s =
|
|
951
|
+
}), s = Xn(S(() => ({ scrollPaddingStart: n.value.start, scrollPaddingEnd: n.value.end, count: t.virtual.value.options.length, estimateSize() {
|
|
937
952
|
return 40;
|
|
938
953
|
}, getScrollElement() {
|
|
939
|
-
return
|
|
954
|
+
return P(t.optionsRef);
|
|
940
955
|
}, overscan: 12 }))), r = S(() => {
|
|
941
956
|
var l;
|
|
942
957
|
return (l = t.virtual.value) == null ? void 0 : l.options;
|
|
@@ -949,14 +964,14 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
|
|
|
949
964
|
t.activeOptionIndex.value !== null && t.virtual.value.options.length > t.activeOptionIndex.value && s.value.scrollToIndex(t.activeOptionIndex.value);
|
|
950
965
|
}
|
|
951
966
|
} }, s.value.getVirtualItems().map((l) => $t(o.default({ option: t.virtual.value.options[l.index], open: t.comboboxState.value === 0 })[0], { key: `${i.value}-${l.index}`, "data-index": l.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": l.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${l.start}px)`, overflowAnchor: "none" } })))];
|
|
952
|
-
} }),
|
|
953
|
-
let s = E(1), r = E(null), i = E(null), l = E(null), a = E(null), u = E({ static: !1, hold: !1 }), c = E([]), p = E(null),
|
|
954
|
-
function
|
|
955
|
-
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) :
|
|
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 }) {
|
|
968
|
+
let s = E(1), r = E(null), i = E(null), l = E(null), a = E(null), u = E({ static: !1, hold: !1 }), c = E([]), p = E(null), g = E(2), x = E(!1);
|
|
969
|
+
function _(d = (f) => f) {
|
|
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;
|
|
956
971
|
return M === -1 && (M = null), { options: O, activeOptionIndex: M };
|
|
957
972
|
}
|
|
958
|
-
let v = S(() => e.multiple ? 1 : 0),
|
|
959
|
-
function
|
|
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 ? se(v.value, { 1: [], 0: void 0 }) : N.value), D = null, m = null;
|
|
974
|
+
function R(d) {
|
|
960
975
|
return se(v.value, { 0() {
|
|
961
976
|
return I == null ? void 0 : I(d);
|
|
962
977
|
}, 1: () => {
|
|
@@ -964,9 +979,9 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
|
|
|
964
979
|
return O === -1 ? f.push(y) : f.splice(O, 1), I == null ? void 0 : I(f);
|
|
965
980
|
} });
|
|
966
981
|
}
|
|
967
|
-
let
|
|
982
|
+
let C = S(() => {
|
|
968
983
|
});
|
|
969
|
-
F([
|
|
984
|
+
F([C], ([d], [f]) => {
|
|
970
985
|
if (b.virtual.value && d && f && p.value !== null) {
|
|
971
986
|
let y = d.indexOf(f[p.value]);
|
|
972
987
|
y !== -1 ? p.value = y : p.value = null;
|
|
@@ -977,13 +992,13 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
|
|
|
977
992
|
let y = e.by;
|
|
978
993
|
return (d == null ? void 0 : d[y]) === (f == null ? void 0 : f[y]);
|
|
979
994
|
}
|
|
980
|
-
return e.by === null ?
|
|
995
|
+
return e.by === null ? Ro(d, f) : e.by(d, f);
|
|
981
996
|
}, calculateIndex(d) {
|
|
982
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));
|
|
983
|
-
}, defaultValue: S(() => e.defaultValue), nullable:
|
|
998
|
+
}, defaultValue: S(() => e.defaultValue), nullable: $, immediate: S(() => !1), virtual: S(() => null), inputRef: i, labelRef: r, buttonRef: l, optionsRef: a, disabled: S(() => e.disabled), options: c, change(d) {
|
|
984
999
|
I(d);
|
|
985
1000
|
}, activeOptionIndex: S(() => {
|
|
986
|
-
if (
|
|
1001
|
+
if (x.value && p.value === null && (b.virtual.value ? b.virtual.value.options.length > 0 : c.value.length > 0)) {
|
|
987
1002
|
if (b.virtual.value) {
|
|
988
1003
|
let f = b.virtual.value.options.findIndex((y) => {
|
|
989
1004
|
var O;
|
|
@@ -995,10 +1010,10 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
|
|
|
995
1010
|
if (d !== -1) return d;
|
|
996
1011
|
}
|
|
997
1012
|
return p.value;
|
|
998
|
-
}), activationTrigger:
|
|
999
|
-
|
|
1013
|
+
}), activationTrigger: g, optionsPropsRef: u, closeCombobox() {
|
|
1014
|
+
x.value = !1, !e.disabled && s.value !== 1 && (s.value = 1, p.value = null);
|
|
1000
1015
|
}, openCombobox() {
|
|
1001
|
-
if (
|
|
1016
|
+
if (x.value = !0, !e.disabled && s.value !== 0) {
|
|
1002
1017
|
if (b.value.value) {
|
|
1003
1018
|
let d = b.calculateIndex(b.value.value);
|
|
1004
1019
|
d !== -1 && (p.value = d);
|
|
@@ -1006,9 +1021,9 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1006
1021
|
s.value = 0;
|
|
1007
1022
|
}
|
|
1008
1023
|
}, setActivationTrigger(d) {
|
|
1009
|
-
|
|
1024
|
+
g.value = d;
|
|
1010
1025
|
}, goToOption(d, f, y) {
|
|
1011
|
-
|
|
1026
|
+
x.value = !1, D !== null && cancelAnimationFrame(D), D = requestAnimationFrame(() => {
|
|
1012
1027
|
if (e.disabled || a.value && !u.value.static && s.value === 1) return;
|
|
1013
1028
|
if (b.virtual.value) {
|
|
1014
1029
|
p.value = d === z.Specific ? f : gt({ focus: d }, { resolveItems: () => b.virtual.value.options, resolveActiveIndex: () => {
|
|
@@ -1019,28 +1034,28 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1019
1034
|
})) != null ? G : null;
|
|
1020
1035
|
}, resolveDisabled: (A) => b.virtual.value.disabled(A), resolveId() {
|
|
1021
1036
|
throw new Error("Function not implemented.");
|
|
1022
|
-
} }),
|
|
1037
|
+
} }), g.value = y ?? 2;
|
|
1023
1038
|
return;
|
|
1024
1039
|
}
|
|
1025
|
-
let O =
|
|
1040
|
+
let O = _();
|
|
1026
1041
|
if (O.activeOptionIndex === null) {
|
|
1027
1042
|
let A = O.options.findIndex((G) => !G.dataRef.disabled);
|
|
1028
1043
|
A !== -1 && (O.activeOptionIndex = A);
|
|
1029
1044
|
}
|
|
1030
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 });
|
|
1031
|
-
p.value = M,
|
|
1046
|
+
p.value = M, g.value = y ?? 2, c.value = O.options;
|
|
1032
1047
|
});
|
|
1033
1048
|
}, selectOption(d) {
|
|
1034
1049
|
let f = c.value.find((O) => O.id === d);
|
|
1035
1050
|
if (!f) return;
|
|
1036
1051
|
let { dataRef: y } = f;
|
|
1037
|
-
|
|
1052
|
+
R(y.value);
|
|
1038
1053
|
}, selectActiveOption() {
|
|
1039
1054
|
if (b.activeOptionIndex.value !== null) {
|
|
1040
|
-
if (b.virtual.value)
|
|
1055
|
+
if (b.virtual.value) R(b.virtual.value.options[b.activeOptionIndex.value]);
|
|
1041
1056
|
else {
|
|
1042
1057
|
let { dataRef: d } = c.value[b.activeOptionIndex.value];
|
|
1043
|
-
|
|
1058
|
+
R(d.value);
|
|
1044
1059
|
}
|
|
1045
1060
|
b.goToOption(z.Specific, b.activeOptionIndex.value);
|
|
1046
1061
|
}
|
|
@@ -1051,30 +1066,30 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1051
1066
|
return;
|
|
1052
1067
|
}
|
|
1053
1068
|
m && cancelAnimationFrame(m);
|
|
1054
|
-
let O =
|
|
1055
|
-
p.value === null && b.isSelected(f.value.value) && (O.activeOptionIndex = O.options.indexOf(y)), c.value = O.options, p.value = O.activeOptionIndex,
|
|
1056
|
-
let M =
|
|
1069
|
+
let O = _((M) => (M.push(y), M));
|
|
1070
|
+
p.value === null && b.isSelected(f.value.value) && (O.activeOptionIndex = O.options.indexOf(y)), c.value = O.options, p.value = O.activeOptionIndex, g.value = 2, O.options.some((M) => !P(M.dataRef.domRef)) && (m = requestAnimationFrame(() => {
|
|
1071
|
+
let M = _();
|
|
1057
1072
|
c.value = M.options, p.value = M.activeOptionIndex;
|
|
1058
1073
|
}));
|
|
1059
1074
|
}, unregisterOption(d, f) {
|
|
1060
|
-
if (D !== null && cancelAnimationFrame(D), f && (
|
|
1075
|
+
if (D !== null && cancelAnimationFrame(D), f && (x.value = !0), b.virtual.value) {
|
|
1061
1076
|
c.value = c.value.filter((O) => O.id !== d);
|
|
1062
1077
|
return;
|
|
1063
1078
|
}
|
|
1064
|
-
let y =
|
|
1079
|
+
let y = _((O) => {
|
|
1065
1080
|
let M = O.findIndex((A) => A.id === d);
|
|
1066
1081
|
return M !== -1 && O.splice(M, 1), O;
|
|
1067
1082
|
});
|
|
1068
|
-
c.value = y.options, p.value = y.activeOptionIndex,
|
|
1083
|
+
c.value = y.options, p.value = y.activeOptionIndex, g.value = 2;
|
|
1069
1084
|
}, isSelected(d) {
|
|
1070
1085
|
return se(v.value, { 0: () => b.compare(K(b.value.value), K(d)), 1: () => K(b.value.value).some((f) => b.compare(K(f), K(d))) });
|
|
1071
1086
|
}, isActive(d) {
|
|
1072
1087
|
return p.value === b.calculateIndex(d);
|
|
1073
1088
|
} };
|
|
1074
|
-
|
|
1089
|
+
xo([i, l, a], () => b.closeCombobox(), S(() => s.value === 0)), ot(Zt, b), To(S(() => se(s.value, { 0: $e.Open, 1: $e.Closed })));
|
|
1075
1090
|
let L = S(() => {
|
|
1076
1091
|
var d;
|
|
1077
|
-
return (d =
|
|
1092
|
+
return (d = P(i)) == null ? void 0 : d.closest("form");
|
|
1078
1093
|
});
|
|
1079
1094
|
return Ce(() => {
|
|
1080
1095
|
F([L], () => {
|
|
@@ -1090,7 +1105,7 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
|
|
|
1090
1105
|
}), () => {
|
|
1091
1106
|
var d, f, y;
|
|
1092
1107
|
let { name: O, disabled: M, form: A, ...G } = e, q = { open: s.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 };
|
|
1093
|
-
return Ee(Z, [...O != null && k.value != null ? Ht({ [O]: k.value }).map(([j, fn]) => Ee(
|
|
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" })]);
|
|
1094
1109
|
};
|
|
1095
1110
|
} });
|
|
1096
1111
|
ae({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t }) {
|
|
@@ -1098,21 +1113,21 @@ ae({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "lab
|
|
|
1098
1113
|
let s = (n = e.id) != null ? n : `headlessui-combobox-label-${Le()}`, r = ve("ComboboxLabel");
|
|
1099
1114
|
function i() {
|
|
1100
1115
|
var l;
|
|
1101
|
-
(l =
|
|
1116
|
+
(l = P(r.inputRef)) == null || l.focus({ preventScroll: !0 });
|
|
1102
1117
|
}
|
|
1103
1118
|
return () => {
|
|
1104
1119
|
let l = { open: r.comboboxState.value === 0, disabled: r.disabled.value }, { ...a } = e, u = { id: s, ref: r.labelRef, onClick: i };
|
|
1105
1120
|
return pe({ ourProps: u, theirProps: a, slot: l, attrs: o, slots: t, name: "ComboboxLabel" });
|
|
1106
1121
|
};
|
|
1107
1122
|
} });
|
|
1108
|
-
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 }) {
|
|
1109
1124
|
var s;
|
|
1110
1125
|
let r = (s = e.id) != null ? s : `headlessui-combobox-button-${Le()}`, i = ve("ComboboxButton");
|
|
1111
1126
|
n({ el: i.buttonRef, $el: i.buttonRef });
|
|
1112
1127
|
function l(c) {
|
|
1113
1128
|
i.disabled.value || (i.comboboxState.value === 0 ? i.closeCombobox() : (c.preventDefault(), i.openCombobox()), Q(() => {
|
|
1114
1129
|
var p;
|
|
1115
|
-
return (p =
|
|
1130
|
+
return (p = P(i.inputRef)) == null ? void 0 : p.focus({ preventScroll: !0 });
|
|
1116
1131
|
}));
|
|
1117
1132
|
}
|
|
1118
1133
|
function a(c) {
|
|
@@ -1140,62 +1155,62 @@ let Vo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1140
1155
|
return;
|
|
1141
1156
|
}
|
|
1142
1157
|
}
|
|
1143
|
-
let u =
|
|
1158
|
+
let u = _o(S(() => ({ as: e.as, type: o.type })), i.buttonRef);
|
|
1144
1159
|
return () => {
|
|
1145
1160
|
var c, p;
|
|
1146
|
-
let
|
|
1147
|
-
return pe({ ourProps:
|
|
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: l };
|
|
1162
|
+
return pe({ ourProps: _, theirProps: x, slot: g, attrs: o, slots: t, name: "ComboboxButton" });
|
|
1148
1163
|
};
|
|
1149
|
-
} }),
|
|
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: s }) {
|
|
1150
1165
|
var r;
|
|
1151
|
-
let i = (r = e.id) != null ? r : `headlessui-combobox-input-${Le()}`, l = ve("ComboboxInput"), a = S(() => rt(
|
|
1166
|
+
let i = (r = e.id) != null ? r : `headlessui-combobox-input-${Le()}`, l = ve("ComboboxInput"), a = S(() => rt(P(l.inputRef))), u = { value: !1 };
|
|
1152
1167
|
s({ el: l.inputRef, $el: l.inputRef });
|
|
1153
1168
|
function c() {
|
|
1154
1169
|
l.change(null);
|
|
1155
|
-
let m =
|
|
1170
|
+
let m = P(l.optionsRef);
|
|
1156
1171
|
m && (m.scrollTop = 0), l.goToOption(z.Nothing);
|
|
1157
1172
|
}
|
|
1158
1173
|
let p = S(() => {
|
|
1159
1174
|
var m;
|
|
1160
|
-
let
|
|
1161
|
-
return
|
|
1175
|
+
let R = l.value.value;
|
|
1176
|
+
return P(l.inputRef) ? typeof e.displayValue < "u" && R !== void 0 ? (m = e.displayValue(R)) != null ? m : "" : typeof R == "string" ? R : "" : "";
|
|
1162
1177
|
});
|
|
1163
1178
|
Ce(() => {
|
|
1164
|
-
F([p, l.comboboxState, a], ([m,
|
|
1179
|
+
F([p, l.comboboxState, a], ([m, R], [C, b]) => {
|
|
1165
1180
|
if (u.value) return;
|
|
1166
|
-
let L =
|
|
1167
|
-
L && ((b === 0 &&
|
|
1181
|
+
let L = P(l.inputRef);
|
|
1182
|
+
L && ((b === 0 && R === 1 || m !== C) && (L.value = m), requestAnimationFrame(() => {
|
|
1168
1183
|
var d;
|
|
1169
1184
|
if (u.value || !L || ((d = a.value) == null ? void 0 : d.activeElement) !== L) return;
|
|
1170
1185
|
let { selectionStart: f, selectionEnd: y } = L;
|
|
1171
1186
|
Math.abs((y ?? 0) - (f ?? 0)) === 0 && f === 0 && L.setSelectionRange(L.value.length, L.value.length);
|
|
1172
1187
|
}));
|
|
1173
|
-
}, { immediate: !0 }), F([l.comboboxState], ([m], [
|
|
1174
|
-
if (m === 0 &&
|
|
1188
|
+
}, { immediate: !0 }), F([l.comboboxState], ([m], [R]) => {
|
|
1189
|
+
if (m === 0 && R === 1) {
|
|
1175
1190
|
if (u.value) return;
|
|
1176
|
-
let
|
|
1177
|
-
if (!
|
|
1178
|
-
let b =
|
|
1179
|
-
|
|
1191
|
+
let C = P(l.inputRef);
|
|
1192
|
+
if (!C) return;
|
|
1193
|
+
let b = C.value, { selectionStart: L, selectionEnd: d, selectionDirection: f } = C;
|
|
1194
|
+
C.value = "", C.value = b, f !== null ? C.setSelectionRange(L, d, f) : C.setSelectionRange(L, d);
|
|
1180
1195
|
}
|
|
1181
1196
|
});
|
|
1182
1197
|
});
|
|
1183
|
-
let
|
|
1184
|
-
function
|
|
1185
|
-
|
|
1198
|
+
let g = E(!1);
|
|
1199
|
+
function x() {
|
|
1200
|
+
g.value = !0;
|
|
1186
1201
|
}
|
|
1187
|
-
function
|
|
1202
|
+
function _() {
|
|
1188
1203
|
De().nextFrame(() => {
|
|
1189
|
-
|
|
1204
|
+
g.value = !1;
|
|
1190
1205
|
});
|
|
1191
1206
|
}
|
|
1192
|
-
let v =
|
|
1193
|
-
function
|
|
1207
|
+
let v = oo();
|
|
1208
|
+
function $(m) {
|
|
1194
1209
|
switch (u.value = !0, v(() => {
|
|
1195
1210
|
u.value = !1;
|
|
1196
1211
|
}), m.key) {
|
|
1197
1212
|
case W.Enter:
|
|
1198
|
-
if (u.value = !1, l.comboboxState.value !== 0 ||
|
|
1213
|
+
if (u.value = !1, l.comboboxState.value !== 0 || g.value) return;
|
|
1199
1214
|
if (m.preventDefault(), m.stopPropagation(), l.activeOptionIndex.value === null) {
|
|
1200
1215
|
l.closeCombobox();
|
|
1201
1216
|
return;
|
|
@@ -1234,35 +1249,35 @@ let Vo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1234
1249
|
o("change", m), l.nullable.value && l.mode.value === 0 && m.target.value === "" && c(), l.openCombobox();
|
|
1235
1250
|
}
|
|
1236
1251
|
function I(m) {
|
|
1237
|
-
var
|
|
1238
|
-
let L = (
|
|
1239
|
-
if (u.value = !1, !((
|
|
1252
|
+
var R, C, b;
|
|
1253
|
+
let L = (R = m.relatedTarget) != null ? R : ce.find((d) => d !== m.currentTarget);
|
|
1254
|
+
if (u.value = !1, !((C = P(l.optionsRef)) != null && C.contains(L)) && !((b = P(l.buttonRef)) != null && b.contains(L)) && l.comboboxState.value === 0) return m.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? c() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
|
|
1240
1255
|
}
|
|
1241
1256
|
function k(m) {
|
|
1242
|
-
var
|
|
1243
|
-
let L = (
|
|
1244
|
-
(
|
|
1257
|
+
var R, C, b;
|
|
1258
|
+
let L = (R = m.relatedTarget) != null ? R : ce.find((d) => d !== m.currentTarget);
|
|
1259
|
+
(C = P(l.buttonRef)) != null && C.contains(L) || (b = P(l.optionsRef)) != null && b.contains(L) || l.disabled.value || l.immediate.value && l.comboboxState.value !== 0 && (l.openCombobox(), De().nextFrame(() => {
|
|
1245
1260
|
l.setActivationTrigger(1);
|
|
1246
1261
|
}));
|
|
1247
1262
|
}
|
|
1248
1263
|
let D = S(() => {
|
|
1249
|
-
var m,
|
|
1250
|
-
return (b = (
|
|
1264
|
+
var m, R, C, b;
|
|
1265
|
+
return (b = (C = (R = e.defaultValue) != null ? R : l.defaultValue.value !== void 0 ? (m = e.displayValue) == null ? void 0 : m.call(e, l.defaultValue.value) : null) != null ? C : l.defaultValue.value) != null ? b : "";
|
|
1251
1266
|
});
|
|
1252
1267
|
return () => {
|
|
1253
|
-
var m,
|
|
1254
|
-
let y = { open: l.comboboxState.value === 0 }, { displayValue: O, onChange: M, ...A } = e, G = { "aria-controls": (m = l.optionsRef.value) == null ? void 0 : m.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (
|
|
1268
|
+
var m, R, C, b, L, d, f;
|
|
1269
|
+
let y = { open: l.comboboxState.value === 0 }, { displayValue: O, onChange: M, ...A } = e, G = { "aria-controls": (m = l.optionsRef.value) == null ? void 0 : m.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (R = l.options.value.find((q) => !l.virtual.value.disabled(q.dataRef.value) && l.compare(q.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : R.id : (C = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : C.id, "aria-labelledby": (d = (b = P(l.labelRef)) == null ? void 0 : b.id) != null ? d : (L = P(l.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: l.inputRef, defaultValue: D.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
|
|
1255
1270
|
return pe({ ourProps: G, theirProps: A, slot: y, attrs: t, slots: n, features: Oe.RenderStrategy | Oe.Static, name: "ComboboxInput" });
|
|
1256
1271
|
};
|
|
1257
|
-
} }),
|
|
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 }) {
|
|
1258
1273
|
let s = ve("ComboboxOptions"), r = `headlessui-combobox-options-${Le()}`;
|
|
1259
1274
|
n({ el: s.optionsRef, $el: s.optionsRef }), ie(() => {
|
|
1260
1275
|
s.optionsPropsRef.value.static = e.static;
|
|
1261
1276
|
}), ie(() => {
|
|
1262
1277
|
s.optionsPropsRef.value.hold = e.hold;
|
|
1263
1278
|
});
|
|
1264
|
-
let i =
|
|
1265
|
-
|
|
1279
|
+
let i = $o(), l = S(() => i !== null ? (i.value & $e.Open) === $e.Open : s.comboboxState.value === 0);
|
|
1280
|
+
yo({ container: S(() => P(s.optionsRef)), enabled: S(() => s.comboboxState.value === 0), accept(u) {
|
|
1266
1281
|
return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
1267
1282
|
}, walk(u) {
|
|
1268
1283
|
u.setAttribute("role", "none");
|
|
@@ -1272,10 +1287,10 @@ let Vo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1272
1287
|
}
|
|
1273
1288
|
return () => {
|
|
1274
1289
|
var u, c, p;
|
|
1275
|
-
let
|
|
1276
|
-
return pe({ ourProps:
|
|
1290
|
+
let g = { open: s.comboboxState.value === 0 }, x = { "aria-labelledby": (p = (u = P(s.labelRef)) == null ? void 0 : u.id) != null ? p : (c = P(s.buttonRef)) == null ? void 0 : c.id, id: r, ref: s.optionsRef, role: "listbox", "aria-multiselectable": s.mode.value === 1 ? !0 : void 0, onMousedown: a }, _ = je(e, ["hold"]);
|
|
1291
|
+
return pe({ ourProps: x, theirProps: _, slot: g, attrs: o, slots: s.virtual.value && s.comboboxState.value === 0 ? { ...t, default: () => [Ee(Mo, {}, t.default)] } : t, features: Oe.RenderStrategy | Oe.Static, visible: l.value, name: "ComboboxOptions" });
|
|
1277
1292
|
};
|
|
1278
|
-
} }),
|
|
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 }) {
|
|
1279
1294
|
let s = ve("ComboboxOption"), r = `headlessui-combobox-option-${Le()}`, i = E(null), l = S(() => e.disabled);
|
|
1280
1295
|
n({ el: i, $el: i });
|
|
1281
1296
|
let a = S(() => {
|
|
@@ -1283,84 +1298,84 @@ let Vo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1283
1298
|
return s.virtual.value ? s.activeOptionIndex.value === s.calculateIndex(e.value) : s.activeOptionIndex.value === null ? !1 : ((I = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : I.id) === r;
|
|
1284
1299
|
}), u = S(() => s.isSelected(e.value)), c = Ie(Wt, null), p = S(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: S(() => e.order) }));
|
|
1285
1300
|
Ce(() => s.registerOption(r, p)), nt(() => s.unregisterOption(r, a.value)), ie(() => {
|
|
1286
|
-
let I =
|
|
1301
|
+
let I = P(i);
|
|
1287
1302
|
I && (c == null || c.value.measureElement(I));
|
|
1288
1303
|
}), ie(() => {
|
|
1289
1304
|
s.comboboxState.value === 0 && a.value && (s.virtual.value || s.activationTrigger.value !== 0 && Q(() => {
|
|
1290
1305
|
var I, k;
|
|
1291
|
-
return (k = (I =
|
|
1306
|
+
return (k = (I = P(i)) == null ? void 0 : I.scrollIntoView) == null ? void 0 : k.call(I, { block: "nearest" });
|
|
1292
1307
|
}));
|
|
1293
1308
|
});
|
|
1294
|
-
function
|
|
1309
|
+
function g(I) {
|
|
1295
1310
|
I.preventDefault(), I.button === Bt.Left && (l.value || (s.selectOption(r), Nt() || requestAnimationFrame(() => {
|
|
1296
1311
|
var k;
|
|
1297
|
-
return (k =
|
|
1312
|
+
return (k = P(s.inputRef)) == null ? void 0 : k.focus({ preventScroll: !0 });
|
|
1298
1313
|
}), s.mode.value === 0 && s.closeCombobox()));
|
|
1299
1314
|
}
|
|
1300
|
-
function
|
|
1315
|
+
function x() {
|
|
1301
1316
|
var I;
|
|
1302
1317
|
if (e.disabled || (I = s.virtual.value) != null && I.disabled(e.value)) return s.goToOption(z.Nothing);
|
|
1303
1318
|
let k = s.calculateIndex(e.value);
|
|
1304
1319
|
s.goToOption(z.Specific, k);
|
|
1305
1320
|
}
|
|
1306
|
-
let
|
|
1321
|
+
let _ = Co();
|
|
1307
1322
|
function v(I) {
|
|
1308
|
-
|
|
1323
|
+
_.update(I);
|
|
1309
1324
|
}
|
|
1310
|
-
function
|
|
1325
|
+
function $(I) {
|
|
1311
1326
|
var k;
|
|
1312
|
-
if (!
|
|
1327
|
+
if (!_.wasMoved(I) || e.disabled || (k = s.virtual.value) != null && k.disabled(e.value) || a.value) return;
|
|
1313
1328
|
let D = s.calculateIndex(e.value);
|
|
1314
1329
|
s.goToOption(z.Specific, D, 0);
|
|
1315
1330
|
}
|
|
1316
1331
|
function N(I) {
|
|
1317
1332
|
var k;
|
|
1318
|
-
|
|
1333
|
+
_.wasMoved(I) && (e.disabled || (k = s.virtual.value) != null && k.disabled(e.value) || a.value && (s.optionsPropsRef.value.hold || s.goToOption(z.Nothing)));
|
|
1319
1334
|
}
|
|
1320
1335
|
return () => {
|
|
1321
|
-
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:
|
|
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"]);
|
|
1322
1337
|
return pe({ ourProps: D, theirProps: m, slot: k, attrs: t, slots: o, name: "ComboboxOption" });
|
|
1323
1338
|
};
|
|
1324
1339
|
} });
|
|
1325
|
-
function
|
|
1326
|
-
return w(),
|
|
1340
|
+
function Bo(e, o) {
|
|
1341
|
+
return w(), T("svg", {
|
|
1327
1342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1328
1343
|
viewBox: "0 0 20 20",
|
|
1329
1344
|
fill: "currentColor",
|
|
1330
1345
|
"aria-hidden": "true",
|
|
1331
1346
|
"data-slot": "icon"
|
|
1332
1347
|
}, [
|
|
1333
|
-
|
|
1348
|
+
h("path", {
|
|
1334
1349
|
"fill-rule": "evenodd",
|
|
1335
1350
|
d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
|
|
1336
1351
|
"clip-rule": "evenodd"
|
|
1337
1352
|
})
|
|
1338
1353
|
]);
|
|
1339
1354
|
}
|
|
1340
|
-
function
|
|
1341
|
-
return w(),
|
|
1355
|
+
function Ho(e, o) {
|
|
1356
|
+
return w(), T("svg", {
|
|
1342
1357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1343
1358
|
viewBox: "0 0 20 20",
|
|
1344
1359
|
fill: "currentColor",
|
|
1345
1360
|
"aria-hidden": "true",
|
|
1346
1361
|
"data-slot": "icon"
|
|
1347
1362
|
}, [
|
|
1348
|
-
|
|
1363
|
+
h("path", {
|
|
1349
1364
|
"fill-rule": "evenodd",
|
|
1350
1365
|
d: "M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z",
|
|
1351
1366
|
"clip-rule": "evenodd"
|
|
1352
1367
|
})
|
|
1353
1368
|
]);
|
|
1354
1369
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return w(),
|
|
1370
|
+
function zo(e, o) {
|
|
1371
|
+
return w(), T("svg", {
|
|
1357
1372
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1358
1373
|
viewBox: "0 0 20 20",
|
|
1359
1374
|
fill: "currentColor",
|
|
1360
1375
|
"aria-hidden": "true",
|
|
1361
1376
|
"data-slot": "icon"
|
|
1362
1377
|
}, [
|
|
1363
|
-
|
|
1378
|
+
h("path", {
|
|
1364
1379
|
"fill-rule": "evenodd",
|
|
1365
1380
|
d: "M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",
|
|
1366
1381
|
"clip-rule": "evenodd"
|
|
@@ -1378,22 +1393,22 @@ function Ke(e, o) {
|
|
|
1378
1393
|
}
|
|
1379
1394
|
delete e[o];
|
|
1380
1395
|
}
|
|
1381
|
-
function
|
|
1396
|
+
function Uo() {
|
|
1382
1397
|
return qt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1383
1398
|
}
|
|
1384
1399
|
function qt() {
|
|
1385
1400
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1386
1401
|
}
|
|
1387
|
-
const
|
|
1402
|
+
const Zo = typeof Proxy == "function", Wo = "devtools-plugin:setup", Go = "plugin:settings:set";
|
|
1388
1403
|
let me, Ye;
|
|
1389
|
-
function
|
|
1404
|
+
function qo() {
|
|
1390
1405
|
var e;
|
|
1391
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;
|
|
1392
1407
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return
|
|
1408
|
+
function Jo() {
|
|
1409
|
+
return qo() ? Ye.now() : Date.now();
|
|
1395
1410
|
}
|
|
1396
|
-
class
|
|
1411
|
+
class Ko {
|
|
1397
1412
|
constructor(o, t) {
|
|
1398
1413
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = o, this.hook = t;
|
|
1399
1414
|
const n = {};
|
|
@@ -1421,9 +1436,9 @@ class Wo {
|
|
|
1421
1436
|
r = i;
|
|
1422
1437
|
},
|
|
1423
1438
|
now() {
|
|
1424
|
-
return
|
|
1439
|
+
return Jo();
|
|
1425
1440
|
}
|
|
1426
|
-
}, t && t.on(
|
|
1441
|
+
}, t && t.on(Go, (i, l) => {
|
|
1427
1442
|
i === this.plugin.id && this.fallbacks.setSettings(l);
|
|
1428
1443
|
}), this.proxiedOn = new Proxy({}, {
|
|
1429
1444
|
get: (i, l) => this.target ? this.target.on[l] : (...a) => {
|
|
@@ -1456,11 +1471,11 @@ class Wo {
|
|
|
1456
1471
|
}
|
|
1457
1472
|
}
|
|
1458
1473
|
function Jt(e, o) {
|
|
1459
|
-
const t = e, n = qt(), s =
|
|
1474
|
+
const t = e, n = qt(), s = Uo(), r = Zo && t.enableEarlyProxy;
|
|
1460
1475
|
if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
1461
|
-
s.emit(
|
|
1476
|
+
s.emit(Wo, e, o);
|
|
1462
1477
|
else {
|
|
1463
|
-
const i = r ? new
|
|
1478
|
+
const i = r ? new Ko(t, s) : null;
|
|
1464
1479
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1465
1480
|
pluginDescriptor: t,
|
|
1466
1481
|
setupFn: o,
|
|
@@ -1486,7 +1501,7 @@ var ne;
|
|
|
1486
1501
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
1487
1502
|
})(ne || (ne = {}));
|
|
1488
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 };
|
|
1489
|
-
function
|
|
1504
|
+
function Yo(e, { autoBom: o = !1 } = {}) {
|
|
1490
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;
|
|
1491
1506
|
}
|
|
1492
1507
|
function it(e, o, t) {
|
|
@@ -1516,16 +1531,16 @@ function ke(e) {
|
|
|
1516
1531
|
}
|
|
1517
1532
|
const Me = typeof navigator == "object" ? navigator : { userAgent: "" }, Qt = /Macintosh/.test(Me.userAgent) && /AppleWebKit/.test(Me.userAgent) && !/Safari/.test(Me.userAgent), Xt = Be ? (
|
|
1518
1533
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
1519
|
-
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Qt ?
|
|
1534
|
+
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Qt ? Qo : (
|
|
1520
1535
|
// Use msSaveOrOpenBlob as a second approach
|
|
1521
|
-
"msSaveOrOpenBlob" in Me ?
|
|
1536
|
+
"msSaveOrOpenBlob" in Me ? Xo : (
|
|
1522
1537
|
// Fallback to using FileReader and a popup
|
|
1523
|
-
|
|
1538
|
+
e2
|
|
1524
1539
|
)
|
|
1525
1540
|
)
|
|
1526
1541
|
) : () => {
|
|
1527
1542
|
};
|
|
1528
|
-
function
|
|
1543
|
+
function Qo(e, o = "download", t) {
|
|
1529
1544
|
const n = document.createElement("a");
|
|
1530
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() {
|
|
1531
1546
|
URL.revokeObjectURL(n.href);
|
|
@@ -1533,7 +1548,7 @@ function qo(e, o = "download", t) {
|
|
|
1533
1548
|
ke(n);
|
|
1534
1549
|
}, 0));
|
|
1535
1550
|
}
|
|
1536
|
-
function
|
|
1551
|
+
function Xo(e, o = "download", t) {
|
|
1537
1552
|
if (typeof e == "string")
|
|
1538
1553
|
if (Yt(e))
|
|
1539
1554
|
it(e, o, t);
|
|
@@ -1544,9 +1559,9 @@ function Jo(e, o = "download", t) {
|
|
|
1544
1559
|
});
|
|
1545
1560
|
}
|
|
1546
1561
|
else
|
|
1547
|
-
navigator.msSaveOrOpenBlob(
|
|
1562
|
+
navigator.msSaveOrOpenBlob(Yo(e, t), o);
|
|
1548
1563
|
}
|
|
1549
|
-
function
|
|
1564
|
+
function e2(e, o, t, n) {
|
|
1550
1565
|
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
|
|
1551
1566
|
return it(e, o, t);
|
|
1552
1567
|
const s = e.type === "application/octet-stream", r = /constructor/i.test(String(bt.HTMLElement)) || "safari" in bt, i = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
@@ -1579,7 +1594,7 @@ function en() {
|
|
|
1579
1594
|
function tn(e) {
|
|
1580
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;
|
|
1581
1596
|
}
|
|
1582
|
-
async function
|
|
1597
|
+
async function t2(e) {
|
|
1583
1598
|
if (!en())
|
|
1584
1599
|
try {
|
|
1585
1600
|
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), B("Global state copied to clipboard.");
|
|
@@ -1589,7 +1604,7 @@ async function Yo(e) {
|
|
|
1589
1604
|
B("Failed to serialize the state. Check the console for more details.", "error"), console.error(o);
|
|
1590
1605
|
}
|
|
1591
1606
|
}
|
|
1592
|
-
async function
|
|
1607
|
+
async function n2(e) {
|
|
1593
1608
|
if (!en())
|
|
1594
1609
|
try {
|
|
1595
1610
|
nn(e, JSON.parse(await navigator.clipboard.readText())), B("Global state pasted from clipboard.");
|
|
@@ -1599,7 +1614,7 @@ async function Qo(e) {
|
|
|
1599
1614
|
B("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(o);
|
|
1600
1615
|
}
|
|
1601
1616
|
}
|
|
1602
|
-
async function
|
|
1617
|
+
async function o2(e) {
|
|
1603
1618
|
try {
|
|
1604
1619
|
Xt(new Blob([JSON.stringify(e.state.value)], {
|
|
1605
1620
|
type: "text/plain;charset=utf-8"
|
|
@@ -1609,7 +1624,7 @@ async function Xo(e) {
|
|
|
1609
1624
|
}
|
|
1610
1625
|
}
|
|
1611
1626
|
let oe;
|
|
1612
|
-
function
|
|
1627
|
+
function s2() {
|
|
1613
1628
|
oe || (oe = document.createElement("input"), oe.type = "file", oe.accept = ".json");
|
|
1614
1629
|
function e() {
|
|
1615
1630
|
return new Promise((o, t) => {
|
|
@@ -1624,9 +1639,9 @@ function es() {
|
|
|
1624
1639
|
}
|
|
1625
1640
|
return e;
|
|
1626
1641
|
}
|
|
1627
|
-
async function
|
|
1642
|
+
async function l2(e) {
|
|
1628
1643
|
try {
|
|
1629
|
-
const t = await
|
|
1644
|
+
const t = await s2()();
|
|
1630
1645
|
if (!t)
|
|
1631
1646
|
return;
|
|
1632
1647
|
const { text: n, file: s } = t;
|
|
@@ -1649,7 +1664,7 @@ function Y(e) {
|
|
|
1649
1664
|
};
|
|
1650
1665
|
}
|
|
1651
1666
|
const on = "🍍 Pinia (root)", Qe = "_root";
|
|
1652
|
-
function
|
|
1667
|
+
function r2(e) {
|
|
1653
1668
|
return at(e) ? {
|
|
1654
1669
|
id: Qe,
|
|
1655
1670
|
label: on
|
|
@@ -1658,7 +1673,7 @@ function ns(e) {
|
|
|
1658
1673
|
label: e.$id
|
|
1659
1674
|
};
|
|
1660
1675
|
}
|
|
1661
|
-
function
|
|
1676
|
+
function i2(e) {
|
|
1662
1677
|
if (at(e)) {
|
|
1663
1678
|
const t = Array.from(e._s.keys()), n = e._s;
|
|
1664
1679
|
return {
|
|
@@ -1694,7 +1709,7 @@ function os(e) {
|
|
|
1694
1709
|
value: e[t]
|
|
1695
1710
|
}))), o;
|
|
1696
1711
|
}
|
|
1697
|
-
function
|
|
1712
|
+
function a2(e) {
|
|
1698
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), {
|
|
1699
1714
|
oldValue: {},
|
|
1700
1715
|
keys: [],
|
|
@@ -1707,7 +1722,7 @@ function ss(e) {
|
|
|
1707
1722
|
newValue: e.newValue
|
|
1708
1723
|
} : {};
|
|
1709
1724
|
}
|
|
1710
|
-
function
|
|
1725
|
+
function u2(e) {
|
|
1711
1726
|
switch (e) {
|
|
1712
1727
|
case ne.direct:
|
|
1713
1728
|
return "mutation";
|
|
@@ -1720,8 +1735,8 @@ function ls(e) {
|
|
|
1720
1735
|
}
|
|
1721
1736
|
}
|
|
1722
1737
|
let be = !0;
|
|
1723
|
-
const Ne = [], ue = "pinia:mutations", U = "pinia", { assign:
|
|
1724
|
-
function
|
|
1738
|
+
const Ne = [], ue = "pinia:mutations", U = "pinia", { assign: c2 } = Object, Ae = (e) => "🍍 " + e;
|
|
1739
|
+
function d2(e, o) {
|
|
1725
1740
|
Jt({
|
|
1726
1741
|
id: "dev.esm.pinia",
|
|
1727
1742
|
label: "Pinia 🍍",
|
|
@@ -1744,28 +1759,28 @@ function is(e, o) {
|
|
|
1744
1759
|
{
|
|
1745
1760
|
icon: "content_copy",
|
|
1746
1761
|
action: () => {
|
|
1747
|
-
|
|
1762
|
+
t2(o);
|
|
1748
1763
|
},
|
|
1749
1764
|
tooltip: "Serialize and copy the state"
|
|
1750
1765
|
},
|
|
1751
1766
|
{
|
|
1752
1767
|
icon: "content_paste",
|
|
1753
1768
|
action: async () => {
|
|
1754
|
-
await
|
|
1769
|
+
await n2(o), t.sendInspectorTree(U), t.sendInspectorState(U);
|
|
1755
1770
|
},
|
|
1756
1771
|
tooltip: "Replace the state with the content of your clipboard"
|
|
1757
1772
|
},
|
|
1758
1773
|
{
|
|
1759
1774
|
icon: "save",
|
|
1760
1775
|
action: () => {
|
|
1761
|
-
|
|
1776
|
+
o2(o);
|
|
1762
1777
|
},
|
|
1763
1778
|
tooltip: "Save the state as a JSON file"
|
|
1764
1779
|
},
|
|
1765
1780
|
{
|
|
1766
1781
|
icon: "folder_open",
|
|
1767
1782
|
action: async () => {
|
|
1768
|
-
await
|
|
1783
|
+
await l2(o), t.sendInspectorTree(U), t.sendInspectorState(U);
|
|
1769
1784
|
},
|
|
1770
1785
|
tooltip: "Import the state from a JSON file"
|
|
1771
1786
|
}
|
|
@@ -1822,14 +1837,14 @@ function is(e, o) {
|
|
|
1822
1837
|
}), t.on.getInspectorTree((n) => {
|
|
1823
1838
|
if (n.app === e && n.inspectorId === U) {
|
|
1824
1839
|
let s = [o];
|
|
1825
|
-
s = s.concat(Array.from(o._s.values())), n.rootNodes = (n.filter ? s.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) : on.toLowerCase().includes(n.filter.toLowerCase())) : s).map(
|
|
1840
|
+
s = s.concat(Array.from(o._s.values())), n.rootNodes = (n.filter ? s.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) : on.toLowerCase().includes(n.filter.toLowerCase())) : s).map(r2);
|
|
1826
1841
|
}
|
|
1827
1842
|
}), t.on.getInspectorState((n) => {
|
|
1828
1843
|
if (n.app === e && n.inspectorId === U) {
|
|
1829
1844
|
const s = n.nodeId === Qe ? o : o._s.get(n.nodeId);
|
|
1830
1845
|
if (!s)
|
|
1831
1846
|
return;
|
|
1832
|
-
s && (n.state =
|
|
1847
|
+
s && (n.state = i2(s));
|
|
1833
1848
|
}
|
|
1834
1849
|
}), t.on.editInspectorState((n, s) => {
|
|
1835
1850
|
if (n.app === e && n.inspectorId === U) {
|
|
@@ -1854,7 +1869,7 @@ Only state can be modified.`);
|
|
|
1854
1869
|
});
|
|
1855
1870
|
});
|
|
1856
1871
|
}
|
|
1857
|
-
function
|
|
1872
|
+
function f2(e, o) {
|
|
1858
1873
|
Ne.includes(Ae(o.$id)) || Ne.push(Ae(o.$id)), Jt({
|
|
1859
1874
|
id: "dev.esm.pinia",
|
|
1860
1875
|
label: "Pinia 🍍",
|
|
@@ -1947,8 +1962,8 @@ function as(e, o) {
|
|
|
1947
1962
|
return;
|
|
1948
1963
|
const u = {
|
|
1949
1964
|
time: n(),
|
|
1950
|
-
title:
|
|
1951
|
-
data:
|
|
1965
|
+
title: u2(l),
|
|
1966
|
+
data: c2({ store: Y(o.$id) }, a2(i)),
|
|
1952
1967
|
groupId: re
|
|
1953
1968
|
};
|
|
1954
1969
|
l === ne.patchFunction ? u.subtitle = "⤵️" : l === ne.patchObject ? u.subtitle = "🧩" : i && !Array.isArray(i) && (u.subtitle = i.type), i && (u.data["rawEvent(s)"] = {
|
|
@@ -1985,7 +2000,7 @@ function as(e, o) {
|
|
|
1985
2000
|
});
|
|
1986
2001
|
}
|
|
1987
2002
|
let sn = 0, re;
|
|
1988
|
-
function
|
|
2003
|
+
function xt(e, o, t) {
|
|
1989
2004
|
const n = o.reduce((s, r) => (s[r] = K(e)[r], s), {});
|
|
1990
2005
|
for (const s in n)
|
|
1991
2006
|
e[s] = function() {
|
|
@@ -2002,25 +2017,25 @@ function _t(e, o, t) {
|
|
|
2002
2017
|
return re = void 0, l;
|
|
2003
2018
|
};
|
|
2004
2019
|
}
|
|
2005
|
-
function
|
|
2020
|
+
function p2({ app: e, store: o, options: t }) {
|
|
2006
2021
|
if (o.$id.startsWith("__hot:"))
|
|
2007
2022
|
return;
|
|
2008
|
-
o._isOptionsAPI = !!t.state,
|
|
2023
|
+
o._isOptionsAPI = !!t.state, xt(o, Object.keys(t.actions), o._isOptionsAPI);
|
|
2009
2024
|
const n = o._hotUpdate;
|
|
2010
2025
|
K(o)._hotUpdate = function(s) {
|
|
2011
|
-
n.apply(this, arguments),
|
|
2012
|
-
},
|
|
2026
|
+
n.apply(this, arguments), xt(o, Object.keys(s._hmrPayload.actions), !!o._isOptionsAPI);
|
|
2027
|
+
}, f2(
|
|
2013
2028
|
e,
|
|
2014
2029
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
2015
2030
|
o
|
|
2016
2031
|
);
|
|
2017
2032
|
}
|
|
2018
|
-
function
|
|
2033
|
+
function v2() {
|
|
2019
2034
|
const e = It(!0), o = e.run(() => E({}));
|
|
2020
2035
|
let t = [], n = [];
|
|
2021
2036
|
const s = de({
|
|
2022
2037
|
install(r) {
|
|
2023
|
-
Te(s), s._a = r, r.provide(Kt, s), r.config.globalProperties.$pinia = s, Se &&
|
|
2038
|
+
Te(s), s._a = r, r.provide(Kt, s), r.config.globalProperties.$pinia = s, Se && d2(r, s), n.forEach((i) => t.push(i)), n = [];
|
|
2024
2039
|
},
|
|
2025
2040
|
use(r) {
|
|
2026
2041
|
return !this._a && !Gt ? n.push(r) : t.push(r), this;
|
|
@@ -2033,7 +2048,7 @@ function cs() {
|
|
|
2033
2048
|
_s: /* @__PURE__ */ new Map(),
|
|
2034
2049
|
state: o
|
|
2035
2050
|
});
|
|
2036
|
-
return Se && typeof Proxy < "u" && s.use(
|
|
2051
|
+
return Se && typeof Proxy < "u" && s.use(p2), s;
|
|
2037
2052
|
}
|
|
2038
2053
|
function ln(e, o) {
|
|
2039
2054
|
for (const t in o) {
|
|
@@ -2041,46 +2056,46 @@ function ln(e, o) {
|
|
|
2041
2056
|
if (!(t in e))
|
|
2042
2057
|
continue;
|
|
2043
2058
|
const s = e[t];
|
|
2044
|
-
fe(s) && fe(n) && !
|
|
2059
|
+
fe(s) && fe(n) && !xe(n) && !st(n) ? e[t] = ln(s, n) : e[t] = n;
|
|
2045
2060
|
}
|
|
2046
2061
|
return e;
|
|
2047
2062
|
}
|
|
2048
2063
|
const rn = () => {
|
|
2049
2064
|
};
|
|
2050
|
-
function
|
|
2065
|
+
function _t(e, o, t, n = rn) {
|
|
2051
2066
|
e.push(o);
|
|
2052
2067
|
const s = () => {
|
|
2053
2068
|
const r = e.indexOf(o);
|
|
2054
2069
|
r > -1 && (e.splice(r, 1), n());
|
|
2055
2070
|
};
|
|
2056
|
-
return !t &&
|
|
2071
|
+
return !t && Rt() && tt(s), s;
|
|
2057
2072
|
}
|
|
2058
2073
|
function ge(e, ...o) {
|
|
2059
2074
|
e.slice().forEach((t) => {
|
|
2060
2075
|
t(...o);
|
|
2061
2076
|
});
|
|
2062
2077
|
}
|
|
2063
|
-
const
|
|
2078
|
+
const h2 = (e) => e();
|
|
2064
2079
|
function Xe(e, o) {
|
|
2065
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);
|
|
2066
2081
|
for (const t in o) {
|
|
2067
2082
|
if (!o.hasOwnProperty(t))
|
|
2068
2083
|
continue;
|
|
2069
2084
|
const n = o[t], s = e[t];
|
|
2070
|
-
fe(s) && fe(n) && e.hasOwnProperty(t) && !
|
|
2085
|
+
fe(s) && fe(n) && e.hasOwnProperty(t) && !xe(n) && !st(n) ? e[t] = Xe(s, n) : e[t] = n;
|
|
2071
2086
|
}
|
|
2072
2087
|
return e;
|
|
2073
2088
|
}
|
|
2074
|
-
const
|
|
2089
|
+
const m2 = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
2075
2090
|
/* istanbul ignore next */
|
|
2076
2091
|
Symbol()
|
|
2077
2092
|
);
|
|
2078
|
-
function
|
|
2079
|
-
return !fe(e) || !e.hasOwnProperty(
|
|
2093
|
+
function g2(e) {
|
|
2094
|
+
return !fe(e) || !e.hasOwnProperty(m2);
|
|
2080
2095
|
}
|
|
2081
2096
|
const { assign: J } = Object;
|
|
2082
2097
|
function Ct(e) {
|
|
2083
|
-
return !!(
|
|
2098
|
+
return !!(xe(e) && e.effect);
|
|
2084
2099
|
}
|
|
2085
2100
|
function yt(e, o, t, n) {
|
|
2086
2101
|
const { state: s, actions: r, getters: i } = o, l = t.state.value[e];
|
|
@@ -2091,10 +2106,10 @@ function yt(e, o, t, n) {
|
|
|
2091
2106
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
2092
2107
|
ct(E(s ? s() : {}).value)
|
|
2093
2108
|
) : ct(t.state.value[e]);
|
|
2094
|
-
return J(c, r, Object.keys(i || {}).reduce((p,
|
|
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(() => {
|
|
2095
2110
|
Te(t);
|
|
2096
|
-
const
|
|
2097
|
-
return i[
|
|
2111
|
+
const x = t._s.get(e);
|
|
2112
|
+
return i[g].call(x, x);
|
|
2098
2113
|
})), p), {}));
|
|
2099
2114
|
}
|
|
2100
2115
|
return a = et(e, u, o, t, n, !0), a;
|
|
@@ -2109,28 +2124,28 @@ function et(e, o, t = {}, n, s, r) {
|
|
|
2109
2124
|
// flush: 'post',
|
|
2110
2125
|
};
|
|
2111
2126
|
process.env.NODE_ENV !== "production" && !Gt && (a.onTrigger = (d) => {
|
|
2112
|
-
u ?
|
|
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."));
|
|
2113
2128
|
});
|
|
2114
|
-
let u, c, p = [],
|
|
2115
|
-
const
|
|
2116
|
-
!r && !
|
|
2129
|
+
let u, c, p = [], g = [], x;
|
|
2130
|
+
const _ = n.state.value[e];
|
|
2131
|
+
!r && !_ && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
|
|
2117
2132
|
const v = E({});
|
|
2118
|
-
let
|
|
2133
|
+
let $;
|
|
2119
2134
|
function N(d) {
|
|
2120
2135
|
let f;
|
|
2121
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (
|
|
2136
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (x = []), typeof d == "function" ? (d(n.state.value[e]), f = {
|
|
2122
2137
|
type: ne.patchFunction,
|
|
2123
2138
|
storeId: e,
|
|
2124
|
-
events:
|
|
2139
|
+
events: x
|
|
2125
2140
|
}) : (Xe(n.state.value[e], d), f = {
|
|
2126
2141
|
type: ne.patchObject,
|
|
2127
2142
|
payload: d,
|
|
2128
2143
|
storeId: e,
|
|
2129
|
-
events:
|
|
2144
|
+
events: x
|
|
2130
2145
|
});
|
|
2131
|
-
const y =
|
|
2146
|
+
const y = $ = Symbol();
|
|
2132
2147
|
Q().then(() => {
|
|
2133
|
-
|
|
2148
|
+
$ === y && (u = !0);
|
|
2134
2149
|
}), c = !0, ge(p, f, n.state.value[e]);
|
|
2135
2150
|
}
|
|
2136
2151
|
const I = r ? function() {
|
|
@@ -2145,7 +2160,7 @@ function et(e, o, t = {}, n, s, r) {
|
|
|
2145
2160
|
} : rn
|
|
2146
2161
|
);
|
|
2147
2162
|
function k() {
|
|
2148
|
-
i.stop(), p = [],
|
|
2163
|
+
i.stop(), p = [], g = [], n._s.delete(e);
|
|
2149
2164
|
}
|
|
2150
2165
|
function D(d, f) {
|
|
2151
2166
|
return function() {
|
|
@@ -2157,16 +2172,16 @@ function et(e, o, t = {}, n, s, r) {
|
|
|
2157
2172
|
function G(j) {
|
|
2158
2173
|
M.push(j);
|
|
2159
2174
|
}
|
|
2160
|
-
ge(
|
|
2175
|
+
ge(g, {
|
|
2161
2176
|
args: y,
|
|
2162
2177
|
name: d,
|
|
2163
|
-
store:
|
|
2178
|
+
store: C,
|
|
2164
2179
|
after: A,
|
|
2165
2180
|
onError: G
|
|
2166
2181
|
});
|
|
2167
2182
|
let q;
|
|
2168
2183
|
try {
|
|
2169
|
-
q = f.apply(this && this.$id === e ? this :
|
|
2184
|
+
q = f.apply(this && this.$id === e ? this : C, y);
|
|
2170
2185
|
} catch (j) {
|
|
2171
2186
|
throw ge(M, j), j;
|
|
2172
2187
|
}
|
|
@@ -2178,40 +2193,40 @@ function et(e, o, t = {}, n, s, r) {
|
|
|
2178
2193
|
getters: {},
|
|
2179
2194
|
state: [],
|
|
2180
2195
|
hotState: v
|
|
2181
|
-
}),
|
|
2196
|
+
}), R = {
|
|
2182
2197
|
_p: n,
|
|
2183
2198
|
// _s: scope,
|
|
2184
2199
|
$id: e,
|
|
2185
|
-
$onAction:
|
|
2200
|
+
$onAction: _t.bind(null, g),
|
|
2186
2201
|
$patch: N,
|
|
2187
2202
|
$reset: I,
|
|
2188
2203
|
$subscribe(d, f = {}) {
|
|
2189
|
-
const y =
|
|
2204
|
+
const y = _t(p, d, f.detached, () => O()), O = i.run(() => F(() => n.state.value[e], (M) => {
|
|
2190
2205
|
(f.flush === "sync" ? c : u) && d({
|
|
2191
2206
|
storeId: e,
|
|
2192
2207
|
type: ne.direct,
|
|
2193
|
-
events:
|
|
2208
|
+
events: x
|
|
2194
2209
|
}, M);
|
|
2195
2210
|
}, J({}, a, f)));
|
|
2196
2211
|
return y;
|
|
2197
2212
|
},
|
|
2198
2213
|
$dispose: k
|
|
2199
|
-
},
|
|
2214
|
+
}, C = Tt(process.env.NODE_ENV !== "production" || Se ? J(
|
|
2200
2215
|
{
|
|
2201
2216
|
_hmrPayload: m,
|
|
2202
2217
|
_customProperties: de(/* @__PURE__ */ new Set())
|
|
2203
2218
|
// devtools custom properties
|
|
2204
2219
|
},
|
|
2205
|
-
|
|
2220
|
+
R
|
|
2206
2221
|
// must be added later
|
|
2207
2222
|
// setupStore
|
|
2208
|
-
) :
|
|
2209
|
-
n._s.set(e,
|
|
2210
|
-
const L = (n._a && n._a.runWithContext ||
|
|
2223
|
+
) : R);
|
|
2224
|
+
n._s.set(e, C);
|
|
2225
|
+
const L = (n._a && n._a.runWithContext || h2)(() => n._e.run(() => (i = It()).run(o)));
|
|
2211
2226
|
for (const d in L) {
|
|
2212
2227
|
const f = L[d];
|
|
2213
|
-
if (
|
|
2214
|
-
process.env.NODE_ENV !== "production" && s ? Ve(v.value, d, Ge(L, d)) : r || (
|
|
2228
|
+
if (xe(f) && !Ct(f) || st(f))
|
|
2229
|
+
process.env.NODE_ENV !== "production" && s ? 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);
|
|
2215
2230
|
else if (typeof f == "function") {
|
|
2216
2231
|
const y = process.env.NODE_ENV !== "production" && s ? f : D(d, f);
|
|
2217
2232
|
L[d] = y, process.env.NODE_ENV !== "production" && (m.actions[d] = f), l.actions[d] = f;
|
|
@@ -2221,7 +2236,7 @@ function et(e, o, t = {}, n, s, r) {
|
|
|
2221
2236
|
) : f, Be && (L._getters || // @ts-expect-error: same
|
|
2222
2237
|
(L._getters = de([]))).push(d));
|
|
2223
2238
|
}
|
|
2224
|
-
if (J(
|
|
2239
|
+
if (J(C, L), J(K(C), L), Object.defineProperty(C, "$state", {
|
|
2225
2240
|
get: () => process.env.NODE_ENV !== "production" && s ? v.value : n.state.value[e],
|
|
2226
2241
|
set: (d) => {
|
|
2227
2242
|
if (process.env.NODE_ENV !== "production" && s)
|
|
@@ -2230,34 +2245,34 @@ function et(e, o, t = {}, n, s, r) {
|
|
|
2230
2245
|
J(f, d);
|
|
2231
2246
|
});
|
|
2232
2247
|
}
|
|
2233
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
2234
|
-
|
|
2235
|
-
if (f in
|
|
2236
|
-
const y = d.$state[f], O =
|
|
2248
|
+
}), process.env.NODE_ENV !== "production" && (C._hotUpdate = de((d) => {
|
|
2249
|
+
C._hotUpdating = !0, d._hmrPayload.state.forEach((f) => {
|
|
2250
|
+
if (f in C.$state) {
|
|
2251
|
+
const y = d.$state[f], O = C.$state[f];
|
|
2237
2252
|
typeof y == "object" && fe(y) && fe(O) ? ln(y, O) : d.$state[f] = O;
|
|
2238
2253
|
}
|
|
2239
|
-
Ve(
|
|
2240
|
-
}), Object.keys(
|
|
2241
|
-
f in d.$state || Ke(
|
|
2254
|
+
Ve(C, f, Ge(d.$state, f));
|
|
2255
|
+
}), Object.keys(C.$state).forEach((f) => {
|
|
2256
|
+
f in d.$state || Ke(C, f);
|
|
2242
2257
|
}), u = !1, c = !1, n.state.value[e] = Ge(d._hmrPayload, "hotState"), c = !0, Q().then(() => {
|
|
2243
2258
|
u = !0;
|
|
2244
2259
|
});
|
|
2245
2260
|
for (const f in d._hmrPayload.actions) {
|
|
2246
2261
|
const y = d[f];
|
|
2247
|
-
Ve(
|
|
2262
|
+
Ve(C, f, D(f, y));
|
|
2248
2263
|
}
|
|
2249
2264
|
for (const f in d._hmrPayload.getters) {
|
|
2250
2265
|
const y = d._hmrPayload.getters[f], O = r ? (
|
|
2251
2266
|
// special handling of options api
|
|
2252
|
-
S(() => (Te(n), y.call(
|
|
2267
|
+
S(() => (Te(n), y.call(C, C)))
|
|
2253
2268
|
) : y;
|
|
2254
|
-
Ve(
|
|
2269
|
+
Ve(C, f, O);
|
|
2255
2270
|
}
|
|
2256
|
-
Object.keys(
|
|
2257
|
-
f in d._hmrPayload.getters || Ke(
|
|
2258
|
-
}), Object.keys(
|
|
2259
|
-
f in d._hmrPayload.actions || Ke(
|
|
2260
|
-
}),
|
|
2271
|
+
Object.keys(C._hmrPayload.getters).forEach((f) => {
|
|
2272
|
+
f in d._hmrPayload.getters || Ke(C, f);
|
|
2273
|
+
}), Object.keys(C._hmrPayload.actions).forEach((f) => {
|
|
2274
|
+
f in d._hmrPayload.actions || Ke(C, f);
|
|
2275
|
+
}), C._hmrPayload = d._hmrPayload, C._getters = d._getters, C._hotUpdating = !1;
|
|
2261
2276
|
})), Se) {
|
|
2262
2277
|
const d = {
|
|
2263
2278
|
writable: !0,
|
|
@@ -2266,28 +2281,28 @@ function et(e, o, t = {}, n, s, r) {
|
|
|
2266
2281
|
enumerable: !1
|
|
2267
2282
|
};
|
|
2268
2283
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((f) => {
|
|
2269
|
-
Object.defineProperty(
|
|
2284
|
+
Object.defineProperty(C, f, J({ value: C[f] }, d));
|
|
2270
2285
|
});
|
|
2271
2286
|
}
|
|
2272
2287
|
return n._p.forEach((d) => {
|
|
2273
2288
|
if (Se) {
|
|
2274
2289
|
const f = i.run(() => d({
|
|
2275
|
-
store:
|
|
2290
|
+
store: C,
|
|
2276
2291
|
app: n._a,
|
|
2277
2292
|
pinia: n,
|
|
2278
2293
|
options: l
|
|
2279
2294
|
}));
|
|
2280
|
-
Object.keys(f || {}).forEach((y) =>
|
|
2295
|
+
Object.keys(f || {}).forEach((y) => C._customProperties.add(y)), J(C, f);
|
|
2281
2296
|
} else
|
|
2282
|
-
J(
|
|
2283
|
-
store:
|
|
2297
|
+
J(C, i.run(() => d({
|
|
2298
|
+
store: C,
|
|
2284
2299
|
app: n._a,
|
|
2285
2300
|
pinia: n,
|
|
2286
2301
|
options: l
|
|
2287
2302
|
})));
|
|
2288
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
2303
|
+
}), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
2289
2304
|
state: () => new MyClass()
|
|
2290
|
-
Found in store "${
|
|
2305
|
+
Found in store "${C.$id}".`), _ && r && t.hydrate && t.hydrate(C.$state, _), u = !0, c = !0, C;
|
|
2291
2306
|
}
|
|
2292
2307
|
function He(e, o, t) {
|
|
2293
2308
|
let n, s;
|
|
@@ -2307,15 +2322,15 @@ This will fail in production.`);
|
|
|
2307
2322
|
l = we, l._s.has(n) || (r ? et(n, o, s, l) : yt(n, s, l), process.env.NODE_ENV !== "production" && (i._pinia = l));
|
|
2308
2323
|
const c = l._s.get(n);
|
|
2309
2324
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
2310
|
-
const p = "__hot:" + n,
|
|
2311
|
-
a._hotUpdate(
|
|
2325
|
+
const p = "__hot:" + n, g = r ? et(p, o, s, l, !0) : yt(p, J({}, s), l, !0);
|
|
2326
|
+
a._hotUpdate(g), delete l.state.value[p], l._s.delete(p);
|
|
2312
2327
|
}
|
|
2313
2328
|
if (process.env.NODE_ENV !== "production" && Be) {
|
|
2314
2329
|
const p = Lt();
|
|
2315
2330
|
if (p && p.proxy && // avoid adding stores that are just built for hot module replacement
|
|
2316
2331
|
!a) {
|
|
2317
|
-
const
|
|
2318
|
-
|
|
2332
|
+
const g = p.proxy, x = "_pStores" in g ? g._pStores : g._pStores = {};
|
|
2333
|
+
x[n] = c;
|
|
2319
2334
|
}
|
|
2320
2335
|
}
|
|
2321
2336
|
return c;
|
|
@@ -2340,27 +2355,27 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
|
|
|
2340
2355
|
)), l = (a) => {
|
|
2341
2356
|
a.target.value = "", s.value = "", r.value && r.value.$el.click();
|
|
2342
2357
|
};
|
|
2343
|
-
return (a, u) => (w(), ee(V(
|
|
2358
|
+
return (a, u) => (w(), ee(V(No), {
|
|
2344
2359
|
modelValue: n.value,
|
|
2345
2360
|
"onUpdate:modelValue": u[3] || (u[3] = (c) => n.value = c),
|
|
2346
2361
|
disabled: V(o).loading,
|
|
2347
2362
|
as: "div",
|
|
2348
2363
|
class: "relative mt-1"
|
|
2349
2364
|
}, {
|
|
2350
|
-
default:
|
|
2351
|
-
H(V(
|
|
2365
|
+
default: Re(() => [
|
|
2366
|
+
H(V(Ao), {
|
|
2352
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",
|
|
2353
2368
|
onChange: u[0] || (u[0] = (c) => s.value = c.target.value),
|
|
2354
2369
|
displayValue: (c) => e.languages[c],
|
|
2355
2370
|
onFocus: u[1] || (u[1] = (c) => l(c))
|
|
2356
2371
|
}, null, 8, ["displayValue"]),
|
|
2357
|
-
H(V(
|
|
2372
|
+
H(V(Do), {
|
|
2358
2373
|
ref_key: "btnSelect",
|
|
2359
2374
|
ref: r,
|
|
2360
2375
|
class: "absolute inset-y-0 right-0 flex items-center pr-2"
|
|
2361
2376
|
}, {
|
|
2362
|
-
default:
|
|
2363
|
-
H(V(
|
|
2377
|
+
default: Re(() => [
|
|
2378
|
+
H(V(Ho), {
|
|
2364
2379
|
class: "h-5 w-5 text-gray-400",
|
|
2365
2380
|
"aria-hidden": "true",
|
|
2366
2381
|
onClick: u[2] || (u[2] = (c) => l(c))
|
|
@@ -2368,21 +2383,21 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
|
|
|
2368
2383
|
]),
|
|
2369
2384
|
_: 1
|
|
2370
2385
|
}, 512),
|
|
2371
|
-
H(V(
|
|
2372
|
-
default:
|
|
2373
|
-
(w(!0),
|
|
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, le(i.value, ([c, p]) => (w(), ee(V(jo), {
|
|
2374
2389
|
key: c,
|
|
2375
2390
|
value: c
|
|
2376
2391
|
}, {
|
|
2377
|
-
default:
|
|
2378
|
-
|
|
2379
|
-
class:
|
|
2392
|
+
default: Re(({ active: g, selected: x }) => [
|
|
2393
|
+
h("li", {
|
|
2394
|
+
class: _e([
|
|
2380
2395
|
"relative cursor-default select-none py-2 pl-3 pr-9",
|
|
2381
|
-
|
|
2396
|
+
g ? "bg-[#3B5695] text-white" : "text-textCustom"
|
|
2382
2397
|
])
|
|
2383
2398
|
}, [
|
|
2384
|
-
|
|
2385
|
-
class:
|
|
2399
|
+
h("span", {
|
|
2400
|
+
class: _e(["block truncate", x && "font-semibold"])
|
|
2386
2401
|
}, te(p), 3)
|
|
2387
2402
|
], 2)
|
|
2388
2403
|
]),
|
|
@@ -2395,19 +2410,19 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
|
|
|
2395
2410
|
_: 1
|
|
2396
2411
|
}, 8, ["modelValue", "disabled"]));
|
|
2397
2412
|
}
|
|
2398
|
-
}, 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",
|
|
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", {
|
|
2399
2414
|
src: an,
|
|
2400
2415
|
alt: "swap",
|
|
2401
2416
|
class: "w-4"
|
|
2402
|
-
}, null, -1),
|
|
2403
|
-
|
|
2404
|
-
],
|
|
2417
|
+
}, null, -1), _2 = [
|
|
2418
|
+
x2
|
|
2419
|
+
], C2 = ["disabled"], y2 = /* @__PURE__ */ h("img", {
|
|
2405
2420
|
src: an,
|
|
2406
2421
|
alt: "swap",
|
|
2407
2422
|
class: "w-4"
|
|
2408
|
-
}, null, -1),
|
|
2409
|
-
|
|
2410
|
-
],
|
|
2423
|
+
}, null, -1), w2 = [
|
|
2424
|
+
y2
|
|
2425
|
+
], S2 = {
|
|
2411
2426
|
__name: "SwapBtn",
|
|
2412
2427
|
props: {
|
|
2413
2428
|
isBidirect: {
|
|
@@ -2418,14 +2433,14 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
|
|
|
2418
2433
|
emits: ["swap"],
|
|
2419
2434
|
setup(e, { emit: o }) {
|
|
2420
2435
|
const t = ze(), n = o;
|
|
2421
|
-
return (s, r) => e.isBidirect ? (w(),
|
|
2436
|
+
return (s, r) => e.isBidirect ? (w(), T("button", {
|
|
2422
2437
|
key: 1,
|
|
2423
2438
|
onClick: r[0] || (r[0] = (i) => n("swap")),
|
|
2424
2439
|
disabled: V(t).loading
|
|
2425
|
-
},
|
|
2440
|
+
}, w2, 8, C2)) : (w(), T("button", {
|
|
2426
2441
|
key: 0,
|
|
2427
2442
|
disabled: V(t).loading
|
|
2428
|
-
},
|
|
2443
|
+
}, _2, 8, b2));
|
|
2429
2444
|
}
|
|
2430
2445
|
}, Ue = He("language", () => {
|
|
2431
2446
|
const e = E("auto"), o = E("en"), t = E({
|
|
@@ -2444,24 +2459,24 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
|
|
|
2444
2459
|
return t.value.src[a] || t.value.target[a];
|
|
2445
2460
|
}
|
|
2446
2461
|
return { languages: t, src: e, target: o, srcLabel: n, targetLabel: s, init: r, swap: i, getLabel: l };
|
|
2447
|
-
}),
|
|
2462
|
+
}), E2 = {
|
|
2448
2463
|
key: 0,
|
|
2449
2464
|
class: "flex"
|
|
2450
|
-
},
|
|
2465
|
+
}, O2 = {
|
|
2451
2466
|
__name: "Selects",
|
|
2452
2467
|
setup(e) {
|
|
2453
2468
|
const o = Ue();
|
|
2454
2469
|
function t() {
|
|
2455
2470
|
o.swap();
|
|
2456
2471
|
}
|
|
2457
|
-
return (n, s) => V(o).languages ? (w(),
|
|
2472
|
+
return (n, s) => V(o).languages ? (w(), T("div", E2, [
|
|
2458
2473
|
H(wt, {
|
|
2459
2474
|
modelValue: V(o).src,
|
|
2460
2475
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => V(o).src = r),
|
|
2461
2476
|
languages: V(o).languages.src,
|
|
2462
2477
|
class: "grow"
|
|
2463
2478
|
}, null, 8, ["modelValue", "languages"]),
|
|
2464
|
-
H(
|
|
2479
|
+
H(S2, {
|
|
2465
2480
|
isBidirect: V(o).src !== "auto",
|
|
2466
2481
|
class: "grow-0 mx-3",
|
|
2467
2482
|
onSwap: t
|
|
@@ -2474,7 +2489,7 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
|
|
|
2474
2489
|
}, null, 8, ["modelValue", "languages"])
|
|
2475
2490
|
])) : X("", !0);
|
|
2476
2491
|
}
|
|
2477
|
-
},
|
|
2492
|
+
}, $2 = {
|
|
2478
2493
|
INPUT_MAX_LENGTH: 5e3,
|
|
2479
2494
|
INPUT_DEBOUNCE: 500
|
|
2480
2495
|
}, Ze = (e, o) => {
|
|
@@ -2482,11 +2497,11 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
|
|
|
2482
2497
|
for (const [n, s] of o)
|
|
2483
2498
|
t[n] = s;
|
|
2484
2499
|
return t;
|
|
2485
|
-
},
|
|
2486
|
-
function
|
|
2487
|
-
return w(),
|
|
2500
|
+
}, T2 = {}, I2 = { class: "mr-2 loading loading-dots loading-xs" };
|
|
2501
|
+
function L2(e, o) {
|
|
2502
|
+
return w(), T("span", I2);
|
|
2488
2503
|
}
|
|
2489
|
-
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", () => {
|
|
2490
2505
|
const e = E({
|
|
2491
2506
|
src: null,
|
|
2492
2507
|
target: null
|
|
@@ -2510,17 +2525,17 @@ const $s = /* @__PURE__ */ Ze(Ss, [["render", Os]]), Ts = "data:image/svg+xml,%3
|
|
|
2510
2525
|
get: t,
|
|
2511
2526
|
reset: n
|
|
2512
2527
|
};
|
|
2513
|
-
}),
|
|
2514
|
-
src:
|
|
2528
|
+
}), k2 = /* @__PURE__ */ h("img", {
|
|
2529
|
+
src: P2,
|
|
2515
2530
|
alt: "Play"
|
|
2516
|
-
}, null, -1),
|
|
2517
|
-
|
|
2518
|
-
],
|
|
2519
|
-
src:
|
|
2531
|
+
}, null, -1), M2 = [
|
|
2532
|
+
k2
|
|
2533
|
+
], N2 = /* @__PURE__ */ h("img", {
|
|
2534
|
+
src: V2,
|
|
2520
2535
|
alt: "Stop"
|
|
2521
|
-
}, null, -1),
|
|
2522
|
-
|
|
2523
|
-
],
|
|
2536
|
+
}, null, -1), D2 = [
|
|
2537
|
+
N2
|
|
2538
|
+
], A2 = {
|
|
2524
2539
|
__name: "SpeakBtn",
|
|
2525
2540
|
props: {
|
|
2526
2541
|
type: {
|
|
@@ -2561,51 +2576,51 @@ const $s = /* @__PURE__ */ Ze(Ss, [["render", Os]]), Ts = "data:image/svg+xml,%3
|
|
|
2561
2576
|
}
|
|
2562
2577
|
return l.onended = () => {
|
|
2563
2578
|
i.value = !1;
|
|
2564
|
-
}, (p,
|
|
2579
|
+
}, (p, g) => i.value ? (w(), T("button", {
|
|
2565
2580
|
key: 1,
|
|
2566
2581
|
class: "btn btn-xs btn-ghost btn-circle",
|
|
2567
2582
|
onClick: dt(c, ["prevent"])
|
|
2568
|
-
},
|
|
2583
|
+
}, D2)) : (w(), T("button", {
|
|
2569
2584
|
key: 0,
|
|
2570
2585
|
class: "btn btn-xs btn-ghost btn-circle",
|
|
2571
2586
|
onClick: dt(a, ["prevent"])
|
|
2572
|
-
},
|
|
2587
|
+
}, M2));
|
|
2573
2588
|
}
|
|
2574
|
-
},
|
|
2575
|
-
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,
|
|
2576
2591
|
alt: "Clear",
|
|
2577
2592
|
class: "w-4"
|
|
2578
|
-
}, null, -1),
|
|
2579
|
-
|
|
2593
|
+
}, null, -1), z2 = [
|
|
2594
|
+
H2
|
|
2580
2595
|
];
|
|
2581
|
-
function
|
|
2582
|
-
return w(),
|
|
2596
|
+
function U2(e, o) {
|
|
2597
|
+
return w(), T("button", B2, z2);
|
|
2583
2598
|
}
|
|
2584
|
-
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 = {
|
|
2585
2600
|
key: 0,
|
|
2586
|
-
src:
|
|
2601
|
+
src: W2,
|
|
2587
2602
|
alt: "Clear",
|
|
2588
2603
|
class: "w-4"
|
|
2589
|
-
},
|
|
2604
|
+
}, K2 = {
|
|
2590
2605
|
key: 1,
|
|
2591
|
-
src:
|
|
2606
|
+
src: G2,
|
|
2592
2607
|
alt: "Clear",
|
|
2593
2608
|
class: "w-4"
|
|
2594
|
-
},
|
|
2609
|
+
}, Y2 = {
|
|
2595
2610
|
__name: "FavoriteBtn",
|
|
2596
2611
|
props: {
|
|
2597
2612
|
isFilled: Boolean
|
|
2598
2613
|
},
|
|
2599
2614
|
setup(e) {
|
|
2600
2615
|
const o = e;
|
|
2601
|
-
return (t, n) => (w(),
|
|
2602
|
-
o.isFilled ? (w(),
|
|
2616
|
+
return (t, n) => (w(), T("button", q2, [
|
|
2617
|
+
o.isFilled ? (w(), T("img", J2)) : (w(), T("img", K2))
|
|
2603
2618
|
]));
|
|
2604
2619
|
}
|
|
2605
|
-
},
|
|
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" }, es = {
|
|
2606
2621
|
key: 0,
|
|
2607
2622
|
class: "italic"
|
|
2608
|
-
},
|
|
2623
|
+
}, ts = /* @__PURE__ */ h("div", { class: "flex-grow" }, null, -1), cn = {
|
|
2609
2624
|
__name: "TranslationBtnGroup",
|
|
2610
2625
|
props: {
|
|
2611
2626
|
loading: {
|
|
@@ -2649,23 +2664,23 @@ const Bs = /* @__PURE__ */ Ze(Ns, [["render", js]]), Hs = "data:image/svg+xml,%3
|
|
|
2649
2664
|
emits: ["clear", "favorite", "loadTTS"],
|
|
2650
2665
|
setup(e, { emit: o }) {
|
|
2651
2666
|
const t = e, n = o;
|
|
2652
|
-
return (s, r) => (w(),
|
|
2653
|
-
t.src ? (w(), ee(
|
|
2667
|
+
return (s, r) => (w(), T("div", Q2, [
|
|
2668
|
+
t.src ? (w(), ee(A2, {
|
|
2654
2669
|
key: 0,
|
|
2655
2670
|
type: t.type,
|
|
2656
2671
|
onLoadTTS: r[0] || (r[0] = (i) => n("loadTTS"))
|
|
2657
2672
|
}, null, 8, ["type"])) : X("", !0),
|
|
2658
|
-
|
|
2673
|
+
h("div", X2, [
|
|
2659
2674
|
gn(te(e.srcLabel) + " ", 1),
|
|
2660
|
-
e.phonetic ? (w(),
|
|
2675
|
+
e.phonetic ? (w(), T("span", es, "- [" + te(t.phonetic) + "]", 1)) : X("", !0)
|
|
2661
2676
|
]),
|
|
2662
|
-
|
|
2663
|
-
t.loading ? (w(), ee(
|
|
2664
|
-
t.src && t.isClearBtn ? (w(), ee(
|
|
2677
|
+
ts,
|
|
2678
|
+
t.loading ? (w(), ee(R2, { key: 1 })) : X("", !0),
|
|
2679
|
+
t.src && t.isClearBtn ? (w(), ee(Z2, {
|
|
2665
2680
|
key: 2,
|
|
2666
2681
|
onClick: r[1] || (r[1] = (i) => n("clear"))
|
|
2667
2682
|
})) : X("", !0),
|
|
2668
|
-
t.src && t.isFavoriteBtn ? (w(), ee(
|
|
2683
|
+
t.src && t.isFavoriteBtn ? (w(), ee(Y2, {
|
|
2669
2684
|
key: 3,
|
|
2670
2685
|
isFilled: t.isFavorite,
|
|
2671
2686
|
onClick: r[2] || (r[2] = (i) => n("favorite"))
|
|
@@ -2679,11 +2694,11 @@ const Bs = /* @__PURE__ */ Ze(Ns, [["render", js]]), Hs = "data:image/svg+xml,%3
|
|
|
2679
2694
|
}), s = E(null), r = E([]), i = E([]), l = E([]), a = E([]), u = E({
|
|
2680
2695
|
src: null,
|
|
2681
2696
|
target: null
|
|
2682
|
-
}), c = Ue(), p = S(() => c.getLabel(e.value)),
|
|
2683
|
-
function
|
|
2697
|
+
}), c = Ue(), p = S(() => c.getLabel(e.value)), g = S(() => c.getLabel(o.value));
|
|
2698
|
+
function x(v) {
|
|
2684
2699
|
e.value = v.src, o.value = v.target, t.value = v.text, n.value = v.phonetic, s.value = v.result, r.value = v.dictionary, i.value = v.definitions, l.value = v.synonyms, a.value = v.examples, u.value = v.tts;
|
|
2685
2700
|
}
|
|
2686
|
-
function
|
|
2701
|
+
function _() {
|
|
2687
2702
|
e.value = null, o.value = null, t.value = null, n.value = {
|
|
2688
2703
|
src: null,
|
|
2689
2704
|
target: null
|
|
@@ -2696,7 +2711,7 @@ const Bs = /* @__PURE__ */ Ze(Ns, [["render", js]]), Hs = "data:image/svg+xml,%3
|
|
|
2696
2711
|
src: e,
|
|
2697
2712
|
srcLabel: p,
|
|
2698
2713
|
target: o,
|
|
2699
|
-
targetLabel:
|
|
2714
|
+
targetLabel: g,
|
|
2700
2715
|
phonetic: n,
|
|
2701
2716
|
text: t,
|
|
2702
2717
|
result: s,
|
|
@@ -2705,21 +2720,21 @@ const Bs = /* @__PURE__ */ Ze(Ns, [["render", js]]), Hs = "data:image/svg+xml,%3
|
|
|
2705
2720
|
synonyms: l,
|
|
2706
2721
|
examples: a,
|
|
2707
2722
|
tts: u,
|
|
2708
|
-
init:
|
|
2709
|
-
reset:
|
|
2723
|
+
init: x,
|
|
2724
|
+
reset: _
|
|
2710
2725
|
};
|
|
2711
2726
|
});
|
|
2712
|
-
function
|
|
2713
|
-
return
|
|
2727
|
+
function ns(e) {
|
|
2728
|
+
return Rt() ? (tt(e), !0) : !1;
|
|
2714
2729
|
}
|
|
2715
2730
|
function Fe(e) {
|
|
2716
2731
|
return typeof e == "function" ? e() : V(e);
|
|
2717
2732
|
}
|
|
2718
|
-
const
|
|
2733
|
+
const os = typeof window < "u" && typeof document < "u";
|
|
2719
2734
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2720
2735
|
const St = () => {
|
|
2721
2736
|
};
|
|
2722
|
-
function
|
|
2737
|
+
function ss(e, o) {
|
|
2723
2738
|
function t(...n) {
|
|
2724
2739
|
return new Promise((s, r) => {
|
|
2725
2740
|
Promise.resolve(e(() => o.apply(this, n), { fn: o, thisArg: this, args: n })).then(s).catch(r);
|
|
@@ -2727,7 +2742,7 @@ function el(e, o) {
|
|
|
2727
2742
|
}
|
|
2728
2743
|
return t;
|
|
2729
2744
|
}
|
|
2730
|
-
function
|
|
2745
|
+
function ls(e, o = {}) {
|
|
2731
2746
|
let t, n, s = St;
|
|
2732
2747
|
const r = (l) => {
|
|
2733
2748
|
clearTimeout(l), s(), s = St;
|
|
@@ -2743,9 +2758,9 @@ function tl(e, o = {}) {
|
|
|
2743
2758
|
});
|
|
2744
2759
|
};
|
|
2745
2760
|
}
|
|
2746
|
-
function
|
|
2747
|
-
return
|
|
2748
|
-
|
|
2761
|
+
function rs(e, o = 200, t = {}) {
|
|
2762
|
+
return ss(
|
|
2763
|
+
ls(o, t),
|
|
2749
2764
|
e
|
|
2750
2765
|
);
|
|
2751
2766
|
}
|
|
@@ -2754,36 +2769,36 @@ function Et(e) {
|
|
|
2754
2769
|
const t = Fe(e);
|
|
2755
2770
|
return (o = t == null ? void 0 : t.$el) != null ? o : t;
|
|
2756
2771
|
}
|
|
2757
|
-
const
|
|
2758
|
-
function
|
|
2772
|
+
const is = os ? window : void 0;
|
|
2773
|
+
function as() {
|
|
2759
2774
|
const e = E(!1), o = Lt();
|
|
2760
2775
|
return o && Ce(() => {
|
|
2761
2776
|
e.value = !0;
|
|
2762
2777
|
}, o), e;
|
|
2763
2778
|
}
|
|
2764
|
-
function
|
|
2765
|
-
const o =
|
|
2779
|
+
function us(e) {
|
|
2780
|
+
const o = as();
|
|
2766
2781
|
return S(() => (o.value, !!e()));
|
|
2767
2782
|
}
|
|
2768
|
-
function
|
|
2769
|
-
const { window: n =
|
|
2783
|
+
function cs(e, o, t = {}) {
|
|
2784
|
+
const { window: n = is, ...s } = t;
|
|
2770
2785
|
let r;
|
|
2771
|
-
const i =
|
|
2786
|
+
const i = us(() => n && "ResizeObserver" in n), l = () => {
|
|
2772
2787
|
r && (r.disconnect(), r = void 0);
|
|
2773
2788
|
}, a = S(() => Array.isArray(e) ? e.map((p) => Et(p)) : [Et(e)]), u = F(
|
|
2774
2789
|
a,
|
|
2775
2790
|
(p) => {
|
|
2776
2791
|
if (l(), i.value && n) {
|
|
2777
2792
|
r = new ResizeObserver(o);
|
|
2778
|
-
for (const
|
|
2779
|
-
|
|
2793
|
+
for (const g of p)
|
|
2794
|
+
g && r.observe(g, s);
|
|
2780
2795
|
}
|
|
2781
2796
|
},
|
|
2782
2797
|
{ immediate: !0, flush: "post" }
|
|
2783
2798
|
), c = () => {
|
|
2784
2799
|
l(), u();
|
|
2785
2800
|
};
|
|
2786
|
-
return
|
|
2801
|
+
return ns(c), {
|
|
2787
2802
|
isSupported: i,
|
|
2788
2803
|
stop: c
|
|
2789
2804
|
};
|
|
@@ -2801,13 +2816,13 @@ function dn(e) {
|
|
|
2801
2816
|
return F([n, t], () => Q(i), { immediate: !0 }), F(r, () => {
|
|
2802
2817
|
var l;
|
|
2803
2818
|
return (l = e == null ? void 0 : e.onResize) == null ? void 0 : l.call(e);
|
|
2804
|
-
}),
|
|
2819
|
+
}), cs(t, () => i()), e != null && e.watch && F(e.watch, i, { immediate: !0, deep: !0 }), {
|
|
2805
2820
|
textarea: t,
|
|
2806
2821
|
input: n,
|
|
2807
2822
|
triggerResize: i
|
|
2808
2823
|
};
|
|
2809
2824
|
}
|
|
2810
|
-
const
|
|
2825
|
+
const ds = {
|
|
2811
2826
|
__name: "TranslationInput",
|
|
2812
2827
|
props: {
|
|
2813
2828
|
text: {
|
|
@@ -2818,48 +2833,48 @@ const il = {
|
|
|
2818
2833
|
emits: ["change", "clear", "loadTTS"],
|
|
2819
2834
|
setup(e, { emit: o }) {
|
|
2820
2835
|
const t = he(), n = e, s = E(""), r = S(() => t.src), i = S(() => t.srcLabel), l = S(() => {
|
|
2821
|
-
var
|
|
2822
|
-
return (
|
|
2823
|
-
}), { textarea: a } = dn({ input: s, styleProp: "minHeight" }), u = o, c =
|
|
2836
|
+
var _;
|
|
2837
|
+
return (_ = t.phonetic) == null ? void 0 : _.src;
|
|
2838
|
+
}), { textarea: a } = dn({ input: s, styleProp: "minHeight" }), u = o, c = rs(() => {
|
|
2824
2839
|
u("change", s.value);
|
|
2825
|
-
},
|
|
2840
|
+
}, $2.INPUT_DEBOUNCE);
|
|
2826
2841
|
function p() {
|
|
2827
2842
|
if (!s.value) {
|
|
2828
|
-
|
|
2843
|
+
g();
|
|
2829
2844
|
return;
|
|
2830
2845
|
}
|
|
2831
2846
|
c();
|
|
2832
2847
|
}
|
|
2833
|
-
function
|
|
2848
|
+
function g() {
|
|
2834
2849
|
u("clear"), s.value = "", a.value.focus();
|
|
2835
2850
|
}
|
|
2836
|
-
async function
|
|
2851
|
+
async function x() {
|
|
2837
2852
|
await Q(), a.value.select();
|
|
2838
2853
|
}
|
|
2839
2854
|
return F(
|
|
2840
2855
|
() => n.text,
|
|
2841
|
-
(
|
|
2842
|
-
s.value !==
|
|
2856
|
+
(_) => {
|
|
2857
|
+
s.value !== _ && x(), s.value = _;
|
|
2843
2858
|
}
|
|
2844
|
-
), (
|
|
2859
|
+
), (_, v) => (w(), T(Z, null, [
|
|
2845
2860
|
H(cn, {
|
|
2846
2861
|
src: r.value,
|
|
2847
2862
|
srcLabel: i.value,
|
|
2848
2863
|
type: "src",
|
|
2849
2864
|
phonetic: l.value,
|
|
2850
2865
|
isClearBtn: !0,
|
|
2851
|
-
onClear:
|
|
2852
|
-
onLoadTTS: v[0] || (v[0] = (
|
|
2866
|
+
onClear: g,
|
|
2867
|
+
onLoadTTS: v[0] || (v[0] = ($) => u("loadTTS"))
|
|
2853
2868
|
}, null, 8, ["src", "srcLabel", "phonetic"]),
|
|
2854
|
-
|
|
2869
|
+
Pt(h("textarea", {
|
|
2855
2870
|
ref_key: "textarea",
|
|
2856
2871
|
ref: a,
|
|
2857
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
2872
|
+
"onUpdate:modelValue": v[1] || (v[1] = ($) => s.value = $),
|
|
2858
2873
|
class: "w-full border rounded-b-md border-t-0 outline-none outline-0 px-3 pl-5 bg-white text-gray-800 font-semibold resize-none pb-3 overflow-x-hidden overflow-y-hidden",
|
|
2859
2874
|
autofocus: "",
|
|
2860
2875
|
rows: "2",
|
|
2861
2876
|
onInput: p,
|
|
2862
|
-
onFocus:
|
|
2877
|
+
onFocus: x
|
|
2863
2878
|
}, null, 544), [
|
|
2864
2879
|
[
|
|
2865
2880
|
Vt,
|
|
@@ -2870,63 +2885,64 @@ const il = {
|
|
|
2870
2885
|
])
|
|
2871
2886
|
], 64));
|
|
2872
2887
|
}
|
|
2873
|
-
},
|
|
2888
|
+
}, fs = /* @__PURE__ */ Ze(ds, [["__scopeId", "data-v-90bf3e0d"]]), ps = (e) => (bn("data-v-f47b8efe"), e = e(), xn(), e), vs = { class: "flex flex-col" }, hs = /* @__PURE__ */ ps(() => /* @__PURE__ */ h("div", { class: "w-full flex align-item-center justify-end mt-2" }, null, -1)), ms = {
|
|
2874
2889
|
__name: "TranslationResult",
|
|
2875
2890
|
props: {
|
|
2876
|
-
isFavoriteFeatureEnabled: Boolean
|
|
2891
|
+
isFavoriteFeatureEnabled: Boolean,
|
|
2892
|
+
isFavorite: Boolean
|
|
2877
2893
|
},
|
|
2878
|
-
emits: ["loadTTS"],
|
|
2894
|
+
emits: ["loadTTS", "favorite"],
|
|
2879
2895
|
setup(e, { emit: o }) {
|
|
2880
|
-
const t = he(), n =
|
|
2881
|
-
var
|
|
2882
|
-
return (
|
|
2883
|
-
}),
|
|
2884
|
-
return (
|
|
2896
|
+
const t = he(), n = S(() => t.result), s = S(() => t.target), r = S(() => t.targetLabel), i = S(() => {
|
|
2897
|
+
var g;
|
|
2898
|
+
return (g = t.phonetic) == null ? void 0 : g.target;
|
|
2899
|
+
}), l = e, a = ze(), { textarea: u, input: c } = dn({ input: n, styleProp: "minHeight" }), p = o;
|
|
2900
|
+
return (g, x) => (w(), T(Z, null, [
|
|
2885
2901
|
H(cn, {
|
|
2886
|
-
loading: V(
|
|
2887
|
-
src:
|
|
2888
|
-
srcLabel:
|
|
2902
|
+
loading: V(a).loading,
|
|
2903
|
+
src: s.value,
|
|
2904
|
+
srcLabel: r.value,
|
|
2889
2905
|
type: "target",
|
|
2890
|
-
isFavoriteBtn:
|
|
2891
|
-
isFavorite:
|
|
2892
|
-
phonetic:
|
|
2893
|
-
onFavorite:
|
|
2894
|
-
onLoadTTS:
|
|
2906
|
+
isFavoriteBtn: l.isFavoriteFeatureEnabled,
|
|
2907
|
+
isFavorite: e.isFavorite,
|
|
2908
|
+
phonetic: i.value,
|
|
2909
|
+
onFavorite: x[0] || (x[0] = (_) => p("favorite")),
|
|
2910
|
+
onLoadTTS: x[1] || (x[1] = (_) => p("loadTTS"))
|
|
2895
2911
|
}, null, 8, ["loading", "src", "srcLabel", "isFavoriteBtn", "isFavorite", "phonetic"]),
|
|
2896
|
-
|
|
2897
|
-
|
|
2912
|
+
h("div", vs, [
|
|
2913
|
+
Pt(h("textarea", {
|
|
2898
2914
|
ref_key: "textarea",
|
|
2899
|
-
ref:
|
|
2900
|
-
"onUpdate:modelValue":
|
|
2915
|
+
ref: u,
|
|
2916
|
+
"onUpdate:modelValue": x[2] || (x[2] = (_) => xe(c) ? c.value = _ : null),
|
|
2901
2917
|
class: "w-full border rounded-b-md border-t-0 outline-none outline-0 px-3 pl-5 bg-white text-gray-800 font-semibold resize-none pb-3 overflow-x-hidden overflow-y-hidden",
|
|
2902
2918
|
readonly: "",
|
|
2903
2919
|
rows: "2",
|
|
2904
2920
|
spellcheck: "false"
|
|
2905
2921
|
}, null, 512), [
|
|
2906
|
-
[Vt, V(
|
|
2922
|
+
[Vt, V(c)]
|
|
2907
2923
|
]),
|
|
2908
|
-
|
|
2924
|
+
hs
|
|
2909
2925
|
])
|
|
2910
2926
|
], 64));
|
|
2911
2927
|
}
|
|
2912
|
-
},
|
|
2928
|
+
}, gs = /* @__PURE__ */ Ze(ms, [["__scopeId", "data-v-f47b8efe"]]), bs = { class: "btn btn-sm btn-circle btn-ghost" }, We = {
|
|
2913
2929
|
__name: "ToggleBtn",
|
|
2914
2930
|
props: {
|
|
2915
2931
|
isExpanded: Boolean
|
|
2916
2932
|
},
|
|
2917
2933
|
setup(e) {
|
|
2918
2934
|
const o = e;
|
|
2919
|
-
return (t, n) => (w(),
|
|
2920
|
-
o.isExpanded ? (w(), ee(V(
|
|
2935
|
+
return (t, n) => (w(), T("button", bs, [
|
|
2936
|
+
o.isExpanded ? (w(), ee(V(zo), {
|
|
2921
2937
|
key: 0,
|
|
2922
2938
|
class: "w-7 text-gray-400"
|
|
2923
|
-
})) : (w(), ee(V(
|
|
2939
|
+
})) : (w(), ee(V(Bo), {
|
|
2924
2940
|
key: 1,
|
|
2925
2941
|
class: "w-7 text-gray-400"
|
|
2926
2942
|
}))
|
|
2927
2943
|
]));
|
|
2928
2944
|
}
|
|
2929
|
-
},
|
|
2945
|
+
}, xs = { class: "card border bg-white rounded-lg" }, _s = { class: "card-body px-4 py-2 gap-0" }, Cs = { class: "flex justify-between items-center" }, ys = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Translations", -1), ws = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Ss = { class: "list-none list-inside" }, Es = ["onClick"], Os = { class: "text-base font-normal text-gray-800 leading-4" }, $s = {
|
|
2930
2946
|
__name: "Dictionary",
|
|
2931
2947
|
emits: ["translate"],
|
|
2932
2948
|
setup(e, { emit: o }) {
|
|
@@ -2935,33 +2951,33 @@ const il = {
|
|
|
2935
2951
|
}, a = (u) => {
|
|
2936
2952
|
i("translate", u, n.target, n.src), s.src = n.target, s.target = n.src, window.scrollTo(0, 0);
|
|
2937
2953
|
};
|
|
2938
|
-
return (u, c) => (w(),
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2954
|
+
return (u, c) => (w(), T("div", xs, [
|
|
2955
|
+
h("div", _s, [
|
|
2956
|
+
h("div", Cs, [
|
|
2957
|
+
ys,
|
|
2942
2958
|
H(We, {
|
|
2943
2959
|
isExpanded: t.value,
|
|
2944
2960
|
onClick: l
|
|
2945
2961
|
}, null, 8, ["isExpanded"])
|
|
2946
2962
|
]),
|
|
2947
|
-
|
|
2948
|
-
class:
|
|
2963
|
+
h("div", {
|
|
2964
|
+
class: _e(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
|
|
2949
2965
|
}, [
|
|
2950
|
-
|
|
2951
|
-
(w(!0),
|
|
2952
|
-
key: `${p.pos}-${
|
|
2966
|
+
h("ul", null, [
|
|
2967
|
+
(w(!0), T(Z, null, le(r.value, (p, g) => (w(), T("li", {
|
|
2968
|
+
key: `${p.pos}-${g}`,
|
|
2953
2969
|
class: "mb-2"
|
|
2954
2970
|
}, [
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
(w(!0),
|
|
2958
|
-
key: `${
|
|
2971
|
+
h("h5", ws, te(p.pos), 1),
|
|
2972
|
+
h("ul", Ss, [
|
|
2973
|
+
(w(!0), T(Z, null, le(p.items, (x, _) => (w(), T("li", {
|
|
2974
|
+
key: `${x.word}-${_}`
|
|
2959
2975
|
}, [
|
|
2960
|
-
|
|
2976
|
+
h("span", {
|
|
2961
2977
|
class: "p-3 m-0.5 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
|
|
2962
|
-
onClick: (v) => a(
|
|
2963
|
-
}, te(
|
|
2964
|
-
|
|
2978
|
+
onClick: (v) => a(x.word)
|
|
2979
|
+
}, te(x.word), 9, Es),
|
|
2980
|
+
h("small", Os, " - " + te(x.reverse_translation.join(", ")), 1)
|
|
2965
2981
|
]))), 128))
|
|
2966
2982
|
])
|
|
2967
2983
|
]))), 128))
|
|
@@ -2970,41 +2986,41 @@ const il = {
|
|
|
2970
2986
|
])
|
|
2971
2987
|
]));
|
|
2972
2988
|
}
|
|
2973
|
-
},
|
|
2989
|
+
}, Ts = { class: "card border bg-white rounded-lg" }, Is = { class: "card-body px-4 py-2 gap-0" }, Ls = { class: "flex justify-between items-center" }, Rs = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Definitions", -1), Ps = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Vs = { class: "text-base text-textCustom list-decimal list-outside ml-5" }, ks = /* @__PURE__ */ h("br", null, null, -1), Ms = {
|
|
2974
2990
|
key: 0,
|
|
2975
2991
|
class: "italic"
|
|
2976
|
-
},
|
|
2992
|
+
}, Ns = {
|
|
2977
2993
|
__name: "Definition",
|
|
2978
2994
|
setup(e) {
|
|
2979
2995
|
const o = E(!0), t = he(), n = S(() => t.definitions), s = () => {
|
|
2980
2996
|
o.value = !o.value;
|
|
2981
2997
|
};
|
|
2982
|
-
return (r, i) => (w(),
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2998
|
+
return (r, i) => (w(), T("div", Ts, [
|
|
2999
|
+
h("div", Is, [
|
|
3000
|
+
h("div", Ls, [
|
|
3001
|
+
Rs,
|
|
2986
3002
|
H(We, {
|
|
2987
3003
|
isExpanded: o.value,
|
|
2988
3004
|
onClick: s
|
|
2989
3005
|
}, null, 8, ["isExpanded"])
|
|
2990
3006
|
]),
|
|
2991
|
-
|
|
2992
|
-
class:
|
|
3007
|
+
h("div", {
|
|
3008
|
+
class: _e(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
|
|
2993
3009
|
}, [
|
|
2994
|
-
|
|
2995
|
-
(w(!0),
|
|
3010
|
+
h("ul", null, [
|
|
3011
|
+
(w(!0), T(Z, null, le(n.value, (l, a) => (w(), T("li", {
|
|
2996
3012
|
key: `${l.pos}-${a}`,
|
|
2997
3013
|
class: "mb-2"
|
|
2998
3014
|
}, [
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
(w(!0),
|
|
3015
|
+
h("h5", Ps, te(l.pos), 1),
|
|
3016
|
+
h("ul", Vs, [
|
|
3017
|
+
(w(!0), T(Z, null, le(l.items, (u, c) => (w(), T("li", {
|
|
3002
3018
|
key: `${u.gloss}-${c}`,
|
|
3003
3019
|
class: "mb-1"
|
|
3004
3020
|
}, [
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
u.example ? (w(),
|
|
3021
|
+
h("span", null, te(u.gloss), 1),
|
|
3022
|
+
ks,
|
|
3023
|
+
u.example ? (w(), T("small", Ms, '"' + te(u.example) + '"', 1)) : X("", !0)
|
|
3008
3024
|
]))), 128))
|
|
3009
3025
|
])
|
|
3010
3026
|
]))), 128))
|
|
@@ -3013,35 +3029,35 @@ const il = {
|
|
|
3013
3029
|
])
|
|
3014
3030
|
]));
|
|
3015
3031
|
}
|
|
3016
|
-
},
|
|
3032
|
+
}, Ds = { class: "card border bg-white rounded-lg" }, As = { class: "card-body px-4 py-2 gap-0" }, Fs = { class: "flex justify-between items-center" }, js = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Examples", -1), Bs = { class: "text-textCustom list-decimal list-outside ml-7 mt-2" }, Hs = ["innerHTML"], zs = {
|
|
3017
3033
|
__name: "Example",
|
|
3018
3034
|
setup(e) {
|
|
3019
3035
|
const o = E(!0), t = he(), n = S(() => t.examples), s = () => {
|
|
3020
3036
|
o.value = !o.value;
|
|
3021
3037
|
};
|
|
3022
|
-
return (r, i) => (w(),
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3038
|
+
return (r, i) => (w(), T("div", Ds, [
|
|
3039
|
+
h("div", As, [
|
|
3040
|
+
h("div", Fs, [
|
|
3041
|
+
js,
|
|
3026
3042
|
H(We, {
|
|
3027
3043
|
isExpanded: o.value,
|
|
3028
3044
|
onClick: s
|
|
3029
3045
|
}, null, 8, ["isExpanded"])
|
|
3030
3046
|
]),
|
|
3031
|
-
|
|
3032
|
-
class:
|
|
3047
|
+
h("div", {
|
|
3048
|
+
class: _e(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
|
|
3033
3049
|
}, [
|
|
3034
|
-
|
|
3035
|
-
(w(!0),
|
|
3050
|
+
h("ul", Bs, [
|
|
3051
|
+
(w(!0), T(Z, null, le(n.value, (l, a) => (w(), T("li", {
|
|
3036
3052
|
key: `${l.definition_id}-${a}`,
|
|
3037
3053
|
innerHTML: l
|
|
3038
|
-
}, null, 8,
|
|
3054
|
+
}, null, 8, Hs))), 128))
|
|
3039
3055
|
])
|
|
3040
3056
|
], 2)
|
|
3041
3057
|
])
|
|
3042
3058
|
]));
|
|
3043
3059
|
}
|
|
3044
|
-
},
|
|
3060
|
+
}, Us = { class: "card border bg-white rounded-lg" }, Zs = { class: "card-body px-4 py-2 gap-0" }, Ws = { class: "flex justify-between items-center" }, Gs = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Synonyms", -1), qs = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Js = { class: "list-none list-inside" }, Ks = { class: "flex flex-wrap" }, Ys = ["onClick"], Qs = {
|
|
3045
3061
|
__name: "Synonyms",
|
|
3046
3062
|
emits: ["translate"],
|
|
3047
3063
|
setup(e, { emit: o }) {
|
|
@@ -3050,35 +3066,35 @@ const il = {
|
|
|
3050
3066
|
}, l = (a) => {
|
|
3051
3067
|
r("translate", a), window.scrollTo(0, 0);
|
|
3052
3068
|
};
|
|
3053
|
-
return (a, u) => (w(),
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3069
|
+
return (a, u) => (w(), T("div", Us, [
|
|
3070
|
+
h("div", Zs, [
|
|
3071
|
+
h("div", Ws, [
|
|
3072
|
+
Gs,
|
|
3057
3073
|
H(We, {
|
|
3058
3074
|
isExpanded: t.value,
|
|
3059
3075
|
onClick: i
|
|
3060
3076
|
}, null, 8, ["isExpanded"])
|
|
3061
3077
|
]),
|
|
3062
|
-
|
|
3063
|
-
class:
|
|
3078
|
+
h("div", {
|
|
3079
|
+
class: _e(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
|
|
3064
3080
|
}, [
|
|
3065
|
-
|
|
3066
|
-
(w(!0),
|
|
3081
|
+
h("ul", null, [
|
|
3082
|
+
(w(!0), T(Z, null, le(s.value, (c, p) => (w(), T("li", {
|
|
3067
3083
|
key: `${c.pos}-${p}`,
|
|
3068
3084
|
class: "mb-2"
|
|
3069
3085
|
}, [
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
(w(!0),
|
|
3073
|
-
key: `${
|
|
3086
|
+
h("h5", qs, te(c.pos), 1),
|
|
3087
|
+
h("ul", Js, [
|
|
3088
|
+
(w(!0), T(Z, null, le(c.items, (g, x) => (w(), T("li", {
|
|
3089
|
+
key: `${g.word}-${x}`,
|
|
3074
3090
|
class: "mb-2"
|
|
3075
3091
|
}, [
|
|
3076
|
-
|
|
3077
|
-
(w(!0),
|
|
3078
|
-
key: `${
|
|
3092
|
+
h("div", Ks, [
|
|
3093
|
+
(w(!0), T(Z, null, le(g.synonym, (_, v) => (w(), T("span", {
|
|
3094
|
+
key: `${_}-${v}`,
|
|
3079
3095
|
class: "p-3 m-0.5 ml-0 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
|
|
3080
|
-
onClick: (
|
|
3081
|
-
}, te(
|
|
3096
|
+
onClick: ($) => l(_)
|
|
3097
|
+
}, te(_), 9, Ys))), 128))
|
|
3082
3098
|
])
|
|
3083
3099
|
]))), 128))
|
|
3084
3100
|
])
|
|
@@ -3089,22 +3105,22 @@ const il = {
|
|
|
3089
3105
|
]));
|
|
3090
3106
|
}
|
|
3091
3107
|
};
|
|
3092
|
-
function
|
|
3108
|
+
function Xs() {
|
|
3093
3109
|
document.documentElement.setAttribute("dir", "rtl");
|
|
3094
3110
|
}
|
|
3095
|
-
function
|
|
3111
|
+
function el() {
|
|
3096
3112
|
document.documentElement.removeAttribute("dir");
|
|
3097
3113
|
}
|
|
3098
3114
|
const Ot = {
|
|
3099
|
-
supportRTL:
|
|
3100
|
-
removeRTL:
|
|
3101
|
-
},
|
|
3115
|
+
supportRTL: Xs,
|
|
3116
|
+
removeRTL: el
|
|
3117
|
+
}, tl = ["ar", "fa", "iw", "yi", "ur", "pa"], nl = { class: "bg-white min-h-screen flex flex-col" }, ol = { class: "py-2 px-5 shadow-lg" }, sl = { class: "px-5 flex-grow" }, ll = { class: "flex flex-col lg:flex-row lg:gap-2" }, rl = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, il = /* @__PURE__ */ h("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1), al = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, ul = { class: "grid grid-cols-1 lg:grid-cols-3 gap-4" }, cl = {
|
|
3102
3118
|
key: 0,
|
|
3103
3119
|
class: "w-full my-4"
|
|
3104
|
-
},
|
|
3120
|
+
}, dl = {
|
|
3105
3121
|
key: 1,
|
|
3106
3122
|
class: "text-textCustom italic font-medium"
|
|
3107
|
-
},
|
|
3123
|
+
}, vl = {
|
|
3108
3124
|
__name: "Popup",
|
|
3109
3125
|
props: {
|
|
3110
3126
|
opt: {
|
|
@@ -3126,13 +3142,26 @@ const Ot = {
|
|
|
3126
3142
|
isFavoriteFeatureEnabled: {
|
|
3127
3143
|
type: Boolean,
|
|
3128
3144
|
default: !1
|
|
3145
|
+
},
|
|
3146
|
+
isFavorite: {
|
|
3147
|
+
type: Boolean,
|
|
3148
|
+
default: !1
|
|
3129
3149
|
}
|
|
3130
3150
|
},
|
|
3131
|
-
emits: [
|
|
3151
|
+
emits: [
|
|
3152
|
+
"opt",
|
|
3153
|
+
"translate",
|
|
3154
|
+
"reader",
|
|
3155
|
+
"settings",
|
|
3156
|
+
"fullscreen",
|
|
3157
|
+
"starList",
|
|
3158
|
+
"loadTTS",
|
|
3159
|
+
"favorite"
|
|
3160
|
+
],
|
|
3132
3161
|
setup(e, { emit: o }) {
|
|
3133
|
-
const t =
|
|
3162
|
+
const t = v2(), n = he(t), s = un(t), r = Ue(t), i = ze(t), l = e, a = o, u = E(""), c = () => {
|
|
3134
3163
|
const v = l.opt.target;
|
|
3135
|
-
|
|
3164
|
+
tl.includes(v) ? Ot.supportRTL() : Ot.removeRTL();
|
|
3136
3165
|
};
|
|
3137
3166
|
F(
|
|
3138
3167
|
() => l.translation,
|
|
@@ -3150,80 +3179,83 @@ const Ot = {
|
|
|
3150
3179
|
s.set(v);
|
|
3151
3180
|
},
|
|
3152
3181
|
{ immediate: !0 }
|
|
3153
|
-
), F([() => l.opt, () => l.languages], ([v,
|
|
3154
|
-
r.init(v,
|
|
3155
|
-
}), F([() => r.src, () => r.target], ([v,
|
|
3156
|
-
a("opt", { src: v, target:
|
|
3182
|
+
), F([() => l.opt, () => l.languages], ([v, $]) => {
|
|
3183
|
+
r.init(v, $), c();
|
|
3184
|
+
}), F([() => r.src, () => r.target], ([v, $]) => {
|
|
3185
|
+
a("opt", { src: v, target: $ }), _(u.value);
|
|
3157
3186
|
}), Ce(() => {
|
|
3158
3187
|
r.init(l.opt, l.languages), c();
|
|
3159
3188
|
});
|
|
3160
3189
|
function p() {
|
|
3161
3190
|
u.value = "", n.reset();
|
|
3162
3191
|
}
|
|
3163
|
-
function
|
|
3164
|
-
|
|
3192
|
+
function g(v) {
|
|
3193
|
+
_(v);
|
|
3165
3194
|
}
|
|
3166
|
-
function
|
|
3167
|
-
const
|
|
3168
|
-
a("loadTTS", { type: v, data:
|
|
3195
|
+
function x(v) {
|
|
3196
|
+
const $ = v === "src" ? n.text : n.result;
|
|
3197
|
+
a("loadTTS", { type: v, data: $ });
|
|
3169
3198
|
}
|
|
3170
|
-
function
|
|
3199
|
+
function _(v, $ = r.src, N = r.target) {
|
|
3171
3200
|
v && (u.value = v, i.loading = !0, a("translate", {
|
|
3172
|
-
src:
|
|
3201
|
+
src: $,
|
|
3173
3202
|
target: N,
|
|
3174
3203
|
text: v
|
|
3175
3204
|
}));
|
|
3176
3205
|
}
|
|
3177
|
-
return (v,
|
|
3206
|
+
return (v, $) => {
|
|
3178
3207
|
var N, I, k, D;
|
|
3179
|
-
return w(),
|
|
3180
|
-
|
|
3181
|
-
H(
|
|
3182
|
-
onReader:
|
|
3183
|
-
onSettings:
|
|
3184
|
-
onFullScreen:
|
|
3208
|
+
return w(), T("div", nl, [
|
|
3209
|
+
h("div", ol, [
|
|
3210
|
+
H(jn, {
|
|
3211
|
+
onReader: $[0] || ($[0] = (m) => a("reader")),
|
|
3212
|
+
onSettings: $[1] || ($[1] = (m) => a("settings")),
|
|
3213
|
+
onFullScreen: $[2] || ($[2] = (m) => a("fullscreen")),
|
|
3214
|
+
onStarList: $[3] || ($[3] = (m) => a("starList"))
|
|
3185
3215
|
})
|
|
3186
3216
|
]),
|
|
3187
|
-
|
|
3188
|
-
H(
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
H(
|
|
3217
|
+
h("div", sl, [
|
|
3218
|
+
H(O2, { class: "my-4" }),
|
|
3219
|
+
h("div", ll, [
|
|
3220
|
+
h("div", rl, [
|
|
3221
|
+
H(fs, {
|
|
3192
3222
|
text: u.value,
|
|
3193
|
-
onChange:
|
|
3223
|
+
onChange: g,
|
|
3194
3224
|
onClear: p,
|
|
3195
|
-
onLoadTTS:
|
|
3225
|
+
onLoadTTS: $[4] || ($[4] = (m) => x("src"))
|
|
3196
3226
|
}, null, 8, ["text"])
|
|
3197
3227
|
]),
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
H(
|
|
3228
|
+
il,
|
|
3229
|
+
h("div", al, [
|
|
3230
|
+
H(gs, {
|
|
3201
3231
|
isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
|
|
3202
|
-
|
|
3203
|
-
|
|
3232
|
+
isFavorite: e.isFavorite,
|
|
3233
|
+
onFavorite: $[5] || ($[5] = (m) => a("favorite")),
|
|
3234
|
+
onLoadTTS: $[6] || ($[6] = (m) => x("target"))
|
|
3235
|
+
}, null, 8, ["isFavoriteFeatureEnabled", "isFavorite"])
|
|
3204
3236
|
])
|
|
3205
3237
|
]),
|
|
3206
|
-
l.translation ? (w(),
|
|
3207
|
-
|
|
3208
|
-
(N = V(n).dictionary) != null && N.length ? (w(), ee(
|
|
3238
|
+
l.translation ? (w(), T(Z, { key: 0 }, [
|
|
3239
|
+
h("div", ul, [
|
|
3240
|
+
(N = V(n).dictionary) != null && N.length ? (w(), ee($s, {
|
|
3209
3241
|
key: 0,
|
|
3210
|
-
onTranslate:
|
|
3242
|
+
onTranslate: _
|
|
3211
3243
|
})) : X("", !0),
|
|
3212
|
-
(I = V(n).definitions) != null && I.length ? (w(), ee(
|
|
3213
|
-
(k = V(n).synonyms) != null && k.length ? (w(), ee(
|
|
3244
|
+
(I = V(n).definitions) != null && I.length ? (w(), ee(Ns, { key: 1 })) : X("", !0),
|
|
3245
|
+
(k = V(n).synonyms) != null && k.length ? (w(), ee(Qs, {
|
|
3214
3246
|
key: 2,
|
|
3215
|
-
onTranslate:
|
|
3247
|
+
onTranslate: _
|
|
3216
3248
|
})) : X("", !0)
|
|
3217
3249
|
]),
|
|
3218
|
-
(D = V(n).examples) != null && D.length ? (w(),
|
|
3219
|
-
H(
|
|
3250
|
+
(D = V(n).examples) != null && D.length ? (w(), T("div", cl, [
|
|
3251
|
+
H(zs)
|
|
3220
3252
|
])) : X("", !0)
|
|
3221
|
-
], 64)) : (w(),
|
|
3253
|
+
], 64)) : (w(), T("span", dl, "Service unavailable"))
|
|
3222
3254
|
])
|
|
3223
3255
|
]);
|
|
3224
3256
|
};
|
|
3225
3257
|
}
|
|
3226
3258
|
};
|
|
3227
3259
|
export {
|
|
3228
|
-
|
|
3260
|
+
vl as default
|
|
3229
3261
|
};
|