@oneb/ui-vue 0.1.63 → 0.1.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
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"),Be=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const xe={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}},Ve={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}},Ee={sidebarItems:xe.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 Ne(p,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 Le(p,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"})])}const _e=["href"],Se={class:"flex flex-nowrap items-center w-full h-[24px]"},$e={key:0,class:"w-[44px] flex-shrink-0"},De={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},ze={class:"py-[8px] pl-0 pr-0"},Me={class:"flex flex-nowrap items-center w-full h-[24px]"},Oe={key:0,class:"w-[44px] flex-shrink-0"},Te={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},je={class:"py-[8px] pl-0 pr-0"},He={key:1,class:"p-3"},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=["href"],Ge={class:"flex items-center justify-between min-w-full h-[24px]"},Re={key:0,class:"text-xs"},Ue={key:0,class:"text-xs"},Ze={key:1,class:"pr-3"},Xe=e.defineComponent({__name:"OneSidebarLink",props:Ve,emits:["update-collapsed"],setup(p,{emit:d}){const n=p,r=d,f=e.computed(()=>n.href??!1),u=e.computed(()=>c(n)),c=l=>l.route?l.route:l.routeName?{name:l.routeName}:null,h=e.ref(n.open),g=e.computed(l=>{var v;return(n==null?void 0:n.menuGroup)&&(l==null?void 0:l.meta)&&((v=l.meta)==null?void 0:v.menuGroup)&&l.meta.menuGroup&&l.meta.menuGroup===n.menuGroup}),V=()=>{h.value=!h.value},w=(l,v)=>{n.subItems&&n.subItems.length>0&&!v&&(l.preventDefault(),V()),(v||!n.subItems||n.subItems.length===0)&&n.isMobile&&r("update-collapsed")};return(l,v)=>{var s,B;const t=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",Se,[l.icon?(e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",De,[e.createElementVNode("span",ze,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(h.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,_e)):e.createCommentVNode("",!0),!f.value&&u.value?(e.openBlock(),e.createBlock(t,{key:2,to:u.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":g.value(l.$route)}]),"active-class":(s=l.$route)!=null&&s.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(()=>[e.createElementVNode("div",Me,[l.icon?(e.openBlock(),e.createElementBlock("div",Oe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Te,[e.createElementVNode("span",je,e.toDisplayString(l.label),1)]),n.subItems&&n.subItems.length>0&&!l.slim?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.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&&!u.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",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(h.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),h.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,C=>(e.openBlock(),e.createElementBlock("div",{key:C.label,class:e.normalizeClass([(l.slim,"")])},[C.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:C.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",Ge,[l.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Re,e.toDisplayString(C.label),1)),C.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(C.icon),{class:"w-[15px] h-[15px] mx-auto"}))],2)):e.createCommentVNode("",!0)])],8,We)):c(C)?(e.openBlock(),e.createBlock(t,{key:1,to:c(C),onClick:v[0]||(v[0]=e.withModifiers(E=>w(E,!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",Ue,e.toDisplayString(C.label),1)),C.icon?(e.openBlock(),e.createElementBlock("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.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)}}}),Je={},Ke={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Qe(p,d){return e.openBlock(),e.createElementBlock("svg",Ke,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 be=q._export_sfc(Je,[["render",Qe]]),ye=p=>{if(Array.isArray(p))return p.map(e.unref);const d=e.unref(p);return Array.isArray(d)?d:[d]},Ye=(p,d)=>{let n;const r=f=>{f.forEach(u=>{const c=e.unref(u);if(c){if(!(c instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:c,array:p}),new Error("Vuestic: Unable to observe non-HTMLElement");c&&(n==null||n.observe(c))}})};return e.watch(p,f=>{n==null||n.disconnect(),r(ye(f))}),e.onMounted(()=>{n=new ResizeObserver(d),r(ye(p))}),e.onBeforeUnmount(()=>n==null?void 0:n.disconnect()),n},e1=p=>{const d=e.ref(null);return Ye([p],()=>{var n;d.value=((n=p.value)==null?void 0:n.clientWidth)??null}),e.watchEffect(()=>{var n;d.value=((n=p.value)==null?void 0:n.clientWidth)??null}),d},t1=["href"],o1={class:"rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2"},l1={class:""},n1={class:"",style:{"font-size":"10px"}},a1={key:1,class:"flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[220px] space-x-3 px-2"},r1={class:"flex items-center text-[#525B66] space-x-3"},s1={style:{"font-size":"10px"}},i1={class:"relative -right-2"},c1=["href"],p1={class:"flex flex-nowrap items-center w-max h-[24px]"},d1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},m1={class:"py-[8px] pl-0 pr-[8px]"},u1=["href"],C1={class:"flex flex-nowrap items-center w-max h-[24px]"},f1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},h1={class:"py-[8px] pl-0 pr-[8px]"},v1={key:4,class:"custom-select ml-1 w-full relative pt-2 pb-2"},k1={class:"pl-1"},w1={key:0,class:"dropdown w-[220px] z-50 text-[#525B66]"},y1=["onClick"],x1={key:0,class:"mt-0.5 h-0 border-t border-secondary-stroke mb-1"},b1={key:0,class:"tooltip-text"},g1={key:0},B1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},V1={key:2,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},E1=["href"],N1={key:0,class:"tooltip-text"},L1={key:0},_1=e.defineComponent({__name:"OneSidebar",props:xe,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(p,{emit:d}){var N,L,_;const n=d,r=p,f=e.computed(()=>{var o;return((o=r.news)==null?void 0:o.unseenCount)||0}),u=()=>{n("show-news")},c=e.ref(!1),h=e.ref(r.hoverable);e.watch(r,()=>{r.modelValue?h.value=!0:h.value=!1}),r.modelValue&&(h.value=!0);const g=e.shallowRef(),V=e.computed(()=>{const o=[];if(r.slim||o.push("fixed"),!v.value)if(!r.isMobile)o.push("w-[260px]");else return o.push("w-full");return o.join(" ")}),w=e.computed(()=>""),l=o=>{c.value=h.value&&o},v=e.computed(()=>h.value&&!c.value),t=e.computed(()=>!!v.value),s=e.ref(),B=e1(s),C=e.computed(()=>r.modelValue===!0||B.value===null?!0:B.value>0),E=e.ref(),j=()=>v.value?r.minimizedWidth:r.width;e.watchEffect(()=>{const o=j();setTimeout(()=>{E.value=o})});const y=e.ref(!1),x=e.ref((N=r.app)!=null&&N.availableLang&&((L=r.app)==null?void 0:L.availableLang.length)>0?(_=r.app)==null?void 0:_.availableLang.find(o=>{var m;return o.id==((m=r.app)==null?void 0:m.lang)}):null),H=()=>{y.value=!y.value},I=o=>{x.value=o,y.value=!1,n("select-language",o)},P=()=>{var o,m;(m=(o=r.app)==null?void 0:o.selectedPlan)!=null&&m.url&&(window.location.href=r.app.selectedPlan.url)};return(o,m)=>{var S,$,D,z,M,O,a,b,T,W,G,R,U,Z,X,J,K,Q,Y,ee,te,oe,le,ne,ae,re,se,ie,ce,pe,de,me,ue,Ce,fe,he,ve;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:g,class:e.normalizeClass(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40",V.value]),style:e.normalizeStyle(w.value),onMouseenter:m[1]||(m[1]=i=>l(!0)),onMouseleave:m[2]||(m[2]=i=>l(!1))},[e.withDirectives(e.createElementVNode("div",{class:"overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 px-1 ml-1 mr-1 mt-2 flex-grow",ref_key:"menu",ref:s},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,i=>(e.openBlock(),e.createBlock(Xe,{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=>n("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","menuGroup","href","slim","route-name","exact"]))),128))],512),[[e.vShow,C.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"])},[(S=o.app)!=null&&S.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:($=o.app)==null?void 0:$.offerPlan.url,class:"w-full min-w-[220px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",target:"_blank",rel:"noopener noreferrer"},[e.createElementVNode("div",o1,[e.createElementVNode("div",l1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((D=o.app)==null?void 0:D.offerPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("p",n1,[e.createElementVNode("strong",null,e.toDisplayString((z=o.app)==null?void 0:z.offerPlan.title),1),e.createTextVNode(" «"+e.toDisplayString((M=o.app)==null?void 0:M.offerPlan.name)+"» ",1),m[3]||(m[3]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(e.toDisplayString((O=o.app)==null?void 0:O.offerPlan.title1),1)])])],8,t1)):e.createCommentVNode("",!0),(a=o.app)!=null&&a.selectedPlan&&((b=o.app)!=null&&b.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",a1,[e.createElementVNode("div",r1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((T=o.app)==null?void 0:T.selectedPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("div",s1,[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",i1,[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",p1,[e.createElementVNode("div",d1,[e.createElementVNode("span",m1,e.toDisplayString(((Z=o.app)==null?void 0:Z.terms.label)||"Terms"),1)])])],8,c1)):e.createCommentVNode("",!0),(X=o.app)!=null&&X.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(J=o.app)==null?void 0:J.offer.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",C1,[e.createElementVNode("div",f1,[e.createElementVNode("span",h1,e.toDisplayString(((K=o.app)==null?void 0:K.offer.label)||"Offert"),1)])])],8,u1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",v1,[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=x.value)==null?void 0:ee.name)+" ",1),e.createElementVNode("span",k1,e.toDisplayString(y.value?"▲":"▼"),1)]),y.value?(e.openBlock(),e.createElementBlock("div",w1,[(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=x.value)==null?void 0:A.id),"text-gray-300":i.id===((ke=x.value)==null?void 0:ke.id)}]),onClick:vt=>{var we;return i.id!==((we=x.value)==null?void 0:we.id)&&I(i)}},e.toDisplayString(i.name),11,y1)}),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",x1)):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:u},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",b1,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(be),{class:"w-[24px] h-[24px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",g1,e.toDisplayString(o.news.menuLabel||"News"),1)),f.value>0?(e.openBlock(),e.createElementBlock("span",B1)):e.createCommentVNode("",!0),f.value>0?(e.openBlock(),e.createElementBlock("span",V1)):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),(ie=o.app)!=null&&ie.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(pe=(ce=o.app)==null?void 0:ce.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]"]])},[(me=(de=o.app)==null?void 0:de.support)!=null&&me.label?(e.openBlock(),e.createElementBlock("div",N1,e.toDisplayString(((Ce=(ue=o.app)==null?void 0:ue.support)==null?void 0:Ce.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(Le)),{class:"w-[20px] h-[20px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",L1,e.toDisplayString(((he=(fe=o.app)==null?void 0:fe.support)==null?void 0:he.label)||"Support"),1))],2)],2)],10,E1)):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,C.value]])],38)}}});const ge=q._export_sfc(_1,[["__scopeId","data-v-6ede2cc5"]]),S1={class:"h-screen h-dvh relative"},$1={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)"}},D1={class:"p-2 flex-shrink-0"},z1={class:"w-10 h-10 flex items-center flex-shrink-0"},M1=["src"],O1={class:"whitespace-nowrap font-semibold text-xl"},T1={class:"text-xs whitespace-nowrap"},j1={class:"w-full"},H1={class:"w-full flex justify-end pr-4"},I1={class:"flex items-center space-x-1"},P1={key:0,class:"module-border-wrap flex justify-center items-center"},A1={class:"h-4 w-4"},F1={class:"ml-2 hidden sm:flex"},q1={class:"flex h-full"},W1={key:0},G1={key:0,class:"sm:w-[560px] w-full relative h-full"},R1={class:"h-full relative"},U1={class:"flex items-center p-3 space-x-1.5"},Z1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},X1={key:0,class:"p-5"},J1={key:1},K1={class:"p-4 text-gray text-center"},Q1={key:2},Y1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},et={key:0},tt={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},ot={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},lt={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},nt={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},at={class:"text-lg font-medium"},rt={class:"text-sm text-gray-600"},st={key:0},it=["src"],ct={class:"text-sm whitespace-pre-wrap break-words"},pt={key:1},dt=["href"],mt={class:"text-sm flex items-center justify-between mt-1"},ut={class:"text-gray-800"},Ct=["href"],ft=e.defineComponent({__name:"OneMainLayout",props:Ee,emits:["load-news","load-tariff","open-tariff"],setup(p,{emit:d}){const n=d,r=p;let f=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),f="1");const u=e.ref(f==="1");e.ref(!0),e.watch(u,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const c=e.ref(!1),h=()=>{c.value=!c.value,c.value&&n("load-news")},g=e.computed(()=>r.showHeadre);e.watch(()=>r.showHeadre,()=>{g.value=r.showHeadre});const V=e.ref(window.innerWidth),w=()=>{V.value=window.innerWidth},l=e.computed(()=>V.value<=768);e.onMounted(()=>{window.addEventListener("resize",w)}),e.onUnmounted(()=>{window.removeEventListener("resize",w)});const v=t=>{var s;(s=r.handlers)==null||s.onSetLang(t)};return(t,s)=>{var C,E,j,y,x,H,I,P,N,L,_,o,m,S,$,D,z,M,O;const B=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",S1,[e.withDirectives(e.createElementVNode("div",$1,[e.createElementVNode("div",D1,[e.createElementVNode("button",{onClick:s[0]||(s[0]=a=>u.value=!u.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"},[e.createVNode(e.unref(Ne),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",z1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,M1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(B,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var a,b;return[e.createElementVNode("div",O1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",T1,e.toDisplayString((b=(a=t.app)==null?void 0:a.workspace)==null?void 0:b.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",j1,[e.createElementVNode("div",H1,[e.createElementVNode("div",I1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff&&((C=t.improveTariff)!=null&&C.label)&&t.improveTariff.label?(e.openBlock(),e.createElementBlock("div",P1,[e.createElementVNode("button",{type:"button",class:"cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",onClick:s[1]||(s[1]=(...a)=>{var b,T;return((b=t.handlers)==null?void 0:b.onImproveTariff)&&((T=t.handlers)==null?void 0:T.onImproveTariff(...a))}),style:{"font-size":"10px"}},[e.createElementVNode("div",A1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((E=t.improveTariff)==null?void 0:E.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",F1,e.toDisplayString((j=t.improveTariff)==null?void 0:j.label),1)])])):e.createCommentVNode("",!0),t.help?(e.openBlock(),e.createBlock(k.OneHelpMenu,{key:1,help:t.help},null,8,["help"])):e.createCommentVNode("",!0),((y=t.handlers)==null?void 0:y.onBrowse)!=null?(e.openBlock(),e.createBlock(k.OneBrowserMenu,{key:2,workspace:(x=t.app)==null?void 0:x.workspace,apps:((H=t.app)==null?void 0:H.apps)||[],"change-label":((I=t.labels)==null?void 0:I.change)||"Change","apps-title":((P=t.labels)==null?void 0:P.apps)||"Apps","on-app":(N=t.handlers)==null?void 0:N.onApp,"on-change":(L=t.handlers)==null?void 0:L.onChange,onOpen:(_=t.handlers)==null?void 0:_.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":((S=t.labels)==null?void 0:S.version)||"","on-account":($=t.handlers)==null?void 0:$.onAccount,"on-logout":(D=t.handlers)==null?void 0:D.onLogout},null,8,["user","menu","app","account-label","logout-label","version-label","on-account","on-logout"])])])])],512),[[e.vShow,g.value]]),e.createElementVNode("div",q1,[!l.value||!u.value?(e.openBlock(),e.createBlock(ge,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:l.value,modelValue:u.value,"onUpdate:modelValue":s[2]||(s[2]=a=>u.value=a),onShowNews:h,onSelectLanguage:v,onUpdateCollapsed:s[3]||(s[3]=a=>u.value=!u.value)},null,8,["app","items","with-news","news","isMobile","modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([[u.value?"sm:ml-[60px]":"sm:ml-[260px] hidden sm:block"],"body scroll-body w-full overflow-y-auto"])},[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all",{"pt-[56px]":g.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",W1,[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",onClick:s[4]||(s[4]=e.withModifiers(a=>c.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",[c.value?"sm:w-[560px] w-full":"w-0"]])},[c.value?(e.openBlock(),e.createElementBlock("div",G1,[e.createElementVNode("div",R1,[e.createElementVNode("div",U1,[e.createVNode(be,{class:"w-10 h-10"}),s[6]||(s[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(F._sfc_main,{variant:"touch",icon:e.unref(Be.render),onClick:s[5]||(s[5]=a=>c.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",Z1,[t.news.isLoading&&((z=t.news.items)==null?void 0:z.length)===0?(e.openBlock(),e.createElementBlock("div",X1,[e.createVNode(F.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((M=t.news.items)==null?void 0:M.length)===0?(e.openBlock(),e.createElementBlock("div",J1,[e.createElementVNode("div",K1,e.toDisplayString(t.news.emptyText),1)])):((O=t.news.items)==null?void 0:O.length)>0?(e.openBlock(),e.createElementBlock("div",Q1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"p-3"},[e.createElementVNode("div",Y1,[e.createElementVNode("div",null,[a.type?(e.openBlock(),e.createElementBlock("div",et,[a.type===10?(e.openBlock(),e.createElementBlock("span",tt,"update")):a.type===11?(e.openBlock(),e.createElementBlock("span",ot,"warning")):a.type===12?(e.openBlock(),e.createElementBlock("span",lt,"notice")):a.type===13?(e.openBlock(),e.createElementBlock("span",nt,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",at,e.toDisplayString(a.title),1),e.createElementVNode("div",rt,e.toDisplayString(a.summary),1)]),a.image_url?(e.openBlock(),e.createElementBlock("div",st,[e.createElementVNode("img",{src:a.image_url,alt:"",class:"w-full rounded-md"},null,8,it)])):e.createCommentVNode("",!0),e.createElementVNode("div",ct,e.toDisplayString(a.body),1),a.video_url?(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("a",{href:a.video_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"},e.toDisplayString(t.news.openVideoText),9,dt)])):e.createCommentVNode("",!0),e.createElementVNode("div",mt,[e.createElementVNode("span",ut,e.toDisplayString(a.published),1),a.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:a.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,Ct)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const ht=q._export_sfc(ft,[["__scopeId","data-v-7935faab"]]);exports.OneMainLayout=ht;exports.OneSidebar=ge;
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"),Be=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const xe={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}},Ve={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}},Ee={sidebarItems:xe.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 Ne(p,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 Le(p,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"})])}const _e=["href"],Se={class:"flex flex-nowrap items-center w-full h-[24px]"},$e={key:0,class:"w-[44px] flex-shrink-0"},De={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},ze={class:"py-[8px] pl-0 pr-0"},Me={class:"flex flex-nowrap items-center w-full h-[24px]"},Oe={key:0,class:"w-[44px] flex-shrink-0"},Te={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},je={class:"py-[8px] pl-0 pr-0"},He={key:1,class:"p-3"},Pe={class:"flex flex-nowrap items-center w-full h-[24px]"},Ie={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"},Ge=["href"],We={class:"flex items-center justify-between min-w-full h-[24px]"},Re={key:0,class:"text-xs"},Ue={key:0,class:"text-xs"},Ze={key:1,class:"pr-3"},Xe=e.defineComponent({__name:"OneSidebarLink",props:Ve,emits:["update-collapsed"],setup(p,{emit:d}){const n=p,r=d,h=e.computed(()=>n.href??!1),C=e.computed(()=>c(n)),c=l=>l.route?l.route:l.routeName?{name:l.routeName}:null,v=e.ref(n.open),x=(l,f=n)=>{var t;return(f==null?void 0:f.menuGroup)&&(l==null?void 0:l.meta)&&((t=l.meta)==null?void 0:t.menuGroup)&&l.meta.menuGroup&&l.meta.menuGroup===f.menuGroup},N=()=>{v.value=!v.value},y=(l,f)=>{n.subItems&&n.subItems.length>0&&!f&&(l.preventDefault(),N()),(f||!n.subItems||n.subItems.length===0)&&n.isMobile&&r("update-collapsed")};return(l,f)=>{var s,B;const t=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),h.value?(e.openBlock(),e.createElementBlock("a",{key:1,href:h.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:y},[e.createElementVNode("div",Se,[l.icon?(e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",De,[e.createElementVNode("span",ze,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(v.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,_e)):e.createCommentVNode("",!0),!h.value&&C.value?(e.openBlock(),e.createBlock(t,{key:2,to:C.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-primary-10 !text-primary-base":x(l.$route)}]),"active-class":(s=l.$route)!=null&&s.meta&&((B=l.$route.meta)!=null&&B.menuGroup)&&l.$route.meta.menuGroup?"":"bg-primary-10 !text-primary-base",onClick:e.withModifiers(y,["prevent"])},{default:e.withCtx(()=>[e.createElementVNode("div",Me,[l.icon?(e.openBlock(),e.createElementBlock("div",Oe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Te,[e.createElementVNode("span",je,e.toDisplayString(l.label),1)]),n.subItems&&n.subItems.length>0&&!l.slim?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.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),!h.value&&!C.value?(e.openBlock(),e.createElementBlock("span",{key:3,onClick:e.withModifiers(y,["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",Pe,[l.icon?(e.openBlock(),e.createElementBlock("div",Ie,[(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(v.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),v.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=>{var V,E;return 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",We,[l.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Re,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,Ge)):c(u)?(e.openBlock(),e.createBlock(t,{key:1,to:c(u),onClick:f[0]||(f[0]=e.withModifiers(w=>y(w,!0),["prevent"])),class:e.normalizeClass(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",{"w-[44px] h-[44px]":l.slim,"h-[44px] w-full":!l.slim,"bg-primary-10 !text-primary-base":x(l.$route,u)}]),"active-class":(V=l.$route)!=null&&V.meta&&((E=l.$route.meta)!=null&&E.menuGroup)&&l.$route.meta.menuGroup?"":"bg-primary-10 !text-primary-base"},{default:e.withCtx(()=>[l.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Ue,e.toDisplayString(u.label),1)),u.icon?(e.openBlock(),e.createElementBlock("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.icon),{class:"w-[20px] h-[20px] mx-auto"}))])):e.createCommentVNode("",!0)]),_:2},1032,["to","active-class","class"])):e.createCommentVNode("",!0)],2)}),128))],2)],2)):e.createCommentVNode("",!0)],64)}}}),Je={},Ke={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Qe(p,d){return e.openBlock(),e.createElementBlock("svg",Ke,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 be=q._export_sfc(Je,[["render",Qe]]),ye=p=>{if(Array.isArray(p))return p.map(e.unref);const d=e.unref(p);return Array.isArray(d)?d:[d]},Ye=(p,d)=>{let n;const r=h=>{h.forEach(C=>{const c=e.unref(C);if(c){if(!(c instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:c,array:p}),new Error("Vuestic: Unable to observe non-HTMLElement");c&&(n==null||n.observe(c))}})};return e.watch(p,h=>{n==null||n.disconnect(),r(ye(h))}),e.onMounted(()=>{n=new ResizeObserver(d),r(ye(p))}),e.onBeforeUnmount(()=>n==null?void 0:n.disconnect()),n},e1=p=>{const d=e.ref(null);return Ye([p],()=>{var n;d.value=((n=p.value)==null?void 0:n.clientWidth)??null}),e.watchEffect(()=>{var n;d.value=((n=p.value)==null?void 0:n.clientWidth)??null}),d},t1=["href"],o1={class:"rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2"},l1={class:""},n1={class:"",style:{"font-size":"10px"}},a1={key:1,class:"flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[220px] space-x-3 px-2"},r1={class:"flex items-center text-[#525B66] space-x-3"},s1={style:{"font-size":"10px"}},i1={class:"relative -right-2"},c1=["href"],p1={class:"flex flex-nowrap items-center w-max h-[24px]"},d1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},m1={class:"py-[8px] pl-0 pr-[8px]"},u1=["href"],C1={class:"flex flex-nowrap items-center w-max h-[24px]"},f1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},h1={class:"py-[8px] pl-0 pr-[8px]"},v1={key:4,class:"custom-select ml-1 w-full relative pt-2 pb-2"},k1={class:"pl-1"},w1={key:0,class:"dropdown w-[220px] z-50 text-[#525B66]"},y1=["onClick"],x1={key:0,class:"mt-0.5 h-0 border-t border-secondary-stroke mb-1"},b1={key:0,class:"tooltip-text"},g1={key:0},B1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},V1={key:2,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},E1=["href"],N1={key:0,class:"tooltip-text"},L1={key:0},_1=e.defineComponent({__name:"OneSidebar",props:xe,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(p,{emit:d}){var L,_,S;const n=d,r=p,h=e.computed(()=>{var o;return((o=r.news)==null?void 0:o.unseenCount)||0}),C=()=>{n("show-news")},c=e.ref(!1),v=e.ref(r.hoverable);e.watch(r,()=>{r.modelValue?v.value=!0:v.value=!1}),r.modelValue&&(v.value=!0);const x=e.shallowRef(),N=e.computed(()=>{const o=[];if(r.slim||o.push("fixed"),!f.value)if(!r.isMobile)o.push("w-[260px]");else return o.push("w-full");return o.join(" ")}),y=e.computed(()=>""),l=o=>{c.value=v.value&&o},f=e.computed(()=>v.value&&!c.value),t=e.computed(()=>!!f.value),s=e.ref(),B=e1(s),u=e.computed(()=>r.modelValue===!0||B.value===null?!0:B.value>0),V=e.ref(),E=()=>f.value?r.minimizedWidth:r.width;e.watchEffect(()=>{const o=E();setTimeout(()=>{V.value=o})});const w=e.ref(!1),b=e.ref((L=r.app)!=null&&L.availableLang&&((_=r.app)==null?void 0:_.availableLang.length)>0?(S=r.app)==null?void 0:S.availableLang.find(o=>{var m;return o.id==((m=r.app)==null?void 0:m.lang)}):null),H=()=>{w.value=!w.value},P=o=>{b.value=o,w.value=!1,n("select-language",o)},I=()=>{var o,m;(m=(o=r.app)==null?void 0:o.selectedPlan)!=null&&m.url&&(window.location.href=r.app.selectedPlan.url)};return(o,m)=>{var $,D,z,M,O,T,a,g,j,G,W,R,U,Z,X,J,K,Q,Y,ee,te,oe,le,ne,ae,re,se,ie,ce,pe,de,me,ue,Ce,fe,he,ve;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:x,class:e.normalizeClass(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40",N.value]),style:e.normalizeStyle(y.value),onMouseenter:m[1]||(m[1]=i=>l(!0)),onMouseleave:m[2]||(m[2]=i=>l(!1))},[e.withDirectives(e.createElementVNode("div",{class:"overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 px-1 ml-1 mr-1 mt-2 flex-grow",ref_key:"menu",ref:s},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,i=>(e.openBlock(),e.createBlock(Xe,{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=>n("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","menuGroup","href","slim","route-name","exact"]))),128))],512),[[e.vShow,u.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",o1,[e.createElementVNode("div",l1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((z=o.app)==null?void 0:z.offerPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("p",n1,[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,t1)):e.createCommentVNode("",!0),(a=o.app)!=null&&a.selectedPlan&&((g=o.app)!=null&&g.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",a1,[e.createElementVNode("div",r1,[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",s1,[e.createElementVNode("p",null,e.toDisplayString(((G=o.app)==null?void 0:G.selectedPlan.name)||""),1),e.createElementVNode("p",null,e.toDisplayString(((W=o.app)==null?void 0:W.selectedPlan.title)||""),1)])]),e.createElementVNode("div",i1,[e.createVNode(F._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0] !rounded-lg",variant:"touch",icon:e.unref(k.render$2),onClick:I},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",p1,[e.createElementVNode("div",d1,[e.createElementVNode("span",m1,e.toDisplayString(((Z=o.app)==null?void 0:Z.terms.label)||"Terms"),1)])])],8,c1)):e.createCommentVNode("",!0),(X=o.app)!=null&&X.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(J=o.app)==null?void 0:J.offer.url,target:"_blank",class:"ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",C1,[e.createElementVNode("div",f1,[e.createElementVNode("span",h1,e.toDisplayString(((K=o.app)==null?void 0:K.offer.label)||"Offert"),1)])])],8,u1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",v1,[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",k1,e.toDisplayString(w.value?"▲":"▼"),1)]),w.value?(e.openBlock(),e.createElementBlock("div",w1,[(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:vt=>{var we;return i.id!==((we=b.value)==null?void 0:we.id)&&P(i)}},e.toDisplayString(i.name),11,y1)}),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",x1)):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:C},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",b1,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(be),{class:"w-[24px] h-[24px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",g1,e.toDisplayString(o.news.menuLabel||"News"),1)),h.value>0?(e.openBlock(),e.createElementBlock("span",B1)):e.createCommentVNode("",!0),h.value>0?(e.openBlock(),e.createElementBlock("span",V1)):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),(ie=o.app)!=null&&ie.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(pe=(ce=o.app)==null?void 0:ce.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]"]])},[(me=(de=o.app)==null?void 0:de.support)!=null&&me.label?(e.openBlock(),e.createElementBlock("div",N1,e.toDisplayString(((Ce=(ue=o.app)==null?void 0:ue.support)==null?void 0:Ce.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(Le)),{class:"w-[20px] h-[20px] mx-auto"}))]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",L1,e.toDisplayString(((he=(fe=o.app)==null?void 0:fe.support)==null?void 0:he.label)||"Support"),1))],2)],2)],10,E1)):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,u.value]])],38)}}});const ge=q._export_sfc(_1,[["__scopeId","data-v-6ede2cc5"]]),S1={class:"h-screen h-dvh relative"},$1={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)"}},D1={class:"p-2 flex-shrink-0"},z1={class:"w-10 h-10 flex items-center flex-shrink-0"},M1=["src"],O1={class:"whitespace-nowrap font-semibold text-xl"},T1={class:"text-xs whitespace-nowrap"},j1={class:"w-full"},H1={class:"w-full flex justify-end pr-4"},P1={class:"flex items-center space-x-1"},I1={key:0,class:"module-border-wrap flex justify-center items-center"},A1={class:"h-4 w-4"},F1={class:"ml-2 hidden sm:flex"},q1={class:"flex h-full"},G1={key:0},W1={key:0,class:"sm:w-[560px] w-full relative h-full"},R1={class:"h-full relative"},U1={class:"flex items-center p-3 space-x-1.5"},Z1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},X1={key:0,class:"p-5"},J1={key:1},K1={class:"p-4 text-gray text-center"},Q1={key:2},Y1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},et={key:0},tt={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},ot={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},lt={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},nt={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},at={class:"text-lg font-medium"},rt={class:"text-sm text-gray-600"},st={key:0},it=["src"],ct={class:"text-sm whitespace-pre-wrap break-words"},pt={key:1},dt=["href"],mt={class:"text-sm flex items-center justify-between mt-1"},ut={class:"text-gray-800"},Ct=["href"],ft=e.defineComponent({__name:"OneMainLayout",props:Ee,emits:["load-news","load-tariff","open-tariff"],setup(p,{emit:d}){const n=d,r=p;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 C=e.ref(h==="1");e.ref(!0),e.watch(C,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const c=e.ref(!1),v=()=>{c.value=!c.value,c.value&&n("load-news")},x=e.computed(()=>r.showHeadre);e.watch(()=>r.showHeadre,()=>{x.value=r.showHeadre});const N=e.ref(window.innerWidth),y=()=>{N.value=window.innerWidth},l=e.computed(()=>N.value<=768);e.onMounted(()=>{window.addEventListener("resize",y)}),e.onUnmounted(()=>{window.removeEventListener("resize",y)});const f=t=>{var s;(s=r.handlers)==null||s.onSetLang(t)};return(t,s)=>{var u,V,E,w,b,H,P,I,L,_,S,o,m,$,D,z,M,O,T;const B=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",S1,[e.withDirectives(e.createElementVNode("div",$1,[e.createElementVNode("div",D1,[e.createElementVNode("button",{onClick:s[0]||(s[0]=a=>C.value=!C.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(Ne),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",z1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,M1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(B,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var a,g;return[e.createElementVNode("div",O1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",T1,e.toDisplayString((g=(a=t.app)==null?void 0:a.workspace)==null?void 0:g.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",j1,[e.createElementVNode("div",H1,[e.createElementVNode("div",P1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff&&((u=t.improveTariff)!=null&&u.label)&&t.improveTariff.label?(e.openBlock(),e.createElementBlock("div",I1,[e.createElementVNode("button",{type:"button",class:"cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",onClick:s[1]||(s[1]=(...a)=>{var g,j;return((g=t.handlers)==null?void 0:g.onImproveTariff)&&((j=t.handlers)==null?void 0:j.onImproveTariff(...a))}),style:{"font-size":"10px"}},[e.createElementVNode("div",A1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((V=t.improveTariff)==null?void 0:V.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",F1,e.toDisplayString((E=t.improveTariff)==null?void 0:E.label),1)])])):e.createCommentVNode("",!0),t.help?(e.openBlock(),e.createBlock(k.OneHelpMenu,{key:1,help:t.help},null,8,["help"])):e.createCommentVNode("",!0),((w=t.handlers)==null?void 0:w.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":((P=t.labels)==null?void 0:P.change)||"Change","apps-title":((I=t.labels)==null?void 0:I.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,x.value]]),e.createElementVNode("div",q1,[!l.value||!C.value?(e.openBlock(),e.createBlock(ge,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:l.value,modelValue:C.value,"onUpdate:modelValue":s[2]||(s[2]=a=>C.value=a),onShowNews:v,onSelectLanguage:f,onUpdateCollapsed:s[3]||(s[3]=a=>C.value=!C.value)},null,8,["app","items","with-news","news","isMobile","modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([[C.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]":x.value}])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",G1,[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",onClick:s[4]||(s[4]=e.withModifiers(a=>c.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",[c.value?"sm:w-[560px] w-full":"w-0"]])},[c.value?(e.openBlock(),e.createElementBlock("div",W1,[e.createElementVNode("div",R1,[e.createElementVNode("div",U1,[e.createVNode(be,{class:"w-10 h-10"}),s[6]||(s[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(F._sfc_main,{variant:"touch",icon:e.unref(Be.render),onClick:s[5]||(s[5]=a=>c.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",Z1,[t.news.isLoading&&((M=t.news.items)==null?void 0:M.length)===0?(e.openBlock(),e.createElementBlock("div",X1,[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",J1,[e.createElementVNode("div",K1,e.toDisplayString(t.news.emptyText),1)])):((T=t.news.items)==null?void 0:T.length)>0?(e.openBlock(),e.createElementBlock("div",Q1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"p-3"},[e.createElementVNode("div",Y1,[e.createElementVNode("div",null,[a.type?(e.openBlock(),e.createElementBlock("div",et,[a.type===10?(e.openBlock(),e.createElementBlock("span",tt,"update")):a.type===11?(e.openBlock(),e.createElementBlock("span",ot,"warning")):a.type===12?(e.openBlock(),e.createElementBlock("span",lt,"notice")):a.type===13?(e.openBlock(),e.createElementBlock("span",nt,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",at,e.toDisplayString(a.title),1),e.createElementVNode("div",rt,e.toDisplayString(a.summary),1)]),a.image_url?(e.openBlock(),e.createElementBlock("div",st,[e.createElementVNode("img",{src:a.image_url,alt:"",class:"w-full rounded-md"},null,8,it)])):e.createCommentVNode("",!0),e.createElementVNode("div",ct,e.toDisplayString(a.body),1),a.video_url?(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("a",{href:a.video_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"},e.toDisplayString(t.news.openVideoText),9,dt)])):e.createCommentVNode("",!0),e.createElementVNode("div",mt,[e.createElementVNode("span",ut,e.toDisplayString(a.published),1),a.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:a.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,Ct)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const ht=q._export_sfc(ft,[["__scopeId","data-v-7935faab"]]);exports.OneMainLayout=ht;exports.OneSidebar=ge;
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as e, defineComponent as i1, computed as S, ref as $, resolveComponent as W1, Fragment as Z, normalizeClass as d, toDisplayString as i, createCommentVNode as a, createBlock as C, resolveDynamicComponent as _, unref as k, withModifiers as Y, withCtx as n1, renderList as e1, watch as t1, onMounted as G1, onBeforeUnmount as D1, watchEffect as q1, shallowRef as J1, normalizeStyle as K1, withDirectives as a1, vShow as r1, createTextVNode as X, createVNode as z, onUnmounted as Q1, renderSlot as F1 } from "vue";
1
+ import { openBlock as t, createElementBlock as o, createElementVNode as e, defineComponent as i1, computed as B, ref as $, resolveComponent as G1, Fragment as D, normalizeClass as d, toDisplayString as i, createCommentVNode as a, createBlock as C, resolveDynamicComponent as _, unref as k, withModifiers as Y, withCtx as n1, renderList as e1, watch as t1, onMounted as W1, onBeforeUnmount as D1, watchEffect as q1, shallowRef as J1, normalizeStyle as K1, withDirectives as a1, vShow as r1, createTextVNode as X, createVNode as P, onUnmounted as Q1, renderSlot as F1 } from "vue";
2
2
  import { r as l1, a as o1, b as X1, c as Y1, O as ee, d as te, _ as se } from "../OneHelpMenu-135e0656.js";
3
3
  import { _ as p1 } from "../_plugin-vue_export-helper-dad06003.js";
4
4
  import { _ as R1, S as le } from "../index-f8afb6b6.js";
@@ -199,28 +199,28 @@ const pe = ["href"], ue = { class: "flex flex-nowrap items-center w-full h-[24px
199
199
  props: ne,
200
200
  emits: ["update-collapsed"],
201
201
  setup(m, { emit: v }) {
202
- const r = m, u = v, y = S(() => r.href ?? !1), x = S(() => f(r)), f = (n) => n.route ? n.route : n.routeName ? { name: n.routeName } : null, g = $(r.open), T = S((n) => {
203
- var L;
204
- return (r == null ? void 0 : r.menuGroup) && (n == null ? void 0 : n.meta) && ((L = n.meta) == null ? void 0 : L.menuGroup) && n.meta.menuGroup && n.meta.menuGroup === r.menuGroup;
205
- }), H = () => {
206
- g.value = !g.value;
207
- }, B = (n, L) => {
208
- r.subItems && r.subItems.length > 0 && !L && (n.preventDefault(), H()), (L || !r.subItems || r.subItems.length === 0) && r.isMobile && u("update-collapsed");
202
+ const r = m, u = v, g = B(() => r.href ?? !1), b = B(() => f(r)), f = (n) => n.route ? n.route : n.routeName ? { name: n.routeName } : null, L = $(r.open), V = (n, y = r) => {
203
+ var s;
204
+ return (y == null ? void 0 : y.menuGroup) && (n == null ? void 0 : n.meta) && ((s = n.meta) == null ? void 0 : s.menuGroup) && n.meta.menuGroup && n.meta.menuGroup === y.menuGroup;
205
+ }, I = () => {
206
+ L.value = !L.value;
207
+ }, M = (n, y) => {
208
+ r.subItems && r.subItems.length > 0 && !y && (n.preventDefault(), I()), (y || !r.subItems || r.subItems.length === 0) && r.isMobile && u("update-collapsed");
209
209
  };
210
- return (n, L) => {
210
+ return (n, y) => {
211
211
  var c, j;
212
- const s = W1("RouterLink");
213
- return t(), o(Z, null, [
212
+ const s = G1("RouterLink");
213
+ return t(), o(D, null, [
214
214
  n.labelTop ? (t(), o("p", {
215
215
  key: 0,
216
216
  style: { "font-size": "10px" },
217
217
  class: d([{ "text-center h-[15px]": n.slim }, "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"])
218
218
  }, i(n.slim ? "" : n.labelTop), 3)) : a("", !0),
219
- y.value ? (t(), o("a", {
219
+ g.value ? (t(), o("a", {
220
220
  key: 1,
221
- href: y.value,
221
+ href: g.value,
222
222
  class: d(["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"]]),
223
- onClick: B
223
+ onClick: M
224
224
  }, [
225
225
  e("div", ue, [
226
226
  n.icon ? (t(), o("div", de, [
@@ -233,21 +233,21 @@ const pe = ["href"], ue = { class: "flex flex-nowrap items-center w-full h-[24px
233
233
  key: 1,
234
234
  class: d(["ml-auto", [(n.slim, "")]])
235
235
  }, [
236
- (t(), C(_(g.value ? k(l1) : k(o1)), { class: "w-[16px] h-[16px]" }))
236
+ (t(), C(_(L.value ? k(l1) : k(o1)), { class: "w-[16px] h-[16px]" }))
237
237
  ], 2)) : a("", !0)
238
238
  ])
239
239
  ], 10, pe)) : a("", !0),
240
- !y.value && x.value ? (t(), C(s, {
240
+ !g.value && b.value ? (t(), C(s, {
241
241
  key: 2,
242
- to: x.value,
242
+ to: b.value,
243
243
  exact: n.exact,
244
244
  class: d(["relative flex items-center cursor-pointer rounded-xl text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", {
245
245
  "w-[44px] h-[44px]": n.slim,
246
246
  "h-[44px] w-full": !n.slim,
247
- "bg-blue-300 !text-primary-base": T.value(n.$route)
247
+ "bg-primary-10 !text-primary-base": V(n.$route)
248
248
  }]),
249
249
  "active-class": (c = n.$route) != null && c.meta && ((j = n.$route.meta) != null && j.menuGroup) && n.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
250
- onClick: Y(B, ["prevent"])
250
+ onClick: Y(M, ["prevent"])
251
251
  }, {
252
252
  default: n1(() => [
253
253
  e("div", fe, [
@@ -258,15 +258,15 @@ const pe = ["href"], ue = { class: "flex flex-nowrap items-center w-full h-[24px
258
258
  e("span", Ce, i(n.label), 1)
259
259
  ]),
260
260
  r.subItems && r.subItems.length > 0 && !n.slim ? (t(), o("div", we, [
261
- (t(), C(_(g.value ? k(l1) : k(o1)), { class: "w-[16px] h-[16px]" }))
261
+ (t(), C(_(L.value ? k(l1) : k(o1)), { class: "w-[16px] h-[16px]" }))
262
262
  ])) : a("", !0)
263
263
  ])
264
264
  ]),
265
265
  _: 1
266
266
  }, 8, ["to", "exact", "active-class", "class"])) : a("", !0),
267
- !y.value && !x.value ? (t(), o("span", {
267
+ !g.value && !b.value ? (t(), o("span", {
268
268
  key: 3,
269
- onClick: Y(B, ["prevent"]),
269
+ onClick: Y(M, ["prevent"]),
270
270
  class: d([[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]"])
271
271
  }, [
272
272
  e("div", xe, [
@@ -277,53 +277,58 @@ const pe = ["href"], ue = { class: "flex flex-nowrap items-center w-full h-[24px
277
277
  e("span", ge, i(n.label), 1)
278
278
  ]),
279
279
  r.subItems && r.subItems.length > 0 && !n.slim ? (t(), o("div", Le, [
280
- (t(), C(_(g.value ? k(l1) : k(o1)), { class: "w-[16px] h-[16px]" }))
280
+ (t(), C(_(L.value ? k(l1) : k(o1)), { class: "w-[16px] h-[16px]" }))
281
281
  ])) : a("", !0)
282
282
  ])
283
283
  ], 2)) : a("", !0),
284
- g.value && r.subItems ? (t(), o("div", {
284
+ L.value && r.subItems ? (t(), o("div", {
285
285
  key: 4,
286
286
  class: d([n.slim ? "" : "pl-[36px] pr-3"])
287
287
  }, [
288
288
  e("div", {
289
289
  class: d([(n.slim, "")])
290
290
  }, [
291
- (t(!0), o(Z, null, e1(r.subItems, (b) => (t(), o("div", {
292
- key: b.label,
293
- class: d([(n.slim, "")])
294
- }, [
295
- b.href ? (t(), o("a", {
296
- key: 0,
297
- href: b.href,
298
- 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]"
291
+ (t(!0), o(D, null, e1(r.subItems, (x) => {
292
+ var z, H;
293
+ return t(), o("div", {
294
+ key: x.label,
295
+ class: d([(n.slim, "")])
299
296
  }, [
300
- e("div", _e, [
301
- n.slim ? a("", !0) : (t(), o("span", $e, i(b.label), 1)),
302
- b.icon ? (t(), o("div", {
303
- key: 1,
304
- class: d([n.slim ? "pl-2 h-[15px]" : "pr-1"])
305
- }, [
306
- (t(), C(_(b.icon), { class: "w-[15px] h-[15px] mx-auto" }))
307
- ], 2)) : a("", !0)
308
- ])
309
- ], 8, ke)) : f(b) ? (t(), C(s, {
310
- key: 1,
311
- to: f(b),
312
- onClick: L[0] || (L[0] = Y((I) => B(I, !0), ["prevent"])),
313
- 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]",
314
- exact: n.exact ? !0 : null,
315
- "active-class": "bg-primary-10 !text-primary-base",
316
- "exact-active-class": "bg-primary-20 !text-primary-base"
317
- }, {
318
- default: n1(() => [
319
- n.slim ? a("", !0) : (t(), o("span", Se, i(b.label), 1)),
320
- b.icon ? (t(), o("div", Be, [
321
- (t(), C(_(b.icon), { class: "w-[20px] h-[20px] mx-auto" }))
322
- ])) : a("", !0)
323
- ]),
324
- _: 2
325
- }, 1032, ["to", "exact"])) : a("", !0)
326
- ], 2))), 128))
297
+ x.href ? (t(), o("a", {
298
+ key: 0,
299
+ href: x.href,
300
+ 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]"
301
+ }, [
302
+ e("div", _e, [
303
+ n.slim ? a("", !0) : (t(), o("span", $e, i(x.label), 1)),
304
+ x.icon ? (t(), o("div", {
305
+ key: 1,
306
+ class: d([n.slim ? "pl-2 h-[15px]" : "pr-1"])
307
+ }, [
308
+ (t(), C(_(x.icon), { class: "w-[15px] h-[15px] mx-auto" }))
309
+ ], 2)) : a("", !0)
310
+ ])
311
+ ], 8, ke)) : f(x) ? (t(), C(s, {
312
+ key: 1,
313
+ to: f(x),
314
+ onClick: y[0] || (y[0] = Y((S) => M(S, !0), ["prevent"])),
315
+ class: d(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", {
316
+ "w-[44px] h-[44px]": n.slim,
317
+ "h-[44px] w-full": !n.slim,
318
+ "bg-primary-10 !text-primary-base": V(n.$route, x)
319
+ }]),
320
+ "active-class": (z = n.$route) != null && z.meta && ((H = n.$route.meta) != null && H.menuGroup) && n.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
321
+ }, {
322
+ default: n1(() => [
323
+ n.slim ? a("", !0) : (t(), o("span", Se, i(x.label), 1)),
324
+ x.icon ? (t(), o("div", Be, [
325
+ (t(), C(_(x.icon), { class: "w-[20px] h-[20px] mx-auto" }))
326
+ ])) : a("", !0)
327
+ ]),
328
+ _: 2
329
+ }, 1032, ["to", "active-class", "class"])) : a("", !0)
330
+ ], 2);
331
+ }), 128))
327
332
  ], 2)
328
333
  ], 2)) : a("", !0)
329
334
  ], 64);
@@ -361,9 +366,9 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
361
366
  return Array.isArray(v) ? v : [v];
362
367
  }, je = (m, v) => {
363
368
  let r;
364
- const u = (y) => {
365
- y.forEach((x) => {
366
- const f = k(x);
369
+ const u = (g) => {
370
+ g.forEach((b) => {
371
+ const f = k(b);
367
372
  if (f) {
368
373
  if (!(f instanceof Element))
369
374
  throw console.error("Vuestic: Trying to observe non-HTMLElement", {
@@ -374,9 +379,9 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
374
379
  }
375
380
  });
376
381
  };
377
- return t1(m, (y) => {
378
- r == null || r.disconnect(), u(N1(y));
379
- }), G1(() => {
382
+ return t1(m, (g) => {
383
+ r == null || r.disconnect(), u(N1(g));
384
+ }), W1(() => {
380
385
  r = new ResizeObserver(v), u(N1(m));
381
386
  }), D1(() => r == null ? void 0 : r.disconnect()), r;
382
387
  }, ze = (m) => {
@@ -388,13 +393,13 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
388
393
  var r;
389
394
  v.value = ((r = m.value) == null ? void 0 : r.clientWidth) ?? null;
390
395
  }), v;
391
- }, He = ["href"], Ie = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2" }, Pe = { class: "" }, Ae = {
396
+ }, He = ["href"], Pe = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-2" }, Ie = { class: "" }, Ae = {
392
397
  class: "",
393
398
  style: { "font-size": "10px" }
394
399
  }, Ee = {
395
400
  key: 1,
396
401
  class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[220px] space-x-3 px-2"
397
- }, Fe = { class: "flex items-center text-[#525B66] space-x-3" }, Ne = { style: { "font-size": "10px" } }, We = { class: "relative -right-2" }, Ge = ["href"], qe = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Re = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Ue = { class: "py-[8px] pl-0 pr-[8px]" }, Ze = ["href"], De = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Je = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Ke = { class: "py-[8px] pl-0 pr-[8px]" }, Qe = {
402
+ }, Fe = { class: "flex items-center text-[#525B66] space-x-3" }, Ne = { style: { "font-size": "10px" } }, Ge = { class: "relative -right-2" }, We = ["href"], qe = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Re = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Ue = { class: "py-[8px] pl-0 pr-[8px]" }, Ze = ["href"], De = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Je = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Ke = { class: "py-[8px] pl-0 pr-[8px]" }, Qe = {
398
403
  key: 4,
399
404
  class: "custom-select ml-1 w-full relative pt-2 pb-2"
400
405
  }, Xe = { class: "pl-1" }, Ye = {
@@ -420,51 +425,51 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
420
425
  props: U1,
421
426
  emits: ["show-news", "show-tariff", "select-language", "update-collapsed", "update:modelValue"],
422
427
  setup(m, { emit: v }) {
423
- var P, A, E;
424
- const r = v, u = m, y = S(() => {
428
+ var A, E, F;
429
+ const r = v, u = m, g = B(() => {
425
430
  var l;
426
431
  return ((l = u.news) == null ? void 0 : l.unseenCount) || 0;
427
- }), x = () => {
432
+ }), b = () => {
428
433
  r("show-news");
429
- }, f = $(!1), g = $(u.hoverable);
434
+ }, f = $(!1), L = $(u.hoverable);
430
435
  t1(u, () => {
431
- u.modelValue ? g.value = !0 : g.value = !1;
432
- }), u.modelValue && (g.value = !0);
433
- const T = J1(), H = S(() => {
436
+ u.modelValue ? L.value = !0 : L.value = !1;
437
+ }), u.modelValue && (L.value = !0);
438
+ const V = J1(), I = B(() => {
434
439
  const l = [];
435
- if (u.slim || l.push("fixed"), !L.value)
440
+ if (u.slim || l.push("fixed"), !y.value)
436
441
  if (!u.isMobile)
437
442
  l.push("w-[260px]");
438
443
  else
439
444
  return l.push("w-full");
440
445
  return l.join(" ");
441
- }), B = S(() => ""), n = (l) => {
442
- f.value = g.value && l;
443
- }, L = S(() => g.value && !f.value), s = S(() => !!L.value), c = $(), j = ze(c), b = S(() => u.modelValue === !0 || j.value === null ? !0 : j.value > 0), I = $(), D = () => L.value ? u.minimizedWidth : u.width;
446
+ }), M = B(() => ""), n = (l) => {
447
+ f.value = L.value && l;
448
+ }, y = B(() => L.value && !f.value), s = B(() => !!y.value), c = $(), j = ze(c), x = B(() => u.modelValue === !0 || j.value === null ? !0 : j.value > 0), z = $(), H = () => y.value ? u.minimizedWidth : u.width;
444
449
  q1(() => {
445
- const l = D();
450
+ const l = H();
446
451
  setTimeout(() => {
447
- I.value = l;
452
+ z.value = l;
448
453
  });
449
454
  });
450
- const M = $(!1), V = $((P = u.app) != null && P.availableLang && ((A = u.app) == null ? void 0 : A.availableLang.length) > 0 ? (E = u.app) == null ? void 0 : E.availableLang.find((l) => {
455
+ const S = $(!1), O = $((A = u.app) != null && A.availableLang && ((E = u.app) == null ? void 0 : E.availableLang.length) > 0 ? (F = u.app) == null ? void 0 : F.availableLang.find((l) => {
451
456
  var w;
452
457
  return l.id == ((w = u.app) == null ? void 0 : w.lang);
453
458
  }) : null), J = () => {
454
- M.value = !M.value;
459
+ S.value = !S.value;
455
460
  }, K = (l) => {
456
- V.value = l, M.value = !1, r("select-language", l);
461
+ O.value = l, S.value = !1, r("select-language", l);
457
462
  }, Q = () => {
458
463
  var l, w;
459
464
  (w = (l = u.app) == null ? void 0 : l.selectedPlan) != null && w.url && (window.location.href = u.app.selectedPlan.url);
460
465
  };
461
466
  return (l, w) => {
462
- var F, N, W, G, q, R, p, O, U, u1, d1, c1, h1, f1, m1, v1, C1, w1, x1, b1, y1, g1, L1, k1, _1, $1, S1, B1, M1, V1, O1, T1, j1, z1, H1, I1, P1;
467
+ var N, G, W, q, R, U, p, T, Z, u1, d1, c1, h1, f1, m1, v1, C1, w1, x1, b1, y1, g1, L1, k1, _1, $1, S1, B1, M1, V1, O1, T1, j1, z1, H1, P1, I1;
463
468
  return t(), o("aside", {
464
469
  ref_key: "rootElement",
465
- ref: T,
466
- class: d(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40", H.value]),
467
- style: K1(B.value),
470
+ ref: V,
471
+ class: d(["oneb-sidebar pt-[56px] pb-1 cont sm:max-w-[270px] flex flex-col sidebar z-40", I.value]),
472
+ style: K1(M.value),
468
473
  onMouseenter: w[1] || (w[1] = (h) => n(!0)),
469
474
  onMouseleave: w[2] || (w[2] = (h) => n(!1))
470
475
  }, [
@@ -473,7 +478,7 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
473
478
  ref_key: "menu",
474
479
  ref: c
475
480
  }, [
476
- (t(!0), o(Z, null, e1(l.items, (h) => (t(), C(Me, {
481
+ (t(!0), o(D, null, e1(l.items, (h) => (t(), C(Me, {
477
482
  key: h.label,
478
483
  labelTop: h.labelTop,
479
484
  isMobile: l.isMobile,
@@ -490,7 +495,7 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
490
495
  onUpdateCollapsed: w[0] || (w[0] = (s1) => r("update-collapsed"))
491
496
  }, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "route-name", "exact"]))), 128))
492
497
  ], 512), [
493
- [r1, b.value]
498
+ [r1, x.value]
494
499
  ]),
495
500
  a1(e("div", {
496
501
  class: d(["mt-auto shrink rounded-2xl mx-2", [s.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
@@ -498,37 +503,37 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
498
503
  e("div", {
499
504
  class: d([s.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
500
505
  }, [
501
- (F = l.app) != null && F.offerPlan ? (t(), o("a", {
506
+ (N = l.app) != null && N.offerPlan ? (t(), o("a", {
502
507
  key: 0,
503
- href: (N = l.app) == null ? void 0 : N.offerPlan.url,
508
+ href: (G = l.app) == null ? void 0 : G.offerPlan.url,
504
509
  class: "w-full min-w-[220px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
505
510
  target: "_blank",
506
511
  rel: "noopener noreferrer"
507
512
  }, [
508
- e("div", Ie, [
509
- e("div", Pe, [
513
+ e("div", Pe, [
514
+ e("div", Ie, [
510
515
  (t(), C(_((W = l.app) == null ? void 0 : W.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
511
516
  ]),
512
517
  e("p", Ae, [
513
- e("strong", null, i((G = l.app) == null ? void 0 : G.offerPlan.title), 1),
514
- X(" «" + i((q = l.app) == null ? void 0 : q.offerPlan.name) + "» ", 1),
518
+ e("strong", null, i((q = l.app) == null ? void 0 : q.offerPlan.title), 1),
519
+ X(" «" + i((R = l.app) == null ? void 0 : R.offerPlan.name) + "» ", 1),
515
520
  w[3] || (w[3] = e("br", null, null, -1)),
516
- X(i((R = l.app) == null ? void 0 : R.offerPlan.title1), 1)
521
+ X(i((U = l.app) == null ? void 0 : U.offerPlan.title1), 1)
517
522
  ])
518
523
  ])
519
524
  ], 8, He)) : a("", !0),
520
- (p = l.app) != null && p.selectedPlan && ((O = l.app) != null && O.selectedPlan.name) ? (t(), o("div", Ee, [
525
+ (p = l.app) != null && p.selectedPlan && ((T = l.app) != null && T.selectedPlan.name) ? (t(), o("div", Ee, [
521
526
  e("div", Fe, [
522
527
  e("div", null, [
523
- (t(), C(_((U = l.app) == null ? void 0 : U.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
528
+ (t(), C(_((Z = l.app) == null ? void 0 : Z.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
524
529
  ]),
525
530
  e("div", Ne, [
526
531
  e("p", null, i(((u1 = l.app) == null ? void 0 : u1.selectedPlan.name) || ""), 1),
527
532
  e("p", null, i(((d1 = l.app) == null ? void 0 : d1.selectedPlan.title) || ""), 1)
528
533
  ])
529
534
  ]),
530
- e("div", We, [
531
- z(R1, {
535
+ e("div", Ge, [
536
+ P(R1, {
532
537
  class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
533
538
  variant: "touch",
534
539
  icon: k(X1),
@@ -547,7 +552,7 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
547
552
  e("span", Ue, i(((f1 = l.app) == null ? void 0 : f1.terms.label) || "Terms"), 1)
548
553
  ])
549
554
  ])
550
- ], 8, Ge)) : a("", !0),
555
+ ], 8, We)) : a("", !0),
551
556
  (m1 = l.app) != null && m1.offer ? (t(), o("a", {
552
557
  key: 3,
553
558
  href: (v1 = l.app) == null ? void 0 : v1.offer.url,
@@ -565,19 +570,19 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
565
570
  class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
566
571
  onClick: J
567
572
  }, [
568
- z(k(Y1), { class: "w-4" }),
569
- X(" " + i((b1 = V.value) == null ? void 0 : b1.name) + " ", 1),
570
- e("span", Xe, i(M.value ? "▲" : "▼"), 1)
573
+ P(k(Y1), { class: "w-4" }),
574
+ X(" " + i((b1 = O.value) == null ? void 0 : b1.name) + " ", 1),
575
+ e("span", Xe, i(S.value ? "▲" : "▼"), 1)
571
576
  ]),
572
- M.value ? (t(), o("div", Ye, [
573
- (t(!0), o(Z, null, e1((y1 = l.app) == null ? void 0 : y1.availableLang, (h) => {
577
+ S.value ? (t(), o("div", Ye, [
578
+ (t(!0), o(D, null, e1((y1 = l.app) == null ? void 0 : y1.availableLang, (h) => {
574
579
  var s1, A1;
575
580
  return t(), o("div", {
576
581
  key: h.id,
577
- class: d(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": h.id !== ((s1 = V.value) == null ? void 0 : s1.id), "text-gray-300": h.id === ((A1 = V.value) == null ? void 0 : A1.id) }]),
582
+ class: d(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": h.id !== ((s1 = O.value) == null ? void 0 : s1.id), "text-gray-300": h.id === ((A1 = O.value) == null ? void 0 : A1.id) }]),
578
583
  onClick: (Q0) => {
579
584
  var E1;
580
- return h.id !== ((E1 = V.value) == null ? void 0 : E1.id) && K(h);
585
+ return h.id !== ((E1 = O.value) == null ? void 0 : E1.id) && K(h);
581
586
  }
582
587
  }, i(h.name), 11, e0);
583
588
  }), 128))
@@ -592,7 +597,7 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
592
597
  key: 0,
593
598
  href: "#",
594
599
  class: d(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [s.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
595
- onClick: x
600
+ onClick: b
596
601
  }, [
597
602
  l.news.menuLabel ? (t(), o("div", s0, i(l.news.menuLabel || "News"), 1)) : a("", !0),
598
603
  e("div", {
@@ -605,8 +610,8 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
605
610
  (t(), C(_(Z1), { class: "w-[24px] h-[24px] mx-auto" }))
606
611
  ]),
607
612
  s.value ? a("", !0) : (t(), o("div", l0, i(l.news.menuLabel || "News"), 1)),
608
- y.value > 0 ? (t(), o("span", o0)) : a("", !0),
609
- y.value > 0 ? (t(), o("span", n0)) : a("", !0)
613
+ g.value > 0 ? (t(), o("span", o0)) : a("", !0),
614
+ g.value > 0 ? (t(), o("span", n0)) : a("", !0)
610
615
  ], 2)
611
616
  ], 2)
612
617
  ], 2)) : a("", !0),
@@ -625,7 +630,7 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
625
630
  e("div", null, [
626
631
  (t(), C(_(k(ie)), { class: "w-[20px] h-[20px] mx-auto" }))
627
632
  ]),
628
- s.value ? a("", !0) : (t(), o("div", i0, i(((I1 = (H1 = l.app) == null ? void 0 : H1.support) == null ? void 0 : I1.label) || "Support"), 1))
633
+ s.value ? a("", !0) : (t(), o("div", i0, i(((P1 = (H1 = l.app) == null ? void 0 : H1.support) == null ? void 0 : P1.label) || "Support"), 1))
629
634
  ], 2)
630
635
  ], 2)
631
636
  ], 10, a0)) : a("", !0)
@@ -637,10 +642,10 @@ const Z1 = /* @__PURE__ */ p1(Ve, [["render", Te]]), N1 = (m) => {
637
642
  X("Powered by "),
638
643
  e("span", { class: "text-blue-700" }, "OneB")
639
644
  ], -1)),
640
- e("span", null, i((P1 = l.app) == null ? void 0 : P1.version), 1)
645
+ e("span", null, i((I1 = l.app) == null ? void 0 : I1.version), 1)
641
646
  ], 2)
642
647
  ], 2), [
643
- [r1, b.value]
648
+ [r1, x.value]
644
649
  ])
645
650
  ], 38);
646
651
  };
@@ -664,10 +669,10 @@ const u0 = /* @__PURE__ */ p1(p0, [["__scopeId", "data-v-6ede2cc5"]]), d0 = { cl
664
669
  }, O0 = { key: 1 }, T0 = { class: "p-4 text-gray text-center" }, j0 = { key: 2 }, z0 = {
665
670
  class: "p-3 space-y-1.5 rounded-lg",
666
671
  style: { "box-shadow": "0 0 6px #eaeaea" }
667
- }, H0 = { key: 0 }, I0 = {
672
+ }, H0 = { key: 0 }, P0 = {
668
673
  key: 0,
669
674
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
670
- }, P0 = {
675
+ }, I0 = {
671
676
  key: 1,
672
677
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
673
678
  }, A0 = {
@@ -676,51 +681,51 @@ const u0 = /* @__PURE__ */ p1(p0, [["__scopeId", "data-v-6ede2cc5"]]), d0 = { cl
676
681
  }, E0 = {
677
682
  key: 3,
678
683
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
679
- }, F0 = { class: "text-lg font-medium" }, N0 = { class: "text-sm text-gray-600" }, W0 = { key: 0 }, G0 = ["src"], q0 = { class: "text-sm whitespace-pre-wrap break-words" }, R0 = { key: 1 }, U0 = ["href"], Z0 = { class: "text-sm flex items-center justify-between mt-1" }, D0 = { class: "text-gray-800" }, J0 = ["href"], K0 = /* @__PURE__ */ i1({
684
+ }, F0 = { class: "text-lg font-medium" }, N0 = { class: "text-sm text-gray-600" }, G0 = { key: 0 }, W0 = ["src"], q0 = { class: "text-sm whitespace-pre-wrap break-words" }, R0 = { key: 1 }, U0 = ["href"], Z0 = { class: "text-sm flex items-center justify-between mt-1" }, D0 = { class: "text-gray-800" }, J0 = ["href"], K0 = /* @__PURE__ */ i1({
680
685
  __name: "OneMainLayout",
681
686
  props: ae,
682
687
  emits: ["load-news", "load-tariff", "open-tariff"],
683
688
  setup(m, { emit: v }) {
684
689
  const r = v, u = m;
685
- let y = window.localStorage.getItem("sidebar-slim");
686
- window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), y = "1");
687
- const x = $(y === "1");
688
- $(!0), t1(x, (s) => {
690
+ let g = window.localStorage.getItem("sidebar-slim");
691
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), g = "1");
692
+ const b = $(g === "1");
693
+ $(!0), t1(b, (s) => {
689
694
  window.localStorage.setItem("sidebar-slim", String(s ? 1 : 0));
690
695
  });
691
- const f = $(!1), g = () => {
696
+ const f = $(!1), L = () => {
692
697
  f.value = !f.value, f.value && r("load-news");
693
- }, T = S(() => u.showHeadre);
698
+ }, V = B(() => u.showHeadre);
694
699
  t1(
695
700
  () => u.showHeadre,
696
701
  // Передаємо доступ до props
697
702
  () => {
698
- T.value = u.showHeadre;
703
+ V.value = u.showHeadre;
699
704
  }
700
705
  );
701
- const H = $(window.innerWidth), B = () => {
702
- H.value = window.innerWidth;
703
- }, n = S(() => H.value <= 768);
704
- G1(() => {
705
- window.addEventListener("resize", B);
706
+ const I = $(window.innerWidth), M = () => {
707
+ I.value = window.innerWidth;
708
+ }, n = B(() => I.value <= 768);
709
+ W1(() => {
710
+ window.addEventListener("resize", M);
706
711
  }), Q1(() => {
707
- window.removeEventListener("resize", B);
712
+ window.removeEventListener("resize", M);
708
713
  });
709
- const L = (s) => {
714
+ const y = (s) => {
710
715
  var c;
711
716
  (c = u.handlers) == null || c.onSetLang(s);
712
717
  };
713
718
  return (s, c) => {
714
- var b, I, D, M, V, J, K, Q, P, A, E, l, w, F, N, W, G, q, R;
715
- const j = W1("RouterLink");
719
+ var x, z, H, S, O, J, K, Q, A, E, F, l, w, N, G, W, q, R, U;
720
+ const j = G1("RouterLink");
716
721
  return t(), o("div", d0, [
717
722
  a1(e("div", c0, [
718
723
  e("div", h0, [
719
724
  e("button", {
720
- onClick: c[0] || (c[0] = (p) => x.value = !x.value),
725
+ onClick: c[0] || (c[0] = (p) => b.value = !b.value),
721
726
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
722
727
  }, [
723
- z(k(re), { class: "w-[24px] h-[24px]" })
728
+ P(k(re), { class: "w-[24px] h-[24px]" })
724
729
  ])
725
730
  ]),
726
731
  e("div", f0, [
@@ -737,10 +742,10 @@ const u0 = /* @__PURE__ */ p1(p0, [["__scopeId", "data-v-6ede2cc5"]]), d0 = { cl
737
742
  class: "pl-2 max-w-xs"
738
743
  }, {
739
744
  default: n1(() => {
740
- var p, O;
745
+ var p, T;
741
746
  return [
742
747
  e("div", v0, i(s.app.name), 1),
743
- e("div", C0, i((O = (p = s.app) == null ? void 0 : p.workspace) == null ? void 0 : O.name), 1)
748
+ e("div", C0, i((T = (p = s.app) == null ? void 0 : p.workspace) == null ? void 0 : T.name), 1)
744
749
  ];
745
750
  }),
746
751
  _: 1
@@ -749,72 +754,72 @@ const u0 = /* @__PURE__ */ p1(p0, [["__scopeId", "data-v-6ede2cc5"]]), d0 = { cl
749
754
  e("div", x0, [
750
755
  e("div", b0, [
751
756
  F1(s.$slots, "before-header-menu", {}, void 0, !0),
752
- s.improveTariff && ((b = s.improveTariff) != null && b.label) && s.improveTariff.label ? (t(), o("div", y0, [
757
+ s.improveTariff && ((x = s.improveTariff) != null && x.label) && s.improveTariff.label ? (t(), o("div", y0, [
753
758
  e("button", {
754
759
  type: "button",
755
760
  class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
756
761
  onClick: c[1] || (c[1] = //@ts-ignore
757
762
  (...p) => {
758
- var O, U;
759
- return ((O = s.handlers) == null ? void 0 : O.onImproveTariff) && ((U = s.handlers) == null ? void 0 : U.onImproveTariff(...p));
763
+ var T, Z;
764
+ return ((T = s.handlers) == null ? void 0 : T.onImproveTariff) && ((Z = s.handlers) == null ? void 0 : Z.onImproveTariff(...p));
760
765
  }),
761
766
  style: { "font-size": "10px" }
762
767
  }, [
763
768
  e("div", g0, [
764
- (t(), C(_((I = s.improveTariff) == null ? void 0 : I.icon), { class: "h-4 w-4 mx-auto" }))
769
+ (t(), C(_((z = s.improveTariff) == null ? void 0 : z.icon), { class: "h-4 w-4 mx-auto" }))
765
770
  ]),
766
- e("span", L0, i((D = s.improveTariff) == null ? void 0 : D.label), 1)
771
+ e("span", L0, i((H = s.improveTariff) == null ? void 0 : H.label), 1)
767
772
  ])
768
773
  ])) : a("", !0),
769
774
  s.help ? (t(), C(ee, {
770
775
  key: 1,
771
776
  help: s.help
772
777
  }, null, 8, ["help"])) : a("", !0),
773
- ((M = s.handlers) == null ? void 0 : M.onBrowse) != null ? (t(), C(te, {
778
+ ((S = s.handlers) == null ? void 0 : S.onBrowse) != null ? (t(), C(te, {
774
779
  key: 2,
775
- workspace: (V = s.app) == null ? void 0 : V.workspace,
780
+ workspace: (O = s.app) == null ? void 0 : O.workspace,
776
781
  apps: ((J = s.app) == null ? void 0 : J.apps) || [],
777
782
  "change-label": ((K = s.labels) == null ? void 0 : K.change) || "Change",
778
783
  "apps-title": ((Q = s.labels) == null ? void 0 : Q.apps) || "Apps",
779
- "on-app": (P = s.handlers) == null ? void 0 : P.onApp,
780
- "on-change": (A = s.handlers) == null ? void 0 : A.onChange,
781
- onOpen: (E = s.handlers) == null ? void 0 : E.onBrowse
784
+ "on-app": (A = s.handlers) == null ? void 0 : A.onApp,
785
+ "on-change": (E = s.handlers) == null ? void 0 : E.onChange,
786
+ onOpen: (F = s.handlers) == null ? void 0 : F.onBrowse
782
787
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : a("", !0),
783
- z(se, {
788
+ P(se, {
784
789
  user: s.user,
785
790
  menu: s.menu,
786
791
  app: s.app,
787
792
  "account-label": ((l = s.labels) == null ? void 0 : l.account) || "Account",
788
793
  "logout-label": ((w = s.labels) == null ? void 0 : w.logout) || "Logout",
789
- "version-label": ((F = s.labels) == null ? void 0 : F.version) || "",
790
- "on-account": (N = s.handlers) == null ? void 0 : N.onAccount,
794
+ "version-label": ((N = s.labels) == null ? void 0 : N.version) || "",
795
+ "on-account": (G = s.handlers) == null ? void 0 : G.onAccount,
791
796
  "on-logout": (W = s.handlers) == null ? void 0 : W.onLogout
792
797
  }, null, 8, ["user", "menu", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
793
798
  ])
794
799
  ])
795
800
  ])
796
801
  ], 512), [
797
- [r1, T.value]
802
+ [r1, V.value]
798
803
  ]),
799
804
  e("div", k0, [
800
- !n.value || !x.value ? (t(), C(u0, {
805
+ !n.value || !b.value ? (t(), C(u0, {
801
806
  key: 0,
802
807
  app: s.app,
803
808
  items: s.sidebarItems,
804
809
  "with-news": s.news != null,
805
810
  news: s.news,
806
811
  isMobile: n.value,
807
- modelValue: x.value,
808
- "onUpdate:modelValue": c[2] || (c[2] = (p) => x.value = p),
809
- onShowNews: g,
810
- onSelectLanguage: L,
811
- onUpdateCollapsed: c[3] || (c[3] = (p) => x.value = !x.value)
812
+ modelValue: b.value,
813
+ "onUpdate:modelValue": c[2] || (c[2] = (p) => b.value = p),
814
+ onShowNews: L,
815
+ onSelectLanguage: y,
816
+ onUpdateCollapsed: c[3] || (c[3] = (p) => b.value = !b.value)
812
817
  }, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
813
818
  e("div", {
814
- class: d([[x.value ? "sm:ml-[60px]" : "sm:ml-[260px] hidden sm:block"], "body scroll-body w-full overflow-y-auto"])
819
+ class: d([[b.value ? "sm:ml-[60px]" : "sm:ml-[260px] hidden sm:block"], "body scroll-body w-full overflow-y-auto"])
815
820
  }, [
816
821
  e("div", {
817
- class: d(["content transition-all", { "pt-[56px]": T.value }])
822
+ class: d(["content transition-all", { "pt-[56px]": V.value }])
818
823
  }, [
819
824
  F1(s.$slots, "default", {}, void 0, !0)
820
825
  ], 2)
@@ -832,10 +837,10 @@ const u0 = /* @__PURE__ */ p1(p0, [["__scopeId", "data-v-6ede2cc5"]]), d0 = { cl
832
837
  f.value ? (t(), o("div", $0, [
833
838
  e("div", S0, [
834
839
  e("div", B0, [
835
- z(Z1, { class: "w-10 h-10" }),
840
+ P(Z1, { class: "w-10 h-10" }),
836
841
  c[6] || (c[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
837
842
  e("div", null, [
838
- z(R1, {
843
+ P(R1, {
839
844
  variant: "touch",
840
845
  icon: k(oe),
841
846
  onClick: c[5] || (c[5] = (p) => f.value = !1)
@@ -843,29 +848,29 @@ const u0 = /* @__PURE__ */ p1(p0, [["__scopeId", "data-v-6ede2cc5"]]), d0 = { cl
843
848
  ])
844
849
  ]),
845
850
  e("div", M0, [
846
- s.news.isLoading && ((G = s.news.items) == null ? void 0 : G.length) === 0 ? (t(), o("div", V0, [
847
- z(le, { class: "w-6 h-6 text-gray-600 mx-auto" })
848
- ])) : ((q = s.news.items) == null ? void 0 : q.length) === 0 ? (t(), o("div", O0, [
851
+ s.news.isLoading && ((q = s.news.items) == null ? void 0 : q.length) === 0 ? (t(), o("div", V0, [
852
+ P(le, { class: "w-6 h-6 text-gray-600 mx-auto" })
853
+ ])) : ((R = s.news.items) == null ? void 0 : R.length) === 0 ? (t(), o("div", O0, [
849
854
  e("div", T0, i(s.news.emptyText), 1)
850
- ])) : ((R = s.news.items) == null ? void 0 : R.length) > 0 ? (t(), o("div", j0, [
851
- (t(!0), o(Z, null, e1(s.news.items, (p) => (t(), o("div", {
855
+ ])) : ((U = s.news.items) == null ? void 0 : U.length) > 0 ? (t(), o("div", j0, [
856
+ (t(!0), o(D, null, e1(s.news.items, (p) => (t(), o("div", {
852
857
  key: p.id,
853
858
  class: "p-3"
854
859
  }, [
855
860
  e("div", z0, [
856
861
  e("div", null, [
857
862
  p.type ? (t(), o("div", H0, [
858
- p.type === 10 ? (t(), o("span", I0, "update")) : p.type === 11 ? (t(), o("span", P0, "warning")) : p.type === 12 ? (t(), o("span", A0, "notice")) : p.type === 13 ? (t(), o("span", E0, "ads")) : a("", !0)
863
+ p.type === 10 ? (t(), o("span", P0, "update")) : p.type === 11 ? (t(), o("span", I0, "warning")) : p.type === 12 ? (t(), o("span", A0, "notice")) : p.type === 13 ? (t(), o("span", E0, "ads")) : a("", !0)
859
864
  ])) : a("", !0),
860
865
  e("div", F0, i(p.title), 1),
861
866
  e("div", N0, i(p.summary), 1)
862
867
  ]),
863
- p.image_url ? (t(), o("div", W0, [
868
+ p.image_url ? (t(), o("div", G0, [
864
869
  e("img", {
865
870
  src: p.image_url,
866
871
  alt: "",
867
872
  class: "w-full rounded-md"
868
- }, null, 8, G0)
873
+ }, null, 8, W0)
869
874
  ])) : a("", !0),
870
875
  e("div", q0, i(p.body), 1),
871
876
  p.video_url ? (t(), o("div", R0, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneb/ui-vue",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [