1import{B as re,ap as oe,aF as ie,aa as M,aq as V,aE as B,a1 as ae,ad as le,be as de,U as m,a6 as se,o as s,c as p,l as b,i as v,e as F,p as ce,S as u,F as w,g as f,V as N,w as A,aY as ue,x as X,h as G,r as J,b as O,X as C,a4 as pe}from"./urvn2mMA.js";import{s as fe}from"./By_nZgBF.js";import{s as Z}from"./dfEXGU2w.js";import ge from"./7SNgteIc.js";import he from"./ii92wBHg.js";import ye from"./C4X-ri29.js";import{s as $}from"./BG1ZDQJG.js";import{s as be}from"./DvZwNOEP.js";import{s as me}from"./pfu6nMAp.js";import{s as ve}from"./Boz_VXqE.js";import{s as Ne}from"./r3LKBjMa.js";import De from"./CjZl19NC.js";import{R as Se}from"./Cdykrgqu.js";import{f as R}from"./ZhWAdK_X.js";import"./Bt0mKfRh.js";import"./D-HUwu8e.js";import"./DKRtfwr6.js";import"./DU9Ok93y.js";import"./jc0MLXVe.js";var ke=` 2 .p-tree { 3 display: block; 4 background: dt('tree.background'); 5 color: dt('tree.color'); 6 padding: dt('tree.padding'); 7 position: relative; 8 } 9 10 .p-tree-root-children, 11 .p-tree-node-children { 12 display: flex; 13 list-style-type: none; 14 flex-direction: column; 15 margin: 0; 16 gap: dt('tree.gap'); 17 } 18 19 .p-tree-root-children { 20 padding: 0; 21 padding-block-start: dt('tree.gap'); 22 } 23 24 .p-tree-node-children { 25 padding: 0; 26 padding-block-start: dt('tree.gap'); 27 padding-inline-start: dt('tree.indent'); 28 } 29 30 .p-tree-node { 31 padding: 0; 32 outline: 0 none; 33 } 34 35 .p-tree-node-content { 36 border-radius: dt('tree.node.border.radius'); 37 padding: dt('tree.node.padding'); 38 display: flex; 39 align-items: center; 40 outline-color: transparent; 41 color: dt('tree.node.color'); 42 gap: dt('tree.node.gap'); 43 transition: 44 background dt('tree.transition.duration'), 45 color dt('tree.transition.duration'), 46 outline-color dt('tree.transition.duration'), 47 box-shadow dt('tree.transition.duration'); 48 } 49 50 .p-tree-node-content[data-p-dragging] { 51 outline: 1px dashed dt('primary.color'); 52 outline-offset: -1px; 53 } 54 55 .p-tree-node-content[data-pc-section="drag-image"] { 56 background: dt('tree.background'); 57 } 58 59 .p-tree-node:focus-visible > .p-tree-node-content { 60 box-shadow: dt('tree.node.focus.ring.shadow'); 61 outline: dt('tree.node.focus.ring.width') dt('tree.node.focus.ring.style') dt('tree.node.focus.ring.color'); 62 outline-offset: dt('tree.node.focus.ring.offset'); 63 } 64 65 .p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover { 66 background: dt('tree.node.hover.background'); 67 color: dt('tree.node.hover.color'); 68 } 69 70 .p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover .p-tree-node-icon { 71 color: dt('tree.node.icon.hover.color'); 72 } 73 74 .p-tree-node-content.p-tree-node-selected { 75 background: dt('tree.node.selected.background'); 76 color: dt('tree.node.selected.color'); 77 } 78 79 .p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button { 80 color: inherit; 81 } 82 83 .p-tree-node-content.p-tree-node-dragover { 84 background: dt('tree.node.hover.background'); 85 color: dt('tree.node.hover.color'); 86 } 87 88 .p-tree-node-content:focus-visible, 89 .p-tree-node-content.p-tree-node-contextmenu-selected { 90 box-shadow: dt('tree.node.focus.ring.shadow'); 91 outline: dt('tree.node.focus.ring.width') dt('tree.node.focus.ring.style') dt('tree.node.focus.ring.color'); 92 outline-offset: dt('tree.node.focus.ring.offset'); 93 } 94 95 .p-tree-node-drop-point { 96 outline: 1px solid dt('primary.color'); 97 } 98 99 .p-tree-node-toggle-button { 100 cursor: pointer; 101 user-select: none; 102 display: inline-flex; 103 align-items: center; 104 justify-content: center; 105 overflow: hidden; 106 position: relative; 107 flex-shrink: 0; 108 width: dt('tree.node.toggle.button.size'); 109 height: dt('tree.node.toggle.button.size'); 110 color: dt('tree.node.toggle.button.color'); 111 border: 0 none; 112 background: transparent;
113 border-radius: dt('tree.node.toggle.button.border.radius'); 114 transition: 115 background dt('tree.transition.duration'), 116 color dt('tree.transition.duration'), 117 border-color dt('tree.transition.duration'), 118 outline-color dt('tree.transition.duration'), 119 box-shadow dt('tree.transition.duration'); 120 outline-color: transparent; 121 padding: 0; 122 } 123 124 .p-tree-node-toggle-button:enabled:hover { 125 background: dt('tree.node.toggle.button.hover.background'); 126 color: dt('tree.node.toggle.button.hover.color'); 127 } 128 129 .p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button:hover { 130 background: dt('tree.node.toggle.button.selected.hover.background'); 131 color: dt('tree.node.toggle.button.selected.hover.color'); 132 } 133 134 .p-tree-root { 135 overflow: auto; 136 } 137 138 .p-tree-node-selectable { 139 cursor: pointer; 140 user-select: none; 141 } 142 143 .p-tree-node-leaf > .p-tree-node-content .p-tree-node-toggle-button { 144 visibility: hidden; 145 } 146 147 .p-tree-node-icon { 148 color: dt('tree.node.icon.color'); 149 transition: color dt('tree.transition.duration'); 150 } 151 152 .p-tree-node-content.p-tree-node-selected .p-tree-node-icon { 153 color: dt('tree.node.icon.selected.color'); 154 } 155 156 .p-tree-filter { 157 margin: dt('tree.filter.margin'); 158 } 159 160 .p-tree-filter-input { 161 width: 100%; 162 } 163 164 .p-tree-loading-icon { 165 font-size: dt('tree.loading.icon.size'); 166 width: dt('tree.loading.icon.size'); 167 height: dt('tree.loading.icon.size'); 168 } 169 170 .p-tree .p-tree-mask { 171 position: absolute; 172 z-index: 1; 173 display: flex; 174 align-items: center; 175 justify-content: center; 176 } 177 178 .p-tree-flex-scrollable { 179 display: flex; 180 flex: 1; 181 height: 100%; 182 flex-direction: column; 183 } 184 185 .p-tree-flex-scrollable .p-tree-root { 186 flex: 1; 187 } 188`,xe={root:function(e){var n=e.props,o=e.state;return["p-tree p-component",{"p-tree-selectable":n.selectionMode!=null,"p-tree-loading":n.loading,"p-tree-flex-scrollable":n.scrollHeight==="flex","p-tree-node-dragover":o.dragHover}]},mask:"p-tree-mask p-overlay-mask",loadingIcon:"p-tree-loading-icon",pcFilterContainer:"p-tree-filter",pcFilterInput:"p-tree-filter-input",wrapper:"p-tree-root",rootChildren:"p-tree-root-children",node:function(e){var n=e.instance;return["p-tree-node",{"p-tree-node-leaf":n.leaf}]},nodeContent:function(e){var n=e.instance;return["p-tree-node-content",n.node.styleClass,{"p-tree-node-selectable":n.selectable,"p-tree-node-selected":n.checkboxMode&&n.$parentInstance.highlightOnSelect?n.checked:n.selected,"p-tree-node-dragover":n.isNodeDropActive}]},nodeToggleButton:"p-tree-node-toggle-button",nodeToggleIcon:"p-tree-node-toggle-icon",nodeCheckbox:"p-tree-node-checkbox",nodeIcon:"p-tree-node-icon",nodeLabel:"p-tree-node-label",nodeChildren:"p-tree-node-children",emptyMessage:"p-tree-empty-message",dropPoint:"p-tree-node-drop-point"},Ce=re.extend({name:"tree",style:ke,classes:xe}),Te={name:"BaseTree",extends:$,props:{value:{type:null,default:null},expandedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},metaKeySelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},loadingMode:{type:String,default:"mask"},filter:{type:Boolean,default:!1},filterBy:{type:[String,Function],default:"label"},filterMode:{type:String,default:"lenient"},filterPlaceholder:{type:String,default:null},filterLocale:{type:String,default:void 0},highlightOnSelect:{type:Boolean,default:!1},scrollHeight:{type:String,default:null},level:{type:Number,default:0},draggableNodes:{type:Boolean,default:null},droppableNodes:{type:Boolean,default:null},draggableScope:{type:[String,Array],default:null},droppableScope:{type:[String,Array],default:null},validateDrop:{type:Boolean,default:!1},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Ce,provide:function(){return{$pcTree:this,$parentInstance:this}}},D=de({isDragging:!1,dragNode:null,dragScope:null}),E=new Set,j=new Set;function we(){var t=function(r){D.isDragging=!0,D.dragNode=r.node,D.dragScope=r.scope,E.forEac
188h(function(a){return a(r)})},e=function(r){D.isDragging=!1,D.dragNode=null,D.dragScope=null,j.forEach(function(a){return a(r)})},n=function(r){return E.add(r),function(){return E.delete(r)}},o=function(r){return j.add(r),function(){return j.delete(r)}};return{dragState:D,startDrag:t,stopDrag:e,onDragStart:n,onDragStop:o}}function P(t){"@babel/helpers - typeof";return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(t)}function U(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=_(t))||e){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 189In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,r=c},f:function(){try{a||n.return==null||n.return()}finally{if(l)throw r}}}}function k(t){return Ke(t)||Ie(t)||_(t)||Pe()}function Pe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 190In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(t,e){if(t){if(typeof t=="string")return L(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}function Ie(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ke(t){if(Array.isArray(t))return L(t)}function L(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?z(Object(n),!0).forEach(function(o){Oe(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Oe(t,e,n){return(e=Ae(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ae(t){var e=Me(t,"string");return P(e)=="symbol"?e:e+""}function Me(t,e){if(P(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(P(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ee={name:"TreeNode",hostName:"Tree",extends:$,emits:["node-toggle","node-click","checkbox-change","node-drop","value-change","node-dragenter","node-dragleave"],props:{node:{type:null,default:null},parentNode:{type:null,default:null},rootNodes:{type:Object,default:null},expandedKeys:{type:null,default:null},loadingMode:{type:String,default:"mask"},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},templates:{type:null,default:null},level:{type:Number,default:null},draggableScope:{type:[String,Array],default:null},draggableNodes:{type:Boolean,default:null},droppableNodes:{type:Boolean,default:null},validateDrop:{type:Boolean,default:!1},index:null},nodeTouched:!1,toggleClicked:!1,inject:{$pcTree:{default:void 0}},data:function(){return{isPrevDropPointHovered:!1,isNextDropPointHovered:!1,isNodeDropHovered:!1}},mounted:function(){this.setAllNodesTabIndexes()},methods:{toggle:function(){this.$emit("node-toggle",this.node),this.toggleClicked=!0},label:function(e){return typeof e.label=="function"?e.label():e.label},onChildNodeToggle:function(e){this.$emit("node-toggle",e)},getPTOptions:function(e){return this.ptm(e,{context:{node:this.node,index:this.index,exp
190anded:this.expanded,selected:this.selected,checked:this.checked,partialChecked:this.partialChecked,leaf:this.leaf}})},onClick:function(e){if(this.toggleClicked||M(e.target,'[data-pc-section="nodetogglebutton"]')||M(e.target.parentElement,'[data-pc-section="nodetogglebutton"]')){this.toggleClicked=!1;return}this.isCheckboxSelectionMode()?this.node.selectable!=!1&&this.toggleCheckbox():this.$emit("node-click",{originalEvent:e,nodeTouched:this.nodeTouched,node:this.node}),this.nodeTouched=!1},onChildNodeClick:function(e){this.$emit("node-click",e)},onTouchEnd:function(){this.nodeTouched=!0},onKeyDown:function(e){if(this.isSameNode(e))switch(e.code){case"Tab":this.onTabKey(e);break;case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e);break}},onArrowDown:function(e){var n=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?e.target.closest('[role="treeitem"]'):e.target,o=n.children[1];if(o)this.focusRowChange(n,o.children[0]);else if(n.nextElementSibling)this.focusRowChange(n,n.nextElementSibling);else{var i=this.findNextSiblingOfAncestor(n);i&&this.focusRowChange(n,i)}e.preventDefault()},onArrowUp:function(e){var n=e.target;if(n.previousElementSibling)this.focusRowChange(n,n.previousElementSibling,this.findLastVisibleDescendant(n.previousElementSibling));else{var o=this.getParentNodeElement(n);o&&this.focusRowChange(n,o)}e.preventDefault()},onArrowRight:function(e){var n=this;this.leaf||this.expanded||(e.currentTarget.tabIndex=-1,this.$emit("node-toggle",this.node),this.$nextTick(function(){n.onArrowDown(e)}))},onArrowLeft:function(e){var n=V(e.currentTarget,'[data-pc-section="nodetogglebutton"]');if(this.level===0&&!this.expanded)return!1;if(this.expanded&&!this.leaf)return n.click(),!1;var o=this.findBeforeClickableNode(e.currentTarget);o&&this.focusRowChange(e.currentTarget,o)},onEnterKey:function(e){this.setTabIndexForSelectionMode(e,this.nodeTouched),this.onClick(e),e.preventDefault()},onTabKey:function(){this.setAllNodesTabIndexes()},removeNodeFromTree:function(e,n){var o=this;return e.reduce(function(i,r){if(r.key===n.key)return i;if(r.children&&r.children.length>0){var a=o.removeNodeFromTree(r.children,n);i.push(y(y({},r),{},{children:a}))}else i.push(r);return i},[])},insertNodeInSiblings:function(e,n,o,i){var r=this,a=e.findIndex(function(l){return l.key===n});return a!==-1?e.toSpliced(a+i,0,o):e.map(function(l){return l.children&&l.children.length>0?y(y({},l),{},{children:r.insertNodeInSiblings(l.children,n,o,i)}):l})},addNodeAsChild:function(e,n,o){var i=this;return e.map(function(r){return r.key===n?y(y({},r),{},{children:[].concat(k(r.children||[]),[o])}):r.children&&r.children.length>0?y(y({},r),{},{children:i.addNodeAsChild(r.children,n,o)}):r})},insertNodeOnDrop:function(){var e=this.$pcTree,n=e.dragNode,o=e.dragNodeIndex,i=e.dragNodeSubNodes,r=e.dragDropService;if(!this.node||o==null||!n||!i)return null;var a=this.dropPosition,l=this.removeNodeFromTree(this.rootNodes,n);
190return a<0?l=this.insertNodeInSiblings(l,this.node.key,n,0):a>0?l=this.insertNodeInSiblings(l,this.node.key,n,1):l=this.addNodeAsChild(l,this.node.key,n),this.$emit("value-change",{nodes:l}),r.stopDrag({node:n,subNodes:l,index:o}),l},onNodeDrop:function(e){var n=this;if(this.isDroppable){e.preventDefault(),e.stopPropagation();var o=this.$pcTree.dragNode,i=this.dropPosition,r=i!==0||i===0&&this.isNodeDroppable;if(r)if(this.validateDrop)this.$emit("node-drop",{originalEvent:e,value:this.rootNodes,dragNode:o,dropNode:this.node,dropPosition:i,index:this.index,accept:function(){var d=n.insertNodeOnDrop();n.$emit("node-drop",{originalEvent:e,value:d,dragNode:o,dropNode:n.node,dropPosition:i,index:n.index})}});else{var a=this.insertNodeOnDrop();this.$emit("node-drop",{originalEvent:e,value:a,dragNode:o,dropNode:this.node,dropPosition:i,index:this.index})}this.isPrevDropPointHovered=!1,this.isNextDropPointHovered=!1,this.isNodeDropHovered=!1}},onNodeDragStart:function(e){if(this.isNodeDraggable){e.dataTransfer.effectAllowed="all",e.dataTransfer.setData("text","data");var n=e.currentTarget,o=n.cloneNode(!0),i=o.querySelector('[data-pc-section="nodetogglebutton"]'),r=o.querySelector('[data-pc-name="pcnodecheckbox"]');n.setAttribute("data-p-dragging","true"),o.style.width=ae(n)+"px",o.style.height=le(n)+"px",o.setAttribute("data-pc-section","drag-image"),i.style.visibility="hidden",r?.remove(),document.body.appendChild(o),e.dataTransfer.setDragImage(o,0,0),setTimeout(function(){return document.body.removeChild(o)}
190,0),this.$pcTree.dragDropService.startDrag({node:this.node,subNodes:this.subNodes,index:this.index,scope:this.draggableScope})}else e.preventDefault()},onNodeDragOver:function(e){if(this.isDroppable){e.dataTransfer.dropEffect="copy";var n=e.currentTarget,o=n.getBoundingClientRect(),i=e.clientY-o.top;this.isPrevDropPointHovered=!1,this.isNextDropPointHovered=!1,this.isNodeDropHovered=!1,i<o.height*.25?this.isPrevDropPointHovered=!0:i>o.height*.75?this.isNextDropPointHovered=!0:this.isNodeDroppable&&(this.isNodeDropHovered=!0)}else e.dataTransfer.dropEffect="none";this.droppableNodes&&(e.preventDefault(),e.stopPropagation())},onNodeDragEnter:function(){this.$emit("node-dragenter",{node:this.node})},onNodeDragLeave:function(){this.$emit("node-dragleave",{node:this.node}),this.isPrevDropPointHovered=!1,this.isNextDropPointHovered=!1,this.isNodeDropHovered=!1},onNodeDragEnd:function(e){var n;(n=e.currentTarget)===null||n===void 0||n.removeAttribute("data-p-dragging"),this.$pcTree.dragDropService.stopDrag({node:this.node,subNodes:this.subNodes,index:this.index})},setAllNodesTabIndexes:function(){var e=B(this.$refs.currentNode.closest('[data-pc-section="rootchildren"]'),'[role="treeitem"]'),n=k(e).some(function(i){return i.getAttribute("aria-selected")==="true"||i.getAttribute("aria-checked")==="true"});if(k(e).forEach(function(i){i.tabIndex=-1}),n){var o=k(e).filter(function(i){return i.getAttribute("aria-selected")==="true"||i.getAttribute("aria-checked")==="true"});o[0].tabIndex=0;return}k(e)[0].tabIndex=0},setTabIndexForSelectionMode:function(e,n){if(this.selectionMode!==null){var o=k(B(this.$refs.currentNode.parentElement,'[role="treeitem"]'));e.currentTarget.tabIndex=n===!1?-1:0,o.every(function(i){return i.tabIndex===-1})&&(o[0].tabIndex=0)}},focusRowChange:function(e,n,o){e.tabIndex="-1",n.tabIndex="0",this.focusNode(o||n)},findBeforeClickableNode:function(e){var n=e.closest("ul").closest("li");if(n){var o=V(n,"button");return o&&o.style.visibility!=="hidden"?n:this.findBeforeClickableNode(e.previousElementSibling)}return null},toggleCheckbox:function(){var e=this.selectionKeys?y({},this.selectionKeys):{},n=!this.checked;this.propagateDown(this.node,n,e),this.$emit("checkbox-change",{node:this.node,check:n,selectionKeys:e})},propagateDown:function(e,n,o){if(n&&e.selectable!=!1?o[e.key]={checked:!0,partialChecked:!1}:delete o[e.key],e.children&&e.children.length){var i=U(e.children),r;try{for(i.s();!(r=i.n()).done;){var a=r.value;this.propagateDown(a,n,o)}}catch(l){i.e(l)}finally{i.f()}}},propagateUp:function(e){var n=e.check,o=y({},e.selectionKeys),i=0,r=!1,a=U(this.node.children),l;try{for(a.s();!(l=a.n()).done;){var d=l.value;o[d.key]&&o[d.key].checked?i++:o[d.key]&&o[d.key].partialChecked&&(r=!0)}}catch(c){a.e(c)}finally{a.f()}n&&i===this.node.children.length?o[this.node.key]={checked:!0,partialChecked:!1}:(n||delete o[this.node.key],r||i>0&&i!==this.node.children.length?o[this.node.key]={checked:!1,partialChecked:!0}:delete o[this.node.key]),this.$emit("checkbox-change",{node:e.node,check:e.check,selectionKeys:o})},onChildCheckboxChange:function(e){this.$emit("checkbox-change",e)},findNextSiblingOfAncestor:function(e){var n=this.getParentNodeElement(e);return n?n.nextElementSibling?n.nextElementSibling:this.findNextSiblingOfAncestor(n):null},findLastVisibleDescendant:function(e){var n=e.children[1];if(n){var o=n.children[n.children.length-1];return this.findLastVisibleDescendant(o)}else return e},getParentNodeElement:function(e){var n=e.parentElement.parentElement;return M(n,"role")==="treeitem"?n:null},focusNode:function(e){e.focus()},isCheckboxSelectionMode:function(){return this.selectionMode==="checkbox"},isSameNode:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}},computed:{hasChildren:function(){return this.node.children&&this.node.children.length>0},expanded:function(){return this.expandedKeys&&this.expandedKeys[this.node.key]===!0},leaf:function(){return this.node.leaf===!1?!1:!(this.node.children&&this.node.children.length)},selectable:function(){return this.node.selectable===!1?!1:this.selectionMode!=null},selected:function(){return this.selectionMode&&this.selectionKeys?this.selectionKeys[this.node.key]===!0:!1}
190,checkboxMode:function(){return this.selectionMode==="checkbox"&&this.node.selectable!==!1},checked:function(){return this.selectionKeys?this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].checked:!1},partialChecked:function(){return this.selectionKeys?this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].partialChecked:!1},ariaChecked:function(){return this.selectionMode==="single"||this.selectionMode==="multiple"?this.selected:void 0},ariaSelected:function(){return this.checkboxMode?this.checked:void 0},isPrevDropPointActive:function(){return this.isPrevDropPointHovered&&this.isDroppable},isNextDropPointActive:function(){return this.isNextDropPointHovered&&this.isDroppable},dropPosition:function(){return this.isPrevDropPointActive?-1:this.isNextDropPointActive?1:0},subNodes:function(){return this.parentNode?this.parentNode.children:this.rootNodes},isDraggable:function(){return this.draggableNodes},isDroppable:function(){return this.droppableNodes&&this.$pcTree.allowNodeDrop(this.node)},isNodeDraggable:function(){var e;return((e=this.node)===null||e===void 0?void 0:e.draggable)!==!1&&this.isDraggable},isNodeDroppable:function(){var e;return((e=this.node)===null||e===void 0?void 0:e.droppable)!==!1&&this.isDroppable},isNodeDropActive:function(){return this.isNodeDropHovered&&this.isNodeDroppable}},components:{Checkbox:De,ChevronDownIcon:me,ChevronRightIcon:ve,CheckIcon:be,MinusIcon:Ne,SpinnerIcon:Z},directives:{ripple:Se}},Ee=["aria-label","aria-selected","aria-expanded","aria-setsize","aria-posinset","aria-level","aria-checked","tabindex"],je=["draggable","data-p-selected","data-p-selectable"],Fe=["data-p-leaf"];function Le(t,e,n,o,i,r){var a=m("SpinnerIcon"),l=m("Checkbox"),d=m("TreeNode",!0),c=se("ripple");return s(),p("li",u({ref:"currentNode",class:t.cx("node"),role:"treeitem","aria-label":r.label(n.node),"aria-selected":r.ariaSelected,"aria-expanded":r.expanded,"aria-setsize":n.node.children?n.node.children.length:0,"aria-posinset":n.index+1,"aria-level":n.level,"aria-checked":r.ariaChecked,tabindex:n.index===0?0:-1,onKeydown:e[14]||(e[14]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)})},r.getPTOptions("node")),[r.isPrevDropPointActive?(s(),p("div",{key:0,class:b(t.cx("dropPoint")),"aria-hidden":"true"},null,2)):v("",!0),F("div",u({class:t.cx("nodeContent"),style:n.node.style,draggable:r.isDraggable,onClick:e[2]||(e[2]=function(){return r.onClick&&r.onClick.apply(r,arguments)}),onTouchend:e[3]||(e[3]=function(){return r.onTouchEnd&&r.onTouchEnd.apply(r,arguments)}),onDragstart:e[4]||(e[4]=function(){return r.onNodeDragStart&&r.onNodeDragStart.apply(r,arguments)}),onDragover:e[5]||(e[5]=function(){return r.onNodeDragOver&&r.onNodeDragOver.apply(r,arguments)}),onDragenter:e[6]||(e[6]=function(){return r.onNodeDragEnter&&r.onNodeDragEnter.apply(r,arguments)}),onDragleave:e[7]||(e[7]=function(){return r.onNodeDragLeave&&r.onNodeDragLeave.apply(r,arguments)}),onDragend:e[8]||(e[8]=function(){return r.onNodeDragEnd&&r.onNodeDragEnd.apply(r,arguments)}),onDrop:e[9]||(e[9]=function(){return r.onNodeDrop&&r.onNodeDrop.apply(r,arguments)})},r.getPTOptions("nodeContent"),{"data-p-selected":r.checkboxMode?r.checked:r.selected,"data-p-selectable":r.selectable}),[ce((s(),p("button",u({type:"button",class:t.cx("nodeToggleButton"),onClick:e[0]||(e[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)}),tabindex:"-1","data-p-leaf":r.leaf},r.getPTOptions("nodeToggleButton")),[n.node.loading&&n.loadingMode==="icon"?(s(),p(w,{key:0},[n.templates.nodetoggleicon||n.templates.nodetogglericon?(s(),f(N(n.templates.nodetoggleicon||n.templates.nodetogglericon),{key:0,node:n.node,expanded:r.expanded,class:b(t.cx("nodeToggleIcon"))},null,8,["node","expanded","class"])):(s(),f(a,u({key:1,spin:"",class:t.cx("nodeToggleIcon")},r.getPTOptions("nodeToggleIcon")),null,16,["class"]))],64)):(s(),p(w,{key:1},[n.templates.nodetoggleicon||n.templates.togglericon?(s(),f(N(n.templates.nodetoggleicon||n.templates.togglericon),{key:0,node:n.node,expanded:r.expanded,class:b(t.cx("nodeToggleIcon"))},null,8,["node","expanded","class"])):r.expanded?(s(),f(N(n.node.expandedIcon?"span":"ChevronDownIcon"),u({key:1,class:t.cx("nodeToggleIcon")},r.getPTOptions("nodeToggleIcon")),null,16,["class"])):(s(),f(N(n.node.collapsedIcon?"span":"ChevronRightIcon"),u({key:2,class:t.cx("nodeToggleIcon")},r.getPTOptions("nodeToggleIcon")),null,16,["class"]))],64))],16,Fe)),[[c]]),r.checkboxMo
190de?(s(),f(l,{key:0,defaultValue:r.checked,binary:!0,indeterminate:r.partialChecked,class:b(t.cx("nodeCheckbox")),tabindex:-1,unstyled:t.unstyled,pt:r.getPTOptions("pcNodeCheckbox"),"data-p-partialchecked":r.partialChecked},{icon:A(function(h){return[n.templates.checkboxicon?(s(),f(N(n.templates.checkboxicon),{key:0,checked:h.checked,partialChecked:r.partialChecked,class:b(h.class)},null,8,["checked","partialChecked","class"])):v("",!0)]}),_:1},8,["defaultValue","indeterminate","class","unstyled","pt","data-p-partialchecked"])):v("",!0),n.templates.nodeicon?(s(),f(N(n.templates.nodeicon),u({key:1,node:n.node,class:[t.cx("nodeIcon")]},r.getPTOptions("nodeIcon")),null,16,["node","class"])):(s(),p("span",u({key:2,class:[t.cx("nodeIcon"),n.node.icon]},r.getPTOptions("nodeIcon")),null,16)),F("span",u({class:t.cx("nodeLabel")},r.getPTOptions("nodeLabel"),{onKeydown:e[1]||(e[1]=ue(function(){},["stop"]))}),[n.templates[n.node.type]||n.templates.default?(s(),f(N(n.templates[n.node.type]||n.templates.default),{key:0,node:n.node,expanded:r.expanded,selected:r.checkboxMode?r.checked:r.selected},null,8,["node","expanded","selected"])):(s(),p(w,{key:1},[X(G(r.label(n.node)),1)],64))],16)],16,je),r.isNextDropPointActive?(s(),p("div",{key:1,class:b(t.cx("dropPoint")),"aria-hidden":"true"},null,2)):v("",!0),r.hasChildren&&r.expanded?(s(),p("ul",u({key:2,class:t.cx("nodeChildren"),role:"group"},t.ptm("nodeChildren")),[(s(!0),p(w,null,J(n.node.children,function(h,x){return s(),f(d,{key:h.key,node:h,parentNode:n.node,rootNodes:n.rootNodes,templates:n.templates,level:n.level+1,index:x,loadingMode:n.loadingMode,expandedKeys:n.expandedKeys,onNodeToggle:r.onChildNodeToggle,onNodeClick:r.onChildNodeClick,selectionMode:n.selectionMode,selectionKeys:n.selectionKeys,onCheckboxChange:r.propagateUp,draggableScope:n.draggableScope,draggableNodes:n.draggableNodes,droppableNodes:n.droppableNodes,validateDrop:n.validateDrop,onNodeDrop:e[10]||(e[10]=function(g){return t.$emit("node-drop",g)}),onNodeDragenter:e[11]||(e[11]=function(g){return t.$emit("node-dragenter",g)}),onNodeDragleave:e[12]||(e[12]=function(g){return t.$emit("node-dragleave",g)}),onValueChange:e[13]||(e[13]=function(g){return t.$emit("value-change",g)}),unstyled:t.unstyled,pt:t.pt},null,8,["node","parentNode","rootNodes","templates","level","index","loadingMode","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","draggableScope","draggableNodes","droppableNodes","validateDrop","unstyled","pt"])}),128))],16)):v("",!0)],16,Ee)}ee.render=Le;function I(t){"@babel/helpers - typeof";return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(t)}function T(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=te(t))||e){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 191In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,r=c},f:function(){try{a||n.return==null||n.return()}finally{if(l)throw r}}}}function W(t){return Be(t)||Ve(t)||te(t)||He()}function He(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 192In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(t,e){if(t){if(typeof t=="string")return H(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(t,e):void 0}}function Ve(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Be(t){if(Array.isArray(t))return H(t)}function H(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
192e%2?q(Object(n),!0).forEach(function(o){Re(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Re(t,e,n){return(e=Ue(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ue(t){var e=ze(t,"string");return I(e)=="symbol"?e:e+""}function ze(t,e){if(I(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(I(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var We={name:"Tree",extends:Te,inheritAttrs:!1,emits:["node-expand","node-collapse","update:expandedKeys","update:selectionKeys","node-select","node-unselect","filter","node-drop","node-dragenter","node-dragleave","update:value","drag-enter","drag-leave"],data:function(){return{d_expandedKeys:this.expandedKeys||{},filterValue:null,dragNode:null,dragNodeSubNodes:null,dragNodeIndex:null,dragNodeScope:null,dragHover:null}},inject:{$pcTreeSelect:{default:null}},dragDropService:null,dragStartCleanup:null,dragStopCleanup:null,watch:{expandedKeys:function(e){this.d_expandedKeys=e},droppableNodes:function(e){e?this.initDragDropService():this.cleanupDragDropService()}},mounted:function(){this.droppableNodes&&this.initDragDropService()},beforeUnmount:function(){this.cleanupDragDropService()},methods:{initDragDropService:function(){var e=this;this.dragDropService||(this.dragDropService=we(),this.dragStartCleanup=this.dragDropService.onDragStart(function(n){e.dragNode=n.node,e.dragNodeSubNodes=n.subNodes,e.dragNodeIndex=n.index,e.dragNodeScope=n.scope}),this.dragStopCleanup=this.dragDropService.onDragStop(function(){e.dragNode=null,e.dragNodeSubNodes=null,e.dragNodeIndex=null,e.dragNodeScope=null,e.dragHover=!1}))},cleanupDragDropService:function(){this.dragStartCleanup&&(this.dragStartCleanup(),this.dragStartCleanup=null),this.dragStopCleanup&&(this.dragStopCleanup(),this.dragStopCleanup=null),this.dragDropService=null},onNodeToggle:function(e){var n=e.key;this.d_expandedKeys[n]?(delete this.d_expandedKeys[n],this.$emit("node-collapse",e)):(this.d_expandedKeys[n]=!0,this.$emit("node-expand",e)),this.d_expandedKeys=S({},this.d_expandedKeys),this.$emit("update:expandedKeys",this.d_expandedKeys)},onNodeClick:function(e){if(this.selectionMode!=null&&e.node.selectable!==!1){var n=e.nodeTouched?!1:this.metaKeySelection,o=n?this.handleSelectionWithMetaKey(e):this.handleSelectionWithoutMetaKey(e);this.$emit("update:selectionKeys",o)}},onCheckboxChange:function(e){this.$emit("update:selectionKeys",e.selectionKeys),e.check?this.$emit("node-select",e.node):this.$emit("node-unselect",e.node)},handleSelectionWithMetaKey:function(e){var n=e.originalEvent,o=e.node,i=n.metaKey||n.ctrlKey,r=this.isNodeSelected(o),a;return r&&i?(this.isSingleSelectionMode()?a={}:(a=S({},this.selectionKeys),delete a[o.key]),this.$emit("node-unselect",o)):(this.isSingleSelectionMode()?a={}:this.isMultipleSelectionMode()&&(a=i?this.selectionKeys?S({},this.selectionKeys):{}:{}),a[o.key]=!0,this.$emit("node-select",o)),a},handleSelectionWithoutMetaKey:function(e){var n=e.node,o=this.isNodeSelected(n),i;return this.isSingleSelectionMode()?o?(i={},this.$emit("node-unselect",n)):(i={},i[n.key]=!0,this.$emit("node-select",n)):o?(i=S({},this.selectionKeys),delete i[n.key],this.$emit("node-unselect",n)):(i=this.selectionKeys?S({},this.selectionKeys):{},i[n.key]=!0,this.$emit("node-select",n)),i},isSingleSelectionMode:function(){return this.selectionMode==="single"},isMultipleSelectionMode:function(){return this.selectionMode==="multiple"},isNodeSelected:function(e){return this.selectionMode&&this.selectionKeys?this.selectionKeys[e.key]===!0:!1},isChecked:function(e){return this.selectionKeys?this.selectionKeys[e.key]&&this.selectionKeys[e.key].checked:!1},isNodeLeaf:function(e){return e.leaf===!1?!1:!(e.children&&e.children.length)},onFilterKeyup:function(e){(e.code==="Enter"||e.code==="NumpadEnter")&&e.preventDefault(),this.$emit("filter",{originalEvent:e,value:e.target.value,filteredNodes:this.valueToRender})},findFilteredNodes:function(e,n){if(e){var o=!1;if(e.children){var i=W(e.children);e.children=[];var r=T(i),a;try{for(r.s();!(a=r.n()).done;){var l=a.value,d=S({},l);this.isFilterMatched(d,n)&&(o=!0,e.children.push(d))}}catch(c){r.e(c)}finally{r.f()}}if(o)return!0}},isFilterMatched:function(e,n){var o=n.searchFields,i=n.filterText,r=n.strict,a=!1,l=T(o),d;try{for(l.s();!(d=l.n()).done;){var c=d.value,h=String(ie(e,c)).toLocaleLowerCase(this.filterLocale);h.indexOf(i)>-1&&(a=!0)}}catch(x){l.e(x)}finally{l.f()}return(!a||r&&!this.isNodeLeaf(e))&&(a=this.findFilteredNodes(e,{searchFields:o,filterText:i,strict:r})||a),a},onNodeDrop:function(e){this.$emit("node-drop",e)},onNodeDragEnter:function(e){this.$emit("node-dragenter",e)},onNodeDragLeave:function(e){this.$emit("node-dragleave",e)},onValueChanged:function(e){this.dragNodeSubNodes.splice(this.dragNodeIndex,1),this.$emit("update:value",e.nodes)},isDescendantOf:function(e,n){if(!e||!e.children)return!1;var o=T(e.children),i;try{for(o.s();!(i=o.n()).done;){var r=i.value;if(r===n||this.isDescendantOf(r,n))return!0}}catch(a){o.e(a)}finally{o.f()}return!1},allowDrop:function(e,n,o){return!(!e||!this.isValidDragScope(o)||n&&(e===n||this.isDescendantOf(e,n)))},allowNodeDrop:function(e){return this.allowDrop(this.dragNode,e,this.dragNodeScope)},hasCommonScope:function(e,n){if(e===null&&n===null)return!0;
192if(e===null||n===null)return!1;if(typeof n=="string"){if(typeof e=="string")return e===n;if(Array.isArray(e))return e.indexOf(n)!==-1}else if(Array.isArray(n)){if(typeof e=="string")return n.indexOf(e)!==-1;if(Array.isArray(e)){var o=T(e),i;try{for(o.s();!(i=o.n()).done;){var r=i.value;if(n.indexOf(r)!==-1)return!0}}catch(a){o.e(a)}finally{o.f()}return!1}}return!1},isValidDragScope:function(e){return this.droppableScope===null?!0:this.hasCommonScope(e,this.droppableScope)},isSameTreeScope:function(e){return this.hasCommonScope(e,this.draggableScope)},onDragOver:function(e){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)?e.dataTransfer.dropEffect="copy":e.dataTransfer.dropEffect="none",e.preventDefault()},onDragEnter:function(e){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(this.dragHover=!0,this.$emit("drag-enter",{originalEvent:e,value:this.value,dragNode:this.dragNode,dragNodeScope:this.dragNodeScope}))},onDragLeave:function(e){if(this.droppableNodes){var n=e.currentTarget.getBoundingClientRect();(e.x>=parseInt(n.right)||e.x<=parseInt(n.left)||e.y>=parseInt(n.bottom)||e.y<=parseInt(n.top))&&(this.dragHover=!1),this.$emit("drag-leave",{originalEvent:e,value:this.value,dragNode:this.dragNode,dragNodeScope:this.dragNodeScope})}},processTreeDrop:function(e,n){this.dragNodeSubNodes.splice(n,1);var o=[].concat(W(this.value||[]),[e]);this.$emit("update:value",o),this.dragDropService.stopDrag({node:e})},onDrop:function(e){var n=this;if(this.droppableNodes){e.preventDefault();var o=this.dragNode;if(this.allowDrop(o,null,this.dragNodeScope)){var i=this.dragNodeIndex;if(this.isSameTreeScope(this.dragNodeScope)){this.dragDropService.stopDrag({node:o});return}this.validateDrop?this.$emit("node-drop",{originalEvent:e,value:this.value,dragNode:o,dropNode:null,index:i,accept:function(){n.processTreeDrop(o,i)}}):(this.$emit("node-drop",{originalEvent:e,value:this.value,dragNode:o,dropNode:null,index:i}),this.processTreeDrop(o,i))}}}},computed:{filteredValue:function(){var e=[],n=oe(this.filterBy)?[this.filterBy]:this.filterBy.split(","),o=this.filterValue.trim().toLocaleLowerCase(this.filterLocale),i=this.filterMode==="strict",r=T(this.value),a;try{for(r.s();!(a=r.n()).done;){var l=a.value,d=S({},l),c={searchFields:n,filterText:o,strict:i};(i&&(this.findFilteredNodes(d,c)||this.isFilterMatched(d,c))||!i&&(this.isFilterMatched(d,c)||this.findFilteredNodes(d,c)))&&e.push(d)}}catch(h){r.e(h)}finally{r.f()}return e},valueToRender:function(){return this.filterValue&&this.filterValue.trim().length>0?this.filteredValue:this.value},empty:function(){return!this.valueToRender||this.valueToRender.length===0},emptyMessageText:function(){var e;return((e=this.$primevue.config)===null||e===void 0||(e=e.locale)===null||e===void 0?void 0:e.emptyMessage)||""},containerDataP:function(){return R({loading:this.loading,scrollable:this.scrollHeight==="flex"})},wrapperDataP:function(){return R({scrollable:this.scrollHeight==="flex"})}},components:{TreeNode:ee,InputText:ye,InputIcon:he,IconField:ge,SearchIcon:fe,SpinnerIcon:Z}};function K(t){"@babel/helpers - typeof";return K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(t)}function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function Q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y(Object(n),!0).forEach(function(o){qe(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function qe(t,e,n){return(e=Ye(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ye(t){var e=Qe(t,"string");return K(e)=="symbol"?e:e+""}function Qe(t,e){if(K(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(K(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xe=["data-p"],Ge=["data-p"],Je=["aria-labelledby","aria-label"];function Ze(t,e,n,o,i,r){var a=m("SpinnerIcon"),l=m("InputText"),d=m("SearchIcon"),
192c=m("InputIcon"),h=m("IconField"),x=m("TreeNode");return s(),p("div",u({class:t.cx("root"),onDragover:e[1]||(e[1]=function(){return r.onDragOver&&r.onDragOver.apply(r,arguments)}),onDragenter:e[2]||(e[2]=function(){return r.onDragEnter&&r.onDragEnter.apply(r,arguments)}),onDragleave:e[3]||(e[3]=function(){return r.onDragLeave&&r.onDragLeave.apply(r,arguments)}),onDrop:e[4]||(e[4]=function(){return r.onDrop&&r.onDrop.apply(r,arguments)}),"data-p":r.containerDataP},t.ptmi("root")),[O(pe,{name:"p-overlay-mask"},{default:A(function(){return[t.loading&&t.loadingMode==="mask"?(s(),p("div",u({key:0,class:t.cx("mask")},t.ptm("mask")),[C(t.$slots,"loadingicon",{class:b(t.cx("loadingIcon"))},function(){return[t.loadingIcon?(s(),p("i",u({key:0,class:[t.cx("loadingIcon"),"pi-spin",t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(s(),f(a,u({key:1,spin:"",class:t.cx("loadingIcon")},t.ptm("loadingIcon")),null,16,["class"]))]})],16)):v("",!0)]}),_:3}),t.filter?(s(),f(h,{key:0,unstyled:t.unstyled,pt:Q(Q({},t.ptm("pcFilter")),t.ptm("pcFilterContainer")),class:b(t.cx("pcFilterContainer"))},{default:A(function(){return[O(l,{modelValue:i.filterValue,"onUpdate:modelValue":e[0]||(e[0]=function(g){return i.filterValue=g}),autocomplete:"off",class:b(t.cx("pcFilterInput")),placeholder:t.filterPlaceholder,unstyled:t.unstyled,onKeyup:r.onFilterKeyup,pt:t.ptm("pcFilterInput")},null,8,["modelValue","class","placeholder","unstyled","onKeyup","pt"]),O(c,{unstyled:t.unstyled,pt:t.ptm("pcFilterIconContainer")},{default:A(function(){return[C(t.$slots,t.$slots.filtericon?"filtericon":"searchicon",{class:b(t.cx("filterIcon"))},function(){return[O(d,u({class:t.cx("filterIcon")},t.ptm("filterIcon")),null,16,["class"])]})]}),_:3},8,["unstyled","pt"])]}),_:3},8,["unstyled","pt","class"])):v("",!0),F("div",u({class:t.cx("wrapper"),style:{maxHeight:t.scrollHeight},"data-p":r.wrapperDataP},t.ptm("wrapper")),[C(t.$slots,"header",{value:t.value,expandedKeys:t.expandedKeys,selectionKeys:t.selectionKeys}),r.empty?r.empty&&!r.$pcTreeSelect?(s(),p("div",u({key:1,class:t.cx("emptyMessage")},t.ptm("emptyMessage")),[C(t.$slots,"empty",{},function(){return[X(G(r.emptyMessageText),1)]})],16)):v("",!0):(s(),p("ul",u({key:0,class:t.cx("rootChildren"),role:"tree","aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel},t.ptm("rootChildren")),[(s(!0),p(w,null,J(r.valueToRender,function(g,ne){return s(),f(x,{key:g.key,node:g,rootNodes:r.valueToRender,templates:t.$slots,level:t.level+1,index:ne,expandedKeys:i.d_expandedKeys,onNodeToggle:r.onNodeToggle,onNodeClick:r.onNodeClick,selectionMode:t.selectionMode,selectionKeys:t.selectionKeys,onCheckboxChange:r.onCheckboxChange,loadingMode:t.loadingMode,draggableNodes:t.draggableNodes,droppableNodes:t.droppableNodes,draggableScope:t.draggableScope,validateDrop:t.validateDrop,onNodeDrop:r.onNodeDrop,onNodeDragenter:r.onNodeDragEnter,onNodeDragleave:r.onNodeDragLeave,onValueChange:r.onValueChanged,unstyled:t.unstyled,pt:t.pt},null,8,["node","rootNodes","templates","level","index","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","loadingMode","draggableNodes","droppableNodes","draggableScope","validateDrop","onNodeDrop","onNodeDragenter","onNodeDragleave","onValueChange","unstyled","pt"])}),128))],16,Je)),C(t.$slots,"footer",{value:t.value,expandedKeys:t.expandedKeys,selectionKeys:t.selectionKeys})],16,Ge)],16,Xe)}We.render=Ze;export{We as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.