@validol4ik/uikit 0.2.4 → 0.2.6

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.
@@ -1,2 +1,2 @@
1
- export declare const icons_o: readonly ["search", "telegram", "instagram_o", "price-tag_o", "coin_o", "checklist", "rule", "quote_o", "play_o", "visibility-off", "visibility", "user-close_o", "user-plus_o", "user_o", "circle-question_o", "arrow-down", "arrow-up", "arrow-left", "arrow-right", "arrow-download", "arrow-export", "arrow-logout", "arrow-share", "bulleted-list", "menu", "text-left", "text-right", "check", "award_o", "medal_o", "bookmark_o", "calendar_o", "circle-check_o", "circle-info_o", "pie-chart_o", "edit_o", "trash_o", "copy_o", "copied_o", "folder_o", "folder-plus_o", "file-plus_o", "flag_o", "home_o", "timer_o", "unlock_o", "lock_o", "mail_o", "plus", "minus", "translate", "trophy_o", "return", "close", "more-vertical", "drag", "stack_o", "mic_o", "mic-off_o", "circle-question_o"];
2
- export declare const icons: readonly ["instagram", "price-tag", "coin", "quote", "play", "award", "medal", "bookmark", "calendar", "circle-check", "circle-info", "pie-chart", "edit", "trash", "copy", "copied", "folder", "folder-plus", "file-plus", "flag", "home", "timer", "unlock", "lock", "mail", "user-close", "user-plus", "user", "trophy", "stack", "mic", "mic-off", "circle-question"];
1
+ export declare const icons_o: readonly ["crown_o", "star_fall_o", "star_o", "search", "telegram", "instagram_o", "price-tag_o", "coin_o", "checklist", "rule", "quote_o", "play_o", "visibility-off", "visibility", "user-close_o", "user-plus_o", "user_o", "circle-question_o", "arrow-down", "arrow-up", "arrow-left", "arrow-right", "arrow-download", "arrow-export", "arrow-logout", "arrow-share", "bulleted-list", "menu", "text-left", "text-right", "check", "award_o", "medal_o", "bookmark_o", "calendar_o", "circle-check_o", "circle-info_o", "pie-chart_o", "edit_o", "trash_o", "copy_o", "copied_o", "folder_o", "folder-plus_o", "file-plus_o", "flag_o", "home_o", "timer_o", "unlock_o", "lock_o", "mail_o", "plus", "minus", "translate", "trophy_o", "return", "close", "more-vertical", "drag", "stack_o", "mic_o", "mic-off_o", "circle-question_o"];
2
+ export declare const icons: readonly ["crown", "star_fall", "star", "instagram", "price-tag", "coin", "quote", "play", "award", "medal", "bookmark", "calendar", "circle-check", "circle-info", "pie-chart", "edit", "trash", "copy", "copied", "folder", "folder-plus", "file-plus", "flag", "home", "timer", "unlock", "lock", "mail", "user-close", "user-plus", "user", "trophy", "stack", "mic", "mic-off", "circle-question"];
@@ -1,8 +1,8 @@
1
- import { Color } from '../types';
1
+ import { NamedColor } from 'quasar';
2
2
  import { icons_o, icons } from './iconsList';
3
3
  export interface AppIconProps {
4
4
  name: string;
5
5
  size?: string;
6
- color?: Color;
6
+ color?: NamedColor;
7
7
  }
8
8
  export type AppIconNames = (typeof icons)[number] | (typeof icons_o)[number];
@@ -11,7 +11,10 @@ declare const __VLS_component: import('vue').DefineComponent<AppButtonProps, {},
11
11
  click: (...args: any[]) => void;
