{"version":3,"sources":["webpack:///./src/app/modules/layout-investment/components/investment/card-investment/card-portfolio/multi-symbol-pnl.component.vue","webpack:///src/app/modules/layout-investment/components/investment/card-investment/card-portfolio/multi-symbol-pnl.component.vue","webpack:///./src/app/modules/layout-investment/components/investment/card-investment/card-portfolio/multi-symbol-pnl.component.vue?81a7","webpack:///./src/app/modules/layout-investment/components/investment/card-investment/card-portfolio/multi-symbol-pnl.component.vue?9c66"],"names":["render","_vm","this","_c","_self","staticClass","getVisualizationMode","cardSymbols","length","_l","symbol","key","name","class","item","type","_v","_s","buy_volume","_e","sell_volume","directives","rawName","value","arrow","theme","expression","attrs","openPnl","undefined","domProps","$icons","play_green","play_red","_f","closedPnl","currentExposure","max_exposure","staticRenderFns","props","Object","computed","mapGetters","getUiTheme","getSelectedAccount","_this$item2","_this$item","_this$item3","sub_strategies","reduce","acc","curr","position_profit","closed_pnl","strategy_symbol","curr_positions","open_pnl","position_volume","prices","map","position","position_price_avg","Number","toFixed","strategies","symbols","Array","Set","sub","positionsBySymbol","filter","strategy","includes","position_status","position_symbol","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,uDAAuD,CAA+B,SAA7BJ,EAAIK,qBAAiCH,EAAG,MAAM,CAACE,YAAY,mNAAmN,CAAGJ,EAAIM,YAAYC,OAAiJP,EAAIQ,GAAIR,EAAIM,aAAa,SAASG,GAAQ,OAAOP,EAAG,MAAM,CAACQ,IAAID,EAAOE,KAAKP,YAAY,mBAAmBQ,MAAwB,cAAlBZ,EAAIa,KAAKC,KAAuB,gBAAkB,eAAe,CAACZ,EAAG,OAAO,CAACE,YAAY,mJAAmJ,CAACJ,EAAIe,GAAG,IAAIf,EAAIgB,GAAGP,EAAOE,MAAM,OAA0B,cAAlBX,EAAIa,KAAKC,MAAwBL,EAAOQ,WAAYf,EAAG,MAAM,CAACE,YAAY,2BAA2B,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file":"js/chunk-2d21df7a.ede523b8.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"flex h-full w-full justify-between gap-2 2xl:gap-12\"},[(_vm.getVisualizationMode === 'card')?_c('div',{staticClass:\"dark:border-ontick-steel-400 border-ontick-steel-300 dark:bg-ontick-graphite-500 min-h-full w-full space-y-1.5 overflow-y-auto border-r-2 bg-gray-100 p-1.5 backdrop-blur-sm backdrop-filter dark:bg-opacity-50\"},[(!_vm.cardSymbols.length)?_c('div',{staticClass:\"flex h-full w-full items-center justify-center text-sm font-medium uppercase\"},[_c('span',[_vm._v(\" Zerado \")])]):_vm._l((_vm.cardSymbols),function(symbol){return _c('div',{key:symbol.name,staticClass:\"grid h-4 gap-1.5\",class:_vm.item.type === 'PORTFOLIO' ? ' grid-cols-3 ' : 'grid-cols-2'},[_c('span',{staticClass:\"bg-ontick-blue-900 flex h-full max-w-[72px] items-center justify-center rounded-sm text-[10px] font-semibold uppercase tracking-wide text-white\"},[_vm._v(\" \"+_vm._s(symbol.name)+\" \")]),(_vm.item.type === 'PORTFOLIO' || symbol.buy_volume)?_c('div',{staticClass:\"flex items-center gap-1\"},[_c('span',{staticClass:\"h-full rounded-sm px-1 text-[10px] font-semibold\",class:symbol.buy_volume === 0\n ? 'bg-gray-500 text-gray-300'\n : 'bg-ontick-yellow-800 text-ontick-graphite-500'},[_vm._v(\" C \")]),_c('span',{staticClass:\"text-xs font-semibold\",class:{ 'text-gray-500': symbol.buy_volume === 0 }},[_vm._v(\" \"+_vm._s(symbol.buy_volume || \"-\")+\" \")])]):_vm._e(),(_vm.item.type === 'PORTFOLIO' || symbol.sell_volume)?_c('div',{staticClass:\"flex items-center gap-1\"},[_c('span',{staticClass:\"h-full rounded-sm px-1 text-[10px] font-semibold\",class:symbol.sell_volume === 0\n ? 'bg-gray-500 text-gray-300'\n : 'bg-ontick-yellow-800 text-ontick-graphite-500'},[_vm._v(\" V \")]),_c('span',{staticClass:\"text-xs font-semibold\",class:{ 'text-gray-500': symbol.sell_volume === 0 }},[_vm._v(\" \"+_vm._s(symbol.sell_volume || \"-\")+\" \")])]):_vm._e()])})],2):_vm._e(),_c('div',{staticClass:\"flex gap-2\",class:_vm.getVisualizationMode === 'card'\n ? 'flex-col'\n : 'w-full items-end justify-between'},[_c('div',{directives:[{name:\"tippy\",rawName:\"v-tippy\",value:({ arrow: true, theme: 'green' }),expression:\"{ arrow: true, theme: 'green' }\"}],staticClass:\"flex flex-col gap-0.5\",class:{ 'items-end': _vm.getVisualizationMode === 'card' },attrs:{\"content\":\"Resultado da operação em aberto\"}},[_c('span',{staticClass:\"text-xs text-gray-500 dark:text-gray-400\"},[_vm._v(\" Resultado \")]),_c('div',{staticClass:\"flex items-center gap-1 text-sm\"},[(_vm.openPnl == null || _vm.openPnl == undefined)?_c('ontick-loading-ellipsis-component'):(_vm.openPnl > 0)?_c('i',{domProps:{\"innerHTML\":_vm._s(_vm.$icons.play_green)}}):(_vm.openPnl < 0)?_c('i',{domProps:{\"innerHTML\":_vm._s(_vm.$icons.play_red)}}):_c('i',{staticClass:\"h-3 w-3 rounded-full bg-gray-500 dark:bg-gray-400\"}),_c('span',{staticClass:\"whitespace-nowrap font-semibold\"},[_vm._v(\" \"+_vm._s(_vm._f(\"currency\")(_vm.openPnl))+\" \")])],1)]),_c('div',{directives:[{name:\"tippy\",rawName:\"v-tippy\",value:({ arrow: true, theme: 'green' }),expression:\"{ arrow: true, theme: 'green' }\"}],staticClass:\"flex flex-col gap-0.5\",class:{ 'items-end': _vm.getVisualizationMode === 'card' },attrs:{\"content\":\"Resultado acumulado do dia\"}},[_c('span',{staticClass:\"text-xs text-gray-500 dark:text-gray-400\"},[_vm._v(\" Acumulado \")]),_c('div',{staticClass:\"flex items-center gap-1\"},[(_vm.closedPnl > 0)?_c('i',{domProps:{\"innerHTML\":_vm._s(_vm.$icons.play_green)}}):(_vm.closedPnl < 0)?_c('i',{domProps:{\"innerHTML\":_vm._s(_vm.$icons.play_red)}}):_c('i',{staticClass:\"h-3 w-3 rounded-full bg-gray-500 dark:bg-gray-400\"}),_c('span',{staticClass:\"whitespace-nowrap text-sm font-semibold\"},[_vm._v(\" \"+_vm._s(_vm._f(\"currency\")(_vm.closedPnl))+\" \")])])]),_c('div',{directives:[{name:\"tippy\",rawName:\"v-tippy\",value:({ arrow: true, theme: 'green' }),expression:\"{ arrow: true, theme: 'green' }\"}],staticClass:\"flex flex-col gap-0.5\",class:{ 'items-end': _vm.getVisualizationMode === 'card' },attrs:{\"content\":\"Exposição atual/exposição máxima\"}},[_c('span',{staticClass:\"text-xs text-gray-500 dark:text-gray-400\"},[_vm._v(\" Exposição \")]),_c('div',{staticClass:\"flex items-center gap-1 text-sm\",class:{\n 'justify-end': _vm.getVisualizationMode === 'mini-card',\n }},[_c('p',{staticClass:\"whitespace-nowrap text-gray-500 dark:text-gray-400\"},[(_vm.item.type === 'PORTFOLIO')?[_c('span',{staticClass:\"text-ontick-carbon-900 font-semibold dark:text-gray-300\"},[_vm._v(\" \"+_vm._s(_vm.currentExposure)+\" \")]),_c('span',[_vm._v(_vm._s(\"/\"))]),_c('span',[_vm._v(_vm._s(_vm.item.max_exposure))])]:_c('span',{staticClass:\"text-ontick-carbon-900 font-semibold dark:text-gray-300\"},[_vm._v(\" \"+_vm._s(_vm._f(\"currency\")(_vm.currentExposure))+\" \")])],2)])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\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/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./multi-symbol-pnl.component.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/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./multi-symbol-pnl.component.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./multi-symbol-pnl.component.vue?vue&type=template&id=fcb7480a\"\nimport script from \"./multi-symbol-pnl.component.vue?vue&type=script&lang=js\"\nexport * from \"./multi-symbol-pnl.component.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}