{"version":3,"sources":["webpack:///./src/components/TradingSection/PaperTrades/PaperTradesSummary/PaperTradesSummary.vue?fc37","webpack:///src/components/TradingSection/PaperTrades/PaperTradesSummary/PaperTradesSummary.vue","webpack:///./src/components/TradingSection/PaperTrades/PaperTradesSummary/PaperTradesSummary.vue?1ed1","webpack:///./src/components/TradingSection/PaperTrades/PaperTradesSummary/PaperTradesSummary.vue?d02d","webpack:///./src/components/TradingSection/PaperTrades/PaperTradesSummary/PaperTradesSummary.vue?9b59"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","$vuetify","breakpoint","tabValue","attrs","totalMargin","_e","availableMargin","investedMargin","currentAmount","pandl","toLocaleString","pandlPercent","on","$event","toggleSetMargin","show","staticRenderFns","name","props","type","components","SummaryFigure","SummaryFigureMobile","SetMarginModal","data","loading","computed","watch","methods","mapActions","fetchMargin","console","res","available_margin","total_margin","invested_amt","current_amount","pandl_per","params","Axios","onSuccess","onFailure","isTokenRequired","created","destroyed","mounted","component","VBtn","VCard","VCardText","VSpacer"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,YAAY,4BAA4B,CAACF,EAAG,cAAc,CAACA,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,MAAM,CAACE,YAAY,gCAAgC,CAACN,EAAIO,GAAG,aAAaH,EAAG,YAAYA,EAAG,MAAM,CAACE,YAAY,aAAa,CAAEN,EAAIQ,SAASC,WAAkB,QAAEL,EAAG,MAAM,CAACE,YAAY,aAAa,CAAkB,UAAhBN,EAAIU,SAAsBN,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,iBAAiB,CAACO,MAAM,CAAC,MAAQ,eAAe,IAAMX,EAAIY,YAAY,OAAQ,MAAU,GAAGZ,EAAIa,KAAsB,UAAhBb,EAAIU,SA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B,MAAM,aAAejB,EAAImB,aAAa,SAAWnB,EAAIU,aAAa,GAAGV,EAAIa,QAAQ,GAAGT,EAAG,qBAAqB,IACxpBoB,EAAkB,G,sGC0FP,GACfC,0BACAC,OACAhB,UACAiB,cAGAC,YACAC,yBAAA,wDACAC,+BAAA,OACA,kDACAC,0BAAA,yDAEAC,gBACA,OACAC,WACArB,cACAE,kBACAC,iBACAC,gBACAC,QACAE,iBAGAe,YACAC,OACAzB,oBACA,qBAGA0B,yCACAC,gBACAf,iDACA,IACAgB,uBAAA,WACA,gBACA,kBACAC,eACA,MAOAC,cANAC,qBAIAC,iBAGA,EACAF,cADAG,iBAAAC,mBAAA3B,UAAA4B,cAEA,uCACA,2CACA,0CACA,yCACA,iCACA,wCACA,cAEA,aACA,cAEA,KACAC,gCACAA,0BACAC,sDACAD,SACAE,YACAC,YACAC,wBAIAC,mBAAA,WACA,8CACA,oBAGAC,qBACA,qCAEAC,mBACA,qBC5KyY,I,6FCQrYC,EAAY,eACd,EACAvD,EACAyB,GACA,EACA,KACA,WACA,MAIa,aAAA8B,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,UAAA,OAAUC,UAAA,Q,kCC3BnD,W","file":"js/chunk-39e7c60b.5d9b4b77.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card',{staticClass:\"summary_card elevation-2\"},[_c('v-card-text',[_c('div',{staticClass:\"d-flex pb-2 pb-sm-0\"},[_c('div',{staticClass:\"summary_style__class pt-sm-3\"},[_vm._v(\"Summary\")]),_c('v-spacer'),_c('div',{staticClass:\"d-sm-flex\"},[(_vm.$vuetify.breakpoint.smAndUp)?_c('div',{staticClass:\"d-sm-flex\"},[(_vm.tabValue == 'Active')?_c('div',{staticClass:\"px-1\"},[_c('summary-figure',{attrs:{\"label\":'Total Margin',\"val\":_vm.totalMargin,\"color\":false}})],1):_vm._e(),(_vm.tabValue == 'Active')?_c('div',{staticClass:\"px-1\"},[_c('summary-figure',{attrs:{\"label\":'Available Margin',\"val\":_vm.availableMargin,\"color\":false}})],1):_vm._e(),(_vm.tabValue == 'Active')?_c('div',{staticClass:\"px-1\"},[_c('summary-figure',{attrs:{\"label\":'Invested Margin',\"val\":_vm.investedMargin,\"color\":false}})],1):_c('div',{staticClass:\"px-1\"},[_c('summary-figure',{attrs:{\"label\":'Invested Amount',\"val\":_vm.investedMargin,\"color\":false}})],1),(_vm.tabValue == 'Closed')?_c('div',{staticClass:\"px-1\"},[_c('summary-figure',{attrs:{\"label\":'Current Amount',\"val\":_vm.currentAmount,\"color\":false}})],1):_vm._e(),_c('div',{staticClass:\"px-1\"},[_c('summary-figure',{attrs:{\"label\":'P&L',\"val\":_vm.pandl,\"val_string\":((_vm.pandl.toLocaleString(\n 'en-IN'\n )) + \" (\" + (_vm.pandlPercent.toLocaleString('en-IN')) + \"%)\"),\"color\":true}})],1)]):_vm._e(),(_vm.tabValue !== 'Closed')?_c('v-btn',{staticClass:\"text_btn_class\",attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.toggleSetMargin({ show: true })}}},[_c('span',[_vm._v(\"Set Total Margin\")])]):_vm._e()],1)],1),(_vm.$vuetify.breakpoint.xsOnly)?_c('div',[_c('summary-figure-mobile',{attrs:{\"totalMargin\":_vm.totalMargin,\"availableMargin\":_vm.availableMargin,\"investedMargin\":_vm.investedMargin,\"currentAmount\":_vm.currentAmount,\"pandl\":_vm.pandl,\"pandlPercent\":_vm.pandlPercent,\"tabValue\":_vm.tabValue}})],1):_vm._e()])],1),_c('set-margin-modal')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaperTradesSummary.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaperTradesSummary.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PaperTradesSummary.vue?vue&type=template&id=39c2f720&scoped=true&\"\nimport script from \"./PaperTradesSummary.vue?vue&type=script&lang=js&\"\nexport * from \"./PaperTradesSummary.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PaperTradesSummary.vue?vue&type=style&index=0&id=39c2f720&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"39c2f720\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCard,VCardText,VSpacer})\n","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaperTradesSummary.vue?vue&type=style&index=0&id=39c2f720&scoped=true&lang=css&\""],"sourceRoot":""}