@@ -6736,9 +6736,9 @@ Error Description: `+h.message)),[2,null];case 4:return i||(this.logger.warning(
view="oneline"
person-card=${this.personCardInteraction}
>
- `}loadState(){var e,t;return Ld(this,void 0,void 0,function*(){this._groupPeople=null,this._foundPeople=null,this.defaultPeople=null;let o=this.people,i=this.userInput.toLowerCase(),n=V.globalProvider;if(o?.length)i&&(o=o.filter(a=>a?.displayName.toLowerCase().includes(i)));else if(!o&&n&&n.state===oe.SignedIn){let s=n.graph.forComponent(this);if(!i.length){if((this.defaultSelectedUserIds.length>0||this.defaultSelectedGroupIds.length>0)&&!this.selectedPeople.length&&!this.defaultSelectedUsers.length&&!this.defaultSelectedGroups.length&&(this.defaultSelectedUsers=yield Xl(s,this.defaultSelectedUserIds,"",this.userFilters),this.defaultSelectedGroups=yield Fv(s,this.defaultSelectedGroupIds,this.peopleFilters),this.defaultSelectedGroups=this.defaultSelectedGroups.filter(a=>a!==null),this.defaultSelectedUsers=this.defaultSelectedUsers.filter(a=>a!==null),this.selectedPeople=[...this.defaultSelectedUsers,...this.defaultSelectedGroups],this.hasMaxSelections&&this.disableTextInput(),this.requestUpdate()),this.disableSuggestions){this._foundPeople=[];return}if(this.defaultPeople)o=this.defaultPeople;else{if(this.groupId||this.groupIds.length){if(this._groupPeople===null)if(this.groupId)try{this.type==="group"?this._groupPeople=yield tc(s,null,this.groupId,this.showMax,this.type,this.transitiveSearch):this._groupPeople=yield tc(s,null,this.groupId,this.showMax,this.type,this.transitiveSearch,this.userFilters,this.peopleFilters)}catch{this._groupPeople=[]}else if(this.type==="group")try{this._groupPeople=yield Fv(s,this.groupIds,this.groupFilters)}catch{this._groupPeople=[]}else try{let a=yield jC(s,"",this.groupIds,this.showMax,this.type,this.transitiveSearch,this.userFilters);this._groupPeople=a}catch{this._groupPeople=[]}o=this._groupPeople||[]}else if(this.type==="person"||this.type==="any")if(this.userIds.length)o=yield Xl(s,this.userIds,"",this.userFilters);else{let a=this.userType==="user"||this.userType==="contact";this.userFilters&&a?o=yield Q3(s,this.userFilters,this.showMax):o=yield mv(s,this.userType,this.peopleFilters,this.showMax)}else if(this.type==="group"){let a=(yield Dv(s,"",this.showMax,this.groupType,this.groupFilters))||[];a.length>0&&a[0].value&&(a=a[0].value),o=a}this.defaultPeople=o}}if(i)if(o=[],this.groupId)o=(yield tc(s,i,this.groupId,this.showMax,this.type,this.transitiveSearch,this.userFilters,this.peopleFilters))||[];else{if(this.type==="person"||this.type==="any"){try{if(this.userType==="contact"||this.userType==="user")!((e=this.userIds)===null||e===void 0)&&e.length?o=yield Xl(s,this.userIds,i,this.userFilters):o=yield ec(s,i,this.showMax,this.userFilters);else if(!this.groupIds.length)!((t=this.userIds)===null||t===void 0)&&t.length?o=yield Xl(s,this.userIds,i,this.userFilters):o=(yield Na(s,i,this.showMax,this.userType,this.peopleFilters))||[];else try{o=yield jC(s,i,this.groupIds,this.showMax,this.type,this.transitiveSearch,this.userFilters)}catch{}}catch{}if(o&&o.lengthh.id));for(let h of a)u.has(h.id)||o.push(h)}catch{}}if((this.type==="group"||this.type==="any")&&o.lengthi),t})}hideFlyout(){let e=this.flyout;e&&e.close(),this.input&&this.input.setAttribute("aria-activedescendant",""),this._arrowSelectionCount=-1}showFlyout(){let e=this.flyout;e&&e.open(),this._arrowSelectionCount=-1}removePerson(e,t){t.stopPropagation();let o=this.selectedPeople.filter(i=>!e.id&&i.displayName?i.displayName!==e.displayName:i.id!==e.id);this.selectedPeople=o,this.loadState()}handleRemovePersonKeyDown(e,t){t.key==="Enter"&&(this.removePerson(e,t),this.enableTextInput())}addPerson(e){e&&(setTimeout(()=>{this.clearInput()},50),this.selectedPeople.filter(o=>!e.id&&o.displayName?o.displayName===e.displayName:o.id===e.id).length===0&&(this.selectedPeople=[...this.selectedPeople,e],this.loadState(),this._foundPeople=[],this._arrowSelectionCount=-1),this._isFocused&&this.enableTextInput())}clearInput(){this.clearHighlighted(),this.selectionMode!=="single"&&(this.input.value=""),this.userInput=""}handleAnyEmail(){if(this._arrowSelectionCount=-1,dv(this.userInput)){let e={mail:this.userInput,displayName:this.userInput};this.addPerson(e)}this.hideFlyout(),this.input&&(this.input.focus(),this._isFocused=!0)}handleSuggestionClick(e){this.addPerson(e),this.hasMaxSelections&&(this.disableTextInput(),this.input.value=""),this.hideFlyout()}handleUserSearch(){this._debouncedSearch||(this._debouncedSearch=La(()=>Ld(this,void 0,void 0,function*(){yield this._task.run(),this._arrowSelectionCount=-1,this.showFlyout()}),400)),this._debouncedSearch()}writeHighlightedText(){return Ld(this,void 0,void 0,function*(){let e=[];for(let o of this._highlightedUsers){let{id:i,displayName:n,mail:s,userPrincipalName:a,scoredEmailAddresses:u}=o._personDetails,h;u&&u.length>0?h=u.pop().address:h=a||s,e.push({id:i,displayName:n,email:h})}let t="";e.length>0&&(t=JSON.stringify(e)),yield navigator.clipboard.writeText(t)})}removeHighlightedOnCut(){this.selectedPeople=this.selectedPeople.splice(0,this.selectedPeople.length-this._highlightedUsers.length),this._highlightedUsers=[],this._currentHighlightedUserPos=0,this.loadState(),this.hideFlyout()}highlightSelectedPeople(e){for(let t of e)(t?.parentElement).classList.add("highlighted")}clearHighlighted(e){if(e)e.classList.remove("highlighted");else{for(let t of this._highlightedUsers){let o=t.parentElement;o&&o.classList.remove("highlighted")}this._highlightedUsers=[],this._currentHighlightedUserPos=0}}handleArrowSelection(e){var t,o;let i=this.renderRoot.querySelector(".searched-people-list");if(!((t=i?.children)===null||t===void 0)&&t.length){e&&(e.key==="ArrowUp"&&(this._arrowSelectionCount===-1?this._arrowSelectionCount=0:this._arrowSelectionCount=(this._arrowSelectionCount-1+i.children.length)%i.children.length),e.key==="ArrowDown"&&(this._arrowSelectionCount===-1?this._arrowSelectionCount=0:this._arrowSelectionCount=(this._arrowSelectionCount+1+i.children.length)%i.children.length));for(let s of(o=i?.children)!==null&&o!==void 0?o:[]){let a=s;a.setAttribute("aria-selected","false"),a.blur(),a.removeAttribute("tabindex")}let n=i.children[this._arrowSelectionCount];n&&(n.setAttribute("tabindex","0"),n.focus(),n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),n.setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",n?.id))}}filterPeople(e){let t=[];if(e&&e.length>0){e=e.filter(s=>s);let o=this.selectedPeople.map(s=>s.id?s.id:s.displayName),i=e.filter(s=>s?.id?o.indexOf(s.id)===-1:o.indexOf(s?.displayName)===-1),n=new Set;for(let s of i){let a=JSON.stringify(s);n.add(a)}n.forEach(s=>{let a=JSON.parse(s);t.push(a)})}return t}handleSectionScroll(e){let t=this.renderRoot.querySelector(".flyout-root");t&&!(e.deltaY<0&&t.scrollTop===0)&&!(e.deltaY>0&&t.clientHeight+t.scrollTop>=t.scrollHeight-1)&&e.stopPropagation()}};Et([E({attribute:"group-id",converter:r=>r.trim()}),xt("design:type",String)],ft.prototype,"groupId",void 0);Et([E({attribute:"group-ids",converter:r=>r.split(",").map(e=>e.trim())}),xt("design:type",Array)],ft.prototype,"groupIds",void 0);Et([E({attribute:"type",converter:r=>G3(r,"any")}),xt("design:type",String)],ft.prototype,"type",void 0);Et([E({attribute:"group-type",converter:r=>{let e=["any"];if(!r||r.length===0)return e;let t=r.split(","),o=[];for(let i of t)i=i.trim(),vx(i)&&o.push(p6(i));return o.length===0?e:o}}),xt("design:type",Array)],ft.prototype,"groupType",void 0);Et([E({attribute:"user-type",converter:r=>j3(r)}),xt("design:type",String)],ft.prototype,"userType",void 0);Et([E({attribute:"transitive-search",type:Boolean}),xt("design:type",Object)],ft.prototype,"transitiveSearch",void 0);Et([E({attribute:"people",type:Object}),xt("design:type",Array)],ft.prototype,"people",void 0);Et([E({attribute:"show-max",type:Number}),xt("design:type",Object)],ft.prototype,"showMax",void 0);Et([E({attribute:"disable-images",type:Boolean}),xt("design:type",Object)],ft.prototype,"disableImages",void 0);Et([E({attribute:"show-presence",type:Boolean}),xt("design:type",Boolean)],ft.prototype,"showPresence",void 0);Et([E({attribute:"person-card",converter:r=>Rd(r)}),xt("design:type",String)],ft.prototype,"personCardInteraction",void 0);Et([E({attribute:"selected-people",type:Array}),xt("design:type",Array),xt("design:paramtypes",[Array])],ft.prototype,"selectedPeople",null);Et([E({attribute:"default-selected-user-ids",converter:r=>r.split(",").map(e=>e.trim()),type:String}),xt("design:type",Array)],ft.prototype,"defaultSelectedUserIds",void 0);Et([E({attribute:"default-selected-group-ids",converter:r=>r.split(",").map(e=>e.trim()),type:String}),xt("design:type",Array)],ft.prototype,"defaultSelectedGroupIds",void 0);Et([E({attribute:"placeholder",type:String}),xt("design:type",String)],ft.prototype,"placeholder",void 0);Et([E({attribute:"disabled",type:Boolean}),xt("design:type",Object)],ft.prototype,"disabled",void 0);Et([E({attribute:"allow-any-email",type:Boolean}),xt("design:type",Object)],ft.prototype,"allowAnyEmail",void 0);Et([E({attribute:"selection-mode",type:String}),xt("design:type",String)],ft.prototype,"selectionMode",void 0);Et([E({attribute:"user-ids",converter:r=>r.split(",").map(e=>e.trim()),type:String}),xt("design:type",Array)],ft.prototype,"userIds",void 0);Et([E({attribute:"user-filters"}),xt("design:type",String)],ft.prototype,"userFilters",void 0);Et([E({attribute:"people-filters"}),xt("design:type",String)],ft.prototype,"peopleFilters",void 0);Et([E({attribute:"group-filters"}),xt("design:type",String)],ft.prototype,"groupFilters",void 0);Et([E({attribute:"aria-label",type:String}),xt("design:type",String)],ft.prototype,"ariaLabel",void 0);Et([E({attribute:"disable-suggestions",type:Boolean}),xt("design:type",Object)],ft.prototype,"disableSuggestions",void 0);Et([X(),xt("design:type",Object)],ft.prototype,"userInput",void 0);Et([X(),xt("design:type",Object)],ft.prototype,"_arrowSelectionCount",void 0);Et([X(),xt("design:type",Array)],ft.prototype,"_highlightedUsers",void 0);Et([X(),xt("design:type",Object)],ft.prototype,"_isFocused",void 0);Et([X(),xt("design:type",Object)],ft.prototype,"_setAnyEmail",void 0);Et([X(),xt("design:type",Array)],ft.prototype,"_foundPeople",void 0);Mv();un();xv();l();c();d();ge();xe();gt();pi();sc();Cd();Ha();Jo();un();l();c();d();xe();gt();pi();ge();l();c();d();xe();var v6=[Oe`
+ `}loadState(){var e,t;return Ld(this,void 0,void 0,function*(){this._groupPeople=null,this._foundPeople=null,this.defaultPeople=null;let o=this.people,i=this.userInput.toLowerCase(),n=V.globalProvider;if(o?.length)i&&(o=o.filter(a=>a?.displayName.toLowerCase().includes(i)));else if(!o&&n&&n.state===oe.SignedIn){let s=n.graph.forComponent(this);if(!i.length){if((this.defaultSelectedUserIds.length>0||this.defaultSelectedGroupIds.length>0)&&!this.selectedPeople.length&&!this.defaultSelectedUsers.length&&!this.defaultSelectedGroups.length&&(this.defaultSelectedUsers=yield Xl(s,this.defaultSelectedUserIds,"",this.userFilters),this.defaultSelectedGroups=yield Dv(s,this.defaultSelectedGroupIds,this.peopleFilters),this.defaultSelectedGroups=this.defaultSelectedGroups.filter(a=>a!==null),this.defaultSelectedUsers=this.defaultSelectedUsers.filter(a=>a!==null),this.selectedPeople=[...this.defaultSelectedUsers,...this.defaultSelectedGroups],this.hasMaxSelections&&this.disableTextInput(),this.requestUpdate()),this.disableSuggestions){this._foundPeople=[];return}if(this.defaultPeople)o=this.defaultPeople;else{if(this.groupId||this.groupIds.length){if(this._groupPeople===null)if(this.groupId)try{this.type==="group"?this._groupPeople=yield tc(s,null,this.groupId,this.showMax,this.type,this.transitiveSearch):this._groupPeople=yield tc(s,null,this.groupId,this.showMax,this.type,this.transitiveSearch,this.userFilters,this.peopleFilters)}catch{this._groupPeople=[]}else if(this.type==="group")try{this._groupPeople=yield Dv(s,this.groupIds,this.groupFilters)}catch{this._groupPeople=[]}else try{let a=yield jC(s,"",this.groupIds,this.showMax,this.type,this.transitiveSearch,this.userFilters);this._groupPeople=a}catch{this._groupPeople=[]}o=this._groupPeople||[]}else if(this.type==="person"||this.type==="any")if(this.userIds.length)o=yield Xl(s,this.userIds,"",this.userFilters);else{let a=this.userType==="user"||this.userType==="contact";this.userFilters&&a?o=yield Q3(s,this.userFilters,this.showMax):o=yield mv(s,this.userType,this.peopleFilters,this.showMax)}else if(this.type==="group"){let a=(yield Fv(s,"",this.showMax,this.groupType,this.groupFilters))||[];a.length>0&&a[0].value&&(a=a[0].value),o=a}this.defaultPeople=o}}if(i)if(o=[],this.groupId)o=(yield tc(s,i,this.groupId,this.showMax,this.type,this.transitiveSearch,this.userFilters,this.peopleFilters))||[];else{if(this.type==="person"||this.type==="any"){try{if(this.userType==="contact"||this.userType==="user")!((e=this.userIds)===null||e===void 0)&&e.length?o=yield Xl(s,this.userIds,i,this.userFilters):o=yield ec(s,i,this.showMax,this.userFilters);else if(!this.groupIds.length)!((t=this.userIds)===null||t===void 0)&&t.length?o=yield Xl(s,this.userIds,i,this.userFilters):o=(yield Na(s,i,this.showMax,this.userType,this.peopleFilters))||[];else try{o=yield jC(s,i,this.groupIds,this.showMax,this.type,this.transitiveSearch,this.userFilters)}catch{}}catch{}if(o&&o.lengthh.id));for(let h of a)u.has(h.id)||o.push(h)}catch{}}if((this.type==="group"||this.type==="any")&&o.lengthi),t})}hideFlyout(){let e=this.flyout;e&&e.close(),this.input&&this.input.setAttribute("aria-activedescendant",""),this._arrowSelectionCount=-1}showFlyout(){let e=this.flyout;e&&e.open(),this._arrowSelectionCount=-1}removePerson(e,t){t.stopPropagation();let o=this.selectedPeople.filter(i=>!e.id&&i.displayName?i.displayName!==e.displayName:i.id!==e.id);this.selectedPeople=o,this.loadState()}handleRemovePersonKeyDown(e,t){t.key==="Enter"&&(this.removePerson(e,t),this.enableTextInput())}addPerson(e){e&&(setTimeout(()=>{this.clearInput()},50),this.selectedPeople.filter(o=>!e.id&&o.displayName?o.displayName===e.displayName:o.id===e.id).length===0&&(this.selectedPeople=[...this.selectedPeople,e],this.loadState(),this._foundPeople=[],this._arrowSelectionCount=-1),this._isFocused&&this.enableTextInput())}clearInput(){this.clearHighlighted(),this.selectionMode!=="single"&&(this.input.value=""),this.userInput=""}handleAnyEmail(){if(this._arrowSelectionCount=-1,dv(this.userInput)){let e={mail:this.userInput,displayName:this.userInput};this.addPerson(e)}this.hideFlyout(),this.input&&(this.input.focus(),this._isFocused=!0)}handleSuggestionClick(e){this.addPerson(e),this.hasMaxSelections&&(this.disableTextInput(),this.input.value=""),this.hideFlyout()}handleUserSearch(){this._debouncedSearch||(this._debouncedSearch=La(()=>Ld(this,void 0,void 0,function*(){yield this._task.run(),this._arrowSelectionCount=-1,this.showFlyout()}),400)),this._debouncedSearch()}writeHighlightedText(){return Ld(this,void 0,void 0,function*(){let e=[];for(let o of this._highlightedUsers){let{id:i,displayName:n,mail:s,userPrincipalName:a,scoredEmailAddresses:u}=o._personDetails,h;u&&u.length>0?h=u.pop().address:h=a||s,e.push({id:i,displayName:n,email:h})}let t="";e.length>0&&(t=JSON.stringify(e)),yield navigator.clipboard.writeText(t)})}removeHighlightedOnCut(){this.selectedPeople=this.selectedPeople.splice(0,this.selectedPeople.length-this._highlightedUsers.length),this._highlightedUsers=[],this._currentHighlightedUserPos=0,this.loadState(),this.hideFlyout()}highlightSelectedPeople(e){for(let t of e)(t?.parentElement).classList.add("highlighted")}clearHighlighted(e){if(e)e.classList.remove("highlighted");else{for(let t of this._highlightedUsers){let o=t.parentElement;o&&o.classList.remove("highlighted")}this._highlightedUsers=[],this._currentHighlightedUserPos=0}}handleArrowSelection(e){var t,o;let i=this.renderRoot.querySelector(".searched-people-list");if(!((t=i?.children)===null||t===void 0)&&t.length){e&&(e.key==="ArrowUp"&&(this._arrowSelectionCount===-1?this._arrowSelectionCount=0:this._arrowSelectionCount=(this._arrowSelectionCount-1+i.children.length)%i.children.length),e.key==="ArrowDown"&&(this._arrowSelectionCount===-1?this._arrowSelectionCount=0:this._arrowSelectionCount=(this._arrowSelectionCount+1+i.children.length)%i.children.length));for(let s of(o=i?.children)!==null&&o!==void 0?o:[]){let a=s;a.setAttribute("aria-selected","false"),a.blur(),a.removeAttribute("tabindex")}let n=i.children[this._arrowSelectionCount];n&&(n.setAttribute("tabindex","0"),n.focus(),n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),n.setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",n?.id))}}filterPeople(e){let t=[];if(e&&e.length>0){e=e.filter(s=>s);let o=this.selectedPeople.map(s=>s.id?s.id:s.displayName),i=e.filter(s=>s?.id?o.indexOf(s.id)===-1:o.indexOf(s?.displayName)===-1),n=new Set;for(let s of i){let a=JSON.stringify(s);n.add(a)}n.forEach(s=>{let a=JSON.parse(s);t.push(a)})}return t}handleSectionScroll(e){let t=this.renderRoot.querySelector(".flyout-root");t&&!(e.deltaY<0&&t.scrollTop===0)&&!(e.deltaY>0&&t.clientHeight+t.scrollTop>=t.scrollHeight-1)&&e.stopPropagation()}};Et([E({attribute:"group-id",converter:r=>r.trim()}),xt("design:type",String)],ft.prototype,"groupId",void 0);Et([E({attribute:"group-ids",converter:r=>r.split(",").map(e=>e.trim())}),xt("design:type",Array)],ft.prototype,"groupIds",void 0);Et([E({attribute:"type",converter:r=>G3(r,"any")}),xt("design:type",String)],ft.prototype,"type",void 0);Et([E({attribute:"group-type",converter:r=>{let e=["any"];if(!r||r.length===0)return e;let t=r.split(","),o=[];for(let i of t)i=i.trim(),vx(i)&&o.push(p6(i));return o.length===0?e:o}}),xt("design:type",Array)],ft.prototype,"groupType",void 0);Et([E({attribute:"user-type",converter:r=>j3(r)}),xt("design:type",String)],ft.prototype,"userType",void 0);Et([E({attribute:"transitive-search",type:Boolean}),xt("design:type",Object)],ft.prototype,"transitiveSearch",void 0);Et([E({attribute:"people",type:Object}),xt("design:type",Array)],ft.prototype,"people",void 0);Et([E({attribute:"show-max",type:Number}),xt("design:type",Object)],ft.prototype,"showMax",void 0);Et([E({attribute:"disable-images",type:Boolean}),xt("design:type",Object)],ft.prototype,"disableImages",void 0);Et([E({attribute:"show-presence",type:Boolean}),xt("design:type",Boolean)],ft.prototype,"showPresence",void 0);Et([E({attribute:"person-card",converter:r=>Rd(r)}),xt("design:type",String)],ft.prototype,"personCardInteraction",void 0);Et([E({attribute:"selected-people",type:Array}),xt("design:type",Array),xt("design:paramtypes",[Array])],ft.prototype,"selectedPeople",null);Et([E({attribute:"default-selected-user-ids",converter:r=>r.split(",").map(e=>e.trim()),type:String}),xt("design:type",Array)],ft.prototype,"defaultSelectedUserIds",void 0);Et([E({attribute:"default-selected-group-ids",converter:r=>r.split(",").map(e=>e.trim()),type:String}),xt("design:type",Array)],ft.prototype,"defaultSelectedGroupIds",void 0);Et([E({attribute:"placeholder",type:String}),xt("design:type",String)],ft.prototype,"placeholder",void 0);Et([E({attribute:"disabled",type:Boolean}),xt("design:type",Object)],ft.prototype,"disabled",void 0);Et([E({attribute:"allow-any-email",type:Boolean}),xt("design:type",Object)],ft.prototype,"allowAnyEmail",void 0);Et([E({attribute:"selection-mode",type:String}),xt("design:type",String)],ft.prototype,"selectionMode",void 0);Et([E({attribute:"user-ids",converter:r=>r.split(",").map(e=>e.trim()),type:String}),xt("design:type",Array)],ft.prototype,"userIds",void 0);Et([E({attribute:"user-filters"}),xt("design:type",String)],ft.prototype,"userFilters",void 0);Et([E({attribute:"people-filters"}),xt("design:type",String)],ft.prototype,"peopleFilters",void 0);Et([E({attribute:"group-filters"}),xt("design:type",String)],ft.prototype,"groupFilters",void 0);Et([E({attribute:"aria-label",type:String}),xt("design:type",String)],ft.prototype,"ariaLabel",void 0);Et([E({attribute:"disable-suggestions",type:Boolean}),xt("design:type",Object)],ft.prototype,"disableSuggestions",void 0);Et([X(),xt("design:type",Object)],ft.prototype,"userInput",void 0);Et([X(),xt("design:type",Object)],ft.prototype,"_arrowSelectionCount",void 0);Et([X(),xt("design:type",Array)],ft.prototype,"_highlightedUsers",void 0);Et([X(),xt("design:type",Object)],ft.prototype,"_isFocused",void 0);Et([X(),xt("design:type",Object)],ft.prototype,"_setAnyEmail",void 0);Et([X(),xt("design:type",Array)],ft.prototype,"_foundPeople",void 0);Mv();un();xv();l();c();d();ge();xe();gt();pi();sc();Cd();Ha();Jo();un();l();c();d();xe();gt();pi();ge();l();c();d();xe();var v6=[Oe`
:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{position:relative}:host .header::part(control){font-size:var(--arrow-options-button-font-size, large);font-weight:var(--arrow-options-button-font-weight,600);color:var(--arrow-options-button-font-color,var(--accent-base-color));background:var(--arrow-options-button-background-color,transparent)}:host .header::part(control):hover{background:var(--neutral-fill-stealth-hover)}:host .header::part(control):active,:host .header::part(control):focus{background:var(--neutral-fill-stealth-active)}:host .menu{position:absolute;left:var(--arrow-options-left,0);z-index:1;display:none}:host .menu.open{display:block;width:max-content}
-`];Or();cr();ge();var wx=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},Cx=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},y6=()=>{at(Ih,Ah,$r),Re("arrow-options",Nd)},Nd=class extends Fr{static get styles(){return v6}constructor(){super(),this.onHeaderClick=e=>{Object.keys(this.options).length>1&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)},this.onHeaderKeyDown=e=>{if(e.key==="Enter"){e.preventDefault(),e.stopPropagation(),this.open=!this.open;let t=this.renderRoot.querySelector("fluent-menu");t&&(t.classList.remove("closed"),t.classList.add("open"));let o=e.target;if(o){let i=this.renderRoot.querySelector("fluent-menu-item[tabindex='0']");i&&(o.blur(),i.focus())}}},this.renderContent=()=>x`
+`];Or();cr();ge();var wx=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},Cx=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},y6=()=>{at(Ih,Ah,$r),Re("arrow-options",Nd)},Nd=class extends Dr{static get styles(){return v6}constructor(){super(),this.onHeaderClick=e=>{Object.keys(this.options).length>1&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)},this.onHeaderKeyDown=e=>{if(e.key==="Enter"){e.preventDefault(),e.stopPropagation(),this.open=!this.open;let t=this.renderRoot.querySelector("fluent-menu");t&&(t.classList.remove("closed"),t.classList.add("open"));let o=e.target;if(o){let i=this.renderRoot.querySelector("fluent-menu-item[tabindex='0']");i&&(o.blur(),i.focus())}}},this.renderContent=()=>x`
- `},this.onResize=()=>{this.mediaQuery!==this.previousMediaQuery&&(this.previousMediaQuery=this.mediaQuery,this.requestUpdate())},this.onThemeChanged=()=>{this._isDarkMode=Nv(this)},this.onAddTaskClick=()=>{var e;let t=this.getPeoplePicker(null),o={};if(t)for(let i of(e=t?.selectedPeople)!==null&&e!==void 0?e:[])o[i.id]=_x;!this._newTaskBeingAdded&&this._newTaskName&&(this._currentGroup||this._newTaskGroupId)&&this.addTask(this._newTaskName,this._newTaskDueDate,this._currentGroup?this._currentGroup:this._newTaskGroupId,this._currentFolder?this._currentFolder:this._newTaskFolderId,o)},this.onAddTaskKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.onAddTaskClick()},this.addNewTaskButtonClick=()=>{this.isNewTaskVisible=!this.isNewTaskVisible},this.newTaskVisible=e=>{e.key==="Enter"&&(this.isNewTaskVisible=!1)},this.handleDateChange=e=>{let t=e.target.value;t?this._newTaskDueDate=new Date(t+"T17:00"):this._newTaskDueDate=null},this.renderPlannerIcon=e=>Z(P.Planner,e),this.renderBucketIcon=e=>Z(P.Milestone,e),this.handlePeopleClick=(e,t)=>{this.togglePeoplePicker(t),e.stopPropagation()},this.handlePeopleKeydown=(e,t)=>{(e.key==="Enter"||e.key===" ")&&(this.togglePeoplePicker(t),e.stopPropagation(),e.preventDefault())},this.handlePeoplePickerKeydown=e=>{e.key==="Enter"&&e.stopPropagation()},this.clearState(),this.previousMediaQuery=this.mediaQuery}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onResize),window.addEventListener("darkmodechanged",this.onThemeChanged),this.onThemeChanged()}disconnectedCallback(){window.removeEventListener("resize",this.onResize),window.removeEventListener("darkmodechanged",this.onThemeChanged),super.disconnectedCallback()}clearState(){this._newTaskFolderId="",this._newTaskGroupId="",this._newTaskDueDate=null,this._newTaskName="",this._newTaskBeingAdded=!1,this._tasks=[],this._folders=[],this._groups=[],this._hiddenTasks=[],this._hasDoneInitialLoad=!1,this._inTaskLoad=!1}firstUpdated(e){super.firstUpdated(e),this.initialId&&!this._currentGroup&&(this._currentGroup=this.initialId),this.initialBucketId&&!this._currentFolder&&(this._currentFolder=this.initialBucketId)}loadState(){return qi(this,void 0,void 0,function*(){let e=this.getTaskSource();if(!e)return;let t=V.globalProvider;if(!(!t||t.state!==oe.SignedIn)){if(this._inTaskLoad=!0,!this._me){let o=t.graph.forComponent(this);this._me=yield Fh(o)}this.groupId?yield this._loadTasksForGroup(e):this.targetId?yield this._loadTargetPlannerTasks(e):yield this._loadAllTasks(e),this._inTaskLoad=!1,this._hasDoneInitialLoad=!0}})}_loadTargetPlannerTasks(e){return qi(this,void 0,void 0,function*(){let t=yield e.getTaskGroup(this.targetId),o=yield e.getTaskFoldersForTaskGroup(t.id);this.targetBucketId&&(o=o.filter(n=>n.id===this.targetBucketId));let i=(yield Promise.all(o.map(n=>e.getTasksForTaskFolder(n.id,n.parentId)))).reduce((n,s)=>[...n,...s],[]);this._tasks=i,this._folders=o,this._groups=[t]})}_loadAllTasks(e){return qi(this,void 0,void 0,function*(){let t=yield e.getTaskGroups(),o=(yield Promise.all(t.map(n=>e.getTaskFoldersForTaskGroup(n.id)))).reduce((n,s)=>[...n,...s],[]),i=(yield Promise.all(o.map(n=>e.getTasksForTaskFolder(n.id,n.parentId)))).reduce((n,s)=>[...n,...s],[]);this._tasks=i,this._folders=o,this._groups=t})}_loadTasksForGroup(e){return qi(this,void 0,void 0,function*(){let t=yield e.getTaskGroupsForGroup(this.groupId),o=(yield Promise.all(t.map(n=>e.getTaskFoldersForTaskGroup(n.id)))).reduce((n,s)=>[...n,...s],[]),i=(yield Promise.all(o.map(n=>e.getTasksForTaskFolder(n.id,n.parentId)))).reduce((n,s)=>[...n,...s],[]);this._tasks=i,this._folders=o,this._groups=t})}addTask(e,t,o,i,n={}){return qi(this,void 0,void 0,function*(){let s=this.getTaskSource();if(!s)return;let a={assignments:n,dueDate:t,immediateParentId:i,name:e,topParentId:o};this._newTaskBeingAdded=!0,a._raw=yield s.addTask(a),this.fireCustomEvent("taskAdded",a),this._newTaskBeingAdded=!1,this.isNewTaskVisible=!1,yield this._task.run()})}completeTask(e){return qi(this,void 0,void 0,function*(){let t=this.getTaskSource();t&&(yield t.setTaskComplete(e),this.fireCustomEvent("taskChanged",e),yield this._task.run())})}uncompleteTask(e){return qi(this,void 0,void 0,function*(){let t=this.getTaskSource();t&&(yield t.setTaskIncomplete(e),this.fireCustomEvent("taskChanged",e),yield this._task.run())})}removeTask(e,t){return qi(this,void 0,void 0,function*(){let o=this.getTaskSource();o&&(t instanceof KeyboardEvent&&t.key!=="Enter"||(this._hiddenTasks=[...this._hiddenTasks,e.id],yield o.removeTask(e),this.fireCustomEvent("taskRemoved",e),yield this._task.run(),this._hiddenTasks=this._hiddenTasks.filter(i=>i!==e.id)))})}assignPeople(e,t=[]){return qi(this,void 0,void 0,function*(){let o=this.getTaskSource();if(!o)return;let i=[];e&&e.assignments&&(i=Object.keys(e.assignments).sort());let n=t.map(u=>u.id);if(n.length===i.length&&n.sort().every((u,h)=>u===i[h]))return;let a={};for(let u of i)n.includes(u)?a[u]=_x:a[u]=null;n.forEach(u=>{i.includes(u)||(a[u]=_x)}),e&&(yield o.assignPeopleToTask(e,a),yield this._task.run())})}renderPlanOptions(){var e;let t=V.globalProvider;if(!t||t.state!==oe.SignedIn)return null;if(this._inTaskLoad&&!this._hasDoneInitialLoad)return x``;let o=this.readOnly||this._isNewTaskVisible?null:x`
+ `},this.onResize=()=>{this.mediaQuery!==this.previousMediaQuery&&(this.previousMediaQuery=this.mediaQuery,this.requestUpdate())},this.onThemeChanged=()=>{this._isDarkMode=Nv(this)},this.onAddTaskClick=()=>{var e;let t=this.getPeoplePicker(null),o={};if(t)for(let i of(e=t?.selectedPeople)!==null&&e!==void 0?e:[])o[i.id]=_x;!this._newTaskBeingAdded&&this._newTaskName&&(this._currentGroup||this._newTaskGroupId)&&this.addTask(this._newTaskName,this._newTaskDueDate,this._currentGroup?this._currentGroup:this._newTaskGroupId,this._currentFolder?this._currentFolder:this._newTaskFolderId,o)},this.onAddTaskKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.onAddTaskClick()},this.addNewTaskButtonClick=()=>{this.isNewTaskVisible=!this.isNewTaskVisible},this.newTaskVisible=e=>{e.key==="Enter"&&(this.isNewTaskVisible=!1)},this.handleDateChange=e=>{let t=e.target.value;t?this._newTaskDueDate=new Date(t+"T17:00"):this._newTaskDueDate=null},this.renderPlannerIcon=e=>Z(P.Planner,e),this.renderBucketIcon=e=>Z(P.Milestone,e),this.handlePeopleClick=(e,t)=>{this.togglePeoplePicker(t),e.stopPropagation()},this.handlePeopleKeydown=(e,t)=>{(e.key==="Enter"||e.key===" ")&&(this.togglePeoplePicker(t),e.stopPropagation(),e.preventDefault())},this.handlePeoplePickerKeydown=e=>{e.key==="Enter"&&e.stopPropagation()},this.clearState(),this.previousMediaQuery=this.mediaQuery}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onResize),window.addEventListener("darkmodechanged",this.onThemeChanged),this.onThemeChanged()}disconnectedCallback(){window.removeEventListener("resize",this.onResize),window.removeEventListener("darkmodechanged",this.onThemeChanged),super.disconnectedCallback()}clearState(){this._newTaskFolderId="",this._newTaskGroupId="",this._newTaskDueDate=null,this._newTaskName="",this._newTaskBeingAdded=!1,this._tasks=[],this._folders=[],this._groups=[],this._hiddenTasks=[],this._hasDoneInitialLoad=!1,this._inTaskLoad=!1}firstUpdated(e){super.firstUpdated(e),this.initialId&&!this._currentGroup&&(this._currentGroup=this.initialId),this.initialBucketId&&!this._currentFolder&&(this._currentFolder=this.initialBucketId)}loadState(){return qi(this,void 0,void 0,function*(){let e=this.getTaskSource();if(!e)return;let t=V.globalProvider;if(!(!t||t.state!==oe.SignedIn)){if(this._inTaskLoad=!0,!this._me){let o=t.graph.forComponent(this);this._me=yield Dh(o)}this.groupId?yield this._loadTasksForGroup(e):this.targetId?yield this._loadTargetPlannerTasks(e):yield this._loadAllTasks(e),this._inTaskLoad=!1,this._hasDoneInitialLoad=!0}})}_loadTargetPlannerTasks(e){return qi(this,void 0,void 0,function*(){let t=yield e.getTaskGroup(this.targetId),o=yield e.getTaskFoldersForTaskGroup(t.id);this.targetBucketId&&(o=o.filter(n=>n.id===this.targetBucketId));let i=(yield Promise.all(o.map(n=>e.getTasksForTaskFolder(n.id,n.parentId)))).reduce((n,s)=>[...n,...s],[]);this._tasks=i,this._folders=o,this._groups=[t]})}_loadAllTasks(e){return qi(this,void 0,void 0,function*(){let t=yield e.getTaskGroups(),o=(yield Promise.all(t.map(n=>e.getTaskFoldersForTaskGroup(n.id)))).reduce((n,s)=>[...n,...s],[]),i=(yield Promise.all(o.map(n=>e.getTasksForTaskFolder(n.id,n.parentId)))).reduce((n,s)=>[...n,...s],[]);this._tasks=i,this._folders=o,this._groups=t})}_loadTasksForGroup(e){return qi(this,void 0,void 0,function*(){let t=yield e.getTaskGroupsForGroup(this.groupId),o=(yield Promise.all(t.map(n=>e.getTaskFoldersForTaskGroup(n.id)))).reduce((n,s)=>[...n,...s],[]),i=(yield Promise.all(o.map(n=>e.getTasksForTaskFolder(n.id,n.parentId)))).reduce((n,s)=>[...n,...s],[]);this._tasks=i,this._folders=o,this._groups=t})}addTask(e,t,o,i,n={}){return qi(this,void 0,void 0,function*(){let s=this.getTaskSource();if(!s)return;let a={assignments:n,dueDate:t,immediateParentId:i,name:e,topParentId:o};this._newTaskBeingAdded=!0,a._raw=yield s.addTask(a),this.fireCustomEvent("taskAdded",a),this._newTaskBeingAdded=!1,this.isNewTaskVisible=!1,yield this._task.run()})}completeTask(e){return qi(this,void 0,void 0,function*(){let t=this.getTaskSource();t&&(yield t.setTaskComplete(e),this.fireCustomEvent("taskChanged",e),yield this._task.run())})}uncompleteTask(e){return qi(this,void 0,void 0,function*(){let t=this.getTaskSource();t&&(yield t.setTaskIncomplete(e),this.fireCustomEvent("taskChanged",e),yield this._task.run())})}removeTask(e,t){return qi(this,void 0,void 0,function*(){let o=this.getTaskSource();o&&(t instanceof KeyboardEvent&&t.key!=="Enter"||(this._hiddenTasks=[...this._hiddenTasks,e.id],yield o.removeTask(e),this.fireCustomEvent("taskRemoved",e),yield this._task.run(),this._hiddenTasks=this._hiddenTasks.filter(i=>i!==e.id)))})}assignPeople(e,t=[]){return qi(this,void 0,void 0,function*(){let o=this.getTaskSource();if(!o)return;let i=[];e&&e.assignments&&(i=Object.keys(e.assignments).sort());let n=t.map(u=>u.id);if(n.length===i.length&&n.sort().every((u,h)=>u===i[h]))return;let a={};for(let u of i)n.includes(u)?a[u]=_x:a[u]=null;n.forEach(u=>{i.includes(u)||(a[u]=_x)}),e&&(yield o.assignPeopleToTask(e,a),yield this._task.run())})}renderPlanOptions(){var e;let t=V.globalProvider;if(!t||t.state!==oe.SignedIn)return null;if(this._inTaskLoad&&!this._hasDoneInitialLoad)return x``;let o=this.readOnly||this._isNewTaskVisible?null:x`
- `}getTaskSource(){let e=V.globalProvider;if(!e||e.state!==oe.SignedIn)return null;let t=e.graph.forComponent(this);return new Lv(t)}getPlanTitle(e){return e?e===this.strings.plansSelfAssigned?this.strings.plansSelfAssigned:(this._groups.find(t=>t.id===e)||{title:this.strings.planNotFound}).title:this.strings.baseSelfAssigned}getFolderName(e){return e?(this._folders.find(t=>t.id===e)||{name:this.strings.bucketNotFound}).name:this.strings.bucketsSelfAssigned}isTaskInSelectedGroupFilter(e){var t;return!this._currentGroup||e.topParentId===this._currentGroup||!this._currentGroup&&this.getTaskSource().isAssignedToMe(e,(t=this._me)===null||t===void 0?void 0:t.id)}isTaskInSelectedFolderFilter(e){return e.immediateParentId===this._currentFolder||!this._currentFolder}dateToInputValue(e){return e?new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().split("T")[0]:null}};Kt([E({attribute:"read-only",type:Boolean}),Wt("design:type",Boolean)],Pt.prototype,"readOnly",void 0);Kt([E({attribute:"target-id",type:String}),Wt("design:type",String)],Pt.prototype,"targetId",void 0);Kt([E({attribute:"target-bucket-id",type:String}),Wt("design:type",String)],Pt.prototype,"targetBucketId",void 0);Kt([E({attribute:"initial-id",type:String}),Wt("design:type",String)],Pt.prototype,"initialId",void 0);Kt([E({attribute:"initial-bucket-id",type:String}),Wt("design:type",String)],Pt.prototype,"initialBucketId",void 0);Kt([E({attribute:"hide-header",type:Boolean}),Wt("design:type",Boolean)],Pt.prototype,"hideHeader",void 0);Kt([E({attribute:"hide-options",type:Boolean}),Wt("design:type",Boolean)],Pt.prototype,"hideOptions",void 0);Kt([E({attribute:"group-id",type:String}),Wt("design:type",String)],Pt.prototype,"groupId",void 0);Kt([X(),Wt("design:type",Boolean)],Pt.prototype,"_isNewTaskVisible",void 0);Kt([X(),Wt("design:type",Boolean)],Pt.prototype,"_newTaskBeingAdded",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_newTaskName",void 0);Kt([X(),Wt("design:type",Date)],Pt.prototype,"_newTaskDueDate",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_newTaskGroupId",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_newTaskFolderId",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_newTaskContainerId",void 0);Kt([X(),Wt("design:type",Array)],Pt.prototype,"_groups",void 0);Kt([X(),Wt("design:type",Array)],Pt.prototype,"_folders",void 0);Kt([X(),Wt("design:type",Array)],Pt.prototype,"_tasks",void 0);Kt([X(),Wt("design:type",Array)],Pt.prototype,"_hiddenTasks",void 0);Kt([X(),Wt("design:type",Boolean)],Pt.prototype,"_inTaskLoad",void 0);Kt([X(),Wt("design:type",Boolean)],Pt.prototype,"_hasDoneInitialLoad",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_currentGroup",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_currentFolder",void 0);Kt([X(),Wt("design:type",Object)],Pt.prototype,"_isDarkMode",void 0);Kt([X(),Wt("design:type",Object)],Pt.prototype,"_me",void 0);l();c();d();xe();gt();pi();Cu();ge();vs();Qr();Jo();l();c();d();xe();var F6=[Oe`
+ `}getTaskSource(){let e=V.globalProvider;if(!e||e.state!==oe.SignedIn)return null;let t=e.graph.forComponent(this);return new Lv(t)}getPlanTitle(e){return e?e===this.strings.plansSelfAssigned?this.strings.plansSelfAssigned:(this._groups.find(t=>t.id===e)||{title:this.strings.planNotFound}).title:this.strings.baseSelfAssigned}getFolderName(e){return e?(this._folders.find(t=>t.id===e)||{name:this.strings.bucketNotFound}).name:this.strings.bucketsSelfAssigned}isTaskInSelectedGroupFilter(e){var t;return!this._currentGroup||e.topParentId===this._currentGroup||!this._currentGroup&&this.getTaskSource().isAssignedToMe(e,(t=this._me)===null||t===void 0?void 0:t.id)}isTaskInSelectedFolderFilter(e){return e.immediateParentId===this._currentFolder||!this._currentFolder}dateToInputValue(e){return e?new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().split("T")[0]:null}};Kt([E({attribute:"read-only",type:Boolean}),Wt("design:type",Boolean)],Pt.prototype,"readOnly",void 0);Kt([E({attribute:"target-id",type:String}),Wt("design:type",String)],Pt.prototype,"targetId",void 0);Kt([E({attribute:"target-bucket-id",type:String}),Wt("design:type",String)],Pt.prototype,"targetBucketId",void 0);Kt([E({attribute:"initial-id",type:String}),Wt("design:type",String)],Pt.prototype,"initialId",void 0);Kt([E({attribute:"initial-bucket-id",type:String}),Wt("design:type",String)],Pt.prototype,"initialBucketId",void 0);Kt([E({attribute:"hide-header",type:Boolean}),Wt("design:type",Boolean)],Pt.prototype,"hideHeader",void 0);Kt([E({attribute:"hide-options",type:Boolean}),Wt("design:type",Boolean)],Pt.prototype,"hideOptions",void 0);Kt([E({attribute:"group-id",type:String}),Wt("design:type",String)],Pt.prototype,"groupId",void 0);Kt([X(),Wt("design:type",Boolean)],Pt.prototype,"_isNewTaskVisible",void 0);Kt([X(),Wt("design:type",Boolean)],Pt.prototype,"_newTaskBeingAdded",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_newTaskName",void 0);Kt([X(),Wt("design:type",Date)],Pt.prototype,"_newTaskDueDate",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_newTaskGroupId",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_newTaskFolderId",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_newTaskContainerId",void 0);Kt([X(),Wt("design:type",Array)],Pt.prototype,"_groups",void 0);Kt([X(),Wt("design:type",Array)],Pt.prototype,"_folders",void 0);Kt([X(),Wt("design:type",Array)],Pt.prototype,"_tasks",void 0);Kt([X(),Wt("design:type",Array)],Pt.prototype,"_hiddenTasks",void 0);Kt([X(),Wt("design:type",Boolean)],Pt.prototype,"_inTaskLoad",void 0);Kt([X(),Wt("design:type",Boolean)],Pt.prototype,"_hasDoneInitialLoad",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_currentGroup",void 0);Kt([X(),Wt("design:type",String)],Pt.prototype,"_currentFolder",void 0);Kt([X(),Wt("design:type",Object)],Pt.prototype,"_isDarkMode",void 0);Kt([X(),Wt("design:type",Object)],Pt.prototype,"_me",void 0);l();c();d();xe();gt();pi();Cu();ge();vs();Qr();Jo();l();c();d();xe();var D6=[Oe`
:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host .container{display:flex;flex-direction:column;position:relative}:host .dropdown{display:none;position:absolute;z-index:1000;top:34px}:host .dropdown.visible{display:flex}:host .dropdown .team-photo{width:24px;position:inherit;border-radius:50%;margin:0 6px}:host .dropdown .team-start-slot{width:max-content}:host .dropdown .team-parent-name{width:auto}:host .loading-text,:host .search-error-text{font-style:normal;font-weight:400;font-size:14px;line-height:20px}:host .message-parent{display:flex;flex-direction:row;gap:5px;padding:5px}:host .message-parent .loading-text{margin:auto}:host fluent-card{background:var(--channel-picker-dropdown-background-color,var(--fill-color));padding:2px;--card-height:auto;--width:var(--card-width)}:host fluent-text-field{width:100%}:host fluent-text-field::part(root){background:padding-box linear-gradient(var(--channel-picker-input-background-color,var(--neutral-fill-input-rest)),var(--channel-picker-input-background-color,var(--neutral-fill-input-rest))),border-box var(--channel-picker-input-border-color,var(--neutral-stroke-input-rest))}:host fluent-text-field::part(root):hover{background:padding-box linear-gradient(var(--channel-picker-input-background-color-hover,var(--neutral-fill-input-hover)),var(--channel-picker-input-background-color-hover,var(--neutral-fill-input-hover))),border-box var(--channel-picker-input-hover-border-color,var(--neutral-stroke-input-hover))}:host fluent-text-field::part(root):focus,:host fluent-text-field::part(root):focus-within{background:padding-box linear-gradient(var(--channel-picker-input-background-color-focus,var(--neutral-fill-input-focus)),var(--channel-picker-input-background-color-focus,var(--neutral-fill-input-focus))),border-box var(--channel-picker-input-focus-border-color,var(--neutral-stroke-input-focus))}:host fluent-text-field::part(control){word-spacing:inherit;text-indent:inherit;letter-spacing:inherit}:host fluent-text-field::part(control)::placeholder{color:var(--channel-picker-input-placeholder-text-color,var(--input-placeholder-rest))}:host fluent-text-field::part(control):hover::placeholder{color:var(--channel-picker-input-placeholder-text-color-hover,var(--input-placeholder-hover))}:host fluent-text-field::part(control):focus-within::placeholder,:host fluent-text-field::part(control):focus::placeholder{color:var(--channel-picker-input-placeholder-text-color-focus,var(--input-placeholder-filled))}:host fluent-text-field .search-icon svg path{fill:var(--channel-picker-search-icon-color,currentColor)}:host fluent-text-field .down-chevron{height:auto;min-width:auto}:host fluent-text-field .down-chevron svg path{fill:var(--channel-picker-down-chevron-color,currentColor)}:host fluent-text-field .up-chevron{height:auto;min-width:auto}:host fluent-text-field .up-chevron svg path{fill:var(--channel-picker-up-chevron-color,currentColor)}:host fluent-text-field .close-icon{height:auto;min-width:auto}:host fluent-text-field .close-icon svg path{fill:var(--channel-picker-close-icon-color,currentColor)}:host fluent-tree-view{min-width:100%;--tree-item-nested-width:2em}:host fluent-tree-item{width:100%;--tree-item-nested-width:2em}:host fluent-tree-item:focus-visible{outline:0}:host fluent-tree-item::part(expand-collapse-button){background:0 0}:host fluent-tree-item::part(content-region),:host fluent-tree-item::part(positioning-region){color:var(--channel-picker-dropdown-item-text-color,currentColor);background:var(--channel-picker-dropdown-background-color,transparent);border:calc(var(--stroke-width) * 2px) solid transparent;height:auto}:host fluent-tree-item::part(content-region):hover,:host fluent-tree-item::part(positioning-region):hover{background:var(--channel-picker-dropdown-item-background-color-hover,var(--neutral-fill-stealth-hover))}:host fluent-tree-item::part(content-region):hover::part(expand-collapse-button),:host fluent-tree-item::part(positioning-region):hover::part(expand-collapse-button){background:var(--channel-picker-dropdown-item-background-color-hover,var(--neutral-fill-stealth-hover))}:host fluent-tree-item fluent-tree-item::part(content-region){height:auto}:host fluent-breadcrumb-item{color:var(--channel-picker-dropdown-item-text-color-selected,var(--neutral-foreground-rest))}:host fluent-breadcrumb-item .team-parent-name{font-weight:700}:host fluent-breadcrumb-item .team-photo{width:19px;position:inherit;border-radius:50%}:host fluent-breadcrumb-item .arrow{margin-left:8px;margin-right:8px}:host fluent-breadcrumb-item .arrow svg{stroke:var(--channel-picker-arrow-fill,var(--neutral-foreground-rest))}[dir=rtl] :host{--direction:rtl}[dir=rtl] .dropdown{text-align:right}[dir=rtl] .arrow{transform:scaleX(-1);filter:fliph;filter:"FlipH";margin-right:0;margin-left:5px}[dir=rtl] .selected-team{padding-left:10px}[dir=rtl] .message-parent .loading-text{right:auto;left:10px;padding-right:8px;text-align:right}@media (forced-colors:active) and (prefers-color-scheme:dark){:host fluent-text-field svg{stroke:rgb(255,255,255)!important}}@media (forced-colors:active) and (prefers-color-scheme:light){:host fluent-text-field svg{stroke:rgb(0,0,0)!important}}
-`];l();c();d();ge();_d();Ni();var Ex=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},kF=["Team.ReadBasic.All","TeamSettings.Read.All","TeamSettings.ReadWrite.All","User.Read.All","User.ReadWrite.All"],SF=["Channel.ReadBasic.All","ChannelSettings.Read.All","ChannelSettings.ReadWrite.All"],_F=["Team.ReadBasic.All","TeamSettings.Read.All","TeamSettings.ReadWrite.All"],L6=r=>Ex(void 0,void 0,void 0,function*(){let e=kF,t=yield r.api("/me/joinedTeams").select(["displayName","id","isArchived"]).middlewareOptions(be(e)).get();return t?.value}),N6=(r,e)=>Ex(void 0,void 0,void 0,function*(){let t,o={};if(fi()){t=W.getCache(N.photos,N.photos.stores.teams);for(let i of e)try{let n=yield t.getValue(i);n&&oc()>Date.now()-n.timeCached&&(o[i]=n)}catch{}if(Object.keys(o).length)return o}o={};for(let i of e)try{let n=yield zs(r,`/teams/${i}`,_F);fi()&&n&&(yield t.putValue(i,n)),o[i]=n}catch{}return o}),H6=(r,e)=>Ex(void 0,void 0,void 0,function*(){var t,o;let i=r.createBatch();for(let a of e)i.get(a.id,`teams/${a.id}/channels`,SF);let n=yield i.executeAll(),s=[];for(let a of e){let u=n.get(a.id);!((o=(t=u?.content)===null||t===void 0?void 0:t.value)===null||o===void 0)&&o.length&&s.push({item:a,channels:u.content.value.map(h=>({item:h}))})}return s});l();c();d();var U6={inputPlaceholderText:"Select a channel",noResultsFound:"We didn't find any matches.",loadingMessage:"Loading...",photoFor:"Teams photo for",teamsChannels:"Teams and channels results",closeButtonAriaLabel:"remove the selected channel",downChevronButtonAriaLabel:"Teams show results button",upChevronButtonAriaLabel:"Teams hide results button"};sc();Or();cr();ge();Vs();var z6=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},V6=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},B6=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Ix=()=>{at(Fw,Nw,ln,UC,zC,cn),dn(),Re("teams-channel-picker",ip)},ip=class extends it{static get styles(){return F6}get strings(){return U6}get selectedItem(){return this._selectedItemState?{channel:this._selectedItemState.item,team:this._selectedItemState.parent.item}:null}static get requiredScopes(){return["team.readbasic.all","channel.readbasic.all"]}set items(e){this._items!==e&&(this._items=e,this._treeViewState=e?this.generateTreeViewState(e):[],this.resetFocusState())}get items(){return this._items}get _inputWrapper(){return this.renderRoot.querySelector("fluent-text-field")}get _input(){let e=this._inputWrapper;return e?.shadowRoot.querySelector("input")}constructor(){super(),this.teamsPhotos={},this._inputValue="",this._treeViewState=[],this._focusList=[],this.renderLoading=()=>this.renderContent(),this.renderContent=()=>{var e;let t={dropdown:!0,visible:this._isDropdownVisible};return this.renderTemplate("default",{teams:(e=this.items)!==null&&e!==void 0?e:[]})||x`
+`];l();c();d();ge();_d();Ni();var Ex=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},kD=["Team.ReadBasic.All","TeamSettings.Read.All","TeamSettings.ReadWrite.All","User.Read.All","User.ReadWrite.All"],SD=["Channel.ReadBasic.All","ChannelSettings.Read.All","ChannelSettings.ReadWrite.All"],_D=["Team.ReadBasic.All","TeamSettings.Read.All","TeamSettings.ReadWrite.All"],L6=r=>Ex(void 0,void 0,void 0,function*(){let e=kD,t=yield r.api("/me/joinedTeams").select(["displayName","id","isArchived"]).middlewareOptions(be(e)).get();return t?.value}),N6=(r,e)=>Ex(void 0,void 0,void 0,function*(){let t,o={};if(fi()){t=W.getCache(N.photos,N.photos.stores.teams);for(let i of e)try{let n=yield t.getValue(i);n&&oc()>Date.now()-n.timeCached&&(o[i]=n)}catch{}if(Object.keys(o).length)return o}o={};for(let i of e)try{let n=yield zs(r,`/teams/${i}`,_D);fi()&&n&&(yield t.putValue(i,n)),o[i]=n}catch{}return o}),H6=(r,e)=>Ex(void 0,void 0,void 0,function*(){var t,o;let i=r.createBatch();for(let a of e)i.get(a.id,`teams/${a.id}/channels`,SD);let n=yield i.executeAll(),s=[];for(let a of e){let u=n.get(a.id);!((o=(t=u?.content)===null||t===void 0?void 0:t.value)===null||o===void 0)&&o.length&&s.push({item:a,channels:u.content.value.map(h=>({item:h}))})}return s});l();c();d();var U6={inputPlaceholderText:"Select a channel",noResultsFound:"We didn't find any matches.",loadingMessage:"Loading...",photoFor:"Teams photo for",teamsChannels:"Teams and channels results",closeButtonAriaLabel:"remove the selected channel",downChevronButtonAriaLabel:"Teams show results button",upChevronButtonAriaLabel:"Teams hide results button"};sc();Or();cr();ge();Vs();var z6=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},V6=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},B6=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Ix=()=>{at(Dw,Nw,ln,UC,zC,cn),dn(),Re("teams-channel-picker",ip)},ip=class extends it{static get styles(){return D6}get strings(){return U6}get selectedItem(){return this._selectedItemState?{channel:this._selectedItemState.item,team:this._selectedItemState.parent.item}:null}static get requiredScopes(){return["team.readbasic.all","channel.readbasic.all"]}set items(e){this._items!==e&&(this._items=e,this._treeViewState=e?this.generateTreeViewState(e):[],this.resetFocusState())}get items(){return this._items}get _inputWrapper(){return this.renderRoot.querySelector("fluent-text-field")}get _input(){let e=this._inputWrapper;return e?.shadowRoot.querySelector("input")}constructor(){super(),this.teamsPhotos={},this._inputValue="",this._treeViewState=[],this._focusList=[],this.renderLoading=()=>this.renderContent(),this.renderContent=()=>{var e;let t={dropdown:!0,visible:this._isDropdownVisible};return this.renderTemplate("default",{teams:(e=this.items)!==null&&e!==void 0?e:[]})||x`