@oneb/ui-vue 0.2.4 → 0.2.7

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/README.md CHANGED
@@ -5,16 +5,13 @@
5
5
  ```vue
6
6
  <template>
7
7
  <div>
8
- <OneButton label="Primary" variant="primary"/>
9
- <OneLink to="home" label="Primary" variant="primary"/>
10
-
8
+ <OneButton label="Primary" variant="primary" />
9
+ <OneLink to="home" label="Primary" variant="primary" />
10
+
11
11
  <OneCard>
12
- <OneCardHeader title="Some title" description="Some Desc"/>
13
- <OneCardBody>
14
- Here is content of the card.
15
- </OneCardBody>
12
+ <OneCardHeader title="Some title" description="Some Desc" />
13
+ <OneCardBody> Here is content of the card. </OneCardBody>
16
14
  </OneCard>
17
-
18
15
  </div>
19
16
  </template>
20
17
 
@@ -26,6 +23,7 @@ import { OneButton, OneLink, OneCard, OneCardHeader, OneCardBody } from '@oneb/u
26
23
  ## Setup
27
24
 
28
25
  ### 1. src/assets/mains.css
26
+
29
27
  add line: `@import '@oneb/ui-vue/style.css';`
30
28
  add line: `@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');`
31
29
 
@@ -40,7 +38,7 @@ const onebui = require('onebui-vue/tailwind.config')
40
38
 
