office.safe-invest.space Open in urlscan Pro
2606:4700:3030::6815:1515  Public Scan

URL: http://office.safe-invest.space/js/chunk-00f3fd74.cf7d3b89.js
Submission: On March 06 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00f3fd74"],{"03a7":function(e,t,c){"use strict";c.r(t);var n=c("7a23");const a=e=>(Object(n["pushScopeId"])("data-v-ce39e2d2"),e=e(),Object(n["popScopeId"])(),e),o={class:"card"},r={class:"card-body"},s={class:"row"},l={class:"text-center mt-3 col-6 col-sm-4"},i=a(()=>Object(n["createElementVNode"])("div",{class:"mx-auto mb-1 font-size-20"},[Object(n["createElementVNode"])("i",{class:"bx bx-wallet text-dark"})],-1)),d={class:"text-muted mb-1"},b={class:"font-size-15"},m={class:"text-center mt-3 col-6 col-sm-4"},u=a(()=>Object(n["createElementVNode"])("div",{class:"mx-auto mb-1 font-size-20"},[Object(n["createElementVNode"])("i",{class:"bx bx-send text-dark"})],-1)),p={class:"text-muted mb-1"},O={class:"font-size-15"},j={class:"text-center mt-3 col-12 col-sm-4"},y=a(()=>Object(n["createElementVNode"])("div",{class:"mx-auto mb-1 font-size-20"},[Object(n["createElementVNode"])("i",{class:"bx bx-bar-chart-alt text-dark"})],-1)),f={class:"text-muted mb-1"},h={class:"font-size-15"};function v(e,t,c,a,v,g){const E=Object(n["resolveComponent"])("PageHeader"),V=Object(n["resolveComponent"])("account-transfers"),N=Object(n["resolveComponent"])("b-overlay"),k=Object(n["resolveComponent"])("Layout");return Object(n["openBlock"])(),Object(n["createBlock"])(k,null,{default:Object(n["withCtx"])(()=>{var t;return[Object(n["createVNode"])(E,{title:v.title},null,8,["title"]),Object(n["createVNode"])(N,{show:null===(t=v.accountTransfersRef)||void 0===t?void 0:t.loading.transfers,"spinner-variant":"primary",rounded:"sm"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",o,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("div",l,[i,Object(n["createElementVNode"])("p",d,Object(n["toDisplayString"])(e.$t("Transaction.Deposit")),1),Object(n["createElementVNode"])("h5",b,Object(n["toDisplayString"])(((v.transfersStatistic.deposits_amount||0)*v.balanceRate).toFixed(2))+" "+Object(n["toDisplayString"])(e.currentUser.base_currency.symbol),1)]),Object(n["createElementVNode"])("div",m,[u,Object(n["createElementVNode"])("p",p,Object(n["toDisplayString"])(e.$t("Transaction.Withdraw")),1),Object(n["createElementVNode"])("h5",O,Object(n["toDisplayString"])(((v.transfersStatistic.withdraws_amount||0)*v.balanceRate).toFixed(2))+" "+Object(n["toDisplayString"])(e.currentUser.base_currency.symbol),1)]),Object(n["createElementVNode"])("div",j,[y,Object(n["createElementVNode"])("p",f,Object(n["toDisplayString"])(e.$t("Transaction.Amount")),1),Object(n["createElementVNode"])("h5",h,Object(n["toDisplayString"])(((v.balance.amount||0)*v.balanceRate).toFixed(2))+" "+Object(n["toDisplayString"])(e.currentUser.base_currency.symbol),1)])]),Object(n["createVNode"])(V,{title:"",ref:"account-transfers","hide-loading-overlay":""},null,512)])])]),_:1},8,["show"])]}),_:1})}var g=c("444f"),E=c("2579"),V=c("c2a4"),N=c("8dd9"),k=c("4d77"),S={page:{title:"Transfers report",meta:[{name:"description",content:V.description}]},components:{Layout:g["a"],PageHeader:E["a"],AccountTransfers:N["a"]},data(){return{title:this.$t("Transfers.Title"),balance:{},transfersStatistic:{},accountTransfersRef:null,balanceRate:1}},computed:{...k["a"]},methods:{fetchBalance(){this.axios.get("/accounts/balance").then(({data:e})=>{this.balance=e})},fetchTransfersStatistic(){this.axios.get("/transactions/statistics").then(({data:e})=>{this.transfersStatistic=e})}},async mounted(){this.balanceRate=await this.$store.dispatch("markets/getRate",{from:"USD",to:this.currentUser.base_currency.key}),this.fetchTransfersStatistic(),this.fetchBalance(),this.accountTransfersRef=this.$refs["account-transfers"]},metaInfo(){return{title:this.$t("Transfers.Title")}}},x=(c("f34b"),c("6b0d")),w=c.n(x);const D=w()(S,[["render",v],["__scopeId","data-v-ce39e2d2"]]);t["default"]=D},"1cbd":function(e,t,c){"use strict";var n=c("7a23");const a={class:"toolbar d-flex flex-wrap gap-2 justify-content-center align-items-center"};function o(e,t,c,o,r,s){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("button",{type:"button",class:Object(n["normalizeClass"])(["btn btn-sm",{"btn-light":7===s.period,"text-muted":7!==s.period}]),onClick:t[0]||(t[0]=e=>s.select(7))},Object(n["toDisplayString"])(e.$t("Common.Week")),3),Object(n["createElementVNode"])("button",{type:"button",class:Object(n["normalizeClass"])(["btn btn-sm",{"btn-light":30===s.period,"text-muted":30!==s.period}]),onClick:t[1]||(t[1]=e=>s.select(30))},Object(n["toDisplayString"])(e.$t("Common.Month")),3),Object(n["createElementVNode"])("button",{type:"button",class:Object(n["normalizeClass"])(["btn btn-sm",{"btn-light":365===s.period,"text-muted":365!==s.period}]),onClick:t[2]||(t[2]=e=>s.select(365))},Object(n["toDisplayString"])(e.$t("Common.Year")),3)])}var r={name:"DatePeriodSelect",props:{initalPeriod:{type:String,default:"week"},modelValue:{type:Array}},emits:["update:modelValue"],computed:{period(){return this.$moment(this.modelValue[1]).diff(this.$moment(this.modelValue[0]),"days")}},methods:{select(e){this.period!==e&&this.$emit("update:modelValue",[this.$moment(new Date).startOf("day").subtract(e,"d").format(),this.$moment(new Date).startOf("day").startOf("day").format()])}}},s=c("6b0d"),l=c.n(s);const i=l()(r,[["render",o]]);t["a"]=i},2579:function(e,t,c){"use strict";var n=c("7a23");const a={class:"row"},o={class:"col-12"},r={class:"page-title-box d-flex align-items-center justify-content-between"},s={class:"page-title-box__title flex-wrap"},l={class:"mb-0 font-size-18 w-100 w-sm-auto mb-3 mb-sm-0"},i={class:"d-sm-none w-100 w-sm-auto"},d={class:"page-title-center"},b={class:"page-title-right d-none d-sm-block"};function m(e,t,c,m,u,p){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",o,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("h4",l,Object(n["toDisplayString"])(c.title),1),Object(n["createElementVNode"])("div",i,[Object(n["renderSlot"])(e.$slots,"right",{},void 0,!0)])]),Object(n["createElementVNode"])("div",d,[Object(n["renderSlot"])(e.$slots,"center",{},void 0,!0)]),Object(n["createElementVNode"])("div",b,[Object(n["renderSlot"])(e.$slots,"right",{},void 0,!0)])])])])}var u={components:{},props:{title:{type:String,default:""},items:{type:Array,default:()=>[]}}},p=(c("e0da"),c("6b0d")),O=c.n(p);const j=O()(u,[["render",m],["__scopeId","data-v-a0e26974"]]);t["a"]=j},"36bb":function(e,t,c){},"6b35":function(e,t,c){"use strict";var n=c("7a23");const a=Object(n["createElementVNode"])("i",{class:"mdi mdi-bitcoin"},null,-1),o=[a];function r(e,t,c,a,r,s){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{style:Object(n["normalizeStyle"])({minWidth:c.size+"px",width:c.size+"px",height:c.size+"px"})},[Object(n["createElementVNode"])("span",{class:"avatar-title rounded-circle bg-soft bg-warning text-warning",style:Object(n["normalizeStyle"])({fontSize:c.size/2+"px"})},o,4)],4)}var s={name:"btc",props:{size:{type:Number,default:56}}},l=c("6b0d"),i=c.n(l);const d=i()(s,[["render",r]]);t["a"]=d},"76e3":function(e,t,c){"use strict";c("a1a1")},"8dd9":function(e,t,c){"use strict";var n=c("7a23");const a=e=>(Object(n["pushScopeId"])("data-v-f3cf7510"),e=e(),Object(n["popScopeId"])(),e),o={class:"card"},r={class:"card-body"},s={class:"account-transfers-heading d-sm-flex justify-content-between"},l={key:0,class:"card-title"},i={class:"table-responsive"},d={ref:"transfer-history-tab",class:"table table-bordered mb-0 mt-3 text-secondary"},b={scope:"row"},m={class:"d-flex align-items-center"},u={class:"me-3"},p={class:"font-size-14 mb-0"},O=a(()=>Object(n["createElementVNode"])("div",{class:"date"},null,-1)),j={class:"font-size-14 mb-1"},y={class:"text-muted"},f={class:"text-danger font-weight-semibold"},h={key:0},v={key:1},g={class:"text-success font-weight-semibold"},E={key:0},V={key:1},N={class:"font-size-14 text-nowrap"},k={class:"align-middle colum-status"},S={class:"badge bg-success bg-soft font-size-10"},x={key:0},w={colspan:"7",class:"table__no-records py-4"};function D(e,t,c,a,D,B){const z=Object(n["resolveComponent"])("date-period-select"),$=Object(n["resolveComponent"])("btc-icon"),C=Object(n["resolveComponent"])("eth-icon"),T=Object(n["resolveComponent"])("currency-icon"),_=Object(n["resolveComponent"])("b-overlay");return Object(n["openBlock"])(),Object(n["createBlock"])(_,{show:D.loading.transfers&&!c.hideLoadingOverlay,"spinner-variant":"primary",rounded:"sm"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",o,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("div",null,[c.title?(Object(n["openBlock"])(),Object(n["createElementBlock"])("h4",l,Object(n["toDisplayString"])(c.title),1)):Object(n["createCommentVNode"])("",!0)]),Object(n["createVNode"])(z,{modelValue:D.period,"onUpdate:modelValue":[t[0]||(t[0]=e=>D.period=e),t[1]||(t[1]=e=>B.fetchTransfers())],class:"mt-2 mt-sm-0"},null,8,["modelValue"])]),Object(n["createElementVNode"])("div",i,[Object(n["createElementVNode"])("table",d,[Object(n["createElementVNode"])("thead",null,[Object(n["createElementVNode"])("tr",null,[Object(n["createElementVNode"])("th",null,Object(n["toDisplayString"])(e.$t("Accounts.Account")),1),Object(n["createElementVNode"])("th",null,Object(n["toDisplayString"])(e.$t("Transaction.Number")),1),Object(n["createElementVNode"])("th",null,Object(n["toDisplayString"])(e.$t("Transaction.Currency")),1),Object(n["createElementVNode"])("th",null,Object(n["toDisplayString"])(e.$t("Common.Date")),1),Object(n["createElementVNode"])("th",null,Object(n["toDisplayString"])(e.$t("Transaction.Operation")),1),Object(n["createElementVNode"])("th",null,Object(n["toDisplayString"])(e.$t("Transaction.Amount")),1),Object(n["createElementVNode"])("th",null,Object(n["toDisplayString"])(e.$t("Transaction.Status")),1)])]),Object(n["createElementVNode"])("tbody",null,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(D.transfers,t=>{var c,a,o,r,s,l,i,d,x,w,D;return Object(n["openBlock"])(),Object(n["createElementBlock"])("tr",{key:t.id},[Object(n["createElementVNode"])("td",null,Object(n["toDisplayString"])(t.account.name),1),Object(n["createElementVNode"])("td",b,Object(n["toDisplayString"])(t.id),1),Object(n["createElementVNode"])("td",null,[Object(n["createElementVNode"])("div",m,[Object(n["createElementVNode"])("div",u,["BTC"===(null===(c=t.currency)||void 0===c?void 0:c.key)?(Object(n["openBlock"])(),Object(n["createBlock"])($,{key:0,size:32})):"ETH"===(null===(a=t.currency)||void 0===a?void 0:a.key)?(Object(n["openBlock"])(),Object(n["createBlock"])(C,{key:1,size:32})):(Object(n["openBlock"])(),Object(n["createBlock"])(T,{key:2,symbol:(null===(o=t.currency)||void 0===o?void 0:o.symbol)||(null===(r=t.currency)||void 0===r?void 0:r.key),size:32},null,8,["symbol"]))]),Object(n["createElementVNode"])("h4",p,Object(n["toDisplayString"])((null===(s=t.currency)||void 0===s?void 0:s.key)||(null===(l=t.currency)||void 0===l?void 0:l.symbol)),1)])]),Object(n["createElementVNode"])("td",null,[O,Object(n["createElementVNode"])("h5",j,Object(n["toDisplayString"])(e.$moment(t.created_at).format("DD.MM.YYYY")),1),Object(n["createElementVNode"])("div",y,Object(n["toDisplayString"])(e.$moment(t.created_at).format("HH:mm")),1)]),Object(n["createElementVNode"])("td",null,[1===t.type||3===t.type||5===t.type||5===(null===t||void 0===t||null===(i=t.swap_transaction)||void 0===i?void 0:i.type)||7===t.type||8===t.type?(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:0},[Object(n["createElementVNode"])("div",f,Object(n["toDisplayString"])(e.$t("Transaction.Output"))+":",1),1===t.type||7===t.type||8===t.type?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",h,Object(n["toDisplayString"])(t.account.name),1)):5===(null===t||void 0===t||null===(d=t.swap_transaction)||void 0===d?void 0:d.type)||5===t.type?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",v,Object(n["toDisplayString"])(t.swap_transaction.account.name),1)):Object(n["createCommentVNode"])("",!0)],64)):Object(n["createCommentVNode"])("",!0),0===t.type||2===t.type||4===t.type||6===t.type||9===t.type?(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:1},[Object(n["createElementVNode"])("div",g,Object(n["toDisplayString"])(e.$t("Transaction.Input"))+":",1),0===t.type||6===t.type||9===t.type?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",E,Object(n["toDisplayString"])(t.account.name),1)):4===(null===t||void 0===t||null===(x=t.swap_transaction)||void 0===x?void 0:x.type)?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",V,Object(n["toDisplayString"])(t.swap_transaction.account.name),1)):Object(n["createCommentVNode"])("",!0)],64)):Object(n["createCommentVNode"])("",!0)]),Object(n["createElementVNode"])("td",null,[Object(n["createElementVNode"])("h4",N,Object(n["toDisplayString"])(t.amount)+" "+Object(n["toDisplayString"])((null===(w=t.currency)||void 0===w?void 0:w.symbol)||(null===(D=t.currency)||void 0===D?void 0:D.key)),1)]),Object(n["createElementVNode"])("td",k,[Object(n["createElementVNode"])("div",S,Object(n["toDisplayString"])(e.$t("Transaction.Completed")),1)])])}),128)),D.transfers.length?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("tr",x,[Object(n["createElementVNode"])("td",w,Object(n["toDisplayString"])(e.$t("Accounts.NoTransfers")),1)]))])],512)])])])]),_:1},8,["show"])}var B=c("1cbd"),z=c("6b35"),$=c("ff5d"),C=c("d4e1"),T=c("5502"),_={name:"account-transfers",components:{DatePeriodSelect:B["a"],BtcIcon:z["a"],EthIcon:$["a"],CurrencyIcon:C["a"]},props:{title:{type:String,default:"Transfers"},accountId:{type:Number},hideLoadingOverlay:{type:Boolean,default:!1}},data(){return{cursor:null,period:[this.$moment(new Date).startOf("day").subtract(7,"d").format(),this.$moment(new Date).startOf("day").format()],filters:{created_from:this.$moment(new Date).startOf("day").subtract(7,"d").format(),per_page:10},transfers:[],loading:{transfers:!1}}},computed:{...Object(T["c"])("accounts",["accountsMap"])},watch:{accountId(){this.fetchTransfers()}},methods:{fetchTransfers(e=!1){this.loading.transfers=!0;const t={...this.filters,created_from:this.period[0],account_id:this.accountId||null};e&&this.cursor.next&&(t.cursor=this.cursor.next),this.axios.get("/transactions",{params:t}).then(({data:t,cursor:c})=>{this.transfers=e?[...this.transfers,...t]:t,this.cursor=c}).finally(()=>{this.loading.transfers=!1})},handleScroll(){!this.loading.transfers&&this.cursor.next&&this.$refs["transfer-history-tab"].getBoundingClientRect().bottom<window.innerHeight&&this.fetchTransfers(!0)}},mounted(){this.fetchTransfers(),window.addEventListener("scroll",this.handleScroll)},unmounted(){window.removeEventListener("scroll",this.handleScroll)}},I=(c("76e3"),c("6b0d")),R=c.n(I);const A=R()(_,[["render",D],["__scopeId","data-v-f3cf7510"]]);t["a"]=A},a1a1:function(e,t,c){},c2a4:function(e){e.exports=JSON.parse('{"title":"Branding","description":"Branding"}')},cd93:function(e,t,c){},d4e1:function(e,t,c){"use strict";var n=c("7a23");function a(e,t,c,a,o,r){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{style:Object(n["normalizeStyle"])({minWidth:c.size+"px",height:c.size+"px",width:"fit-content"})},[Object(n["createElementVNode"])("span",{class:"avatar-title bg-soft bg-success text-success",style:Object(n["normalizeStyle"])({fontSize:c.symbol.length>1?"100%":c.size/2+"px",padding:c.symbol.length>1?"5px":0,borderRadius:c.symbol.length>3?"12px":"50%"})},Object(n["toDisplayString"])(c.symbol),5)],4)}var o={name:"CurrencyIcon",props:{size:{type:Number,default:56},symbol:{type:String,required:!0}}},r=c("6b0d"),s=c.n(r);const l=s()(o,[["render",a]]);t["a"]=l},e0da:function(e,t,c){"use strict";c("cd93")},f34b:function(e,t,c){"use strict";c("36bb")},ff5d:function(e,t,c){"use strict";var n=c("7a23");const a=Object(n["createElementVNode"])("i",{class:"mdi mdi-ethereum"},null,-1),o=[a];function r(e,t,c,a,r,s){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{style:Object(n["normalizeStyle"])({minWidth:c.size+"px",width:c.size+"px",height:c.size+"px"})},[Object(n["createElementVNode"])("span",{class:"avatar-title rounded-circle bg-soft bg-primary text-dark",style:Object(n["normalizeStyle"])({fontSize:c.size/2+"px"})},o,4)],4)}var s={name:"eth",props:{size:{type:Number,default:56}}},l=c("6b0d"),i=c.n(l);const d=i()(s,[["render",r]]);t["a"]=d}}]);
//# sourceMappingURL=chunk-00f3fd74.cf7d3b89.js.map