12
12
  }, string, import('vue').PublicProps, Readonly<AppButtonProps> & Readonly<{
13
13
  onClick?: ((...args: any[]) => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ }>, {
15
+ size: import('../../types').Size;
16
+ color: import('quasar').NamedColor;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
19
  export default _default;
17
20
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,24 +1,23 @@
1
- import { QBtnProps } from 'quasar';
2
- import { Color } from '../../types';
1
+ import { QBtnProps, NamedColor } from 'quasar';
2
+ import { Size } from '../../types';
3
3
  import { AppIconNames } from '../../AppIcon/types';
4
4
  export interface AppButtonProps {
5
- size?: "sm" | "md" | "lg";
5
+ size?: Size;
6
6
  transparent?: boolean;
7
+ flat?: boolean;
7
8
  rounded?: boolean;
8
- color?: Color;
9
+ color?: NamedColor;
9
10
  iconLeft?: AppIconNames;
10
11
  iconRight?: AppIconNames;
11
12
  iconMiddle?: AppIconNames;
12
13
  disabled?: boolean;
13
- loading?: QBtnProps["loading"];
14
+ loading?: boolean;
14
15
  to?: QBtnProps["to"];
15
16
  href?: QBtnProps["href"];
16
17
  target?: QBtnProps["target"];
17
18
  submit?: boolean;
18
19
  ariaLabel?: string;
19
20
  }
20
- export declare enum ButtonPaddings {
21
- sm = "3px 9px",
22
- md = "5px 12px",
23
- lg = "9px 20px"
24
- }
21
+ export declare const ButtonPaddings: {
22
+ [x: string]: string;
23
+ };
@@ -1,6 +1,6 @@
1
1
  import { default as CopyButtonProps } from './types';
2
2
  declare const _default: import('vue').DefineComponent<CopyButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CopyButtonProps> & Readonly<{}>, {
3
3
  transparent: boolean;
4
- color: import('../../types').Color;
4
+ color: import('quasar').NamedColor;
5
5
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
6
  export default _default;
@@ -1,7 +1,7 @@
1
- import { ButtonPaddings } from './AppButton/types';
1
+ import { Size } from '../types';
2
2
  declare const _default: {
3
- SM: keyof typeof ButtonPaddings;
4
- MD: keyof typeof ButtonPaddings;
5
- LG: keyof typeof ButtonPaddings;
3
+ SM: Size;
4
+ MD: Size;
5
+ LG: Size;
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,8 @@
1
+ import { NamedColor } from 'quasar';
1
2
  export declare const COLORS: {
2
- PRIMARY: string;
3
- INFO: string;
4
- ACCENT: string;
5
- NEGATIVE: string;
6
- POSITIVE: string;
3
+ PRIMARY: NamedColor;
4
+ INFO: NamedColor;
5
+ ACCENT: NamedColor;
6
+ NEGATIVE: NamedColor;
7
+ POSITIVE: NamedColor;
7
8
  };
@@ -2,6 +2,6 @@ import { default as AppButton } from './buttons/AppButton/index.vue';
2
2
  import { default as AppIcon } from './AppIcon/index.vue';
3
3
  declare const AppButtonCopy: import('vue').DefineComponent<import('./buttons/CopyButton/types').default, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./buttons/CopyButton/types').default> & Readonly<{}>, {
4
4
  transparent: boolean;
5
- color: import('./types').Color;
5
+ color: import('quasar').NamedColor;
6
6
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
7
  export { AppButton, AppIcon, AppButtonCopy };
@@ -1,2 +1 @@
1
- import { COLORS } from './constants.ts';
2
- export type Color = typeof COLORS.PRIMARY | typeof COLORS.INFO | typeof COLORS.ACCENT | typeof COLORS.NEGATIVE | typeof COLORS.POSITIVE;
1
+ export type Size = "sm" | "md" | "lg";
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
3
+ <svg width="800px" height="800px" viewBox="-31.5 0 319 319" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
4
+ <defs>
5
+ <path d="M9.87245893,293.324145 L0.0114611411,30.5732167 C-0.314208957,21.8955842 6.33948896,14.5413918 15.0063196,13.9997149 L238.494389,0.0317105427 C247.316188,-0.519651867 254.914637,6.18486163 255.466,15.0066607 C255.486773,15.339032 255.497167,15.6719708 255.497167,16.0049907 L255.497167,302.318596 C255.497167,311.157608 248.331732,318.323043 239.492719,318.323043 C239.253266,318.323043 239.013844,318.317669 238.774632,318.306926 L25.1475605,308.712253 C16.8276309,308.338578 10.1847994,301.646603 9.87245893,293.324145 L9.87245893,293.324145 Z" id="path-1">
6
+
7
+ </defs>
8
+ <g>
9
+ <mask id="mask-2" fill="white">
10
+ <use xlink:href="#path-1">
11
+
12
+ </mask>
13
+ <use fill="#FF4785" fill-rule="nonzero" xlink:href="#path-1">
14
+
15
+ <path d="M188.665358,39.126973 L190.191903,2.41148534 L220.883535,0 L222.205755,37.8634126 C222.251771,39.1811466 221.22084,40.2866846 219.903106,40.3327009 C219.338869,40.3524045 218.785907,40.1715096 218.342409,39.8221376 L206.506729,30.4984116 L192.493574,41.1282444 C191.443077,41.9251106 189.945493,41.7195021 189.148627,40.6690048 C188.813185,40.2267976 188.6423,39.6815326 188.665358,39.126973 Z M149.413703,119.980309 C149.413703,126.206975 191.355678,123.222696 196.986019,118.848893 C196.986019,76.4467826 174.234041,54.1651411 132.57133,54.1651411 C90.9086182,54.1651411 67.5656805,76.7934542 67.5656805,110.735941 C67.5656805,169.85244 147.345341,170.983856 147.345341,203.229219 C147.345341,212.280549 142.913138,217.654777 133.162291,217.654777 C120.456641,217.654777 115.433477,211.165914 116.024438,189.103298 C116.024438,184.317101 67.5656805,182.824962 66.0882793,189.103298 C62.3262146,242.56887 95.6363019,257.990394 133.753251,257.990394 C170.688279,257.990394 199.645341,238.303123 199.645341,202.663511 C199.645341,139.304202 118.683759,141.001326 118.683759,109.604526 C118.683759,96.8760922 128.139127,95.178968 133.753251,95.178968 C139.662855,95.178968 150.300143,96.2205679 149.413703,119.980309 Z" fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-2)">
16
+
17
+ </g>
18
+ </svg>
package/dist/icons.css CHANGED
@@ -1 +1 @@
1
- i.icon-kl{font-family:kl!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-kl-return:before{content:""}.icon-kl-close:before{content:""}.icon-kl-more-vertical:before{content:""}.icon-kl-drag:before{content:""}.icon-kl-stack_o:before{content:""}.icon-kl-mic-off_o:before{content:""}.icon-kl-mic_o:before{content:""}.icon-kl-stack:before{content:""}.icon-kl-mic-off:before{content:""}.icon-kl-mic:before{content:""}.icon-kl-circle-question:before{content:""}.icon-kl-search:before{content:""}.icon-kl-instagram_o:before{content:""}.icon-kl-telegram:before{content:""}.icon-kl-coin_o:before{content:""}.icon-kl-check:before{content:""}.icon-kl-translate:before{content:""}.icon-kl-price-tag_o:before{content:""}.icon-kl-rule:before{content:""}.icon-kl-checklist:before{content:""}.icon-kl-quote_o:before{content:""}.icon-kl-play_o:before{content:""}.icon-kl-plus:before{content:""}.icon-kl-minus:before{content:""}.icon-kl-visibility-off:before{content:""}.icon-kl-visibility:before{content:""}.icon-kl-circle-question_o:before{content:""}.icon-kl-arrow-up:before{content:""}.icon-kl-arrow-down:before{content:""}.icon-kl-arrow-left:before{content:""}.icon-kl-arrow-right:before{content:""}.icon-kl-arrow-download:before{content:""}.icon-kl-arrow-export:before{content:""}.icon-kl-arrow-logout:before{content:""}.icon-kl-arrow-share:before{content:""}.icon-kl-bulleted-list:before{content:""}.icon-kl-menu:before{content:""}.icon-kl-text-right:before{content:""}.icon-kl-text-left:before{content:""}.icon-kl-award_o:before{content:""}.icon-kl-medal_o:before{content:""}.icon-kl-bookmark_o:before{content:""}.icon-kl-calendar_o:before{content:""}.icon-kl-circle-check_o:before{content:""}.icon-kl-circle-info_o:before{content:""}.icon-kl-pie-chart_o:before{content:""}.icon-kl-edit_o:before{content:""}.icon-kl-trash_o:before{content:""}.icon-kl-copy_o:before{content:""}.icon-kl-copied_o:before{content:""}.icon-kl-folder_o:before{content:""}.icon-kl-folder-plus_o:before{content:""}.icon-kl-file-plus_o:before{content:""}.icon-kl-flag_o:before{content:""}.icon-kl-home_o:before{content:""}.icon-kl-timer_o:before{content:""}.icon-kl-unlock_o:before{content:""}.icon-kl-lock_o:before{content:""}.icon-kl-mail_o:before{content:""}.icon-kl-user_o:before{content:""}.icon-kl-user-plus_o:before{content:""}.icon-kl-user-close_o:before{content:""}.icon-kl-trophy_o:before{content:""}.icon-kl-instagram:before{content:""}.icon-kl-coin:before{content:""}.icon-kl-price-tag:before{content:""}.icon-kl-quote:before{content:""}.icon-kl-play:before{content:""}.icon-kl-award:before{content:""}.icon-kl-medal:before{content:""}.icon-kl-bookmark:before{content:""}.icon-kl-calendar:before{content:""}.icon-kl-circle-check:before{content:""}.icon-kl-circle-info:before{content:""}.icon-kl-pie-chart:before{content:""}.icon-kl-edit:before{content:""}.icon-kl-trash:before{content:""}.icon-kl-copy:before{content:""}.icon-kl-copied:before{content:""}.icon-kl-folder:before{content:""}.icon-kl-folder-plus:before{content:""}.icon-kl-file-plus:before{content:""}.icon-kl-flag:before{content:""}.icon-kl-home:before{content:""}.icon-kl-timer:before{content:""}.icon-kl-unlock:before{content:""}.icon-kl-lock:before{content:""}.icon-kl-mail:before{content:""}.icon-kl-user:before{content:""}.icon-kl-user-close:before{content:""}.icon-kl-user-plus:before{content:""}.icon-kl-trophy:before{content:""}
1
+ i.icon-kl{font-family:kl!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-kl-crown_o:before{content:""}.icon-kl-star_fall_o:before{content:""}.icon-kl-star_o:before{content:""}.icon-kl-translate:before{content:""}.icon-kl-return:before{content:""}.icon-kl-search:before{content:""}.icon-kl-plus:before{content:""}.icon-kl-minus:before{content:""}.icon-kl-check:before{content:""}.icon-kl-close:before{content:""}.icon-kl-arrow-up:before{content:""}.icon-kl-arrow-down:before{content:""}.icon-kl-arrow-left:before{content:""}.icon-kl-arrow-right:before{content:""}.icon-kl-more-vertical:before{content:""}.icon-kl-arrow-download:before{content:""}.icon-kl-arrow-export:before{content:""}.icon-kl-arrow-logout:before{content:""}.icon-kl-arrow-share:before{content:""}.icon-kl-drag:before{content:""}.icon-kl-rule:before{content:""}.icon-kl-checklist:before{content:""}.icon-kl-bulleted-list:before{content:""}.icon-kl-menu:before{content:""}.icon-kl-text-right:before{content:""}.icon-kl-text-left:before{content:""}.icon-kl-stack_o:before{content:""}.icon-kl-mic-off_o:before{content:""}.icon-kl-mic_o:before{content:""}.icon-kl-telegram:before{content:""}.icon-kl-instagram_o:before{content:""}.icon-kl-mail_o:before{content:""}.icon-kl-coin_o:before{content:""}.icon-kl-price-tag_o:before{content:""}.icon-kl-quote_o:before{content:""}.icon-kl-play_o:before{content:""}.icon-kl-award_o:before{content:""}.icon-kl-medal_o:before{content:""}.icon-kl-bookmark_o:before{content:""}.icon-kl-calendar_o:before{content:""}.icon-kl-circle-check_o:before{content:""}.icon-kl-circle-question_o:before{content:""}.icon-kl-circle-info_o:before{content:""}.icon-kl-pie-chart_o:before{content:""}.icon-kl-edit_o:before{content:""}.icon-kl-trash_o:before{content:""}.icon-kl-copy_o:before{content:""}.icon-kl-copied_o:before{content:""}.icon-kl-folder_o:before{content:""}.icon-kl-folder-plus_o:before{content:""}.icon-kl-file-plus_o:before{content:""}.icon-kl-flag_o:before{content:""}.icon-kl-home_o:before{content:""}.icon-kl-timer_o:before{content:""}.icon-kl-visibility-off:before{content:""}.icon-kl-visibility:before{content:""}.icon-kl-unlock_o:before{content:""}.icon-kl-lock_o:before{content:""}.icon-kl-user_o:before{content:""}.icon-kl-user-plus_o:before{content:""}.icon-kl-user-close_o:before{content:""}.icon-kl-trophy_o:before{content:""}.icon-kl-crown:before{content:""}.icon-kl-star_fall:before{content:""}.icon-kl-star:before{content:""}.icon-kl-stack:before{content:""}.icon-kl-mic-off:before{content:""}.icon-kl-mic:before{content:""}.icon-kl-instagram:before{content:""}.icon-kl-mail:before{content:""}.icon-kl-coin:before{content:""}.icon-kl-price-tag:before{content:""}.icon-kl-quote:before{content:""}.icon-kl-play:before{content:""}.icon-kl-award:before{content:""}.icon-kl-medal:before{content:""}.icon-kl-bookmark:before{content:""}.icon-kl-calendar:before{content:""}.icon-kl-circle-check:before{content:""}.icon-kl-circle-question:before{content:""}.icon-kl-circle-info:before{content:""}.icon-kl-pie-chart:before{content:""}.icon-kl-edit:before{content:""}.icon-kl-trash:before{content:""}.icon-kl-copy:before{content:""}.icon-kl-copied:before{content:""}.icon-kl-folder:before{content:""}.icon-kl-folder-plus:before{content:""}.icon-kl-file-plus:before{content:""}.icon-kl-flag:before{content:""}.icon-kl-home:before{content:""}.icon-kl-timer:before{content:""}.icon-kl-unlock:before{content:""}.icon-kl-lock:before{content:""}.icon-kl-user:before{content:""}.icon-kl-user-close:before{content:""}.icon-kl-user-plus:before{content:""}.icon-kl-trophy:before{content:""}
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),R={SM:"sm",MD:"md",LG:"lg"},de={[R.SM]:"3px 9px",[R.MD]:"5px 12px",[R.LG]:"9px 20px"},ne={PRIMARY:"primary",INFO:"info"},V={xs:18,sm:24,md:32,lg:38,xl:46},ae={size:String};function oe(e,t=V){return a.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Q(e){return a.markRaw(a.defineComponent(e))}function fe(e){return a.markRaw(e)}function ve(e,t){return e!==void 0&&e()||t}function j(e,t){return e!==void 0?t.concat(e()):t}const U="0 0 24 24",Y=e=>e,N=e=>`ionicons ${e}`,re={"mdi-":e=>`mdi ${e}`,"icon-":Y,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":N,"ion-ios":N,"ion-logo":N,"iconfont ":Y,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},ie={o_:"-outlined",r_:"-round",s_:"-sharp"},le={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},me=new RegExp("^("+Object.keys(re).join("|")+")"),pe=new RegExp("^("+Object.keys(ie).join("|")+")"),G=new RegExp("^("+Object.keys(le).join("|")+")"),ge=/^[Mm]\s?[-+]?\.?\d/,he=/^img:/,be=/^svguse:/,ye=/^ion-/,ke=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,H=Q({name:"QIcon",props:{...ae,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=a.getCurrentInstance(),n=oe(e),i=a.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=a.computed(()=>{let c,l=e.name;if(l==="none"||!l)return{none:!0};if(o.iconMapFn!==null){const s=o.iconMapFn(l);if(s!==void 0)if(s.icon!==void 0){if(l=s.icon,l==="none"||!l)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(ge.test(l)===!0){const[s,h=U]=l.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(u=>{const[b,p,y]=u.split("@@");return a.h("path",{style:p,d:b,transform:y})})}}if(he.test(l)===!0)return{img:!0,src:l.substring(4)};if(be.test(l)===!0){const[s,h=U]=l.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let $=" ";const g=l.match(me);if(g!==null)c=re[g[1]](l);else if(ke.test(l)===!0)c=l;else if(ye.test(l)===!0)c=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${l.substring(3)}`;else if(G.test(l)===!0){c="notranslate material-symbols";const s=l.match(G);s!==null&&(l=l.substring(6),c+=le[s[1]]),$=l}else{c="notranslate material-icons";const s=l.match(pe);s!==null&&(l=l.substring(2),c+=ie[s[1]]),$=l}return{cls:c,content:$}});return()=>{const c={class:i.value,style:n.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?a.h(e.tag,c,ve(t.default)):d.value.img===!0?a.h(e.tag,c,j(t.default,[a.h("img",{src:d.value.src})])):d.value.svg===!0?a.h(e.tag,c,j(t.default,[a.h("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?a.h(e.tag,c,j(t.default,[a.h("svg",{viewBox:d.value.viewBox},[a.h("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(c.class+=" "+d.value.cls),a.h(e.tag,c,j(t.default,[d.value.content])))}}}),$e={size:{type:[String,Number],default:"1em"},color:String};function qe(e){return{cSize:a.computed(()=>e.size in V?`${V[e.size]}px`:e.size),classes:a.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Ce=Q({name:"QSpinner",props:{...$e,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=qe(e);return()=>a.h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[a.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Ee(e,t){const o=e.style;for(const n in t)o[n]=t[n]}const K={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(K,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Be(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function ue(e){e.stopPropagation()}function _e(e){e.cancelable!==!1&&e.preventDefault()}function P(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Le(e,t,o){const n=`__q_${t}_evt`;e[n]=e[n]!==void 0?e[n].concat(o):o,o.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],K[i[3]])})}function Re(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(n=>{n[0].removeEventListener(n[1],e[n[2]],K[n[3]])}),e[o]=void 0)}function Se(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,t){return Se(e)===!0?!1:[].concat(t).includes(e.keyCode)}function xe(e,t=250){let o=!1,n;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},t),n=e.apply(this,arguments)),n}}function W(e,t,o,n){o.modifiers.stop===!0&&ue(e);const i=o.modifiers.color;let d=o.modifiers.center;d=d===!0||n===!0;const c=document.createElement("span"),l=document.createElement("span"),$=Be(e),{left:g,top:s,width:h,height:u}=t.getBoundingClientRect(),b=Math.sqrt(h*h+u*u),p=b/2,y=`${(h-b)/2}px`,f=d?y:`${$.left-g-p}px`,k=`${(u-b)/2}px`,w=d?k:`${$.top-s-p}px`;l.className="q-ripple__inner",Ee(l,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${f},${w},0) scale3d(.2,.2,1)`,opacity:0}),c.className=`q-ripple${i?" text-"+i:""}`,c.setAttribute("dir","ltr"),c.appendChild(l),t.appendChild(c);const S=()=>{c.remove(),clearTimeout(x)};o.abort.push(S);let x=setTimeout(()=>{l.classList.add("q-ripple__inner--enter"),l.style.transform=`translate3d(${y},${k},0) scale3d(1,1,1)`,l.style.opacity=.2,x=setTimeout(()=>{l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,x=setTimeout(()=>{c.remove(),o.abort.splice(o.abort.indexOf(S),1)},275)},250)},50)}function X(e,{modifiers:t,value:o,arg:n}){const i=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||n,keyCodes:[].concat(i.keyCodes||13)}}const we=fe({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const n={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(i){n.enabled===!0&&i.qSkipRipple!==!0&&i.type===(n.modifiers.early===!0?"pointerdown":"click")&&W(i,e,n,i.qKeyEvent===!0)},keystart:xe(i=>{n.enabled===!0&&i.qSkipRipple!==!0&&F(i,n.modifiers.keyCodes)===!0&&i.type===`key${n.modifiers.early===!0?"down":"up"}`&&W(i,e,n,!0)},300)};X(n,t),e.__qripple=n,Le(n,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled===!0&&Object(t.value)===t.value&&X(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),Re(t,"main"),delete e._qripple)}}),se={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pe=Object.keys(se),Me={align:{type:String,validator:e=>Pe.includes(e)}};function Te(e){return a.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${se[t]}`})}function Oe(e){return e.appContext.config.globalProperties.$router!==void 0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function J(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ze(e,t){for(const o in t){const n=t[o],i=e[o];if(typeof n=="string"){if(n!==i)return!1}else if(Array.isArray(i)===!1||i.length!==n.length||n.some((d,c)=>d!==i[c]))return!1}return!0}function ee(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function Ae(e,t){return Array.isArray(e)===!0?ee(e,t):Array.isArray(t)===!0?ee(t,e):e===t}function je(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(Ae(e[o],t[o])===!1)return!1;return!0}const Ie={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean};function De({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=a.getCurrentInstance(),{props:n,proxy:i,emit:d}=o,c=Oe(o),l=a.computed(()=>n.disable!==!0&&n.href!==void 0),$=t===!0?a.computed(()=>c===!0&&n.disable!==!0&&l.value!==!0&&n.to!==void 0&&n.to!==null&&n.to!==""):a.computed(()=>c===!0&&l.value!==!0&&n.to!==void 0&&n.to!==null&&n.to!==""),g=a.computed(()=>$.value===!0?w(n.to):null),s=a.computed(()=>g.value!==null),h=a.computed(()=>l.value===!0||s.value===!0),u=a.computed(()=>n.type==="a"||h.value===!0?"a":n.tag||e||"div"),b=a.computed(()=>l.value===!0?{href:n.href,target:n.target}:s.value===!0?{href:g.value.href,target:n.target}:{}),p=a.computed(()=>{if(s.value===!1)return-1;const{matched:v}=g.value,{length:q}=v,E=v[q-1];if(E===void 0)return-1;const _=i.$route.matched;if(_.length===0)return-1;const L=_.findIndex(J.bind(null,E));if(L!==-1)return L;const I=Z(v[q-2]);return q>1&&Z(E)===I&&_[_.length-1].path!==I?_.findIndex(J.bind(null,v[q-2])):L}),y=a.computed(()=>s.value===!0&&p.value!==-1&&ze(i.$route.params,g.value.params)),f=a.computed(()=>y.value===!0&&p.value===i.$route.matched.length-1&&je(i.$route.params,g.value.params)),k=a.computed(()=>s.value===!0?f.value===!0?` ${n.exactActiveClass} ${n.activeClass}`:n.exact===!0?"":y.value===!0?` ${n.activeClass}`:"":"");function w(v){try{return i.$router.resolve(v)}catch{}return null}function S(v,{returnRouterError:q,to:E=n.to,replace:_=n.replace}={}){if(n.disable===!0)return v.preventDefault(),Promise.resolve(!1);if(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey||v.button!==void 0&&v.button!==0||n.target==="_blank")return Promise.resolve(!1);v.preventDefault();const L=i.$router[_===!0?"replace":"push"](E);return q===!0?L:L.then(()=>{}).catch(()=>{})}function x(v){if(s.value===!0){const q=E=>S(v,E);d("click",v,q),v.defaultPrevented!==!0&&q()}else d("click",v)}return{hasRouterLink:s,hasHrefLink:l,hasLink:h,linkTag:u,resolvedLink:g,linkIsActive:y,linkIsExactActive:f,linkClass:k,linkAttrs:b,getLink:w,navigateToRouterLink:S,navigateOnClick:x}}const te={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ke={xs:8,sm:10,md:14,lg:20,xl:24},Ne=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,Fe=["flat","outline","push","unelevated"];function Qe(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Ue={...ae,...Ie,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Fe.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Me.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ye={...Ue,round:Boolean};function Ge(e){const t=oe(e,Ke),o=Te(e),{hasRouterLink:n,hasLink:i,linkTag:d,linkAttrs:c,navigateOnClick:l}=De({fallbackTag:"button"}),$=a.computed(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(k=>k in te?te[k]+"px":k).join(" "),minWidth:"0",minHeight:"0"}):f}),g=a.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=a.computed(()=>e.disable!==!0&&e.loading!==!0),h=a.computed(()=>s.value===!0?e.tabindex||0:-1),u=a.computed(()=>Qe(e,"standard")),b=a.computed(()=>{const f={tabindex:h.value};return i.value===!0?Object.assign(f,c.value):Ne.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),n.value!==!0&&Ve.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),p=a.computed(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const k=e.round===!0?"round":`rectangle${g.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${u.value} q-btn--${k}`+(f!==void 0?" "+f:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),y=a.computed(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:$,innerClasses:y,attributes:b,hasLink:i,linkTag:d,navigateOnClick:l,isActionable:s}}const{passiveCapture:C}=K;let M=null,T=null,O=null;const He=Q({name:"QBtn",props:{...Ye,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:n}=a.getCurrentInstance(),{classes:i,style:d,innerClasses:c,attributes:l,hasLink:$,linkTag:g,navigateOnClick:s,isActionable:h}=Ge(e),u=a.ref(null),b=a.ref(null);let p=null,y,f=null;const k=a.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),w=a.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:$.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),S=a.computed(()=>({center:e.round})),x=a.computed(()=>{const r=Math.max(0,Math.min(100,e.percentage));return r>0?{transition:"transform 0.6s",transform:`translateX(${r-100}%)`}:{}}),v=a.computed(()=>{if(e.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(h.value===!0){const r={onClick:E,onKeydown:_,onMousedown:I};if(n.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";r[`onTouchstart${m}`]=L}return r}return{onClick:P}}),q=a.computed(()=>({ref:u,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:d.value,...l.value,...v.value}));function E(r){if(u.value!==null){if(r!==void 0){if(r.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&u.value.contains(m)===!1&&m.contains(u.value)===!1){u.value.focus();const D=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",D,C),u.value!==null&&u.value.removeEventListener("blur",D,C)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",D,C),u.value.addEventListener("blur",D,C)}}s(r)}}function _(r){u.value!==null&&(o("keydown",r),F(r,[13,32])===!0&&T!==u.value&&(T!==null&&z(),r.defaultPrevented!==!0&&(u.value.focus(),T=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("keyup",B,!0),u.value.addEventListener("blur",B,C)),P(r)))}function L(r){u.value!==null&&(o("touchstart",r),r.defaultPrevented!==!0&&(M!==u.value&&(M!==null&&z(),M=u.value,p=r.target,p.addEventListener("touchcancel",B,C),p.addEventListener("touchend",B,C)),y=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,y=!1},200)))}function I(r){u.value!==null&&(r.qSkipRipple=y===!0,o("mousedown",r),r.defaultPrevented!==!0&&O!==u.value&&(O!==null&&z(),O=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("mouseup",B,C)))}function B(r){if(u.value!==null&&!(r!==void 0&&r.type==="blur"&&document.activeElement===u.value)){if(r!==void 0&&r.type==="keyup"){if(T===u.value&&F(r,[13,32])===!0){const m=new MouseEvent("click",r);m.qKeyEvent=!0,r.defaultPrevented===!0&&_e(m),r.cancelBubble===!0&&ue(m),u.value.dispatchEvent(m),P(r),r.qKeyEvent=!0}o("keyup",r)}z()}}function z(r){const m=b.value;r!==!0&&(M===u.value||O===u.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),M===u.value&&(p!==null&&(p.removeEventListener("touchcancel",B,C),p.removeEventListener("touchend",B,C)),M=p=null),O===u.value&&(document.removeEventListener("mouseup",B,C),O=null),T===u.value&&(document.removeEventListener("keyup",B,!0),u.value!==null&&u.value.removeEventListener("blur",B,C),T=null),u.value!==null&&u.value.classList.remove("q-btn--active")}function A(r){P(r),r.qSkipRipple=!0}return a.onBeforeUnmount(()=>{z(!0)}),Object.assign(n,{click:r=>{h.value===!0&&E(r)}}),()=>{let r=[];e.icon!==void 0&&r.push(a.h(H,{name:e.icon,left:e.stack!==!0&&k.value===!0,role:"img"})),k.value===!0&&r.push(a.h("span",{class:"block"},[e.label])),r=j(t.default,r),e.iconRight!==void 0&&e.round===!1&&r.push(a.h(H,{name:e.iconRight,right:e.stack!==!0&&k.value===!0,role:"img"}));const m=[a.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&m.push(a.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[a.h("span",{class:"q-btn__progress-indicator fit block",style:x.value})])),m.push(a.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+c.value},r)),e.loading!==null&&m.push(a.h(a.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[a.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[a.h(Ce)])]:null)),a.withDirectives(a.h(g.value,q.value,m),[[we,w.value,void 0,S.value]])}}}),We=a.defineComponent({__name:"index",props:{size:{default:R.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:ne.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},emits:["click"],setup(e){const t=e,o=a.computed(()=>["app-btn",{"app-btn_default":!t.transparent&&!t.flat,"app-btn_trans":t.transparent,"app-btn_flat":t.flat,"app-btn_rounded":t.rounded,"app-btn_sm":t.size===R.SM,"app-btn_md":t.size===R.MD,"app-btn_lg":t.size===R.LG,"app-btn_icon-left":t.iconLeft,"app-btn_icon-right":t.iconRight,"app-btn_icon-middle":t.iconMiddle},`app-btn_${t.color}`]);return(n,i)=>(a.openBlock(),a.createBlock(a.unref(He),{"no-caps":"",unelevated:"",class:a.normalizeClass(o.value),padding:a.unref(de)[n.size||a.unref(R).MD],loading:n.loading,disabled:n.disabled||void 0,to:n.to,href:n.href,target:n.target,type:n.submit?"submit":void 0,"aria-label":n.ariaLabel,onClick:i[0]||(i[0]=d=>n.$emit("click",d))},{default:a.withCtx(()=>[n.iconLeft||n.iconMiddle?(a.openBlock(),a.createElementBlock("i",{key:0,class:a.normalizeClass(["icon-kl",n.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${n.iconLeft||n.iconMiddle}`,n.transparent?`text-${n.color}`:"text-secondary"])},null,2)):a.createCommentVNode("",!0),a.renderSlot(n.$slots,"default",{},void 0,!0),n.iconRight?(a.openBlock(),a.createElementBlock("i",{key:1,class:a.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${n.iconRight}`,n.transparent?`text-${n.color}`:"text-secondary"])},null,2)):a.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disabled","to","href","target","type","aria-label"]))}}),ce=(e,t)=>{const o=e.__vccOpts||e;for(const[n,i]of t)o[n]=i;return o},Xe=ce(We,[["__scopeId","data-v-b2e64af1"]]),Ze=a.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(t,o)=>(a.openBlock(),a.createElementBlock("i",{class:a.normalizeClass(["icon-kl",`icon-kl-${t.name}`,t.color?`text-${t.color}`:""]),style:a.normalizeStyle(t.size?`font-size: ${t.size}`:void 0)},null,6))}}),Je=ce(Ze,[["__scopeId","data-v-73419357"]]),et=a.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CfKEXszI.cjs")));exports.AppButton=Xe;exports.AppButtonCopy=et;exports.COLORS=ne;exports.index=Je;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./index-DQjVfHtn.cjs");function h(o,i,t,r){return Object.defineProperty(o,i,{get:t,set:r,enumerable:!0}),o}const l=a.ref(!1);let u;function x(o,i){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(o)||/(opr)[\/]([\w.]+)/.exec(o)||/(vivaldi)[\/]([\w.]+)/.exec(o)||/(chrome|crios)[\/]([\w.]+)/.exec(o)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(firefox|fxios)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(o)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:i[0]||""}}function k(o){return/(ipad)/.exec(o)||/(ipod)/.exec(o)||/(windows phone)/.exec(o)||/(iphone)/.exec(o)||/(kindle)/.exec(o)||/(silk)/.exec(o)||/(android)/.exec(o)||/(win)/.exec(o)||/(mac)/.exec(o)||/(linux)/.exec(o)||/(cros)/.exec(o)||/(playbook)/.exec(o)||/(bb)/.exec(o)||/(blackberry)/.exec(o)||[]}const m="ontouchstart"in window||window.navigator.maxTouchPoints>0;function y(o){const i=o.toLowerCase(),t=k(i),r=x(i,t),e={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};r.browser&&(e[r.browser]=!0,e.version=r.version,e.versionNumber=parseInt(r.version,10)),r.platform&&(e[r.platform]=!0);const s=e.android||e.ios||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"];if(s===!0||i.indexOf("mobile")!==-1?e.mobile=!0:e.desktop=!0,e["windows phone"]&&(e.winphone=!0,delete e["windows phone"]),e.edga||e.edgios||e.edg?(e.edge=!0,r.browser="edge"):e.crios?(e.chrome=!0,r.browser="chrome"):e.fxios&&(e.firefox=!0,r.browser="firefox"),(e.ipod||e.ipad||e.iphone)&&(e.ios=!0),e.vivaldi&&(r.browser="vivaldi",e.vivaldi=!0),(e.chrome||e.opr||e.safari||e.vivaldi||e.mobile===!0&&e.ios!==!0&&s!==!0)&&(e.webkit=!0),e.opr&&(r.browser="opera",e.opera=!0),e.safari&&(e.blackberry||e.bb?(r.browser="blackberry",e.blackberry=!0):e.playbook?(r.browser="playbook",e.playbook=!0):e.android?(r.browser="android",e.android=!0):e.kindle?(r.browser="kindle",e.kindle=!0):e.silk&&(r.browser="silk",e.silk=!0)),e.name=r.browser,e.platform=r.platform,i.indexOf("electron")!==-1)e.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)e.bex=!0;else{if(window.Capacitor!==void 0?(e.capacitor=!0,e.nativeMobile=!0,e.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(e.cordova=!0,e.nativeMobile=!0,e.nativeMobileWrapper="cordova"),l.value===!0&&(u={is:{...e}}),m===!0&&e.mac===!0&&(e.desktop===!0&&e.safari===!0||e.nativeMobile===!0&&e.android!==!0&&e.ios!==!0&&e.ipad!==!0)){delete e.mac,delete e.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:d,[d]:!0})}e.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete e.desktop,e.mobile=!0)}return e}const b=navigator.userAgent||navigator.vendor||window.opera,g={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:b,is:y(b),has:{touch:m},within:{iframe:window.self!==window.top}},w={install(o){const{$q:i}=o;l.value===!0?(o.onSSRHydrated.push(()=>{Object.assign(i.platform,c),l.value=!1}),i.platform=a.reactive(this)):i.platform=this}};{let o;h(c.has,"webStorage",()=>{if(o!==void 0)return o;try{if(window.localStorage)return o=!0,!0}catch{}return o=!1,!1}),Object.assign(w,c),l.value===!0&&(Object.assign(w,u,g),u=null)}const n=[];function v(o){n[n.length-1](o)}function O(o){c.is.desktop===!0&&(n.push(o),n.length===1&&document.body.addEventListener("focusin",v))}function C(o){const i=n.indexOf(o);i!==-1&&(n.splice(i,1),n.length===0&&document.body.removeEventListener("focusin",v))}function P(o){const i=document.createElement("textarea");i.value=o,i.contentEditable="true",i.style.position="fixed";const t=()=>{};O(t),document.body.appendChild(i),i.focus(),i.select();const r=document.execCommand("copy");return i.remove(),C(t),r}function M(o){return navigator.clipboard!==void 0?navigator.clipboard.writeText(o):new Promise((i,t)=>{const r=P(o);r?i(!0):t(r)})}const f={COPY:"copy_o",COPIED:"copied_o"},S=a.defineComponent({__name:"index",props:{text:{},size:{},transparent:{type:Boolean,default:!0},rounded:{type:Boolean},color:{default:p.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:[Boolean,null]},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},setup(o){const i=o,t=a.ref(f.COPY),r=()=>{t.value=f.COPIED,setTimeout(()=>{t.value=f.COPY},2e3)},e=()=>{M(i.text).then(r).catch(s=>{console.log(s)})};return(s,d)=>(a.openBlock(),a.createBlock(a.unref(p.AppButton),a.mergeProps(i,{"icon-middle":t.value,onClick:a.withModifiers(e,["prevent"])}),null,16,["icon-middle"]))}});exports.default=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./index-BooubXbB.cjs");function h(o,i,t,r){return Object.defineProperty(o,i,{get:t,set:r,enumerable:!0}),o}const l=a.ref(!1);let u;function x(o,i){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(o)||/(opr)[\/]([\w.]+)/.exec(o)||/(vivaldi)[\/]([\w.]+)/.exec(o)||/(chrome|crios)[\/]([\w.]+)/.exec(o)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(o)||/(firefox|fxios)[\/]([\w.]+)/.exec(o)||/(webkit)[\/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(o)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:i[0]||""}}function k(o){return/(ipad)/.exec(o)||/(ipod)/.exec(o)||/(windows phone)/.exec(o)||/(iphone)/.exec(o)||/(kindle)/.exec(o)||/(silk)/.exec(o)||/(android)/.exec(o)||/(win)/.exec(o)||/(mac)/.exec(o)||/(linux)/.exec(o)||/(cros)/.exec(o)||/(playbook)/.exec(o)||/(bb)/.exec(o)||/(blackberry)/.exec(o)||[]}const m="ontouchstart"in window||window.navigator.maxTouchPoints>0;function y(o){const i=o.toLowerCase(),t=k(i),r=x(i,t),e={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};r.browser&&(e[r.browser]=!0,e.version=r.version,e.versionNumber=parseInt(r.version,10)),r.platform&&(e[r.platform]=!0);const s=e.android||e.ios||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"];if(s===!0||i.indexOf("mobile")!==-1?e.mobile=!0:e.desktop=!0,e["windows phone"]&&(e.winphone=!0,delete e["windows phone"]),e.edga||e.edgios||e.edg?(e.edge=!0,r.browser="edge"):e.crios?(e.chrome=!0,r.browser="chrome"):e.fxios&&(e.firefox=!0,r.browser="firefox"),(e.ipod||e.ipad||e.iphone)&&(e.ios=!0),e.vivaldi&&(r.browser="vivaldi",e.vivaldi=!0),(e.chrome||e.opr||e.safari||e.vivaldi||e.mobile===!0&&e.ios!==!0&&s!==!0)&&(e.webkit=!0),e.opr&&(r.browser="opera",e.opera=!0),e.safari&&(e.blackberry||e.bb?(r.browser="blackberry",e.blackberry=!0):e.playbook?(r.browser="playbook",e.playbook=!0):e.android?(r.browser="android",e.android=!0):e.kindle?(r.browser="kindle",e.kindle=!0):e.silk&&(r.browser="silk",e.silk=!0)),e.name=r.browser,e.platform=r.platform,i.indexOf("electron")!==-1)e.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)e.bex=!0;else{if(window.Capacitor!==void 0?(e.capacitor=!0,e.nativeMobile=!0,e.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(e.cordova=!0,e.nativeMobile=!0,e.nativeMobileWrapper="cordova"),l.value===!0&&(u={is:{...e}}),m===!0&&e.mac===!0&&(e.desktop===!0&&e.safari===!0||e.nativeMobile===!0&&e.android!==!0&&e.ios!==!0&&e.ipad!==!0)){delete e.mac,delete e.desktop;const d=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:d,[d]:!0})}e.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete e.desktop,e.mobile=!0)}return e}const b=navigator.userAgent||navigator.vendor||window.opera,g={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c={userAgent:b,is:y(b),has:{touch:m},within:{iframe:window.self!==window.top}},w={install(o){const{$q:i}=o;l.value===!0?(o.onSSRHydrated.push(()=>{Object.assign(i.platform,c),l.value=!1}),i.platform=a.reactive(this)):i.platform=this}};{let o;h(c.has,"webStorage",()=>{if(o!==void 0)return o;try{if(window.localStorage)return o=!0,!0}catch{}return o=!1,!1}),Object.assign(w,c),l.value===!0&&(Object.assign(w,u,g),u=null)}const n=[];function v(o){n[n.length-1](o)}function O(o){c.is.desktop===!0&&(n.push(o),n.length===1&&document.body.addEventListener("focusin",v))}function C(o){const i=n.indexOf(o);i!==-1&&(n.splice(i,1),n.length===0&&document.body.removeEventListener("focusin",v))}function P(o){const i=document.createElement("textarea");i.value=o,i.contentEditable="true",i.style.position="fixed";const t=()=>{};O(t),document.body.appendChild(i),i.focus(),i.select();const r=document.execCommand("copy");return i.remove(),C(t),r}function M(o){return navigator.clipboard!==void 0?navigator.clipboard.writeText(o):new Promise((i,t)=>{const r=P(o);r?i(!0):t(r)})}const f={COPY:"copy_o",COPIED:"copied_o"},S=a.defineComponent({__name:"index",props:{text:{},size:{},transparent:{type:Boolean,default:!0},flat:{type:Boolean},rounded:{type:Boolean},color:{default:p.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{}},setup(o){const i=o,t=a.ref(f.COPY),r=()=>{t.value=f.COPIED,setTimeout(()=>{t.value=f.COPY},2e3)},e=()=>{M(i.text).then(r).catch(s=>{console.log(s)})};return(s,d)=>(a.openBlock(),a.createBlock(a.unref(p.AppButton),a.mergeProps(i,{"icon-middle":t.value,onClick:a.withModifiers(e,["prevent"])}),null,16,["icon-middle"]))}});exports.default=S;