{"version":3,"sources":["webpack:///./src/views/account/lts-dashboard/components/LTSStopPointList.vue?e51f","webpack:///./src/views/account/lts-dashboard/components/LTSStopPointList.vue","webpack:///./src/views/account/lts-dashboard/components/LTSStopPointList.vue?c2ee","webpack:///./src/views/account/lts-dashboard/components/LTSStopPointList.vue?f0d3"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","render","_ctx","_cache","$props","$setup","$data","$options","_component_BaseIcon","_resolveComponent","_openBlock","_createElementBlock","_createElementVNode","_createVNode","name","_toDisplayString","$t","totalDuration","stopPoints","length","_Fragment","_renderList","sp","i","key","moment","stop_datetime","format","add","duration","defineComponent","components","BaseIcon","props","type","Array","default","data","methods","formatTime","seconds","hours","Math","floor","minutes","String","padStart","computed","total","this","reduce","sum","b","__exports__"],"mappings":"gKAGMA,EAAa,CAAEC,MAAO,qBACtBC,EAAa,CAAED,MAAO,qDACtBE,EAAa,CAAEF,MAAO,qBACtBG,EAAa,CAAEH,MAAO,kBACtBI,EAAa,CAAEJ,MAAO,aACtBK,EAAa,CAAEL,MAAO,4CACtBM,EAAa,CAAEN,MAAO,QACtBO,EAAa,CAAEP,MAAO,wBACtBQ,EAAa,CAAER,MAAO,+BACtBS,EAAc,CAAET,MAAO,mCACvBU,EAAc,CAAEV,MAAO,8BACvBW,EAAc,CAAEX,MAAO,OACvBY,EAAc,CAAEZ,MAAO,eACvBa,EAAc,CAAEb,MAAO,SACvBc,EAAc,CAAEd,MAAO,qBACvBe,EAAc,CAAEf,MAAO,oBAEvB,SAAUgB,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAsBC,8BAAkB,YAE9C,OAAQC,yBAAcC,gCAAoB,MAAO,KAAM,CACrDC,gCAAoB,MAAO5B,EAAY,CACrC4B,gCAA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AT6B,WAU3B,MAAO,CACLZ,aAGJa,QAAS,CACPC,WADO,SACKC,GACV,IAAMC,EAAQC,KAAKC,MAAMH,EAAU,MAC7BI,EAAUF,KAAKC,MAAOH,EAAU,KAAQ,IAG9C,OAFAA,GAAoB,GAEhBC,EAAQ,EACV,UAAUI,OAAOJ,GAAOK,SAAS,EAAG,KAApC,YAA4CD,OAAOD,GAASE,SAAS,EAAG,KAAxE,YAAgFD,OAAOL,GAASM,SAAS,EAAG,MAE5G,UAAUD,OAAOD,GAASE,SAAS,EAAG,KAAtC,YAA8CD,OAAOL,GAASM,SAAS,EAAG,QAIhFC,SAAU,CACR9B,cADQ,WAEN,IAAM+B,EAAQC,KAAK/B,WAAWgC,QAAO,SAACC,EAASC,GAAV,OAAoBD,EAAMC,EAAEvB,WAAU,GAC3E,OAAOmB,EAAQ,GAAR,UAAgBC,KAAKV,WAAWS,IAAhC,UAA8CA,EAA9C,a,iCC5Bb,MAAMK,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASpD,GAAQ,CAAC,YAAY,qBAE1E,gB,kCCTf","file":"js/chunk-05c5a907.1ca116c2.js","sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-40db185e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"text-left text-xs\" }\nconst _hoisted_2 = { class: \"flex items-center justify-between mb-1 text-black\" }\nconst _hoisted_3 = { class: \"flex items-center\" }\nconst _hoisted_4 = { class: \"font-bold px-1\" }\nconst _hoisted_5 = { class: \"font-bold\" }\nconst _hoisted_6 = { class: \"bg-gray-100 rounded-lg p-2 text-gray-500\" }\nconst _hoisted_7 = { class: \"flex\" }\nconst _hoisted_8 = { class: \"w-1/3 px-1 font-bold\" }\nconst _hoisted_9 = { class: \"w-1/3 text-center font-bold\" }\nconst _hoisted_10 = { class: \"w-1/3 text-right px-3 font-bold\" }\nconst _hoisted_11 = { class: \"content scrollable-content\" }\nconst _hoisted_12 = { class: \"p-1\" }\nconst _hoisted_13 = { class: \"flex w-full\" }\nconst _hoisted_14 = { class: \"w-1/3\" }\nconst _hoisted_15 = { class: \"w-1/3 text-center\" }\nconst _hoisted_16 = { class: \"w-1/3 text-right\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_BaseIcon = _resolveComponent(\"BaseIcon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_BaseIcon, { name: \"time\" }),\n _createElementVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.$t('lts.duration_info')), 1)\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.$t('lts.total_duration')) + \": \", 1),\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.$t('lts.total_duration_info', [_ctx.totalDuration, _ctx.stopPoints.length])), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, _toDisplayString(_ctx.$t('lts.start')), 1),\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString(_ctx.$t('lts.end')), 1),\n _createElementVNode(\"div\", _hoisted_10, _toDisplayString(_ctx.$t('lts.duration')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.stopPoints, (sp, i) => {\n return (_openBlock(), _createElementBlock(\"div\", { key: i }, [\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, _toDisplayString(_ctx.moment(sp.stop_datetime).format('DD/MM/YYYY HH:mm A')), 1),\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString(_ctx.moment(sp.stop_datetime).add(sp.duration, 'second').format('DD/MM/YYYY HH:mm A')), 1),\n _createElementVNode(\"div\", _hoisted_16, _toDisplayString(sp.duration) + \" sec.\", 1)\n ])\n ])\n ]))\n }), 128))\n ])\n ])\n ])\n ]))\n}","\nimport moment from 'moment'\nimport BaseIcon from '@/shared/components/base-icon/BaseIcon.vue'\nimport { defineComponent } from 'vue'\n\nexport default defineComponent({\n name: 'LTSStopPointList',\n components: { BaseIcon },\n props: {\n stopPoints: {\n type: Array,\n default: () => []\n }\n },\n data () {\n return {\n moment\n }\n },\n methods: {\n formatTime (seconds: number) {\n const hours = Math.floor(seconds / 3600)\n const minutes = Math.floor((seconds % 3600) / 60)\n seconds = seconds % 60\n\n if (hours > 0) {\n return `${String(hours).padStart(2, '0')}:${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}`\n } else {\n return `${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}`\n }\n }\n },\n computed: {\n totalDuration () {\n const total = this.stopPoints.reduce((sum:any, b:any) => sum + b.duration, 0) as number\n return total > 60 ? `${this.formatTime(total)}` : `${total} sec.`\n }\n }\n})\n","import { render } from \"./LTSStopPointList.vue?vue&type=template&id=40db185e&scoped=true&ts=true\"\nimport script from \"./LTSStopPointList.vue?vue&type=script&lang=ts\"\nexport * from \"./LTSStopPointList.vue?vue&type=script&lang=ts\"\n\nimport \"./LTSStopPointList.vue?vue&type=style&index=0&id=40db185e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/usr/src/app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-40db185e\"]])\n\nexport default __exports__","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-loader-v16/dist/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-loader-v16/dist/index.js??ref--1-1!./LTSStopPointList.vue?vue&type=style&index=0&id=40db185e&lang=scss&scoped=true\""],"sourceRoot":""}