@oneb/ui-vue 0.0.42 → 0.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("../_plugin-vue_export-helper-f246444f.cjs"),D=require("../XMarkIcon-f94baa4c.cjs"),V=require("../OneBrowserMenu.vue_vue_type_script_setup_true_lang-4b350df0.cjs"),N=require("../index-e804f148.cjs");require("../common/index.cjs");const E={items:{required:!0,type:Array},slim:{type:Boolean,default:!0},support:{type:Object},news:{type:Object}},q={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},href:{type:String},label:{type:String,required:!0},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0}},z={sidebarItems:E.items,logoSrc:{type:String},helpUrl:{type:String},app:{required:!0,type:Object},user:{type:Object,required:!0},labels:{type:Object},support:{type:Object},news:{type:Object},handlers:{type:Object}},H=["href"],I={class:"flex flex-nowrap items-center w-full h-[24px]"},Z={key:0,class:"w-[44px] flex-shrink-0"},A={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},T={class:"py-[8px] pl-0 pr-[8px]"},F={class:"flex flex-nowrap items-center w-full h-[24px]"},P={key:0,class:"w-[44px] flex-shrink-0"},R={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},U={class:"py-[8px] pl-0 pr-[8px]"},W=e.defineComponent({__name:"OneSidebarLink",props:q,setup(a){const s=a,p=e.computed(()=>s.href!=null?s.href:!1),m=e.computed(()=>s.route!=null?s.route:s.routeName!=null?{name:s.routeName}:"/");return(l,r)=>{const n=e.resolveComponent("RouterLink");return p.value?(e.openBlock(),e.createElementBlock("a",{key:0,href: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-primary-content",[l.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]])},[e.createElementVNode("div",I,[l.icon?(e.openBlock(),e.createElementBlock("div",Z,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",A,[e.createElementVNode("span",T,e.toDisplayString(l.label),1)])]),e.createTextVNode(" >")],10,H)):(e.openBlock(),e.createBlock(n,{key:1,to: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-primary-content",[l.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":l.exact?"":"bg-primary-10 !text-primary-base","exact-active-class":l.exact?"bg-primary-10 !text-primary-base":"",exact:l.exact},{default:e.withCtx(()=>[e.createElementVNode("div",F,[l.icon?(e.openBlock(),e.createElementBlock("div",P,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",R,[e.createElementVNode("span",U,e.toDisplayString(l.label),1)])])]),_:1},8,["to","active-class","exact-active-class","exact","class"]))}}}),X={},G={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},J=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),K=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),Q=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),Y=[J,K,Q];function e1(a,s){return e.openBlock(),e.createElementBlock("svg",G,Y)}const S=j._export_sfc(X,[["render",e1]]);function t1(a,s){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:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"})])}const o1={class:"h-full"},l1={class:"space-y-1 p-2 h-full relative"},n1={class:"absolute left-2 bottom-2 right-2"},s1=["href"],r1={class:"flex flex-nowrap items-center w-full h-[24px]"},a1={class:"w-[44px] flex-shrink-0 relative"},c1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},i1={class:"py-[8px] pl-0 pr-[8px]"},d1={class:"flex flex-nowrap items-center w-full h-[24px]"},p1={class:"w-[44px] flex-shrink-0 relative"},m1={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},C1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},u1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},h1={class:"py-[8px] pl-0 pr-[8px]"},$=e.defineComponent({__name:"OneSidebar",props:E,emits:["show-news"],setup(a,{emit:s}){const p=s,m=a,l=e.computed(()=>{var n;return((n=m.news)==null?void 0:n.unseenCount)||0}),r=()=>{p("show-news")};return(n,c)=>(e.openBlock(),e.createElementBlock("div",o1,[e.createElementVNode("div",l1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,i=>(e.openBlock(),e.createBlock(W,{key:i.label,icon:i.icon,label:i.label,route:i.route,href:i.href,"route-name":i.routeName,exact:i.exact||!1,slim:n.slim},null,8,["icon","label","route","href","route-name","exact","slim"]))),128)),e.createElementVNode("div",n1,[n.support?(e.openBlock(),e.createElementBlock("a",{key:0,href:n.support.url,target:"_blank",class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]])},[e.createElementVNode("div",r1,[e.createElementVNode("div",a1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t1)),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("div",c1,[e.createElementVNode("span",i1,e.toDisplayString(n.support.menuLabel||"Support"),1)])])],10,s1)):e.createCommentVNode("",!0),n.news?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:r},[e.createElementVNode("div",d1,[e.createElementVNode("div",p1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S),{class:"w-[24px] h-[24px] mx-auto"})),l.value>0?(e.openBlock(),e.createElementBlock("span",m1)):e.createCommentVNode("",!0),l.value>0?(e.openBlock(),e.createElementBlock("span",C1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",u1,[e.createElementVNode("span",h1,e.toDisplayString(n.news.menuLabel||"News"),1)])])],2)):e.createCommentVNode("",!0)])])]))}});function w1(a,s){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 f1(a,s){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}const k1={class:"h-full relative"},_1={class:"header h-[56px] flex items-center flex-nowrap absolute top-0 left-0 w-full"},v1={class:"p-2 flex-shrink-0"},x1={class:"w-10 h-10 bg-white flex items-center flex-shrink-0"},L1=["src"],y1={class:"whitespace-nowrap font-semibold text-xl"},g1={class:"text-xs whitespace-nowrap"},b1={class:"w-full"},B1={class:"w-full flex justify-end pr-3"},V1={class:"flex items-center space-x-3"},N1={key:0,class:"sm:block flex-shrink-0 hidden"},E1=["href"],S1={class:"body w-full h-full"},$1={key:0},M1={key:0,class:"w-96 relative h-full"},O1={class:"h-full relative"},j1={class:"flex items-center p-3 space-x-1.5"},D1=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1),q1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},z1={key:0,class:"p-5"},H1={key:1},I1={class:"p-4 text-gray text-center"},Z1={key:2},A1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},T1={key:0},F1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},P1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},R1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},U1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},W1={class:"text-lg font-medium"},X1={class:"text-sm text-gray-600"},G1={key:0},J1=["src"],K1={class:"text-sm whitespace-pre-wrap break-words"},Q1={key:1},Y1=["href"],ee={class:"text-sm flex items-center justify-between mt-1"},te={class:"text-gray-800"},oe=["href"],le=e.defineComponent({__name:"OneMainLayout",props:z,emits:["load-news"],setup(a,{emit:s}){const p=s,m=a;let l=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),l="1");const r=e.ref(l==="1");e.watch(r,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const n=()=>{window.document.body.offsetWidth<1024&&!r.value&&(r.value=!0)},c=e.ref(!1),i=()=>{c.value=!c.value,c.value&&p("load-news")},M=e.computed(()=>{var t,d;return{name:((t=m.app)==null?void 0:t.workspace)||"",photo_url:((d=m.app)==null?void 0:d.photo_url)||""}});return(t,d)=>{var C,u,h,w,f,k,_,v,x,L,y,g,b,B;const O=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",k1,[e.createElementVNode("div",_1,[e.createElementVNode("div",v1,[e.createElementVNode("button",{onClick:d[0]||(d[0]=o=>r.value=!r.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"},[e.createVNode(e.unref(w1),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",x1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,L1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(O,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>[e.createElementVNode("div",y1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",g1,e.toDisplayString(t.app.workspace),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",b1,[e.createElementVNode("div",B1,[e.createElementVNode("div",V1,[e.renderSlot(t.$slots,"before-header-menu"),t.helpUrl?(e.openBlock(),e.createElementBlock("div",N1,[e.createElementVNode("a",{href:t.helpUrl,target:"_blank",title:"Help",class:"block btn-touch text-gray-dark"},[e.createVNode(e.unref(f1),{class:"w-6 h-6 text-gray-600"})],8,E1)])):e.createCommentVNode("",!0),(C=t.app)!=null&&C.apps?(e.openBlock(),e.createBlock(V._sfc_main$3,{key:1,workspace:M.value,apps:((u=t.app)==null?void 0:u.apps)||[],"change-label":((h=t.labels)==null?void 0:h.change)||"Change","apps-title":((w=t.labels)==null?void 0:w.apps)||"Apps","on-app":(f=t.handlers)==null?void 0:f.onApp,"on-change":(k=t.handlers)==null?void 0:k.onChange,onOpen:(_=t.handlers)==null?void 0:_.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(V._sfc_main$2,{user:t.user,"account-label":((v=t.labels)==null?void 0:v.account)||"Account","logout-label":((x=t.labels)==null?void 0:x.logout)||"Logout","on-account":(L=t.handlers)==null?void 0:L.onAccount,"on-logout":(y=t.handlers)==null?void 0:y.onLogout},null,8,["user","account-label","logout-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",[r.value?"w-0 lg:w-[60px]":"w-full lg:w-60"]]),style:{height:"calc(100% - 56px)"},onClick:n},[e.createVNode($,{slim:r.value,items:t.sidebarItems,"with-news":t.news!=null,support:t.support,news:t.news,onShowNews:i},null,8,["slim","items","with-news","support","news"])],2),e.createElementVNode("div",S1,[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all pt-[56px] h-full overflow-auto",[r.value?"pl-0 lg:pl-[60px]":"pl-0 lg:pl-60"]])},[e.renderSlot(t.$slots,"default")],2)]),t.news?(e.openBlock(),e.createElementBlock("div",$1,[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:d[1]||(d[1]=e.withModifiers(o=>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",M1,[e.createElementVNode("div",O1,[e.createElementVNode("div",j1,[e.createVNode(S,{class:"w-10 h-10"}),D1,e.createElementVNode("div",null,[e.createVNode(N._sfc_main,{variant:"touch",icon:e.unref(D.render),onClick:d[2]||(d[2]=o=>c.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",q1,[t.news.isLoading&&((g=t.news.items)==null?void 0:g.length)===0?(e.openBlock(),e.createElementBlock("div",z1,[e.createVNode(N.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((b=t.news.items)==null?void 0:b.length)===0?(e.openBlock(),e.createElementBlock("div",H1,[e.createElementVNode("div",I1,e.toDisplayString(t.news.emptyText),1)])):((B=t.news.items)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("div",Z1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"p-3"},[e.createElementVNode("div",A1,[e.createElementVNode("div",null,[o.type?(e.openBlock(),e.createElementBlock("div",T1,[o.type===10?(e.openBlock(),e.createElementBlock("span",F1,"update")):o.type===11?(e.openBlock(),e.createElementBlock("span",P1,"warning")):o.type===12?(e.openBlock(),e.createElementBlock("span",R1,"notice")):o.type===13?(e.openBlock(),e.createElementBlock("span",U1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",W1,e.toDisplayString(o.title),1),e.createElementVNode("div",X1,e.toDisplayString(o.summary),1)]),o.image_url?(e.openBlock(),e.createElementBlock("div",G1,[e.createElementVNode("img",{src:o.image_url,alt:"",class:"w-full rounded-md"},null,8,J1)])):e.createCommentVNode("",!0),e.createElementVNode("div",K1,e.toDisplayString(o.body),1),o.video_url?(e.openBlock(),e.createElementBlock("div",Q1,[e.createElementVNode("a",{href:o.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,Y1)])):e.createCommentVNode("",!0),e.createElementVNode("div",ee,[e.createElementVNode("span",te,e.toDisplayString(o.published),1),o.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,oe)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});exports.OneMainLayout=le;exports.OneSidebar=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("../_plugin-vue_export-helper-f246444f.cjs"),D=require("../XMarkIcon-f94baa4c.cjs"),V=require("../OneBrowserMenu.vue_vue_type_script_setup_true_lang-4b350df0.cjs"),N=require("../index-e804f148.cjs");require("../common/index.cjs");const E={items:{required:!0,type:Array},slim:{type:Boolean,default:!0},support:{type:Object},news:{type:Object}},q={route:{required:!1,type:[Object,String]},routeName:{required:!1,type:String},handler:{required:!1,type:Function,default(){return()=>{}}},href:{type:String},label:{type:String,required:!0},icon:{type:[Function,Object]},exact:{type:Boolean,required:!1,default:!1},slim:{type:Boolean,default:!0}},z={sidebarItems:E.items,logoSrc:{type:String},helpUrl:{type:String},app:{required:!0,type:Object},user:{type:Object,required:!0},labels:{type:Object},support:{type:Object},news:{type:Object},handlers:{type:Object}},H=["href"],I={class:"flex flex-nowrap items-center w-full h-[24px]"},Z={key:0,class:"w-[44px] flex-shrink-0"},A={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},F={class:"py-[8px] pl-0 pr-[8px]"},P={class:"flex flex-nowrap items-center w-full h-[24px]"},R={key:0,class:"w-[44px] flex-shrink-0"},T={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},U={class:"py-[8px] pl-0 pr-[8px]"},W=e.defineComponent({__name:"OneSidebarLink",props:q,setup(a){const s=a,p=e.computed(()=>s.href!=null?s.href:!1),m=e.computed(()=>s.route!=null?s.route:s.routeName!=null?{name:s.routeName}:"/");return(l,r)=>{const n=e.resolveComponent("RouterLink");return p.value?(e.openBlock(),e.createElementBlock("a",{key:0,href: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-primary-content",[l.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]])},[e.createElementVNode("div",I,[l.icon?(e.openBlock(),e.createElementBlock("div",Z,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",A,[e.createElementVNode("span",F,e.toDisplayString(l.label),1)])])],10,H)):(e.openBlock(),e.createBlock(n,{key:1,to: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-primary-content",[l.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),"active-class":l.exact?"":"bg-primary-10 !text-primary-base","exact-active-class":l.exact?"bg-primary-10 !text-primary-base":"",exact:l.exact},{default:e.withCtx(()=>[e.createElementVNode("div",P,[l.icon?(e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon),{class:"w-[24px] h-[24px] mx-auto"}))])):e.createCommentVNode("",!0),e.createElementVNode("div",T,[e.createElementVNode("span",U,e.toDisplayString(l.label),1)])])]),_:1},8,["to","active-class","exact-active-class","exact","class"]))}}}),X={},G={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},J=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),K=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),Q=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),Y=[J,K,Q];function e1(a,s){return e.openBlock(),e.createElementBlock("svg",G,Y)}const S=j._export_sfc(X,[["render",e1]]);function t1(a,s){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:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"})])}const o1={class:"h-full"},l1={class:"space-y-1 p-2 h-full relative"},n1={class:"absolute left-2 bottom-2 right-2"},s1=["href"],r1={class:"flex flex-nowrap items-center w-full h-[24px]"},a1={class:"w-[44px] flex-shrink-0 relative"},c1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},i1={class:"py-[8px] pl-0 pr-[8px]"},d1={class:"flex flex-nowrap items-center w-full h-[24px]"},p1={class:"w-[44px] flex-shrink-0 relative"},m1={key:0,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"},C1={key:1,class:"absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"},u1={class:"whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"},h1={class:"py-[8px] pl-0 pr-[8px]"},$=e.defineComponent({__name:"OneSidebar",props:E,emits:["show-news"],setup(a,{emit:s}){const p=s,m=a,l=e.computed(()=>{var n;return((n=m.news)==null?void 0:n.unseenCount)||0}),r=()=>{p("show-news")};return(n,c)=>(e.openBlock(),e.createElementBlock("div",o1,[e.createElementVNode("div",l1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,i=>(e.openBlock(),e.createBlock(W,{key:i.label,icon:i.icon,label:i.label,route:i.route,href:i.href,"route-name":i.routeName,exact:i.exact||!1,slim:n.slim},null,8,["icon","label","route","href","route-name","exact","slim"]))),128)),e.createElementVNode("div",n1,[n.support?(e.openBlock(),e.createElementBlock("a",{key:0,href:n.support.url,target:"_blank",class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]])},[e.createElementVNode("div",r1,[e.createElementVNode("div",a1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t1)),{class:"w-[24px] h-[24px] mx-auto"}))]),e.createElementVNode("div",c1,[e.createElementVNode("span",i1,e.toDisplayString(n.support.menuLabel||"Support"),1)])])],10,s1)):e.createCommentVNode("",!0),n.news?(e.openBlock(),e.createElementBlock("a",{key:1,href:"#",class:e.normalizeClass(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content",[n.slim?"w-[44px] h-[44px]":"h-[44px] w-full"]]),onClick:r},[e.createElementVNode("div",d1,[e.createElementVNode("div",p1,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S),{class:"w-[24px] h-[24px] mx-auto"})),l.value>0?(e.openBlock(),e.createElementBlock("span",m1)):e.createCommentVNode("",!0),l.value>0?(e.openBlock(),e.createElementBlock("span",C1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",u1,[e.createElementVNode("span",h1,e.toDisplayString(n.news.menuLabel||"News"),1)])])],2)):e.createCommentVNode("",!0)])])]))}});function w1(a,s){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 f1(a,s){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})])}const k1={class:"h-full relative"},_1={class:"header h-[56px] flex items-center flex-nowrap absolute top-0 left-0 w-full"},v1={class:"p-2 flex-shrink-0"},x1={class:"w-10 h-10 bg-white flex items-center flex-shrink-0"},L1=["src"],y1={class:"whitespace-nowrap font-semibold text-xl"},g1={class:"text-xs whitespace-nowrap"},b1={class:"w-full"},B1={class:"w-full flex justify-end pr-3"},V1={class:"flex items-center space-x-3"},N1={key:0,class:"sm:block flex-shrink-0 hidden"},E1=["href"],S1={class:"body w-full h-full"},$1={key:0},M1={key:0,class:"w-96 relative h-full"},O1={class:"h-full relative"},j1={class:"flex items-center p-3 space-x-1.5"},D1=e.createElementVNode("div",{class:"w-full font-medium"},"OneB News",-1),q1={class:"overflow-auto",style:{height:"calc(100% - 62px)"}},z1={key:0,class:"p-5"},H1={key:1},I1={class:"p-4 text-gray text-center"},Z1={key:2},A1={class:"p-3 space-y-1.5 rounded-lg",style:{"box-shadow":"0 0 6px #eaeaea"}},F1={key:0},P1={key:0,class:"text-xs px-2 py-1 rounded-md bg-green-600 text-white"},R1={key:1,class:"text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"},T1={key:2,class:"text-xs px-2 py-1 rounded-md bg-blue-600 text-white"},U1={key:3,class:"text-xs px-2 py-1 rounded-md bg-gray-600 text-white"},W1={class:"text-lg font-medium"},X1={class:"text-sm text-gray-600"},G1={key:0},J1=["src"],K1={class:"text-sm whitespace-pre-wrap break-words"},Q1={key:1},Y1=["href"],ee={class:"text-sm flex items-center justify-between mt-1"},te={class:"text-gray-800"},oe=["href"],le=e.defineComponent({__name:"OneMainLayout",props:z,emits:["load-news"],setup(a,{emit:s}){const p=s,m=a;let l=window.localStorage.getItem("sidebar-slim");window.document.body.offsetWidth<1024&&(window.localStorage.getItem("sidebar-slim")==null&&window.localStorage.setItem("sidebar-slim","1"),l="1");const r=e.ref(l==="1");e.watch(r,t=>{window.localStorage.setItem("sidebar-slim",String(t?1:0))});const n=()=>{window.document.body.offsetWidth<1024&&!r.value&&(r.value=!0)},c=e.ref(!1),i=()=>{c.value=!c.value,c.value&&p("load-news")},M=e.computed(()=>{var t,d;return{name:((t=m.app)==null?void 0:t.workspace)||"",photo_url:((d=m.app)==null?void 0:d.photo_url)||""}});return(t,d)=>{var C,u,h,w,f,k,_,v,x,L,y,g,b,B;const O=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",k1,[e.createElementVNode("div",_1,[e.createElementVNode("div",v1,[e.createElementVNode("button",{onClick:d[0]||(d[0]=o=>r.value=!r.value),class:"w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"},[e.createVNode(e.unref(w1),{class:"w-[24px] h-[24px]"})])]),e.createElementVNode("div",x1,[t.logoSrc!=null?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.logoSrc,class:"w-8 h-8 mx-auto",alt:"logo"},null,8,L1)):e.createCommentVNode("",!0)]),t.app!=null?(e.openBlock(),e.createBlock(O,{key:0,to:"/",class:"pl-2 max-w-xs"},{default:e.withCtx(()=>[e.createElementVNode("div",y1,e.toDisplayString(t.app.name),1),e.createElementVNode("div",g1,e.toDisplayString(t.app.workspace),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",b1,[e.createElementVNode("div",B1,[e.createElementVNode("div",V1,[e.renderSlot(t.$slots,"before-header-menu"),t.helpUrl?(e.openBlock(),e.createElementBlock("div",N1,[e.createElementVNode("a",{href:t.helpUrl,target:"_blank",title:"Help",class:"block btn-touch text-gray-dark"},[e.createVNode(e.unref(f1),{class:"w-6 h-6 text-gray-600"})],8,E1)])):e.createCommentVNode("",!0),(C=t.app)!=null&&C.apps?(e.openBlock(),e.createBlock(V._sfc_main$3,{key:1,workspace:M.value,apps:((u=t.app)==null?void 0:u.apps)||[],"change-label":((h=t.labels)==null?void 0:h.change)||"Change","apps-title":((w=t.labels)==null?void 0:w.apps)||"Apps","on-app":(f=t.handlers)==null?void 0:f.onApp,"on-change":(k=t.handlers)==null?void 0:k.onChange,onOpen:(_=t.handlers)==null?void 0:_.onBrowse},null,8,["workspace","apps","change-label","apps-title","on-app","on-change","onOpen"])):e.createCommentVNode("",!0),e.createVNode(V._sfc_main$2,{user:t.user,"account-label":((v=t.labels)==null?void 0:v.account)||"Account","logout-label":((x=t.labels)==null?void 0:x.logout)||"Logout","on-account":(L=t.handlers)==null?void 0:L.onAccount,"on-logout":(y=t.handlers)==null?void 0:y.onLogout},null,8,["user","account-label","logout-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",[r.value?"w-0 lg:w-[60px]":"w-full lg:w-60"]]),style:{height:"calc(100% - 56px)"},onClick:n},[e.createVNode($,{slim:r.value,items:t.sidebarItems,"with-news":t.news!=null,support:t.support,news:t.news,onShowNews:i},null,8,["slim","items","with-news","support","news"])],2),e.createElementVNode("div",S1,[e.createElementVNode("div",{class:e.normalizeClass(["content transition-all pt-[56px] h-full overflow-auto",[r.value?"pl-0 lg:pl-[60px]":"pl-0 lg:pl-60"]])},[e.renderSlot(t.$slots,"default")],2)]),t.news?(e.openBlock(),e.createElementBlock("div",$1,[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:d[1]||(d[1]=e.withModifiers(o=>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",M1,[e.createElementVNode("div",O1,[e.createElementVNode("div",j1,[e.createVNode(S,{class:"w-10 h-10"}),D1,e.createElementVNode("div",null,[e.createVNode(N._sfc_main,{variant:"touch",icon:e.unref(D.render),onClick:d[2]||(d[2]=o=>c.value=!1)},null,8,["icon"])])]),e.createElementVNode("div",q1,[t.news.isLoading&&((g=t.news.items)==null?void 0:g.length)===0?(e.openBlock(),e.createElementBlock("div",z1,[e.createVNode(N.SpinnerIcon,{class:"w-6 h-6 text-gray-600 mx-auto"})])):((b=t.news.items)==null?void 0:b.length)===0?(e.openBlock(),e.createElementBlock("div",H1,[e.createElementVNode("div",I1,e.toDisplayString(t.news.emptyText),1)])):((B=t.news.items)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("div",Z1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news.items,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"p-3"},[e.createElementVNode("div",A1,[e.createElementVNode("div",null,[o.type?(e.openBlock(),e.createElementBlock("div",F1,[o.type===10?(e.openBlock(),e.createElementBlock("span",P1,"update")):o.type===11?(e.openBlock(),e.createElementBlock("span",R1,"warning")):o.type===12?(e.openBlock(),e.createElementBlock("span",T1,"notice")):o.type===13?(e.openBlock(),e.createElementBlock("span",U1,"ads")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",W1,e.toDisplayString(o.title),1),e.createElementVNode("div",X1,e.toDisplayString(o.summary),1)]),o.image_url?(e.openBlock(),e.createElementBlock("div",G1,[e.createElementVNode("img",{src:o.image_url,alt:"",class:"w-full rounded-md"},null,8,J1)])):e.createCommentVNode("",!0),e.createElementVNode("div",K1,e.toDisplayString(o.body),1),o.video_url?(e.openBlock(),e.createElementBlock("div",Q1,[e.createElementVNode("a",{href:o.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,Y1)])):e.createCommentVNode("",!0),e.createElementVNode("div",ee,[e.createElementVNode("span",te,e.toDisplayString(o.published),1),o.post_url?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.post_url,target:"_blank",class:"text-blue-600 hover:text-blue-700 block"},e.toDisplayString(t.news.moreText),9,oe)):e.createCommentVNode("",!0)])])]))),128))])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)])}}});exports.OneMainLayout=le;exports.OneSidebar=$;
@@ -1,10 +1,10 @@
1
- import { defineComponent as b, computed as L, resolveComponent as R, openBlock as t, createElementBlock as l, normalizeClass as f, createElementVNode as e, createBlock as m, resolveDynamicComponent as y, createCommentVNode as n, toDisplayString as c, createTextVNode as G, withCtx as T, Fragment as U, renderList as F, unref as v, ref as Z, watch as J, createVNode as w, renderSlot as A, withModifiers as K } from "vue";
2
- import { _ as Q } from "../_plugin-vue_export-helper-dad06003.js";
3
- import { r as X } from "../XMarkIcon-51ef0691.js";
4
- import { c as Y, b as e1 } from "../OneBrowserMenu.vue_vue_type_script_setup_true_lang-b65a0a0a.js";
5
- import { _ as t1, S as s1 } from "../index-72d69e4e.js";
1
+ import { defineComponent as b, computed as L, resolveComponent as R, openBlock as t, createElementBlock as l, normalizeClass as f, createElementVNode as e, createBlock as m, resolveDynamicComponent as y, createCommentVNode as n, toDisplayString as c, withCtx as U, Fragment as F, renderList as P, unref as v, ref as Z, watch as G, createVNode as w, renderSlot as A, withModifiers as J } from "vue";
2
+ import { _ as K } from "../_plugin-vue_export-helper-dad06003.js";
3
+ import { r as Q } from "../XMarkIcon-51ef0691.js";
4
+ import { c as X, b as Y } from "../OneBrowserMenu.vue_vue_type_script_setup_true_lang-b65a0a0a.js";
5
+ import { _ as e1, S as t1 } from "../index-72d69e4e.js";
6
6
  import "../common/index.js";
7
- const P = {
7
+ const T = {
8
8
  items: {
9
9
  required: !0,
10
10
  type: Array
@@ -19,7 +19,7 @@ const P = {
19
19
  news: {
20
20
  type: Object
21
21
  }
22
- }, l1 = {
22
+ }, s1 = {
23
23
  route: {
24
24
  required: !1,
25
25
  type: [Object, String]
@@ -55,8 +55,8 @@ const P = {
55
55
  type: Boolean,
56
56
  default: !0
57
57
  }
58
- }, o1 = {
59
- sidebarItems: P.items,
58
+ }, l1 = {
59
+ sidebarItems: T.items,
60
60
  logoSrc: {
61
61
  type: String
62
62
  },
@@ -83,15 +83,15 @@ const P = {
83
83
  handlers: {
84
84
  type: Object
85
85
  }
86
- }, n1 = ["href"], r1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, a1 = {
86
+ }, o1 = ["href"], n1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, r1 = {
87
87
  key: 0,
88
88
  class: "w-[44px] flex-shrink-0"
89
- }, i1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, c1 = { class: "py-[8px] pl-0 pr-[8px]" }, p1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, d1 = {
89
+ }, a1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, i1 = { class: "py-[8px] pl-0 pr-[8px]" }, c1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, p1 = {
90
90
  key: 0,
91
91
  class: "w-[44px] flex-shrink-0"
92
- }, u1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, C1 = { class: "py-[8px] pl-0 pr-[8px]" }, h1 = /* @__PURE__ */ b({
92
+ }, d1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, u1 = { class: "py-[8px] pl-0 pr-[8px]" }, C1 = /* @__PURE__ */ b({
93
93
  __name: "OneSidebarLink",
94
- props: l1,
94
+ props: s1,
95
95
  setup(d) {
96
96
  const i = d, x = L(() => i.href != null ? i.href : !1), _ = L(() => i.route != null ? i.route : i.routeName != null ? { name: i.routeName } : "/");
97
97
  return (r, p) => {
@@ -101,16 +101,15 @@ const P = {
101
101
  href: x.value,
102
102
  class: f(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content", [r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]])
103
103
  }, [
104
- e("div", r1, [
105
- r.icon ? (t(), l("div", a1, [
104
+ e("div", n1, [
105
+ r.icon ? (t(), l("div", r1, [
106
106
  (t(), m(y(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
107
107
  ])) : n("", !0),
108
- e("div", i1, [
109
- e("span", c1, c(r.label), 1)
108
+ e("div", a1, [
109
+ e("span", i1, c(r.label), 1)
110
110
  ])
111
- ]),
112
- G(" >")
113
- ], 10, n1)) : (t(), m(a, {
111
+ ])
112
+ ], 10, o1)) : (t(), m(a, {
114
113
  key: 1,
115
114
  to: _.value,
116
115
  class: f(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content", [r.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
@@ -118,13 +117,13 @@ const P = {
118
117
  "exact-active-class": r.exact ? "bg-primary-10 !text-primary-base" : "",
119
118
  exact: r.exact
120
119
  }, {
121
- default: T(() => [
122
- e("div", p1, [
123
- r.icon ? (t(), l("div", d1, [
120
+ default: U(() => [
121
+ e("div", c1, [
122
+ r.icon ? (t(), l("div", p1, [
124
123
  (t(), m(y(r.icon), { class: "w-[24px] h-[24px] mx-auto" }))
125
124
  ])) : n("", !0),
126
- e("div", u1, [
127
- e("span", C1, c(r.label), 1)
125
+ e("div", d1, [
126
+ e("span", u1, c(r.label), 1)
128
127
  ])
129
128
  ])
130
129
  ]),
@@ -132,33 +131,33 @@ const P = {
132
131
  }, 8, ["to", "active-class", "exact-active-class", "exact", "class"]));
133
132
  };
134
133
  }
135
- }), m1 = {}, w1 = {
134
+ }), h1 = {}, m1 = {
136
135
  xmlns: "http://www.w3.org/2000/svg",
137
136
  width: "24",
138
137
  height: "24",
139
138
  viewBox: "0 0 24 24",
140
139
  fill: "none"
141
- }, f1 = /* @__PURE__ */ e("path", {
140
+ }, w1 = /* @__PURE__ */ e("path", {
142
141
  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",
143
142
  fill: "currentColor"
144
- }, null, -1), x1 = /* @__PURE__ */ e("path", {
143
+ }, null, -1), f1 = /* @__PURE__ */ e("path", {
145
144
  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",
146
145
  fill: "currentColor"
147
- }, null, -1), _1 = /* @__PURE__ */ e("path", {
146
+ }, null, -1), x1 = /* @__PURE__ */ e("path", {
148
147
  "fill-rule": "evenodd",
149
148
  "clip-rule": "evenodd",
150
149
  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",
151
150
  fill: "currentColor"
152
- }, null, -1), v1 = [
151
+ }, null, -1), _1 = [
152
+ w1,
153
153
  f1,
154
- x1,
155
- _1
154
+ x1
156
155
  ];
157
- function L1(d, i) {
158
- return t(), l("svg", w1, v1);
156
+ function v1(d, i) {
157
+ return t(), l("svg", m1, _1);
159
158
  }
160
- const D = /* @__PURE__ */ Q(m1, [["render", L1]]);
161
- function y1(d, i) {
159
+ const D = /* @__PURE__ */ K(h1, [["render", v1]]);
160
+ function L1(d, i) {
162
161
  return t(), l("svg", {
163
162
  xmlns: "http://www.w3.org/2000/svg",
164
163
  fill: "none",
@@ -174,15 +173,15 @@ function y1(d, i) {
174
173
  })
175
174
  ]);
176
175
  }
177
- const b1 = { class: "h-full" }, g1 = { class: "space-y-1 p-2 h-full relative" }, k1 = { class: "absolute left-2 bottom-2 right-2" }, $1 = ["href"], S1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, O1 = { class: "w-[44px] flex-shrink-0 relative" }, M1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, j1 = { class: "py-[8px] pl-0 pr-[8px]" }, V1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, B1 = { class: "w-[44px] flex-shrink-0 relative" }, H1 = {
176
+ const y1 = { class: "h-full" }, b1 = { class: "space-y-1 p-2 h-full relative" }, g1 = { class: "absolute left-2 bottom-2 right-2" }, k1 = ["href"], $1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, S1 = { class: "w-[44px] flex-shrink-0 relative" }, O1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, M1 = { class: "py-[8px] pl-0 pr-[8px]" }, j1 = { class: "flex flex-nowrap items-center w-full h-[24px]" }, V1 = { class: "w-[44px] flex-shrink-0 relative" }, B1 = {
178
177
  key: 0,
179
178
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
180
- }, N1 = {
179
+ }, H1 = {
181
180
  key: 1,
182
181
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
183
- }, q1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, z1 = { class: "py-[8px] pl-0 pr-[8px]" }, I1 = /* @__PURE__ */ b({
182
+ }, N1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, q1 = { class: "py-[8px] pl-0 pr-[8px]" }, z1 = /* @__PURE__ */ b({
184
183
  __name: "OneSidebar",
185
- props: P,
184
+ props: T,
186
185
  emits: ["show-news"],
187
186
  setup(d, { emit: i }) {
188
187
  const x = i, _ = d, r = L(() => {
@@ -191,9 +190,9 @@ const b1 = { class: "h-full" }, g1 = { class: "space-y-1 p-2 h-full relative" },
191
190
  }), p = () => {
192
191
  x("show-news");
193
192
  };
194
- return (a, u) => (t(), l("div", b1, [
195
- e("div", g1, [
196
- (t(!0), l(U, null, F(a.items, (C) => (t(), m(h1, {
193
+ return (a, u) => (t(), l("div", y1, [
194
+ e("div", b1, [
195
+ (t(!0), l(F, null, P(a.items, (C) => (t(), m(C1, {
197
196
  key: C.label,
198
197
  icon: C.icon,
199
198
  label: C.label,
@@ -203,36 +202,36 @@ const b1 = { class: "h-full" }, g1 = { class: "space-y-1 p-2 h-full relative" },
203
202
  exact: C.exact || !1,
204
203
  slim: a.slim
205
204
  }, null, 8, ["icon", "label", "route", "href", "route-name", "exact", "slim"]))), 128)),
206
- e("div", k1, [
205
+ e("div", g1, [
207
206
  a.support ? (t(), l("a", {
208
207
  key: 0,
209
208
  href: a.support.url,
210
209
  target: "_blank",
211
210
  class: f(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content", [a.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]])
212
211
  }, [
213
- e("div", S1, [
214
- e("div", O1, [
215
- (t(), m(y(v(y1)), { class: "w-[24px] h-[24px] mx-auto" }))
212
+ e("div", $1, [
213
+ e("div", S1, [
214
+ (t(), m(y(v(L1)), { class: "w-[24px] h-[24px] mx-auto" }))
216
215
  ]),
217
- e("div", M1, [
218
- e("span", j1, c(a.support.menuLabel || "Support"), 1)
216
+ e("div", O1, [
217
+ e("span", M1, c(a.support.menuLabel || "Support"), 1)
219
218
  ])
220
219
  ])
221
- ], 10, $1)) : n("", !0),
220
+ ], 10, k1)) : n("", !0),
222
221
  a.news ? (t(), l("a", {
223
222
  key: 1,
224
223
  href: "#",
225
224
  class: f(["flex items-center rounded-lg text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-primary-content", [a.slim ? "w-[44px] h-[44px]" : "h-[44px] w-full"]]),
226
225
  onClick: p
227
226
  }, [
228
- e("div", V1, [
229
- e("div", B1, [
227
+ e("div", j1, [
228
+ e("div", V1, [
230
229
  (t(), m(y(D), { class: "w-[24px] h-[24px] mx-auto" })),
231
- r.value > 0 ? (t(), l("span", H1)) : n("", !0),
232
- r.value > 0 ? (t(), l("span", N1)) : n("", !0)
230
+ r.value > 0 ? (t(), l("span", B1)) : n("", !0),
231
+ r.value > 0 ? (t(), l("span", H1)) : n("", !0)
233
232
  ]),
234
- e("div", q1, [
235
- e("span", z1, c(a.news.menuLabel || "News"), 1)
233
+ e("div", N1, [
234
+ e("span", q1, c(a.news.menuLabel || "News"), 1)
236
235
  ])
237
236
  ])
238
237
  ], 2)) : n("", !0)
@@ -241,7 +240,7 @@ const b1 = { class: "h-full" }, g1 = { class: "space-y-1 p-2 h-full relative" },
241
240
  ]));
242
241
  }
243
242
  });
244
- function Z1(d, i) {
243
+ function I1(d, i) {
245
244
  return t(), l("svg", {
246
245
  xmlns: "http://www.w3.org/2000/svg",
247
246
  fill: "none",
@@ -257,7 +256,7 @@ function Z1(d, i) {
257
256
  })
258
257
  ]);
259
258
  }
260
- function A1(d, i) {
259
+ function Z1(d, i) {
261
260
  return t(), l("svg", {
262
261
  xmlns: "http://www.w3.org/2000/svg",
263
262
  fill: "none",
@@ -273,43 +272,43 @@ function A1(d, i) {
273
272
  })
274
273
  ]);
275
274
  }
276
- const R1 = { class: "h-full relative" }, T1 = { class: "header h-[56px] flex items-center flex-nowrap absolute top-0 left-0 w-full" }, U1 = { class: "p-2 flex-shrink-0" }, F1 = { class: "w-10 h-10 bg-white flex items-center flex-shrink-0" }, P1 = ["src"], D1 = { class: "whitespace-nowrap font-semibold text-xl" }, E1 = { class: "text-xs whitespace-nowrap" }, W1 = { class: "w-full" }, G1 = { class: "w-full flex justify-end pr-3" }, J1 = { class: "flex items-center space-x-3" }, K1 = {
275
+ const A1 = { class: "h-full relative" }, R1 = { class: "header h-[56px] flex items-center flex-nowrap absolute top-0 left-0 w-full" }, U1 = { class: "p-2 flex-shrink-0" }, F1 = { class: "w-10 h-10 bg-white flex items-center flex-shrink-0" }, P1 = ["src"], T1 = { class: "whitespace-nowrap font-semibold text-xl" }, D1 = { class: "text-xs whitespace-nowrap" }, E1 = { class: "w-full" }, W1 = { class: "w-full flex justify-end pr-3" }, G1 = { class: "flex items-center space-x-3" }, J1 = {
277
276
  key: 0,
278
277
  class: "sm:block flex-shrink-0 hidden"
279
- }, Q1 = ["href"], X1 = { class: "body w-full h-full" }, Y1 = { key: 0 }, e9 = {
278
+ }, K1 = ["href"], Q1 = { class: "body w-full h-full" }, X1 = { key: 0 }, Y1 = {
280
279
  key: 0,
281
280
  class: "w-96 relative h-full"
282
- }, t9 = { class: "h-full relative" }, s9 = { class: "flex items-center p-3 space-x-1.5" }, l9 = /* @__PURE__ */ e("div", { class: "w-full font-medium" }, "OneB News", -1), o9 = {
281
+ }, e9 = { class: "h-full relative" }, t9 = { class: "flex items-center p-3 space-x-1.5" }, s9 = /* @__PURE__ */ e("div", { class: "w-full font-medium" }, "OneB News", -1), l9 = {
283
282
  class: "overflow-auto",
284
283
  style: { height: "calc(100% - 62px)" }
285
- }, n9 = {
284
+ }, o9 = {
286
285
  key: 0,
287
286
  class: "p-5"
288
- }, r9 = { key: 1 }, a9 = { class: "p-4 text-gray text-center" }, i9 = { key: 2 }, c9 = {
287
+ }, n9 = { key: 1 }, r9 = { class: "p-4 text-gray text-center" }, a9 = { key: 2 }, i9 = {
289
288
  class: "p-3 space-y-1.5 rounded-lg",
290
289
  style: { "box-shadow": "0 0 6px #eaeaea" }
291
- }, p9 = { key: 0 }, d9 = {
290
+ }, c9 = { key: 0 }, p9 = {
292
291
  key: 0,
293
292
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
294
- }, u9 = {
293
+ }, d9 = {
295
294
  key: 1,
296
295
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
297
- }, C9 = {
296
+ }, u9 = {
298
297
  key: 2,
299
298
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
300
- }, h9 = {
299
+ }, C9 = {
301
300
  key: 3,
302
301
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
303
- }, m9 = { class: "text-lg font-medium" }, w9 = { class: "text-sm text-gray-600" }, f9 = { key: 0 }, x9 = ["src"], _9 = { class: "text-sm whitespace-pre-wrap break-words" }, v9 = { key: 1 }, L9 = ["href"], y9 = { class: "text-sm flex items-center justify-between mt-1" }, b9 = { class: "text-gray-800" }, g9 = ["href"], V9 = /* @__PURE__ */ b({
302
+ }, h9 = { class: "text-lg font-medium" }, m9 = { class: "text-sm text-gray-600" }, w9 = { key: 0 }, f9 = ["src"], x9 = { class: "text-sm whitespace-pre-wrap break-words" }, _9 = { key: 1 }, v9 = ["href"], L9 = { class: "text-sm flex items-center justify-between mt-1" }, y9 = { class: "text-gray-800" }, b9 = ["href"], j9 = /* @__PURE__ */ b({
304
303
  __name: "OneMainLayout",
305
- props: o1,
304
+ props: l1,
306
305
  emits: ["load-news"],
307
306
  setup(d, { emit: i }) {
308
307
  const x = i, _ = d;
309
308
  let r = window.localStorage.getItem("sidebar-slim");
310
309
  window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), r = "1");
311
310
  const p = Z(r === "1");
312
- J(p, (s) => {
311
+ G(p, (s) => {
313
312
  window.localStorage.setItem("sidebar-slim", String(s ? 1 : 0));
314
313
  });
315
314
  const a = () => {
@@ -326,14 +325,14 @@ const R1 = { class: "h-full relative" }, T1 = { class: "header h-[56px] flex ite
326
325
  return (s, h) => {
327
326
  var g, k, $, S, O, M, j, V, B, H, N, q, z, I;
328
327
  const W = R("RouterLink");
329
- return t(), l("div", R1, [
330
- e("div", T1, [
328
+ return t(), l("div", A1, [
329
+ e("div", R1, [
331
330
  e("div", U1, [
332
331
  e("button", {
333
332
  onClick: h[0] || (h[0] = (o) => p.value = !p.value),
334
333
  class: "w-[44px] h-[44px] p-[8px] flex items-center justify-center hover:text-secondary-content"
335
334
  }, [
336
- w(v(Z1), { class: "w-[24px] h-[24px]" })
335
+ w(v(I1), { class: "w-[24px] h-[24px]" })
337
336
  ])
338
337
  ]),
339
338
  e("div", F1, [
@@ -349,27 +348,27 @@ const R1 = { class: "h-full relative" }, T1 = { class: "header h-[56px] flex ite
349
348
  to: "/",
350
349
  class: "pl-2 max-w-xs"
351
350
  }, {
352
- default: T(() => [
353
- e("div", D1, c(s.app.name), 1),
354
- e("div", E1, c(s.app.workspace), 1)
351
+ default: U(() => [
352
+ e("div", T1, c(s.app.name), 1),
353
+ e("div", D1, c(s.app.workspace), 1)
355
354
  ]),
356
355
  _: 1
357
356
  })) : n("", !0),
358
- e("div", W1, [
359
- e("div", G1, [
360
- e("div", J1, [
357
+ e("div", E1, [
358
+ e("div", W1, [
359
+ e("div", G1, [
361
360
  A(s.$slots, "before-header-menu"),
362
- s.helpUrl ? (t(), l("div", K1, [
361
+ s.helpUrl ? (t(), l("div", J1, [
363
362
  e("a", {
364
363
  href: s.helpUrl,
365
364
  target: "_blank",
366
365
  title: "Help",
367
366
  class: "block btn-touch text-gray-dark"
368
367
  }, [
369
- w(v(A1), { class: "w-6 h-6 text-gray-600" })
370
- ], 8, Q1)
368
+ w(v(Z1), { class: "w-6 h-6 text-gray-600" })
369
+ ], 8, K1)
371
370
  ])) : n("", !0),
372
- (g = s.app) != null && g.apps ? (t(), m(Y, {
371
+ (g = s.app) != null && g.apps ? (t(), m(X, {
373
372
  key: 1,
374
373
  workspace: E.value,
375
374
  apps: ((k = s.app) == null ? void 0 : k.apps) || [],
@@ -379,7 +378,7 @@ const R1 = { class: "h-full relative" }, T1 = { class: "header h-[56px] flex ite
379
378
  "on-change": (M = s.handlers) == null ? void 0 : M.onChange,
380
379
  onOpen: (j = s.handlers) == null ? void 0 : j.onBrowse
381
380
  }, null, 8, ["workspace", "apps", "change-label", "apps-title", "on-app", "on-change", "onOpen"])) : n("", !0),
382
- w(e1, {
381
+ w(Y, {
383
382
  user: s.user,
384
383
  "account-label": ((V = s.labels) == null ? void 0 : V.account) || "Account",
385
384
  "logout-label": ((B = s.labels) == null ? void 0 : B.logout) || "Logout",
@@ -395,7 +394,7 @@ const R1 = { class: "h-full relative" }, T1 = { class: "header h-[56px] flex ite
395
394
  style: { height: "calc(100% - 56px)" },
396
395
  onClick: a
397
396
  }, [
398
- w(I1, {
397
+ w(z1, {
399
398
  slim: p.value,
400
399
  items: s.sidebarItems,
401
400
  "with-news": s.news != null,
@@ -404,76 +403,76 @@ const R1 = { class: "h-full relative" }, T1 = { class: "header h-[56px] flex ite
404
403
  onShowNews: C
405
404
  }, null, 8, ["slim", "items", "with-news", "support", "news"])
406
405
  ], 2),
407
- e("div", X1, [
406
+ e("div", Q1, [
408
407
  e("div", {
409
408
  class: f(["content transition-all pt-[56px] h-full overflow-auto", [p.value ? "pl-0 lg:pl-[60px]" : "pl-0 lg:pl-60"]])
410
409
  }, [
411
410
  A(s.$slots, "default")
412
411
  ], 2)
413
412
  ]),
414
- s.news ? (t(), l("div", Y1, [
413
+ s.news ? (t(), l("div", X1, [
415
414
  u.value ? (t(), l("div", {
416
415
  key: 0,
417
416
  class: "fixed top-0 left-0 h-screen w-screen bg-gray-100 bg-opacity-40 z-50",
418
- onClick: h[1] || (h[1] = K((o) => u.value = !1, ["self"]))
417
+ onClick: h[1] || (h[1] = J((o) => u.value = !1, ["self"]))
419
418
  })) : n("", !0),
420
419
  e("div", {
421
420
  class: f(["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"]])
422
421
  }, [
423
- u.value ? (t(), l("div", e9, [
424
- e("div", t9, [
425
- e("div", s9, [
422
+ u.value ? (t(), l("div", Y1, [
423
+ e("div", e9, [
424
+ e("div", t9, [
426
425
  w(D, { class: "w-10 h-10" }),
427
- l9,
426
+ s9,
428
427
  e("div", null, [
429
- w(t1, {
428
+ w(e1, {
430
429
  variant: "touch",
431
- icon: v(X),
430
+ icon: v(Q),
432
431
  onClick: h[2] || (h[2] = (o) => u.value = !1)
433
432
  }, null, 8, ["icon"])
434
433
  ])
435
434
  ]),
436
- e("div", o9, [
437
- s.news.isLoading && ((q = s.news.items) == null ? void 0 : q.length) === 0 ? (t(), l("div", n9, [
438
- w(s1, { class: "w-6 h-6 text-gray-600 mx-auto" })
439
- ])) : ((z = s.news.items) == null ? void 0 : z.length) === 0 ? (t(), l("div", r9, [
440
- e("div", a9, c(s.news.emptyText), 1)
441
- ])) : ((I = s.news.items) == null ? void 0 : I.length) > 0 ? (t(), l("div", i9, [
442
- (t(!0), l(U, null, F(s.news.items, (o) => (t(), l("div", {
435
+ e("div", l9, [
436
+ s.news.isLoading && ((q = s.news.items) == null ? void 0 : q.length) === 0 ? (t(), l("div", o9, [
437
+ w(t1, { class: "w-6 h-6 text-gray-600 mx-auto" })
438
+ ])) : ((z = s.news.items) == null ? void 0 : z.length) === 0 ? (t(), l("div", n9, [
439
+ e("div", r9, c(s.news.emptyText), 1)
440
+ ])) : ((I = s.news.items) == null ? void 0 : I.length) > 0 ? (t(), l("div", a9, [
441
+ (t(!0), l(F, null, P(s.news.items, (o) => (t(), l("div", {
443
442
  key: o.id,
444
443
  class: "p-3"
445
444
  }, [
446
- e("div", c9, [
445
+ e("div", i9, [
447
446
  e("div", null, [
448
- o.type ? (t(), l("div", p9, [
449
- o.type === 10 ? (t(), l("span", d9, "update")) : o.type === 11 ? (t(), l("span", u9, "warning")) : o.type === 12 ? (t(), l("span", C9, "notice")) : o.type === 13 ? (t(), l("span", h9, "ads")) : n("", !0)
447
+ o.type ? (t(), l("div", c9, [
448
+ o.type === 10 ? (t(), l("span", p9, "update")) : o.type === 11 ? (t(), l("span", d9, "warning")) : o.type === 12 ? (t(), l("span", u9, "notice")) : o.type === 13 ? (t(), l("span", C9, "ads")) : n("", !0)
450
449
  ])) : n("", !0),
451
- e("div", m9, c(o.title), 1),
452
- e("div", w9, c(o.summary), 1)
450
+ e("div", h9, c(o.title), 1),
451
+ e("div", m9, c(o.summary), 1)
453
452
  ]),
454
- o.image_url ? (t(), l("div", f9, [
453
+ o.image_url ? (t(), l("div", w9, [
455
454
  e("img", {
456
455
  src: o.image_url,
457
456
  alt: "",
458
457
  class: "w-full rounded-md"
459
- }, null, 8, x9)
458
+ }, null, 8, f9)
460
459
  ])) : n("", !0),
461
- e("div", _9, c(o.body), 1),
462
- o.video_url ? (t(), l("div", v9, [
460
+ e("div", x9, c(o.body), 1),
461
+ o.video_url ? (t(), l("div", _9, [
463
462
  e("a", {
464
463
  href: o.video_url,
465
464
  target: "_blank",
466
465
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
467
- }, c(s.news.openVideoText), 9, L9)
466
+ }, c(s.news.openVideoText), 9, v9)
468
467
  ])) : n("", !0),
469
- e("div", y9, [
470
- e("span", b9, c(o.published), 1),
468
+ e("div", L9, [
469
+ e("span", y9, c(o.published), 1),
471
470
  o.post_url ? (t(), l("a", {
472
471
  key: 0,
473
472
  href: o.post_url,
474
473
  target: "_blank",
475
474
  class: "text-blue-600 hover:text-blue-700 block"
476
- }, c(s.news.moreText), 9, g9)) : n("", !0)
475
+ }, c(s.news.moreText), 9, b9)) : n("", !0)
477
476
  ])
478
477
  ])
479
478
  ]))), 128))
@@ -488,6 +487,6 @@ const R1 = { class: "h-full relative" }, T1 = { class: "header h-[56px] flex ite
488
487
  }
489
488
  });
490
489
  export {
491
- V9 as OneMainLayout,
492
- I1 as OneSidebar
490
+ j9 as OneMainLayout,
491
+ z1 as OneSidebar
493
492
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneb/ui-vue",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [