@oneb/ui-vue 0.0.59 → 0.0.60

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,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),H=require("../_plugin-vue_export-helper-f246444f.cjs"),z=require("../OneBrowserMenu-6fadba06.cjs"),M=require("../index-e804f148.cjs"),K=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const R={items:{required:!0,type:Array},slim:{type:Boolean,default:!0},app:{type:Object},news:{type:Object}},X={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},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0}},G={sidebarItems:R.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}},J=["href"],Q={class:"flex flex-nowrap items-center w-full h-[24px]"},Y={key:0,class:"w-[44px] flex-shrink-0"},ee={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},te={class:"py-[8px] pl-0 pr-[8px]"},oe={class:"flex flex-nowrap items-center w-full h-[24px]"},le={key:0,class:"w-[44px] flex-shrink-0"},ne={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},se={class:"py-[8px] pl-0 pr-[8px]"},re=e.defineComponent({__name:"OneSidebarLink",props:X,setup(o){const a=o,m=e.computed(()=>a.href!=null?a.href:!1),d=e.computed(()=>a.route!=null?a.route:a.routeName!=null?{name:a.routeName}:"/");return(s,O)=>{const c=e.resolveComponent("RouterLink");return m.value?(e.openBlock(),e.createElementBlock("a",{key:0,href:m.value,class:e.normalizeClass(["flex items-center 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"]])},[e.createElementVNode("div",Q,[s.icon?(e.openBlock(),e.createElementBlock("div",Y,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",ee,[e.createElementVNode("span",te,e.toDisplayString(s.label),1)])])],10,J)):(e.openBlock(),e.createBlock(c,{key:1,to:d.value,class:e.normalizeClass(["flex items-center 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":s.exact?"":"bg-primary-10 !text-primary-base","exact-active-class":s.exact?"bg-primary-10 !text-primary-base":"",exact:s.exact},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[s.icon?(e.openBlock(),e.createElementBlock("div",le,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",ne,[e.createElementVNode("span",se,e.toDisplayString(s.label),1)])])]),_:1},8,["to","active-class","exact-active-class","exact","class"]))}}}),ae={},ce={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},ie=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),de=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),pe=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),me=[ie,de,pe];function ue(o,a){return e.openBlock(),e.createElementBlock("svg",ce,me)}const T=H._export_sfc(ae,[["render",ue]]);function Ce(o,a){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 he(o,a){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 W(o,a){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:"M15.362 5.214A8.252 8.252 0 0112 21 8.25 8.25 0 016.038 7.048 8.287 8.287 0 009 9.6a8.983 8.983 0 013.361-6.867 8.21 8.21 0 003 2.48z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18a3.75 3.75 0 00.495-7.467 5.99 5.99 0 00-1.925 3.546 5.974 5.974 0 01-2.133-1A3.75 3.75 0 0012 18z"})])}const fe=o=>(e.pushScopeId("data-v-57d3d3f4"),o=o(),e.popScopeId(),o),we={class:"h-full relative"},ke={class:"space-y-1 p-2 h-full relative"},ve={class:"absolute left-2 bottom-2 right-2"},xe={key:0,class:"ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[220px]"},_e={class:"flex items-center space-x-2 text-[#525B66]"},be={class:"text-sm"},ye={class:"text-xs"},ge=["href"],Le={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]"},Ee={class:"py-[8px] pl-0 pr-[8px]"},Be=["href"],Ne={class:"flex flex-nowrap items-center w-max h-[24px]"},Se={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},$e={class:"py-[8px] pl-0 pr-[8px]"},Oe={key:3,class:"custom-select ml-3 w-full relative pt-3"},De={class:"pl-2"},ze={key:0,class:"dropdown w-[220px] z-10 text-[#525B66]"},Me=["onClick"],je={key:0,class:"mt-3 text-slate-100 h-0 bg-slate-100 mb-3"},Ie={class:"flex flex-nowrap items-center w-full h-[24px]"},Ae={class:"w-[44px] flex-shrink-0 relative"},He={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},qe={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},Fe={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Pe={class:"py-[8px] pl-0 pr-[8px]"},Ze=["href"],Re={class:"flex flex-nowrap items-center w-full h-[24px]"},Te={class:"w-[44px] flex-shrink-0 relative"},We={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ue={class:"py-[8px] pl-0 pr-[8px]"},Ke=fe(()=>e.createElementVNode("span",null,"Powered by OneB",-1)),Xe=e.defineComponent({__name:"OneSidebar",props:R,emits:["show-news","show-tariff"],setup(o,{emit:a}){var D,t,p;const m=a,d=o,s=e.computed(()=>{var l;return((l=d.news)==null?void 0:l.unseenCount)||0}),O=()=>{m("show-news")},c=()=>{m("show-tariff")},u=e.ref(!1),i=e.ref((D=d.app)!=null&&D.availableLang&&((t=d.app)==null?void 0:t.availableLang.length)>0?(p=d.app)==null?void 0:p.availableLang[0]:null),j=()=>{u.value=!u.value},I=l=>{i.value=l,u.value=!1};return(l,A)=>{var h,f,w,k,v,x,_,b,y,g,L,V,E,B,N,S,$;return e.openBlock(),e.createElementBlock("div",we,[e.createElementVNode("div",ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,r=>(e.openBlock(),e.createBlock(re,{key:r.label,icon:r.icon,label:r.label,route:r.route,href:r.href,"route-name":r.routeName,exact:r.exact||!1,slim:l.slim},null,8,["icon","label","route","href","route-name","exact","slim"]))),128)),e.createElementVNode("div",ve,[e.createElementVNode("div",{class:e.normalizeClass([l.slim?"hidden":"w-max"])},[(h=l.app)!=null&&h.selectedPlan?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",_e,[e.createVNode(e.unref(W),{class:"w-[24px] h-[24px]"}),e.createElementVNode("div",null,[e.createElementVNode("p",be,e.toDisplayString(((f=l.app)==null?void 0:f.selectedPlan.name)||"Free"),1),e.createElementVNode("p",ye,e.toDisplayString(((w=l.app)==null?void 0:w.selectedPlan.title)||"Тарифний план"),1)])]),e.createElementVNode("div",null,[e.createVNode(M._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",variant:"touch",icon:e.unref(z.render),onClick:c},null,8,["icon"])])])):e.createCommentVNode("",!0),(k=l.app)!=null&&k.terms?(e.openBlock(),e.createElementBlock("a",{key:1,href:(v=l.app)==null?void 0:v.terms.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",Le,[e.createElementVNode("div",Ve,[e.createElementVNode("span",Ee,e.toDisplayString(((x=l.app)==null?void 0:x.terms.label)||"Terms"),1)])])],8,ge)):e.createCommentVNode("",!0),(_=l.app)!=null&&_.offer?(e.openBlock(),e.createElementBlock("a",{key:2,href:(b=l.app)==null?void 0:b.offer.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",Ne,[e.createElementVNode("div",Se,[e.createElementVNode("span",$e,e.toDisplayString(((y=l.app)==null?void 0:y.offer.label)||"Offert"),1)])])],8,Be)):e.createCommentVNode("",!0),(L=(g=l.app)==null?void 0:g.availableLang)!=null&&L.length?(e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",{class:"select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",onClick:j},[e.createVNode(e.unref(he),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((V=i.value)==null?void 0:V.label)+" ",1),e.createElementVNode("span",De,e.toDisplayString(u.value?"▲":"▼"),1)]),u.value?(e.openBlock(),e.createElementBlock("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=l.app)==null?void 0:E.availableLang,r=>{var n,C;return e.openBlock(),e.createElementBlock("div",{key:r.label,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":r.label!==((n=i.value)==null?void 0:n.label),"text-gray-300":r.label===((C=i.value)==null?void 0:C.label)}]),onClick:T1=>{var q;return r.label!==((q=i.value)==null?void 0:q.label)&&I(r)}},e.toDisplayString(r.label),11,Me)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),l.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("hr",je)),e.createElementVNode("div",{class:e.normalizeClass(["flex",[l.slim?" grid":"w-max"]])},[l.news?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all",[(l.slim,"w-[44px] h-[44px]")]]),onClick:O},[e.createElementVNode("div",Ie,[e.createElementVNode("div",Ae,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T),{class:"w-[24px] h-[24px] mx-auto"})),s.value>0?(e.openBlock(),e.createElementBlock("span",He)):e.createCommentVNode("",!0),s.value>0?(e.openBlock(),e.createElementBlock("span",qe)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Fe,[e.createElementVNode("span",Pe,e.toDisplayString(l.news.menuLabel||"News"),1)])])],2)):e.createCommentVNode("",!0),(B=l.app)!=null&&B.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(N=l.app)==null?void 0:N.support.url,target:"_blank",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all",[(l.slim,"w-[44px] h-[44px]")]])},[e.createElementVNode("div",Re,[e.createElementVNode("div",Te,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Ce)),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("div",We,[e.createElementVNode("span",Ue,e.toDisplayString(((S=l.app)==null?void 0:S.support.label)||"Support"),1)])])],10,Ze)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[l.slim?"hidden":"w-full"],"text8 pl-3 text-[#979CA9] flex justify-between font-extralight"])},[Ke,e.createElementVNode("span",null,e.toDisplayString(($=l.app)==null?void 0:$.version),1)],2)])])])}}});const U=H._export_sfc(Xe,[["__scopeId","data-v-57d3d3f4"]]);function Ge(o,a){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 Je(o,a){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"})])}/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),R=require("../_plugin-vue_export-helper-f246444f.cjs"),H=require("../OneBrowserMenu-6fadba06.cjs"),q=require("../index-e804f148.cjs"),X=require("../XMarkIcon-f94baa4c.cjs");require("../common/index.cjs");const T={items:{required:!0,type:Array},slim:{type:Boolean,default:!0},app:{type:Object},news:{type:Object}},G={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},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0}},J={sidebarItems:T.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}},Q=["href"],Y={class:"flex flex-nowrap items-center w-full h-[24px]"},ee={key:0,class:"w-[44px] flex-shrink-0"},te={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},oe={class:"py-[8px] pl-0 pr-[8px]"},le={class:"flex flex-nowrap items-center w-full h-[24px]"},ne={key:0,class:"w-[44px] flex-shrink-0"},se={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},re={class:"py-[8px] pl-0 pr-[8px]"},ae=e.defineComponent({__name:"OneSidebarLink",props:G,setup(o){const r=o,d=e.computed(()=>r.href!=null?r.href:!1),p=e.computed(()=>r.route!=null?r.route:r.routeName!=null?{name:r.routeName}:"/");return(n,i)=>{const h=e.resolveComponent("RouterLink");return d.value?(e.openBlock(),e.createElementBlock("a",{key:0,href:d.value,class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]])},[e.createElementVNode("div",Y,[n.icon?(e.openBlock(),e.createElementBlock("div",ee,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",te,[e.createElementVNode("span",oe,e.toDisplayString(n.label),1)])])],10,Q)):(e.openBlock(),e.createBlock(h,{key:1,to:p.value,class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":n.exact?"":"bg-primary-10 !text-primary-base","exact-active-class":n.exact?"bg-primary-10 !text-primary-base":"",exact:n.exact},{default:e.withCtx(()=>[e.createElementVNode("div",le,[n.icon?(e.openBlock(),e.createElementBlock("div",ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",se,[e.createElementVNode("span",re,e.toDisplayString(n.label),1)])])]),_:1},8,["to","active-class","exact-active-class","exact","class"]))}}}),ce={},ie={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},de=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),pe=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),me=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),ue=[de,pe,me];function Ce(o,r){return e.openBlock(),e.createElementBlock("svg",ie,ue)}const W=R._export_sfc(ce,[["render",Ce]]);function he(o,r){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 fe(o,r){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 U(o,r){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:"M15.362 5.214A8.252 8.252 0 0112 21 8.25 8.25 0 016.038 7.048 8.287 8.287 0 009 9.6a8.983 8.983 0 013.361-6.867 8.21 8.21 0 003 2.48z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 18a3.75 3.75 0 00.495-7.467 5.99 5.99 0 00-1.925 3.546 5.974 5.974 0 01-2.133-1A3.75 3.75 0 0012 18z"})])}const we=o=>(e.pushScopeId("data-v-4988837e"),o=o(),e.popScopeId(),o),ke={class:"h-full relative"},ve={class:"space-y-1 p-2 h-full relative"},xe={class:"absolute left-2 bottom-2 right-2"},_e={key:0,class:"ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[220px]"},ge={class:"flex items-center space-x-2 text-[#525B66]"},ye={class:"text-sm"},be={class:"text-xs"},Le=["href"],Ve={class:"flex flex-nowrap items-center w-max h-[24px]"},Ee={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]"},Be={class:"py-[8px] pl-0 pr-[8px]"},Ne=["href"],Se={class:"flex flex-nowrap items-center w-max h-[24px]"},$e={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Oe={class:"py-[8px] pl-0 pr-[8px]"},De={key:3,class:"custom-select ml-3 w-full relative pt-3"},ze={class:"pl-2"},je={key:0,class:"dropdown w-[220px] z-10 text-[#525B66]"},Me=["onClick"],Ae={key:0,class:"mt-3 text-slate-100 h-0 bg-slate-100 mb-3"},He={class:"flex flex-nowrap items-center w-full h-[24px]"},qe={class:"w-[44px] flex-shrink-0 relative"},Ie={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},Fe={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},Pe={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ze={class:"py-[8px] pl-0 pr-[8px]"},Re=["href"],Te={class:"flex flex-nowrap items-center w-full h-[24px]"},We={class:"w-[44px] flex-shrink-0 relative"},Ue={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},Ke={class:"py-[8px] pl-0 pr-[8px]"},Xe=we(()=>e.createElementVNode("span",null,"Powered by OneB",-1)),Ge=e.defineComponent({__name:"OneSidebar",props:T,emits:["show-news","show-tariff","select-language"],setup(o,{emit:r}){var z,j,M;const d=r,p=o,n=e.computed(()=>{var t;return((t=p.news)==null?void 0:t.unseenCount)||0}),i=()=>{d("show-news")},h=()=>{d("show-tariff")},a=e.ref(!1),m=e.ref((z=p.app)!=null&&z.availableLang&&((j=p.app)==null?void 0:j.availableLang.length)>0?(M=p.app)==null?void 0:M.availableLang.find(t=>{var c;return t.id==((c=p.app)==null?void 0:c.lang)}):null),I=()=>{a.value=!a.value},u=t=>{m.value=t,a.value=!1,d("select-language",t)};return(t,c)=>{var A,f,w,k,v,x,_,g,y,b,L,V,E,B,N,S,$;return e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,s=>(e.openBlock(),e.createBlock(ae,{key:s.label,icon:s.icon,label:s.label,route:s.route,href:s.href,"route-name":s.routeName,exact:s.exact||!1,slim:t.slim},null,8,["icon","label","route","href","route-name","exact","slim"]))),128)),e.createElementVNode("div",xe,[e.createElementVNode("div",{class:e.normalizeClass([t.slim?"hidden":"w-max"])},[(A=t.app)!=null&&A.selectedPlan?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",ge,[e.createVNode(e.unref(U),{class:"w-[24px] h-[24px]"}),e.createElementVNode("div",null,[e.createElementVNode("p",ye,e.toDisplayString(((f=t.app)==null?void 0:f.selectedPlan.name)||"Free"),1),e.createElementVNode("p",be,e.toDisplayString(((w=t.app)==null?void 0:w.selectedPlan.title)||"Тарифний план"),1)])]),e.createElementVNode("div",null,[e.createVNode(q._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",variant:"touch",icon:e.unref(H.render),onClick:h},null,8,["icon"])])])):e.createCommentVNode("",!0),(k=t.app)!=null&&k.terms?(e.openBlock(),e.createElementBlock("a",{key:1,href:(v=t.app)==null?void 0:v.terms.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"},[e.createElementVNode("div",Ve,[e.createElementVNode("div",Ee,[e.createElementVNode("span",Be,e.toDisplayString(((x=t.app)==null?void 0:x.terms.label)||"Terms"),1)])])],8,Le)):e.createCommentVNode("",!0),(_=t.app)!=null&&_.offer?(e.openBlock(),e.createElementBlock("a",{key:2,href:(g=t.app)==null?void 0:g.offer.url,target:"_blank",class:"ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"},[e.createElementVNode("div",Se,[e.createElementVNode("div",$e,[e.createElementVNode("span",Oe,e.toDisplayString(((y=t.app)==null?void 0:y.offer.label)||"Offert"),1)])])],8,Ne)):e.createCommentVNode("",!0),(L=(b=t.app)==null?void 0:b.availableLang)!=null&&L.length?(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",{class:"select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",onClick:I},[e.createVNode(e.unref(fe),{class:"w-4"}),e.createTextVNode(" "+e.toDisplayString((V=m.value)==null?void 0:V.name)+" ",1),e.createElementVNode("span",ze,e.toDisplayString(a.value?"▲":"▼"),1)]),a.value?(e.openBlock(),e.createElementBlock("div",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=t.app)==null?void 0:E.availableLang,s=>{var O,D;return e.openBlock(),e.createElementBlock("div",{key:s.id,class:e.normalizeClass(["px-2",{"hover:bg-slate-200 rounded-lg cursor-pointer":s.id!==((O=m.value)==null?void 0:O.id),"text-gray-300":s.id===((D=m.value)==null?void 0:D.id)}]),onClick:l=>{var C;return s.id!==((C=m.value)==null?void 0:C.id)&&u(s)}},e.toDisplayString(s.name),11,Me)}),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),t.slim?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("hr",Ae)),e.createElementVNode("div",{class:e.normalizeClass(["flex",[t.slim?" grid":"w-max"]])},[t.news?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all",[(t.slim,"w-[44px] h-[44px]")]]),onClick:i},[e.createElementVNode("div",He,[e.createElementVNode("div",qe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W),{class:"w-[24px] h-[24px] mx-auto"})),n.value>0?(e.openBlock(),e.createElementBlock("span",Ie)):e.createCommentVNode("",!0),n.value>0?(e.openBlock(),e.createElementBlock("span",Fe)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Pe,[e.createElementVNode("span",Ze,e.toDisplayString(t.news.menuLabel||"News"),1)])])],2)):e.createCommentVNode("",!0),(B=t.app)!=null&&B.support?(e.openBlock(),e.createElementBlock("a",{key:1,href:(N=t.app)==null?void 0:N.support.url,target:"_blank",class:e.normalizeClass(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all",[(t.slim,"w-[44px] h-[44px]")]])},[e.createElementVNode("div",Te,[e.createElementVNode("div",We,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(he)),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("div",Ue,[e.createElementVNode("span",Ke,e.toDisplayString(((S=t.app)==null?void 0:S.support.label)||"Support"),1)])])],10,Re)):e.createCommentVNode("",!0)],2),e.createElementVNode("p",{class:e.normalizeClass([[t.slim?"hidden":"w-full"],"text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])},[Xe,e.createElementVNode("span",null,e.toDisplayString(($=t.app)==null?void 0:$.version),1)],2)])])])}}});const K=R._export_sfc(Ge,[["__scopeId","data-v-4988837e"]]);function Je(o,r){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 Qe(o,r){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"})])}/*!
2
2
  * vue-router v4.3.0
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */var F;(function(o){o.pop="pop",o.push="push"})(F||(F={}));var P;(function(o){o.back="back",o.forward="forward",o.unknown=""})(P||(P={}));Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Z;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(Z||(Z={}));Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Qe=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ye(){return e.inject(Qe)}const e1=o=>(e.pushScopeId("data-v-6b3e087b"),o=o(),e.popScopeId(),o),t1={class:"h-full relative"},o1={class:"header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",style:{background:"rgba(250, 250, 250, 0.80)","backdrop-filter":"blur(5px)"}},l1={class:"p-2 flex-shrink-0"},n1={class:"w-10 h-10 bg-white flex items-center flex-shrink-0"},s1=["src"],r1={class:"whitespace-nowrap font-semibold text-xl"},a1={class:"text-xs whitespace-nowrap"},c1={class:"w-full"},i1={class:"w-full flex justify-end pr-3"},d1={class:"flex items-center space-x-3"},p1={key:0,class:"sm:block flex-shrink-0 hidden"},m1=["href"],u1={class:"body w-full h-full"},C1={key:0},h1={key:0,class:"w-96 relative h-full"},f1={class:"h-full relative"},w1={class:"flex items-center p-3 space-x-1.5"},k1=e1(()=>e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1)),v1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},x1={key:0,class:"p-5"},_1={key:1},b1={class:"p-4 text-gray text-center"},y1={key:2},g1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},L1={key:0},V1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},E1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},B1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},N1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},S1={class:"text-lg font-medium"},$1={class:"text-sm text-gray-600"},O1={key:0},D1=["src"],z1={class:"text-sm whitespace-pre-wrap break-words"},M1={key:1},j1=["href"],I1={class:"text-sm flex items-center justify-between mt-1"},A1={class:"text-gray-800"},H1=["href"],q1={class:"flex items-center space-x-2 text-[#525B66]"},F1={class:"text-sm"},P1={class:"text8"},Z1=e.defineComponent({__name:"OneMainLayout",props:G,emits:["load-news","load-tariff"],setup(o,{emit:a}){const m=a;let d=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),d="1");const s=e.ref(d==="1");e.watch(s,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const O=()=>{window.document.body.offsetWidth<1024&&!s.value&&(s.value=!0)},c=e.ref(!1),u=()=>{c.value=!c.value,c.value&&m("load-news")},i=e.ref(!1),j=()=>{i.value=!i.value,i.value&&m("load-tariff")},I=Ye(),D=t=>{t&&t.link?t.link.startsWith("http")?window.open(t.link,"_blank","noopener noreferrer"):I.push({name:t.link}):console.warn("Не знайдено viewName")};return(t,p)=>{var A,h,f,w,k,v,x,_,b,y,g,L,V,E,B,N,S,$,r;const l=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",t1,[e.createElementVNode("div",o1,[e.createElementVNode("div",l1,[e.createElementVNode("button",{onClick:p[0]||(p[0]=n=>s.value=!s.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"},[e.createVNode(e.unref(Ge),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",n1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,s1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(l,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var n,C;return[e.createElementVNode("div",r1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",a1,e.toDisplayString((C=(n=t.app)==null?void 0:n.workspace)==null?void 0:C.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",c1,[e.createElementVNode("div",i1,[e.createElementVNode("div",d1,[e.renderSlot(t.$slots,"before-header-menu",{},void 0,!0),(A=t.app)!=null&&A.help?(e.openBlock(),e.createElementBlock("div",p1,[e.createElementVNode("a",{href:(h=t.app)==null?void 0:h.help.url,target:"_blank",title:"Help",class:"block btn-touch text-gray-dark"},[e.createVNode(e.unref(Je),{class:"w-6 h-6 text-gray-600"})],8,m1)])):e.createCommentVNode("",!0),(f=t.app)!=null&&f.apps?(e.openBlock(),e.createBlock(z.OneBrowserMenu,{key:1,workspace:(w=t.app)==null?void 0:w.workspace,apps:((k=t.app)==null?void 0:k.apps)||[],"change-label":((v=t.labels)==null?void 0:v.change)||"Change","apps-title":((x=t.labels)==null?void 0:x.apps)||"Apps","on-app":(_=t.handlers)==null?void 0:_.onApp,"on-change":(b=t.handlers)==null?void 0:b.onChange,onOpen:(y=t.handlers)==null?void 0:y.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(z._sfc_main$2,{user:t.user,app:t.app,"account-label":((g=t.labels)==null?void 0:g.account)||"Account","logout-label":((L=t.labels)==null?void 0:L.logout)||"Logout","version-label":((V=t.labels)==null?void 0:V.version)||"","on-account":(E=t.handlers)==null?void 0:E.onAccount,"on-logout":(B=t.handlers)==null?void 0:B.onLogout},null,8,["user","app","account-label","logout-label","version-label","on-account","on-logout"])])])])]),e.createElementVNode("div",{class:e.normalizeClass(["sidebar absolute top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50",[s.value?"w-0 lg:w-[60px]":"w-full lg:w-60"]]),style:{height:"calc(100% - 56px)"},onClick:O},[e.createVNode(U,{slim:s.value,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,onShowTariff:j,news:t.news,onShowNews:u},null,8,["slim","app","items","with-news","news"])],2),e.createElementVNode("div",u1,[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all pt-[56px] h-full overflow-auto",[s.value?"pl-0 lg:pl-[60px]":"pl-0 lg:pl-60"]])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)]),t.news?(e.openBlock(),e.createElementBlock("div",C1,[c.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:p[1]||(p[1]=e.withModifiers(n=>c.value=!1,["self"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white",[c.value?"w-96":"w-0"]])},[c.value?(e.openBlock(),e.createElementBlock("div",h1,[e.createElementVNode("div",f1,[e.createElementVNode("div",w1,[e.createVNode(T,{class:"w-10 h-10"}),k1,e.createElementVNode("div",null,[e.createVNode(M._sfc_main,{variant:"touch",icon:e.unref(K.render),onClick:p[2]||(p[2]=n=>c.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",v1,[t.news.isLoading&&((N=t.news.items)==null?void 0:N.length)===0?(e.openBlock(),e.createElementBlock("div",x1,[e.createVNode(M.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((S=t.news.items)==null?void 0:S.length)===0?(e.openBlock(),e.createElementBlock("div",_1,[e.createElementVNode("div",b1,e.toDisplayString(t.news.emptyText),1)])):(($=t.news.items)==null?void 0:$.length)>0?(e.openBlock(),e.createElementBlock("div",y1,[(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",g1,[e.createElementVNode("div",null,[n.type?(e.openBlock(),e.createElementBlock("div",L1,[n.type===10?(e.openBlock(),e.createElementBlock("span",V1,"update")):n.type===11?(e.openBlock(),e.createElementBlock("span",E1,"warning")):n.type===12?(e.openBlock(),e.createElementBlock("span",B1,"notice")):n.type===13?(e.openBlock(),e.createElementBlock("span",N1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",S1,e.toDisplayString(n.title),1),e.createElementVNode("div",$1,e.toDisplayString(n.summary),1)]),n.image_url?(e.openBlock(),e.createElementBlock("div",O1,[e.createElementVNode("img",{src:n.image_url,alt:"",class:"w-full rounded-md"},null,8,D1)])):e.createCommentVNode("",!0),e.createElementVNode("div",z1,e.toDisplayString(n.body),1),n.video_url?(e.openBlock(),e.createElementBlock("div",M1,[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,j1)])):e.createCommentVNode("",!0),e.createElementVNode("div",I1,[e.createElementVNode("span",A1,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,H1)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["absolute left-[260px] bottom-0",[s.value?"hidden":"w-max"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((r=t.app)==null?void 0:r.availablePlans,n=>(e.openBlock(),e.createElementBlock("div",{key:n.name,class:"ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[240px]"},[e.createElementVNode("div",q1,[e.createVNode(e.unref(W),{class:"w-[24px] h-[24px]"}),e.createElementVNode("div",null,[e.createElementVNode("p",F1,e.toDisplayString(n.name||"Free"),1),e.createElementVNode("p",P1,e.toDisplayString(n.title||"Тарифний план"),1)])]),e.createElementVNode("div",null,[e.createVNode(M._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",variant:"touch",icon:e.unref(z.render),onClick:C=>D(n)},null,8,["icon","onClick"])])]))),128))],2)):e.createCommentVNode("",!0)])}}});const R1=H._export_sfc(Z1,[["__scopeId","data-v-6b3e087b"]]);exports.OneMainLayout=R1;exports.OneSidebar=U;
5
+ */var F;(function(o){o.pop="pop",o.push="push"})(F||(F={}));var P;(function(o){o.back="back",o.forward="forward",o.unknown=""})(P||(P={}));Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Z;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(Z||(Z={}));Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Ye=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function e1(){return e.inject(Ye)}const t1={class:"h-full relative"},o1={class:"header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",style:{background:"rgba(250, 250, 250, 0.80)","backdrop-filter":"blur(5px)"}},l1={class:"p-2 flex-shrink-0"},n1={class:"w-10 h-10 bg-white flex items-center flex-shrink-0"},s1=["src"],r1={class:"whitespace-nowrap font-semibold text-xl"},a1={class:"text-xs whitespace-nowrap"},c1={class:"w-full"},i1={class:"w-full flex justify-end pr-3"},d1={class:"flex items-center space-x-3"},p1={key:0,class:"sm:block flex-shrink-0 hidden"},m1=["href"],u1={class:"body w-full h-full"},C1={key:0},h1={key:0,class:"w-96 relative h-full"},f1={class:"h-full relative"},w1={class:"flex items-center p-3 space-x-1.5"},k1=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1),v1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},x1={key:0,class:"p-5"},_1={key:1},g1={class:"p-4 text-gray text-center"},y1={key:2},b1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},L1={key:0},V1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},E1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},B1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},N1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},S1={class:"text-lg font-medium"},$1={class:"text-sm text-gray-600"},O1={key:0},D1=["src"],z1={class:"text-sm whitespace-pre-wrap break-words"},j1={key:1},M1=["href"],A1={class:"text-sm flex items-center justify-between mt-1"},H1={class:"text-gray-800"},q1=["href"],I1={class:"flex items-center space-x-2 text-[#525B66]"},F1={class:"text-sm"},P1={class:"text-[8px]"},Z1=e.defineComponent({__name:"OneMainLayout",props:J,emits:["load-news","load-tariff"],setup(o,{emit:r}){const d=r,p=o;let n=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),n="1");const i=e.ref(n==="1");e.watch(i,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const h=()=>{window.document.body.offsetWidth<1024&&!i.value&&(i.value=!0)},a=e.ref(!1),m=()=>{a.value=!a.value,a.value&&d("load-news")},I=t=>{var c;(c=p.handlers)==null||c.onSetLang(t)},u=e.ref(!1),z=()=>{u.value=!u.value,u.value&&d("load-tariff")},j=e1(),M=t=>{t&&t.link?t.link.startsWith("http")?window.open(t.link,"_blank","noopener noreferrer"):j.push({name:t.link}):console.warn("Не знайдено viewName")};return(t,c)=>{var f,w,k,v,x,_,g,y,b,L,V,E,B,N,S,$,s,O,D;const A=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",t1,[e.createElementVNode("div",o1,[e.createElementVNode("div",l1,[e.createElementVNode("button",{onClick:c[0]||(c[0]=l=>i.value=!i.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"},[e.createVNode(e.unref(Je),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",n1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,s1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(A,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>{var l,C;return[e.createElementVNode("div",r1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",a1,e.toDisplayString((C=(l=t.app)==null?void 0:l.workspace)==null?void 0:C.name),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",c1,[e.createElementVNode("div",i1,[e.createElementVNode("div",d1,[e.renderSlot(t.$slots,"before-header-menu"),(f=t.app)!=null&&f.help?(e.openBlock(),e.createElementBlock("div",p1,[e.createElementVNode("a",{href:(w=t.app)==null?void 0:w.help.url,target:"_blank",title:"Help",class:"block btn-touch text-gray-dark"},[e.createVNode(e.unref(Qe),{class:"w-6 h-6 text-gray-600"})],8,m1)])):e.createCommentVNode("",!0),(k=t.app)!=null&&k.apps?(e.openBlock(),e.createBlock(H.OneBrowserMenu,{key:1,workspace:(v=t.app)==null?void 0:v.workspace,apps:((x=t.app)==null?void 0:x.apps)||[],"change-label":((_=t.labels)==null?void 0:_.change)||"Change","apps-title":((g=t.labels)==null?void 0:g.apps)||"Apps","on-app":(y=t.handlers)==null?void 0:y.onApp,"on-change":(b=t.handlers)==null?void 0:b.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(H._sfc_main$2,{user:t.user,app:t.app,"account-label":((V=t.labels)==null?void 0:V.account)||"Account","logout-label":((E=t.labels)==null?void 0:E.logout)||"Logout","version-label":((B=t.labels)==null?void 0:B.version)||"","on-account":(N=t.handlers)==null?void 0:N.onAccount,"on-logout":(S=t.handlers)==null?void 0:S.onLogout},null,8,["user","app","account-label","logout-label","version-label","on-account","on-logout"])])])])]),e.createElementVNode("div",{class:e.normalizeClass(["sidebar absolute top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50",[i.value?"w-0 lg:w-[60px]":"w-full lg:w-60"]]),style:{height:"calc(100% - 56px)"},onClick:h},[e.createVNode(K,{slim:i.value,app:t.app,items:t.sidebarItems,"with-news":t.news!=null,onShowTariff:z,news:t.news,onShowNews:m,onSelectLanguage:I},null,8,["slim","app","items","with-news","news"])],2),e.createElementVNode("div",u1,[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all pt-[56px] h-full overflow-auto",[i.value?"pl-0 lg:pl-[60px]":"pl-0 lg:pl-60"]])},[e.renderSlot(t.$slots,"default")],2)]),t.news?(e.openBlock(),e.createElementBlock("div",C1,[a.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[1]||(c[1]=e.withModifiers(l=>a.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",[a.value?"w-96":"w-0"]])},[a.value?(e.openBlock(),e.createElementBlock("div",h1,[e.createElementVNode("div",f1,[e.createElementVNode("div",w1,[e.createVNode(W,{class:"w-10 h-10"}),k1,e.createElementVNode("div",null,[e.createVNode(q._sfc_main,{variant:"touch",icon:e.unref(X.render),onClick:c[2]||(c[2]=l=>a.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",v1,[t.news.isLoading&&(($=t.news.items)==null?void 0:$.length)===0?(e.openBlock(),e.createElementBlock("div",x1,[e.createVNode(q.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((s=t.news.items)==null?void 0:s.length)===0?(e.openBlock(),e.createElementBlock("div",_1,[e.createElementVNode("div",g1,e.toDisplayString(t.news.emptyText),1)])):((O=t.news.items)==null?void 0:O.length)>0?(e.openBlock(),e.createElementBlock("div",y1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"p-3"},[e.createElementVNode("div",b1,[e.createElementVNode("div",null,[l.type?(e.openBlock(),e.createElementBlock("div",L1,[l.type===10?(e.openBlock(),e.createElementBlock("span",V1,"update")):l.type===11?(e.openBlock(),e.createElementBlock("span",E1,"warning")):l.type===12?(e.openBlock(),e.createElementBlock("span",B1,"notice")):l.type===13?(e.openBlock(),e.createElementBlock("span",N1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",S1,e.toDisplayString(l.title),1),e.createElementVNode("div",$1,e.toDisplayString(l.summary),1)]),l.image_url?(e.openBlock(),e.createElementBlock("div",O1,[e.createElementVNode("img",{src:l.image_url,alt:"",class:"w-full rounded-md"},null,8,D1)])):e.createCommentVNode("",!0),e.createElementVNode("div",z1,e.toDisplayString(l.body),1),l.video_url?(e.openBlock(),e.createElementBlock("div",j1,[e.createElementVNode("a",{href:l.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,M1)])):e.createCommentVNode("",!0),e.createElementVNode("div",A1,[e.createElementVNode("span",H1,e.toDisplayString(l.published),1),l.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,q1)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["absolute left-[260px] bottom-0",[i.value?"hidden":"w-max"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((D=t.app)==null?void 0:D.availablePlans,l=>(e.openBlock(),e.createElementBlock("div",{key:l.name,class:"ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[240px]"},[e.createElementVNode("div",I1,[e.createVNode(e.unref(U),{class:"w-[24px] h-[24px]"}),e.createElementVNode("div",null,[e.createElementVNode("p",F1,e.toDisplayString(l.name||"Free"),1),e.createElementVNode("p",P1,e.toDisplayString(l.title||"Тарифний план"),1)])]),e.createElementVNode("div",null,[e.createVNode(q._sfc_main,{class:"text-[#525B66] hover:text-[#4089E0]",variant:"touch",icon:e.unref(H.render),onClick:C=>M(l)},null,8,["icon","onClick"])])]))),128))],2)):e.createCommentVNode("",!0)])}}});exports.OneMainLayout=Z1;exports.OneSidebar=K;
@@ -1,10 +1,10 @@
1
- import { defineComponent as Q, computed as G, resolveComponent as o1, openBlock as t, createElementBlock as l, normalizeClass as C, createElementVNode as e, createBlock as _, resolveDynamicComponent as Z, createCommentVNode as r, toDisplayString as c, withCtx as n1, ref as D, Fragment as R, renderList as T, createVNode as h, unref as m, createTextVNode as u1, pushScopeId as a1, popScopeId as r1, inject as h1, watch as C1, renderSlot as e1, withModifiers as f1 } from "vue";
2
- import { _ as X } from "../_plugin-vue_export-helper-dad06003.js";
3
- import { r as i1, O as w1, b as v1 } from "../OneBrowserMenu-70783fed.js";
4
- import { _ as J, S as m1 } from "../index-72d69e4e.js";
5
- import { r as x1 } from "../XMarkIcon-51ef0691.js";
1
+ import { defineComponent as Y, computed as Q, resolveComponent as o1, openBlock as s, createElementBlock as l, normalizeClass as f, createElementVNode as t, createBlock as x, resolveDynamicComponent as U, createCommentVNode as a, toDisplayString as r, withCtx as n1, ref as F, Fragment as K, renderList as G, createVNode as C, unref as v, createTextVNode as d1, pushScopeId as u1, popScopeId as h1, inject as C1, watch as f1, renderSlot as e1, withModifiers as w1 } from "vue";
2
+ import { _ as a1 } from "../_plugin-vue_export-helper-dad06003.js";
3
+ import { r as r1, O as m1, b as v1 } from "../OneBrowserMenu-70783fed.js";
4
+ import { _ as X, S as x1 } from "../index-72d69e4e.js";
5
+ import { r as _1 } from "../XMarkIcon-51ef0691.js";
6
6
  import "../common/index.js";
7
- const c1 = {
7
+ const i1 = {
8
8
  items: {
9
9
  required: !0,
10
10
  type: Array
@@ -19,7 +19,7 @@ const c1 = {
19
19
  news: {
20
20
  type: Object
21
21
  }
22
- }, _1 = {
22
+ }, b1 = {
23
23
  route: {
24
24
  required: !1,
25
25
  type: [Object, String]
@@ -58,8 +58,8 @@ const c1 = {
58
58
  type: Boolean,
59
59
  default: !0
60
60
  }
61
- }, b1 = {
62
- sidebarItems: c1.items,
61
+ }, g1 = {
62
+ sidebarItems: i1.items,
63
63
  logoSrc: {
64
64
  type: String
65
65
  },
@@ -94,47 +94,47 @@ const c1 = {
94
94
  handlers: {
95
95
  type: Object
96
96
  }
97
- }, y1 = ["href"], g1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, L1 = {
97
+ }, y1 = ["href"], L1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, k1 = {
98
98
  key: 0,
99
99
  class: "w-[44px] flex-shrink-0"
100
- }, k1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, $1 = { class: "py-[8px] pl-0 pr-[8px]" }, S1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, O1 = {
100
+ }, $1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, S1 = { class: "py-[8px] pl-0 pr-[8px]" }, O1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, B1 = {
101
101
  key: 0,
102
102
  class: "w-[44px] flex-shrink-0"
103
- }, B1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, j1 = { class: "py-[8px] pl-0 pr-[8px]" }, V1 = /* @__PURE__ */ Q({
103
+ }, j1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, V1 = { class: "py-[8px] pl-0 pr-[8px]" }, M1 = /* @__PURE__ */ Y({
104
104
  __name: "OneSidebarLink",
105
- props: _1,
105
+ props: b1,
106
106
  setup(o) {
107
- const d = o, x = G(() => d.href != null ? d.href : !1), w = G(() => d.route != null ? d.route : d.routeName != null ? { name: d.routeName } : "/");
108
- return (i, q) => {
109
- const u = o1("RouterLink");
110
- return x.value ? (t(), l("a", {
107
+ const p = o, w = Q(() => p.href != null ? p.href : !1), m = Q(() => p.route != null ? p.route : p.routeName != null ? { name: p.routeName } : "/");
108
+ return (i, h) => {
109
+ const y = o1("RouterLink");
110
+ return w.value ? (s(), l("a", {
111
111
  key: 0,
112
- href: x.value,
113
- class: C(["flex items-center 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"]])
112
+ href: w.value,
113
+ class: f(["flex items-center 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"]])
114
114
  }, [
115
- e("div", g1, [
116
- i.icon ? (t(), l("div", L1, [
117
- (t(), _(Z(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
118
- ])) : r("", !0),
119
- e("div", k1, [
120
- e("span", $1, c(i.label), 1)
115
+ t("div", L1, [
116
+ i.icon ? (s(), l("div", k1, [
117
+ (s(), x(U(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
118
+ ])) : a("", !0),
119
+ t("div", $1, [
120
+ t("span", S1, r(i.label), 1)
121
121
  ])
122
122
  ])
123
- ], 10, y1)) : (t(), _(u, {
123
+ ], 10, y1)) : (s(), x(y, {
124
124
  key: 1,
125
- to: w.value,
126
- class: C(["flex items-center 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"]]),
125
+ to: m.value,
126
+ class: f(["flex items-center 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"]]),
127
127
  "active-class": i.exact ? "" : "bg-primary-10 !text-primary-base",
128
128
  "exact-active-class": i.exact ? "bg-primary-10 !text-primary-base" : "",
129
129
  exact: i.exact
130
130
  }, {
131
131
  default: n1(() => [
132
- e("div", S1, [
133
- i.icon ? (t(), l("div", O1, [
134
- (t(), _(Z(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
135
- ])) : r("", !0),
136
- e("div", B1, [
137
- e("span", j1, c(i.label), 1)
132
+ t("div", O1, [
133
+ i.icon ? (s(), l("div", B1, [
134
+ (s(), x(U(i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
135
+ ])) : a("", !0),
136
+ t("div", j1, [
137
+ t("span", V1, r(i.label), 1)
138
138
  ])
139
139
  ])
140
140
  ]),
@@ -142,34 +142,34 @@ const c1 = {
142
142
  }, 8, ["to", "active-class", "exact-active-class", "exact", "class"]));
143
143
  };
144
144
  }
145
- }), M1 = {}, N1 = {
145
+ }), N1 = {}, z1 = {
146
146
  xmlns: "http://www.w3.org/2000/svg",
147
147
  width: "24",
148
148
  height: "24",
149
149
  viewBox: "0 0 24 24",
150
150
  fill: "none"
151
- }, z1 = /* @__PURE__ */ e("path", {
151
+ }, A1 = /* @__PURE__ */ t("path", {
152
152
  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",
153
153
  fill: "currentColor"
154
- }, null, -1), A1 = /* @__PURE__ */ e("path", {
154
+ }, null, -1), E1 = /* @__PURE__ */ t("path", {
155
155
  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",
156
156
  fill: "currentColor"
157
- }, null, -1), E1 = /* @__PURE__ */ e("path", {
157
+ }, null, -1), H1 = /* @__PURE__ */ t("path", {
158
158
  "fill-rule": "evenodd",
159
159
  "clip-rule": "evenodd",
160
160
  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",
161
161
  fill: "currentColor"
162
- }, null, -1), H1 = [
163
- z1,
162
+ }, null, -1), I1 = [
164
163
  A1,
165
- E1
164
+ E1,
165
+ H1
166
166
  ];
167
- function I1(o, d) {
168
- return t(), l("svg", N1, H1);
167
+ function P1(o, p) {
168
+ return s(), l("svg", z1, I1);
169
169
  }
170
- const p1 = /* @__PURE__ */ X(M1, [["render", I1]]);
171
- function P1(o, d) {
172
- return t(), l("svg", {
170
+ const c1 = /* @__PURE__ */ a1(N1, [["render", P1]]);
171
+ function D1(o, p) {
172
+ return s(), l("svg", {
173
173
  xmlns: "http://www.w3.org/2000/svg",
174
174
  fill: "none",
175
175
  viewBox: "0 0 24 24",
@@ -177,15 +177,15 @@ function P1(o, d) {
177
177
  stroke: "currentColor",
178
178
  "aria-hidden": "true"
179
179
  }, [
180
- e("path", {
180
+ t("path", {
181
181
  "stroke-linecap": "round",
182
182
  "stroke-linejoin": "round",
183
183
  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"
184
184
  })
185
185
  ]);
186
186
  }
187
- function D1(o, d) {
188
- return t(), l("svg", {
187
+ function q1(o, p) {
188
+ return s(), l("svg", {
189
189
  xmlns: "http://www.w3.org/2000/svg",
190
190
  fill: "none",
191
191
  viewBox: "0 0 24 24",
@@ -193,15 +193,15 @@ function D1(o, d) {
193
193
  stroke: "currentColor",
194
194
  "aria-hidden": "true"
195
195
  }, [
196
- e("path", {
196
+ t("path", {
197
197
  "stroke-linecap": "round",
198
198
  "stroke-linejoin": "round",
199
199
  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"
200
200
  })
201
201
  ]);
202
202
  }
203
- function d1(o, d) {
204
- return t(), l("svg", {
203
+ function p1(o, p) {
204
+ return s(), l("svg", {
205
205
  xmlns: "http://www.w3.org/2000/svg",
206
206
  fill: "none",
207
207
  viewBox: "0 0 24 24",
@@ -209,179 +209,182 @@ function d1(o, d) {
209
209
  stroke: "currentColor",
210
210
  "aria-hidden": "true"
211
211
  }, [
212
- e("path", {
212
+ t("path", {
213
213
  "stroke-linecap": "round",
214
214
  "stroke-linejoin": "round",
215
215
  d: "M15.362 5.214A8.252 8.252 0 0112 21 8.25 8.25 0 016.038 7.048 8.287 8.287 0 009 9.6a8.983 8.983 0 013.361-6.867 8.21 8.21 0 003 2.48z"
216
216
  }),
217
- e("path", {
217
+ t("path", {
218
218
  "stroke-linecap": "round",
219
219
  "stroke-linejoin": "round",
220
220
  d: "M12 18a3.75 3.75 0 00.495-7.467 5.99 5.99 0 00-1.925 3.546 5.974 5.974 0 01-2.133-1A3.75 3.75 0 0012 18z"
221
221
  })
222
222
  ]);
223
223
  }
224
- const q1 = (o) => (a1("data-v-57d3d3f4"), o = o(), r1(), o), F1 = { class: "h-full relative" }, Z1 = { class: "space-y-1 p-2 h-full relative" }, R1 = { class: "absolute left-2 bottom-2 right-2" }, T1 = {
224
+ const F1 = (o) => (u1("data-v-4988837e"), o = o(), h1(), o), Z1 = { class: "h-full relative" }, R1 = { class: "space-y-1 p-2 h-full relative" }, T1 = { class: "absolute left-2 bottom-2 right-2" }, W1 = {
225
225
  key: 0,
226
226
  class: "ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[220px]"
227
- }, W1 = { class: "flex items-center space-x-2 text-[#525B66]" }, U1 = { class: "text-sm" }, K1 = { class: "text-xs" }, G1 = ["href"], J1 = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Q1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, X1 = { class: "py-[8px] pl-0 pr-[8px]" }, Y1 = ["href"], e0 = { class: "flex flex-nowrap items-center w-max h-[24px]" }, t0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, s0 = { class: "py-[8px] pl-0 pr-[8px]" }, l0 = {
227
+ }, U1 = { class: "flex items-center space-x-2 text-[#525B66]" }, K1 = { class: "text-sm" }, G1 = { class: "text-xs" }, J1 = ["href"], Q1 = { class: "flex flex-nowrap items-center w-max h-[24px]" }, X1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, Y1 = { class: "py-[8px] pl-0 pr-[8px]" }, e0 = ["href"], t0 = { class: "flex flex-nowrap items-center w-max h-[24px]" }, s0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, l0 = { class: "py-[8px] pl-0 pr-[8px]" }, o0 = {
228
228
  key: 3,
229
229
  class: "custom-select ml-3 w-full relative pt-3"
230
- }, o0 = { class: "pl-2" }, n0 = {
230
+ }, n0 = { class: "pl-2" }, a0 = {
231
231
  key: 0,
232
232
  class: "dropdown w-[220px] z-10 text-[#525B66]"
233
- }, a0 = ["onClick"], r0 = {
233
+ }, r0 = ["onClick"], i0 = {
234
234
  key: 0,
235
235
  class: "mt-3 text-slate-100 h-0 bg-slate-100 mb-3"
236
- }, i0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, c0 = { class: "w-[44px] flex-shrink-0 relative" }, p0 = {
236
+ }, c0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, p0 = { class: "w-[44px] flex-shrink-0 relative" }, d0 = {
237
237
  key: 0,
238
238
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
239
- }, d0 = {
239
+ }, u0 = {
240
240
  key: 1,
241
241
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
242
- }, u0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, h0 = { class: "py-[8px] pl-0 pr-[8px]" }, C0 = ["href"], f0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, w0 = { class: "w-[44px] flex-shrink-0 relative" }, v0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, m0 = { class: "py-[8px] pl-0 pr-[8px]" }, x0 = /* @__PURE__ */ q1(() => /* @__PURE__ */ e("span", null, "Powered by OneB", -1)), _0 = /* @__PURE__ */ Q({
242
+ }, h0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, C0 = { class: "py-[8px] pl-0 pr-[8px]" }, f0 = ["href"], w0 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, m0 = { class: "w-[44px] flex-shrink-0 relative" }, v0 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, x0 = { class: "py-[8px] pl-0 pr-[8px]" }, _0 = /* @__PURE__ */ F1(() => /* @__PURE__ */ t("span", null, "Powered by OneB", -1)), b0 = /* @__PURE__ */ Y({
243
243
  __name: "OneSidebar",
244
- props: c1,
245
- emits: ["show-news", "show-tariff"],
246
- setup(o, { emit: d }) {
247
- var F, s, v;
248
- const x = d, w = o, i = G(() => {
249
- var n;
250
- return ((n = w.news) == null ? void 0 : n.unseenCount) || 0;
251
- }), q = () => {
252
- x("show-news");
253
- }, u = () => {
254
- x("show-tariff");
255
- }, b = D(!1), f = D((F = w.app) != null && F.availableLang && ((s = w.app) == null ? void 0 : s.availableLang.length) > 0 ? (v = w.app) == null ? void 0 : v.availableLang[0] : null), W = () => {
256
- b.value = !b.value;
257
- }, U = (n) => {
258
- f.value = n, b.value = !1;
244
+ props: i1,
245
+ emits: ["show-news", "show-tariff", "select-language"],
246
+ setup(o, { emit: p }) {
247
+ var Z, R, T;
248
+ const w = p, m = o, i = Q(() => {
249
+ var e;
250
+ return ((e = m.news) == null ? void 0 : e.unseenCount) || 0;
251
+ }), h = () => {
252
+ w("show-news");
253
+ }, y = () => {
254
+ w("show-tariff");
255
+ }, d = F(!1), _ = F((Z = m.app) != null && Z.availableLang && ((R = m.app) == null ? void 0 : R.availableLang.length) > 0 ? (T = m.app) == null ? void 0 : T.availableLang.find((e) => {
256
+ var u;
257
+ return e.id == ((u = m.app) == null ? void 0 : u.lang);
258
+ }) : null), J = () => {
259
+ d.value = !d.value;
260
+ }, b = (e) => {
261
+ _.value = e, d.value = !1, w("select-language", e);
259
262
  };
260
- return (n, K) => {
261
- var g, L, k, $, S, O, B, j, V, M, N, z, A, E, H, I, P;
262
- return t(), l("div", F1, [
263
- e("div", Z1, [
264
- (t(!0), l(R, null, T(n.items, (p) => (t(), _(V1, {
265
- key: p.label,
266
- icon: p.icon,
267
- label: p.label,
268
- route: p.route,
269
- href: p.href,
270
- "route-name": p.routeName,
271
- exact: p.exact || !1,
272
- slim: n.slim
263
+ return (e, u) => {
264
+ var W, L, k, $, S, O, B, j, V, M, N, z, A, E, H, I, P;
265
+ return s(), l("div", Z1, [
266
+ t("div", R1, [
267
+ (s(!0), l(K, null, G(e.items, (c) => (s(), x(M1, {
268
+ key: c.label,
269
+ icon: c.icon,
270
+ label: c.label,
271
+ route: c.route,
272
+ href: c.href,
273
+ "route-name": c.routeName,
274
+ exact: c.exact || !1,
275
+ slim: e.slim
273
276
  }, null, 8, ["icon", "label", "route", "href", "route-name", "exact", "slim"]))), 128)),
274
- e("div", R1, [
275
- e("div", {
276
- class: C([n.slim ? "hidden" : "w-max"])
277
+ t("div", T1, [
278
+ t("div", {
279
+ class: f([e.slim ? "hidden" : "w-max"])
277
280
  }, [
278
- (g = n.app) != null && g.selectedPlan ? (t(), l("div", T1, [
279
- e("div", W1, [
280
- h(m(d1), { class: "w-[24px] h-[24px]" }),
281
- e("div", null, [
282
- e("p", U1, c(((L = n.app) == null ? void 0 : L.selectedPlan.name) || "Free"), 1),
283
- e("p", K1, c(((k = n.app) == null ? void 0 : k.selectedPlan.title) || "Тарифний план"), 1)
281
+ (W = e.app) != null && W.selectedPlan ? (s(), l("div", W1, [
282
+ t("div", U1, [
283
+ C(v(p1), { class: "w-[24px] h-[24px]" }),
284
+ t("div", null, [
285
+ t("p", K1, r(((L = e.app) == null ? void 0 : L.selectedPlan.name) || "Free"), 1),
286
+ t("p", G1, r(((k = e.app) == null ? void 0 : k.selectedPlan.title) || "Тарифний план"), 1)
284
287
  ])
285
288
  ]),
286
- e("div", null, [
287
- h(J, {
289
+ t("div", null, [
290
+ C(X, {
288
291
  class: "text-[#525B66] hover:text-[#4089E0]",
289
292
  variant: "touch",
290
- icon: m(i1),
291
- onClick: u
293
+ icon: v(r1),
294
+ onClick: y
292
295
  }, null, 8, ["icon"])
293
296
  ])
294
- ])) : r("", !0),
295
- ($ = n.app) != null && $.terms ? (t(), l("a", {
297
+ ])) : a("", !0),
298
+ ($ = e.app) != null && $.terms ? (s(), l("a", {
296
299
  key: 1,
297
- href: (S = n.app) == null ? void 0 : S.terms.url,
300
+ href: (S = e.app) == null ? void 0 : S.terms.url,
298
301
  target: "_blank",
299
302
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline font-extralight"
300
303
  }, [
301
- e("div", J1, [
302
- e("div", Q1, [
303
- e("span", X1, c(((O = n.app) == null ? void 0 : O.terms.label) || "Terms"), 1)
304
+ t("div", Q1, [
305
+ t("div", X1, [
306
+ t("span", Y1, r(((O = e.app) == null ? void 0 : O.terms.label) || "Terms"), 1)
304
307
  ])
305
308
  ])
306
- ], 8, G1)) : r("", !0),
307
- (B = n.app) != null && B.offer ? (t(), l("a", {
309
+ ], 8, J1)) : a("", !0),
310
+ (B = e.app) != null && B.offer ? (s(), l("a", {
308
311
  key: 2,
309
- href: (j = n.app) == null ? void 0 : j.offer.url,
312
+ href: (j = e.app) == null ? void 0 : j.offer.url,
310
313
  target: "_blank",
311
314
  class: "ml-3 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
312
315
  }, [
313
- e("div", e0, [
314
- e("div", t0, [
315
- e("span", s0, c(((V = n.app) == null ? void 0 : V.offer.label) || "Offert"), 1)
316
+ t("div", t0, [
317
+ t("div", s0, [
318
+ t("span", l0, r(((V = e.app) == null ? void 0 : V.offer.label) || "Offert"), 1)
316
319
  ])
317
320
  ])
318
- ], 8, Y1)) : r("", !0),
319
- (N = (M = n.app) == null ? void 0 : M.availableLang) != null && N.length ? (t(), l("div", l0, [
320
- e("div", {
321
+ ], 8, e0)) : a("", !0),
322
+ (N = (M = e.app) == null ? void 0 : M.availableLang) != null && N.length ? (s(), l("div", o0, [
323
+ t("div", {
321
324
  class: "select-box flex gap-x-3 text-xs text-[#525B66] cursor-pointer",
322
- onClick: W
325
+ onClick: J
323
326
  }, [
324
- h(m(D1), { class: "w-4" }),
325
- u1(" " + c((z = f.value) == null ? void 0 : z.label) + " ", 1),
326
- e("span", o0, c(b.value ? "▲" : "▼"), 1)
327
+ C(v(q1), { class: "w-4" }),
328
+ d1(" " + r((z = _.value) == null ? void 0 : z.name) + " ", 1),
329
+ t("span", n0, r(d.value ? "▲" : "▼"), 1)
327
330
  ]),
328
- b.value ? (t(), l("div", n0, [
329
- (t(!0), l(R, null, T((A = n.app) == null ? void 0 : A.availableLang, (p) => {
330
- var a, y;
331
- return t(), l("div", {
332
- key: p.label,
333
- class: C(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": p.label !== ((a = f.value) == null ? void 0 : a.label), "text-gray-300": p.label === ((y = f.value) == null ? void 0 : y.label) }]),
334
- onClick: (we) => {
335
- var Y;
336
- return p.label !== ((Y = f.value) == null ? void 0 : Y.label) && U(p);
331
+ d.value ? (s(), l("div", a0, [
332
+ (s(!0), l(K, null, G((A = e.app) == null ? void 0 : A.availableLang, (c) => {
333
+ var D, q;
334
+ return s(), l("div", {
335
+ key: c.id,
336
+ class: f(["px-2", { "hover:bg-slate-200 rounded-lg cursor-pointer": c.id !== ((D = _.value) == null ? void 0 : D.id), "text-gray-300": c.id === ((q = _.value) == null ? void 0 : q.id) }]),
337
+ onClick: (n) => {
338
+ var g;
339
+ return c.id !== ((g = _.value) == null ? void 0 : g.id) && b(c);
337
340
  }
338
- }, c(p.label), 11, a0);
341
+ }, r(c.name), 11, r0);
339
342
  }), 128))
340
- ])) : r("", !0)
341
- ])) : r("", !0)
343
+ ])) : a("", !0)
344
+ ])) : a("", !0)
342
345
  ], 2),
343
- n.slim ? r("", !0) : (t(), l("hr", r0)),
344
- e("div", {
345
- class: C(["flex", [n.slim ? " grid" : "w-max"]])
346
+ e.slim ? a("", !0) : (s(), l("hr", i0)),
347
+ t("div", {
348
+ class: f(["flex", [e.slim ? " grid" : "w-max"]])
346
349
  }, [
347
- n.news ? (t(), l("a", {
350
+ e.news ? (s(), l("a", {
348
351
  key: 0,
349
352
  href: "#",
350
- class: C(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(n.slim, "w-[44px] h-[44px]")]]),
351
- onClick: q
353
+ class: f(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(e.slim, "w-[44px] h-[44px]")]]),
354
+ onClick: h
352
355
  }, [
353
- e("div", i0, [
354
- e("div", c0, [
355
- (t(), _(Z(p1), { class: "w-[24px] h-[24px] mx-auto" })),
356
- i.value > 0 ? (t(), l("span", p0)) : r("", !0),
357
- i.value > 0 ? (t(), l("span", d0)) : r("", !0)
356
+ t("div", c0, [
357
+ t("div", p0, [
358
+ (s(), x(U(c1), { class: "w-[24px] h-[24px] mx-auto" })),
359
+ i.value > 0 ? (s(), l("span", d0)) : a("", !0),
360
+ i.value > 0 ? (s(), l("span", u0)) : a("", !0)
358
361
  ]),
359
- e("div", u0, [
360
- e("span", h0, c(n.news.menuLabel || "News"), 1)
362
+ t("div", h0, [
363
+ t("span", C0, r(e.news.menuLabel || "News"), 1)
361
364
  ])
362
365
  ])
363
- ], 2)) : r("", !0),
364
- (E = n.app) != null && E.support ? (t(), l("a", {
366
+ ], 2)) : a("", !0),
367
+ (E = e.app) != null && E.support ? (s(), l("a", {
365
368
  key: 1,
366
- href: (H = n.app) == null ? void 0 : H.support.url,
369
+ href: (H = e.app) == null ? void 0 : H.support.url,
367
370
  target: "_blank",
368
- class: C(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(n.slim, "w-[44px] h-[44px]")]])
371
+ class: f(["text-[#525B66] flex items-center rounded-lg text-sm hover:bg-primary-10-hover hover:text-primary-base transition-all", [(e.slim, "w-[44px] h-[44px]")]])
369
372
  }, [
370
- e("div", f0, [
371
- e("div", w0, [
372
- (t(), _(Z(m(P1)), { class: "w-[24px] h-[24px] mx-auto" }))
373
+ t("div", w0, [
374
+ t("div", m0, [
375
+ (s(), x(U(v(D1)), { class: "w-[24px] h-[24px] mx-auto" }))
373
376
  ]),
374
- e("div", v0, [
375
- e("span", m0, c(((I = n.app) == null ? void 0 : I.support.label) || "Support"), 1)
377
+ t("div", v0, [
378
+ t("span", x0, r(((I = e.app) == null ? void 0 : I.support.label) || "Support"), 1)
376
379
  ])
377
380
  ])
378
- ], 10, C0)) : r("", !0)
381
+ ], 10, f0)) : a("", !0)
379
382
  ], 2),
380
- e("p", {
381
- class: C([[n.slim ? "hidden" : "w-full"], "text8 pl-3 text-[#979CA9] flex justify-between font-extralight"])
383
+ t("p", {
384
+ class: f([[e.slim ? "hidden" : "w-full"], "text-[8px] pl-3 text-[#979CA9] flex justify-between font-extralight"])
382
385
  }, [
383
- x0,
384
- e("span", null, c((P = n.app) == null ? void 0 : P.version), 1)
386
+ _0,
387
+ t("span", null, r((P = e.app) == null ? void 0 : P.version), 1)
385
388
  ], 2)
386
389
  ])
387
390
  ])
@@ -389,9 +392,9 @@ const q1 = (o) => (a1("data-v-57d3d3f4"), o = o(), r1(), o), F1 = { class: "h-fu
389
392
  };
390
393
  }
391
394
  });
392
- const b0 = /* @__PURE__ */ X(_0, [["__scopeId", "data-v-57d3d3f4"]]);
393
- function y0(o, d) {
394
- return t(), l("svg", {
395
+ const g0 = /* @__PURE__ */ a1(b0, [["__scopeId", "data-v-4988837e"]]);
396
+ function y0(o, p) {
397
+ return s(), l("svg", {
395
398
  xmlns: "http://www.w3.org/2000/svg",
396
399
  fill: "none",
397
400
  viewBox: "0 0 24 24",
@@ -399,15 +402,15 @@ function y0(o, d) {
399
402
  stroke: "currentColor",
400
403
  "aria-hidden": "true"
401
404
  }, [
402
- e("path", {
405
+ t("path", {
403
406
  "stroke-linecap": "round",
404
407
  "stroke-linejoin": "round",
405
408
  d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
406
409
  })
407
410
  ]);
408
411
  }
409
- function g0(o, d) {
410
- return t(), l("svg", {
412
+ function L0(o, p) {
413
+ return s(), l("svg", {
411
414
  xmlns: "http://www.w3.org/2000/svg",
412
415
  fill: "none",
413
416
  viewBox: "0 0 24 24",
@@ -415,7 +418,7 @@ function g0(o, d) {
415
418
  stroke: "currentColor",
416
419
  "aria-hidden": "true"
417
420
  }, [
418
- e("path", {
421
+ t("path", {
419
422
  "stroke-linecap": "round",
420
423
  "stroke-linejoin": "round",
421
424
  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"
@@ -442,13 +445,13 @@ var l1;
442
445
  })(l1 || (l1 = {}));
443
446
  Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
444
447
  Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
445
- const L0 = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
448
+ const k0 = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
446
449
  Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
447
450
  Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
448
- function k0() {
449
- return h1(L0);
451
+ function $0() {
452
+ return C1(k0);
450
453
  }
451
- const $0 = (o) => (a1("data-v-6b3e087b"), o = o(), r1(), o), S0 = { class: "h-full relative" }, O0 = {
454
+ const S0 = { class: "h-full relative" }, O0 = {
452
455
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
453
456
  style: { background: "rgba(250, 250, 250, 0.80)", "backdrop-filter": "blur(5px)" }
454
457
  }, B0 = { class: "p-2 flex-shrink-0" }, j0 = { class: "w-10 h-10 bg-white flex items-center flex-shrink-0" }, V0 = ["src"], M0 = { class: "whitespace-nowrap font-semibold text-xl" }, N0 = { class: "text-xs whitespace-nowrap" }, z0 = { class: "w-full" }, A0 = { class: "w-full flex justify-end pr-3" }, E0 = { class: "flex items-center space-x-3" }, H0 = {
@@ -457,7 +460,7 @@ const $0 = (o) => (a1("data-v-6b3e087b"), o = o(), r1(), o), S0 = { class: "h-fu
457
460
  }, I0 = ["href"], P0 = { class: "body w-full h-full" }, D0 = { key: 0 }, q0 = {
458
461
  key: 0,
459
462
  class: "w-96 relative h-full"
460
- }, F0 = { class: "h-full relative" }, Z0 = { class: "flex items-center p-3 space-x-1.5" }, R0 = /* @__PURE__ */ $0(() => /* @__PURE__ */ e("div", { class: "w-full font-medium" }, "OneB News", -1)), T0 = {
463
+ }, F0 = { class: "h-full relative" }, Z0 = { class: "flex items-center p-3 space-x-1.5" }, R0 = /* @__PURE__ */ t("div", { class: "w-full font-medium" }, "OneB News", -1), T0 = {
461
464
  class: "overflow-auto",
462
465
  style: { height: "calc(100% - 62px)" }
463
466
  }, W0 = {
@@ -472,230 +475,233 @@ const $0 = (o) => (a1("data-v-6b3e087b"), o = o(), r1(), o), S0 = { class: "h-fu
472
475
  }, Y0 = {
473
476
  key: 1,
474
477
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
475
- }, ee = {
478
+ }, e9 = {
476
479
  key: 2,
477
480
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
478
- }, te = {
481
+ }, t9 = {
479
482
  key: 3,
480
483
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
481
- }, se = { class: "text-lg font-medium" }, le = { class: "text-sm text-gray-600" }, oe = { key: 0 }, ne = ["src"], ae = { class: "text-sm whitespace-pre-wrap break-words" }, re = { key: 1 }, ie = ["href"], ce = { class: "text-sm flex items-center justify-between mt-1" }, pe = { class: "text-gray-800" }, de = ["href"], ue = { class: "flex items-center space-x-2 text-[#525B66]" }, he = { class: "text-sm" }, Ce = { class: "text8" }, fe = /* @__PURE__ */ Q({
484
+ }, s9 = { class: "text-lg font-medium" }, l9 = { class: "text-sm text-gray-600" }, o9 = { key: 0 }, n9 = ["src"], a9 = { class: "text-sm whitespace-pre-wrap break-words" }, r9 = { key: 1 }, i9 = ["href"], c9 = { class: "text-sm flex items-center justify-between mt-1" }, p9 = { class: "text-gray-800" }, d9 = ["href"], u9 = { class: "flex items-center space-x-2 text-[#525B66]" }, h9 = { class: "text-sm" }, C9 = { class: "text-[8px]" }, b9 = /* @__PURE__ */ Y({
482
485
  __name: "OneMainLayout",
483
- props: b1,
486
+ props: g1,
484
487
  emits: ["load-news", "load-tariff"],
485
- setup(o, { emit: d }) {
486
- const x = d;
487
- let w = window.localStorage.getItem("sidebar-slim");
488
- window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), w = "1");
489
- const i = D(w === "1");
490
- C1(i, (s) => {
491
- window.localStorage.setItem("sidebar-slim", String(s ? 1 : 0));
488
+ setup(o, { emit: p }) {
489
+ const w = p, m = o;
490
+ let i = window.localStorage.getItem("sidebar-slim");
491
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), i = "1");
492
+ const h = F(i === "1");
493
+ f1(h, (e) => {
494
+ window.localStorage.setItem("sidebar-slim", String(e ? 1 : 0));
492
495
  });
493
- const q = () => {
494
- window.document.body.offsetWidth < 1024 && !i.value && (i.value = !0);
495
- }, u = D(!1), b = () => {
496
- u.value = !u.value, u.value && x("load-news");
497
- }, f = D(!1), W = () => {
498
- f.value = !f.value, f.value && x("load-tariff");
499
- }, U = k0(), F = (s) => {
500
- s && s.link ? s.link.startsWith("http") ? window.open(s.link, "_blank", "noopener noreferrer") : U.push({ name: s.link }) : console.warn("Не знайдено viewName");
496
+ const y = () => {
497
+ window.document.body.offsetWidth < 1024 && !h.value && (h.value = !0);
498
+ }, d = F(!1), _ = () => {
499
+ d.value = !d.value, d.value && w("load-news");
500
+ }, J = (e) => {
501
+ var u;
502
+ (u = m.handlers) == null || u.onSetLang(e);
503
+ }, b = F(!1), Z = () => {
504
+ b.value = !b.value, b.value && w("load-tariff");
505
+ }, R = $0(), T = (e) => {
506
+ e && e.link ? e.link.startsWith("http") ? window.open(e.link, "_blank", "noopener noreferrer") : R.push({ name: e.link }) : console.warn("Не знайдено viewName");
501
507
  };
502
- return (s, v) => {
503
- var K, g, L, k, $, S, O, B, j, V, M, N, z, A, E, H, I, P, p;
504
- const n = o1("RouterLink");
505
- return t(), l("div", S0, [
506
- e("div", O0, [
507
- e("div", B0, [
508
- e("button", {
509
- onClick: v[0] || (v[0] = (a) => i.value = !i.value),
508
+ return (e, u) => {
509
+ var L, k, $, S, O, B, j, V, M, N, z, A, E, H, I, P, c, D, q;
510
+ const W = o1("RouterLink");
511
+ return s(), l("div", S0, [
512
+ t("div", O0, [
513
+ t("div", B0, [
514
+ t("button", {
515
+ onClick: u[0] || (u[0] = (n) => h.value = !h.value),
510
516
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"
511
517
  }, [
512
- h(m(y0), { class: "w-[24px] h-[24px]" })
518
+ C(v(y0), { class: "w-[24px] h-[24px]" })
513
519
  ])
514
520
  ]),
515
- e("div", j0, [
516
- s.logoSrc != null ? (t(), l("img", {
521
+ t("div", j0, [
522
+ e.logoSrc != null ? (s(), l("img", {
517
523
  key: 0,
518
- src: s.logoSrc,
524
+ src: e.logoSrc,
519
525
  class: "w-8 h-8 mx-auto",
520
526
  alt: "logo"
521
- }, null, 8, V0)) : r("", !0)
527
+ }, null, 8, V0)) : a("", !0)
522
528
  ]),
523
- s.app != null ? (t(), _(n, {
529
+ e.app != null ? (s(), x(W, {
524
530
  key: 0,
525
531
  to: "/",
526
532
  class: "pl-2 max-w-xs"
527
533
  }, {
528
534
  default: n1(() => {
529
- var a, y;
535
+ var n, g;
530
536
  return [
531
- e("div", M0, c(s.app.name), 1),
532
- e("div", N0, c((y = (a = s.app) == null ? void 0 : a.workspace) == null ? void 0 : y.name), 1)
537
+ t("div", M0, r(e.app.name), 1),
538
+ t("div", N0, r((g = (n = e.app) == null ? void 0 : n.workspace) == null ? void 0 : g.name), 1)
533
539
  ];
534
540
  }),
535
541
  _: 1
536
- })) : r("", !0),
537
- e("div", z0, [
538
- e("div", A0, [
539
- e("div", E0, [
540
- e1(s.$slots, "before-header-menu", {}, void 0, !0),
541
- (K = s.app) != null && K.help ? (t(), l("div", H0, [
542
- e("a", {
543
- href: (g = s.app) == null ? void 0 : g.help.url,
542
+ })) : a("", !0),
543
+ t("div", z0, [
544
+ t("div", A0, [
545
+ t("div", E0, [
546
+ e1(e.$slots, "before-header-menu"),
547
+ (L = e.app) != null && L.help ? (s(), l("div", H0, [
548
+ t("a", {
549
+ href: (k = e.app) == null ? void 0 : k.help.url,
544
550
  target: "_blank",
545
551
  title: "Help",
546
552
  class: "block btn-touch text-gray-dark"
547
553
  }, [
548
- h(m(g0), { class: "w-6 h-6 text-gray-600" })
554
+ C(v(L0), { class: "w-6 h-6 text-gray-600" })
549
555
  ], 8, I0)
550
- ])) : r("", !0),
551
- (L = s.app) != null && L.apps ? (t(), _(w1, {
556
+ ])) : a("", !0),
557
+ ($ = e.app) != null && $.apps ? (s(), x(m1, {
552
558
  key: 1,
553
- workspace: (k = s.app) == null ? void 0 : k.workspace,
554
- apps: (($ = s.app) == null ? void 0 : $.apps) || [],
555
- "change-label": ((S = s.labels) == null ? void 0 : S.change) || "Change",
556
- "apps-title": ((O = s.labels) == null ? void 0 : O.apps) || "Apps",
557
- "on-app": (B = s.handlers) == null ? void 0 : B.onApp,
558
- "on-change": (j = s.handlers) == null ? void 0 : j.onChange,
559
- onOpen: (V = s.handlers) == null ? void 0 : V.onBrowse
560
- }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : r("", !0),
561
- h(v1, {
562
- user: s.user,
563
- app: s.app,
564
- "account-label": ((M = s.labels) == null ? void 0 : M.account) || "Account",
565
- "logout-label": ((N = s.labels) == null ? void 0 : N.logout) || "Logout",
566
- "version-label": ((z = s.labels) == null ? void 0 : z.version) || "",
567
- "on-account": (A = s.handlers) == null ? void 0 : A.onAccount,
568
- "on-logout": (E = s.handlers) == null ? void 0 : E.onLogout
559
+ workspace: (S = e.app) == null ? void 0 : S.workspace,
560
+ apps: ((O = e.app) == null ? void 0 : O.apps) || [],
561
+ "change-label": ((B = e.labels) == null ? void 0 : B.change) || "Change",
562
+ "apps-title": ((j = e.labels) == null ? void 0 : j.apps) || "Apps",
563
+ "on-app": (V = e.handlers) == null ? void 0 : V.onApp,
564
+ "on-change": (M = e.handlers) == null ? void 0 : M.onChange,
565
+ onOpen: (N = e.handlers) == null ? void 0 : N.onBrowse
566
+ }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : a("", !0),
567
+ C(v1, {
568
+ user: e.user,
569
+ app: e.app,
570
+ "account-label": ((z = e.labels) == null ? void 0 : z.account) || "Account",
571
+ "logout-label": ((A = e.labels) == null ? void 0 : A.logout) || "Logout",
572
+ "version-label": ((E = e.labels) == null ? void 0 : E.version) || "",
573
+ "on-account": (H = e.handlers) == null ? void 0 : H.onAccount,
574
+ "on-logout": (I = e.handlers) == null ? void 0 : I.onLogout
569
575
  }, null, 8, ["user", "app", "account-label", "logout-label", "version-label", "on-account", "on-logout"])
570
576
  ])
571
577
  ])
572
578
  ])
573
579
  ]),
574
- e("div", {
575
- class: C(["sidebar absolute top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50", [i.value ? "w-0 lg:w-[60px]" : "w-full lg:w-60"]]),
580
+ t("div", {
581
+ class: f(["sidebar absolute top-[56px] left-0 overflow-hidden bg-white lg:bg-transparent transition-all z-50", [h.value ? "w-0 lg:w-[60px]" : "w-full lg:w-60"]]),
576
582
  style: { height: "calc(100% - 56px)" },
577
- onClick: q
583
+ onClick: y
578
584
  }, [
579
- h(b0, {
580
- slim: i.value,
581
- app: s.app,
582
- items: s.sidebarItems,
583
- "with-news": s.news != null,
584
- onShowTariff: W,
585
- news: s.news,
586
- onShowNews: b
585
+ C(g0, {
586
+ slim: h.value,
587
+ app: e.app,
588
+ items: e.sidebarItems,
589
+ "with-news": e.news != null,
590
+ onShowTariff: Z,
591
+ news: e.news,
592
+ onShowNews: _,
593
+ onSelectLanguage: J
587
594
  }, null, 8, ["slim", "app", "items", "with-news", "news"])
588
595
  ], 2),
589
- e("div", P0, [
590
- e("div", {
591
- class: C(["content transition-all pt-[56px] h-full overflow-auto", [i.value ? "pl-0 lg:pl-[60px]" : "pl-0 lg:pl-60"]])
596
+ t("div", P0, [
597
+ t("div", {
598
+ class: f(["content transition-all pt-[56px] h-full overflow-auto", [h.value ? "pl-0 lg:pl-[60px]" : "pl-0 lg:pl-60"]])
592
599
  }, [
593
- e1(s.$slots, "default", {}, void 0, !0)
600
+ e1(e.$slots, "default")
594
601
  ], 2)
595
602
  ]),
596
- s.news ? (t(), l("div", D0, [
597
- u.value ? (t(), l("div", {
603
+ e.news ? (s(), l("div", D0, [
604
+ d.value ? (s(), l("div", {
598
605
  key: 0,
599
606
  class: "fixed top-0 left-0 h-screen w-screen bg-gray-100 bg-opacity-40 z-50",
600
- onClick: v[1] || (v[1] = f1((a) => u.value = !1, ["self"]))
601
- })) : r("", !0),
602
- e("div", {
603
- class: C(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white", [u.value ? "w-96" : "w-0"]])
607
+ onClick: u[1] || (u[1] = w1((n) => d.value = !1, ["self"]))
608
+ })) : a("", !0),
609
+ t("div", {
610
+ class: f(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-screen overflow-hidden z-50 bg-white", [d.value ? "w-96" : "w-0"]])
604
611
  }, [
605
- u.value ? (t(), l("div", q0, [
606
- e("div", F0, [
607
- e("div", Z0, [
608
- h(p1, { class: "w-10 h-10" }),
612
+ d.value ? (s(), l("div", q0, [
613
+ t("div", F0, [
614
+ t("div", Z0, [
615
+ C(c1, { class: "w-10 h-10" }),
609
616
  R0,
610
- e("div", null, [
611
- h(J, {
617
+ t("div", null, [
618
+ C(X, {
612
619
  variant: "touch",
613
- icon: m(x1),
614
- onClick: v[2] || (v[2] = (a) => u.value = !1)
620
+ icon: v(_1),
621
+ onClick: u[2] || (u[2] = (n) => d.value = !1)
615
622
  }, null, 8, ["icon"])
616
623
  ])
617
624
  ]),
618
- e("div", T0, [
619
- s.news.isLoading && ((H = s.news.items) == null ? void 0 : H.length) === 0 ? (t(), l("div", W0, [
620
- h(m1, { class: "w-6 h-6 text-gray-600 mx-auto" })
621
- ])) : ((I = s.news.items) == null ? void 0 : I.length) === 0 ? (t(), l("div", U0, [
622
- e("div", K0, c(s.news.emptyText), 1)
623
- ])) : ((P = s.news.items) == null ? void 0 : P.length) > 0 ? (t(), l("div", G0, [
624
- (t(!0), l(R, null, T(s.news.items, (a) => (t(), l("div", {
625
- key: a.id,
625
+ t("div", T0, [
626
+ e.news.isLoading && ((P = e.news.items) == null ? void 0 : P.length) === 0 ? (s(), l("div", W0, [
627
+ C(x1, { class: "w-6 h-6 text-gray-600 mx-auto" })
628
+ ])) : ((c = e.news.items) == null ? void 0 : c.length) === 0 ? (s(), l("div", U0, [
629
+ t("div", K0, r(e.news.emptyText), 1)
630
+ ])) : ((D = e.news.items) == null ? void 0 : D.length) > 0 ? (s(), l("div", G0, [
631
+ (s(!0), l(K, null, G(e.news.items, (n) => (s(), l("div", {
632
+ key: n.id,
626
633
  class: "p-3"
627
634
  }, [
628
- e("div", J0, [
629
- e("div", null, [
630
- a.type ? (t(), l("div", Q0, [
631
- a.type === 10 ? (t(), l("span", X0, "update")) : a.type === 11 ? (t(), l("span", Y0, "warning")) : a.type === 12 ? (t(), l("span", ee, "notice")) : a.type === 13 ? (t(), l("span", te, "ads")) : r("", !0)
632
- ])) : r("", !0),
633
- e("div", se, c(a.title), 1),
634
- e("div", le, c(a.summary), 1)
635
+ t("div", J0, [
636
+ t("div", null, [
637
+ n.type ? (s(), l("div", Q0, [
638
+ n.type === 10 ? (s(), l("span", X0, "update")) : n.type === 11 ? (s(), l("span", Y0, "warning")) : n.type === 12 ? (s(), l("span", e9, "notice")) : n.type === 13 ? (s(), l("span", t9, "ads")) : a("", !0)
639
+ ])) : a("", !0),
640
+ t("div", s9, r(n.title), 1),
641
+ t("div", l9, r(n.summary), 1)
635
642
  ]),
636
- a.image_url ? (t(), l("div", oe, [
637
- e("img", {
638
- src: a.image_url,
643
+ n.image_url ? (s(), l("div", o9, [
644
+ t("img", {
645
+ src: n.image_url,
639
646
  alt: "",
640
647
  class: "w-full rounded-md"
641
- }, null, 8, ne)
642
- ])) : r("", !0),
643
- e("div", ae, c(a.body), 1),
644
- a.video_url ? (t(), l("div", re, [
645
- e("a", {
646
- href: a.video_url,
648
+ }, null, 8, n9)
649
+ ])) : a("", !0),
650
+ t("div", a9, r(n.body), 1),
651
+ n.video_url ? (s(), l("div", r9, [
652
+ t("a", {
653
+ href: n.video_url,
647
654
  target: "_blank",
648
655
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
649
- }, c(s.news.openVideoText), 9, ie)
650
- ])) : r("", !0),
651
- e("div", ce, [
652
- e("span", pe, c(a.published), 1),
653
- a.post_url ? (t(), l("a", {
656
+ }, r(e.news.openVideoText), 9, i9)
657
+ ])) : a("", !0),
658
+ t("div", c9, [
659
+ t("span", p9, r(n.published), 1),
660
+ n.post_url ? (s(), l("a", {
654
661
  key: 0,
655
- href: a.post_url,
662
+ href: n.post_url,
656
663
  target: "_blank",
657
664
  class: "text-blue-600 hover:text-blue-700 block"
658
- }, c(s.news.moreText), 9, de)) : r("", !0)
665
+ }, r(e.news.moreText), 9, d9)) : a("", !0)
659
666
  ])
660
667
  ])
661
668
  ]))), 128))
662
- ])) : r("", !0)
669
+ ])) : a("", !0)
663
670
  ])
664
671
  ])
665
- ])) : r("", !0)
672
+ ])) : a("", !0)
666
673
  ], 2)
667
- ])) : r("", !0),
668
- f.value ? (t(), l("div", {
674
+ ])) : a("", !0),
675
+ b.value ? (s(), l("div", {
669
676
  key: 1,
670
- class: C(["absolute left-[260px] bottom-0", [i.value ? "hidden" : "w-max"]])
677
+ class: f(["absolute left-[260px] bottom-0", [h.value ? "hidden" : "w-max"]])
671
678
  }, [
672
- (t(!0), l(R, null, T((p = s.app) == null ? void 0 : p.availablePlans, (a) => (t(), l("div", {
673
- key: a.name,
679
+ (s(!0), l(K, null, G((q = e.app) == null ? void 0 : q.availablePlans, (n) => (s(), l("div", {
680
+ key: n.name,
674
681
  class: "ml-3 flex justify-between border rounded-lg p-2 bg-[#F5F5F5] mb-3 w-[240px]"
675
682
  }, [
676
- e("div", ue, [
677
- h(m(d1), { class: "w-[24px] h-[24px]" }),
678
- e("div", null, [
679
- e("p", he, c(a.name || "Free"), 1),
680
- e("p", Ce, c(a.title || "Тарифний план"), 1)
683
+ t("div", u9, [
684
+ C(v(p1), { class: "w-[24px] h-[24px]" }),
685
+ t("div", null, [
686
+ t("p", h9, r(n.name || "Free"), 1),
687
+ t("p", C9, r(n.title || "Тарифний план"), 1)
681
688
  ])
682
689
  ]),
683
- e("div", null, [
684
- h(J, {
690
+ t("div", null, [
691
+ C(X, {
685
692
  class: "text-[#525B66] hover:text-[#4089E0]",
686
693
  variant: "touch",
687
- icon: m(i1),
688
- onClick: (y) => F(a)
694
+ icon: v(r1),
695
+ onClick: (g) => T(n)
689
696
  }, null, 8, ["icon", "onClick"])
690
697
  ])
691
698
  ]))), 128))
692
- ], 2)) : r("", !0)
699
+ ], 2)) : a("", !0)
693
700
  ]);
694
701
  };
695
702
  }
696
703
  });
697
- const ge = /* @__PURE__ */ X(fe, [["__scopeId", "data-v-6b3e087b"]]);
698
704
  export {
699
- ge as OneMainLayout,
700
- b0 as OneSidebar
705
+ b9 as OneMainLayout,
706
+ g0 as OneSidebar
701
707
  };
@@ -37,9 +37,10 @@ export type AppType = {
37
37
  support: LinkType;
38
38
  terms: LinkType;
39
39
  offer: LinkType;
40
+ lang: string;
40
41
  availableLang: Array<{
41
- label: string;
42
- code: string;
42
+ name: string;
43
+ id: string;
43
44
  }>;
44
45
  apps: Array<{
45
46
  id: string;
@@ -198,6 +199,7 @@ export declare const mainLayoutProps: {
198
199
  onBrowse: (e?: any) => void;
199
200
  onAccount: (e?: any) => void;
200
201
  onLogout: (e?: any) => void;
202
+ onSetLang: (e?: any) => void;
201
203
  }>;
202
204
  };
203
205
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .text9[data-v-343cd4ac]{font-size:9px}.h-browser[data-v-343cd4ac]{height:calc(100% - 75px)}.text8[data-v-57d3d3f4]{font-size:8px}.dropdown[data-v-57d3d3f4]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.text8[data-v-6b3e087b]{font-size:10px}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
1
+ .dropdown[data-v-4988837e]{position:absolute;background:white;border:1px solid #ccc;border-radius:5px;padding:10px;bottom:100%;left:0}.text9[data-v-343cd4ac]{font-size:9px}.h-browser[data-v-343cd4ac]{height:calc(100% - 75px)}@keyframes one-sp-ico-rot{to{transform:rotate(360deg)}}@keyframes one-sp-ico-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneb/ui-vue",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [