1import{u as O,V as P,U,Z as i,l,F as M,k as S,i as o,q as a,aa as r,ai as p,a2 as j,J as u,aA as f,o as H,P as B,g as T,a1 as d,j as W}from"./vendor-vue-DO5-hTFl.js";import m from"./Icon-DJVXEN3t.js";import{_ as $}from"./OrderMark.vue_vue_type_script_setup_true_lang-B1sG-ZQF.js";import{u as q}from"./useBrand-CjA_EqWw.js";import{_ as J}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./createLucideIcon-CvPmzaXe.js";import"./x-BhLyuTBD.js";import"./users-DzU9Yozq.js";import"./wallet-vByLPeeN.js";import"./trophy-C0xjRGQr.js";import"./smartphone-CqUsGvZt.js";import"./send-CtitI9gV.js";import"./search-DzE3Wg-v.js";import"./plus-IW5t7efP.js";import"./history-BXlEaBDh.js";import"./download-CGTQ_OA4.js";import"./clock-aChRcM9W.js";import"./circle-alert-Ac9nKvNW.js";import"./chevron-right-DG4lyrf_.js";import"./check-BOXqqf8S.js";import"./bookmark-B7AFb21t.js";import"./bell-BGP-bVxg.js";import"./arrow-left-Df_TXDbX.js";import"./usePmVariant-oi9wywDB.js";const R={href:"/markets",class:"o-sidebar__logo"},Z={class:"o-sidebar__logo-text"},G={class:"o-sidebar__scroll"},K={class:"o-sidebar__label"},Q={key:0,class:"o-sidebar__count"},X={class:"o-sidebar__foot"},Y={class:"o-promo__body"},oo={class:"o-promo__timer"},eo={class:"o-promo__digit"},so={class:"o-promo__digit"},to={class:"o-promo__digit"},ao={class:"o-promo__chat","aria-hidden":"true"},ro=O({__name:"OrderSidebar",props:{categories:{default:()=>[]},active:{default:"all"}},setup(v){const E=v,{label:z}=q(),D={trending:"/markets?cat=trending",sports:"/sports",crypto:"/crypto"};function V(s){return D[s]??`/markets?cat=${s}`}function F(s){return s.label?s.label:s.key==="all"?"All markets":s.key.charAt(0).toUpperCase()+s.key.slice(1)}const I=T(()=>E.categories??[]);function N(){window.dispatchEvent(new CustomEvent("pm:promo:open"))}function A(){window.dispatchEvent(new CustomEvent("pm:support:open"))}const h=d("23"),b=d("51"),g=d("13");let c=null;function k(){const s=new Date,e=new Date(s);e.setHours(24,0,0,0);let t=Math.max(0,Math.floor((e.getTime()-s.getTime())/1e3));const C=Math.floor(t/3600);t-=C*3600;const x=Math.floor(t/60),_=L=>String(L).padStart(2,"0");h.value=_(C),b.value=_(x),g.value=_(t-x*60)}const n=d(!1);function w(){n.value=!n.value}function y(){n.value=!1}return P(()=>{k(),c=setInterval(k,1e3),window.addEventListener("lk:toggle-mobile-nav",w)}),U(()=>{c&&clearInterval(c),window.removeEventListener("lk:toggle-mobile-nav",w)}),(s,e)=>(i(),l(M,null,[n.value?(i(),l("div",{key:0,class:"o-sidebar__backdrop","aria-hidden":"true",onClick:y})):S("",!0),o("aside",{class:B(["o-sidebar",{"is-open":n.value}]),onClick:y},[o("a",R,[a($,{size:30,class:"o-sidebar__logo-mark"}),o("span",Z,r(p(z)),1)]),o("nav",G,[e[0]||(e[0]=o("p",{class:"o-sidebar__heading"},"Categories",-1)),(i(!0),l(M,null,j(I.value,t=>(i(),W(p(u),{key:t.key,href:V(t.key),"preserve-scroll":"",prefetch:"hover","cache-for":"30s",class:B(["o-sidebar__item",{"o-sidebar__item--active":t.key===v.active}])},{default:f(()=>[a(m,{name:t.icon,size:17,class:"o-sidebar__ico"},null,8,["name"]),o("span",K,r(F(t)),1),t.count!==void 0?(i(),l("span",Q,r(t.count),1)):S("",!0)]),_:2},1032,["href","class"]))),128))]),o("div",X,[e[7]||(e[7]=o("p",{class:"o-sidebar__heading"},"Workspace",-1)),a(p(u),{href:"/profile",class:"o-sidebar__pill"},{default:f(()=>[a(m,{name:"user",size:16}),e[1]||(e[1]=o("span",null,"Profile",-1))]),_:1}),a(p(u),{href:"/profile?tab=positions",class:"o-sidebar__pill"},{default:f(()=>[a(m,{name:"bar-chart",size:16}),e[2]||(e[2]=o("span",null,"My positions",-1))]),_:1}),o("button",{type:"button",class:"o-promo o-promo--bonus",onClick:N},[e[4]||(e[4]=H('<span class="o-promo__glow" aria-hidden="true" data-v-96533a88></span><span class="o-promo__gift" aria-hidden="true" data-v-96533a88><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-96533a88><rect x="3" y="8" width="18" height="4" rx="1" data-v-96533a88></rect><path d="M12 8v13" data-v-96533a88></path><path d="M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7" data-v-96533a88></path><path d="M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8S13 3 16.5 3a2.5 2.5 0 0 1 0 5" data-v-96533a88></path></svg></span>',2)),o("span",Y,[e[3]||(e[3]=o("span",{class:"o-promo__title"},"Claim your cash bonus",-1)),o("span",oo,[o("span",eo,r(h.value),1),o("span",so,r(b.value),1),o("span",to,r(g.value),1)])])]),o("button",{type:"button",class:"o-promo o-promo--support",onClick:A},[e[5]||(e[5]=o("span",{class:"o-promo__badge"},"24/7",-1)),o("span",ao,[a(m,{name:"message",size:20})]),e[6]||(e[6]=o("span",{class:"o-promo__body"},[o("span",{class:"o-promo__stitle"},"Support"),o("span",{class:"o-promo__ssub"},"We're always happy to help")],-1))])])],2)],64))}}),Vo=J(ro,[["__scopeId","data-v-96533a88"]]);export{Vo as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.