@oneb/ui-vue 0.0.32 → 0.0.34

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.
@@ -35,5 +35,8 @@ export declare const buttonProps: {
35
35
  iconClass: {
36
36
  type: PropType<string | string[]>;
37
37
  };
38
+ iconAfter: {
39
+ type: PropType<any>;
40
+ };
38
41
  };
39
42
  export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-8152bae6.cjs");require("vue");require("../_plugin-vue_export-helper-f246444f.cjs");exports.OneButton=e._sfc_main;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-3615f53c.cjs");require("vue");require("../_plugin-vue_export-helper-f246444f.cjs");exports.OneButton=e._sfc_main;
@@ -1,4 +1,4 @@
1
- import { _ as p } from "../index-7ea12e26.js";
1
+ import { _ as p } from "../index-f136b5ea.js";
2
2
  import "vue";
3
3
  import "../_plugin-vue_export-helper-dad06003.js";
4
4
  export {
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),b=require("./_plugin-vue_export-helper-f246444f.cjs");const g={},h={class:"spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{animation:"one-sp-ico-rot 2.7s linear infinite"}},f=e.createElementVNode("circle",{style:{"stroke-linecap":"round",animation:"one-sp-ico-dash 1.7s ease-in-out infinite"},class:"opacity-75",cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor","stroke-width":"2"},null,-1),v=[f];function y(o,n){return e.openBlock(),e.createElementBlock("svg",h,v)}const i=b._export_sfc(g,[["render",y]]),k={variant:{type:String,default:"primary"},size:{type:String,default:"md"},label:{type:String},icon:{type:[Function,Object]},isLoading:{type:Boolean},isSubmit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},iconClass:{type:[String,Array]},iconAfter:{type:[Function,Object]}},w=["relative inline-flex","border","items-center justify-center","font-medium whitespace-nowrap","disabled:opacity-50 disabled:cursor-default","focus:outline-none focus:ring-2 focus:ring-offset-2","transition-colors duration-200"],C={sm:["px-2 py-1 text-sm"],md:["px-3 py-2"],lg:["px-4 py-3"]},_={primary:["rounded-md border-transparent bg-primary-base disabled:bg-primary-hover text-sm text-white hover:bg-primary-hover focus:ring-primary-glow"],secondary:["rounded-md border-primary-stroke bg-primary-body disabled:bg-primary-body-hover text-black text-sm hover:bg-primary-body-hover focus:ring-tertiary-glow"],info:["rounded-md border-transparent bg-info-base disabled:bg-info-hover text-white text-sm hover:bg-info-hover focus:ring-info-glow"],success:["rounded-md border-transparent bg-success-base disabled:bg-success-hover text-white text-sm hover:bg-success-hover focus:ring-success-glow"],warning:["rounded-md border-transparent bg-warning-base disabled:bg-warning-hover text-white text-sm hover:bg-warning-hover focus:ring-warning-glow"],danger:["rounded-md border-transparent bg-danger-base disabled:bg-danger-hover text-white text-sm hover:bg-danger-hover focus:ring-danger-glow"],touch:["rounded-full border-transparent text-black hover:bg-primary-body-hover hover:shadow p-3 text-sm focus:ring-tertiary-glow"],link:["rounded-md border-transparent items-center text-info-base hover:text-info-hover text-sm"],none:["rounded-md border-transparent text-gray-500"]},x=(o="primary",n="md")=>{const s=[];return s.push(...w),s.push(..._[o]??[]),o!=="touch"&&s.push(...C[n]??[]),s},B=["disabled","title","type","onClick"],z=e.defineComponent({__name:"OneButton",props:k,emits:["click"],setup(o,{emit:n}){const s=o,c=()=>{n("click")},r=e.computed(()=>s.icon),a=e.computed(()=>s.iconAfter),u=e.computed(()=>{const t=x(s.variant,s.size);return s.variant==="touch"&&s.active&&t.push("bg-primary-body-active"),t}),d=e.computed(()=>s.disabled||s.isLoading),p=e.computed(()=>s.label&&s.label.length>0&&s.variant!=="touch"),m=e.computed(()=>{const t=["inline-block text-ellipsis overflow-hidden"];return r.value!=null&&t.push("ml-2"),a.value!=null&&t.push("mr-2"),t}),l=e.computed(()=>{const t=[];return s.size==="sm"?t.push("w-3 h-3"):s.size==="lg"?t.push("w-5 h-5"):t.push("w-4 h-4"),typeof s.iconClass=="string"?t.push(s.iconClass):s.iconClass instanceof Array&&t.push(...s.iconClass),t});return(t,L)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(u.value),disabled:d.value,title:t.label,type:t.isSubmit?"submit":"button",onClick:e.withModifiers(c,["stop"])},[r.value!=null&&t.isLoading?(e.openBlock(),e.createBlock(i,{key:0,class:e.normalizeClass(l.value)},null,8,["class"])):r.value!=null?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:1,class:e.normalizeClass(l.value)},null,8,["class"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(m.value)},e.toDisplayString(t.label),3)):e.createCommentVNode("",!0),a.value!=null&&t.isLoading?(e.openBlock(),e.createBlock(i,{key:3,class:e.normalizeClass(l.value)},null,8,["class"])):a.value!=null?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),{key:4,class:e.normalizeClass(l.value)},null,8,["class"])):e.createCommentVNode("",!0)],10,B))}});exports.SpinnerIcon=i;exports._sfc_main=z;
@@ -1,11 +1,11 @@
1
- import { openBlock as n, createElementBlock as a, createElementVNode as f, defineComponent as y, computed as t, normalizeClass as i, withModifiers as v, createBlock as d, resolveDynamicComponent as w, createCommentVNode as u, toDisplayString as x } from "vue";
2
- import { _ } from "./_plugin-vue_export-helper-dad06003.js";
3
- const k = {}, C = {
1
+ import { openBlock as n, createElementBlock as p, createElementVNode as w, defineComponent as x, computed as t, normalizeClass as o, withModifiers as _, createBlock as u, resolveDynamicComponent as b, createCommentVNode as d, toDisplayString as k } from "vue";
2
+ import { _ as C } from "./_plugin-vue_export-helper-dad06003.js";
3
+ const B = {}, L = {
4
4
  class: "spinner",
5
5
  xmlns: "http://www.w3.org/2000/svg",
6
6
  viewBox: "0 0 24 24",
7
7
  style: { animation: "one-sp-ico-rot 2.7s linear infinite" }
8
- }, B = /* @__PURE__ */ f("circle", {
8
+ }, S = /* @__PURE__ */ w("circle", {
9
9
  style: { "stroke-linecap": "round", animation: "one-sp-ico-dash 1.7s ease-in-out infinite" },
10
10
  class: "opacity-75",
11
11
  cx: "12",
@@ -14,13 +14,13 @@ const k = {}, C = {
14
14
  fill: "none",
15
15
  stroke: "currentColor",
16
16
  "stroke-width": "2"
17
- }, null, -1), L = [
18
- B
17
+ }, null, -1), z = [
18
+ S
19
19
  ];
20
- function S(o, r) {
21
- return n(), a("svg", C, L);
20
+ function I(r, a) {
21
+ return n(), p("svg", L, z);
22
22
  }
23
- const z = /* @__PURE__ */ _(k, [["render", S]]), I = {
23
+ const m = /* @__PURE__ */ C(B, [["render", I]]), A = {
24
24
  variant: {
25
25
  type: String,
26
26
  default: "primary"
@@ -52,8 +52,11 @@ const z = /* @__PURE__ */ _(k, [["render", S]]), I = {
52
52
  },
53
53
  iconClass: {
54
54
  type: [String, Array]
55
+ },
56
+ iconAfter: {
57
+ type: [Function, Object]
55
58
  }
56
- }, D = [
59
+ }, j = [
57
60
  "relative inline-flex",
58
61
  "border",
59
62
  "items-center justify-center",
@@ -61,11 +64,11 @@ const z = /* @__PURE__ */ _(k, [["render", S]]), I = {
61
64
  "disabled:opacity-50 disabled:cursor-default",
62
65
  "focus:outline-none focus:ring-2 focus:ring-offset-2",
63
66
  "transition-colors duration-200"
64
- ], j = {
67
+ ], D = {
65
68
  sm: ["px-2 py-1 text-sm"],
66
69
  md: ["px-3 py-2"],
67
70
  lg: ["px-4 py-3"]
68
- }, A = {
71
+ }, O = {
69
72
  primary: ["rounded-md border-transparent bg-primary-base disabled:bg-primary-hover text-sm text-white hover:bg-primary-hover focus:ring-primary-glow"],
70
73
  secondary: ["rounded-md border-primary-stroke bg-primary-body disabled:bg-primary-body-hover text-black text-sm hover:bg-primary-body-hover focus:ring-tertiary-glow"],
71
74
  info: ["rounded-md border-transparent bg-info-base disabled:bg-info-hover text-white text-sm hover:bg-info-hover focus:ring-info-glow"],
@@ -75,50 +78,57 @@ const z = /* @__PURE__ */ _(k, [["render", S]]), I = {
75
78
  touch: ["rounded-full border-transparent text-black hover:bg-primary-body-hover hover:shadow p-3 text-sm focus:ring-tertiary-glow"],
76
79
  link: ["rounded-md border-transparent items-center text-info-base hover:text-info-hover text-sm"],
77
80
  none: ["rounded-md border-transparent text-gray-500"]
78
- }, E = (o = "primary", r = "md") => {
81
+ }, E = (r = "primary", a = "md") => {
79
82
  const e = [];
80
- return e.push(...D), e.push(...A[o] ?? []), o !== "touch" && e.push(...j[r] ?? []), e;
81
- }, N = ["disabled", "title", "type", "onClick"], F = /* @__PURE__ */ y({
83
+ return e.push(...j), e.push(...O[r] ?? []), r !== "touch" && e.push(...D[a] ?? []), e;
84
+ }, F = ["disabled", "title", "type", "onClick"], M = /* @__PURE__ */ x({
82
85
  __name: "OneButton",
83
- props: I,
86
+ props: A,
84
87
  emits: ["click"],
85
- setup(o, { emit: r }) {
86
- const e = o, p = () => {
87
- r("click");
88
- }, l = t(() => e.icon), b = t(() => {
88
+ setup(r, { emit: a }) {
89
+ const e = r, g = () => {
90
+ a("click");
91
+ }, i = t(() => e.icon), l = t(() => e.iconAfter), h = t(() => {
89
92
  const s = E(e.variant, e.size);
90
93
  return e.variant === "touch" && e.active && s.push("bg-primary-body-active"), s;
91
- }), g = t(() => e.disabled || e.isLoading), m = t(() => e.label && e.label.length > 0 && e.variant !== "touch"), h = t(() => {
94
+ }), f = t(() => e.disabled || e.isLoading), y = t(() => e.label && e.label.length > 0 && e.variant !== "touch"), v = t(() => {
92
95
  const s = [
93
96
  "inline-block text-ellipsis overflow-hidden"
94
97
  ];
95
- return (e.icon != null || e.isLoading) && s.push("ml-2"), s;
98
+ return i.value != null && s.push("ml-2"), l.value != null && s.push("mr-2"), s;
96
99
  }), c = t(() => {
97
100
  const s = [];
98
101
  return e.size === "sm" ? s.push("w-3 h-3") : e.size === "lg" ? s.push("w-5 h-5") : s.push("w-4 h-4"), typeof e.iconClass == "string" ? s.push(e.iconClass) : e.iconClass instanceof Array && s.push(...e.iconClass), s;
99
102
  });
100
- return (s, O) => (n(), a("button", {
101
- class: i(b.value),
102
- disabled: g.value,
103
+ return (s, N) => (n(), p("button", {
104
+ class: o(h.value),
105
+ disabled: f.value,
103
106
  title: s.label,
104
107
  type: s.isSubmit ? "submit" : "button",
105
- onClick: v(p, ["stop"])
108
+ onClick: _(g, ["stop"])
106
109
  }, [
107
- s.isLoading ? (n(), d(z, {
110
+ i.value != null && s.isLoading ? (n(), u(m, {
108
111
  key: 0,
109
- class: i(c.value)
110
- }, null, 8, ["class"])) : l.value != null ? (n(), d(w(l.value), {
112
+ class: o(c.value)
113
+ }, null, 8, ["class"])) : i.value != null ? (n(), u(b(i.value), {
111
114
  key: 1,
112
- class: i(c.value)
113
- }, null, 8, ["class"])) : u("", !0),
114
- m.value ? (n(), a("span", {
115
+ class: o(c.value)
116
+ }, null, 8, ["class"])) : d("", !0),
117
+ y.value ? (n(), p("span", {
115
118
  key: 2,
116
- class: i(h.value)
117
- }, x(s.label), 3)) : u("", !0)
118
- ], 10, N));
119
+ class: o(v.value)
120
+ }, k(s.label), 3)) : d("", !0),
121
+ l.value != null && s.isLoading ? (n(), u(m, {
122
+ key: 3,
123
+ class: o(c.value)
124
+ }, null, 8, ["class"])) : l.value != null ? (n(), u(b(l.value), {
125
+ key: 4,
126
+ class: o(c.value)
127
+ }, null, 8, ["class"])) : d("", !0)
128
+ ], 10, F));
119
129
  }
120
130
  });
121
131
  export {
122
- z as S,
123
- F as _
132
+ m as S,
133
+ M as _
124
134
  };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-8152bae6.cjs"),r=require("./card/index.cjs"),e=require("./form/index.cjs"),n=require("./OneBrowserMenu.vue_vue_type_script_setup_true_lang-562e2fdb.cjs"),O=require("./dropdown/index.cjs"),a=require("./common/index.cjs");require("vue");require("./_plugin-vue_export-helper-f246444f.cjs");require("./XMarkIcon-f94baa4c.cjs");exports.OneButton=o._sfc_main;exports.OneCard=r.OneCard;exports.OneCardBody=r.OneCardBody;exports.OneCardFooter=r.OneCardFooter;exports.OneCardHeader=r.OneCardHeader;exports.OneForm=e.OneForm;exports.OneFormFeedback=e.OneFormFeedback;exports.OneFormField=e.OneFormField;exports.OneFormInput=e.OneFormInput;exports.OneFormLabel=e.OneFormLabel;exports.OneBrowserMenu=n._sfc_main$3;exports.OneDropdown=n._sfc_main;exports.OneDropdownItem=n._sfc_main$1;exports.OneUserMenu=n._sfc_main$2;exports.OneDropdownDivider=O.OneDropdownDivider;exports.OneAvatar=a.OneAvatar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-3615f53c.cjs"),r=require("./card/index.cjs"),e=require("./form/index.cjs"),n=require("./OneBrowserMenu.vue_vue_type_script_setup_true_lang-562e2fdb.cjs"),O=require("./dropdown/index.cjs"),a=require("./common/index.cjs");require("vue");require("./_plugin-vue_export-helper-f246444f.cjs");require("./XMarkIcon-f94baa4c.cjs");exports.OneButton=o._sfc_main;exports.OneCard=r.OneCard;exports.OneCardBody=r.OneCardBody;exports.OneCardFooter=r.OneCardFooter;exports.OneCardHeader=r.OneCardHeader;exports.OneForm=e.OneForm;exports.OneFormFeedback=e.OneFormFeedback;exports.OneFormField=e.OneFormField;exports.OneFormInput=e.OneFormInput;exports.OneFormLabel=e.OneFormLabel;exports.OneBrowserMenu=n._sfc_main$3;exports.OneDropdown=n._sfc_main;exports.OneDropdownItem=n._sfc_main$1;exports.OneUserMenu=n._sfc_main$2;exports.OneDropdownDivider=O.OneDropdownDivider;exports.OneAvatar=a.OneAvatar;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a } from "./index-7ea12e26.js";
1
+ import { _ as a } from "./index-f136b5ea.js";
2
2
  import { OneCard as t, OneCardBody as p, OneCardFooter as d, OneCardHeader as F } from "./card/index.js";
3
3
  import { OneForm as f, OneFormFeedback as i, OneFormField as x, OneFormInput as u, OneFormLabel as w } from "./form/index.js";
4
4
  import { c as D, _ as b, a as B, b as c } from "./OneBrowserMenu.vue_vue_type_script_setup_true_lang-59fac367.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),M=require("../_plugin-vue_export-helper-f246444f.cjs"),O=require("../XMarkIcon-f94baa4c.cjs"),V=require("../OneBrowserMenu.vue_vue_type_script_setup_true_lang-562e2fdb.cjs"),B=require("../index-8152bae6.cjs");require("../common/index.cjs");const N={items:{required:!0,type:Array},slim:{type:Boolean,default:!0},support:{type:Object},news:{type:Object}},j={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},label:{type:String,required:!0},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0}},D={sidebarItems:N.items,logoSrc:{type:String},helpUrl:{type:String},app:{required:!0,type:Object},user:{type:Object,required:!0},labels:{type:Object},support:{type:Object},news:{type:Object},handlers:{type:Object}},q={class:"flex flex-nowrap items-center w-full h-[24px]"},H={key:0,class:"w-[44px] flex-shrink-0"},z={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},I={class:"py-[8px] pl-0 pr-[8px]"},Z=e.defineComponent({__name:"OneSidebarLink",props:j,setup(r){const s=r,i=e.computed(()=>s.route!=null?s.route:s.routeName!=null?{name:s.routeName}:"/");return(l,d)=>{const o=e.resolveComponent("RouterLink");return e.openBlock(),e.createBlock(o,{to:i.value,class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[l.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":l.exact?"":"bg-primary-10 !text-primary-base","exact-active-class":l.exact?"bg-primary-10 !text-primary-base":"",exact:l.exact},{default:e.withCtx(()=>[e.createElementVNode("div",q,[l.icon?(e.openBlock(),e.createElementBlock("div",H,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",z,[e.createElementVNode("span",I,e.toDisplayString(l.label),1)])])]),_:1},8,["to","active-class","exact-active-class","exact","class"])}}}),A={},F={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},P=e.createElementVNode("path",{d:"M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",fill:"currentColor"},null,-1),R=e.createElementVNode("path",{d:"M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",fill:"currentColor"},null,-1),T=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",fill:"currentColor"},null,-1),U=[P,R,T];function W(r,s){return e.openBlock(),e.createElementBlock("svg",F,U)}const E=M._export_sfc(A,[["render",W]]);function X(r,s){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:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"})])}const G={class:"h-full"},J={class:"space-y-1 p-2 h-full relative"},K={class:"absolute left-2 bottom-2 right-2"},Q=["href"],Y={class:"flex flex-nowrap items-center w-full h-[24px]"},e1={class:"w-[44px] flex-shrink-0 relative"},t1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},o1={class:"py-[8px] pl-0 pr-[8px]"},l1={class:"flex flex-nowrap items-center w-full h-[24px]"},n1={class:"w-[44px] flex-shrink-0 relative"},s1={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},r1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},a1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},c1={class:"py-[8px] pl-0 pr-[8px]"},S=e.defineComponent({__name:"OneSidebar",props:N,emits:["show-news"],setup(r,{emit:s}){const i=r,l=e.computed(()=>{var o;return((o=i.news)==null?void 0:o.unseenCount)||0}),d=()=>{s("show-news")};return(o,p)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,c=>(e.openBlock(),e.createBlock(Z,{key:c.label,icon:c.icon,label:c.label,route:c.route,"route-name":c.routeName,exact:c.exact||!1,slim:o.slim},null,8,["icon","label","route","route-name","exact","slim"]))),128)),e.createElementVNode("div",K,[o.support?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.support.url,target:"_blank",class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[o.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]])},[e.createElementVNode("div",Y,[e.createElementVNode("div",e1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(X)),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("div",t1,[e.createElementVNode("span",o1,e.toDisplayString(o.support.menuLabel||"Support"),1)])])],10,Q)):e.createCommentVNode("",!0),o.news?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[o.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:d},[e.createElementVNode("div",l1,[e.createElementVNode("div",n1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E),{class:"w-[24px] h-[24px] mx-auto"})),l.value>0?(e.openBlock(),e.createElementBlock("span",s1)):e.createCommentVNode("",!0),l.value>0?(e.openBlock(),e.createElementBlock("span",r1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",a1,[e.createElementVNode("span",c1,e.toDisplayString(o.news.menuLabel||"News"),1)])])],2)):e.createCommentVNode("",!0)])])]))}});function i1(r,s){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:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function d1(r,s){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"})])}const p1={class:"h-full relative"},C1={class:"header h-[56px] flex items-center flex-nowrap absolute top-0 left-0 w-full"},u1={class:"p-2 flex-shrink-0"},m1={class:"w-10 h-10 bg-white rounded-lg border border-secondary-stroke flex items-center flex-shrink-0"},h1=["src"],w1={class:"whitespace-nowrap"},k1={class:"text-xs whitespace-nowrap"},f1={class:"w-full"},_1={class:"w-full flex justify-end pr-3"},L1={class:"flex items-center space-x-3"},v1={key:0,class:"sm:block flex-shrink-0 hidden"},y1=["href"],g1={class:"body w-full h-full"},x1={key:0},b1={key:0,class:"w-96 relative h-full"},V1={class:"h-full relative"},B1={class:"flex items-center p-3 space-x-1.5"},N1=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1),E1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},S1={key:0,class:"p-5"},$1={key:1},M1={class:"p-4 text-gray text-center"},O1={key:2},j1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},D1={key:0},q1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},H1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},z1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},I1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},Z1={class:"text-lg font-medium"},A1={class:"text-sm text-gray-600"},F1={key:0},P1=["src"],R1={class:"text-sm whitespace-pre-wrap break-words"},T1={key:1},U1=["href"],W1={class:"text-sm flex items-center justify-between mt-1"},X1={class:"text-gray-800"},G1=["href"],J1=e.defineComponent({__name:"OneMainLayout",props:D,emits:["load-news"],setup(r,{emit:s}){const i=r;window.document.body.offsetWidth<1024&&window.localStorage.getItem("sidebar-slim")==="0"&&window.localStorage.setItem("sidebar-slim","1");const l=e.ref(window.localStorage.getItem("sidebar-slim")==="1");e.watch(l,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const d=()=>{window.document.body.offsetWidth<1024&&!l.value&&(l.value=!0)},o=e.ref(!1),p=()=>{o.value=!o.value,o.value&&s("load-news")},c=e.computed(()=>{var t,a;return{name:((t=i.app)==null?void 0:t.workspace)||"",photo_url:((a=i.app)==null?void 0:a.photo_url)||""}});return(t,a)=>{var C,u,m,h,w,k,f,_,L,v,y,g,x,b;const $=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",p1,[e.createElementVNode("div",C1,[e.createElementVNode("div",u1,[e.createElementVNode("button",{onClick:a[0]||(a[0]=n=>l.value=!l.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"},[e.createVNode(e.unref(i1),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",m1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,h1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock($,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>[e.createElementVNode("div",w1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",k1,e.toDisplayString(t.app.workspace),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",f1,[e.createElementVNode("div",_1,[e.createElementVNode("div",L1,[e.renderSlot(t.$slots,"before-header-menu"),t.helpUrl?(e.openBlock(),e.createElementBlock("div",v1,[e.createElementVNode("a",{href:t.helpUrl,target:"_blank",title:"Help",class:"block btn-touch text-gray-dark"},[e.createVNode(e.unref(d1),{class:"w-6 h-6 text-gray-600"})],8,y1)])):e.createCommentVNode("",!0),(C=t.app)!=null&&C.apps?(e.openBlock(),e.createBlock(V._sfc_main$3,{key:1,workspace:c.value,apps:((u=t.app)==null?void 0:u.apps)||[],"change-label":((m=t.labels)==null?void 0:m.change)||"Change","apps-title":((h=t.labels)==null?void 0:h.apps)||"Apps","on-app":(w=t.handlers)==null?void 0:w.onApp,"on-change":(k=t.handlers)==null?void 0:k.onChange,onOpen:(f=t.handlers)==null?void 0:f.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(V._sfc_main$2,{user:t.user,"account-label":((_=t.labels)==null?void 0:_.account)||"Account","logout-label":((L=t.labels)==null?void 0:L.logout)||"Logout","on-account":(v=t.handlers)==null?void 0:v.onAccount,"on-logout":(y=t.handlers)==null?void 0:y.onLogout},null,8,["user","account-label","logout-label","on-account","on-logout"])])])])]),e.createElementVNode("div",{class:e.normalizeClass(["sidebar absolute top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50",[l.value?"w-0 lg:w-[60px]":"w-full lg:w-60"]]),style:{height:"calc(100% - 56px)"},onClick:d},[e.createVNode(S,{slim:l.value,items:t.sidebarItems,"with-news":t.news!=null,support:t.support,news:t.news,onShowNews:p},null,8,["slim","items","with-news","support","news"])],2),e.createElementVNode("div",g1,[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all pt-[56px] h-full overflow-auto",[l.value?"pl-0 lg:pl-[60px]":"pl-0 lg:pl-60"]])},[e.renderSlot(t.$slots,"default")],2)]),t.news?(e.openBlock(),e.createElementBlock("div",x1,[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen w-screen bg-gray-100 bg-opacity-40 z-50",onClick:a[1]||(a[1]=e.withModifiers(n=>o.value=!1,["self"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white",[o.value?"w-96":"w-0"]])},[o.value?(e.openBlock(),e.createElementBlock("div",b1,[e.createElementVNode("div",V1,[e.createElementVNode("div",B1,[e.createVNode(E,{class:"w-10 h-10"}),N1,e.createElementVNode("div",null,[e.createVNode(B._sfc_main,{variant:"touch",icon:e.unref(O.render),onClick:a[2]||(a[2]=n=>o.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",E1,[t.news.isLoading&&((g=t.news.items)==null?void 0:g.length)===0?(e.openBlock(),e.createElementBlock("div",S1,[e.createVNode(B.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((x=t.news.items)==null?void 0:x.length)===0?(e.openBlock(),e.createElementBlock("div",$1,[e.createElementVNode("div",M1,e.toDisplayString(t.news.emptyText),1)])):((b=t.news.items)==null?void 0:b.length)>0?(e.openBlock(),e.createElementBlock("div",O1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,n=>(e.openBlock(),e.createElementBlock("div",{key:n.id,class:"p-3"},[e.createElementVNode("div",j1,[e.createElementVNode("div",null,[n.type?(e.openBlock(),e.createElementBlock("div",D1,[n.type===10?(e.openBlock(),e.createElementBlock("span",q1,"update")):n.type===11?(e.openBlock(),e.createElementBlock("span",H1,"warning")):n.type===12?(e.openBlock(),e.createElementBlock("span",z1,"notice")):n.type===13?(e.openBlock(),e.createElementBlock("span",I1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Z1,e.toDisplayString(n.title),1),e.createElementVNode("div",A1,e.toDisplayString(n.summary),1)]),n.image_url?(e.openBlock(),e.createElementBlock("div",F1,[e.createElementVNode("img",{src:n.image_url,alt:"",class:"w-full rounded-md"},null,8,P1)])):e.createCommentVNode("",!0),e.createElementVNode("div",R1,e.toDisplayString(n.body),1),n.video_url?(e.openBlock(),e.createElementBlock("div",T1,[e.createElementVNode("a",{href:n.video_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"},e.toDisplayString(t.news.openVideoText),9,U1)])):e.createCommentVNode("",!0),e.createElementVNode("div",W1,[e.createElementVNode("span",X1,e.toDisplayString(n.published),1),n.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:n.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,G1)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});exports.OneMainLayout=J1;exports.OneSidebar=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),M=require("../_plugin-vue_export-helper-f246444f.cjs"),O=require("../XMarkIcon-f94baa4c.cjs"),V=require("../OneBrowserMenu.vue_vue_type_script_setup_true_lang-562e2fdb.cjs"),B=require("../index-3615f53c.cjs");require("../common/index.cjs");const N={items:{required:!0,type:Array},slim:{type:Boolean,default:!0},support:{type:Object},news:{type:Object}},j={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},label:{type:String,required:!0},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0}},D={sidebarItems:N.items,logoSrc:{type:String},helpUrl:{type:String},app:{required:!0,type:Object},user:{type:Object,required:!0},labels:{type:Object},support:{type:Object},news:{type:Object},handlers:{type:Object}},q={class:"flex flex-nowrap items-center w-full h-[24px]"},H={key:0,class:"w-[44px] flex-shrink-0"},z={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},I={class:"py-[8px] pl-0 pr-[8px]"},Z=e.defineComponent({__name:"OneSidebarLink",props:j,setup(r){const s=r,i=e.computed(()=>s.route!=null?s.route:s.routeName!=null?{name:s.routeName}:"/");return(l,d)=>{const o=e.resolveComponent("RouterLink");return e.openBlock(),e.createBlock(o,{to:i.value,class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[l.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":l.exact?"":"bg-primary-10 !text-primary-base","exact-active-class":l.exact?"bg-primary-10 !text-primary-base":"",exact:l.exact},{default:e.withCtx(()=>[e.createElementVNode("div",q,[l.icon?(e.openBlock(),e.createElementBlock("div",H,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",z,[e.createElementVNode("span",I,e.toDisplayString(l.label),1)])])]),_:1},8,["to","active-class","exact-active-class","exact","class"])}}}),A={},F={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},P=e.createElementVNode("path",{d:"M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",fill:"currentColor"},null,-1),R=e.createElementVNode("path",{d:"M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",fill:"currentColor"},null,-1),T=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",fill:"currentColor"},null,-1),U=[P,R,T];function W(r,s){return e.openBlock(),e.createElementBlock("svg",F,U)}const E=M._export_sfc(A,[["render",W]]);function X(r,s){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:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"})])}const G={class:"h-full"},J={class:"space-y-1 p-2 h-full relative"},K={class:"absolute left-2 bottom-2 right-2"},Q=["href"],Y={class:"flex flex-nowrap items-center w-full h-[24px]"},e1={class:"w-[44px] flex-shrink-0 relative"},t1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},o1={class:"py-[8px] pl-0 pr-[8px]"},l1={class:"flex flex-nowrap items-center w-full h-[24px]"},n1={class:"w-[44px] flex-shrink-0 relative"},s1={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},r1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},a1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},c1={class:"py-[8px] pl-0 pr-[8px]"},S=e.defineComponent({__name:"OneSidebar",props:N,emits:["show-news"],setup(r,{emit:s}){const i=r,l=e.computed(()=>{var o;return((o=i.news)==null?void 0:o.unseenCount)||0}),d=()=>{s("show-news")};return(o,p)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,c=>(e.openBlock(),e.createBlock(Z,{key:c.label,icon:c.icon,label:c.label,route:c.route,"route-name":c.routeName,exact:c.exact||!1,slim:o.slim},null,8,["icon","label","route","route-name","exact","slim"]))),128)),e.createElementVNode("div",K,[o.support?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.support.url,target:"_blank",class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[o.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]])},[e.createElementVNode("div",Y,[e.createElementVNode("div",e1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(X)),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("div",t1,[e.createElementVNode("span",o1,e.toDisplayString(o.support.menuLabel||"Support"),1)])])],10,Q)):e.createCommentVNode("",!0),o.news?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[o.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:d},[e.createElementVNode("div",l1,[e.createElementVNode("div",n1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E),{class:"w-[24px] h-[24px] mx-auto"})),l.value>0?(e.openBlock(),e.createElementBlock("span",s1)):e.createCommentVNode("",!0),l.value>0?(e.openBlock(),e.createElementBlock("span",r1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",a1,[e.createElementVNode("span",c1,e.toDisplayString(o.news.menuLabel||"News"),1)])])],2)):e.createCommentVNode("",!0)])])]))}});function i1(r,s){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:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function d1(r,s){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"})])}const p1={class:"h-full relative"},C1={class:"header h-[56px] flex items-center flex-nowrap absolute top-0 left-0 w-full"},u1={class:"p-2 flex-shrink-0"},m1={class:"w-10 h-10 bg-white rounded-lg border border-secondary-stroke flex items-center flex-shrink-0"},h1=["src"],w1={class:"whitespace-nowrap"},k1={class:"text-xs whitespace-nowrap"},f1={class:"w-full"},_1={class:"w-full flex justify-end pr-3"},L1={class:"flex items-center space-x-3"},v1={key:0,class:"sm:block flex-shrink-0 hidden"},y1=["href"],g1={class:"body w-full h-full"},x1={key:0},b1={key:0,class:"w-96 relative h-full"},V1={class:"h-full relative"},B1={class:"flex items-center p-3 space-x-1.5"},N1=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1),E1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},S1={key:0,class:"p-5"},$1={key:1},M1={class:"p-4 text-gray text-center"},O1={key:2},j1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},D1={key:0},q1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},H1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},z1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},I1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},Z1={class:"text-lg font-medium"},A1={class:"text-sm text-gray-600"},F1={key:0},P1=["src"],R1={class:"text-sm whitespace-pre-wrap break-words"},T1={key:1},U1=["href"],W1={class:"text-sm flex items-center justify-between mt-1"},X1={class:"text-gray-800"},G1=["href"],J1=e.defineComponent({__name:"OneMainLayout",props:D,emits:["load-news"],setup(r,{emit:s}){const i=r;e.onMounted(()=>{window.document.body.offsetWidth<1024&&window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1")});const l=e.ref(window.localStorage.getItem("sidebar-slim")==="1");e.watch(l,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const d=()=>{window.document.body.offsetWidth<1024&&!l.value&&(l.value=!0)},o=e.ref(!1),p=()=>{o.value=!o.value,o.value&&s("load-news")},c=e.computed(()=>{var t,a;return{name:((t=i.app)==null?void 0:t.workspace)||"",photo_url:((a=i.app)==null?void 0:a.photo_url)||""}});return(t,a)=>{var C,u,m,h,w,k,f,_,L,v,y,g,x,b;const $=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",p1,[e.createElementVNode("div",C1,[e.createElementVNode("div",u1,[e.createElementVNode("button",{onClick:a[0]||(a[0]=n=>l.value=!l.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"},[e.createVNode(e.unref(i1),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",m1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,h1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock($,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>[e.createElementVNode("div",w1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",k1,e.toDisplayString(t.app.workspace),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",f1,[e.createElementVNode("div",_1,[e.createElementVNode("div",L1,[e.renderSlot(t.$slots,"before-header-menu"),t.helpUrl?(e.openBlock(),e.createElementBlock("div",v1,[e.createElementVNode("a",{href:t.helpUrl,target:"_blank",title:"Help",class:"block btn-touch text-gray-dark"},[e.createVNode(e.unref(d1),{class:"w-6 h-6 text-gray-600"})],8,y1)])):e.createCommentVNode("",!0),(C=t.app)!=null&&C.apps?(e.openBlock(),e.createBlock(V._sfc_main$3,{key:1,workspace:c.value,apps:((u=t.app)==null?void 0:u.apps)||[],"change-label":((m=t.labels)==null?void 0:m.change)||"Change","apps-title":((h=t.labels)==null?void 0:h.apps)||"Apps","on-app":(w=t.handlers)==null?void 0:w.onApp,"on-change":(k=t.handlers)==null?void 0:k.onChange,onOpen:(f=t.handlers)==null?void 0:f.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(V._sfc_main$2,{user:t.user,"account-label":((_=t.labels)==null?void 0:_.account)||"Account","logout-label":((L=t.labels)==null?void 0:L.logout)||"Logout","on-account":(v=t.handlers)==null?void 0:v.onAccount,"on-logout":(y=t.handlers)==null?void 0:y.onLogout},null,8,["user","account-label","logout-label","on-account","on-logout"])])])])]),e.createElementVNode("div",{class:e.normalizeClass(["sidebar absolute top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50",[l.value?"w-0 lg:w-[60px]":"w-full lg:w-60"]]),style:{height:"calc(100% - 56px)"},onClick:d},[e.createVNode(S,{slim:l.value,items:t.sidebarItems,"with-news":t.news!=null,support:t.support,news:t.news,onShowNews:p},null,8,["slim","items","with-news","support","news"])],2),e.createElementVNode("div",g1,[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all pt-[56px] h-full overflow-auto",[l.value?"pl-0 lg:pl-[60px]":"pl-0 lg:pl-60"]])},[e.renderSlot(t.$slots,"default")],2)]),t.news?(e.openBlock(),e.createElementBlock("div",x1,[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen w-screen bg-gray-100 bg-opacity-40 z-50",onClick:a[1]||(a[1]=e.withModifiers(n=>o.value=!1,["self"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white",[o.value?"w-96":"w-0"]])},[o.value?(e.openBlock(),e.createElementBlock("div",b1,[e.createElementVNode("div",V1,[e.createElementVNode("div",B1,[e.createVNode(E,{class:"w-10 h-10"}),N1,e.createElementVNode("div",null,[e.createVNode(B._sfc_main,{variant:"touch",icon:e.unref(O.render),onClick:a[2]||(a[2]=n=>o.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",E1,[t.news.isLoading&&((g=t.news.items)==null?void 0:g.length)===0?(e.openBlock(),e.createElementBlock("div",S1,[e.createVNode(B.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((x=t.news.items)==null?void 0:x.length)===0?(e.openBlock(),e.createElementBlock("div",$1,[e.createElementVNode("div",M1,e.toDisplayString(t.news.emptyText),1)])):((b=t.news.items)==null?void 0:b.length)>0?(e.openBlock(),e.createElementBlock("div",O1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,n=>(e.openBlock(),e.createElementBlock("div",{key:n.id,class:"p-3"},[e.createElementVNode("div",j1,[e.createElementVNode("div",null,[n.type?(e.openBlock(),e.createElementBlock("div",D1,[n.type===10?(e.openBlock(),e.createElementBlock("span",q1,"update")):n.type===11?(e.openBlock(),e.createElementBlock("span",H1,"warning")):n.type===12?(e.openBlock(),e.createElementBlock("span",z1,"notice")):n.type===13?(e.openBlock(),e.createElementBlock("span",I1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Z1,e.toDisplayString(n.title),1),e.createElementVNode("div",A1,e.toDisplayString(n.summary),1)]),n.image_url?(e.openBlock(),e.createElementBlock("div",F1,[e.createElementVNode("img",{src:n.image_url,alt:"",class:"w-full rounded-md"},null,8,P1)])):e.createCommentVNode("",!0),e.createElementVNode("div",R1,e.toDisplayString(n.body),1),n.video_url?(e.openBlock(),e.createElementBlock("div",T1,[e.createElementVNode("a",{href:n.video_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"},e.toDisplayString(t.news.openVideoText),9,U1)])):e.createCommentVNode("",!0),e.createElementVNode("div",W1,[e.createElementVNode("span",X1,e.toDisplayString(n.published),1),n.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:n.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,G1)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});exports.OneMainLayout=J1;exports.OneSidebar=S;
@@ -1,8 +1,8 @@
1
- import { defineComponent as v, computed as x, resolveComponent as A, openBlock as s, createBlock as h, normalizeClass as w, withCtx as R, createElementVNode as e, createElementBlock as o, resolveDynamicComponent as _, createCommentVNode as a, toDisplayString as c, Fragment as U, renderList as F, unref as L, ref as I, watch as E, createVNode as u, renderSlot as Z, withModifiers as W } from "vue";
2
- import { _ as G } from "../_plugin-vue_export-helper-dad06003.js";
3
- import { r as J } from "../XMarkIcon-51ef0691.js";
4
- import { c as K, b as Q } from "../OneBrowserMenu.vue_vue_type_script_setup_true_lang-59fac367.js";
5
- import { _ as X, S as Y } from "../index-7ea12e26.js";
1
+ import { defineComponent as v, computed as x, resolveComponent as A, openBlock as s, createBlock as h, normalizeClass as w, withCtx as R, createElementVNode as e, createElementBlock as o, resolveDynamicComponent as _, createCommentVNode as a, toDisplayString as c, Fragment as U, renderList as F, unref as L, onMounted as E, ref as I, watch as W, createVNode as u, renderSlot as Z, withModifiers as G } from "vue";
2
+ import { _ as J } from "../_plugin-vue_export-helper-dad06003.js";
3
+ import { r as K } from "../XMarkIcon-51ef0691.js";
4
+ import { c as Q, b as X } from "../OneBrowserMenu.vue_vue_type_script_setup_true_lang-59fac367.js";
5
+ import { _ as Y, S as e1 } from "../index-f136b5ea.js";
6
6
  import "../common/index.js";
7
7
  const P = {
8
8
  items: {
@@ -19,7 +19,7 @@ const P = {
19
19
  news: {
20
20
  type: Object
21
21
  }
22
- }, e1 = {
22
+ }, t1 = {
23
23
  route: {
24
24
  required: !1,
25
25
  type: [Object, String]
@@ -52,7 +52,7 @@ const P = {
52
52
  type: Boolean,
53
53
  default: !0
54
54
  }
55
- }, t1 = {
55
+ }, s1 = {
56
56
  sidebarItems: P.items,
57
57
  logoSrc: {
58
58
  type: String
@@ -80,12 +80,12 @@ const P = {
80
80
  handlers: {
81
81
  type: Object
82
82
  }
83
- }, s1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, o1 = {
83
+ }, o1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, l1 = {
84
84
  key: 0,
85
85
  class: "w-[44px] flex-shrink-0"
86
- }, l1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, n1 = { class: "py-[8px] pl-0 pr-[8px]" }, r1 = /* @__PURE__ */ v({
86
+ }, n1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, r1 = { class: "py-[8px] pl-0 pr-[8px]" }, a1 = /* @__PURE__ */ v({
87
87
  __name: "OneSidebarLink",
88
- props: e1,
88
+ props: t1,
89
89
  setup(d) {
90
90
  const i = d, m = x(() => i.route != null ? i.route : i.routeName != null ? { name: i.routeName } : "/");
91
91
  return (n, f) => {
@@ -98,12 +98,12 @@ const P = {
98
98
  exact: n.exact
99
99
  }, {
100
100
  default: R(() => [
101
- e("div", s1, [
102
- n.icon ? (s(), o("div", o1, [
101
+ e("div", o1, [
102
+ n.icon ? (s(), o("div", l1, [
103
103
  (s(), h(_(n.icon), { class: "w-[24px] h-[24px] mx-auto" }))
104
104
  ])) : a("", !0),
105
- e("div", l1, [
106
- e("span", n1, c(n.label), 1)
105
+ e("div", n1, [
106
+ e("span", r1, c(n.label), 1)
107
107
  ])
108
108
  ])
109
109
  ]),
@@ -111,33 +111,33 @@ const P = {
111
111
  }, 8, ["to", "active-class", "exact-active-class", "exact", "class"]);
112
112
  };
113
113
  }
114
- }), a1 = {}, i1 = {
114
+ }), i1 = {}, c1 = {
115
115
  xmlns: "http://www.w3.org/2000/svg",
116
116
  width: "24",
117
117
  height: "24",
118
118
  viewBox: "0 0 24 24",
119
119
  fill: "none"
120
- }, c1 = /* @__PURE__ */ e("path", {
120
+ }, d1 = /* @__PURE__ */ e("path", {
121
121
  d: "M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",
122
122
  fill: "currentColor"
123
- }, null, -1), d1 = /* @__PURE__ */ e("path", {
123
+ }, null, -1), C1 = /* @__PURE__ */ e("path", {
124
124
  d: "M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",
125
125
  fill: "currentColor"
126
- }, null, -1), C1 = /* @__PURE__ */ e("path", {
126
+ }, null, -1), p1 = /* @__PURE__ */ e("path", {
127
127
  "fill-rule": "evenodd",
128
128
  "clip-rule": "evenodd",
129
129
  d: "M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",
130
130
  fill: "currentColor"
131
- }, null, -1), p1 = [
132
- c1,
131
+ }, null, -1), u1 = [
133
132
  d1,
134
- C1
133
+ C1,
134
+ p1
135
135
  ];
136
- function u1(d, i) {
137
- return s(), o("svg", i1, p1);
138
- }
139
- const T = /* @__PURE__ */ G(a1, [["render", u1]]);
140
136
  function h1(d, i) {
137
+ return s(), o("svg", c1, u1);
138
+ }
139
+ const T = /* @__PURE__ */ J(i1, [["render", h1]]);
140
+ function m1(d, i) {
141
141
  return s(), o("svg", {
142
142
  xmlns: "http://www.w3.org/2000/svg",
143
143
  fill: "none",
@@ -153,13 +153,13 @@ function h1(d, i) {
153
153
  })
154
154
  ]);
155
155
  }
156
- const m1 = { class: "h-full" }, w1 = { class: "space-y-1 p-2 h-full relative" }, f1 = { class: "absolute left-2 bottom-2 right-2" }, L1 = ["href"], _1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, v1 = { class: "w-[44px] flex-shrink-0 relative" }, x1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, y1 = { class: "py-[8px] pl-0 pr-[8px]" }, b1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, g1 = { class: "w-[44px] flex-shrink-0 relative" }, k1 = {
156
+ const w1 = { class: "h-full" }, f1 = { class: "space-y-1 p-2 h-full relative" }, L1 = { class: "absolute left-2 bottom-2 right-2" }, _1 = ["href"], v1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, x1 = { class: "w-[44px] flex-shrink-0 relative" }, y1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, b1 = { class: "py-[8px] pl-0 pr-[8px]" }, g1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, k1 = { class: "w-[44px] flex-shrink-0 relative" }, $1 = {
157
157
  key: 0,
158
158
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
159
- }, $1 = {
159
+ }, S1 = {
160
160
  key: 1,
161
161
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
162
- }, S1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, O1 = { class: "py-[8px] pl-0 pr-[8px]" }, M1 = /* @__PURE__ */ v({
162
+ }, M1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, O1 = { class: "py-[8px] pl-0 pr-[8px]" }, j1 = /* @__PURE__ */ v({
163
163
  __name: "OneSidebar",
164
164
  props: P,
165
165
  emits: ["show-news"],
@@ -170,9 +170,9 @@ const m1 = { class: "h-full" }, w1 = { class: "space-y-1 p-2 h-full relative" },
170
170
  }), f = () => {
171
171
  i("show-news");
172
172
  };
173
- return (l, y) => (s(), o("div", m1, [
174
- e("div", w1, [
175
- (s(!0), o(U, null, F(l.items, (p) => (s(), h(r1, {
173
+ return (l, y) => (s(), o("div", w1, [
174
+ e("div", f1, [
175
+ (s(!0), o(U, null, F(l.items, (p) => (s(), h(a1, {
176
176
  key: p.label,
177
177
  icon: p.icon,
178
178
  label: p.label,
@@ -181,35 +181,35 @@ const m1 = { class: "h-full" }, w1 = { class: "space-y-1 p-2 h-full relative" },
181
181
  exact: p.exact || !1,
182
182
  slim: l.slim
183
183
  }, null, 8, ["icon", "label", "route", "route-name", "exact", "slim"]))), 128)),
184
- e("div", f1, [
184
+ e("div", L1, [
185
185
  l.support ? (s(), o("a", {
186
186
  key: 0,
187
187
  href: l.support.url,
188
188
  target: "_blank",
189
189
  class: w(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content", [l.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]])
190
190
  }, [
191
- e("div", _1, [
192
- e("div", v1, [
193
- (s(), h(_(L(h1)), { class: "w-[24px] h-[24px] mx-auto" }))
194
- ]),
191
+ e("div", v1, [
195
192
  e("div", x1, [
196
- e("span", y1, c(l.support.menuLabel || "Support"), 1)
193
+ (s(), h(_(L(m1)), { class: "w-[24px] h-[24px] mx-auto" }))
194
+ ]),
195
+ e("div", y1, [
196
+ e("span", b1, c(l.support.menuLabel || "Support"), 1)
197
197
  ])
198
198
  ])
199
- ], 10, L1)) : a("", !0),
199
+ ], 10, _1)) : a("", !0),
200
200
  l.news ? (s(), o("a", {
201
201
  key: 1,
202
202
  href: "#",
203
203
  class: w(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content", [l.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
204
204
  onClick: f
205
205
  }, [
206
- e("div", b1, [
207
- e("div", g1, [
206
+ e("div", g1, [
207
+ e("div", k1, [
208
208
  (s(), h(_(T), { class: "w-[24px] h-[24px] mx-auto" })),
209
- n.value > 0 ? (s(), o("span", k1)) : a("", !0),
210
- n.value > 0 ? (s(), o("span", $1)) : a("", !0)
209
+ n.value > 0 ? (s(), o("span", $1)) : a("", !0),
210
+ n.value > 0 ? (s(), o("span", S1)) : a("", !0)
211
211
  ]),
212
- e("div", S1, [
212
+ e("div", M1, [
213
213
  e("span", O1, c(l.news.menuLabel || "News"), 1)
214
214
  ])
215
215
  ])
@@ -219,7 +219,7 @@ const m1 = { class: "h-full" }, w1 = { class: "space-y-1 p-2 h-full relative" },
219
219
  ]));
220
220
  }
221
221
  });
222
- function j1(d, i) {
222
+ function V1(d, i) {
223
223
  return s(), o("svg", {
224
224
  xmlns: "http://www.w3.org/2000/svg",
225
225
  fill: "none",
@@ -235,7 +235,7 @@ function j1(d, i) {
235
235
  })
236
236
  ]);
237
237
  }
238
- function V1(d, i) {
238
+ function B1(d, i) {
239
239
  return s(), o("svg", {
240
240
  xmlns: "http://www.w3.org/2000/svg",
241
241
  fill: "none",
@@ -251,42 +251,44 @@ function V1(d, i) {
251
251
  })
252
252
  ]);
253
253
  }
254
- const B1 = { class: "h-full relative" }, H1 = { class: "header h-[56px] flex items-center flex-nowrap absolute top-0 left-0 w-full" }, N1 = { class: "p-2 flex-shrink-0" }, q1 = { class: "w-10 h-10 bg-white rounded-lg border border-secondary-stroke flex items-center flex-shrink-0" }, z1 = ["src"], I1 = { class: "whitespace-nowrap" }, Z1 = { class: "text-xs whitespace-nowrap" }, A1 = { class: "w-full" }, R1 = { class: "w-full flex justify-end pr-3" }, U1 = { class: "flex items-center space-x-3" }, F1 = {
254
+ const H1 = { class: "h-full relative" }, N1 = { class: "header h-[56px] flex items-center flex-nowrap absolute top-0 left-0 w-full" }, q1 = { class: "p-2 flex-shrink-0" }, z1 = { class: "w-10 h-10 bg-white rounded-lg border border-secondary-stroke flex items-center flex-shrink-0" }, I1 = ["src"], Z1 = { class: "whitespace-nowrap" }, A1 = { class: "text-xs whitespace-nowrap" }, R1 = { class: "w-full" }, U1 = { class: "w-full flex justify-end pr-3" }, F1 = { class: "flex items-center space-x-3" }, P1 = {
255
255
  key: 0,
256
256
  class: "sm:block flex-shrink-0 hidden"
257
- }, P1 = ["href"], T1 = { class: "body w-full h-full" }, D1 = { key: 0 }, E1 = {
257
+ }, T1 = ["href"], D1 = { class: "body w-full h-full" }, E1 = { key: 0 }, W1 = {
258
258
  key: 0,
259
259
  class: "w-96 relative h-full"
260
- }, W1 = { class: "h-full relative" }, G1 = { class: "flex items-center p-3 space-x-1.5" }, J1 = /* @__PURE__ */ e("div", { class: "w-full font-medium" }, "OneB News", -1), K1 = {
260
+ }, G1 = { class: "h-full relative" }, J1 = { class: "flex items-center p-3 space-x-1.5" }, K1 = /* @__PURE__ */ e("div", { class: "w-full font-medium" }, "OneB News", -1), Q1 = {
261
261
  class: "overflow-auto",
262
262
  style: { height: "calc(100% - 62px)" }
263
- }, Q1 = {
263
+ }, X1 = {
264
264
  key: 0,
265
265
  class: "p-5"
266
- }, X1 = { key: 1 }, Y1 = { class: "p-4 text-gray text-center" }, e9 = { key: 2 }, t9 = {
266
+ }, Y1 = { key: 1 }, e9 = { class: "p-4 text-gray text-center" }, t9 = { key: 2 }, s9 = {
267
267
  class: "p-3 space-y-1.5 rounded-lg",
268
268
  style: { "box-shadow": "0 0 6px #eaeaea" }
269
- }, s9 = { key: 0 }, o9 = {
269
+ }, o9 = { key: 0 }, l9 = {
270
270
  key: 0,
271
271
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
272
- }, l9 = {
272
+ }, n9 = {
273
273
  key: 1,
274
274
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
275
- }, n9 = {
275
+ }, r9 = {
276
276
  key: 2,
277
277
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
278
- }, r9 = {
278
+ }, a9 = {
279
279
  key: 3,
280
280
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
281
- }, a9 = { class: "text-lg font-medium" }, i9 = { class: "text-sm text-gray-600" }, c9 = { key: 0 }, d9 = ["src"], C9 = { class: "text-sm whitespace-pre-wrap break-words" }, p9 = { key: 1 }, u9 = ["href"], h9 = { class: "text-sm flex items-center justify-between mt-1" }, m9 = { class: "text-gray-800" }, w9 = ["href"], b9 = /* @__PURE__ */ v({
281
+ }, i9 = { class: "text-lg font-medium" }, c9 = { class: "text-sm text-gray-600" }, d9 = { key: 0 }, C9 = ["src"], p9 = { class: "text-sm whitespace-pre-wrap break-words" }, u9 = { key: 1 }, h9 = ["href"], m9 = { class: "text-sm flex items-center justify-between mt-1" }, w9 = { class: "text-gray-800" }, f9 = ["href"], g9 = /* @__PURE__ */ v({
282
282
  __name: "OneMainLayout",
283
- props: t1,
283
+ props: s1,
284
284
  emits: ["load-news"],
285
285
  setup(d, { emit: i }) {
286
286
  const m = d;
287
- window.document.body.offsetWidth < 1024 && window.localStorage.getItem("sidebar-slim") === "0" && window.localStorage.setItem("sidebar-slim", "1");
287
+ E(() => {
288
+ window.document.body.offsetWidth < 1024 && window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1");
289
+ });
288
290
  const n = I(window.localStorage.getItem("sidebar-slim") === "1");
289
- E(n, (t) => {
291
+ W(n, (t) => {
290
292
  window.localStorage.setItem("sidebar-slim", String(t ? 1 : 0));
291
293
  });
292
294
  const f = () => {
@@ -301,25 +303,25 @@ const B1 = { class: "h-full relative" }, H1 = { class: "header h-[56px] flex ite
301
303
  };
302
304
  });
303
305
  return (t, C) => {
304
- var b, g, k, $, S, O, M, j, V, B, H, N, q, z;
306
+ var b, g, k, $, S, M, O, j, V, B, H, N, q, z;
305
307
  const D = A("RouterLink");
306
- return s(), o("div", B1, [
307
- e("div", H1, [
308
- e("div", N1, [
308
+ return s(), o("div", H1, [
309
+ e("div", N1, [
310
+ e("div", q1, [
309
311
  e("button", {
310
312
  onClick: C[0] || (C[0] = (r) => n.value = !n.value),
311
313
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"
312
314
  }, [
313
- u(L(j1), { class: "w-[24px] h-[24px]" })
315
+ u(L(V1), { class: "w-[24px] h-[24px]" })
314
316
  ])
315
317
  ]),
316
- e("div", q1, [
318
+ e("div", z1, [
317
319
  t.logoSrc != null ? (s(), o("img", {
318
320
  key: 0,
319
321
  src: t.logoSrc,
320
322
  class: "w-8 h-8 mx-auto",
321
323
  alt: "logo"
322
- }, null, 8, z1)) : a("", !0)
324
+ }, null, 8, I1)) : a("", !0)
323
325
  ]),
324
326
  t.app != null ? (s(), h(D, {
325
327
  key: 0,
@@ -327,36 +329,36 @@ const B1 = { class: "h-full relative" }, H1 = { class: "header h-[56px] flex ite
327
329
  class: "pl-2 max-w-xs"
328
330
  }, {
329
331
  default: R(() => [
330
- e("div", I1, c(t.app.name), 1),
331
- e("div", Z1, c(t.app.workspace), 1)
332
+ e("div", Z1, c(t.app.name), 1),
333
+ e("div", A1, c(t.app.workspace), 1)
332
334
  ]),
333
335
  _: 1
334
336
  })) : a("", !0),
335
- e("div", A1, [
336
- e("div", R1, [
337
- e("div", U1, [
337
+ e("div", R1, [
338
+ e("div", U1, [
339
+ e("div", F1, [
338
340
  Z(t.$slots, "before-header-menu"),
339
- t.helpUrl ? (s(), o("div", F1, [
341
+ t.helpUrl ? (s(), o("div", P1, [
340
342
  e("a", {
341
343
  href: t.helpUrl,
342
344
  target: "_blank",
343
345
  title: "Help",
344
346
  class: "block btn-touch text-gray-dark"
345
347
  }, [
346
- u(L(V1), { class: "w-6 h-6 text-gray-600" })
347
- ], 8, P1)
348
+ u(L(B1), { class: "w-6 h-6 text-gray-600" })
349
+ ], 8, T1)
348
350
  ])) : a("", !0),
349
- (b = t.app) != null && b.apps ? (s(), h(K, {
351
+ (b = t.app) != null && b.apps ? (s(), h(Q, {
350
352
  key: 1,
351
353
  workspace: p.value,
352
354
  apps: ((g = t.app) == null ? void 0 : g.apps) || [],
353
355
  "change-label": ((k = t.labels) == null ? void 0 : k.change) || "Change",
354
356
  "apps-title": (($ = t.labels) == null ? void 0 : $.apps) || "Apps",
355
357
  "on-app": (S = t.handlers) == null ? void 0 : S.onApp,
356
- "on-change": (O = t.handlers) == null ? void 0 : O.onChange,
357
- onOpen: (M = t.handlers) == null ? void 0 : M.onBrowse
358
+ "on-change": (M = t.handlers) == null ? void 0 : M.onChange,
359
+ onOpen: (O = t.handlers) == null ? void 0 : O.onBrowse
358
360
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : a("", !0),
359
- u(Q, {
361
+ u(X, {
360
362
  user: t.user,
361
363
  "account-label": ((j = t.labels) == null ? void 0 : j.account) || "Account",
362
364
  "logout-label": ((V = t.labels) == null ? void 0 : V.logout) || "Logout",
@@ -372,7 +374,7 @@ const B1 = { class: "h-full relative" }, H1 = { class: "header h-[56px] flex ite
372
374
  style: { height: "calc(100% - 56px)" },
373
375
  onClick: f
374
376
  }, [
375
- u(M1, {
377
+ u(j1, {
376
378
  slim: n.value,
377
379
  items: t.sidebarItems,
378
380
  "with-news": t.news != null,
@@ -381,76 +383,76 @@ const B1 = { class: "h-full relative" }, H1 = { class: "header h-[56px] flex ite
381
383
  onShowNews: y
382
384
  }, null, 8, ["slim", "items", "with-news", "support", "news"])
383
385
  ], 2),
384
- e("div", T1, [
386
+ e("div", D1, [
385
387
  e("div", {
386
388
  class: w(["content transition-all pt-[56px] h-full overflow-auto", [n.value ? "pl-0 lg:pl-[60px]" : "pl-0 lg:pl-60"]])
387
389
  }, [
388
390
  Z(t.$slots, "default")
389
391
  ], 2)
390
392
  ]),
391
- t.news ? (s(), o("div", D1, [
393
+ t.news ? (s(), o("div", E1, [
392
394
  l.value ? (s(), o("div", {
393
395
  key: 0,
394
396
  class: "fixed top-0 left-0 h-screen w-screen bg-gray-100 bg-opacity-40 z-50",
395
- onClick: C[1] || (C[1] = W((r) => l.value = !1, ["self"]))
397
+ onClick: C[1] || (C[1] = G((r) => l.value = !1, ["self"]))
396
398
  })) : a("", !0),
397
399
  e("div", {
398
400
  class: w(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white", [l.value ? "w-96" : "w-0"]])
399
401
  }, [
400
- l.value ? (s(), o("div", E1, [
401
- e("div", W1, [
402
- e("div", G1, [
402
+ l.value ? (s(), o("div", W1, [
403
+ e("div", G1, [
404
+ e("div", J1, [
403
405
  u(T, { class: "w-10 h-10" }),
404
- J1,
406
+ K1,
405
407
  e("div", null, [
406
- u(X, {
408
+ u(Y, {
407
409
  variant: "touch",
408
- icon: L(J),
410
+ icon: L(K),
409
411
  onClick: C[2] || (C[2] = (r) => l.value = !1)
410
412
  }, null, 8, ["icon"])
411
413
  ])
412
414
  ]),
413
- e("div", K1, [
414
- t.news.isLoading && ((N = t.news.items) == null ? void 0 : N.length) === 0 ? (s(), o("div", Q1, [
415
- u(Y, { class: "w-6 h-6 text-gray-600 mx-auto" })
416
- ])) : ((q = t.news.items) == null ? void 0 : q.length) === 0 ? (s(), o("div", X1, [
417
- e("div", Y1, c(t.news.emptyText), 1)
418
- ])) : ((z = t.news.items) == null ? void 0 : z.length) > 0 ? (s(), o("div", e9, [
415
+ e("div", Q1, [
416
+ t.news.isLoading && ((N = t.news.items) == null ? void 0 : N.length) === 0 ? (s(), o("div", X1, [
417
+ u(e1, { class: "w-6 h-6 text-gray-600 mx-auto" })
418
+ ])) : ((q = t.news.items) == null ? void 0 : q.length) === 0 ? (s(), o("div", Y1, [
419
+ e("div", e9, c(t.news.emptyText), 1)
420
+ ])) : ((z = t.news.items) == null ? void 0 : z.length) > 0 ? (s(), o("div", t9, [
419
421
  (s(!0), o(U, null, F(t.news.items, (r) => (s(), o("div", {
420
422
  key: r.id,
421
423
  class: "p-3"
422
424
  }, [
423
- e("div", t9, [
425
+ e("div", s9, [
424
426
  e("div", null, [
425
- r.type ? (s(), o("div", s9, [
426
- r.type === 10 ? (s(), o("span", o9, "update")) : r.type === 11 ? (s(), o("span", l9, "warning")) : r.type === 12 ? (s(), o("span", n9, "notice")) : r.type === 13 ? (s(), o("span", r9, "ads")) : a("", !0)
427
+ r.type ? (s(), o("div", o9, [
428
+ r.type === 10 ? (s(), o("span", l9, "update")) : r.type === 11 ? (s(), o("span", n9, "warning")) : r.type === 12 ? (s(), o("span", r9, "notice")) : r.type === 13 ? (s(), o("span", a9, "ads")) : a("", !0)
427
429
  ])) : a("", !0),
428
- e("div", a9, c(r.title), 1),
429
- e("div", i9, c(r.summary), 1)
430
+ e("div", i9, c(r.title), 1),
431
+ e("div", c9, c(r.summary), 1)
430
432
  ]),
431
- r.image_url ? (s(), o("div", c9, [
433
+ r.image_url ? (s(), o("div", d9, [
432
434
  e("img", {
433
435
  src: r.image_url,
434
436
  alt: "",
435
437
  class: "w-full rounded-md"
436
- }, null, 8, d9)
438
+ }, null, 8, C9)
437
439
  ])) : a("", !0),
438
- e("div", C9, c(r.body), 1),
439
- r.video_url ? (s(), o("div", p9, [
440
+ e("div", p9, c(r.body), 1),
441
+ r.video_url ? (s(), o("div", u9, [
440
442
  e("a", {
441
443
  href: r.video_url,
442
444
  target: "_blank",
443
445
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
444
- }, c(t.news.openVideoText), 9, u9)
446
+ }, c(t.news.openVideoText), 9, h9)
445
447
  ])) : a("", !0),
446
- e("div", h9, [
447
- e("span", m9, c(r.published), 1),
448
+ e("div", m9, [
449
+ e("span", w9, c(r.published), 1),
448
450
  r.post_url ? (s(), o("a", {
449
451
  key: 0,
450
452
  href: r.post_url,
451
453
  target: "_blank",
452
454
  class: "text-blue-600 hover:text-blue-700 block"
453
- }, c(t.news.moreText), 9, w9)) : a("", !0)
455
+ }, c(t.news.moreText), 9, f9)) : a("", !0)
454
456
  ])
455
457
  ])
456
458
  ]))), 128))
@@ -465,6 +467,6 @@ const B1 = { class: "h-full relative" }, H1 = { class: "header h-[56px] flex ite
465
467
  }
466
468
  });
467
469
  export {
468
- b9 as OneMainLayout,
469
- M1 as OneSidebar
470
+ g9 as OneMainLayout,
471
+ j1 as OneSidebar
470
472
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneb/ui-vue",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),m=require("./_plugin-vue_export-helper-f246444f.cjs");const b={},g={class:"spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{animation:"one-sp-ico-rot 2.7s linear infinite"}},h=e.createElementVNode("circle",{style:{"stroke-linecap":"round",animation:"one-sp-ico-dash 1.7s ease-in-out infinite"},class:"opacity-75",cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor","stroke-width":"2"},null,-1),f=[h];function y(o,n){return e.openBlock(),e.createElementBlock("svg",g,f)}const a=m._export_sfc(b,[["render",y]]),v={variant:{type:String,default:"primary"},size:{type:String,default:"md"},label:{type:String},icon:{type:[Function,Object]},isLoading:{type:Boolean},isSubmit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1},iconClass:{type:[String,Array]}},w=["relative inline-flex","border","items-center justify-center","font-medium whitespace-nowrap","disabled:opacity-50 disabled:cursor-default","focus:outline-none focus:ring-2 focus:ring-offset-2","transition-colors duration-200"],_={sm:["px-2 py-1 text-sm"],md:["px-3 py-2"],lg:["px-4 py-3"]},x={primary:["rounded-md border-transparent bg-primary-base disabled:bg-primary-hover text-sm text-white hover:bg-primary-hover focus:ring-primary-glow"],secondary:["rounded-md border-primary-stroke bg-primary-body disabled:bg-primary-body-hover text-black text-sm hover:bg-primary-body-hover focus:ring-tertiary-glow"],info:["rounded-md border-transparent bg-info-base disabled:bg-info-hover text-white text-sm hover:bg-info-hover focus:ring-info-glow"],success:["rounded-md border-transparent bg-success-base disabled:bg-success-hover text-white text-sm hover:bg-success-hover focus:ring-success-glow"],warning:["rounded-md border-transparent bg-warning-base disabled:bg-warning-hover text-white text-sm hover:bg-warning-hover focus:ring-warning-glow"],danger:["rounded-md border-transparent bg-danger-base disabled:bg-danger-hover text-white text-sm hover:bg-danger-hover focus:ring-danger-glow"],touch:["rounded-full border-transparent text-black hover:bg-primary-body-hover hover:shadow p-3 text-sm focus:ring-tertiary-glow"],link:["rounded-md border-transparent items-center text-info-base hover:text-info-hover text-sm"],none:["rounded-md border-transparent text-gray-500"]},k=(o="primary",n="md")=>{const s=[];return s.push(...w),s.push(...x[o]??[]),o!=="touch"&&s.push(..._[n]??[]),s},C=["disabled","title","type","onClick"],B=e.defineComponent({__name:"OneButton",props:v,emits:["click"],setup(o,{emit:n}){const s=o,l=()=>{n("click")},r=e.computed(()=>s.icon),c=e.computed(()=>{const t=k(s.variant,s.size);return s.variant==="touch"&&s.active&&t.push("bg-primary-body-active"),t}),d=e.computed(()=>s.disabled||s.isLoading),u=e.computed(()=>s.label&&s.label.length>0&&s.variant!=="touch"),p=e.computed(()=>{const t=["inline-block text-ellipsis overflow-hidden"];return(s.icon!=null||s.isLoading)&&t.push("ml-2"),t}),i=e.computed(()=>{const t=[];return s.size==="sm"?t.push("w-3 h-3"):s.size==="lg"?t.push("w-5 h-5"):t.push("w-4 h-4"),typeof s.iconClass=="string"?t.push(s.iconClass):s.iconClass instanceof Array&&t.push(...s.iconClass),t});return(t,L)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(c.value),disabled:d.value,title:t.label,type:t.isSubmit?"submit":"button",onClick:e.withModifiers(l,["stop"])},[t.isLoading?(e.openBlock(),e.createBlock(a,{key:0,class:e.normalizeClass(i.value)},null,8,["class"])):r.value!=null?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:1,class:e.normalizeClass(i.value)},null,8,["class"])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(p.value)},e.toDisplayString(t.label),3)):e.createCommentVNode("",!0)],10,C))}});exports.SpinnerIcon=a;exports._sfc_main=B;