41
39
  module.exports = {
42
40
  content: [
43
- ...,
41
+ ...,
44
42
  "./node_modules/@oneb/ui-vue/dist/**/*.{vue,js,ts,jsx,tsx}"
45
43
  ],
46
44
  theme: onebui.theme,
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),_=require("./OneAvatar.vue_vue_type_script_setup_true_lang-2d9f44f1.cjs"),S=require("./XMarkIcon-f94baa4c.cjs"),P=require("./index-9f8735d9.cjs"),F=require("./_plugin-vue_export-helper-f246444f.cjs"),L={title:{type:String},stick:{type:String,default:"right"}},q={variant:{type:String,default:"primary"},label:{type:String},icon:{type:[Function,Object]}},H=["data-opened"],I={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},D=e.defineComponent({__name:"OneDropdown",props:L,emits:["open","close"],setup(d,{emit:c}){const u=e.ref(!1),i=e.ref(null),s=c,l=d,a=()=>{u.value=!u.value,u.value?s("open"):s("close")};e.provide("OneDropdown",{onToggle:a});const n=e.computed(()=>{var f;const t=(f=i.value)==null?void 0:f.getBoundingClientRect(),p=t?t.x<270:!1;return t&&t.top+270>window.innerHeight?"up"+(p?"-right":"-left"):"down"+(p?"-right":"-left")}),k=e.computed(()=>{const t=["absolute z-10 w-fit rounded-md bg-white","py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none","overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"];return n.value.startsWith("up")?t.push("bottom-1 mb-10"):n.value.startsWith("down")&&t.push("top-1 mt-10"),l.stick==="right"?t.push("right-0"):l.stick==="left"&&t.push("left-0"),t});return(t,p)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-block",ref_key:"menuRef",ref:i,"data-opened":u.value},[e.renderSlot(t.$slots,"button",e.normalizeProps(e.guardReactiveProps({onToggle:a,isExpanded:u.value}))),u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10",onClick:a})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["menu",k.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1"},[t.title?(e.openBlock(),e.createElementBlock("div",I,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"menu",e.normalizeProps(e.guardReactiveProps({onToggle:a})))],2)):e.createCommentVNode("",!0)]),_:3})],8,H))}}),B=e.defineComponent({__name:"OneDropdownItem",props:q,emits:["click"],setup(d,{emit:c}){const u=c,i=d,s=e.inject("OneDropdown"),l=()=>{s!==void 0&&s.onToggle(),u("click")},a=e.computed(()=>{const n=[];return i.variant==="secondary"?n.push("text-secondary-content hover:bg-secondary-body-hover"):i.variant==="danger"?n.push("text-danger-content hover:bg-danger-10"):i.variant==="warning"?n.push("text-warning-content hover:bg-warning-10"):i.variant==="info"?n.push("text-info-content hover:bg-info-10"):n.push("hover:bg-secondary-body-hover"),n});return(n,k)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap",a.value]),onClick:e.withModifiers(l,["prevent"])},[n.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{key:0,class:"w-4 h-4"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(n.label),1)],2))}});function T(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"})])}const R={user:{type:Object,required:!0},menu:{type:Array,default:()=>[]},iconSize:{type:String,default:"34"},app:{type:Object},accountLabel:{type:String,default:"Account"},logoutLabel:{type:String,default:"Logout"},versionLabel:{type:String,default:""},onAccount:{type:Function},onLogout:{type:Function}},M={workspace:{type:Object,required:!0},workspaces:{type:Array},apps:{type:Array,required:!0},iconSize:{type:String,default:"24"},appsTitle:{type:String,default:"Ваші додатки"},changeLabel:{type:String,default:"Керувати робочими просторами"},onChange:{type:Function},onApp:{type:Function}},W={help:{type:Object,required:!0}},U=["onClick"],X={class:"flex flex-col items-center pt-5 pb-2 h-full"},G={class:"flex flex-col px-10 py-1 mt-2 text-center"},J={class:"self-center text-base font-medium tracking-wide text-black"},K={class:"mt-1 text-xs leading-5 text-blue-500 font-light"},Q={class:"text-left w-full mt-5 px-3"},Y={class:"-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400"},Z=e.defineComponent({__name:"OneUserMenu",props:R,setup(d){const c=d,u=e.computed(()=>{var l;return(l=c.menu)==null?void 0:l.map(a=>{let n={label:a.label};a.icon!=null&&(n={...n,icon:a.icon});const k=typeof a.click=="function"?a.click:()=>{};return{key:a.label,args:n,click:k}})}),i=()=>{typeof c.onAccount=="function"&&c.onAccount()},s=()=>{typeof c.onLogout=="function"&&c.onLogout()};return(l,a)=>(e.openBlock(),e.createBlock(D,{stick:"right"},{button:e.withCtx(({onToggle:n,isExpanded:k})=>{var t,p;return[e.createElementVNode("button",{onClick:n,class:e.normalizeClass(["p-1 rounded-full hover:bg-secondary-10",[k?"bg-secondary-25":""]])},[e.createVNode(_._sfc_main,{text:((t=l.user)==null?void 0:t.name)||"",size:l.iconSize,src:(p=l.user)==null?void 0:p.photo_url,rounded:!0},null,8,["text","size","src"])],10,U)]}),menu:e.withCtx(()=>{var n,k,t,p,f;return[e.createElementVNode("div",X,[e.createVNode(_._sfc_main,{text:((n=l.user)==null?void 0:n.name)||"",size:80,src:(k=l.user)==null?void 0:k.photo_url,rounded:!0,class:"mx-auto"},null,8,["text","src"]),e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString((t=l.user)==null?void 0:t.name),1),e.createElementVNode("div",K,e.toDisplayString((p=l.user)==null?void 0:p.email),1)]),typeof c.onAccount=="function"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:i,class:"cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"},e.toDisplayString(l.accountLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,v=>(e.openBlock(),e.createBlock(B,e.mergeProps({key:v.key,ref_for:!0},v.args,{onClick:v.click}),null,16,["onClick"]))),128)),typeof l.onLogout=="function"?(e.openBlock(),e.createBlock(B,{key:0,icon:e.unref(T),label:l.logoutLabel,class:"rounded py-3",onClick:s},null,8,["icon","label"])):e.createCommentVNode("",!0)]),a[0]||(a[0]=e.createElementVNode("div",{class:"space-y-2 text-center",style:{width:"240px"}},null,-1)),e.createElementVNode("div",Y,e.toDisplayString((f=l.app)==null?void 0:f.version),1)])]}),_:1}))}});function z(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"3.9",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"10.53",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"17.16",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"10.53",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"}),e.createElementVNode("rect",{width:"2.94",height:"2.94",x:"3.9",y:"17.16",fill:"currentColor","stroke-width":"1.8",rx:"1.1"})])}function b(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function E(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"})])}function j(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}const ee=["data-opened"],te={key:1,class:"absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"},oe={class:"flex justify-between items-center pt-3 mb-3"},ne={class:"font-semibold text-xl px-3"},re={class:"grid"},le={class:"rounded-lg m-3 border"},se={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},ce={class:"flex justify-between relative"},ae={class:"flex items-center justify-between w-full text-left text-sm font-semibold"},ie={key:0},de={class:"text-xs font-semibold"},ue={class:"px-3 py-2"},pe={class:"text-secondary-content text-left pb-1 text-xs uppercase"},me={class:"overflow-auto max-h-full"},he={key:0,class:"space-y-2"},ke=["onClick"],fe={class:"flex"},ge={class:"border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center"},ve={class:"pl-2"},xe={class:"text-sm mt-1 font-semibold"},_e={class:"text9 mt-1"},ye={key:1,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"},we=e.defineComponent({__name:"OneBrowserMenu",props:M,emits:["open","close"],setup(d,{emit:c}){const u=c,i=d,s=e.ref(!1),l=()=>{s.value=!s.value,s.value?u("open"):u("close")},a=e.ref(!1);e.computed(()=>a.value?E:b);const n=()=>{typeof i.onChange=="function"&&i.onChange()},k=t=>{typeof i.onApp=="function"&&i.onApp(t)};return(t,p)=>{var f,v,r,m,g,x;return e.openBlock(),e.createElementBlock("div",{"data-opened":s.value},[e.createElementVNode("button",{onClick:l,class:e.normalizeClass(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10",{"bg-secondary-10":s.value}])},[e.createVNode(e.unref(z),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",onClick:l})):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",oe,[e.createElementVNode("div",ne,e.toDisplayString((f=t.workspace)==null?void 0:f.title),1),e.createVNode(e.unref(S.render),{class:"w-6 cursor-pointer",onClick:l})]),e.createElementVNode("div",re,[e.createElementVNode("div",le,[e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createVNode(_._sfc_main,{text:((v=t.workspace)==null?void 0:v.name)||"",src:(r=t.workspace)==null?void 0:r.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),e.createElementVNode("div",ae,e.toDisplayString((m=t.workspace)==null?void 0:m.name),1)]),a.value?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.workspaces,h=>(e.openBlock(),e.createElementBlock("div",{key:h.name,class:"flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"},[e.createVNode(_._sfc_main,{text:h.name,src:h.photo_url,size:30,rounded:!1},null,8,["text","src"]),e.createElementVNode("span",de,e.toDisplayString(h.name),1)]))),128))])):e.createCommentVNode("",!0),p[0]||(p[0]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",{onClick:n,class:"text-center py-2 cursor-pointer",style:{"font-size":"10px"}},e.toDisplayString((g=t.workspace)==null?void 0:g.changeLabel),1)])]),e.createElementVNode("div",ue,[e.createElementVNode("div",pe,e.toDisplayString((x=t.workspace)==null?void 0:x.appsLabel),1),e.createElementVNode("div",me,[t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("div",he,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.apps,h=>(e.openBlock(),e.createElementBlock("div",{key:h.id,onClick:y=>k(h),class:"flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"},[e.createElementVNode("div",fe,[e.createElementVNode("div",ge,[e.createVNode(_._sfc_main,{text:h.name,src:h.photo_url,size:44,rounded:!1},null,8,["text","src"])]),e.createElementVNode("div",ve,[e.createElementVNode("p",xe,e.toDisplayString(h.name),1),e.createElementVNode("p",_e,e.toDisplayString(h==null?void 0:h.short),1)])]),e.createElementVNode("div",null,[e.createVNode(P._sfc_main,{variant:"touch",icon:e.unref(j),onClick:y=>k(h)},null,8,["icon","onClick"])])],8,ke))),128))])):e.createCommentVNode("",!0),t.apps&&t.apps.length?(e.openBlock(),e.createElementBlock("button",ye,e.toDisplayString("Дивитися всі"))):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],8,ee)}}});const Be=F._export_sfc(we,[["__scopeId","data-v-2628df74"]]);function be(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}function Ee(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 010 .656l-5.603 3.113a.375.375 0 01-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112z"})])}function O(d,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"})])}const Ve=["data-opened"],Ne={key:1,class:"absolute top-0 right-0 h-screen max-w-96 bg-white px-3 z-10 flex flex-col"},Ce={class:"flex justify-between items-center pt-3 mb-3"},$e={class:"font-semibold text-xl px-3"},Ae={key:0,class:"grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"},Se=["onClick"],Fe={class:"uppercase text-[8px]"},Le={class:"overflow-y-auto grid rounded-xl"},De={class:"max-h-full bg-[#FAFAFA]"},Me={key:0,class:"space-y-2"},ze=["onClick"],je={class:"flex"},Oe={class:"pl-2"},Pe={class:"text-sm mt-1 font-semibold"},qe={class:"text-[10px] mt-1 text-[#979CA9]"},He={class:"mt-auto"},Ie={key:0},Te=["onClick"],Re={class:"flex items-center space-x-3"},We={class:"h-16"},Ue={key:0,class:"bg-[#FAFAFA] rounded-lg p-3"},Xe={class:"flex justify-between"},Ge=["onClick"],Je={key:0,class:"tooltip-text min-w-[70px]"},Ke={class:"flex justify-between mb-4"},Qe=["href"],Ye={class:"flex flex-nowrap items-center w-max h-[24px]"},Ze={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},et={class:"py-[8px] pl-0 pr-[8px]"},tt=e.defineComponent({__name:"OneHelpMenu",props:W,emits:["open","close"],setup(d,{emit:c}){const u=c,i=d,s=e.ref(!1),l=()=>{s.value=!s.value,s.value?u("open"):u("close")},a=e.computed(()=>f.value?E:b),n=e.ref(3),k=e.computed(()=>{var m,g;const r=((g=(m=i.help)==null?void 0:m.helpList)==null?void 0:g.length)||0;return n.value===r});e.computed(()=>{var m;return(((m=i.help)==null?void 0:m.helpList)||[]).slice(0,n.value)});const t=()=>{var m,g;const r=((g=(m=i.help)==null?void 0:m.helpList)==null?void 0:g.length)||0;n.value=k.value?3:r},p=(r,m)=>{r&&m&&typeof m.openLink=="function"?m.openLink(m):r&&window.open(r,"_blank")},f=e.ref(!1),v=()=>{f.value=!f.value};return(r,m)=>{var g,x,h,y,V,N,C,$,A;return e.openBlock(),e.createElementBlock("div",{"data-opened":s.value},[e.createElementVNode("button",{onClick:l,class:e.normalizeClass(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10",{"bg-secondary-10":s.value}])},[e.createVNode(e.unref(be),{class:"text-secondary-base w-full p-1 hover:text-blue-600 m-auto"})],2),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",onClick:l})):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",Ne,[e.createElementVNode("div",Ce,[e.createElementVNode("div",$e,e.toDisplayString((g=r.help)==null?void 0:g.label),1),e.createVNode(e.unref(S.render),{class:"w-6 cursor-pointer",onClick:l})]),(x=r.help)!=null&&x.helpButton?(e.openBlock(),e.createElementBlock("div",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((h=r.help)==null?void 0:h.helpButton,o=>(e.openBlock(),e.createElementBlock("button",{key:o.name,onClick:w=>p(o.link,o),class:"grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"},[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o==null?void 0:o.icon),{class:"w-[16px] h-[16px] mx-auto"}))]),e.createElementVNode("span",Fe,e.toDisplayString(o.name),1)],8,Se))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Le,[e.createElementVNode("div",De,[(y=r.help)!=null&&y.helpList&&r.help.helpList.length?(e.openBlock(),e.createElementBlock("div",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.help.helpList,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,onClick:w=>p(o.link,o),class:"flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"},[e.createElementVNode("div",je,[e.createElementVNode("div",Oe,[e.createElementVNode("p",Pe,e.toDisplayString(o.name),1),e.createElementVNode("p",qe,e.toDisplayString(o.category),1)])])],8,ze))),128))])):e.createCommentVNode("",!0)])]),(V=r.help)!=null&&V.helpList&&r.help.helpList.length<0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:t,class:"h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"},e.toDisplayString(k.value?r.help.buttNoMore:r.help.buttMore),1)):e.createCommentVNode("",!0),e.createElementVNode("div",He,[(N=r.help)!=null&&N.video?(e.openBlock(),e.createElementBlock("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.help.video,o=>(e.openBlock(),e.createElementBlock("button",{key:o.id,onClick:w=>p(o.link,o),class:"flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createVNode(e.unref(Ee),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(o.name),1)],8,Te))),128))])):e.createCommentVNode("",!0),(C=r.help)!=null&&C.socialList?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"flex items-center justify-between mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"},[e.createElementVNode("div",Re,[e.createVNode(e.unref(O),{class:"w-6 h-6"}),e.createElementVNode("span",null,e.toDisplayString(r.help.socialButt),1)]),e.createVNode(e.unref(a),{class:"w-4 h-4"})])):e.createCommentVNode("",!0),e.createElementVNode("div",We,[f.value?(e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(($=r.help)==null?void 0:$.socialList,o=>(e.openBlock(),e.createElementBlock("button",{key:o.id,onClick:w=>p(o.link,o),class:"flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"},[e.createElementVNode("div",null,[o.name?(e.openBlock(),e.createElementBlock("div",Je,e.toDisplayString(o.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o==null?void 0:o.icon),{class:"w-[24px] h-[24px] mx-auto"}))])],8,Ge))),128))])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((A=r.help)==null?void 0:A.termsOffer,o=>(e.openBlock(),e.createElementBlock("a",{key:o.name,target:"_blank",href:o.link,class:"ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"},[e.createElementVNode("div",Ye,[e.createElementVNode("div",Ze,[e.createElementVNode("span",et,e.toDisplayString(o.name),1)])])],8,Qe))),128))])])])):e.createCommentVNode("",!0)],8,Ve)}}});const ot=F._export_sfc(tt,[["__scopeId","data-v-071eaf70"]]);exports.OneBrowserMenu=Be;exports.OneHelpMenu=ot;exports._sfc_main=Z;exports._sfc_main$1=D;exports._sfc_main$2=B;exports.browserMenuProps=M;exports.dropdownProps=L;exports.render=E;exports.render$1=b;exports.render$2=j;exports.render$3=O;exports.render$4=z;
@@ -1,7 +1,7 @@
1
- import { defineComponent as z, ref as L, provide as X, computed as F, openBlock as t, createElementBlock as o, renderSlot as q, normalizeProps as N, guardReactiveProps as W, createCommentVNode as h, createVNode as w, Transition as Y, withCtx as I, normalizeClass as S, toDisplayString as a, inject as Z, withModifiers as ee, createBlock as j, resolveDynamicComponent as P, createElementVNode as e, Fragment as $, renderList as A, mergeProps as te, unref as b } from "vue";
1
+ import { defineComponent as z, ref as L, provide as X, computed as F, openBlock as t, createElementBlock as o, renderSlot as N, normalizeProps as R, guardReactiveProps as W, createCommentVNode as p, createVNode as w, Transition as Y, withCtx as I, normalizeClass as S, toDisplayString as a, inject as Z, withModifiers as ee, createBlock as j, resolveDynamicComponent as P, createElementVNode as e, Fragment as $, renderList as A, mergeProps as te, unref as b } from "vue";
2
2
  import { _ as B } from "./OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
3
3
  import { r as G } from "./XMarkIcon-51ef0691.js";
4
- import { _ as oe } from "./index-f8afb6b6.js";
4
+ import { _ as oe } from "./index-6181061b.js";
5
5
  import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
6
6
  const ne = {
7
7
  title: {
@@ -30,16 +30,17 @@ const ne = {
30
30
  props: ne,
31
31
  emits: ["open", "close"],
32
32
  setup(f, { emit: u }) {
33
- const v = L(!1), d = L(null), c = u, i = f, p = () => {
33
+ const v = L(!1), h = L(null), c = u, i = f, d = () => {
34
34
  v.value = !v.value, v.value ? c("open") : c("close");
35
35
  };
36
36
  X("OneDropdown", {
37
- onToggle: p
37
+ onToggle: d
38
38
  });
39
39
  const r = F(() => {
40
- const n = d.value != null && d.value.getBoundingClientRect.x < 270;
41
- return d.value != null && d.value.getBoundingClientRect().top + 270 > window.innerHeight ? "up" + (n ? "-right" : "-left") : "down" + (n ? "-right" : "-left");
42
- }), g = F(() => {
40
+ var k;
41
+ const n = (k = h.value) == null ? void 0 : k.getBoundingClientRect(), x = n ? n.x < 270 : !1;
42
+ return n && n.top + 270 > window.innerHeight ? "up" + (x ? "-right" : "-left") : "down" + (x ? "-right" : "-left");
43
+ }), _ = F(() => {
43
44
  const n = [
44
45
  "absolute z-10 w-fit rounded-md bg-white",
45
46
  "py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
@@ -47,18 +48,18 @@ const ne = {
47
48
  ];
48
49
  return r.value.startsWith("up") ? n.push("bottom-1 mb-10") : r.value.startsWith("down") && n.push("top-1 mt-10"), i.stick === "right" ? n.push("right-0") : i.stick === "left" && n.push("left-0"), n;
49
50
  });
50
- return (n, _) => (t(), o("div", {
51
+ return (n, x) => (t(), o("div", {
51
52
  class: "relative inline-block",
52
53
  ref_key: "menuRef",
53
- ref: d,
54
+ ref: h,
54
55
  "data-opened": v.value
55
56
  }, [
56
- q(n.$slots, "button", N(W({ onToggle: p, isExpanded: v.value }))),
57
+ N(n.$slots, "button", R(W({ onToggle: d, isExpanded: v.value }))),
57
58
  v.value ? (t(), o("div", {
58
59
  key: 0,
59
60
  class: "fixed top-0 left-0 w-screen h-screen z-10",
60
- onClick: p
61
- })) : h("", !0),
61
+ onClick: d
62
+ })) : p("", !0),
62
63
  w(Y, {
63
64
  "enter-active-class": "transition ease-out duration-100",
64
65
  "enter-from-class": "transform opacity-0 scale-95",
@@ -70,14 +71,14 @@ const ne = {
70
71
  default: I(() => [
71
72
  v.value ? (t(), o("div", {
72
73
  key: 0,
73
- class: S(["menu", g.value]),
74
+ class: S(["menu", _.value]),
74
75
  role: "menu",
75
76
  "aria-orientation": "vertical",
76
77
  tabindex: "-1"
77
78
  }, [
78
- n.title ? (t(), o("div", le, a(n.title), 1)) : h("", !0),
79
- q(n.$slots, "menu", N(W({ onToggle: p })))
80
- ], 2)) : h("", !0)
79
+ n.title ? (t(), o("div", le, a(n.title), 1)) : p("", !0),
80
+ N(n.$slots, "menu", R(W({ onToggle: d })))
81
+ ], 2)) : p("", !0)
81
82
  ]),
82
83
  _: 3
83
84
  })
@@ -88,20 +89,20 @@ const ne = {
88
89
  props: se,
89
90
  emits: ["click"],
90
91
  setup(f, { emit: u }) {
91
- const v = u, d = f, c = Z("OneDropdown"), i = () => {
92
+ const v = u, h = f, c = Z("OneDropdown"), i = () => {
92
93
  c !== void 0 && c.onToggle(), v("click");
93
- }, p = F(() => {
94
+ }, d = F(() => {
94
95
  const r = [];
95
- return d.variant === "secondary" ? r.push("text-secondary-content hover:bg-secondary-body-hover") : d.variant === "danger" ? r.push("text-danger-content hover:bg-danger-10") : d.variant === "warning" ? r.push("text-warning-content hover:bg-warning-10") : d.variant === "info" ? r.push("text-info-content hover:bg-info-10") : r.push("hover:bg-secondary-body-hover"), r;
96
+ return h.variant === "secondary" ? r.push("text-secondary-content hover:bg-secondary-body-hover") : h.variant === "danger" ? r.push("text-danger-content hover:bg-danger-10") : h.variant === "warning" ? r.push("text-warning-content hover:bg-warning-10") : h.variant === "info" ? r.push("text-info-content hover:bg-info-10") : r.push("hover:bg-secondary-body-hover"), r;
96
97
  });
97
- return (r, g) => (t(), o("button", {
98
- class: S(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", p.value]),
98
+ return (r, _) => (t(), o("button", {
99
+ class: S(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", d.value]),
99
100
  onClick: ee(i, ["prevent"])
100
101
  }, [
101
102
  r.icon ? (t(), j(P(r.icon), {
102
103
  key: 0,
103
104
  class: "w-4 h-4"
104
- })) : h("", !0),
105
+ })) : p("", !0),
105
106
  e("span", null, a(r.label), 1)
106
107
  ], 2));
107
108
  }
@@ -197,59 +198,59 @@ const ae = {
197
198
  setup(f) {
198
199
  const u = f, v = F(() => {
199
200
  var i;
200
- return (i = u.menu) == null ? void 0 : i.map((p) => {
201
- let r = { label: p.label };
202
- p.icon != null && (r = { ...r, icon: p.icon });
203
- const g = typeof p.click == "function" ? p.click : () => {
201
+ return (i = u.menu) == null ? void 0 : i.map((d) => {
202
+ let r = { label: d.label };
203
+ d.icon != null && (r = { ...r, icon: d.icon });
204
+ const _ = typeof d.click == "function" ? d.click : () => {
204
205
  };
205
206
  return {
206
- key: p.label,
207
+ key: d.label,
207
208
  args: r,
208
- click: g
209
+ click: _
209
210
  };
210
211
  });
211
- }), d = () => {
212
+ }), h = () => {
212
213
  typeof u.onAccount == "function" && u.onAccount();
213
214
  }, c = () => {
214
215
  typeof u.onLogout == "function" && u.onLogout();
215
216
  };
216
- return (i, p) => (t(), j(ie, { stick: "right" }, {
217
- button: I(({ onToggle: r, isExpanded: g }) => {
218
- var n, _;
217
+ return (i, d) => (t(), j(ie, { stick: "right" }, {
218
+ button: I(({ onToggle: r, isExpanded: _ }) => {
219
+ var n, x;
219
220
  return [
220
221
  e("button", {
221
222
  onClick: r,
222
- class: S(["p-1 rounded-full hover:bg-secondary-10", [g ? "bg-secondary-25" : ""]])
223
+ class: S(["p-1 rounded-full hover:bg-secondary-10", [_ ? "bg-secondary-25" : ""]])
223
224
  }, [
224
225
  w(B, {
225
226
  text: ((n = i.user) == null ? void 0 : n.name) || "",
226
227
  size: i.iconSize,
227
- src: (_ = i.user) == null ? void 0 : _.photo_url,
228
+ src: (x = i.user) == null ? void 0 : x.photo_url,
228
229
  rounded: !0
229
230
  }, null, 8, ["text", "size", "src"])
230
231
  ], 10, pe)
231
232
  ];
232
233
  }),
233
234
  menu: I(() => {
234
- var r, g, n, _, y;
235
+ var r, _, n, x, k;
235
236
  return [
236
237
  e("div", he, [
237
238
  w(B, {
238
239
  text: ((r = i.user) == null ? void 0 : r.name) || "",
239
240
  size: 80,
240
- src: (g = i.user) == null ? void 0 : g.photo_url,
241
+ src: (_ = i.user) == null ? void 0 : _.photo_url,
241
242
  rounded: !0,
242
243
  class: "mx-auto"
243
244
  }, null, 8, ["text", "src"]),
244
245
  e("div", fe, [
245
246
  e("div", ve, a((n = i.user) == null ? void 0 : n.name), 1),
246
- e("div", xe, a((_ = i.user) == null ? void 0 : _.email), 1)
247
+ e("div", xe, a((x = i.user) == null ? void 0 : x.email), 1)
247
248
  ]),
248
249
  typeof u.onAccount == "function" ? (t(), o("a", {
249
250
  key: 0,
250
- onClick: d,
251
+ onClick: h,
251
252
  class: "cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"
252
- }, a(i.accountLabel), 1)) : h("", !0),
253
+ }, a(i.accountLabel), 1)) : p("", !0),
253
254
  e("div", me, [
254
255
  (t(!0), o($, null, A(v.value, (C) => (t(), j(U, te({
255
256
  key: C.key,
@@ -263,13 +264,13 @@ const ae = {
263
264
  label: i.logoutLabel,
264
265
  class: "rounded py-3",
265
266
  onClick: c
266
- }, null, 8, ["icon", "label"])) : h("", !0)
267
+ }, null, 8, ["icon", "label"])) : p("", !0)
267
268
  ]),
268
- p[0] || (p[0] = e("div", {
269
+ d[0] || (d[0] = e("div", {
269
270
  class: "space-y-2 text-center",
270
271
  style: { width: "240px" }
271
272
  }, null, -1)),
272
- e("div", ge, a((y = i.app) == null ? void 0 : y.version), 1)
273
+ e("div", ge, a((k = i.app) == null ? void 0 : k.version), 1)
273
274
  ])
274
275
  ];
275
276
  }),
@@ -426,25 +427,25 @@ const ke = ["data-opened"], ye = {
426
427
  }, Le = { class: "flex justify-between relative" }, je = { class: "flex items-center justify-between w-full text-left text-sm font-semibold" }, Me = { key: 0 }, Be = { class: "text-xs font-semibold" }, ze = { class: "px-3 py-2" }, Se = { class: "text-secondary-content text-left pb-1 text-xs uppercase" }, Oe = { class: "overflow-auto max-h-full" }, Ee = {
427
428
  key: 0,
428
429
  class: "space-y-2"
429
- }, Ie = ["onClick"], Pe = { class: "flex" }, He = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Te = { class: "pl-2" }, Ve = { class: "text-sm mt-1 font-semibold" }, De = { class: "text9 mt-1" }, Re = {
430
+ }, Ie = ["onClick"], Pe = { class: "flex" }, He = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Te = { class: "pl-2" }, Ve = { class: "text-sm mt-1 font-semibold" }, De = { class: "text9 mt-1" }, qe = {
430
431
  key: 1,
431
432
  class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"
432
- }, qe = /* @__PURE__ */ z({
433
+ }, Ne = /* @__PURE__ */ z({
433
434
  __name: "OneBrowserMenu",
434
435
  props: ue,
435
436
  emits: ["open", "close"],
436
437
  setup(f, { emit: u }) {
437
- const v = u, d = f, c = L(!1), i = () => {
438
+ const v = u, h = f, c = L(!1), i = () => {
438
439
  c.value = !c.value, c.value ? v("open") : v("close");
439
- }, p = L(!1);
440
- F(() => p.value ? Q : K);
440
+ }, d = L(!1);
441
+ F(() => d.value ? Q : K);
441
442
  const r = () => {
442
- typeof d.onChange == "function" && d.onChange();
443
- }, g = (n) => {
444
- typeof d.onApp == "function" && d.onApp(n);
443
+ typeof h.onChange == "function" && h.onChange();
444
+ }, _ = (n) => {
445
+ typeof h.onApp == "function" && h.onApp(n);
445
446
  };
446
- return (n, _) => {
447
- var y, C, l, x, k, M;
447
+ return (n, x) => {
448
+ var k, C, l, m, y, M;
448
449
  return t(), o("div", { "data-opened": c.value }, [
449
450
  e("button", {
450
451
  onClick: i,
@@ -456,10 +457,10 @@ const ke = ["data-opened"], ye = {
456
457
  key: 0,
457
458
  class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
458
459
  onClick: i
459
- })) : h("", !0),
460
+ })) : p("", !0),
460
461
  c.value ? (t(), o("div", ye, [
461
462
  e("div", be, [
462
- e("div", Ce, a((y = n.workspace) == null ? void 0 : y.title), 1),
463
+ e("div", Ce, a((k = n.workspace) == null ? void 0 : k.title), 1),
463
464
  w(b(G), {
464
465
  class: "w-6 cursor-pointer",
465
466
  onClick: i
@@ -477,72 +478,72 @@ const ke = ["data-opened"], ye = {
477
478
  class: "mx-auto"
478
479
  }, null, 8, ["text", "src"])
479
480
  ]),
480
- e("div", je, a((x = n.workspace) == null ? void 0 : x.name), 1)
481
+ e("div", je, a((m = n.workspace) == null ? void 0 : m.name), 1)
481
482
  ]),
482
- p.value ? (t(), o("div", Me, [
483
- (t(!0), o($, null, A(n.workspaces, (m) => (t(), o("div", {
484
- key: m.name,
483
+ d.value ? (t(), o("div", Me, [
484
+ (t(!0), o($, null, A(n.workspaces, (g) => (t(), o("div", {
485
+ key: g.name,
485
486
  class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
486
487
  }, [
487
488
  w(B, {
488
- text: m.name,
489
- src: m.photo_url,
489
+ text: g.name,
490
+ src: g.photo_url,
490
491
  size: 30,
491
492
  rounded: !1
492
493
  }, null, 8, ["text", "src"]),
493
- e("span", Be, a(m.name), 1)
494
+ e("span", Be, a(g.name), 1)
494
495
  ]))), 128))
495
- ])) : h("", !0),
496
- _[0] || (_[0] = e("hr", null, null, -1)),
496
+ ])) : p("", !0),
497
+ x[0] || (x[0] = e("hr", null, null, -1)),
497
498
  e("div", {
498
499
  onClick: r,
499
500
  class: "text-center py-2 cursor-pointer",
500
501
  style: { "font-size": "10px" }
501
- }, a((k = n.workspace) == null ? void 0 : k.changeLabel), 1)
502
+ }, a((y = n.workspace) == null ? void 0 : y.changeLabel), 1)
502
503
  ])
503
504
  ]),
504
505
  e("div", ze, [
505
506
  e("div", Se, a((M = n.workspace) == null ? void 0 : M.appsLabel), 1),
506
507
  e("div", Oe, [
507
508
  n.apps && n.apps.length ? (t(), o("div", Ee, [
508
- (t(!0), o($, null, A(n.apps, (m) => (t(), o("div", {
509
- key: m.id,
510
- onClick: (O) => g(m),
509
+ (t(!0), o($, null, A(n.apps, (g) => (t(), o("div", {
510
+ key: g.id,
511
+ onClick: (O) => _(g),
511
512
  class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
512
513
  }, [
513
514
  e("div", Pe, [
514
515
  e("div", He, [
515
516
  w(B, {
516
- text: m.name,
517
- src: m.photo_url,
517
+ text: g.name,
518
+ src: g.photo_url,
518
519
  size: 44,
519
520
  rounded: !1
520
521
  }, null, 8, ["text", "src"])
521
522
  ]),
522
523
  e("div", Te, [
523
- e("p", Ve, a(m.name), 1),
524
- e("p", De, a(m == null ? void 0 : m.short), 1)
524
+ e("p", Ve, a(g.name), 1),
525
+ e("p", De, a(g == null ? void 0 : g.short), 1)
525
526
  ])
526
527
  ]),
527
528
  e("div", null, [
528
529
  w(oe, {
529
530
  variant: "touch",
530
531
  icon: b(we),
531
- onClick: (O) => g(m)
532
+ onClick: (O) => _(g)
532
533
  }, null, 8, ["icon", "onClick"])
533
534
  ])
534
535
  ], 8, Ie))), 128))
535
- ])) : h("", !0),
536
- n.apps && n.apps.length ? (t(), o("button", Re, a("Дивитися всі"))) : h("", !0)
536
+ ])) : p("", !0),
537
+ n.apps && n.apps.length ? (t(), o("button", qe, a("Дивитися всі"))) : p("", !0)
537
538
  ])
538
539
  ])
539
- ])) : h("", !0)
540
+ ])) : p("", !0)
540
541
  ], 8, ke);
541
542
  };
542
543
  }
543
544
  });
544
- const jt = /* @__PURE__ */ J(qe, [["__scopeId", "data-v-4936d4e4"]]);
545
- function Ne(f, u) {
545
+ const jt = /* @__PURE__ */ J(Ne, [["__scopeId", "data-v-2628df74"]]);
546
+ function Re(f, u) {
546
547
  return t(), o("svg", {
547
548
  xmlns: "http://www.w3.org/2000/svg",
548
549
  fill: "none",
@@ -615,52 +616,52 @@ const Ge = ["data-opened"], Je = {
615
616
  props: de,
616
617
  emits: ["open", "close"],
617
618
  setup(f, { emit: u }) {
618
- const v = u, d = f, c = L(!1), i = () => {
619
+ const v = u, h = f, c = L(!1), i = () => {
619
620
  c.value = !c.value, c.value ? v("open") : v("close");
620
- }, p = F(() => y.value ? Q : K), r = L(3), g = F(() => {
621
- var x, k;
622
- const l = ((k = (x = d.help) == null ? void 0 : x.helpList) == null ? void 0 : k.length) || 0;
621
+ }, d = F(() => k.value ? Q : K), r = L(3), _ = F(() => {
622
+ var m, y;
623
+ const l = ((y = (m = h.help) == null ? void 0 : m.helpList) == null ? void 0 : y.length) || 0;
623
624
  return r.value === l;
624
625
  });
625
626
  F(() => {
626
- var x;
627
- return (((x = d.help) == null ? void 0 : x.helpList) || []).slice(0, r.value);
627
+ var m;
628
+ return (((m = h.help) == null ? void 0 : m.helpList) || []).slice(0, r.value);
628
629
  });
629
630
  const n = () => {
630
- var x, k;
631
- const l = ((k = (x = d.help) == null ? void 0 : x.helpList) == null ? void 0 : k.length) || 0;
632
- r.value = g.value ? 3 : l;
633
- }, _ = (l, x) => {
634
- l && x && typeof x.openLink == "function" ? x.openLink(x) : l && window.open(l, "_blank");
635
- }, y = L(!1), C = () => {
636
- y.value = !y.value;
631
+ var m, y;
632
+ const l = ((y = (m = h.help) == null ? void 0 : m.helpList) == null ? void 0 : y.length) || 0;
633
+ r.value = _.value ? 3 : l;
634
+ }, x = (l, m) => {
635
+ l && m && typeof m.openLink == "function" ? m.openLink(m) : l && window.open(l, "_blank");
636
+ }, k = L(!1), C = () => {
637
+ k.value = !k.value;
637
638
  };
638
- return (l, x) => {
639
- var k, M, m, O, H, T, V, D, R;
639
+ return (l, m) => {
640
+ var y, M, g, O, H, T, V, D, q;
640
641
  return t(), o("div", { "data-opened": c.value }, [
641
642
  e("button", {
642
643
  onClick: i,
643
644
  class: S(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
644
645
  }, [
645
- w(b(Ne), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
646
+ w(b(Re), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
646
647
  ], 2),
647
648
  c.value ? (t(), o("div", {
648
649
  key: 0,
649
650
  class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",
650
651
  onClick: i
651
- })) : h("", !0),
652
+ })) : p("", !0),
652
653
  c.value ? (t(), o("div", Je, [
653
654
  e("div", Ke, [
654
- e("div", Qe, a((k = l.help) == null ? void 0 : k.label), 1),
655
+ e("div", Qe, a((y = l.help) == null ? void 0 : y.label), 1),
655
656
  w(b(G), {
656
657
  class: "w-6 cursor-pointer",
657
658
  onClick: i
658
659
  })
659
660
  ]),
660
661
  (M = l.help) != null && M.helpButton ? (t(), o("div", Xe, [
661
- (t(!0), o($, null, A((m = l.help) == null ? void 0 : m.helpButton, (s) => (t(), o("button", {
662
+ (t(!0), o($, null, A((g = l.help) == null ? void 0 : g.helpButton, (s) => (t(), o("button", {
662
663
  key: s.name,
663
- onClick: (E) => _(s.link, s),
664
+ onClick: (E) => x(s.link, s),
664
665
  class: "grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"
665
666
  }, [
666
667
  e("div", null, [
@@ -668,13 +669,13 @@ const Ge = ["data-opened"], Je = {
668
669
  ]),
669
670
  e("span", Ze, a(s.name), 1)
670
671
  ], 8, Ye))), 128))
671
- ])) : h("", !0),
672
+ ])) : p("", !0),
672
673
  e("div", et, [
673
674
  e("div", tt, [
674
675
  (O = l.help) != null && O.helpList && l.help.helpList.length ? (t(), o("div", ot, [
675
676
  (t(!0), o($, null, A(l.help.helpList, (s) => (t(), o("div", {
676
677
  key: s.id,
677
- onClick: (E) => _(s.link, s),
678
+ onClick: (E) => x(s.link, s),
678
679
  class: "flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"
679
680
  }, [
680
681
  e("div", st, [
@@ -684,25 +685,25 @@ const Ge = ["data-opened"], Je = {
684
685
  ])
685
686
  ])
686
687
  ], 8, nt))), 128))
687
- ])) : h("", !0)
688
+ ])) : p("", !0)
688
689
  ])
689
690
  ]),
690
691
  (H = l.help) != null && H.helpList && l.help.helpList.length < 0 ? (t(), o("button", {
691
692
  key: 1,
692
693
  onClick: n,
693
694
  class: "h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"
694
- }, a(g.value ? l.help.buttNoMore : l.help.buttMore), 1)) : h("", !0),
695
+ }, a(_.value ? l.help.buttNoMore : l.help.buttMore), 1)) : p("", !0),
695
696
  e("div", ct, [
696
697
  (T = l.help) != null && T.video ? (t(), o("div", at, [
697
698
  (t(!0), o($, null, A(l.help.video, (s) => (t(), o("button", {
698
699
  key: s.id,
699
- onClick: (E) => _(s.link, s),
700
+ onClick: (E) => x(s.link, s),
700
701
  class: "flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"
701
702
  }, [
702
703
  w(b(We), { class: "w-6 h-6" }),
703
704
  e("span", null, a(s.name), 1)
704
705
  ], 8, ut))), 128))
705
- ])) : h("", !0),
706
+ ])) : p("", !0),
706
707
  (V = l.help) != null && V.socialList ? (t(), o("button", {
707
708
  key: 1,
708
709
  onClick: C,
@@ -712,26 +713,26 @@ const Ge = ["data-opened"], Je = {
712
713
  w(b(Ue), { class: "w-6 h-6" }),
713
714
  e("span", null, a(l.help.socialButt), 1)
714
715
  ]),
715
- w(b(p), { class: "w-4 h-4" })
716
- ])) : h("", !0),
716
+ w(b(d), { class: "w-4 h-4" })
717
+ ])) : p("", !0),
717
718
  e("div", pt, [
718
- y.value ? (t(), o("div", ht, [
719
+ k.value ? (t(), o("div", ht, [
719
720
  e("div", ft, [
720
721
  (t(!0), o($, null, A((D = l.help) == null ? void 0 : D.socialList, (s) => (t(), o("button", {
721
722
  key: s.id,
722
- onClick: (E) => _(s.link, s),
723
+ onClick: (E) => x(s.link, s),
723
724
  class: "flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"
724
725
  }, [
725
726
  e("div", null, [
726
- s.name ? (t(), o("div", xt, a(s.name), 1)) : h("", !0),
727
+ s.name ? (t(), o("div", xt, a(s.name), 1)) : p("", !0),
727
728
  (t(), j(P(s == null ? void 0 : s.icon), { class: "w-[24px] h-[24px] mx-auto" }))
728
729
  ])
729
730
  ], 8, vt))), 128))
730
731
  ])
731
- ])) : h("", !0)
732
+ ])) : p("", !0)
732
733
  ]),
733
734
  e("div", mt, [
734
- (t(!0), o($, null, A((R = l.help) == null ? void 0 : R.termsOffer, (s) => (t(), o("a", {
735
+ (t(!0), o($, null, A((q = l.help) == null ? void 0 : q.termsOffer, (s) => (t(), o("a", {
735
736
  key: s.name,
736
737
  target: "_blank",
737
738
  href: s.link,
@@ -745,12 +746,12 @@ const Ge = ["data-opened"], Je = {
745
746
  ], 8, gt))), 128))
746
747
  ])
747
748
  ])
748
- ])) : h("", !0)
749
+ ])) : p("", !0)
749
750
  ], 8, Ge);
750
751
  };
751
752
  }
752
753
  });
753
- const Mt = /* @__PURE__ */ J(yt, [["__scopeId", "data-v-4f47b75d"]]);
754
+ const Mt = /* @__PURE__ */ J(yt, [["__scopeId", "data-v-071eaf70"]]);
754
755
  export {
755
756
  Mt as O,
756
757
  Lt as _,
@@ -1,4 +1,4 @@
1
- import type { ExtractPropTypes, FunctionalComponent, Component } from "vue";
1
+ import type { ExtractPropTypes, FunctionalComponent, Component } from 'vue';
2
2
  export type ButtonVariantType = 'primary' | 'secondary' | 'warning' | 'danger' | 'info' | 'touch' | 'link' | 'none' | 'mini';
3
3
  export type ButtonSizeType = 'sm' | 'md' | 'lg';
4
4
  export type ButtonIconType = FunctionalComponent | Component | string;
@@ -1,4 +1,4 @@
1
- import { _ as p } from "../index-f8afb6b6.js";
1
+ import { _ as p } from "../index-6181061b.js";
2
2
  import "vue";
3
3
  import "../_plugin-vue_export-helper-dad06003.js";
4
4
  export {
@@ -1,2 +1,2 @@
1
- import type { ButtonSizeType, ButtonVariantType } from "./button";
1
+ import type { ButtonSizeType, ButtonVariantType } from './button';
2
2
  export declare const makeButtonClassList: (variant?: ButtonVariantType, size?: ButtonSizeType) => any[];
@@ -1,4 +1,4 @@
1
- import type { Component } from "vue";
1
+ import type { Component } from 'vue';
2
2
  interface ButtonGroupElement {
3
3
  label: string;
4
4
  key: string;