{"version":3,"sources":["webpack:///./src/assets/images/icons/icon-plus-outline.svg","webpack:///./src/views/components/CardContainer/CardContainer.scss?6b44","webpack:///./src/assets/images/entrancePlants/icon-message.svg","webpack:///./src/assets/images/entrancePlants/icon-parameters.svg","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDashboard/EntrancePlantDashboard.vue?bba5","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDashboard/EntrancePlantDashboardGate/EntrancePlantDashboardGate.vue?17cc","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDashboard/EntrancePlantDashboardGate/EntrancePlantDashboardGate.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDashboard/EntrancePlantDashboardGate/EntrancePlantDashboardGate.vue","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDashboard/EntrancePlantDashboard.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDashboard/EntrancePlantDashboard.vue","webpack:///./src/assets/images/icons/icon-blueprint.svg","webpack:///./src/assets/images/entrancePlants/icon-gate.svg","webpack:///./src/views/components/CardContainer/CardContainer.vue?f25e","webpack:///./src/views/components/CardContainer/CardContainer.ts","webpack:///./src/views/components/CardContainer/CardContainer.vue","webpack:///./src/assets/images/entrancePlants/icon-resident.svg","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDashboard/EntrancePlantDashboard.scss?191c","webpack:///./src/assets/images/entrancePlants/icon-badge.svg","webpack:///./src/assets/images/entrancePlants/icon-switchboard.svg","webpack:///./src/assets/images/entrancePlants/icon-guest.svg","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDashboard/EntrancePlantDashboardGate/EntrancePlantDashboardGate.scss?b496","webpack:///./node_modules/lodash.debounce/index.js"],"names":["module","exports","_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","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","key","_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","render","_ctx","_cache","$props","$setup","$data","$options","_component_Gate","_component_CardContainer","_component_InlineSvgScoped","_component_Button","_component_Card","src","imageURLs","srcset","imageSrcSetURLs","alt","currentPlant","name","address","country","$slots","titleIcon","title","gates","length","$t","showActionButton","onOnActionButtonClick","toggleCreateGateDialog","actionButtonLabel","default","gate","index","gateId","plantId","desktopId","_","onClick","goToStructure","content","countBuildings","toLowerCase","countApartments","icon","goToAddressBook","goToGuests","gateGuests","countGuest","goToBadges","countBadges","goToSwitchboards","goToAddSwitchboard","_component_InputText","_component_Dialog","type","id","modelValue","$event","disabled","plantInlineRenameEnabled","goToGateDetail","gateDeviceCount","handleAddDevice","modal","visible","isValidName","style","width","closable","header","footer","onHideNameValidationDialog","invalidNameReason","this","devices","verifyValidityOfName","updateCounts","initialName","validName","isValidEntityTypeName","$store","dispatch","updateGateName","$toast","add","severity","summary","life","forcefullyRenameFirstEntityWithinCachedOnes","e","$emitter","emit","$router","push","params","emits","props","Object","required","Number","watch","computed","__exports__","customIconImageUrl","plantType","undefined","buildings","apartmentsTotal","building","apartments","today","Date","parse","toDateString","validGuest","filter","guest","durationUntil","getTime","doCountBadges","plants","badgeAll","badgesList","query","addSwitchboard","components","Gate","CardContainer","onActionButtonClick","$emit","String","Boolean","FUNC_ERROR_TEXT","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","global","freeSelf","self","root","Function","objectProto","prototype","objectToString","toString","nativeMax","Math","max","nativeMin","min","now","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments","toNumber","isObject","value","isObjectLike","isSymbol","call","other","valueOf","replace","isBinary","test","slice"],"mappings":"iHAAAA,EAAOC,QAAU,IAA0B,sC,2DCA3C,W,qBCAAD,EAAOC,QAAU,IAA0B,iC,gDCA3CD,EAAOC,QAAU,IAA0B,oC,+ECErCC,EAAa,CAAEC,MAAO,UACtBC,EAAa,CAAED,MAAO,yBACtBE,EAAa,CAAEF,MAAO,QACtBG,EAAa,CAAEH,MAAO,mBACtBI,EAAa,CAAEJ,MAAO,kCACtBK,EAAa,CAAEL,MAAO,uBACtBM,EAAa,CAAEN,MAAO,6BACtBO,EAAa,CAAEP,MAAO,eACtBQ,EAAa,CAAER,MAAO,6BACtBS,EAAc,CAAET,MAAO,2BACvBU,EAAc,CAAEV,MAAO,eACvBW,EAAc,CAAEX,MAAO,wBACvBY,EAAc,CAAEZ,MAAO,4CACvBa,EAAc,CAAEb,MAAO,eACvBc,EAAc,CAAEd,MAAO,QACvBe,EAAc,CAAEf,MAAO,2BACvBgB,EAAc,CAAEhB,MAAO,wBACvBiB,EAAc,CAAEjB,MAAO,4CACvBkB,EAAc,CAAElB,MAAO,2BACvBmB,EAAc,CAAEnB,MAAO,wBACvBoB,EAAc,CAAEpB,MAAO,4CACvBqB,EAAc,CAAErB,MAAO,2BACvBsB,EAAc,CAAEtB,MAAO,wBACvBuB,EAAc,CAAEvB,MAAO,4CACvBwB,EAAc,CAClBC,IAAK,EACLzB,MAAO,yCAEH0B,EAAc,CAAE1B,MAAO,2BACvB2B,EAAc,CAAE3B,MAAO,wBACvB4B,EAAc,CAAE5B,MAAO,4CACvB6B,EAAc,CAAE7B,MAAO,2BACvB8B,EAAc,CAAE9B,MAAO,wBACvB+B,EAAc,CAAE/B,MAAO,4CACvBgC,EAAc,CAAEhC,MA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AAYR,EAAQQ,QACpBC,EAAS,YAAaT,EACtBG,EAAUM,EAASlB,EAAUwC,EAAS/B,EAAQG,UAAY,EAAGJ,GAAQI,EACrEO,EAAW,aAAcV,IAAYA,EAAQU,SAAWA,GAiG1DkB,EAAUH,OAASA,EACnBG,EAAUD,MAAQA,EACXC,EA4BT,SAASI,EAASC,GAChB,IAAI3I,SAAc2I,EAClB,QAASA,IAAkB,UAAR3I,GAA4B,YAARA,GA2BzC,SAAS4I,EAAaD,GACpB,QAASA,GAAyB,iBAATA,EAoB3B,SAASE,EAASF,GAChB,MAAuB,iBAATA,GACXC,EAAaD,IAAU5C,EAAe+C,KAAKH,IAAU3D,EA0B1D,SAASyD,EAASE,GAChB,GAAoB,iBAATA,EACT,OAAOA,EAET,GAAIE,EAASF,GACX,OAAO5D,EAET,GAAI2D,EAASC,GAAQ,CACnB,IAAII,EAAgC,mBAAjBJ,EAAMK,QAAwBL,EAAMK,UAAYL,EACnEA,EAAQD,EAASK,GAAUA,EAAQ,GAAMA,EAE3C,GAAoB,iBAATJ,EACT,OAAiB,IAAVA,EAAcA,GAASA,EAEhCA,EAAQA,EAAMM,QAAQhE,EAAQ,IAC9B,IAAIiE,EAAW/D,EAAWgE,KAAKR,GAC/B,OAAQO,GAAY9D,EAAU+D,KAAKR,GAC/BtD,EAAasD,EAAMS,MAAM,GAAIF,EAAW,EAAI,GAC3ChE,EAAWiE,KAAKR,GAAS5D,GAAO4D,EAGvC5O,EAAOC,QAAUuM,I","file":"js/page-entranceplant-dashboard.3aa765c3.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/icon-plus-outline.6d157290.svg\";","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./CardContainer.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-message.297290d6.svg\";","module.exports = __webpack_public_path__ + \"img/icon-parameters.b57aa86c.svg\";","import { createVNode as _createVNode, toDisplayString as _toDisplayString, renderSlot as _renderSlot, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, withCtx as _withCtx, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"d-flex\" }\nconst _hoisted_2 = { class: \"apartment__thumb mr-3\" }\nconst _hoisted_3 = { class: \"mb-0\" }\nconst _hoisted_4 = { class: \"fs-18 text-gray\" }\nconst _hoisted_5 = { class: \"d-flex align-items-center mt-3\" }\nconst _hoisted_6 = { class: \"apartment-dashboard\" }\nconst _hoisted_7 = { class: \"apartment-dashboard__main\" }\nconst _hoisted_8 = { class: \"list-blocks\" }\nconst _hoisted_9 = { class: \"apartment-dashboard__meta\" }\nconst _hoisted_10 = { class: \"apartment-meta__content\" }\nconst _hoisted_11 = { class: \"flex-grow-1\" }\nconst _hoisted_12 = { class: \"apartment-meta__head\" }\nconst _hoisted_13 = { class: \"apartment-meta__icon bt-icon bt-icon--sm\" }\nconst _hoisted_14 = { class: \"my-1 nowrap\" }\nconst _hoisted_15 = { class: \"mr-3\" }\nconst _hoisted_16 = { class: \"apartment-meta__content\" }\nconst _hoisted_17 = { class: \"apartment-meta__head\" }\nconst _hoisted_18 = { class: \"apartment-meta__icon bt-icon bt-icon--sm\" }\nconst _hoisted_19 = { class: \"apartment-meta__content\" }\nconst _hoisted_20 = { class: \"apartment-meta__head\" }\nconst _hoisted_21 = { class: \"apartment-meta__icon bt-icon bt-icon--sm\" }\nconst _hoisted_22 = { class: \"apartment-meta__content\" }\nconst _hoisted_23 = { class: \"apartment-meta__head\" }\nconst _hoisted_24 = { class: \"apartment-meta__icon bt-icon bt-icon--sm\" }\nconst _hoisted_25 = {\n key: 0,\n class: \"list-bubbles list-bubbles--xs ml-auto\"\n}\nconst _hoisted_26 = { class: \"apartment-meta__content\" }\nconst _hoisted_27 = { class: \"apartment-meta__head\" }\nconst _hoisted_28 = { class: \"apartment-meta__icon bt-icon bt-icon--sm\" }\nconst _hoisted_29 = { class: \"apartment-meta__content\" }\nconst _hoisted_30 = { class: \"apartment-meta__head\" }\nconst _hoisted_31 = { class: \"apartment-meta__icon bt-icon bt-icon--sm\" }\nconst _hoisted_32 = { class: \"list-bubbles list-bubbles--xs ml-auto\" }\nconst _hoisted_33 = { class: \"p-button p-button-rounded p-button-secondary fs-14\" }\nconst _hoisted_34 = { class: \"apartment-meta__content\" }\nconst _hoisted_35 = { class: \"apartment-meta__head\" }\nconst _hoisted_36 = { class: \"apartment-meta__icon bt-icon bt-icon--sm\" }\nconst _hoisted_37 = { class: \"bt-icon bt-icon--xs\" }\nconst _hoisted_38 = { class: \"ml-2\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Gate = _resolveComponent(\"Gate\")\n const _component_CardContainer = _resolveComponent(\"CardContainer\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Card = _resolveComponent(\"Card\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", null, [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"span\", _hoisted_2, [\n _createVNode(\"img\", {\n src: _ctx.imageURLs[0],\n srcset: _ctx.imageSrcSetURLs,\n alt: \"img\"\n }, null, 8, [\"src\", \"srcset\"])\n ]),\n _createVNode(\"div\", null, [\n _createVNode(\"h1\", _hoisted_3, _toDisplayString(_ctx.currentPlant?.name), 1),\n _createVNode(\"address\", _hoisted_4, _toDisplayString(_ctx.currentPlant.address) + \", \" + _toDisplayString(_ctx.currentPlant.country), 1)\n ]),\n _renderSlot(_ctx.$slots, \"head-menu\")\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _renderSlot(_ctx.$slots, \"update-time-meta\")\n ])\n ]),\n _createVNode(\"section\", _hoisted_6, [\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(_component_CardContainer, {\n titleIcon: \n require('@/assets/images/entrancePlants/icon-gate.svg')\n ,\n title: `${_ctx.currentPlant.gates?.length ?? 0} ${_ctx.$t(\n 'AppResourceEP.Gates'\n )}`,\n showActionButton: true,\n onOnActionButtonClick: _ctx.toggleCreateGateDialog,\n actionButtonLabel: _ctx.$t('entrancePlant.addGate')\n }, {\n default: _withCtx(() => [\n _createVNode(\"ul\", _hoisted_8, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.currentPlant.gates, (gate, index) => {\n return (_openBlock(), _createBlock(_component_Gate, {\n key: `${gate.gateId}-${index}`,\n gate: gate,\n plantId: _ctx.currentPlant.desktopId\n }, null, 8, [\"gate\", \"plantId\"]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"titleIcon\", \"title\", \"onOnActionButtonClick\", \"actionButtonLabel\"])\n ]),\n _createVNode(\"div\", _hoisted_9, [\n _createVNode(_component_Card, {\n class: \"apartment-meta card--slim\",\n onClick: _ctx.goToStructure\n }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"div\", _hoisted_11, [\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"span\", _hoisted_13, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/icons/icon-blueprint.svg')\n ,\n \"aria-label\": \"icon-blueprint\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h5\", null, _toDisplayString(_ctx.$t(\"AppResource.Structure\")), 1)\n ]),\n _createVNode(\"p\", _hoisted_14, [\n _createVNode(\"span\", _hoisted_15, _toDisplayString(_ctx.countBuildings) + \" \" + _toDisplayString(_ctx.$t(\n \"AppResourceEP.Buildings\"\n ).toLowerCase()), 1),\n _createVNode(\"span\", null, _toDisplayString(_ctx.countApartments) + \" \" + _toDisplayString(_ctx.$t(\n \"AppResourceEP.Apartments\"\n ).toLowerCase()), 1)\n ])\n ]),\n _createVNode(_component_Button, {\n icon: \"pi pi-chevron-right\",\n class: \"p-button-text p-button-secondary ml-2 ml-auto\",\n onClick: _ctx.goToStructure\n }, null, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Card, { class: \"apartment-meta card--slim\" }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_16, [\n _createVNode(\"div\", _hoisted_17, [\n _createVNode(\"span\", _hoisted_18, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/entrancePlants/icon-parameters.svg')\n ,\n \"aria-label\": \"icon-parameters\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h5\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.ParametersAndSettings\")), 1)\n ]),\n _createVNode(_component_Button, {\n icon: \"pi pi-chevron-right\",\n class: \"p-button-text p-button-secondary ml-2 ml-auto\"\n })\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_Card, {\n class: \"apartment-meta card--slim\",\n onClick: _ctx.goToAddressBook\n }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_19, [\n _createVNode(\"div\", _hoisted_20, [\n _createVNode(\"span\", _hoisted_21, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/entrancePlants/icon-resident.svg')\n ,\n \"aria-label\": \"icon-resident\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h5\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.AddressBookResidents\")), 1)\n ]),\n _createVNode(_component_Button, {\n onClick: _ctx.goToAddressBook,\n icon: \"pi pi-chevron-right\",\n class: \"p-button-text p-button-secondary ml-2 ml-auto\"\n }, null, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Card, {\n class: \"apartment-meta card--slim\",\n onClick: _ctx.goToGuests\n }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_22, [\n _createVNode(\"div\", _hoisted_23, [\n _createVNode(\"span\", _hoisted_24, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/entrancePlants/icon-guest.svg')\n ,\n \"aria-label\": \"icon-guest\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h5\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.Guests\")), 1)\n ]),\n (_ctx.currentPlant.gateGuests)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_25, [\n (_openBlock(), _createBlock(\"div\", {\n key: _ctx.countGuest,\n class: \"p-button p-button-rounded p-button-secondary fs-14\"\n }, _toDisplayString(_ctx.countGuest), 1))\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_Button, {\n icon: \"pi pi-chevron-right\",\n class: \"p-button-text p-button-secondary\",\n onClick: _ctx.goToGuests\n }, null, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Card, { class: \"apartment-meta card--slim\" }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_26, [\n _createVNode(\"div\", _hoisted_27, [\n _createVNode(\"span\", _hoisted_28, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/entrancePlants/icon-message.svg')\n ,\n \"aria-label\": \"icon-message\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h5\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.Messages\")), 1)\n ]),\n _createVNode(_component_Button, {\n icon: \"pi pi-chevron-right\",\n class: \"p-button-text p-button-secondary ml-2 ml-auto\"\n })\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_Card, {\n class: \"apartment-meta card--slim\",\n onClick: _ctx.goToBadges\n }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_29, [\n _createVNode(\"div\", _hoisted_30, [\n _createVNode(\"span\", _hoisted_31, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/entrancePlants/icon-badge.svg')\n ,\n \"aria-label\": \"icon-badge\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h5\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.Badges\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_32, [\n _createVNode(\"div\", _hoisted_33, _toDisplayString(_ctx.countBadges), 1)\n ]),\n _createVNode(_component_Button, {\n icon: \"pi pi-chevron-right\",\n class: \"p-button-text p-button-secondary\",\n onClick: _ctx.goToBadges\n }, null, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Card, {\n class: \"apartment-meta card--slim\",\n onClick: _ctx.goToSwitchboards\n }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_34, [\n _createVNode(\"div\", _hoisted_35, [\n _createVNode(\"span\", _hoisted_36, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/entrancePlants/icon-switchboard.svg`)\n ,\n \"aria-label\": \"icon-switchboard\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h5\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.Switchboard\")), 1)\n ]),\n _createVNode(_component_Button, {\n class: \"p-button-outlined p-button-rounded ml-auto\",\n onClick: _ctx.goToAddSwitchboard\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_37, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/icon-plus-outline.svg`)\n ,\n \"aria-label\": \"icon-plus-outline\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_38, _toDisplayString(_ctx.$t(\"AppResource.Add\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Button, {\n icon: \"pi pi-chevron-right\",\n class: \"p-button-text p-button-secondary\",\n onClick: _ctx.goToSwitchboards\n }, null, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ])\n ], 64))\n}","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, withCtx as _withCtx, createTextVNode as _createTextVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"gate\" }\nconst _hoisted_2 = { class: \"gate__header form-custom\" }\nconst _hoisted_3 = { class: \"d-flex align-items-center\" }\nconst _hoisted_4 = { class: \"bt-icon bt-icon--m\" }\nconst _hoisted_5 = { class: \"p-field\" }\nconst _hoisted_6 = { class: \"list-bubbles list-bubbles--xs ml-auto mr-3\" }\nconst _hoisted_7 = { class: \"bt-icon bt-icon--xs\" }\nconst _hoisted_8 = { class: \"ml-2\" }\nconst _hoisted_9 = { class: \"confirmation-content\" }\nconst _hoisted_10 = { class: \"text-center\" }\nconst _hoisted_11 = /*#__PURE__*/_createVNode(\"br\", null, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"li\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"span\", _hoisted_4, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/entrancePlants/icon-gate.svg`)\n ,\n \"aria-label\": \"icon-gate\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_InputText, {\n type: \"text\",\n id: \"plantname\",\n modelValue: _ctx.gate.name,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.gate.name = $event)),\n class: \"w-100 ml-3 text-uppercase\",\n disabled: !_ctx.plantInlineRenameEnabled\n }, null, 8, [\"modelValue\", \"disabled\"])\n ])\n ]),\n _createVNode(\"div\", {\n class: \"spacer\",\n onClick: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.goToGateDetail && _ctx.goToGateDetail(...args)))\n }, \"_\"),\n _createVNode(\"div\", _hoisted_6, [\n (_openBlock(), _createBlock(\"div\", {\n key: _ctx.gateDeviceCount,\n class: \"p-button p-button-rounded p-button-secondary fs-14 no-click\"\n }, _toDisplayString(_ctx.gateDeviceCount), 1))\n ]),\n _createVNode(_component_Button, {\n class: \"apartment__action p-button-rounded p-button-outlined\",\n onClick: _ctx.handleAddDevice\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_7, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/icon-plus-outline.svg`)\n ,\n \"aria-label\": \"icon-grid\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_8, _toDisplayString(_ctx.$t(\"entrancePlant.addDevice\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Button, {\n icon: \"pi pi-chevron-right\",\n class: \"p-button-text p-button-secondary ml-3\",\n onClick: _ctx.goToGateDetail\n }, null, 8, [\"onClick\"])\n ])\n ]),\n _createVNode(_component_Dialog, {\n modal: true,\n visible: !_ctx.isValidName,\n style: { width: '350px' },\n closable: false,\n header: _ctx.$t('uniqueNaming.unavailableName')\n }, {\n footer: _withCtx(() => [\n _createVNode(_component_Button, {\n class: \"p-button-primary p-button-rounded p-button--m\",\n onClick: _ctx.onHideNameValidationDialog\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Ok\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_9, [\n _createVNode(\"p\", _hoisted_10, [\n _createTextVNode(_toDisplayString(_ctx.invalidNameReason) + \" \", 1),\n _hoisted_11,\n _createVNode(\"sub\", null, _toDisplayString(_ctx.$t(\"uniqueNaming.nameResetDisclaimer\")), 1)\n ])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"header\"])\n ], 64))\n}","import { NAME_VALIDATION_DEBOUNCE_TIME } from '@/core/utils/utils';\nimport { PropType } from 'vue';\nimport { mapGetters } from 'vuex';\nimport debounce from 'lodash.debounce';\nimport { Vue, Options } from 'vue-class-component';\nimport { GateDTO } from '@/../client-generator/generated-clients/plants';\nimport { FETCH_PLANT } from '@/core/utils/emitter-events';\nimport { SET_APP_LOADING } from '@/core/store/action-types';\nimport { NamingService } from '@/core/services/naming.service';\n\n@Options({\n name: 'EntrancePlantDashboardGate',\n emits: ['add-object'],\n props: {\n gate: {\n type: Object as PropType,\n required: false,\n },\n plantId: {\n type: Number,\n required: true,\n },\n },\n watch: {\n gate: function () {\n this.updateCounts();\n },\n 'gate.name': function () {\n this.verifyValidityOfName();\n },\n },\n computed: {\n ...mapGetters('UI', ['plantInlineRenameEnabled']),\n },\n})\nexport default class EntrancePlantDashboardGate extends Vue {\n gate!: GateDTO;\n plantId!: number;\n plantInlineRenameEnabled!: boolean;\n isValidName = true;\n initialName!: string;\n invalidNameReason: string = '';\n\n get gateDeviceCount() {\n return this.gate.devices?.length ?? 0;\n }\n\n async created() {\n this.verifyValidityOfName = debounce(\n this.verifyValidityOfName,\n NAME_VALIDATION_DEBOUNCE_TIME + 1000\n );\n }\n\n mounted() {\n this.updateCounts();\n this.initialName = this.gate.name!;\n }\n\n private async verifyValidityOfName() {\n if (this.gate.name === this.initialName) return;\n const validName = NamingService.isValidEntityTypeName(this.gate.name);\n\n if (this.initialName !== this.gate.name && !validName) {\n this.$store.dispatch(SET_APP_LOADING, true);\n\n this.isValidName = validName;\n this.invalidNameReason = this.$t(\n `uniqueNaming.validationErrorWithSuggestion`\n );\n this.$store.dispatch(SET_APP_LOADING, false);\n } else {\n this.isValidName = true;\n this.invalidNameReason = '';\n await this.updateGateName();\n }\n }\n\n private async updateGateName() {\n try {\n this.$store.dispatch(SET_APP_LOADING, true);\n //await plantsClient.gatePUT(this.plantId, this.gate.gateId!, this.gate);\n this.$toast.add({\n severity: 'success',\n summary: this.$t('uniqueNaming.roomInlineNamingSuccess'),\n life: 3000,\n });\n NamingService.forcefullyRenameFirstEntityWithinCachedOnes(\n this.initialName,\n this.gate.name!\n );\n this.initialName = this.gate.name!;\n } catch (e) {\n this.gate.name = this.initialName;\n this.$toast.add({\n severity: 'error',\n summary: this.$t('uniqueNaming.roomInlineNamingError'),\n life: 3000,\n });\n } finally {\n this.$store.dispatch(SET_APP_LOADING, false);\n this.$emitter.emit(FETCH_PLANT);\n }\n }\n\n onHideNameValidationDialog() {\n this.gate.name = this.initialName;\n this.isValidName = true;\n }\n\n updateCounts() {}\n\n async handleAddDevice() {}\n\n goToGateDetail() {\n this.$router.push({\n name: 'page-entranceplant-gate',\n params: {\n gateId: this.gate.gateId ?? '',\n },\n });\n }\n}\n","import { render } from \"./EntrancePlantDashboardGate.vue?vue&type=template&id=4fb93681&ts=true\"\nimport script from \"./EntrancePlantDashboardGate.ts?vue&type=script&lang=ts\"\nexport * from \"./EntrancePlantDashboardGate.ts?vue&type=script&lang=ts\"\n\nimport \"./EntrancePlantDashboardGate.scss?vue&type=style&index=0&lang=scss\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { PropType } from 'vue';\nimport { Vue, Options } from 'vue-class-component';\nimport { getPlantIconImageUrlsByType } from '@/core/utils/utils';\nimport Gate from './EntrancePlantDashboardGate/EntrancePlantDashboardGate.vue';\nimport CardContainer from '@/views/components/CardContainer/CardContainer.vue';\nimport { EntrancePlantDetailDTO } from 'client-generator/generated-clients/plants';\nimport plantsClient from '@/core/services/plants';\n\n@Options({\n name: 'EntrancePlantDashboard',\n components: {\n Gate,\n CardContainer\n },\n props: {\n currentPlant: {\n type: Object as PropType,\n required: false,\n },\n },\n emits: ['update-list'],\n computed: {},\n watch: {},\n})\nexport default class EntrancePlantDashboard extends Vue {\n currentPlant!: EntrancePlantDetailDTO;\n countBadges = 0;\n\n get imageURLs() {\n return getPlantIconImageUrlsByType(\n this.currentPlant.icon,\n this.currentPlant.customIconImageUrl,\n this.currentPlant.plantType\n );\n }\n\n get imageSrcSetURLs() {\n if (this.imageURLs.length <= 1) return this.imageURLs[0];\n return `${this.imageURLs[0]}, ${this.imageURLs[1]} 2x, ${this.imageURLs[2]} 3x`;\n }\n\n get countBuildings() {\n if (this.currentPlant.buildings === undefined) return 0;\n return this.currentPlant.buildings.length;\n }\n\n get countApartments() {\n if (this.currentPlant.buildings === undefined) return 0;\n let apartmentsTotal = 0;\n for (const building of this.currentPlant.buildings) {\n if (building.apartments !== undefined) {\n apartmentsTotal += building.apartments.length;\n }\n }\n return apartmentsTotal;\n }\n\n get countGuest() {\n if (this.currentPlant.gateGuests === undefined) return 0;\n const today = Date.parse(new Date().toDateString());\n const validGuest = this.currentPlant.gateGuests.filter(\n (guest) => !guest.durationUntil || guest.durationUntil.getTime() >= today\n );\n\n return validGuest.length;\n }\n async mounted() {\n await this.doCountBadges();\n }\n\n async doCountBadges() {\n const badgesList = await plantsClient.badgeAll(\n this.currentPlant.desktopId as number\n );\n this.countBadges = badgesList.length;\n }\n\n toggleCreateGateDialog() {}\n\n goToStructure() {\n this.$router.push({\n name: 'page-entranceplant-structure',\n });\n }\n\n goToParametersSettings() {\n this.$router.push({\n name: 'page-entranceplant-settings',\n });\n }\n\n goToResidents() {\n this.$router.push({\n name: 'page-entranceplant-residents',\n });\n }\n\n goToGuests() {\n this.$router.push({\n name: 'page-entranceplant-guests',\n });\n }\n\n goToMessages() {\n this.$router.push({\n name: 'page-entranceplant-messages',\n });\n }\n\n goToBadges() {\n this.$router.push({\n name: 'page-entranceplant-badges',\n });\n }\n\n goToSwitchboards() {\n this.$router.push({\n name: 'page-entranceplant-switchboards',\n });\n }\n\n goToAddSwitchboard() {\n this.$router.push({\n name: 'page-entranceplant-switchboards',\n query: { addSwitchboard: 'add-switchboard' },\n });\n }\n\n goToAddressBook() {\n this.$router.push({\n name: 'page-entranceplant-residents',\n });\n }\n}\n","import { render } from \"./EntrancePlantDashboard.vue?vue&type=template&id=f65515ea&ts=true\"\nimport script from \"./EntrancePlantDashboard.ts?vue&type=script&lang=ts\"\nexport * from \"./EntrancePlantDashboard.ts?vue&type=script&lang=ts\"\n\nimport \"./EntrancePlantDashboard.scss?vue&type=style&index=0&lang=scss\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/icon-blueprint.ef378b33.svg\";","module.exports = __webpack_public_path__ + \"img/icon-gate.89a8ac52.svg\";","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"card__head d-flex align-items-center\" }\nconst _hoisted_2 = { class: \"d-flex align-items-center\" }\nconst _hoisted_3 = { class: \"ml-2\" }\nconst _hoisted_4 = { class: \"ml-auto mr-2\" }\nconst _hoisted_5 = { class: \"bt-icon bt-icon--xs\" }\nconst _hoisted_6 = { class: \"ml-2\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Card = _resolveComponent(\"Card\")\n\n return (_openBlock(), _createBlock(_component_Card, { class: \"card--primary\" }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"h3\", _hoisted_2, [\n _createVNode(_component_InlineSvgScoped, { src: _ctx.titleIcon }, null, 8, [\"src\"]),\n _createVNode(\"span\", _hoisted_3, _toDisplayString(_ctx.title), 1)\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _renderSlot(_ctx.$slots, \"actionButton\", {}, () => [\n (_ctx.showActionButton)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n onClick: _ctx.onActionButtonClick,\n class: \"p-button-rounded p-button-outlined\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_5, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/icon-plus-outline.svg`)\n ,\n \"aria-label\": \"icon-grid\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_6, _toDisplayString(_ctx.actionButtonLabel), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 1\n }))\n}","import { Vue, Options } from 'vue-class-component';\n\n@Options({\n name: 'CardContainer',\n components: {},\n props: {\n titleIcon: {\n type: String,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n showActionButton: {\n type: Boolean,\n required: false,\n },\n actionButtonLabel: {\n type: String,\n required: false,\n },\n },\n watch: {},\n emits: ['on-Action-Button-Click']\n})\n\nexport default class CardContainer extends Vue {\n titleIcon!: string;\n title!: string;\n showActionButton!: boolean;\n actionButtonLabel!: string;\n\n onActionButtonClick () {\n this.$emit('on-Action-Button-Click');\n }\n}\n","import { render } from \"./CardContainer.vue?vue&type=template&id=3cf0fffb&ts=true\"\nimport script from \"./CardContainer.ts?vue&type=script&lang=ts\"\nexport * from \"./CardContainer.ts?vue&type=script&lang=ts\"\n\nimport \"./CardContainer.scss?vue&type=style&index=0&lang=scss\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/icon-resident.fa4efdcd.svg\";","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./EntrancePlantDashboard.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-badge.0c90095c.svg\";","module.exports = __webpack_public_path__ + \"img/icon-switchboard.8b491d14.svg\";","module.exports = __webpack_public_path__ + \"img/icon-guest.8344f74b.svg\";","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./EntrancePlantDashboardGate.scss?vue&type=style&index=0&lang=scss\"","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n"],"sourceRoot":""}