@oneb/ui-vue 0.0.98 → 0.0.100

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("../OneBrowserMenu-3650ed5d.cjs"),U=require("../_plugin-vue_export-helper-f246444f.cjs"),W=require("../index-668faddf.cjs"),he=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const pe={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}},fe={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},isMobile:{type:Boolean,default:!1},href:{type:String},app:{type:Object},label:{type:String,required:!0},labelTop:{type:String,default:""},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0},open:{type:Boolean,default:!1},subItems:{type:Array,required:!1}},Ce={sidebarItems:pe.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},yourApps:{type:Object},news:{type:Object},handlers:{type:Object},improveTariff:{type:Object}};function ve(a,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function ke(a,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.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"})])}function we(a,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"})])}function xe(a,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}const ye={key:0,style:{"font-size":"10px"},class:"text-[#979CA9] uppercase px-2 pt-2 font-medium"},be=["href"],ge={class:"flex flex-nowrap items-center w-full h-[24px]"},Be={key:0,class:"w-[44px] flex-shrink-0"},_e={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ee={class:"py-[8px] pl-0 pr-0"},Ve={class:"flex flex-nowrap items-center w-full h-[24px]"},Ne={key:0,class:"w-[44px] flex-shrink-0"},Le={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},$e={class:"py-[8px] pl-0 pr-0"},Se={key:1,class:"p-3"},De={class:"flex flex-nowrap items-center w-full h-[24px] mb-0.5"},Me={key:0,class:"w-[44px] flex-shrink-0"},ze={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Oe={class:"py-[8px] pl-0 pr-0"},je={key:1,class:"p-3"},Te=["href"],Ae={class:"flex items-center justify-between min-w-full h-[24px]"},Ie={class:"text-xs"},He={key:0,class:"pr-1"},Fe={class:"text-xs"},Pe={key:0,class:"pr-3"},qe=e.defineComponent({__name:"OneSidebarLink",props:fe,emits:["update-collapsed"],setup(a,{emit:c}){const l=a,i=c,h=e.computed(()=>l.href??!1),u=e.computed(()=>d(l)),d=n=>n.route?n.route:n.routeName?{name:n.routeName}:"",f=e.ref(l.open),b=()=>{f.value=!f.value},C=(n,v)=>{l.subItems&&l.subItems.length>0&&!v&&(n.preventDefault(),b()),l.isMobile&&i("update-collapsed")};return(n,v)=>{const t=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.labelTop&&!n.slim?(e.openBlock(),e.createElementBlock("p",ye,e.toDisplayString(n.labelTop),1)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("a",{key:1,href:h.value,class:e.normalizeClass(["flex items-center relative rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:C},[e.createElementVNode("div",ge,[n.icon?(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",_e,[e.createElementVNode("span",Ee,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ml-auto",[n.slim?"hidden":""]])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,be)):e.createCommentVNode("",!0),!h.value&&u.value?(e.openBlock(),e.createBlock(t,{key:2,to:u.value,class:e.normalizeClass(["relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base",exact:n.exact,onClick:e.withModifiers(C,["prevent"])},{default:e.withCtx(()=>[e.createElementVNode("div",Ve,[n.icon?(e.openBlock(),e.createElementBlock("div",Ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Le,[e.createElementVNode("span",$e,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",Se,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])]),_:1},8,["to","exact","class"])):e.createCommentVNode("",!0),!h.value&&!u.value?(e.openBlock(),e.createElementBlock("span",{key:3,onClick:e.withModifiers(C,["prevent"]),class:e.normalizeClass([[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"],"mb-0.5 relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"])},[e.createElementVNode("div",De,[n.icon?(e.openBlock(),e.createElementBlock("div",Me,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",ze,[e.createElementVNode("span",Oe,e.toDisplayString(n.label),1)]),l.subItems&&l.subItems.length>0&&!n.slim?(e.openBlock(),e.createElementBlock("div",je,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),f.value&&l.subItems?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass([n.slim?"hidden":"pl-[36px] pr-3"])},[e.createElementVNode("div",{class:e.normalizeClass([(n.slim,"")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.subItems,r=>(e.openBlock(),e.createElementBlock("div",{key:r.label,class:e.normalizeClass([(n.slim,"")])},[r.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:r.href,class:"flex items-center mb-0.5 rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"},[e.createElementVNode("div",Ae,[e.createElementVNode("span",Ie,e.toDisplayString(r.label),1),r.icon?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{class:"w-[15px] h-[15px] mx-auto"}))])):e.createCommentVNode("",!0)])],8,Te)):(e.openBlock(),e.createBlock(t,{key:1,to:d(r),onClick:v[0]||(v[0]=e.withModifiers(g=>{C(g,!0)},["prevent"])),class:"flex items-center rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover mb-0.5 hover:text-primary-base transition-all text-[#525B66]",exact:n.exact,"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base"},{default:e.withCtx(()=>[e.createElementVNode("span",Fe,e.toDisplayString(r.label),1),r.icon?(e.openBlock(),e.createElementBlock("div",Pe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{class:"w-[20px] h-[20px] mx-auto"}))])):e.createCommentVNode("",!0)]),_:2},1032,["to","exact"]))],2))),128))],2)],2)):e.createCommentVNode("",!0)],64)}}}),We={},Ue={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Re(a,c){return e.openBlock(),e.createElementBlock("svg",Ue,c[0]||(c[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 me=U._export_sfc(We,[["render",Re]]),de=a=>{if(Array.isArray(a))return a.map(e.unref);const c=e.unref(a);return Array.isArray(c)?c:[c]},Ze=(a,c)=>{let l;const i=h=>{h.forEach(u=>{const d=e.unref(u);if(d){if(!(d instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:d,array:a}),new Error("Vuestic: Unable to observe non-HTMLElement");d&&(l==null||l.observe(d))}})};return e.watch(a,h=>{l==null||l.disconnect(),i(de(h))}),e.onMounted(()=>{l=new ResizeObserver(c),i(de(a))}),e.onBeforeUnmount(()=>l==null?void 0:l.disconnect()),l},Xe=a=>{const c=e.ref(null);return Ze([a],()=>{var l;c.value=((l=a.value)==null?void 0:l.clientWidth)??null}),e.watchEffect(()=>{var l;c.value=((l=a.value)==null?void 0:l.clientWidth)??null}),c},Ge={class:"mt-auto shrink"},Je=["href"],Ke={class:"relative rounded-lg bg-[#FFF8E4] px-1 py-3"},Qe={class:"w-[44px] mx-auto"},Ye={class:"text-center text-xs pt-2"},e1={key:1,class:"flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-full"},t1={class:"flex items-center space-x-2 text-[#525B66]"},o1={class:"w-[24px] mx-auto"},l1={class:"text-sm"},n1={class:"text-xs"},r1=["href"],s1={class:"flex flex-nowrap items-center w-max h-[24px]"},a1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},c1={class:"py-[8px] pl-0 pr-[8px]"},i1=["href"],d1={class:"flex flex-nowrap items-center w-max h-[24px]"},p1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},m1={class:"py-[8px] pl-0 pr-[8px]"},u1={key:4,class:"custom-select ml-3 w-full relative pt-3"},h1={class:"pl-2"},f1={key:0,class:"dropdown w-[220px] z-10 text-[#525B66]"},C1=["onClick"],v1={key:0,class:"mt-3 h-0 border-t border-secondary-stroke mb-3"},k1={class:"flex flex-nowrap items-center w-full h-[24px]"},w1={class:"w-[44px] flex-shrink-0 relative"},x1={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},y1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},b1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},g1={class:"py-[8px] pl-0 pr-[8px]"},B1=["href"],_1={class:"flex flex-nowrap items-center w-full h-[24px]"},E1={class:"w-[44px] flex-shrink-0 relative"},V1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},N1={class:"py-[8px] pl-0 pr-[8px]"},L1=e.defineComponent({__name:"OneSidebar",props:pe,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(a,{emit:c}){var E,V,N;const l=c,i=a,h=e.computed(()=>{var o;return((o=i.news)==null?void 0:o.unseenCount)||0}),u=()=>{l("show-news")},d=e.ref(!1),f=e.ref(i.hoverable);e.watch(i,()=>{i.modelValue?f.value=!0:f.value=!1}),i.modelValue&&(f.value=!0);const b=e.shallowRef(),C=e.computed(()=>t.value?"":"w-[260px]"),n=e.computed(()=>""),v=o=>{d.value=f.value&&o},t=e.computed(()=>f.value&&!d.value),r=e.computed(()=>!!t.value),g=e.ref(),B=Xe(g),_=e.computed(()=>i.modelValue===!0||B.value===null?!0:B.value>0),A=e.ref(),I=()=>t.value?i.minimizedWidth:i.width;e.watchEffect(()=>{const o=I();setTimeout(()=>{A.value=o})});const w=e.ref(!1),x=e.ref((E=i.app)!=null&&E.availableLang&&((V=i.app)==null?void 0:V.availableLang.length)>0?(N=i.app)==null?void 0:N.availableLang.find(o=>{var p;return o.id==((p=i.app)==null?void 0:p.lang)}):null),H=()=>{w.value=!w.value},F=o=>{x.value=o,w.value=!1,l("select-language",o)},P=()=>{var o,p;(p=(o=i.app)==null?void 0:o.selectedPlan)!=null&&p.url&&(window.location.href=i.app.selectedPlan.url)};return(o,p)=>{var L,$,S,D,M,z,O,j,s,y,T,R,Z,X,G,J,K,Q,Y,ee,te,oe,le,ne,re,se,ae;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:b,class:e.normalizeClass(["oneb-sidebar pt-[56px] p-2 cont max-w-[270px] flex flex-col",C.value]),style:e.normalizeStyle(n.value),onMouseenter:p[1]||(p[1]=m=>v(!0)),onMouseleave:p[2]||(p[2]=m=>v(!1))},[e.withDirectives(e.createElementVNode("div",{class:"overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 pt-2 flex-grow",ref_key:"menu",ref:g},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,m=>(e.openBlock(),e.createBlock(qe,{key:m.label,labelTop:m.labelTop,isMobile:o.isMobile,subItems:m.subItems,open:m.open,icon:m.icon,label:m.label,route:m.route,href:m.href,slim:r.value,"route-name":m.routeName,exact:m.exact||!1,onUpdateCollapsed:p[0]||(p[0]=q=>l("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","href","slim","route-name","exact"]))),128))],512),[[e.vShow,_.value]]),e.withDirectives(e.createElementVNode("div",Ge,[e.createElementVNode("div",{class:e.normalizeClass([r.value?"hidden":"w-full hidden md:flex-col md:flex px-2"])},[(L=o.app)!=null&&L.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:($=o.app)==null?void 0:$.offerPlan.url,class:"relative w-full border rounded-lg p-[1px] bg-[#FFF8E4] mb-3 block",target:"_blank",rel:"noopener noreferrer"},[p[3]||(p[3]=e.createElementVNode("div",{class:"absolute inset-0 rounded-lg bg-gradient-to-r from-[#E1A508] via-red-500 to-[#E04040]"},null,-1)),e.createElementVNode("div",Ke,[e.createElementVNode("div",Qe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((S=o.app)==null?void 0:S.offerPlan.icon),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("p",Ye,e.toDisplayString((D=o.app)==null?void 0:D.offerPlan.title)+" «"+e.toDisplayString((M=o.app)==null?void 0:M.offerPlan.name)+"» "+e.toDisplayString((z=o.app)==null?void 0:z.offerPlan.title1),1)])],8,Je)):e.createCommentVNode("",!0),(O=o.app)!=null&&O.selectedPlan&&((j=o.app)!=null&&j.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",e1,[e.createElementVNode("div",t1,[e.createElementVNode("div",o1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((s=o.app)==null?void 0:s.selectedPlan.icon),{class:"w-[24px] h-[24px]"}))]),e.createElementVNode("div",null,[e.createElementVNode("p",l1,e.toDisplayString(((y=o.app)==null?void 0:y.selectedPlan.name)||""),1),e.createElementVNode("p",n1,e.toDisplayString(((T=o.app)==null?void 0:T.selectedPlan.title)||""),1)])]),e.createElementVNode("div",null,[e.createVNode(W._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",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:(Z=o.app)==null?void 0:Z.terms.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",s1,[e.createElementVNode("div",a1,[e.createElementVNode("span",c1,e.toDisplayString(((X=o.app)==null?void 0:X.terms.label)||"Terms"),1)])])],8,r1)):e.createCommentVNode("",!0),(G=o.app)!=null&&G.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(J=o.app)==null?void 0:J.offer.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",d1,[e.createElementVNode("div",p1,[e.createElementVNode("span",m1,e.toDisplayString(((K=o.app)==null?void 0:K.offer.label)||"Offert"),1)])])],8,i1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",u1,[e.createElementVNode("div",{class:"select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",onClick:H},[e.createVNode(e.unref(we),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((ee=x.value)==null?void 0:ee.name)+" ",1),e.createElementVNode("span",h1,e.toDisplayString(w.value?"▲":"▼"),1)]),w.value?(e.openBlock(),e.createElementBlock("div",f1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=o.app)==null?void 0:te.availableLang,m=>{var q,ce;return e.openBlock(),e.createElementBlock("div",{key:m.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":m.id!==((q=x.value)==null?void 0:q.id),"text-gray-300":m.id===((ce=x.value)==null?void 0:ce.id)}]),onClick:wt=>{var ie;return m.id!==((ie=x.value)==null?void 0:ie.id)&&F(m)}},e.toDisplayString(m.name),11,C1)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",v1)),e.createElementVNode("div",{class:e.normalizeClass(["flex",[(o.slim,"grid")]])},[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",[r.value?"w-[44px] h-[44px]":"w-full h-[44px]"]]),onClick:u},[e.createElementVNode("div",k1,[e.createElementVNode("div",w1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(me),{class:"w-[24px] h-[24px] mx-auto"}))]),h.value>0?(e.openBlock(),e.createElementBlock("span",x1)):e.createCommentVNode("",!0),h.value>0?(e.openBlock(),e.createElementBlock("span",y1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",b1,[e.createElementVNode("span",g1,e.toDisplayString(o.news.menuLabel||"News"),1)])])],2)):e.createCommentVNode("",!0),(oe=o.app)!=null&&oe.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(ne=(le=o.app)==null?void 0:le.support)==null?void 0:ne.url,class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[r.value?"w-[44px] h-[44px]":"w-full h-[44px]"]])},[e.createElementVNode("div",_1,[e.createElementVNode("div",E1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(ke)),{class:"w-[24px] h-[24px] mx-auto"}))])]),e.createElementVNode("div",V1,[e.createElementVNode("span",N1,e.toDisplayString(((se=(re=o.app)==null?void 0:re.support)==null?void 0:se.label)||"Support"),1)])])],10,B1)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[r.value?"hidden":"w-full"],"text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])},[p[4]||(p[4]=e.createElementVNode("span",null,"Powered by OneB",-1)),e.createElementVNode("span",null,e.toDisplayString((ae=o.app)==null?void 0:ae.version),1)],2)],512),[[e.vShow,_.value]])],38)}}});const ue=U._export_sfc(L1,[["__scopeId","data-v-069bf58b"]]),$1={class:"h-screen h-dvh relative"},S1={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"},M1={class:"w-10 h-10 flex items-center flex-shrink-0"},z1=["src"],O1={class:"whitespace-nowrap font-semibold text-xl"},j1={class:"text-xs whitespace-nowrap"},T1={class:"w-full"},A1={class:"w-full flex justify-end pr-3"},I1={class:"flex items-center space-x-1"},H1={key:0,class:"module-border-wrap flex justify-center items-center"},F1={class:"h-4 w-4"},P1={class:"ml-2 hidden sm:flex"},q1=["href"],W1={class:"flex h-full"},U1={class:"content transition-all pt-[56px]"},R1={key:0},Z1={key:0,class:"sm:w-[560px] w-full relative h-full"},X1={class:"h-full relative"},G1={class:"flex items-center p-3 space-x-1.5"},J1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},K1={key:0,class:"p-5"},Q1={key:1},Y1={class:"p-4 text-gray text-center"},et={key:2},tt={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},ot={key:0},lt={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},nt={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},rt={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},st={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},at={class:"text-lg font-medium"},ct={class:"text-sm text-gray-600"},it={key:0},dt=["src"],pt={class:"text-sm whitespace-pre-wrap break-words"},mt={key:1},ut=["href"],ht={class:"text-sm flex items-center justify-between mt-1"},ft={class:"text-gray-800"},Ct=["href"],vt=e.defineComponent({__name:"OneMainLayout",props:Ce,emits:["load-news","load-tariff","open-tariff"],setup(a,{emit:c}){const l=c,i=a;let h=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),h="1");const u=e.ref(h==="1");e.ref(!0),e.watch(u,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const d=e.ref(!1),f=()=>{d.value=!d.value,d.value&&l("load-news")},b=e.ref(window.innerWidth),C=()=>{b.value=window.innerWidth},n=e.computed(()=>b.value<=768);e.onMounted(()=>{window.addEventListener("resize",C)}),e.onUnmounted(()=>{window.removeEventListener("resize",C)});const v=t=>{var r;(r=i.handlers)==null||r.onSetLang(t)};return(t,r)=>{var B,_,A,I,w,x,H,F,P,E,V,N,o,p,L,$,S,D,M,z,O,j;const g=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",$1,[e.createElementVNode("div",S1,[e.createElementVNode("div",D1,[e.createElementVNode("button",{onClick:r[0]||(r[0]=s=>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(ve),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",M1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,z1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(g,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var s,y;return[e.createElementVNode("div",O1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",j1,e.toDisplayString((y=(s=t.app)==null?void 0:s.workspace)==null?void 0:y.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",T1,[e.createElementVNode("div",A1,[e.createElementVNode("div",I1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff?(e.openBlock(),e.createElementBlock("div",H1,[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:r[1]||(r[1]=(...s)=>{var y,T;return((y=t.handlers)==null?void 0:y.onImproveTariff)&&((T=t.handlers)==null?void 0:T.onImproveTariff(...s))}),style:{"font-size":"10px"}},[e.createElementVNode("div",F1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((B=t.improveTariff)==null?void 0:B.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",P1,e.toDisplayString((_=t.improveTariff)==null?void 0:_.label),1)])])):e.createCommentVNode("",!0),(I=(A=t.app)==null?void 0:A.help)!=null&&I.url?(e.openBlock(),e.createElementBlock("a",{key:1,href:(x=(w=t.app)==null?void 0:w.help)==null?void 0:x.url,target:"_blank",title:"Help",class:"p-1 rounded-md hover:bg-secondary-10 flex-shrink-0 hidden w-[44px] h-[44px] sm:flex items-center justify-center hover:text-blue-600"},[e.createVNode(e.unref(xe),{class:"text-secondary-base w-full p-1 hover:text-blue-600"})],8,q1)):e.createCommentVNode("",!0),((H=t.handlers)==null?void 0:H.onBrowse)!=null?(e.openBlock(),e.createBlock(k.OneBrowserMenu,{key:2,workspace:(F=t.app)==null?void 0:F.workspace,apps:((P=t.app)==null?void 0:P.apps)||[],"change-label":((E=t.labels)==null?void 0:E.change)||"Change","apps-title":((V=t.labels)==null?void 0:V.apps)||"Apps","on-app":(N=t.handlers)==null?void 0:N.onApp,"on-change":(o=t.handlers)==null?void 0:o.onChange,onOpen:(p=t.handlers)==null?void 0:p.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(k._sfc_main$2,{user:t.user,app:t.app,"account-label":((L=t.labels)==null?void 0:L.account)||"Account","logout-label":(($=t.labels)==null?void 0:$.logout)||"Logout","version-label":((S=t.labels)==null?void 0:S.version)||"","on-account":(D=t.handlers)==null?void 0:D.onAccount,"on-logout":(M=t.handlers)==null?void 0:M.onLogout},null,8,["user","app","account-label","logout-label","version-label","on-account","on-logout"])])])])]),e.createElementVNode("div",W1,[!n.value||!u.value?(e.openBlock(),e.createBlock(ue,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:n.value,modelValue:u.value,"onUpdate:modelValue":r[2]||(r[2]=s=>u.value=s),onShowNews:f,onSelectLanguage:v,onUpdateCollapsed:r[3]||(r[3]=s=>u.value=!u.value)},null,8,["app","items","with-news","news","isMobile","modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([[u.value?"":"hidden lg:block"],"body scroll-body w-full overflow-y-auto"])},[e.createElementVNode("div",U1,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],2)]),t.news?(e.openBlock(),e.createElementBlock("div",R1,[d.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:r[4]||(r[4]=e.withModifiers(s=>d.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",[d.value?"sm:w-[560px] w-full":"w-0"]])},[d.value?(e.openBlock(),e.createElementBlock("div",Z1,[e.createElementVNode("div",X1,[e.createElementVNode("div",G1,[e.createVNode(me,{class:"w-10 h-10"}),r[6]||(r[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(W._sfc_main,{variant:"touch",icon:e.unref(he.render),onClick:r[5]||(r[5]=s=>d.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",J1,[t.news.isLoading&&((z=t.news.items)==null?void 0:z.length)===0?(e.openBlock(),e.createElementBlock("div",K1,[e.createVNode(W.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",Q1,[e.createElementVNode("div",Y1,e.toDisplayString(t.news.emptyText),1)])):((j=t.news.items)==null?void 0:j.length)>0?(e.openBlock(),e.createElementBlock("div",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"p-3"},[e.createElementVNode("div",tt,[e.createElementVNode("div",null,[s.type?(e.openBlock(),e.createElementBlock("div",ot,[s.type===10?(e.openBlock(),e.createElementBlock("span",lt,"update")):s.type===11?(e.openBlock(),e.createElementBlock("span",nt,"warning")):s.type===12?(e.openBlock(),e.createElementBlock("span",rt,"notice")):s.type===13?(e.openBlock(),e.createElementBlock("span",st,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",at,e.toDisplayString(s.title),1),e.createElementVNode("div",ct,e.toDisplayString(s.summary),1)]),s.image_url?(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("img",{src:s.image_url,alt:"",class:"w-full rounded-md"},null,8,dt)])):e.createCommentVNode("",!0),e.createElementVNode("div",pt,e.toDisplayString(s.body),1),s.video_url?(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("a",{href:s.video_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"},e.toDisplayString(t.news.openVideoText),9,ut)])):e.createCommentVNode("",!0),e.createElementVNode("div",ht,[e.createElementVNode("span",ft,e.toDisplayString(s.published),1),s.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:s.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,Ct)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const kt=U._export_sfc(vt,[["__scopeId","data-v-c497bf7d"]]);exports.OneMainLayout=kt;exports.OneSidebar=ue;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("../OneBrowserMenu-3650ed5d.cjs"),U=require("../_plugin-vue_export-helper-f246444f.cjs"),W=require("../index-668faddf.cjs"),fe=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const ue={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},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}},ke={sidebarItems:ue.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},yourApps:{type:Object},news:{type:Object},handlers:{type:Object},improveTariff:{type:Object}};function we(s,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function ye(s,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.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"})])}function xe(s,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"})])}function be(s,c){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}const ge={key:0,style:{"font-size":"10px"},class:"text-[#979CA9] uppercase px-2 pt-2 font-medium"},Be=["href"],Ve={class:"flex flex-nowrap items-center w-full h-[24px]"},Ee={key:0,class:"w-[44px] flex-shrink-0"},_e={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ne={class:"py-[8px] pl-0 pr-0"},Le={class:"flex flex-nowrap items-center w-full h-[24px]"},$e={key:0,class:"w-[44px] flex-shrink-0"},Se={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},De={class:"py-[8px] pl-0 pr-0"},Me={key:1,class:"p-3"},ze={class:"flex flex-nowrap items-center w-full h-[24px] mb-0.5"},Oe={key:0,class:"w-[44px] flex-shrink-0"},je={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Te={class:"py-[8px] pl-0 pr-0"},Ae={key:1,class:"p-3"},Ie=["href"],He={class:"flex items-center justify-between min-w-full h-[24px]"},Fe={class:"text-xs"},Pe={key:0,class:"pr-1"},qe={class:"text-xs"},We={key:0,class:"pr-3"},Ue=e.defineComponent({__name:"OneSidebarLink",props:ve,emits:["update-collapsed"],setup(s,{emit:c}){const l=s,i=c,h=e.computed(()=>l.href??!1),u=e.computed(()=>d(l)),d=r=>r.route?r.route:r.routeName?{name:r.routeName}:"",C=e.ref(l.open),b=()=>{C.value=!C.value},f=(r,v)=>{l.subItems&&l.subItems.length>0&&!v&&(r.preventDefault(),b()),l.isMobile&&i("update-collapsed")};return(r,v)=>{const t=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock(e.Fragment,null,[r.labelTop&&!r.slim?(e.openBlock(),e.createElementBlock("p",ge,e.toDisplayString(r.labelTop),1)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("a",{key:1,href:h.value,class:e.normalizeClass(["flex items-center relative rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5",[r.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:f},[e.createElementVNode("div",Ve,[r.icon?(e.openBlock(),e.createElementBlock("div",Ee,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",_e,[e.createElementVNode("span",Ne,e.toDisplayString(r.label),1)]),l.subItems&&l.subItems.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ml-auto",[r.slim?"hidden":""]])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))],2)):e.createCommentVNode("",!0)])],10,Be)):e.createCommentVNode("",!0),!h.value&&u.value?(e.openBlock(),e.createBlock(t,{key:2,to:u.value,class:e.normalizeClass(["relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5",[r.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base",exact:r.exact,onClick:e.withModifiers(f,["prevent"])},{default:e.withCtx(()=>[e.createElementVNode("div",Le,[r.icon?(e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Se,[e.createElementVNode("span",De,e.toDisplayString(r.label),1)]),l.subItems&&l.subItems.length>0&&!r.slim?(e.openBlock(),e.createElementBlock("div",Me,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])]),_:1},8,["to","exact","class"])):e.createCommentVNode("",!0),!h.value&&!u.value?(e.openBlock(),e.createElementBlock("span",{key:3,onClick:e.withModifiers(f,["prevent"]),class:e.normalizeClass([[r.slim?"w-[44px] h-[44px]":"h-[44px] w-full"],"mb-0.5 relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"])},[e.createElementVNode("div",ze,[r.icon?(e.openBlock(),e.createElementBlock("div",Oe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",je,[e.createElementVNode("span",Te,e.toDisplayString(r.label),1)]),l.subItems&&l.subItems.length>0&&!r.slim?(e.openBlock(),e.createElementBlock("div",Ae,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value?e.unref(k.render):e.unref(k.render$1)),{class:"w-[16px] h-[16px]"}))])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),C.value&&l.subItems?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass([r.slim?"hidden":"pl-[36px] pr-3"])},[e.createElementVNode("div",{class:e.normalizeClass([(r.slim,"")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.subItems,n=>(e.openBlock(),e.createElementBlock("div",{key:n.label,class:e.normalizeClass([(r.slim,"")])},[n.href?(e.openBlock(),e.createElementBlock("a",{key:0,href:n.href,class:"flex items-center mb-0.5 rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"},[e.createElementVNode("div",He,[e.createElementVNode("span",Fe,e.toDisplayString(n.label),1),n.icon?(e.openBlock(),e.createElementBlock("div",Pe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[15px] h-[15px] mx-auto"}))])):e.createCommentVNode("",!0)])],8,Ie)):(e.openBlock(),e.createBlock(t,{key:1,to:d(n),onClick:v[0]||(v[0]=e.withModifiers(g=>{f(g,!0)},["prevent"])),class:"flex items-center rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover mb-0.5 hover:text-primary-base transition-all text-[#525B66]",exact:r.exact,"active-class":"bg-primary-10 !text-primary-base","exact-active-class":"bg-primary-10 !text-primary-base"},{default:e.withCtx(()=>[e.createElementVNode("span",qe,e.toDisplayString(n.label),1),n.icon?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[20px] h-[20px] mx-auto"}))])):e.createCommentVNode("",!0)]),_:2},1032,["to","exact"]))],2))),128))],2)],2)):e.createCommentVNode("",!0)],64)}}}),Re={},Ze={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Xe(s,c){return e.openBlock(),e.createElementBlock("svg",Ze,c[0]||(c[0]=[e.createElementVNode("path",{d:"M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",fill:"currentColor"},null,-1),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",fill:"currentColor"},null,-1)]))}const he=U._export_sfc(Re,[["render",Xe]]),me=s=>{if(Array.isArray(s))return s.map(e.unref);const c=e.unref(s);return Array.isArray(c)?c:[c]},Ge=(s,c)=>{let l;const i=h=>{h.forEach(u=>{const d=e.unref(u);if(d){if(!(d instanceof Element))throw console.error("Vuestic: Trying to observe non-HTMLElement",{target:d,array:s}),new Error("Vuestic: Unable to observe non-HTMLElement");d&&(l==null||l.observe(d))}})};return e.watch(s,h=>{l==null||l.disconnect(),i(me(h))}),e.onMounted(()=>{l=new ResizeObserver(c),i(me(s))}),e.onBeforeUnmount(()=>l==null?void 0:l.disconnect()),l},Je=s=>{const c=e.ref(null);return Ge([s],()=>{var l;c.value=((l=s.value)==null?void 0:l.clientWidth)??null}),e.watchEffect(()=>{var l;c.value=((l=s.value)==null?void 0:l.clientWidth)??null}),c},Ke={class:"mt-auto shrink"},Qe=["href"],Ye={class:"rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-3"},e1={class:""},t1={class:"",style:{"font-size":"10px"}},o1={key:1,class:"flex justify-between border rounded-lg bg-[#F5F5F5] mb-3 w-full min-w-[220px] space-x-3 px-3"},l1={class:"flex items-center text-[#525B66] space-x-3"},n1={style:{"font-size":"10px"}},r1=["href"],a1={class:"flex flex-nowrap items-center w-max h-[24px]"},s1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},c1={class:"py-[8px] pl-0 pr-[8px]"},i1=["href"],d1={class:"flex flex-nowrap items-center w-max h-[24px]"},p1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},m1={class:"py-[8px] pl-0 pr-[8px]"},u1={key:4,class:"custom-select ml-3 w-full relative pt-3"},h1={class:"pl-2"},C1={key:0,class:"dropdown w-[220px] z-10 text-[#525B66]"},f1=["onClick"],v1={key:0,class:"mt-3 h-0 border-t border-secondary-stroke mb-3"},k1={key:0,class:"tooltip-text"},w1={class:"flex flex-nowrap items-center w-full h-[24px]"},y1={class:"w-[44px] flex-shrink-0 relative"},x1={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},b1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},g1=["href"],B1={key:0,class:"tooltip-text"},V1={class:"flex flex-nowrap items-center w-full h-[24px]"},E1={class:"w-[44px] flex-shrink-0 relative"},_1=e.defineComponent({__name:"OneSidebar",props:ue,emits:["show-news","show-tariff","select-language","update-collapsed","update:modelValue"],setup(s,{emit:c}){var E,_,N;const l=c,i=s,h=e.computed(()=>{var o;return((o=i.news)==null?void 0:o.unseenCount)||0}),u=()=>{l("show-news")},d=e.ref(!1),C=e.ref(i.hoverable);e.watch(i,()=>{i.modelValue?C.value=!0:C.value=!1}),i.modelValue&&(C.value=!0);const b=e.shallowRef(),f=e.computed(()=>t.value?"":"w-[260px]"),r=e.computed(()=>""),v=o=>{d.value=C.value&&o},t=e.computed(()=>C.value&&!d.value),n=e.computed(()=>!!t.value),g=e.ref(),B=Je(g),V=e.computed(()=>i.modelValue===!0||B.value===null?!0:B.value>0),A=e.ref(),I=()=>t.value?i.minimizedWidth:i.width;e.watchEffect(()=>{const o=I();setTimeout(()=>{A.value=o})});const w=e.ref(!1),y=e.ref((E=i.app)!=null&&E.availableLang&&((_=i.app)==null?void 0:_.availableLang.length)>0?(N=i.app)==null?void 0:N.availableLang.find(o=>{var p;return o.id==((p=i.app)==null?void 0:p.lang)}):null),H=()=>{w.value=!w.value},F=o=>{y.value=o,w.value=!1,l("select-language",o)},P=()=>{var o,p;(p=(o=i.app)==null?void 0:o.selectedPlan)!=null&&p.url&&(window.location.href=i.app.selectedPlan.url)};return(o,p)=>{var L,$,S,D,M,z,O,j,a,x,T,R,Z,X,G,J,K,Q,Y,ee,te,oe,le,ne,re,ae,se,ce,ie;return e.openBlock(),e.createElementBlock("aside",{ref_key:"rootElement",ref:b,class:e.normalizeClass(["oneb-sidebar pt-[56px] p-2 cont max-w-[270px] flex flex-col",f.value]),style:e.normalizeStyle(r.value),onMouseenter:p[1]||(p[1]=m=>v(!0)),onMouseleave:p[2]||(p[2]=m=>v(!1))},[e.withDirectives(e.createElementVNode("div",{class:"overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 pt-2 flex-grow",ref_key:"menu",ref:g},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,m=>(e.openBlock(),e.createBlock(Ue,{key:m.label,labelTop:m.labelTop,isMobile:o.isMobile,subItems:m.subItems,open:m.open,icon:m.icon,label:m.label,route:m.route,href:m.href,slim:n.value,"route-name":m.routeName,exact:m.exact||!1,onUpdateCollapsed:p[0]||(p[0]=q=>l("update-collapsed"))},null,8,["labelTop","isMobile","subItems","open","icon","label","route","href","slim","route-name","exact"]))),128))],512),[[e.vShow,V.value]]),e.withDirectives(e.createElementVNode("div",Ke,[e.createElementVNode("div",{class:e.normalizeClass([n.value?"hidden":"w-full hidden md:flex-col md:flex px-2"])},[(L=o.app)!=null&&L.offerPlan?(e.openBlock(),e.createElementBlock("a",{key:0,href:($=o.app)==null?void 0:$.offerPlan.url,class:"w-full min-w-[220px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-3 block",target:"_blank",rel:"noopener noreferrer"},[e.createElementVNode("div",Ye,[e.createElementVNode("div",e1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((S=o.app)==null?void 0:S.offerPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("p",t1,[e.createElementVNode("strong",null,e.toDisplayString((D=o.app)==null?void 0:D.offerPlan.title),1),e.createTextVNode(" «"+e.toDisplayString((M=o.app)==null?void 0:M.offerPlan.name)+"» ",1),p[3]||(p[3]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(e.toDisplayString((z=o.app)==null?void 0:z.offerPlan.title1),1)])])],8,Qe)):e.createCommentVNode("",!0),(O=o.app)!=null&&O.selectedPlan&&((j=o.app)!=null&&j.selectedPlan.name)?(e.openBlock(),e.createElementBlock("div",o1,[e.createElementVNode("div",l1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((a=o.app)==null?void 0:a.selectedPlan.icon),{class:"w-[16px] h-[16px]"}))]),e.createElementVNode("div",n1,[e.createElementVNode("p",null,e.toDisplayString(((x=o.app)==null?void 0:x.selectedPlan.name)||""),1),e.createElementVNode("p",null,e.toDisplayString(((T=o.app)==null?void 0:T.selectedPlan.title)||""),1)])]),e.createElementVNode("div",null,[e.createVNode(W._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",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:(Z=o.app)==null?void 0:Z.terms.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",a1,[e.createElementVNode("div",s1,[e.createElementVNode("span",c1,e.toDisplayString(((X=o.app)==null?void 0:X.terms.label)||"Terms"),1)])])],8,r1)):e.createCommentVNode("",!0),(G=o.app)!=null&&G.offer?(e.openBlock(),e.createElementBlock("a",{key:3,href:(J=o.app)==null?void 0:J.offer.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",d1,[e.createElementVNode("div",p1,[e.createElementVNode("span",m1,e.toDisplayString(((K=o.app)==null?void 0:K.offer.label)||"Offert"),1)])])],8,i1)):e.createCommentVNode("",!0),(Y=(Q=o.app)==null?void 0:Q.availableLang)!=null&&Y.length?(e.openBlock(),e.createElementBlock("div",u1,[e.createElementVNode("div",{class:"select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",onClick:H},[e.createVNode(e.unref(xe),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((ee=y.value)==null?void 0:ee.name)+" ",1),e.createElementVNode("span",h1,e.toDisplayString(w.value?"▲":"▼"),1)]),w.value?(e.openBlock(),e.createElementBlock("div",C1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=o.app)==null?void 0:te.availableLang,m=>{var q,de;return e.openBlock(),e.createElementBlock("div",{key:m.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":m.id!==((q=y.value)==null?void 0:q.id),"text-gray-300":m.id===((de=y.value)==null?void 0:de.id)}]),onClick:vt=>{var pe;return m.id!==((pe=y.value)==null?void 0:pe.id)&&F(m)}},e.toDisplayString(m.name),11,f1)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",v1)),e.createElementVNode("div",{class:e.normalizeClass([n.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",[n.value?"w-[44px] h-[44px]":"h-[44px]"]]),onClick:u},[o.news.menuLabel?(e.openBlock(),e.createElementBlock("div",k1,e.toDisplayString(o.news.menuLabel||"News"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",w1,[e.createElementVNode("div",y1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(he),{class:"w-[24px] h-[24px] mx-auto"}))]),h.value>0?(e.openBlock(),e.createElementBlock("span",x1)):e.createCommentVNode("",!0),h.value>0?(e.openBlock(),e.createElementBlock("span",b1)):e.createCommentVNode("",!0)])])],2)):e.createCommentVNode("",!0),(oe=o.app)!=null&&oe.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(ne=(le=o.app)==null?void 0:le.support)==null?void 0:ne.url,class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all",[n.value?"w-[44px] h-[44px]":"h-[44px]"]])},[(ae=(re=o.app)==null?void 0:re.support)!=null&&ae.label?(e.openBlock(),e.createElementBlock("div",B1,e.toDisplayString(((ce=(se=o.app)==null?void 0:se.support)==null?void 0:ce.label)||"Support"),1)):e.createCommentVNode("",!0),e.createElementVNode("div",V1,[e.createElementVNode("div",E1,[e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(ye)),{class:"w-[24px] h-[24px] mx-auto"}))])])])],10,g1)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[n.value?"hidden":"w-full"],"text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])},[p[4]||(p[4]=e.createElementVNode("span",null,"Powered by OneB",-1)),e.createElementVNode("span",null,e.toDisplayString((ie=o.app)==null?void 0:ie.version),1)],2)],512),[[e.vShow,V.value]])],38)}}});const Ce=U._export_sfc(_1,[["__scopeId","data-v-2d6a3745"]]),N1={class:"h-screen h-dvh relative"},L1={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)"}},$1={class:"p-2 flex-shrink-0"},S1={class:"w-10 h-10 flex items-center flex-shrink-0"},D1=["src"],M1={class:"whitespace-nowrap font-semibold text-xl"},z1={class:"text-xs whitespace-nowrap"},O1={class:"w-full"},j1={class:"w-full flex justify-end pr-3"},T1={class:"flex items-center space-x-1"},A1={key:0,class:"module-border-wrap flex justify-center items-center"},I1={class:"h-4 w-4"},H1={class:"ml-2 hidden sm:flex"},F1=["href"],P1={class:"flex h-full"},q1={class:"content transition-all pt-[56px]"},W1={key:0},U1={key:0,class:"sm:w-[560px] w-full relative h-full"},R1={class:"h-full relative"},Z1={class:"flex items-center p-3 space-x-1.5"},X1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},G1={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"},rt={class:"text-lg font-medium"},at={class:"text-sm text-gray-600"},st={key:0},ct=["src"],it={class:"text-sm whitespace-pre-wrap break-words"},dt={key:1},pt=["href"],mt={class:"text-sm flex items-center justify-between mt-1"},ut={class:"text-gray-800"},ht=["href"],Ct=e.defineComponent({__name:"OneMainLayout",props:ke,emits:["load-news","load-tariff","open-tariff"],setup(s,{emit:c}){const l=c,i=s;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 u=e.ref(h==="1");e.ref(!0),e.watch(u,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const d=e.ref(!1),C=()=>{d.value=!d.value,d.value&&l("load-news")},b=e.ref(window.innerWidth),f=()=>{b.value=window.innerWidth},r=e.computed(()=>b.value<=768);e.onMounted(()=>{window.addEventListener("resize",f)}),e.onUnmounted(()=>{window.removeEventListener("resize",f)});const v=t=>{var n;(n=i.handlers)==null||n.onSetLang(t)};return(t,n)=>{var B,V,A,I,w,y,H,F,P,E,_,N,o,p,L,$,S,D,M,z,O,j;const g=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",N1,[e.createElementVNode("div",L1,[e.createElementVNode("div",$1,[e.createElementVNode("button",{onClick:n[0]||(n[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(we),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",S1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,D1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(g,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var a,x;return[e.createElementVNode("div",M1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",z1,e.toDisplayString((x=(a=t.app)==null?void 0:a.workspace)==null?void 0:x.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",O1,[e.createElementVNode("div",j1,[e.createElementVNode("div",T1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),t.improveTariff?(e.openBlock(),e.createElementBlock("div",A1,[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:n[1]||(n[1]=(...a)=>{var x,T;return((x=t.handlers)==null?void 0:x.onImproveTariff)&&((T=t.handlers)==null?void 0:T.onImproveTariff(...a))}),style:{"font-size":"10px"}},[e.createElementVNode("div",I1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((B=t.improveTariff)==null?void 0:B.icon),{class:"h-4 w-4 mx-auto"}))]),e.createElementVNode("span",H1,e.toDisplayString((V=t.improveTariff)==null?void 0:V.label),1)])])):e.createCommentVNode("",!0),(I=(A=t.app)==null?void 0:A.help)!=null&&I.url?(e.openBlock(),e.createElementBlock("a",{key:1,href:(y=(w=t.app)==null?void 0:w.help)==null?void 0:y.url,target:"_blank",title:"Help",class:"p-1 rounded-md hover:bg-secondary-10 flex-shrink-0 hidden w-[44px] h-[44px] sm:flex items-center justify-center hover:text-blue-600"},[e.createVNode(e.unref(be),{class:"text-secondary-base w-full p-1 hover:text-blue-600"})],8,F1)):e.createCommentVNode("",!0),((H=t.handlers)==null?void 0:H.onBrowse)!=null?(e.openBlock(),e.createBlock(k.OneBrowserMenu,{key:2,workspace:(F=t.app)==null?void 0:F.workspace,apps:((P=t.app)==null?void 0:P.apps)||[],"change-label":((E=t.labels)==null?void 0:E.change)||"Change","apps-title":((_=t.labels)==null?void 0:_.apps)||"Apps","on-app":(N=t.handlers)==null?void 0:N.onApp,"on-change":(o=t.handlers)==null?void 0:o.onChange,onOpen:(p=t.handlers)==null?void 0:p.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(k._sfc_main$2,{user:t.user,app:t.app,"account-label":((L=t.labels)==null?void 0:L.account)||"Account","logout-label":(($=t.labels)==null?void 0:$.logout)||"Logout","version-label":((S=t.labels)==null?void 0:S.version)||"","on-account":(D=t.handlers)==null?void 0:D.onAccount,"on-logout":(M=t.handlers)==null?void 0:M.onLogout},null,8,["user","app","account-label","logout-label","version-label","on-account","on-logout"])])])])]),e.createElementVNode("div",P1,[!r.value||!u.value?(e.openBlock(),e.createBlock(Ce,{key:0,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,news:t.news,isMobile:r.value,modelValue:u.value,"onUpdate:modelValue":n[2]||(n[2]=a=>u.value=a),onShowNews:C,onSelectLanguage:v,onUpdateCollapsed:n[3]||(n[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?"":"hidden lg:block"],"body scroll-body w-full overflow-y-auto"])},[e.createElementVNode("div",q1,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],2)]),t.news?(e.openBlock(),e.createElementBlock("div",W1,[d.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:n[4]||(n[4]=e.withModifiers(a=>d.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",[d.value?"sm:w-[560px] w-full":"w-0"]])},[d.value?(e.openBlock(),e.createElementBlock("div",U1,[e.createElementVNode("div",R1,[e.createElementVNode("div",Z1,[e.createVNode(he,{class:"w-10 h-10"}),n[6]||(n[6]=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),e.createElementVNode("div",null,[e.createVNode(W._sfc_main,{variant:"touch",icon:e.unref(fe.render),onClick:n[5]||(n[5]=a=>d.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",X1,[t.news.isLoading&&((z=t.news.items)==null?void 0:z.length)===0?(e.openBlock(),e.createElementBlock("div",G1,[e.createVNode(W.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)])):((j=t.news.items)==null?void 0:j.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",rt,e.toDisplayString(a.title),1),e.createElementVNode("div",at,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,ct)])):e.createCommentVNode("",!0),e.createElementVNode("div",it,e.toDisplayString(a.body),1),a.video_url?(e.openBlock(),e.createElementBlock("div",dt,[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,pt)])):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,ht)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});const ft=U._export_sfc(Ct,[["__scopeId","data-v-c497bf7d"]]);exports.OneMainLayout=ft;exports.OneSidebar=Ce;
@@ -1,10 +1,10 @@
1
- import { openBlock as t, createElementBlock as s, createElementVNode as e, defineComponent as a1, computed as S, ref as L, resolveComponent as O1, Fragment as G, toDisplayString as p, createCommentVNode as n, normalizeClass as x, createBlock as C, resolveDynamicComponent as _, unref as b, withModifiers as e1, withCtx as n1, renderList as t1, watch as r1, onMounted as j1, onBeforeUnmount as I1, watchEffect as A1, shallowRef as H1, normalizeStyle as P1, withDirectives as S1, vShow as M1, createVNode as O, createTextVNode as F1, onUnmounted as N1, renderSlot as B1 } from "vue";
2
- import { r as l1, c as o1, d as W1, O as q1, b as U1 } from "../OneBrowserMenu-8cf71483.js";
3
- import { _ as i1 } from "../_plugin-vue_export-helper-dad06003.js";
4
- import { _ as T1, S as R1 } from "../index-ab76dea6.js";
5
- import { r as Z1 } from "../XMarkIcon-51ef0691.js";
1
+ import { openBlock as t, createElementBlock as s, createElementVNode as e, defineComponent as r1, computed as S, ref as L, resolveComponent as T1, Fragment as G, toDisplayString as p, createCommentVNode as n, normalizeClass as x, createBlock as C, resolveDynamicComponent as _, unref as b, withModifiers as e1, withCtx as a1, renderList as t1, watch as i1, onMounted as A1, onBeforeUnmount as F1, watchEffect as I1, shallowRef as N1, normalizeStyle as W1, withDirectives as V1, vShow as O1, createTextVNode as l1, createVNode as O, onUnmounted as q1, renderSlot as j1 } from "vue";
2
+ import { r as o1, c as n1, d as U1, O as R1, b as Z1 } from "../OneBrowserMenu-8cf71483.js";
3
+ import { _ as d1 } from "../_plugin-vue_export-helper-dad06003.js";
4
+ import { _ as E1, S as D1 } from "../index-ab76dea6.js";
5
+ import { r as G1 } from "../XMarkIcon-51ef0691.js";
6
6
  import "../common/index.js";
7
- const z1 = {
7
+ const H1 = {
8
8
  items: {
9
9
  required: !0,
10
10
  type: Array
@@ -28,7 +28,7 @@ const z1 = {
28
28
  news: {
29
29
  type: Object
30
30
  }
31
- }, D1 = {
31
+ }, J1 = {
32
32
  route: {
33
33
  required: !1,
34
34
  type: [Object, String]
@@ -84,8 +84,8 @@ const z1 = {
84
84
  required: !1
85
85
  // Не обов'язковий, бо може бути відсутнім
86
86
  }
87
- }, G1 = {
88
- sidebarItems: z1.items,
87
+ }, K1 = {
88
+ sidebarItems: H1.items,
89
89
  logoSrc: {
90
90
  type: String
91
91
  },
@@ -124,7 +124,7 @@ const z1 = {
124
124
  type: Object
125
125
  }
126
126
  };
127
- function J1(u, c) {
127
+ function Q1(u, c) {
128
128
  return t(), s("svg", {
129
129
  xmlns: "http://www.w3.org/2000/svg",
130
130
  fill: "none",
@@ -140,7 +140,7 @@ function J1(u, c) {
140
140
  })
141
141
  ]);
142
142
  }
143
- function K1(u, c) {
143
+ function X1(u, c) {
144
144
  return t(), s("svg", {
145
145
  xmlns: "http://www.w3.org/2000/svg",
146
146
  fill: "none",
@@ -156,7 +156,7 @@ function K1(u, c) {
156
156
  })
157
157
  ]);
158
158
  }
159
- function Q1(u, c) {
159
+ function Y1(u, c) {
160
160
  return t(), s("svg", {
161
161
  xmlns: "http://www.w3.org/2000/svg",
162
162
  fill: "none",
@@ -172,7 +172,7 @@ function Q1(u, c) {
172
172
  })
173
173
  ]);
174
174
  }
175
- function X1(u, c) {
175
+ function ee(u, c) {
176
176
  return t(), s("svg", {
177
177
  xmlns: "http://www.w3.org/2000/svg",
178
178
  fill: "none",
@@ -188,85 +188,85 @@ function X1(u, c) {
188
188
  })
189
189
  ]);
190
190
  }
191
- const Y1 = {
191
+ const te = {
192
192
  key: 0,
193
193
  style: { "font-size": "10px" },
194
194
  class: "text-[#979CA9] uppercase px-2 pt-2 font-medium"
195
- }, ee = ["href"], te = { class: "flex flex-nowrap items-center w-full h-[24px]" }, se = {
195
+ }, se = ["href"], le = { class: "flex flex-nowrap items-center w-full h-[24px]" }, oe = {
196
196
  key: 0,
197
197
  class: "w-[44px] flex-shrink-0"
198
- }, le = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, oe = { class: "py-[8px] pl-0 pr-0" }, ne = { class: "flex flex-nowrap items-center w-full h-[24px]" }, ae = {
198
+ }, ne = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, ae = { class: "py-[8px] pl-0 pr-0" }, re = { class: "flex flex-nowrap items-center w-full h-[24px]" }, ie = {
199
199
  key: 0,
200
200
  class: "w-[44px] flex-shrink-0"
201
- }, re = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, ie = { class: "py-[8px] pl-0 pr-0" }, de = {
201
+ }, de = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, pe = { class: "py-[8px] pl-0 pr-0" }, ue = {
202
202
  key: 1,
203
203
  class: "p-3"
204
- }, pe = { class: "flex flex-nowrap items-center w-full h-[24px] mb-0.5" }, ue = {
204
+ }, ce = { class: "flex flex-nowrap items-center w-full h-[24px] mb-0.5" }, he = {
205
205
  key: 0,
206
206
  class: "w-[44px] flex-shrink-0"
207
- }, ce = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, he = { class: "py-[8px] pl-0 pr-0" }, fe = {
207
+ }, fe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, ve = { class: "py-[8px] pl-0 pr-0" }, me = {
208
208
  key: 1,
209
209
  class: "p-3"
210
- }, ve = ["href"], me = { class: "flex items-center justify-between min-w-full h-[24px]" }, Ce = { class: "text-xs" }, we = {
210
+ }, Ce = ["href"], we = { class: "flex items-center justify-between min-w-full h-[24px]" }, xe = { class: "text-xs" }, be = {
211
211
  key: 0,
212
212
  class: "pr-1"
213
- }, xe = { class: "text-xs" }, be = {
213
+ }, ye = { class: "text-xs" }, ge = {
214
214
  key: 0,
215
215
  class: "pr-3"
216
- }, ye = /* @__PURE__ */ a1({
216
+ }, _e = /* @__PURE__ */ r1({
217
217
  __name: "OneSidebarLink",
218
- props: D1,
218
+ props: J1,
219
219
  emits: ["update-collapsed"],
220
220
  setup(u, { emit: c }) {
221
- const a = u, h = c, y = S(() => a.href ?? !1), w = S(() => f(a)), f = (r) => r.route ? r.route : r.routeName ? { name: r.routeName } : "", g = L(a.open), j = () => {
221
+ const a = u, h = c, y = S(() => a.href ?? !1), w = S(() => f(a)), f = (i) => i.route ? i.route : i.routeName ? { name: i.routeName } : "", g = L(a.open), j = () => {
222
222
  g.value = !g.value;
223
- }, k = (r, $) => {
224
- a.subItems && a.subItems.length > 0 && !$ && (r.preventDefault(), j()), a.isMobile && h("update-collapsed");
223
+ }, k = (i, $) => {
224
+ a.subItems && a.subItems.length > 0 && !$ && (i.preventDefault(), j()), a.isMobile && h("update-collapsed");
225
225
  };
226
- return (r, $) => {
227
- const l = O1("RouterLink");
226
+ return (i, $) => {
227
+ const l = T1("RouterLink");
228
228
  return t(), s(G, null, [
229
- r.labelTop && !r.slim ? (t(), s("p", Y1, p(r.labelTop), 1)) : n("", !0),
229
+ i.labelTop && !i.slim ? (t(), s("p", te, p(i.labelTop), 1)) : n("", !0),
230
230
  y.value ? (t(), s("a", {
231
231
  key: 1,
232
232
  href: y.value,
233
- class: x(["flex items-center relative rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
233
+ class: x(["flex items-center relative rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [i.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
234
234
  onClick: k
235
235
  }, [
236
- e("div", te, [
237
- r.icon ? (t(), s("div", se, [
238
- (t(), C(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
236
+ e("div", le, [
237
+ i.icon ? (t(), s("div", oe, [
238
+ (t(), C(_(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
239
239
  ])) : n("", !0),
240
- e("div", le, [
241
- e("span", oe, p(r.label), 1)
240
+ e("div", ne, [
241
+ e("span", ae, p(i.label), 1)
242
242
  ]),
243
243
  a.subItems && a.subItems.length > 0 ? (t(), s("div", {
244
244
  key: 1,
245
- class: x(["ml-auto", [r.slim ? "hidden" : ""]])
245
+ class: x(["ml-auto", [i.slim ? "hidden" : ""]])
246
246
  }, [
247
- (t(), C(_(g.value ? b(l1) : b(o1)), { class: "w-[16px] h-[16px]" }))
247
+ (t(), C(_(g.value ? b(o1) : b(n1)), { class: "w-[16px] h-[16px]" }))
248
248
  ], 2)) : n("", !0)
249
249
  ])
250
- ], 10, ee)) : n("", !0),
250
+ ], 10, se)) : n("", !0),
251
251
  !y.value && w.value ? (t(), C(l, {
252
252
  key: 2,
253
253
  to: w.value,
254
- class: x(["relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
254
+ class: x(["relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [i.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
255
255
  "active-class": "bg-primary-10 !text-primary-base",
256
256
  "exact-active-class": "bg-primary-10 !text-primary-base",
257
- exact: r.exact,
257
+ exact: i.exact,
258
258
  onClick: e1(k, ["prevent"])
259
259
  }, {
260
- default: n1(() => [
261
- e("div", ne, [
262
- r.icon ? (t(), s("div", ae, [
263
- (t(), C(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
260
+ default: a1(() => [
261
+ e("div", re, [
262
+ i.icon ? (t(), s("div", ie, [
263
+ (t(), C(_(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
264
264
  ])) : n("", !0),
265
- e("div", re, [
266
- e("span", ie, p(r.label), 1)
265
+ e("div", de, [
266
+ e("span", pe, p(i.label), 1)
267
267
  ]),
268
- a.subItems && a.subItems.length > 0 && !r.slim ? (t(), s("div", de, [
269
- (t(), C(_(g.value ? b(l1) : b(o1)), { class: "w-[16px] h-[16px]" }))
268
+ a.subItems && a.subItems.length > 0 && !i.slim ? (t(), s("div", ue, [
269
+ (t(), C(_(g.value ? b(o1) : b(n1)), { class: "w-[16px] h-[16px]" }))
270
270
  ])) : n("", !0)
271
271
  ])
272
272
  ]),
@@ -275,57 +275,57 @@ const Y1 = {
275
275
  !y.value && !w.value ? (t(), s("span", {
276
276
  key: 3,
277
277
  onClick: e1(k, ["prevent"]),
278
- class: x([[r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"], "mb-0.5 relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"])
278
+ class: x([[i.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"], "mb-0.5 relative flex items-center cursor-pointer rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"])
279
279
  }, [
280
- e("div", pe, [
281
- r.icon ? (t(), s("div", ue, [
282
- (t(), C(_(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
280
+ e("div", ce, [
281
+ i.icon ? (t(), s("div", he, [
282
+ (t(), C(_(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
283
283
  ])) : n("", !0),
284
- e("div", ce, [
285
- e("span", he, p(r.label), 1)
284
+ e("div", fe, [
285
+ e("span", ve, p(i.label), 1)
286
286
  ]),
287
- a.subItems && a.subItems.length > 0 && !r.slim ? (t(), s("div", fe, [
288
- (t(), C(_(g.value ? b(l1) : b(o1)), { class: "w-[16px] h-[16px]" }))
287
+ a.subItems && a.subItems.length > 0 && !i.slim ? (t(), s("div", me, [
288
+ (t(), C(_(g.value ? b(o1) : b(n1)), { class: "w-[16px] h-[16px]" }))
289
289
  ])) : n("", !0)
290
290
  ])
291
291
  ], 2)) : n("", !0),
292
292
  g.value && a.subItems ? (t(), s("div", {
293
293
  key: 4,
294
- class: x([r.slim ? "hidden" : "pl-[36px] pr-3"])
294
+ class: x([i.slim ? "hidden" : "pl-[36px] pr-3"])
295
295
  }, [
296
296
  e("div", {
297
- class: x([(r.slim, "")])
297
+ class: x([(i.slim, "")])
298
298
  }, [
299
- (t(!0), s(G, null, t1(a.subItems, (i) => (t(), s("div", {
300
- key: i.label,
301
- class: x([(r.slim, "")])
299
+ (t(!0), s(G, null, t1(a.subItems, (r) => (t(), s("div", {
300
+ key: r.label,
301
+ class: x([(i.slim, "")])
302
302
  }, [
303
- i.href ? (t(), s("a", {
303
+ r.href ? (t(), s("a", {
304
304
  key: 0,
305
- href: i.href,
305
+ href: r.href,
306
306
  class: "flex items-center mb-0.5 rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
307
307
  }, [
308
- e("div", me, [
309
- e("span", Ce, p(i.label), 1),
310
- i.icon ? (t(), s("div", we, [
311
- (t(), C(_(i.icon), { class: "w-[15px] h-[15px] mx-auto" }))
308
+ e("div", we, [
309
+ e("span", xe, p(r.label), 1),
310
+ r.icon ? (t(), s("div", be, [
311
+ (t(), C(_(r.icon), { class: "w-[15px] h-[15px] mx-auto" }))
312
312
  ])) : n("", !0)
313
313
  ])
314
- ], 8, ve)) : (t(), C(l, {
314
+ ], 8, Ce)) : (t(), C(l, {
315
315
  key: 1,
316
- to: f(i),
317
- onClick: $[0] || ($[0] = e1((A) => {
318
- k(A, !0);
316
+ to: f(r),
317
+ onClick: $[0] || ($[0] = e1((z) => {
318
+ k(z, !0);
319
319
  }, ["prevent"])),
320
320
  class: "flex items-center rounded-lg p-2 text-sm font-medium hover:bg-primary-10-hover mb-0.5 hover:text-primary-base transition-all text-[#525B66]",
321
- exact: r.exact,
321
+ exact: i.exact,
322
322
  "active-class": "bg-primary-10 !text-primary-base",
323
323
  "exact-active-class": "bg-primary-10 !text-primary-base"
324
324
  }, {
325
- default: n1(() => [
326
- e("span", xe, p(i.label), 1),
327
- i.icon ? (t(), s("div", be, [
328
- (t(), C(_(i.icon), { class: "w-[20px] h-[20px] mx-auto" }))
325
+ default: a1(() => [
326
+ e("span", ye, p(r.label), 1),
327
+ r.icon ? (t(), s("div", ge, [
328
+ (t(), C(_(r.icon), { class: "w-[20px] h-[20px] mx-auto" }))
329
329
  ])) : n("", !0)
330
330
  ]),
331
331
  _: 2
@@ -336,15 +336,15 @@ const Y1 = {
336
336
  ], 64);
337
337
  };
338
338
  }
339
- }), ge = {}, _e = {
339
+ }), Le = {}, ke = {
340
340
  xmlns: "http://www.w3.org/2000/svg",
341
341
  width: "24",
342
342
  height: "24",
343
343
  viewBox: "0 0 24 24",
344
344
  fill: "none"
345
345
  };
346
- function Le(u, c) {
347
- return t(), s("svg", _e, c[0] || (c[0] = [
346
+ function $e(u, c) {
347
+ return t(), s("svg", ke, c[0] || (c[0] = [
348
348
  e("path", {
349
349
  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",
350
350
  fill: "currentColor"
@@ -361,12 +361,12 @@ function Le(u, c) {
361
361
  }, null, -1)
362
362
  ]));
363
363
  }
364
- const E1 = /* @__PURE__ */ i1(ge, [["render", Le]]), V1 = (u) => {
364
+ const P1 = /* @__PURE__ */ d1(Le, [["render", $e]]), z1 = (u) => {
365
365
  if (Array.isArray(u))
366
366
  return u.map(b);
367
367
  const c = b(u);
368
368
  return Array.isArray(c) ? c : [c];
369
- }, ke = (u, c) => {
369
+ }, Se = (u, c) => {
370
370
  let a;
371
371
  const h = (y) => {
372
372
  y.forEach((w) => {
@@ -381,24 +381,27 @@ const E1 = /* @__PURE__ */ i1(ge, [["render", Le]]), V1 = (u) => {
381
381
  }
382
382
  });
383
383
  };
384
- return r1(u, (y) => {
385
- a == null || a.disconnect(), h(V1(y));
386
- }), j1(() => {
387
- a = new ResizeObserver(c), h(V1(u));
388
- }), I1(() => a == null ? void 0 : a.disconnect()), a;
389
- }, $e = (u) => {
384
+ return i1(u, (y) => {
385
+ a == null || a.disconnect(), h(z1(y));
386
+ }), A1(() => {
387
+ a = new ResizeObserver(c), h(z1(u));
388
+ }), F1(() => a == null ? void 0 : a.disconnect()), a;
389
+ }, Me = (u) => {
390
390
  const c = L(null);
391
- return ke([u], () => {
391
+ return Se([u], () => {
392
392
  var a;
393
393
  c.value = ((a = u.value) == null ? void 0 : a.clientWidth) ?? null;
394
- }), A1(() => {
394
+ }), I1(() => {
395
395
  var a;
396
396
  c.value = ((a = u.value) == null ? void 0 : a.clientWidth) ?? null;
397
397
  }), c;
398
- }, Se = { class: "mt-auto shrink" }, Me = ["href"], Be = { class: "relative rounded-lg bg-[#FFF8E4] px-1 py-3" }, Ve = { class: "w-[44px] mx-auto" }, Oe = { class: "text-center text-xs pt-2" }, je = {
398
+ }, Be = { class: "mt-auto shrink" }, Ve = ["href"], Oe = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-3 px-3" }, je = { class: "" }, ze = {
399
+ class: "",
400
+ style: { "font-size": "10px" }
401
+ }, Te = {
399
402
  key: 1,
400
- class: "flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-full"
401
- }, Ae = { class: "flex items-center space-x-2 text-[#525B66]" }, Te = { class: "w-[24px] mx-auto" }, ze = { class: "text-sm" }, Ee = { class: "text-xs" }, Ie = ["href"], He = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Pe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Fe = { class: "py-[8px] pl-0 pr-[8px]" }, Ne = ["href"], We = { class: "flex flex-nowrap items-center w-max h-[24px]" }, qe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Ue = { class: "py-[8px] pl-0 pr-[8px]" }, Re = {
403
+ class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-3 w-full min-w-[220px] space-x-3 px-3"
404
+ }, Ae = { class: "flex items-center text-[#525B66] space-x-3" }, Ie = { style: { "font-size": "10px" } }, Ee = ["href"], He = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Pe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Fe = { class: "py-[8px] pl-0 pr-[8px]" }, Ne = ["href"], We = { class: "flex flex-nowrap items-center w-max h-[24px]" }, qe = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Ue = { class: "py-[8px] pl-0 pr-[8px]" }, Re = {
402
405
  key: 4,
403
406
  class: "custom-select ml-3 w-full relative pt-3"
404
407
  }, Ze = { class: "pl-2" }, De = {
@@ -407,37 +410,43 @@ const E1 = /* @__PURE__ */ i1(ge, [["render", Le]]), V1 = (u) => {
407
410
  }, Ge = ["onClick"], Je = {
408
411
  key: 0,
409
412
  class: "mt-3 h-0 border-t border-secondary-stroke mb-3"
410
- }, Ke = { class: "flex flex-nowrap items-center w-full h-[24px]" }, Qe = { class: "w-[44px] flex-shrink-0 relative" }, Xe = {
413
+ }, Ke = {
414
+ key: 0,
415
+ class: "tooltip-text"
416
+ }, Qe = { class: "flex flex-nowrap items-center w-full h-[24px]" }, Xe = { class: "w-[44px] flex-shrink-0 relative" }, Ye = {
411
417
  key: 0,
412
418
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
413
- }, Ye = {
419
+ }, e0 = {
414
420
  key: 1,
415
421
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
416
- }, e0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, t0 = { class: "py-[8px] pl-0 pr-[8px]" }, s0 = ["href"], l0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, o0 = { class: "w-[44px] flex-shrink-0 relative" }, n0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, a0 = { class: "py-[8px] pl-0 pr-[8px]" }, r0 = /* @__PURE__ */ a1({
422
+ }, t0 = ["href"], s0 = {
423
+ key: 0,
424
+ class: "tooltip-text"
425
+ }, l0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, o0 = { class: "w-[44px] flex-shrink-0 relative" }, n0 = /* @__PURE__ */ r1({
417
426
  __name: "OneSidebar",
418
- props: z1,
427
+ props: H1,
419
428
  emits: ["show-news", "show-tariff", "select-language", "update-collapsed", "update:modelValue"],
420
429
  setup(u, { emit: c }) {
421
- var E, I, H;
430
+ var I, E, H;
422
431
  const a = c, h = u, y = S(() => {
423
432
  var o;
424
433
  return ((o = h.news) == null ? void 0 : o.unseenCount) || 0;
425
434
  }), w = () => {
426
435
  a("show-news");
427
436
  }, f = L(!1), g = L(h.hoverable);
428
- r1(h, () => {
437
+ i1(h, () => {
429
438
  h.modelValue ? g.value = !0 : g.value = !1;
430
439
  }), h.modelValue && (g.value = !0);
431
- const j = H1(), k = S(() => l.value ? "" : "w-[260px]"), r = S(() => ""), $ = (o) => {
440
+ const j = N1(), k = S(() => l.value ? "" : "w-[260px]"), i = S(() => ""), $ = (o) => {
432
441
  f.value = g.value && o;
433
- }, l = S(() => g.value && !f.value), i = S(() => !!l.value), A = L(), T = $e(A), z = S(() => h.modelValue === !0 || T.value === null ? !0 : T.value > 0), J = L(), K = () => l.value ? h.minimizedWidth : h.width;
434
- A1(() => {
442
+ }, l = S(() => g.value && !f.value), r = S(() => !!l.value), z = L(), T = Me(z), A = S(() => h.modelValue === !0 || T.value === null ? !0 : T.value > 0), J = L(), K = () => l.value ? h.minimizedWidth : h.width;
443
+ I1(() => {
435
444
  const o = K();
436
445
  setTimeout(() => {
437
446
  J.value = o;
438
447
  });
439
448
  });
440
- const M = L(!1), B = L((E = h.app) != null && E.availableLang && ((I = h.app) == null ? void 0 : I.availableLang.length) > 0 ? (H = h.app) == null ? void 0 : H.availableLang.find((o) => {
449
+ const M = L(!1), B = L((I = h.app) != null && I.availableLang && ((E = h.app) == null ? void 0 : E.availableLang.length) > 0 ? (H = h.app) == null ? void 0 : H.availableLang.find((o) => {
441
450
  var v;
442
451
  return o.id == ((v = h.app) == null ? void 0 : v.lang);
443
452
  }) : null), Q = () => {
@@ -449,21 +458,21 @@ const E1 = /* @__PURE__ */ i1(ge, [["render", Le]]), V1 = (u) => {
449
458
  (v = (o = h.app) == null ? void 0 : o.selectedPlan) != null && v.url && (window.location.href = h.app.selectedPlan.url);
450
459
  };
451
460
  return (o, v) => {
452
- var P, F, N, W, q, U, R, Z, d, V, D, d1, p1, u1, c1, h1, f1, v1, m1, C1, w1, x1, b1, y1, g1, _1, L1;
461
+ var P, F, N, W, q, U, R, Z, d, V, D, p1, u1, c1, h1, f1, v1, m1, C1, w1, x1, b1, y1, g1, _1, L1, k1, $1, S1;
453
462
  return t(), s("aside", {
454
463
  ref_key: "rootElement",
455
464
  ref: j,
456
465
  class: x(["oneb-sidebar pt-[56px] p-2 cont max-w-[270px] flex flex-col", k.value]),
457
- style: P1(r.value),
466
+ style: W1(i.value),
458
467
  onMouseenter: v[1] || (v[1] = (m) => $(!0)),
459
468
  onMouseleave: v[2] || (v[2] = (m) => $(!1))
460
469
  }, [
461
- S1(e("div", {
470
+ V1(e("div", {
462
471
  class: "overflow-y-auto top-[56px] left-0 overflow-hidden lg:bg-transparent transition-all z-50 pt-2 flex-grow",
463
472
  ref_key: "menu",
464
- ref: A
473
+ ref: z
465
474
  }, [
466
- (t(!0), s(G, null, t1(o.items, (m) => (t(), C(ye, {
475
+ (t(!0), s(G, null, t1(o.items, (m) => (t(), C(_e, {
467
476
  key: m.label,
468
477
  labelTop: m.labelTop,
469
478
  isMobile: o.isMobile,
@@ -473,263 +482,263 @@ const E1 = /* @__PURE__ */ i1(ge, [["render", Le]]), V1 = (u) => {
473
482
  label: m.label,
474
483
  route: m.route,
475
484
  href: m.href,
476
- slim: i.value,
485
+ slim: r.value,
477
486
  "route-name": m.routeName,
478
487
  exact: m.exact || !1,
479
488
  onUpdateCollapsed: v[0] || (v[0] = (s1) => a("update-collapsed"))
480
489
  }, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "href", "slim", "route-name", "exact"]))), 128))
481
490
  ], 512), [
482
- [M1, z.value]
491
+ [O1, A.value]
483
492
  ]),
484
- S1(e("div", Se, [
493
+ V1(e("div", Be, [
485
494
  e("div", {
486
- class: x([i.value ? "hidden" : "w-full hidden md:flex-col md:flex px-2"])
495
+ class: x([r.value ? "hidden" : "w-full hidden md:flex-col md:flex px-2"])
487
496
  }, [
488
497
  (P = o.app) != null && P.offerPlan ? (t(), s("a", {
489
498
  key: 0,
490
499
  href: (F = o.app) == null ? void 0 : F.offerPlan.url,
491
- class: "relative w-full border rounded-lg p-[1px] bg-[#FFF8E4] mb-3 block",
500
+ class: "w-full min-w-[220px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-3 block",
492
501
  target: "_blank",
493
502
  rel: "noopener noreferrer"
494
503
  }, [
495
- v[3] || (v[3] = e("div", { class: "absolute inset-0 rounded-lg bg-gradient-to-r from-[#E1A508] via-red-500 to-[#E04040]" }, null, -1)),
496
- e("div", Be, [
497
- e("div", Ve, [
498
- (t(), C(_((N = o.app) == null ? void 0 : N.offerPlan.icon), { class: "w-[24px] h-[24px] mx-auto" }))
504
+ e("div", Oe, [
505
+ e("div", je, [
506
+ (t(), C(_((N = o.app) == null ? void 0 : N.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
499
507
  ]),
500
- e("p", Oe, p((W = o.app) == null ? void 0 : W.offerPlan.title) + " «" + p((q = o.app) == null ? void 0 : q.offerPlan.name) + "» " + p((U = o.app) == null ? void 0 : U.offerPlan.title1), 1)
508
+ e("p", ze, [
509
+ e("strong", null, p((W = o.app) == null ? void 0 : W.offerPlan.title), 1),
510
+ l1(" «" + p((q = o.app) == null ? void 0 : q.offerPlan.name) + "» ", 1),
511
+ v[3] || (v[3] = e("br", null, null, -1)),
512
+ l1(p((U = o.app) == null ? void 0 : U.offerPlan.title1), 1)
513
+ ])
501
514
  ])
502
- ], 8, Me)) : n("", !0),
503
- (R = o.app) != null && R.selectedPlan && ((Z = o.app) != null && Z.selectedPlan.name) ? (t(), s("div", je, [
515
+ ], 8, Ve)) : n("", !0),
516
+ (R = o.app) != null && R.selectedPlan && ((Z = o.app) != null && Z.selectedPlan.name) ? (t(), s("div", Te, [
504
517
  e("div", Ae, [
505
- e("div", Te, [
506
- (t(), C(_((d = o.app) == null ? void 0 : d.selectedPlan.icon), { class: "w-[24px] h-[24px]" }))
507
- ]),
508
518
  e("div", null, [
509
- e("p", ze, p(((V = o.app) == null ? void 0 : V.selectedPlan.name) || ""), 1),
510
- e("p", Ee, p(((D = o.app) == null ? void 0 : D.selectedPlan.title) || ""), 1)
519
+ (t(), C(_((d = o.app) == null ? void 0 : d.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
520
+ ]),
521
+ e("div", Ie, [
522
+ e("p", null, p(((V = o.app) == null ? void 0 : V.selectedPlan.name) || ""), 1),
523
+ e("p", null, p(((D = o.app) == null ? void 0 : D.selectedPlan.title) || ""), 1)
511
524
  ])
512
525
  ]),
513
526
  e("div", null, [
514
- O(T1, {
527
+ O(E1, {
515
528
  class: "text-[#525B66] hover:text-[#4089E0]",
516
529
  variant: "touch",
517
- icon: b(W1),
530
+ icon: b(U1),
518
531
  onClick: Y
519
532
  }, null, 8, ["icon"])
520
533
  ])
521
534
  ])) : n("", !0),
522
- (d1 = o.app) != null && d1.terms ? (t(), s("a", {
535
+ (p1 = o.app) != null && p1.terms ? (t(), s("a", {
523
536
  key: 2,
524
- href: (p1 = o.app) == null ? void 0 : p1.terms.url,
537
+ href: (u1 = o.app) == null ? void 0 : u1.terms.url,
525
538
  target: "_blank",
526
539
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"
527
540
  }, [
528
541
  e("div", He, [
529
542
  e("div", Pe, [
530
- e("span", Fe, p(((u1 = o.app) == null ? void 0 : u1.terms.label) || "Terms"), 1)
543
+ e("span", Fe, p(((c1 = o.app) == null ? void 0 : c1.terms.label) || "Terms"), 1)
531
544
  ])
532
545
  ])
533
- ], 8, Ie)) : n("", !0),
534
- (c1 = o.app) != null && c1.offer ? (t(), s("a", {
546
+ ], 8, Ee)) : n("", !0),
547
+ (h1 = o.app) != null && h1.offer ? (t(), s("a", {
535
548
  key: 3,
536
- href: (h1 = o.app) == null ? void 0 : h1.offer.url,
549
+ href: (f1 = o.app) == null ? void 0 : f1.offer.url,
537
550
  target: "_blank",
538
551
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
539
552
  }, [
540
553
  e("div", We, [
541
554
  e("div", qe, [
542
- e("span", Ue, p(((f1 = o.app) == null ? void 0 : f1.offer.label) || "Offert"), 1)
555
+ e("span", Ue, p(((v1 = o.app) == null ? void 0 : v1.offer.label) || "Offert"), 1)
543
556
  ])
544
557
  ])
545
558
  ], 8, Ne)) : n("", !0),
546
- (m1 = (v1 = o.app) == null ? void 0 : v1.availableLang) != null && m1.length ? (t(), s("div", Re, [
559
+ (C1 = (m1 = o.app) == null ? void 0 : m1.availableLang) != null && C1.length ? (t(), s("div", Re, [
547
560
  e("div", {
548
561
  class: "select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",
549
562
  onClick: Q
550
563
  }, [
551
- O(b(Q1), { class: "w-4" }),
552
- F1(" " + p((C1 = B.value) == null ? void 0 : C1.name) + " ", 1),
564
+ O(b(Y1), { class: "w-4" }),
565
+ l1(" " + p((w1 = B.value) == null ? void 0 : w1.name) + " ", 1),
553
566
  e("span", Ze, p(M.value ? "▲" : "▼"), 1)
554
567
  ]),
555
568
  M.value ? (t(), s("div", De, [
556
- (t(!0), s(G, null, t1((w1 = o.app) == null ? void 0 : w1.availableLang, (m) => {
557
- var s1, k1;
569
+ (t(!0), s(G, null, t1((x1 = o.app) == null ? void 0 : x1.availableLang, (m) => {
570
+ var s1, M1;
558
571
  return t(), s("div", {
559
572
  key: m.id,
560
- class: x(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": m.id !== ((s1 = B.value) == null ? void 0 : s1.id), "text-gray-300": m.id === ((k1 = B.value) == null ? void 0 : k1.id) }]),
561
- onClick: (Q0) => {
562
- var $1;
563
- return m.id !== (($1 = B.value) == null ? void 0 : $1.id) && X(m);
573
+ class: x(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": m.id !== ((s1 = B.value) == null ? void 0 : s1.id), "text-gray-300": m.id === ((M1 = B.value) == null ? void 0 : M1.id) }]),
574
+ onClick: (J0) => {
575
+ var B1;
576
+ return m.id !== ((B1 = B.value) == null ? void 0 : B1.id) && X(m);
564
577
  }
565
578
  }, p(m.name), 11, Ge);
566
579
  }), 128))
567
580
  ])) : n("", !0)
568
581
  ])) : n("", !0)
569
582
  ], 2),
570
- i.value ? n("", !0) : (t(), s("div", Je)),
583
+ r.value ? n("", !0) : (t(), s("div", Je)),
571
584
  e("div", {
572
- class: x(["flex", [(o.slim, "grid")]])
585
+ class: x([r.value ? "grid" : "flex space-x-2"])
573
586
  }, [
574
587
  o.news ? (t(), s("a", {
575
588
  key: 0,
576
589
  href: "#",
577
- class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [i.value ? "w-[44px] h-[44px]" : "w-full h-[44px]"]]),
590
+ class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [r.value ? "w-[44px] h-[44px]" : "h-[44px]"]]),
578
591
  onClick: w
579
592
  }, [
580
- e("div", Ke, [
581
- e("div", Qe, [
593
+ o.news.menuLabel ? (t(), s("div", Ke, p(o.news.menuLabel || "News"), 1)) : n("", !0),
594
+ e("div", Qe, [
595
+ e("div", Xe, [
582
596
  e("div", null, [
583
- (t(), C(_(E1), { class: "w-[24px] h-[24px] mx-auto" }))
597
+ (t(), C(_(P1), { class: "w-[24px] h-[24px] mx-auto" }))
584
598
  ]),
585
- y.value > 0 ? (t(), s("span", Xe)) : n("", !0),
586
- y.value > 0 ? (t(), s("span", Ye)) : n("", !0)
587
- ]),
588
- e("div", e0, [
589
- e("span", t0, p(o.news.menuLabel || "News"), 1)
599
+ y.value > 0 ? (t(), s("span", Ye)) : n("", !0),
600
+ y.value > 0 ? (t(), s("span", e0)) : n("", !0)
590
601
  ])
591
602
  ])
592
603
  ], 2)) : n("", !0),
593
- (x1 = o.app) != null && x1.support ? (t(), s("a", {
604
+ (b1 = o.app) != null && b1.support ? (t(), s("a", {
594
605
  key: 1,
595
- href: (y1 = (b1 = o.app) == null ? void 0 : b1.support) == null ? void 0 : y1.url,
596
- class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [i.value ? "w-[44px] h-[44px]" : "w-full h-[44px]"]])
606
+ href: (g1 = (y1 = o.app) == null ? void 0 : y1.support) == null ? void 0 : g1.url,
607
+ class: x(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [r.value ? "w-[44px] h-[44px]" : "h-[44px]"]])
597
608
  }, [
609
+ (L1 = (_1 = o.app) == null ? void 0 : _1.support) != null && L1.label ? (t(), s("div", s0, p((($1 = (k1 = o.app) == null ? void 0 : k1.support) == null ? void 0 : $1.label) || "Support"), 1)) : n("", !0),
598
610
  e("div", l0, [
599
611
  e("div", o0, [
600
612
  e("div", null, [
601
- (t(), C(_(b(K1)), { class: "w-[24px] h-[24px] mx-auto" }))
613
+ (t(), C(_(b(X1)), { class: "w-[24px] h-[24px] mx-auto" }))
602
614
  ])
603
- ]),
604
- e("div", n0, [
605
- e("span", a0, p(((_1 = (g1 = o.app) == null ? void 0 : g1.support) == null ? void 0 : _1.label) || "Support"), 1)
606
615
  ])
607
616
  ])
608
- ], 10, s0)) : n("", !0)
617
+ ], 10, t0)) : n("", !0)
609
618
  ], 2),
610
619
  e("p", {
611
- class: x([[i.value ? "hidden" : "w-full"], "text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])
620
+ class: x([[r.value ? "hidden" : "w-full"], "text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])
612
621
  }, [
613
622
  v[4] || (v[4] = e("span", null, "Powered by OneB", -1)),
614
- e("span", null, p((L1 = o.app) == null ? void 0 : L1.version), 1)
623
+ e("span", null, p((S1 = o.app) == null ? void 0 : S1.version), 1)
615
624
  ], 2)
616
625
  ], 512), [
617
- [M1, z.value]
626
+ [O1, A.value]
618
627
  ])
619
628
  ], 38);
620
629
  };
621
630
  }
622
631
  });
623
- const i0 = /* @__PURE__ */ i1(r0, [["__scopeId", "data-v-069bf58b"]]), d0 = { class: "h-screen h-dvh relative" }, p0 = {
632
+ const a0 = /* @__PURE__ */ d1(n0, [["__scopeId", "data-v-2d6a3745"]]), r0 = { class: "h-screen h-dvh relative" }, i0 = {
624
633
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
625
634
  style: { background: "rgba(245, 247, 251, 0.80)", "backdrop-filter": "blur(5px)" }
626
- }, u0 = { class: "p-2 flex-shrink-0" }, c0 = { class: "w-10 h-10 flex items-center flex-shrink-0" }, h0 = ["src"], f0 = { class: "whitespace-nowrap font-semibold text-xl" }, v0 = { class: "text-xs whitespace-nowrap" }, m0 = { class: "w-full" }, C0 = { class: "w-full flex justify-end pr-3" }, w0 = { class: "flex items-center space-x-1" }, x0 = {
635
+ }, d0 = { class: "p-2 flex-shrink-0" }, p0 = { class: "w-10 h-10 flex items-center flex-shrink-0" }, u0 = ["src"], c0 = { class: "whitespace-nowrap font-semibold text-xl" }, h0 = { class: "text-xs whitespace-nowrap" }, f0 = { class: "w-full" }, v0 = { class: "w-full flex justify-end pr-3" }, m0 = { class: "flex items-center space-x-1" }, C0 = {
627
636
  key: 0,
628
637
  class: "module-border-wrap flex justify-center items-center"
629
- }, b0 = { class: "h-4 w-4" }, y0 = { class: "ml-2 hidden sm:flex" }, g0 = ["href"], _0 = { class: "flex h-full" }, L0 = { class: "content transition-all pt-[56px]" }, k0 = { key: 0 }, $0 = {
638
+ }, w0 = { class: "h-4 w-4" }, x0 = { class: "ml-2 hidden sm:flex" }, b0 = ["href"], y0 = { class: "flex h-full" }, g0 = { class: "content transition-all pt-[56px]" }, _0 = { key: 0 }, L0 = {
630
639
  key: 0,
631
640
  class: "sm:w-[560px] w-full relative h-full"
632
- }, S0 = { class: "h-full relative" }, M0 = { class: "flex items-center p-3 space-x-1.5" }, B0 = {
641
+ }, k0 = { class: "h-full relative" }, $0 = { class: "flex items-center p-3 space-x-1.5" }, S0 = {
633
642
  class: "overflow-auto",
634
643
  style: { height: "calc(100% - 62px)" }
635
- }, V0 = {
644
+ }, M0 = {
636
645
  key: 0,
637
646
  class: "p-5"
638
- }, O0 = { key: 1 }, j0 = { class: "p-4 text-gray text-center" }, A0 = { key: 2 }, T0 = {
647
+ }, B0 = { key: 1 }, V0 = { class: "p-4 text-gray text-center" }, O0 = { key: 2 }, j0 = {
639
648
  class: "p-3 space-y-1.5 rounded-lg",
640
649
  style: { "box-shadow": "0 0 6px #eaeaea" }
641
- }, z0 = { key: 0 }, E0 = {
650
+ }, z0 = { key: 0 }, T0 = {
642
651
  key: 0,
643
652
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
644
- }, I0 = {
653
+ }, A0 = {
645
654
  key: 1,
646
655
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
647
- }, H0 = {
656
+ }, I0 = {
648
657
  key: 2,
649
658
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
650
- }, P0 = {
659
+ }, E0 = {
651
660
  key: 3,
652
661
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
653
- }, F0 = { class: "text-lg font-medium" }, N0 = { class: "text-sm text-gray-600" }, W0 = { key: 0 }, q0 = ["src"], U0 = { class: "text-sm whitespace-pre-wrap break-words" }, R0 = { key: 1 }, Z0 = ["href"], D0 = { class: "text-sm flex items-center justify-between mt-1" }, G0 = { class: "text-gray-800" }, J0 = ["href"], K0 = /* @__PURE__ */ a1({
662
+ }, H0 = { class: "text-lg font-medium" }, P0 = { class: "text-sm text-gray-600" }, F0 = { key: 0 }, N0 = ["src"], W0 = { class: "text-sm whitespace-pre-wrap break-words" }, q0 = { key: 1 }, U0 = ["href"], R0 = { class: "text-sm flex items-center justify-between mt-1" }, Z0 = { class: "text-gray-800" }, D0 = ["href"], G0 = /* @__PURE__ */ r1({
654
663
  __name: "OneMainLayout",
655
- props: G1,
664
+ props: K1,
656
665
  emits: ["load-news", "load-tariff", "open-tariff"],
657
666
  setup(u, { emit: c }) {
658
667
  const a = c, h = u;
659
668
  let y = window.localStorage.getItem("sidebar-slim");
660
669
  window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), y = "1");
661
670
  const w = L(y === "1");
662
- L(!0), r1(w, (l) => {
671
+ L(!0), i1(w, (l) => {
663
672
  window.localStorage.setItem("sidebar-slim", String(l ? 1 : 0));
664
673
  });
665
674
  const f = L(!1), g = () => {
666
675
  f.value = !f.value, f.value && a("load-news");
667
676
  }, j = L(window.innerWidth), k = () => {
668
677
  j.value = window.innerWidth;
669
- }, r = S(() => j.value <= 768);
670
- j1(() => {
678
+ }, i = S(() => j.value <= 768);
679
+ A1(() => {
671
680
  window.addEventListener("resize", k);
672
- }), N1(() => {
681
+ }), q1(() => {
673
682
  window.removeEventListener("resize", k);
674
683
  });
675
684
  const $ = (l) => {
676
- var i;
677
- (i = h.handlers) == null || i.onSetLang(l);
685
+ var r;
686
+ (r = h.handlers) == null || r.onSetLang(l);
678
687
  };
679
- return (l, i) => {
680
- var T, z, J, K, M, B, Q, X, Y, E, I, H, o, v, P, F, N, W, q, U, R, Z;
681
- const A = O1("RouterLink");
682
- return t(), s("div", d0, [
683
- e("div", p0, [
684
- e("div", u0, [
688
+ return (l, r) => {
689
+ var T, A, J, K, M, B, Q, X, Y, I, E, H, o, v, P, F, N, W, q, U, R, Z;
690
+ const z = T1("RouterLink");
691
+ return t(), s("div", r0, [
692
+ e("div", i0, [
693
+ e("div", d0, [
685
694
  e("button", {
686
- onClick: i[0] || (i[0] = (d) => w.value = !w.value),
695
+ onClick: r[0] || (r[0] = (d) => w.value = !w.value),
687
696
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
688
697
  }, [
689
- O(b(J1), { class: "w-[24px] h-[24px]" })
698
+ O(b(Q1), { class: "w-[24px] h-[24px]" })
690
699
  ])
691
700
  ]),
692
- e("div", c0, [
701
+ e("div", p0, [
693
702
  l.logoSrc != null ? (t(), s("img", {
694
703
  key: 0,
695
704
  src: l.logoSrc,
696
705
  class: "w-8 h-8 mx-auto",
697
706
  alt: "logo"
698
- }, null, 8, h0)) : n("", !0)
707
+ }, null, 8, u0)) : n("", !0)
699
708
  ]),
700
- l.app != null ? (t(), C(A, {
709
+ l.app != null ? (t(), C(z, {
701
710
  key: 0,
702
711
  to: "/",
703
712
  class: "pl-2 max-w-xs"
704
713
  }, {
705
- default: n1(() => {
714
+ default: a1(() => {
706
715
  var d, V;
707
716
  return [
708
- e("div", f0, p(l.app.name), 1),
709
- e("div", v0, p((V = (d = l.app) == null ? void 0 : d.workspace) == null ? void 0 : V.name), 1)
717
+ e("div", c0, p(l.app.name), 1),
718
+ e("div", h0, p((V = (d = l.app) == null ? void 0 : d.workspace) == null ? void 0 : V.name), 1)
710
719
  ];
711
720
  }),
712
721
  _: 1
713
722
  })) : n("", !0),
714
- e("div", m0, [
715
- e("div", C0, [
716
- e("div", w0, [
717
- B1(l.$slots, "before-header-menu", {}, void 0, !0),
718
- l.improveTariff ? (t(), s("div", x0, [
723
+ e("div", f0, [
724
+ e("div", v0, [
725
+ e("div", m0, [
726
+ j1(l.$slots, "before-header-menu", {}, void 0, !0),
727
+ l.improveTariff ? (t(), s("div", C0, [
719
728
  e("button", {
720
729
  type: "button",
721
730
  class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
722
- onClick: i[1] || (i[1] = //@ts-ignore
731
+ onClick: r[1] || (r[1] = //@ts-ignore
723
732
  (...d) => {
724
733
  var V, D;
725
734
  return ((V = l.handlers) == null ? void 0 : V.onImproveTariff) && ((D = l.handlers) == null ? void 0 : D.onImproveTariff(...d));
726
735
  }),
727
736
  style: { "font-size": "10px" }
728
737
  }, [
729
- e("div", b0, [
738
+ e("div", w0, [
730
739
  (t(), C(_((T = l.improveTariff) == null ? void 0 : T.icon), { class: "h-4 w-4 mx-auto" }))
731
740
  ]),
732
- e("span", y0, p((z = l.improveTariff) == null ? void 0 : z.label), 1)
741
+ e("span", x0, p((A = l.improveTariff) == null ? void 0 : A.label), 1)
733
742
  ])
734
743
  ])) : n("", !0),
735
744
  (K = (J = l.app) == null ? void 0 : J.help) != null && K.url ? (t(), s("a", {
@@ -739,19 +748,19 @@ const i0 = /* @__PURE__ */ i1(r0, [["__scopeId", "data-v-069bf58b"]]), d0 = { cl
739
748
  title: "Help",
740
749
  class: "p-1 rounded-md hover:bg-secondary-10 flex-shrink-0 hidden w-[44px] h-[44px] sm:flex items-center justify-center hover:text-blue-600"
741
750
  }, [
742
- O(b(X1), { class: "text-secondary-base w-full p-1 hover:text-blue-600" })
743
- ], 8, g0)) : n("", !0),
744
- ((Q = l.handlers) == null ? void 0 : Q.onBrowse) != null ? (t(), C(q1, {
751
+ O(b(ee), { class: "text-secondary-base w-full p-1 hover:text-blue-600" })
752
+ ], 8, b0)) : n("", !0),
753
+ ((Q = l.handlers) == null ? void 0 : Q.onBrowse) != null ? (t(), C(R1, {
745
754
  key: 2,
746
755
  workspace: (X = l.app) == null ? void 0 : X.workspace,
747
756
  apps: ((Y = l.app) == null ? void 0 : Y.apps) || [],
748
- "change-label": ((E = l.labels) == null ? void 0 : E.change) || "Change",
749
- "apps-title": ((I = l.labels) == null ? void 0 : I.apps) || "Apps",
757
+ "change-label": ((I = l.labels) == null ? void 0 : I.change) || "Change",
758
+ "apps-title": ((E = l.labels) == null ? void 0 : E.apps) || "Apps",
750
759
  "on-app": (H = l.handlers) == null ? void 0 : H.onApp,
751
760
  "on-change": (o = l.handlers) == null ? void 0 : o.onChange,
752
761
  onOpen: (v = l.handlers) == null ? void 0 : v.onBrowse
753
762
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : n("", !0),
754
- O(U1, {
763
+ O(Z1, {
755
764
  user: l.user,
756
765
  app: l.app,
757
766
  "account-label": ((P = l.labels) == null ? void 0 : P.account) || "Account",
@@ -764,91 +773,91 @@ const i0 = /* @__PURE__ */ i1(r0, [["__scopeId", "data-v-069bf58b"]]), d0 = { cl
764
773
  ])
765
774
  ])
766
775
  ]),
767
- e("div", _0, [
768
- !r.value || !w.value ? (t(), C(i0, {
776
+ e("div", y0, [
777
+ !i.value || !w.value ? (t(), C(a0, {
769
778
  key: 0,
770
779
  app: l.app,
771
780
  items: l.sidebarItems,
772
781
  "with-news": l.news != null,
773
782
  news: l.news,
774
- isMobile: r.value,
783
+ isMobile: i.value,
775
784
  modelValue: w.value,
776
- "onUpdate:modelValue": i[2] || (i[2] = (d) => w.value = d),
785
+ "onUpdate:modelValue": r[2] || (r[2] = (d) => w.value = d),
777
786
  onShowNews: g,
778
787
  onSelectLanguage: $,
779
- onUpdateCollapsed: i[3] || (i[3] = (d) => w.value = !w.value)
788
+ onUpdateCollapsed: r[3] || (r[3] = (d) => w.value = !w.value)
780
789
  }, null, 8, ["app", "items", "with-news", "news", "isMobile", "modelValue"])) : n("", !0),
781
790
  e("div", {
782
791
  class: x([[w.value ? "" : "hidden lg:block"], "body scroll-body w-full overflow-y-auto"])
783
792
  }, [
784
- e("div", L0, [
785
- B1(l.$slots, "default", {}, void 0, !0)
793
+ e("div", g0, [
794
+ j1(l.$slots, "default", {}, void 0, !0)
786
795
  ])
787
796
  ], 2)
788
797
  ]),
789
- l.news ? (t(), s("div", k0, [
798
+ l.news ? (t(), s("div", _0, [
790
799
  f.value ? (t(), s("div", {
791
800
  key: 0,
792
801
  class: "fixed top-0 left-0 h-screen h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
793
- onClick: i[4] || (i[4] = e1((d) => f.value = !1, ["self"]))
802
+ onClick: r[4] || (r[4] = e1((d) => f.value = !1, ["self"]))
794
803
  })) : n("", !0),
795
804
  e("div", {
796
805
  class: x(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [f.value ? "sm:w-[560px] w-full" : "w-0"]])
797
806
  }, [
798
- f.value ? (t(), s("div", $0, [
799
- e("div", S0, [
800
- e("div", M0, [
801
- O(E1, { class: "w-10 h-10" }),
802
- i[6] || (i[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
807
+ f.value ? (t(), s("div", L0, [
808
+ e("div", k0, [
809
+ e("div", $0, [
810
+ O(P1, { class: "w-10 h-10" }),
811
+ r[6] || (r[6] = e("div", { class: "w-full font-medium" }, "OneB News", -1)),
803
812
  e("div", null, [
804
- O(T1, {
813
+ O(E1, {
805
814
  variant: "touch",
806
- icon: b(Z1),
807
- onClick: i[5] || (i[5] = (d) => f.value = !1)
815
+ icon: b(G1),
816
+ onClick: r[5] || (r[5] = (d) => f.value = !1)
808
817
  }, null, 8, ["icon"])
809
818
  ])
810
819
  ]),
811
- e("div", B0, [
812
- l.news.isLoading && ((U = l.news.items) == null ? void 0 : U.length) === 0 ? (t(), s("div", V0, [
813
- O(R1, { class: "w-6 h-6 text-gray-600 mx-auto" })
814
- ])) : ((R = l.news.items) == null ? void 0 : R.length) === 0 ? (t(), s("div", O0, [
815
- e("div", j0, p(l.news.emptyText), 1)
816
- ])) : ((Z = l.news.items) == null ? void 0 : Z.length) > 0 ? (t(), s("div", A0, [
820
+ e("div", S0, [
821
+ l.news.isLoading && ((U = l.news.items) == null ? void 0 : U.length) === 0 ? (t(), s("div", M0, [
822
+ O(D1, { class: "w-6 h-6 text-gray-600 mx-auto" })
823
+ ])) : ((R = l.news.items) == null ? void 0 : R.length) === 0 ? (t(), s("div", B0, [
824
+ e("div", V0, p(l.news.emptyText), 1)
825
+ ])) : ((Z = l.news.items) == null ? void 0 : Z.length) > 0 ? (t(), s("div", O0, [
817
826
  (t(!0), s(G, null, t1(l.news.items, (d) => (t(), s("div", {
818
827
  key: d.id,
819
828
  class: "p-3"
820
829
  }, [
821
- e("div", T0, [
830
+ e("div", j0, [
822
831
  e("div", null, [
823
832
  d.type ? (t(), s("div", z0, [
824
- d.type === 10 ? (t(), s("span", E0, "update")) : d.type === 11 ? (t(), s("span", I0, "warning")) : d.type === 12 ? (t(), s("span", H0, "notice")) : d.type === 13 ? (t(), s("span", P0, "ads")) : n("", !0)
833
+ d.type === 10 ? (t(), s("span", T0, "update")) : d.type === 11 ? (t(), s("span", A0, "warning")) : d.type === 12 ? (t(), s("span", I0, "notice")) : d.type === 13 ? (t(), s("span", E0, "ads")) : n("", !0)
825
834
  ])) : n("", !0),
826
- e("div", F0, p(d.title), 1),
827
- e("div", N0, p(d.summary), 1)
835
+ e("div", H0, p(d.title), 1),
836
+ e("div", P0, p(d.summary), 1)
828
837
  ]),
829
- d.image_url ? (t(), s("div", W0, [
838
+ d.image_url ? (t(), s("div", F0, [
830
839
  e("img", {
831
840
  src: d.image_url,
832
841
  alt: "",
833
842
  class: "w-full rounded-md"
834
- }, null, 8, q0)
843
+ }, null, 8, N0)
835
844
  ])) : n("", !0),
836
- e("div", U0, p(d.body), 1),
837
- d.video_url ? (t(), s("div", R0, [
845
+ e("div", W0, p(d.body), 1),
846
+ d.video_url ? (t(), s("div", q0, [
838
847
  e("a", {
839
848
  href: d.video_url,
840
849
  target: "_blank",
841
850
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
842
- }, p(l.news.openVideoText), 9, Z0)
851
+ }, p(l.news.openVideoText), 9, U0)
843
852
  ])) : n("", !0),
844
- e("div", D0, [
845
- e("span", G0, p(d.published), 1),
853
+ e("div", R0, [
854
+ e("span", Z0, p(d.published), 1),
846
855
  d.post_url ? (t(), s("a", {
847
856
  key: 0,
848
857
  href: d.post_url,
849
858
  target: "_blank",
850
859
  class: "text-blue-600 hover:text-blue-700 block"
851
- }, p(l.news.moreText), 9, J0)) : n("", !0)
860
+ }, p(l.news.moreText), 9, D0)) : n("", !0)
852
861
  ])
853
862
  ])
854
863
  ]))), 128))
@@ -862,8 +871,8 @@ const i0 = /* @__PURE__ */ i1(r0, [["__scopeId", "data-v-069bf58b"]]), d0 = { cl
862
871
  };
863
872
  }
864
873
  });
865
- const o9 = /* @__PURE__ */ i1(K0, [["__scopeId", "data-v-c497bf7d"]]);
874
+ const s9 = /* @__PURE__ */ d1(G0, [["__scopeId", "data-v-c497bf7d"]]);
866
875
  export {
867
- o9 as OneMainLayout,
868
- i0 as OneSidebar
876
+ s9 as OneMainLayout,
877
+ a0 as OneSidebar
869
878
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .text9[data-v-4936d4e4]{font-size:9px}.h-browser[data-v-4936d4e4]{height:calc(100% - 75px)}.dropdown[data-v-069bf58b]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.tooltip[data-v-069bf58b]{position:relative}.tooltip-text[data-v-069bf58b]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-069bf58b]{visibility:visible;opacity:1}.cont[data-v-069bf58b]{flex-direction:column;height:100vh;height:100dvh;justify-content:space-between}.overflow-y-auto[data-v-069bf58b]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-069bf58b]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-069bf58b]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-069bf58b]::-webkit-scrollbar-thumb:hover{background-color:#555}.scroll-body[data-v-c497bf7d]{height:100dvh}.module-border-wrap[data-v-c497bf7d]{border-radius:14px;position:relative;background:linear-gradient(to right,#e1a508,#e04040);padding:1px}.overflow-y-auto[data-v-c497bf7d]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-c497bf7d]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-c497bf7d]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-c497bf7d]::-webkit-scrollbar-thumb:hover{background-color:#555}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
1
+ .text9[data-v-4936d4e4]{font-size:9px}.h-browser[data-v-4936d4e4]{height:calc(100% - 75px)}.dropdown[data-v-2d6a3745]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.tooltip[data-v-2d6a3745]{position:relative}.tooltip-text[data-v-2d6a3745]{visibility:hidden;background-color:#000;color:#fff;text-align:center;padding:5px;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translate(-50%);opacity:0;transition:opacity .3s}.tooltip:hover .tooltip-text[data-v-2d6a3745]{visibility:visible;opacity:1}.cont[data-v-2d6a3745]{flex-direction:column;height:100vh;height:100dvh;justify-content:space-between}.overflow-y-auto[data-v-2d6a3745]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-2d6a3745]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-2d6a3745]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-2d6a3745]::-webkit-scrollbar-thumb:hover{background-color:#555}.border-gradient[data-v-2d6a3745]{position:relative;background:linear-gradient(to right,#E1A508,#E04040);border-radius:9px}.scroll-body[data-v-c497bf7d]{height:100dvh}.module-border-wrap[data-v-c497bf7d]{border-radius:14px;position:relative;background:linear-gradient(to right,#e1a508,#e04040);padding:1px}.overflow-y-auto[data-v-c497bf7d]::-webkit-scrollbar{width:2px}.overflow-y-auto[data-v-c497bf7d]::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:10px}.overflow-y-auto[data-v-c497bf7d]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}.overflow-y-auto[data-v-c497bf7d]::-webkit-scrollbar-thumb:hover{background-color:#555}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneb/ui-vue",
3
- "version": "0.0.98",
3
+ "version": "0.0.100",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [