PageSourceSearch

https://vivabet.ro/assets/WL_AppBottomPlatform-CK9pJruO-1789482018683.js

js vivabet.ro collected 2026-10-05 20:41:40 UTC 9,454 bytes, 1 lines download raw bytes

1import{j as t,c as u,r as A,g as G,n as M,a4 as O,i as z}from"./vendor-DbsMbOVk-1789482017689.js";import{u as U,B as V,a as Y,b as R,c as J,F as Z}from"./useAppBottom-kbcBitxU-1789482018599.js";import{j9 as q,iv as X,iw as Q,ay as $,kX as K,z as T,p as tt,L as at,F as P,eC as ot,eD as st,eI as et,dV as it,kY as nt,kZ as lt,ho as H,eg as rt,aV as ct,u as W,aT as mt,er as E,k_ as bt,k$ as N,l0 as F,l1 as ut,l2 as pt,l3 as dt,c$ as _t,aZ as yt,l4 as xt,d3 as ht,b0 as vt}from"./main-DrgE7FAP.js";import{m as k}from"./framer-motion-D1KBGWJk-1789482017653.js";import"./crypto-js-CJJSxndp-1789482017351.js";import"./lodash-ByDCjXp0-1789482017690.js";import"./shield-js-npm-CZORHk4v-1789482017809.js";import"./pako-CFLZ4Bv7-1789482017761.js";const ft="pJu1k",f={"wl-bottom-tab-bar":"_8SSe5","wl-bottom-tab-bar__wrapper":"G-i38","wl-bottom-tab-bar__scroller":"wndrR","wl-bottom-tab-bar__item":"adGlu",active:ft,"wl-bottom-tab-bar__item-content":"a-iJR","wl-bottom-tab-bar__item-icon":"mpYr3","wl-bottom-tab-bar__item--special":"SGH8T","wl-fav-modal-backdrop-on":"E9WFk","appear-from-center":"_2UwfV"},wt="zuxLy",Bt="jOF8S",h={"wl-bottom-tab-bar-l2":"SGfz5","wl-bottom-tab-bar-l2__wrapper":"ek0gW","wl-bottom-tab-bar-l2__scroller":"O1gpq","wl-bottom-tab-bar-l2__item":"UTBEF",active:wt,"appear-from-center":"TjPte",special:Bt,"wl-bottom-tab-bar-l2__item-content":"Jle-W","wl-bottom-tab-bar-l2__item-icon":"FlYrm","wl-bottom-tab-bar-l2__item-text":"_36dOD","wl-fav-modal-backdrop-on":"osdXS"},gt={"wl-badge-notification":"_36MTw"},Ct={"wl-badge-notification-layout-2":"_5mZLq"},Tt=()=>({layout_2:u(gt["wl-badge-notification"]),layout_3:u(Ct["wl-badge-notification-layout-2"])}),jt=({layoutType:o,count:s})=>{const e=Tt()[o];return t.jsx("div",{className:e,children:s})},Nt=({tabType:o,isActiveTab:s})=>({layout_2:u(f["wl-bottom-tab-bar__item"],s&&f.active,o==="specialTournament"&&f["wl-bottom-tab-bar__item--special"]),layout_3:u(h["wl-bottom-tab-bar-l2__item"],s&&h.active,o==="specialTournament"&&h.special)}),kt=({isActiveTab:o})=>({layout_2:u(f["wl-bottom-tab-bar__item-content"]),layout_3:u(h["wl-bottom-tab-bar-l2__item-content"],o&&h.active)}),Lt=()=>({layout_2:u(f["wl-bottom-tab-bar__item-icon"]),layout_3:u(h["wl-bottom-tab-bar-l2__item-icon"])}),Wt=({isActiveTab:o})=>({layout_2:u(),layout_3:u(h["wl-bottom-tab-bar-l2__item-text"],o&&h.active)}),S=A.forwardRef(({onClick:o,notifications:s,icon:e,iconColor:c,title:i,route:m,tabType:r,isNew:_,isNewBg:d,isNewColor:a,isNewText:y,bgImage:n,bgColor:l},x)=>{const{styleProp:v,isActiveTab:w,layoutType:p="layout_2"}=U({route:m,tabType:r,iconColor:c,bgImage:n,bgColor:l}),g=kt({isActiveTab:w})[p],j=Nt({tabType:r,isActiveTab:w})[p],B=Lt()[p],C=Wt({isActiveTab:w})[p];return r===q.CHAT?t.jsx(X,{className:"p-0",text:i,type:Q.Custom,CustomButton:t.jsx("div",{className:j,children:t.jsxs("div",{className:g,children:[t.jsx($,{icon:e,className:B}),t.jsx("div",{className:C,children:t.jsx(V,{tabType:r,children:i})})]})})}):t.jsx(Y,{ref:x,route:m,className:j,onClick:o,dataQid:`wl-btb-link-${r}`,...v,tabType:r,children:t.jsxs("div",{className:g,children:[t.jsx($,{icon:e,className:B}),t.jsx("div",{className:C,children:t.jsx(V,{tabType:r,children:i})}),t.jsx(K,{isNew:_,text:y,bg:d,color:a}),!T(s)&&s!==0&&t.jsx(jt,{layoutType:p,count:s})]})})});S.displayName="WL_BottomTabBarButton";const At=()=>{var s,e;return{layoutType:(e=(s=tt({moduleLayout:"platform",innerLayout:at.LAYOUTTYPECONFIG,deviceLayout:"general"}))==null?void 0:s.bottomTabBar)==null?void 0:e.button}},D=60,It=()=>({layout_2:u("on-ios-no-extra-padding",f["wl-bottom-tab-bar"]),layout_3:u("on-ios-no-extra-padding",h["wl-bottom-tab-bar-l2"])}),St=()=>({layout_2:u(f["wl-bottom-tab-bar__item--active"]),layout_3:u(h["wl-bottom-tab-bar-l2__item"],h.active)}),Vt=()=>({layout_2:u(f["wl-bottom-tab-bar__scroller"]),layout_3:u(h["wl-bottom-tab-bar-l2__scroller"])}),$t=({tabsLength:o,forwardRef:s,children:e,prependChild:c,...i})=>{const{layoutType:m="layout_2"}=At(),{moveWith:r}=et({itemsToScroll:o,itemWidth:D}),_=It()[m],d=St()[m],a=Vt()[m],y=c?"w-auto":"";return t.jsxs(P.Center,{className:_,ref:n=>s(n),...i,children:[c&&t.jsx("div",{className:`${a} mx-0 px-0`,children:c}),t.jsx(ot,{regularDesktopCellWidth:D,moveWith:r,typeArrow:st.Sports,classNames:"d-flex",wrapperClassName:y,activeClass:d,scrollToElemOnChildrenChange:!1,children:t.jsx("div",{className:a,children:e})})]})},Et=({drawerButtonRef:o})=>{const{t:s}=G(),{items:e,setTabCounter:c,onClickHandler:i,tabsLength:m,drawerTogglerIsVisibleOnBottomBar:r}=it(),{setBottomRef:_}=R({isBottomTabBar:m>0}),d=nt();return m===0?null:t.jsx($t,{forwardRef:_,tabsLength:m,prependChild:t.jsx(t.Fragment,{children:r&&t.jsx(S,{tabType:"burger",onClick:d,icon:"common-content/general-ui/burger-toggler.svg",title:s(lt.Data.burgerMenu),route:"",ref:o})}),children:e==null?void 0:e.map((a,y)=>{var n,l,x,v,w,p,g;return t.jsx(S,{tabType:a.type,route:((n=a.route)==null?void 0:n.trim())||"",icon:a.icon,iconColor:a.iconColor,title:a.titleTranslations||"",notifications:((x=c(((l=a==null?void 0:a.route)==null?void 0:l.trim())||""))==null?void 0:x[a.type])||0,notificationPosition:a.type==="casinoFavourites"||a.type==="promotions"?"right":"centered",onClick:()=>i(a),isNew:(v=a==null?void 0:a.ribbonConfig)==null?void 0:v.isNew,isNewBg:(w=a==null?void 0:a.ribbonConfig)==null?void 0:w.labelColor,isNewColor:(p=a==null?void 0:a.ribbonConfig)==null?void 0:p.textColor,isNewText:(g=a==null?void 0:a.ribbonConfig)==null?void 0:g.text,bgImage:a.backgroundImage||"",bgColor:a.backgroundColor||""},a.ranking+y)})})},Ft=A.memo(Et),Dt=()=>{var r,_,d,a,y,n;const{pathname:o}=M(),{navigationMenu:s,iconNavigation:e}=H(),c=((r=s==null?void 0:s.find(l=>o.startsWith(l.route)))==null?void 0:r.uiVerticalType)==="sport"||((_=s==null?void 0:s.find(l=>{var x;return(x=l.subItems)==null?void 0:x.find(v=>o.startsWith(v.navigationUrl))}))==null?void 0:_.uiVerticalType)==="sport"||((d=e==null?void 0:e.find(l=>o.startsWith(l.route)))==null?void 0:d.uiVerticalType)==="sport"||((a=e==null?void 0:e.find(l=>{var x;return(x=l.subItems)==null?void 0:x.find(v=>o.startsWith(v.navigationUrl))}))==null?void 0:a.uiVerticalType)==="sport",i=(y=o.split("/").filter(
1Boolean))==null?void 0:y[1];return{isInSportsEGTD:c&&!T(i)&&((n=rt)==null?void 0:n.some(l=>O({path:l,end:!1},`/${i}`)))}},Gt="zVTjz",b={"bottom-nav-links":"e40-n","bottom-nav-links__inner":"_3P8uM","bottom-nav-link":"-J17F",active:Gt,"bottom-nav-links__badge":"yiJB5","profile-icon":"_9T5IE","appear-from-center":"p2fkG"},L={hidden:{opacity:0,width:0,marginLeft:0,transition:{duration:.3}},visible:{opacity:1,width:"auto",marginLeft:"8px",zIndex:2,color:"var(--egtd-x-100, #fff)",transition:{type:"spring",stiffness:400,damping:40}}},Mt=()=>{var w;const{t:o}=G(),s=z(),e=M(),c=e.pathname,{homeRoute:i}=ct(),m=c==null?void 0:c.startsWith("/my-account"),{iconNavigation:r}=H(),{isInSportsEGTD:_}=Dt(),d=W(mt.isAuthenticated)||!1,a=W(E.unsettledBetsCount),y=W(E.isMyBetsVisible),[n,l]=A.useState(i||""),{handleShowMyBets:x}=bt({}),{setBottomRef:v}=R({isBottomTabBar:!0});return A.useEffect(()=>{var p;T((p=e.state)==null?void 0:p.subItemsId)&&l(c)},[c,i,(w=e.state)==null?void 0:w.subItemsId]),t.jsx("div",{className:b["bottom-nav-links"],ref:v,children:t.jsxs("div",{className:b["bottom-nav-links__inner"],children:[t.jsxs("div",{className:`${b["bottom-nav-link"]} ${n===i?b.active:""}`,onClick:()=>{l(i),l(i),i&&s(i)},children:[t.jsx(N,{icon:"home",isActive:n===i,layoutType:"layout2"},"home"),n===i&&t.jsx(k.span,{className:b.labelText,variants:L,initial:"hidden",animate:"visible",exit:"hidden",children:o(F.Mobile.home)},"home-label")]}),d&&t.jsxs("div",{className:`${b["bottom-nav-link"]} ${n==="/my-account"||m?b.active:""}`,onClick:()=>{l("/my-account"),s("/my-account")},children:[t.jsx(N,{icon:"profile",isActive:n==="/my-account"||m,layoutType:"layout2",wrapperClassName:b["profile-icon"]},"my-account"),(n==="/my-account"||m)&&t.jsx(k.span,{className:b.labelText,variants:L,initial:"hidden",animate:"visible",exit:"hidden",children:o(F.Mobile.profile)},"my-account-label")]}),d&&_&&t.jsxs("div",{className:`${b["bottom-nav-link"]} ${n==="/my-bets"&&y?b.active:""}`,onClick:()=>{l("/my-bets"),x()},children:[t.jsx(N,{icon:"my_bets",isActive:n==="/my-bets"&&y,layoutType:"layout2"},"my-bets")," ",n==="/my-bets"&&y&&t.jsx(k.span,{className:b.labelText,variants:L,initial:"hidden",animate:"visible",exit:"hidden",children:o(ut.Name.myBets)},"my-bets-label"),t.jsx(pt,{className:b["bottom-nav-links__badge"],layoutType:"layout3",isVisible:!0,text:a})]}),r==null?void 0:r.map(({id:p,iconName:g,name:j,route:B,subItems:C})=>{const I=!T(C)&&n===p||n===B||c.startsWith(B);return t.jsxs(dt,{isExternalRoute:_t(B),className:`${b["bottom-nav-link"]} ${I?b.active:""}`,route:B,isExpandable:!1,children:[t.jsx(N,{iconPath:g,isActive:I,onClick:()=>l(T(C)?B:p),layoutType:"layout2",wrapperClassName:b["bottom-nav-link"]}),I&&t.jsx(k.span,{className:b.labelText,variants:L,initial:"hidden",animate:"visible",exit:"hidden",children:j},`label-${p}`)]},p)})]})})},Zt=({drawerButtonRef:o})=>{const{isAuthenticated:s,isSearchPage:e,isFavouriteGamesModalOpen:c,hideAppBottom:i,isInMyAccount:m}=J(),r=W(yt.isVisible),_=u(f["wl-bottom-tab-bar__wrapper"],c&&f["wl-fav-modal-backdrop-on"]),d=xt();return i?null:t.jsx(ht,{children:t.jsxs(P.Col,{className:_,children:[s&&c?t.jsx(Z,{}):null,!e&&!vt()&&r&&(d?t.jsx(Mt,{}):!m&&t.jsx(Ft,{drawerButtonRef:o}))]})})};export{Zt 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.