1import{u as B}from"./utils_mixin-D7n4vZIn.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{P as R,d as o,e as a,k as S,f as t,q as r,K as v,L as D,M as H,B as V,D as _,i as x,j as y,T as z,p as C,E as w,n as h,m as Z,G as M,H as L,U as I}from"./main-BxGuzwno.js";import T from"./ReportModal-DtbFVRgg.js";import{B as P}from"./BookmakersRankingItem-BgjnkKW3.js";import{B as j,a as A}from"./BookmakerRatingModal-BwhW0erc.js";import{L as U}from"./LastBets-DlM6cmlL.js";import{U as N}from"./UserRankingModal-CHFxT8Hz.js";import W from"./RankingUser-D4R7v_ub.js";import"./FormSelect-DhsTm1K0.js";import"./BonusDetailsModal-FYdzei0H.js";import"./PickFilterModal-CfL4c6AF.js";import"./FootballSelect-BPbdEGzK.js";import"./SuperbetsSelectMobile-C5s1H9fu.js";const F={name:"BetDiscItemModal",emits:["openBet","followAuthor","reportBet","unfollowAuthor"],props:{isFollowed:{type:Boolean},isMyBet:Boolean},data(){return{clickOutside:{handler:this.closeModal,events:["touchend","mouseup"]}}},methods:{closeModal(){this.$emit("close")}}},f=e=>(D("data-v-9379e802"),e=e(),H(),e),$={class:"relative z-backdrop"},E=f(()=>t("div",{class:"bet-option-container fixed w-full h-full top-0 left-0 z-backdrop bg-black/40"},null,-1)),q={class:"fixed modal-mobile left-0 right-0 z-modal w-full xl:absolute xl:top-[65px] xl:left-[unset] xl:right-2.5 xl:translate-x-0 xl:w-auto"},G=f(()=>t("div",{class:"only-desktop absolute right-1 -top-5"},[t("svg",{width:"27",height:"24",viewBox:"0 0 27 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M13.5 0L26.9234 23.25H0.0766058L13.5 0Z",fill:"#263042"})])],-1)),J={class:"overflow-auto relative bg-zt-normal rounded-t-xl shadow-lg !max-h-[calc(100vh_-_126px)] xl:!h-fit xl:rounded-xl"},K={class:"sticky only-mobile top-0 left-0 right-0 bg-zt-normal z-10"},Y={class:"w-full py-4 px-5 only-mobile-flex justify-start items-center"},Q=f(()=>t("span",{class:"font-semibold"},"Opcje",-1)),X=f(()=>t("hr",{class:"w-full border-zt-light only-mobile"},null,-1)),tt={class:"flex flex-col items-center bg-zt-normal rounded-b-xl w-full xl:w-[360px] xl:ml-auto xl:text-base"},et=f(()=>t("svg",{class:"w-6 h-6 overflow-visible",viewBox:"0 0 228 212",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M139.538 85.1283C139.538 83.5243 138.736 82.7223 138.736 81.1183C138.736 81.1183 138.736 81.1183 138.736 80.3163C137.934 78.7123 137.132 77.9103 136.33 77.1083C126.706 67.4843 113.874 62.6724 100.24 62.6724C87.4077 62.6724 74.5757 67.4843 64.1497 77.1083L16.0297 125.228C-4.02031 145.278 -4.02031 177.358 16.0297 196.606C25.6537 206.23 38.4857 211.042 52.1197 211.042C64.9517 211.042 77.7837 206.23 88.2097 196.606L116.28 168.536C106.656 166.932 97.0317 162.922 88.2097 157.308L68.1597 177.358C59.3377 186.18 44.0996 186.18 35.2776 177.358C26.4556 168.536 26.4556 154.1 35.2776 144.476L61.7438 118.01L83.3976 96.3563C85.8036 93.9503 88.2096 92.3463 90.6156 91.5443C92.2196 90.7423 93.8236 90.7423 95.4276 89.9403C102.646 88.3363 110.666 90.7423 116.28 96.3563C121.894 101.97 130.716 101.97 135.528 96.3563C137.132 94.7523 138.736 92.3463 139.538 89.9403C140.34 88.3363 140.34 86.7323 139.538 85.1283C140.34 85.1283 140.34 85.1283 139.538 85.1283Z",fill:"white"}),t("path",{d:"M212.521 14.5522C202.897 4.92823 190.065 0.116211 176.431 0.116211C162.797 0.116211 149.965 5.73024 140.341 14.5522L112.271 42.6222C121.895 44.2262 131.519 48.2362 140.341 53.8502L160.391 33.8002C169.213 24.9782 184.451 24.9782 193.273 33.8002C197.283 37.8102 199.689 44.2262 199.689 49.8402C199.689 56.2562 197.283 61.8702 193.273 65.8802L184.451 74.7022L145.153 114C136.331 122.822 121.093 122.822 112.271 114C106.657 108.386 97.835 108.386 93.023 114C87.409 119.614 87.409 128.436 93.023 133.248C102.647 142.872 115.479 147.684 129.113 147.684C142.747 147.684 155.579 142.07 165.203 133.248L204.501 93.9502L213.323 85.1281C222.947 75.5041 227.759 62.6721 227.759 49.0381C227.759 35.4041 222.145 24.1762 212.521 14.5522Z",fill:"white"})],-1)),st=f(()=>t("span",{class:"ml-2.5 text-left"},"Przejdź do typu w Typach Dnia",-1)),it=[et,st],ot=f(()=>t("hr",{class:"w-full border-zt-light"},null,-1)),at={key:0,class:"flex flex-col items-center bg-zt-normal rounded-b-xl w-full xl:w-[360
1px] xl:ml-auto xl:text-base"},lt=v('<svg class="w-6 h-6" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-9379e802><path d="M8.5 3.71875C8.5 5.18575 7.31075 6.375 5.84375 6.375C4.37675 6.375 3.1875 5.18575 3.1875 3.71875C3.1875 2.25175 4.37675 1.0625 5.84375 1.0625C7.31075 1.0625 8.5 2.25175 8.5 3.71875Z" fill="white" data-v-9379e802></path><path d="M3.1875 8.5C1.4271 8.5 0 9.9271 0 11.6875V14.875H8.5V8.5H3.1875Z" fill="white" data-v-9379e802></path><path d="M13.8125 8.5H10.625V14.875H17V11.6875C17 9.9271 15.573 8.5 13.8125 8.5Z" fill="white" data-v-9379e802></path><path d="M12.75 6.375C13.9236 6.375 14.875 5.42361 14.875 4.25C14.875 3.07639 13.9236 2.125 12.75 2.125C11.5764 2.125 10.625 3.07639 10.625 4.25C10.625 5.42361 11.5764 6.375 12.75 6.375Z" fill="white" data-v-9379e802></path></svg><span class="ml-2.5 text-left" data-v-9379e802>Obserwuj Typera</span>',2),nt=[lt],rt={key:1,class:"flex flex-col items-center bg-zt-normal rounded-b-xl w-full xl:w-[360px] xl:ml-auto xl:text-base"},dt=v('<svg class="w-6 h-6 overflow-visible" viewBox="0 0 87 87" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-9379e802><path d="M34.6698 37.8261C39.7133 37.8261 43.4959 34.0435 43.4959 29C43.4959 23.9565 39.7133 20.1739 34.6698 20.1739C29.6264 20.1739 25.8438 23.9565 25.8438 29C25.8438 34.0435 30.2568 37.8261 34.6698 37.8261Z" fill="white" data-v-9379e802></path><path d="M15.7578 54.8478V63.6739L35.3013 44.1304H25.8448C20.1709 44.7609 15.7578 49.1739 15.7578 54.8478Z" fill="white" data-v-9379e802></path><path d="M43.4983 65.5652V48.5435L26.4766 65.5652H43.4983Z" fill="white" data-v-9379e802></path><path d="M61.1549 44.7609H50.4375V65.5652H71.2418V54.8478C71.2418 49.1739 66.8288 44.7609 61.1549 44.7609Z" fill="white" data-v-9379e802></path><path d="M50.4375 29L55.481 23.9565C52.9592 24.5869 51.0679 26.4783 50.4375 29Z" fill="white" data-v-9379e802></path><path d="M64.3081 30.8913C64.3081 29.6304 64.3081 29 63.6776 28.3696L54.8516 37.1957C55.482 37.8261 56.7429 37.8261 57.3733 37.8261C61.1559 37.8261 64.3081 34.6739 64.3081 30.8913Z" fill="white" data-v-9379e802></path><path d="M43.5 0C19.5435 0 0 19.5435 0 43.5C0 67.4565 19.5435 87 43.5 87C67.4565 87 87 67.4565 87 43.5C87 19.5435 67.4565 0 43.5 0ZM13.2391 66.8261C8.19565 60.5217 5.67391 52.3261 5.67391 43.5C5.67391 22.0652 22.6957 5.04348 44.1304 5.04348C52.9565 5.04348 61.1522 8.19565 67.4565 12.6087C68.087 13.2391 68.7174 13.2391 68.7174 13.8696L59.2609 23.3261L50.4348 31.5217L37.8261 44.1304L14.5 67.4565C13.8696 67.4565 13.2391 67.4565 13.2391 66.8261ZM43.5 81.9565C34.0435 81.9565 25.8478 78.8043 18.913 73.1304C18.2826 72.5 17.6522 71.8696 17.6522 71.8696L71.8696 17.6522C72.5 18.2826 72.5 18.2826 73.1304 18.913C78.8043 25.8478 81.9565 34.0435 81.9565 43.5C81.9565 64.9348 64.9348 81.9565 43.5 81.9565Z" fill="white" data-v-9379e802></path></svg><span class="ml-2.5 text-left" data-v-9379e802>PrzestaÅ obserwowaÄ Typera</span>',2),ht=[dt],ct={key:2,class:"w-full border-zt-light"},mt={class:"flex flex-col items-center bg-zt-normal rounded-b-xl w-full xl:w-[360px] xl:ml-auto xl:text-base"},ft=f(()=>t("svg",{class:"w-6 h-6 overflow-visible",viewBox:"0 0 220 194",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M217.236 168.04L125.006 8.442C118.59 -2.786 101.748 -2.786 95.3324 8.442L3.10241 168.04C-3.31359 179.268 4.70636 193.704 18.3404 193.704H202.8C215.632 193.704 224.454 179.268 217.236 168.04ZM99.3424 66.186C99.3424 60.572 104.154 55.76 109.768 55.76C115.382 55.76 120.194 60.572 120.194 66.186V116.712C120.194 122.326 115.382 127.138 109.768 127.138C104.154 127.138 99.3424 122.326 99.3424 116.712V66.186ZM110.57 164.03C104.956 164.03 100.144 159.218 100.144 153.604C100.144 147.99 104.956 143.178 110.57 143.178C116.184 143.178 120.996 147.99 120.996 153.604C120.996 159.218 116.184 164.03 110.57 164.03Z",fill:"white"})],-1)),pt=f(()=>t("span",{class:"ml-2.5 text-left"},"ZgÅoÅ typ",-1)),ut=[ft,pt];function _t(e,i,l,g,n,s){const u=R("click-outside");return o(),a("div",$,[E,S((o(),a("div",q,[G,t("div",J,[t("div",K,[t("div",Y,[Q,t("div",{class:"x-close-modal",onClick:i[0]||(i[0]=(...d)=>s.closeModal&&s.closeModal(...d))})]),X]),t("div",tt,[t("button",{onClick:i[1]||(i[1]=d=>e.$emit("openBet")),class:"no-default-style w-full p-4 flex relative items-center zt-hover after:block after:bg-zt-red after:absolute after:w-1 after:h-10 after:top-1/2 after:left-0 after:-translate-y-1/2 after:rounded after:opacity-0 after:transition-opacity hover:after:opacity-100 hover:bg-[#313E50]"},it)]),ot,!l.isFollowed&&!l.isMyBet?(o(),a("div",at,[t("button",{onClick:i[2]||(i[2]=d=>{e.$emit("followAuthor"),s.closeModal()}),class:"no-default-style w-full p-4 flex relative items-center zt-hover after:block after:bg-zt-red after:absolute after:w-1 after:h-10 after:top-1/2 after:left-0 after:-translate-y-1/2 after:rounded after:opacity-0 after:transition-opacity hover:after:opacity-100 hover:bg-[#313E50]"},nt)])):r("",!0),l.isFollowed&&!l.isMyBet?(o(),a("div",rt,[t("button",{onClick:i[3]||(i[3]=d=>{e.$emit("unfollowAuthor"),s.closeModal()}),class:"no-default-style w-full p-4 flex relative items-center zt-hover after:block after:bg-zt-red after:absolute after:w-1 after:h-10 after:top-1/2 after:left-0 after:-translate-y-1/2 after:rounded after:opacity-0 after:transition-opacity hover:after:opacity-100 hover:bg-[#313E50]"},ht)])):r("",!0),l.isMyBet?r("",!0):(o(),a("hr",ct)),t("div",mt,[t("button",{onClick:i[4]||(i[4]=d=>{e.$emit("reportBet"),s.closeModal()}),class:"no-default-style w-full p-4 flex relative items-center zt-hover after:block after:bg-zt-red after:absolute after:w-1 after:h-10 after:top-1/2 after:left-0 after:-translate-y-1/2 after:rounded after:opacity-0 after:transition-opacity hover:after:opacity-100 hover:bg-[#313E50]"},ut)])])])),[[u,n.clickOutside]])])}const gt=k(F,[["render",_t],["__scopeId","data-v-9379e802"]]),wt={name:"BetDiscItem",components:{ReportModal:T,BetDiscItemModal:gt},mixins:[B],inject:["WP"],props:{betData:Object,blockedUserIds:Array,shouldCountClicks:{type:Boolean,default:!1}},setup(){return{userStore:V()}},data(){return{animate:!1,followChanged:!1,isOptionsModalOpen:!1,isReportModalOpen:!1,likeCount:this.betData.like_count}},computed:{isMyBet(){return this.WP.user.id===+this.betData.author_id},isLikedByMe(){return this.likeCount===0?!1:this.userStore.isCommentLiked(this.betData.comment_id)},settled(){return+this.betData.settled},rate(){return+this.betData.rate},result(){return+this.betData.result},isFollowed(){return this.userStore.isUserFollowed(this.betData.author_id)}},watch:{isFollowed(){this.followChanged=!0,setTimeout(this.refreshTooltips,500)}},methods:{readMore(){this.shouldCountClicks?countClicks("Typy Å»użel - (CZYTAJ DALEJ)").then(()=>{window.location.href=`/?p=${this.betData.post_id}/#comment-${this.betData.comment_id}`}):window.location.href=`/?p=${this.betData.post_id}/#comment-${this.betData.comment_id}`},hideReportModal(){this.isReportModalOpen=!1,this.unblockScrolling()},showReportModal(){if(!this.isLoggedIn()){this.openLoginModal();return}this.isReportModalOpen=!0,setTimeout(()=>{this.blockScrolling()},50)},goToBet(){this.shouldCountClicks?countClicks("Typy Å»użel - (Przejdź do typu w Typach Dnia)").then(()=>{window.location.href=`/?p=${this.betData.post_id}/#comment-${this.betData.comment_id}`}):window.location.href=`/?p=${this.betData.post_id}/#comment-${this.betData.comment_id}`},closeFromOptions(){this.unblockScrolling(),setTimeout(()=>{this.isOptionsModalOpen=!1},0)},handleOptionsModal(){this.isOptionsModalOpen||(this.isOptionsModalOpen=!0,this.blockScrolling())},toggleLike(){return this.shouldCountClicks&&countClicks("Typy Å»użel - (lubiÄ to)"),this.animate=!0,this.isLikedByMe?(this.animate=!1,this.removeLike()):this.addLike()},addLike(){axios.post(this.WP.ajaxUrl,{endpoint:"api_add_comment_like",comment_id:this.betData.comment_id,is_bet:!0}).then(e=>{if(e.data.success&&e.data.data.message!=="error"){if(this.userStore.addLikedCommentId(this.betData.comment_id),this.likeCount++,+this.betData.author_id==+this.WP.user.id)return;if(this.authorId>0){const i={recipientId:this.betData.author_id,comment_id:this.betData.comment_id,post_id:e.data.data.post_id,sender_id:e.data.data.comment_like.user_id.toString(),seen:"0",created_at:DateTime.now().toFormat("yyyy-MM-dd HH:mm:ss"),type:"BetLike",sender_avatar:this.WP.user.avatar,sender_name:this.WP.user.name||!1,id:e.data.data.id};socket?.emit("notify-user",i)}}})},removeLike(){axios.post(this.WP.ajaxUrl,{endpoint:"api_delete_comment_like",comment_id:this.betData.comment_id}).then(e=>{e.data.success&&e.data.data.message!=="error"&&(this.userStore.removeLikedCommentId(this.betData.comment_id),this.likeCount--)})},getSettleBgColor(){return{"rate-won":this.settled&&this.result===1,"rate-lost":this.settled&&this.result===-1,"rate-return":this.settled&&this.result===0,"invalid-bet":this.settled&&this.result===-2}},follow(e=!1){if(!this.isLoggedIn()){this.openLoginModal();return}this.blockedUserIds.includes(this.betData.author_id)||this.userStore.followUser(this.betData.author_id,e)},unfollow(e=!1){if(!this.isLoggedIn()){this.openLoginModal();return}this.userStore.unfollowUser(this.betData.author_id,e)}}}
1,p=e=>(D("data-v-8e86052e"),e=e(),H(),e),xt={class:"border-y border-zt-light relative bg-zt-normal rounded-zt flex flex-col -mx-2 xl:mx-0 xl:border-x"},bt={key:0},Ct={class:"px-3 pt-[7px] pb-[14px] w-full relative"},kt={class:"flex items-center justify-center"},vt=["href"],yt={class:"flex items-center relative"},zt=["alt","src"],Mt=v('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-8e86052e><rect x="0.5" y="0.5" width="19" height="19" rx="9.5" fill="#3A4B64" data-v-8e86052e></rect><rect x="0.5" y="0.5" width="19" height="19" rx="9.5" stroke="white" data-v-8e86052e></rect><path d="M10.1293 5.00512C9.23895 5.1766 8.5718 5.78033 8.3181 6.64715C8.26642 6.81629 8.26172 6.87971 8.26172 7.29316C8.26172 7.77943 8.28051 7.92507 8.39092 8.37375C8.64228 9.37448 9.15438 10.1544 9.76046 10.4527C10.0447 10.5913 10.2021 10.6289 10.5051 10.6289C10.9843 10.6289 11.3391 10.4762 11.7055 10.1121C12.2294 9.59529 12.5794 8.81069 12.725 7.82876C12.7791 7.46465 12.7626 6.88676 12.6898 6.63776C12.469 5.86959 11.8841 5.28466 11.1135 5.05915C10.9749 5.01921 10.8645 5.00747 10.5639 5.00277C10.3571 4.99807 10.1622 5.00042 10.1293 5.00512Z" fill="white" data-v-8e86052e></path><path d="M6.88779 6.89214C6.7304 6.94382 6.6012 7.05657 5.77196 7.88346C5.28099 8.37443 4.87225 8.77378 4.8652 8.77378C4.85815 8.77378 4.69841 8.62109 4.51048 8.43551C4.10174 8.03146 4.02187 7.98917 3.70474 8.00327C3.48392 8.01267 3.34532 8.06904 3.20202 8.21234C3.03993 8.37443 3 8.48719 3 8.77378C3 9.00399 3.0047 9.02748 3.06812 9.12615C3.10571 9.18487 3.42284 9.51845 3.77286 9.86847C4.49169 10.5873 4.52693 10.6108 4.82526 10.6249C5.18468 10.6437 5.09306 10.7165 6.49549 9.31643C7.18613 8.62813 7.76401 8.03381 7.79925 7.97508C7.85563 7.87877 7.86267 7.84823 7.86267 7.63446C7.86267 7.36196 7.82039 7.2445 7.66065 7.08476C7.51265 6.93677 7.3811 6.88274 7.14619 6.87804C7.03578 6.87569 6.92068 6.88039 6.88779 6.89214Z" fill="white" data-v-8e86052e></path><path d="M8.58047 10.6807C7.52337 11.0166 6.95723 11.2327 6.71527 11.3854C6.34881 11.6203 6.03403 12.3956 6.00349 13.1308C5.99174 13.3798 5.99644 13.4292 6.04342 13.5466C6.0998 13.6993 6.25014 13.8661 6.40519 13.9483L6.5015 14H10.495H14.4885L14.5942 13.9483C14.6529 13.9178 14.7375 13.8591 14.7821 13.8144C14.8268 13.7698 14.8714 13.7392 14.8785 13.7439C14.8878 13.7486 14.9137 13.7299 14.9372 13.6993C14.9818 13.65 14.9818 13.65 14.9372 13.6829C14.9113 13.7017 14.8972 13.7064 14.9043 13.6946C14.909 13.6805 14.9301 13.6359 14.9466 13.5936C14.9654 13.5537 14.9865 13.5184 14.9936 13.5184C15.0264 13.5184 15.017 13.004 14.9842 12.816C14.9654 12.708 14.9513 12.6117 14.9513 12.6046C14.9536 12.5976 14.9489 12.5741 14.9395 12.5553C14.8761 12.3838 14.8738 12.3603 14.9278 12.2992L14.9818 12.2382L14.9301 12.2828C14.8785 12.3251 14.8761 12.3251 14.862 12.2828C14.6976 11.8177 14.5143 11.524 14.2959 11.3854C14.0563 11.2304 13.3374 10.9555 12.5881 10.7324L12.238 10.629L12.1582 10.6924C11.841 10.9508 11.7353 11.0213 11.5286 11.1223C11.1293 11.3197 10.7933 11.3831 10.3188 11.3525C9.90772 11.3291 9.52951 11.1928 9.156 10.9321C9.06439 10.8686 8.94693 10.7747 8.89525 10.723C8.84592 10.6713 8.78719 10.6314 8.7684 10.6314C8.7496 10.6337 8.66504 10.6549 8.58047 10.6807Z" fill="white" data-v-8e86052e></path></svg>',1),Lt=[Mt],Bt={class:"w-full flex justify-center pt-[6px]"},Dt={class:"text-sm font-semibold group-hover:brightness-90 group-hover:underline group-active:brightness-75 cursor-pointer leading-[150%]"},Ht=p(()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"5",viewBox:"0 0 23 5",fill:"none"},[t("circle",{cx:"20.5",cy:"2.5",r:"2.5",fill:"#D9D9D9"}),t("circle",{cx:"11.5",cy:"2.5",r:"2.5",fill:"#D9D9D9"}),t("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"#D9D9D9"})],-1)),Vt=[Ht],Ot={class:"w-full flex bg-[#1F2733] pt-[6px] relative items-center px-6 pb-[19px] rounded-zt min-h-[70px] mt-2 flex-col"},Rt={class:"flex gap-x-[6px] items-center"},St=["src","alt"],Zt=["src","alt"],It={class:"text-zt-more text-sm font-medium"},Tt={class:"pt-[3px] text-sm font-semibold leading-[150%] text-center"},Pt=["title"],jt={class:"text-center text-base whitespace-nowrap overflow-hidden overflow-ellipsis font-semibold relative z-10"},At={key:0},Ut=v('<svg class="absolute right-1 top-0 h-8 w-4" viewBox="0 0 17 23" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-8e86052e><path d="M13.3235 17.5098V19.2193H11.658V20.2944H13.3235V22.0039H14.48
167V20.2944H16.1522V19.2193H14.4867V17.5098H13.3235Z" fill="#038733" data-v-8e86052e></path><path d="M2.84954 11.3088V13.5882H0.628906V15.0216H2.84954V17.301H4.40047V15.0216H6.6211V13.5882H4.40047V11.3088H2.84954Z" fill="#038733" data-v-8e86052e></path><path d="M3.28517 0.660156V1.65739H2.31364V2.28451H3.28517V3.28174H3.9637V2.28451H4.93523V1.65739H3.9637V0.660156H3.28517Z" fill="#038733" data-v-8e86052e></path><path d="M11.5164 2.61937V5.32614H8.87938V7.02833H11.5164V9.7351H13.3581V7.02833H15.9951V5.32614H13.3581V2.61937H11.5164Z" fill="#038733" data-v-8e86052e></path></svg><svg class="absolute left-1 top-0 h-12 w-6" viewBox="0 0 17 23" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-8e86052e><path d="M13.3235 17.5098V19.2193H11.658V20.2944H13.3235V22.0039H14.4867V20.2944H16.1522V19.2193H14.4867V17.5098H13.3235Z" fill="#038733" data-v-8e86052e></path><path d="M2.84954 11.3088V13.5882H0.628906V15.0216H2.84954V17.301H4.40047V15.0216H6.6211V13.5882H4.40047V11.3088H2.84954Z" fill="#038733" data-v-8e86052e></path><path d="M3.28517 0.660156V1.65739H2.31364V2.28451H3.28517V3.28174H3.9637V2.28451H4.93523V1.65739H3.9637V0.660156H3.28517Z" fill="#038733" data-v-8e86052e></path><path d="M11.5164 2.61937V5.32614H8.87938V7.02833H11.5164V9.7351H13.3581V7.02833H15.9951V5.32614H13.3581V2.61937H11.5164Z" fill="#038733" data-v-8e86052e></path></svg>',2),Nt=[Ut],Wt={key:1},Ft={class:"absolute top-1/2 left-0 animate-[awesome-bet-rate_3.5s_ease-in_infinite]",style:{"animation-delay":"-0.5s"},viewBox:"0 0 11 11",width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$t=p(()=>t("path",{d:"m 5.7099829,0.03044904 1.32543,3.98788996 h 4.2891701 l -3.4700001,2.4647 1.3254,3.9879 -3.47,-2.4646 -3.47004,2.4646 1.32544,-3.9879 -3.47003001,-2.4647 H 4.3845429 Z",fill:"#038733"},null,-1)),Et=[$t],qt={class:"absolute top-1/2 left-2 animate-[awesome-bet-rate_1.5s_ease-in_infinite]",style:{"animation-delay":"-0.2s"},viewBox:"0 0 11 11",width:"12",height:"12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gt=p(()=>t("path",{d:"m 5.7099829,0.03044904 1.32543,3.98788996 h 4.2891701 l -3.4700001,2.4647 1.3254,3.9879 -3.47,-2.4646 -3.47004,2.4646 1.32544,-3.9879 -3.47003001,-2.4647 H 4.3845429 Z",fill:"#038733"},null,-1)),Jt=[Gt],Kt={class:"absolute top-1/2 left-6 animate-[awesome-bet-rate_2.8s_ease-in_infinite]",style:{"animation-delay":"-0.5s"},viewBox:"0 0 11 11",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yt=p(()=>t("path",{d:"m 5.7099829,0.03044904 1.32543,3.98788996 h 4.2891701 l -3.4700001,2.4647 1.3254,3.9879 -3.47,-2.4646 -3.47004,2.4646 1.32544,-3.9879 -3.47003001,-2.4647 H 4.3845429 Z",fill:"#038733"},null,-1)),Qt=[Yt],Xt={class:"absolute top-1/2 right-0 animate-[awesome-bet-rate_4s_ease-in_infinite]",style:{"animation-delay":"-2.5s"},viewBox:"0 0 11 11",width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},te=p(()=>t("path",{d:"m 5.7099829,0.03044904 1.32543,3.98788996 h 4.2891701 l -3.4700001,2.4647 1.3254,3.9879 -3.47,-2.4646 -3.47004,2.4646 1.32544,-3.9879 -3.47003001,-2.4647 H 4.3845429 Z",fill:"#038733"},null,-1)),ee=[te],se={class:"absolute top-1/2 right-2 animate-[awesome-bet-rate_2.2s_ease-in_infinite]",style:{"animation-delay":"-0.1s"},viewBox:"0 0 11 11",width:"12",height:"12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie=p(()=>t("path",{d:"m 5.7099829,0.03044904 1.32543,3.98788996 h 4.2891701 l -3.4700001,2.4647 1.3254,3.9879 -3.47,-2.4646 -3.47004,2.4646 1.32544,-3.9879 -3.47003001,-2.4647 H 4.3845429 Z",fill:"#038733"},null,-1)),oe=[ie],ae={class:"absolute top-1/2 right-6 animate-[awesome-bet-rate_1.7s_ease-in_infinite]",style:{"animation-delay":"-0.7s"},viewBox:"0 0 11 11",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le=p(()=>t("path",{d:"m 5.7099829,0.03044904 1.32543,3.98788996 h 4.2891701 l -3.4700001,2.4647 1.3254,3.9879 -3.47,-2.4646 -3.47004,2.4646 1.32544,-3.9879 -3.47003001,-2.4647 H 4.3845429 Z",fill:"#038733"},null,-1)),ne=[le],re={class:"pt-[26px] break-words text-sm leading-[21px] font-light"},de={class:"border-t w-full border-zt-light py-2 flex items-center justify-center"},he=p(()=>t("path",{d:"M8.02052 3.29201C7.97899 3.31156 7.953 3.35321 7.95412 3.39843C7.97027 4.05479 7.97835 4.43525 7.97835 4.53979V4.83551L7.92797 4.93901C7.8714 5.05524 7.84218 5.10345 7.42778 5.76467C7.26549 6.02362 7.051 6.37847 6.95113 6.55326C6.8321 6.76157 6.7698 6.99652 6.77024 7.23539L6.77615 10.4265C6.77687 10.8176 7.09988 11.1342 7.49809 11.1342H11.0513L11.1808 11.0718C11.4717 10.9316 11.6853 10.6054 11.6868 10.2988C11.6874 10.1806 11.6836 10.1653 11.6225 10.0417C11.5868 9.96934 11.5594 9.90908
111.5617 9.90775C11.564 9.90642 11.631 9.87712 11.7107 9.84266C12.053 9.69455 12.2544 9.45916 12.269 9.19021C12.2767 9.04821 12.2428 8.95009 12.1285 8.78295C12.0824 8.71557 12.0447 8.65649 12.0447 8.65164C12.0447 8.6468 12.0558 8.64284 12.0695 8.64284C12.0831 8.64284 12.1498 8.61458 12.2177 8.58004C12.5277 8.4223 12.7052 8.12287 12.6549 7.84249C12.6214 7.65568 12.5212 7.50716 12.2986 7.31427L12.2256 7.25107L12.3095 7.16301C12.4176 7.04942 12.4832 6.95595 12.5262 6.85412C12.5546 6.78718 12.5609 6.74432 12.5612 6.6166C12.5617 6.37306 12.5044 6.20983 12.3687 6.06876C12.2778 5.97426 12.1765 5.91277 12.0332 5.86522L11.9155 5.82615C10.2991 5.81738 9.49093 5.81105 9.49096 5.80717C9.49102 5.80134 9.50466 5.6868 9.52127 5.55262C9.55932 5.24537 9.56347 4.6846 9.52919 4.48065C9.43159 3.89988 9.1171 3.44498 8.70331 3.28599C8.5997 3.24619 8.56565 3.2406 8.40398 3.23694C8.30366 3.23467 8.19168 3.2389 8.15517 3.24635C8.11864 3.25379 8.05805 3.27434 8.02052 3.29201ZM4.65918 6.73157H6.03585C6.1572 6.73157 6.25557 6.82819 6.25557 6.94737V11.2209C6.25557 11.3401 6.1572 11.4367 6.03585 11.4367H4.65918C4.53783 11.4367 4.43945 11.3401 4.43945 11.2209V6.94737C4.43945 6.82819 4.53783 6.73157 4.65918 6.73157Z","stroke-width":"0.5"},null,-1)),ce=[he],me=p(()=>t("span",{class:"text-sm"},"LubiÄ to!",-1)),fe={class:"text-sm mt-[1px] xl:ml-[3px] xl:mr-1"};function pe(e,i,l,g,n,s){const u=_("BetDiscItemModal"),d=_("report-modal");return o(),a("div",xt,[n.isOptionsModalOpen?(o(),a("div",bt,[x(z,{name:"fade"},{default:y(()=>[x(u,{"is-followed":s.isFollowed,"is-my-bet":s.isMyBet,onOpenBet:s.goToBet,onClose:s.closeFromOptions,onFollowAuthor:s.follow,onUnfollowAuthor:s.unfollow,onReportBet:s.showReportModal},null,8,["is-followed","is-my-bet","onOpenBet","onClose","onFollowAuthor","onUnfollowAuthor","onReportBet"])]),_:1})])):r("",!0),x(z,{name:"fade"},{default:y(()=>[n.isReportModalOpen?(o(),C(d,{key:0,id:l.betData.comment_id,type:"bet","link-to-reported-item":`${e.window.location.origin}/?p=${l.betData.post_id}#comment-${l.betData.comment_id}/`,onClose:s.hideReportModal},null,8,["id","link-to-reported-item","onClose"])):r("",!0)]),_:1}),t("div",Ct,[t("div",kt,[t("a",{href:`/typer/${l.betData.author_id}/`,class:"no-default-style flex flex-col justify-center items-center w-fit group"},[t("div",yt,[t("img",{alt:`Awatar ${l.betData.author_name}`,src:l.betData.author_avatar,width:"50",height:"50",class:"object-cover cursor-pointer group-hover:brightness-90 group-active:brightness-75 rounded-full aspect-square"},null,8,zt),s.isFollowed?(o(),a("div",{key:0,class:w(["absolute -right-1 bottom-0 bg-zt-main rounded-full w-5 h-5 flex justify-center items-center",{"animate-[show-up_1s_ease-in-out]":n.followChanged}]),"data-bs-toggle":"tooltip","data-bs-placement":"bottom","data-bs-delay":"500",title:"Obserwujesz"},Lt,2)):r("",!0)]),t("div",Bt,[t("div",Dt,h(l.betData.author_name),1)])],8,vt)]),t("div",{onClick:i[0]||(i[0]=(...m)=>s.handleOptionsModal&&s.handleOptionsModal(...m)),class:"absolute right-3 top-[20px] cursor-pointer hover:bg-zt-light transition-colors rounded-full py-3 px-1"},Vt),t("div",Ot,[t("div",Rt,[l.betData.discipline.toLowerCase()!=="inna"&&l.betData.discipline!=="PozostaÅe"?
1(o(),a("img",{key:0,class:"min-w-[16px] min-h-[11px] w-[16px] h-[11px] discipline-icon",src:"/wp-content/themes/zawodtyper/assets/images/dyscypliny/"+l.betData.discipline.replace(" ","").toLowerCase()+".svg",alt:l.betData.discipline},null,8,St)):(o(),a("img",{key:1,class:"min-w-[16px] min-h-[11px] w-[16px] h-[11px] discipline-icon",src:"/wp-content/themes/zawodtyper/assets/images/dyscypliny/inna.svg",alt:l.betData.discipline,width:"16",height:"11"},null,8,Zt)),t("span",It,h(l.betData.match_name),1)]),t("span",Tt,h(l.betData.type),1),t("div",{class:w(["absolute bottom-0 translate-y-1/2 left-1/2 -translate-x-1/2 rounded-zt h-[26px] flex justify-center items-center w-[90px] overflow-hidden border border-transparent cursor-default select-none",s.settled?[s.getSettleBgColor(),{"after:absolute after:bg-white after:w-[10%] after:h-full after:top-0 after:right-[110%] after:animate-[bet-result-shine_24s_ease-in-out_infinite] after:blur after:skew-x-12 after:transition-transform":s.result===1}]:"rate-unchecked"]),"data-bs-toggle":"tooltip","data-bs-delay":"500","data-bs-placement":"bottom","data-bs-trigger":"click",title:s.settled?s.result===1?"Wygrana":s.result===-1?"Przegrana":s.result===-2?"Odrzucony (czarny kurs)":"Zwrot":"Nierozliczony"},[t("div",jt,h(s.rate.toFixed(2)),1),5<=s.rate&&s.rate<10&&s.settled&&s.result===1?(o(),a("div",At,Nt)):r("",!0),10<=s.rate&&s.settled&&s.result===1?(o(),a("div",Wt,[(o(),a("svg",Ft,Et)),(o(),a("svg",qt,Jt)),(o(),a("svg",Kt,Qt)),(o(),a("svg",Xt,ee)),(o(),a("svg",se,oe)),(o(),a("svg",ae,ne))])):r("",!0)],10,Pt)]),t("div",re,[Z(h(l.betData.analysis.slice(0,430))+" "+h(l.betData.analysis.length>430?"...":"")+" ",1),l.betData.analysis.length>350?(o(),a("span",{key:0,class:"cursor-pointer zt-hover break-keep uppercase underline text-zt-more font-semibold",onClick:i[1]||(i[1]=(...m)=>s.readMore&&s.readMore(...m))},"Czytaj dalej")):r("",!0)])]),t("div",de,[t("div",{class:w(["flex items-center gap-0.5 text-sm duration-500 transition-colors cursor-pointer zt-hover",s.isLikedByMe?"text-[#419AD4]":"text-zt-more"]),onClick:i[2]||(i[2]=(...m)=>s.toggleLike&&s.toggleLike(...m))},[(o(),a("svg",{class:w(["w-7 h-7 overflow-hidden rounded-full transition-colors duration-[1s] shrink-0",[{"animate-[like-animation_1s]":n.animate},s.isLikedByMe?"stroke-transparent fill-[#419AD4]":"stroke-zt-more fill-transparent"]]),viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},ce,2)),me,t("span",fe,"("+h(n.likeCount)+")",1)],2)])])}const ue=k(wt,[["render",pe],["__scopeId","data-v-8e86052e"]]),_e={name:"DisciplineRanking",components:{RankingUser:W},mixins:[B],inject:["WP"],props:{discipline:{type:String,required:!0},analyticName:{type:String,default:""}},data(){return{allRankingCategories:[],ranking:[],offset:0,numberOfRankingItemsToDownload:200,show:5,isLoading:!0}},async mounted(){await this.getAllRankingCategories(),this.fetchRanking()},computed:{showMoreButton(){return this.ranking.length>this.show},rankingToShow(){return this.ranking.slice(0,this.show)},lastPosition(){if(this.allRankingCategories.length>0){const e=this.allRankingCategories.find(i=>i.ranking_category===this.discipline);return e?e.last_position:0}return 0},firstNegativePointsIndex(){return this.ranking.findIndex(e=>parseInt(e.points)<0)}},methods:{loadRankingData(e){return axios.post(this.WP.ajaxUrl,{endpoint:"api_get_best_typers_by_discipline",discipline:e,offset:this.offset,limit:this.numberOfRankingItemsToDownload})},fetchRanking(){const e=this.discipline;this.offset===0&&this.ranking.length===0&&(this.isLoading=!0),!(this.ranking.length>=this.lastPosition)&&this.loadRankingData(e).then(i=>{this.updateRankingData(i.data.data),this.isLoading=!1,this.lastPosition>this.ranking.length&&(this.updateOffsetsAndLimits(),this.fetchRanking())})},updateRankingData(e){this.ranking=this.ranking.concat(e)},updateOffsetsAndLimits(){this.offset=this.ranking.length,this.numberOfRankingItemsToDownload+=1e3},getAllRankingCategories(){return axios.post(this.WP.ajaxUrl,{endpoint:"api_get_all_ranking_disciplines"}).then(e=>{e.data.success&&(this.allRankingCategories=Array.from(e.data.data))})},getCategorySVG(e){return e==="Inne"&&(e="Inna"),"/wp-content/themes/zawodtyper/assets/images/dyscypliny/"+e.replace(" ","").toLowerCase()+".svg"}}},ge={class:"text-base bg-zt-normal rounded-t-zt border border-zt-light font-semibold py-4 px-3 xl:p-5"},we={class:"min-h-[84px] h-[84px] bg-zt-light/35 border-x border-b border-zt-light"},xe={class:"flex items-center justify-between gap-2.5 px-3 h-full"},be={class:"flex items-center gap-2.5"}
1,Ce={class:"bg-zt-light/35 w-[56px] h-[56px] border border-zt-light rounded-zt p-2.5"},ke=["src","alt"],ve={class:"flex flex-col gap-1"},ye={class:"text-sm font-medium"},ze=t("div",{class:"flex items-center gap-1.5"},[t("span",{class:"text-sm text-zt-more"},"Ranking Typerów")],-1),Me={class:"text-sm text-zt-more font-normal"},Le={key:0,class:"h-[302px] bg-zt-normal border-x border-b grid place-items-center border-zt-light rounded-b-zt"},Be=t("div",{class:"spinner mx-auto h-5 w-5",role:"status"},[t("span",{class:"invisible"},"Wczytywanie...")],-1),De=[Be],He={key:0,class:"h-[41px] grid border-b border-zt-light border-dashed place-items-center text-xs font-medium text-zt-more mr-1 xl:ml-2.5"},Ve={key:0,class:"flex justify-center py-5 border-b border-zt-light rounded-b-zt"};function Oe(e,i,l,g,n,s){const u=_("ranking-user");return o(),a("div",null,[t("div",ge,[t("span",null,"Ranking Typerów na dyscyplinÄ "+h(l.discipline),1)]),t("div",null,[t("div",we,[t("div",xe,[t("div",be,[t("div",Ce,[t("img",{class:"w-9 h-9",src:s.getCategorySVG(l.discipline),alt:l.discipline,width:"21",height:"21"},null,8,ke)]),t("div",ve,[t("span",ye,h(l.discipline),1),ze])]),t("span",Me,h(s.lastPosition)+" Typerów ",1)])])]),n.isLoading?(o(),a("div",Le,De)):(o(),a("div",{key:1,class:w([{"pb-1":!s.showMoreButton},"bg-zt-normal border-x border-zt-light rounded-b-zt"])},[(o(!0),a(M,null,L(s.rankingToShow,(d,m)=>(o(),a("div",{key:d.user_id},[x(u,{class:"border-zt-light border-b first-of-type:border-t-0 !bg-transparent last-of-type:mb-1 xl:last-of-type:mb-[1px] mx-3 xl:mx-2.5 !pl-1 xl:!pl-0 !pr-1",data:d,index:Number(d.position),type:"points","is-it-me":Number(d.user_id)===s.WP.user.id,"analytic-name":l.analyticName,"is-discipline-ranking":!0},null,8,["data","index","is-it-me","analytic-name"]),m+1===s.firstNegativePointsIndex&&m+1!==s.lastPosition?(o(),a("div",He," Użytkownicy z minusowym saldem ")):r("",!0)]))),128)),s.showMoreButton?(o(),a("div",Ve,[t("button",{onClick:i[0]||(i[0]=d=>{n.show+=20,e.countClicks(l.analyticName)}),class:"text-zt-more text-xs font-normal uppercase underline"}," RozwiÅ ")])):r("",!0)],2))])}const Re=k(_e,[["render",Oe]]),Se={name:"BetsDiscipline",components:{DisciplineRanking:Re,UserRankingModal:N,LastBets:U,BookmakerRatingModal:A,BookmakerRatingItem:j,BookmakersRankingItem:P,BetDiscItem:ue},mixins:[B],inject:["WP"],setup(){const e=V(),i=I();return{userStore:e,betStore:i}},data(){return{bets:[],loading:!0,settledToShow:5,firstShow:0,blockedUsersIds:[],disciplines:[],discipline:this.$attrs.discipline,countableAnalytics:[670,32661,317,62735,120657],bookmakerOffers:[],showAllBookies:!1,isModalOpen:!1,selectedBookieName:""}},computed:{shouldCountClicks(){return this.countableAnalytics.includes(this.WP.id)},bookmakerOffersToShow(){return this.showAllBookies?this.bookmakerOffers:this.bookmakerOffers.slice(0,window.size.desktop?6:5)}},mounted(){this.userStore.getLikedCommentIds(),this.getBets(),this.getDisciplines(),this.getBookmakersOffer(),axios.post(this.WP.ajaxUrl,{endpoint:"api_get_blocked_users_ids"}).then(e=>{this.blockedUserIds=e.data.data})},methods:{openModal(e){this.selectedBookieName=e,this.isModalOpen=!0,this.blockScrolling()},closeModal(){this.isModalOpen=!1,this.unblockScrolling()},getBookieItem(e){return{id:e.id,name:e.name,value:e.offer}},getIcon(e){let i=e.name.toLowerCase().replace(/\s+/g,"");return["liga mistrzów","analizy piÅkarskie"].includes(e.name.toLowerCase())&&(i="piÅkanożna"),e.name.toLowerCase()==="skoki narciarskie"&&(i="sportyzimowe"),i},getName(e){let i="Typy "+e.name;return["analizy piÅkarskie","typy dnia"].includes(e.name.toLowerCase())&&(i=e.name),e.name==="Å»użel"&&(i="Typy Å»użel"),i},getDisciplines(){axios.post(this.WP.ajaxUrl,{endpoint:"api_get_disciplines"}).then(e=>{e=e.data.data.filter(i=>i.is_page_active==="1"),this.disciplines=[{id:"0",name:"Typy dnia",link:"/typy-dnia/",is_page_active:1},...e]})},getBets(){axios.post(this.WP.ajaxUrl,{endpoint:"api_get_bets_by_discipline",discipline:this.discipline}).then(e=>{const i=e.data.data;this.bets=[...i.unsettled,...i.settled],this.firstShow=i.unsettled.length+5,this.loading=!1,this.removePlaceholder("bets-discipline")})},getBookmakersOffer(){axios.post(this.WP.slowAjaxUrl,{endpoint:"api_get_bookmakers_offer_for_discipline",discipline:this.discipline}).then(e=>{const i=e.data.data;i.sort((l,g)=>+l.offer>+g.offer?-1:+l.offer<+g.offer?1:0),this.bookmakerOffers=i})}}},b=e=>(D("data-v-e906868b"),e=e(),H(),e),Ze={key:0},Ie={class:"xl:-mt-2.5 xl:-mx-[9px]"},Te={key:0},Pe={class:"-mx-2 flex flex-col gap-y-6 xl:gap-y-9 xl:mx-0"},je={key:0,class:"px-1 xl:px-0"},Ae={class:"uppercase text-zt-more text-sm font-medium text-center underline mt-4"},Ue=b(()=>t("div",{class:"h-[1px] bg-zt-light -mx-2 mt-4 mb-[17px] xl:mb-[28px] xl:mx-0"},null,-1)),Ne={key:1},We=b(()=>t("div",{class:"h-[1px] bg-zt-light -mx-2 mt-4 mb-[17px] xl:mb-[28px] xl:mx-0"},null,-1)),Fe={class:"!text-[20px] !font-semibold !my-0"},$e={class:"mt-2.5 grid grid-cols-1 gap-x-4 gap-y-2.5 xl:grid-cols-2"},Ee={key:0,class:"uppercase flex justify-center gap-x-2 items-center text-zt-more text-sm font-medium text-center underline mt-4"},qe=b(()=>
1t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"4",viewBox:"0 0 8 4",fill:"none"},[t("path",{d:"M3.62174 3.14286L0.653599 0.156284C0.596129 0.0984558 0.637089 3.04852e-07 0.718619 3.01288e-07L1.94255 2.47788e-07C1.96797 2.46677e-07 1.99225 0.0105554 2.00959 0.0291445L4.12585 2.29816C4.13138 2.30409 4.12559 2.31355 4.11779 2.31131C4.10887 2.30875 4.11072 2.29561 4.11999 2.29561H4.21003C4.21961 2.29561 4.22142 2.30923 4.21218 2.31173C4.2042 2.31389 4.1984 2.30425 4.20404 2.29821L6.32516 0.0290694C6.3425 0.0105256 6.36674 5.44e-08 6.39213 5.3291e-08L7.61127 0C7.6928 -3.564e-09 7.73376 0.0984555 7.67629 0.156283L4.70816 3.14286L4.22858 3.60531C4.19307 3.63955 4.13683 3.63955 4.10132 3.60531L3.62174 3.14286Z",fill:"#93A3BA"})],-1)),Ge={key:2,class:"h-[1px] bg-zt-light -mx-2 mt-4 mb-[17px] xl:mb-[28px] xl:mx-0"},Je={key:3,class:"flex flex-col gap-y-1 font-normal mx-2"},Ke=b(()=>t("span",{class:"uppercase text-zt-more font-medium leading-[28px] text-base pb-3"},"PozostaÅe typy",-1)),Ye=["href"],Qe={class:"flex gap-x-2.5 items-center"},Xe={class:"w-[28px]"},t1=["alt","src"],e1=b(()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"},[t("g",{"clip-path":"url(#clip0_37861_184828)"},[t("path",{d:"M6.52167 5.71852L0.933505 0.136003C0.825304 0.0433426 0.686123 -0.00507651 0.543774 0.000421818C0.401425 0.00592014 0.266393 0.064931 0.165662 0.165662C0.064931 0.266393 0.00592014 0.401425 0.000421818 0.543774C-0.00507651 0.686123 0.0433426 0.825304 0.136003 0.933505L5.26038 6.05788L0.28306 11.0352C0.177716 11.1412 0.118587 11.2845 0.118587 11.4339C0.118587 11.5834 0.177716 11.7267 0.28306 11.8327C0.335641 11.8857 0.398197 11.9278 0.467121 11.9565C0.536045 11.9852 0.609973 12 0.684639 12C0.759306 12 0.833233 11.9852 0.902157 11.9565C0.971082 11.9278 1.03364 11.8857 1.08622 11.8327L6.52167 6.39724C6.61147 6.30713 6.6619 6.1851 6.6619 6.05788C6.6619 5.93066 6.61147 5.80863 6.52167 5.71852Z",fill:"white"}),t("path",{d:"M11.9357 5.71852L6.34756 0.136004C6.23936 0.0433426 6.10018 -0.00507651 5.95783 0.000421818C5.81548 0.00592014 5.68045 0.064931 5.57972 0.165662C5.47899 0.266393 5.41998 0.401425 5.41448 0.543774C5.40898 0.686123 5.4574 0.825305 5.55006 0.933505L10.6744 6.05788L5.69712 11.0352C5.59178 11.1412 5.53265 11.2845 5.53265 11.4339C5.53265 11.5834 5.59178 11.7267 5.69712 11.8327C5.80309 11.938 5.94645 11.9972 6.09587 11.9972C6.24529 11.9972 6.38865 11.938 6.49462 11.8327L11.9357 6.39724C12.0255 6.30713 12.076 6.1851 12.076 6.05788C12.076 5.93066 12.0255 5.80863 11.9357 5.71852Z",fill:"white"})]),t("defs",null,[t("clipPath",{id:"clip0_37861_184828"},[t("rect",{width:"13",height:"12",fill:"white"})])])],-1)),s1=b(()=>t("div",{class:"h-[1px] bg-zt-light -mx-2 my-6 xl:mt-4 xl:mx-0"},null,-1));function i1(e,i,l,g,n,s){const u=_("LastBets"),d=_("DisciplineRanking"),m=_("bookmaker-rating-modal"),O=_("BookmakerRatingItem");return o(),C(z,{name:"fade"},{default:y(()=>[n.loading?r("",!0):(o(),a("div",Ze,[t("div",Ie,[n.bets.length>0?(o(),a("div",Te,[t("div",Pe,[x(u,{ref:"bets",bets:n.bets,"show-amount":n.firstShow,"show-more-amount":10,title:"","show-left-line":!1,"only-items":""},null,8,["bets","show-amount"])]),n.bets.length>n.settledToShow?(o(),a("div",je,[t("div",Ae,[t("span",{onClick:i[0]||(i[0]=c=>{e.$refs.bets.showMore(),n.settledToShow+=10}),class:"zt-hover cursor-pointer"}
1,"Pokaż wiÄcej")])])):r("",!0)])):r("",!0),Ue,x(d,{"analytic-name":"Ranking Typerów wg dyscypliny w typy żużel â (kliki we wszystko, co siÄ klika)",discipline:n.discipline},null,8,["discipline"]),s.bookmakerOffersToShow.length>0?(o(),a("div",Ne,[We,t("h3",Fe,h(`Ranking - oferta ${n.discipline.toLowerCase()}`),1),t("div",null,[n.isModalOpen?(o(),C(m,{key:0,onCloseModal:s.closeModal,"show-hover":!1,"selected-item-name":"","is-bookie-all-ratings-modal":!0,"filtered-selected-ratings":[],bookmakerName:n.selectedBookieName},null,8,["onCloseModal","bookmakerName"])):r("",!0),t("div",$e,[(o(!0),a(M,null,L(s.bookmakerOffersToShow,c=>(o(),C(O,{onClick:o1=>s.openModal(c.name),"analytic-name":"Bukmacherzy w typy żużel â (kliki we wszystko, co siÄ klika)","is-functionality-ratings":"","bookmaker-name":c.name,item:s.getBookieItem(c)},null,8,["onClick","bookmaker-name","item"]))),256))])]),n.showAllBookies?r("",!0):(o(),a("div",Ee,[t("span",{onClick:i[1]||(i[1]=c=>{n.showAllBookies=!0,e.countClicks("Bukmacherzy w typy żużel â (kliki we wszystko, co siÄ klika)")}),class:"zt-hover cursor-pointer"},"RozwiÅ pozostaÅe"),qe]))])):r("",!0),e.window.size.mobile?(o(),a("div",Ge)):r("",!0),e.window.size.mobile?(o(),a("div",Je,[Ke,(o(!0),a(M,null,L(n.disciplines,c=>(o(),a("a",{href:c.link,"data-count-click":"Nawigator żużel",class:w([{"!bg-zt-light":e.window.location.pathname===c.link},"no-default-style py-2.5 h-[50px] px-4 text-base flex items-center justify-between bg-zt-light/35 border border-zt-light rounded-zt"])},[t("div",Qe,[t("div",Xe,[t("img",{alt:s.getName(c),src:`/wp-content/themes/zawodtyper/assets/images/dyscypliny/${s.getIcon(c)}.svg`,class:"h-[31px] max-w-[28px]"},null,8,t1)]),t("span",null,h(s.getName(c)),1)]),e1],10,Ye))),256))])):r("",!0),s1])]))]),_:1})}const x1=k(Se,[["render",i1],["__scopeId","data-v-e906868b"]]);export{x1 as default}; 2//# sourceMappingURL=BetsDiscipline-DxwC9UgY.js.map
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.