@oneb/ui-vue 0.0.84 → 0.0.86

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