From 27f731cb95f7b062ad2d8f470aed38e7b01867b1 Mon Sep 17 00:00:00 2001 From: AlekseySesyolkin Date: Tue, 13 Feb 2024 10:53:38 +1100 Subject: [PATCH] Do not show search prompty if empty --- dist/vue-treeselect.cjs.js | 5 ++++- dist/vue-treeselect.cjs.js.map | 2 +- dist/vue-treeselect.cjs.min.js | 2 +- dist/vue-treeselect.cjs.min.js.map | 2 +- dist/vue-treeselect.umd.js | 5 ++++- dist/vue-treeselect.umd.js.map | 2 +- dist/vue-treeselect.umd.min.js | 2 +- dist/vue-treeselect.umd.min.js.map | 2 +- src/components/Menu.vue | 7 ++++--- 9 files changed, 18 insertions(+), 11 deletions(-) diff --git a/dist/vue-treeselect.cjs.js b/dist/vue-treeselect.cjs.js index 26542aa5..6c53f6f3 100644 --- a/dist/vue-treeselect.cjs.js +++ b/dist/vue-treeselect.cjs.js @@ -3212,9 +3212,12 @@ var directionMap = { renderAsyncSearchMenuInner: function renderAsyncSearchMenuInner() { var instance = this.instance; var entry = instance.getRemoteSearchEntry(); - var shouldShowSearchPromptTip = instance.trigger.searchQuery === '' && !instance.defaultOptions && instance.searchPromptText; + var shouldShowSearchPromptTip = instance.trigger.searchQuery === '' && !instance.defaultOptions; var shouldShowNoResultsTip = shouldShowSearchPromptTip ? false : entry.isLoaded && entry.options.length === 0; if (shouldShowSearchPromptTip) { + if (!instance.searchPromptText) { + return ''; + } return this.renderSearchPromptTip(); } else if (entry.isLoading) { return this.renderLoadingOptionsTip(); diff --git a/dist/vue-treeselect.cjs.js.map b/dist/vue-treeselect.cjs.js.map index 60143b74..f157005e 100644 --- a/dist/vue-treeselect.cjs.js.map +++ b/dist/vue-treeselect.cjs.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://VueTreeselect/webpack/bootstrap","webpack://VueTreeselect/external \"@babel/runtime/helpers/slicedToArray\"","webpack://VueTreeselect/external \"@babel/runtime/helpers/toConsumableArray\"","webpack://VueTreeselect/external \"@babel/runtime/helpers/defineProperty\"","webpack://VueTreeselect/external \"fuzzysearch\"","webpack://VueTreeselect/external \"lodash/noop\"","webpack://VueTreeselect/external \"lodash/debounce\"","webpack://VueTreeselect/external \"watch-size\"","webpack://VueTreeselect/external \"is-promise\"","webpack://VueTreeselect/external \"lodash/once\"","webpack://VueTreeselect/external \"lodash/identity\"","webpack://VueTreeselect/external \"lodash/constant\"","webpack://VueTreeselect/external \"@babel/runtime/helpers/typeof\"","webpack://VueTreeselect/external \"lodash/last\"","webpack://VueTreeselect/external \"babel-helper-vue-jsx-merge-props\"","webpack://VueTreeselect/external \"vue\"","webpack://VueTreeselect/./src/style.less?1f4a","webpack://VueTreeselect/./src/utils/warning.js","webpack://VueTreeselect/./src/utils/onLeftClick.js","webpack://VueTreeselect/./src/utils/scrollIntoView.js","webpack://VueTreeselect/./src/utils/removeFromArray.js","webpack://VueTreeselect/./src/utils/watchSize.js","webpack://VueTreeselect/./src/utils/setupResizeAndScrollEventListeners.js","webpack://VueTreeselect/./src/utils/isNaN.js","webpack://VueTreeselect/./src/utils/createMap.js","webpack://VueTreeselect/./src/utils/deepExtend.js","webpack://VueTreeselect/./src/utils/includes.js","webpack://VueTreeselect/./src/utils/find.js","webpack://VueTreeselect/./src/utils/quickDiff.js","webpack://VueTreeselect/./src/utils/index.js","webpack://VueTreeselect/./src/constants.js","webpack://VueTreeselect/./src/mixins/treeselectMixin.js","webpack://VueTreeselect/src/components/HiddenFields.vue","webpack://VueTreeselect/./src/components/HiddenFields.vue?2cdc","webpack://VueTreeselect/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VueTreeselect/./src/components/HiddenFields.vue","webpack://VueTreeselect/src/components/Input.vue","webpack://VueTreeselect/./src/components/Input.vue?3957","webpack://VueTreeselect/./src/components/Input.vue","webpack://VueTreeselect/src/components/Placeholder.vue","webpack://VueTreeselect/./src/components/Placeholder.vue?7a2d","webpack://VueTreeselect/./src/components/Placeholder.vue","webpack://VueTreeselect/src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/SingleValue.vue?304b","webpack://VueTreeselect/./src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?9af8","webpack://VueTreeselect/src/components/icons/Delete.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?706a","webpack://VueTreeselect/./src/components/icons/Delete.vue","webpack://VueTreeselect/src/components/MultiValueItem.vue","webpack://VueTreeselect/./src/components/MultiValueItem.vue?6db0","webpack://VueTreeselect/./src/components/MultiValueItem.vue","webpack://VueTreeselect/src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/MultiValue.vue?998f","webpack://VueTreeselect/./src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?a3ef","webpack://VueTreeselect/src/components/icons/Arrow.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?c39d","webpack://VueTreeselect/./src/components/icons/Arrow.vue","webpack://VueTreeselect/src/components/Control.vue","webpack://VueTreeselect/./src/components/Control.vue?2f53","webpack://VueTreeselect/./src/components/Control.vue","webpack://VueTreeselect/src/components/Tip.vue","webpack://VueTreeselect/./src/components/Tip.vue?f94f","webpack://VueTreeselect/./src/components/Tip.vue","webpack://VueTreeselect/src/components/Option.vue","webpack://VueTreeselect/./src/components/Option.vue?f5e1","webpack://VueTreeselect/./src/components/Option.vue","webpack://VueTreeselect/src/components/Menu.vue","webpack://VueTreeselect/./src/components/Menu.vue?0ced","webpack://VueTreeselect/./src/components/Menu.vue","webpack://VueTreeselect/src/components/MenuPortal.vue","webpack://VueTreeselect/./src/components/MenuPortal.vue?9760","webpack://VueTreeselect/./src/components/MenuPortal.vue","webpack://VueTreeselect/src/components/Treeselect.vue","webpack://VueTreeselect/./src/components/Treeselect.vue?71f6","webpack://VueTreeselect/./src/components/Treeselect.vue","webpack://VueTreeselect/./src/index.js"],"names":["warning","process","env","NODE_ENV","noop","checker","complainer","_console","message","concat","console","error","apply","_toConsumableArray","onLeftClick","mouseDownHandler","onMouseDown","evt","type","button","_len","arguments","length","args","Array","_key","call","scrollIntoView","$scrollingEl","$focusedEl","scrollingReact","getBoundingClientRect","focusedRect","overScroll","offsetHeight","bottom","scrollTop","Math","min","offsetTop","clientHeight","scrollHeight","top","max","removeFromArray","arr","elem","idx","indexOf","splice","intervalId","registered","INTERVAL_DURATION","run","setInterval","forEach","test","stop","clearInterval","item","$el","listener","lastWidth","lastHeight","width","offsetWidth","height","watchSizeForIE9","unwatch","push","watchSize","isIE9","document","documentMode","locked","wrappedListener","implementation","watchSizeForBrowsersOtherThanIE9","removeSizeWatcher","findScrollParents","$scrollParents","$parent","parentNode","nodeName","nodeType","ELEMENT_NODE","isScrollElment","window","_getComputedStyle","getComputedStyle","overflow","overflowX","overflowY","setupResizeAndScrollEventListeners","addEventListener","passive","scrollParent","removeEventListeners","removeEventListener","$scrollParent","isNaN","x","createMap","Object","create","isPlainObject","value","_typeof","getPrototypeOf","prototype","copy","obj","key","deepExtend","target","source","keys","i","len","includes","arrOrStr","find","predicate","ctx","undefined","quickDiff","arrA","arrB","NO_PARENT_NODE","UNCHECKED","INDETERMINATE","CHECKED","ALL_CHILDREN","ALL_DESCENDANTS","LEAF_CHILDREN","LEAF_DESCENDANTS","LOAD_ROOT_OPTIONS","LOAD_CHILDREN_OPTIONS","ASYNC_SEARCH","ALL","BRANCH_PRIORITY","LEAF_PRIORITY","ALL_WITH_INDETERMINATE","ORDER_SELECTED","LEVEL","INDEX","KEY_CODES","BACKSPACE","ENTER","ESCAPE","END","HOME","ARROW_LEFT","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","DELETE","INPUT_DEBOUNCE_DELAY","MIN_INPUT_WIDTH","MENU_BUFFER","sortValueByIndex","a","b","level","index","sortValueByLevel","createAsyncOptionsStates","isLoaded","isLoading","loadingError","stringifyOptionPropValue","match","enableFuzzyMatch","needle","haystack","fuzzysearch","getErrorMessage","err","String","instanceId","provide","instance","props","allowClearingDisabled","Boolean","default","allowSelectingDisabledDescendants","alwaysOpen","appendToBody","async","autoFocus","autoLoadRootOptions","autoDeselectAncestors","autoDeselectDescendants","autoSelectAncestors","autoSelectDescendants","backspaceRemoves","beforeClearAll","Function","constant","branchNodesFirst","cacheOptions","clearable","clearAllText","clearOnSelect","clearValueText","closeOnSelect","defaultExpandLevel","Number","defaultOptions","deleteRemoves","delimiter","flattenSearchResults","disableBranchNodes","disabled","disableFuzzyMatching","flat","_default","joinValues","limit","Infinity","limitText","limitTextDefault","count","loadingText","loadOptions","matchKeys","maxHeight","multiple","name","noChildrenText","noOptionsText","noResultsText","normalizer","identity","openDirection","validator","acceptableValues","openOnClick","openOnFocus","options","placeholder","required","retryText","retryTitle","searchable","searchNested","searchPromptText","showAsGroup","showCount","showCountOf","showCountOnSearch","sortValueBy","tabIndex","valueConsistsOf","valueFormat","zIndex","data","trigger","isFocused","searchQuery","menu","isOpen","current","lastScrollPosition","placement","forest","normalizedOptions","nodeMap","checkedStateMap","selectedNodeIds","extractCheckedNodeIdsFromValue","selectedNodeMap","rootOptionsStates","localSearch","active","noResults","countMap","remoteSearch","computed","selectedNodes","map","getNode","internalValue","_this","single","slice","filter","id","node","isRootNode","isSelected","isLeaf","children","_internalValue","indeterminateNodeIds","selectedNode","ancestors","ancestor","sort","hasValue","visibleOptionIds","_this2","traverseAllNodesByIndex","shouldOptionBeIncludedInSearchResult","isBranch","shouldExpand","hasVisibleOptions","showCountOnSearchComputed","hasBranchNodes","some","rootNode","shouldFlattenOptions","watch","newValue","openMenu","closeMenu","initialize","oldValue","hasChanged","$emit","getValue","getInstanceId","buildForestState","handler","isArray","deep","immediate","triggerSearchQuery","handleRemoteSearch","handleLocalSearch","nodeIdsFromValue","fixSelectedNodeIds","methods","verifyProps","_this3","propNames","propName","resetFlags","_blurOnSelect","getRemoteSearchEntry","prevNodeMap","keepDataOfSelectedNodes","normalize","_this4","rawNodes","raw","nodeId","createFallbackNode","extractNodeFromValue","label","enhancedNormalizer","fallbackNode","isFallbackNode","isDisabled","isNew","$set","_this5","_this6","defaultNode","valueArray","matched","nodeIdListOfPrevValue","_this7","nextSelectedNodeIds","traverseDescendantsBFS","descendant","queue","shift","_this8","_objectSpread","callback","currNode","traverseDescendantsDFS","_this9","child","traverseAllNodesDFS","_this10","walk","toggleClickOutsideEvent","enabled","handleClickOutside","getValueContainer","$refs","control","getInput","input","focusInput","focus","blurInput","blur","handleMouseDown","preventDefault","stopPropagation","isClickedOnValueContainer","contains","wrapper","_this11","done","resetHighlightedOptionWhenNecessary","isExpandedOnSearch","showAllChildrenOnSearch","isMatched","hasMatchedDescendants","_defineProperty","lowerCasedSearchQuery","trim","toLocaleLowerCase","splitSearchQuery","replace","split","every","filterValue","nestedSearchLabel","matchKey","lowerCased","_this12","entry","callLoadOptionsProp","action","isPending","start","succeed","fail","end","_this13","$watch","isExpanded","shouldShowOptionInMenu","getControl","getMenu","ref","portal","portalTarget","$menu","setCurrentHighlightedOption","_this14","scroll","prev","isHighlighted","scrollToOption","toString","$option","querySelector","$nextTick","forceReset","highlightFirstOption","first","highlightPrevOption","highlightLastOption","highlightNextOption","next","last","getLast","resetSearchQuery","saveMenuScrollPosition","restoreMenuScrollPosition","loadRootOptions","toggleMenu","toggleExpanded","nextState","childrenStates","loadChildrenOptions","_this15","selectedNodeId","ancestorNode","nodes","_this16","_ref","_ref2","_slicedToArray","checkDuplication","verifyNodeShape","round","random","isDefaultExpanded","reduce","normalized","hasDisabledDescendants","branchNodes","option","leafNodes","_this17","_this18","_ref3","once","result","isPromise","then","catch","_this19","JSON","stringify","select","clear","_selectNode","_deselectNode","_this20","_this21","addValue","isFullyChecked","curr","_this22","removeValue","hasUncheckedSomeDescendants","removeLastValue","lastValue","lastSelectedNode","created","mounted","destroyed","stringifyValue","inject","functional","render","_","context","h","injections","stringifiedValues","join","stringifiedValue","attrs","domProps","keysThatRequireMenuBeingOpen","inputWidth","needAutoSize","inputStyle","instanceTriggerSearchQuery","updateInputWidth","debouncedCallback","debounce","updateSearchQuery","leading","trailing","onInput","onFocus","onBlur","activeElement","cancel","onKeyDown","which","keyCode","ctrlKey","shiftKey","altKey","metaKey","renderInputContainer","$createElement","renderInput","renderSizer","on","keydown","_mergeJSXProps","autocomplete","style","sizer","scrollWidth","placeholderClass","renderSingleValueLabel","customValueLabelRenderer","$scopedSlots","renderValueContainer","shouldShowValue","Placeholder","Input","itemClass","labelRenderer","DeleteIcon","renderMultiValueItems","MultiValueItem","renderExceedLimitTip","transitionGroupProps","tag","appear","shouldShowX","hasUndisabledValue","shouldShowArrow","renderX","title","handleMouseDownOnX","renderArrow","arrowClass","handleMouseDownOnArrow","ArrowIcon","shouldClear","setTimeout","ValueContainer","SingleValue","MultiValue","icon","arrowPlaceholder","checkMark","minusMark","Option","isGroup","shouldShow","renderOption","optionClass","handleMouseEnterOption","renderLabelContainer","renderCheckboxContainer","renderCheckbox","renderLabel","renderSubOptionsList","renderSubOptions","renderNoChildrenTip","renderLoadingChildrenTip","renderLoadingChildrenErrorTip","transitionProps","handleMouseDownOnLabelContainer","checkedState","checkboxClass","shouldShowCount","NaN","labelClassName","countClassName","customLabelRenderer","childNode","Tip","handleMouseDownOnRetry","currentTarget","handleMouseDownOnOptionArrow","indentLevel","listItemClass","directionMap","above","below","menuStyle","menuContainerStyle","instanceMenuIsOpen","onMenuOpen","onMenuClose","menuSizeWatcher","menuResizeAndScrollEventListeners","renderMenu","renderBeforeList","renderAsyncSearchMenuInner","renderLocalSearchMenuInner","renderNormalMenuInner","renderAfterList","beforeListRenderer","afterListRenderer","renderLoadingOptionsTip","renderLoadingRootOptionsErrorTip","renderNoAvailableOptionsTip","renderOptionList","renderNoResultsTip","shouldShowSearchPromptTip","shouldShowNoResultsTip","renderSearchPromptTip","renderAsyncSearchLoadingErrorTip","adjustMenuOpenDirection","setupMenuSizeWatcher","setupMenuResizeAndScrollEventListeners","removeMenuSizeWatcher","removeMenuResizeAndScrollEventListeners","$control","menuRect","controlRect","menuHeight","viewportHeight","innerHeight","spaceAbove","spaceBelow","isControlInViewport","hasEnoughSpaceBelow","hasEnoughSpaceAbove","remove","PortalTarget","setupHandlers","removeHandlers","instanceMenuPlacement","updateMenuContainerOffset","controlResizeAndScrollEventListeners","controlSizeWatcher","updateWidth","setupControlResizeAndScrollEventListeners","setupControlSizeWatcher","removeControlResizeAndScrollEventListeners","removeControlSizeWatcher","$portalTarget","portalTargetRect","offsetY","left","transformVariations","transform","t","body","portalTargetClass","wrapperClass","portalTargetStyle","Menu","setup","teardown","el","createElement","appendChild","Vue","parent","removeChild","innerHTML","$destroy","mixins","treeselectMixin","HiddenFields","Control","MenuPortal","Treeselect","VERSION","PKG_VERSION"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,iE;;;;;;ACAA,qE;;;;;;ACAA,kE;;;;;;ACAA,wC;;;;;;ACAA,wC;;;;;;ACAA,4C;;;;;;ACAA,uC;;;;;;ACAA,uC;;;;;;ACAA,wC;;;;;;ACAA,4C;;;;;;ACAA,4C;;;;;;ACAA,0D;;;;;;ACAA,wC;;;;;;ACAA,6D;;;;;;ACAA,gC;;;;;;ACAA,uC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACA6B;AAEtB,IAAMA,eAAO,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,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;AACW;AAMhB;AAEb,IAAMC,OAAO,GAAGC,OAAW,C","file":"vue-treeselect.cjs.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 16);\n","module.exports = require(\"@babel/runtime/helpers/slicedToArray\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"fuzzysearch\");","module.exports = require(\"lodash/noop\");","module.exports = require(\"lodash/debounce\");","module.exports = require(\"watch-size\");","module.exports = require(\"is-promise\");","module.exports = require(\"lodash/once\");","module.exports = require(\"lodash/identity\");","module.exports = require(\"lodash/constant\");","module.exports = require(\"@babel/runtime/helpers/typeof\");","module.exports = require(\"lodash/last\");","module.exports = require(\"babel-helper-vue-jsx-merge-props\");","module.exports = require(\"vue\");","// extracted by mini-css-extract-plugin","import { noop } from './noop'\n\nexport const warning = process.env.NODE_ENV === 'production'\n ? /* istanbul ignore next */ noop\n : function warning(checker, complainer) {\n if (!checker()) {\n const message = [ '[Vue-Treeselect Warning]' ].concat(complainer())\n // eslint-disable-next-line no-console\n console.error(...message)\n }\n }\n","export function onLeftClick(mouseDownHandler) {\n return function onMouseDown(evt, ...args) {\n if (evt.type === 'mousedown' && evt.button === 0) {\n mouseDownHandler.call(this, evt, ...args)\n }\n }\n}\n","// from react-select\nexport function scrollIntoView($scrollingEl, $focusedEl) {\n const scrollingReact = $scrollingEl.getBoundingClientRect()\n const focusedRect = $focusedEl.getBoundingClientRect()\n const overScroll = $focusedEl.offsetHeight / 3\n\n if (focusedRect.bottom + overScroll > scrollingReact.bottom) {\n $scrollingEl.scrollTop = Math.min(\n $focusedEl.offsetTop + $focusedEl.clientHeight - $scrollingEl.offsetHeight + overScroll,\n $scrollingEl.scrollHeight,\n )\n } else if (focusedRect.top - overScroll < scrollingReact.top) {\n $scrollingEl.scrollTop = Math.max($focusedEl.offsetTop - overScroll, 0)\n }\n}\n","export function removeFromArray(arr, elem) {\n const idx = arr.indexOf(elem)\n if (idx !== -1) arr.splice(idx, 1)\n}\n","import watchSizeForBrowsersOtherThanIE9 from 'watch-size'\nimport { removeFromArray } from './removeFromArray'\n\nlet intervalId\nconst registered = []\nconst INTERVAL_DURATION = 100\n\nfunction run() {\n intervalId = setInterval(() => {\n registered.forEach(test)\n }, INTERVAL_DURATION)\n}\n\nfunction stop() {\n clearInterval(intervalId)\n intervalId = null\n}\n\nfunction test(item) {\n const { $el, listener, lastWidth, lastHeight } = item\n const width = $el.offsetWidth\n const height = $el.offsetHeight\n\n if (lastWidth !== width || lastHeight !== height) {\n item.lastWidth = width\n item.lastHeight = height\n\n listener({ width, height })\n }\n}\n\nfunction watchSizeForIE9($el, listener) {\n const item = {\n $el,\n listener,\n lastWidth: null,\n lastHeight: null,\n }\n const unwatch = () => {\n removeFromArray(registered, item)\n if (!registered.length) stop()\n }\n\n registered.push(item)\n // The original watch-size will call the listener on initialization.\n // Keep the same behavior here.\n test(item)\n run()\n\n return unwatch\n}\n\nexport function watchSize($el, listener) {\n // See: https://stackoverflow.com/a/31293352\n const isIE9 = document.documentMode === 9\n // watch-size will call the listener on initialization.\n // Disable this behavior with a lock to achieve a clearer code logic.\n let locked = true\n const wrappedListener = (...args) => locked || listener(...args)\n const implementation = isIE9\n ? watchSizeForIE9\n : watchSizeForBrowsersOtherThanIE9\n const removeSizeWatcher = implementation($el, wrappedListener)\n locked = false // unlock after initialization\n\n return removeSizeWatcher\n}\n","function findScrollParents($el) {\n const $scrollParents = []\n let $parent = $el.parentNode\n\n while ($parent && $parent.nodeName !== 'BODY' && $parent.nodeType === document.ELEMENT_NODE) {\n if (isScrollElment($parent)) $scrollParents.push($parent)\n $parent = $parent.parentNode\n }\n $scrollParents.push(window)\n\n return $scrollParents\n}\n\nfunction isScrollElment($el) {\n // Firefox wants us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getComputedStyle($el)\n return /(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)\n}\n\nexport function setupResizeAndScrollEventListeners($el, listener) {\n const $scrollParents = findScrollParents($el)\n\n window.addEventListener('resize', listener, { passive: true })\n $scrollParents.forEach(scrollParent => {\n scrollParent.addEventListener('scroll', listener, { passive: true })\n })\n\n return function removeEventListeners() {\n window.removeEventListener('resize', listener, { passive: true })\n $scrollParents.forEach($scrollParent => {\n $scrollParent.removeEventListener('scroll', listener, { passive: true })\n })\n }\n}\n","export function isNaN(x) {\n return x !== x\n}\n","export const createMap = () => Object.create(null)\n","function isPlainObject(value) {\n if (value == null || typeof value !== 'object') return false\n return Object.getPrototypeOf(value) === Object.prototype\n}\n\nfunction copy(obj, key, value) {\n if (isPlainObject(value)) {\n obj[key] || (obj[key] = {})\n deepExtend(obj[key], value)\n } else {\n obj[key] = value\n }\n}\n\nexport function deepExtend(target, source) {\n if (isPlainObject(source)) {\n const keys = Object.keys(source)\n\n for (let i = 0, len = keys.length; i < len; i++) {\n copy(target, keys[i], source[keys[i]])\n }\n }\n\n return target\n}\n","export function includes(arrOrStr, elem) {\n return arrOrStr.indexOf(elem) !== -1\n}\n","export function find(arr, predicate, ctx) {\n for (let i = 0, len = arr.length; i < len; i++) {\n if (predicate.call(ctx, arr[i], i, arr)) return arr[i]\n }\n return undefined\n}\n","export function quickDiff(arrA, arrB) {\n if (arrA.length !== arrB.length) return true\n\n for (let i = 0; i < arrA.length; i++) {\n if (arrA[i] !== arrB[i]) return true\n }\n\n return false\n}\n","// ========================\n// Debugging Helpers\n// ========================\n\nexport { warning } from './warning'\n\n// ========================\n// DOM Utilities\n// ========================\n\nexport { onLeftClick } from './onLeftClick'\nexport { scrollIntoView } from './scrollIntoView'\nexport { debounce } from './debounce'\nexport { watchSize } from './watchSize'\nexport { setupResizeAndScrollEventListeners } from './setupResizeAndScrollEventListeners'\n\n// ========================\n// Language Helpers\n// ========================\n\nexport { isNaN } from './isNaN'\nexport { isPromise } from './isPromise'\nexport { once } from './once'\nexport { noop } from './noop'\nexport { identity } from './identity'\nexport { constant } from './constant'\nexport { createMap } from './createMap'\nexport { deepExtend } from './deepExtend'\nexport { last } from './last'\nexport { includes } from './includes'\nexport { find } from './find'\nexport { removeFromArray } from './removeFromArray'\n\n// ========================\n// Other Utilities\n// ========================\n\nexport { quickDiff } from './quickDiff'\n","// Magic value that indicates a root level node.\nexport const NO_PARENT_NODE = null\n\n// Types of checked state.\nexport const UNCHECKED = 0\nexport const INDETERMINATE = 1\nexport const CHECKED = 2\n\n// Types of count number.\nexport const ALL_CHILDREN = 'ALL_CHILDREN'\nexport const ALL_DESCENDANTS = 'ALL_DESCENDANTS'\nexport const LEAF_CHILDREN = 'LEAF_CHILDREN'\nexport const LEAF_DESCENDANTS = 'LEAF_DESCENDANTS'\n\n// Action types of delayed loading.\nexport const LOAD_ROOT_OPTIONS = 'LOAD_ROOT_OPTIONS'\nexport const LOAD_CHILDREN_OPTIONS = 'LOAD_CHILDREN_OPTIONS'\nexport const ASYNC_SEARCH = 'ASYNC_SEARCH'\n\n// Acceptable values of `valueConsistsOf` prop.\nexport const ALL = 'ALL'\nexport const BRANCH_PRIORITY = 'BRANCH_PRIORITY'\nexport const LEAF_PRIORITY = 'LEAF_PRIORITY'\nexport const ALL_WITH_INDETERMINATE = 'ALL_WITH_INDETERMINATE'\n\n// Acceptable values of `sortValueBy` prop.\nexport const ORDER_SELECTED = 'ORDER_SELECTED'\nexport const LEVEL = 'LEVEL'\nexport const INDEX = 'INDEX'\n\n// Key codes look-up table.\nexport const KEY_CODES = {\n BACKSPACE: 8,\n ENTER: 13,\n ESCAPE: 27,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n}\n\n// Other constants.\nexport const INPUT_DEBOUNCE_DELAY = process.env.NODE_ENV === 'testing'\n ? /* to speed up unit testing */ 10\n : /* istanbul ignore next */ 200\nexport const MIN_INPUT_WIDTH = 5\nexport const MENU_BUFFER = 40\n","import fuzzysearch from 'fuzzysearch'\n\nimport {\n warning,\n onLeftClick, scrollIntoView,\n isNaN, isPromise, once,\n identity, constant, createMap,\n quickDiff, last as getLast, includes, find, removeFromArray,\n} from '../utils'\n\nimport {\n NO_PARENT_NODE,\n UNCHECKED, INDETERMINATE, CHECKED,\n LOAD_ROOT_OPTIONS, LOAD_CHILDREN_OPTIONS, ASYNC_SEARCH,\n ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE,\n ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS,\n ORDER_SELECTED, LEVEL, INDEX,\n} from '../constants'\n\nfunction sortValueByIndex(a, b) {\n let i = 0\n do {\n if (a.level < i) return -1\n if (b.level < i) return 1\n if (a.index[i] !== b.index[i]) return a.index[i] - b.index[i]\n i++\n } while (true)\n}\n\nfunction sortValueByLevel(a, b) {\n return a.level === b.level\n ? sortValueByIndex(a, b)\n : a.level - b.level\n}\n\nfunction createAsyncOptionsStates() {\n return {\n isLoaded: false,\n isLoading: false,\n loadingError: '',\n }\n}\n\nfunction stringifyOptionPropValue(value) {\n if (typeof value === 'string') return value\n if (typeof value === 'number' && !isNaN(value)) return value + ''\n // istanbul ignore next\n return ''\n}\n\nfunction match(enableFuzzyMatch, needle, haystack) {\n return enableFuzzyMatch\n ? fuzzysearch(needle, haystack)\n : includes(haystack, needle)\n}\n\nfunction getErrorMessage(err) {\n return err.message || /* istanbul ignore next */String(err)\n}\n\nlet instanceId = 0\n\nexport default {\n provide() {\n return {\n // Enable access to the instance of root component of vue-treeselect\n // across hierarchy.\n instance: this,\n }\n },\n\n props: {\n /**\n * Whether to allow resetting value even if there are disabled selected nodes.\n */\n allowClearingDisabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.\n * You may want to use this in conjunction with `allowClearingDisabled` prop.\n */\n allowSelectingDisabledDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the menu should be always open.\n */\n alwaysOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Append the menu to ?\n */\n appendToBody: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable async search mode.\n */\n async: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically focus the component on mount?\n */\n autoFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.\n */\n autoLoadRootOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.\n */\n autoDeselectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user deselects a node, automatically deselect its descendants. Applies to flat mode only.\n */\n autoDeselectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its ancestors. Applies to flat mode only.\n */\n autoSelectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its descendants. Applies to flat mode only.\n */\n autoSelectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether pressing backspace key removes the last item if there is no text input.\n */\n backspaceRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Function that processes before clearing all input fields.\n * Return `false` to prevent value from being cleared.\n * @type {function(): (boolean|Promise)}\n */\n beforeClearAll: {\n type: Function,\n default: constant(true),\n },\n\n /**\n * Show branch nodes before leaf nodes?\n */\n branchNodesFirst: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Should cache results of every search request?\n */\n cacheOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Show an \"×\" button that resets value?\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Title for the \"×\" button when `multiple: true`.\n */\n clearAllText: {\n type: String,\n default: 'Clear all',\n },\n\n /**\n * Whether to clear the search input after selecting.\n * Use only when `multiple` is `true`.\n * For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.\n */\n clearOnSelect: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Title for the \"×\" button.\n */\n clearValueText: {\n type: String,\n default: 'Clear value',\n },\n\n /**\n * Whether to close the menu after selecting an option?\n * Use only when `multiple` is `true`.\n */\n closeOnSelect: {\n type: Boolean,\n default: true,\n },\n\n /**\n * How many levels of branch nodes should be automatically expanded when loaded.\n * Set `Infinity` to make all branch nodes expanded by default.\n */\n defaultExpandLevel: {\n type: Number,\n default: 0,\n },\n\n /**\n * The default set of options to show before the user starts searching. Used for async search mode.\n * When set to `true`, the results for search query as a empty string will be autoloaded.\n * @type {boolean|node[]}\n */\n defaultOptions: {\n default: false,\n },\n\n /**\n * Whether pressing delete key removes the last item if there is no text input.\n */\n deleteRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Delimiter to use to join multiple values for the hidden field value.\n */\n delimiter: {\n type: String,\n default: ',',\n },\n\n /**\n * Only show the nodes that match the search value directly, excluding its ancestors.\n *\n * @type {Object}\n */\n flattenSearchResults: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Prevent branch nodes from being selected?\n */\n disableBranchNodes: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the control?\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the fuzzy matching functionality?\n */\n disableFuzzyMatching: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable flat mode or not. Non-flat mode (default) means:\n * - Whenever a branch node gets checked, all its children will be checked too\n * - Whenever a branch node has all children checked, the branch node itself will be checked too\n * Set `true` to disable this mechanism\n */\n flat: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Will be passed with all events as the last param.\n * Useful for identifying events origin.\n */\n instanceId: {\n // Add two trailing \"$\" to distinguish from explictly specified ids.\n default: () => `${instanceId++}$$`,\n type: [ String, Number ],\n },\n\n /**\n * Joins multiple values into a single form field with the `delimiter` (legacy mode).\n */\n joinValues: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Limit the display of selected options.\n * The rest will be hidden within the limitText string.\n */\n limit: {\n type: Number,\n default: Infinity,\n },\n\n /**\n * Function that processes the message shown when selected elements pass the defined limit.\n * @type {function(number): string}\n */\n limitText: {\n type: Function,\n default: function limitTextDefault(count) { // eslint-disable-line func-name-matching\n return `and ${count} more`\n },\n },\n\n /**\n * Text displayed when loading options.\n */\n loadingText: {\n type: String,\n default: 'Loading...',\n },\n\n /**\n * Used for dynamically loading options.\n * @type {function({action: string, callback: (function((Error|string)=): void), parentNode: node=, instanceId}): void}\n */\n loadOptions: {\n type: Function,\n },\n\n /**\n * Which node properties to filter on.\n */\n matchKeys: {\n type: Array,\n default: constant([ 'label' ]),\n },\n\n /**\n * Sets `maxHeight` style value of the menu.\n */\n maxHeight: {\n type: Number,\n default: 300,\n },\n\n /**\n * Set `true` to allow selecting multiple options (a.k.a., multi-select mode).\n */\n multiple: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Generates a hidden tag with this field name for html forms.\n */\n name: {\n type: String,\n },\n\n /**\n * Text displayed when a branch node has no children.\n */\n noChildrenText: {\n type: String,\n default: 'No sub-options.',\n },\n\n /**\n * Text displayed when there are no available options.\n */\n noOptionsText: {\n type: String,\n default: 'No options available.',\n },\n\n /**\n * Text displayed when there are no matching search results.\n */\n noResultsText: {\n type: String,\n default: 'No results found...',\n },\n\n /**\n * Used for normalizing source data.\n * @type {function(node, instanceId): node}\n */\n normalizer: {\n type: Function,\n default: identity,\n },\n\n /**\n * By default (`auto`), the menu will open below the control. If there is not\n * enough space, vue-treeselect will automatically flip the menu.\n * You can use one of other four options to force the menu to be always opened\n * to specified direction.\n * Acceptable values:\n * - `\"auto\"`\n * - `\"below\"`\n * - `\"bottom\"`\n * - `\"above\"`\n * - `\"top\"`\n */\n openDirection: {\n type: String,\n default: 'auto',\n validator(value) {\n const acceptableValues = [ 'auto', 'top', 'bottom', 'above', 'below' ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to automatically open the menu when the control is clicked.\n */\n openOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether to automatically open the menu when the control is focused.\n */\n openOnFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Array of available options.\n * @type {node[]}\n */\n options: {\n type: Array,\n },\n\n /**\n * Field placeholder, displayed when there's no value.\n */\n placeholder: {\n type: String,\n default: 'Select...',\n },\n\n /**\n * Applies HTML5 required attribute when needed.\n */\n required: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text displayed asking user whether to retry loading children options.\n */\n retryText: {\n type: String,\n default: 'Retry?',\n },\n\n /**\n * Title for the retry button.\n */\n retryTitle: {\n type: String,\n default: 'Click to retry',\n },\n\n /**\n * Enable searching feature?\n */\n searchable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Search in ancestor nodes too.\n */\n searchNested: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text tip to prompt for async search.\n */\n searchPromptText: {\n type: String,\n default: 'Type to search...',\n },\n\n showAsGroup: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to show a children count next to the label of each branch node.\n */\n showCount: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Used in conjunction with `showCount` to specify which type of count number should be displayed.\n * Acceptable values:\n * - \"ALL_CHILDREN\"\n * - \"ALL_DESCENDANTS\"\n * - \"LEAF_CHILDREN\"\n * - \"LEAF_DESCENDANTS\"\n */\n showCountOf: {\n type: String,\n default: ALL_CHILDREN,\n validator(value) {\n const acceptableValues = [ ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to show children count when searching.\n * Fallbacks to the value of `showCount` when not specified.\n * @type {boolean}\n */\n showCountOnSearch: null,\n\n /**\n * In which order the selected options should be displayed in trigger & sorted in `value` array.\n * Used for multi-select mode only.\n * Acceptable values:\n * - \"ORDER_SELECTED\"\n * - \"LEVEL\"\n * - \"INDEX\"\n */\n sortValueBy: {\n type: String,\n default: ORDER_SELECTED,\n validator(value) {\n const acceptableValues = [ ORDER_SELECTED, LEVEL, INDEX ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Tab index of the control.\n */\n tabIndex: {\n type: Number,\n default: 0,\n },\n\n /**\n * The value of the control.\n * Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.\n * Its format depends on the `valueFormat` prop.\n * For most cases, just use `v-model` instead.\n * @type {?Array}\n */\n value: null,\n\n /**\n * Which kind of nodes should be included in the `value` array in multi-select mode.\n * Acceptable values:\n * - \"ALL\" - Any node that is checked will be included in the `value` array\n * - \"BRANCH_PRIORITY\" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array\n * - \"LEAF_PRIORITY\" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included\n * - \"ALL_WITH_INDETERMINATE\" - Any node that is checked will be included in the `value` array, plus indeterminate nodes\n */\n valueConsistsOf: {\n type: String,\n default: BRANCH_PRIORITY,\n validator(value) {\n const acceptableValues = [ ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Format of `value` prop.\n * Note that, when set to `\"object\"`, only `id` & `label` properties are required in each `node` object in `value` prop.\n * Acceptable values:\n * - \"id\"\n * - \"object\"\n */\n valueFormat: {\n type: String,\n default: 'id',\n },\n\n /**\n * z-index of the menu.\n */\n zIndex: {\n type: [ Number, String ],\n default: 999,\n },\n },\n\n data() {\n return {\n trigger: {\n // Is the control focused?\n isFocused: false,\n // User entered search query - value of the input.\n searchQuery: '',\n },\n\n menu: {\n // Is the menu opened?\n isOpen: false,\n // Id of current highlighted option.\n current: null,\n // The scroll position before last menu closing.\n lastScrollPosition: 0,\n // Which direction to open the menu.\n placement: 'bottom',\n },\n\n forest: {\n // Normalized options.\n normalizedOptions: [],\n // map for quick look-up.\n nodeMap: createMap(),\n // map, used for multi-select mode.\n checkedStateMap: createMap(),\n // Id list of all selected options.\n selectedNodeIds: this.extractCheckedNodeIdsFromValue(),\n // map for fast checking:\n // if (forest.selectedNodeIds.indexOf(id) !== -1) forest.selectedNodeMap[id] === true\n selectedNodeMap: createMap(),\n },\n\n // States of root options.\n rootOptionsStates: createAsyncOptionsStates(),\n\n localSearch: {\n // Has user entered any query to search local options?\n active: false,\n // Has any options matched the search query?\n noResults: true,\n // map for counting matched children/descendants.\n countMap: createMap(),\n },\n\n // map.\n remoteSearch: createMap(),\n }\n },\n\n computed: {\n /* eslint-disable valid-jsdoc */\n /**\n * Normalized nodes that have been selected.\n * @type {node[]}\n */\n selectedNodes() {\n return this.forest.selectedNodeIds.map(this.getNode)\n },\n /**\n * Id list of selected nodes with `sortValueBy` prop applied.\n * @type {nodeId[]}\n */\n internalValue() {\n let internalValue\n\n // istanbul ignore else\n const valueConsistsOf = this.showAsGroup ? LEAF_PRIORITY : this.valueConsistsOf\n if (this.single || this.flat || this.disableBranchNodes || valueConsistsOf === ALL) {\n internalValue = this.forest.selectedNodeIds.slice()\n } else if (valueConsistsOf === BRANCH_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isRootNode) return true\n return !this.isSelected(node.parentNode)\n })\n } else if (valueConsistsOf === LEAF_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isLeaf) return true\n return node.children.length === 0\n })\n } else if (valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const indeterminateNodeIds = []\n internalValue = this.forest.selectedNodeIds.slice()\n this.selectedNodes.forEach(selectedNode => {\n selectedNode.ancestors.forEach(ancestor => {\n if (includes(indeterminateNodeIds, ancestor.id)) return\n if (includes(internalValue, ancestor.id)) return\n indeterminateNodeIds.push(ancestor.id)\n })\n })\n internalValue.push(...indeterminateNodeIds)\n }\n\n if (this.sortValueBy === LEVEL) {\n internalValue.sort((a, b) => sortValueByLevel(this.getNode(a), this.getNode(b)))\n } else if (this.sortValueBy === INDEX) {\n internalValue.sort((a, b) => sortValueByIndex(this.getNode(a), this.getNode(b)))\n }\n\n return internalValue\n },\n /**\n * Has any option been selected?\n * @type {boolean}\n */\n hasValue() {\n return this.internalValue.length > 0\n },\n /**\n * Single-select mode?\n * @type {boolean}\n */\n single() {\n return !this.multiple\n },\n /**\n * Id list of nodes displayed in the menu. Nodes that are considered NOT visible:\n * - descendants of a collapsed branch node\n * - in local search mode, nodes that are not matched, unless\n * - it's a branch node and has matched descendants\n * - it's a leaf node and its parent node is explicitly set to show all children\n * @type {id[]}\n */\n visibleOptionIds() {\n const visibleOptionIds = []\n\n this.traverseAllNodesByIndex(node => {\n if (!this.localSearch.active || this.shouldOptionBeIncludedInSearchResult(node)) {\n visibleOptionIds.push(node.id)\n }\n // Skip the traversal of descendants of a branch node if it's not expanded.\n if (node.isBranch && !this.shouldExpand(node)) {\n return false\n }\n })\n\n return visibleOptionIds\n },\n /**\n * Has any option should be displayed in the menu?\n * @type {boolean}\n */\n hasVisibleOptions() {\n return this.visibleOptionIds.length !== 0\n },\n /**\n * Should show children count when searching?\n * @type {boolean}\n */\n showCountOnSearchComputed() {\n // Vue doesn't allow setting default prop value based on another prop value.\n // So use computed property as a workaround.\n // https://github.com/vuejs/vue/issues/6358\n return typeof this.showCountOnSearch === 'boolean'\n ? this.showCountOnSearch\n : this.showCount\n },\n /**\n * Is there any branch node?\n * @type {boolean}\n */\n hasBranchNodes() {\n return this.forest.normalizedOptions.some(rootNode => rootNode.isBranch)\n },\n shouldFlattenOptions() {\n return this.localSearch.active && this.flattenSearchResults\n },\n /* eslint-enable valid-jsdoc */\n },\n\n watch: {\n alwaysOpen(newValue) {\n if (newValue) this.openMenu()\n else this.closeMenu()\n },\n\n branchNodesFirst() {\n this.initialize()\n },\n\n disabled(newValue) {\n // force close the menu after disabling the control\n if (newValue && this.menu.isOpen) this.closeMenu()\n else if (!newValue && !this.menu.isOpen && this.alwaysOpen) this.openMenu()\n },\n\n flat() {\n this.initialize()\n },\n\n internalValue(newValue, oldValue) {\n const hasChanged = quickDiff(newValue, oldValue)\n // #122\n // Vue would trigger this watcher when `newValue` and `oldValue` are shallow-equal.\n // We emit the `input` event only when the value actually changes.\n if (hasChanged) this.$emit('input', this.getValue(), this.getInstanceId())\n },\n\n matchKeys() {\n this.initialize()\n },\n\n multiple(newValue) {\n // We need to rebuild the state when switching from single-select mode\n // to multi-select mode.\n // istanbul ignore else\n if (newValue) this.buildForestState()\n },\n\n options: {\n handler() {\n if (this.async) return\n // Re-initialize options when the `options` prop has changed.\n this.initialize()\n this.rootOptionsStates.isLoaded = Array.isArray(this.options)\n },\n deep: true,\n immediate: true,\n },\n\n 'trigger.searchQuery'() {\n if (this.async) {\n this.handleRemoteSearch()\n } else {\n this.handleLocalSearch()\n }\n\n this.$emit('search-change', this.trigger.searchQuery, this.getInstanceId())\n },\n\n value() {\n const nodeIdsFromValue = this.extractCheckedNodeIdsFromValue()\n const hasChanged = quickDiff(nodeIdsFromValue, this.internalValue)\n if (hasChanged) this.fixSelectedNodeIds(nodeIdsFromValue)\n },\n },\n\n methods: {\n verifyProps() {\n warning(\n () => this.async ? this.searchable : true,\n () => 'For async search mode, the value of \"searchable\" prop must be true.',\n )\n\n if (this.options == null && !this.loadOptions) {\n warning(\n () => false,\n () => 'Are you meant to dynamically load options? You need to use \"loadOptions\" prop.',\n )\n }\n\n if (this.flat) {\n warning(\n () => this.multiple,\n () => 'You are using flat mode. But you forgot to add \"multiple=true\"?',\n )\n }\n\n if (!this.flat) {\n const propNames = [\n 'autoSelectAncestors',\n 'autoSelectDescendants',\n 'autoDeselectAncestors',\n 'autoDeselectDescendants',\n ]\n\n propNames.forEach(propName => {\n warning(\n () => !this[propName],\n () => `\"${propName}\" only applies to flat mode.`,\n )\n })\n }\n },\n\n resetFlags() {\n this._blurOnSelect = false\n },\n\n initialize() {\n const options = this.async\n ? this.getRemoteSearchEntry().options\n : this.options\n\n if (Array.isArray(options)) {\n // In case we are re-initializing options, keep the old state tree temporarily.\n const prevNodeMap = this.forest.nodeMap\n this.forest.nodeMap = createMap()\n this.keepDataOfSelectedNodes(prevNodeMap)\n this.forest.normalizedOptions = this.normalize(NO_PARENT_NODE, options, prevNodeMap)\n // Cases that need fixing `selectedNodeIds`:\n // 1) Children options of a checked node have been delayed loaded,\n // we should also mark these children as checked. (multi-select mode)\n // 2) Root options have been delayed loaded, we need to initialize states\n // of these nodes. (multi-select mode)\n // 3) Async search mode.\n this.fixSelectedNodeIds(this.internalValue)\n } else {\n this.forest.normalizedOptions = []\n }\n },\n\n getInstanceId() {\n return this.instanceId == null ? this.id : this.instanceId\n },\n\n getValue() {\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.internalValue.slice()\n : this.internalValue[0]\n }\n\n const rawNodes = this.internalValue.map(id => this.getNode(id).raw)\n return this.multiple ? rawNodes : rawNodes[0]\n },\n\n getNode(nodeId) {\n warning(\n () => nodeId != null,\n () => `Invalid node id: ${nodeId}`,\n )\n\n if (nodeId == null) return null\n\n return nodeId in this.forest.nodeMap\n ? this.forest.nodeMap[nodeId]\n : this.createFallbackNode(nodeId)\n },\n\n createFallbackNode(id) {\n // In case there is a default selected node that is not loaded into the tree yet,\n // we create a fallback node to keep the component working.\n // When the real data is loaded, we'll override this fake node.\n\n const raw = this.extractNodeFromValue(id)\n const label = this.enhancedNormalizer(raw).label || `${id} (unknown)`\n const fallbackNode = {\n id,\n label,\n ancestors: [],\n parentNode: NO_PARENT_NODE,\n isFallbackNode: true,\n isRootNode: true,\n isLeaf: true,\n isBranch: false,\n isDisabled: false,\n isNew: false,\n index: [ -1 ],\n level: 0,\n raw,\n }\n\n return this.$set(this.forest.nodeMap, id, fallbackNode)\n },\n\n extractCheckedNodeIdsFromValue() {\n if (this.value == null) return []\n\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.value.slice()\n : [ this.value ]\n }\n\n return (this.multiple ? this.value : [ this.value ])\n .map(node => this.enhancedNormalizer(node))\n .map(node => node.id)\n },\n\n extractNodeFromValue(id) {\n const defaultNode = { id }\n\n if (this.valueFormat === 'id') {\n return defaultNode\n }\n\n const valueArray = this.multiple\n ? Array.isArray(this.value) ? this.value : []\n : this.value ? [ this.value ] : []\n const matched = find(\n valueArray,\n node => node && this.enhancedNormalizer(node).id === id,\n )\n\n return matched || defaultNode\n },\n\n fixSelectedNodeIds(nodeIdListOfPrevValue) {\n let nextSelectedNodeIds = []\n\n // istanbul ignore else\n if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === ALL) {\n nextSelectedNodeIds = nodeIdListOfPrevValue\n } else if (this.valueConsistsOf === BRANCH_PRIORITY) {\n nodeIdListOfPrevValue.forEach(nodeId => {\n nextSelectedNodeIds.push(nodeId)\n const node = this.getNode(nodeId)\n if (node.isBranch) this.traverseDescendantsBFS(node, descendant => {\n nextSelectedNodeIds.push(descendant.id)\n })\n })\n } else if (this.valueConsistsOf === LEAF_PRIORITY) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.slice()\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n } else if (this.valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.filter(nodeId => {\n const node = this.getNode(nodeId)\n return node.isLeaf || node.children.length === 0\n })\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n }\n\n const hasChanged = quickDiff(this.forest.selectedNodeIds, nextSelectedNodeIds)\n // If `nextSelectedNodeIds` doesn't actually differ from old `selectedNodeIds`,\n // we don't make the assignment to avoid triggering its watchers which may cause\n // unnecessary calculations.\n if (hasChanged) this.forest.selectedNodeIds = nextSelectedNodeIds\n\n this.buildForestState()\n },\n\n keepDataOfSelectedNodes(prevNodeMap) {\n // In case there is any selected node that is not present in the new `options` array.\n // It could be useful for async search mode.\n this.forest.selectedNodeIds.forEach(id => {\n if (!prevNodeMap[id]) return\n const node = {\n ...prevNodeMap[id],\n isFallbackNode: true,\n }\n this.$set(this.forest.nodeMap, id, node)\n })\n },\n\n isSelected(node) {\n // whether a node is selected (single-select mode) or fully-checked (multi-select mode)\n return this.forest.selectedNodeMap[node.id] === true\n },\n\n traverseDescendantsBFS(parentNode, callback) {\n // istanbul ignore if\n if (!parentNode.isBranch) return\n const queue = parentNode.children.slice()\n while (queue.length) {\n const currNode = queue[0]\n if (currNode.isBranch) queue.push(...currNode.children)\n callback(currNode)\n queue.shift()\n }\n },\n\n traverseDescendantsDFS(parentNode, callback) {\n if (!parentNode.isBranch) return\n parentNode.children.forEach(child => {\n // deep-level node first\n this.traverseDescendantsDFS(child, callback)\n callback(child)\n })\n },\n\n traverseAllNodesDFS(callback) {\n this.forest.normalizedOptions.forEach(rootNode => {\n // deep-level node first\n this.traverseDescendantsDFS(rootNode, callback)\n callback(rootNode)\n })\n },\n\n traverseAllNodesByIndex(callback) {\n const walk = parentNode => {\n parentNode.children.forEach(child => {\n if (callback(child) !== false && child.isBranch) {\n walk(child)\n }\n })\n }\n\n // To simplify the code logic of traversal,\n // we create a fake root node that holds all the root options.\n walk({ children: this.forest.normalizedOptions })\n },\n\n toggleClickOutsideEvent(enabled) {\n if (enabled) {\n document.addEventListener('mousedown', this.handleClickOutside, false)\n } else {\n document.removeEventListener('mousedown', this.handleClickOutside, false)\n }\n },\n\n getValueContainer() {\n if (!this.$refs || !this.$refs.control || !this.$refs.control.$refs) {\n return null\n }\n return this.$refs.control.$refs['value-container']\n },\n\n getInput() {\n return this.getValueContainer().$refs.input\n },\n\n focusInput() {\n this.getInput().focus()\n },\n\n blurInput() {\n this.getInput().blur()\n },\n\n handleMouseDown: onLeftClick(function handleMouseDown(evt) {\n evt.preventDefault()\n evt.stopPropagation()\n\n if (this.disabled || !this.getValueContainer()) return\n\n const isClickedOnValueContainer = this.getValueContainer().$el.contains(evt.target)\n if (isClickedOnValueContainer && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused)) {\n this.openMenu()\n }\n\n if (this._blurOnSelect) {\n this.blurInput()\n } else {\n // Focus the input or prevent blurring.\n this.focusInput()\n }\n\n this.resetFlags()\n }),\n\n handleClickOutside(evt) {\n // istanbul ignore else\n if (this.$refs.wrapper && !this.$refs.wrapper.contains(evt.target)) {\n this.blurInput()\n this.closeMenu()\n }\n },\n\n handleLocalSearch() {\n const { searchQuery } = this.trigger\n const done = () => this.resetHighlightedOptionWhenNecessary(true)\n\n if (!searchQuery) {\n // Exit sync search mode.\n this.localSearch.active = false\n return done()\n }\n\n // Enter sync search mode.\n this.localSearch.active = true\n\n // Reset states.\n this.localSearch.noResults = true\n this.traverseAllNodesDFS(node => {\n if (node.isBranch) {\n node.isExpandedOnSearch = false\n node.showAllChildrenOnSearch = false\n node.isMatched = false\n node.hasMatchedDescendants = false\n this.$set(this.localSearch.countMap, node.id, {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n }\n })\n\n const lowerCasedSearchQuery = searchQuery.trim().toLocaleLowerCase()\n const splitSearchQuery = lowerCasedSearchQuery.replace(/\\s+/g, ' ').split(' ')\n this.traverseAllNodesDFS(node => {\n if (this.searchNested && splitSearchQuery.length > 1) {\n node.isMatched = splitSearchQuery.every(filterValue =>\n match(false, filterValue, node.nestedSearchLabel),\n )\n } else {\n node.isMatched = this.matchKeys.some(matchKey =>\n match(!this.disableFuzzyMatching, lowerCasedSearchQuery, node.lowerCased[matchKey]),\n )\n }\n\n if (node.isMatched) {\n this.localSearch.noResults = false\n node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][ALL_DESCENDANTS]++)\n if (node.isLeaf) node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][LEAF_DESCENDANTS]++)\n if (node.parentNode !== NO_PARENT_NODE) {\n this.localSearch.countMap[node.parentNode.id][ALL_CHILDREN] += 1\n // istanbul ignore else\n if (node.isLeaf) this.localSearch.countMap[node.parentNode.id][LEAF_CHILDREN] += 1\n }\n }\n\n if (\n (node.isMatched || (node.isBranch && node.isExpandedOnSearch)) &&\n node.parentNode !== NO_PARENT_NODE\n ) {\n node.parentNode.isExpandedOnSearch = true\n node.parentNode.hasMatchedDescendants = true\n }\n })\n\n done()\n },\n\n handleRemoteSearch() {\n const { searchQuery } = this.trigger\n const entry = this.getRemoteSearchEntry()\n const done = () => {\n this.initialize()\n this.resetHighlightedOptionWhenNecessary(true)\n }\n\n if ((searchQuery === '' || this.cacheOptions) && entry.isLoaded) {\n return done()\n }\n\n this.callLoadOptionsProp({\n action: ASYNC_SEARCH,\n args: { searchQuery },\n isPending() {\n return entry.isLoading\n },\n start: () => {\n entry.isLoading = true\n entry.isLoaded = false\n entry.loadingError = ''\n },\n succeed: options => {\n entry.isLoaded = true\n entry.options = options\n // When the request completes, the search query may have changed.\n // We only show these options if they are for the current search query.\n if (this.trigger.searchQuery === searchQuery) done()\n },\n fail: err => {\n entry.loadingError = getErrorMessage(err)\n },\n end: () => {\n entry.isLoading = false\n },\n })\n },\n\n getRemoteSearchEntry() {\n const { searchQuery } = this.trigger\n const entry = this.remoteSearch[searchQuery] || {\n ...createAsyncOptionsStates(),\n options: [],\n }\n\n // Vue doesn't support directly watching on objects.\n this.$watch(\n () => entry.options,\n () => {\n // TODO: potential redundant re-initialization.\n if (this.trigger.searchQuery === searchQuery) this.initialize()\n },\n { deep: true },\n )\n\n if (searchQuery === '') {\n if (Array.isArray(this.defaultOptions)) {\n entry.options = this.defaultOptions\n entry.isLoaded = true\n return entry\n } else if (this.defaultOptions !== true) {\n entry.isLoaded = true\n return entry\n }\n }\n\n if (!this.remoteSearch[searchQuery]) {\n this.$set(this.remoteSearch, searchQuery, entry)\n }\n\n return entry\n },\n\n shouldExpand(node) {\n return this.localSearch.active ? node.isExpandedOnSearch : node.isExpanded\n },\n\n shouldOptionBeIncludedInSearchResult(node) {\n // 1) This option is matched.\n if (node.isMatched) return true\n // 2) This option is not matched, but has matched descendant(s).\n if (node.isBranch && node.hasMatchedDescendants && !this.flattenSearchResults) return true\n // 3) This option's parent has no matched descendants,\n // but after being expanded, all its children should be shown.\n if (!node.isRootNode && node.parentNode.showAllChildrenOnSearch) return true\n // 4) The default case.\n return false\n },\n\n shouldShowOptionInMenu(node) {\n if (this.localSearch.active && !this.shouldOptionBeIncludedInSearchResult(node)) {\n return false\n }\n return true\n },\n\n getControl() {\n return this.$refs.control.$el\n },\n\n getMenu() {\n const ref = this.appendToBody ? this.$refs.portal.portalTarget : this\n const $menu = ref.$refs.menu.$refs.menu\n return $menu && $menu.nodeName !== '#comment' ? $menu : null\n },\n\n setCurrentHighlightedOption(node, scroll = true) {\n const prev = this.menu.current\n if (prev != null && prev in this.forest.nodeMap) {\n this.forest.nodeMap[prev].isHighlighted = false\n }\n\n this.menu.current = node.id\n node.isHighlighted = true\n\n if (this.menu.isOpen && scroll) {\n const scrollToOption = () => {\n const nodeId = node.id.toString().replace(/\"/g, '\\\\\"')\n const $menu = this.getMenu()\n const $option = $menu.querySelector(`.vue-treeselect__option[data-id=\"${nodeId}\"]`)\n if ($option) scrollIntoView($menu, $option)\n }\n\n // In case `openMenu()` is just called and the menu is not rendered yet.\n if (this.getMenu()) {\n scrollToOption()\n } else {\n // istanbul ignore next\n this.$nextTick(scrollToOption)\n }\n }\n },\n\n resetHighlightedOptionWhenNecessary(forceReset = false) {\n const { current } = this.menu\n\n if (\n forceReset || current == null ||\n !(current in this.forest.nodeMap) ||\n !this.shouldShowOptionInMenu(this.getNode(current))\n ) {\n this.highlightFirstOption()\n }\n },\n\n highlightFirstOption() {\n if (!this.hasVisibleOptions) return\n\n const first = this.visibleOptionIds[0]\n this.setCurrentHighlightedOption(this.getNode(first))\n },\n\n highlightPrevOption() {\n if (!this.hasVisibleOptions) return\n\n const prev = this.visibleOptionIds.indexOf(this.menu.current) - 1\n if (prev === -1) return this.highlightLastOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[prev]))\n },\n\n highlightNextOption() {\n if (!this.hasVisibleOptions) return\n\n const next = this.visibleOptionIds.indexOf(this.menu.current) + 1\n if (next === this.visibleOptionIds.length) return this.highlightFirstOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[next]))\n },\n\n highlightLastOption() {\n if (!this.hasVisibleOptions) return\n\n const last = getLast(this.visibleOptionIds)\n this.setCurrentHighlightedOption(this.getNode(last))\n },\n\n resetSearchQuery() {\n this.trigger.searchQuery = ''\n },\n\n closeMenu() {\n if (!this.menu.isOpen || (!this.disabled && this.alwaysOpen)) return\n this.saveMenuScrollPosition()\n this.menu.isOpen = false\n this.toggleClickOutsideEvent(false)\n this.resetSearchQuery()\n this.$emit('close', this.getValue(), this.getInstanceId())\n },\n\n openMenu() {\n if (this.disabled || this.menu.isOpen) return\n this.menu.isOpen = true\n this.$nextTick(this.resetHighlightedOptionWhenNecessary)\n this.$nextTick(this.restoreMenuScrollPosition)\n if (!this.options && !this.async) this.loadRootOptions()\n this.toggleClickOutsideEvent(true)\n this.$emit('open', this.getInstanceId())\n },\n\n toggleMenu() {\n if (this.menu.isOpen) {\n this.closeMenu()\n } else {\n this.openMenu()\n }\n },\n\n toggleExpanded(node) {\n let nextState\n\n if (this.localSearch.active) {\n nextState = node.isExpandedOnSearch = !node.isExpandedOnSearch\n if (nextState) node.showAllChildrenOnSearch = true\n } else {\n nextState = node.isExpanded = !node.isExpanded\n }\n\n if (nextState && !node.childrenStates.isLoaded) {\n this.loadChildrenOptions(node)\n }\n },\n\n buildForestState() {\n const selectedNodeMap = createMap()\n this.forest.selectedNodeIds.forEach(selectedNodeId => {\n selectedNodeMap[selectedNodeId] = true\n })\n this.forest.selectedNodeMap = selectedNodeMap\n\n const checkedStateMap = createMap()\n if (this.multiple) {\n this.traverseAllNodesByIndex(node => {\n checkedStateMap[node.id] = UNCHECKED\n })\n\n this.selectedNodes.forEach(selectedNode => {\n checkedStateMap[selectedNode.id] = CHECKED\n\n if (!this.flat && !this.disableBranchNodes) {\n selectedNode.ancestors.forEach(ancestorNode => {\n if (!this.isSelected(ancestorNode)) {\n checkedStateMap[ancestorNode.id] = INDETERMINATE\n }\n })\n }\n })\n }\n this.forest.checkedStateMap = checkedStateMap\n },\n\n enhancedNormalizer(raw) {\n return {\n ...raw,\n ...this.normalizer(raw, this.getInstanceId()),\n }\n },\n\n normalize(parentNode, nodes, prevNodeMap) {\n let normalizedOptions = nodes\n .map(node => [ this.enhancedNormalizer(node), node ])\n .map(([ node, raw ], index) => {\n this.checkDuplication(node)\n this.verifyNodeShape(node)\n\n const id = node.id !== undefined ? node.id : Math.round(Math.random() * 1000000)\n const { label, children, isDefaultExpanded } = node\n const isRootNode = parentNode === NO_PARENT_NODE\n const level = isRootNode || this.showAsGroup ? 0 : parentNode.level + 1\n const isBranch = Array.isArray(children) || children === null\n const isLeaf = !isBranch\n const isDisabled = !!node.isDisabled || (!this.flat && !isRootNode && parentNode.isDisabled)\n const isNew = !!node.isNew\n const lowerCased = this.matchKeys.reduce((prev, key) => ({\n ...prev,\n [key]: stringifyOptionPropValue(node[key]).toLocaleLowerCase(),\n }), {})\n const nestedSearchLabel = isRootNode\n ? lowerCased.label\n : parentNode.nestedSearchLabel + ' ' + lowerCased.label\n\n const normalized = this.$set(this.forest.nodeMap, id, createMap())\n this.$set(normalized, 'id', id)\n this.$set(normalized, 'label', label)\n this.$set(normalized, 'level', level)\n this.$set(normalized, 'ancestors', isRootNode ? [] : [ parentNode ].concat(parentNode.ancestors))\n this.$set(normalized, 'index', (isRootNode ? [] : parentNode.index).concat(index))\n this.$set(normalized, 'parentNode', parentNode)\n this.$set(normalized, 'lowerCased', lowerCased)\n this.$set(normalized, 'nestedSearchLabel', nestedSearchLabel)\n this.$set(normalized, 'isDisabled', isDisabled)\n this.$set(normalized, 'isNew', isNew)\n this.$set(normalized, 'isMatched', false)\n this.$set(normalized, 'isHighlighted', false)\n this.$set(normalized, 'isBranch', isBranch)\n this.$set(normalized, 'isGroup', isBranch && this.showAsGroup)\n this.$set(normalized, 'isLeaf', isLeaf)\n this.$set(normalized, 'isRootNode', isRootNode)\n this.$set(normalized, 'raw', raw)\n\n if (isBranch) {\n const isLoaded = Array.isArray(children)\n\n this.$set(normalized, 'childrenStates', {\n ...createAsyncOptionsStates(),\n isLoaded,\n })\n this.$set(normalized, 'isExpanded', this.showAsGroup ? this.showAsGroup : typeof isDefaultExpanded === 'boolean'\n ? isDefaultExpanded\n : level < this.defaultExpandLevel)\n this.$set(normalized, 'hasMatchedDescendants', false)\n this.$set(normalized, 'hasDisabledDescendants', false)\n this.$set(normalized, 'isExpandedOnSearch', false)\n this.$set(normalized, 'showAllChildrenOnSearch', false)\n this.$set(normalized, 'count', {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n this.$set(normalized, 'children', isLoaded\n ? this.normalize(normalized, children, prevNodeMap)\n : [])\n\n if (isDefaultExpanded === true) normalized.ancestors.forEach(ancestor => {\n ancestor.isExpanded = true\n })\n\n if (!isLoaded && typeof this.loadOptions !== 'function') {\n warning(\n () => false,\n () => 'Unloaded branch node detected. \"loadOptions\" prop is required to load its children.',\n )\n } else if (!isLoaded && normalized.isExpanded) {\n this.loadChildrenOptions(normalized)\n }\n }\n\n normalized.ancestors.forEach(ancestor => ancestor.count[ALL_DESCENDANTS]++)\n if (isLeaf) normalized.ancestors.forEach(ancestor => ancestor.count[LEAF_DESCENDANTS]++)\n if (!isRootNode) {\n parentNode.count[ALL_CHILDREN] += 1\n if (isLeaf) parentNode.count[LEAF_CHILDREN] += 1\n if (isDisabled) parentNode.hasDisabledDescendants = true\n }\n\n // Preserve previous states.\n if (prevNodeMap && prevNodeMap[id]) {\n const prev = prevNodeMap[id]\n\n normalized.isMatched = prev.isMatched\n normalized.showAllChildrenOnSearch = prev.showAllChildrenOnSearch\n normalized.isHighlighted = prev.isHighlighted\n\n if (prev.isBranch && normalized.isBranch) {\n normalized.isExpanded = prev.isExpanded\n normalized.isExpandedOnSearch = prev.isExpandedOnSearch\n // #97\n // If `isLoaded` was true, but IS NOT now, we consider this branch node\n // to be reset to unloaded state by the user of this component.\n if (prev.childrenStates.isLoaded && !normalized.childrenStates.isLoaded) {\n // Make sure the node is collapsed, then the user can load its\n // children again (by expanding).\n normalized.isExpanded = false\n // We have reset `childrenStates` and don't want to preserve states here.\n } else {\n normalized.childrenStates = { ...prev.childrenStates }\n }\n }\n }\n\n return normalized\n })\n\n if (this.branchNodesFirst) {\n const branchNodes = normalizedOptions.filter(option => option.isBranch)\n const leafNodes = normalizedOptions.filter(option => option.isLeaf)\n normalizedOptions = branchNodes.concat(leafNodes)\n }\n\n return normalizedOptions\n },\n\n loadRootOptions() {\n this.callLoadOptionsProp({\n action: LOAD_ROOT_OPTIONS,\n isPending: () => {\n return this.rootOptionsStates.isLoading\n },\n start: () => {\n this.rootOptionsStates.isLoading = true\n this.rootOptionsStates.loadingError = ''\n },\n succeed: () => {\n this.rootOptionsStates.isLoaded = true\n // Wait for `options` being re-initialized.\n this.$nextTick(() => {\n this.resetHighlightedOptionWhenNecessary(true)\n })\n },\n fail: err => {\n this.rootOptionsStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.rootOptionsStates.isLoading = false\n },\n })\n },\n\n loadChildrenOptions(parentNode) {\n // The options may be re-initialized anytime during the loading process.\n // So `parentNode` can be stale and we use `getNode()` to avoid that.\n\n const { id, raw } = parentNode\n\n this.callLoadOptionsProp({\n action: LOAD_CHILDREN_OPTIONS,\n args: {\n // We always pass the raw node instead of the normalized node to any\n // callback provided by the user of this component.\n // Because the shape of the raw node is more likely to be closing to\n // what the back-end API service of the application needs.\n parentNode: raw,\n },\n isPending: () => {\n return this.getNode(id).childrenStates.isLoading\n },\n start: () => {\n this.getNode(id).childrenStates.isLoading = true\n this.getNode(id).childrenStates.loadingError = ''\n },\n succeed: () => {\n this.getNode(id).childrenStates.isLoaded = true\n },\n fail: err => {\n this.getNode(id).childrenStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.getNode(id).childrenStates.isLoading = false\n },\n })\n },\n\n callLoadOptionsProp({ action, args, isPending, start, succeed, fail, end }) {\n if (!this.loadOptions || isPending()) {\n return\n }\n\n start()\n\n const callback = once((err, result) => {\n if (err) {\n fail(err)\n } else {\n succeed(result)\n }\n\n end()\n })\n const result = this.loadOptions({\n id: this.getInstanceId(),\n instanceId: this.getInstanceId(),\n action,\n ...args,\n callback,\n })\n\n if (isPromise(result)) {\n result.then(() => {\n callback()\n }, err => {\n callback(err)\n }).catch(err => {\n // istanbul ignore next\n console.error(err)\n })\n }\n },\n\n checkDuplication(node) {\n warning(\n () => !((node.id in this.forest.nodeMap) && !this.forest.nodeMap[node.id].isFallbackNode),\n () => `Detected duplicate presence of node id ${JSON.stringify(node.id)}. ` +\n `Their labels are \"${this.forest.nodeMap[node.id].label}\" and \"${node.label}\" respectively.`,\n )\n },\n\n verifyNodeShape(node) {\n warning(\n () => !(node.children === undefined && node.isBranch === true),\n () => 'Are you meant to declare an unloaded branch node? ' +\n '`isBranch: true` is no longer supported, please use `children: null` instead.',\n )\n },\n\n select(node) {\n if (this.disabled || node.isDisabled) {\n return\n }\n\n if (this.single) {\n this.clear()\n }\n\n const nextState = this.multiple && !this.flat\n ? this.forest.checkedStateMap[node.id] === UNCHECKED\n : !this.isSelected(node)\n\n if (nextState) {\n this._selectNode(node)\n } else {\n this._deselectNode(node)\n }\n\n this.buildForestState()\n\n if (nextState) {\n this.$emit('select', node.raw, this.getInstanceId())\n } else {\n this.$emit('deselect', node.raw, this.getInstanceId())\n }\n\n if (this.localSearch.active && nextState && (this.single || this.clearOnSelect)) {\n this.resetSearchQuery()\n }\n\n if (this.single && this.closeOnSelect) {\n this.closeMenu()\n\n // istanbul ignore else\n if (this.searchable) {\n this._blurOnSelect = true\n }\n }\n },\n\n clear() {\n if (this.hasValue) {\n if (this.single || this.allowClearingDisabled) {\n this.forest.selectedNodeIds = []\n } else /* if (this.multiple && !this.allowClearingDisabled) */ {\n this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter(nodeId =>\n this.getNode(nodeId).isDisabled,\n )\n }\n\n this.buildForestState()\n }\n },\n\n // This is meant to be called only by `select()`.\n _selectNode(node) {\n if (this.single || this.disableBranchNodes) {\n return this.addValue(node)\n }\n\n if (this.flat) {\n this.addValue(node)\n\n if (this.autoSelectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (!this.isSelected(ancestor) && !ancestor.isDisabled) this.addValue(ancestor)\n })\n } else if (this.autoSelectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!this.isSelected(descendant) && !descendant.isDisabled) this.addValue(descendant)\n })\n }\n\n return\n }\n\n const isFullyChecked = (\n node.isLeaf ||\n (/* node.isBranch && */!node.hasDisabledDescendants) ||\n (/* node.isBranch && */this.allowSelectingDisabledDescendants)\n )\n if (isFullyChecked) {\n this.addValue(node)\n }\n\n if (node.isBranch) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.addValue(descendant)\n }\n })\n }\n\n if (isFullyChecked) {\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (curr.children.every(this.isSelected)) this.addValue(curr)\n else break\n }\n }\n },\n\n // This is meant to be called only by `select()`.\n _deselectNode(node) {\n if (this.disableBranchNodes) {\n return this.removeValue(node)\n }\n\n if (this.flat) {\n this.removeValue(node)\n\n if (this.autoDeselectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (this.isSelected(ancestor) && !ancestor.isDisabled) this.removeValue(ancestor)\n })\n } else if (this.autoDeselectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (this.isSelected(descendant) && !descendant.isDisabled) this.removeValue(descendant)\n })\n }\n\n return\n }\n\n let hasUncheckedSomeDescendants = false\n if (node.isBranch) {\n this.traverseDescendantsDFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.removeValue(descendant)\n hasUncheckedSomeDescendants = true\n }\n })\n }\n\n if (\n node.isLeaf ||\n /* node.isBranch && */hasUncheckedSomeDescendants ||\n /* node.isBranch && */node.children.length === 0\n ) {\n this.removeValue(node)\n\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (this.isSelected(curr)) this.removeValue(curr)\n else break\n }\n }\n },\n\n addValue(node) {\n this.forest.selectedNodeIds.push(node.id)\n this.forest.selectedNodeMap[node.id] = true\n },\n\n removeValue(node) {\n removeFromArray(this.forest.selectedNodeIds, node.id)\n delete this.forest.selectedNodeMap[node.id]\n },\n\n removeLastValue() {\n if (!this.hasValue) return\n if (this.single) return this.clear()\n const lastValue = getLast(this.internalValue)\n const lastSelectedNode = this.getNode(lastValue)\n this.select(lastSelectedNode) // deselect\n },\n\n saveMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) this.menu.lastScrollPosition = $menu.scrollTop\n },\n\n restoreMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) $menu.scrollTop = this.menu.lastScrollPosition\n },\n },\n\n created() {\n this.verifyProps()\n this.resetFlags()\n },\n\n mounted() {\n if (this.autoFocus) this.focusInput()\n if (!this.options && !this.async && this.autoLoadRootOptions) this.loadRootOptions()\n if (this.alwaysOpen) this.openMenu()\n if (this.async && this.defaultOptions) this.handleRemoteSearch()\n },\n\n destroyed() {\n // istanbul ignore next\n this.toggleClickOutsideEvent(false)\n },\n}\n","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HiddenFields.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HiddenFields.vue?vue&type=script&lang=js\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render, staticRenderFns\nimport script from \"./HiddenFields.vue?vue&type=script&lang=js\"\nexport * from \"./HiddenFields.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4d48089a')) {\n api.createRecord('4d48089a', component.options)\n } else {\n api.reload('4d48089a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/HiddenFields.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Input.vue?vue&type=script&lang=js\"\nexport * from \"./Input.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('54844eca')) {\n api.createRecord('54844eca', component.options)\n } else {\n api.reload('54844eca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Input.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Placeholder.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Placeholder.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Placeholder.vue?vue&type=script&lang=js\"\nexport * from \"./Placeholder.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('5a99d1f3')) {\n api.createRecord('5a99d1f3', component.options)\n } else {\n api.reload('5a99d1f3', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Placeholder.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleValue.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleValue.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./SingleValue.vue?vue&type=script&lang=js\"\nexport * from \"./SingleValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('03d19b89')) {\n api.createRecord('03d19b89', component.options)\n } else {\n api.reload('03d19b89', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/SingleValue.vue\"\nexport default component.exports","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 348.333 348.333\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delete.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delete.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Delete.vue?vue&type=template&id=364b6320\"\nimport script from \"./Delete.vue?vue&type=script&lang=js\"\nexport * from \"./Delete.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('364b6320')) {\n api.createRecord('364b6320', component.options)\n } else {\n api.reload('364b6320', component.options)\n }\n module.hot.accept(\"./Delete.vue?vue&type=template&id=364b6320\", function () {\n api.rerender('364b6320', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Delete.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValueItem.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValueItem.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MultiValueItem.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValueItem.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('6dd6c8ca')) {\n api.createRecord('6dd6c8ca', component.options)\n } else {\n api.reload('6dd6c8ca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValueItem.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValue.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValue.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MultiValue.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('14fca5e8')) {\n api.createRecord('14fca5e8', component.options)\n } else {\n api.reload('14fca5e8', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValue.vue\"\nexport default component.exports","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 292.362 292.362\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Arrow.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Arrow.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Arrow.vue?vue&type=template&id=11186cd4\"\nimport script from \"./Arrow.vue?vue&type=script&lang=js\"\nexport * from \"./Arrow.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('11186cd4')) {\n api.createRecord('11186cd4', component.options)\n } else {\n api.reload('11186cd4', component.options)\n }\n module.hot.accept(\"./Arrow.vue?vue&type=template&id=11186cd4\", function () {\n api.rerender('11186cd4', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Arrow.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Control.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Control.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Control.vue?vue&type=script&lang=js\"\nexport * from \"./Control.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('2fa0a0dd')) {\n api.createRecord('2fa0a0dd', component.options)\n } else {\n api.reload('2fa0a0dd', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Control.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tip.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tip.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Tip.vue?vue&type=script&lang=js\"\nexport * from \"./Tip.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9f31bdca')) {\n api.createRecord('9f31bdca', component.options)\n } else {\n api.reload('9f31bdca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Tip.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Option.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Option.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Option.vue?vue&type=script&lang=js\"\nexport * from \"./Option.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('3dddec25')) {\n api.createRecord('3dddec25', component.options)\n } else {\n api.reload('3dddec25', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Option.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Menu.vue?vue&type=script&lang=js\"\nexport * from \"./Menu.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9bcc0be2')) {\n api.createRecord('9bcc0be2', component.options)\n } else {\n api.reload('9bcc0be2', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Menu.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuPortal.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuPortal.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MenuPortal.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPortal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4802d94a')) {\n api.createRecord('4802d94a', component.options)\n } else {\n api.reload('4802d94a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MenuPortal.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Treeselect.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Treeselect.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Treeselect.vue?vue&type=script&lang=js\"\nexport * from \"./Treeselect.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('aebf116c')) {\n api.createRecord('aebf116c', component.options)\n } else {\n api.reload('aebf116c', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Treeselect.vue\"\nexport default component.exports","import Treeselect from './components/Treeselect'\nimport treeselectMixin from './mixins/treeselectMixin'\nimport './style.less'\n\nexport default Treeselect\nexport { Treeselect, treeselectMixin }\nexport {\n // Delayed loading.\n LOAD_ROOT_OPTIONS,\n LOAD_CHILDREN_OPTIONS,\n ASYNC_SEARCH,\n} from './constants'\n\nexport const VERSION = PKG_VERSION\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://VueTreeselect/webpack/bootstrap","webpack://VueTreeselect/external \"@babel/runtime/helpers/slicedToArray\"","webpack://VueTreeselect/external \"@babel/runtime/helpers/toConsumableArray\"","webpack://VueTreeselect/external \"@babel/runtime/helpers/defineProperty\"","webpack://VueTreeselect/external \"fuzzysearch\"","webpack://VueTreeselect/external \"lodash/noop\"","webpack://VueTreeselect/external \"lodash/debounce\"","webpack://VueTreeselect/external \"watch-size\"","webpack://VueTreeselect/external \"is-promise\"","webpack://VueTreeselect/external \"lodash/once\"","webpack://VueTreeselect/external \"lodash/identity\"","webpack://VueTreeselect/external \"lodash/constant\"","webpack://VueTreeselect/external \"@babel/runtime/helpers/typeof\"","webpack://VueTreeselect/external \"lodash/last\"","webpack://VueTreeselect/external \"babel-helper-vue-jsx-merge-props\"","webpack://VueTreeselect/external \"vue\"","webpack://VueTreeselect/./src/style.less?1f4a","webpack://VueTreeselect/./src/utils/warning.js","webpack://VueTreeselect/./src/utils/onLeftClick.js","webpack://VueTreeselect/./src/utils/scrollIntoView.js","webpack://VueTreeselect/./src/utils/removeFromArray.js","webpack://VueTreeselect/./src/utils/watchSize.js","webpack://VueTreeselect/./src/utils/setupResizeAndScrollEventListeners.js","webpack://VueTreeselect/./src/utils/isNaN.js","webpack://VueTreeselect/./src/utils/createMap.js","webpack://VueTreeselect/./src/utils/deepExtend.js","webpack://VueTreeselect/./src/utils/includes.js","webpack://VueTreeselect/./src/utils/find.js","webpack://VueTreeselect/./src/utils/quickDiff.js","webpack://VueTreeselect/./src/utils/index.js","webpack://VueTreeselect/./src/constants.js","webpack://VueTreeselect/./src/mixins/treeselectMixin.js","webpack://VueTreeselect/src/components/HiddenFields.vue","webpack://VueTreeselect/./src/components/HiddenFields.vue?2cdc","webpack://VueTreeselect/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VueTreeselect/./src/components/HiddenFields.vue","webpack://VueTreeselect/src/components/Input.vue","webpack://VueTreeselect/./src/components/Input.vue?3957","webpack://VueTreeselect/./src/components/Input.vue","webpack://VueTreeselect/src/components/Placeholder.vue","webpack://VueTreeselect/./src/components/Placeholder.vue?7a2d","webpack://VueTreeselect/./src/components/Placeholder.vue","webpack://VueTreeselect/src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/SingleValue.vue?304b","webpack://VueTreeselect/./src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?9af8","webpack://VueTreeselect/src/components/icons/Delete.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?706a","webpack://VueTreeselect/./src/components/icons/Delete.vue","webpack://VueTreeselect/src/components/MultiValueItem.vue","webpack://VueTreeselect/./src/components/MultiValueItem.vue?6db0","webpack://VueTreeselect/./src/components/MultiValueItem.vue","webpack://VueTreeselect/src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/MultiValue.vue?998f","webpack://VueTreeselect/./src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?a3ef","webpack://VueTreeselect/src/components/icons/Arrow.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?c39d","webpack://VueTreeselect/./src/components/icons/Arrow.vue","webpack://VueTreeselect/src/components/Control.vue","webpack://VueTreeselect/./src/components/Control.vue?2f53","webpack://VueTreeselect/./src/components/Control.vue","webpack://VueTreeselect/src/components/Tip.vue","webpack://VueTreeselect/./src/components/Tip.vue?f94f","webpack://VueTreeselect/./src/components/Tip.vue","webpack://VueTreeselect/src/components/Option.vue","webpack://VueTreeselect/./src/components/Option.vue?f5e1","webpack://VueTreeselect/./src/components/Option.vue","webpack://VueTreeselect/src/components/Menu.vue","webpack://VueTreeselect/./src/components/Menu.vue?0ced","webpack://VueTreeselect/./src/components/Menu.vue","webpack://VueTreeselect/src/components/MenuPortal.vue","webpack://VueTreeselect/./src/components/MenuPortal.vue?9760","webpack://VueTreeselect/./src/components/MenuPortal.vue","webpack://VueTreeselect/src/components/Treeselect.vue","webpack://VueTreeselect/./src/components/Treeselect.vue?71f6","webpack://VueTreeselect/./src/components/Treeselect.vue","webpack://VueTreeselect/./src/index.js"],"names":["warning","process","env","NODE_ENV","noop","checker","complainer","_console","message","concat","console","error","apply","_toConsumableArray","onLeftClick","mouseDownHandler","onMouseDown","evt","type","button","_len","arguments","length","args","Array","_key","call","scrollIntoView","$scrollingEl","$focusedEl","scrollingReact","getBoundingClientRect","focusedRect","overScroll","offsetHeight","bottom","scrollTop","Math","min","offsetTop","clientHeight","scrollHeight","top","max","removeFromArray","arr","elem","idx","indexOf","splice","intervalId","registered","INTERVAL_DURATION","run","setInterval","forEach","test","stop","clearInterval","item","$el","listener","lastWidth","lastHeight","width","offsetWidth","height","watchSizeForIE9","unwatch","push","watchSize","isIE9","document","documentMode","locked","wrappedListener","implementation","watchSizeForBrowsersOtherThanIE9","removeSizeWatcher","findScrollParents","$scrollParents","$parent","parentNode","nodeName","nodeType","ELEMENT_NODE","isScrollElment","window","_getComputedStyle","getComputedStyle","overflow","overflowX","overflowY","setupResizeAndScrollEventListeners","addEventListener","passive","scrollParent","removeEventListeners","removeEventListener","$scrollParent","isNaN","x","createMap","Object","create","isPlainObject","value","_typeof","getPrototypeOf","prototype","copy","obj","key","deepExtend","target","source","keys","i","len","includes","arrOrStr","find","predicate","ctx","undefined","quickDiff","arrA","arrB","NO_PARENT_NODE","UNCHECKED","INDETERMINATE","CHECKED","ALL_CHILDREN","ALL_DESCENDANTS","LEAF_CHILDREN","LEAF_DESCENDANTS","LOAD_ROOT_OPTIONS","LOAD_CHILDREN_OPTIONS","ASYNC_SEARCH","ALL","BRANCH_PRIORITY","LEAF_PRIORITY","ALL_WITH_INDETERMINATE","ORDER_SELECTED","LEVEL","INDEX","KEY_CODES","BACKSPACE","ENTER","ESCAPE","END","HOME","ARROW_LEFT","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","DELETE","INPUT_DEBOUNCE_DELAY","MIN_INPUT_WIDTH","MENU_BUFFER","sortValueByIndex","a","b","level","index","sortValueByLevel","createAsyncOptionsStates","isLoaded","isLoading","loadingError","stringifyOptionPropValue","match","enableFuzzyMatch","needle","haystack","fuzzysearch","getErrorMessage","err","String","instanceId","provide","instance","props","allowClearingDisabled","Boolean","default","allowSelectingDisabledDescendants","alwaysOpen","appendToBody","async","autoFocus","autoLoadRootOptions","autoDeselectAncestors","autoDeselectDescendants","autoSelectAncestors","autoSelectDescendants","backspaceRemoves","beforeClearAll","Function","constant","branchNodesFirst","cacheOptions","clearable","clearAllText","clearOnSelect","clearValueText","closeOnSelect","defaultExpandLevel","Number","defaultOptions","deleteRemoves","delimiter","flattenSearchResults","disableBranchNodes","disabled","disableFuzzyMatching","flat","_default","joinValues","limit","Infinity","limitText","limitTextDefault","count","loadingText","loadOptions","matchKeys","maxHeight","multiple","name","noChildrenText","noOptionsText","noResultsText","normalizer","identity","openDirection","validator","acceptableValues","openOnClick","openOnFocus","options","placeholder","required","retryText","retryTitle","searchable","searchNested","searchPromptText","showAsGroup","showCount","showCountOf","showCountOnSearch","sortValueBy","tabIndex","valueConsistsOf","valueFormat","zIndex","data","trigger","isFocused","searchQuery","menu","isOpen","current","lastScrollPosition","placement","forest","normalizedOptions","nodeMap","checkedStateMap","selectedNodeIds","extractCheckedNodeIdsFromValue","selectedNodeMap","rootOptionsStates","localSearch","active","noResults","countMap","remoteSearch","computed","selectedNodes","map","getNode","internalValue","_this","single","slice","filter","id","node","isRootNode","isSelected","isLeaf","children","_internalValue","indeterminateNodeIds","selectedNode","ancestors","ancestor","sort","hasValue","visibleOptionIds","_this2","traverseAllNodesByIndex","shouldOptionBeIncludedInSearchResult","isBranch","shouldExpand","hasVisibleOptions","showCountOnSearchComputed","hasBranchNodes","some","rootNode","shouldFlattenOptions","watch","newValue","openMenu","closeMenu","initialize","oldValue","hasChanged","$emit","getValue","getInstanceId","buildForestState","handler","isArray","deep","immediate","triggerSearchQuery","handleRemoteSearch","handleLocalSearch","nodeIdsFromValue","fixSelectedNodeIds","methods","verifyProps","_this3","propNames","propName","resetFlags","_blurOnSelect","getRemoteSearchEntry","prevNodeMap","keepDataOfSelectedNodes","normalize","_this4","rawNodes","raw","nodeId","createFallbackNode","extractNodeFromValue","label","enhancedNormalizer","fallbackNode","isFallbackNode","isDisabled","isNew","$set","_this5","_this6","defaultNode","valueArray","matched","nodeIdListOfPrevValue","_this7","nextSelectedNodeIds","traverseDescendantsBFS","descendant","queue","shift","_this8","_objectSpread","callback","currNode","traverseDescendantsDFS","_this9","child","traverseAllNodesDFS","_this10","walk","toggleClickOutsideEvent","enabled","handleClickOutside","getValueContainer","$refs","control","getInput","input","focusInput","focus","blurInput","blur","handleMouseDown","preventDefault","stopPropagation","isClickedOnValueContainer","contains","wrapper","_this11","done","resetHighlightedOptionWhenNecessary","isExpandedOnSearch","showAllChildrenOnSearch","isMatched","hasMatchedDescendants","_defineProperty","lowerCasedSearchQuery","trim","toLocaleLowerCase","splitSearchQuery","replace","split","every","filterValue","nestedSearchLabel","matchKey","lowerCased","_this12","entry","callLoadOptionsProp","action","isPending","start","succeed","fail","end","_this13","$watch","isExpanded","shouldShowOptionInMenu","getControl","getMenu","ref","portal","portalTarget","$menu","setCurrentHighlightedOption","_this14","scroll","prev","isHighlighted","scrollToOption","toString","$option","querySelector","$nextTick","forceReset","highlightFirstOption","first","highlightPrevOption","highlightLastOption","highlightNextOption","next","last","getLast","resetSearchQuery","saveMenuScrollPosition","restoreMenuScrollPosition","loadRootOptions","toggleMenu","toggleExpanded","nextState","childrenStates","loadChildrenOptions","_this15","selectedNodeId","ancestorNode","nodes","_this16","_ref","_ref2","_slicedToArray","checkDuplication","verifyNodeShape","round","random","isDefaultExpanded","reduce","normalized","hasDisabledDescendants","branchNodes","option","leafNodes","_this17","_this18","_ref3","once","result","isPromise","then","catch","_this19","JSON","stringify","select","clear","_selectNode","_deselectNode","_this20","_this21","addValue","isFullyChecked","curr","_this22","removeValue","hasUncheckedSomeDescendants","removeLastValue","lastValue","lastSelectedNode","created","mounted","destroyed","stringifyValue","inject","functional","render","_","context","h","injections","stringifiedValues","join","stringifiedValue","attrs","domProps","keysThatRequireMenuBeingOpen","inputWidth","needAutoSize","inputStyle","instanceTriggerSearchQuery","updateInputWidth","debouncedCallback","debounce","updateSearchQuery","leading","trailing","onInput","onFocus","onBlur","activeElement","cancel","onKeyDown","which","keyCode","ctrlKey","shiftKey","altKey","metaKey","renderInputContainer","$createElement","renderInput","renderSizer","on","keydown","_mergeJSXProps","autocomplete","style","sizer","scrollWidth","placeholderClass","renderSingleValueLabel","customValueLabelRenderer","$scopedSlots","renderValueContainer","shouldShowValue","Placeholder","Input","itemClass","labelRenderer","DeleteIcon","renderMultiValueItems","MultiValueItem","renderExceedLimitTip","transitionGroupProps","tag","appear","shouldShowX","hasUndisabledValue","shouldShowArrow","renderX","title","handleMouseDownOnX","renderArrow","arrowClass","handleMouseDownOnArrow","ArrowIcon","shouldClear","setTimeout","ValueContainer","SingleValue","MultiValue","icon","arrowPlaceholder","checkMark","minusMark","Option","isGroup","shouldShow","renderOption","optionClass","handleMouseEnterOption","renderLabelContainer","renderCheckboxContainer","renderCheckbox","renderLabel","renderSubOptionsList","renderSubOptions","renderNoChildrenTip","renderLoadingChildrenTip","renderLoadingChildrenErrorTip","transitionProps","handleMouseDownOnLabelContainer","checkedState","checkboxClass","shouldShowCount","NaN","labelClassName","countClassName","customLabelRenderer","childNode","Tip","handleMouseDownOnRetry","currentTarget","handleMouseDownOnOptionArrow","indentLevel","listItemClass","directionMap","above","below","menuStyle","menuContainerStyle","instanceMenuIsOpen","onMenuOpen","onMenuClose","menuSizeWatcher","menuResizeAndScrollEventListeners","renderMenu","renderBeforeList","renderAsyncSearchMenuInner","renderLocalSearchMenuInner","renderNormalMenuInner","renderAfterList","beforeListRenderer","afterListRenderer","renderLoadingOptionsTip","renderLoadingRootOptionsErrorTip","renderNoAvailableOptionsTip","renderOptionList","renderNoResultsTip","shouldShowSearchPromptTip","shouldShowNoResultsTip","renderSearchPromptTip","renderAsyncSearchLoadingErrorTip","adjustMenuOpenDirection","setupMenuSizeWatcher","setupMenuResizeAndScrollEventListeners","removeMenuSizeWatcher","removeMenuResizeAndScrollEventListeners","$control","menuRect","controlRect","menuHeight","viewportHeight","innerHeight","spaceAbove","spaceBelow","isControlInViewport","hasEnoughSpaceBelow","hasEnoughSpaceAbove","remove","PortalTarget","setupHandlers","removeHandlers","instanceMenuPlacement","updateMenuContainerOffset","controlResizeAndScrollEventListeners","controlSizeWatcher","updateWidth","setupControlResizeAndScrollEventListeners","setupControlSizeWatcher","removeControlResizeAndScrollEventListeners","removeControlSizeWatcher","$portalTarget","portalTargetRect","offsetY","left","transformVariations","transform","t","body","portalTargetClass","wrapperClass","portalTargetStyle","Menu","setup","teardown","el","createElement","appendChild","Vue","parent","removeChild","innerHTML","$destroy","mixins","treeselectMixin","HiddenFields","Control","MenuPortal","Treeselect","VERSION","PKG_VERSION"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,iE;;;;;;ACAA,qE;;;;;;ACAA,kE;;;;;;ACAA,wC;;;;;;ACAA,wC;;;;;;ACAA,4C;;;;;;ACAA,uC;;;;;;ACAA,uC;;;;;;ACAA,wC;;;;;;ACAA,4C;;;;;;ACAA,4C;;;;;;ACAA,0D;;;;;;ACAA,wC;;;;;;ACAA,6D;;;;;;ACAA,gC;;;;;;ACAA,uC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACA6B;AAEtB,IAAMA,eAAO,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAC7BC,cAAI,GAC/B,SAASJ,OAAOA,CAACK,OAAO,EAAEC,UAAU,EAAE;EACtC,IAAI,CAACD,OAAO,CAAC,CAAC,EAAE;IAAA,IAAAE,QAAA;IACd,IAAMC,OAAO,GAAG,CAAE,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q;;AChCxB;AACA;AACA;AACA;AACA;AAEA;EACAZ,IAAA;EACA0d,MAAA,GAAAC,eAAA;EAEAza,QAAA;IACA2Z,YAAA,WAAAA,aAAA;MACA;QACA;QACA,iCAAA1b,WAAA;QACA,+BAAAqC,MAAA;QACA,8BAAAzD,QAAA;QACA,mCAAAiB,UAAA;QACA,iCAAA/B,QAAA;QACA,gCAAA4C,OAAA,CAAAC,SAAA;QACA,kCAAAyC,QAAA;QACA,6BAAAvC,IAAA,CAAAC,MAAA;QACA,mCAAAD,IAAA,CAAAI,SAAA;QACA,mCAAAJ,IAAA,CAAAI,SAAA;QACA,8CAAApD,kBAAA;QACA,uCAAAzB;MACA;IACA;EACA;EAEAsU,MAAA,WAAAA,OAAA;IAAA,IAAAG,CAAA,GAAAhf,SAAA;IACA,OACAgf,CAAA;MAAAtF,GAAA;MAAA,cAAAmQ;IAAA,IACA7K,CAAA,CAAA4L,YAAA,GACA5L,CAAA,CAAA6L,OAAA;MAAAnR,GAAA;IAAA,IACA,KAAAnP,YAAA,GAAAyU,CAAA,CAAA8L,UAAA;MAAApR,GAAA;IAAA,KAAAsF,CAAA,CAAA+K,IAAA;MAAArQ,GAAA;IAAA,GACA;EAEA;AACA,G;;ACxCqN,CAAgB,kHAAG,EAAC,C;;ACAzO,IAAI,iBAAM,EAAE,0BAAe;AACkC;AACL;;;AAGxD;AAC0F;AAC1F,IAAI,oBAAS,GAAG,kBAAU;AAC1B,EAAE,4CAAM;AACR,EAAE,iBAAM;AACR,EAAE,0BAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,uBAYf;AACD,oBAAS;AACM,mEAAS,Q;;;;;ACjCwB;AACM;AACjC;AAENqR,mFAAU;AACW;AAMhB;AAEb,IAAMC,OAAO,GAAGC,OAAW,C","file":"vue-treeselect.cjs.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 16);\n","module.exports = require(\"@babel/runtime/helpers/slicedToArray\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"fuzzysearch\");","module.exports = require(\"lodash/noop\");","module.exports = require(\"lodash/debounce\");","module.exports = require(\"watch-size\");","module.exports = require(\"is-promise\");","module.exports = require(\"lodash/once\");","module.exports = require(\"lodash/identity\");","module.exports = require(\"lodash/constant\");","module.exports = require(\"@babel/runtime/helpers/typeof\");","module.exports = require(\"lodash/last\");","module.exports = require(\"babel-helper-vue-jsx-merge-props\");","module.exports = require(\"vue\");","// extracted by mini-css-extract-plugin","import { noop } from './noop'\n\nexport const warning = process.env.NODE_ENV === 'production'\n ? /* istanbul ignore next */ noop\n : function warning(checker, complainer) {\n if (!checker()) {\n const message = [ '[Vue-Treeselect Warning]' ].concat(complainer())\n // eslint-disable-next-line no-console\n console.error(...message)\n }\n }\n","export function onLeftClick(mouseDownHandler) {\n return function onMouseDown(evt, ...args) {\n if (evt.type === 'mousedown' && evt.button === 0) {\n mouseDownHandler.call(this, evt, ...args)\n }\n }\n}\n","// from react-select\nexport function scrollIntoView($scrollingEl, $focusedEl) {\n const scrollingReact = $scrollingEl.getBoundingClientRect()\n const focusedRect = $focusedEl.getBoundingClientRect()\n const overScroll = $focusedEl.offsetHeight / 3\n\n if (focusedRect.bottom + overScroll > scrollingReact.bottom) {\n $scrollingEl.scrollTop = Math.min(\n $focusedEl.offsetTop + $focusedEl.clientHeight - $scrollingEl.offsetHeight + overScroll,\n $scrollingEl.scrollHeight,\n )\n } else if (focusedRect.top - overScroll < scrollingReact.top) {\n $scrollingEl.scrollTop = Math.max($focusedEl.offsetTop - overScroll, 0)\n }\n}\n","export function removeFromArray(arr, elem) {\n const idx = arr.indexOf(elem)\n if (idx !== -1) arr.splice(idx, 1)\n}\n","import watchSizeForBrowsersOtherThanIE9 from 'watch-size'\nimport { removeFromArray } from './removeFromArray'\n\nlet intervalId\nconst registered = []\nconst INTERVAL_DURATION = 100\n\nfunction run() {\n intervalId = setInterval(() => {\n registered.forEach(test)\n }, INTERVAL_DURATION)\n}\n\nfunction stop() {\n clearInterval(intervalId)\n intervalId = null\n}\n\nfunction test(item) {\n const { $el, listener, lastWidth, lastHeight } = item\n const width = $el.offsetWidth\n const height = $el.offsetHeight\n\n if (lastWidth !== width || lastHeight !== height) {\n item.lastWidth = width\n item.lastHeight = height\n\n listener({ width, height })\n }\n}\n\nfunction watchSizeForIE9($el, listener) {\n const item = {\n $el,\n listener,\n lastWidth: null,\n lastHeight: null,\n }\n const unwatch = () => {\n removeFromArray(registered, item)\n if (!registered.length) stop()\n }\n\n registered.push(item)\n // The original watch-size will call the listener on initialization.\n // Keep the same behavior here.\n test(item)\n run()\n\n return unwatch\n}\n\nexport function watchSize($el, listener) {\n // See: https://stackoverflow.com/a/31293352\n const isIE9 = document.documentMode === 9\n // watch-size will call the listener on initialization.\n // Disable this behavior with a lock to achieve a clearer code logic.\n let locked = true\n const wrappedListener = (...args) => locked || listener(...args)\n const implementation = isIE9\n ? watchSizeForIE9\n : watchSizeForBrowsersOtherThanIE9\n const removeSizeWatcher = implementation($el, wrappedListener)\n locked = false // unlock after initialization\n\n return removeSizeWatcher\n}\n","function findScrollParents($el) {\n const $scrollParents = []\n let $parent = $el.parentNode\n\n while ($parent && $parent.nodeName !== 'BODY' && $parent.nodeType === document.ELEMENT_NODE) {\n if (isScrollElment($parent)) $scrollParents.push($parent)\n $parent = $parent.parentNode\n }\n $scrollParents.push(window)\n\n return $scrollParents\n}\n\nfunction isScrollElment($el) {\n // Firefox wants us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getComputedStyle($el)\n return /(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)\n}\n\nexport function setupResizeAndScrollEventListeners($el, listener) {\n const $scrollParents = findScrollParents($el)\n\n window.addEventListener('resize', listener, { passive: true })\n $scrollParents.forEach(scrollParent => {\n scrollParent.addEventListener('scroll', listener, { passive: true })\n })\n\n return function removeEventListeners() {\n window.removeEventListener('resize', listener, { passive: true })\n $scrollParents.forEach($scrollParent => {\n $scrollParent.removeEventListener('scroll', listener, { passive: true })\n })\n }\n}\n","export function isNaN(x) {\n return x !== x\n}\n","export const createMap = () => Object.create(null)\n","function isPlainObject(value) {\n if (value == null || typeof value !== 'object') return false\n return Object.getPrototypeOf(value) === Object.prototype\n}\n\nfunction copy(obj, key, value) {\n if (isPlainObject(value)) {\n obj[key] || (obj[key] = {})\n deepExtend(obj[key], value)\n } else {\n obj[key] = value\n }\n}\n\nexport function deepExtend(target, source) {\n if (isPlainObject(source)) {\n const keys = Object.keys(source)\n\n for (let i = 0, len = keys.length; i < len; i++) {\n copy(target, keys[i], source[keys[i]])\n }\n }\n\n return target\n}\n","export function includes(arrOrStr, elem) {\n return arrOrStr.indexOf(elem) !== -1\n}\n","export function find(arr, predicate, ctx) {\n for (let i = 0, len = arr.length; i < len; i++) {\n if (predicate.call(ctx, arr[i], i, arr)) return arr[i]\n }\n return undefined\n}\n","export function quickDiff(arrA, arrB) {\n if (arrA.length !== arrB.length) return true\n\n for (let i = 0; i < arrA.length; i++) {\n if (arrA[i] !== arrB[i]) return true\n }\n\n return false\n}\n","// ========================\n// Debugging Helpers\n// ========================\n\nexport { warning } from './warning'\n\n// ========================\n// DOM Utilities\n// ========================\n\nexport { onLeftClick } from './onLeftClick'\nexport { scrollIntoView } from './scrollIntoView'\nexport { debounce } from './debounce'\nexport { watchSize } from './watchSize'\nexport { setupResizeAndScrollEventListeners } from './setupResizeAndScrollEventListeners'\n\n// ========================\n// Language Helpers\n// ========================\n\nexport { isNaN } from './isNaN'\nexport { isPromise } from './isPromise'\nexport { once } from './once'\nexport { noop } from './noop'\nexport { identity } from './identity'\nexport { constant } from './constant'\nexport { createMap } from './createMap'\nexport { deepExtend } from './deepExtend'\nexport { last } from './last'\nexport { includes } from './includes'\nexport { find } from './find'\nexport { removeFromArray } from './removeFromArray'\n\n// ========================\n// Other Utilities\n// ========================\n\nexport { quickDiff } from './quickDiff'\n","// Magic value that indicates a root level node.\nexport const NO_PARENT_NODE = null\n\n// Types of checked state.\nexport const UNCHECKED = 0\nexport const INDETERMINATE = 1\nexport const CHECKED = 2\n\n// Types of count number.\nexport const ALL_CHILDREN = 'ALL_CHILDREN'\nexport const ALL_DESCENDANTS = 'ALL_DESCENDANTS'\nexport const LEAF_CHILDREN = 'LEAF_CHILDREN'\nexport const LEAF_DESCENDANTS = 'LEAF_DESCENDANTS'\n\n// Action types of delayed loading.\nexport const LOAD_ROOT_OPTIONS = 'LOAD_ROOT_OPTIONS'\nexport const LOAD_CHILDREN_OPTIONS = 'LOAD_CHILDREN_OPTIONS'\nexport const ASYNC_SEARCH = 'ASYNC_SEARCH'\n\n// Acceptable values of `valueConsistsOf` prop.\nexport const ALL = 'ALL'\nexport const BRANCH_PRIORITY = 'BRANCH_PRIORITY'\nexport const LEAF_PRIORITY = 'LEAF_PRIORITY'\nexport const ALL_WITH_INDETERMINATE = 'ALL_WITH_INDETERMINATE'\n\n// Acceptable values of `sortValueBy` prop.\nexport const ORDER_SELECTED = 'ORDER_SELECTED'\nexport const LEVEL = 'LEVEL'\nexport const INDEX = 'INDEX'\n\n// Key codes look-up table.\nexport const KEY_CODES = {\n BACKSPACE: 8,\n ENTER: 13,\n ESCAPE: 27,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n}\n\n// Other constants.\nexport const INPUT_DEBOUNCE_DELAY = process.env.NODE_ENV === 'testing'\n ? /* to speed up unit testing */ 10\n : /* istanbul ignore next */ 200\nexport const MIN_INPUT_WIDTH = 5\nexport const MENU_BUFFER = 40\n","import fuzzysearch from 'fuzzysearch'\n\nimport {\n warning,\n onLeftClick, scrollIntoView,\n isNaN, isPromise, once,\n identity, constant, createMap,\n quickDiff, last as getLast, includes, find, removeFromArray,\n} from '../utils'\n\nimport {\n NO_PARENT_NODE,\n UNCHECKED, INDETERMINATE, CHECKED,\n LOAD_ROOT_OPTIONS, LOAD_CHILDREN_OPTIONS, ASYNC_SEARCH,\n ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE,\n ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS,\n ORDER_SELECTED, LEVEL, INDEX,\n} from '../constants'\n\nfunction sortValueByIndex(a, b) {\n let i = 0\n do {\n if (a.level < i) return -1\n if (b.level < i) return 1\n if (a.index[i] !== b.index[i]) return a.index[i] - b.index[i]\n i++\n } while (true)\n}\n\nfunction sortValueByLevel(a, b) {\n return a.level === b.level\n ? sortValueByIndex(a, b)\n : a.level - b.level\n}\n\nfunction createAsyncOptionsStates() {\n return {\n isLoaded: false,\n isLoading: false,\n loadingError: '',\n }\n}\n\nfunction stringifyOptionPropValue(value) {\n if (typeof value === 'string') return value\n if (typeof value === 'number' && !isNaN(value)) return value + ''\n // istanbul ignore next\n return ''\n}\n\nfunction match(enableFuzzyMatch, needle, haystack) {\n return enableFuzzyMatch\n ? fuzzysearch(needle, haystack)\n : includes(haystack, needle)\n}\n\nfunction getErrorMessage(err) {\n return err.message || /* istanbul ignore next */String(err)\n}\n\nlet instanceId = 0\n\nexport default {\n provide() {\n return {\n // Enable access to the instance of root component of vue-treeselect\n // across hierarchy.\n instance: this,\n }\n },\n\n props: {\n /**\n * Whether to allow resetting value even if there are disabled selected nodes.\n */\n allowClearingDisabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.\n * You may want to use this in conjunction with `allowClearingDisabled` prop.\n */\n allowSelectingDisabledDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the menu should be always open.\n */\n alwaysOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Append the menu to ?\n */\n appendToBody: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable async search mode.\n */\n async: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically focus the component on mount?\n */\n autoFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.\n */\n autoLoadRootOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.\n */\n autoDeselectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user deselects a node, automatically deselect its descendants. Applies to flat mode only.\n */\n autoDeselectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its ancestors. Applies to flat mode only.\n */\n autoSelectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its descendants. Applies to flat mode only.\n */\n autoSelectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether pressing backspace key removes the last item if there is no text input.\n */\n backspaceRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Function that processes before clearing all input fields.\n * Return `false` to prevent value from being cleared.\n * @type {function(): (boolean|Promise)}\n */\n beforeClearAll: {\n type: Function,\n default: constant(true),\n },\n\n /**\n * Show branch nodes before leaf nodes?\n */\n branchNodesFirst: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Should cache results of every search request?\n */\n cacheOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Show an \"×\" button that resets value?\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Title for the \"×\" button when `multiple: true`.\n */\n clearAllText: {\n type: String,\n default: 'Clear all',\n },\n\n /**\n * Whether to clear the search input after selecting.\n * Use only when `multiple` is `true`.\n * For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.\n */\n clearOnSelect: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Title for the \"×\" button.\n */\n clearValueText: {\n type: String,\n default: 'Clear value',\n },\n\n /**\n * Whether to close the menu after selecting an option?\n * Use only when `multiple` is `true`.\n */\n closeOnSelect: {\n type: Boolean,\n default: true,\n },\n\n /**\n * How many levels of branch nodes should be automatically expanded when loaded.\n * Set `Infinity` to make all branch nodes expanded by default.\n */\n defaultExpandLevel: {\n type: Number,\n default: 0,\n },\n\n /**\n * The default set of options to show before the user starts searching. Used for async search mode.\n * When set to `true`, the results for search query as a empty string will be autoloaded.\n * @type {boolean|node[]}\n */\n defaultOptions: {\n default: false,\n },\n\n /**\n * Whether pressing delete key removes the last item if there is no text input.\n */\n deleteRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Delimiter to use to join multiple values for the hidden field value.\n */\n delimiter: {\n type: String,\n default: ',',\n },\n\n /**\n * Only show the nodes that match the search value directly, excluding its ancestors.\n *\n * @type {Object}\n */\n flattenSearchResults: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Prevent branch nodes from being selected?\n */\n disableBranchNodes: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the control?\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the fuzzy matching functionality?\n */\n disableFuzzyMatching: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable flat mode or not. Non-flat mode (default) means:\n * - Whenever a branch node gets checked, all its children will be checked too\n * - Whenever a branch node has all children checked, the branch node itself will be checked too\n * Set `true` to disable this mechanism\n */\n flat: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Will be passed with all events as the last param.\n * Useful for identifying events origin.\n */\n instanceId: {\n // Add two trailing \"$\" to distinguish from explictly specified ids.\n default: () => `${instanceId++}$$`,\n type: [ String, Number ],\n },\n\n /**\n * Joins multiple values into a single form field with the `delimiter` (legacy mode).\n */\n joinValues: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Limit the display of selected options.\n * The rest will be hidden within the limitText string.\n */\n limit: {\n type: Number,\n default: Infinity,\n },\n\n /**\n * Function that processes the message shown when selected elements pass the defined limit.\n * @type {function(number): string}\n */\n limitText: {\n type: Function,\n default: function limitTextDefault(count) { // eslint-disable-line func-name-matching\n return `and ${count} more`\n },\n },\n\n /**\n * Text displayed when loading options.\n */\n loadingText: {\n type: String,\n default: 'Loading...',\n },\n\n /**\n * Used for dynamically loading options.\n * @type {function({action: string, callback: (function((Error|string)=): void), parentNode: node=, instanceId}): void}\n */\n loadOptions: {\n type: Function,\n },\n\n /**\n * Which node properties to filter on.\n */\n matchKeys: {\n type: Array,\n default: constant([ 'label' ]),\n },\n\n /**\n * Sets `maxHeight` style value of the menu.\n */\n maxHeight: {\n type: Number,\n default: 300,\n },\n\n /**\n * Set `true` to allow selecting multiple options (a.k.a., multi-select mode).\n */\n multiple: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Generates a hidden tag with this field name for html forms.\n */\n name: {\n type: String,\n },\n\n /**\n * Text displayed when a branch node has no children.\n */\n noChildrenText: {\n type: String,\n default: 'No sub-options.',\n },\n\n /**\n * Text displayed when there are no available options.\n */\n noOptionsText: {\n type: String,\n default: 'No options available.',\n },\n\n /**\n * Text displayed when there are no matching search results.\n */\n noResultsText: {\n type: String,\n default: 'No results found...',\n },\n\n /**\n * Used for normalizing source data.\n * @type {function(node, instanceId): node}\n */\n normalizer: {\n type: Function,\n default: identity,\n },\n\n /**\n * By default (`auto`), the menu will open below the control. If there is not\n * enough space, vue-treeselect will automatically flip the menu.\n * You can use one of other four options to force the menu to be always opened\n * to specified direction.\n * Acceptable values:\n * - `\"auto\"`\n * - `\"below\"`\n * - `\"bottom\"`\n * - `\"above\"`\n * - `\"top\"`\n */\n openDirection: {\n type: String,\n default: 'auto',\n validator(value) {\n const acceptableValues = [ 'auto', 'top', 'bottom', 'above', 'below' ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to automatically open the menu when the control is clicked.\n */\n openOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether to automatically open the menu when the control is focused.\n */\n openOnFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Array of available options.\n * @type {node[]}\n */\n options: {\n type: Array,\n },\n\n /**\n * Field placeholder, displayed when there's no value.\n */\n placeholder: {\n type: String,\n default: 'Select...',\n },\n\n /**\n * Applies HTML5 required attribute when needed.\n */\n required: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text displayed asking user whether to retry loading children options.\n */\n retryText: {\n type: String,\n default: 'Retry?',\n },\n\n /**\n * Title for the retry button.\n */\n retryTitle: {\n type: String,\n default: 'Click to retry',\n },\n\n /**\n * Enable searching feature?\n */\n searchable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Search in ancestor nodes too.\n */\n searchNested: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text tip to prompt for async search.\n */\n searchPromptText: {\n type: String,\n default: 'Type to search...',\n },\n\n showAsGroup: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to show a children count next to the label of each branch node.\n */\n showCount: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Used in conjunction with `showCount` to specify which type of count number should be displayed.\n * Acceptable values:\n * - \"ALL_CHILDREN\"\n * - \"ALL_DESCENDANTS\"\n * - \"LEAF_CHILDREN\"\n * - \"LEAF_DESCENDANTS\"\n */\n showCountOf: {\n type: String,\n default: ALL_CHILDREN,\n validator(value) {\n const acceptableValues = [ ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to show children count when searching.\n * Fallbacks to the value of `showCount` when not specified.\n * @type {boolean}\n */\n showCountOnSearch: null,\n\n /**\n * In which order the selected options should be displayed in trigger & sorted in `value` array.\n * Used for multi-select mode only.\n * Acceptable values:\n * - \"ORDER_SELECTED\"\n * - \"LEVEL\"\n * - \"INDEX\"\n */\n sortValueBy: {\n type: String,\n default: ORDER_SELECTED,\n validator(value) {\n const acceptableValues = [ ORDER_SELECTED, LEVEL, INDEX ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Tab index of the control.\n */\n tabIndex: {\n type: Number,\n default: 0,\n },\n\n /**\n * The value of the control.\n * Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.\n * Its format depends on the `valueFormat` prop.\n * For most cases, just use `v-model` instead.\n * @type {?Array}\n */\n value: null,\n\n /**\n * Which kind of nodes should be included in the `value` array in multi-select mode.\n * Acceptable values:\n * - \"ALL\" - Any node that is checked will be included in the `value` array\n * - \"BRANCH_PRIORITY\" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array\n * - \"LEAF_PRIORITY\" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included\n * - \"ALL_WITH_INDETERMINATE\" - Any node that is checked will be included in the `value` array, plus indeterminate nodes\n */\n valueConsistsOf: {\n type: String,\n default: BRANCH_PRIORITY,\n validator(value) {\n const acceptableValues = [ ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Format of `value` prop.\n * Note that, when set to `\"object\"`, only `id` & `label` properties are required in each `node` object in `value` prop.\n * Acceptable values:\n * - \"id\"\n * - \"object\"\n */\n valueFormat: {\n type: String,\n default: 'id',\n },\n\n /**\n * z-index of the menu.\n */\n zIndex: {\n type: [ Number, String ],\n default: 999,\n },\n },\n\n data() {\n return {\n trigger: {\n // Is the control focused?\n isFocused: false,\n // User entered search query - value of the input.\n searchQuery: '',\n },\n\n menu: {\n // Is the menu opened?\n isOpen: false,\n // Id of current highlighted option.\n current: null,\n // The scroll position before last menu closing.\n lastScrollPosition: 0,\n // Which direction to open the menu.\n placement: 'bottom',\n },\n\n forest: {\n // Normalized options.\n normalizedOptions: [],\n // map for quick look-up.\n nodeMap: createMap(),\n // map, used for multi-select mode.\n checkedStateMap: createMap(),\n // Id list of all selected options.\n selectedNodeIds: this.extractCheckedNodeIdsFromValue(),\n // map for fast checking:\n // if (forest.selectedNodeIds.indexOf(id) !== -1) forest.selectedNodeMap[id] === true\n selectedNodeMap: createMap(),\n },\n\n // States of root options.\n rootOptionsStates: createAsyncOptionsStates(),\n\n localSearch: {\n // Has user entered any query to search local options?\n active: false,\n // Has any options matched the search query?\n noResults: true,\n // map for counting matched children/descendants.\n countMap: createMap(),\n },\n\n // map.\n remoteSearch: createMap(),\n }\n },\n\n computed: {\n /* eslint-disable valid-jsdoc */\n /**\n * Normalized nodes that have been selected.\n * @type {node[]}\n */\n selectedNodes() {\n return this.forest.selectedNodeIds.map(this.getNode)\n },\n /**\n * Id list of selected nodes with `sortValueBy` prop applied.\n * @type {nodeId[]}\n */\n internalValue() {\n let internalValue\n\n // istanbul ignore else\n const valueConsistsOf = this.showAsGroup ? LEAF_PRIORITY : this.valueConsistsOf\n if (this.single || this.flat || this.disableBranchNodes || valueConsistsOf === ALL) {\n internalValue = this.forest.selectedNodeIds.slice()\n } else if (valueConsistsOf === BRANCH_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isRootNode) return true\n return !this.isSelected(node.parentNode)\n })\n } else if (valueConsistsOf === LEAF_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isLeaf) return true\n return node.children.length === 0\n })\n } else if (valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const indeterminateNodeIds = []\n internalValue = this.forest.selectedNodeIds.slice()\n this.selectedNodes.forEach(selectedNode => {\n selectedNode.ancestors.forEach(ancestor => {\n if (includes(indeterminateNodeIds, ancestor.id)) return\n if (includes(internalValue, ancestor.id)) return\n indeterminateNodeIds.push(ancestor.id)\n })\n })\n internalValue.push(...indeterminateNodeIds)\n }\n\n if (this.sortValueBy === LEVEL) {\n internalValue.sort((a, b) => sortValueByLevel(this.getNode(a), this.getNode(b)))\n } else if (this.sortValueBy === INDEX) {\n internalValue.sort((a, b) => sortValueByIndex(this.getNode(a), this.getNode(b)))\n }\n\n return internalValue\n },\n /**\n * Has any option been selected?\n * @type {boolean}\n */\n hasValue() {\n return this.internalValue.length > 0\n },\n /**\n * Single-select mode?\n * @type {boolean}\n */\n single() {\n return !this.multiple\n },\n /**\n * Id list of nodes displayed in the menu. Nodes that are considered NOT visible:\n * - descendants of a collapsed branch node\n * - in local search mode, nodes that are not matched, unless\n * - it's a branch node and has matched descendants\n * - it's a leaf node and its parent node is explicitly set to show all children\n * @type {id[]}\n */\n visibleOptionIds() {\n const visibleOptionIds = []\n\n this.traverseAllNodesByIndex(node => {\n if (!this.localSearch.active || this.shouldOptionBeIncludedInSearchResult(node)) {\n visibleOptionIds.push(node.id)\n }\n // Skip the traversal of descendants of a branch node if it's not expanded.\n if (node.isBranch && !this.shouldExpand(node)) {\n return false\n }\n })\n\n return visibleOptionIds\n },\n /**\n * Has any option should be displayed in the menu?\n * @type {boolean}\n */\n hasVisibleOptions() {\n return this.visibleOptionIds.length !== 0\n },\n /**\n * Should show children count when searching?\n * @type {boolean}\n */\n showCountOnSearchComputed() {\n // Vue doesn't allow setting default prop value based on another prop value.\n // So use computed property as a workaround.\n // https://github.com/vuejs/vue/issues/6358\n return typeof this.showCountOnSearch === 'boolean'\n ? this.showCountOnSearch\n : this.showCount\n },\n /**\n * Is there any branch node?\n * @type {boolean}\n */\n hasBranchNodes() {\n return this.forest.normalizedOptions.some(rootNode => rootNode.isBranch)\n },\n shouldFlattenOptions() {\n return this.localSearch.active && this.flattenSearchResults\n },\n /* eslint-enable valid-jsdoc */\n },\n\n watch: {\n alwaysOpen(newValue) {\n if (newValue) this.openMenu()\n else this.closeMenu()\n },\n\n branchNodesFirst() {\n this.initialize()\n },\n\n disabled(newValue) {\n // force close the menu after disabling the control\n if (newValue && this.menu.isOpen) this.closeMenu()\n else if (!newValue && !this.menu.isOpen && this.alwaysOpen) this.openMenu()\n },\n\n flat() {\n this.initialize()\n },\n\n internalValue(newValue, oldValue) {\n const hasChanged = quickDiff(newValue, oldValue)\n // #122\n // Vue would trigger this watcher when `newValue` and `oldValue` are shallow-equal.\n // We emit the `input` event only when the value actually changes.\n if (hasChanged) this.$emit('input', this.getValue(), this.getInstanceId())\n },\n\n matchKeys() {\n this.initialize()\n },\n\n multiple(newValue) {\n // We need to rebuild the state when switching from single-select mode\n // to multi-select mode.\n // istanbul ignore else\n if (newValue) this.buildForestState()\n },\n\n options: {\n handler() {\n if (this.async) return\n // Re-initialize options when the `options` prop has changed.\n this.initialize()\n this.rootOptionsStates.isLoaded = Array.isArray(this.options)\n },\n deep: true,\n immediate: true,\n },\n\n 'trigger.searchQuery'() {\n if (this.async) {\n this.handleRemoteSearch()\n } else {\n this.handleLocalSearch()\n }\n\n this.$emit('search-change', this.trigger.searchQuery, this.getInstanceId())\n },\n\n value() {\n const nodeIdsFromValue = this.extractCheckedNodeIdsFromValue()\n const hasChanged = quickDiff(nodeIdsFromValue, this.internalValue)\n if (hasChanged) this.fixSelectedNodeIds(nodeIdsFromValue)\n },\n },\n\n methods: {\n verifyProps() {\n warning(\n () => this.async ? this.searchable : true,\n () => 'For async search mode, the value of \"searchable\" prop must be true.',\n )\n\n if (this.options == null && !this.loadOptions) {\n warning(\n () => false,\n () => 'Are you meant to dynamically load options? You need to use \"loadOptions\" prop.',\n )\n }\n\n if (this.flat) {\n warning(\n () => this.multiple,\n () => 'You are using flat mode. But you forgot to add \"multiple=true\"?',\n )\n }\n\n if (!this.flat) {\n const propNames = [\n 'autoSelectAncestors',\n 'autoSelectDescendants',\n 'autoDeselectAncestors',\n 'autoDeselectDescendants',\n ]\n\n propNames.forEach(propName => {\n warning(\n () => !this[propName],\n () => `\"${propName}\" only applies to flat mode.`,\n )\n })\n }\n },\n\n resetFlags() {\n this._blurOnSelect = false\n },\n\n initialize() {\n const options = this.async\n ? this.getRemoteSearchEntry().options\n : this.options\n\n if (Array.isArray(options)) {\n // In case we are re-initializing options, keep the old state tree temporarily.\n const prevNodeMap = this.forest.nodeMap\n this.forest.nodeMap = createMap()\n this.keepDataOfSelectedNodes(prevNodeMap)\n this.forest.normalizedOptions = this.normalize(NO_PARENT_NODE, options, prevNodeMap)\n // Cases that need fixing `selectedNodeIds`:\n // 1) Children options of a checked node have been delayed loaded,\n // we should also mark these children as checked. (multi-select mode)\n // 2) Root options have been delayed loaded, we need to initialize states\n // of these nodes. (multi-select mode)\n // 3) Async search mode.\n this.fixSelectedNodeIds(this.internalValue)\n } else {\n this.forest.normalizedOptions = []\n }\n },\n\n getInstanceId() {\n return this.instanceId == null ? this.id : this.instanceId\n },\n\n getValue() {\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.internalValue.slice()\n : this.internalValue[0]\n }\n\n const rawNodes = this.internalValue.map(id => this.getNode(id).raw)\n return this.multiple ? rawNodes : rawNodes[0]\n },\n\n getNode(nodeId) {\n warning(\n () => nodeId != null,\n () => `Invalid node id: ${nodeId}`,\n )\n\n if (nodeId == null) return null\n\n return nodeId in this.forest.nodeMap\n ? this.forest.nodeMap[nodeId]\n : this.createFallbackNode(nodeId)\n },\n\n createFallbackNode(id) {\n // In case there is a default selected node that is not loaded into the tree yet,\n // we create a fallback node to keep the component working.\n // When the real data is loaded, we'll override this fake node.\n\n const raw = this.extractNodeFromValue(id)\n const label = this.enhancedNormalizer(raw).label || `${id} (unknown)`\n const fallbackNode = {\n id,\n label,\n ancestors: [],\n parentNode: NO_PARENT_NODE,\n isFallbackNode: true,\n isRootNode: true,\n isLeaf: true,\n isBranch: false,\n isDisabled: false,\n isNew: false,\n index: [ -1 ],\n level: 0,\n raw,\n }\n\n return this.$set(this.forest.nodeMap, id, fallbackNode)\n },\n\n extractCheckedNodeIdsFromValue() {\n if (this.value == null) return []\n\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.value.slice()\n : [ this.value ]\n }\n\n return (this.multiple ? this.value : [ this.value ])\n .map(node => this.enhancedNormalizer(node))\n .map(node => node.id)\n },\n\n extractNodeFromValue(id) {\n const defaultNode = { id }\n\n if (this.valueFormat === 'id') {\n return defaultNode\n }\n\n const valueArray = this.multiple\n ? Array.isArray(this.value) ? this.value : []\n : this.value ? [ this.value ] : []\n const matched = find(\n valueArray,\n node => node && this.enhancedNormalizer(node).id === id,\n )\n\n return matched || defaultNode\n },\n\n fixSelectedNodeIds(nodeIdListOfPrevValue) {\n let nextSelectedNodeIds = []\n\n // istanbul ignore else\n if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === ALL) {\n nextSelectedNodeIds = nodeIdListOfPrevValue\n } else if (this.valueConsistsOf === BRANCH_PRIORITY) {\n nodeIdListOfPrevValue.forEach(nodeId => {\n nextSelectedNodeIds.push(nodeId)\n const node = this.getNode(nodeId)\n if (node.isBranch) this.traverseDescendantsBFS(node, descendant => {\n nextSelectedNodeIds.push(descendant.id)\n })\n })\n } else if (this.valueConsistsOf === LEAF_PRIORITY) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.slice()\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n } else if (this.valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.filter(nodeId => {\n const node = this.getNode(nodeId)\n return node.isLeaf || node.children.length === 0\n })\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n }\n\n const hasChanged = quickDiff(this.forest.selectedNodeIds, nextSelectedNodeIds)\n // If `nextSelectedNodeIds` doesn't actually differ from old `selectedNodeIds`,\n // we don't make the assignment to avoid triggering its watchers which may cause\n // unnecessary calculations.\n if (hasChanged) this.forest.selectedNodeIds = nextSelectedNodeIds\n\n this.buildForestState()\n },\n\n keepDataOfSelectedNodes(prevNodeMap) {\n // In case there is any selected node that is not present in the new `options` array.\n // It could be useful for async search mode.\n this.forest.selectedNodeIds.forEach(id => {\n if (!prevNodeMap[id]) return\n const node = {\n ...prevNodeMap[id],\n isFallbackNode: true,\n }\n this.$set(this.forest.nodeMap, id, node)\n })\n },\n\n isSelected(node) {\n // whether a node is selected (single-select mode) or fully-checked (multi-select mode)\n return this.forest.selectedNodeMap[node.id] === true\n },\n\n traverseDescendantsBFS(parentNode, callback) {\n // istanbul ignore if\n if (!parentNode.isBranch) return\n const queue = parentNode.children.slice()\n while (queue.length) {\n const currNode = queue[0]\n if (currNode.isBranch) queue.push(...currNode.children)\n callback(currNode)\n queue.shift()\n }\n },\n\n traverseDescendantsDFS(parentNode, callback) {\n if (!parentNode.isBranch) return\n parentNode.children.forEach(child => {\n // deep-level node first\n this.traverseDescendantsDFS(child, callback)\n callback(child)\n })\n },\n\n traverseAllNodesDFS(callback) {\n this.forest.normalizedOptions.forEach(rootNode => {\n // deep-level node first\n this.traverseDescendantsDFS(rootNode, callback)\n callback(rootNode)\n })\n },\n\n traverseAllNodesByIndex(callback) {\n const walk = parentNode => {\n parentNode.children.forEach(child => {\n if (callback(child) !== false && child.isBranch) {\n walk(child)\n }\n })\n }\n\n // To simplify the code logic of traversal,\n // we create a fake root node that holds all the root options.\n walk({ children: this.forest.normalizedOptions })\n },\n\n toggleClickOutsideEvent(enabled) {\n if (enabled) {\n document.addEventListener('mousedown', this.handleClickOutside, false)\n } else {\n document.removeEventListener('mousedown', this.handleClickOutside, false)\n }\n },\n\n getValueContainer() {\n if (!this.$refs || !this.$refs.control || !this.$refs.control.$refs) {\n return null\n }\n return this.$refs.control.$refs['value-container']\n },\n\n getInput() {\n return this.getValueContainer().$refs.input\n },\n\n focusInput() {\n this.getInput().focus()\n },\n\n blurInput() {\n this.getInput().blur()\n },\n\n handleMouseDown: onLeftClick(function handleMouseDown(evt) {\n evt.preventDefault()\n evt.stopPropagation()\n\n if (this.disabled || !this.getValueContainer()) return\n\n const isClickedOnValueContainer = this.getValueContainer().$el.contains(evt.target)\n if (isClickedOnValueContainer && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused)) {\n this.openMenu()\n }\n\n if (this._blurOnSelect) {\n this.blurInput()\n } else {\n // Focus the input or prevent blurring.\n this.focusInput()\n }\n\n this.resetFlags()\n }),\n\n handleClickOutside(evt) {\n // istanbul ignore else\n if (this.$refs.wrapper && !this.$refs.wrapper.contains(evt.target)) {\n this.blurInput()\n this.closeMenu()\n }\n },\n\n handleLocalSearch() {\n const { searchQuery } = this.trigger\n const done = () => this.resetHighlightedOptionWhenNecessary(true)\n\n if (!searchQuery) {\n // Exit sync search mode.\n this.localSearch.active = false\n return done()\n }\n\n // Enter sync search mode.\n this.localSearch.active = true\n\n // Reset states.\n this.localSearch.noResults = true\n this.traverseAllNodesDFS(node => {\n if (node.isBranch) {\n node.isExpandedOnSearch = false\n node.showAllChildrenOnSearch = false\n node.isMatched = false\n node.hasMatchedDescendants = false\n this.$set(this.localSearch.countMap, node.id, {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n }\n })\n\n const lowerCasedSearchQuery = searchQuery.trim().toLocaleLowerCase()\n const splitSearchQuery = lowerCasedSearchQuery.replace(/\\s+/g, ' ').split(' ')\n this.traverseAllNodesDFS(node => {\n if (this.searchNested && splitSearchQuery.length > 1) {\n node.isMatched = splitSearchQuery.every(filterValue =>\n match(false, filterValue, node.nestedSearchLabel),\n )\n } else {\n node.isMatched = this.matchKeys.some(matchKey =>\n match(!this.disableFuzzyMatching, lowerCasedSearchQuery, node.lowerCased[matchKey]),\n )\n }\n\n if (node.isMatched) {\n this.localSearch.noResults = false\n node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][ALL_DESCENDANTS]++)\n if (node.isLeaf) node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][LEAF_DESCENDANTS]++)\n if (node.parentNode !== NO_PARENT_NODE) {\n this.localSearch.countMap[node.parentNode.id][ALL_CHILDREN] += 1\n // istanbul ignore else\n if (node.isLeaf) this.localSearch.countMap[node.parentNode.id][LEAF_CHILDREN] += 1\n }\n }\n\n if (\n (node.isMatched || (node.isBranch && node.isExpandedOnSearch)) &&\n node.parentNode !== NO_PARENT_NODE\n ) {\n node.parentNode.isExpandedOnSearch = true\n node.parentNode.hasMatchedDescendants = true\n }\n })\n\n done()\n },\n\n handleRemoteSearch() {\n const { searchQuery } = this.trigger\n const entry = this.getRemoteSearchEntry()\n const done = () => {\n this.initialize()\n this.resetHighlightedOptionWhenNecessary(true)\n }\n\n if ((searchQuery === '' || this.cacheOptions) && entry.isLoaded) {\n return done()\n }\n\n this.callLoadOptionsProp({\n action: ASYNC_SEARCH,\n args: { searchQuery },\n isPending() {\n return entry.isLoading\n },\n start: () => {\n entry.isLoading = true\n entry.isLoaded = false\n entry.loadingError = ''\n },\n succeed: options => {\n entry.isLoaded = true\n entry.options = options\n // When the request completes, the search query may have changed.\n // We only show these options if they are for the current search query.\n if (this.trigger.searchQuery === searchQuery) done()\n },\n fail: err => {\n entry.loadingError = getErrorMessage(err)\n },\n end: () => {\n entry.isLoading = false\n },\n })\n },\n\n getRemoteSearchEntry() {\n const { searchQuery } = this.trigger\n const entry = this.remoteSearch[searchQuery] || {\n ...createAsyncOptionsStates(),\n options: [],\n }\n\n // Vue doesn't support directly watching on objects.\n this.$watch(\n () => entry.options,\n () => {\n // TODO: potential redundant re-initialization.\n if (this.trigger.searchQuery === searchQuery) this.initialize()\n },\n { deep: true },\n )\n\n if (searchQuery === '') {\n if (Array.isArray(this.defaultOptions)) {\n entry.options = this.defaultOptions\n entry.isLoaded = true\n return entry\n } else if (this.defaultOptions !== true) {\n entry.isLoaded = true\n return entry\n }\n }\n\n if (!this.remoteSearch[searchQuery]) {\n this.$set(this.remoteSearch, searchQuery, entry)\n }\n\n return entry\n },\n\n shouldExpand(node) {\n return this.localSearch.active ? node.isExpandedOnSearch : node.isExpanded\n },\n\n shouldOptionBeIncludedInSearchResult(node) {\n // 1) This option is matched.\n if (node.isMatched) return true\n // 2) This option is not matched, but has matched descendant(s).\n if (node.isBranch && node.hasMatchedDescendants && !this.flattenSearchResults) return true\n // 3) This option's parent has no matched descendants,\n // but after being expanded, all its children should be shown.\n if (!node.isRootNode && node.parentNode.showAllChildrenOnSearch) return true\n // 4) The default case.\n return false\n },\n\n shouldShowOptionInMenu(node) {\n if (this.localSearch.active && !this.shouldOptionBeIncludedInSearchResult(node)) {\n return false\n }\n return true\n },\n\n getControl() {\n return this.$refs.control.$el\n },\n\n getMenu() {\n const ref = this.appendToBody ? this.$refs.portal.portalTarget : this\n const $menu = ref.$refs.menu.$refs.menu\n return $menu && $menu.nodeName !== '#comment' ? $menu : null\n },\n\n setCurrentHighlightedOption(node, scroll = true) {\n const prev = this.menu.current\n if (prev != null && prev in this.forest.nodeMap) {\n this.forest.nodeMap[prev].isHighlighted = false\n }\n\n this.menu.current = node.id\n node.isHighlighted = true\n\n if (this.menu.isOpen && scroll) {\n const scrollToOption = () => {\n const nodeId = node.id.toString().replace(/\"/g, '\\\\\"')\n const $menu = this.getMenu()\n const $option = $menu.querySelector(`.vue-treeselect__option[data-id=\"${nodeId}\"]`)\n if ($option) scrollIntoView($menu, $option)\n }\n\n // In case `openMenu()` is just called and the menu is not rendered yet.\n if (this.getMenu()) {\n scrollToOption()\n } else {\n // istanbul ignore next\n this.$nextTick(scrollToOption)\n }\n }\n },\n\n resetHighlightedOptionWhenNecessary(forceReset = false) {\n const { current } = this.menu\n\n if (\n forceReset || current == null ||\n !(current in this.forest.nodeMap) ||\n !this.shouldShowOptionInMenu(this.getNode(current))\n ) {\n this.highlightFirstOption()\n }\n },\n\n highlightFirstOption() {\n if (!this.hasVisibleOptions) return\n\n const first = this.visibleOptionIds[0]\n this.setCurrentHighlightedOption(this.getNode(first))\n },\n\n highlightPrevOption() {\n if (!this.hasVisibleOptions) return\n\n const prev = this.visibleOptionIds.indexOf(this.menu.current) - 1\n if (prev === -1) return this.highlightLastOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[prev]))\n },\n\n highlightNextOption() {\n if (!this.hasVisibleOptions) return\n\n const next = this.visibleOptionIds.indexOf(this.menu.current) + 1\n if (next === this.visibleOptionIds.length) return this.highlightFirstOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[next]))\n },\n\n highlightLastOption() {\n if (!this.hasVisibleOptions) return\n\n const last = getLast(this.visibleOptionIds)\n this.setCurrentHighlightedOption(this.getNode(last))\n },\n\n resetSearchQuery() {\n this.trigger.searchQuery = ''\n },\n\n closeMenu() {\n if (!this.menu.isOpen || (!this.disabled && this.alwaysOpen)) return\n this.saveMenuScrollPosition()\n this.menu.isOpen = false\n this.toggleClickOutsideEvent(false)\n this.resetSearchQuery()\n this.$emit('close', this.getValue(), this.getInstanceId())\n },\n\n openMenu() {\n if (this.disabled || this.menu.isOpen) return\n this.menu.isOpen = true\n this.$nextTick(this.resetHighlightedOptionWhenNecessary)\n this.$nextTick(this.restoreMenuScrollPosition)\n if (!this.options && !this.async) this.loadRootOptions()\n this.toggleClickOutsideEvent(true)\n this.$emit('open', this.getInstanceId())\n },\n\n toggleMenu() {\n if (this.menu.isOpen) {\n this.closeMenu()\n } else {\n this.openMenu()\n }\n },\n\n toggleExpanded(node) {\n let nextState\n\n if (this.localSearch.active) {\n nextState = node.isExpandedOnSearch = !node.isExpandedOnSearch\n if (nextState) node.showAllChildrenOnSearch = true\n } else {\n nextState = node.isExpanded = !node.isExpanded\n }\n\n if (nextState && !node.childrenStates.isLoaded) {\n this.loadChildrenOptions(node)\n }\n },\n\n buildForestState() {\n const selectedNodeMap = createMap()\n this.forest.selectedNodeIds.forEach(selectedNodeId => {\n selectedNodeMap[selectedNodeId] = true\n })\n this.forest.selectedNodeMap = selectedNodeMap\n\n const checkedStateMap = createMap()\n if (this.multiple) {\n this.traverseAllNodesByIndex(node => {\n checkedStateMap[node.id] = UNCHECKED\n })\n\n this.selectedNodes.forEach(selectedNode => {\n checkedStateMap[selectedNode.id] = CHECKED\n\n if (!this.flat && !this.disableBranchNodes) {\n selectedNode.ancestors.forEach(ancestorNode => {\n if (!this.isSelected(ancestorNode)) {\n checkedStateMap[ancestorNode.id] = INDETERMINATE\n }\n })\n }\n })\n }\n this.forest.checkedStateMap = checkedStateMap\n },\n\n enhancedNormalizer(raw) {\n return {\n ...raw,\n ...this.normalizer(raw, this.getInstanceId()),\n }\n },\n\n normalize(parentNode, nodes, prevNodeMap) {\n let normalizedOptions = nodes\n .map(node => [ this.enhancedNormalizer(node), node ])\n .map(([ node, raw ], index) => {\n this.checkDuplication(node)\n this.verifyNodeShape(node)\n\n const id = node.id !== undefined ? node.id : Math.round(Math.random() * 1000000)\n const { label, children, isDefaultExpanded } = node\n const isRootNode = parentNode === NO_PARENT_NODE\n const level = isRootNode || this.showAsGroup ? 0 : parentNode.level + 1\n const isBranch = Array.isArray(children) || children === null\n const isLeaf = !isBranch\n const isDisabled = !!node.isDisabled || (!this.flat && !isRootNode && parentNode.isDisabled)\n const isNew = !!node.isNew\n const lowerCased = this.matchKeys.reduce((prev, key) => ({\n ...prev,\n [key]: stringifyOptionPropValue(node[key]).toLocaleLowerCase(),\n }), {})\n const nestedSearchLabel = isRootNode\n ? lowerCased.label\n : parentNode.nestedSearchLabel + ' ' + lowerCased.label\n\n const normalized = this.$set(this.forest.nodeMap, id, createMap())\n this.$set(normalized, 'id', id)\n this.$set(normalized, 'label', label)\n this.$set(normalized, 'level', level)\n this.$set(normalized, 'ancestors', isRootNode ? [] : [ parentNode ].concat(parentNode.ancestors))\n this.$set(normalized, 'index', (isRootNode ? [] : parentNode.index).concat(index))\n this.$set(normalized, 'parentNode', parentNode)\n this.$set(normalized, 'lowerCased', lowerCased)\n this.$set(normalized, 'nestedSearchLabel', nestedSearchLabel)\n this.$set(normalized, 'isDisabled', isDisabled)\n this.$set(normalized, 'isNew', isNew)\n this.$set(normalized, 'isMatched', false)\n this.$set(normalized, 'isHighlighted', false)\n this.$set(normalized, 'isBranch', isBranch)\n this.$set(normalized, 'isGroup', isBranch && this.showAsGroup)\n this.$set(normalized, 'isLeaf', isLeaf)\n this.$set(normalized, 'isRootNode', isRootNode)\n this.$set(normalized, 'raw', raw)\n\n if (isBranch) {\n const isLoaded = Array.isArray(children)\n\n this.$set(normalized, 'childrenStates', {\n ...createAsyncOptionsStates(),\n isLoaded,\n })\n this.$set(normalized, 'isExpanded', this.showAsGroup ? this.showAsGroup : typeof isDefaultExpanded === 'boolean'\n ? isDefaultExpanded\n : level < this.defaultExpandLevel)\n this.$set(normalized, 'hasMatchedDescendants', false)\n this.$set(normalized, 'hasDisabledDescendants', false)\n this.$set(normalized, 'isExpandedOnSearch', false)\n this.$set(normalized, 'showAllChildrenOnSearch', false)\n this.$set(normalized, 'count', {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n this.$set(normalized, 'children', isLoaded\n ? this.normalize(normalized, children, prevNodeMap)\n : [])\n\n if (isDefaultExpanded === true) normalized.ancestors.forEach(ancestor => {\n ancestor.isExpanded = true\n })\n\n if (!isLoaded && typeof this.loadOptions !== 'function') {\n warning(\n () => false,\n () => 'Unloaded branch node detected. \"loadOptions\" prop is required to load its children.',\n )\n } else if (!isLoaded && normalized.isExpanded) {\n this.loadChildrenOptions(normalized)\n }\n }\n\n normalized.ancestors.forEach(ancestor => ancestor.count[ALL_DESCENDANTS]++)\n if (isLeaf) normalized.ancestors.forEach(ancestor => ancestor.count[LEAF_DESCENDANTS]++)\n if (!isRootNode) {\n parentNode.count[ALL_CHILDREN] += 1\n if (isLeaf) parentNode.count[LEAF_CHILDREN] += 1\n if (isDisabled) parentNode.hasDisabledDescendants = true\n }\n\n // Preserve previous states.\n if (prevNodeMap && prevNodeMap[id]) {\n const prev = prevNodeMap[id]\n\n normalized.isMatched = prev.isMatched\n normalized.showAllChildrenOnSearch = prev.showAllChildrenOnSearch\n normalized.isHighlighted = prev.isHighlighted\n\n if (prev.isBranch && normalized.isBranch) {\n normalized.isExpanded = prev.isExpanded\n normalized.isExpandedOnSearch = prev.isExpandedOnSearch\n // #97\n // If `isLoaded` was true, but IS NOT now, we consider this branch node\n // to be reset to unloaded state by the user of this component.\n if (prev.childrenStates.isLoaded && !normalized.childrenStates.isLoaded) {\n // Make sure the node is collapsed, then the user can load its\n // children again (by expanding).\n normalized.isExpanded = false\n // We have reset `childrenStates` and don't want to preserve states here.\n } else {\n normalized.childrenStates = { ...prev.childrenStates }\n }\n }\n }\n\n return normalized\n })\n\n if (this.branchNodesFirst) {\n const branchNodes = normalizedOptions.filter(option => option.isBranch)\n const leafNodes = normalizedOptions.filter(option => option.isLeaf)\n normalizedOptions = branchNodes.concat(leafNodes)\n }\n\n return normalizedOptions\n },\n\n loadRootOptions() {\n this.callLoadOptionsProp({\n action: LOAD_ROOT_OPTIONS,\n isPending: () => {\n return this.rootOptionsStates.isLoading\n },\n start: () => {\n this.rootOptionsStates.isLoading = true\n this.rootOptionsStates.loadingError = ''\n },\n succeed: () => {\n this.rootOptionsStates.isLoaded = true\n // Wait for `options` being re-initialized.\n this.$nextTick(() => {\n this.resetHighlightedOptionWhenNecessary(true)\n })\n },\n fail: err => {\n this.rootOptionsStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.rootOptionsStates.isLoading = false\n },\n })\n },\n\n loadChildrenOptions(parentNode) {\n // The options may be re-initialized anytime during the loading process.\n // So `parentNode` can be stale and we use `getNode()` to avoid that.\n\n const { id, raw } = parentNode\n\n this.callLoadOptionsProp({\n action: LOAD_CHILDREN_OPTIONS,\n args: {\n // We always pass the raw node instead of the normalized node to any\n // callback provided by the user of this component.\n // Because the shape of the raw node is more likely to be closing to\n // what the back-end API service of the application needs.\n parentNode: raw,\n },\n isPending: () => {\n return this.getNode(id).childrenStates.isLoading\n },\n start: () => {\n this.getNode(id).childrenStates.isLoading = true\n this.getNode(id).childrenStates.loadingError = ''\n },\n succeed: () => {\n this.getNode(id).childrenStates.isLoaded = true\n },\n fail: err => {\n this.getNode(id).childrenStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.getNode(id).childrenStates.isLoading = false\n },\n })\n },\n\n callLoadOptionsProp({ action, args, isPending, start, succeed, fail, end }) {\n if (!this.loadOptions || isPending()) {\n return\n }\n\n start()\n\n const callback = once((err, result) => {\n if (err) {\n fail(err)\n } else {\n succeed(result)\n }\n\n end()\n })\n const result = this.loadOptions({\n id: this.getInstanceId(),\n instanceId: this.getInstanceId(),\n action,\n ...args,\n callback,\n })\n\n if (isPromise(result)) {\n result.then(() => {\n callback()\n }, err => {\n callback(err)\n }).catch(err => {\n // istanbul ignore next\n console.error(err)\n })\n }\n },\n\n checkDuplication(node) {\n warning(\n () => !((node.id in this.forest.nodeMap) && !this.forest.nodeMap[node.id].isFallbackNode),\n () => `Detected duplicate presence of node id ${JSON.stringify(node.id)}. ` +\n `Their labels are \"${this.forest.nodeMap[node.id].label}\" and \"${node.label}\" respectively.`,\n )\n },\n\n verifyNodeShape(node) {\n warning(\n () => !(node.children === undefined && node.isBranch === true),\n () => 'Are you meant to declare an unloaded branch node? ' +\n '`isBranch: true` is no longer supported, please use `children: null` instead.',\n )\n },\n\n select(node) {\n if (this.disabled || node.isDisabled) {\n return\n }\n\n if (this.single) {\n this.clear()\n }\n\n const nextState = this.multiple && !this.flat\n ? this.forest.checkedStateMap[node.id] === UNCHECKED\n : !this.isSelected(node)\n\n if (nextState) {\n this._selectNode(node)\n } else {\n this._deselectNode(node)\n }\n\n this.buildForestState()\n\n if (nextState) {\n this.$emit('select', node.raw, this.getInstanceId())\n } else {\n this.$emit('deselect', node.raw, this.getInstanceId())\n }\n\n if (this.localSearch.active && nextState && (this.single || this.clearOnSelect)) {\n this.resetSearchQuery()\n }\n\n if (this.single && this.closeOnSelect) {\n this.closeMenu()\n\n // istanbul ignore else\n if (this.searchable) {\n this._blurOnSelect = true\n }\n }\n },\n\n clear() {\n if (this.hasValue) {\n if (this.single || this.allowClearingDisabled) {\n this.forest.selectedNodeIds = []\n } else /* if (this.multiple && !this.allowClearingDisabled) */ {\n this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter(nodeId =>\n this.getNode(nodeId).isDisabled,\n )\n }\n\n this.buildForestState()\n }\n },\n\n // This is meant to be called only by `select()`.\n _selectNode(node) {\n if (this.single || this.disableBranchNodes) {\n return this.addValue(node)\n }\n\n if (this.flat) {\n this.addValue(node)\n\n if (this.autoSelectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (!this.isSelected(ancestor) && !ancestor.isDisabled) this.addValue(ancestor)\n })\n } else if (this.autoSelectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!this.isSelected(descendant) && !descendant.isDisabled) this.addValue(descendant)\n })\n }\n\n return\n }\n\n const isFullyChecked = (\n node.isLeaf ||\n (/* node.isBranch && */!node.hasDisabledDescendants) ||\n (/* node.isBranch && */this.allowSelectingDisabledDescendants)\n )\n if (isFullyChecked) {\n this.addValue(node)\n }\n\n if (node.isBranch) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.addValue(descendant)\n }\n })\n }\n\n if (isFullyChecked) {\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (curr.children.every(this.isSelected)) this.addValue(curr)\n else break\n }\n }\n },\n\n // This is meant to be called only by `select()`.\n _deselectNode(node) {\n if (this.disableBranchNodes) {\n return this.removeValue(node)\n }\n\n if (this.flat) {\n this.removeValue(node)\n\n if (this.autoDeselectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (this.isSelected(ancestor) && !ancestor.isDisabled) this.removeValue(ancestor)\n })\n } else if (this.autoDeselectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (this.isSelected(descendant) && !descendant.isDisabled) this.removeValue(descendant)\n })\n }\n\n return\n }\n\n let hasUncheckedSomeDescendants = false\n if (node.isBranch) {\n this.traverseDescendantsDFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.removeValue(descendant)\n hasUncheckedSomeDescendants = true\n }\n })\n }\n\n if (\n node.isLeaf ||\n /* node.isBranch && */hasUncheckedSomeDescendants ||\n /* node.isBranch && */node.children.length === 0\n ) {\n this.removeValue(node)\n\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (this.isSelected(curr)) this.removeValue(curr)\n else break\n }\n }\n },\n\n addValue(node) {\n this.forest.selectedNodeIds.push(node.id)\n this.forest.selectedNodeMap[node.id] = true\n },\n\n removeValue(node) {\n removeFromArray(this.forest.selectedNodeIds, node.id)\n delete this.forest.selectedNodeMap[node.id]\n },\n\n removeLastValue() {\n if (!this.hasValue) return\n if (this.single) return this.clear()\n const lastValue = getLast(this.internalValue)\n const lastSelectedNode = this.getNode(lastValue)\n this.select(lastSelectedNode) // deselect\n },\n\n saveMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) this.menu.lastScrollPosition = $menu.scrollTop\n },\n\n restoreMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) $menu.scrollTop = this.menu.lastScrollPosition\n },\n },\n\n created() {\n this.verifyProps()\n this.resetFlags()\n },\n\n mounted() {\n if (this.autoFocus) this.focusInput()\n if (!this.options && !this.async && this.autoLoadRootOptions) this.loadRootOptions()\n if (this.alwaysOpen) this.openMenu()\n if (this.async && this.defaultOptions) this.handleRemoteSearch()\n },\n\n destroyed() {\n // istanbul ignore next\n this.toggleClickOutsideEvent(false)\n },\n}\n","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HiddenFields.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HiddenFields.vue?vue&type=script&lang=js\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render, staticRenderFns\nimport script from \"./HiddenFields.vue?vue&type=script&lang=js\"\nexport * from \"./HiddenFields.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4d48089a')) {\n api.createRecord('4d48089a', component.options)\n } else {\n api.reload('4d48089a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/HiddenFields.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Input.vue?vue&type=script&lang=js\"\nexport * from \"./Input.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('54844eca')) {\n api.createRecord('54844eca', component.options)\n } else {\n api.reload('54844eca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Input.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Placeholder.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Placeholder.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Placeholder.vue?vue&type=script&lang=js\"\nexport * from \"./Placeholder.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('5a99d1f3')) {\n api.createRecord('5a99d1f3', component.options)\n } else {\n api.reload('5a99d1f3', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Placeholder.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleValue.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleValue.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./SingleValue.vue?vue&type=script&lang=js\"\nexport * from \"./SingleValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('03d19b89')) {\n api.createRecord('03d19b89', component.options)\n } else {\n api.reload('03d19b89', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/SingleValue.vue\"\nexport default component.exports","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 348.333 348.333\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delete.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delete.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Delete.vue?vue&type=template&id=364b6320\"\nimport script from \"./Delete.vue?vue&type=script&lang=js\"\nexport * from \"./Delete.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('364b6320')) {\n api.createRecord('364b6320', component.options)\n } else {\n api.reload('364b6320', component.options)\n }\n module.hot.accept(\"./Delete.vue?vue&type=template&id=364b6320\", function () {\n api.rerender('364b6320', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Delete.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValueItem.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValueItem.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MultiValueItem.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValueItem.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('6dd6c8ca')) {\n api.createRecord('6dd6c8ca', component.options)\n } else {\n api.reload('6dd6c8ca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValueItem.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValue.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValue.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MultiValue.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('14fca5e8')) {\n api.createRecord('14fca5e8', component.options)\n } else {\n api.reload('14fca5e8', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValue.vue\"\nexport default component.exports","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 292.362 292.362\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Arrow.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Arrow.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Arrow.vue?vue&type=template&id=11186cd4\"\nimport script from \"./Arrow.vue?vue&type=script&lang=js\"\nexport * from \"./Arrow.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('11186cd4')) {\n api.createRecord('11186cd4', component.options)\n } else {\n api.reload('11186cd4', component.options)\n }\n module.hot.accept(\"./Arrow.vue?vue&type=template&id=11186cd4\", function () {\n api.rerender('11186cd4', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Arrow.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Control.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Control.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Control.vue?vue&type=script&lang=js\"\nexport * from \"./Control.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('2fa0a0dd')) {\n api.createRecord('2fa0a0dd', component.options)\n } else {\n api.reload('2fa0a0dd', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Control.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tip.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tip.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Tip.vue?vue&type=script&lang=js\"\nexport * from \"./Tip.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9f31bdca')) {\n api.createRecord('9f31bdca', component.options)\n } else {\n api.reload('9f31bdca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Tip.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Option.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Option.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Option.vue?vue&type=script&lang=js\"\nexport * from \"./Option.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('3dddec25')) {\n api.createRecord('3dddec25', component.options)\n } else {\n api.reload('3dddec25', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Option.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Menu.vue?vue&type=script&lang=js\"\nexport * from \"./Menu.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9bcc0be2')) {\n api.createRecord('9bcc0be2', component.options)\n } else {\n api.reload('9bcc0be2', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Menu.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuPortal.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuPortal.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MenuPortal.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPortal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4802d94a')) {\n api.createRecord('4802d94a', component.options)\n } else {\n api.reload('4802d94a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MenuPortal.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Treeselect.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Treeselect.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Treeselect.vue?vue&type=script&lang=js\"\nexport * from \"./Treeselect.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('aebf116c')) {\n api.createRecord('aebf116c', component.options)\n } else {\n api.reload('aebf116c', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Treeselect.vue\"\nexport default component.exports","import Treeselect from './components/Treeselect'\nimport treeselectMixin from './mixins/treeselectMixin'\nimport './style.less'\n\nexport default Treeselect\nexport { Treeselect, treeselectMixin }\nexport {\n // Delayed loading.\n LOAD_ROOT_OPTIONS,\n LOAD_CHILDREN_OPTIONS,\n ASYNC_SEARCH,\n} from './constants'\n\nexport const VERSION = PKG_VERSION\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-treeselect.cjs.min.js b/dist/vue-treeselect.cjs.min.js index 543b6701..acaafebe 100644 --- a/dist/vue-treeselect.cjs.min.js +++ b/dist/vue-treeselect.cjs.min.js @@ -3,5 +3,5 @@ * Released under the MIT License. * https://vue-treeselect.js.org/ */ -module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=16)}([function(e,t){e.exports=require("@babel/runtime/helpers/defineProperty")},function(e,t){e.exports=require("babel-helper-vue-jsx-merge-props")},function(e,t){e.exports=require("@babel/runtime/helpers/toConsumableArray")},function(e,t){e.exports=require("lodash/noop")},function(e,t){e.exports=require("lodash/debounce")},function(e,t){e.exports=require("is-promise")},function(e,t){e.exports=require("lodash/once")},function(e,t){e.exports=require("lodash/identity")},function(e,t){e.exports=require("lodash/constant")},function(e,t){e.exports=require("lodash/last")},function(e,t){e.exports=require("@babel/runtime/helpers/slicedToArray")},function(e,t){e.exports=require("fuzzysearch")},function(e,t){e.exports=require("watch-size")},function(e,t){e.exports=require("@babel/runtime/helpers/typeof")},function(e,t){e.exports=require("vue")},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Treeselect",(function(){return He})),n.d(t,"treeselectMixin",(function(){return de})),n.d(t,"LOAD_ROOT_OPTIONS",(function(){return Q})),n.d(t,"LOAD_CHILDREN_OPTIONS",(function(){return G})),n.d(t,"ASYNC_SEARCH",(function(){return Y})),n.d(t,"VERSION",(function(){return je}));var i=n(10),r=n.n(i),s=n(2),o=n.n(s),a=n(0),l=n.n(a),u=n(11),c=n.n(u),d=n(3),h=n.n(d).a;function p(e){return function(t){if("mousedown"===t.type&&0===t.button){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;rn.bottom?e.scrollTop=Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight):i.top-r0},single:function(){return!this.multiple},visibleOptionIds:function(){var e=this,t=[];return this.traverseAllNodesByIndex((function(n){if(e.localSearch.active&&!e.shouldOptionBeIncludedInSearchResult(n)||t.push(n.id),n.isBranch&&!e.shouldExpand(n))return!1})),t},hasVisibleOptions:function(){return 0!==this.visibleOptionIds.length},showCountOnSearchComputed:function(){return"boolean"==typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.forest.normalizedOptions.some((function(e){return e.isBranch}))},shouldFlattenOptions:function(){return this.localSearch.active&&this.flattenSearchResults}},watch:{alwaysOpen:function(e){e?this.openMenu():this.closeMenu()},branchNodesFirst:function(){this.initialize()},disabled:function(e){e&&this.menu.isOpen?this.closeMenu():e||this.menu.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize()},internalValue:function(e,t){q(e,t)&&this.$emit("input",this.getValue(),this.getInstanceId())},matchKeys:function(){this.initialize()},multiple:function(e){e&&this.buildForestState()},options:{handler:function(){this.async||(this.initialize(),this.rootOptionsStates.isLoaded=Array.isArray(this.options))},deep:!0,immediate:!0},"trigger.searchQuery":function(){this.async?this.handleRemoteSearch():this.handleLocalSearch(),this.$emit("search-change",this.trigger.searchQuery,this.getInstanceId())},value:function(){var e=this.extractCheckedNodeIdsFromValue();q(e,this.internalValue)&&this.fixSelectedNodeIds(e)}},methods:{verifyProps:function(){var e=this;if(h((function(){return!e.async||e.searchable}),(function(){return'For async search mode, the value of "searchable" prop must be true.'})),null!=this.options||this.loadOptions||h((function(){return!1}),(function(){return'Are you meant to dynamically load options? You need to use "loadOptions" prop.'})),this.flat&&h((function(){return e.multiple}),(function(){return'You are using flat mode. But you forgot to add "multiple=true"?'})),!this.flat){["autoSelectAncestors","autoSelectDescendants","autoDeselectAncestors","autoDeselectDescendants"].forEach((function(t){h((function(){return!e[t]}),(function(){return'"'.concat(t,'" only applies to flat mode.')}))}))}},resetFlags:function(){this._blurOnSelect=!1},initialize:function(){var e=this.async?this.getRemoteSearchEntry().options:this.options;if(Array.isArray(e)){var t=this.forest.nodeMap;this.forest.nodeMap=B(),this.keepDataOfSelectedNodes(t),this.forest.normalizedOptions=this.normalize(null,e,t),this.fixSelectedNodeIds(this.internalValue)}else this.forest.normalizedOptions=[]},getInstanceId:function(){return null==this.instanceId?this.id:this.instanceId},getValue:function(){var e=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var t=this.internalValue.map((function(t){return e.getNode(t).raw}));return this.multiple?t:t[0]},getNode:function(e){return h((function(){return null!=e}),(function(){return"Invalid node id: ".concat(e)})),null==e?null:e in this.forest.nodeMap?this.forest.nodeMap[e]:this.createFallbackNode(e)},createFallbackNode:function(e){var t=this.extractNodeFromValue(e),n={id:e,label:this.enhancedNormalizer(t).label||"".concat(e," (unknown)"),ancestors:[],parentNode:null,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,isNew:!1,index:[-1],level:0,raw:t};return this.$set(this.forest.nodeMap,e,n)},extractCheckedNodeIdsFromValue:function(){var e=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map((function(t){return e.enhancedNormalizer(t)})).map((function(e){return e.id}))},extractNodeFromValue:function(e){var t=this,n={id:e};return"id"===this.valueFormat?n:W(this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],(function(n){return n&&t.enhancedNormalizer(n).id===e}))||n},fixSelectedNodeIds:function(e){var t=this,n=[];if(this.single||this.flat||this.disableBranchNodes||"ALL"===this.valueConsistsOf)n=e;else if("BRANCH_PRIORITY"===this.valueConsistsOf)e.forEach((function(e){n.push(e);var i=t.getNode(e);i.isBranch&&t.traverseDescendantsBFS(i,(function(e){n.push(e.id)}))}));else if("LEAF_PRIORITY"===this.valueConsistsOf)for(var i=B(),r=e.slice();r.length;){var s=r.shift(),o=this.getNode(s);n.push(s),o.isRootNode||(o.parentNode.id in i||(i[o.parentNode.id]=o.parentNode.children.length),0==--i[o.parentNode.id]&&r.push(o.parentNode.id))}else if("ALL_WITH_INDETERMINATE"===this.valueConsistsOf)for(var a=B(),l=e.filter((function(e){var n=t.getNode(e);return n.isLeaf||0===n.children.length}));l.length;){var u=l.shift(),c=this.getNode(u);n.push(u),c.isRootNode||(c.parentNode.id in a||(a[c.parentNode.id]=c.parentNode.children.length),0==--a[c.parentNode.id]&&l.push(c.parentNode.id))}q(this.forest.selectedNodeIds,n)&&(this.forest.selectedNodeIds=n),this.buildForestState()},keepDataOfSelectedNodes:function(e){var t=this;this.forest.selectedNodeIds.forEach((function(n){if(e[n]){var i=oe(oe({},e[n]),{},{isFallbackNode:!0});t.$set(t.forest.nodeMap,n,i)}}))},isSelected:function(e){return!0===this.forest.selectedNodeMap[e.id]},traverseDescendantsBFS:function(e,t){if(e.isBranch)for(var n=e.children.slice();n.length;){var i=n[0];i.isBranch&&n.push.apply(n,o()(i.children)),t(i),n.shift()}},traverseDescendantsDFS:function(e,t){var n=this;e.isBranch&&e.children.forEach((function(e){n.traverseDescendantsDFS(e,t),t(e)}))},traverseAllNodesDFS:function(e){var t=this;this.forest.normalizedOptions.forEach((function(n){t.traverseDescendantsDFS(n,e),e(n)}))},traverseAllNodesByIndex:function(e){!function t(n){n.children.forEach((function(n){!1!==e(n)&&n.isBranch&&t(n)}))}({children:this.forest.normalizedOptions})},toggleClickOutsideEvent:function(e){e?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},getValueContainer:function(){return this.$refs&&this.$refs.control&&this.$refs.control.$refs?this.$refs.control.$refs["value-container"]:null},getInput:function(){return this.getValueContainer().$refs.input},focusInput:function(){this.getInput().focus()},blurInput:function(){this.getInput().blur()},handleMouseDown:p((function(e){(e.preventDefault(),e.stopPropagation(),!this.disabled&&this.getValueContainer())&&(this.getValueContainer().$el.contains(e.target)&&!this.menu.isOpen&&(this.openOnClick||this.trigger.isFocused)&&this.openMenu(),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags())})),handleClickOutside:function(e){this.$refs.wrapper&&!this.$refs.wrapper.contains(e.target)&&(this.blurInput(),this.closeMenu())},handleLocalSearch:function(){var e=this,t=this.trigger.searchQuery,n=function(){return e.resetHighlightedOptionWhenNecessary(!0)};if(!t)return this.localSearch.active=!1,n();this.localSearch.active=!0,this.localSearch.noResults=!0,this.traverseAllNodesDFS((function(t){t.isBranch&&(t.isExpandedOnSearch=!1,t.showAllChildrenOnSearch=!1,t.isMatched=!1,t.hasMatchedDescendants=!1,e.$set(e.localSearch.countMap,t.id,l()(l()(l()(l()({},"ALL_CHILDREN",0),"ALL_DESCENDANTS",0),"LEAF_CHILDREN",0),"LEAF_DESCENDANTS",0)))}));var i=t.trim().toLocaleLowerCase(),r=i.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS((function(t){e.searchNested&&r.length>1?t.isMatched=r.every((function(e){return le(!1,e,t.nestedSearchLabel)})):t.isMatched=e.matchKeys.some((function(n){return le(!e.disableFuzzyMatching,i,t.lowerCased[n])})),t.isMatched&&(e.localSearch.noResults=!1,t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].ALL_DESCENDANTS++})),t.isLeaf&&t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].LEAF_DESCENDANTS++})),null!==t.parentNode&&(e.localSearch.countMap[t.parentNode.id].ALL_CHILDREN+=1,t.isLeaf&&(e.localSearch.countMap[t.parentNode.id].LEAF_CHILDREN+=1))),(t.isMatched||t.isBranch&&t.isExpandedOnSearch)&&null!==t.parentNode&&(t.parentNode.isExpandedOnSearch=!0,t.parentNode.hasMatchedDescendants=!0)})),n()},handleRemoteSearch:function(){var e=this,t=this.trigger.searchQuery,n=this.getRemoteSearchEntry(),i=function(){e.initialize(),e.resetHighlightedOptionWhenNecessary(!0)};if((""===t||this.cacheOptions)&&n.isLoaded)return i();this.callLoadOptionsProp({action:Y,args:{searchQuery:t},isPending:function(){return n.isLoading},start:function(){n.isLoading=!0,n.isLoaded=!1,n.loadingError=""},succeed:function(r){n.isLoaded=!0,n.options=r,e.trigger.searchQuery===t&&i()},fail:function(e){n.loadingError=ue(e)},end:function(){n.isLoading=!1}})},getRemoteSearchEntry:function(){var e=this,t=this.trigger.searchQuery,n=this.remoteSearch[t]||oe(oe({},{isLoaded:!1,isLoading:!1,loadingError:""}),{},{options:[]});if(this.$watch((function(){return n.options}),(function(){e.trigger.searchQuery===t&&e.initialize()}),{deep:!0}),""===t){if(Array.isArray(this.defaultOptions))return n.options=this.defaultOptions,n.isLoaded=!0,n;if(!0!==this.defaultOptions)return n.isLoaded=!0,n}return this.remoteSearch[t]||this.$set(this.remoteSearch,t,n),n},shouldExpand:function(e){return this.localSearch.active?e.isExpandedOnSearch:e.isExpanded},shouldOptionBeIncludedInSearchResult:function(e){return!!e.isMatched||(!(!e.isBranch||!e.hasMatchedDescendants||this.flattenSearchResults)||!(e.isRootNode||!e.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(e){return!(this.localSearch.active&&!this.shouldOptionBeIncludedInSearchResult(e))},getControl:function(){return this.$refs.control.$el},getMenu:function(){var e=(this.appendToBody?this.$refs.portal.portalTarget:this).$refs.menu.$refs.menu;return e&&"#comment"!==e.nodeName?e:null},setCurrentHighlightedOption:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.menu.current;if(null!=i&&i in this.forest.nodeMap&&(this.forest.nodeMap[i].isHighlighted=!1),this.menu.current=e.id,e.isHighlighted=!0,this.menu.isOpen&&n){var r=function(){var n=e.id.toString().replace(/"/g,'\\"'),i=t.getMenu(),r=i.querySelector('.vue-treeselect__option[data-id="'.concat(n,'"]'));r&&f(i,r)};this.getMenu()?r():this.$nextTick(r)}},resetHighlightedOptionWhenNecessary:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.menu.current;!e&&null!=t&&t in this.forest.nodeMap&&this.shouldShowOptionInMenu(this.getNode(t))||this.highlightFirstOption()},highlightFirstOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(e))}},highlightPrevOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)-1;if(-1===e)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)+1;if(e===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var e=H()(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(e))}},resetSearchQuery:function(){this.trigger.searchQuery=""},closeMenu:function(){!this.menu.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.menu.isOpen=!1,this.toggleClickOutsideEvent(!1),this.resetSearchQuery(),this.$emit("close",this.getValue(),this.getInstanceId()))},openMenu:function(){this.disabled||this.menu.isOpen||(this.menu.isOpen=!0,this.$nextTick(this.resetHighlightedOptionWhenNecessary),this.$nextTick(this.restoreMenuScrollPosition),this.options||this.async||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.$emit("open",this.getInstanceId()))},toggleMenu:function(){this.menu.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(e){var t;this.localSearch.active?(t=e.isExpandedOnSearch=!e.isExpandedOnSearch)&&(e.showAllChildrenOnSearch=!0):t=e.isExpanded=!e.isExpanded,t&&!e.childrenStates.isLoaded&&this.loadChildrenOptions(e)},buildForestState:function(){var e=this,t=B();this.forest.selectedNodeIds.forEach((function(e){t[e]=!0})),this.forest.selectedNodeMap=t;var n=B();this.multiple&&(this.traverseAllNodesByIndex((function(e){n[e.id]=0})),this.selectedNodes.forEach((function(t){n[t.id]=2,e.flat||e.disableBranchNodes||t.ancestors.forEach((function(t){e.isSelected(t)||(n[t.id]=1)}))}))),this.forest.checkedStateMap=n},enhancedNormalizer:function(e){return oe(oe({},e),this.normalizer(e,this.getInstanceId()))},normalize:function(e,t,n){var i=this,s=t.map((function(e){return[i.enhancedNormalizer(e),e]})).map((function(t,s){var o=r()(t,2),a=o[0],u=o[1];i.checkDuplication(a),i.verifyNodeShape(a);var c=void 0!==a.id?a.id:Math.round(1e6*Math.random()),d=a.label,p=a.children,f=a.isDefaultExpanded,v=null===e,g=v||i.showAsGroup?0:e.level+1,m=Array.isArray(p)||null===p,S=!m,O=!!a.isDisabled||!i.flat&&!v&&e.isDisabled,y=!!a.isNew,b=i.matchKeys.reduce((function(e,t){return oe(oe({},e),{},l()({},t,(n=a[t],"string"==typeof n?n:"number"!=typeof n||C(n)?"":n+"").toLocaleLowerCase()));var n}),{}),E=v?b.label:e.nestedSearchLabel+" "+b.label,N=i.$set(i.forest.nodeMap,c,B());if(i.$set(N,"id",c),i.$set(N,"label",d),i.$set(N,"level",g),i.$set(N,"ancestors",v?[]:[e].concat(e.ancestors)),i.$set(N,"index",(v?[]:e.index).concat(s)),i.$set(N,"parentNode",e),i.$set(N,"lowerCased",b),i.$set(N,"nestedSearchLabel",E),i.$set(N,"isDisabled",O),i.$set(N,"isNew",y),i.$set(N,"isMatched",!1),i.$set(N,"isHighlighted",!1),i.$set(N,"isBranch",m),i.$set(N,"isGroup",m&&i.showAsGroup),i.$set(N,"isLeaf",S),i.$set(N,"isRootNode",v),i.$set(N,"raw",u),m){var _=Array.isArray(p);i.$set(N,"childrenStates",oe(oe({},{isLoaded:!1,isLoading:!1,loadingError:""}),{},{isLoaded:_})),i.$set(N,"isExpanded",i.showAsGroup?i.showAsGroup:"boolean"==typeof f?f:gs+40,u=a>s+40;r.top>=0&&r.top<=o||r.top<0&&r.bottom>0?"auto"!==e.openDirection?e.menu.placement=Re[e.openDirection]:e.menu.placement=l||!u?"bottom":"top":e.closeMenu()}},setupMenuSizeWatcher:function(){var e=this.instance.getMenu();this.menuSizeWatcher||(this.menuSizeWatcher={remove:_(e,this.adjustMenuOpenDirection)})},setupMenuResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.menuResizeAndScrollEventListeners||(this.menuResizeAndScrollEventListeners={remove:w(e,this.adjustMenuOpenDirection)})},removeMenuSizeWatcher:function(){this.menuSizeWatcher&&(this.menuSizeWatcher.remove(),this.menuSizeWatcher=null)},removeMenuResizeAndScrollEventListeners:function(){this.menuResizeAndScrollEventListeners&&(this.menuResizeAndScrollEventListeners.remove(),this.menuResizeAndScrollEventListeners=null)}},render:function(){var e=arguments[0];return e("div",{ref:"menu-container",class:"vue-treeselect__menu-container",style:this.menuContainerStyle},[e("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[this.renderMenu()])])}},void 0,void 0,!1,null,null,null).exports,Be=n(14),ze=n.n(Be);function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var Ve,Fe={name:"vue-treeselect--portal-target",inject:["instance"],watch:{"instance.menu.isOpen":function(e){e?this.setupHandlers():this.removeHandlers()},"instance.menu.placement":function(){this.updateMenuContainerOffset()}},created:function(){this.controlResizeAndScrollEventListeners=null,this.controlSizeWatcher=null},mounted:function(){this.instance.menu.isOpen&&this.setupHandlers()},methods:{setupHandlers:function(){this.updateWidth(),this.updateMenuContainerOffset(),this.setupControlResizeAndScrollEventListeners(),this.setupControlSizeWatcher()},removeHandlers:function(){this.removeControlResizeAndScrollEventListeners(),this.removeControlSizeWatcher()},setupControlResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.controlResizeAndScrollEventListeners||(this.controlResizeAndScrollEventListeners={remove:w(e,this.updateMenuContainerOffset)})},setupControlSizeWatcher:function(){var e=this,t=this.instance.getControl();this.controlSizeWatcher||(this.controlSizeWatcher={remove:_(t,(function(){e.updateWidth(),e.updateMenuContainerOffset()}))})},removeControlResizeAndScrollEventListeners:function(){this.controlResizeAndScrollEventListeners&&(this.controlResizeAndScrollEventListeners.remove(),this.controlResizeAndScrollEventListeners=null)},removeControlSizeWatcher:function(){this.controlSizeWatcher&&(this.controlSizeWatcher.remove(),this.controlSizeWatcher=null)},updateWidth:function(){var e=this.instance,t=this.$el,n=e.getControl().getBoundingClientRect();t.style.width=n.width+"px"},updateMenuContainerOffset:function(){var e=this.instance,t=e.getControl(),n=this.$el,i=t.getBoundingClientRect(),r=n.getBoundingClientRect(),s="bottom"===e.menu.placement?i.height:0,o=Math.round(i.left-r.left)+"px",a=Math.round(i.top-r.top+s)+"px";this.$refs.menu.$refs["menu-container"].style[W(["transform","webkitTransform","MozTransform","msTransform"],(function(e){return e in document.body.style}))]="translate(".concat(o,", ").concat(a,")")}},render:function(){var e=arguments[0],t=this.instance,n=["vue-treeselect__portal-target",t.wrapperClass],i={zIndex:t.zIndex};return e("div",{class:n,style:i,attrs:{"data-instance-id":t.getInstanceId()}},[e($e,{ref:"menu"})])},destroyed:function(){this.removeHandlers()}},Pe=pe({name:"vue-treeselect--menu-portal",created:function(){this.portalTarget=null},mounted:function(){this.setup()},destroyed:function(){this.teardown()},methods:{setup:function(){var e=document.createElement("div");document.body.appendChild(e),this.portalTarget=new ze.a(function(e){for(var t=1;t1?n-1:0),r=1;rn.bottom?e.scrollTop=Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight):i.top-r0},single:function(){return!this.multiple},visibleOptionIds:function(){var e=this,t=[];return this.traverseAllNodesByIndex((function(n){if(e.localSearch.active&&!e.shouldOptionBeIncludedInSearchResult(n)||t.push(n.id),n.isBranch&&!e.shouldExpand(n))return!1})),t},hasVisibleOptions:function(){return 0!==this.visibleOptionIds.length},showCountOnSearchComputed:function(){return"boolean"==typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.forest.normalizedOptions.some((function(e){return e.isBranch}))},shouldFlattenOptions:function(){return this.localSearch.active&&this.flattenSearchResults}},watch:{alwaysOpen:function(e){e?this.openMenu():this.closeMenu()},branchNodesFirst:function(){this.initialize()},disabled:function(e){e&&this.menu.isOpen?this.closeMenu():e||this.menu.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize()},internalValue:function(e,t){q(e,t)&&this.$emit("input",this.getValue(),this.getInstanceId())},matchKeys:function(){this.initialize()},multiple:function(e){e&&this.buildForestState()},options:{handler:function(){this.async||(this.initialize(),this.rootOptionsStates.isLoaded=Array.isArray(this.options))},deep:!0,immediate:!0},"trigger.searchQuery":function(){this.async?this.handleRemoteSearch():this.handleLocalSearch(),this.$emit("search-change",this.trigger.searchQuery,this.getInstanceId())},value:function(){var e=this.extractCheckedNodeIdsFromValue();q(e,this.internalValue)&&this.fixSelectedNodeIds(e)}},methods:{verifyProps:function(){var e=this;if(h((function(){return!e.async||e.searchable}),(function(){return'For async search mode, the value of "searchable" prop must be true.'})),null!=this.options||this.loadOptions||h((function(){return!1}),(function(){return'Are you meant to dynamically load options? You need to use "loadOptions" prop.'})),this.flat&&h((function(){return e.multiple}),(function(){return'You are using flat mode. But you forgot to add "multiple=true"?'})),!this.flat){["autoSelectAncestors","autoSelectDescendants","autoDeselectAncestors","autoDeselectDescendants"].forEach((function(t){h((function(){return!e[t]}),(function(){return'"'.concat(t,'" only applies to flat mode.')}))}))}},resetFlags:function(){this._blurOnSelect=!1},initialize:function(){var e=this.async?this.getRemoteSearchEntry().options:this.options;if(Array.isArray(e)){var t=this.forest.nodeMap;this.forest.nodeMap=B(),this.keepDataOfSelectedNodes(t),this.forest.normalizedOptions=this.normalize(null,e,t),this.fixSelectedNodeIds(this.internalValue)}else this.forest.normalizedOptions=[]},getInstanceId:function(){return null==this.instanceId?this.id:this.instanceId},getValue:function(){var e=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var t=this.internalValue.map((function(t){return e.getNode(t).raw}));return this.multiple?t:t[0]},getNode:function(e){return h((function(){return null!=e}),(function(){return"Invalid node id: ".concat(e)})),null==e?null:e in this.forest.nodeMap?this.forest.nodeMap[e]:this.createFallbackNode(e)},createFallbackNode:function(e){var t=this.extractNodeFromValue(e),n={id:e,label:this.enhancedNormalizer(t).label||"".concat(e," (unknown)"),ancestors:[],parentNode:null,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,isNew:!1,index:[-1],level:0,raw:t};return this.$set(this.forest.nodeMap,e,n)},extractCheckedNodeIdsFromValue:function(){var e=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map((function(t){return e.enhancedNormalizer(t)})).map((function(e){return e.id}))},extractNodeFromValue:function(e){var t=this,n={id:e};return"id"===this.valueFormat?n:W(this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],(function(n){return n&&t.enhancedNormalizer(n).id===e}))||n},fixSelectedNodeIds:function(e){var t=this,n=[];if(this.single||this.flat||this.disableBranchNodes||"ALL"===this.valueConsistsOf)n=e;else if("BRANCH_PRIORITY"===this.valueConsistsOf)e.forEach((function(e){n.push(e);var i=t.getNode(e);i.isBranch&&t.traverseDescendantsBFS(i,(function(e){n.push(e.id)}))}));else if("LEAF_PRIORITY"===this.valueConsistsOf)for(var i=B(),r=e.slice();r.length;){var s=r.shift(),o=this.getNode(s);n.push(s),o.isRootNode||(o.parentNode.id in i||(i[o.parentNode.id]=o.parentNode.children.length),0==--i[o.parentNode.id]&&r.push(o.parentNode.id))}else if("ALL_WITH_INDETERMINATE"===this.valueConsistsOf)for(var a=B(),l=e.filter((function(e){var n=t.getNode(e);return n.isLeaf||0===n.children.length}));l.length;){var u=l.shift(),c=this.getNode(u);n.push(u),c.isRootNode||(c.parentNode.id in a||(a[c.parentNode.id]=c.parentNode.children.length),0==--a[c.parentNode.id]&&l.push(c.parentNode.id))}q(this.forest.selectedNodeIds,n)&&(this.forest.selectedNodeIds=n),this.buildForestState()},keepDataOfSelectedNodes:function(e){var t=this;this.forest.selectedNodeIds.forEach((function(n){if(e[n]){var i=oe(oe({},e[n]),{},{isFallbackNode:!0});t.$set(t.forest.nodeMap,n,i)}}))},isSelected:function(e){return!0===this.forest.selectedNodeMap[e.id]},traverseDescendantsBFS:function(e,t){if(e.isBranch)for(var n=e.children.slice();n.length;){var i=n[0];i.isBranch&&n.push.apply(n,o()(i.children)),t(i),n.shift()}},traverseDescendantsDFS:function(e,t){var n=this;e.isBranch&&e.children.forEach((function(e){n.traverseDescendantsDFS(e,t),t(e)}))},traverseAllNodesDFS:function(e){var t=this;this.forest.normalizedOptions.forEach((function(n){t.traverseDescendantsDFS(n,e),e(n)}))},traverseAllNodesByIndex:function(e){!function t(n){n.children.forEach((function(n){!1!==e(n)&&n.isBranch&&t(n)}))}({children:this.forest.normalizedOptions})},toggleClickOutsideEvent:function(e){e?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},getValueContainer:function(){return this.$refs&&this.$refs.control&&this.$refs.control.$refs?this.$refs.control.$refs["value-container"]:null},getInput:function(){return this.getValueContainer().$refs.input},focusInput:function(){this.getInput().focus()},blurInput:function(){this.getInput().blur()},handleMouseDown:p((function(e){(e.preventDefault(),e.stopPropagation(),!this.disabled&&this.getValueContainer())&&(this.getValueContainer().$el.contains(e.target)&&!this.menu.isOpen&&(this.openOnClick||this.trigger.isFocused)&&this.openMenu(),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags())})),handleClickOutside:function(e){this.$refs.wrapper&&!this.$refs.wrapper.contains(e.target)&&(this.blurInput(),this.closeMenu())},handleLocalSearch:function(){var e=this,t=this.trigger.searchQuery,n=function(){return e.resetHighlightedOptionWhenNecessary(!0)};if(!t)return this.localSearch.active=!1,n();this.localSearch.active=!0,this.localSearch.noResults=!0,this.traverseAllNodesDFS((function(t){t.isBranch&&(t.isExpandedOnSearch=!1,t.showAllChildrenOnSearch=!1,t.isMatched=!1,t.hasMatchedDescendants=!1,e.$set(e.localSearch.countMap,t.id,l()(l()(l()(l()({},"ALL_CHILDREN",0),"ALL_DESCENDANTS",0),"LEAF_CHILDREN",0),"LEAF_DESCENDANTS",0)))}));var i=t.trim().toLocaleLowerCase(),r=i.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS((function(t){e.searchNested&&r.length>1?t.isMatched=r.every((function(e){return le(!1,e,t.nestedSearchLabel)})):t.isMatched=e.matchKeys.some((function(n){return le(!e.disableFuzzyMatching,i,t.lowerCased[n])})),t.isMatched&&(e.localSearch.noResults=!1,t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].ALL_DESCENDANTS++})),t.isLeaf&&t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].LEAF_DESCENDANTS++})),null!==t.parentNode&&(e.localSearch.countMap[t.parentNode.id].ALL_CHILDREN+=1,t.isLeaf&&(e.localSearch.countMap[t.parentNode.id].LEAF_CHILDREN+=1))),(t.isMatched||t.isBranch&&t.isExpandedOnSearch)&&null!==t.parentNode&&(t.parentNode.isExpandedOnSearch=!0,t.parentNode.hasMatchedDescendants=!0)})),n()},handleRemoteSearch:function(){var e=this,t=this.trigger.searchQuery,n=this.getRemoteSearchEntry(),i=function(){e.initialize(),e.resetHighlightedOptionWhenNecessary(!0)};if((""===t||this.cacheOptions)&&n.isLoaded)return i();this.callLoadOptionsProp({action:Y,args:{searchQuery:t},isPending:function(){return n.isLoading},start:function(){n.isLoading=!0,n.isLoaded=!1,n.loadingError=""},succeed:function(r){n.isLoaded=!0,n.options=r,e.trigger.searchQuery===t&&i()},fail:function(e){n.loadingError=ue(e)},end:function(){n.isLoading=!1}})},getRemoteSearchEntry:function(){var e=this,t=this.trigger.searchQuery,n=this.remoteSearch[t]||oe(oe({},{isLoaded:!1,isLoading:!1,loadingError:""}),{},{options:[]});if(this.$watch((function(){return n.options}),(function(){e.trigger.searchQuery===t&&e.initialize()}),{deep:!0}),""===t){if(Array.isArray(this.defaultOptions))return n.options=this.defaultOptions,n.isLoaded=!0,n;if(!0!==this.defaultOptions)return n.isLoaded=!0,n}return this.remoteSearch[t]||this.$set(this.remoteSearch,t,n),n},shouldExpand:function(e){return this.localSearch.active?e.isExpandedOnSearch:e.isExpanded},shouldOptionBeIncludedInSearchResult:function(e){return!!e.isMatched||(!(!e.isBranch||!e.hasMatchedDescendants||this.flattenSearchResults)||!(e.isRootNode||!e.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(e){return!(this.localSearch.active&&!this.shouldOptionBeIncludedInSearchResult(e))},getControl:function(){return this.$refs.control.$el},getMenu:function(){var e=(this.appendToBody?this.$refs.portal.portalTarget:this).$refs.menu.$refs.menu;return e&&"#comment"!==e.nodeName?e:null},setCurrentHighlightedOption:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.menu.current;if(null!=i&&i in this.forest.nodeMap&&(this.forest.nodeMap[i].isHighlighted=!1),this.menu.current=e.id,e.isHighlighted=!0,this.menu.isOpen&&n){var r=function(){var n=e.id.toString().replace(/"/g,'\\"'),i=t.getMenu(),r=i.querySelector('.vue-treeselect__option[data-id="'.concat(n,'"]'));r&&f(i,r)};this.getMenu()?r():this.$nextTick(r)}},resetHighlightedOptionWhenNecessary:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.menu.current;!e&&null!=t&&t in this.forest.nodeMap&&this.shouldShowOptionInMenu(this.getNode(t))||this.highlightFirstOption()},highlightFirstOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(e))}},highlightPrevOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)-1;if(-1===e)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)+1;if(e===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var e=H()(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(e))}},resetSearchQuery:function(){this.trigger.searchQuery=""},closeMenu:function(){!this.menu.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.menu.isOpen=!1,this.toggleClickOutsideEvent(!1),this.resetSearchQuery(),this.$emit("close",this.getValue(),this.getInstanceId()))},openMenu:function(){this.disabled||this.menu.isOpen||(this.menu.isOpen=!0,this.$nextTick(this.resetHighlightedOptionWhenNecessary),this.$nextTick(this.restoreMenuScrollPosition),this.options||this.async||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.$emit("open",this.getInstanceId()))},toggleMenu:function(){this.menu.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(e){var t;this.localSearch.active?(t=e.isExpandedOnSearch=!e.isExpandedOnSearch)&&(e.showAllChildrenOnSearch=!0):t=e.isExpanded=!e.isExpanded,t&&!e.childrenStates.isLoaded&&this.loadChildrenOptions(e)},buildForestState:function(){var e=this,t=B();this.forest.selectedNodeIds.forEach((function(e){t[e]=!0})),this.forest.selectedNodeMap=t;var n=B();this.multiple&&(this.traverseAllNodesByIndex((function(e){n[e.id]=0})),this.selectedNodes.forEach((function(t){n[t.id]=2,e.flat||e.disableBranchNodes||t.ancestors.forEach((function(t){e.isSelected(t)||(n[t.id]=1)}))}))),this.forest.checkedStateMap=n},enhancedNormalizer:function(e){return oe(oe({},e),this.normalizer(e,this.getInstanceId()))},normalize:function(e,t,n){var i=this,s=t.map((function(e){return[i.enhancedNormalizer(e),e]})).map((function(t,s){var o=r()(t,2),a=o[0],u=o[1];i.checkDuplication(a),i.verifyNodeShape(a);var c=void 0!==a.id?a.id:Math.round(1e6*Math.random()),d=a.label,p=a.children,f=a.isDefaultExpanded,v=null===e,m=v||i.showAsGroup?0:e.level+1,g=Array.isArray(p)||null===p,S=!g,O=!!a.isDisabled||!i.flat&&!v&&e.isDisabled,y=!!a.isNew,b=i.matchKeys.reduce((function(e,t){return oe(oe({},e),{},l()({},t,(n=a[t],"string"==typeof n?n:"number"!=typeof n||C(n)?"":n+"").toLocaleLowerCase()));var n}),{}),_=v?b.label:e.nestedSearchLabel+" "+b.label,E=i.$set(i.forest.nodeMap,c,B());if(i.$set(E,"id",c),i.$set(E,"label",d),i.$set(E,"level",m),i.$set(E,"ancestors",v?[]:[e].concat(e.ancestors)),i.$set(E,"index",(v?[]:e.index).concat(s)),i.$set(E,"parentNode",e),i.$set(E,"lowerCased",b),i.$set(E,"nestedSearchLabel",_),i.$set(E,"isDisabled",O),i.$set(E,"isNew",y),i.$set(E,"isMatched",!1),i.$set(E,"isHighlighted",!1),i.$set(E,"isBranch",g),i.$set(E,"isGroup",g&&i.showAsGroup),i.$set(E,"isLeaf",S),i.$set(E,"isRootNode",v),i.$set(E,"raw",u),g){var N=Array.isArray(p);i.$set(E,"childrenStates",oe(oe({},{isLoaded:!1,isLoading:!1,loadingError:""}),{},{isLoaded:N})),i.$set(E,"isExpanded",i.showAsGroup?i.showAsGroup:"boolean"==typeof f?f:ms+40,u=a>s+40;r.top>=0&&r.top<=o||r.top<0&&r.bottom>0?"auto"!==e.openDirection?e.menu.placement=qe[e.openDirection]:e.menu.placement=l||!u?"bottom":"top":e.closeMenu()}},setupMenuSizeWatcher:function(){var e=this.instance.getMenu();this.menuSizeWatcher||(this.menuSizeWatcher={remove:N(e,this.adjustMenuOpenDirection)})},setupMenuResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.menuResizeAndScrollEventListeners||(this.menuResizeAndScrollEventListeners={remove:w(e,this.adjustMenuOpenDirection)})},removeMenuSizeWatcher:function(){this.menuSizeWatcher&&(this.menuSizeWatcher.remove(),this.menuSizeWatcher=null)},removeMenuResizeAndScrollEventListeners:function(){this.menuResizeAndScrollEventListeners&&(this.menuResizeAndScrollEventListeners.remove(),this.menuResizeAndScrollEventListeners=null)}},render:function(){var e=arguments[0];return e("div",{ref:"menu-container",class:"vue-treeselect__menu-container",style:this.menuContainerStyle},[e("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[this.renderMenu()])])}},void 0,void 0,!1,null,null,null).exports,Ge=n(14),Ye=n.n(Ge);function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var Xe,Ue={name:"vue-treeselect--portal-target",inject:["instance"],watch:{"instance.menu.isOpen":function(e){e?this.setupHandlers():this.removeHandlers()},"instance.menu.placement":function(){this.updateMenuContainerOffset()}},created:function(){this.controlResizeAndScrollEventListeners=null,this.controlSizeWatcher=null},mounted:function(){this.instance.menu.isOpen&&this.setupHandlers()},methods:{setupHandlers:function(){this.updateWidth(),this.updateMenuContainerOffset(),this.setupControlResizeAndScrollEventListeners(),this.setupControlSizeWatcher()},removeHandlers:function(){this.removeControlResizeAndScrollEventListeners(),this.removeControlSizeWatcher()},setupControlResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.controlResizeAndScrollEventListeners||(this.controlResizeAndScrollEventListeners={remove:w(e,this.updateMenuContainerOffset)})},setupControlSizeWatcher:function(){var e=this,t=this.instance.getControl();this.controlSizeWatcher||(this.controlSizeWatcher={remove:N(t,(function(){e.updateWidth(),e.updateMenuContainerOffset()}))})},removeControlResizeAndScrollEventListeners:function(){this.controlResizeAndScrollEventListeners&&(this.controlResizeAndScrollEventListeners.remove(),this.controlResizeAndScrollEventListeners=null)},removeControlSizeWatcher:function(){this.controlSizeWatcher&&(this.controlSizeWatcher.remove(),this.controlSizeWatcher=null)},updateWidth:function(){var e=this.instance,t=this.$el,n=e.getControl().getBoundingClientRect();t.style.width=n.width+"px"},updateMenuContainerOffset:function(){var e=this.instance,t=e.getControl(),n=this.$el,i=t.getBoundingClientRect(),r=n.getBoundingClientRect(),s="bottom"===e.menu.placement?i.height:0,o=Math.round(i.left-r.left)+"px",a=Math.round(i.top-r.top+s)+"px";this.$refs.menu.$refs["menu-container"].style[W(["transform","webkitTransform","MozTransform","msTransform"],(function(e){return e in document.body.style}))]="translate(".concat(o,", ").concat(a,")")}},render:function(){var e=arguments[0],t=this.instance,n=["vue-treeselect__portal-target",t.wrapperClass],i={zIndex:t.zIndex};return e("div",{class:n,style:i,attrs:{"data-instance-id":t.getInstanceId()}},[e(Qe,{ref:"menu"})])},destroyed:function(){this.removeHandlers()}},Je=pe({name:"vue-treeselect--menu-portal",created:function(){this.portalTarget=null},mounted:function(){this.setup()},destroyed:function(){this.teardown()},methods:{setup:function(){var e=document.createElement("div");document.body.appendChild(e),this.portalTarget=new Ye.a(function(e){for(var t=1;t scrollingReact.bottom) {\n $scrollingEl.scrollTop = Math.min(\n $focusedEl.offsetTop + $focusedEl.clientHeight - $scrollingEl.offsetHeight + overScroll,\n $scrollingEl.scrollHeight,\n )\n } else if (focusedRect.top - overScroll < scrollingReact.top) {\n $scrollingEl.scrollTop = Math.max($focusedEl.offsetTop - overScroll, 0)\n }\n}\n","import watchSizeForBrowsersOtherThanIE9 from 'watch-size'\nimport { removeFromArray } from './removeFromArray'\n\nlet intervalId\nconst registered = []\nconst INTERVAL_DURATION = 100\n\nfunction run() {\n intervalId = setInterval(() => {\n registered.forEach(test)\n }, INTERVAL_DURATION)\n}\n\nfunction stop() {\n clearInterval(intervalId)\n intervalId = null\n}\n\nfunction test(item) {\n const { $el, listener, lastWidth, lastHeight } = item\n const width = $el.offsetWidth\n const height = $el.offsetHeight\n\n if (lastWidth !== width || lastHeight !== height) {\n item.lastWidth = width\n item.lastHeight = height\n\n listener({ width, height })\n }\n}\n\nfunction watchSizeForIE9($el, listener) {\n const item = {\n $el,\n listener,\n lastWidth: null,\n lastHeight: null,\n }\n const unwatch = () => {\n removeFromArray(registered, item)\n if (!registered.length) stop()\n }\n\n registered.push(item)\n // The original watch-size will call the listener on initialization.\n // Keep the same behavior here.\n test(item)\n run()\n\n return unwatch\n}\n\nexport function watchSize($el, listener) {\n // See: https://stackoverflow.com/a/31293352\n const isIE9 = document.documentMode === 9\n // watch-size will call the listener on initialization.\n // Disable this behavior with a lock to achieve a clearer code logic.\n let locked = true\n const wrappedListener = (...args) => locked || listener(...args)\n const implementation = isIE9\n ? watchSizeForIE9\n : watchSizeForBrowsersOtherThanIE9\n const removeSizeWatcher = implementation($el, wrappedListener)\n locked = false // unlock after initialization\n\n return removeSizeWatcher\n}\n","export function removeFromArray(arr, elem) {\n const idx = arr.indexOf(elem)\n if (idx !== -1) arr.splice(idx, 1)\n}\n","function findScrollParents($el) {\n const $scrollParents = []\n let $parent = $el.parentNode\n\n while ($parent && $parent.nodeName !== 'BODY' && $parent.nodeType === document.ELEMENT_NODE) {\n if (isScrollElment($parent)) $scrollParents.push($parent)\n $parent = $parent.parentNode\n }\n $scrollParents.push(window)\n\n return $scrollParents\n}\n\nfunction isScrollElment($el) {\n // Firefox wants us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getComputedStyle($el)\n return /(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)\n}\n\nexport function setupResizeAndScrollEventListeners($el, listener) {\n const $scrollParents = findScrollParents($el)\n\n window.addEventListener('resize', listener, { passive: true })\n $scrollParents.forEach(scrollParent => {\n scrollParent.addEventListener('scroll', listener, { passive: true })\n })\n\n return function removeEventListeners() {\n window.removeEventListener('resize', listener, { passive: true })\n $scrollParents.forEach($scrollParent => {\n $scrollParent.removeEventListener('scroll', listener, { passive: true })\n })\n }\n}\n","export function isNaN(x) {\n return x !== x\n}\n","export const createMap = () => Object.create(null)\n","function isPlainObject(value) {\n if (value == null || typeof value !== 'object') return false\n return Object.getPrototypeOf(value) === Object.prototype\n}\n\nfunction copy(obj, key, value) {\n if (isPlainObject(value)) {\n obj[key] || (obj[key] = {})\n deepExtend(obj[key], value)\n } else {\n obj[key] = value\n }\n}\n\nexport function deepExtend(target, source) {\n if (isPlainObject(source)) {\n const keys = Object.keys(source)\n\n for (let i = 0, len = keys.length; i < len; i++) {\n copy(target, keys[i], source[keys[i]])\n }\n }\n\n return target\n}\n","export function includes(arrOrStr, elem) {\n return arrOrStr.indexOf(elem) !== -1\n}\n","export function find(arr, predicate, ctx) {\n for (let i = 0, len = arr.length; i < len; i++) {\n if (predicate.call(ctx, arr[i], i, arr)) return arr[i]\n }\n return undefined\n}\n","export function quickDiff(arrA, arrB) {\n if (arrA.length !== arrB.length) return true\n\n for (let i = 0; i < arrA.length; i++) {\n if (arrA[i] !== arrB[i]) return true\n }\n\n return false\n}\n","// Magic value that indicates a root level node.\nexport const NO_PARENT_NODE = null\n\n// Types of checked state.\nexport const UNCHECKED = 0\nexport const INDETERMINATE = 1\nexport const CHECKED = 2\n\n// Types of count number.\nexport const ALL_CHILDREN = 'ALL_CHILDREN'\nexport const ALL_DESCENDANTS = 'ALL_DESCENDANTS'\nexport const LEAF_CHILDREN = 'LEAF_CHILDREN'\nexport const LEAF_DESCENDANTS = 'LEAF_DESCENDANTS'\n\n// Action types of delayed loading.\nexport const LOAD_ROOT_OPTIONS = 'LOAD_ROOT_OPTIONS'\nexport const LOAD_CHILDREN_OPTIONS = 'LOAD_CHILDREN_OPTIONS'\nexport const ASYNC_SEARCH = 'ASYNC_SEARCH'\n\n// Acceptable values of `valueConsistsOf` prop.\nexport const ALL = 'ALL'\nexport const BRANCH_PRIORITY = 'BRANCH_PRIORITY'\nexport const LEAF_PRIORITY = 'LEAF_PRIORITY'\nexport const ALL_WITH_INDETERMINATE = 'ALL_WITH_INDETERMINATE'\n\n// Acceptable values of `sortValueBy` prop.\nexport const ORDER_SELECTED = 'ORDER_SELECTED'\nexport const LEVEL = 'LEVEL'\nexport const INDEX = 'INDEX'\n\n// Key codes look-up table.\nexport const KEY_CODES = {\n BACKSPACE: 8,\n ENTER: 13,\n ESCAPE: 27,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n}\n\n// Other constants.\nexport const INPUT_DEBOUNCE_DELAY = process.env.NODE_ENV === 'testing'\n ? /* to speed up unit testing */ 10\n : /* istanbul ignore next */ 200\nexport const MIN_INPUT_WIDTH = 5\nexport const MENU_BUFFER = 40\n","import fuzzysearch from 'fuzzysearch'\n\nimport {\n warning,\n onLeftClick, scrollIntoView,\n isNaN, isPromise, once,\n identity, constant, createMap,\n quickDiff, last as getLast, includes, find, removeFromArray,\n} from '../utils'\n\nimport {\n NO_PARENT_NODE,\n UNCHECKED, INDETERMINATE, CHECKED,\n LOAD_ROOT_OPTIONS, LOAD_CHILDREN_OPTIONS, ASYNC_SEARCH,\n ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE,\n ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS,\n ORDER_SELECTED, LEVEL, INDEX,\n} from '../constants'\n\nfunction sortValueByIndex(a, b) {\n let i = 0\n do {\n if (a.level < i) return -1\n if (b.level < i) return 1\n if (a.index[i] !== b.index[i]) return a.index[i] - b.index[i]\n i++\n } while (true)\n}\n\nfunction sortValueByLevel(a, b) {\n return a.level === b.level\n ? sortValueByIndex(a, b)\n : a.level - b.level\n}\n\nfunction createAsyncOptionsStates() {\n return {\n isLoaded: false,\n isLoading: false,\n loadingError: '',\n }\n}\n\nfunction stringifyOptionPropValue(value) {\n if (typeof value === 'string') return value\n if (typeof value === 'number' && !isNaN(value)) return value + ''\n // istanbul ignore next\n return ''\n}\n\nfunction match(enableFuzzyMatch, needle, haystack) {\n return enableFuzzyMatch\n ? fuzzysearch(needle, haystack)\n : includes(haystack, needle)\n}\n\nfunction getErrorMessage(err) {\n return err.message || /* istanbul ignore next */String(err)\n}\n\nlet instanceId = 0\n\nexport default {\n provide() {\n return {\n // Enable access to the instance of root component of vue-treeselect\n // across hierarchy.\n instance: this,\n }\n },\n\n props: {\n /**\n * Whether to allow resetting value even if there are disabled selected nodes.\n */\n allowClearingDisabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.\n * You may want to use this in conjunction with `allowClearingDisabled` prop.\n */\n allowSelectingDisabledDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the menu should be always open.\n */\n alwaysOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Append the menu to ?\n */\n appendToBody: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable async search mode.\n */\n async: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically focus the component on mount?\n */\n autoFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.\n */\n autoLoadRootOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.\n */\n autoDeselectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user deselects a node, automatically deselect its descendants. Applies to flat mode only.\n */\n autoDeselectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its ancestors. Applies to flat mode only.\n */\n autoSelectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its descendants. Applies to flat mode only.\n */\n autoSelectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether pressing backspace key removes the last item if there is no text input.\n */\n backspaceRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Function that processes before clearing all input fields.\n * Return `false` to prevent value from being cleared.\n * @type {function(): (boolean|Promise)}\n */\n beforeClearAll: {\n type: Function,\n default: constant(true),\n },\n\n /**\n * Show branch nodes before leaf nodes?\n */\n branchNodesFirst: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Should cache results of every search request?\n */\n cacheOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Show an \"×\" button that resets value?\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Title for the \"×\" button when `multiple: true`.\n */\n clearAllText: {\n type: String,\n default: 'Clear all',\n },\n\n /**\n * Whether to clear the search input after selecting.\n * Use only when `multiple` is `true`.\n * For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.\n */\n clearOnSelect: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Title for the \"×\" button.\n */\n clearValueText: {\n type: String,\n default: 'Clear value',\n },\n\n /**\n * Whether to close the menu after selecting an option?\n * Use only when `multiple` is `true`.\n */\n closeOnSelect: {\n type: Boolean,\n default: true,\n },\n\n /**\n * How many levels of branch nodes should be automatically expanded when loaded.\n * Set `Infinity` to make all branch nodes expanded by default.\n */\n defaultExpandLevel: {\n type: Number,\n default: 0,\n },\n\n /**\n * The default set of options to show before the user starts searching. Used for async search mode.\n * When set to `true`, the results for search query as a empty string will be autoloaded.\n * @type {boolean|node[]}\n */\n defaultOptions: {\n default: false,\n },\n\n /**\n * Whether pressing delete key removes the last item if there is no text input.\n */\n deleteRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Delimiter to use to join multiple values for the hidden field value.\n */\n delimiter: {\n type: String,\n default: ',',\n },\n\n /**\n * Only show the nodes that match the search value directly, excluding its ancestors.\n *\n * @type {Object}\n */\n flattenSearchResults: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Prevent branch nodes from being selected?\n */\n disableBranchNodes: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the control?\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the fuzzy matching functionality?\n */\n disableFuzzyMatching: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable flat mode or not. Non-flat mode (default) means:\n * - Whenever a branch node gets checked, all its children will be checked too\n * - Whenever a branch node has all children checked, the branch node itself will be checked too\n * Set `true` to disable this mechanism\n */\n flat: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Will be passed with all events as the last param.\n * Useful for identifying events origin.\n */\n instanceId: {\n // Add two trailing \"$\" to distinguish from explictly specified ids.\n default: () => `${instanceId++}$$`,\n type: [ String, Number ],\n },\n\n /**\n * Joins multiple values into a single form field with the `delimiter` (legacy mode).\n */\n joinValues: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Limit the display of selected options.\n * The rest will be hidden within the limitText string.\n */\n limit: {\n type: Number,\n default: Infinity,\n },\n\n /**\n * Function that processes the message shown when selected elements pass the defined limit.\n * @type {function(number): string}\n */\n limitText: {\n type: Function,\n default: function limitTextDefault(count) { // eslint-disable-line func-name-matching\n return `and ${count} more`\n },\n },\n\n /**\n * Text displayed when loading options.\n */\n loadingText: {\n type: String,\n default: 'Loading...',\n },\n\n /**\n * Used for dynamically loading options.\n * @type {function({action: string, callback: (function((Error|string)=): void), parentNode: node=, instanceId}): void}\n */\n loadOptions: {\n type: Function,\n },\n\n /**\n * Which node properties to filter on.\n */\n matchKeys: {\n type: Array,\n default: constant([ 'label' ]),\n },\n\n /**\n * Sets `maxHeight` style value of the menu.\n */\n maxHeight: {\n type: Number,\n default: 300,\n },\n\n /**\n * Set `true` to allow selecting multiple options (a.k.a., multi-select mode).\n */\n multiple: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Generates a hidden tag with this field name for html forms.\n */\n name: {\n type: String,\n },\n\n /**\n * Text displayed when a branch node has no children.\n */\n noChildrenText: {\n type: String,\n default: 'No sub-options.',\n },\n\n /**\n * Text displayed when there are no available options.\n */\n noOptionsText: {\n type: String,\n default: 'No options available.',\n },\n\n /**\n * Text displayed when there are no matching search results.\n */\n noResultsText: {\n type: String,\n default: 'No results found...',\n },\n\n /**\n * Used for normalizing source data.\n * @type {function(node, instanceId): node}\n */\n normalizer: {\n type: Function,\n default: identity,\n },\n\n /**\n * By default (`auto`), the menu will open below the control. If there is not\n * enough space, vue-treeselect will automatically flip the menu.\n * You can use one of other four options to force the menu to be always opened\n * to specified direction.\n * Acceptable values:\n * - `\"auto\"`\n * - `\"below\"`\n * - `\"bottom\"`\n * - `\"above\"`\n * - `\"top\"`\n */\n openDirection: {\n type: String,\n default: 'auto',\n validator(value) {\n const acceptableValues = [ 'auto', 'top', 'bottom', 'above', 'below' ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to automatically open the menu when the control is clicked.\n */\n openOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether to automatically open the menu when the control is focused.\n */\n openOnFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Array of available options.\n * @type {node[]}\n */\n options: {\n type: Array,\n },\n\n /**\n * Field placeholder, displayed when there's no value.\n */\n placeholder: {\n type: String,\n default: 'Select...',\n },\n\n /**\n * Applies HTML5 required attribute when needed.\n */\n required: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text displayed asking user whether to retry loading children options.\n */\n retryText: {\n type: String,\n default: 'Retry?',\n },\n\n /**\n * Title for the retry button.\n */\n retryTitle: {\n type: String,\n default: 'Click to retry',\n },\n\n /**\n * Enable searching feature?\n */\n searchable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Search in ancestor nodes too.\n */\n searchNested: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text tip to prompt for async search.\n */\n searchPromptText: {\n type: String,\n default: 'Type to search...',\n },\n\n showAsGroup: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to show a children count next to the label of each branch node.\n */\n showCount: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Used in conjunction with `showCount` to specify which type of count number should be displayed.\n * Acceptable values:\n * - \"ALL_CHILDREN\"\n * - \"ALL_DESCENDANTS\"\n * - \"LEAF_CHILDREN\"\n * - \"LEAF_DESCENDANTS\"\n */\n showCountOf: {\n type: String,\n default: ALL_CHILDREN,\n validator(value) {\n const acceptableValues = [ ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to show children count when searching.\n * Fallbacks to the value of `showCount` when not specified.\n * @type {boolean}\n */\n showCountOnSearch: null,\n\n /**\n * In which order the selected options should be displayed in trigger & sorted in `value` array.\n * Used for multi-select mode only.\n * Acceptable values:\n * - \"ORDER_SELECTED\"\n * - \"LEVEL\"\n * - \"INDEX\"\n */\n sortValueBy: {\n type: String,\n default: ORDER_SELECTED,\n validator(value) {\n const acceptableValues = [ ORDER_SELECTED, LEVEL, INDEX ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Tab index of the control.\n */\n tabIndex: {\n type: Number,\n default: 0,\n },\n\n /**\n * The value of the control.\n * Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.\n * Its format depends on the `valueFormat` prop.\n * For most cases, just use `v-model` instead.\n * @type {?Array}\n */\n value: null,\n\n /**\n * Which kind of nodes should be included in the `value` array in multi-select mode.\n * Acceptable values:\n * - \"ALL\" - Any node that is checked will be included in the `value` array\n * - \"BRANCH_PRIORITY\" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array\n * - \"LEAF_PRIORITY\" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included\n * - \"ALL_WITH_INDETERMINATE\" - Any node that is checked will be included in the `value` array, plus indeterminate nodes\n */\n valueConsistsOf: {\n type: String,\n default: BRANCH_PRIORITY,\n validator(value) {\n const acceptableValues = [ ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Format of `value` prop.\n * Note that, when set to `\"object\"`, only `id` & `label` properties are required in each `node` object in `value` prop.\n * Acceptable values:\n * - \"id\"\n * - \"object\"\n */\n valueFormat: {\n type: String,\n default: 'id',\n },\n\n /**\n * z-index of the menu.\n */\n zIndex: {\n type: [ Number, String ],\n default: 999,\n },\n },\n\n data() {\n return {\n trigger: {\n // Is the control focused?\n isFocused: false,\n // User entered search query - value of the input.\n searchQuery: '',\n },\n\n menu: {\n // Is the menu opened?\n isOpen: false,\n // Id of current highlighted option.\n current: null,\n // The scroll position before last menu closing.\n lastScrollPosition: 0,\n // Which direction to open the menu.\n placement: 'bottom',\n },\n\n forest: {\n // Normalized options.\n normalizedOptions: [],\n // map for quick look-up.\n nodeMap: createMap(),\n // map, used for multi-select mode.\n checkedStateMap: createMap(),\n // Id list of all selected options.\n selectedNodeIds: this.extractCheckedNodeIdsFromValue(),\n // map for fast checking:\n // if (forest.selectedNodeIds.indexOf(id) !== -1) forest.selectedNodeMap[id] === true\n selectedNodeMap: createMap(),\n },\n\n // States of root options.\n rootOptionsStates: createAsyncOptionsStates(),\n\n localSearch: {\n // Has user entered any query to search local options?\n active: false,\n // Has any options matched the search query?\n noResults: true,\n // map for counting matched children/descendants.\n countMap: createMap(),\n },\n\n // map.\n remoteSearch: createMap(),\n }\n },\n\n computed: {\n /* eslint-disable valid-jsdoc */\n /**\n * Normalized nodes that have been selected.\n * @type {node[]}\n */\n selectedNodes() {\n return this.forest.selectedNodeIds.map(this.getNode)\n },\n /**\n * Id list of selected nodes with `sortValueBy` prop applied.\n * @type {nodeId[]}\n */\n internalValue() {\n let internalValue\n\n // istanbul ignore else\n const valueConsistsOf = this.showAsGroup ? LEAF_PRIORITY : this.valueConsistsOf\n if (this.single || this.flat || this.disableBranchNodes || valueConsistsOf === ALL) {\n internalValue = this.forest.selectedNodeIds.slice()\n } else if (valueConsistsOf === BRANCH_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isRootNode) return true\n return !this.isSelected(node.parentNode)\n })\n } else if (valueConsistsOf === LEAF_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isLeaf) return true\n return node.children.length === 0\n })\n } else if (valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const indeterminateNodeIds = []\n internalValue = this.forest.selectedNodeIds.slice()\n this.selectedNodes.forEach(selectedNode => {\n selectedNode.ancestors.forEach(ancestor => {\n if (includes(indeterminateNodeIds, ancestor.id)) return\n if (includes(internalValue, ancestor.id)) return\n indeterminateNodeIds.push(ancestor.id)\n })\n })\n internalValue.push(...indeterminateNodeIds)\n }\n\n if (this.sortValueBy === LEVEL) {\n internalValue.sort((a, b) => sortValueByLevel(this.getNode(a), this.getNode(b)))\n } else if (this.sortValueBy === INDEX) {\n internalValue.sort((a, b) => sortValueByIndex(this.getNode(a), this.getNode(b)))\n }\n\n return internalValue\n },\n /**\n * Has any option been selected?\n * @type {boolean}\n */\n hasValue() {\n return this.internalValue.length > 0\n },\n /**\n * Single-select mode?\n * @type {boolean}\n */\n single() {\n return !this.multiple\n },\n /**\n * Id list of nodes displayed in the menu. Nodes that are considered NOT visible:\n * - descendants of a collapsed branch node\n * - in local search mode, nodes that are not matched, unless\n * - it's a branch node and has matched descendants\n * - it's a leaf node and its parent node is explicitly set to show all children\n * @type {id[]}\n */\n visibleOptionIds() {\n const visibleOptionIds = []\n\n this.traverseAllNodesByIndex(node => {\n if (!this.localSearch.active || this.shouldOptionBeIncludedInSearchResult(node)) {\n visibleOptionIds.push(node.id)\n }\n // Skip the traversal of descendants of a branch node if it's not expanded.\n if (node.isBranch && !this.shouldExpand(node)) {\n return false\n }\n })\n\n return visibleOptionIds\n },\n /**\n * Has any option should be displayed in the menu?\n * @type {boolean}\n */\n hasVisibleOptions() {\n return this.visibleOptionIds.length !== 0\n },\n /**\n * Should show children count when searching?\n * @type {boolean}\n */\n showCountOnSearchComputed() {\n // Vue doesn't allow setting default prop value based on another prop value.\n // So use computed property as a workaround.\n // https://github.com/vuejs/vue/issues/6358\n return typeof this.showCountOnSearch === 'boolean'\n ? this.showCountOnSearch\n : this.showCount\n },\n /**\n * Is there any branch node?\n * @type {boolean}\n */\n hasBranchNodes() {\n return this.forest.normalizedOptions.some(rootNode => rootNode.isBranch)\n },\n shouldFlattenOptions() {\n return this.localSearch.active && this.flattenSearchResults\n },\n /* eslint-enable valid-jsdoc */\n },\n\n watch: {\n alwaysOpen(newValue) {\n if (newValue) this.openMenu()\n else this.closeMenu()\n },\n\n branchNodesFirst() {\n this.initialize()\n },\n\n disabled(newValue) {\n // force close the menu after disabling the control\n if (newValue && this.menu.isOpen) this.closeMenu()\n else if (!newValue && !this.menu.isOpen && this.alwaysOpen) this.openMenu()\n },\n\n flat() {\n this.initialize()\n },\n\n internalValue(newValue, oldValue) {\n const hasChanged = quickDiff(newValue, oldValue)\n // #122\n // Vue would trigger this watcher when `newValue` and `oldValue` are shallow-equal.\n // We emit the `input` event only when the value actually changes.\n if (hasChanged) this.$emit('input', this.getValue(), this.getInstanceId())\n },\n\n matchKeys() {\n this.initialize()\n },\n\n multiple(newValue) {\n // We need to rebuild the state when switching from single-select mode\n // to multi-select mode.\n // istanbul ignore else\n if (newValue) this.buildForestState()\n },\n\n options: {\n handler() {\n if (this.async) return\n // Re-initialize options when the `options` prop has changed.\n this.initialize()\n this.rootOptionsStates.isLoaded = Array.isArray(this.options)\n },\n deep: true,\n immediate: true,\n },\n\n 'trigger.searchQuery'() {\n if (this.async) {\n this.handleRemoteSearch()\n } else {\n this.handleLocalSearch()\n }\n\n this.$emit('search-change', this.trigger.searchQuery, this.getInstanceId())\n },\n\n value() {\n const nodeIdsFromValue = this.extractCheckedNodeIdsFromValue()\n const hasChanged = quickDiff(nodeIdsFromValue, this.internalValue)\n if (hasChanged) this.fixSelectedNodeIds(nodeIdsFromValue)\n },\n },\n\n methods: {\n verifyProps() {\n warning(\n () => this.async ? this.searchable : true,\n () => 'For async search mode, the value of \"searchable\" prop must be true.',\n )\n\n if (this.options == null && !this.loadOptions) {\n warning(\n () => false,\n () => 'Are you meant to dynamically load options? You need to use \"loadOptions\" prop.',\n )\n }\n\n if (this.flat) {\n warning(\n () => this.multiple,\n () => 'You are using flat mode. But you forgot to add \"multiple=true\"?',\n )\n }\n\n if (!this.flat) {\n const propNames = [\n 'autoSelectAncestors',\n 'autoSelectDescendants',\n 'autoDeselectAncestors',\n 'autoDeselectDescendants',\n ]\n\n propNames.forEach(propName => {\n warning(\n () => !this[propName],\n () => `\"${propName}\" only applies to flat mode.`,\n )\n })\n }\n },\n\n resetFlags() {\n this._blurOnSelect = false\n },\n\n initialize() {\n const options = this.async\n ? this.getRemoteSearchEntry().options\n : this.options\n\n if (Array.isArray(options)) {\n // In case we are re-initializing options, keep the old state tree temporarily.\n const prevNodeMap = this.forest.nodeMap\n this.forest.nodeMap = createMap()\n this.keepDataOfSelectedNodes(prevNodeMap)\n this.forest.normalizedOptions = this.normalize(NO_PARENT_NODE, options, prevNodeMap)\n // Cases that need fixing `selectedNodeIds`:\n // 1) Children options of a checked node have been delayed loaded,\n // we should also mark these children as checked. (multi-select mode)\n // 2) Root options have been delayed loaded, we need to initialize states\n // of these nodes. (multi-select mode)\n // 3) Async search mode.\n this.fixSelectedNodeIds(this.internalValue)\n } else {\n this.forest.normalizedOptions = []\n }\n },\n\n getInstanceId() {\n return this.instanceId == null ? this.id : this.instanceId\n },\n\n getValue() {\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.internalValue.slice()\n : this.internalValue[0]\n }\n\n const rawNodes = this.internalValue.map(id => this.getNode(id).raw)\n return this.multiple ? rawNodes : rawNodes[0]\n },\n\n getNode(nodeId) {\n warning(\n () => nodeId != null,\n () => `Invalid node id: ${nodeId}`,\n )\n\n if (nodeId == null) return null\n\n return nodeId in this.forest.nodeMap\n ? this.forest.nodeMap[nodeId]\n : this.createFallbackNode(nodeId)\n },\n\n createFallbackNode(id) {\n // In case there is a default selected node that is not loaded into the tree yet,\n // we create a fallback node to keep the component working.\n // When the real data is loaded, we'll override this fake node.\n\n const raw = this.extractNodeFromValue(id)\n const label = this.enhancedNormalizer(raw).label || `${id} (unknown)`\n const fallbackNode = {\n id,\n label,\n ancestors: [],\n parentNode: NO_PARENT_NODE,\n isFallbackNode: true,\n isRootNode: true,\n isLeaf: true,\n isBranch: false,\n isDisabled: false,\n isNew: false,\n index: [ -1 ],\n level: 0,\n raw,\n }\n\n return this.$set(this.forest.nodeMap, id, fallbackNode)\n },\n\n extractCheckedNodeIdsFromValue() {\n if (this.value == null) return []\n\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.value.slice()\n : [ this.value ]\n }\n\n return (this.multiple ? this.value : [ this.value ])\n .map(node => this.enhancedNormalizer(node))\n .map(node => node.id)\n },\n\n extractNodeFromValue(id) {\n const defaultNode = { id }\n\n if (this.valueFormat === 'id') {\n return defaultNode\n }\n\n const valueArray = this.multiple\n ? Array.isArray(this.value) ? this.value : []\n : this.value ? [ this.value ] : []\n const matched = find(\n valueArray,\n node => node && this.enhancedNormalizer(node).id === id,\n )\n\n return matched || defaultNode\n },\n\n fixSelectedNodeIds(nodeIdListOfPrevValue) {\n let nextSelectedNodeIds = []\n\n // istanbul ignore else\n if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === ALL) {\n nextSelectedNodeIds = nodeIdListOfPrevValue\n } else if (this.valueConsistsOf === BRANCH_PRIORITY) {\n nodeIdListOfPrevValue.forEach(nodeId => {\n nextSelectedNodeIds.push(nodeId)\n const node = this.getNode(nodeId)\n if (node.isBranch) this.traverseDescendantsBFS(node, descendant => {\n nextSelectedNodeIds.push(descendant.id)\n })\n })\n } else if (this.valueConsistsOf === LEAF_PRIORITY) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.slice()\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n } else if (this.valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.filter(nodeId => {\n const node = this.getNode(nodeId)\n return node.isLeaf || node.children.length === 0\n })\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n }\n\n const hasChanged = quickDiff(this.forest.selectedNodeIds, nextSelectedNodeIds)\n // If `nextSelectedNodeIds` doesn't actually differ from old `selectedNodeIds`,\n // we don't make the assignment to avoid triggering its watchers which may cause\n // unnecessary calculations.\n if (hasChanged) this.forest.selectedNodeIds = nextSelectedNodeIds\n\n this.buildForestState()\n },\n\n keepDataOfSelectedNodes(prevNodeMap) {\n // In case there is any selected node that is not present in the new `options` array.\n // It could be useful for async search mode.\n this.forest.selectedNodeIds.forEach(id => {\n if (!prevNodeMap[id]) return\n const node = {\n ...prevNodeMap[id],\n isFallbackNode: true,\n }\n this.$set(this.forest.nodeMap, id, node)\n })\n },\n\n isSelected(node) {\n // whether a node is selected (single-select mode) or fully-checked (multi-select mode)\n return this.forest.selectedNodeMap[node.id] === true\n },\n\n traverseDescendantsBFS(parentNode, callback) {\n // istanbul ignore if\n if (!parentNode.isBranch) return\n const queue = parentNode.children.slice()\n while (queue.length) {\n const currNode = queue[0]\n if (currNode.isBranch) queue.push(...currNode.children)\n callback(currNode)\n queue.shift()\n }\n },\n\n traverseDescendantsDFS(parentNode, callback) {\n if (!parentNode.isBranch) return\n parentNode.children.forEach(child => {\n // deep-level node first\n this.traverseDescendantsDFS(child, callback)\n callback(child)\n })\n },\n\n traverseAllNodesDFS(callback) {\n this.forest.normalizedOptions.forEach(rootNode => {\n // deep-level node first\n this.traverseDescendantsDFS(rootNode, callback)\n callback(rootNode)\n })\n },\n\n traverseAllNodesByIndex(callback) {\n const walk = parentNode => {\n parentNode.children.forEach(child => {\n if (callback(child) !== false && child.isBranch) {\n walk(child)\n }\n })\n }\n\n // To simplify the code logic of traversal,\n // we create a fake root node that holds all the root options.\n walk({ children: this.forest.normalizedOptions })\n },\n\n toggleClickOutsideEvent(enabled) {\n if (enabled) {\n document.addEventListener('mousedown', this.handleClickOutside, false)\n } else {\n document.removeEventListener('mousedown', this.handleClickOutside, false)\n }\n },\n\n getValueContainer() {\n if (!this.$refs || !this.$refs.control || !this.$refs.control.$refs) {\n return null\n }\n return this.$refs.control.$refs['value-container']\n },\n\n getInput() {\n return this.getValueContainer().$refs.input\n },\n\n focusInput() {\n this.getInput().focus()\n },\n\n blurInput() {\n this.getInput().blur()\n },\n\n handleMouseDown: onLeftClick(function handleMouseDown(evt) {\n evt.preventDefault()\n evt.stopPropagation()\n\n if (this.disabled || !this.getValueContainer()) return\n\n const isClickedOnValueContainer = this.getValueContainer().$el.contains(evt.target)\n if (isClickedOnValueContainer && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused)) {\n this.openMenu()\n }\n\n if (this._blurOnSelect) {\n this.blurInput()\n } else {\n // Focus the input or prevent blurring.\n this.focusInput()\n }\n\n this.resetFlags()\n }),\n\n handleClickOutside(evt) {\n // istanbul ignore else\n if (this.$refs.wrapper && !this.$refs.wrapper.contains(evt.target)) {\n this.blurInput()\n this.closeMenu()\n }\n },\n\n handleLocalSearch() {\n const { searchQuery } = this.trigger\n const done = () => this.resetHighlightedOptionWhenNecessary(true)\n\n if (!searchQuery) {\n // Exit sync search mode.\n this.localSearch.active = false\n return done()\n }\n\n // Enter sync search mode.\n this.localSearch.active = true\n\n // Reset states.\n this.localSearch.noResults = true\n this.traverseAllNodesDFS(node => {\n if (node.isBranch) {\n node.isExpandedOnSearch = false\n node.showAllChildrenOnSearch = false\n node.isMatched = false\n node.hasMatchedDescendants = false\n this.$set(this.localSearch.countMap, node.id, {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n }\n })\n\n const lowerCasedSearchQuery = searchQuery.trim().toLocaleLowerCase()\n const splitSearchQuery = lowerCasedSearchQuery.replace(/\\s+/g, ' ').split(' ')\n this.traverseAllNodesDFS(node => {\n if (this.searchNested && splitSearchQuery.length > 1) {\n node.isMatched = splitSearchQuery.every(filterValue =>\n match(false, filterValue, node.nestedSearchLabel),\n )\n } else {\n node.isMatched = this.matchKeys.some(matchKey =>\n match(!this.disableFuzzyMatching, lowerCasedSearchQuery, node.lowerCased[matchKey]),\n )\n }\n\n if (node.isMatched) {\n this.localSearch.noResults = false\n node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][ALL_DESCENDANTS]++)\n if (node.isLeaf) node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][LEAF_DESCENDANTS]++)\n if (node.parentNode !== NO_PARENT_NODE) {\n this.localSearch.countMap[node.parentNode.id][ALL_CHILDREN] += 1\n // istanbul ignore else\n if (node.isLeaf) this.localSearch.countMap[node.parentNode.id][LEAF_CHILDREN] += 1\n }\n }\n\n if (\n (node.isMatched || (node.isBranch && node.isExpandedOnSearch)) &&\n node.parentNode !== NO_PARENT_NODE\n ) {\n node.parentNode.isExpandedOnSearch = true\n node.parentNode.hasMatchedDescendants = true\n }\n })\n\n done()\n },\n\n handleRemoteSearch() {\n const { searchQuery } = this.trigger\n const entry = this.getRemoteSearchEntry()\n const done = () => {\n this.initialize()\n this.resetHighlightedOptionWhenNecessary(true)\n }\n\n if ((searchQuery === '' || this.cacheOptions) && entry.isLoaded) {\n return done()\n }\n\n this.callLoadOptionsProp({\n action: ASYNC_SEARCH,\n args: { searchQuery },\n isPending() {\n return entry.isLoading\n },\n start: () => {\n entry.isLoading = true\n entry.isLoaded = false\n entry.loadingError = ''\n },\n succeed: options => {\n entry.isLoaded = true\n entry.options = options\n // When the request completes, the search query may have changed.\n // We only show these options if they are for the current search query.\n if (this.trigger.searchQuery === searchQuery) done()\n },\n fail: err => {\n entry.loadingError = getErrorMessage(err)\n },\n end: () => {\n entry.isLoading = false\n },\n })\n },\n\n getRemoteSearchEntry() {\n const { searchQuery } = this.trigger\n const entry = this.remoteSearch[searchQuery] || {\n ...createAsyncOptionsStates(),\n options: [],\n }\n\n // Vue doesn't support directly watching on objects.\n this.$watch(\n () => entry.options,\n () => {\n // TODO: potential redundant re-initialization.\n if (this.trigger.searchQuery === searchQuery) this.initialize()\n },\n { deep: true },\n )\n\n if (searchQuery === '') {\n if (Array.isArray(this.defaultOptions)) {\n entry.options = this.defaultOptions\n entry.isLoaded = true\n return entry\n } else if (this.defaultOptions !== true) {\n entry.isLoaded = true\n return entry\n }\n }\n\n if (!this.remoteSearch[searchQuery]) {\n this.$set(this.remoteSearch, searchQuery, entry)\n }\n\n return entry\n },\n\n shouldExpand(node) {\n return this.localSearch.active ? node.isExpandedOnSearch : node.isExpanded\n },\n\n shouldOptionBeIncludedInSearchResult(node) {\n // 1) This option is matched.\n if (node.isMatched) return true\n // 2) This option is not matched, but has matched descendant(s).\n if (node.isBranch && node.hasMatchedDescendants && !this.flattenSearchResults) return true\n // 3) This option's parent has no matched descendants,\n // but after being expanded, all its children should be shown.\n if (!node.isRootNode && node.parentNode.showAllChildrenOnSearch) return true\n // 4) The default case.\n return false\n },\n\n shouldShowOptionInMenu(node) {\n if (this.localSearch.active && !this.shouldOptionBeIncludedInSearchResult(node)) {\n return false\n }\n return true\n },\n\n getControl() {\n return this.$refs.control.$el\n },\n\n getMenu() {\n const ref = this.appendToBody ? this.$refs.portal.portalTarget : this\n const $menu = ref.$refs.menu.$refs.menu\n return $menu && $menu.nodeName !== '#comment' ? $menu : null\n },\n\n setCurrentHighlightedOption(node, scroll = true) {\n const prev = this.menu.current\n if (prev != null && prev in this.forest.nodeMap) {\n this.forest.nodeMap[prev].isHighlighted = false\n }\n\n this.menu.current = node.id\n node.isHighlighted = true\n\n if (this.menu.isOpen && scroll) {\n const scrollToOption = () => {\n const nodeId = node.id.toString().replace(/\"/g, '\\\\\"')\n const $menu = this.getMenu()\n const $option = $menu.querySelector(`.vue-treeselect__option[data-id=\"${nodeId}\"]`)\n if ($option) scrollIntoView($menu, $option)\n }\n\n // In case `openMenu()` is just called and the menu is not rendered yet.\n if (this.getMenu()) {\n scrollToOption()\n } else {\n // istanbul ignore next\n this.$nextTick(scrollToOption)\n }\n }\n },\n\n resetHighlightedOptionWhenNecessary(forceReset = false) {\n const { current } = this.menu\n\n if (\n forceReset || current == null ||\n !(current in this.forest.nodeMap) ||\n !this.shouldShowOptionInMenu(this.getNode(current))\n ) {\n this.highlightFirstOption()\n }\n },\n\n highlightFirstOption() {\n if (!this.hasVisibleOptions) return\n\n const first = this.visibleOptionIds[0]\n this.setCurrentHighlightedOption(this.getNode(first))\n },\n\n highlightPrevOption() {\n if (!this.hasVisibleOptions) return\n\n const prev = this.visibleOptionIds.indexOf(this.menu.current) - 1\n if (prev === -1) return this.highlightLastOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[prev]))\n },\n\n highlightNextOption() {\n if (!this.hasVisibleOptions) return\n\n const next = this.visibleOptionIds.indexOf(this.menu.current) + 1\n if (next === this.visibleOptionIds.length) return this.highlightFirstOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[next]))\n },\n\n highlightLastOption() {\n if (!this.hasVisibleOptions) return\n\n const last = getLast(this.visibleOptionIds)\n this.setCurrentHighlightedOption(this.getNode(last))\n },\n\n resetSearchQuery() {\n this.trigger.searchQuery = ''\n },\n\n closeMenu() {\n if (!this.menu.isOpen || (!this.disabled && this.alwaysOpen)) return\n this.saveMenuScrollPosition()\n this.menu.isOpen = false\n this.toggleClickOutsideEvent(false)\n this.resetSearchQuery()\n this.$emit('close', this.getValue(), this.getInstanceId())\n },\n\n openMenu() {\n if (this.disabled || this.menu.isOpen) return\n this.menu.isOpen = true\n this.$nextTick(this.resetHighlightedOptionWhenNecessary)\n this.$nextTick(this.restoreMenuScrollPosition)\n if (!this.options && !this.async) this.loadRootOptions()\n this.toggleClickOutsideEvent(true)\n this.$emit('open', this.getInstanceId())\n },\n\n toggleMenu() {\n if (this.menu.isOpen) {\n this.closeMenu()\n } else {\n this.openMenu()\n }\n },\n\n toggleExpanded(node) {\n let nextState\n\n if (this.localSearch.active) {\n nextState = node.isExpandedOnSearch = !node.isExpandedOnSearch\n if (nextState) node.showAllChildrenOnSearch = true\n } else {\n nextState = node.isExpanded = !node.isExpanded\n }\n\n if (nextState && !node.childrenStates.isLoaded) {\n this.loadChildrenOptions(node)\n }\n },\n\n buildForestState() {\n const selectedNodeMap = createMap()\n this.forest.selectedNodeIds.forEach(selectedNodeId => {\n selectedNodeMap[selectedNodeId] = true\n })\n this.forest.selectedNodeMap = selectedNodeMap\n\n const checkedStateMap = createMap()\n if (this.multiple) {\n this.traverseAllNodesByIndex(node => {\n checkedStateMap[node.id] = UNCHECKED\n })\n\n this.selectedNodes.forEach(selectedNode => {\n checkedStateMap[selectedNode.id] = CHECKED\n\n if (!this.flat && !this.disableBranchNodes) {\n selectedNode.ancestors.forEach(ancestorNode => {\n if (!this.isSelected(ancestorNode)) {\n checkedStateMap[ancestorNode.id] = INDETERMINATE\n }\n })\n }\n })\n }\n this.forest.checkedStateMap = checkedStateMap\n },\n\n enhancedNormalizer(raw) {\n return {\n ...raw,\n ...this.normalizer(raw, this.getInstanceId()),\n }\n },\n\n normalize(parentNode, nodes, prevNodeMap) {\n let normalizedOptions = nodes\n .map(node => [ this.enhancedNormalizer(node), node ])\n .map(([ node, raw ], index) => {\n this.checkDuplication(node)\n this.verifyNodeShape(node)\n\n const id = node.id !== undefined ? node.id : Math.round(Math.random() * 1000000)\n const { label, children, isDefaultExpanded } = node\n const isRootNode = parentNode === NO_PARENT_NODE\n const level = isRootNode || this.showAsGroup ? 0 : parentNode.level + 1\n const isBranch = Array.isArray(children) || children === null\n const isLeaf = !isBranch\n const isDisabled = !!node.isDisabled || (!this.flat && !isRootNode && parentNode.isDisabled)\n const isNew = !!node.isNew\n const lowerCased = this.matchKeys.reduce((prev, key) => ({\n ...prev,\n [key]: stringifyOptionPropValue(node[key]).toLocaleLowerCase(),\n }), {})\n const nestedSearchLabel = isRootNode\n ? lowerCased.label\n : parentNode.nestedSearchLabel + ' ' + lowerCased.label\n\n const normalized = this.$set(this.forest.nodeMap, id, createMap())\n this.$set(normalized, 'id', id)\n this.$set(normalized, 'label', label)\n this.$set(normalized, 'level', level)\n this.$set(normalized, 'ancestors', isRootNode ? [] : [ parentNode ].concat(parentNode.ancestors))\n this.$set(normalized, 'index', (isRootNode ? [] : parentNode.index).concat(index))\n this.$set(normalized, 'parentNode', parentNode)\n this.$set(normalized, 'lowerCased', lowerCased)\n this.$set(normalized, 'nestedSearchLabel', nestedSearchLabel)\n this.$set(normalized, 'isDisabled', isDisabled)\n this.$set(normalized, 'isNew', isNew)\n this.$set(normalized, 'isMatched', false)\n this.$set(normalized, 'isHighlighted', false)\n this.$set(normalized, 'isBranch', isBranch)\n this.$set(normalized, 'isGroup', isBranch && this.showAsGroup)\n this.$set(normalized, 'isLeaf', isLeaf)\n this.$set(normalized, 'isRootNode', isRootNode)\n this.$set(normalized, 'raw', raw)\n\n if (isBranch) {\n const isLoaded = Array.isArray(children)\n\n this.$set(normalized, 'childrenStates', {\n ...createAsyncOptionsStates(),\n isLoaded,\n })\n this.$set(normalized, 'isExpanded', this.showAsGroup ? this.showAsGroup : typeof isDefaultExpanded === 'boolean'\n ? isDefaultExpanded\n : level < this.defaultExpandLevel)\n this.$set(normalized, 'hasMatchedDescendants', false)\n this.$set(normalized, 'hasDisabledDescendants', false)\n this.$set(normalized, 'isExpandedOnSearch', false)\n this.$set(normalized, 'showAllChildrenOnSearch', false)\n this.$set(normalized, 'count', {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n this.$set(normalized, 'children', isLoaded\n ? this.normalize(normalized, children, prevNodeMap)\n : [])\n\n if (isDefaultExpanded === true) normalized.ancestors.forEach(ancestor => {\n ancestor.isExpanded = true\n })\n\n if (!isLoaded && typeof this.loadOptions !== 'function') {\n warning(\n () => false,\n () => 'Unloaded branch node detected. \"loadOptions\" prop is required to load its children.',\n )\n } else if (!isLoaded && normalized.isExpanded) {\n this.loadChildrenOptions(normalized)\n }\n }\n\n normalized.ancestors.forEach(ancestor => ancestor.count[ALL_DESCENDANTS]++)\n if (isLeaf) normalized.ancestors.forEach(ancestor => ancestor.count[LEAF_DESCENDANTS]++)\n if (!isRootNode) {\n parentNode.count[ALL_CHILDREN] += 1\n if (isLeaf) parentNode.count[LEAF_CHILDREN] += 1\n if (isDisabled) parentNode.hasDisabledDescendants = true\n }\n\n // Preserve previous states.\n if (prevNodeMap && prevNodeMap[id]) {\n const prev = prevNodeMap[id]\n\n normalized.isMatched = prev.isMatched\n normalized.showAllChildrenOnSearch = prev.showAllChildrenOnSearch\n normalized.isHighlighted = prev.isHighlighted\n\n if (prev.isBranch && normalized.isBranch) {\n normalized.isExpanded = prev.isExpanded\n normalized.isExpandedOnSearch = prev.isExpandedOnSearch\n // #97\n // If `isLoaded` was true, but IS NOT now, we consider this branch node\n // to be reset to unloaded state by the user of this component.\n if (prev.childrenStates.isLoaded && !normalized.childrenStates.isLoaded) {\n // Make sure the node is collapsed, then the user can load its\n // children again (by expanding).\n normalized.isExpanded = false\n // We have reset `childrenStates` and don't want to preserve states here.\n } else {\n normalized.childrenStates = { ...prev.childrenStates }\n }\n }\n }\n\n return normalized\n })\n\n if (this.branchNodesFirst) {\n const branchNodes = normalizedOptions.filter(option => option.isBranch)\n const leafNodes = normalizedOptions.filter(option => option.isLeaf)\n normalizedOptions = branchNodes.concat(leafNodes)\n }\n\n return normalizedOptions\n },\n\n loadRootOptions() {\n this.callLoadOptionsProp({\n action: LOAD_ROOT_OPTIONS,\n isPending: () => {\n return this.rootOptionsStates.isLoading\n },\n start: () => {\n this.rootOptionsStates.isLoading = true\n this.rootOptionsStates.loadingError = ''\n },\n succeed: () => {\n this.rootOptionsStates.isLoaded = true\n // Wait for `options` being re-initialized.\n this.$nextTick(() => {\n this.resetHighlightedOptionWhenNecessary(true)\n })\n },\n fail: err => {\n this.rootOptionsStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.rootOptionsStates.isLoading = false\n },\n })\n },\n\n loadChildrenOptions(parentNode) {\n // The options may be re-initialized anytime during the loading process.\n // So `parentNode` can be stale and we use `getNode()` to avoid that.\n\n const { id, raw } = parentNode\n\n this.callLoadOptionsProp({\n action: LOAD_CHILDREN_OPTIONS,\n args: {\n // We always pass the raw node instead of the normalized node to any\n // callback provided by the user of this component.\n // Because the shape of the raw node is more likely to be closing to\n // what the back-end API service of the application needs.\n parentNode: raw,\n },\n isPending: () => {\n return this.getNode(id).childrenStates.isLoading\n },\n start: () => {\n this.getNode(id).childrenStates.isLoading = true\n this.getNode(id).childrenStates.loadingError = ''\n },\n succeed: () => {\n this.getNode(id).childrenStates.isLoaded = true\n },\n fail: err => {\n this.getNode(id).childrenStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.getNode(id).childrenStates.isLoading = false\n },\n })\n },\n\n callLoadOptionsProp({ action, args, isPending, start, succeed, fail, end }) {\n if (!this.loadOptions || isPending()) {\n return\n }\n\n start()\n\n const callback = once((err, result) => {\n if (err) {\n fail(err)\n } else {\n succeed(result)\n }\n\n end()\n })\n const result = this.loadOptions({\n id: this.getInstanceId(),\n instanceId: this.getInstanceId(),\n action,\n ...args,\n callback,\n })\n\n if (isPromise(result)) {\n result.then(() => {\n callback()\n }, err => {\n callback(err)\n }).catch(err => {\n // istanbul ignore next\n console.error(err)\n })\n }\n },\n\n checkDuplication(node) {\n warning(\n () => !((node.id in this.forest.nodeMap) && !this.forest.nodeMap[node.id].isFallbackNode),\n () => `Detected duplicate presence of node id ${JSON.stringify(node.id)}. ` +\n `Their labels are \"${this.forest.nodeMap[node.id].label}\" and \"${node.label}\" respectively.`,\n )\n },\n\n verifyNodeShape(node) {\n warning(\n () => !(node.children === undefined && node.isBranch === true),\n () => 'Are you meant to declare an unloaded branch node? ' +\n '`isBranch: true` is no longer supported, please use `children: null` instead.',\n )\n },\n\n select(node) {\n if (this.disabled || node.isDisabled) {\n return\n }\n\n if (this.single) {\n this.clear()\n }\n\n const nextState = this.multiple && !this.flat\n ? this.forest.checkedStateMap[node.id] === UNCHECKED\n : !this.isSelected(node)\n\n if (nextState) {\n this._selectNode(node)\n } else {\n this._deselectNode(node)\n }\n\n this.buildForestState()\n\n if (nextState) {\n this.$emit('select', node.raw, this.getInstanceId())\n } else {\n this.$emit('deselect', node.raw, this.getInstanceId())\n }\n\n if (this.localSearch.active && nextState && (this.single || this.clearOnSelect)) {\n this.resetSearchQuery()\n }\n\n if (this.single && this.closeOnSelect) {\n this.closeMenu()\n\n // istanbul ignore else\n if (this.searchable) {\n this._blurOnSelect = true\n }\n }\n },\n\n clear() {\n if (this.hasValue) {\n if (this.single || this.allowClearingDisabled) {\n this.forest.selectedNodeIds = []\n } else /* if (this.multiple && !this.allowClearingDisabled) */ {\n this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter(nodeId =>\n this.getNode(nodeId).isDisabled,\n )\n }\n\n this.buildForestState()\n }\n },\n\n // This is meant to be called only by `select()`.\n _selectNode(node) {\n if (this.single || this.disableBranchNodes) {\n return this.addValue(node)\n }\n\n if (this.flat) {\n this.addValue(node)\n\n if (this.autoSelectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (!this.isSelected(ancestor) && !ancestor.isDisabled) this.addValue(ancestor)\n })\n } else if (this.autoSelectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!this.isSelected(descendant) && !descendant.isDisabled) this.addValue(descendant)\n })\n }\n\n return\n }\n\n const isFullyChecked = (\n node.isLeaf ||\n (/* node.isBranch && */!node.hasDisabledDescendants) ||\n (/* node.isBranch && */this.allowSelectingDisabledDescendants)\n )\n if (isFullyChecked) {\n this.addValue(node)\n }\n\n if (node.isBranch) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.addValue(descendant)\n }\n })\n }\n\n if (isFullyChecked) {\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (curr.children.every(this.isSelected)) this.addValue(curr)\n else break\n }\n }\n },\n\n // This is meant to be called only by `select()`.\n _deselectNode(node) {\n if (this.disableBranchNodes) {\n return this.removeValue(node)\n }\n\n if (this.flat) {\n this.removeValue(node)\n\n if (this.autoDeselectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (this.isSelected(ancestor) && !ancestor.isDisabled) this.removeValue(ancestor)\n })\n } else if (this.autoDeselectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (this.isSelected(descendant) && !descendant.isDisabled) this.removeValue(descendant)\n })\n }\n\n return\n }\n\n let hasUncheckedSomeDescendants = false\n if (node.isBranch) {\n this.traverseDescendantsDFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.removeValue(descendant)\n hasUncheckedSomeDescendants = true\n }\n })\n }\n\n if (\n node.isLeaf ||\n /* node.isBranch && */hasUncheckedSomeDescendants ||\n /* node.isBranch && */node.children.length === 0\n ) {\n this.removeValue(node)\n\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (this.isSelected(curr)) this.removeValue(curr)\n else break\n }\n }\n },\n\n addValue(node) {\n this.forest.selectedNodeIds.push(node.id)\n this.forest.selectedNodeMap[node.id] = true\n },\n\n removeValue(node) {\n removeFromArray(this.forest.selectedNodeIds, node.id)\n delete this.forest.selectedNodeMap[node.id]\n },\n\n removeLastValue() {\n if (!this.hasValue) return\n if (this.single) return this.clear()\n const lastValue = getLast(this.internalValue)\n const lastSelectedNode = this.getNode(lastValue)\n this.select(lastSelectedNode) // deselect\n },\n\n saveMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) this.menu.lastScrollPosition = $menu.scrollTop\n },\n\n restoreMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) $menu.scrollTop = this.menu.lastScrollPosition\n },\n },\n\n created() {\n this.verifyProps()\n this.resetFlags()\n },\n\n mounted() {\n if (this.autoFocus) this.focusInput()\n if (!this.options && !this.async && this.autoLoadRootOptions) this.loadRootOptions()\n if (this.alwaysOpen) this.openMenu()\n if (this.async && this.defaultOptions) this.handleRemoteSearch()\n },\n\n destroyed() {\n // istanbul ignore next\n this.toggleClickOutsideEvent(false)\n },\n}\n","\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render, staticRenderFns\nimport script from \"./HiddenFields.vue?vue&type=script&lang=js\"\nexport * from \"./HiddenFields.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Input.vue?vue&type=script&lang=js\"\nexport * from \"./Input.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Placeholder.vue?vue&type=script&lang=js\"\nexport * from \"./Placeholder.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./SingleValue.vue?vue&type=script&lang=js\"\nexport * from \"./SingleValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 348.333 348.333\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import { render, staticRenderFns } from \"./Delete.vue?vue&type=template&id=12b4a02e\"\nimport script from \"./Delete.vue?vue&type=script&lang=js\"\nexport * from \"./Delete.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./MultiValueItem.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValueItem.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./MultiValue.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 292.362 292.362\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","\n","import { render, staticRenderFns } from \"./Arrow.vue?vue&type=template&id=5d5151cb\"\nimport script from \"./Arrow.vue?vue&type=script&lang=js\"\nexport * from \"./Arrow.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Control.vue?vue&type=script&lang=js\"\nexport * from \"./Control.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Tip.vue?vue&type=script&lang=js\"\nexport * from \"./Tip.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Option.vue?vue&type=script&lang=js\"\nexport * from \"./Option.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Menu.vue?vue&type=script&lang=js\"\nexport * from \"./Menu.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./MenuPortal.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPortal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Treeselect.vue?vue&type=script&lang=js\"\nexport * from \"./Treeselect.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","import Treeselect from './components/Treeselect'\nimport treeselectMixin from './mixins/treeselectMixin'\nimport './style.less'\n\nexport default Treeselect\nexport { Treeselect, treeselectMixin }\nexport {\n // Delayed loading.\n LOAD_ROOT_OPTIONS,\n LOAD_CHILDREN_OPTIONS,\n ASYNC_SEARCH,\n} from './constants'\n\nexport const VERSION = PKG_VERSION\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://VueTreeselect/webpack/bootstrap","webpack://VueTreeselect/external \"@babel/runtime/helpers/defineProperty\"","webpack://VueTreeselect/external \"babel-helper-vue-jsx-merge-props\"","webpack://VueTreeselect/external \"@babel/runtime/helpers/toConsumableArray\"","webpack://VueTreeselect/external \"lodash/noop\"","webpack://VueTreeselect/external \"lodash/debounce\"","webpack://VueTreeselect/external \"is-promise\"","webpack://VueTreeselect/external \"lodash/once\"","webpack://VueTreeselect/external \"lodash/identity\"","webpack://VueTreeselect/external \"lodash/constant\"","webpack://VueTreeselect/external \"lodash/last\"","webpack://VueTreeselect/external \"@babel/runtime/helpers/slicedToArray\"","webpack://VueTreeselect/external \"fuzzysearch\"","webpack://VueTreeselect/external \"watch-size\"","webpack://VueTreeselect/external \"@babel/runtime/helpers/typeof\"","webpack://VueTreeselect/external \"vue\"","webpack://VueTreeselect/./src/utils/warning.js","webpack://VueTreeselect/./src/utils/onLeftClick.js","webpack://VueTreeselect/./src/utils/scrollIntoView.js","webpack://VueTreeselect/./src/utils/watchSize.js","webpack://VueTreeselect/./src/utils/removeFromArray.js","webpack://VueTreeselect/./src/utils/setupResizeAndScrollEventListeners.js","webpack://VueTreeselect/./src/utils/isNaN.js","webpack://VueTreeselect/./src/utils/createMap.js","webpack://VueTreeselect/./src/utils/deepExtend.js","webpack://VueTreeselect/./src/utils/includes.js","webpack://VueTreeselect/./src/utils/find.js","webpack://VueTreeselect/./src/utils/quickDiff.js","webpack://VueTreeselect/./src/constants.js","webpack://VueTreeselect/./src/mixins/treeselectMixin.js","webpack://VueTreeselect/src/components/HiddenFields.vue","webpack://VueTreeselect/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VueTreeselect/./src/components/HiddenFields.vue","webpack://VueTreeselect/src/components/Input.vue","webpack://VueTreeselect/./src/components/Input.vue","webpack://VueTreeselect/./src/components/Placeholder.vue","webpack://VueTreeselect/src/components/Placeholder.vue","webpack://VueTreeselect/./src/components/SingleValue.vue","webpack://VueTreeselect/src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?9af8","webpack://VueTreeselect/src/components/icons/Delete.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue","webpack://VueTreeselect/./src/components/MultiValueItem.vue","webpack://VueTreeselect/src/components/MultiValueItem.vue","webpack://VueTreeselect/./src/components/MultiValue.vue","webpack://VueTreeselect/src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?a3ef","webpack://VueTreeselect/src/components/icons/Arrow.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue","webpack://VueTreeselect/./src/components/Control.vue","webpack://VueTreeselect/src/components/Control.vue","webpack://VueTreeselect/./src/components/Tip.vue","webpack://VueTreeselect/src/components/Tip.vue","webpack://VueTreeselect/src/components/Option.vue","webpack://VueTreeselect/./src/components/Option.vue","webpack://VueTreeselect/src/components/Menu.vue","webpack://VueTreeselect/./src/components/Menu.vue","webpack://VueTreeselect/src/components/MenuPortal.vue","webpack://VueTreeselect/./src/components/MenuPortal.vue","webpack://VueTreeselect/./src/components/Treeselect.vue","webpack://VueTreeselect/src/components/Treeselect.vue","webpack://VueTreeselect/./src/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","require","warning","noop","onLeftClick","mouseDownHandler","evt","type","button","_len","arguments","length","args","Array","_key","apply","this","concat","scrollIntoView","$scrollingEl","$focusedEl","scrollingReact","getBoundingClientRect","focusedRect","overScroll","offsetHeight","bottom","scrollTop","Math","min","offsetTop","clientHeight","scrollHeight","top","max","intervalId","removeFromArray","arr","elem","idx","indexOf","splice","registered","test","item","$el","listener","lastWidth","lastHeight","width","offsetWidth","height","watchSizeForIE9","push","setInterval","forEach","clearInterval","watchSize","isIE9","document","documentMode","locked","removeSizeWatcher","watchSizeForBrowsersOtherThanIE9","isScrollElment","_getComputedStyle","getComputedStyle","overflow","overflowX","overflowY","setupResizeAndScrollEventListeners","$scrollParents","$parent","parentNode","nodeName","nodeType","ELEMENT_NODE","window","findScrollParents","addEventListener","passive","scrollParent","removeEventListener","$scrollParent","isNaN","x","createMap","isPlainObject","_typeof","getPrototypeOf","deepExtend","target","source","keys","len","obj","includes","arrOrStr","find","predicate","ctx","quickDiff","arrA","arrB","LOAD_ROOT_OPTIONS","LOAD_CHILDREN_OPTIONS","ASYNC_SEARCH","KEY_CODES","sortValueByIndex","a","b","level","index","match","enableFuzzyMatch","needle","haystack","fuzzysearch","getErrorMessage","err","message","String","instanceId","provide","instance","props","allowClearingDisabled","Boolean","default","allowSelectingDisabledDescendants","alwaysOpen","appendToBody","async","autoFocus","autoLoadRootOptions","autoDeselectAncestors","autoDeselectDescendants","autoSelectAncestors","autoSelectDescendants","backspaceRemoves","beforeClearAll","Function","constant","branchNodesFirst","cacheOptions","clearable","clearAllText","clearOnSelect","clearValueText","closeOnSelect","defaultExpandLevel","Number","defaultOptions","deleteRemoves","delimiter","flattenSearchResults","disableBranchNodes","disabled","disableFuzzyMatching","flat","joinValues","limit","Infinity","limitText","count","loadingText","loadOptions","matchKeys","maxHeight","multiple","noChildrenText","noOptionsText","noResultsText","normalizer","identity","openDirection","validator","openOnClick","openOnFocus","options","placeholder","required","retryText","retryTitle","searchable","searchNested","searchPromptText","showAsGroup","showCount","showCountOf","showCountOnSearch","sortValueBy","tabIndex","valueConsistsOf","valueFormat","zIndex","data","trigger","isFocused","searchQuery","menu","isOpen","current","lastScrollPosition","placement","forest","normalizedOptions","nodeMap","checkedStateMap","selectedNodeIds","extractCheckedNodeIdsFromValue","selectedNodeMap","rootOptionsStates","isLoaded","isLoading","loadingError","localSearch","active","noResults","countMap","remoteSearch","computed","selectedNodes","map","getNode","internalValue","_this","single","slice","filter","id","node","isRootNode","isSelected","isLeaf","children","_internalValue","indeterminateNodeIds","selectedNode","ancestors","ancestor","sort","sortValueByLevel","hasValue","visibleOptionIds","_this2","traverseAllNodesByIndex","shouldOptionBeIncludedInSearchResult","isBranch","shouldExpand","hasVisibleOptions","showCountOnSearchComputed","hasBranchNodes","some","rootNode","shouldFlattenOptions","watch","newValue","openMenu","closeMenu","initialize","oldValue","$emit","getValue","getInstanceId","buildForestState","handler","isArray","deep","immediate","handleRemoteSearch","handleLocalSearch","nodeIdsFromValue","fixSelectedNodeIds","methods","verifyProps","_this3","propName","resetFlags","_blurOnSelect","getRemoteSearchEntry","prevNodeMap","keepDataOfSelectedNodes","normalize","_this4","rawNodes","raw","nodeId","createFallbackNode","extractNodeFromValue","fallbackNode","label","enhancedNormalizer","isFallbackNode","isDisabled","isNew","$set","_this5","_this6","defaultNode","nodeIdListOfPrevValue","_this7","nextSelectedNodeIds","traverseDescendantsBFS","descendant","queue","shift","_this8","_objectSpread","callback","currNode","_toConsumableArray","traverseDescendantsDFS","_this9","child","traverseAllNodesDFS","_this10","walk","toggleClickOutsideEvent","enabled","handleClickOutside","getValueContainer","$refs","control","getInput","input","focusInput","focus","blurInput","blur","handleMouseDown","preventDefault","stopPropagation","contains","wrapper","_this11","done","resetHighlightedOptionWhenNecessary","isExpandedOnSearch","showAllChildrenOnSearch","isMatched","hasMatchedDescendants","_defineProperty","lowerCasedSearchQuery","trim","toLocaleLowerCase","splitSearchQuery","replace","split","every","filterValue","nestedSearchLabel","matchKey","lowerCased","_this12","entry","callLoadOptionsProp","action","isPending","start","succeed","fail","end","_this13","$watch","isExpanded","shouldShowOptionInMenu","getControl","getMenu","$menu","portal","portalTarget","setCurrentHighlightedOption","_this14","scroll","undefined","prev","isHighlighted","scrollToOption","toString","$option","querySelector","$nextTick","forceReset","highlightFirstOption","first","highlightPrevOption","highlightLastOption","highlightNextOption","next","last","getLast","resetSearchQuery","saveMenuScrollPosition","restoreMenuScrollPosition","loadRootOptions","toggleMenu","toggleExpanded","nextState","childrenStates","loadChildrenOptions","_this15","selectedNodeId","ancestorNode","nodes","_this16","_ref","_ref2","_slicedToArray","checkDuplication","verifyNodeShape","round","random","isDefaultExpanded","reduce","normalized","hasDisabledDescendants","branchNodes","option","leafNodes","_this17","_this18","_ref3","once","result","isPromise","then","catch","console","error","_this19","JSON","stringify","select","clear","_selectNode","_deselectNode","_this20","_this21","addValue","isFullyChecked","curr","_this22","removeValue","hasUncheckedSomeDescendants","removeLastValue","lastValue","lastSelectedNode","created","mounted","destroyed","stringifyValue","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","component","inject","_","injections","stringifiedValues","join","stringifiedValue","attrs","domProps","__file","keysThatRequireMenuBeingOpen","inputWidth","needAutoSize","inputStyle","updateInputWidth","debouncedCallback","debounce","updateSearchQuery","leading","trailing","onInput","onFocus","onBlur","activeElement","cancel","onKeyDown","which","keyCode","ctrlKey","shiftKey","altKey","metaKey","onMouseDown","renderInputContainer","$createElement","renderInput","renderSizer","on","keydown","ref","_mergeJSXProps","autocomplete","style","sizer","scrollWidth","placeholderClass","renderSingleValueLabel","customValueLabelRenderer","$scopedSlots","renderValueContainer","shouldShowValue","Placeholder","Input","_c","_self","xmlns","viewBox","_withStripped","itemClass","labelRenderer","DeleteIcon","renderMultiValueItems","MultiValueItem","renderExceedLimitTip","transitionGroupProps","tag","appear","shouldShowX","hasUndisabledValue","shouldShowArrow","renderX","title","handleMouseDownOnX","renderArrow","arrowClass","handleMouseDownOnArrow","ArrowIcon","shouldClear","setTimeout","ValueContainer","SingleValue","MultiValue","icon","arrowPlaceholder","checkMark","minusMark","Option","isGroup","shouldShow","renderOption","handleMouseEnterOption","renderLabelContainer","renderCheckboxContainer","renderCheckbox","renderLabel","renderSubOptionsList","renderSubOptions","renderNoChildrenTip","renderLoadingChildrenTip","renderLoadingChildrenErrorTip","handleMouseDownOnLabelContainer","checkedState","checkboxClass","shouldShowCount","NaN","customLabelRenderer","labelClassName","countClassName","childNode","Tip","handleMouseDownOnRetry","currentTarget","indentLevel","listItemClass","transitionProps","directionMap","above","below","menuStyle","menuContainerStyle","onMenuOpen","onMenuClose","menuSizeWatcher","menuResizeAndScrollEventListeners","renderMenu","renderBeforeList","renderAsyncSearchMenuInner","renderLocalSearchMenuInner","renderNormalMenuInner","renderAfterList","beforeListRenderer","afterListRenderer","renderLoadingOptionsTip","renderLoadingRootOptionsErrorTip","renderNoAvailableOptionsTip","renderOptionList","renderNoResultsTip","shouldShowSearchPromptTip","shouldShowNoResultsTip","renderSearchPromptTip","renderAsyncSearchLoadingErrorTip","adjustMenuOpenDirection","setupMenuSizeWatcher","setupMenuResizeAndScrollEventListeners","removeMenuSizeWatcher","removeMenuResizeAndScrollEventListeners","$control","menuRect","controlRect","menuHeight","viewportHeight","innerHeight","spaceAbove","hasEnoughSpaceBelow","hasEnoughSpaceAbove","remove","PortalTarget","setupHandlers","removeHandlers","updateMenuContainerOffset","controlResizeAndScrollEventListeners","controlSizeWatcher","updateWidth","setupControlResizeAndScrollEventListeners","setupControlSizeWatcher","removeControlResizeAndScrollEventListeners","removeControlSizeWatcher","$portalTarget","portalTargetRect","offsetY","left","body","portalTargetClass","wrapperClass","portalTargetStyle","Menu","setup","teardown","el","createElement","appendChild","Vue","removeChild","innerHTML","$destroy","mixins","treeselectMixin","HiddenFields","Control","MenuPortal","VERSION","Treeselect","PKG_VERSION"],"mappings":";;;;;2BACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA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AAD,KAAAI,UACA,6CAAAJ,KAAAI,UACA,6CAAAhD,mBACA,sCAAAzB,gBAKAmU,OAAA,eAAAwB,EAAApd,UAAA,GACA,OACAod,EAAA,OAAA0C,IAAA,qBAAAsI,cAAA,CACAhL,EAAA8L,IACA9L,EAAA+L,GAAA,CAAArJ,IAAA,YACA,KAAArY,aAAA2V,EAAAgM,GAAA,CAAAtJ,IAAA,WAAA1C,EAAAkL,GAAA,CAAAxI,IAAA,kBDpCI,OAAQ,GAWV,EACA,KACA,KACA,MAkBF,GAAUrV,QAAQuT,OAAS,gCACZ,U,QEpBFqL,I,MATEC,aASQC","file":"vue-treeselect.cjs.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 16);\n","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"babel-helper-vue-jsx-merge-props\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","module.exports = require(\"lodash/noop\");","module.exports = require(\"lodash/debounce\");","module.exports = require(\"is-promise\");","module.exports = require(\"lodash/once\");","module.exports = require(\"lodash/identity\");","module.exports = require(\"lodash/constant\");","module.exports = require(\"lodash/last\");","module.exports = require(\"@babel/runtime/helpers/slicedToArray\");","module.exports = require(\"fuzzysearch\");","module.exports = require(\"watch-size\");","module.exports = require(\"@babel/runtime/helpers/typeof\");","module.exports = require(\"vue\");","import { noop } from './noop'\n\nexport const warning = process.env.NODE_ENV === 'production'\n ? /* istanbul ignore next */ noop\n : function warning(checker, complainer) {\n if (!checker()) {\n const message = [ '[Vue-Treeselect Warning]' ].concat(complainer())\n // eslint-disable-next-line no-console\n console.error(...message)\n }\n }\n","export function onLeftClick(mouseDownHandler) {\n return function onMouseDown(evt, ...args) {\n if (evt.type === 'mousedown' && evt.button === 0) {\n mouseDownHandler.call(this, evt, ...args)\n }\n }\n}\n","// from react-select\nexport function scrollIntoView($scrollingEl, $focusedEl) {\n const scrollingReact = $scrollingEl.getBoundingClientRect()\n const focusedRect = $focusedEl.getBoundingClientRect()\n const overScroll = $focusedEl.offsetHeight / 3\n\n if (focusedRect.bottom + overScroll > scrollingReact.bottom) {\n $scrollingEl.scrollTop = Math.min(\n $focusedEl.offsetTop + $focusedEl.clientHeight - $scrollingEl.offsetHeight + overScroll,\n $scrollingEl.scrollHeight,\n )\n } else if (focusedRect.top - overScroll < scrollingReact.top) {\n $scrollingEl.scrollTop = Math.max($focusedEl.offsetTop - overScroll, 0)\n }\n}\n","import watchSizeForBrowsersOtherThanIE9 from 'watch-size'\nimport { removeFromArray } from './removeFromArray'\n\nlet intervalId\nconst registered = []\nconst INTERVAL_DURATION = 100\n\nfunction run() {\n intervalId = setInterval(() => {\n registered.forEach(test)\n }, INTERVAL_DURATION)\n}\n\nfunction stop() {\n clearInterval(intervalId)\n intervalId = null\n}\n\nfunction test(item) {\n const { $el, listener, lastWidth, lastHeight } = item\n const width = $el.offsetWidth\n const height = $el.offsetHeight\n\n if (lastWidth !== width || lastHeight !== height) {\n item.lastWidth = width\n item.lastHeight = height\n\n listener({ width, height })\n }\n}\n\nfunction watchSizeForIE9($el, listener) {\n const item = {\n $el,\n listener,\n lastWidth: null,\n lastHeight: null,\n }\n const unwatch = () => {\n removeFromArray(registered, item)\n if (!registered.length) stop()\n }\n\n registered.push(item)\n // The original watch-size will call the listener on initialization.\n // Keep the same behavior here.\n test(item)\n run()\n\n return unwatch\n}\n\nexport function watchSize($el, listener) {\n // See: https://stackoverflow.com/a/31293352\n const isIE9 = document.documentMode === 9\n // watch-size will call the listener on initialization.\n // Disable this behavior with a lock to achieve a clearer code logic.\n let locked = true\n const wrappedListener = (...args) => locked || listener(...args)\n const implementation = isIE9\n ? watchSizeForIE9\n : watchSizeForBrowsersOtherThanIE9\n const removeSizeWatcher = implementation($el, wrappedListener)\n locked = false // unlock after initialization\n\n return removeSizeWatcher\n}\n","export function removeFromArray(arr, elem) {\n const idx = arr.indexOf(elem)\n if (idx !== -1) arr.splice(idx, 1)\n}\n","function findScrollParents($el) {\n const $scrollParents = []\n let $parent = $el.parentNode\n\n while ($parent && $parent.nodeName !== 'BODY' && $parent.nodeType === document.ELEMENT_NODE) {\n if (isScrollElment($parent)) $scrollParents.push($parent)\n $parent = $parent.parentNode\n }\n $scrollParents.push(window)\n\n return $scrollParents\n}\n\nfunction isScrollElment($el) {\n // Firefox wants us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getComputedStyle($el)\n return /(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)\n}\n\nexport function setupResizeAndScrollEventListeners($el, listener) {\n const $scrollParents = findScrollParents($el)\n\n window.addEventListener('resize', listener, { passive: true })\n $scrollParents.forEach(scrollParent => {\n scrollParent.addEventListener('scroll', listener, { passive: true })\n })\n\n return function removeEventListeners() {\n window.removeEventListener('resize', listener, { passive: true })\n $scrollParents.forEach($scrollParent => {\n $scrollParent.removeEventListener('scroll', listener, { passive: true })\n })\n }\n}\n","export function isNaN(x) {\n return x !== x\n}\n","export const createMap = () => Object.create(null)\n","function isPlainObject(value) {\n if (value == null || typeof value !== 'object') return false\n return Object.getPrototypeOf(value) === Object.prototype\n}\n\nfunction copy(obj, key, value) {\n if (isPlainObject(value)) {\n obj[key] || (obj[key] = {})\n deepExtend(obj[key], value)\n } else {\n obj[key] = value\n }\n}\n\nexport function deepExtend(target, source) {\n if (isPlainObject(source)) {\n const keys = Object.keys(source)\n\n for (let i = 0, len = keys.length; i < len; i++) {\n copy(target, keys[i], source[keys[i]])\n }\n }\n\n return target\n}\n","export function includes(arrOrStr, elem) {\n return arrOrStr.indexOf(elem) !== -1\n}\n","export function find(arr, predicate, ctx) {\n for (let i = 0, len = arr.length; i < len; i++) {\n if (predicate.call(ctx, arr[i], i, arr)) return arr[i]\n }\n return undefined\n}\n","export function quickDiff(arrA, arrB) {\n if (arrA.length !== arrB.length) return true\n\n for (let i = 0; i < arrA.length; i++) {\n if (arrA[i] !== arrB[i]) return true\n }\n\n return false\n}\n","// Magic value that indicates a root level node.\nexport const NO_PARENT_NODE = null\n\n// Types of checked state.\nexport const UNCHECKED = 0\nexport const INDETERMINATE = 1\nexport const CHECKED = 2\n\n// Types of count number.\nexport const ALL_CHILDREN = 'ALL_CHILDREN'\nexport const ALL_DESCENDANTS = 'ALL_DESCENDANTS'\nexport const LEAF_CHILDREN = 'LEAF_CHILDREN'\nexport const LEAF_DESCENDANTS = 'LEAF_DESCENDANTS'\n\n// Action types of delayed loading.\nexport const LOAD_ROOT_OPTIONS = 'LOAD_ROOT_OPTIONS'\nexport const LOAD_CHILDREN_OPTIONS = 'LOAD_CHILDREN_OPTIONS'\nexport const ASYNC_SEARCH = 'ASYNC_SEARCH'\n\n// Acceptable values of `valueConsistsOf` prop.\nexport const ALL = 'ALL'\nexport const BRANCH_PRIORITY = 'BRANCH_PRIORITY'\nexport const LEAF_PRIORITY = 'LEAF_PRIORITY'\nexport const ALL_WITH_INDETERMINATE = 'ALL_WITH_INDETERMINATE'\n\n// Acceptable values of `sortValueBy` prop.\nexport const ORDER_SELECTED = 'ORDER_SELECTED'\nexport const LEVEL = 'LEVEL'\nexport const INDEX = 'INDEX'\n\n// Key codes look-up table.\nexport const KEY_CODES = {\n BACKSPACE: 8,\n ENTER: 13,\n ESCAPE: 27,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n}\n\n// Other constants.\nexport const INPUT_DEBOUNCE_DELAY = process.env.NODE_ENV === 'testing'\n ? /* to speed up unit testing */ 10\n : /* istanbul ignore next */ 200\nexport const MIN_INPUT_WIDTH = 5\nexport const MENU_BUFFER = 40\n","import fuzzysearch from 'fuzzysearch'\n\nimport {\n warning,\n onLeftClick, scrollIntoView,\n isNaN, isPromise, once,\n identity, constant, createMap,\n quickDiff, last as getLast, includes, find, removeFromArray,\n} from '../utils'\n\nimport {\n NO_PARENT_NODE,\n UNCHECKED, INDETERMINATE, CHECKED,\n LOAD_ROOT_OPTIONS, LOAD_CHILDREN_OPTIONS, ASYNC_SEARCH,\n ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE,\n ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS,\n ORDER_SELECTED, LEVEL, INDEX,\n} from '../constants'\n\nfunction sortValueByIndex(a, b) {\n let i = 0\n do {\n if (a.level < i) return -1\n if (b.level < i) return 1\n if (a.index[i] !== b.index[i]) return a.index[i] - b.index[i]\n i++\n } while (true)\n}\n\nfunction sortValueByLevel(a, b) {\n return a.level === b.level\n ? sortValueByIndex(a, b)\n : a.level - b.level\n}\n\nfunction createAsyncOptionsStates() {\n return {\n isLoaded: false,\n isLoading: false,\n loadingError: '',\n }\n}\n\nfunction stringifyOptionPropValue(value) {\n if (typeof value === 'string') return value\n if (typeof value === 'number' && !isNaN(value)) return value + ''\n // istanbul ignore next\n return ''\n}\n\nfunction match(enableFuzzyMatch, needle, haystack) {\n return enableFuzzyMatch\n ? fuzzysearch(needle, haystack)\n : includes(haystack, needle)\n}\n\nfunction getErrorMessage(err) {\n return err.message || /* istanbul ignore next */String(err)\n}\n\nlet instanceId = 0\n\nexport default {\n provide() {\n return {\n // Enable access to the instance of root component of vue-treeselect\n // across hierarchy.\n instance: this,\n }\n },\n\n props: {\n /**\n * Whether to allow resetting value even if there are disabled selected nodes.\n */\n allowClearingDisabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.\n * You may want to use this in conjunction with `allowClearingDisabled` prop.\n */\n allowSelectingDisabledDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the menu should be always open.\n */\n alwaysOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Append the menu to ?\n */\n appendToBody: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable async search mode.\n */\n async: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically focus the component on mount?\n */\n autoFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.\n */\n autoLoadRootOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.\n */\n autoDeselectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user deselects a node, automatically deselect its descendants. Applies to flat mode only.\n */\n autoDeselectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its ancestors. Applies to flat mode only.\n */\n autoSelectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its descendants. Applies to flat mode only.\n */\n autoSelectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether pressing backspace key removes the last item if there is no text input.\n */\n backspaceRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Function that processes before clearing all input fields.\n * Return `false` to prevent value from being cleared.\n * @type {function(): (boolean|Promise)}\n */\n beforeClearAll: {\n type: Function,\n default: constant(true),\n },\n\n /**\n * Show branch nodes before leaf nodes?\n */\n branchNodesFirst: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Should cache results of every search request?\n */\n cacheOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Show an \"×\" button that resets value?\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Title for the \"×\" button when `multiple: true`.\n */\n clearAllText: {\n type: String,\n default: 'Clear all',\n },\n\n /**\n * Whether to clear the search input after selecting.\n * Use only when `multiple` is `true`.\n * For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.\n */\n clearOnSelect: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Title for the \"×\" button.\n */\n clearValueText: {\n type: String,\n default: 'Clear value',\n },\n\n /**\n * Whether to close the menu after selecting an option?\n * Use only when `multiple` is `true`.\n */\n closeOnSelect: {\n type: Boolean,\n default: true,\n },\n\n /**\n * How many levels of branch nodes should be automatically expanded when loaded.\n * Set `Infinity` to make all branch nodes expanded by default.\n */\n defaultExpandLevel: {\n type: Number,\n default: 0,\n },\n\n /**\n * The default set of options to show before the user starts searching. Used for async search mode.\n * When set to `true`, the results for search query as a empty string will be autoloaded.\n * @type {boolean|node[]}\n */\n defaultOptions: {\n default: false,\n },\n\n /**\n * Whether pressing delete key removes the last item if there is no text input.\n */\n deleteRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Delimiter to use to join multiple values for the hidden field value.\n */\n delimiter: {\n type: String,\n default: ',',\n },\n\n /**\n * Only show the nodes that match the search value directly, excluding its ancestors.\n *\n * @type {Object}\n */\n flattenSearchResults: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Prevent branch nodes from being selected?\n */\n disableBranchNodes: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the control?\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the fuzzy matching functionality?\n */\n disableFuzzyMatching: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable flat mode or not. Non-flat mode (default) means:\n * - Whenever a branch node gets checked, all its children will be checked too\n * - Whenever a branch node has all children checked, the branch node itself will be checked too\n * Set `true` to disable this mechanism\n */\n flat: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Will be passed with all events as the last param.\n * Useful for identifying events origin.\n */\n instanceId: {\n // Add two trailing \"$\" to distinguish from explictly specified ids.\n default: () => `${instanceId++}$$`,\n type: [ String, Number ],\n },\n\n /**\n * Joins multiple values into a single form field with the `delimiter` (legacy mode).\n */\n joinValues: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Limit the display of selected options.\n * The rest will be hidden within the limitText string.\n */\n limit: {\n type: Number,\n default: Infinity,\n },\n\n /**\n * Function that processes the message shown when selected elements pass the defined limit.\n * @type {function(number): string}\n */\n limitText: {\n type: Function,\n default: function limitTextDefault(count) { // eslint-disable-line func-name-matching\n return `and ${count} more`\n },\n },\n\n /**\n * Text displayed when loading options.\n */\n loadingText: {\n type: String,\n default: 'Loading...',\n },\n\n /**\n * Used for dynamically loading options.\n * @type {function({action: string, callback: (function((Error|string)=): void), parentNode: node=, instanceId}): void}\n */\n loadOptions: {\n type: Function,\n },\n\n /**\n * Which node properties to filter on.\n */\n matchKeys: {\n type: Array,\n default: constant([ 'label' ]),\n },\n\n /**\n * Sets `maxHeight` style value of the menu.\n */\n maxHeight: {\n type: Number,\n default: 300,\n },\n\n /**\n * Set `true` to allow selecting multiple options (a.k.a., multi-select mode).\n */\n multiple: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Generates a hidden tag with this field name for html forms.\n */\n name: {\n type: String,\n },\n\n /**\n * Text displayed when a branch node has no children.\n */\n noChildrenText: {\n type: String,\n default: 'No sub-options.',\n },\n\n /**\n * Text displayed when there are no available options.\n */\n noOptionsText: {\n type: String,\n default: 'No options available.',\n },\n\n /**\n * Text displayed when there are no matching search results.\n */\n noResultsText: {\n type: String,\n default: 'No results found...',\n },\n\n /**\n * Used for normalizing source data.\n * @type {function(node, instanceId): node}\n */\n normalizer: {\n type: Function,\n default: identity,\n },\n\n /**\n * By default (`auto`), the menu will open below the control. If there is not\n * enough space, vue-treeselect will automatically flip the menu.\n * You can use one of other four options to force the menu to be always opened\n * to specified direction.\n * Acceptable values:\n * - `\"auto\"`\n * - `\"below\"`\n * - `\"bottom\"`\n * - `\"above\"`\n * - `\"top\"`\n */\n openDirection: {\n type: String,\n default: 'auto',\n validator(value) {\n const acceptableValues = [ 'auto', 'top', 'bottom', 'above', 'below' ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to automatically open the menu when the control is clicked.\n */\n openOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether to automatically open the menu when the control is focused.\n */\n openOnFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Array of available options.\n * @type {node[]}\n */\n options: {\n type: Array,\n },\n\n /**\n * Field placeholder, displayed when there's no value.\n */\n placeholder: {\n type: String,\n default: 'Select...',\n },\n\n /**\n * Applies HTML5 required attribute when needed.\n */\n required: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text displayed asking user whether to retry loading children options.\n */\n retryText: {\n type: String,\n default: 'Retry?',\n },\n\n /**\n * Title for the retry button.\n */\n retryTitle: {\n type: String,\n default: 'Click to retry',\n },\n\n /**\n * Enable searching feature?\n */\n searchable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Search in ancestor nodes too.\n */\n searchNested: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text tip to prompt for async search.\n */\n searchPromptText: {\n type: String,\n default: 'Type to search...',\n },\n\n showAsGroup: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to show a children count next to the label of each branch node.\n */\n showCount: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Used in conjunction with `showCount` to specify which type of count number should be displayed.\n * Acceptable values:\n * - \"ALL_CHILDREN\"\n * - \"ALL_DESCENDANTS\"\n * - \"LEAF_CHILDREN\"\n * - \"LEAF_DESCENDANTS\"\n */\n showCountOf: {\n type: String,\n default: ALL_CHILDREN,\n validator(value) {\n const acceptableValues = [ ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to show children count when searching.\n * Fallbacks to the value of `showCount` when not specified.\n * @type {boolean}\n */\n showCountOnSearch: null,\n\n /**\n * In which order the selected options should be displayed in trigger & sorted in `value` array.\n * Used for multi-select mode only.\n * Acceptable values:\n * - \"ORDER_SELECTED\"\n * - \"LEVEL\"\n * - \"INDEX\"\n */\n sortValueBy: {\n type: String,\n default: ORDER_SELECTED,\n validator(value) {\n const acceptableValues = [ ORDER_SELECTED, LEVEL, INDEX ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Tab index of the control.\n */\n tabIndex: {\n type: Number,\n default: 0,\n },\n\n /**\n * The value of the control.\n * Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.\n * Its format depends on the `valueFormat` prop.\n * For most cases, just use `v-model` instead.\n * @type {?Array}\n */\n value: null,\n\n /**\n * Which kind of nodes should be included in the `value` array in multi-select mode.\n * Acceptable values:\n * - \"ALL\" - Any node that is checked will be included in the `value` array\n * - \"BRANCH_PRIORITY\" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array\n * - \"LEAF_PRIORITY\" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included\n * - \"ALL_WITH_INDETERMINATE\" - Any node that is checked will be included in the `value` array, plus indeterminate nodes\n */\n valueConsistsOf: {\n type: String,\n default: BRANCH_PRIORITY,\n validator(value) {\n const acceptableValues = [ ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Format of `value` prop.\n * Note that, when set to `\"object\"`, only `id` & `label` properties are required in each `node` object in `value` prop.\n * Acceptable values:\n * - \"id\"\n * - \"object\"\n */\n valueFormat: {\n type: String,\n default: 'id',\n },\n\n /**\n * z-index of the menu.\n */\n zIndex: {\n type: [ Number, String ],\n default: 999,\n },\n },\n\n data() {\n return {\n trigger: {\n // Is the control focused?\n isFocused: false,\n // User entered search query - value of the input.\n searchQuery: '',\n },\n\n menu: {\n // Is the menu opened?\n isOpen: false,\n // Id of current highlighted option.\n current: null,\n // The scroll position before last menu closing.\n lastScrollPosition: 0,\n // Which direction to open the menu.\n placement: 'bottom',\n },\n\n forest: {\n // Normalized options.\n normalizedOptions: [],\n // map for quick look-up.\n nodeMap: createMap(),\n // map, used for multi-select mode.\n checkedStateMap: createMap(),\n // Id list of all selected options.\n selectedNodeIds: this.extractCheckedNodeIdsFromValue(),\n // map for fast checking:\n // if (forest.selectedNodeIds.indexOf(id) !== -1) forest.selectedNodeMap[id] === true\n selectedNodeMap: createMap(),\n },\n\n // States of root options.\n rootOptionsStates: createAsyncOptionsStates(),\n\n localSearch: {\n // Has user entered any query to search local options?\n active: false,\n // Has any options matched the search query?\n noResults: true,\n // map for counting matched children/descendants.\n countMap: createMap(),\n },\n\n // map.\n remoteSearch: createMap(),\n }\n },\n\n computed: {\n /* eslint-disable valid-jsdoc */\n /**\n * Normalized nodes that have been selected.\n * @type {node[]}\n */\n selectedNodes() {\n return this.forest.selectedNodeIds.map(this.getNode)\n },\n /**\n * Id list of selected nodes with `sortValueBy` prop applied.\n * @type {nodeId[]}\n */\n internalValue() {\n let internalValue\n\n // istanbul ignore else\n const valueConsistsOf = this.showAsGroup ? LEAF_PRIORITY : this.valueConsistsOf\n if (this.single || this.flat || this.disableBranchNodes || valueConsistsOf === ALL) {\n internalValue = this.forest.selectedNodeIds.slice()\n } else if (valueConsistsOf === BRANCH_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isRootNode) return true\n return !this.isSelected(node.parentNode)\n })\n } else if (valueConsistsOf === LEAF_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isLeaf) return true\n return node.children.length === 0\n })\n } else if (valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const indeterminateNodeIds = []\n internalValue = this.forest.selectedNodeIds.slice()\n this.selectedNodes.forEach(selectedNode => {\n selectedNode.ancestors.forEach(ancestor => {\n if (includes(indeterminateNodeIds, ancestor.id)) return\n if (includes(internalValue, ancestor.id)) return\n indeterminateNodeIds.push(ancestor.id)\n })\n })\n internalValue.push(...indeterminateNodeIds)\n }\n\n if (this.sortValueBy === LEVEL) {\n internalValue.sort((a, b) => sortValueByLevel(this.getNode(a), this.getNode(b)))\n } else if (this.sortValueBy === INDEX) {\n internalValue.sort((a, b) => sortValueByIndex(this.getNode(a), this.getNode(b)))\n }\n\n return internalValue\n },\n /**\n * Has any option been selected?\n * @type {boolean}\n */\n hasValue() {\n return this.internalValue.length > 0\n },\n /**\n * Single-select mode?\n * @type {boolean}\n */\n single() {\n return !this.multiple\n },\n /**\n * Id list of nodes displayed in the menu. Nodes that are considered NOT visible:\n * - descendants of a collapsed branch node\n * - in local search mode, nodes that are not matched, unless\n * - it's a branch node and has matched descendants\n * - it's a leaf node and its parent node is explicitly set to show all children\n * @type {id[]}\n */\n visibleOptionIds() {\n const visibleOptionIds = []\n\n this.traverseAllNodesByIndex(node => {\n if (!this.localSearch.active || this.shouldOptionBeIncludedInSearchResult(node)) {\n visibleOptionIds.push(node.id)\n }\n // Skip the traversal of descendants of a branch node if it's not expanded.\n if (node.isBranch && !this.shouldExpand(node)) {\n return false\n }\n })\n\n return visibleOptionIds\n },\n /**\n * Has any option should be displayed in the menu?\n * @type {boolean}\n */\n hasVisibleOptions() {\n return this.visibleOptionIds.length !== 0\n },\n /**\n * Should show children count when searching?\n * @type {boolean}\n */\n showCountOnSearchComputed() {\n // Vue doesn't allow setting default prop value based on another prop value.\n // So use computed property as a workaround.\n // https://github.com/vuejs/vue/issues/6358\n return typeof this.showCountOnSearch === 'boolean'\n ? this.showCountOnSearch\n : this.showCount\n },\n /**\n * Is there any branch node?\n * @type {boolean}\n */\n hasBranchNodes() {\n return this.forest.normalizedOptions.some(rootNode => rootNode.isBranch)\n },\n shouldFlattenOptions() {\n return this.localSearch.active && this.flattenSearchResults\n },\n /* eslint-enable valid-jsdoc */\n },\n\n watch: {\n alwaysOpen(newValue) {\n if (newValue) this.openMenu()\n else this.closeMenu()\n },\n\n branchNodesFirst() {\n this.initialize()\n },\n\n disabled(newValue) {\n // force close the menu after disabling the control\n if (newValue && this.menu.isOpen) this.closeMenu()\n else if (!newValue && !this.menu.isOpen && this.alwaysOpen) this.openMenu()\n },\n\n flat() {\n this.initialize()\n },\n\n internalValue(newValue, oldValue) {\n const hasChanged = quickDiff(newValue, oldValue)\n // #122\n // Vue would trigger this watcher when `newValue` and `oldValue` are shallow-equal.\n // We emit the `input` event only when the value actually changes.\n if (hasChanged) this.$emit('input', this.getValue(), this.getInstanceId())\n },\n\n matchKeys() {\n this.initialize()\n },\n\n multiple(newValue) {\n // We need to rebuild the state when switching from single-select mode\n // to multi-select mode.\n // istanbul ignore else\n if (newValue) this.buildForestState()\n },\n\n options: {\n handler() {\n if (this.async) return\n // Re-initialize options when the `options` prop has changed.\n this.initialize()\n this.rootOptionsStates.isLoaded = Array.isArray(this.options)\n },\n deep: true,\n immediate: true,\n },\n\n 'trigger.searchQuery'() {\n if (this.async) {\n this.handleRemoteSearch()\n } else {\n this.handleLocalSearch()\n }\n\n this.$emit('search-change', this.trigger.searchQuery, this.getInstanceId())\n },\n\n value() {\n const nodeIdsFromValue = this.extractCheckedNodeIdsFromValue()\n const hasChanged = quickDiff(nodeIdsFromValue, this.internalValue)\n if (hasChanged) this.fixSelectedNodeIds(nodeIdsFromValue)\n },\n },\n\n methods: {\n verifyProps() {\n warning(\n () => this.async ? this.searchable : true,\n () => 'For async search mode, the value of \"searchable\" prop must be true.',\n )\n\n if (this.options == null && !this.loadOptions) {\n warning(\n () => false,\n () => 'Are you meant to dynamically load options? You need to use \"loadOptions\" prop.',\n )\n }\n\n if (this.flat) {\n warning(\n () => this.multiple,\n () => 'You are using flat mode. But you forgot to add \"multiple=true\"?',\n )\n }\n\n if (!this.flat) {\n const propNames = [\n 'autoSelectAncestors',\n 'autoSelectDescendants',\n 'autoDeselectAncestors',\n 'autoDeselectDescendants',\n ]\n\n propNames.forEach(propName => {\n warning(\n () => !this[propName],\n () => `\"${propName}\" only applies to flat mode.`,\n )\n })\n }\n },\n\n resetFlags() {\n this._blurOnSelect = false\n },\n\n initialize() {\n const options = this.async\n ? this.getRemoteSearchEntry().options\n : this.options\n\n if (Array.isArray(options)) {\n // In case we are re-initializing options, keep the old state tree temporarily.\n const prevNodeMap = this.forest.nodeMap\n this.forest.nodeMap = createMap()\n this.keepDataOfSelectedNodes(prevNodeMap)\n this.forest.normalizedOptions = this.normalize(NO_PARENT_NODE, options, prevNodeMap)\n // Cases that need fixing `selectedNodeIds`:\n // 1) Children options of a checked node have been delayed loaded,\n // we should also mark these children as checked. (multi-select mode)\n // 2) Root options have been delayed loaded, we need to initialize states\n // of these nodes. (multi-select mode)\n // 3) Async search mode.\n this.fixSelectedNodeIds(this.internalValue)\n } else {\n this.forest.normalizedOptions = []\n }\n },\n\n getInstanceId() {\n return this.instanceId == null ? this.id : this.instanceId\n },\n\n getValue() {\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.internalValue.slice()\n : this.internalValue[0]\n }\n\n const rawNodes = this.internalValue.map(id => this.getNode(id).raw)\n return this.multiple ? rawNodes : rawNodes[0]\n },\n\n getNode(nodeId) {\n warning(\n () => nodeId != null,\n () => `Invalid node id: ${nodeId}`,\n )\n\n if (nodeId == null) return null\n\n return nodeId in this.forest.nodeMap\n ? this.forest.nodeMap[nodeId]\n : this.createFallbackNode(nodeId)\n },\n\n createFallbackNode(id) {\n // In case there is a default selected node that is not loaded into the tree yet,\n // we create a fallback node to keep the component working.\n // When the real data is loaded, we'll override this fake node.\n\n const raw = this.extractNodeFromValue(id)\n const label = this.enhancedNormalizer(raw).label || `${id} (unknown)`\n const fallbackNode = {\n id,\n label,\n ancestors: [],\n parentNode: NO_PARENT_NODE,\n isFallbackNode: true,\n isRootNode: true,\n isLeaf: true,\n isBranch: false,\n isDisabled: false,\n isNew: false,\n index: [ -1 ],\n level: 0,\n raw,\n }\n\n return this.$set(this.forest.nodeMap, id, fallbackNode)\n },\n\n extractCheckedNodeIdsFromValue() {\n if (this.value == null) return []\n\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.value.slice()\n : [ this.value ]\n }\n\n return (this.multiple ? this.value : [ this.value ])\n .map(node => this.enhancedNormalizer(node))\n .map(node => node.id)\n },\n\n extractNodeFromValue(id) {\n const defaultNode = { id }\n\n if (this.valueFormat === 'id') {\n return defaultNode\n }\n\n const valueArray = this.multiple\n ? Array.isArray(this.value) ? this.value : []\n : this.value ? [ this.value ] : []\n const matched = find(\n valueArray,\n node => node && this.enhancedNormalizer(node).id === id,\n )\n\n return matched || defaultNode\n },\n\n fixSelectedNodeIds(nodeIdListOfPrevValue) {\n let nextSelectedNodeIds = []\n\n // istanbul ignore else\n if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === ALL) {\n nextSelectedNodeIds = nodeIdListOfPrevValue\n } else if (this.valueConsistsOf === BRANCH_PRIORITY) {\n nodeIdListOfPrevValue.forEach(nodeId => {\n nextSelectedNodeIds.push(nodeId)\n const node = this.getNode(nodeId)\n if (node.isBranch) this.traverseDescendantsBFS(node, descendant => {\n nextSelectedNodeIds.push(descendant.id)\n })\n })\n } else if (this.valueConsistsOf === LEAF_PRIORITY) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.slice()\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n } else if (this.valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.filter(nodeId => {\n const node = this.getNode(nodeId)\n return node.isLeaf || node.children.length === 0\n })\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n }\n\n const hasChanged = quickDiff(this.forest.selectedNodeIds, nextSelectedNodeIds)\n // If `nextSelectedNodeIds` doesn't actually differ from old `selectedNodeIds`,\n // we don't make the assignment to avoid triggering its watchers which may cause\n // unnecessary calculations.\n if (hasChanged) this.forest.selectedNodeIds = nextSelectedNodeIds\n\n this.buildForestState()\n },\n\n keepDataOfSelectedNodes(prevNodeMap) {\n // In case there is any selected node that is not present in the new `options` array.\n // It could be useful for async search mode.\n this.forest.selectedNodeIds.forEach(id => {\n if (!prevNodeMap[id]) return\n const node = {\n ...prevNodeMap[id],\n isFallbackNode: true,\n }\n this.$set(this.forest.nodeMap, id, node)\n })\n },\n\n isSelected(node) {\n // whether a node is selected (single-select mode) or fully-checked (multi-select mode)\n return this.forest.selectedNodeMap[node.id] === true\n },\n\n traverseDescendantsBFS(parentNode, callback) {\n // istanbul ignore if\n if (!parentNode.isBranch) return\n const queue = parentNode.children.slice()\n while (queue.length) {\n const currNode = queue[0]\n if (currNode.isBranch) queue.push(...currNode.children)\n callback(currNode)\n queue.shift()\n }\n },\n\n traverseDescendantsDFS(parentNode, callback) {\n if (!parentNode.isBranch) return\n parentNode.children.forEach(child => {\n // deep-level node first\n this.traverseDescendantsDFS(child, callback)\n callback(child)\n })\n },\n\n traverseAllNodesDFS(callback) {\n this.forest.normalizedOptions.forEach(rootNode => {\n // deep-level node first\n this.traverseDescendantsDFS(rootNode, callback)\n callback(rootNode)\n })\n },\n\n traverseAllNodesByIndex(callback) {\n const walk = parentNode => {\n parentNode.children.forEach(child => {\n if (callback(child) !== false && child.isBranch) {\n walk(child)\n }\n })\n }\n\n // To simplify the code logic of traversal,\n // we create a fake root node that holds all the root options.\n walk({ children: this.forest.normalizedOptions })\n },\n\n toggleClickOutsideEvent(enabled) {\n if (enabled) {\n document.addEventListener('mousedown', this.handleClickOutside, false)\n } else {\n document.removeEventListener('mousedown', this.handleClickOutside, false)\n }\n },\n\n getValueContainer() {\n if (!this.$refs || !this.$refs.control || !this.$refs.control.$refs) {\n return null\n }\n return this.$refs.control.$refs['value-container']\n },\n\n getInput() {\n return this.getValueContainer().$refs.input\n },\n\n focusInput() {\n this.getInput().focus()\n },\n\n blurInput() {\n this.getInput().blur()\n },\n\n handleMouseDown: onLeftClick(function handleMouseDown(evt) {\n evt.preventDefault()\n evt.stopPropagation()\n\n if (this.disabled || !this.getValueContainer()) return\n\n const isClickedOnValueContainer = this.getValueContainer().$el.contains(evt.target)\n if (isClickedOnValueContainer && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused)) {\n this.openMenu()\n }\n\n if (this._blurOnSelect) {\n this.blurInput()\n } else {\n // Focus the input or prevent blurring.\n this.focusInput()\n }\n\n this.resetFlags()\n }),\n\n handleClickOutside(evt) {\n // istanbul ignore else\n if (this.$refs.wrapper && !this.$refs.wrapper.contains(evt.target)) {\n this.blurInput()\n this.closeMenu()\n }\n },\n\n handleLocalSearch() {\n const { searchQuery } = this.trigger\n const done = () => this.resetHighlightedOptionWhenNecessary(true)\n\n if (!searchQuery) {\n // Exit sync search mode.\n this.localSearch.active = false\n return done()\n }\n\n // Enter sync search mode.\n this.localSearch.active = true\n\n // Reset states.\n this.localSearch.noResults = true\n this.traverseAllNodesDFS(node => {\n if (node.isBranch) {\n node.isExpandedOnSearch = false\n node.showAllChildrenOnSearch = false\n node.isMatched = false\n node.hasMatchedDescendants = false\n this.$set(this.localSearch.countMap, node.id, {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n }\n })\n\n const lowerCasedSearchQuery = searchQuery.trim().toLocaleLowerCase()\n const splitSearchQuery = lowerCasedSearchQuery.replace(/\\s+/g, ' ').split(' ')\n this.traverseAllNodesDFS(node => {\n if (this.searchNested && splitSearchQuery.length > 1) {\n node.isMatched = splitSearchQuery.every(filterValue =>\n match(false, filterValue, node.nestedSearchLabel),\n )\n } else {\n node.isMatched = this.matchKeys.some(matchKey =>\n match(!this.disableFuzzyMatching, lowerCasedSearchQuery, node.lowerCased[matchKey]),\n )\n }\n\n if (node.isMatched) {\n this.localSearch.noResults = false\n node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][ALL_DESCENDANTS]++)\n if (node.isLeaf) node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][LEAF_DESCENDANTS]++)\n if (node.parentNode !== NO_PARENT_NODE) {\n this.localSearch.countMap[node.parentNode.id][ALL_CHILDREN] += 1\n // istanbul ignore else\n if (node.isLeaf) this.localSearch.countMap[node.parentNode.id][LEAF_CHILDREN] += 1\n }\n }\n\n if (\n (node.isMatched || (node.isBranch && node.isExpandedOnSearch)) &&\n node.parentNode !== NO_PARENT_NODE\n ) {\n node.parentNode.isExpandedOnSearch = true\n node.parentNode.hasMatchedDescendants = true\n }\n })\n\n done()\n },\n\n handleRemoteSearch() {\n const { searchQuery } = this.trigger\n const entry = this.getRemoteSearchEntry()\n const done = () => {\n this.initialize()\n this.resetHighlightedOptionWhenNecessary(true)\n }\n\n if ((searchQuery === '' || this.cacheOptions) && entry.isLoaded) {\n return done()\n }\n\n this.callLoadOptionsProp({\n action: ASYNC_SEARCH,\n args: { searchQuery },\n isPending() {\n return entry.isLoading\n },\n start: () => {\n entry.isLoading = true\n entry.isLoaded = false\n entry.loadingError = ''\n },\n succeed: options => {\n entry.isLoaded = true\n entry.options = options\n // When the request completes, the search query may have changed.\n // We only show these options if they are for the current search query.\n if (this.trigger.searchQuery === searchQuery) done()\n },\n fail: err => {\n entry.loadingError = getErrorMessage(err)\n },\n end: () => {\n entry.isLoading = false\n },\n })\n },\n\n getRemoteSearchEntry() {\n const { searchQuery } = this.trigger\n const entry = this.remoteSearch[searchQuery] || {\n ...createAsyncOptionsStates(),\n options: [],\n }\n\n // Vue doesn't support directly watching on objects.\n this.$watch(\n () => entry.options,\n () => {\n // TODO: potential redundant re-initialization.\n if (this.trigger.searchQuery === searchQuery) this.initialize()\n },\n { deep: true },\n )\n\n if (searchQuery === '') {\n if (Array.isArray(this.defaultOptions)) {\n entry.options = this.defaultOptions\n entry.isLoaded = true\n return entry\n } else if (this.defaultOptions !== true) {\n entry.isLoaded = true\n return entry\n }\n }\n\n if (!this.remoteSearch[searchQuery]) {\n this.$set(this.remoteSearch, searchQuery, entry)\n }\n\n return entry\n },\n\n shouldExpand(node) {\n return this.localSearch.active ? node.isExpandedOnSearch : node.isExpanded\n },\n\n shouldOptionBeIncludedInSearchResult(node) {\n // 1) This option is matched.\n if (node.isMatched) return true\n // 2) This option is not matched, but has matched descendant(s).\n if (node.isBranch && node.hasMatchedDescendants && !this.flattenSearchResults) return true\n // 3) This option's parent has no matched descendants,\n // but after being expanded, all its children should be shown.\n if (!node.isRootNode && node.parentNode.showAllChildrenOnSearch) return true\n // 4) The default case.\n return false\n },\n\n shouldShowOptionInMenu(node) {\n if (this.localSearch.active && !this.shouldOptionBeIncludedInSearchResult(node)) {\n return false\n }\n return true\n },\n\n getControl() {\n return this.$refs.control.$el\n },\n\n getMenu() {\n const ref = this.appendToBody ? this.$refs.portal.portalTarget : this\n const $menu = ref.$refs.menu.$refs.menu\n return $menu && $menu.nodeName !== '#comment' ? $menu : null\n },\n\n setCurrentHighlightedOption(node, scroll = true) {\n const prev = this.menu.current\n if (prev != null && prev in this.forest.nodeMap) {\n this.forest.nodeMap[prev].isHighlighted = false\n }\n\n this.menu.current = node.id\n node.isHighlighted = true\n\n if (this.menu.isOpen && scroll) {\n const scrollToOption = () => {\n const nodeId = node.id.toString().replace(/\"/g, '\\\\\"')\n const $menu = this.getMenu()\n const $option = $menu.querySelector(`.vue-treeselect__option[data-id=\"${nodeId}\"]`)\n if ($option) scrollIntoView($menu, $option)\n }\n\n // In case `openMenu()` is just called and the menu is not rendered yet.\n if (this.getMenu()) {\n scrollToOption()\n } else {\n // istanbul ignore next\n this.$nextTick(scrollToOption)\n }\n }\n },\n\n resetHighlightedOptionWhenNecessary(forceReset = false) {\n const { current } = this.menu\n\n if (\n forceReset || current == null ||\n !(current in this.forest.nodeMap) ||\n !this.shouldShowOptionInMenu(this.getNode(current))\n ) {\n this.highlightFirstOption()\n }\n },\n\n highlightFirstOption() {\n if (!this.hasVisibleOptions) return\n\n const first = this.visibleOptionIds[0]\n this.setCurrentHighlightedOption(this.getNode(first))\n },\n\n highlightPrevOption() {\n if (!this.hasVisibleOptions) return\n\n const prev = this.visibleOptionIds.indexOf(this.menu.current) - 1\n if (prev === -1) return this.highlightLastOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[prev]))\n },\n\n highlightNextOption() {\n if (!this.hasVisibleOptions) return\n\n const next = this.visibleOptionIds.indexOf(this.menu.current) + 1\n if (next === this.visibleOptionIds.length) return this.highlightFirstOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[next]))\n },\n\n highlightLastOption() {\n if (!this.hasVisibleOptions) return\n\n const last = getLast(this.visibleOptionIds)\n this.setCurrentHighlightedOption(this.getNode(last))\n },\n\n resetSearchQuery() {\n this.trigger.searchQuery = ''\n },\n\n closeMenu() {\n if (!this.menu.isOpen || (!this.disabled && this.alwaysOpen)) return\n this.saveMenuScrollPosition()\n this.menu.isOpen = false\n this.toggleClickOutsideEvent(false)\n this.resetSearchQuery()\n this.$emit('close', this.getValue(), this.getInstanceId())\n },\n\n openMenu() {\n if (this.disabled || this.menu.isOpen) return\n this.menu.isOpen = true\n this.$nextTick(this.resetHighlightedOptionWhenNecessary)\n this.$nextTick(this.restoreMenuScrollPosition)\n if (!this.options && !this.async) this.loadRootOptions()\n this.toggleClickOutsideEvent(true)\n this.$emit('open', this.getInstanceId())\n },\n\n toggleMenu() {\n if (this.menu.isOpen) {\n this.closeMenu()\n } else {\n this.openMenu()\n }\n },\n\n toggleExpanded(node) {\n let nextState\n\n if (this.localSearch.active) {\n nextState = node.isExpandedOnSearch = !node.isExpandedOnSearch\n if (nextState) node.showAllChildrenOnSearch = true\n } else {\n nextState = node.isExpanded = !node.isExpanded\n }\n\n if (nextState && !node.childrenStates.isLoaded) {\n this.loadChildrenOptions(node)\n }\n },\n\n buildForestState() {\n const selectedNodeMap = createMap()\n this.forest.selectedNodeIds.forEach(selectedNodeId => {\n selectedNodeMap[selectedNodeId] = true\n })\n this.forest.selectedNodeMap = selectedNodeMap\n\n const checkedStateMap = createMap()\n if (this.multiple) {\n this.traverseAllNodesByIndex(node => {\n checkedStateMap[node.id] = UNCHECKED\n })\n\n this.selectedNodes.forEach(selectedNode => {\n checkedStateMap[selectedNode.id] = CHECKED\n\n if (!this.flat && !this.disableBranchNodes) {\n selectedNode.ancestors.forEach(ancestorNode => {\n if (!this.isSelected(ancestorNode)) {\n checkedStateMap[ancestorNode.id] = INDETERMINATE\n }\n })\n }\n })\n }\n this.forest.checkedStateMap = checkedStateMap\n },\n\n enhancedNormalizer(raw) {\n return {\n ...raw,\n ...this.normalizer(raw, this.getInstanceId()),\n }\n },\n\n normalize(parentNode, nodes, prevNodeMap) {\n let normalizedOptions = nodes\n .map(node => [ this.enhancedNormalizer(node), node ])\n .map(([ node, raw ], index) => {\n this.checkDuplication(node)\n this.verifyNodeShape(node)\n\n const id = node.id !== undefined ? node.id : Math.round(Math.random() * 1000000)\n const { label, children, isDefaultExpanded } = node\n const isRootNode = parentNode === NO_PARENT_NODE\n const level = isRootNode || this.showAsGroup ? 0 : parentNode.level + 1\n const isBranch = Array.isArray(children) || children === null\n const isLeaf = !isBranch\n const isDisabled = !!node.isDisabled || (!this.flat && !isRootNode && parentNode.isDisabled)\n const isNew = !!node.isNew\n const lowerCased = this.matchKeys.reduce((prev, key) => ({\n ...prev,\n [key]: stringifyOptionPropValue(node[key]).toLocaleLowerCase(),\n }), {})\n const nestedSearchLabel = isRootNode\n ? lowerCased.label\n : parentNode.nestedSearchLabel + ' ' + lowerCased.label\n\n const normalized = this.$set(this.forest.nodeMap, id, createMap())\n this.$set(normalized, 'id', id)\n this.$set(normalized, 'label', label)\n this.$set(normalized, 'level', level)\n this.$set(normalized, 'ancestors', isRootNode ? [] : [ parentNode ].concat(parentNode.ancestors))\n this.$set(normalized, 'index', (isRootNode ? [] : parentNode.index).concat(index))\n this.$set(normalized, 'parentNode', parentNode)\n this.$set(normalized, 'lowerCased', lowerCased)\n this.$set(normalized, 'nestedSearchLabel', nestedSearchLabel)\n this.$set(normalized, 'isDisabled', isDisabled)\n this.$set(normalized, 'isNew', isNew)\n this.$set(normalized, 'isMatched', false)\n this.$set(normalized, 'isHighlighted', false)\n this.$set(normalized, 'isBranch', isBranch)\n this.$set(normalized, 'isGroup', isBranch && this.showAsGroup)\n this.$set(normalized, 'isLeaf', isLeaf)\n this.$set(normalized, 'isRootNode', isRootNode)\n this.$set(normalized, 'raw', raw)\n\n if (isBranch) {\n const isLoaded = Array.isArray(children)\n\n this.$set(normalized, 'childrenStates', {\n ...createAsyncOptionsStates(),\n isLoaded,\n })\n this.$set(normalized, 'isExpanded', this.showAsGroup ? this.showAsGroup : typeof isDefaultExpanded === 'boolean'\n ? isDefaultExpanded\n : level < this.defaultExpandLevel)\n this.$set(normalized, 'hasMatchedDescendants', false)\n this.$set(normalized, 'hasDisabledDescendants', false)\n this.$set(normalized, 'isExpandedOnSearch', false)\n this.$set(normalized, 'showAllChildrenOnSearch', false)\n this.$set(normalized, 'count', {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n this.$set(normalized, 'children', isLoaded\n ? this.normalize(normalized, children, prevNodeMap)\n : [])\n\n if (isDefaultExpanded === true) normalized.ancestors.forEach(ancestor => {\n ancestor.isExpanded = true\n })\n\n if (!isLoaded && typeof this.loadOptions !== 'function') {\n warning(\n () => false,\n () => 'Unloaded branch node detected. \"loadOptions\" prop is required to load its children.',\n )\n } else if (!isLoaded && normalized.isExpanded) {\n this.loadChildrenOptions(normalized)\n }\n }\n\n normalized.ancestors.forEach(ancestor => ancestor.count[ALL_DESCENDANTS]++)\n if (isLeaf) normalized.ancestors.forEach(ancestor => ancestor.count[LEAF_DESCENDANTS]++)\n if (!isRootNode) {\n parentNode.count[ALL_CHILDREN] += 1\n if (isLeaf) parentNode.count[LEAF_CHILDREN] += 1\n if (isDisabled) parentNode.hasDisabledDescendants = true\n }\n\n // Preserve previous states.\n if (prevNodeMap && prevNodeMap[id]) {\n const prev = prevNodeMap[id]\n\n normalized.isMatched = prev.isMatched\n normalized.showAllChildrenOnSearch = prev.showAllChildrenOnSearch\n normalized.isHighlighted = prev.isHighlighted\n\n if (prev.isBranch && normalized.isBranch) {\n normalized.isExpanded = prev.isExpanded\n normalized.isExpandedOnSearch = prev.isExpandedOnSearch\n // #97\n // If `isLoaded` was true, but IS NOT now, we consider this branch node\n // to be reset to unloaded state by the user of this component.\n if (prev.childrenStates.isLoaded && !normalized.childrenStates.isLoaded) {\n // Make sure the node is collapsed, then the user can load its\n // children again (by expanding).\n normalized.isExpanded = false\n // We have reset `childrenStates` and don't want to preserve states here.\n } else {\n normalized.childrenStates = { ...prev.childrenStates }\n }\n }\n }\n\n return normalized\n })\n\n if (this.branchNodesFirst) {\n const branchNodes = normalizedOptions.filter(option => option.isBranch)\n const leafNodes = normalizedOptions.filter(option => option.isLeaf)\n normalizedOptions = branchNodes.concat(leafNodes)\n }\n\n return normalizedOptions\n },\n\n loadRootOptions() {\n this.callLoadOptionsProp({\n action: LOAD_ROOT_OPTIONS,\n isPending: () => {\n return this.rootOptionsStates.isLoading\n },\n start: () => {\n this.rootOptionsStates.isLoading = true\n this.rootOptionsStates.loadingError = ''\n },\n succeed: () => {\n this.rootOptionsStates.isLoaded = true\n // Wait for `options` being re-initialized.\n this.$nextTick(() => {\n this.resetHighlightedOptionWhenNecessary(true)\n })\n },\n fail: err => {\n this.rootOptionsStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.rootOptionsStates.isLoading = false\n },\n })\n },\n\n loadChildrenOptions(parentNode) {\n // The options may be re-initialized anytime during the loading process.\n // So `parentNode` can be stale and we use `getNode()` to avoid that.\n\n const { id, raw } = parentNode\n\n this.callLoadOptionsProp({\n action: LOAD_CHILDREN_OPTIONS,\n args: {\n // We always pass the raw node instead of the normalized node to any\n // callback provided by the user of this component.\n // Because the shape of the raw node is more likely to be closing to\n // what the back-end API service of the application needs.\n parentNode: raw,\n },\n isPending: () => {\n return this.getNode(id).childrenStates.isLoading\n },\n start: () => {\n this.getNode(id).childrenStates.isLoading = true\n this.getNode(id).childrenStates.loadingError = ''\n },\n succeed: () => {\n this.getNode(id).childrenStates.isLoaded = true\n },\n fail: err => {\n this.getNode(id).childrenStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.getNode(id).childrenStates.isLoading = false\n },\n })\n },\n\n callLoadOptionsProp({ action, args, isPending, start, succeed, fail, end }) {\n if (!this.loadOptions || isPending()) {\n return\n }\n\n start()\n\n const callback = once((err, result) => {\n if (err) {\n fail(err)\n } else {\n succeed(result)\n }\n\n end()\n })\n const result = this.loadOptions({\n id: this.getInstanceId(),\n instanceId: this.getInstanceId(),\n action,\n ...args,\n callback,\n })\n\n if (isPromise(result)) {\n result.then(() => {\n callback()\n }, err => {\n callback(err)\n }).catch(err => {\n // istanbul ignore next\n console.error(err)\n })\n }\n },\n\n checkDuplication(node) {\n warning(\n () => !((node.id in this.forest.nodeMap) && !this.forest.nodeMap[node.id].isFallbackNode),\n () => `Detected duplicate presence of node id ${JSON.stringify(node.id)}. ` +\n `Their labels are \"${this.forest.nodeMap[node.id].label}\" and \"${node.label}\" respectively.`,\n )\n },\n\n verifyNodeShape(node) {\n warning(\n () => !(node.children === undefined && node.isBranch === true),\n () => 'Are you meant to declare an unloaded branch node? ' +\n '`isBranch: true` is no longer supported, please use `children: null` instead.',\n )\n },\n\n select(node) {\n if (this.disabled || node.isDisabled) {\n return\n }\n\n if (this.single) {\n this.clear()\n }\n\n const nextState = this.multiple && !this.flat\n ? this.forest.checkedStateMap[node.id] === UNCHECKED\n : !this.isSelected(node)\n\n if (nextState) {\n this._selectNode(node)\n } else {\n this._deselectNode(node)\n }\n\n this.buildForestState()\n\n if (nextState) {\n this.$emit('select', node.raw, this.getInstanceId())\n } else {\n this.$emit('deselect', node.raw, this.getInstanceId())\n }\n\n if (this.localSearch.active && nextState && (this.single || this.clearOnSelect)) {\n this.resetSearchQuery()\n }\n\n if (this.single && this.closeOnSelect) {\n this.closeMenu()\n\n // istanbul ignore else\n if (this.searchable) {\n this._blurOnSelect = true\n }\n }\n },\n\n clear() {\n if (this.hasValue) {\n if (this.single || this.allowClearingDisabled) {\n this.forest.selectedNodeIds = []\n } else /* if (this.multiple && !this.allowClearingDisabled) */ {\n this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter(nodeId =>\n this.getNode(nodeId).isDisabled,\n )\n }\n\n this.buildForestState()\n }\n },\n\n // This is meant to be called only by `select()`.\n _selectNode(node) {\n if (this.single || this.disableBranchNodes) {\n return this.addValue(node)\n }\n\n if (this.flat) {\n this.addValue(node)\n\n if (this.autoSelectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (!this.isSelected(ancestor) && !ancestor.isDisabled) this.addValue(ancestor)\n })\n } else if (this.autoSelectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!this.isSelected(descendant) && !descendant.isDisabled) this.addValue(descendant)\n })\n }\n\n return\n }\n\n const isFullyChecked = (\n node.isLeaf ||\n (/* node.isBranch && */!node.hasDisabledDescendants) ||\n (/* node.isBranch && */this.allowSelectingDisabledDescendants)\n )\n if (isFullyChecked) {\n this.addValue(node)\n }\n\n if (node.isBranch) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.addValue(descendant)\n }\n })\n }\n\n if (isFullyChecked) {\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (curr.children.every(this.isSelected)) this.addValue(curr)\n else break\n }\n }\n },\n\n // This is meant to be called only by `select()`.\n _deselectNode(node) {\n if (this.disableBranchNodes) {\n return this.removeValue(node)\n }\n\n if (this.flat) {\n this.removeValue(node)\n\n if (this.autoDeselectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (this.isSelected(ancestor) && !ancestor.isDisabled) this.removeValue(ancestor)\n })\n } else if (this.autoDeselectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (this.isSelected(descendant) && !descendant.isDisabled) this.removeValue(descendant)\n })\n }\n\n return\n }\n\n let hasUncheckedSomeDescendants = false\n if (node.isBranch) {\n this.traverseDescendantsDFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.removeValue(descendant)\n hasUncheckedSomeDescendants = true\n }\n })\n }\n\n if (\n node.isLeaf ||\n /* node.isBranch && */hasUncheckedSomeDescendants ||\n /* node.isBranch && */node.children.length === 0\n ) {\n this.removeValue(node)\n\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (this.isSelected(curr)) this.removeValue(curr)\n else break\n }\n }\n },\n\n addValue(node) {\n this.forest.selectedNodeIds.push(node.id)\n this.forest.selectedNodeMap[node.id] = true\n },\n\n removeValue(node) {\n removeFromArray(this.forest.selectedNodeIds, node.id)\n delete this.forest.selectedNodeMap[node.id]\n },\n\n removeLastValue() {\n if (!this.hasValue) return\n if (this.single) return this.clear()\n const lastValue = getLast(this.internalValue)\n const lastSelectedNode = this.getNode(lastValue)\n this.select(lastSelectedNode) // deselect\n },\n\n saveMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) this.menu.lastScrollPosition = $menu.scrollTop\n },\n\n restoreMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) $menu.scrollTop = this.menu.lastScrollPosition\n },\n },\n\n created() {\n this.verifyProps()\n this.resetFlags()\n },\n\n mounted() {\n if (this.autoFocus) this.focusInput()\n if (!this.options && !this.async && this.autoLoadRootOptions) this.loadRootOptions()\n if (this.alwaysOpen) this.openMenu()\n if (this.async && this.defaultOptions) this.handleRemoteSearch()\n },\n\n destroyed() {\n // istanbul ignore next\n this.toggleClickOutsideEvent(false)\n },\n}\n","\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render, staticRenderFns\nimport script from \"./HiddenFields.vue?vue&type=script&lang=js\"\nexport * from \"./HiddenFields.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4d48089a')) {\n api.createRecord('4d48089a', component.options)\n } else {\n api.reload('4d48089a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/HiddenFields.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Input.vue?vue&type=script&lang=js\"\nexport * from \"./Input.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('54844eca')) {\n api.createRecord('54844eca', component.options)\n } else {\n api.reload('54844eca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Input.vue\"\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Placeholder.vue?vue&type=script&lang=js\"\nexport * from \"./Placeholder.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('5a99d1f3')) {\n api.createRecord('5a99d1f3', component.options)\n } else {\n api.reload('5a99d1f3', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Placeholder.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./SingleValue.vue?vue&type=script&lang=js\"\nexport * from \"./SingleValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('03d19b89')) {\n api.createRecord('03d19b89', component.options)\n } else {\n api.reload('03d19b89', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/SingleValue.vue\"\nexport default component.exports","\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 348.333 348.333\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import { render, staticRenderFns } from \"./Delete.vue?vue&type=template&id=364b6320\"\nimport script from \"./Delete.vue?vue&type=script&lang=js\"\nexport * from \"./Delete.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('364b6320')) {\n api.createRecord('364b6320', component.options)\n } else {\n api.reload('364b6320', component.options)\n }\n module.hot.accept(\"./Delete.vue?vue&type=template&id=364b6320\", function () {\n api.rerender('364b6320', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Delete.vue\"\nexport default component.exports","var render, staticRenderFns\nimport script from \"./MultiValueItem.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValueItem.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('6dd6c8ca')) {\n api.createRecord('6dd6c8ca', component.options)\n } else {\n api.reload('6dd6c8ca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValueItem.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./MultiValue.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('14fca5e8')) {\n api.createRecord('14fca5e8', component.options)\n } else {\n api.reload('14fca5e8', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValue.vue\"\nexport default component.exports","\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 292.362 292.362\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import { render, staticRenderFns } from \"./Arrow.vue?vue&type=template&id=11186cd4\"\nimport script from \"./Arrow.vue?vue&type=script&lang=js\"\nexport * from \"./Arrow.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('11186cd4')) {\n api.createRecord('11186cd4', component.options)\n } else {\n api.reload('11186cd4', component.options)\n }\n module.hot.accept(\"./Arrow.vue?vue&type=template&id=11186cd4\", function () {\n api.rerender('11186cd4', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Arrow.vue\"\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Control.vue?vue&type=script&lang=js\"\nexport * from \"./Control.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('2fa0a0dd')) {\n api.createRecord('2fa0a0dd', component.options)\n } else {\n api.reload('2fa0a0dd', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Control.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Tip.vue?vue&type=script&lang=js\"\nexport * from \"./Tip.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9f31bdca')) {\n api.createRecord('9f31bdca', component.options)\n } else {\n api.reload('9f31bdca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Tip.vue\"\nexport default component.exports","\n","\n","var render, staticRenderFns\nimport script from \"./Option.vue?vue&type=script&lang=js\"\nexport * from \"./Option.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('3dddec25')) {\n api.createRecord('3dddec25', component.options)\n } else {\n api.reload('3dddec25', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Option.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Menu.vue?vue&type=script&lang=js\"\nexport * from \"./Menu.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./MenuPortal.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPortal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4802d94a')) {\n api.createRecord('4802d94a', component.options)\n } else {\n api.reload('4802d94a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MenuPortal.vue\"\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Treeselect.vue?vue&type=script&lang=js\"\nexport * from \"./Treeselect.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('aebf116c')) {\n api.createRecord('aebf116c', component.options)\n } else {\n api.reload('aebf116c', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Treeselect.vue\"\nexport default component.exports","\n","import Treeselect from './components/Treeselect'\nimport treeselectMixin from './mixins/treeselectMixin'\nimport './style.less'\n\nexport default Treeselect\nexport { Treeselect, treeselectMixin }\nexport {\n // Delayed loading.\n LOAD_ROOT_OPTIONS,\n LOAD_CHILDREN_OPTIONS,\n ASYNC_SEARCH,\n} from './constants'\n\nexport const VERSION = PKG_VERSION\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-treeselect.umd.js b/dist/vue-treeselect.umd.js index 3e728f8c..905cd295 100644 --- a/dist/vue-treeselect.umd.js +++ b/dist/vue-treeselect.umd.js @@ -4392,9 +4392,12 @@ var directionMap = { renderAsyncSearchMenuInner: function renderAsyncSearchMenuInner() { var instance = this.instance; var entry = instance.getRemoteSearchEntry(); - var shouldShowSearchPromptTip = instance.trigger.searchQuery === '' && !instance.defaultOptions && instance.searchPromptText; + var shouldShowSearchPromptTip = instance.trigger.searchQuery === '' && !instance.defaultOptions; var shouldShowNoResultsTip = shouldShowSearchPromptTip ? false : entry.isLoaded && entry.options.length === 0; if (shouldShowSearchPromptTip) { + if (!instance.searchPromptText) { + return ''; + } return this.renderSearchPromptTip(); } else if (entry.isLoading) { return this.renderLoadingOptionsTip(); diff --git a/dist/vue-treeselect.umd.js.map b/dist/vue-treeselect.umd.js.map index 8c2c185d..e7892240 100644 --- a/dist/vue-treeselect.umd.js.map +++ b/dist/vue-treeselect.umd.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://VueTreeselect/webpack/universalModuleDefinition","webpack://VueTreeselect/webpack/bootstrap","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/toPropertyKey.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/typeof.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/toPrimitive.js","webpack://VueTreeselect/./node_modules/fuzzysearch/index.js","webpack://VueTreeselect/./node_modules/lodash/noop.js","webpack://VueTreeselect/./node_modules/lodash/debounce.js","webpack://VueTreeselect/./node_modules/lodash/isObject.js","webpack://VueTreeselect/./node_modules/lodash/now.js","webpack://VueTreeselect/./node_modules/lodash/_root.js","webpack://VueTreeselect/./node_modules/lodash/_freeGlobal.js","webpack://VueTreeselect/(webpack)/buildin/global.js","webpack://VueTreeselect/./node_modules/lodash/toNumber.js","webpack://VueTreeselect/./node_modules/lodash/_baseTrim.js","webpack://VueTreeselect/./node_modules/lodash/_trimmedEndIndex.js","webpack://VueTreeselect/./node_modules/lodash/isSymbol.js","webpack://VueTreeselect/./node_modules/lodash/_baseGetTag.js","webpack://VueTreeselect/./node_modules/lodash/_Symbol.js","webpack://VueTreeselect/./node_modules/lodash/_getRawTag.js","webpack://VueTreeselect/./node_modules/lodash/_objectToString.js","webpack://VueTreeselect/./node_modules/lodash/isObjectLike.js","webpack://VueTreeselect/./node_modules/is-promise/index.js","webpack://VueTreeselect/./node_modules/lodash/once.js","webpack://VueTreeselect/./node_modules/lodash/before.js","webpack://VueTreeselect/./node_modules/lodash/toInteger.js","webpack://VueTreeselect/./node_modules/lodash/toFinite.js","webpack://VueTreeselect/./node_modules/lodash/identity.js","webpack://VueTreeselect/./node_modules/lodash/constant.js","webpack://VueTreeselect/./node_modules/lodash/last.js","webpack://VueTreeselect/./node_modules/babel-helper-vue-jsx-merge-props/index.js","webpack://VueTreeselect/external \"Vue\"","webpack://VueTreeselect/./src/style.less?1f4a","webpack://VueTreeselect/./src/utils/warning.js","webpack://VueTreeselect/./src/utils/onLeftClick.js","webpack://VueTreeselect/./src/utils/scrollIntoView.js","webpack://VueTreeselect/./node_modules/watch-size/index.es.mjs","webpack://VueTreeselect/./src/utils/removeFromArray.js","webpack://VueTreeselect/./src/utils/watchSize.js","webpack://VueTreeselect/./src/utils/setupResizeAndScrollEventListeners.js","webpack://VueTreeselect/./src/utils/isNaN.js","webpack://VueTreeselect/./src/utils/createMap.js","webpack://VueTreeselect/./src/utils/deepExtend.js","webpack://VueTreeselect/./src/utils/includes.js","webpack://VueTreeselect/./src/utils/find.js","webpack://VueTreeselect/./src/utils/quickDiff.js","webpack://VueTreeselect/./src/utils/index.js","webpack://VueTreeselect/./src/constants.js","webpack://VueTreeselect/./src/mixins/treeselectMixin.js","webpack://VueTreeselect/src/components/HiddenFields.vue","webpack://VueTreeselect/./src/components/HiddenFields.vue?2cdc","webpack://VueTreeselect/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VueTreeselect/./src/components/HiddenFields.vue","webpack://VueTreeselect/src/components/Input.vue","webpack://VueTreeselect/./src/components/Input.vue?3957","webpack://VueTreeselect/./src/components/Input.vue","webpack://VueTreeselect/src/components/Placeholder.vue","webpack://VueTreeselect/./src/components/Placeholder.vue?7a2d","webpack://VueTreeselect/./src/components/Placeholder.vue","webpack://VueTreeselect/src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/SingleValue.vue?304b","webpack://VueTreeselect/./src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?9af8","webpack://VueTreeselect/src/components/icons/Delete.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?706a","webpack://VueTreeselect/./src/components/icons/Delete.vue","webpack://VueTreeselect/src/components/MultiValueItem.vue","webpack://VueTreeselect/./src/components/MultiValueItem.vue?6db0","webpack://VueTreeselect/./src/components/MultiValueItem.vue","webpack://VueTreeselect/src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/MultiValue.vue?998f","webpack://VueTreeselect/./src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?a3ef","webpack://VueTreeselect/src/components/icons/Arrow.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?c39d","webpack://VueTreeselect/./src/components/icons/Arrow.vue","webpack://VueTreeselect/src/components/Control.vue","webpack://VueTreeselect/./src/components/Control.vue?2f53","webpack://VueTreeselect/./src/components/Control.vue","webpack://VueTreeselect/src/components/Tip.vue","webpack://VueTreeselect/./src/components/Tip.vue?f94f","webpack://VueTreeselect/./src/components/Tip.vue","webpack://VueTreeselect/src/components/Option.vue","webpack://VueTreeselect/./src/components/Option.vue?f5e1","webpack://VueTreeselect/./src/components/Option.vue","webpack://VueTreeselect/src/components/Menu.vue","webpack://VueTreeselect/./src/components/Menu.vue?0ced","webpack://VueTreeselect/./src/components/Menu.vue","webpack://VueTreeselect/src/components/MenuPortal.vue","webpack://VueTreeselect/./src/components/MenuPortal.vue?9760","webpack://VueTreeselect/./src/components/MenuPortal.vue","webpack://VueTreeselect/src/components/Treeselect.vue","webpack://VueTreeselect/./src/components/Treeselect.vue?71f6","webpack://VueTreeselect/./src/components/Treeselect.vue","webpack://VueTreeselect/./src/index.js"],"names":["warning","process","noop","checker","complainer","_console","message","concat","console","error","apply","_toConsumableArray","onLeftClick","mouseDownHandler","onMouseDown","evt","type","button","_len","arguments","length","args","Array","_key","call","scrollIntoView","$scrollingEl","$focusedEl","scrollingReact","getBoundingClientRect","focusedRect","overScroll","offsetHeight","bottom","scrollTop","Math","min","offsetTop","clientHeight","scrollHeight","top","max","removeFromArray","arr","elem","idx","indexOf","splice","intervalId","registered","INTERVAL_DURATION","run","setInterval","forEach","test","stop","clearInterval","item","$el","listener","lastWidth","lastHeight","width","offsetWidth","height","watchSizeForIE9","unwatch","push","watchSize","isIE9","document","documentMode","locked","wrappedListener","implementation","watchSizeForBrowsersOtherThanIE9","removeSizeWatcher","findScrollParents","$scrollParents","$parent","parentNode","nodeName","nodeType","ELEMENT_NODE","isScrollElment","window","_getComputedStyle","getComputedStyle","overflow","overflowX","overflowY","setupResizeAndScrollEventListeners","addEventListener","passive","scrollParent","removeEventListeners","removeEventListener","$scrollParent","isNaN","x","createMap","Object","create","isPlainObject","value","_typeof","getPrototypeOf","prototype","copy","obj","key","deepExtend","target","source","keys","i","len","includes","arrOrStr","find","predicate","ctx","undefined","quickDiff","arrA","arrB","NO_PARENT_NODE","UNCHECKED","INDETERMINATE","CHECKED","ALL_CHILDREN","ALL_DESCENDANTS","LEAF_CHILDREN","LEAF_DESCENDANTS","LOAD_ROOT_OPTIONS","LOAD_CHILDREN_OPTIONS","ASYNC_SEARCH","ALL","BRANCH_PRIORITY","LEAF_PRIORITY","ALL_WITH_INDETERMINATE","ORDER_SELECTED","LEVEL","INDEX","KEY_CODES","BACKSPACE","ENTER","ESCAPE","END","HOME","ARROW_LEFT","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","DELETE","INPUT_DEBOUNCE_DELAY","MIN_INPUT_WIDTH","MENU_BUFFER","sortValueByIndex","a","b","level","index","sortValueByLevel","createAsyncOptionsStates","isLoaded","isLoading","loadingError","stringifyOptionPropValue","match","enableFuzzyMatch","needle","haystack","fuzzysearch","getErrorMessage","err","String","instanceId","provide","instance","props","allowClearingDisabled","Boolean","default","allowSelectingDisabledDescendants","alwaysOpen","appendToBody","async","autoFocus","autoLoadRootOptions","autoDeselectAncestors","autoDeselectDescendants","autoSelectAncestors","autoSelectDescendants","backspaceRemoves","beforeClearAll","Function","constant","branchNodesFirst","cacheOptions","clearable","clearAllText","clearOnSelect","clearValueText","closeOnSelect","defaultExpandLevel","Number","defaultOptions","deleteRemoves","delimiter","flattenSearchResults","disableBranchNodes","disabled","disableFuzzyMatching","flat","_default","joinValues","limit","Infinity","limitText","limitTextDefault","count","loadingText","loadOptions","matchKeys","maxHeight","multiple","name","noChildrenText","noOptionsText","noResultsText","normalizer","identity","openDirection","validator","acceptableValues","openOnClick","openOnFocus","options","placeholder","required","retryText","retryTitle","searchable","searchNested","searchPromptText","showAsGroup","showCount","showCountOf","showCountOnSearch","sortValueBy","tabIndex","valueConsistsOf","valueFormat","zIndex","data","trigger","isFocused","searchQuery","menu","isOpen","current","lastScrollPosition","placement","forest","normalizedOptions","nodeMap","checkedStateMap","selectedNodeIds","extractCheckedNodeIdsFromValue","selectedNodeMap","rootOptionsStates","localSearch","active","noResults","countMap","remoteSearch","computed","selectedNodes","map","getNode","internalValue","_this","single","slice","filter","id","node","isRootNode","isSelected","isLeaf","children","_internalValue","indeterminateNodeIds","selectedNode","ancestors","ancestor","sort","hasValue","visibleOptionIds","_this2","traverseAllNodesByIndex","shouldOptionBeIncludedInSearchResult","isBranch","shouldExpand","hasVisibleOptions","showCountOnSearchComputed","hasBranchNodes","some","rootNode","shouldFlattenOptions","watch","newValue","openMenu","closeMenu","initialize","oldValue","hasChanged","$emit","getValue","getInstanceId","buildForestState","handler","isArray","deep","immediate","triggerSearchQuery","handleRemoteSearch","handleLocalSearch","nodeIdsFromValue","fixSelectedNodeIds","methods","verifyProps","_this3","propNames","propName","resetFlags","_blurOnSelect","getRemoteSearchEntry","prevNodeMap","keepDataOfSelectedNodes","normalize","_this4","rawNodes","raw","nodeId","createFallbackNode","extractNodeFromValue","label","enhancedNormalizer","fallbackNode","isFallbackNode","isDisabled","isNew","$set","_this5","_this6","defaultNode","valueArray","matched","nodeIdListOfPrevValue","_this7","nextSelectedNodeIds","traverseDescendantsBFS","descendant","queue","shift","_this8","_objectSpread","callback","currNode","traverseDescendantsDFS","_this9","child","traverseAllNodesDFS","_this10","walk","toggleClickOutsideEvent","enabled","handleClickOutside","getValueContainer","$refs","control","getInput","input","focusInput","focus","blurInput","blur","handleMouseDown","preventDefault","stopPropagation","isClickedOnValueContainer","contains","wrapper","_this11","done","resetHighlightedOptionWhenNecessary","isExpandedOnSearch","showAllChildrenOnSearch","isMatched","hasMatchedDescendants","_defineProperty","lowerCasedSearchQuery","trim","toLocaleLowerCase","splitSearchQuery","replace","split","every","filterValue","nestedSearchLabel","matchKey","lowerCased","_this12","entry","callLoadOptionsProp","action","isPending","start","succeed","fail","end","_this13","$watch","isExpanded","shouldShowOptionInMenu","getControl","getMenu","ref","portal","portalTarget","$menu","setCurrentHighlightedOption","_this14","scroll","prev","isHighlighted","scrollToOption","toString","$option","querySelector","$nextTick","forceReset","highlightFirstOption","first","highlightPrevOption","highlightLastOption","highlightNextOption","next","last","getLast","resetSearchQuery","saveMenuScrollPosition","restoreMenuScrollPosition","loadRootOptions","toggleMenu","toggleExpanded","nextState","childrenStates","loadChildrenOptions","_this15","selectedNodeId","ancestorNode","nodes","_this16","_ref","_ref2","_slicedToArray","checkDuplication","verifyNodeShape","round","random","isDefaultExpanded","reduce","normalized","hasDisabledDescendants","branchNodes","option","leafNodes","_this17","_this18","_ref3","once","result","isPromise","then","catch","_this19","JSON","stringify","select","clear","_selectNode","_deselectNode","_this20","_this21","addValue","isFullyChecked","curr","_this22","removeValue","hasUncheckedSomeDescendants","removeLastValue","lastValue","lastSelectedNode","created","mounted","destroyed","stringifyValue","inject","functional","render","_","context","h","injections","stringifiedValues","join","stringifiedValue","attrs","domProps","keysThatRequireMenuBeingOpen","inputWidth","needAutoSize","inputStyle","instanceTriggerSearchQuery","updateInputWidth","debouncedCallback","debounce","updateSearchQuery","leading","trailing","onInput","onFocus","onBlur","activeElement","cancel","onKeyDown","which","keyCode","ctrlKey","shiftKey","altKey","metaKey","renderInputContainer","$createElement","renderInput","renderSizer","on","keydown","_mergeJSXProps","autocomplete","style","sizer","scrollWidth","placeholderClass","renderSingleValueLabel","customValueLabelRenderer","$scopedSlots","renderValueContainer","shouldShowValue","Placeholder","Input","itemClass","labelRenderer","DeleteIcon","renderMultiValueItems","MultiValueItem","renderExceedLimitTip","transitionGroupProps","tag","appear","shouldShowX","hasUndisabledValue","shouldShowArrow","renderX","title","handleMouseDownOnX","renderArrow","arrowClass","handleMouseDownOnArrow","ArrowIcon","shouldClear","setTimeout","ValueContainer","SingleValue","MultiValue","icon","arrowPlaceholder","checkMark","minusMark","Option","isGroup","shouldShow","renderOption","optionClass","handleMouseEnterOption","renderLabelContainer","renderCheckboxContainer","renderCheckbox","renderLabel","renderSubOptionsList","renderSubOptions","renderNoChildrenTip","renderLoadingChildrenTip","renderLoadingChildrenErrorTip","transitionProps","handleMouseDownOnLabelContainer","checkedState","checkboxClass","shouldShowCount","NaN","labelClassName","countClassName","customLabelRenderer","childNode","Tip","handleMouseDownOnRetry","currentTarget","handleMouseDownOnOptionArrow","indentLevel","listItemClass","directionMap","above","below","menuStyle","menuContainerStyle","instanceMenuIsOpen","onMenuOpen","onMenuClose","menuSizeWatcher","menuResizeAndScrollEventListeners","renderMenu","renderBeforeList","renderAsyncSearchMenuInner","renderLocalSearchMenuInner","renderNormalMenuInner","renderAfterList","beforeListRenderer","afterListRenderer","renderLoadingOptionsTip","renderLoadingRootOptionsErrorTip","renderNoAvailableOptionsTip","renderOptionList","renderNoResultsTip","shouldShowSearchPromptTip","shouldShowNoResultsTip","renderSearchPromptTip","renderAsyncSearchLoadingErrorTip","adjustMenuOpenDirection","setupMenuSizeWatcher","setupMenuResizeAndScrollEventListeners","removeMenuSizeWatcher","removeMenuResizeAndScrollEventListeners","$control","menuRect","controlRect","menuHeight","viewportHeight","innerHeight","spaceAbove","spaceBelow","isControlInViewport","hasEnoughSpaceBelow","hasEnoughSpaceAbove","remove","PortalTarget","setupHandlers","removeHandlers","instanceMenuPlacement","updateMenuContainerOffset","controlResizeAndScrollEventListeners","controlSizeWatcher","updateWidth","setupControlResizeAndScrollEventListeners","setupControlSizeWatcher","removeControlResizeAndScrollEventListeners","removeControlSizeWatcher","$portalTarget","portalTargetRect","offsetY","left","transformVariations","transform","t","body","portalTargetClass","wrapperClass","portalTargetStyle","Menu","setup","teardown","el","createElement","appendChild","Vue","parent","removeChild","innerHTML","$destroy","mixins","treeselectMixin","HiddenFields","Control","MenuPortal","Treeselect","VERSION","PKG_VERSION"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,qBAAqB,mBAAO,CAAC,CAAqB;AAClD,2BAA2B,mBAAO,CAAC,CAA2B;AAC9D,iCAAiC,mBAAO,CAAC,CAAiC;AAC1E,sBAAsB,mBAAO,CAAC,CAAsB;AACpD;AACA;AACA;AACA,8G;;;;;;ACPA;AACA;AACA;AACA,+G;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY,kEAAkE;AACrF,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,qH;;;;;;AC3BA,uBAAuB,mBAAO,CAAC,CAAuB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2H;;;;;;ACTA;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,iH;;;;;;ACLA;AACA;AACA;AACA,gH;;;;;;ACHA,wBAAwB,mBAAO,CAAC,CAAwB;AACxD,sBAAsB,mBAAO,CAAC,CAAsB;AACpD,iCAAiC,mBAAO,CAAC,CAAiC;AAC1E,wBAAwB,mBAAO,CAAC,CAAwB;AACxD;AACA;AACA;AACA,kH;;;;;;ACPA,uBAAuB,mBAAO,CAAC,CAAuB;AACtD;AACA;AACA;AACA,kH;;;;;;ACJA;AACA;AACA;AACA,gH;;;;;;ACHA;AACA;AACA;AACA,kH;;;;;;ACHA,oBAAoB,mBAAO,CAAC,EAAoB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA,+G;;;;;;ACfA,cAAc,mBAAO,CAAC,EAAa;AACnC,kBAAkB,mBAAO,CAAC,EAAkB;AAC5C;AACA;AACA;AACA;AACA,6G;;;;;;ACNA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,uG;;;;;;ACTA,cAAc,mBAAO,CAAC,EAAa;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2G;;;;;;;ACXa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,UAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AChBA,eAAe,mBAAO,CAAC,EAAY;AACnC,UAAU,mBAAO,CAAC,EAAO;AACzB,eAAe,mBAAO,CAAC,EAAY;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO,YAAY;AAC9B,WAAW,QAAQ;AACnB;AACA,WAAW,OAAO;AAClB;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,8CAA8C,kBAAkB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC9LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC9BA,WAAW,mBAAO,CAAC,EAAS;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACtBA,iBAAiB,mBAAO,CAAC,EAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;;;;;;;ACRA;AACA;;AAEA;;;;;;;;ACHA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;ACnBA,eAAe,mBAAO,CAAC,EAAa;AACpC,eAAe,mBAAO,CAAC,EAAY;AACnC,eAAe,mBAAO,CAAC,EAAY;;AAEnC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC/DA,sBAAsB,mBAAO,CAAC,EAAoB;;AAElD;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AClBA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;AClBA,iBAAiB,mBAAO,CAAC,EAAe;AACxC,mBAAmB,mBAAO,CAAC,EAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC5BA,aAAa,mBAAO,CAAC,EAAW;AAChC,gBAAgB,mBAAO,CAAC,EAAc;AACtC,qBAAqB,mBAAO,CAAC,EAAmB;;AAEhD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC3BA,WAAW,mBAAO,CAAC,EAAS;;AAE5B;AACA;;AAEA;;;;;;;ACLA,aAAa,mBAAO,CAAC,EAAW;;AAEhC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC7CA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC5BA;AACA;;AAEA;AACA;AACA;;;;;;;ACLA,aAAa,mBAAO,CAAC,EAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACxBA,gBAAgB,mBAAO,CAAC,EAAa;;AAErC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACvCA,eAAe,mBAAO,CAAC,EAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACnCA,eAAe,mBAAO,CAAC,EAAY;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,WAAW,SAAS,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM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AAA;QACA,6BAAAvC,IAAA,CAAAC,MAAA;QACA,mCAAAD,IAAA,CAAAI,SAAA;QACA,mCAAAJ,IAAA,CAAAI,SAAA;QACA,8CAAApD,kBAAA;QACA,uCAAAzB;MACA;IACA;EACA;EAEAsU,MAAA,WAAAA,OAAA;IAAA,IAAAG,CAAA,GAAAhf,SAAA;IACA,OACAgf,CAAA;MAAAtF,GAAA;MAAA,cAAAmQ;IAAA,IACA7K,CAAA,CAAA4L,YAAA,GACA5L,CAAA,CAAA6L,OAAA;MAAAnR,GAAA;IAAA,IACA,KAAAnP,YAAA,GAAAyU,CAAA,CAAA8L,UAAA;MAAApR,GAAA;IAAA,KAAAsF,CAAA,CAAA+K,IAAA;MAAArQ,GAAA;IAAA,GACA;EAEA;AACA,G;;ACxCqN,CAAgB,kHAAG,EAAC,C;;ACAzO,IAAI,iBAAM,EAAE,0BAAe;AACkC;AACL;;;AAGxD;AAC0F;AAC1F,IAAI,oBAAS,GAAG,kBAAU;AAC1B,EAAE,4CAAM;AACR,EAAE,iBAAM;AACR,EAAE,0BAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,uBAYf;AACD,oBAAS;AACM,mEAAS,Q;;;;;ACjCwB;AACM;AACjC;AAENqR,mFAAU;AACW;AAMhB;AAEb,IAAMC,OAAO,GAAGC,OAAW,C","file":"vue-treeselect.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"Vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"Vue\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueTreeselect\"] = factory(require(\"Vue\"));\n\telse\n\t\troot[\"VueTreeselect\"] = factory(root[\"Vue\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__40__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 42);\n","var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nfunction fuzzysearch (needle, haystack) {\n var tlen = haystack.length;\n var qlen = needle.length;\n if (qlen > tlen) {\n return false;\n }\n if (qlen === tlen) {\n return needle === haystack;\n }\n outer: for (var i = 0, j = 0; i < qlen; i++) {\n var nch = needle.charCodeAt(i);\n while (j < tlen) {\n if (haystack.charCodeAt(j++) === nch) {\n continue outer;\n }\n }\n return false;\n }\n return true;\n}\n\nmodule.exports = fuzzysearch;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\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 * 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 timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\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 clearTimeout(timerId);\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\nmodule.exports = debounce;\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 != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var root = require('./_root');\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\nmodule.exports = now;\n","var freeGlobal = require('./_freeGlobal');\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\nmodule.exports = root;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\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/**\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 = baseTrim(value);\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 = toNumber;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\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) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\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 nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\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 nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\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 != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","module.exports = isPromise;\nmodule.exports.default = isPromise;\n\nfunction isPromise(obj) {\n return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';\n}\n","var before = require('./before');\n\n/**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\nfunction once(func) {\n return before(2, func);\n}\n\nmodule.exports = once;\n","var toInteger = require('./toInteger');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\nfunction before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n}\n\nmodule.exports = before;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/\n\nmodule.exports = function mergeJSXProps (objs) {\n return objs.reduce(function (a, b) {\n var aa, bb, key, nestedKey, temp\n for (key in b) {\n aa = a[key]\n bb = b[key]\n if (aa && nestRE.test(key)) {\n // normalize class\n if (key === 'class') {\n if (typeof aa === 'string') {\n temp = aa\n a[key] = aa = {}\n aa[temp] = true\n }\n if (typeof bb === 'string') {\n temp = bb\n b[key] = bb = {}\n bb[temp] = true\n }\n }\n if (key === 'on' || key === 'nativeOn' || key === 'hook') {\n // merge functions\n for (nestedKey in bb) {\n aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])\n }\n } else if (Array.isArray(aa)) {\n a[key] = aa.concat(bb)\n } else if (Array.isArray(bb)) {\n a[key] = [aa].concat(bb)\n } else {\n for (nestedKey in bb) {\n aa[nestedKey] = bb[nestedKey]\n }\n }\n } else {\n a[key] = b[key]\n }\n }\n return a\n }, {})\n}\n\nfunction mergeFn (a, b) {\n return function () {\n a && a.apply(this, arguments)\n b && b.apply(this, arguments)\n }\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__40__;","// extracted by mini-css-extract-plugin","import { noop } from './noop'\n\nexport const warning = process.env.NODE_ENV === 'production'\n ? /* istanbul ignore next */ noop\n : function warning(checker, complainer) {\n if (!checker()) {\n const message = [ '[Vue-Treeselect Warning]' ].concat(complainer())\n // eslint-disable-next-line no-console\n console.error(...message)\n }\n }\n","export function onLeftClick(mouseDownHandler) {\n return function onMouseDown(evt, ...args) {\n if (evt.type === 'mousedown' && evt.button === 0) {\n mouseDownHandler.call(this, evt, ...args)\n }\n }\n}\n","// from react-select\nexport function scrollIntoView($scrollingEl, $focusedEl) {\n const scrollingReact = $scrollingEl.getBoundingClientRect()\n const focusedRect = $focusedEl.getBoundingClientRect()\n const overScroll = $focusedEl.offsetHeight / 3\n\n if (focusedRect.bottom + overScroll > scrollingReact.bottom) {\n $scrollingEl.scrollTop = Math.min(\n $focusedEl.offsetTop + $focusedEl.clientHeight - $scrollingEl.offsetHeight + overScroll,\n $scrollingEl.scrollHeight,\n )\n } else if (focusedRect.top - overScroll < scrollingReact.top) {\n $scrollingEl.scrollTop = Math.max($focusedEl.offsetTop - overScroll, 0)\n }\n}\n","var index = (function (element, listener) {\n\tvar expand = document.createElement('_');\n\tvar shrink = expand.appendChild(document.createElement('_'));\n\tvar expandChild = expand.appendChild(document.createElement('_'));\n\tvar shrinkChild = shrink.appendChild(document.createElement('_'));\n\n\tvar lastWidth = void 0,\n\t lastHeight = void 0;\n\n\tshrink.style.cssText = expand.style.cssText = 'height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1';\n\tshrinkChild.style.cssText = expandChild.style.cssText = 'display:block;height:100%;transition:0s;width:100%';\n\tshrinkChild.style.width = shrinkChild.style.height = '200%';\n\n\telement.appendChild(expand);\n\n\ttest();\n\n\treturn stop;\n\n\tfunction test() {\n\t\tunbind();\n\n\t\tvar width = element.offsetWidth;\n\t\tvar height = element.offsetHeight;\n\n\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\tlastWidth = width;\n\t\t\tlastHeight = height;\n\n\t\t\texpandChild.style.width = width * 2 + 'px';\n\t\t\texpandChild.style.height = height * 2 + 'px';\n\n\t\t\texpand.scrollLeft = expand.scrollWidth;\n\t\t\texpand.scrollTop = expand.scrollHeight;\n\t\t\tshrink.scrollLeft = shrink.scrollWidth;\n\t\t\tshrink.scrollTop = shrink.scrollHeight;\n\n\t\t\tlistener({ width: width, height: height });\n\t\t}\n\n\t\tshrink.addEventListener('scroll', test);\n\t\texpand.addEventListener('scroll', test);\n\t}\n\n\tfunction unbind() {\n\t\tshrink.removeEventListener('scroll', test);\n\t\texpand.removeEventListener('scroll', test);\n\t}\n\n\tfunction stop() {\n\t\tunbind();\n\n\t\telement.removeChild(expand);\n\t}\n});\n\nexport default index;\n","export function removeFromArray(arr, elem) {\n const idx = arr.indexOf(elem)\n if (idx !== -1) arr.splice(idx, 1)\n}\n","import watchSizeForBrowsersOtherThanIE9 from 'watch-size'\nimport { removeFromArray } from './removeFromArray'\n\nlet intervalId\nconst registered = []\nconst INTERVAL_DURATION = 100\n\nfunction run() {\n intervalId = setInterval(() => {\n registered.forEach(test)\n }, INTERVAL_DURATION)\n}\n\nfunction stop() {\n clearInterval(intervalId)\n intervalId = null\n}\n\nfunction test(item) {\n const { $el, listener, lastWidth, lastHeight } = item\n const width = $el.offsetWidth\n const height = $el.offsetHeight\n\n if (lastWidth !== width || lastHeight !== height) {\n item.lastWidth = width\n item.lastHeight = height\n\n listener({ width, height })\n }\n}\n\nfunction watchSizeForIE9($el, listener) {\n const item = {\n $el,\n listener,\n lastWidth: null,\n lastHeight: null,\n }\n const unwatch = () => {\n removeFromArray(registered, item)\n if (!registered.length) stop()\n }\n\n registered.push(item)\n // The original watch-size will call the listener on initialization.\n // Keep the same behavior here.\n test(item)\n run()\n\n return unwatch\n}\n\nexport function watchSize($el, listener) {\n // See: https://stackoverflow.com/a/31293352\n const isIE9 = document.documentMode === 9\n // watch-size will call the listener on initialization.\n // Disable this behavior with a lock to achieve a clearer code logic.\n let locked = true\n const wrappedListener = (...args) => locked || listener(...args)\n const implementation = isIE9\n ? watchSizeForIE9\n : watchSizeForBrowsersOtherThanIE9\n const removeSizeWatcher = implementation($el, wrappedListener)\n locked = false // unlock after initialization\n\n return removeSizeWatcher\n}\n","function findScrollParents($el) {\n const $scrollParents = []\n let $parent = $el.parentNode\n\n while ($parent && $parent.nodeName !== 'BODY' && $parent.nodeType === document.ELEMENT_NODE) {\n if (isScrollElment($parent)) $scrollParents.push($parent)\n $parent = $parent.parentNode\n }\n $scrollParents.push(window)\n\n return $scrollParents\n}\n\nfunction isScrollElment($el) {\n // Firefox wants us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getComputedStyle($el)\n return /(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)\n}\n\nexport function setupResizeAndScrollEventListeners($el, listener) {\n const $scrollParents = findScrollParents($el)\n\n window.addEventListener('resize', listener, { passive: true })\n $scrollParents.forEach(scrollParent => {\n scrollParent.addEventListener('scroll', listener, { passive: true })\n })\n\n return function removeEventListeners() {\n window.removeEventListener('resize', listener, { passive: true })\n $scrollParents.forEach($scrollParent => {\n $scrollParent.removeEventListener('scroll', listener, { passive: true })\n })\n }\n}\n","export function isNaN(x) {\n return x !== x\n}\n","export const createMap = () => Object.create(null)\n","function isPlainObject(value) {\n if (value == null || typeof value !== 'object') return false\n return Object.getPrototypeOf(value) === Object.prototype\n}\n\nfunction copy(obj, key, value) {\n if (isPlainObject(value)) {\n obj[key] || (obj[key] = {})\n deepExtend(obj[key], value)\n } else {\n obj[key] = value\n }\n}\n\nexport function deepExtend(target, source) {\n if (isPlainObject(source)) {\n const keys = Object.keys(source)\n\n for (let i = 0, len = keys.length; i < len; i++) {\n copy(target, keys[i], source[keys[i]])\n }\n }\n\n return target\n}\n","export function includes(arrOrStr, elem) {\n return arrOrStr.indexOf(elem) !== -1\n}\n","export function find(arr, predicate, ctx) {\n for (let i = 0, len = arr.length; i < len; i++) {\n if (predicate.call(ctx, arr[i], i, arr)) return arr[i]\n }\n return undefined\n}\n","export function quickDiff(arrA, arrB) {\n if (arrA.length !== arrB.length) return true\n\n for (let i = 0; i < arrA.length; i++) {\n if (arrA[i] !== arrB[i]) return true\n }\n\n return false\n}\n","// ========================\n// Debugging Helpers\n// ========================\n\nexport { warning } from './warning'\n\n// ========================\n// DOM Utilities\n// ========================\n\nexport { onLeftClick } from './onLeftClick'\nexport { scrollIntoView } from './scrollIntoView'\nexport { debounce } from './debounce'\nexport { watchSize } from './watchSize'\nexport { setupResizeAndScrollEventListeners } from './setupResizeAndScrollEventListeners'\n\n// ========================\n// Language Helpers\n// ========================\n\nexport { isNaN } from './isNaN'\nexport { isPromise } from './isPromise'\nexport { once } from './once'\nexport { noop } from './noop'\nexport { identity } from './identity'\nexport { constant } from './constant'\nexport { createMap } from './createMap'\nexport { deepExtend } from './deepExtend'\nexport { last } from './last'\nexport { includes } from './includes'\nexport { find } from './find'\nexport { removeFromArray } from './removeFromArray'\n\n// ========================\n// Other Utilities\n// ========================\n\nexport { quickDiff } from './quickDiff'\n","// Magic value that indicates a root level node.\nexport const NO_PARENT_NODE = null\n\n// Types of checked state.\nexport const UNCHECKED = 0\nexport const INDETERMINATE = 1\nexport const CHECKED = 2\n\n// Types of count number.\nexport const ALL_CHILDREN = 'ALL_CHILDREN'\nexport const ALL_DESCENDANTS = 'ALL_DESCENDANTS'\nexport const LEAF_CHILDREN = 'LEAF_CHILDREN'\nexport const LEAF_DESCENDANTS = 'LEAF_DESCENDANTS'\n\n// Action types of delayed loading.\nexport const LOAD_ROOT_OPTIONS = 'LOAD_ROOT_OPTIONS'\nexport const LOAD_CHILDREN_OPTIONS = 'LOAD_CHILDREN_OPTIONS'\nexport const ASYNC_SEARCH = 'ASYNC_SEARCH'\n\n// Acceptable values of `valueConsistsOf` prop.\nexport const ALL = 'ALL'\nexport const BRANCH_PRIORITY = 'BRANCH_PRIORITY'\nexport const LEAF_PRIORITY = 'LEAF_PRIORITY'\nexport const ALL_WITH_INDETERMINATE = 'ALL_WITH_INDETERMINATE'\n\n// Acceptable values of `sortValueBy` prop.\nexport const ORDER_SELECTED = 'ORDER_SELECTED'\nexport const LEVEL = 'LEVEL'\nexport const INDEX = 'INDEX'\n\n// Key codes look-up table.\nexport const KEY_CODES = {\n BACKSPACE: 8,\n ENTER: 13,\n ESCAPE: 27,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n}\n\n// Other constants.\nexport const INPUT_DEBOUNCE_DELAY = process.env.NODE_ENV === 'testing'\n ? /* to speed up unit testing */ 10\n : /* istanbul ignore next */ 200\nexport const MIN_INPUT_WIDTH = 5\nexport const MENU_BUFFER = 40\n","import fuzzysearch from 'fuzzysearch'\n\nimport {\n warning,\n onLeftClick, scrollIntoView,\n isNaN, isPromise, once,\n identity, constant, createMap,\n quickDiff, last as getLast, includes, find, removeFromArray,\n} from '../utils'\n\nimport {\n NO_PARENT_NODE,\n UNCHECKED, INDETERMINATE, CHECKED,\n LOAD_ROOT_OPTIONS, LOAD_CHILDREN_OPTIONS, ASYNC_SEARCH,\n ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE,\n ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS,\n ORDER_SELECTED, LEVEL, INDEX,\n} from '../constants'\n\nfunction sortValueByIndex(a, b) {\n let i = 0\n do {\n if (a.level < i) return -1\n if (b.level < i) return 1\n if (a.index[i] !== b.index[i]) return a.index[i] - b.index[i]\n i++\n } while (true)\n}\n\nfunction sortValueByLevel(a, b) {\n return a.level === b.level\n ? sortValueByIndex(a, b)\n : a.level - b.level\n}\n\nfunction createAsyncOptionsStates() {\n return {\n isLoaded: false,\n isLoading: false,\n loadingError: '',\n }\n}\n\nfunction stringifyOptionPropValue(value) {\n if (typeof value === 'string') return value\n if (typeof value === 'number' && !isNaN(value)) return value + ''\n // istanbul ignore next\n return ''\n}\n\nfunction match(enableFuzzyMatch, needle, haystack) {\n return enableFuzzyMatch\n ? fuzzysearch(needle, haystack)\n : includes(haystack, needle)\n}\n\nfunction getErrorMessage(err) {\n return err.message || /* istanbul ignore next */String(err)\n}\n\nlet instanceId = 0\n\nexport default {\n provide() {\n return {\n // Enable access to the instance of root component of vue-treeselect\n // across hierarchy.\n instance: this,\n }\n },\n\n props: {\n /**\n * Whether to allow resetting value even if there are disabled selected nodes.\n */\n allowClearingDisabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.\n * You may want to use this in conjunction with `allowClearingDisabled` prop.\n */\n allowSelectingDisabledDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the menu should be always open.\n */\n alwaysOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Append the menu to ?\n */\n appendToBody: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable async search mode.\n */\n async: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically focus the component on mount?\n */\n autoFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.\n */\n autoLoadRootOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.\n */\n autoDeselectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user deselects a node, automatically deselect its descendants. Applies to flat mode only.\n */\n autoDeselectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its ancestors. Applies to flat mode only.\n */\n autoSelectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its descendants. Applies to flat mode only.\n */\n autoSelectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether pressing backspace key removes the last item if there is no text input.\n */\n backspaceRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Function that processes before clearing all input fields.\n * Return `false` to prevent value from being cleared.\n * @type {function(): (boolean|Promise)}\n */\n beforeClearAll: {\n type: Function,\n default: constant(true),\n },\n\n /**\n * Show branch nodes before leaf nodes?\n */\n branchNodesFirst: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Should cache results of every search request?\n */\n cacheOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Show an \"×\" button that resets value?\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Title for the \"×\" button when `multiple: true`.\n */\n clearAllText: {\n type: String,\n default: 'Clear all',\n },\n\n /**\n * Whether to clear the search input after selecting.\n * Use only when `multiple` is `true`.\n * For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.\n */\n clearOnSelect: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Title for the \"×\" button.\n */\n clearValueText: {\n type: String,\n default: 'Clear value',\n },\n\n /**\n * Whether to close the menu after selecting an option?\n * Use only when `multiple` is `true`.\n */\n closeOnSelect: {\n type: Boolean,\n default: true,\n },\n\n /**\n * How many levels of branch nodes should be automatically expanded when loaded.\n * Set `Infinity` to make all branch nodes expanded by default.\n */\n defaultExpandLevel: {\n type: Number,\n default: 0,\n },\n\n /**\n * The default set of options to show before the user starts searching. Used for async search mode.\n * When set to `true`, the results for search query as a empty string will be autoloaded.\n * @type {boolean|node[]}\n */\n defaultOptions: {\n default: false,\n },\n\n /**\n * Whether pressing delete key removes the last item if there is no text input.\n */\n deleteRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Delimiter to use to join multiple values for the hidden field value.\n */\n delimiter: {\n type: String,\n default: ',',\n },\n\n /**\n * Only show the nodes that match the search value directly, excluding its ancestors.\n *\n * @type {Object}\n */\n flattenSearchResults: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Prevent branch nodes from being selected?\n */\n disableBranchNodes: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the control?\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the fuzzy matching functionality?\n */\n disableFuzzyMatching: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable flat mode or not. Non-flat mode (default) means:\n * - Whenever a branch node gets checked, all its children will be checked too\n * - Whenever a branch node has all children checked, the branch node itself will be checked too\n * Set `true` to disable this mechanism\n */\n flat: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Will be passed with all events as the last param.\n * Useful for identifying events origin.\n */\n instanceId: {\n // Add two trailing \"$\" to distinguish from explictly specified ids.\n default: () => `${instanceId++}$$`,\n type: [ String, Number ],\n },\n\n /**\n * Joins multiple values into a single form field with the `delimiter` (legacy mode).\n */\n joinValues: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Limit the display of selected options.\n * The rest will be hidden within the limitText string.\n */\n limit: {\n type: Number,\n default: Infinity,\n },\n\n /**\n * Function that processes the message shown when selected elements pass the defined limit.\n * @type {function(number): string}\n */\n limitText: {\n type: Function,\n default: function limitTextDefault(count) { // eslint-disable-line func-name-matching\n return `and ${count} more`\n },\n },\n\n /**\n * Text displayed when loading options.\n */\n loadingText: {\n type: String,\n default: 'Loading...',\n },\n\n /**\n * Used for dynamically loading options.\n * @type {function({action: string, callback: (function((Error|string)=): void), parentNode: node=, instanceId}): void}\n */\n loadOptions: {\n type: Function,\n },\n\n /**\n * Which node properties to filter on.\n */\n matchKeys: {\n type: Array,\n default: constant([ 'label' ]),\n },\n\n /**\n * Sets `maxHeight` style value of the menu.\n */\n maxHeight: {\n type: Number,\n default: 300,\n },\n\n /**\n * Set `true` to allow selecting multiple options (a.k.a., multi-select mode).\n */\n multiple: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Generates a hidden tag with this field name for html forms.\n */\n name: {\n type: String,\n },\n\n /**\n * Text displayed when a branch node has no children.\n */\n noChildrenText: {\n type: String,\n default: 'No sub-options.',\n },\n\n /**\n * Text displayed when there are no available options.\n */\n noOptionsText: {\n type: String,\n default: 'No options available.',\n },\n\n /**\n * Text displayed when there are no matching search results.\n */\n noResultsText: {\n type: String,\n default: 'No results found...',\n },\n\n /**\n * Used for normalizing source data.\n * @type {function(node, instanceId): node}\n */\n normalizer: {\n type: Function,\n default: identity,\n },\n\n /**\n * By default (`auto`), the menu will open below the control. If there is not\n * enough space, vue-treeselect will automatically flip the menu.\n * You can use one of other four options to force the menu to be always opened\n * to specified direction.\n * Acceptable values:\n * - `\"auto\"`\n * - `\"below\"`\n * - `\"bottom\"`\n * - `\"above\"`\n * - `\"top\"`\n */\n openDirection: {\n type: String,\n default: 'auto',\n validator(value) {\n const acceptableValues = [ 'auto', 'top', 'bottom', 'above', 'below' ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to automatically open the menu when the control is clicked.\n */\n openOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether to automatically open the menu when the control is focused.\n */\n openOnFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Array of available options.\n * @type {node[]}\n */\n options: {\n type: Array,\n },\n\n /**\n * Field placeholder, displayed when there's no value.\n */\n placeholder: {\n type: String,\n default: 'Select...',\n },\n\n /**\n * Applies HTML5 required attribute when needed.\n */\n required: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text displayed asking user whether to retry loading children options.\n */\n retryText: {\n type: String,\n default: 'Retry?',\n },\n\n /**\n * Title for the retry button.\n */\n retryTitle: {\n type: String,\n default: 'Click to retry',\n },\n\n /**\n * Enable searching feature?\n */\n searchable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Search in ancestor nodes too.\n */\n searchNested: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text tip to prompt for async search.\n */\n searchPromptText: {\n type: String,\n default: 'Type to search...',\n },\n\n showAsGroup: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to show a children count next to the label of each branch node.\n */\n showCount: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Used in conjunction with `showCount` to specify which type of count number should be displayed.\n * Acceptable values:\n * - \"ALL_CHILDREN\"\n * - \"ALL_DESCENDANTS\"\n * - \"LEAF_CHILDREN\"\n * - \"LEAF_DESCENDANTS\"\n */\n showCountOf: {\n type: String,\n default: ALL_CHILDREN,\n validator(value) {\n const acceptableValues = [ ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to show children count when searching.\n * Fallbacks to the value of `showCount` when not specified.\n * @type {boolean}\n */\n showCountOnSearch: null,\n\n /**\n * In which order the selected options should be displayed in trigger & sorted in `value` array.\n * Used for multi-select mode only.\n * Acceptable values:\n * - \"ORDER_SELECTED\"\n * - \"LEVEL\"\n * - \"INDEX\"\n */\n sortValueBy: {\n type: String,\n default: ORDER_SELECTED,\n validator(value) {\n const acceptableValues = [ ORDER_SELECTED, LEVEL, INDEX ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Tab index of the control.\n */\n tabIndex: {\n type: Number,\n default: 0,\n },\n\n /**\n * The value of the control.\n * Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.\n * Its format depends on the `valueFormat` prop.\n * For most cases, just use `v-model` instead.\n * @type {?Array}\n */\n value: null,\n\n /**\n * Which kind of nodes should be included in the `value` array in multi-select mode.\n * Acceptable values:\n * - \"ALL\" - Any node that is checked will be included in the `value` array\n * - \"BRANCH_PRIORITY\" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array\n * - \"LEAF_PRIORITY\" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included\n * - \"ALL_WITH_INDETERMINATE\" - Any node that is checked will be included in the `value` array, plus indeterminate nodes\n */\n valueConsistsOf: {\n type: String,\n default: BRANCH_PRIORITY,\n validator(value) {\n const acceptableValues = [ ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Format of `value` prop.\n * Note that, when set to `\"object\"`, only `id` & `label` properties are required in each `node` object in `value` prop.\n * Acceptable values:\n * - \"id\"\n * - \"object\"\n */\n valueFormat: {\n type: String,\n default: 'id',\n },\n\n /**\n * z-index of the menu.\n */\n zIndex: {\n type: [ Number, String ],\n default: 999,\n },\n },\n\n data() {\n return {\n trigger: {\n // Is the control focused?\n isFocused: false,\n // User entered search query - value of the input.\n searchQuery: '',\n },\n\n menu: {\n // Is the menu opened?\n isOpen: false,\n // Id of current highlighted option.\n current: null,\n // The scroll position before last menu closing.\n lastScrollPosition: 0,\n // Which direction to open the menu.\n placement: 'bottom',\n },\n\n forest: {\n // Normalized options.\n normalizedOptions: [],\n // map for quick look-up.\n nodeMap: createMap(),\n // map, used for multi-select mode.\n checkedStateMap: createMap(),\n // Id list of all selected options.\n selectedNodeIds: this.extractCheckedNodeIdsFromValue(),\n // map for fast checking:\n // if (forest.selectedNodeIds.indexOf(id) !== -1) forest.selectedNodeMap[id] === true\n selectedNodeMap: createMap(),\n },\n\n // States of root options.\n rootOptionsStates: createAsyncOptionsStates(),\n\n localSearch: {\n // Has user entered any query to search local options?\n active: false,\n // Has any options matched the search query?\n noResults: true,\n // map for counting matched children/descendants.\n countMap: createMap(),\n },\n\n // map.\n remoteSearch: createMap(),\n }\n },\n\n computed: {\n /* eslint-disable valid-jsdoc */\n /**\n * Normalized nodes that have been selected.\n * @type {node[]}\n */\n selectedNodes() {\n return this.forest.selectedNodeIds.map(this.getNode)\n },\n /**\n * Id list of selected nodes with `sortValueBy` prop applied.\n * @type {nodeId[]}\n */\n internalValue() {\n let internalValue\n\n // istanbul ignore else\n const valueConsistsOf = this.showAsGroup ? LEAF_PRIORITY : this.valueConsistsOf\n if (this.single || this.flat || this.disableBranchNodes || valueConsistsOf === ALL) {\n internalValue = this.forest.selectedNodeIds.slice()\n } else if (valueConsistsOf === BRANCH_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isRootNode) return true\n return !this.isSelected(node.parentNode)\n })\n } else if (valueConsistsOf === LEAF_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isLeaf) return true\n return node.children.length === 0\n })\n } else if (valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const indeterminateNodeIds = []\n internalValue = this.forest.selectedNodeIds.slice()\n this.selectedNodes.forEach(selectedNode => {\n selectedNode.ancestors.forEach(ancestor => {\n if (includes(indeterminateNodeIds, ancestor.id)) return\n if (includes(internalValue, ancestor.id)) return\n indeterminateNodeIds.push(ancestor.id)\n })\n })\n internalValue.push(...indeterminateNodeIds)\n }\n\n if (this.sortValueBy === LEVEL) {\n internalValue.sort((a, b) => sortValueByLevel(this.getNode(a), this.getNode(b)))\n } else if (this.sortValueBy === INDEX) {\n internalValue.sort((a, b) => sortValueByIndex(this.getNode(a), this.getNode(b)))\n }\n\n return internalValue\n },\n /**\n * Has any option been selected?\n * @type {boolean}\n */\n hasValue() {\n return this.internalValue.length > 0\n },\n /**\n * Single-select mode?\n * @type {boolean}\n */\n single() {\n return !this.multiple\n },\n /**\n * Id list of nodes displayed in the menu. Nodes that are considered NOT visible:\n * - descendants of a collapsed branch node\n * - in local search mode, nodes that are not matched, unless\n * - it's a branch node and has matched descendants\n * - it's a leaf node and its parent node is explicitly set to show all children\n * @type {id[]}\n */\n visibleOptionIds() {\n const visibleOptionIds = []\n\n this.traverseAllNodesByIndex(node => {\n if (!this.localSearch.active || this.shouldOptionBeIncludedInSearchResult(node)) {\n visibleOptionIds.push(node.id)\n }\n // Skip the traversal of descendants of a branch node if it's not expanded.\n if (node.isBranch && !this.shouldExpand(node)) {\n return false\n }\n })\n\n return visibleOptionIds\n },\n /**\n * Has any option should be displayed in the menu?\n * @type {boolean}\n */\n hasVisibleOptions() {\n return this.visibleOptionIds.length !== 0\n },\n /**\n * Should show children count when searching?\n * @type {boolean}\n */\n showCountOnSearchComputed() {\n // Vue doesn't allow setting default prop value based on another prop value.\n // So use computed property as a workaround.\n // https://github.com/vuejs/vue/issues/6358\n return typeof this.showCountOnSearch === 'boolean'\n ? this.showCountOnSearch\n : this.showCount\n },\n /**\n * Is there any branch node?\n * @type {boolean}\n */\n hasBranchNodes() {\n return this.forest.normalizedOptions.some(rootNode => rootNode.isBranch)\n },\n shouldFlattenOptions() {\n return this.localSearch.active && this.flattenSearchResults\n },\n /* eslint-enable valid-jsdoc */\n },\n\n watch: {\n alwaysOpen(newValue) {\n if (newValue) this.openMenu()\n else this.closeMenu()\n },\n\n branchNodesFirst() {\n this.initialize()\n },\n\n disabled(newValue) {\n // force close the menu after disabling the control\n if (newValue && this.menu.isOpen) this.closeMenu()\n else if (!newValue && !this.menu.isOpen && this.alwaysOpen) this.openMenu()\n },\n\n flat() {\n this.initialize()\n },\n\n internalValue(newValue, oldValue) {\n const hasChanged = quickDiff(newValue, oldValue)\n // #122\n // Vue would trigger this watcher when `newValue` and `oldValue` are shallow-equal.\n // We emit the `input` event only when the value actually changes.\n if (hasChanged) this.$emit('input', this.getValue(), this.getInstanceId())\n },\n\n matchKeys() {\n this.initialize()\n },\n\n multiple(newValue) {\n // We need to rebuild the state when switching from single-select mode\n // to multi-select mode.\n // istanbul ignore else\n if (newValue) this.buildForestState()\n },\n\n options: {\n handler() {\n if (this.async) return\n // Re-initialize options when the `options` prop has changed.\n this.initialize()\n this.rootOptionsStates.isLoaded = Array.isArray(this.options)\n },\n deep: true,\n immediate: true,\n },\n\n 'trigger.searchQuery'() {\n if (this.async) {\n this.handleRemoteSearch()\n } else {\n this.handleLocalSearch()\n }\n\n this.$emit('search-change', this.trigger.searchQuery, this.getInstanceId())\n },\n\n value() {\n const nodeIdsFromValue = this.extractCheckedNodeIdsFromValue()\n const hasChanged = quickDiff(nodeIdsFromValue, this.internalValue)\n if (hasChanged) this.fixSelectedNodeIds(nodeIdsFromValue)\n },\n },\n\n methods: {\n verifyProps() {\n warning(\n () => this.async ? this.searchable : true,\n () => 'For async search mode, the value of \"searchable\" prop must be true.',\n )\n\n if (this.options == null && !this.loadOptions) {\n warning(\n () => false,\n () => 'Are you meant to dynamically load options? You need to use \"loadOptions\" prop.',\n )\n }\n\n if (this.flat) {\n warning(\n () => this.multiple,\n () => 'You are using flat mode. But you forgot to add \"multiple=true\"?',\n )\n }\n\n if (!this.flat) {\n const propNames = [\n 'autoSelectAncestors',\n 'autoSelectDescendants',\n 'autoDeselectAncestors',\n 'autoDeselectDescendants',\n ]\n\n propNames.forEach(propName => {\n warning(\n () => !this[propName],\n () => `\"${propName}\" only applies to flat mode.`,\n )\n })\n }\n },\n\n resetFlags() {\n this._blurOnSelect = false\n },\n\n initialize() {\n const options = this.async\n ? this.getRemoteSearchEntry().options\n : this.options\n\n if (Array.isArray(options)) {\n // In case we are re-initializing options, keep the old state tree temporarily.\n const prevNodeMap = this.forest.nodeMap\n this.forest.nodeMap = createMap()\n this.keepDataOfSelectedNodes(prevNodeMap)\n this.forest.normalizedOptions = this.normalize(NO_PARENT_NODE, options, prevNodeMap)\n // Cases that need fixing `selectedNodeIds`:\n // 1) Children options of a checked node have been delayed loaded,\n // we should also mark these children as checked. (multi-select mode)\n // 2) Root options have been delayed loaded, we need to initialize states\n // of these nodes. (multi-select mode)\n // 3) Async search mode.\n this.fixSelectedNodeIds(this.internalValue)\n } else {\n this.forest.normalizedOptions = []\n }\n },\n\n getInstanceId() {\n return this.instanceId == null ? this.id : this.instanceId\n },\n\n getValue() {\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.internalValue.slice()\n : this.internalValue[0]\n }\n\n const rawNodes = this.internalValue.map(id => this.getNode(id).raw)\n return this.multiple ? rawNodes : rawNodes[0]\n },\n\n getNode(nodeId) {\n warning(\n () => nodeId != null,\n () => `Invalid node id: ${nodeId}`,\n )\n\n if (nodeId == null) return null\n\n return nodeId in this.forest.nodeMap\n ? this.forest.nodeMap[nodeId]\n : this.createFallbackNode(nodeId)\n },\n\n createFallbackNode(id) {\n // In case there is a default selected node that is not loaded into the tree yet,\n // we create a fallback node to keep the component working.\n // When the real data is loaded, we'll override this fake node.\n\n const raw = this.extractNodeFromValue(id)\n const label = this.enhancedNormalizer(raw).label || `${id} (unknown)`\n const fallbackNode = {\n id,\n label,\n ancestors: [],\n parentNode: NO_PARENT_NODE,\n isFallbackNode: true,\n isRootNode: true,\n isLeaf: true,\n isBranch: false,\n isDisabled: false,\n isNew: false,\n index: [ -1 ],\n level: 0,\n raw,\n }\n\n return this.$set(this.forest.nodeMap, id, fallbackNode)\n },\n\n extractCheckedNodeIdsFromValue() {\n if (this.value == null) return []\n\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.value.slice()\n : [ this.value ]\n }\n\n return (this.multiple ? this.value : [ this.value ])\n .map(node => this.enhancedNormalizer(node))\n .map(node => node.id)\n },\n\n extractNodeFromValue(id) {\n const defaultNode = { id }\n\n if (this.valueFormat === 'id') {\n return defaultNode\n }\n\n const valueArray = this.multiple\n ? Array.isArray(this.value) ? this.value : []\n : this.value ? [ this.value ] : []\n const matched = find(\n valueArray,\n node => node && this.enhancedNormalizer(node).id === id,\n )\n\n return matched || defaultNode\n },\n\n fixSelectedNodeIds(nodeIdListOfPrevValue) {\n let nextSelectedNodeIds = []\n\n // istanbul ignore else\n if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === ALL) {\n nextSelectedNodeIds = nodeIdListOfPrevValue\n } else if (this.valueConsistsOf === BRANCH_PRIORITY) {\n nodeIdListOfPrevValue.forEach(nodeId => {\n nextSelectedNodeIds.push(nodeId)\n const node = this.getNode(nodeId)\n if (node.isBranch) this.traverseDescendantsBFS(node, descendant => {\n nextSelectedNodeIds.push(descendant.id)\n })\n })\n } else if (this.valueConsistsOf === LEAF_PRIORITY) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.slice()\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n } else if (this.valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.filter(nodeId => {\n const node = this.getNode(nodeId)\n return node.isLeaf || node.children.length === 0\n })\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n }\n\n const hasChanged = quickDiff(this.forest.selectedNodeIds, nextSelectedNodeIds)\n // If `nextSelectedNodeIds` doesn't actually differ from old `selectedNodeIds`,\n // we don't make the assignment to avoid triggering its watchers which may cause\n // unnecessary calculations.\n if (hasChanged) this.forest.selectedNodeIds = nextSelectedNodeIds\n\n this.buildForestState()\n },\n\n keepDataOfSelectedNodes(prevNodeMap) {\n // In case there is any selected node that is not present in the new `options` array.\n // It could be useful for async search mode.\n this.forest.selectedNodeIds.forEach(id => {\n if (!prevNodeMap[id]) return\n const node = {\n ...prevNodeMap[id],\n isFallbackNode: true,\n }\n this.$set(this.forest.nodeMap, id, node)\n })\n },\n\n isSelected(node) {\n // whether a node is selected (single-select mode) or fully-checked (multi-select mode)\n return this.forest.selectedNodeMap[node.id] === true\n },\n\n traverseDescendantsBFS(parentNode, callback) {\n // istanbul ignore if\n if (!parentNode.isBranch) return\n const queue = parentNode.children.slice()\n while (queue.length) {\n const currNode = queue[0]\n if (currNode.isBranch) queue.push(...currNode.children)\n callback(currNode)\n queue.shift()\n }\n },\n\n traverseDescendantsDFS(parentNode, callback) {\n if (!parentNode.isBranch) return\n parentNode.children.forEach(child => {\n // deep-level node first\n this.traverseDescendantsDFS(child, callback)\n callback(child)\n })\n },\n\n traverseAllNodesDFS(callback) {\n this.forest.normalizedOptions.forEach(rootNode => {\n // deep-level node first\n this.traverseDescendantsDFS(rootNode, callback)\n callback(rootNode)\n })\n },\n\n traverseAllNodesByIndex(callback) {\n const walk = parentNode => {\n parentNode.children.forEach(child => {\n if (callback(child) !== false && child.isBranch) {\n walk(child)\n }\n })\n }\n\n // To simplify the code logic of traversal,\n // we create a fake root node that holds all the root options.\n walk({ children: this.forest.normalizedOptions })\n },\n\n toggleClickOutsideEvent(enabled) {\n if (enabled) {\n document.addEventListener('mousedown', this.handleClickOutside, false)\n } else {\n document.removeEventListener('mousedown', this.handleClickOutside, false)\n }\n },\n\n getValueContainer() {\n if (!this.$refs || !this.$refs.control || !this.$refs.control.$refs) {\n return null\n }\n return this.$refs.control.$refs['value-container']\n },\n\n getInput() {\n return this.getValueContainer().$refs.input\n },\n\n focusInput() {\n this.getInput().focus()\n },\n\n blurInput() {\n this.getInput().blur()\n },\n\n handleMouseDown: onLeftClick(function handleMouseDown(evt) {\n evt.preventDefault()\n evt.stopPropagation()\n\n if (this.disabled || !this.getValueContainer()) return\n\n const isClickedOnValueContainer = this.getValueContainer().$el.contains(evt.target)\n if (isClickedOnValueContainer && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused)) {\n this.openMenu()\n }\n\n if (this._blurOnSelect) {\n this.blurInput()\n } else {\n // Focus the input or prevent blurring.\n this.focusInput()\n }\n\n this.resetFlags()\n }),\n\n handleClickOutside(evt) {\n // istanbul ignore else\n if (this.$refs.wrapper && !this.$refs.wrapper.contains(evt.target)) {\n this.blurInput()\n this.closeMenu()\n }\n },\n\n handleLocalSearch() {\n const { searchQuery } = this.trigger\n const done = () => this.resetHighlightedOptionWhenNecessary(true)\n\n if (!searchQuery) {\n // Exit sync search mode.\n this.localSearch.active = false\n return done()\n }\n\n // Enter sync search mode.\n this.localSearch.active = true\n\n // Reset states.\n this.localSearch.noResults = true\n this.traverseAllNodesDFS(node => {\n if (node.isBranch) {\n node.isExpandedOnSearch = false\n node.showAllChildrenOnSearch = false\n node.isMatched = false\n node.hasMatchedDescendants = false\n this.$set(this.localSearch.countMap, node.id, {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n }\n })\n\n const lowerCasedSearchQuery = searchQuery.trim().toLocaleLowerCase()\n const splitSearchQuery = lowerCasedSearchQuery.replace(/\\s+/g, ' ').split(' ')\n this.traverseAllNodesDFS(node => {\n if (this.searchNested && splitSearchQuery.length > 1) {\n node.isMatched = splitSearchQuery.every(filterValue =>\n match(false, filterValue, node.nestedSearchLabel),\n )\n } else {\n node.isMatched = this.matchKeys.some(matchKey =>\n match(!this.disableFuzzyMatching, lowerCasedSearchQuery, node.lowerCased[matchKey]),\n )\n }\n\n if (node.isMatched) {\n this.localSearch.noResults = false\n node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][ALL_DESCENDANTS]++)\n if (node.isLeaf) node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][LEAF_DESCENDANTS]++)\n if (node.parentNode !== NO_PARENT_NODE) {\n this.localSearch.countMap[node.parentNode.id][ALL_CHILDREN] += 1\n // istanbul ignore else\n if (node.isLeaf) this.localSearch.countMap[node.parentNode.id][LEAF_CHILDREN] += 1\n }\n }\n\n if (\n (node.isMatched || (node.isBranch && node.isExpandedOnSearch)) &&\n node.parentNode !== NO_PARENT_NODE\n ) {\n node.parentNode.isExpandedOnSearch = true\n node.parentNode.hasMatchedDescendants = true\n }\n })\n\n done()\n },\n\n handleRemoteSearch() {\n const { searchQuery } = this.trigger\n const entry = this.getRemoteSearchEntry()\n const done = () => {\n this.initialize()\n this.resetHighlightedOptionWhenNecessary(true)\n }\n\n if ((searchQuery === '' || this.cacheOptions) && entry.isLoaded) {\n return done()\n }\n\n this.callLoadOptionsProp({\n action: ASYNC_SEARCH,\n args: { searchQuery },\n isPending() {\n return entry.isLoading\n },\n start: () => {\n entry.isLoading = true\n entry.isLoaded = false\n entry.loadingError = ''\n },\n succeed: options => {\n entry.isLoaded = true\n entry.options = options\n // When the request completes, the search query may have changed.\n // We only show these options if they are for the current search query.\n if (this.trigger.searchQuery === searchQuery) done()\n },\n fail: err => {\n entry.loadingError = getErrorMessage(err)\n },\n end: () => {\n entry.isLoading = false\n },\n })\n },\n\n getRemoteSearchEntry() {\n const { searchQuery } = this.trigger\n const entry = this.remoteSearch[searchQuery] || {\n ...createAsyncOptionsStates(),\n options: [],\n }\n\n // Vue doesn't support directly watching on objects.\n this.$watch(\n () => entry.options,\n () => {\n // TODO: potential redundant re-initialization.\n if (this.trigger.searchQuery === searchQuery) this.initialize()\n },\n { deep: true },\n )\n\n if (searchQuery === '') {\n if (Array.isArray(this.defaultOptions)) {\n entry.options = this.defaultOptions\n entry.isLoaded = true\n return entry\n } else if (this.defaultOptions !== true) {\n entry.isLoaded = true\n return entry\n }\n }\n\n if (!this.remoteSearch[searchQuery]) {\n this.$set(this.remoteSearch, searchQuery, entry)\n }\n\n return entry\n },\n\n shouldExpand(node) {\n return this.localSearch.active ? node.isExpandedOnSearch : node.isExpanded\n },\n\n shouldOptionBeIncludedInSearchResult(node) {\n // 1) This option is matched.\n if (node.isMatched) return true\n // 2) This option is not matched, but has matched descendant(s).\n if (node.isBranch && node.hasMatchedDescendants && !this.flattenSearchResults) return true\n // 3) This option's parent has no matched descendants,\n // but after being expanded, all its children should be shown.\n if (!node.isRootNode && node.parentNode.showAllChildrenOnSearch) return true\n // 4) The default case.\n return false\n },\n\n shouldShowOptionInMenu(node) {\n if (this.localSearch.active && !this.shouldOptionBeIncludedInSearchResult(node)) {\n return false\n }\n return true\n },\n\n getControl() {\n return this.$refs.control.$el\n },\n\n getMenu() {\n const ref = this.appendToBody ? this.$refs.portal.portalTarget : this\n const $menu = ref.$refs.menu.$refs.menu\n return $menu && $menu.nodeName !== '#comment' ? $menu : null\n },\n\n setCurrentHighlightedOption(node, scroll = true) {\n const prev = this.menu.current\n if (prev != null && prev in this.forest.nodeMap) {\n this.forest.nodeMap[prev].isHighlighted = false\n }\n\n this.menu.current = node.id\n node.isHighlighted = true\n\n if (this.menu.isOpen && scroll) {\n const scrollToOption = () => {\n const nodeId = node.id.toString().replace(/\"/g, '\\\\\"')\n const $menu = this.getMenu()\n const $option = $menu.querySelector(`.vue-treeselect__option[data-id=\"${nodeId}\"]`)\n if ($option) scrollIntoView($menu, $option)\n }\n\n // In case `openMenu()` is just called and the menu is not rendered yet.\n if (this.getMenu()) {\n scrollToOption()\n } else {\n // istanbul ignore next\n this.$nextTick(scrollToOption)\n }\n }\n },\n\n resetHighlightedOptionWhenNecessary(forceReset = false) {\n const { current } = this.menu\n\n if (\n forceReset || current == null ||\n !(current in this.forest.nodeMap) ||\n !this.shouldShowOptionInMenu(this.getNode(current))\n ) {\n this.highlightFirstOption()\n }\n },\n\n highlightFirstOption() {\n if (!this.hasVisibleOptions) return\n\n const first = this.visibleOptionIds[0]\n this.setCurrentHighlightedOption(this.getNode(first))\n },\n\n highlightPrevOption() {\n if (!this.hasVisibleOptions) return\n\n const prev = this.visibleOptionIds.indexOf(this.menu.current) - 1\n if (prev === -1) return this.highlightLastOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[prev]))\n },\n\n highlightNextOption() {\n if (!this.hasVisibleOptions) return\n\n const next = this.visibleOptionIds.indexOf(this.menu.current) + 1\n if (next === this.visibleOptionIds.length) return this.highlightFirstOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[next]))\n },\n\n highlightLastOption() {\n if (!this.hasVisibleOptions) return\n\n const last = getLast(this.visibleOptionIds)\n this.setCurrentHighlightedOption(this.getNode(last))\n },\n\n resetSearchQuery() {\n this.trigger.searchQuery = ''\n },\n\n closeMenu() {\n if (!this.menu.isOpen || (!this.disabled && this.alwaysOpen)) return\n this.saveMenuScrollPosition()\n this.menu.isOpen = false\n this.toggleClickOutsideEvent(false)\n this.resetSearchQuery()\n this.$emit('close', this.getValue(), this.getInstanceId())\n },\n\n openMenu() {\n if (this.disabled || this.menu.isOpen) return\n this.menu.isOpen = true\n this.$nextTick(this.resetHighlightedOptionWhenNecessary)\n this.$nextTick(this.restoreMenuScrollPosition)\n if (!this.options && !this.async) this.loadRootOptions()\n this.toggleClickOutsideEvent(true)\n this.$emit('open', this.getInstanceId())\n },\n\n toggleMenu() {\n if (this.menu.isOpen) {\n this.closeMenu()\n } else {\n this.openMenu()\n }\n },\n\n toggleExpanded(node) {\n let nextState\n\n if (this.localSearch.active) {\n nextState = node.isExpandedOnSearch = !node.isExpandedOnSearch\n if (nextState) node.showAllChildrenOnSearch = true\n } else {\n nextState = node.isExpanded = !node.isExpanded\n }\n\n if (nextState && !node.childrenStates.isLoaded) {\n this.loadChildrenOptions(node)\n }\n },\n\n buildForestState() {\n const selectedNodeMap = createMap()\n this.forest.selectedNodeIds.forEach(selectedNodeId => {\n selectedNodeMap[selectedNodeId] = true\n })\n this.forest.selectedNodeMap = selectedNodeMap\n\n const checkedStateMap = createMap()\n if (this.multiple) {\n this.traverseAllNodesByIndex(node => {\n checkedStateMap[node.id] = UNCHECKED\n })\n\n this.selectedNodes.forEach(selectedNode => {\n checkedStateMap[selectedNode.id] = CHECKED\n\n if (!this.flat && !this.disableBranchNodes) {\n selectedNode.ancestors.forEach(ancestorNode => {\n if (!this.isSelected(ancestorNode)) {\n checkedStateMap[ancestorNode.id] = INDETERMINATE\n }\n })\n }\n })\n }\n this.forest.checkedStateMap = checkedStateMap\n },\n\n enhancedNormalizer(raw) {\n return {\n ...raw,\n ...this.normalizer(raw, this.getInstanceId()),\n }\n },\n\n normalize(parentNode, nodes, prevNodeMap) {\n let normalizedOptions = nodes\n .map(node => [ this.enhancedNormalizer(node), node ])\n .map(([ node, raw ], index) => {\n this.checkDuplication(node)\n this.verifyNodeShape(node)\n\n const id = node.id !== undefined ? node.id : Math.round(Math.random() * 1000000)\n const { label, children, isDefaultExpanded } = node\n const isRootNode = parentNode === NO_PARENT_NODE\n const level = isRootNode || this.showAsGroup ? 0 : parentNode.level + 1\n const isBranch = Array.isArray(children) || children === null\n const isLeaf = !isBranch\n const isDisabled = !!node.isDisabled || (!this.flat && !isRootNode && parentNode.isDisabled)\n const isNew = !!node.isNew\n const lowerCased = this.matchKeys.reduce((prev, key) => ({\n ...prev,\n [key]: stringifyOptionPropValue(node[key]).toLocaleLowerCase(),\n }), {})\n const nestedSearchLabel = isRootNode\n ? lowerCased.label\n : parentNode.nestedSearchLabel + ' ' + lowerCased.label\n\n const normalized = this.$set(this.forest.nodeMap, id, createMap())\n this.$set(normalized, 'id', id)\n this.$set(normalized, 'label', label)\n this.$set(normalized, 'level', level)\n this.$set(normalized, 'ancestors', isRootNode ? [] : [ parentNode ].concat(parentNode.ancestors))\n this.$set(normalized, 'index', (isRootNode ? [] : parentNode.index).concat(index))\n this.$set(normalized, 'parentNode', parentNode)\n this.$set(normalized, 'lowerCased', lowerCased)\n this.$set(normalized, 'nestedSearchLabel', nestedSearchLabel)\n this.$set(normalized, 'isDisabled', isDisabled)\n this.$set(normalized, 'isNew', isNew)\n this.$set(normalized, 'isMatched', false)\n this.$set(normalized, 'isHighlighted', false)\n this.$set(normalized, 'isBranch', isBranch)\n this.$set(normalized, 'isGroup', isBranch && this.showAsGroup)\n this.$set(normalized, 'isLeaf', isLeaf)\n this.$set(normalized, 'isRootNode', isRootNode)\n this.$set(normalized, 'raw', raw)\n\n if (isBranch) {\n const isLoaded = Array.isArray(children)\n\n this.$set(normalized, 'childrenStates', {\n ...createAsyncOptionsStates(),\n isLoaded,\n })\n this.$set(normalized, 'isExpanded', this.showAsGroup ? this.showAsGroup : typeof isDefaultExpanded === 'boolean'\n ? isDefaultExpanded\n : level < this.defaultExpandLevel)\n this.$set(normalized, 'hasMatchedDescendants', false)\n this.$set(normalized, 'hasDisabledDescendants', false)\n this.$set(normalized, 'isExpandedOnSearch', false)\n this.$set(normalized, 'showAllChildrenOnSearch', false)\n this.$set(normalized, 'count', {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n this.$set(normalized, 'children', isLoaded\n ? this.normalize(normalized, children, prevNodeMap)\n : [])\n\n if (isDefaultExpanded === true) normalized.ancestors.forEach(ancestor => {\n ancestor.isExpanded = true\n })\n\n if (!isLoaded && typeof this.loadOptions !== 'function') {\n warning(\n () => false,\n () => 'Unloaded branch node detected. \"loadOptions\" prop is required to load its children.',\n )\n } else if (!isLoaded && normalized.isExpanded) {\n this.loadChildrenOptions(normalized)\n }\n }\n\n normalized.ancestors.forEach(ancestor => ancestor.count[ALL_DESCENDANTS]++)\n if (isLeaf) normalized.ancestors.forEach(ancestor => ancestor.count[LEAF_DESCENDANTS]++)\n if (!isRootNode) {\n parentNode.count[ALL_CHILDREN] += 1\n if (isLeaf) parentNode.count[LEAF_CHILDREN] += 1\n if (isDisabled) parentNode.hasDisabledDescendants = true\n }\n\n // Preserve previous states.\n if (prevNodeMap && prevNodeMap[id]) {\n const prev = prevNodeMap[id]\n\n normalized.isMatched = prev.isMatched\n normalized.showAllChildrenOnSearch = prev.showAllChildrenOnSearch\n normalized.isHighlighted = prev.isHighlighted\n\n if (prev.isBranch && normalized.isBranch) {\n normalized.isExpanded = prev.isExpanded\n normalized.isExpandedOnSearch = prev.isExpandedOnSearch\n // #97\n // If `isLoaded` was true, but IS NOT now, we consider this branch node\n // to be reset to unloaded state by the user of this component.\n if (prev.childrenStates.isLoaded && !normalized.childrenStates.isLoaded) {\n // Make sure the node is collapsed, then the user can load its\n // children again (by expanding).\n normalized.isExpanded = false\n // We have reset `childrenStates` and don't want to preserve states here.\n } else {\n normalized.childrenStates = { ...prev.childrenStates }\n }\n }\n }\n\n return normalized\n })\n\n if (this.branchNodesFirst) {\n const branchNodes = normalizedOptions.filter(option => option.isBranch)\n const leafNodes = normalizedOptions.filter(option => option.isLeaf)\n normalizedOptions = branchNodes.concat(leafNodes)\n }\n\n return normalizedOptions\n },\n\n loadRootOptions() {\n this.callLoadOptionsProp({\n action: LOAD_ROOT_OPTIONS,\n isPending: () => {\n return this.rootOptionsStates.isLoading\n },\n start: () => {\n this.rootOptionsStates.isLoading = true\n this.rootOptionsStates.loadingError = ''\n },\n succeed: () => {\n this.rootOptionsStates.isLoaded = true\n // Wait for `options` being re-initialized.\n this.$nextTick(() => {\n this.resetHighlightedOptionWhenNecessary(true)\n })\n },\n fail: err => {\n this.rootOptionsStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.rootOptionsStates.isLoading = false\n },\n })\n },\n\n loadChildrenOptions(parentNode) {\n // The options may be re-initialized anytime during the loading process.\n // So `parentNode` can be stale and we use `getNode()` to avoid that.\n\n const { id, raw } = parentNode\n\n this.callLoadOptionsProp({\n action: LOAD_CHILDREN_OPTIONS,\n args: {\n // We always pass the raw node instead of the normalized node to any\n // callback provided by the user of this component.\n // Because the shape of the raw node is more likely to be closing to\n // what the back-end API service of the application needs.\n parentNode: raw,\n },\n isPending: () => {\n return this.getNode(id).childrenStates.isLoading\n },\n start: () => {\n this.getNode(id).childrenStates.isLoading = true\n this.getNode(id).childrenStates.loadingError = ''\n },\n succeed: () => {\n this.getNode(id).childrenStates.isLoaded = true\n },\n fail: err => {\n this.getNode(id).childrenStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.getNode(id).childrenStates.isLoading = false\n },\n })\n },\n\n callLoadOptionsProp({ action, args, isPending, start, succeed, fail, end }) {\n if (!this.loadOptions || isPending()) {\n return\n }\n\n start()\n\n const callback = once((err, result) => {\n if (err) {\n fail(err)\n } else {\n succeed(result)\n }\n\n end()\n })\n const result = this.loadOptions({\n id: this.getInstanceId(),\n instanceId: this.getInstanceId(),\n action,\n ...args,\n callback,\n })\n\n if (isPromise(result)) {\n result.then(() => {\n callback()\n }, err => {\n callback(err)\n }).catch(err => {\n // istanbul ignore next\n console.error(err)\n })\n }\n },\n\n checkDuplication(node) {\n warning(\n () => !((node.id in this.forest.nodeMap) && !this.forest.nodeMap[node.id].isFallbackNode),\n () => `Detected duplicate presence of node id ${JSON.stringify(node.id)}. ` +\n `Their labels are \"${this.forest.nodeMap[node.id].label}\" and \"${node.label}\" respectively.`,\n )\n },\n\n verifyNodeShape(node) {\n warning(\n () => !(node.children === undefined && node.isBranch === true),\n () => 'Are you meant to declare an unloaded branch node? ' +\n '`isBranch: true` is no longer supported, please use `children: null` instead.',\n )\n },\n\n select(node) {\n if (this.disabled || node.isDisabled) {\n return\n }\n\n if (this.single) {\n this.clear()\n }\n\n const nextState = this.multiple && !this.flat\n ? this.forest.checkedStateMap[node.id] === UNCHECKED\n : !this.isSelected(node)\n\n if (nextState) {\n this._selectNode(node)\n } else {\n this._deselectNode(node)\n }\n\n this.buildForestState()\n\n if (nextState) {\n this.$emit('select', node.raw, this.getInstanceId())\n } else {\n this.$emit('deselect', node.raw, this.getInstanceId())\n }\n\n if (this.localSearch.active && nextState && (this.single || this.clearOnSelect)) {\n this.resetSearchQuery()\n }\n\n if (this.single && this.closeOnSelect) {\n this.closeMenu()\n\n // istanbul ignore else\n if (this.searchable) {\n this._blurOnSelect = true\n }\n }\n },\n\n clear() {\n if (this.hasValue) {\n if (this.single || this.allowClearingDisabled) {\n this.forest.selectedNodeIds = []\n } else /* if (this.multiple && !this.allowClearingDisabled) */ {\n this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter(nodeId =>\n this.getNode(nodeId).isDisabled,\n )\n }\n\n this.buildForestState()\n }\n },\n\n // This is meant to be called only by `select()`.\n _selectNode(node) {\n if (this.single || this.disableBranchNodes) {\n return this.addValue(node)\n }\n\n if (this.flat) {\n this.addValue(node)\n\n if (this.autoSelectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (!this.isSelected(ancestor) && !ancestor.isDisabled) this.addValue(ancestor)\n })\n } else if (this.autoSelectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!this.isSelected(descendant) && !descendant.isDisabled) this.addValue(descendant)\n })\n }\n\n return\n }\n\n const isFullyChecked = (\n node.isLeaf ||\n (/* node.isBranch && */!node.hasDisabledDescendants) ||\n (/* node.isBranch && */this.allowSelectingDisabledDescendants)\n )\n if (isFullyChecked) {\n this.addValue(node)\n }\n\n if (node.isBranch) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.addValue(descendant)\n }\n })\n }\n\n if (isFullyChecked) {\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (curr.children.every(this.isSelected)) this.addValue(curr)\n else break\n }\n }\n },\n\n // This is meant to be called only by `select()`.\n _deselectNode(node) {\n if (this.disableBranchNodes) {\n return this.removeValue(node)\n }\n\n if (this.flat) {\n this.removeValue(node)\n\n if (this.autoDeselectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (this.isSelected(ancestor) && !ancestor.isDisabled) this.removeValue(ancestor)\n })\n } else if (this.autoDeselectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (this.isSelected(descendant) && !descendant.isDisabled) this.removeValue(descendant)\n })\n }\n\n return\n }\n\n let hasUncheckedSomeDescendants = false\n if (node.isBranch) {\n this.traverseDescendantsDFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.removeValue(descendant)\n hasUncheckedSomeDescendants = true\n }\n })\n }\n\n if (\n node.isLeaf ||\n /* node.isBranch && */hasUncheckedSomeDescendants ||\n /* node.isBranch && */node.children.length === 0\n ) {\n this.removeValue(node)\n\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (this.isSelected(curr)) this.removeValue(curr)\n else break\n }\n }\n },\n\n addValue(node) {\n this.forest.selectedNodeIds.push(node.id)\n this.forest.selectedNodeMap[node.id] = true\n },\n\n removeValue(node) {\n removeFromArray(this.forest.selectedNodeIds, node.id)\n delete this.forest.selectedNodeMap[node.id]\n },\n\n removeLastValue() {\n if (!this.hasValue) return\n if (this.single) return this.clear()\n const lastValue = getLast(this.internalValue)\n const lastSelectedNode = this.getNode(lastValue)\n this.select(lastSelectedNode) // deselect\n },\n\n saveMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) this.menu.lastScrollPosition = $menu.scrollTop\n },\n\n restoreMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) $menu.scrollTop = this.menu.lastScrollPosition\n },\n },\n\n created() {\n this.verifyProps()\n this.resetFlags()\n },\n\n mounted() {\n if (this.autoFocus) this.focusInput()\n if (!this.options && !this.async && this.autoLoadRootOptions) this.loadRootOptions()\n if (this.alwaysOpen) this.openMenu()\n if (this.async && this.defaultOptions) this.handleRemoteSearch()\n },\n\n destroyed() {\n // istanbul ignore next\n this.toggleClickOutsideEvent(false)\n },\n}\n","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HiddenFields.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HiddenFields.vue?vue&type=script&lang=js\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render, staticRenderFns\nimport script from \"./HiddenFields.vue?vue&type=script&lang=js\"\nexport * from \"./HiddenFields.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4d48089a')) {\n api.createRecord('4d48089a', component.options)\n } else {\n api.reload('4d48089a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/HiddenFields.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Input.vue?vue&type=script&lang=js\"\nexport * from \"./Input.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('54844eca')) {\n api.createRecord('54844eca', component.options)\n } else {\n api.reload('54844eca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Input.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Placeholder.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Placeholder.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Placeholder.vue?vue&type=script&lang=js\"\nexport * from \"./Placeholder.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('5a99d1f3')) {\n api.createRecord('5a99d1f3', component.options)\n } else {\n api.reload('5a99d1f3', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Placeholder.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleValue.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleValue.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./SingleValue.vue?vue&type=script&lang=js\"\nexport * from \"./SingleValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('03d19b89')) {\n api.createRecord('03d19b89', component.options)\n } else {\n api.reload('03d19b89', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/SingleValue.vue\"\nexport default component.exports","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 348.333 348.333\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delete.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delete.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Delete.vue?vue&type=template&id=364b6320\"\nimport script from \"./Delete.vue?vue&type=script&lang=js\"\nexport * from \"./Delete.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('364b6320')) {\n api.createRecord('364b6320', component.options)\n } else {\n api.reload('364b6320', component.options)\n }\n module.hot.accept(\"./Delete.vue?vue&type=template&id=364b6320\", function () {\n api.rerender('364b6320', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Delete.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValueItem.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValueItem.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MultiValueItem.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValueItem.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('6dd6c8ca')) {\n api.createRecord('6dd6c8ca', component.options)\n } else {\n api.reload('6dd6c8ca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValueItem.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValue.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValue.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MultiValue.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('14fca5e8')) {\n api.createRecord('14fca5e8', component.options)\n } else {\n api.reload('14fca5e8', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValue.vue\"\nexport default component.exports","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 292.362 292.362\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Arrow.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Arrow.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Arrow.vue?vue&type=template&id=11186cd4\"\nimport script from \"./Arrow.vue?vue&type=script&lang=js\"\nexport * from \"./Arrow.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('11186cd4')) {\n api.createRecord('11186cd4', component.options)\n } else {\n api.reload('11186cd4', component.options)\n }\n module.hot.accept(\"./Arrow.vue?vue&type=template&id=11186cd4\", function () {\n api.rerender('11186cd4', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Arrow.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Control.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Control.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Control.vue?vue&type=script&lang=js\"\nexport * from \"./Control.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('2fa0a0dd')) {\n api.createRecord('2fa0a0dd', component.options)\n } else {\n api.reload('2fa0a0dd', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Control.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tip.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tip.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Tip.vue?vue&type=script&lang=js\"\nexport * from \"./Tip.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9f31bdca')) {\n api.createRecord('9f31bdca', component.options)\n } else {\n api.reload('9f31bdca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Tip.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Option.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Option.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Option.vue?vue&type=script&lang=js\"\nexport * from \"./Option.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('3dddec25')) {\n api.createRecord('3dddec25', component.options)\n } else {\n api.reload('3dddec25', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Option.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Menu.vue?vue&type=script&lang=js\"\nexport * from \"./Menu.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9bcc0be2')) {\n api.createRecord('9bcc0be2', component.options)\n } else {\n api.reload('9bcc0be2', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Menu.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuPortal.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuPortal.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MenuPortal.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPortal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4802d94a')) {\n api.createRecord('4802d94a', component.options)\n } else {\n api.reload('4802d94a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MenuPortal.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Treeselect.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Treeselect.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Treeselect.vue?vue&type=script&lang=js\"\nexport * from \"./Treeselect.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('aebf116c')) {\n api.createRecord('aebf116c', component.options)\n } else {\n api.reload('aebf116c', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Treeselect.vue\"\nexport default component.exports","import Treeselect from './components/Treeselect'\nimport treeselectMixin from './mixins/treeselectMixin'\nimport './style.less'\n\nexport default Treeselect\nexport { Treeselect, treeselectMixin }\nexport {\n // Delayed loading.\n LOAD_ROOT_OPTIONS,\n LOAD_CHILDREN_OPTIONS,\n ASYNC_SEARCH,\n} from './constants'\n\nexport const VERSION = PKG_VERSION\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://VueTreeselect/webpack/universalModuleDefinition","webpack://VueTreeselect/webpack/bootstrap","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/toPropertyKey.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/typeof.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/toPrimitive.js","webpack://VueTreeselect/./node_modules/fuzzysearch/index.js","webpack://VueTreeselect/./node_modules/lodash/noop.js","webpack://VueTreeselect/./node_modules/lodash/debounce.js","webpack://VueTreeselect/./node_modules/lodash/isObject.js","webpack://VueTreeselect/./node_modules/lodash/now.js","webpack://VueTreeselect/./node_modules/lodash/_root.js","webpack://VueTreeselect/./node_modules/lodash/_freeGlobal.js","webpack://VueTreeselect/(webpack)/buildin/global.js","webpack://VueTreeselect/./node_modules/lodash/toNumber.js","webpack://VueTreeselect/./node_modules/lodash/_baseTrim.js","webpack://VueTreeselect/./node_modules/lodash/_trimmedEndIndex.js","webpack://VueTreeselect/./node_modules/lodash/isSymbol.js","webpack://VueTreeselect/./node_modules/lodash/_baseGetTag.js","webpack://VueTreeselect/./node_modules/lodash/_Symbol.js","webpack://VueTreeselect/./node_modules/lodash/_getRawTag.js","webpack://VueTreeselect/./node_modules/lodash/_objectToString.js","webpack://VueTreeselect/./node_modules/lodash/isObjectLike.js","webpack://VueTreeselect/./node_modules/is-promise/index.js","webpack://VueTreeselect/./node_modules/lodash/once.js","webpack://VueTreeselect/./node_modules/lodash/before.js","webpack://VueTreeselect/./node_modules/lodash/toInteger.js","webpack://VueTreeselect/./node_modules/lodash/toFinite.js","webpack://VueTreeselect/./node_modules/lodash/identity.js","webpack://VueTreeselect/./node_modules/lodash/constant.js","webpack://VueTreeselect/./node_modules/lodash/last.js","webpack://VueTreeselect/./node_modules/babel-helper-vue-jsx-merge-props/index.js","webpack://VueTreeselect/external \"Vue\"","webpack://VueTreeselect/./src/style.less?1f4a","webpack://VueTreeselect/./src/utils/warning.js","webpack://VueTreeselect/./src/utils/onLeftClick.js","webpack://VueTreeselect/./src/utils/scrollIntoView.js","webpack://VueTreeselect/./node_modules/watch-size/index.es.mjs","webpack://VueTreeselect/./src/utils/removeFromArray.js","webpack://VueTreeselect/./src/utils/watchSize.js","webpack://VueTreeselect/./src/utils/setupResizeAndScrollEventListeners.js","webpack://VueTreeselect/./src/utils/isNaN.js","webpack://VueTreeselect/./src/utils/createMap.js","webpack://VueTreeselect/./src/utils/deepExtend.js","webpack://VueTreeselect/./src/utils/includes.js","webpack://VueTreeselect/./src/utils/find.js","webpack://VueTreeselect/./src/utils/quickDiff.js","webpack://VueTreeselect/./src/utils/index.js","webpack://VueTreeselect/./src/constants.js","webpack://VueTreeselect/./src/mixins/treeselectMixin.js","webpack://VueTreeselect/src/components/HiddenFields.vue","webpack://VueTreeselect/./src/components/HiddenFields.vue?2cdc","webpack://VueTreeselect/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VueTreeselect/./src/components/HiddenFields.vue","webpack://VueTreeselect/src/components/Input.vue","webpack://VueTreeselect/./src/components/Input.vue?3957","webpack://VueTreeselect/./src/components/Input.vue","webpack://VueTreeselect/src/components/Placeholder.vue","webpack://VueTreeselect/./src/components/Placeholder.vue?7a2d","webpack://VueTreeselect/./src/components/Placeholder.vue","webpack://VueTreeselect/src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/SingleValue.vue?304b","webpack://VueTreeselect/./src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?9af8","webpack://VueTreeselect/src/components/icons/Delete.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?706a","webpack://VueTreeselect/./src/components/icons/Delete.vue","webpack://VueTreeselect/src/components/MultiValueItem.vue","webpack://VueTreeselect/./src/components/MultiValueItem.vue?6db0","webpack://VueTreeselect/./src/components/MultiValueItem.vue","webpack://VueTreeselect/src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/MultiValue.vue?998f","webpack://VueTreeselect/./src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?a3ef","webpack://VueTreeselect/src/components/icons/Arrow.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?c39d","webpack://VueTreeselect/./src/components/icons/Arrow.vue","webpack://VueTreeselect/src/components/Control.vue","webpack://VueTreeselect/./src/components/Control.vue?2f53","webpack://VueTreeselect/./src/components/Control.vue","webpack://VueTreeselect/src/components/Tip.vue","webpack://VueTreeselect/./src/components/Tip.vue?f94f","webpack://VueTreeselect/./src/components/Tip.vue","webpack://VueTreeselect/src/components/Option.vue","webpack://VueTreeselect/./src/components/Option.vue?f5e1","webpack://VueTreeselect/./src/components/Option.vue","webpack://VueTreeselect/src/components/Menu.vue","webpack://VueTreeselect/./src/components/Menu.vue?0ced","webpack://VueTreeselect/./src/components/Menu.vue","webpack://VueTreeselect/src/components/MenuPortal.vue","webpack://VueTreeselect/./src/components/MenuPortal.vue?9760","webpack://VueTreeselect/./src/components/MenuPortal.vue","webpack://VueTreeselect/src/components/Treeselect.vue","webpack://VueTreeselect/./src/components/Treeselect.vue?71f6","webpack://VueTreeselect/./src/components/Treeselect.vue","webpack://VueTreeselect/./src/index.js"],"names":["warning","process","noop","checker","complainer","_console","message","concat","console","error","apply","_toConsumableArray","onLeftClick","mouseDownHandler","onMouseDown","evt","type","button","_len","arguments","length","args","Array","_key","call","scrollIntoView","$scrollingEl","$focusedEl","scrollingReact","getBoundingClientRect","focusedRect","overScroll","offsetHeight","bottom","scrollTop","Math","min","offsetTop","clientHeight","scrollHeight","top","max","removeFromArray","arr","elem","idx","indexOf","splice","intervalId","registered","INTERVAL_DURATION","run","setInterval","forEach","test","stop","clearInterval","item","$el","listener","lastWidth","lastHeight","width","offsetWidth","height","watchSizeForIE9","unwatch","push","watchSize","isIE9","document","documentMode","locked","wrappedListener","implementation","watchSizeForBrowsersOtherThanIE9","removeSizeWatcher","findScrollParents","$scrollParents","$parent","parentNode","nodeName","nodeType","ELEMENT_NODE","isScrollElment","window","_getComputedStyle","getComputedStyle","overflow","overflowX","overflowY","setupResizeAndScrollEventListeners","addEventListener","passive","scrollParent","removeEventListeners","removeEventListener","$scrollParent","isNaN","x","createMap","Object","create","isPlainObject","value","_typeof","getPrototypeOf","prototype","copy","obj","key","deepExtend","target","source","keys","i","len","includes","arrOrStr","find","predicate","ctx","undefined","quickDiff","arrA","arrB","NO_PARENT_NODE","UNCHECKED","INDETERMINATE","CHECKED","ALL_CHILDREN","ALL_DESCENDANTS","LEAF_CHILDREN","LEAF_DESCENDANTS","LOAD_ROOT_OPTIONS","LOAD_CHILDREN_OPTIONS","ASYNC_SEARCH","ALL","BRANCH_PRIORITY","LEAF_PRIORITY","ALL_WITH_INDETERMINATE","ORDER_SELECTED","LEVEL","INDEX","KEY_CODES","BACKSPACE","ENTER","ESCAPE","END","HOME","ARROW_LEFT","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","DELETE","INPUT_DEBOUNCE_DELAY","MIN_INPUT_WIDTH","MENU_BUFFER","sortValueByIndex","a","b","level","index","sortValueByLevel","createAsyncOptionsStates","isLoaded","isLoading","loadingError","stringifyOptionPropValue","match","enableFuzzyMatch","needle","haystack","fuzzysearch","getErrorMessage","err","String","instanceId","provide","instance","props","allowClearingDisabled","Boolean","default","allowSelectingDisabledDescendants","alwaysOpen","appendToBody","async","autoFocus","autoLoadRootOptions","autoDeselectAncestors","autoDeselectDescendants","autoSelectAncestors","autoSelectDescendants","backspaceRemoves","beforeClearAll","Function","constant","branchNodesFirst","cacheOptions","clearable","clearAllText","clearOnSelect","clearValueText","closeOnSelect","defaultExpandLevel","Number","defaultOptions","deleteRemoves","delimiter","flattenSearchResults","disableBranchNodes","disabled","disableFuzzyMatching","flat","_default","joinValues","limit","Infinity","limitText","limitTextDefault","count","loadingText","loadOptions","matchKeys","maxHeight","multiple","name","noChildrenText","noOptionsText","noResultsText","normalizer","identity","openDirection","validator","acceptableValues","openOnClick","openOnFocus","options","placeholder","required","retryText","retryTitle","searchable","searchNested","searchPromptText","showAsGroup","showCount","showCountOf","showCountOnSearch","sortValueBy","tabIndex","valueConsistsOf","valueFormat","zIndex","data","trigger","isFocused","searchQuery","menu","isOpen","current","lastScrollPosition","placement","forest","normalizedOptions","nodeMap","checkedStateMap","selectedNodeIds","extractCheckedNodeIdsFromValue","selectedNodeMap","rootOptionsStates","localSearch","active","noResults","countMap","remoteSearch","computed","selectedNodes","map","getNode","internalValue","_this","single","slice","filter","id","node","isRootNode","isSelected","isLeaf","children","_internalValue","indeterminateNodeIds","selectedNode","ancestors","ancestor","sort","hasValue","visibleOptionIds","_this2","traverseAllNodesByIndex","shouldOptionBeIncludedInSearchResult","isBranch","shouldExpand","hasVisibleOptions","showCountOnSearchComputed","hasBranchNodes","some","rootNode","shouldFlattenOptions","watch","newValue","openMenu","closeMenu","initialize","oldValue","hasChanged","$emit","getValue","getInstanceId","buildForestState","handler","isArray","deep","immediate","triggerSearchQuery","handleRemoteSearch","handleLocalSearch","nodeIdsFromValue","fixSelectedNodeIds","methods","verifyProps","_this3","propNames","propName","resetFlags","_blurOnSelect","getRemoteSearchEntry","prevNodeMap","keepDataOfSelectedNodes","normalize","_this4","rawNodes","raw","nodeId","createFallbackNode","extractNodeFromValue","label","enhancedNormalizer","fallbackNode","isFallbackNode","isDisabled","isNew","$set","_this5","_this6","defaultNode","valueArray","matched","nodeIdListOfPrevValue","_this7","nextSelectedNodeIds","traverseDescendantsBFS","descendant","queue","shift","_this8","_objectSpread","callback","currNode","traverseDescendantsDFS","_this9","child","traverseAllNodesDFS","_this10","walk","toggleClickOutsideEvent","enabled","handleClickOutside","getValueContainer","$refs","control","getInput","input","focusInput","focus","blurInput","blur","handleMouseDown","preventDefault","stopPropagation","isClickedOnValueContainer","contains","wrapper","_this11","done","resetHighlightedOptionWhenNecessary","isExpandedOnSearch","showAllChildrenOnSearch","isMatched","hasMatchedDescendants","_defineProperty","lowerCasedSearchQuery","trim","toLocaleLowerCase","splitSearchQuery","replace","split","every","filterValue","nestedSearchLabel","matchKey","lowerCased","_this12","entry","callLoadOptionsProp","action","isPending","start","succeed","fail","end","_this13","$watch","isExpanded","shouldShowOptionInMenu","getControl","getMenu","ref","portal","portalTarget","$menu","setCurrentHighlightedOption","_this14","scroll","prev","isHighlighted","scrollToOption","toString","$option","querySelector","$nextTick","forceReset","highlightFirstOption","first","highlightPrevOption","highlightLastOption","highlightNextOption","next","last","getLast","resetSearchQuery","saveMenuScrollPosition","restoreMenuScrollPosition","loadRootOptions","toggleMenu","toggleExpanded","nextState","childrenStates","loadChildrenOptions","_this15","selectedNodeId","ancestorNode","nodes","_this16","_ref","_ref2","_slicedToArray","checkDuplication","verifyNodeShape","round","random","isDefaultExpanded","reduce","normalized","hasDisabledDescendants","branchNodes","option","leafNodes","_this17","_this18","_ref3","once","result","isPromise","then","catch","_this19","JSON","stringify","select","clear","_selectNode","_deselectNode","_this20","_this21","addValue","isFullyChecked","curr","_this22","removeValue","hasUncheckedSomeDescendants","removeLastValue","lastValue","lastSelectedNode","created","mounted","destroyed","stringifyValue","inject","functional","render","_","context","h","injections","stringifiedValues","join","stringifiedValue","attrs","domProps","keysThatRequireMenuBeingOpen","inputWidth","needAutoSize","inputStyle","instanceTriggerSearchQuery","updateInputWidth","debouncedCallback","debounce","updateSearchQuery","leading","trailing","onInput","onFocus","onBlur","activeElement","cancel","onKeyDown","which","keyCode","ctrlKey","shiftKey","altKey","metaKey","renderInputContainer","$createElement","renderInput","renderSizer","on","keydown","_mergeJSXProps","autocomplete","style","sizer","scrollWidth","placeholderClass","renderSingleValueLabel","customValueLabelRenderer","$scopedSlots","renderValueContainer","shouldShowValue","Placeholder","Input","itemClass","labelRenderer","DeleteIcon","renderMultiValueItems","MultiValueItem","renderExceedLimitTip","transitionGroupProps","tag","appear","shouldShowX","hasUndisabledValue","shouldShowArrow","renderX","title","handleMouseDownOnX","renderArrow","arrowClass","handleMouseDownOnArrow","ArrowIcon","shouldClear","setTimeout","ValueContainer","SingleValue","MultiValue","icon","arrowPlaceholder","checkMark","minusMark","Option","isGroup","shouldShow","renderOption","optionClass","handleMouseEnterOption","renderLabelContainer","renderCheckboxContainer","renderCheckbox","renderLabel","renderSubOptionsList","renderSubOptions","renderNoChildrenTip","renderLoadingChildrenTip","renderLoadingChildrenErrorTip","transitionProps","handleMouseDownOnLabelContainer","checkedState","checkboxClass","shouldShowCount","NaN","labelClassName","countClassName","customLabelRenderer","childNode","Tip","handleMouseDownOnRetry","currentTarget","handleMouseDownOnOptionArrow","indentLevel","listItemClass","directionMap","above","below","menuStyle","menuContainerStyle","instanceMenuIsOpen","onMenuOpen","onMenuClose","menuSizeWatcher","menuResizeAndScrollEventListeners","renderMenu","renderBeforeList","renderAsyncSearchMenuInner","renderLocalSearchMenuInner","renderNormalMenuInner","renderAfterList","beforeListRenderer","afterListRenderer","renderLoadingOptionsTip","renderLoadingRootOptionsErrorTip","renderNoAvailableOptionsTip","renderOptionList","renderNoResultsTip","shouldShowSearchPromptTip","shouldShowNoResultsTip","renderSearchPromptTip","renderAsyncSearchLoadingErrorTip","adjustMenuOpenDirection","setupMenuSizeWatcher","setupMenuResizeAndScrollEventListeners","removeMenuSizeWatcher","removeMenuResizeAndScrollEventListeners","$control","menuRect","controlRect","menuHeight","viewportHeight","innerHeight","spaceAbove","spaceBelow","isControlInViewport","hasEnoughSpaceBelow","hasEnoughSpaceAbove","remove","PortalTarget","setupHandlers","removeHandlers","instanceMenuPlacement","updateMenuContainerOffset","controlResizeAndScrollEventListeners","controlSizeWatcher","updateWidth","setupControlResizeAndScrollEventListeners","setupControlSizeWatcher","removeControlResizeAndScrollEventListeners","removeControlSizeWatcher","$portalTarget","portalTargetRect","offsetY","left","transformVariations","transform","t","body","portalTargetClass","wrapperClass","portalTargetStyle","Menu","setup","teardown","el","createElement","appendChild","Vue","parent","removeChild","innerHTML","$destroy","mixins","treeselectMixin","HiddenFields","Control","MenuPortal","Treeselect","VERSION","PKG_VERSION"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;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;;;;;ACNA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,uG;;;;;;ACTA,cAAc,mBAAO,CAAC,EAAa;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2G;;;;;;;ACXa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,UAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AChBA,eAAe,mBAAO,CAAC,EAAY;AACnC,UAAU,mBAAO,CAAC,EAAO;AACzB,eAAe,mBAAO,CAAC,EAAY;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO,YAAY;AAC9B,WAAW,QAAQ;AACnB;AACA,WAAW,OAAO;AAClB;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,8CAA8C,kBAAkB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC9LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC9BA,WAAW,mBAAO,CAAC,EAAS;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACtBA,iBAAiB,mBAAO,CAAC,EAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;;;;;;;ACRA;AACA;;AAEA;;;;;;;;ACHA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;ACnBA,eAAe,mBAAO,CAAC,EAAa;AACpC,eAAe,mBAAO,CAAC,EAAY;AACnC,eAAe,mBAAO,CAAC,EAAY;;AAEnC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC/DA,sBAAsB,mBAAO,CAAC,EAAoB;;AAElD;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AClBA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;AClBA,iBAAiB,mBAAO,CAAC,EAAe;AACxC,mBAAmB,mBAAO,CAAC,EAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC5BA,aAAa,mBAAO,CAAC,EAAW;AAChC,gBAAgB,mBAAO,CAAC,EAAc;AACtC,qBAAqB,mBAAO,CAAC,EAAmB;;AAEhD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC3BA,WAAW,mBAAO,CAAC,EAAS;;AAE5B;AACA;;AAEA;;;;;;;ACLA,aAAa,mBAAO,CAAC,EAAW;;AAEhC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC7CA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC5BA;AACA;;AAEA;AACA;AACA;;;;;;;ACLA,aAAa,mBAAO,CAAC,EAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACxBA,gBAAgB,mBAAO,CAAC,EAAa;;AAErC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACvCA,eAAe,mBAAO,CAAC,EAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACnCA,eAAe,mBAAO,CAAC,EAAY;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,WAAW,SAAS,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACnBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG,IAAI;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjDA,iD;;;;;;ACAA,uC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACA6B;AAEtB,IAAMA,eAAO,GAAGC,MAAqC,GAC7BC,SAAI,GAC/B,SAASF,OAAOA,CAACG,OAAO,EAAEC,UAAU,EAAE;EACtC,IAAI,CAACD,OAAO,CAAC,CAAC,EAAE;IAAA,IAAAE,QAAA;IACd,IAAMC,OAAO,GAAG,CAAE,0BAA0B,CAAE,CAACC,MAAM,CAACH,UAAU,CAAC,CAAC,CAAC;IAEnE,CAAAC,QAAA,GAAAG,OAAO,EAACC,KAAK,CAAAC,KAAA,CAAAL,QAAA,EAAAM,2BAAA,CAAIL,OAAO,EAAC;EAC3B;AACF,CAAC,C;;ACVI,SAASM,WAAWA,CAACC,gBAAgB,EAAE;EAC5C,OAAO,SAASC,WAAWA,CAACC,GAAG,EAAW;IACxC,IAAIA,GAAG,CAACC,IAAI,KAAK,WAAW,IAAID,GAAG,CAACE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AS,Q;;AChCxB;AACA;AACA;AACA;AACA;AAEA;EACAZ,IAAA;EACA0d,MAAA,GAAAC,eAAA;EAEAza,QAAA;IACA2Z,YAAA,WAAAA,aAAA;MACA;QACA;QACA,iCAAA1b,WAAA;QACA,+BAAAqC,MAAA;QACA,8BAAAzD,QAAA;QACA,mCAAAiB,UAAA;QACA,iCAAA/B,QAAA;QACA,gCAAA4C,OAAA,CAAAC,SAAA;QACA,kCAAAyC,QAAA;QACA,6BAAAvC,IAAA,CAAAC,MAAA;QACA,mCAAAD,IAAA,CAAAI,SAAA;QACA,mCAAAJ,IAAA,CAAAI,SAAA;QACA,8CAAApD,kBAAA;QACA,uCAAAzB;MACA;IACA;EACA;EAEAsU,MAAA,WAAAA,OAAA;IAAA,IAAAG,CAAA,GAAAhf,SAAA;IACA,OACAgf,CAAA;MAAAtF,GAAA;MAAA,cAAAmQ;IAAA,IACA7K,CAAA,CAAA4L,YAAA,GACA5L,CAAA,CAAA6L,OAAA;MAAAnR,GAAA;IAAA,IACA,KAAAnP,YAAA,GAAAyU,CAAA,CAAA8L,UAAA;MAAApR,GAAA;IAAA,KAAAsF,CAAA,CAAA+K,IAAA;MAAArQ,GAAA;IAAA,GACA;EAEA;AACA,G;;ACxCqN,CAAgB,kHAAG,EAAC,C;;ACAzO,IAAI,iBAAM,EAAE,0BAAe;AACkC;AACL;;;AAGxD;AAC0F;AAC1F,IAAI,oBAAS,GAAG,kBAAU;AAC1B,EAAE,4CAAM;AACR,EAAE,iBAAM;AACR,EAAE,0BAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,uBAYf;AACD,oBAAS;AACM,mEAAS,Q;;;;;ACjCwB;AACM;AACjC;AAENqR,mFAAU;AACW;AAMhB;AAEb,IAAMC,OAAO,GAAGC,OAAW,C","file":"vue-treeselect.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"Vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"Vue\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueTreeselect\"] = factory(require(\"Vue\"));\n\telse\n\t\troot[\"VueTreeselect\"] = factory(root[\"Vue\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__40__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 42);\n","var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nfunction fuzzysearch (needle, haystack) {\n var tlen = haystack.length;\n var qlen = needle.length;\n if (qlen > tlen) {\n return false;\n }\n if (qlen === tlen) {\n return needle === haystack;\n }\n outer: for (var i = 0, j = 0; i < qlen; i++) {\n var nch = needle.charCodeAt(i);\n while (j < tlen) {\n if (haystack.charCodeAt(j++) === nch) {\n continue outer;\n }\n }\n return false;\n }\n return true;\n}\n\nmodule.exports = fuzzysearch;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\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 * 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 timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\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 clearTimeout(timerId);\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\nmodule.exports = debounce;\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 != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var root = require('./_root');\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\nmodule.exports = now;\n","var freeGlobal = require('./_freeGlobal');\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\nmodule.exports = root;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\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/**\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 = baseTrim(value);\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 = toNumber;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\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) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\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 nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\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 nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\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 != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","module.exports = isPromise;\nmodule.exports.default = isPromise;\n\nfunction isPromise(obj) {\n return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';\n}\n","var before = require('./before');\n\n/**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\nfunction once(func) {\n return before(2, func);\n}\n\nmodule.exports = once;\n","var toInteger = require('./toInteger');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\nfunction before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n}\n\nmodule.exports = before;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/\n\nmodule.exports = function mergeJSXProps (objs) {\n return objs.reduce(function (a, b) {\n var aa, bb, key, nestedKey, temp\n for (key in b) {\n aa = a[key]\n bb = b[key]\n if (aa && nestRE.test(key)) {\n // normalize class\n if (key === 'class') {\n if (typeof aa === 'string') {\n temp = aa\n a[key] = aa = {}\n aa[temp] = true\n }\n if (typeof bb === 'string') {\n temp = bb\n b[key] = bb = {}\n bb[temp] = true\n }\n }\n if (key === 'on' || key === 'nativeOn' || key === 'hook') {\n // merge functions\n for (nestedKey in bb) {\n aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])\n }\n } else if (Array.isArray(aa)) {\n a[key] = aa.concat(bb)\n } else if (Array.isArray(bb)) {\n a[key] = [aa].concat(bb)\n } else {\n for (nestedKey in bb) {\n aa[nestedKey] = bb[nestedKey]\n }\n }\n } else {\n a[key] = b[key]\n }\n }\n return a\n }, {})\n}\n\nfunction mergeFn (a, b) {\n return function () {\n a && a.apply(this, arguments)\n b && b.apply(this, arguments)\n }\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__40__;","// extracted by mini-css-extract-plugin","import { noop } from './noop'\n\nexport const warning = process.env.NODE_ENV === 'production'\n ? /* istanbul ignore next */ noop\n : function warning(checker, complainer) {\n if (!checker()) {\n const message = [ '[Vue-Treeselect Warning]' ].concat(complainer())\n // eslint-disable-next-line no-console\n console.error(...message)\n }\n }\n","export function onLeftClick(mouseDownHandler) {\n return function onMouseDown(evt, ...args) {\n if (evt.type === 'mousedown' && evt.button === 0) {\n mouseDownHandler.call(this, evt, ...args)\n }\n }\n}\n","// from react-select\nexport function scrollIntoView($scrollingEl, $focusedEl) {\n const scrollingReact = $scrollingEl.getBoundingClientRect()\n const focusedRect = $focusedEl.getBoundingClientRect()\n const overScroll = $focusedEl.offsetHeight / 3\n\n if (focusedRect.bottom + overScroll > scrollingReact.bottom) {\n $scrollingEl.scrollTop = Math.min(\n $focusedEl.offsetTop + $focusedEl.clientHeight - $scrollingEl.offsetHeight + overScroll,\n $scrollingEl.scrollHeight,\n )\n } else if (focusedRect.top - overScroll < scrollingReact.top) {\n $scrollingEl.scrollTop = Math.max($focusedEl.offsetTop - overScroll, 0)\n }\n}\n","var index = (function (element, listener) {\n\tvar expand = document.createElement('_');\n\tvar shrink = expand.appendChild(document.createElement('_'));\n\tvar expandChild = expand.appendChild(document.createElement('_'));\n\tvar shrinkChild = shrink.appendChild(document.createElement('_'));\n\n\tvar lastWidth = void 0,\n\t lastHeight = void 0;\n\n\tshrink.style.cssText = expand.style.cssText = 'height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1';\n\tshrinkChild.style.cssText = expandChild.style.cssText = 'display:block;height:100%;transition:0s;width:100%';\n\tshrinkChild.style.width = shrinkChild.style.height = '200%';\n\n\telement.appendChild(expand);\n\n\ttest();\n\n\treturn stop;\n\n\tfunction test() {\n\t\tunbind();\n\n\t\tvar width = element.offsetWidth;\n\t\tvar height = element.offsetHeight;\n\n\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\tlastWidth = width;\n\t\t\tlastHeight = height;\n\n\t\t\texpandChild.style.width = width * 2 + 'px';\n\t\t\texpandChild.style.height = height * 2 + 'px';\n\n\t\t\texpand.scrollLeft = expand.scrollWidth;\n\t\t\texpand.scrollTop = expand.scrollHeight;\n\t\t\tshrink.scrollLeft = shrink.scrollWidth;\n\t\t\tshrink.scrollTop = shrink.scrollHeight;\n\n\t\t\tlistener({ width: width, height: height });\n\t\t}\n\n\t\tshrink.addEventListener('scroll', test);\n\t\texpand.addEventListener('scroll', test);\n\t}\n\n\tfunction unbind() {\n\t\tshrink.removeEventListener('scroll', test);\n\t\texpand.removeEventListener('scroll', test);\n\t}\n\n\tfunction stop() {\n\t\tunbind();\n\n\t\telement.removeChild(expand);\n\t}\n});\n\nexport default index;\n","export function removeFromArray(arr, elem) {\n const idx = arr.indexOf(elem)\n if (idx !== -1) arr.splice(idx, 1)\n}\n","import watchSizeForBrowsersOtherThanIE9 from 'watch-size'\nimport { removeFromArray } from './removeFromArray'\n\nlet intervalId\nconst registered = []\nconst INTERVAL_DURATION = 100\n\nfunction run() {\n intervalId = setInterval(() => {\n registered.forEach(test)\n }, INTERVAL_DURATION)\n}\n\nfunction stop() {\n clearInterval(intervalId)\n intervalId = null\n}\n\nfunction test(item) {\n const { $el, listener, lastWidth, lastHeight } = item\n const width = $el.offsetWidth\n const height = $el.offsetHeight\n\n if (lastWidth !== width || lastHeight !== height) {\n item.lastWidth = width\n item.lastHeight = height\n\n listener({ width, height })\n }\n}\n\nfunction watchSizeForIE9($el, listener) {\n const item = {\n $el,\n listener,\n lastWidth: null,\n lastHeight: null,\n }\n const unwatch = () => {\n removeFromArray(registered, item)\n if (!registered.length) stop()\n }\n\n registered.push(item)\n // The original watch-size will call the listener on initialization.\n // Keep the same behavior here.\n test(item)\n run()\n\n return unwatch\n}\n\nexport function watchSize($el, listener) {\n // See: https://stackoverflow.com/a/31293352\n const isIE9 = document.documentMode === 9\n // watch-size will call the listener on initialization.\n // Disable this behavior with a lock to achieve a clearer code logic.\n let locked = true\n const wrappedListener = (...args) => locked || listener(...args)\n const implementation = isIE9\n ? watchSizeForIE9\n : watchSizeForBrowsersOtherThanIE9\n const removeSizeWatcher = implementation($el, wrappedListener)\n locked = false // unlock after initialization\n\n return removeSizeWatcher\n}\n","function findScrollParents($el) {\n const $scrollParents = []\n let $parent = $el.parentNode\n\n while ($parent && $parent.nodeName !== 'BODY' && $parent.nodeType === document.ELEMENT_NODE) {\n if (isScrollElment($parent)) $scrollParents.push($parent)\n $parent = $parent.parentNode\n }\n $scrollParents.push(window)\n\n return $scrollParents\n}\n\nfunction isScrollElment($el) {\n // Firefox wants us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getComputedStyle($el)\n return /(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)\n}\n\nexport function setupResizeAndScrollEventListeners($el, listener) {\n const $scrollParents = findScrollParents($el)\n\n window.addEventListener('resize', listener, { passive: true })\n $scrollParents.forEach(scrollParent => {\n scrollParent.addEventListener('scroll', listener, { passive: true })\n })\n\n return function removeEventListeners() {\n window.removeEventListener('resize', listener, { passive: true })\n $scrollParents.forEach($scrollParent => {\n $scrollParent.removeEventListener('scroll', listener, { passive: true })\n })\n }\n}\n","export function isNaN(x) {\n return x !== x\n}\n","export const createMap = () => Object.create(null)\n","function isPlainObject(value) {\n if (value == null || typeof value !== 'object') return false\n return Object.getPrototypeOf(value) === Object.prototype\n}\n\nfunction copy(obj, key, value) {\n if (isPlainObject(value)) {\n obj[key] || (obj[key] = {})\n deepExtend(obj[key], value)\n } else {\n obj[key] = value\n }\n}\n\nexport function deepExtend(target, source) {\n if (isPlainObject(source)) {\n const keys = Object.keys(source)\n\n for (let i = 0, len = keys.length; i < len; i++) {\n copy(target, keys[i], source[keys[i]])\n }\n }\n\n return target\n}\n","export function includes(arrOrStr, elem) {\n return arrOrStr.indexOf(elem) !== -1\n}\n","export function find(arr, predicate, ctx) {\n for (let i = 0, len = arr.length; i < len; i++) {\n if (predicate.call(ctx, arr[i], i, arr)) return arr[i]\n }\n return undefined\n}\n","export function quickDiff(arrA, arrB) {\n if (arrA.length !== arrB.length) return true\n\n for (let i = 0; i < arrA.length; i++) {\n if (arrA[i] !== arrB[i]) return true\n }\n\n return false\n}\n","// ========================\n// Debugging Helpers\n// ========================\n\nexport { warning } from './warning'\n\n// ========================\n// DOM Utilities\n// ========================\n\nexport { onLeftClick } from './onLeftClick'\nexport { scrollIntoView } from './scrollIntoView'\nexport { debounce } from './debounce'\nexport { watchSize } from './watchSize'\nexport { setupResizeAndScrollEventListeners } from './setupResizeAndScrollEventListeners'\n\n// ========================\n// Language Helpers\n// ========================\n\nexport { isNaN } from './isNaN'\nexport { isPromise } from './isPromise'\nexport { once } from './once'\nexport { noop } from './noop'\nexport { identity } from './identity'\nexport { constant } from './constant'\nexport { createMap } from './createMap'\nexport { deepExtend } from './deepExtend'\nexport { last } from './last'\nexport { includes } from './includes'\nexport { find } from './find'\nexport { removeFromArray } from './removeFromArray'\n\n// ========================\n// Other Utilities\n// ========================\n\nexport { quickDiff } from './quickDiff'\n","// Magic value that indicates a root level node.\nexport const NO_PARENT_NODE = null\n\n// Types of checked state.\nexport const UNCHECKED = 0\nexport const INDETERMINATE = 1\nexport const CHECKED = 2\n\n// Types of count number.\nexport const ALL_CHILDREN = 'ALL_CHILDREN'\nexport const ALL_DESCENDANTS = 'ALL_DESCENDANTS'\nexport const LEAF_CHILDREN = 'LEAF_CHILDREN'\nexport const LEAF_DESCENDANTS = 'LEAF_DESCENDANTS'\n\n// Action types of delayed loading.\nexport const LOAD_ROOT_OPTIONS = 'LOAD_ROOT_OPTIONS'\nexport const LOAD_CHILDREN_OPTIONS = 'LOAD_CHILDREN_OPTIONS'\nexport const ASYNC_SEARCH = 'ASYNC_SEARCH'\n\n// Acceptable values of `valueConsistsOf` prop.\nexport const ALL = 'ALL'\nexport const BRANCH_PRIORITY = 'BRANCH_PRIORITY'\nexport const LEAF_PRIORITY = 'LEAF_PRIORITY'\nexport const ALL_WITH_INDETERMINATE = 'ALL_WITH_INDETERMINATE'\n\n// Acceptable values of `sortValueBy` prop.\nexport const ORDER_SELECTED = 'ORDER_SELECTED'\nexport const LEVEL = 'LEVEL'\nexport const INDEX = 'INDEX'\n\n// Key codes look-up table.\nexport const KEY_CODES = {\n BACKSPACE: 8,\n ENTER: 13,\n ESCAPE: 27,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n}\n\n// Other constants.\nexport const INPUT_DEBOUNCE_DELAY = process.env.NODE_ENV === 'testing'\n ? /* to speed up unit testing */ 10\n : /* istanbul ignore next */ 200\nexport const MIN_INPUT_WIDTH = 5\nexport const MENU_BUFFER = 40\n","import fuzzysearch from 'fuzzysearch'\n\nimport {\n warning,\n onLeftClick, scrollIntoView,\n isNaN, isPromise, once,\n identity, constant, createMap,\n quickDiff, last as getLast, includes, find, removeFromArray,\n} from '../utils'\n\nimport {\n NO_PARENT_NODE,\n UNCHECKED, INDETERMINATE, CHECKED,\n LOAD_ROOT_OPTIONS, LOAD_CHILDREN_OPTIONS, ASYNC_SEARCH,\n ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE,\n ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS,\n ORDER_SELECTED, LEVEL, INDEX,\n} from '../constants'\n\nfunction sortValueByIndex(a, b) {\n let i = 0\n do {\n if (a.level < i) return -1\n if (b.level < i) return 1\n if (a.index[i] !== b.index[i]) return a.index[i] - b.index[i]\n i++\n } while (true)\n}\n\nfunction sortValueByLevel(a, b) {\n return a.level === b.level\n ? sortValueByIndex(a, b)\n : a.level - b.level\n}\n\nfunction createAsyncOptionsStates() {\n return {\n isLoaded: false,\n isLoading: false,\n loadingError: '',\n }\n}\n\nfunction stringifyOptionPropValue(value) {\n if (typeof value === 'string') return value\n if (typeof value === 'number' && !isNaN(value)) return value + ''\n // istanbul ignore next\n return ''\n}\n\nfunction match(enableFuzzyMatch, needle, haystack) {\n return enableFuzzyMatch\n ? fuzzysearch(needle, haystack)\n : includes(haystack, needle)\n}\n\nfunction getErrorMessage(err) {\n return err.message || /* istanbul ignore next */String(err)\n}\n\nlet instanceId = 0\n\nexport default {\n provide() {\n return {\n // Enable access to the instance of root component of vue-treeselect\n // across hierarchy.\n instance: this,\n }\n },\n\n props: {\n /**\n * Whether to allow resetting value even if there are disabled selected nodes.\n */\n allowClearingDisabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.\n * You may want to use this in conjunction with `allowClearingDisabled` prop.\n */\n allowSelectingDisabledDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the menu should be always open.\n */\n alwaysOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Append the menu to ?\n */\n appendToBody: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable async search mode.\n */\n async: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically focus the component on mount?\n */\n autoFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.\n */\n autoLoadRootOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.\n */\n autoDeselectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user deselects a node, automatically deselect its descendants. Applies to flat mode only.\n */\n autoDeselectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its ancestors. Applies to flat mode only.\n */\n autoSelectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its descendants. Applies to flat mode only.\n */\n autoSelectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether pressing backspace key removes the last item if there is no text input.\n */\n backspaceRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Function that processes before clearing all input fields.\n * Return `false` to prevent value from being cleared.\n * @type {function(): (boolean|Promise)}\n */\n beforeClearAll: {\n type: Function,\n default: constant(true),\n },\n\n /**\n * Show branch nodes before leaf nodes?\n */\n branchNodesFirst: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Should cache results of every search request?\n */\n cacheOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Show an \"×\" button that resets value?\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Title for the \"×\" button when `multiple: true`.\n */\n clearAllText: {\n type: String,\n default: 'Clear all',\n },\n\n /**\n * Whether to clear the search input after selecting.\n * Use only when `multiple` is `true`.\n * For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.\n */\n clearOnSelect: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Title for the \"×\" button.\n */\n clearValueText: {\n type: String,\n default: 'Clear value',\n },\n\n /**\n * Whether to close the menu after selecting an option?\n * Use only when `multiple` is `true`.\n */\n closeOnSelect: {\n type: Boolean,\n default: true,\n },\n\n /**\n * How many levels of branch nodes should be automatically expanded when loaded.\n * Set `Infinity` to make all branch nodes expanded by default.\n */\n defaultExpandLevel: {\n type: Number,\n default: 0,\n },\n\n /**\n * The default set of options to show before the user starts searching. Used for async search mode.\n * When set to `true`, the results for search query as a empty string will be autoloaded.\n * @type {boolean|node[]}\n */\n defaultOptions: {\n default: false,\n },\n\n /**\n * Whether pressing delete key removes the last item if there is no text input.\n */\n deleteRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Delimiter to use to join multiple values for the hidden field value.\n */\n delimiter: {\n type: String,\n default: ',',\n },\n\n /**\n * Only show the nodes that match the search value directly, excluding its ancestors.\n *\n * @type {Object}\n */\n flattenSearchResults: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Prevent branch nodes from being selected?\n */\n disableBranchNodes: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the control?\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the fuzzy matching functionality?\n */\n disableFuzzyMatching: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable flat mode or not. Non-flat mode (default) means:\n * - Whenever a branch node gets checked, all its children will be checked too\n * - Whenever a branch node has all children checked, the branch node itself will be checked too\n * Set `true` to disable this mechanism\n */\n flat: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Will be passed with all events as the last param.\n * Useful for identifying events origin.\n */\n instanceId: {\n // Add two trailing \"$\" to distinguish from explictly specified ids.\n default: () => `${instanceId++}$$`,\n type: [ String, Number ],\n },\n\n /**\n * Joins multiple values into a single form field with the `delimiter` (legacy mode).\n */\n joinValues: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Limit the display of selected options.\n * The rest will be hidden within the limitText string.\n */\n limit: {\n type: Number,\n default: Infinity,\n },\n\n /**\n * Function that processes the message shown when selected elements pass the defined limit.\n * @type {function(number): string}\n */\n limitText: {\n type: Function,\n default: function limitTextDefault(count) { // eslint-disable-line func-name-matching\n return `and ${count} more`\n },\n },\n\n /**\n * Text displayed when loading options.\n */\n loadingText: {\n type: String,\n default: 'Loading...',\n },\n\n /**\n * Used for dynamically loading options.\n * @type {function({action: string, callback: (function((Error|string)=): void), parentNode: node=, instanceId}): void}\n */\n loadOptions: {\n type: Function,\n },\n\n /**\n * Which node properties to filter on.\n */\n matchKeys: {\n type: Array,\n default: constant([ 'label' ]),\n },\n\n /**\n * Sets `maxHeight` style value of the menu.\n */\n maxHeight: {\n type: Number,\n default: 300,\n },\n\n /**\n * Set `true` to allow selecting multiple options (a.k.a., multi-select mode).\n */\n multiple: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Generates a hidden tag with this field name for html forms.\n */\n name: {\n type: String,\n },\n\n /**\n * Text displayed when a branch node has no children.\n */\n noChildrenText: {\n type: String,\n default: 'No sub-options.',\n },\n\n /**\n * Text displayed when there are no available options.\n */\n noOptionsText: {\n type: String,\n default: 'No options available.',\n },\n\n /**\n * Text displayed when there are no matching search results.\n */\n noResultsText: {\n type: String,\n default: 'No results found...',\n },\n\n /**\n * Used for normalizing source data.\n * @type {function(node, instanceId): node}\n */\n normalizer: {\n type: Function,\n default: identity,\n },\n\n /**\n * By default (`auto`), the menu will open below the control. If there is not\n * enough space, vue-treeselect will automatically flip the menu.\n * You can use one of other four options to force the menu to be always opened\n * to specified direction.\n * Acceptable values:\n * - `\"auto\"`\n * - `\"below\"`\n * - `\"bottom\"`\n * - `\"above\"`\n * - `\"top\"`\n */\n openDirection: {\n type: String,\n default: 'auto',\n validator(value) {\n const acceptableValues = [ 'auto', 'top', 'bottom', 'above', 'below' ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to automatically open the menu when the control is clicked.\n */\n openOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether to automatically open the menu when the control is focused.\n */\n openOnFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Array of available options.\n * @type {node[]}\n */\n options: {\n type: Array,\n },\n\n /**\n * Field placeholder, displayed when there's no value.\n */\n placeholder: {\n type: String,\n default: 'Select...',\n },\n\n /**\n * Applies HTML5 required attribute when needed.\n */\n required: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text displayed asking user whether to retry loading children options.\n */\n retryText: {\n type: String,\n default: 'Retry?',\n },\n\n /**\n * Title for the retry button.\n */\n retryTitle: {\n type: String,\n default: 'Click to retry',\n },\n\n /**\n * Enable searching feature?\n */\n searchable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Search in ancestor nodes too.\n */\n searchNested: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text tip to prompt for async search.\n */\n searchPromptText: {\n type: String,\n default: 'Type to search...',\n },\n\n showAsGroup: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to show a children count next to the label of each branch node.\n */\n showCount: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Used in conjunction with `showCount` to specify which type of count number should be displayed.\n * Acceptable values:\n * - \"ALL_CHILDREN\"\n * - \"ALL_DESCENDANTS\"\n * - \"LEAF_CHILDREN\"\n * - \"LEAF_DESCENDANTS\"\n */\n showCountOf: {\n type: String,\n default: ALL_CHILDREN,\n validator(value) {\n const acceptableValues = [ ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to show children count when searching.\n * Fallbacks to the value of `showCount` when not specified.\n * @type {boolean}\n */\n showCountOnSearch: null,\n\n /**\n * In which order the selected options should be displayed in trigger & sorted in `value` array.\n * Used for multi-select mode only.\n * Acceptable values:\n * - \"ORDER_SELECTED\"\n * - \"LEVEL\"\n * - \"INDEX\"\n */\n sortValueBy: {\n type: String,\n default: ORDER_SELECTED,\n validator(value) {\n const acceptableValues = [ ORDER_SELECTED, LEVEL, INDEX ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Tab index of the control.\n */\n tabIndex: {\n type: Number,\n default: 0,\n },\n\n /**\n * The value of the control.\n * Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.\n * Its format depends on the `valueFormat` prop.\n * For most cases, just use `v-model` instead.\n * @type {?Array}\n */\n value: null,\n\n /**\n * Which kind of nodes should be included in the `value` array in multi-select mode.\n * Acceptable values:\n * - \"ALL\" - Any node that is checked will be included in the `value` array\n * - \"BRANCH_PRIORITY\" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array\n * - \"LEAF_PRIORITY\" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included\n * - \"ALL_WITH_INDETERMINATE\" - Any node that is checked will be included in the `value` array, plus indeterminate nodes\n */\n valueConsistsOf: {\n type: String,\n default: BRANCH_PRIORITY,\n validator(value) {\n const acceptableValues = [ ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Format of `value` prop.\n * Note that, when set to `\"object\"`, only `id` & `label` properties are required in each `node` object in `value` prop.\n * Acceptable values:\n * - \"id\"\n * - \"object\"\n */\n valueFormat: {\n type: String,\n default: 'id',\n },\n\n /**\n * z-index of the menu.\n */\n zIndex: {\n type: [ Number, String ],\n default: 999,\n },\n },\n\n data() {\n return {\n trigger: {\n // Is the control focused?\n isFocused: false,\n // User entered search query - value of the input.\n searchQuery: '',\n },\n\n menu: {\n // Is the menu opened?\n isOpen: false,\n // Id of current highlighted option.\n current: null,\n // The scroll position before last menu closing.\n lastScrollPosition: 0,\n // Which direction to open the menu.\n placement: 'bottom',\n },\n\n forest: {\n // Normalized options.\n normalizedOptions: [],\n // map for quick look-up.\n nodeMap: createMap(),\n // map, used for multi-select mode.\n checkedStateMap: createMap(),\n // Id list of all selected options.\n selectedNodeIds: this.extractCheckedNodeIdsFromValue(),\n // map for fast checking:\n // if (forest.selectedNodeIds.indexOf(id) !== -1) forest.selectedNodeMap[id] === true\n selectedNodeMap: createMap(),\n },\n\n // States of root options.\n rootOptionsStates: createAsyncOptionsStates(),\n\n localSearch: {\n // Has user entered any query to search local options?\n active: false,\n // Has any options matched the search query?\n noResults: true,\n // map for counting matched children/descendants.\n countMap: createMap(),\n },\n\n // map.\n remoteSearch: createMap(),\n }\n },\n\n computed: {\n /* eslint-disable valid-jsdoc */\n /**\n * Normalized nodes that have been selected.\n * @type {node[]}\n */\n selectedNodes() {\n return this.forest.selectedNodeIds.map(this.getNode)\n },\n /**\n * Id list of selected nodes with `sortValueBy` prop applied.\n * @type {nodeId[]}\n */\n internalValue() {\n let internalValue\n\n // istanbul ignore else\n const valueConsistsOf = this.showAsGroup ? LEAF_PRIORITY : this.valueConsistsOf\n if (this.single || this.flat || this.disableBranchNodes || valueConsistsOf === ALL) {\n internalValue = this.forest.selectedNodeIds.slice()\n } else if (valueConsistsOf === BRANCH_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isRootNode) return true\n return !this.isSelected(node.parentNode)\n })\n } else if (valueConsistsOf === LEAF_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isLeaf) return true\n return node.children.length === 0\n })\n } else if (valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const indeterminateNodeIds = []\n internalValue = this.forest.selectedNodeIds.slice()\n this.selectedNodes.forEach(selectedNode => {\n selectedNode.ancestors.forEach(ancestor => {\n if (includes(indeterminateNodeIds, ancestor.id)) return\n if (includes(internalValue, ancestor.id)) return\n indeterminateNodeIds.push(ancestor.id)\n })\n })\n internalValue.push(...indeterminateNodeIds)\n }\n\n if (this.sortValueBy === LEVEL) {\n internalValue.sort((a, b) => sortValueByLevel(this.getNode(a), this.getNode(b)))\n } else if (this.sortValueBy === INDEX) {\n internalValue.sort((a, b) => sortValueByIndex(this.getNode(a), this.getNode(b)))\n }\n\n return internalValue\n },\n /**\n * Has any option been selected?\n * @type {boolean}\n */\n hasValue() {\n return this.internalValue.length > 0\n },\n /**\n * Single-select mode?\n * @type {boolean}\n */\n single() {\n return !this.multiple\n },\n /**\n * Id list of nodes displayed in the menu. Nodes that are considered NOT visible:\n * - descendants of a collapsed branch node\n * - in local search mode, nodes that are not matched, unless\n * - it's a branch node and has matched descendants\n * - it's a leaf node and its parent node is explicitly set to show all children\n * @type {id[]}\n */\n visibleOptionIds() {\n const visibleOptionIds = []\n\n this.traverseAllNodesByIndex(node => {\n if (!this.localSearch.active || this.shouldOptionBeIncludedInSearchResult(node)) {\n visibleOptionIds.push(node.id)\n }\n // Skip the traversal of descendants of a branch node if it's not expanded.\n if (node.isBranch && !this.shouldExpand(node)) {\n return false\n }\n })\n\n return visibleOptionIds\n },\n /**\n * Has any option should be displayed in the menu?\n * @type {boolean}\n */\n hasVisibleOptions() {\n return this.visibleOptionIds.length !== 0\n },\n /**\n * Should show children count when searching?\n * @type {boolean}\n */\n showCountOnSearchComputed() {\n // Vue doesn't allow setting default prop value based on another prop value.\n // So use computed property as a workaround.\n // https://github.com/vuejs/vue/issues/6358\n return typeof this.showCountOnSearch === 'boolean'\n ? this.showCountOnSearch\n : this.showCount\n },\n /**\n * Is there any branch node?\n * @type {boolean}\n */\n hasBranchNodes() {\n return this.forest.normalizedOptions.some(rootNode => rootNode.isBranch)\n },\n shouldFlattenOptions() {\n return this.localSearch.active && this.flattenSearchResults\n },\n /* eslint-enable valid-jsdoc */\n },\n\n watch: {\n alwaysOpen(newValue) {\n if (newValue) this.openMenu()\n else this.closeMenu()\n },\n\n branchNodesFirst() {\n this.initialize()\n },\n\n disabled(newValue) {\n // force close the menu after disabling the control\n if (newValue && this.menu.isOpen) this.closeMenu()\n else if (!newValue && !this.menu.isOpen && this.alwaysOpen) this.openMenu()\n },\n\n flat() {\n this.initialize()\n },\n\n internalValue(newValue, oldValue) {\n const hasChanged = quickDiff(newValue, oldValue)\n // #122\n // Vue would trigger this watcher when `newValue` and `oldValue` are shallow-equal.\n // We emit the `input` event only when the value actually changes.\n if (hasChanged) this.$emit('input', this.getValue(), this.getInstanceId())\n },\n\n matchKeys() {\n this.initialize()\n },\n\n multiple(newValue) {\n // We need to rebuild the state when switching from single-select mode\n // to multi-select mode.\n // istanbul ignore else\n if (newValue) this.buildForestState()\n },\n\n options: {\n handler() {\n if (this.async) return\n // Re-initialize options when the `options` prop has changed.\n this.initialize()\n this.rootOptionsStates.isLoaded = Array.isArray(this.options)\n },\n deep: true,\n immediate: true,\n },\n\n 'trigger.searchQuery'() {\n if (this.async) {\n this.handleRemoteSearch()\n } else {\n this.handleLocalSearch()\n }\n\n this.$emit('search-change', this.trigger.searchQuery, this.getInstanceId())\n },\n\n value() {\n const nodeIdsFromValue = this.extractCheckedNodeIdsFromValue()\n const hasChanged = quickDiff(nodeIdsFromValue, this.internalValue)\n if (hasChanged) this.fixSelectedNodeIds(nodeIdsFromValue)\n },\n },\n\n methods: {\n verifyProps() {\n warning(\n () => this.async ? this.searchable : true,\n () => 'For async search mode, the value of \"searchable\" prop must be true.',\n )\n\n if (this.options == null && !this.loadOptions) {\n warning(\n () => false,\n () => 'Are you meant to dynamically load options? You need to use \"loadOptions\" prop.',\n )\n }\n\n if (this.flat) {\n warning(\n () => this.multiple,\n () => 'You are using flat mode. But you forgot to add \"multiple=true\"?',\n )\n }\n\n if (!this.flat) {\n const propNames = [\n 'autoSelectAncestors',\n 'autoSelectDescendants',\n 'autoDeselectAncestors',\n 'autoDeselectDescendants',\n ]\n\n propNames.forEach(propName => {\n warning(\n () => !this[propName],\n () => `\"${propName}\" only applies to flat mode.`,\n )\n })\n }\n },\n\n resetFlags() {\n this._blurOnSelect = false\n },\n\n initialize() {\n const options = this.async\n ? this.getRemoteSearchEntry().options\n : this.options\n\n if (Array.isArray(options)) {\n // In case we are re-initializing options, keep the old state tree temporarily.\n const prevNodeMap = this.forest.nodeMap\n this.forest.nodeMap = createMap()\n this.keepDataOfSelectedNodes(prevNodeMap)\n this.forest.normalizedOptions = this.normalize(NO_PARENT_NODE, options, prevNodeMap)\n // Cases that need fixing `selectedNodeIds`:\n // 1) Children options of a checked node have been delayed loaded,\n // we should also mark these children as checked. (multi-select mode)\n // 2) Root options have been delayed loaded, we need to initialize states\n // of these nodes. (multi-select mode)\n // 3) Async search mode.\n this.fixSelectedNodeIds(this.internalValue)\n } else {\n this.forest.normalizedOptions = []\n }\n },\n\n getInstanceId() {\n return this.instanceId == null ? this.id : this.instanceId\n },\n\n getValue() {\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.internalValue.slice()\n : this.internalValue[0]\n }\n\n const rawNodes = this.internalValue.map(id => this.getNode(id).raw)\n return this.multiple ? rawNodes : rawNodes[0]\n },\n\n getNode(nodeId) {\n warning(\n () => nodeId != null,\n () => `Invalid node id: ${nodeId}`,\n )\n\n if (nodeId == null) return null\n\n return nodeId in this.forest.nodeMap\n ? this.forest.nodeMap[nodeId]\n : this.createFallbackNode(nodeId)\n },\n\n createFallbackNode(id) {\n // In case there is a default selected node that is not loaded into the tree yet,\n // we create a fallback node to keep the component working.\n // When the real data is loaded, we'll override this fake node.\n\n const raw = this.extractNodeFromValue(id)\n const label = this.enhancedNormalizer(raw).label || `${id} (unknown)`\n const fallbackNode = {\n id,\n label,\n ancestors: [],\n parentNode: NO_PARENT_NODE,\n isFallbackNode: true,\n isRootNode: true,\n isLeaf: true,\n isBranch: false,\n isDisabled: false,\n isNew: false,\n index: [ -1 ],\n level: 0,\n raw,\n }\n\n return this.$set(this.forest.nodeMap, id, fallbackNode)\n },\n\n extractCheckedNodeIdsFromValue() {\n if (this.value == null) return []\n\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.value.slice()\n : [ this.value ]\n }\n\n return (this.multiple ? this.value : [ this.value ])\n .map(node => this.enhancedNormalizer(node))\n .map(node => node.id)\n },\n\n extractNodeFromValue(id) {\n const defaultNode = { id }\n\n if (this.valueFormat === 'id') {\n return defaultNode\n }\n\n const valueArray = this.multiple\n ? Array.isArray(this.value) ? this.value : []\n : this.value ? [ this.value ] : []\n const matched = find(\n valueArray,\n node => node && this.enhancedNormalizer(node).id === id,\n )\n\n return matched || defaultNode\n },\n\n fixSelectedNodeIds(nodeIdListOfPrevValue) {\n let nextSelectedNodeIds = []\n\n // istanbul ignore else\n if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === ALL) {\n nextSelectedNodeIds = nodeIdListOfPrevValue\n } else if (this.valueConsistsOf === BRANCH_PRIORITY) {\n nodeIdListOfPrevValue.forEach(nodeId => {\n nextSelectedNodeIds.push(nodeId)\n const node = this.getNode(nodeId)\n if (node.isBranch) this.traverseDescendantsBFS(node, descendant => {\n nextSelectedNodeIds.push(descendant.id)\n })\n })\n } else if (this.valueConsistsOf === LEAF_PRIORITY) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.slice()\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n } else if (this.valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.filter(nodeId => {\n const node = this.getNode(nodeId)\n return node.isLeaf || node.children.length === 0\n })\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n }\n\n const hasChanged = quickDiff(this.forest.selectedNodeIds, nextSelectedNodeIds)\n // If `nextSelectedNodeIds` doesn't actually differ from old `selectedNodeIds`,\n // we don't make the assignment to avoid triggering its watchers which may cause\n // unnecessary calculations.\n if (hasChanged) this.forest.selectedNodeIds = nextSelectedNodeIds\n\n this.buildForestState()\n },\n\n keepDataOfSelectedNodes(prevNodeMap) {\n // In case there is any selected node that is not present in the new `options` array.\n // It could be useful for async search mode.\n this.forest.selectedNodeIds.forEach(id => {\n if (!prevNodeMap[id]) return\n const node = {\n ...prevNodeMap[id],\n isFallbackNode: true,\n }\n this.$set(this.forest.nodeMap, id, node)\n })\n },\n\n isSelected(node) {\n // whether a node is selected (single-select mode) or fully-checked (multi-select mode)\n return this.forest.selectedNodeMap[node.id] === true\n },\n\n traverseDescendantsBFS(parentNode, callback) {\n // istanbul ignore if\n if (!parentNode.isBranch) return\n const queue = parentNode.children.slice()\n while (queue.length) {\n const currNode = queue[0]\n if (currNode.isBranch) queue.push(...currNode.children)\n callback(currNode)\n queue.shift()\n }\n },\n\n traverseDescendantsDFS(parentNode, callback) {\n if (!parentNode.isBranch) return\n parentNode.children.forEach(child => {\n // deep-level node first\n this.traverseDescendantsDFS(child, callback)\n callback(child)\n })\n },\n\n traverseAllNodesDFS(callback) {\n this.forest.normalizedOptions.forEach(rootNode => {\n // deep-level node first\n this.traverseDescendantsDFS(rootNode, callback)\n callback(rootNode)\n })\n },\n\n traverseAllNodesByIndex(callback) {\n const walk = parentNode => {\n parentNode.children.forEach(child => {\n if (callback(child) !== false && child.isBranch) {\n walk(child)\n }\n })\n }\n\n // To simplify the code logic of traversal,\n // we create a fake root node that holds all the root options.\n walk({ children: this.forest.normalizedOptions })\n },\n\n toggleClickOutsideEvent(enabled) {\n if (enabled) {\n document.addEventListener('mousedown', this.handleClickOutside, false)\n } else {\n document.removeEventListener('mousedown', this.handleClickOutside, false)\n }\n },\n\n getValueContainer() {\n if (!this.$refs || !this.$refs.control || !this.$refs.control.$refs) {\n return null\n }\n return this.$refs.control.$refs['value-container']\n },\n\n getInput() {\n return this.getValueContainer().$refs.input\n },\n\n focusInput() {\n this.getInput().focus()\n },\n\n blurInput() {\n this.getInput().blur()\n },\n\n handleMouseDown: onLeftClick(function handleMouseDown(evt) {\n evt.preventDefault()\n evt.stopPropagation()\n\n if (this.disabled || !this.getValueContainer()) return\n\n const isClickedOnValueContainer = this.getValueContainer().$el.contains(evt.target)\n if (isClickedOnValueContainer && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused)) {\n this.openMenu()\n }\n\n if (this._blurOnSelect) {\n this.blurInput()\n } else {\n // Focus the input or prevent blurring.\n this.focusInput()\n }\n\n this.resetFlags()\n }),\n\n handleClickOutside(evt) {\n // istanbul ignore else\n if (this.$refs.wrapper && !this.$refs.wrapper.contains(evt.target)) {\n this.blurInput()\n this.closeMenu()\n }\n },\n\n handleLocalSearch() {\n const { searchQuery } = this.trigger\n const done = () => this.resetHighlightedOptionWhenNecessary(true)\n\n if (!searchQuery) {\n // Exit sync search mode.\n this.localSearch.active = false\n return done()\n }\n\n // Enter sync search mode.\n this.localSearch.active = true\n\n // Reset states.\n this.localSearch.noResults = true\n this.traverseAllNodesDFS(node => {\n if (node.isBranch) {\n node.isExpandedOnSearch = false\n node.showAllChildrenOnSearch = false\n node.isMatched = false\n node.hasMatchedDescendants = false\n this.$set(this.localSearch.countMap, node.id, {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n }\n })\n\n const lowerCasedSearchQuery = searchQuery.trim().toLocaleLowerCase()\n const splitSearchQuery = lowerCasedSearchQuery.replace(/\\s+/g, ' ').split(' ')\n this.traverseAllNodesDFS(node => {\n if (this.searchNested && splitSearchQuery.length > 1) {\n node.isMatched = splitSearchQuery.every(filterValue =>\n match(false, filterValue, node.nestedSearchLabel),\n )\n } else {\n node.isMatched = this.matchKeys.some(matchKey =>\n match(!this.disableFuzzyMatching, lowerCasedSearchQuery, node.lowerCased[matchKey]),\n )\n }\n\n if (node.isMatched) {\n this.localSearch.noResults = false\n node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][ALL_DESCENDANTS]++)\n if (node.isLeaf) node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][LEAF_DESCENDANTS]++)\n if (node.parentNode !== NO_PARENT_NODE) {\n this.localSearch.countMap[node.parentNode.id][ALL_CHILDREN] += 1\n // istanbul ignore else\n if (node.isLeaf) this.localSearch.countMap[node.parentNode.id][LEAF_CHILDREN] += 1\n }\n }\n\n if (\n (node.isMatched || (node.isBranch && node.isExpandedOnSearch)) &&\n node.parentNode !== NO_PARENT_NODE\n ) {\n node.parentNode.isExpandedOnSearch = true\n node.parentNode.hasMatchedDescendants = true\n }\n })\n\n done()\n },\n\n handleRemoteSearch() {\n const { searchQuery } = this.trigger\n const entry = this.getRemoteSearchEntry()\n const done = () => {\n this.initialize()\n this.resetHighlightedOptionWhenNecessary(true)\n }\n\n if ((searchQuery === '' || this.cacheOptions) && entry.isLoaded) {\n return done()\n }\n\n this.callLoadOptionsProp({\n action: ASYNC_SEARCH,\n args: { searchQuery },\n isPending() {\n return entry.isLoading\n },\n start: () => {\n entry.isLoading = true\n entry.isLoaded = false\n entry.loadingError = ''\n },\n succeed: options => {\n entry.isLoaded = true\n entry.options = options\n // When the request completes, the search query may have changed.\n // We only show these options if they are for the current search query.\n if (this.trigger.searchQuery === searchQuery) done()\n },\n fail: err => {\n entry.loadingError = getErrorMessage(err)\n },\n end: () => {\n entry.isLoading = false\n },\n })\n },\n\n getRemoteSearchEntry() {\n const { searchQuery } = this.trigger\n const entry = this.remoteSearch[searchQuery] || {\n ...createAsyncOptionsStates(),\n options: [],\n }\n\n // Vue doesn't support directly watching on objects.\n this.$watch(\n () => entry.options,\n () => {\n // TODO: potential redundant re-initialization.\n if (this.trigger.searchQuery === searchQuery) this.initialize()\n },\n { deep: true },\n )\n\n if (searchQuery === '') {\n if (Array.isArray(this.defaultOptions)) {\n entry.options = this.defaultOptions\n entry.isLoaded = true\n return entry\n } else if (this.defaultOptions !== true) {\n entry.isLoaded = true\n return entry\n }\n }\n\n if (!this.remoteSearch[searchQuery]) {\n this.$set(this.remoteSearch, searchQuery, entry)\n }\n\n return entry\n },\n\n shouldExpand(node) {\n return this.localSearch.active ? node.isExpandedOnSearch : node.isExpanded\n },\n\n shouldOptionBeIncludedInSearchResult(node) {\n // 1) This option is matched.\n if (node.isMatched) return true\n // 2) This option is not matched, but has matched descendant(s).\n if (node.isBranch && node.hasMatchedDescendants && !this.flattenSearchResults) return true\n // 3) This option's parent has no matched descendants,\n // but after being expanded, all its children should be shown.\n if (!node.isRootNode && node.parentNode.showAllChildrenOnSearch) return true\n // 4) The default case.\n return false\n },\n\n shouldShowOptionInMenu(node) {\n if (this.localSearch.active && !this.shouldOptionBeIncludedInSearchResult(node)) {\n return false\n }\n return true\n },\n\n getControl() {\n return this.$refs.control.$el\n },\n\n getMenu() {\n const ref = this.appendToBody ? this.$refs.portal.portalTarget : this\n const $menu = ref.$refs.menu.$refs.menu\n return $menu && $menu.nodeName !== '#comment' ? $menu : null\n },\n\n setCurrentHighlightedOption(node, scroll = true) {\n const prev = this.menu.current\n if (prev != null && prev in this.forest.nodeMap) {\n this.forest.nodeMap[prev].isHighlighted = false\n }\n\n this.menu.current = node.id\n node.isHighlighted = true\n\n if (this.menu.isOpen && scroll) {\n const scrollToOption = () => {\n const nodeId = node.id.toString().replace(/\"/g, '\\\\\"')\n const $menu = this.getMenu()\n const $option = $menu.querySelector(`.vue-treeselect__option[data-id=\"${nodeId}\"]`)\n if ($option) scrollIntoView($menu, $option)\n }\n\n // In case `openMenu()` is just called and the menu is not rendered yet.\n if (this.getMenu()) {\n scrollToOption()\n } else {\n // istanbul ignore next\n this.$nextTick(scrollToOption)\n }\n }\n },\n\n resetHighlightedOptionWhenNecessary(forceReset = false) {\n const { current } = this.menu\n\n if (\n forceReset || current == null ||\n !(current in this.forest.nodeMap) ||\n !this.shouldShowOptionInMenu(this.getNode(current))\n ) {\n this.highlightFirstOption()\n }\n },\n\n highlightFirstOption() {\n if (!this.hasVisibleOptions) return\n\n const first = this.visibleOptionIds[0]\n this.setCurrentHighlightedOption(this.getNode(first))\n },\n\n highlightPrevOption() {\n if (!this.hasVisibleOptions) return\n\n const prev = this.visibleOptionIds.indexOf(this.menu.current) - 1\n if (prev === -1) return this.highlightLastOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[prev]))\n },\n\n highlightNextOption() {\n if (!this.hasVisibleOptions) return\n\n const next = this.visibleOptionIds.indexOf(this.menu.current) + 1\n if (next === this.visibleOptionIds.length) return this.highlightFirstOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[next]))\n },\n\n highlightLastOption() {\n if (!this.hasVisibleOptions) return\n\n const last = getLast(this.visibleOptionIds)\n this.setCurrentHighlightedOption(this.getNode(last))\n },\n\n resetSearchQuery() {\n this.trigger.searchQuery = ''\n },\n\n closeMenu() {\n if (!this.menu.isOpen || (!this.disabled && this.alwaysOpen)) return\n this.saveMenuScrollPosition()\n this.menu.isOpen = false\n this.toggleClickOutsideEvent(false)\n this.resetSearchQuery()\n this.$emit('close', this.getValue(), this.getInstanceId())\n },\n\n openMenu() {\n if (this.disabled || this.menu.isOpen) return\n this.menu.isOpen = true\n this.$nextTick(this.resetHighlightedOptionWhenNecessary)\n this.$nextTick(this.restoreMenuScrollPosition)\n if (!this.options && !this.async) this.loadRootOptions()\n this.toggleClickOutsideEvent(true)\n this.$emit('open', this.getInstanceId())\n },\n\n toggleMenu() {\n if (this.menu.isOpen) {\n this.closeMenu()\n } else {\n this.openMenu()\n }\n },\n\n toggleExpanded(node) {\n let nextState\n\n if (this.localSearch.active) {\n nextState = node.isExpandedOnSearch = !node.isExpandedOnSearch\n if (nextState) node.showAllChildrenOnSearch = true\n } else {\n nextState = node.isExpanded = !node.isExpanded\n }\n\n if (nextState && !node.childrenStates.isLoaded) {\n this.loadChildrenOptions(node)\n }\n },\n\n buildForestState() {\n const selectedNodeMap = createMap()\n this.forest.selectedNodeIds.forEach(selectedNodeId => {\n selectedNodeMap[selectedNodeId] = true\n })\n this.forest.selectedNodeMap = selectedNodeMap\n\n const checkedStateMap = createMap()\n if (this.multiple) {\n this.traverseAllNodesByIndex(node => {\n checkedStateMap[node.id] = UNCHECKED\n })\n\n this.selectedNodes.forEach(selectedNode => {\n checkedStateMap[selectedNode.id] = CHECKED\n\n if (!this.flat && !this.disableBranchNodes) {\n selectedNode.ancestors.forEach(ancestorNode => {\n if (!this.isSelected(ancestorNode)) {\n checkedStateMap[ancestorNode.id] = INDETERMINATE\n }\n })\n }\n })\n }\n this.forest.checkedStateMap = checkedStateMap\n },\n\n enhancedNormalizer(raw) {\n return {\n ...raw,\n ...this.normalizer(raw, this.getInstanceId()),\n }\n },\n\n normalize(parentNode, nodes, prevNodeMap) {\n let normalizedOptions = nodes\n .map(node => [ this.enhancedNormalizer(node), node ])\n .map(([ node, raw ], index) => {\n this.checkDuplication(node)\n this.verifyNodeShape(node)\n\n const id = node.id !== undefined ? node.id : Math.round(Math.random() * 1000000)\n const { label, children, isDefaultExpanded } = node\n const isRootNode = parentNode === NO_PARENT_NODE\n const level = isRootNode || this.showAsGroup ? 0 : parentNode.level + 1\n const isBranch = Array.isArray(children) || children === null\n const isLeaf = !isBranch\n const isDisabled = !!node.isDisabled || (!this.flat && !isRootNode && parentNode.isDisabled)\n const isNew = !!node.isNew\n const lowerCased = this.matchKeys.reduce((prev, key) => ({\n ...prev,\n [key]: stringifyOptionPropValue(node[key]).toLocaleLowerCase(),\n }), {})\n const nestedSearchLabel = isRootNode\n ? lowerCased.label\n : parentNode.nestedSearchLabel + ' ' + lowerCased.label\n\n const normalized = this.$set(this.forest.nodeMap, id, createMap())\n this.$set(normalized, 'id', id)\n this.$set(normalized, 'label', label)\n this.$set(normalized, 'level', level)\n this.$set(normalized, 'ancestors', isRootNode ? [] : [ parentNode ].concat(parentNode.ancestors))\n this.$set(normalized, 'index', (isRootNode ? [] : parentNode.index).concat(index))\n this.$set(normalized, 'parentNode', parentNode)\n this.$set(normalized, 'lowerCased', lowerCased)\n this.$set(normalized, 'nestedSearchLabel', nestedSearchLabel)\n this.$set(normalized, 'isDisabled', isDisabled)\n this.$set(normalized, 'isNew', isNew)\n this.$set(normalized, 'isMatched', false)\n this.$set(normalized, 'isHighlighted', false)\n this.$set(normalized, 'isBranch', isBranch)\n this.$set(normalized, 'isGroup', isBranch && this.showAsGroup)\n this.$set(normalized, 'isLeaf', isLeaf)\n this.$set(normalized, 'isRootNode', isRootNode)\n this.$set(normalized, 'raw', raw)\n\n if (isBranch) {\n const isLoaded = Array.isArray(children)\n\n this.$set(normalized, 'childrenStates', {\n ...createAsyncOptionsStates(),\n isLoaded,\n })\n this.$set(normalized, 'isExpanded', this.showAsGroup ? this.showAsGroup : typeof isDefaultExpanded === 'boolean'\n ? isDefaultExpanded\n : level < this.defaultExpandLevel)\n this.$set(normalized, 'hasMatchedDescendants', false)\n this.$set(normalized, 'hasDisabledDescendants', false)\n this.$set(normalized, 'isExpandedOnSearch', false)\n this.$set(normalized, 'showAllChildrenOnSearch', false)\n this.$set(normalized, 'count', {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n this.$set(normalized, 'children', isLoaded\n ? this.normalize(normalized, children, prevNodeMap)\n : [])\n\n if (isDefaultExpanded === true) normalized.ancestors.forEach(ancestor => {\n ancestor.isExpanded = true\n })\n\n if (!isLoaded && typeof this.loadOptions !== 'function') {\n warning(\n () => false,\n () => 'Unloaded branch node detected. \"loadOptions\" prop is required to load its children.',\n )\n } else if (!isLoaded && normalized.isExpanded) {\n this.loadChildrenOptions(normalized)\n }\n }\n\n normalized.ancestors.forEach(ancestor => ancestor.count[ALL_DESCENDANTS]++)\n if (isLeaf) normalized.ancestors.forEach(ancestor => ancestor.count[LEAF_DESCENDANTS]++)\n if (!isRootNode) {\n parentNode.count[ALL_CHILDREN] += 1\n if (isLeaf) parentNode.count[LEAF_CHILDREN] += 1\n if (isDisabled) parentNode.hasDisabledDescendants = true\n }\n\n // Preserve previous states.\n if (prevNodeMap && prevNodeMap[id]) {\n const prev = prevNodeMap[id]\n\n normalized.isMatched = prev.isMatched\n normalized.showAllChildrenOnSearch = prev.showAllChildrenOnSearch\n normalized.isHighlighted = prev.isHighlighted\n\n if (prev.isBranch && normalized.isBranch) {\n normalized.isExpanded = prev.isExpanded\n normalized.isExpandedOnSearch = prev.isExpandedOnSearch\n // #97\n // If `isLoaded` was true, but IS NOT now, we consider this branch node\n // to be reset to unloaded state by the user of this component.\n if (prev.childrenStates.isLoaded && !normalized.childrenStates.isLoaded) {\n // Make sure the node is collapsed, then the user can load its\n // children again (by expanding).\n normalized.isExpanded = false\n // We have reset `childrenStates` and don't want to preserve states here.\n } else {\n normalized.childrenStates = { ...prev.childrenStates }\n }\n }\n }\n\n return normalized\n })\n\n if (this.branchNodesFirst) {\n const branchNodes = normalizedOptions.filter(option => option.isBranch)\n const leafNodes = normalizedOptions.filter(option => option.isLeaf)\n normalizedOptions = branchNodes.concat(leafNodes)\n }\n\n return normalizedOptions\n },\n\n loadRootOptions() {\n this.callLoadOptionsProp({\n action: LOAD_ROOT_OPTIONS,\n isPending: () => {\n return this.rootOptionsStates.isLoading\n },\n start: () => {\n this.rootOptionsStates.isLoading = true\n this.rootOptionsStates.loadingError = ''\n },\n succeed: () => {\n this.rootOptionsStates.isLoaded = true\n // Wait for `options` being re-initialized.\n this.$nextTick(() => {\n this.resetHighlightedOptionWhenNecessary(true)\n })\n },\n fail: err => {\n this.rootOptionsStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.rootOptionsStates.isLoading = false\n },\n })\n },\n\n loadChildrenOptions(parentNode) {\n // The options may be re-initialized anytime during the loading process.\n // So `parentNode` can be stale and we use `getNode()` to avoid that.\n\n const { id, raw } = parentNode\n\n this.callLoadOptionsProp({\n action: LOAD_CHILDREN_OPTIONS,\n args: {\n // We always pass the raw node instead of the normalized node to any\n // callback provided by the user of this component.\n // Because the shape of the raw node is more likely to be closing to\n // what the back-end API service of the application needs.\n parentNode: raw,\n },\n isPending: () => {\n return this.getNode(id).childrenStates.isLoading\n },\n start: () => {\n this.getNode(id).childrenStates.isLoading = true\n this.getNode(id).childrenStates.loadingError = ''\n },\n succeed: () => {\n this.getNode(id).childrenStates.isLoaded = true\n },\n fail: err => {\n this.getNode(id).childrenStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.getNode(id).childrenStates.isLoading = false\n },\n })\n },\n\n callLoadOptionsProp({ action, args, isPending, start, succeed, fail, end }) {\n if (!this.loadOptions || isPending()) {\n return\n }\n\n start()\n\n const callback = once((err, result) => {\n if (err) {\n fail(err)\n } else {\n succeed(result)\n }\n\n end()\n })\n const result = this.loadOptions({\n id: this.getInstanceId(),\n instanceId: this.getInstanceId(),\n action,\n ...args,\n callback,\n })\n\n if (isPromise(result)) {\n result.then(() => {\n callback()\n }, err => {\n callback(err)\n }).catch(err => {\n // istanbul ignore next\n console.error(err)\n })\n }\n },\n\n checkDuplication(node) {\n warning(\n () => !((node.id in this.forest.nodeMap) && !this.forest.nodeMap[node.id].isFallbackNode),\n () => `Detected duplicate presence of node id ${JSON.stringify(node.id)}. ` +\n `Their labels are \"${this.forest.nodeMap[node.id].label}\" and \"${node.label}\" respectively.`,\n )\n },\n\n verifyNodeShape(node) {\n warning(\n () => !(node.children === undefined && node.isBranch === true),\n () => 'Are you meant to declare an unloaded branch node? ' +\n '`isBranch: true` is no longer supported, please use `children: null` instead.',\n )\n },\n\n select(node) {\n if (this.disabled || node.isDisabled) {\n return\n }\n\n if (this.single) {\n this.clear()\n }\n\n const nextState = this.multiple && !this.flat\n ? this.forest.checkedStateMap[node.id] === UNCHECKED\n : !this.isSelected(node)\n\n if (nextState) {\n this._selectNode(node)\n } else {\n this._deselectNode(node)\n }\n\n this.buildForestState()\n\n if (nextState) {\n this.$emit('select', node.raw, this.getInstanceId())\n } else {\n this.$emit('deselect', node.raw, this.getInstanceId())\n }\n\n if (this.localSearch.active && nextState && (this.single || this.clearOnSelect)) {\n this.resetSearchQuery()\n }\n\n if (this.single && this.closeOnSelect) {\n this.closeMenu()\n\n // istanbul ignore else\n if (this.searchable) {\n this._blurOnSelect = true\n }\n }\n },\n\n clear() {\n if (this.hasValue) {\n if (this.single || this.allowClearingDisabled) {\n this.forest.selectedNodeIds = []\n } else /* if (this.multiple && !this.allowClearingDisabled) */ {\n this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter(nodeId =>\n this.getNode(nodeId).isDisabled,\n )\n }\n\n this.buildForestState()\n }\n },\n\n // This is meant to be called only by `select()`.\n _selectNode(node) {\n if (this.single || this.disableBranchNodes) {\n return this.addValue(node)\n }\n\n if (this.flat) {\n this.addValue(node)\n\n if (this.autoSelectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (!this.isSelected(ancestor) && !ancestor.isDisabled) this.addValue(ancestor)\n })\n } else if (this.autoSelectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!this.isSelected(descendant) && !descendant.isDisabled) this.addValue(descendant)\n })\n }\n\n return\n }\n\n const isFullyChecked = (\n node.isLeaf ||\n (/* node.isBranch && */!node.hasDisabledDescendants) ||\n (/* node.isBranch && */this.allowSelectingDisabledDescendants)\n )\n if (isFullyChecked) {\n this.addValue(node)\n }\n\n if (node.isBranch) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.addValue(descendant)\n }\n })\n }\n\n if (isFullyChecked) {\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (curr.children.every(this.isSelected)) this.addValue(curr)\n else break\n }\n }\n },\n\n // This is meant to be called only by `select()`.\n _deselectNode(node) {\n if (this.disableBranchNodes) {\n return this.removeValue(node)\n }\n\n if (this.flat) {\n this.removeValue(node)\n\n if (this.autoDeselectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (this.isSelected(ancestor) && !ancestor.isDisabled) this.removeValue(ancestor)\n })\n } else if (this.autoDeselectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (this.isSelected(descendant) && !descendant.isDisabled) this.removeValue(descendant)\n })\n }\n\n return\n }\n\n let hasUncheckedSomeDescendants = false\n if (node.isBranch) {\n this.traverseDescendantsDFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.removeValue(descendant)\n hasUncheckedSomeDescendants = true\n }\n })\n }\n\n if (\n node.isLeaf ||\n /* node.isBranch && */hasUncheckedSomeDescendants ||\n /* node.isBranch && */node.children.length === 0\n ) {\n this.removeValue(node)\n\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (this.isSelected(curr)) this.removeValue(curr)\n else break\n }\n }\n },\n\n addValue(node) {\n this.forest.selectedNodeIds.push(node.id)\n this.forest.selectedNodeMap[node.id] = true\n },\n\n removeValue(node) {\n removeFromArray(this.forest.selectedNodeIds, node.id)\n delete this.forest.selectedNodeMap[node.id]\n },\n\n removeLastValue() {\n if (!this.hasValue) return\n if (this.single) return this.clear()\n const lastValue = getLast(this.internalValue)\n const lastSelectedNode = this.getNode(lastValue)\n this.select(lastSelectedNode) // deselect\n },\n\n saveMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) this.menu.lastScrollPosition = $menu.scrollTop\n },\n\n restoreMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) $menu.scrollTop = this.menu.lastScrollPosition\n },\n },\n\n created() {\n this.verifyProps()\n this.resetFlags()\n },\n\n mounted() {\n if (this.autoFocus) this.focusInput()\n if (!this.options && !this.async && this.autoLoadRootOptions) this.loadRootOptions()\n if (this.alwaysOpen) this.openMenu()\n if (this.async && this.defaultOptions) this.handleRemoteSearch()\n },\n\n destroyed() {\n // istanbul ignore next\n this.toggleClickOutsideEvent(false)\n },\n}\n","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HiddenFields.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HiddenFields.vue?vue&type=script&lang=js\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render, staticRenderFns\nimport script from \"./HiddenFields.vue?vue&type=script&lang=js\"\nexport * from \"./HiddenFields.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4d48089a')) {\n api.createRecord('4d48089a', component.options)\n } else {\n api.reload('4d48089a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/HiddenFields.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Input.vue?vue&type=script&lang=js\"\nexport * from \"./Input.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('54844eca')) {\n api.createRecord('54844eca', component.options)\n } else {\n api.reload('54844eca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Input.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Placeholder.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Placeholder.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Placeholder.vue?vue&type=script&lang=js\"\nexport * from \"./Placeholder.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('5a99d1f3')) {\n api.createRecord('5a99d1f3', component.options)\n } else {\n api.reload('5a99d1f3', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Placeholder.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleValue.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleValue.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./SingleValue.vue?vue&type=script&lang=js\"\nexport * from \"./SingleValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('03d19b89')) {\n api.createRecord('03d19b89', component.options)\n } else {\n api.reload('03d19b89', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/SingleValue.vue\"\nexport default component.exports","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 348.333 348.333\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delete.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delete.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Delete.vue?vue&type=template&id=364b6320\"\nimport script from \"./Delete.vue?vue&type=script&lang=js\"\nexport * from \"./Delete.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('364b6320')) {\n api.createRecord('364b6320', component.options)\n } else {\n api.reload('364b6320', component.options)\n }\n module.hot.accept(\"./Delete.vue?vue&type=template&id=364b6320\", function () {\n api.rerender('364b6320', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Delete.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValueItem.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValueItem.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MultiValueItem.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValueItem.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('6dd6c8ca')) {\n api.createRecord('6dd6c8ca', component.options)\n } else {\n api.reload('6dd6c8ca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValueItem.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValue.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiValue.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MultiValue.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('14fca5e8')) {\n api.createRecord('14fca5e8', component.options)\n } else {\n api.reload('14fca5e8', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValue.vue\"\nexport default component.exports","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 292.362 292.362\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Arrow.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Arrow.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Arrow.vue?vue&type=template&id=11186cd4\"\nimport script from \"./Arrow.vue?vue&type=script&lang=js\"\nexport * from \"./Arrow.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('11186cd4')) {\n api.createRecord('11186cd4', component.options)\n } else {\n api.reload('11186cd4', component.options)\n }\n module.hot.accept(\"./Arrow.vue?vue&type=template&id=11186cd4\", function () {\n api.rerender('11186cd4', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Arrow.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Control.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Control.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Control.vue?vue&type=script&lang=js\"\nexport * from \"./Control.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('2fa0a0dd')) {\n api.createRecord('2fa0a0dd', component.options)\n } else {\n api.reload('2fa0a0dd', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Control.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tip.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Tip.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Tip.vue?vue&type=script&lang=js\"\nexport * from \"./Tip.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9f31bdca')) {\n api.createRecord('9f31bdca', component.options)\n } else {\n api.reload('9f31bdca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Tip.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Option.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Option.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Option.vue?vue&type=script&lang=js\"\nexport * from \"./Option.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('3dddec25')) {\n api.createRecord('3dddec25', component.options)\n } else {\n api.reload('3dddec25', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Option.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Menu.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Menu.vue?vue&type=script&lang=js\"\nexport * from \"./Menu.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9bcc0be2')) {\n api.createRecord('9bcc0be2', component.options)\n } else {\n api.reload('9bcc0be2', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Menu.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuPortal.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuPortal.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./MenuPortal.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPortal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4802d94a')) {\n api.createRecord('4802d94a', component.options)\n } else {\n api.reload('4802d94a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MenuPortal.vue\"\nexport default component.exports","\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Treeselect.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Treeselect.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./Treeselect.vue?vue&type=script&lang=js\"\nexport * from \"./Treeselect.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('aebf116c')) {\n api.createRecord('aebf116c', component.options)\n } else {\n api.reload('aebf116c', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Treeselect.vue\"\nexport default component.exports","import Treeselect from './components/Treeselect'\nimport treeselectMixin from './mixins/treeselectMixin'\nimport './style.less'\n\nexport default Treeselect\nexport { Treeselect, treeselectMixin }\nexport {\n // Delayed loading.\n LOAD_ROOT_OPTIONS,\n LOAD_CHILDREN_OPTIONS,\n ASYNC_SEARCH,\n} from './constants'\n\nexport const VERSION = PKG_VERSION\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/vue-treeselect.umd.min.js b/dist/vue-treeselect.umd.min.js index 294693b9..a71ba057 100644 --- a/dist/vue-treeselect.umd.min.js +++ b/dist/vue-treeselect.umd.min.js @@ -3,5 +3,5 @@ * Released under the MIT License. * https://vue-treeselect.js.org/ */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("Vue")):"function"==typeof define&&define.amd?define(["Vue"],t):"object"==typeof exports?exports.VueTreeselect=t(require("Vue")):e.VueTreeselect=t(e.Vue)}(window,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=42)}([function(e,t,n){var i=n(26);e.exports=function(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var r,o,s,a,l;for(s in t)if(r=e[s],o=t[s],r&&n.test(s))if("class"===s&&("string"==typeof r&&(l=r,e[s]=r={},r[l]=!0),"string"==typeof o&&(l=o,t[s]=o={},o[l]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)r[a]=i(r[a],o[a]);else if(Array.isArray(r))e[s]=r.concat(o);else if(Array.isArray(o))e[s]=[r].concat(o);else for(a in o)r[a]=o[a];else e[s]=t[s];return e}),{})}},function(e,t,n){var i=n(23),r=n(24),o=n(4),s=n(25);e.exports=function(e){return i(e)||r(e)||o(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(5);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=t||n<0||m&&e-f>=c}function O(){var e=r();if(b(e))return x(e);h=setTimeout(O,function(e){var n=t-(e-p);return m?a(n,c-(e-f)):n}(e))}function x(e){return h=void 0,g&&l?y(e):(l=u=void 0,d)}function _(){var e=r(),n=b(e);if(l=arguments,u=this,p=e,n){if(void 0===h)return S(p);if(m)return clearTimeout(h),h=setTimeout(O,t),y(p)}return void 0===h&&(h=setTimeout(O,t)),d}return t=o(t)||0,i(n)&&(v=!!n.leading,c=(m="maxWait"in n)?s(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=u=h=void 0},_.flush=function(){return void 0===h?d:x(r())},_}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var i=n(29),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},function(e,t,n){var i=n(31),r=n(8),o=n(33),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?NaN:+e}},function(e,t,n){var i=n(9).Symbol;e.exports=i},function(e,t){function n(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=n,e.exports.default=n},function(e,t,n){var i=n(38);e.exports=function(e){return i(2,e)}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var i=n(20),r=n(21),o=n(4),s=n(22);e.exports=function(e,t){return i(e)||r(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.length,i=e.length;if(i>n)return!1;if(i===n)return e===t;e:for(var r=0,o=0;r0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},function(e,t,n){var i=n(40);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var i=n(10);e.exports=function(e){return e?(e=i(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Treeselect",(function(){return Fe})),n.d(t,"treeselectMixin",(function(){return ce})),n.d(t,"LOAD_ROOT_OPTIONS",(function(){return Q})),n.d(t,"LOAD_CHILDREN_OPTIONS",(function(){return G})),n.d(t,"ASYNC_SEARCH",(function(){return Y})),n.d(t,"VERSION",(function(){return Pe}));var i=n(17),r=n.n(i),o=n(3),s=n.n(o),a=n(0),l=n.n(a),u=n(18),c=n.n(u),d=n(6),h=n.n(d).a;function p(e){return function(t){if("mousedown"===t.type&&0===t.button){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;rn.bottom?e.scrollTop=Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight):i.top-r0},single:function(){return!this.multiple},visibleOptionIds:function(){var e=this,t=[];return this.traverseAllNodesByIndex((function(n){if(e.localSearch.active&&!e.shouldOptionBeIncludedInSearchResult(n)||t.push(n.id),n.isBranch&&!e.shouldExpand(n))return!1})),t},hasVisibleOptions:function(){return 0!==this.visibleOptionIds.length},showCountOnSearchComputed:function(){return"boolean"==typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.forest.normalizedOptions.some((function(e){return e.isBranch}))},shouldFlattenOptions:function(){return this.localSearch.active&&this.flattenSearchResults}},watch:{alwaysOpen:function(e){e?this.openMenu():this.closeMenu()},branchNodesFirst:function(){this.initialize()},disabled:function(e){e&&this.menu.isOpen?this.closeMenu():e||this.menu.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize()},internalValue:function(e,t){W(e,t)&&this.$emit("input",this.getValue(),this.getInstanceId())},matchKeys:function(){this.initialize()},multiple:function(e){e&&this.buildForestState()},options:{handler:function(){this.async||(this.initialize(),this.rootOptionsStates.isLoaded=Array.isArray(this.options))},deep:!0,immediate:!0},"trigger.searchQuery":function(){this.async?this.handleRemoteSearch():this.handleLocalSearch(),this.$emit("search-change",this.trigger.searchQuery,this.getInstanceId())},value:function(){var e=this.extractCheckedNodeIdsFromValue();W(e,this.internalValue)&&this.fixSelectedNodeIds(e)}},methods:{verifyProps:function(){var e=this;if(h((function(){return!e.async||e.searchable}),(function(){return'For async search mode, the value of "searchable" prop must be true.'})),null!=this.options||this.loadOptions||h((function(){return!1}),(function(){return'Are you meant to dynamically load options? You need to use "loadOptions" prop.'})),this.flat&&h((function(){return e.multiple}),(function(){return'You are using flat mode. But you forgot to add "multiple=true"?'})),!this.flat){["autoSelectAncestors","autoSelectDescendants","autoDeselectAncestors","autoDeselectDescendants"].forEach((function(t){h((function(){return!e[t]}),(function(){return'"'.concat(t,'" only applies to flat mode.')}))}))}},resetFlags:function(){this._blurOnSelect=!1},initialize:function(){var e=this.async?this.getRemoteSearchEntry().options:this.options;if(Array.isArray(e)){var t=this.forest.nodeMap;this.forest.nodeMap=$(),this.keepDataOfSelectedNodes(t),this.forest.normalizedOptions=this.normalize(null,e,t),this.fixSelectedNodeIds(this.internalValue)}else this.forest.normalizedOptions=[]},getInstanceId:function(){return null==this.instanceId?this.id:this.instanceId},getValue:function(){var e=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var t=this.internalValue.map((function(t){return e.getNode(t).raw}));return this.multiple?t:t[0]},getNode:function(e){return h((function(){return null!=e}),(function(){return"Invalid node id: ".concat(e)})),null==e?null:e in this.forest.nodeMap?this.forest.nodeMap[e]:this.createFallbackNode(e)},createFallbackNode:function(e){var t=this.extractNodeFromValue(e),n={id:e,label:this.enhancedNormalizer(t).label||"".concat(e," (unknown)"),ancestors:[],parentNode:null,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,isNew:!1,index:[-1],level:0,raw:t};return this.$set(this.forest.nodeMap,e,n)},extractCheckedNodeIdsFromValue:function(){var e=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map((function(t){return e.enhancedNormalizer(t)})).map((function(e){return e.id}))},extractNodeFromValue:function(e){var t=this,n={id:e};return"id"===this.valueFormat?n:H(this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],(function(n){return n&&t.enhancedNormalizer(n).id===e}))||n},fixSelectedNodeIds:function(e){var t=this,n=[];if(this.single||this.flat||this.disableBranchNodes||"ALL"===this.valueConsistsOf)n=e;else if("BRANCH_PRIORITY"===this.valueConsistsOf)e.forEach((function(e){n.push(e);var i=t.getNode(e);i.isBranch&&t.traverseDescendantsBFS(i,(function(e){n.push(e.id)}))}));else if("LEAF_PRIORITY"===this.valueConsistsOf)for(var i=$(),r=e.slice();r.length;){var o=r.shift(),s=this.getNode(o);n.push(o),s.isRootNode||(s.parentNode.id in i||(i[s.parentNode.id]=s.parentNode.children.length),0==--i[s.parentNode.id]&&r.push(s.parentNode.id))}else if("ALL_WITH_INDETERMINATE"===this.valueConsistsOf)for(var a=$(),l=e.filter((function(e){var n=t.getNode(e);return n.isLeaf||0===n.children.length}));l.length;){var u=l.shift(),c=this.getNode(u);n.push(u),c.isRootNode||(c.parentNode.id in a||(a[c.parentNode.id]=c.parentNode.children.length),0==--a[c.parentNode.id]&&l.push(c.parentNode.id))}W(this.forest.selectedNodeIds,n)&&(this.forest.selectedNodeIds=n),this.buildForestState()},keepDataOfSelectedNodes:function(e){var t=this;this.forest.selectedNodeIds.forEach((function(n){if(e[n]){var i=oe(oe({},e[n]),{},{isFallbackNode:!0});t.$set(t.forest.nodeMap,n,i)}}))},isSelected:function(e){return!0===this.forest.selectedNodeMap[e.id]},traverseDescendantsBFS:function(e,t){if(e.isBranch)for(var n=e.children.slice();n.length;){var i=n[0];i.isBranch&&n.push.apply(n,s()(i.children)),t(i),n.shift()}},traverseDescendantsDFS:function(e,t){var n=this;e.isBranch&&e.children.forEach((function(e){n.traverseDescendantsDFS(e,t),t(e)}))},traverseAllNodesDFS:function(e){var t=this;this.forest.normalizedOptions.forEach((function(n){t.traverseDescendantsDFS(n,e),e(n)}))},traverseAllNodesByIndex:function(e){!function t(n){n.children.forEach((function(n){!1!==e(n)&&n.isBranch&&t(n)}))}({children:this.forest.normalizedOptions})},toggleClickOutsideEvent:function(e){e?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},getValueContainer:function(){return this.$refs&&this.$refs.control&&this.$refs.control.$refs?this.$refs.control.$refs["value-container"]:null},getInput:function(){return this.getValueContainer().$refs.input},focusInput:function(){this.getInput().focus()},blurInput:function(){this.getInput().blur()},handleMouseDown:p((function(e){(e.preventDefault(),e.stopPropagation(),!this.disabled&&this.getValueContainer())&&(this.getValueContainer().$el.contains(e.target)&&!this.menu.isOpen&&(this.openOnClick||this.trigger.isFocused)&&this.openMenu(),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags())})),handleClickOutside:function(e){this.$refs.wrapper&&!this.$refs.wrapper.contains(e.target)&&(this.blurInput(),this.closeMenu())},handleLocalSearch:function(){var e=this,t=this.trigger.searchQuery,n=function(){return e.resetHighlightedOptionWhenNecessary(!0)};if(!t)return this.localSearch.active=!1,n();this.localSearch.active=!0,this.localSearch.noResults=!0,this.traverseAllNodesDFS((function(t){t.isBranch&&(t.isExpandedOnSearch=!1,t.showAllChildrenOnSearch=!1,t.isMatched=!1,t.hasMatchedDescendants=!1,e.$set(e.localSearch.countMap,t.id,l()(l()(l()(l()({},"ALL_CHILDREN",0),"ALL_DESCENDANTS",0),"LEAF_CHILDREN",0),"LEAF_DESCENDANTS",0)))}));var i=t.trim().toLocaleLowerCase(),r=i.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS((function(t){e.searchNested&&r.length>1?t.isMatched=r.every((function(e){return ae(!1,e,t.nestedSearchLabel)})):t.isMatched=e.matchKeys.some((function(n){return ae(!e.disableFuzzyMatching,i,t.lowerCased[n])})),t.isMatched&&(e.localSearch.noResults=!1,t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].ALL_DESCENDANTS++})),t.isLeaf&&t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].LEAF_DESCENDANTS++})),null!==t.parentNode&&(e.localSearch.countMap[t.parentNode.id].ALL_CHILDREN+=1,t.isLeaf&&(e.localSearch.countMap[t.parentNode.id].LEAF_CHILDREN+=1))),(t.isMatched||t.isBranch&&t.isExpandedOnSearch)&&null!==t.parentNode&&(t.parentNode.isExpandedOnSearch=!0,t.parentNode.hasMatchedDescendants=!0)})),n()},handleRemoteSearch:function(){var e=this,t=this.trigger.searchQuery,n=this.getRemoteSearchEntry(),i=function(){e.initialize(),e.resetHighlightedOptionWhenNecessary(!0)};if((""===t||this.cacheOptions)&&n.isLoaded)return i();this.callLoadOptionsProp({action:Y,args:{searchQuery:t},isPending:function(){return n.isLoading},start:function(){n.isLoading=!0,n.isLoaded=!1,n.loadingError=""},succeed:function(r){n.isLoaded=!0,n.options=r,e.trigger.searchQuery===t&&i()},fail:function(e){n.loadingError=le(e)},end:function(){n.isLoading=!1}})},getRemoteSearchEntry:function(){var e=this,t=this.trigger.searchQuery,n=this.remoteSearch[t]||oe(oe({},{isLoaded:!1,isLoading:!1,loadingError:""}),{},{options:[]});if(this.$watch((function(){return n.options}),(function(){e.trigger.searchQuery===t&&e.initialize()}),{deep:!0}),""===t){if(Array.isArray(this.defaultOptions))return n.options=this.defaultOptions,n.isLoaded=!0,n;if(!0!==this.defaultOptions)return n.isLoaded=!0,n}return this.remoteSearch[t]||this.$set(this.remoteSearch,t,n),n},shouldExpand:function(e){return this.localSearch.active?e.isExpandedOnSearch:e.isExpanded},shouldOptionBeIncludedInSearchResult:function(e){return!!e.isMatched||(!(!e.isBranch||!e.hasMatchedDescendants||this.flattenSearchResults)||!(e.isRootNode||!e.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(e){return!(this.localSearch.active&&!this.shouldOptionBeIncludedInSearchResult(e))},getControl:function(){return this.$refs.control.$el},getMenu:function(){var e=(this.appendToBody?this.$refs.portal.portalTarget:this).$refs.menu.$refs.menu;return e&&"#comment"!==e.nodeName?e:null},setCurrentHighlightedOption:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.menu.current;if(null!=i&&i in this.forest.nodeMap&&(this.forest.nodeMap[i].isHighlighted=!1),this.menu.current=e.id,e.isHighlighted=!0,this.menu.isOpen&&n){var r=function(){var n=e.id.toString().replace(/"/g,'\\"'),i=t.getMenu(),r=i.querySelector('.vue-treeselect__option[data-id="'.concat(n,'"]'));r&&f(i,r)};this.getMenu()?r():this.$nextTick(r)}},resetHighlightedOptionWhenNecessary:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.menu.current;!e&&null!=t&&t in this.forest.nodeMap&&this.shouldShowOptionInMenu(this.getNode(t))||this.highlightFirstOption()},highlightFirstOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(e))}},highlightPrevOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)-1;if(-1===e)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)+1;if(e===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var e=F()(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(e))}},resetSearchQuery:function(){this.trigger.searchQuery=""},closeMenu:function(){!this.menu.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.menu.isOpen=!1,this.toggleClickOutsideEvent(!1),this.resetSearchQuery(),this.$emit("close",this.getValue(),this.getInstanceId()))},openMenu:function(){this.disabled||this.menu.isOpen||(this.menu.isOpen=!0,this.$nextTick(this.resetHighlightedOptionWhenNecessary),this.$nextTick(this.restoreMenuScrollPosition),this.options||this.async||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.$emit("open",this.getInstanceId()))},toggleMenu:function(){this.menu.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(e){var t;this.localSearch.active?(t=e.isExpandedOnSearch=!e.isExpandedOnSearch)&&(e.showAllChildrenOnSearch=!0):t=e.isExpanded=!e.isExpanded,t&&!e.childrenStates.isLoaded&&this.loadChildrenOptions(e)},buildForestState:function(){var e=this,t=$();this.forest.selectedNodeIds.forEach((function(e){t[e]=!0})),this.forest.selectedNodeMap=t;var n=$();this.multiple&&(this.traverseAllNodesByIndex((function(e){n[e.id]=0})),this.selectedNodes.forEach((function(t){n[t.id]=2,e.flat||e.disableBranchNodes||t.ancestors.forEach((function(t){e.isSelected(t)||(n[t.id]=1)}))}))),this.forest.checkedStateMap=n},enhancedNormalizer:function(e){return oe(oe({},e),this.normalizer(e,this.getInstanceId()))},normalize:function(e,t,n){var i=this,o=t.map((function(e){return[i.enhancedNormalizer(e),e]})).map((function(t,o){var s=r()(t,2),a=s[0],u=s[1];i.checkDuplication(a),i.verifyNodeShape(a);var c=void 0!==a.id?a.id:Math.round(1e6*Math.random()),d=a.label,p=a.children,f=a.isDefaultExpanded,v=null===e,m=v||i.showAsGroup?0:e.level+1,g=Array.isArray(p)||null===p,y=!g,S=!!a.isDisabled||!i.flat&&!v&&e.isDisabled,b=!!a.isNew,O=i.matchKeys.reduce((function(e,t){return oe(oe({},e),{},l()({},t,(n=a[t],"string"==typeof n?n:"number"!=typeof n||w(n)?"":n+"").toLocaleLowerCase()));var n}),{}),x=v?O.label:e.nestedSearchLabel+" "+O.label,_=i.$set(i.forest.nodeMap,c,$());if(i.$set(_,"id",c),i.$set(_,"label",d),i.$set(_,"level",m),i.$set(_,"ancestors",v?[]:[e].concat(e.ancestors)),i.$set(_,"index",(v?[]:e.index).concat(o)),i.$set(_,"parentNode",e),i.$set(_,"lowerCased",O),i.$set(_,"nestedSearchLabel",x),i.$set(_,"isDisabled",S),i.$set(_,"isNew",b),i.$set(_,"isMatched",!1),i.$set(_,"isHighlighted",!1),i.$set(_,"isBranch",g),i.$set(_,"isGroup",g&&i.showAsGroup),i.$set(_,"isLeaf",y),i.$set(_,"isRootNode",v),i.$set(_,"raw",u),g){var E=Array.isArray(p);i.$set(_,"childrenStates",oe(oe({},{isLoaded:!1,isLoading:!1,loadingError:""}),{},{isLoaded:E})),i.$set(_,"isExpanded",i.showAsGroup?i.showAsGroup:"boolean"==typeof f?f:mo+40,u=a>o+40;r.top>=0&&r.top<=s||r.top<0&&r.bottom>0?"auto"!==e.openDirection?e.menu.placement=Te[e.openDirection]:e.menu.placement=l||!u?"bottom":"top":e.closeMenu()}},setupMenuSizeWatcher:function(){var e=this.instance.getMenu();this.menuSizeWatcher||(this.menuSizeWatcher={remove:_(e,this.adjustMenuOpenDirection)})},setupMenuResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.menuResizeAndScrollEventListeners||(this.menuResizeAndScrollEventListeners={remove:N(e,this.adjustMenuOpenDirection)})},removeMenuSizeWatcher:function(){this.menuSizeWatcher&&(this.menuSizeWatcher.remove(),this.menuSizeWatcher=null)},removeMenuResizeAndScrollEventListeners:function(){this.menuResizeAndScrollEventListeners&&(this.menuResizeAndScrollEventListeners.remove(),this.menuResizeAndScrollEventListeners=null)}},render:function(){var e=arguments[0];return e("div",{ref:"menu-container",class:"vue-treeselect__menu-container",style:this.menuContainerStyle},[e("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[this.renderMenu()])])}},void 0,void 0,!1,null,null,null).exports,$e=n(19),Be=n.n($e);function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var ke,Ve={name:"vue-treeselect--portal-target",inject:["instance"],watch:{"instance.menu.isOpen":function(e){e?this.setupHandlers():this.removeHandlers()},"instance.menu.placement":function(){this.updateMenuContainerOffset()}},created:function(){this.controlResizeAndScrollEventListeners=null,this.controlSizeWatcher=null},mounted:function(){this.instance.menu.isOpen&&this.setupHandlers()},methods:{setupHandlers:function(){this.updateWidth(),this.updateMenuContainerOffset(),this.setupControlResizeAndScrollEventListeners(),this.setupControlSizeWatcher()},removeHandlers:function(){this.removeControlResizeAndScrollEventListeners(),this.removeControlSizeWatcher()},setupControlResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.controlResizeAndScrollEventListeners||(this.controlResizeAndScrollEventListeners={remove:N(e,this.updateMenuContainerOffset)})},setupControlSizeWatcher:function(){var e=this,t=this.instance.getControl();this.controlSizeWatcher||(this.controlSizeWatcher={remove:_(t,(function(){e.updateWidth(),e.updateMenuContainerOffset()}))})},removeControlResizeAndScrollEventListeners:function(){this.controlResizeAndScrollEventListeners&&(this.controlResizeAndScrollEventListeners.remove(),this.controlResizeAndScrollEventListeners=null)},removeControlSizeWatcher:function(){this.controlSizeWatcher&&(this.controlSizeWatcher.remove(),this.controlSizeWatcher=null)},updateWidth:function(){var e=this.instance,t=this.$el,n=e.getControl().getBoundingClientRect();t.style.width=n.width+"px"},updateMenuContainerOffset:function(){var e=this.instance,t=e.getControl(),n=this.$el,i=t.getBoundingClientRect(),r=n.getBoundingClientRect(),o="bottom"===e.menu.placement?i.height:0,s=Math.round(i.left-r.left)+"px",a=Math.round(i.top-r.top+o)+"px";this.$refs.menu.$refs["menu-container"].style[H(["transform","webkitTransform","MozTransform","msTransform"],(function(e){return e in document.body.style}))]="translate(".concat(s,", ").concat(a,")")}},render:function(){var e=arguments[0],t=this.instance,n=["vue-treeselect__portal-target",t.wrapperClass],i={zIndex:t.zIndex};return e("div",{class:n,style:i,attrs:{"data-instance-id":t.getInstanceId()}},[e(Re,{ref:"menu"})])},destroyed:function(){this.removeHandlers()}},je=he({name:"vue-treeselect--menu-portal",created:function(){this.portalTarget=null},mounted:function(){this.setup()},destroyed:function(){this.teardown()},methods:{setup:function(){var e=document.createElement("div");document.body.appendChild(e),this.portalTarget=new Be.a(function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n=t||n<0||m&&e-f>=c}function O(){var e=r();if(b(e))return _(e);h=setTimeout(O,function(e){var n=t-(e-p);return m?a(n,c-(e-f)):n}(e))}function _(e){return h=void 0,g&&l?y(e):(l=u=void 0,d)}function x(){var e=r(),n=b(e);if(l=arguments,u=this,p=e,n){if(void 0===h)return S(p);if(m)return clearTimeout(h),h=setTimeout(O,t),y(p)}return void 0===h&&(h=setTimeout(O,t)),d}return t=o(t)||0,i(n)&&(v=!!n.leading,c=(m="maxWait"in n)?s(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),x.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=u=h=void 0},x.flush=function(){return void 0===h?d:_(r())},x}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var i=n(29),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},function(e,t,n){var i=n(31),r=n(8),o=n(33),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?NaN:+e}},function(e,t,n){var i=n(9).Symbol;e.exports=i},function(e,t){function n(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=n,e.exports.default=n},function(e,t,n){var i=n(38);e.exports=function(e){return i(2,e)}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var i=n(20),r=n(21),o=n(4),s=n(22);e.exports=function(e,t){return i(e)||r(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e,t){var n=t.length,i=e.length;if(i>n)return!1;if(i===n)return e===t;e:for(var r=0,o=0;r0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},function(e,t,n){var i=n(40);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var i=n(10);e.exports=function(e){return e?(e=i(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Treeselect",(function(){return et})),n.d(t,"treeselectMixin",(function(){return ce})),n.d(t,"LOAD_ROOT_OPTIONS",(function(){return Q})),n.d(t,"LOAD_CHILDREN_OPTIONS",(function(){return G})),n.d(t,"ASYNC_SEARCH",(function(){return Y})),n.d(t,"VERSION",(function(){return tt}));var i=n(17),r=n.n(i),o=n(3),s=n.n(o),a=n(0),l=n.n(a),u=n(18),c=n.n(u),d=n(6),h=n.n(d).a;function p(e){return function(t){if("mousedown"===t.type&&0===t.button){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;rn.bottom?e.scrollTop=Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight):i.top-r0},single:function(){return!this.multiple},visibleOptionIds:function(){var e=this,t=[];return this.traverseAllNodesByIndex((function(n){if(e.localSearch.active&&!e.shouldOptionBeIncludedInSearchResult(n)||t.push(n.id),n.isBranch&&!e.shouldExpand(n))return!1})),t},hasVisibleOptions:function(){return 0!==this.visibleOptionIds.length},showCountOnSearchComputed:function(){return"boolean"==typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.forest.normalizedOptions.some((function(e){return e.isBranch}))},shouldFlattenOptions:function(){return this.localSearch.active&&this.flattenSearchResults}},watch:{alwaysOpen:function(e){e?this.openMenu():this.closeMenu()},branchNodesFirst:function(){this.initialize()},disabled:function(e){e&&this.menu.isOpen?this.closeMenu():e||this.menu.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize()},internalValue:function(e,t){W(e,t)&&this.$emit("input",this.getValue(),this.getInstanceId())},matchKeys:function(){this.initialize()},multiple:function(e){e&&this.buildForestState()},options:{handler:function(){this.async||(this.initialize(),this.rootOptionsStates.isLoaded=Array.isArray(this.options))},deep:!0,immediate:!0},"trigger.searchQuery":function(){this.async?this.handleRemoteSearch():this.handleLocalSearch(),this.$emit("search-change",this.trigger.searchQuery,this.getInstanceId())},value:function(){var e=this.extractCheckedNodeIdsFromValue();W(e,this.internalValue)&&this.fixSelectedNodeIds(e)}},methods:{verifyProps:function(){var e=this;if(h((function(){return!e.async||e.searchable}),(function(){return'For async search mode, the value of "searchable" prop must be true.'})),null!=this.options||this.loadOptions||h((function(){return!1}),(function(){return'Are you meant to dynamically load options? You need to use "loadOptions" prop.'})),this.flat&&h((function(){return e.multiple}),(function(){return'You are using flat mode. But you forgot to add "multiple=true"?'})),!this.flat){["autoSelectAncestors","autoSelectDescendants","autoDeselectAncestors","autoDeselectDescendants"].forEach((function(t){h((function(){return!e[t]}),(function(){return'"'.concat(t,'" only applies to flat mode.')}))}))}},resetFlags:function(){this._blurOnSelect=!1},initialize:function(){var e=this.async?this.getRemoteSearchEntry().options:this.options;if(Array.isArray(e)){var t=this.forest.nodeMap;this.forest.nodeMap=$(),this.keepDataOfSelectedNodes(t),this.forest.normalizedOptions=this.normalize(null,e,t),this.fixSelectedNodeIds(this.internalValue)}else this.forest.normalizedOptions=[]},getInstanceId:function(){return null==this.instanceId?this.id:this.instanceId},getValue:function(){var e=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var t=this.internalValue.map((function(t){return e.getNode(t).raw}));return this.multiple?t:t[0]},getNode:function(e){return h((function(){return null!=e}),(function(){return"Invalid node id: ".concat(e)})),null==e?null:e in this.forest.nodeMap?this.forest.nodeMap[e]:this.createFallbackNode(e)},createFallbackNode:function(e){var t=this.extractNodeFromValue(e),n={id:e,label:this.enhancedNormalizer(t).label||"".concat(e," (unknown)"),ancestors:[],parentNode:null,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,isNew:!1,index:[-1],level:0,raw:t};return this.$set(this.forest.nodeMap,e,n)},extractCheckedNodeIdsFromValue:function(){var e=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map((function(t){return e.enhancedNormalizer(t)})).map((function(e){return e.id}))},extractNodeFromValue:function(e){var t=this,n={id:e};return"id"===this.valueFormat?n:H(this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],(function(n){return n&&t.enhancedNormalizer(n).id===e}))||n},fixSelectedNodeIds:function(e){var t=this,n=[];if(this.single||this.flat||this.disableBranchNodes||"ALL"===this.valueConsistsOf)n=e;else if("BRANCH_PRIORITY"===this.valueConsistsOf)e.forEach((function(e){n.push(e);var i=t.getNode(e);i.isBranch&&t.traverseDescendantsBFS(i,(function(e){n.push(e.id)}))}));else if("LEAF_PRIORITY"===this.valueConsistsOf)for(var i=$(),r=e.slice();r.length;){var o=r.shift(),s=this.getNode(o);n.push(o),s.isRootNode||(s.parentNode.id in i||(i[s.parentNode.id]=s.parentNode.children.length),0==--i[s.parentNode.id]&&r.push(s.parentNode.id))}else if("ALL_WITH_INDETERMINATE"===this.valueConsistsOf)for(var a=$(),l=e.filter((function(e){var n=t.getNode(e);return n.isLeaf||0===n.children.length}));l.length;){var u=l.shift(),c=this.getNode(u);n.push(u),c.isRootNode||(c.parentNode.id in a||(a[c.parentNode.id]=c.parentNode.children.length),0==--a[c.parentNode.id]&&l.push(c.parentNode.id))}W(this.forest.selectedNodeIds,n)&&(this.forest.selectedNodeIds=n),this.buildForestState()},keepDataOfSelectedNodes:function(e){var t=this;this.forest.selectedNodeIds.forEach((function(n){if(e[n]){var i=oe(oe({},e[n]),{},{isFallbackNode:!0});t.$set(t.forest.nodeMap,n,i)}}))},isSelected:function(e){return!0===this.forest.selectedNodeMap[e.id]},traverseDescendantsBFS:function(e,t){if(e.isBranch)for(var n=e.children.slice();n.length;){var i=n[0];i.isBranch&&n.push.apply(n,s()(i.children)),t(i),n.shift()}},traverseDescendantsDFS:function(e,t){var n=this;e.isBranch&&e.children.forEach((function(e){n.traverseDescendantsDFS(e,t),t(e)}))},traverseAllNodesDFS:function(e){var t=this;this.forest.normalizedOptions.forEach((function(n){t.traverseDescendantsDFS(n,e),e(n)}))},traverseAllNodesByIndex:function(e){!function t(n){n.children.forEach((function(n){!1!==e(n)&&n.isBranch&&t(n)}))}({children:this.forest.normalizedOptions})},toggleClickOutsideEvent:function(e){e?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},getValueContainer:function(){return this.$refs&&this.$refs.control&&this.$refs.control.$refs?this.$refs.control.$refs["value-container"]:null},getInput:function(){return this.getValueContainer().$refs.input},focusInput:function(){this.getInput().focus()},blurInput:function(){this.getInput().blur()},handleMouseDown:p((function(e){(e.preventDefault(),e.stopPropagation(),!this.disabled&&this.getValueContainer())&&(this.getValueContainer().$el.contains(e.target)&&!this.menu.isOpen&&(this.openOnClick||this.trigger.isFocused)&&this.openMenu(),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags())})),handleClickOutside:function(e){this.$refs.wrapper&&!this.$refs.wrapper.contains(e.target)&&(this.blurInput(),this.closeMenu())},handleLocalSearch:function(){var e=this,t=this.trigger.searchQuery,n=function(){return e.resetHighlightedOptionWhenNecessary(!0)};if(!t)return this.localSearch.active=!1,n();this.localSearch.active=!0,this.localSearch.noResults=!0,this.traverseAllNodesDFS((function(t){t.isBranch&&(t.isExpandedOnSearch=!1,t.showAllChildrenOnSearch=!1,t.isMatched=!1,t.hasMatchedDescendants=!1,e.$set(e.localSearch.countMap,t.id,l()(l()(l()(l()({},"ALL_CHILDREN",0),"ALL_DESCENDANTS",0),"LEAF_CHILDREN",0),"LEAF_DESCENDANTS",0)))}));var i=t.trim().toLocaleLowerCase(),r=i.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS((function(t){e.searchNested&&r.length>1?t.isMatched=r.every((function(e){return ae(!1,e,t.nestedSearchLabel)})):t.isMatched=e.matchKeys.some((function(n){return ae(!e.disableFuzzyMatching,i,t.lowerCased[n])})),t.isMatched&&(e.localSearch.noResults=!1,t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].ALL_DESCENDANTS++})),t.isLeaf&&t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].LEAF_DESCENDANTS++})),null!==t.parentNode&&(e.localSearch.countMap[t.parentNode.id].ALL_CHILDREN+=1,t.isLeaf&&(e.localSearch.countMap[t.parentNode.id].LEAF_CHILDREN+=1))),(t.isMatched||t.isBranch&&t.isExpandedOnSearch)&&null!==t.parentNode&&(t.parentNode.isExpandedOnSearch=!0,t.parentNode.hasMatchedDescendants=!0)})),n()},handleRemoteSearch:function(){var e=this,t=this.trigger.searchQuery,n=this.getRemoteSearchEntry(),i=function(){e.initialize(),e.resetHighlightedOptionWhenNecessary(!0)};if((""===t||this.cacheOptions)&&n.isLoaded)return i();this.callLoadOptionsProp({action:Y,args:{searchQuery:t},isPending:function(){return n.isLoading},start:function(){n.isLoading=!0,n.isLoaded=!1,n.loadingError=""},succeed:function(r){n.isLoaded=!0,n.options=r,e.trigger.searchQuery===t&&i()},fail:function(e){n.loadingError=le(e)},end:function(){n.isLoading=!1}})},getRemoteSearchEntry:function(){var e=this,t=this.trigger.searchQuery,n=this.remoteSearch[t]||oe(oe({},{isLoaded:!1,isLoading:!1,loadingError:""}),{},{options:[]});if(this.$watch((function(){return n.options}),(function(){e.trigger.searchQuery===t&&e.initialize()}),{deep:!0}),""===t){if(Array.isArray(this.defaultOptions))return n.options=this.defaultOptions,n.isLoaded=!0,n;if(!0!==this.defaultOptions)return n.isLoaded=!0,n}return this.remoteSearch[t]||this.$set(this.remoteSearch,t,n),n},shouldExpand:function(e){return this.localSearch.active?e.isExpandedOnSearch:e.isExpanded},shouldOptionBeIncludedInSearchResult:function(e){return!!e.isMatched||(!(!e.isBranch||!e.hasMatchedDescendants||this.flattenSearchResults)||!(e.isRootNode||!e.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(e){return!(this.localSearch.active&&!this.shouldOptionBeIncludedInSearchResult(e))},getControl:function(){return this.$refs.control.$el},getMenu:function(){var e=(this.appendToBody?this.$refs.portal.portalTarget:this).$refs.menu.$refs.menu;return e&&"#comment"!==e.nodeName?e:null},setCurrentHighlightedOption:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.menu.current;if(null!=i&&i in this.forest.nodeMap&&(this.forest.nodeMap[i].isHighlighted=!1),this.menu.current=e.id,e.isHighlighted=!0,this.menu.isOpen&&n){var r=function(){var n=e.id.toString().replace(/"/g,'\\"'),i=t.getMenu(),r=i.querySelector('.vue-treeselect__option[data-id="'.concat(n,'"]'));r&&f(i,r)};this.getMenu()?r():this.$nextTick(r)}},resetHighlightedOptionWhenNecessary:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.menu.current;!e&&null!=t&&t in this.forest.nodeMap&&this.shouldShowOptionInMenu(this.getNode(t))||this.highlightFirstOption()},highlightFirstOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(e))}},highlightPrevOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)-1;if(-1===e)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)+1;if(e===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var e=F()(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(e))}},resetSearchQuery:function(){this.trigger.searchQuery=""},closeMenu:function(){!this.menu.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.menu.isOpen=!1,this.toggleClickOutsideEvent(!1),this.resetSearchQuery(),this.$emit("close",this.getValue(),this.getInstanceId()))},openMenu:function(){this.disabled||this.menu.isOpen||(this.menu.isOpen=!0,this.$nextTick(this.resetHighlightedOptionWhenNecessary),this.$nextTick(this.restoreMenuScrollPosition),this.options||this.async||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.$emit("open",this.getInstanceId()))},toggleMenu:function(){this.menu.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(e){var t;this.localSearch.active?(t=e.isExpandedOnSearch=!e.isExpandedOnSearch)&&(e.showAllChildrenOnSearch=!0):t=e.isExpanded=!e.isExpanded,t&&!e.childrenStates.isLoaded&&this.loadChildrenOptions(e)},buildForestState:function(){var e=this,t=$();this.forest.selectedNodeIds.forEach((function(e){t[e]=!0})),this.forest.selectedNodeMap=t;var n=$();this.multiple&&(this.traverseAllNodesByIndex((function(e){n[e.id]=0})),this.selectedNodes.forEach((function(t){n[t.id]=2,e.flat||e.disableBranchNodes||t.ancestors.forEach((function(t){e.isSelected(t)||(n[t.id]=1)}))}))),this.forest.checkedStateMap=n},enhancedNormalizer:function(e){return oe(oe({},e),this.normalizer(e,this.getInstanceId()))},normalize:function(e,t,n){var i=this,o=t.map((function(e){return[i.enhancedNormalizer(e),e]})).map((function(t,o){var s=r()(t,2),a=s[0],u=s[1];i.checkDuplication(a),i.verifyNodeShape(a);var c=void 0!==a.id?a.id:Math.round(1e6*Math.random()),d=a.label,p=a.children,f=a.isDefaultExpanded,v=null===e,m=v||i.showAsGroup?0:e.level+1,g=Array.isArray(p)||null===p,y=!g,S=!!a.isDisabled||!i.flat&&!v&&e.isDisabled,b=!!a.isNew,O=i.matchKeys.reduce((function(e,t){return oe(oe({},e),{},l()({},t,(n=a[t],"string"==typeof n?n:"number"!=typeof n||w(n)?"":n+"").toLocaleLowerCase()));var n}),{}),_=v?O.label:e.nestedSearchLabel+" "+O.label,x=i.$set(i.forest.nodeMap,c,$());if(i.$set(x,"id",c),i.$set(x,"label",d),i.$set(x,"level",m),i.$set(x,"ancestors",v?[]:[e].concat(e.ancestors)),i.$set(x,"index",(v?[]:e.index).concat(o)),i.$set(x,"parentNode",e),i.$set(x,"lowerCased",O),i.$set(x,"nestedSearchLabel",_),i.$set(x,"isDisabled",S),i.$set(x,"isNew",b),i.$set(x,"isMatched",!1),i.$set(x,"isHighlighted",!1),i.$set(x,"isBranch",g),i.$set(x,"isGroup",g&&i.showAsGroup),i.$set(x,"isLeaf",y),i.$set(x,"isRootNode",v),i.$set(x,"raw",u),g){var E=Array.isArray(p);i.$set(x,"childrenStates",oe(oe({},{isLoaded:!1,isLoading:!1,loadingError:""}),{},{isLoaded:E})),i.$set(x,"isExpanded",i.showAsGroup?i.showAsGroup:"boolean"==typeof f?f:mo+40,u=a>o+40;r.top>=0&&r.top<=s||r.top<0&&r.bottom>0?"auto"!==e.openDirection?e.menu.placement=We[e.openDirection]:e.menu.placement=l||!u?"bottom":"top":e.closeMenu()}},setupMenuSizeWatcher:function(){var e=this.instance.getMenu();this.menuSizeWatcher||(this.menuSizeWatcher={remove:x(e,this.adjustMenuOpenDirection)})},setupMenuResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.menuResizeAndScrollEventListeners||(this.menuResizeAndScrollEventListeners={remove:N(e,this.adjustMenuOpenDirection)})},removeMenuSizeWatcher:function(){this.menuSizeWatcher&&(this.menuSizeWatcher.remove(),this.menuSizeWatcher=null)},removeMenuResizeAndScrollEventListeners:function(){this.menuResizeAndScrollEventListeners&&(this.menuResizeAndScrollEventListeners.remove(),this.menuResizeAndScrollEventListeners=null)}},render:function(){var e=arguments[0];return e("div",{ref:"menu-container",class:"vue-treeselect__menu-container",style:this.menuContainerStyle},[e("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[this.renderMenu()])])}},void 0,void 0,!1,null,null,null).exports,Ge=n(19),Ye=n.n(Ge);function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var Ke,Xe={name:"vue-treeselect--portal-target",inject:["instance"],watch:{"instance.menu.isOpen":function(e){e?this.setupHandlers():this.removeHandlers()},"instance.menu.placement":function(){this.updateMenuContainerOffset()}},created:function(){this.controlResizeAndScrollEventListeners=null,this.controlSizeWatcher=null},mounted:function(){this.instance.menu.isOpen&&this.setupHandlers()},methods:{setupHandlers:function(){this.updateWidth(),this.updateMenuContainerOffset(),this.setupControlResizeAndScrollEventListeners(),this.setupControlSizeWatcher()},removeHandlers:function(){this.removeControlResizeAndScrollEventListeners(),this.removeControlSizeWatcher()},setupControlResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.controlResizeAndScrollEventListeners||(this.controlResizeAndScrollEventListeners={remove:N(e,this.updateMenuContainerOffset)})},setupControlSizeWatcher:function(){var e=this,t=this.instance.getControl();this.controlSizeWatcher||(this.controlSizeWatcher={remove:x(t,(function(){e.updateWidth(),e.updateMenuContainerOffset()}))})},removeControlResizeAndScrollEventListeners:function(){this.controlResizeAndScrollEventListeners&&(this.controlResizeAndScrollEventListeners.remove(),this.controlResizeAndScrollEventListeners=null)},removeControlSizeWatcher:function(){this.controlSizeWatcher&&(this.controlSizeWatcher.remove(),this.controlSizeWatcher=null)},updateWidth:function(){var e=this.instance,t=this.$el,n=e.getControl().getBoundingClientRect();t.style.width=n.width+"px"},updateMenuContainerOffset:function(){var e=this.instance,t=e.getControl(),n=this.$el,i=t.getBoundingClientRect(),r=n.getBoundingClientRect(),o="bottom"===e.menu.placement?i.height:0,s=Math.round(i.left-r.left)+"px",a=Math.round(i.top-r.top+o)+"px";this.$refs.menu.$refs["menu-container"].style[H(["transform","webkitTransform","MozTransform","msTransform"],(function(e){return e in document.body.style}))]="translate(".concat(s,", ").concat(a,")")}},render:function(){var e=arguments[0],t=this.instance,n=["vue-treeselect__portal-target",t.wrapperClass],i={zIndex:t.zIndex};return e("div",{class:n,style:i,attrs:{"data-instance-id":t.getInstanceId()}},[e(Qe,{ref:"menu"})])},destroyed:function(){this.removeHandlers()}},Ue=he({name:"vue-treeselect--menu-portal",created:function(){this.portalTarget=null},mounted:function(){this.setup()},destroyed:function(){this.teardown()},methods:{setup:function(){var e=document.createElement("div");document.body.appendChild(e),this.portalTarget=new Ye.a(function(e){for(var t=1;t arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\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 * 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 timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\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 clearTimeout(timerId);\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\nmodule.exports = debounce;\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 != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var freeGlobal = require('./_freeGlobal');\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\nmodule.exports = root;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\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/**\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 = baseTrim(value);\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 = toNumber;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","module.exports = isPromise;\nmodule.exports.default = isPromise;\n\nfunction isPromise(obj) {\n return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';\n}\n","var before = require('./before');\n\n/**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\nfunction once(func) {\n return before(2, func);\n}\n\nmodule.exports = once;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nfunction fuzzysearch (needle, haystack) {\n var tlen = haystack.length;\n var qlen = needle.length;\n if (qlen > tlen) {\n return false;\n }\n if (qlen === tlen) {\n return needle === haystack;\n }\n outer: for (var i = 0, j = 0; i < qlen; i++) {\n var nch = needle.charCodeAt(i);\n while (j < tlen) {\n if (haystack.charCodeAt(j++) === nch) {\n continue outer;\n }\n }\n return false;\n }\n return true;\n}\n\nmodule.exports = fuzzysearch;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__19__;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var root = require('./_root');\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\nmodule.exports = now;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\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) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\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 nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\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 nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\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 != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var toInteger = require('./toInteger');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\nfunction before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n}\n\nmodule.exports = before;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","import { noop } from './noop'\n\nexport const warning = process.env.NODE_ENV === 'production'\n ? /* istanbul ignore next */ noop\n : function warning(checker, complainer) {\n if (!checker()) {\n const message = [ '[Vue-Treeselect Warning]' ].concat(complainer())\n // eslint-disable-next-line no-console\n console.error(...message)\n }\n }\n","export function onLeftClick(mouseDownHandler) {\n return function onMouseDown(evt, ...args) {\n if (evt.type === 'mousedown' && evt.button === 0) {\n mouseDownHandler.call(this, evt, ...args)\n }\n }\n}\n","// from react-select\nexport function scrollIntoView($scrollingEl, $focusedEl) {\n const scrollingReact = $scrollingEl.getBoundingClientRect()\n const focusedRect = $focusedEl.getBoundingClientRect()\n const overScroll = $focusedEl.offsetHeight / 3\n\n if (focusedRect.bottom + overScroll > scrollingReact.bottom) {\n $scrollingEl.scrollTop = Math.min(\n $focusedEl.offsetTop + $focusedEl.clientHeight - $scrollingEl.offsetHeight + overScroll,\n $scrollingEl.scrollHeight,\n )\n } else if (focusedRect.top - overScroll < scrollingReact.top) {\n $scrollingEl.scrollTop = Math.max($focusedEl.offsetTop - overScroll, 0)\n }\n}\n","import watchSizeForBrowsersOtherThanIE9 from 'watch-size'\nimport { removeFromArray } from './removeFromArray'\n\nlet intervalId\nconst registered = []\nconst INTERVAL_DURATION = 100\n\nfunction run() {\n intervalId = setInterval(() => {\n registered.forEach(test)\n }, INTERVAL_DURATION)\n}\n\nfunction stop() {\n clearInterval(intervalId)\n intervalId = null\n}\n\nfunction test(item) {\n const { $el, listener, lastWidth, lastHeight } = item\n const width = $el.offsetWidth\n const height = $el.offsetHeight\n\n if (lastWidth !== width || lastHeight !== height) {\n item.lastWidth = width\n item.lastHeight = height\n\n listener({ width, height })\n }\n}\n\nfunction watchSizeForIE9($el, listener) {\n const item = {\n $el,\n listener,\n lastWidth: null,\n lastHeight: null,\n }\n const unwatch = () => {\n removeFromArray(registered, item)\n if (!registered.length) stop()\n }\n\n registered.push(item)\n // The original watch-size will call the listener on initialization.\n // Keep the same behavior here.\n test(item)\n run()\n\n return unwatch\n}\n\nexport function watchSize($el, listener) {\n // See: https://stackoverflow.com/a/31293352\n const isIE9 = document.documentMode === 9\n // watch-size will call the listener on initialization.\n // Disable this behavior with a lock to achieve a clearer code logic.\n let locked = true\n const wrappedListener = (...args) => locked || listener(...args)\n const implementation = isIE9\n ? watchSizeForIE9\n : watchSizeForBrowsersOtherThanIE9\n const removeSizeWatcher = implementation($el, wrappedListener)\n locked = false // unlock after initialization\n\n return removeSizeWatcher\n}\n","var index = (function (element, listener) {\n\tvar expand = document.createElement('_');\n\tvar shrink = expand.appendChild(document.createElement('_'));\n\tvar expandChild = expand.appendChild(document.createElement('_'));\n\tvar shrinkChild = shrink.appendChild(document.createElement('_'));\n\n\tvar lastWidth = void 0,\n\t lastHeight = void 0;\n\n\tshrink.style.cssText = expand.style.cssText = 'height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1';\n\tshrinkChild.style.cssText = expandChild.style.cssText = 'display:block;height:100%;transition:0s;width:100%';\n\tshrinkChild.style.width = shrinkChild.style.height = '200%';\n\n\telement.appendChild(expand);\n\n\ttest();\n\n\treturn stop;\n\n\tfunction test() {\n\t\tunbind();\n\n\t\tvar width = element.offsetWidth;\n\t\tvar height = element.offsetHeight;\n\n\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\tlastWidth = width;\n\t\t\tlastHeight = height;\n\n\t\t\texpandChild.style.width = width * 2 + 'px';\n\t\t\texpandChild.style.height = height * 2 + 'px';\n\n\t\t\texpand.scrollLeft = expand.scrollWidth;\n\t\t\texpand.scrollTop = expand.scrollHeight;\n\t\t\tshrink.scrollLeft = shrink.scrollWidth;\n\t\t\tshrink.scrollTop = shrink.scrollHeight;\n\n\t\t\tlistener({ width: width, height: height });\n\t\t}\n\n\t\tshrink.addEventListener('scroll', test);\n\t\texpand.addEventListener('scroll', test);\n\t}\n\n\tfunction unbind() {\n\t\tshrink.removeEventListener('scroll', test);\n\t\texpand.removeEventListener('scroll', test);\n\t}\n\n\tfunction stop() {\n\t\tunbind();\n\n\t\telement.removeChild(expand);\n\t}\n});\n\nexport default index;\n","export function removeFromArray(arr, elem) {\n const idx = arr.indexOf(elem)\n if (idx !== -1) arr.splice(idx, 1)\n}\n","function findScrollParents($el) {\n const $scrollParents = []\n let $parent = $el.parentNode\n\n while ($parent && $parent.nodeName !== 'BODY' && $parent.nodeType === document.ELEMENT_NODE) {\n if (isScrollElment($parent)) $scrollParents.push($parent)\n $parent = $parent.parentNode\n }\n $scrollParents.push(window)\n\n return $scrollParents\n}\n\nfunction isScrollElment($el) {\n // Firefox wants us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getComputedStyle($el)\n return /(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)\n}\n\nexport function setupResizeAndScrollEventListeners($el, listener) {\n const $scrollParents = findScrollParents($el)\n\n window.addEventListener('resize', listener, { passive: true })\n $scrollParents.forEach(scrollParent => {\n scrollParent.addEventListener('scroll', listener, { passive: true })\n })\n\n return function removeEventListeners() {\n window.removeEventListener('resize', listener, { passive: true })\n $scrollParents.forEach($scrollParent => {\n $scrollParent.removeEventListener('scroll', listener, { passive: true })\n })\n }\n}\n","export function isNaN(x) {\n return x !== x\n}\n","export const createMap = () => Object.create(null)\n","function isPlainObject(value) {\n if (value == null || typeof value !== 'object') return false\n return Object.getPrototypeOf(value) === Object.prototype\n}\n\nfunction copy(obj, key, value) {\n if (isPlainObject(value)) {\n obj[key] || (obj[key] = {})\n deepExtend(obj[key], value)\n } else {\n obj[key] = value\n }\n}\n\nexport function deepExtend(target, source) {\n if (isPlainObject(source)) {\n const keys = Object.keys(source)\n\n for (let i = 0, len = keys.length; i < len; i++) {\n copy(target, keys[i], source[keys[i]])\n }\n }\n\n return target\n}\n","export function includes(arrOrStr, elem) {\n return arrOrStr.indexOf(elem) !== -1\n}\n","export function find(arr, predicate, ctx) {\n for (let i = 0, len = arr.length; i < len; i++) {\n if (predicate.call(ctx, arr[i], i, arr)) return arr[i]\n }\n return undefined\n}\n","export function quickDiff(arrA, arrB) {\n if (arrA.length !== arrB.length) return true\n\n for (let i = 0; i < arrA.length; i++) {\n if (arrA[i] !== arrB[i]) return true\n }\n\n return false\n}\n","// Magic value that indicates a root level node.\nexport const NO_PARENT_NODE = null\n\n// Types of checked state.\nexport const UNCHECKED = 0\nexport const INDETERMINATE = 1\nexport const CHECKED = 2\n\n// Types of count number.\nexport const ALL_CHILDREN = 'ALL_CHILDREN'\nexport const ALL_DESCENDANTS = 'ALL_DESCENDANTS'\nexport const LEAF_CHILDREN = 'LEAF_CHILDREN'\nexport const LEAF_DESCENDANTS = 'LEAF_DESCENDANTS'\n\n// Action types of delayed loading.\nexport const LOAD_ROOT_OPTIONS = 'LOAD_ROOT_OPTIONS'\nexport const LOAD_CHILDREN_OPTIONS = 'LOAD_CHILDREN_OPTIONS'\nexport const ASYNC_SEARCH = 'ASYNC_SEARCH'\n\n// Acceptable values of `valueConsistsOf` prop.\nexport const ALL = 'ALL'\nexport const BRANCH_PRIORITY = 'BRANCH_PRIORITY'\nexport const LEAF_PRIORITY = 'LEAF_PRIORITY'\nexport const ALL_WITH_INDETERMINATE = 'ALL_WITH_INDETERMINATE'\n\n// Acceptable values of `sortValueBy` prop.\nexport const ORDER_SELECTED = 'ORDER_SELECTED'\nexport const LEVEL = 'LEVEL'\nexport const INDEX = 'INDEX'\n\n// Key codes look-up table.\nexport const KEY_CODES = {\n BACKSPACE: 8,\n ENTER: 13,\n ESCAPE: 27,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n}\n\n// Other constants.\nexport const INPUT_DEBOUNCE_DELAY = process.env.NODE_ENV === 'testing'\n ? /* to speed up unit testing */ 10\n : /* istanbul ignore next */ 200\nexport const MIN_INPUT_WIDTH = 5\nexport const MENU_BUFFER = 40\n","import fuzzysearch from 'fuzzysearch'\n\nimport {\n warning,\n onLeftClick, scrollIntoView,\n isNaN, isPromise, once,\n identity, constant, createMap,\n quickDiff, last as getLast, includes, find, removeFromArray,\n} from '../utils'\n\nimport {\n NO_PARENT_NODE,\n UNCHECKED, INDETERMINATE, CHECKED,\n LOAD_ROOT_OPTIONS, LOAD_CHILDREN_OPTIONS, ASYNC_SEARCH,\n ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE,\n ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS,\n ORDER_SELECTED, LEVEL, INDEX,\n} from '../constants'\n\nfunction sortValueByIndex(a, b) {\n let i = 0\n do {\n if (a.level < i) return -1\n if (b.level < i) return 1\n if (a.index[i] !== b.index[i]) return a.index[i] - b.index[i]\n i++\n } while (true)\n}\n\nfunction sortValueByLevel(a, b) {\n return a.level === b.level\n ? sortValueByIndex(a, b)\n : a.level - b.level\n}\n\nfunction createAsyncOptionsStates() {\n return {\n isLoaded: false,\n isLoading: false,\n loadingError: '',\n }\n}\n\nfunction stringifyOptionPropValue(value) {\n if (typeof value === 'string') return value\n if (typeof value === 'number' && !isNaN(value)) return value + ''\n // istanbul ignore next\n return ''\n}\n\nfunction match(enableFuzzyMatch, needle, haystack) {\n return enableFuzzyMatch\n ? fuzzysearch(needle, haystack)\n : includes(haystack, needle)\n}\n\nfunction getErrorMessage(err) {\n return err.message || /* istanbul ignore next */String(err)\n}\n\nlet instanceId = 0\n\nexport default {\n provide() {\n return {\n // Enable access to the instance of root component of vue-treeselect\n // across hierarchy.\n instance: this,\n }\n },\n\n props: {\n /**\n * Whether to allow resetting value even if there are disabled selected nodes.\n */\n allowClearingDisabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.\n * You may want to use this in conjunction with `allowClearingDisabled` prop.\n */\n allowSelectingDisabledDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the menu should be always open.\n */\n alwaysOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Append the menu to ?\n */\n appendToBody: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable async search mode.\n */\n async: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically focus the component on mount?\n */\n autoFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.\n */\n autoLoadRootOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.\n */\n autoDeselectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user deselects a node, automatically deselect its descendants. Applies to flat mode only.\n */\n autoDeselectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its ancestors. Applies to flat mode only.\n */\n autoSelectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its descendants. Applies to flat mode only.\n */\n autoSelectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether pressing backspace key removes the last item if there is no text input.\n */\n backspaceRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Function that processes before clearing all input fields.\n * Return `false` to prevent value from being cleared.\n * @type {function(): (boolean|Promise)}\n */\n beforeClearAll: {\n type: Function,\n default: constant(true),\n },\n\n /**\n * Show branch nodes before leaf nodes?\n */\n branchNodesFirst: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Should cache results of every search request?\n */\n cacheOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Show an \"×\" button that resets value?\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Title for the \"×\" button when `multiple: true`.\n */\n clearAllText: {\n type: String,\n default: 'Clear all',\n },\n\n /**\n * Whether to clear the search input after selecting.\n * Use only when `multiple` is `true`.\n * For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.\n */\n clearOnSelect: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Title for the \"×\" button.\n */\n clearValueText: {\n type: String,\n default: 'Clear value',\n },\n\n /**\n * Whether to close the menu after selecting an option?\n * Use only when `multiple` is `true`.\n */\n closeOnSelect: {\n type: Boolean,\n default: true,\n },\n\n /**\n * How many levels of branch nodes should be automatically expanded when loaded.\n * Set `Infinity` to make all branch nodes expanded by default.\n */\n defaultExpandLevel: {\n type: Number,\n default: 0,\n },\n\n /**\n * The default set of options to show before the user starts searching. Used for async search mode.\n * When set to `true`, the results for search query as a empty string will be autoloaded.\n * @type {boolean|node[]}\n */\n defaultOptions: {\n default: false,\n },\n\n /**\n * Whether pressing delete key removes the last item if there is no text input.\n */\n deleteRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Delimiter to use to join multiple values for the hidden field value.\n */\n delimiter: {\n type: String,\n default: ',',\n },\n\n /**\n * Only show the nodes that match the search value directly, excluding its ancestors.\n *\n * @type {Object}\n */\n flattenSearchResults: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Prevent branch nodes from being selected?\n */\n disableBranchNodes: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the control?\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the fuzzy matching functionality?\n */\n disableFuzzyMatching: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable flat mode or not. Non-flat mode (default) means:\n * - Whenever a branch node gets checked, all its children will be checked too\n * - Whenever a branch node has all children checked, the branch node itself will be checked too\n * Set `true` to disable this mechanism\n */\n flat: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Will be passed with all events as the last param.\n * Useful for identifying events origin.\n */\n instanceId: {\n // Add two trailing \"$\" to distinguish from explictly specified ids.\n default: () => `${instanceId++}$$`,\n type: [ String, Number ],\n },\n\n /**\n * Joins multiple values into a single form field with the `delimiter` (legacy mode).\n */\n joinValues: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Limit the display of selected options.\n * The rest will be hidden within the limitText string.\n */\n limit: {\n type: Number,\n default: Infinity,\n },\n\n /**\n * Function that processes the message shown when selected elements pass the defined limit.\n * @type {function(number): string}\n */\n limitText: {\n type: Function,\n default: function limitTextDefault(count) { // eslint-disable-line func-name-matching\n return `and ${count} more`\n },\n },\n\n /**\n * Text displayed when loading options.\n */\n loadingText: {\n type: String,\n default: 'Loading...',\n },\n\n /**\n * Used for dynamically loading options.\n * @type {function({action: string, callback: (function((Error|string)=): void), parentNode: node=, instanceId}): void}\n */\n loadOptions: {\n type: Function,\n },\n\n /**\n * Which node properties to filter on.\n */\n matchKeys: {\n type: Array,\n default: constant([ 'label' ]),\n },\n\n /**\n * Sets `maxHeight` style value of the menu.\n */\n maxHeight: {\n type: Number,\n default: 300,\n },\n\n /**\n * Set `true` to allow selecting multiple options (a.k.a., multi-select mode).\n */\n multiple: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Generates a hidden tag with this field name for html forms.\n */\n name: {\n type: String,\n },\n\n /**\n * Text displayed when a branch node has no children.\n */\n noChildrenText: {\n type: String,\n default: 'No sub-options.',\n },\n\n /**\n * Text displayed when there are no available options.\n */\n noOptionsText: {\n type: String,\n default: 'No options available.',\n },\n\n /**\n * Text displayed when there are no matching search results.\n */\n noResultsText: {\n type: String,\n default: 'No results found...',\n },\n\n /**\n * Used for normalizing source data.\n * @type {function(node, instanceId): node}\n */\n normalizer: {\n type: Function,\n default: identity,\n },\n\n /**\n * By default (`auto`), the menu will open below the control. If there is not\n * enough space, vue-treeselect will automatically flip the menu.\n * You can use one of other four options to force the menu to be always opened\n * to specified direction.\n * Acceptable values:\n * - `\"auto\"`\n * - `\"below\"`\n * - `\"bottom\"`\n * - `\"above\"`\n * - `\"top\"`\n */\n openDirection: {\n type: String,\n default: 'auto',\n validator(value) {\n const acceptableValues = [ 'auto', 'top', 'bottom', 'above', 'below' ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to automatically open the menu when the control is clicked.\n */\n openOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether to automatically open the menu when the control is focused.\n */\n openOnFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Array of available options.\n * @type {node[]}\n */\n options: {\n type: Array,\n },\n\n /**\n * Field placeholder, displayed when there's no value.\n */\n placeholder: {\n type: String,\n default: 'Select...',\n },\n\n /**\n * Applies HTML5 required attribute when needed.\n */\n required: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text displayed asking user whether to retry loading children options.\n */\n retryText: {\n type: String,\n default: 'Retry?',\n },\n\n /**\n * Title for the retry button.\n */\n retryTitle: {\n type: String,\n default: 'Click to retry',\n },\n\n /**\n * Enable searching feature?\n */\n searchable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Search in ancestor nodes too.\n */\n searchNested: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text tip to prompt for async search.\n */\n searchPromptText: {\n type: String,\n default: 'Type to search...',\n },\n\n showAsGroup: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to show a children count next to the label of each branch node.\n */\n showCount: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Used in conjunction with `showCount` to specify which type of count number should be displayed.\n * Acceptable values:\n * - \"ALL_CHILDREN\"\n * - \"ALL_DESCENDANTS\"\n * - \"LEAF_CHILDREN\"\n * - \"LEAF_DESCENDANTS\"\n */\n showCountOf: {\n type: String,\n default: ALL_CHILDREN,\n validator(value) {\n const acceptableValues = [ ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to show children count when searching.\n * Fallbacks to the value of `showCount` when not specified.\n * @type {boolean}\n */\n showCountOnSearch: null,\n\n /**\n * In which order the selected options should be displayed in trigger & sorted in `value` array.\n * Used for multi-select mode only.\n * Acceptable values:\n * - \"ORDER_SELECTED\"\n * - \"LEVEL\"\n * - \"INDEX\"\n */\n sortValueBy: {\n type: String,\n default: ORDER_SELECTED,\n validator(value) {\n const acceptableValues = [ ORDER_SELECTED, LEVEL, INDEX ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Tab index of the control.\n */\n tabIndex: {\n type: Number,\n default: 0,\n },\n\n /**\n * The value of the control.\n * Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.\n * Its format depends on the `valueFormat` prop.\n * For most cases, just use `v-model` instead.\n * @type {?Array}\n */\n value: null,\n\n /**\n * Which kind of nodes should be included in the `value` array in multi-select mode.\n * Acceptable values:\n * - \"ALL\" - Any node that is checked will be included in the `value` array\n * - \"BRANCH_PRIORITY\" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array\n * - \"LEAF_PRIORITY\" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included\n * - \"ALL_WITH_INDETERMINATE\" - Any node that is checked will be included in the `value` array, plus indeterminate nodes\n */\n valueConsistsOf: {\n type: String,\n default: BRANCH_PRIORITY,\n validator(value) {\n const acceptableValues = [ ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Format of `value` prop.\n * Note that, when set to `\"object\"`, only `id` & `label` properties are required in each `node` object in `value` prop.\n * Acceptable values:\n * - \"id\"\n * - \"object\"\n */\n valueFormat: {\n type: String,\n default: 'id',\n },\n\n /**\n * z-index of the menu.\n */\n zIndex: {\n type: [ Number, String ],\n default: 999,\n },\n },\n\n data() {\n return {\n trigger: {\n // Is the control focused?\n isFocused: false,\n // User entered search query - value of the input.\n searchQuery: '',\n },\n\n menu: {\n // Is the menu opened?\n isOpen: false,\n // Id of current highlighted option.\n current: null,\n // The scroll position before last menu closing.\n lastScrollPosition: 0,\n // Which direction to open the menu.\n placement: 'bottom',\n },\n\n forest: {\n // Normalized options.\n normalizedOptions: [],\n // map for quick look-up.\n nodeMap: createMap(),\n // map, used for multi-select mode.\n checkedStateMap: createMap(),\n // Id list of all selected options.\n selectedNodeIds: this.extractCheckedNodeIdsFromValue(),\n // map for fast checking:\n // if (forest.selectedNodeIds.indexOf(id) !== -1) forest.selectedNodeMap[id] === true\n selectedNodeMap: createMap(),\n },\n\n // States of root options.\n rootOptionsStates: createAsyncOptionsStates(),\n\n localSearch: {\n // Has user entered any query to search local options?\n active: false,\n // Has any options matched the search query?\n noResults: true,\n // map for counting matched children/descendants.\n countMap: createMap(),\n },\n\n // map.\n remoteSearch: createMap(),\n }\n },\n\n computed: {\n /* eslint-disable valid-jsdoc */\n /**\n * Normalized nodes that have been selected.\n * @type {node[]}\n */\n selectedNodes() {\n return this.forest.selectedNodeIds.map(this.getNode)\n },\n /**\n * Id list of selected nodes with `sortValueBy` prop applied.\n * @type {nodeId[]}\n */\n internalValue() {\n let internalValue\n\n // istanbul ignore else\n const valueConsistsOf = this.showAsGroup ? LEAF_PRIORITY : this.valueConsistsOf\n if (this.single || this.flat || this.disableBranchNodes || valueConsistsOf === ALL) {\n internalValue = this.forest.selectedNodeIds.slice()\n } else if (valueConsistsOf === BRANCH_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isRootNode) return true\n return !this.isSelected(node.parentNode)\n })\n } else if (valueConsistsOf === LEAF_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isLeaf) return true\n return node.children.length === 0\n })\n } else if (valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const indeterminateNodeIds = []\n internalValue = this.forest.selectedNodeIds.slice()\n this.selectedNodes.forEach(selectedNode => {\n selectedNode.ancestors.forEach(ancestor => {\n if (includes(indeterminateNodeIds, ancestor.id)) return\n if (includes(internalValue, ancestor.id)) return\n indeterminateNodeIds.push(ancestor.id)\n })\n })\n internalValue.push(...indeterminateNodeIds)\n }\n\n if (this.sortValueBy === LEVEL) {\n internalValue.sort((a, b) => sortValueByLevel(this.getNode(a), this.getNode(b)))\n } else if (this.sortValueBy === INDEX) {\n internalValue.sort((a, b) => sortValueByIndex(this.getNode(a), this.getNode(b)))\n }\n\n return internalValue\n },\n /**\n * Has any option been selected?\n * @type {boolean}\n */\n hasValue() {\n return this.internalValue.length > 0\n },\n /**\n * Single-select mode?\n * @type {boolean}\n */\n single() {\n return !this.multiple\n },\n /**\n * Id list of nodes displayed in the menu. Nodes that are considered NOT visible:\n * - descendants of a collapsed branch node\n * - in local search mode, nodes that are not matched, unless\n * - it's a branch node and has matched descendants\n * - it's a leaf node and its parent node is explicitly set to show all children\n * @type {id[]}\n */\n visibleOptionIds() {\n const visibleOptionIds = []\n\n this.traverseAllNodesByIndex(node => {\n if (!this.localSearch.active || this.shouldOptionBeIncludedInSearchResult(node)) {\n visibleOptionIds.push(node.id)\n }\n // Skip the traversal of descendants of a branch node if it's not expanded.\n if (node.isBranch && !this.shouldExpand(node)) {\n return false\n }\n })\n\n return visibleOptionIds\n },\n /**\n * Has any option should be displayed in the menu?\n * @type {boolean}\n */\n hasVisibleOptions() {\n return this.visibleOptionIds.length !== 0\n },\n /**\n * Should show children count when searching?\n * @type {boolean}\n */\n showCountOnSearchComputed() {\n // Vue doesn't allow setting default prop value based on another prop value.\n // So use computed property as a workaround.\n // https://github.com/vuejs/vue/issues/6358\n return typeof this.showCountOnSearch === 'boolean'\n ? this.showCountOnSearch\n : this.showCount\n },\n /**\n * Is there any branch node?\n * @type {boolean}\n */\n hasBranchNodes() {\n return this.forest.normalizedOptions.some(rootNode => rootNode.isBranch)\n },\n shouldFlattenOptions() {\n return this.localSearch.active && this.flattenSearchResults\n },\n /* eslint-enable valid-jsdoc */\n },\n\n watch: {\n alwaysOpen(newValue) {\n if (newValue) this.openMenu()\n else this.closeMenu()\n },\n\n branchNodesFirst() {\n this.initialize()\n },\n\n disabled(newValue) {\n // force close the menu after disabling the control\n if (newValue && this.menu.isOpen) this.closeMenu()\n else if (!newValue && !this.menu.isOpen && this.alwaysOpen) this.openMenu()\n },\n\n flat() {\n this.initialize()\n },\n\n internalValue(newValue, oldValue) {\n const hasChanged = quickDiff(newValue, oldValue)\n // #122\n // Vue would trigger this watcher when `newValue` and `oldValue` are shallow-equal.\n // We emit the `input` event only when the value actually changes.\n if (hasChanged) this.$emit('input', this.getValue(), this.getInstanceId())\n },\n\n matchKeys() {\n this.initialize()\n },\n\n multiple(newValue) {\n // We need to rebuild the state when switching from single-select mode\n // to multi-select mode.\n // istanbul ignore else\n if (newValue) this.buildForestState()\n },\n\n options: {\n handler() {\n if (this.async) return\n // Re-initialize options when the `options` prop has changed.\n this.initialize()\n this.rootOptionsStates.isLoaded = Array.isArray(this.options)\n },\n deep: true,\n immediate: true,\n },\n\n 'trigger.searchQuery'() {\n if (this.async) {\n this.handleRemoteSearch()\n } else {\n this.handleLocalSearch()\n }\n\n this.$emit('search-change', this.trigger.searchQuery, this.getInstanceId())\n },\n\n value() {\n const nodeIdsFromValue = this.extractCheckedNodeIdsFromValue()\n const hasChanged = quickDiff(nodeIdsFromValue, this.internalValue)\n if (hasChanged) this.fixSelectedNodeIds(nodeIdsFromValue)\n },\n },\n\n methods: {\n verifyProps() {\n warning(\n () => this.async ? this.searchable : true,\n () => 'For async search mode, the value of \"searchable\" prop must be true.',\n )\n\n if (this.options == null && !this.loadOptions) {\n warning(\n () => false,\n () => 'Are you meant to dynamically load options? You need to use \"loadOptions\" prop.',\n )\n }\n\n if (this.flat) {\n warning(\n () => this.multiple,\n () => 'You are using flat mode. But you forgot to add \"multiple=true\"?',\n )\n }\n\n if (!this.flat) {\n const propNames = [\n 'autoSelectAncestors',\n 'autoSelectDescendants',\n 'autoDeselectAncestors',\n 'autoDeselectDescendants',\n ]\n\n propNames.forEach(propName => {\n warning(\n () => !this[propName],\n () => `\"${propName}\" only applies to flat mode.`,\n )\n })\n }\n },\n\n resetFlags() {\n this._blurOnSelect = false\n },\n\n initialize() {\n const options = this.async\n ? this.getRemoteSearchEntry().options\n : this.options\n\n if (Array.isArray(options)) {\n // In case we are re-initializing options, keep the old state tree temporarily.\n const prevNodeMap = this.forest.nodeMap\n this.forest.nodeMap = createMap()\n this.keepDataOfSelectedNodes(prevNodeMap)\n this.forest.normalizedOptions = this.normalize(NO_PARENT_NODE, options, prevNodeMap)\n // Cases that need fixing `selectedNodeIds`:\n // 1) Children options of a checked node have been delayed loaded,\n // we should also mark these children as checked. (multi-select mode)\n // 2) Root options have been delayed loaded, we need to initialize states\n // of these nodes. (multi-select mode)\n // 3) Async search mode.\n this.fixSelectedNodeIds(this.internalValue)\n } else {\n this.forest.normalizedOptions = []\n }\n },\n\n getInstanceId() {\n return this.instanceId == null ? this.id : this.instanceId\n },\n\n getValue() {\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.internalValue.slice()\n : this.internalValue[0]\n }\n\n const rawNodes = this.internalValue.map(id => this.getNode(id).raw)\n return this.multiple ? rawNodes : rawNodes[0]\n },\n\n getNode(nodeId) {\n warning(\n () => nodeId != null,\n () => `Invalid node id: ${nodeId}`,\n )\n\n if (nodeId == null) return null\n\n return nodeId in this.forest.nodeMap\n ? this.forest.nodeMap[nodeId]\n : this.createFallbackNode(nodeId)\n },\n\n createFallbackNode(id) {\n // In case there is a default selected node that is not loaded into the tree yet,\n // we create a fallback node to keep the component working.\n // When the real data is loaded, we'll override this fake node.\n\n const raw = this.extractNodeFromValue(id)\n const label = this.enhancedNormalizer(raw).label || `${id} (unknown)`\n const fallbackNode = {\n id,\n label,\n ancestors: [],\n parentNode: NO_PARENT_NODE,\n isFallbackNode: true,\n isRootNode: true,\n isLeaf: true,\n isBranch: false,\n isDisabled: false,\n isNew: false,\n index: [ -1 ],\n level: 0,\n raw,\n }\n\n return this.$set(this.forest.nodeMap, id, fallbackNode)\n },\n\n extractCheckedNodeIdsFromValue() {\n if (this.value == null) return []\n\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.value.slice()\n : [ this.value ]\n }\n\n return (this.multiple ? this.value : [ this.value ])\n .map(node => this.enhancedNormalizer(node))\n .map(node => node.id)\n },\n\n extractNodeFromValue(id) {\n const defaultNode = { id }\n\n if (this.valueFormat === 'id') {\n return defaultNode\n }\n\n const valueArray = this.multiple\n ? Array.isArray(this.value) ? this.value : []\n : this.value ? [ this.value ] : []\n const matched = find(\n valueArray,\n node => node && this.enhancedNormalizer(node).id === id,\n )\n\n return matched || defaultNode\n },\n\n fixSelectedNodeIds(nodeIdListOfPrevValue) {\n let nextSelectedNodeIds = []\n\n // istanbul ignore else\n if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === ALL) {\n nextSelectedNodeIds = nodeIdListOfPrevValue\n } else if (this.valueConsistsOf === BRANCH_PRIORITY) {\n nodeIdListOfPrevValue.forEach(nodeId => {\n nextSelectedNodeIds.push(nodeId)\n const node = this.getNode(nodeId)\n if (node.isBranch) this.traverseDescendantsBFS(node, descendant => {\n nextSelectedNodeIds.push(descendant.id)\n })\n })\n } else if (this.valueConsistsOf === LEAF_PRIORITY) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.slice()\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n } else if (this.valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.filter(nodeId => {\n const node = this.getNode(nodeId)\n return node.isLeaf || node.children.length === 0\n })\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n }\n\n const hasChanged = quickDiff(this.forest.selectedNodeIds, nextSelectedNodeIds)\n // If `nextSelectedNodeIds` doesn't actually differ from old `selectedNodeIds`,\n // we don't make the assignment to avoid triggering its watchers which may cause\n // unnecessary calculations.\n if (hasChanged) this.forest.selectedNodeIds = nextSelectedNodeIds\n\n this.buildForestState()\n },\n\n keepDataOfSelectedNodes(prevNodeMap) {\n // In case there is any selected node that is not present in the new `options` array.\n // It could be useful for async search mode.\n this.forest.selectedNodeIds.forEach(id => {\n if (!prevNodeMap[id]) return\n const node = {\n ...prevNodeMap[id],\n isFallbackNode: true,\n }\n this.$set(this.forest.nodeMap, id, node)\n })\n },\n\n isSelected(node) {\n // whether a node is selected (single-select mode) or fully-checked (multi-select mode)\n return this.forest.selectedNodeMap[node.id] === true\n },\n\n traverseDescendantsBFS(parentNode, callback) {\n // istanbul ignore if\n if (!parentNode.isBranch) return\n const queue = parentNode.children.slice()\n while (queue.length) {\n const currNode = queue[0]\n if (currNode.isBranch) queue.push(...currNode.children)\n callback(currNode)\n queue.shift()\n }\n },\n\n traverseDescendantsDFS(parentNode, callback) {\n if (!parentNode.isBranch) return\n parentNode.children.forEach(child => {\n // deep-level node first\n this.traverseDescendantsDFS(child, callback)\n callback(child)\n })\n },\n\n traverseAllNodesDFS(callback) {\n this.forest.normalizedOptions.forEach(rootNode => {\n // deep-level node first\n this.traverseDescendantsDFS(rootNode, callback)\n callback(rootNode)\n })\n },\n\n traverseAllNodesByIndex(callback) {\n const walk = parentNode => {\n parentNode.children.forEach(child => {\n if (callback(child) !== false && child.isBranch) {\n walk(child)\n }\n })\n }\n\n // To simplify the code logic of traversal,\n // we create a fake root node that holds all the root options.\n walk({ children: this.forest.normalizedOptions })\n },\n\n toggleClickOutsideEvent(enabled) {\n if (enabled) {\n document.addEventListener('mousedown', this.handleClickOutside, false)\n } else {\n document.removeEventListener('mousedown', this.handleClickOutside, false)\n }\n },\n\n getValueContainer() {\n if (!this.$refs || !this.$refs.control || !this.$refs.control.$refs) {\n return null\n }\n return this.$refs.control.$refs['value-container']\n },\n\n getInput() {\n return this.getValueContainer().$refs.input\n },\n\n focusInput() {\n this.getInput().focus()\n },\n\n blurInput() {\n this.getInput().blur()\n },\n\n handleMouseDown: onLeftClick(function handleMouseDown(evt) {\n evt.preventDefault()\n evt.stopPropagation()\n\n if (this.disabled || !this.getValueContainer()) return\n\n const isClickedOnValueContainer = this.getValueContainer().$el.contains(evt.target)\n if (isClickedOnValueContainer && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused)) {\n this.openMenu()\n }\n\n if (this._blurOnSelect) {\n this.blurInput()\n } else {\n // Focus the input or prevent blurring.\n this.focusInput()\n }\n\n this.resetFlags()\n }),\n\n handleClickOutside(evt) {\n // istanbul ignore else\n if (this.$refs.wrapper && !this.$refs.wrapper.contains(evt.target)) {\n this.blurInput()\n this.closeMenu()\n }\n },\n\n handleLocalSearch() {\n const { searchQuery } = this.trigger\n const done = () => this.resetHighlightedOptionWhenNecessary(true)\n\n if (!searchQuery) {\n // Exit sync search mode.\n this.localSearch.active = false\n return done()\n }\n\n // Enter sync search mode.\n this.localSearch.active = true\n\n // Reset states.\n this.localSearch.noResults = true\n this.traverseAllNodesDFS(node => {\n if (node.isBranch) {\n node.isExpandedOnSearch = false\n node.showAllChildrenOnSearch = false\n node.isMatched = false\n node.hasMatchedDescendants = false\n this.$set(this.localSearch.countMap, node.id, {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n }\n })\n\n const lowerCasedSearchQuery = searchQuery.trim().toLocaleLowerCase()\n const splitSearchQuery = lowerCasedSearchQuery.replace(/\\s+/g, ' ').split(' ')\n this.traverseAllNodesDFS(node => {\n if (this.searchNested && splitSearchQuery.length > 1) {\n node.isMatched = splitSearchQuery.every(filterValue =>\n match(false, filterValue, node.nestedSearchLabel),\n )\n } else {\n node.isMatched = this.matchKeys.some(matchKey =>\n match(!this.disableFuzzyMatching, lowerCasedSearchQuery, node.lowerCased[matchKey]),\n )\n }\n\n if (node.isMatched) {\n this.localSearch.noResults = false\n node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][ALL_DESCENDANTS]++)\n if (node.isLeaf) node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][LEAF_DESCENDANTS]++)\n if (node.parentNode !== NO_PARENT_NODE) {\n this.localSearch.countMap[node.parentNode.id][ALL_CHILDREN] += 1\n // istanbul ignore else\n if (node.isLeaf) this.localSearch.countMap[node.parentNode.id][LEAF_CHILDREN] += 1\n }\n }\n\n if (\n (node.isMatched || (node.isBranch && node.isExpandedOnSearch)) &&\n node.parentNode !== NO_PARENT_NODE\n ) {\n node.parentNode.isExpandedOnSearch = true\n node.parentNode.hasMatchedDescendants = true\n }\n })\n\n done()\n },\n\n handleRemoteSearch() {\n const { searchQuery } = this.trigger\n const entry = this.getRemoteSearchEntry()\n const done = () => {\n this.initialize()\n this.resetHighlightedOptionWhenNecessary(true)\n }\n\n if ((searchQuery === '' || this.cacheOptions) && entry.isLoaded) {\n return done()\n }\n\n this.callLoadOptionsProp({\n action: ASYNC_SEARCH,\n args: { searchQuery },\n isPending() {\n return entry.isLoading\n },\n start: () => {\n entry.isLoading = true\n entry.isLoaded = false\n entry.loadingError = ''\n },\n succeed: options => {\n entry.isLoaded = true\n entry.options = options\n // When the request completes, the search query may have changed.\n // We only show these options if they are for the current search query.\n if (this.trigger.searchQuery === searchQuery) done()\n },\n fail: err => {\n entry.loadingError = getErrorMessage(err)\n },\n end: () => {\n entry.isLoading = false\n },\n })\n },\n\n getRemoteSearchEntry() {\n const { searchQuery } = this.trigger\n const entry = this.remoteSearch[searchQuery] || {\n ...createAsyncOptionsStates(),\n options: [],\n }\n\n // Vue doesn't support directly watching on objects.\n this.$watch(\n () => entry.options,\n () => {\n // TODO: potential redundant re-initialization.\n if (this.trigger.searchQuery === searchQuery) this.initialize()\n },\n { deep: true },\n )\n\n if (searchQuery === '') {\n if (Array.isArray(this.defaultOptions)) {\n entry.options = this.defaultOptions\n entry.isLoaded = true\n return entry\n } else if (this.defaultOptions !== true) {\n entry.isLoaded = true\n return entry\n }\n }\n\n if (!this.remoteSearch[searchQuery]) {\n this.$set(this.remoteSearch, searchQuery, entry)\n }\n\n return entry\n },\n\n shouldExpand(node) {\n return this.localSearch.active ? node.isExpandedOnSearch : node.isExpanded\n },\n\n shouldOptionBeIncludedInSearchResult(node) {\n // 1) This option is matched.\n if (node.isMatched) return true\n // 2) This option is not matched, but has matched descendant(s).\n if (node.isBranch && node.hasMatchedDescendants && !this.flattenSearchResults) return true\n // 3) This option's parent has no matched descendants,\n // but after being expanded, all its children should be shown.\n if (!node.isRootNode && node.parentNode.showAllChildrenOnSearch) return true\n // 4) The default case.\n return false\n },\n\n shouldShowOptionInMenu(node) {\n if (this.localSearch.active && !this.shouldOptionBeIncludedInSearchResult(node)) {\n return false\n }\n return true\n },\n\n getControl() {\n return this.$refs.control.$el\n },\n\n getMenu() {\n const ref = this.appendToBody ? this.$refs.portal.portalTarget : this\n const $menu = ref.$refs.menu.$refs.menu\n return $menu && $menu.nodeName !== '#comment' ? $menu : null\n },\n\n setCurrentHighlightedOption(node, scroll = true) {\n const prev = this.menu.current\n if (prev != null && prev in this.forest.nodeMap) {\n this.forest.nodeMap[prev].isHighlighted = false\n }\n\n this.menu.current = node.id\n node.isHighlighted = true\n\n if (this.menu.isOpen && scroll) {\n const scrollToOption = () => {\n const nodeId = node.id.toString().replace(/\"/g, '\\\\\"')\n const $menu = this.getMenu()\n const $option = $menu.querySelector(`.vue-treeselect__option[data-id=\"${nodeId}\"]`)\n if ($option) scrollIntoView($menu, $option)\n }\n\n // In case `openMenu()` is just called and the menu is not rendered yet.\n if (this.getMenu()) {\n scrollToOption()\n } else {\n // istanbul ignore next\n this.$nextTick(scrollToOption)\n }\n }\n },\n\n resetHighlightedOptionWhenNecessary(forceReset = false) {\n const { current } = this.menu\n\n if (\n forceReset || current == null ||\n !(current in this.forest.nodeMap) ||\n !this.shouldShowOptionInMenu(this.getNode(current))\n ) {\n this.highlightFirstOption()\n }\n },\n\n highlightFirstOption() {\n if (!this.hasVisibleOptions) return\n\n const first = this.visibleOptionIds[0]\n this.setCurrentHighlightedOption(this.getNode(first))\n },\n\n highlightPrevOption() {\n if (!this.hasVisibleOptions) return\n\n const prev = this.visibleOptionIds.indexOf(this.menu.current) - 1\n if (prev === -1) return this.highlightLastOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[prev]))\n },\n\n highlightNextOption() {\n if (!this.hasVisibleOptions) return\n\n const next = this.visibleOptionIds.indexOf(this.menu.current) + 1\n if (next === this.visibleOptionIds.length) return this.highlightFirstOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[next]))\n },\n\n highlightLastOption() {\n if (!this.hasVisibleOptions) return\n\n const last = getLast(this.visibleOptionIds)\n this.setCurrentHighlightedOption(this.getNode(last))\n },\n\n resetSearchQuery() {\n this.trigger.searchQuery = ''\n },\n\n closeMenu() {\n if (!this.menu.isOpen || (!this.disabled && this.alwaysOpen)) return\n this.saveMenuScrollPosition()\n this.menu.isOpen = false\n this.toggleClickOutsideEvent(false)\n this.resetSearchQuery()\n this.$emit('close', this.getValue(), this.getInstanceId())\n },\n\n openMenu() {\n if (this.disabled || this.menu.isOpen) return\n this.menu.isOpen = true\n this.$nextTick(this.resetHighlightedOptionWhenNecessary)\n this.$nextTick(this.restoreMenuScrollPosition)\n if (!this.options && !this.async) this.loadRootOptions()\n this.toggleClickOutsideEvent(true)\n this.$emit('open', this.getInstanceId())\n },\n\n toggleMenu() {\n if (this.menu.isOpen) {\n this.closeMenu()\n } else {\n this.openMenu()\n }\n },\n\n toggleExpanded(node) {\n let nextState\n\n if (this.localSearch.active) {\n nextState = node.isExpandedOnSearch = !node.isExpandedOnSearch\n if (nextState) node.showAllChildrenOnSearch = true\n } else {\n nextState = node.isExpanded = !node.isExpanded\n }\n\n if (nextState && !node.childrenStates.isLoaded) {\n this.loadChildrenOptions(node)\n }\n },\n\n buildForestState() {\n const selectedNodeMap = createMap()\n this.forest.selectedNodeIds.forEach(selectedNodeId => {\n selectedNodeMap[selectedNodeId] = true\n })\n this.forest.selectedNodeMap = selectedNodeMap\n\n const checkedStateMap = createMap()\n if (this.multiple) {\n this.traverseAllNodesByIndex(node => {\n checkedStateMap[node.id] = UNCHECKED\n })\n\n this.selectedNodes.forEach(selectedNode => {\n checkedStateMap[selectedNode.id] = CHECKED\n\n if (!this.flat && !this.disableBranchNodes) {\n selectedNode.ancestors.forEach(ancestorNode => {\n if (!this.isSelected(ancestorNode)) {\n checkedStateMap[ancestorNode.id] = INDETERMINATE\n }\n })\n }\n })\n }\n this.forest.checkedStateMap = checkedStateMap\n },\n\n enhancedNormalizer(raw) {\n return {\n ...raw,\n ...this.normalizer(raw, this.getInstanceId()),\n }\n },\n\n normalize(parentNode, nodes, prevNodeMap) {\n let normalizedOptions = nodes\n .map(node => [ this.enhancedNormalizer(node), node ])\n .map(([ node, raw ], index) => {\n this.checkDuplication(node)\n this.verifyNodeShape(node)\n\n const id = node.id !== undefined ? node.id : Math.round(Math.random() * 1000000)\n const { label, children, isDefaultExpanded } = node\n const isRootNode = parentNode === NO_PARENT_NODE\n const level = isRootNode || this.showAsGroup ? 0 : parentNode.level + 1\n const isBranch = Array.isArray(children) || children === null\n const isLeaf = !isBranch\n const isDisabled = !!node.isDisabled || (!this.flat && !isRootNode && parentNode.isDisabled)\n const isNew = !!node.isNew\n const lowerCased = this.matchKeys.reduce((prev, key) => ({\n ...prev,\n [key]: stringifyOptionPropValue(node[key]).toLocaleLowerCase(),\n }), {})\n const nestedSearchLabel = isRootNode\n ? lowerCased.label\n : parentNode.nestedSearchLabel + ' ' + lowerCased.label\n\n const normalized = this.$set(this.forest.nodeMap, id, createMap())\n this.$set(normalized, 'id', id)\n this.$set(normalized, 'label', label)\n this.$set(normalized, 'level', level)\n this.$set(normalized, 'ancestors', isRootNode ? [] : [ parentNode ].concat(parentNode.ancestors))\n this.$set(normalized, 'index', (isRootNode ? [] : parentNode.index).concat(index))\n this.$set(normalized, 'parentNode', parentNode)\n this.$set(normalized, 'lowerCased', lowerCased)\n this.$set(normalized, 'nestedSearchLabel', nestedSearchLabel)\n this.$set(normalized, 'isDisabled', isDisabled)\n this.$set(normalized, 'isNew', isNew)\n this.$set(normalized, 'isMatched', false)\n this.$set(normalized, 'isHighlighted', false)\n this.$set(normalized, 'isBranch', isBranch)\n this.$set(normalized, 'isGroup', isBranch && this.showAsGroup)\n this.$set(normalized, 'isLeaf', isLeaf)\n this.$set(normalized, 'isRootNode', isRootNode)\n this.$set(normalized, 'raw', raw)\n\n if (isBranch) {\n const isLoaded = Array.isArray(children)\n\n this.$set(normalized, 'childrenStates', {\n ...createAsyncOptionsStates(),\n isLoaded,\n })\n this.$set(normalized, 'isExpanded', this.showAsGroup ? this.showAsGroup : typeof isDefaultExpanded === 'boolean'\n ? isDefaultExpanded\n : level < this.defaultExpandLevel)\n this.$set(normalized, 'hasMatchedDescendants', false)\n this.$set(normalized, 'hasDisabledDescendants', false)\n this.$set(normalized, 'isExpandedOnSearch', false)\n this.$set(normalized, 'showAllChildrenOnSearch', false)\n this.$set(normalized, 'count', {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n this.$set(normalized, 'children', isLoaded\n ? this.normalize(normalized, children, prevNodeMap)\n : [])\n\n if (isDefaultExpanded === true) normalized.ancestors.forEach(ancestor => {\n ancestor.isExpanded = true\n })\n\n if (!isLoaded && typeof this.loadOptions !== 'function') {\n warning(\n () => false,\n () => 'Unloaded branch node detected. \"loadOptions\" prop is required to load its children.',\n )\n } else if (!isLoaded && normalized.isExpanded) {\n this.loadChildrenOptions(normalized)\n }\n }\n\n normalized.ancestors.forEach(ancestor => ancestor.count[ALL_DESCENDANTS]++)\n if (isLeaf) normalized.ancestors.forEach(ancestor => ancestor.count[LEAF_DESCENDANTS]++)\n if (!isRootNode) {\n parentNode.count[ALL_CHILDREN] += 1\n if (isLeaf) parentNode.count[LEAF_CHILDREN] += 1\n if (isDisabled) parentNode.hasDisabledDescendants = true\n }\n\n // Preserve previous states.\n if (prevNodeMap && prevNodeMap[id]) {\n const prev = prevNodeMap[id]\n\n normalized.isMatched = prev.isMatched\n normalized.showAllChildrenOnSearch = prev.showAllChildrenOnSearch\n normalized.isHighlighted = prev.isHighlighted\n\n if (prev.isBranch && normalized.isBranch) {\n normalized.isExpanded = prev.isExpanded\n normalized.isExpandedOnSearch = prev.isExpandedOnSearch\n // #97\n // If `isLoaded` was true, but IS NOT now, we consider this branch node\n // to be reset to unloaded state by the user of this component.\n if (prev.childrenStates.isLoaded && !normalized.childrenStates.isLoaded) {\n // Make sure the node is collapsed, then the user can load its\n // children again (by expanding).\n normalized.isExpanded = false\n // We have reset `childrenStates` and don't want to preserve states here.\n } else {\n normalized.childrenStates = { ...prev.childrenStates }\n }\n }\n }\n\n return normalized\n })\n\n if (this.branchNodesFirst) {\n const branchNodes = normalizedOptions.filter(option => option.isBranch)\n const leafNodes = normalizedOptions.filter(option => option.isLeaf)\n normalizedOptions = branchNodes.concat(leafNodes)\n }\n\n return normalizedOptions\n },\n\n loadRootOptions() {\n this.callLoadOptionsProp({\n action: LOAD_ROOT_OPTIONS,\n isPending: () => {\n return this.rootOptionsStates.isLoading\n },\n start: () => {\n this.rootOptionsStates.isLoading = true\n this.rootOptionsStates.loadingError = ''\n },\n succeed: () => {\n this.rootOptionsStates.isLoaded = true\n // Wait for `options` being re-initialized.\n this.$nextTick(() => {\n this.resetHighlightedOptionWhenNecessary(true)\n })\n },\n fail: err => {\n this.rootOptionsStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.rootOptionsStates.isLoading = false\n },\n })\n },\n\n loadChildrenOptions(parentNode) {\n // The options may be re-initialized anytime during the loading process.\n // So `parentNode` can be stale and we use `getNode()` to avoid that.\n\n const { id, raw } = parentNode\n\n this.callLoadOptionsProp({\n action: LOAD_CHILDREN_OPTIONS,\n args: {\n // We always pass the raw node instead of the normalized node to any\n // callback provided by the user of this component.\n // Because the shape of the raw node is more likely to be closing to\n // what the back-end API service of the application needs.\n parentNode: raw,\n },\n isPending: () => {\n return this.getNode(id).childrenStates.isLoading\n },\n start: () => {\n this.getNode(id).childrenStates.isLoading = true\n this.getNode(id).childrenStates.loadingError = ''\n },\n succeed: () => {\n this.getNode(id).childrenStates.isLoaded = true\n },\n fail: err => {\n this.getNode(id).childrenStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.getNode(id).childrenStates.isLoading = false\n },\n })\n },\n\n callLoadOptionsProp({ action, args, isPending, start, succeed, fail, end }) {\n if (!this.loadOptions || isPending()) {\n return\n }\n\n start()\n\n const callback = once((err, result) => {\n if (err) {\n fail(err)\n } else {\n succeed(result)\n }\n\n end()\n })\n const result = this.loadOptions({\n id: this.getInstanceId(),\n instanceId: this.getInstanceId(),\n action,\n ...args,\n callback,\n })\n\n if (isPromise(result)) {\n result.then(() => {\n callback()\n }, err => {\n callback(err)\n }).catch(err => {\n // istanbul ignore next\n console.error(err)\n })\n }\n },\n\n checkDuplication(node) {\n warning(\n () => !((node.id in this.forest.nodeMap) && !this.forest.nodeMap[node.id].isFallbackNode),\n () => `Detected duplicate presence of node id ${JSON.stringify(node.id)}. ` +\n `Their labels are \"${this.forest.nodeMap[node.id].label}\" and \"${node.label}\" respectively.`,\n )\n },\n\n verifyNodeShape(node) {\n warning(\n () => !(node.children === undefined && node.isBranch === true),\n () => 'Are you meant to declare an unloaded branch node? ' +\n '`isBranch: true` is no longer supported, please use `children: null` instead.',\n )\n },\n\n select(node) {\n if (this.disabled || node.isDisabled) {\n return\n }\n\n if (this.single) {\n this.clear()\n }\n\n const nextState = this.multiple && !this.flat\n ? this.forest.checkedStateMap[node.id] === UNCHECKED\n : !this.isSelected(node)\n\n if (nextState) {\n this._selectNode(node)\n } else {\n this._deselectNode(node)\n }\n\n this.buildForestState()\n\n if (nextState) {\n this.$emit('select', node.raw, this.getInstanceId())\n } else {\n this.$emit('deselect', node.raw, this.getInstanceId())\n }\n\n if (this.localSearch.active && nextState && (this.single || this.clearOnSelect)) {\n this.resetSearchQuery()\n }\n\n if (this.single && this.closeOnSelect) {\n this.closeMenu()\n\n // istanbul ignore else\n if (this.searchable) {\n this._blurOnSelect = true\n }\n }\n },\n\n clear() {\n if (this.hasValue) {\n if (this.single || this.allowClearingDisabled) {\n this.forest.selectedNodeIds = []\n } else /* if (this.multiple && !this.allowClearingDisabled) */ {\n this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter(nodeId =>\n this.getNode(nodeId).isDisabled,\n )\n }\n\n this.buildForestState()\n }\n },\n\n // This is meant to be called only by `select()`.\n _selectNode(node) {\n if (this.single || this.disableBranchNodes) {\n return this.addValue(node)\n }\n\n if (this.flat) {\n this.addValue(node)\n\n if (this.autoSelectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (!this.isSelected(ancestor) && !ancestor.isDisabled) this.addValue(ancestor)\n })\n } else if (this.autoSelectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!this.isSelected(descendant) && !descendant.isDisabled) this.addValue(descendant)\n })\n }\n\n return\n }\n\n const isFullyChecked = (\n node.isLeaf ||\n (/* node.isBranch && */!node.hasDisabledDescendants) ||\n (/* node.isBranch && */this.allowSelectingDisabledDescendants)\n )\n if (isFullyChecked) {\n this.addValue(node)\n }\n\n if (node.isBranch) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.addValue(descendant)\n }\n })\n }\n\n if (isFullyChecked) {\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (curr.children.every(this.isSelected)) this.addValue(curr)\n else break\n }\n }\n },\n\n // This is meant to be called only by `select()`.\n _deselectNode(node) {\n if (this.disableBranchNodes) {\n return this.removeValue(node)\n }\n\n if (this.flat) {\n this.removeValue(node)\n\n if (this.autoDeselectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (this.isSelected(ancestor) && !ancestor.isDisabled) this.removeValue(ancestor)\n })\n } else if (this.autoDeselectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (this.isSelected(descendant) && !descendant.isDisabled) this.removeValue(descendant)\n })\n }\n\n return\n }\n\n let hasUncheckedSomeDescendants = false\n if (node.isBranch) {\n this.traverseDescendantsDFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.removeValue(descendant)\n hasUncheckedSomeDescendants = true\n }\n })\n }\n\n if (\n node.isLeaf ||\n /* node.isBranch && */hasUncheckedSomeDescendants ||\n /* node.isBranch && */node.children.length === 0\n ) {\n this.removeValue(node)\n\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (this.isSelected(curr)) this.removeValue(curr)\n else break\n }\n }\n },\n\n addValue(node) {\n this.forest.selectedNodeIds.push(node.id)\n this.forest.selectedNodeMap[node.id] = true\n },\n\n removeValue(node) {\n removeFromArray(this.forest.selectedNodeIds, node.id)\n delete this.forest.selectedNodeMap[node.id]\n },\n\n removeLastValue() {\n if (!this.hasValue) return\n if (this.single) return this.clear()\n const lastValue = getLast(this.internalValue)\n const lastSelectedNode = this.getNode(lastValue)\n this.select(lastSelectedNode) // deselect\n },\n\n saveMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) this.menu.lastScrollPosition = $menu.scrollTop\n },\n\n restoreMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) $menu.scrollTop = this.menu.lastScrollPosition\n },\n },\n\n created() {\n this.verifyProps()\n this.resetFlags()\n },\n\n mounted() {\n if (this.autoFocus) this.focusInput()\n if (!this.options && !this.async && this.autoLoadRootOptions) this.loadRootOptions()\n if (this.alwaysOpen) this.openMenu()\n if (this.async && this.defaultOptions) this.handleRemoteSearch()\n },\n\n destroyed() {\n // istanbul ignore next\n this.toggleClickOutsideEvent(false)\n },\n}\n","\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render, staticRenderFns\nimport script from \"./HiddenFields.vue?vue&type=script&lang=js\"\nexport * from \"./HiddenFields.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Input.vue?vue&type=script&lang=js\"\nexport * from \"./Input.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Placeholder.vue?vue&type=script&lang=js\"\nexport * from \"./Placeholder.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./SingleValue.vue?vue&type=script&lang=js\"\nexport * from \"./SingleValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 348.333 348.333\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import { render, staticRenderFns } from \"./Delete.vue?vue&type=template&id=12b4a02e\"\nimport script from \"./Delete.vue?vue&type=script&lang=js\"\nexport * from \"./Delete.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./MultiValueItem.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValueItem.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./MultiValue.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 292.362 292.362\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","\n","import { render, staticRenderFns } from \"./Arrow.vue?vue&type=template&id=5d5151cb\"\nimport script from \"./Arrow.vue?vue&type=script&lang=js\"\nexport * from \"./Arrow.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Control.vue?vue&type=script&lang=js\"\nexport * from \"./Control.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Tip.vue?vue&type=script&lang=js\"\nexport * from \"./Tip.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Option.vue?vue&type=script&lang=js\"\nexport * from \"./Option.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Menu.vue?vue&type=script&lang=js\"\nexport * from \"./Menu.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./MenuPortal.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPortal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Treeselect.vue?vue&type=script&lang=js\"\nexport * from \"./Treeselect.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","import Treeselect from './components/Treeselect'\nimport treeselectMixin from './mixins/treeselectMixin'\nimport './style.less'\n\nexport default Treeselect\nexport { Treeselect, treeselectMixin }\nexport {\n // Delayed loading.\n LOAD_ROOT_OPTIONS,\n LOAD_CHILDREN_OPTIONS,\n ASYNC_SEARCH,\n} from './constants'\n\nexport const VERSION = PKG_VERSION\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://VueTreeselect/webpack/universalModuleDefinition","webpack://VueTreeselect/webpack/bootstrap","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/typeof.js","webpack://VueTreeselect/./node_modules/babel-helper-vue-jsx-merge-props/index.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack://VueTreeselect/./node_modules/lodash/noop.js","webpack://VueTreeselect/./node_modules/lodash/debounce.js","webpack://VueTreeselect/./node_modules/lodash/isObject.js","webpack://VueTreeselect/./node_modules/lodash/_root.js","webpack://VueTreeselect/./node_modules/lodash/toNumber.js","webpack://VueTreeselect/./node_modules/lodash/_Symbol.js","webpack://VueTreeselect/./node_modules/is-promise/index.js","webpack://VueTreeselect/./node_modules/lodash/once.js","webpack://VueTreeselect/./node_modules/lodash/identity.js","webpack://VueTreeselect/./node_modules/lodash/constant.js","webpack://VueTreeselect/./node_modules/lodash/last.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://VueTreeselect/./node_modules/fuzzysearch/index.js","webpack://VueTreeselect/external \"Vue\"","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/toPropertyKey.js","webpack://VueTreeselect/./node_modules/@babel/runtime/helpers/toPrimitive.js","webpack://VueTreeselect/./node_modules/lodash/now.js","webpack://VueTreeselect/./node_modules/lodash/_freeGlobal.js","webpack://VueTreeselect/(webpack)/buildin/global.js","webpack://VueTreeselect/./node_modules/lodash/_baseTrim.js","webpack://VueTreeselect/./node_modules/lodash/_trimmedEndIndex.js","webpack://VueTreeselect/./node_modules/lodash/isSymbol.js","webpack://VueTreeselect/./node_modules/lodash/_baseGetTag.js","webpack://VueTreeselect/./node_modules/lodash/_getRawTag.js","webpack://VueTreeselect/./node_modules/lodash/_objectToString.js","webpack://VueTreeselect/./node_modules/lodash/isObjectLike.js","webpack://VueTreeselect/./node_modules/lodash/before.js","webpack://VueTreeselect/./node_modules/lodash/toInteger.js","webpack://VueTreeselect/./node_modules/lodash/toFinite.js","webpack://VueTreeselect/./src/utils/warning.js","webpack://VueTreeselect/./src/utils/onLeftClick.js","webpack://VueTreeselect/./src/utils/scrollIntoView.js","webpack://VueTreeselect/./src/utils/watchSize.js","webpack://VueTreeselect/./node_modules/watch-size/index.es.mjs","webpack://VueTreeselect/./src/utils/removeFromArray.js","webpack://VueTreeselect/./src/utils/setupResizeAndScrollEventListeners.js","webpack://VueTreeselect/./src/utils/isNaN.js","webpack://VueTreeselect/./src/utils/createMap.js","webpack://VueTreeselect/./src/utils/deepExtend.js","webpack://VueTreeselect/./src/utils/includes.js","webpack://VueTreeselect/./src/utils/find.js","webpack://VueTreeselect/./src/utils/quickDiff.js","webpack://VueTreeselect/./src/constants.js","webpack://VueTreeselect/./src/mixins/treeselectMixin.js","webpack://VueTreeselect/src/components/HiddenFields.vue","webpack://VueTreeselect/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VueTreeselect/./src/components/HiddenFields.vue","webpack://VueTreeselect/src/components/Input.vue","webpack://VueTreeselect/./src/components/Input.vue","webpack://VueTreeselect/./src/components/Placeholder.vue","webpack://VueTreeselect/src/components/Placeholder.vue","webpack://VueTreeselect/./src/components/SingleValue.vue","webpack://VueTreeselect/src/components/SingleValue.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue?9af8","webpack://VueTreeselect/src/components/icons/Delete.vue","webpack://VueTreeselect/./src/components/icons/Delete.vue","webpack://VueTreeselect/./src/components/MultiValueItem.vue","webpack://VueTreeselect/src/components/MultiValueItem.vue","webpack://VueTreeselect/./src/components/MultiValue.vue","webpack://VueTreeselect/src/components/MultiValue.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue?a3ef","webpack://VueTreeselect/src/components/icons/Arrow.vue","webpack://VueTreeselect/./src/components/icons/Arrow.vue","webpack://VueTreeselect/./src/components/Control.vue","webpack://VueTreeselect/src/components/Control.vue","webpack://VueTreeselect/./src/components/Tip.vue","webpack://VueTreeselect/src/components/Tip.vue","webpack://VueTreeselect/src/components/Option.vue","webpack://VueTreeselect/./src/components/Option.vue","webpack://VueTreeselect/src/components/Menu.vue","webpack://VueTreeselect/./src/components/Menu.vue","webpack://VueTreeselect/src/components/MenuPortal.vue","webpack://VueTreeselect/./src/components/MenuPortal.vue","webpack://VueTreeselect/./src/components/Treeselect.vue","webpack://VueTreeselect/src/components/Treeselect.vue","webpack://VueTreeselect/./src/index.js"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__19__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","toPropertyKey","obj","configurable","writable","_typeof","iterator","constructor","nestRE","mergeFn","a","b","apply","this","arguments","objs","reduce","aa","bb","nestedKey","temp","test","Array","isArray","concat","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","arr","arrayLikeToArray","minLen","toString","slice","from","len","length","arr2","isObject","now","toNumber","nativeMax","Math","max","nativeMin","min","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","leadingEdge","setTimeout","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","timeWaiting","remainingWait","debounced","isInvoking","clearTimeout","cancel","flush","type","freeGlobal","freeSelf","self","Function","baseTrim","isSymbol","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","other","valueOf","isBinary","isPromise","then","default","before","array","arrayWithHoles","iterableToArrayLimit","nonIterableRest","needle","haystack","tlen","qlen","outer","j","nch","charCodeAt","e","u","f","next","done","push","iter","toPrimitive","String","Number","Date","global","g","trimmedEndIndex","reTrimStart","string","replace","reWhitespace","index","charAt","baseGetTag","isObjectLike","getRawTag","objectToString","symToStringTag","objectProto","nativeObjectToString","isOwn","tag","unmasked","toInteger","toFinite","remainder","warning","noop","onLeftClick","mouseDownHandler","evt","button","_len","_key","scrollIntoView","$scrollingEl","$focusedEl","scrollingReact","getBoundingClientRect","focusedRect","overScroll","offsetHeight","bottom","scrollTop","offsetTop","clientHeight","scrollHeight","top","intervalId","element","listener","expand","document","createElement","shrink","appendChild","expandChild","shrinkChild","lastWidth","lastHeight","style","cssText","width","height","unbind","removeChild","offsetWidth","scrollLeft","scrollWidth","addEventListener","removeEventListener","removeFromArray","elem","idx","indexOf","splice","registered","item","$el","watchSizeForIE9","setInterval","forEach","clearInterval","watchSize","isIE9","documentMode","locked","removeSizeWatcher","watchSizeForBrowsersOtherThanIE9","isScrollElment","_getComputedStyle","getComputedStyle","overflow","overflowX","overflowY","setupResizeAndScrollEventListeners","$scrollParents","$parent","parentNode","nodeName","nodeType","ELEMENT_NODE","findScrollParents","passive","scrollParent","$scrollParent","isNaN","x","createMap","isPlainObject","getPrototypeOf","deepExtend","target","source","keys","includes","arrOrStr","find","predicate","ctx","quickDiff","arrA","arrB","LOAD_ROOT_OPTIONS","LOAD_CHILDREN_OPTIONS","ASYNC_SEARCH","KEY_CODES","sortValueByIndex","level","match","enableFuzzyMatch","fuzzysearch","getErrorMessage","err","message","instanceId","provide","instance","props","allowClearingDisabled","Boolean","allowSelectingDisabledDescendants","alwaysOpen","appendToBody","async","autoFocus","autoLoadRootOptions","autoDeselectAncestors","autoDeselectDescendants","autoSelectAncestors","autoSelectDescendants","backspaceRemoves","beforeClearAll","constant","branchNodesFirst","cacheOptions","clearable","clearAllText","clearOnSelect","clearValueText","closeOnSelect","defaultExpandLevel","defaultOptions","deleteRemoves","delimiter","flattenSearchResults","disableBranchNodes","disabled","disableFuzzyMatching","flat","joinValues","limit","Infinity","limitText","count","loadingText","loadOptions","matchKeys","maxHeight","multiple","noChildrenText","noOptionsText","noResultsText","normalizer","identity","openDirection","validator","openOnClick","openOnFocus","placeholder","required","retryText","retryTitle","searchable","searchNested","searchPromptText","showAsGroup","showCount","showCountOf","showCountOnSearch","sortValueBy","tabIndex","valueConsistsOf","valueFormat","zIndex","data","trigger","isFocused","searchQuery","menu","isOpen","current","lastScrollPosition","placement","forest","normalizedOptions","nodeMap","checkedStateMap","selectedNodeIds","extractCheckedNodeIdsFromValue","selectedNodeMap","rootOptionsStates","isLoaded","isLoading","loadingError","localSearch","active","noResults","countMap","remoteSearch","computed","selectedNodes","map","getNode","internalValue","_this","single","filter","id","node","isRootNode","isSelected","isLeaf","children","_internalValue","indeterminateNodeIds","selectedNode","ancestors","ancestor","sort","sortValueByLevel","hasValue","visibleOptionIds","_this2","traverseAllNodesByIndex","shouldOptionBeIncludedInSearchResult","isBranch","shouldExpand","hasVisibleOptions","showCountOnSearchComputed","hasBranchNodes","some","rootNode","shouldFlattenOptions","watch","newValue","openMenu","closeMenu","initialize","oldValue","$emit","getValue","getInstanceId","buildForestState","handler","deep","immediate","handleRemoteSearch","handleLocalSearch","nodeIdsFromValue","fixSelectedNodeIds","methods","verifyProps","_this3","propName","resetFlags","_blurOnSelect","getRemoteSearchEntry","prevNodeMap","keepDataOfSelectedNodes","normalize","_this4","rawNodes","raw","nodeId","createFallbackNode","extractNodeFromValue","fallbackNode","label","enhancedNormalizer","isFallbackNode","isDisabled","isNew","$set","_this5","_this6","defaultNode","nodeIdListOfPrevValue","_this7","nextSelectedNodeIds","traverseDescendantsBFS","descendant","queue","shift","_this8","_objectSpread","callback","currNode","_toConsumableArray","traverseDescendantsDFS","_this9","child","traverseAllNodesDFS","_this10","walk","toggleClickOutsideEvent","enabled","handleClickOutside","getValueContainer","$refs","control","getInput","input","focusInput","focus","blurInput","blur","handleMouseDown","preventDefault","stopPropagation","contains","wrapper","_this11","resetHighlightedOptionWhenNecessary","isExpandedOnSearch","showAllChildrenOnSearch","isMatched","hasMatchedDescendants","_defineProperty","lowerCasedSearchQuery","trim","toLocaleLowerCase","splitSearchQuery","split","every","filterValue","nestedSearchLabel","matchKey","lowerCased","_this12","entry","callLoadOptionsProp","action","isPending","start","succeed","fail","end","_this13","$watch","isExpanded","shouldShowOptionInMenu","getControl","getMenu","$menu","portal","portalTarget","setCurrentHighlightedOption","_this14","scroll","prev","isHighlighted","scrollToOption","$option","querySelector","$nextTick","forceReset","highlightFirstOption","first","highlightPrevOption","highlightLastOption","highlightNextOption","last","getLast","resetSearchQuery","saveMenuScrollPosition","restoreMenuScrollPosition","loadRootOptions","toggleMenu","toggleExpanded","nextState","childrenStates","loadChildrenOptions","_this15","selectedNodeId","ancestorNode","nodes","_this16","_ref","_ref2","_slicedToArray","checkDuplication","verifyNodeShape","round","random","isDefaultExpanded","normalized","hasDisabledDescendants","branchNodes","option","leafNodes","_this17","_this18","_ref3","once","catch","console","error","_this19","JSON","stringify","select","clear","_selectNode","_deselectNode","_this20","_this21","addValue","isFullyChecked","curr","_this22","removeValue","hasUncheckedSomeDescendants","removeLastValue","lastValue","lastSelectedNode","created","mounted","destroyed","stringifyValue","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","component","inject","_","injections","stringifiedValues","join","stringifiedValue","attrs","domProps","__file","keysThatRequireMenuBeingOpen","inputWidth","needAutoSize","inputStyle","updateInputWidth","debouncedCallback","debounce","updateSearchQuery","onInput","onFocus","onBlur","activeElement","onKeyDown","which","keyCode","ctrlKey","shiftKey","altKey","metaKey","onMouseDown","renderInputContainer","$createElement","renderInput","renderSizer","on","keydown","ref","_mergeJSXProps","autocomplete","sizer","placeholderClass","renderSingleValueLabel","customValueLabelRenderer","$scopedSlots","renderValueContainer","shouldShowValue","Placeholder","Input","_c","_self","xmlns","viewBox","_withStripped","itemClass","labelRenderer","DeleteIcon","renderMultiValueItems","MultiValueItem","renderExceedLimitTip","transitionGroupProps","appear","shouldShowX","hasUndisabledValue","shouldShowArrow","renderX","title","handleMouseDownOnX","renderArrow","arrowClass","handleMouseDownOnArrow","ArrowIcon","shouldClear","ValueContainer","SingleValue","MultiValue","icon","arrowPlaceholder","checkMark","minusMark","Option","isGroup","shouldShow","renderOption","handleMouseEnterOption","renderLabelContainer","renderCheckboxContainer","renderCheckbox","renderLabel","renderSubOptionsList","renderSubOptions","renderNoChildrenTip","renderLoadingChildrenTip","renderLoadingChildrenErrorTip","handleMouseDownOnLabelContainer","checkedState","checkboxClass","shouldShowCount","NaN","customLabelRenderer","labelClassName","countClassName","childNode","Tip","handleMouseDownOnRetry","currentTarget","indentLevel","listItemClass","transitionProps","directionMap","above","below","menuStyle","menuContainerStyle","onMenuOpen","onMenuClose","menuSizeWatcher","menuResizeAndScrollEventListeners","renderMenu","renderBeforeList","renderAsyncSearchMenuInner","renderLocalSearchMenuInner","renderNormalMenuInner","renderAfterList","beforeListRenderer","afterListRenderer","renderLoadingOptionsTip","renderLoadingRootOptionsErrorTip","renderNoAvailableOptionsTip","renderOptionList","renderNoResultsTip","shouldShowSearchPromptTip","shouldShowNoResultsTip","renderSearchPromptTip","renderAsyncSearchLoadingErrorTip","adjustMenuOpenDirection","setupMenuSizeWatcher","setupMenuResizeAndScrollEventListeners","removeMenuSizeWatcher","removeMenuResizeAndScrollEventListeners","$control","menuRect","controlRect","menuHeight","viewportHeight","innerHeight","spaceAbove","hasEnoughSpaceBelow","hasEnoughSpaceAbove","remove","PortalTarget","setupHandlers","removeHandlers","updateMenuContainerOffset","controlResizeAndScrollEventListeners","controlSizeWatcher","updateWidth","setupControlResizeAndScrollEventListeners","setupControlSizeWatcher","removeControlResizeAndScrollEventListeners","removeControlSizeWatcher","$portalTarget","portalTargetRect","offsetY","left","body","portalTargetClass","wrapperClass","portalTargetStyle","Menu","setup","teardown","el","Vue","innerHTML","$destroy","mixins","treeselectMixin","HiddenFields","Control","MenuPortal","VERSION","Treeselect","PKG_VERSION"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,QACR,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,OAAQJ,GACU,iBAAZC,QACdA,QAAuB,cAAID,EAAQG,QAAQ,QAE3CJ,EAAoB,cAAIC,EAAQD,EAAU,KAR5C,CASGO,QAAQ,SAASC,GACpB,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUT,QAGnC,IAAIC,EAASM,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHX,QAAS,IAUV,OANAY,EAAQH,GAAUI,KAAKZ,EAAOD,QAASC,EAAQA,EAAOD,QAASQ,GAG/DP,EAAOU,GAAI,EAGJV,EAAOD,QA0Df,OArDAQ,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAAShB,EAASiB,EAAMC,GAC3CV,EAAoBW,EAAEnB,EAASiB,IAClCG,OAAOC,eAAerB,EAASiB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAASxB,GACX,oBAAXyB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAerB,EAASyB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAerB,EAAS,aAAc,CAAE2B,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OA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,CACA+W,MAAA,WACA,IAAAE,EAAAtlB,SAAAC,cAAA,OACAD,SAAA+kB,KAAA5kB,YAAAmlB,GAEA,KAAAlR,aAAA,IAAAmR,K,mWAAAhV,CAAA,CACA+U,KACAxL,OAAA,MACAkK,MAIAqB,SAAA,WACArlB,SAAA+kB,KAAAlkB,YAAA,KAAAuT,aAAA1S,KACA,KAAA0S,aAAA1S,IAAA8jB,UAAA,GAEA,KAAApR,aAAAqR,WACA,KAAArR,aAAA,OAIA4E,OAAA,eAAAwB,EAAAlkB,UAAA,GAKA,OAJAmS,QACA+R,EAAA,mDAGA/R,UC/KI,OAAQ,GAWV,EACA,KACA,KACA,MAkBF,GAAUjQ,QAAQ4iB,OAAS,gCACZ,U,QC1BX,GAAY,GCAhB,CACApnB,KAAA,iBACA0xB,OAAA,CAAAC,IAEAza,SAAA,CACA+Z,aAAA,WACA,OACA,oBACA,gCAAAjc,YACA,8BAAAwC,OACA,6BAAAzD,SACA,kCAAAc,WACA,gCAAA1B,SACA,+BAAAuC,QAAAC,UACA,iCAAA4C,SACA,4BAAA1C,KAAAC,OACA,0CAAAD,KAAAI,UACA,6CAAAJ,KAAAI,UACA,6CAAA/C,mBACA,sCAAAvB,gBAKAqT,OAAA,eAAAwB,EAAAlkB,UAAA,GACA,OACAkkB,EAAA,OAAAuC,IAAA,qBAAAkI,cAAA,CACAzK,EAAAoL,IACApL,EAAAqL,GAAA,CAAA9I,IAAA,YACA,KAAApX,aAAA6U,EAAAsL,GAAA,CAAA/I,IAAA,WAAAvC,EAAA2K,GAAA,CAAApI,IAAA,kBDpCI,OAAQ,GAWV,EACA,KACA,KACA,MAkBF,GAAUvkB,QAAQ4iB,OAAS,gCACZ,U,QEpBF2K,I,MATEC,aASQC","file":"vue-treeselect.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"Vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"Vue\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VueTreeselect\"] = factory(require(\"Vue\"));\n\telse\n\t\troot[\"VueTreeselect\"] = factory(root[\"Vue\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__19__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 42);\n","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/\n\nmodule.exports = function mergeJSXProps (objs) {\n return objs.reduce(function (a, b) {\n var aa, bb, key, nestedKey, temp\n for (key in b) {\n aa = a[key]\n bb = b[key]\n if (aa && nestRE.test(key)) {\n // normalize class\n if (key === 'class') {\n if (typeof aa === 'string') {\n temp = aa\n a[key] = aa = {}\n aa[temp] = true\n }\n if (typeof bb === 'string') {\n temp = bb\n b[key] = bb = {}\n bb[temp] = true\n }\n }\n if (key === 'on' || key === 'nativeOn' || key === 'hook') {\n // merge functions\n for (nestedKey in bb) {\n aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])\n }\n } else if (Array.isArray(aa)) {\n a[key] = aa.concat(bb)\n } else if (Array.isArray(bb)) {\n a[key] = [aa].concat(bb)\n } else {\n for (nestedKey in bb) {\n aa[nestedKey] = bb[nestedKey]\n }\n }\n } else {\n a[key] = b[key]\n }\n }\n return a\n }, {})\n}\n\nfunction mergeFn (a, b) {\n return function () {\n a && a.apply(this, arguments)\n b && b.apply(this, arguments)\n }\n}\n","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\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 * 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 timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\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 clearTimeout(timerId);\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\nmodule.exports = debounce;\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 != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var freeGlobal = require('./_freeGlobal');\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\nmodule.exports = root;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\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/**\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 = baseTrim(value);\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 = toNumber;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","module.exports = isPromise;\nmodule.exports.default = isPromise;\n\nfunction isPromise(obj) {\n return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';\n}\n","var before = require('./before');\n\n/**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\nfunction once(func) {\n return before(2, func);\n}\n\nmodule.exports = once;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nfunction fuzzysearch (needle, haystack) {\n var tlen = haystack.length;\n var qlen = needle.length;\n if (qlen > tlen) {\n return false;\n }\n if (qlen === tlen) {\n return needle === haystack;\n }\n outer: for (var i = 0, j = 0; i < qlen; i++) {\n var nch = needle.charCodeAt(i);\n while (j < tlen) {\n if (haystack.charCodeAt(j++) === nch) {\n continue outer;\n }\n }\n return false;\n }\n return true;\n}\n\nmodule.exports = fuzzysearch;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__19__;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var root = require('./_root');\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\nmodule.exports = now;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\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) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\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 nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\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 nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\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 != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var toInteger = require('./toInteger');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\nfunction before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n}\n\nmodule.exports = before;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","import { noop } from './noop'\n\nexport const warning = process.env.NODE_ENV === 'production'\n ? /* istanbul ignore next */ noop\n : function warning(checker, complainer) {\n if (!checker()) {\n const message = [ '[Vue-Treeselect Warning]' ].concat(complainer())\n // eslint-disable-next-line no-console\n console.error(...message)\n }\n }\n","export function onLeftClick(mouseDownHandler) {\n return function onMouseDown(evt, ...args) {\n if (evt.type === 'mousedown' && evt.button === 0) {\n mouseDownHandler.call(this, evt, ...args)\n }\n }\n}\n","// from react-select\nexport function scrollIntoView($scrollingEl, $focusedEl) {\n const scrollingReact = $scrollingEl.getBoundingClientRect()\n const focusedRect = $focusedEl.getBoundingClientRect()\n const overScroll = $focusedEl.offsetHeight / 3\n\n if (focusedRect.bottom + overScroll > scrollingReact.bottom) {\n $scrollingEl.scrollTop = Math.min(\n $focusedEl.offsetTop + $focusedEl.clientHeight - $scrollingEl.offsetHeight + overScroll,\n $scrollingEl.scrollHeight,\n )\n } else if (focusedRect.top - overScroll < scrollingReact.top) {\n $scrollingEl.scrollTop = Math.max($focusedEl.offsetTop - overScroll, 0)\n }\n}\n","import watchSizeForBrowsersOtherThanIE9 from 'watch-size'\nimport { removeFromArray } from './removeFromArray'\n\nlet intervalId\nconst registered = []\nconst INTERVAL_DURATION = 100\n\nfunction run() {\n intervalId = setInterval(() => {\n registered.forEach(test)\n }, INTERVAL_DURATION)\n}\n\nfunction stop() {\n clearInterval(intervalId)\n intervalId = null\n}\n\nfunction test(item) {\n const { $el, listener, lastWidth, lastHeight } = item\n const width = $el.offsetWidth\n const height = $el.offsetHeight\n\n if (lastWidth !== width || lastHeight !== height) {\n item.lastWidth = width\n item.lastHeight = height\n\n listener({ width, height })\n }\n}\n\nfunction watchSizeForIE9($el, listener) {\n const item = {\n $el,\n listener,\n lastWidth: null,\n lastHeight: null,\n }\n const unwatch = () => {\n removeFromArray(registered, item)\n if (!registered.length) stop()\n }\n\n registered.push(item)\n // The original watch-size will call the listener on initialization.\n // Keep the same behavior here.\n test(item)\n run()\n\n return unwatch\n}\n\nexport function watchSize($el, listener) {\n // See: https://stackoverflow.com/a/31293352\n const isIE9 = document.documentMode === 9\n // watch-size will call the listener on initialization.\n // Disable this behavior with a lock to achieve a clearer code logic.\n let locked = true\n const wrappedListener = (...args) => locked || listener(...args)\n const implementation = isIE9\n ? watchSizeForIE9\n : watchSizeForBrowsersOtherThanIE9\n const removeSizeWatcher = implementation($el, wrappedListener)\n locked = false // unlock after initialization\n\n return removeSizeWatcher\n}\n","var index = (function (element, listener) {\n\tvar expand = document.createElement('_');\n\tvar shrink = expand.appendChild(document.createElement('_'));\n\tvar expandChild = expand.appendChild(document.createElement('_'));\n\tvar shrinkChild = shrink.appendChild(document.createElement('_'));\n\n\tvar lastWidth = void 0,\n\t lastHeight = void 0;\n\n\tshrink.style.cssText = expand.style.cssText = 'height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1';\n\tshrinkChild.style.cssText = expandChild.style.cssText = 'display:block;height:100%;transition:0s;width:100%';\n\tshrinkChild.style.width = shrinkChild.style.height = '200%';\n\n\telement.appendChild(expand);\n\n\ttest();\n\n\treturn stop;\n\n\tfunction test() {\n\t\tunbind();\n\n\t\tvar width = element.offsetWidth;\n\t\tvar height = element.offsetHeight;\n\n\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\tlastWidth = width;\n\t\t\tlastHeight = height;\n\n\t\t\texpandChild.style.width = width * 2 + 'px';\n\t\t\texpandChild.style.height = height * 2 + 'px';\n\n\t\t\texpand.scrollLeft = expand.scrollWidth;\n\t\t\texpand.scrollTop = expand.scrollHeight;\n\t\t\tshrink.scrollLeft = shrink.scrollWidth;\n\t\t\tshrink.scrollTop = shrink.scrollHeight;\n\n\t\t\tlistener({ width: width, height: height });\n\t\t}\n\n\t\tshrink.addEventListener('scroll', test);\n\t\texpand.addEventListener('scroll', test);\n\t}\n\n\tfunction unbind() {\n\t\tshrink.removeEventListener('scroll', test);\n\t\texpand.removeEventListener('scroll', test);\n\t}\n\n\tfunction stop() {\n\t\tunbind();\n\n\t\telement.removeChild(expand);\n\t}\n});\n\nexport default index;\n","export function removeFromArray(arr, elem) {\n const idx = arr.indexOf(elem)\n if (idx !== -1) arr.splice(idx, 1)\n}\n","function findScrollParents($el) {\n const $scrollParents = []\n let $parent = $el.parentNode\n\n while ($parent && $parent.nodeName !== 'BODY' && $parent.nodeType === document.ELEMENT_NODE) {\n if (isScrollElment($parent)) $scrollParents.push($parent)\n $parent = $parent.parentNode\n }\n $scrollParents.push(window)\n\n return $scrollParents\n}\n\nfunction isScrollElment($el) {\n // Firefox wants us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getComputedStyle($el)\n return /(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)\n}\n\nexport function setupResizeAndScrollEventListeners($el, listener) {\n const $scrollParents = findScrollParents($el)\n\n window.addEventListener('resize', listener, { passive: true })\n $scrollParents.forEach(scrollParent => {\n scrollParent.addEventListener('scroll', listener, { passive: true })\n })\n\n return function removeEventListeners() {\n window.removeEventListener('resize', listener, { passive: true })\n $scrollParents.forEach($scrollParent => {\n $scrollParent.removeEventListener('scroll', listener, { passive: true })\n })\n }\n}\n","export function isNaN(x) {\n return x !== x\n}\n","export const createMap = () => Object.create(null)\n","function isPlainObject(value) {\n if (value == null || typeof value !== 'object') return false\n return Object.getPrototypeOf(value) === Object.prototype\n}\n\nfunction copy(obj, key, value) {\n if (isPlainObject(value)) {\n obj[key] || (obj[key] = {})\n deepExtend(obj[key], value)\n } else {\n obj[key] = value\n }\n}\n\nexport function deepExtend(target, source) {\n if (isPlainObject(source)) {\n const keys = Object.keys(source)\n\n for (let i = 0, len = keys.length; i < len; i++) {\n copy(target, keys[i], source[keys[i]])\n }\n }\n\n return target\n}\n","export function includes(arrOrStr, elem) {\n return arrOrStr.indexOf(elem) !== -1\n}\n","export function find(arr, predicate, ctx) {\n for (let i = 0, len = arr.length; i < len; i++) {\n if (predicate.call(ctx, arr[i], i, arr)) return arr[i]\n }\n return undefined\n}\n","export function quickDiff(arrA, arrB) {\n if (arrA.length !== arrB.length) return true\n\n for (let i = 0; i < arrA.length; i++) {\n if (arrA[i] !== arrB[i]) return true\n }\n\n return false\n}\n","// Magic value that indicates a root level node.\nexport const NO_PARENT_NODE = null\n\n// Types of checked state.\nexport const UNCHECKED = 0\nexport const INDETERMINATE = 1\nexport const CHECKED = 2\n\n// Types of count number.\nexport const ALL_CHILDREN = 'ALL_CHILDREN'\nexport const ALL_DESCENDANTS = 'ALL_DESCENDANTS'\nexport const LEAF_CHILDREN = 'LEAF_CHILDREN'\nexport const LEAF_DESCENDANTS = 'LEAF_DESCENDANTS'\n\n// Action types of delayed loading.\nexport const LOAD_ROOT_OPTIONS = 'LOAD_ROOT_OPTIONS'\nexport const LOAD_CHILDREN_OPTIONS = 'LOAD_CHILDREN_OPTIONS'\nexport const ASYNC_SEARCH = 'ASYNC_SEARCH'\n\n// Acceptable values of `valueConsistsOf` prop.\nexport const ALL = 'ALL'\nexport const BRANCH_PRIORITY = 'BRANCH_PRIORITY'\nexport const LEAF_PRIORITY = 'LEAF_PRIORITY'\nexport const ALL_WITH_INDETERMINATE = 'ALL_WITH_INDETERMINATE'\n\n// Acceptable values of `sortValueBy` prop.\nexport const ORDER_SELECTED = 'ORDER_SELECTED'\nexport const LEVEL = 'LEVEL'\nexport const INDEX = 'INDEX'\n\n// Key codes look-up table.\nexport const KEY_CODES = {\n BACKSPACE: 8,\n ENTER: 13,\n ESCAPE: 27,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n}\n\n// Other constants.\nexport const INPUT_DEBOUNCE_DELAY = process.env.NODE_ENV === 'testing'\n ? /* to speed up unit testing */ 10\n : /* istanbul ignore next */ 200\nexport const MIN_INPUT_WIDTH = 5\nexport const MENU_BUFFER = 40\n","import fuzzysearch from 'fuzzysearch'\n\nimport {\n warning,\n onLeftClick, scrollIntoView,\n isNaN, isPromise, once,\n identity, constant, createMap,\n quickDiff, last as getLast, includes, find, removeFromArray,\n} from '../utils'\n\nimport {\n NO_PARENT_NODE,\n UNCHECKED, INDETERMINATE, CHECKED,\n LOAD_ROOT_OPTIONS, LOAD_CHILDREN_OPTIONS, ASYNC_SEARCH,\n ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE,\n ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS,\n ORDER_SELECTED, LEVEL, INDEX,\n} from '../constants'\n\nfunction sortValueByIndex(a, b) {\n let i = 0\n do {\n if (a.level < i) return -1\n if (b.level < i) return 1\n if (a.index[i] !== b.index[i]) return a.index[i] - b.index[i]\n i++\n } while (true)\n}\n\nfunction sortValueByLevel(a, b) {\n return a.level === b.level\n ? sortValueByIndex(a, b)\n : a.level - b.level\n}\n\nfunction createAsyncOptionsStates() {\n return {\n isLoaded: false,\n isLoading: false,\n loadingError: '',\n }\n}\n\nfunction stringifyOptionPropValue(value) {\n if (typeof value === 'string') return value\n if (typeof value === 'number' && !isNaN(value)) return value + ''\n // istanbul ignore next\n return ''\n}\n\nfunction match(enableFuzzyMatch, needle, haystack) {\n return enableFuzzyMatch\n ? fuzzysearch(needle, haystack)\n : includes(haystack, needle)\n}\n\nfunction getErrorMessage(err) {\n return err.message || /* istanbul ignore next */String(err)\n}\n\nlet instanceId = 0\n\nexport default {\n provide() {\n return {\n // Enable access to the instance of root component of vue-treeselect\n // across hierarchy.\n instance: this,\n }\n },\n\n props: {\n /**\n * Whether to allow resetting value even if there are disabled selected nodes.\n */\n allowClearingDisabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.\n * You may want to use this in conjunction with `allowClearingDisabled` prop.\n */\n allowSelectingDisabledDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether the menu should be always open.\n */\n alwaysOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Append the menu to ?\n */\n appendToBody: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable async search mode.\n */\n async: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically focus the component on mount?\n */\n autoFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.\n */\n autoLoadRootOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.\n */\n autoDeselectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user deselects a node, automatically deselect its descendants. Applies to flat mode only.\n */\n autoDeselectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its ancestors. Applies to flat mode only.\n */\n autoSelectAncestors: {\n type: Boolean,\n default: false,\n },\n\n /**\n * When user selects a node, automatically select its descendants. Applies to flat mode only.\n */\n autoSelectDescendants: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether pressing backspace key removes the last item if there is no text input.\n */\n backspaceRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Function that processes before clearing all input fields.\n * Return `false` to prevent value from being cleared.\n * @type {function(): (boolean|Promise)}\n */\n beforeClearAll: {\n type: Function,\n default: constant(true),\n },\n\n /**\n * Show branch nodes before leaf nodes?\n */\n branchNodesFirst: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Should cache results of every search request?\n */\n cacheOptions: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Show an \"×\" button that resets value?\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Title for the \"×\" button when `multiple: true`.\n */\n clearAllText: {\n type: String,\n default: 'Clear all',\n },\n\n /**\n * Whether to clear the search input after selecting.\n * Use only when `multiple` is `true`.\n * For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.\n */\n clearOnSelect: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Title for the \"×\" button.\n */\n clearValueText: {\n type: String,\n default: 'Clear value',\n },\n\n /**\n * Whether to close the menu after selecting an option?\n * Use only when `multiple` is `true`.\n */\n closeOnSelect: {\n type: Boolean,\n default: true,\n },\n\n /**\n * How many levels of branch nodes should be automatically expanded when loaded.\n * Set `Infinity` to make all branch nodes expanded by default.\n */\n defaultExpandLevel: {\n type: Number,\n default: 0,\n },\n\n /**\n * The default set of options to show before the user starts searching. Used for async search mode.\n * When set to `true`, the results for search query as a empty string will be autoloaded.\n * @type {boolean|node[]}\n */\n defaultOptions: {\n default: false,\n },\n\n /**\n * Whether pressing delete key removes the last item if there is no text input.\n */\n deleteRemoves: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Delimiter to use to join multiple values for the hidden field value.\n */\n delimiter: {\n type: String,\n default: ',',\n },\n\n /**\n * Only show the nodes that match the search value directly, excluding its ancestors.\n *\n * @type {Object}\n */\n flattenSearchResults: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Prevent branch nodes from being selected?\n */\n disableBranchNodes: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the control?\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Disable the fuzzy matching functionality?\n */\n disableFuzzyMatching: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to enable flat mode or not. Non-flat mode (default) means:\n * - Whenever a branch node gets checked, all its children will be checked too\n * - Whenever a branch node has all children checked, the branch node itself will be checked too\n * Set `true` to disable this mechanism\n */\n flat: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Will be passed with all events as the last param.\n * Useful for identifying events origin.\n */\n instanceId: {\n // Add two trailing \"$\" to distinguish from explictly specified ids.\n default: () => `${instanceId++}$$`,\n type: [ String, Number ],\n },\n\n /**\n * Joins multiple values into a single form field with the `delimiter` (legacy mode).\n */\n joinValues: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Limit the display of selected options.\n * The rest will be hidden within the limitText string.\n */\n limit: {\n type: Number,\n default: Infinity,\n },\n\n /**\n * Function that processes the message shown when selected elements pass the defined limit.\n * @type {function(number): string}\n */\n limitText: {\n type: Function,\n default: function limitTextDefault(count) { // eslint-disable-line func-name-matching\n return `and ${count} more`\n },\n },\n\n /**\n * Text displayed when loading options.\n */\n loadingText: {\n type: String,\n default: 'Loading...',\n },\n\n /**\n * Used for dynamically loading options.\n * @type {function({action: string, callback: (function((Error|string)=): void), parentNode: node=, instanceId}): void}\n */\n loadOptions: {\n type: Function,\n },\n\n /**\n * Which node properties to filter on.\n */\n matchKeys: {\n type: Array,\n default: constant([ 'label' ]),\n },\n\n /**\n * Sets `maxHeight` style value of the menu.\n */\n maxHeight: {\n type: Number,\n default: 300,\n },\n\n /**\n * Set `true` to allow selecting multiple options (a.k.a., multi-select mode).\n */\n multiple: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Generates a hidden tag with this field name for html forms.\n */\n name: {\n type: String,\n },\n\n /**\n * Text displayed when a branch node has no children.\n */\n noChildrenText: {\n type: String,\n default: 'No sub-options.',\n },\n\n /**\n * Text displayed when there are no available options.\n */\n noOptionsText: {\n type: String,\n default: 'No options available.',\n },\n\n /**\n * Text displayed when there are no matching search results.\n */\n noResultsText: {\n type: String,\n default: 'No results found...',\n },\n\n /**\n * Used for normalizing source data.\n * @type {function(node, instanceId): node}\n */\n normalizer: {\n type: Function,\n default: identity,\n },\n\n /**\n * By default (`auto`), the menu will open below the control. If there is not\n * enough space, vue-treeselect will automatically flip the menu.\n * You can use one of other four options to force the menu to be always opened\n * to specified direction.\n * Acceptable values:\n * - `\"auto\"`\n * - `\"below\"`\n * - `\"bottom\"`\n * - `\"above\"`\n * - `\"top\"`\n */\n openDirection: {\n type: String,\n default: 'auto',\n validator(value) {\n const acceptableValues = [ 'auto', 'top', 'bottom', 'above', 'below' ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to automatically open the menu when the control is clicked.\n */\n openOnClick: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Whether to automatically open the menu when the control is focused.\n */\n openOnFocus: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Array of available options.\n * @type {node[]}\n */\n options: {\n type: Array,\n },\n\n /**\n * Field placeholder, displayed when there's no value.\n */\n placeholder: {\n type: String,\n default: 'Select...',\n },\n\n /**\n * Applies HTML5 required attribute when needed.\n */\n required: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text displayed asking user whether to retry loading children options.\n */\n retryText: {\n type: String,\n default: 'Retry?',\n },\n\n /**\n * Title for the retry button.\n */\n retryTitle: {\n type: String,\n default: 'Click to retry',\n },\n\n /**\n * Enable searching feature?\n */\n searchable: {\n type: Boolean,\n default: true,\n },\n\n /**\n * Search in ancestor nodes too.\n */\n searchNested: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Text tip to prompt for async search.\n */\n searchPromptText: {\n type: String,\n default: 'Type to search...',\n },\n\n showAsGroup: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Whether to show a children count next to the label of each branch node.\n */\n showCount: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Used in conjunction with `showCount` to specify which type of count number should be displayed.\n * Acceptable values:\n * - \"ALL_CHILDREN\"\n * - \"ALL_DESCENDANTS\"\n * - \"LEAF_CHILDREN\"\n * - \"LEAF_DESCENDANTS\"\n */\n showCountOf: {\n type: String,\n default: ALL_CHILDREN,\n validator(value) {\n const acceptableValues = [ ALL_CHILDREN, ALL_DESCENDANTS, LEAF_CHILDREN, LEAF_DESCENDANTS ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Whether to show children count when searching.\n * Fallbacks to the value of `showCount` when not specified.\n * @type {boolean}\n */\n showCountOnSearch: null,\n\n /**\n * In which order the selected options should be displayed in trigger & sorted in `value` array.\n * Used for multi-select mode only.\n * Acceptable values:\n * - \"ORDER_SELECTED\"\n * - \"LEVEL\"\n * - \"INDEX\"\n */\n sortValueBy: {\n type: String,\n default: ORDER_SELECTED,\n validator(value) {\n const acceptableValues = [ ORDER_SELECTED, LEVEL, INDEX ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Tab index of the control.\n */\n tabIndex: {\n type: Number,\n default: 0,\n },\n\n /**\n * The value of the control.\n * Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.\n * Its format depends on the `valueFormat` prop.\n * For most cases, just use `v-model` instead.\n * @type {?Array}\n */\n value: null,\n\n /**\n * Which kind of nodes should be included in the `value` array in multi-select mode.\n * Acceptable values:\n * - \"ALL\" - Any node that is checked will be included in the `value` array\n * - \"BRANCH_PRIORITY\" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array\n * - \"LEAF_PRIORITY\" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included\n * - \"ALL_WITH_INDETERMINATE\" - Any node that is checked will be included in the `value` array, plus indeterminate nodes\n */\n valueConsistsOf: {\n type: String,\n default: BRANCH_PRIORITY,\n validator(value) {\n const acceptableValues = [ ALL, BRANCH_PRIORITY, LEAF_PRIORITY, ALL_WITH_INDETERMINATE ]\n return includes(acceptableValues, value)\n },\n },\n\n /**\n * Format of `value` prop.\n * Note that, when set to `\"object\"`, only `id` & `label` properties are required in each `node` object in `value` prop.\n * Acceptable values:\n * - \"id\"\n * - \"object\"\n */\n valueFormat: {\n type: String,\n default: 'id',\n },\n\n /**\n * z-index of the menu.\n */\n zIndex: {\n type: [ Number, String ],\n default: 999,\n },\n },\n\n data() {\n return {\n trigger: {\n // Is the control focused?\n isFocused: false,\n // User entered search query - value of the input.\n searchQuery: '',\n },\n\n menu: {\n // Is the menu opened?\n isOpen: false,\n // Id of current highlighted option.\n current: null,\n // The scroll position before last menu closing.\n lastScrollPosition: 0,\n // Which direction to open the menu.\n placement: 'bottom',\n },\n\n forest: {\n // Normalized options.\n normalizedOptions: [],\n // map for quick look-up.\n nodeMap: createMap(),\n // map, used for multi-select mode.\n checkedStateMap: createMap(),\n // Id list of all selected options.\n selectedNodeIds: this.extractCheckedNodeIdsFromValue(),\n // map for fast checking:\n // if (forest.selectedNodeIds.indexOf(id) !== -1) forest.selectedNodeMap[id] === true\n selectedNodeMap: createMap(),\n },\n\n // States of root options.\n rootOptionsStates: createAsyncOptionsStates(),\n\n localSearch: {\n // Has user entered any query to search local options?\n active: false,\n // Has any options matched the search query?\n noResults: true,\n // map for counting matched children/descendants.\n countMap: createMap(),\n },\n\n // map.\n remoteSearch: createMap(),\n }\n },\n\n computed: {\n /* eslint-disable valid-jsdoc */\n /**\n * Normalized nodes that have been selected.\n * @type {node[]}\n */\n selectedNodes() {\n return this.forest.selectedNodeIds.map(this.getNode)\n },\n /**\n * Id list of selected nodes with `sortValueBy` prop applied.\n * @type {nodeId[]}\n */\n internalValue() {\n let internalValue\n\n // istanbul ignore else\n const valueConsistsOf = this.showAsGroup ? LEAF_PRIORITY : this.valueConsistsOf\n if (this.single || this.flat || this.disableBranchNodes || valueConsistsOf === ALL) {\n internalValue = this.forest.selectedNodeIds.slice()\n } else if (valueConsistsOf === BRANCH_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isRootNode) return true\n return !this.isSelected(node.parentNode)\n })\n } else if (valueConsistsOf === LEAF_PRIORITY) {\n internalValue = this.forest.selectedNodeIds.filter(id => {\n const node = this.getNode(id)\n if (node.isLeaf) return true\n return node.children.length === 0\n })\n } else if (valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const indeterminateNodeIds = []\n internalValue = this.forest.selectedNodeIds.slice()\n this.selectedNodes.forEach(selectedNode => {\n selectedNode.ancestors.forEach(ancestor => {\n if (includes(indeterminateNodeIds, ancestor.id)) return\n if (includes(internalValue, ancestor.id)) return\n indeterminateNodeIds.push(ancestor.id)\n })\n })\n internalValue.push(...indeterminateNodeIds)\n }\n\n if (this.sortValueBy === LEVEL) {\n internalValue.sort((a, b) => sortValueByLevel(this.getNode(a), this.getNode(b)))\n } else if (this.sortValueBy === INDEX) {\n internalValue.sort((a, b) => sortValueByIndex(this.getNode(a), this.getNode(b)))\n }\n\n return internalValue\n },\n /**\n * Has any option been selected?\n * @type {boolean}\n */\n hasValue() {\n return this.internalValue.length > 0\n },\n /**\n * Single-select mode?\n * @type {boolean}\n */\n single() {\n return !this.multiple\n },\n /**\n * Id list of nodes displayed in the menu. Nodes that are considered NOT visible:\n * - descendants of a collapsed branch node\n * - in local search mode, nodes that are not matched, unless\n * - it's a branch node and has matched descendants\n * - it's a leaf node and its parent node is explicitly set to show all children\n * @type {id[]}\n */\n visibleOptionIds() {\n const visibleOptionIds = []\n\n this.traverseAllNodesByIndex(node => {\n if (!this.localSearch.active || this.shouldOptionBeIncludedInSearchResult(node)) {\n visibleOptionIds.push(node.id)\n }\n // Skip the traversal of descendants of a branch node if it's not expanded.\n if (node.isBranch && !this.shouldExpand(node)) {\n return false\n }\n })\n\n return visibleOptionIds\n },\n /**\n * Has any option should be displayed in the menu?\n * @type {boolean}\n */\n hasVisibleOptions() {\n return this.visibleOptionIds.length !== 0\n },\n /**\n * Should show children count when searching?\n * @type {boolean}\n */\n showCountOnSearchComputed() {\n // Vue doesn't allow setting default prop value based on another prop value.\n // So use computed property as a workaround.\n // https://github.com/vuejs/vue/issues/6358\n return typeof this.showCountOnSearch === 'boolean'\n ? this.showCountOnSearch\n : this.showCount\n },\n /**\n * Is there any branch node?\n * @type {boolean}\n */\n hasBranchNodes() {\n return this.forest.normalizedOptions.some(rootNode => rootNode.isBranch)\n },\n shouldFlattenOptions() {\n return this.localSearch.active && this.flattenSearchResults\n },\n /* eslint-enable valid-jsdoc */\n },\n\n watch: {\n alwaysOpen(newValue) {\n if (newValue) this.openMenu()\n else this.closeMenu()\n },\n\n branchNodesFirst() {\n this.initialize()\n },\n\n disabled(newValue) {\n // force close the menu after disabling the control\n if (newValue && this.menu.isOpen) this.closeMenu()\n else if (!newValue && !this.menu.isOpen && this.alwaysOpen) this.openMenu()\n },\n\n flat() {\n this.initialize()\n },\n\n internalValue(newValue, oldValue) {\n const hasChanged = quickDiff(newValue, oldValue)\n // #122\n // Vue would trigger this watcher when `newValue` and `oldValue` are shallow-equal.\n // We emit the `input` event only when the value actually changes.\n if (hasChanged) this.$emit('input', this.getValue(), this.getInstanceId())\n },\n\n matchKeys() {\n this.initialize()\n },\n\n multiple(newValue) {\n // We need to rebuild the state when switching from single-select mode\n // to multi-select mode.\n // istanbul ignore else\n if (newValue) this.buildForestState()\n },\n\n options: {\n handler() {\n if (this.async) return\n // Re-initialize options when the `options` prop has changed.\n this.initialize()\n this.rootOptionsStates.isLoaded = Array.isArray(this.options)\n },\n deep: true,\n immediate: true,\n },\n\n 'trigger.searchQuery'() {\n if (this.async) {\n this.handleRemoteSearch()\n } else {\n this.handleLocalSearch()\n }\n\n this.$emit('search-change', this.trigger.searchQuery, this.getInstanceId())\n },\n\n value() {\n const nodeIdsFromValue = this.extractCheckedNodeIdsFromValue()\n const hasChanged = quickDiff(nodeIdsFromValue, this.internalValue)\n if (hasChanged) this.fixSelectedNodeIds(nodeIdsFromValue)\n },\n },\n\n methods: {\n verifyProps() {\n warning(\n () => this.async ? this.searchable : true,\n () => 'For async search mode, the value of \"searchable\" prop must be true.',\n )\n\n if (this.options == null && !this.loadOptions) {\n warning(\n () => false,\n () => 'Are you meant to dynamically load options? You need to use \"loadOptions\" prop.',\n )\n }\n\n if (this.flat) {\n warning(\n () => this.multiple,\n () => 'You are using flat mode. But you forgot to add \"multiple=true\"?',\n )\n }\n\n if (!this.flat) {\n const propNames = [\n 'autoSelectAncestors',\n 'autoSelectDescendants',\n 'autoDeselectAncestors',\n 'autoDeselectDescendants',\n ]\n\n propNames.forEach(propName => {\n warning(\n () => !this[propName],\n () => `\"${propName}\" only applies to flat mode.`,\n )\n })\n }\n },\n\n resetFlags() {\n this._blurOnSelect = false\n },\n\n initialize() {\n const options = this.async\n ? this.getRemoteSearchEntry().options\n : this.options\n\n if (Array.isArray(options)) {\n // In case we are re-initializing options, keep the old state tree temporarily.\n const prevNodeMap = this.forest.nodeMap\n this.forest.nodeMap = createMap()\n this.keepDataOfSelectedNodes(prevNodeMap)\n this.forest.normalizedOptions = this.normalize(NO_PARENT_NODE, options, prevNodeMap)\n // Cases that need fixing `selectedNodeIds`:\n // 1) Children options of a checked node have been delayed loaded,\n // we should also mark these children as checked. (multi-select mode)\n // 2) Root options have been delayed loaded, we need to initialize states\n // of these nodes. (multi-select mode)\n // 3) Async search mode.\n this.fixSelectedNodeIds(this.internalValue)\n } else {\n this.forest.normalizedOptions = []\n }\n },\n\n getInstanceId() {\n return this.instanceId == null ? this.id : this.instanceId\n },\n\n getValue() {\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.internalValue.slice()\n : this.internalValue[0]\n }\n\n const rawNodes = this.internalValue.map(id => this.getNode(id).raw)\n return this.multiple ? rawNodes : rawNodes[0]\n },\n\n getNode(nodeId) {\n warning(\n () => nodeId != null,\n () => `Invalid node id: ${nodeId}`,\n )\n\n if (nodeId == null) return null\n\n return nodeId in this.forest.nodeMap\n ? this.forest.nodeMap[nodeId]\n : this.createFallbackNode(nodeId)\n },\n\n createFallbackNode(id) {\n // In case there is a default selected node that is not loaded into the tree yet,\n // we create a fallback node to keep the component working.\n // When the real data is loaded, we'll override this fake node.\n\n const raw = this.extractNodeFromValue(id)\n const label = this.enhancedNormalizer(raw).label || `${id} (unknown)`\n const fallbackNode = {\n id,\n label,\n ancestors: [],\n parentNode: NO_PARENT_NODE,\n isFallbackNode: true,\n isRootNode: true,\n isLeaf: true,\n isBranch: false,\n isDisabled: false,\n isNew: false,\n index: [ -1 ],\n level: 0,\n raw,\n }\n\n return this.$set(this.forest.nodeMap, id, fallbackNode)\n },\n\n extractCheckedNodeIdsFromValue() {\n if (this.value == null) return []\n\n if (this.valueFormat === 'id') {\n return this.multiple\n ? this.value.slice()\n : [ this.value ]\n }\n\n return (this.multiple ? this.value : [ this.value ])\n .map(node => this.enhancedNormalizer(node))\n .map(node => node.id)\n },\n\n extractNodeFromValue(id) {\n const defaultNode = { id }\n\n if (this.valueFormat === 'id') {\n return defaultNode\n }\n\n const valueArray = this.multiple\n ? Array.isArray(this.value) ? this.value : []\n : this.value ? [ this.value ] : []\n const matched = find(\n valueArray,\n node => node && this.enhancedNormalizer(node).id === id,\n )\n\n return matched || defaultNode\n },\n\n fixSelectedNodeIds(nodeIdListOfPrevValue) {\n let nextSelectedNodeIds = []\n\n // istanbul ignore else\n if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === ALL) {\n nextSelectedNodeIds = nodeIdListOfPrevValue\n } else if (this.valueConsistsOf === BRANCH_PRIORITY) {\n nodeIdListOfPrevValue.forEach(nodeId => {\n nextSelectedNodeIds.push(nodeId)\n const node = this.getNode(nodeId)\n if (node.isBranch) this.traverseDescendantsBFS(node, descendant => {\n nextSelectedNodeIds.push(descendant.id)\n })\n })\n } else if (this.valueConsistsOf === LEAF_PRIORITY) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.slice()\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n } else if (this.valueConsistsOf === ALL_WITH_INDETERMINATE) {\n const map = createMap()\n const queue = nodeIdListOfPrevValue.filter(nodeId => {\n const node = this.getNode(nodeId)\n return node.isLeaf || node.children.length === 0\n })\n while (queue.length) {\n const nodeId = queue.shift()\n const node = this.getNode(nodeId)\n nextSelectedNodeIds.push(nodeId)\n if (node.isRootNode) continue\n if (!(node.parentNode.id in map)) map[node.parentNode.id] = node.parentNode.children.length\n if (--map[node.parentNode.id] === 0) queue.push(node.parentNode.id)\n }\n }\n\n const hasChanged = quickDiff(this.forest.selectedNodeIds, nextSelectedNodeIds)\n // If `nextSelectedNodeIds` doesn't actually differ from old `selectedNodeIds`,\n // we don't make the assignment to avoid triggering its watchers which may cause\n // unnecessary calculations.\n if (hasChanged) this.forest.selectedNodeIds = nextSelectedNodeIds\n\n this.buildForestState()\n },\n\n keepDataOfSelectedNodes(prevNodeMap) {\n // In case there is any selected node that is not present in the new `options` array.\n // It could be useful for async search mode.\n this.forest.selectedNodeIds.forEach(id => {\n if (!prevNodeMap[id]) return\n const node = {\n ...prevNodeMap[id],\n isFallbackNode: true,\n }\n this.$set(this.forest.nodeMap, id, node)\n })\n },\n\n isSelected(node) {\n // whether a node is selected (single-select mode) or fully-checked (multi-select mode)\n return this.forest.selectedNodeMap[node.id] === true\n },\n\n traverseDescendantsBFS(parentNode, callback) {\n // istanbul ignore if\n if (!parentNode.isBranch) return\n const queue = parentNode.children.slice()\n while (queue.length) {\n const currNode = queue[0]\n if (currNode.isBranch) queue.push(...currNode.children)\n callback(currNode)\n queue.shift()\n }\n },\n\n traverseDescendantsDFS(parentNode, callback) {\n if (!parentNode.isBranch) return\n parentNode.children.forEach(child => {\n // deep-level node first\n this.traverseDescendantsDFS(child, callback)\n callback(child)\n })\n },\n\n traverseAllNodesDFS(callback) {\n this.forest.normalizedOptions.forEach(rootNode => {\n // deep-level node first\n this.traverseDescendantsDFS(rootNode, callback)\n callback(rootNode)\n })\n },\n\n traverseAllNodesByIndex(callback) {\n const walk = parentNode => {\n parentNode.children.forEach(child => {\n if (callback(child) !== false && child.isBranch) {\n walk(child)\n }\n })\n }\n\n // To simplify the code logic of traversal,\n // we create a fake root node that holds all the root options.\n walk({ children: this.forest.normalizedOptions })\n },\n\n toggleClickOutsideEvent(enabled) {\n if (enabled) {\n document.addEventListener('mousedown', this.handleClickOutside, false)\n } else {\n document.removeEventListener('mousedown', this.handleClickOutside, false)\n }\n },\n\n getValueContainer() {\n if (!this.$refs || !this.$refs.control || !this.$refs.control.$refs) {\n return null\n }\n return this.$refs.control.$refs['value-container']\n },\n\n getInput() {\n return this.getValueContainer().$refs.input\n },\n\n focusInput() {\n this.getInput().focus()\n },\n\n blurInput() {\n this.getInput().blur()\n },\n\n handleMouseDown: onLeftClick(function handleMouseDown(evt) {\n evt.preventDefault()\n evt.stopPropagation()\n\n if (this.disabled || !this.getValueContainer()) return\n\n const isClickedOnValueContainer = this.getValueContainer().$el.contains(evt.target)\n if (isClickedOnValueContainer && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused)) {\n this.openMenu()\n }\n\n if (this._blurOnSelect) {\n this.blurInput()\n } else {\n // Focus the input or prevent blurring.\n this.focusInput()\n }\n\n this.resetFlags()\n }),\n\n handleClickOutside(evt) {\n // istanbul ignore else\n if (this.$refs.wrapper && !this.$refs.wrapper.contains(evt.target)) {\n this.blurInput()\n this.closeMenu()\n }\n },\n\n handleLocalSearch() {\n const { searchQuery } = this.trigger\n const done = () => this.resetHighlightedOptionWhenNecessary(true)\n\n if (!searchQuery) {\n // Exit sync search mode.\n this.localSearch.active = false\n return done()\n }\n\n // Enter sync search mode.\n this.localSearch.active = true\n\n // Reset states.\n this.localSearch.noResults = true\n this.traverseAllNodesDFS(node => {\n if (node.isBranch) {\n node.isExpandedOnSearch = false\n node.showAllChildrenOnSearch = false\n node.isMatched = false\n node.hasMatchedDescendants = false\n this.$set(this.localSearch.countMap, node.id, {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n }\n })\n\n const lowerCasedSearchQuery = searchQuery.trim().toLocaleLowerCase()\n const splitSearchQuery = lowerCasedSearchQuery.replace(/\\s+/g, ' ').split(' ')\n this.traverseAllNodesDFS(node => {\n if (this.searchNested && splitSearchQuery.length > 1) {\n node.isMatched = splitSearchQuery.every(filterValue =>\n match(false, filterValue, node.nestedSearchLabel),\n )\n } else {\n node.isMatched = this.matchKeys.some(matchKey =>\n match(!this.disableFuzzyMatching, lowerCasedSearchQuery, node.lowerCased[matchKey]),\n )\n }\n\n if (node.isMatched) {\n this.localSearch.noResults = false\n node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][ALL_DESCENDANTS]++)\n if (node.isLeaf) node.ancestors.forEach(ancestor => this.localSearch.countMap[ancestor.id][LEAF_DESCENDANTS]++)\n if (node.parentNode !== NO_PARENT_NODE) {\n this.localSearch.countMap[node.parentNode.id][ALL_CHILDREN] += 1\n // istanbul ignore else\n if (node.isLeaf) this.localSearch.countMap[node.parentNode.id][LEAF_CHILDREN] += 1\n }\n }\n\n if (\n (node.isMatched || (node.isBranch && node.isExpandedOnSearch)) &&\n node.parentNode !== NO_PARENT_NODE\n ) {\n node.parentNode.isExpandedOnSearch = true\n node.parentNode.hasMatchedDescendants = true\n }\n })\n\n done()\n },\n\n handleRemoteSearch() {\n const { searchQuery } = this.trigger\n const entry = this.getRemoteSearchEntry()\n const done = () => {\n this.initialize()\n this.resetHighlightedOptionWhenNecessary(true)\n }\n\n if ((searchQuery === '' || this.cacheOptions) && entry.isLoaded) {\n return done()\n }\n\n this.callLoadOptionsProp({\n action: ASYNC_SEARCH,\n args: { searchQuery },\n isPending() {\n return entry.isLoading\n },\n start: () => {\n entry.isLoading = true\n entry.isLoaded = false\n entry.loadingError = ''\n },\n succeed: options => {\n entry.isLoaded = true\n entry.options = options\n // When the request completes, the search query may have changed.\n // We only show these options if they are for the current search query.\n if (this.trigger.searchQuery === searchQuery) done()\n },\n fail: err => {\n entry.loadingError = getErrorMessage(err)\n },\n end: () => {\n entry.isLoading = false\n },\n })\n },\n\n getRemoteSearchEntry() {\n const { searchQuery } = this.trigger\n const entry = this.remoteSearch[searchQuery] || {\n ...createAsyncOptionsStates(),\n options: [],\n }\n\n // Vue doesn't support directly watching on objects.\n this.$watch(\n () => entry.options,\n () => {\n // TODO: potential redundant re-initialization.\n if (this.trigger.searchQuery === searchQuery) this.initialize()\n },\n { deep: true },\n )\n\n if (searchQuery === '') {\n if (Array.isArray(this.defaultOptions)) {\n entry.options = this.defaultOptions\n entry.isLoaded = true\n return entry\n } else if (this.defaultOptions !== true) {\n entry.isLoaded = true\n return entry\n }\n }\n\n if (!this.remoteSearch[searchQuery]) {\n this.$set(this.remoteSearch, searchQuery, entry)\n }\n\n return entry\n },\n\n shouldExpand(node) {\n return this.localSearch.active ? node.isExpandedOnSearch : node.isExpanded\n },\n\n shouldOptionBeIncludedInSearchResult(node) {\n // 1) This option is matched.\n if (node.isMatched) return true\n // 2) This option is not matched, but has matched descendant(s).\n if (node.isBranch && node.hasMatchedDescendants && !this.flattenSearchResults) return true\n // 3) This option's parent has no matched descendants,\n // but after being expanded, all its children should be shown.\n if (!node.isRootNode && node.parentNode.showAllChildrenOnSearch) return true\n // 4) The default case.\n return false\n },\n\n shouldShowOptionInMenu(node) {\n if (this.localSearch.active && !this.shouldOptionBeIncludedInSearchResult(node)) {\n return false\n }\n return true\n },\n\n getControl() {\n return this.$refs.control.$el\n },\n\n getMenu() {\n const ref = this.appendToBody ? this.$refs.portal.portalTarget : this\n const $menu = ref.$refs.menu.$refs.menu\n return $menu && $menu.nodeName !== '#comment' ? $menu : null\n },\n\n setCurrentHighlightedOption(node, scroll = true) {\n const prev = this.menu.current\n if (prev != null && prev in this.forest.nodeMap) {\n this.forest.nodeMap[prev].isHighlighted = false\n }\n\n this.menu.current = node.id\n node.isHighlighted = true\n\n if (this.menu.isOpen && scroll) {\n const scrollToOption = () => {\n const nodeId = node.id.toString().replace(/\"/g, '\\\\\"')\n const $menu = this.getMenu()\n const $option = $menu.querySelector(`.vue-treeselect__option[data-id=\"${nodeId}\"]`)\n if ($option) scrollIntoView($menu, $option)\n }\n\n // In case `openMenu()` is just called and the menu is not rendered yet.\n if (this.getMenu()) {\n scrollToOption()\n } else {\n // istanbul ignore next\n this.$nextTick(scrollToOption)\n }\n }\n },\n\n resetHighlightedOptionWhenNecessary(forceReset = false) {\n const { current } = this.menu\n\n if (\n forceReset || current == null ||\n !(current in this.forest.nodeMap) ||\n !this.shouldShowOptionInMenu(this.getNode(current))\n ) {\n this.highlightFirstOption()\n }\n },\n\n highlightFirstOption() {\n if (!this.hasVisibleOptions) return\n\n const first = this.visibleOptionIds[0]\n this.setCurrentHighlightedOption(this.getNode(first))\n },\n\n highlightPrevOption() {\n if (!this.hasVisibleOptions) return\n\n const prev = this.visibleOptionIds.indexOf(this.menu.current) - 1\n if (prev === -1) return this.highlightLastOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[prev]))\n },\n\n highlightNextOption() {\n if (!this.hasVisibleOptions) return\n\n const next = this.visibleOptionIds.indexOf(this.menu.current) + 1\n if (next === this.visibleOptionIds.length) return this.highlightFirstOption()\n this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[next]))\n },\n\n highlightLastOption() {\n if (!this.hasVisibleOptions) return\n\n const last = getLast(this.visibleOptionIds)\n this.setCurrentHighlightedOption(this.getNode(last))\n },\n\n resetSearchQuery() {\n this.trigger.searchQuery = ''\n },\n\n closeMenu() {\n if (!this.menu.isOpen || (!this.disabled && this.alwaysOpen)) return\n this.saveMenuScrollPosition()\n this.menu.isOpen = false\n this.toggleClickOutsideEvent(false)\n this.resetSearchQuery()\n this.$emit('close', this.getValue(), this.getInstanceId())\n },\n\n openMenu() {\n if (this.disabled || this.menu.isOpen) return\n this.menu.isOpen = true\n this.$nextTick(this.resetHighlightedOptionWhenNecessary)\n this.$nextTick(this.restoreMenuScrollPosition)\n if (!this.options && !this.async) this.loadRootOptions()\n this.toggleClickOutsideEvent(true)\n this.$emit('open', this.getInstanceId())\n },\n\n toggleMenu() {\n if (this.menu.isOpen) {\n this.closeMenu()\n } else {\n this.openMenu()\n }\n },\n\n toggleExpanded(node) {\n let nextState\n\n if (this.localSearch.active) {\n nextState = node.isExpandedOnSearch = !node.isExpandedOnSearch\n if (nextState) node.showAllChildrenOnSearch = true\n } else {\n nextState = node.isExpanded = !node.isExpanded\n }\n\n if (nextState && !node.childrenStates.isLoaded) {\n this.loadChildrenOptions(node)\n }\n },\n\n buildForestState() {\n const selectedNodeMap = createMap()\n this.forest.selectedNodeIds.forEach(selectedNodeId => {\n selectedNodeMap[selectedNodeId] = true\n })\n this.forest.selectedNodeMap = selectedNodeMap\n\n const checkedStateMap = createMap()\n if (this.multiple) {\n this.traverseAllNodesByIndex(node => {\n checkedStateMap[node.id] = UNCHECKED\n })\n\n this.selectedNodes.forEach(selectedNode => {\n checkedStateMap[selectedNode.id] = CHECKED\n\n if (!this.flat && !this.disableBranchNodes) {\n selectedNode.ancestors.forEach(ancestorNode => {\n if (!this.isSelected(ancestorNode)) {\n checkedStateMap[ancestorNode.id] = INDETERMINATE\n }\n })\n }\n })\n }\n this.forest.checkedStateMap = checkedStateMap\n },\n\n enhancedNormalizer(raw) {\n return {\n ...raw,\n ...this.normalizer(raw, this.getInstanceId()),\n }\n },\n\n normalize(parentNode, nodes, prevNodeMap) {\n let normalizedOptions = nodes\n .map(node => [ this.enhancedNormalizer(node), node ])\n .map(([ node, raw ], index) => {\n this.checkDuplication(node)\n this.verifyNodeShape(node)\n\n const id = node.id !== undefined ? node.id : Math.round(Math.random() * 1000000)\n const { label, children, isDefaultExpanded } = node\n const isRootNode = parentNode === NO_PARENT_NODE\n const level = isRootNode || this.showAsGroup ? 0 : parentNode.level + 1\n const isBranch = Array.isArray(children) || children === null\n const isLeaf = !isBranch\n const isDisabled = !!node.isDisabled || (!this.flat && !isRootNode && parentNode.isDisabled)\n const isNew = !!node.isNew\n const lowerCased = this.matchKeys.reduce((prev, key) => ({\n ...prev,\n [key]: stringifyOptionPropValue(node[key]).toLocaleLowerCase(),\n }), {})\n const nestedSearchLabel = isRootNode\n ? lowerCased.label\n : parentNode.nestedSearchLabel + ' ' + lowerCased.label\n\n const normalized = this.$set(this.forest.nodeMap, id, createMap())\n this.$set(normalized, 'id', id)\n this.$set(normalized, 'label', label)\n this.$set(normalized, 'level', level)\n this.$set(normalized, 'ancestors', isRootNode ? [] : [ parentNode ].concat(parentNode.ancestors))\n this.$set(normalized, 'index', (isRootNode ? [] : parentNode.index).concat(index))\n this.$set(normalized, 'parentNode', parentNode)\n this.$set(normalized, 'lowerCased', lowerCased)\n this.$set(normalized, 'nestedSearchLabel', nestedSearchLabel)\n this.$set(normalized, 'isDisabled', isDisabled)\n this.$set(normalized, 'isNew', isNew)\n this.$set(normalized, 'isMatched', false)\n this.$set(normalized, 'isHighlighted', false)\n this.$set(normalized, 'isBranch', isBranch)\n this.$set(normalized, 'isGroup', isBranch && this.showAsGroup)\n this.$set(normalized, 'isLeaf', isLeaf)\n this.$set(normalized, 'isRootNode', isRootNode)\n this.$set(normalized, 'raw', raw)\n\n if (isBranch) {\n const isLoaded = Array.isArray(children)\n\n this.$set(normalized, 'childrenStates', {\n ...createAsyncOptionsStates(),\n isLoaded,\n })\n this.$set(normalized, 'isExpanded', this.showAsGroup ? this.showAsGroup : typeof isDefaultExpanded === 'boolean'\n ? isDefaultExpanded\n : level < this.defaultExpandLevel)\n this.$set(normalized, 'hasMatchedDescendants', false)\n this.$set(normalized, 'hasDisabledDescendants', false)\n this.$set(normalized, 'isExpandedOnSearch', false)\n this.$set(normalized, 'showAllChildrenOnSearch', false)\n this.$set(normalized, 'count', {\n [ALL_CHILDREN]: 0,\n [ALL_DESCENDANTS]: 0,\n [LEAF_CHILDREN]: 0,\n [LEAF_DESCENDANTS]: 0,\n })\n this.$set(normalized, 'children', isLoaded\n ? this.normalize(normalized, children, prevNodeMap)\n : [])\n\n if (isDefaultExpanded === true) normalized.ancestors.forEach(ancestor => {\n ancestor.isExpanded = true\n })\n\n if (!isLoaded && typeof this.loadOptions !== 'function') {\n warning(\n () => false,\n () => 'Unloaded branch node detected. \"loadOptions\" prop is required to load its children.',\n )\n } else if (!isLoaded && normalized.isExpanded) {\n this.loadChildrenOptions(normalized)\n }\n }\n\n normalized.ancestors.forEach(ancestor => ancestor.count[ALL_DESCENDANTS]++)\n if (isLeaf) normalized.ancestors.forEach(ancestor => ancestor.count[LEAF_DESCENDANTS]++)\n if (!isRootNode) {\n parentNode.count[ALL_CHILDREN] += 1\n if (isLeaf) parentNode.count[LEAF_CHILDREN] += 1\n if (isDisabled) parentNode.hasDisabledDescendants = true\n }\n\n // Preserve previous states.\n if (prevNodeMap && prevNodeMap[id]) {\n const prev = prevNodeMap[id]\n\n normalized.isMatched = prev.isMatched\n normalized.showAllChildrenOnSearch = prev.showAllChildrenOnSearch\n normalized.isHighlighted = prev.isHighlighted\n\n if (prev.isBranch && normalized.isBranch) {\n normalized.isExpanded = prev.isExpanded\n normalized.isExpandedOnSearch = prev.isExpandedOnSearch\n // #97\n // If `isLoaded` was true, but IS NOT now, we consider this branch node\n // to be reset to unloaded state by the user of this component.\n if (prev.childrenStates.isLoaded && !normalized.childrenStates.isLoaded) {\n // Make sure the node is collapsed, then the user can load its\n // children again (by expanding).\n normalized.isExpanded = false\n // We have reset `childrenStates` and don't want to preserve states here.\n } else {\n normalized.childrenStates = { ...prev.childrenStates }\n }\n }\n }\n\n return normalized\n })\n\n if (this.branchNodesFirst) {\n const branchNodes = normalizedOptions.filter(option => option.isBranch)\n const leafNodes = normalizedOptions.filter(option => option.isLeaf)\n normalizedOptions = branchNodes.concat(leafNodes)\n }\n\n return normalizedOptions\n },\n\n loadRootOptions() {\n this.callLoadOptionsProp({\n action: LOAD_ROOT_OPTIONS,\n isPending: () => {\n return this.rootOptionsStates.isLoading\n },\n start: () => {\n this.rootOptionsStates.isLoading = true\n this.rootOptionsStates.loadingError = ''\n },\n succeed: () => {\n this.rootOptionsStates.isLoaded = true\n // Wait for `options` being re-initialized.\n this.$nextTick(() => {\n this.resetHighlightedOptionWhenNecessary(true)\n })\n },\n fail: err => {\n this.rootOptionsStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.rootOptionsStates.isLoading = false\n },\n })\n },\n\n loadChildrenOptions(parentNode) {\n // The options may be re-initialized anytime during the loading process.\n // So `parentNode` can be stale and we use `getNode()` to avoid that.\n\n const { id, raw } = parentNode\n\n this.callLoadOptionsProp({\n action: LOAD_CHILDREN_OPTIONS,\n args: {\n // We always pass the raw node instead of the normalized node to any\n // callback provided by the user of this component.\n // Because the shape of the raw node is more likely to be closing to\n // what the back-end API service of the application needs.\n parentNode: raw,\n },\n isPending: () => {\n return this.getNode(id).childrenStates.isLoading\n },\n start: () => {\n this.getNode(id).childrenStates.isLoading = true\n this.getNode(id).childrenStates.loadingError = ''\n },\n succeed: () => {\n this.getNode(id).childrenStates.isLoaded = true\n },\n fail: err => {\n this.getNode(id).childrenStates.loadingError = getErrorMessage(err)\n },\n end: () => {\n this.getNode(id).childrenStates.isLoading = false\n },\n })\n },\n\n callLoadOptionsProp({ action, args, isPending, start, succeed, fail, end }) {\n if (!this.loadOptions || isPending()) {\n return\n }\n\n start()\n\n const callback = once((err, result) => {\n if (err) {\n fail(err)\n } else {\n succeed(result)\n }\n\n end()\n })\n const result = this.loadOptions({\n id: this.getInstanceId(),\n instanceId: this.getInstanceId(),\n action,\n ...args,\n callback,\n })\n\n if (isPromise(result)) {\n result.then(() => {\n callback()\n }, err => {\n callback(err)\n }).catch(err => {\n // istanbul ignore next\n console.error(err)\n })\n }\n },\n\n checkDuplication(node) {\n warning(\n () => !((node.id in this.forest.nodeMap) && !this.forest.nodeMap[node.id].isFallbackNode),\n () => `Detected duplicate presence of node id ${JSON.stringify(node.id)}. ` +\n `Their labels are \"${this.forest.nodeMap[node.id].label}\" and \"${node.label}\" respectively.`,\n )\n },\n\n verifyNodeShape(node) {\n warning(\n () => !(node.children === undefined && node.isBranch === true),\n () => 'Are you meant to declare an unloaded branch node? ' +\n '`isBranch: true` is no longer supported, please use `children: null` instead.',\n )\n },\n\n select(node) {\n if (this.disabled || node.isDisabled) {\n return\n }\n\n if (this.single) {\n this.clear()\n }\n\n const nextState = this.multiple && !this.flat\n ? this.forest.checkedStateMap[node.id] === UNCHECKED\n : !this.isSelected(node)\n\n if (nextState) {\n this._selectNode(node)\n } else {\n this._deselectNode(node)\n }\n\n this.buildForestState()\n\n if (nextState) {\n this.$emit('select', node.raw, this.getInstanceId())\n } else {\n this.$emit('deselect', node.raw, this.getInstanceId())\n }\n\n if (this.localSearch.active && nextState && (this.single || this.clearOnSelect)) {\n this.resetSearchQuery()\n }\n\n if (this.single && this.closeOnSelect) {\n this.closeMenu()\n\n // istanbul ignore else\n if (this.searchable) {\n this._blurOnSelect = true\n }\n }\n },\n\n clear() {\n if (this.hasValue) {\n if (this.single || this.allowClearingDisabled) {\n this.forest.selectedNodeIds = []\n } else /* if (this.multiple && !this.allowClearingDisabled) */ {\n this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter(nodeId =>\n this.getNode(nodeId).isDisabled,\n )\n }\n\n this.buildForestState()\n }\n },\n\n // This is meant to be called only by `select()`.\n _selectNode(node) {\n if (this.single || this.disableBranchNodes) {\n return this.addValue(node)\n }\n\n if (this.flat) {\n this.addValue(node)\n\n if (this.autoSelectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (!this.isSelected(ancestor) && !ancestor.isDisabled) this.addValue(ancestor)\n })\n } else if (this.autoSelectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!this.isSelected(descendant) && !descendant.isDisabled) this.addValue(descendant)\n })\n }\n\n return\n }\n\n const isFullyChecked = (\n node.isLeaf ||\n (/* node.isBranch && */!node.hasDisabledDescendants) ||\n (/* node.isBranch && */this.allowSelectingDisabledDescendants)\n )\n if (isFullyChecked) {\n this.addValue(node)\n }\n\n if (node.isBranch) {\n this.traverseDescendantsBFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.addValue(descendant)\n }\n })\n }\n\n if (isFullyChecked) {\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (curr.children.every(this.isSelected)) this.addValue(curr)\n else break\n }\n }\n },\n\n // This is meant to be called only by `select()`.\n _deselectNode(node) {\n if (this.disableBranchNodes) {\n return this.removeValue(node)\n }\n\n if (this.flat) {\n this.removeValue(node)\n\n if (this.autoDeselectAncestors) {\n node.ancestors.forEach(ancestor => {\n if (this.isSelected(ancestor) && !ancestor.isDisabled) this.removeValue(ancestor)\n })\n } else if (this.autoDeselectDescendants) {\n this.traverseDescendantsBFS(node, descendant => {\n if (this.isSelected(descendant) && !descendant.isDisabled) this.removeValue(descendant)\n })\n }\n\n return\n }\n\n let hasUncheckedSomeDescendants = false\n if (node.isBranch) {\n this.traverseDescendantsDFS(node, descendant => {\n if (!descendant.isDisabled || this.allowSelectingDisabledDescendants) {\n this.removeValue(descendant)\n hasUncheckedSomeDescendants = true\n }\n })\n }\n\n if (\n node.isLeaf ||\n /* node.isBranch && */hasUncheckedSomeDescendants ||\n /* node.isBranch && */node.children.length === 0\n ) {\n this.removeValue(node)\n\n let curr = node\n while ((curr = curr.parentNode) !== NO_PARENT_NODE) {\n if (this.isSelected(curr)) this.removeValue(curr)\n else break\n }\n }\n },\n\n addValue(node) {\n this.forest.selectedNodeIds.push(node.id)\n this.forest.selectedNodeMap[node.id] = true\n },\n\n removeValue(node) {\n removeFromArray(this.forest.selectedNodeIds, node.id)\n delete this.forest.selectedNodeMap[node.id]\n },\n\n removeLastValue() {\n if (!this.hasValue) return\n if (this.single) return this.clear()\n const lastValue = getLast(this.internalValue)\n const lastSelectedNode = this.getNode(lastValue)\n this.select(lastSelectedNode) // deselect\n },\n\n saveMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) this.menu.lastScrollPosition = $menu.scrollTop\n },\n\n restoreMenuScrollPosition() {\n const $menu = this.getMenu()\n // istanbul ignore else\n if ($menu) $menu.scrollTop = this.menu.lastScrollPosition\n },\n },\n\n created() {\n this.verifyProps()\n this.resetFlags()\n },\n\n mounted() {\n if (this.autoFocus) this.focusInput()\n if (!this.options && !this.async && this.autoLoadRootOptions) this.loadRootOptions()\n if (this.alwaysOpen) this.openMenu()\n if (this.async && this.defaultOptions) this.handleRemoteSearch()\n },\n\n destroyed() {\n // istanbul ignore next\n this.toggleClickOutsideEvent(false)\n },\n}\n","\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render, staticRenderFns\nimport script from \"./HiddenFields.vue?vue&type=script&lang=js\"\nexport * from \"./HiddenFields.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4d48089a')) {\n api.createRecord('4d48089a', component.options)\n } else {\n api.reload('4d48089a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/HiddenFields.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Input.vue?vue&type=script&lang=js\"\nexport * from \"./Input.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('54844eca')) {\n api.createRecord('54844eca', component.options)\n } else {\n api.reload('54844eca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Input.vue\"\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Placeholder.vue?vue&type=script&lang=js\"\nexport * from \"./Placeholder.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('5a99d1f3')) {\n api.createRecord('5a99d1f3', component.options)\n } else {\n api.reload('5a99d1f3', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Placeholder.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./SingleValue.vue?vue&type=script&lang=js\"\nexport * from \"./SingleValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('03d19b89')) {\n api.createRecord('03d19b89', component.options)\n } else {\n api.reload('03d19b89', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/SingleValue.vue\"\nexport default component.exports","\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 348.333 348.333\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import { render, staticRenderFns } from \"./Delete.vue?vue&type=template&id=364b6320\"\nimport script from \"./Delete.vue?vue&type=script&lang=js\"\nexport * from \"./Delete.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('364b6320')) {\n api.createRecord('364b6320', component.options)\n } else {\n api.reload('364b6320', component.options)\n }\n module.hot.accept(\"./Delete.vue?vue&type=template&id=364b6320\", function () {\n api.rerender('364b6320', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Delete.vue\"\nexport default component.exports","var render, staticRenderFns\nimport script from \"./MultiValueItem.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValueItem.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('6dd6c8ca')) {\n api.createRecord('6dd6c8ca', component.options)\n } else {\n api.reload('6dd6c8ca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValueItem.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./MultiValue.vue?vue&type=script&lang=js\"\nexport * from \"./MultiValue.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('14fca5e8')) {\n api.createRecord('14fca5e8', component.options)\n } else {\n api.reload('14fca5e8', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MultiValue.vue\"\nexport default component.exports","\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"svg\",\n {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 292.362 292.362\",\n },\n },\n [\n _c(\"path\", {\n attrs: {\n d: \"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z\",\n },\n }),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","\n\n\n","import { render, staticRenderFns } from \"./Arrow.vue?vue&type=template&id=11186cd4\"\nimport script from \"./Arrow.vue?vue&type=script&lang=js\"\nexport * from \"./Arrow.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('11186cd4')) {\n api.createRecord('11186cd4', component.options)\n } else {\n api.reload('11186cd4', component.options)\n }\n module.hot.accept(\"./Arrow.vue?vue&type=template&id=11186cd4\", function () {\n api.rerender('11186cd4', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/components/icons/Arrow.vue\"\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Control.vue?vue&type=script&lang=js\"\nexport * from \"./Control.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('2fa0a0dd')) {\n api.createRecord('2fa0a0dd', component.options)\n } else {\n api.reload('2fa0a0dd', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Control.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Tip.vue?vue&type=script&lang=js\"\nexport * from \"./Tip.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('9f31bdca')) {\n api.createRecord('9f31bdca', component.options)\n } else {\n api.reload('9f31bdca', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Tip.vue\"\nexport default component.exports","\n","\n","var render, staticRenderFns\nimport script from \"./Option.vue?vue&type=script&lang=js\"\nexport * from \"./Option.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('3dddec25')) {\n api.createRecord('3dddec25', component.options)\n } else {\n api.reload('3dddec25', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Option.vue\"\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./Menu.vue?vue&type=script&lang=js\"\nexport * from \"./Menu.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./MenuPortal.vue?vue&type=script&lang=js\"\nexport * from \"./MenuPortal.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('4802d94a')) {\n api.createRecord('4802d94a', component.options)\n } else {\n api.reload('4802d94a', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/MenuPortal.vue\"\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Treeselect.vue?vue&type=script&lang=js\"\nexport * from \"./Treeselect.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/jes490/projects/conjointly/vue-treeselect/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('aebf116c')) {\n api.createRecord('aebf116c', component.options)\n } else {\n api.reload('aebf116c', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"src/components/Treeselect.vue\"\nexport default component.exports","\n","import Treeselect from './components/Treeselect'\nimport treeselectMixin from './mixins/treeselectMixin'\nimport './style.less'\n\nexport default Treeselect\nexport { Treeselect, treeselectMixin }\nexport {\n // Delayed loading.\n LOAD_ROOT_OPTIONS,\n LOAD_CHILDREN_OPTIONS,\n ASYNC_SEARCH,\n} from './constants'\n\nexport const VERSION = PKG_VERSION\n"],"sourceRoot":""} \ No newline at end of file diff --git a/src/components/Menu.vue b/src/components/Menu.vue index b28dd1e9..f5202b77 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -129,14 +129,15 @@ renderAsyncSearchMenuInner() { const { instance } = this const entry = instance.getRemoteSearchEntry() - const shouldShowSearchPromptTip = instance.trigger.searchQuery === '' - && !instance.defaultOptions - && instance.searchPromptText + const shouldShowSearchPromptTip = instance.trigger.searchQuery === '' && !instance.defaultOptions const shouldShowNoResultsTip = shouldShowSearchPromptTip ? false : entry.isLoaded && entry.options.length === 0 if (shouldShowSearchPromptTip) { + if (!instance.searchPromptText) { + return '' + } return this.renderSearchPromptTip() } else if (entry.isLoading) { return this.renderLoadingOptionsTip()