{"version":3,"sources":["webpack:///./node_modules/vuetify/lib/components/VTreeview/VTreeviewNode.js","webpack:///./node_modules/vuetify/lib/components/VTreeview/util/filterTreeItems.js","webpack:///./node_modules/vuetify/lib/components/VTreeview/VTreeview.js","webpack:///./src/components/ArbrePostes.vue","webpack:///src/components/ArbrePostes.vue","webpack:///./src/components/ArbrePostes.vue?66e0","webpack:///./src/components/ArbrePostes.vue?4e53","webpack:///./src/components/ArbrePostes.vue?0cde","webpack:///./src/utils/nodeTree.js"],"names":["baseMixins","mixins","VTreeviewNodeProps","activatable","Boolean","activeClass","type","String","default","color","disablePerNode","expandIcon","indeterminateIcon","itemChildren","itemDisabled","itemKey","itemText","loadChildren","Function","loadingIcon","offIcon","onIcon","openOnClick","rounded","selectable","selectedColor","shaped","transition","selectionType","validator","v","includes","VTreeviewNode","extend","name","inject","treeview","props","level","Number","item","Object","parentIsDisabled","data","hasLoaded","isActive","isIndeterminate","isLoading","isOpen","isSelected","computed","this","children","filter","child","isExcluded","leaf","selected","indeterminate","active","open","length","register","unregister","methods","Promise","resolve","then","updateOpen","key","emitOpen","$scopedSlots","label","push","scopedProps","text","$createElement","slot","staticClass","prepend","append","genPrependSlot","genLabel","genAppendSlot","VIcon","class","on","click","e","stopPropagation","checkChildren","undefined","disabled","$nextTick","updateSelected","emitSelected","computedIcon","map","genContent","unshift","genCheckbox","hasChildren","genToggle","genLevel","setTextColor","updateActive","emitActive","scopedSlots","c","genChild","genChildrenWrapper","h","genNode","genTransition","attrs","filterTreeItem","search","textKey","toLocaleLowerCase","indexOf","filterTreeItems","idKey","childrenKey","excluded","match","i","add","Array","dense","hoverable","items","multipleActive","openAll","returnObject","value","activeCache","Set","nodes","openCache","selectedCache","watch","oldKeys","keys","k","newKeys","getKeys","diff","forEach","oldSelectedCache","buildTree","deep","handleNodeCacheWatcher","getValue","$slots","console","updateAll","parent","_a","oldNode","hasOwnProperty","vnode","node","calculateState","updateVnodeState","state","counts","reduce","emitNodeCache","event","cache","$emit","updateFn","emitFn","old","descendants","getDescendants","parents","delete","isForced","changed","Map","descendant","set","calculated","getParents","entries","isParent","excludedItems","has","options","bind","themeClasses","_c","_self","loading","staticRenderFns","model","callback","checkedItems","expression","components","CoolLoading","required","get","val","component","searchTree","element","indexNode","result","getIdsFromIndexes","arrayTree","indexes","ids","index","id"],"mappings":"sOASA,MAAMA,EAAa,OAAAC,EAAA,MAAO,OAAW,eAAkB,aAC1CC,EAAqB,CAChCC,YAAaC,QACbC,YAAa,CACXC,KAAMC,OACNC,QAAS,2BAEXC,MAAO,CACLH,KAAMC,OACNC,QAAS,WAEXE,eAAgBN,QAChBO,WAAY,CACVL,KAAMC,OACNC,QAAS,aAEXI,kBAAmB,CACjBN,KAAMC,OACNC,QAAS,0BAEXK,aAAc,CACZP,KAAMC,OACNC,QAAS,YAEXM,aAAc,CACZR,KAAMC,OACNC,QAAS,YAEXO,QAAS,CACPT,KAAMC,OACNC,QAAS,MAEXQ,SAAU,CACRV,KAAMC,OACNC,QAAS,QAEXS,aAAcC,SACdC,YAAa,CACXb,KAAMC,OACNC,QAAS,YAEXY,QAAS,CACPd,KAAMC,OACNC,QAAS,gBAEXa,OAAQ,CACNf,KAAMC,OACNC,QAAS,eAEXc,YAAalB,QACbmB,QAASnB,QACToB,WAAYpB,QACZqB,cAAe,CACbnB,KAAMC,OACNC,QAAS,UAEXkB,OAAQtB,QACRuB,WAAYvB,QACZwB,cAAe,CACbtB,KAAMC,OACNC,QAAS,OACTqB,UAAWC,GAAK,CAAC,OAAQ,eAAeC,SAASD,KAK/CE,EAAgBhC,EAAWiC,SAASA,OAAO,CAC/CC,KAAM,kBACNC,OAAQ,CACNC,SAAU,CACR5B,QAAS,OAGb6B,MAAO,CACLC,MAAOC,OACPC,KAAM,CACJlC,KAAMmC,OACNjC,QAAS,IAAM,MAEjBkC,iBAAkBtC,WACfF,GAELyC,KAAM,KAAM,CACVC,WAAW,EACXC,UAAU,EACVC,iBAAiB,EACjBC,WAAW,EACXC,QAAQ,EAC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EAAI5I,KAAKsI,EAAQQ,QAKtBF,I","file":"js/Affichage~Inscription.3cca35b3.js","sourcesContent":["// Components\nimport { VExpandTransition } from '../transitions';\nimport { VIcon } from '../VIcon'; // Mixins\n\nimport { inject as RegistrableInject } from '../../mixins/registrable';\nimport Colorable from '../../mixins/colorable'; // Utils\n\nimport mixins from '../../util/mixins';\nimport { getObjectValueByPath, createRange } from '../../util/helpers';\nconst baseMixins = mixins(Colorable, RegistrableInject('treeview'));\nexport const VTreeviewNodeProps = {\n activatable: Boolean,\n activeClass: {\n type: String,\n default: 'v-treeview-node--active'\n },\n color: {\n type: String,\n default: 'primary'\n },\n disablePerNode: Boolean,\n expandIcon: {\n type: String,\n default: '$subgroup'\n },\n indeterminateIcon: {\n type: String,\n default: '$checkboxIndeterminate'\n },\n itemChildren: {\n type: String,\n default: 'children'\n },\n itemDisabled: {\n type: String,\n default: 'disabled'\n },\n itemKey: {\n type: String,\n default: 'id'\n },\n itemText: {\n type: String,\n default: 'name'\n },\n loadChildren: Function,\n loadingIcon: {\n type: String,\n default: '$loading'\n },\n offIcon: {\n type: String,\n default: '$checkboxOff'\n },\n onIcon: {\n type: String,\n default: '$checkboxOn'\n },\n openOnClick: Boolean,\n rounded: Boolean,\n selectable: Boolean,\n selectedColor: {\n type: String,\n default: 'accent'\n },\n shaped: Boolean,\n transition: Boolean,\n selectionType: {\n type: String,\n default: 'leaf',\n validator: v => ['leaf', 'independent'].includes(v)\n }\n};\n/* @vue/component */\n\nconst VTreeviewNode = baseMixins.extend().extend({\n name: 'v-treeview-node',\n inject: {\n treeview: {\n default: null\n }\n },\n props: {\n level: Number,\n item: {\n type: Object,\n default: () => null\n },\n parentIsDisabled: Boolean,\n ...VTreeviewNodeProps\n },\n data: () => ({\n hasLoaded: false,\n isActive: false,\n isIndeterminate: false,\n isLoading: false,\n isOpen: false,\n isSelected: false // Node is selected (checkbox)\n\n }),\n computed: {\n disabled() {\n return getObjectValueByPath(this.item, this.itemDisabled) || !this.disablePerNode && this.parentIsDisabled && this.selectionType === 'leaf';\n },\n\n key() {\n return getObjectValueByPath(this.item, this.itemKey);\n },\n\n children() {\n const children = getObjectValueByPath(this.item, this.itemChildren);\n return children && children.filter(child => !this.treeview.isExcluded(getObjectValueByPath(child, this.itemKey)));\n },\n\n text() {\n return getObjectValueByPath(this.item, this.itemText);\n },\n\n scopedProps() {\n return {\n item: this.item,\n leaf: !this.children,\n selected: this.isSelected,\n indeterminate: this.isIndeterminate,\n active: this.isActive,\n open: this.isOpen\n };\n },\n\n computedIcon() {\n if (this.isIndeterminate) return this.indeterminateIcon;else if (this.isSelected) return this.onIcon;else return this.offIcon;\n },\n\n hasChildren() {\n return !!this.children && (!!this.children.length || !!this.loadChildren);\n }\n\n },\n\n created() {\n this.treeview.register(this);\n },\n\n beforeDestroy() {\n this.treeview.unregister(this);\n },\n\n methods: {\n checkChildren() {\n return new Promise(resolve => {\n // TODO: Potential issue with always trying\n // to load children if response is empty?\n if (!this.children || this.children.length || !this.loadChildren || this.hasLoaded) return resolve();\n this.isLoading = true;\n resolve(this.loadChildren(this.item));\n }).then(() => {\n this.isLoading = false;\n this.hasLoaded = true;\n });\n },\n\n open() {\n this.isOpen = !this.isOpen;\n this.treeview.updateOpen(this.key, this.isOpen);\n this.treeview.emitOpen();\n },\n\n genLabel() {\n const children = [];\n if (this.$scopedSlots.label) children.push(this.$scopedSlots.label(this.scopedProps));else children.push(this.text);\n return this.$createElement('div', {\n slot: 'label',\n staticClass: 'v-treeview-node__label'\n }, children);\n },\n\n genPrependSlot() {\n if (!this.$scopedSlots.prepend) return null;\n return this.$createElement('div', {\n staticClass: 'v-treeview-node__prepend'\n }, this.$scopedSlots.prepend(this.scopedProps));\n },\n\n genAppendSlot() {\n if (!this.$scopedSlots.append) return null;\n return this.$createElement('div', {\n staticClass: 'v-treeview-node__append'\n }, this.$scopedSlots.append(this.scopedProps));\n },\n\n genContent() {\n const children = [this.genPrependSlot(), this.genLabel(), this.genAppendSlot()];\n return this.$createElement('div', {\n staticClass: 'v-treeview-node__content'\n }, children);\n },\n\n genToggle() {\n return this.$createElement(VIcon, {\n staticClass: 'v-treeview-node__toggle',\n class: {\n 'v-treeview-node__toggle--open': this.isOpen,\n 'v-treeview-node__toggle--loading': this.isLoading\n },\n slot: 'prepend',\n on: {\n click: e => {\n e.stopPropagation();\n if (this.isLoading) return;\n this.checkChildren().then(() => this.open());\n }\n }\n }, [this.isLoading ? this.loadingIcon : this.expandIcon]);\n },\n\n genCheckbox() {\n return this.$createElement(VIcon, {\n staticClass: 'v-treeview-node__checkbox',\n props: {\n color: this.isSelected || this.isIndeterminate ? this.selectedColor : undefined,\n disabled: this.disabled\n },\n on: {\n click: e => {\n e.stopPropagation();\n if (this.isLoading) return;\n this.checkChildren().then(() => {\n // We nextTick here so that items watch in VTreeview has a chance to run first\n this.$nextTick(() => {\n this.isSelected = !this.isSelected;\n this.isIndeterminate = false;\n this.treeview.updateSelected(this.key, this.isSelected);\n this.treeview.emitSelected();\n });\n });\n }\n }\n }, [this.computedIcon]);\n },\n\n genLevel(level) {\n return createRange(level).map(() => this.$createElement('div', {\n staticClass: 'v-treeview-node__level'\n }));\n },\n\n genNode() {\n const children = [this.genContent()];\n if (this.selectable) children.unshift(this.genCheckbox());\n\n if (this.hasChildren) {\n children.unshift(this.genToggle());\n } else {\n children.unshift(...this.genLevel(1));\n }\n\n children.unshift(...this.genLevel(this.level));\n return this.$createElement('div', this.setTextColor(this.isActive && this.color, {\n staticClass: 'v-treeview-node__root',\n class: {\n [this.activeClass]: this.isActive\n },\n on: {\n click: () => {\n if (this.openOnClick && this.hasChildren) {\n this.checkChildren().then(this.open);\n } else if (this.activatable && !this.disabled) {\n this.isActive = !this.isActive;\n this.treeview.updateActive(this.key, this.isActive);\n this.treeview.emitActive();\n }\n }\n }\n }), children);\n },\n\n genChild(item, parentIsDisabled) {\n return this.$createElement(VTreeviewNode, {\n key: getObjectValueByPath(item, this.itemKey),\n props: {\n activatable: this.activatable,\n activeClass: this.activeClass,\n item,\n selectable: this.selectable,\n selectedColor: this.selectedColor,\n color: this.color,\n disablePerNode: this.disablePerNode,\n expandIcon: this.expandIcon,\n indeterminateIcon: this.indeterminateIcon,\n offIcon: this.offIcon,\n onIcon: this.onIcon,\n loadingIcon: this.loadingIcon,\n itemKey: this.itemKey,\n itemText: this.itemText,\n itemDisabled: this.itemDisabled,\n itemChildren: this.itemChildren,\n loadChildren: this.loadChildren,\n transition: this.transition,\n openOnClick: this.openOnClick,\n rounded: this.rounded,\n shaped: this.shaped,\n level: this.level + 1,\n selectionType: this.selectionType,\n parentIsDisabled\n },\n scopedSlots: this.$scopedSlots\n });\n },\n\n genChildrenWrapper() {\n if (!this.isOpen || !this.children) return null;\n const children = [this.children.map(c => this.genChild(c, this.disabled))];\n return this.$createElement('div', {\n staticClass: 'v-treeview-node__children'\n }, children);\n },\n\n genTransition() {\n return this.$createElement(VExpandTransition, [this.genChildrenWrapper()]);\n }\n\n },\n\n render(h) {\n const children = [this.genNode()];\n if (this.transition) children.push(this.genTransition());else children.push(this.genChildrenWrapper());\n return h('div', {\n staticClass: 'v-treeview-node',\n class: {\n 'v-treeview-node--leaf': !this.hasChildren,\n 'v-treeview-node--click': this.openOnClick,\n 'v-treeview-node--disabled': this.disabled,\n 'v-treeview-node--rounded': this.rounded,\n 'v-treeview-node--shaped': this.shaped,\n 'v-treeview-node--selected': this.isSelected\n },\n attrs: {\n 'aria-expanded': String(this.isOpen)\n }\n }, children);\n }\n\n});\nexport default VTreeviewNode;\n//# sourceMappingURL=VTreeviewNode.js.map","import { getObjectValueByPath } from '../../../util/helpers';\nexport function filterTreeItem(item, search, textKey) {\n const text = getObjectValueByPath(item, textKey);\n return text.toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) > -1;\n}\nexport function filterTreeItems(filter, item, search, idKey, textKey, childrenKey, excluded) {\n if (filter(item, search, textKey)) {\n return true;\n }\n\n const children = getObjectValueByPath(item, childrenKey);\n\n if (children) {\n let match = false;\n\n for (let i = 0; i < children.length; i++) {\n if (filterTreeItems(filter, children[i], search, idKey, textKey, childrenKey, excluded)) {\n match = true;\n }\n }\n\n if (match) return true;\n }\n\n excluded.add(getObjectValueByPath(item, idKey));\n return false;\n}\n//# sourceMappingURL=filterTreeItems.js.map","// Styles\nimport \"../../../src/components/VTreeview/VTreeview.sass\"; // Components\n\nimport VTreeviewNode, { VTreeviewNodeProps } from './VTreeviewNode'; // Mixins\n\nimport Themeable from '../../mixins/themeable';\nimport { provide as RegistrableProvide } from '../../mixins/registrable'; // Utils\n\nimport { arrayDiff, deepEqual, getObjectValueByPath } from '../../util/helpers';\nimport mixins from '../../util/mixins';\nimport { consoleWarn } from '../../util/console';\nimport { filterTreeItems, filterTreeItem } from './util/filterTreeItems';\nexport default mixins(RegistrableProvide('treeview'), Themeable\n/* @vue/component */\n).extend({\n name: 'v-treeview',\n\n provide() {\n return {\n treeview: this\n };\n },\n\n props: {\n active: {\n type: Array,\n default: () => []\n },\n dense: Boolean,\n disabled: Boolean,\n filter: Function,\n hoverable: Boolean,\n items: {\n type: Array,\n default: () => []\n },\n multipleActive: Boolean,\n open: {\n type: Array,\n default: () => []\n },\n openAll: Boolean,\n returnObject: {\n type: Boolean,\n default: false // TODO: Should be true in next major\n\n },\n search: String,\n value: {\n type: Array,\n default: () => []\n },\n ...VTreeviewNodeProps\n },\n data: () => ({\n level: -1,\n activeCache: new Set(),\n nodes: {},\n openCache: new Set(),\n selectedCache: new Set()\n }),\n computed: {\n excludedItems() {\n const excluded = new Set();\n if (!this.search) return excluded;\n\n for (let i = 0; i < this.items.length; i++) {\n filterTreeItems(this.filter || filterTreeItem, this.items[i], this.search, this.itemKey, this.itemText, this.itemChildren, excluded);\n }\n\n return excluded;\n }\n\n },\n watch: {\n items: {\n handler() {\n const oldKeys = Object.keys(this.nodes).map(k => getObjectValueByPath(this.nodes[k].item, this.itemKey));\n const newKeys = this.getKeys(this.items);\n const diff = arrayDiff(newKeys, oldKeys); // We only want to do stuff if items have changed\n\n if (!diff.length && newKeys.length < oldKeys.length) return; // If nodes are removed we need to clear them from this.nodes\n\n diff.forEach(k => delete this.nodes[k]);\n const oldSelectedCache = [...this.selectedCache];\n this.selectedCache = new Set();\n this.activeCache = new Set();\n this.openCache = new Set();\n this.buildTree(this.items); // Only emit selected if selection has changed\n // as a result of items changing. This fixes a\n // potential double emit when selecting a node\n // with dynamic children\n\n if (!deepEqual(oldSelectedCache, [...this.selectedCache])) this.emitSelected();\n },\n\n deep: true\n },\n\n active(value) {\n this.handleNodeCacheWatcher(value, this.activeCache, this.updateActive, this.emitActive);\n },\n\n value(value) {\n this.handleNodeCacheWatcher(value, this.selectedCache, this.updateSelected, this.emitSelected);\n },\n\n open(value) {\n this.handleNodeCacheWatcher(value, this.openCache, this.updateOpen, this.emitOpen);\n }\n\n },\n\n created() {\n const getValue = key => this.returnObject ? getObjectValueByPath(key, this.itemKey) : key;\n\n this.buildTree(this.items);\n\n for (const value of this.value.map(getValue)) {\n this.updateSelected(value, true, true);\n }\n\n for (const active of this.active.map(getValue)) {\n this.updateActive(active, true);\n }\n },\n\n mounted() {\n // Save the developer from themselves\n if (this.$slots.prepend || this.$slots.append) {\n consoleWarn('The prepend and append slots require a slot-scope attribute', this);\n }\n\n if (this.openAll) {\n this.updateAll(true);\n } else {\n this.open.forEach(key => this.updateOpen(this.returnObject ? getObjectValueByPath(key, this.itemKey) : key, true));\n this.emitOpen();\n }\n },\n\n methods: {\n /** @public */\n updateAll(value) {\n Object.keys(this.nodes).forEach(key => this.updateOpen(getObjectValueByPath(this.nodes[key].item, this.itemKey), value));\n this.emitOpen();\n },\n\n getKeys(items, keys = []) {\n for (let i = 0; i < items.length; i++) {\n const key = getObjectValueByPath(items[i], this.itemKey);\n keys.push(key);\n const children = getObjectValueByPath(items[i], this.itemChildren);\n\n if (children) {\n keys.push(...this.getKeys(children));\n }\n }\n\n return keys;\n },\n\n buildTree(items, parent = null) {\n var _a;\n\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n const key = getObjectValueByPath(item, this.itemKey);\n const children = (_a = getObjectValueByPath(item, this.itemChildren)) !== null && _a !== void 0 ? _a : [];\n const oldNode = this.nodes.hasOwnProperty(key) ? this.nodes[key] : {\n isSelected: false,\n isIndeterminate: false,\n isActive: false,\n isOpen: false,\n vnode: null\n };\n const node = {\n vnode: oldNode.vnode,\n parent,\n children: children.map(c => getObjectValueByPath(c, this.itemKey)),\n item\n };\n this.buildTree(children, key); // This fixed bug with dynamic children resetting selected parent state\n\n if (this.selectionType !== 'independent' && parent !== null && !this.nodes.hasOwnProperty(key) && this.nodes.hasOwnProperty(parent)) {\n node.isSelected = this.nodes[parent].isSelected;\n } else {\n node.isSelected = oldNode.isSelected;\n node.isIndeterminate = oldNode.isIndeterminate;\n }\n\n node.isActive = oldNode.isActive;\n node.isOpen = oldNode.isOpen;\n this.nodes[key] = node;\n\n if (children.length && this.selectionType !== 'independent') {\n const {\n isSelected,\n isIndeterminate\n } = this.calculateState(key, this.nodes);\n node.isSelected = isSelected;\n node.isIndeterminate = isIndeterminate;\n } // Don't forget to rebuild cache\n\n\n if (this.nodes[key].isSelected && (this.selectionType === 'independent' || node.children.length === 0)) this.selectedCache.add(key);\n if (this.nodes[key].isActive) this.activeCache.add(key);\n if (this.nodes[key].isOpen) this.openCache.add(key);\n this.updateVnodeState(key);\n }\n },\n\n calculateState(node, state) {\n const children = state[node].children;\n const counts = children.reduce((counts, child) => {\n counts[0] += +Boolean(state[child].isSelected);\n counts[1] += +Boolean(state[child].isIndeterminate);\n return counts;\n }, [0, 0]);\n const isSelected = !!children.length && counts[0] === children.length;\n const isIndeterminate = !isSelected && (counts[0] > 0 || counts[1] > 0);\n return {\n isSelected,\n isIndeterminate\n };\n },\n\n emitOpen() {\n this.emitNodeCache('update:open', this.openCache);\n },\n\n emitSelected() {\n this.emitNodeCache('input', this.selectedCache);\n },\n\n emitActive() {\n this.emitNodeCache('update:active', this.activeCache);\n },\n\n emitNodeCache(event, cache) {\n this.$emit(event, this.returnObject ? [...cache].map(key => this.nodes[key].item) : [...cache]);\n },\n\n handleNodeCacheWatcher(value, cache, updateFn, emitFn) {\n value = this.returnObject ? value.map(v => getObjectValueByPath(v, this.itemKey)) : value;\n const old = [...cache];\n if (deepEqual(old, value)) return;\n old.forEach(key => updateFn(key, false));\n value.forEach(key => updateFn(key, true));\n emitFn();\n },\n\n getDescendants(key, descendants = []) {\n const children = this.nodes[key].children;\n descendants.push(...children);\n\n for (let i = 0; i < children.length; i++) {\n descendants = this.getDescendants(children[i], descendants);\n }\n\n return descendants;\n },\n\n getParents(key) {\n let parent = this.nodes[key].parent;\n const parents = [];\n\n while (parent !== null) {\n parents.push(parent);\n parent = this.nodes[parent].parent;\n }\n\n return parents;\n },\n\n register(node) {\n const key = getObjectValueByPath(node.item, this.itemKey);\n this.nodes[key].vnode = node;\n this.updateVnodeState(key);\n },\n\n unregister(node) {\n const key = getObjectValueByPath(node.item, this.itemKey);\n if (this.nodes[key]) this.nodes[key].vnode = null;\n },\n\n isParent(key) {\n return this.nodes[key].children && this.nodes[key].children.length;\n },\n\n updateActive(key, isActive) {\n if (!this.nodes.hasOwnProperty(key)) return;\n\n if (!this.multipleActive) {\n this.activeCache.forEach(active => {\n this.nodes[active].isActive = false;\n this.updateVnodeState(active);\n this.activeCache.delete(active);\n });\n }\n\n const node = this.nodes[key];\n if (!node) return;\n if (isActive) this.activeCache.add(key);else this.activeCache.delete(key);\n node.isActive = isActive;\n this.updateVnodeState(key);\n },\n\n updateSelected(key, isSelected, isForced = false) {\n if (!this.nodes.hasOwnProperty(key)) return;\n const changed = new Map();\n\n if (this.selectionType !== 'independent') {\n for (const descendant of this.getDescendants(key)) {\n if (!getObjectValueByPath(this.nodes[descendant].item, this.itemDisabled) || isForced) {\n this.nodes[descendant].isSelected = isSelected;\n this.nodes[descendant].isIndeterminate = false;\n changed.set(descendant, isSelected);\n }\n }\n\n const calculated = this.calculateState(key, this.nodes);\n this.nodes[key].isSelected = isSelected;\n this.nodes[key].isIndeterminate = calculated.isIndeterminate;\n changed.set(key, isSelected);\n\n for (const parent of this.getParents(key)) {\n const calculated = this.calculateState(parent, this.nodes);\n this.nodes[parent].isSelected = calculated.isSelected;\n this.nodes[parent].isIndeterminate = calculated.isIndeterminate;\n changed.set(parent, calculated.isSelected);\n }\n } else {\n this.nodes[key].isSelected = isSelected;\n this.nodes[key].isIndeterminate = false;\n changed.set(key, isSelected);\n }\n\n for (const [key, value] of changed.entries()) {\n this.updateVnodeState(key);\n if (this.selectionType === 'leaf' && this.isParent(key)) continue;\n value === true ? this.selectedCache.add(key) : this.selectedCache.delete(key);\n }\n },\n\n updateOpen(key, isOpen) {\n if (!this.nodes.hasOwnProperty(key)) return;\n const node = this.nodes[key];\n const children = getObjectValueByPath(node.item, this.itemChildren);\n\n if (children && !children.length && node.vnode && !node.vnode.hasLoaded) {\n node.vnode.checkChildren().then(() => this.updateOpen(key, isOpen));\n } else if (children && children.length) {\n node.isOpen = isOpen;\n node.isOpen ? this.openCache.add(key) : this.openCache.delete(key);\n this.updateVnodeState(key);\n }\n },\n\n updateVnodeState(key) {\n const node = this.nodes[key];\n\n if (node && node.vnode) {\n node.vnode.isSelected = node.isSelected;\n node.vnode.isIndeterminate = node.isIndeterminate;\n node.vnode.isActive = node.isActive;\n node.vnode.isOpen = node.isOpen;\n }\n },\n\n isExcluded(key) {\n return !!this.search && this.excludedItems.has(key);\n }\n\n },\n\n render(h) {\n const children = this.items.length ? this.items.filter(item => {\n return !this.isExcluded(getObjectValueByPath(item, this.itemKey));\n }).map(item => {\n const genChild = VTreeviewNode.options.methods.genChild.bind(this);\n return genChild(item, this.disabled || getObjectValueByPath(item, this.itemDisabled));\n })\n /* istanbul ignore next */\n : this.$slots.default; // TODO: remove type annotation with TS 3.2\n\n return h('div', {\n staticClass: 'v-treeview',\n class: {\n 'v-treeview--hoverable': this.hoverable,\n 'v-treeview--dense': this.dense,\n ...this.themeClasses\n }\n }, children);\n }\n\n});\n//# sourceMappingURL=VTreeview.js.map","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[(!_vm.loading)?_c('v-treeview',{attrs:{\"selectable\":\"\",\"item-key\":\"indexNode\",\"item-text\":\"nom\",\"items\":_vm.items,\"active-class\":\"grey lighten-4 indigo--text\",\"selected-color\":\"primary\",\"open-on-click\":\"\",\"open-all\":_vm.openAll,\"expand-icon\":\"mdi-chevron-down\",\"on-icon\":\"mdi-bookmark\",\"off-icon\":\"mdi-bookmark-outline\",\"indeterminate-icon\":\"mdi-bookmark-minus\",\"selection-type\":\"leaf\"},model:{value:(_vm.checkedItems),callback:function ($$v) {_vm.checkedItems=$$v},expression:\"checkedItems\"}}):_c('cool-loading')],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ArbrePostes.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ArbrePostes.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ArbrePostes.vue?vue&type=template&id=7809c756\"\nimport script from \"./ArbrePostes.vue?vue&type=script&lang=js\"\nexport * from \"./ArbrePostes.vue?vue&type=script&lang=js\"\nimport style0 from \"./ArbrePostes.vue?vue&type=style&index=0&id=7809c756&prod&lang=css\"\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","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ArbrePostes.vue?vue&type=style&index=0&id=7809c756&prod&lang=css\"","function searchTree(element, indexNode) {\r\n if (element.indexNode == indexNode) return element;\r\n\r\n if (element.children == null) return null;\r\n\r\n let result = null;\r\n for (let i = 0; result == null && i < element.children.length; i++) {\r\n result = searchTree(element.children[i], indexNode);\r\n }\r\n return result;\r\n}\r\n\r\nfunction getIdsFromIndexes(arrayTree, indexes) {\r\n const ids = [];\r\n\r\n indexes.forEach((index) => {\r\n for (let i = 0; i < arrayTree.length; i++) {\r\n const element = searchTree(arrayTree[i], index);\r\n if (element != null) {\r\n ids.push(element.id);\r\n }\r\n\r\n }\r\n });\r\n return ids;\r\n}\r\n\r\nexport { getIdsFromIndexes, searchTree }"],"sourceRoot":""}