{"version":3,"sources":["webpack:///./src/views/account/darkstores/components/DarkstoreSettings.vue?7040","webpack:///./src/views/account/darkstores/components/DarkstoreSettings.vue","webpack:///./src/views/account/darkstores/components/DarkstoreSettings.vue?0d2d","webpack:///./src/views/account/darkstores/components/DarkstoreSettings.vue?9f1b"],"names":["_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_createElementVNode","width","height","viewBox","fill","xmlns","d","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_54","_hoisted_55","ref","id","_hoisted_56","_hoisted_57","_hoisted_58","_hoisted_59","_hoisted_60","render","_ctx","_cache","$props","$setup","$data","$options","_component_BaseIcon","_resolveComponent","_component_Popper","_component_DarkstoreSettingsInput","_openBlock","_createElementBlock","_toDisplayString","darkstore","name","$t","_withDirectives","$event","form","email_address","type","placeholder","_vModelText","max_threshold_waiting_time","min","max_orders_assigned","score_divisor","style","_Fragment","_renderList","distributions","item","key","value","label","_vModelSelect","_createVNode","arrow","hover","placement","content","_withCtx","_createTextVNode","default","_","driver_balance_limit","modelValue","delivered_orders_count_weight","total","v","delivered_orders_count_weight_lock","onInput","onSettingsInputHandler","delivered_orders_distance_weight","delivered_orders_distance_weight_lock","waiting_time_at_the_darkstore_weight","waiting_time_at_the_darkstore_weight_lock","_normalizeStyle","interval_time","interval_weight","max_distance_from_dark_store","max","stop_auto_assignment","_vModelCheckbox","role","onClick","stop_auto_clock_out","updateSettings","defineComponent","components","BaseIcon","defineAsyncComponent","DarkstoreSettingsInput","Popper","props","Object","required","data","settingsFields","this","debounce","input","onSettingsFieldHandler","methods","$store","dispatch","DarkStoresActions","UPDATE_DARKSTORES_SETTINGS","settingsId","darkstoreSetting","payload","$emit","setBubble","range","bubble","val","newVal","Number","innerHTML","left","field","keep","restOfTheFieldCount","length","map","sf","sfFieldValue","get","isLocked","fieldValue","remaining","perVal","computed","availableFieldCount","vm","count","delivered_orders_count_weight_locked","delivered_orders_distance_weight_locked","waiting_time_at_the_darkstore_weight_locked","watch","handler","deep","mounted","$nextTick","Array","isArray","$refs","rangeV","setValue","newValue","newPosition","addEventListener","__exports__"],"mappings":"iJAEMA,EAAe,SAAAC,GAAC,OAAKC,yBAAa,mBAAmBD,EAAEA,IAAIE,0BAAcF,GACzEG,EAAa,CAAEC,MAAO,OACtBC,EAAa,CAAED,MAAO,WACtBE,EAAa,CAAEF,MAAO,qBACtBG,EAA2BR,GAAa,kBAAmBS,gCAAoB,MAAO,CAC1FC,MAAO,KACPC,OAAQ,KACRC,QAAS,YACTC,KAAM,OACNC,MAAO,8BACN,CACYL,gCAAoB,OAAQ,CACvCM,EAAG,2OACHF,KAAM,YAEKJ,gCAAoB,OAAQ,CACvCM,EAAG,ijCACHF,KAAM,cAEN,MACEG,EAAa,CAAEX,MAAO,qCACtBY,EAAa,CAAEZ,MAAO,kCACtBa,EAAa,CAAEb,MAAO,oBACtBc,EAAa,CAAEd,MAAO,eACtBe,EAAa,CAAEf,MAAO,4BACtBgB,EAAc,CAAC,eACfC,EAA4BtB,GAAa,kBAAmBS,gCAAoB,KAAM,CAAEJ,MAAO,QAAU,MAAO,MAChHkB,EAAc,CAAElB,MAAO,kCACvBmB,EAAc,CAAEnB,MAAO,cACvBoB,EAAc,CAAEpB,M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BAA4CC,EAA5C,SAEFrC,EAAMsC,iBAAiB,QAASH,GAChC,EAAKL,WAAU,WACbK,c,oCC5KV,MAAMI,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAASrI,IAAQ,CAAC,YAAY,qBAE1E,iB,6DCTf","file":"js/chunk-7582a7bc.8b3a29d2.js","sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, vModelText as _vModelText, withDirectives as _withDirectives, renderList as _renderList, Fragment as _Fragment, vModelSelect as _vModelSelect, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, normalizeStyle as _normalizeStyle, vModelCheckbox as _vModelCheckbox, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-3006e440\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"p-6\" }\nconst _hoisted_2 = { class: \"content\" }\nconst _hoisted_3 = { class: \"flex items-center\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"svg\", {\n width: \"61\",\n height: \"56\",\n viewBox: \"0 0 61 56\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M19.6624 45.8393H23.4556C25.9327 45.8393 27.868 43.8227 27.868 41.4183V37.6177C27.868 35.1357 25.8553 33.1967 23.4556 33.1967H19.6624C17.1853 33.1967 15.25 35.2133 15.25 37.6177V41.4183C15.25 43.8227 17.2627 45.8393 19.6624 45.8393Z\",\n fill: \"#1C1C1C\"\n }),\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M58.4454 20.3989H58.2906L56.5101 6.67036C55.9683 2.86981 52.717 0 48.9239 0H12.0761C8.28299 0 5.03173 2.86981 4.48985 6.67036L2.70939 20.3989H2.55457C1.16117 20.3989 0 21.5623 0 22.9585C0 24.3546 1.16117 25.518 2.55457 25.518H5.10914V48.4765C5.10914 52.6648 8.51523 56.1551 12.7728 56.1551H48.382C52.5622 56.1551 56.0457 52.7424 56.0457 48.4765V25.4404H58.6002C59.9936 25.4404 61.1548 24.277 61.1548 22.8809C61 21.4848 59.8388 20.3989 58.4454 20.3989ZM33.0546 5.11911H39.7119L41.7246 20.3989H33.0546V5.11911ZM21.2881 5.11911H27.9454V20.3989H19.2754L21.2881 5.11911ZM9.52157 7.29086C9.6764 6.04986 10.7602 5.04155 12.0761 5.04155H16.1789L14.1662 20.3213H7.81853L9.52157 7.29086ZM50.8591 48.3989C50.8591 49.795 49.698 50.9585 48.3046 50.9585H45.75V37.5402C45.75 35.0582 43.7373 33.1191 41.3376 33.1191H37.5444C35.0673 33.1191 33.132 35.1357 33.132 37.5402V50.8809H12.6954C11.302 50.8809 10.1409 49.7175 10.1409 48.3213V25.4404H50.7817V48.3989H50.8591ZM46.9112 20.3989L44.8211 5.11911H48.9239C50.1624 5.11911 51.2462 6.04986 51.4784 7.36842L53.1815 20.4765H46.9112V20.3989Z\",\n fill: \"#1C1C1C\"\n })\n], -1))\nconst _hoisted_5 = { class: \"font-bold text-lg text-black px-2\" }\nconst _hoisted_6 = { class: \"mt-6 mb-2 font-bold text-black\" }\nconst _hoisted_7 = { class: \"flex gap-6 w-1/2\" }\nconst _hoisted_8 = { class: \"flex-1 me-4\" }\nconst _hoisted_9 = { class: \"font-bold text-dark my-1\" }\nconst _hoisted_10 = [\"placeholder\"]\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"hr\", { class: \"my-4\" }, null, -1))\nconst _hoisted_12 = { class: \"mt-6 mb-2 font-bold text-black\" }\nconst _hoisted_13 = { class: \"flex gap-6\" }\nconst _hoisted_14 = { class: \"flex items-center gap-x-2\" }\nconst _hoisted_15 = { class: \"font-bold text-dark text-xs\" }\nconst _hoisted_16 = [\"placeholder\"]\nconst _hoisted_17 = { class: \"flex items-center gap-x-2\" }\nconst _hoisted_18 = { class: \"font-bold text-dark text-xs\" }\nconst _hoisted_19 = [\"placeholder\"]\nconst _hoisted_20 = { class: \"mt-6 flex items-center gap-6\" }\nconst _hoisted_21 = { class: \"flex items-center gap-x-2\" }\nconst _hoisted_22 = { class: \"font-bold text-dark text-xs\" }\nconst _hoisted_23 = [\"value\"]\nconst _hoisted_24 = { class: \"flex items-center gap-x-2\" }\nconst _hoisted_25 = { class: \"font-bold text-dark text-xs\" }\nconst _hoisted_26 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"hr\", { class: \"my-4\" }, null, -1))\nconst _hoisted_27 = { class: \"mt-6 mb-2 font-bold text-black flex items-center gap-x-2\" }\nconst _hoisted_28 = { class: \"flex gap-6\" }\nconst _hoisted_29 = { class: \"p-1\" }\nconst _hoisted_30 = { class: \"p-1\" }\nconst _hoisted_31 = { class: \"p-1\" }\nconst _hoisted_32 = { class: \"p-1\" }\nconst _hoisted_33 = { class: \"p-1\" }\nconst _hoisted_34 = { class: \"p-1\" }\nconst _hoisted_35 = { class: \"pt-3\" }\nconst _hoisted_36 = { class: \"h-5 w-220 rounded-xl bg-gray-100 position-relative overflow-hidden\" }\nconst _hoisted_37 = { class: \"pt-4\" }\nconst _hoisted_38 = { class: \"h-5 w-220 rounded-xl bg-gray-100 position-relative overflow-hidden\" }\nconst _hoisted_39 = { class: \"pt-4\" }\nconst _hoisted_40 = { class: \"h-5 w-220 rounded-xl bg-gray-100 position-relative overflow-hidden\" }\nconst _hoisted_41 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"hr\", { class: \"my-4\" }, null, -1))\nconst _hoisted_42 = { class: \"mt-6 mb-2 font-bold text-black\" }\nconst _hoisted_43 = { class: \"flex gap-6\" }\nconst _hoisted_44 = { class: \"flex items-center gap-x-2\" }\nconst _hoisted_45 = { class: \"font-bold text-dark text-xs\" }\nconst _hoisted_46 = [\"placeholder\"]\nconst _hoisted_47 = { class: \"flex items-center gap-x-2\" }\nconst _hoisted_48 = { class: \"font-bold text-dark text-xs\" }\nconst _hoisted_49 = [\"placeholder\"]\nconst _hoisted_50 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"hr\", { class: \"my-4\" }, null, -1))\nconst _hoisted_51 = { class: \"mt-6 mb-2 font-bold text-black\" }\nconst _hoisted_52 = { class: \"flex gap-6 items-start\" }\nconst _hoisted_53 = { class: \"font-bold text-dark mt-3\" }\nconst _hoisted_54 = { class: \"flex-1 mr-12 range-wrap relative\" }\nconst _hoisted_55 = {\n ref: \"rangeV\",\n class: \"range-value rounded py-1\",\n id: \"rangeV\"\n}\nconst _hoisted_56 = { class: \"flex justify-between\" }\nconst _hoisted_57 = { class: \"flex gap-9 items-start pt-7\" }\nconst _hoisted_58 = { class: \"flex items-center\" }\nconst _hoisted_59 = { class: \"flex items-center\" }\nconst _hoisted_60 = { class: \"mt-6 flex justify-center\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_BaseIcon = _resolveComponent(\"BaseIcon\")!\n const _component_Popper = _resolveComponent(\"Popper\")!\n const _component_DarkstoreSettingsInput = _resolveComponent(\"DarkstoreSettingsInput\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.darkstore.name), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(_ctx.$t('darkstoreSettings.contactInformation')), 1),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString(_ctx.$t('darkstoreSettings.email_address')), 1),\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.form.email_address) = $event)),\n type: \"text\",\n placeholder: _ctx.$t('placeholders.email'),\n class: \"h-42 bg-white input px-2 w-full\"\n }, null, 8, _hoisted_10), [\n [_vModelText, _ctx.form.email_address]\n ])\n ])\n ]),\n _hoisted_11,\n _createElementVNode(\"div\", _hoisted_12, _toDisplayString(_ctx.$t('darkstoreSettings.details')), 1),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString(_ctx.$t('darkstoreSettings.max_threshold_waiting_time')), 1),\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.form.max_threshold_waiting_time) = $event)),\n type: \"number\",\n placeholder: _ctx.$t('darkstoreSettings.max_threshold_waiting_time'),\n class: \"bg-white input px-2 w-18 settings-input\",\n min: \"1\"\n }, null, 8, _hoisted_16), [\n [_vModelText, _ctx.form.max_threshold_waiting_time]\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", _hoisted_18, _toDisplayString(_ctx.$t('darkstoreSettings.max_orders_assigned')), 1),\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.form.max_orders_assigned) = $event)),\n type: \"number\",\n placeholder: _ctx.$t('darkstoreSettings.max_orders_assigned'),\n class: \"bg-white input px-2 w-18 settings-input\",\n min: \"1\"\n }, null, 8, _hoisted_19), [\n [_vModelText, _ctx.form.max_orders_assigned]\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"div\", _hoisted_22, _toDisplayString(_ctx.$t('darkstoreSettings.order_distribution')), 1),\n _withDirectives(_createElementVNode(\"select\", {\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.form.score_divisor) = $event)),\n id: \"distributions\",\n name: \"distributions\",\n class: \"bg-white input px-2 settings-input\",\n style: {\"width\":\"100px\"}\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.distributions, (item) => {\n return (_openBlock(), _createElementBlock(\"option\", {\n key: item.value,\n value: item.value\n }, _toDisplayString(item.label), 9, _hoisted_23))\n }), 128))\n ], 512), [\n [_vModelSelect, _ctx.form.score_divisor]\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", _hoisted_25, [\n _createVNode(_component_Popper, {\n arrow: \"\",\n hover: \"\",\n placement: \"auto\"\n }, {\n content: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t('darkstoreSettings.driver_balance_limit_info')), 1)\n ]),\n default: _withCtx(() => [\n _createVNode(_component_BaseIcon, {\n name: \"info\",\n \"class-names\": \"w-4 h-4\"\n }),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t('darkstoreSettings.driver_balance_limit')) + \" \", 1)\n ]),\n _: 1\n })\n ]),\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.form.driver_balance_limit) = $event)),\n type: \"number\",\n placeholder: 1,\n class: \"bg-white input px-2 w-18 settings-input\",\n min: \"1\"\n }, null, 512), [\n [_vModelText, _ctx.form.driver_balance_limit]\n ])\n ])\n ]),\n _hoisted_26,\n _createElementVNode(\"div\", _hoisted_27, [\n _createTextVNode(_toDisplayString(_ctx.$t('Delivery Settings')) + \" \", 1),\n _createVNode(_component_Popper, {\n arrow: \"\",\n hover: \"\",\n placement: \"auto\"\n }, {\n content: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"darkstoreSettings.totalSettingsInfo\")), 1)\n ]),\n default: _withCtx(() => [\n _createVNode(_component_BaseIcon, { name: \"info\" })\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"table\", null, [\n _createElementVNode(\"tr\", null, [\n _createElementVNode(\"td\", _hoisted_29, _toDisplayString(_ctx.$t('darkstoreSettings.delivered_orders_count_weight')), 1),\n _createElementVNode(\"td\", _hoisted_30, [\n _createVNode(_component_DarkstoreSettingsInput, {\n modelValue: _ctx.form.delivered_orders_count_weight,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => ((_ctx.form.delivered_orders_count_weight) = $event)),\n total: _ctx.total,\n \"onUpdate:lockValue\": _cache[6] || (_cache[6] = (v) => _ctx.delivered_orders_count_weight_lock = v),\n onInput: _cache[7] || (_cache[7] = ($event: any) => (_ctx.onSettingsInputHandler('delivered_orders_count_weight')))\n }, null, 8, [\"modelValue\", \"total\"])\n ])\n ]),\n _createElementVNode(\"tr\", null, [\n _createElementVNode(\"td\", _hoisted_31, _toDisplayString(_ctx.$t('darkstoreSettings.delivered_orders_distance_weight')), 1),\n _createElementVNode(\"td\", _hoisted_32, [\n _createVNode(_component_DarkstoreSettingsInput, {\n modelValue: _ctx.form.delivered_orders_distance_weight,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => ((_ctx.form.delivered_orders_distance_weight) = $event)),\n total: _ctx.total,\n \"onUpdate:lockValue\": _cache[9] || (_cache[9] = (v) => _ctx.delivered_orders_distance_weight_lock = v),\n onInput: _cache[10] || (_cache[10] = ($event: any) => (_ctx.onSettingsInputHandler('delivered_orders_distance_weight')))\n }, null, 8, [\"modelValue\", \"total\"])\n ])\n ]),\n _createElementVNode(\"tr\", null, [\n _createElementVNode(\"td\", _hoisted_33, _toDisplayString(_ctx.$t('darkstoreSettings.waiting_time_at_the_darkstore_weight')), 1),\n _createElementVNode(\"td\", _hoisted_34, [\n _createVNode(_component_DarkstoreSettingsInput, {\n modelValue: _ctx.form.waiting_time_at_the_darkstore_weight,\n \"onUpdate:modelValue\": _cache[11] || (_cache[11] = ($event: any) => ((_ctx.form.waiting_time_at_the_darkstore_weight) = $event)),\n total: _ctx.total,\n \"onUpdate:lockValue\": _cache[12] || (_cache[12] = (v) => _ctx.waiting_time_at_the_darkstore_weight_lock = v),\n onInput: _cache[13] || (_cache[13] = ($event: any) => (_ctx.onSettingsInputHandler('waiting_time_at_the_darkstore_weight')))\n }, null, 8, [\"modelValue\", \"total\"])\n ])\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"table\", null, [\n _createElementVNode(\"tr\", null, [\n _createElementVNode(\"td\", _hoisted_35, [\n _createElementVNode(\"div\", _hoisted_36, [\n _createElementVNode(\"div\", {\n class: \"position-absolute bg-red-400 h-5 rounded-xl\",\n style: _normalizeStyle({'width': `${_ctx.form.delivered_orders_count_weight}%`})\n }, null, 4)\n ])\n ])\n ]),\n _createElementVNode(\"tr\", null, [\n _createElementVNode(\"td\", _hoisted_37, [\n _createElementVNode(\"div\", _hoisted_38, [\n _createElementVNode(\"div\", {\n class: \"position-absolute bg-red-400 h-5 rounded-xl\",\n style: _normalizeStyle({'width': `${_ctx.form.delivered_orders_distance_weight}%`})\n }, null, 4)\n ])\n ])\n ]),\n _createElementVNode(\"tr\", null, [\n _createElementVNode(\"td\", _hoisted_39, [\n _createElementVNode(\"div\", _hoisted_40, [\n _createElementVNode(\"div\", {\n class: \"position-absolute bg-red-400 h-5 rounded-xl\",\n style: _normalizeStyle({'width': `${_ctx.form.waiting_time_at_the_darkstore_weight}%`})\n }, null, 4)\n ])\n ])\n ])\n ])\n ])\n ]),\n _hoisted_41,\n _createElementVNode(\"div\", _hoisted_42, _toDisplayString(_ctx.$t('darkstoreSettings.temporalSettings')), 1),\n _createElementVNode(\"div\", _hoisted_43, [\n _createElementVNode(\"div\", _hoisted_44, [\n _createElementVNode(\"div\", _hoisted_45, _toDisplayString(_ctx.$t('darkstoreSettings.interval_time')), 1),\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[14] || (_cache[14] = ($event: any) => ((_ctx.form.interval_time) = $event)),\n type: \"number\",\n placeholder: _ctx.$t('darkstoreSettings.interval_time'),\n class: \"bg-white input px-2 w-18 settings-input\",\n min: \"1\"\n }, null, 8, _hoisted_46), [\n [_vModelText, _ctx.form.interval_time]\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_47, [\n _createElementVNode(\"div\", _hoisted_48, _toDisplayString(_ctx.$t('darkstoreSettings.interval_based_order_weighting')), 1),\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[15] || (_cache[15] = ($event: any) => ((_ctx.form.interval_weight) = $event)),\n type: \"number\",\n placeholder: _ctx.$t('darkstoreSettings.interval_based_order_weighting'),\n class: \"bg-white input px-2 w-18 settings-input\",\n min: \"1\"\n }, null, 8, _hoisted_49), [\n [_vModelText, _ctx.form.interval_weight]\n ])\n ])\n ]),\n _hoisted_50,\n _createElementVNode(\"div\", _hoisted_51, _toDisplayString(_ctx.$t('darkstoreSettings.distanceSettings')), 1),\n _createElementVNode(\"div\", _hoisted_52, [\n _createElementVNode(\"div\", _hoisted_53, _toDisplayString(_ctx.$t('darkstoreSettings.max_distance_from_dark_store')), 1),\n _createElementVNode(\"div\", _hoisted_54, [\n _createElementVNode(\"div\", _hoisted_55, null, 512),\n _withDirectives(_createElementVNode(\"input\", {\n id: \"range\",\n type: \"range\",\n ref: \"range\",\n \"onUpdate:modelValue\": _cache[16] || (_cache[16] = ($event: any) => ((_ctx.form.max_distance_from_dark_store) = $event)),\n min: \"0\",\n max: \"800\",\n class: \"w-full range-selector\"\n }, null, 512), [\n [_vModelText, _ctx.form.max_distance_from_dark_store]\n ]),\n _createElementVNode(\"div\", _hoisted_56, [\n _createElementVNode(\"div\", null, \"0 \" + _toDisplayString(_ctx.$t('darkstoreSettings.meter')), 1),\n _createElementVNode(\"div\", null, \"800 \" + _toDisplayString(_ctx.$t('darkstoreSettings.meter')), 1)\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_57, [\n _createElementVNode(\"div\", _hoisted_58, [\n _withDirectives(_createElementVNode(\"input\", {\n name: \"auto_assignment\",\n id: \"auto_assignment\",\n \"onUpdate:modelValue\": _cache[17] || (_cache[17] = ($event: any) => ((_ctx.form.stop_auto_assignment) = $event)),\n type: \"checkbox\"\n }, null, 512), [\n [_vModelCheckbox, _ctx.form.stop_auto_assignment]\n ]),\n _createElementVNode(\"div\", {\n role: \"button\",\n class: \"font-bold text-dark my-1 px-1\",\n onClick: _cache[18] || (_cache[18] = ($event: any) => (_ctx.form.stop_auto_assignment = !_ctx.form.stop_auto_assignment))\n }, _toDisplayString(_ctx.$t('darkstoreSettings.stop_auto_assignment')), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_59, [\n _withDirectives(_createElementVNode(\"input\", {\n name: \"auto_clock_out\",\n id: \"auto_clock_out\",\n \"onUpdate:modelValue\": _cache[19] || (_cache[19] = ($event: any) => ((_ctx.form.stop_auto_clock_out) = $event)),\n type: \"checkbox\"\n }, null, 512), [\n [_vModelCheckbox, _ctx.form.stop_auto_clock_out]\n ]),\n _createElementVNode(\"div\", {\n role: \"button\",\n class: \"font-bold text-dark my-1 px-1\",\n onClick: _cache[20] || (_cache[20] = ($event: any) => (_ctx.form.stop_auto_clock_out = !_ctx.form.stop_auto_clock_out))\n }, _toDisplayString(_ctx.$t('darkstoreSettings.stop_auto_clock_out')), 1)\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_60, [\n _createElementVNode(\"button\", {\n class: \"primary flex items-center px-5 py-3\",\n onClick: _cache[21] || (_cache[21] = \n//@ts-ignore\n(...args) => (_ctx.updateSettings && _ctx.updateSettings(...args)))\n }, _toDisplayString(_ctx.$t('buttons.saveChanges')), 1)\n ])\n ]))\n}","\nimport _, { debounce } from 'lodash'\nimport { defineAsyncComponent, defineComponent } from 'vue'\nimport { DarkStoresActions } from '@/store/modules/darkstores/actions'\n\nexport default defineComponent({\n components: {\n BaseIcon: defineAsyncComponent(() => import('@/shared/components/base-icon/BaseIcon.vue')),\n DarkstoreSettingsInput: defineAsyncComponent(() => import('@/views/account/darkstores/components/DarkstoreSettingsInput.vue')),\n Popper: defineAsyncComponent(() => import('vue3-popper'))\n },\n props: {\n darkstore: {\n type: Object,\n required: true\n }\n },\n data () {\n return {\n form: {\n max_threshold_waiting_time: 0,\n max_orders_assigned: 0,\n max_distance_from_dark_store: 0,\n email_address: null,\n score_divisor: null,\n interval_time: 0,\n interval_weight: 0,\n stop_auto_assignment: false,\n delivered_orders_count_weight: 0,\n delivered_orders_distance_weight: 0,\n waiting_time_at_the_darkstore_weight: 0,\n stop_auto_clock_out: false,\n driver_balance_limit: 0\n },\n settingsFields: ['delivered_orders_count_weight', 'delivered_orders_distance_weight', 'waiting_time_at_the_darkstore_weight'],\n delivered_orders_count_weight_lock: false,\n delivered_orders_distance_weight_lock: false,\n waiting_time_at_the_darkstore_weight_lock: false,\n distributions: [\n { label: this.$t('darkstoreSettings.multiplication'), value: 1 },\n { label: this.$t('darkstoreSettings.division'), value: 2 }\n ],\n onSettingsInputHandler: debounce((input) => {\n this.onSettingsFieldHandler(input)\n }, 500)\n }\n },\n methods: {\n async updateSettings () {\n await this.$store.dispatch(`darkstores/${[DarkStoresActions.UPDATE_DARKSTORES_SETTINGS]}`, {\n settingsId: this.darkstore.darkstoreSetting[0].id,\n payload: {\n ...this.form,\n max_threshold_waiting_time: this.form.max_threshold_waiting_time * 60,\n interval_time: this.form.interval_time * 60,\n delivered_orders_count_weight: this.form.delivered_orders_count_weight / 100,\n delivered_orders_distance_weight: this.form.delivered_orders_distance_weight / 100,\n waiting_time_at_the_darkstore_weight: this.form.waiting_time_at_the_darkstore_weight / 100\n }\n })\n this.$emit('updated')\n },\n setBubble (range:any, bubble:any) {\n const val = range.value\n const min = range.min ? range.min : 0\n const max = range.max ? range.max : 100\n const newVal = Number(((val - min) * 100) / (max - min))\n bubble.innerHTML = val\n // Sorta magic numbers based on size of the native UI thumb\n bubble.style.left = `calc(${newVal}% + (${8 - newVal * 0.15}px))`\n },\n onSettingsFieldHandler (field: string) {\n let keep = 0\n let restOfTheFieldCount = this.settingsFields.length - 1\n this.settingsFields.map((sf) => {\n const sfFieldValue = _.get(this.form, sf, 0) as any\n const isLocked = _.get(this, sf + '_lock')\n if (sf !== field && isLocked) {\n restOfTheFieldCount = restOfTheFieldCount - 1\n keep += sfFieldValue\n }\n })\n\n if (restOfTheFieldCount) {\n const fieldValue = _.get(this.form, field, 0) as any\n const remaining = (100 - keep) - fieldValue\n const perVal = remaining / restOfTheFieldCount\n\n this.settingsFields.map((sf:any) => {\n if (sf !== field) {\n const isLocked = _.get(this, sf + '_lock')\n if (!isLocked) {\n this.form = {\n ...this.form,\n [sf]: perVal\n }\n }\n }\n })\n }\n }\n },\n computed: {\n availableFieldCount (vm:any) {\n let count = 3\n if (vm.delivered_orders_count_weight_locked) count--\n if (vm.delivered_orders_distance_weight_locked) count--\n if (vm.waiting_time_at_the_darkstore_weight_locked) count--\n return count\n },\n total () {\n return Number(this.form.delivered_orders_count_weight) +\n Number(this.form.delivered_orders_distance_weight) +\n Number(this.form.waiting_time_at_the_darkstore_weight)\n }\n },\n watch: {\n form: {\n handler (newVal) {\n if (newVal.max_threshold_waiting_time < 0) {\n this.form.max_threshold_waiting_time = 0\n }\n if (newVal.max_orders_assigned < 0) {\n this.form.max_orders_assigned = 0\n }\n if (newVal.max_distance_from_dark_store < 0) {\n this.form.max_distance_from_dark_store = 0\n }\n if (newVal.interval_time < 0) {\n this.form.interval_time = 0\n }\n if (newVal.delivered_orders_count_weight < 0) {\n this.form.delivered_orders_count_weight = 0 as any\n }\n if (newVal.delivered_orders_distance_weight < 0) {\n this.form.delivered_orders_distance_weight = 0 as any\n }\n if (newVal.waiting_time_at_the_darkstore_weight < 0) {\n this.form.waiting_time_at_the_darkstore_weight = 0 as any\n }\n if (newVal.driver_balance_limit < 0) {\n this.form.driver_balance_limit = 0 as any\n }\n },\n deep: true\n }\n },\n mounted () {\n this.$nextTick(() => {\n if (Array.isArray(this.darkstore.darkstoreSetting) && this.darkstore.darkstoreSetting.length) {\n this.form = {\n max_threshold_waiting_time: this.darkstore.darkstoreSetting[0].max_threshold_waiting_time,\n max_orders_assigned: this.darkstore.darkstoreSetting[0].max_orders_assigned,\n email_address: this.darkstore.darkstoreSetting[0].email_address,\n max_distance_from_dark_store: this.darkstore.darkstoreSetting[0].max_distance_from_dark_store,\n score_divisor: this.darkstore.darkstoreSetting[0]?.score_divisor?.value ?? null,\n interval_time: this.darkstore.darkstoreSetting[0].interval_time,\n interval_weight: this.darkstore.darkstoreSetting[0].interval_weight,\n stop_auto_assignment: this.darkstore.darkstoreSetting[0].stop_auto_assignment,\n stop_auto_clock_out: this.darkstore.darkstoreSetting[0].stop_auto_clock_out,\n delivered_orders_count_weight: this.darkstore.darkstoreSetting[0].delivered_orders_count_weight * 100,\n delivered_orders_distance_weight: this.darkstore.darkstoreSetting[0].delivered_orders_distance_weight * 100,\n waiting_time_at_the_darkstore_weight: this.darkstore.darkstoreSetting[0].waiting_time_at_the_darkstore_weight * 100,\n driver_balance_limit: this.darkstore.darkstoreSetting[0].driver_balance_limit\n }\n }\n\n if (this.$refs.range && this.$refs.rangeV) {\n const range = this.$refs.range as any\n const rangeV = this.$refs.rangeV as any\n\n const setValue = () => {\n const newValue = Number((range.value - range.min) * 100 / (range.max - range.min))\n const newPosition = 10 - (newValue * 0.2)\n rangeV.innerHTML = `