{"version":3,"sources":["webpack:///./node_modules/vue-observe-visibility/dist/vue-observe-visibility.esm.js","webpack:///./src/app/modules/layout-investment/components/investment/card-investment/card-strategy/card-strategy.component.vue?80eb","webpack:///./src/app/modules/layout-investment/components/investment/card-investment/card-strategy/card-strategy.component.vue","webpack:///src/app/modules/layout-investment/components/investment/card-investment/card-strategy/card-strategy.component.vue","webpack:///./src/app/modules/layout-investment/components/investment/card-investment/card-strategy/card-strategy.component.vue?3a90","webpack:///./src/app/modules/layout-investment/components/investment/card-investment/card-strategy/card-strategy.component.vue?e06c"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_nonIterableSpread","Array","isArray","arr2","iter","toString","call","from","processOptions","value","options","callback","throttle","delay","timeout","lastState","currentArgs","arguments","undefined","throttled","state","_len","args","_key","leading","apply","concat","clearTimeout","setTimeout","_clear","deepEqual","val1","val2","VisibilityState","el","vnode","this","observer","frozen","createObserver","_this","destroyObserver","result","entry","once","_ref","throttleOptions","_leading","oldResult","IntersectionObserver","entries","intersectingEntry","find","e","isIntersecting","intersectionRatio","threshold","intersection","context","$nextTick","observe","disconnect","get","bind","_ref2","console","warn","_vue_visibilityState","update","_ref3","oldValue","unbind","ObserveVisibility","install","Vue","directive","plugin","version","GlobalVue","window","global","use","render","_vm","_c","_self","staticClass","class","graph","item","type","arrows","strategy_symbol","attrs","status","position_status","portfolioPosition","toggle_disabled","_v","_s","symbolLabel","partner_badge","_e","directives","name","rawName","arrow","theme","expression","strategy_name","investment_id","_uid","on","$event","$emit","investmentId","investmentStatus","toogle","selectedParams","typed_volume","dropdownPosition","optionDefault","optionsSelect","optionSelected","getVisualizationMode","setVolume","validate","setInvestmentVolume","volume","isMultiSymbol","masks_list","_l","mask","index","closeMask","staticRenderFns","components","CollapseTransition","CardStrategyRunning","StatusIndicatorComponent","OntickToggle","CardEdit","CardStatus","CardPnl","CardPnlMinimize","CardMask","MultiSymbolPnlComponent","required","String","default","validator","val","includes","Boolean","data","min_volume","icon","icons","label","defaultSweetAlert","title","toast","position","timer","timerProgressBar","customClass","popup","confirmButton","computed","mapGetters","getUiTheme","getSelectedAccount","activitySign","_investment$sub_strat","investment","sub_strategies","every","portfolioCurrentExposure","_this$item$sub_strate","reduce","acc","position_volume","portfolioCardSymbols","strategies","symbols","Set","map","sub","positionsBySymbol","symbol","buy_volume","filter","strategy","curr","sell_volume","methods","mapActions","getInvestments","removeMask","fixedMask","$api","post","$endpoint","DISMISS_MASK","notification_type","catch","err","error","event","$router","push","path","Number","params","id","INVESTMENT_HIDE","then","response","$swal","iconHtml","$icons","swal_success","msg","INVESTMENT_SHOW","event_bus","colorResult","amount","textPosition","component"],"mappings":"mHAAA,qBAASA,EAAQC,GAWf,OATED,EADoB,oBAAXE,QAAoD,kBAApBA,OAAOC,SACtC,SAAUF,GAClB,cAAcA,GAGN,SAAUA,GAClB,OAAOA,GAAyB,oBAAXC,QAAyBD,EAAIG,cAAgBF,QAAUD,IAAQC,OAAOG,UAAY,gBAAkBJ,GAItHD,EAAQC,GAGjB,SAASK,EAAgBC,EAAUC,GACjC,KAAMD,aAAoBC,GACxB,MAAM,IAAIC,UAAU,qCAIxB,SAASC,EAAkBC,EAAQC,GACjC,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CACrC,IAAIE,EAAaH,EAAMC,GACvBE,EAAWC,WAAaD,EAAWC,aAAc,EACjDD,EAAWE,cAAe,EACtB,UAAWF,IAAYA,EAAWG,UAAW,GACjDC,OAAOC,eAAeT,EAAQI,EAAWM,IAAKN,IAIlD,SAASO,EAAad,EAAae,EAAYC,GAG7C,OAFID,GAAYb,EAAkBF,EAAYH,UAAWkB,GACrDC,GAAad,EAAkBF,EAAagB,GACzChB,EAGT,SAASiB,EAAmBC,GAC1B,OAAOC,EAA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AAAsG,OAAAtC,EAAAhE,iBAEA0G,KAAAC,IACA,KAAAC,MAAA,CACA9D,KAAA,UACA+D,SAAA,KAAAC,OAAAC,aACA7D,MAAAyD,EAAA/D,KAAAoE,MAEA,KAAAzB,mBAIA,WAAAvB,EAAAhF,QACA,KAAA4H,MAAA,CACA1D,MAAA,gDACAJ,KAAA,QACAO,MAAA,OAIA,eAAA6C,EAAAlD,OACA,UAAAgB,EAAAhF,QACA,KAAA0G,KACAC,KAAA,KAAAC,UAAAqB,gBAAA,CACAjH,cAAAsG,OAAAtC,EAAAhE,iBAEA0G,KAAAC,IACA,KAAAC,MAAA,CACA9D,KAAA,UACA+D,SAAA,KAAAC,OAAAC,aACA7D,MAAAyD,EAAA/D,KAAAoE,MAEAE,OAAA9G,MAAA,iBACA,KAAAmF,oBAMAvE,SAAArH,GACA,KAAAwF,gBAAA,iBAAAR,KAAAK,QAAArF,GAGAwN,YAAAC,GACA,UAAAA,EAAA,4CACAA,EAAA,0BACAA,EAAA,gCAGAC,aAAA1N,GACA,IAAAqJ,EAQA,OANAA,EADA,OAAArJ,GAAA,YAAAA,EACA,WACA,QAAAA,GAAA,WAAAA,EACA,UAEA,SAEAqJ,KC1Zwd,I,wBCQpdsE,EAAY,eACd,EACAlJ,EACAqD,GACA,EACA,KACA,WACA,MAIa,aAAA6F,E","file":"js/chunk-034aeb7f.0b1a2171.js","sourcesContent":["function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nfunction processOptions(value) {\n var options;\n\n if (typeof value === 'function') {\n // Simple options (callback-only)\n options = {\n callback: value\n };\n } else {\n // Options object\n options = value;\n }\n\n return options;\n}\nfunction throttle(callback, delay) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var timeout;\n var lastState;\n var currentArgs;\n\n var throttled = function throttled(state) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n currentArgs = args;\n if (timeout && state === lastState) return;\n var leading = options.leading;\n\n if (typeof leading === 'function') {\n leading = leading(state, lastState);\n }\n\n if ((!timeout || state !== lastState) && leading) {\n callback.apply(void 0, [state].concat(_toConsumableArray(currentArgs)));\n }\n\n lastState = state;\n clearTimeout(timeout);\n timeout = setTimeout(function () {\n callback.apply(void 0, [state].concat(_toConsumableArray(currentArgs)));\n timeout = 0;\n }, delay);\n };\n\n throttled._clear = function () {\n clearTimeout(timeout);\n timeout = null;\n };\n\n return throttled;\n}\nfunction deepEqual(val1, val2) {\n if (val1 === val2) return true;\n\n if (_typeof(val1) === 'object') {\n for (var key in val1) {\n if (!deepEqual(val1[key], val2[key])) {\n return false;\n }\n }\n\n return true;\n }\n\n return false;\n}\n\nvar VisibilityState =\n/*#__PURE__*/\nfunction () {\n function VisibilityState(el, options, vnode) {\n _classCallCheck(this, VisibilityState);\n\n this.el = el;\n this.observer = null;\n this.frozen = false;\n this.createObserver(options, vnode);\n }\n\n _createClass(VisibilityState, [{\n key: \"createObserver\",\n value: function createObserver(options, vnode) {\n var _this = this;\n\n if (this.observer) {\n this.destroyObserver();\n }\n\n if (this.frozen) return;\n this.options = processOptions(options);\n\n this.callback = function (result, entry) {\n _this.options.callback(result, entry);\n\n if (result && _this.options.once) {\n _this.frozen = true;\n\n _this.destroyObserver();\n }\n }; // Throttle\n\n\n if (this.callback && this.options.throttle) {\n var _ref = this.options.throttleOptions || {},\n _leading = _ref.leading;\n\n this.callback = throttle(this.callback, this.options.throttle, {\n leading: function leading(state) {\n return _leading === 'both' || _leading === 'visible' && state || _leading === 'hidden' && !state;\n }\n });\n }\n\n this.oldResult = undefined;\n this.observer = new IntersectionObserver(function (entries) {\n var entry = entries[0];\n\n if (entries.length > 1) {\n var intersectingEntry = entries.find(function (e) {\n return e.isIntersecting;\n });\n\n if (intersectingEntry) {\n entry = intersectingEntry;\n }\n }\n\n if (_this.callback) {\n // Use isIntersecting if possible because browsers can report isIntersecting as true, but intersectionRatio as 0, when something very slowly enters the viewport.\n var result = entry.isIntersecting && entry.intersectionRatio >= _this.threshold;\n if (result === _this.oldResult) return;\n _this.oldResult = result;\n\n _this.callback(result, entry);\n }\n }, this.options.intersection); // Wait for the element to be in document\n\n vnode.context.$nextTick(function () {\n if (_this.observer) {\n _this.observer.observe(_this.el);\n }\n });\n }\n }, {\n key: \"destroyObserver\",\n value: function destroyObserver() {\n if (this.observer) {\n this.observer.disconnect();\n this.observer = null;\n } // Cancel throttled call\n\n\n if (this.callback && this.callback._clear) {\n this.callback._clear();\n\n this.callback = null;\n }\n }\n }, {\n key: \"threshold\",\n get: function get() {\n return this.options.intersection && typeof this.options.intersection.threshold === 'number' ? this.options.intersection.threshold : 0;\n }\n }]);\n\n return VisibilityState;\n}();\n\nfunction bind(el, _ref2, vnode) {\n var value = _ref2.value;\n if (!value) return;\n\n if (typeof IntersectionObserver === 'undefined') {\n console.warn('[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill');\n } else {\n var state = new VisibilityState(el, value, vnode);\n el._vue_visibilityState = state;\n }\n}\n\nfunction update(el, _ref3, vnode) {\n var value = _ref3.value,\n oldValue = _ref3.oldValue;\n if (deepEqual(value, oldValue)) return;\n var state = el._vue_visibilityState;\n\n if (!value) {\n unbind(el);\n return;\n }\n\n if (state) {\n state.createObserver(value, vnode);\n } else {\n bind(el, {\n value: value\n }, vnode);\n }\n}\n\nfunction unbind(el) {\n var state = el._vue_visibilityState;\n\n if (state) {\n state.destroyObserver();\n delete el._vue_visibilityState;\n }\n}\n\nvar ObserveVisibility = {\n bind: bind,\n update: update,\n unbind: unbind\n};\n\nfunction install(Vue) {\n Vue.directive('observe-visibility', ObserveVisibility);\n /* -- Add more components here -- */\n}\n/* -- Plugin definition & Auto-install -- */\n\n/* You shouldn't have to modify the code below */\n// Plugin\n\nvar plugin = {\n // eslint-disable-next-line no-undef\n version: \"1.0.0\",\n install: install\n};\n\nvar GlobalVue = null;\n\nif (typeof window !== 'undefined') {\n GlobalVue = window.Vue;\n} else if (typeof global !== 'undefined') {\n GlobalVue = global.Vue;\n}\n\nif (GlobalVue) {\n GlobalVue.use(plugin);\n}\n\nexport default plugin;\nexport { ObserveVisibility, install };\n","export * from \"-!../../../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../../../../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!./card-strategy.component.vue?vue&type=style&index=0&id=36b2a6b8&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"relative\",class:[\n { graph: _vm.item.type === 'PORTFOLIO' },\n { arrows: _vm.item.type !== 'PORTFOLIO' && _vm.item.strategy_symbol === 'ANY' },\n ]},[_c('div',{staticClass:\"relative flex h-full flex-col justify-between\"},[_c('div',{staticClass:\"h-full space-y-6 px-4 py-4\"},[_c('div',{staticClass:\"flex h-full flex-col space-y-6\"},[_c('div',{staticClass:\"relative flex justify-between\"},[_c('div',{staticClass:\"flex flex-col\"},[_c('div',{staticClass:\"flex items-center\"},[_c('status-indicator-component',{attrs:{\"status\":_vm.item.status,\"position\":_vm.item.type !== 'PORTFOLIO'\n ? _vm.item.position_status\n : _vm.portfolioPosition,\"error\":_vm.toggle_disabled}}),_c('p',{staticClass:\"text-ontick-steel-400 ml-2 text-xs uppercase dark:text-gray-400\"},[_vm._v(\" \"+_vm._s(_vm.symbolLabel)+\" \")])],1),_c('div',{staticClass:\"flex items-center space-x-1\"},[(_vm.item.partner_badge)?_c('img',{staticClass:\"h-4 w-4\",attrs:{\"src\":_vm.item.partner_badge}}):_vm._e(),_c('p',{directives:[{name:\"tippy\",rawName:\"v-tippy\",value:({ arrow: true, theme: 'green' }),expression:\"{ arrow: true, theme: 'green' }\"}],staticClass:\"text-ontick-carbon-500 xs:w-full w-36 truncate text-lg font-semibold dark:text-gray-300 lg:!w-32 2xl:!w-full\",attrs:{\"content\":_vm.item.strategy_name}},[_vm._v(\" \"+_vm._s(_vm.item.strategy_name)+\" \")])]),_c('span',{staticClass:\"text-[10px] font-medium text-gray-500 dark:text-gray-400\"},[_vm._v(\" ID: \"+_vm._s(_vm.item.investment_id)+\" \")])]),_c('div',{staticClass:\"absolute top-2 -right-3 flex flex-none items-center\",attrs:{\"id\":`toggle_button${_vm._uid}`}},[_c('ontick-toggle',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.item.status != 'HIDDEN'),expression:\"item.status != 'HIDDEN'\"}],class:_vm.toggle_disabled ? 'cursor-not-allowed' : 'cursor-pointer',attrs:{\"active\":_vm.item.status == 'RUNNING' ? true : false},on:{\"switch\":function($event){_vm.$emit('toggleSwitch', {\n investmentId: _vm.item.investment_id,\n investmentStatus: _vm.item.status,\n toogle: (_vm.toggle_disabled =\n _vm.item.status === 'RUNNING' ? false : _vm.toggle_disabled),\n }),\n _vm.selectedParams({ value: _vm.typed_volume, item: _vm.item })}}}),_c('ontick-form-dropdown',{directives:[{name:\"tippy\",rawName:\"v-tippy\",value:({ arrow: true, theme: 'green' }),expression:\"{ arrow: true, theme: 'green' }\"}],attrs:{\"content\":\"Outras opções\",\"position\":_vm.dropdownPosition,\"optionCard\":true,\"disabledOptionDefault\":true,\"optionInitial\":_vm.optionDefault,\"options\":_vm.optionsSelect},on:{\"optionSelected\":function($event){return _vm.optionSelected($event, _vm.item)}}})],1)]),(\n (_vm.item.type === 'PORTFOLIO' || _vm.item.strategy_symbol === 'ANY') &&\n _vm.item.status === 'RUNNING'\n )?_c('multi-symbol-pnl-component',{attrs:{\"item\":_vm.item}}):_c('div',{staticClass:\"h-full\",class:_vm.item.status === 'RUNNING' ? 'space-y-6' : 'space-y-0'},[(_vm.getVisualizationMode === 'card')?_c('card-pnl',{attrs:{\"item\":_vm.item,\"minimize\":_vm.getVisualizationMode === 'mini-card'}}):_c('card-pnl-minimize',{attrs:{\"item\":_vm.item}}),_c('collapse-transition',[(_vm.getVisualizationMode === 'card')?[(_vm.item.status === 'RUNNING')?_c('card-strategy-running',{attrs:{\"item\":_vm.item}}):_vm._e()]:_vm._e()],2),(_vm.item.status === 'STOPPED' || _vm.item.status == 'HIDDEN')?_c('card-edit',{attrs:{\"item\":_vm.item,\"disabled\":!_vm.setVolume},on:{\"statusValidate\":_vm.validate,\"seletedParam\":function($event){return _vm.setInvestmentVolume({\n investment_id: _vm.item.investment_id,\n volume: $event,\n })}}}):_vm._e()],1)],1)]),(!_vm.isMultiSymbol)?_c('card-status',{attrs:{\"item\":_vm.item}}):_vm._e()],1),_c('transition-group',{attrs:{\"name\":\"mask\"}},[(_vm.item.masks_list)?_vm._l((_vm.item.masks_list),function(mask,index){return _c('div',{key:index + _vm._uid},[(_vm.item.masks_list.length > 0)?_c('card-mask',{attrs:{\"mask\":mask},on:{\"close\":function($event){return _vm.closeMask(_vm.item.investment_id, mask)}}}):_vm._e()],1)}):_vm._e()],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n \n \n \n \n \n {{ symbolLabel }}\n \n \n \n \n \n {{ item.strategy_name }}\n \n \n \n ID: {{ item.investment_id }}\n \n \n \n \n \n \n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n 0\"\n :mask=\"mask\"\n @close=\"closeMask(item.investment_id, mask)\"\n />\n \n \n \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!./card-strategy.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!./card-strategy.component.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./card-strategy.component.vue?vue&type=template&id=36b2a6b8&scoped=true\"\nimport script from \"./card-strategy.component.vue?vue&type=script&lang=js\"\nexport * from \"./card-strategy.component.vue?vue&type=script&lang=js\"\nimport style0 from \"./card-strategy.component.vue?vue&type=style&index=0&id=36b2a6b8&prod&lang=scss&scoped=true\"\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 \"36b2a6b8\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\n {{ symbolLabel }}\n
\n {{ item.strategy_name }}\n