quasar-factory-lib 0.0.3 → 0.0.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/components/K-Table/index.d.ts +2 -2
- package/dist/components/plugins.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/quasar-factory-lib.js +1 -1
- package/dist/quasar-factory-lib.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/K-Table/index.ts +3 -3
- package/src/components/plugins.ts +2 -2
- package/src/index.ts +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import MyTable from './K-Table.vue';
|
|
3
3
|
/** export button specific types */
|
|
4
4
|
/** export button plugin */
|
|
5
5
|
declare const _default: Plugin;
|
|
6
6
|
export default _default;
|
|
7
7
|
/** export button components */
|
|
8
|
-
export {
|
|
8
|
+
export { MyTable as MyTable };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import KMyButton from './KMyButton';
|
|
2
|
-
import
|
|
3
|
-
export { KMyButton,
|
|
2
|
+
import MyTable from './K-Table';
|
|
3
|
+
export { KMyButton, MyTable };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@quasar/extras/material-icons/material-icons.css';
|
|
2
2
|
import { Plugin } from 'vue';
|
|
3
3
|
import TranslateKeys from './i18n/translateKeys.ts';
|
|
4
|
-
export { KMyButton,
|
|
4
|
+
export { KMyButton, MyTable } from './components/index.ts';
|
|
5
5
|
export type { TranslateKeys };
|
|
6
6
|
export * from './i18n/messages.js';
|
|
7
7
|
import './css/app.scss';
|
|
@@ -11514,7 +11514,7 @@ function Jv(e) {
|
|
|
11514
11514
|
}
|
|
11515
11515
|
export {
|
|
11516
11516
|
bu as KMyButton,
|
|
11517
|
-
lf as
|
|
11517
|
+
lf as MyTable,
|
|
11518
11518
|
Xv as QuasarFactoryLib,
|
|
11519
11519
|
Jv as updatePackageLanguage
|
|
11520
11520
|
};
|
|
@@ -18,4 +18,4 @@ ${m}`:u)}else throw i},onCacheKey:i=>md(t,n,i)}}function lm(e){if(H(e))return e;
|
|
|
18
18
|
* vue-i18n v10.0.5
|
|
19
19
|
* (c) 2024 kazuya kawaguchi
|
|
20
20
|
* Released under the MIT License.
|
|
21
|
-
*/const hm="10.0.5";function gm(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(zt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(zt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Mt={FALLBACK_TO_ROOT:Af,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11},pm={[Mt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Mt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Mt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Mt.DEPRECATE_TC]:"'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11."};function io(e,...t){return Jn(pm[e],...t)}const Se={UNEXPECTED_RETURN_TYPE:kf,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Xe(e,...t){return nn(e,null,process.env.NODE_ENV!=="production"?{messages:bm,args:t}:void 0)}const bm={[Se.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Se.INVALID_ARGUMENT]:"Invalid argument",[Se.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Se.NOT_INSTALLED]:"Need to install with `app.use` function",[Se.UNEXPECTED_ERROR]:"Unexpected error",[Se.REQUIRED_VALUE]:"Required in value: {0}",[Se.INVALID_VALUE]:"Invalid value",[Se.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Se.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Se.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Se.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},al=vt("__translateVNode"),rl=vt("__datetimeParts"),il=vt("__numberParts"),Wt=vt("__enableEmitter"),Nn=vt("__disableEmitter"),oi=vt("__setPluralRules"),li=vt("__injectWithOption"),sl=vt("__dispose");function Ln(e){if(!he(e))return e;for(const t in e)if(gt(e,t))if(!t.includes("."))he(e[t])&&Ln(e[t]);else{const n=t.split("."),l=n.length-1;let a=e,r=!1;for(let i=0;i<l;i++){if(n[i]in a||(a[n[i]]=_e()),!he(a[n[i]])){process.env.NODE_ENV!=="production"&&It(io(Mt.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}a=a[n[i]]}r||(a[n[l]]=e[t],delete e[t]),he(a[n[l]])&&Ln(a[n[l]])}return e}function ul(e,t){const{messages:n,__i18n:l,messageResolver:a,flatJson:r}=t,i=ie(n)?n:Te(l)?_e():{[e]:_e()};if(Te(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:u,resource:m}=s;u?(i[u]=i[u]||_e(),to(m,i[u])):to(m,i)}else H(s)&&to(JSON.parse(s),i)}),a==null&&r)for(const s in i)gt(i,s)&&Ln(i[s]);return i}function ai(e){return e.type}function ri(e,t,n){let l=he(t.messages)?t.messages:_e();"__i18nGlobal"in n&&(l=ul(e.locale.value,{messages:l,__i18n:n.__i18nGlobal}));const a=Object.keys(l);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(he(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(he(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function ii(e){return o.createVNode(o.Text,null,e,0)}const si="__INTLIFY_META__",ui=()=>[],_m=()=>!1;let ci=0;function di(e){return(t,n,l,a)=>e(n,l,o.getCurrentInstance()||void 0,a)}const vm=()=>{const e=o.getCurrentInstance();let t=null;return e&&(t=ai(e)[si])?{[si]:t}:null};function cl(e={}){const{__root:t,__injectWithOption:n}=e,l=t===void 0,a=e.flatJson,r=ht?o.ref:o.shallowRef;let i=ge(e.inheritLocale)?e.inheritLocale:!0;const s=r(t&&i?t.locale.value:H(e.locale)?e.locale:Tn),u=r(t&&i?t.fallbackLocale.value:H(e.fallbackLocale)||Te(e.fallbackLocale)||ie(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),m=r(ul(s.value,e)),d=r(ie(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),c=r(ie(e.numberFormats)?e.numberFormats:{[s.value]:{}});let f=t?t.missingWarn:ge(e.missingWarn)||tn(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:ge(e.fallbackWarn)||tn(e.fallbackWarn)?e.fallbackWarn:!0,S=t?t.fallbackRoot:ge(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,b=ye(e.missing)?e.missing:null,p=ye(e.missing)?di(e.missing):null,_=ye(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:ge(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const x=t?t.modifiers:ie(e.modifiers)?e.modifiers:{};let O=e.pluralRules||t&&t.pluralRules,C;C=(()=>{l&&qr(null);const R={version:hm,locale:s.value,fallbackLocale:u.value,messages:m.value,modifiers:x,pluralRules:O,missing:p===null?void 0:p,missingWarn:f,fallbackWarn:h,fallbackFormat:E,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:w,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};R.datetimeFormats=d.value,R.numberFormats=c.value,R.__datetimeFormatters=ie(C)?C.__datetimeFormatters:void 0,R.__numberFormatters=ie(C)?C.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=ie(C)?C.__v_emitter:void 0);const q=jf(R);return l&&qr(q),q})(),xn(C,s.value,u.value);function I(){return[s.value,u.value,m.value,d.value,c.value]}const V=o.computed({get:()=>s.value,set:R=>{s.value=R,C.locale=s.value}}),B=o.computed({get:()=>u.value,set:R=>{u.value=R,C.fallbackLocale=u.value,xn(C,s.value,R)}}),N=o.computed(()=>m.value),W=o.computed(()=>d.value),M=o.computed(()=>c.value);function J(){return ye(_)?_:null}function X(R){_=R,C.postTranslation=R}function te(){return b}function U(R){R!==null&&(p=di(R)),b=R,C.missing=p}function Z(R,q){return R!=="translate"||!q.resolvedMessage}const ee=(R,q,de,Ce,ct,Ge)=>{I();let Ae;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(C.fallbackContext=t?zf():void 0),Ae=R(C)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(C.fallbackContext=void 0)}if(de!=="translate exists"&&Ne(Ae)&&Ae===lo||de==="translate exists"&&!Ae){const[Fe,In]=q();if(process.env.NODE_ENV!=="production"&&t&&H(Fe)&&Z(de,In)&&(S&&(ro(h,Fe)||$r(f,Fe))&&It(io(Mt.FALLBACK_TO_ROOT,{key:Fe,type:de})),process.env.NODE_ENV!=="production")){const{__v_emitter:Tt}=C;Tt&&S&&Tt.emit("fallback",{type:de,key:Fe,to:"global",groupId:`${de}:${Fe}`})}return t&&S?Ce(t):ct(Fe)}else{if(Ge(Ae))return Ae;throw Xe(Se.UNEXPECTED_RETURN_TYPE)}};function L(...R){return ee(q=>Reflect.apply(Zr,null,[q,...R]),()=>ol(...R),"translate",q=>Reflect.apply(q.t,q,[...R]),q=>q,q=>H(q))}function T(...R){const[q,de,Ce]=R;if(Ce&&!he(Ce))throw Xe(Se.INVALID_ARGUMENT);return L(q,de,De({resolvedMessage:!0},Ce||{}))}function j(...R){return ee(q=>Reflect.apply(jr,null,[q,...R]),()=>tl(...R),"datetime format",q=>Reflect.apply(q.d,q,[...R]),()=>ao,q=>H(q))}function ae(...R){return ee(q=>Reflect.apply(Gr,null,[q,...R]),()=>nl(...R),"number format",q=>Reflect.apply(q.n,q,[...R]),()=>ao,q=>H(q))}function re(R){return R.map(q=>H(q)||Ne(q)||ge(q)?ii(String(q)):q)}const z={normalize:re,interpolate:R=>R,type:"vnode"};function ce(...R){return ee(q=>{let de;const Ce=q;try{Ce.processor=z,de=Reflect.apply(Zr,null,[Ce,...R])}finally{Ce.processor=null}return de},()=>ol(...R),"translate",q=>q[al](...R),q=>[ii(q)],q=>Te(q))}function $(...R){return ee(q=>Reflect.apply(Gr,null,[q,...R]),()=>nl(...R),"number format",q=>q[il](...R),ui,q=>H(q)||Te(q))}function be(...R){return ee(q=>Reflect.apply(jr,null,[q,...R]),()=>tl(...R),"datetime format",q=>q[rl](...R),ui,q=>H(q)||Te(q))}function Be(R){O=R,C.pluralRules=O}function st(R,q){return ee(()=>{if(!R)return!1;const de=H(q)?q:s.value,Ce=qe(de),ct=C.messageResolver(Ce,R);return Rt(ct)||it(ct)||H(ct)},()=>[R],"translate exists",de=>Reflect.apply(de.te,de,[R,q]),_m,de=>ge(de))}function Le(R){let q=null;const de=Or(C,u.value,s.value);for(let Ce=0;Ce<de.length;Ce++){const ct=m.value[de[Ce]]||{},Ge=C.messageResolver(ct,R);if(Ge!=null){q=Ge;break}}return q}function et(R){const q=Le(R);return q??(t?t.tm(R)||{}:{})}function qe(R){return m.value[R]||{}}function ze(R,q){if(a){const de={[R]:q};for(const Ce in de)gt(de,Ce)&&Ln(de[Ce]);q=de[R]}m.value[R]=q,C.messages=m.value}function ut(R,q){m.value[R]=m.value[R]||{};const de={[R]:q};if(a)for(const Ce in de)gt(de,Ce)&&Ln(de[Ce]);q=de[R],to(q,m.value[R]),C.messages=m.value}function g(R){return d.value[R]||{}}function k(R,q){d.value[R]=q,C.datetimeFormats=d.value,Kr(C,R,q)}function A(R,q){d.value[R]=De(d.value[R]||{},q),C.datetimeFormats=d.value,Kr(C,R,q)}function G(R){return c.value[R]||{}}function fe(R,q){c.value[R]=q,C.numberFormats=c.value,Yr(C,R,q)}function pe(R,q){c.value[R]=De(c.value[R]||{},q),C.numberFormats=c.value,Yr(C,R,q)}ci++,t&&ht&&(o.watch(t.locale,R=>{i&&(s.value=R,C.locale=R,xn(C,s.value,u.value))}),o.watch(t.fallbackLocale,R=>{i&&(u.value=R,C.fallbackLocale=R,xn(C,s.value,u.value))}));const se={id:ci,locale:V,fallbackLocale:B,get inheritLocale(){return i},set inheritLocale(R){i=R,R&&t&&(s.value=t.locale.value,u.value=t.fallbackLocale.value,xn(C,s.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:N,get modifiers(){return x},get pluralRules(){return O||{}},get isGlobal(){return l},get missingWarn(){return f},set missingWarn(R){f=R,C.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(R){h=R,C.fallbackWarn=h},get fallbackRoot(){return S},set fallbackRoot(R){S=R},get fallbackFormat(){return E},set fallbackFormat(R){E=R,C.fallbackFormat=E},get warnHtmlMessage(){return w},set warnHtmlMessage(R){w=R,C.warnHtmlMessage=R},get escapeParameter(){return y},set escapeParameter(R){y=R,C.escapeParameter=R},t:L,getLocaleMessage:qe,setLocaleMessage:ze,mergeLocaleMessage:ut,getPostTranslationHandler:J,setPostTranslationHandler:X,getMissingHandler:te,setMissingHandler:U,[oi]:Be};return se.datetimeFormats=W,se.numberFormats=M,se.rt=T,se.te=st,se.tm=et,se.d=j,se.n=ae,se.getDateTimeFormat=g,se.setDateTimeFormat=k,se.mergeDateTimeFormat=A,se.getNumberFormat=G,se.setNumberFormat=fe,se.mergeNumberFormat=pe,se[li]=n,se[al]=ce,se[rl]=be,se[il]=$,process.env.NODE_ENV!=="production"&&(se[Wt]=R=>{C.__v_emitter=R},se[Nn]=()=>{C.__v_emitter=void 0}),se}const fi="vue-i18n: composer properties",dl={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},ym={"vue-i18n-resource-inspector":"Search for scopes ..."},Sm={"vue-i18n-timeline":16764185};let fl;async function km(e,t){return new Promise((n,l)=>{try{mm({id:"vue-devtools-plugin-vue-i18n",label:dl["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[fi],app:e},a=>{fl=a,a.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{wm(i,s,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&hi(s,i.vnode.el.__VUE_I18N__):hi(s,i.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:dl["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:ym["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Nm(i,t)});const r=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),Om(i,t),i.nodeId==="global"){if(!r.has(i.app)){const[s]=await a.getComponentInstances(i.app);r.set(i.app,s)}a.highlightElement(r.get(i.app))}else{const s=Lm(i.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Pm(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:dl["vue-i18n-timeline"],color:Sm["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),l(!1)}})}function mi(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function wm(e,t,n){const l=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==l){const a={label:`i18n (${mi(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function hi(e,t){const n=fi;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:ml(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function ml(e){const t={};return Object.keys(e).forEach(n=>{const l=e[n];ye(l)&&"source"in l?t[n]=xm(l):Rt(l)&&l.loc&&l.loc.source?t[n]=l.loc.source:he(l)?t[n]=ml(l):t[n]=l}),t}const Cm={"<":"<",">":">",'"':""","&":"&"};function Em(e){return e.replace(/[<>"&]/g,Tm)}function Tm(e){return Cm[e]||e}function xm(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Em(e.source)}")`:"(?)"}`}}}function Nm(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[l,a]of t.__instances){const r=t.mode==="composition"?a:a.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${mi(l)} Scope`})}}function Lm(e,t){let n=null;if(e!=="global"){for(const[l,a]of t.__instances.entries())if(a.id.toString()===e){n=l;break}}return n}function gi(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(l=>l.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Om(e,t){const n=gi(e.nodeId,t);return n&&(e.state=Im(n)),null}function Im(e){const t={},n="Locale related info",l=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=l;const a="Locale messages info",r=[{type:a,key:"messages",editable:!1,value:ml(e.messages.value)}];t[a]=r;{const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=s;const u="Datetime formats info",m=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=m}return t}function On(e,t){if(fl){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),fl.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Pm(e,t){const n=gi(e.nodeId,t);if(n){const[l]=e.path;l==="locale"&&H(e.state.value)?n.locale.value=e.state.value:l==="fallbackLocale"&&(H(e.state.value)||Te(e.state.value)||he(e.state.value))?n.fallbackLocale.value=e.state.value:l==="inheritLocale"&&ge(e.state.value)&&(n.inheritLocale=e.state.value)}}function Vm(e){const t=H(e.locale)?e.locale:Tn,n=H(e.fallbackLocale)||Te(e.fallbackLocale)||ie(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,l=ye(e.missing)?e.missing:void 0,a=ge(e.silentTranslationWarn)||tn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=ge(e.silentFallbackWarn)||tn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=ge(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,u=ie(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,d=ye(e.postTranslation)?e.postTranslation:void 0,c=H(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=ge(e.sync)?e.sync:!0;let S=e.messages;if(ie(e.sharedMessages)){const x=e.sharedMessages;S=Object.keys(x).reduce((C,D)=>{const I=C[D]||(C[D]={});return De(I,x[D]),C},S||{})}const{__i18n:E,__root:b,__injectWithOption:p}=e,_=e.datetimeFormats,w=e.numberFormats,y=e.flatJson;return{locale:t,fallbackLocale:n,messages:S,flatJson:y,datetimeFormats:_,numberFormats:w,missing:l,missingWarn:a,fallbackWarn:r,fallbackRoot:i,fallbackFormat:s,modifiers:u,pluralRules:m,postTranslation:d,warnHtmlMessage:c,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:E,__root:b,__injectWithOption:p}}function hl(e={}){const t=cl(Vm(e)),{__extender:n}=e,l={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return ge(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=ge(a)?!a:a},get silentFallbackWarn(){return ge(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=ge(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},tc(...a){const[r,i,s]=a,u={plural:1};let m=null,d=null;if(process.env.NODE_ENV!=="production"&&Cr(io(Mt.DEPRECATE_TC)),!H(r))throw Xe(Se.INVALID_ARGUMENT);const c=r;return H(i)?u.locale=i:Ne(i)?u.plural=i:Te(i)?m=i:ie(i)&&(d=i),H(s)?u.locale=s:Te(s)?m=s:ie(s)&&(d=s),Reflect.apply(t.t,t,[c,m||d||{},u])},te(a,r){return t.te(a,r)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,r){t.setLocaleMessage(a,r)},mergeLocaleMessage(a,r){t.mergeLocaleMessage(a,r)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,r){t.setDateTimeFormat(a,r)},mergeDateTimeFormat(a,r){t.mergeDateTimeFormat(a,r)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,r){t.setNumberFormat(a,r)},mergeNumberFormat(a,r){t.mergeNumberFormat(a,r)}};return l.__extender=n,process.env.NODE_ENV!=="production"&&(l.__enableEmitter=a=>{const r=t;r[Wt]&&r[Wt](a)},l.__disableEmitter=()=>{const a=t;a[Nn]&&a[Nn]()}),l}function Rm(e,t,n){return{beforeCreate(){const l=o.getCurrentInstance();if(!l)throw Xe(Se.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=pi(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=hl(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=pi(e,a);else{this.$i18n=hl({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&ri(t,a,a),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(l,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const l=this.$i18n;this.$el.__VUE_I18N__=l.__composer;const a=this.__v_emitter=jo();l.__enableEmitter&&l.__enableEmitter(a),a.on("*",On)}},unmounted(){const l=o.getCurrentInstance();if(!l)throw Xe(Se.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",On),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(l),delete this.$i18n}}}function pi(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[oi](t.pluralizationRules||e.pluralizationRules);const n=ul(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(l=>e.mergeLocaleMessage(l,n[l])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(l=>e.mergeDateTimeFormat(l,t.datetimeFormats[l])),t.numberFormats&&Object.keys(t.numberFormats).forEach(l=>e.mergeNumberFormat(l,t.numberFormats[l])),e}const gl={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Am({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((l,a)=>[...l,...a.type===o.Fragment?a.children:[a]],[]):t.reduce((n,l)=>{const a=e[l];return a&&(n[l]=a()),n},_e())}function bi(){return o.Fragment}const _i=o.defineComponent({name:"i18n-t",props:De({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ne(e)||!isNaN(e)}},gl),setup(e,t){const{slots:n,attrs:l}=t,a=e.i18n||pl({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(c=>c!=="_"),i=_e();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=H(e.plural)?+e.plural:e.plural);const s=Am(t,r),u=a[al](e.keypath,s,i),m=De(_e(),l),d=H(e.tag)||he(e.tag)?e.tag:bi();return o.h(d,m,u)}}});function Mm(e){return Te(e)&&!H(e[0])}function vi(e,t,n,l){const{slots:a,attrs:r}=t;return()=>{const i={part:!0};let s=_e();e.locale&&(i.locale=e.locale),H(e.format)?i.key=e.format:he(e.format)&&(H(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((f,h)=>n.includes(h)?De(_e(),f,{[h]:e.format[h]}):f,_e()));const u=l(e.value,i,s);let m=[i.key];Te(u)?m=u.map((f,h)=>{const S=a[f.type],E=S?S({[f.type]:f.value,index:h,parts:u}):[f.value];return Mm(E)&&(E[0].key=`${f.type}-${h}`),E}):H(u)&&(m=[u]);const d=De(_e(),r),c=H(e.tag)||he(e.tag)?e.tag:bi();return o.h(c,d,m)}}const yi=o.defineComponent({name:"i18n-n",props:De({value:{type:Number,required:!0},format:{type:[String,Object]}},gl),setup(e,t){const n=e.i18n||pl({useScope:e.scope,__useComponent:!0});return vi(e,t,Qr,(...l)=>n[il](...l))}}),Si=o.defineComponent({name:"i18n-d",props:De({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},gl),setup(e,t){const n=e.i18n||pl({useScope:e.scope,__useComponent:!0});return vi(e,t,Wr,(...l)=>n[rl](...l))}});function Dm(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const l=n.__getInstance(t);return l!=null?l.__composer:e.global.__composer}}function Bm(e){const t=i=>{const{instance:s,value:u}=i;if(!s||!s.$)throw Xe(Se.UNEXPECTED_ERROR);const m=Dm(e,s.$),d=ki(u);return[Reflect.apply(m.t,m,[...wi(d)]),m]};return{created:(i,s)=>{const[u,m]=t(s);ht&&e.global===m&&(i.__i18nWatcher=o.watch(m.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=m,i.textContent=u},unmounted:i=>{ht&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const u=i.__composer,m=ki(s);i.textContent=Reflect.apply(u.t,u,[...wi(m)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function ki(e){if(H(e))return{path:e};if(ie(e)){if(!("path"in e))throw Xe(Se.REQUIRED_VALUE,"path");return e}else throw Xe(Se.INVALID_VALUE)}function wi(e){const{path:t,locale:n,args:l,choice:a,plural:r}=e,i={},s=l||{};return H(n)&&(i.locale=n),Ne(a)&&(i.plural=a),Ne(r)&&(i.plural=r),[t,s,i]}function qm(e,t,...n){const l=ie(n[0])?n[0]:{};(ge(l.globalInstall)?l.globalInstall:!0)&&([_i.name,"I18nT"].forEach(r=>e.component(r,_i)),[yi.name,"I18nN"].forEach(r=>e.component(r,yi)),[Si.name,"I18nD"].forEach(r=>e.component(r,Si))),e.directive("t",Bm(t))}const Fm=vt("global-vue-i18n");function $m(e={},t){const n=__VUE_I18N_LEGACY_API__&&ge(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,l=ge(e.globalInjection)?e.globalInjection:!0,a=new Map,[r,i]=Um(e,n),s=vt(process.env.NODE_ENV!=="production"?"vue-i18n":"");function u(f){return a.get(f)||null}function m(f,h){a.set(f,h)}function d(f){a.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(f,...h){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=c),f.__VUE_I18N_SYMBOL__=s,f.provide(f.__VUE_I18N_SYMBOL__,c),ie(h[0])){const b=h[0];c.__composerExtend=b.__composerExtend,c.__vueI18nExtend=b.__vueI18nExtend}let S=null;!n&&l&&(S=Ym(f,c.global)),__VUE_I18N_FULL_INSTALL__&&qm(f,c,...h),__VUE_I18N_LEGACY_API__&&n&&f.mixin(Rm(i,i.__composer,c));const E=f.unmount;if(f.unmount=()=>{S&&S(),c.dispose(),E()},process.env.NODE_ENV!=="production"){if(!await km(f,c))throw Xe(Se.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const p=jo();if(n){const _=i;_.__enableEmitter&&_.__enableEmitter(p)}else{const _=i;_[Wt]&&_[Wt](p)}p.on("*",On)}},get global(){return i},dispose(){r.stop()},__instances:a,__getInstance:u,__setInstance:m,__deleteInstance:d};return c}function pl(e={}){const t=o.getCurrentInstance();if(t==null)throw Xe(Se.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Xe(Se.NOT_INSTALLED);const n=Hm(t),l=jm(n),a=ai(t),r=zm(e,a);if(r==="global")return ri(l,e,a),l;if(r==="parent"){let u=Wm(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&It(io(Mt.NOT_FOUND_PARENT_SCOPE)),u=l),u}const i=n;let s=i.__getInstance(t);if(s==null){const u=De({},e);"__i18n"in a&&(u.__i18n=a.__i18n),l&&(u.__root=l),s=cl(u),i.__composerExtend&&(s[sl]=i.__composerExtend(s)),Gm(i,t,s),i.__setInstance(t,s)}return s}function Um(e,t,n){const l=o.effectScope(),a=__VUE_I18N_LEGACY_API__&&t?l.run(()=>hl(e)):l.run(()=>cl(e));if(a==null)throw Xe(Se.UNEXPECTED_ERROR);return[l,a]}function Hm(e){const t=o.inject(e.isCE?Fm:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Xe(e.isCE?Se.NOT_INSTALLED_WITH_PROVIDE:Se.UNEXPECTED_ERROR);return t}function zm(e,t){return Zn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function jm(e){return e.mode==="composition"?e.global:e.global.__composer}function Wm(e,t,n=!1){let l=null;const a=t.root;let r=Km(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")l=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(r);s!=null&&(l=s.__composer,n&&l&&!l[li]&&(l=null))}if(l!=null||a===r)break;r=r.parent}return l}function Km(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Gm(e,t,n){let l=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,l=jo();const a=n;a[Wt]&&a[Wt](l),l.on("*",On)}},t),o.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(l&&l.off("*",On),a[Nn]&&a[Nn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=a[sl];r&&(r(),delete a[sl])},t)}const Qm=["locale","fallbackLocale","availableLocales"],Ci=["t","rt","d","n","tm","te"];function Ym(e,t){const n=Object.create(null);return Qm.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw Xe(Se.UNEXPECTED_ERROR);const i=o.isRef(r.value)?{get(){return r.value.value},set(s){r.value.value=s}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,Ci.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw Xe(Se.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,Ci.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(gm(),qf(bf),Ff(Rf),$f(Or),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=zt();e.__INTLIFY__=!0,_f(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const bl=$m({locale:"es",globalInjection:!0,silentTranslationWarn:!0,messages:dd}),Xm={install(e){console.log("[Quasar Components] Installing..."),aa(e,xs),aa(e,cd),e.use(bl),bl.global.locale="en",e.use(Xi,{plugins:{}}),console.log("[Quasar components] Installed")}};function Jm(e){bl.global.locale=e}bt.KMyButton=la,bt.KTable=_r,bt.QuasarFactoryLib=Xm,bt.updatePackageLanguage=Jm,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})});
|
|
21
|
+
*/const hm="10.0.5";function gm(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(zt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(zt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Mt={FALLBACK_TO_ROOT:Af,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11},pm={[Mt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Mt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Mt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Mt.DEPRECATE_TC]:"'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11."};function io(e,...t){return Jn(pm[e],...t)}const Se={UNEXPECTED_RETURN_TYPE:kf,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Xe(e,...t){return nn(e,null,process.env.NODE_ENV!=="production"?{messages:bm,args:t}:void 0)}const bm={[Se.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Se.INVALID_ARGUMENT]:"Invalid argument",[Se.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Se.NOT_INSTALLED]:"Need to install with `app.use` function",[Se.UNEXPECTED_ERROR]:"Unexpected error",[Se.REQUIRED_VALUE]:"Required in value: {0}",[Se.INVALID_VALUE]:"Invalid value",[Se.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Se.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Se.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Se.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},al=vt("__translateVNode"),rl=vt("__datetimeParts"),il=vt("__numberParts"),Wt=vt("__enableEmitter"),Nn=vt("__disableEmitter"),oi=vt("__setPluralRules"),li=vt("__injectWithOption"),sl=vt("__dispose");function Ln(e){if(!he(e))return e;for(const t in e)if(gt(e,t))if(!t.includes("."))he(e[t])&&Ln(e[t]);else{const n=t.split("."),l=n.length-1;let a=e,r=!1;for(let i=0;i<l;i++){if(n[i]in a||(a[n[i]]=_e()),!he(a[n[i]])){process.env.NODE_ENV!=="production"&&It(io(Mt.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}a=a[n[i]]}r||(a[n[l]]=e[t],delete e[t]),he(a[n[l]])&&Ln(a[n[l]])}return e}function ul(e,t){const{messages:n,__i18n:l,messageResolver:a,flatJson:r}=t,i=ie(n)?n:Te(l)?_e():{[e]:_e()};if(Te(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:u,resource:m}=s;u?(i[u]=i[u]||_e(),to(m,i[u])):to(m,i)}else H(s)&&to(JSON.parse(s),i)}),a==null&&r)for(const s in i)gt(i,s)&&Ln(i[s]);return i}function ai(e){return e.type}function ri(e,t,n){let l=he(t.messages)?t.messages:_e();"__i18nGlobal"in n&&(l=ul(e.locale.value,{messages:l,__i18n:n.__i18nGlobal}));const a=Object.keys(l);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(he(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(he(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function ii(e){return o.createVNode(o.Text,null,e,0)}const si="__INTLIFY_META__",ui=()=>[],_m=()=>!1;let ci=0;function di(e){return(t,n,l,a)=>e(n,l,o.getCurrentInstance()||void 0,a)}const vm=()=>{const e=o.getCurrentInstance();let t=null;return e&&(t=ai(e)[si])?{[si]:t}:null};function cl(e={}){const{__root:t,__injectWithOption:n}=e,l=t===void 0,a=e.flatJson,r=ht?o.ref:o.shallowRef;let i=ge(e.inheritLocale)?e.inheritLocale:!0;const s=r(t&&i?t.locale.value:H(e.locale)?e.locale:Tn),u=r(t&&i?t.fallbackLocale.value:H(e.fallbackLocale)||Te(e.fallbackLocale)||ie(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),m=r(ul(s.value,e)),d=r(ie(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),c=r(ie(e.numberFormats)?e.numberFormats:{[s.value]:{}});let f=t?t.missingWarn:ge(e.missingWarn)||tn(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:ge(e.fallbackWarn)||tn(e.fallbackWarn)?e.fallbackWarn:!0,S=t?t.fallbackRoot:ge(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,b=ye(e.missing)?e.missing:null,p=ye(e.missing)?di(e.missing):null,_=ye(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:ge(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const x=t?t.modifiers:ie(e.modifiers)?e.modifiers:{};let O=e.pluralRules||t&&t.pluralRules,C;C=(()=>{l&&qr(null);const R={version:hm,locale:s.value,fallbackLocale:u.value,messages:m.value,modifiers:x,pluralRules:O,missing:p===null?void 0:p,missingWarn:f,fallbackWarn:h,fallbackFormat:E,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:w,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};R.datetimeFormats=d.value,R.numberFormats=c.value,R.__datetimeFormatters=ie(C)?C.__datetimeFormatters:void 0,R.__numberFormatters=ie(C)?C.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(R.__v_emitter=ie(C)?C.__v_emitter:void 0);const q=jf(R);return l&&qr(q),q})(),xn(C,s.value,u.value);function I(){return[s.value,u.value,m.value,d.value,c.value]}const V=o.computed({get:()=>s.value,set:R=>{s.value=R,C.locale=s.value}}),B=o.computed({get:()=>u.value,set:R=>{u.value=R,C.fallbackLocale=u.value,xn(C,s.value,R)}}),N=o.computed(()=>m.value),W=o.computed(()=>d.value),M=o.computed(()=>c.value);function J(){return ye(_)?_:null}function X(R){_=R,C.postTranslation=R}function te(){return b}function U(R){R!==null&&(p=di(R)),b=R,C.missing=p}function Z(R,q){return R!=="translate"||!q.resolvedMessage}const ee=(R,q,de,Ce,ct,Ge)=>{I();let Ae;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(C.fallbackContext=t?zf():void 0),Ae=R(C)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,l||(C.fallbackContext=void 0)}if(de!=="translate exists"&&Ne(Ae)&&Ae===lo||de==="translate exists"&&!Ae){const[Fe,In]=q();if(process.env.NODE_ENV!=="production"&&t&&H(Fe)&&Z(de,In)&&(S&&(ro(h,Fe)||$r(f,Fe))&&It(io(Mt.FALLBACK_TO_ROOT,{key:Fe,type:de})),process.env.NODE_ENV!=="production")){const{__v_emitter:Tt}=C;Tt&&S&&Tt.emit("fallback",{type:de,key:Fe,to:"global",groupId:`${de}:${Fe}`})}return t&&S?Ce(t):ct(Fe)}else{if(Ge(Ae))return Ae;throw Xe(Se.UNEXPECTED_RETURN_TYPE)}};function L(...R){return ee(q=>Reflect.apply(Zr,null,[q,...R]),()=>ol(...R),"translate",q=>Reflect.apply(q.t,q,[...R]),q=>q,q=>H(q))}function T(...R){const[q,de,Ce]=R;if(Ce&&!he(Ce))throw Xe(Se.INVALID_ARGUMENT);return L(q,de,De({resolvedMessage:!0},Ce||{}))}function j(...R){return ee(q=>Reflect.apply(jr,null,[q,...R]),()=>tl(...R),"datetime format",q=>Reflect.apply(q.d,q,[...R]),()=>ao,q=>H(q))}function ae(...R){return ee(q=>Reflect.apply(Gr,null,[q,...R]),()=>nl(...R),"number format",q=>Reflect.apply(q.n,q,[...R]),()=>ao,q=>H(q))}function re(R){return R.map(q=>H(q)||Ne(q)||ge(q)?ii(String(q)):q)}const z={normalize:re,interpolate:R=>R,type:"vnode"};function ce(...R){return ee(q=>{let de;const Ce=q;try{Ce.processor=z,de=Reflect.apply(Zr,null,[Ce,...R])}finally{Ce.processor=null}return de},()=>ol(...R),"translate",q=>q[al](...R),q=>[ii(q)],q=>Te(q))}function $(...R){return ee(q=>Reflect.apply(Gr,null,[q,...R]),()=>nl(...R),"number format",q=>q[il](...R),ui,q=>H(q)||Te(q))}function be(...R){return ee(q=>Reflect.apply(jr,null,[q,...R]),()=>tl(...R),"datetime format",q=>q[rl](...R),ui,q=>H(q)||Te(q))}function Be(R){O=R,C.pluralRules=O}function st(R,q){return ee(()=>{if(!R)return!1;const de=H(q)?q:s.value,Ce=qe(de),ct=C.messageResolver(Ce,R);return Rt(ct)||it(ct)||H(ct)},()=>[R],"translate exists",de=>Reflect.apply(de.te,de,[R,q]),_m,de=>ge(de))}function Le(R){let q=null;const de=Or(C,u.value,s.value);for(let Ce=0;Ce<de.length;Ce++){const ct=m.value[de[Ce]]||{},Ge=C.messageResolver(ct,R);if(Ge!=null){q=Ge;break}}return q}function et(R){const q=Le(R);return q??(t?t.tm(R)||{}:{})}function qe(R){return m.value[R]||{}}function ze(R,q){if(a){const de={[R]:q};for(const Ce in de)gt(de,Ce)&&Ln(de[Ce]);q=de[R]}m.value[R]=q,C.messages=m.value}function ut(R,q){m.value[R]=m.value[R]||{};const de={[R]:q};if(a)for(const Ce in de)gt(de,Ce)&&Ln(de[Ce]);q=de[R],to(q,m.value[R]),C.messages=m.value}function g(R){return d.value[R]||{}}function k(R,q){d.value[R]=q,C.datetimeFormats=d.value,Kr(C,R,q)}function A(R,q){d.value[R]=De(d.value[R]||{},q),C.datetimeFormats=d.value,Kr(C,R,q)}function G(R){return c.value[R]||{}}function fe(R,q){c.value[R]=q,C.numberFormats=c.value,Yr(C,R,q)}function pe(R,q){c.value[R]=De(c.value[R]||{},q),C.numberFormats=c.value,Yr(C,R,q)}ci++,t&&ht&&(o.watch(t.locale,R=>{i&&(s.value=R,C.locale=R,xn(C,s.value,u.value))}),o.watch(t.fallbackLocale,R=>{i&&(u.value=R,C.fallbackLocale=R,xn(C,s.value,u.value))}));const se={id:ci,locale:V,fallbackLocale:B,get inheritLocale(){return i},set inheritLocale(R){i=R,R&&t&&(s.value=t.locale.value,u.value=t.fallbackLocale.value,xn(C,s.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:N,get modifiers(){return x},get pluralRules(){return O||{}},get isGlobal(){return l},get missingWarn(){return f},set missingWarn(R){f=R,C.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(R){h=R,C.fallbackWarn=h},get fallbackRoot(){return S},set fallbackRoot(R){S=R},get fallbackFormat(){return E},set fallbackFormat(R){E=R,C.fallbackFormat=E},get warnHtmlMessage(){return w},set warnHtmlMessage(R){w=R,C.warnHtmlMessage=R},get escapeParameter(){return y},set escapeParameter(R){y=R,C.escapeParameter=R},t:L,getLocaleMessage:qe,setLocaleMessage:ze,mergeLocaleMessage:ut,getPostTranslationHandler:J,setPostTranslationHandler:X,getMissingHandler:te,setMissingHandler:U,[oi]:Be};return se.datetimeFormats=W,se.numberFormats=M,se.rt=T,se.te=st,se.tm=et,se.d=j,se.n=ae,se.getDateTimeFormat=g,se.setDateTimeFormat=k,se.mergeDateTimeFormat=A,se.getNumberFormat=G,se.setNumberFormat=fe,se.mergeNumberFormat=pe,se[li]=n,se[al]=ce,se[rl]=be,se[il]=$,process.env.NODE_ENV!=="production"&&(se[Wt]=R=>{C.__v_emitter=R},se[Nn]=()=>{C.__v_emitter=void 0}),se}const fi="vue-i18n: composer properties",dl={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},ym={"vue-i18n-resource-inspector":"Search for scopes ..."},Sm={"vue-i18n-timeline":16764185};let fl;async function km(e,t){return new Promise((n,l)=>{try{mm({id:"vue-devtools-plugin-vue-i18n",label:dl["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[fi],app:e},a=>{fl=a,a.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{wm(i,s,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&hi(s,i.vnode.el.__VUE_I18N__):hi(s,i.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:dl["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:ym["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Nm(i,t)});const r=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),Om(i,t),i.nodeId==="global"){if(!r.has(i.app)){const[s]=await a.getComponentInstances(i.app);r.set(i.app,s)}a.highlightElement(r.get(i.app))}else{const s=Lm(i.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Pm(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:dl["vue-i18n-timeline"],color:Sm["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),l(!1)}})}function mi(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function wm(e,t,n){const l=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==l){const a={label:`i18n (${mi(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function hi(e,t){const n=fi;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:ml(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function ml(e){const t={};return Object.keys(e).forEach(n=>{const l=e[n];ye(l)&&"source"in l?t[n]=xm(l):Rt(l)&&l.loc&&l.loc.source?t[n]=l.loc.source:he(l)?t[n]=ml(l):t[n]=l}),t}const Cm={"<":"<",">":">",'"':""","&":"&"};function Em(e){return e.replace(/[<>"&]/g,Tm)}function Tm(e){return Cm[e]||e}function xm(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Em(e.source)}")`:"(?)"}`}}}function Nm(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[l,a]of t.__instances){const r=t.mode==="composition"?a:a.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${mi(l)} Scope`})}}function Lm(e,t){let n=null;if(e!=="global"){for(const[l,a]of t.__instances.entries())if(a.id.toString()===e){n=l;break}}return n}function gi(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(l=>l.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Om(e,t){const n=gi(e.nodeId,t);return n&&(e.state=Im(n)),null}function Im(e){const t={},n="Locale related info",l=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=l;const a="Locale messages info",r=[{type:a,key:"messages",editable:!1,value:ml(e.messages.value)}];t[a]=r;{const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=s;const u="Datetime formats info",m=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=m}return t}function On(e,t){if(fl){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),fl.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Pm(e,t){const n=gi(e.nodeId,t);if(n){const[l]=e.path;l==="locale"&&H(e.state.value)?n.locale.value=e.state.value:l==="fallbackLocale"&&(H(e.state.value)||Te(e.state.value)||he(e.state.value))?n.fallbackLocale.value=e.state.value:l==="inheritLocale"&&ge(e.state.value)&&(n.inheritLocale=e.state.value)}}function Vm(e){const t=H(e.locale)?e.locale:Tn,n=H(e.fallbackLocale)||Te(e.fallbackLocale)||ie(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,l=ye(e.missing)?e.missing:void 0,a=ge(e.silentTranslationWarn)||tn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=ge(e.silentFallbackWarn)||tn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=ge(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,u=ie(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,d=ye(e.postTranslation)?e.postTranslation:void 0,c=H(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=ge(e.sync)?e.sync:!0;let S=e.messages;if(ie(e.sharedMessages)){const x=e.sharedMessages;S=Object.keys(x).reduce((C,D)=>{const I=C[D]||(C[D]={});return De(I,x[D]),C},S||{})}const{__i18n:E,__root:b,__injectWithOption:p}=e,_=e.datetimeFormats,w=e.numberFormats,y=e.flatJson;return{locale:t,fallbackLocale:n,messages:S,flatJson:y,datetimeFormats:_,numberFormats:w,missing:l,missingWarn:a,fallbackWarn:r,fallbackRoot:i,fallbackFormat:s,modifiers:u,pluralRules:m,postTranslation:d,warnHtmlMessage:c,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:E,__root:b,__injectWithOption:p}}function hl(e={}){const t=cl(Vm(e)),{__extender:n}=e,l={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return ge(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=ge(a)?!a:a},get silentFallbackWarn(){return ge(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=ge(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},tc(...a){const[r,i,s]=a,u={plural:1};let m=null,d=null;if(process.env.NODE_ENV!=="production"&&Cr(io(Mt.DEPRECATE_TC)),!H(r))throw Xe(Se.INVALID_ARGUMENT);const c=r;return H(i)?u.locale=i:Ne(i)?u.plural=i:Te(i)?m=i:ie(i)&&(d=i),H(s)?u.locale=s:Te(s)?m=s:ie(s)&&(d=s),Reflect.apply(t.t,t,[c,m||d||{},u])},te(a,r){return t.te(a,r)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,r){t.setLocaleMessage(a,r)},mergeLocaleMessage(a,r){t.mergeLocaleMessage(a,r)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,r){t.setDateTimeFormat(a,r)},mergeDateTimeFormat(a,r){t.mergeDateTimeFormat(a,r)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,r){t.setNumberFormat(a,r)},mergeNumberFormat(a,r){t.mergeNumberFormat(a,r)}};return l.__extender=n,process.env.NODE_ENV!=="production"&&(l.__enableEmitter=a=>{const r=t;r[Wt]&&r[Wt](a)},l.__disableEmitter=()=>{const a=t;a[Nn]&&a[Nn]()}),l}function Rm(e,t,n){return{beforeCreate(){const l=o.getCurrentInstance();if(!l)throw Xe(Se.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=pi(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=hl(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=pi(e,a);else{this.$i18n=hl({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&ri(t,a,a),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(l,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const l=this.$i18n;this.$el.__VUE_I18N__=l.__composer;const a=this.__v_emitter=jo();l.__enableEmitter&&l.__enableEmitter(a),a.on("*",On)}},unmounted(){const l=o.getCurrentInstance();if(!l)throw Xe(Se.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",On),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(l),delete this.$i18n}}}function pi(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[oi](t.pluralizationRules||e.pluralizationRules);const n=ul(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(l=>e.mergeLocaleMessage(l,n[l])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(l=>e.mergeDateTimeFormat(l,t.datetimeFormats[l])),t.numberFormats&&Object.keys(t.numberFormats).forEach(l=>e.mergeNumberFormat(l,t.numberFormats[l])),e}const gl={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Am({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((l,a)=>[...l,...a.type===o.Fragment?a.children:[a]],[]):t.reduce((n,l)=>{const a=e[l];return a&&(n[l]=a()),n},_e())}function bi(){return o.Fragment}const _i=o.defineComponent({name:"i18n-t",props:De({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ne(e)||!isNaN(e)}},gl),setup(e,t){const{slots:n,attrs:l}=t,a=e.i18n||pl({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(c=>c!=="_"),i=_e();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=H(e.plural)?+e.plural:e.plural);const s=Am(t,r),u=a[al](e.keypath,s,i),m=De(_e(),l),d=H(e.tag)||he(e.tag)?e.tag:bi();return o.h(d,m,u)}}});function Mm(e){return Te(e)&&!H(e[0])}function vi(e,t,n,l){const{slots:a,attrs:r}=t;return()=>{const i={part:!0};let s=_e();e.locale&&(i.locale=e.locale),H(e.format)?i.key=e.format:he(e.format)&&(H(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((f,h)=>n.includes(h)?De(_e(),f,{[h]:e.format[h]}):f,_e()));const u=l(e.value,i,s);let m=[i.key];Te(u)?m=u.map((f,h)=>{const S=a[f.type],E=S?S({[f.type]:f.value,index:h,parts:u}):[f.value];return Mm(E)&&(E[0].key=`${f.type}-${h}`),E}):H(u)&&(m=[u]);const d=De(_e(),r),c=H(e.tag)||he(e.tag)?e.tag:bi();return o.h(c,d,m)}}const yi=o.defineComponent({name:"i18n-n",props:De({value:{type:Number,required:!0},format:{type:[String,Object]}},gl),setup(e,t){const n=e.i18n||pl({useScope:e.scope,__useComponent:!0});return vi(e,t,Qr,(...l)=>n[il](...l))}}),Si=o.defineComponent({name:"i18n-d",props:De({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},gl),setup(e,t){const n=e.i18n||pl({useScope:e.scope,__useComponent:!0});return vi(e,t,Wr,(...l)=>n[rl](...l))}});function Dm(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const l=n.__getInstance(t);return l!=null?l.__composer:e.global.__composer}}function Bm(e){const t=i=>{const{instance:s,value:u}=i;if(!s||!s.$)throw Xe(Se.UNEXPECTED_ERROR);const m=Dm(e,s.$),d=ki(u);return[Reflect.apply(m.t,m,[...wi(d)]),m]};return{created:(i,s)=>{const[u,m]=t(s);ht&&e.global===m&&(i.__i18nWatcher=o.watch(m.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=m,i.textContent=u},unmounted:i=>{ht&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const u=i.__composer,m=ki(s);i.textContent=Reflect.apply(u.t,u,[...wi(m)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function ki(e){if(H(e))return{path:e};if(ie(e)){if(!("path"in e))throw Xe(Se.REQUIRED_VALUE,"path");return e}else throw Xe(Se.INVALID_VALUE)}function wi(e){const{path:t,locale:n,args:l,choice:a,plural:r}=e,i={},s=l||{};return H(n)&&(i.locale=n),Ne(a)&&(i.plural=a),Ne(r)&&(i.plural=r),[t,s,i]}function qm(e,t,...n){const l=ie(n[0])?n[0]:{};(ge(l.globalInstall)?l.globalInstall:!0)&&([_i.name,"I18nT"].forEach(r=>e.component(r,_i)),[yi.name,"I18nN"].forEach(r=>e.component(r,yi)),[Si.name,"I18nD"].forEach(r=>e.component(r,Si))),e.directive("t",Bm(t))}const Fm=vt("global-vue-i18n");function $m(e={},t){const n=__VUE_I18N_LEGACY_API__&&ge(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,l=ge(e.globalInjection)?e.globalInjection:!0,a=new Map,[r,i]=Um(e,n),s=vt(process.env.NODE_ENV!=="production"?"vue-i18n":"");function u(f){return a.get(f)||null}function m(f,h){a.set(f,h)}function d(f){a.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(f,...h){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=c),f.__VUE_I18N_SYMBOL__=s,f.provide(f.__VUE_I18N_SYMBOL__,c),ie(h[0])){const b=h[0];c.__composerExtend=b.__composerExtend,c.__vueI18nExtend=b.__vueI18nExtend}let S=null;!n&&l&&(S=Ym(f,c.global)),__VUE_I18N_FULL_INSTALL__&&qm(f,c,...h),__VUE_I18N_LEGACY_API__&&n&&f.mixin(Rm(i,i.__composer,c));const E=f.unmount;if(f.unmount=()=>{S&&S(),c.dispose(),E()},process.env.NODE_ENV!=="production"){if(!await km(f,c))throw Xe(Se.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const p=jo();if(n){const _=i;_.__enableEmitter&&_.__enableEmitter(p)}else{const _=i;_[Wt]&&_[Wt](p)}p.on("*",On)}},get global(){return i},dispose(){r.stop()},__instances:a,__getInstance:u,__setInstance:m,__deleteInstance:d};return c}function pl(e={}){const t=o.getCurrentInstance();if(t==null)throw Xe(Se.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Xe(Se.NOT_INSTALLED);const n=Hm(t),l=jm(n),a=ai(t),r=zm(e,a);if(r==="global")return ri(l,e,a),l;if(r==="parent"){let u=Wm(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&It(io(Mt.NOT_FOUND_PARENT_SCOPE)),u=l),u}const i=n;let s=i.__getInstance(t);if(s==null){const u=De({},e);"__i18n"in a&&(u.__i18n=a.__i18n),l&&(u.__root=l),s=cl(u),i.__composerExtend&&(s[sl]=i.__composerExtend(s)),Gm(i,t,s),i.__setInstance(t,s)}return s}function Um(e,t,n){const l=o.effectScope(),a=__VUE_I18N_LEGACY_API__&&t?l.run(()=>hl(e)):l.run(()=>cl(e));if(a==null)throw Xe(Se.UNEXPECTED_ERROR);return[l,a]}function Hm(e){const t=o.inject(e.isCE?Fm:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Xe(e.isCE?Se.NOT_INSTALLED_WITH_PROVIDE:Se.UNEXPECTED_ERROR);return t}function zm(e,t){return Zn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function jm(e){return e.mode==="composition"?e.global:e.global.__composer}function Wm(e,t,n=!1){let l=null;const a=t.root;let r=Km(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")l=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(r);s!=null&&(l=s.__composer,n&&l&&!l[li]&&(l=null))}if(l!=null||a===r)break;r=r.parent}return l}function Km(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Gm(e,t,n){let l=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,l=jo();const a=n;a[Wt]&&a[Wt](l),l.on("*",On)}},t),o.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(l&&l.off("*",On),a[Nn]&&a[Nn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=a[sl];r&&(r(),delete a[sl])},t)}const Qm=["locale","fallbackLocale","availableLocales"],Ci=["t","rt","d","n","tm","te"];function Ym(e,t){const n=Object.create(null);return Qm.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw Xe(Se.UNEXPECTED_ERROR);const i=o.isRef(r.value)?{get(){return r.value.value},set(s){r.value.value=s}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,Ci.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw Xe(Se.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,Ci.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(gm(),qf(bf),Ff(Rf),$f(Or),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=zt();e.__INTLIFY__=!0,_f(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const bl=$m({locale:"es",globalInjection:!0,silentTranslationWarn:!0,messages:dd}),Xm={install(e){console.log("[Quasar Components] Installing..."),aa(e,xs),aa(e,cd),e.use(bl),bl.global.locale="en",e.use(Xi,{plugins:{}}),console.log("[Quasar components] Installed")}};function Jm(e){bl.global.locale=e}bt.KMyButton=la,bt.MyTable=_r,bt.QuasarFactoryLib=Xm,bt.updatePackageLanguage=Jm,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { App, Plugin } from 'vue'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import MyTable from './K-Table.vue'
|
|
4
4
|
|
|
5
5
|
import { registerComponent } from '@/utils/plugins'
|
|
6
6
|
|
|
@@ -10,9 +10,9 @@ import { registerComponent } from '@/utils/plugins'
|
|
|
10
10
|
/** export button plugin */
|
|
11
11
|
export default {
|
|
12
12
|
install (app: App) {
|
|
13
|
-
registerComponent(app, 'KTable',
|
|
13
|
+
registerComponent(app, 'KTable', MyTable)
|
|
14
14
|
}
|
|
15
15
|
} as Plugin
|
|
16
16
|
|
|
17
17
|
/** export button components */
|
|
18
|
-
export {
|
|
18
|
+
export { MyTable as MyTable }
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@quasar/extras/material-icons/material-icons.css'
|
|
2
2
|
import { Quasar } from 'quasar'
|
|
3
3
|
import { App, Plugin } from 'vue'
|
|
4
|
-
import { KMyButton,
|
|
4
|
+
import { KMyButton, MyTable } from './components/plugins.ts'
|
|
5
5
|
import { registerPlugin, setVueInstance } from './utils/plugins.ts'
|
|
6
6
|
import TranslateKeys from './i18n/translateKeys.ts'
|
|
7
7
|
|
|
8
|
-
export { KMyButton,
|
|
8
|
+
export { KMyButton, MyTable } from './components/index.ts'
|
|
9
9
|
|
|
10
10
|
export type { TranslateKeys }
|
|
11
11
|
// import plugins from "./components/plugins";
|
|
@@ -19,7 +19,7 @@ const plugin: Plugin = {
|
|
|
19
19
|
console.log('[Quasar Components] Installing...')
|
|
20
20
|
setVueInstance(app)
|
|
21
21
|
registerPlugin(app, KMyButton)
|
|
22
|
-
registerPlugin(app,
|
|
22
|
+
registerPlugin(app, MyTable)
|
|
23
23
|
app.use(i18n)
|
|
24
24
|
i18n.global.locale = 'en'
|
|
25
25
|
app.use(Quasar, {
|