2 lines
7.7 KiB
JavaScript
Vendored
2 lines
7.7 KiB
JavaScript
Vendored
import{P as k,e as M,r as d,f as o,g as a,i as t,l as x,v as L,M as V,t as i,w as f,F as g,u as _,o as n,B as C,J as S,m as p,j}from"./vendor.7e4e5e39.js";import{L as Z}from"./Layout.8435b6f7.js";import{S as P}from"./SettingsMenu.e4e104b3.js";import{M as H}from"./MetaHead.6f35dab5.js";import{I}from"./InfinityScroll.fabf526e.js";import{_ as N}from"./plugin-vue_export-helper.21dcd24c.js";const F={components:{MetaHead:H,SettingsMenu:P,InfinityScroll:I},layout:Z,props:{nextCursor:String,points:Array},setup(){return{lastNodeLement:k(null)}},data(){return{pointLists:[],sum:null}},computed:{amount(){return(Math.abs(this.sum)*.035+Math.abs(this.sum)).toFixed(1)},lastElementID(){var e;return(e=this.pointLists[this.pointLists.length-1])==null?void 0:e.id}},watch:{points(e){this.pointLists=e}},mounted(){this.pointLists=this.points},methods:{putFromPagination(e){for(let r of e)this.pointLists.push(r)},checkPaid(e){M.Inertia.post(route("payouts.checkPointPay",e),{preserveScroll:!0,preserveState:!0})}}},B={class:"xl:container xl:mx-auto px-2 md:px-3"},D={class:"mt-16 shadow-classic rounded-md bg-indigo-200"},E={class:"flex flex-col md:grid grid-cols-6 lg:grid-cols-5"},A={class:"col-span-4"},T={class:"border-b border-indigo-300"},R={class:"py-5 px-4 2xl:px-28"},q=_('<a rel="noopener noreferrer nofollow" target="_blank" href="https://yoomoney.ru/pay/page?id=526623"><svg class="h-10 mb-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><defs></defs><path fill="#fff" d="M1265.12,160.92c0-39.25-29.7-71-71.65-71-41.12,0-70.4,30.53-70.4,72.48,0,42.16,30.11,72.9,73.31,72.9,27.41,0,50.46-12.26,64.79-37.18l-29.07-13.5c-6.85,12.46-21.81,20.56-35.72,20.56-17.65,0-38-13.29-39.25-31.77h106.95A77.88,77.88,0,0,0,1265.12,160.92Zm-107.37-12c2.5-18.69,15.37-30.94,35.93-30.94,20.35,0,32.81,12,34.47,30.94Z"></path><path fill="#fff" d="M864.79,89.89c-42.16,0-72.06,30.33-72.06,73.11,0,42.36,29.9,72.27,72.48,72.27,42.78,0,72.68-29.91,72.68-71.65C937.89,120.63,907.16,89.89,864.79,89.89Zm.42,113.6c-21.19,0-34.27-15.78-34.27-40.29,0-24.92,13.29-41.95,34.27-41.95,21.18,0,34.47,16.82,34.47,41.95C899.68,187.92,886.6,203.49,865.21,203.49Z"></path><path fill="#fff" d="M714.67,89.93c-17.27,0-30.28,5.9-43.29,20.53h-4.27c-8.74-13.21-23-20.53-39-20.53A50.44,50.44,0,0,0,587,110.46h-4.27l-.21-.2V92.78H546.78V232.22H585.4V160.46c0-23.17,9.76-36.79,26.63-36.79,15.65,0,25.81,11.59,25.81,29.27v79.28h38.82V160.46c0-23,9.76-36.79,26.84-36.79,15.44,0,25.4,11.59,25.4,29.48v79.07h38.83V148.47C767.73,112.09,748.21,89.93,714.67,89.93Z"></path><path fill="#fff" d="M1351,183.86h-2.76c0-2.48-16.84-46.64-27.88-74l-6.9-17.11h-38.91l55.2,139.93L1308,286h38.64l79.49-193.2H1387.2l-6.35,14.63-21.53,53.27C1353.25,175.58,1350.76,182.48,1351,183.86Z"></path><path fill="#fff" d="M1045,89.93c-17.28,0-32.12,7.52-42.08,20.94h-4.07l-.4-.2V92.78H962.69V232.22h38.62V160.87c0-22.76,11-37,29.07-37,16.87,0,29.27,12.6,29.27,32.52v75.82h38.62V148.07C1098.27,113.92,1075.91,89.93,1045,89.93Z"></path><path fill="#8b3ffd" d="M284.49,10C201.05,10,134,77.5,134,160c0,83.18,67.71,150,150.47,150S435,242.5,435,160,367.25,10,284.49,10Zm0,205.91c-30.78,0-56.08-25.23-56.08-55.91s25.3-55.91,56.08-55.91,56.09,25.23,56.09,55.91C339.89,190.68,315.27,215.91,284.49,215.91Z"></path><path fill="#8b3ffd" d="M134,53.58V271.76H80.68L12.28,53.58Z"></path></svg></a>',1),z={method:"GET",class:"flex",action:"/actions-to-payments"},G=t("button",{type:"submit",class:"ml-5 transition shadow-none hover:shadow-classic2 inline-flex items-center px-8 py-3 justify-center text-base rounded-md text-white bg-pink focus:outline-none"}," \u041F\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u044C ",-1),J={class:"flex justify-between px-4 2xl:px-28 my-4 lg:my-8"},U={class:"flex flex-col text-white"},Y=t("span",{class:"text-lg"},"\u0411\u0430\u043B\u0430\u043D\u0441:",-1),K={class:"text-3xl"},O=p(" \u0412\u044B\u0432\u0435\u0441\u0442\u0438 "),Q={class:"text-white flex justify-end gap-3 flex-wrap pb-2 px-4 2xl:px-28"},W=_('<div class="flex items-center gap-1"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-square"><polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg> \u041E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D: </div><p><a class="underline" rel="noopener noreferrer nofollow" target="_blank" href="https://yoomoney.ru/pay/page?id=526623">Yoomoney</a></p>',2),X=p(" \u0422\u0430\u0440\u0438\u0444\u044B "),$={key:0,class:"my-4 lg:my-8"},tt=t("div",{class:"py-4 px-4 2xl:px-28 md:text-lg text-white"}," \u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439: ",-1),et={class:"divide-y divide-indigo-300"},st={class:"col-span-5 flex items-center"},ot={class:"flex-shrink-0 mr-3 lg:mr-8"},nt=t("use",{"xlink:href":"#arrow-up-circle"},null,-1),it=[nt],lt={class:"flex flex-col"},at={class:"truncate text-base lg:text-lg font-semibold text-gray"},rt={class:"truncate lg:mt-1 text-base text-gray-light"},ct={class:"col-span-2 text-left lg:text-center text-white xl:text-xl font-semibold"},dt={class:"col-span-5 text-left lg:text-right text-gray-light xl:text-lg"},ht={key:0},ft=["onClick"],pt={key:1,class:"py-4 px-4 2xl:px-28 md:text-lg text-gray-light"};function mt(e,r,y,m,l,c){const v=d("meta-head"),w=d("settings-menu"),u=d("inertia-link"),b=d("InfinityScroll");return n(),o(g,null,[a(v,{title:"\u0414\u043E\u0445\u043E\u0434"}),t("div",B,[t("div",D,[t("div",E,[a(w),t("div",A,[t("div",T,[t("div",R,[q,t("form",z,[x(t("input",{"onUpdate:modelValue":r[0]||(r[0]=s=>l.sum=s),type:"number",name:"sum",placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043C\u043C\u0443",class:"w-full focus:ring-4 focus:ring-offset-1 focus:ring-orange focus:ring-opacity-20 focus:ring-offset-orange focus:border-transparent text-gray border border-indigo-300 bg-indigo-200 rounded-md placeholder-gray-light"},null,512),[[L,l.sum]]),G]),x(t("p",{class:"text-white mt-1"}," \u0418\u0422\u041E\u0413\u041E + 3.5% \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u044F \u0441\u0435\u0440\u0432\u0438\u0441\u0430 yoomoney = "+i(c.amount),513),[[V,l.sum]])]),t("div",J,[t("div",U,[Y,t("span",K,i(e.$page.props.balance),1)]),a(u,{href:e.route("setting.payouts"),type:"button",class:"my-1 transition shadow-none hover:shadow-classic2 inline-flex items-center px-8 py-3 justify-center text-base rounded-md text-white bg-orange focus:outline-none"},{default:f(()=>[O]),_:1},8,["href"])]),t("div",Q,[W,a(u,{class:"underline",href:e.route("setting.tarif")},{default:f(()=>[X]),_:1},8,["href"])])]),l.pointLists.length?(n(),o("div",$,[tt,t("div",et,[a(b,{"node-element":m.lastNodeLement,"next-cursor":y.nextCursor,onFromPagination:c.putFromPagination},{default:f(()=>[(n(!0),o(g,null,C(l.pointLists,s=>(n(),o("div",{key:s.id,ref_for:!0,ref:h=>{h&&s.id===c.lastElementID&&(m.lastNodeLement=h)},class:"py-4 px-4 2xl:px-28 lg:items-center flex flex-col lg:grid gap-2 lg:gap-5 grid-cols-12"},[t("div",st,[t("div",ot,[(n(),o("svg",{class:S([s.direction==2?"text-white rotate-180":s.direction==0?"text-green rotate-90":"text-red -rotate-90","transform w-8 h-8"])},it,2))]),t("div",lt,[t("p",at,i(s.date),1),t("p",rt,i(s.time),1)])]),t("div",ct,i(s.point),1),t("div",dt,[p(i(s.type)+" ",1),s.direction==2?(n(),o("div",ht,[t("button",{class:"text-green underline",onClick:h=>c.checkPaid(s.id)}," \u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443 ",8,ft)])):j("",!0)])]))),128))]),_:1},8,["node-element","next-cursor","onFromPagination"])])])):(n(),o("div",pt," \u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445 "))])])])])],64)}var wt=N(F,[["render",mt]]);export{wt as default};
|