@ddict/popup 1.3.3 → 1.3.4
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/star-list.svg +1 -2
- package/dist/assets/icons/user.svg +3 -0
- package/dist/popup.es.js +346 -346
- package/dist/popup.umd.js +2 -2
- package/package.json +1 -1
package/dist/popup.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock as m, createElementBlock as O, createElementVNode as v, computed as E, unref as L, shallowRef as m2, watch as N, triggerRef as ct, onScopeDispose as nt, ref as $, onUnmounted as ot, inject as Te, watchEffect as re, onMounted as ve, cloneVNode as Tt, h as Ee, Fragment as G, defineComponent as ue, provide as lt, reactive as Lt, nextTick as oe, toRaw as ee, effectScope as Mt, markRaw as fe, hasInjectionContext as b2, getCurrentInstance as
|
|
2
|
-
const _2 = "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", S2 = "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", E2 = "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", O2 = "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", $2 = "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", I2 = { class: "flex justify-between" }, T2 = /* @__PURE__ */ v("div", { class: "flex flex-row" }, [
|
|
1
|
+
import { openBlock as m, createElementBlock as O, createElementVNode as v, computed as E, unref as L, shallowRef as m2, watch as N, triggerRef as ct, onScopeDispose as nt, ref as $, onUnmounted as ot, inject as Te, watchEffect as re, onMounted as ve, cloneVNode as Tt, h as Ee, Fragment as G, defineComponent as ue, provide as lt, reactive as Lt, nextTick as oe, toRaw as ee, effectScope as Mt, markRaw as fe, hasInjectionContext as b2, getCurrentInstance as kt, isRef as ye, isReactive as st, toRef as qe, getCurrentScope as At, toRefs as dt, mergeModels as g2, useModel as C2, createBlock as q, withCtx as ke, createVNode as B, renderList as te, normalizeClass as j, toDisplayString as K, createCommentVNode as H, withModifiers as ft, createTextVNode as x2, withDirectives as Ft, vModelText as Vt, pushScopeId as y2, popScopeId as w2 } from "vue";
|
|
2
|
+
const _2 = "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", S2 = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.3163%2019.4384C5.92462%2018.0052%207.34492%2017%209%2017H15C16.6551%2017%2018.0754%2018.0052%2018.6837%2019.4384M16%209.5C16%2011.7091%2014.2091%2013.5%2012%2013.5C9.79086%2013.5%208%2011.7091%208%209.5C8%207.29086%209.79086%205.5%2012%205.5C14.2091%205.5%2016%207.29086%2016%209.5ZM22%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%206.47715%206.47715%202%2012%202C17.5228%202%2022%206.47715%2022%2012Z'%20stroke='%233B5695'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", E2 = "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", O2 = "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", $2 = "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", I2 = { class: "flex justify-between" }, T2 = /* @__PURE__ */ v("div", { class: "flex flex-row" }, [
|
|
3
3
|
/* @__PURE__ */ v("img", {
|
|
4
4
|
src: _2,
|
|
5
5
|
alt: "Vue logo",
|
|
@@ -7,23 +7,23 @@ const _2 = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%20
|
|
|
7
7
|
})
|
|
8
8
|
], -1), L2 = { class: "flex" }, M2 = {
|
|
9
9
|
class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%]",
|
|
10
|
-
"data-tip": "
|
|
11
|
-
},
|
|
10
|
+
"data-tip": "Account"
|
|
11
|
+
}, k2 = /* @__PURE__ */ v("img", {
|
|
12
12
|
src: S2,
|
|
13
|
-
alt: "
|
|
13
|
+
alt: "User",
|
|
14
14
|
class: "w-7"
|
|
15
|
-
}, null, -1),
|
|
16
|
-
|
|
17
|
-
],
|
|
15
|
+
}, null, -1), A2 = [
|
|
16
|
+
k2
|
|
17
|
+
], F2 = {
|
|
18
18
|
class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%]",
|
|
19
19
|
"data-tip": "Reader"
|
|
20
|
-
},
|
|
20
|
+
}, V2 = /* @__PURE__ */ v("img", {
|
|
21
21
|
src: E2,
|
|
22
22
|
alt: "Reader",
|
|
23
23
|
class: "w-7"
|
|
24
|
-
}, null, -1),
|
|
25
|
-
|
|
26
|
-
],
|
|
24
|
+
}, null, -1), P2 = [
|
|
25
|
+
V2
|
|
26
|
+
], R2 = {
|
|
27
27
|
class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] md:hidden",
|
|
28
28
|
"data-tip": "Full screen"
|
|
29
29
|
}, D2 = /* @__PURE__ */ v("img", {
|
|
@@ -43,7 +43,7 @@ const _2 = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%20
|
|
|
43
43
|
j2
|
|
44
44
|
], z2 = {
|
|
45
45
|
__name: "Header",
|
|
46
|
-
emits: ["settings", "fullScreen", "reader", "
|
|
46
|
+
emits: ["settings", "fullScreen", "reader", "account"],
|
|
47
47
|
setup(e, { emit: o }) {
|
|
48
48
|
const t = o;
|
|
49
49
|
return (n, l) => (m(), O("div", I2, [
|
|
@@ -52,16 +52,16 @@ const _2 = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%20
|
|
|
52
52
|
v("div", M2, [
|
|
53
53
|
v("button", {
|
|
54
54
|
class: "btn btn-ghost btn-circle",
|
|
55
|
-
onClick: l[0] || (l[0] = (a) => t("
|
|
56
|
-
},
|
|
55
|
+
onClick: l[0] || (l[0] = (a) => t("account"))
|
|
56
|
+
}, A2)
|
|
57
57
|
]),
|
|
58
|
-
v("div",
|
|
58
|
+
v("div", F2, [
|
|
59
59
|
v("button", {
|
|
60
60
|
class: "btn btn-ghost btn-circle",
|
|
61
61
|
onClick: l[1] || (l[1] = (a) => t("reader"))
|
|
62
|
-
},
|
|
62
|
+
}, P2)
|
|
63
63
|
]),
|
|
64
|
-
v("div",
|
|
64
|
+
v("div", R2, [
|
|
65
65
|
v("button", {
|
|
66
66
|
class: "btn btn-ghost btn-circle",
|
|
67
67
|
onClick: l[2] || (l[2] = (a) => t("fullScreen"))
|
|
@@ -76,7 +76,7 @@ const _2 = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%20
|
|
|
76
76
|
])
|
|
77
77
|
]));
|
|
78
78
|
}
|
|
79
|
-
},
|
|
79
|
+
}, Ae = {
|
|
80
80
|
isRTL: U2,
|
|
81
81
|
setLocalStorage: Z2,
|
|
82
82
|
getLocalStorage: W2
|
|
@@ -102,13 +102,13 @@ function we(e, o, t) {
|
|
|
102
102
|
n = c;
|
|
103
103
|
let g;
|
|
104
104
|
if (t.key && ((i = t.debug) != null && i.call(t)) && (g = Date.now()), l = o(...c), t.key && ((s = t.debug) != null && s.call(t))) {
|
|
105
|
-
const w = Math.round((Date.now() - u) * 100) / 100, b = Math.round((Date.now() - g) * 100) / 100, _ = b / 16,
|
|
105
|
+
const w = Math.round((Date.now() - u) * 100) / 100, b = Math.round((Date.now() - g) * 100) / 100, _ = b / 16, P = (I, x) => {
|
|
106
106
|
for (I = String(I); I.length < x; )
|
|
107
107
|
I = " " + I;
|
|
108
108
|
return I;
|
|
109
109
|
};
|
|
110
110
|
console.info(
|
|
111
|
-
`%c⏱ ${
|
|
111
|
+
`%c⏱ ${P(b, 5)} /${P(w, 5)} ms`,
|
|
112
112
|
`
|
|
113
113
|
font-size: .6rem;
|
|
114
114
|
font-weight: bold;
|
|
@@ -188,7 +188,7 @@ const G2 = (e, o) => Math.abs(e - o) < 1, q2 = (e, o, t) => {
|
|
|
188
188
|
return r(), t.addEventListener("scroll", s, pt), t.addEventListener("scrollend", r, pt), () => {
|
|
189
189
|
t.removeEventListener("scroll", s), t.removeEventListener("scrollend", r);
|
|
190
190
|
};
|
|
191
|
-
},
|
|
191
|
+
}, en = (e, o, t) => {
|
|
192
192
|
if (o != null && o.borderBoxSize) {
|
|
193
193
|
const n = o.borderBoxSize[0];
|
|
194
194
|
if (n)
|
|
@@ -199,7 +199,7 @@ const G2 = (e, o) => Math.abs(e - o) < 1, q2 = (e, o, t) => {
|
|
|
199
199
|
return Math.round(
|
|
200
200
|
e.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]
|
|
201
201
|
);
|
|
202
|
-
},
|
|
202
|
+
}, tn = (e, {
|
|
203
203
|
adjustments: o = 0,
|
|
204
204
|
behavior: t
|
|
205
205
|
}, n) => {
|
|
@@ -210,7 +210,7 @@ const G2 = (e, o) => Math.abs(e - o) < 1, q2 = (e, o, t) => {
|
|
|
210
210
|
behavior: t
|
|
211
211
|
});
|
|
212
212
|
};
|
|
213
|
-
class
|
|
213
|
+
class nn {
|
|
214
214
|
constructor(o) {
|
|
215
215
|
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__ */ (() => {
|
|
216
216
|
let t = null;
|
|
@@ -249,7 +249,7 @@ class n0 {
|
|
|
249
249
|
rangeExtractor: K2,
|
|
250
250
|
onChange: () => {
|
|
251
251
|
},
|
|
252
|
-
measureElement:
|
|
252
|
+
measureElement: en,
|
|
253
253
|
initialRect: { width: 0, height: 0 },
|
|
254
254
|
scrollMargin: 0,
|
|
255
255
|
gap: 0,
|
|
@@ -339,25 +339,25 @@ class n0 {
|
|
|
339
339
|
const c = this.measurementsCache.slice(0, u);
|
|
340
340
|
for (let p = u; p < t; p++) {
|
|
341
341
|
let g = (r = this.measurementsCache[p]) == null ? void 0 : r.measureElement;
|
|
342
|
-
g || (g = (
|
|
342
|
+
g || (g = (R) => {
|
|
343
343
|
const y = a(p), M = this.elementsCache.get(y);
|
|
344
|
-
if (!
|
|
344
|
+
if (!R) {
|
|
345
345
|
M && (this.observer.unobserve(M), this.elementsCache.delete(y));
|
|
346
346
|
return;
|
|
347
347
|
}
|
|
348
|
-
M !==
|
|
348
|
+
M !== R && (M && this.observer.unobserve(M), this.observer.observe(R), this.elementsCache.set(y, R)), R.isConnected && this.resizeItem(
|
|
349
349
|
p,
|
|
350
|
-
this.options.measureElement(
|
|
350
|
+
this.options.measureElement(R, void 0, this)
|
|
351
351
|
);
|
|
352
352
|
});
|
|
353
|
-
const w = a(p), b = this.options.lanes === 1 ? c[p - 1] : this.getFurthestMeasurement(c, p), _ = b ? b.end + this.options.gap : n + l,
|
|
353
|
+
const w = a(p), b = this.options.lanes === 1 ? c[p - 1] : this.getFurthestMeasurement(c, p), _ = b ? b.end + this.options.gap : n + l, P = s.get(w), I = typeof P == "number" ? P : this.options.estimateSize(p), x = _ + I, A = b ? b.lane : p % this.options.lanes;
|
|
354
354
|
c[p] = {
|
|
355
355
|
index: p,
|
|
356
356
|
start: _,
|
|
357
357
|
size: I,
|
|
358
358
|
end: x,
|
|
359
359
|
key: w,
|
|
360
|
-
lane:
|
|
360
|
+
lane: A,
|
|
361
361
|
measureElement: g
|
|
362
362
|
};
|
|
363
363
|
}
|
|
@@ -369,7 +369,7 @@ class n0 {
|
|
|
369
369
|
}
|
|
370
370
|
), this.calculateRange = we(
|
|
371
371
|
() => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
|
|
372
|
-
(t, n, l) => this.range = t.length > 0 && n > 0 ?
|
|
372
|
+
(t, n, l) => this.range = t.length > 0 && n > 0 ? on({
|
|
373
373
|
measurements: t,
|
|
374
374
|
outerSize: n,
|
|
375
375
|
scrollOffset: l
|
|
@@ -439,7 +439,7 @@ class n0 {
|
|
|
439
439
|
const n = this.getMeasurements();
|
|
440
440
|
if (n.length !== 0)
|
|
441
441
|
return Je(
|
|
442
|
-
n[
|
|
442
|
+
n[Pt(
|
|
443
443
|
0,
|
|
444
444
|
n.length - 1,
|
|
445
445
|
(l) => Je(n[l]).start,
|
|
@@ -518,7 +518,7 @@ class n0 {
|
|
|
518
518
|
}, this.setOptions(o);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
const
|
|
521
|
+
const Pt = (e, o, t, n) => {
|
|
522
522
|
for (; e <= o; ) {
|
|
523
523
|
const l = (e + o) / 2 | 0, a = t(l);
|
|
524
524
|
if (a < n)
|
|
@@ -530,19 +530,19 @@ const Rt = (e, o, t, n) => {
|
|
|
530
530
|
}
|
|
531
531
|
return e > 0 ? e - 1 : 0;
|
|
532
532
|
};
|
|
533
|
-
function
|
|
533
|
+
function on({
|
|
534
534
|
measurements: e,
|
|
535
535
|
outerSize: o,
|
|
536
536
|
scrollOffset: t
|
|
537
537
|
}) {
|
|
538
|
-
const n = e.length - 1, a =
|
|
538
|
+
const n = e.length - 1, a = Pt(0, n, (s) => e[s].start, t);
|
|
539
539
|
let i = a;
|
|
540
540
|
for (; i < n && e[i].end < t + o; )
|
|
541
541
|
i++;
|
|
542
542
|
return { startIndex: a, endIndex: i };
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
const o = new
|
|
544
|
+
function ln(e) {
|
|
545
|
+
const o = new nn(L(e)), t = m2(o), n = o._didMount();
|
|
546
546
|
return N(
|
|
547
547
|
() => L(e).getScrollElement(),
|
|
548
548
|
(l) => {
|
|
@@ -567,23 +567,23 @@ function l0(e) {
|
|
|
567
567
|
}
|
|
568
568
|
), nt(n), t;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
return
|
|
570
|
+
function sn(e) {
|
|
571
|
+
return ln(
|
|
572
572
|
E(() => ({
|
|
573
573
|
observeElementRect: Y2,
|
|
574
574
|
observeElementOffset: X2,
|
|
575
|
-
scrollToFn:
|
|
575
|
+
scrollToFn: tn,
|
|
576
576
|
...L(e)
|
|
577
577
|
}))
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function an(e, o, t) {
|
|
581
581
|
let n = $(t == null ? void 0 : t.value), l = E(() => e.value !== void 0);
|
|
582
582
|
return [E(() => l.value ? e.value : n.value), function(a) {
|
|
583
583
|
return l.value || (n.value = a), o == null ? void 0 : o(a);
|
|
584
584
|
}];
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function rn(e) {
|
|
587
587
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((o) => setTimeout(() => {
|
|
588
588
|
throw o;
|
|
589
589
|
}));
|
|
@@ -603,7 +603,7 @@ function Ne() {
|
|
|
603
603
|
o.add(() => clearTimeout(n));
|
|
604
604
|
}, microTask(...t) {
|
|
605
605
|
let n = { current: !0 };
|
|
606
|
-
return
|
|
606
|
+
return rn(() => {
|
|
607
607
|
n.current && t[0]();
|
|
608
608
|
}), o.add(() => {
|
|
609
609
|
n.current = !1;
|
|
@@ -626,21 +626,21 @@ function Ne() {
|
|
|
626
626
|
} };
|
|
627
627
|
return o;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function un() {
|
|
630
630
|
let e = Ne();
|
|
631
631
|
return ot(() => e.dispose()), e;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
let e =
|
|
633
|
+
function cn() {
|
|
634
|
+
let e = un();
|
|
635
635
|
return (o) => {
|
|
636
636
|
e.dispose(), e.nextFrame(o);
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
|
-
let
|
|
639
|
+
let dn = Symbol("headlessui.useid"), fn = 0;
|
|
640
640
|
function Le() {
|
|
641
|
-
return Te(
|
|
641
|
+
return Te(dn, () => `${++fn}`)();
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function F(e) {
|
|
644
644
|
var o;
|
|
645
645
|
if (e == null || e.value == null) return null;
|
|
646
646
|
let t = (o = e.value.$el) != null ? o : e.value;
|
|
@@ -654,8 +654,8 @@ function ae(e, o, ...t) {
|
|
|
654
654
|
let n = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map((l) => `"${l}"`).join(", ")}.`);
|
|
655
655
|
throw Error.captureStackTrace && Error.captureStackTrace(n, ae), n;
|
|
656
656
|
}
|
|
657
|
-
var
|
|
658
|
-
let
|
|
657
|
+
var pn = Object.defineProperty, vn = (e, o, t) => o in e ? pn(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, vt = (e, o, t) => (vn(e, typeof o != "symbol" ? o + "" : o, t), t);
|
|
658
|
+
let hn = class {
|
|
659
659
|
constructor() {
|
|
660
660
|
vt(this, "current", this.detect()), vt(this, "currentId", 0);
|
|
661
661
|
}
|
|
@@ -677,19 +677,19 @@ let v0 = class {
|
|
|
677
677
|
detect() {
|
|
678
678
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
679
679
|
}
|
|
680
|
-
}, at = new
|
|
680
|
+
}, at = new hn();
|
|
681
681
|
function it(e) {
|
|
682
682
|
if (at.isServer) return null;
|
|
683
683
|
if (e instanceof Node) return e.ownerDocument;
|
|
684
684
|
if (e != null && e.hasOwnProperty("value")) {
|
|
685
|
-
let o =
|
|
685
|
+
let o = F(e);
|
|
686
686
|
if (o) return o.ownerDocument;
|
|
687
687
|
}
|
|
688
688
|
return document;
|
|
689
689
|
}
|
|
690
690
|
let ht = ["[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(",");
|
|
691
|
-
var
|
|
692
|
-
function
|
|
691
|
+
var mn = ((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))(mn || {}), bn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(bn || {}), gn = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(gn || {}), Rt = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Rt || {});
|
|
692
|
+
function Cn(e, o = 0) {
|
|
693
693
|
var t;
|
|
694
694
|
return e === ((t = it(e)) == null ? void 0 : t.body) ? !1 : ae(o, { 0() {
|
|
695
695
|
return e.matches(ht);
|
|
@@ -702,13 +702,13 @@ function g0(e, o = 0) {
|
|
|
702
702
|
return !1;
|
|
703
703
|
} });
|
|
704
704
|
}
|
|
705
|
-
var
|
|
705
|
+
var xn = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(xn || {});
|
|
706
706
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
707
707
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
708
708
|
}, !0), document.addEventListener("click", (e) => {
|
|
709
709
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
710
710
|
}, !0));
|
|
711
|
-
function
|
|
711
|
+
function yn(e, o = (t) => t) {
|
|
712
712
|
return e.slice().sort((t, n) => {
|
|
713
713
|
let l = o(t), a = o(n);
|
|
714
714
|
if (l === null || a === null) return 0;
|
|
@@ -716,26 +716,26 @@ function x0(e, o = (t) => t) {
|
|
|
716
716
|
return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function wn() {
|
|
720
720
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function _n() {
|
|
723
723
|
return /Android/gi.test(window.navigator.userAgent);
|
|
724
724
|
}
|
|
725
725
|
function Dt() {
|
|
726
|
-
return
|
|
726
|
+
return wn() || _n();
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function Fe(e, o, t) {
|
|
729
729
|
at.isServer || re((n) => {
|
|
730
730
|
document.addEventListener(e, o, t), n(() => document.removeEventListener(e, o, t));
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function Sn(e, o, t) {
|
|
734
734
|
at.isServer || re((n) => {
|
|
735
735
|
window.addEventListener(e, o, t), n(() => window.removeEventListener(e, o, t));
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function En(e, o, t = E(() => !0)) {
|
|
739
739
|
function n(a, i) {
|
|
740
740
|
if (!t.value || a.defaultPrevented) return;
|
|
741
741
|
let s = i(a);
|
|
@@ -745,40 +745,40 @@ function S0(e, o, t = E(() => !0)) {
|
|
|
745
745
|
}(e);
|
|
746
746
|
for (let u of r) {
|
|
747
747
|
if (u === null) continue;
|
|
748
|
-
let c = u instanceof HTMLElement ? u :
|
|
748
|
+
let c = u instanceof HTMLElement ? u : F(u);
|
|
749
749
|
if (c != null && c.contains(s) || a.composed && a.composedPath().includes(c)) return;
|
|
750
750
|
}
|
|
751
|
-
return !
|
|
751
|
+
return !Cn(s, Rt.Loose) && s.tabIndex !== -1 && a.preventDefault(), o(a, s);
|
|
752
752
|
}
|
|
753
753
|
let l = $(null);
|
|
754
|
-
|
|
754
|
+
Fe("pointerdown", (a) => {
|
|
755
755
|
var i, s;
|
|
756
756
|
t.value && (l.value = ((s = (i = a.composedPath) == null ? void 0 : i.call(a)) == null ? void 0 : s[0]) || a.target);
|
|
757
|
-
}, !0),
|
|
757
|
+
}, !0), Fe("mousedown", (a) => {
|
|
758
758
|
var i, s;
|
|
759
759
|
t.value && (l.value = ((s = (i = a.composedPath) == null ? void 0 : i.call(a)) == null ? void 0 : s[0]) || a.target);
|
|
760
|
-
}, !0),
|
|
760
|
+
}, !0), Fe("click", (a) => {
|
|
761
761
|
Dt() || l.value && (n(a, () => l.value), l.value = null);
|
|
762
|
-
}, !0),
|
|
762
|
+
}, !0), Fe("touchend", (a) => n(a, () => a.target instanceof HTMLElement ? a.target : null), !0), Sn("blur", (a) => n(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
763
763
|
}
|
|
764
764
|
function mt(e, o) {
|
|
765
765
|
if (e) return e;
|
|
766
766
|
let t = o ?? "button";
|
|
767
767
|
if (typeof t == "string" && t.toLowerCase() === "button") return "button";
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function On(e, o) {
|
|
770
770
|
let t = $(mt(e.value.type, e.value.as));
|
|
771
771
|
return ve(() => {
|
|
772
772
|
t.value = mt(e.value.type, e.value.as);
|
|
773
773
|
}), re(() => {
|
|
774
774
|
var n;
|
|
775
|
-
t.value ||
|
|
775
|
+
t.value || F(o) && F(o) instanceof HTMLButtonElement && !((n = F(o)) != null && n.hasAttribute("type")) && (t.value = "button");
|
|
776
776
|
}), t;
|
|
777
777
|
}
|
|
778
778
|
function bt(e) {
|
|
779
779
|
return [e.screenX, e.screenY];
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function $n() {
|
|
782
782
|
let e = $([-1, -1]);
|
|
783
783
|
return { wasMoved(o) {
|
|
784
784
|
let t = bt(o);
|
|
@@ -787,7 +787,7 @@ function O0() {
|
|
|
787
787
|
e.value = bt(o);
|
|
788
788
|
} };
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function In({ container: e, accept: o, walk: t, enabled: n }) {
|
|
791
791
|
re(() => {
|
|
792
792
|
let l = e.value;
|
|
793
793
|
if (!l || n !== void 0 && !n.value) return;
|
|
@@ -797,7 +797,7 @@ function $0({ container: e, accept: o, walk: t, enabled: n }) {
|
|
|
797
797
|
for (; s.nextNode(); ) t(s.currentNode);
|
|
798
798
|
});
|
|
799
799
|
}
|
|
800
|
-
var Oe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Oe || {}),
|
|
800
|
+
var Oe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Oe || {}), Tn = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Tn || {});
|
|
801
801
|
function he({ visible: e = !0, features: o = 0, ourProps: t, theirProps: n, ...l }) {
|
|
802
802
|
var a;
|
|
803
803
|
let i = Bt(n, t), s = Object.assign(l, { props: i });
|
|
@@ -823,7 +823,7 @@ function Ke({ props: e, attrs: o, slots: t, slot: n, name: l }) {
|
|
|
823
823
|
if (s === "template") {
|
|
824
824
|
if (u = Nt(u ?? []), Object.keys(r).length > 0 || Object.keys(o).length > 0) {
|
|
825
825
|
let [p, ...g] = u ?? [];
|
|
826
|
-
if (!
|
|
826
|
+
if (!Mn(p) || g.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(r).concat(Object.keys(o)).map((_) => _.trim()).filter((_, P, I) => I.indexOf(_) === P).sort((_, P) => _.localeCompare(P)).map((_) => ` - ${_}`).join(`
|
|
827
827
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((_) => ` - ${_}`).join(`
|
|
828
828
|
`)].join(`
|
|
829
829
|
`));
|
|
@@ -853,7 +853,7 @@ function Bt(...e) {
|
|
|
853
853
|
} });
|
|
854
854
|
return o;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Ln(e) {
|
|
857
857
|
let o = Object.assign({}, e);
|
|
858
858
|
for (let t in o) o[t] === void 0 && delete o[t];
|
|
859
859
|
return o;
|
|
@@ -863,11 +863,11 @@ function He(e, o = []) {
|
|
|
863
863
|
for (let n of o) n in t && delete t[n];
|
|
864
864
|
return t;
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function Mn(e) {
|
|
867
867
|
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
868
868
|
}
|
|
869
869
|
var jt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(jt || {});
|
|
870
|
-
let
|
|
870
|
+
let kn = ue({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: o, attrs: t }) {
|
|
871
871
|
return () => {
|
|
872
872
|
var n;
|
|
873
873
|
let { features: l, ...a } = e, i = { "aria-hidden": (l & 2) === 2 ? !0 : (n = a["aria-hidden"]) != null ? n : void 0, hidden: (l & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(l & 4) === 4 && (l & 2) !== 2 && { display: "none" } } };
|
|
@@ -875,27 +875,27 @@ let M0 = ue({ name: "Hidden", props: { as: { type: [Object, String], default: "d
|
|
|
875
875
|
};
|
|
876
876
|
} }), Ht = Symbol("Context");
|
|
877
877
|
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 || {});
|
|
878
|
-
function
|
|
878
|
+
function An() {
|
|
879
879
|
return Te(Ht, null);
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function Fn(e) {
|
|
882
882
|
lt(Ht, e);
|
|
883
883
|
}
|
|
884
884
|
var J = ((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))(J || {}), zt = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(zt || {});
|
|
885
|
-
function
|
|
885
|
+
function Vn(e) {
|
|
886
886
|
function o() {
|
|
887
887
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", o));
|
|
888
888
|
}
|
|
889
889
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", o), o());
|
|
890
890
|
}
|
|
891
891
|
let de = [];
|
|
892
|
-
|
|
892
|
+
Vn(() => {
|
|
893
893
|
function e(o) {
|
|
894
894
|
o.target instanceof HTMLElement && o.target !== document.body && de[0] !== o.target && (de.unshift(o.target), de = de.filter((t) => t != null && t.isConnected), de.splice(10));
|
|
895
895
|
}
|
|
896
896
|
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 });
|
|
897
897
|
});
|
|
898
|
-
function
|
|
898
|
+
function Pn(e) {
|
|
899
899
|
throw new Error("Unexpected object: " + e);
|
|
900
900
|
}
|
|
901
901
|
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 || {});
|
|
@@ -928,7 +928,7 @@ function gt(e, o) {
|
|
|
928
928
|
case 5:
|
|
929
929
|
return null;
|
|
930
930
|
default:
|
|
931
|
-
|
|
931
|
+
Pn(e);
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
function Ut(e = {}, o = null, t = []) {
|
|
@@ -942,10 +942,10 @@ function Wt(e, o, t) {
|
|
|
942
942
|
if (Array.isArray(t)) for (let [n, l] of t.entries()) Wt(e, Zt(o, n.toString()), l);
|
|
943
943
|
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, ""]) : Ut(t, o, e);
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Rn(e, o) {
|
|
946
946
|
return e === o;
|
|
947
947
|
}
|
|
948
|
-
var
|
|
948
|
+
var Dn = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Dn || {}), Nn = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Nn || {}), Bn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(Bn || {});
|
|
949
949
|
let Gt = Symbol("ComboboxContext");
|
|
950
950
|
function me(e) {
|
|
951
951
|
let o = Te(Gt, null);
|
|
@@ -955,16 +955,16 @@ function me(e) {
|
|
|
955
955
|
}
|
|
956
956
|
return o;
|
|
957
957
|
}
|
|
958
|
-
let qt = Symbol("VirtualContext"),
|
|
958
|
+
let qt = Symbol("VirtualContext"), jn = ue({ name: "VirtualProvider", setup(e, { slots: o }) {
|
|
959
959
|
let t = me("VirtualProvider"), n = E(() => {
|
|
960
|
-
let s =
|
|
960
|
+
let s = F(t.optionsRef);
|
|
961
961
|
if (!s) return { start: 0, end: 0 };
|
|
962
962
|
let r = window.getComputedStyle(s);
|
|
963
963
|
return { start: parseFloat(r.paddingBlockStart || r.paddingTop), end: parseFloat(r.paddingBlockEnd || r.paddingBottom) };
|
|
964
|
-
}), l =
|
|
964
|
+
}), l = sn(E(() => ({ scrollPaddingStart: n.value.start, scrollPaddingEnd: n.value.end, count: t.virtual.value.options.length, estimateSize() {
|
|
965
965
|
return 40;
|
|
966
966
|
}, getScrollElement() {
|
|
967
|
-
return
|
|
967
|
+
return F(t.optionsRef);
|
|
968
968
|
}, overscan: 12 }))), a = E(() => {
|
|
969
969
|
var s;
|
|
970
970
|
return (s = t.virtual.value) == null ? void 0 : s.options;
|
|
@@ -977,18 +977,18 @@ let qt = Symbol("VirtualContext"), B0 = ue({ name: "VirtualProvider", setup(e, {
|
|
|
977
977
|
t.activeOptionIndex.value !== null && t.virtual.value.options.length > t.activeOptionIndex.value && l.value.scrollToIndex(t.activeOptionIndex.value);
|
|
978
978
|
}
|
|
979
979
|
} }, l.value.getVirtualItems().map((s) => Tt(o.default({ option: t.virtual.value.options[s.index], open: t.comboboxState.value === 0 })[0], { key: `${i.value}-${s.index}`, "data-index": s.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": s.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${s.start}px)`, overflowAnchor: "none" } })))];
|
|
980
|
-
} }),
|
|
980
|
+
} }), Hn = ue({ 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 }) {
|
|
981
981
|
let l = $(1), a = $(null), i = $(null), s = $(null), r = $(null), u = $({ static: !1, hold: !1 }), c = $([]), p = $(null), g = $(2), w = $(!1);
|
|
982
982
|
function b(d = (f) => f) {
|
|
983
|
-
let f = p.value !== null ? c.value[p.value] : null, S = d(c.value.slice()), T = S.length > 0 && S[0].dataRef.order.value !== null ? S.sort((D, Y) => D.dataRef.order.value - Y.dataRef.order.value) :
|
|
984
|
-
return
|
|
983
|
+
let f = p.value !== null ? c.value[p.value] : null, S = d(c.value.slice()), T = S.length > 0 && S[0].dataRef.order.value !== null ? S.sort((D, Y) => D.dataRef.order.value - Y.dataRef.order.value) : yn(S, (D) => F(D.dataRef.domRef)), V = f ? T.indexOf(f) : null;
|
|
984
|
+
return V === -1 && (V = null), { options: T, activeOptionIndex: V };
|
|
985
985
|
}
|
|
986
|
-
let _ = E(() => e.multiple ? 1 : 0),
|
|
986
|
+
let _ = E(() => e.multiple ? 1 : 0), P = E(() => e.nullable), [I, x] = an(E(() => e.modelValue), (d) => n("update:modelValue", d), E(() => e.defaultValue)), A = E(() => I.value === void 0 ? ae(_.value, { 1: [], 0: void 0 }) : I.value), R = null, y = null;
|
|
987
987
|
function M(d) {
|
|
988
988
|
return ae(_.value, { 0() {
|
|
989
989
|
return x == null ? void 0 : x(d);
|
|
990
990
|
}, 1: () => {
|
|
991
|
-
let f = ee(h.value.value).slice(), S = ee(d), T = f.findIndex((
|
|
991
|
+
let f = ee(h.value.value).slice(), S = ee(d), T = f.findIndex((V) => h.compare(S, ee(V)));
|
|
992
992
|
return T === -1 ? f.push(S) : f.splice(T, 1), x == null ? void 0 : x(f);
|
|
993
993
|
} });
|
|
994
994
|
}
|
|
@@ -1000,15 +1000,15 @@ let qt = Symbol("VirtualContext"), B0 = ue({ name: "VirtualProvider", setup(e, {
|
|
|
1000
1000
|
S !== -1 ? p.value = S : p.value = null;
|
|
1001
1001
|
}
|
|
1002
1002
|
});
|
|
1003
|
-
let h = { comboboxState: l, value:
|
|
1003
|
+
let h = { comboboxState: l, value: A, mode: _, compare(d, f) {
|
|
1004
1004
|
if (typeof e.by == "string") {
|
|
1005
1005
|
let S = e.by;
|
|
1006
1006
|
return (d == null ? void 0 : d[S]) === (f == null ? void 0 : f[S]);
|
|
1007
1007
|
}
|
|
1008
|
-
return e.by === null ?
|
|
1008
|
+
return e.by === null ? Rn(d, f) : e.by(d, f);
|
|
1009
1009
|
}, calculateIndex(d) {
|
|
1010
1010
|
return h.virtual.value ? e.by === null ? h.virtual.value.options.indexOf(d) : h.virtual.value.options.findIndex((f) => h.compare(f, d)) : c.value.findIndex((f) => h.compare(f.dataRef.value, d));
|
|
1011
|
-
}, defaultValue: E(() => e.defaultValue), nullable:
|
|
1011
|
+
}, defaultValue: E(() => e.defaultValue), nullable: P, immediate: E(() => !1), virtual: E(() => null), inputRef: i, labelRef: a, buttonRef: s, optionsRef: r, disabled: E(() => e.disabled), options: c, change(d) {
|
|
1012
1012
|
x(d);
|
|
1013
1013
|
}, activeOptionIndex: E(() => {
|
|
1014
1014
|
if (w.value && p.value === null && (h.virtual.value ? h.virtual.value.options.length > 0 : c.value.length > 0)) {
|
|
@@ -1036,7 +1036,7 @@ let qt = Symbol("VirtualContext"), B0 = ue({ name: "VirtualProvider", setup(e, {
|
|
|
1036
1036
|
}, setActivationTrigger(d) {
|
|
1037
1037
|
g.value = d;
|
|
1038
1038
|
}, goToOption(d, f, S) {
|
|
1039
|
-
w.value = !1,
|
|
1039
|
+
w.value = !1, R !== null && cancelAnimationFrame(R), R = requestAnimationFrame(() => {
|
|
1040
1040
|
if (e.disabled || r.value && !u.value.static && l.value === 1) return;
|
|
1041
1041
|
if (h.virtual.value) {
|
|
1042
1042
|
p.value = d === Z.Specific ? f : gt({ focus: d }, { resolveItems: () => h.virtual.value.options, resolveActiveIndex: () => {
|
|
@@ -1055,8 +1055,8 @@ let qt = Symbol("VirtualContext"), B0 = ue({ name: "VirtualProvider", setup(e, {
|
|
|
1055
1055
|
let D = T.options.findIndex((Y) => !Y.dataRef.disabled);
|
|
1056
1056
|
D !== -1 && (T.activeOptionIndex = D);
|
|
1057
1057
|
}
|
|
1058
|
-
let
|
|
1059
|
-
p.value =
|
|
1058
|
+
let V = d === Z.Specific ? f : gt({ focus: d }, { resolveItems: () => T.options, resolveActiveIndex: () => T.activeOptionIndex, resolveId: (D) => D.id, resolveDisabled: (D) => D.dataRef.disabled });
|
|
1059
|
+
p.value = V, g.value = S ?? 2, c.value = T.options;
|
|
1060
1060
|
});
|
|
1061
1061
|
}, selectOption(d) {
|
|
1062
1062
|
let f = c.value.find((T) => T.id === d);
|
|
@@ -1079,19 +1079,19 @@ let qt = Symbol("VirtualContext"), B0 = ue({ name: "VirtualProvider", setup(e, {
|
|
|
1079
1079
|
return;
|
|
1080
1080
|
}
|
|
1081
1081
|
y && cancelAnimationFrame(y);
|
|
1082
|
-
let T = b((
|
|
1083
|
-
p.value === null && h.isSelected(f.value.value) && (T.activeOptionIndex = T.options.indexOf(S)), c.value = T.options, p.value = T.activeOptionIndex, g.value = 2, T.options.some((
|
|
1084
|
-
let
|
|
1085
|
-
c.value =
|
|
1082
|
+
let T = b((V) => (V.push(S), V));
|
|
1083
|
+
p.value === null && h.isSelected(f.value.value) && (T.activeOptionIndex = T.options.indexOf(S)), c.value = T.options, p.value = T.activeOptionIndex, g.value = 2, T.options.some((V) => !F(V.dataRef.domRef)) && (y = requestAnimationFrame(() => {
|
|
1084
|
+
let V = b();
|
|
1085
|
+
c.value = V.options, p.value = V.activeOptionIndex;
|
|
1086
1086
|
}));
|
|
1087
1087
|
}, unregisterOption(d, f) {
|
|
1088
|
-
if (
|
|
1088
|
+
if (R !== null && cancelAnimationFrame(R), f && (w.value = !0), h.virtual.value) {
|
|
1089
1089
|
c.value = c.value.filter((T) => T.id !== d);
|
|
1090
1090
|
return;
|
|
1091
1091
|
}
|
|
1092
1092
|
let S = b((T) => {
|
|
1093
|
-
let
|
|
1094
|
-
return
|
|
1093
|
+
let V = T.findIndex((D) => D.id === d);
|
|
1094
|
+
return V !== -1 && T.splice(V, 1), T;
|
|
1095
1095
|
});
|
|
1096
1096
|
c.value = S.options, p.value = S.activeOptionIndex, g.value = 2;
|
|
1097
1097
|
}, isSelected(d) {
|
|
@@ -1099,26 +1099,26 @@ let qt = Symbol("VirtualContext"), B0 = ue({ name: "VirtualProvider", setup(e, {
|
|
|
1099
1099
|
}, isActive(d) {
|
|
1100
1100
|
return p.value === h.calculateIndex(d);
|
|
1101
1101
|
} };
|
|
1102
|
-
|
|
1103
|
-
let
|
|
1102
|
+
En([i, s, r], () => h.closeCombobox(), E(() => l.value === 0)), lt(Gt, h), Fn(E(() => ae(l.value, { 0: $e.Open, 1: $e.Closed })));
|
|
1103
|
+
let k = E(() => {
|
|
1104
1104
|
var d;
|
|
1105
|
-
return (d =
|
|
1105
|
+
return (d = F(i)) == null ? void 0 : d.closest("form");
|
|
1106
1106
|
});
|
|
1107
1107
|
return ve(() => {
|
|
1108
|
-
N([
|
|
1109
|
-
if (!
|
|
1108
|
+
N([k], () => {
|
|
1109
|
+
if (!k.value || e.defaultValue === void 0) return;
|
|
1110
1110
|
function d() {
|
|
1111
1111
|
h.change(e.defaultValue);
|
|
1112
1112
|
}
|
|
1113
|
-
return
|
|
1113
|
+
return k.value.addEventListener("reset", d), () => {
|
|
1114
1114
|
var f;
|
|
1115
|
-
(f =
|
|
1115
|
+
(f = k.value) == null || f.removeEventListener("reset", d);
|
|
1116
1116
|
};
|
|
1117
1117
|
}, { immediate: !0 });
|
|
1118
1118
|
}), () => {
|
|
1119
1119
|
var d, f, S;
|
|
1120
|
-
let { name: T, disabled:
|
|
1121
|
-
return Ee(G, [...T != null &&
|
|
1120
|
+
let { name: T, disabled: V, form: D, ...Y } = e, Q = { open: l.value === 0, disabled: V, activeIndex: h.activeOptionIndex.value, activeOption: h.activeOptionIndex.value === null ? null : h.virtual.value ? h.virtual.value.options[(d = h.activeOptionIndex.value) != null ? d : 0] : (S = (f = h.options.value[h.activeOptionIndex.value]) == null ? void 0 : f.dataRef.value) != null ? S : null, value: A.value };
|
|
1121
|
+
return Ee(G, [...T != null && A.value != null ? Ut({ [T]: A.value }).map(([z, h2]) => Ee(kn, Ln({ features: jt.Hidden, key: z, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: D, disabled: V, name: z, value: h2 }))) : [], he({ theirProps: { ...t, ...He(Y, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: Q, slots: o, attrs: t, name: "Combobox" })]);
|
|
1122
1122
|
};
|
|
1123
1123
|
} });
|
|
1124
1124
|
ue({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t }) {
|
|
@@ -1126,21 +1126,21 @@ ue({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "lab
|
|
|
1126
1126
|
let l = (n = e.id) != null ? n : `headlessui-combobox-label-${Le()}`, a = me("ComboboxLabel");
|
|
1127
1127
|
function i() {
|
|
1128
1128
|
var s;
|
|
1129
|
-
(s =
|
|
1129
|
+
(s = F(a.inputRef)) == null || s.focus({ preventScroll: !0 });
|
|
1130
1130
|
}
|
|
1131
1131
|
return () => {
|
|
1132
1132
|
let s = { open: a.comboboxState.value === 0, disabled: a.disabled.value }, { ...r } = e, u = { id: l, ref: a.labelRef, onClick: i };
|
|
1133
1133
|
return he({ ourProps: u, theirProps: r, slot: s, attrs: o, slots: t, name: "ComboboxLabel" });
|
|
1134
1134
|
};
|
|
1135
1135
|
} });
|
|
1136
|
-
let
|
|
1136
|
+
let zn = ue({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t, expose: n }) {
|
|
1137
1137
|
var l;
|
|
1138
1138
|
let a = (l = e.id) != null ? l : `headlessui-combobox-button-${Le()}`, i = me("ComboboxButton");
|
|
1139
1139
|
n({ el: i.buttonRef, $el: i.buttonRef });
|
|
1140
1140
|
function s(c) {
|
|
1141
1141
|
i.disabled.value || (i.comboboxState.value === 0 ? i.closeCombobox() : (c.preventDefault(), i.openCombobox()), oe(() => {
|
|
1142
1142
|
var p;
|
|
1143
|
-
return (p =
|
|
1143
|
+
return (p = F(i.inputRef)) == null ? void 0 : p.focus({ preventScroll: !0 });
|
|
1144
1144
|
}));
|
|
1145
1145
|
}
|
|
1146
1146
|
function r(c) {
|
|
@@ -1168,43 +1168,43 @@ let H0 = ue({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1168
1168
|
return;
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
|
-
let u =
|
|
1171
|
+
let u = On(E(() => ({ as: e.as, type: o.type })), i.buttonRef);
|
|
1172
1172
|
return () => {
|
|
1173
1173
|
var c, p;
|
|
1174
|
-
let g = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...w } = e, b = { ref: i.buttonRef, id: a, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c =
|
|
1174
|
+
let g = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...w } = e, b = { ref: i.buttonRef, id: a, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = F(i.optionsRef)) == null ? void 0 : c.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(p = F(i.labelRef)) == null ? void 0 : p.id, a].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: r, onClick: s };
|
|
1175
1175
|
return he({ ourProps: b, theirProps: w, slot: g, attrs: o, slots: t, name: "ComboboxButton" });
|
|
1176
1176
|
};
|
|
1177
|
-
} }),
|
|
1177
|
+
} }), Un = ue({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: o, attrs: t, slots: n, expose: l }) {
|
|
1178
1178
|
var a;
|
|
1179
|
-
let i = (a = e.id) != null ? a : `headlessui-combobox-input-${Le()}`, s = me("ComboboxInput"), r = E(() => it(
|
|
1179
|
+
let i = (a = e.id) != null ? a : `headlessui-combobox-input-${Le()}`, s = me("ComboboxInput"), r = E(() => it(F(s.inputRef))), u = { value: !1 };
|
|
1180
1180
|
l({ el: s.inputRef, $el: s.inputRef });
|
|
1181
1181
|
function c() {
|
|
1182
1182
|
s.change(null);
|
|
1183
|
-
let y =
|
|
1183
|
+
let y = F(s.optionsRef);
|
|
1184
1184
|
y && (y.scrollTop = 0), s.goToOption(Z.Nothing);
|
|
1185
1185
|
}
|
|
1186
1186
|
let p = E(() => {
|
|
1187
1187
|
var y;
|
|
1188
1188
|
let M = s.value.value;
|
|
1189
|
-
return
|
|
1189
|
+
return F(s.inputRef) ? typeof e.displayValue < "u" && M !== void 0 ? (y = e.displayValue(M)) != null ? y : "" : typeof M == "string" ? M : "" : "";
|
|
1190
1190
|
});
|
|
1191
1191
|
ve(() => {
|
|
1192
1192
|
N([p, s.comboboxState, r], ([y, M], [C, h]) => {
|
|
1193
1193
|
if (u.value) return;
|
|
1194
|
-
let
|
|
1195
|
-
|
|
1194
|
+
let k = F(s.inputRef);
|
|
1195
|
+
k && ((h === 0 && M === 1 || y !== C) && (k.value = y), requestAnimationFrame(() => {
|
|
1196
1196
|
var d;
|
|
1197
|
-
if (u.value || !
|
|
1198
|
-
let { selectionStart: f, selectionEnd: S } =
|
|
1199
|
-
Math.abs((S ?? 0) - (f ?? 0)) === 0 && f === 0 &&
|
|
1197
|
+
if (u.value || !k || ((d = r.value) == null ? void 0 : d.activeElement) !== k) return;
|
|
1198
|
+
let { selectionStart: f, selectionEnd: S } = k;
|
|
1199
|
+
Math.abs((S ?? 0) - (f ?? 0)) === 0 && f === 0 && k.setSelectionRange(k.value.length, k.value.length);
|
|
1200
1200
|
}));
|
|
1201
1201
|
}, { immediate: !0 }), N([s.comboboxState], ([y], [M]) => {
|
|
1202
1202
|
if (y === 0 && M === 1) {
|
|
1203
1203
|
if (u.value) return;
|
|
1204
|
-
let C =
|
|
1204
|
+
let C = F(s.inputRef);
|
|
1205
1205
|
if (!C) return;
|
|
1206
|
-
let h = C.value, { selectionStart:
|
|
1207
|
-
C.value = "", C.value = h, f !== null ? C.setSelectionRange(
|
|
1206
|
+
let h = C.value, { selectionStart: k, selectionEnd: d, selectionDirection: f } = C;
|
|
1207
|
+
C.value = "", C.value = h, f !== null ? C.setSelectionRange(k, d, f) : C.setSelectionRange(k, d);
|
|
1208
1208
|
}
|
|
1209
1209
|
});
|
|
1210
1210
|
});
|
|
@@ -1217,8 +1217,8 @@ let H0 = ue({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1217
1217
|
g.value = !1;
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
|
-
let _ =
|
|
1221
|
-
function
|
|
1220
|
+
let _ = cn();
|
|
1221
|
+
function P(y) {
|
|
1222
1222
|
switch (u.value = !0, _(() => {
|
|
1223
1223
|
u.value = !1;
|
|
1224
1224
|
}), y.key) {
|
|
@@ -1263,34 +1263,34 @@ let H0 = ue({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1263
1263
|
}
|
|
1264
1264
|
function x(y) {
|
|
1265
1265
|
var M, C, h;
|
|
1266
|
-
let
|
|
1267
|
-
if (u.value = !1, !((C =
|
|
1266
|
+
let k = (M = y.relatedTarget) != null ? M : de.find((d) => d !== y.currentTarget);
|
|
1267
|
+
if (u.value = !1, !((C = F(s.optionsRef)) != null && C.contains(k)) && !((h = F(s.buttonRef)) != null && h.contains(k)) && s.comboboxState.value === 0) return y.preventDefault(), s.mode.value === 0 && (s.nullable.value && s.value.value === null ? c() : s.activationTrigger.value !== 1 && s.selectActiveOption()), s.closeCombobox();
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function A(y) {
|
|
1270
1270
|
var M, C, h;
|
|
1271
|
-
let
|
|
1272
|
-
(C =
|
|
1271
|
+
let k = (M = y.relatedTarget) != null ? M : de.find((d) => d !== y.currentTarget);
|
|
1272
|
+
(C = F(s.buttonRef)) != null && C.contains(k) || (h = F(s.optionsRef)) != null && h.contains(k) || s.disabled.value || s.immediate.value && s.comboboxState.value !== 0 && (s.openCombobox(), Ne().nextFrame(() => {
|
|
1273
1273
|
s.setActivationTrigger(1);
|
|
1274
1274
|
}));
|
|
1275
1275
|
}
|
|
1276
|
-
let
|
|
1276
|
+
let R = E(() => {
|
|
1277
1277
|
var y, M, C, h;
|
|
1278
1278
|
return (h = (C = (M = e.defaultValue) != null ? M : s.defaultValue.value !== void 0 ? (y = e.displayValue) == null ? void 0 : y.call(e, s.defaultValue.value) : null) != null ? C : s.defaultValue.value) != null ? h : "";
|
|
1279
1279
|
});
|
|
1280
1280
|
return () => {
|
|
1281
|
-
var y, M, C, h,
|
|
1282
|
-
let S = { open: s.comboboxState.value === 0 }, { displayValue: T, onChange:
|
|
1281
|
+
var y, M, C, h, k, d, f;
|
|
1282
|
+
let S = { open: s.comboboxState.value === 0 }, { displayValue: T, onChange: V, ...D } = e, Y = { "aria-controls": (y = s.optionsRef.value) == null ? void 0 : y.id, "aria-expanded": s.comboboxState.value === 0, "aria-activedescendant": s.activeOptionIndex.value === null ? void 0 : s.virtual.value ? (M = s.options.value.find((Q) => !s.virtual.value.disabled(Q.dataRef.value) && s.compare(Q.dataRef.value, s.virtual.value.options[s.activeOptionIndex.value]))) == null ? void 0 : M.id : (C = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : C.id, "aria-labelledby": (d = (h = F(s.labelRef)) == null ? void 0 : h.id) != null ? d : (k = F(s.buttonRef)) == null ? void 0 : k.id, "aria-autocomplete": "list", id: i, onCompositionstart: w, onCompositionend: b, onKeydown: P, onInput: I, onFocus: A, onBlur: x, role: "combobox", type: (f = t.type) != null ? f : "text", tabIndex: 0, ref: s.inputRef, defaultValue: R.value, disabled: s.disabled.value === !0 ? !0 : void 0 };
|
|
1283
1283
|
return he({ ourProps: Y, theirProps: D, slot: S, attrs: t, slots: n, features: Oe.RenderStrategy | Oe.Static, name: "ComboboxInput" });
|
|
1284
1284
|
};
|
|
1285
|
-
} }),
|
|
1285
|
+
} }), Zn = ue({ 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 }) {
|
|
1286
1286
|
let l = me("ComboboxOptions"), a = `headlessui-combobox-options-${Le()}`;
|
|
1287
1287
|
n({ el: l.optionsRef, $el: l.optionsRef }), re(() => {
|
|
1288
1288
|
l.optionsPropsRef.value.static = e.static;
|
|
1289
1289
|
}), re(() => {
|
|
1290
1290
|
l.optionsPropsRef.value.hold = e.hold;
|
|
1291
1291
|
});
|
|
1292
|
-
let i =
|
|
1293
|
-
|
|
1292
|
+
let i = An(), s = E(() => i !== null ? (i.value & $e.Open) === $e.Open : l.comboboxState.value === 0);
|
|
1293
|
+
In({ container: E(() => F(l.optionsRef)), enabled: E(() => l.comboboxState.value === 0), accept(u) {
|
|
1294
1294
|
return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
1295
1295
|
}, walk(u) {
|
|
1296
1296
|
u.setAttribute("role", "none");
|
|
@@ -1300,10 +1300,10 @@ let H0 = ue({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return () => {
|
|
1302
1302
|
var u, c, p;
|
|
1303
|
-
let g = { open: l.comboboxState.value === 0 }, w = { "aria-labelledby": (p = (u =
|
|
1304
|
-
return he({ ourProps: w, theirProps: b, slot: g, attrs: o, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ee(
|
|
1303
|
+
let g = { open: l.comboboxState.value === 0 }, w = { "aria-labelledby": (p = (u = F(l.labelRef)) == null ? void 0 : u.id) != null ? p : (c = F(l.buttonRef)) == null ? void 0 : c.id, id: a, ref: l.optionsRef, role: "listbox", "aria-multiselectable": l.mode.value === 1 ? !0 : void 0, onMousedown: r }, b = He(e, ["hold"]);
|
|
1304
|
+
return he({ ourProps: w, theirProps: b, slot: g, attrs: o, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ee(jn, {}, t.default)] } : t, features: Oe.RenderStrategy | Oe.Static, visible: s.value, name: "ComboboxOptions" });
|
|
1305
1305
|
};
|
|
1306
|
-
} }),
|
|
1306
|
+
} }), Wn = ue({ 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 }) {
|
|
1307
1307
|
let l = me("ComboboxOption"), a = `headlessui-combobox-option-${Le()}`, i = $(null), s = E(() => e.disabled);
|
|
1308
1308
|
n({ el: i, $el: i });
|
|
1309
1309
|
let r = E(() => {
|
|
@@ -1311,46 +1311,46 @@ let H0 = ue({ name: "ComboboxButton", props: { as: { type: [Object, String], def
|
|
|
1311
1311
|
return l.virtual.value ? l.activeOptionIndex.value === l.calculateIndex(e.value) : l.activeOptionIndex.value === null ? !1 : ((x = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : x.id) === a;
|
|
1312
1312
|
}), u = E(() => l.isSelected(e.value)), c = Te(qt, null), p = E(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: E(() => e.order) }));
|
|
1313
1313
|
ve(() => l.registerOption(a, p)), ot(() => l.unregisterOption(a, r.value)), re(() => {
|
|
1314
|
-
let x =
|
|
1314
|
+
let x = F(i);
|
|
1315
1315
|
x && (c == null || c.value.measureElement(x));
|
|
1316
1316
|
}), re(() => {
|
|
1317
1317
|
l.comboboxState.value === 0 && r.value && (l.virtual.value || l.activationTrigger.value !== 0 && oe(() => {
|
|
1318
|
-
var x,
|
|
1319
|
-
return (
|
|
1318
|
+
var x, A;
|
|
1319
|
+
return (A = (x = F(i)) == null ? void 0 : x.scrollIntoView) == null ? void 0 : A.call(x, { block: "nearest" });
|
|
1320
1320
|
}));
|
|
1321
1321
|
});
|
|
1322
1322
|
function g(x) {
|
|
1323
1323
|
x.preventDefault(), x.button === zt.Left && (s.value || (l.selectOption(a), Dt() || requestAnimationFrame(() => {
|
|
1324
|
-
var
|
|
1325
|
-
return (
|
|
1324
|
+
var A;
|
|
1325
|
+
return (A = F(l.inputRef)) == null ? void 0 : A.focus({ preventScroll: !0 });
|
|
1326
1326
|
}), l.mode.value === 0 && l.closeCombobox()));
|
|
1327
1327
|
}
|
|
1328
1328
|
function w() {
|
|
1329
1329
|
var x;
|
|
1330
1330
|
if (e.disabled || (x = l.virtual.value) != null && x.disabled(e.value)) return l.goToOption(Z.Nothing);
|
|
1331
|
-
let
|
|
1332
|
-
l.goToOption(Z.Specific,
|
|
1331
|
+
let A = l.calculateIndex(e.value);
|
|
1332
|
+
l.goToOption(Z.Specific, A);
|
|
1333
1333
|
}
|
|
1334
|
-
let b =
|
|
1334
|
+
let b = $n();
|
|
1335
1335
|
function _(x) {
|
|
1336
1336
|
b.update(x);
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1339
|
-
var
|
|
1340
|
-
if (!b.wasMoved(x) || e.disabled || (
|
|
1341
|
-
let
|
|
1342
|
-
l.goToOption(Z.Specific,
|
|
1338
|
+
function P(x) {
|
|
1339
|
+
var A;
|
|
1340
|
+
if (!b.wasMoved(x) || e.disabled || (A = l.virtual.value) != null && A.disabled(e.value) || r.value) return;
|
|
1341
|
+
let R = l.calculateIndex(e.value);
|
|
1342
|
+
l.goToOption(Z.Specific, R, 0);
|
|
1343
1343
|
}
|
|
1344
1344
|
function I(x) {
|
|
1345
|
-
var
|
|
1346
|
-
b.wasMoved(x) && (e.disabled || (
|
|
1345
|
+
var A;
|
|
1346
|
+
b.wasMoved(x) && (e.disabled || (A = l.virtual.value) != null && A.disabled(e.value) || r.value && (l.optionsPropsRef.value.hold || l.goToOption(Z.Nothing)));
|
|
1347
1347
|
}
|
|
1348
1348
|
return () => {
|
|
1349
|
-
let { disabled: x } = e,
|
|
1350
|
-
return he({ ourProps:
|
|
1349
|
+
let { disabled: x } = e, A = { active: r.value, selected: u.value, disabled: x }, R = { id: a, ref: i, role: "option", tabIndex: x === !0 ? void 0 : -1, "aria-disabled": x === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: g, onFocus: w, onPointerenter: _, onMouseenter: _, onPointermove: P, onMousemove: P, onPointerleave: I, onMouseleave: I }, y = He(e, ["order", "value"]);
|
|
1350
|
+
return he({ ourProps: R, theirProps: y, slot: A, attrs: t, slots: o, name: "ComboboxOption" });
|
|
1351
1351
|
};
|
|
1352
1352
|
} });
|
|
1353
|
-
function
|
|
1353
|
+
function Gn(e, o) {
|
|
1354
1354
|
return m(), O("svg", {
|
|
1355
1355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1356
1356
|
viewBox: "0 0 20 20",
|
|
@@ -1365,7 +1365,7 @@ function W0(e, o) {
|
|
|
1365
1365
|
})
|
|
1366
1366
|
]);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function qn(e, o) {
|
|
1369
1369
|
return m(), O("svg", {
|
|
1370
1370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1371
1371
|
viewBox: "0 0 20 20",
|
|
@@ -1380,7 +1380,7 @@ function G0(e, o) {
|
|
|
1380
1380
|
})
|
|
1381
1381
|
]);
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function Jn(e, o) {
|
|
1384
1384
|
return m(), O("svg", {
|
|
1385
1385
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1386
1386
|
viewBox: "0 0 20 20",
|
|
@@ -1396,7 +1396,7 @@ function q0(e, o) {
|
|
|
1396
1396
|
]);
|
|
1397
1397
|
}
|
|
1398
1398
|
var Jt = !1;
|
|
1399
|
-
function
|
|
1399
|
+
function Ve(e, o, t) {
|
|
1400
1400
|
return Array.isArray(e) ? (e.length = Math.max(e.length, o), e.splice(o, 1, t), t) : (e[o] = t, t);
|
|
1401
1401
|
}
|
|
1402
1402
|
function Ye(e, o) {
|
|
@@ -1406,22 +1406,22 @@ function Ye(e, o) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
delete e[o];
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function Kn() {
|
|
1410
1410
|
return Kt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1411
1411
|
}
|
|
1412
1412
|
function Kt() {
|
|
1413
1413
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1414
1414
|
}
|
|
1415
|
-
const
|
|
1415
|
+
const Yn = typeof Proxy == "function", Qn = "devtools-plugin:setup", Xn = "plugin:settings:set";
|
|
1416
1416
|
let ge, Qe;
|
|
1417
|
-
function
|
|
1417
|
+
function e0() {
|
|
1418
1418
|
var e;
|
|
1419
1419
|
return ge !== void 0 || (typeof window < "u" && window.performance ? (ge = !0, Qe = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ge = !0, Qe = globalThis.perf_hooks.performance) : ge = !1), ge;
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1422
|
-
return
|
|
1421
|
+
function t0() {
|
|
1422
|
+
return e0() ? Qe.now() : Date.now();
|
|
1423
1423
|
}
|
|
1424
|
-
class
|
|
1424
|
+
class n0 {
|
|
1425
1425
|
constructor(o, t) {
|
|
1426
1426
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = o, this.hook = t;
|
|
1427
1427
|
const n = {};
|
|
@@ -1449,9 +1449,9 @@ class tn {
|
|
|
1449
1449
|
a = i;
|
|
1450
1450
|
},
|
|
1451
1451
|
now() {
|
|
1452
|
-
return
|
|
1452
|
+
return t0();
|
|
1453
1453
|
}
|
|
1454
|
-
}, t && t.on(
|
|
1454
|
+
}, t && t.on(Xn, (i, s) => {
|
|
1455
1455
|
i === this.plugin.id && this.fallbacks.setSettings(s);
|
|
1456
1456
|
}), this.proxiedOn = new Proxy({}, {
|
|
1457
1457
|
get: (i, s) => this.target ? this.target.on[s] : (...r) => {
|
|
@@ -1484,11 +1484,11 @@ class tn {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
1486
|
function Yt(e, o) {
|
|
1487
|
-
const t = e, n = Kt(), l =
|
|
1487
|
+
const t = e, n = Kt(), l = Kn(), a = Yn && t.enableEarlyProxy;
|
|
1488
1488
|
if (l && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
1489
|
-
l.emit(
|
|
1489
|
+
l.emit(Qn, e, o);
|
|
1490
1490
|
else {
|
|
1491
|
-
const i = a ? new
|
|
1491
|
+
const i = a ? new n0(t, l) : null;
|
|
1492
1492
|
(n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1493
1493
|
pluginDescriptor: t,
|
|
1494
1494
|
setupFn: o,
|
|
@@ -1514,7 +1514,7 @@ var le;
|
|
|
1514
1514
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
1515
1515
|
})(le || (le = {}));
|
|
1516
1516
|
const ze = typeof window < "u", Se = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && ze, Ct = 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 };
|
|
1517
|
-
function
|
|
1517
|
+
function o0(e, { autoBom: o = !1 } = {}) {
|
|
1518
1518
|
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;
|
|
1519
1519
|
}
|
|
1520
1520
|
function rt(e, o, t) {
|
|
@@ -1534,7 +1534,7 @@ function Xt(e) {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
return o.status >= 200 && o.status <= 299;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function Pe(e) {
|
|
1538
1538
|
try {
|
|
1539
1539
|
e.dispatchEvent(new MouseEvent("click"));
|
|
1540
1540
|
} catch {
|
|
@@ -1542,39 +1542,39 @@ function Re(e) {
|
|
|
1542
1542
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
|
-
const
|
|
1545
|
+
const Re = typeof navigator == "object" ? navigator : { userAgent: "" }, e2 = /Macintosh/.test(Re.userAgent) && /AppleWebKit/.test(Re.userAgent) && !/Safari/.test(Re.userAgent), t2 = ze ? (
|
|
1546
1546
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
1547
|
-
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !e2 ?
|
|
1547
|
+
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !e2 ? l0 : (
|
|
1548
1548
|
// Use msSaveOrOpenBlob as a second approach
|
|
1549
|
-
"msSaveOrOpenBlob" in
|
|
1549
|
+
"msSaveOrOpenBlob" in Re ? s0 : (
|
|
1550
1550
|
// Fallback to using FileReader and a popup
|
|
1551
|
-
|
|
1551
|
+
a0
|
|
1552
1552
|
)
|
|
1553
1553
|
)
|
|
1554
1554
|
) : () => {
|
|
1555
1555
|
};
|
|
1556
|
-
function
|
|
1556
|
+
function l0(e, o = "download", t) {
|
|
1557
1557
|
const n = document.createElement("a");
|
|
1558
|
-
n.download = o, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Xt(n.href) ? rt(e, o, t) : (n.target = "_blank",
|
|
1558
|
+
n.download = o, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Xt(n.href) ? rt(e, o, t) : (n.target = "_blank", Pe(n)) : Pe(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
|
|
1559
1559
|
URL.revokeObjectURL(n.href);
|
|
1560
1560
|
}, 4e4), setTimeout(function() {
|
|
1561
|
-
|
|
1561
|
+
Pe(n);
|
|
1562
1562
|
}, 0));
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function s0(e, o = "download", t) {
|
|
1565
1565
|
if (typeof e == "string")
|
|
1566
1566
|
if (Xt(e))
|
|
1567
1567
|
rt(e, o, t);
|
|
1568
1568
|
else {
|
|
1569
1569
|
const n = document.createElement("a");
|
|
1570
1570
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
1571
|
-
|
|
1571
|
+
Pe(n);
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
1574
1574
|
else
|
|
1575
|
-
navigator.msSaveOrOpenBlob(
|
|
1575
|
+
navigator.msSaveOrOpenBlob(o0(e, t), o);
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1577
|
+
function a0(e, o, t, n) {
|
|
1578
1578
|
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
|
|
1579
1579
|
return rt(e, o, t);
|
|
1580
1580
|
const l = e.type === "application/octet-stream", a = /constructor/i.test(String(Ct.HTMLElement)) || "safari" in Ct, i = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
@@ -1607,7 +1607,7 @@ function n2() {
|
|
|
1607
1607
|
function o2(e) {
|
|
1608
1608
|
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (U('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
1609
1609
|
}
|
|
1610
|
-
async function
|
|
1610
|
+
async function i0(e) {
|
|
1611
1611
|
if (!n2())
|
|
1612
1612
|
try {
|
|
1613
1613
|
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), U("Global state copied to clipboard.");
|
|
@@ -1617,7 +1617,7 @@ async function an(e) {
|
|
|
1617
1617
|
U("Failed to serialize the state. Check the console for more details.", "error"), console.error(o);
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
async function
|
|
1620
|
+
async function r0(e) {
|
|
1621
1621
|
if (!n2())
|
|
1622
1622
|
try {
|
|
1623
1623
|
l2(e, JSON.parse(await navigator.clipboard.readText())), U("Global state pasted from clipboard.");
|
|
@@ -1627,7 +1627,7 @@ async function rn(e) {
|
|
|
1627
1627
|
U("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(o);
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
|
-
async function
|
|
1630
|
+
async function u0(e) {
|
|
1631
1631
|
try {
|
|
1632
1632
|
t2(new Blob([JSON.stringify(e.state.value)], {
|
|
1633
1633
|
type: "text/plain;charset=utf-8"
|
|
@@ -1637,7 +1637,7 @@ async function un(e) {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
1639
|
let se;
|
|
1640
|
-
function
|
|
1640
|
+
function c0() {
|
|
1641
1641
|
se || (se = document.createElement("input"), se.type = "file", se.accept = ".json");
|
|
1642
1642
|
function e() {
|
|
1643
1643
|
return new Promise((o, t) => {
|
|
@@ -1652,9 +1652,9 @@ function cn() {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
return e;
|
|
1654
1654
|
}
|
|
1655
|
-
async function
|
|
1655
|
+
async function d0(e) {
|
|
1656
1656
|
try {
|
|
1657
|
-
const t = await
|
|
1657
|
+
const t = await c0()();
|
|
1658
1658
|
if (!t)
|
|
1659
1659
|
return;
|
|
1660
1660
|
const { text: n, file: l } = t;
|
|
@@ -1677,7 +1677,7 @@ function ne(e) {
|
|
|
1677
1677
|
};
|
|
1678
1678
|
}
|
|
1679
1679
|
const s2 = "🍍 Pinia (root)", Xe = "_root";
|
|
1680
|
-
function
|
|
1680
|
+
function f0(e) {
|
|
1681
1681
|
return ut(e) ? {
|
|
1682
1682
|
id: Xe,
|
|
1683
1683
|
label: s2
|
|
@@ -1686,7 +1686,7 @@ function fn(e) {
|
|
|
1686
1686
|
label: e.$id
|
|
1687
1687
|
};
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function p0(e) {
|
|
1690
1690
|
if (ut(e)) {
|
|
1691
1691
|
const t = Array.from(e._s.keys()), n = e._s;
|
|
1692
1692
|
return {
|
|
@@ -1722,7 +1722,7 @@ function pn(e) {
|
|
|
1722
1722
|
value: e[t]
|
|
1723
1723
|
}))), o;
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function v0(e) {
|
|
1726
1726
|
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), {
|
|
1727
1727
|
oldValue: {},
|
|
1728
1728
|
keys: [],
|
|
@@ -1735,7 +1735,7 @@ function vn(e) {
|
|
|
1735
1735
|
newValue: e.newValue
|
|
1736
1736
|
} : {};
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function h0(e) {
|
|
1739
1739
|
switch (e) {
|
|
1740
1740
|
case le.direct:
|
|
1741
1741
|
return "mutation";
|
|
@@ -1748,8 +1748,8 @@ function hn(e) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
}
|
|
1750
1750
|
let xe = !0;
|
|
1751
|
-
const De = [], ce = "pinia:mutations", W = "pinia", { assign:
|
|
1752
|
-
function
|
|
1751
|
+
const De = [], ce = "pinia:mutations", W = "pinia", { assign: m0 } = Object, Be = (e) => "🍍 " + e;
|
|
1752
|
+
function b0(e, o) {
|
|
1753
1753
|
Yt({
|
|
1754
1754
|
id: "dev.esm.pinia",
|
|
1755
1755
|
label: "Pinia 🍍",
|
|
@@ -1772,28 +1772,28 @@ function bn(e, o) {
|
|
|
1772
1772
|
{
|
|
1773
1773
|
icon: "content_copy",
|
|
1774
1774
|
action: () => {
|
|
1775
|
-
|
|
1775
|
+
i0(o);
|
|
1776
1776
|
},
|
|
1777
1777
|
tooltip: "Serialize and copy the state"
|
|
1778
1778
|
},
|
|
1779
1779
|
{
|
|
1780
1780
|
icon: "content_paste",
|
|
1781
1781
|
action: async () => {
|
|
1782
|
-
await
|
|
1782
|
+
await r0(o), t.sendInspectorTree(W), t.sendInspectorState(W);
|
|
1783
1783
|
},
|
|
1784
1784
|
tooltip: "Replace the state with the content of your clipboard"
|
|
1785
1785
|
},
|
|
1786
1786
|
{
|
|
1787
1787
|
icon: "save",
|
|
1788
1788
|
action: () => {
|
|
1789
|
-
|
|
1789
|
+
u0(o);
|
|
1790
1790
|
},
|
|
1791
1791
|
tooltip: "Save the state as a JSON file"
|
|
1792
1792
|
},
|
|
1793
1793
|
{
|
|
1794
1794
|
icon: "folder_open",
|
|
1795
1795
|
action: async () => {
|
|
1796
|
-
await
|
|
1796
|
+
await d0(o), t.sendInspectorTree(W), t.sendInspectorState(W);
|
|
1797
1797
|
},
|
|
1798
1798
|
tooltip: "Import the state from a JSON file"
|
|
1799
1799
|
}
|
|
@@ -1850,14 +1850,14 @@ function bn(e, o) {
|
|
|
1850
1850
|
}), t.on.getInspectorTree((n) => {
|
|
1851
1851
|
if (n.app === e && n.inspectorId === W) {
|
|
1852
1852
|
let l = [o];
|
|
1853
|
-
l = l.concat(Array.from(o._s.values())), n.rootNodes = (n.filter ? l.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(n.filter.toLowerCase()) : s2.toLowerCase().includes(n.filter.toLowerCase())) : l).map(
|
|
1853
|
+
l = l.concat(Array.from(o._s.values())), n.rootNodes = (n.filter ? l.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(n.filter.toLowerCase()) : s2.toLowerCase().includes(n.filter.toLowerCase())) : l).map(f0);
|
|
1854
1854
|
}
|
|
1855
1855
|
}), t.on.getInspectorState((n) => {
|
|
1856
1856
|
if (n.app === e && n.inspectorId === W) {
|
|
1857
1857
|
const l = n.nodeId === Xe ? o : o._s.get(n.nodeId);
|
|
1858
1858
|
if (!l)
|
|
1859
1859
|
return;
|
|
1860
|
-
l && (n.state =
|
|
1860
|
+
l && (n.state = p0(l));
|
|
1861
1861
|
}
|
|
1862
1862
|
}), t.on.editInspectorState((n, l) => {
|
|
1863
1863
|
if (n.app === e && n.inspectorId === W) {
|
|
@@ -1882,7 +1882,7 @@ Only state can be modified.`);
|
|
|
1882
1882
|
});
|
|
1883
1883
|
});
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function g0(e, o) {
|
|
1886
1886
|
De.includes(Be(o.$id)) || De.push(Be(o.$id)), Yt({
|
|
1887
1887
|
id: "dev.esm.pinia",
|
|
1888
1888
|
label: "Pinia 🍍",
|
|
@@ -1975,8 +1975,8 @@ function gn(e, o) {
|
|
|
1975
1975
|
return;
|
|
1976
1976
|
const u = {
|
|
1977
1977
|
time: n(),
|
|
1978
|
-
title:
|
|
1979
|
-
data:
|
|
1978
|
+
title: h0(s),
|
|
1979
|
+
data: m0({ store: ne(o.$id) }, v0(i)),
|
|
1980
1980
|
groupId: ie
|
|
1981
1981
|
};
|
|
1982
1982
|
s === le.patchFunction ? u.subtitle = "⤵️" : s === le.patchObject ? u.subtitle = "🧩" : i && !Array.isArray(i) && (u.subtitle = i.type), i && (u.data["rawEvent(s)"] = {
|
|
@@ -2030,25 +2030,25 @@ function xt(e, o, t) {
|
|
|
2030
2030
|
return ie = void 0, s;
|
|
2031
2031
|
};
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function C0({ app: e, store: o, options: t }) {
|
|
2034
2034
|
if (o.$id.startsWith("__hot:"))
|
|
2035
2035
|
return;
|
|
2036
2036
|
o._isOptionsAPI = !!t.state, xt(o, Object.keys(t.actions), o._isOptionsAPI);
|
|
2037
2037
|
const n = o._hotUpdate;
|
|
2038
2038
|
ee(o)._hotUpdate = function(l) {
|
|
2039
2039
|
n.apply(this, arguments), xt(o, Object.keys(l._hmrPayload.actions), !!o._isOptionsAPI);
|
|
2040
|
-
},
|
|
2040
|
+
}, g0(
|
|
2041
2041
|
e,
|
|
2042
2042
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
2043
2043
|
o
|
|
2044
2044
|
);
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function x0() {
|
|
2047
2047
|
const e = Mt(!0), o = e.run(() => $({}));
|
|
2048
2048
|
let t = [], n = [];
|
|
2049
2049
|
const l = fe({
|
|
2050
2050
|
install(a) {
|
|
2051
|
-
Ie(l), l._a = a, a.provide(Qt, l), a.config.globalProperties.$pinia = l, Se &&
|
|
2051
|
+
Ie(l), l._a = a, a.provide(Qt, l), a.config.globalProperties.$pinia = l, Se && b0(a, l), n.forEach((i) => t.push(i)), n = [];
|
|
2052
2052
|
},
|
|
2053
2053
|
use(a) {
|
|
2054
2054
|
return !this._a && !Jt ? n.push(a) : t.push(a), this;
|
|
@@ -2061,7 +2061,7 @@ function xn() {
|
|
|
2061
2061
|
_s: /* @__PURE__ */ new Map(),
|
|
2062
2062
|
state: o
|
|
2063
2063
|
});
|
|
2064
|
-
return Se && typeof Proxy < "u" && l.use(
|
|
2064
|
+
return Se && typeof Proxy < "u" && l.use(C0), l;
|
|
2065
2065
|
}
|
|
2066
2066
|
function i2(e, o) {
|
|
2067
2067
|
for (const t in o) {
|
|
@@ -2081,14 +2081,14 @@ function yt(e, o, t, n = r2) {
|
|
|
2081
2081
|
const a = e.indexOf(o);
|
|
2082
2082
|
a > -1 && (e.splice(a, 1), n());
|
|
2083
2083
|
};
|
|
2084
|
-
return !t &&
|
|
2084
|
+
return !t && At() && nt(l), l;
|
|
2085
2085
|
}
|
|
2086
2086
|
function Ce(e, ...o) {
|
|
2087
2087
|
e.slice().forEach((t) => {
|
|
2088
2088
|
t(...o);
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
|
-
const
|
|
2091
|
+
const y0 = (e) => e();
|
|
2092
2092
|
function et(e, o) {
|
|
2093
2093
|
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);
|
|
2094
2094
|
for (const t in o) {
|
|
@@ -2099,12 +2099,12 @@ function et(e, o) {
|
|
|
2099
2099
|
}
|
|
2100
2100
|
return e;
|
|
2101
2101
|
}
|
|
2102
|
-
const
|
|
2102
|
+
const w0 = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
2103
2103
|
/* istanbul ignore next */
|
|
2104
2104
|
Symbol()
|
|
2105
2105
|
);
|
|
2106
|
-
function
|
|
2107
|
-
return !pe(e) || !e.hasOwnProperty(
|
|
2106
|
+
function _0(e) {
|
|
2107
|
+
return !pe(e) || !e.hasOwnProperty(w0);
|
|
2108
2108
|
}
|
|
2109
2109
|
const { assign: X } = Object;
|
|
2110
2110
|
function wt(e) {
|
|
@@ -2143,7 +2143,7 @@ function tt(e, o, t = {}, n, l, a) {
|
|
|
2143
2143
|
const b = n.state.value[e];
|
|
2144
2144
|
!a && !b && (process.env.NODE_ENV === "production" || !l) && (n.state.value[e] = {});
|
|
2145
2145
|
const _ = $({});
|
|
2146
|
-
let
|
|
2146
|
+
let P;
|
|
2147
2147
|
function I(d) {
|
|
2148
2148
|
let f;
|
|
2149
2149
|
u = c = !1, process.env.NODE_ENV !== "production" && (w = []), typeof d == "function" ? (d(n.state.value[e]), f = {
|
|
@@ -2156,9 +2156,9 @@ function tt(e, o, t = {}, n, l, a) {
|
|
|
2156
2156
|
storeId: e,
|
|
2157
2157
|
events: w
|
|
2158
2158
|
});
|
|
2159
|
-
const S =
|
|
2159
|
+
const S = P = Symbol();
|
|
2160
2160
|
oe().then(() => {
|
|
2161
|
-
|
|
2161
|
+
P === S && (u = !0);
|
|
2162
2162
|
}), c = !0, Ce(p, f, n.state.value[e]);
|
|
2163
2163
|
}
|
|
2164
2164
|
const x = a ? function() {
|
|
@@ -2172,18 +2172,18 @@ function tt(e, o, t = {}, n, l, a) {
|
|
|
2172
2172
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
2173
2173
|
} : r2
|
|
2174
2174
|
);
|
|
2175
|
-
function
|
|
2175
|
+
function A() {
|
|
2176
2176
|
i.stop(), p = [], g = [], n._s.delete(e);
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function R(d, f) {
|
|
2179
2179
|
return function() {
|
|
2180
2180
|
Ie(n);
|
|
2181
|
-
const S = Array.from(arguments), T = [],
|
|
2181
|
+
const S = Array.from(arguments), T = [], V = [];
|
|
2182
2182
|
function D(z) {
|
|
2183
2183
|
T.push(z);
|
|
2184
2184
|
}
|
|
2185
2185
|
function Y(z) {
|
|
2186
|
-
|
|
2186
|
+
V.push(z);
|
|
2187
2187
|
}
|
|
2188
2188
|
Ce(g, {
|
|
2189
2189
|
args: S,
|
|
@@ -2196,9 +2196,9 @@ function tt(e, o, t = {}, n, l, a) {
|
|
|
2196
2196
|
try {
|
|
2197
2197
|
Q = f.apply(this && this.$id === e ? this : C, S);
|
|
2198
2198
|
} catch (z) {
|
|
2199
|
-
throw Ce(
|
|
2199
|
+
throw Ce(V, z), z;
|
|
2200
2200
|
}
|
|
2201
|
-
return Q instanceof Promise ? Q.then((z) => (Ce(T, z), z)).catch((z) => (Ce(
|
|
2201
|
+
return Q instanceof Promise ? Q.then((z) => (Ce(T, z), z)).catch((z) => (Ce(V, z), Promise.reject(z))) : (Ce(T, Q), Q);
|
|
2202
2202
|
};
|
|
2203
2203
|
}
|
|
2204
2204
|
const y = /* @__PURE__ */ fe({
|
|
@@ -2214,16 +2214,16 @@ function tt(e, o, t = {}, n, l, a) {
|
|
|
2214
2214
|
$patch: I,
|
|
2215
2215
|
$reset: x,
|
|
2216
2216
|
$subscribe(d, f = {}) {
|
|
2217
|
-
const S = yt(p, d, f.detached, () => T()), T = i.run(() => N(() => n.state.value[e], (
|
|
2217
|
+
const S = yt(p, d, f.detached, () => T()), T = i.run(() => N(() => n.state.value[e], (V) => {
|
|
2218
2218
|
(f.flush === "sync" ? c : u) && d({
|
|
2219
2219
|
storeId: e,
|
|
2220
2220
|
type: le.direct,
|
|
2221
2221
|
events: w
|
|
2222
|
-
},
|
|
2222
|
+
}, V);
|
|
2223
2223
|
}, X({}, r, f)));
|
|
2224
2224
|
return S;
|
|
2225
2225
|
},
|
|
2226
|
-
$dispose:
|
|
2226
|
+
$dispose: A
|
|
2227
2227
|
}, C = Lt(process.env.NODE_ENV !== "production" || Se ? X(
|
|
2228
2228
|
{
|
|
2229
2229
|
_hmrPayload: y,
|
|
@@ -2235,21 +2235,21 @@ function tt(e, o, t = {}, n, l, a) {
|
|
|
2235
2235
|
// setupStore
|
|
2236
2236
|
) : M);
|
|
2237
2237
|
n._s.set(e, C);
|
|
2238
|
-
const
|
|
2239
|
-
for (const d in
|
|
2240
|
-
const f =
|
|
2238
|
+
const k = (n._a && n._a.runWithContext || y0)(() => n._e.run(() => (i = Mt()).run(o)));
|
|
2239
|
+
for (const d in k) {
|
|
2240
|
+
const f = k[d];
|
|
2241
2241
|
if (ye(f) && !wt(f) || st(f))
|
|
2242
|
-
process.env.NODE_ENV !== "production" && l ?
|
|
2242
|
+
process.env.NODE_ENV !== "production" && l ? Ve(_.value, d, qe(k, d)) : a || (b && _0(f) && (ye(f) ? f.value = b[d] : et(f, b[d])), n.state.value[e][d] = f), process.env.NODE_ENV !== "production" && y.state.push(d);
|
|
2243
2243
|
else if (typeof f == "function") {
|
|
2244
|
-
const S = process.env.NODE_ENV !== "production" && l ? f :
|
|
2245
|
-
|
|
2244
|
+
const S = process.env.NODE_ENV !== "production" && l ? f : R(d, f);
|
|
2245
|
+
k[d] = S, process.env.NODE_ENV !== "production" && (y.actions[d] = f), s.actions[d] = f;
|
|
2246
2246
|
} else process.env.NODE_ENV !== "production" && wt(f) && (y.getters[d] = a ? (
|
|
2247
2247
|
// @ts-expect-error
|
|
2248
2248
|
t.getters[d]
|
|
2249
|
-
) : f, ze && (
|
|
2250
|
-
(
|
|
2249
|
+
) : f, ze && (k._getters || // @ts-expect-error: same
|
|
2250
|
+
(k._getters = fe([]))).push(d));
|
|
2251
2251
|
}
|
|
2252
|
-
if (X(C,
|
|
2252
|
+
if (X(C, k), X(ee(C), k), Object.defineProperty(C, "$state", {
|
|
2253
2253
|
get: () => process.env.NODE_ENV !== "production" && l ? _.value : n.state.value[e],
|
|
2254
2254
|
set: (d) => {
|
|
2255
2255
|
if (process.env.NODE_ENV !== "production" && l)
|
|
@@ -2264,7 +2264,7 @@ function tt(e, o, t = {}, n, l, a) {
|
|
|
2264
2264
|
const S = d.$state[f], T = C.$state[f];
|
|
2265
2265
|
typeof S == "object" && pe(S) && pe(T) ? i2(S, T) : d.$state[f] = T;
|
|
2266
2266
|
}
|
|
2267
|
-
|
|
2267
|
+
Ve(C, f, qe(d.$state, f));
|
|
2268
2268
|
}), Object.keys(C.$state).forEach((f) => {
|
|
2269
2269
|
f in d.$state || Ye(C, f);
|
|
2270
2270
|
}), u = !1, c = !1, n.state.value[e] = qe(d._hmrPayload, "hotState"), c = !0, oe().then(() => {
|
|
@@ -2272,14 +2272,14 @@ function tt(e, o, t = {}, n, l, a) {
|
|
|
2272
2272
|
});
|
|
2273
2273
|
for (const f in d._hmrPayload.actions) {
|
|
2274
2274
|
const S = d[f];
|
|
2275
|
-
|
|
2275
|
+
Ve(C, f, R(f, S));
|
|
2276
2276
|
}
|
|
2277
2277
|
for (const f in d._hmrPayload.getters) {
|
|
2278
2278
|
const S = d._hmrPayload.getters[f], T = a ? (
|
|
2279
2279
|
// special handling of options api
|
|
2280
2280
|
E(() => (Ie(n), S.call(C, C)))
|
|
2281
2281
|
) : S;
|
|
2282
|
-
|
|
2282
|
+
Ve(C, f, T);
|
|
2283
2283
|
}
|
|
2284
2284
|
Object.keys(C._hmrPayload.getters).forEach((f) => {
|
|
2285
2285
|
f in d._hmrPayload.getters || Ye(C, f);
|
|
@@ -2339,7 +2339,7 @@ This will fail in production.`);
|
|
|
2339
2339
|
r._hotUpdate(g), delete s.state.value[p], s._s.delete(p);
|
|
2340
2340
|
}
|
|
2341
2341
|
if (process.env.NODE_ENV !== "production" && ze) {
|
|
2342
|
-
const p =
|
|
2342
|
+
const p = kt();
|
|
2343
2343
|
if (p && p.proxy && // avoid adding stores that are just built for hot module replacement
|
|
2344
2344
|
!r) {
|
|
2345
2345
|
const g = p.proxy, w = "_pStores" in g ? g._pStores : g._pStores = {};
|
|
@@ -2376,27 +2376,27 @@ const Me = Ue("loader", () => {
|
|
|
2376
2376
|
)), s = (r) => {
|
|
2377
2377
|
r.target.value = "", l.value = "", a.value && a.value.$el.click();
|
|
2378
2378
|
};
|
|
2379
|
-
return (r, u) => (m(), q(L(
|
|
2379
|
+
return (r, u) => (m(), q(L(Hn), {
|
|
2380
2380
|
modelValue: n.value,
|
|
2381
2381
|
"onUpdate:modelValue": u[3] || (u[3] = (c) => n.value = c),
|
|
2382
2382
|
disabled: L(o).loading,
|
|
2383
2383
|
as: "div",
|
|
2384
2384
|
class: "relative mt-1"
|
|
2385
2385
|
}, {
|
|
2386
|
-
default:
|
|
2387
|
-
B(L(
|
|
2386
|
+
default: ke(() => [
|
|
2387
|
+
B(L(Un), {
|
|
2388
2388
|
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",
|
|
2389
2389
|
onChange: u[0] || (u[0] = (c) => l.value = c.target.value),
|
|
2390
2390
|
displayValue: (c) => e.languages[c],
|
|
2391
2391
|
onFocus: u[1] || (u[1] = (c) => s(c))
|
|
2392
2392
|
}, null, 8, ["displayValue"]),
|
|
2393
|
-
B(L(
|
|
2393
|
+
B(L(zn), {
|
|
2394
2394
|
ref_key: "btnSelect",
|
|
2395
2395
|
ref: a,
|
|
2396
2396
|
class: "absolute inset-y-0 right-0 flex items-center pr-2"
|
|
2397
2397
|
}, {
|
|
2398
|
-
default:
|
|
2399
|
-
B(L(
|
|
2398
|
+
default: ke(() => [
|
|
2399
|
+
B(L(qn), {
|
|
2400
2400
|
class: "h-5 w-5 text-gray-400",
|
|
2401
2401
|
"aria-hidden": "true",
|
|
2402
2402
|
onClick: u[2] || (u[2] = (c) => s(c))
|
|
@@ -2404,13 +2404,13 @@ const Me = Ue("loader", () => {
|
|
|
2404
2404
|
]),
|
|
2405
2405
|
_: 1
|
|
2406
2406
|
}, 512),
|
|
2407
|
-
B(L(
|
|
2408
|
-
default:
|
|
2409
|
-
(m(!0), O(G, null, te(i.value, ([c, p]) => (m(), q(L(
|
|
2407
|
+
B(L(Zn), { 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" }, {
|
|
2408
|
+
default: ke(() => [
|
|
2409
|
+
(m(!0), O(G, null, te(i.value, ([c, p]) => (m(), q(L(Wn), {
|
|
2410
2410
|
key: c,
|
|
2411
2411
|
value: c
|
|
2412
2412
|
}, {
|
|
2413
|
-
default:
|
|
2413
|
+
default: ke(({ active: g, selected: w }) => [
|
|
2414
2414
|
v("li", {
|
|
2415
2415
|
class: j([
|
|
2416
2416
|
"relative cursor-default select-none py-2 pl-3 pr-9",
|
|
@@ -2431,19 +2431,19 @@ const Me = Ue("loader", () => {
|
|
|
2431
2431
|
_: 1
|
|
2432
2432
|
}, 8, ["modelValue", "disabled"]));
|
|
2433
2433
|
}
|
|
2434
|
-
}, u2 = "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",
|
|
2434
|
+
}, u2 = "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", S0 = ["disabled"], E0 = /* @__PURE__ */ v("img", {
|
|
2435
2435
|
src: u2,
|
|
2436
2436
|
alt: "swap",
|
|
2437
2437
|
class: "w-4"
|
|
2438
|
-
}, null, -1),
|
|
2439
|
-
|
|
2440
|
-
], $
|
|
2438
|
+
}, null, -1), O0 = [
|
|
2439
|
+
E0
|
|
2440
|
+
], $0 = ["disabled"], I0 = /* @__PURE__ */ v("img", {
|
|
2441
2441
|
src: u2,
|
|
2442
2442
|
alt: "swap",
|
|
2443
2443
|
class: "w-4"
|
|
2444
|
-
}, null, -1),
|
|
2445
|
-
|
|
2446
|
-
],
|
|
2444
|
+
}, null, -1), T0 = [
|
|
2445
|
+
I0
|
|
2446
|
+
], L0 = {
|
|
2447
2447
|
__name: "SwapBtn",
|
|
2448
2448
|
props: {
|
|
2449
2449
|
isBidirect: {
|
|
@@ -2458,10 +2458,10 @@ const Me = Ue("loader", () => {
|
|
|
2458
2458
|
key: 1,
|
|
2459
2459
|
onClick: i[0] || (i[0] = (s) => l("swap")),
|
|
2460
2460
|
disabled: n.value
|
|
2461
|
-
},
|
|
2461
|
+
}, T0, 8, $0)) : (m(), O("button", {
|
|
2462
2462
|
key: 0,
|
|
2463
2463
|
disabled: n.value
|
|
2464
|
-
},
|
|
2464
|
+
}, O0, 8, S0));
|
|
2465
2465
|
}
|
|
2466
2466
|
}, Ze = Ue("language", () => {
|
|
2467
2467
|
const e = $("auto"), o = $("vi"), t = $({
|
|
@@ -2480,16 +2480,16 @@ const Me = Ue("loader", () => {
|
|
|
2480
2480
|
return t.value.src[r] || t.value.target[r];
|
|
2481
2481
|
}
|
|
2482
2482
|
return { languages: t, src: e, target: o, srcLabel: n, targetLabel: l, init: a, swap: i, getLabel: s };
|
|
2483
|
-
}),
|
|
2483
|
+
}), M0 = {
|
|
2484
2484
|
key: 0,
|
|
2485
2485
|
class: "flex flex-col"
|
|
2486
|
-
},
|
|
2486
|
+
}, k0 = { class: "flex" }, A0 = { class: "grow flex flex-col" }, F0 = { class: "grow flex flex-col" }, V0 = { class: "flex" }, P0 = { class: "grow flex flex-col" }, R0 = {
|
|
2487
2487
|
key: 0,
|
|
2488
2488
|
class: "flex mt-1 space-x-1"
|
|
2489
|
-
},
|
|
2489
|
+
}, D0 = ["onClick"], N0 = { class: "grow flex flex-col" }, B0 = {
|
|
2490
2490
|
key: 0,
|
|
2491
2491
|
class: "flex mt-1 space-x-1 justify-end"
|
|
2492
|
-
},
|
|
2492
|
+
}, j0 = ["onClick"], Et = 3, H0 = {
|
|
2493
2493
|
__name: "Selects",
|
|
2494
2494
|
setup(e) {
|
|
2495
2495
|
const o = Ze(), t = $([]), n = $([]);
|
|
@@ -2497,20 +2497,20 @@ const Me = Ue("loader", () => {
|
|
|
2497
2497
|
o.swap();
|
|
2498
2498
|
}
|
|
2499
2499
|
return ve(() => {
|
|
2500
|
-
t.value =
|
|
2500
|
+
t.value = Ae.getLocalStorage("recentSrc") || [], n.value = Ae.getLocalStorage("recentTarget") || [];
|
|
2501
2501
|
}), N(
|
|
2502
2502
|
() => o.src,
|
|
2503
2503
|
(a) => {
|
|
2504
|
-
t.value.includes(a) || (t.value.unshift(a), t.value = t.value.slice(0, Et),
|
|
2504
|
+
t.value.includes(a) || (t.value.unshift(a), t.value = t.value.slice(0, Et), Ae.setLocalStorage("recentSrc", t.value));
|
|
2505
2505
|
}
|
|
2506
2506
|
), N(
|
|
2507
2507
|
() => o.target,
|
|
2508
2508
|
(a) => {
|
|
2509
|
-
n.value.includes(a) || (n.value.unshift(a), n.value = n.value.slice(0, Et),
|
|
2509
|
+
n.value.includes(a) || (n.value.unshift(a), n.value = n.value.slice(0, Et), Ae.setLocalStorage("recentTarget", n.value));
|
|
2510
2510
|
}
|
|
2511
|
-
), (a, i) => L(o).languages ? (m(), O("div",
|
|
2512
|
-
v("div",
|
|
2513
|
-
v("div",
|
|
2511
|
+
), (a, i) => L(o).languages ? (m(), O("div", M0, [
|
|
2512
|
+
v("div", k0, [
|
|
2513
|
+
v("div", A0, [
|
|
2514
2514
|
B(St, {
|
|
2515
2515
|
modelValue: L(o).src,
|
|
2516
2516
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => L(o).src = s),
|
|
@@ -2518,12 +2518,12 @@ const Me = Ue("loader", () => {
|
|
|
2518
2518
|
class: "grow"
|
|
2519
2519
|
}, null, 8, ["modelValue", "languages"])
|
|
2520
2520
|
]),
|
|
2521
|
-
B(
|
|
2521
|
+
B(L0, {
|
|
2522
2522
|
isBidirect: L(o).src !== "auto",
|
|
2523
2523
|
class: "grow-0 mx-3 mt-4 self-start",
|
|
2524
2524
|
onSwap: l
|
|
2525
2525
|
}, null, 8, ["isBidirect"]),
|
|
2526
|
-
v("div",
|
|
2526
|
+
v("div", F0, [
|
|
2527
2527
|
B(St, {
|
|
2528
2528
|
modelValue: L(o).target,
|
|
2529
2529
|
"onUpdate:modelValue": i[1] || (i[1] = (s) => L(o).target = s),
|
|
@@ -2532,29 +2532,29 @@ const Me = Ue("loader", () => {
|
|
|
2532
2532
|
}, null, 8, ["modelValue", "languages"])
|
|
2533
2533
|
])
|
|
2534
2534
|
]),
|
|
2535
|
-
v("div",
|
|
2536
|
-
v("div",
|
|
2537
|
-
t.value.length > 0 ? (m(), O("div",
|
|
2535
|
+
v("div", V0, [
|
|
2536
|
+
v("div", P0, [
|
|
2537
|
+
t.value.length > 0 ? (m(), O("div", R0, [
|
|
2538
2538
|
(m(!0), O(G, null, te(t.value, (s) => (m(), O("button", {
|
|
2539
2539
|
key: s,
|
|
2540
2540
|
class: "px-2 py-0.5 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded-full hover:bg-primaryColor hover:text-baseColor transition-colors duration-200",
|
|
2541
2541
|
onClick: (r) => L(o).src = s
|
|
2542
|
-
}, K(L(o).languages.src[s]), 9,
|
|
2542
|
+
}, K(L(o).languages.src[s]), 9, D0))), 128))
|
|
2543
2543
|
])) : H("", !0)
|
|
2544
2544
|
]),
|
|
2545
|
-
v("div",
|
|
2546
|
-
n.value.length > 0 ? (m(), O("div",
|
|
2545
|
+
v("div", N0, [
|
|
2546
|
+
n.value.length > 0 ? (m(), O("div", B0, [
|
|
2547
2547
|
(m(!0), O(G, null, te(n.value, (s) => (m(), O("button", {
|
|
2548
2548
|
key: s,
|
|
2549
2549
|
class: "px-2 py-0.5 bg-baseColor border border-primaryColor text-primaryColor text-xs rounded-full hover:bg-primaryColor hover:text-baseColor transition-colors duration-200",
|
|
2550
2550
|
onClick: (r) => L(o).target = s
|
|
2551
|
-
}, K(L(o).languages.target[s]), 9,
|
|
2551
|
+
}, K(L(o).languages.target[s]), 9, j0))), 128))
|
|
2552
2552
|
])) : H("", !0)
|
|
2553
2553
|
])
|
|
2554
2554
|
])
|
|
2555
2555
|
])) : H("", !0);
|
|
2556
2556
|
}
|
|
2557
|
-
},
|
|
2557
|
+
}, z0 = {
|
|
2558
2558
|
INPUT_MAX_LENGTH: 5e3,
|
|
2559
2559
|
INPUT_DEBOUNCE: 500
|
|
2560
2560
|
}, We = (e, o) => {
|
|
@@ -2562,11 +2562,11 @@ const Me = Ue("loader", () => {
|
|
|
2562
2562
|
for (const [n, l] of o)
|
|
2563
2563
|
t[n] = l;
|
|
2564
2564
|
return t;
|
|
2565
|
-
},
|
|
2566
|
-
function
|
|
2567
|
-
return m(), O("span",
|
|
2565
|
+
}, U0 = {}, Z0 = { class: "mr-2 loading loading-dots loading-xs" };
|
|
2566
|
+
function W0(e, o) {
|
|
2567
|
+
return m(), O("span", Z0);
|
|
2568
2568
|
}
|
|
2569
|
-
const c2 = /* @__PURE__ */ We(
|
|
2569
|
+
const c2 = /* @__PURE__ */ We(U0, [["render", W0]]), d2 = Ue("tts", () => {
|
|
2570
2570
|
const e = $({
|
|
2571
2571
|
src: null,
|
|
2572
2572
|
target: null
|
|
@@ -2590,7 +2590,7 @@ const c2 = /* @__PURE__ */ We(Un, [["render", Wn]]), d2 = Ue("tts", () => {
|
|
|
2590
2590
|
get: t,
|
|
2591
2591
|
reset: n
|
|
2592
2592
|
};
|
|
2593
|
-
}),
|
|
2593
|
+
}), G0 = "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", q0 = "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", J0 = ["disabled"], K0 = ["src"], Y0 = ["src"], Q0 = {
|
|
2594
2594
|
__name: "SpeakBtn",
|
|
2595
2595
|
props: {
|
|
2596
2596
|
type: {
|
|
@@ -2638,10 +2638,10 @@ const c2 = /* @__PURE__ */ We(Un, [["render", Wn]]), d2 = Ue("tts", () => {
|
|
|
2638
2638
|
onClick: ft(c, ["prevent"])
|
|
2639
2639
|
}, [
|
|
2640
2640
|
v("img", {
|
|
2641
|
-
src: L(
|
|
2641
|
+
src: L(q0),
|
|
2642
2642
|
alt: "Stop",
|
|
2643
2643
|
class: "w-4 transition-all duration-200"
|
|
2644
|
-
}, null, 8,
|
|
2644
|
+
}, null, 8, Y0)
|
|
2645
2645
|
])) : (m(), O("button", {
|
|
2646
2646
|
key: 0,
|
|
2647
2647
|
class: j(["btn btn-xs btn-circle", [
|
|
@@ -2652,13 +2652,13 @@ const c2 = /* @__PURE__ */ We(Un, [["render", Wn]]), d2 = Ue("tts", () => {
|
|
|
2652
2652
|
onClick: ft(r, ["prevent"])
|
|
2653
2653
|
}, [
|
|
2654
2654
|
v("img", {
|
|
2655
|
-
src: L(
|
|
2655
|
+
src: L(G0),
|
|
2656
2656
|
alt: "Play",
|
|
2657
2657
|
class: j(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
|
|
2658
|
-
}, null, 10,
|
|
2659
|
-
], 10,
|
|
2658
|
+
}, null, 10, K0)
|
|
2659
|
+
], 10, J0));
|
|
2660
2660
|
}
|
|
2661
|
-
},
|
|
2661
|
+
}, X0 = "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", eo = {
|
|
2662
2662
|
class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
|
|
2663
2663
|
"data-tip": "Clear"
|
|
2664
2664
|
}, to = ["disabled"], no = ["src"], oo = {
|
|
@@ -2676,7 +2676,7 @@ const c2 = /* @__PURE__ */ We(Un, [["render", Wn]]), d2 = Ue("tts", () => {
|
|
|
2676
2676
|
disabled: e.disabled
|
|
2677
2677
|
}, [
|
|
2678
2678
|
v("img", {
|
|
2679
|
-
src: L(
|
|
2679
|
+
src: L(X0),
|
|
2680
2680
|
alt: "Clear",
|
|
2681
2681
|
class: j(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
|
|
2682
2682
|
}, null, 10, no)
|
|
@@ -2830,7 +2830,7 @@ const c2 = /* @__PURE__ */ We(Un, [["render", Wn]]), d2 = Ue("tts", () => {
|
|
|
2830
2830
|
setup(e, { emit: o }) {
|
|
2831
2831
|
const t = e, n = o;
|
|
2832
2832
|
return (l, a) => (m(), O("div", yo, [
|
|
2833
|
-
t.src ? (m(), q(
|
|
2833
|
+
t.src ? (m(), q(Q0, {
|
|
2834
2834
|
key: 0,
|
|
2835
2835
|
type: t.type,
|
|
2836
2836
|
onLoadTTS: a[0] || (a[0] = (i) => n("loadTTS"))
|
|
@@ -2907,7 +2907,7 @@ const c2 = /* @__PURE__ */ We(Un, [["render", Wn]]), d2 = Ue("tts", () => {
|
|
|
2907
2907
|
};
|
|
2908
2908
|
});
|
|
2909
2909
|
function Oo(e) {
|
|
2910
|
-
return
|
|
2910
|
+
return At() ? (nt(e), !0) : !1;
|
|
2911
2911
|
}
|
|
2912
2912
|
function je(e) {
|
|
2913
2913
|
return typeof e == "function" ? e() : L(e);
|
|
@@ -2952,20 +2952,20 @@ function $t(e) {
|
|
|
2952
2952
|
return (o = t == null ? void 0 : t.$el) != null ? o : t;
|
|
2953
2953
|
}
|
|
2954
2954
|
const Mo = $o ? window : void 0;
|
|
2955
|
-
function
|
|
2956
|
-
const e = $(!1), o =
|
|
2955
|
+
function ko() {
|
|
2956
|
+
const e = $(!1), o = kt();
|
|
2957
2957
|
return o && ve(() => {
|
|
2958
2958
|
e.value = !0;
|
|
2959
2959
|
}, o), e;
|
|
2960
2960
|
}
|
|
2961
|
-
function
|
|
2962
|
-
const o =
|
|
2961
|
+
function Ao(e) {
|
|
2962
|
+
const o = ko();
|
|
2963
2963
|
return E(() => (o.value, !!e()));
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function Fo(e, o, t = {}) {
|
|
2966
2966
|
const { window: n = Mo, ...l } = t;
|
|
2967
2967
|
let a;
|
|
2968
|
-
const i =
|
|
2968
|
+
const i = Ao(() => n && "ResizeObserver" in n), s = () => {
|
|
2969
2969
|
a && (a.disconnect(), a = void 0);
|
|
2970
2970
|
}, r = E(() => Array.isArray(e) ? e.map((p) => $t(p)) : [$t(e)]), u = N(
|
|
2971
2971
|
r,
|
|
@@ -2998,13 +2998,13 @@ function v2(e) {
|
|
|
2998
2998
|
return N([n, t], () => oe(i), { immediate: !0 }), N(a, () => {
|
|
2999
2999
|
var s;
|
|
3000
3000
|
return (s = e == null ? void 0 : e.onResize) == null ? void 0 : s.call(e);
|
|
3001
|
-
}),
|
|
3001
|
+
}), Fo(t, () => i()), e != null && e.watch && N(e.watch, i, { immediate: !0, deep: !0 }), {
|
|
3002
3002
|
textarea: t,
|
|
3003
3003
|
input: n,
|
|
3004
3004
|
triggerResize: i
|
|
3005
3005
|
};
|
|
3006
3006
|
}
|
|
3007
|
-
const
|
|
3007
|
+
const Vo = { class: "bg-white relative z-10 border rounded-md" }, Po = {
|
|
3008
3008
|
__name: "TranslationInput",
|
|
3009
3009
|
props: {
|
|
3010
3010
|
text: {
|
|
@@ -3019,7 +3019,7 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3019
3019
|
return (b = t.phonetic) == null ? void 0 : b.src;
|
|
3020
3020
|
}), { textarea: r } = v2({ input: l, styleProp: "minHeight" }), u = o, c = Lo(() => {
|
|
3021
3021
|
u("change", l.value);
|
|
3022
|
-
},
|
|
3022
|
+
}, z0.INPUT_DEBOUNCE);
|
|
3023
3023
|
function p() {
|
|
3024
3024
|
if (!l.value) {
|
|
3025
3025
|
g();
|
|
@@ -3038,7 +3038,7 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3038
3038
|
(b) => {
|
|
3039
3039
|
l.value !== b && w(), l.value = b;
|
|
3040
3040
|
}
|
|
3041
|
-
), (b, _) => (m(), O("div",
|
|
3041
|
+
), (b, _) => (m(), O("div", Vo, [
|
|
3042
3042
|
B(p2, {
|
|
3043
3043
|
src: a.value,
|
|
3044
3044
|
srcLabel: i.value,
|
|
@@ -3046,13 +3046,13 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3046
3046
|
phonetic: s.value,
|
|
3047
3047
|
hasClearBtn: !0,
|
|
3048
3048
|
onClear: g,
|
|
3049
|
-
onLoadTTS: _[0] || (_[0] = (
|
|
3049
|
+
onLoadTTS: _[0] || (_[0] = (P) => u("loadTTS")),
|
|
3050
3050
|
class: "mb-2"
|
|
3051
3051
|
}, null, 8, ["src", "srcLabel", "phonetic"]),
|
|
3052
|
-
|
|
3052
|
+
Ft(v("textarea", {
|
|
3053
3053
|
ref_key: "textarea",
|
|
3054
3054
|
ref: r,
|
|
3055
|
-
"onUpdate:modelValue": _[1] || (_[1] = (
|
|
3055
|
+
"onUpdate:modelValue": _[1] || (_[1] = (P) => l.value = P),
|
|
3056
3056
|
class: "w-full outline-none px-5 pr-8 bg-transparent text-gray-800 resize-none pb-3 overflow-x-hidden overflow-y-hidden",
|
|
3057
3057
|
autofocus: "",
|
|
3058
3058
|
rows: "2",
|
|
@@ -3060,7 +3060,7 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3060
3060
|
onFocus: w
|
|
3061
3061
|
}, null, 544), [
|
|
3062
3062
|
[
|
|
3063
|
-
|
|
3063
|
+
Vt,
|
|
3064
3064
|
l.value,
|
|
3065
3065
|
void 0,
|
|
3066
3066
|
{ trim: !0 }
|
|
@@ -3068,7 +3068,7 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3068
3068
|
])
|
|
3069
3069
|
]));
|
|
3070
3070
|
}
|
|
3071
|
-
},
|
|
3071
|
+
}, Ro = /* @__PURE__ */ We(Po, [["__scopeId", "data-v-3d7638d0"]]), Do = (e) => (y2("data-v-7c33874e"), e = e(), w2(), e), No = { class: "bg-white relative z-10 rounded-md h-full" }, Bo = { class: "bg-transparent" }, jo = {
|
|
3072
3072
|
key: 0,
|
|
3073
3073
|
class: "w-full flex items-center justify-end absolute -bottom-8 left-2 right-0 px-2 z-20"
|
|
3074
3074
|
}, Ho = /* @__PURE__ */ Do(() => /* @__PURE__ */ v("span", { class: "text-sm text-gray-600" }, " Powered by Ddict AI ", -1)), zo = {
|
|
@@ -3116,7 +3116,7 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3116
3116
|
class: "mb-2"
|
|
3117
3117
|
}, null, 8, ["loading", "src", "srcLabel", "hasFavoriteBtn", "hasAIBtn", "isFavorite", "isAITranslate", "hasDictionary", "phonetic"]),
|
|
3118
3118
|
v("div", Bo, [
|
|
3119
|
-
|
|
3119
|
+
Ft(v("textarea", {
|
|
3120
3120
|
ref_key: "textarea",
|
|
3121
3121
|
ref: c,
|
|
3122
3122
|
"onUpdate:modelValue": b[4] || (b[4] = (_) => ye(p) ? p.value = _ : null),
|
|
@@ -3125,7 +3125,7 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3125
3125
|
rows: "2",
|
|
3126
3126
|
spellcheck: "false"
|
|
3127
3127
|
}, null, 512), [
|
|
3128
|
-
[
|
|
3128
|
+
[Vt, L(p)]
|
|
3129
3129
|
])
|
|
3130
3130
|
])
|
|
3131
3131
|
]),
|
|
@@ -3146,10 +3146,10 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3146
3146
|
setup(e) {
|
|
3147
3147
|
const o = e;
|
|
3148
3148
|
return (t, n) => (m(), O("button", Zo, [
|
|
3149
|
-
o.isExpanded ? (m(), q(L(
|
|
3149
|
+
o.isExpanded ? (m(), q(L(Jn), {
|
|
3150
3150
|
key: 0,
|
|
3151
3151
|
class: "w-7 text-gray-400"
|
|
3152
|
-
})) : (m(), q(L(
|
|
3152
|
+
})) : (m(), q(L(Gn), {
|
|
3153
3153
|
key: 1,
|
|
3154
3154
|
class: "w-7 text-gray-400"
|
|
3155
3155
|
}))
|
|
@@ -3306,7 +3306,7 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3306
3306
|
(m(!0), O(G, null, te(g.synonym, (b, _) => (m(), O("span", {
|
|
3307
3307
|
key: `${b}-${_}`,
|
|
3308
3308
|
class: "p-3 m-0.5 ml-0 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
|
|
3309
|
-
onClick: (
|
|
3309
|
+
onClick: (P) => s(b)
|
|
3310
3310
|
}, K(b), 9, Sl))), 128))
|
|
3311
3311
|
])
|
|
3312
3312
|
]))), 128))
|
|
@@ -3338,13 +3338,13 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3338
3338
|
}, null, 10, Tl)
|
|
3339
3339
|
], 10, Il));
|
|
3340
3340
|
}
|
|
3341
|
-
}, Ml = { class: "card-body bg-white px-4 py-2 gap-0 relative z-10 rounded-md" },
|
|
3341
|
+
}, Ml = { class: "card-body bg-white px-4 py-2 gap-0 relative z-10 rounded-md" }, kl = { class: "flex justify-between items-center" }, Al = /* @__PURE__ */ v("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "AI Summary", -1), Fl = { class: "flex items-center" }, Vl = {
|
|
3342
3342
|
class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
|
|
3343
3343
|
"data-tip": "AI Summarize"
|
|
3344
|
-
},
|
|
3344
|
+
}, Pl = {
|
|
3345
3345
|
key: 0,
|
|
3346
3346
|
class: "text-textCustom list-none list-outside my-2"
|
|
3347
|
-
},
|
|
3347
|
+
}, Rl = ["innerHTML"], Dl = {
|
|
3348
3348
|
__name: "AIExplanation",
|
|
3349
3349
|
props: {
|
|
3350
3350
|
isAIExplain: {
|
|
@@ -3373,11 +3373,11 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3373
3373
|
]])
|
|
3374
3374
|
}, [
|
|
3375
3375
|
v("div", Ml, [
|
|
3376
|
-
v("div",
|
|
3377
|
-
|
|
3378
|
-
v("div",
|
|
3376
|
+
v("div", kl, [
|
|
3377
|
+
Al,
|
|
3378
|
+
v("div", Fl, [
|
|
3379
3379
|
n.value ? (m(), q(c2, { key: 0 })) : H("", !0),
|
|
3380
|
-
v("div",
|
|
3380
|
+
v("div", Vl, [
|
|
3381
3381
|
B(Ll, {
|
|
3382
3382
|
isExpanded: e.isAIExplain,
|
|
3383
3383
|
disabled: n.value,
|
|
@@ -3389,12 +3389,12 @@ const Fo = { class: "bg-white relative z-10 border rounded-md" }, Ro = {
|
|
|
3389
3389
|
v("div", {
|
|
3390
3390
|
class: j(["overflow-hidden transition-all duration-300 ease-in-out", e.isAIExplain ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
|
|
3391
3391
|
}, [
|
|
3392
|
-
(r = e.explanation) != null && r.result ? (m(), O("ul",
|
|
3392
|
+
(r = e.explanation) != null && r.result ? (m(), O("ul", Pl, [
|
|
3393
3393
|
(m(!0), O(G, null, te(((u = e.explanation) == null ? void 0 : u.result.split(`
|
|
3394
3394
|
`)) || [], (c, p) => (m(), O("li", {
|
|
3395
3395
|
key: `${c}-${p}`,
|
|
3396
3396
|
innerHTML: c
|
|
3397
|
-
}, null, 8,
|
|
3397
|
+
}, null, 8, Rl))), 128))
|
|
3398
3398
|
])) : H("", !0)
|
|
3399
3399
|
], 2)
|
|
3400
3400
|
])
|
|
@@ -3474,7 +3474,7 @@ const It = {
|
|
|
3474
3474
|
"reader",
|
|
3475
3475
|
"settings",
|
|
3476
3476
|
"fullscreen",
|
|
3477
|
-
"
|
|
3477
|
+
"account",
|
|
3478
3478
|
"loadTTS",
|
|
3479
3479
|
"favorite",
|
|
3480
3480
|
"aiTranslate",
|
|
@@ -3482,7 +3482,7 @@ const It = {
|
|
|
3482
3482
|
"copy"
|
|
3483
3483
|
],
|
|
3484
3484
|
setup(e, { emit: o }) {
|
|
3485
|
-
const t =
|
|
3485
|
+
const t = x0(), n = be(t), l = d2(t), a = Ze(t), i = Me(t), s = e, r = o, u = $(""), c = () => {
|
|
3486
3486
|
const I = s.opt.target;
|
|
3487
3487
|
jl.includes(I) ? It.supportRTL() : It.removeRTL();
|
|
3488
3488
|
};
|
|
@@ -3525,35 +3525,35 @@ const It = {
|
|
|
3525
3525
|
const x = I === "src" ? n.text : n.result;
|
|
3526
3526
|
r("loadTTS", { type: I, data: x });
|
|
3527
3527
|
}
|
|
3528
|
-
function b(I, x = a.src,
|
|
3528
|
+
function b(I, x = a.src, A = a.target) {
|
|
3529
3529
|
I && (u.value = I, i.setLoading("translation", !0), r("translate", {
|
|
3530
3530
|
src: x,
|
|
3531
|
-
target:
|
|
3531
|
+
target: A,
|
|
3532
3532
|
text: I
|
|
3533
3533
|
}));
|
|
3534
3534
|
}
|
|
3535
3535
|
function _() {
|
|
3536
3536
|
s.isAITranslate || i.setLoading("translation", !0), r("aiTranslate");
|
|
3537
3537
|
}
|
|
3538
|
-
function
|
|
3538
|
+
function P() {
|
|
3539
3539
|
s.isAIExplain || i.setLoading("aiExplanation", !0), r("aiExplain");
|
|
3540
3540
|
}
|
|
3541
3541
|
return (I, x) => {
|
|
3542
|
-
var
|
|
3542
|
+
var A, R, y, M, C;
|
|
3543
3543
|
return m(), O("div", Hl, [
|
|
3544
3544
|
v("div", zl, [
|
|
3545
3545
|
B(z2, {
|
|
3546
3546
|
onReader: x[0] || (x[0] = (h) => r("reader")),
|
|
3547
3547
|
onSettings: x[1] || (x[1] = (h) => r("settings")),
|
|
3548
3548
|
onFullScreen: x[2] || (x[2] = (h) => r("fullscreen")),
|
|
3549
|
-
|
|
3549
|
+
onAccount: x[3] || (x[3] = (h) => r("account"))
|
|
3550
3550
|
})
|
|
3551
3551
|
]),
|
|
3552
3552
|
v("div", Ul, [
|
|
3553
|
-
B(
|
|
3553
|
+
B(H0, { class: "mt-3 mb-0" }),
|
|
3554
3554
|
v("div", Zl, [
|
|
3555
3555
|
v("div", Wl, [
|
|
3556
|
-
B(
|
|
3556
|
+
B(Ro, {
|
|
3557
3557
|
text: u.value,
|
|
3558
3558
|
onChange: g,
|
|
3559
3559
|
onClear: p,
|
|
@@ -3577,15 +3577,15 @@ const It = {
|
|
|
3577
3577
|
])
|
|
3578
3578
|
]),
|
|
3579
3579
|
s.translation ? (m(), O(G, { key: 0 }, [
|
|
3580
|
-
((
|
|
3580
|
+
((A = L(n).result) == null ? void 0 : A.length) > e.aiExplainMinLength ? (m(), O("div", Jl, [
|
|
3581
3581
|
B(Dl, {
|
|
3582
3582
|
isAIExplain: e.isAIExplain,
|
|
3583
3583
|
explanation: e.explanation,
|
|
3584
|
-
onAiExplain:
|
|
3584
|
+
onAiExplain: P
|
|
3585
3585
|
}, null, 8, ["isAIExplain", "explanation"])
|
|
3586
3586
|
])) : H("", !0),
|
|
3587
3587
|
v("div", Kl, [
|
|
3588
|
-
(
|
|
3588
|
+
(R = L(n).dictionary) != null && R.length ? (m(), q(el, {
|
|
3589
3589
|
key: 0,
|
|
3590
3590
|
onTranslate: b
|
|
3591
3591
|
})) : H("", !0),
|