@oneb/ui-vue 0.1.60 → 0.1.61
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/layout/index.cjs +2 -2
- package/dist/layout/index.js +251 -255
- package/package.json +1 -1
package/dist/layout/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("../OneHelpMenu-90df8a83.cjs"),q=require("../_plugin-vue_export-helper-f246444f.cjs"),F=require("../index-9f8735d9.cjs"),Ne=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const ge={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}},Le={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},isMobile:{type:Boolean,default:!1},menuGroup:{type:String},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}},_e={sidebarItems:ge.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 Se(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("../OneHelpMenu-90df8a83.cjs"),q=require("../_plugin-vue_export-helper-f246444f.cjs"),F=require("../index-9f8735d9.cjs"),Ne=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const ge={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}},Le={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},isMobile:{type:Boolean,default:!1},menuGroup:{type:String},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}},_e={sidebarItems:ge.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 Se(a,d){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 $e(a,d){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"})])}/*!
|
|
2
2
|
* vue-router v4.4.5
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/var ye;(function(r){r.pop="pop",r.push="push"})(ye||(ye={}));var be;(function(r){r.back="back",r.forward="forward",r.unknown=""})(be||(be={}));Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var xe;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(xe||(xe={}));Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");Symbol(process.env.NODE_ENV!=="production"?"router":"");const De=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function ze(r){return e.inject(De)}const Me=["href"],Oe={class:"flex flex-nowrap items-center w-full h-[24px]"},Te={key:0,class:"w-[44px] flex-shrink-0"},je={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},He={class:"py-[8px] pl-0 pr-0"},Ie={class:"flex flex-nowrap items-center w-full h-[24px]"},Pe={key:0,class:"w-[44px] flex-shrink-0"},Ae={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Fe={class:"py-[8px] pl-0 pr-0"},qe={key:1,class:"p-3"},We={class:"flex flex-nowrap items-center w-full h-[24px]"},Ge={key:0,class:"w-[44px] flex-shrink-0"},Re={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ue={class:"py-[8px] pl-0 pr-0"},Ze={key:1,class:"p-3"},Ke=["href"],Xe={class:"flex items-center justify-between min-w-full h-[24px]"},Je={key:0,class:"text-xs"},Qe={key:0,class:"text-xs"},Ye={key:1,class:"pr-3"},e1=e.defineComponent({__name:"OneSidebarLink",props:Le,emits:["update-collapsed"],setup(r,{emit:d}){const a=ze(),n=r,h=d,f=e.computed(()=>n.href??!1),p=e.computed(()=>v(n)),v=l=>l.route?l.route:l.routeName?{name:l.routeName}:null,C=e.ref(n.open),E=e.computed(()=>{var l;return(n==null?void 0:n.menuGroup)&&(a==null?void 0:a.meta)&&((l=a.meta)==null?void 0:l.menuGroup)&&a.meta.menuGroup&&a.meta.menuGroup===n.menuGroup}),N=()=>{C.value=!C.value},w=(l,t)=>{n.subItems&&n.subItems.length>0&&!t&&(l.preventDefault(),N()),(t||!n.subItems||n.subItems.length===0)&&n.isMobile&&h("update-collapsed")};return(l,t)=>{var V,b;const c=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock(e.Fragment,null,[l.labelTop?(e.openBlock(),e.createElementBlock("p",{key:0,style:{"font-size":"10px"},class:e.normalizeClass([{"text-center h-[15px]":l.slim},"text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"])},e.toDisplayString(l.slim?"":l.labelTop),3)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("a",{key:1,href:f.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",[l.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:w},[e.createElementVNode("div",Oe,[l.icon?(e.openBlock(),e.createElementBlock("div",Te,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",je,[e.createElementVNode("span",He,e.toDisplayString(l.label),1)]),n.subItems&&n.subItems.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ml-auto",[(l.slim,"")]])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,Me)):e.createCommentVNode("",!0),!f.value&&p.value?(e.openBlock(),e.createBlock(c,{key:2,to:p.value,exact:l.exact,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",{"w-[44px] h-[44px]":l.slim,"h-[44px] w-full":!l.slim,"bg-blue-300 !text-primary-base":E.value}]),"active-class":(V=l.$route)!=null&&V.meta&&((b=l.$route.meta)!=null&&b.menuGroup)&&l.$route.meta.menuGroup?"":"bg-primary-10 !text-primary-base",onClick:e.withModifiers(w,["prevent"])},{default:e.withCtx(()=>{var u,y;return[e.createTextVNode(" Tset:"+e.toDisplayString(((u=l.$route)==null?void 0:u.meta)&&((y=l.$route.meta)==null?void 0:y.menuGroup)&&l.$route.meta.menuGroup)+" ",1),e.createElementVNode("div",Ie,[l.icon?(e.openBlock(),e.createElementBlock("div",Pe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Ae,[e.createElementVNode("span",Fe,e.toDisplayString(l.label),1)]),n.subItems&&n.subItems.length>0&&!l.slim?(e.openBlock(),e.createElementBlock("div",qe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])]}),_:1},8,["to","exact","active-class","class"])):e.createCommentVNode("",!0),!f.value&&!p.value?(e.openBlock(),e.createElementBlock("span",{key:3,onClick:e.withModifiers(w,["prevent"]),class:e.normalizeClass([[l.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",We,[l.icon?(e.openBlock(),e.createElementBlock("div",Ge,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Re,[e.createElementVNode("span",Ue,e.toDisplayString(l.label),1)]),n.subItems&&n.subItems.length>0&&!l.slim?(e.openBlock(),e.createElementBlock("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),C.value&&n.subItems?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass([l.slim?"":"pl-[36px] pr-3"])},[e.createElementVNode("div",{class:e.normalizeClass([(l.slim,"")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.subItems,u=>(e.openBlock(),e.createElementBlock("div",{key:u.label,class:e.normalizeClass([(l.slim,"")])},[u.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:u.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",Xe,[l.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Je,e.toDisplayString(u.label),1)),u.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([l.slim?"pl-2 h-[15px]":"pr-1"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.icon),{class:"w-[15px] h-[15px] mx-auto"}))],2)):e.createCommentVNode("",!0)])],8,Ke)):v(u)?(e.openBlock(),e.createBlock(c,{key:1,to:v(u),onClick:t[0]||(t[0]=e.withModifiers(y=>w(y,!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:l.exact?!0:null,"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-20 !text-primary-base"},{default:e.withCtx(()=>[l.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Qe,e.toDisplayString(u.label),1)),u.icon?(e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.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)}}}),t1={},o1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function l1(r,d){return e.openBlock(),e.createElementBlock("svg",o1,d[0]||(d[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 Ve=q._export_sfc(t1,[["render",l1]]),Be=r=>{if(Array.isArray(r))return r.map(e.unref);const d=e.unref(r);return Array.isArray(d)?d:[d]},n1=(r,d)=>{let a;const n=h=>{h.forEach(f=>{const p=e.unref(f);if(p){if(!(p instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:p,array:r}),new Error("Vuestic: Unable to observe non-HTMLElement");p&&(a==null||a.observe(p))}})};return e.watch(r,h=>{a==null||a.disconnect(),n(Be(h))}),e.onMounted(()=>{a=new ResizeObserver(d),n(Be(r))}),e.onBeforeUnmount(()=>a==null?void 0:a.disconnect()),a},r1=r=>{const d=e.ref(null);return n1([r],()=>{var a;d.value=((a=r.value)==null?void 0:a.clientWidth)??null}),e.watchEffect(()=>{var a;d.value=((a=r.value)==null?void 0:a.clientWidth)??null}),d},a1=["href"],s1={class:"rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2"},c1={class:""},i1={class:"",style:{"font-size":"10px"}},p1={key:1,class:"flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[220px] space-x-3 px-2"},d1={class:"flex items-center text-[#525B66] space-x-3"},u1={style:{"font-size":"10px"}},m1={class:"relative -right-2"},f1=["href"],C1={class:"flex flex-nowrap items-center w-max h-[24px]"},h1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},v1={class:"py-[8px] pl-0 pr-[8px]"},k1=["href"],w1={class:"flex flex-nowrap items-center w-max h-[24px]"},y1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},b1={class:"py-[8px] pl-0 pr-[8px]"},x1={key:4,class:"custom-select ml-1 w-full relative pt-2 pb-2"},B1={class:"pl-1"},g1={key:0,class:"dropdown w-[220px] z-50 text-[#525B66]"},V1=["onClick"],E1={key:0,class:"mt-0.5 h-0 border-t border-secondary-stroke mb-1"},N1={key:0,class:"tooltip-text"},L1={key:0},_1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},S1={key:2,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},$1=["href"],D1={key:0,class:"tooltip-text"},z1={key:0},M1=e.defineComponent({__name:"OneSidebar",props:ge,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(r,{emit:d}){var L,_,S;const a=d,n=r,h=e.computed(()=>{var o;return((o=n.news)==null?void 0:o.unseenCount)||0}),f=()=>{a("show-news")},p=e.ref(!1),v=e.ref(n.hoverable);e.watch(n,()=>{n.modelValue?v.value=!0:v.value=!1}),n.modelValue&&(v.value=!0);const C=e.shallowRef(),E=e.computed(()=>{const o=[];if(n.slim||o.push("fixed"),!l.value)if(!n.isMobile)o.push("w-[260px]");else return o.push("w-full");return o.join(" ")}),N=e.computed(()=>""),w=o=>{p.value=v.value&&o},l=e.computed(()=>v.value&&!p.value),t=e.computed(()=>!!l.value),c=e.ref(),V=r1(c),b=e.computed(()=>n.modelValue===!0||V.value===null?!0:V.value>0),u=e.ref(),y=()=>l.value?n.minimizedWidth:n.width;e.watchEffect(()=>{const o=y();setTimeout(()=>{u.value=o})});const x=e.ref(!1),B=e.ref((L=n.app)!=null&&L.availableLang&&((_=n.app)==null?void 0:_.availableLang.length)>0?(S=n.app)==null?void 0:S.availableLang.find(o=>{var m;return o.id==((m=n.app)==null?void 0:m.lang)}):null),H=()=>{x.value=!x.value},I=o=>{B.value=o,x.value=!1,a("select-language",o)},P=()=>{var o,m;(m=(o=n.app)==null?void 0:o.selectedPlan)!=null&&m.url&&(window.location.href=n.app.selectedPlan.url)};return(o,m)=>{var $,D,z,M,O,T,s,g,j,W,G,R,U,Z,K,X,J,Q,Y,ee,te,oe,le,ne,re,ae,se,ce,ie,pe,de,ue,me,fe,Ce,he,ve;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:C,class:e.normalizeClass(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40",E.value]),style:e.normalizeStyle(N.value),onMouseenter:m[1]||(m[1]=i=>w(!0)),onMouseleave:m[2]||(m[2]=i=>w(!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:c},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,i=>(e.openBlock(),e.createBlock(e1,{key:i.label,labelTop:i.labelTop,isMobile:o.isMobile,subItems:i.subItems,open:i.open,icon:i.icon,label:i.label,route:i.route,menuGroup:i==null?void 0:i.menuGroup,href:i.href,slim:t.value,"route-name":i.routeName,exact:i.exact||!1,onUpdateCollapsed:m[0]||(m[0]=A=>a("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","menuGroup","href","slim","route-name","exact"]))),128))],512),[[e.vShow,b.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"])},[($=o.app)!=null&&$.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:(D=o.app)==null?void 0:D.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",s1,[e.createElementVNode("div",c1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((z=o.app)==null?void 0:z.offerPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("p",i1,[e.createElementVNode("strong",null,e.toDisplayString((M=o.app)==null?void 0:M.offerPlan.title),1),e.createTextVNode(" «"+e.toDisplayString((O=o.app)==null?void 0:O.offerPlan.name)+"» ",1),m[3]||(m[3]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(e.toDisplayString((T=o.app)==null?void 0:T.offerPlan.title1),1)])])],8,a1)):e.createCommentVNode("",!0),(s=o.app)!=null&&s.selectedPlan&&((g=o.app)!=null&&g.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",p1,[e.createElementVNode("div",d1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((j=o.app)==null?void 0:j.selectedPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("div",u1,[e.createElementVNode("p",null,e.toDisplayString(((W=o.app)==null?void 0:W.selectedPlan.name)||""),1),e.createElementVNode("p",null,e.toDisplayString(((G=o.app)==null?void 0:G.selectedPlan.title)||""),1)])]),e.createElementVNode("div",m1,[e.createVNode(F._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0] !rounded-lg",variant:"touch",icon:e.unref(k.render$2),onClick:P},null,8,["icon"])])])):e.createCommentVNode("",!0),(R=o.app)!=null&&R.terms?(e.openBlock(),e.createElementBlock("a",{key:2,href:(U=o.app)==null?void 0:U.terms.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",C1,[e.createElementVNode("div",h1,[e.createElementVNode("span",v1,e.toDisplayString(((Z=o.app)==null?void 0:Z.terms.label)||"Terms"),1)])])],8,f1)):e.createCommentVNode("",!0),(K=o.app)!=null&&K.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(X=o.app)==null?void 0:X.offer.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",w1,[e.createElementVNode("div",y1,[e.createElementVNode("span",b1,e.toDisplayString(((J=o.app)==null?void 0:J.offer.label)||"Offert"),1)])])],8,k1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",x1,[e.createElementVNode("div",{class:"select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",onClick:H},[e.createVNode(e.unref(k.render$3),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((ee=B.value)==null?void 0:ee.name)+" ",1),e.createElementVNode("span",B1,e.toDisplayString(x.value?"▲":"▼"),1)]),x.value?(e.openBlock(),e.createElementBlock("div",g1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=o.app)==null?void 0:te.availableLang,i=>{var A,ke;return e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":i.id!==((A=B.value)==null?void 0:A.id),"text-gray-300":i.id===((ke=B.value)==null?void 0:ke.id)}]),onClick:xt=>{var we;return i.id!==((we=B.value)==null?void 0:we.id)&&I(i)}},e.toDisplayString(i.name),11,V1)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),!t.value&&((oe=o.app)!=null&&oe.offer||(ne=(le=o.app)==null?void 0:le.availableLang)!=null&&ne.length||(re=o.app)!=null&&re.selectedPlan&&((ae=o.app)!=null&&ae.selectedPlan.name)||(se=o.app)!=null&&se.offerPlan)?(e.openBlock(),e.createElementBlock("div",E1)):e.createCommentVNode("",!0),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:f},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",N1,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(Ve),{class:"w-[24px] h-[24px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",L1,e.toDisplayString(o.news.menuLabel||"News"),1)),h.value>0?(e.openBlock(),e.createElementBlock("span",_1)):e.createCommentVNode("",!0),h.value>0?(e.openBlock(),e.createElementBlock("span",S1)):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),(ce=o.app)!=null&&ce.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(pe=(ie=o.app)==null?void 0:ie.support)==null?void 0:pe.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]"]])},[(ue=(de=o.app)==null?void 0:de.support)!=null&&ue.label?(e.openBlock(),e.createElementBlock("div",D1,e.toDisplayString(((fe=(me=o.app)==null?void 0:me.support)==null?void 0:fe.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($e)),{class:"w-[20px] h-[20px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",z1,e.toDisplayString(((he=(Ce=o.app)==null?void 0:Ce.support)==null?void 0:he.label)||"Support"),1))],2)],2)],10,$1)):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"])},[m[4]||(m[4]=e.createElementVNode("span",null,[e.createTextVNode("Powered by "),e.createElementVNode("span",{class:"text-blue-700"},"OneB")],-1)),e.createElementVNode("span",null,e.toDisplayString((ve=o.app)==null?void 0:ve.version),1)],2)],2),[[e.vShow,b.value]])],38)}}});const Ee=q._export_sfc(M1,[["__scopeId","data-v-6ede2cc5"]]),O1={class:"h-screen h-dvh relative"},T1={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)"}},j1={class:"p-2 flex-shrink-0"},H1={class:"w-10 h-10 flex items-center flex-shrink-0"},I1=["src"],P1={class:"whitespace-nowrap font-semibold text-xl"},A1={class:"text-xs whitespace-nowrap"},F1={class:"w-full"},q1={class:"w-full flex justify-end pr-4"},W1={class:"flex items-center space-x-1"},G1={key:0,class:"module-border-wrap flex justify-center items-center"},R1={class:"h-4 w-4"},U1={class:"ml-2 hidden sm:flex"},Z1={class:"flex h-full"},K1={key:0},X1={key:0,class:"sm:w-[560px] w-full relative h-full"},J1={class:"h-full relative"},Q1={class:"flex items-center p-3 space-x-1.5"},Y1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},et={key:0,class:"p-5"},tt={key:1},ot={class:"p-4 text-gray text-center"},lt={key:2},nt={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},rt={key:0},at={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},st={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},ct={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},it={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},pt={class:"text-lg font-medium"},dt={class:"text-sm text-gray-600"},ut={key:0},mt=["src"],ft={class:"text-sm whitespace-pre-wrap break-words"},Ct={key:1},ht=["href"],vt={class:"text-sm flex items-center justify-between mt-1"},kt={class:"text-gray-800"},wt=["href"],yt=e.defineComponent({__name:"OneMainLayout",props:_e,emits:["load-news","load-tariff","open-tariff"],setup(r,{emit:d}){const a=d,n=r;let h=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),h="1");const f=e.ref(h==="1");e.ref(!0),e.watch(f,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const p=e.ref(!1),v=()=>{p.value=!p.value,p.value&&a("load-news")},C=e.computed(()=>n.showHeadre);e.watch(()=>n.showHeadre,()=>{C.value=n.showHeadre});const E=e.ref(window.innerWidth),N=()=>{E.value=window.innerWidth},w=e.computed(()=>E.value<=768);e.onMounted(()=>{window.addEventListener("resize",N)}),e.onUnmounted(()=>{window.removeEventListener("resize",N)});const l=t=>{var c;(c=n.handlers)==null||c.onSetLang(t)};return(t,c)=>{var b,u,y,x,B,H,I,P,L,_,S,o,m,$,D,z,M,O,T;const V=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",O1,[e.withDirectives(e.createElementVNode("div",T1,[e.createElementVNode("div",j1,[e.createElementVNode("button",{onClick:c[0]||(c[0]=s=>f.value=!f.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(Se),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",H1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,I1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(V,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var s,g;return[e.createElementVNode("div",P1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",A1,e.toDisplayString((g=(s=t.app)==null?void 0:s.workspace)==null?void 0:g.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",F1,[e.createElementVNode("div",q1,[e.createElementVNode("div",W1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff&&((b=t.improveTariff)!=null&&b.label)&&t.improveTariff.label?(e.openBlock(),e.createElementBlock("div",G1,[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:c[1]||(c[1]=(...s)=>{var g,j;return((g=t.handlers)==null?void 0:g.onImproveTariff)&&((j=t.handlers)==null?void 0:j.onImproveTariff(...s))}),style:{"font-size":"10px"}},[e.createElementVNode("div",R1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((u=t.improveTariff)==null?void 0:u.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",U1,e.toDisplayString((y=t.improveTariff)==null?void 0:y.label),1)])])):e.createCommentVNode("",!0),t.help?(e.openBlock(),e.createBlock(k.OneHelpMenu,{key:1,help:t.help},null,8,["help"])):e.createCommentVNode("",!0),((x=t.handlers)==null?void 0:x.onBrowse)!=null?(e.openBlock(),e.createBlock(k.OneBrowserMenu,{key:2,workspace:(B=t.app)==null?void 0:B.workspace,apps:((H=t.app)==null?void 0:H.apps)||[],"change-label":((I=t.labels)==null?void 0:I.change)||"Change","apps-title":((P=t.labels)==null?void 0:P.apps)||"Apps","on-app":(L=t.handlers)==null?void 0:L.onApp,"on-change":(_=t.handlers)==null?void 0:_.onChange,onOpen:(S=t.handlers)==null?void 0:S.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(k._sfc_main,{user:t.user,menu:t.menu,app:t.app,"account-label":((o=t.labels)==null?void 0:o.account)||"Account","logout-label":((m=t.labels)==null?void 0:m.logout)||"Logout","version-label":(($=t.labels)==null?void 0:$.version)||"","on-account":(D=t.handlers)==null?void 0:D.onAccount,"on-logout":(z=t.handlers)==null?void 0:z.onLogout},null,8,["user","menu","app","account-label","logout-label","version-label","on-account","on-logout"])])])])],512),[[e.vShow,C.value]]),e.createElementVNode("div",Z1,[!w.value||!f.value?(e.openBlock(),e.createBlock(Ee,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:w.value,modelValue:f.value,"onUpdate:modelValue":c[2]||(c[2]=s=>f.value=s),onShowNews:v,onSelectLanguage:l,onUpdateCollapsed:c[3]||(c[3]=s=>f.value=!f.value)},null,8,["app","items","with-news","news","isMobile","modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([[f.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]":C.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",K1,[p.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:c[4]||(c[4]=e.withModifiers(s=>p.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",[p.value?"sm:w-[560px] w-full":"w-0"]])},[p.value?(e.openBlock(),e.createElementBlock("div",X1,[e.createElementVNode("div",J1,[e.createElementVNode("div",Q1,[e.createVNode(Ve,{class:"w-10 h-10"}),c[6]||(c[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(F._sfc_main,{variant:"touch",icon:e.unref(Ne.render),onClick:c[5]||(c[5]=s=>p.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",Y1,[t.news.isLoading&&((M=t.news.items)==null?void 0:M.length)===0?(e.openBlock(),e.createElementBlock("div",et,[e.createVNode(F.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((O=t.news.items)==null?void 0:O.length)===0?(e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("div",ot,e.toDisplayString(t.news.emptyText),1)])):((T=t.news.items)==null?void 0:T.length)>0?(e.openBlock(),e.createElementBlock("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"p-3"},[e.createElementVNode("div",nt,[e.createElementVNode("div",null,[s.type?(e.openBlock(),e.createElementBlock("div",rt,[s.type===10?(e.openBlock(),e.createElementBlock("span",at,"update")):s.type===11?(e.openBlock(),e.createElementBlock("span",st,"warning")):s.type===12?(e.openBlock(),e.createElementBlock("span",ct,"notice")):s.type===13?(e.openBlock(),e.createElementBlock("span",it,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",pt,e.toDisplayString(s.title),1),e.createElementVNode("div",dt,e.toDisplayString(s.summary),1)]),s.image_url?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("img",{src:s.image_url,alt:"",class:"w-full rounded-md"},null,8,mt)])):e.createCommentVNode("",!0),e.createElementVNode("div",ft,e.toDisplayString(s.body),1),s.video_url?(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("a",{href:s.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,ht)])):e.createCommentVNode("",!0),e.createElementVNode("div",vt,[e.createElementVNode("span",kt,e.toDisplayString(s.published),1),s.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:s.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,wt)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const bt=q._export_sfc(yt,[["__scopeId","data-v-7935faab"]]);exports.OneMainLayout=bt;exports.OneSidebar=Ee;
|
|
5
|
+
*/var ye;(function(a){a.pop="pop",a.push="push"})(ye||(ye={}));var xe;(function(a){a.back="back",a.forward="forward",a.unknown=""})(xe||(xe={}));Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var be;(function(a){a[a.aborted=4]="aborted",a[a.cancelled=8]="cancelled",a[a.duplicated=16]="duplicated"})(be||(be={}));Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");Symbol(process.env.NODE_ENV!=="production"?"router":"");const De=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function ze(a){return e.inject(De)}const Me=["href"],Oe={class:"flex flex-nowrap items-center w-full h-[24px]"},je={key:0,class:"w-[44px] flex-shrink-0"},He={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Te={class:"py-[8px] pl-0 pr-0"},Ie={class:"flex flex-nowrap items-center w-full h-[24px]"},Pe={key:0,class:"w-[44px] flex-shrink-0"},Ae={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Fe={class:"py-[8px] pl-0 pr-0"},qe={key:1,class:"p-3"},We={class:"flex flex-nowrap items-center w-full h-[24px]"},Ge={key:0,class:"w-[44px] flex-shrink-0"},Re={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ue={class:"py-[8px] pl-0 pr-0"},Ze={key:1,class:"p-3"},Ke=["href"],Xe={class:"flex items-center justify-between min-w-full h-[24px]"},Je={key:0,class:"text-xs"},Qe={key:0,class:"text-xs"},Ye={key:1,class:"pr-3"},e1=e.defineComponent({__name:"OneSidebarLink",props:Le,emits:["update-collapsed"],setup(a,{emit:d}){const r=ze(),l=a,h=d,m=e.computed(()=>l.href??!1),p=e.computed(()=>v(l)),v=n=>n.route?n.route:n.routeName?{name:n.routeName}:null,C=e.ref(l.open),E=e.computed(()=>{var n;return console.log(l==null?void 0:l.menuGroup),console.log(r),(l==null?void 0:l.menuGroup)&&(r==null?void 0:r.meta)&&((n=r.meta)==null?void 0:n.menuGroup)&&r.meta.menuGroup&&r.meta.menuGroup===l.menuGroup}),V=()=>{C.value=!C.value},w=(n,t)=>{l.subItems&&l.subItems.length>0&&!t&&(n.preventDefault(),V()),(t||!l.subItems||l.subItems.length===0)&&l.isMobile&&h("update-collapsed")};return(n,t)=>{var g,y;const c=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),m.value?(e.openBlock(),e.createElementBlock("a",{key:1,href:m.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:w},[e.createElementVNode("div",Oe,[n.icon?(e.openBlock(),e.createElementBlock("div",je,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",He,[e.createElementVNode("span",Te,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(C.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,Me)):e.createCommentVNode("",!0),!m.value&&p.value?(e.openBlock(),e.createBlock(c,{key:2,to:p.value,exact:n.exact,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",{"w-[44px] h-[44px]":n.slim,"h-[44px] w-full":!n.slim,"bg-blue-300 !text-primary-base":E.value}]),"active-class":(g=n.$route)!=null&&g.meta&&((y=n.$route.meta)!=null&&y.menuGroup)&&n.$route.meta.menuGroup?"":"bg-primary-10 !text-primary-base",onClick:e.withModifiers(w,["prevent"])},{default:e.withCtx(()=>[e.createElementVNode("div",Ie,[n.icon?(e.openBlock(),e.createElementBlock("div",Pe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Ae,[e.createElementVNode("span",Fe,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",qe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])]),_:1},8,["to","exact","active-class","class"])):e.createCommentVNode("",!0),!m.value&&!p.value?(e.openBlock(),e.createElementBlock("span",{key:3,onClick:e.withModifiers(w,["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",We,[n.icon?(e.openBlock(),e.createElementBlock("div",Ge,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Re,[e.createElementVNode("span",Ue,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),C.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,f=>(e.openBlock(),e.createElementBlock("div",{key:f.label,class:e.normalizeClass([(n.slim,"")])},[f.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:f.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",Xe,[n.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Je,e.toDisplayString(f.label),1)),f.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(f.icon),{class:"w-[15px] h-[15px] mx-auto"}))],2)):e.createCommentVNode("",!0)])],8,Ke)):v(f)?(e.openBlock(),e.createBlock(c,{key:1,to:v(f),onClick:t[0]||(t[0]=e.withModifiers(N=>w(N,!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?!0:null,"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-20 !text-primary-base"},{default:e.withCtx(()=>[n.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Qe,e.toDisplayString(f.label),1)),f.icon?(e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.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)}}}),t1={},o1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function l1(a,d){return e.openBlock(),e.createElementBlock("svg",o1,d[0]||(d[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 Ee=q._export_sfc(t1,[["render",l1]]),Be=a=>{if(Array.isArray(a))return a.map(e.unref);const d=e.unref(a);return Array.isArray(d)?d:[d]},n1=(a,d)=>{let r;const l=h=>{h.forEach(m=>{const p=e.unref(m);if(p){if(!(p instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:p,array:a}),new Error("Vuestic: Unable to observe non-HTMLElement");p&&(r==null||r.observe(p))}})};return e.watch(a,h=>{r==null||r.disconnect(),l(Be(h))}),e.onMounted(()=>{r=new ResizeObserver(d),l(Be(a))}),e.onBeforeUnmount(()=>r==null?void 0:r.disconnect()),r},a1=a=>{const d=e.ref(null);return n1([a],()=>{var r;d.value=((r=a.value)==null?void 0:r.clientWidth)??null}),e.watchEffect(()=>{var r;d.value=((r=a.value)==null?void 0:r.clientWidth)??null}),d},r1=["href"],s1={class:"rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2"},c1={class:""},i1={class:"",style:{"font-size":"10px"}},p1={key:1,class:"flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[220px] space-x-3 px-2"},d1={class:"flex items-center text-[#525B66] space-x-3"},u1={style:{"font-size":"10px"}},m1={class:"relative -right-2"},f1=["href"],C1={class:"flex flex-nowrap items-center w-max h-[24px]"},h1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},v1={class:"py-[8px] pl-0 pr-[8px]"},k1=["href"],w1={class:"flex flex-nowrap items-center w-max h-[24px]"},y1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},x1={class:"py-[8px] pl-0 pr-[8px]"},b1={key:4,class:"custom-select ml-1 w-full relative pt-2 pb-2"},B1={class:"pl-1"},g1={key:0,class:"dropdown w-[220px] z-50 text-[#525B66]"},E1=["onClick"],V1={key:0,class:"mt-0.5 h-0 border-t border-secondary-stroke mb-1"},N1={key:0,class:"tooltip-text"},L1={key:0},_1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},S1={key:2,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},$1=["href"],D1={key:0,class:"tooltip-text"},z1={key:0},M1=e.defineComponent({__name:"OneSidebar",props:ge,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(a,{emit:d}){var L,_,S;const r=d,l=a,h=e.computed(()=>{var o;return((o=l.news)==null?void 0:o.unseenCount)||0}),m=()=>{r("show-news")},p=e.ref(!1),v=e.ref(l.hoverable);e.watch(l,()=>{l.modelValue?v.value=!0:v.value=!1}),l.modelValue&&(v.value=!0);const C=e.shallowRef(),E=e.computed(()=>{const o=[];if(l.slim||o.push("fixed"),!n.value)if(!l.isMobile)o.push("w-[260px]");else return o.push("w-full");return o.join(" ")}),V=e.computed(()=>""),w=o=>{p.value=v.value&&o},n=e.computed(()=>v.value&&!p.value),t=e.computed(()=>!!n.value),c=e.ref(),g=a1(c),y=e.computed(()=>l.modelValue===!0||g.value===null?!0:g.value>0),f=e.ref(),N=()=>n.value?l.minimizedWidth:l.width;e.watchEffect(()=>{const o=N();setTimeout(()=>{f.value=o})});const x=e.ref(!1),b=e.ref((L=l.app)!=null&&L.availableLang&&((_=l.app)==null?void 0:_.availableLang.length)>0?(S=l.app)==null?void 0:S.availableLang.find(o=>{var u;return o.id==((u=l.app)==null?void 0:u.lang)}):null),T=()=>{x.value=!x.value},I=o=>{b.value=o,x.value=!1,r("select-language",o)},P=()=>{var o,u;(u=(o=l.app)==null?void 0:o.selectedPlan)!=null&&u.url&&(window.location.href=l.app.selectedPlan.url)};return(o,u)=>{var $,D,z,M,O,j,s,B,H,W,G,R,U,Z,K,X,J,Q,Y,ee,te,oe,le,ne,ae,re,se,ce,ie,pe,de,ue,me,fe,Ce,he,ve;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:C,class:e.normalizeClass(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40",E.value]),style:e.normalizeStyle(V.value),onMouseenter:u[1]||(u[1]=i=>w(!0)),onMouseleave:u[2]||(u[2]=i=>w(!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:c},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,i=>(e.openBlock(),e.createBlock(e1,{key:i.label,labelTop:i.labelTop,isMobile:o.isMobile,subItems:i.subItems,open:i.open,icon:i.icon,label:i.label,route:i.route,menuGroup:i==null?void 0:i.menuGroup,href:i.href,slim:t.value,"route-name":i.routeName,exact:i.exact||!1,onUpdateCollapsed:u[0]||(u[0]=A=>r("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","menuGroup","href","slim","route-name","exact"]))),128))],512),[[e.vShow,y.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"])},[($=o.app)!=null&&$.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:(D=o.app)==null?void 0:D.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",s1,[e.createElementVNode("div",c1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((z=o.app)==null?void 0:z.offerPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("p",i1,[e.createElementVNode("strong",null,e.toDisplayString((M=o.app)==null?void 0:M.offerPlan.title),1),e.createTextVNode(" «"+e.toDisplayString((O=o.app)==null?void 0:O.offerPlan.name)+"» ",1),u[3]||(u[3]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(e.toDisplayString((j=o.app)==null?void 0:j.offerPlan.title1),1)])])],8,r1)):e.createCommentVNode("",!0),(s=o.app)!=null&&s.selectedPlan&&((B=o.app)!=null&&B.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",p1,[e.createElementVNode("div",d1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((H=o.app)==null?void 0:H.selectedPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("div",u1,[e.createElementVNode("p",null,e.toDisplayString(((W=o.app)==null?void 0:W.selectedPlan.name)||""),1),e.createElementVNode("p",null,e.toDisplayString(((G=o.app)==null?void 0:G.selectedPlan.title)||""),1)])]),e.createElementVNode("div",m1,[e.createVNode(F._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0] !rounded-lg",variant:"touch",icon:e.unref(k.render$2),onClick:P},null,8,["icon"])])])):e.createCommentVNode("",!0),(R=o.app)!=null&&R.terms?(e.openBlock(),e.createElementBlock("a",{key:2,href:(U=o.app)==null?void 0:U.terms.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",C1,[e.createElementVNode("div",h1,[e.createElementVNode("span",v1,e.toDisplayString(((Z=o.app)==null?void 0:Z.terms.label)||"Terms"),1)])])],8,f1)):e.createCommentVNode("",!0),(K=o.app)!=null&&K.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(X=o.app)==null?void 0:X.offer.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",w1,[e.createElementVNode("div",y1,[e.createElementVNode("span",x1,e.toDisplayString(((J=o.app)==null?void 0:J.offer.label)||"Offert"),1)])])],8,k1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",b1,[e.createElementVNode("div",{class:"select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",onClick:T},[e.createVNode(e.unref(k.render$3),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((ee=b.value)==null?void 0:ee.name)+" ",1),e.createElementVNode("span",B1,e.toDisplayString(x.value?"▲":"▼"),1)]),x.value?(e.openBlock(),e.createElementBlock("div",g1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=o.app)==null?void 0:te.availableLang,i=>{var A,ke;return e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":i.id!==((A=b.value)==null?void 0:A.id),"text-gray-300":i.id===((ke=b.value)==null?void 0:ke.id)}]),onClick:bt=>{var we;return i.id!==((we=b.value)==null?void 0:we.id)&&I(i)}},e.toDisplayString(i.name),11,E1)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),!t.value&&((oe=o.app)!=null&&oe.offer||(ne=(le=o.app)==null?void 0:le.availableLang)!=null&&ne.length||(ae=o.app)!=null&&ae.selectedPlan&&((re=o.app)!=null&&re.selectedPlan.name)||(se=o.app)!=null&&se.offerPlan)?(e.openBlock(),e.createElementBlock("div",V1)):e.createCommentVNode("",!0),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:m},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",N1,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(Ee),{class:"w-[24px] h-[24px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",L1,e.toDisplayString(o.news.menuLabel||"News"),1)),h.value>0?(e.openBlock(),e.createElementBlock("span",_1)):e.createCommentVNode("",!0),h.value>0?(e.openBlock(),e.createElementBlock("span",S1)):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),(ce=o.app)!=null&&ce.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(pe=(ie=o.app)==null?void 0:ie.support)==null?void 0:pe.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]"]])},[(ue=(de=o.app)==null?void 0:de.support)!=null&&ue.label?(e.openBlock(),e.createElementBlock("div",D1,e.toDisplayString(((fe=(me=o.app)==null?void 0:me.support)==null?void 0:fe.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($e)),{class:"w-[20px] h-[20px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",z1,e.toDisplayString(((he=(Ce=o.app)==null?void 0:Ce.support)==null?void 0:he.label)||"Support"),1))],2)],2)],10,$1)):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"])},[u[4]||(u[4]=e.createElementVNode("span",null,[e.createTextVNode("Powered by "),e.createElementVNode("span",{class:"text-blue-700"},"OneB")],-1)),e.createElementVNode("span",null,e.toDisplayString((ve=o.app)==null?void 0:ve.version),1)],2)],2),[[e.vShow,y.value]])],38)}}});const Ve=q._export_sfc(M1,[["__scopeId","data-v-6ede2cc5"]]),O1={class:"h-screen h-dvh relative"},j1={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)"}},H1={class:"p-2 flex-shrink-0"},T1={class:"w-10 h-10 flex items-center flex-shrink-0"},I1=["src"],P1={class:"whitespace-nowrap font-semibold text-xl"},A1={class:"text-xs whitespace-nowrap"},F1={class:"w-full"},q1={class:"w-full flex justify-end pr-4"},W1={class:"flex items-center space-x-1"},G1={key:0,class:"module-border-wrap flex justify-center items-center"},R1={class:"h-4 w-4"},U1={class:"ml-2 hidden sm:flex"},Z1={class:"flex h-full"},K1={key:0},X1={key:0,class:"sm:w-[560px] w-full relative h-full"},J1={class:"h-full relative"},Q1={class:"flex items-center p-3 space-x-1.5"},Y1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},et={key:0,class:"p-5"},tt={key:1},ot={class:"p-4 text-gray text-center"},lt={key:2},nt={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},at={key:0},rt={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},st={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},ct={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},it={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},pt={class:"text-lg font-medium"},dt={class:"text-sm text-gray-600"},ut={key:0},mt=["src"],ft={class:"text-sm whitespace-pre-wrap break-words"},Ct={key:1},ht=["href"],vt={class:"text-sm flex items-center justify-between mt-1"},kt={class:"text-gray-800"},wt=["href"],yt=e.defineComponent({__name:"OneMainLayout",props:_e,emits:["load-news","load-tariff","open-tariff"],setup(a,{emit:d}){const r=d,l=a;let h=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),h="1");const m=e.ref(h==="1");e.ref(!0),e.watch(m,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const p=e.ref(!1),v=()=>{p.value=!p.value,p.value&&r("load-news")},C=e.computed(()=>l.showHeadre);e.watch(()=>l.showHeadre,()=>{C.value=l.showHeadre});const E=e.ref(window.innerWidth),V=()=>{E.value=window.innerWidth},w=e.computed(()=>E.value<=768);e.onMounted(()=>{window.addEventListener("resize",V)}),e.onUnmounted(()=>{window.removeEventListener("resize",V)});const n=t=>{var c;(c=l.handlers)==null||c.onSetLang(t)};return(t,c)=>{var y,f,N,x,b,T,I,P,L,_,S,o,u,$,D,z,M,O,j;const g=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",O1,[e.withDirectives(e.createElementVNode("div",j1,[e.createElementVNode("div",H1,[e.createElementVNode("button",{onClick:c[0]||(c[0]=s=>m.value=!m.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(Se),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",T1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,I1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(g,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var s,B;return[e.createElementVNode("div",P1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",A1,e.toDisplayString((B=(s=t.app)==null?void 0:s.workspace)==null?void 0:B.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",F1,[e.createElementVNode("div",q1,[e.createElementVNode("div",W1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff&&((y=t.improveTariff)!=null&&y.label)&&t.improveTariff.label?(e.openBlock(),e.createElementBlock("div",G1,[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:c[1]||(c[1]=(...s)=>{var B,H;return((B=t.handlers)==null?void 0:B.onImproveTariff)&&((H=t.handlers)==null?void 0:H.onImproveTariff(...s))}),style:{"font-size":"10px"}},[e.createElementVNode("div",R1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((f=t.improveTariff)==null?void 0:f.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",U1,e.toDisplayString((N=t.improveTariff)==null?void 0:N.label),1)])])):e.createCommentVNode("",!0),t.help?(e.openBlock(),e.createBlock(k.OneHelpMenu,{key:1,help:t.help},null,8,["help"])):e.createCommentVNode("",!0),((x=t.handlers)==null?void 0:x.onBrowse)!=null?(e.openBlock(),e.createBlock(k.OneBrowserMenu,{key:2,workspace:(b=t.app)==null?void 0:b.workspace,apps:((T=t.app)==null?void 0:T.apps)||[],"change-label":((I=t.labels)==null?void 0:I.change)||"Change","apps-title":((P=t.labels)==null?void 0:P.apps)||"Apps","on-app":(L=t.handlers)==null?void 0:L.onApp,"on-change":(_=t.handlers)==null?void 0:_.onChange,onOpen:(S=t.handlers)==null?void 0:S.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(k._sfc_main,{user:t.user,menu:t.menu,app:t.app,"account-label":((o=t.labels)==null?void 0:o.account)||"Account","logout-label":((u=t.labels)==null?void 0:u.logout)||"Logout","version-label":(($=t.labels)==null?void 0:$.version)||"","on-account":(D=t.handlers)==null?void 0:D.onAccount,"on-logout":(z=t.handlers)==null?void 0:z.onLogout},null,8,["user","menu","app","account-label","logout-label","version-label","on-account","on-logout"])])])])],512),[[e.vShow,C.value]]),e.createElementVNode("div",Z1,[!w.value||!m.value?(e.openBlock(),e.createBlock(Ve,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:w.value,modelValue:m.value,"onUpdate:modelValue":c[2]||(c[2]=s=>m.value=s),onShowNews:v,onSelectLanguage:n,onUpdateCollapsed:c[3]||(c[3]=s=>m.value=!m.value)},null,8,["app","items","with-news","news","isMobile","modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([[m.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]":C.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",K1,[p.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:c[4]||(c[4]=e.withModifiers(s=>p.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",[p.value?"sm:w-[560px] w-full":"w-0"]])},[p.value?(e.openBlock(),e.createElementBlock("div",X1,[e.createElementVNode("div",J1,[e.createElementVNode("div",Q1,[e.createVNode(Ee,{class:"w-10 h-10"}),c[6]||(c[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(F._sfc_main,{variant:"touch",icon:e.unref(Ne.render),onClick:c[5]||(c[5]=s=>p.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",Y1,[t.news.isLoading&&((M=t.news.items)==null?void 0:M.length)===0?(e.openBlock(),e.createElementBlock("div",et,[e.createVNode(F.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((O=t.news.items)==null?void 0:O.length)===0?(e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("div",ot,e.toDisplayString(t.news.emptyText),1)])):((j=t.news.items)==null?void 0:j.length)>0?(e.openBlock(),e.createElementBlock("div",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"p-3"},[e.createElementVNode("div",nt,[e.createElementVNode("div",null,[s.type?(e.openBlock(),e.createElementBlock("div",at,[s.type===10?(e.openBlock(),e.createElementBlock("span",rt,"update")):s.type===11?(e.openBlock(),e.createElementBlock("span",st,"warning")):s.type===12?(e.openBlock(),e.createElementBlock("span",ct,"notice")):s.type===13?(e.openBlock(),e.createElementBlock("span",it,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",pt,e.toDisplayString(s.title),1),e.createElementVNode("div",dt,e.toDisplayString(s.summary),1)]),s.image_url?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("img",{src:s.image_url,alt:"",class:"w-full rounded-md"},null,8,mt)])):e.createCommentVNode("",!0),e.createElementVNode("div",ft,e.toDisplayString(s.body),1),s.video_url?(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("a",{href:s.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,ht)])):e.createCommentVNode("",!0),e.createElementVNode("div",vt,[e.createElementVNode("span",kt,e.toDisplayString(s.published),1),s.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:s.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,wt)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const xt=q._export_sfc(yt,[["__scopeId","data-v-7935faab"]]);exports.OneMainLayout=xt;exports.OneSidebar=Ve;
|
package/dist/layout/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as t, createElementBlock as o, createElementVNode as e, inject as Q1, defineComponent as i1, computed as S, ref as k, resolveComponent as R1, Fragment as
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as e, inject as Q1, defineComponent as i1, computed as S, ref as k, resolveComponent as R1, Fragment as Z, normalizeClass as c, toDisplayString as u, createCommentVNode as r, createBlock as C, resolveDynamicComponent as g, unref as y, withModifiers as Y, withCtx as n1, renderList as e1, watch as t1, onMounted as q1, onBeforeUnmount as X1, watchEffect as U1, shallowRef as Y1, normalizeStyle as ee, withDirectives as a1, vShow as r1, createTextVNode as X, createVNode as z, onUnmounted as te, renderSlot as A1 } from "vue";
|
|
2
2
|
import { r as l1, a as o1, b as se, c as le, O as oe, d as ne, _ as ae } from "../OneHelpMenu-135e0656.js";
|
|
3
3
|
import { _ as p1 } from "../_plugin-vue_export-helper-dad06003.js";
|
|
4
4
|
import { _ as Z1, S as re } from "../index-f8afb6b6.js";
|
|
@@ -179,15 +179,15 @@ var W1;
|
|
|
179
179
|
(function(i) {
|
|
180
180
|
i.pop = "pop", i.push = "push";
|
|
181
181
|
})(W1 || (W1 = {}));
|
|
182
|
-
var
|
|
182
|
+
var F1;
|
|
183
183
|
(function(i) {
|
|
184
184
|
i.back = "back", i.forward = "forward", i.unknown = "";
|
|
185
|
-
})(
|
|
185
|
+
})(F1 || (F1 = {}));
|
|
186
186
|
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
187
|
-
var
|
|
187
|
+
var G1;
|
|
188
188
|
(function(i) {
|
|
189
189
|
i[i.aborted = 4] = "aborted", i[i.cancelled = 8] = "cancelled", i[i.duplicated = 16] = "duplicated";
|
|
190
|
-
})(
|
|
190
|
+
})(G1 || (G1 = {}));
|
|
191
191
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
192
192
|
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
193
193
|
Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
@@ -225,149 +225,145 @@ const me = ["href"], ve = { class: "flex flex-nowrap items-center w-full h-[24px
|
|
|
225
225
|
props: pe,
|
|
226
226
|
emits: ["update-collapsed"],
|
|
227
227
|
setup(i, { emit: v }) {
|
|
228
|
-
const
|
|
229
|
-
var
|
|
230
|
-
return (
|
|
228
|
+
const p = fe(), n = i, _ = v, b = S(() => n.href ?? !1), m = S(() => $(n)), $ = (a) => a.route ? a.route : a.routeName ? { name: a.routeName } : null, L = k(n.open), H = S(() => {
|
|
229
|
+
var a;
|
|
230
|
+
return console.log(n == null ? void 0 : n.menuGroup), console.log(p), (n == null ? void 0 : n.menuGroup) && (p == null ? void 0 : p.meta) && ((a = p.meta) == null ? void 0 : a.menuGroup) && p.meta.menuGroup && p.meta.menuGroup === n.menuGroup;
|
|
231
231
|
}), I = () => {
|
|
232
232
|
L.value = !L.value;
|
|
233
|
-
}, B = (
|
|
234
|
-
|
|
233
|
+
}, B = (a, s) => {
|
|
234
|
+
n.subItems && n.subItems.length > 0 && !s && (a.preventDefault(), I()), (s || !n.subItems || n.subItems.length === 0) && n.isMobile && _("update-collapsed");
|
|
235
235
|
};
|
|
236
|
-
return (
|
|
237
|
-
var
|
|
236
|
+
return (a, s) => {
|
|
237
|
+
var j, V;
|
|
238
238
|
const h = R1("RouterLink");
|
|
239
|
-
return t(), o(
|
|
240
|
-
|
|
239
|
+
return t(), o(Z, null, [
|
|
240
|
+
a.labelTop ? (t(), o("p", {
|
|
241
241
|
key: 0,
|
|
242
242
|
style: { "font-size": "10px" },
|
|
243
|
-
class: c([{ "text-center h-[15px]":
|
|
244
|
-
},
|
|
245
|
-
|
|
243
|
+
class: c([{ "text-center h-[15px]": a.slim }, "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"])
|
|
244
|
+
}, u(a.slim ? "" : a.labelTop), 3)) : r("", !0),
|
|
245
|
+
b.value ? (t(), o("a", {
|
|
246
246
|
key: 1,
|
|
247
|
-
href:
|
|
248
|
-
class: c(["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", [
|
|
247
|
+
href: b.value,
|
|
248
|
+
class: c(["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", [a.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
|
|
249
249
|
onClick: B
|
|
250
250
|
}, [
|
|
251
251
|
e("div", ve, [
|
|
252
|
-
|
|
253
|
-
(t(), C(g(
|
|
254
|
-
])) :
|
|
252
|
+
a.icon ? (t(), o("div", Ce, [
|
|
253
|
+
(t(), C(g(a.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
254
|
+
])) : r("", !0),
|
|
255
255
|
e("div", we, [
|
|
256
|
-
e("span", be,
|
|
256
|
+
e("span", be, u(a.label), 1)
|
|
257
257
|
]),
|
|
258
|
-
|
|
258
|
+
n.subItems && n.subItems.length > 0 ? (t(), o("div", {
|
|
259
259
|
key: 1,
|
|
260
|
-
class: c(["ml-auto", [(
|
|
260
|
+
class: c(["ml-auto", [(a.slim, "")]])
|
|
261
261
|
}, [
|
|
262
262
|
(t(), C(g(L.value ? y(l1) : y(o1)), { class: "w-[16px] h-[16px]" }))
|
|
263
|
-
], 2)) :
|
|
263
|
+
], 2)) : r("", !0)
|
|
264
264
|
])
|
|
265
|
-
], 10, me)) :
|
|
266
|
-
!
|
|
265
|
+
], 10, me)) : r("", !0),
|
|
266
|
+
!b.value && m.value ? (t(), C(h, {
|
|
267
267
|
key: 2,
|
|
268
268
|
to: m.value,
|
|
269
|
-
exact:
|
|
269
|
+
exact: a.exact,
|
|
270
270
|
class: c(["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", {
|
|
271
|
-
"w-[44px] h-[44px]":
|
|
272
|
-
"h-[44px] w-full": !
|
|
273
|
-
"bg-blue-300 !text-primary-base":
|
|
271
|
+
"w-[44px] h-[44px]": a.slim,
|
|
272
|
+
"h-[44px] w-full": !a.slim,
|
|
273
|
+
"bg-blue-300 !text-primary-base": H.value
|
|
274
274
|
}]),
|
|
275
|
-
"active-class": (
|
|
275
|
+
"active-class": (j = a.$route) != null && j.meta && ((V = a.$route.meta) != null && V.menuGroup) && a.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
|
|
276
276
|
onClick: Y(B, ["prevent"])
|
|
277
277
|
}, {
|
|
278
|
-
default: n1(() =>
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
])) : a("", !0)
|
|
292
|
-
])
|
|
293
|
-
];
|
|
294
|
-
}),
|
|
278
|
+
default: n1(() => [
|
|
279
|
+
e("div", xe, [
|
|
280
|
+
a.icon ? (t(), o("div", ye, [
|
|
281
|
+
(t(), C(g(a.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
282
|
+
])) : r("", !0),
|
|
283
|
+
e("div", ge, [
|
|
284
|
+
e("span", Le, u(a.label), 1)
|
|
285
|
+
]),
|
|
286
|
+
n.subItems && n.subItems.length > 0 && !a.slim ? (t(), o("div", ke, [
|
|
287
|
+
(t(), C(g(L.value ? y(l1) : y(o1)), { class: "w-[16px] h-[16px]" }))
|
|
288
|
+
])) : r("", !0)
|
|
289
|
+
])
|
|
290
|
+
]),
|
|
295
291
|
_: 1
|
|
296
|
-
}, 8, ["to", "exact", "active-class", "class"])) :
|
|
297
|
-
!
|
|
292
|
+
}, 8, ["to", "exact", "active-class", "class"])) : r("", !0),
|
|
293
|
+
!b.value && !m.value ? (t(), o("span", {
|
|
298
294
|
key: 3,
|
|
299
295
|
onClick: Y(B, ["prevent"]),
|
|
300
|
-
class: c([[
|
|
296
|
+
class: c([[a.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]"])
|
|
301
297
|
}, [
|
|
302
298
|
e("div", _e, [
|
|
303
|
-
|
|
304
|
-
(t(), C(g(
|
|
305
|
-
])) :
|
|
299
|
+
a.icon ? (t(), o("div", $e, [
|
|
300
|
+
(t(), C(g(a.icon), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
301
|
+
])) : r("", !0),
|
|
306
302
|
e("div", Se, [
|
|
307
|
-
e("span", Be,
|
|
303
|
+
e("span", Be, u(a.label), 1)
|
|
308
304
|
]),
|
|
309
|
-
|
|
305
|
+
n.subItems && n.subItems.length > 0 && !a.slim ? (t(), o("div", Ve, [
|
|
310
306
|
(t(), C(g(L.value ? y(l1) : y(o1)), { class: "w-[16px] h-[16px]" }))
|
|
311
|
-
])) :
|
|
307
|
+
])) : r("", !0)
|
|
312
308
|
])
|
|
313
|
-
], 2)) :
|
|
314
|
-
L.value &&
|
|
309
|
+
], 2)) : r("", !0),
|
|
310
|
+
L.value && n.subItems ? (t(), o("div", {
|
|
315
311
|
key: 4,
|
|
316
|
-
class: c([
|
|
312
|
+
class: c([a.slim ? "" : "pl-[36px] pr-3"])
|
|
317
313
|
}, [
|
|
318
314
|
e("div", {
|
|
319
|
-
class: c([(
|
|
315
|
+
class: c([(a.slim, "")])
|
|
320
316
|
}, [
|
|
321
|
-
(t(!0), o(
|
|
322
|
-
key:
|
|
323
|
-
class: c([(
|
|
317
|
+
(t(!0), o(Z, null, e1(n.subItems, (x) => (t(), o("div", {
|
|
318
|
+
key: x.label,
|
|
319
|
+
class: c([(a.slim, "")])
|
|
324
320
|
}, [
|
|
325
|
-
|
|
321
|
+
x.href ? (t(), o("a", {
|
|
326
322
|
key: 0,
|
|
327
|
-
href:
|
|
323
|
+
href: x.href,
|
|
328
324
|
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]"
|
|
329
325
|
}, [
|
|
330
326
|
e("div", Oe, [
|
|
331
|
-
|
|
332
|
-
|
|
327
|
+
a.slim ? r("", !0) : (t(), o("span", Ee, u(x.label), 1)),
|
|
328
|
+
x.icon ? (t(), o("div", {
|
|
333
329
|
key: 1,
|
|
334
|
-
class: c([
|
|
330
|
+
class: c([a.slim ? "pl-2 h-[15px]" : "pr-1"])
|
|
335
331
|
}, [
|
|
336
|
-
(t(), C(g(
|
|
337
|
-
], 2)) :
|
|
332
|
+
(t(), C(g(x.icon), { class: "w-[15px] h-[15px] mx-auto" }))
|
|
333
|
+
], 2)) : r("", !0)
|
|
338
334
|
])
|
|
339
|
-
], 8, Me)) : $(
|
|
335
|
+
], 8, Me)) : $(x) ? (t(), C(h, {
|
|
340
336
|
key: 1,
|
|
341
|
-
to: $(
|
|
342
|
-
onClick: s[0] || (s[0] = Y((
|
|
337
|
+
to: $(x),
|
|
338
|
+
onClick: s[0] || (s[0] = Y((N) => B(N, !0), ["prevent"])),
|
|
343
339
|
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]",
|
|
344
|
-
exact:
|
|
340
|
+
exact: a.exact ? !0 : null,
|
|
345
341
|
"active-class": "bg-primary-10 !text-primary-base",
|
|
346
342
|
"exact-active-class": "bg-primary-20 !text-primary-base"
|
|
347
343
|
}, {
|
|
348
344
|
default: n1(() => [
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
(t(), C(g(
|
|
352
|
-
])) :
|
|
345
|
+
a.slim ? r("", !0) : (t(), o("span", je, u(x.label), 1)),
|
|
346
|
+
x.icon ? (t(), o("div", ze, [
|
|
347
|
+
(t(), C(g(x.icon), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
348
|
+
])) : r("", !0)
|
|
353
349
|
]),
|
|
354
350
|
_: 2
|
|
355
|
-
}, 1032, ["to", "exact"])) :
|
|
351
|
+
}, 1032, ["to", "exact"])) : r("", !0)
|
|
356
352
|
], 2))), 128))
|
|
357
353
|
], 2)
|
|
358
|
-
], 2)) :
|
|
354
|
+
], 2)) : r("", !0)
|
|
359
355
|
], 64);
|
|
360
356
|
};
|
|
361
357
|
}
|
|
362
|
-
}),
|
|
358
|
+
}), Ie = {}, Ne = {
|
|
363
359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
364
360
|
width: "24",
|
|
365
361
|
height: "24",
|
|
366
362
|
viewBox: "0 0 24 24",
|
|
367
363
|
fill: "none"
|
|
368
364
|
};
|
|
369
|
-
function
|
|
370
|
-
return t(), o("svg",
|
|
365
|
+
function Pe(i, v) {
|
|
366
|
+
return t(), o("svg", Ne, v[0] || (v[0] = [
|
|
371
367
|
e("path", {
|
|
372
368
|
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",
|
|
373
369
|
fill: "currentColor"
|
|
@@ -384,41 +380,41 @@ function Ne(i, v) {
|
|
|
384
380
|
}, null, -1)
|
|
385
381
|
]));
|
|
386
382
|
}
|
|
387
|
-
const J1 = /* @__PURE__ */ p1(
|
|
383
|
+
const J1 = /* @__PURE__ */ p1(Ie, [["render", Pe]]), D1 = (i) => {
|
|
388
384
|
if (Array.isArray(i))
|
|
389
385
|
return i.map(y);
|
|
390
386
|
const v = y(i);
|
|
391
387
|
return Array.isArray(v) ? v : [v];
|
|
392
|
-
},
|
|
393
|
-
let
|
|
394
|
-
const
|
|
395
|
-
_.forEach((
|
|
396
|
-
const m = y(
|
|
388
|
+
}, Te = (i, v) => {
|
|
389
|
+
let p;
|
|
390
|
+
const n = (_) => {
|
|
391
|
+
_.forEach((b) => {
|
|
392
|
+
const m = y(b);
|
|
397
393
|
if (m) {
|
|
398
394
|
if (!(m instanceof Element))
|
|
399
395
|
throw console.error("Vuestic: Trying to observe non-HTMLElement", {
|
|
400
396
|
target: m,
|
|
401
397
|
array: i
|
|
402
398
|
}), new Error("Vuestic: Unable to observe non-HTMLElement");
|
|
403
|
-
m && (
|
|
399
|
+
m && (p == null || p.observe(m));
|
|
404
400
|
}
|
|
405
401
|
});
|
|
406
402
|
};
|
|
407
403
|
return t1(i, (_) => {
|
|
408
|
-
|
|
404
|
+
p == null || p.disconnect(), n(D1(_));
|
|
409
405
|
}), q1(() => {
|
|
410
|
-
|
|
411
|
-
}), X1(() =>
|
|
406
|
+
p = new ResizeObserver(v), n(D1(i));
|
|
407
|
+
}), X1(() => p == null ? void 0 : p.disconnect()), p;
|
|
412
408
|
}, Ae = (i) => {
|
|
413
409
|
const v = k(null);
|
|
414
|
-
return
|
|
415
|
-
var
|
|
416
|
-
v.value = ((
|
|
410
|
+
return Te([i], () => {
|
|
411
|
+
var p;
|
|
412
|
+
v.value = ((p = i.value) == null ? void 0 : p.clientWidth) ?? null;
|
|
417
413
|
}), U1(() => {
|
|
418
|
-
var
|
|
419
|
-
v.value = ((
|
|
414
|
+
var p;
|
|
415
|
+
v.value = ((p = i.value) == null ? void 0 : p.clientWidth) ?? null;
|
|
420
416
|
}), v;
|
|
421
|
-
}, We = ["href"],
|
|
417
|
+
}, We = ["href"], Fe = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2" }, Ge = { class: "" }, De = {
|
|
422
418
|
class: "",
|
|
423
419
|
style: { "font-size": "10px" }
|
|
424
420
|
}, Re = {
|
|
@@ -450,60 +446,60 @@ const J1 = /* @__PURE__ */ p1(Te, [["render", Ne]]), D1 = (i) => {
|
|
|
450
446
|
props: K1,
|
|
451
447
|
emits: ["show-news", "show-tariff", "select-language", "update-collapsed", "update:modelValue"],
|
|
452
448
|
setup(i, { emit: v }) {
|
|
453
|
-
var
|
|
454
|
-
const
|
|
449
|
+
var P, T, A;
|
|
450
|
+
const p = v, n = i, _ = S(() => {
|
|
455
451
|
var l;
|
|
456
|
-
return ((l =
|
|
457
|
-
}),
|
|
458
|
-
|
|
459
|
-
}, m = k(!1), $ = k(
|
|
460
|
-
t1(
|
|
461
|
-
|
|
462
|
-
}),
|
|
463
|
-
const L = Y1(),
|
|
452
|
+
return ((l = n.news) == null ? void 0 : l.unseenCount) || 0;
|
|
453
|
+
}), b = () => {
|
|
454
|
+
p("show-news");
|
|
455
|
+
}, m = k(!1), $ = k(n.hoverable);
|
|
456
|
+
t1(n, () => {
|
|
457
|
+
n.modelValue ? $.value = !0 : $.value = !1;
|
|
458
|
+
}), n.modelValue && ($.value = !0);
|
|
459
|
+
const L = Y1(), H = S(() => {
|
|
464
460
|
const l = [];
|
|
465
|
-
if (
|
|
466
|
-
if (!
|
|
461
|
+
if (n.slim || l.push("fixed"), !a.value)
|
|
462
|
+
if (!n.isMobile)
|
|
467
463
|
l.push("w-[260px]");
|
|
468
464
|
else
|
|
469
465
|
return l.push("w-full");
|
|
470
466
|
return l.join(" ");
|
|
471
467
|
}), I = S(() => ""), B = (l) => {
|
|
472
468
|
m.value = $.value && l;
|
|
473
|
-
},
|
|
469
|
+
}, a = S(() => $.value && !m.value), s = S(() => !!a.value), h = k(), j = Ae(h), V = S(() => n.modelValue === !0 || j.value === null ? !0 : j.value > 0), x = k(), N = () => a.value ? n.minimizedWidth : n.width;
|
|
474
470
|
U1(() => {
|
|
475
|
-
const l =
|
|
471
|
+
const l = N();
|
|
476
472
|
setTimeout(() => {
|
|
477
|
-
|
|
473
|
+
x.value = l;
|
|
478
474
|
});
|
|
479
475
|
});
|
|
480
|
-
const
|
|
481
|
-
var
|
|
482
|
-
return l.id == ((
|
|
483
|
-
}) : null),
|
|
484
|
-
|
|
485
|
-
},
|
|
486
|
-
|
|
487
|
-
},
|
|
488
|
-
var l,
|
|
489
|
-
(
|
|
476
|
+
const M = k(!1), O = k((P = n.app) != null && P.availableLang && ((T = n.app) == null ? void 0 : T.availableLang.length) > 0 ? (A = n.app) == null ? void 0 : A.availableLang.find((l) => {
|
|
477
|
+
var w;
|
|
478
|
+
return l.id == ((w = n.app) == null ? void 0 : w.lang);
|
|
479
|
+
}) : null), K = () => {
|
|
480
|
+
M.value = !M.value;
|
|
481
|
+
}, J = (l) => {
|
|
482
|
+
O.value = l, M.value = !1, p("select-language", l);
|
|
483
|
+
}, Q = () => {
|
|
484
|
+
var l, w;
|
|
485
|
+
(w = (l = n.app) == null ? void 0 : l.selectedPlan) != null && w.url && (window.location.href = n.app.selectedPlan.url);
|
|
490
486
|
};
|
|
491
|
-
return (l,
|
|
492
|
-
var W,
|
|
487
|
+
return (l, w) => {
|
|
488
|
+
var W, F, G, D, R, q, d, E, U, u1, d1, c1, h1, f1, m1, v1, C1, w1, b1, x1, y1, g1, L1, k1, _1, $1, S1, B1, V1, M1, O1, E1, j1, z1, H1, I1, N1;
|
|
493
489
|
return t(), o("aside", {
|
|
494
490
|
ref_key: "rootElement",
|
|
495
491
|
ref: L,
|
|
496
|
-
class: c(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40",
|
|
492
|
+
class: c(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40", H.value]),
|
|
497
493
|
style: ee(I.value),
|
|
498
|
-
onMouseenter:
|
|
499
|
-
onMouseleave:
|
|
494
|
+
onMouseenter: w[1] || (w[1] = (f) => B(!0)),
|
|
495
|
+
onMouseleave: w[2] || (w[2] = (f) => B(!1))
|
|
500
496
|
}, [
|
|
501
497
|
a1(e("div", {
|
|
502
498
|
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",
|
|
503
499
|
ref_key: "menu",
|
|
504
500
|
ref: h
|
|
505
501
|
}, [
|
|
506
|
-
(t(!0), o(
|
|
502
|
+
(t(!0), o(Z, null, e1(l.items, (f) => (t(), C(He, {
|
|
507
503
|
key: f.label,
|
|
508
504
|
labelTop: f.labelTop,
|
|
509
505
|
isMobile: l.isMobile,
|
|
@@ -517,10 +513,10 @@ const J1 = /* @__PURE__ */ p1(Te, [["render", Ne]]), D1 = (i) => {
|
|
|
517
513
|
slim: s.value,
|
|
518
514
|
"route-name": f.routeName,
|
|
519
515
|
exact: f.exact || !1,
|
|
520
|
-
onUpdateCollapsed:
|
|
516
|
+
onUpdateCollapsed: w[0] || (w[0] = (s1) => p("update-collapsed"))
|
|
521
517
|
}, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "route-name", "exact"]))), 128))
|
|
522
518
|
], 512), [
|
|
523
|
-
[r1,
|
|
519
|
+
[r1, V.value]
|
|
524
520
|
]),
|
|
525
521
|
a1(e("div", {
|
|
526
522
|
class: c(["mt-auto shrink rounded-2xl mx-2", [s.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
|
|
@@ -530,42 +526,42 @@ const J1 = /* @__PURE__ */ p1(Te, [["render", Ne]]), D1 = (i) => {
|
|
|
530
526
|
}, [
|
|
531
527
|
(W = l.app) != null && W.offerPlan ? (t(), o("a", {
|
|
532
528
|
key: 0,
|
|
533
|
-
href: (
|
|
529
|
+
href: (F = l.app) == null ? void 0 : F.offerPlan.url,
|
|
534
530
|
class: "w-full min-w-[220px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
|
|
535
531
|
target: "_blank",
|
|
536
532
|
rel: "noopener noreferrer"
|
|
537
533
|
}, [
|
|
538
|
-
e("div",
|
|
539
|
-
e("div",
|
|
540
|
-
(t(), C(g((
|
|
534
|
+
e("div", Fe, [
|
|
535
|
+
e("div", Ge, [
|
|
536
|
+
(t(), C(g((G = l.app) == null ? void 0 : G.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
541
537
|
]),
|
|
542
538
|
e("p", De, [
|
|
543
|
-
e("strong", null,
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
539
|
+
e("strong", null, u((D = l.app) == null ? void 0 : D.offerPlan.title), 1),
|
|
540
|
+
X(" «" + u((R = l.app) == null ? void 0 : R.offerPlan.name) + "» ", 1),
|
|
541
|
+
w[3] || (w[3] = e("br", null, null, -1)),
|
|
542
|
+
X(u((q = l.app) == null ? void 0 : q.offerPlan.title1), 1)
|
|
547
543
|
])
|
|
548
544
|
])
|
|
549
|
-
], 8, We)) :
|
|
550
|
-
(d = l.app) != null && d.selectedPlan && ((
|
|
545
|
+
], 8, We)) : r("", !0),
|
|
546
|
+
(d = l.app) != null && d.selectedPlan && ((E = l.app) != null && E.selectedPlan.name) ? (t(), o("div", Re, [
|
|
551
547
|
e("div", qe, [
|
|
552
548
|
e("div", null, [
|
|
553
549
|
(t(), C(g((U = l.app) == null ? void 0 : U.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
|
|
554
550
|
]),
|
|
555
551
|
e("div", Ue, [
|
|
556
|
-
e("p", null,
|
|
557
|
-
e("p", null,
|
|
552
|
+
e("p", null, u(((u1 = l.app) == null ? void 0 : u1.selectedPlan.name) || ""), 1),
|
|
553
|
+
e("p", null, u(((d1 = l.app) == null ? void 0 : d1.selectedPlan.title) || ""), 1)
|
|
558
554
|
])
|
|
559
555
|
]),
|
|
560
556
|
e("div", Ze, [
|
|
561
|
-
|
|
557
|
+
z(Z1, {
|
|
562
558
|
class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
|
|
563
559
|
variant: "touch",
|
|
564
560
|
icon: y(se),
|
|
565
|
-
onClick:
|
|
561
|
+
onClick: Q
|
|
566
562
|
}, null, 8, ["icon"])
|
|
567
563
|
])
|
|
568
|
-
])) :
|
|
564
|
+
])) : r("", !0),
|
|
569
565
|
(c1 = l.app) != null && c1.terms ? (t(), o("a", {
|
|
570
566
|
key: 2,
|
|
571
567
|
href: (h1 = l.app) == null ? void 0 : h1.terms.url,
|
|
@@ -574,10 +570,10 @@ const J1 = /* @__PURE__ */ p1(Te, [["render", Ne]]), D1 = (i) => {
|
|
|
574
570
|
}, [
|
|
575
571
|
e("div", Je, [
|
|
576
572
|
e("div", Qe, [
|
|
577
|
-
e("span", Xe,
|
|
573
|
+
e("span", Xe, u(((f1 = l.app) == null ? void 0 : f1.terms.label) || "Terms"), 1)
|
|
578
574
|
])
|
|
579
575
|
])
|
|
580
|
-
], 8, Ke)) :
|
|
576
|
+
], 8, Ke)) : r("", !0),
|
|
581
577
|
(m1 = l.app) != null && m1.offer ? (t(), o("a", {
|
|
582
578
|
key: 3,
|
|
583
579
|
href: (v1 = l.app) == null ? void 0 : v1.offer.url,
|
|
@@ -586,35 +582,35 @@ const J1 = /* @__PURE__ */ p1(Te, [["render", Ne]]), D1 = (i) => {
|
|
|
586
582
|
}, [
|
|
587
583
|
e("div", e0, [
|
|
588
584
|
e("div", t0, [
|
|
589
|
-
e("span", s0,
|
|
585
|
+
e("span", s0, u(((C1 = l.app) == null ? void 0 : C1.offer.label) || "Offert"), 1)
|
|
590
586
|
])
|
|
591
587
|
])
|
|
592
|
-
], 8, Ye)) :
|
|
588
|
+
], 8, Ye)) : r("", !0),
|
|
593
589
|
(b1 = (w1 = l.app) == null ? void 0 : w1.availableLang) != null && b1.length ? (t(), o("div", l0, [
|
|
594
590
|
e("div", {
|
|
595
591
|
class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
|
|
596
|
-
onClick:
|
|
592
|
+
onClick: K
|
|
597
593
|
}, [
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
e("span", o0,
|
|
594
|
+
z(y(le), { class: "w-4" }),
|
|
595
|
+
X(" " + u((x1 = O.value) == null ? void 0 : x1.name) + " ", 1),
|
|
596
|
+
e("span", o0, u(M.value ? "▲" : "▼"), 1)
|
|
601
597
|
]),
|
|
602
|
-
|
|
603
|
-
(t(!0), o(
|
|
604
|
-
var s1,
|
|
598
|
+
M.value ? (t(), o("div", n0, [
|
|
599
|
+
(t(!0), o(Z, null, e1((y1 = l.app) == null ? void 0 : y1.availableLang, (f) => {
|
|
600
|
+
var s1, P1;
|
|
605
601
|
return t(), o("div", {
|
|
606
602
|
key: f.id,
|
|
607
|
-
class: c(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": f.id !== ((s1 =
|
|
603
|
+
class: c(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": f.id !== ((s1 = O.value) == null ? void 0 : s1.id), "text-gray-300": f.id === ((P1 = O.value) == null ? void 0 : P1.id) }]),
|
|
608
604
|
onClick: (l9) => {
|
|
609
|
-
var
|
|
610
|
-
return f.id !== ((
|
|
605
|
+
var T1;
|
|
606
|
+
return f.id !== ((T1 = O.value) == null ? void 0 : T1.id) && J(f);
|
|
611
607
|
}
|
|
612
|
-
},
|
|
608
|
+
}, u(f.name), 11, a0);
|
|
613
609
|
}), 128))
|
|
614
|
-
])) :
|
|
615
|
-
])) :
|
|
610
|
+
])) : r("", !0)
|
|
611
|
+
])) : r("", !0)
|
|
616
612
|
], 2),
|
|
617
|
-
!s.value && ((g1 = l.app) != null && g1.offer || (k1 = (L1 = l.app) == null ? void 0 : L1.availableLang) != null && k1.length || (_1 = l.app) != null && _1.selectedPlan && (($1 = l.app) != null && $1.selectedPlan.name) || (S1 = l.app) != null && S1.offerPlan) ? (t(), o("div", r0)) :
|
|
613
|
+
!s.value && ((g1 = l.app) != null && g1.offer || (k1 = (L1 = l.app) == null ? void 0 : L1.availableLang) != null && k1.length || (_1 = l.app) != null && _1.selectedPlan && (($1 = l.app) != null && $1.selectedPlan.name) || (S1 = l.app) != null && S1.offerPlan) ? (t(), o("div", r0)) : r("", !0),
|
|
618
614
|
e("div", {
|
|
619
615
|
class: c([s.value ? "grid" : "flex space-x-2"])
|
|
620
616
|
}, [
|
|
@@ -622,9 +618,9 @@ const J1 = /* @__PURE__ */ p1(Te, [["render", Ne]]), D1 = (i) => {
|
|
|
622
618
|
key: 0,
|
|
623
619
|
href: "#",
|
|
624
620
|
class: c(["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"]]),
|
|
625
|
-
onClick:
|
|
621
|
+
onClick: b
|
|
626
622
|
}, [
|
|
627
|
-
l.news.menuLabel ? (t(), o("div", i0,
|
|
623
|
+
l.news.menuLabel ? (t(), o("div", i0, u(l.news.menuLabel || "News"), 1)) : r("", !0),
|
|
628
624
|
e("div", {
|
|
629
625
|
class: c(["w-full", [s.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
630
626
|
}, [
|
|
@@ -634,18 +630,18 @@ const J1 = /* @__PURE__ */ p1(Te, [["render", Ne]]), D1 = (i) => {
|
|
|
634
630
|
e("div", null, [
|
|
635
631
|
(t(), C(g(J1), { class: "w-[24px] h-[24px] mx-auto" }))
|
|
636
632
|
]),
|
|
637
|
-
s.value ?
|
|
638
|
-
_.value > 0 ? (t(), o("span", u0)) :
|
|
639
|
-
_.value > 0 ? (t(), o("span", d0)) :
|
|
633
|
+
s.value ? r("", !0) : (t(), o("div", p0, u(l.news.menuLabel || "News"), 1)),
|
|
634
|
+
_.value > 0 ? (t(), o("span", u0)) : r("", !0),
|
|
635
|
+
_.value > 0 ? (t(), o("span", d0)) : r("", !0)
|
|
640
636
|
], 2)
|
|
641
637
|
], 2)
|
|
642
|
-
], 2)) :
|
|
638
|
+
], 2)) : r("", !0),
|
|
643
639
|
(B1 = l.app) != null && B1.support ? (t(), o("a", {
|
|
644
640
|
key: 1,
|
|
645
641
|
href: (M1 = (V1 = l.app) == null ? void 0 : V1.support) == null ? void 0 : M1.url,
|
|
646
642
|
class: c(["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]"]])
|
|
647
643
|
}, [
|
|
648
|
-
(E1 = (O1 = l.app) == null ? void 0 : O1.support) != null && E1.label ? (t(), o("div", h0,
|
|
644
|
+
(E1 = (O1 = l.app) == null ? void 0 : O1.support) != null && E1.label ? (t(), o("div", h0, u(((z1 = (j1 = l.app) == null ? void 0 : j1.support) == null ? void 0 : z1.label) || "Support"), 1)) : r("", !0),
|
|
649
645
|
e("div", {
|
|
650
646
|
class: c(["w-full", [s.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
|
|
651
647
|
}, [
|
|
@@ -655,22 +651,22 @@ const J1 = /* @__PURE__ */ p1(Te, [["render", Ne]]), D1 = (i) => {
|
|
|
655
651
|
e("div", null, [
|
|
656
652
|
(t(), C(g(y(ce)), { class: "w-[20px] h-[20px] mx-auto" }))
|
|
657
653
|
]),
|
|
658
|
-
s.value ?
|
|
654
|
+
s.value ? r("", !0) : (t(), o("div", f0, u(((I1 = (H1 = l.app) == null ? void 0 : H1.support) == null ? void 0 : I1.label) || "Support"), 1))
|
|
659
655
|
], 2)
|
|
660
656
|
], 2)
|
|
661
|
-
], 10, c0)) :
|
|
657
|
+
], 10, c0)) : r("", !0)
|
|
662
658
|
], 2),
|
|
663
659
|
e("p", {
|
|
664
660
|
class: c([[s.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
|
|
665
661
|
}, [
|
|
666
|
-
|
|
667
|
-
|
|
662
|
+
w[4] || (w[4] = e("span", null, [
|
|
663
|
+
X("Powered by "),
|
|
668
664
|
e("span", { class: "text-blue-700" }, "OneB")
|
|
669
665
|
], -1)),
|
|
670
|
-
e("span", null,
|
|
666
|
+
e("span", null, u((N1 = l.app) == null ? void 0 : N1.version), 1)
|
|
671
667
|
], 2)
|
|
672
668
|
], 2), [
|
|
673
|
-
[r1,
|
|
669
|
+
[r1, V.value]
|
|
674
670
|
])
|
|
675
671
|
], 38);
|
|
676
672
|
};
|
|
@@ -688,16 +684,16 @@ const v0 = /* @__PURE__ */ p1(m0, [["__scopeId", "data-v-6ede2cc5"]]), C0 = { cl
|
|
|
688
684
|
}, j0 = { class: "h-full relative" }, z0 = { class: "flex items-center p-3 space-x-1.5" }, H0 = {
|
|
689
685
|
class: "overflow-auto",
|
|
690
686
|
style: { height: "calc(100% - 62px)" }
|
|
691
|
-
},
|
|
687
|
+
}, I0 = {
|
|
692
688
|
key: 0,
|
|
693
689
|
class: "p-5"
|
|
694
|
-
},
|
|
690
|
+
}, N0 = { key: 1 }, P0 = { class: "p-4 text-gray text-center" }, T0 = { key: 2 }, A0 = {
|
|
695
691
|
class: "p-3 space-y-1.5 rounded-lg",
|
|
696
692
|
style: { "box-shadow": "0 0 6px #eaeaea" }
|
|
697
|
-
}, W0 = { key: 0 },
|
|
693
|
+
}, W0 = { key: 0 }, F0 = {
|
|
698
694
|
key: 0,
|
|
699
695
|
class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
|
|
700
|
-
},
|
|
696
|
+
}, G0 = {
|
|
701
697
|
key: 1,
|
|
702
698
|
class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
|
|
703
699
|
}, D0 = {
|
|
@@ -711,46 +707,46 @@ const v0 = /* @__PURE__ */ p1(m0, [["__scopeId", "data-v-6ede2cc5"]]), C0 = { cl
|
|
|
711
707
|
props: ue,
|
|
712
708
|
emits: ["load-news", "load-tariff", "open-tariff"],
|
|
713
709
|
setup(i, { emit: v }) {
|
|
714
|
-
const
|
|
710
|
+
const p = v, n = i;
|
|
715
711
|
let _ = window.localStorage.getItem("sidebar-slim");
|
|
716
712
|
window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), _ = "1");
|
|
717
|
-
const
|
|
718
|
-
k(!0), t1(
|
|
713
|
+
const b = k(_ === "1");
|
|
714
|
+
k(!0), t1(b, (s) => {
|
|
719
715
|
window.localStorage.setItem("sidebar-slim", String(s ? 1 : 0));
|
|
720
716
|
});
|
|
721
717
|
const m = k(!1), $ = () => {
|
|
722
|
-
m.value = !m.value, m.value &&
|
|
723
|
-
}, L = S(() =>
|
|
718
|
+
m.value = !m.value, m.value && p("load-news");
|
|
719
|
+
}, L = S(() => n.showHeadre);
|
|
724
720
|
t1(
|
|
725
|
-
() =>
|
|
721
|
+
() => n.showHeadre,
|
|
726
722
|
// Передаємо доступ до props
|
|
727
723
|
() => {
|
|
728
|
-
L.value =
|
|
724
|
+
L.value = n.showHeadre;
|
|
729
725
|
}
|
|
730
726
|
);
|
|
731
|
-
const
|
|
732
|
-
|
|
733
|
-
}, B = S(() =>
|
|
727
|
+
const H = k(window.innerWidth), I = () => {
|
|
728
|
+
H.value = window.innerWidth;
|
|
729
|
+
}, B = S(() => H.value <= 768);
|
|
734
730
|
q1(() => {
|
|
735
731
|
window.addEventListener("resize", I);
|
|
736
732
|
}), te(() => {
|
|
737
733
|
window.removeEventListener("resize", I);
|
|
738
734
|
});
|
|
739
|
-
const
|
|
735
|
+
const a = (s) => {
|
|
740
736
|
var h;
|
|
741
|
-
(h =
|
|
737
|
+
(h = n.handlers) == null || h.onSetLang(s);
|
|
742
738
|
};
|
|
743
739
|
return (s, h) => {
|
|
744
|
-
var
|
|
745
|
-
const
|
|
740
|
+
var V, x, N, M, O, K, J, Q, P, T, A, l, w, W, F, G, D, R, q;
|
|
741
|
+
const j = R1("RouterLink");
|
|
746
742
|
return t(), o("div", C0, [
|
|
747
743
|
a1(e("div", w0, [
|
|
748
744
|
e("div", b0, [
|
|
749
745
|
e("button", {
|
|
750
|
-
onClick: h[0] || (h[0] = (d) =>
|
|
746
|
+
onClick: h[0] || (h[0] = (d) => b.value = !b.value),
|
|
751
747
|
class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
|
|
752
748
|
}, [
|
|
753
|
-
|
|
749
|
+
z(y(de), { class: "w-[24px] h-[24px]" })
|
|
754
750
|
])
|
|
755
751
|
]),
|
|
756
752
|
e("div", x0, [
|
|
@@ -759,66 +755,66 @@ const v0 = /* @__PURE__ */ p1(m0, [["__scopeId", "data-v-6ede2cc5"]]), C0 = { cl
|
|
|
759
755
|
src: s.logoSrc,
|
|
760
756
|
class: "w-8 h-8 mx-auto",
|
|
761
757
|
alt: "logo"
|
|
762
|
-
}, null, 8, y0)) :
|
|
758
|
+
}, null, 8, y0)) : r("", !0)
|
|
763
759
|
]),
|
|
764
|
-
s.app != null ? (t(), C(
|
|
760
|
+
s.app != null ? (t(), C(j, {
|
|
765
761
|
key: 0,
|
|
766
762
|
to: "/",
|
|
767
763
|
class: "pl-2 max-w-xs"
|
|
768
764
|
}, {
|
|
769
765
|
default: n1(() => {
|
|
770
|
-
var d,
|
|
766
|
+
var d, E;
|
|
771
767
|
return [
|
|
772
|
-
e("div", g0,
|
|
773
|
-
e("div", L0,
|
|
768
|
+
e("div", g0, u(s.app.name), 1),
|
|
769
|
+
e("div", L0, u((E = (d = s.app) == null ? void 0 : d.workspace) == null ? void 0 : E.name), 1)
|
|
774
770
|
];
|
|
775
771
|
}),
|
|
776
772
|
_: 1
|
|
777
|
-
})) :
|
|
773
|
+
})) : r("", !0),
|
|
778
774
|
e("div", k0, [
|
|
779
775
|
e("div", _0, [
|
|
780
776
|
e("div", $0, [
|
|
781
777
|
A1(s.$slots, "before-header-menu", {}, void 0, !0),
|
|
782
|
-
s.improveTariff && ((
|
|
778
|
+
s.improveTariff && ((V = s.improveTariff) != null && V.label) && s.improveTariff.label ? (t(), o("div", S0, [
|
|
783
779
|
e("button", {
|
|
784
780
|
type: "button",
|
|
785
781
|
class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
|
|
786
782
|
onClick: h[1] || (h[1] = //@ts-ignore
|
|
787
783
|
(...d) => {
|
|
788
|
-
var
|
|
789
|
-
return ((
|
|
784
|
+
var E, U;
|
|
785
|
+
return ((E = s.handlers) == null ? void 0 : E.onImproveTariff) && ((U = s.handlers) == null ? void 0 : U.onImproveTariff(...d));
|
|
790
786
|
}),
|
|
791
787
|
style: { "font-size": "10px" }
|
|
792
788
|
}, [
|
|
793
789
|
e("div", B0, [
|
|
794
|
-
(t(), C(g((
|
|
790
|
+
(t(), C(g((x = s.improveTariff) == null ? void 0 : x.icon), { class: "h-4 w-4 mx-auto" }))
|
|
795
791
|
]),
|
|
796
|
-
e("span", V0,
|
|
792
|
+
e("span", V0, u((N = s.improveTariff) == null ? void 0 : N.label), 1)
|
|
797
793
|
])
|
|
798
|
-
])) :
|
|
794
|
+
])) : r("", !0),
|
|
799
795
|
s.help ? (t(), C(oe, {
|
|
800
796
|
key: 1,
|
|
801
797
|
help: s.help
|
|
802
|
-
}, null, 8, ["help"])) :
|
|
803
|
-
((
|
|
798
|
+
}, null, 8, ["help"])) : r("", !0),
|
|
799
|
+
((M = s.handlers) == null ? void 0 : M.onBrowse) != null ? (t(), C(ne, {
|
|
804
800
|
key: 2,
|
|
805
|
-
workspace: (
|
|
806
|
-
apps: ((
|
|
807
|
-
"change-label": ((
|
|
808
|
-
"apps-title": ((
|
|
809
|
-
"on-app": (
|
|
810
|
-
"on-change": (
|
|
801
|
+
workspace: (O = s.app) == null ? void 0 : O.workspace,
|
|
802
|
+
apps: ((K = s.app) == null ? void 0 : K.apps) || [],
|
|
803
|
+
"change-label": ((J = s.labels) == null ? void 0 : J.change) || "Change",
|
|
804
|
+
"apps-title": ((Q = s.labels) == null ? void 0 : Q.apps) || "Apps",
|
|
805
|
+
"on-app": (P = s.handlers) == null ? void 0 : P.onApp,
|
|
806
|
+
"on-change": (T = s.handlers) == null ? void 0 : T.onChange,
|
|
811
807
|
onOpen: (A = s.handlers) == null ? void 0 : A.onBrowse
|
|
812
|
-
}, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) :
|
|
813
|
-
|
|
808
|
+
}, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : r("", !0),
|
|
809
|
+
z(ae, {
|
|
814
810
|
user: s.user,
|
|
815
811
|
menu: s.menu,
|
|
816
812
|
app: s.app,
|
|
817
813
|
"account-label": ((l = s.labels) == null ? void 0 : l.account) || "Account",
|
|
818
|
-
"logout-label": ((
|
|
814
|
+
"logout-label": ((w = s.labels) == null ? void 0 : w.logout) || "Logout",
|
|
819
815
|
"version-label": ((W = s.labels) == null ? void 0 : W.version) || "",
|
|
820
|
-
"on-account": (
|
|
821
|
-
"on-logout": (
|
|
816
|
+
"on-account": (F = s.handlers) == null ? void 0 : F.onAccount,
|
|
817
|
+
"on-logout": (G = s.handlers) == null ? void 0 : G.onLogout
|
|
822
818
|
}, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
|
|
823
819
|
])
|
|
824
820
|
])
|
|
@@ -827,21 +823,21 @@ const v0 = /* @__PURE__ */ p1(m0, [["__scopeId", "data-v-6ede2cc5"]]), C0 = { cl
|
|
|
827
823
|
[r1, L.value]
|
|
828
824
|
]),
|
|
829
825
|
e("div", M0, [
|
|
830
|
-
!B.value || !
|
|
826
|
+
!B.value || !b.value ? (t(), C(v0, {
|
|
831
827
|
key: 0,
|
|
832
828
|
app: s.app,
|
|
833
829
|
items: s.sidebarItems,
|
|
834
830
|
"with-news": s.news != null,
|
|
835
831
|
news: s.news,
|
|
836
832
|
isMobile: B.value,
|
|
837
|
-
modelValue:
|
|
838
|
-
"onUpdate:modelValue": h[2] || (h[2] = (d) =>
|
|
833
|
+
modelValue: b.value,
|
|
834
|
+
"onUpdate:modelValue": h[2] || (h[2] = (d) => b.value = d),
|
|
839
835
|
onShowNews: $,
|
|
840
|
-
onSelectLanguage:
|
|
841
|
-
onUpdateCollapsed: h[3] || (h[3] = (d) =>
|
|
842
|
-
}, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) :
|
|
836
|
+
onSelectLanguage: a,
|
|
837
|
+
onUpdateCollapsed: h[3] || (h[3] = (d) => b.value = !b.value)
|
|
838
|
+
}, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) : r("", !0),
|
|
843
839
|
e("div", {
|
|
844
|
-
class: c([[
|
|
840
|
+
class: c([[b.value ? "sm:ml-[60px]" : "sm:ml-[260px] hidden sm:block"], "body scroll-body w-full overflow-y-auto"])
|
|
845
841
|
}, [
|
|
846
842
|
e("div", {
|
|
847
843
|
class: c(["content transition-all", { "pt-[56px]": L.value }])
|
|
@@ -855,17 +851,17 @@ const v0 = /* @__PURE__ */ p1(m0, [["__scopeId", "data-v-6ede2cc5"]]), C0 = { cl
|
|
|
855
851
|
key: 0,
|
|
856
852
|
class: "fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
|
|
857
853
|
onClick: h[4] || (h[4] = Y((d) => m.value = !1, ["self"]))
|
|
858
|
-
})) :
|
|
854
|
+
})) : r("", !0),
|
|
859
855
|
e("div", {
|
|
860
856
|
class: c(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [m.value ? "sm:w-[560px] w-full" : "w-0"]])
|
|
861
857
|
}, [
|
|
862
858
|
m.value ? (t(), o("div", E0, [
|
|
863
859
|
e("div", j0, [
|
|
864
860
|
e("div", z0, [
|
|
865
|
-
|
|
861
|
+
z(J1, { class: "w-10 h-10" }),
|
|
866
862
|
h[6] || (h[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
|
|
867
863
|
e("div", null, [
|
|
868
|
-
|
|
864
|
+
z(Z1, {
|
|
869
865
|
variant: "touch",
|
|
870
866
|
icon: y(ie),
|
|
871
867
|
onClick: h[5] || (h[5] = (d) => m.value = !1)
|
|
@@ -873,22 +869,22 @@ const v0 = /* @__PURE__ */ p1(m0, [["__scopeId", "data-v-6ede2cc5"]]), C0 = { cl
|
|
|
873
869
|
])
|
|
874
870
|
]),
|
|
875
871
|
e("div", H0, [
|
|
876
|
-
s.news.isLoading && ((D = s.news.items) == null ? void 0 : D.length) === 0 ? (t(), o("div",
|
|
877
|
-
|
|
878
|
-
])) : ((R = s.news.items) == null ? void 0 : R.length) === 0 ? (t(), o("div",
|
|
879
|
-
e("div",
|
|
880
|
-
])) : ((q = s.news.items) == null ? void 0 : q.length) > 0 ? (t(), o("div",
|
|
881
|
-
(t(!0), o(
|
|
872
|
+
s.news.isLoading && ((D = s.news.items) == null ? void 0 : D.length) === 0 ? (t(), o("div", I0, [
|
|
873
|
+
z(re, { class: "w-6 h-6 text-gray-600 mx-auto" })
|
|
874
|
+
])) : ((R = s.news.items) == null ? void 0 : R.length) === 0 ? (t(), o("div", N0, [
|
|
875
|
+
e("div", P0, u(s.news.emptyText), 1)
|
|
876
|
+
])) : ((q = s.news.items) == null ? void 0 : q.length) > 0 ? (t(), o("div", T0, [
|
|
877
|
+
(t(!0), o(Z, null, e1(s.news.items, (d) => (t(), o("div", {
|
|
882
878
|
key: d.id,
|
|
883
879
|
class: "p-3"
|
|
884
880
|
}, [
|
|
885
881
|
e("div", A0, [
|
|
886
882
|
e("div", null, [
|
|
887
883
|
d.type ? (t(), o("div", W0, [
|
|
888
|
-
d.type === 10 ? (t(), o("span",
|
|
889
|
-
])) :
|
|
890
|
-
e("div", q0,
|
|
891
|
-
e("div", U0,
|
|
884
|
+
d.type === 10 ? (t(), o("span", F0, "update")) : d.type === 11 ? (t(), o("span", G0, "warning")) : d.type === 12 ? (t(), o("span", D0, "notice")) : d.type === 13 ? (t(), o("span", R0, "ads")) : r("", !0)
|
|
885
|
+
])) : r("", !0),
|
|
886
|
+
e("div", q0, u(d.title), 1),
|
|
887
|
+
e("div", U0, u(d.summary), 1)
|
|
892
888
|
]),
|
|
893
889
|
d.image_url ? (t(), o("div", Z0, [
|
|
894
890
|
e("img", {
|
|
@@ -896,32 +892,32 @@ const v0 = /* @__PURE__ */ p1(m0, [["__scopeId", "data-v-6ede2cc5"]]), C0 = { cl
|
|
|
896
892
|
alt: "",
|
|
897
893
|
class: "w-full rounded-md"
|
|
898
894
|
}, null, 8, K0)
|
|
899
|
-
])) :
|
|
900
|
-
e("div", J0,
|
|
895
|
+
])) : r("", !0),
|
|
896
|
+
e("div", J0, u(d.body), 1),
|
|
901
897
|
d.video_url ? (t(), o("div", Q0, [
|
|
902
898
|
e("a", {
|
|
903
899
|
href: d.video_url,
|
|
904
900
|
target: "_blank",
|
|
905
901
|
class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
|
|
906
|
-
},
|
|
907
|
-
])) :
|
|
902
|
+
}, u(s.news.openVideoText), 9, X0)
|
|
903
|
+
])) : r("", !0),
|
|
908
904
|
e("div", Y0, [
|
|
909
|
-
e("span", e9,
|
|
905
|
+
e("span", e9, u(d.published), 1),
|
|
910
906
|
d.post_url ? (t(), o("a", {
|
|
911
907
|
key: 0,
|
|
912
908
|
href: d.post_url,
|
|
913
909
|
target: "_blank",
|
|
914
910
|
class: "text-blue-600 hover:text-blue-700 block"
|
|
915
|
-
},
|
|
911
|
+
}, u(s.news.moreText), 9, t9)) : r("", !0)
|
|
916
912
|
])
|
|
917
913
|
])
|
|
918
914
|
]))), 128))
|
|
919
|
-
])) :
|
|
915
|
+
])) : r("", !0)
|
|
920
916
|
])
|
|
921
917
|
])
|
|
922
|
-
])) :
|
|
918
|
+
])) : r("", !0)
|
|
923
919
|
], 2)
|
|
924
|
-
])) :
|
|
920
|
+
])) : r("", !0)
|
|
925
921
|
]);
|
|
926
922
|
};
|
|
927
923
|
}
|