@oneb/ui-vue 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +33 -37
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +96 -96
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dropdown/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("../OneHelpMenu-90df8a83.cjs"),c=require("vue"),Pt=require("../_plugin-vue_export-helper-f246444f.cjs"),wt=require("../common/index.cjs");require("../XMarkIcon-f94baa4c.cjs");require("../index-9f8735d9.cjs");const st=Math.min,P=Math.max,K=Math.round,G=Math.floor,C=t=>({x:t,y:t}),Mt={left:"right",right:"left",bottom:"top",top:"bottom"},$t={start:"end",end:"start"};function ct(t,e){return typeof t=="function"?t(e):t}function $(t){return t.split("-")[0]}function Z(t){return t.split("-")[1]}function zt(t){return t==="x"?"y":"x"}function Ct(t){return t==="y"?"height":"width"}function j(t){return["top","bottom"].includes($(t))?"y":"x"}function Rt(t){return zt(j(t))}function Wt(t,e,o){o===void 0&&(o=!1);const n=Z(t),i=Rt(t),r=Ct(i);let s=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=J(s)),[s,J(s)]}function Ht(t){const e=J(t);return[rt(t),e,rt(e)]}function rt(t){return t.replace(/start|end/g,e=>$t[e])}function qt(t,e,o){const n=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?i:n:e?n:i;case"left":case"right":return e?r:s;default:return[]}}function It(t,e,o,n){const i=Z(t);let r=qt($(t),o==="start",n);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(rt)))),r}function J(t){return t.replace(/left|right|bottom|top/g,e=>Mt[e])}function jt(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ut(t){return typeof t!="number"?jt(t):{top:t,right:t,bottom:t,left:t}}function Q(t){const{x:e,y:o,width:n,height:i}=t;return{width:n,height:i,top:o,left:e,right:e+n,bottom:o+i,x:e,y:o}}function yt(t,e,o){let{reference:n,floating:i}=t;const r=j(e),s=Rt(e),l=Ct(s),a=$(e),f=r==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2;let p;switch(a){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}switch(Z(e)){case"start":p[s]-=m*(o&&f?-1:1);break;case"end":p[s]+=m*(o&&f?-1:1);break}return p}const Yt=async(t,e,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:r=[],platform:s}=o,l=r.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=yt(f,n,a),m=n,p={},h=0;for(let w=0;w<l.length;w++){const{name:y,fn:g}=l[w],{x:v,y:b,data:E,reset:x}=await g({x:u,y:d,initialPlacement:n,placement:m,strategy:i,middlewareData:p,rects:f,platform:s,elements:{reference:t,floating:e}});u=v??u,d=b??d,p={...p,[y]:{...p[y],...E}},x&&h<=50&&(h++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(f=x.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):x.rects),{x:u,y:d}=yt(f,m,a)),w=-1)}return{x:u,y:d,placement:m,strategy:i,middlewareData:p}};async function Xt(t,e){var o;e===void 0&&(e={});const{x:n,y:i,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=ct(e,t),h=Ut(p),y=l[m?d==="floating"?"reference":"floating":d],g=Q(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(y)))==null||o?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:a})),v=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),E=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},x=Q(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:a}):v);return{top:(g.top-x.top+h.top)/E.y,bottom:(x.bottom-g.bottom+h.bottom)/E.y,left:(g.left-x.left+h.left)/E.x,right:(x.right-g.right+h.right)/E.x}}const Gt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:f}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:w=!0,...y}=ct(t,e);if((o=r.arrow)!=null&&o.alignmentOffset)return{};const g=$(i),v=j(l),b=$(l)===l,E=await(a.isRTL==null?void 0:a.isRTL(f.floating)),x=m||(b||!w?[J(l)]:Ht(l)),H=h!=="none";!m&&H&&x.push(...It(l,w,h,E));const B=[l,...x],ot=await Xt(e,y),X=[];let q=((n=r.flip)==null?void 0:n.overflows)||[];if(u&&X.push(ot[g]),d){const N=Wt(i,s,E);X.push(ot[N[0]],ot[N[1]])}if(q=[...q,{placement:i,overflows:X}],!X.every(N=>N<=0)){var pt,mt;const N=(((pt=r.flip)==null?void 0:pt.index)||0)+1,gt=B[N];if(gt)return{data:{index:N,overflows:q},reset:{placement:gt}};let I=(mt=q.filter(F=>F.overflows[0]<=0).sort((F,S)=>F.overflows[1]-S.overflows[1])[0])==null?void 0:mt.placement;if(!I)switch(p){case"bestFit":{var ht;const F=(ht=q.filter(S=>{if(H){const V=j(S.placement);return V===v||V==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(V=>V>0).reduce((V,Ft)=>V+Ft,0)]).sort((S,V)=>S[1]-V[1])[0])==null?void 0:ht[0];F&&(I=F);break}case"initialPlacement":I=l;break}if(i!==I)return{reset:{placement:I}}}return{}}}};async function Kt(t,e){const{placement:o,platform:n,elements:i}=t,r=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=$(o),l=Z(o),a=j(o)==="y",f=["left","top"].includes(s)?-1:1,u=r&&a?-1:1,d=ct(e,t);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),a?{x:p*u,y:m*f}:{x:m*f,y:p*u}}const Jt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:i,y:r,placement:s,middlewareData:l}=e,a=await Kt(e,t);return s===((o=l.offset)==null?void 0:o.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:s}}}}};function tt(){return typeof window<"u"}function W(t){return _t(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function _(t){var e;return(e=(_t(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function _t(t){return tt()?t instanceof Node||t instanceof k(t).Node:!1}function A(t){return tt()?t instanceof Element||t instanceof k(t).Element:!1}function R(t){return tt()?t instanceof HTMLElement||t instanceof k(t).HTMLElement:!1}function xt(t){return!tt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof k(t).ShadowRoot}function Y(t){const{overflow:e,overflowX:o,overflowY:n,display:i}=O(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(i)}function Qt(t){return["table","td","th"].includes(W(t))}function et(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function at(t){const e=ft(),o=A(t)?O(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Zt(t){let e=L(t);for(;R(e)&&!z(e);){if(at(e))return e;if(et(e))return null;e=L(e)}return null}function ft(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function z(t){return["html","body","#document"].includes(W(t))}function O(t){return k(t).getComputedStyle(t)}function nt(t){return A(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function L(t){if(W(t)==="html")return t;const e=t.assignedSlot||t.parentNode||xt(t)&&t.host||_(t);return xt(e)?e.host:e}function Dt(t){const e=L(t);return z(e)?t.ownerDocument?t.ownerDocument.body:t.body:R(e)&&Y(e)?e:Dt(e)}function U(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);const i=Dt(t),r=i===((n=t.ownerDocument)==null?void 0:n.body),s=k(i);if(r){const l=lt(s);return e.concat(s,s.visualViewport||[],Y(i)?i:[],l&&o?U(l):[])}return e.concat(i,U(i,[],o))}function lt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function St(t){const e=O(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=R(t),r=i?t.offsetWidth:o,s=i?t.offsetHeight:n,l=K(o)!==r||K(n)!==s;return l&&(o=r,n=s),{width:o,height:n,$:l}}function ut(t){return A(t)?t:t.contextElement}function M(t){const e=ut(t);if(!R(e))return C(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=St(e);let s=(r?K(o.width):o.width)/n,l=(r?K(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const te=C(0);function Vt(t){const e=k(t);return!ft()||!e.visualViewport?te:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ee(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==k(t)?!1:e}function T(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),r=ut(t);let s=C(1);e&&(n?A(n)&&(s=M(n)):s=M(t));const l=ee(r,o,n)?Vt(r):C(0);let a=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r){const m=k(r),p=n&&A(n)?k(n):n;let h=m,w=lt(h);for(;w&&n&&p!==h;){const y=M(w),g=w.getBoundingClientRect(),v=O(w),b=g.left+(w.clientLeft+parseFloat(v.paddingLeft))*y.x,E=g.top+(w.clientTop+parseFloat(v.paddingTop))*y.y;a*=y.x,f*=y.y,u*=y.x,d*=y.y,a+=b,f+=E,h=k(w),w=lt(h)}}return Q({width:u,height:d,x:a,y:f})}function dt(t,e){const o=nt(t).scrollLeft;return e?e.left+o:T(_(t)).left+o}function Lt(t,e,o){o===void 0&&(o=!1);const n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(o?0:dt(t,n)),r=n.top+e.scrollTop;return{x:i,y:r}}function ne(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const r=i==="fixed",s=_(n),l=e?et(e.floating):!1;if(n===s||l&&r)return o;let a={scrollLeft:0,scrollTop:0},f=C(1);const u=C(0),d=R(n);if((d||!d&&!r)&&((W(n)!=="body"||Y(s))&&(a=nt(n)),R(n))){const p=T(n);f=M(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const m=s&&!d&&!r?Lt(s,a,!0):C(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-a.scrollLeft*f.x+u.x+m.x,y:o.y*f.y-a.scrollTop*f.y+u.y+m.y}}function oe(t){return Array.from(t.getClientRects())}function ie(t){const e=_(t),o=nt(t),n=t.ownerDocument.body,i=P(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=P(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+dt(t);const l=-o.scrollTop;return O(n).direction==="rtl"&&(s+=P(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:s,y:l}}function se(t,e){const o=k(t),n=_(t),i=o.visualViewport;let r=n.clientWidth,s=n.clientHeight,l=0,a=0;if(i){r=i.width,s=i.height;const f=ft();(!f||f&&e==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:r,height:s,x:l,y:a}}function re(t,e){const o=T(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=R(t)?M(t):C(1),s=t.clientWidth*r.x,l=t.clientHeight*r.y,a=i*r.x,f=n*r.y;return{width:s,height:l,x:a,y:f}}function vt(t,e,o){let n;if(e==="viewport")n=se(t,o);else if(e==="document")n=ie(_(t));else if(A(e))n=re(e,o);else{const i=Vt(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Q(n)}function Nt(t,e){const o=L(t);return o===e||!A(o)||z(o)?!1:O(o).position==="fixed"||Nt(o,e)}function le(t,e){const o=e.get(t);if(o)return o;let n=U(t,[],!1).filter(l=>A(l)&&W(l)!=="body"),i=null;const r=O(t).position==="fixed";let s=r?L(t):t;for(;A(s)&&!z(s);){const l=O(s),a=at(s);!a&&l.position==="fixed"&&(i=null),(r?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Y(s)&&!a&&Nt(t,s))?n=n.filter(u=>u!==s):i=l,s=L(s)}return e.set(t,n),n}function ce(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const s=[...o==="clippingAncestors"?et(e)?[]:le(e,this._c):[].concat(o),n],l=s[0],a=s.reduce((f,u)=>{const d=vt(e,u,i);return f.top=P(d.top,f.top),f.right=st(d.right,f.right),f.bottom=st(d.bottom,f.bottom),f.left=P(d.left,f.left),f},vt(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ae(t){const{width:e,height:o}=St(t);return{width:e,height:o}}function fe(t,e,o){const n=R(e),i=_(e),r=o==="fixed",s=T(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=C(0);if(n||!n&&!r)if((W(e)!=="body"||Y(i))&&(l=nt(e)),n){const m=T(e,!0,r,e);a.x=m.x+e.clientLeft,a.y=m.y+e.clientTop}else i&&(a.x=dt(i));const f=i&&!n&&!r?Lt(i,l):C(0),u=s.left+l.scrollLeft-a.x-f.x,d=s.top+l.scrollTop-a.y-f.y;return{x:u,y:d,width:s.width,height:s.height}}function it(t){return O(t).position==="static"}function bt(t,e){if(!R(t)||O(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return _(t)===o&&(o=o.ownerDocument.body),o}function Tt(t,e){const o=k(t);if(et(t))return o;if(!R(t)){let i=L(t);for(;i&&!z(i);){if(A(i)&&!it(i))return i;i=L(i)}return o}let n=bt(t,e);for(;n&&Qt(n)&&it(n);)n=bt(n,e);return n&&z(n)&&it(n)&&!at(n)?o:n||Zt(t)||o}const ue=async function(t){const e=this.getOffsetParent||Tt,o=this.getDimensions,n=await o(t.floating);return{reference:fe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function de(t){return O(t).direction==="rtl"}const pe={convertOffsetParentRelativeRectToViewportRelativeRect:ne,getDocumentElement:_,getClippingRect:ce,getOffsetParent:Tt,getElementRects:ue,getClientRects:oe,getDimensions:ae,getScale:M,isElement:A,isRTL:de};function Bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function me(t,e){let o=null,n;const i=_(t);function r(){var l;clearTimeout(n),(l=o)==null||l.disconnect(),o=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),r();const f=t.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=f;if(l||e(),!m||!p)return;const h=G(d),w=G(i.clientWidth-(u+m)),y=G(i.clientHeight-(d+p)),g=G(u),b={rootMargin:-h+"px "+-w+"px "+-y+"px "+-g+"px",threshold:P(0,st(1,a))||1};let E=!0;function x(H){const B=H[0].intersectionRatio;if(B!==a){if(!E)return s();B?s(!1,B):n=setTimeout(()=>{s(!1,1e-7)},1e3)}B===1&&!Bt(f,t.getBoundingClientRect())&&s(),E=!1}try{o=new IntersectionObserver(x,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(x,b)}o.observe(t)}return s(!0),r}function he(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,f=ut(t),u=i||r?[...f?U(f):[],...U(e)]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),r&&g.addEventListener("resize",o)});const d=f&&l?me(f,o):null;let m=-1,p=null;s&&(p=new ResizeObserver(g=>{let[v]=g;v&&v.target===f&&p&&(p.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(e)})),o()}),f&&!a&&p.observe(f),p.observe(e));let h,w=a?T(t):null;a&&y();function y(){const g=T(t);w&&!Bt(w,g)&&o(),w=g,h=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(v=>{i&&v.removeEventListener("scroll",o),r&&v.removeEventListener("resize",o)}),d==null||d(),(g=p)==null||g.disconnect(),p=null,a&&cancelAnimationFrame(h)}}const Et=Jt,kt=Gt,At=(t,e,o)=>{const n=new Map,i={platform:pe,...o},r={...i.platform,_c:n};return Yt(t,e,{...i,platform:r})},ge=["data-opened"],we={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},ye=c.defineComponent({__name:"OneDropdownAuto",props:D.dropdownProps,emits:["open","close"],setup(t,{emit:e}){const o=t,n=c.ref(!1),i=c.ref(null),r=c.ref(null);let s=null;c.watch(n,u=>{u&&r.value&&i.value?(At(r.value,i.value,{placement:o.stick?o.stick:"bottom-start",middleware:[Et(5),kt()]}).then(({x:d,y:m})=>{Object.assign(i.value.style,{left:`${d}px`,top:`${m}px`})}),s=he(r.value,i.value,()=>{At(r.value,i.value,{placement:o.stick?o.stick:"bottom-start",middleware:[Et(4),kt()]}).then(({x:d,y:m})=>{Object.assign(i.value.style,{left:`${d}px`,top:`${m}px`})})})):s&&(s(),s=null)}),c.onBeforeUnmount(()=>{s&&s()});const l=e,a=()=>{n.value=!n.value,n.value?l("open"):l("close")};c.provide("OneDropdown",{onToggle:a});const f=c.computed(()=>["absolute z-10 w-fit rounded-md bg-white","py-1 shadow-lg ring-black ring-opacity-5 focus:outline-none","overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"]);return(u,d)=>(c.openBlock(),c.createElementBlock("div",{class:"relative inline-block","data-opened":n.value},[c.createElementVNode("div",{ref_key:"buttonRef",ref:r},[c.renderSlot(u.$slots,"button",c.normalizeProps(c.guardReactiveProps({onToggle:a,isExpanded:n.value})))],512),n.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10",onClick:a})):c.createCommentVNode("",!0),c.withDirectives(c.createElementVNode("div",{ref_key:"menuRef",ref:i,class:c.normalizeClass(["menu",f.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1",style:{display:"none"}},[u.title?(c.openBlock(),c.createElementBlock("div",we,c.toDisplayString(u.title),1)):c.createCommentVNode("",!0),c.renderSlot(u.$slots,"menu",c.normalizeProps(c.guardReactiveProps({onToggle:a})))],2),[[c.vShow,n.value]])],8,ge))}}),xe={},ve={class:"border-t border-secondary-stroke my-1"};function be(t,e){return c.openBlock(),c.createElementBlock("div",ve)}const Ee=Pt._export_sfc(xe,[["render",be]]),ke=["onClick"],Ae={class:"grid"},Oe={class:"font-semibold px-3"},Ce={class:"rounded-lg m-3 border"},Re={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},_e={class:"flex-shrink-0"},De={class:"w-full text-left"},Se={class:"flex-shrink-0"},Ve={class:"px-3 py-2"},Le={class:"text-secondary-content text-left pb-1 text-sm uppercase"},Ne={key:0,class:"space-y-2"},Te=["onClick"],Be={class:"pl-2"},Fe={class:"text-sm mt-1"},Pe={class:"text-xs mt-1"},Ot=3,Me=c.defineComponent({__name:"OneBrowserMenuGrid",props:D.browserMenuProps,setup(t){const e=t,o=()=>{typeof e.onChange=="function"&&e.onChange()},n=c.ref(!1),i=c.computed(()=>e.apps?n.value?e.apps:e.apps.slice(0,Ot):[]),r=()=>{n.value=!n.value},s=l=>{typeof e.onApp=="function"&&e.onApp(l)};return(l,a)=>(c.openBlock(),c.createBlock(D._sfc_main$1,{stick:"right"},{button:c.withCtx(({onToggle:f,isExpanded:u})=>[c.createElementVNode("button",{onClick:f,class:c.normalizeClass(["p-1 rounded-md hover:bg-secondary-10",[u?"bg-secondary-25":""]])},[c.createVNode(c.unref(D.render$4),{class:"text-secondary-base",style:c.normalizeStyle(`width: ${l.iconSize}px; height: ${l.iconSize}px`)},null,8,["style"])],10,ke)]),menu:c.withCtx(()=>{var f,u,d,m;return[c.createElementVNode("div",Ae,[c.createElementVNode("div",Oe,c.toDisplayString((f=l.workspace)==null?void 0:f.title),1),c.createElementVNode("div",Ce,[c.createElementVNode("div",Re,[c.createElementVNode("div",_e,[c.createVNode(wt.OneAvatar,{text:((u=l.workspace)==null?void 0:u.name)||"",src:(d=l.workspace)==null?void 0:d.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),c.createElementVNode("div",De,c.toDisplayString((m=l.workspace)==null?void 0:m.name),1),c.createElementVNode("div",Se,[c.createElementVNode("button",{class:"text-sm border border-secondary-stroke rounded px-2 py-0.5 text-secondary-content hover:text-primary-content",onClick:o},c.toDisplayString(l.changeLabel),1)])]),a[0]||(a[0]=c.createElementVNode("hr",null,null,-1)),a[1]||(a[1]=c.createElementVNode("div",{class:"text-center py-2",style:{"font-size":"10px"}},"Керувати робочими просторами",-1))])]),c.createElementVNode("div",Ve,[c.createElementVNode("div",Le,c.toDisplayString(l.appsTitle),1),c.createElementVNode("div",null,[l.apps&&l.apps.length?(c.openBlock(),c.createElementBlock("div",Ne,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.value,p=>(c.openBlock(),c.createElementBlock("div",{key:p.id,onClick:h=>s(p),class:"flex items-center rounded-lg hover:bg-secondary-10 border p-2 bg-[#FAFAFA] cursor-pointer"},[c.createVNode(wt.OneAvatar,{text:p.name,src:p.photo_url,size:44,rounded:!1},null,8,["text","src"]),c.createElementVNode("div",Be,[c.createElementVNode("p",Fe,c.toDisplayString(p.name),1),c.createElementVNode("p",Pe,c.toDisplayString(p.short),1)])],8,Te))),128))])):c.createCommentVNode("",!0),l.apps&&l.apps.length>Ot?(c.openBlock(),c.createElementBlock("button",{key:1,onClick:r,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs"},c.toDisplayString(n.value?"Приховати":"Дивитися всі"),1)):c.createCommentVNode("",!0)])])]}),_:1}))}});exports.OneBrowserMenu=D.OneBrowserMenu;exports.OneDropdown=D._sfc_main$1;exports.OneDropdownItem=D._sfc_main$2;exports.OneHelpMenu=D.OneHelpMenu;exports.OneUserMenu=D._sfc_main;exports.OneBrowserMenuGrid=Me;exports.OneDropdownAuto=ye;exports.OneDropdownDivider=Ee;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("../OneHelpMenu-90df8a83.cjs"),c=require("vue"),Pt=require("../_plugin-vue_export-helper-f246444f.cjs"),wt=require("../common/index.cjs");require("../XMarkIcon-f94baa4c.cjs");require("../index-9f8735d9.cjs");const st=Math.min,P=Math.max,K=Math.round,G=Math.floor,C=t=>({x:t,y:t}),Mt={left:"right",right:"left",bottom:"top",top:"bottom"},$t={start:"end",end:"start"};function ct(t,e){return typeof t=="function"?t(e):t}function $(t){return t.split("-")[0]}function Z(t){return t.split("-")[1]}function zt(t){return t==="x"?"y":"x"}function Ct(t){return t==="y"?"height":"width"}function j(t){return["top","bottom"].includes($(t))?"y":"x"}function Rt(t){return zt(j(t))}function Wt(t,e,o){o===void 0&&(o=!1);const n=Z(t),i=Rt(t),r=Ct(i);let s=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=J(s)),[s,J(s)]}function Ht(t){const e=J(t);return[rt(t),e,rt(e)]}function rt(t){return t.replace(/start|end/g,e=>$t[e])}function qt(t,e,o){const n=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?i:n:e?n:i;case"left":case"right":return e?r:s;default:return[]}}function It(t,e,o,n){const i=Z(t);let r=qt($(t),o==="start",n);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(rt)))),r}function J(t){return t.replace(/left|right|bottom|top/g,e=>Mt[e])}function jt(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ut(t){return typeof t!="number"?jt(t):{top:t,right:t,bottom:t,left:t}}function Q(t){const{x:e,y:o,width:n,height:i}=t;return{width:n,height:i,top:o,left:e,right:e+n,bottom:o+i,x:e,y:o}}function yt(t,e,o){let{reference:n,floating:i}=t;const r=j(e),s=Rt(e),l=Ct(s),a=$(e),f=r==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2;let p;switch(a){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}switch(Z(e)){case"start":p[s]-=m*(o&&f?-1:1);break;case"end":p[s]+=m*(o&&f?-1:1);break}return p}const Yt=async(t,e,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:r=[],platform:s}=o,l=r.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=yt(f,n,a),m=n,p={},h=0;for(let w=0;w<l.length;w++){const{name:y,fn:g}=l[w],{x:v,y:b,data:k,reset:x}=await g({x:u,y:d,initialPlacement:n,placement:m,strategy:i,middlewareData:p,rects:f,platform:s,elements:{reference:t,floating:e}});u=v??u,d=b??d,p={...p,[y]:{...p[y],...k}},x&&h<=50&&(h++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(f=x.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):x.rects),{x:u,y:d}=yt(f,m,a)),w=-1)}return{x:u,y:d,placement:m,strategy:i,middlewareData:p}};async function Xt(t,e){var o;e===void 0&&(e={});const{x:n,y:i,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=ct(e,t),h=Ut(p),y=l[m?d==="floating"?"reference":"floating":d],g=Q(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(y)))==null||o?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:a})),v=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),k=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},x=Q(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:a}):v);return{top:(g.top-x.top+h.top)/k.y,bottom:(x.bottom-g.bottom+h.bottom)/k.y,left:(g.left-x.left+h.left)/k.x,right:(x.right-g.right+h.right)/k.x}}const Gt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:f}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:w=!0,...y}=ct(t,e);if((o=r.arrow)!=null&&o.alignmentOffset)return{};const g=$(i),v=j(l),b=$(l)===l,k=await(a.isRTL==null?void 0:a.isRTL(f.floating)),x=m||(b||!w?[J(l)]:Ht(l)),H=h!=="none";!m&&H&&x.push(...It(l,w,h,k));const B=[l,...x],ot=await Xt(e,y),X=[];let q=((n=r.flip)==null?void 0:n.overflows)||[];if(u&&X.push(ot[g]),d){const V=Wt(i,s,k);X.push(ot[V[0]],ot[V[1]])}if(q=[...q,{placement:i,overflows:X}],!X.every(V=>V<=0)){var pt,mt;const V=(((pt=r.flip)==null?void 0:pt.index)||0)+1,gt=B[V];if(gt)return{data:{index:V,overflows:q},reset:{placement:gt}};let I=(mt=q.filter(F=>F.overflows[0]<=0).sort((F,S)=>F.overflows[1]-S.overflows[1])[0])==null?void 0:mt.placement;if(!I)switch(p){case"bestFit":{var ht;const F=(ht=q.filter(S=>{if(H){const L=j(S.placement);return L===v||L==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(L=>L>0).reduce((L,Ft)=>L+Ft,0)]).sort((S,L)=>S[1]-L[1])[0])==null?void 0:ht[0];F&&(I=F);break}case"initialPlacement":I=l;break}if(i!==I)return{reset:{placement:I}}}return{}}}};async function Kt(t,e){const{placement:o,platform:n,elements:i}=t,r=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=$(o),l=Z(o),a=j(o)==="y",f=["left","top"].includes(s)?-1:1,u=r&&a?-1:1,d=ct(e,t);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),a?{x:p*u,y:m*f}:{x:m*f,y:p*u}}const Jt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:i,y:r,placement:s,middlewareData:l}=e,a=await Kt(e,t);return s===((o=l.offset)==null?void 0:o.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:s}}}}};function tt(){return typeof window<"u"}function W(t){return _t(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function _(t){var e;return(e=(_t(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function _t(t){return tt()?t instanceof Node||t instanceof A(t).Node:!1}function E(t){return tt()?t instanceof Element||t instanceof A(t).Element:!1}function R(t){return tt()?t instanceof HTMLElement||t instanceof A(t).HTMLElement:!1}function xt(t){return!tt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof A(t).ShadowRoot}function Y(t){const{overflow:e,overflowX:o,overflowY:n,display:i}=O(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(i)}function Qt(t){return["table","td","th"].includes(W(t))}function et(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function at(t){const e=ft(),o=E(t)?O(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Zt(t){let e=T(t);for(;R(e)&&!z(e);){if(at(e))return e;if(et(e))return null;e=T(e)}return null}function ft(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function z(t){return["html","body","#document"].includes(W(t))}function O(t){return A(t).getComputedStyle(t)}function nt(t){return E(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function T(t){if(W(t)==="html")return t;const e=t.assignedSlot||t.parentNode||xt(t)&&t.host||_(t);return xt(e)?e.host:e}function Dt(t){const e=T(t);return z(e)?t.ownerDocument?t.ownerDocument.body:t.body:R(e)&&Y(e)?e:Dt(e)}function U(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);const i=Dt(t),r=i===((n=t.ownerDocument)==null?void 0:n.body),s=A(i);if(r){const l=lt(s);return e.concat(s,s.visualViewport||[],Y(i)?i:[],l&&o?U(l):[])}return e.concat(i,U(i,[],o))}function lt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function St(t){const e=O(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=R(t),r=i?t.offsetWidth:o,s=i?t.offsetHeight:n,l=K(o)!==r||K(n)!==s;return l&&(o=r,n=s),{width:o,height:n,$:l}}function ut(t){return E(t)?t:t.contextElement}function M(t){const e=ut(t);if(!R(e))return C(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=St(e);let s=(r?K(o.width):o.width)/n,l=(r?K(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const te=C(0);function Lt(t){const e=A(t);return!ft()||!e.visualViewport?te:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ee(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==A(t)?!1:e}function N(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),r=ut(t);let s=C(1);e&&(n?E(n)&&(s=M(n)):s=M(t));const l=ee(r,o,n)?Lt(r):C(0);let a=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r){const m=A(r),p=n&&E(n)?A(n):n;let h=m,w=lt(h);for(;w&&n&&p!==h;){const y=M(w),g=w.getBoundingClientRect(),v=O(w),b=g.left+(w.clientLeft+parseFloat(v.paddingLeft))*y.x,k=g.top+(w.clientTop+parseFloat(v.paddingTop))*y.y;a*=y.x,f*=y.y,u*=y.x,d*=y.y,a+=b,f+=k,h=A(w),w=lt(h)}}return Q({width:u,height:d,x:a,y:f})}function dt(t,e){const o=nt(t).scrollLeft;return e?e.left+o:N(_(t)).left+o}function Tt(t,e,o){o===void 0&&(o=!1);const n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(o?0:dt(t,n)),r=n.top+e.scrollTop;return{x:i,y:r}}function ne(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const r=i==="fixed",s=_(n),l=e?et(e.floating):!1;if(n===s||l&&r)return o;let a={scrollLeft:0,scrollTop:0},f=C(1);const u=C(0),d=R(n);if((d||!d&&!r)&&((W(n)!=="body"||Y(s))&&(a=nt(n)),R(n))){const p=N(n);f=M(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const m=s&&!d&&!r?Tt(s,a,!0):C(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-a.scrollLeft*f.x+u.x+m.x,y:o.y*f.y-a.scrollTop*f.y+u.y+m.y}}function oe(t){return Array.from(t.getClientRects())}function ie(t){const e=_(t),o=nt(t),n=t.ownerDocument.body,i=P(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=P(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+dt(t);const l=-o.scrollTop;return O(n).direction==="rtl"&&(s+=P(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:s,y:l}}function se(t,e){const o=A(t),n=_(t),i=o.visualViewport;let r=n.clientWidth,s=n.clientHeight,l=0,a=0;if(i){r=i.width,s=i.height;const f=ft();(!f||f&&e==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:r,height:s,x:l,y:a}}function re(t,e){const o=N(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=R(t)?M(t):C(1),s=t.clientWidth*r.x,l=t.clientHeight*r.y,a=i*r.x,f=n*r.y;return{width:s,height:l,x:a,y:f}}function vt(t,e,o){let n;if(e==="viewport")n=se(t,o);else if(e==="document")n=ie(_(t));else if(E(e))n=re(e,o);else{const i=Lt(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Q(n)}function Vt(t,e){const o=T(t);return o===e||!E(o)||z(o)?!1:O(o).position==="fixed"||Vt(o,e)}function le(t,e){const o=e.get(t);if(o)return o;let n=U(t,[],!1).filter(l=>E(l)&&W(l)!=="body"),i=null;const r=O(t).position==="fixed";let s=r?T(t):t;for(;E(s)&&!z(s);){const l=O(s),a=at(s);!a&&l.position==="fixed"&&(i=null),(r?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Y(s)&&!a&&Vt(t,s))?n=n.filter(u=>u!==s):i=l,s=T(s)}return e.set(t,n),n}function ce(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const s=[...o==="clippingAncestors"?et(e)?[]:le(e,this._c):[].concat(o),n],l=s[0],a=s.reduce((f,u)=>{const d=vt(e,u,i);return f.top=P(d.top,f.top),f.right=st(d.right,f.right),f.bottom=st(d.bottom,f.bottom),f.left=P(d.left,f.left),f},vt(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ae(t){const{width:e,height:o}=St(t);return{width:e,height:o}}function fe(t,e,o){const n=R(e),i=_(e),r=o==="fixed",s=N(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=C(0);if(n||!n&&!r)if((W(e)!=="body"||Y(i))&&(l=nt(e)),n){const m=N(e,!0,r,e);a.x=m.x+e.clientLeft,a.y=m.y+e.clientTop}else i&&(a.x=dt(i));const f=i&&!n&&!r?Tt(i,l):C(0),u=s.left+l.scrollLeft-a.x-f.x,d=s.top+l.scrollTop-a.y-f.y;return{x:u,y:d,width:s.width,height:s.height}}function it(t){return O(t).position==="static"}function bt(t,e){if(!R(t)||O(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return _(t)===o&&(o=o.ownerDocument.body),o}function Nt(t,e){const o=A(t);if(et(t))return o;if(!R(t)){let i=T(t);for(;i&&!z(i);){if(E(i)&&!it(i))return i;i=T(i)}return o}let n=bt(t,e);for(;n&&Qt(n)&&it(n);)n=bt(n,e);return n&&z(n)&&it(n)&&!at(n)?o:n||Zt(t)||o}const ue=async function(t){const e=this.getOffsetParent||Nt,o=this.getDimensions,n=await o(t.floating);return{reference:fe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function de(t){return O(t).direction==="rtl"}const pe={convertOffsetParentRelativeRectToViewportRelativeRect:ne,getDocumentElement:_,getClippingRect:ce,getOffsetParent:Nt,getElementRects:ue,getClientRects:oe,getDimensions:ae,getScale:M,isElement:E,isRTL:de};function Bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function me(t,e){let o=null,n;const i=_(t);function r(){var l;clearTimeout(n),(l=o)==null||l.disconnect(),o=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),r();const f=t.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=f;if(l||e(),!m||!p)return;const h=G(d),w=G(i.clientWidth-(u+m)),y=G(i.clientHeight-(d+p)),g=G(u),b={rootMargin:-h+"px "+-w+"px "+-y+"px "+-g+"px",threshold:P(0,st(1,a))||1};let k=!0;function x(H){const B=H[0].intersectionRatio;if(B!==a){if(!k)return s();B?s(!1,B):n=setTimeout(()=>{s(!1,1e-7)},1e3)}B===1&&!Bt(f,t.getBoundingClientRect())&&s(),k=!1}try{o=new IntersectionObserver(x,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(x,b)}o.observe(t)}return s(!0),r}function he(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,f=ut(t),u=i||r?[...f?U(f):[],...U(e)]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),r&&g.addEventListener("resize",o)});const d=f&&l?me(f,o):null;let m=-1,p=null;s&&(p=new ResizeObserver(g=>{let[v]=g;v&&v.target===f&&p&&(p.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(e)})),o()}),f&&!a&&p.observe(f),p.observe(e));let h,w=a?N(t):null;a&&y();function y(){const g=N(t);w&&!Bt(w,g)&&o(),w=g,h=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(v=>{i&&v.removeEventListener("scroll",o),r&&v.removeEventListener("resize",o)}),d==null||d(),(g=p)==null||g.disconnect(),p=null,a&&cancelAnimationFrame(h)}}const kt=Jt,At=Gt,Et=(t,e,o)=>{const n=new Map,i={platform:pe,...o},r={...i.platform,_c:n};return Yt(t,e,{...i,platform:r})},ge=["data-opened"],we={key:0,class:"text-sm text-secondary-content px-3 py-2 text-left"},ye=c.defineComponent({__name:"OneDropdownAuto",props:D.dropdownProps,emits:["open","close"],setup(t,{emit:e}){const o=t,n=c.ref(!1),i=c.ref(null),r=c.ref(null);let s=null;c.watch(n,u=>{u&&r.value&&i.value?(Et(r.value,i.value,{placement:o.stick?o.stick:"bottom-start",middleware:[kt(5),At()]}).then(({x:d,y:m})=>{Object.assign(i.value.style,{left:`${d}px`,top:`${m}px`})}),s=he(r.value,i.value,()=>{Et(r.value,i.value,{placement:o.stick?o.stick:"bottom-start",middleware:[kt(4),At()]}).then(({x:d,y:m})=>{Object.assign(i.value.style,{left:`${d}px`,top:`${m}px`})})})):s&&(s(),s=null)}),c.onBeforeUnmount(()=>{s&&s()});const l=e,a=()=>{n.value=!n.value,n.value?l("open"):l("close")};c.provide("OneDropdown",{onToggle:a});const f=c.computed(()=>["absolute z-10 w-fit rounded-md bg-white","py-1 shadow-lg ring-black ring-opacity-5 focus:outline-none","overflow-auto max-h-[540px] min-w-[150px] max-w-[540px]"]);return(u,d)=>(c.openBlock(),c.createElementBlock("div",{class:"relative inline-block","data-opened":n.value},[c.createElementVNode("div",{ref_key:"buttonRef",ref:r},[c.renderSlot(u.$slots,"button",c.normalizeProps(c.guardReactiveProps({onToggle:a,isExpanded:n.value})))],512),n.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:"fixed top-0 left-0 w-screen h-screen z-10",onClick:a})):c.createCommentVNode("",!0),c.withDirectives(c.createElementVNode("div",{ref_key:"menuRef",ref:i,class:c.normalizeClass(["menu",f.value]),role:"menu","aria-orientation":"vertical",tabindex:"-1",style:{display:"none"}},[u.title?(c.openBlock(),c.createElementBlock("div",we,c.toDisplayString(u.title),1)):c.createCommentVNode("",!0),c.renderSlot(u.$slots,"menu",c.normalizeProps(c.guardReactiveProps({onToggle:a})))],2),[[c.vShow,n.value]])],8,ge))}}),xe={},ve={class:"border-t border-secondary-stroke my-1"};function be(t,e){return c.openBlock(),c.createElementBlock("div",ve)}const ke=Pt._export_sfc(xe,[["render",be]]),Ae=["onClick"],Ee={class:"grid"},Oe={class:"font-semibold px-3"},Ce={class:"rounded-lg m-3 border"},Re={class:"space-x-2 flex items-center px-3 py-2",style:{width:"300px"}},_e={class:"flex-shrink-0"},De={class:"w-full text-left"},Se={class:"flex-shrink-0"},Le={class:"px-3 py-2"},Te={class:"text-secondary-content text-left pb-1 text-sm uppercase"},Ve={key:0,class:"space-y-2"},Ne=["onClick"],Be={class:"pl-2"},Fe={class:"text-sm mt-1"},Pe={class:"text-xs mt-1"},Ot=3,Me=c.defineComponent({__name:"OneBrowserMenuGrid",props:D.browserMenuProps,setup(t){const e=t,o=()=>{typeof e.onChange=="function"&&e.onChange()},n=c.ref(!1),i=c.computed(()=>e.apps?n.value?e.apps:e.apps.slice(0,Ot):[]),r=()=>{n.value=!n.value},s=l=>{typeof e.onApp=="function"&&e.onApp(l)};return(l,a)=>(c.openBlock(),c.createBlock(D._sfc_main$1,{stick:"right"},{button:c.withCtx(({onToggle:f,isExpanded:u})=>[c.createElementVNode("button",{onClick:f,class:c.normalizeClass(["p-1 rounded-md hover:bg-secondary-10",[u?"bg-secondary-25":""]])},[c.createVNode(c.unref(D.render$4),{class:"text-secondary-base",style:c.normalizeStyle(`width: ${l.iconSize}px; height: ${l.iconSize}px`)},null,8,["style"])],10,Ae)]),menu:c.withCtx(()=>{var f,u,d,m;return[c.createElementVNode("div",Ee,[c.createElementVNode("div",Oe,c.toDisplayString((f=l.workspace)==null?void 0:f.title),1),c.createElementVNode("div",Ce,[c.createElementVNode("div",Re,[c.createElementVNode("div",_e,[c.createVNode(wt.OneAvatar,{text:((u=l.workspace)==null?void 0:u.name)||"",src:(d=l.workspace)==null?void 0:d.photo_url,size:44,rounded:!1,class:"mx-auto"},null,8,["text","src"])]),c.createElementVNode("div",De,c.toDisplayString((m=l.workspace)==null?void 0:m.name),1),c.createElementVNode("div",Se,[c.createElementVNode("button",{class:"text-sm border border-secondary-stroke rounded px-2 py-0.5 text-secondary-content hover:text-primary-content",onClick:o},c.toDisplayString(l.changeLabel),1)])]),a[0]||(a[0]=c.createElementVNode("hr",null,null,-1))])]),c.createElementVNode("div",Le,[c.createElementVNode("div",Te,c.toDisplayString(l.appsTitle),1),c.createElementVNode("div",null,[l.apps&&l.apps.length?(c.openBlock(),c.createElementBlock("div",Ve,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.value,p=>(c.openBlock(),c.createElementBlock("div",{key:p.id,onClick:h=>s(p),class:"flex items-center rounded-lg hover:bg-secondary-10 border p-2 bg-[#FAFAFA] cursor-pointer"},[c.createVNode(wt.OneAvatar,{text:p.name,src:p.photo_url,size:44,rounded:!1},null,8,["text","src"]),c.createElementVNode("div",Be,[c.createElementVNode("p",Fe,c.toDisplayString(p.name),1),c.createElementVNode("p",Pe,c.toDisplayString(p.short),1)])],8,Ne))),128))])):c.createCommentVNode("",!0),l.apps&&l.apps.length>Ot?(c.openBlock(),c.createElementBlock("button",{key:1,onClick:r,class:"mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs"},c.toDisplayString(n.value?"Приховати":"Дивитися всі"),1)):c.createCommentVNode("",!0)])])]}),_:1}))}});exports.OneBrowserMenu=D.OneBrowserMenu;exports.OneDropdown=D._sfc_main$1;exports.OneDropdownItem=D._sfc_main$2;exports.OneHelpMenu=D.OneHelpMenu;exports.OneUserMenu=D._sfc_main;exports.OneBrowserMenuGrid=Me;exports.OneDropdownAuto=ye;exports.OneDropdownDivider=ke;
|
package/dist/dropdown/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as Gt, h as Kt, e as Jt, i as Qt } from "../OneHelpMenu-135e0656.js";
|
|
2
2
|
import { d as vn, f as bn, O as An, _ as Rn } from "../OneHelpMenu-135e0656.js";
|
|
3
|
-
import { defineComponent as Bt, ref as Q, watch as Zt, onBeforeUnmount as te, provide as ee, computed as $t, openBlock as L, createElementBlock as F, createElementVNode as
|
|
3
|
+
import { defineComponent as Bt, ref as Q, watch as Zt, onBeforeUnmount as te, provide as ee, computed as $t, openBlock as L, createElementBlock as F, createElementVNode as y, renderSlot as At, normalizeProps as Rt, guardReactiveProps as Ot, createCommentVNode as Z, withDirectives as ne, normalizeClass as Mt, toDisplayString as S, vShow as oe, createBlock as ie, withCtx as Ct, createVNode as ct, unref as se, normalizeStyle as re, Fragment as le, renderList as ce } from "vue";
|
|
4
4
|
import { _ as ae } from "../_plugin-vue_export-helper-dad06003.js";
|
|
5
5
|
import { OneAvatar as _t } from "../common/index.js";
|
|
6
6
|
import "../XMarkIcon-51ef0691.js";
|
|
@@ -178,7 +178,7 @@ const ye = async (t, e, o) => {
|
|
|
178
178
|
x: v,
|
|
179
179
|
y: b,
|
|
180
180
|
data: A,
|
|
181
|
-
reset:
|
|
181
|
+
reset: x
|
|
182
182
|
} = await h({
|
|
183
183
|
x: f,
|
|
184
184
|
y: u,
|
|
@@ -199,11 +199,11 @@ const ye = async (t, e, o) => {
|
|
|
199
199
|
...d[w],
|
|
200
200
|
...A
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, x && m <= 50 && (m++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (a = x.rects === !0 ? await s.getElementRects({
|
|
203
203
|
reference: t,
|
|
204
204
|
floating: e,
|
|
205
205
|
strategy: i
|
|
206
|
-
}) :
|
|
206
|
+
}) : x.rects), {
|
|
207
207
|
x: f,
|
|
208
208
|
y: u
|
|
209
209
|
} = kt(a, p, c)), g = -1);
|
|
@@ -248,17 +248,17 @@ async function ve(t, e) {
|
|
|
248
248
|
} : {
|
|
249
249
|
x: 1,
|
|
250
250
|
y: 1
|
|
251
|
-
},
|
|
251
|
+
}, x = nt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
252
252
|
elements: l,
|
|
253
253
|
rect: v,
|
|
254
254
|
offsetParent: b,
|
|
255
255
|
strategy: c
|
|
256
256
|
}) : v);
|
|
257
257
|
return {
|
|
258
|
-
top: (h.top -
|
|
259
|
-
bottom: (
|
|
260
|
-
left: (h.left -
|
|
261
|
-
right: (
|
|
258
|
+
top: (h.top - x.top + m.top) / A.y,
|
|
259
|
+
bottom: (x.bottom - h.bottom + m.bottom) / A.y,
|
|
260
|
+
left: (h.left - x.left + m.left) / A.x,
|
|
261
|
+
right: (x.right - h.right + m.right) / A.x
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
const be = function(t) {
|
|
@@ -285,9 +285,9 @@ const be = function(t) {
|
|
|
285
285
|
} = pt(t, e);
|
|
286
286
|
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
287
287
|
return {};
|
|
288
|
-
const h = W(i), v = q(l), b = W(l) === l, A = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)),
|
|
289
|
-
!p && j &&
|
|
290
|
-
const M = [l, ...
|
|
288
|
+
const h = W(i), v = q(l), b = W(l) === l, A = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), x = p || (b || !g ? [et(l)] : me(l)), j = m !== "none";
|
|
289
|
+
!p && j && x.push(...ge(l, g, m, A));
|
|
290
|
+
const M = [l, ...x], lt = await ve(e, w), K = [];
|
|
291
291
|
let U = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
292
292
|
if (f && K.push(lt[h]), u) {
|
|
293
293
|
const B = pe(i, s, A);
|
|
@@ -807,7 +807,7 @@ function ze(t, e) {
|
|
|
807
807
|
threshold: V(0, ft(1, c)) || 1
|
|
808
808
|
};
|
|
809
809
|
let A = !0;
|
|
810
|
-
function
|
|
810
|
+
function x(j) {
|
|
811
811
|
const M = j[0].intersectionRatio;
|
|
812
812
|
if (M !== c) {
|
|
813
813
|
if (!A)
|
|
@@ -819,13 +819,13 @@ function ze(t, e) {
|
|
|
819
819
|
M === 1 && !qt(a, t.getBoundingClientRect()) && s(), A = !1;
|
|
820
820
|
}
|
|
821
821
|
try {
|
|
822
|
-
o = new IntersectionObserver(
|
|
822
|
+
o = new IntersectionObserver(x, {
|
|
823
823
|
...b,
|
|
824
824
|
// Handle <iframe>s
|
|
825
825
|
root: i.ownerDocument
|
|
826
826
|
});
|
|
827
827
|
} catch {
|
|
828
|
-
o = new IntersectionObserver(
|
|
828
|
+
o = new IntersectionObserver(x, b);
|
|
829
829
|
}
|
|
830
830
|
o.observe(t);
|
|
831
831
|
}
|
|
@@ -929,7 +929,7 @@ const Dt = Re, St = be, Ft = (t, e, o) => {
|
|
|
929
929
|
class: "relative inline-block",
|
|
930
930
|
"data-opened": n.value
|
|
931
931
|
}, [
|
|
932
|
-
|
|
932
|
+
y("div", {
|
|
933
933
|
ref_key: "buttonRef",
|
|
934
934
|
ref: r
|
|
935
935
|
}, [
|
|
@@ -940,7 +940,7 @@ const Dt = Re, St = be, Ft = (t, e, o) => {
|
|
|
940
940
|
class: "fixed top-0 left-0 w-screen h-screen z-10",
|
|
941
941
|
onClick: c
|
|
942
942
|
})) : Z("", !0),
|
|
943
|
-
ne(
|
|
943
|
+
ne(y("div", {
|
|
944
944
|
ref_key: "menuRef",
|
|
945
945
|
ref: i,
|
|
946
946
|
class: Mt(["menu", a.value]),
|
|
@@ -979,7 +979,7 @@ const gn = /* @__PURE__ */ ae(je, [["render", Ye]]), qe = ["onClick"], Xe = { cl
|
|
|
979
979
|
};
|
|
980
980
|
return (l, c) => (L(), ie(Jt, { stick: "right" }, {
|
|
981
981
|
button: Ct(({ onToggle: a, isExpanded: f }) => [
|
|
982
|
-
|
|
982
|
+
y("button", {
|
|
983
983
|
onClick: a,
|
|
984
984
|
class: Mt(["p-1 rounded-md hover:bg-secondary-10", [f ? "bg-secondary-25" : ""]])
|
|
985
985
|
}, [
|
|
@@ -992,11 +992,11 @@ const gn = /* @__PURE__ */ ae(je, [["render", Ye]]), qe = ["onClick"], Xe = { cl
|
|
|
992
992
|
menu: Ct(() => {
|
|
993
993
|
var a, f, u, p;
|
|
994
994
|
return [
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
995
|
+
y("div", Xe, [
|
|
996
|
+
y("div", Ge, S((a = l.workspace) == null ? void 0 : a.title), 1),
|
|
997
|
+
y("div", Ke, [
|
|
998
|
+
y("div", Je, [
|
|
999
|
+
y("div", Qe, [
|
|
1000
1000
|
ct(_t, {
|
|
1001
1001
|
text: ((f = l.workspace) == null ? void 0 : f.name) || "",
|
|
1002
1002
|
src: (u = l.workspace) == null ? void 0 : u.photo_url,
|
|
@@ -1005,24 +1005,20 @@ const gn = /* @__PURE__ */ ae(je, [["render", Ye]]), qe = ["onClick"], Xe = { cl
|
|
|
1005
1005
|
class: "mx-auto"
|
|
1006
1006
|
}, null, 8, ["text", "src"])
|
|
1007
1007
|
]),
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1008
|
+
y("div", Ze, S((p = l.workspace) == null ? void 0 : p.name), 1),
|
|
1009
|
+
y("div", tn, [
|
|
1010
|
+
y("button", {
|
|
1011
1011
|
class: "text-sm border border-secondary-stroke rounded px-2 py-0.5 text-secondary-content hover:text-primary-content",
|
|
1012
1012
|
onClick: o
|
|
1013
1013
|
}, S(l.changeLabel), 1)
|
|
1014
1014
|
])
|
|
1015
1015
|
]),
|
|
1016
|
-
c[0] || (c[0] =
|
|
1017
|
-
c[1] || (c[1] = x("div", {
|
|
1018
|
-
class: "text-center py-2",
|
|
1019
|
-
style: { "font-size": "10px" }
|
|
1020
|
-
}, "Керувати робочими просторами", -1))
|
|
1016
|
+
c[0] || (c[0] = y("hr", null, null, -1))
|
|
1021
1017
|
])
|
|
1022
1018
|
]),
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1019
|
+
y("div", en, [
|
|
1020
|
+
y("div", nn, S(l.appsTitle), 1),
|
|
1021
|
+
y("div", null, [
|
|
1026
1022
|
l.apps && l.apps.length ? (L(), F("div", on, [
|
|
1027
1023
|
(L(!0), F(le, null, ce(i.value, (d) => (L(), F("div", {
|
|
1028
1024
|
key: d.id,
|
|
@@ -1035,9 +1031,9 @@ const gn = /* @__PURE__ */ ae(je, [["render", Ye]]), qe = ["onClick"], Xe = { cl
|
|
|
1035
1031
|
size: 44,
|
|
1036
1032
|
rounded: !1
|
|
1037
1033
|
}, null, 8, ["text", "src"]),
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1034
|
+
y("div", rn, [
|
|
1035
|
+
y("p", ln, S(d.name), 1),
|
|
1036
|
+
y("p", cn, S(d.short), 1)
|
|
1041
1037
|
])
|
|
1042
1038
|
], 8, sn))), 128))
|
|
1043
1039
|
])) : Z("", !0),
|
package/dist/layout/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("../OneHelpMenu-90df8a83.cjs"),q=require("../_plugin-vue_export-helper-f246444f.cjs"),A=require("../index-9f8735d9.cjs"),ke=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const fe={items:{required:!0,type:Array},slim:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},app:{type:Object},minimizedWidth:{type:String,default:"4rem"},width:{type:String,default:"16rem"},minimized:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!0},news:{type:Object}},we={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},isMobile:{type:Boolean,default:!1},href:{type:String},app:{type:Object},label:{type:String,required:!0},labelTop:{type:String,default:""},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0},open:{type:Boolean,default:!1},subItems:{type:Array,required:!1}},ye={sidebarItems:fe.items,logoSrc:{type:String},helpUrl:{type:String},app:{type:Object},user:{type:Object,required:!0},labels:{type:Object},apps:{type:Array},workspaces:{type:Array},workspace:{type:Object},showHeadre:{type:Boolean,default:!0},yourApps:{type:Object},news:{type:Object},handlers:{type:Object},improveTariff:{type:Object},help:{type:Object},menu:{type:Array,default:()=>[]}};function xe(c,p){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 be(c,p){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})])}const Be=["href"],ge={class:"flex flex-nowrap items-center w-full h-[24px]"},Ve={key:0,class:"w-[44px] flex-shrink-0"},Ee={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ne={class:"py-[8px] pl-0 pr-0"},Le={class:"flex flex-nowrap items-center w-full h-[24px]"},_e={key:0,class:"w-[44px] flex-shrink-0"},Se={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},$e={class:"py-[8px] pl-0 pr-0"},De={key:1,class:"p-3"},ze={class:"flex flex-nowrap items-center w-full h-[24px]"},Me={key:0,class:"w-[44px] flex-shrink-0"},Oe={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Te={class:"py-[8px] pl-0 pr-0"},je={key:1,class:"p-3"},He=["href"],Ie={class:"flex items-center justify-between min-w-full h-[24px]"},Fe={key:0,class:"text-xs"},Pe={key:0,class:"text-xs"},Ae={key:1,class:"pr-3"},qe=e.defineComponent({__name:"OneSidebarLink",props:we,emits:["update-collapsed"],setup(c,{emit:p}){const l=c,r=p,C=e.computed(()=>l.href??!1),u=e.computed(()=>i(l)),i=n=>n.route?n.route:n.routeName?{name:n.routeName}:null,f=e.ref(l.open),B=()=>{f.value=!f.value},k=(n,h)=>{l.subItems&&l.subItems.length>0&&!h&&(n.preventDefault(),B()),(h||!l.subItems||l.subItems.length===0)&&l.isMobile&&r("update-collapsed")};return(n,h)=>{const w=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.labelTop?(e.openBlock(),e.createElementBlock("p",{key:0,style:{"font-size":"10px"},class:e.normalizeClass([{"text-center h-[15px]":n.slim},"text-[#a1a5b0] px-2 pt-0 pb-0.5 font-medium"])},e.toDisplayString(n.slim?"":n.labelTop),3)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("a",{key:1,href:C.value,class:e.normalizeClass(["flex items-center relative rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:k},[e.createElementVNode("div",ge,[n.icon?(e.openBlock(),e.createElementBlock("div",Ve,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Ee,[e.createElementVNode("span",Ne,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ml-auto",[(n.slim,"")]])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,Be)):e.createCommentVNode("",!0),!C.value&&u.value?(e.openBlock(),e.createBlock(w,{key:2,to:u.value,class:e.normalizeClass(["relative flex items-center cursor-pointer rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base",exact:n.exact,onClick:e.withModifiers(k,["prevent"])},{default:e.withCtx(()=>[e.createElementVNode("div",Le,[n.icon?(e.openBlock(),e.createElementBlock("div",_e,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Se,[e.createElementVNode("span",$e,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",De,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])]),_:1},8,["to","exact","class"])):e.createCommentVNode("",!0),!C.value&&!u.value?(e.openBlock(),e.createElementBlock("span",{key:3,onClick:e.withModifiers(k,["prevent"]),class:e.normalizeClass([[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"],"mb-0.5 relative flex items-center cursor-pointer rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"])},[e.createElementVNode("div",ze,[n.icon?(e.openBlock(),e.createElementBlock("div",Me,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Oe,[e.createElementVNode("span",Te,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",je,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),f.value&&l.subItems?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass([n.slim?"":"pl-[36px] pr-3"])},[e.createElementVNode("div",{class:e.normalizeClass([(n.slim,"")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.subItems,t=>(e.openBlock(),e.createElementBlock("div",{key:t.label,class:e.normalizeClass([(n.slim,"")])},[t.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.href,class:"flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"},[e.createElementVNode("div",Ie,[n.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Fe,e.toDisplayString(t.label),1)),t.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([n.slim?"pl-2 h-[15px]":"pr-1"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:"w-[15px] h-[15px] mx-auto"}))],2)):e.createCommentVNode("",!0)])],8,He)):i(t)?(e.openBlock(),e.createBlock(w,{key:1,to:i(t),onClick:h[0]||(h[0]=e.withModifiers(s=>k(s,!0),["prevent"])),class:"flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",exact:n.exact,"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base"},{default:e.withCtx(()=>[n.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Pe,e.toDisplayString(t.label),1)),t.icon?(e.openBlock(),e.createElementBlock("div",Ae,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:"w-[20px] h-[20px] mx-auto"}))])):e.createCommentVNode("",!0)]),_:2},1032,["to","exact"])):e.createCommentVNode("",!0)],2))),128))],2)],2)):e.createCommentVNode("",!0)],64)}}}),We={},Re={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Ue(c,p){return e.openBlock(),e.createElementBlock("svg",Re,p[0]||(p[0]=[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),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),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)]))}const he=q._export_sfc(We,[["render",Ue]]),Ce=c=>{if(Array.isArray(c))return c.map(e.unref);const p=e.unref(c);return Array.isArray(p)?p:[p]},Ze=(c,p)=>{let l;const r=C=>{C.forEach(u=>{const i=e.unref(u);if(i){if(!(i instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:i,array:c}),new Error("Vuestic: Unable to observe non-HTMLElement");i&&(l==null||l.observe(i))}})};return e.watch(c,C=>{l==null||l.disconnect(),r(Ce(C))}),e.onMounted(()=>{l=new ResizeObserver(p),r(Ce(c))}),e.onBeforeUnmount(()=>l==null?void 0:l.disconnect()),l},Xe=c=>{const p=e.ref(null);return Ze([c],()=>{var l;p.value=((l=c.value)==null?void 0:l.clientWidth)??null}),e.watchEffect(()=>{var l;p.value=((l=c.value)==null?void 0:l.clientWidth)??null}),p},Ge={class:"mt-auto shrink px-2 bg-white pt-2.5 py-2 mx-2 rounded-2xl"},Je=["href"],Ke={class:"rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2"},Qe={class:""},Ye={class:"",style:{"font-size":"10px"}},e1={key:1,class:"flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[220px] space-x-3 px-2"},t1={class:"flex items-center text-[#525B66] space-x-3"},o1={style:{"font-size":"10px"}},l1={class:"relative -right-2"},n1=["href"],a1={class:"flex flex-nowrap items-center w-max h-[24px]"},r1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},s1={class:"py-[8px] pl-0 pr-[8px]"},i1=["href"],c1={class:"flex flex-nowrap items-center w-max h-[24px]"},p1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},d1={class:"py-[8px] pl-0 pr-[8px]"},m1={key:4,class:"custom-select ml-1 w-full relative pt-2 pb-2"},u1={class:"pl-1"},C1={key:0,class:"dropdown w-[220px] z-50 text-[#525B66]"},f1=["onClick"],h1={key:0,class:"mt-0.5 h-0 border-t border-secondary-stroke mb-1"},v1={key:0,class:"tooltip-text"},k1={key:0},w1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},y1={key:2,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},x1=["href"],b1={key:0,class:"tooltip-text"},B1={key:0},g1=e.defineComponent({__name:"OneSidebar",props:fe,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(c,{emit:p}){var V,E,N;const l=p,r=c,C=e.computed(()=>{var o;return((o=r.news)==null?void 0:o.unseenCount)||0}),u=()=>{l("show-news")},i=e.ref(!1),f=e.ref(r.hoverable);e.watch(r,()=>{r.modelValue?f.value=!0:f.value=!1}),r.modelValue&&(f.value=!0);const B=e.shallowRef(),k=e.computed(()=>{const o=[];if(r.slim||o.push("fixed"),!w.value)if(!r.isMobile)o.push("w-[260px]");else return o.push("w-full");return o.join(" ")}),n=e.computed(()=>""),h=o=>{i.value=f.value&&o},w=e.computed(()=>f.value&&!i.value),t=e.computed(()=>!!w.value),s=e.ref(),O=Xe(s),g=e.computed(()=>r.modelValue===!0||O.value===null?!0:O.value>0),T=e.ref(),j=()=>w.value?r.minimizedWidth:r.width;e.watchEffect(()=>{const o=j();setTimeout(()=>{T.value=o})});const y=e.ref(!1),x=e.ref((V=r.app)!=null&&V.availableLang&&((E=r.app)==null?void 0:E.availableLang.length)>0?(N=r.app)==null?void 0:N.availableLang.find(o=>{var d;return o.id==((d=r.app)==null?void 0:d.lang)}):null),H=()=>{y.value=!y.value},I=o=>{x.value=o,y.value=!1,l("select-language",o)},F=()=>{var o,d;(d=(o=r.app)==null?void 0:o.selectedPlan)!=null&&d.url&&(window.location.href=r.app.selectedPlan.url)};return(o,d)=>{var L,_,S,$,D,z,a,b,M,W,R,U,Z,X,G,J,K,Q,Y,ee,te,oe,le,ne,ae,re,se,ie,ce,pe,de;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:B,class:e.normalizeClass(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40",k.value]),style:e.normalizeStyle(n.value),onMouseenter:d[1]||(d[1]=m=>h(!0)),onMouseleave:d[2]||(d[2]=m=>h(!1))},[e.withDirectives(e.createElementVNode("div",{class:"overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 px-1 ml-1 mr-1 mt-2 flex-grow",ref_key:"menu",ref:s},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,m=>(e.openBlock(),e.createBlock(qe,{key:m.label,labelTop:m.labelTop,isMobile:o.isMobile,subItems:m.subItems,open:m.open,icon:m.icon,label:m.label,route:m.route,href:m.href,slim:t.value,"route-name":m.routeName,exact:m.exact||!1,onUpdateCollapsed:d[0]||(d[0]=P=>l("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","href","slim","route-name","exact"]))),128))],512),[[e.vShow,g.value]]),e.withDirectives(e.createElementVNode("div",Ge,[e.createElementVNode("div",{class:e.normalizeClass([t.value?"hidden":"w-full hidden md:flex-col md:flex"])},[(L=o.app)!=null&&L.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:(_=o.app)==null?void 0:_.offerPlan.url,class:"w-full min-w-[220px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",target:"_blank",rel:"noopener noreferrer"},[e.createElementVNode("div",Ke,[e.createElementVNode("div",Qe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((S=o.app)==null?void 0:S.offerPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("p",Ye,[e.createElementVNode("strong",null,e.toDisplayString(($=o.app)==null?void 0:$.offerPlan.title),1),e.createTextVNode(" «"+e.toDisplayString((D=o.app)==null?void 0:D.offerPlan.name)+"» ",1),d[3]||(d[3]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(e.toDisplayString((z=o.app)==null?void 0:z.offerPlan.title1),1)])])],8,Je)):e.createCommentVNode("",!0),(a=o.app)!=null&&a.selectedPlan&&((b=o.app)!=null&&b.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",e1,[e.createElementVNode("div",t1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((M=o.app)==null?void 0:M.selectedPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("div",o1,[e.createElementVNode("p",null,e.toDisplayString(((W=o.app)==null?void 0:W.selectedPlan.name)||""),1),e.createElementVNode("p",null,e.toDisplayString(((R=o.app)==null?void 0:R.selectedPlan.title)||""),1)])]),e.createElementVNode("div",l1,[e.createVNode(A._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0] !rounded-lg",variant:"touch",icon:e.unref(v.render$2),onClick:F},null,8,["icon"])])])):e.createCommentVNode("",!0),(U=o.app)!=null&&U.terms?(e.openBlock(),e.createElementBlock("a",{key:2,href:(Z=o.app)==null?void 0:Z.terms.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",a1,[e.createElementVNode("div",r1,[e.createElementVNode("span",s1,e.toDisplayString(((X=o.app)==null?void 0:X.terms.label)||"Terms"),1)])])],8,n1)):e.createCommentVNode("",!0),(G=o.app)!=null&&G.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(J=o.app)==null?void 0:J.offer.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",c1,[e.createElementVNode("div",p1,[e.createElementVNode("span",d1,e.toDisplayString(((K=o.app)==null?void 0:K.offer.label)||"Offert"),1)])])],8,i1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",m1,[e.createElementVNode("div",{class:"select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",onClick:H},[e.createVNode(e.unref(v.render$3),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((ee=x.value)==null?void 0:ee.name)+" ",1),e.createElementVNode("span",u1,e.toDisplayString(y.value?"▲":"▼"),1)]),y.value?(e.openBlock(),e.createElementBlock("div",C1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=o.app)==null?void 0:te.availableLang,m=>{var P,me;return e.openBlock(),e.createElementBlock("div",{key:m.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":m.id!==((P=x.value)==null?void 0:P.id),"text-gray-300":m.id===((me=x.value)==null?void 0:me.id)}]),onClick:mt=>{var ue;return m.id!==((ue=x.value)==null?void 0:ue.id)&&I(m)}},e.toDisplayString(m.name),11,f1)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h1)),e.createElementVNode("div",{class:e.normalizeClass([t.value?"grid":"flex space-x-2"])},[o.news?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1",[t.value?"w-[44px] h-[44px] text-center":"h-[36x] pr-2"]]),onClick:u},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",v1,e.toDisplayString(o.news.menuLabel||"News"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["w-full",[t.value?"":"flex flex-nowrap items-center h-[36px]"]])},[e.createElementVNode("div",{class:e.normalizeClass(["relative items-center",[t.value?"":"flex flex-row space-x-1"]])},[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(he),{class:"w-[24px] h-[24px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",k1,e.toDisplayString(o.news.menuLabel||"News"),1)),C.value>0?(e.openBlock(),e.createElementBlock("span",w1)):e.createCommentVNode("",!0),C.value>0?(e.openBlock(),e.createElementBlock("span",y1)):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),(oe=o.app)!=null&&oe.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(ne=(le=o.app)==null?void 0:le.support)==null?void 0:ne.url,class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[t.value?"w-[44px] h-[44px] text-center":"h-[36x]"]])},[(re=(ae=o.app)==null?void 0:ae.support)!=null&&re.label?(e.openBlock(),e.createElementBlock("div",b1,e.toDisplayString(((ie=(se=o.app)==null?void 0:se.support)==null?void 0:ie.label)||"Support"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["w-full",[t.value?"":"flex flex-nowrap items-center h-[36px]"]])},[e.createElementVNode("div",{class:e.normalizeClass(["flex-shrink-0 relative",[t.value?"mx-auto w-[36px] ":"flex space-x-2 px-1"]])},[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(be)),{class:"w-[20px] h-[20px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",B1,e.toDisplayString(((pe=(ce=o.app)==null?void 0:ce.support)==null?void 0:pe.label)||"Support"),1))],2)],2)],10,x1)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[t.value?"hidden":"w-full"],"text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])},[d[4]||(d[4]=e.createElementVNode("span",null,[e.createTextVNode("Powered by "),e.createElementVNode("span",{class:"text-blue-700"},"OneB")],-1)),e.createElementVNode("span",null,e.toDisplayString((de=o.app)==null?void 0:de.version),1)],2)],512),[[e.vShow,g.value]])],38)}}});const ve=q._export_sfc(g1,[["__scopeId","data-v-317ed1c3"]]),V1={class:"h-screen h-dvh relative"},E1={class:"header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",style:{background:"rgba(245, 247, 251, 0.80)","backdrop-filter":"blur(5px)"}},N1={class:"p-2 flex-shrink-0"},L1={class:"w-10 h-10 flex items-center flex-shrink-0"},_1=["src"],S1={class:"whitespace-nowrap font-semibold text-xl"},$1={class:"text-xs whitespace-nowrap"},D1={class:"w-full"},z1={class:"w-full flex justify-end pr-4"},M1={class:"flex items-center space-x-1"},O1={key:0,class:"module-border-wrap flex justify-center items-center"},T1={class:"h-4 w-4"},j1={class:"ml-2 hidden sm:flex"},H1={class:"flex h-full"},I1={key:0},F1={key:0,class:"sm:w-[560px] w-full relative h-full"},P1={class:"h-full relative"},A1={class:"flex items-center p-3 space-x-1.5"},q1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},W1={key:0,class:"p-5"},R1={key:1},U1={class:"p-4 text-gray text-center"},Z1={key:2},X1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},G1={key:0},J1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},K1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},Q1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},Y1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},et={class:"text-lg font-medium"},tt={class:"text-sm text-gray-600"},ot={key:0},lt=["src"],nt={class:"text-sm whitespace-pre-wrap break-words"},at={key:1},rt=["href"],st={class:"text-sm flex items-center justify-between mt-1"},it={class:"text-gray-800"},ct=["href"],pt=e.defineComponent({__name:"OneMainLayout",props:ye,emits:["load-news","load-tariff","open-tariff"],setup(c,{emit:p}){const l=p,r=c;let C=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),C="1");const u=e.ref(C==="1");e.ref(!0),e.watch(u,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const i=e.ref(!1),f=()=>{i.value=!i.value,i.value&&l("load-news")},B=e.computed(()=>r.showHeadre);e.watch(()=>r.showHeadre,()=>{B.value=r.showHeadre});const k=e.ref(window.innerWidth),n=()=>{k.value=window.innerWidth},h=e.computed(()=>k.value<=768);e.onMounted(()=>{window.addEventListener("resize",n)}),e.onUnmounted(()=>{window.removeEventListener("resize",n)});const w=t=>{var s;(s=r.handlers)==null||s.onSetLang(t)};return(t,s)=>{var g,T,j,y,x,H,I,F,V,E,N,o,d,L,_,S,$,D,z;const O=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",V1,[e.withDirectives(e.createElementVNode("div",E1,[e.createElementVNode("div",N1,[e.createElementVNode("button",{onClick:s[0]||(s[0]=a=>u.value=!u.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"},[e.createVNode(e.unref(xe),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",L1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,_1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(O,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var a,b;return[e.createElementVNode("div",S1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",$1,e.toDisplayString((b=(a=t.app)==null?void 0:a.workspace)==null?void 0:b.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",D1,[e.createElementVNode("div",z1,[e.createElementVNode("div",M1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff&&((g=t.improveTariff)!=null&&g.label)&&t.improveTariff.label?(e.openBlock(),e.createElementBlock("div",O1,[e.createElementVNode("button",{type:"button",class:"cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",onClick:s[1]||(s[1]=(...a)=>{var b,M;return((b=t.handlers)==null?void 0:b.onImproveTariff)&&((M=t.handlers)==null?void 0:M.onImproveTariff(...a))}),style:{"font-size":"10px"}},[e.createElementVNode("div",T1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((T=t.improveTariff)==null?void 0:T.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",j1,e.toDisplayString((j=t.improveTariff)==null?void 0:j.label),1)])])):e.createCommentVNode("",!0),t.help?(e.openBlock(),e.createBlock(v.OneHelpMenu,{key:1,help:t.help},null,8,["help"])):e.createCommentVNode("",!0),((y=t.handlers)==null?void 0:y.onBrowse)!=null?(e.openBlock(),e.createBlock(v.OneBrowserMenu,{key:2,workspace:(x=t.app)==null?void 0:x.workspace,apps:((H=t.app)==null?void 0:H.apps)||[],"change-label":((I=t.labels)==null?void 0:I.change)||"Change","apps-title":((F=t.labels)==null?void 0:F.apps)||"Apps","on-app":(V=t.handlers)==null?void 0:V.onApp,"on-change":(E=t.handlers)==null?void 0:E.onChange,onOpen:(N=t.handlers)==null?void 0:N.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(v._sfc_main,{user:t.user,menu:t.menu,app:t.app,"account-label":((o=t.labels)==null?void 0:o.account)||"Account","logout-label":((d=t.labels)==null?void 0:d.logout)||"Logout","version-label":((L=t.labels)==null?void 0:L.version)||"","on-account":(_=t.handlers)==null?void 0:_.onAccount,"on-logout":(S=t.handlers)==null?void 0:S.onLogout},null,8,["user","menu","app","account-label","logout-label","version-label","on-account","on-logout"])])])])],512),[[e.vShow,B.value]]),e.createElementVNode("div",H1,[!h.value||!u.value?(e.openBlock(),e.createBlock(ve,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:h.value,modelValue:u.value,"onUpdate:modelValue":s[2]||(s[2]=a=>u.value=a),onShowNews:f,onSelectLanguage:w,onUpdateCollapsed:s[3]||(s[3]=a=>u.value=!u.value)},null,8,["app","items","with-news","news","isMobile","modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([[u.value?"sm:ml-[60px]":"sm:ml-[260px] hidden sm:block"],"body scroll-body w-full overflow-y-auto"])},[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all",{"pt-[56px]":B.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",I1,[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",onClick:s[4]||(s[4]=e.withModifiers(a=>i.value=!1,["self"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white",[i.value?"sm:w-[560px] w-full":"w-0"]])},[i.value?(e.openBlock(),e.createElementBlock("div",F1,[e.createElementVNode("div",P1,[e.createElementVNode("div",A1,[e.createVNode(he,{class:"w-10 h-10"}),s[6]||(s[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(A._sfc_main,{variant:"touch",icon:e.unref(ke.render),onClick:s[5]||(s[5]=a=>i.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",q1,[t.news.isLoading&&(($=t.news.items)==null?void 0:$.length)===0?(e.openBlock(),e.createElementBlock("div",W1,[e.createVNode(A.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((D=t.news.items)==null?void 0:D.length)===0?(e.openBlock(),e.createElementBlock("div",R1,[e.createElementVNode("div",U1,e.toDisplayString(t.news.emptyText),1)])):((z=t.news.items)==null?void 0:z.length)>0?(e.openBlock(),e.createElementBlock("div",Z1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"p-3"},[e.createElementVNode("div",X1,[e.createElementVNode("div",null,[a.type?(e.openBlock(),e.createElementBlock("div",G1,[a.type===10?(e.openBlock(),e.createElementBlock("span",J1,"update")):a.type===11?(e.openBlock(),e.createElementBlock("span",K1,"warning")):a.type===12?(e.openBlock(),e.createElementBlock("span",Q1,"notice")):a.type===13?(e.openBlock(),e.createElementBlock("span",Y1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",et,e.toDisplayString(a.title),1),e.createElementVNode("div",tt,e.toDisplayString(a.summary),1)]),a.image_url?(e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("img",{src:a.image_url,alt:"",class:"w-full rounded-md"},null,8,lt)])):e.createCommentVNode("",!0),e.createElementVNode("div",nt,e.toDisplayString(a.body),1),a.video_url?(e.openBlock(),e.createElementBlock("div",at,[e.createElementVNode("a",{href:a.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,rt)])):e.createCommentVNode("",!0),e.createElementVNode("div",st,[e.createElementVNode("span",it,e.toDisplayString(a.published),1),a.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:a.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,ct)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const dt=q._export_sfc(pt,[["__scopeId","data-v-7935faab"]]);exports.OneMainLayout=dt;exports.OneSidebar=ve;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("../OneHelpMenu-90df8a83.cjs"),q=require("../_plugin-vue_export-helper-f246444f.cjs"),A=require("../index-9f8735d9.cjs"),ke=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const fe={items:{required:!0,type:Array},slim:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1},app:{type:Object},minimizedWidth:{type:String,default:"4rem"},width:{type:String,default:"16rem"},minimized:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!0},news:{type:Object}},we={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},isMobile:{type:Boolean,default:!1},href:{type:String},app:{type:Object},label:{type:String,required:!0},labelTop:{type:String,default:""},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0},open:{type:Boolean,default:!1},subItems:{type:Array,required:!1}},ye={sidebarItems:fe.items,logoSrc:{type:String},helpUrl:{type:String},app:{type:Object},user:{type:Object,required:!0},labels:{type:Object},apps:{type:Array},workspaces:{type:Array},workspace:{type:Object},showHeadre:{type:Boolean,default:!0},yourApps:{type:Object},news:{type:Object},handlers:{type:Object},improveTariff:{type:Object},help:{type:Object},menu:{type:Array,default:()=>[]}};function xe(c,p){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 be(c,p){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})])}const Be=["href"],ge={class:"flex flex-nowrap items-center w-full h-[24px]"},Ve={key:0,class:"w-[44px] flex-shrink-0"},Ee={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ne={class:"py-[8px] pl-0 pr-0"},Le={class:"flex flex-nowrap items-center w-full h-[24px]"},_e={key:0,class:"w-[44px] flex-shrink-0"},Se={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},$e={class:"py-[8px] pl-0 pr-0"},De={key:1,class:"p-3"},ze={class:"flex flex-nowrap items-center w-full h-[24px]"},Me={key:0,class:"w-[44px] flex-shrink-0"},Oe={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Te={class:"py-[8px] pl-0 pr-0"},je={key:1,class:"p-3"},He=["href"],Ie={class:"flex items-center justify-between min-w-full h-[24px]"},Fe={key:0,class:"text-xs"},Pe={key:0,class:"text-xs"},Ae={key:1,class:"pr-3"},qe=e.defineComponent({__name:"OneSidebarLink",props:we,emits:["update-collapsed"],setup(c,{emit:p}){const l=c,r=p,C=e.computed(()=>l.href??!1),u=e.computed(()=>i(l)),i=n=>n.route?n.route:n.routeName?{name:n.routeName}:null,f=e.ref(l.open),B=()=>{f.value=!f.value},k=(n,h)=>{l.subItems&&l.subItems.length>0&&!h&&(n.preventDefault(),B()),(h||!l.subItems||l.subItems.length===0)&&l.isMobile&&r("update-collapsed")};return(n,h)=>{const w=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.labelTop?(e.openBlock(),e.createElementBlock("p",{key:0,style:{"font-size":"10px"},class:e.normalizeClass([{"text-center h-[15px]":n.slim},"text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"])},e.toDisplayString(n.slim?"":n.labelTop),3)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("a",{key:1,href:C.value,class:e.normalizeClass(["flex items-center relative rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:k},[e.createElementVNode("div",ge,[n.icon?(e.openBlock(),e.createElementBlock("div",Ve,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Ee,[e.createElementVNode("span",Ne,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ml-auto",[(n.slim,"")]])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,Be)):e.createCommentVNode("",!0),!C.value&&u.value?(e.openBlock(),e.createBlock(w,{key:2,to:u.value,class:e.normalizeClass(["relative flex items-center cursor-pointer rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":"bg-primary-10 !text-primary-base",onClick:e.withModifiers(k,["prevent"])},{default:e.withCtx(()=>[e.createElementVNode("div",Le,[n.icon?(e.openBlock(),e.createElementBlock("div",_e,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Se,[e.createElementVNode("span",$e,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",De,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])]),_:1},8,["to","class"])):e.createCommentVNode("",!0),!C.value&&!u.value?(e.openBlock(),e.createElementBlock("span",{key:3,onClick:e.withModifiers(k,["prevent"]),class:e.normalizeClass([[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"],"mb-0.5 relative flex items-center cursor-pointer rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"])},[e.createElementVNode("div",ze,[n.icon?(e.openBlock(),e.createElementBlock("div",Me,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Oe,[e.createElementVNode("span",Te,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",je,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(v.render):e.unref(v.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),f.value&&l.subItems?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass([n.slim?"":"pl-[36px] pr-3"])},[e.createElementVNode("div",{class:e.normalizeClass([(n.slim,"")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.subItems,t=>(e.openBlock(),e.createElementBlock("div",{key:t.label,class:e.normalizeClass([(n.slim,"")])},[t.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.href,class:"flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"},[e.createElementVNode("div",Ie,[n.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Fe,e.toDisplayString(t.label),1)),t.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([n.slim?"pl-2 h-[15px]":"pr-1"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:"w-[15px] h-[15px] mx-auto"}))],2)):e.createCommentVNode("",!0)])],8,He)):i(t)?(e.openBlock(),e.createBlock(w,{key:1,to:i(t),onClick:h[0]||(h[0]=e.withModifiers(s=>k(s,!0),["prevent"])),class:"flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",exact:n.exact,"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base"},{default:e.withCtx(()=>[n.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Pe,e.toDisplayString(t.label),1)),t.icon?(e.openBlock(),e.createElementBlock("div",Ae,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:"w-[20px] h-[20px] mx-auto"}))])):e.createCommentVNode("",!0)]),_:2},1032,["to","exact"])):e.createCommentVNode("",!0)],2))),128))],2)],2)):e.createCommentVNode("",!0)],64)}}}),We={},Re={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Ue(c,p){return e.openBlock(),e.createElementBlock("svg",Re,p[0]||(p[0]=[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),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),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)]))}const he=q._export_sfc(We,[["render",Ue]]),Ce=c=>{if(Array.isArray(c))return c.map(e.unref);const p=e.unref(c);return Array.isArray(p)?p:[p]},Ze=(c,p)=>{let l;const r=C=>{C.forEach(u=>{const i=e.unref(u);if(i){if(!(i instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:i,array:c}),new Error("Vuestic: Unable to observe non-HTMLElement");i&&(l==null||l.observe(i))}})};return e.watch(c,C=>{l==null||l.disconnect(),r(Ce(C))}),e.onMounted(()=>{l=new ResizeObserver(p),r(Ce(c))}),e.onBeforeUnmount(()=>l==null?void 0:l.disconnect()),l},Xe=c=>{const p=e.ref(null);return Ze([c],()=>{var l;p.value=((l=c.value)==null?void 0:l.clientWidth)??null}),e.watchEffect(()=>{var l;p.value=((l=c.value)==null?void 0:l.clientWidth)??null}),p},Ge=["href"],Je={class:"rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2"},Ke={class:""},Qe={class:"",style:{"font-size":"10px"}},Ye={key:1,class:"flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[220px] space-x-3 px-2"},e1={class:"flex items-center text-[#525B66] space-x-3"},t1={style:{"font-size":"10px"}},o1={class:"relative -right-2"},l1=["href"],n1={class:"flex flex-nowrap items-center w-max h-[24px]"},a1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},r1={class:"py-[8px] pl-0 pr-[8px]"},s1=["href"],i1={class:"flex flex-nowrap items-center w-max h-[24px]"},c1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},p1={class:"py-[8px] pl-0 pr-[8px]"},d1={key:4,class:"custom-select ml-1 w-full relative pt-2 pb-2"},m1={class:"pl-1"},u1={key:0,class:"dropdown w-[220px] z-50 text-[#525B66]"},C1=["onClick"],f1={key:0,class:"mt-0.5 h-0 border-t border-secondary-stroke mb-1"},h1={key:0,class:"tooltip-text"},v1={key:0},k1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},w1={key:2,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},y1=["href"],x1={key:0,class:"tooltip-text"},b1={key:0},B1=e.defineComponent({__name:"OneSidebar",props:fe,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(c,{emit:p}){var V,E,N;const l=p,r=c,C=e.computed(()=>{var o;return((o=r.news)==null?void 0:o.unseenCount)||0}),u=()=>{l("show-news")},i=e.ref(!1),f=e.ref(r.hoverable);e.watch(r,()=>{r.modelValue?f.value=!0:f.value=!1}),r.modelValue&&(f.value=!0);const B=e.shallowRef(),k=e.computed(()=>{const o=[];if(r.slim||o.push("fixed"),!w.value)if(!r.isMobile)o.push("w-[260px]");else return o.push("w-full");return o.join(" ")}),n=e.computed(()=>""),h=o=>{i.value=f.value&&o},w=e.computed(()=>f.value&&!i.value),t=e.computed(()=>!!w.value),s=e.ref(),O=Xe(s),g=e.computed(()=>r.modelValue===!0||O.value===null?!0:O.value>0),T=e.ref(),j=()=>w.value?r.minimizedWidth:r.width;e.watchEffect(()=>{const o=j();setTimeout(()=>{T.value=o})});const y=e.ref(!1),x=e.ref((V=r.app)!=null&&V.availableLang&&((E=r.app)==null?void 0:E.availableLang.length)>0?(N=r.app)==null?void 0:N.availableLang.find(o=>{var d;return o.id==((d=r.app)==null?void 0:d.lang)}):null),H=()=>{y.value=!y.value},I=o=>{x.value=o,y.value=!1,l("select-language",o)},F=()=>{var o,d;(d=(o=r.app)==null?void 0:o.selectedPlan)!=null&&d.url&&(window.location.href=r.app.selectedPlan.url)};return(o,d)=>{var L,_,S,$,D,z,a,b,M,W,R,U,Z,X,G,J,K,Q,Y,ee,te,oe,le,ne,ae,re,se,ie,ce,pe,de;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:B,class:e.normalizeClass(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40",k.value]),style:e.normalizeStyle(n.value),onMouseenter:d[1]||(d[1]=m=>h(!0)),onMouseleave:d[2]||(d[2]=m=>h(!1))},[e.withDirectives(e.createElementVNode("div",{class:"overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 px-1 ml-1 mr-1 mt-2 flex-grow",ref_key:"menu",ref:s},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,m=>(e.openBlock(),e.createBlock(qe,{key:m.label,labelTop:m.labelTop,isMobile:o.isMobile,subItems:m.subItems,open:m.open,icon:m.icon,label:m.label,route:m.route,href:m.href,slim:t.value,"route-name":m.routeName,exact:m.exact||!1,onUpdateCollapsed:d[0]||(d[0]=P=>l("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","href","slim","route-name","exact"]))),128))],512),[[e.vShow,g.value]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["mt-auto shrink rounded-2xl mx-2",[t.value?"":"px-2 bg-white pt-2.5 py-2"]])},[e.createElementVNode("div",{class:e.normalizeClass([t.value?"hidden":"w-full hidden md:flex-col md:flex"])},[(L=o.app)!=null&&L.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:(_=o.app)==null?void 0:_.offerPlan.url,class:"w-full min-w-[220px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",target:"_blank",rel:"noopener noreferrer"},[e.createElementVNode("div",Je,[e.createElementVNode("div",Ke,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((S=o.app)==null?void 0:S.offerPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("p",Qe,[e.createElementVNode("strong",null,e.toDisplayString(($=o.app)==null?void 0:$.offerPlan.title),1),e.createTextVNode(" «"+e.toDisplayString((D=o.app)==null?void 0:D.offerPlan.name)+"» ",1),d[3]||(d[3]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(e.toDisplayString((z=o.app)==null?void 0:z.offerPlan.title1),1)])])],8,Ge)):e.createCommentVNode("",!0),(a=o.app)!=null&&a.selectedPlan&&((b=o.app)!=null&&b.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",Ye,[e.createElementVNode("div",e1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((M=o.app)==null?void 0:M.selectedPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("div",t1,[e.createElementVNode("p",null,e.toDisplayString(((W=o.app)==null?void 0:W.selectedPlan.name)||""),1),e.createElementVNode("p",null,e.toDisplayString(((R=o.app)==null?void 0:R.selectedPlan.title)||""),1)])]),e.createElementVNode("div",o1,[e.createVNode(A._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0] !rounded-lg",variant:"touch",icon:e.unref(v.render$2),onClick:F},null,8,["icon"])])])):e.createCommentVNode("",!0),(U=o.app)!=null&&U.terms?(e.openBlock(),e.createElementBlock("a",{key:2,href:(Z=o.app)==null?void 0:Z.terms.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",n1,[e.createElementVNode("div",a1,[e.createElementVNode("span",r1,e.toDisplayString(((X=o.app)==null?void 0:X.terms.label)||"Terms"),1)])])],8,l1)):e.createCommentVNode("",!0),(G=o.app)!=null&&G.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(J=o.app)==null?void 0:J.offer.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",i1,[e.createElementVNode("div",c1,[e.createElementVNode("span",p1,e.toDisplayString(((K=o.app)==null?void 0:K.offer.label)||"Offert"),1)])])],8,s1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",d1,[e.createElementVNode("div",{class:"select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",onClick:H},[e.createVNode(e.unref(v.render$3),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((ee=x.value)==null?void 0:ee.name)+" ",1),e.createElementVNode("span",m1,e.toDisplayString(y.value?"▲":"▼"),1)]),y.value?(e.openBlock(),e.createElementBlock("div",u1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=o.app)==null?void 0:te.availableLang,m=>{var P,me;return e.openBlock(),e.createElementBlock("div",{key:m.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":m.id!==((P=x.value)==null?void 0:P.id),"text-gray-300":m.id===((me=x.value)==null?void 0:me.id)}]),onClick:dt=>{var ue;return m.id!==((ue=x.value)==null?void 0:ue.id)&&I(m)}},e.toDisplayString(m.name),11,C1)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",f1)),e.createElementVNode("div",{class:e.normalizeClass([t.value?"grid":"flex space-x-2"])},[o.news?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1",[t.value?"w-[44px] h-[44px] text-center":"h-[36x] pr-2"]]),onClick:u},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",h1,e.toDisplayString(o.news.menuLabel||"News"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["w-full",[t.value?"":"flex flex-nowrap items-center h-[36px]"]])},[e.createElementVNode("div",{class:e.normalizeClass(["relative items-center",[t.value?"":"flex flex-row space-x-1"]])},[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(he),{class:"w-[24px] h-[24px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",v1,e.toDisplayString(o.news.menuLabel||"News"),1)),C.value>0?(e.openBlock(),e.createElementBlock("span",k1)):e.createCommentVNode("",!0),C.value>0?(e.openBlock(),e.createElementBlock("span",w1)):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),(oe=o.app)!=null&&oe.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(ne=(le=o.app)==null?void 0:le.support)==null?void 0:ne.url,class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[t.value?"w-[44px] h-[44px] text-center":"h-[36x]"]])},[(re=(ae=o.app)==null?void 0:ae.support)!=null&&re.label?(e.openBlock(),e.createElementBlock("div",x1,e.toDisplayString(((ie=(se=o.app)==null?void 0:se.support)==null?void 0:ie.label)||"Support"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["w-full",[t.value?"":"flex flex-nowrap items-center h-[36px]"]])},[e.createElementVNode("div",{class:e.normalizeClass(["flex-shrink-0 relative",[t.value?"mx-auto w-[36px] ":"flex space-x-2 px-1"]])},[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(be)),{class:"w-[20px] h-[20px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",b1,e.toDisplayString(((pe=(ce=o.app)==null?void 0:ce.support)==null?void 0:pe.label)||"Support"),1))],2)],2)],10,y1)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[t.value?"hidden":"w-full"],"text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])},[d[4]||(d[4]=e.createElementVNode("span",null,[e.createTextVNode("Powered by "),e.createElementVNode("span",{class:"text-blue-700"},"OneB")],-1)),e.createElementVNode("span",null,e.toDisplayString((de=o.app)==null?void 0:de.version),1)],2)],2),[[e.vShow,g.value]])],38)}}});const ve=q._export_sfc(B1,[["__scopeId","data-v-c9685b08"]]),g1={class:"h-screen h-dvh relative"},V1={class:"header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",style:{background:"rgba(245, 247, 251, 0.80)","backdrop-filter":"blur(5px)"}},E1={class:"p-2 flex-shrink-0"},N1={class:"w-10 h-10 flex items-center flex-shrink-0"},L1=["src"],_1={class:"whitespace-nowrap font-semibold text-xl"},S1={class:"text-xs whitespace-nowrap"},$1={class:"w-full"},D1={class:"w-full flex justify-end pr-4"},z1={class:"flex items-center space-x-1"},M1={key:0,class:"module-border-wrap flex justify-center items-center"},O1={class:"h-4 w-4"},T1={class:"ml-2 hidden sm:flex"},j1={class:"flex h-full"},H1={key:0},I1={key:0,class:"sm:w-[560px] w-full relative h-full"},F1={class:"h-full relative"},P1={class:"flex items-center p-3 space-x-1.5"},A1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},q1={key:0,class:"p-5"},W1={key:1},R1={class:"p-4 text-gray text-center"},U1={key:2},Z1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},X1={key:0},G1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},J1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},K1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},Q1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},Y1={class:"text-lg font-medium"},et={class:"text-sm text-gray-600"},tt={key:0},ot=["src"],lt={class:"text-sm whitespace-pre-wrap break-words"},nt={key:1},at=["href"],rt={class:"text-sm flex items-center justify-between mt-1"},st={class:"text-gray-800"},it=["href"],ct=e.defineComponent({__name:"OneMainLayout",props:ye,emits:["load-news","load-tariff","open-tariff"],setup(c,{emit:p}){const l=p,r=c;let C=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),C="1");const u=e.ref(C==="1");e.ref(!0),e.watch(u,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const i=e.ref(!1),f=()=>{i.value=!i.value,i.value&&l("load-news")},B=e.computed(()=>r.showHeadre);e.watch(()=>r.showHeadre,()=>{B.value=r.showHeadre});const k=e.ref(window.innerWidth),n=()=>{k.value=window.innerWidth},h=e.computed(()=>k.value<=768);e.onMounted(()=>{window.addEventListener("resize",n)}),e.onUnmounted(()=>{window.removeEventListener("resize",n)});const w=t=>{var s;(s=r.handlers)==null||s.onSetLang(t)};return(t,s)=>{var g,T,j,y,x,H,I,F,V,E,N,o,d,L,_,S,$,D,z;const O=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",g1,[e.withDirectives(e.createElementVNode("div",V1,[e.createElementVNode("div",E1,[e.createElementVNode("button",{onClick:s[0]||(s[0]=a=>u.value=!u.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"},[e.createVNode(e.unref(xe),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",N1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,L1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(O,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var a,b;return[e.createElementVNode("div",_1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",S1,e.toDisplayString((b=(a=t.app)==null?void 0:a.workspace)==null?void 0:b.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",$1,[e.createElementVNode("div",D1,[e.createElementVNode("div",z1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff&&((g=t.improveTariff)!=null&&g.label)&&t.improveTariff.label?(e.openBlock(),e.createElementBlock("div",M1,[e.createElementVNode("button",{type:"button",class:"cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",onClick:s[1]||(s[1]=(...a)=>{var b,M;return((b=t.handlers)==null?void 0:b.onImproveTariff)&&((M=t.handlers)==null?void 0:M.onImproveTariff(...a))}),style:{"font-size":"10px"}},[e.createElementVNode("div",O1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((T=t.improveTariff)==null?void 0:T.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",T1,e.toDisplayString((j=t.improveTariff)==null?void 0:j.label),1)])])):e.createCommentVNode("",!0),t.help?(e.openBlock(),e.createBlock(v.OneHelpMenu,{key:1,help:t.help},null,8,["help"])):e.createCommentVNode("",!0),((y=t.handlers)==null?void 0:y.onBrowse)!=null?(e.openBlock(),e.createBlock(v.OneBrowserMenu,{key:2,workspace:(x=t.app)==null?void 0:x.workspace,apps:((H=t.app)==null?void 0:H.apps)||[],"change-label":((I=t.labels)==null?void 0:I.change)||"Change","apps-title":((F=t.labels)==null?void 0:F.apps)||"Apps","on-app":(V=t.handlers)==null?void 0:V.onApp,"on-change":(E=t.handlers)==null?void 0:E.onChange,onOpen:(N=t.handlers)==null?void 0:N.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(v._sfc_main,{user:t.user,menu:t.menu,app:t.app,"account-label":((o=t.labels)==null?void 0:o.account)||"Account","logout-label":((d=t.labels)==null?void 0:d.logout)||"Logout","version-label":((L=t.labels)==null?void 0:L.version)||"","on-account":(_=t.handlers)==null?void 0:_.onAccount,"on-logout":(S=t.handlers)==null?void 0:S.onLogout},null,8,["user","menu","app","account-label","logout-label","version-label","on-account","on-logout"])])])])],512),[[e.vShow,B.value]]),e.createElementVNode("div",j1,[!h.value||!u.value?(e.openBlock(),e.createBlock(ve,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:h.value,modelValue:u.value,"onUpdate:modelValue":s[2]||(s[2]=a=>u.value=a),onShowNews:f,onSelectLanguage:w,onUpdateCollapsed:s[3]||(s[3]=a=>u.value=!u.value)},null,8,["app","items","with-news","news","isMobile","modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([[u.value?"sm:ml-[60px]":"sm:ml-[260px] hidden sm:block"],"body scroll-body w-full overflow-y-auto"])},[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all",{"pt-[56px]":B.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",H1,[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",onClick:s[4]||(s[4]=e.withModifiers(a=>i.value=!1,["self"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white",[i.value?"sm:w-[560px] w-full":"w-0"]])},[i.value?(e.openBlock(),e.createElementBlock("div",I1,[e.createElementVNode("div",F1,[e.createElementVNode("div",P1,[e.createVNode(he,{class:"w-10 h-10"}),s[6]||(s[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(A._sfc_main,{variant:"touch",icon:e.unref(ke.render),onClick:s[5]||(s[5]=a=>i.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",A1,[t.news.isLoading&&(($=t.news.items)==null?void 0:$.length)===0?(e.openBlock(),e.createElementBlock("div",q1,[e.createVNode(A.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((D=t.news.items)==null?void 0:D.length)===0?(e.openBlock(),e.createElementBlock("div",W1,[e.createElementVNode("div",R1,e.toDisplayString(t.news.emptyText),1)])):((z=t.news.items)==null?void 0:z.length)>0?(e.openBlock(),e.createElementBlock("div",U1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"p-3"},[e.createElementVNode("div",Z1,[e.createElementVNode("div",null,[a.type?(e.openBlock(),e.createElementBlock("div",X1,[a.type===10?(e.openBlock(),e.createElementBlock("span",G1,"update")):a.type===11?(e.openBlock(),e.createElementBlock("span",J1,"warning")):a.type===12?(e.openBlock(),e.createElementBlock("span",K1,"notice")):a.type===13?(e.openBlock(),e.createElementBlock("span",Q1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Y1,e.toDisplayString(a.title),1),e.createElementVNode("div",et,e.toDisplayString(a.summary),1)]),a.image_url?(e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("img",{src:a.image_url,alt:"",class:"w-full rounded-md"},null,8,ot)])):e.createCommentVNode("",!0),e.createElementVNode("div",lt,e.toDisplayString(a.body),1),a.video_url?(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("a",{href:a.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,at)])):e.createCommentVNode("",!0),e.createElementVNode("div",rt,[e.createElementVNode("span",st,e.toDisplayString(a.published),1),a.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:a.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,it)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const pt=q._export_sfc(ct,[["__scopeId","data-v-7935faab"]]);exports.OneMainLayout=pt;exports.OneSidebar=ve;
|
package/dist/layout/index.js
CHANGED
|
@@ -207,7 +207,7 @@ const le = ["href"], oe = { class: "flex flex-nowrap items-center w-full h-[24px
|
|
|
207
207
|
r.labelTop ? (t(), l("p", {
|
|
208
208
|
key: 0,
|
|
209
209
|
style: { "font-size": "10px" },
|
|
210
|
-
class: d([{ "text-center h-[15px]": r.slim }, "text-[#a1a5b0] px-2 pt-0 pb-0.5 font-medium"])
|
|
210
|
+
class: d([{ "text-center h-[15px]": r.slim }, "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"])
|
|
211
211
|
}, i(r.slim ? "" : r.labelTop), 3)) : n("", !0),
|
|
212
212
|
b.value ? (t(), l("a", {
|
|
213
213
|
key: 1,
|
|
@@ -235,8 +235,6 @@ const le = ["href"], oe = { class: "flex flex-nowrap items-center w-full h-[24px
|
|
|
235
235
|
to: x.value,
|
|
236
236
|
class: d(["relative flex items-center cursor-pointer rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
|
|
237
237
|
"active-class": "bg-primary-10 !text-primary-base",
|
|
238
|
-
"exact-active-class": "bg-primary-10 !text-primary-base",
|
|
239
|
-
exact: r.exact,
|
|
240
238
|
onClick: Y(S, ["prevent"])
|
|
241
239
|
}, {
|
|
242
240
|
default: n1(() => [
|
|
@@ -253,7 +251,7 @@ const le = ["href"], oe = { class: "flex flex-nowrap items-center w-full h-[24px
|
|
|
253
251
|
])
|
|
254
252
|
]),
|
|
255
253
|
_: 1
|
|
256
|
-
}, 8, ["to", "
|
|
254
|
+
}, 8, ["to", "class"])) : n("", !0),
|
|
257
255
|
!b.value && !x.value ? (t(), l("span", {
|
|
258
256
|
key: 3,
|
|
259
257
|
onClick: Y(S, ["prevent"]),
|
|
@@ -378,34 +376,34 @@ const N1 = /* @__PURE__ */ p1(_e, [["render", $e]]), H1 = (f) => {
|
|
|
378
376
|
var a;
|
|
379
377
|
m.value = ((a = f.value) == null ? void 0 : a.clientWidth) ?? null;
|
|
380
378
|
}), m;
|
|
381
|
-
}, Me =
|
|
379
|
+
}, Me = ["href"], Ve = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2" }, Oe = { class: "" }, Te = {
|
|
382
380
|
class: "",
|
|
383
381
|
style: { "font-size": "10px" }
|
|
384
|
-
},
|
|
382
|
+
}, je = {
|
|
385
383
|
key: 1,
|
|
386
384
|
class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[220px] space-x-3 px-2"
|
|
387
|
-
},
|
|
385
|
+
}, ze = { class: "flex items-center text-[#525B66] space-x-3" }, He = { style: { "font-size": "10px" } }, Ie = { class: "relative -right-2" }, Ee = ["href"], Ae = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Pe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Fe = { class: "py-[8px] pl-0 pr-[8px]" }, Ne = ["href"], We = { class: "flex flex-nowrap items-center w-max h-[24px]" }, qe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Re = { class: "py-[8px] pl-0 pr-[8px]" }, Ue = {
|
|
388
386
|
key: 4,
|
|
389
387
|
class: "custom-select ml-1 w-full relative pt-2 pb-2"
|
|
390
|
-
},
|
|
388
|
+
}, Ze = { class: "pl-1" }, De = {
|
|
391
389
|
key: 0,
|
|
392
390
|
class: "dropdown w-[220px] z-50 text-[#525B66]"
|
|
393
|
-
},
|
|
391
|
+
}, Ge = ["onClick"], Je = {
|
|
394
392
|
key: 0,
|
|
395
393
|
class: "mt-0.5 h-0 border-t border-secondary-stroke mb-1"
|
|
396
|
-
},
|
|
394
|
+
}, Ke = {
|
|
397
395
|
key: 0,
|
|
398
396
|
class: "tooltip-text"
|
|
399
|
-
},
|
|
397
|
+
}, Qe = { key: 0 }, Xe = {
|
|
400
398
|
key: 1,
|
|
401
399
|
class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
|
|
402
|
-
},
|
|
400
|
+
}, Ye = {
|
|
403
401
|
key: 2,
|
|
404
402
|
class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
|
|
405
|
-
},
|
|
403
|
+
}, e0 = ["href"], t0 = {
|
|
406
404
|
key: 0,
|
|
407
405
|
class: "tooltip-text"
|
|
408
|
-
},
|
|
406
|
+
}, s0 = { key: 0 }, l0 = /* @__PURE__ */ i1({
|
|
409
407
|
__name: "OneSidebar",
|
|
410
408
|
props: F1,
|
|
411
409
|
emits: ["show-news", "show-tariff", "select-language", "update-collapsed", "update:modelValue"],
|
|
@@ -481,7 +479,9 @@ const N1 = /* @__PURE__ */ p1(_e, [["render", $e]]), H1 = (f) => {
|
|
|
481
479
|
], 512), [
|
|
482
480
|
[r1, z.value]
|
|
483
481
|
]),
|
|
484
|
-
a1(e("div",
|
|
482
|
+
a1(e("div", {
|
|
483
|
+
class: d(["mt-auto shrink rounded-2xl mx-2", [s.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
|
|
484
|
+
}, [
|
|
485
485
|
e("div", {
|
|
486
486
|
class: d([s.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
|
|
487
487
|
}, [
|
|
@@ -492,29 +492,29 @@ const N1 = /* @__PURE__ */ p1(_e, [["render", $e]]), H1 = (f) => {
|
|
|
492
492
|
target: "_blank",
|
|
493
493
|
rel: "noopener noreferrer"
|
|
494
494
|
}, [
|
|
495
|
-
e("div",
|
|
496
|
-
e("div",
|
|
495
|
+
e("div", Ve, [
|
|
496
|
+
e("div", Oe, [
|
|
497
497
|
(t(), v(L((F = o.app) == null ? void 0 : F.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
498
498
|
]),
|
|
499
|
-
e("p",
|
|
499
|
+
e("p", Te, [
|
|
500
500
|
e("strong", null, i((N = o.app) == null ? void 0 : N.offerPlan.title), 1),
|
|
501
501
|
X(" «" + i((W = o.app) == null ? void 0 : W.offerPlan.name) + "» ", 1),
|
|
502
502
|
C[3] || (C[3] = e("br", null, null, -1)),
|
|
503
503
|
X(i((q = o.app) == null ? void 0 : q.offerPlan.title1), 1)
|
|
504
504
|
])
|
|
505
505
|
])
|
|
506
|
-
], 8,
|
|
507
|
-
(p = o.app) != null && p.selectedPlan && ((O = o.app) != null && O.selectedPlan.name) ? (t(), l("div",
|
|
508
|
-
e("div",
|
|
506
|
+
], 8, Me)) : n("", !0),
|
|
507
|
+
(p = o.app) != null && p.selectedPlan && ((O = o.app) != null && O.selectedPlan.name) ? (t(), l("div", je, [
|
|
508
|
+
e("div", ze, [
|
|
509
509
|
e("div", null, [
|
|
510
510
|
(t(), v(L((R = o.app) == null ? void 0 : R.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
511
511
|
]),
|
|
512
|
-
e("div",
|
|
512
|
+
e("div", He, [
|
|
513
513
|
e("p", null, i(((u1 = o.app) == null ? void 0 : u1.selectedPlan.name) || ""), 1),
|
|
514
514
|
e("p", null, i(((d1 = o.app) == null ? void 0 : d1.selectedPlan.title) || ""), 1)
|
|
515
515
|
])
|
|
516
516
|
]),
|
|
517
|
-
e("div",
|
|
517
|
+
e("div", Ie, [
|
|
518
518
|
j(P1, {
|
|
519
519
|
class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
|
|
520
520
|
variant: "touch",
|
|
@@ -529,49 +529,49 @@ const N1 = /* @__PURE__ */ p1(_e, [["render", $e]]), H1 = (f) => {
|
|
|
529
529
|
target: "_blank",
|
|
530
530
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
|
|
531
531
|
}, [
|
|
532
|
-
e("div",
|
|
533
|
-
e("div",
|
|
534
|
-
e("span",
|
|
532
|
+
e("div", Ae, [
|
|
533
|
+
e("div", Pe, [
|
|
534
|
+
e("span", Fe, i(((f1 = o.app) == null ? void 0 : f1.terms.label) || "Terms"), 1)
|
|
535
535
|
])
|
|
536
536
|
])
|
|
537
|
-
], 8,
|
|
537
|
+
], 8, Ee)) : n("", !0),
|
|
538
538
|
(m1 = o.app) != null && m1.offer ? (t(), l("a", {
|
|
539
539
|
key: 3,
|
|
540
540
|
href: (v1 = o.app) == null ? void 0 : v1.offer.url,
|
|
541
541
|
target: "_blank",
|
|
542
542
|
class: "ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
|
|
543
543
|
}, [
|
|
544
|
-
e("div",
|
|
545
|
-
e("div",
|
|
546
|
-
e("span",
|
|
544
|
+
e("div", We, [
|
|
545
|
+
e("div", qe, [
|
|
546
|
+
e("span", Re, i(((C1 = o.app) == null ? void 0 : C1.offer.label) || "Offert"), 1)
|
|
547
547
|
])
|
|
548
548
|
])
|
|
549
|
-
], 8,
|
|
550
|
-
(x1 = (w1 = o.app) == null ? void 0 : w1.availableLang) != null && x1.length ? (t(), l("div",
|
|
549
|
+
], 8, Ne)) : n("", !0),
|
|
550
|
+
(x1 = (w1 = o.app) == null ? void 0 : w1.availableLang) != null && x1.length ? (t(), l("div", Ue, [
|
|
551
551
|
e("div", {
|
|
552
552
|
class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
|
|
553
553
|
onClick: J
|
|
554
554
|
}, [
|
|
555
555
|
j(g(D1), { class: "w-4" }),
|
|
556
556
|
X(" " + i((b1 = V.value) == null ? void 0 : b1.name) + " ", 1),
|
|
557
|
-
e("span",
|
|
557
|
+
e("span", Ze, i(M.value ? "▲" : "▼"), 1)
|
|
558
558
|
]),
|
|
559
|
-
M.value ? (t(), l("div",
|
|
559
|
+
M.value ? (t(), l("div", De, [
|
|
560
560
|
(t(!0), l(U, null, e1((y1 = o.app) == null ? void 0 : y1.availableLang, (w) => {
|
|
561
561
|
var s1, T1;
|
|
562
562
|
return t(), l("div", {
|
|
563
563
|
key: w.id,
|
|
564
564
|
class: d(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": w.id !== ((s1 = V.value) == null ? void 0 : s1.id), "text-gray-300": w.id === ((T1 = V.value) == null ? void 0 : T1.id) }]),
|
|
565
|
-
onClick: (
|
|
565
|
+
onClick: (U0) => {
|
|
566
566
|
var j1;
|
|
567
567
|
return w.id !== ((j1 = V.value) == null ? void 0 : j1.id) && K(w);
|
|
568
568
|
}
|
|
569
|
-
}, i(w.name), 11,
|
|
569
|
+
}, i(w.name), 11, Ge);
|
|
570
570
|
}), 128))
|
|
571
571
|
])) : n("", !0)
|
|
572
572
|
])) : n("", !0)
|
|
573
573
|
], 2),
|
|
574
|
-
s.value ? n("", !0) : (t(), l("div",
|
|
574
|
+
s.value ? n("", !0) : (t(), l("div", Je)),
|
|
575
575
|
e("div", {
|
|
576
576
|
class: d([s.value ? "grid" : "flex space-x-2"])
|
|
577
577
|
}, [
|
|
@@ -581,7 +581,7 @@ const N1 = /* @__PURE__ */ p1(_e, [["render", $e]]), H1 = (f) => {
|
|
|
581
581
|
class: d(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [s.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
|
|
582
582
|
onClick: x
|
|
583
583
|
}, [
|
|
584
|
-
o.news.menuLabel ? (t(), l("div",
|
|
584
|
+
o.news.menuLabel ? (t(), l("div", Ke, i(o.news.menuLabel || "News"), 1)) : n("", !0),
|
|
585
585
|
e("div", {
|
|
586
586
|
class: d(["w-full", [s.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
587
587
|
}, [
|
|
@@ -591,9 +591,9 @@ const N1 = /* @__PURE__ */ p1(_e, [["render", $e]]), H1 = (f) => {
|
|
|
591
591
|
e("div", null, [
|
|
592
592
|
(t(), v(L(N1), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
593
593
|
]),
|
|
594
|
-
s.value ? n("", !0) : (t(), l("div",
|
|
595
|
-
b.value > 0 ? (t(), l("span",
|
|
596
|
-
b.value > 0 ? (t(), l("span",
|
|
594
|
+
s.value ? n("", !0) : (t(), l("div", Qe, i(o.news.menuLabel || "News"), 1)),
|
|
595
|
+
b.value > 0 ? (t(), l("span", Xe)) : n("", !0),
|
|
596
|
+
b.value > 0 ? (t(), l("span", Ye)) : n("", !0)
|
|
597
597
|
], 2)
|
|
598
598
|
], 2)
|
|
599
599
|
], 2)) : n("", !0),
|
|
@@ -602,7 +602,7 @@ const N1 = /* @__PURE__ */ p1(_e, [["render", $e]]), H1 = (f) => {
|
|
|
602
602
|
href: (_1 = (L1 = o.app) == null ? void 0 : L1.support) == null ? void 0 : _1.url,
|
|
603
603
|
class: d(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [s.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
|
|
604
604
|
}, [
|
|
605
|
-
($1 = (k1 = o.app) == null ? void 0 : k1.support) != null && $1.label ? (t(), l("div",
|
|
605
|
+
($1 = (k1 = o.app) == null ? void 0 : k1.support) != null && $1.label ? (t(), l("div", t0, i(((B1 = (S1 = o.app) == null ? void 0 : S1.support) == null ? void 0 : B1.label) || "Support"), 1)) : n("", !0),
|
|
606
606
|
e("div", {
|
|
607
607
|
class: d(["w-full", [s.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
608
608
|
}, [
|
|
@@ -612,10 +612,10 @@ const N1 = /* @__PURE__ */ p1(_e, [["render", $e]]), H1 = (f) => {
|
|
|
612
612
|
e("div", null, [
|
|
613
613
|
(t(), v(L(g(se)), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
614
614
|
]),
|
|
615
|
-
s.value ? n("", !0) : (t(), l("div",
|
|
615
|
+
s.value ? n("", !0) : (t(), l("div", s0, i(((V1 = (M1 = o.app) == null ? void 0 : M1.support) == null ? void 0 : V1.label) || "Support"), 1))
|
|
616
616
|
], 2)
|
|
617
617
|
], 2)
|
|
618
|
-
], 10,
|
|
618
|
+
], 10, e0)) : n("", !0)
|
|
619
619
|
], 2),
|
|
620
620
|
e("p", {
|
|
621
621
|
class: d([[s.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
|
|
@@ -626,44 +626,44 @@ const N1 = /* @__PURE__ */ p1(_e, [["render", $e]]), H1 = (f) => {
|
|
|
626
626
|
], -1)),
|
|
627
627
|
e("span", null, i((O1 = o.app) == null ? void 0 : O1.version), 1)
|
|
628
628
|
], 2)
|
|
629
|
-
],
|
|
629
|
+
], 2), [
|
|
630
630
|
[r1, z.value]
|
|
631
631
|
])
|
|
632
632
|
], 38);
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
635
|
});
|
|
636
|
-
const
|
|
636
|
+
const o0 = /* @__PURE__ */ p1(l0, [["__scopeId", "data-v-c9685b08"]]), n0 = { class: "h-screen h-dvh relative" }, a0 = {
|
|
637
637
|
class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
|
|
638
638
|
style: { background: "rgba(245, 247, 251, 0.80)", "backdrop-filter": "blur(5px)" }
|
|
639
|
-
},
|
|
639
|
+
}, r0 = { class: "p-2 flex-shrink-0" }, i0 = { class: "w-10 h-10 flex items-center flex-shrink-0" }, p0 = ["src"], u0 = { class: "whitespace-nowrap font-semibold text-xl" }, d0 = { class: "text-xs whitespace-nowrap" }, c0 = { class: "w-full" }, h0 = { class: "w-full flex justify-end pr-4" }, f0 = { class: "flex items-center space-x-1" }, m0 = {
|
|
640
640
|
key: 0,
|
|
641
641
|
class: "module-border-wrap flex justify-center items-center"
|
|
642
|
-
},
|
|
642
|
+
}, v0 = { class: "h-4 w-4" }, C0 = { class: "ml-2 hidden sm:flex" }, w0 = { class: "flex h-full" }, x0 = { key: 0 }, b0 = {
|
|
643
643
|
key: 0,
|
|
644
644
|
class: "sm:w-[560px] w-full relative h-full"
|
|
645
|
-
},
|
|
645
|
+
}, y0 = { class: "h-full relative" }, g0 = { class: "flex items-center p-3 space-x-1.5" }, L0 = {
|
|
646
646
|
class: "overflow-auto",
|
|
647
647
|
style: { height: "calc(100% - 62px)" }
|
|
648
|
-
},
|
|
648
|
+
}, _0 = {
|
|
649
649
|
key: 0,
|
|
650
650
|
class: "p-5"
|
|
651
|
-
},
|
|
651
|
+
}, k0 = { key: 1 }, $0 = { class: "p-4 text-gray text-center" }, S0 = { key: 2 }, B0 = {
|
|
652
652
|
class: "p-3 space-y-1.5 rounded-lg",
|
|
653
653
|
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
654
|
-
},
|
|
654
|
+
}, M0 = { key: 0 }, V0 = {
|
|
655
655
|
key: 0,
|
|
656
656
|
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
657
|
-
},
|
|
657
|
+
}, O0 = {
|
|
658
658
|
key: 1,
|
|
659
659
|
class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
|
|
660
|
-
},
|
|
660
|
+
}, T0 = {
|
|
661
661
|
key: 2,
|
|
662
662
|
class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
|
|
663
|
-
},
|
|
663
|
+
}, j0 = {
|
|
664
664
|
key: 3,
|
|
665
665
|
class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
|
|
666
|
-
},
|
|
666
|
+
}, z0 = { class: "text-lg font-medium" }, H0 = { class: "text-sm text-gray-600" }, I0 = { key: 0 }, E0 = ["src"], A0 = { class: "text-sm whitespace-pre-wrap break-words" }, P0 = { key: 1 }, F0 = ["href"], N0 = { class: "text-sm flex items-center justify-between mt-1" }, W0 = { class: "text-gray-800" }, q0 = ["href"], R0 = /* @__PURE__ */ i1({
|
|
667
667
|
__name: "OneMainLayout",
|
|
668
668
|
props: ee,
|
|
669
669
|
emits: ["load-news", "load-tariff", "open-tariff"],
|
|
@@ -700,9 +700,9 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-317ed1c3"]]), a0 = { cl
|
|
|
700
700
|
return (s, c) => {
|
|
701
701
|
var z, D, G, M, V, J, K, Q, H, I, E, o, C, A, P, F, N, W, q;
|
|
702
702
|
const Z = I1("RouterLink");
|
|
703
|
-
return t(), l("div",
|
|
704
|
-
a1(e("div",
|
|
705
|
-
e("div",
|
|
703
|
+
return t(), l("div", n0, [
|
|
704
|
+
a1(e("div", a0, [
|
|
705
|
+
e("div", r0, [
|
|
706
706
|
e("button", {
|
|
707
707
|
onClick: c[0] || (c[0] = (p) => x.value = !x.value),
|
|
708
708
|
class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
|
|
@@ -710,13 +710,13 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-317ed1c3"]]), a0 = { cl
|
|
|
710
710
|
j(g(te), { class: "w-[24px] h-[24px]" })
|
|
711
711
|
])
|
|
712
712
|
]),
|
|
713
|
-
e("div",
|
|
713
|
+
e("div", i0, [
|
|
714
714
|
s.logoSrc != null ? (t(), l("img", {
|
|
715
715
|
key: 0,
|
|
716
716
|
src: s.logoSrc,
|
|
717
717
|
class: "w-8 h-8 mx-auto",
|
|
718
718
|
alt: "logo"
|
|
719
|
-
}, null, 8,
|
|
719
|
+
}, null, 8, p0)) : n("", !0)
|
|
720
720
|
]),
|
|
721
721
|
s.app != null ? (t(), v(Z, {
|
|
722
722
|
key: 0,
|
|
@@ -726,17 +726,17 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-317ed1c3"]]), a0 = { cl
|
|
|
726
726
|
default: n1(() => {
|
|
727
727
|
var p, O;
|
|
728
728
|
return [
|
|
729
|
-
e("div",
|
|
730
|
-
e("div",
|
|
729
|
+
e("div", u0, i(s.app.name), 1),
|
|
730
|
+
e("div", d0, i((O = (p = s.app) == null ? void 0 : p.workspace) == null ? void 0 : O.name), 1)
|
|
731
731
|
];
|
|
732
732
|
}),
|
|
733
733
|
_: 1
|
|
734
734
|
})) : n("", !0),
|
|
735
|
-
e("div",
|
|
736
|
-
e("div",
|
|
737
|
-
e("div",
|
|
735
|
+
e("div", c0, [
|
|
736
|
+
e("div", h0, [
|
|
737
|
+
e("div", f0, [
|
|
738
738
|
z1(s.$slots, "before-header-menu", {}, void 0, !0),
|
|
739
|
-
s.improveTariff && ((z = s.improveTariff) != null && z.label) && s.improveTariff.label ? (t(), l("div",
|
|
739
|
+
s.improveTariff && ((z = s.improveTariff) != null && z.label) && s.improveTariff.label ? (t(), l("div", m0, [
|
|
740
740
|
e("button", {
|
|
741
741
|
type: "button",
|
|
742
742
|
class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
|
|
@@ -747,10 +747,10 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-317ed1c3"]]), a0 = { cl
|
|
|
747
747
|
}),
|
|
748
748
|
style: { "font-size": "10px" }
|
|
749
749
|
}, [
|
|
750
|
-
e("div",
|
|
750
|
+
e("div", v0, [
|
|
751
751
|
(t(), v(L((D = s.improveTariff) == null ? void 0 : D.icon), { class: "h-4 w-4 mx-auto" }))
|
|
752
752
|
]),
|
|
753
|
-
e("span",
|
|
753
|
+
e("span", C0, i((G = s.improveTariff) == null ? void 0 : G.label), 1)
|
|
754
754
|
])
|
|
755
755
|
])) : n("", !0),
|
|
756
756
|
s.help ? (t(), v(G1, {
|
|
@@ -783,8 +783,8 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-317ed1c3"]]), a0 = { cl
|
|
|
783
783
|
], 512), [
|
|
784
784
|
[r1, T.value]
|
|
785
785
|
]),
|
|
786
|
-
e("div",
|
|
787
|
-
!k.value || !x.value ? (t(), v(
|
|
786
|
+
e("div", w0, [
|
|
787
|
+
!k.value || !x.value ? (t(), v(o0, {
|
|
788
788
|
key: 0,
|
|
789
789
|
app: s.app,
|
|
790
790
|
items: s.sidebarItems,
|
|
@@ -807,7 +807,7 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-317ed1c3"]]), a0 = { cl
|
|
|
807
807
|
], 2)
|
|
808
808
|
], 2)
|
|
809
809
|
]),
|
|
810
|
-
s.news ? (t(), l("div",
|
|
810
|
+
s.news ? (t(), l("div", x0, [
|
|
811
811
|
h.value ? (t(), l("div", {
|
|
812
812
|
key: 0,
|
|
813
813
|
class: "fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
@@ -816,9 +816,9 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-317ed1c3"]]), a0 = { cl
|
|
|
816
816
|
e("div", {
|
|
817
817
|
class: d(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [h.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
818
818
|
}, [
|
|
819
|
-
h.value ? (t(), l("div",
|
|
820
|
-
e("div",
|
|
821
|
-
e("div",
|
|
819
|
+
h.value ? (t(), l("div", b0, [
|
|
820
|
+
e("div", y0, [
|
|
821
|
+
e("div", g0, [
|
|
822
822
|
j(N1, { class: "w-10 h-10" }),
|
|
823
823
|
c[6] || (c[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
|
|
824
824
|
e("div", null, [
|
|
@@ -829,47 +829,47 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-317ed1c3"]]), a0 = { cl
|
|
|
829
829
|
}, null, 8, ["icon"])
|
|
830
830
|
])
|
|
831
831
|
]),
|
|
832
|
-
e("div",
|
|
833
|
-
s.news.isLoading && ((N = s.news.items) == null ? void 0 : N.length) === 0 ? (t(), l("div",
|
|
832
|
+
e("div", L0, [
|
|
833
|
+
s.news.isLoading && ((N = s.news.items) == null ? void 0 : N.length) === 0 ? (t(), l("div", _0, [
|
|
834
834
|
j(Q1, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
835
|
-
])) : ((W = s.news.items) == null ? void 0 : W.length) === 0 ? (t(), l("div",
|
|
836
|
-
e("div",
|
|
837
|
-
])) : ((q = s.news.items) == null ? void 0 : q.length) > 0 ? (t(), l("div",
|
|
835
|
+
])) : ((W = s.news.items) == null ? void 0 : W.length) === 0 ? (t(), l("div", k0, [
|
|
836
|
+
e("div", $0, i(s.news.emptyText), 1)
|
|
837
|
+
])) : ((q = s.news.items) == null ? void 0 : q.length) > 0 ? (t(), l("div", S0, [
|
|
838
838
|
(t(!0), l(U, null, e1(s.news.items, (p) => (t(), l("div", {
|
|
839
839
|
key: p.id,
|
|
840
840
|
class: "p-3"
|
|
841
841
|
}, [
|
|
842
|
-
e("div",
|
|
842
|
+
e("div", B0, [
|
|
843
843
|
e("div", null, [
|
|
844
|
-
p.type ? (t(), l("div",
|
|
845
|
-
p.type === 10 ? (t(), l("span",
|
|
844
|
+
p.type ? (t(), l("div", M0, [
|
|
845
|
+
p.type === 10 ? (t(), l("span", V0, "update")) : p.type === 11 ? (t(), l("span", O0, "warning")) : p.type === 12 ? (t(), l("span", T0, "notice")) : p.type === 13 ? (t(), l("span", j0, "ads")) : n("", !0)
|
|
846
846
|
])) : n("", !0),
|
|
847
|
-
e("div",
|
|
848
|
-
e("div",
|
|
847
|
+
e("div", z0, i(p.title), 1),
|
|
848
|
+
e("div", H0, i(p.summary), 1)
|
|
849
849
|
]),
|
|
850
|
-
p.image_url ? (t(), l("div",
|
|
850
|
+
p.image_url ? (t(), l("div", I0, [
|
|
851
851
|
e("img", {
|
|
852
852
|
src: p.image_url,
|
|
853
853
|
alt: "",
|
|
854
854
|
class: "w-full rounded-md"
|
|
855
|
-
}, null, 8,
|
|
855
|
+
}, null, 8, E0)
|
|
856
856
|
])) : n("", !0),
|
|
857
|
-
e("div",
|
|
858
|
-
p.video_url ? (t(), l("div",
|
|
857
|
+
e("div", A0, i(p.body), 1),
|
|
858
|
+
p.video_url ? (t(), l("div", P0, [
|
|
859
859
|
e("a", {
|
|
860
860
|
href: p.video_url,
|
|
861
861
|
target: "_blank",
|
|
862
862
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
863
|
-
}, i(s.news.openVideoText), 9,
|
|
863
|
+
}, i(s.news.openVideoText), 9, F0)
|
|
864
864
|
])) : n("", !0),
|
|
865
|
-
e("div",
|
|
866
|
-
e("span",
|
|
865
|
+
e("div", N0, [
|
|
866
|
+
e("span", W0, i(p.published), 1),
|
|
867
867
|
p.post_url ? (t(), l("a", {
|
|
868
868
|
key: 0,
|
|
869
869
|
href: p.post_url,
|
|
870
870
|
target: "_blank",
|
|
871
871
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
872
|
-
}, i(s.news.moreText), 9,
|
|
872
|
+
}, i(s.news.moreText), 9, q0)) : n("", !0)
|
|
873
873
|
])
|
|
874
874
|
])
|
|
875
875
|
]))), 128))
|
|
@@ -883,8 +883,8 @@ const n0 = /* @__PURE__ */ p1(o0, [["__scopeId", "data-v-317ed1c3"]]), a0 = { cl
|
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
885
|
});
|
|
886
|
-
const
|
|
886
|
+
const X0 = /* @__PURE__ */ p1(R0, [["__scopeId", "data-v-7935faab"]]);
|
|
887
887
|
export {
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
X0 as OneMainLayout,
|
|
889
|
+
o0 as OneSidebar
|
|
890
890
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.sidebar[data-v-
|
|
1
|
+
.sidebar[data-v-c9685b08]{background:rgba(245,247,251,.8);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.dropdown[data-v-c9685b08]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.tooltip[data-v-c9685b08]{position:relative}.tooltip-text[data-v-c9685b08]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-c9685b08]{visibility:visible;opacity:1}.cont[data-v-c9685b08]{flex-direction:column;height:100vh;height:100dvh;justify-content:space-between}.overflow-y-auto[data-v-c9685b08]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-c9685b08]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-c9685b08]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-c9685b08]::-webkit-scrollbar-thumb:hover{background-color:#555}.border-gradient[data-v-c9685b08]{position:relative;background:linear-gradient(to right,#E1A508,#E04040);border-radius:9px}.scroll-body[data-v-7935faab]{height:100dvh}.module-border-wrap[data-v-7935faab]{border-radius:14px;position:relative;background:linear-gradient(to right,#e1a508,#e04040);padding:1px}.overflow-y-auto[data-v-7935faab]::-webkit-scrollbar{width:3px}.overflow-y-auto[data-v-7935faab]::-webkit-scrollbar-track{background-color:#979ca9;border-radius:0}.overflow-y-auto[data-v-7935faab]::-webkit-scrollbar-thumb{background-color:#888;border-radius:2px}.overflow-y-auto[data-v-7935faab]::-webkit-scrollbar-thumb:hover{background-color:#555}.textSm[data-v-3d58c944]{font-size:6px}.textMd[data-v-3d58c944]{font-size:8px}.textLg[data-v-3d58c944]{font-size:9px}.text10[data-v-3d58c944]{font-size:10px}.text-sm[data-v-3d58c944]{font-size:12px}.text-md[data-v-3d58c944]{font-size:14px}.text-lg[data-v-3d58c944]{font-size:16px}.blue-filled{background-color:#007bff;color:#fff}.blue-border{border:2px solid #007bff;color:#007bff}.red-filled{background-color:#dc3545;color:#fff}.red-border{border:2px solid #dc3545;color:#dc3545}.green-filled{background-color:#28a745;color:#fff}.green-border{border:2px solid #28a745;color:#28a745}.yellow-filled{background-color:#fbbc04;color:#fff}.yellow-border{border:2px solid #fbbc04;color:#fbbc04}.accordion-enter-active[data-v-1c2c0817],.accordion-leave-active[data-v-1c2c0817]{transition:height .3s ease}.accordion-enter[data-v-1c2c0817],.accordion-leave-to[data-v-1c2c0817]{height:0;overflow:hidden}.switch[data-v-d0ecef0b]{position:relative;display:inline-block}.switch-checkbox[data-v-d0ecef0b]{opacity:0;width:0;height:0}.switch.disabled[data-v-d0ecef0b]{background-color:#ccc}.text9[data-v-4936d4e4]{font-size:9px}.h-browser[data-v-4936d4e4]{height:calc(100% - 75px)}.tooltip[data-v-83ffa612]{position:relative}.tooltip-text[data-v-83ffa612]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-83ffa612]{visibility:visible;opacity:1}.overflow-y-auto[data-v-83ffa612]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-83ffa612]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-83ffa612]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-83ffa612]::-webkit-scrollbar-thumb:hover{background-color:#555}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
|