res-1.cdn.office.net Open in urlscan Pro
2a02:26f0:7100::687e:241b  Public Scan

URL: https://res-1.cdn.office.net/files/odsp-web-prod_2024-05-03.004/splistwebpack/1308.js
Submission: On May 14 via manual from IN — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(self.odspNextWebpackJsonp=self.odspNextWebpackJsonp||[]).push([[1308,196,96,1562,593,522,524,579,581,598,502,518,521],{2384:(e,t,n)=>{"use strict";n.d(t,{a:()=>C});var a=n("fui.util_43");function i(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('".concat(e,"fabric-icons-a13498cf.woff') format('woff')")},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};(0,a.dL)(n,t)}function r(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('".concat(e,"fabric-icons-0-467ee27f.woff') format('woff')")},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};(0,a.dL)(n,t)}function o(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('".concat(e,"fabric-icons-1-4d521695.woff') format('woff')")},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};(0,a.dL)(n,t)}function s(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('".concat(e,"fabric-icons-2-63c99abf.woff') format('woff')")},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};(0,a.dL)(n,t)}function c(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('".concat(e,"fabric-icons-3-089e217a.woff') format('woff')")},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};(0,a.dL)(n,t)}function d(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('".concat(e,"fabric-icons-4-a656cc0a.woff') format('woff')")},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};(0,a.dL)(n,t)}function l(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('".concat(e,"fabric-icons-5-f95ba260.woff') format('woff')")},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};(0,a.dL)(n,t)}function u(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('".concat(e,"fabric-icons-6-ef6fd590.woff') format('woff')")},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};(0,a.dL)(n,t)}function f(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('".concat(e,"fabric-icons-7-2b97bb99.woff') format('woff')")},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};(0,a.dL)(n,t)}function p(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('".concat(e,"fabric-icons-8-6fdf1528.woff') format('woff')")},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};(0,a.dL)(n,t)}function m(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('".concat(e,"fabric-icons-9-c6162b42.woff') format('woff')")},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};(0,a.dL)(n,t)}function _(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('".concat(e,"fabric-icons-10-c4ded8e4.woff') format('woff')")},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};(0,a.dL)(n,t)}function h(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('".concat(e,"fabric-icons-11-2a8393d6.woff') format('woff')")},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};(0,a.dL)(n,t)}function b(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('".concat(e,"fabric-icons-12-7e945a1e.woff') format('woff')")},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};(0,a.dL)(n,t)}function g(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('".concat(e,"fabric-icons-13-c3989a02.woff') format('woff')")},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};(0,a.dL)(n,t)}function v(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('".concat(e,"fabric-icons-14-5cf58db8.woff') format('woff')")},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};(0,a.dL)(n,t)}function y(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('".concat(e,"fabric-icons-15-3807251b.woff') format('woff')")},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};(0,a.dL)(n,t)}function S(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('".concat(e,"fabric-icons-16-9cf93f3b.woff') format('woff')")},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};(0,a.dL)(n,t)}function D(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('".concat(e,"fabric-icons-17-0c4ed701.woff') format('woff')")},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};(0,a.dL)(n,t)}(0,a.SW)("@fluentui/font-icons-mdl2","8.5.36");var I="".concat(a.YI,"/assets/icons/"),x=(0,a.T7)();function C(e,t){var n,C;void 0===e&&(e=(null===(n=null==x?void 0:x.FabricConfig)||void 0===n?void 0:n.iconBaseUrl)||(null===(C=null==x?void 0:x.FabricConfig)||void 0===C?void 0:C.fontBaseUrl)||I),[i,r,o,s,c,d,l,u,f,p,m,_,h,b,g,v,y,S,D].forEach(function(n){return n(e,t)}),(0,a.qz)("trash","delete"),(0,a.qz)("onedrive","onedrivelogo"),(0,a.qz)("alertsolid12","eventdatemissed12"),(0,a.qz)("sixpointstar","6pointstar"),(0,a.qz)("twelvepointstar","12pointstar"),(0,a.qz)("toggleon","toggleleft"),(0,a.qz)("toggleoff","toggleright")}}
,2424:(e,t,n)=>{"use strict";function a(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=a(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function i(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=a(e))&&(i&&(i+=" "),i+=t);return i}n.r(t),n.d(t,{clsx:()=>i,default:()=>r});const r=i}
,2423:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),t.default=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=_(void 0);if(n&&n.has(e))return n.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}(n("react-lib")),r=m(n("prop-types-lib")),o=m(n("react-dom-lib")),s=m(n(2424)),c=n(2283),d=n(2328),l=n(2260),u=m(n(2426)),f=m(n(2329)),p=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function m(e){return e&&e.__esModule?e:{default:e}}function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_=function(e){return e?n:t})(e)}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},h.apply(this,arguments)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function y(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function D(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(_,e);var t,n,a,r,l,m=(r=_,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=x(r);if(l){var n=x(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return D(this,e)});function _(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),C(I(t=m.call(this,e)),"onDragStart",function(e,n){if((0,f.default)("Draggable: onDragStart: %j",n),!1===t.props.onStart(e,(0,d.createDraggableData)(I(t),n)))return!1;t.setState({dragging:!0,dragged:!0})}),C(I(t),"onDrag",function(e,n){if(!t.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",n);var a,i=(0,d.createDraggableData)(I(t),n),r={x:i.x,y:i.y};if(t.props.bounds){var o=r.x,s=r.y;r.x+=t.state.slackX,r.y+=t.state.slackY;var c=(2,function(e){if(Array.isArray(e))return e}(a=(0,d.getBoundPosition)(I(t),r.x,r.y))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),2!==r.length);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return r}}(a)||function(e,t){if(e){if("string"==typeof e)return v(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,2):void 0}}(a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],u=c[1];r.x=l,r.y=u,r.slackX=t.state.slackX+(o-r.x),r.slackY=t.state.slackY+(s-r.y),i.x=r.x,i.y=r.y,i.deltaX=r.x-t.state.x,i.deltaY=r.y-t.state.y}if(!1===t.props.onDrag(e,i))return!1;t.setState(r)}),C(I(t),"onDragStop",function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,d.createDraggableData)(I(t),n)))return!1;(0,f.default)("Draggable: onDragStop: %j",n);var a={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var i=t.props.position,r=i.x,o=i.y;a.x=r,a.y=o}t.setState(a)}),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:g({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=_,a=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,a=t.prevPropsPosition;return!n||a&&n.x===a.x&&n.y===a.y?null:((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:a}),{x:n.x,y:n.y,prevPropsPosition:g({},n)})}}],(n=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:o.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),a=t.defaultPosition,r=t.defaultClassName,o=t.defaultClassNameDragging,l=t.defaultClassNameDragged,f=t.position,m=t.positionOffset,_=(t.scale,function(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,p)),b={},v=null,y=!Boolean(f)||this.state.dragging,S=f||a,D={x:(0,d.canDragX)(this)&&y?this.state.x:S.x,y:(0,d.canDragY)(this)&&y?this.state.y:S.y};this.state.isElementSVG?v=(0,c.createSVGTransform)(D,m):b=(0,c.createCSSTransform)(D,m);var I=(0,s.default)(n.props.className||"",r,(C(e={},o,this.state.dragging),C(e,l,this.state.dragged),e));return i.createElement(u.default,h({},_,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),i.cloneElement(i.Children.only(n),{className:I,style:g(g({},n.props.style),b),transform:v}))}}])&&y(t.prototype,n),a&&y(t,a),Object.defineProperty(t,"prototype",{writable:!1}),_}(i.Component);t.default=O,C(O,"displayName","Draggable"),C(O,"propTypes",g(g({},u.default.propTypes),{},{axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe})),C(O,"defaultProps",g(g({},u.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))}
,2426:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=f(void 0);if(n&&n.has(e))return n.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}(n("react-lib")),r=u(n("prop-types-lib")),o=u(n("react-dom-lib")),s=n(2283),c=n(2328),d=n(2260),l=u(n(2329));function u(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!t||r.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function b(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S={start:"touchstart",move:"touchmove",stop:"touchend"},D={start:"mousedown",move:"mousemove",stop:"mouseup"},I=D,x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,n,a,r,d=(a=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=v(a);if(r){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function u(){var e;_(this,u);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return y(g(e=d.call.apply(d,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),y(g(e),"mounted",!1),y(g(e),"handleDragStart",function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var a=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof a.defaultView.Node)||e.props.handle&&!(0,s.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,s.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var i=(0,s.getTouchIdentifier)(t);e.setState({touchIdentifier:i});var r=(0,c.getControlPosition)(t,i,g(e));if(null!=r){var o=r.x,d=r.y,u=(0,c.createCoreData)(g(e),o,d);(0,l.default)("DraggableCore: handleDragStart: %j",u),(0,l.default)("calling",e.props.onStart),!1!==e.props.onStart(t,u)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,s.addUserSelectStyles)(a),e.setState({dragging:!0,lastX:o,lastY:d}),(0,s.addEvent)(a,I.move,e.handleDrag),(0,s.addEvent)(a,I.stop,e.handleDragStop))}}}),y(g(e),"handleDrag",function(t){var n=(0,c.getControlPosition)(t,e.state.touchIdentifier,g(e));if(null!=n){var a=n.x,i=n.y;if(Array.isArray(e.props.grid)){var r=a-e.state.lastX,o=i-e.state.lastY,s=p((0,c.snapToGrid)(e.props.grid,r,o),2);if(r=s[0],o=s[1],!r&&!o)return;a=e.state.lastX+r,i=e.state.lastY+o}var d=(0,c.createCoreData)(g(e),a,i);if((0,l.default)("DraggableCore: handleDrag: %j",d),!1!==e.props.onDrag(t,d)&&!1!==e.mounted)e.setState({lastX:a,lastY:i});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var u=document.createEvent("MouseEvents");u.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(u)}}}),y(g(e),"handleDragStop",function(t){if(e.state.dragging){var n=(0,c.getControlPosition)(t,e.state.touchIdentifier,g(e));if(null!=n){var a=n.x,i=n.y;if(Array.isArray(e.props.grid)){var r=a-e.state.lastX||0,o=i-e.state.lastY||0,d=p((0,c.snapToGrid)(e.props.grid,r,o),2);r=d[0],o=d[1],a=e.state.lastX+r,i=e.state.lastY+o}var u=(0,c.createCoreData)(g(e),a,i);if(!1===e.props.onStop(t,u)||!1===e.mounted)return!1;var f=e.findDOMNode();f&&e.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(f.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",u),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),f&&((0,l.default)("DraggableCore: Removing handlers"),(0,s.removeEvent)(f.ownerDocument,I.move,e.handleDrag),(0,s.removeEvent)(f.ownerDocument,I.stop,e.handleDragStop))}}}),y(g(e),"onMouseDown",function(t){return I=D,e.handleDragStart(t)}),y(g(e),"onMouseUp",function(t){return I=D,e.handleDragStop(t)}),y(g(e),"onTouchStart",function(t){return I=S,e.handleDragStart(t)}),y(g(e),"onTouchEnd",function(t){return I=S,e.handleDragStop(t)}),e}return t=u,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,s.addEvent)(e,S.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,s.removeEvent)(t,D.move,this.handleDrag),(0,s.removeEvent)(t,S.move,this.handleDrag),(0,s.removeEvent)(t,D.stop,this.handleDragStop),(0,s.removeEvent)(t,S.stop,this.handleDragStop),(0,s.removeEvent)(e,S.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current:o.default.findDOMNode(this)}},{key:"render",value:function(){return i.cloneElement(i.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.Component);t.default=x,y(x,"displayName","DraggableCore"),y(x,"propTypes",{allowAnyClick:r.default.bool,disabled:r.default.bool,enableUserSelectHack:r.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:r.default.arrayOf(r.default.number),handle:r.default.string,cancel:r.default.string,nodeRef:r.default.object,onStart:r.default.func,onDrag:r.default.func,onStop:r.default.func,onMouseDown:r.default.func,scale:r.default.number,className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),y(x,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})}
,2327:(e,t,n)=>{"use strict";var a=n(2423),i=a.default,r=a.DraggableCore;e.exports=i,e.exports.default=i,e.exports.DraggableCore=r}
,2283:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=p,t.addEvent=function(e,t,n,a){if(e){var i=c({capture:!0},a);e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}},t.addUserSelectStyles=function(e){if(e){var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&p(e.body,"react-draggable-transparent-selection")}},t.createCSSTransform=function(e,t){var n=f(e,t,"px");return d({},(0,r.browserPrefixToKey)("transform",r.default),n)},t.createSVGTransform=function(e,t){return f(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,i.findInArray)(e.targetTouches,function(e){return t===e.identifier})||e.changedTouches&&(0,i.findInArray)(e.changedTouches,function(e){return t===e.identifier})},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=f,t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,i.int)(n.paddingTop))-(0,i.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,i.int)(n.paddingLeft))-(0,i.int)(n.paddingRight)},t.matchesSelector=u,t.matchesSelectorAndParentsTo=function(e,t,n){var a=e;do{if(u(a,t))return!0;if(a===n)return!1;a=a.parentNode}while(a);return!1},t.offsetXYFromParent=function(e,t,n){var a=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-a.left)/n,y:(e.clientY+t.scrollTop-a.top)/n}},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,i.int)(n.borderTopWidth))+(0,i.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,i.int)(n.borderLeftWidth))+(0,i.int)(n.borderRightWidth)},t.removeClassName=m,t.removeEvent=function(e,t,n,a){if(e){var i=c({capture:!0},a);e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&m(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var i=n(2260),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=o(void 0);if(n&&n.has(e))return n.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=r?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(i,s,c):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i}(n(2425));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l="";function u(e,t){return l||(l=(0,i.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,i.isFunction)(e[t])})),!!(0,i.isFunction)(e[l])&&e[l](t)}function f(e,t,n){var a=e.x,i=e.y,r="translate(".concat(a).concat(n,",").concat(i).concat(n,")");if(t){var o="".concat("string"==typeof t.x?t.x:t.x+n),s="".concat("string"==typeof t.y?t.y:t.y+n);r="translate(".concat(o,", ").concat(s,")")+r}return r}function p(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function m(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}}
,2425:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=i,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=a;var n=["Moz","Webkit","O","ms"];function a(){var e,t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var r=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!r)return"";if(a in r)return"";for(var o=0;o<n.length;o++)if(i(a,n[o])in r)return n[o];return""}function i(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,a=0;a<e.length;a++)n?(t+=e[a].toUpperCase(),n=!1):"-"===e[a]?n=!0:t+=e[a];return t}(e)):e}var r=a();t.default=r}
,2329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}}
,2328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){var i=e.state,o=!(0,a.isNum)(i.lastX),s=r(e);return o?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-i.lastX,deltaY:n-i.lastY,lastX:i.lastX,lastY:i.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var o=e.props.bounds;o="string"==typeof o?o:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(o);var s=r(e);if("string"==typeof o){var c,d=s.ownerDocument,l=d.defaultView;if(!((c="parent"===o?s.parentNode:d.querySelector(o))instanceof l.HTMLElement))throw new Error('Bounds selector "'+o+'" could not find an element.');var u=c,f=l.getComputedStyle(s),p=l.getComputedStyle(u);o={left:-s.offsetLeft+(0,a.int)(p.paddingLeft)+(0,a.int)(f.marginLeft),top:-s.offsetTop+(0,a.int)(p.paddingTop)+(0,a.int)(f.marginTop),right:(0,i.innerWidth)(u)-(0,i.outerWidth)(s)-s.offsetLeft+(0,a.int)(p.paddingRight)-(0,a.int)(f.marginRight),bottom:(0,i.innerHeight)(u)-(0,i.outerHeight)(s)-s.offsetTop+(0,a.int)(p.paddingBottom)-(0,a.int)(f.marginBottom)}}return(0,a.isNum)(o.right)&&(t=Math.min(t,o.right)),(0,a.isNum)(o.bottom)&&(n=Math.min(n,o.bottom)),(0,a.isNum)(o.left)&&(t=Math.max(t,o.left)),(0,a.isNum)(o.top)&&(n=Math.max(n,o.top)),[t,n]},t.getControlPosition=function(e,t,n){var a="number"==typeof t?(0,i.getTouch)(e,t):null;if("number"==typeof t&&!a)return null;var o=r(n),s=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,i.offsetXYFromParent)(a||e,s,n.props.scale)},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var a=n(2260),i=n(2283);function r(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}}
,2260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var n=0,a=e.length;n<a;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}}
,4147:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var a=n(7614),i=n("odsp.util_578");function r(e,t){var n="";if(t.length){if(1===t.length)n=(0,i.OO)(a.c,t[0]);else if(2===t.length)n=(0,i.OO)(a.e,t[0],t[1]);else{n=t[0];for(var r=1;r<t.length-1;r++)n=(0,i.OO)(a.a,n,t[r]);n=(0,i.OO)(a.b,n,t[t.length-1])}n=(0,i.OO)(a.d,e||"",n)}return n}}
,4115:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var a=new(n(2).a)("calendarCanvasDateRangeFilter",{})}
,1819:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmationDialog:()=>f});var a=n("tslib_102"),i=n("fui.lcoms_828"),r=n("fui.lco_496"),o=n(2508),s=n("odsp.util_578"),c=n("react-lib"),d=n(2520),l=n(7010),u=s.HW.isActivated("024eb126-5286-4452-8769-7540475c6eda","02/29/2024","Fix focus issue where after exiting the dialog, the focus is not returned to the element that opened the dialog."),f=function(e){var t=e.onConfirm,n=e.onCancel,s=e.defaultToYes,f=void 0!==s&&s,p=e.defaultFocusToYes,m=void 0!==p&&p,_=e.yesText,h=void 0===_?l.b:_,b=e.noText,g=void 0===b?l.a:b,v=e.showNoButton,y=void 0===v||v,S=e.yesClassName,D=e.noClassName,I=function(e){u&&e&&e.focus()},x=f?i.rfU:i.B0k,C=f?i.B0k:i.rfU,O=m?void 0:I,w=m?I:void 0,E=(0,r.dBO)("NoButton"),A=(0,r.dBO)("YesButton");return c.createElement(d.a,null,c.createElement(r.L$c,{scopedSettings:o.a},c.createElement(i.X$,(0,a.W_)({styles:e.styles,dialogContentProps:{type:r.r_c.close,styles:e.contentStyles,subText:e.prompt?e.prompt:""},onDismiss:n,hidden:!1,title:e.title,maxWidth:e.maxWidth,closeButtonAriaLabel:e.closeButtonAriaLabel},e.theme?{theme:e.theme}:{},{modalProps:{focusTrapZoneProps:u?{}:{firstFocusableTarget:"#".concat(m?A:E)}}}),e.children,c.createElement(r.j5C,null,c.createElement(x,(0,a.W_)({className:S,"data-automationid":"confirmbutton",onClick:t,componentRef:w,id:A},e.theme?{theme:e.theme}:{}),h),y&&c.createElement(C,(0,a.W_)({className:D,"data-automationid":"cancelbutton",onClick:n,id:E,componentRef:O},e.theme?{theme:e.theme}:{}),g)))))}}
,2520:(e,t,n)=>{"use strict";n.d(t,{a:()=>d,b:()=>l});var a=n("react-lib"),i=n(1305),r=n(1304),o=n(85),s=n("fui.util_43"),c=0;function d(e){var t=e.isDefault,n=void 0!==t&&t,s=a.useState("".concat(++c))[0],d=a.useContext(r.a),l=a.useRef(),f=l.current||n&&d.keyboardManager||(l.current=new i.a({isDefault:!1,id:s,parent:d.keyboardManager})),p=u(f),m=p.isActive,_=p.isChildActive;a.useEffect(function(){return function(){n||(f.setIsActive(!1),f.dispose())}},[]);var h=a.useMemo(function(){return{keyboardManager:f}},[f]);return a.createElement("div",{"data-keyboard-zone-id":s},a.createElement(r.a.Provider,{value:h},(0,o.b)(e.children,{isActive:m,isChildActive:_})))}function l(){return u(a.useContext(r.a).keyboardManager)}function u(e){var t=a.useState(function(){return e.getIsActive()}),n=t[0],i=t[1],r=a.useState(function(){return e.hasActiveChildren()}),o=r[0],c=r[1];return a.useEffect(function(){var t=new s.k_(null);return t.on(e,"change",function(){i(e.getIsActive()),c(e.hasActiveChildren())}),function(){t.dispose()}},[]),{isActive:n,isChildActive:o}}}
,3408:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var a=n(49),i=n(19),r=n(307),o=n(58),s=new a.a("itemSetAndGroupRollup",function(e,t){var n=t.itemKey,a=e.demandItemFacet(i.a,n),s=a&&a.itemKeys,c=e.demandItemFacet(r.a,n),d=r.a.evaluate(c)(e,{itemKey:n,itemKeys:s}).itemKeys,l={},u=0,f=!0,p=!0;s||(f=!1,p=!1);var m=[];return d&&function t(n){for(var a=0,s=n;a<s.length;a++){var c=s[a];if(c)if(e.demandItemFacet(i.d,c))f=!1,"number"==typeof(g=e.demandItemFacet(o.a,c))?u+=g:p=!1;else if(e.demandItemFacet(o.f,c)){var d=e.demandItemFacet(i.a,c),_=d&&d.itemKeys,h=e.demandItemFacet(r.a,c),b=r.a.evaluate(h)(e,{itemKey:c,itemKeys:_}).itemKeys;if(b){t(b);continue}var g=e.demandItemFacet(o.a,c);f=!1,"number"==typeof g?u+=g:p=!1}else m.push(c),l[c]=u,u++;else u++}}(d),{itemCount:u,itemKeys:m,areAllCountsKnown:p,areAllPagesResolved:f,indexMap:l}})}
,2788:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var a=function(){function e(){}return e.readFile=function(e){if(!e)return Promise.resolve("");var t=new FileReader;return new Promise(function(n,a){t.onloadend=function(){return n(t.result)},t.onerror=function(e){return a(e.error)},t.readAsDataURL(e)})},e}()}
,2795:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var a=n("tslib_102"),i=function(e){function t(t){return e.call(this,{dataSourceName:"FlowDataSource"},{pageContext:t})||this}return(0,a.XJ)(t,e),t.prototype.getFlowTemplatesByWeb=function(e){var t=this;return this._getRawFlowTemplatesByWeb(e).then(function(e){var n=[];if(0===e.synchronizationStatus){try{var a=JSON.parse(e.synchronizationDataObject.SynchronizationData);a&&a.value&&(n=a.value.map(function(e){return t._processFlowSynchronizationResultTemplate(e)}))}catch(e){}return n}}).catch(function(){return[]})},t.prototype.getFlowTemplatesByList=function(e,t){var n=this;return this._getRawFlowTemplatesByList(e,t).then(function(e){var t=[];if(0===e.synchronizationStatus){try{var a=JSON.parse(e.synchronizationDataObject.SynchronizationData);a&&a.value&&(t=a.value.map(function(e){return n._processFlowSynchronizationResultTemplate(e)}))}catch(e){}return t}}).catch(function(){return[]})},t.prototype.getFlowInstancesByWeb=function(e){var t=this;return this._getRawFlowInstancesByWeb(e).then(function(e){var n=[];if(0===e.synchronizationStatus)try{var a=JSON.parse(e.synchronizationDataObject.SynchronizationData);a&&a.value&&(n=a.value.map(function(e){return t._processFlowSynchronizationResultInstance(e)}))}catch(e){}return n}).catch(function(){return[]})},t.prototype.getFlowInstanceByList=function(e,t){var n=this;return this._getRawFlowInstanceByList(e,t).then(function(e){var t=null;if(0===e.synchronizationStatus)try{var a=JSON.parse(e.synchronizationDataObject.SynchronizationData);t=n._processFlowSynchronizationResultInstance(a)}catch(e){}return t}).catch(function(){return null})},t.prototype.getFlowInstancesByList=function(e){var t=this;return this._getRawFlowInstancesByList(e).then(function(e){var n=[];if(0===e.synchronizationStatus)try{var a=JSON.parse(e.synchronizationDataObject.SynchronizationData);a&&a.value&&(n=a.value.map(function(e){return t._processFlowSynchronizationResultInstance(e)}))}catch(e){}return n}).catch(function(){return[]})},t.prototype._getRawFlowTemplatesByWeb=function(e){var t=this,n=e?function(){return JSON.stringify({category:e})}:null;return this.getData(function(){return"".concat(t._pageContext.webAbsoluteUrl,"/_api/web/SyncFlowTemplates")},function(e){var t=JSON.parse(e).d;return{synchronizationData:e,synchronizationDataObject:t,synchronizationStatus:t.SynchronizationStatus}},"GetRawFlowTemplatesByList",n,"POST",null,null,null,!0)},t.prototype._getRawFlowTemplatesByList=function(e,t){var n=this,a=t?function(){return JSON.stringify({category:t})}:null;return this.getData(function(){return"".concat(n._pageContext.webAbsoluteUrl,"/_api/web/Lists('").concat(e,"')/SyncFlowTemplates")},function(e){var t=JSON.parse(e).d;return{synchronizationData:e,synchronizationDataObject:t,synchronizationStatus:t.SynchronizationStatus}},"GetRawFlowTemplatesByList",a,"POST",null,null,null,!0)},t.prototype._getRawFlowInstancesByWeb=function(e){var t=this,n=e?function(){return JSON.stringify({targetWebUrl:e})}:null;return this.getData(function(){return"".concat(t._pageContext.webAbsoluteUrl,"/_api/web/SyncFlowInstances")},function(e){var t=JSON.parse(e).d;return{synchronizationData:e,synchronizationDataObject:t,synchronizationStatus:t.SynchronizationStatus}},"GetRawFlowInstancesByWeb",n,"POST",null,null,null,!0)},t.prototype._getRawFlowInstanceByList=function(e,t){var n=this;return this.getData(function(){return"".concat(n._pageContext.webAbsoluteUrl,"/_api/web/Lists('").concat(t,"')/SyncFlowInstances")},function(e){var t=JSON.parse(e).d;return{synchronizationData:e,synchronizationDataObject:t,synchronizationStatus:t.SynchronizationStatus}},"GetRawFlowInstancesByList",function(){return JSON.stringify({flowID:e})},"POST",null,null,null,!0)},t.prototype._getRawFlowInstancesByList=function(e){var t=this;return this.getData(function(){return"".concat(t._pageContext.webAbsoluteUrl,"/_api/web/Lists('").concat(e,"')/SyncFlowInstances")},function(e){var t=JSON.parse(e).d;return{synchronizationData:e,synchronizationDataObject:t,synchronizationStatus:t.SynchronizationStatus}},"GetRawFlowInstancesByList",null,"POST",null,null,null,!0)},t.prototype._processFlowSynchronizationResultTemplate=function(e){return{id:e.name,displayName:e.properties.displayName,categoryNames:e.properties.categoryNames||[]}},t.prototype._processFlowSynchronizationResultInstance=function(e){var t=e.properties.definitionSummary.triggers,n=t.length>0?t[t.length-1]:null;return{id:e.name,displayName:e.properties.displayName,createdTime:e.properties.createdTime,trigger:n,environmentId:e.properties.environment.name,templateName:e.properties.templateName,state:e.properties.state}},t}(n(470).b)}
,2592:(e,t,n)=>{"use strict";n.d(t,{a:()=>f,b:()=>l,c:()=>c,d:()=>d,e:()=>u,f:()=>o,g:()=>s});var a=n("odsp.util_578"),i={ODB:751},r={ODB:1697};function o(){return a.tH.isFeatureEnabled(i)}function s(){return a.tH.isFeatureEnabled(r)}function c(e){var t;return s()?o()?a.HW.isActivated("44C25B23-9A3B-48B4-B331-B1E8A69C1920","09/07/2023","Updated tip1 PowerAutomate URLs")?"https://make.test.powerautomate.com":"https://make.preprod.powerautomate.com":(t=e&&e.farmSettings&&e.farmSettings.ExternalService_powerautomatemakehostname)?"https://".concat(t):"https://make.powerautomate.com":o()?"https://tip1.flow.microsoft.com":(t=e&&e.farmSettings&&e.farmSettings.ExternalService_flowhostname)?"https://".concat(t):"https://flow.microsoft.com"}function d(e,t){var n=c(t);return"".concat(n,"/manage/environments/").concat(e.environmentId,"/flows/shared/").concat(e.id,"/details")}function l(e,t){var n=c(t);return"".concat(n,"/manage/environments/").concat(e,"/approvals/received")}function u(e,t,n){return t?"".concat(c(n),"/environments/").concat(e,"/solutions/").concat(t):"".concat(c(n),"/environments/").concat(e,"/flows")}var f=function(){}}
,2817:(e,t,n)=>{"use strict";n.d(t,{a:()=>f,b:()=>p,c:()=>m});var a=n("tslib_102"),i=n(2818),r=n("odsp.util_578"),o=n(107),s=n(43),c=n(7123),d="SP.Directory.DirectorySession",l="SensitivityLabel:",u={ODB:1075},f={invalidLength:0,missingPrefixSuffix:1,containsBlockedWord:2,propertyConflict:3},p=function(e){function t(t){return e.call(this,{dataSourceName:"GroupSiteDataSource"},{pageContext:t})||this}return(0,a.XJ)(t,e),t._parseGroupSiteInfoResponse=function(e,t){var n=JSON.parse(e).d[t];return{siteUrl:n.SiteUrl,errorMessage:n.ErrorMessage,siteStatus:n.SiteStatus,documentsUrl:n.DocumentsUrl,groupId:n.GroupId}},t.prototype.checkGroupExists=function(e){var t=this;return this.getData(function(){return t._getUrl(r.OO("Group(alias='{0}')",e),d)},function(e){return!0},"GetGroupByAlias",void 0,"GET",void 0,void 0,0).then(function(e){return e},function(e){var t=e.code;if(t){var n=t.split(",")[1];if(n&&-1===n.indexOf("ResourceNotFoundException"))return!0}return!1})},t.prototype.getNotebookUrl=function(e){var t=this;return this.getData(function(){return t._pageContext.webAbsoluteUrl+r.OO("/_api/GroupSiteManager/Notebook?groupId='{0}'",e)},function(e){return JSON.parse(e).d.Notebook},"GetNotebookUrl",void 0,"GET",void 0,void 0,3)},t.prototype.getSiteStatus=function(e){var n=this;return this.getData(function(){return n._pageContext.webAbsoluteUrl+r.OO("/_api/GroupSiteManager/GetSiteStatus?groupId='{0}'",e)},function(e){return t._parseGroupSiteInfoResponse(e,"GetSiteStatus")},"GetSiteStatus",void 0,"GET",void 0,void 0,3)},t.prototype.createSite=function(e){var n=this;return this.getData(function(){return n._pageContext.webAbsoluteUrl+r.OO("/_api/GroupSiteManager/Create?groupId='{0}'",e)},function(e){return t._parseGroupSiteInfoResponse(e,"Create")},"CreateSite",void 0,"POST",void 0,void 0,3)},t.prototype.createGroup=function(e,n,a,i,o,s,c,d,f,p,m){var _,h,b,g,v=this;return"string"==typeof e?_=e:(_=e.displayName,n=e.mailNickname,a=e.isPublic,i=e.description,o=e.dataClassification,s=e.allowGuestUsers,c=e.siteUrl,d=e.formulaId,f=e.spSiteLanguage,m=e.hubSiteId,p=e.owners,h=e.sensitivityLabel,b=e.noRedirect),r.HW.isActivated("86b296d3-8110-463b-ae4c-b439789cef27","03/08/2022","Return correlation id with site creation results")||(g=function(e){var t;return e.response&&(e.response.correlationId=null===(t=e.eventData.extraData)||void 0===t?void 0:t.CorrelationId),e}),this.getData(function(){return v._pageContext.webAbsoluteUrl+"/_api/GroupSiteManager/CreateGroupEx"},function(e){if(JSON.parse(e).d)return{status:"200",response:e,groupSiteInfo:t._parseGroupSiteInfoResponse(e,"CreateGroupEx")}},"CreateGroupSiteFromSP",function(){var e=[];if(s&&e.push("AllowFileSharingForGuestUsers"),c){var t=v._extractSiteAlias(c);""!==t&&t!==n&&e.push("SiteAlias:"+t)}d&&e.push("implicit_formula_292aa8a00786498a87a5ca52d9f4214a_"+d),f&&e.push("SPSiteLanguage:"+f.toString()),r.tH.isFeatureEnabled(u)&&m&&e.push("HubSiteId:"+m.toString()),h&&e.push(l+h);var b={displayName:_,alias:n,isPublic:a,optionalParams:{Description:i,Owners:{results:p=p||[]},CreationOptions:{results:e},Classification:o}};return JSON.stringify(b)},"POST",void 0,void 0,0,b,void 0,g)},t.prototype.groupify=function(e,n,a,i,r,o,s,c){var d=this;return this.getData(function(){return d._pageContext.webAbsoluteUrl+"/_api/GroupSiteManager/CreateGroupForSite"},function(e){if(JSON.parse(e).d)return{status:"200",response:e,groupSiteInfo:t._parseGroupSiteInfoResponse(e,"CreateGroupForSite")}},"Groupify",function(){var t=[];o&&t.push("AllowFileSharingForGuestUsers"),s&&t.push("SharePointKeepOldHomepage"),c&&t.push(l+c);var d={displayName:e,alias:n,isPublic:a,optionalParams:{Description:i,CreationOptions:{results:t},Classification:r}};return JSON.stringify(d)},"POST",void 0,void 0,0)},t.prototype.getGroupSiteConversionData=function(){var e=this;return this.getData(function(){return e._pageContext.webAbsoluteUrl+"/_api/GroupSiteManager/GetGroupSiteConversionData"},function(e){var t=JSON.parse(e);if(t.d)return{status:"200",response:e,conversionInfo:{GroupType:t.d.GetGroupSiteConversionData.GroupType,SuggestedMembers:t.d.GetGroupSiteConversionData.SuggestedMembers.results,SuggestedOwners:t.d.GetGroupSiteConversionData.SuggestedOwners.results,UnsuggestablePrincipals:t.d.GetGroupSiteConversionData.UnsuggestablePrincipals.results,IsRegionRestricted:t.d.GetGroupSiteConversionData.IsRegionRestricted,IsWrongPdl:t.d.GetGroupSiteConversionData.IsWrongPdl,IsGroupifyDisabled:t.d.GetGroupSiteConversionData.IsGroupifyDisabled}}},"GetGroupSiteConversionData",null,"POST",void 0,void 0,0)},t.prototype.canUserCreateGroup=function(){var e=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return e._pageContext.webAbsoluteUrl+"/_api/GroupSiteManager/CanUserCreateGroup"},parseResponse:function(e){var t=JSON.parse(e);if(t&&t.d&&t.d.CanUserCreateGroup)return t.d.CanUserCreateGroup},qosName:"CanUserCreateGroup",method:"GET",maxRetries:3,noRedirect:!0})},t.prototype.getGroupCreationContext=function(e){var t=this;return void 0===e&&(e=!1),this.getDataUtilizingLegacyCache({getUrl:function(){return t._pageContext.webAbsoluteUrl+"/_api/GroupSiteManager/GetGroupCreationContext"},parseResponse:function(e){var n=!r.HW.isActivated("952bf3d2-dabd-47c3-8309-52b4220e944a","9/25/2020","AuthZenMandatoryLabelClient"),a=r.HW.isActivated("062e63a7-ba59-4e12-825b-f17fdb495696"),i=JSON.parse(e);if(i&&i.d&&i.d.GetGroupCreationContext){var o=i.d.GetGroupCreationContext,d=void 0,l=void 0,u=void 0;return d=t._parseClassificationOptions(o.ClassificationDescriptionsNew,"classificationDescription"),l=t._parseClassificationOptions(o.DataClassificationOptionsNew,"classificationDescription"),u=t._parseClassificationOptions(o.ClassificationPrivacyValue,"classificationPrivacy"),d.length>0&&l.length>0&&u.length>0&&n&&!o.SensitivityLabelPolicyMandatory&&(d.push({classificationDescription:"",classificationTitle:a?"None":c.a}),l.push({classificationDescription:a?"None":c.a,classificationTitle:s.a.Empty}),u.push({classificationTitle:s.a.Empty,classificationPrivacy:"unspecified"})),{requireSecondaryContact:o.RequireSecondaryContact,usageGuidelineUrl:o.UsageGuidelineUrl,dataClassificationOptions:o.DataClassificationOptions.results,customFormUrl:o.CustomFormUrl,allowToAddGuests:o.ExternalInvitationEnabled,sitePath:o.SitePath,defaultClassification:o.DefaultClassification,classificationDescriptions:t._parseClassificationOptions(o.ClassificationDescriptions,"classificationDescription"),classificationDescriptionsNew:d,dataClassificationOptionsNew:l,classificationPrivacy:u,siteSensitivityLabelId:o.SiteSensitivityLabelId,preferredLanguage:o.PreferredLanguage,machineLearningCaptureEnabled:o.MachineLearningCaptureEnabled,machineLearningExperienceEnabled:o.MachineLearningExperienceEnabled,showSelfServiceSiteCreation:o.ShowSelfServiceSiteCreation,siteCreationNewUX:o.SiteCreationNewUX,isSensitivityLabelMandatory:n&&o.SensitivityLabelPolicyMandatory,urlForCustomHelpPageSensitivityLabel:o.URLForCustomHelpPageSensitivityLabel}}},qosName:"GetGroupCreationContext",method:"GET",maxRetries:3,noRedirect:!0,bypassCache:e})},t.prototype.getSiteUrlFromAlias=function(e,t,n){var i=this;return this.getData(function(){var a=o.a.encodeRestUriStringToken(e);return n?t?i._pageContext.webAbsoluteUrl+r.OO("/_api/GroupSiteManager/GetValidSiteUrlFromAlias?alias='{0}'&managedPath='{1}'&isTeamSite={2}",a,t,n):i._pageContext.webAbsoluteUrl+r.OO("/_api/GroupSiteManager/GetValidSiteUrlFromAlias?alias='{0}'&isTeamSite={1}",a,n):t?i._pageContext.webAbsoluteUrl+r.OO("/_api/GroupSiteManager/GetValidSiteUrlFromAlias?alias='{0}'&managedPath='{1}'",a,t):i._pageContext.webAbsoluteUrl+r.OO("/_api/GroupSiteManager/GetValidSiteUrlFromAlias?alias='{0}'",a)},function(e){var t=JSON.parse(e);if(t&&t.d&&t.d.GetValidSiteUrlFromAlias)return t.d.GetValidSiteUrlFromAlias},"GetSiteUrlFromAlias",void 0,"GET",void 0,void 0,3,void 0,void 0,function(e){var t=e.errorData,n=e.eventData;if(t){var i=(t.code?t.code:"").indexOf("2147467261")>-1?"AliasNullException":t.status.toString();return{eventData:(0,a.W_)((0,a.W_)({},n),{resultCode:i})}}return{eventData:n}})},t.prototype.validateGroupName=function(e,t){var n=this,a=function(e){var t;switch(e.toLowerCase()){case"InvalidLength".toLowerCase():t=f.invalidLength;break;case"MissingPrefixSuffix".toLowerCase():t=f.missingPrefixSuffix;break;case"ContainsBlockedWord".toLowerCase():t=f.containsBlockedWord;break;case"PropertyConflict".toLowerCase():t=f.propertyConflict}return t},i=function(e){return{validationPropertyName:e.ValidationPropertyName,validationErrorCode:a(e.ValidationErrorCode),validationErrorMessage:e.ValidationErrorMessage,prefix:e.Prefix,suffix:e.Suffix,blockedWord:e.BlockedWord}};return this.getData(function(){return n._getUrl(r.OO("ValidateGroupName(displayName='{0}', alias='{1}')",o.a.encodeRestUriStringToken(e),o.a.encodeRestUriStringToken(t)),d)},function(e){var t=JSON.parse(e);if(t&&t.d&&t.d.ValidateGroupName){var n=t.d.ValidateGroupName,a=n.DisplayNameErrorDetails?i(n.DisplayNameErrorDetails):void 0,r=n.AliasErrorDetails?i(n.AliasErrorDetails):void 0;return{isValidName:n.IsValidName,errorCode:n.ErrorCode,errorMessage:n.ErrorMessage,displayNameErrorDetails:a,aliasErrorDetails:r}}},"ValidateGroupName",void 0,"GET",void 0,void 0,3)},t.prototype.teamify=function(){var e=this;return this.getData(function(){return e._pageContext.webAbsoluteUrl+"/_api/GroupSiteManager/EnsureTeamForGroup"},function(e){if(e){var t=JSON.parse(e);if(t&&t.d)return t.d.EnsureTeamForGroup}},"Groupify",function(){return""},"POST",void 0,void 0,0)},t.prototype._getUrl=function(e,t){return"".concat(this._pageContext.webAbsoluteUrl,"/_api/").concat(t,"/").concat(e)},t.prototype._extractSiteAlias=function(e){var t="";if(e&&e.length>0){var n=e.lastIndexOf("/")+1;if(-1!==n){n===e.length&&(n=(e=e.substr(0,e.length-1)).lastIndexOf("/")+1);var a=e.length-n;t=e.substr(n,a)}}return t},t.prototype._parseClassificationOptions=function(e,t){return e&&e.results?e.results.map(function(e){var n={classificationTitle:e.Key};return n[t]=e.Value,n}):void 0},t}(i.a);const m=p}
,2876:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var a=n("tslib_102");const i=function(e){function t(t){var n=e.call(this,{dataSourceName:"IBSegmentsDataSource",id:"IBSegmentsDataSource"},{pageContext:t})||this;return n.SPSITEMANAGER_URL_TEMPLATE="".concat(n._pageContext.webAbsoluteUrl,"/_api/SPSiteManager"),n}return(0,a.XJ)(t,e),t.prototype.getIBSegmentLabels=function(e){var t=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return"".concat(t.SPSITEMANAGER_URL_TEMPLATE,"/GetIBSegmentLabels")},qosName:"getIBSegmentLabels",bypassCache:e,parseResponse:function(e){var t=JSON.parse(e);return t&&t.d&&t.d.GetIBSegmentLabels&&t.d.GetIBSegmentLabels.results?t.d.GetIBSegmentLabels.results.map(function(e){return{objectId:e.ObjectId,displayName:e.DisplayName}}):[]},method:"POST",additionalPostData:JSON.stringify({IBSegments:this._pageContext.IBSegments})})},t.prototype.getCompatibleSegments=function(e,t){var n=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return"".concat(n.SPSITEMANAGER_URL_TEMPLATE,"/GetCompatibleSegments")},qosName:"GetCompatibleSegments",bypassCache:t,parseResponse:function(t){var n=JSON.parse(t);return n&&n.d&&n.d.GetCompatibleSegments&&n.d.GetCompatibleSegments.results?n.d.GetCompatibleSegments.results.map(function(e){return{objectId:e.ObjectId,displayName:e.DisplayName}}).filter(function(t){return!e.includes(t.objectId)}):[]},method:"POST",additionalPostData:JSON.stringify({segments:e})})},t.prototype.setIBSegments=function(e){var t=this;return this.getData(function(){return"".concat(t.SPSITEMANAGER_URL_TEMPLATE,"/SetIBSegments")},function(e){return null},"SetIBSegments",function(){return JSON.stringify({IBSegments:e})},"POST")},t.prototype.getTenantAllOrCompatibleIBSegments=function(e,t){var n=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return"".concat(n._pageContext.webAbsoluteUrl,"/_api/SPO.Tenant/GetTenantAllOrCompatibleIBSegments")},qosName:"GetTenantAllOrCompatibleIBSegments",bypassCache:t,parseResponse:function(t){var n=JSON.parse(t);return n&&n.d&&n.d.GetTenantAllOrCompatibleIBSegments&&n.d.GetTenantAllOrCompatibleIBSegments.results?n.d.GetTenantAllOrCompatibleIBSegments.results.map(function(e){return{objectId:e.ObjectId,displayName:e.DisplayName}}).filter(function(t){return!e.includes(t.objectId)}):[]},method:"POST",additionalPostData:JSON.stringify({segments:e})})},t}(n(330).b)}
,2706:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var a={off:0,on:1,defaultVaule:2}}
,2707:(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var a=n("tslib_102"),i=n(470),r=n(107),o=n(2706),s=n("odsp.util_578").HW.isActivated("f5ec737a-1970-45cb-b6c8-8526638856b0","10/28/2020","check for sync/notify new list creation capability"),c=function(e){function t(t){return e.call(this,{dataSourceName:"ListCollectionDataSource"},{pageContext:t})||this}return(0,a.XJ)(t,e),t.prototype.createList=function(t){var n=this,a=e.prototype.getData.call(this,function(){return r.a.escapeUrlForCallback(n._pageContext.webAbsoluteUrl)+"/_api/web/lists?&$expand=DefaultViewUrl"},function(e){return n._getSPList(e)},"CreateList",function(){return n._constructCreateListBody(t)});return!s&&a&&this._pageContext&&this._pageContext.dataSyncClient&&this._pageContext.dataSyncClient.then(function(e){return e&&e.notifyNewListCreated()}),a},t.prototype.ensureSiteAssetsLibrary=function(){var t=this;return e.prototype.getData.call(this,function(){return r.a.escapeUrlForCallback(t._pageContext.webAbsoluteUrl)+"/_api/web/lists/ensureSiteAssetsLibrary()"},function(e){return t._getSPList(e)},"EnsureSiteAssetsLibrary")},t.prototype.setSensitvityLabel=function(t,n,a){var i=this;return e.prototype.getData.call(this,function(){return r.a.escapeUrlForCallback(i._pageContext.webAbsoluteUrl)+"/_api/web/lists('".concat(n,"')")},function(e){return e},"setSensitivityLabel",function(){return i._constructSetSensitivityLabelBody(t)},"POST",{accept:"application/json;odata=verbose","X-HTTP-Method":"MERGE","IF-MATCH":"*"},"application/json;odata=verbose",void 0,void 0,void 0,void 0,void 0,a)},t.prototype.getDocumentLibrarySettingInfo=function(t,n,a){var i=this,o={description:"",defaultSensitivityLabel:""};return e.prototype.getData.call(this,function(){return r.a.escapeUrlForCallback(i._pageContext.webAbsoluteUrl)+"/_api/web/lists('".concat(t,"')")},function(e){try{var t=JSON.parse(e);return(null==t?void 0:t.d)&&(o.title=t.d.Title,o.description=t.d.Description,o.defaultSensitivityLabelId=t.d.DefaultSensitivityLabelForLibrary,a&&(o.espSensitivityLabelId=t.d.SensitivityLabelToEncryptOnDownloadForLibrary)),o}catch(e){return o}},"getListInformation",void 0,"Get",{accept:"application/json;odata=verbose","X-HTTP-Method":"GET","IF-MATCH":"*"},void 0,void 0,void 0,void 0,void 0,void 0,n)},t.prototype.setDocumentLibraryProperties=function(t,n,a,i){var o=this;return e.prototype.getData.call(this,function(){return r.a.escapeUrlForCallback(o._pageContext.webAbsoluteUrl)+"/_api/web/lists('".concat(n,"')")},function(e){return e},"setDocumentLibProperties",function(){return o._constructDocumentLibSettingBody(t.title,t.description,t.defaultSensitivityLabelId,t.espSensitivityLabelId,i)},"POST",{accept:"application/json;odata=verbose","X-HTTP-Method":"MERGE","IF-MATCH":"*"},"application/json;odata=verbose",void 0,void 0,void 0,void 0,void 0,a)},t.prototype._constructCreateListBody=function(e){return JSON.stringify({__metadata:{type:"SP.List"},BaseTemplate:e.templateType,Description:e.description,Title:e.title,OnQuickLaunch:e.quickLaunchOption!==o.a.off})},t.prototype._constructDocumentLibSettingBody=function(e,t,n,a,i){return i?JSON.stringify({__metadata:{type:"SP.List"},DefaultSensitivityLabelForLibrary:n,SensitivityLabelToEncryptOnDownloadForLibrary:a,Description:t,Title:e}):JSON.stringify({__metadata:{type:"SP.List"},DefaultSensitivityLabelForLibrary:n,Description:t,Title:e})},t.prototype._constructSetSensitivityLabelBody=function(e){return JSON.stringify({__metadata:{type:"SP.List"},DefaultSensitivityLabelForLibrary:e})},t.prototype._getSPList=function(e){var t=JSON.parse(e);if(t&&t.d){var n=t.d;return{title:n.Title,description:n.Description,defaultViewUrl:n.DefaultViewUrl,baseTemplate:n.BaseTemplate,hidden:n.Hidden,id:n.Id}}},t}(i.b)}
,2493:(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var a=n(642),i=n("odsp.util_578"),r=n(817),o=["AppendOnly","ClientSideComponentId","CommaSeparator","CustomFormatter","CustomUnitName","CustomUnitOnRight","DateFormat","Decimals","Description","DisplayName","EnforceUniqueValues","FieldRef","FillInChoice","FriendlyDisplayFormat","Format","Indexed","IsModern","IsolateStyles","IsRelationship","InternalName","LCID","List","Max","MaxLength","Min","Mult","Name","NumLines","Percentage","RelationshipDeleteBehavior","Required","RichText","RichTextMode","ShowField","StaticName","TimeFormat","Title","Type","Unit","UnlimitedLengthInDocumentLibrary","UserDisplayOptions","UserSelectionMode","UserSelectionScope"],s=["Choices","DefaultValue","DefaultFormula","FieldRefsXml","Validation"];const c=function(){function e(){var e=this;this._formatProperties={Field:{attributeKeys:o,childElementKeys:s,valueTransformer:function(t){return e.assembleChildElements("Field",t)}},Type:{valueTransformer:function(e){return a.a[e]}},DefaultValue:{nameOverride:"Default"},Choices:{nameOverride:"CHOICES",childElementKeys:["CHOICE"],valueTransformer:function(t){return e.assembleChildElements("Choices",{CHOICE:t},!0)}},FieldRefsXml:{nameOverride:"FieldRefs",valueTransformer:function(e){return e},childElementKeys:["FieldRef"],isXml:!0},Validation:{attributeKeys:["Message"],valueTransformer:function(e){return e.Formula}}}}return e.prototype.getFieldSchemaXml=function(e){return this.makeElementSegment("Field",e)},e.prototype.assembleChildElements=function(e,t,n){var a=this;void 0===n&&(n=!1);for(var i="",r=this._formatProperties[e].childElementKeys.filter(function(e){return void 0!==t[e]}),o=function(e){Array.isArray(t[e])&&n?t[e].forEach(function(t){return i+=a.makeElementSegment(e,t)}):i+=s.makeElementSegment(e,t[e])},s=this,c=0,d=r;c<d.length;c++)o(d[c]);return i},e.prototype.assembleAttributes=function(e,t){for(var n="",a=this._formatProperties[e],r=a.attributeKeys.filter(function(e){return void 0!==t[e]}),o=0,s=r;o<s.length;o++){var c=s[o];n+=this.makeAttributeSegment(c,t[c])}return i.OO("{0}{1}",this.getName(a,e),n)},e.prototype.makeElementSegment=function(e,t){var n=this._formatProperties[e];if(n&&n.isXml)return t;var a=this.getValue(n,e,t),r=this.getName(n,e,t),o=this.getName(n,e);return a||r!==o?i.OO("<{0}>{1}</{2}>",r,a,o):""},e.prototype.makeAttributeSegment=function(e,t){var n=this._formatProperties[e],a=this.getValue(n,e,t),r=this.getName(n,e);return a?i.OO(" {0}='{1}'",r,a):""},e.prototype.getName=function(e,t,n){return e&&e.attributeKeys&&n?this.assembleAttributes(t,n):e&&e.nameOverride?e.nameOverride:t},e.prototype.getValue=function(e,t,n){var a=e&&e.valueTransformer?e.valueTransformer(n):n;return e&&e.childElementKeys?a:this.formatValue(a)},e.prototype.formatValue=function(e){return"boolean"==typeof e?e.toString().toUpperCase():"string"==typeof e&&e?r.a.encodeText(e):"number"==typeof e?e.toString():null},e}()}
,2529:(e,t,n)=>{"use strict";n.d(t,{a:()=>_,b:()=>h});var a=n("tslib_102"),i=n(470),r=n(2493),o=n(403),s=n(780),c=n(96),d=n(4028),l=n(2314),u=n("odsp.util_578"),f=n(38),p=n(43),m=n(39),_=function(e){function t(t,n){var a=e.call(this,{},{pageContext:t})||this;return a._enableCustomQOSForColumnAPIs=!u.HW.isActivated("df883a7b-6867-4805-83f1-a5211ba72c6f","06/01/2023","Enable column APIs to accept QOS as parameter"),a._getValidationFormula=function(e){var t=a._parser.parseFromString(e.SchemaXml,"text/xml");return t.getElementsByTagName("Validation").length>0?t.getElementsByTagName("Validation")[0].innerHTML:e.ValidationFormula},a._fieldSchemaXmlHelper=new r.a,a._itemUrlHelper=new o.a({},{pageContext:t}),a._apiUrlHelper=new s.a({},{pageContext:t,itemUrlHelper:a._itemUrlHelper}),a._parser=new DOMParser,a._isMMDListFeatureEnabled()&&(a._getIdentityDSToken=n,a._tokenProvider=new d.a(null,{oAuthTokenDataSource:new l.a(t)})),a}return(0,a.XJ)(t,e),t.prototype.createField=function(e,t,n){return this.createAndGetField(e,t,n).then(function(e){return e.InternalName})},t.prototype.createAndGetField=function(e,t,n){var a=this;e&&(e.IsModern=!0);var i={parameters:{__metadata:{type:"SP.XmlSchemaFieldCreationInformation"},SchemaXml:this._fieldSchemaXmlHelper.getFieldSchemaXml(e),Options:n}};return this.getData(function(){return a._getListApiUrl(t).segment("Fields").segment("CreateFieldAsXml").toString()},function(e){var t=JSON.parse(e);return t&&t.d},"CreateField",function(){return JSON.stringify(i)},"POST")},t.prototype.createColumn=function(e,t){var n=this,a=(0,c.i)(this._pageContext);return this._getOAuthToken(a).then(function(a){return n.dataRequestor.getData({url:n._getListFieldsApiUrl(),authToken:a,qosName:n._enableCustomQOSForColumnAPIs&&t?t:"CreateListTypeColumn",method:"POST",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify(e),parseResponse:function(e){return JSON.parse(e)},noRedirect:!0})})},t.prototype.editColumn=function(e,t,n){var a=this,i=(0,c.i)(this._pageContext);return this._getOAuthToken(i).then(function(i){return a.dataRequestor.getData({url:a._getListFieldsApiUrl()+"/"+e,authToken:i,qosName:a._enableCustomQOSForColumnAPIs&&n?n:"EditListColumn",method:"PATCH",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify(t),parseResponse:function(e){return JSON.parse(e)},noRedirect:!0})})},t.prototype.getFields=function(e,t){var n=this,i="Id,InternalName,StaticName,Hidden,Required,Title,TypeAsString,FromBaseType";this._isAutoDocumentTaggingEnabled()&&(i+=",IsDocTagsEnabled"),this._isEnhancedImageTaggingEnabled()&&(i+=",IsEnhancedImageTaggingEnabled");var r=this._getListApiUrl(e).segment("Fields").oDataParameter("$select",i);if(t){var o=t.orderby,s=t.filters;(s=s&&s.trim())&&(r=r.oDataParameter("$filter",s)),o&&(r=r.oDataParameter("$orderby",o))}return this.getData(function(){return r.toString()},function(e){return JSON.parse(e).d.results.map(function(e){return(0,a.W_)((0,a.W_)({id:e.Id,type:e.TypeAsString,fromBaseType:e.FromBaseType,internalName:e.InternalName,isHidden:e.Hidden,isRequired:e.Required,staticName:e.StaticName,title:e.Title},n._isAutoDocumentTaggingEnabled()&&void 0!==e.IsDocTagsEnabled?{isDocTagsEnabled:e.IsDocTagsEnabled}:{}),n._isEnhancedImageTaggingEnabled()&&void 0!==e.IsEnhancedImageTaggingEnabled?{isEnhancedImageTaggingEnabled:e.IsEnhancedImageTaggingEnabled}:{})})},"GetFields",null,"GET")},t.prototype.getField=function(e,t){var n=this;return this.getData(function(){return n._getListApiUrl(t).segment("Fields").method("GetByInternalNameOrTitle",e).toString()},function(e){var t=JSON.parse(e),a=t&&t.d;return a&&a.ValidationFormula&&(a.ValidationFormula=n._getValidationFormula(a)),a},"GetField",null,"GET")},t.prototype.editField=function(e,t,n){var a=this;t&&(t.IsModern=!0);var i={__metadata:{type:"SP.Field"},SchemaXml:this._fieldSchemaXmlHelper.getFieldSchemaXml(t),Title:t.Title,Description:t.Description};return this.getData(function(){return a._getListApiUrl(n).segment("Fields").method("GetByInternalNameOrTitle",e).toString()},function(e){return e},"EditField",function(){return JSON.stringify(i)},"MERGE")},t.prototype.deleteField=function(e,t){var n=this;return this.getData(function(){return n._getListApiUrl(t).segment("Fields").method("GetByInternalNameOrTitle",e).segment("DeleteObject").toString()},function(e){return e},"DeleteField",null,"POST")},t.prototype.getCurrencyList=function(){var e=this;return this.getData(function(){return e._pageContext.webAbsoluteUrl+"/_api/SP.CurrencyList.GetList"},function(e){return JSON.parse(e).d.GetList.Items.results},"SP.CurrencyList.GetList",null,"POST")},t.prototype.getRegionalDateTimeSchema=function(){var e=this;return this.getData(function(){return e._pageContext.webAbsoluteUrl+"/_api/web/GetRegionalDateTimeSchema"},function(e){var t=JSON.parse(e);return JSON.parse(t.d.GetRegionalDateTimeSchema)},"GetRegionalDateTimeSchema",null,"POST")},t.prototype.getAllSitesLists=function(){var e=this,t="{0}/_api/v2.1/sites/{1},{2}/lists?$select=system,id,name,displayName,list";return u.HW.isActivated("4193ddda-eb9a-4b76-87f7-5d59e2a31b23")?this.getData(function(){return encodeURI(u.OO(t,(0,c.i)(e._pageContext),e._pageContext.siteId,e._pageContext.webId))},function(e){try{return JSON.parse(e).value}catch(e){return[]}},"GetAllSitesLists",null,"GET"):this.dataRequestor.getData({url:encodeURI(u.OO(t,(0,c.i)(this._pageContext),this._pageContext.siteId,this._pageContext.webId)),parseResponse:function(e){try{return JSON.parse(e).value}catch(e){return[]}},qosName:"GetAllSitesLists",method:"GET",webAbsoluteUrl:new f.a(this._pageContext.webAbsoluteUrl).authority})},t.prototype.parseDateTime=function(e,t,n){var a=this,i={value:e,displayFormat:t,calendarType:n};return this.getData(function(){return a._pageContext.webAbsoluteUrl+"/_api/web/ParseDateTime"},function(e){var t=JSON.parse(e);return JSON.parse(t.d.ParseDateTime)},"ParseDateTime",function(){return JSON.stringify(i)},"POST")},t.prototype.setFieldPropertyValueAsString=function(e,t,n,a){var i=this,r={__metadata:{type:"SP.Field"}};return r[t]=n,this.getData(function(){return i._getListApiUrl(a).segment("Fields").method("GetByInternalNameOrTitle",e).toString()},function(e){return e},"setFieldPropertyValueAsString",function(){return JSON.stringify(r)},"MERGE")},t.prototype.getApprovalFlowSettings=function(e){var t=this;return this.getData(function(){return t._getListApiUrl(e).toString()+"&$select=EnableModeration,EnableRequestSignOff"},function(e){var t=JSON.parse(e).d;return{enableContentApproval:t.EnableModeration,enableRequestSignOff:t.EnableRequestSignOff}},"GetContentApproval",function(){return JSON.stringify({})},"POST")},t.prototype.setApprovalFlowSettings=function(e,t){var n=this,a={__metadata:{type:"SP.List"}};return e&&(a.EnableModeration=e.enableContentApproval,a.EnableRequestSignOff=e.enableRequestSignOff),this.getData(function(){return n._getListApiUrl(t).toString()},function(e){return null},"SetContentApproval",function(){return JSON.stringify(a)},"POST",{"IF-MATCH":"*","X-HTTP-Method":"MERGE"})},t.prototype._isMMDListFeatureEnabled=function(){return u.tH.isFeatureEnabled({ODB:1786})},t.prototype._isAutoDocumentTaggingEnabled=function(){return u.tH.isFeatureEnabled({ODB:60926})},t.prototype._isEnhancedImageTaggingEnabled=function(){return u.tH.isFeatureEnabled({ODB:60235})},t.prototype._getListApiUrl=function(e){var t=this._itemUrlHelper.getUrlParts({path:e||this._pageContext.listUrl,listUrl:e||this._pageContext.listUrl});return this._apiUrlHelper.build().webByItemUrl(t).method("GetList",t.serverRelativeListUrl)},t.prototype._getListFieldsApiUrl=function(){var e=this._getBaseSiteUrl(),t=p.a.normalizeLower(this._pageContext.listId,!1);return encodeURI(u.OO("{0}/lists/{1}/columns",e,t))},t.prototype._getBaseSiteUrl=function(e){var t=this._getAPIBaseUrl(e),n=new m.b(t).getAuthority(),a=p.a.normalizeLower(this._pageContext.siteId,!1),i=p.a.normalizeLower(this._pageContext.webId,!1);return"".concat(t,"/sites/").concat(n,",").concat(a,",").concat(i)},t.prototype._getAPIBaseUrl=function(e){var t=(0,c.i)(this._pageContext);return e=e||"2.1","".concat(t,"/_api/v").concat(e)},t.prototype._getOAuthToken=function(e){return void 0===this._getIdentityDSToken?this._tokenProvider.getToken(e):this._getIdentityDSToken()},t}(i.b);const h=_}
,2819:(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var a=n("tslib_102"),i=n(7143),r=i?{"ar-sa":{resource:i.Arabic,name:"العربية",code:1025},"az-latn-az":{resource:i.Azerbaijani,name:"آذربایجان دیلی",code:1068},"bg-bg":{resource:i.Bulgarian,name:"български език",code:1026},"bs-latn-ba":{resource:i.Bosnian,name:"Bosanski",code:5146},"ca-es":{resource:i.Catalan,name:"Català",code:1027},"cs-cz":{resource:i.Czech,name:"Český Jazyk",code:1029},"cy-gb":{resource:i.Welsh,name:"Cymraeg",code:1106},"da-dk":{resource:i.Danish,name:"Dansk",code:1030},"de-de":{resource:i.German,name:"Deutsche",code:1031},"el-gr":{resource:i.Greek,name:"Ελληνικά",code:1032},"en-us":{resource:i.English,name:"English",code:1033},"es-es":{resource:i.Spanish,name:"Español",code:3082},"et-ee":{resource:i.Estonian,name:"Eesti",code:1061},"eu-es":{resource:i.Basque,name:"Euskara",code:1069},"fi-fi":{resource:i.Finnish,name:"Suomi",code:1035},"fr-fr":{resource:i.French,name:"Français",code:1036},"ga-ie":{resource:i.Irish,name:"Gaeilge",code:2108},"gl-es":{resource:i.Galician,name:"Galego",code:1110},"he-il":{resource:i.Hebrew,name:"עברית",code:1037},"hi-in":{resource:i.Hindi,name:"हिंदी",code:1081},"hr-hr":{resource:i.Croatian,name:"Hrvatski",code:1050},"hu-hu":{resource:i.Hungarian,name:"Magyar",code:1038},"id-id":{resource:i.Indonesian,name:"Bahasa Indonesia",code:1057},"it-it":{resource:i.Italian,name:"Italiano",code:1040},"ja-jp":{resource:i.Japanese,name:"日本語",code:1041},"kk-kz":{resource:i.Kazakh,name:"Қазақ Tілі",code:1087},"ko-kr":{resource:i.Korean,name:"조선말, 한국어",code:1042},"lt-lt":{resource:i.Lithuanian,name:"Lietuvių",code:1063},"lv-lv":{resource:i.Latvian,name:"Latviešu",code:1062},"mk-mk":{resource:i.Macedonian,name:"Mакедонски",code:1071},"ms-my":{resource:i.Malay,name:"Bahasa Melayu",code:1086},"nb-no":{resource:i.Norwegian,name:"Norsk",code:1044},"nl-nl":{resource:i.Dutch,name:"Nederlands",code:1043},"pl-pl":{resource:i.Polish,name:"Polski",code:1045},"prs-af":{resource:i.Dari,name:"درى",code:1164},"pt-br":{resource:i.PortugueseBR,name:"Português Brasil",code:1046},"pt-pt":{resource:i.PortuguesePT,name:"Português",code:2070},"ro-ro":{resource:i.Romanian,name:"Română",code:1048},"ru-ru":{resource:i.Russian,name:"Русский",code:1049},"sk-sk":{resource:i.Slovak,name:"Slovenčina",code:1051},"sl-si":{resource:i.Slovene,name:"Slovenščina",code:1060},"sr-cyrl-rs":{resource:i.SerbianCRS,name:"Српски",code:10266},"sr-latn-cs":{resource:i.SerbianLCS,name:"Srpski",code:2074},"sr-latn-rs":{resource:i.SerbianLCS,name:"Srpski",code:9242},"sv-se":{resource:i.Swedish,name:"Svenska",code:1053},"th-th":{resource:i.Thai,name:"ภาษาไทย",code:1054},"tr-tr":{resource:i.Turkish,name:"Türkçe",code:1055},"uk-ua":{resource:i.Ukrainian,name:"Українська",code:1058},"vi-vn":{resource:i.Vietnamese,name:"Tiếng Việt Nam",code:1066},"zh-cn":{resource:i.ChineseCN,name:"简体中文",code:2052},"zh-tw":{resource:i.ChineseTW,name:"繁體中文",code:1028}}:{},o=i?{pt:i.Portuguese}:{},s=i?{1025:{resource:i.Arabic,languageCode:"ar-sa"},1068:{resource:i.Azerbaijani,languageCode:"az-latn-az"},1026:{resource:i.Bulgarian,languageCode:"bg-bg"},5146:{resource:i.Bosnian,languageCode:"bs-latn-ba"},1027:{resource:i.Catalan,languageCode:"ca-es"},1029:{resource:i.Czech,languageCode:"cs-cz"},1106:{resource:i.Welsh,languageCode:"cy-gb"},1030:{resource:i.Danish,languageCode:"da-dk"},1031:{resource:i.German,languageCode:"de-de"},1032:{resource:i.Greek,languageCode:"el-gr"},1033:{resource:i.English,languageCode:"en-us"},3082:{resource:i.Spanish,languageCode:"es-es"},1061:{resource:i.Estonian,languageCode:"et-ee"},1069:{resource:i.Basque,languageCode:"eu-es"},1035:{resource:i.Finnish,languageCode:"fi-fi"},1036:{resource:i.French,languageCode:"fr-fr"},2108:{resource:i.Irish,languageCode:"ga-ie"},1110:{resource:i.Galician,languageCode:"gl-es"},1037:{resource:i.Hebrew,languageCode:"he-il"},1081:{resource:i.Hindi,languageCode:"hi-in"},1050:{resource:i.Croatian,languageCode:"hr-hr"},1038:{resource:i.Hungarian,languageCode:"hu-hu"},1057:{resource:i.Indonesian,languageCode:"id-id"},1040:{resource:i.Italian,languageCode:"it-it"},1041:{resource:i.Japanese,languageCode:"ja-jp"},1087:{resource:i.Kazakh,languageCode:"kk-kz"},1042:{resource:i.Korean,languageCode:"ko-kr"},1063:{resource:i.Lithuanian,languageCode:"lt-lt"},1062:{resource:i.Latvian,languageCode:"lv-lv"},1071:{resource:i.Macedonian,languageCode:"mk-mk"},1086:{resource:i.Malay,languageCode:"ms-my"},1044:{resource:i.Norwegian,languageCode:"nb-no"},1043:{resource:i.Dutch,languageCode:"nl-nl"},1045:{resource:i.Polish,languageCode:"pl-pl"},1164:{resource:i.Dari,languageCode:"prs-af"},1046:{resource:i.PortugueseBR,languageCode:"pt-br"},2070:{resource:i.PortuguesePT,languageCode:"pt-pt"},1048:{resource:i.Romanian,languageCode:"ro-ro"},1049:{resource:i.Russian,languageCode:"ru-ru"},1051:{resource:i.Slovak,languageCode:"sk-sk"},1060:{resource:i.Slovene,languageCode:"sl-si"},10266:{resource:i.SerbianCRS,languageCode:"sr-cyrl-rs"},2074:{resource:i.SerbianLCS,languageCode:"sr-latn-cs"},9242:{resource:i.SerbianLCS,languageCode:"sr-latn-rs"},1053:{resource:i.Swedish,languageCode:"sv-se"},1054:{resource:i.Thai,languageCode:"th-th"},1055:{resource:i.Turkish,languageCode:"tr-tr"},1058:{resource:i.Ukrainian,languageCode:"uk-ua"},1066:{resource:i.Vietnamese,languageCode:"vi-vn"},2052:{resource:i.ChineseCN,languageCode:"zh-cn"},1028:{resource:i.ChineseTW,languageCode:"zh-tw"}}:{},c=function(){function e(){}return e.getName=function(t){var n=e._getLanguageName(t);return n&&n.name||""},e.getLocalizedName=function(t){var n=e._getLanguageName(t);return n&&n.resource||""},e.getCode=function(t){var n=e._getLanguageName(t);return n&&n.code},e.getLanguageByCode=function(e){var t;return(null===(t=s[e])||void 0===t?void 0:t.languageCode)||""},e.getLanguagesByPrefix=function(e){if(!e)return[];var t=[];return Object.keys(r).forEach(function(n){n.startsWith(e.toLowerCase())&&t.push(s[r[n].code])}),t},e.getResourceByCode=function(e){var t;return(null===(t=s[e])||void 0===t?void 0:t.resource)||""},e.getSharePointLanguageNames=function(){return r},e.getSharePointLanguageKeys=function(){return Object.keys(r)},e.getLocalizedNameWithoutLocale=function(e){return o[e.toLowerCase()]||""},e.getInstalledLanguages=function(e,t){var n=2074,i=9242,r=[];t===i?r.push(n):t===n||e.indexOf(n)>-1&&-1===e.indexOf(i)?r.push(i):r.push(n);var o=(0,a.W_)({},s);return r.forEach(function(e){delete o[e]}),o},e.getLanguagesByCode=function(){return s},e._getLanguageName=function(e){var t=e.toLowerCase();return r[t]},e}()}
,2820:(e,t,n)=>{"use strict";n.d(t,{a:()=>s,b:()=>_});var a,i=n("tslib_102"),r=n(330),o=n(329);!function(e){e.PREFIX="MultilingualPages",e.Page="Page",e.Settings="MuiSettings",e.Panel="TranslationPanel",e.LangSelector="LanguageSelector"}(a||(a={}));var s,c=n(2819),d=n(20),l="MissingWebId",u="$NodeId",f="/_api/web/",p="".concat(f,"navigation/GetNodeById(").concat(u,")/TitleResource/GetResourceEntries"),m="".concat(f,"/SupportedUILanguageIds");!function(e){e[e.NewNavNode=0]="NewNavNode",e[e.ExistingNavNode=1]="ExistingNavNode",e[e.SiteTitle=2]="SiteTitle",e[e.SiteDescription=3]="SiteDescription"}(s||(s={}));var _=function(e){function t(t){var n=e.call(this,{id:"TranslationsDataSource",dataSourceName:"TranslationsDataSource"},{pageContext:t})||this;return n.clearCache=function(){n.flushCache(n._cacheRequestKey)},n.getTranslations=function(e,t){var i=new d.a({name:"".concat(a.PREFIX,".MUIEditing.NAVGetResourceEntries")});return n.getTranslationsPromise(e,{navNodeKey:t}).then(function(e){return i.end({resultType:d.b.Success}),n.formatTranslations(e)}).catch(function(e){return i.end({resultType:d.b.Failure,resultCode:"".concat(e?e.status:"undefined error"),error:e&&e.message?e.message.toString():"GetResourceEntries failed",extraData:{userId:n._pageContext.userId,tenantID:n._pageContext.siteSubscriptionId,correlationId:e?e.correlationId:"undefined error"}}),[]})},n.getAllSupportedLanguages=function(){var e=new d.a({name:"".concat(a.PREFIX,".MUIEditing.GetSupportedLanguages")});return n.getAllSupportedLanguagesPromise().then(function(t){return e.end({resultType:d.b.Success}),n._getAllSupportedLanguagesWithDefaultValue(t)}).catch(function(t){return e.end({resultType:d.b.Failure,resultCode:"".concat(t?t.status:"undefined error"),error:t&&t.message?t.message.toString():"GetSupportedLanguages failed",extraData:{userId:n._pageContext.userId,tenantID:n._pageContext.siteSubscriptionId,correlationId:t?t.correlationId:"undefined error"}}),[]})},n.formatTranslations=function(e){return e?e.map(function(e){return{code:e.LCID,language:c.a.getResourceByCode(e.LCID)||"",value:e.Value}}):[]},n.getTranslationsPromise=function(e,t){if(!n._pageContext||!n._pageContext.webId)return Promise.reject(l);var a=n._pageContext.webAbsoluteUrl,i="",r="";switch(e){case s.ExistingNavNode:r=a+p.replace(u,t.navNodeKey),i="MUIEditingGetNavTranslations";break;case s.SiteTitle:r=a+f+"TitleTranslations",i="MUIEditingGetSiteTitleTranslations";break;case s.SiteDescription:r=a+f+"DescriptionTranslations",i="MUIEditingGetSiteDescriptionTranslations"}var c={url:r,qosName:i,parseResponse:function(e){return e&&JSON.parse(e).value},method:"GET",additionalHeaders:{"ODATA-VERSION":"4.0",Accept:"*/*, application/json; odata.metadata=minimal"},contentType:"application/json; odata.metadata=minimal",maxRetries:1,cachingStrategy:o.a.bypassCache};return n.getDataUtilizingPersistentCache(c).catch(function(e){throw e})},n.getAllSupportedLanguagesPromise=function(){if(!n._pageContext||!n._pageContext.webId)return Promise.reject(l);var e={url:n._pageContext.webAbsoluteUrl+m,qosName:"GetAllSupportedLanguagesMUIEditing",parseResponse:function(e){return e&&JSON.parse(e).value},method:"GET",additionalHeaders:{"ODATA-VERSION":"4.0",Accept:"*/*, application/json; odata.metadata=minimal"},contentType:"application/json; odata.metadata=minimal",maxRetries:1,cachingStrategy:o.a.bypassCache};return n.getDataUtilizingPersistentCache(e).catch(function(e){throw e})},n._getAllSupportedLanguagesWithDefaultValue=function(e){return e.map(function(e){return{code:e,language:c.a.getResourceByCode(e)||"",value:""}})},n._cacheRequestKey="TranslationsDataSource_".concat(null==t?void 0:t.siteId,"_").concat(null==t?void 0:t.webId),n}return(0,i.XJ)(t,e),t.convertTranslationInputToSPResourceEntry=function(e){return e.map(function(e){return{LCID:e.code,Value:e.value}})},t.getDisplayLanguage=function(e,t){var n=e.filter(function(e){return e.code===(null==t?void 0:t.currentLanguage)}),a=e.filter(function(e){return e.code===(null==t?void 0:t.webLanguage)});return[1===n.length&&n[0].value.trim().length>0?n[0]:a[0],a[0]]},t}(r.b)}
,2314:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var a=n("tslib_102");const i=function(){function e(){}return e.tokenCacheSessionStorageId="tokenCache",e.aboutToExpireIntervalSeconds=600,e.apiUrl="/_api/SP.OAuth.Token/Acquire",e.retries=3,e.retriableErrorCodes=[10006,10008],e.unexpectedErrorCodeFormat="Expected error code format is <numericCode>, <exception class name>",e.unexpectedTokenMessageFormat="Your token request succeedeed but the token could not be parsed from the response.This is most probably caused by a change in the server response format",e.npmPackageVersion="0.1.5",e}();var r;!function(e){e[e.unknownError=0]="unknownError",e[e.malformedResponseBody=1]="malformedResponseBody",e[e.serverError=2]="serverError"}(r||(r={}));const o=function(e){function t(n,a){var i=e.call(this,a.message)||this;return i.__proto__=t.prototype,i._type=n,i._httpResponseStatus=a.httpResponseStatus,i._cultureName=a.cultureName,i._message=a.message,i._serverErrorCode=a.serverErrorCode,i._correlationId=a.correlationId,i._redirectUrl=a.redirectUrl,i}return(0,a.XJ)(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"serverErrorCode",{get:function(){if(this.type!==r.serverError)throw new Error("ServerErrorCode can only be obtained for errors of type serverError");return this._serverErrorCode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"httpResponseStatus",{get:function(){return this._httpResponseStatus},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cultureName",{get:function(){return this._cultureName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correlationId",{get:function(){return this._correlationId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"redirectUrl",{get:function(){return this._redirectUrl},enumerable:!1,configurable:!0}),t}(Error),s=function(){function e(e){var t=this;this._context=e,this._dispose=this._dispose.bind(this),window.addEventListener("unload",this._dispose),window._spPageOnMediaTokenReceived=function(){t._receiveMediaServiceFlushedToken()},window._spMSBTLoaded=function(){t._receiveMediaServiceFlushedToken()}}return e._getCorrelationId=function(e){return e.headers.get("sprequestguid")},e._extractRealError=function(e){return e.hasOwnProperty("error")?e.error:e},e.prototype.getOAuthToken=function(e,t){return this.getInstrumentedOAuthToken(e,t).then(function(e){if(e)return e.tokenInfo})},e.prototype.getInstrumentedOAuthToken=function(e,t){var n=this;this._receiveMediaServiceFlushedToken();var a=this._getCachedTokenData(e);if(a&&!this._isExpiring(a)){var r={token:a.accessToken,isGuest:!1,expirationTimeMs:a.expiresOn};return Promise.resolve({tokenInfo:r,spRequestId:a.correlationId,spRequestTimestamp:a.requestTimestamp})}return this._retriableFetchWithDigest(e,i.retries,t).then(function(t){return n._storeTokenData(e,t),{tokenInfo:{token:t.accessToken,isGuest:!1,expirationTimeMs:t.expiresOn},spRequestId:t.correlationId,spRequestTimestamp:t.requestTimestamp}})},e.prototype.clearCachedToken=function(e){var t=this._getCacheKey(e);window.sessionStorage.removeItem(t);var n=this._resourceKeys.indexOf(t);!isNaN(n)&&n>-1&&this._resourceKeys.splice(n)},Object.defineProperty(e.prototype,"_resourceKeys",{get:function(){return this._keysToDispose||(this._keysToDispose=new Array),this._keysToDispose},enumerable:!1,configurable:!0}),e.prototype._retriableFetchWithDigest=function(t,n,a){var i=this,s=this._context.qosMonitor(),c=Date.now();return this._context.fetchWithDigest(this._buildTokenRequest(t,a)).then(function(d){if(200!==d.status){i._context.logger.logError("fetchWithDigest failed. Server responded with "+d.statusText);var l=new o(r.unknownError,{httpResponseStatus:d.status,message:d.statusText,correlationId:e._getCorrelationId(d)});return 400!==d.status?(s.writeUnexpectedFailure("UnknownError",l),Promise.reject(l)):d.json().then(function(r){var o=e._extractRealError(r),c=i._getErrorCodeFromResponseCode(o);if(!i._isRetriableError(c)||0===n){var d=i._buildErrorFromResponse(o);return s.writeUnexpectedFailure("SharepointServerError",d),Promise.reject(d)}return i._context.logger.logError("fetchWithDigest failed. Retrying. Retries left: "+n),i._retriableFetchWithDigest(t,n-1,a)})}return i._instrumentedParseResponseData(d,s,c)})},e.prototype._getCachedTokenData=function(e){return JSON.parse(window.sessionStorage.getItem(this._getCacheKey(e)))},e.prototype._storeTokenData=function(e,t){window.sessionStorage.setItem(this._getCacheKey(e),JSON.stringify(t))},e.prototype._getCacheKey=function(e){var t=["sp-client-shared",i.npmPackageVersion,"OAuthUtility",e].join(";");return-1===this._resourceKeys.indexOf(t)&&this._resourceKeys.push(t),t},e.prototype._isExpiring=function(e){return e.expiresOn-Date.now()/1e3<i.aboutToExpireIntervalSeconds},e.prototype._isRetriableError=function(e){return-1!==i.retriableErrorCodes.indexOf(e)},e.prototype._buildTokenRequest=function(e,t){var n=new Headers;n.append("Content-Type","application/json; charset=utf-8"),n.append("Odata-Version","4.0"),n.append("Accept","application/json;odata.metadata=minimal");var a={method:"POST",headers:n,body:JSON.stringify(this._buildRequestBody(e))},r=t;return r&&r.lastIndexOf("/")===r.length-1&&(r=r.substr(0,r.length-1)),new Request(r+i.apiUrl,a)},e.prototype._buildRequestBody=function(e){return{resource:e}},e.prototype._buildErrorFromResponse=function(e){var t,n,a=this._getErrorCodeFromResponseCode(e);if(void 0===a)return new o(r.malformedResponseBody,{httpResponseStatus:400,message:i.unexpectedErrorCodeFormat,correlationId:e.correlationId});e.message&&("string"==typeof e.message?t=e.message:(t=e.message.value,n=e.message.lang));var s="error.redirectUrl";return new o(r.serverError,{httpResponseStatus:400,message:t,cultureName:n,serverErrorCode:a,correlationId:e.correlationId,redirectUrl:e[s]||e["@".concat(s)]})},e.prototype._getErrorCodeFromResponseCode=function(e){var t=e.code,n=Number(t);if(isNaN(n)&&"string"==typeof e.message){var a=t.indexOf(",");-1!==a&&(n=Number(t.substr(0,a)))}return n},e.prototype._instrumentedParseResponseData=function(t,n,a){try{return t.json().then(function(i){return n.writeSuccess(),{accessToken:i.access_token,expiresOn:Number(i.expires_on),notBefore:Number(i.not_before),resource:i.resource,tokenType:i.token_type,correlationId:e._getCorrelationId(t),requestTimestamp:a}})}catch(a){return n.writeUnexpectedFailure("ResponseParseError",a),Promise.reject(new o(r.malformedResponseBody,{httpResponseStatus:200,message:i.unexpectedTokenMessageFormat,correlationId:e._getCorrelationId(t)}))}},e.prototype._dispose=function(e){window.removeEventListener("unload",this._dispose);for(var t=0,n=this._resourceKeys;t<n.length;t++){var a=n[t];window.sessionStorage.removeItem(a)}},e.prototype._receiveMediaServiceFlushedToken=function(){if(window._spMSBT){var e={tokenType:window._spMSBT.TokenType,expiresOn:window._spMSBT.ExpiresOn,notBefore:void 0,resource:window._spMSBT.Resource,accessToken:window._spMSBT.AccessToken};this._storeTokenData(e.resource,e),window._spMSBT=void 0}},e}();var c=n(470),d=n(26),l=n(96),u=n(20),f=function(){function e(){this._qos=new u.a({name:"OAuthTokenDataSource"})}return e.prototype.writeSuccess=function(){this._qos.end({resultType:u.b.Success})},e.prototype.writeUnexpectedFailure=function(e,t){this._qos.end({resultCode:e,resultType:u.b.Failure,error:JSON.stringify(t)})},e.prototype.writeExpectedFailure=function(e,t){this._qos.end({resultCode:e,resultType:u.b.ExpectedFailure,error:JSON.stringify(t)})},e}(),p=function(){function e(){}return e.prototype.logWarning=function(e){},e.prototype.logError=function(e){},e}();const m=function(e){function t(t,n){var a=e.call(this,{},{pageContext:t})||this;return a.logger=new p,n&&(n.logger&&(a.logger=n.logger),n.useAbsoluteUrlForOAuth&&(a._useAbsoluteUrlForOAuth=n.useAbsoluteUrlForOAuth)),a._oAuthUtility=new s(a),a}return(0,a.XJ)(t,e),t.prototype.qosMonitor=function(){return new f},Object.defineProperty(t.prototype,"webUrl",{get:function(){return this._useAbsoluteUrlForOAuth?this._pageContext.webAbsoluteUrl:(0,l.h)(this._pageContext)},enumerable:!1,configurable:!0}),t.prototype.fetchWithDigest=function(e){var t=this;return e.text().then(function(n){var a=e.headers.get("Content-Type");return e.headers.delete("Content-Type"),t._odspPromiseToEs6Promise(t.getData(function(){return e.url},function(e,t){return new Response(e,{status:t.getStatus(),headers:t.getResponseHeadersDictionary()})},"DelegationTokenDataSource",function(){return n},"POST",t._getRequestHeadersDictionary(e),a,void 0,!0).then(function(e){return e},function(e){return new Response(JSON.stringify(e),{status:e.status})}))})},t.prototype.getToken=function(e,t){return t&&this._oAuthUtility.clearCachedToken(e),this._es6PromiseToOdspPromise(this._oAuthUtility.getOAuthToken(e,this.webUrl).then(function(e){return e.token}))},t.prototype.getInstrumentedToken=function(e,t){return t&&this._oAuthUtility.clearCachedToken(e),this._es6PromiseToOdspPromise(this._oAuthUtility.getInstrumentedOAuthToken(e,this.webUrl))},t.prototype._getRequestHeadersDictionary=function(e){var t=e.headers,n={};return t.forEach(function(e,t){n[t]=e}),n},t.prototype._odspPromiseToEs6Promise=function(e){return new Promise(function(t,n){e.then(function(e){t(e)},function(e){n(e)})})},t.prototype._es6PromiseToOdspPromise=function(e){return new d.c(function(t,n){e.then(function(e){t(e)},function(e){n(e)})})},t}(c.b)}
,2818:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var a=n("tslib_102"),i=n(107),r=n("odsp.util_578");const o=function(e){function t(t,n){return e.call(this,(0,a.W_)((0,a.W_)({},t),{id:"SiteCreationDataSource"}),n)||this}return(0,a.XJ)(t,e),t.prototype.checkSiteExists=function(e){var t=this;return this.getData(function(){return t._pageContext.webAbsoluteUrl+r.OO("/_api/SP.Site.Exists(url=@v)?@v='{0}'",i.a.encodeRestUriStringToken(e))},function(e){var t=JSON.parse(e);return t&&t.d&&t.d.Exists},"GetSiteExists",void 0,"GET",void 0,void 0,0)},t.prototype.getTenantAdminSettings=function(){var e=this;return this.getData(function(){return e._pageContext.webAbsoluteUrl+"/_api/SPOInternalUseOnly.TenantAdminSettings"},function(e){var t=JSON.parse(e);return{isAutoQuotaEnabled:t&&t.AutoQuotaEnabled?t.AutoQuotaEnabled.Value:void 0,defaultStorageQuota:t&&t.SiteCreationDefaultStorageQuota?t.SiteCreationDefaultStorageQuota.Value:void 0,defaultTimeZoneId:t&&t.TenantDefaultTimeZoneId?t.TenantDefaultTimeZoneId.Value:void 0}},"getTenantAdminSettings",void 0,"GET",{accept:"application/json"},void 0,0)},t.prototype.updateSiteProperties=function(e){var t=this;return this.getData(function(){return t._pageContext.webAbsoluteUrl+r.OO("/_api/SPOInternalUseOnly.SiteProperties?Url='{0}'",i.a.encodeRestUriStringToken(e.url))},void 0,"updateSiteProperites",function(){var t={TimeZoneId:e.timeZoneId?e.timeZoneId:void 0,StorageMaximumLevel:e.storageMaximumLevel?String(e.storageMaximumLevel):void 0,Owner:e.owner?e.owner:void 0};return JSON.stringify(t)},"PATCH",{Accept:"application/json"},"application/json",3)},t}(n(330).b)}
,2697:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var a=n("tslib_102"),i=n(470),r=n(107),o=n(95),s=function(e){function t(t){return e.call(this,{dataSourceName:"TaxonomyDataSource"},{pageContext:t})||this}return(0,a.XJ)(t,e),t.prototype.getSuggestions=function(e,t){var n=this;return this.getData(function(){return n._pageContext.webAbsoluteUrl+"/_vti_bin/TaxonomyInternalService.json/GetSuggestions"},function(e){var t=JSON.parse(e);if(0===t.d.Groups.length)return[];var a=t.d.Groups[0].Suggestions;return n.transformSuggestionData(a)},"TaxonomySuggestion",function(){return n.constructSuggestionPostBody(e,t)})},t.prototype.getMatches=function(e,t){var n=this;return this.getData(function(){return n._pageContext.webAbsoluteUrl+"/_vti_bin/TaxonomyInternalService.json/GetMatches"},function(e){var t=JSON.parse(e).d.Matches;return n.transformMatchData(t)},"TaxonomyMatch",function(){return n.constructMatchPostBody(e,t)})},t.prototype.getTaxonomyTreeUrl=function(e,t,n){var a=r.a.escapeUrlForCallback(this._pageContext.webAbsoluteUrl),i=r.a.escapeUrlForCallback(this._pageContext.layoutsUrl),s={Field:t.name,IsDlg:1,lcid:n.lcid,sspIds:n.sspList,termSetIds:n.termSetList,anchorGuid:n.anchorId,fieldName:t.name,fieldId:t.id,IsMulti:t.isMulti,tags:e,allowFillIn:n.allowFillIn,webServiceUrl:n.webServiceUrl,isAddTerms:n.isAddTerms,isIgnoreFormatting:!1,isIncludeDeprecated:n.isIncludeDeprecated,isIncludePathData:n.isIncludePathData,isIncludeTermSetName:n.isIncludeTermSetName,isIncludeUnavailable:n.isIncludeUnavailable,isSpanTermSets:n.isSpanTermSets,isSpanTermStores:n.isSpanTermStores,isUseCommaAsDelimiter:n.isUseCommaAsDelimiter};return a+"/"+i+"/WebTaggingDialog.aspx?"+(0,o.a)(s)},t.prototype.transformSuggestionData=function(e){var t=this;return e.map(function(e){var n={label:e.DefaultLabel,description:e.Description,termId:e.Id,isKeyword:e.IsKeyword,paths:e.Paths,rawSynonyms:e.Synonyms,synonyms:t.processSynonymsData(e.Synonyms),isValid:!0},a={completions:e.Completions,starts:e.Starts,isSynonym:e.IsSynonym};return{term:n,isSynonym:a.isSynonym,start:a.starts?a.starts[0]:null,completions:a.completions}})},t.prototype.transformMatchData=function(e){var t=this;return e.map(function(e){var n={label:e.DefaultLabel,termId:e.Id,isAmbiguous:e.IsAmbiguous,disambiguationData:[]};if(n.isAmbiguous){var a=e.DisambiguationData;n.disambiguationData=a.map(function(e){return{label:e.DefaultLabel,description:e.Description,termId:e.Id,isSynonym:e.IsSynonym,paths:e.TermsetAndPaths,synonyms:t.processSynonymsData(e.Synonyms)}})}return n})},t.prototype.processSynonymsData=function(e){var t=[];return e&&e.length>0&&(t=e.split(";").map(function(e){return e.trim()}).filter(function(e){return e&&e.length>0})),t},t.prototype.constructSuggestionPostBody=function(e,t){var n={start:e,lcid:t.lcid,sspList:t.sspList,termSetList:t.termSetList,anchorId:t.anchorId,isSpanTermStores:t.isSpanTermStores,isSpanTermSets:t.isSpanTermSets,isIncludeUnavailable:t.isIncludeUnavailable,isIncludeDeprecated:t.isIncludeDeprecated,isAddTerms:t.isAddTerms,isIncludePathData:t.isIncludePathData,excludeKeyword:t.excludeKeyword,excludedTermset:t.excludedTermset};return JSON.stringify(n)},t.prototype.constructMatchPostBody=function(e,t){var n={terms:e,lcid:t.lcid,SSPList:t.sspList,termSetList:t.termSetList,anchorId:t.anchorId,isSpanTermStores:t.isSpanTermStores,isSpanTermSets:t.isSpanTermSets,isIncludeUnavailable:t.isIncludeUnavailable,isIncludeDeprecated:t.isIncludeDeprecated,isAddTerms:t.isAddTerms,isIncludeTermSetName:t.isIncludeTermSetName,isIncludePathData:t.isIncludePathData,isUseCommaAsDelimiter:t.isUseCommaAsDelimiter};return JSON.stringify(n)},t}(i.b)}
,2699:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var a=n("tslib_102"),i=n(470),r=n(96),o=n(4028),s=n(2314),c=n(41),d=!n("odsp.util_578").HW.isActivated("9c3f4baa-862b-44c6-bdf5-fb86a917a10c","10/06/2023","enable term search in site collection terms");const l=function(e){function t(t,n){var a=e.call(this,{dataSourceName:"TermStoreDataSource"},{pageContext:t})||this;return a.GRAPH_URL="https://graph.microsoft.com",a._tokenProvider=new o.a(null,{oAuthTokenDataSource:new s.a(t)}),a.getOAuthToken=n,a}return(0,a.XJ)(t,e),t.prototype.getToken=function(){return(0,a.Zd)(this,void 0,void 0,function(){var e,t;return(0,a.qr)(this,function(n){switch(n.label){case 0:if(void 0===this.getOAuthToken){c.Engagement.logData({name:"TermStoreDataSourceGetOAuthTokenCallbackNotProvided"});try{return e=this._tokenProvider.getToken((0,r.i)(this._pageContext)),c.Engagement.logData({name:"TermStoreDataSourceProvidedOAuthTokenUsingAcquire"}),[2,e]}catch(e){return c.Engagement.logData({name:"TermStoreDataSourceFailureInGettingOAuthTokenUsingAcquire"}),[2,"UNABLE TO GET OAUTH TOKEN"]}}return[4,this.getOAuthToken()];case 1:return t=n.sent(),c.Engagement.logData({name:"TermStoreDataSourceProvidedOAuthTokenUsingCallback"}),[2,t]}})})},t.prototype.getGraphToken=function(e){return(0,a.Zd)(this,void 0,void 0,function(){return(0,a.qr)(this,function(t){return[2,0===e.toLowerCase().lastIndexOf(this.GRAPH_URL,0)?this._tokenProvider.getToken(e):this.getToken()]})})},t.prototype.getNode=function(e,t,n){return void 0===t&&(t="TreeNode"),(0,a.Zd)(this,void 0,void 0,function(){var i;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return i=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:i,qosName:t,qosExtraData:n,method:"GET",additionalPostData:"",parseResponse:function(e){return JSON.parse(e)}})]}})})},t.prototype.getNodeChildren=function(e,t,n){return void 0===t&&(t="TreeChildren"),(0,a.Zd)(this,void 0,void 0,function(){var i,r,o=this;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return i=a.sent(),r=e,this.isAbsoluteURL(e)||(r=this._pageContext.webAbsoluteUrl+e),[2,this.dataRequestor.getData({url:r,authToken:i,qosName:t,qosExtraData:n,method:"GET",additionalPostData:"",parseResponse:function(e){return o.convertToTreeNodeChildren(JSON.parse(e))}})]}})})},t.prototype.getSearchSuggestions=function(e,t,n,i){return void 0===n&&(n="GetSearchTermSuggestions"),(0,a.Zd)(this,void 0,void 0,function(){var t,r,o=this;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return t=a.sent(),r=e,d&&!this.isAbsoluteURL(e)&&(r=this._pageContext.webAbsoluteUrl+e),[2,this.dataRequestor.getData({url:r,authToken:t,qosName:n,qosExtraData:i,method:"GET",additionalPostData:"",parseResponse:function(e){return o.convertToTreeSuggestion(JSON.parse(e))}})]}})})},t.prototype.convertToTreeNodeChildren=function(e){return{nextLink:e["@odata.nextLink"],children:e.value}},t.prototype.convertToTreeSuggestion=function(e){return{searchTermResults:e.value}},t.prototype.isAbsoluteURL=function(e){return!!/^https?:\/\//i.test(e)},t.prototype.deleteNode=function(e,t,n){return void 0===t&&(t="DeleteNode"),(0,a.Zd)(this,void 0,void 0,function(){var i;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return i=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:i,qosName:t,qosExtraData:n,method:"DELETE",contentType:"application/json",additionalHeaders:{accept:"application/json"}})]}})})},t.prototype.updateNode=function(e,t,n,i){return void 0===n&&(n="UpdateNode"),(0,a.Zd)(this,void 0,void 0,function(){var r;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return r=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:r,qosName:n,qosExtraData:i,method:"PATCH",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify(t),parseResponse:function(e){return JSON.parse(e)}})]}})})},t.prototype.addNode=function(e,t,n,i){return void 0===n&&(n="AddNewNode"),(0,a.Zd)(this,void 0,void 0,function(){var r;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return r=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:r,qosName:n,qosExtraData:i,method:"POST",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify(t),parseResponse:function(e){return JSON.parse(e)}})]}})})},t.prototype.moveNode=function(e,t,n,i){return void 0===n&&(n="MoveNode"),(0,a.Zd)(this,void 0,void 0,function(){var r;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return r=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:r,qosName:n,qosExtraData:i,method:"POST",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify(t)})]}})})},t.prototype.copyNode=function(e,t,n,i){return void 0===n&&(n="CopyNode"),(0,a.Zd)(this,void 0,void 0,function(){var r;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return r=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:r,qosName:n,qosExtraData:i,method:"POST",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify({copyChildren:t})})]}})})},t.prototype.mergeTerms=function(e,t,n,i){return void 0===n&&(n="MergeTerms"),(0,a.Zd)(this,void 0,void 0,function(){var r;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return r=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:r,qosName:n,qosExtraData:i,method:"POST",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify(t),parseResponse:function(e){return JSON.parse(e)}})]}})})},t.prototype.pinTerm=function(e,t,n,i){return void 0===n&&(n="PinTerm"),(0,a.Zd)(this,void 0,void 0,function(){var r;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return r=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:r,qosName:n,qosExtraData:i,method:"POST",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify(t),parseResponse:function(e){}})]}})})},t.prototype.reuseTerm=function(e,t,n,i){return void 0===n&&(n="ReuseTerm"),(0,a.Zd)(this,void 0,void 0,function(){var r;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return r=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:r,qosName:n,qosExtraData:i,method:"POST",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify(t),parseResponse:function(e){}})]}})})},t.prototype.fetchTermsWssIds=function(e,t,n,i){return void 0===n&&(n="fetchTermsWssIds"),(0,a.Zd)(this,void 0,void 0,function(){var r;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,this.getToken()];case 1:return r=a.sent(),[2,this.dataRequestor.getData({url:this._pageContext.webAbsoluteUrl+e,authToken:r,qosName:n,qosExtraData:i,method:"POST",contentType:"application/json",additionalHeaders:{accept:"application/json"},additionalPostData:JSON.stringify(t),parseResponse:function(e){return e}})]}})})},t}(i.b)}
,2659:(e,t,n)=>{"use strict";n.d(t,{a:()=>f});var a,i,r=n("tslib_102"),o=n(330),s=n(96),c=n(107),d=n("odsp.util_578");!function(e){e[e.WebLogo=0]="WebLogo",e[e.HubLogo=1]="HubLogo",e[e.HeaderBackground=2]="HeaderBackground",e[e.GlobalNavLogo=3]="GlobalNavLogo"}(a||(a={})),function(e){e[e.Square=0]="Square",e[e.Rectangular=1]="Rectangular"}(i||(i={}));var l="WebDataSource",u="ClassicWelcomePage",f=function(e){function t(t){return e.call(this,{dataSourceName:l,id:"".concat(l,"(").concat(t?t.webId:"",")")},{pageContext:t})||this}return(0,r.XJ)(t,e),t.prototype.addFileToWebList=function(e,t,n,a){var i=a?"true":"false",r=c.a.encodeRestUriStringToken(t),o="".concat((0,s.h)(this._pageContext),"/_api/Web/Lists('").concat(e,"')/RootFolder/Files/Add(Overwrite=").concat(i,",Url='").concat(r,"')");return this.dataRequestor.getData({url:o,qosName:"AddFileToWebList",method:"POST",noRedirect:!0,additionalPostData:n,contentType:n.type,parseResponse:function(e){var t=JSON.parse(e);return t&&t.d?{name:t.d.Name,serverRelativeUrl:t.d.ServerRelativeUrl}:{name:void 0,serverRelativeUrl:void 0}}})},t.prototype.delete=function(){var e=this;return this.getData(function(){return"".concat((0,s.h)(e._pageContext),"/_api/Web")},void 0,"DeleteWeb",void 0,"DELETE")},t.prototype.getWebProperties=function(){var e=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return"".concat((0,s.h)(e._pageContext),"/_api/Web/AllProperties")},parseResponse:function(e){var t=JSON.parse(e);return t&&t.d?{GlobalNavLogoUrl:t.d.GlobalNavLogoUrl,GlobalNavSource:t.d.GlobalNavSource,GlobalNavTitle:t.d.GlobalNavTitle,RectSiteLogoUrl:t.d.RectSiteLogoUrl,WebTemplateExtensionId:t.d.WebTemplateExtensionId,FontPackageId:t.d.fontpackageid}:{GlobalNavLogoUrl:void 0,GlobalNavSource:void 0,GlobalNavTitle:void 0,RectSiteLogoUrl:void 0,WebTemplateExtensionId:void 0,FontPackageId:void 0}},qosName:"getWebProperties",method:"GET",noRedirect:!0,bypassCache:!0})},t.prototype.getBasicWebProperties=function(e){var t=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return"".concat((0,s.h)(t._pageContext),"/_api/Web?$select=Title,Description,SiteLogoUrl")},parseResponse:function(e){var t=JSON.parse(e);return t&&t.d?{description:t.d.Description,siteLogoUrl:t.d.SiteLogoUrl,title:t.d.Title}:{description:void 0,siteLogoUrl:void 0,title:void 0}},qosName:"GetBasicWebProperties",method:"GET",noRedirect:!0,bypassCache:!!e})},Object.defineProperty(t.prototype,"_isMuiStreamliningFeatureEnabled",{get:function(){return d.IT.isFeatureEnabled({ODB:60483})},enumerable:!1,configurable:!0}),t.prototype.setBasicWebProperties=function(e){var t=this;return this.getData(function(){return"".concat((0,s.h)(t._pageContext),"/_api/Web")},void 0,"SetBasicWebProperties",function(){var n={__metadata:{type:"SP.Web"},Description:t._isMuiStreamliningFeatureEnabled?void 0:e.description,DescriptionForExistingLanguage:t._isMuiStreamliningFeatureEnabled?e.description:void 0,SiteLogoUrl:e.siteLogoUrl,Title:t._isMuiStreamliningFeatureEnabled?void 0:e.title,TitleForExistingLanguage:t._isMuiStreamliningFeatureEnabled?e.title:void 0,QuickLaunchEnabled:e.quickLaunchEnabled,TitleTranslations:e.titleTranslations?{results:e.titleTranslations}:void 0,DescriptionTranslations:e.descriptionTranslations?{results:e.descriptionTranslations}:void 0,HasWebTemplateExtension:e.hasWebTemplateExtension};return JSON.stringify(n)},"PATCH")},t.prototype.setGlobalNavSettings=function(e,t){var n=JSON.stringify({title:e,source:t});return this.dataRequestor.getData({url:"".concat(this._pageContext.webAbsoluteUrl,"/_api/Web/SetGlobalNavSettings"),qosName:"SetGlobalNavSettings",method:"POST",additionalPostData:n,noRedirect:!0})},t.prototype.getDefaultDocumentLibraryUrl=function(e){var t=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return"".concat((0,s.h)(t._pageContext),"/_api/Web/DefaultDocumentLibrary/rootfolder/ServerRelativeUrl")},parseResponse:function(e){var t=JSON.parse(e);if(t&&t.d)return t.d.ServerRelativeUrl},qosName:"GetDefaultDocumentLibraryUrl",method:"GET",noRedirect:!0,bypassCache:!!e})},t.prototype.getClassicWelcomePage=function(e){var t=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return"".concat((0,s.h)(t._pageContext),"/_api/Web?$select=").concat(u,",IsRevertHomepageLinkHidden")},parseResponse:function(e){var t=JSON.parse(e);if(t&&t.d&&!t.d.IsRevertHomepageLinkHidden)return t.d.ClassicWelcomePage},qosName:"GetClassicWelcomePage",method:"GET",noRedirect:!0,bypassCache:!!e,cacheRequestKey:"".concat(this._pageContext.webServerRelativeUrl+u)})},t.prototype.removeClassicWelcomePage=function(){var e=this;return this.getData(function(){return"".concat((0,s.h)(e._pageContext),"/_api/Web")},void 0,"RemoveClassicWelcomePage",function(){return JSON.stringify({__metadata:{type:"SP.Web"},IsRevertHomepageLinkHidden:!0})},"PATCH").then(function(){e.flushCache("".concat(e._pageContext.webServerRelativeUrl+u))})},t.prototype.getDefaultDocumentLibraryCount=function(e){var t=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return"".concat((0,s.h)(t._pageContext),"/_api/Web/DefaultDocumentLibrary/ItemCount")},parseResponse:function(e){var t=JSON.parse(e);if(t&&t.d)return t.d.ItemCount},qosName:"GetDefaultDocumentLibraryCount",method:"GET",noRedirect:!0,bypassCache:!!e})},t.prototype.sendAuditLog=function(e){var t="".concat((0,s.h)(this._pageContext)),n=this._pageContext.webAbsoluteUrl,a="".concat(t,"/_api/web/ActivityLogger/LogActivity"),i=JSON.stringify({Operation:e,AffectedResourceUrl:n,ItemType:"Site"});return this.dataRequestor.getData({url:a,qosName:"sendAuditLog",additionalPostData:i,additionalHeaders:{ClientGUID:"00000003-0000-0ff1-ce00-000000000000"}})},t.prototype.setSiteLogo=function(e,t,n,r,o,s){void 0===t&&(t=a.WebLogo),void 0===n&&(n=i.Square);var c=JSON.stringify({relativeLogoUrl:e,type:t,aspect:n,focalx:r,focaly:o,isFocalPatch:s});return this.dataRequestor.getData({url:"".concat(this._pageContext.webAbsoluteUrl,"/_api/siteiconmanager/setsitelogo"),qosName:"SetSiteLogo",method:"POST",additionalPostData:c,noRedirect:!0})},t.prototype.setNextStepsFirstRunEnabled=function(e){var t=JSON.stringify({__metadata:{type:"SP.Web"},NextStepsFirstRunEnabled:e});return this.dataRequestor.getData({url:"".concat((0,s.h)(this._pageContext),"/_api/Web"),parseResponse:void 0,qosName:"SetNextStepsFirstRunEnabled",additionalPostData:t,method:"PATCH"})},t.prototype.getWebTemplatesGalleryFirstRunEnabled=function(e){var t=this;return this.getDataUtilizingLegacyCache({getUrl:function(){return"".concat((0,s.h)(t._pageContext),"/_api/Web/WebTemplatesGalleryFirstRunEnabled")},parseResponse:function(e){var t=JSON.parse(e);return!(!t||!t.d)&&t.d.WebTemplatesGalleryFirstRunEnabled},qosName:"getWebTemplatesGalleryFirstRunEnabled",method:"GET",noRedirect:!0,bypassCache:!!e})},t.prototype.setWebTemplatesGalleryFirstRunEnabled=function(e){var t=JSON.stringify({__metadata:{type:"SP.Web"},WebTemplatesGalleryFirstRunEnabled:e});return this.dataRequestor.getData({url:"".concat((0,s.h)(this._pageContext),"/_api/Web"),parseResponse:void 0,qosName:"setWebTemplatesGalleryFirstRunEnabled",additionalPostData:t,method:"PATCH"})},t}(o.b)}
,2455:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var a={none:1,pending:2,hasAccess:3}}
,2570:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>i});var a={editItem:1,newItem:2,displayItem:3};function i(e){switch(e){case a.editItem:return"Edit";case a.newItem:return"New";case a.displayItem:return"Display";default:return"Unknown"}}}
,2571:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>r,c:()=>a,d:()=>i});var a={Unknown:0,Legacy:1,Classic:2,Modern:3,PowerApp:4,Customized:5},i={Unknown:0,Classic:1,Modern:2,PowerApp:3,Customized:4,MultiColumnsView:5},r={ready:0,saving:1,updating:2},o={Dropdown:0,Radio:1}}
,2896:(e,t,n)=>{"use strict";n.d(t,{a:()=>i,b:()=>a});var a={getSignOff:"0c4e00f8ad7b4a3f9a59717c0f504640",tempPageContentApproval:"cea8b0b9fd1b4289b192d2f537d06273"},i={Started:"Started",Stopped:"Stopped"}}
,2564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getAllFilters:()=>f,getAllSmartFilters:()=>u,getEffectiveFilterParams:()=>_,getFilter:()=>c,removeFilter:()=>l,removeSmartFilters:()=>m,updateFilter:()=>d});var a=n(416),i=n(6986),r=n(816),o=n(193),s=n(104);function c(e,t){var n=h(e,t);if(n){var a=i.b(n);if(a&&1===a.length&&a[0]){var r=a[0];return r.id=t,r}}}function d(e,t){if(!t.id)throw new Error("Must provide a filter with an id to use updateFilter");var n=r.a(t);if(!n)throw new Error("Filter could not be serialized");var i=h(e,t.id);if(i){var s=void 0;try{s=o.l(n).documentElement}catch(e){throw new Error("Generated filter was not valid XML!")}i.parentNode.replaceChild(s,i),e.setIsDirty(!0,a.a.filters)}else e.addFilters([n])}function l(e,t){var n=h(e,t);if(n){var i=n.parentNode;"Where"===i.tagName?e.clearFilters():(i.removeChild(n),"Or"!==i.tagName&&"And"!==i.tagName||i.parentNode.replaceChild(i.firstElementChild,i),e.setIsDirty(!0,a.a.filters))}}function u(e){return p(e,function(e){return e.where.querySelectorAll("[id]")})}function f(e){return p(e,function(e){return e.where.children})}function p(e,t){var n=e.getDomParts();if(n&&n.where){var a=t(n),r=[];if(a)for(var o=0;o<a.length;o++){var s=i.b(a[o]);s&&r.push.apply(r,s)}return r}}function m(e){var t=u(e);if(t)for(var n=0,a=t;n<a.length;n++)l(e,a[n].id)}function _(e,t){var n=e,a=u(t);return a&&a.length>0&&a.forEach(function(e){n=(0,s.updateFilterInfoInQueryString)(n,{filterField:e.fieldName,filterValues:e.values,filterType:e.type,useLookupId:e.lookupId})}),n}function h(e,t){var n=e.getDomParts();if(n&&n.where){var a=n.where.querySelectorAll('[id="'.concat(t,'"]'));if(a.length>1)throw new Error("More than one filter found with id ".concat(t));return a[0]}}}
,2749:(e,t,n)=>{"use strict";n.d(t,{a:()=>b});var a=n(26),i=n(108),r=n(199),o=n(41),s=n("odsp.util_578"),c=n(43),d=n(20),l=n(225),u=n(4028),f=n(2592),p=n(2497),m=n(2314),_="FlowWidgetProvider.",h=s.HW.isActivated("db57e6a7-e974-4e50-853e-2ab2c9c7e4de","1/24/2024","Add Asha events to Flow widget");const b=function(){function e(e,t){void 0===e&&(e={}),this._params=e,this._oAuthTokenProvider=t.oAuthTokenProvider||new u.a({},{oAuthTokenDataSource:new m.a(t.pageContext)}),this._async=new i.a,this._widget=null,this._widgetErrorTimeout=null,this._pageContext=t.pageContext}return e.prototype.dispose=function(){this._widgetReadyQos&&this._widgetReadyQos.end({resultType:d.b.ExpectedFailure,extraData:{message:"Widget disposed"}}),this._renderWidgetQos&&this._renderWidgetQos.end({resultType:d.b.ExpectedFailure,extraData:{message:"Widget disposed"}}),this._notifyWidgetQos&&this._notifyWidgetQos.end({resultType:d.b.ExpectedFailure,extraData:{message:"Widget disposed"}}),!h&&this._scenarioCustomerPromise&&this._scenarioCustomerPromise.end({resultType:d.b.ExpectedFailure,veto:"Flow Widget: Widget Disposed"}),this._widgetErrorTimeout&&(this._async.clearTimeout(this._widgetErrorTimeout),this._widgetErrorTimeout=null),this._widget&&(this._widget.dispose(),this._widget=null)},e.prototype.launchFlowWidget=function(t,n){var a=this;o.Engagement.logData({name:_+"PanelOpened",extraData:{flowId:n.flow.id}}),e._loadSdk(this._pageContext).then(function(e){t.id||(t.id="od-Flow-iframeContainer-"+c.a.generate());var i=s.HW.isActivated("36574CF5-480D-47E8-BF76-8C449F1CE451","09/22/2021","Allow unidentified flow instances to run in the widget")?void 0:n.flow.id,r={container:t.id,campaign:n.campaign,environmentId:n.flow.environmentId,enableOnBehalfOfTokens:!0,enableRegionalPortal:!0,widgetStyleSettings:n.widgetStyleSettings,approvalCenterSettings:n.approvalCenterSettings,templatesSettings:{useServerSideProvisioning:!0,defaultParams:n.widgetDefaultParams,allowCustomFlowName:n.allowCustomFlowName},enableWidgetV2:!0,flowName:i};a._widgetReadyQos=new d.a({name:_+"WidgetReady"}),a._renderWidgetQos=new d.a({name:_+"RenderWidget"}),a._widgetErrorTimeout=a._setErrorTimeout(p.d.WidgetReady),h||(a._scenarioCustomerPromise=new l.CustomerPromise({scenario:"FlowWidget",pillar:"Edit"}));try{var o=e.renderWidget(n.widgetType,r);a._registerListeners(o),a._widget=o,a._currentFlowParams=n}catch(e){a._onWidgetError(e)}})},e.preloadSdk=function(t,n){return o.Engagement.logData({name:_+"PreloadSdk"}),e._loadSdk(n,t).then(function(){return a.c.resolve()})},e.prototype._registerListeners=function(e){var t=this;e.listen(p.d.GetAccessToken,function(e,n){t._onGetAccessToken(e,n)}),e.listen(p.d.WidgetReady,function(){t._onWidgetReady(e)}),e.listen(p.d.WidgetRendered,function(){t._onWidgetRendered()}),e.listen(p.d.RunFlowStarted,function(){t._onTriggerFlowStarted()}),e.listen(p.d.RunFlowCompleted,function(e){t._onTriggerFlowSucceeded(e)}),e.listen(p.d.RunFlowDoneButtonClicked,function(){t._onTriggerFlowDoneClicked()}),e.listen(p.d.RunFlowCancelButtonClicked,function(){t._onTriggerFlowCancelClicked()}),e.listen(p.d.WidgetClose,function(){t._onWidgetClose()}),e.listen(p.d.FlowCreationSucceeded,function(e){t._onFlowCreationSucceeded(e)}),e.listen(p.d.FlowCreationFailed,function(){t._onFlowCreationFailed()}),e.listen(p.d.ApprovalStatusChanged,function(e){t._onApprovalStatusChanged(e)}),e.listen(p.d.GetStrings,function(e,n){t._onGetStrings(e,n)})},e.prototype._notifyWidget=function(e,t){var n=this;this._notifyWidgetQos=new d.a({name:_+"NotifyWidget"}),e.notify(t.actionName,t.actionData).then(function(){n._notifyWidgetQos.end({resultType:d.b.Success,extraData:{flowId:t.flow.id}})}).catch(function(e){var a=d.b.Failure,i=null;if(e){var r=e.code;"runFlowWidgetCancelled"!==r&&"flowWidgetClosed"!==r||(a=d.b.Success),i=r}else i="Error unknown: no error returned in the notifyWidget promise catch clause.";n._notifyWidgetQos.end({resultType:a,extraData:{flowId:t.flow.id,message:i}}),!h&&n._scenarioCustomerPromise&&(a===d.b.Failure?n._scenarioCustomerPromise.end({resultType:d.b.Failure,extraData:{flowId:t.flow.id,message:i},veto:"Flow Widget: Notify Failure"}):n._scenarioCustomerPromise.end({resultType:d.b.Success,extraData:{flowId:t.flow.id,message:i}}))})},e.prototype._onGetAccessToken=function(e,t){this._getToken().then(function(e){t(null,{token:e})})},e.prototype._onWidgetReady=function(e){this._widgetReadyQos.end({resultType:d.b.Success}),this._async.clearTimeout(this._widgetErrorTimeout),this._widgetErrorTimeout=this._setErrorTimeout(p.d.WidgetRendered),this._notifyWidget(e,this._currentFlowParams)},e.prototype._onWidgetRendered=function(){this._async.clearTimeout(this._widgetErrorTimeout),this._widgetErrorTimeout=null,this._renderWidgetQos.end({resultType:d.b.Success}),this._params.onWidgetRendered&&this._params.onWidgetRendered()},e.prototype._onTriggerFlowStarted=function(){o.Engagement.logData({name:_+"RunFlowClicked",extraData:{flowId:this._currentFlowParams.flow.id}}),this._params.onTriggerFlowStarted&&this._params.onTriggerFlowStarted(this._currentFlowParams)},e.prototype._onTriggerFlowSucceeded=function(e){if(s.IT.isFeatureEnabled(p.a)&&o.Engagement.logData({name:"ManualFlowTriggered",isIntentional:!0}),!h&&this._scenarioCustomerPromise&&this._scenarioCustomerPromise.end({resultType:d.b.Success}),this._params.onTriggerFlowSucceeded){var t=e.data;this._params.onTriggerFlowSucceeded(this._currentFlowParams,t)}},e.prototype._onTriggerFlowDoneClicked=function(){this._params.onTriggerFlowDoneClicked&&this._params.onTriggerFlowDoneClicked(this._currentFlowParams)},e.prototype._onTriggerFlowCancelClicked=function(){this._params.onTriggerFlowCancelClicked&&this._params.onTriggerFlowCancelClicked(this._currentFlowParams)},e.prototype._onWidgetClose=function(){this._params.onWidgetClose&&this._params.onWidgetClose(this._currentFlowParams)},e.prototype._onFlowCreationSucceeded=function(e){if(this._params.onFlowCreationSucceeded){var t=e.data;this._params.onFlowCreationSucceeded(this._currentFlowParams,t)}!h&&this._scenarioCustomerPromise&&this._scenarioCustomerPromise.end({resultType:d.b.Success})},e.prototype._onFlowCreationFailed=function(){this._params.onFlowCreationFailed&&this._params.onFlowCreationFailed(this._currentFlowParams),!h&&this._scenarioCustomerPromise&&this._scenarioCustomerPromise.end({resultType:d.b.Failure,veto:"Flow Widget: Flow Creation Failure"})},e.prototype._onApprovalStatusChanged=function(e){this._params.onApprovalStatusChanged&&this._params.onApprovalStatusChanged(e)},e.prototype._onGetStrings=function(e,t){this._currentFlowParams.additionalEvents&&this._currentFlowParams.additionalEvents.indexOf(p.d.GetStrings)>-1&&this._params.onGetStrings?this._params.onGetStrings(t):t(null,{})},e.prototype._onTokenError=function(e){this._params.onTokenError&&this._params.onTokenError(e)},e.prototype._onWidgetError=function(e){this._renderWidgetQos&&this._renderWidgetQos.end({resultType:d.b.Failure,extraData:{message:e.message}}),!h&&this._scenarioCustomerPromise&&this._scenarioCustomerPromise.end({resultType:d.b.Failure,veto:"Flow Widget: Widget Failure"})},e.prototype._setErrorTimeout=function(e){var t=this;return this._async.setTimeout(function(){t._onWidgetError(new Error("Timeout: Widget timed out waiting for: "+e))},15e3)},e._loadSdk=function(t,i){return e._loadSdkPromise||(e._loadSdkPromise=new a.c(function(e){s.IT.isFeatureEnabled(p.b)?n.e(741).then(n.bind(n,2729)).then(function(n){var a=new MsFlowSdk({hostName:(0,f.c)(t),locale:r.a.language,hostId:i});e(a)}):n.e(742).then(n.t.bind(n,2680,23)).then(function(n){var a=new MsFlowSdk({hostName:(0,f.c)(t),locale:r.a.language,hostId:i});e(a)})})),e._loadSdkPromise},e.prototype._getToken=function(){var e=this;return new a.c(function(t){var n=new d.a({name:_+"GetToken"}),a="https://service.flow.microsoft.com/",i=e._pageContext&&e._pageContext.farmSettings&&e._pageContext.farmSettings.ExternalService_flowservicehostname;i&&(a="https://".concat(i,"/")),e._oAuthTokenProvider.getToken(a).then(function(e){t(e),n.end({resultType:d.b.Success})},function(a){e._onTokenError(a),n.end({resultType:d.b.Failure,extraData:{serverErrorCode:a._serverErrorCode,message:a.message}}),!h&&e._scenarioCustomerPromise&&e._scenarioCustomerPromise.end({resultType:d.b.Failure,extraData:{serverErrorCode:a._serverErrorCode,message:a.message},veto:"Flow Widget: Get Token Failure"}),t(null)})})},e}()}
,2497:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>i,c:()=>o,d:()=>s,e:()=>r});var a={ODB:1565},i={ODB:61026},r={ApprovalCenter:"approvalCenter",Flows:"flows",FlowCreation:"flowCreation",FlowsRuntime:"flowsRuntime",Templates:"templates"},o={CreateFlowFromTemplate:"createFlowFromTemplate",TriggerFlow:"triggerFlow",TriggerFlowByTemplate:"triggerFlowByTemplate"},s={GetAccessToken:"GET_ACCESS_TOKEN",WidgetClose:"WIDGET_CLOSE",WidgetReady:"WIDGET_READY",WidgetRendered:"WIDGET_RENDERED",RunFlowCompleted:"RUN_FLOW_COMPLETED",RunFlowCancelButtonClicked:"RUN_FLOW_CANCEL_BUTTON_CLICKED",RunFlowDoneButtonClicked:"RUN_FLOW_DONE_BUTTON_CLICKED",RunFlowStarted:"RUN_FLOW_STARTED",FlowCreationFailed:"FLOW_CREATION_FAILED",FlowCreationSucceeded:"FLOW_CREATION_SUCCEEDED",Error:"ERROR",ApprovalStatusChanged:"RECEIVED_APPROVAL_STATUS_CHANGED",GetStrings:"GET_STRINGS"}}
,1821:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GroupSiteProvider:()=>o,default:()=>s});var a=n(26),i=n(2817),r="Missing group id.",o=function(){function e(e){this._dataSource=e.dataSource||new i.c(e.pageContext)}return e.prototype.checkGroupExists=function(e){return this._dataSource.checkGroupExists(e)},e.prototype.checkSiteExists=function(e){return this._dataSource.checkSiteExists(e)},e.prototype.getSiteUrlFromAlias=function(e,t,n){return e?this._dataSource.getSiteUrlFromAlias(e,t,n):a.c.resolve(void 0)},e.prototype.getGroupCreationContext=function(e){return void 0===e&&(e=!1),this._dataSource.getGroupCreationContext(e)},e.prototype.validateGroupName=function(e,t){return this._dataSource.validateGroupName(e,t)},e.prototype.createGroup=function(e,t,n,a,i,r,o,s,c,d,l){var u;return"string"==typeof e?(u=e,this._dataSource.createGroup(u,t,n,a,i,r,o,s,c,d,l)):this._dataSource.createGroup(e)},e.prototype.groupify=function(e,t,n,a,i,r,o,s){return this._dataSource.groupify(e,t,n,a,i,r,o,s)},e.prototype.getGroupSiteConversionData=function(){return this._dataSource.getGroupSiteConversionData()},e.prototype.getNotebookUrl=function(e){return e?this._dataSource.getNotebookUrl(e):a.c.reject(r)},e.prototype.getGroupSiteStatus=function(e){return e?this._dataSource.getSiteStatus(e):a.c.reject(r)},e.prototype.createGroupSite=function(e){return e?this._dataSource.createSite(e):a.c.reject(r)},e.prototype.getTenantAdminSettings=function(){return this._dataSource.getTenantAdminSettings()},e.prototype.updateSiteProperties=function(e){return this._dataSource.updateSiteProperties(e)},e}();const s=o}
,2316:(e,t,n)=>{"use strict";n.d(t,{a:()=>u});var a=n(26),i=n(5817),r=n("tslib_102"),o=n(77),s=n(73),c=n(1448),d=n(648),l=function(e){function t(){var n=e.call(this,t._Key,t._DataStoreCachingType)||this;if(n._MaxItems=200,n._Version=5,n._buffer=n.getValue(t._StorageKey),n._buffer&&n._buffer.version===n._Version&&n._buffer.lastCachePrune||n.initializeBuffer(),n._data={},Date.now()<n._buffer.lastCachePrune+6048e5)for(var a=0;a<n._buffer.dataArray.length;a++){var i=n._buffer.dataArray[a],r=n._getItemKey(i);n._data[r]=i}else n.initializeBuffer(),n.setValue(t._StorageKey,n._buffer);return n}return(0,r.XJ)(t,e),t.clear=function(){new o.a(t._Key,t._DataStoreCachingType).remove(t._StorageKey)},t.isCacheEntryFresh=function(e,t){return e.name===t.name&&e.email===t.email&&e.job===t.job&&e.office===t.office&&e.department===t.department&&e.phone===t.phone},t.prototype.setItem=function(e){var n=this._getItemKey(e),a=this._data[n];if(a){if(t.isCacheEntryFresh(a,e))return;var i=this._buffer.dataArray.map(function(e){return e.userId}).indexOf(e.userId);this._buffer.dataArray[i]=e}else if(this._buffer.dataArray.length===this._MaxItems){this._buffer.index++,this._buffer.index>=this._MaxItems&&(this._buffer.index=0);var r=this._buffer.dataArray[this._buffer.index],o=this._getItemKey(r);delete this._data[o],this._buffer.dataArray[this._buffer.index]=e}else this._buffer.dataArray.push(e),this._buffer.index++;this._data[n]=e,this.setValue(t._StorageKey,this._buffer)},t.prototype.getItems=function(e,t){for(var n=[],a=0;a<this._buffer.dataArray.length;a++){var i=(this._buffer.index-a+this._MaxItems)%this._MaxItems,r=this._buffer.dataArray[i];!(r.email&&r.email.toLowerCase().indexOf(e.toLowerCase())>=0||r.name&&r.name.toLowerCase().indexOf(e.toLowerCase())>=0)||t&&r.entityType===c.a.externalUser||n.push(r)}return n},t.prototype.containsItem=function(e){var t=this._getItemKey(e);return Boolean(this._data[t])},t.prototype.initializeBuffer=function(){this._buffer={},this._buffer.dataArray=[],this._buffer.index=-1,this._buffer.version=this._Version,this._buffer.lastCachePrune=Date.now()},t.prototype._getItemKey=function(e){return e.email||e.userId||(0,d.a)(JSON.stringify(e)).toString()},t._Key="ClientPeoplePicker",t._StorageKey="MRU",t._DataStoreCachingType=s.a.local,t}(o.a),u=function(){function e(e){this._dataSource=e.peoplePickerDataSource?e.peoplePickerDataSource:new i.a({imageAbsoluteWebUrl:e.imageAbsoluteWebUrl},{pageContext:e.pageContext,apiUrlHelper:e.apiUrlHelper,graphPeoplePickerHelper:e.graphPeoplePickerHelper}),this._ppCapabilities=this._dataSource.getCapabilities(),this._ppCapabilities.supportsMruCaching?(this._mruCache=new l,this.MaxCacheSuggestions=5):this.MaxCacheSuggestions=0}return e.prototype.search=function(e,t){var n,i,r=this,o={cached:null,promise:null};return this._mruCache&&!t.groupID&&(i=this.searchMruCache(e,t&&t.filterExternalUsers)).length>0&&(o.cached=i),o.promise=new a.c(function(a,o){n=r._dataSource.search(e,t).then(function(e){if(e)if(i){i.length>0&&(i=r._removeStaleCacheResults(i,e));var t=i.map(function(e){return e.userId});a(e.filter(function(e){return t.indexOf(e.userId)<0}))}else a(e)},function(e){o(e)})},function(){n&&n.cancel()}),o},e.prototype.resolve=function(e,t){var n=this;return this._dataSource.resolve(e,t).then(function(e){return n._mruCache&&e.isResolved&&n.addToMruCache(e),e})},e.prototype.getPersonaDetails=function(e){return this._dataSource.getPersonaDetails(e).then(function(e){return e})},e.prototype.subscribePresence=function(e,t){return this._dataSource.subscribePresence(e,t)},e.prototype.addToMruCache=function(e){var t=this._mruCache;t&&e.rawPersonData&&e.rawPersonData.EntityData&&"UNVALIDATED_EMAIL_ADDRESS"!==e.rawPersonData.EntityData.PrincipalType&&t.setItem(e)},e.prototype.getPickerEntityInformation=function(e){return this._dataSource.getPickerEntityInformation(e)},e.prototype.sharePointSearch=function(e,t){return this._dataSource.sharePointSearch(e,t).then(function(e){return e})},e.prototype.canUseGraph=function(e){return this._dataSource.canUseGraph(e)},e.prototype.canUseSubstrate=function(e){return this._dataSource.canUseSubstrate(e)},e.prototype.getLivePersonaPickerHelper=function(){return this._dataSource.getLivePersonaPickerHelper()},e.prototype.searchMruCache=function(e,t){var n=[],a=this._mruCache;if(a){n=a.getItems(e,t);var i=this.MaxCacheSuggestions;n.length>i&&(n=n.splice(0,i))}return n},e.prototype._removeStaleCacheResults=function(e,t){var n=e.map(function(e){return e.userId}),a=[];return t.forEach(function(t){var i=n.indexOf(t.userId);if(i>-1){var r=e[i];l.isCacheEntryFresh(r,t)&&a.push(r)}}),a},e}()}
,2698:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var a=n(26),i=function(){function e(e,t){void 0===e&&(e={}),this.dataSource=t.dataSource,this.matchResult={promise:null},this.suggestionResult={promise:null}}return e.prototype.getSuggestions=function(e,t){var n=this,i=null;return this.suggestionResult.promise=new a.c(function(a,r){i=n.dataSource.getSuggestions(e,t).then(function(e){a(e)})},function(){i&&i.cancel()}),this.suggestionResult},e.prototype.getMatches=function(e,t){return this.matchResult.promise=this.dataSource.getMatches(e,t).then(function(e){return e},function(e){throw e}),this.matchResult},e}()}
,2781:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var a,i=n(104),r=n(415),o=n("odsp.util_578");!function(e){e.getFilterData=function(e,t,a,s){var c=[];e=e.split("<br>")[0];var d=document.createElement("DIV");d.innerHTML=e;var l=d.querySelector("#diidFilter"+t);if(null!=l)for(var u=l.childNodes.length,f=l.childNodes,p=1;p<u;p++){var m=(0,i.getText)(f[p]),_=f[p].value.toString();o.HW.isActivated("102a2f9b-41b5-4846-b82c-0a62ca76a7a2","12/01/2021","Show user-friendly Approval Status labels")||t!==r.a||(m=new r.b(_).toString());var h={display:null!=s&&s?_:m,value:_};if(a){var b=n(_);b.filterType&&(h.value=b.value,h.calculatedFieldOriginFilterValue=_,h.calculatedFieldFilterType=b.filterType,c.push(h))}else c.push(h)}for(var g={},v=0,y=c;v<y.length;v++)(I=y[v]).display in g?g[I.display]++:g[I.display]=1;for(var S=0,D=c;S<D.length;S++){var I;g[(I=D[S]).display]>1&&(I.display=I.value)}return c};var t=["Text","Text","Text","Text","Text","Number","Text","DateTime","Text","Text","Error","Boolean"];function n(e){var n=e.indexOf("_"),a=e,i=void 0;if(n>0){a=e.substring(n+1);var r=Number(e.substring(0,n));!isNaN(r)&&r<t.length&&(i=t[r])}return{value:a,filterType:i}}e.getCalculatedFieldFilterValueAndType=n}(a||(a={}));const s=a}
,2768:(e,t,n)=>{"use strict";n.d(t,{a:()=>v,b:()=>L,c:()=>T,d:()=>I,e:()=>M,f:()=>P,g:()=>w,h:()=>C,i:()=>x,j:()=>R,k:()=>B,l:()=>k,m:()=>N,n:()=>E,o:()=>A,p:()=>U,q:()=>F,r:()=>O});var a=n("tslib_102"),i=n(193),r=n(1250),o=n(184),s=n(5720),c=n(1233),d=n(268),l=n(2564),u=n(1500),f=n(870),p=n("odsp.util_578"),m=n(415),_=n(6988),h=n(199),b=n(6989),g=n(816),v="_ModerationStatus",y=p.HW.isActivated("bd683ff1-1b69-422e-8e03-9ec8c25530ba","1/11/2022","No Filter By with semicolon separated items"),S=p.HW.isActivated("401e365b-62c8-4a9b-860c-f4b57180a74a","11/30/2022","Show user-friendly Approval Status labels"),D=p.HW.isActivated("ec511a46-cc55-4833-bb3f-3077921c21f6","1/30/2023","Use display values in options");function I(e,t,n,a,i,r){var s,d=a,l=[i];if(n===o.a.FileIcon){var u=i,f=c.b[u];f&&(l=c.a[f],f=c.d(f)),d=f||u||t.OtherFileTypeOption,s=e.getIconUrlFromExtension(u)}else void 0===d&&(d=E(n,i),l=[A(n,i)]);return{key:d=d||t.EmptyFilterOptionLabel,checked:!!r,values:l,label:d,iconUrl:s}}function x(e,t){if(e===o.a.Taxonomy&&"TaxKeyword"!==t)return(0,s.c)("hierarchy");switch(e){case o.a.User:return(0,s.c)("user");case o.a.DateTime:return(0,s.c)("date");case o.a.FileIcon:return(0,s.c)("fileType");default:return(0,s.c)("choice")}}function C(e,t,n){return t===o.a.FileIcon?e.FileTypeFilterSectionTitle:n}function O(e,t,n,a,r,c){if(a&&!(a.length<1)&&n)for(var d=0,l=a;d<l.length;d++){for(var u=l[d],f=r[u.fieldName],m=void 0,_=0,h=n;_<h.length;_++){var b=h[_];if(b.fieldName===u.fieldName){m=b;break}}if(m){var g=W&&m.type===(0,s.c)("hierarchy")&&!!m.useLookUpForFiltering;if(m.type===(0,s.c)("date")&&void 0!==(M=j(u))&&(m.value=M),g)for(var v=0,y=m.options;v<y.length;v++)K(L=y[v],g)&&(L.checked=!0);for(var S=0;S<u.values.length;S++){var C=u.values[S],O=void 0;m.options||(m.options=[]);for(var E=0,A=m.options;E<A.length;E++){var L=A[E];if((!g||!L.checked)&&G(L,C,g)){if(!g){O=L;break}L.checked=!0}}if(O)O.checked=!0;else{if(m.type===(0,s.c)("date")&&i.h(C)||g)continue;var k=I(e,t,f.fieldType,D?void 0:u.displays?u.displays[S]:void 0,C,!0);m.options.push(k)}}}else{var M,P=[],T=new Set,U=void 0;for(S=0;S<u.values.length;S++){var F=u.values[S];k=I(e,t,f.fieldType,D?void 0:u.displays?u.displays[S]:void 0,F,!0),p.HW.isActivated("DA214D36-D3C0-40D2-8C53-DB71D0C16476","12/09/2022","Only add filter option if key not already added")||T.has(k.key)||T.add(k.key),P.push(k)}f.fieldType===o.a.DateTime?(U=w(u.fieldName,f.columnDefinition.id,f.fieldType,f.displayName,c[u.fieldName]),void 0!==(M=j(u))&&(U.value=M),U.options=P):U={fieldName:u.fieldName,fieldId:f.columnDefinition.id,fieldType:f.fieldType,type:x(f.fieldType,u.fieldName),serverFieldType:f.columnDefinition.serverFieldType,title:f.displayName,options:P,showSeeAllLink:!0},f&&f.columnDefinition&&f.columnDefinition.isCalculated&&(U.isCalculatedField=!0),n.push(U)}}}function w(e,t,n,a,i){var r,o={fieldName:e,fieldId:t,fieldType:n,type:(0,s.c)("date"),serverFieldType:"DateTime",title:a,value:s.a.none,minValueLabel:H(i),maxValueLabel:(r=(new Date).getFullYear()+1,r+"+"),maxValue:s.a.nextYear,showSeeAllLink:!0,options:[]};return"Modified"===e&&(o.maxValue=s.a.today),o}function E(e,t,n){var a;if(n||e===o.a.Number||e===o.a.AverageRating)a=function(e,t){var n,a=new RegExp("^\\d*\\.\\d*$");if(!e||!a.test(e))return e;try{var i=parseFloat(e);isNaN(i)||(n=void 0===t?i.toString():i.toFixed(t))}catch(e){}return n}(t,e===o.a.AverageRating?2:void 0);else if(e===o.a.DateTime){var i=t.split("-");if(i&&3===i.length&&4===i[0].length){var r=parseInt(i[0],10);a=parseInt(i[1],10)+"/"+parseInt(i[2],10)+"/"+r}}return void 0===a&&(a=t),a}function A(e,t){return e===o.a.Currency&&(t=t.replace(/[^0-9\.]+/g,"")),t}function L(e,t,n,a){var i,o,c;void 0===a&&(a=!1);for(var d=0;d<e.length;d++)if(e[d].fieldName===t.fieldName){i=d;break}var l={},u=0;if(t.options&&t.options.length>0){for(c=[],d=0;d<t.options.length;d++){var f=t.options[d];f.shouldAlwaysRender?(c.splice(u++,0,f),l[f.key]=f):f.checked&&(c.push(f),l[f.key]=f)}if(c.length<n)for(var p=0,m=i>=0?e[i].options:t.options;p<m.length;p++){var _=m[p];if(!l[_.key]&&(_.checked=!1,a&&t.type===(0,s.c)("hierarchy")&&_.wssIds&&(_.wssIds=[]),c.push(_),l[_.key]=_,c.length>=n))break}}(o=r.a(t)).options=c,i>=0?e[i]=o:e.push(o)}function k(e,t,n,a){return function(e,t){var n,a=t.fieldName,i=t.fieldType,r=t.filterValue,s=t.operator,c=new d.a(e);switch(c.updateGroupBy(null),i){case o.a.User:n="Lookup";break;case o.a.FileIcon:n="Computed";break;case o.a.Choice:n="Choice";break;case o.a.DateTime:n="DateTime";break;default:n="Text"}var u={fieldName:a,values:[r],type:n,operator:s,id:a};return l.updateFilter(c,u),c.getEffectiveViewXml()}(e,{fieldName:t,fieldType:n,filterValue:a,operator:"Contains"})}function M(e,t,n,a,i,r){for(var o={},s=0,c=n;s<c.length;s++){var d=c[s];if(d)for(var l=0,u=P(e,t,d.properties,a,i,r);l<u.length;l++){var f=u[l];o[f.key]||(o[f.key]=f)}}var p=[];for(var m in o)o.hasOwnProperty(m)&&p.push(o[m]);return p}function P(e,t,n,a,i,r){var s,c,d=n[t],l=[];if(e===o.a.FileIcon)d=n.File_x0020_Type;else if(e===o.a.Title)d=n.Title;else if(e===o.a.WorkflowStatus&&d){var p=u.a.getWorkflowStatusFromRawHtml(d);if(p){var b=i(e,p.display,p.value);return l.push(b),l}}if(null!=d){var g=n[t+".calculated"];if(g){var D=g.indexOf(";#"),I=D>-1?g.substr(D+2):g;l.push(i(e,d,I))}else if(e===o.a.User)for(var x=0,C=d||[];x<C.length;x++){var O=C[x],w=(0,f.b)(O.email),E=O.title||a.EmptyFilterOptionLabel;l.push({key:E,values:[O.title],iconUrl:w,label:E,invitationId:O.invitation})}else if(e===o.a.Lookup&&Array.isArray(d))if(d.length>0)for(var A=0,L=d;A<L.length;A++)b=i(e,void 0,L[A].lookupValue),l.push(b);else b=i(e,void 0,""),l.push(b);else if(e!==o.a.Lookup||"true"!==(null===(s=null==r?void 0:r.AllowMultipleValues)||void 0===s?void 0:s.toLowerCase())||"string"!=typeof d||y)if(e===o.a.Boolean)b=i(e,d,n[t+".value"]),l.push(b);else if(e===o.a.Taxonomy&&d)if(d instanceof Array||(d=[d]),d.length>0)for(var k=0,M=d;k<M.length;k++)b=i(e,void 0,M[k].Label),l.push(b);else b=i(e,void 0,""),l.push(b);else if(S||t!=m.a)if(e===o.a.Currency||e===o.a.Number||e===o.a.DateTime||t===v){var P=t+".";if(b=void 0,void 0!==n[P]){var T=d,U=n[P];e===o.a.DateTime&&("datetime"===(null===(c=null==r?void 0:r.Format)||void 0===c?void 0:c.toLowerCase())&&(T=U?new Date(U).toLocaleDateString((0,_.a)(h.a.cultureLCID)):U),U=U?U.split("T")[0]:U),b=i(e,T,U)}else b=i(e,void 0,d);l.push(b)}else{var F=d instanceof Array?d:[d];if(F.length>0)for(var H=0,R=F;H<R.length;H++)b=i(e,void 0,R[H]),l.push(b)}else b=i(e,new m.b(d).toString(),d),l.push(b);else-1===d.indexOf(";")&&(b=i(e,void 0,d),l.push(b))}return l}function T(e){switch(e){case s.a.last30Days:return b.e;case s.a.last3Months:return b.c;case s.a.last7Days:return b.d;case s.a.yesterday:return b.m;case s.a.today:return b.k;case s.a.tomorrow:return b.l;case s.a.next7Days:return b.h;case s.a.next30Days:return b.i;case s.a.next3Months:return b.g;case s.a.nextYear:return b.f}}function U(e,t){var n=c.b[t];return{filterValues:e.values.filter(function(e){var a,i=c.a[n];return p.HW.isActivated("BAFEA51A-9BD8-4E6A-91C4-819E488B9E03")?-1===(null===(a=c.a[n])||void 0===a?void 0:a.indexOf(e)):(!i||-1===i.indexOf(e))&&e!==t}),app:n}}function F(e,t,n,i){var r=[];return null==n||n.forEach(function(n){if("DocIcon"===e&&n.fieldName===e){var o=U(n,t),s=o.filterValues,c=o.app;i&&(i[c]=!1),r.push((0,a.W_)((0,a.W_)({},n),{values:s}))}else n.fieldName===e&&n.values?n.values.length>1?r.push((0,a.W_)((0,a.W_)({},n),{values:n.values.filter(function(e){return e!==t})})):1===n.values.length&&n.values[0]!==t&&r.push(n):r.push(n)}),(0,g.b)(r)}function H(e){var t;for(var n in e)try{var a=e[n].option&&e[n].option.values&&e[n].option.values[0];if(a&&4===a.indexOf("-")){var i=parseInt(a.substr(0,4),10);(!t||t>i)&&(t=i)}}catch(e){}return t&&t.toString()}function R(e){return j(e)}function N(e){return[-92,-30,-7,-1,0,1,7,30,92,365].indexOf(e)>-1}function B(e){if(i.h(e))return i.e(e)}function j(e){var t,n=e.values&&e.values.length>0&&e.values[0],a=i.h(n)&&i.e(n);if(void 0!==a)t=z(a);else for(var r=0,o=e.values;r<o.length;r++){var s=V(o[r]);t=void 0===t?s:Math.min(t,s)}return t}function V(e){var t=s.a.none;try{var n=e.split(/[^0-9]/),a=new Date(Number(n[0]),Number(n[1])-1,Number(n[2])),i=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}(new Date);t=z(Math.round((a.getTime()-i.getTime())/864e5))}catch(e){}return t}function z(e){return 0===e?s.a.today:-1===e?s.a.yesterday:e<-1&&e>=-7?s.a.last7Days:e<-7&&e>=-30?s.a.last30Days:e<-30&&e>=-92?s.a.last3Months:e>=1&&e<7?s.a.tomorrow:e>=7&&e<30?s.a.next7Days:e>=30&&e<92?s.a.next30Days:e>=92&&e<365?s.a.next3Months:e>=365?s.a.nextYear:s.a.none}function G(e,t,n){if(void 0===n&&(n=!1),n)return!!e.wssIds&&e.wssIds.indexOf(t)>=0;var a=!1;try{if(/^-?\d+(?:[.,]\d*?)?$/.test(t)){var i=parseFloat(t);if(!isNaN(i))for(var r=0,o=e.values;r<o.length;r++){var s=o[r];if(i===parseFloat(s)){a=!0;break}}}else a=e.values.indexOf(t)>=0}catch(e){}return a}function K(e,t){return void 0===t&&(t=!1),!(!t||!e.wssIds)&&1===e.wssIds.length&&"0"===e.wssIds[0]}function W(){return p.tH.isFeatureEnabled({ODB:60159})}}
,2839:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,b:()=>r});var a=n(83),i=n(26);function r(e,t,n,a){return e.ensureSiteAssetsLibrary().then(function(e){return t.addFileToWebList(e.id,n,a,!0)})}function o(e,t,n,o){return("image/svg+xml"===o.type?i.c.resolve(o):function(e,t,n){return function(e){var t=new a.b(this);return new i.c(function(n,a){var i=new FileReader;t.on(i,"load",function(e){n(i.result),t.dispose()}),t.on(i,"error",function(e){a(i.error),t.dispose()}),i.readAsDataURL(e)})}(e).then(function(t){var n=document.createElement("img");n.src=t;var a=n.width,i=n.height;if(a>i?a>648&&(i*=648/a,a=648):i>648&&(a*=648/i,i=648),a=Math.floor(a),i=Math.floor(i),a===n.width&&i===n.height)return e;var r=document.createElement("canvas");return r.width=a,r.height=i,r.getContext("2d").drawImage(n,0,0,a,i),function(e){for(var t=atob(e.split(",")[1]),n=new Uint8Array(t.length),a=e.split(",")[0].split(":")[1].split(";")[0],i=0,r=t.length;i<r;i++)n[i]=t.charCodeAt(i);return new Blob([n],{type:a})}("image/jpeg"===e.type?r.toDataURL(e.type,.92):r.toDataURL(e.type))})}(o)).then(function(a){return r(e,t,n,o)})}}
,2370:(e,t,n)=>{"use strict";(0,n("fui.util_43").pZ)([{rawString:".ms-DetailsList .ms-DetailsRow.is-selected BUTTON.od-FieldRenderer-dot:hover{background-color:"},{theme:"neutralQuaternary",defaultValue:"#d2d0ce"},{rawString:"}.ms-DetailsList BUTTON.od-FieldRenderer-dot{display:block;position:relative;left:0;top:0;width:36px;height:100%;text-align:center;outline:1px solid transparent;border:none;background-color:transparent;margin:0;padding:0;color:inherit;font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";opacity:0;border-radius:0;cursor:pointer}.ms-DetailsList BUTTON.od-FieldRenderer-dot:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}.ms-DetailsList BUTTON.od-FieldRenderer-dot i{position:absolute;top:14px;margin:auto;opacity:0;right:0;left:0}html[dir=ltr] .ms-DetailsList BUTTON.od-FieldRenderer-dot i{right:10px}html[dir=rtl] .ms-DetailsList BUTTON.od-FieldRenderer-dot i{left:10px}.od-DetailsRow-cell--VerticallyCenter BUTTON.od-FieldRenderer-dot i{position:relative;top:1px}html[dir=ltr] .od-DetailsRow-cell--VerticallyCenter BUTTON.od-FieldRenderer-dot i{right:0}html[dir=rtl] .od-DetailsRow-cell--VerticallyCenter BUTTON.od-FieldRenderer-dot i{left:0}.od--isMobile .ms-DetailsList BUTTON.od-FieldRenderer-dot{opacity:1}.od--isNonMobile .is-selected .od-FieldRenderer-dot,.od--isNonMobile .ms-DetailsRow-cell:focus .od-FieldRenderer-dot,.od--isNonMobile .ms-DetailsRow:hover .od-FieldRenderer-dot,.od--isNonMobile .od-FieldRenderer-dot:focus{opacity:1}.od--isNonMobile .is-selected .od-FieldRenderer-dot i,.od--isNonMobile .ms-DetailsRow-cell:focus .od-FieldRenderer-dot i,.od--isNonMobile .ms-DetailsRow:hover .od-FieldRenderer-dot i,.od--isNonMobile .od-FieldRenderer-dot:focus i{opacity:1}.ms-DetailsRow-cell.od-DetailsRow-cell--DotDotDot{padding:0;overflow:visible}"}])}
,2874:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var a=n("odsp.util_578"),i=n(179);const r=function(){function e(e){this.pageContext=e}return Object.defineProperty(e.prototype,"multilingualFeatureOn",{get:function(){if(void 0===this._multilingualFeatureOn){var e=new i.a(this.pageContext.featureInfo);if(e){var t=e.get("MultilingualPages");this._multilingualFeatureOn=!!t&&t.enabled}else this._multilingualFeatureOn=!1}return this._multilingualFeatureOn},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"publishingFeatureOn",{get:function(){if(void 0===this._publishingFeatureOn){var e=new i.a(this.pageContext.featureInfo);if(e){var t=e.get("Publishing");this._publishingFeatureOn=!!t&&t.enabled}else this._publishingFeatureOn=!1}return this._publishingFeatureOn},enumerable:!1,configurable:!0}),e.prototype._isMultilingualScenario=function(e){var t,n;return!!e&&(this.multilingualFeatureOn||e!==(null===(t=this.pageContext)||void 0===t?void 0:t.webLanguage)||(null===(n=this.pageContext)||void 0===n?void 0:n.currentLanguage)!==e)},Object.defineProperty(e.prototype,"isMUIStreamliningEnabled",{get:function(){return a.tH.isFeatureEnabled({ODB:60483})&&!this.publishingFeatureOn},enumerable:!1,configurable:!0}),e.prototype.shouldDisplayNameLanguage=function(e){return this.isMUIStreamliningEnabled?this._isMultilingualScenario(e):!this.isMUIStreamliningEnabled&&this.multilingualFeatureOn},e}()}
,2945:(e,t,n)=>{"use strict";n.d(t,{a:()=>f});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.util_43"),o=n("fui.lco_496"),s=n(2529),c=n("fui.lcoms_828");(0,r.pZ)([{rawString:".ms-ConfigureFlowsPanel-choice{margin-top:20px}.ms-ConfigureFlowsPanel-disabled{color:"},{theme:"disabledSubtext",defaultValue:"#d2d0ce"},{rawString:"}.ms-ConfigureFlowsPanel-footerButton{margin:40px 4px 20px}.ms-ConfigureFlowsPanel-error{color:"},{theme:"error",defaultValue:"#a80000"},{rawString:";font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400;display:block}"}]);var d=n(7568),l="requestSignOff",u="contentApproval",f=function(e){function t(t){var n=e.call(this,t)||this;return n._onApprovalToggleChange=function(e){n.setState({enableApproval:e}),!e||n.state.enableRequestSignOff||n.state.enableContentApproval||n.setState({enableRequestSignOff:e})},n._onApprovalModeChange=function(e,t){n.setState({enableRequestSignOff:t.key===l,enableContentApproval:t.key===u})},n._onSave=function(e){var t=n.state,a=t.enableApproval,i=t.enableRequestSignOff,r=t.enableContentApproval;n.setState({loading:!0,errorMessage:""}),n._listDataSource.setApprovalFlowSettings({enableRequestSignOff:a&&i,enableContentApproval:a&&r}).then(function(){n.setState({loading:!1,isOpen:!1}),n._onDismiss()},function(e){n.setState({loading:!1,errorMessage:d.f})})},n._onCancel=function(e){n.setState({isOpen:!1}),n._onDismiss()},n._onDismiss=function(){n.props.onDismiss&&n.props.onDismiss()},n._listDataSource=new s.a(n.props.pageContext),n.state={enableRequestSignOff:!1,enableContentApproval:!1,enableApproval:!1,loading:!0,isOpen:!0},n}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){var e=this;this._listDataSource.getApprovalFlowSettings().then(function(t){var n=t.enableRequestSignOff,a=t.enableContentApproval;e.setState({enableRequestSignOff:!a&&n,enableContentApproval:a,enableApproval:n||a,loading:!1})})},t.prototype.render=function(){var e,t=this.state,n=t.loading,a=t.enableApproval,s=t.isOpen,f=t.errorMessage,p=t.enableRequestSignOff,m=t.enableContentApproval,_=!a||n;return p?e=l:m&&(e=u),i.createElement(o.k8Z,{className:"ms-ConfigureFlowsPanel",headerText:d.k,type:o.ecV.smallFixedFar,isLightDismiss:!0,isOpen:s,onDismiss:this._onDismiss,closeButtonAriaLabel:d.d,focusTrapZoneProps:{forceFocusInsideTrap:s}},i.createElement("div",{className:"ms-ConfigureFlowsPanel-contents","data-automationid":"configureFlowspanel"},i.createElement(c.bVQ,{className:"ms-ConfigureFlowsPanel-toggle",label:d.b,ariaLabel:d.b,checked:a,onText:d.h,offText:d.g,onChanged:this._onApprovalToggleChange,disabled:n}),i.createElement(c.vcq,{className:(0,r.N0)("ms-ConfigureFlowsPanel-choice",{"ms-ConfigureFlowsPanel-disabled":_}),label:d.a,selectedKey:e,options:this._getApprovalOptions(),onChange:this._onApprovalModeChange}),i.createElement(c.rfU,{"data-automationid":"configureFlowspanel-savebutton",onClick:this._onSave,className:"ms-ConfigureFlowsPanel-footerButton"},d.j),i.createElement(c.B0k,{"data-automationid":"configureFlowspanel-cancelbutton",onClick:this._onCancel,className:"ms-ConfigureFlowsPanel-footerButton"},d.c),i.createElement("span",{className:"ms-ConfigureFlowsPanel-error"},f)))},t.prototype._getApprovalOptions=function(){var e=this.state,t=e.enableApproval,n=e.loading,a=!t||n;return[{key:l,text:d.i,disabled:a},{key:u,text:d.e,disabled:a}]},t}(o.oKI)}
,3784:(e,t,n)=>{"use strict";n.d(t,{a:()=>O});var a=n("tslib_102"),i=n("react-lib"),r=n(41),o=n(5720),s=n(870),c=n(2333),d=n("fui.lcoms_828"),l=n("fui.lco_496"),u=n("fui.util_43");(0,u.pZ)([{rawString:".ComposedCheckbox{white-space:nowrap;position:relative;display:flex;font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:'}.ComposedCheckbox-checkBox{min-width:20px}.ComposedCheckbox-checkBox .ms-Checkbox-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ComposedCheckbox-children-container{display:flex;align-items:center}[dir=ltr] .ComposedCheckbox-children-container{margin-left:8px}[dir=rtl] .ComposedCheckbox-children-container{margin-right:8px}.od-focus--enabled .ComposedCheckbox.is-inFocus::before{content:"";position:absolute;top:0;bottom:0;border:1px solid '},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}[dir=ltr] .od-focus--enabled .ComposedCheckbox.is-inFocus::before{right:-8px}[dir=rtl] .od-focus--enabled .ComposedCheckbox.is-inFocus::before{left:-8px}[dir=ltr] .od-focus--enabled .ComposedCheckbox.is-inFocus::before{left:-8px}[dir=rtl] .od-focus--enabled .ComposedCheckbox.is-inFocus::before{right:-8px}@media screen and (-ms-high-contrast:active){.od-focus--enabled .ComposedCheckbox.is-inFocus::before{border:1px solid "},{theme:"white",defaultValue:"#fff"},{rawString:"}}@media screen and (-ms-high-contrast:black-on-white){.od-focus--enabled .ComposedCheckbox.is-inFocus::before{border:1px solid "},{theme:"black",defaultValue:"#000"},{rawString:"}}.od-focus--enabled .ComposedCheckbox.is-inFocus button:focus{box-shadow:none}.od-focus--enabled .ComposedCheckbox.is-inFocus .ComposedCheckbox-checkBox:focus::after{content:none}.od-focus--enabled .ComposedCheckbox.is-inFocus .tooltip{display:flex;flex-direction:column;padding:8px;position:absolute;height:36px;left:-9.5px;right:-9.5px;top:0;border-radius:2px}"}]);var f=function(e){function t(t){var n=e.call(this,t)||this;return n.checkboxId=(0,l.f53)("filterPaneCheckboxId"),n._onFocus=function(){n.setState({isFocused:!0})},n._onBlur=function(){n.setState({isFocused:!1})},n._onToggleChanged=function(e,t){var a=n.props,i=a.id,r=a.label,o=a.onChanged;o&&o(i||r,t)},n._handleBrowserSize=function(){n.setState({isLabelEllipsed:n.isEllipsisActive(n.checkboxId)})},n.state={isFocused:!1,isLabelEllipsed:n.isEllipsisActive(n.checkboxId)},window.addEventListener("resize",n._handleBrowserSize),n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.checked,n=e.label,r=e.children,o=e.className,s=e.showLabel,c=e.ariaLabel,f=e.role,p=this.state.isFocused;null==t&&(t=!1);var m={onFocus:this._onFocus,onBlur:this._onBlur,title:n};if(s&&"string"!=typeof n)return null;var _=void 0!==this.props.source&&"FilterSelectTaxonomy"===this.props.source&&(this.props.tooltipLabel!==n||this.state.isLabelEllipsed);return i.createElement("div",{className:(0,u.N0)("ComposedCheckbox",o,{"is-inFocus":p}),"data-automationtype":"ComposedCheckbox","data-is-checked":t,"data-checked-value":n,role:f},i.createElement(d.qxl,(0,a.W_)({content:_?this.props.tooltipLabel:n},!_&&{overflowMode:l.syf.Parent},_&&{className:"tooltip"}),i.createElement(d.mSm,{className:"ComposedCheckbox-checkBox",label:s&&n,ariaLabel:_&&this.props.tooltipLabel?this.props.tooltipLabel:c||n,checked:t,onChange:this._onToggleChanged,inputProps:m,id:this.checkboxId})),r&&i.createElement("div",{className:"ComposedCheckbox-children-container","aria-hidden":"true"},r))},t.prototype.isEllipsisActive=function(e){var t=document.querySelector("#"+e+" + label .ms-Checkbox-text");return!!t&&t.offsetWidth<t.scrollWidth},t}(i.Component),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.imageUrl,r=e.isPlaceholderUser&&(0,c.d)()?(0,c.b)(c.a.standalone,{fontSize:"12px"}):{};return i.createElement(f,(0,a.W_)({className:"PersonaCheckbox",showLabel:!1},this.props),i.createElement(d.nuF,(0,a.W_)({primaryText:t,imageUrl:n||(0,s.b)(),size:l.fXG.extraExtraSmall},r)))},t}(i.Component);(0,u.pZ)([{rawString:"[dir=ltr] .FileTypeCheckbox .FileTypeCheckbox-label{margin-left:8px}[dir=rtl] .FileTypeCheckbox .FileTypeCheckbox-label{margin-right:8px}"}]);var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.imageUrl,n=e.label;return i.createElement(f,(0,a.W_)({className:"FileTypeCheckbox",showLabel:!1},this.props),i.createElement(d.H5o,{src:t,width:"16px"}),i.createElement("span",{className:"FileTypeCheckbox-label"},n))},t}(i.Component),_=n(3783),h=n(2331),b=n(2334);(0,u.pZ)([{rawString:".SeeAllLink{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:400;font-weight:300;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}"}]);var g=n(2781),v=n(1250),y=n("odsp.util_578"),S=function(e){function t(t){var n=e.call(this,t)||this;return n._onClick=n._onClick.bind(n),n._ariaDescriptionId=(0,l.f53)("SeeAllLink"),n._labelId=(0,l.f53)("SeeAllLink"),n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.ariaDescription,a=n?i.createElement("span",{className:"ms-accessible",id:this._ariaDescriptionId},n):null,r=a?this._ariaDescriptionId:null;return i.createElement("a",{className:"SeeAllLink",href:"#",onClick:this._onClick,role:"button","aria-describedby":r},i.createElement("span",{id:this._labelId},t),a)},t.prototype._onClick=function(e){var t=this.props,n=t.filterSectionInfo,a=t.getOptionFromServerFilterValue,i=t.getFilterData,s=t.launchFilterSelectPanel,c=t.showFilterOptionsFromSectionInfo,d=v.a(n);this._isMMDFilterPaneSeeMoreFlightOn&&(d.showSeeAllLink=!1),c?s(d):i(d.fieldName,d.fieldType).then(function(e){for(var t=g.a.getFilterData(e,d.fieldName,d.isCalculatedField,d.type===(0,o.c)("hierarchy")),i={},r=0,c=d.options;r<c.length;r++)i[(p=c[r]).values.toString()]=p;for(var l=0,u=t;l<u.length;l++){var f=u[l];if(a){var p;if(i[(p=a(n.fieldType,f)).values.toString()])continue;d.options.push(p),i[p.key]=p}}d.isCalculatedField&&t&&t.length&&t[0].calculatedFieldFilterType&&(d.serverFieldType=t[0].calculatedFieldFilterType),s(d)}),r.Engagement.logData({name:"SeeAll.SmartFiltersPane.Click"}),e.stopPropagation(),e.preventDefault()},Object.defineProperty(t.prototype,"_isMMDFilterPaneSeeMoreFlightOn",{get:function(){return y.tH.isFeatureEnabled({ODB:1137})},enumerable:!1,configurable:!0}),t}(i.Component),D=n(184);(0,u.pZ)([{rawString:".od-CheckboxFilterSection-Suggestions-none{text-align:center;color:"},{theme:"info",defaultValue:"#666"},{rawString:";font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";line-height:30px}.od-CheckBoxFilterSection-peoplePicker{margin-bottom:12px}.od-CheckBoxFilterSection-filterPicker{margin-bottom:8px}.FiltersPane-sectionContent .PersonaCheckbox.ComposedCheckbox{padding:4px 0}.FiltersPane-sectionContent .ComposedCheckbox{padding:8px 0}.FiltersPane-sectionContent .ComposedCheckbox:first-of-type{padding:0 0 8px}.FiltersPane-sectionContent .ComposedCheckbox:has(.fui-Checkbox){padding:0}.FiltersPane-sectionContent .ComposedCheckbox .fui-Checkbox__label{padding:0}.FiltersPane-sectionContent .ComposedCheckbox .ComposedCheckbox-children-container{width:100%;margin-top:-5px}.FiltersPane-sectionContent .ComposedCheckbox:not(.PersonaCheckbox):not(.FileTypeCheckbox) .ms-Checkbox-label,.FiltersPane-sectionContent .ComposedCheckbox:not(.PersonaCheckbox):not(.FileTypeCheckbox) .ms-TooltipHost{width:100%}"}]);var I=n(193),x=l.ydh;function C(){return y.HW.isActivated("AE30E08A-8EAC-42CD-A382-B9174E736825","07/25/2023","Put checkboxes in role list/listitem")}var O=function(e){function t(t){var n=e.call(this,t)||this;return n._currentText="",n.resetFocus=function(e){var t=n.props.sectionInfo;if(t&&t.options&&t.options.length>0&&e>=0){var a=n.root.querySelectorAll("input[type=checkbox]")[Math.min(e,t.options.length-1)];n.focusZone.focusElement(a)}},n._onSelectedPersonasChange=function(e){var t=e&&e.length>0&&e[e.length-1];if(t){var a={key:t.name,checked:!0,values:[t.name],label:t.name,iconUrl:t.image};n._onSelectedSuggestionsChange([a])}},n._onRenderNoResultFound=function(){return i.createElement("div",{className:"od-CheckboxFilterSection-Suggestions-none"},(0,y.OO)(n.props.strings.NoResultFound,n._currentText))},n._onResolveSuggestions=function(e,t){n._currentText=e;var a=n.props,i=a.onResolveSuggestions,r=a.sectionInfo;if(i)return i(r.fieldName,r.fieldType,e,t)},n._onSelectedSuggestionsChange=function(e){var t=n.props,a=t.sectionInfo,i=t.onSelectedSuggestionChange,r=e&&e.length>0&&e[e.length-1];i&&r&&i(a.fieldName,a.fieldType,r)},n._renderOption=function(e){var t=n.props.sectionInfo,a=C()?void 0:"listitem",r=t.type===(0,o.c)("user")&&e.values.length&&(0,I.g)(e.values[0]);if(t.type!==(0,o.c)("user")||r)return t.type===(0,o.c)("fileType")?i.createElement(m,{id:e.key,key:e.key,label:e.label,imageUrl:e.iconUrl,onChanged:n._onToggleChanged,checked:e.checked,role:a}):i.createElement(f,{id:e.key,key:e.key,label:e.label,onChanged:n._onToggleChanged,checked:e.checked,showLabel:!0,ref:n._resolveRef("composedCheckbox"),source:n.props.source,tooltipLabel:e.key,role:a});var s=(0,c.d)()&&!!e.invitationId;return i.createElement(p,{id:e.key,key:e.key,label:e.label,imageUrl:e.iconUrl,onChanged:n._onToggleChanged,checked:e.checked,isPlaceholderUser:s,role:a})},n._onToggleChanged=function(e,t){for(var a,i=n.props,o=i.sectionInfo,s=i.onChange,c=i.engagementSource,d=[],l=0,u=o.options;l<u.length;l++){var f=u[l],p=f.checked;if(f.key===e&&(p=t,a=f),p)for(var m=0,_=f.values;m<_.length;m++){var h=_[m];d.push(h)}}s&&s(o.fieldName,o.fieldType,d,void 0,{option:a,isChecked:t}),c=c||"SmartFiltersPane";var b=(0,y.OO)("{0}Checkbox.{1}.Click",D.a[o.fieldType],c);r.Engagement.logData({name:b,extraData:{isChecked:t}})},n._ariaLabelId=(0,l.f53)("CheckboxFilterSection"),n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.sectionInfo,r=t.seeAllLinkProps,o=t.hideSectionHeader,s=t.showFilterPicker,c=t.onResolveSuggestions,d=t.onSelectedSuggestionChange,f=t.className,p=t.commandItems,m=t.strings,h=r&&(n.showSeeAllLink||!1!==n.showSeeAllLink&&n.options&&n.options.length>=5),b=0,g=n.title;if(h&&(r.filterSectionInfo=n),n.options&&n.options.length)for(var v=0,D=n.options;v<D.length;v++)D[v].checked&&b++;return b>0&&(g=(0,y.OO)(m.SectionTitleWithNumber,n.title,b)),i.createElement("div",{ref:this._resolveRef("root"),className:(0,u.N0)(f,"FiltersPane-section"),"data-automationtype":"FilterSection","data-section-type":n.type,"data-section-key":n.fieldName},!o&&i.createElement(_.a,{rootElementId:this._ariaLabelId,text:g,showEditButton:n.showEditButton,commandItems:p}),i.createElement("div",{className:"FiltersPane-sectionContent",role:C()?"group":"list",ref:this._resolveRef("sectionContent"),"aria-labelledby":o?void 0:this._ariaLabelId},s&&c&&d&&this._renderFilterPicker(),n.options&&n.options.length>0&&i.createElement(l.z5q,{componentRef:this._resolveRef("focusZone"),direction:l.GIy.vertical,isCircularNavigation:!0},n.options.map(function(t,n){if(!h||n<5)return e._renderOption(t)}))),h&&i.createElement("div",{className:"FiltersPane-sectionFooter"},i.createElement(S,(0,a.W_)({},r)," ")))},t.prototype._renderFilterPicker=function(){var e=this.props,t=e.ariaLabel,n=e.sectionInfo,a=e.pageContext,r=e.strings;return n.type===(0,o.c)("user")&&a?i.createElement(h.a,{className:"od-CheckBoxFilterSection-peoplePicker",context:a,peoplePickerType:b.a.listBelow,onRenderItem:this._onRenderItem,onSelectedPersonasChange:this._onSelectedPersonasChange,inputProps:{placeholder:r.PeoplePickerPlaceholder,"aria-label":t},noResultsFoundText:r.NoResults}):i.createElement(x,{className:"od-CheckBoxFilterSection-filterPicker",onResolveSuggestions:this._onResolveSuggestions,getTextFromItem:this._getTextFromItem,onRenderItem:this._onRenderItem,onRenderSuggestionsItem:this._onRenderSuggestionsItem,pickerSuggestionsProps:{onRenderNoResultFound:this._onRenderNoResultFound},inputProps:{placeholder:r.FilterPickerPlaceholder,"aria-label":t},onChange:this._onSelectedSuggestionsChange})},t.prototype._getTextFromItem=function(e){return e.label},t.prototype._onRenderItem=function(){return null},t.prototype._onRenderSuggestionsItem=function(e){return i.createElement("div",null,e.label)},t}(l.oKI)}
,3783:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("fui.lcoms_828");(0,n("fui.util_43").pZ)([{rawString:".od-FilterSectionHeader{position:relative;font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:400;height:20px;color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:";font-weight:600;padding:6px 0 13px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.od-FilterSectionHeader .od-FilterSectionHeader-sideCommands{position:absolute;top:0}[dir=ltr] .od-FilterSectionHeader .od-FilterSectionHeader-sideCommands{right:0}[dir=rtl] .od-FilterSectionHeader .od-FilterSectionHeader-sideCommands{left:0}"}]);const s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.text,a=t.rootElementId,r=t.showEditButton,o=t.commandItems;return i.createElement("div",{className:"od-FilterSectionHeader",id:a},n,r&&o&&i.createElement("div",{className:"od-FilterSectionHeader-sideCommands"},o.map(function(t){return e._onRenderCommand(t)})))},t.prototype._onRenderCommand=function(e){return i.createElement(o.qxl,{content:e.ariaLabel},i.createElement(o.hYu,{name:e.name,ariaLabel:e.ariaLabel,"data-automationtype":"FilterSectionHeaderButton",key:e.key,className:"od-FilterSectionHeader-button",iconProps:{iconName:e.iconProps?e.iconProps.iconName:""},menuProps:e.subMenuProps,onRenderMenuIcon:this._onRenderMenuIcon,onClick:!e.subMenuProps&&e.onClick?function(t){e.onClick(t,e)}:void 0}))},t.prototype._onRenderMenuIcon=function(){return null},t}(r.oKI)}
,2803:(e,t,n)=>{"use strict";n.d(t,{a:()=>p,b:()=>m});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("fui.util_43"),s=n("fui.lcoms_828"),c=n("fui.core_870");(0,o.pZ)([{rawString:".ms-FlowPanel{top:50px}.ms-FlowPanel .ms-Panel-contentInner{position:relative;height:100%;min-height:0;top:0}.ms-FlowWidgetPanel .ms-Panel-contentInner{position:relative;height:100%}.ms-FlowWidgetPanel .ms-Panel-commands{padding-top:15px}[dir=ltr] .ms-FlowWidgetPanel .ms-Panel-commands{float:right}[dir=rtl] .ms-FlowWidgetPanel .ms-Panel-commands{float:left}.ms-FlowWidgetPanel-safariFix .ms-Panel-content{min-height:100vh}.ms-FlowPanel-contents{overflow:hidden;position:absolute;left:0;top:0;right:0;bottom:0}.ms-FlowPanel-contents iframe{width:100%;height:100%;border:0}.ms-FlowPanel-center{position:absolute;transform:translate(-50%,-50%);left:50%;top:50%}.ms-FlowPanel-iframeContainer{height:100%;width:100%}.ms-FlowPanel-errorImage{display:block;margin:auto}.ms-FlowPanel--loadingWidget{position:absolute;width:.1px;height:.1px;padding:0;margin:-.1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ms-FlowPanel--hidden{visibility:hidden}"}]);var d=n(7569);const l=function(e){function t(t){return e.call(this,t)||this}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.panelProps,n=e.isOpen,o=e.onDismiss,l=e.isWidgetRendered,f=e.showError,p=e.errorImgUrl,m=e.isTempId;return i.createElement(r.k8Z,(0,a.W_)({},t,{className:"ms-FlowWidgetPanel ms-FlowWidgetPanel-safariFix",type:r.ecV.smallFixedFar,isLightDismiss:!0,isOpen:n,onDismiss:o,closeButtonAriaLabel:d.a}),i.createElement("div",{className:"ms-FlowPanel-contents","data-automationid":"flowControl"},!l&&!f&&i.createElement(s.tu6,{className:"ms-FlowPanel-center",size:c.CTe.large}),f&&i.createElement("div",{className:"ms-FlowPanel-center"},i.createElement("img",{className:"ms-FlowPanel-errorImage",role:"presentation",src:p}),i.createElement("div",{className:"ms-FlowPanel-errorMessage ms-font-s ms-fontColor-neutralSecondary"},m?i.createElement(i.Fragment,null,i.createElement("strong",null," ",d.c," "),i.createElement("div",null," ",d.d," ")):d.b)),i.createElement(u,(0,a.W_)({},this.props))))},t}(r.oKI);var u=function(e){function t(t){var n=e.call(this,t)||this;return n._iframeContainer=i.createRef(),n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.showError,n=e.isWidgetRendered;return i.createElement("div",{className:(0,o.N0)("ms-FlowPanel-iframeContainer",{"ms-FlowPanel--hidden":t,"ms-FlowPanel--loadingWidget":!n}),ref:this._iframeContainer,"aria-hidden":!n})},t.prototype.componentDidMount=function(){this.props.isOpen&&this.props.onIFrameContainerRendered&&this.props.onIFrameContainerRendered(this._iframeContainer.current)},t.prototype.componentDidUpdate=function(e){!e.isOpen&&this.props.isOpen&&this.props.onIFrameContainerRendered&&this.props.onIFrameContainerRendered(this._iframeContainer.current)},t}(r.oKI),f=n(2749),p=function(e){function t(t){var n=e.call(this,t)||this;return n._onDismiss=function(){n._flowWidgetProvider&&n._flowWidgetProvider.dispose(),n.props.onDismiss&&n.props.onDismiss()},n._onIFrameContainerRendered=function(e){var t=n.props.widgetParams;t.widgetStyleSettings||(t.widgetStyleSettings={backgroundColor:"white"}),n._getFlowWidgetProvider().launchFlowWidget(e,t)},n._onWidgetRendered=function(){n.setState({isWidgetRendered:!0}),n.props.onWidgetRendered&&n.props.onWidgetRendered()},n._onWidgetError=function(e){n.setState({showError:!0}),n.props.onWidgetError&&n.props.onWidgetError(e)},n._onTokenError=function(e){n.props.onTokenError&&n.props.onTokenError(e)},n._onFlowCreationSucceeded=function(e,t){n.props.onFlowCreationSucceeded&&n.props.onFlowCreationSucceeded(e,t)},n._onFlowCreationFailed=function(e){n.props.onFlowCreationFailed&&n.props.onFlowCreationFailed(e)},n._onWidgetClose=function(e){n.props.onWidgetClose&&n.props.onWidgetClose(e)},n._onTriggerFlowStarted=function(e){n.props.onTriggerFlowStarted&&n.props.onTriggerFlowStarted(e)},n._onTriggerFlowSucceeded=function(e,t){n.props.onTriggerFlowSucceeded&&n.props.onTriggerFlowSucceeded(e,t)},n._onTriggerFlowDoneClicked=function(e){n.props.onTriggerFlowDoneClicked&&n.props.onTriggerFlowDoneClicked(e)},n._onTriggerFlowCancelClicked=function(e){n.props.onTriggerFlowCancelClicked&&n.props.onTriggerFlowCancelClicked(e)},n._onApprovalStatusChanged=function(e){n.props.onApprovalStatusChanged&&n.props.onApprovalStatusChanged(e)},n._onGetStrings=function(e){n.props.onGetStrings&&n.props.onGetStrings(e)},n.state={isWidgetRendered:!1,showError:t.isTempId},n}return(0,a.XJ)(t,e),t.prototype.render=function(){return i.createElement(l,(0,a.W_)({},this.getRenderProps()))},t.prototype.getRenderProps=function(){var e=this.props,t=this.state;return{isOpen:e.isOpen,isWidgetRendered:t.isWidgetRendered,showError:t.showError,errorImgUrl:e.errorImgUrl,isTempId:e.isTempId,panelProps:e.panelProps,onDismiss:this._onDismiss,onIFrameContainerRendered:this._onIFrameContainerRendered}},t.prototype._getFlowWidgetProvider=function(){return this._flowWidgetProvider||(this._flowWidgetProvider=new f.a({onWidgetRendered:this._onWidgetRendered,onWidgetError:this._onWidgetError,onTokenError:this._onTokenError,onFlowCreationSucceeded:this._onFlowCreationSucceeded,onFlowCreationFailed:this._onFlowCreationFailed,onWidgetClose:this._onWidgetClose,onTriggerFlowStarted:this._onTriggerFlowStarted,onTriggerFlowSucceeded:this._onTriggerFlowSucceeded,onTriggerFlowDoneClicked:this._onTriggerFlowDoneClicked,onTriggerFlowCancelClicked:this._onTriggerFlowCancelClicked,onApprovalStatusChanged:this._onApprovalStatusChanged,onGetStrings:this._onGetStrings},{pageContext:this.props.pageContext,oAuthTokenProvider:this.props.oAuthTokenProvider})),this._flowWidgetProvider},t}(r.oKI);const m=p}
,2950:(e,t,n)=>{"use strict";n.d(t,{a:()=>w,b:()=>O});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("fui.lcoms_828"),s=n(41),c=n(7581),d=n("fui.util_43");(0,d.pZ)([{rawString:".ms-HubSettingsPanel{color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}.ms-HubSettingsPanelAdmin{color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}.ms-HubSettingsPanel-Logo{margin-bottom:16px}.ms-HubSettingsPanel-Name{margin-bottom:16px}.ms-HubSettingsPanel-NameInNav{margin-top:-8px;margin-bottom:16px}.ms-HubSettingsPanel-SiteDesign{margin-bottom:16px}.ms-HubSettingsPanelContent .ms-Label{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:"},{theme:"mediumFontWeight",defaultValue:"400"},{rawString:";font-weight:600}.ms-HubSettingsPanelContent .ms-HubSettingsPanel-NameInNav .ms-Toggle-stateText{font-weight:400}.ms-HubSettingsPanelContent .ms-HubSettingsPanel-ApprovalRequired .ms-Toggle-stateText{font-weight:400}.ms-HubSettingsPanelContent .ms-SiteSettingsPanel-connectHubSiteDropdown .ms-HubSettingsPanel-connectedHubMessage{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:"},{theme:"smallFontWeight",defaultValue:"400"},{rawString:";color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.ms-HubSettingsPanel-JoinApproval{margin-bottom:16px}.ms-HubSettingsPanel-ApprovalRequired{margin-bottom:16px}.ms-HubSettingsPanel-FlowIcon{margin-right:4px}.ms-HubSettingsPanel-Buttons{margin-top:24px}html[dir=ltr] .ms-HubSettingsPanel-CancelButton{margin-left:8px}html[dir=rtl] .ms-HubSettingsPanel-CancelButton{margin-right:8px}.ms-HubSettingsPanel-Spinner{margin-top:8px}.ms-HubSettingsPanel-ErrorMessage{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400;color:"},{theme:"errorText",defaultValue:"#a4262c"},{rawString:";box-sizing:border-box;box-shadow:none;margin:0;padding:0;margin-top:20px;margin-bottom:13px}.ms-HubSettingsPanel-ApprovalFlowInfo{margin-bottom:8px}.ms-HubSettingsPanelHeader{padding:16px 40px}.ms-HubSettingsPanelHeaderLabel{font-size:"},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:"},{theme:"xLargeFontWeight",defaultValue:"600"},{rawString:";display:inline}.ms-HubSettingsPanel-ViewAssociatedHubsLink{color:#0078d4}.ms-HubSettingsHeaderInfoIcon{color:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";flex:none;display:inline}[dir=ltr] .ms-HubSettingsHeaderInfoIcon{padding-left:10px}[dir=rtl] .ms-HubSettingsHeaderInfoIcon{padding-right:10px}.ms-HubSettingsPanelDescription{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:400;color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:";margin-bottom:40px}.ms-HubSettingsPanelHelpLink{margin-top:8px}.ms-SiteSettingsPanel-connectHubSiteDropdown{margin-bottom:24px}.ms-hubSettings-peoplePicker{margin-bottom:20px}.ms-hubSettings-peoplePicker .ms-BasePicker-selectedItems{margin-top:20px}"}]);var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props.hubSettingsPanelHeaderClassNames,t=void 0===e?{}:e,n=t.header,a=t.label;return i.createElement("div",{className:n||"ms-HubSettingsPanelHeader"},i.createElement("p",{className:a||"ms-HubSettingsPanelHeaderLabel",id:this.props.headerTextId,"data-automationid":"HubSettingsPanelHeaderLabel"},c.F))},t}(i.Component),u=n(2592),f=n(43),p=n(2337),m=n(2903),_=n(7572),h=n(2803),b=n(2331),g=n(2334),v=n(2904),y=(0,d.Dn)(),S=y.fonts,D=(0,r.I61)({description:{},container:{marginTop:16,overflow:"auto",maxHeight:500},itemCell:[(0,r.mRu)(y,{inset:-1}),{boxSizing:"border-box",display:"flex",paddingTop:5,paddingBottom:5}],itemImage:{flexShrink:0},itemContent:{height:30,lineHeight:30,marginLeft:10,overflow:"hidden",flexGrow:1},itemName:[S.medium,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}]}),I=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderCell=function(e){return i.createElement(x,{item:e,logoPlaceHolder:n.props.hubLogoPlaceHolder,pageContext:n.props.pageContext})},n}return(0,a.XJ)(t,e),t.prototype.render=function(){return i.createElement(r.z5q,{direction:r.GIy.vertical},i.createElement("div",{className:D.description},c.g),i.createElement("div",{className:D.container},i.createElement(r.Oc0,{items:this.props.items,onRenderCell:this._onRenderCell})))},t}(i.Component),x=function(e){function t(t){var n=e.call(this,t)||this;return n._onLoadingStateChange=function(e){e!==r.P6Z.errorLoaded&&e!==r.P6Z.error||n.setState({hasError:!0})},n.state={hasError:!1},n}return(0,a.XJ)(t,e),t.prototype.render=function(){return i.createElement("div",{className:D.itemCell,"data-is-focusable":!0},i.createElement(o.H5o,{className:D.itemImage,src:this.state.hasError?this.props.logoPlaceHolder:"".concat(this.props.pageContext.webAbsoluteUrl,"/_api/siteiconmanager/getsitelogo?siteurl='").concat(this.props.item.siteUrl,"'"),width:30,height:30,imageFit:r.Ho$.cover,onLoadingStateChange:this._onLoadingStateChange}),i.createElement("div",{className:D.itemContent},i.createElement("div",{className:D.itemName},this.props.item.name)))},t}(i.Component),C=function(e){function t(t){var n=e.call(this,t)||this;return n._renderAssociatedHubs=function(e,t,n){return i.createElement(I,{items:e,pageContext:t,hubLogoPlaceHolder:n})},n._renderAssociatedHubsInPanel=function(e,t,a){return i.createElement(i.Fragment,null,i.createElement(o.NG4,{className:"ms-HubSettingsPanel-ViewAssociatedHubsLink",onClick:function(){return n._setIsAssociatedHubsOpen(!0)},style:{marginTop:16}},c.O),i.createElement(r.k8Z,{headerText:c.h,isOpen:n.state.isAssociatedHubsPanelOpened,onDismiss:function(){return n._setIsAssociatedHubsOpen(!1)},closeButtonAriaLabel:"Close"},n._renderAssociatedHubs(e,t,a)))},n._renderAssociatedHubsInPlace=function(e,t,a){return i.createElement(i.Fragment,null,i.createElement(o.jS7,{horizontal:!0,style:{marginTop:20}},i.createElement(o.cbL,null,c.O),i.createElement(o.hYu,{onClick:function(){n.state.isAssociatedHubsPanelOpened?n._setIsAssociatedHubsOpen(!1):n._setIsAssociatedHubsOpen(!0)},iconProps:{iconName:n.state.isAssociatedHubsPanelOpened?"ChevronUp":"ChevronDown"}})),n.state.isAssociatedHubsPanelOpened&&n._renderAssociatedHubs(e,t,a))},n._onClickChangeImage=function(){O("ChangeLogo.Click",n.props.pageContext)},n._onClickRemoveImage=function(){O("RemoveLogo.Click",n.props.pageContext)},n._onNameChanged=function(e,t){var a=n._nameText.current,i=a&&a.value||"";n.setState({missingRequiredInfo:!i.trim()})},n._onHideNameInNavigationToggleChanged=function(e,t){n.setState({hideNameInNavigation:!t})},n._onSelectedMembersChange=function(e){n.setState({targetUsers:e})},n._removeSelectedFromSuggestions=function(e){if(e&&e.length>0){var t=[],a=n._getTargetUsers();return e.forEach(function(e){0!==a.length&&a.some(function(t){return t.userId===e.userId})||t.push(e)}),t}return[]},n._onSiteDesignSelectionChanged=function(e,t){n.setState({newSelectedSiteDesignId:t.key})},n._onRequiresJoinApprovalToggleChanged=function(e,t){n.setState({requiresJoinApproval:t})},n._getSaveButtonDisabledCallback=function(){n.props.getSaveButtonDisabledState&&n.__saveButtonDisabled!==n._saveButtonDisabled&&(n.__saveButtonDisabled=n._saveButtonDisabled,n.props.getSaveButtonDisabledState(n.__saveButtonDisabled))},n._onSaveClick=function(){var e=n.props;if(O("Save.Click",e.pageContext),e.onSave){var t=n._nameText.current,a=n._imageBrowser.current,i=t&&t.value&&t.value.trim()||"",r=a&&a.getImageFile(),o=n._selectedSiteDesignId,s=n._requiresJoinApproval,c=n._hideNameInNavigation,d=n.state.connectHubSelectedKey;e.onSave(i,r,o,s,n._getTargetUsers(),c,d)}},n._setIsAssociatedHubsOpen=function(e){n.setState({isAssociatedHubsPanelOpened:e})},n._onConnectHubSiteOptionChanged=function(e,t){n.setState({connectHubSelectedKey:t.key})},n.renderPeoplePickerItemWithMenu=function(e){return i.createElement(v.a,(0,a.W_)((0,a.W_)({},e),{menuTitle:""}))},t.parentHub?n.state={connectHubSelectedKey:t.parentHub.id===f.a.Empty?"":t.parentHub.id,isAssociatedHubsPanelOpened:!1}:t.initialHubSettings?n.state={connectHubSelectedKey:t.initialHubSettings.parentHubSiteId===f.a.Empty?"":t.initialHubSettings.parentHubSiteId,isAssociatedHubsPanelOpened:!1}:n.state={},n._nameText=(0,i.createRef)(),n._imageBrowser=(0,i.createRef)(),n.__saveButtonDisabled=!1,n}return(0,a.XJ)(t,e),t.prototype.componentDidUpdate=function(e){e.isSaving!==this.props.isSaving&&this.props.isSaving&&this._onSaveClick(),this._getSaveButtonDisabledCallback()},t.prototype.componentDidMount=function(){this.props.isSaving&&this._onSaveClick(),this._getSaveButtonDisabledCallback()},t.prototype.render=function(){var e=this,t=this.props,n=t.initialHubSettings,a=t.showAssociateSitesPeoplePicker,s=t.isRegisterPanel,d=t.isTenantAdminScenario,l=t.hideLogoPicker,u=t.hideJoinApproval,f=t.hideHubSiteDesign,_=t.hideHideNameInNav,h=t.hideConnectedHubs,v=t.hideSaveAndCancel,y=t.hideSavingSpinner,S=t.emptyImageUrl,D=t.pageContext,I=t.hubSiteJoinApprovalFlightEnabled,x=t.errorMessage,C=t.connectHubSiteOptions,O=t.associatedHubs,w=t.hubSettingsPanelBodyClassNames,E=void 0===w?{}:w,A=E.content,L=E.convertHubSitePanelDescription,k=E.convertHubSitePanelHelpLink,M=E.logo,P=E.hubName,T=E.hubNameToggle,U=E.peoplePicker,F=E.siteDesign,H=E.joinApproval,R=E.error,N=E.buttonDiv,B=E.saveButton,j=E.cancelButton,V=E.spinner,z=E.connectedHubDropDown,G=this._getTargetUsers(),K=this._siteDesignOptions;return i.createElement("div",{className:A||"ms-HubSettingsPanelContent"},!s&&!d&&i.createElement(o.cbL,{style:{fontWeight:"unset"}},c.E,i.createElement(o.NG4,{href:m.b.getHelpLink(m.a.SET_UP_HUB_SITE_SUPPORT_LINK,this.props.pageContext.currentUICultureName),target:"_blank"},c.n)),s&&i.createElement("div",{className:L||"ms-HubSettingsPanelDescription"},c.m,i.createElement("div",{className:k||"ms-HubSettingsPanelHelpLink"},i.createElement(o.NG4,{href:m.b.getHelpLink(m.a.REGISTER_HUB_SITE_HELP_LINK,this.props.pageContext.currentUICultureName),target:"_blank"},c.n))),!l&&i.createElement("div",{className:M||"ms-HubSettingsPanel-Logo"},i.createElement(o.cbL,null,c.A),i.createElement(p.b,{ref:this._imageBrowser,imageHeight:48,imageWidth:48,initialPreviewUrl:n.logoUrl,onChangeClick:this._onClickChangeImage,onRemoveClick:this._onClickRemoveImage})),i.createElement(r.FuC,{componentRef:this._nameText,className:P||"ms-HubSettingsPanel-Name","data-automation-id":"hub-settings-panel-hub-name",label:c.D,defaultValue:s?D&&D.webTitle:n.name,onChange:this._onNameChanged,required:!0}),!_&&i.createElement(o.bVQ,{className:T||"ms-HubSettingsPanel-NameInNav",defaultChecked:n&&!n.hideNameInNavigation,onText:c.C,offText:c.B,onChange:this._onHideNameInNavigationToggleChanged}),a&&i.createElement("div",{className:U||"ms-hubSettings-peoplePicker","data-automationid":"AddMembersPeoplePicker"},i.createElement(o.cbL,null,c.f),i.createElement(b.a,{context:D,peoplePickerType:g.a.listBelow,onSelectedPersonasChange:this._onSelectedMembersChange,onRenderItem:function(t){return e.renderPeoplePickerItemWithMenu(t)},defaultSelectedItems:G,onResolvedSuggestions:this._removeSelectedFromSuggestions})),!f&&K&&K.length>0&&i.createElement(r.AHK,{className:F||"ms-HubSettingsPanel-SiteDesign",label:c.L,options:K,onChange:this._onSiteDesignSelectionChanged,selectedKey:this._selectedSiteDesignId}),!u&&I&&i.createElement("div",{className:H||"ms-HubSettingsPanel-JoinApproval"},this._renderHubSiteJoinApprovalSection()),!h&&!s&&i.createElement("div",{className:z||"ms-SiteSettingsPanel-connectHubSiteDropdown"},i.createElement(r.AHK,{label:c.l,options:C,onChange:this._onConnectHubSiteOptionChanged,selectedKey:this.state.connectHubSelectedKey,disabled:!d&&!s,onRenderCaretDown:function(){return d||s?i.createElement(r.k45,{iconName:"ChevronDown"}):null}}),d&&i.createElement(i.Fragment,null,i.createElement(o.cbL,{className:"ms-HubSettingsPanel-connectedHubMessage"},c.j),i.createElement(o.NG4,{style:{fontSize:12,fontWeight:400},href:m.b.getHelpLink(m.a.REGISTER_HUB_TO_HUB_HELP_LINK,this.props.pageContext.currentUICultureName),target:"_blank"},c.n)),O&&O.length>0?d?this._renderAssociatedHubsInPlace(O,D,S):this._renderAssociatedHubsInPanel(O,D,S):null),x&&i.createElement("div",{className:R||"ms-HubSettingsPanel-ErrorMessage"},x),!v&&i.createElement("div",{className:N||"ms-HubSettingsPanel-Buttons"},i.createElement(o.rfU,{className:B||"ms-HubSettingsPanel-SaveButton",disabled:this._saveButtonDisabled,onClick:t.onSaveButtonClicked},c.I),i.createElement(o.B0k,{className:j||"ms-HubSettingsPanel-CancelButton",disabled:t.isSaving,onClick:t.onCancelButtonClicked},c.i)),!y&&t.isSaving&&i.createElement(o.tu6,{className:V||"ms-HubSettingsPanel-Spinner",label:c.J}))},t.prototype._getTargetUsers=function(){return this.state.targetUsers?this.state.targetUsers:this.props.initialHubSiteTargets?this.props.initialHubSiteTargets:[]},Object.defineProperty(t.prototype,"_siteDesignOptions",{get:function(){var e=this.props.formulaDataSet;if(e&&!this.__siteDesignOptions){var t=e.getFormulas();t&&t.length?(this.__siteDesignOptions=t.map(function(e){return{key:e.id,text:e.title}}),this.__siteDesignOptions.unshift({key:f.a.Empty,text:c.K})):this.__siteDesignOptions=[]}return this.__siteDesignOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_selectedSiteDesignId",{get:function(){var e=this.props;return this.state.newSelectedSiteDesignId||e.initialHubSettings&&e.initialHubSettings.siteDesignId},enumerable:!1,configurable:!0}),t.prototype._renderHubSiteJoinApprovalSection=function(){var e,t=this.props;return e=t.hubSiteJoinApprovalFlow?i.createElement("div",null,i.createElement("div",{className:"ms-HubSettingsPanel-ApprovalFlowInfo"},i.createElement(o.NG4,{disabled:!this._requiresJoinApproval,href:(0,u.d)(t.hubSiteJoinApprovalFlow,t.pageContext),target:"_blank"},i.createElement(r.k45,{iconName:"Flow",className:"ms-HubSettingsPanel-FlowIcon"}),t.hubSiteJoinApprovalFlow.displayName)),this._requiresJoinApproval&&i.createElement(r.usJ,null,(0,_.a)(c.N,c.M,o.NG4,{href:(0,u.b)(t.hubSiteJoinApprovalFlow.environmentId,t.pageContext),target:"_blank"}))):this._requiresJoinApproval&&i.createElement("div",null,i.createElement(o.cbL,null,c.b),i.createElement(o.rfU,{text:c.o,onClick:t.onCreateJoinApprovalFlow})),i.createElement("div",null,i.createElement(o.bVQ,{className:"ms-HubSettingsPanel-ApprovalRequired",defaultChecked:t.initialHubSettings&&t.initialHubSettings.requiresJoinApproval,label:c.H,onText:c.d,offText:c.c,onChange:this._onRequiresJoinApprovalToggleChanged}),e,t.hubSiteJoinErrorMessage&&i.createElement("div",{className:"ms-HubSettingsPanel-ErrorMessage"},t.hubSiteJoinErrorMessage),i.createElement(h.b,(0,a.W_)({},t.flowWidgetPanelProps)))},Object.defineProperty(t.prototype,"_requiresJoinApproval",{get:function(){var e=this.props,t=this.state;return void 0!==t.requiresJoinApproval?t.requiresJoinApproval:e.initialHubSettings&&e.initialHubSettings.requiresJoinApproval},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_saveButtonDisabled",{get:function(){var e=this.props,t=e.hubSiteJoinApprovalFlightEnabled&&this._requiresJoinApproval&&!e.hubSiteJoinApprovalFlow;return!e.initialHubSettings&&!e.isRegisterPanel||this.state.missingRequiredInfo||e.isSaving||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_hideNameInNavigation",{get:function(){var e=this.props,t=this.state;return void 0!==t.hideNameInNavigation?t.hideNameInNavigation:e.initialHubSettings&&e.initialHubSettings.hideNameInNavigation},enumerable:!1,configurable:!0}),t}(i.Component);function O(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i={}),s.Engagement.logData({name:"HubSettingsPanel.".concat(e),isIntentional:n,extraData:(0,a.W_)((0,a.W_)({},i),{hubSiteId:t&&t.hubSiteId})})}var w=function(e){function t(t){var n=e.call(this,t)||this;return n._onCancelClick=function(e){O("Cancel.Click",n.props.pageContext),n.props.onCancel(),e&&(e.stopPropagation(),e.preventDefault())},n._onSaveButtonClicked=function(e){n.setState({isSaving:!0}),e&&(e.stopPropagation(),e.preventDefault())},n._onRenderPanelHeader=function(e,t,a){return i.createElement(l,{pageContext:n.props.pageContext,headerTextId:a})},n.state={isSaving:!1},n._hubSettingsPanelBodyRef=(0,i.createRef)(),n}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){O("Opened",this.props.pageContext)},t.prototype.componentDidUpdate=function(){this.props.errorMessage&&this.props.errorMessage.length>0&&this.state.isSaving&&this.setState({isSaving:!1})},t.prototype.render=function(){var e=this.props,t=e.initialHubSettings,n=e.connectHubSiteOptions,s=e.panelClassName,d=e.isRegisterPanel,l=e.pageContext,u={emptyImageUrl:e.emptyImageUrl,onCancel:e.onCancel,pageContext:l,hubSiteJoinApprovalFlightEnabled:e.hubSiteJoinApprovalFlightEnabled,isSaving:this.state.isSaving,onSaveButtonClicked:this._onSaveButtonClicked,onCancelButtonClicked:this._onCancelClick,onCreateJoinApprovalFlow:e.onCreateJoinApprovalFlow,showAssociateSitesPeoplePicker:e.showAssociateSitesPeoplePicker,hideLogoPicker:e.hideLogoPicker,hideJoinApproval:e.hideJoinApproval,hideHubSiteDesign:e.hideHubSiteDesign,hideHideNameInNav:e.hideHideNameInNav,hideConnectedHubs:e.hideConnectedHubs,hideSaveAndCancel:e.hideSaveAndCancel,hideSavingSpinner:e.hideSavingSpinner,onSave:e.onSave,isRegisterPanel:d,initialHubSiteTargets:e.initialHubSiteTargets,initialHubSettings:t,connectHubSiteOptions:n,formulaDataSet:e.formulaDataSet,hubSiteJoinApprovalFlow:e.hubSiteJoinApprovalFlow,hubSiteJoinErrorMessage:e.hubSiteJoinErrorMessage,errorMessage:e.errorMessage,flowWidgetPanelProps:e.flowWidgetPanelProps,associatedHubs:e.associatedHubs,parentHub:e.parentHub,isTenantAdminScenario:e.isTenantAdminScenario};return i.createElement(r.k8Z,{className:s,isOpen:e.isPanelOpen,type:r.ecV.smallFixedFar,onDismiss:this._onCancelClick,onRenderHeader:d?this._onRenderPanelHeader:void 0,headerText:d?c.F:c.G,isLightDismiss:!0,isHiddenOnDismiss:e.isHiddenOnDismiss,closeButtonAriaLabel:c.i},t||d?i.createElement(C,(0,a.W_)({ref:this._hubSettingsPanelBodyRef},u)):i.createElement(o.tu6,{label:c.z}))},t}(r.oKI)}
,2875:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("fui.lcoms_828"),s=n("fui.core_870"),c=n(2820),d=n(7144),l=n(7142),u=n(2819),f=n("odsp.util_578"),p=n("fui.util_43");(0,p.pZ)([{rawString:".ms-MultilingualInputs-Links{overflow-y:auto;max-height:80vh;margin-bottom:16px}.ms-MultilingualInputs-Link{margin-bottom:16px}.ms-MultilingualInputs-Link:last-child{margin-bottom:0}.ms-MUIEditingCustomization{height:80vh}.ms-MultilingualInputs-ButtonArea{vertical-align:top;display:inline-block;width:100%}[dir=ltr] .ms-MultilingualInputs-ButtonArea{text-align:left}[dir=rtl] .ms-MultilingualInputs-ButtonArea{text-align:right}[dir=ltr] .ms-MultilingualInputs-SaveButton{margin-right:8px}[dir=rtl] .ms-MultilingualInputs-SaveButton{margin-left:8px}[dir=ltr] .ms-MultilingualInputs-CancelButton{margin-left:0}[dir=rtl] .ms-MultilingualInputs-CancelButton{margin-right:0}"}]);var m=function(e){function t(t){var n,a=e.call(this,t)||this;a._focusOnElement=function(){a._shouldRestoreFocusWhenExitMUIEditing&&a._defaultTextField&&a._defaultTextField.current&&a._defaultTextField.current.focus()},a._IsRequiredFields=function(e){return 0===e&&!a.props.defaultLanguageIsOptional},a._insertMetaData=function(e){var t=f.OO(d.a,u.a.getResourceByCode(a._webLanguage)||"");return e.map(function(e){return{code:e.code,language:e.code===a._webLanguage?t:e.language||"",value:e.code===a.props.currentLCID?a.props.currentDisplay:e.value}})},a._onChange=function(e){return function(t,n){var i=a.state.translations.map(function(t,a){return e===a&&(t.value=n||""),t});a.props.textUpdateCallback&&a.props.textUpdateCallback(i),a.setState({translations:i,errorState:a._validateErrorState(i)})}},a._handleSaveClick=function(){a.props.onSaveClick&&a.props.onSaveClick(a.state.translations)},a._handleCancelClick=function(){a.props.onCancelClick&&a.props.onCancelClick()},a._validateErrorState=function(e){if(e&&0!==e.length&&(f.HW.isActivated("3997930c-2770-4c54-8a47-7aea575aaf97","3/2/2021","Do not dispaly error message for required field")||a._IsRequiredFields(0))&&!a.props.multilineInput)return 0===e[0].value.trim().length?d.b:void 0},a._webLanguage=null===(n=a.props.pageContext)||void 0===n?void 0:n.webLanguage;var r=t.translations?a._insertMetaData(t.translations):void 0;return a.state={errorState:r?a._validateErrorState(r):void 0,translations:r||void 0},a._defaultTextField=i.createRef(),a._shouldRestoreFocusWhenExitMUIEditing=!f.HW.isActivated("cfd5602d-6f38-4a39-a4b6-cc059465c60a","6/15/2021","restore focus to link after existing MUI Editing"),a}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){var e=this;if(this.state.translations&&0!==this.state.translations.length)setTimeout(function(){e._focusOnElement()},50);else{var t=new c.b(this.props.pageContext);switch(this.props.dataSourceType){case c.a.ExistingNavNode:case c.a.SiteTitle:case c.a.SiteDescription:t.getTranslations(this.props.dataSourceType,this.props.navNodeId).then(function(t){e.setState({translations:e._insertMetaData(t)},function(){e._focusOnElement()})});break;case c.a.NewNavNode:t.getAllSupportedLanguages().then(function(t){e.setState({translations:e._insertMetaData(t)},function(){e._focusOnElement()})})}}},t.prototype.render=function(){var e=this;return this.state.translations?i.createElement("div",null,i.createElement("div",{className:(0,p.N0)("ms-MultilingualInputs-Links",this.props.contentClassNames),"data-automationid":"MultilingualInputs-Inner"},this.state.translations.map(function(t,n){return i.createElement(r.FuC,{componentRef:0===n?e._defaultTextField:void 0,key:"MUIEditing_".concat(t.language),id:"MUIEditing_TextField_".concat(n),className:"ms-MultilingualInputs-Link",label:t.language,multiline:e.props.multilineInput,value:t.value,required:e._IsRequiredFields(n),"aria-required":e._IsRequiredFields(n),onChange:e._onChange(n),styles:{root:{marginRight:"6px"}},errorMessage:0===n&&e.state.errorState})})),i.createElement("div",{className:"ms-MultilingualInputs-ButtonArea"},i.createElement(o.rfU,{className:"ms-MultilingualInputs-SaveButton",onClick:this._handleSaveClick,disabled:!!this.state.errorState,"data-automationid":"MultilingualInputs-SaveTranslation"},l.l),i.createElement(o.B0k,{className:"ms-MultilingualInputs-CancelButton",onClick:this._handleCancelClick,"data-automationid":"MultilingualInputs-CancelTranslation"},l.m))):i.createElement(o.tu6,{styles:{root:{marginTop:"50vh"}},ariaLabel:d.c,size:s.CTe.large})},t}(i.Component)}
,2838:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.util_43");(0,r.pZ)([{rawString:".ms-siteLogoAcronym{line-height:64px;width:64px;height:64px;font-size:"},{theme:"xxLargeFontSize",defaultValue:"28px"},{rawString:";font-weight:100;background-color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";text-align:center;transition:all .5s ease;color:"},{theme:"white",defaultValue:"#fff"},{rawString:"}.ms-siteLogoContainerOuter{border:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";transition:all .5s ease;flex-shrink:0}.ms-siteLogo-defaultLogo{overflow:hidden;width:1em;height:1em;color:"},{theme:"white",defaultValue:"#fff"},{rawString:";text-decoration:none;vertical-align:middle;font-size:64px;transition:all .5s ease;display:inline-block}.ms-siteLogo-defaultLogo.ms-Icon--group{line-height:1.3em;background-color:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:"}.ms-siteLogo-defaultLogo:hover,.ms-siteLogo-defaultLogo:visited{color:"},{theme:"white",defaultValue:"#fff"},{rawString:"}.ms-siteLogo-actual{transition:all .5s ease;width:64px;height:64px;white-space:nowrap;overflow:hidden;display:flex;justify-content:center;align-items:center}.ms-siteLogo-actual>div{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.ms-siteLogo-actual img{display:block;max-height:64px;max-width:64px}.od-focus--enabled .ms-siteLogo-defaultLogo:focus{outline:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:" 1px solid}"}]);var o=n("odsp.util_578"),s=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._handleOnClick=function(e){a.props.logoOnClick&&a.props.logoOnClick(e)},a._imgLoadHandler=function(){a.setState({imageLoaded:!0})},a._imgLoadErrorHandler=function(){a.setState({imageError:!0})},a.state={imageLoaded:!1},a}return(0,a.XJ)(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){e.siteLogoUrl!==this.props.siteLogoUrl&&this.setState({imageLoaded:!1})},t.prototype.render=function(){return i.createElement("div",null,this.renderSiteLogo(this.props?this.props.siteLogoUrl:null))},t.prototype.renderSiteLogo=function(e){var t;this.props&&(e&&!this.state.imageError&&(t=i.createElement("img",{role:"presentation","aria-hidden":"true",src:e,onLoad:this._imgLoadHandler,onError:this._imgLoadErrorHandler,style:{display:this.state.imageLoaded?void 0:"none"}})),!this.props.siteAcronym||e&&!this.state.imageError||(t=i.createElement("div",null,i.createElement("div",{role:"presentation","aria-hidden":"true",className:"ms-siteLogoAcronym ms-font-xxl",style:this._addOverrideStyle({backgroundColor:this.props.siteLogoBgColor,display:this.state.imageLoaded?"none":void 0},!0,!0)},this.props.siteAcronym),t)));var n=!this.state.imageLoaded&&!this.props.disableSiteLogoFallback,s=this.props,c=s.logoHref,d=s.siteTitle,l=o.HW.isActivated("66f2a3e5-3d44-4e09-84ef-efb905ca01cf","08/11/2023","Remove site logo aria label for non-links")||c?{"aria-label":d}:{},u=i.createElement(c?"a":"div",(0,a.W_)({className:(0,r.N0)("ms-siteLogo-defaultLogo",n&&(0,r.wZ)("Group")),onClick:this._handleOnClick,href:c,style:this._addOverrideStyle(void 0,!0)},l),i.createElement("div",{className:"ms-siteLogo-actual"},t));return i.createElement("div",{className:"ms-siteLogoContainerOuter",style:this._addOverrideStyle()},i.createElement("div",{className:"ms-siteLogoContainerInner",style:this._addOverrideStyle()},u))},t.prototype._addOverrideStyle=function(e,t,n){var a=this.props,i=a.size,r=a.roundedCorners;if(i){var o=i.toString()+"px";if(e=this._addPropToStyleObj(e,"width",o),e=this._addPropToStyleObj(e,"height",o),t){var s=n?Math.round(i/3):i;e=this._addPropToStyleObj(e,"fontSize",s.toString()+"px")}}if(r){var c=i?(i/2).toString()+"px":"15px";e=this._addPropToStyleObj(e,"borderRadius",c)}return e},t.prototype._addPropToStyleObj=function(e,t,n){return(e=e||{})[t]=n,e},t}(i.Component)}
,2948:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>i});var a={hidden:0,readOnly:1,enabled:2},i={None:0,Name:1,Description:2}}
,2947:(e,t,n)=>{"use strict";n.d(t,{a:()=>F,b:()=>G,c:()=>U});var a=n("tslib_102"),i=n("fui.util_43");(0,i.pZ)([{rawString:".ms-SiteSettingsPanel-ErrorMessage{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400;color:"},{theme:"errorText",defaultValue:"#a4262c"},{rawString:";box-sizing:border-box;box-shadow:none;margin:0;padding:0;margin-top:20px;margin-bottom:13px}.ms-SiteSettingsPanel-content{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:400;margin-top:8px}.ms-SiteSettingsPanel-SiteLogo{margin:2px 0 10px}.ms-SiteSettingsPanel-SiteLogo-Title{margin-bottom:2px}.ms-SiteSettingsPanel-UsageLink{margin-bottom:16px}.ms-SiteSettingsPanel-siteDescription{margin-bottom:16px}.ms-SiteSettingsPanel-siteDescription-translateLink{margin-bottom:0}.ms-SiteSettingsPanel-translationButton{margin-bottom:11px}.ms-SiteSettingsPanel-SiteInfo .ms-spinner{margin-top:8px}.ms-SiteSettingsPanel-Buttons{padding-top:24px}.ms-SiteSettingsPanel-HelpText{margin-bottom:16px}.ms-SiteSettingsPanel-DeleteGroupConfirmationCheckbox{padding-top:20px}.ms-SiteSettingsPanel-DeleteGroupLinkIcon{position:relative;top:2px}.ms-SiteSettingsPanel-DeleteGroupLinkLabel{margin-left:4px;color:"},{theme:"black",defaultValue:"#000"},{rawString:"}.ms-SiteSettingsPanel-classificationDropDownLabel{padding:5px 0;font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:"},{theme:"mediumFontWeight",defaultValue:"400"},{rawString:";font-weight:600;display:inline-block}[dir=ltr] .ms-SiteSettingsPanel-classificationDropDownLabel{margin-right:5px}[dir=rtl] .ms-SiteSettingsPanel-classificationDropDownLabel{margin-left:5px}.ms-SiteSettingsPanel-ClassificationDropdown{margin-bottom:16px}.ms-SiteSettingsPanel-PrivacyDropdown{margin-bottom:16px}.ms-SiteSettingsPanel-SiteAccessRestriction{margin-bottom:16px}.ms-SiteSettingsPanel-classificationInfoIcon{vertical-align:middle}.ms-MUIEditing-InfoIcon{height:18px;top:3px;width:19px}[dir=ltr] .ms-MUIEditing-InfoIcon{margin-left:4px}[dir=rtl] .ms-MUIEditing-InfoIcon{margin-right:4px}[dir=ltr] .ms-MUIEditing-InfoIcon{padding-left:0}[dir=rtl] .ms-MUIEditing-InfoIcon{padding-right:0}.ms-MUIEditing-InfoIcon i{font-size:14px}.ms-MUIEditing-InfoIcon:hover{background-color:transparent}.ms-ClassificationDescriptions-item{margin-bottom:12px}.ms-ClassificationDescriptions-itemTitle{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:400;font-weight:600;padding:5px 0}.ms-ClassificationDescriptions-itemDescription{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400;white-space:pre-wrap}.ms-ClassificationDescriptions-dismissButton{margin-top:10px}.ms-SiteSettingsPanel-groupNameWithPrefixAndSuffix{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400;display:inline-block;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:";margin-bottom:8px}.ms-SiteSettingsPanel-nameText{margin-bottom:16px}.ms-SiteSettingsPanel-nameText.prefix-suffix{margin-bottom:0}.ms-SiteSettingsPanel-nameText-translateLink{margin-bottom:0}.ms-SiteSettingsPanel-HubPermSyncTip,.ms-SiteSettingsPanel-hubDropdownTip{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400;white-space:pre-line}.ms-SiteSettingsPanel-makeHubCheckbox{margin-top:8px;display:none}[dir=ltr] .ms-SiteSettingsPanelButton-cancelButton{margin-left:8px}[dir=rtl] .ms-SiteSettingsPanelButton-cancelButton{margin-right:8px}.ms-SiteSettingsPanel-savingSpinner{padding-top:8px}.ms-SiteSettingsPanel-hubLoadingSpinner{height:61px}.ms-SiteSettingsPanel-joinHubSite{margin-bottom:25px}.ms-SiteSettingsPanel-HubPermSyncCheckbox{margin-top:12px;margin-bottom:16px}.ms-SiteSettingsPanel-Title{font-size:"},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:"},{theme:"xLargeFontWeight",defaultValue:"600"},{rawString:";position:absolute;left:50px;margin-top:0}.ms-SiteSettingsPanel-BackIcon-RTL{color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";position:absolute;margin-top:0}[dir=ltr] .ms-SiteSettingsPanel-BackIcon-RTL{left:8px}[dir=rtl] .ms-SiteSettingsPanel-BackIcon-RTL{right:8px}.ms-SiteSettingsPanel-NavigationContent{margin-top:18px;display:flex;width:100%;justify-content:flex-end}.ms-SiteSettingsPanel-NavigationContent .ms-Panel-closeButton{height:44px;margin-right:11px;margin-top:-6px}.ms-SiteSettingsPanel-NavigationContentTranslate{height:30px}.ms-SiteSettingsPanel-NavigationContentDismiss{display:flex;width:100%;justify-content:flex-end}.ms-SiteSettingsPanel-NavigationContentDismiss .ms-Panel-closeButton{height:44px;margin-right:11px;margin-top:12px}.ms-SiteSettingsPanel .ms-Panel-navigation{height:18px;display:block}.ms-SiteSettingsPanel-ClassificationDescriptions{margin-top:38px}.ms-SiteSettingsPanel-CompatibleIBSegmentDisplay{margin-top:38px}.ms-SiteSettingsPanel-LanguagePanel{margin-top:47px}.ms-CurrentIBSegmentDisplayView-sectionTitle{margin-top:16px}.ms-SiteSettingsPanel-CurrentIBSegmentDisplay{margin-bottom:8px}.ms-SiteSettingsPanel-IBSegmentsSection{margin-bottom:24px}.ms-MultilingualInputs-ButtonArea{margin-top:30px;vertical-align:top;display:inline-block;width:100%}[dir=ltr] .ms-MultilingualInputs-ButtonArea{text-align:left}[dir=rtl] .ms-MultilingualInputs-ButtonArea{text-align:right}[dir=ltr] .ms-MultilingualInputs-SaveButton{margin-right:8px}[dir=rtl] .ms-MultilingualInputs-SaveButton{margin-left:8px}[dir=ltr] .ms-MultilingualInputs-cancelButton{margin-left:0}[dir=rtl] .ms-MultilingualInputs-cancelButton{margin-right:0}.ms-SiteSettingsPanel-AddSegmentsDescription{margin-top:12px}.ms-SiteSettingPanel-ViewTemplateHistory{margin-bottom:21px}.ms-SiteSettingPanel-LastTemplateAppliedLabel{font-weight:600}.ms-SiteSettingsPanel-LastTemplateApplied{margin-bottom:8px}.ms-SiteSettingsPanel-ViewTemplateHistoryLink{margin-bottom:21px}"}]);var r=n("react-lib"),o=n(2948),s=n(7579),c=n("fui.lcoms_828"),d=n("fui.lco_496"),l=n(2337),u=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._initialThemeColor=a._getCurrentSiteLogoColor(),a}return(0,a.XJ)(t,e),t.prototype.render=function(){return r.createElement("div",null,this.renderGroupSiteLogo())},t.prototype.renderGroupSiteLogo=function(){var e,t,n,a=null;if(this.props&&(a=this.props.siteLogoUrl)&&/(?=_api\/groupservice\/getgroupimage)(?!color)/.test(a.toLowerCase())){var i=this._getCurrentSiteLogoColor();i!==this._initialThemeColor&&(t=i,n=-1!==(e=a).indexOf("?")?"&":"?",a="".concat(e).concat(n,"color='").concat(encodeURIComponent(t),"'"))}return this.renderSiteLogo(a)},t.prototype._getCurrentSiteLogoColor=function(){var e=(0,i.Dn)();return this.props.siteLogoBgColor?this.props.siteLogoBgColor:e&&e.palette.themePrimary},t}(n(2838).a),f=n(41),p=n("odsp.util_578"),m=n(108),_=n(2803),h=n(2876),b=n(7169);(0,i.pZ)([{rawString:".ms-CurrentIBSegmentDisplayView-sectionTitle{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:"},{theme:"mediumFontWeight",defaultValue:"400"},{rawString:";font-weight:600}.ms-CurrentIBSegmentDisplayView-ErrorMessage{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:"},{theme:"smallFontWeight",defaultValue:"400"},{rawString:";color:"},{theme:"error",defaultValue:"#a80000"},{rawString:";box-sizing:border-box;box-shadow:none;margin:0;padding:0}"}]);const g=function(e){function t(t){var n=e.call(this,t)||this;return n._renderInfoTip=function(){var e=r.createElement("a",{href:"https://aka.ms/SPOIBUser",target:"_blank",rel:"noreferrer"},b.m),t=p.ni(b.l,e),n=p.OO(b.l,"");return r.createElement(c.qxl,{content:t,id:"IBSegment-info",calloutProps:{gapSpace:0},styles:{root:{display:"inline-block",position:"relative",top:4}}},r.createElement(c.hYu,{iconProps:{iconName:"Info"},ariaLabel:n,disabled:!1,checked:!1,styles:{rootHovered:{backgroundColor:"inherit"},rootPressed:{backgroundColor:"inherit"}}}))},n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.ibDisplayLabels,n=e.errorString,a=t.map(function(e,t){return r.createElement(r.Fragment,{key:e.objectId},r.createElement("span",{key:e.objectId},(t?", ":"")+e.displayName))});return this.props.isLoading?r.createElement(c.tu6,null):r.createElement(r.Fragment,null,r.createElement("div",{className:"ms-CurrentIBSegmentDisplayView-sectionTitle"},b.h,this._renderInfoTip()),a,n?r.createElement("div",{className:"ms-CurrentIBSegmentDisplayView-ErrorMessage","data-automationid":"CurrentIBSegmentDisplayView-ErrorMessage"},n):null)},t}(d.oKI);var v=function(e){function t(t){var n=e.call(this,t)||this;return n._setIBSegmentLabelsFromPromise=function(e){e.then(function(e){e.length>0?n.setState({ibDisplayLabels:e,isLoading:!1}):n.setState({errorString:b.i,isLoading:!1})}).catch(function(){n.setState({errorString:b.j,isLoading:!1})})},n.state={errorString:"",ibDisplayLabels:[],isLoading:!0},n}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){if(this.props.pageContext.IBSegments&&this.props.pageContext.IBSegments.length>0){this._isIBSite=!0,this._ibSegmentDatasource=new h.a(this.props.pageContext);var e=this._ibSegmentDatasource.getIBSegmentLabels();this._setIBSegmentLabelsFromPromise(e)}},t.prototype.render=function(){return this._isIBSite?r.createElement(g,(0,a.W_)({},this.state)):null},t}(d.oKI),y=n(43);(0,i.pZ)([{rawString:".ms-CompatibleIBSegmentElement-DropdownContainer{display:flex;width:572px}.ms-CurrentIBSegmentDisplayView-sectionTitle{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:"},{theme:"mediumFontWeight",defaultValue:"400"},{rawString:";font-weight:600;margin-top:16px}.ms-CurrentIBSegmentDisplayView-additionalSectionTitle{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:"},{theme:"mediumFontWeight",defaultValue:"400"},{rawString:";font-weight:600;margin-top:16px;margin-bottom:8px}.ms-IBMode-SegmentTitle{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:"},{theme:"mediumFontWeight",defaultValue:"400"},{rawString:";font-weight:600;margin-top:27px;margin-bottom:8px}.ms-Implicit-SegmentDescription{margin-bottom:20px;width:572px}.ms-CurrentIBSegmentDisplayView-ErrorMessage{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:"},{theme:"smallFontWeight",defaultValue:"400"},{rawString:";color:"},{theme:"error",defaultValue:"#a80000"},{rawString:";box-sizing:border-box;box-shadow:none;margin:0;padding:0}.ms-CompatibleIBSegmentElement-DropdownRemove{color:"},{theme:"redDark",defaultValue:"#a4262c"},{rawString:"}.ms-CompatibleIBSegmentElement-Dropdown{flex-grow:1;margin-bottom:8px;width:572px}.ms-CurrentIBSegmentDisplayView-NoAdditionalSegments{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:"},{theme:"smallFontWeight",defaultValue:"400"},{rawString:";color:"},{theme:"green",defaultValue:"#107c10"},{rawString:";box-sizing:border-box;box-shadow:none;margin:0;padding:0}.ms-CompatibleIBSegmentElement-Messagebar{height:32px;font-size:12px;margin-top:8px;margin-bottom:8px;line-height:16px;width:572px}.ms-CompatibleIBSegmentDropdown-Header{width:572px}[dir=ltr] .ms-CompatibleIBSegmentDropdown-Header{margin-left:-8px}[dir=rtl] .ms-CompatibleIBSegmentDropdown-Header{margin-right:-8px}"}]);const S=function(e){function t(t){var n=e.call(this,t)||this;return n._dropDownIdRemovePostfix="-remove",n._disableUsageOfSameKeyInDropdownElementsKillSwitchActivated=function(){return p.HW.isActivated("eab0c779-cd03-4ff8-b540-42a696a06cd5","05/11/2023","Disable usage of same key")},n._onRemoveDropdownElement=function(e){n.props.onRemoveDropdown&&(n._disableUsageOfSameKeyInDropdownElementsKillSwitchActivated()?n.props.onRemoveDropdown(e.currentTarget.id):n.props.onRemoveDropdown(e.currentTarget.id.substring(0,e.currentTarget.id.length-n._dropDownIdRemovePostfix.length)))},n._onDropdownChange=function(e,t){n.props.onDropdownChange&&n.props.onDropdownChange(t.key.toString(),e.target.id)},n._onAddAdditionalDropdown=function(e){n.props.additionalIBSegmentDropdownPairs.forEach(function(e){e.isIBSegmentDropdownPairDisabled=!0}),n.setState({isAddingSegment:!0}),n.props.onAddAdditionalDropdown&&n.props.onAddAdditionalDropdown()},n._getAdditionalTitleString=function(){return n._isSetIBModeInfoBarrierFlightEnabled&&n.props.isHostSiteAdmin?b.e:n._isShowEditPanelInfoBarrierFlightEnabled&&n.props.isHostSiteAdmin?b.f:b.g},n._getAriaDescriptionForRemoveButton=function(e,t){if(n._isShowEditPanelInfoBarrierFlightEnabled){var a=b.p;return e.map(function(e){e.key===t&&(a=a+" "+e.text)}),a}},n.state={isAddingSegment:!1},n._isShowEditPanelInfoBarrierFlightEnabled=p.tH.isFeatureEnabled({ODB:1975}),n._isSetIBModeInfoBarrierFlightEnabled=p.tH.isFeatureEnabled({ODB:60354}),n}return(0,a.XJ)(t,e),t.prototype.componentDidUpdate=function(e){this.props.additionalIBSegmentDropdownPairs.length!==e.additionalIBSegmentDropdownPairs.length&&this.setState({isAddingSegment:!1})},t.prototype.render=function(){var e=this,t=this.props,n=t.additionalIBSegmentDropdownPairs,i=t.errorString,o=t.areAllSelected,s=t.noAdditionalSegmentsString,l=n.map(function(t,i){return r.createElement("div",{key:t.key,id:t.key+"-parent",className:"ms-CompatibleIBSegmentElement-DropdownContainer",tabIndex:-1},r.createElement(d.AHK,{"aria-label":b.d,options:e._isSetIBModeInfoBarrierFlightEnabled&&e.props.isHostSiteAdmin?(0,a.AE)([{key:"Header",text:b.k,itemType:d.ZOU.Header}],t.options,!0):t.options,selectedKey:t.selectedKey,placeHolder:b.d,id:t.key,onRenderOption:e._isSetIBModeInfoBarrierFlightEnabled&&e.props.isHostSiteAdmin?e._renderOption:void 0,className:"ms-CompatibleIBSegmentElement-Dropdown",onChange:e._onDropdownChange,disabled:e._isSetIBModeInfoBarrierFlightEnabled&&e.props.disableSegmentDropdown||i<n.length-1||t.isIBSegmentDropdownPairDisabled}),r.createElement(c.hYu,{allowDisabledFocus:!0,key:t.key,iconProps:{iconName:"Cancel"},title:"Remove",ariaLabel:b.q,ariaDescription:e._getAriaDescriptionForRemoveButton(t.options,t.selectedKey),id:e._disableUsageOfSameKeyInDropdownElementsKillSwitchActivated()?t.key:"".concat(t.key).concat(e._dropDownIdRemovePostfix),className:"ms-CompatibleIBSegmentElement-DropdownRemove",onClick:e._onRemoveDropdownElement,disabled:e._isSetIBModeInfoBarrierFlightEnabled&&e.props.disableSegmentDropdown||!t.selectedKey}))}),u=this._isSetIBModeInfoBarrierFlightEnabled&&this.props.isHostSiteAdmin&&(!l||0===l.length||1===l.length&&!l[0].props.children[0].props.selectedKey);return this.props.isLoading?r.createElement(c.tu6,null):r.createElement(r.Fragment,null,r.createElement("div",{"aria-label":this._getAdditionalTitleString(),role:"group",className:this._isSetIBModeInfoBarrierFlightEnabled?"ms-IBMode-SegmentTitle":"ms-CurrentIBSegmentDisplayView-additionalSectionTitle"},this._getAdditionalTitleString()),this._isSetIBModeInfoBarrierFlightEnabled&&this.props.isHostSiteAdmin&&u&&r.createElement(d.usJ,{className:"ms-CompatibleIBSegmentElement-Messagebar",messageBarType:d.$ep.info},b.b),this._isSetIBModeInfoBarrierFlightEnabled&&this.props.isHostSiteAdmin&&this.props.ibMode===D&&r.createElement("div",{className:"ms-Implicit-SegmentDescription"},b.n),l,s||this.props.disableSegmentDropdown?null:this.state.isAddingSegment?r.createElement(c.tu6,null):r.createElement("div",null,r.createElement(c.PRY,{allowDisabledFocus:!0,iconProps:{iconName:"Add"},onClick:this._onAddAdditionalDropdown,disabled:!o},b.a)),i?r.createElement("div",{className:"ms-CurrentIBSegmentDisplayView-ErrorMessage","data-automationid":"CurrentIBSegmentDisplayView-ErrorMessage"},i):null,s?r.createElement("div",{className:"ms-CurrentIBSegmentDisplayView-NoAdditionalSegments","data-automationid":"CurrentIBSegmentDisplayView-NoAdditionalSegments"},s):null,this.props.isSaving?r.createElement(c.tu6,null):null)},t.prototype._renderOption=function(e){return e.itemType===d.ZOU.Header?r.createElement(d.usJ,{className:"ms-CompatibleIBSegmentDropdown-Header",messageBarType:d.$ep.info,ariaLabel:e.text},e.text):r.createElement("div",null,e.text)},t}(d.oKI);var D="Implicit",I=function(e){function t(t){var n=e.call(this,t)||this;return n._createDropdownOptions=function(e){return e.map(function(e){return{key:e.objectId,text:e.displayName}})},n._removeDropdownOption=function(e){var t,a,i=n.state.additionalIBSegmentDropdownPairs,r=!0;if(i=i.filter(function(n){return n.isIBSegmentDropdownPairDisabled||(a=n),n.key!==e?(n.selectedKey&&n.selectedKey.length>0||(r=!1),!0):(n.selectedKey&&n.selectedKey.length>0&&n.options.some(function(e){return e.key===n.selectedKey&&(t=e,!0)}),!1)}),a&&t){var o=n._getCurrentIBSegments().filter(function(e){return e!==t.key&&e!==a.selectedKey});(n.props.isHostSiteAdmin?n._ibSegmentDatasource.getTenantAllOrCompatibleIBSegments(o):n._ibSegmentDatasource.getCompatibleSegments(o)).then(function(e){a.options=n._createDropdownOptions(e),n.setState({additionalIBSegmentDropdownPairs:i})})}n.setState({additionalIBSegmentDropdownPairs:i,areAllSelected:r,noAdditionalSegmentsString:""},function(){if(n._validateAndEnableDisableSaveButtonForSPAC(),!p.HW.isActivated("AA3645AE-B971-446B-93FD-BCD469EACC2A","01/28/2021","focus the active dropdown")&&a){var e=document.getElementById(a.key+"-parent");e&&e.focus()}})},n._dropdownChange=function(e,t){var i=n.state.additionalIBSegmentDropdownPairs,r=!0;i=i.map(function(n){return n.key===t?(0,a.W_)((0,a.W_)({},n),{selectedKey:e}):(n.selectedKey&&n.selectedKey.length>0||(r=!1),n)}),n.setState({additionalIBSegmentDropdownPairs:i,areAllSelected:r},function(){n._validateAndEnableDisableSaveButtonForSPAC()})},n._addAdditionalDropdown=function(){if(n.state.areAllSelected){var e=n._getCurrentIBSegments();if(n.props.isHostSiteAdmin){var t=n._ibSegmentDatasource.getTenantAllOrCompatibleIBSegments(e);n._setAdditionalIBSegmentDropdownPairsFromPromise(t,!0)}else t=n._ibSegmentDatasource.getCompatibleSegments(e),n._setAdditionalIBSegmentDropdownPairsFromPromise(t,!0)}else n.setState({errorString:b.c})},n._setAdditionalIBSegmentDropdownPairsFromPromise=function(e,t){e.then(function(e){if(e&&e.length>0){var i={options:n._createDropdownOptions(e),key:y.a.generate()};n.setState({additionalIBSegmentDropdownPairs:(0,a.AE)((0,a.AE)([],n.state.additionalIBSegmentDropdownPairs,!0),[i],!1),isLoading:!1,areAllSelected:!1,noAdditionalSegmentsString:""},function(){if(!p.HW.isActivated("AA3645AE-B971-446B-93FD-BCD469EACC2A","01/28/2021","focus the active dropdown")&&t){var e=document.getElementById(i.key+"-parent");e&&e.focus()}})}else n.setState({noAdditionalSegmentsString:b.o,areAllSelected:!1,isLoading:!1},function(){if(!p.HW.isActivated("AA3645AE-B971-446B-93FD-BCD469EACC2A","01/28/2021","focus the active dropdown")&&t){var e=document.querySelector(".ms-CurrentIBSegmentDisplayView-NoAdditionalSegments");e&&e.focus()}})}).catch(function(e){n.setState({errorString:n._getErrorString(e),isLoading:!1})})},n._saveIBSegments=function(){var e=n._getCurrentIBSegments();n.setState({additionalIBSegmentDropdownPairs:n.state.additionalIBSegmentDropdownPairs.map(function(e){return e.isIBSegmentDropdownPairDisabled=!0,e})}),n.props.isHostSiteAdmin&&n.props.onIBSegmentsSaved?n.props.onIBSegmentsSaved(e):e.length!==n.props.pageContext.IBSegments.length?n._ibSegmentDatasource.setIBSegments(e).then(function(){n.setState({isSaving:!1}),n.props.onIBSegmentsSaved&&n.props.onIBSegmentsSaved(e)}).catch(function(e){n.setState({errorString:n._getErrorString(e),isSaving:!1})}):n.props.onIBSegmentsSaved&&n.props.onIBSegmentsSaved(e)},n._getCurrentIBSegments=function(){var e=[];return n.props.isHostSiteAdmin||(e=(0,a.AE)([],n.props.pageContext.IBSegments,!0)),n.state.additionalIBSegmentDropdownPairs.forEach(function(t){t.selectedKey&&t.selectedKey.length>0&&e.indexOf(t.selectedKey)<0&&e.push(t.selectedKey)}),e},n._getIBSegmentsFromIBSegmentLabelMap=function(){return n.props.pageContext.IBSegments&&0!==n.props.pageContext.IBSegments.length?Object.keys(n.props.ibSegmentLabelMap).filter(function(e){return n.props.pageContext.IBSegments.indexOf(e)>-1}).map(function(e){return{objectId:e,displayName:n.props.ibSegmentLabelMap[e]}}):Object.keys(n.props.ibSegmentLabelMap).map(function(e){return{objectId:e,displayName:n.props.ibSegmentLabelMap[e]}})},n._validateAndEnableDisableSaveButtonForSPAC=function(){if(n.props.isHostSiteAdmin&&n._isShowEditPanelInfoBarrierFlightEnabled){var e=n.state.additionalIBSegmentDropdownPairs,t=n.props.pageContext.IBSegments;e.length===t.length&&t.every(function(t){return e.find(function(e){return e.selectedKey===t})})?n.props.disableSaveButtonForAdminSite&&n._isSaveButtonForAdminSiteEnabled&&(n.props.disableSaveButtonForAdminSite(),n._isSaveButtonForAdminSiteEnabled=!1):n._isSetIBModeInfoBarrierFlightEnabled&&0===n._getCurrentIBSegments().length&&n.props.disableSaveButtonForAdminSite?(n._isSaveButtonForAdminSiteEnabled=!1,n.props.disableSaveButtonForAdminSite()):n.props.enableSaveButtonForAdminSite&&!n._isSaveButtonForAdminSiteEnabled&&(n.props.enableSaveButtonForAdminSite(),n._isSaveButtonForAdminSiteEnabled=!0)}},n.state={errorString:"",isLoading:!0,additionalIBSegmentDropdownPairs:[],areAllSelected:!1,noAdditionalSegmentsString:"",isSaving:!1},n._isShowEditPanelInfoBarrierFlightEnabled=p.tH.isFeatureEnabled({ODB:1975}),n._isSetIBModeInfoBarrierFlightEnabled=p.tH.isFeatureEnabled({ODB:60354}),n._isSaveButtonForAdminSiteEnabled=!1,n}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){if(this._isShowEditPanelInfoBarrierFlightEnabled&&this.props.isHostSiteAdmin||this.props.pageContext.IBSegments&&this.props.pageContext.IBSegments.length>0)if(this._ibSegmentDatasource=new h.a(this.props.pageContext),this._isShowEditPanelInfoBarrierFlightEnabled&&this.props.isHostSiteAdmin)this._setInitialIBSegmentDropdownPairsForAdmin();else{var e=this._ibSegmentDatasource.getCompatibleSegments(this.props.pageContext.IBSegments);this._setAdditionalIBSegmentDropdownPairsFromPromise(e,!1)}},t.prototype._setInitialIBSegmentDropdownPairsForAdmin=function(){var e=this;if(this.props.ibSegmentLabelMap)try{var t=this._getIBSegmentsFromIBSegmentLabelMap(),n=[];if(0===this.props.pageContext.IBSegments.length){var i=this._createDropdownOptions(t);n.push({options:i,key:y.a.generate()})}else t.map(function(t){var a=e._createDropdownOptions([t]);n.push({options:a,key:t.objectId,selectedKey:t.objectId,isIBSegmentDropdownPairDisabled:!0})});this.setState({additionalIBSegmentDropdownPairs:(0,a.AE)([],n,!0),isLoading:!1,areAllSelected:this.props.pageContext.IBSegments.length>0,noAdditionalSegmentsString:""})}catch(e){this.setState({errorString:b.j,isLoading:!1})}else if(0===this.props.pageContext.IBSegments.length){var r=this._ibSegmentDatasource.getTenantAllOrCompatibleIBSegments([]);this._setAdditionalIBSegmentDropdownPairsFromPromise(r,!1)}else this._ibSegmentDatasource.getIBSegmentLabels().then(function(t){if(t&&t.length>0){var n=[];t.map(function(t){var a=e._createDropdownOptions([t]);n.push({options:a,key:t.objectId,selectedKey:t.objectId,isIBSegmentDropdownPairDisabled:!0})}),e.setState({additionalIBSegmentDropdownPairs:(0,a.AE)([],n,!0),isLoading:!1,areAllSelected:!0,noAdditionalSegmentsString:""})}}).catch(function(t){e.setState({errorString:e._getErrorString(t),isLoading:!1})})},t.prototype.render=function(){return this._isShowEditPanelInfoBarrierFlightEnabled&&this.props.isHostSiteAdmin||this.props.pageContext.IBSegments&&this.props.pageContext.IBSegments.length>0?(this._isSetIBModeInfoBarrierFlightEnabled&&0===this._getCurrentIBSegments().length&&this.props.disableSaveButtonForAdminSite&&(this._isSaveButtonForAdminSiteEnabled=!1,this.props.disableSaveButtonForAdminSite()),r.createElement(S,(0,a.W_)({},this.state,{onRemoveDropdown:this._removeDropdownOption,onDropdownChange:this._dropdownChange,onAddAdditionalDropdown:this._addAdditionalDropdown,isSaving:this.state.isSaving,isHostSiteAdmin:this._isShowEditPanelInfoBarrierFlightEnabled&&this.props.isHostSiteAdmin,disableSegmentDropdown:this.props.ibMode===D,ibMode:this.props.ibMode}))):null},t.prototype.componentDidUpdate=function(e){this.props.saveIBSegmentsClicked&&!e.saveIBSegmentsClicked&&(this.setState({isSaving:!0}),this._saveIBSegments()),this._isShowEditPanelInfoBarrierFlightEnabled&&this.props.isHostSiteAdmin&&!this.props.saveIBSegmentsClicked&&e.saveIBSegmentsClicked&&this.setState({isSaving:!1})},t.prototype._getErrorString=function(e){return e&&e.message?e.message.value||e.message:b.j},t}(d.oKI),x=n("fui.core_870"),C=n(2875),O=n(2820),w=n(96),E=n(2819),A=n(2874);const L=(0,n(9).a)(function(){return(0,a.Zd)(void 0,void 0,void 0,function(){return(0,a.qr)(this,function(e){switch(e.label){case 0:return[4,n.e(1524).then(n.bind(n,2917))];case 1:return[2,e.sent()]}})})});var k={ODB:60328},M={ODB:60513},P={ODB:60625},T={ODB:1747},U=["image/png","image/jpeg","image/gif","image/bmp","image/tiff"],F=4194304,H="private",R="public",N="unspecified",B=p.HW.isActivated("B393D5C5-14D9-4978-BBE6-4462CAFBC1C5","04/03/2024","Apply background color to Site Settings Panel Footer"),j=B?void 0:(0,i.Dn)(),V=!B&&j?{footer:{backgroundColor:j.semanticColors.bodyBackground,borderTopColor:j.semanticColors.bodyDivider}}:null,z=0,G=function(e){function t(n){var i=e.call(this,n)||this;return i._nameText=(0,r.createRef)(),i._descriptionText=(0,r.createRef)(),i._privacyDropdown=(0,r.createRef)(),i._classificationDropdown=(0,r.createRef)(),i._imageBrowser=(0,r.createRef)(),i._joinHubSiteDropdown=(0,r.createRef)(),i._onRenderMUIEditingInfoLabel=function(e,t){return function(n,a){var o,d,l,u,f,m,_;if(null===(o=i.props.pageContext)||void 0===o?void 0:o.webLanguage)return _=!(null===(d=i._muiUtilities)||void 0===d?void 0:d.multilingualFeatureOn)&&(null===(l=i._muiUtilities)||void 0===l?void 0:l.shouldDisplayNameLanguage(t))?p.OO(s.ib,E.a.getResourceByCode(t),e?s._:s.Y):t===(null===(u=i.props.pageContext)||void 0===u?void 0:u.webLanguage)&&t!==(null===(f=i.props.pageContext)||void 0===f?void 0:f.currentLanguage)?p.OO(s.rb,E.a.getResourceByCode(null===(m=i.props.pageContext)||void 0===m?void 0:m.webLanguage),e?s.nb:s.tb):p.OO(s.ab,e?s.nb:s.tb),r.createElement("div",null,a(n),r.createElement(c.qxl,{content:r.createElement("span",null,_)},r.createElement(c.hYu,{className:"ms-MUIEditing-InfoIcon",iconProps:{iconName:"Info"},ariaDescription:i._shouldAddAriaDescriptionToTooltip?_:void 0})))}},i._onMakeHubCheckboxChecked=function(e,t){f.Engagement.logData({name:"SiteSettingsPanel.MakeHub.Click",isIntentional:!0}),i.setState({makeHubCheckboxChecked:t,hubDisplayType:t?o.a.hidden:i.props.hubDisplayType})},i._onHubPermSyncToggleChange=function(e,t){i.setState({hubPermSyncCheckboxChecked:t})},i._onDeleteConfirmationCheckboxChange=function(e,t){i.setState({deleteConfirmationCheckboxChecked:t})},i._onDeleteConfirmationDialogAccept=function(){f.Engagement.logData({name:"SiteSettingsPanel.DeleteGroupConfirmation.Click"}),i.setState({showDeletingSpinner:!0}),i.props.onDeleteGroup&&i.props.onDeleteGroup()},i._onDeleteConfirmationDialogCancel=function(){i.setState({showDeleteConfirmationDialog:!1}),i.props.onDeleteGroupDismiss&&i.props.onDeleteGroupDismiss()},i._onDescriptionChange=function(e,t){t!==i.state.description&&i.setState({description:t})},i._onDeleteGroupClick=function(){f.Engagement.logData({name:"SiteSettingsPanel.DeleteGroup.Click"}),i.props.deleteSiteFallbackUrl?window.location.href=i.props.deleteSiteFallbackUrl:i.setState({showDeleteConfirmationDialog:!0,showDeletingSpinner:!1,deleteConfirmationCheckboxChecked:!1})},i._onSaveClick=function(e){var t=i,n=t.props,a=t.state,r=i._shouldPreserveSiteLogoWhenNoImageBrowser?i._imageBrowser.current||void 0:i._imageBrowser.current;if(f.Engagement.logData({name:"SiteSettingsPanel.Save.Click"}),i.setState({showSavingSpinner:!0,saveButtonDisabled:!0}),n.onSave){var o=i.state.name?i.state.name.trim():"",s=i.state.description?i.state.description.trim():"";n.onSave(n.groupNameWithPrefixAndSuffix?n.groupNameWithPrefixAndSuffix:o,s,i._findDropdownOption(n.privacyOptions,a.privacySelectedKey),i._findDropdownOption(n.classificationOptions,a.classificationSelectedKey),r&&r.getImageFile(),i._findDropdownOption(n.joinHubSiteOptions,a.joinHubSiteSelectedKey),a.makeHubCheckboxChecked,!i._hidePermSyncControl&&a.hubPermSyncCheckboxChecked,i.state.titleTranslations,i.state.descriptionTranslations)}},i._onCancelClick=function(e){f.Engagement.logData({name:"SiteSettingsPanel.Cancel.Click"}),i._closePanel()},i._onNameTextChanged=function(e,t){var n=i._nameText.current,a=t?t.trim():"";if(i.state.name!==t&&i.setState({name:t}),i.props.onValidateGroupName){var r=new m.a(i);i.state.saveButtonDisabled||i.setState({saveButtonDisabled:!0}),r.setTimeout(function(){var e=this,t=n&&n.value?n.value.trim():"";t===a&&this.props.onValidateGroupName(t).then(function(){e.setState({saveButtonDisabled:e.props.isGroupNameValidationInProgress||!t||Boolean(e.props.groupNameValidationError)})})}.bind(i),500)}else i.setState({saveButtonDisabled:!a})},i._onClassificationOptionChanged=function(e){i.setState({classificationSelectedKey:e.key,errorMessage:void 0})},i._onClassificationOptionChangedPrivacy=function(e){i._onClassificationOptionChanged(e);var n=t._getDerivedPrivacyStateForClassification(i.props,e.key.toString());i.setState((0,a.W_)({},n))},i._onJoinHubSiteOptionChanged=function(e){i.setState({joinHubSiteSelectedKey:e.key,makeHubDisplayType:e.key?o.a.hidden:i.props.makeHubDisplayType})},i._onCancelPendingHubSiteJoinClicked=function(){i.props.onCancelPendingHubSiteJoinClicked&&i.props.onCancelPendingHubSiteJoinClicked()},i._onPrivacyOptionChanged=function(e){i.setState({privacySelectedKey:e.key})},i._closePanel=function(){i.props.onDismiss&&i.props.onDismiss()},i._focusOnTranslationLink=function(e){if(i._shouldRestoreFocusWhenExitMUIEditing)switch(e){case o.b.Description:i._translateSiteDescriptionLink&&i._translateSiteDescriptionLink.current&&i._translateSiteDescriptionLink.current.focus();break;case o.b.Name:i._translateSiteNameLink&&i._translateSiteNameLink.current&&i._translateSiteNameLink.current.focus()}},i._renderLanguageEditingComponent=function(e){var t=e===O.a.SiteTitle,n=i.state.name,a=i.state.description;return r.createElement("div",{className:"ms-SiteSettingsPanel-LanguagePanel"},r.createElement(C.a,{dataSourceType:e,pageContext:i.props.pageContext,onSaveClick:i._onTranslationSaveClick(e),onCancelClick:i._onTranslatePanelDismiss,multilineInput:!t,translations:t?i.state.titleTranslations:i.state.descriptionTranslations,currentDisplay:t?n:a,currentLCID:t?i.state.nameCurrentLCID:i.state.descriptionCurrentLCID,defaultLanguageIsOptional:!t}))},i._onTranslationSaveClick=function(e){return function(t){var n=e===O.a.SiteTitle,a=e===O.a.SiteDescription,r=i._getDisplayLanguage(t),s=i.state.translatePanelType;i.setState({name:n?r.value:i.state.name,nameCurrentLCID:n?r.code:i.state.nameCurrentLCID,description:a?r.value:i.state.description,descriptionCurrentLCID:a?r.code:i.state.descriptionCurrentLCID,translatePanelType:o.b.None,titleTranslations:n?t:i.state.titleTranslations,descriptionTranslations:a?t:i.state.descriptionTranslations},function(){return i._focusOnTranslationLink(s)});var c=i.state.titleTranslations?i.state.titleTranslations.filter(function(e){return e.value&&e.value.length>0}):[];n?f.Engagement.logData({name:"SiteSettingsPanel.SiteTitleTranslationsPanelOK.Click",extraData:{translatedItems:c.length}}):f.Engagement.logData({name:"SiteSettingsPanel.SiteDescriptionTranslationsPanelOK.Click",extraData:{translatedItems:c.length}})}},i._getDisplayLanguage=function(e){var t=e.filter(function(e){var t;return e.code===(null===(t=i.props.pageContext)||void 0===t?void 0:t.currentLanguage)}),n=e.filter(function(e){var t;return e.code===(null===(t=i.props.pageContext)||void 0===t?void 0:t.webLanguage)});return 1===t.length&&t[0].value.trim().length>0?t[0]:n[0]},i._handleOpenTranslatePanel=function(e){return function(){switch(i.setState({translatePanelType:e}),e){case o.b.Name:f.Engagement.logData({name:"SiteSettingsPanel.SiteTitleTranslationsPanelOpen.Click"});break;case o.b.Description:f.Engagement.logData({name:"SiteSettingsPanel.SiteDescriptionTranslationsPanelOpen.Click"})}}},i._onTranslatePanelDismiss=function(){var e=i.state.translatePanelType;i.setState({translatePanelType:o.b.None},function(){i._focusOnTranslationLink(e)})},i._onClassificationDescriptionsClick=function(){f.Engagement.logData({name:"SiteSettingsPanel.ClassificationDescriptions.Click"}),i.setState({showClassificationDescriptions:!0})},i._onClassificationDescriptionsDismiss=function(){i.setState({showClassificationDescriptions:!1})},i._onAddIBSegmentLinkClick=function(){i.setState({showAddIBSegments:!0})},i._onAddIBSegmentsDismiss=function(){i.setState({showAddIBSegments:!1,isSavingIBSegments:!1})},i._onSaveClickIBSegment=function(){i.setState({isSavingIBSegments:!0})},i._onAddIBSegmentsSaved=function(e){i.props.pageContext.IBSegments=e,i.setState({showAddIBSegments:!1,isSavingIBSegments:!1})},i._onShowTemplateHistory=function(){i.setState({showTemplateHistory:!0})},i._renderTemplateHistoryPanel=function(){var e=i.props.siteDesignRuns,t=i.state.showTemplateHistory,n={siteDesignRuns:e,isOpen:t,onDismiss:function(){return i.setState({showTemplateHistory:!1})},pageContext:i.props.pageContext,closeSettingsPanel:i._closePanel},o=r.createElement(L,(0,a.W_)({},n));return t&&(null==e?void 0:e.length)>0?o:null},i.state={privacySelectedKey:void 0,classificationSelectedKey:void 0,joinHubSiteSelectedKey:void 0,showClassificationDescriptions:!1,makeHubCheckboxChecked:n.isHubSite,hubDisplayType:n.hubDisplayType,makeHubDisplayType:n.makeHubDisplayType,isPrivacyDisabled:!1,showAddIBSegments:!1,isSavingIBSegments:!1,translatePanelType:o.b.None,name:void 0,description:void 0,nameCurrentLCID:i.props.nameCurrentLCID,descriptionCurrentLCID:i.props.descriptionCurrentLCID,showTemplateHistory:!1},i._classificationDropdownId="SiteClassificationDropdown"+z++,i._isRootWebContext=(0,w.m)(i.props.pageContext),i._isTeamsChannelSite=i.props.pageContext.isTeamsChannelSite,f.Engagement.logData({name:"SiteSettingsPanel.Opened"}),i}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){this.props.pageContext&&(this._muiUtilities=new A.a(this.props.pageContext),this._shouldDisplayMUIEditing&&(this._translateSiteNameLink=r.createRef(),this._translateSiteDescriptionLink=r.createRef())),this._shouldAddAriaDescriptionToTooltip=!p.HW.isActivated("614836a9-c230-4875-9492-18118e29d231","4/22/2022","Add aria description to MUI Editing Tooltip"),this._shouldRestoreFocusWhenExitMUIEditing=!p.HW.isActivated("43d939e7-d76e-4fef-a055-1b7c3d56bee5","7/29/2021","restore focus to link after existing MUI Editing"),this._shouldPreserveSiteLogoWhenNoImageBrowser=!p.HW.isActivated("bc414e2c-fe90-43b0-baea-1523d6866603","1/03/2023","preserve site logo when there is no UI to set one")},t.getDerivedStateFromProps=function(e,n){var i={};if((e.errorMessage||e.groupDeleteErrorMessage)&&(i.showSavingSpinner=!1,i.showDeletingSpinner=!1,i.saveButtonDisabled=!1,i.errorMessage=e.errorMessage),!e.showLoadingSpinner){if(void 0===n.privacySelectedKey&&(i.privacySelectedKey=e.privacySelectedKey),void 0===n.classificationSelectedKey&&(i.classificationSelectedKey=e.classificationSelectedKey,e.useSensitivityLabels)){var r=t._getDerivedPrivacyStateForClassification(e,e.classificationSelectedKey);i=(0,a.W_)((0,a.W_)({},i),r)}e.joinHubSiteSelectedKey!==n.lastJoinHubSiteSelectedKeyProp&&(i.joinHubSiteSelectedKey=e.joinHubSiteSelectedKey,i.lastJoinHubSiteSelectedKeyProp=e.joinHubSiteSelectedKey)}return e.hubDisplayType!==n.hubDisplayType&&(i.hubDisplayType=e.hubDisplayType),e.makeHubDisplayType!==n.makeHubDisplayType&&(i.makeHubDisplayType=e.makeHubDisplayType),void 0===n.hubPermSyncCheckboxChecked&&(i.hubPermSyncCheckboxChecked=e.isHubPermSyncEnabled),e.name!==n.name&&""!==e.name&&void 0===n.name&&(i.name=e.name),e.description!==n.description&&""!==e.description&&void 0===n.description&&(i.description=e.description),e.nameCurrentLCID!==n.nameCurrentLCID&&e.nameCurrentLCID&&void 0===n.nameCurrentLCID&&(i.nameCurrentLCID=e.nameCurrentLCID),e.descriptionCurrentLCID!==n.descriptionCurrentLCID&&e.descriptionCurrentLCID&&void 0===n.descriptionCurrentLCID&&(i.descriptionCurrentLCID=e.descriptionCurrentLCID),i},t.prototype.render=function(){var e,t=this,n=this,l=n.props,u=n.props,f=u.classificationOptions,m=u.classificationDescriptions,h=u.makeHubDisplayType,b=u.privacyOptions,g=u.groupNameValidationError,y=u.groupNameWithPrefixAndSuffix,S=u.isGroupNameValidationInProgress,D=u.useSensitivityLabels,I=u.siteDesignRuns,C=n.state,w=s.eb;if(l.showLoadingSpinner)e=r.createElement(c.tu6,null);else if(C.showClassificationDescriptions)e=this._renderClassificationDescriptions(),w=D?s.k:s.j;else if(C.showAddIBSegments)w=s.d,e=this._renderAddIBSegments();else if(C.translatePanelType!==o.b.None){var A=C.translatePanelType===o.b.Name;w=A?s.nb:s.tb,e=this._renderLanguageEditingComponent(A?O.a.SiteTitle:O.a.SiteDescription)}else{var L=this.state.nameCurrentLCID&&this._shouldDisplayNameLanguage(this.state.nameCurrentLCID)?p.OO(s.R,E.a.getResourceByCode(this.state.nameCurrentLCID)):s.S,k=this.state.descriptionCurrentLCID&&this._shouldDisplayNameLanguage(this.state.descriptionCurrentLCID)?p.OO(s.w,E.a.getResourceByCode(this.state.descriptionCurrentLCID)):s.x,M=p.tH.isFeatureEnabled(P)&&(null==I?void 0:I.length)>0,U=p.tH.isFeatureEnabled(T);e=r.createElement("div",{className:"ms-SiteSettingsPanel-content"},this._renderSiteLogo(),this._isRootWebContext&&this._renderUsageLink(),r.createElement("div",{className:"ms-SiteSettingsPanel-SiteInfo","data-automationid":"SiteSettingsPanelSiteInfo"},r.createElement(d.FuC,{className:(0,i.N0)("ms-SiteSettingsPanel-nameText",{"prefix-suffix":!!y},{"ms-SiteSettingsPanel-nameText-translateLink":this._shouldDisplayMUIEditing}),componentRef:this._nameText,label:L,value:this.state.name,onChange:this._onNameTextChanged,errorMessage:S?null:g,required:!0,"data-automationid":"SiteSettingsPanelNameText",onRenderLabel:this._shouldDisplayNameLanguage(this.state.nameCurrentLCID)?this._onRenderMUIEditingInfoLabel(!0,this.state.nameCurrentLCID):void 0,styles:this._shouldDisplayNameLanguage(this.state.nameCurrentLCID)?{subComponentStyles:{label:{root:{":after":{paddingRight:0,paddingLeft:0},display:"inline-block"}}}}:void 0}),this._shouldDisplayMUIEditing&&r.createElement(c.NG4,{componentRef:this._translateSiteNameLink,onClick:this._handleOpenTranslatePanel(o.b.Name),className:"ms-SiteSettingsPanel-translationButton","aria-label":s.nb},s.nb),S?r.createElement(c.tu6,{label:s.sb}):y?r.createElement("span",{className:"ms-SiteSettingsPanel-groupNameWithPrefixAndSuffix"},y):null,r.createElement(d.FuC,{componentRef:this._descriptionText,label:k,multiline:!0,onChange:this._onDescriptionChange,value:this.state.description,resizable:!1,"data-automationid":"SiteSettingsPanelDescriptionText",className:(0,i.N0)("ms-SiteSettingsPanel-siteDescription",{"ms-SiteSettingsPanel-siteDescription-translateLink":this._shouldDisplayMUIEditing}),onRenderLabel:this._shouldDisplayNameLanguage(this.state.descriptionCurrentLCID)?this._onRenderMUIEditingInfoLabel(!1,this.state.descriptionCurrentLCID):void 0,styles:this._shouldDisplayNameLanguage(this.state.descriptionCurrentLCID)?{subComponentStyles:{label:{root:{display:"inline-block"}}}}:void 0}),this._shouldDisplayMUIEditing&&r.createElement(c.NG4,{componentRef:this._translateSiteDescriptionLink,onClick:this._handleOpenTranslatePanel(o.b.Description),className:"ms-SiteSettingsPanel-translationButton","aria-label":s.tb},s.tb),this._isRootWebContext&&this._renderJoinHubDropdown(),r.createElement(_.b,(0,a.W_)({},l.flowWidgetPanelProps)),this._isRootWebContext&&r.createElement(r.Fragment,null,h===o.a.enabled?r.createElement("div",{className:"ms-SiteSettingsPanel-makeHubCheckbox"},r.createElement(c.mSm,{label:s.P,checked:C.makeHubCheckboxChecked,onChange:this._onMakeHubCheckboxChecked,disabled:!!C.joinHubSiteSelectedKey})):null),this._isRootWebContext&&f&&f.length?r.createElement("div",{className:"ms-SiteSettingsPanel-classification"},r.createElement(c.cbL,{className:"ms-Dropdown-label ms-SiteSettingsPanel-classificationDropDownLabel",htmlFor:this._classificationDropdownId},D?s.k:s.l),m&&m.length>0?r.createElement(c.NG4,{onClick:this._onClassificationDescriptionsClick,"data-automationid":"SiteSettingsPanelclassificationInfoIcon"},r.createElement(d.k45,{iconName:"Info",className:"ms-SiteSettingsPanel-classificationInfoIcon"})):null,r.createElement(d.AHK,{className:"ms-SiteSettingsPanel-ClassificationDropdown",componentRef:this._classificationDropdown,id:this._classificationDropdownId,options:f,selectedKey:C.classificationSelectedKey,onChanged:D?this._onClassificationOptionChangedPrivacy:this._onClassificationOptionChanged,disabled:this._isTeamsChannelSite})):null,this._isRootWebContext&&U&&(l.pageContext.isSharePointAdvancedManagementEnabled||l.isSiteAccessRestrictionEnabled)&&r.createElement("div",{className:"ms-SiteSettingsPanel-SiteAccessRestriction"},r.createElement(c.cbL,null,s.X),l.isSiteAccessRestrictionEnabled?l.pageContext.groupId?p.OO(s.W,l.restrictedSiteAccessGroups[0]):this._renderRestrictedSiteAccessSettingsForNonGroupSite():s.V),this._isRootWebContext&&b&&b.length?r.createElement(d.AHK,{className:"ms-SiteSettingsPanel-PrivacyDropdown",componentRef:this._privacyDropdown,label:s.T,options:b,selectedKey:C.privacySelectedKey,onChanged:this._onPrivacyOptionChanged,disabled:!!D&&C.isPrivacyDisabled}):null,M?r.createElement("div",{className:"ms-SiteSettingPanel-ViewTemplateHistory"},r.createElement(c.cbL,{className:"sp-SiteSettingsPanel-lastTemplateAppliedLabel","aria-label":s.N,id:"view-template-history-label"},s.N),r.createElement("div",{className:"ms-SiteSettingsPanel-LastTemplateApplied",id:"view-template-history-latest-site-design-title"},(null==I?void 0:I.length)&&I[0].siteDesignTitle),r.createElement("div",{className:"ms-SiteSettingsPanel-ViewTemplateHistoryLink"},r.createElement(c.NG4,{onClick:this._onShowTemplateHistory,id:"view-template-history-link","aria-label":s.db,"aria-labelledby":"view-template-history-label view-template-history-latest-site-design-title view-template-history-link",role:"link"},s.db)),this._renderTemplateHistoryPanel()):null,this._isRootWebContext&&this.props.pageContext.IBSegments&&this.props.pageContext.IBSegments.length>0&&r.createElement("div",{className:"ms-SiteSettingsPanel-IBSegmentsSection"},r.createElement("div",{className:"ms-SiteSettingsPanel-CurrentIBSegmentDisplay"},r.createElement(v,{pageContext:this.props.pageContext})," "),r.createElement("div",{className:"ms-SiteSettingsPanel-UsageLink"},r.createElement(c.qxl,{content:this.props.pageContext.isTeamsConnectedSite?s.Q:null},r.createElement(c.NG4,{onClick:this._onAddIBSegmentLinkClick,disabled:this.props.pageContext.isTeamsConnectedSite},s.e)))),C.errorMessage?r.createElement("div",{className:"ms-SiteSettingsPanel-ErrorMessage","data-automationid":"SiteSettingsPanelErrorMessage"},C.errorMessage):null,C.showSavingSpinner?r.createElement(c.tu6,{className:"ms-SiteSettingsPanel-savingSpinner"}):null,this._renderHelpTextFooter(),this._renderDeleteGroupLink()))}var F=(0,x.fsl)()?"Forward":"Back",H="ms-SiteSettingsPanel-BackIcon-RTL";return r.createElement(d.k8Z,{className:"ms-SiteSettingsPanel",isOpen:l.isPanelOpen,type:d.ecV.smallFixedFar,onDismiss:this._closePanel,isLightDismiss:!0,closeButtonAriaLabel:s.m,"aria-live":this._shouldDisplayMUIEditing?"polite":"off",headerText:C.showClassificationDescriptions||C.showAddIBSegments||C.translatePanelType!==o.b.None?null:w,onRenderNavigationContent:function(e,n){return C.showClassificationDescriptions?r.createElement("div",{className:"ms-SiteSettingsPanel-NavigationContent"},r.createElement(c.hYu,{iconProps:{iconName:F},className:H,onClick:C.showClassificationDescriptions?t._onClassificationDescriptionsDismiss:t._closePanel,ariaLabel:s.g}),r.createElement("p",{className:"ms-SiteSettingsPanel-Title"}," ",w),n(e)):C.showAddIBSegments?r.createElement("div",{className:"ms-SiteSettingsPanel-NavigationContent"},r.createElement(c.hYu,{iconProps:{iconName:F},className:H,onClick:t._onAddIBSegmentsDismiss,ariaLabel:s.g}),r.createElement("p",{className:"ms-SiteSettingsPanel-Title"}," ",w),n(e)):C.translatePanelType!==o.b.None?r.createElement(r.Fragment,null,r.createElement("div",{className:"ms-SiteSettingsPanel-NavigationContent ms-SiteSettingsPanel-NavigationContentTranslate"},r.createElement(c.hYu,{iconProps:{iconName:F},className:H,onClick:t._onTranslatePanelDismiss,ariaLabel:s.g}),r.createElement("p",{className:"ms-SiteSettingsPanel-Title"}," ",w),n(e)),r.createElement(c.cjF,null)):r.createElement("div",{className:"ms-SiteSettingsPanel-NavigationContentDismiss"}," ",n(e)," ")},onRenderFooterContent:function(e,n){return C.showClassificationDescriptions?r.createElement(c.rfU,{className:"ms-ClassificationDescriptions-dismissButton",onClick:t._onClassificationDescriptionsDismiss},s.i):C.showAddIBSegments?r.createElement("div",{className:"ms-SiteSettingsPanel-Buttons","data-automationid":"SiteSettingsPanelButtons"},r.createElement("span",{className:"ms-SiteSettingsPanelButton-container"},r.createElement(c.rfU,{className:"ms-SiteSettingsPanelButton-saveButton",disabled:C.saveButtonDisabled,onClick:t._onSaveClickIBSegment,"data-automationid":"SiteSettingsPanelSaveButtonIBSegment"},s.U)),r.createElement("span",{className:"ms-SiteSettingsPanelButton-container"},r.createElement(c.B0k,{className:"ms-SiteSettingsPanelButton-cancelButton",onClick:t._onAddIBSegmentsDismiss,"data-automationid":"SiteSettingsPanelCancelButtonIBSegment"},s.m))):C.translatePanelType===o.b.None?r.createElement(r.Fragment,null,!C.showClassificationDescriptions&&r.createElement("div",{className:"ms-SiteSettingsPanel-Buttons","data-automationid":"SiteSettingsPanelButtons"},r.createElement("span",{className:"ms-SiteSettingsPanelButton-container"},r.createElement(c.rfU,{className:"ms-SiteSettingsPanelButton-saveButton",disabled:C.saveButtonDisabled,onClick:t._onSaveClick,"data-automationid":"SiteSettingsPanelSaveButton"},s.U)),r.createElement("span",{className:"ms-SiteSettingsPanelButton-container"},r.createElement(c.B0k,{className:"ms-SiteSettingsPanelButton-cancelButton",onClick:t._onCancelClick,"data-automationid":"SiteSettingsPanelCancelButton"},s.m)))):void 0},styles:V},e,this._renderDeleteConfirmationDialog())},t.prototype._renderRestrictedSiteAccessSettingsForNonGroupSite=function(){var e=this.props.restrictedSiteAccessGroups.length,t=this.props.restrictedSiteAccessGroups;t.sort(function(e,t){return e.length-t.length});for(var n="",a=0,i=!1,o=0,s=t;o<s.length;o++){var d,l=s[o];if((d=a!==e-1?"".concat(n," ").concat(l,", "):"".concat(n," ").concat(l)).length>60){n="".concat(n),i=!0;break}n=d,a++}return r.createElement(r.Fragment,null,n,i&&r.createElement(c.qxl,{content:r.createElement("div",null,t.slice(a).join("\n"))},"+",e-a))},t.prototype._shouldDisplayNameLanguage=function(e){var t;return this.props.pageContext&&!this._isTitleOrDescriptionResourceManagedByGroup&&(null===(t=this._muiUtilities)||void 0===t?void 0:t.shouldDisplayNameLanguage(e))},Object.defineProperty(t.prototype,"_isTitleOrDescriptionResourceManagedByGroup",{get:function(){return p.HW.isActivated("d768e8e5-f40c-4050-8692-de348822b44e","4/21/2022","Allow MUI Streamlining for group site subwebs title and description")?!!this.props.pageContext.groupId:!this.props.pageContext||!!this.props.pageContext.groupId&&this.props.pageContext.siteAbsoluteUrl===this.props.pageContext.webAbsoluteUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_shouldDisplayMUIEditing",{get:function(){var e;return this.props.pageContext&&!this._isTitleOrDescriptionResourceManagedByGroup&&(null===(e=this._muiUtilities)||void 0===e?void 0:e.multilingualFeatureOn)},enumerable:!1,configurable:!0}),t._getDerivedPrivacyStateForClassification=function(e,t){var n={},a=e.classificationPrivacy;if(a.length>0&&t){var i=a.filter(function(e){return e.classificationTitle===t}).pop(),r=i?i.classificationPrivacy:void 0;if(r){var o;o=p.HW.isActivated("8770829e-3a57-4518-ac8b-d9ee1f50697c","10/02/2020","UnspecifiedPrivacyOption")?r.toLowerCase()===H?H:r.toLocaleLowerCase()===N&&e&&e.privacySelectedKey?e.privacySelectedKey:R:r.toLowerCase()===H?H:r.toLocaleLowerCase()===R?R:e&&t===e.classificationSelectedKey&&e.privacySelectedKey?e.privacySelectedKey:H;var s=r.toLowerCase()!==N;n.privacySelectedKey=o,n.isPrivacyDisabled=s}else n.isPrivacyDisabled=!1}return n},t.prototype._findDropdownOption=function(e,t){return e&&e.filter(function(e){return e.key===t})[0]},t.prototype._renderJoinHubDropdown=function(){var e;if(!(p.IT.isFeatureEnabled(k)&&(null===(e=this.props.pageContext)||void 0===e?void 0:e.isTeamsChannelSite)||this.props.isHubSite)){var t,n=this.props,a=this.state,i=n.hubDisplayType,l=n.joinHubSiteOptions,u=n.isHubOptionsReady,f=n.hubSites,m=a.joinHubSiteSelectedKey;if(!u)return r.createElement(c.tu6,{className:"ms-SiteSettingsPanel-hubLoadingSpinner"});if(f)for(var _ in f)if(f[_].id===m){t=f[_];break}this._hidePermSyncControl=!t||t&&!t.enablePermissionsSync,p.HW.isActivated("041f10a5-5c0e-420f-b564-a3d03baa36ae","05/18/2021","Site owner is now allowed to manage hub perm sync")&&(this._hidePermSyncControl=!this.props.pageContext.isSiteAdmin||this._hidePermSyncControl);var h=null;if(n.isHubSiteJoinPending)h=r.createElement("span",null,s.L,"  ",r.createElement(c.NG4,{onClick:this._onCancelPendingHubSiteJoinClicked},s.H));else if(n.joinHubSiteSelectedKey!==m)if(m){var b=this._findDropdownOption(l,m);h=r.createElement("span",null,s.M,!this._hidePermSyncControl&&r.createElement(r.Fragment,null," "+s.E+" ",r.createElement(c.NG4,{href:"https://go.microsoft.com/fwlink/?linkid=2133626"},s.a)),b.data&&b.data.requiresJoinApproval&&r.createElement("div",{style:{marginTop:20}},s.F))}else h=s.A;return r.createElement("div",{className:"ms-SiteSettingsPanel-joinHubSite"},r.createElement(d.AHK,{className:"ms-SiteSettingsPanel-joinHubSiteDropdown",componentRef:this._joinHubSiteDropdown,label:s.D,options:l,selectedKey:m,onChanged:this._onJoinHubSiteOptionChanged,disabled:!!a.makeHubCheckboxChecked||!!n.isHubSiteJoinPending||i===o.a.readOnly}),r.createElement("span",{className:"ms-SiteSettingsPanel-hubDropdownTip",role:"alert"},r.createElement("span",{key:m||"none"},h)),!this._hidePermSyncControl&&m&&r.createElement(r.Fragment,null,r.createElement(c.bVQ,{className:"ms-SiteSettingsPanel-HubPermSyncCheckbox",onText:"On",offText:"Off",checked:a.hubPermSyncCheckboxChecked,label:s.$,disabled:i===o.a.readOnly,onChange:this._onHubPermSyncToggleChange})))}},t.prototype._renderDeleteGroupLink=function(){var e=null;return this.props.enableDelete&&(e=r.createElement("div",{className:"ms-SiteSettingsPanel-DeleteGroupLink"},r.createElement(c.NG4,{onClick:this._onDeleteGroupClick,"data-automationid":"SiteSettingsPanelDeleteGroupLink"},r.createElement(d.k45,{iconName:"Delete",className:"ms-SiteSettingsPanel-DeleteGroupLinkIcon"}),r.createElement("span",{className:"ms-SiteSettingsPanel-DeleteGroupLinkLabel"},s.s)))),e},t.prototype._renderDeleteConfirmationDialog=function(){var e=this.props,t=e.enableDelete,n=e.groupDeleteErrorMessage,a=e.name,i=e.useDeleteSiteStrings,o=this.state,l=null;return t&&(l=r.createElement(c.X$,{hidden:!o.showDeleteConfirmationDialog,type:d.r_c.close,onDismiss:this._onDeleteConfirmationDialogCancel,isBlocking:!0,closeButtonAriaLabel:s.m,title:i?s.v:s.r},r.createElement("div",null,p.OO(i?s.u:s.q,a)),r.createElement(c.mSm,{className:"ms-SiteSettingsPanel-DeleteGroupConfirmationCheckbox",label:i?s.t:s.p,onChange:this._onDeleteConfirmationCheckboxChange}),n?r.createElement("div",{className:"ms-SiteSettingsPanel-ErrorMessage"},n):null,r.createElement(d.j5C,null,r.createElement(c.rfU,{disabled:!o.deleteConfirmationCheckboxChecked||o.showDeletingSpinner,onClick:this._onDeleteConfirmationDialogAccept,text:s.o}),r.createElement(c.B0k,{onClick:this._onDeleteConfirmationDialogCancel,text:s.m}),o.showDeletingSpinner?r.createElement(c.tu6,null):null))),l},t.prototype._renderHelpTextFooter=function(){var e=this.props.classicSiteSettingsUrl,t=null;return e&&(t=r.createElement("div",{className:"ms-SiteSettingsPanel-HelpText","data-automationid":"SiteSettingsPanelHelperText"},r.createElement(c.NG4,{href:e},s.h))),t},t.prototype._renderSiteLogo=function(){return p.tH.isFeatureEnabled(M)?r.createElement("div",{className:"ms-SiteSettingsPanel-SiteLogo","data-automationid":"SiteSettingsPanelSiteLogo"},r.createElement(d.usJ,null,s.Z)):this._renderSiteLogoCore()},t.prototype._renderSiteLogoCore=function(){var e=this.props,t=this.props,n=t.siteLogo,a=t.showImageBrowser,i=null;return n&&!a?i=r.createElement(u,{siteTitle:e.name,siteLogoUrl:n.imageUrl,siteAcronym:n.acronym,siteLogoBgColor:n.backgroundColor,disableSiteLogoFallback:!1,size:64}):a&&(i=r.createElement(l.b,{ref:this._imageBrowser,initialPreviewUrl:this.props.pageContext.webAbsoluteUrl+"/_api/siteiconmanager/getsitelogo",disableRemove:e.disableRemoveLogo,supportedImageTypes:U})),r.createElement("div",{className:"ms-SiteSettingsPanel-SiteLogo","data-automationid":"SiteSettingsPanelSiteLogo"},r.createElement(c.cbL,{className:"ms-SiteSettingsPanel-SiteLogo-Title"},s.O),i)},t.prototype._renderUsageLink=function(){var e=this.props.usageGuidelinesUrl,t=null;return e&&(t=r.createElement("div",{className:"ms-SiteSettingsPanel-UsageLink"},r.createElement(c.NG4,{href:e,target:"_blank","data-automationid":"SiteSettingsPanelUsageLink"},s.ob))),t},t.prototype._renderClassificationDescriptions=function(){var e=this.props.classificationDescriptions;return e&&e.length>0?r.createElement("div",{className:"ms-SiteSettingsPanel-ClassificationDescriptions"},e.map(function(e,t){return r.createElement("div",{className:"ms-ClassificationDescriptions-item",key:t},r.createElement("div",{className:"ms-ClassificationDescriptions-itemTitle"},e.classificationTitle),r.createElement("div",{className:"ms-ClassificationDescriptions-itemDescription"},e.classificationDescription))})):null},t.prototype._renderAddIBSegments=function(){if(this.props.pageContext.IBSegments&&this.props.pageContext.IBSegments.length>0){var e=r.createElement("a",{href:"https://aka.ms/SPOInfoBarriers",target:"_blank",rel:"noreferrer"},s.a),t=p.ni(s.c,e);return r.createElement(r.Fragment,null,r.createElement("div",{className:"ms-SiteSettingsPanel-AddSegmentsDescription"},t),r.createElement("div",{className:"ms-SiteSettingsPanel-CompatibleIBSegmentDisplay"},r.createElement(v,{pageContext:this.props.pageContext}),r.createElement(I,{pageContext:this.props.pageContext,saveIBSegmentsClicked:this.state.isSavingIBSegments,onIBSegmentsSaved:this._onAddIBSegmentsSaved})))}return null},t}(r.Component)}
,3563:(e,t,n)=>{"use strict";n.d(t,{a:()=>w,b:()=>A,c:()=>O,d:()=>E,e:()=>j});var a,i,r,o=n("tslib_102"),s=n(2134),c="#3d3e66",d="#e9eaf6",l="#424242",u="#616161",f="#8a8a8a",p="#bdbdbd",m="#d1d1d1",_="#ebebeb",h="#f0f0f0",b="#f5f5f5",g={themeDarker:"#323348",themeDark:c,themeDarkAlt:c,themePrimary:"#6264a7",themeSecondary:"#9092c1",themeTertiary:"#a5a7cf",themeLight:_,themeLighter:d,themeLighterAlt:d,accent:"#137ad1"},v={black:"#242424",neutralDark:l,neutralPrimary:u,neutralPrimaryAlt:u,neutralSecondary:f,neutralTertiary:p,neutralTertiaryAlt:m,neutralQuaternary:_,neutralQuaternaryAlt:_,neutralLight:h,neutralLighter:b,neutralLighterAlt:"#fafafa",white:"#fff"},y={bodyTextChecked:l,disabledSubtext:_,disabledBodySubtext:m,inputPlaceholderText:p,primaryButtonTextDisabled:m,bodyStandoutBackground:b,buttonBackground:h,buttonBackgroundHovered:m,buttonBackgroundPressed:p,buttonTextHovered:u,buttonTextChecked:f,buttonTextPressed:u,buttonTextDisabled:m,menuIcon:u,menuHeader:u,listItemBackgroundChecked:_,listItemBackgroundHovered:_,listItemBackgroundCheckedHovered:_,link:c,warningBackground:"#FFF4CE",warningText:u},S=n("odsp.util_578");!function(e){e[e.Red=0]="Red",e[e.Orange=1]="Orange",e[e.Yellow=2]="Yellow",e[e.Green=3]="Green",e[e.Teal=4]="Teal",e[e.Blue=5]="Blue",e[e.Dark_Blue=6]="Dark_Blue",e[e.Indigo=7]="Indigo",e[e.Plum=8]="Plum",e[e.Purple=9]="Purple",e[e.Gray=10]="Gray",e[e.Warm_Gray=11]="Warm_Gray",e[e.Teams_Default=12]="Teams_Default",e[e.Black=13]="Black",e[e.Cerulean=14]="Cerulean",e[e.Viva_Connections_Default=15]="Viva_Connections_Default"}(r||(r={}));var D={red:"#a4262c",orange:"#ca5010",yellow:"#986f0b",green:"#498205",teal:"#03787c",blue:"#0078d4",dark_Blue:"#004e8c",indigo:"#4f6bed",plum:"#881798",purple:"#8764b8",gray:"#69797e",warm_Gray:"#7a7574",teams_default:"#6264a7",black:"#000000",cerulean:"#1b72a8",salmon:"#ed4c67",viva_connections_default:"#335ccc"},I={red:"#ef6950",yellow:"#ffc83d",green:"#00b294",blue:"#3a96dd",purple:"#9c89e9",gray:"#b1adab"},x="#1b1a19",C="#182534";function O(){var e,t,n,a=S.tH.isFeatureEnabled({ODB:60189})?(0,o.W_)((0,o.W_)({},R),N):R;return(0,o.W_)((0,o.W_)({},a),(e=S.tH.isFeatureEnabled({ODB:1380}),t=S.HW.isActivated("50bb22e3-1806-4d51-9e9c-486741b2b0e1","12/7/2023"),n=S.tH.isFeatureEnabled({ODB:60205}),!t&&n&&e?B:{}))}function w(e){return e===x||e===C?L:k}function E(e,t){var n=function(e,t){var n=M,a=F;return e&&(n=t===C?T:P,a=U),{partialThemes:a,neutrals:n}}(e,t),a=n.neutrals,i=n.partialThemes,r={};for(var s in i){var c=i[s];r[c.themePrimary]=(0,o.W_)((0,o.W_)({},c),a)}return r}function A(e,t){return e?I:D}var L={"#ef6950":["#9c89e9","#00b294","#3a96dd","#b1adab"],"#ffc83d":["#3a96dd","#ef6950","#9c89e9","#b1adab"],"#00b294":["#3a96dd","#9c89e9","#ef6950","#b1adab"],"#3a96dd":["#9c89e9","#00b294","#ef6950","#b1adab"],"#9c89e9":["#3a96dd","#ef6950","#ffc83d","#b1adab"],"#b1adab":["#3a96dd","#9c89e9","#ef6950","#ffc83d"],"#7f85f5":["#4098db","#1bb194","#b1adab","#ed6a55"]},k={"#a4262c":["#ca5010","#881798","#498205","#7a7574"],"#ca5010":["#986f0b","#a4262c","#498205","#7a7574"],"#986f0b":["#ca5010","#498205","#0078d4","#69797e"],"#498205":["#03787c","#0078d4","#ca5010","#69797e"],"#03787c":["#4f6bed","#0078d4","#ca5010","#69797e"],"#0078d4":["#8764b8","#03787c","#ca5010","#69797e"],"#004e8c":["#03787c","#0078d4","#986f0b","#69797e"],"#4f6bed":["#8764b8","#0078d4","#03787c","#69797e"],"#881798":["#03787c","#0078d4","#ca5010","#69797e"],"#8764b8":["#03787c","#0078d4","#986f0b","#69797e"],"#69797e":["#0078d4","#ca5010","#498205","#a4262c"],"#7a7574":["#ca5010","#0078d4","#498205","#a4262c"],"#6264a7":["#137ad1","#1a787a","#6a797e","#c65129"],"#000000":["#ed4c67","#0078d4","#498205","#a4262c"],"#1b72a8":["#1b72a8","#03787c","#ca5010","#69797e"],"#335ccc":["#335ccc","#0078d4","#03787c","#69797e"]},M=(0,o.W_)((0,o.W_)({},s.a),{black:"#000000",white:"#ffffff",primaryBackground:"#ffffff",primaryText:"#333333"}),P={neutralLighterAlt:"#201f1e",neutralLighter:"#252423",neutralLight:"#292827",neutralQuaternaryAlt:"#323130",neutralQuaternary:"#3b3a39",neutralTertiaryAlt:"#484644",neutralTertiary:"#797775",neutralSecondary:"#a19f9d",neutralPrimaryAlt:"#c8c6c4",neutralPrimary:"#f3f2f1",neutralDark:"#faf9f8",black:"#ffffff",white:"#1b1a19",primaryBackground:x,primaryText:"#f3f2f1"},T={neutralLighterAlt:"#1d2b3c",neutralLighter:"#223244",neutralLight:"#2b3d51",neutralQuaternaryAlt:"#324459",neutralQuaternary:"#374a5f",neutralTertiaryAlt:"#4f637a",neutralTertiary:"#c8c8c8",neutralSecondary:"#d0d0d0",neutralPrimaryAlt:"#dadada",neutralPrimary:"#ffffff",neutralDark:"#f4f4f4",black:"#f8f8f8",white:"#182534",primaryBackground:C,primaryText:"#ffffff"},U=((a={})[r.Red]={themePrimary:"#ef6950",themeLighterAlt:"#0a0403",themeLighter:"#26110d",themeLight:"#481f18",themeTertiary:"#903e2f",themeSecondary:"#d35b46",themeDarkAlt:"#f17660",themeDark:"#f38a77",themeDarker:"#f6a89a",accent:"#ef6950"},a[r.Yellow]={themePrimary:"#ffc83d",themeLighterAlt:"#0a0802",themeLighter:"#29200a",themeLight:"#4d3c12",themeTertiary:"#997825",themeSecondary:"#e0b036",themeDarkAlt:"#ffce51",themeDark:"#ffd56c",themeDarker:"#ffe092",accent:"#ffc83d"},a[r.Green]={themePrimary:"#00b294",themeLighterAlt:"#000706",themeLighter:"#001d18",themeLight:"#00362d",themeTertiary:"#006b59",themeSecondary:"#009d83",themeDarkAlt:"#13ba9e",themeDark:"#2fc5ac",themeDarker:"#5dd4c0",accent:"#00b294"},a[r.Blue]={themePrimary:"#3a96dd",themeLighterAlt:"#020609",themeLighter:"#091823",themeLight:"#112d43",themeTertiary:"#235a85",themeSecondary:"#3385c3",themeDarkAlt:"#4ba0e1",themeDark:"#65aee6",themeDarker:"#8ac2ec",accent:"#3a96dd"},a[r.Purple]={themePrimary:"#9c89e9",themeLighterAlt:"#060509",themeLighter:"#191625",themeLight:"#2f2946",themeTertiary:"#5e528b",themeSecondary:"#8978cc",themeDarkAlt:"#a594ea",themeDark:"#b2a4ee",themeDarker:"#c6bbf2",accent:"#9c89e9"},a[r.Gray]={themePrimary:"#b1adab",themeLighterAlt:"#070707",themeLighter:"#1c1c1b",themeLight:"#353433",themeTertiary:"#6a6766",themeSecondary:"#9b9896",themeDarkAlt:"#b8b5b3",themeDark:"#c3c0be",themeDarker:"#d3d0cf",accent:"#b1adab"},a),F=((i={})[r.Red]={themePrimary:"#a4262c",themeLighterAlt:"#fbf4f4",themeLighter:"#f0d3d4",themeLight:"#e3afb2",themeTertiary:"#c86c70",themeSecondary:"#ae383e",themeDarkAlt:"#932227",themeDark:"#7c1d21",themeDarker:"#5b1519",accent:"#ca5010"},i[r.Orange]={themePrimary:"#ca5010",themeLighterAlt:"#fdf7f4",themeLighter:"#f6dfd2",themeLight:"#efc4ad",themeTertiary:"#df8f64",themeSecondary:"#d06228",themeDarkAlt:"#b5490f",themeDark:"#993e0c",themeDarker:"#712d09",accent:"#986f0b"},i[r.Yellow]={themePrimary:"#986f0b",themeLighterAlt:"#fbf8f2",themeLighter:"#efe5cb",themeLight:"#e0cfa2",themeTertiary:"#c2a356",themeSecondary:"#a57f1e",themeDarkAlt:"#8a650a",themeDark:"#745608",themeDarker:"#563f06",accent:"#ca5010"},i[r.Green]={themePrimary:"#498205",themeLighterAlt:"#f6faf0",themeLighter:"#dbebc7",themeLight:"#bdda9b",themeTertiary:"#85b44c",themeSecondary:"#5a9117",themeDarkAlt:"#427505",themeDark:"#386304",themeDarker:"#294903",accent:"#03787c"},i[r.Teal]={themePrimary:"#03787c",themeLighterAlt:"#f0f9fa",themeLighter:"#c5e9ea",themeLight:"#98d6d8",themeTertiary:"#49aeb1",themeSecondary:"#13898d",themeDarkAlt:"#026d70",themeDark:"#025c5f",themeDarker:"#014446",accent:"#4f6bed"},i[r.Blue]={themePrimary:"#0078d4",themeLighterAlt:"#eff6fc",themeLighter:"#deecf9",themeLight:"#c7e0f4",themeTertiary:"#71afe5",themeSecondary:"#2b88d8",themeDarkAlt:"#106ebe",themeDark:"#005a9e",themeDarker:"#004578",accent:"#8764b8"},i[r.Dark_Blue]={themePrimary:"#004e8c",themeLighterAlt:"#f0f6fa",themeLighter:"#c7dced",themeLight:"#9abfdd",themeTertiary:"#4a88ba",themeSecondary:"#125d9a",themeDarkAlt:"#00457e",themeDark:"#003b6b",themeDarker:"#002b4f",accent:"#03787c"},i[r.Indigo]={themePrimary:"#4f6bed",themeLighterAlt:"#f7f9fe",themeLighter:"#e1e6fc",themeLight:"#c7d1fa",themeTertiary:"#92a4f4",themeSecondary:"#627cef",themeDarkAlt:"#4661d5",themeDark:"#3b52b4",themeDarker:"#2c3c85",accent:"#8764b8"},i[r.Plum]={themePrimary:"#881798",themeLighterAlt:"#faf2fb",themeLighter:"#ebceef",themeLight:"#daa7e0",themeTertiary:"#b65fc2",themeSecondary:"#972aa5",themeDarkAlt:"#7c158a",themeDark:"#691174",themeDarker:"#4d0d56",accent:"#03787c"},i[r.Purple]={themePrimary:"#8764b8",themeLighterAlt:"#f9f8fc",themeLighter:"#e9e2f4",themeLight:"#d7c9ea",themeTertiary:"#b29ad4",themeSecondary:"#9372c0",themeDarkAlt:"#7959a5",themeDark:"#664b8c",themeDarker:"#4b3867",accent:"#03787c"},i[r.Gray]={themePrimary:"#69797e",themeLighterAlt:"#f8f9fa",themeLighter:"#e4e9ea",themeLight:"#cdd5d8",themeTertiary:"#9fadb1",themeSecondary:"#78888d",themeDarkAlt:"#5d6c70",themeDark:"#4f5b5f",themeDarker:"#3a4346",accent:"#0078d4"},i[r.Warm_Gray]={themePrimary:"#7a7574",themeLighterAlt:"#faf9f9",themeLighter:"#eae8e8",themeLight:"#d7d5d4",themeTertiary:"#afabaa",themeSecondary:"#8a8584",themeDarkAlt:"#6e6a69",themeDark:"#5d5958",themeDarker:"#454241",accent:"#ca5010"},i[r.Teams_Default]=g,i[r.Black]={themePrimary:"#000000",themeLighterAlt:"#898989",themeLighter:"#737373",themeLight:"#595959",themeTertiary:"#373737",themeSecondary:"#2f2f2f",themeDarkAlt:"#252525",themeDark:"#151515",themeDarker:"#0b0b0b",accent:"#ed4c67"},i[r.Cerulean]={themePrimary:"#1b72a8",themeLighterAlt:"#e1effc",themeLighter:"#c8e3fa",themeLight:"#aad6fa",themeTertiary:"#59aeeb",themeSecondary:"#2380ba",themeDarkAlt:"#1a6491",themeDark:"#19577d",themeDarker:"#143f59",accent:"#1b72a8"},i[r.Viva_Connections_Default]={themePrimary:"#335ccc",themeSecondary:"#476cd2",themeTertiary:"#7b96e0",themeDarker:"#1d3372",themeDark:"#27469b",themeDarkAlt:"#2e53b8",themeLight:"#bac8f0",themeLighter:"#d9e1f7",themeLighterAlt:"#f5f7fd",accent:"#335ccc"},i),H={default_SharePoint:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Teal]),M)}},R=(0,o.W_)((0,o.W_)({},H),{default_Office:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Blue]),M)},default_Orange:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Orange]),M)},default_Red:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Red]),M)},default_Purple:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Purple]),M)},default_Green:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Green]),M)},default_Gray:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Gray]),M)},default_DarkYellow:{name:"",backgroundImageUri:"",isInverted:!0,theme:(0,o.W_)((0,o.W_)({},U[r.Yellow]),P)},default_DarkBlue:{name:"",isInverted:!0,backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},U[r.Blue]),T)},teams_default:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)((0,o.W_)({},y),F[r.Teams_Default]),v),isEditable:!0}}),N={default_Black:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Black]),M)},default_Cerulean:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Cerulean]),M)}},B={viva_connections_default:{name:"",backgroundImageUri:"",theme:(0,o.W_)((0,o.W_)({},F[r.Viva_Connections_Default]),M)}};function j(e){var t=O();return!Object.keys(t).map(function(e){return t[e]}).filter(function(t){return!1===t.isEditable&&e===t.theme.themePrimary}).length}}
,2946:(e,t,n)=>{"use strict";n.d(t,{a:()=>b});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n(1393),s=n("fui.lcoms_828"),c=n(41),d=n("fui.util_43");(0,d.pZ)([{rawString:".ms-userExpirationList{height:100%;display:flex;flex-direction:column;padding:0 0 0 16px}[dir=rtl] .ms-userExpirationList{padding:0 16px 0 0}.ms-UserExpirationList-UserName{color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:";font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:400}.ms-UserExpiratinLIst-UserEmail{font-size:"},{theme:"xSmallFontSize",defaultValue:"10px"},{rawString:";font-weight:400;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}html[dir=ltr] .ms-UserExpiratinLIst-UserEmail{float:left}html[dir=rtl] .ms-UserExpiratinLIst-UserEmail{float:right}.ms-UserExpirationList-ButtonArea{height:48px;background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";display:flex;align-items:stretch}.ms-UserExpirationList-ButtonAreaPadding{padding:0 16px 0 0}[dir=rtl] .ms-UserExpirationList-ButtonAreaPadding{padding:0 0 0 16px}.ms-UserExpirationList-ButtonAreaButton{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";padding:0 8px 0 8px}[dir=rtl] .ms-UserExpirationList-ButtonAreaButton{padding:0 8px 0 8px}.ms-UserExpirationList-ButtonAreaButton:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.ms-UserExpirationList-Checkbox{align-self:center}html[dir=ltr] .ms-UserExpirationList-ExpirationColumn{text-align:right}html[dir=rtl] .ms-UserExpirationList-ExpirationColumn{text-align:left}.ms-UserExpirationList-ExpirationColumnHeader{padding:0 3px 0 3px}[dir=rtl] .ms-UserExpirationList-ExpirationColumnHeader{padding:0 3px 0 3px}.ms-UserExpirationList-Expiration{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:400;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:";width:-moz-fit-content;width:fit-content;display:inline-flex}[dir=ltr] .ms-UserExpirationList-Expiration{padding-right:18px}[dir=rtl] .ms-UserExpirationList-Expiration{padding-left:18px}.ms-UserExpirationList-Expiration.Soon{color:"},{theme:"redDark",defaultValue:"#a4262c"},{rawString:"}[dir=ltr] .ms-UserExpirationList-Expiration.Admin{padding-right:6px}[dir=rtl] .ms-UserExpirationList-Expiration.Admin{padding-left:6px}.ms-UserExpirationList-Search{width:100%;align-self:center;margin:8px 12px 8px 12px}html[dir=rtl] .ms-UserExpirationList-Search{margin:8px 12px 8px 12px}[dir=ltr] .ms-UserExpirationList-Search{padding-left:0}[dir=rtl] .ms-UserExpirationList-Search{padding-right:0}.ms-UserExpiration-actionButton{font-size:16px}[dir=ltr] .ms-UserExpirationList-SearchField{padding-left:6px}[dir=rtl] .ms-UserExpirationList-SearchField{padding-right:6px}.ms-userExpirationList-ScrollablePane{position:relative;height:100%}.ms-UserExpirationList-CheckBoxRoot{width:36px}"}]);var l=n(7576),u=n("odsp.util_578"),f=n(329),p=function(e){function t(t){var n=e.call(this,t)||this;n._isExpirationColumnExtraWidthEnabled=!u.HW.isActivated("1fbe9f2c-c073-4967-b19e-08c2ab0c70ba"),n._getColumns=function(e,t,a){return[{key:"column1",name:l.I,fieldName:"Title",minWidth:1,isRowHeader:!0,isResizable:!1,isSorted:"Title"===t,isSortedDescending:a,sortAscendingAriaLabel:l.c,sortDescendingAriaLabel:l.p,onRender:n._renderNameColumn,onColumnClick:n._onColumnClick,data:"string",isPadded:!1,ariaLabel:l.I},{key:"column2",name:l.q,fieldName:"UserExpiration",minWidth:n._isExpirationColumnExtraWidthEnabled?105:95,maxWidth:n._isExpirationColumnExtraWidthEnabled?115:105,isSorted:"UserExpiration"===t,isSortedDescending:a,isResizable:!1,sortAscendingAriaLabel:l.b,sortDescendingAriaLabel:l.o,onColumnClick:n._onColumnClick,data:"number",className:"ms-UserExpirationList-ExpirationColumn",onRender:n._renderExpirationDate,isPadded:!1,ariaLabel:l.q},{key:"column3",name:"",isResizable:!1,onRender:function(t){return n._renderOptionsBox(t,e)},minWidth:10,maxWidth:10,isPadded:!1}]},n._renderNoUsersMessage=function(){return n.state.filterText?i.createElement(r.MVl,{stickyPosition:r.vm_.Header},i.createElement("div",null,l.K)):i.createElement(r.MVl,{stickyPosition:r.vm_.Header},i.createElement("div",null,l.L))},n._renderButtonArea=function(){var e=n.state.isUserSelected;return i.createElement("div",{className:"ms-UserExpirationList-ButtonAreaPadding"},i.createElement("div",{className:"ms-UserExpirationList-ButtonArea"},!e&&n._renderSearch(),e&&n._renderButtons()))},n._renderSearch=function(){var e=n.state.filterText;return i.createElement(r.Qkz,{placeholder:l.N,className:"ms-UserExpirationList-Search",value:e,onChange:function(e,t){return n._searchForUser(t)},styles:{field:"ms-UserExpirationList-SearchField"}})},n._renderButtons=function(){var e={root:"ms-UserExpirationList-ButtonAreaButton"};return n.props.userExpirationPolicyEnabled?i.createElement("div",{className:"ms-UserExpirationList-ButtonArea"},i.createElement(s.Q7k,{"data-automation-id":"CommandBarExtend",iconProps:{iconName:"DateTime2"},text:l.F,onClick:n._showExtendDialog,styles:e}),i.createElement(s.Q7k,{"data-automation-id":"CommandBarExpire",iconProps:{iconName:"UserRemove"},text:l.M,onClick:n._showExpireDialog,styles:e})):i.createElement("div",{className:"ms-UserExpirationList-ButtonArea"},i.createElement(s.Q7k,{"data-automation-id":"CommandBarClear",iconProps:{iconName:"RemoveEvent"},text:l.g,onClick:n._showClearDialog,styles:e}),i.createElement(s.Q7k,{"data-automation-id":"CommandBarExpire",iconProps:{iconName:"UserRemove"},text:l.M,onClick:n._showExpireDialog,styles:e}))},n._renderList=function(){var e=n.state,t=e.users,a=e.columns,s=e.hasMoreUsers;return i.createElement(r.SjO,null,i.createElement(o.a,{"data-automation-id":"UserExpirationDetailsList",className:"ms-UserExpiration-UserExpirationList",checkboxCellClassName:"ms-UserExpirationList-Checkbox",items:t||[],compact:!1,columns:a,selectionMode:t&&t.length>0?r.T4d.multiple:r.T4d.none,layoutMode:r.IWK.justified,isHeaderVisible:!0,selection:n._selection,selectionPreservedOnEmptyClick:!0,enterModalSelectionOnTouch:!0,ariaLabelForSelectionColumn:l.P,ariaLabelForSelectAllCheckbox:l.O,onRowDidMount:function(e,t){n._onRenderItem(e,t)},constrainMode:r.W5Y.horizontalConstrained,enableShimmer:t?0===t.length&&s:s,onRenderDetailsHeader:n._onRenderDetailsHeader,onRenderRow:n._onRenderRow}))},n._onRenderRow=function(e,t){return t((0,a.W_)((0,a.W_)({},e||{}),{onRenderCheck:n._onRenderCheck}))},n._onRenderCheck=function(e,t){return void 0===t&&(t=r.onk),i.createElement(t,(0,a.W_)({},e,{styles:{root:"ms-UserExpirationList-CheckBoxRoot",check:"ms-UserExpirationList-CheckBoxCheck",isDisabled:"ms-UserExpirationList-CheckBoxDisabled"}}))},n._onRenderDetailsHeader=function(e,t){return i.createElement(r.MVl,{stickyPosition:r.vm_.Header},t((0,a.W_)((0,a.W_)({},e||{}),{onRenderColumnHeaderTooltip:n._onRenderDetailsHeaderTooltip,onRenderDetailsCheckbox:n._onRenderDetailsCheckbox,styles:{cellIsCheck:"ms-UserExpirationList-CheckBoxRoot",check:"ms-UserExpirationList-CheckBoxRoot"}})))},n._onRenderDetailsCheckbox=function(e,t){return t((0,a.W_)({},e))},n._onRenderDetailsHeaderTooltip=function(e){return i.createElement(s.qxl,(0,a.W_)({},e))},n._renderNameColumn=function(e){var t=n.state,a=t.isNameTooltipVisible,o=t.isEmailTooltipVisible;if(e){var c=e.uniqueId+"name",d=e.uniqueId+"nameTooltip",l=e.uniqueId+"email",u=e.uniqueId+"emailTooltip";return i.createElement("div",null,i.createElement("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},i.createElement(s.qxl,{content:e.title,overflowMode:r.syf.Parent,id:d,onTooltipToggle:n._onNameTooltip,calloutProps:{gapSpace:0,target:"#".concat(c)}},i.createElement("span",{className:"ms-UserExpirationList-UserName","aria-labelledby":a?d:void 0,id:c},e.title))),i.createElement("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},i.createElement(s.qxl,{content:e.email,overflowMode:r.syf.Parent,id:u,onTooltipToggle:n._onEmailTooltip,calloutProps:{gapSpace:0,target:"#".concat(l)}},i.createElement("span",{className:"ms-UserExpiratinLIst-UserEmail","aria-labelledby":o?u:void 0,id:l},e.email?e.email:""))))}},n._renderOptionsBox=function(e,t){var a=t?[{key:"extend",text:l.y,onClick:function(){n.setState({selectedUser:e,isExtendDialogVisible:!0})}},{key:"expire",text:l.M,onClick:function(){n.setState({selectedUser:e,isExpireDialogVisible:!0})}}]:[{key:"clear",text:l.g,onClick:function(){n.setState({selectedUser:e,isClearDialogVisible:!0})}},{key:"expire",text:l.M,onClick:function(){n.setState({selectedUser:e,isExpireDialogVisible:!0})}}];return i.createElement(s.hYu,{"data-is-focusable":!0,className:"ms-UserExpiration-actionButton",ariaLabel:"stringsResx.moreOptionsLabel",menuIconProps:{iconName:"MoreVertical",styles:{root:{fontSize:"16px"}}},menuProps:{shouldFocusOnMount:!0,items:a}})},n._renderExpirationDate=function(e){var t=n.state.isExpirationTooltipVisible;if(e.isExpiring)return i.createElement("div",null,l.x);if(e.isExtending)return i.createElement("div",null,l.E);if(e.isClearing)return i.createElement("div",null,l.l);var a=n.daysAway(e.expiration),r="ms-UserExpirationList-Expiration"+(a<7&&a>0?" Soon":"")+(e.isSiteAdmin?" Admin":""),o=e.uniqueId+"expiration",c=o+"tooltip";return i.createElement("div",null,i.createElement(s.qxl,{content:u.OO(l.w,e.expiration.toLocaleDateString("en-us",{month:"long",day:"numeric",year:"numeric"})),id:c,onTooltipToggle:n._onExpirationTooltip,calloutProps:{gapSpace:0,target:"#".concat(o)}},i.createElement("div",{className:r,id:o,"aria-labelledby":t?c:void 0},n._ExpirationDate(e))),e.isSiteAdmin&&n._renderAdminNotification(o))},n._renderAdminNotification=function(e){return i.createElement(s.qxl,{content:l.a,calloutProps:{gapSpace:0,target:"#".concat(e+"test")}},i.createElement(r.k45,{id:e+"test",iconName:"Info",className:"ms-UserExpirationList-AdminWarning"}))},n._renderDialog=function(){var e,t,a,o,c,d,f,p=n.state,m=p.isExpireDialogVisible,_=p.isExtendDialogVisible,h=p.isClearDialogVisible,b=p.selectedUser,g=n.props.userExpirationPolicyDays,v=n._selection.getSelectedCount();if(b)c=b.title,d=b.email;else if(1===v){var y=n._selection.getSelection()[0];c=y.title,d=y.email}if(m)if(e=l.v,t=v<=1?u.OO(l.u,c,d):u.Gx(l.t,l.s,v),a=l.r,o=l.e,b){var S=[];S.push(b),f=function(){n._expireNow(S),n._closeDialog()}}else f=function(){n._expireNow(n._selection.getSelection()),n._selection.setItems(n._selection.getSelection(),!0),n._closeDialog()};else if(_){var D=new Date;if(D.setDate(D.getDate()+g),e=l.D,t=v<=1?u.OO(l.C,c,d,D.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})):u.OO(u.Ot(l.B,l.A,v),v,D.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})),a=l.z,o=l.e,b){var I=[];I.push(b),f=function(){n._setUserExpiration(I,D),n._closeDialog()}}else f=function(){n._setUserExpiration(n._selection.getSelection(),D),n._selection.setItems(n._selection.getSelection(),!0),n._closeDialog()}}else if(h)if(e=l.k,t=v<=1?u.OO(l.j,c,d):u.Gx(l.i,l.h,v),a=l.f,o=l.e,b){var x=[{}];x.push(b),f=function(){n._clearExpiration(x),n._closeDialog()}}else f=function(){n._clearExpiration(n._selection.getSelection()),n._selection.setItems(n._selection.getSelection(),!0),n._closeDialog()};else n._closeDialog();return i.createElement(s.X$,{hidden:!1,onDismiss:n._closeDialog,dialogContentProps:{type:r.r_c.normal,title:e,subText:t},modalProps:{isBlocking:!1,containerClassName:"ms-dialogMainOverride"}},i.createElement(r.j5C,null,i.createElement(s.rfU,{onClick:f,text:a}),i.createElement(s.B0k,{onClick:n._closeDialog,text:o})))},n._onNameTooltip=function(e){n.setState({isNameTooltipVisible:e})},n._onEmailTooltip=function(e){n.setState({isEmailTooltipVisible:e})},n._onExpirationTooltip=function(e){n.setState({isExpirationTooltipVisible:e})},n._showExtendDialog=function(){n.setState({isExtendDialogVisible:!0})},n._showClearDialog=function(){n.setState({isClearDialogVisible:!0})},n._showExpireDialog=function(){n.setState({isExpireDialogVisible:!0})},n._clearExpiration=function(e){e.forEach(function(e){e.isClearing=!0}),n._updateUsers(e),n._userExpirationProvider.setUserExpiration(e,void 0).then(function(t){var a=[];return t.forEach(function(t,n){t?a.push(e[n]):e[n].isClearing=!1}),n._removeUsers(a),e.filter(function(e,n){return!t[n]})}).then(function(e){e.length>0&&(e.forEach(function(t,n){e[n].isExpiring=!1}),n._updateUsers(e))})},n._fetchExpiringUsers=function(){var e,t=n.state,a=t.orderBy,i=t.ascending,o=t.filterText,s=t.hasMoreUsers,d=t.allUsers,l=n.props.pageSize;s&&(e=d?n.state.allUsers:[],n._userExpirationProvider.getUsersWithExpirationsWithCache(a,i,l,e.length,void 0,f.a.bypassCache).then(function(t){if(Array.isArray(t)&&t.length>0){t.forEach(function(t){t.uniqueId=(0,r.f53)(),e.push(t)});var a=n._mergeInNewUsers(t),i=n.filterUsers(o,a),s=t.length===l&&i&&i.length<l;return n.setState({allUsers:a,users:i,hasMoreUsers:t.length===l}),n.props.onUserLoaded&&n.props.onUserLoaded(),s}return n.setState({hasMoreUsers:!1}),!1}).then(function(e){e&&n._fetchExpiringUsers()}).catch(function(e){c.Engagement.logData({name:"error fetching users"})}))},n._setUserExpiration=function(e,t){e.forEach(function(e){e.isExtending=!0}),n._updateUsers(e),n._userExpirationProvider.setUserExpiration(e,t).then(function(a){var i=!1;return a.forEach(function(n,a){n?e[a].expiration=t:i=!0,e[a].isExtending=!1}),n._updateUsers(e),i}).then(function(e){})},n._expireNow=function(e){e.forEach(function(e){e.isExpiring=!0}),n._updateUsers(e),n._userExpirationProvider.expireUser(e).then(function(t){var a=e.filter(function(e,n){return t[n]});return n._removeUsers(a),e.filter(function(e,n){return!t[n]})}).then(function(e){e.length>0&&(e.forEach(function(t,n){e[n].isExpiring=!1}),n._updateUsers(e))})},n._removeUsers=function(e){var t=n.state,a=t.allUsers,i=t.filterText,r=n._mapUsers(e),o=a.filter(function(e){return!(e.id in r)});n.setState({allUsers:o.concat(),users:n.filterUsers(i,o)},function(){o.length<=10&&n._fetchExpiringUsers()})},n._updateUsers=function(e){var t=n.state,a=t.allUsers,i=t.filterText,r=n._mapUsers(e),o=a.map(function(e){return r[e.id]||e});n.setState({allUsers:o,users:n.filterUsers(i,o)})},n._mergeInNewUsers=function(e){var t=n.state.allUsers;if(t&&t.length>0){var i=n._mapUsers(t),r=e.filter(function(e){return!(e.id in i)});return(0,a.AE)((0,a.AE)([],t,!0),r,!0)}return e},n._mapUsers=function(e){for(var t={},n=0,a=e;n<a.length;n++){var i=a[n];t[i.id]=i}return t},n._sort=function(e,t,n){var a=t?function(e,t){return e.title.toLocaleUpperCase().localeCompare(t.title.toLocaleUpperCase())}:function(e,t){return e.expiration.valueOf()-t.expiration.valueOf()};return e.sort(a),n&&e.reverse(),e},n._closeDialog=function(){n.setState({isExpireDialogVisible:!1,isExtendDialogVisible:!1,isClearDialogVisible:!1,selectedUser:void 0})},n._onRenderItem=function(e,t){var a=n.state.users;(t===a.length-10||a.length<10&&t===a.length-1)&&n._fetchExpiringUsers()},n._ExpirationDate=function(e){var t=e.expiration,a=n.daysAway(t);return a<7&&a>0?u.Gx(l.n,l.m,a):t.toLocaleString("en-us",{month:"short",day:"numeric"})},n.daysAway=function(e){var t=e.getTime(),n=Date.now();return Math.ceil((t-n)/864e5)},n._getSelectionDetails=function(){return n._selection.getSelectedCount()>0},n._onColumnClick=function(e,t){var i=n.state,r=i.columns,o=i.hasMoreUsers,s=i.users,c=r.map(function(e){var n=e.key===t.key;return(0,a.W_)((0,a.W_)({},e),{isSorted:n,isSortedDescending:n&&!e.isSortedDescending})});o?n.setState({allUsers:[],hasMoreUsers:!0,orderBy:t.fieldName,ascending:!t.isSortedDescending,columns:c},function(){return n._fetchExpiringUsers()}):n.setState({users:(0,a.AE)([],n._sort(s,"Title"===t.fieldName,!t.isSortedDescending),!0),orderBy:t.fieldName,ascending:!t.isSortedDescending,columns:c})},n._searchForUser=function(e){var t=n.state.allUsers;t&&t.length>0?n.setState({filterText:e,users:n.filterUsers(e,t)},function(){var e=n.state.users;e&&e.length<10&&n._fetchExpiringUsers()}):n.setState({filterText:e})},n.filterUsers=function(e,t){var n=e.toLocaleUpperCase();return t&&t.length>0?t.filter(function(e){return e&&e.email&&e.email.toLocaleUpperCase().indexOf(n)>-1||e&&e.title&&e.title.toLocaleUpperCase().indexOf(n)>-1}):t},n._userExpirationProvider=t.userExpirationProvider;var d,p=n._getColumns(t.userExpirationPolicyEnabled,"UserExpiration",!1);return n._selection=new r.uTq({onSelectionChanged:function(){n.setState({isUserSelected:n._getSelectionDetails()})}}),n.state={users:d,allUsers:d,columns:p,isUserSelected:n._getSelectionDetails(),isNameTooltipVisible:!1,isEmailTooltipVisible:!1,isExpirationTooltipVisible:!1,isClearDialogVisible:!1,isExpireDialogVisible:!1,isExtendDialogVisible:!1,selectedUser:void 0,hasMoreUsers:!0,orderBy:"UserExpiration",ascending:!0,filterText:""},n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.state,t=e.users,n=e.isExtendDialogVisible,a=e.isClearDialogVisible,o=e.isExpireDialogVisible,s=e.hasMoreUsers,c=!(t&&0!==t.length||s);return i.createElement("div",{className:"ms-userExpirationList"},this._renderButtonArea(),i.createElement(r.E1E,{scrollbarVisibility:r.wzZ.always,className:"ms-userExpirationList-ScrollablePane"},this._renderList(),c&&this._renderNoUsersMessage()),(o||n||a)&&this._renderDialog())},t.prototype.componentDidMount=function(){this._fetchExpiringUsers()},t.prototype.componentDidUpdate=function(e){e.userExpirationPolicyEnabled!==this.props.userExpirationPolicyEnabled&&this.setState({columns:this._getColumns(this.props.userExpirationPolicyEnabled,this.state.orderBy,this.state.ascending)})},t}(i.Component),m=(0,r.bDN)(p,function(e){return{root:[],label:{}}});(0,d.pZ)([{rawString:".ms-UserExpirationPanel{padding:5px}.ms-UserExpirationPanel-content{margin-top:8px}.ms-UserExpirationPanel-ScrollableContent{height:100%}.ms-UserExpirationPanel-Header{padding:0 16px 16px 16px}[dir=rtl] .ms-UserExpirationPanel-Header{padding:0 16px 16px 16px}.ms-UserExpirationPanel-TitleRow{display:flex}.ms-UserExpirationPanel-Title{font-size:"},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:600;padding-bottom:24px;width:100%}.ms-UserExpirationPanel-Title-Container{margin-top:8px}.ms-UserExpirationPanel-Title{font-size:"},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:"},{theme:"xLargeFontWeight",defaultValue:"600"},{rawString:";position:relative}.ms-UserExpirationPanel-HeaderText{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";padding-bottom:20px}.ms-UserExpirationPanel-BackButton{color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:";position:absolute;left:16px;margin-top:7px}.ms-UserExpiration-NoPolicy{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";display:flex;align-items:stretch;min-height:80px}.ms-UserExpiration-NoPolicyText{font-size:12px;padding:8px 0 8px 0;width:100%}[dir=rtl] .ms-UserExpiration-NoPolicyText{padding:8px 0 8px 0}.ms-UserExpiration-Warning{width:32px;font-size:16px;padding:8px 8px 8px 8px}[dir=rtl] .ms-UserExpiration-Warning{padding:8px 8px 8px 8px}.ms-UserExpiration-HideNoPolicyInfo{width:32px;font-size:16px;padding:8px 8px 8px 8px;color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}[dir=rtl] .ms-UserExpiration-HideNoPolicyInfo{padding:8px 8px 8px 8px}.ms-UserExpiration-CloseButton{color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:";font-size:16px}.ms-UserExpirationList{height:100%}"}]);var _={ODB:60801},h=function(e){function t(t){var n=e.call(this,t)||this;return n._renderCloseButton=function(){return i.createElement("div",{className:"ms-UserExpiration-Navigation"},i.createElement(s.hYu,{"data-is-focusable":!0,ariaLabel:"Close panel",iconProps:{iconName:"cancel",styles:{root:"ms-UserExpiration-CloseButton"}},onClick:n._closePanel}))},n._renderHeader=function(){var e=n.props.userExpirationPolicyDays,t=n.state.hideNoExpirationPolicyInfo,a=u.IT.isFeatureEnabled(_)?u.Gx(l.H,l.R,e):u.Gx(l.G,l.Q,e);return i.createElement("div",{className:"ms-UserExpirationPanel-Header"},i.createElement("div",{className:"ms-UserExpirationPanel-TitleRow"},i.createElement("div",{className:"ms-UserExpirationPanel-Title"},n.props.onBackButton&&i.createElement(s.hYu,{"data-is-focusable":!0,className:"ms-UserExpiration-BackButton",ariaLabel:l.d,iconProps:{iconName:"Back",styles:{root:"ms-UserExpirationPanel-Back"}},onClick:n._onBackButton}),l.S),n._renderCloseButton()),i.createElement("div",{className:"ms-UserExpirationPanel-HeaderText"},a),!t&&n._renderNoExpirationPolicyInfo())},n._renderGuestExpiration=function(){var e=n.props,t=e.userExpirationPolicyDays,a=e.userExpirationPolicyEnabled;return i.createElement("div",{className:"ms-UserExpirationList"},i.createElement(m,{userExpirationProvider:n.props.userExpirationProvider,userExpirationPolicyDays:t,userExpirationPolicyEnabled:a,pageSize:50,onUserLoaded:n._onUserLoaded}))},n._renderNoExpirationPolicyInfo=function(){var e=n.props.userExpirationPolicyEnabled,t=n.state.usersLoaded;if(!e&&t)return i.createElement("div",{className:"ms-UserExpiration-NoPolicy"},i.createElement(r.k45,{iconName:"Error",className:"ms-UserExpiration-Warning"}),i.createElement("div",{className:"ms-UserExpiration-NoPolicyText"},l.J),i.createElement(s.hYu,{"data-is-focusable":!0,className:"ms-UserExpiration-HideNoPolicyInfo",ariaLabel:"hide no policy info",menuIconProps:{iconName:"cancel"},onClick:n._hideNoPolicyInfo}))},n._hideNoPolicyInfo=function(){n.setState({hideNoExpirationPolicyInfo:!0})},n._closePanel=function(){n.setState({showPanel:!1}),n.props.onDismiss&&n.props.onDismiss()},n._onBackButton=function(){n.setState({showPanel:!1}),n.props.onBackButton&&n.props.onBackButton()},n._onUserLoaded=function(){n.setState({usersLoaded:!0})},n.state={showPanel:!0,hideNoExpirationPolicyInfo:!1,usersLoaded:!1},n}return(0,a.XJ)(t,e),t.prototype.render=function(){return i.createElement(r.k8Z,{className:"ms-UserExpirationPanel",isOpen:this.props.isOpen,type:r.ecV.smallFixedFar,onDismiss:this._closePanel,isLightDismiss:!0,forceFocusInsideTrap:!1,styles:{content:"ms-UserExpirationPanel-content",scrollableContent:"ms-UserExpirationPanel-ScrollableContent"},onRenderHeader:this._renderHeader,hasCloseButton:!1,onRenderBody:this._renderGuestExpiration})},t}(i.Component),b=(0,r.bDN)(h,function(e){return{root:[],label:{}}})}
,3014:(e,t,n)=>{"use strict";n.d(t,{a:()=>T,b:()=>B});var a,i,r,o=n("tslib_102"),s=n("fui.lcoms_828"),c=n("fui.lco_496"),d=n(330),l=n(96),u=n(43),f=n(26),p=n(39),m=n("odsp.util_578");!function(e){e.Document="Documents",e.NewsPost="NewsPosts",e.SitePage="SitePages",e.Site="Sites"}(a||(a={})),function(e){e.HubSite="HubSite",e.RegularSite="RegularSite"}(i||(i={})),function(e){e[e.ViewCount=0]="ViewCount",e[e.ViewerCount=1]="ViewerCount",e[e.EngagedViewerCount=2]="EngagedViewerCount",e[e.TimeSpentInSeconds=3]="TimeSpentInSeconds"}(r||(r={}));var _={method:"GET",noRedirect:!0,additionalHeaders:{accept:"application/json"}};function h(e){return e&&{activity:{},incompleteData:e.incompleteData,interval:void 0,isTrending:e.isTrending,startDateTime:new Date(e.startDateTime),viewCount:e.access&&e.access.actionCount,viewerCount:e.access&&e.access.actorCount,engagedViewerCount:e.access&&e.access.engagedActorCount,timeSpentInSeconds:e.access&&e.access.timeSpentInSeconds||e.aggregateActivities&&x(e.aggregateActivities)||0,platformViews:e.aggregateActivities&&v(e.aggregateActivities)}}function b(e){for(var t=[],n=0,a=e;n<a.length;n++){var i=a[n];i&&i.analytics&&i.analytics.lastSevenDays&&t.push({id:"TopItem",analytics:{lastSevenDays:h(i.analytics.lastSevenDays)},name:i.name,webUrl:i.webUrl})}return t}function g(e){return e&&{activity:{},incompleteData:void 0,startDateTime:new Date(e.startDateTime),platformViews:e.aggregateActivities&&v(e.aggregateActivities)}}function v(e){for(var t=[],n=0,a=e;n<a.length;n++){var i=a[n];"Platform"===i.dimension&&t.push({platform:i.key,viewCount:i.value})}return t}function y(e){return e&&{activity:{},incompleteData:void 0,startDateTime:new Date(e.startDateTime),appPivotViews:e.aggregateActivities&&D(e.aggregateActivities)}}function S(e){var t,n,a,i,r,o,s,c,d,l,u,f,p,m,_,h,b,g,v,y,S,D,I=[];if(e.length>0){I.push({startDateTime:new Date(null===(t=e[0])||void 0===t?void 0:t.startDateTime),viewCount:null===(a=null===(n=e[0])||void 0===n?void 0:n.access)||void 0===a?void 0:a.actionCount,viewerCount:null===(r=null===(i=e[0])||void 0===i?void 0:i.access)||void 0===r?void 0:r.actorCount,engagedViewerCount:null===(s=null===(o=e[0])||void 0===o?void 0:o.access)||void 0===s?void 0:s.engagedActorCount,retained:{viewerCount:null===(d=null===(c=e[0])||void 0===c?void 0:c.retained)||void 0===d?void 0:d.actorCount,viewerPercentage:100}});for(var x=1;x<e.length;x++)I.push({startDateTime:new Date(null===(l=e[x])||void 0===l?void 0:l.startDateTime),viewCount:null===(f=null===(u=e[x])||void 0===u?void 0:u.access)||void 0===f?void 0:f.actionCount,viewerCount:null===(m=null===(p=e[x])||void 0===p?void 0:p.access)||void 0===m?void 0:m.actorCount,engagedViewerCount:null===(h=null===(_=e[x])||void 0===_?void 0:_.access)||void 0===h?void 0:h.engagedActorCount,retained:{viewerCount:null===(g=null===(b=e[x])||void 0===b?void 0:b.retained)||void 0===g?void 0:g.actorCount,viewerPercentage:parseFloat(((null===(y=null===(v=e[x])||void 0===v?void 0:v.retained)||void 0===y?void 0:y.actorCount)/(null===(D=null===(S=e[x-1])||void 0===S?void 0:S.access)||void 0===D?void 0:D.actorCount)*100).toFixed(0))}})}return I}function D(e){for(var t=[],n=0,a=e;n<a.length;n++){var i=a[n];"AppPivot"===i.dimension&&t.push({appPivot:i.key,viewCount:i.value})}return t}function I(e){var t,n,a,i,r,o,s,c;return e&&{AllTime:e.allTime&&{viewCount:null===(n=null===(t=null==e?void 0:e.allTime)||void 0===t?void 0:t.access)||void 0===n?void 0:n.actionCount,viewerCount:null===(i=null===(a=null==e?void 0:e.allTime)||void 0===a?void 0:a.access)||void 0===i?void 0:i.actorCount,engagedViewerCount:null===(o=null===(r=null==e?void 0:e.allTime)||void 0===r?void 0:r.access)||void 0===o?void 0:o.engagedActorCount},LastSevenDays:e.lastSevenDays&&{viewCount:e.lastSevenDays.access&&e.lastSevenDays.access.actionCount,viewerCount:e.lastSevenDays.access&&e.lastSevenDays.access.actorCount,engagedViewerCount:e.lastSevenDays.access&&e.lastSevenDays.access.engagedActorCount,timeSpentInSeconds:e.lastSevenDays.access&&void 0!==e.lastSevenDays.access.timeSpentInSeconds?e.lastSevenDays.access.timeSpentInSeconds:e.lastSevenDays.aggregateActivities&&x(e.lastSevenDays.aggregateActivities),platformViews:e.lastSevenDays.aggregateActivities&&v(e.lastSevenDays.aggregateActivities),appPivotViews:e.lastSevenDays.aggregateActivities&&D(e.lastSevenDays.aggregateActivities),startDateTime:e.lastSevenDays.startDateTime&&new Date(e.lastSevenDays.startDateTime)},LastSevenDaysPercentChange:e.lastSevenDays&&{viewCount:e.lastSevenDays["@oneDrive.actionPercentageChange"],viewerCount:e.lastSevenDays["@oneDrive.actorPercentageChange"],engagedViewerCount:e.lastSevenDays["@oneDrive.engagedActorPercentageChange"],timeSpentInSeconds:e.lastSevenDays["@oneDrive.timeSpentPercentageChange"]},LastThirtyDays:e.lastThirtyDays&&{viewCount:e.lastThirtyDays.access&&e.lastThirtyDays.access.actionCount,viewerCount:e.lastThirtyDays.access&&e.lastThirtyDays.access.actorCount,engagedViewerCount:e.lastThirtyDays.access&&e.lastThirtyDays.access.engagedActorCount,timeSpentInSeconds:e.lastSevenDays.access&&void 0!==e.lastSevenDays.access.timeSpentInSeconds?e.lastThirtyDays.access.timeSpentInSeconds:e.lastThirtyDays.aggregateActivities&&x(e.lastThirtyDays.aggregateActivities),platformViews:e.lastThirtyDays.aggregateActivities&&v(e.lastThirtyDays.aggregateActivities),appPivotViews:e.lastThirtyDays.aggregateActivities&&D(e.lastThirtyDays.aggregateActivities),startDateTime:e.lastThirtyDays.startDateTime&&new Date(e.lastThirtyDays.startDateTime)},LastNinetyDays:e.lastNinetyDays&&{viewCount:e.lastNinetyDays.access&&e.lastNinetyDays.access.actionCount,viewerCount:null===(s=e.lastNinetyDays.access)||void 0===s?void 0:s.actorCount,engagedViewerCount:null===(c=e.lastNinetyDays.access)||void 0===c?void 0:c.engagedActorCount,platformViews:e.lastNinetyDays.aggregateActivities&&v(e.lastNinetyDays.aggregateActivities),appPivotViews:e.lastNinetyDays.aggregateActivities&&D(e.lastNinetyDays.aggregateActivities),startDateTime:e.lastNinetyDays.startDateTime&&new Date(e.lastNinetyDays.startDateTime)},LastThirtyDaysPercentChange:e.lastThirtyDays&&{viewCount:e.lastThirtyDays["@oneDrive.actionPercentageChange"],viewerCount:e.lastThirtyDays["@oneDrive.actorPercentageChange"],engagedViewerCount:e.lastThirtyDays["@oneDrive.engagedActorPercentageChange"],timeSpentInSeconds:e.lastThirtyDays["@oneDrive.timeSpentPercentageChange"]},isDataForAllAssociatedSites:"True"===e["@oneDrive.isDataForAllAssociatedSites"],aggregatedSitesCounts:Number(e["@oneDrive.aggregatedSitesCounts"]),ItemActivityStats:e.itemActivityStats&&e.itemActivityStats.map(h)}}function x(e){var t=e.filter(function(e){return"DwellTime"===e.dimension})[0];return t&&t.value}var C=function(e){function t(t){return e.call(this,t,"SiteAnalyticsDataSource")||this}return(0,o.XJ)(t,e),t.prototype.getDailySiteActivity=function(e,t,n){return this.getDailyActivity(e,t,n)},t.prototype.getTotalSiteActivity=function(){return this.getTotalActivity()},t}(function(e){function t(t,n,a){void 0===a&&(a=!1);var i=e.call(this,{dataSourceName:n,id:n},{pageContext:t})||this;return i._isInVivaHome=a,i}return(0,o.XJ)(t,e),t.prototype.getDailyActivity=function(e,t,n){var a=this,i=e.toISOString(),r=t.toISOString();n=n||"day";var s="startDateTime=".concat(i,"&endDateTime=").concat(r,"&interval=").concat(n);return this._getBaseUrl().then(function(e){return a.getDataUtilizingLegacyCache((0,o.W_)({url:"".concat(e,"/").concat("oneDrive.getActivitiesByInterval","?").concat(s),parseResponse:function(e){if(e){var t=JSON.parse(e);if(t&&t.value)return t.value.map(h)}return[]},qosName:"GetDailyActivity"},_))})},t.prototype.getTotalActivity=function(){var e=this;return this._getBaseUrl().then(function(t){return e.getDataUtilizingLegacyCache((0,o.W_)({url:"".concat(t,"/analytics/allTime"),parseResponse:function(e){return e?h(JSON.parse(e)):{}},qosName:"GetTotalActivity"},_))})},t.prototype.getTopListItems=function(e,t,n){return t=t||i.RegularSite,this._getTopListItemsForSiteType(t,e,n)},t.prototype.getBestTimeToPublish=function(){var e=this;return this._getBaseUrl().then(function(t){return e.getDataUtilizingLegacyCache((0,o.W_)({url:t+"?$expand=insights($select=bestTimeToPublish)",qosName:"BestTimeToPublish",parseResponse:function(e){var t=JSON.parse(e).insights.bestTimeToPublish,n=t.bestTimeToPublishDayOfWeekAndHour.split(" ");return{bestDayOfWeek:n[0],bestHour:Number(n[1]),nextBestTime:new Date(t.nextBestTimeToPublish)}}},_))})},t.prototype.getAggregatedAnalytics=function(e,t,n){var a=this,i=e.toISOString(),r=t.toISOString(),s="startDateTime=".concat(i,"&endDateTime=").concat(r),c={method:"GET",noRedirect:!0,additionalHeaders:{accept:"application/json",Caller:"SPSiteAnalytics"}};return this._getBaseUrl().then(function(e){var t=e+"/oneDrive.getAggregatedAnalytics?"+s+"&"+n+"&select=*";return a.getDataUtilizingLegacyCache((0,o.W_)({url:t,parseResponse:function(e){var t=JSON.parse(e);return a._getAggregatedAnalyticsInConsumableForm(t)},qosName:"SPAnalyticsExcelDownload"},c))})},t.prototype.getVCAggregatedAnalytics=function(e,t,n,a){var i=this;void 0===a&&(a=!1);var r=e.toISOString(),s=t.toISOString(),c="startDateTime=".concat(r,"&endDateTime=").concat(s),d=m.HW.isActivated("1a2920b6-f607-405f-a61a-777d56b03595","09/20/2023","Disable sending the platform name for Vroom API request")?"":"source="+(this._isInVivaHome?"vivahome":"sharepoint")+(a?"_download":"")+"&";return this._getBaseUrl().then(function(e){var t=e+"/oneDrive.getVCAggregatedAnalytics?"+c+"&"+n+"&"+d+"select=*";return i.getDataUtilizingLegacyCache((0,o.W_)({url:t,parseResponse:function(e){var t=JSON.parse(e);return i._getVCAggregatedAnalyticsInConsumableForm(t)},qosName:"VCAnalyticsExcelDownload"},_))})},t.prototype.getPlatformStatistics=function(e,t,n){var a=this,i=e.toISOString(),r=t.toISOString();n=n||"day";var s="startDateTime=".concat(i,"&endDateTime=").concat(r,"&aggregateBy=Platform&interval=").concat(n);return this._getBaseUrl().then(function(e){return a.getDataUtilizingLegacyCache((0,o.W_)({url:"".concat(e,"/").concat("oneDrive.getActivitiesByInterval","?").concat(s),parseResponse:function(e){if(e){var t=JSON.parse(e);if(t&&t.value)return t.value.map(h)}return[]},qosName:"getPlatformStatistics"},_))})},t.prototype.getDwellStatsForSite=function(e,t){var n=this,a=e.toISOString(),i=t.toISOString(),r="(startDateTime='".concat(a,"',endDateTime='").concat(i,"',aggregateBy='DwellTime')");return this._getBaseUrl().then(function(e){return n.getDataUtilizingLegacyCache((0,o.W_)({url:"".concat(e,"/").concat("oneDrive.getAnalytics").concat(r,"?").concat("$expand=lastSevenDays,lastThirtyDays,itemActivityStats"),parseResponse:function(e){if(e){var t=JSON.parse(e);if(t)return I(t)}return{ItemActivityStats:[],LastSevenDays:{},LastThirtyDays:{},LastSevenDaysPercentChange:{},LastThirtyDaysPercentChange:{}}},qosName:"getDwellStatsForSite"},_))})},t.prototype._getAggregatedAnalyticsInConsumableForm=function(e){return e&&{accessStatsByDay:e.accessStatsByDay&&I(e.accessStatsByDay),accessStatsByHour:e.accessStatsByHour&&e.accessStatsByHour.map(h),platformStatsByDay:e.platformStatsByDay&&e.platformStatsByDay.map(g),lastSevenDaysTopItemsByViewers:e.lastSevenDaysTopItemsByViewers&&this._getTopItemsForAggregatedAnalytics(e.lastSevenDaysTopItemsByViewers),lastSevenDaysTopItemsByViews:e.lastSevenDaysTopItemsByViews&&this._getTopItemsForAggregatedAnalytics(e.lastSevenDaysTopItemsByViews),lastSevenDaysTopItemsByTimeSpent:e.lastSevenDaysTopItemsByTimeSpent&&this._getTopItemsForAggregatedAnalytics(e.lastSevenDaysTopItemsByTimeSpent)}},t.prototype._getVCAggregatedAnalyticsInConsumableForm=function(e){var t="true"===e.isPremiumLicenseEnabled||m.IT.isFeatureEnabled({ODB:60231});return e&&{isPremiumEnabled:t,lastModifiedDateTime:e.lastModifiedDateTime&&new Date(e.lastModifiedDateTime),accessStatsByDay:e.accessStatsByDay&&I(e.accessStatsByDay),platformStatsByDay:e.platformStatsByDay&&e.platformStatsByDay.map(g),appPivotStatsByDay:e.appPivotStatsByDay&&e.appPivotStatsByDay.map(y),lastSevenDaysTopItemsByViewers:e.lastSevenDaysTopItemsByViewers&&this._getTopItemsForAggregatedAnalytics(e.lastSevenDaysTopItemsByViewers),lastSevenDaysTopItemsByViews:e.lastSevenDaysTopItemsByViews&&this._getTopItemsForAggregatedAnalytics(e.lastSevenDaysTopItemsByViews),lastSevenDaysTopItemsByTimeSpent:e.lastSevenDaysTopItemsByTimeSpent&&this._getTopItemsForAggregatedAnalytics(e.lastSevenDaysTopItemsByTimeSpent),topCards:e.topCards&&this._getTopCards(e.topCards),platformStats:e.platformStats&&I(e.platformStats),appPivotStats:e.appPivotStats&&I(e.appPivotStats),statsByMonth:e.statsByMonth&&S(e.statsByMonth)}},t.prototype.getSiteActivityForHubFromYggdrasil=function(e,t){var n=this,a=e.toISOString(),i=t.toISOString(),r="(startDateTime='".concat(a,"',endDateTime='").concat(i,"')"),s={method:"GET",noRedirect:!0,additionalHeaders:{accept:"application/json",Caller:"SPHubAnalytics"}};return this._getBaseUrl().then(function(e){return n.getDataUtilizingLegacyCache((0,o.W_)({url:"".concat(e,"/").concat("oneDrive.getHubAnalytics").concat(r,"?").concat("$expand=lastSevenDays,lastThirtyDays,allTime,itemActivityStats"),parseResponse:function(e){if(e){var t=JSON.parse(e);if(t)return I(t)}return{ItemActivityStats:[],LastSevenDays:{},LastThirtyDays:{},LastSevenDaysPercentChange:{},LastThirtyDaysPercentChange:{},AllTime:{},isDataForAllAssociatedSites:!0}},qosName:"getSiteActivityForHubFromYggdrasil"},s))})},t.prototype.getPlatformInsights=function(){var e=this;return this._getBaseUrl().then(function(t){return e.getDataUtilizingLegacyCache((0,o.W_)({url:"".concat(t,"/").concat("oneDrive.getInsights"),parseResponse:function(e){if(e){var t=JSON.parse(e);if(t&&t.value)return t.value}return[]},qosName:"getInsightsForPopularPlatforms"},_))})},t.prototype._getBaseUrl=function(e){var t=this._getAPIBaseUrl(e),n=new p.b(t).getAuthority(),a=u.a.normalizeLower(this._pageContext.siteId,!1),i=u.a.normalizeLower(this._pageContext.webId,!1);return f.c.resolve("".concat(t,"/sites/").concat(n,",").concat(a,",").concat(i))},t.prototype._getAPIBaseUrl=function(e){var t=(0,l.i)(this._pageContext);return e=e||"2.1","".concat(t,"/_api/v").concat(e)},t.prototype._getTopListItemsForSiteType=function(e,t,n){var a=this,i="GetTopListItems_".concat(r[t],"_").concat(e,"_").concat(n),s={method:"GET",noRedirect:!0,additionalHeaders:{accept:"application/json",Caller:"HubSite"===e?"SPHubAnalytics":"SPSiteAnalytics"}};return this._getBaseUrl().then(function(r){var c="".concat(r,"/").concat(a._getAPIMethodUrlForTopListItems(e,t,n));return a.getDataUtilizingLegacyCache((0,o.W_)({url:c,parseResponse:function(e){var t=[];if(e){var n=JSON.parse(e);n&&(t=n.value);for(var a=0,i=t;a<i.length;a++){var r=i[a];r&&(r.analytics&&r.analytics.lastSevenDays&&(r.analytics.lastSevenDays=h(r.analytics.lastSevenDays)),r.sharepointIds&&r.sharepointIds.url&&(r.webUrl=r.sharepointIds.url))}}return t},qosName:i},s))})},t.prototype._getTopItemsForAggregatedAnalytics=function(e){return e&&{documents:e.documents&&b(e.documents),news:e.news&&b(e.news),sitePages:e.pages&&b(e.pages)}},t.prototype._getTopCards=function(e){return(null==e?void 0:e.cardInstances)&&{cardInstances:this.mapTopCards(e.cardInstances)}},t.prototype.mapTopCards=function(e){var t,n,a,i,r,o,s,c,d,l,u,f,p,m,_=[];for(var h in e){var b={id:null===(t=e[h])||void 0===t?void 0:t.id,name:null===(n=e[h])||void 0===n?void 0:n.name,analytics:{LastSevenDays:{engagedViewerCount:(null===(o=null===(r=null===(i=null===(a=e[h])||void 0===a?void 0:a.analytics)||void 0===i?void 0:i.lastSevenDays)||void 0===r?void 0:r.retained)||void 0===o?void 0:o.engagedActorCount)||0},LastThirtyDays:{engagedViewerCount:(null===(l=null===(d=null===(c=null===(s=e[h])||void 0===s?void 0:s.analytics)||void 0===c?void 0:c.lastThirtyDays)||void 0===d?void 0:d.retained)||void 0===l?void 0:l.engagedActorCount)||0},LastNinetyDays:{engagedViewerCount:(null===(m=null===(p=null===(f=null===(u=e[h])||void 0===u?void 0:u.analytics)||void 0===f?void 0:f.lastNinetyDays)||void 0===p?void 0:p.retained)||void 0===m?void 0:m.engagedActorCount)||0}}};_.push(b)}return _},t.prototype._getOrderByUrlForTopListItems=function(e){switch(e){case r.ViewCount:return"analytics/lastSevenDays/access/actionCount";case r.ViewerCount:return"analytics/lastSevenDays/access/actorCount";case r.EngagedViewerCount:return"analytics/lastSevenDays/access/engagedActorCount";case r.TimeSpentInSeconds:return"analytics/lastSevenDays/access/timeSpentInSeconds"}},t.prototype._getOrderByAccessUrlForTopListItems=function(e){switch(e){case r.ViewCount:return"action";case r.ViewerCount:return"actor";case r.EngagedViewerCount:return"engagedActor"}},t.prototype._getFilterUrlForTopListItems=function(e){switch(e){case a.Document:return"isof('oneDrive.Item') AND oneDrive.item/file ne null";case a.NewsPost:return"isof('oneDrive.Page') AND oneDrive.page/news ne null";case a.SitePage:return"isof('oneDrive.Page') AND oneDrive.page/news eq null";case a.Site:return null}},t.prototype._getAPIMethodUrlForTopListItems=function(e,t,n){var r=n?this._getFilterUrlForTopListItems(n):null;if(e===i.RegularSite){var o=this._getOrderByUrlForTopListItems(t),s="items";return r?"".concat(s,"?$filter=").concat(r,"&$expand=analytics($expand=lastSevenDays)&$orderby=").concat(o," desc"):"".concat(s,"?$expand=analytics($expand=lastSevenDays)&$orderby=").concat(o," desc")}var c=this._getOrderByAccessUrlForTopListItems(t),d="(interval=7,topN=10,orderByAccess='".concat(c,"')");return n===a.Site?"".concat("oneDrive.getHubTopSitesByAccessActivities").concat(d,"?$expand=analytics($expand=lastSevenDays)"):"".concat("oneDrive.getHubTopItemsByAccessActivities").concat(d,"?$expand=analytics($expand=lastSevenDays)&$filter=").concat(r)},t}(d.b)),O=n(24),w=function(e){function t(t){var n=e.call(this,{dataSourceName:"VivaConnectionsDataSource"},{pageContext:t})||this;return n._processResponse=function(e){var t,a,i,r,o,s,c,d=JSON.parse(e),l=null==d?void 0:d.d,u=null===(t=null==l?void 0:l.DashboardItems)||void 0===t?void 0:t.results,f=null===(i=null===(a=null==l?void 0:l.PivotItems)||void 0===a?void 0:a.results)||void 0===i?void 0:i.filter(function(e){return"CompanyFeed"===e.Name}),p=null===(o=null===(r=null==l?void 0:l.PivotItems)||void 0===r?void 0:r.results)||void 0===o?void 0:o.filter(function(e){return"Resources"===e.Name});return{dashboard:u?null===(c=null===(s=u[0])||void 0===s?void 0:s.WebAbsolutePath)||void 0===c?void 0:c.DecodedUrl:void 0,feed:(null==f?void 0:f.length)?n._createPivot(f[0]):void 0,resources:(null==p?void 0:p.length)?n._createPivot(p[0]):void 0}},n._endpoint="".concat((0,l.h)(n._pageContext),"/_api/EE/AppConfiguration"),n}return(0,o.XJ)(t,e),t.prototype.getDashboardAndPivotsConfig=function(){var e=this._endpoint+"?bypasscache=true";return this.dataRequestor.getData({url:e,parseResponse:this._processResponse,qosName:"getVivaConnectionsSettings",method:"GET",noRedirect:!0})},t.prototype.setPivotsConfig=function(e,t){var n=this;return this.getData(function(){return n._endpoint},void 0,"setVivaConnectionsPivotsConfig",function(){return n._createPatchBody(e,t)},"PATCH")},t.prototype._createPivot=function(e){var t;return{audiences:null===(t=null==e?void 0:e.Audiences)||void 0===t?void 0:t.results,name:null==e?void 0:e.Name}},t.prototype._createPatchBody=function(e,t){var n=[];return e&&n.push(this._createPivotItemObject("CompanyFeed")),t&&n.push(this._createPivotItemObject("Resources")),JSON.stringify({__metadata:{type:"SP.AppConfiguration"},PivotItems:{results:n}})},t.prototype._createPivotItemObject=function(e){return{__metadata:{type:"SP.PivotItem"},Name:e,Audiences:{results:[]}}},t}(n(470).b),E=n(41),A=n(20),L=n("react-lib"),k=(0,c.I61)({errorPanelContainer:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:"20px"},errorPanelImage:{height:105,width:140}});function M(e){return L.createElement("div",{className:k.errorPanelContainer},L.createElement(s.H5o,{src:e.imgSrc,className:k.errorPanelImage,alt:e.message}),L.createElement("p",null,e.message))}function P(e){return L.createElement("div",{role:"alert"},!e.hidden&&L.createElement("p",{className:"ms-vivaConnectionsSettings-marginTop ms-vivaConnectionsSettings-errorTextColor"},e.message))}(0,n("fui.util_43").pZ)([{rawString:"p{margin:0}.ms-vivaConnectionsSettings-lineHeight{line-height:20px}.ms-vivaConnectionsSettings-marginTop{margin-top:13px}.ms-vivaConnectionsSettings-sectionTitle{font-weight:600;font-size:16px;margin-top:24px;margin-bottom:0;padding:5px 0}.ms-vivaConnectionsSettings-withinSectionsPaddingTop{padding-top:6px}.ms-vivaConnectionsSettings-toggle{margin-top:8px}[dir=ltr] .ms-vivaConnectionsSettings-marginLeft{margin-left:16px}[dir=rtl] .ms-vivaConnectionsSettings-marginLeft{margin-right:16px}.ms-vivaConnectionsSettings-buttonsSection{margin-top:38px}.ms-vivaConnectionsSettings-displayBlock{display:block;padding-bottom:24px}.ms-vivaConnectionsSettings-errorTextColor{color:"},{theme:"errorText",defaultValue:"#a4262c"},{rawString:";font-size:12px}.ms-vivaConnectionsSettings-sectionborder{padding-bottom:24px;border-top:solid 1px "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";border-bottom:solid 1px "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.ms-vivaConnectionsSettings-bold{font-weight:700}.ms-vivaConnectionsSettings-ViewReportIcon{padding-right:10px;font-size:20px;font-weight:600}.ms-vivaConnectionsSettings-ViewReportButton{font-weight:600}.ms-vivaConnectionsSettings-AnnouncementsIcon{padding-right:8px}"}]);var T,U=function(e){var t=e.primaryFill,n=e.className;return L.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n},L.createElement("path",{d:"M3 2.5a.5.5 0 10-1 0v15c0 .28.22.5.5.5h15a.5.5 0 100-1H16V5.5a.5.5 0 00-.81-.39L10.45 8.9l-3.2-1.83a.5.5 0 00-.45-.03L3 8.74V2.5zm0 7.32l3.97-1.76 3.28 1.87c.18.1.4.09.56-.04L15 6.54V17H3V9.82z",fill:t}))},F=n(7582),H=L.lazy(function(){return n.e(1116).then(n.bind(n,2974)).then(function(e){return{default:e.default}})}),R=function(e){return L.createElement(L.Suspense,{fallback:!1},L.createElement(H,(0,o.W_)({},e)))},N=L.lazy(function(){return n.e(750).then(n.bind(n,2972))});!function(e){e[e.NoErrors=0]="NoErrors",e[e.ErrorGettingVivaConnectionsConfig=1]="ErrorGettingVivaConnectionsConfig",e[e.ErrorMessageForSave=2]="ErrorMessageForSave",e[e.ErrorMessageForCreateDashboard=3]="ErrorMessageForCreateDashboard",e[e.ErrorMessageForAnalytics=4]="ErrorMessageForAnalytics",e[e.ErrorAnalyticsDataUnavailable=5]="ErrorAnalyticsDataUnavailable",e[e.UnexpectedErrorMessageForAnalytics=6]="UnexpectedErrorMessageForAnalytics",e[e.ErrorVCAnalyticsTenantSettingDisabled=7]="ErrorVCAnalyticsTenantSettingDisabled"}(T||(T={}));var B=function(e){function t(t){var a=e.call(this,t)||this;return a._closePanel=function(){a.props.onDismiss&&a.props.onDismiss()},a._onDismissDialog=function(){a._closePanel(),E.Engagement.logData({name:"VivaConnectionsSettingsPanel.ClosePanelWithoutSavingChanges.Click"})},a._onDismiss=function(){a.state.showSaveButton?a._showDialog():a._closePanel()},a._onClickDashboardPage=function(){var e,t,n;if(a.state.dashboardLink)if(E.Engagement.logData({name:"VivaConnectionsSettingsPanel.ViewDashboardButton.Click"}),a.props.fullPageLoadOnDashboardNav)window.location.href=a.state.dashboardLink;else{m.HW.isActivated("69456b6a-c57e-4940-aba6-923fb38353a6")||(a._closePanel(),null===(n=null===(t=null===(e=window.O365Shell)||void 0===e?void 0:e.FlexPane)||void 0===t?void 0:t.CloseFlexPaneForProvider)||void 0===n||n.call(t,null));var i=new URL(a.state.dashboardLink);postMessage("router://".concat(i.pathname),i.origin)}else E.Engagement.logData({name:"VivaConnectionsSettingsPanel.CreateDashboardButton.Click"}),window.location.href="".concat((0,l.h)(a.props.pageContext),"/_layouts/15/CreateSitePage.aspx?ContentTypeId=").concat("0x0101009D1CB255DA76424F860D91F20E6C411800C0E54B39129A4FB6B71E908D1C98831E")},a._isAnnouncementsFlightEnabled=function(){return m.IT.isFeatureEnabled({ODB:60144})},a._isAnnouncementsPremiumLicenseCheckFlightEnabled=function(){return m.IT.isFeatureEnabled({ODB:61373})},a._canUserSeeAnnouncementsSection=function(){var e=a.props.pageContext;return a._isAnnouncementsFlightEnabled()&&e.isCurrentSiteAHomeSite&&O.a.hasPermission(e.webPermMasks,O.a.manageLists)&&(!a._isAnnouncementsPremiumLicenseCheckFlightEnabled()||e.isVCPremiumUser)&&!a._isGCCTenant(e)},a._resetErrorState=function(){a.setState({errorStatus:T.NoErrors})},a._isVivaConnectionsAnalyticsSectionEnabled=function(){return m.IT.isFeatureEnabled({ODB:60939})||m.IT.isFeatureEnabled({ODB:1543})},a._onClickAnalyticsDownload=function(){E.Engagement.logData({name:"VivaConnectionsSettingsPanel.VCAnalyticsDownloadButton.Click"});var e=new A.a({name:"VivaConnectionsSettingsPanel.VCAnalyticsReportDownload"});a.state.errorStatus!==T.NoErrors&&a.setState({errorStatus:T.NoErrors});var t=m.IT.isFeatureEnabled({ODB:61011})?"$expand=platformStatsByDay,appPivotStatsByDay,accessStatsByDay($expand=lastSevenDays,lastThirtyDays,lastNinetyDays,allTime,itemActivityStats),platformStats($expand=lastSevenDays,lastThirtyDays),appPivotStats($expand=lastSevenDays,lastThirtyDays),TopCards($expand=cardInstances($expand=analytics($expand=lastSevenDays,lastThirtyDays)))":"$expand=LastSevenDaysTopItemsByViewers($expand=pages($expand=analytics($expand=lastSevenDays)),documents($expand=analytics($expand=lastSevenDays)),news($expand=analytics($expand=lastSevenDays))),platformStatsByDay,appPivotStatsByDay,accessStatsByDay($expand=lastSevenDays,lastThirtyDays,lastNinetyDays,allTime,itemActivityStats)",i=new Date,r=new Date;r.setDate(i.getDate()-27),a._siteAnalyticsDataSource.getVCAggregatedAnalytics(r,i,t).then(function(t){Promise.all([n.e("odsp.react.lib"),n.e("deferred.resx"),n.e("deferred.odsp-common"),n.e("deferred.items-view"),n.e("deferred.odsp-datasources"),n.e("deferred.odsp-shared-react"),n.e("deferred"),n.e(752)]).then(n.bind(n,2973)).then(function(n){(new n.default).createExcel(t).then(function(){e.end({resultType:A.b.Success})}).catch(function(t){e.end({resultType:A.b.Failure,error:t.message}),a.setState({errorStatus:T.UnexpectedErrorMessageForAnalytics})})}).catch(function(t){e.end({resultType:A.b.Failure,error:t.message}),a.setState({errorStatus:T.UnexpectedErrorMessageForAnalytics})})}).catch(function(t){var n,i;return-1!==(null===(n=null==t?void 0:t.message)||void 0===n?void 0:n.indexOf("(404)"))?(a.setState({errorStatus:T.ErrorAnalyticsDataUnavailable}),e.end({resultType:A.b.ExpectedFailure,error:t.message})):-1!==(null===(i=null==t?void 0:t.message)||void 0===i?void 0:i.indexOf("(403)"))&&-1!==t.message.indexOf("DisableVivaConnectionsAnalytics")?(a.setState({errorStatus:T.ErrorVCAnalyticsTenantSettingDisabled}),e.end({resultType:A.b.ExpectedFailure,error:t.message})):(a.setState({errorStatus:T.UnexpectedErrorMessageForAnalytics}),e.end({resultType:A.b.Failure,error:t.message})),Promise.reject(t)})},a._onClickAnalyticsViewReport=function(){E.Engagement.logData({name:"VivaConnectionsSettingsPanel.VCAnalyticsViewReport.Click"});var e="".concat((0,l.h)(a.props.pageContext),"/_layouts/15/vivaconnectionsanalytics.aspx");window.open(e,"_blank")},a._onToggleFeedState=function(e){a.setState(function(e){return{currentFeed:!e.currentFeed,showSaveButton:!0}})},a._onToggleResourcesState=function(e){a.setState(function(e){return{currentResources:!e.currentResources,showSaveButton:!0}})},a._onSaveClick=function(e){return a.setState({showSpinner:!0,isSaving:!0}),a._vivaConnectionsProvider.setPivotsConfig(a.state.currentFeed,a.state.currentResources).then(function(e){a._closePanel(),a._previousFeedStatus!==a.state.currentFeed&&E.Engagement.logData({name:"VivaConnectionsSettingsPanel.FeedToggledSaved",extraData:{toggleState:a.state.currentFeed}}),a._previousResourcesStatus!==a.state.currentResources&&E.Engagement.logData({name:"VivaConnectionsSettingsPanel.ResourcesToggledSaved",extraData:{toggleState:a.state.currentResources}})}).catch(function(e){a.setState({errorStatus:T.ErrorMessageForSave})})},a._showDialog=function(){a.setState({showDialog:!0})},a._hideDialog=function(){a.setState({showDialog:!1})},a._loadInitialConfig=function(){return a._vivaConnectionsProvider.getDashboardAndPivotsConfig().then(function(e){a.setState({currentFeed:Boolean(e.feed),currentResources:Boolean(e.resources),dashboardLink:e.dashboard,showSpinner:!1}),a._previousFeedStatus=Boolean(e.feed),a._previousResourcesStatus=Boolean(e.resources)}).catch(function(e){a.setState({showSpinner:!1,errorStatus:T.ErrorGettingVivaConnectionsConfig})})},a._isGCCTenant=function(e){var t;return!m.HW.isActivated("e2b6d1c0-0e7d-4f4d-bf8e-2d8f1b2a2c5e")&&["gcc","gcch","dod","ag08","ag09","deu","chn"].includes((null===(t=e.cloudType)||void 0===t?void 0:t.toLowerCase())||"prod")},a._vivaConnectionsProvider=new w(a.props.pageContext),a._showToggles=m.IT.isFeatureEnabled({ODB:60394}),a._isPreviewTagEnabled=!m.IT.isFeatureEnabled({ODB:60498}),a._isVCAnalyticsEnabled=a._isVivaConnectionsAnalyticsSectionEnabled(),a._isVCAnalyticsDashboardEnabled=m.IT.isFeatureEnabled({ODB:60057}),a._siteAnalyticsDataSource=new C(a.props.pageContext),a.state={showSaveButton:!1,showDialog:!1,showSpinner:!0,isSaving:!1,errorStatus:T.NoErrors},a._loadInitialConfig(),E.Engagement.logData({name:"VivaConnectionsSettingsPanel.Opened"}),a}return(0,o.XJ)(t,e),t.prototype.render=function(){var e;if(this.state.showSpinner)e=L.createElement(s.tu6,{label:this.state.isSaving?F.A:""});else if(this.state.errorStatus===T.ErrorGettingVivaConnectionsConfig)e=L.createElement(M,{message:F.q,imgSrc:this.props.errorPanelImageUrl});else{var t=m.OO(F.b,"<b>"+F.L+"</b>");e=L.createElement("div",null,L.createElement("p",{className:"ms-vivaConnectionsSettings-marginTop"},F.E),L.createElement("p",{className:"ms-vivaConnectionsSettings-marginTop"},this._showToggles?F.G:F.F),L.createElement(s.NG4,{href:"https://go.microsoft.com/fwlink/?linkid=2162205",target:"_blank","aria-label":F.C,underline:!0,className:"ms-vivaConnectionsSettings-displayBlock ms-vivaConnectionsSettings-marginTop .ms-vivaConnectionsSettings-withinSectionsPaddingBottom"},F.D),L.createElement("div",null,this._isVCAnalyticsEnabled?L.createElement("div",{className:"ms-vivaConnectionsSettings-sectionborder"},L.createElement("h2",{className:"ms-vivaConnectionsSettings-sectionTitle"},F.c),this._isVCAnalyticsDashboardEnabled?L.createElement(L.Fragment,null,L.createElement("p",{className:"ms-vivaConnectionsSettings-withinSectionsPaddingTop",dangerouslySetInnerHTML:{__html:F.d}}),L.createElement("br",null),L.createElement(s.rfU,{onClick:this._onClickAnalyticsViewReport,"aria-label":F.P,className:"ms-vivaConnectionsSettings-ViewReportButton"},L.createElement(U,{primaryFill:"#ffffff",className:"ms-vivaConnectionsSettings-ViewReportIcon"}),F.Q)):L.createElement(L.Fragment,null,L.createElement("div",null,this.state.errorStatus===T.ErrorAnalyticsDataUnavailable||this.state.errorStatus===T.ErrorVCAnalyticsTenantSettingDisabled||this.state.errorStatus===T.UnexpectedErrorMessageForAnalytics?L.createElement(L.Suspense,{fallback:L.createElement(s.tu6,null)},L.createElement(N,{errorStatus:this.state.errorStatus,resetErrorState:this._resetErrorState})):null),L.createElement("p",{className:"ms-vivaConnectionsSettings-withinSectionsPaddingTop",dangerouslySetInnerHTML:{__html:t}}),L.createElement("br",null),L.createElement(s.rfU,{onClick:this._onClickAnalyticsDownload,"aria-label":F.B,disabled:this.state.errorStatus===T.ErrorAnalyticsDataUnavailable,iconProps:{iconName:"download"}},F.a))):void 0),this._canUserSeeAnnouncementsSection()&&L.createElement(R,{pageContext:this.props.pageContext}),L.createElement("div",null,L.createElement("h2",{className:"ms-vivaConnectionsSettings-sectionTitle"},F.k),L.createElement("p",{className:"ms-vivaConnectionsSettings-withinSectionsPaddingTop"},this.state.dashboardLink?F.h:F.j),L.createElement("br",null),L.createElement(s.rfU,{iconProps:{iconName:this.state.dashboardLink?"View":"Add"},onClick:this._onClickDashboardPage},this.state.dashboardLink?F.g:F.i),L.createElement(P,{message:F.N,hidden:this.state.errorStatus!==T.ErrorMessageForCreateDashboard})),this._showToggles&&L.createElement(L.Fragment,null,L.createElement("div",null,L.createElement("h2",{className:"ms-vivaConnectionsSettings-sectionTitle"},F.t),L.createElement("p",{className:"ms-vivaConnectionsSettings-withinSectionsPaddingTop"},F.s),L.createElement(s.bVQ,{checked:this.state.currentFeed,onText:F.K,offText:F.J,ariaLabel:F.u,onChange:this._onToggleFeedState,disabled:void 0===this.state.dashboardLink,className:"ms-vivaConnectionsSettings-toggle"})),L.createElement("div",null,L.createElement("h2",{className:"ms-vivaConnectionsSettings-sectionTitle"},F.x),L.createElement("p",{className:"ms-vivaConnectionsSettings-withinSectionsPaddingTop"},F.w),L.createElement(s.bVQ,{checked:this.state.currentResources,onText:F.K,offText:F.J,ariaLabel:F.y,onChange:this._onToggleResourcesState,disabled:void 0===this.state.dashboardLink,className:"ms-vivaConnectionsSettings-toggle"})),L.createElement("div",{className:"ms-vivaConnectionsSettings-buttonsSection"},L.createElement(s.rfU,{allowDisabledFocus:!0,text:F.z,className:"ms-vivaConnectionsSettings-toggle\n                ",disabled:!this.state.showSaveButton,onClick:this._onSaveClick}),L.createElement(s.B0k,{allowDisabledFocus:!0,text:F.e,className:"ms-vivaConnectionsSettings-marginLeft",onClick:this._onDismiss}),L.createElement(P,{message:F.O,hidden:this.state.errorStatus!==T.ErrorMessageForSave}),L.createElement(s.X$,{hidden:!this.state.showDialog,onDismiss:this._hideDialog,dialogContentProps:{type:c.r_c.normal,title:F.o,subText:F.n}},L.createElement(c.j5C,null,L.createElement(s.rfU,{onClick:this._onDismissDialog,text:F.m}),L.createElement(s.B0k,{onClick:this._hideDialog,text:F.l}))))))}return L.createElement(c.k8Z,{headerText:this._isPreviewTagEnabled?F.H:F.I,isOpen:!0,closeButtonAriaLabel:F.f,onDismiss:this._onDismiss,className:"ms-vivaConnectionsSettings-lineHeight"},e)},t}(L.Component)}
,2949:(e,t,n)=>{"use strict";n.d(t,{a:()=>E,b:()=>A});var a=n("tslib_102"),i=n(1941),r=n(2795),o=n("odsp.util_578"),s=n(470),c=n(26),d=n(39),l=function(){function e(e){this._formulas=e,this._cache={}}return e.prototype.getFormulas=function(e){if(!e||void 0===e.webTemplate||null===e.webTemplate)return this._formulas;var t=e.webTemplate.toString();return this._cache[t]||(this._cache[t]=this._getFormulasForTemplate(e.webTemplate)),this._cache[t]},e.prototype._getFormulasForTemplate=function(e){for(var t=[],n=0;n<this._formulas.length;n++)this._formulas[n].supportedTemplates.indexOf(e)>-1&&t.push(this._formulas[n]);return t},e}(),u=function(e){function t(t){var n=e.call(this,{},{pageContext:t})||this;return n._parseSingleServerFormula=n._parseSingleServerFormula.bind(n),n}return(0,a.XJ)(t,e),t.prototype.getFormulas=function(){var e=this;return this._cachedFormulas?c.c.resolve(new l(this._cachedFormulas)):this.getData(this._getGetFormulasUrl.bind(this),this._parseGetFormulasResponse.bind(this),"getFilteredFormulas",this._getGetFormulasPostData.bind(this)).then(function(t){if(!e._cachedFormulas)return new l(t)})},t.prototype._getGetFormulasUrl=function(){return d.b.concatenate(this._pageContext.webServerRelativeUrl,"_api","Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetSiteDesigns")},t.prototype._getGetFormulasPostData=function(){return JSON.stringify({includeUntargeted:!0})},t.prototype._getSupportedTemplates=function(e){if(e.WebTemplate){var t=parseInt(e.WebTemplate,10);if(!isNaN(t))return[t]}return[]},t.prototype._parseSingleServerFormula=function(e){return{id:e.Id,chromeOptions:null,title:e.Title,description:e.Description,supportedTemplates:this._getSupportedTemplates(e),isFormula:!0,imageUrl:e.PreviewImageUrl||"",imageAltText:e.PreviewImageUrl&&e.PreviewImageAltText?e.PreviewImageAltText:""}},t.prototype._parseGetFormulasResponse=function(e){var t=[],n=JSON.parse(e);if(n.d&&n.d.GetSiteDesigns){var a=n.d.GetSiteDesigns.results;if(a&&a.length)for(var i=0;i<a.length;i++)a[i].IsDefault||t.push(this._parseSingleServerFormula(a[i]))}return t},t}(s.a),f=n(2707),p=n(2659),m=n(96),_=n(2839),h=n(360),b=n(225),g=n(2497),v=n(2592),y=n(2896),S=n(2950),D=n(7581),I=n(20),x=n(43),C={ODB:1076},O="@{triggerBody()?['entity']?['RequestingSiteTitle']}",w=o.HW.isActivated("15a146ba-7a11-463c-b36e-d2bf3ac1e01e"),E=function(){function e(e){var t=this;this._uploadLogoPromise=function(e){if(e){var n="__hubLogo__"+e.name;return(0,_.a)(t._spListCollectionDataSource,t._webDataSource,n,e).then(function(e){return(0,m.i)(t._params.pageContext)+e.serverRelativeUrl})}return null===e?c.c.resolve(null):t._hubSite?c.c.resolve(t._hubSite.logoUrl):c.c.resolve("")},this._onSaveClickRegister=function(e,n,a,i,r,o,s){var c=t._params;c.onSave&&c.onSave(),t._uploadLogoPromise(n).then(function(n){var s={Description:"",LogoUrl:n,SiteId:c.pageContext.siteId,SiteUrl:c.pageContext.siteAbsoluteUrl,Targets:r?r.map(function(e){return e.userId}).join(","):"",SiteDesignId:a,RequiresJoinApproval:i,Title:e,HideNameInNavigation:o};t._hubDataSource.registerHubSite(s).then(function(e){t._hubSite=e,c.onSaved&&(t.setState({isPanelOpen:!1}),c.onSaved())},function(e){t._setErrorMessage(e)})})},this._onSaveClick=function(e,n,i,r,o,s,c){t.setState({errorMessage:null});var d=t._params;d.onSave&&d.onSave();var l,u,f=t._hubSite,p=f.name||"";e=(e||p||"").trim(),u=w?new I.a({name:"HubSettingsPanel.OnSave"}):new((0,h.a)(I.a))({name:"HubSettingsPanel.OnSave",pillar:"Edit",veto:function(e){return"HubSettingsPanel.OnSave Failure"}}),t._uploadLogoPromise(n).then(function(n){return e!==p&&(l=!0,(0,S.b)("UpdateName",d.pageContext)),n!==f.logoUrl&&(l=!0,(0,S.b)("UpdateLogo",d.pageContext),n||(0,S.b)("SaveRemoveLogo",d.pageContext)),i!==f.siteDesignId&&(l=!0,(0,S.b)("UpdateSiteDesign",d.pageContext)),r!==f.requiresJoinApproval&&(l=!0,(0,S.b)("UpdateRequiresJoinApproval",d.pageContext)),s!==f.hideNameInNavigation&&(l=!0,(0,S.b)("UpdateHideNameInNavigation",d.pageContext)),c!==f.parentHubSiteId&&(l=!0,(0,S.b)("UpdateConnectHubSite",d.pageContext)),t._containDifferentTargets(o,f.targets)&&(l=!0,(0,S.b)("UpdateTargets",d.pageContext)),l?t._hubDataSource.updateHubSite((0,a.W_)((0,a.W_)({},f),{name:e,logoUrl:n,description:f.description||"",siteDesignId:i,requiresJoinApproval:r,targets:o,parentHubSiteId:c||x.a.Empty,hideNameInNavigation:s})):l?t._hubDataSource.updateHubSite((0,a.W_)((0,a.W_)({},f),{name:e,logoUrl:n,description:f.description||"",siteDesignId:i,requiresJoinApproval:r,parentHubSiteId:c,hideNameInNavigation:s})):void 0}).then(function(){if(l&&!d.isTenantAdminScenario)return t._hubDataSource.getHubData(!1,!0)}).then(function(){u.end({resultType:I.b.Success}),l&&d.onSaved&&d.onSaved(),t.setState({isPanelOpen:!1})},function(e){u.end({resultType:I.b.Failure}),t._setErrorMessage(e)})},this._onCancelClick=function(){t._params.onDismiss&&t._params.onDismiss(),t.setState({isPanelOpen:!1})},this._onCreateJoinApprovalFlowClick=function(){(0,S.b)("CreateJoinApprovalFlow.Click",t._params.pageContext),t._getCurrentOfficialApprovalFlowTemplate().then(function(e){t._createHubJoinApprovalFlowQos=w?new I.a({name:"HubSettingsPanel.CreateHubJoinApprovalFlow"}):new((0,h.a)(I.a))({name:"HubSettingsPanel.CreateHubJoinApprovalFlow",pillar:"Edit",veto:function(e){return"HubSettingsPanel.CreateHubJoinApprovalFlow Failure"}});var n={actionName:g.c.CreateFlowFromTemplate,actionData:{templateName:e.id,designTimeParameters:{"parameters.sharepoint.site":t._params.pageContext.webAbsoluteUrl,"parameters.sharepoint.hubSiteId":t._hubSite.id,"parameters.sharepoint.hubSiteTitle":t._hubSite.name,"parameters.sharepoint.approvalTitle":o.OO(D.r,O,t._hubSite.name),"parameters.sharepoint.approvalDetailsText":o.OO(D.q,O,t._hubSite.name),"parameters.sharepoint.emailApprovedSubject":o.OO(D.t,O,t._hubSite.name),"parameters.sharepoint.emailApprovedBodyTitle":o.OO(D.s,O,t._hubSite.name),"parameters.sharepoint.emailRejectedSubject":o.OO(D.v,O,t._hubSite.name),"parameters.sharepoint.emailRejectedBodyTitle":o.OO(D.u,t._hubSite.name)}},flow:{id:void 0,templateName:e.id},widgetType:g.e.FlowCreation,additionalEvents:[g.d.GetStrings]};t.setState({flowWidgetPanelProps:{isOpen:!0,pageContext:t._params.pageContext,errorImgUrl:t._params.flowWidgetErrorImageUrl,widgetParams:n,onFlowCreationSucceeded:function(){return t._onFlowCreationSucceeded()},onGetStrings:function(e){return t._onGetStrings(e)},onWidgetError:function(e){return t._onWidgetError(e)},onDismiss:function(){return t._onFlowPanelDismissed()}}})}).catch(function(e){t.setState({hubSiteJoinErrorMessage:D.e})})},this._params=e,this._params.hubSettingsPanelContainer.state={isPanelOpen:!0,flowWidgetPanelProps:{isOpen:!1}}}return e.prototype.componentDidMount=function(){var e,t=this,n=this._params.pageContext;this._hubDataSource=new i.HubDataSource(n),this._spListCollectionDataSource=new f.a(n),this._webDataSource=new p.a(n),this._flowDataSource=new r.a(n);var a=this._params.isRegisterPanel,s=this._params.panelClassName?this._params.panelClassName:"ms-HubSettingsPanel";if(a)this.setState({initialHubSiteTargets:[],panelClassName:s});else{var d=void 0;w||(d=new b.CustomerPromise({scenario:"HubSettingsPanel.OnLoad",pillar:"Edit"}));var l={hubSite:this._hubDataSource.getHubSite(n.hubSiteId),hubSites:this._hubDataSource.getHubSites(),parentHub:this._hubDataSource.getConnectedHubs(this._params.pageContext.hubSiteId,i.HubSiteQueryOption.Parent),associatedHubs:this._hubDataSource.getConnectedHubs(this._params.pageContext.hubSiteId,i.HubSiteQueryOption.Children),formulaDataSet:c.c.resolve(),hubSiteJoinApprovalFlow:c.c.resolve()},m=new u(n);l.formulaDataSet=m.getFormulas().catch(function(){}),o.HW.isActivated("47F02A79-1C13-4C5A-823D-05E390B77517","10/27/2020","Switch BizApps flight checks to farm settings")?o.tH.isFeatureEnabled(C)&&(l.hubSiteJoinApprovalFlow=A(n.siteAbsoluteUrl,this._flowDataSource).catch(function(){})):1===Number(null===(e=null==n?void 0:n.farmSettings)||void 0===e?void 0:e.ExternalService_bizappshubsitejoinapprovalenabled)&&(l.hubSiteJoinApprovalFlow=A(n.siteAbsoluteUrl,this._flowDataSource).catch(function(){})),c.c.all(l).then(function(e){var n=e.hubSite,a=e.hubSites,i=e.parentHub,r=e.formulaDataSet,o=e.hubSiteJoinApprovalFlow,c=e.associatedHubs,l=[];if((l=a?a.filter(function(e){return e.parentHubSiteId!==n.id}).map(function(e){return{key:e.id,text:e.name,data:{parentHubSiteId:e.parentHubSiteId}}}):[]).length>0&&(l.unshift({key:"",text:D.k}),i&&i[0])){var u=!1;for(var f in l)if(l[f].key===i[0].id){u=!0;break}u||l.push({key:i[0].id,text:i[0].name})}if(n){t._hubSite=n,t._hubSiteTargets=n.targets;var p=n.requiresJoinApproval&&!o;t.setState({parentHub:i&&i[0],initialHubSettings:n,connectHubSiteOptions:l,formulaDataSet:r,hubSiteJoinApprovalFlow:o,hubSiteJoinErrorMessage:p?D.a:void 0,initialHubSiteTargets:t._hubSiteTargets,panelClassName:s,associatedHubs:c})}!w&&d&&d.end({resultType:b.ResultTypeEnum.Success})},function(e){!w&&d&&(d.end({resultType:b.ResultTypeEnum.Failure,veto:"HubSettingsPanel.OnLoad Failure"}),t.setState({errorMessage:D.p}))})}},e.prototype.componentWillUnmount=function(){},e.prototype.getRenderProps=function(){var e,t,n,i=this._params,r=i.hubSettingsPanelContainer.state;n=o.HW.isActivated("25978BDA-4EB3-433B-8B9A-E8D64E89F160","10/27/2020","Switch BizApps flight checks to farm settings")?o.tH.isFeatureEnabled(C):1===Number(null===(t=null===(e=i.pageContext)||void 0===e?void 0:e.farmSettings)||void 0===t?void 0:t.ExternalService_bizappshubsitejoinapprovalenabled);var s=(0,a.W_)((0,a.W_)({},r),{emptyImageUrl:i.emptyImageUrl,onCancel:this._onCancelClick,pageContext:i.pageContext,hubSiteJoinApprovalFlightEnabled:n,onCreateJoinApprovalFlow:this._onCreateJoinApprovalFlowClick,showAssociateSitesPeoplePicker:!!i.showAssociateSitesPeoplePicker&&i.showAssociateSitesPeoplePicker,hideLogoPicker:!!i.hideLogoPicker&&i.hideLogoPicker,hideJoinApproval:!!i.hideJoinApproval&&i.hideJoinApproval,hideHubSiteDesign:!!i.hideHubSiteDesign&&i.hideHubSiteDesign,hideHideNameInNav:!!i.hideHideNameInNav&&i.hideHideNameInNav,hideConnectedHubs:!!i.hideConnectedHubs&&i.hideConnectedHubs,hideSaveAndCancel:!!i.hideSaveAndCancel&&i.hideSaveAndCancel,hideSavingSpinner:!!i.hideSavingSpinner&&i.hideSavingSpinner,isTenantAdminScenario:!!i.isTenantAdminScenario&&i.isTenantAdminScenario});return i.isRegisterPanel?(0,a.W_)((0,a.W_)({},s),{onSave:this._onSaveClickRegister,isRegisterPanel:!0}):(0,a.W_)((0,a.W_)({},s),{onSave:this._onSaveClick,isRegisterPanel:!1})},e.prototype.setState=function(e){this._params.hubSettingsPanelContainer.setState(e)},e.prototype._setErrorMessage=function(e){var t=e&&e.message&&e.message.value;this._params.onSaveFailure&&this._params.onSaveFailure(t),this.setState({errorMessage:t||D.p})},e.prototype._containDifferentTargets=function(e,t){return!e||!t||e.length!==t.length||!e.every(function(e){return t.some(function(t){return e.userId===t.userId})})},e.prototype._onFlowCreationSucceeded=function(){var e=this;(0,S.b)("JoinApprovalFlowCreated",this._params.pageContext),this._createHubJoinApprovalFlowQos.end({resultType:I.b.Success}),A(this._params.pageContext.siteAbsoluteUrl,this._flowDataSource).then(function(t){e.setState({hubSiteJoinApprovalFlow:t,hubSiteJoinErrorMessage:t?null:D.a,flowWidgetPanelProps:{isOpen:!1}})}).catch(function(t){e._setErrorMessage(t),e.setState({flowWidgetPanelProps:{isOpen:!1}})})},e.prototype._onFlowPanelDismissed=function(){this._createHubJoinApprovalFlowQos.end({resultType:I.b.ExpectedFailure}),this.setState({flowWidgetPanelProps:{isOpen:!1}})},e.prototype._onWidgetError=function(e){this._createHubJoinApprovalFlowQos.end({resultType:I.b.Failure}),this.setState({hubSiteJoinErrorMessage:D.x})},e.prototype._onGetStrings=function(e){e(null,{FLOW_CREATION_CREATE_BUTTON:D.w,FLOW_CREATION_HEADER:D.y})},e.prototype._getCurrentOfficialApprovalFlowTemplate=function(){var e;e=w?new I.a({name:"HubSettingsPanel.GetApprovalFlowTemplate"}):new((0,h.a)(I.a))({name:"HubSettingsPanel.GetApprovalFlowTemplate",pillar:"Edit",veto:function(e){return"HubSettingsPanel.GetApprovalFlowTemplate Failure"}});var t=L();return this._flowDataSource.getFlowTemplatesByWeb(t).then(function(t){var n=t.filter(function(e){return e.categoryNames.indexOf("OOB_CURRENT")>-1});return n.length>0?(e.end({resultType:I.b.Success}),n[0]):(e.end({resultType:I.b.Failure}),c.c.reject(new Error("No official current Hub Site Join Approval template")))})},e}();function A(e,t){var n;n=w?new I.a({name:"HubSiteJoinApproval.GetApprovalFlow"}):new((0,h.a)(I.a))({name:"HubSiteJoinApproval.GetApprovalFlow",pillar:"Edit",veto:function(e){return"HubSettingsPanel.GetApprovalFlow Failure"}});var a={flows:t.getFlowInstancesByWeb(e),templates:t.getFlowTemplatesByWeb(L())};return c.c.all(a).then(function(e){var t,a,i,r,o=(t=e.flows,a=e.templates,i=a.map(function(e){return e.id}),0===(r=t.filter(function(e){return e.state===y.a.Started&&i.indexOf(e.templateName)>-1})).length?null:1===r.length?r[0]:r.sort(function(e,t){var n=new Date(e.createdTime);return new Date(t.createdTime).getTime()-n.getTime()})[0]),s=o?{resultType:I.b.Success}:{resultType:I.b.ExpectedFailure};return n.end(s),o}).catch(function(e){return n.end({resultType:I.b.Failure}),c.c.reject(e)})}function L(){return(0,v.f)()?"SHAREPOINT_APPROVALS_HUBJOIN_TIP1":"SHAREPOINT_APPROVALS_HUBJOIN"}}
,2903:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>i});var a=function(){function e(){}return e.OFFICE_SUPPORT_HOME_LINK="https://learn.microsoft.com/${locale}/sharepoint/sharepoint-online",e.REGISTER_HUB_SITE_HELP_LINK="https://learn.microsoft.com/${locale}/sharepoint/create-hub-site",e.REGISTER_HUB_TO_HUB_HELP_LINK="https://learn.microsoft.com/${locale}/sharepoint/hub-to-hub-association",e.SET_UP_HUB_SITE_SUPPORT_LINK="https://support.microsoft.com/${locale}/office/e2daed64-658c-4462-aeaf-7d1a92eba098",e.TEMAS_CONNECTED_SITE_HELP_LINK="https://learn.microsoft.com/${locale}/sharepoint/teams-connected-sites",e}();const i=function(){function e(){}return e.getHelpLink=function(e,t){return e&&0!==e.length?e.replace(/\${locale}/gm,t):a.OFFICE_SUPPORT_HOME_LINK},e}()}
,2881:(e,t,n)=>{"use strict";var a;n.d(t,{a:()=>a}),function(e){e[e.View=0]="View",e[e.Edit=1]="Edit"}(a||(a={}))}
,2882:(e,t,n)=>{"use strict";n.d(t,{a:()=>S});var a=n("tslib_102"),i=n("react-lib"),r=n(2571),o=n(517),s=n("fui.lcoms_828"),c=n("fui.lco_496"),d=n("fui.util_43"),l=n(1250),u=n("fui.core_870"),f=n("odsp.util_578"),p=n(1819);(0,d.pZ)([{rawString:".ReactFieldEditor{padding:4px 3px;position:relative}.ReactFieldEditor .ReactFieldEditor-fieldTitle{font-weight:600;font-size:12px;padding-top:5px;padding-bottom:5px}.ReactFieldEditor .ReactFieldEditor-rendererContainer-withInvisibleRegion{width:calc(100% - 64px);overflow:hidden;text-overflow:ellipsis}.ReactFieldEditor .ReactFieldEditor-titleContainer{display:flex}.ReactFieldEditor .ReactFieldEditor-titleContainer .ReactFieldEditor-titleIcon{align-self:center;font-size:13px;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-titleContainer .ReactFieldEditor-titleIcon{margin-right:8px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-titleContainer .ReactFieldEditor-titleIcon{margin-left:8px}.ReactFieldEditor .ReactFieldEditor-BoolIcon{font-size:16px}.ReactFieldEditor .ReactFieldEditor-core--display{display:inline-block;vertical-align:top;width:100%;font-size:14px;font-weight:400;outline:0;padding:6px 0 7px 0;border:2px solid transparent;box-sizing:border-box;-webkit-touch-callout:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}html[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--display{margin-left:-2px}html[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--display{margin-right:-2px}.ReactFieldEditor .ReactFieldEditor-core--display:focus{border:2px solid "},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";border-radius:2px}@media (forced-colors:active){.ReactFieldEditor .ReactFieldEditor-core--display:focus{background:window;color:windowtext;border:3px solid highlight}}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--display:focus{padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--display:focus{padding-right:6px}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--display:focus:hover{padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--display:focus:hover{padding-right:6px}.ReactFieldEditor .ReactFieldEditor-core--display:hover{border:2px solid "},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";border-radius:2px;background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";padding:6px 0 7px 0}.ReactFieldEditor .ReactFieldEditor-core--display:focus:hover{border:2px solid "},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";border-radius:2px;background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:"}@media (forced-colors:active){.ReactFieldEditor .ReactFieldEditor-core--display:focus:hover{background:window;color:windowtext;border:3px solid highlight}}.ReactFieldEditor .ReactFieldEditor-core--display .od-FieldRenderer-text{max-height:none;word-break:break-word}.ReactFieldEditor .ReactFieldEditor-core--display .od-FieldRenderer-text.is-truncated{overflow:hidden;display:-webkit-box;max-height:80px;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-overflow:ellipsis}.ReactFieldEditor .ReactFieldEditor-core--display .od-FieldRenderer-text.ReactFieldEditor-TextSingleLine{max-height:32px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--display .od-FieldRenderer-text.ReactFieldEditor-TextSingleLine{padding-right:4px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--display .od-FieldRenderer-text.ReactFieldEditor-TextSingleLine{padding-left:4px}.ReactFieldEditor .ReactFieldEditor-core--display.ReactFieldEditor-TextMultiLine{min-height:62px}.ReactFieldEditor .ReactFieldEditor-core--display.ReactFieldEditor-TextMultiLine:focus+.ReactFieldEditor-editButton{opacity:1}.ReactFieldEditor .ReactFieldEditor-core--display.ReactFieldEditor-TextMultiLine:hover+.ReactFieldEditor-editButton{opacity:1}.ReactFieldEditor .ReactFieldEditor-core--display .ms-TextField-field{border:2px solid "},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";border-radius:2px;background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";font-size:14px;padding:6px 0 7px 0;min-width:170px;min-height:32px;max-height:80px;transition:background-color .2s ease,padding-left .2s ease}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--display .ms-TextField-field{padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--display .ms-TextField-field{padding-right:6px}.ReactFieldEditor .ReactFieldEditor-core--edit{display:inline-block;vertical-align:top;width:100%}html[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit{margin-left:-2px}html[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit{margin-right:-2px}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container{border:2px solid "},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";border-radius:2px;background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";height:100%}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .ms-Dropdown-title{padding:2px 0;background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";border:0}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .ms-Dropdown-title:focus{border:0;background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";border:2px solid "},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";border-radius:2px}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .ms-Dropdown-title:focus{padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .ms-Dropdown-title:focus{padding-right:6px}@media (forced-colors:active){.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .ms-Dropdown-title:focus{background:window;color:windowtext;border:3px solid highlight}}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container:hover:not(:focus):not(.is-open){border-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .is-open,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container div:focus{background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .is-open .ms-Dropdown-title,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container div:focus .ms-Dropdown-title{padding:2px 0;border:2px solid "},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";border-radius:2px}@media (forced-colors:active){.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .is-open .ms-Dropdown-title,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container div:focus .ms-Dropdown-title{background:window;color:windowtext;border:3px solid highlight}}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .is-open .ms-Dropdown-title,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container div:focus .ms-Dropdown-title{padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container .is-open .ms-Dropdown-title,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container div:focus .ms-Dropdown-title{padding-right:6px}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-TextField-fieldGroup{height:100%}.ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-TextField .ms-TextField-fieldGroup{background-color:transparent}.ReactFieldEditor .ReactFieldEditor-core--edit .od-FieldRenderer-text{max-height:80px;line-height:19px}.ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field{border:2px solid "},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";border-radius:2px;background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field.isTextFieldMaxHeightKillSwitchActivated{border:2px solid "},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";border-radius:2px;background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";font-size:14px;padding:6px 2px 7px 0;min-width:170px;min-height:32px;max-height:80px;transition:background-color .2s ease,padding-left .2s ease}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field.isTextFieldMaxHeightKillSwitchActivated{padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field.isTextFieldMaxHeightKillSwitchActivated{padding-right:6px}.ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field:not(.isTextFieldMaxHeightKillSwitchActivated){border:2px solid "},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";border-radius:2px;background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";font-size:14px;padding:6px 2px 7px 0;min-width:170px;min-height:32px;transition:background-color .2s ease,padding-left .2s ease}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field:not(.isTextFieldMaxHeightKillSwitchActivated){padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field:not(.isTextFieldMaxHeightKillSwitchActivated){padding-right:6px}.ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field:not(.NumberFieldEditor-Input):focus{border:2px solid "},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";border-radius:2px}@media (forced-colors:active){.ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field:not(.NumberFieldEditor-Input):focus{background:window;color:windowtext;border:3px solid highlight}}.ReactFieldEditor .ReactFieldEditor-core--edit:not(.sp-DateTimePicker) .ms-TextField-field:hover:not(:focus){border-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle{margin-bottom:0}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer{padding:6px 0;width:100%}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer:focus{border:2px solid "},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";border-radius:2px}@media (forced-colors:active){.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer:focus{background:window;color:windowtext;border:3px solid highlight}}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer:hover:not(:focus){border-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Checkbox{margin-bottom:0;padding:6px 0}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox{background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";height:36px}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox{padding-left:0}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox{padding-right:0}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox .ms-ComboBox-Input{background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:"}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox .ms-ComboBox-Input{padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox .ms-ComboBox-Input{padding-right:6px}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox .ms-ComboBox-Input:focus{background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox:hover:not(:focus){border-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox:focus .ms-ComboBox-CaretDown-button{color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ComboBox .ms-ComboBox-CaretDown-button{background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ChoiceFieldGroup{padding:2px 0}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ChoiceFieldGroup-flexContainer>.ms-ChoiceField:first-child{margin-top:4px}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Checkbox,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ChoiceFieldGroup,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer{border:2px solid "},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:";border-radius:2px;background-color:"},{theme:"neutralLighterAlt",defaultValue:"#faf9f8"},{rawString:"}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Checkbox,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-ChoiceFieldGroup,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer{padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Checkbox,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-ChoiceFieldGroup,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer{padding-right:6px}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Checkbox:hover:not(:focus),.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ChoiceFieldGroup:hover:not(:focus),.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer:hover:not(:focus){border-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Checkbox:focus,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ChoiceFieldGroup:focus,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer:focus{border:2px solid "},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";border-radius:2px}@media (forced-colors:active){.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Checkbox:focus,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ChoiceFieldGroup:focus,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Toggle-innerContainer:focus{background:window;color:windowtext;border:3px solid highlight}}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Note-Plain .ms-BasePicker-input,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Note-Plain .ms-Dropdown-title,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Picture .ms-BasePicker-input,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Picture .ms-Dropdown-title,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Taxonomy-termPicker .ms-BasePicker-input,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Taxonomy-termPicker .ms-Dropdown-title,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .sp-DateTimePicker .ms-BasePicker-input,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit .sp-DateTimePicker .ms-Dropdown-title,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit:not(.is-interactiveSave) .ms-BasePicker-input,[dir=ltr] .ReactFieldEditor .ReactFieldEditor-core--edit:not(.is-interactiveSave) .ms-Dropdown-title{padding-left:6px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Note-Plain .ms-BasePicker-input,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Note-Plain .ms-Dropdown-title,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Picture .ms-BasePicker-input,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Picture .ms-Dropdown-title,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Taxonomy-termPicker .ms-BasePicker-input,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .ms-Taxonomy-termPicker .ms-Dropdown-title,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .sp-DateTimePicker .ms-BasePicker-input,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit .sp-DateTimePicker .ms-Dropdown-title,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit:not(.is-interactiveSave) .ms-BasePicker-input,[dir=rtl] .ReactFieldEditor .ReactFieldEditor-core--edit:not(.is-interactiveSave) .ms-Dropdown-title{padding-right:6px}.ReactFieldEditor .ReactFieldEditor-core--edit.is-noDescription+.ReactFieldEditor-fieldDescription{margin-top:0}.ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Attachments-UploadContainer,.ReactFieldEditor .ReactFieldEditor-core--edit .ReactFieldEditor-Thumbnail,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-BasePicker-text,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Checkbox,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-ChoiceFieldGroup,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-Dropdown-container,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-SelectionZone,.ReactFieldEditor .ReactFieldEditor-core--edit .ms-TextField-wrapper{border:1px solid;border-radius:4px;border-color:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:" "},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:" "},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:" "},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-fieldDescription{font-size:12px;color:"},{theme:"bodySubtext",defaultValue:"#605e5c"},{rawString:";margin-top:4px}.ReactFieldEditor .ReactFieldEditor-fieldDescription.isViewerInEditor{margin-top:12px}.ReactFieldEditor .ReactFieldEditor-fieldDescription-top{font-size:12px;color:"},{theme:"bodySubtext",defaultValue:"#605e5c"},{rawString:";padding-bottom:3px;margin-top:-2px;font-style:italic}.ReactFieldEditor .ReactFieldEditor-state{margin-top:4px;font-size:12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";transition:height .15s ease}.ReactFieldEditor .ReactFieldEditor-stateMessageContainer{display:flex;align-items:center}[dir=ltr] .ReactFieldEditor .ReactFieldEditor-stateIndicator{margin-right:4px}[dir=rtl] .ReactFieldEditor .ReactFieldEditor-stateIndicator{margin-left:4px}.ReactFieldEditor .ReactFieldEditor-placeHolder{color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:";font-size:14px;font-weight:400}.ReactFieldEditor .ReactFieldEditor-placeHolder.is-required{color:"},{theme:"redDark",defaultValue:"#a4262c"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-required{color:"},{theme:"redDark",defaultValue:"#a4262c"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-Button{width:32px;height:32px;min-width:32px;min-height:32px;padding:0}.ReactFieldEditor .ReactFieldEditor-editButton{opacity:0;position:absolute;background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";box-shadow:0 .3px .9px rgba(0,0,0,.1),0 1.6px 3.6px rgba(0,0,0,.13);top:38px}html[dir=ltr] .ReactFieldEditor .ReactFieldEditor-editButton{right:13px}html[dir=rtl] .ReactFieldEditor .ReactFieldEditor-editButton{left:13px}.ReactFieldEditor .ReactFieldEditor-editButton:hover{opacity:1;background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";box-shadow:0 .6px 1.8px rgba(0,0,0,.1),0 3.2px 7.2px rgba(0,0,0,.13)}.ReactFieldEditor .ReactFieldEditor-editButton:focus{opacity:1;background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-editButton:active{background-color:"},{theme:"neutralQuaternaryAlt",defaultValue:"#e1dfdd"},{rawString:"}.ReactFieldEditor .ReactFieldEditor-accessible{position:absolute;top:-9001px;left:-9001px;height:1px;width:1px}[dir=ltr] .ms-ComboBox-option.ms-Button+.ms-Button{margin-left:0}[dir=rtl] .ms-ComboBox-option.ms-Button+.ms-Button{margin-right:0}.ms-ComboBox-option.ms-Button+.ms-Button:focus{color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}"}]);var m=n(2881),_=n(7265),h=n(2925),b=f.HW.isActivated("74c905a0-f928-4d67-bad6-7d79ad2256b2","08/29/2023","hide description div when there is no description"),g=f.HW.isActivated("c01b5811-6f4c-4aa9-860f-7f06790394cb0"),v=f.HW.isActivated("5a752310-e041-427c-97a6-efbefafa23e2"),y={ODB:60857},S=function(e){function t(n){var a=e.call(this,n)||this;a._renderWidth=190,a._fieldRef=i.createRef(),a.isFeatureEnabled=function(e){return a.props.isFeatureEnabled?a.props.isFeatureEnabled(e):f.tH.isFeatureEnabled(e)},a._startEdit=function(e){a.setMode(m.a.Edit,!0)},a._onEditorKeyDown=function(e){13===e.which&&a.state.interactiveSave&&a.state.inlineEdit&&a._shouldSaveDataOnEnter()?a.saveData():27===e.which&&a.cancelEdit()},a._keyPress=function(e){13!==e.which&&32!==e.which||a._startEdit(e)},a._errorMessageId=(0,c.f53)("ErrorMessageId"),a._inputElementMaxLength=a.props.field.schema.MaxLength,void 0===a._inputElementMaxLength&&(a._inputElementMaxLength=t.PROPERTY_MAX_LENGTH),a._deferredValidationTime=t.DEFERRED_VALIDATION_TIME,a._shouldGetFocus=a.props.shouldGetFocus;var r=a._getStateFromProps(a.props);a._updatedField=l.a(a.props.field);var o=a.props.field.hasException||a.props.field.clientSideErrorMessage;return r.mode=void 0!==n.initialMode?n.initialMode:n.interactiveSave&&!o||a._isReadOnlyField()?m.a.View:m.a.Edit,r.interactiveSave=n.interactiveSave,"Thumbnail"===a.props.field.schema.FieldType&&"Thumbnail"!==a.props.field.schema.InternalName&&"ThumbnailOnForm"!==a.props.field.schema.InternalName&&r.thumbnail&&(r.mode=m.a.View),a._displayDescriptionAbove=a.props.displayDescriptionAbove,a.state=r,a}return(0,a.XJ)(t,e),t.prototype.getErrorMessageId=function(){return this._errorMessageId},t.prototype.componentDidMount=function(){this._postRender()},t.prototype.componentDidUpdate=function(e,t){this._postRender()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this,n=this.state.interactiveSave,a=this._getStateFromProps(e);this._shouldGetFocus=e.shouldGetFocus,(e.clientForm.isBulkEdit||this._shouldGetFocus||!g&&!e.interactiveSave)&&(a.mode=m.a.Edit),this.state.field.state!==r.b.saving||e.field.state!==r.b.ready||e.field.hasException||(a.isNewlySaved=!0,setTimeout(function(){t.setState({isNewlySaved:!1,interactiveSave:g?n:e.interactiveSave})},1e3)),this.setState(a)},t.prototype.setMode=function(e,t){this._isReadOnlyField()&&e===m.a.Edit||this.state.showConfirmationDialog||(this.setState({mode:e}),this._isUserSwitchingToEditMode=t,this.props.onChangeMode(this.state.field,e))},t.prototype.getData=function(){},t.prototype.render=function(){var e=!!this._validateFormHasError(),t=this.state.mode===m.a.View||this._useRendererForEditMode()?this.isFeatureEnabled(y)?this._renderRendererWithDescription():this._renderRenderer():this._renderEditor(e);return t?i.createElement("div",{className:"ReactFieldEditor","data-automationtype":"clientFormField",ref:this._fieldRef},!this.props.hideLabel&&this._renderLabel(),this._displayDescriptionAbove&&this._renderFieldEditorFooter(),t,this._renderEditButton(),!f.HW.isActivated("b2f0d6a6-a84c-45dc-b5ba-a13596f8eadc","7/28/2021","Render see more/less toggle in base field editor")&&this.state.mode===m.a.View&&this._renderMoreLessToggle(),this._renderState(),!this._displayDescriptionAbove&&this._renderFieldEditorFooter()):void 0},t.prototype.isUpdated=function(e){var t=!0,n=this.state.field.serverData;return void 0!==e&&"object"!=typeof n&&(t=e!==n),t},t.prototype.cancelEdit=function(){this._updatedField=l.a(this.state.field),this._updatedField.data=this._updatedField.serverData;var e=!1;(this._updatedField.hasException||this._updatedField.clientSideErrorMessage)&&(this._updatedField.clientSideErrorMessage="",this._updatedField.hasException=!1,this._updatedField.errorMessage="",e=!0),this._shouldViewerRegainFocus=!0,this.setState({mode:this._getModeAfterEdit(),field:this._updatedField}),this.state.interactiveSave&&e&&this.props.onSave(this._updatedField)},t.prototype.validate=function(){if(this._updatedField)return!this._isRequiredField()||this._updatedField.data||this._isBulkEdit()?this._updatedField.clientSideErrorMessage="":this._updatedField.clientSideErrorMessage=_.p,this._updatedField.clientSideErrorMessage},t.prototype._getItem=function(){return this.props.clientForm&&this.props.clientForm.item},t.prototype._isBulkEdit=function(){return this.props.clientForm&&this.props.clientForm.isBulkEdit},t.prototype._renderLabel=function(){var e=(0,h.a)(this.props.field.schema.FieldType);return i.createElement("div",{className:"ReactFieldEditor-titleContainer"},i.createElement(c.k45,{className:(0,d.N0)("ms-Icon","ReactFieldEditor-titleIcon"),iconName:e}),i.createElement(s.cbL,{className:"ReactFieldEditor-fieldTitle",required:this._isRequiredField()},this.state.field.schema.Title),this._renderLabelAddons())},t.prototype._renderLabelAddons=function(){},t.prototype._renderRenderer=function(){var e,t=this,n=this.props.field.schema,a=this.state.field,r=!a.data&&!a.schema.AppendOnly&&!a.serverData,o=r&&!this._useRendererForEditMode()?function(){return t._renderPlaceHolder()}:function(){return t._getRenderer()};!this.props.overriddenRenderer||r&&a.schema&&a.schema.Required||(e=this.props.overriddenRenderer({clientForm:this.props.clientForm,field:a,defaultRenderer:o})),e||(e=o()),this._showInvisibleRegionOnDispayMode&&(e=i.createElement("div",{className:"ReactFieldEditor-rendererContainer-withInvisibleRegion"},e));var s="Note"===n.FieldType;return i.createElement("div",{className:(0,d.N0)("ReactFieldEditor-core--display",{"ReactFieldEditor-TextMultiLine":s,"ReactFieldEditor-RichText":n.RichText,"is-ErrorPresent":this.props.showValidationErrorBorder&&(this.props.field.hasException||!!this.props.field.clientSideErrorMessage)}),onClick:this._startEdit,onKeyPress:this._keyPress,role:!v&&s?"textbox":"button","aria-readonly":!(v||!s)||void 0,ref:function(e){t._focusElement=e},"aria-label":this._getAriaLabel(m.a.View),tabIndex:0},e)},t.prototype._renderRendererWithDescription=function(){var e=this,t=this.props.field.schema,n="Note"===t.FieldType,a=this._renderRenderer(),r=this._getFieldDescription();return i.createElement("div",{className:(0,d.N0)("ReactFieldEditor-core-display-with-description",{"ReactFieldEditor-TextMultiLine":n,"ReactFieldEditor-RichText":t.RichText}),onClick:this._startEdit,onKeyPress:this._keyPress,role:!v&&n?"textbox":"button","aria-readonly":!(v||!n)||void 0,ref:function(t){e._focusElement=t},"aria-label":this._getAriaLabel(m.a.View),tabIndex:0},i.createElement("div",{className:"ReactFieldEditor-fieldDescription-top"},r),a)},t.prototype._useRendererForEditMode=function(){return!1},t.prototype._getAriaLabel=function(e,t){void 0===e&&(e=m.a.View);var n,a,i=this._isRequiredField()?f.OO(_.o,this.state.field.schema.Title):this.state.field.schema.Title,r=this._getAriaLabelDataString();return e===m.a.Edit?(n=i+", "+(r||this._getPlaceHolderString()),a=(n=f.OO(_.g,n))+" "+this._getFieldDescription()):(n=i+", "+r,a=n=this._isReadOnlyField()?f.OO(_.n,n):t?n:f.OO(_.k,n)),a},t.prototype._getAriaLabelDataString=function(){var e=this.state.field.data,t=e||_.h;return e&&"object"==typeof e&&(t=e.displayName?e.displayName:""),t},t.prototype._renderAppendedData=function(){},t.prototype._renderEditor=function(e){var t=this._getEditor(e),n=this._getFieldDescription();return t?i.createElement("span",{className:(0,d.N0)("ReactFieldEditor-core--edit",{"is-interactiveSave":this.state.interactiveSave,"is-noDescription":""===n,"is-ErrorPresent":this.props.showValidationErrorBorder&&(this.props.field.hasException||!!this.props.field.clientSideErrorMessage)}),onKeyDown:this._onEditorKeyDown,"aria-label":this._isEditorNeedAriaLabel()?this._getAriaLabel(m.a.Edit):""},this.isFeatureEnabled(y)&&!this.props.hideLabel&&i.createElement("div",{className:"ReactFieldEditor-fieldDescription-top"},n),t,!this.isFeatureEnabled(y)&&!this.props.hideLabel&&(b||n)&&i.createElement("div",{className:"ReactFieldEditor-fieldDescription"},n),this.props.field.schema.AppendOnly&&this._renderAppendedData(),this._renderConfirmationDialog()):void 0},t.prototype._isEditorNeedAriaLabel=function(){return!1},t.prototype._renderEditButton=function(){var e=this;if(f.HW.isActivated("93312cd7-7ec6-4118-bd31-756b685b016b","10/27/2021","Do not render the edit button for read only fields")){var t=this.state,n=t.inlineEdit,a=t.mode;return!n||n&&this.props.field.schema.AppendOnly&&a===m.a.View?i.createElement(s.hYu,{className:"ReactFieldEditor-editButton",iconProps:{iconName:"Edit"},title:_.f,onClick:function(){return e._editButtonOnClick()}}):null}return null},t.prototype._renderMoreLessToggle=function(){return null},t.prototype._renderState=function(){var e=this._getAggregatedErrorMsg(),t=!e&&this.state.interactiveSave;return i.createElement("div",{className:"ReactFieldEditor-state"},!!e&&this._renderErrorMsg(),t&&this._renderFieldState())},t.prototype._renderFieldState=function(){var e,t,n,a=this.state.field;return a.state===r.b.saving?(e=_.r,t=i.createElement(s.tu6,{className:"ReactFieldEditor-stateIndicator",size:u.CTe.xSmall}),n=f.OO(_.j,a.schema.Title)):this.state.isNewlySaved&&(e=_.q,t=i.createElement(c.k45,{iconName:"CheckMark",className:"ReactFieldEditor-stateIndicator"}),n=f.OO(_.i,a.schema.Title),this._focusElement&&this._focusElement.focus()),e&&i.createElement("div",{className:"ReactFieldEditor-stateMessageContainer"},t,e,i.createElement("span",{role:"alert",className:"ReactFieldEditor-accessible"},n))},t.prototype._renderErrorMsg=function(){if(this._useFabricNativeErrorHandling)return null;var e=this._getAggregatedErrorMsg();return!!e&&i.createElement("div",{className:"ReactFieldEditor-required",role:"alert",id:this.getErrorMessageId()},e||"")},t.prototype._renderPlaceHolder=function(){return i.createElement("div",{className:(0,d.N0)("ReactFieldEditor-placeHolder",{"is-required":this._isRequiredField()})},this._getPlaceHolderString())},t.prototype._renderConfirmationDialog=function(){var e=this,t=this.state.showConfirmationDialog,n=this.props.confirmationDialogProps;return t&&n?i.createElement(p.ConfirmationDialog,{onCancel:function(){return e._confirmationDialogCancelClicked()},onConfirm:function(){return e._confirmationDialogConfirmClicked()},title:n.title,prompt:n.prompt,yesText:n.yesText,noText:n.noText}):void 0},t.prototype._renderFieldEditorFooter=function(){},t.prototype._postRender=function(){this.state.mode===m.a.Edit?this._shouldGetFocus&&this.props.isInitialLaunching?(this._focusOnEditorIfNeeded(!0),this._shouldGetFocus=!1):(this._shouldGetFocus||this._isUserSwitchingToEditMode)&&(this._focusOnEditorIfNeeded(),this._shouldGetFocus=!1,this._isUserSwitchingToEditMode=!1):this.state.mode===m.a.View&&this._shouldViewerRegainFocus&&this._focusElement&&(this._focusElement.focus(),this._shouldViewerRegainFocus=!1)},t.prototype._getFieldDescription=function(){return this.props.field&&this.props.field.schema&&this.props.field.schema.Description||""},t.prototype._editButtonOnClick=function(){this.setMode(m.a.Edit)},t.prototype._getRenderer=function(){var e="Text"===this.props.field.schema.FieldType?"ReactFieldEditor-TextSingleLine":"",t={text:this._getRendererText(),className:e,isTruncated:"Text"===this.props.field.schema.FieldType};return(0,o.a)(t)},t.prototype._getPlaceHolderString=function(){return _.e},t.prototype._getRendererText=function(){return this.state.field.data&&this.state.field.data.toString()||""},t.prototype._getEditor=function(e){return this._getRenderer()},t.prototype._confirmationDialogCancelClicked=function(){this.setState({showConfirmationDialog:!1})},t.prototype._confirmationDialogConfirmClicked=function(){return this.setState({showConfirmationDialog:!1}),Promise.resolve()},t.prototype._shouldSaveDataOnEnter=function(){return!0},t.prototype._onSave=function(e){this._updatedField=l.a(this.state.field),this._updatedField.data=e,this.validate();var t=!1;this._updatedField.hasException&&(this._updatedField.hasException=!1,this._updatedField.errorMessage="",t=!0),"sensitivitylabel"===this._updatedField.schema.FieldType&&(this._updatedField.justificationText=this._getJustificationText());var n=this._getModeAfterEdit();this.setState({mode:n,field:this._updatedField}),this.state.interactiveSave&&(t||this.isUpdated(e))?(this._updatedField.state=r.b.saving,this.props.onSave(this._updatedField)):this._updatedField.errorMessage||this.isUpdated(e)||this.props.initialMode!==m.a.Edit||n===m.a.Edit||this.props.onChangeMode(this._updatedField,n),this.state.interactiveSave||this.props.onInputChanged(this._updatedField)},t.prototype._getModeAfterEdit=function(){return this._validateFormHasError()||!this.state.interactiveSave?m.a.Edit:m.a.View},t.prototype._validateFormHasError=function(){return this._updatedField.clientSideErrorMessage||this._updatedField.hasException},t.prototype._isInlineEdit=function(){return!0},t.prototype._isDocumentLibrary=function(){for(var e=this.props.clientForm.item,t=!1;e;){if(e.list&&e.list&&e.list.isDocumentLibrary){t=!0;break}e=e.parent}return t},t.prototype._isRequiredField=function(){return this.props.field&&this.props.field.schema&&this.props.field.schema.Required},t.prototype._getStateFromProps=function(e){return this._isUserSwitchingToEditMode=!1,{field:l.a(e.field),inlineEdit:this._isInlineEdit(),interactiveSave:e.interactiveSave}},t.prototype._getArrayFromSPString=function(e){return e?e.split(t.ARRAY_DELIMITER).filter(function(e){return e&&e.length>0}):[]},t.prototype._overrideStyleInIframe=function(e,t,n){for(var a=e.querySelectorAll(t),i=0;i<a.length;i++)a[i].style.cssText=n},t.prototype._isReadOnlyField=function(){return this.props.field.schema.ReadOnlyField||this.props.isReadOnly},t.prototype._getJustificationText=function(){return""},t.prototype._getAggregatedErrorMsg=function(){return this.state.field.clientSideErrorMessage?this.state.field.clientSideErrorMessage:this.state.field.errorMessage},t.ARRAY_DELIMITER=";#",t.PROPERTY_MAX_LENGTH=255,t.DEFERRED_VALIDATION_TIME=200,t}(c.oKI)}
,2494:(e,t,n)=>{"use strict";(0,n("fui.util_43").pZ)([{rawString:".ReactFieldEditor-core--edit .ReactFieldEditor-Taxonomy{display:flex;border:none;border-bottom:0}.ReactFieldEditor-core--edit .ReactFieldEditor-Taxonomy:hover{border-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.ReactFieldEditor-core--edit .ReactFieldEditor-Taxonomy:focus{border-color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.ReactFieldEditor-TaxonomyPicker{min-width:1px}.ms-Taxonomy-termPicker.ReactFieldEditor-Picker{border:none}.ReactFieldEditor-Taxonomy-FeedbackLink{font-size:12px}"}])}
,2928:(e,t,n)=>{"use strict";n.d(t,{a:()=>N,b:()=>V});var a=n("tslib_102"),i=n("react-lib"),r=n(2882),o=n(2881),s=n("fui.lcoms_828"),c=n("fui.lco_496"),d=n(2695),l=n(2696),u=n(2700),f=n(2701),p=n(2929),m=n(2570),_=n(2783),h=n(2697),b=n(2698),g=n(2699),v=n(2694),y=n(7282),S=(n(2494),n("odsp.util_578")),D=n(41),I=n("fui.util_43"),x=n("fui.core_870"),C=n(1250),O={calloutMain:{maxWidth:"360px",padding:"15px"}},w=n(225),E=n(43),A=n(2782),L="TaxonomyTaggingCustomerPromiseHandlerFailure",k=function(){function e(){var e=this;this.logFailure=function(t){e.endWithFailureAndStartNew(t)}}return e.prototype.startNew=function(e,t,n){var a=n;if(this._customerPromise){var i={errorCode:L,errorScenario:"EndAlreadyExistingEvent",errorMessage:"Ending CP event as new Unexpected CP event is triggered by ".concat(a),resultType:w.ResultTypeEnum.ExpectedFailure};this._endCustomerPromiseWithFailure(i),a="Unexpected "+a}this._scenario=t,this._startScenarioText=a,this._serverCorrelationId=e,this._startNewCustomerPromise()},e.prototype.endWithFailureAndStartNew=function(e){this._customerPromise?this._endCustomerPromiseWithFailure(e):this._startNewAndEndWithFailure(e),this._startNewCustomerPromise()},e.prototype.endWithSuccess=function(e){if(this._customerPromise)this._endCustomerPromiseWithSuccess(e);else{var t={errorCode:L,errorScenario:"EventDidNotExist",errorMessage:e.toString(),resultType:w.ResultTypeEnum.ExpectedFailure};this._startNewAndEndWithFailure(t)}},e.prototype.endWithFailure=function(e){this._customerPromise?this._endCustomerPromiseWithFailure(e):this._startNewAndEndWithFailure(e)},e.prototype._startNewAndEndWithFailure=function(e){this._serverCorrelationId="",this._startScenarioText=A.f.Unexpected,this._startNewCustomerPromise(),this._endCustomerPromiseWithFailure(e)},e.prototype._startNewCustomerPromise=function(e){void 0===e&&(e=!1),this._uniqueEventId=E.a.generate().toString(),this._customerPromise=new w.CustomerPromise(this._getStartSchema())},e.prototype._endCustomerPromiseWithSuccess=function(e,t){void 0===t&&(t=!1);var n=this._getEndSchema(!1,e);this._customerPromise&&this._customerPromise.end(n),this._resetValues(!0)},e.prototype._endCustomerPromiseWithFailure=function(e){this._customerPromise&&this._customerPromise.end(this._getEndSchema(!0,void 0,e)),this._resetValues()},Object.defineProperty(e.prototype,"_pillar",{get:function(){return A.c.get(this._scenario)},enumerable:!1,configurable:!0}),e.prototype._getVeto=function(e){return A.b.get(e)},e.prototype._getStartSchema=function(){return{scenario:this._scenario,extraData:{correlationId:this._serverCorrelationId,startScenario:this._startScenarioText,uniqueEventId:this._uniqueEventId,debugSession:this._isDebugSession,Pillar:this._pillar}}},e.prototype._getEndSchema=function(e,t,n,a){var i={scenario:this._scenario,extraData:{correlationId:this._serverCorrelationId,uniqueEventId:this._uniqueEventId,debugSession:this._isDebugSession,Pillar:this._pillar}};if(e){var r=n.errorCode,o=n.errorScenario,s=n.errorMessage,c=n.resultType;i.resultType=c||w.ResultTypeEnum.Failure,i.errorCode=r,i.extraData.errorScenario=o,i.extraData.errorMessage=s,i.extraData.Veto=this._getVeto(r),n.errorStack&&(i.extraData.errorStack=n.errorStack)}else i.resultType=w.ResultTypeEnum.Success,i.extraData.message=t;return i},e.prototype._resetValues=function(e){this._customerPromise=void 0,this._uniqueEventId=void 0,e&&(this._startScenarioText=void 0,this._serverCorrelationId=void 0)},Object.defineProperty(e.prototype,"_isDebugSession",{get:function(){return!1},enumerable:!1,configurable:!0}),e}(),M=function(){function e(e){this._sessionId=e,this._taxonomyCustomerPromiseHandler=new k}return e.prototype.startEditTaxonomyTaggingCustomerPromise=function(e){this._taxonomyCustomerPromiseHandler.startNew(this._sessionId||"",A.e.TaxonomyTagging,e)},e.prototype.endEditTaxonomyTaggingCustomerPromise=function(e){this._taxonomyCustomerPromiseHandler.endWithSuccess(e)},e.prototype.endEditTaxonomyTaggingCustomerPromiseWithFailureAndStartNew=function(e){this._taxonomyCustomerPromiseHandler.endWithFailureAndStartNew(e)},e.prototype.endEditTaxonomyTaggingCustomerPromiseWithFailure=function(e){this._taxonomyCustomerPromiseHandler.endWithFailure(e)},e}(),P=S.HW.isActivated("0872F5C2-99E4-46C5-8A51-3537C0243344","10/30/2020","strip out guid in taxonomy field for aria-label"),T=S.HW.isActivated("8967EC81-5070-49FB-8428-FE15C1057237","11/07/2020","save data when item selection changed"),U=S.HW.isActivated("ac1def4e-3653-4f7a-8267-dbfc8a3a9a5a","7/15/2022","show info callout for auto document tagger field in editor pane"),F=!S.HW.isActivated("6838a917-d05a-4db8-b746-c17ff6afcb46","11/11/2022","Enable taxonomy customer promise"),H=i.lazy(function(){return n.e(1519).then(n.bind(n,2914))}),R=Promise.resolve().then(n.bind(n,225)),N="5cf76f15-5ced-4ddc-b409-7134ff3c332f",B="ImageTagFeedbackLinkClicked",j="string",V=function(e){function t(t){var n=e.call(this,t)||this;return n._termStoreDataSource=null,n._updatingTerms=!1,n._taxonomyPicker=(0,i.createRef)(),n._root=(0,i.createRef)(),n._imageTagIconElement=null,n._autoDocumentTaggerIconElement=null,n._alreadySaved=!1,n._deprecatedTerms={},n._customerPromise=null,n._isSystemTag=function(e){return e>"ffffffff-ffff-ffff-ffff-000000000000"},n._onFeedbackLinkKeyPress=function(e){z(B),e.which===x.Xf7.enter&&(n.setState({showFeedbackModal:!0}),e.stopPropagation())},n._onSendFeedbackButtonClick=function(e){z(B),n.setState({showFeedbackModal:!0}),e.stopPropagation()},n._imageTagInfoCalloutToggle=function(e){n.setState({showImageTagIconCallout:!n.state.showImageTagIconCallout})},n._autoDocumentTaggerInfoCalloutToggle=function(e){n.setState({showAutoDocumentTaggerIconCallout:!n.state.showAutoDocumentTaggerIconCallout})},n._onCloseFeedbackModal=function(){n.setState({showFeedbackModal:!1})},n._deleteTag=function(e){var t=C.a(n.state.field);t.data=n.state.selectedTerms.filter(function(t){return t.term.label!==e}).reduce(n._convertToTermsRawString,""),n.props.onSave(t)},n._resolveSuggestions=function(e){return n._dataManager.resolveSuggestions(e,n.state.queryParams).then(function(e){return v.a.filterTaggedTerms(e,n.state.selectedTerms)}).catch(function(e){return e&&"Canceled"!==e.name&&n._updateError(y.f),[]})},n._checkKeyPressAndActForTagIcon=function(e){return 13!==e.keyCode&&"Enter"!==e.key||(e.preventDefault(),n._launchTree(),e.stopPropagation()),!1},n._setAnnouncement=function(e){n.setState({announcement:e})},n._showClassicTaggingTree=function(){n.setState({forceClassicTree:!0,taxonomyTreeOpen:!0})},n._onPickerBlur=function(e){n._timeout=n._async.setTimeout(function(){n._root.current&&((e.relatedTarget?n._root.current.contains(e.relatedTarget):n._root.current.contains(document.activeElement))||n.state.taxonomyTreeOpen||n._alreadySaved||n.saveData())},300)},n._onPickerItemsChange=function(e){for(var t=G(n.state.selectedTerms,e),a=1;a<=t;a++)z("TaxonomyPickerInPropertyPaneUpdated");n._onItemsChange(e)},n._onItemsChange=function(e){n._timeout&&n._async.clearTimeout(n._timeout),n._clearError(),n._updatingTerms=!0,n.setState({selectedTerms:e},function(){n._updatingTerms=!1,0===e.length&&n._focus(),n._validateTerms(e)})},n._launchTree=function(){n._isFixForPopupOfTaggingPanelEnabled&&(n.setState({modernTreeOpen:!0}),F&&(n._customerPromiseSessionId=n._customerPromiseSessionId?n._customerPromiseSessionId:E.a.generate().toString(),n._customerPromiseHelper=new M(n._customerPromiseSessionId),n._customerPromiseHelper.startEditTaxonomyTaggingCustomerPromise(A.f.OpenTaxonomyTaggingPanel))),n._isEnterKeyActionEnabledOnTagIcon?n._openTreePanel():n.state.taxonomyTreeOpen||(D.Engagement.logData({name:"LaunchTaxonomyTree",isIntentional:!0}),n._isAnnouncementAllowed?n.setState({taxonomyTreeOpen:!0,announcement:void 0}):n.setState({taxonomyTreeOpen:!0}))},n._openTreePanel=function(){n.state.taxonomyTreeOpen||(D.Engagement.logData({name:"LaunchTaxonomyTree",isIntentional:!0}),n.setState({taxonomyTreeOpen:!0}))},n._dismissTree=function(){n._isFixForPopupOfTaggingPanelEnabled&&n.setState({modernTreeOpen:!1}),n.state.taxonomyTreeOpen&&n.setState({taxonomyTreeOpen:!1},n._focus),F&&n._customerPromiseHelper.endEditTaxonomyTaggingCustomerPromise(A.d.TaxonomyTaggingPanelClose)},n.handleTreeDialogResults=function(e){if(e){var t=e.value;try{var a=t.split(d.c).map(function(e){var t=e.split(d.b),n=t[1]!==d.a;return{term:{label:t[0],termId:t[1],isValid:n},isSynonym:!1,completions:[],start:"",state:n?l.a.valid:l.a.invalid}});0===a.filter(function(e){return!e.term.isValid}).length&&n.setState({selectedTerms:a,taxonomyTreeOpen:!1},n._focus)}catch(e){}}else n.setState({taxonomyTreeOpen:!1},n._focus)},n._getAriaLabelPrefix=function(){var e=n.props.field&&n.props.field.schema&&n.props.field.schema.Title;return n._isRequiredField()&&e?S.OO(y.d,n.props.field.schema.Title):n.props.field.schema.Title},n._isTitleToBeAnnounced=function(){return!S.HW.isActivated("8cfc50e2-a8b2-4530-884f-d537360df887","11/07/2020","Adds prefix to aria label")},n._getEmptySearchResults=function(e){var t=[],a=n._getMostCommonTerms();return a&&a.forEach(function(e){var n={state:l.a.unknown,isSynonym:!1,completions:[],start:"",term:{label:e,termId:d.a}};t.push(n)}),v.a.filterTaggedTerms(t,e,!0)},n._logDataOnSave=function(){n._logImageTagsUpdateInfo()},n._logImageTagsUpdateInfo=function(){if(n.state.imageTagConfig&&n.state.imageTagConfig.isImageTagField){for(var e=n.state,t=e.selectedTerms,a={},i=0,r=e.serverTerms;i<r.length;i++)a[r[i].term.termId]=!0;for(var o={tagsAdded:0,tagsRemoved:0,systemTagsRemoved:0},s=0,c=t;s<c.length;s++){var d=c[s];a[d.term.termId]?delete a[d.term.termId]:o.tagsAdded++}for(var l=0,u=Object.keys(a);l<u.length;l++){var f=u[l];o.tagsRemoved++,n._isSystemTag(f)&&o.systemTagsRemoved++}(o.tagsAdded||o.tagsRemoved)&&D.Engagement.logData({name:"ImageTagsUpdated",extraData:o})}},n._dataSource=t.dataSource||new h.a(t.pageContext),n._dataProvider=new b.a({},{dataSource:n._dataSource}),n._dataManager=new v.a({dataProvider:n._dataProvider,dataSource:n._dataSource}),n._isInvalidateDeprecatedTermsEnabled&&(n._termStoreDataSource=new g.a(n.props.pageContext,n.props.getOAuthToken),n._invalidateDeprecatedTerms(n.state.selectedTerms,n.state.queryParams.termSetList).then(function(e){n.setState({selectedTerms:e})})),D.Engagement.logData({name:"ClientForm.TaxonomyField",extraData:{isRequired:n._isRequiredField(),isMulti:n._isMulti},isIntentional:!0}),n}return(0,a.XJ)(t,e),t.prototype.saveData=function(){this.state.mode===o.a.Edit&&(this._logDataOnSave(),this._alreadySaved=!0,this._onSave(this._getTermsAsSeverString()))},t.prototype.getData=function(){return this._getTermsAsSeverString()},t.prototype.validate=function(){if(this.state.selectedTerms.some(function(e){return e.state===l.a.invalid}))return this._updatedField.clientSideErrorMessage=y.b,this._updatedField.clientSideErrorMessage;try{this._updatedField.data=this.getData()}catch(e){}return e.prototype.validate.call(this)},t.prototype.isUpdated=function(){var e=this.state,t=e.selectedTerms,n=e.serverTerms;if(!t&&!n)return!1;if(t.length!==n.length)return!0;for(var a={},i=0,r=n;i<r.length;i++){var o=r[i];a[o.term.termId]=o}for(var s=0,c=t;s<c.length;s++)if(!a[c[s].term.termId])return!0;return!1},Object.defineProperty(t.prototype,"isDeletedTermToBeMarkedInRed",{get:function(){return S.tH.isFeatureEnabled({ODB:61261})},enumerable:!1,configurable:!0}),t.prototype._getStateFromProps=function(t){var n=e.prototype._getStateFromProps.call(this,t),i=t.field.schema;if(this._alreadySaved=!1,this._isImageTagDefaultValuesEnabled?t.clientForm.formType===m.a.newItem?(this.state&&this.state.selectedTerms?n.selectedTerms=this.state.selectedTerms:t.field.data&&(typeof t.field.data===j?n.selectedTerms=this._convertFieldDataToSuggestion(t.field.data):"object"==typeof t.field.data?n.selectedTerms=this._convertDefaultDataToSuggestion(t.field.data):this.state&&this.state.serverTerms||(n.selectedTerms=this._convertDefaultDataToSuggestion(i.DefaultValueTyped))),n.selectedTerms||(n.selectedTerms=[]),n.serverTerms=[]):(t.field.serverData&&(typeof t.field.serverData===j?n.serverTerms=this._convertFieldDataToSuggestion(t.field.serverData):"object"==typeof t.field.serverData?n.serverTerms=this._convertDefaultDataToSuggestion(t.field.serverData):this.state&&this.state.serverTerms||(n.serverTerms=this._convertDefaultDataToSuggestion(i.DefaultValueTyped))),n.serverTerms||(n.serverTerms=[]),this.state&&this.state.serverTerms&&this.state.selectedTerms&&JSON.stringify(this.state.serverTerms)===JSON.stringify(n.serverTerms)||(n.selectedTerms=n.serverTerms||[])):(t.field.data&&(typeof t.field.data===j?n.serverTerms=this._convertFieldDataToSuggestion(t.field.data):"object"==typeof t.field.data?n.serverTerms=this._convertDefaultDataToSuggestion(t.field.data):this.state&&this.state.serverTerms||(n.serverTerms=this._convertDefaultDataToSuggestion(i.DefaultValueTyped))),n.serverTerms||(n.serverTerms=[]),this.state&&this.state.serverTerms&&this.state.selectedTerms===n.serverTerms||(n.selectedTerms=n.serverTerms||[])),void 0!==n.taxonomyTreeOpen&&null!==n.taxonomyTreeOpen&&n.mode!==o.a.View||(n.taxonomyTreeOpen=!1),this._isImageTaggingFeedbackLinkEnabled&&n.field&&n.field.schema&&n.field.schema.Id===N&&t.clientForm&&t.clientForm.item&&t.clientForm.item.properties){var r={isImageTagField:!0};if(n.serverTerms&&n.serverTerms.length>0&&t.clientForm.item.properties.MediaServiceImageTags)try{var s=t.clientForm.item.properties.MediaServiceImageTags;if(s&&s.length>0){for(var c=[],l=0;l<s.length;l++)for(var u=0;u<n.serverTerms.length;u++)n.serverTerms[u].term&&n.serverTerms[u].term.label===s[l].Label&&this._isSystemTag(s[l].TermID)&&c.push(s[l].Label);c.length>0&&(r=(0,a.W_)((0,a.W_)({},r),{url:t.clientForm.item.openUrl,autoGeneratedTags:c}))}}catch(e){}n.imageTagConfig=r}return this._isAutoDocumentTaggerFlightEnabled&&n.field&&n.field.schema&&!0===n.field.schema.IsDocTagsEnabled&&(n.autoDocumentTaggerConfig={isAutoDocumentTagEnabled:!0}),n.queryParams={lcid:i.Lcid||1033,sspList:i.SspId,termSetList:i.TermSetId,anchorId:i.AnchorId||d.a,excludedTermset:d.a,isSpanTermStores:i.IsSpanTermStores||!1,isSpanTermSets:i.IsSpanTermSets||!1,isIncludeUnavailable:!1,isIncludeDeprecated:!1,isAddTerms:i.IsAddTerms||!1,isIncludePathData:!1,excludeKeyword:!i.Name&&"TaxKeyword"!==i.Name,isUseCommaAsDelimiter:"boolean"!=typeof i.IsUseCommaAsDelimiter||i.IsUseCommaAsDelimiter,isIncludeTermSetName:!1,webServiceUrl:i.WebServiceUrl,allowFillIn:"boolean"!=typeof i.AllowFillIn||i.AllowFillIn},this._isInvalidateDeprecatedTermsEnabled&&this._invalidateDeprecatedTerms(n.selectedTerms,n.queryParams.termSetList).then(function(e){n.selectedTerms=e}),n},t.prototype.onSaveEvent=function(e){var t=this;this._isCustomerPromiseEnabled&&(this._customerPromise&&this._customerPromise.end&&e&&e.isComplete?R.then(function(n){var a=n.ResultTypeEnum;t._customerPromise.end({resultType:e.isSuccessful?a.Success:a.Failure,errorCode:e.isSuccessful?null:e.serverErrorDetails}),t._customerPromise=null}):e&&!e.isComplete&&this.isUpdated()&&R.then(function(n){var a=n.CustomerPromise;t._customerPromise=new a({scenario:"Taxonomy-UpdateListItemTag",extraData:e.extraData?e.extraData:null})}))},t.prototype._renderFieldEditorFooter=function(){var e=this;return i.createElement(i.Fragment,null,this.state.imageTagConfig&&this.state.imageTagConfig.url&&i.createElement(s.NG4,{className:"ReactFieldEditor-Taxonomy-FeedbackLink",onClick:this._onSendFeedbackButtonClick,onKeyPress:this._onFeedbackLinkKeyPress},y.e),this.state.showFeedbackModal&&i.createElement(i.Suspense,{fallback:i.createElement("div",null)},i.createElement(H,{imageSrc:this.state.imageTagConfig.url,tagsList:this.state.imageTagConfig.autoGeneratedTags,pageContext:this.props.pageContext,getOAuthToken:function(t){return e.props.getOAuthToken(t,!0)},deleteTag:this._deleteTag,hideModal:this._onCloseFeedbackModal})))},t.prototype._renderLabelAddons=function(){var e=this;return U||this.state.imageTagConfig&&this.state.imageTagConfig.isImageTagField?i.createElement(i.Fragment,null,i.createElement("div",{ref:function(t){return e._imageTagIconElement=t}},i.createElement(s.hYu,{className:(0,I.N0)("ms-Icon","ReactFieldEditor-titleIcon"),iconProps:{iconName:"info"},onClick:this._imageTagInfoCalloutToggle,"data-is-focusable":!0})),this.state.showImageTagIconCallout&&i.createElement(c.udW,{target:this._imageTagIconElement,onDismiss:this._imageTagInfoCalloutToggle,gapSpace:0,styles:O},i.createElement("div",{style:{paddingBottom:"15px"}},y.k),i.createElement(s.NG4,{href:"https://go.microsoft.com/fwlink/?linkid=2153830",target:"_blank"},y.j))):this.state.autoDocumentTaggerConfig&&this.state.autoDocumentTaggerConfig.isAutoDocumentTagEnabled?i.createElement(i.Fragment,null,i.createElement("div",{ref:function(t){return e._autoDocumentTaggerIconElement=t}},i.createElement(s.hYu,{"aria-label":y.h,className:(0,I.N0)("ms-Icon","ReactFieldEditor-titleIcon"),iconProps:{iconName:"info"},onClick:this._autoDocumentTaggerInfoCalloutToggle,"data-is-focusable":!0})),this.state.showAutoDocumentTaggerIconCallout&&i.createElement(c.udW,{setInitialFocus:!0,target:this._autoDocumentTaggerIconElement,onDismiss:this._autoDocumentTaggerInfoCalloutToggle,gapSpace:0,styles:O},i.createElement("div",{"data-is-focusable":!0,style:{paddingBottom:"15px"}},y.i),i.createElement(s.NG4,{href:"https://go.microsoft.com/fwlink/?linkid=2241093",target:"_blank","data-is-focusable":!0,"aria-label":y.h},y.h))):void 0},t.prototype._getRenderer=function(){if(this._isEnterKeyActionEnabledOnTagIcon&&this.state.taxonomyTreeOpen)return this._getEditor();var e=this.state.selectedTerms;return i.createElement("div",null,e.map(function(e){return i.createElement(u.a,{label:e.term.label,itemState:e.state,key:e.term.termId})}))},t.prototype._getEditor=function(){var e=this._isMulti?void 0:1,t=!(this._isImageTaggingFeedbackLinkEnabled&&this.state.imageTagConfig&&this.state.imageTagConfig.isImageTagField)&&this.state.queryParams&&!this.state.queryParams.isSpanTermSets,n=this._isModernTaggingToBeDisplayed?{backgroundColor:(0,I.Dn)().palette.white,margin:"0 1px"}:{},a=i.createElement(s.PRY,{"aria-label":y.a,iconProps:{iconName:"tag"},onClick:this._launchTree,style:n});return i.createElement("div",{className:"ReactFieldEditor-Taxonomy",ref:this._root,onBlur:this._onPickerBlur},this._isAnnouncementAllowed&&this.state.announcement&&i.createElement(c.A8$,{message:this.state.announcement,"aria-live":"assertive"}),i.createElement(f.a,{selectedTerms:this.state.selectedTerms,onItemsChange:this._onPickerItemsChange,className:"ReactFieldEditor-Picker",containerClassName:"ReactFieldEditor-TaxonomyPicker",resolveSuggestions:this._resolveSuggestions,termLimit:e,ref:this._taxonomyPicker,onBlur:this._onPickerBlur,"aria-required":this._isRequiredField(),"aria-label":this.state.field.schema.Title,onEmptyResolveSuggestions:this.isRemovalOfEmptySearchResultEnabled?void 0:this._getEmptySearchResults,ariaLabelPrefix:this._isTitleToBeAnnounced?this._getAriaLabelPrefix():void 0,disableSearch:!(!this.state.imageTagConfig||!this.state.imageTagConfig.isImageTagField)||void 0,placeholder:this.state.imageTagConfig&&this.state.imageTagConfig.isImageTagField?y.c:void 0}),t&&this._isTooltipForAddTagEnabled&&i.createElement(s.qxl,{content:y.g,calloutProps:{gapSpace:0}},i.createElement("div",{onKeyDown:this._checkKeyPressAndActForTagIcon},a)),t&&!this._isTooltipForAddTagEnabled&&i.createElement(s.PRY,{"aria-label":y.a,iconProps:{iconName:"tag"},onClick:this._launchTree,style:n,onKeyDown:this._isEnterKeyActionEnabledOnTagIcon?this._checkKeyPressAndActForTagIcon:void 0}),this._isFixForPopupOfTaggingPanelEnabled&&t&&this._isModernTaggingToBeDisplayed&&this.state.modernTreeOpen&&i.createElement(_.a,{onDismiss:this._dismissTree,title:this.props.field.schema.Title,onItemsChange:this._onItemsChange,selectedTerms:this.state.selectedTerms,queryParams:this.state.queryParams,pageContext:this.props.pageContext,dataSource:this._dataSource,termLimit:e,isRequiredField:this._isRequiredField(),isPanelOpen:!0,emptyKeySearchSuggestions:this._getMostCommonTerms(),getOAuthToken:this.props.getOAuthToken,showClassicTaggingTree:this._showClassicTaggingTree,setAnnouncement:this._isAnnouncementAllowed?this._setAnnouncement:void 0,customerPromiseHelper:F?this._customerPromiseHelper:void 0}),!this._isFixForPopupOfTaggingPanelEnabled&&t&&this._isModernTaggingToBeDisplayed&&this.state.taxonomyTreeOpen&&i.createElement(_.a,{onDismiss:this._dismissTree,title:this.props.field.schema.Title,onItemsChange:this._onItemsChange,selectedTerms:this.state.selectedTerms,queryParams:this.state.queryParams,pageContext:this.props.pageContext,dataSource:this._dataSource,termLimit:e,isRequiredField:this._isRequiredField(),isPanelOpen:!0,emptyKeySearchSuggestions:this._getMostCommonTerms(),getOAuthToken:this.props.getOAuthToken,showClassicTaggingTree:this._showClassicTaggingTree,setAnnouncement:this._isAnnouncementAllowed?this._setAnnouncement:void 0,customerPromiseHelper:F?this._customerPromiseHelper:void 0}),t&&this.state.taxonomyTreeOpen&&!this._isModernTaggingToBeDisplayed&&i.createElement(p.a,{taxonomyTreeUrl:this.getTaxonomyTreeUrl(),resultHander:this.handleTreeDialogResults,onDismiss:this._dismissTree,title:this.props.field.schema.Title}))},t.prototype._focusOnEditorIfNeeded=function(){this._taxonomyPicker.current&&this._taxonomyPicker.current.focus()},t.prototype._endEdit=function(){return this.saveData()},t.prototype._shouldSaveDataOnEnter=function(){return!this._updatingTerms},t.prototype._getAriaLabelDataString=function(){var t,n=this.state.selectedTerms;return n&&n.map(function(e){var n=e.term.label;t=t?t+" "+n:n}),P||!t?e.prototype._getAriaLabelDataString.call(this):t},t.prototype._focus=function(){this._taxonomyPicker.current&&this._taxonomyPicker.current.focus()},t.prototype._getMostCommonTerms=function(){var e=[];return this._isSuggestsionsAllowedForEmptyKeyWordFlightOn&&this.props.mostCommonTermsMap&&this.props.field&&this.props.field.schema&&this.props.field.schema.Id&&(e=this.props.mostCommonTermsMap[this.props.field.schema.Id]),e},t.prototype._updateError=function(e){var t=this.state.field;t.clientSideErrorMessage=e,this.setState({field:t})},t.prototype._clearError=function(){this._updateError("")},t.prototype.getTermDescription=function(e,t){return(0,a.Zd)(this,void 0,void 0,function(){return(0,a.qr)(this,function(n){switch(n.label){case 0:return[4,this._termStoreDataSource.getNode("/_api/v2.1/termStore/termSets/"+t+"/terms/"+e,"TaxonomyEditor.GetTerm")];case 1:return[2,n.sent()]}})})},t.prototype._invalidateDeprecatedTerms=function(e,t){return(0,a.Zd)(this,void 0,void 0,function(){var n,i,r,o,s;return(0,a.qr)(this,function(a){switch(a.label){case 0:if(this._termStoreDataSource||(this._termStoreDataSource=new g.a(this.props.pageContext,this.props.getOAuthToken)),!e)return[3,7];n=0,i=e,a.label=1;case 1:return n<i.length?(r=i[n],o=!1,this._deprecatedTerms&&this._deprecatedTerms.hasOwnProperty(r.term.termId)?(o=this._deprecatedTerms[r.term.termId],[3,5]):[3,2]):[3,7];case 2:return a.trys.push([2,4,,5]),[4,this.getTermDescription(r.term.termId,t)];case 3:return o=a.sent().isDeprecated,[3,5];case 4:return z("UnableToLoadTerm"+(s=a.sent())),this.isDeletedTermToBeMarkedInRed&&404===s.status&&(z("MarkingNotFoundTermAsDepricated"+s),o=!0),[3,5];case 5:o&&(r.state=l.a.invalid),this._deprecatedTerms&&(this._deprecatedTerms[r.term.termId]=o),a.label=6;case 6:return n++,[3,1];case 7:return[2,e]}})})},Object.defineProperty(t.prototype,"_isInvalidateDeprecatedTermsEnabled",{get:function(){return S.tH.isFeatureEnabled({ODB:60435})},enumerable:!1,configurable:!0}),t.prototype._validateTerms=function(e){var t=this,n=function(){t._getValidatedTerms(e).then(function(e){t._isInvalidateDeprecatedTermsEnabled?t._invalidateDeprecatedTerms(e,t.state.queryParams.termSetList).then(function(e){t.setState({selectedTerms:e},function(){t._isMulti||T||t.saveData()})}):t.setState({selectedTerms:e},function(){t._isMulti||T||t.saveData()})})};this._immediatelyValidateImageTags&&this.state.imageTagConfig&&this.state.imageTagConfig.isImageTagField?n():(this._timeout&&this._async.clearTimeout(this._timeout),this._timeout=this._async.setTimeout(n,300))},Object.defineProperty(t.prototype,"_immediatelyValidateImageTags",{get:function(){return S.tH.isFeatureEnabled({ODB:60531})},enumerable:!1,configurable:!0}),t.prototype._getValidatedTerms=function(e){return e.some(function(e){return e.state!==l.a.valid})?this._dataManager.validateTerms(this.state.queryParams,e):Promise.resolve(e)},Object.defineProperty(t.prototype,"_isFixForPopupOfTaggingPanelEnabled",{get:function(){return!S.HW.isActivated("8aa38dd5-5e32-4ed6-a8e0-ed666c0a42f9","11/18/2020","Fixing momentarily popup of tagging panel")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isCustomerPromiseEnabled",{get:function(){return!S.HW.isActivated("fbc48ed7-c68b-4fb4-b478-e5322942e20a","25/08/2021","Adding customer promise logging for client side telemetry.")},enumerable:!1,configurable:!0}),t.prototype.getTaxonomyTreeUrl=function(){return this._dataSource.getTaxonomyTreeUrl(this.convertToTermsRawString(this.state.selectedTerms),{name:this.props.field.schema.Name,id:this.props.field.schema.Id,isMulti:this._isMulti},this.state.queryParams)},t.prototype.convertToTermsRawString=function(e){for(var t="",n=0;n<e.length;n++){var a=e[n];a.state===l.a.valid&&(t+=a.term.label+d.b+a.term.termId,n<e.length-1&&(t+=d.c))}return t},t.prototype._convertFieldDataToSuggestion=function(e){return e?e.split(d.c).filter(function(e){return e&&e.length>0}).map(function(e){var t=e.split(d.b),n=t[0],a=t[1],i=a!==d.a;return{term:{termId:a,label:n,isValid:i},isSynonym:!1,completions:[],start:"",state:i?l.a.valid:l.a.invalid}}):[]},t.prototype._convertDefaultDataToSuggestion=function(e){var t=function(e){var t=e.TermGuid!==d.a;return{term:{termId:e.TermGuid,label:e.Label,isValid:t},isSynonym:!1,completions:[],start:"",state:t?l.a.valid:l.a.invalid}};return Array.isArray(e)?e.map(t):[t(e)]},Object.defineProperty(t.prototype,"isRemovalOfEmptySearchResultEnabled",{get:function(){return!S.HW.isActivated("e331b517-7b75-4e8e-989c-9319cadf502a","06/01/2021","Removing Suggestion on 0 key search")},enumerable:!1,configurable:!0}),t.prototype._getTermsAsSeverString=function(){return this.state.selectedTerms.reduce(this._convertToTermsRawString,"")},t.prototype._convertToTermsRawString=function(e,t){return e+t.term.label+d.b+t.term.termId+d.c},Object.defineProperty(t.prototype,"_isImageTagDefaultValuesEnabled",{get:function(){return S.tH.isFeatureEnabled({ODB:60688})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isModernTaggingToBeDisplayed",{get:function(){return!this.state.forceClassicTree&&this._isOauthCallbackDefined},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isImageTaggingFeedbackLinkEnabled",{get:function(){return S.tH.isFeatureEnabled({ODB:60141})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isOauthCallbackDefined",{get:function(){return t="ModernTaggingTreeOpenAttemptedWithOAuthCallback",(e=void 0!==this.props.getOAuthToken)||(t="ModernTaggingTreeOpenAttemptedWithoutOAuthCallback"),z(t),e;var e,t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isAutoDocumentTaggerFlightEnabled",{get:function(){return S.tH.isFeatureEnabled({ODB:60926})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isAnnouncementAllowed",{get:function(){return!S.HW.isActivated("8961f634-d19d-4679-8a4c-580c27fef861","11/07/2020","Adding Announcements on top of picker")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isSuggestsionsAllowedForEmptyKeyWordFlightOn",{get:function(){return S.tH.isFeatureEnabled({ODB:30083})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isEnterKeyActionEnabledOnTagIcon",{get:function(){return!S.HW.isActivated("596b6019-a8b6-4d93-b062-96e2c8e4e67d","11/08/2020","Explicitly adding code for enter key press on add tag icon")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isTooltipForAddTagEnabled",{get:function(){return!S.HW.isActivated("8ba4c8a4-be7c-4051-ab51-413c2d86e988","11/08/2020","Tooltip for add tag icon")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isMulti",{get:function(){return this.props.field.schema.AllowMultipleValues},enumerable:!1,configurable:!0}),t}(r.a);function z(e){D.Engagement.logData({name:e,isIntentional:!0})}function G(e,t){if(!t&&!e)return 0;if(!t)return e.length;if(!e)return t.length;if(e.length>t.length)return G(t,e);for(var n={},a=0,i=e;a<i.length;a++)n[(c=i[a]).term.termId]=c;for(var r=0,o=0,s=t;o<s.length;o++){var c;n[(c=s[o]).term.termId]||r++}return r}}
,2694:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var a=n(2695),i=n(2696),r=n(26),o=function(){function e(e){this._taxonomyProvider=e.dataProvider}return Object.defineProperty(e.prototype,"hasActiveQuery",{get:function(){return!!this._suggestionsQuery||!!this._matchQuery},enumerable:!1,configurable:!0}),e.filterTaggedTerms=function(e,t,n){void 0===n&&(n=!1);for(var a=[],i=function(i){var r=e[i];0===t.filter(function(e){return e.term.label===r.term.label&&(n||e.term.termId===r.term.termId)}).length&&a.push(r)},r=0;r<e.length;r++)i(r);return a},e.convertTermsToRawString=function(e){for(var t="",n=0;n<e.length;n++){var i=e[n];i.term.isValid?(t+=i.term.label+a.b+i.term.termId,n<e.length-1&&(t+=a.c)):t+=i.term.label+a.b+i.term.termId+a.c}return t},e.createMatchString=function(t,n){var i="";return i=e.convertTermsToRawString(t),n&&n.length>0&&(i+=n+a.b+a.a),i},e.prototype.resolveSuggestions=function(e,t){var n=this;this._abortSuggestionQuery();var a=this._taxonomyProvider.getSuggestions(e,t).promise,i=function(e){n._suggestionsQuery=null};return this._suggestionsQuery=new r.c(function(e){a.then(function(t){e(t)}).catch(i)}),this._suggestionsQuery},e.prototype.validateTerms=function(t,n,a){var i=this;this._abortSuggestionQuery();var o=e.createMatchString(n,a);if(o&&o.length>0&&t){var s=this._taxonomyProvider.getMatches(o,t);return this._matchQuery=new r.c(function(e){s.promise.then(function(t){t&&t.length>0?e(i.ProcessMatchResults(t)):e([])}).catch(function(e){i._matchQuery=null})}),this._matchQuery}return r.c.resolve([])},e.prototype.ProcessMatchResults=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o={term:{termId:"",label:r.label},isSynonym:!1,completions:[],start:"",state:i.a.unknown};r.termId!==a.a?(r.isAmbiguous?r.disambiguationData&&r.disambiguationData.length>0&&(o.term.label=r.disambiguationData[0].label,o.term.termId=r.disambiguationData[0].termId):(o.term.label=r.label,o.term.termId=r.termId),o.state=i.a.valid):(o.term.label=r.label,o.term.termId=r.termId,o.state=i.a.invalid),t.push(o)}return t},e.prototype._abortSuggestionQuery=function(){this._suggestionsQuery&&(this._suggestionsQuery.cancel(),this._suggestionsQuery=null),this._matchQuery&&(this._matchQuery.cancel,this._matchQuery=null)},e}()}
,2666:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496");(0,n("fui.util_43").pZ)([{rawString:".ms-IframeLoaderPanel{width:100%}.ms-IframeLoader-loadingLabel{padding-bottom:15px;display:none}.ms-IFrameLoader-LoadingWithMargin.ms-IframeLoader-loadingLabel{margin:15px 15px 15px 30px}.ms-IframeLoader-title{display:none}.ms-IframeLoader-iframe{width:100%;border:none;display:block}.ms-IframeLoader-progressContainer{display:none}.ms-IframeLoader--visible,.ms-IframeLoader-iframe--visible,.ms-IframeLoader-loadingLabel--visible,.ms-IframeLoader-progressContainer--visible,.ms-IframeLoader-title--visible{display:block}"}]);var o=function(e){function t(t){var n=e.call(this,t)||this;return n._onLoad=function(){n.props.onLoad&&n.props.onLoad(n._frame)},n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this,t={height:this._getIframeHeight()};return i.createElement(r.k8Z,(0,a.W_)({className:"ms-IframeLoaderPanel",firstFocusableSelector:"ms-TextField-field",isOpen:!0},this.props.panelProps),i.createElement("iframe",{className:"ms-IframeLoader-iframe",src:this.props.url,ref:function(t){e._frame=t},onLoad:this._onLoad,style:(0,a.W_)((0,a.W_)({},t),this.props.iframeStyle),role:this.props.isExcludeFromScreenReader?"none":null}))},t.prototype.componentWillUnmount=function(){this._frame&&(this._frame.src="")},t.prototype._getIframeHeight=function(){var e=document.body.clientHeight-50;return(e=e<50?50:e)+"px"},t.defaultProps={panelProps:{type:r.ecV.largeFixed}},t}(i.Component)}
,2700:(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("fui.util_43"),s=n(2696);(0,o.pZ)([{rawString:".ms-TaxonomyPicker-termLabel{max-width:100%;text-overflow:ellipsis;overflow:hidden}.ms-TaxonomyPicker-termLabel.ms-TaxonomyPicker-termLabelInvalid{color:"},{theme:"errorText",defaultValue:"#a4262c"},{rawString:";-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.ms-TaxonomyPicker-termLabel.ms-TaxonomyPicker-termLabelValid{text-decoration:underline}.ms-TaxonomyPicker-termLabel.ms-TaxonomyPicker-TermLabelUnknown{color:"},{theme:"warningHighlight",defaultValue:"#ffb900"},{rawString:";-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.ms-TaxonomyPicker-termLabel.ms-TaxonomyPicker-modernTermLabelInvalid{color:"},{theme:"errorText",defaultValue:"#a4262c"},{rawString:"}.ms-TaxonomyPicker-termLabel.ms-TaxonomyPicker-modernTermLabelUnknown{color:"},{theme:"warningHighlight",defaultValue:"#ffb900"},{rawString:"}"}]);var c=function(e){var t=e.label,n=e.itemState,c=e.className,d=(0,r.mul)(e,r.RTe);return i.createElement("div",(0,a.W_)({},d,{className:(0,o.N0)("ms-TaxonomyPicker-termLabel",c,n===s.a.invalid&&"ms-TaxonomyPicker-modernTermLabelInvalid",n===s.a.valid,n===s.a.unknown&&"ms-TaxonomyPicker-modernTermLabelUnknown")}),t)}}
,2701:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("fui.util_43");(0,o.pZ)([{rawString:'@charset "UTF-8";.ms-TermSynonym-List{margin-top:2px;list-style:none;color:'},{theme:"bodySubtext",defaultValue:"#605e5c"},{rawString:'}[dir=ltr] .ms-TermSynonym-List{padding-left:0}[dir=rtl] .ms-TermSynonym-List{padding-right:0}.ms-TermSynonym-List .ms-TermSyonym-synonymPrefix{font-weight:600}.ms-TermSynonym-List>li:before{content:"•";font-size:11px;padding-right:4px}.ms-TermSuggestion-container{padding:7px 12px}html[dir=ltr] .ms-TermSuggestion-container{text-align:left}html[dir=rtl] .ms-TermSuggestion-container{text-align:right}.ms-TermSuggestion-path{font-size:12px;color:'},{theme:"bodySubtext",defaultValue:"#605e5c"},{rawString:"}"}]);var s=n(7284),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.term,n=e.start,a=this.getParentPath();return i.createElement("div",{className:"ms-TermSuggestion-container"},t.label,!!a&&i.createElement("div",null,i.createElement("span",{className:"ms-TermSuggestion-path"}," ",a," ")),i.createElement(d,{synonyms:this._getSynonyms(this.props),start:n}))},t.prototype._getSynonyms=function(e){var t=[];if(e&&e.completions.length>0)for(var n=function(n){var a=e.completions[n];if(e.term.label.toLowerCase()===e.start.toLowerCase()+a.toLowerCase())return"continue";if(e.start.length>0&&e.term&&e.term.synonyms){var i=e.term.synonyms.filter(function(t){return t.toLowerCase()===e.start.toLowerCase()+a.toLowerCase()});1===i.length&&t.push(i[0])}},a=0;a<e.completions.length;a++)n(a);return t},t.prototype.getParentPath=function(){if(this.props.term&&this.props.term.paths){var e=this.props.term.paths[0];e[0]+e[e.length-1]==="[]"&&(e=e.substr(1,e.length-2));var t=e.split(":");return t.length>0?s.a+" "+t[t.length-1]:""}},t}(i.Component),d=function(e){var t=e.synonyms,n=e.start;return t&&t.length>0?i.createElement("ul",{className:"ms-TermSynonym-List"},t.map(function(e){return i.createElement("li",{key:e+"synonym"},i.createElement("span",{className:"ms-TermSyonym-synonymPrefix"},function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())?e.substr(0,t.length):""}(e,n).trim()),i.createElement("span",null,function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())?e.substr(t.length):e}(e,n).trim()))})):null},l=n(2696),u=n(2700),f=n(2695),p=n(7283),m=n(1250);(0,o.pZ)([{rawString:".ms-TaxonomyPicker-termContainer{font-size:14px;cursor:pointer;text-align:center;flex-shrink:1;margin:2px;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;max-width:100%}html[dir=ltr] .ms-TaxonomyPicker-termContainer{text-align:left}html[dir=rtl] .ms-TaxonomyPicker-termContainer{text-align:right}.ms-TaxonomyPicker-termContainer:focus{border-radius:2px}.ms-TaxonomyPicker-term:hover{background-color:"},{theme:"listItemBackgroundHovered",defaultValue:"#f3f2f1"},{rawString:"}.ms-TaxonomyPicker-termSelected{background-color:"},{theme:"listItemBackgroundChecked",defaultValue:"#edebe9"},{rawString:"}.ms-TaxonomyPicker-termSelected:hover{background-color:"},{theme:"listItemBackgroundCheckedHovered",defaultValue:"#e1dfdd"},{rawString:"}.ms-TaxonomyPicker-termClose{cursor:pointer;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:";font-size:12px;display:inline-block;padding:0 4px;height:100%}"}]);var _=n("odsp.util_578"),h=function(e){var t,n,s,c,d,h,b=(n=(t=e.item.term).paths&&t.paths.length>0?t.label+" "+t.paths[0]:t.label,t.synonyms&&t.synonyms.length>0?n+"\r\n"+(p.a+t.synonyms.reduce(function(e,t){return e+f.c+t})):n);if(_.tH.isFeatureEnabled({ODB:1659})||_.tH.isFeatureEnabled({ODB:1822})){var g={componentRef:m.a(e.componentRef),item:{name:e.item.term.label,key:e.item.term.termId},index:e.index,selected:e.selected,onRemoveItem:e.onRemoveItem,removeButtonAriaLabel:e.removeButtonAriaLabel,styles:(s=e.item.state,c=e.selected,d=e.tagItemStyles,h={text:{fontSize:"14px"},root:{},close:{}},s===l.a.invalid?h=c?{text:{textDecoration:"dotted underline",fontSize:"14px"},root:{},close:{}}:{text:{color:"#A4262C",textDecoration:"dotted underline",fontSize:"14px"},root:{},close:{}}:s===l.a.unknown&&(h=_.HW.isActivated("8164aec1-dc83-42be-b7c6-bb2544d8021d","04/27/2021","set text color of unknown tag to neutral while it gets validated")?{text:{color:"#ffb90080",textDecoration:"dotted underline",fontSize:"14px"},root:{},close:{}}:{text:{color:(0,o.Dn)().palette.neutralTertiaryAlt,fontSize:"14px"},root:{},close:{}}),!_.HW.isActivated("B205F032-30D7-4917-A95D-DBB4C4B6C798","08/11/2020","Adds style prop to taxonomy picker and taxonomy item")&&d&&(h={input:d.input,text:h.text||d.text||{},root:d.root||h.root,close:d.close||h.close}),h),onItemChange:function(t,n){var a={isSynonym:!1,completions:[],start:"",term:{label:t.name,termId:"".concat(t.key)}};e.onItemChange(a,n)}};return i.createElement(r.GJ6,(0,a.W_)({},g),e.item.term.label)}return i.createElement("div",{className:(0,o.N0)("ms-TaxonomyPicker-termContainer",e.selected?"ms-TaxonomyPicker-termSelected":"ms-TaxonomyPicker-term"),role:"listitem",key:e.index,"data-selection-index":e.index,"data-is-focusable":!e.disabled&&!0,title:b,"aria-label":b},i.createElement(u.a,{label:e.item.term.label,itemState:e.item.state}),i.createElement("span",{className:"ms-TaxonomyPicker-termCloseContainer"},i.createElement(r.k45,{iconName:"Cancel",className:"ms-TaxonomyPicker-termClose",onClick:e.onRemoveItem})))},b=n(7285);(0,o.pZ)([{rawString:".ms-Taxonomy-termPickerContainer{width:100%;min-width:304}.ms-Taxonomy-termPickerContainerDepricated{width:100%}.ms-Taxonomy-termPicker{border:0;outline:0;display:inline-block;width:100%;background-color:"},{theme:"bodyBackground",defaultValue:"#fff"},{rawString:";padding:4px}[dir=ltr] .ms-Taxonomy-termPicker{padding-left:0}[dir=rtl] .ms-Taxonomy-termPicker{padding-right:0}.ms-Taxonomy-termPicker .ms-BasePicker-text{border:none}.ms-Taxonomy-termPicker .ms-BasePicker-text .ms-BasePicker-input{padding:5px;font-size:14px}.ms-Taxonomy-termPicker.is-focused{border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:"}.theme-fix-picker input{background-color:"},{theme:"bodyBackground",defaultValue:"#fff"},{rawString:"}.ms-Taxonomy-termPickerAccessible{position:absolute;top:-9001px;left:-9001px;height:1px;width:1px}"}]),n(2370);var g=n(26),v=r.lkX,y=function(e){function t(t){var n=e.call(this,t)||this;return n._termPicker=(0,i.createRef)(),n._getTextFromItem=function(e){return e.term.label},n.isOnFocusPropEnabled=function(){return!_.HW.isActivated("1d02e875-58a9-4a04-bbfc-121385b4cb03","02/18/2022","Add onfocus prop for the component")},n.isOnFixForShortFormWidthEnabled=function(){return!_.HW.isActivated("1c9e7e53-6857-40ad-b7c1-7d448df00c12","11/21/2022","Fixes BUG 1486978 to show term label on small width")},n.isStopEnterKeyPropagationEnabled=function(){return!_.HW.isActivated("cf5347f2-9378-4331-bda6-b2c5d6f5e5a1","10/02/2021","Fixing accessiblity bug 1177841 for incorrect details announced by screen reader.")},n.isAriaLabelForRemoveButtonEnabled=function(){return!_.HW.isActivated("1c4a4f65-eeae-4e3a-b3bc-4eea771143c4","11/06/2020","Fixing accessiblity bug 938934 for descernible text")},n.isBackgroundFixedForDarkTheme=function(){return!_.HW.isActivated("0335d468-ff25-4414-8b28-4aacd00a581f","11/18/2020","Fixing background for dark theme")},n._isNoResultFoundToBeUsedAsPerFabric=function(){return!_.HW.isActivated("37521edc-5ce2-4090-a4cc-36d85c1e9892","11/06/2020","using fabric provided no result found")},n._isAriaLabelPrefixAllowed=function(){return!_.HW.isActivated("8cfc50e2-a8b2-4530-884f-d537360df887","11/07/2020","Adds prefix to aria label")},n._removeTagAnnounceEnabled=function(){return!_.HW.isActivated("3490e90f-7588-418f-93e9-4dd2c4ffd7b4","09/03/2021","Enable screen reader announce removal of tags.")},n._renderItem=function(e){if(n.props.tagItemStyles&&!_.HW.isActivated("B205F032-30D7-4917-A95D-DBB4C4B6C798","08/11/2020","Adds style prop to taxonomy picker and taxonomy item")&&(e.tagItemStyles=n.props.tagItemStyles),n._removeTagAnnounceEnabled()&&e.onRemoveItem){var t=e.onRemoveItem;e.onRemoveItem=function(){n.setState({tagUpdatedText:n.announceTagRemoved(e.item.term.label)}),t()}}return n.isStopEnterKeyPropagationEnabled()?i.createElement("div",{onKeyDown:function(e){13!==e.keyCode&&"Enter"!==e.key||e.stopPropagation()}},i.createElement(h,(0,a.W_)({},e))):i.createElement(h,(0,a.W_)({},e))},n._validateInput=function(e){return e&&e.length>0?r.vbP.valid:r.vbP.invalid},n._renderSuggestion=function(e){return i.createElement(c,(0,a.W_)({},e))},n._createGenericItem=function(e){return{item:n._createGenericTerm(e),selected:!1}},n._onItemSelect=function(e){return e.term.isValid&&(e.state=l.a.valid),e},n._onInputChange=function(e){if(e&&e.indexOf(";")>-1){var t=e.split(";").filter(function(e){return e&&""!==e}).map(function(e){return n._createGenericTerm(e)});return n._onItemsChange(n.props.selectedTerms.concat(t)),""}return e},n._onItemsChange=function(e){n.props.selectedTerms&&n.props.selectedTerms.length<e.length&&n.setState({tagUpdatedText:n.announceTagAdded(e[e.length-1].term.label)},function(){return n.focus()}),n.props.onItemsChange(e)},n.state={tagUpdatedText:null},n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.isBackgroundFixedForDarkTheme()?(0,o.N0)(this.props.className,"ms-Taxonomy-termPicker","theme-fix-picker"):(0,o.N0)(this.props.className,"ms-Taxonomy-termPicker"),t=this.props.placeholder||b.a;return i.createElement("div",{className:(0,o.N0)(this.props.containerClassName,this.isOnFixForShortFormWidthEnabled()?"ms-Taxonomy-termPickerContainer":"ms-Taxonomy-termPickerContainerDepricated")},i.createElement(v,{removeButtonAriaLabel:this.isAriaLabelForRemoveButtonEnabled()?b.c:void 0,className:e,onResolveSuggestions:this.props.disableSearch?function(){return g.c.resolve([])}:this.props.resolveSuggestions,onChange:this._onItemsChange,onItemSelected:this._onItemSelect,selectedItems:this.props.selectedTerms,getTextFromItem:this._getTextFromItem,createGenericItem:this._createGenericItem,onRenderItem:this._renderItem,onRenderSuggestionsItem:this._renderSuggestion,onBlur:this.props.onBlur,onValidateInput:this._validateInput,itemLimit:this.props.termLimit,onInputChange:this._onInputChange,componentRef:this._termPicker,inputProps:{placeholder:t,onFocus:this.isOnFocusPropEnabled()&&this.props.onFocus,"aria-label":this._isAriaLabelPrefixAllowed()&&this.props.ariaLabelPrefix?this.props.ariaLabelPrefix+t:t},styles:this.props.tagItemStyles,onEmptyResolveSuggestions:this.props.onEmptyResolveSuggestions,pickerSuggestionsProps:{noResultsFoundText:this._isNoResultFoundToBeUsedAsPerFabric?this.props.disableSearch?void 0:b.b:void 0},disabled:this.props.disabled,onFocus:this.isOnFocusPropEnabled()&&this.props.onFocus,pickerCalloutProps:this.props.pickerCalloutProps}),i.createElement("span",{className:"ms-Taxonomy-termPickerAccessible",role:"status","aria-live":"polite"},this.state.tagUpdatedText))},t.prototype.focus=function(){this._termPicker.current&&(this.props.termLimit&&this.props.selectedTerms&&this.props.selectedTerms.length===this.props.termLimit?this._termPicker.current.focus():this._termPicker.current.focusInput())},t.prototype._createGenericTerm=function(e){return{term:{termId:f.a,label:e,isValid:!1},isSynonym:!1,completions:[],start:"",state:l.a.unknown}},t.prototype.announceTagAdded=function(e){return _.OO(b.d,e)},t.prototype.announceTagRemoved=function(e){return _.OO(b.e,e)},t}(r.oKI)}
,2696:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var a={unknown:0,valid:1,invalid:2}}
,2695:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>i,c:()=>r});var a=n(43).a.Empty,i="|",r=";"}
,2783:(e,t,n)=>{"use strict";n.d(t,{a:()=>v});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("fui.lcoms_828"),s=(n(2341),n(2784)),c=n(1250),d=n(2696),l=n(2697),u=n(2698),f=n(2694),p=n(41),m=n(7286),_=n(2695),h=n("odsp.util_578"),b=n(2782),g=(0,n("fui.util_43").Dn)(),v=function(e){function t(t){var n=e.call(this,t)||this;return n._taxonomyPicker=(0,i.createRef)(),n._magnifiedFooterStyle={marginTop:20},n._onRenderFooterContent=function(){var e=n.state.selectedTerms.some(function(e){return e.state!==d.a.valid})||n.props.isRequiredField&&0===n.state.selectedTerms.length,t=i.createElement(i.Fragment,null,i.createElement(o.rfU,{text:m.b,className:"ms-TaggingPanel-ApplyButton",onClick:n._handleClickApplyButton,style:{marginRight:"8px"},disabled:e}),i.createElement(o.B0k,{text:m.c,className:"ms-TaggingPanel-CancelButton",onClick:n._handleClickCancelButton}));return i.createElement(i.Fragment,null,i.createElement("div",null,t),i.createElement("p",null,i.createElement(o.NG4,{onClick:n._handleShowClassicTree},m.e)))},n._handleClickCancelButton=function(){n._log("ClickCancelButton"),n.props.onDismiss&&n.props.onDismiss()},n.getIsViewMagnified=function(){return!!(window.matchMedia&&window.matchMedia("(max-width: 640px)")&&window.matchMedia("(max-width: 640px)").matches)},n._handleShowClassicTree=function(){n._log("ReturnToClassicTreeClicked"),n._saveStateAndClosePanel(),n.props.showClassicTaggingTree()},n._handleClickApplyButton=function(){n._log("ClickApplyButton"),n._saveStateAndClosePanel()},n._onItemsChange=function(e){var t=n.state.selectedTerms;n._updateTaxonomyPicker(t,e)},n._resolveSuggestions=function(e){return n._dataManager.resolveSuggestions(e,n.props.queryParams).then(function(e){return f.a.filterTaggedTerms(e,n.state.selectedTerms)}).catch(function(e){return[]})},n.convertToTreeNode=function(e,t,a,i){return void 0===a&&(a="en-US"),void 0===i&&(i="en-US"),{key:(0,s.d)(e,t),id:e.id,type:t,name:(0,s.c)(e,t,a,i),isDisabled:y(e.isAvailableForTagging,n.props.queryParams.termSetList),isLeaf:void 0!==e.childrenCount&&0===e.childrenCount}},n.getEmptySearchResults=function(e){var t=[];return n.props.emptyKeySearchSuggestions&&n.props.emptyKeySearchSuggestions.forEach(function(e){var n={state:d.a.unknown,isSynonym:!1,completions:[],start:"",term:{label:e,termId:_.a}};t.push(n)}),f.a.filterTaggedTerms(t,e,!0)},n._dataSource=t.dataSource||new l.a(t.pageContext),n._dataProvider=new u.a({},{dataSource:n._dataSource}),n._dataManager=new f.a({dataProvider:n._dataProvider,dataSource:n._dataSource}),n.state={selectedTerms:t.selectedTerms?c.a(t.selectedTerms):[],selectedNodes:{},highlightedNodesMap:{},nodeParents:{},orphanHighlightedNodes:{},isViewMagnified:n.getIsViewMagnified()},n.onSelect=n.onSelect.bind(n),n.onDeselect=n.onDeselect.bind(n),n.addParentToChildren=n.addParentToChildren.bind(n),n.updateTermsFromParentPane=n.updateTermsFromParentPane.bind(n),window.matchMedia&&(n.handleBrowserSize=n.handleBrowserSize.bind(n),window.matchMedia("(max-width: 640px)").addEventListener("change",n.handleBrowserSize)),n}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){this.setTermsInTreeFromPicker()},t.prototype.setTermsInTreeFromPicker=function(){this._log("AutoSending"+this.state.selectedTerms.length+"TermsForSelectionInTree");for(var e=0;e<this.state.selectedTerms.length;e++)this._selectNodeInTree(this.convertToNode(this.state.selectedTerms[e].term),[])},t.prototype.render=function(){return i.createElement("div",{className:"ms-TaggingPanel"},i.createElement(r.k8Z,{isOpen:this.props.isPanelOpen,className:"ms-TaggingPanel-Panel",onDismiss:this.props.onDismiss,onOpen:this.updateTermsFromParentPane,type:r.ecV.medium,headerText:this.props.title,isFooterAtBottom:!0,onRenderFooterContent:this.state.isViewMagnified?void 0:this._onRenderFooterContent,closeButtonAriaLabel:m.d,styles:this._isFixForPanelButtonOverlapEnabled&&{commands:{backgroundColor:g.semanticColors.bodyBackground},footer:{backgroundColor:g.semanticColors.bodyBackground}}},i.createElement(s.a,{selectedTerms:this.state.selectedTerms,onDismiss:this.props.onDismiss,queryParams:this.props.queryParams,pageContext:this.props.pageContext,dataSource:this.props.dataSource,termLimit:this.props.termLimit,isRequiredField:this.props.isRequiredField,resolveSuggestions:this._resolveSuggestions,onItemsChange:this._onItemsChange,taxonomyPicker:this._taxonomyPicker,selectedNodes:this.state.selectedNodes,highlightedNodesMap:this.state.highlightedNodesMap,onSelect:this.onSelect,onDeselect:this.onDeselect,addParentToChildren:this.addParentToChildren,isTaxonomyPickerVisible:!0,isHeadingVisible:!0,isTermSuggestionAllowed:!0,convertToTreeNode:this.convertToTreeNode,onEmptyResolveSuggestions:this.getEmptySearchResults,qosNamePrefix:"TaggingTree",getOAuthToken:this.props.getOAuthToken,customerPromiseHelper:this.props.customerPromiseHelper}),!!this.state.isViewMagnified&&i.createElement("div",{style:this._magnifiedFooterStyle},this._onRenderFooterContent())))},t.prototype.updateTermsFromParentPane=function(){var e=this;this.setState(function(t){return{selectedTerms:e.props.selectedTerms?c.a(e.props.selectedTerms):[]}}),this.setState(function(e){return{selectedNodes:{},highlightedNodesMap:{},orphanHighlightedNodes:{},nodeParents:{}}},function(){e.setTermsInTreeFromPicker()})},t.prototype.getSelectionMode=function(){return 1===this.props.termLimit?"SINGLE_SELECT":"MULTIPLE_SELECT"},t.prototype.updateHighlightedNodes=function(e,t){var n=this.state.nodeParents[e.id]?this.state.nodeParents[e.id]:[];n.push(e.id),this.updateHighlight(t,n)},t.prototype.updateHighlight=function(e,t){var n=this,a="Highlight"===e?1:-1;this.setState(function(e){var i="MULTIPLE_SELECT"===n.getSelectionMode()?e.highlightedNodesMap:{};return t.forEach(function(e){var t=JSON.stringify({id:e}),n=void 0!==i[t]?i[t]:0;i[t]=n+a,i[t]<=0&&delete i[t]}),{highlightedNodesMap:i}})},t.prototype.onMultiSelect=function(e){var t=this,n={};this.setState(function(a){return(n=a.selectedNodes)[t._getNodeKey(e)]=!0,{selectedNodes:n}})},t.prototype.onSingleSelect=function(e){var t=this;this.setState(function(){var n={};return n[t._getNodeKey(e)]=!0,{selectedNodes:n}})},t.prototype.onDeselect=function(e,t){void 0===t&&(t=[]);try{this._deselectNodeInTree(e,t),this._log("PassingDeselectionOfTermFromTreeToPicker"),this._updateTaxonomyPicker(this.state.selectedTerms,this.state.selectedTerms.filter(function(t){return t.term.termId!==e.id}))}catch(e){if(!this.props.customerPromiseHelper)throw e;this.props.customerPromiseHelper.endEditTaxonomyTaggingCustomerPromiseWithFailureAndStartNew({errorCode:b.a.TreeNodeDeselectionFailure,errorMessage:e.message,errorScenario:"TreeNodeDeselectionFailure"})}},t.prototype.addParentToChildren=function(e,t){var n=this.state.nodeParents,i=this.state.orphanHighlightedNodes,r=void 0===n[t.id]?[]:n[t.id],o=[];e.forEach(function(e){n[e.id]=(0,a.AE)((0,a.AE)([],r,!0),[t.id],!1),!0===i[e.id]&&(o=(0,a.AE)((0,a.AE)((0,a.AE)([],o,!0),n[e.id],!0),[e.id],!1),delete i[e.id])}),this.setState({nodeParents:n,orphanHighlightedNodes:i}),o.length>0&&this.updateHighlight("Highlight",o)},t.prototype._log=function(e){p.Engagement.logData({name:"TaxonomyTaggingPanel"+e,isIntentional:!0})},t.prototype._saveStateAndClosePanel=function(){this.state.selectedTerms&&this.props.onItemsChange(this.state.selectedTerms),this._isAnnouncementAllowed&&this.props.setAnnouncement&&this.props.setAnnouncement(m.a),this.props.onDismiss&&this.props.onDismiss()},t.prototype.updateTermsInTreeFromPicker=function(e,t){var n=this,a={};t.forEach(function(e){a[n._getTermKey(e.term)]=!0}),e.forEach(function(e){var t=e.term;if(!a[n._getTermKey(t)]){var i=n.convertToNode(t);n._log("PassingDeselectionOfTermFromPickerToTree"),n._deselectNodeInTree(i,[])}}),a={},e.forEach(function(e){a[n._getTermKey(e.term)]=!0}),t.forEach(function(e){var t=e.term;if(!a[n._getTermKey(t)]){var i={name:t.label,id:t.termId,type:s.b.TERM.toString()};n._log("PassingSelectionOfTermFromPickerToTree"),n._selectNodeInTree(i,[])}})},t.prototype._getTermKey=function(e){return JSON.stringify({label:e.label,id:e.termId})},t.prototype.convertToNode=function(e){return{name:e.label,id:e.termId}},t.prototype._updateTaxonomyPicker=function(e,t){var n=this;this.setState({selectedTerms:t},function(){0===t.length&&n._focus(),n._validateTerms(e,t)})},t.prototype._focus=function(){this._taxonomyPicker.current&&this._taxonomyPicker.current.focus()},t.prototype.onSelect=function(e,t){void 0===t&&(t=[]);try{this._selectNodeInTree(e,t);var n={state:d.a.valid,isSynonym:!1,completions:[],start:"",term:{label:e.name,termId:e.id}},a="SINGLE_SELECT"===this.getSelectionMode()?[]:this.state.selectedTerms;this._log("PassingSelectionOfTermFromTreeToPicker"),this._updateTaxonomyPicker(this.state.selectedTerms,a.concat(n))}catch(e){if(!this.props.customerPromiseHelper)throw e;this.props.customerPromiseHelper.endEditTaxonomyTaggingCustomerPromiseWithFailureAndStartNew({errorCode:b.a.TreeNodeSelectionFailure,errorMessage:e.message,errorScenario:"TreeNodeSelectionFailure"})}},t.prototype.handleBrowserSize=function(e){this.setState({isViewMagnified:e.matches})},t.prototype._selectNodeInTree=function(e,t){"MULTIPLE_SELECT"===this.getSelectionMode()?this.onMultiSelect(e):(this.onSingleSelect(e),this.setState(function(e){return{orphanHighlightedNodes:{}}})),this._isNodeOrphan(t,e)&&this.setState(function(t){var n=t.orphanHighlightedNodes;return n[e.id]=!0,{orphanHighlightedNodes:n}}),this._isNodeLoadedInTree(e)?(this._log("SelectedNodeInLoadedTree"),this.updateHighlightedNodes(e,"Highlight")):this._log("SelectedNodeNotInLoadedTree")},t.prototype._isNodeLoadedInTree=function(e){return void 0!==this.state.nodeParents[e.id]},t.prototype._isNodeOrphan=function(e,t){return 0===e.length&&void 0===this.state.nodeParents[t.id]},t.prototype._deselectNodeInTree=function(e,t){var n=this,a={};this.setState(function(t){return delete(a=t.selectedNodes)[n._getNodeKey(e)],{selectedNodes:a}}),void 0!==this.state.orphanHighlightedNodes[e.id]&&this.setState(function(t){var n=t.orphanHighlightedNodes;return delete n[e.id],{orphanHighlightedNodes:n}}),this._isNodeLoadedInTree(e)?(this._log("DeselectedNodeLoadedInTree"),this.updateHighlightedNodes(e,"unHighlight")):this._log("DeselectedNodeNotInLoadedTree")},t.prototype._getNodeKey=function(e){return JSON.stringify({id:e.id,type:s.b.TERM.toString()})},t.prototype._validateTerms=function(e,t){var n=this;this._getValidatedTerms(t).then(function(t){n.setState({selectedTerms:t}),n.updateTermsInTreeFromPicker(e,t)})},t.prototype._getValidatedTerms=function(e){return e.some(function(e){return e.state!==d.a.valid})?this._dataManager.validateTerms(this.props.queryParams,e):Promise.resolve(e)},Object.defineProperty(t.prototype,"_isAnnouncementAllowed",{get:function(){return!h.HW.isActivated("8961f634-d19d-4679-8a4c-580c27fef861","11/07/2020","Adding Announcements on top of picker")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isFixForPanelButtonOverlapEnabled",{get:function(){return!h.HW.isActivated("73469dec-fb52-4c77-a6ab-fc24c726b8e3","8/28/2023","Added white background to fix panel button overlap")},enumerable:!1,configurable:!0}),t}(r.oKI);function y(e,t){if("boolean"==typeof e)return void 0!==e&&!e;if(void 0===e)return!1;var n=e.filter(function(e){return e.setId===t});return void 0!==n&&0!==n.length&&!n[0].isAvailable}}
,2341:(e,t,n)=>{"use strict";(0,n("fui.util_43").pZ)([{rawString:".ms-TreePicker-dialog.ms-Dialog-main{max-width:640px;width:100%;max-height:none}.ms-TreePicker-iFrame{border:none;width:100%}.ms-TreePicker-dialogSpinner{width:100%;padding:15px 0}"}])}
,2929:(e,t,n)=>{"use strict";n.d(t,{a:()=>d});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lcoms_828"),o=n("fui.lco_496"),s=n(1487),c=n(7289),d=(n(2341),function(e){function t(t){var n=e.call(this,t)||this;return n._iFrame=(0,i.createRef)(),n.iframeOnLoad=function(e){var t=e.target;if(t&&t.contentWindow){var a=t.contentWindow.document,i=s.a.getElementByTagAndPartialId(a,"input","OkButton"),r=s.a.getElementByTagAndPartialId(a,"input","CancelButton");i&&r&&(i.onclickListenerAdded||(i.onclickListenerAdded=!0,n._events.on(i,"click",function(e){var t=s.a.getElementByTagAndPartialId(a,"input","FieldEditorHiddenInput");n.props.resultHander(t)})),r.onclickListenerAdded||(r.onclickListenerAdded=!0,n._events.on(r,"click",function(e){n.props.resultHander(null),e.stopPropagation(),e.preventDefault()}))),n.setInnerDialogStyle(a),n._async.setTimeout(function(){var e=t.style.height;e&&"0px"!==e||(e=.618*document.body.clientHeight+"px"),n.setState({loading:!1,iFrameStyle:{height:e}})},200)}},n.state={loading:!0},n}return(0,a.XJ)(t,e),t.prototype.render=function(){return i.createElement(r.X$,{hidden:!1,modalProps:{containerClassName:"ms-TreePicker-dialog"},title:c.b+this.props.title,onDismiss:this.props.onDismiss},this.state.loading&&i.createElement("div",{className:"ms-TreePicker-dialogSpinner"},i.createElement(r.tu6,{label:c.a}," ")),i.createElement("iframe",{className:"ms-TreePicker-iFrame",ref:this._iFrame,src:this.props.taxonomyTreeUrl,onLoad:this.iframeOnLoad,style:this.state.iFrameStyle,sandbox:"allow-same-origin allow-scripts"}))},t.prototype.componentWillUnmount=function(){this._iFrame.current&&(this._iFrame.current.src="")},t.prototype.setInnerDialogStyle=function(e){var t=e.getElementById("FieldEditoreditableRegion");t&&(t.parentElement.style.width="100%")},t}(o.oKI))}
,2784:(e,t,n)=>{"use strict";n.d(t,{a:()=>y,b:()=>A,c:()=>E,d:()=>C});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lcoms_828"),o=n("fui.lco_496"),s=n(2701),c=n(2741),d=n(41),l=n(2699),u=n(7287),f=n("odsp.util_578");(0,n("fui.util_43").pZ)([{rawString:".TaxonomyTreeSelector{border-bottom:thin solid #00f;margin-bottom:30px}.TaxonomyTreeSelector-TaxonomyPicker{min-height:3em}.TaxonomyTreeSelector-TreeComponent{max-width:50em;overflow-x:visible}.linkIcon{top:2px;position:relative;margin-right:5px;margin-left:1px}.toolTipHeader{padding:18px 24px 12px}.toolTipTitle{margin:0;color:#323130;font-weight:200;font-size:20px}.toolTipInner{height:100%;padding:0 24px 20px;font-size:14px}.toolTipActions{position:relative;margin-top:20;width:100%;white-space:nowrap}.toolTipSubtext{margin:0;margin-bottom:10px;color:#323130;font-weight:200}.treeExplorer{clear:both}@media screen and (max-width:640px){.treeExplorer{overflow-x:auto}}.treeSelectorMenuItem{float:right;margin-top:10px}"}]);var p=n(2782),m="TaxonomyTreeSelector",_="LoadNextChildren";function h(e,t,n,i,r,o,s){return(0,a.Zd)(this,void 0,void 0,function(){var c;return(0,a.qr)(this,function(a){switch(a.label){case 0:return[4,n.getNode((d=e,l=t,D+l+"/terms/"+d),o+".GetTerm")];case 1:return c=a.sent(),[2,r(c,A.TERM,i,s)]}var d,l})})}function b(e,t,n,i,r,o,s,c,d){return void 0===c&&(c="LoadChildren"),void 0===d&&(d=void 0),(0,a.Zd)(this,void 0,void 0,function(){var l,u;return(0,a.qr)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,n.getNodeChildren(e,o)];case 1:return[2,{nextLink:(l=a.sent()).nextLink,children:x(l.children,t,i,r,s)}];case 2:if(u=a.sent(),!d)throw u;return 401===u.status?d.endEditTaxonomyTaggingCustomerPromiseWithFailureAndStartNew({errorCode:p.a.TaxonomyAuthenticationFailure,errorMessage:u.message,errorScenario:c}):d.endEditTaxonomyTaggingCustomerPromiseWithFailureAndStartNew({errorCode:c===_?p.a.GetSiblingsFailure:p.a.GetChildrenFailure,errorMessage:u.message,errorScenario:c}),[3,3];case 3:return[2]}})})}function g(e,t,n,a){return void 0===n&&(n=void 0),void 0===a&&(a=L.GET),String(e.type)===A.TERM_SET.toString()?function(e,t,n){void 0===n&&(n=L.GET);var a="children";if(!f.HW.isActivated("ea0180c6-94f2-437c-96f3-6904198c771b","12/14/2023","Removing filters param from post uri")){var i="",r="";return n===L.GET&&(w()&&(r="$filter=isDeprecated eq false&"),i="?"+r+(void 0!==t?"$top="+t:""),a="getLegacyChildren()"),D+e+"/"+a+i}return a=n===L.GET?"getLegacyChildren()":"children",w()?D+e+"/"+a+"?$filter=isDeprecated eq false"+(void 0!==t?"&$top="+t:""):D+e+"/"+a+(void 0!==t?"?$top="+t:"")}(e.id,n,a):function(e,t,n,a){void 0===a&&(a=L.GET);var i=a===L.GET?"getLegacyChildren()":"children";return w()?D+e+"/terms/"+t+"/"+i+"?$filter=isDeprecated eq false"+(void 0!==n?"&$top="+n:""):D+e+"/terms/"+t+"/"+i+(void 0!==n?"?$top="+n:"")}(t,e.id,n,a)}function v(e,t,n){n||(n=":TaggingTree:"),d.Engagement.logData({name:t+n+e,isIntentional:!0})}var y=function(e){function t(t){var n=e.call(this,t)||this;return n.termStoreDataSource=null,n.termStoreDefaultLanguage=void 0,n.setTreeStatusMessage=function(e){n.setState(function(t){return{treeStatusMessage:e}})},n.state={rootNode:void 0,isRootSelectable:!1,contactEmail:void 0,treeStatusMessage:void 0},n.termStoreDataSource=new l.a(n.props.pageContext,n.props.getOAuthToken),n.loadChildren=n.loadChildren.bind(n),n.loadNextChildren=n.loadNextChildren.bind(n),n}return(0,a.XJ)(t,e),t.prototype.getPageLanguage=function(){return this.props.pageContext.currentUICultureName},t.prototype.loadNextChildren=function(e,t,n){return b(e,S(t.type),this.termStoreDataSource,this.getPageLanguage(),this.props.convertToTreeNode,this._qosNamePrefix+".GetMoreSibling",this.termStoreDefaultLanguage,_,this.props.customerPromiseHelper)},t.prototype.getSelectionMode=function(){return 1===this.props.termLimit?"SINGLE_SELECT":"MULTIPLE_SELECT"},t.prototype.loadChildren=function(e,t){return b(g(e,this.props.queryParams.termSetList,50),S(e.type),this.termStoreDataSource,this.getPageLanguage(),this.props.convertToTreeNode,this._qosNamePrefix+".GetNodeChildren",this.termStoreDefaultLanguage,"LoadChildren",this.props.customerPromiseHelper)},t.prototype.render=function(){return i.createElement("div",null,!0===this.props.isTaxonomyPickerVisible&&i.createElement("div",{className:m},i.createElement(s.a,{selectedTerms:this.props.selectedTerms,onItemsChange:this.props.onItemsChange,className:m+"-Picker",containerClassName:m+"-TaxonomyPicker",resolveSuggestions:this.props.resolveSuggestions,termLimit:this.props.termLimit,ref:this.props.taxonomyPicker,"aria-required":this.props.isRequiredField,onEmptyResolveSuggestions:this.props.onEmptyResolveSuggestions})),!0===this.props.isHeadingVisible&&"SINGLE_SELECT"===this.getSelectionMode()&&i.createElement(r.cbL,{styles:this._getLabelStyles,className:m+"-Label"},u.h),!0===this.props.isHeadingVisible&&"MULTIPLE_SELECT"===this.getSelectionMode()&&i.createElement(r.cbL,{styles:this._getLabelStyles,className:m+"-Label"},u.g),this.props.isTermSuggestionAllowed&&this._renderSuggestTermLink(),i.createElement("div",{className:"treeExplorer"},void 0!==this.state.errorMessage&&i.createElement(o.usJ,{messageBarType:o.$ep.error,isMultiline:!1,dismissButtonAriaLabel:u.j},u.f," - ",this.state.errorMessage),void 0===this.state.errorMessage&&void 0===this.state.rootNode&&i.createElement(r.tu6,null),void 0===this.state.errorMessage&&void 0!==this.state.rootNode&&i.createElement(i.Fragment,null,i.createElement(o.A8$,{message:u.o}),i.createElement("div",{className:m+"-TreeComponent"},i.createElement(c.a,{node:this.state.rootNode,loadChildren:this.loadChildren,selectionMode:this.getSelectionMode(),rootNode:this.state.rootNode,isRootSelectable:this.state.isRootSelectable,onSelect:this.props.onSelect,onDeSelectAllChildren:this.props.onDeSelectAllChildren,onDeselect:this.props.onDeselect,loadNextChildren:this.loadNextChildren,logger:{info:function(e,t){v(e,"info",t)},error:function(e,t){v(e,"error",t)}},nodeTypeData:{TERM:{iconCollapsed:"FabricFolderFill",iconExpanded:"FabricOpenFolderHorizontal",contextMenuItems:this.getContextMenuItems(A.TERM)},TERM_SET:{iconCollapsed:"FabricFolderFill",iconExpanded:"FabricOpenFolderHorizontal",contextMenuItems:this.getContextMenuItems(A.TERM_SET)}},highlightedNodesMap:this.props.highlightedNodesMap,selectedNodes:this.props.selectedNodes,addParentToChildren:this.props.addParentToChildren,loadMoreLabel:u.i,treeTabIndex:0,contextMenuPopButtonAriaLabel:u.c,statusMessage:this.state.treeStatusMessage,getSelectAllNode:this.props.getSelectAllNode,updateNodeSelectInclusionMap:this.props.updateNodeSelectInclusionMap,onSelectAllChildren:this.props.onSelectAllChildren,shouldShowLoaderWhileSelectingAllChildren:this.props.shouldShowLoaderWhileSelectingAllChildren,onRenderLoaderWhileSelectingAllChildren:this.props.onRenderLoaderWhileSelectingAllChildren,engagementSource:this.props.engagementSource,labelUnderSpinnerForSelectAllTree:this.props.labelUnderSpinnerForSelectAllTree,deactivatedNodesMap:this.props.deactivatedNodesMap})))))},t.prototype.getTermStoreDefaultLanguage=function(){var e=this.termStoreDataSource,t=this.termStoreDefaultLanguage,n=this._qosNamePrefix;return t?new Promise(function(){return t}):function(e,t){return e.getNode("/_api/v2.1/termStore",t+".GetTermStore").then(function(e){return e.defaultLanguageTag})}(e,n)},t.prototype.componentDidMount=function(){return(0,a.Zd)(this,void 0,void 0,function(){var e,t,n,i,r,o,s,c;return(0,a.qr)(this,function(a){switch(a.label){case 0:if(this.setState({errorMessage:void 0}),void 0===this.props.queryParams)return v("QueryParamsNotPassedToTaxonomyTreeSelector","error"),[2];e=this.props.queryParams.termSetList,t=this.props.queryParams.anchorId,n="00000000-0000-0000-0000-000000000000",a.label=1;case 1:return a.trys.push([1,3,,4]),i=this,[4,this.getTermStoreDefaultLanguage()];case 2:return i.termStoreDefaultLanguage=a.sent(),[3,4];case 3:return v("ErrorInGettingTermStore "+a.sent(),"error"),[3,4];case 4:if(this.props.setTermStoreDefaultLanguage&&this.termStoreDefaultLanguage&&this.props.setTermStoreDefaultLanguage(this.termStoreDefaultLanguage),t!==n)return[3,9];a.label=5;case 5:return a.trys.push([5,7,,8]),[4,this.termStoreDataSource.getNode(I(e),this._qosNamePrefix+".GetTermSet")];case 6:return r=a.sent(),o=this.props.convertToTreeNode(r,A.TERM_SET,this.props.pageContext.currentUICultureName,this.termStoreDefaultLanguage),this.setState(function(e){return{rootNode:o,isRootSelectable:!1,contactEmail:r.contact}}),[3,8];case 7:return v("UnableToLoadRootTermSet"+a.sent(),"error"),this.setState({errorMessage:u.d}),[3,8];case 8:return[2];case 9:return a.trys.push([9,11,,12]),[4,h(t,e,this.termStoreDataSource,this.props.pageContext.currentUICultureName,this.props.convertToTreeNode,this._qosNamePrefix,this.termStoreDefaultLanguage)];case 10:return s=a.sent(),this.setState(function(e){return{rootNode:s,isRootSelectable:!1}}),[3,12];case 11:return v("UnableToLoadRootTerm"+a.sent(),"error"),this.setState({errorMessage:u.e}),[3,12];case 12:return a.trys.push([12,14,,15]),[4,this.termStoreDataSource.getNode(I(e))];case 13:return c=a.sent(),this.setState(function(e){return{contactEmail:c.contact}}),[3,15];case 14:return v("UnableToLoadRootTermSetForContactEmail"+a.sent(),"error"),[3,15];case 15:return[2]}})})},t.prototype.getContextMenuItems=function(e){this.props.pageContext;var t=this.termStoreDataSource,n=this.termStoreDefaultLanguage,i=this.props.queryParams.termSetList,r={id:"",name:""},o=this.getPageLanguage(),s=this.props.convertToTreeNode,c=this._qosNamePrefix,d=[],l=this.setTreeStatusMessage;return this.props.queryParams.allowFillIn&&d.push({name:u.a,actionType:"Add",callback:function(e,d,p){return(0,a.Zd)(this,void 0,void 0,function(){function p(e,t){return{labels:[{name:e,isDefault:!0,languageTag:t}]}}var m,_,h,b,y;return(0,a.qr)(this,function(a){switch(a.label){case 0:if(m=d.type||"",_=o,!function(e){return""!==e&&e.length<255}(e)||!d.id)return v("Client Side Validation Failed While Adding New Term in Tagging Tree","error"),[2,r];h=g(d,i,void 0,L.POST),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,t.addNode(h,p(e,_),c+".AddNewNode")];case 2:return b=a.sent(),l(f.OO(u.b,e)),[2,s(b,S(m),_,n)];case 3:return y=a.sent(),v("API Failure in adding new term in Tagging Tree","error"),v("AddTermException - "+y,"error"),[3,4];case 4:return[2]}})})}}),0!==d.length?d:void 0},t.prototype._getLabelStyles=function(){return{root:{fontSize:"18px",fontWeight:"100",float:"left"}}},t.prototype.handleSendMail=function(){v("ClickOnSendMail","info")},Object.defineProperty(t.prototype,"_qosNamePrefix",{get:function(){return this.props.qosNamePrefix||"UnspecifiedTreeSelector"},enumerable:!1,configurable:!0}),t.prototype._renderSuggestTermLink=function(){var e=this,t="mailto:"+this.state.contactEmail;return this.state.contactEmail&&i.createElement("div",{className:"treeSelectorMenuItem"},i.createElement(r.qxl,{tooltipProps:{onRenderContent:function(){return v("RenderSuggestTermToolTip","info"),i.createElement("div",null,i.createElement("div",{className:"toolTipHeader"},i.createElement("p",{className:"toolTipTitle"},u.n)),i.createElement("div",{className:"toolTipInner"},i.createElement("p",{className:"toolTipSubtext"},u.m),i.createElement("div",{className:"toolTipActions"},i.createElement(r.NG4,{href:t,onClick:e.handleSendMail},i.createElement(o.vb4,{iconName:"Mail",className:"linkIcon"}),u.k))))}},directionalHint:o.aZJ.bottomRightEdge,closeDelay:500},i.createElement(r.NG4,null,u.l)))},t}(o.oKI);function S(e){switch(e){case A.TERM_STORE:return A.TERM_GROUP;case A.TERM_GROUP:return A.TERM_SET;case A.TERM_SET:return A.TERM}return A.TERM}var D=f.HW.isActivated("06102fa7-bfa1-4b2e-9ab8-d08090e0709d","02/10/2022","Removing term group id from tagging tree uri")?"/_api/v2.1/termStore/termGroups/0dc08e45-1170-456c-be6c-f1c232087cfa/termSets/":"/_api/v2.1/termStore/termSets/";function I(e){return D+e+"?$select=*,contact"}function x(e,t,n,a,i){var r=[];return(e||[]).forEach(function(e){w()?r.push(a(e,t,n,i)):e.isDeprecated||r.push(a(e,t,n,i))}),r}function C(e,t){return JSON.stringify({id:e.id,type:t})}function O(e,t,n){var a=void 0;return(e||[]).forEach(function(e){e.languageTag===t&&(a=e.name)}),void 0===a&&(a=n?O(e,n):""),a}function w(){return!f.HW.isActivated("57412959-093f-4f7f-9537-1b6fd14bdfa4","09/01/2023","Getting non depricated terms from backend instead of filtering at UI")}function E(e,t,n,a){return String(t)===A.TERM.toString()?O(e.labels.filter(function(e){return!0===e.isDefault}),n,a):O(e.localizedNames,n,a)}var A={TERM_STORE:"TERM_STORE",TERM_GROUP:"TERM_GROUP",TERM_SET:"TERM_SET",TERM:"TERM"},L={GET:0,POST:1}}
,2782:(e,t,n)=>{"use strict";n.d(t,{a:()=>s,b:()=>c,c:()=>i,d:()=>o,e:()=>a,f:()=>r});var a={TaxonomyTagging:"TaxonomyTagging"},i=new Map([[a.TaxonomyTagging,"Edit"]]),r={OpenTaxonomyTaggingPanel:"Open taxonomy tagging panel",Unexpected:"Unexpected"},o={TaxonomyTaggingPanelClose:"Close taxonomy tagging panel"},s={TaxonomyAuthenticationFailure:"TaxonomyAuthenticationFailure",GetSiblingsFailure:"GetSiblingsFailure",GetChildrenFailure:"GetChildrenFailure",TreeNodeSelectionFailure:"TreeNodeSelectionFailure",TreeNodeDeselectionFailure:"TreeNodeDeselectionFailure"},c=new Map([["TaxonomyAuthenticationFailure","LoadTreeFailed"],["GetSiblingsFailure","TreeNavigationFailed"],["GetChildrenFailure","LoadTreeFailed"],["TreeNodeSelectionFailure","TagSelectionFailed"],["TreeNodeDeselectionFailure","TagSelectionFailed"]])}
,2925:(e,t,n)=>{"use strict";var a;n.d(t,{a:()=>r});var i=((a={}).Text="TextField",a.Note="AlignLeft",a.DateTime="Calendar",a.Date="Calendar",a.MultiChoice="MultiSelect",a.Choice="ChoiceColumn",a.Thumbnail="photo2",a.User="Contact",a.UserMulti="Contact",a.URL="Link",a.Location="POI",a.Number="Number",a.Attachments="Attach",a.Lookup="Switch",a.LookupMulti="Switch",a.Computed="ProcessMetaTask",a.Image="Photo2",a.Outcome="Task",a.Currency="Currency",a.Boolean="BooleanData",a.ExternalData="Global",a.File="Page",a.WorkflowEventType="Workflow",a.WorkflowStatus="Workflow",a.TaxonomyFieldType="BulletedTreeList",a.TaxonomyFieldTypeMulti="BulletedTreeList",a);function r(e){return void 0!==i[e]?i[e]:"FieldNotChanged"}}
,2508:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var a,i=n("tslib_102"),r={height:"100%",display:"flex",flexDirection:"column"},o={width:"440px",minWidth:"none",maxWidth:"none"},s={Modal:{styles:{main:(0,i.W_)((0,i.W_)({selectors:(a={},a["@media (min-width: 480px)"]=(0,i.W_)({},o),a),minHeight:"240px"},o),{".fui-DialogBody":{minHeight:"190px"}})}},DialogContent:{styles:{content:r,inner:r,innerContent:r}},DialogFooter:{styles:{actions:{minHeight:"none"}}}}}
,2337:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>v});var a,i=n("tslib_102"),r=n("react-lib"),o=n("fui.lcoms_828"),s=n("fui.lco_496"),c=n("fui.core_870"),d=n("fui.util_43");!function(e){e[e.center=0]="center",e[e.left=1]="left"}(a||(a={}));var l=n(2788),u=n("odsp.util_578"),f=n(2327),p=n.n(f);(0,d.pZ)([{rawString:".ms-ImageBrowser-change{padding-left:0}[dir=ltr] .ms-ImageBrowser-change{margin-right:8px}[dir=rtl] .ms-ImageBrowser-change{margin-left:8px}.ms-ImageBrowser-change .ms-Button-icon{margin-left:0}.ms-ImageBrowser-remove{pointer-events:auto}.ms-ImageBrowser-imageContainer{position:relative;display:inline-block;text-align:center}.ms-ImageBrowser-imageContainer .ms-ImageBrowser-focalCircle{cursor:pointer;z-index:1;position:absolute;width:48px;height:48px;border-width:2px;border-style:solid;border-color:"},{theme:"yellowLight",defaultValue:"#fff100"},{rawString:";border-radius:50%;background-color:"},{theme:"whiteTranslucent40",defaultValue:"rgba(255,255,255,.4)"},{rawString:";display:flex;align-items:center;justify-content:center}.ms-ImageBrowser-imageContainer .ms-ImageBrowser-focalCircle .ms-ImageBrowser-focalIcon{color:"},{theme:"white",defaultValue:"#fff"},{rawString:";position:relative;font-size:32px}.ms-ImageBrowser-imageContainer .ms-ImageBrowser-PlaceHolder{font-size:"},{theme:"xLargePlusFontSize",defaultValue:"24px"},{rawString:";position:absolute}.ms-ImageBrowser-defaultBackground{background-color:"},{theme:"disabledBackground",defaultValue:"#f3f2f1"},{rawString:"}.ms-ImageBrowser-leftAlignment img{width:initial;left:0;transform:translate(0,-50%)}.ms-ImageBrowser-leftAlignment-2 img{width:initial;left:0}"}]);var m=n(7328),_=n(2198),h=50,b={x:h,y:h},g={image:{height:64,background:"linear-gradient(45deg, #d2d0ce 25%, transparent 25%, transparent 75%, #d2d0ce 75%, #d2d0ce 0), linear-gradient(45deg, #d2d0ce 25%, transparent 25%, transparent 75%, #d2d0ce 75%, #d2d0ce 0), white",backgroundPosition:"0px 0, 5px 5px",transformOrigin:"0 0 0",backgroundSize:"10px 10px, 10px 10px"}},v=function(e){function t(t){var n=e.call(this,t)||this;return n.refs={},n._fileBrowser=(0,r.createRef)(),n._defaultFocusButton=(0,r.createRef)(),n._newLeftAlignKillswitchIsActivated=u.HW.isActivated("45a5dcab-520c-429c-ae96-d9bb7a607623","5/09/2023","Remove transform() from image browser leftAlignment"),n._onChangeClick=function(){n.props.onChangeClick&&n.props.onChangeClick();var e=n._fileBrowser.current;e&&e.click()},n._onImageChange=function(e){return(0,i.Zd)(n,void 0,void 0,function(){var t,n,a=this;return(0,i.qr)(this,function(i){switch(i.label){case 0:return t=e.target,(n=t&&t.files&&t.files[0])?[4,l.a.readFile(n).then(function(e){a.setState({newPreviewSrc:e,fileToUpload:n,removeImage:!1,isError:!1,isLoaded:!0}),a.props.onImageChanged&&a.props.onImageChanged(e,n)})]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},n._onRemoveClick=function(){n.props.onRemoveClick&&n.props.onRemoveClick(),n.setState({newPreviewSrc:void 0,fileToUpload:void 0,removeImage:!0,isError:!1,isLoaded:!1}),n.props.onImageChanged&&n.props.onImageChanged(void 0,void 0)},n._onFocalPointDrag=function(e,t){if(n.props.onFocalPointMove){var a={x:n._pixelToPercentage(t.x,n._imageWidth),y:n._pixelToPercentage(t.y,n._imageHeight)};n.setState({focalPoint:a}),n.props.onFocalPointMove(a)}},n._onHandleKeyDown=function(e){var t;if(n.props.onFocalPointMove){e.stopPropagation(),e.preventDefault();var a=n.state.focalPoint;if(n._isKey(c.Xf7.enter,e))return n.props.onFocalPointMove(a),void(n._defaultFocusButton&&(null===(t=n._defaultFocusButton.current)||void 0===t||t.focus()));n._isKey(c.Xf7.escape,e)?a.x=a.y=h:n._isKey(c.Xf7.left,e)?a.x--:n._isKey(c.Xf7.up,e)?a.y--:n._isKey(c.Xf7.right,e)?a.x++:n._isKey(c.Xf7.down,e)&&a.y++,n._ensureFocalPointInBound(a),n.setState({focalPoint:a})}},n._ensureFocalPointInBound=function(e){var t=n._percentageToPixel(e.x,n._imageWidth),a=n._percentageToPixel(e.y,n._imageHeight);t<0?t=0:t>n._imageWidth-52&&(t=n._imageWidth-52),a<0?a=0:a>n._imageHeight-52&&(a=n._imageHeight-52),e.x=n._pixelToPercentage(t,n._imageWidth),e.y=n._pixelToPercentage(a,n._imageHeight)},n._percentageToPixel=function(e,t){return(e||h)/100*t-26},n._pixelToPercentage=function(e,t){return(e+26)/t*100},n._onLoadingStateChange=function(e){e===s.P6Z.error?n.setState({isError:!0,isLoaded:!1}):e===s.P6Z.loaded?n.setState({isLoaded:!0,isError:!1}):n.setState({isLoaded:!1,isError:!1})},n.state={focalPoint:t.initialFocalPoint||b},n._imageHeight=t.imageHeight||64,n._imageWidth=t.imageWidth||64,n._imageFit=t.imageFit||s.Ho$.contain,n}return(0,i.XJ)(t,e),t.prototype.render=function(){var e,t=this.props,n=this.state,i=t.initialPreviewUrl,c=t.disableRemove,l=!this.state.isError&&!!this.state.isLoaded;e=n.newPreviewSrc?n.newPreviewSrc:i&&!this.state.removeImage?i:t.emptyImageUrl||"";var f=!this.state.isLoaded,b=!!this.state.isLoaded&&!c;return r.createElement(s.z5q,{direction:s.GIy.bidirectional,defaultTabbableElement:".ms-ImageBrowser-change"},r.createElement("div",{className:"ms-ImageBrowser"},r.createElement("div",{className:(0,d.N0)("ms-ImageBrowser-imageContainer",l?"":"ms-ImageBrowser-defaultBackground"),style:{width:this._imageWidth,height:this._imageHeight}},this.props.isFocalPointEnabled&&l&&r.createElement(p(),{bounds:"parent",onDrag:(0,_.debounce)(this._onFocalPointDrag,250),defaultPosition:{x:this._percentageToPixel(h,this._imageWidth),y:this._percentageToPixel(h,this._imageHeight)},position:{x:this._percentageToPixel(this.state.focalPoint.x,this._imageWidth),y:this._percentageToPixel(this.state.focalPoint.y,this._imageHeight)}},r.createElement("div",{"aria-roledescription":m.d,"aria-label":m.c,className:"ms-ImageBrowser-focalCircle",onKeyDown:this._onHandleKeyDown,"data-is-focusable":"true"},r.createElement(s.vb4,{iconName:"SIPMove",className:"ms-ImageBrowser-focalIcon"}))),r.createElement(o.H5o,{className:this._newLeftAlignKillswitchIsActivated?(0,d.N0)("ms-ImageBrowser-image",this.props.imageAlignment===a.left?"ms-ImageBrowser-leftAlignment":""):(0,d.N0)("ms-ImageBrowser-image",this.props.imageAlignment===a.left?"ms-ImageBrowser-leftAlignment-2":""),width:this._imageWidth,height:this._imageHeight,imageFit:this._imageFit,src:e,alt:t.imageAlt||"",onLoadingStateChange:this._onLoadingStateChange,styles:!u.HW.isActivated("09186f6d-1c9c-4d7d-80e8-5dbd70c63e66","11/03/2020","Support checkers for white/transparent images")&&this.state.isLoaded?g:void 0}),!l&&r.createElement(s.k45,{iconName:"Photo2",className:"ms-ImageBrowser-PlaceHolder",style:{top:this._imageHeight/2-12,left:this._imageWidth/2-12}})),r.createElement("div",{className:"ms-ImageBrowser-actionBar",role:"menubar"},r.createElement(o.PRY,{componentRef:this._defaultFocusButton,className:"ms-ImageBrowser-change",onClick:this._onChangeClick,iconProps:{iconName:f?"Upload":"EditPhoto"},ariaLabel:f?t.uploadButtonAriaLabel||m.g:t.changeButtonAriaLabel||m.a,role:"menuitem"},f?m.h:m.b),b&&r.createElement(o.PRY,{className:"ms-ImageBrowser-remove",onClick:this._onRemoveClick,iconProps:{iconName:"Delete"},ariaLabel:t.removeButtonAriaLabel||m.e,role:"menuitem"},m.f)),r.createElement("input",{ref:this._fileBrowser,style:{display:"none"},type:"file",accept:(t.supportedImageTypes||["image/*"]).join(","),onChange:this._onImageChange,tabIndex:-1,multiple:!1})))},t.prototype.getImageFile=function(){return this.state.removeImage?void 0:this.state.fileToUpload},t.prototype._isKey=function(e,t){return t.keyCode===e&&!t.altKey&&!t.ctrlKey&&!t.shiftKey},t}(r.Component)}
,2334:(e,t,n)=>{"use strict";var a;n.d(t,{a:()=>a}),function(e){e[e.normal=0]="normal",e[e.listBelow=1]="listBelow"}(a||(a={}))}
,2331:(e,t,n)=>{"use strict";n.d(t,{a:()=>g});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("odsp.util_578"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onClick=function(e){t.props.inputProps&&t.props.inputProps.onClick&&t.props.inputProps.onClick(e),0!==e.button||e&&e.target&&e.target.value||t.onEmptyInputFocus()},t.onInputFocus=function(e){var n,a;o.HW.isActivated("543f1508-f671-478a-9d8e-f38cf68393fd","04/19/2023","Respect the onEmptyResolveSuggestions prop passed to PeoplePicker")||t.props.showDefaultSuggestionOnlyByClick||e&&e.target&&e.target.value||!t.props.onEmptyResolveSuggestions||t.onEmptyInputFocus(),c()||null===(a=null===(n=t.props.inputProps)||void 0===n?void 0:n.onFocus)||void 0===a||a.call(n,e)},t}return(0,a.XJ)(t,e),t}(r.lkX);function c(){return o.HW.isActivated("f7dc3d8b-8019-4187-9e11-6dcb2597352b")}var d=n(2316),l=n(5786),u=n(2332),f=n(2334);(0,n("fui.util_43").pZ)([{rawString:":global(.ms-Suggestions){width:260px}"}]);var p=n(7279),m=n(648),_=o.HW.isActivated("41868B4D-8044-4ACF-8E89-CFD71EF69C3D","10/31/2021","fix people picker suggestion dup"),h=s,b=r.ydh,g=function(e){function t(t){var n=e.call(this,t)||this;if(n._onResolveSuggestions=function(e){if(n._peoplePickerSearchPromise&&(n._peoplePickerSearchPromise.cancel(),n._peoplePickerSearchPromise=void 0),!(e=e.trim())&&!n._canCallGraph)return n.props.onResolvedSuggestions?n.props.onResolvedSuggestions([],e):[];var t=n._getPeoplePickerQueryParams(),a=null==t?void 0:t.conversationId;t&&t.conversationId&&delete t.conversationId;var i="peoplePickerSearch_".concat(e.trim(),"_").concat(JSON.stringify(t));t&&a&&(t.conversationId=a);var r=function(){var a=n._dataProvider.search(e.trim(),t);if(!a)return n.props.onResolvedSuggestions?n.props.onResolvedSuggestions([],e):[];var i=a.cached?a.cached:[];return n._peoplePickerSearchPromise=a.promise,n._peoplePickerSearchPromise.then(function(e){return n._peoplePickerSearchPromise=void 0,e?i.concat(e):[]}).then(function(t){var a=_?t:n._dedupeSuggestions(t);return n.props.onResolvedSuggestions?n.props.onResolvedSuggestions(a,e):a})};if(!n.props.peoplePickerImprovementsExperiment||!n.props.persistCachePeopleSearch)return r().then(function(e){return n._callRumOneLoggerFromProps(),e});try{return n.props.persistCachePeopleSearch({getData:r,key:i}).then(function(e){var t=!isNaN(e.cacheStats.lastModified);return n._callRumOneLoggerFromProps(t),e.data})}catch(e){return r().then(function(e){return n._callRumOneLoggerFromProps(),e})}},n._callRumOneLoggerFromProps=function(e){void 0===e&&(e=!1),n.props.writeUserInputDataToRumoneLogger&&n.props.writeUserInputDataToRumoneLogger(e)},n._onGetMoreResults=function(e){var t;return n._onGetMoreResultsClicked&&n._onGetMoreResultsClicked(),n.props.peoplePickerQueryParams&&((t=(0,a.W_)({},n.props.peoplePickerQueryParams)).useGraph=!1,t.useSubstrate=!1),n._dataProvider&&n._dataProvider.sharePointSearch&&t?n._dataProvider.sharePointSearch(e,t).then(function(t){if(n.props.onResolvedSuggestions){var a=n.props.onResolvedSuggestions(t,e);if(a instanceof Array)return a}return t}):[]},t.dataProvider)n._dataProvider=t.dataProvider;else{if(!t.context)throw new Error("No pageContext available for PeoplePickerProvider.");n._dataProvider=new d.a({pageContext:t.context,peoplePickerDataSource:t.dataSource})}return n._canCallGraph=!!(n._dataProvider.canUseGraph&&n.props.peoplePickerQueryParams&&n._dataProvider.canUseGraph(n.props.peoplePickerQueryParams)),n._handleGetMoreResultsInBaseClass=n._canCallGraph&&!n.props.onGetMoreResults,n.state={hasUnresolvedText:!1,searchForMoreText:n._getSearchForMoreText(n._handleGetMoreResultsInBaseClass)},n}return(0,a.XJ)(t,e),Object.defineProperty(t.prototype,"selectedPeople",{get:function(){return this._peoplePicker&&this._peoplePicker.items||[]},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.onRenderItem,o=t.onRenderSuggestionsItem,s=t.defaultSelectedItems,c=t.onSelectedPersonasChange,d=t.suggestionsHeaderText,l=t.suggestionsClassName,m=t.noResultsFoundText,_=t.loadingText,g=t.inputProps,v=t.onSuggestionSelected,y=t.suggestionsAvailableAlertText,S=t.enableSelectedSuggestionAlert,D=t.selectedItems,I=t.itemLimit,x=t.onInputChange,C=t.onGetMoreResults,O=t.searchForMoreIcon,w=t.searchForMoreText,E=t.ariaLabel,A=void 0===E?"":E,L=t.pickerCalloutProps,k=t.pickerOverrideStyles,M=t.theme,P=t.disabled,T=t.onGetMoreResultsClicked,U=t.removeButtonAriaLabel,F=t.onEmptyResolveSuggestions,H=t.customizeSuggestionPersonaProps,R=t.showDefaultSuggestionOnlyByClick;this._onGetMoreResultsClicked=T;var N={className:n,onRenderSuggestionsItem:o||function(e){return(0,u.e)(e,H)},onResolveSuggestions:this._onResolveSuggestions,defaultSelectedItems:s,selectedItems:D,onChange:c,inputProps:g,enableSelectedSuggestionAlert:S,pickerSuggestionsProps:{suggestionsHeaderText:d,loadingText:_,noResultsFoundText:m,className:l,suggestionsAvailableAlertText:y,searchForMoreIcon:O,searchForMoreText:w||(this._handleGetMoreResultsInBaseClass?this.state.searchForMoreText:void 0),suggestionsContainerAriaLabel:p.b},onItemSelected:v,itemLimit:I,onInputChange:x,onGetMoreResults:C||(this._handleGetMoreResultsInBaseClass?this._onGetMoreResults:void 0),pickerCalloutProps:L,styles:k,theme:M,"aria-label":A,disabled:P,removeButtonAriaLabel:U,onEmptyResolveSuggestions:R&&this._canCallGraph?function(){return e.props.initRumone&&e.props.initRumone("",!0),e._onResolveSuggestions("")}:F,showDefaultSuggestionOnlyByClick:R};return this.props.peoplePickerType===f.a.listBelow?(N.onRenderItem=r||u.a,i.createElement(b,(0,a.W_)({},N,{componentRef:this._resolveRef("_peoplePicker")}))):(N.onRenderItem=r||u.b,i.createElement(h,(0,a.W_)({},N,{componentRef:this._resolveRef("_peoplePicker")})))},t.prototype.focusInput=function(){this._peoplePicker&&this._peoplePicker.focusInput()},t.prototype._getPeoplePickerQueryParams=function(){return this.props.peoplePickerQueryParams?(!this.props.peoplePickerQueryParams.onToggleGetMoreResults&&this._handleGetMoreResultsInBaseClass&&(this.props.peoplePickerQueryParams.onToggleGetMoreResults=this._onToggleGetMoreResults),this.props.peoplePickerQueryParams):{allowEmailAddresses:!1,groupID:0,maximumEntitySuggestions:30,principalSource:15,blockExternalUsers:!0,principalType:l.a.user|l.a.securityGroup|l.a.sharePointGroup}},t.prototype._dedupeSuggestions=function(e){var t=this,n=[],i=this._peoplePicker&&this._peoplePicker.items||[];i=(0,a.AE)([],i,!0);for(var r=function(e){var a=o._getItemKey(e);i.some(function(e){var n=t._getItemKey(e);return a===n})||(n.push(e),i.push(e))},o=this,s=0,c=e;s<c.length;s++)r(c[s]);return n},t.prototype._getItemKey=function(e){return e.email||e.userId||(0,m.a)(JSON.stringify(e)).toString()},t.prototype._onToggleGetMoreResults=function(e){this.state&&(e&&!this.state.searchForMoreText||!e&&this.state.searchForMoreText)&&this.setState({searchForMoreText:this._getSearchForMoreText(e)})},t.prototype._getSearchForMoreText=function(e){return e?p.d:void 0},t}(r.oKI)}
,2332:(e,t,n)=>{"use strict";n.d(t,{a:()=>I,b:()=>D,c:()=>x,d:()=>C,e:()=>S});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("fui.lcoms_828"),s=n(1448),c=n("fui.util_43"),d=n("odsp.util_578");(0,c.pZ)([{rawString:"@media screen and (-ms-high-contrast:active){.ms-Suggestions-itemButton.is-suggested .ms-PeoplePicker-personaContent .ms-Persona-primaryText,.ms-Suggestions-itemButton.is-suggested .ms-PeoplePicker-personaContent .ms-Persona-secondaryText,.ms-Suggestions-itemButton:hover .ms-PeoplePicker-personaContent .ms-Persona-primaryText,.ms-Suggestions-itemButton:hover .ms-PeoplePicker-personaContent .ms-Persona-secondaryText{color:HighlightText}}.ms-PickerPersona-container{position:relative;display:inline-flex;vertical-align:top;background:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:';margin:1px;vertical-align:top;white-space:nowrap;cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ms-PickerPersona-container::-moz-focus-inner{border:0}.ms-PickerPersona-container{outline:transparent}.ms-PickerPersona-container{position:relative}.ms-Fabric--isFocusVisible .ms-PickerPersona-container:focus:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:1px solid '},{theme:"focusBorder",defaultValue:"#605e5c"},{rawString:"}.ms-PickerPersona-container:hover{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.ms-PickerPersona-container.is-selected{background:"},{theme:"neutralQuaternary",defaultValue:"#d2d0ce"},{rawString:"}.ms-PickerPersona-container.is-selected:hover{background:"},{theme:"neutralQuaternaryAlt",defaultValue:"#e1dfdd"},{rawString:"}.ms-PickerPersona-container.is-listbelow{width:100%}.ms-PickerItem-sideContent{display:inline-block}.ms-PickerPersona-content{flex:1;vertical-align:middle;min-width:100px}.ms-PeoplePicker-personaContent{min-width:100px;padding:7px 12px;display:flex;align-items:center}.od-PeoplePicker-linkedInLogo{color:#0077b5}.itemContent_a2fd1c3c{flex:0 1 auto;min-width:0;max-width:100%;overflow:hidden}.itemContent_a2fd1c3c>.fui-Persona{vertical-align:bottom}.peoplePickerPill_a2fd1c3c{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";height:24px;border-radius:12px;display:inline-flex;align-items:center;margin:4px}.peoplePickerClose_a2fd1c3c{border-radius:12px;height:24px;width:24px;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}html[dir=ltr] .peoplePickerClose_a2fd1c3c{padding-left:4px}html[dir=rtl] .peoplePickerClose_a2fd1c3c{padding-right:4px}.peoplePickerClose_a2fd1c3c:hover{background:"},{theme:"neutralQuaternaryAlt",defaultValue:"#e1dfdd"},{rawString:";border-radius:12px}.placeholderUser_a2fd1c3c{background-color:unset;outline:1px dashed;outline-color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}"}]);const l="itemContent_a2fd1c3c",u="placeholderUser_a2fd1c3c";var f=n(7279),p=n(1238),m=n(2333),_=n(39),h=d.IT.isFeatureEnabled({ODC:"ToolTipEmailKillSwitch"})||d.HW.isActivated("2f7a87f9150a4ef3b35a1ad82e402730","08/28/2021","ToolTipEmailKillSwitchActivated"),b={details:{paddingLeft:4,paddingRight:0}},g={icon:{fontSize:12,marginLeft:0,marginRight:0}};function v(e,t,n){var a="3rem";if(t)switch(t){case r.fXG.size24:a="1.5rem";break;case r.fXG.size32:a="2rem";break;case r.fXG.size40:a="2.5rem";break;case r.fXG.extraSmall:a="1.75rem";break;default:a="3rem"}var i={text:e.name?e.name:"",imageUrl:e.image?e.image:"",tertiaryText:e.email?e.email:"",secondaryText:e.job?e.job:"",imageInitials:"",imageAlt:e.imageAlt,coinProps:{styles:{coin:{width:a,height:a,maxWidth:"75px",maxHeight:"75px",flexShrink:0},image:{width:a+"!important",height:a+"!important",maxWidth:"75px",maxHeight:"75px"},imageArea:{width:a,height:a,maxWidth:"75px",maxHeight:"75px"},initials:{width:a,height:a,fontSize:"0.625rem",lineHeight:a}}},styles:{root:{height:"auto"},primaryText:{height:"auto",whiteSpace:"normal",fontSize:"0.875rem"},secondaryText:{height:"auto",whiteSpace:"normal",fontSize:"0.75rem"}}};return(0,m.c)(e)&&void 0!==n?(0,p.default)(i,(0,m.b)(n)):i}var y=function(e){return i.createElement("div",{className:"ms-PeoplePicker-personaContent"},i.createElement(o.nuF,(0,a.W_)({},e.personaProps,{presence:r.iLK.none,size:r.fXG.size40,className:"ms-PeoplePicker-pickerPersona"})),e.person.entityType===s.a.linkedinUser&&i.createElement(r.k45,{className:"od-PeoplePicker-linkedInLogo",iconName:"LinkedInLogo"}))},S=function(e,t){var n,a=v(e,r.fXG.size40,m.a.standalone);if(n=a,t&&(n=t(a)),n&&n.imageUrl){var o=new _.b(n.imageUrl);o.setQueryParameter("fromPeoplePicker","true"),n.imageUrl=o.toString()}return i.createElement(y,{person:e,personaProps:n})},D=function(e){var t,n=e.item,s=e.onRemoveItem,p=e.index,_=e.selected,b=e.removeButtonAriaLabel,g=v(n,r.fXG.extraSmall,m.a.pill);return h||(g.onRenderPrimaryText=function(){return i.createElement(o.qxl,{content:n.email||g.text,directionalHint:r.aZJ.topLeftEdge},g.text)}),i.createElement("div",{className:(0,c.N0)("ms-PickerPersona-container",(t={"is-selected":!!_},t[u]=(0,m.c)(n),t)),"data-is-focusable":!0,"data-selection-index":p,key:p,role:"listitem"},i.createElement("div",{className:(0,c.N0)("ms-PickerItem-content",l)},i.createElement(o.nuF,(0,a.W_)({},g,{presence:r.iLK.none,size:r.fXG.extraSmall}))),i.createElement(o.hYu,{styles:{root:{flexShrink:0}},onClick:s,iconProps:{iconName:"Cancel"},className:"ms-PickerItem-content","data-is-focusable":!0,"aria-label":null!=b?b:d.OO(f.c,n.name),disabled:e.disabled}))},I=function(e){var t=e.item,n=e.onRemoveItem,s=e.index,l=e.selected,u=v(t,r.fXG.size40),p="PickerPersonaId"+Math.floor(1e4*Math.random()),m=d.OO(f.c,t.name);return i.createElement("div",{className:(0,c.N0)("ms-PickerPersona-container is-listbelow",{"is-selected":!!l}),"data-is-focusable":!0,"data-selection-index":s,key:s,"aria-labelledby":p,role:"listitem"},i.createElement("div",{className:"ms-PickerPersona-content"},i.createElement(o.nuF,(0,a.W_)({id:p},u,{presence:r.iLK.none,size:r.fXG.size40}))),i.createElement("div",{className:"ms-PickerItem-content"},i.createElement(o.hYu,{onClick:n,iconProps:{iconName:"Cancel"},className:"ms-PickerItem-content","data-is-focusable":!0,"aria-label":m})))},x=function(e){var t,n=e.item,s=e.onRemoveItem,c=e.index,l=n.email?"/_layouts/15/userphoto.aspx?accountname="+n.email:"",_={text:n.name||"",imageUrl:n.image||l,styles:{primaryText:{fontSize:"0.875rem"},secondaryText:{fontSize:"0.75rem"}}},h="PickerPersonaId"+Math.floor(1e4*Math.random()),v=d.OO(f.c,n.name),y=["peoplePickerPill_a2fd1c3c"];return(0,m.c)(n)?(t=(0,p.default)(_,(0,m.b)(m.a.pill)),y.push(u)):t=_,i.createElement("div",{className:y.join(" "),"data-is-focusable":!1,"data-selection-index":c,key:c,"aria-labelledby":h},i.createElement(o.nuF,(0,a.W_)({id:h},t,{presence:r.iLK.none,size:r.fXG.size24,styles:b})),i.createElement(o.hYu,{onClick:s,iconProps:{iconName:"Cancel"},className:"peoplePickerClose_a2fd1c3c","data-is-focusable":!0,"aria-label":v,styles:g}))},C=function(e){var t,n=e.item,s=e.onRemoveItem,p=e.index,_=e.selected,b=e.removeButtonAriaLabel,g=v(n,r.fXG.extraSmall,m.a.pill),y=i.useRef(null),S=i.useRef(null);i.useEffect(function(){y.current&&S.current&&(y.current.style.animation="fadein 200ms",y.current.style.transition="height 200ms cubic-bezier(0.33,0.00,0.10,1.00)",y.current.style.height="".concat(S.current.scrollHeight,"px"),y.current.style.opacity="1")},[]);var D=n.email&&n.email!==g.text;return h||(g.onRenderPrimaryText=function(){return i.createElement(o.qxl,{content:i.createElement("div",null,i.createElement("div",null,g.text&&g.text),D&&i.createElement("div",null,n.email)),directionalHint:r.aZJ.topLeftEdge},g.text)}),i.createElement("div",{className:(0,c.N0)("ms-PickerPersona-container",(t={"is-selected":!!_},t[u]=(0,m.c)(n),t)),"data-is-focusable":!0,key:p,role:"listitem",ref:y},i.createElement("div",{ref:S,className:(0,c.N0)("ms-PickerItem-content",l)},i.createElement(o.nuF,(0,a.W_)({},g,{presence:r.iLK.none,size:r.fXG.extraSmall}))),i.createElement(o.hYu,{styles:{root:{flexShrink:0}},onClick:s,iconProps:{iconName:"Cancel"},className:"ms-PickerItem-content","data-is-focusable":!0,"aria-label":null!=b?b:d.OO(f.c,n.name),disabled:e.disabled}))}}
,2904:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lcoms_828"),o=n("fui.lco_496"),s=n("fui.util_43"),c=n("odsp.util_578"),d=n(7279);(0,s.pZ)([{rawString:":global(.ms-PickerPersonaMenu-container){cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none;margin-top:10px}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item){width:100%;display:inline-flex;vertical-align:top;margin:1px;white-space:nowrap;align-items:center}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item):hover{background:#edebe9}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item) :global(.ms-PickerItem-sideContent){flex-grow:0;display:inline-block}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item) :global(.ms-PickerPersona-content){flex-grow:1;vertical-align:middle;min-width:50px}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item) :global(.ms-PickerPersona-content) :global(.ms-Persona){height:auto}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item) :global(.ms-PickerPersona-content) :global(.ms-sitePerm-ContextMenu){line-height:0}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item) :global(.ms-Persona-primaryText){margin-bottom:2px}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item.ms-PickerPersona-itemWithPadding){margin:2px 0}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item.ms-PickerPersona-itemWithPadding) :global(.ms-PickerItem-sideContent){padding:2px}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item.ms-PickerPersona-itemWithPadding) :global(.ms-PickerPersona-content){padding:2px 0 2px 2px}:global(.ms-PickerPersonaMenu-container) :global(.ms-PickerPersona-item.ms-PickerPersona-itemWithPadding) :global(.ms-Persona-primaryText){margin-bottom:2px}"}]);var l=function(e){function t(t){var n=e.call(this,t)||this;return n._onClick=function(){n.setState({isContextualMenuVisible:!n.state.isContextualMenuVisible})},n._onDismiss=function(e){n.setState({isContextualMenuVisible:!1}),e.stopPropagation(),e.preventDefault()},n.state={isContextualMenuVisible:!1},n._isPeoplePickerItemAriaLabelKSActivated=c.HW.isActivated("f888b408-06ec-452f-81f5-c6cc2909bf37","01/12/2023","Give picker item an aria-label with the name and instructions, and add the proper role"),n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.onRemoveItem,l=e.index,p=e.selected,m=this._convertIPersonToIPersonaProps(t),_="PickerPersonaId"+Math.floor(1e4*Math.random()),h=c.OO(d.c,t.name),b=u()?"ms-PickerPersona-item":"ms-PickerPersona-item ms-PickerPersona-itemWithPadding",g=u()?"ms-sitePerm-buttonArea":"ms-sitePerm-buttonArea ms-sitePerm-buttonAreaMargins",v=u()?"ms-sitePermMenu-chevron":"ms-sitePermMenu-chevron ms-sitePermMen-chevronAlignment",y=u()?0:8,S=this.props.menuItems;return!f()&&S&&(S=S.map(function(e){return(0,a.W_)((0,a.W_)({},e),{"data-automation-id":e.key})})),i.createElement("div",{className:(0,s.N0)("ms-PickerPersonaMenu-container",{"is-selected":!!p}),"data-selection-index":l,key:l,"data-is-focusable":!0,"aria-labelledby":this._isPeoplePickerItemAriaLabelKSActivated?_:void 0,role:this._isPeoplePickerItemAriaLabelKSActivated?void 0:"listitem","aria-label":this._isPeoplePickerItemAriaLabelKSActivated?void 0:"".concat(m.text,". ").concat(d.a)},i.createElement(o.z5q,{className:b},i.createElement("div",{className:"ms-PickerPersona-content"},i.createElement(r.nuF,(0,a.W_)({id:this._isPeoplePickerItemAriaLabelKSActivated?_:void 0},m,{presence:o.iLK.none,size:o.fXG.small,secondaryText:this.props.menuTitle&&!this.props.menuItems?this.props.menuTitle:void 0,"aria-label":this._isPeoplePickerItemAriaLabelKSActivated?d.a:void 0,"data-automation-id":f()?void 0:"peoplePickerItemPersonaContent"}),this.props.menuTitle&&this.props.menuItems&&i.createElement("div",{className:"ms-sitePerm-ContextMenu"},i.createElement("div",{className:g,ref:this._resolveRef("_buttonTarget")},i.createElement("span",{className:"ms-sitePerm-linkText","data-automation-id":f()?void 0:"peoplePickerItemLinkText",onClick:this._onClick,"data-is-focusable":!0,role:"button","aria-haspopup":!0},this.props.menuTitle,i.createElement(o.k45,{iconName:"ChevronDown",className:v}))),this.state.isContextualMenuVisible&&i.createElement(o.v2H,{items:f()?this.props.menuItems:S,isBeakVisible:!1,target:this._buttonTarget,directionalHint:o.aZJ.bottomLeftEdge,onDismiss:this._onDismiss,gapSpace:y,id:f()?void 0:"peoplePickerItemContextualMenu"})))),i.createElement("div",{className:"ms-PickerItem-sideContent"},i.createElement(r.hYu,{onClick:n,iconProps:{iconName:"Cancel"},className:"ms-PickerItem-content",ariaLabel:h}))))},t.prototype._convertIPersonToIPersonaProps=function(e){return{text:e.name?e.name:"",imageUrl:e.image?e.image:"",tertiaryText:e.email?e.email:"",secondaryText:e.job?e.job:"",imageInitials:""}},t}(o.oKI);function u(){return c.HW.isActivated("f888b408-06ec-452f-81f5-c6cc2909bf37")}function f(){return c.HW.isActivated("34e805e1-9976-4e91-b2ed-188ce91b5c76")}}
,2333:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>u,c:()=>l,d:()=>d});var a,i=n("odsp.util_578"),r=n("fui.lco_496"),o=n("fui.util_43"),s=n("react-lib"),c={ODB:60596};function d(){return!i.HW.isActivated("E453BAFB-1A08-4222-89F4-568CF37CA2B8","11/02/2021","Placeholder sharing")&&i.IT.isFeatureEnabled(c)}function l(e){var t,n;return d()&&!(!e.invitationId&&!(null===(n=null===(t=e.rawData||e.rawPersonData)||void 0===t?void 0:t.EntityData)||void 0===n?void 0:n.invitation))}function u(e,t){void 0===t&&(t={});var n=(0,o.Dn)(),i=t.fontSize;return{coinProps:{styles:{initials:e===a.standalone?{border:"1px dashed ".concat(n.palette.themePrimary),boxSizing:"border-box",fontSize:null!=i?i:"16px",fontWeight:"normal",color:n.palette.themePrimary}:{border:"none",boxSizing:"border-box",fontSize:null!=i?i:"12px",color:n.palette.themePrimary,paddingLeft:"4px",paddingRight:"4px"}}},initialsColor:r.ZLv.transparent,onRenderInitials:function(){return s.createElement(r.k45,{iconName:"Contact",style:{fontWeight:"normal"}})}}}!function(e){e[e.standalone=0]="standalone",e[e.pill=1]="pill"}(a||(a={}))}
,2741:(e,t,n)=>{"use strict";n.d(t,{a:()=>Q,b:()=>Y});var a,i,r,o,s=n("tslib_102"),c=n("react-lib");!function(e){e[e.NEW=1]="NEW",e[e.UPDATE=2]="UPDATE"}(a||(a={})),function(e){e[e.RENAME=1]="RENAME",e[e.ADD=2]="ADD",e[e.DELETE=3]="DELETE",e[e.RELOAD_CHILDREN=4]="RELOAD_CHILDREN",e[e.SELECT=5]="SELECT"}(i||(i={})),function(e){e[e.ENTER=13]="ENTER",e[e.ESCAPE=27]="ESCAPE"}(r||(r={})),function(e){e[e.VALIDATION=1]="VALIDATION"}(o||(o={}));var d=n("fui.util_43");(0,d.pZ)([{rawString:".treeNode_d6287065{align-items:center;cursor:default;padding:3px 3px 3px 3px;position:relative}.treeNode_d6287065 .contextMenuIcon_d6287065{display:block;position:sticky;opacity:0}[dir=ltr] .treeNode_d6287065 .contextMenuIcon_d6287065{margin-left:2px}[dir=rtl] .treeNode_d6287065 .contextMenuIcon_d6287065{margin-right:2px}[dir=ltr] .treeNode_d6287065 .contextMenuIcon_d6287065{right:0}[dir=rtl] .treeNode_d6287065 .contextMenuIcon_d6287065{left:0}[dir=rtl] .treeNode_d6287065{padding:3px 3px 3px 3px}.treeNode_d6287065:hover{background:"},{theme:"neutralLighter",defaultValue:"#f4f4f4"},{rawString:'}.treeNode_d6287065:hover .contextMenuIcon_d6287065{opacity:1}.treeNode_d6287065:focus-within .contextMenuIcon_d6287065{opacity:1}.treeNodeWithAbsoluteColors_d6287065{align-items:center;cursor:default;padding:3px 3px 3px 3px;position:relative}.treeNodeWithAbsoluteColors_d6287065 .contextMenuIcon_d6287065{display:block;position:sticky;opacity:0}[dir=ltr] .treeNodeWithAbsoluteColors_d6287065 .contextMenuIcon_d6287065{margin-left:2px}[dir=rtl] .treeNodeWithAbsoluteColors_d6287065 .contextMenuIcon_d6287065{margin-right:2px}[dir=ltr] .treeNodeWithAbsoluteColors_d6287065 .contextMenuIcon_d6287065{right:0}[dir=rtl] .treeNodeWithAbsoluteColors_d6287065 .contextMenuIcon_d6287065{left:0}[dir=rtl] .treeNodeWithAbsoluteColors_d6287065{padding:3px 3px 3px 3px}.treeNodeWithAbsoluteColors_d6287065:hover{background:#edebe9}.treeNodeWithAbsoluteColors_d6287065:hover .contextMenuIcon_d6287065{opacity:1}.treeNodeWithAbsoluteColors_d6287065:focus-within .contextMenuIcon_d6287065{opacity:1}.focusableTreeNode_d6287065{left:1px;margin-top:1px}.focusableTreeNode_d6287065:focus{outline:thin solid #0078d4}.focusableTreeNodeWithLeftBorderMissingOnMagnification_d6287065:focus{outline:thin solid #0078d4}[dir=ltr] .treeNodeIcon_d6287065{margin-left:5px}[dir=rtl] .treeNodeIcon_d6287065{margin-right:5px}[dir=ltr] .treeNodeIcon_d6287065{margin-right:5px}[dir=rtl] .treeNodeIcon_d6287065{margin-left:5px}.treeLabel_d6287065{white-space:nowrap;width:100%}.treeNodeForMagnifiedView_d6287065{width:max-content}.chevronForTreeNodeWithoutIcon_d6287065{margin:12px 5px 10px 5px}[dir=rtl] .chevronForTreeNodeWithoutIcon_d6287065{margin:12px 5px 10px 5px}.chevronForHeading_d6287065{padding-top:13px;font-size:smaller}[dir=ltr] .chevronForHeading_d6287065{margin-right:10px}[dir=rtl] .chevronForHeading_d6287065{margin-left:10px}[dir=ltr] .chevronForHeading_d6287065{margin-left:-3px}[dir=rtl] .chevronForHeading_d6287065{margin-right:-3px}.chevronForTreeNodeWithIcon_d6287065{padding-top:13px;font-size:smaller}[dir=ltr] .chevronForTreeNodeWithIcon_d6287065{margin-left:4px}[dir=rtl] .chevronForTreeNodeWithIcon_d6287065{margin-right:4px}.pointerCursor_d6287065{cursor:pointer}.nodeIcon_d6287065{padding-top:12px}[dir=ltr] .nodeIcon_d6287065{margin-left:8px}[dir=rtl] .nodeIcon_d6287065{margin-right:8px}[dir=ltr] .nodeIcon_d6287065{margin-right:8px}[dir=rtl] .nodeIcon_d6287065{margin-left:8px}.nodeIconForCollapsibleTree_d6287065{padding-top:12px}[dir=ltr] .nodeIconForCollapsibleTree_d6287065{margin-right:8px}[dir=rtl] .nodeIconForCollapsibleTree_d6287065{margin-left:8px}.iconForNewNode_d6287065{margin:14px 8px 0 0}[dir=rtl] .iconForNewNode_d6287065{margin:14px 0 0 8px}.nodeLabel_d6287065{white-space:nowrap;width:100%;overflow-x:hidden;text-overflow:ellipsis;padding-top:9px}[dir=ltr] .nodeLabel_d6287065{margin-right:32px}[dir=rtl] .nodeLabel_d6287065{margin-left:32px}.nodeLabelForCollapsibleTree_d6287065{white-space:nowrap;width:100%;padding-top:9px;font-family:"Segoe UI"}[dir=ltr] .nodeLabelForCollapsibleTree_d6287065{margin-right:32px}[dir=rtl] .nodeLabelForCollapsibleTree_d6287065{margin-left:32px}@media screen and (max-width:640px) and (min-width:510px){.nodeLabelForCollapsibleTree_d6287065{width:400px}}@media screen and (max-width:510px) and (min-width:427px){.nodeLabelForCollapsibleTree_d6287065{width:270px}}@media screen and (max-width:427px) and (min-width:320px){.nodeLabelForCollapsibleTree_d6287065{width:180px}}@media screen and (max-width:320px){.nodeLabelForCollapsibleTree_d6287065{width:100px}}.treeNodeWithIcon_d6287065{min-height:36px;padding:3px 3px 3px 3px}[dir=rtl] .treeNodeWithIcon_d6287065{padding:3px 3px 3px 3px}.treeNodeWithIcon_d6287065:hover{background:#f3f2f1;cursor:pointer}.treeNodeWithIcon_d6287065:hover .contextMenuIcon_d6287065{opacity:1}.treeNodeWithIcon_d6287065:focus-within .contextMenuIcon_d6287065{opacity:1}.treeNodeWithIcon_d6287065 .contextMenuIcon_d6287065{padding-top:2px;opacity:0}.removeOutlineOnFocus_d6287065:focus{outline:0}.headingLabelRoot_d6287065{min-height:36px;width:90%;cursor:default}.headingLabelInner_d6287065{padding-top:10px}.selectedTreeNodeWithIcon_d6287065{background-color:#edebe9;padding:3px 3px 3px 3px;min-height:36px}[dir=rtl] .selectedTreeNodeWithIcon_d6287065{padding:3px 3px 3px 3px}.selectedTreeNodeWithIcon_d6287065:hover{cursor:default}.selectedTreeNodeWithIcon_d6287065:hover .contextMenuIcon_d6287065{opacity:1}.selectedTreeNodeWithIcon_d6287065 .contextMenuIcon_d6287065{padding-top:2px;opacity:0}.labelWithIcon_d6287065{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;display:flex;flex:1;min-height:36px}.loadMoreLink_d6287065{margin-top:10px;margin-bottom:10px}[dir=ltr] .loadMoreLink_d6287065{margin-left:0}[dir=rtl] .loadMoreLink_d6287065{margin-right:0}[dir=ltr] .leafNodeNavForTreeNodeWithoutIcon_d6287065{padding-left:24px}[dir=rtl] .leafNodeNavForTreeNodeWithoutIcon_d6287065{padding-right:24px}[dir=ltr] .leafNodeNavForTreeNodeWithIcon_d6287065{padding-left:15.67px}[dir=rtl] .leafNodeNavForTreeNodeWithIcon_d6287065{padding-right:15.67px}.addTextBox_d6287065{border-color:#0078d4;padding:4px 0 4px 0}[dir=rtl] .addTextBox_d6287065{padding:4px 0 4px 0}.loaderContainer_d6287065{margin-top:6px}.radioButtonContainer_d6287065{float:left}.radioButtonLabel_d6287065{margin-top:1.7%}.menuIconClass_d6287065{font-size:medium;color:#323130}.threeDotIcon_d6287065{font-size:medium;color:'},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.readOnlyIconClass_d6287065{font-size:small;margin-top:10px;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}[dir=ltr] .readOnlyIconClass_d6287065{margin-right:10px}[dir=rtl] .readOnlyIconClass_d6287065{margin-left:10px}.accordion_d6287065{max-height:67vh;overflow:hidden}.accordion_d6287065:hover{overflow:auto}.selectionIndicator_d6287065{min-width:4px;margin:3px 0;background-color:#0078d4}.nonSelectionIndicator_d6287065{min-width:4px}.selectionContainer_d6287065{min-width:6px;margin:6px 0}"}]);const l="treeNode_d6287065",u="contextMenuIcon_d6287065";var f=n("fui.lco_496"),p=n("fui.core_870"),m=n("odsp.util_578");function _(){return m.tH.isFeatureEnabled({ODB:60736})}function h(){return m.tH.isFeatureEnabled({ODB:60143})}function b(){return m.tH.isFeatureEnabled({ODB:60159})}function g(){return m.tH.isFeatureEnabled({ODB:60030})}function v(){return g()&&!m.HW.isActivated("fffe6b43-350d-41ca-8b33-f051f121b342","09/23/2021","showing icon for read only nodes")}function y(){return!m.HW.isActivated("fe71ce34-7afc-4b00-9bb1-53103bef632c","02/08/2023","fixing add and rename menu item command")}function S(){return!m.HW.isActivated("22d1d974-d565-4811-9838-18a8230f5a2f","09/08/2023","adding test for add node prop")}function D(){return!m.HW.isActivated("a48fba9e-d4a5-4934-a7b0-04acd514bff7","11/09/2020","removing focus from non selectable root node")}function I(){return!m.HW.isActivated("2713c68d-d95c-43da-923e-8aee96bca747","05/21/2021","fixing overlap of context menu on label")}function x(){return!m.HW.isActivated("f8a3f8d5-3b7d-4f9d-8f5d-4f9d8f5d4f9d","03/01/2024","New prop for tree component - aakashkhot")}function C(e,t,n){return void 0===n&&(n=!1),n?{contextMenuItems:[],iconCollapsed:"FabricFolderFill",iconExpanded:"FabricOpenFolderHorizontal",styles:{label:{fontWeight:500}}}:e?e[t]:{contextMenuItems:[],iconCollapsed:"FabricFolderFill",iconExpanded:"FabricOpenFolderHorizontal"}}function O(){return(0,p.fsl)()?37:39}function w(){return(0,p.fsl)()?39:37}var E=n(7288);function A(e){var t=e.nodeIndentationFunction(e.level)+("NONE"===e.selectionMode?39.65:43),n=c.useRef(null);return c.useEffect(function(){var e;y()&&(null===(e=n.current)||void 0===e||e.focus())},[]),c.createElement("div",{style:{display:"flex",marginLeft:t}},e.getIconForNewNode&&c.createElement(f.k45,{className:"iconForNewNode_d6287065",iconName:e.getIconForNewNode(e.node)}),c.createElement(f.FuC,{ariaLabel:m.HW.isActivated("611cac23-99eb-476c-8cfa-344f09453c3f","03/27/2024","Adding aria for add term")?void 0:E.a,"data-testid":S()?"add-textbox":void 0,className:"addTextBox_d6287065",autoFocus:!y(),componentRef:y()?n:void 0,styles:{fieldGroup:{width:200,display:"flex"}},onBlur:function(t){e.showNewNodeForm(e.node,!1,e.parents)},onKeyDown:function(t){switch(t.keyCode){case r.ENTER:n=t.currentTarget.value,e.addNewNode(n,e.node,e.parents);break;case r.ESCAPE:e.showNewNodeForm(e.node,!1,e.parents),!m.HW.isActivated("0084a08c-2dd0-476d-aab3-ab61440e426a","03/21/2024","Moving focus back to source context menu on escape")&&e.contextMenuRef&&"function"!=typeof e.contextMenuRef&&e.contextMenuRef.current&&e.contextMenuRef.current.focus()}var n},errorMessage:e.nodeState.nodeForm?e.nodeState.nodeForm.errorMessage:void 0}))}var L=n("fui.lcoms_828");function k(e){var t=c.useState(!1),n=t[0],a=t[1],i=e.node.type||"";function r(t){e.selectedNodes[e.getNodeKey(e.node)]||a(!0)}var o=[],d=C(e.nodeTypeData||{},i),l=!1,p=void 0,_=void 0,h=!1;if(d){v()&&(l=d.isNonContextMenuIconAllowed,p=d.nonContextMenuIconAriaLabel,_=d.nonContextMenuIconTooltipProps,h=d.showContextMenuAlways);var b=d.contextMenuItems;void 0!==b&&b.forEach(function(t){g()&&t.isHidden||o.push({key:t.name,name:t.name,onClick:function(){return function(t){switch(t.actionType){case"Add":return void e.showNewNodeForm(e.node,!0,e.parents);case"Rename":return void e.showRenameNodeForm(e.node,!0,void 0,e.parents);case"Custom":t.callback(e.node,e.parents);default:return}}(t)},disabled:t.disabled})})}var y=v()&&l&&0===o.length,S=y?c.createElement(f.k45,{iconName:"Uneditable2",className:"readOnlyIconClass_d6287065",ariaLabel:p}):c.createElement(L.hYu,(0,s.W_)({onMenuClick:r,onAfterMenuDismiss:function(){e.selectedNodes[e.getNodeKey(e.node)]||a(!1)},menuIconProps:{iconName:"MoreVertical",className:v()?"threeDotIcon_d6287065":"menuIconClass_d6287065"},menuProps:{items:o},menuTriggerKeyCode:40,ariaLabel:e.contextMenuPopButtonAriaLabel,onKeyDown:m.HW.isActivated("7a6e9cb6-5e2c-4beb-a1ca-ae83eb17ccb7","11/09/2020","stopping propagation on pressing enter on context menu")?void 0:function(t){13!==t.keyCode&&"Enter"!==t.key&&32!==t.keyCode&&"Space"!==t.key||(r(),t.stopPropagation()),t.keyCode===w()&&(e.nodeRef&&e.nodeRef.focus(),t.stopPropagation())}},m.HW.isActivated("0084a08c-2dd0-476d-aab3-ab61440e426a","03/21/2024","Moving focus back to source context menu on escape")?{}:{componentRef:e.contextMenuRef}));if(v()){if(o.length<=0&&!l)return c.createElement(c.Fragment,null);var I=y?_:e.moreOptionsButtonTooltipProps,x=e.selectedNodes[e.getNodeKey(e.node)]||h||n||D()&&e.isCurrentNodeNonSelectableRootNode()?{opacity:1}:void 0;return c.createElement("div",{className:u,style:x},I?c.createElement(L.qxl,{tooltipProps:I},S):S)}return o.length>0?(x=e.selectedNodes[e.getNodeKey(e.node)]||n||D()&&e.isCurrentNodeNonSelectableRootNode()?{opacity:1}:void 0,c.createElement("div",{className:u,style:x},e.moreOptionsButtonTooltipProps?c.createElement(L.qxl,{tooltipProps:e.moreOptionsButtonTooltipProps},S):S)):c.createElement(c.Fragment,null)}function M(e){var t;return e.nodeState.loading?(e.log("info","ShowingSpinner"),c.createElement("div",{className:"loaderContainer_d6287065"},c.createElement(L.tu6,null))):void 0!==e.nodeState.nextLink&&e.isVisible&&void 0!==e.nodeState.children&&e.nodeState.children.length>0&&!0===e.nodeState.isExpanded&&(e.log("info","ShowingLoadMore"),1)?c.createElement("div",{className:l,style:(t={},t[e.rtl?"paddingRight":"paddingLeft"]=e.getPaddingLeft()+70,t.display="flex",t)},c.createElement(L.NG4,{className:"loadMoreLink_d6287065",onClick:function(){e.onLoadNext(e.node,e.parents)}},e.loadMoreLabel)):c.createElement(c.Fragment,null)}function P(e){function t(t){e.renameNode(t,e.node,e.parents)}var n=c.useRef(null);return c.useEffect(function(){var e;y()&&(null===(e=n.current)||void 0===e||e.focus())},[]),c.createElement(f.FuC,{"data-testid":S()?"rename-textbox":void 0,autoFocus:!y(),componentRef:y()?n:void 0,defaultValue:_()&&e.nodeDisplayText?e.nodeDisplayText:e.nodeState.name,styles:{fieldGroup:{width:"100%",display:"flex"},root:{paddingTop:"2px"}},onBlur:function(e){t(e.target.value)},onKeyDown:function(n){switch(n.keyCode){case r.ENTER:t(n.currentTarget.value);break;case r.ESCAPE:e.showRenameNodeForm(e.node,!1,void 0,e.parents)}},errorMessage:e.nodeState.nodeForm?e.nodeState.nodeForm.errorMessage:void 0})}function T(e){var t,n,i=c.useRef(null);c.useEffect(function(){e.setWidthForTruncatedLabel&&i.current&&!e.widthMaxContent&&i.current.scrollWidth>i.current.offsetWidth&&e.setWidthForTruncatedLabel()});var r=e.selectedNodes[e.getNodeKey(e.node)]||e.isHighLighted?"bold":"inherit",o=e.selectedNodes[e.getNodeKey(e.node)]?600:400,l=e.node.type||"",u=C(e.nodeTypeData||{},l),p=function(){return!!e.IsSourceCollapsibleTree},_=p()?"nodeLabelForCollapsibleTree_d6287065":"nodeLabel_d6287065";h()&&(null===(t=null==u?void 0:u.styles)||void 0===t?void 0:t.label)&&(_=_+" "+(0,d.Pl)(null===(n=null==u?void 0:u.styles)||void 0===n?void 0:n.label));var b,g=m.tH.isFeatureEnabled({ODB:60030})?{fontWeight:r}:{fontWeight:o};return c.createElement("div",{style:g,className:"labelWithIcon_d6287065",onClick:e.onSelect},c.createElement(f.k45,{className:p()?"nodeIconForCollapsibleTree_d6287065":"nodeIcon_d6287065",iconName:(b="",u&&(b=e.nodeState.isExpanded?u.iconExpanded:u.iconCollapsed),b)}),e.nodeState.nodeForm&&e.nodeState.nodeForm.formType===a.UPDATE?c.createElement(P,(0,s.W_)({},e)):c.createElement("span",{className:_,ref:i},e.nodeDisplayText))}function U(e){var t,n,i,r,o,l,u=e.node.type||"",f=C(e.nodeTypeData||{},u),p={root:(0,s.W_)({fontWeight:e.isHighLighted?"bold":void 0,marginBottom:"4px",marginTop:"4px",wordBreak:"break-word"},h()&&(null===(t=null==f?void 0:f.styles)||void 0===t?void 0:t.label)),labelWrapper:h()?null===(n=null==f?void 0:f.styles)||void 0===n?void 0:n.label:void 0},_=e.nodeState.nodeForm&&e.nodeState.nodeForm.formType===a.UPDATE?"":e.nodeDisplayText,b=m.HW.isActivated("53526676-a6d9-4025-8a79-330e9a3a3d63","07/28/2023","fixing radio button getting multi selected")?Object.keys(e.selectedNodes)[0]:Object.keys(e.selectedNodes)[0]===e.getNodeKey(e.node)?e.getNodeKey(e.node):null,g=c.createElement(L.vcq,{options:[{key:e.getNodeKey(e.node),text:_,styles:p,disabled:e.node.isDisabled,tabIndex:-1}],selectedKey:b,onChange:e.onSelect}),v={fontWeight:e.isHighLighted?"bold":"normal"};h()&&(null===(i=null==f?void 0:f.styles)||void 0===i?void 0:i.label)&&(v=(0,s.W_)((0,s.W_)({},v),null===(r=null==f?void 0:f.styles)||void 0===r?void 0:r.label));var y="radioButtonLabel_d6287065",S={fontWeight:e.isHighLighted?"bold":"normal"};return h()&&(y=y+" "+(0,d.Pl)(S),(null===(o=null==f?void 0:f.styles)||void 0===o?void 0:o.label)&&(y=y+" "+(0,d.Pl)(null===(l=null==f?void 0:f.styles)||void 0===l?void 0:l.label))),c.createElement("div",{style:{width:"90%"}},g,e.nodeState.nodeForm&&e.nodeState.nodeForm.formType===a.UPDATE&&c.createElement(P,(0,s.W_)({},e)))}function F(e){var t=e.node.type||"",n=C(e.nodeTypeData||{},t,b()&&!!e.node.isSelectAllChildrenNode);function i(t,n){n?e.onSelect():e.onDeselect()}var r=function(){var t,a,i={whiteSpace:I()?void 0:"nowrap",wordBreak:I()?"break-word":void 0,width:"100%",fontWeight:e.isHighLighted?"bold":"inherit"};return(h()||b()&&e.node.isSelectAllChildrenNode)&&(null===(t=null==n?void 0:n.styles)||void 0===t?void 0:t.label)&&(i=(0,s.W_)((0,s.W_)({},i),null===(a=null==n?void 0:n.styles)||void 0===a?void 0:a.label)),{root:{whiteSpace:I()?void 0:"nowrap",width:"100%",marginTop:"10px",marginBottom:"10px"},label:i}},o=function(){return c.createElement(c.Fragment,null,c.createElement(L.mSm,{checked:!0===e.selectedNodes[e.getNodeKey(e.node)],disabled:e.isDisabled?e.isDisabled:e.node.isDisabled,label:e.nodeState.nodeForm&&e.nodeState.nodeForm.formType===a.UPDATE?"":e.nodeDisplayText,onChange:i,styles:r,inputProps:{tabIndex:-1}}),e.nodeState.nodeForm&&e.nodeState.nodeForm.formType===a.UPDATE&&c.createElement(P,(0,s.W_)({},e)))};return b()&&e.node.doesNodeBelongToSelectAllChildrenEnabledTree&&e.isDisabled?c.createElement("div",{className:"disabledCheckboxWithLabel_21e223d5"},o()):c.createElement("div",{style:{width:"90%"}},o())}function H(e){return c.createElement("div",{className:"headingLabelRoot_d6287065 pointerCursor_d6287065",onClick:e.onClick},c.createElement("div",{className:"headingLabelInner_d6287065",style:{fontWeight:e.isHighLighted?"bold":"inherit"}},e.nodeDisplayText))}function R(e){var t=(0,p.fsl)(),n=c.useState(null),i=n[0],r=n[1],o=c.useState(!1),d=o[0],u=o[1],h=c.useRef(null),b=function(){return m.tH.isFeatureEnabled({ODB:60030})},g=function(){u(!d)},v=function(){return Boolean(e.parents&&e.parents.length>=1&&e.parents[e.parents.length-1].isOnlySingleChildExpandable)};function y(){var t=e.node.isHidden;return e.isVisible&&!t}function S(){return e.nodeState.isExpanded?e.log("info","CollapsingLevel"+e.level):e.log("info","ExpandingLevel"+e.level),e.onToggle(e.node,e.parents)}function D(){return b()?e.node.isLeaf&&!e.nodeState.isChildrenLoaded&&!e.node.onRenderChildrenHeader||e.node.noToggle||e.nodeState.isChildrenLoaded&&(!e.nodeState.children||0===e.nodeState.children.length)&&!e.node.onRenderChildrenHeader:e.node.isLeaf&&!e.nodeState.isChildrenLoaded||e.node.noToggle||e.nodeState.isChildrenLoaded&&(!e.nodeState.children||0===e.nodeState.children.length)}function I(){return"NONE"===e.selectionMode?"leafNodeNavForTreeNodeWithIcon_d6287065":"leafNodeNavForTreeNodeWithoutIcon_d6287065"}function C(){return b()?e.nodeIndentationFunction(e.level):e.nodeIndentationFunction(e.level)+4}function E(){return e.selectedNodes[e.getCustomUserKey?e.getCustomUserKey(e.node,e.parents):e.getNodeKey(e.node)]}function L(){if(e.onDeselect){if(Q()&&!e.isNodeSelectable)return;e.log("info","DeselectedInTree"),e.onDeselect(e.node,e.parents)}}function P(){Q()&&!e.isNodeSelectable||(e.log("info","SelectedInTree"),e.onSelect(e.node,e.parents))}function N(){var t=(0,s.W_)({},e.node);return(0,s.AE)((0,s.AE)([],e.parents,!0),[t],!1)}function B(){if(b()){if(e.nodeState.isExpanded)return v()?"ChevronUpMed":"ChevronDownMed";var n=t?"ChevronLeftMed":"ChevronRightMed";return v()&&(n="ChevronDownMed"),n}return e.nodeState.isExpanded?"ChevronDownMed":t?"ChevronLeftMed":"ChevronRightMed"}function j(){return c.createElement(c.Fragment,null,void 0!==e.nodeState.children&&e.nodeState.children.map(function(t){return c.createElement(R,{key:e.getCustomUserKey?e.getCustomUserKey(t,e.parents?N():[]):e.getNodeKey(t),isVisible:!0===e.isVisible&&!0===e.nodeState.isExpanded,node:t,level:e.level+1,selectionMode:e.selectionMode,nodeState:e.treeState.treeNodeMap[e.getCustomUserKey?e.getCustomUserKey(t,N()):e.getNodeUniqueKey(t)],onToggle:e.onToggle,treeState:e.treeState,onSelect:e.onSelect,onDeselect:e.onDeselect,selectedNodes:e.selectedNodes,onLoadNext:e.onLoadNext,parents:N(),nodeTypeData:e.nodeTypeData,highlightedNodesMap:e.highlightedNodesMap,getNodeKey:e.getNodeKey,getNodeUniqueKey:e.getNodeUniqueKey,getCustomUserKey:e.getCustomUserKey,isNodeSelectable:!0,isRootSelectable:e.isRootSelectable,addNewNode:e.addNewNode,renameNode:e.renameNode,showNewNodeForm:e.showNewNodeForm,showRenameNodeForm:e.showRenameNodeForm,log:e.log,loadMoreLabel:e.loadMoreLabel,nodeIndentationFunction:e.nodeIndentationFunction,getIconForNewNode:e.getIconForNewNode,contextMenuPopButtonAriaLabel:e.contextMenuPopButtonAriaLabel,moreOptionsButtonTooltipProps:e.moreOptionsButtonTooltipProps,showMaxWidthForNode:!!e.showMaxWidthForNode,isViewMagnifiedForTree:!!e.isViewMagnifiedForTree,deactivatedNodesMap:e.deactivatedNodesMap,treeNodeCustomStyles:x()?e.treeNodeCustomStyles:void 0})}))}function V(){return e.node.hideSelection}function z(t){function n(){"MULTIPLE_SELECT"===e.selectionMode?V()||(!0===E()?L():P()):"SINGLE_SELECT"===e.selectionMode?V()||P():"NONE"!==e.selectionMode||e.nodeState&&e.nodeState.nodeForm&&e.nodeState.nodeForm.formType===a.UPDATE||P()}var i=!D();switch(t.keyCode){case w():i&&e.nodeState.isExpanded&&S();break;case O():i&&!e.nodeState.isExpanded?(S(),t.stopPropagation()):e.nodeState.loading&&t.stopPropagation();break;case 32:(!e.nodeState||!e.nodeState.nodeForm||e.nodeState.nodeForm.formType!==a.UPDATE)&&t.preventDefault(),n();break;case 13:n()}}function G(){return!(e.isRootSelectable||e.parents&&0!==e.parents.length)}function K(){return c.createElement(f.z5q,(0,s.W_)({direction:f.GIy.horizontal,"data-is-focusable":!0,onKeyDown:z,className:(a="",a+="focusableTreeNode_d6287065 ","NONE"===e.selectionMode?a+=E()?"selectedTreeNodeWithIcon_d6287065":"treeNodeWithIcon_d6287065":a+=m.HW.isActivated("3a7ae9dd-c062-43c2-9ebd-3973ac995280","06/04/2021","making hover background color based on theme")?"treeNodeWithAbsoluteColors_d6287065":l,a),componentRef:r,style:(n=function(){var n;return(n={})[t?"paddingRight":"paddingLeft"]="NONE"===e.selectionMode?e.IsSourceCollapsableTree?0:4:C(),n.display="flex",n}(),x()&&e.treeNodeCustomStyles&&(n=(0,s.W_)((0,s.W_)({},n),e.treeNodeCustomStyles)),e.showMaxWidthForNode&&d&&(n=(0,s.W_)((0,s.W_)({},n),{width:"max-content"})),n)},function(){var t;if(e.IsSourceCollapsableTree)return{"aria-label":e.node.name};var n=e.node.ariaLabel?e.node.ariaLabel:e.node.name;return!V()&&e.isNodeSelectable&&("SINGLE_SELECT"===e.selectionMode?n+="; radio button":"MULTIPLE_SELECT"===e.selectionMode&&(n+="; check box")),n=n+"; "+(E()?"selected":"not selected"),(0,s.W_)((0,s.W_)({role:"treeitem"},!m.HW.isActivated("fa60d62e-2016-4380-9a86-f51503993fa1","03/21/2024","fixing aria-expanded for radio buttons")&&"SINGLE_SELECT"===e.selectionMode&&(null===(t=null==e?void 0:e.node)||void 0===t?void 0:t.isLeaf)?{}:{"aria-expanded":m.HW.isActivated("a8666c5e-58bc-46ee-90b9-a89f58882e0d","11/07/2020","allowing announcment of expand or collapse state")?e.nodeState.isExpanded:!!e.nodeState.isExpanded}),{"aria-label":n,"aria-level":e.level+1,"aria-selected":!!E()})}()),"NONE"===e.selectionMode&&c.createElement(c.Fragment,null,c.createElement("div",{className:E()?"selectionIndicator_d6287065":"nonSelectionIndicator_d6287065"}),c.createElement("div",{style:{width:0===e.level?0:e.nodeIndentationFunction(e.level)-12}})),e.IsSourceCollapsableTree?c.createElement(c.Fragment,null):J()&&e.node.isSelectAllChildrenNode?c.createElement("span",{className:I()}):D()?(e.log("info","ExpansionCalledOnLeafNode"),"NONE"===e.selectionMode&&0===e.level?c.createElement(c.Fragment,null):c.createElement("span",{className:I()})):c.createElement("span",{className:"pointerCursor_d6287065",onClick:S},c.createElement(f.k45,{className:b()&&V()&&v()?"chevronForHeading_d6287065":"NONE"===e.selectionMode?"chevronForTreeNodeWithIcon_d6287065":"chevronForTreeNodeWithoutIcon_d6287065",iconName:B()})),function(){var t=_()?function(){var t,n;return(null===(n=null===(t=e.node.localizedNames)||void 0===t?void 0:t.find(function(t){var n;return(null===(n=e.treeState)||void 0===n?void 0:n.selectedLanguageTag)===t.languageTag}))||void 0===n?void 0:n.name)||e.nodeState.name||""}():e.nodeState.name||"",n=void 0!==e.highlightedNodesMap[JSON.stringify({id:e.node.id})]||void 0!==e.highlightedNodesMap[JSON.stringify({name:e.node.name})],a=J()&&e.deactivatedNodesMap&&e.node.id?e.deactivatedNodesMap[e.node.id]:void 0;if(!e.isNodeSelectable)return function(e,t){return c.createElement("span",{style:(n=e,a={marginTop:"10px",marginBottom:"10px",width:"90%"},n?(0,s.W_)({fontWeight:"bold"},a):a)},t);var n,a}(n,t);if(V())return c.createElement(H,{isHighLighted:n,nodeDisplayText:t,onClick:S});switch(e.selectionMode){case"SINGLE_SELECT":return c.createElement(U,(0,s.W_)({},e,{isHighLighted:n,nodeDisplayText:t,onSelect:P}));case"MULTIPLE_SELECT":return c.createElement(F,(0,s.W_)({},e,{isHighLighted:n,nodeDisplayText:t,onSelect:P,onDeselect:L,isDisabled:a}));default:return c.createElement(T,(0,s.W_)({},e,{nodeDisplayText:t,onSelect:P,isHighLighted:b()?n:void 0,IsSourceCollapsibleTree:e.IsSourceCollapsableTree,setWidthForTruncatedLabel:g,widthMaxContent:d}))}}(),(!b()||b()&&!e.node.hideContextMenu)&&!e.IsSourceCollapsableTree&&c.createElement(k,(0,s.W_)({},e,{isCurrentNodeNonSelectableRootNode:G,nodeRef:i,contextMenuRef:Y()?h:void 0})));var n,a}if(b()){var W=void 0;if(e.nodeState.nodeForm&&e.nodeState.nodeForm.formType===a.NEW)W=c.createElement(c.Fragment,null,c.createElement(A,(0,s.W_)({},e,{contextMenuRef:Y()?h:void 0})),j());else{var q=e.nodeState.isExpanded&&e.node.onRenderChildrenHeader?e.node.onRenderChildrenHeader(e.node,e.parents,e.nodeState.isChildrenLoaded,e.nodeState.children):c.createElement(c.Fragment,null);W=c.createElement(c.Fragment,null,q,j())}return v()&&W&&(W=c.createElement("div",{className:"accordion_d6287065"},W)),c.createElement(c.Fragment,null,y()?K():c.createElement(c.Fragment,null),W,c.createElement(M,(0,s.W_)({},e,{getPaddingLeft:C,rtl:t})))}return c.createElement(c.Fragment,null,y()?K():c.createElement(c.Fragment,null),e.nodeState.nodeForm&&e.nodeState.nodeForm.formType===a.NEW&&c.createElement(A,(0,s.W_)({},e)),j(),c.createElement(M,(0,s.W_)({},e,{getPaddingLeft:C,rtl:t})));function Q(){return!m.HW.isActivated("1059da47-ce9e-4512-88bd-eac9635016f0","11/08/2020","Suppressing Enter Key Press on Non Selectable Nodes")}function Y(){return!m.HW.isActivated("0084a08c-2dd0-476d-aab3-ab61440e426a","03/21/2024","Moving focus back to source context menu on escape")}function J(){return m.tH.isFeatureEnabled({ODB:60159})}}(0,d.pZ)([{rawString:".disabledCheckboxWithLabel_21e223d5{width:90%}.disabledCheckboxWithLabel_21e223d5 span[class*=ms-Checkbox-text]{color:inherit}"}]),(0,d.pZ)([{rawString:".SelectedItem_25ef7c69{display:flex;margin-left:20px}.CancelButtonContainer_25ef7c69{position:absolute;top:0;height:28px}[dir=ltr] .CancelButtonContainer_25ef7c69{right:0}[dir=rtl] .CancelButtonContainer_25ef7c69{left:0}.CancelButton_25ef7c69{height:28px}.CancelButtonIcon_25ef7c69{font-size:12px}.picker_25ef7c69{border:0;outline:0}.picker_25ef7c69 .ms-BasePicker-text{border:none}.picker_25ef7c69 .ms-BasePicker-input{padding:0 14px 0 14px;font-size:14px}[dir=rtl] .picker_25ef7c69 .ms-BasePicker-input{padding:0 14px 0 14px}.picker_25ef7c69:focus{border:1px solid #0078d4}.searchItemCell_25ef7c69{min-height:54px;margin:0 10px;box-sizing:border-box;border-bottom:1px solid #edebe9;display:flex}.searchItemCell_25ef7c69:hover{background:#f3f2f1}.searchItemCell_25ef7c69:focus{background:#f3f2f1;outline:thin solid #0078d4}.searchItemCellHighlighted_25ef7c69{min-height:54px;margin:0 10px;box-sizing:border-box;border-bottom:1px solid #edebe9;display:flex;background:#edebe9}.searchItemCellHighlighted_25ef7c69:focus{outline:thin solid #0078d4}.callout_25ef7c69{min-width:300px}.listContainer_25ef7c69{max-height:400px;padding:1px 0}.SearchResultText_25ef7c69{border-bottom:1px solid #e1e1e1;padding:0 0 14px 20px;font-size:14px}[dir=rtl] .SearchResultText_25ef7c69{padding:0 20px 14px 0}.SearchMargin_25ef7c69{margin-bottom:10px}"}]);const N="searchItemCell_25ef7c69";var B=null;function j(e){var t=c.useState([]),n=t[0],a=t[1];function i(){return e.searchPlaceholders?n.length>0?e.searchPlaceholders.searchResultText(e.searchState.searchString):e.searchPlaceholders.noSuggestionsText:""}return c.useEffect(function(){!function(t){(0,s.Zd)(this,void 0,void 0,function(){return(0,s.qr)(this,function(n){switch(n.label){case 0:return e.onSelect&&t.length>0?[4,e.onSelect(t[0].suggestion)]:[3,2];case 1:return n.sent(),a(t.map(function(e,t){return 0===t?(0,s.W_)((0,s.W_)({},e),{isHighlighted:!0}):e})),B&&B.focus(),[3,3];case 2:a(t),n.label=3;case 3:return[2]}})})}(e.searchState.treeNodeSuggestions?e.searchState.treeNodeSuggestions.map(function(e){return{suggestion:e,isHighlighted:!1}}):[])},[e.searchState.treeNodeSuggestions]),c.createElement("div",{id:"treeNodeSuggestionsList"},1!==n.length&&c.createElement("div",{className:"SearchResultText_25ef7c69"},i()),n&&n.length>0&&c.createElement(f.z5q,{role:"list","aria-label":i()+"; "+(e.searchPlaceholders&&e.searchPlaceholders.searchSuggestionsRegionAria?e.searchPlaceholders.searchSuggestionsRegionAria:""),direction:f.GIy.vertical,componentRef:function(e){B=e}},c.createElement(f.Oc0,{role:"none",items:n,onRenderCell:function(t,i){return c.createElement("div",{role:"listitem",className:t&&t.isHighlighted?"searchItemCellHighlighted_25ef7c69":N,"data-is-focusable":!0,onClick:function(r){return(0,s.Zd)(this,void 0,void 0,function(){var r;return(0,s.qr)(this,function(o){switch(o.label){case 0:if(!e.onSelect||!t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,e.onSelect(t.suggestion)];case 2:return o.sent(),a(n.map(function(e,t){return(0,s.W_)((0,s.W_)({},e),{isHighlighted:i===t})})),[3,4];case 3:return r=o.sent(),e.log("error","UnableToSelectSuggestion:"+String(r)),[3,4];case 4:return[2]}})})}},t?t.suggestion.searchResult:c.createElement(c.Fragment,null))}})))}var V=null,z="",G="";function K(e){var t,n=c.useState(!1),a=n[0],i=n[1],r=c.useState(!1),o=r[0],d=r[1],l=c.useState(!0),u=l[0],m=l[1],h=c.useState(void 0),b=h[0],g=h[1],v=c.useState(null),y=v[0],S=v[1];function D(t){z="",G="",i(!1),g(void 0),e.showSearchResults(!1),e.onCloseSearchResult&&e.onCloseSearchResult()}function I(){m(!1)}return c.useEffect(function(){a&&!o&&(m(!1),e.showSearchResults(!0,{treeNodeSuggestions:b,searchString:G}))},[b,a,o]),c.createElement(c.Fragment,null,c.createElement(f.z5q,{className:(t="",e.hasBottomMargin&&(t+=" SearchMargin_25ef7c69"),t),direction:f.GIy.horizontal,style:_()?{flexGrow:1}:void 0},c.createElement("div",{ref:function(e){return V=e}},c.createElement(f.Qkz,{ariaLabel:e.searchBoxAriaLabel+(e.searchBoxAriaDescription?"; "+e.searchBoxAriaDescription:""),onClear:D,onChange:function(t,n){z=n||"",n?(i(!1),function(t){(0,s.Zd)(this,void 0,void 0,function(){var n,a;return(0,s.qr)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),m(!0),d(!0),[4,e.getSuggestions(t)];case 1:return n=i.sent(),z&&G!==z&&(G=t,g(n)),[3,3];case 2:return a=i.sent(),e.log("error","UnableToFetchSugggestions:"+String(a)),[3,3];case 3:return d(!1),[2]}})})}(n)):D()},onSearch:function(e){return(0,s.Zd)(this,void 0,void 0,function(){return(0,s.qr)(this,function(t){return e&&""!==e.trim()&&i(!0),[2]})})},onKeyDown:function(e){e.which===p.Xf7.down&&y&&(y.focus(),e.preventDefault())},placeholder:e.searchPlaceholders&&e.searchPlaceholders.searchPlaceholderText,underlined:!0,onFocus:function(){m(!0)},styles:{root:{height:"42px",borderColor:"#c8c8c8"}},clearButtonProps:{ariaLabel:e.clearButtonAriaLabel}}))),u&&(o||b)&&c.createElement(f.udW,{isBeakVisible:!1,gapSpace:4,target:V,directionalHint:f.aZJ.bottomAutoEdge,className:"callout_25ef7c69",onDismiss:I},void 0===b?c.createElement("div",{style:{padding:"10px"}},c.createElement(L.tu6,null)):b.length>0?c.createElement(f.z5q,{direction:f.GIy.vertical,componentRef:S,onKeyDown:function(e){e.which===p.Xf7.tab&&(I(),e.preventDefault())},role:"list","aria-label":e.searchPlaceholders&&e.searchPlaceholders.searchSuggestionsCalloutAria?e.searchPlaceholders.searchSuggestionsCalloutAria:""},c.createElement(f.Oc0,{role:"none",items:b,onRenderCell:function(t,n){return c.createElement("div",{role:"listitem",className:N,"data-is-focusable":!0,onClick:function(){t&&(m(!1),e.showSearchResults(!0,{treeNodeSuggestions:[t],searchString:G}))}},t?t.searchResult:c.createElement(c.Fragment,null))},className:"listContainer_25ef7c69"}),c.createElement(f.A8$,{message:e.searchPlaceholders&&e.searchPlaceholders.searchResultsAnnouncement&&e.searchPlaceholders.searchResultsAnnouncement(b.length)})):c.createElement("div",{style:{padding:"10px"}},e.searchPlaceholders&&c.createElement(c.Fragment,null,e.searchPlaceholders.noSuggestionsText,c.createElement(f.A8$,{message:e.searchPlaceholders.noSuggestionsText})))))}function W(e){var t=(0,d.Dn)(),n=c.useState(e.defaultLanguageTag),a=n[0],i=n[1],r=[{key:"selectLanguageHeader",text:e.languageDropdownHeader,itemType:f.llj.Header,style:{color:t.palette.themeDarkAlt,fontSize:"12px",marginLeft:-20}}];e.languages.map(function(e){r.push({key:e.text,text:e.text,canCheck:!0,checked:e.tag===a,itemProps:{styles:{root:{paddingLeft:12}}},onClick:s,ariaLabel:e.text})});var o=[{key:"selectLanguage",text:"",ariaLabel:e.languageDropdownHeader,iconProps:{iconName:"LocaleLanguage",color:t.palette.themePrimary},buttonStyles:{menuIcon:{color:t.palette.themeSecondary}},subMenuProps:{items:r}}];function s(t,n){var a=e.languages.find(function(e){return e.text===(null==n?void 0:n.text)});a&&a.tag&&(e.onSelectDisplayLanguage(a.tag),i(a.tag))}return c.createElement(L.E1t,{items:o,styles:{root:[{paddingRight:"2px"}]}})}(0,d.pZ)([{rawString:".statusMessage_53d3350f{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.headerContainer_53d3350f{display:flex;justify-content:space-between}"}]);var q="SELECT_ALL",Q=function(e){function t(t){var n=e.call(this,t)||this;n.defaultNodeIndentationFunction=function(e){return n._isSiteCollectionTSFlightEnabled?20*e+4:20*e},n._addChildrenAsSiblings=function(e,t){if(e&&e.isSelectAllChildrenNode&&t&&0!==t.length){e.siblings||(e.siblings=[]);var n=[];t.forEach(function(t){var a,i=!1;null===(a=e.siblings)||void 0===a||a.forEach(function(e){e.id===t.id&&(i=!0)}),i||(n=(0,s.AE)((0,s.AE)([],n,!0),[t],!1))}),e.siblings=(0,s.AE)((0,s.AE)([],e.siblings,!0),n,!0)}};var a,i={treeNodeMap:{},showTreeView:!0,statusMessage:n.props.statusMessage||void 0};return a=n.props.getNodeKey?n.props.getNodeKey(t.rootNode,[]):n._getNodeUniqueKey(t.rootNode),i.treeNodeMap[a]={children:[],loading:!1,isChildrenLoaded:!1,name:t.rootNode.name},n.state=i,n.onToggle=n.onToggle.bind(n),n.loadNextChildren=n.loadNextChildren.bind(n),n._getNodeKey=n._getNodeKey.bind(n),n.addNewNode=n.addNewNode.bind(n),n.renameNode=n.renameNode.bind(n),n.showNewNodeForm=n.showNewNodeForm.bind(n),n.showRenameNodeForm=n.showRenameNodeForm.bind(n),n.showSearchResults=n.showSearchResults.bind(n),n.log=n.log.bind(n),n._onSelect=n._onSelect.bind(n),n._onDeselect=n._onDeselect.bind(n),n._onSelectLanguageTag=n._onSelectLanguageTag.bind(n),n}return(0,s.XJ)(t,e),t.prototype.log=function(e,t,n){if(void 0!==this.props.logger)switch(e){case"error":void 0!==this.props.logger.error&&this.props.logger.error(t,n);break;case"info":void 0!==this.props.logger.info&&this.props.logger.info(t,n)}},t.prototype.componentDidUpdate=function(e){var t=this.props.externalNodeAction;t&&t!==e.externalNodeAction&&this._doExternalAction(t),this.props.statusMessage!==e.statusMessage&&this.setState({statusMessage:this.props.statusMessage})},t.prototype.componentDidMount=function(){this.log("info","AutoExpandingFirstLevel"),this.onToggle(this.props.rootNode,[])},t.prototype.showSearchResults=function(e,t){this.setState(function(n){return e&&t?(0,s.W_)((0,s.W_)({},n),{showTreeView:!1,searchState:t}):(0,s.W_)((0,s.W_)({},n),{showTreeView:!0})})},t.prototype.showNewNodeForm=function(e,t,n,i){var r;r=this.props.getNodeKey?this.props.getNodeKey(e,n):this._getNodeUniqueKey(e),this.state.treeNodeMap[r]&&!this.state.treeNodeMap[r].isExpanded&&this.onToggle(e,n),this.setState(function(e){var n=(0,s.W_)({},e.treeNodeMap);return n[r]=(0,s.W_)((0,s.W_)({},n[r]),{nodeForm:t?{formType:a.NEW,errorMessage:i}:void 0}),{treeNodeMap:n}})},t.prototype.showRenameNodeForm=function(e,t,n,i){var r;r=this.props.getNodeKey?this.props.getNodeKey(e,i):this._getNodeUniqueKey(e),this.setState(function(e){var i=(0,s.W_)({},e.treeNodeMap);return i[r]=(0,s.W_)((0,s.W_)({},i[r]),{nodeForm:t?{formType:a.UPDATE,errorMessage:n}:void 0}),{treeNodeMap:i}})},t.prototype.onToggle=function(e,t){var n,a=this;n=this._isSiteCollectionTSFlightEnabled?this._getKeyOfNode(e,t):this.props.getNodeKey?this.props.getNodeKey(e,t):this._getNodeUniqueKey(e),this.state.treeNodeMap[n]&&!this.state.treeNodeMap[n].isExpanded&&this.loadChildren(n,e,t),this.setState(function(i){var r=(0,s.W_)({},i.treeNodeMap);if(a._isSiteCollectionTSFlightEnabled&&r[n]&&!r[n].isExpanded&&t.length>=1&&t[t.length-1].isOnlySingleChildExpandable){var o=a._getKeyOfNode(t[t.length-1],t.slice(0,t.length-1)),c=r[o];c&&c.children&&c.children.forEach(function(e){var i=a._getKeyOfNode(e,t);i!==n&&(r[i]=(0,s.W_)((0,s.W_)({},r[i]),{isExpanded:!1}))})}return r[n]=(0,s.W_)((0,s.W_)({},r[n]),{isExpanded:!r[n].isExpanded}),a._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn()&&e.doesNodeBelongToSelectAllChildrenEnabledTree&&(e.isExpanded=r[n].isExpanded),{treeNodeMap:r}})},t.prototype.loadChildren=function(e,t,n,a){return(0,s.Zd)(this,void 0,void 0,function(){var i,r,o,c,d,l,u,f;return(0,s.qr)(this,function(p){switch(p.label){case 0:if(!this.state.treeNodeMap[e]||this.state.treeNodeMap[e].isChildrenLoaded&&!a)return[3,4];this.setState(function(t){var n=(0,s.W_)({},t.treeNodeMap);return n[e]=(0,s.W_)((0,s.W_)({},n[e]),{loading:!0}),{treeNodeMap:n}}),p.label=1;case 1:return p.trys.push([1,3,,4]),this.log("info","LoadingChildren"),[4,this.props.loadChildren(t,n)];case 2:return i=p.sent(),r=i.nextLink,o=i.children,this.log("info","LoadedChildrenCount"+o.length),this._isTopicConflationFeatureFlightEnabled()&&(c=t.type?t.type:"",(d=C(this.props.nodeTypeData||{},c))&&d.displaySelectAllImmediateChildrenNode&&this.props.getSelectImmediateChildrenNode&&i.children.length>0&&(l=this.props.getSelectImmediateChildrenNode(t,n),o=(0,s.AE)([l],o,!0))),this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn()&&this.state.treeNodeMap[e]&&i.children.length>0&&this.props.getSelectAllNode&&t.canSelectAllBeAChild&&(u=this.props.getSelectAllNode(t),t.nextLink=r,u&&(u.parent=t,this._addChildrenAsSiblings(u,o),o=(0,s.AE)([u],o,!0))),this._appendChildrenToNode(e,o,r,t,n,!0),[3,4];case 3:return f=p.sent(),this.log("error","UnableToLoadChildren:"+String(f)),[3,4];case 4:return this.setState(function(t){var n=(0,s.W_)({},t.treeNodeMap);return n[e]=(0,s.W_)((0,s.W_)({},n[e]),{loading:!1}),{treeNodeMap:n}}),[2]}})})},t.prototype.getContextMenuCallBack=function(e,t){var n=function(){};return e.forEach(function(e){e.actionType===t&&(n=e.callback)}),n},t.prototype.addNewNode=function(e,t,n){return(0,s.Zd)(this,void 0,void 0,function(){var a,i,r,c;return(0,s.qr)(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),a=t.type?t.type:"",(i=C(this.props.nodeTypeData||{},a))?[4,this.getContextMenuCallBack(i.contextMenuItems||[],"Add")(e,t,n)]:[3,2];case 1:if(!(r=s.sent())||!r.id)throw"no id of new node";this._changeStateForAddNode(r,t,n),s.label=2;case 2:return[3,4];case 3:return(c=s.sent())&&c.type&&c.type===o.VALIDATION?this.showNewNodeForm(t,!0,n,c.errorMessage):this.showNewNodeForm(t,!1,n),[3,4];case 4:return[2]}})})},t.prototype.renameNode=function(e,t,n){return(0,s.Zd)(this,void 0,void 0,function(){var a,i,r;return(0,s.qr)(this,function(s){switch(s.label){case 0:a=t.type?t.type:"",s.label=1;case 1:return s.trys.push([1,4,,5]),(i=C(this.props.nodeTypeData||{},a))?[4,this.getContextMenuCallBack(i.contextMenuItems||[],"Rename")(e,t,n)]:[3,3];case 2:s.sent(),this._changeStateForRenameNode(t,e,n),s.label=3;case 3:return[3,5];case 4:return(r=s.sent())&&r.type&&r.type===o.VALIDATION?this.showRenameNodeForm(t,!0,r.errorMessage,n):this.showRenameNodeForm(t,!1,void 0,n),[3,5];case 5:return[2]}})})},t.prototype.loadNextChildren=function(e,t){return(0,s.Zd)(this,void 0,void 0,function(){var n,a,i,r,o,c,d,l;return(0,s.qr)(this,function(u){switch(u.label){case 0:if(this.log("info","LoadMoreClicked"),n=this.props.getNodeKey?this.props.getNodeKey(e,t):this._getNodeUniqueKey(e),void 0===(a=this.state.treeNodeMap[n].nextLink))return this.log("error","LoadMoreClickedWithoutNextLink"),[2];this.setState(function(e){var t=(0,s.W_)({},e.treeNodeMap);return t[n]=(0,s.W_)((0,s.W_)({},t[n]),{loading:!0}),{treeNodeMap:t}}),u.label=1;case 1:return u.trys.push([1,3,,4]),this.log("info","LoadingNextChildren"),[4,this.props.loadNextChildren(a,e,t)];case 2:return i=u.sent(),r=i.children,o=i.nextLink,this._isTopicConflationFeatureFlightEnabled()&&this.props.onLoadMoreForSelectAllParent&&(c=e.type?e.type:"",(d=C(this.props.nodeTypeData||{},c))&&d.displaySelectAllImmediateChildrenNode&&this.props.onLoadMoreForSelectAllParent&&(r=this.props.onLoadMoreForSelectAllParent(e,t,r))),this._appendChildrenToNode(n,r,o,e,t),this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn()&&(e.doesNodeBelongToSelectAllChildrenEnabledTree&&(e.nextLink=o),e.selectAllChildrenNode&&e.selectAllChildrenNode.siblings&&this._addChildrenAsSiblings(e.selectAllChildrenNode,r)),this.setState(function(e){var t=(0,s.W_)({},e.treeNodeMap);return t[n]=(0,s.W_)((0,s.W_)({},t[n]),{nextLink:o}),{treeNodeMap:t}}),this.log("info","LoadedNextChildren"),[3,4];case 3:return l=u.sent(),this.log("error","UnableToLoadNextChildren:"+String(l)),[3,4];case 4:return this.setState(function(e){var t=(0,s.W_)({},e.treeNodeMap);return t[n]=(0,s.W_)((0,s.W_)({},t[n]),{loading:!1}),{treeNodeMap:t}}),[2]}})})},t.prototype.render=function(){var e;return c.createElement("div",{style:this.props.styles&&this.props.styles.root||void 0},c.createElement("span",{className:"statusMessage_53d3350f",role:"status","aria-live":"polite"},this.state.statusMessage),this._getHeaderContent(),this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn()&&!!this.props.shouldShowLoaderWhileSelectingAllChildren&&!!this.props.onRenderLoaderWhileSelectingAllChildren&&this.props.onRenderLoaderWhileSelectingAllChildren(this.props.labelUnderSpinnerForSelectAllTree),this.state.showTreeView&&!(this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn()&&this.props.shouldShowLoaderWhileSelectingAllChildren)&&c.createElement(f.z5q,{direction:f.GIy.vertical,shouldEnterInnerZone:this._shouldEnterInnerZone,role:"tree","aria-label":this.props.ariaTitle?this.props.ariaTitle+(this.props.ariaDescription?"; "+this.props.ariaDescription:""):"",style:this.props.styles&&this.props.styles.treeContainer||void 0},c.createElement(R,{key:this.props.getNodeKey?this.props.getNodeKey(this.props.rootNode,[]):this._getNodeKey(this.props.rootNode),selectionMode:this.props.selectionMode,node:(0,s.W_)((0,s.W_)({},this.props.rootNode),{noToggle:!0}),onSelect:this._onSelect,onDeselect:this.props.onDeselect?this._onDeselect:void 0,selectedNodes:this.props.selectedNodes,nodeTypeData:this.props.nodeTypeData,highlightedNodesMap:this.props.highlightedNodesMap,onToggle:this.onToggle,treeState:this.state,isVisible:!0,onLoadNext:this.loadNextChildren,parents:[],level:0,getNodeKey:this._getNodeKey,getNodeUniqueKey:this._getNodeUniqueKey,getCustomUserKey:this.props.getNodeKey,nodeState:this.state.treeNodeMap[this.props.getNodeKey?this.props.getNodeKey(this.props.node,[]):this._getNodeUniqueKey(this.props.node)],isRootSelectable:this.props.isRootSelectable,isNodeSelectable:this.props.isRootSelectable,addNewNode:this.addNewNode,renameNode:this.renameNode,showNewNodeForm:this.showNewNodeForm,showRenameNodeForm:this.showRenameNodeForm,log:this.log,loadMoreLabel:void 0!==this.props.loadMoreLabel?this.props.loadMoreLabel:"Load More",nodeIndentationFunction:this.props.nodeIndentationFunction?this.props.nodeIndentationFunction:this.defaultNodeIndentationFunction,getIconForNewNode:this.props.getIconForNewNode,contextMenuPopButtonAriaLabel:this.props.contextMenuPopButtonAriaLabel,moreOptionsButtonTooltipProps:this.props.moreOptionsButtonTooltipProps,showMaxWidthForNode:!!this.props.showMaxWidthForNode,isViewMagnifiedForTree:!!this.props.isViewMagnifiedForTree,deactivatedNodesMap:this.props.deactivatedNodesMap,treeNodeCustomStyles:x()?null===(e=this.props.styles)||void 0===e?void 0:e.treeNode:void 0})),!this.state.showTreeView&&this.props.searchProps&&this.state.searchState&&c.createElement("div",{style:this.props.styles&&this.props.styles.treeContainer||void 0},c.createElement(j,{searchState:this.state.searchState,onSelect:this.props.searchProps.onSelectSearchResult,searchPlaceholders:this.props.searchProps.searchPlaceholders,getNodeKey:this.props.getNodeKey?this.props.getNodeKey:this._getNodeKey,log:this.log})))},t.prototype._onSelectLanguageTag=function(e){var t;this.setState(function(t){return{selectedLanguageTag:e}}),null===(t=this.props.languageDropdownProps)||void 0===t||t.onSelectDisplayLanguage(e)},t.prototype._shouldEnterInnerZone=function(e){return e.which===O()},t.prototype._getKeyOfNode=function(e,t){return this.props.getNodeKey?this.props.getNodeKey(e,t):this._getNodeUniqueKey(e)},t.prototype._getHeaderContent=function(){var e,t,n=this._isSiteCollectionTSFlightEnabled?!((null===(e=this.props.messageBarProps)||void 0===e?void 0:e.content)||(null===(t=this.props.messageBarProps)||void 0===t?void 0:t.placeHolderContent)):!this.props.messageBarProps;return c.createElement(c.Fragment,null,_()?c.createElement("div",{className:"headerContainer_53d3350f"},!this.props.showMaxWidthForNode&&this.props.searchProps&&c.createElement(K,(0,s.W_)({showSearchResults:this.showSearchResults},this.props.searchProps,{onSelect:this.props.searchProps.onSelectSearchResult,log:this.log,hasBottomMargin:n})),this.props.languageDropdownProps&&c.createElement(W,{languages:this.props.languageDropdownProps.workingLanguages,onSelectDisplayLanguage:this._onSelectLanguageTag,defaultLanguageTag:this.props.languageDropdownProps.defaultLanguageTag,languageDropdownHeader:this.props.languageDropdownProps.languageDropdownHeader})):!this.props.showMaxWidthForNode&&this.props.searchProps&&c.createElement(K,(0,s.W_)({showSearchResults:this.showSearchResults},this.props.searchProps,{onSelect:this.props.searchProps.onSelectSearchResult,log:this.log,hasBottomMargin:n})),!this._isSiteCollectionTSFlightEnabled&&this.props.messageBarProps&&this.props.messageBarProps.content&&this.props.messageBarProps.config&&c.createElement("div",null,c.createElement(f.usJ,(0,s.W_)({},this.props.messageBarProps.config),this.props.messageBarProps.content)),this._isSiteCollectionTSFlightEnabled&&this.props.messageBarProps&&this.props.messageBarProps.content&&this.props.messageBarProps.config&&c.createElement("div",null,c.createElement(f.usJ,(0,s.W_)({},this.props.messageBarProps.config),this.props.messageBarProps.content)),this._isSiteCollectionTSFlightEnabled&&this.props.messageBarProps&&!this.props.messageBarProps.content&&this.props.messageBarProps.placeHolderContent)},t.prototype._doExternalAction=function(e){return(0,s.Zd)(this,void 0,void 0,function(){var t;return(0,s.qr)(this,function(n){switch(n.label){case 0:if(!this.state.treeNodeMap[this._getUniqueKey_(e.currentNode,e.parents||[])])return[2];switch(e.actionPerformed){case i.RENAME:return[3,1];case i.ADD:return[3,2];case i.DELETE:return[3,3];case i.RELOAD_CHILDREN:return[3,4];case i.SELECT:return[3,8]}return[3,9];case 1:return this._changeStateForRenameNode(e.currentNode,e.currentNode.name,e.parents||[]),[3,9];case 2:return this.showNewNodeForm(e.currentNode,!0,e.parents?e.parents:[]),[3,9];case 3:return this._changeStateForDeleteNode(e.currentNode,e.parents?e.parents:[]),[3,9];case 4:return n.trys.push([4,6,,7]),[4,this._reloadChildren(e.currentNode,e.parents?e.parents:[])];case 5:return n.sent(),[3,7];case 6:return t=n.sent(),this.log("error","UnableToReloadChildren:"+String(t)),[3,7];case 7:return[3,9];case 8:this.props.onSelect(e.currentNode,e.parents?e.parents:[]),n.label=9;case 9:return e.callback&&e.callback(),[2]}})})},t.prototype._changeStateForRenameNode=function(e,t,n){var a=this.props.getNodeKey?this.props.getNodeKey(e,n):this._getNodeKey(e);this.setState(function(e){var n=(0,s.W_)({},e.treeNodeMap);return n[a]=(0,s.W_)((0,s.W_)({},n[a]),{name:t,nodeForm:void 0}),{treeNodeMap:n}})},t.prototype._changeStateForDeleteNode=function(e,t){var n,a=this;this.props.getNodeKey?t&&t.length&&(n=this.props.getNodeKey(t[t.length-1],t.slice(0,t.length-1))):n=this._getNodeUniqueKey(t[t.length-1]),this._removeChildren(this._getUniqueKey_(e,t),e,t),this.setState(function(t){var a=(0,s.W_)({},t.treeNodeMap),i=(t.treeNodeMap[n]&&t.treeNodeMap[n].children||[]).filter(function(t){return t.id!==e.id});return a[n]=(0,s.W_)((0,s.W_)({},a[n]),{children:i,loading:!1,isChildrenLoaded:!0}),{treeNodeMap:a}},function(){t.length>0&&a.props.onSelect(t[t.length-1],t.slice(0,t.length-1))})},t.prototype._changeStateForAddNode=function(e,t,n){var a,i,r=this;this.props.getNodeKey?(a=this.props.getNodeKey(t,n),i=this.props.getNodeKey(e,(0,s.AE)((0,s.AE)([],n,!0),[t],!1))):(a=this._getNodeUniqueKey(t),i=this._getNodeUniqueKey(e)),this.setState(function(t){var n=(0,s.W_)({},t.treeNodeMap);n[i]=(0,s.W_)((0,s.W_)({},n[i]),{children:[],loading:!1,name:e.name,isChildrenLoaded:!1});var r=t.treeNodeMap[a]&&t.treeNodeMap[a].children||[],o=(0,s.AE)([e],r,!0);return n[a]=(0,s.W_)((0,s.W_)({},n[a]),{children:o,isExpanded:!0,isChildrenLoaded:!0,nodeForm:void 0}),{treeNodeMap:n}},function(){r.props.onSelect(e,(0,s.AE)((0,s.AE)([],n,!0),[t],!1)),r.props.addParentToChildren&&r.props.addParentToChildren([e],t)})},t.prototype._getNodeKey=function(e){return e.key||JSON.stringify({id:e.id,type:e.type})},t.prototype._getNodeUniqueKey=function(e){return JSON.stringify({id:e.id,type:e.type})},t.prototype._onSelect=function(e,t){if(this._isTopicConflationFeatureFlightEnabled()&&e.type===q&&this.props.onSelectAll){var n=this._getLastNodeKey(t);n&&this.state.treeNodeMap[n]&&this.props.onSelectAll&&this.props.onSelectAll(e,t,this.state.treeNodeMap[n].children||[])}if(this.setState({statusMessage:e.name+" selected"}),this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn()&&e.isSelectAllChildrenNode){if(this.props.updateNodeSelectInclusionMap&&e.parent&&this.props.updateNodeSelectInclusionMap(e.parent,!0,1),this.props.onSelectAllChildren&&e.parent){var a=":"+this.props.engagementSource+":";this.log("info","SelectAllChildren.Checked",a),this.props.onSelectAllChildren(e.parent)}}else this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn()&&e.doesNodeBelongToSelectAllChildrenEnabledTree&&this.props.updateNodeSelectInclusionMap&&this.props.updateNodeSelectInclusionMap(e,!1,1),this.props.onSelect(e,t)},t.prototype._getLastNodeKey=function(e){if(0!==e.length){var t=e[e.length-1],n=[];return e.length>1&&(n=e.slice(0,e.length-1)),this.props.getNodeKey?this.props.getNodeKey(t,n):this._getNodeUniqueKey(t)}},t.prototype._onDeselect=function(e,t){if(this._isTopicConflationFeatureFlightEnabled()&&e.type===q&&this.props.onDeselectAll){var n=this._getLastNodeKey(t);n&&this.state.treeNodeMap[n]&&this.props.onDeselectAll&&this.props.onDeselectAll(e,t,this.state.treeNodeMap[n].children||[])}if(this.props.onDeselect)if(this.setState({statusMessage:e.name+" deselected"}),this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn()&&e.isSelectAllChildrenNode&&this.props.onDeSelectAllChildren){this.props.updateNodeSelectInclusionMap&&e.parent&&this.props.updateNodeSelectInclusionMap(e.parent,!0,-1);var a=":"+this.props.engagementSource+":";this.log("info","SelectAllChildren.Unchecked",a),this.props.onDeSelectAllChildren(e,t)}else this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn()&&e.doesNodeBelongToSelectAllChildrenEnabledTree&&this.props.updateNodeSelectInclusionMap&&this.props.updateNodeSelectInclusionMap(e,!1,-1),this.props.onDeselect(e,t)},t.prototype._appendChildrenToNode=function(e,t,n,a,i,r){var o=this;this.setState(function(c){var d=(0,s.W_)({},c.treeNodeMap);t.forEach(function(e){var t;t=o.props.getNodeKey?o.props.getNodeKey(e,i?(0,s.AE)((0,s.AE)([],i,!0),[a],!1):[a]):o._getNodeUniqueKey(e),d[t]=(0,s.W_)((0,s.W_)({},d[t]),{children:[],loading:!1,isChildrenLoaded:!1,name:e.name})});var l=c.treeNodeMap[e]&&c.treeNodeMap[e].children||[],u=r?(0,s.AE)([],t,!0):(0,s.AE)((0,s.AE)([],l,!0),t,!0);return d[e]=(0,s.W_)((0,s.W_)({},d[e]),{children:u,nextLink:n,isChildrenLoaded:!0}),o.log("info","AppendedToMakeTotalChildCount"+u.length),{treeNodeMap:d}}),this.props.addParentToChildren&&this.props.addParentToChildren(t,a)},t.prototype._reloadChildren=function(e,t){return(0,s.Zd)(this,void 0,void 0,function(){var n;return(0,s.qr)(this,function(a){switch(a.label){case 0:return n=this._getUniqueKey_(e,t),this._removeChildren(n,e,t),[4,this.loadChildren(n,e,t,!0)];case 1:return a.sent(),this.setState(function(e){var t=(0,s.W_)({},e.treeNodeMap);return t[n]=(0,s.W_)((0,s.W_)({},t[n]),{isExpanded:!0}),{treeNodeMap:t}}),[2]}})})},t.prototype._removeChildren=function(e,t,n){var a=this._getChildrenKeys(e,t,n);this.setState(function(t){var n=(0,s.W_)({},t.treeNodeMap);return n[e]=(0,s.W_)((0,s.W_)({},n[e]),{children:[]}),a.forEach(function(e){delete n[e]}),{treeNodeMap:n}})},t.prototype._getChildrenKeys=function(e,t,n){var a=this,i=this.state.treeNodeMap[e];return i&&i.children&&i.children.length>0?i.children.map(function(e){var i=a._getUniqueKey_(e,(0,s.AE)((0,s.AE)([],n,!0),[t],!1)),r=a._getChildrenKeys(i,e,(0,s.AE)((0,s.AE)([],n,!0),[t],!1));return(0,s.AE)((0,s.AE)([],r,!0),[i],!1)}).reduce(function(e,t){return e.concat(t)},[]):[]},t.prototype._getUniqueKey_=function(e,t){return this.props.getNodeKey?this.props.getNodeKey(e,t):this._getNodeUniqueKey(e)},Object.defineProperty(t.prototype,"_isSiteCollectionTSFlightEnabled",{get:function(){return m.tH.isFeatureEnabled({ODB:60030})},enumerable:!1,configurable:!0}),t.prototype._isTopicConflationFeatureFlightEnabled=function(){return m.tH.isFeatureEnabled({ODB:60143})},t.prototype._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn=function(){return m.tH.isFeatureEnabled({ODB:60159})},t}(f.oKI);const Y=Q}
,2546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfigureFlowsPanelContainer:()=>s,default:()=>c});var a=n("tslib_102"),i=n("react-lib"),r=n(42),o=n(2945),s=function(e){function t(t){var n=e.call(this,t)||this,a=t.hostModel.resources;return n._pageContext=a.consume(r.n),n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e={pageContext:this._pageContext,onDismiss:this.props.onDismiss};return i.createElement(o.a,(0,a.W_)({},e))},t}(i.Component);const c=s}
,3447:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var a=n(26),i=n(2227),r=n("knockout-lib"),o=(n(2713),(0,i.a)("ms-filter-select-panel","./FilterSelectConnector",function(){return a.c.resolve(Promise.resolve().then(n.bind(n,2713)))}));r.components.isRegistered(o.tagName)||r.components.register(o.tagName,o);const s=o}
,2713:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Z});var a=n("tslib_102"),i=n("react-lib"),r=n(2429),o=n(7613),s=n(6984),c=n(358),d=n(129),l=n(186),u=n(275),f=n(42),p=n(41),m=n("fui.util_43"),_=n("fui.lco_496"),h=n("fui.lcoms_828"),b=n(184),g=n("odsp.util_578"),v=n(83),y=n(2781),S=n(5720),D=n(2928),I=n(2564),x=n(2768),C=n(3784);(0,m.pZ)([{rawString:'.od-FilterSelect-suggestionText{overflow:auto;overflow-wrap:break-word;padding:7px 12px}html[dir=ltr] .od-FilterSelect-suggestionText{text-align:left}html[dir=rtl] .od-FilterSelect-suggestionText{text-align:right}.od-FilterSelect-stickyFooter-wcag{position:absolute;bottom:0}@media screen and (max-width:640px){.od-FilterSelect-stickyFooter-wcag{position:static}}.od-FilterSelect-region-wcag{padding-top:70px}@media screen and (max-width:640px){.od-FilterSelect-region-wcag{padding-top:20px}}.od-FilterSelect-sideblocks-wcag{display:inline-flex;margin-top:32px}@media screen and (max-width:640px){.od-FilterSelect-sideblocks-wcag{margin-top:5px;width:100%}}.od-FilterSelect-filterPickerForTaxonomy-wcag{margin-bottom:8px;margin-right:38px;margin-top:8px;width:232px;height:32px}[dir=ltr] .od-FilterSelect-filterPickerForTaxonomy-wcag{padding-left:32px}[dir=rtl] .od-FilterSelect-filterPickerForTaxonomy-wcag{padding-right:32px}@media screen and (max-width:640px){.od-FilterSelect-filterPickerForTaxonomy-wcag{width:auto;margin-right:0}.od-FilterSelect-filterPickerForTaxonomy-wcag .ms-BasePicker-text{min-width:140px}}.od-FilterSelect-filterPicker-wcag{margin-bottom:8px;margin-right:38px;margin-top:8px;width:261px}[dir=ltr] .od-FilterSelect-filterPicker-wcag{padding-left:40px}[dir=rtl] .od-FilterSelect-filterPicker-wcag{padding-right:40px}@media screen and (max-width:640px){.od-FilterSelect-filterPicker-wcag{width:auto;margin-right:0}.od-FilterSelect-filterPicker-wcag .ms-BasePicker-text{min-width:auto;width:150px}}.od-FilterSelect-title-wcag{top:118px;height:28px;text-align:left;font-family:"Segoe UI Regular WestEuropean","Segoe UI",Tahoma,Arial,sans-serif;font-size:'},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";letter-spacing:0;color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:';opacity:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default}[dir=ltr] .od-FilterSelect-title-wcag{left:1068px}[dir=rtl] .od-FilterSelect-title-wcag{right:1068px}[dir=ltr] .od-FilterSelect-title-wcag{padding-left:40px}[dir=rtl] .od-FilterSelect-title-wcag{padding-right:40px}@media screen and (max-width:640px){.od-FilterSelect-title-wcag{margin-right:45px}}.od-FilterSelect-titleForTaxonomy-wcag{top:118px;height:28px;text-align:left;font-family:"Segoe UI Semibold WestEuropean","Segoe UI Semibold","Segoe UI",Tahoma,Arial,sans-serif;font-size:'},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";letter-spacing:0;color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:';opacity:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default}[dir=ltr] .od-FilterSelect-titleForTaxonomy-wcag{left:1068px}[dir=rtl] .od-FilterSelect-titleForTaxonomy-wcag{right:1068px}[dir=ltr] .od-FilterSelect-titleForTaxonomy-wcag{padding-left:32px}[dir=rtl] .od-FilterSelect-titleForTaxonomy-wcag{padding-right:32px}@media screen and (max-width:640px){.od-FilterSelect-titleForTaxonomy-wcag{margin-right:45px}}.od-FilterSelect-contextMenu-wcag{margin-top:6px}@media screen and (max-width:640px){.od-FilterSelect-contextMenu-wcag{width:100%}}.od-FilterSelect-title{top:118px;width:261px;height:28px;text-align:left;font-family:"Segoe UI Regular WestEuropean","Segoe UI",Tahoma,Arial,sans-serif;font-size:'},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";letter-spacing:0;color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:';opacity:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default}[dir=ltr] .od-FilterSelect-title{left:1068px}[dir=rtl] .od-FilterSelect-title{right:1068px}[dir=ltr] .od-FilterSelect-title{padding-left:40px}[dir=rtl] .od-FilterSelect-title{padding-right:40px}.od-FilterSelect-titleForTaxonomy{top:118px;width:261px;height:28px;text-align:left;font-family:"Segoe UI Semibold WestEuropean","Segoe UI Semibold","Segoe UI",Tahoma,Arial,sans-serif;font-size:'},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";letter-spacing:0;color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:";opacity:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default}[dir=ltr] .od-FilterSelect-titleForTaxonomy{left:1068px}[dir=rtl] .od-FilterSelect-titleForTaxonomy{right:1068px}[dir=ltr] .od-FilterSelect-titleForTaxonomy{padding-left:32px}[dir=rtl] .od-FilterSelect-titleForTaxonomy{padding-right:32px}.od-FilterSelect-switchview-dropdown{height:28px;width:261px;margin-bottom:20px}[dir=ltr] .od-FilterSelect-switchview-dropdown{padding-left:40px}[dir=rtl] .od-FilterSelect-switchview-dropdown{padding-right:40px}[dir=ltr] .od-FilterSelect-TreeSelector{padding-left:40px}[dir=rtl] .od-FilterSelect-TreeSelector{padding-right:40px}.od-FilterSelect-stickyFooter{position:absolute;bottom:0}.od-FilterSelect-panel{position:absolute;top:0;height:100%;width:100%;overflow:hidden}[dir=ltr] .od-FilterSelect-panel{left:0}[dir=rtl] .od-FilterSelect-panel{right:0}.od-FilterSelect-panel .od-FilterSelect-region{padding-top:70px}.od-FilterSelect-panel .od-SwitchView-dropdown-bottom-line{border:0;border-top:1px solid;width:540px;margin-top:0;color:"},{theme:"neutralQuaternary",defaultValue:"#d2d0ce"},{rawString:"}[dir=ltr] .od-FilterSelect-panel .od-SwitchView-dropdown-bottom-line{padding-left:40px}[dir=rtl] .od-FilterSelect-panel .od-SwitchView-dropdown-bottom-line{padding-right:40px}.od-FilterSelect-panel .od-SwitchView-contextualMenu-bottom-line{border:0;border-top:1px solid;width:540px;margin-top:16px;color:"},{theme:"neutralQuaternary",defaultValue:"#d2d0ce"},{rawString:"}[dir=ltr] .od-FilterSelect-panel .od-SwitchView-contextualMenu-bottom-line{padding-left:40px}[dir=rtl] .od-FilterSelect-panel .od-SwitchView-contextualMenu-bottom-line{padding-right:40px}.od-FilterSelect-panel .od-FilterSelect-scrollRegion{overflow-y:auto;overflow-x:hidden}.od-FilterSelect-panel .od-FilterSelect-filterPicker{margin-bottom:8px;margin-right:38px;margin-top:8px;width:261px}[dir=ltr] .od-FilterSelect-panel .od-FilterSelect-filterPicker{padding-left:40px}[dir=rtl] .od-FilterSelect-panel .od-FilterSelect-filterPicker{padding-right:40px}.od-FilterSelect-panel .od-FilterSelect-filterPickerForTaxonomy{margin-bottom:8px;margin-right:38px;margin-top:8px;width:232px;height:32px}[dir=ltr] .od-FilterSelect-panel .od-FilterSelect-filterPickerForTaxonomy{padding-left:32px}[dir=rtl] .od-FilterSelect-panel .od-FilterSelect-filterPickerForTaxonomy{padding-right:32px}.od-FilterSelect-panel .od-FilterSelect-peoplePicker{margin-bottom:12px;margin-right:38px;margin-left:38px;margin-top:8px}.od-FilterSelect-panel .od-FilterSelect-ruledLine{border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.od-FilterSelect-panel .od-FilterSelect-buttons{padding:11px 40px 20px;display:flex}.od-FilterSelect-panel .od-FilterSelect-buttons.hasRuledLine{padding:20px 40px}.od-FilterSelect-panel .od-FilterSelect-filterSection{margin-bottom:0;padding:0 40px}.od-FilterSelect-panel .FiltersPane-sectionContent{margin-top:12px;font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:"}[dir=ltr] .od-FilterSelect-panel .FilterSelect-buttonContainer-far{padding-left:8px}[dir=rtl] .od-FilterSelect-panel .FilterSelect-buttonContainer-far{padding-right:8px}.od-FilterSelect-panel .od-FilterSelect-sideblocks{display:inline-flex;margin-top:32px}.od-FilterSelect-panel .od-FilterSelect-contextMenu{margin-top:6px}.od-FilterSelect-panel .ms-screenReaderOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var O=n(2331),w=n(2334),E=n(2784),A=n(2695),L={root:{left:197}},k={root:{left:495}},M={root:{float:"right"}},P={root:{minWidth:146,width:146,borderRadius:2}},T={root:{marginTop:180}},U=n(3563),F=n(2699),H=n("fui.core_870"),R=n(84),N=_.ydh,B="SmartFiltersSeeAllPanel",j="Highlight",V="unHighlight",z="/_api/v2.1/termStore/sets/",G="/getLegacyChildren",K="/terms/",W=g.OO("{0}.{1}.Click","ApplyButtonForSelectAllChildrenEnabledTree",B),q=function(e){function t(t){var n,r=e.call(this,t)||this;r.getIsViewMagnified=function(){return!!(window.matchMedia&&window.matchMedia("(max-width: 640px)")&&window.matchMedia("(max-width: 640px)").matches)},r._handleBrowserSize=function(e){r.setState({isViewMagnified:e.matches}),r.moveParentPanel(e.matches)},r._onRenderLoaderWhileSelectingAllChildren=function(e,t,n){return i.createElement(h.tu6,{label:e,labelPosition:t||"bottom",size:n||H.CTe.large,styles:T})},r._sizeScrollRegion=function(){if(r._scrollRegion){var e=window.innerHeight,t=r._scrollRegion.getBoundingClientRect(),n=r._stickyFooter.offsetHeight,a=e-t.top-n,i=!1;a=r.state.isViewMagnified?a+80:a,r._scrollRegion.style.maxHeight=a.toString()+"px",t.bottom-t.top>a&&(i=!0),r.state.showBottomLine!==i&&r.setState({showBottomLine:i})}},r._onSelectedPersonasChange=function(e){var t=e&&e.length>0&&e[e.length-1];if(t){var n={key:t.name,checked:!0,values:[t.name],label:t.name,iconUrl:t.image};r._onSelectedSuggestionChange([n])}},r._onSelectedSuggestionChange=function(e){var t=r.props.filterSectionInfo,n=e&&e.length>0&&e[e.length-1];n&&r._onSelectedSuggestionsChange(t.fieldName,t.fieldType,n)},r._onRenderNoResultFound=function(){return i.createElement("div",{className:"od-CheckboxFilterSection-Suggestions-none"},(0,g.OO)(r.props.strings.checkboxFilterSection.NoResultFound,r._currentText))},r._onRenderSuggestionsItem=function(e){return i.createElement("div",{className:"od-FilterSelect-suggestionText"},r.state.filterSectionInfo&&r.state.filterSectionInfo.type===(0,S.c)("hierarchy")?e.label.replace(/:/g," > "):e.label)},r._onResolveSuggestions=function(e,t,n,a){var i=r.props.getFilterSuggestions;return i?i(e,t,n):Promise.resolve([])},r._onResolveSuggestionsForAllColumns=function(e,t){r._currentText=e;var n=r.props,a=n.getFilterSuggestions,i=n.filterSectionInfo,o=n.dependencies;return r._isFilteringMMDColumnsSuggestionsFromClientEnabled&&i.type===(0,S.c)("hierarchy")||r._isFilteringSuggestionsFromClientEnabledForCalendarView&&o.currentView&&o.currentView.viewType===R.c.modernCalendar?r._getFilterSuggestionsFromSectionInfo(i,e):a?a(i.fieldName,i.fieldType,e):Promise.resolve([])},r._onSelectedSuggestionsChange=function(e,t,n){var a=r.state.filterSectionInfo;if(n){var i,o=a,s=-1;if(o.fieldName===e){for(var c=0;c<o.options.length;c++){var d=o.options[c];if(n.key===d.key||n.values[0]===d.values[0]||r._isUsedTermsInFilterPaneFlightOn&&n.label===d.label){i=d,d.checked=!0,s=c;break}}i||(n.checked=!0,o.options.push(n),s=o.options.length-1),r.setState({filterSectionInfo:o},function(){r._checkboxFilterSection.resetFocus(s)})}}},r._onChange=function(e,t,n){for(var a=r.state.filterSectionInfo,i=0,o=a.options;i<o.length;i++){for(var s=o[i],c=!1,d=0,l=s.values;d<l.length;d++){var u=l[d];if(n.indexOf(u)>=0){c=!0;break}}s.checked=c}r.setState({filterSectionInfo:a})},r._onApplyButtonClick=function(){return(0,a.Zd)(r,void 0,void 0,function(){var e,t,n,i,r,o=this;return(0,a.qr)(this,function(a){switch(a.label){case 0:return e=this.props,t=e.onComplete,n=e.dependencies,i=this.state.filterSectionInfo,this._isMMDFilterPaneSeeMoreFlightOn&&!1===i.showSeeAllLink&&(i.showSeeAllLink=!0),this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&this.state.viewState===Q.TREE_VIEW?[4,this._onFetchWssIds()]:[3,2];case 1:return a.sent(),this._logEngagementData(W),this._updateFilterSectionInfoWithNewOptions(),[3,3];case 2:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&(i.useLookUpForFiltering=!1),i.type===(0,S.c)("hierarchy")&&this._isSyncChangesForFullPathMMDColumnEnabled&&(i.options.forEach(function(e){e=o._restoreFilterOption(e)}),this.setState({filterSectionInfo:i})),a.label=3;case 3:return t&&t(i),n&&n.eventScope&&v.b.raise(n.eventScope,S.b.applyPanel,i),r=g.OO("ApplyButton.{0}.Click",B),p.Engagement.logData({name:r}),[2]}})})},r._onClearAllClick=function(){var e=r.state,t=e.filterSectionInfo,n=e.nodesData;if(r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&t.type===(0,S.c)("hierarchy")&&r.state.viewState===Q.TREE_VIEW)Object.keys(n).forEach(function(e){n[e].isSelectAllChecked=!1}),r.setState({selectedNodes:{},highlightedNodesMap:{},orphanHighlightedNodes:{},nodesData:n,nodeSelectInclusionMap:{},nodeWssIdsMap:{},nodeDescendantsWssIdsMap:{},nodeFilteringInclusion:{}});else{for(var a=0,i=t.options;a<i.length;a++){var o=i[a];if(o.checked=!1,t.type===(0,S.c)("hierarchy")){var s={name:o.key};r.updateHighlightedNodes(s,V)}}r.setState({selectedNodes:{},filterSectionInfo:t})}var c=g.OO("ClearAllButton.{0}.Click",B);p.Engagement.logData({name:c})},r._updateFilterSectionInfoWithNewOptions=function(){var e=[],t=r.state,n=t.nodesData,i=t.selectedNodes,o=t.nodeWssIdsMap,s=t.nodeDescendantsWssIdsMap,c=t.nodeFilteringInclusion,d=t.filterSectionInfo;Object.keys(n).forEach(function(t){var d=n[t];if(!d.isSelectAllChildrenNode){var l=[],u=[],f=d.name;if(o[t]&&(u=o[t]),s[t]&&(u=(0,a.AE)((0,a.AE)([],u,!0),s[t],!0)),u.forEach(function(e){c[e]&&c[e]>0&&l.push(e.toString())}),r._isFullPathShownForTaxonomyItems())for(var p=d.parent;p&&p.parent;)f=p.name+":"+f,p=p.parent;var m={key:d.name,label:f,checked:!!i[r._useIdHashForKey()?d.key:d.name],values:l,isSelectAllChecked:d.isSelectAllChecked&&!!s[t],wssIds:l};m.checked&&0===m.wssIds.length&&(m.wssIds=["0"]),e.push(m)}}),d.options=e,d.useLookUpForFiltering=!0,r.setState({filterSectionInfo:d})},r._onFetchWssIds=function(){return(0,a.Zd)(r,void 0,void 0,function(){return(0,a.qr)(this,function(e){switch(e.label){case 0:return this.setState({shouldShowLoader:!0,spinnerLabel:this.props.strings.filterSelect.ApplyButtonClickSpinnerLabel}),[4,this._fetchWssIdsForSelectedNodes()];case 1:return e.sent(),this.setState({shouldShowLoader:!1}),[2]}})})},r._getFilterSuggestionsFromSectionInfo=function(e,t){var n=[];return e.options.forEach(function(e){var a;(null===(a=null==e?void 0:e.key)||void 0===a?void 0:a.toLocaleLowerCase().includes(t.toLocaleLowerCase()))&&n.push(e)}),Promise.resolve(n)},r._updateNodeSelectInclusionMap=function(e,t,n){var a=r.state.nodeSelectInclusionMap,i={id:e.id,isSelectAllChildrenNodeSelected:t},o=JSON.stringify(i);a[o]?(a[o]+=n,0===a[o]&&delete a[o]):a[o]=n,t&&r._removeDescendantsFromNodeSelectInclusionMap(e.id,a),r.setState({nodeSelectInclusionMap:a})},r._removeDescendantsFromNodeSelectInclusionMap=function(e,t){var n=r.state.nodeChildrenMap;n&&n[e]&&n[e].forEach(function(e){var n={id:e,isSelectAllChildrenNodeSelected:!0},a={id:e,isSelectAllChildrenNodeSelected:!1};t[JSON.stringify(n)]&&delete t[JSON.stringify(n)],t[JSON.stringify(a)]&&delete t[JSON.stringify(a)],r._removeDescendantsFromNodeSelectInclusionMap(e,t)})},r._fetchWssIdsForSelectedNodes=function(){return(0,a.Zd)(r,void 0,void 0,function(){var e,t,n,i,r,o=this;return(0,a.qr)(this,function(s){switch(s.label){case 0:return e=this.state.nodeSelectInclusionMap,t={value:[]},n=this.state.nodeWssIdsMap,i=this.state.nodeDescendantsWssIdsMap,Object.keys(e).forEach(function(e){var n=JSON.parse(e),a={termId:n.id,includeDescendants:n.isSelectAllChildrenNodeSelected};t.value.push(a)}),r=this.state.currentColumn.termSetId,[4,this._termStoreDataSource.fetchTermsWssIds(z+r+"/fetchTermsWssIds",t).then(function(e){return JSON.parse(e)}).then(function(e){(0,a.AE)([],e.value,!0).forEach(function(e){var t=e.termIdToWssIds,a=t.termId;n[a]=t.wssIds,i[a]||(i[a]=[]),e.descendants.forEach(function(e){var t;(t=i[a]).push.apply(t,e.wssIds),n[e.termId]=e.wssIds,o._identifyWssIdsForFiltering(a,e.wssIds,!0)}),0===e.descendants.length&&o._identifyWssIdsForFiltering(a,t.wssIds,!1)}),o.setState({nodeWssIdsMap:n,nodeDescendantsWssIdsMap:i})})];case 1:return s.sent(),[2]}})})},r._setTermStoreDefaultLanguage=function(e){r.setState({termStoreDefaultLanguage:e})},r._loadSubtreeUnderNode=function(e){return(0,a.Zd)(r,void 0,void 0,function(){var t,n,i,r,o,s,c,d,l,u,f,p=this;return(0,a.qr)(this,function(a){switch(a.label){case 0:return t=this.state,n=t.nodesData,i=t.selectedNodes,r=t.nodeParents,o=t.deactivatedNodesMap,s=e.selectAllChildrenNode.siblings,c=this.state.currentColumn.termSetId,e.isSelectAllChecked=!0,n[e.id].isSelectAllChecked=!0,i[e.selectAllChildrenNode.id]=!0,e.nextLink?(d=z+c+K+e.id+G,[4,this._termStoreDataSource.getNodeChildren(d)]):[3,2];case 1:l=a.sent(),(u=l.children)&&u.forEach(function(t){var a,i;if(!n[t.id]){var r=p.convertToTreeNode(t,E.b.TERM,null===(i=null===(a=p.props.dependencies)||void 0===a?void 0:a.pageContext)||void 0===i?void 0:i.currentUICultureName,p.state.termStoreDefaultLanguage);p._addSiblings(r,s,e)}}),a.label=2;case 2:return f=e.selectAllChildrenNode,[4,this.processSiblingsForSelection(f,i,n,r,c,o)];case 3:return a.sent(),this.setState({nodesData:n,selectedNodes:i,deactivatedNodesMap:o}),[2]}})})},r._onSelectAllChildren=function(e){return(0,a.Zd)(r,void 0,void 0,function(){return(0,a.qr)(this,function(t){switch(t.label){case 0:return this.setState({shouldShowLoader:!0,spinnerLabel:this.props.strings.filterSelect.SelectAllChildrenSpinnerLabel}),[4,this._loadSubtreeUnderNode(e)];case 1:return t.sent(),this.setState({shouldShowLoader:!1}),[2]}})})},r._addSiblings=function(e,t,n){if(e)if(t&&0!==t.length){var a=!1;t.forEach(function(t){t.id!==e.id||(a=!0)}),a||(e.parent=n,t.push(e))}else t=[e]},r._identifyWssIdsForFiltering=function(e,t,n){var a=r.state.nodeFilteringInclusion,i=r.state.nodeSelectInclusionMap,o=JSON.stringify({id:e,isSelectAllChildrenNodeSelected:n});if(i[o]){var s=i[o];t.forEach(function(e){e>0&&(a[e]?(a[e]+=s,0===a[e]&&delete a[e]):a[e]=s)})}r.setState({nodeFilteringInclusion:a})},r._onDeSelectAllChildren=function(e,t){var n=r.state,a=n.selectedNodes,i=n.nodesData,o=n.deactivatedNodesMap;o[e.id]&&delete o[e.id],delete a[e.id],r.setState({selectedNodes:a}),e.siblings.forEach(function(n){o[n.id]&&delete o[n.id],r._onDeSelectIndividualNode(n,t),n.isLeaf||r._onDeSelectAllChildren(n.selectAllChildrenNode),n.isSelectAllChecked=!1,i[n.id].isSelectAllChecked=!1,e.parent.isSelectAllChecked=!1,i[e.parent.id].isSelectAllChecked=!1}),r.setState({nodesData:i,deactivatedNodesMap:o})},r._onSelectIndividualNode=function(e,t){void 0===t&&(t=[]);var n=r.state.selectedNodes;n[r._useIdHashForKey()?e.key:e.name]=!0,r.setState({selectedNodes:n}),r.updateHighlightedNodes(e,j)},r._onDeSelectIndividualNode=function(e,t){void 0===t&&(t=[]);var n=r.state,a=n.selectedNodes,i=n.nodeParents;delete a[r._useIdHashForKey()?e.key:e.name],r.setState({selectedNodes:a}),i[r._useIdHashForKey()?e.key:e.name]&&r._isNodeAlreadyHighlighted(e)&&r.updateHighlightedNodes(e,V)},r._onSelect=function(e,t){var n;void 0===t&&(t=[]);var i={};r.state.filterSectionInfo.options.forEach(function(t){(r._isSyncChangesForFullPathMMDColumnEnabled?r._getLabelForFullPathHierarchyColumnOptions(t):t.label)===e.name&&(t.checked=!0)}),(i=r.state.selectedNodes)[e.name]=!0;var o=[],s=!1;Object.keys(r.state.selectedNodes).forEach(function(e){var t=void 0;r._isSyncChangesForFullPathMMDColumnEnabled?r.state.filterSectionInfo.options.forEach(function(n){var a=r._getLabelForFullPathHierarchyColumnOptions(n);s=!!s||a!==n.key,t=a===e?n:t}):t=r.state.filterSectionInfo.options.find(function(t){return t.key===e});var n=e;if(void 0===t){r._isSyncChangesForFullPathMMDColumnEnabled&&s&&(n=(0,a.AE)((0,a.AE)([],r.state.nodeParents[e],!0),[e],!1).splice(1).join(" > "));var i={checked:!0,key:r._isSyncChangesForFullPathMMDColumnEnabled?n:e,label:r._isSyncChangesForFullPathMMDColumnEnabled?n:e,values:r._isSyncChangesForFullPathMMDColumnEnabled?[n]:[e]};o.push(i)}});var c=r.state.filterSectionInfo;o.length>0&&(s&&o.forEach(function(e){return r._processOptionWidth(e,r.state.sectionWidthForRenderingLabels)}),(n=c.options).push.apply(n,o)),r.setState({selectedNodes:i,filterSectionInfo:c}),r._doesNodeNotHaveParents(t,e)&&r.setState(function(t){var n=t.orphanHighlightedNodes;return n[e.name]=!0,{orphanHighlightedNodes:n}}),r.updateHighlightedNodes(e,j)},r._onDeSelect=function(e,t){void 0===t&&(t=[]);var n={},a=r.state.filterSectionInfo;a.options.forEach(function(t){(r._isSyncChangesForFullPathMMDColumnEnabled?r._getLabelForFullPathHierarchyColumnOptions(t):t.key)===e.name&&(t.checked=!1)}),r.setState(function(t){return delete(n=t.selectedNodes)[e.name],{selectedNodes:n,filtersectionInfo:a}}),void 0!==r.state.orphanHighlightedNodes[e.id]&&r.setState(function(t){var n=t.orphanHighlightedNodes;return delete n[e.name],{orphanHighlightedNodes:n}}),r.updateHighlightedNodes(e,V)},r.processSiblingsForSelection=function(e,t,n,i,o,s){return(0,a.Zd)(r,void 0,void 0,function(){var r,c,d,l,u,f=this;return(0,a.qr)(this,function(p){switch(p.label){case 0:r=function(e){var r,d,l,u;return(0,a.qr)(this,function(p){switch(p.label){case 0:return e.isSelectAllChecked=!0,t[c._useIdHashForKey()?e.key:e.name]=!0,s[e.id]=!0,n[e.id]=e,i[c._useIdHashForKey()?e.key:e.name]&&!c._isNodeAlreadyHighlighted(e)&&c.updateHighlightedNodes(e,j),e.isLeaf?[3,3]:((r=c._getSelectAllCheckbox(e)).parent=e,r.siblings=[],s[r.id]=!0,d=z+o+K+e.id+G,[4,c._termStoreDataSource.getNodeChildren(d)]);case 1:return l=p.sent(),(u=l.children)?(u.forEach(function(t){return(0,a.Zd)(f,void 0,void 0,function(){var n,i,o;return(0,a.qr)(this,function(a){return n=this.convertToTreeNode(t,E.b.TERM,null===(o=null===(i=this.props.dependencies)||void 0===i?void 0:i.pageContext)||void 0===o?void 0:o.currentUICultureName,this.state.termStoreDefaultLanguage),r.siblings.push(n),n.parent=e,[2]})})}),[4,c._loadSubtreeUnderNode(e)]):[3,3];case 2:p.sent(),p.label=3;case 3:return[2]}})},c=this,d=0,l=e.siblings,p.label=1;case 1:return d<l.length?(u=l[d],[5,r(u)]):[3,4];case 2:p.sent(),p.label=3;case 3:return d++,[3,1];case 4:return[2]}})})},r._isNodeAlreadyHighlighted=function(e){return!!r.state.highlightedNodesMap[r._useIdHashForKey()?JSON.stringify({id:e.key}):JSON.stringify({name:e.name})]},r._onViewChangeClickForTaxonomyColumn=function(e){if(r.state.viewState===Q.LIST_VIEW)if(r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn)r.setState({viewState:Q.TREE_VIEW});else{var t=r.state.selectedNodes;r.state.filterSectionInfo.options.forEach(function(e){var n=r._isSyncChangesForFullPathMMDColumnEnabled?r._getLabelForFullPathHierarchyColumnOptions(e):e.key;if(e.checked&&void 0===t[n]){t[n]=!0;var a={name:n};void 0===r.state.nodeParents[n]?r.setState(function(e){var t=e.orphanHighlightedNodes;return t[a.name]=!0,{orphanHighlightedNodes:t}}):r.updateHighlightedNodes(a,j)}else if(!e.checked&&void 0!==t[n]){delete t[n];var i={name:n};void 0!==r.state.orphanHighlightedNodes[n]&&r.setState(function(e){var t=e.orphanHighlightedNodes;return delete t[n],{orphanHighlightedNodes:t}}),r.updateHighlightedNodes(i,V)}}),r.setState({selectedNodes:t,viewState:Q.TREE_VIEW})}else r.setState({viewState:Q.LIST_VIEW});p.Engagement.logData({name:g.OO("SeeAll.SmartFiltersPane.TaxonomySwitchViewClick.{0}",e)})},r._contextMenuChange=function(e,t){t.key!==r.state.viewState&&r._onViewChangeClickForTaxonomyColumn(t.key)},r._addParentToChildren=function(e,t){var n=r.state.nodeParents,i=r.state.orphanHighlightedNodes,o=void 0===n[r._useIdHashForKey()?t.key:t.name]?[]:n[r._useIdHashForKey()?t.key:t.name],s=[],c=r.state.selectedNodes,d=r.state.nodeChildrenMap,l=r.state.nodesData;r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&r._syncNodeWithExistingData(t),e.forEach(function(e){if(r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn){e.parent=t,r._syncNodeWithExistingData(e),l[e.id]||(l[e.id]=e);var u=d?d[t.id]:void 0;d[t.id]=u?(0,a.AE)((0,a.AE)([],u,!0),[e.id],!1):[e.id],t.isSelectAllChecked&&(r._useIdHashForKey()?c[e.isSelectAllChildrenNode?e.id:e.key]=!0:c[e.isSelectAllChildrenNode?e.id:e.name]=!0,e.isSelectAllChildrenNode||(e.isSelectAllChecked=!0,i[r._useIdHashForKey()?e.key:e.name]=!0))}r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&e.isSelectAllChildrenNode?n[e.id]=(0,a.AE)((0,a.AE)([],o,!0),[r._useIdHashForKey()?t.key:t.name],!1):void 0===n[r._useIdHashForKey()?e.key:e.name]?n[r._useIdHashForKey()?e.key:e.name]=(0,a.AE)((0,a.AE)([],o,!0),[r._useIdHashForKey()?t.key:t.name],!1):r._isSyncChangesForFullPathMMDColumnEnabled&&n[r._useIdHashForKey()?e.key:e.name][n[r._useIdHashForKey()?e.key:e.name].length-1]===(r._useIdHashForKey()?t.key:t.name)||(r._useIdHashForKey()?(n[e.key]=(0,a.AE)((0,a.AE)((0,a.AE)([],n[e.key],!0),o,!0),[t.key],!1),!0!==i[e.key]&&!0===c[e.key]&&(s=(0,a.AE)((0,a.AE)((0,a.AE)([],s,!0),[t.key],!1),o,!0))):(n[e.name]=(0,a.AE)((0,a.AE)((0,a.AE)([],n[e.name],!0),o,!0),[t.name],!1),!0!==i[e.name]&&!0===c[e.name]&&(s=(0,a.AE)((0,a.AE)((0,a.AE)([],s,!0),[t.name],!1),o,!0)))),r._useIdHashForKey()?!0===i[e.key]&&(s=(0,a.AE)((0,a.AE)((0,a.AE)([],s,!0),n[e.key],!0),[e.key],!1),delete i[e.key]):!0===i[e.name]&&(s=(0,a.AE)((0,a.AE)((0,a.AE)([],s,!0),n[e.name],!0),[e.name],!1),delete i[e.name])}),r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?r.setState({selectedNodes:c,nodeChildrenMap:d,nodeParents:n,orphanHighlightedNodes:i,nodesData:l}):r.setState({nodeParents:n,orphanHighlightedNodes:i}),s.length>0&&r.updateHighlight(j,s)},r._syncNodeWithExistingData=function(e){if(e&&!e.isSelectAllChildrenNode){var t=r.state.nodesData;t[e.id]&&(e.selectAllChildrenNode=t[e.id].selectAllChildrenNode,e.canSelectAllBeAChild=t[e.id].canSelectAllBeAChild,e.isSelectAllChecked=t[e.id].isSelectAllChecked)}},r._getSelectAllCheckbox=function(e){if(e.isSelectAllChildrenNode)return null;if(e.selectAllChildrenNode)return e.selectAllChildrenNode;var t={name:r.props.strings.filterSelect.SelectAllNodeName,key:e.id+"-"+r.props.strings.filterSelect.SelectAllNodeName,id:e.id+"-"+r.props.strings.filterSelect.SelectAllNodeName,type:E.b.TERM,isSelectAllChildrenNode:!0,canSelectAllBeAChild:!1,doesNodeBelongToSelectAllChildrenEnabledTree:!0};return e.selectAllChildrenNode=t,t},r.convertToTreeNode=function(e,t,n,a){void 0===n&&(n="en-US"),void 0===a&&(a="en-US");var i=(0,E.c)(e,t,n,a);return{key:r._useIdHashForKey()?e.id:i,id:e.id,type:t,name:i,isDisabled:void 0!==e.isAvailableForTagging&&!e.isAvailableForTagging,isLeaf:void 0!==e.childrenCount&&0===e.childrenCount,canSelectAllBeAChild:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?t===E.b.TERM:void 0,doesNodeBelongToSelectAllChildrenEnabledTree:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn}},r._doesNodeNotHaveParents=function(e,t){return 0===e.length&&void 0===r.state.nodeParents[r._useIdHashForKey()?t.key:t.name]},r._manageLongTaxonomyLabels=function(e){e=e||0;var t=r.state.filterSectionInfo,n=t.options;t.type===(0,S.c)("hierarchy")&&(n.forEach(function(t){r._processOptionWidth(t,e)}),r.setState({filterSectionInfo:t,sectionWidthForRenderingLabels:e}))},r._processOptionWidth=function(e,t){var n=r._checkLabelWidthWithRespectToWidthLimit(e,t);n>0&&(e.label=e.label.slice(0,4)+"..."+e.label.slice(4),e.label=r._createStringWithoutOverFlow(e,n))},r._createStringWithoutOverFlow=function(e,t){for(var n=0,a=7;n<t&&a<=e.label.length;){a++;var i=document.createElement("span");i.append(document.createTextNode(e.label.slice(7,a))),i.style.display="inline-block",document.body.append(i),n=i.offsetWidth,i.remove()}return e.label.slice(0,7)+e.label.slice(a)},r._getThemeColors=function(){return(0,U.c)().default_Office.theme},r._getLabelForFullPathHierarchyColumnOptions=function(e){var t=e.label.lastIndexOf(">");return-1===t?e.label:e.label.slice(t+2)},r._isFullPathShownForTaxonomyItems=function(){for(var e=!1,t=0,n=r.state.filterSectionInfo.options;t<n.length;t++)if(-1!==n[t].label.indexOf(">")){e=!0;break}return e},r._useIdHashForKey=function(){return r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&r._isNodeKeyUsingId},r._logEngagementData=function(e){p.Engagement.logData({name:e})},r._currentText="";var o=t.columnSchema,s=t.allowRenderHierachySection;if(r._termStoreDataSource=r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?new F.a(t.dependencies.pageContext,r._isAuthTokenFallbackEnabledForAcquire?t.dependencies.getOAuthToken:void 0):void 0,!t.filterSectionInfo&&o){var c=t.dependencies.dataSource,d=o.internalName||o.key,l=t.dependencies.currentView,u=l&&l.id,f=void 0;f=x.i(o.fieldType,d)===(0,S.c)("hierarchy")&&t.getTaxonomyFilterSectionInfo&&s?t.getTaxonomyFilterSectionInfo(o).then(function(e){var n=t.dependencies.currentView,a=n?I.getFilter(n,d):void 0;if(a){var i={};i[o.internalName]=o,x.r(t.dependencies,void 0,[e],[a],i,{})}return e}):c.getFilterData(d,t.viewParamsString,u,o.fieldType).then(function(e){return r._getSectionInfoFromFilterDataResponse(e)}),r.state={isLoading:!0,showBottomLine:!1,filterSectionInfo:t.filterSectionInfo},f.then(function(e){r.setState({isLoading:!1,showBottomLine:!1,filterSectionInfo:e})})}else r.state={filterSectionInfo:t.filterSectionInfo,isLoading:!1,showBottomLine:!1,highlightedNodesMap:{},selectedNodes:{},currentColumn:t.columnSchema,nodeParents:{},viewState:Q.LIST_VIEW,orphanHighlightedNodes:{},sectionWidthForRenderingLabels:0,isViewMagnified:r.getIsViewMagnified(),nodeSelectInclusionMap:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?{}:void 0,nodeChildrenMap:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?{}:void 0,nodeWssIdsMap:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?{}:void 0,nodeDescendantsWssIdsMap:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?{}:void 0,nodeFilteringInclusion:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?{}:void 0,nodesData:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?{}:void 0,shouldShowLoader:!r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&void 0,spinnerLabel:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?"":void 0,deactivatedNodesMap:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?{}:void 0,termStoreDefaultLanguage:r._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?"":"en-US"};return window.matchMedia&&(r.moveParentPanel(r.getIsViewMagnified()),null===(n=window.matchMedia("(max-width: 640px)"))||void 0===n||n.addEventListener("change",r._handleBrowserSize)),r}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){if(this._events.on(window,"resize",this._sizeScrollRegion),this._sizeScrollRegion(),this.state.filterSectionInfo.type===(0,S.c)("hierarchy")&&this.state.viewState===Q.LIST_VIEW){var e=this._checkboxFilterSection&&this._checkboxFilterSection.sectionContent?this._checkboxFilterSection.sectionContent.offsetWidth:this.state.sectionWidthForRenderingLabels;this._manageLongTaxonomyLabels(e)}var t=this.props.onRenderComplete;t&&this._async.setInterval(function(){t()},0)},t.prototype.componentDidUpdate=function(e,t){(t.isLoading&&!this.state.isLoading||t.showBottomLine!==this.state.showBottomLine)&&this._sizeScrollRegion()},t.prototype.render=function(){var e=this.props.strings,t=this.state,n=t.filterSectionInfo,a=t.isLoading,r=t.showBottomLine,o=t.selectedNodes,s=t.nodesData,c=0;if(this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&n.type===(0,S.c)("hierarchy")&&this.state.viewState===Q.TREE_VIEW)c=this._countSelectedOptions(o,s,c);else if(!a&&n.options&&n.options.length)for(var d=0,l=n.options;d<l.length;d++)l[d].checked&&c++;var u,f=this.state.viewState===Q.LIST_VIEW&&n&&(n.fieldType===b.a.Text||n.fieldType===b.a.User||n.fieldType===b.a.Title||n.type===(0,S.c)("hierarchy")),p={shouldFocusOnMount:!0,items:[{key:Q.LIST_VIEW,iconProps:{iconName:"viewList"},text:e.filterSelect.ViewStateDropDownValueForListView,onClick:this._contextMenuChange,checked:this.state.viewState===Q.LIST_VIEW,canCheck:!0,itemProps:{styles:{root:{backgroundColor:this._isFixForThemeImpactOnDropDownEnabled?void 0:this.state.viewState===Q.LIST_VIEW?this._getThemeColors().themeLighter:"white",paddingLeft:12}}}},{key:Q.TREE_VIEW,iconProps:{iconName:"viewListTree"},text:e.filterSelect.ViewStateDropDownValueForTreeView,onClick:this._contextMenuChange,checked:this.state.viewState===Q.TREE_VIEW,canCheck:!0,itemProps:{styles:{root:{backgroundColor:this._isFixForThemeImpactOnDropDownEnabled?void 0:this.state.viewState===Q.LIST_VIEW?this._getThemeColors().themeLighter:"white",paddingLeft:12}}}}],styles:P,directionalHint:_.aZJ.bottomRightEdge},v=this.props.columnSchema&&this.props.columnSchema.id===D.a,y=this.state.filterSectionInfo.type===(0,S.c)("hierarchy")&&!(this._isListAndTreeViewIconDisabledForImageTagField&&v),I=i.createElement("div",{className:"od-FilterSelect-stickyFooter-wcag",ref:this._resolveRef("_stickyFooter")},r&&i.createElement("div",{className:"od-FilterSelect-ruledLine",role:"separator","aria-hidden":"true"}),i.createElement("div",{className:(0,m.N0)("od-FilterSelect-buttons",{hasRuledLine:r})},i.createElement("span",{className:"FilterSelect-buttonContainer"},i.createElement(h.rfU,{className:"FilterSelect-button","data-automationid":"FilterSelect-Apply",onClick:this._onApplyButtonClick,ariaDescription:e.filterSelect.ApplyFilterButtonAriaDescription,text:e.filterSelect.ApplyFilterButtonLabel})),i.createElement("span",{className:"FilterSelect-buttonContainer-far"},i.createElement(h.B0k,{className:"FilterSelect-button","data-automationid":"FilterSelect-ClearAll",onClick:this._onClearAllClick,ariaDescription:g.OO(e.filterSelect.ClearAllButtonAriaDescription,n.title),text:e.filterSelect.ClearAllButtonLabel}))));u=this.state.isViewMagnified?M:this.state.viewState===Q.LIST_VIEW?L:k;var x=i.createElement("div",{className:"od-FilterSelect-sideblocks-wcag"},f&&this._renderFilterPicker(n),i.createElement("div",{className:"od-FilterSelect-contextMenu-wcag"},i.createElement(h.kwe,{text:this.state.viewState===Q.LIST_VIEW?e.filterSelect.ViewStateDropDownValueForListView:e.filterSelect.ViewStateDropDownValueForTreeView,iconProps:{iconName:this.state.viewState===Q.LIST_VIEW?"viewList":"viewListTree"},menuProps:p,styles:u,ariaLabel:this.state.viewState===Q.TREE_VIEW?e.filterSelect.ViewStateDropDownValueForTreeView:e.filterSelect.ViewStateDropDownValueForListView})));return!a&&i.createElement("div",{className:"od-FilterSelect-panel","data-automationid":"FilterSelect"},i.createElement("div",{className:"od-FilterSelect-region-wcag"},i.createElement("h1",{className:this.state.filterSectionInfo.type===(0,S.c)("hierarchy")?"od-FilterSelect-titleForTaxonomy-wcag":"od-FilterSelect-title-wcag"},c?g.OO(e.filterSelect.FilterSelectPanelTitleWithNumber,n.title,c):g.OO(e.filterSelect.FilterSelectPanelTitle,n.title)),y&&!this.state.isViewMagnified&&x,this.state.filterSectionInfo.type===(0,S.c)("hierarchy")&&i.createElement("hr",{className:"od-SwitchView-contextualMenu-bottom-line"}),i.createElement("div",null,!(this.state.filterSectionInfo.type===(0,S.c)("hierarchy"))&&f&&this._renderFilterPicker(n)),i.createElement("div",{className:"od-FilterSelect-scrollRegion",ref:this._resolveRef("_scrollRegion")},y&&this.state.isViewMagnified&&x,this._renderSection(n),!!this.state.isViewMagnified&&!(this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&this.state.shouldShowLoader)&&I)),!this.state.isViewMagnified&&!(this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&this.state.shouldShowLoader)&&I)},t.prototype._countSelectedOptions=function(e,t,n){return this._useIdHashForKey()?Object.keys(e).forEach(function(e){t[e]&&!t[e].isSelectAllChildrenNode&&n++}):Object.keys(t).forEach(function(a){var i=t[a];!i.isSelectAllChildrenNode&&e[i.name]&&n++}),n},t.prototype.moveParentPanel=function(e){var t,n=null===(t=document.getElementsByClassName("od-Panel"))||void 0===t?void 0:t[0];n&&(n.style.top=e?"0px":"48px")},t.prototype._renderSection=function(e){var t,n=this.props,a=n.dependencies,r=n.strings;if(this.state.viewState!==Q.TREE_VIEW)return this._isLexicoGraphicalSortingForListViewItemsEnabled&&e.type===(0,S.c)("hierarchy")&&e.options.sort(function(e,t){return e.key===r.smartFilter.EmptyFilterOptionLabel?-1:t.key===r.smartFilter.EmptyFilterOptionLabel?1:e.key.localeCompare(t.key)}),i.createElement(C.a,{ariaLabel:g.OO(r.filterSelect.FilterSelectPanelTitle,e.title),ref:this._resolveRef("_checkboxFilterSection"),className:"od-FilterSelect-filterSection",key:e.fieldName,strings:r.checkboxFilterSection,sectionInfo:e,onChange:this._onChange,engagementSource:B,hideSectionHeader:!0,showFilterPicker:!1,onResolveSuggestions:this._onResolveSuggestions,onSelectedSuggestionChange:this._onSelectedSuggestionsChange,pageContext:a&&a.pageContext,source:(null===(t=this.state.filterSectionInfo)||void 0===t?void 0:t.type)===(0,S.c)("hierarchy")?"FilterSelectTaxonomy":"FilterSelect"});var o={termSetList:this.state.currentColumn?this.state.currentColumn.termSetId:null,anchorId:this.state.currentColumn?this.state.currentColumn.anchorId:A.a};return i.createElement("div",{className:"od-FilterSelect-TreeSelector"},i.createElement(E.a,{queryParams:o,pageContext:a&&a.pageContext,termLimit:0,selectedNodes:this.state.selectedNodes,highlightedNodesMap:this.state.highlightedNodesMap,onSelect:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this._onSelectIndividualNode:this._onSelect,onDeselect:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this._onDeSelectIndividualNode:this._onDeSelect,addParentToChildren:this._addParentToChildren,convertToTreeNode:this.convertToTreeNode,qosNamePrefix:"FilterPaneMMDTree",getOAuthToken:a&&a.getOAuthToken,onDeSelectAllChildren:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this._onDeSelectAllChildren:void 0,getSelectAllNode:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this._getSelectAllCheckbox:void 0,updateNodeSelectInclusionMap:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this._updateNodeSelectInclusionMap:void 0,onSelectAllChildren:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this._onSelectAllChildren:void 0,shouldShowLoaderWhileSelectingAllChildren:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this.state.shouldShowLoader:void 0,onRenderLoaderWhileSelectingAllChildren:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this._onRenderLoaderWhileSelectingAllChildren:void 0,engagementSource:B,labelUnderSpinnerForSelectAllTree:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this.state.spinnerLabel:void 0,deactivatedNodesMap:this.state.deactivatedNodesMap,setTermStoreDefaultLanguage:this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn?this._setTermStoreDefaultLanguage:void 0}))},t.prototype._renderFilterPicker=function(e){var t=this.props,n=t.dependencies,a=t.strings;return e.type===(0,S.c)("user")&&n&&n.pageContext?i.createElement(O.a,{className:"od-FilterSelect-peoplePicker",context:n&&n.pageContext,peoplePickerType:w.a.listBelow,onRenderItem:this._onRenderItem,onSelectedPersonasChange:this._onSelectedPersonasChange,inputProps:{placeholder:a.checkboxFilterSection.FilterPickerPlaceholder,"aria-label":g.OO(a.filterSelect.FilterSelectPanelTitle,e.title)},noResultsFoundText:a.checkboxFilterSection.NoResults}):i.createElement(N,{className:this.state.filterSectionInfo.type===(0,S.c)("hierarchy")?"od-FilterSelect-filterPickerForTaxonomy-wcag":"od-FilterSelect-filterPicker-wcag",onResolveSuggestions:this._onResolveSuggestionsForAllColumns,getTextFromItem:this.state.filterSectionInfo&&this.state.filterSectionInfo.type===(0,S.c)("hierarchy")?this._getTextFromItemForTaxonomyFullPath:this._getTextFromItem,onRenderItem:this._onRenderItem,onRenderSuggestionsItem:this._onRenderSuggestionsItem,pickerSuggestionsProps:{onRenderNoResultFound:this._onRenderNoResultFound},inputProps:{placeholder:a.checkboxFilterSection.FilterPickerPlaceholder,"aria-label":g.OO(a.filterSelect.FilterSelectPanelTitle,e.title)},onChange:this._onSelectedSuggestionChange})},t.prototype._getTextFromItem=function(e){return e.label},t.prototype._getTextFromItemForTaxonomyFullPath=function(e){return e.label.replace(/:/g," > ")},t.prototype._onRenderItem=function(){return null},t.prototype._getSectionInfoFromFilterDataResponse=function(e){for(var t,n=this.props,a=n.columnSchema,i=n.dependencies,r=n.strings,o=a.internalName||a.key,s=a.fieldType,c=i.currentView,d=y.a.getFilterData(e,o,a.isCalculated),l=a.isCalculated&&d&&d.length&&d[0].calculatedFieldFilterType,u=[],f=c?I.getFilter(c,o):void 0,p=f&&f.values,m={},_=0,h=d;_<h.length;_++){var g=h[_],v={getIconUrlFromExtension:i.getIconUrlFromExtension},D=x.d(v,r.smartFilter,s,g.display,g.value);if(p&&D.values.length>0){var C=D.values[0];p.indexOf(C)>-1&&(D.checked=!0)}m[D.key]||(u.push(D),m[D.key]={count:1,option:D})}if(s===b.a.DateTime)(t=x.g(o,a.id,s,a.name,m)).options=u;else{var O=x.i(s,o);O===(0,S.c)("hierarchy")&&(O=(0,S.c)("choice")),t={fieldName:o,fieldId:a.id,fieldType:s,type:x.i(s,o),serverFieldType:a.isCalculated&&l?l:a.serverFieldType,title:x.h(r.smartFilter,s,a.name),options:u}}return t},t.prototype.updateHighlightedNodes=function(e,t){var n=[];this.state.nodeParents[this._useIdHashForKey()?e.key:e.name]&&Object.assign(n,this.state.nodeParents[this._useIdHashForKey()?e.key:e.name]),n.push(this._useIdHashForKey()?e.key:e.name),this.updateHighlight(t,n)},t.prototype.updateHighlight=function(e,t){var n=this,a=e===j?1:-1;this.setState(function(e){var i=e.highlightedNodesMap;return t.forEach(function(e){var t=n._useIdHashForKey()?JSON.stringify({id:e}):JSON.stringify({name:e}),r=void 0!==i[t]?i[t]:0;i[t]=r+a,i[t]<=0&&delete i[t]}),{highlightedNodesMap:i}})},t.prototype._checkLabelWidthWithRespectToWidthLimit=function(e,t){e.label=e.label.replace(/:/g," > "),e.key=e.label;var n=document.createElement("span");n.append(document.createTextNode(e.label)),n.style.display="inline-block",document.body.append(n);var a=n.offsetWidth-t;return n.remove(),a},t.prototype._restoreFilterOption=function(e){return e.key=e.key.replace(/ > /g,":"),e.label=e.key,e},Object.defineProperty(t.prototype,"_isMMDFilterPaneSeeMoreFlightOn",{get:function(){return g.tH.isFeatureEnabled({ODB:1137})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isListAndTreeViewIconDisabledForImageTagField",{get:function(){return!g.HW.isActivated("f72b475a-d5cf-44c4-987d-ba9c61b79d77","4/21/2021","Hiding list/tree view icon to prevent the exposure of image tags in filter panel")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isUsedTermsInFilterPaneFlightOn",{get:function(){return g.tH.isFeatureEnabled({ODB:1641})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn",{get:function(){return g.tH.isFeatureEnabled({ODB:60159})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isLexicoGraphicalSortingForListViewItemsEnabled",{get:function(){return!g.HW.isActivated("b8c892af-799d-4515-8a93-35d77c52b8d4","08/12/2020","enable lexicographical sorting for list view items")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isSyncChangesForFullPathMMDColumnEnabled",{get:function(){return!g.HW.isActivated("15011441-bb0c-493a-9b36-f32e8ef67b7c","09/14/2020","enable syncing across list view and tree view for MMD column with full path")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isFixForThemeImpactOnDropDownEnabled",{get:function(){return!g.HW.isActivated("076b8e81-a87d-434d-b4a2-502282b01efe","06/04/2021","Fixing background colour of dropdown in filter pane in dark theme")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isNodeKeyUsingId",{get:function(){return!g.HW.isActivated("69a59cce-c751-4ced-8ef0-709b0aff55ce","07/31/2021","Node key changed to function of id instead of label")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isFilteringMMDColumnsSuggestionsFromClientEnabled",{get:function(){return!g.HW.isActivated("184e9e9f-f0ad-4fd9-a7f3-0a405e6827c8","08/10/2021","Get filtering suggestions for mmd columns from client instead of server")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isFilteringSuggestionsFromClientEnabledForCalendarView",{get:function(){return!g.HW.isActivated("1ef19a9e-fd60-408b-aaa3-013b0bbdf1bd","08/24/2021","Get filtering suggestions for Calendar View from client instead of server")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isAuthTokenFallbackEnabledForAcquire",{get:function(){return!g.HW.isActivated("84278147-ee5c-4d0b-aa4a-fe97a02f1ace","10/25/2021","Fetch Adal token in case Acquire is not available")},enumerable:!1,configurable:!0}),t}(_.oKI),Q={LIST_VIEW:"LIST_VIEW",TREE_VIEW:"TREE_VIEW"},Y=n(2258),J=n(3785),X=n(2648);const Z=function(e){function t(t){var n=e.call(this,t)||this;return n._resources=t.hostViewModel.resources,n._columnSchema=t.columnSchema,n._pageContext=n._resources.consume(f.n),n.getOAuthToken=n.getOAuthToken.bind(n),n}return(0,a.XJ)(t,e),t.prototype.getOAuthToken=function(){return(0,X.a)(this._resources,"FilterSelectConnector")},t.prototype.render=function(){var e=this,t=this.props,n=t.filterSectionInfo,a=t.dataSource,r=t.onComplete,f=t.getFilterSuggestions,p=t.getTaxonomyFilterSectionInfo,m=t.getTaxonomyFieldNextFilteringHierachy,_=t.onRenderComplete,h=this._resources.consume(l.l),b={eventScope:this._resources.consume(u.c),pageContext:this._pageContext,dataSource:a,currentView:h&&h.peek(),getIconUrlFromExtension:function(t){return Y.a(e._resources,t,16)},getOAuthToken:this.getOAuthToken},g=this._resources.consume(d.a),v=c.b(g.viewParams),y={filterSelect:o,smartFilter:s,checkboxFilterSection:(0,J.a)()};return i.createElement(q,{dependencies:b,strings:y,viewParamsString:v,filterSectionInfo:n,columnSchema:this._columnSchema,onComplete:r,onRenderComplete:_,getFilterSuggestions:f,getTaxonomyFilterSectionInfo:p,getTaxonomyFieldNextFilteringHierachy:m,allowRenderHierachySection:!0})},t}(r.a)}
,3017:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FILTERS_PANE_ID:()=>pe,ReactFiltersPane:()=>me,typeResourceKey:()=>_e});var a=n("tslib_102"),i=n("fui.util_43");(0,i.pZ)([{rawString:'.FiltersPane{zoom:1;box-sizing:border-box;outline:0;position:absolute;top:0;bottom:0;left:0;right:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:23px 16px 20px}.FiltersPane::after,.FiltersPane::before{display:table;content:"";line-height:0}.FiltersPane::after{clear:both}.FiltersPane button{font-family:inherit}.FiltersPane-title{display:inline-block;flex-grow:1;margin-top:0;margin-bottom:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:text-bottom;cursor:default;font-size:'},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:"},{theme:"xLargeFontWeight",defaultValue:"600"},{rawString:"}[dir=ltr] .FiltersPane-title{margin-right:15px}[dir=rtl] .FiltersPane-title{margin-left:15px}.FiltersPane-section{margin-bottom:18px}.FiltersPane-sectionContent{font-size:12px;margin-top:16px}.FiltersPane-sectionFooter{margin-top:0}.FiltersPane-header{margin-bottom:18px}.FiltersPane-headerCommands{position:relative;display:flex}.FiltersPane-headerCount{margin-top:6px}.FiltersPane-slider .ms-Slider{margin-bottom:0}.FiltersPane-slider .ms-Slider>.ms-Label{padding-bottom:12px}.FiltersPane-slider .ms-Slider .ms-Label{font-size:14px;font-weight:400;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.FiltersPane-slider .ms-Slider .ms-Slider-container .ms-Slider-slideBox{height:16px}.FiltersPane-slider .FiltersPane-slider-bottomLabel{margin-top:8px;position:relative}.FiltersPane-slider .FiltersPane-slider-maxLabel{position:absolute}[dir=ltr] .FiltersPane-slider .FiltersPane-slider-maxLabel{right:0}[dir=rtl] .FiltersPane-slider .FiltersPane-slider-maxLabel{left:0}.FiltersPane-slider .FiltersPane-slider-maxLabel,.FiltersPane-slider .FiltersPane-slider-minLabel{font-size:12px;font-weight:400;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.FiltersPane-noFilter{font-size:14px;font-weight:400}"}]);var r=n("react-lib"),o=n("prop-types-lib"),s=n(528),c=n(170),d=n(1250),l=n(41),u=n(6983),f=n(3782),p=n("odsp.util_578"),m=n(186),_=n(2242),h=n(2218),b=n(84),g=n(5720),v=n(42),y=n(160),S=n(2429),D=n(3784),I=n(7611);(0,i.pZ)([{rawString:".FiltersPane-sliderFilterSection .FiltersPane-sectionFooter{margin-top:8px}.FiltersPane-sliderFilterSection .FiltersPane-section{margin-bottom:0}.FiltersPane-slider-resetButton{position:absolute;bottom:20px}[dir=ltr] .FiltersPane-slider-resetButton{left:calc(50% - 40px)}[dir=rtl] .FiltersPane-slider-resetButton{right:calc(50% - 40px)}.FiltersPane-slider{position:relative;margin-top:10px}.FiltersPane-slider .ms-Slider .ms-Label{display:none}.FiltersPane-slider .ms-Slider-active{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}.FiltersPane-slider .ms-Slider-inactive{background:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.FiltersPane-slider .ms-Slider-enabled .ms-Slider-slideBox:active .ms-Slider-active,.FiltersPane-slider .ms-Slider-enabled .ms-Slider-slideBox:hover .ms-Slider-active{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.FiltersPane-slider .ms-Slider-enabled .ms-Slider-slideBox:active .ms-Slider-inactive,.FiltersPane-slider .ms-Slider-enabled .ms-Slider-slideBox:hover .ms-Slider-inactive{background-color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.FiltersPane-slider .ms-Slider-enabled .ms-Slider-slideBox:active .ms-Slider-inactive{background-color:"},{theme:"themeDarkAlt",defaultValue:"#106ebe"},{rawString:"}.FiltersPane-slider .ms-Slider-disabled .ms-Slider-active{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.FiltersPane-slider .ms-Slider-disabled .ms-Slider-inactive{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}"}]);var x=n(3783),C=n(3785),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onReset=function(){var e=t.props,n=e.sectionInfo;(0,e.onDateCheckboxChange)(n.fieldName,n.fieldType,[],!0),l.Engagement.logData({name:"ResetButton.SmartFiltersPane.Click",isIntentional:!0})},t._onChange=function(e){var n=t.props,a=n.sectionInfo;(0,n.onChange)(a.fieldName,a.fieldType,e),l.Engagement.logData({name:"DateTimeSlider.SmartFiltersPane.Click",isIntentional:!0})},t}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.sectionInfo,a=t.seeAllLinkProps,i=t.onDateCheckboxChange,o=t.commandItems,s=void 0===n.minValue||null===n.minValue?g.a.none:n.minValue,c=void 0===n.maxValue||null===n.maxValue?g.a.nextYear:n.maxValue,d=c===g.a.today?I.b:n.maxValueLabel,l=this._getDateSliderLabel(n.value,n.minValueLabel),u=!1,f=n.showSeeAllLink&&a,m=0;if(n.options&&n.options.length>0)for(var _=0,h=n.options;_<h.length;_++)h[_].checked&&(m++,u=!0);m>0&&(l=p.OO(I.q,l,m)),f&&(a.filterSectionInfo=n);var b=p.OO(I.a,n.minValueLabel||I.o,d);return r.createElement("div",{className:"FiltersPane-section FiltersPane-sliderFilterSection","data-automationtype":"FilterSection","data-section-type":n.type,"data-section-key":n.fieldName},r.createElement(x.a,{text:l,showEditButton:n.showEditButton,commandItems:o}),r.createElement("div",{className:"FiltersPane-slider"},r.createElement(S.f,{label:l,ariaLabel:l?l+". "+b:b,min:s,max:c,ariaValueText:function(t){return e._getDateSliderLabel(t,n.minValueLabel)},step:1,value:n.value,showValue:!1,onChange:this._onChange,disabled:u}),u&&r.createElement(S.b,{className:"FiltersPane-slider-resetButton","data-automationid":"FiltersPane-slider-resetButton",onClick:this._onReset,text:I.p}),r.createElement("div",{className:"FiltersPane-slider-bottomLabel"},r.createElement("span",{className:"FiltersPane-slider-minLabel"},n.minValueLabel||I.o),r.createElement("span",{className:"FiltersPane-slider-maxLabel"},d))),r.createElement(D.a,{key:n.fieldName,strings:(0,C.a)(),sectionInfo:n,onChange:i,seeAllLinkProps:a,hideSectionHeader:!0}))},t.prototype._getDateSliderLabel=function(e,t){var n=this.props.sectionInfo.title;switch(e){case g.a.none:n=t?p.OO(I.d,n,t):p.OO(I.c,n);break;case g.a.last3Months:n=p.OO(I.e,n);break;case g.a.last30Days:n=p.OO(I.g,n);break;case g.a.last7Days:n=p.OO(I.f,n);break;case g.a.yesterday:n=p.OO(I.n,n);break;case g.a.today:n=p.OO(I.l,n);break;case g.a.tomorrow:n=p.OO(I.m,n);break;case g.a.next7Days:n=p.OO(I.j,n);break;case g.a.next30Days:n=p.OO(I.k,n);break;case g.a.next3Months:n=p.OO(I.i,n);break;case g.a.nextYear:n=p.OO(I.h,n)}return n},t}(r.Component),w=n(129),E=n(102),A=n(184),L=n(358),k=n(226),M=n(275),P=n(26),T=n(2747),U=n(3447),F=n(991),H=n(6991),R=n(2633),N=n(2465),B=n(19),j=n(536),V=n(540),z=n(16),G=n(20),K=n(87),W=n(2199),q=n(1817),Q=n(2767),Y=n(2405),J=n("fui.lcoms_828"),X=n(4),Z=n(3408),$=n(2556),ee=n(531),te=n(22),ne=n(106),ae=n(62),ie=n(3),re=n(268),oe=n(15),se=n(200),ce=n(4115),de=n(441),le=n(4147),ue=p.HW.isActivated("821602dd-aab5-461d-875a-e2363e440df5","06/21/2021","do not dismiss filter panel by pressing ESC"),fe=(0,X.c)(function(e,t){var n=(0,z.a)(e),a=!!e.demandItemFacet(B.a,n),i=function(e,t){var n,a,i,r=e.demandItemFacet(Z.a,t.itemKey),o=null!==(n=null==r?void 0:r.itemCount)&&void 0!==n?n:0,s=null!==(a=null==r?void 0:r.areAllPagesResolved)&&void 0!==a&&a,c=null!==(i=null==r?void 0:r.areAllCountsKnown)&&void 0!==i&&i;return{totalCount:o,isResolved:s&&c}}(e,{itemKey:n}),o=i.totalCount,s=i.isResolved,c=a?s?(0,p.OO)((0,p.Ot)(u.d,u.e,o)||"",o):(0,p.OO)((0,p.Ot)(u.f,u.g,o)||"",o):u.h;return r.createElement(J.wA3,{"aria-live":"polite"},c)}),pe="FiltersPane-id",me=function(e){function t(t,n){var i=e.call(this,t,n)||this;i._launchFilterSelectPanel=function(e){var t,n,a=(0,p.OO)(u.n,e.title),r=(null===(n=null===(t=i._currentItemSet)||void 0===t?void 0:t.peek().schema)||void 0===n?void 0:n.peek())||[],o=r&&r.length>0?r.filter(function(t){return t.id===e.fieldId}):[],s=o&&o.length>0?o[0]:void 0;i._resources.consumeAsync(E.G).then(function(t){var n=i._panelProvider.requestPanel({noTitle:!0,disableEscape:!ue&&!0,title:a||e.title,size:e.type===(0,g.c)("hierarchy")?"Medium":"Small",component:{name:U.a.tagName,params:{columnSchema:s,itemDataSource:t,filterSectionInfo:e,getFilterSuggestions:i._smartFilters&&i._smartFilters.getFilterSuggestions.bind(i._smartFilters),getTaxonomyFieldNextFilteringHierachy:i._smartFilters.getTaxonomyFieldNextFilteringHierachy.bind(i._smartFilters),onComplete:function(e){i._onSeeAllComplete(e),n.state(h.a.closed)}}}})})},i.getAlertLabelComponent=function(){var e={};i.state.filterSectionInfos.forEach(function(t){e[t.title]=[],t.options.forEach(function(n){n.checked&&e[t.title].push(n.key)})});var t="";if(Object.keys(e).forEach(function(n){t+=(0,le.a)(n,e[n])}),i.state.alertFilterChange)return e?r.createElement(de.a,{onStart:function(){i.setState({alertFilterChange:!1})}},t):null},i._onFilterChange=function(e,t,n,a,r){for(var o=i.state.filterSectionInfos,s=0;s<o.length;s++){var c=o[s];if(c.fieldName===e){if(i._rumone.logFilterSort("Filter"),c.type!==(0,g.c)("date")||n&&0!==n.length||(c.value=g.a.none),n=i._updateHierarchyFilterValues(c,n),c.options){if(i._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&c.type===(0,g.c)("hierarchy")&&c.useLookUpForFiltering)c.useLookUpForFiltering=!1;else for(var d=0,l=c.options;d<l.length;d++){for(var u=l[d],f=!1,m=0,_=u.values;m<_.length;m++){var h=_[m];if(n&&n.indexOf(h)>=0){f=!0;break}}u.checked=f}a&&c.options.splice(5)}return p.HW.isActivated("046C7413-9959-437B-A422-7B28C710338D","03/07/2023","Update payload for persisted filters")?i._smartFilters.filter(e,t,c.serverFieldType,n):i._smartFilters.filter(e,t,c.serverFieldType,n,void 0,r,i.props.onViewXmlUpdated),i.setState({filterSectionInfos:o,alertFilterChange:!0}),void(0,F.a)(i._resources,"FiltersPane")}}},i._onSelectedSuggestionsChange=function(e,t,n){if(n){for(var a=i.state.filterSectionInfos,r=0;r<a.length;r++){var o=a[r];if(o.fieldName===e){for(var s=[],c=void 0,d=0,l=o.options;d<l.length;d++){var u=l[d];n.key===u.key&&(c=u,u.checked=!0),u.checked&&(s=s.concat(u.values))}c||(n.checked=!0,o.options.push(n),s=s.concat(n.values)),i.setState({filterSectionInfos:a}),i._smartFilters.filter(e,t,o.serverFieldType,s);break}}(0,F.a)(i._resources,"FiltersPane")}},i._getFilterData=function(e,t){if(!i._currentView)return P.c.wrap();var n=L.b(i._navigation.viewParams),a=i._currentView.peek(),r=a&&a.id;return P.c.resolve(i._resources.consumeAsync(E.G)).then(function(a){return a.getFilterData(e,n,r,t)})},i._clearFilter=function(e){for(var t=i.state.filterSectionInfos,n=[],a=d.a(t),r=0,o=a;r<o.length;r++){if((p=o[r]).type===(0,g.c)("date"))p.value=g.a.none;else if(p.type===(0,g.c)("hierarchy")){p.checkedKeys=[];continue}if(p.options){for(var s=0,c=p.options;s<c.length;s++)c[s].checked=!1;p.options.splice(5)}}for(var u=0,f=t;u<f.length;u++){var p=f[u];n.push(p.fieldName)}l.Engagement.logData({name:"ClearFilter.SmartFiltersPane.Click",isIntentional:!0}),i._smartFilters.clearFilters(n,a),i.setState({filterSectionInfos:a})},i._getOptionFromServerFilterValue=function(e,t){return f.d(i._resources,e,t.display,t.value)},i._onSliderChange=function(e,t,n){for(var a=i.state.filterSectionInfos,r=0;r<a.length;r++){var o=a[r];if(o.fieldName===e)return o.value=n,i._smartFilters.filterByDateTimeSliderValue(e,n),void i.setState({filterSectionInfos:a})}},i._onClose=function(){i._isFiltersPaneExpanded(!1),i._messenger&&i._messenger.sendCommand({command:"close"}),i.props.onClose&&i.props.onClose()},i._isValidViewIdInItemCacheStore=function(e){if(i._itemCacheStore){var t={viewId:(0,p.wP)(e,!1)};return i._itemCacheStore.dispatch((0,te.a)(function(e){return e.isItemFacetResolved(ie.Vd,ae.a.serialize(t))}))}return!0},i._scope=new c.a;var o=i.context.dependencies,b=o.resources,S=o.smartFilters;i._resources=b,i._observables=i._scope.attach(new(i._resources.consume(s.observablesFactoryTypeResourceKey))({owner:i}));var D=i._resources.consume(W.a),I=i._scope.attach(new D({}));if(i._viewParams=i._resources.consume(m.I),i._currentView=i._resources.isExposed(m.l)?i._resources.consume(m.l):void 0,i._smartFilters=S,i._panelProvider=i._resources.consume(_.a),i._navigation=i._resources.consume(w.a),i._currentItem=I.currentItem,i._pageContext=i._resources.consume(v.n),i._eventScope=i._resources.consume(M.c.optional),i._rumone=i._resources.consume(y.a),i._useItemsScope=i._resources.consume(N.a),i._currentItemSet=i._resources.consume(m.g.optional),i._isFiltersPaneExpanded=i._resources.consume(q.resourceKey),p.HW.isActivated("9FFF2461-EA32-4C5B-987D-4C432FD444DF","6/2/2021","Remove dependency on Messenger from reusable components hosted by ModernFrame")&&(i._messenger=i._resources.consume(Y.b.optional)),i._useItemsScope&&i._useItemsScope.peek()){i._itemCacheObservablesFactory=i._resources.consume(R.a),i._smartFiltersStore=i._resources.consume(V.a.optional);var x=i._resources.consume(j.a);i._currentItemsScope=i._resources.consume($.a),i._itemCacheStore=i._resources.consume(ee.a),i._itemCacheObservablesFactory&&x&&(i._isCurrentItemSetInvalidated=i._itemCacheObservablesFactory.pureCompute(function(e){var t=(0,z.a)(e,x),n=e.isItemFacetResolved(B.a,t);return!(!e.isItemFacetResolved(B.f,t)||n)}),i._calendarViewItemSetKey=i._itemCacheObservablesFactory.pureCompute(function(e){var t=(0,z.a)(e,x),n=e.demandItemFacet(oe.a,t),i=e.demandItemFacet(ie.i,ce.a.serialize({}));return n&&i?(0,a.W_)((0,a.W_)({},n),i):n}))}return i.state={filterSectionInfos:[],isLoading:!0,isTeachingBubbleVisible:!1,alertFilterChange:!1},i}return(0,a.XJ)(t,e),t.prototype.componentWillMount=function(){this._returnFocusToElement=document.activeElement},t.prototype.componentDidMount=function(){var e=this;this._getSmartFilters(),this._isCurrentItemSetInvalidated&&this._isCurrentItemSetInvalidated.subscribe(function(t){if(t&&e._smartFiltersStore){var n=e._currentItem&&e._currentItem.peek()&&e._currentItem.peek().key;n&&e._smartFiltersStore.invalidate(n)}}),this._calendarViewItemSetKey&&this._calendarViewItemSetKey.subscribe(function(t){t&&e._showFiltersFromItemCacheInCalendarView&&e._getSmartFilters(!1)}),this._observables.compute(function(){return e._currentItem()&&e._viewParams()}).extend({rateLimit:{timeout:300,method:"notifyWhenChangesStop"}}).subscribe(function(){e._getSmartFilters(!1)}),this._eventScope&&(this._events.on(this._eventScope,g.b.applyPanel,function(t){var n=e.state.filterSectionInfos,a=t;e._smartFilters.shouldShowEditButton&&e._smartFilters.shouldShowEditButton()&&(a.showEditButton=!0),f.a(n,a,5),e.setState({filterSectionInfos:n})}),this._events.on(this._eventScope,g.b.showInFiltersPaneChanged,function(t){e._smartFilters.updateShowInFiltersPaneProperty(t.fieldName,t.showInFiltersPane),e._getSmartFilters(!0)}),this._events.on(this._eventScope,g.b.sectionInfosChanged,function(){e._getSmartFilters(!1)}),this._events.on(this._eventScope,g.b.canvasFilterChanged,function(t){var n=t.camlFilter,i=t.filterParams;e._calendarViewItemSetKey=e._observables.create((0,a.W_)((0,a.W_)({},e._calendarViewItemSetKey.peek()),{filterParams:i,camlFilter:n})),e._getSmartFilters(!1)})),setTimeout(function(){if(e._filtersPaneElement){var t=(0,i.fj)(e._filtersPaneElement,e._filtersPaneElement);t&&t.focus()}},50)},t.prototype.componentWillUnmount=function(){if(this._scope.dispose(),this._returnFocusToElement&&(0,i.tw)(document.body,this._returnFocusToElement))this._returnFocusToElement.focus();else{var e=document.querySelector('button[data-automationid="filtersPane"]');e&&e.focus()}},t.prototype.render=function(){var e=this,t=this.state,n=t.filterSectionInfos,a=t.isLoading,i=!a&&n&&0===n.length,o=!this._hasFilterApplied(a,n,i),s=this._currentItemsScope;return r.createElement("div",{className:"FiltersPane",id:pe,role:"region","aria-label":u.b,"data-automationid":"FiltersPane",ref:function(t){e._filtersPaneElement=t}},this.getAlertLabelComponent(),r.createElement("div",{className:"FiltersPane-header"},r.createElement("div",{className:"FiltersPane-headerCommands"},r.createElement("h2",{className:"FiltersPane-title"},u.i),r.createElement(J.qxl,{content:u.a},r.createElement(S.c,{className:"FiltersPane-filterClear-icon",iconProps:{iconName:"ClearFilter"},ariaLabel:u.a,onClick:this._clearFilter,"data-automationid":"ClearFilter",disabled:o})),r.createElement(S.c,{className:"FiltersPane-close-icon",iconProps:{iconName:"Cancel"},"aria-label":u.c,title:u.c,onClick:this._onClose,"data-automationid":"CloseFilterPane"})),s&&!p.HW.isActivated("13C8EF81-4FBA-47C3-8517-A9590CAFB055","2/22/2021","Show count of matched items")?r.createElement("div",{className:"FiltersPane-headerCount"},r.createElement(s,null,r.createElement(fe,null))):null),a&&r.createElement(S.h,{type:S.g.large,label:u.j}),!a&&n&&n.map(function(t){return e._renderSectionWithQos(t)}),i&&r.createElement("div",{className:"FiltersPane-noFilter"},u.k))},t.prototype._invalidateSmartFiltersStore=function(){if(this._smartFiltersStore){var e=this._currentItem&&this._currentItem.peek()&&this._currentItem.peek().key;e&&this._smartFiltersStore.invalidate(e)}},t.prototype._renderSectionWithQos=function(e){var t=new G.a({name:"FiltersPaneRenderSection"});try{var n=this._renderSection(e);return t.end({resultType:G.b.Success,extraData:{fieldType:A.a[e.fieldType]}}),n}catch(e){t.end((0,K.a)(e))}},t.prototype._renderSection=function(e){var t={label:u.m,filterSectionInfo:e,getFilterData:this._getFilterData,getOptionFromServerFilterValue:this._getOptionFromServerFilterValue,ariaDescription:(0,p.OO)(u.l,e.title),launchFilterSelectPanel:this._launchFilterSelectPanel,showFilterOptionsFromSectionInfo:this._showFiltersFromItemCacheInCalendarView},n=e.showEditButton?this._smartFilters.getCommandItems(e.fieldName,e.title):[];if(e.isLoading)return r.createElement("div",{className:"FiltersPane-section FiltersPane-hierachyFilterSection","data-automationtype":"FilterSection","data-section-type":e.type,"data-section-key":e.fieldName,key:e.fieldName},r.createElement(x.a,{text:e.title,showEditButton:e.showEditButton,commandItems:n}),r.createElement(S.h,{type:S.g.large,label:u.j}));if(e.type===(0,g.c)("date")){var a=e;return t.label=u.o,r.createElement(O,{key:e.fieldName,sectionInfo:a,onChange:this._onSliderChange,onDateCheckboxChange:this._onFilterChange,seeAllLinkProps:t,commandItems:n})}return r.createElement(D.a,{key:e.fieldName,strings:(0,C.a)(),sectionInfo:e,onChange:this._onFilterChange,seeAllLinkProps:t,pageContext:this._pageContext,showFilterPicker:e.showFilterPicker,onResolveSuggestions:function(){return[]},onSelectedSuggestionChange:this._onSelectedSuggestionsChange,commandItems:n})},t.prototype._updateHierarchyFilterValues=function(e,t){if(this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&e.type===(0,g.c)("hierarchy")&&e.useLookUpForFiltering){var n=[];e.options.map(function(e){e.values&&e.values.length>0&&-1!==t.indexOf(e.values[0])&&n.push(e.label),e.values=[e.label]}),t=n}return t},t.prototype._updateFilterOptionsValues=function(e){this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&e.type===(0,g.c)("hierarchy")&&e.useLookUpForFiltering&&e.options.map(function(e){e.values=[e.label]})},t.prototype._getSmartFilters=function(e){var t=this,n=new G.a({name:"FiltersPaneGetSmartFilters"});try{var a=this._currentView&&this._currentView.peek(),i=this._viewParams.peek(),r=i.hasOwnProperty("viewid")&&i.viewid,o=i[k.c.newTargetListUrlKey],s=i[k.c.needsAttentionViewKey],c=r&&a&&r!==a.id&&this._isValidViewIdInItemCacheStore(r)||s&&a&&a.id!==T.a;if(p.HW.isActivated("ab55e18a-befa-46df-b978-774c5cda285f","08/12/2022","Handle the case where _pageContext.listUrl is a relative URl and newTargetListUrl is absolute")?c||o&&o!==this._pageContext.listUrl:c||o&&o!==this._pageContext.listUrl&&-1===o.indexOf(this._pageContext.listUrl)){var d=this._currentView.subscribe(function(){d.dispose(),t._getSmartFilters(e)});this._scope.attach(d),n.end({resultType:G.b.Success})}else this._showFiltersFromItemCacheInCalendarView&&this._calendarViewItemSetKey?this._getCalendarItems().then(function(a){t._smartFilters.getSections(a.length,e,a).then(function(e){var a={filterSectionInfos:e};t.setState(a),t.setState({isLoading:!1}),n.end({resultType:G.b.Success})})}):this._smartFilters.getSections(5,e).then(function(e){var a={filterSectionInfos:e};t.setState(a),t.setState({isLoading:!1}),n.end({resultType:G.b.Success})})}catch(e){n.end((0,K.a)(e))}},t.prototype._getCalendarItems=function(){var e,t,n=this;this._invalidateSmartFiltersStore();var a=oe.a.serialize(this._calendarViewItemSetKey.peek());return(p.HW.isActivated("810CC8F7-AE82-42B8-8625-6D144C4336AD")?this._itemCacheStore.dispatch((0,se.a)({items:(e={},e[a]={demands:(t={},t[B.a.id]={},t)},e)})):this._itemCacheStore.dispatch((0,ne.a)(function(e){e.demandItemFacet(B.a,a)}))).then(function(){return n._itemCacheStore.dispatch((0,te.a)(function(e){var t=e.demandItemFacet(B.a,a),n=[];return t&&t.itemKeys.length&&(n=t.itemKeys.map(function(t){return e.demandItemFacet(ie.Gc,t)||{}})),n}))})},t.prototype._onSeeAllComplete=function(e){var t=this.state.filterSectionInfos,n=this._isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn&&e.type===(0,g.c)("hierarchy")&&!!e.useLookUpForFiltering;this._smartFilters.filterBySectionOptions(e,n),f.a(t,e,5,n),this._updateFilterOptionsValues(e),this.setState({filterSectionInfos:t})},t.prototype._hasFilterApplied=function(e,t,n){var a=!1;if(!e&&!n)for(var i=0,r=t;i<r.length;i++){var o=r[i];if(o.type===(0,g.c)("date"))a=o.value!==g.a.none;else if(o.type===(0,g.c)("hierarchy")){var s=o.checkedKeys;a=s&&s.length>0}if(!a&&o.options)for(var c=0,d=o.options;c<d.length;c++)if(d[c].checked){a=!0;break}if(a)break}return a},Object.defineProperty(t.prototype,"_isSelectAllChildrenFunctionalityForTaxonomyFilterPaneFlightOn",{get:function(){return p.tH.isFeatureEnabled({ODB:60159})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_showFiltersFromItemCacheInCalendarView",{get:function(){var e=this._currentView&&this._currentView.peek();return!p.HW.isActivated("228544e3-c8b5-4104-9c9f-989d6405cffb","06/10/2021","Show filters from ItemCache in modern calendar view")&&e&&e.viewType&&re.a.getViewTypeInfo(e.viewType).viewType2===b.c.modernCalendar},enumerable:!1,configurable:!0}),t.contextTypes={dependencies:o.object.isRequired},t}(S.a),_e=(0,H.a)("ReactFiltersPane",me,{resources:p.lh.local,smartFilters:Q.a,messenger:Y.b.optional})}
,3785:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var a=n(7612);function i(){var e=a.b;return{NoResults:a.c,NoResultFound:e,FilterPickerPlaceholder:a.a,PeoplePickerPlaceholder:a.d,SectionTitleWithNumber:a.e}}}
,2547:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FlowWidgetPanelContainer:()=>d,default:()=>l});var a=n("tslib_102"),i=n("react-lib"),r=n(2803),o=n(42),s=n(2563),c=n(976),d=function(e){function t(t){var n=e.call(this,t)||this;return n._onFlowCreationSucceeded=function(e,t){n.props.dismissAfterFlowCreated&&n._closePanel();var a=n.props.widgetEventHandlers;a&&a.onFlowCreationSucceeded&&a.onFlowCreationSucceeded(e,t)},n._onTriggerFlowSucceeded=function(e){n.props.dismissAfterFlowTriggered&&n._closePanel();var t=n.props.widgetEventHandlers;t&&t.onTriggerFlowSucceeded&&t.onTriggerFlowSucceeded(e)},n._onTriggerFlowDoneClicked=function(e){n._closePanel();var t=n.props.widgetEventHandlers;t&&t.onTriggerFlowDoneClicked&&t.onTriggerFlowDoneClicked(e)},n._onTriggerFlowCancelClicked=function(e){n._closePanel();var t=n.props.widgetEventHandlers;t&&t.onTriggerFlowCancelClicked&&t.onTriggerFlowCancelClicked(e)},n._onWidgetClose=function(e){n._closePanel();var t=n.props.widgetEventHandlers;t&&t.onWidgetClose&&t.onWidgetClose(e)},n._onDismiss=function(){var e=n.props.widgetEventHandlers;e&&e.onTriggerFlowCancelClicked&&e.onTriggerFlowCancelClicked(n.props.widgetParams),n._closePanel()},n._closePanel=function(){n.setState({isOpen:!1}),n.props.onDismiss()},n._resources=t.hostModel.resources,n._pageContext=n._resources.consume(o.n),n._oAuthTokenProvider=n._resources.consume(s.a),n.state={isOpen:!0},n}return(0,a.XJ)(t,e),t.prototype.render=function(){return i.createElement(r.a,(0,a.W_)({isOpen:this.state.isOpen,widgetParams:this.props.widgetParams,errorImgUrl:this._getErrorImageUrl(),pageContext:this._pageContext,oAuthTokenProvider:this._oAuthTokenProvider,onDismiss:c.c()?this._closePanel:this._onDismiss},this.props.widgetEventHandlers,{onFlowCreationSucceeded:this._onFlowCreationSucceeded,onTriggerFlowSucceeded:this._onTriggerFlowSucceeded,onTriggerFlowDoneClicked:this._onTriggerFlowDoneClicked,onTriggerFlowCancelClicked:this._onTriggerFlowCancelClicked,onWidgetClose:this._onWidgetClose}))},t.prototype._getErrorImageUrl=function(){return window.require.toUrl("odsp-media/images/sitehub/error_icecream.png")},t}(i.Component);const l=d}
,2548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GroupMembershipPanelContainer:()=>V,default:()=>z});var a=n("tslib_102"),i=n("react-lib"),r=n("fui.lco_496"),o=n("fui.lcoms_828"),s=n(43),c=n("odsp.util_578"),d=n(41),l=n(474),u=n(7572),f=n(2331),p=n(2334),m=n("fui.util_43");(0,m.pZ)([{rawString:".ms-groupMemberList-spinner{overflow:hidden}"}]);var _=function(e){function t(t){return e.call(this,t)||this}return(0,a.XJ)(t,e),t.prototype.render=function(){return i.createElement(o.tu6,{className:"ms-groupMemberList-spinner"})},t.prototype.componentDidMount=function(){this.props.onLoadMoreMembers&&this.props.onLoadMoreMembers()},t}(i.Component),h=function(e){function t(t){return e.call(this,t)||this}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this,t=[];return this.props.members&&(t=this.props.members,this.props.onLoadMoreMembers&&this.props.totalNumberOfMembers>this.props.members.length&&(t=t.concat([null]))),i.createElement(r.Oc0,{items:t,onRenderCell:function(t,n){return t?e.props.onRenderPersona(t,n):i.createElement(_,{onLoadMoreMembers:e.props.onLoadMoreMembers})}})},t}(i.Component);(0,m.pZ)([{rawString:".ms-groupMembershipMenu-linkText{cursor:pointer}.ms-groupMembershipMenu-titleArea{line-height:20px;font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}[dir=ltr] .ms-groupMembershipMenu-chevron{margin-left:8px}[dir=rtl] .ms-groupMembershipMenu-chevron{margin-right:8px}.ms-groupMembershipMenu-updatingSpinner{float:left}[dir=ltr] .ms-groupMembershipMenu-updatingSpinner{margin-right:5px}[dir=rtl] .ms-groupMembershipMenu-updatingSpinner{margin-left:5px}"}]);var b=n("fui.core_870"),g=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._onClick=function(){a.props.menuItems&&a.props.menuItems.length>0&&a.setState({isContextualMenuVisible:!a.state.isContextualMenuVisible})},a._onDismiss=function(e){a.setState({isContextualMenuVisible:!1}),e.stopPropagation(),e.preventDefault()},a._resolveMenu=function(e){return a.menu=e},a.state={isContextualMenuVisible:!1},a}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props.menuItems&&this.props.menuItems.length>0;return e?i.createElement("div",null,i.createElement(r.z5q,(0,a.W_)({direction:r.GIy.horizontal},this.props.focusZoneProps),i.createElement("div",{className:"ms-groupMembershipMenu-titleArea",ref:this._resolveMenu},i.createElement("span",{className:e?"ms-groupMembershipMenu-linkText":void 0,onClick:this._onClick,"data-is-focusable":e,role:"button","aria-haspopup":!0,"aria-expanded":!!this.state.isContextualMenuVisible,"aria-label":this.props.buttonLabel},this.props.showSpinner&&i.createElement(o.tu6,{className:"ms-groupMembershipMenu-updatingSpinner",size:b.CTe.small}),this.props.title,e&&i.createElement(r.k45,{iconName:"ChevronDown",className:"ms-groupMembershipMenu-chevron"}))),e&&this.state.isContextualMenuVisible&&i.createElement(r.v2H,{items:this.props.menuItems,isBeakVisible:!1,target:this.menu,directionalHint:r.aZJ.bottomLeftEdge,onDismiss:this._onDismiss,gapSpace:0}))):i.createElement("div",{className:"ms-groupMembershipMenu-titleArea"},this.props.title)},t}(i.Component),v=n(7571);(0,m.pZ)([{rawString:".ms-groupMember-itemBtn{text-align:center;margin-top:20px;margin-bottom:20px}[dir=ltr] .ms-groupMember-itemBtn{margin-right:4px}[dir=rtl] .ms-groupMember-itemBtn{margin-left:4px}.ms-groupMember-personName{white-space:nowrap;text-overflow:ellipsis}[dir=ltr] .ms-groupMember-personName{text-align:left}[dir=rtl] .ms-groupMember-personName{text-align:right}.ms-groupMember-personName .ms-Persona-secondaryText{display:none}.ms-groupMember-personName .ms-groupMember-lpcpersonacoin{width:40px;height:40px}.ms-groupMember-AddMemberButtonArea{max-height:40px;margin-bottom:16px}.ms-GroupMembershipPanelContents{margin-bottom:24px}.ms-groupMember-personName>div{margin-top:10px;margin-bottom:10px}.ms-groupMember-largeGroupMessage{margin-bottom:10px}.ms-groupMember-membersCount{font-weight:600;margin-bottom:16px}.ms-groupMember-list{list-style-type:none}[dir=ltr] .ms-groupMember-list{padding-left:0}[dir=rtl] .ms-groupMember-list{padding-right:0}.ms-groupMember-errorMessage{box-sizing:border-box;box-shadow:none;margin:0;padding:0;margin-top:20px;margin-bottom:13px}.ms-groupMember-addingGuest{box-sizing:border-box;box-shadow:none;margin:0;padding:0;margin-bottom:20px}.ms-groupMember-addMemberInstructions{margin-bottom:24px}.ms-groupMember-peoplePicker{margin-bottom:24px}.ms-groupMember-peoplePicker .ms-BasePicker-selectedItems{margin-top:8px}[dir=ltr] .ms-groupMemberButton-Cancel{margin-left:8px}[dir=rtl] .ms-groupMemberButton-Cancel{margin-right:8px}.ms-groupMember-spinner{overflow:hidden}.ms-groupMemberList-spinner{margin-top:10px;margin-bottom:10px;overflow:hidden}.ms-groupMember-NavigationContent{padding-top:18px;padding-bottom:8px;display:flex;width:100%}[dir=ltr] .ms-groupMember-NavigationContent .ms-Panel-closeButton{margin-left:auto}[dir=rtl] .ms-groupMember-NavigationContent .ms-Panel-closeButton{margin-right:auto}.ms-groupMember-BackIcon{color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}[dir=ltr] .ms-groupMember-BackIcon{margin-left:16px}[dir=rtl] .ms-groupMember-BackIcon{margin-right:16px}.ms-groupMember-Title{font-size:"},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:"},{theme:"xLargeFontWeight",defaultValue:"600"},{rawString:"}[dir=ltr] .ms-groupMember-Title{margin-left:24px}[dir=rtl] .ms-groupMember-Title{margin-right:24px}.ms-groupMember-Title-AddMembers{font-size:"},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:"},{theme:"xLargeFontWeight",defaultValue:"600"},{rawString:"}[dir=ltr] .ms-groupMember-Title-AddMembers{margin-left:10px}[dir=rtl] .ms-groupMember-Title-AddMembers{margin-right:10px}.ms-groupMemberPanel .ms-Panel-navigation{height:auto;display:block}.ms-groupMemberPanel .ms-TooltipHost{display:block;overflow:hidden;text-overflow:ellipsis}.ms-groupMember-addingDiv{margin-top:20px}.ms-groupMember-addMemberExplanation:not(:first-child){padding-top:8px}.ms-groupMember-MemberGroupName{font-weight:600}.ms-groupMember-link{text-decoration:underline}"}]),(0,m.pZ)([{rawString:'.sp-addMember-peoplePickerLabel{font-size:14px;font-weight:600}.sp-addMember-memberListLabel{font-size:14px;font-weight:600}.sp-addMember-persona{display:flex;text-align:center;margin-top:20px;margin-bottom:20px}[dir=ltr] .sp-addMember-persona{margin-right:4px}[dir=rtl] .sp-addMember-persona{margin-left:4px}.sp-addMember-persona:focus-visible{outline:-webkit-focus-ring-color auto 1px}.sp-addMember-persona .ms-Persona-primaryText>.deferredLivePersonaCardRoot{width:100%}.sp-addMember-persona-removeMemberButton{flex:0 1 auto;min-width:0;max-width:100%;align-self:center}.sp-addMember-persona-personName{flex:1;min-width:0}[dir=ltr] .sp-addMember-persona-personName{text-align:left}[dir=rtl] .sp-addMember-persona-personName{text-align:right}.sp-addMember-personaControl{height:45px}.sp-addMember-persona-lpcpersonacoin{width:40px;height:40px}.sp-addMember .ms-TooltipHost{display:block;overflow:hidden;text-overflow:ellipsis}.sp-addMember-peoplePicker{margin-top:5px;margin-bottom:24px}.sp-addMember-peoplePicker .ms-BasePicker-input{font-family:"Segoe UI Regular WestEuropean","Segoe UI",Tahoma,Arial,sans-serif;font-size:14px;color:fieldtext}.sp-addMember-peoplePicker .ms-SelectionZone{display:none}'}]);var y="groupMembership-peoplePickerLabel",S="groupMembership-membersLabel",D={placeholder:v.n,autoFocus:!0,"aria-labelledby":y},I=function(e){function t(t){var n,a,i=e.call(this,t)||this,r=[];return null===(n=t.suggestedOwners)||void 0===n||n.forEach(function(e){var t=i.convertPersonToPersona(e,!0);r.push(t)}),null===(a=t.suggestedMembers)||void 0===a||a.forEach(function(e){var t=i.convertPersonToPersona(e);r.push(t)}),i.state={personas:r},t.onChange&&t.onChange(i.getMembers(),i.getOwners()),i.isPersonaCoinKSActive=c.HW.isActivated("42a098ea-8fbe-4d02-b8d4-f21f746e68c5","01/19/2023","Use PersonaCoin directly since defaultRender is now your own render function"),i.isGroupMembershipPickerA11yKSActive=c.HW.isActivated("16bd3d31-e67f-4376-9ca0-bb6de5889b32","04/24/2023","Fixes focus on the personas and some other accessibility bugs"),i}return(0,a.XJ)(t,e),t.prototype.getOwners=function(){return this.filterOwners(this.state.personas,!0)},t.prototype.getMembers=function(){return this.filterOwners(this.state.personas,!1)},t.prototype.render=function(){var e=this,t=this.state.personas;return this.peoplePicker=void 0,i.createElement("div",{className:"sp-addMember","data-automationid":"addMemberForm-addMember"},i.createElement("label",{className:"sp-addMember-peoplePickerLabel",id:y,role:this.isGroupMembershipPickerA11yKSActive?"heading":void 0,"aria-level":this.isGroupMembershipPickerA11yKSActive?2:void 0},v.a),i.createElement("div",{className:"sp-addMember-peoplePicker"},i.createElement(f.a,{selectedItems:t,onSelectedPersonasChange:function(t){return e.onSelectedPersonasChange(t)},peoplePickerQueryParams:this.props.peoplePickerQueryParams,context:this.props.pageContext,dataSource:this.props.peoplePickerDataSource,peoplePickerType:p.a.listBelow,inputProps:D,suggestionsAvailableAlertText:v.q,enableSelectedSuggestionAlert:!0,componentRef:function(t){e.peoplePicker=t},onResolvedSuggestions:function(t){return e.onResolvedSuggestions(t)}})),this.state.announced,t.length>0&&i.createElement("div",{className:"sp-addMember-memberListLabel",id:S,role:"heading","aria-level":2},1===t.length?v.i:c.OO(v.j,t.length)),i.createElement("div",{role:"group"},i.createElement(r.z5q,{direction:r.GIy.vertical,isCircularNavigation:!0,shouldEnterInnerZone:this.shouldEnterInnerZone,role:"list","aria-labelledby":S},t.map(function(t,n){return e.onRenderPersona(t,n)}))))},t.prototype.onResolvedSuggestions=function(e){return e.filter(function(e){return e.isResolved})},t.prototype.updatePersonas=function(e){this.setState({personas:e}),this.props.onChange&&this.props.onChange(this.filterOwners(e,!1),this.filterOwners(e,!0))},t.prototype.filterOwners=function(e,t){return e.filter(function(e){return!!e.isGroupOwner===t})},t.prototype.convertPersonToPersona=function(e,t){var n=(0,a.W_)((0,a.W_)({},e),{imageUrl:e.image,isGroupOwner:!!t,type:e.entityType});return n.contextualMenuTitle=this.getContextualMenuTitle(n),n},t.prototype.onSelectedPersonasChange=function(e){var t=this;if(e){var n=e.filter(function(e){return!t.state.personas.some(function(t){return e.email===t.email})}),a=this.state.personas.filter(function(t){return e.some(function(e){return e.email===t.email})});n.forEach(function(e){var n=t.convertPersonToPersona(e);a.push(n),t.setState({announced:i.createElement(r.A8$,{message:c.OO(v.h,e.name),"aria-live":"assertive"})})}),this.updatePersonas(a)}else this.updatePersonas([])},t.prototype.getMemberStatusMenuItems=function(e){var t=this,n=[];return n.push({name:v.c,key:"member",onClick:function(){t.changeMembership(e,!1)},canCheck:!0,checked:!e.isGroupOwner},{name:v.d,key:"owner",onClick:function(){t.changeMembership(e,!0)},canCheck:!0,checked:!!e.isGroupOwner}),n},t.prototype.changeMembership=function(e,t){e.isGroupOwner=t,e.contextualMenuTitle=this.getContextualMenuTitle(e),this.updatePersonas((0,a.AE)([],this.state.personas,!0))},t.prototype.getContextualMenuTitle=function(e){return e.isGroupOwner?v.d:v.c},t.prototype.onRenderPersona=function(e,t){var n=this,a=e,s=this.getPersonaControl(a),d=c.OO(v.p,a.name);return i.createElement(r.z5q,{className:"sp-addMember-persona",title:a.name,"aria-label":a.name,role:"listitem",key:t,direction:r.GIy.horizontal,isCircularNavigation:!0,"data-is-focusable":!0,allowFocusRoot:!this.isGroupMembershipPickerA11yKSActive||void 0,tabIndex:this.isGroupMembershipPickerA11yKSActive?void 0:0},i.createElement("div",{className:"sp-addMember-persona-personName"},s),i.createElement(o.hYu,{onClick:function(){n.peoplePicker.focusInput();var e=n.state.personas.filter(function(e,n){return n!==t});n.updatePersonas(e)},iconProps:{iconName:"Cancel"},className:"sp-addMember-persona-removeMemberButton","data-is-focusable":!0,ariaLabel:d,title:d}))},t.prototype.getPersonaControl=function(e){return i.createElement(o.nuF,{className:this.isGroupMembershipPickerA11yKSActive?void 0:"sp-addMember-personaControl",imageUrl:e.imageUrl,primaryText:e.name,size:r.fXG.size40,hidePersonaDetails:!1,onRenderPersonaCoin:this.wrapPersonaCoin(e),onRenderPrimaryText:this.wrapPersonaText(e),"data-automationid":"GroupMemberPersona",coinSize:this.isGroupMembershipPickerA11yKSActive?40:void 0},i.createElement(g,{menuItems:this.props.canChangeMemberStatus?this.getMemberStatusMenuItems(e):null,title:e.contextualMenuTitle||"",showSpinner:e.showSpinner,buttonLabel:v.k,focusZoneProps:{shouldFocusInnerElementWhenReceivedFocus:!0,"data-is-focusable":!0}}))},t.prototype.wrapPersonaCoin=function(e){var t=this;return function(n,o){var s=i.createElement("div",{className:"sp-addMember-persona-lpcpersonacoin","aria-hidden":!!t.isGroupMembershipPickerA11yKSActive||void 0,"data-is-focusable":!t.isGroupMembershipPickerA11yKSActive},t.isPersonaCoinKSActive?o(n):i.createElement(r.sB6,(0,a.W_)({},n))),c=t.makeDeferredLpcProps(e,s);return(0,l.b)(c,s)}},t.prototype.wrapPersonaText=function(e){var t=this;return function(n,a){var r=i.createElement("div",{className:"sp-addMember-persona-lpcpersonatitle","data-is-focusable":!0},a(n)),o=t.makeDeferredLpcProps(e,r);return(0,l.b)(o,r)}},t.prototype.makeDeferredLpcProps=function(e,t){return{personaType:e&&2===e.type?"Group":"User",identifier:e&&e.email,pageContext:this.props.pageContext,moduleLoader:c.HW.isActivated("d41cdd32-c16a-4c7c-abd5-a6a4f08f057c")?this.props.lpcModuleLoader:void 0,customWaiter:this.props.lpcModuleCustomWaiter,addGroupMembersCallback:void 0,lpcHoverTargetProps:{upn:e&&e.email,hostAppPersonaInfo:{PersonaDisplayName:e&&e.name}},placeHolder:t,forceLoad:!0}},t.prototype.shouldEnterInnerZone=function(e){return"Left"===e.key||"ArrowLeft"===e.key||"Right"===e.key||"ArrowRight"===e.key},t}(i.Component),x="ms-groupMember-addMemberInstructions",C=function(e){function t(t){var n=e.call(this,t)||this;return n._headingId="groupMembershipPanelHeading",n._onClickDismiss=function(){n._setIsAddingMembers(!1)},n._onRenderPersona=function(e,t){if(e&&"number"==typeof t){var a=n._getPersonaControl(e);return i.createElement("div",{className:"ms-groupMember-itemBtn",title:e.name,key:t},i.createElement("div",{className:"ms-groupMember-personName"},a))}},n._closePanel=function(){n.setState({showPanel:!1}),n.props.onDismiss&&n.props.onDismiss()},n._onClick=function(){d.Engagement.logData({name:"GroupMembershipPanel.AddMembers.Click",isIntentional:!0}),n._setIsAddingMembers(!0)},n._onCancelClick=function(){d.Engagement.logData({name:"GroupMembershipPanel.Cancel.Click",isIntentional:!0}),n._setIsAddingMembers(!1)},n._onDoneClick=function(){var e,t;d.Engagement.logData({name:"GroupMembershipPanel.Save.Click",isIntentional:!0}),n.props.errorMessageText&&n.props.clearErrorMessage(),(null===(e=n.state.selectedMembers)||void 0===e?void 0:e.length)||(null===(t=n.state.selectedOwners)||void 0===t?void 0:t.length)?n.props.onSave&&(n.setState({showSavingSpinner:!0,saveButtonDisabled:!0}),n.props.onSave(n.state.selectedMembers,n.state.selectedOwners).then(function(){n.setState({isAddingMembers:!1,isAddingGuest:!1,selectedMembers:[],selectedOwners:[],showSavingSpinner:!1,saveButtonDisabled:!0})},function(e){n.setState({showSavingSpinner:!1,saveButtonDisabled:!1})})):n._setIsAddingMembers(!1)},n._logLargeGroupOutlookClick=function(){return d.Engagement.logData({name:"GroupMembershipPanel.LargeGroupSearchLink.Click",isIntentional:!0}),!0},n._logAddGuestsLinkClick=function(){return d.Engagement.logData({name:"GroupMembershipPanel.AddGuestOutlookLink.Click",isIntentional:!0}),!0},n._onSelectedMembersChange=function(e,t){var a=!1;n.props.canAddGuests&&(a=e.some(function(e){return 1===e.entityType})||(null==t?void 0:t.some(function(e){return 1===e.entityType}))),n.setState({selectedMembers:e,selectedOwners:t,isAddingGuest:a,saveButtonDisabled:!e.length&&!(null==t?void 0:t.length)})},n._closeDialog=function(){n.props.onCloseConfirmationDialog&&n.props.onCloseConfirmationDialog()},n._approveDialog=function(){n.props.onApproveConfirmationDialog&&n.props.onApproveConfirmationDialog()},n._dismissErrorMessage=function(){n.props.clearErrorMessage()},n._layerHostSelector=(0,r.QVF)(),n._isPopupAriaLabelKSActive=c.HW.isActivated("6bdc0a0e-c63c-409f-9e55-c2293f9f1edf","05/03/2023","Set an aria-label on the group membership panel popup element"),n.state={showPanel:!0,isAddingMembers:!1,isAddingGuest:!1,selectedMembers:[],selectedOwners:[],showSavingSpinner:!1,saveButtonDisabled:!0},d.Engagement.logData({name:"GroupMembershipPanel.Opened.Click"}),n}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){c.HW.isActivated("d750768e-ca5e-4070-9d2e-2220dac8ba99","01/24/2023","Delete Fluent default layer container to force persona card to render on top of panel")||"body"!==this._layerHostSelector||(0,r.s63)(document.body)},t.prototype.render=function(){var e=this,t=i.createElement(o.tu6,{className:"ms-groupMemberList-spinner"}),n=void 0;this.props.largeGroupMessage&&(n=this._getMessageWithLink(this.props.largeGroupMessage,this.props.outlookLinkText,"ms-groupMember-largeGroupMessage",this._logLargeGroupOutlookClick));var a=this.props?this.props.personas:void 0;a&&a.length>0&&(t=i.createElement(h,{members:a,totalNumberOfMembers:this.props.totalNumberOfMembers,onRenderPersona:this._onRenderPersona,onLoadMoreMembers:this.props.onLoadMoreMembers}));var s=c.HW.isActivated("68420830-6a95-4a80-8418-315e1071a0e2","03/31/2022","Replace group membership picker component");return i.createElement(r.k8Z,{className:"ms-groupMemberPanel",isOpen:this.state.showPanel,type:r.ecV.smallFixedFar,onDismiss:this._closePanel,isLightDismiss:!0,closeButtonAriaLabel:this.props.closeButtonAriaLabel,onRenderFooterContent:function(t,n){return e.state.isAddingMembers?i.createElement("div",{className:"ms-groupMemberButton-div","data-automationid":"GroupMembershipPanelFooter"},i.createElement("span",{className:"ms-groupMemberButton-container"},i.createElement(o.rfU,{disabled:e.state.saveButtonDisabled,onClick:e._onDoneClick,"data-automationid":"AddMembersSaveButton"},e.props.doneButtonText)),i.createElement("span",{className:"ms-groupMemberButton-container"},i.createElement(o.B0k,{onClick:e._onCancelClick,"data-automationid":"AddMembersCancelButton",className:"ms-groupMemberButton-Cancel"},e.props.cancelButtonText))):null},onRenderNavigationContent:function(t,n){return i.createElement("div",{className:"ms-groupMember-NavigationContent"},e.state.isAddingMembers&&i.createElement(o.hYu,{iconProps:{iconName:"Back"},className:"ms-groupMember-BackIcon",onClick:e._onClickDismiss,ariaLabel:v.b}),i.createElement("div",{className:"ms-groupMember-Title".concat(e.state.isAddingMembers?"-AddMembers":""),role:"heading","aria-level":1,"aria-live":"polite",id:e._headingId},e.state.isAddingMembers?e.props.addMembersText:e.props.title),n(t))},focusTrapZoneProps:{forceFocusInsideTrap:!1},popupProps:this._isPopupAriaLabelKSActive?void 0:{ariaLabelledBy:this._headingId}},i.createElement("div",{"data-automationid":"GroupMembershipPanelContents",className:"ms-GroupMembershipPanelContents"},i.createElement(o.X$,{hidden:!this.props.showConfirmationDialog,type:r.r_c.close,onDismiss:this._closeDialog,subText:this.props.confirmationText,isBlocking:!1,closeButtonAriaLabel:this.props.closeButtonAriaLabel},i.createElement(r.j5C,null,i.createElement(o.rfU,{onClick:this._approveDialog},this.props.okButtonText),i.createElement(o.B0k,{onClick:this._closeDialog},this.props.cancelButtonText))),this.props.errorMessageText&&i.createElement("div",{className:"ms-groupMember-errorMessage",role:"alert"},i.createElement(r.usJ,{messageBarType:r.$ep.error,isMultiline:!0,onDismiss:this._dismissErrorMessage,dismissButtonAriaLabel:this.props.dismissErrorMessageAriaLabel},this.props.errorMessageText)),!this.state.isAddingMembers&&i.createElement("div",{"data-automationid":"GroupMembersList"},n,this.props.numberOfMembersText&&i.createElement("div",{"aria-live":"assertive",className:"ms-groupMember-membersCount","data-automationid":"PanelNumberOfMembersText"},this.props.numberOfMembersText),this.props.canAddMembers&&i.createElement("div",{className:"ms-groupMember-AddMemberButtonArea"},i.createElement(o.rfU,{onClick:this._onClick,iconProps:{iconName:"PeopleAdd"},"data-automationid":"AddMembersButton"},this.props.addMembersText)),t),this.state.isAddingMembers&&i.createElement("div",{"data-automationid":"AddMembersView",className:"ms-groupMember-addingDiv"},this.state.isAddingGuest&&i.createElement("div",{className:"ms-groupMember-addingGuest"},i.createElement(r.usJ,{messageBarType:r.$ep.info,isMultiline:!0},this.props.addingGuestText)),this._getAddMemberInstructions(),!s&&this._getMemberOwnerExplanation(),i.createElement("div",{className:"ms-groupMember-peoplePicker","data-automationid":"AddMembersPeoplePicker"},s?i.createElement(f.a,{context:this.props.pageContext,peoplePickerType:p.a.listBelow,peoplePickerQueryParams:this._getPeoplePickerQueryParams(),onSelectedPersonasChange:this._onSelectedMembersChange,inputProps:this._getPeoplePickerInputProps(),dataSource:this.props.peoplePickerDataSource,suggestionsAvailableAlertText:v.q,enableSelectedSuggestionAlert:!0}):i.createElement(I,{pageContext:this.props.pageContext,peoplePickerQueryParams:this._getPeoplePickerQueryParams(),onChange:this._onSelectedMembersChange,peoplePickerDataSource:this.props.peoplePickerDataSource,lpcModuleLoader:O()?this.props.lpcModuleLoader:void 0,lpcModuleCustomWaiter:this.props.lpcModuleCustomWaiter,canChangeMemberStatus:this.props.canChangeMemberStatus})),this.state.showSavingSpinner&&i.createElement(o.tu6,{className:"ms-groupMember-spinner"}))))},t.prototype._makeDeferredLpcProps=function(e,t){return{personaType:e&&2===e.type?"Group":"User",identifier:e&&e.email,pageContext:this.props.pageContext,moduleLoader:O()?this.props.lpcModuleLoader:void 0,customWaiter:this.props.lpcModuleCustomWaiter,addGroupMembersCallback:void 0,lpcHoverTargetProps:{upn:e&&e.email,hostAppPersonaInfo:{PersonaDisplayName:e&&e.name}},shouldOnFocusMoveFocusToTarget:!0,onFocusRender:function(){var e;return null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.focus()}}},t.prototype._wrapPersona=function(e,t,n){var a=this;return function(r,o){var s=i.createRef(),c=i.createElement("div",{className:t,tabIndex:n?0:-1,ref:s},o(r)),d=a._makeDeferredLpcProps(e,s);return(0,l.b)(d,c)}},t.prototype._getPersonaControl=function(e){return i.createElement(o.nuF,{imageUrl:e.imageUrl,primaryText:e.name,size:r.fXG.small,hidePersonaDetails:!1,onRenderCoin:!O()||this.props.lpcModuleLoader?this._wrapPersona(e,"ms-groupMember-lpcpersonacoin"):void 0,onRenderPrimaryText:!O()||this.props.lpcModuleLoader?this._wrapPersona(e,"ms-groupMember-lpcpersonatitle",!0):void 0,"data-automationid":"GroupMemberPersona"},i.createElement(g,{menuItems:this.props.canChangeMemberStatus?e.memberStatusMenuItems:null,title:e.contextualMenuTitle,showSpinner:e.showSpinner}))},t.prototype._getAddMemberInstructions=function(){return this.props.showGuestsMessage&&this.props.addMembersOrGuestsInstructionsText&&this.props.addGuestsLinkText?this._getMessageWithLink(this.props.addMembersOrGuestsInstructionsText,this.props.addGuestsLinkText,x,this._logAddGuestsLinkClick):i.createElement("div",{className:x},this.props.addMembersInstructionsText)},t.prototype._getMemberOwnerExplanation=function(){var e="ms-groupMember-addMemberExplanation",t="ms-groupMember-MemberGroupName";return i.createElement("div",{className:x},i.createElement("div",{className:e},(0,u.a)(v.m,v.l,"span",{className:t})),i.createElement("div",{className:e},(0,u.a)(v.g,v.f,"span",{className:t})),i.createElement("div",{className:e},v.e))},t.prototype._getMessageWithLink=function(e,t,n,a){var r=null;return this.props.membersUrl&&e&&t&&(r=i.createElement("div",{className:n},(0,u.a)(e,t,o.NG4,{href:this.props.membersUrl,onClick:a,target:"_blank",className:"ms-groupMember-link"}))),r},t.prototype._getPeoplePickerQueryParams=function(){var e=this.props,t=e.pageContext,n=e.canAddGuests;return{allowEmailAddresses:!1,allowMultipleEntities:null,allUrlZones:null,enabledClaimProviders:null,forceClaims:null,groupID:0,maximumEntitySuggestions:30,principalSource:15,principalType:1,required:null,urlZone:null,urlZoneSpecified:null,filterExternalUsers:!n,blockExternalUsers:!n,useGraph:!t.enforceIBSegmentFilter,useSubstrate:t.IBSegments&&t.IBSegments.length>0,resolveEmailIfNoResults:!1,conversationId:s.a.generate(),siteIBSegmentIDs:t.IBSegments}},t.prototype._getPeoplePickerInputProps=function(){return{placeholder:this.props.peoplePickerPlaceholderText,"aria-label":v.o,autoFocus:!0}},t.prototype._setIsAddingMembers=function(e){this.setState({isAddingMembers:e,isAddingGuest:!1,selectedMembers:[],selectedOwners:[],saveButtonDisabled:!0}),this.props.errorMessageText&&this.props.clearErrorMessage()},t}(i.Component);function O(){return c.HW.isActivated("d41cdd32-c16a-4c7c-abd5-a6a4f08f057c")}var w=n(96),E=n(1451),A=n(1452),L=n(26),k=n(225),M=n(107),P=function(){function e(e){var t=this;this._onDismiss=function(){if(t._membershipCountChanged)if(t._useCustomerPromise){var e=t._startCustomerPromise("GroupMembershipPanel ReloadMembersOnDismiss","Boot");t._groupsProvider.group.membership.loadWithOptions(4).then(function(){t._endCustomerPromise(e)},function(n){t._failCustomerPromise(e,"GroupMembershipPanel ReloadMembersOnDismiss Failure",n)})}else t._groupsProvider.group.membership.loadWithOptions(4)},this._onLoadMoreMembers=function(){if(t._getNextMembershipPage&&!t._isPageLoading){var e=t._startCustomerPromise("GroupMembershipPanel LoadMoreMembers","Boot");t._isPageLoading=!0,t._currentMembershipPagePromise=t._getNextMembershipPage(),t._currentMembershipPagePromise.then(function(n){var a=t._params.groupMembershipPanelContainer.state,i=a&&a.personas?a.personas:[],r=t._getGroupMemberPersonas(n.page,i.length),o=i.concat(r);t._getNextMembershipPage=n.getNextPagePromise,t._isPageLoading=!1,a.totalNumberOfMembers===t._membershipPager.totalNumberOfMembers?t.setState({personas:o}):t.setState({personas:o,numberOfMembersText:t._getNumberOfMembersText(t._membershipPager.totalNumberOfMembers),totalNumberOfMembers:t._membershipPager.totalNumberOfMembers}),t._endCustomerPromise(e)},function(n){t._isPageLoading=!1,L.c.isCanceled(n)||(t._failCustomerPromise(e,"GroupMembershipPanel LoadMoreMembers Failure",n),t.setState({errorMessageText:t._params.strings.loadingMembersErrorText}),t._getNextMembershipPage=void 0)})}},this._closeConfirmationDialog=function(){t.setState({showConfirmationDialog:!1})},this._onSave=function(e,n){var a=t._startCustomerPromise("GroupMembershipPanel AddMembers","Share");t._membershipCountChanged=!0;var i=e?e.map(function(e){return e.name}):[],r=e?e.map(function(e){return t._extractPrincipalName(e.userId)}):[],o=n?n.map(function(e){return e.name}):[],s=n?n.map(function(e){return t._extractPrincipalName(e.userId)}):[];return c.HW.isActivated("86c0ea0e-6747-41bd-bcc8-54ed3081956d","03/15/2022","Add new owners to both the Owners and Members groups")||(i=i.concat(o),r=r.concat(s)),t._groupsProvider.addUsersToGroup(t._pageContext.groupId,null,null,s,r).then(function(e){t._updateGroupInformation(!1,a)},function(e){return t._failCustomerPromise(a,"GroupMembershipPanel AddMembers Failure"),t._setAddMembersErrorMessage(e,o,i),L.c.reject(e)})},this._clearErrorMessage=function(){t.setState({errorMessageText:void 0})},this._params=e,this._pageContext=e.pageContext,this._isAddRemoveGuestsFeatureEnabled=c.IT.isFeatureEnabled({ODB:208,ODC:null,Fallback:!1}),this._membershipCountChanged=!1,this._useCustomerPromise=!c.HW.isActivated("3fed9d15-5778-4d9b-9bda-f53861e4e2f4","1/25/2024","Log CustomerPromise in GroupMembershipPanel")}return e.prototype.componentDidMount=function(){var e=this,t=this._startCustomerPromise("GroupMembershipPanel Init","Boot");this._params.getGroupsProvider().done(function(n){if(!n){var a=new Error("GroupMembershipStateManager fatal error: Groups provider not available.");throw e._failCustomerPromise(t,"GroupMembershipPanel Init Provider Not Available Failure",a),a}if(e._groupsProvider=n,!e._groupsProvider.group)throw a=new Error("GroupMembershipStateManager fatal error: Groups provider does not have an observed group."),e._failCustomerPromise(t,"GroupMembershipPanel Init No Group Failure",a),a;e._isMembershipDynamic=!c.HW.isActivated("56213E86-E001-42AD-B118-4A79CA1A90B4")&&!0===e._groupsProvider.group.isDynamic,e._checkOwnersCanAddGuests().then(function(n){e._ownersCanAddGuests=n,e._groupsProvider.currentUser?e._updateGroupInformation(!0,t):e._groupsProvider.getCurrentUser().then(function(){e._updateGroupInformation(!0,t)},function(n){e._failCustomerPromise(t,"GroupMembershipPanel Init Get Current User Failure",n),e._setErrorMessage(n)})})})},e.prototype.componentWillUnmount=function(){},e.prototype.getRenderProps=function(e,t){var n=this._params,a=this._pageContext,i=n.groupMembershipPanelContainer.state,r=!c.HW.isActivated("E3ECD103-34DE-4ECA-9914-74D9110BB09C"),o=c.HW.isActivated("de53a9d3-ff77-45a6-9e2a-b214436b45f9","6/9/2021","for IBMode = implicit, do not render add members button");return{title:null!==i?i.title:n.strings.title,onDismiss:this._onDismiss,personas:null!==i?i.personas:null,onLoadMoreMembers:this._onLoadMoreMembers,canAddMembers:!this._isMembershipDynamic&&(o||a&&a.IBMode!==w.b.Implicit)&&(i&&i.currentUserIsOwner||a&&a.groupType&&a.groupType===E.a.public),canAddGuests:!this._isMembershipDynamic&&i&&i.currentUserIsOwner&&this._ownersCanAddGuests&&this._isAddRemoveGuestsFeatureEnabled,showGuestsMessage:!this._isMembershipDynamic&&i&&i.currentUserIsOwner&&this._ownersCanAddGuests&&r,canChangeMemberStatus:!this._isMembershipDynamic&&i&&i.currentUserIsOwner,numberOfMembersText:null!==i?i.numberOfMembersText:void 0,totalNumberOfMembers:null!=i?i.totalNumberOfMembers:void 0,largeGroupMessage:null!=i?i.largeGroupMessage:void 0,membersUrl:this._groupsProvider?this._groupsProvider.group.membersUrl:void 0,outlookLinkText:n.strings.searchLinkText,showConfirmationDialog:null!==i&&i.showConfirmationDialog,onApproveConfirmationDialog:null!=i?i.onApproveConfirmationDialog:void 0,onCloseConfirmationDialog:this._closeConfirmationDialog,okButtonText:n.strings.okButtonText,confirmationText:n.strings.confirmationText,lpcModuleLoader:e,lpcModuleCustomWaiter:t,pageContext:this._pageContext,addMembersText:n.strings.addMembersText,doneButtonText:n.strings.doneButtonText,cancelButtonText:n.strings.cancelButtonText,addMembersInstructionsText:n.strings.addMembersInstructionsText,addMembersOrGuestsInstructionsText:n.strings.addMembersOrGuestsInstructionsText,addGuestsLinkText:n.strings.addGuestsLinkText,peoplePickerPlaceholderText:n.strings.peoplePickerPlaceholderText,onSave:this._onSave,addingGuestText:n.strings.addingGuestText,closeButtonAriaLabel:n.strings.closeButtonAriaLabel,dismissErrorMessageAriaLabel:n.strings.dismissErrorMessageAriaLabel,errorMessageText:null!==i?i.errorMessageText:void 0,clearErrorMessage:this._clearErrorMessage,peoplePickerDataSource:n.peoplePickerDataSource}},e.prototype._updateGroupInformation=function(e,t){var n=this;void 0===e&&(e=!1);var a=this._groupsProvider.group;e&&a.membership.source!==A.a.None&&this.setState({title:this._params.strings.title,currentUserIsOwner:!!a.membership.isOwner,numberOfMembersText:this._getNumberOfMembersText(a.membership.totalNumberOfMembers),errorMessageText:void 0}),this._isPageLoading&&this._currentMembershipPagePromise&&(this._currentMembershipPagePromise.cancel(),this._isPageLoading=!1),this._membershipPager=this._groupsProvider.getMembershipPager(),this._membershipPager.loadPage(0).then(function(e){var a=n._getGroupMemberPersonas(e.page,0);n._getNextMembershipPage=e.getNextPagePromise,n._endCustomerPromise(t),n.setState({title:n._params.strings.title,personas:a,currentUserIsOwner:n._membershipPager.isOwner,numberOfMembersText:n._getNumberOfMembersText(n._membershipPager.totalNumberOfMembers),totalNumberOfMembers:n._membershipPager.totalNumberOfMembers,totalNumberOfOwners:n._membershipPager.totalNumberOfOwners,largeGroupMessage:n._getLargeGroupMessage(n._membershipPager.totalNumberOfMembers),errorMessageText:void 0})},function(e){n._failCustomerPromise(t,"GroupMembershipPanel Load Members Failure",e),n.setState({errorMessageText:n._params.strings.loadingMembersErrorText})})},e.prototype._checkOwnersCanAddGuests=function(e){var t=this;return this._groupsProvider.group.allowToAddGuests&&this._params.getGroupSiteProvider?this._params.getGroupSiteProvider().then(function(e){var t;return e&&(t=e.getGroupCreationContext()),t}).then(function(e){var t;return e&&(t=e.allowToAddGuests),L.c.resolve(t)},function(n){return t._failCustomerPromise(e,"GroupMembershipPanel Init Check Can Add Guests Failure",n),L.c.resolve(!1)}):L.c.resolve(!1)},e.prototype._getGroupMemberPersonas=function(e,t){var n=this;return e.map(function(e,a){return{name:e.name,email:e.email,imageUrl:e.image,isGroupOwner:e.isOwnerOfCurrentGroup,memberStatusMenuItems:n._getMemberStatusMenuItems(e,a+t),contextualMenuTitle:n._getContextualMenuTitle(e)}})},e.prototype._getNumberOfMembersText=function(e){var t=c.Ot(this._params.strings.membersCountText,this._params.strings.membersCountIntervalsText,e);return c.OO(t,e)},e.prototype._getLargeGroupMessage=function(e){return e>100?(d.Engagement.logData({name:"GroupMembershipPanel.RenderLargeGroup",extraData:{numberOfMembers:e}}),this._params.strings.searchMembersMessage):void d.Engagement.logData({name:"GroupMembershipPanel.RenderSmallGroup",extraData:{numberOfMembers:e}})},e.prototype._getContextualMenuTitle=function(e){return e.isOwnerOfCurrentGroup?this._params.strings.ownerText:1===e.entityType?this._params.strings.guestText:this._params.strings.memberText},e.prototype._getMemberStatusMenuItems=function(e,t){var n=this,a=[];return 1!==e.entityType?a.push({name:this._params.strings.memberText,key:"member",onClick:function(a){n._makeMember(e,t)},canCheck:!0,checked:!e.isOwnerOfCurrentGroup},{name:this._params.strings.ownerText,key:"owner",onClick:function(a){n._makeOwner(e,t)},canCheck:!0,checked:!!e.isOwnerOfCurrentGroup},{name:this._params.strings.removeFromGroupText,key:"remove",onClick:function(a){n._removeFromGroup(e,t)},canCheck:!1,checked:!1}):this._ownersCanAddGuests&&this._isAddRemoveGuestsFeatureEnabled&&a.push({name:this._params.strings.removeFromGroupText,key:"remove",onClick:function(a){n._removeFromGroup(e,t)},canCheck:!1,checked:!1}),a},e.prototype._makeMember=function(e,t){var n=this;d.Engagement.logData({name:"GroupMembershipPanel.MakeMember.Click"});var a=this._startCustomerPromise("GroupMembershipPanel MakeMember","Share");e.isOwnerOfCurrentGroup?this._params.groupMembershipPanelContainer.state&&this._params.groupMembershipPanelContainer.state.totalNumberOfOwners<2?(this._failCustomerPromise(a,"GroupMembershipPanel MakeMember Last Owner Failure"),this.setState({errorMessageText:this._params.strings.demoteLastOwnerErrorText})):e.userId===this._groupsProvider.currentUser.userId?this._launchConfirmationDialog(function(){n.setState({showConfirmationDialog:!1}),n._changeGroupOwnerToMember(e,t,a)},function(){n._endCustomerPromise(a)}):this._changeGroupOwnerToMember(e,t,a):this._failCustomerPromise(a,"GroupMembershipPanel MakeMember Not Owner Failure")},e.prototype._changeGroupOwnerToMember=function(e,t,n){var a=this,i=this._params.groupMembershipPanelContainer.state.personas,r=i[t].contextualMenuTitle,o=i[t].memberStatusMenuItems;this._membershipCountChanged=!0,this._setMemberStatusToUpdating(t),(c.HW.isActivated("1c3cdbf6-cc6b-44fb-ba36-efc51b9c4cd4","03/15/2022","Fix for owners not also listed as members")?L.c.resolve(!0):e.userId===this._groupsProvider.currentUser.userId?this._groupsProvider.isUserInGroup(this._pageContext.groupId):this._groupsProvider.loadMembershipContainerFromServer(this._pageContext.groupId,!1,!0,e.principalName).then(function(e){return e.isMember})).then(function(t){if(!t)return a._groupsProvider.addUserToGroupMembership(a._pageContext.groupId,e.userId)}).then(function(){return a._groupsProvider.removeUserFromGroupOwnership(a._pageContext.groupId,e.userId)}).then(function(){return a._updateGroupInformation(!1,n)},function(e){a._failCustomerPromise(n,"GroupMembershipPanel MakeMember Failure",e),a._setErrorMessage(e),a._undoSetMemberStatusToUpdating(t,r,o)})},e.prototype._launchConfirmationDialog=function(e,t){this.setState({showConfirmationDialog:!0,onApproveConfirmationDialog:e,onCloseConfirmationDialog:t})},e.prototype._makeOwner=function(e,t){var n=this;d.Engagement.logData({name:"GroupMembershipPanel.MakeOwner.Click"});var a=this._startCustomerPromise("GroupMembershipPanel MakeOwner","Share");if(e.isOwnerOfCurrentGroup)this._failCustomerPromise(a,"GroupMembershipPanel MakeOwner Already Owner Failure");else{var i=this._params.groupMembershipPanelContainer.state.personas,r=i[t].contextualMenuTitle,o=i[t].memberStatusMenuItems;this._setMemberStatusToUpdating(t),this._groupsProvider.addUserToGroupOwnership(this._pageContext.groupId,e.userId).then(function(){n._updateGroupInformation(!1,a)},function(e){n._failCustomerPromise(a,"GroupMembershipPanel MakeOwner Failure",e),n._setErrorMessage(e),n._undoSetMemberStatusToUpdating(t,r,o)})}},e.prototype._removeFromGroup=function(e,t){var n=this;d.Engagement.logData({name:"GroupMembershipPanel.RemovePerson.Click"});var a=this._startCustomerPromise("GroupMembershipPanel RemoveMember","Share");e.isOwnerOfCurrentGroup?this._params.groupMembershipPanelContainer.state&&this._params.groupMembershipPanelContainer.state.totalNumberOfOwners<2?(this._failCustomerPromise(a,"GroupMembershipPanel RemoveMember Last Owner Failure"),this.setState({errorMessageText:this._params.strings.removeLastOwnerErrorText})):e.userId===this._groupsProvider.currentUser.userId?this._launchConfirmationDialog(function(){n.setState({showConfirmationDialog:!1}),n._removeOwnerFromGroup(e,t,a)},function(){n._endCustomerPromise(a)}):this._removeOwnerFromGroup(e,t,a):this._removeMemberFromGroup(e,t,a)},e.prototype._removeOwnerFromGroup=function(e,t,n){var a=this,i=this._params.groupMembershipPanelContainer.state.personas,r=i[t].contextualMenuTitle,o=i[t].memberStatusMenuItems;this._membershipCountChanged=!0,this._setMemberStatusToUpdating(t),this._groupsProvider.removeUserFromGroupOwnership(this._pageContext.groupId,e.userId).then(function(){return c.HW.isActivated("1c3cdbf6-cc6b-44fb-ba36-efc51b9c4cd4","03/15/2022","Fix for owners not also listed as members")?L.c.resolve(!0):e.userId===a._groupsProvider.currentUser.userId?a._groupsProvider.isUserInGroup(a._pageContext.groupId):a._groupsProvider.loadMembershipContainerFromServer(a._pageContext.groupId,!1,!0,e.principalName).then(function(e){return e.isMember})},function(e){a._failCustomerPromise(n,"GroupMembershipPanel RemoveMember Removing Owner Failure",e),a._setErrorMessage(e),a._undoSetMemberStatusToUpdating(t,r,o)}).then(function(i){i?a._groupsProvider.removeUserFromGroupMembership(a._pageContext.groupId,e.userId).then(function(){a._processingAfterRemoveMember(e.userId,n)},function(e){a._failCustomerPromise(n,"GroupMembershipPanel RemoveMember Removing Member Failure",e),a._setErrorMessage(e),a._undoSetMemberStatusToUpdating(t,r,o)}):a._processingAfterRemoveMember(e.userId,n)})},e.prototype._removeMemberFromGroup=function(e,t,n){var a=this,i=this._params.groupMembershipPanelContainer.state.personas,r=i[t].contextualMenuTitle,o=i[t].memberStatusMenuItems;this._membershipCountChanged=!0,this._setMemberStatusToUpdating(t),this._groupsProvider.removeUserFromGroupMembership(this._pageContext.groupId,e.userId).then(function(){a._processingAfterRemoveMember(e.userId,n)},function(e){a._failCustomerPromise(n,"GroupMembershipPanel RemoveMember Removing Member Failure",e),a._setErrorMessage(e),a._undoSetMemberStatusToUpdating(t,r,o)})},e.prototype._setMemberStatusToUpdating=function(e){var t=this._params.groupMembershipPanelContainer.state.personas.concat([]);t[e].showSpinner=!0,t[e].contextualMenuTitle=this._params.strings.updatingText,t[e].memberStatusMenuItems=void 0,this.setState({personas:t})},e.prototype._undoSetMemberStatusToUpdating=function(e,t,n){var a=this._params.groupMembershipPanelContainer.state.personas.concat([]);a[e].showSpinner=!1,a[e].contextualMenuTitle=t,a[e].memberStatusMenuItems=n,this.setState({personas:a})},e.prototype._processingAfterRemoveMember=function(e,t){e===this._groupsProvider.currentUser.userId&&this._pageContext.groupType!==E.a.public?(this._endCustomerPromise(t),this._navigateOnRemoveMember()):this._updateGroupInformation(!1,t)},e.prototype._navigateOnRemoveMember=function(){this._params.onMemberRemoved?this._params.onMemberRemoved():window.open(this._getSharePointHomePageUrl(),"_self")},e.prototype._getSharePointHomePageUrl=function(){var e=this._pageContext.webAbsoluteUrl,t=this._pageContext.webServerRelativeUrl;return e&&t?e.replace(t,"")+"/_layouts/15/sharepoint.aspx":void 0},e.prototype.setState=function(e){this._params.groupMembershipPanelContainer.setState(e)},e.prototype._setErrorMessage=function(e){var t=this._params.strings.serverErrorMessage;e&&e.message&&e.message.value&&(t=e.message.value),this.setState({errorMessageText:t})},e.prototype._setAddMembersErrorMessage=function(e,t,n){var a=[],i=[];if(e&&e.hasError&&e.items)for(var r=e.items,o=0;o<r.length;o++){var s=r[o].error;s&&(s.code||s.message)&&(o<t.length?i.push(t[o]):a.push(n[o-t.length]))}var d="";1===a.length?d=d+" "+c.OO(this._params.strings.addMemberFailedSingularText,a[0]):a.length>=2&&(d=d+" "+c.OO(this._params.strings.addMemberFailedPluralText,a.join(", "))),d||(d=this._params.strings.addMemberFailedText),this.setState({errorMessageText:d})},e.prototype._extractPrincipalName=function(e){var t=e;if(t){var n=e.lastIndexOf("|");if(-1!==n){var a=t.substring(n+1);return M.a.encodeRestUriStringToken(a)}}return M.a.encodeRestUriStringToken(t)},e.prototype._startCustomerPromise=function(e,t){return this._useCustomerPromise?new k.CustomerPromise({scenario:e,pillar:t,spPageContext:this._pageContext}):null},e.prototype._failCustomerPromise=function(e,t,n){this._useCustomerPromise&&e&&e.end({resultType:k.ResultTypeEnum.Failure,veto:t,extraData:n?{errorMessage:"string"==typeof n?n:n.message}:void 0})},e.prototype._endCustomerPromise=function(e){this._useCustomerPromise&&e&&e.end({resultType:k.ResultTypeEnum.Success})},e}(),T=n(7570),U=n(42),F=n(274),H=n(994),R=n(538),N=n(1821),B=n(363),j=n(1818),V=function(e){function t(t){var n=e.call(this,t)||this;return n._resources=t.hostModel.resources,n._pageContext=n._resources.consume(U.n),n._bundleLoader=n._resources.consume(F.a),n._state=new P({groupMembershipPanelContainer:n,pageContext:n._pageContext,getGroupsProvider:n._getGroupsProvider.bind(n),getGroupSiteProvider:n._getGroupSiteProvider.bind(n),peoplePickerDataSource:n._resources.consume(j.resourceKey),strings:{title:T.D,memberText:T.t,ownerText:T.w,updatingText:T.E,guestText:T.o,removeFromGroupText:T.x,membersCountText:T.s,membersCountIntervalsText:T.r,addMembersText:T.g,doneButtonText:T.A,cancelButtonText:T.i,removeLastOwnerErrorText:T.y,demoteLastOwnerErrorText:T.l,addMembersInstructionsText:T.e,addMembersOrGuestsInstructionsText:T.f,addGuestsLinkText:T.a,peoplePickerPlaceholderText:T.m,addMemberFailedSingularText:T.c,addMemberFailedPluralText:T.b,addMemberFailedText:T.d,serverErrorMessage:T.n,largeGroupMessage:T.p,outlookLinkText:T.v,searchMembersMessage:T.C,searchLinkText:T.B,closeButtonAriaLabel:T.j,dismissErrorMessageAriaLabel:T.k,okButtonText:T.u,confirmationText:T.z,addingGuestText:T.h,loadingMembersErrorText:T.q}}),n}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){this._state.componentDidMount()},t.prototype.componentWillUnmount=function(){this._state.componentWillUnmount()},t.prototype.render=function(){var e=(0,B.a)(),t=this._state.getRenderProps(e,this._bundleLoader.waitForPLT());return i.createElement(C,(0,a.W_)({},t))},t.prototype._getGroupsProvider=function(){var e=this._resources;return e.isExposed(R.a)?e.consume(R.a):null},t.prototype._getGroupSiteProvider=function(){var e=this._resources;return e.isExposed(H.a)?L.c.wrap(e.consume(H.a)):L.c.wrap(new N.GroupSiteProvider({pageContext:this._pageContext}))},t}(i.Component);const z=V}
,2552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GroupifyPanelContainer:()=>c,default:()=>d});var a=n("tslib_102");(0,n("fui.util_43").pZ)([{rawString:".groupifyPanelContainer{top:50px}.groupifyPanelContainer .ms-Panel-content{padding-left:0;padding-right:0}.groupifyPanelContainer .ms-Panel-scrollableContent{overflow-y:hidden}"}]);var i=n("react-lib"),r=n(42),o=n(2666),s=n("fui.lco_496"),c=function(e){function t(t){var n=e.call(this,t)||this;n._onIframeLoaded=function(e){};var a=t.hostModel.resources;return n._pageContext=a.consume(r.n),n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e={url:this._pageContext.siteAbsoluteUrl+"/_layouts/15/creategroup.aspx?mode=connectgroup",onLoad:this._onIframeLoaded,isExcludeFromScreenReader:!0,panelProps:{className:"groupifyPanelContainer",customWidth:"940px",onDismiss:this.props.onDismiss,hasCloseButton:!1,isLightDismiss:!0,isOpen:!0,type:s.ecV.custom}};return i.createElement(o.a,(0,a.W_)({},e))},t}(i.Component);const d=c}
,2551:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HubSettingsPanelContainer:()=>d,default:()=>l});var a=n("tslib_102"),i=n("react-lib"),r=n(2950),o=n(2949),s=n(42),c=n(2258),d=function(e){function t(t){var n=e.call(this,t)||this,a=t.hostModel.resources,i=a.consume(s.n);return n._state=new o.a({hubSettingsPanelContainer:n,emptyImageUrl:c.c(a,"photo",96),pageContext:i,onSaved:n.onSaved}),n}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){this._state.componentDidMount()},t.prototype.componentWillUnmount=function(){this._state.componentWillUnmount()},t.prototype.render=function(){return i.createElement(r.a,(0,a.W_)({},this._state.getRenderProps()))},t.prototype.onSaved=function(){window.location.reload()},t}(i.Component);const l=d}
,2556:(e,t,n)=>{"use strict";n.d(t,{a:()=>C});var a=n("tslib_102"),i=n("react-lib"),r=n("prop-types-lib"),o=n(6992),s=n(6991),c=n("odsp.util_578"),d=n(434),l=n(4),u=n(536),f=n(64),p=n(531),m=n(1404),_=n(130),h=n(23),b=n(105),g=n(203),v=n(60),y=c.HW.isActivated("53A1449A-9FDC-48A1-81C0-ADE2DFCBF340","2/4/2021","Freeze store when KO pivots are active"),S=(0,b.createContextualControlHandlerProvider)({itemsScope:g.a});function D(e){var t=e.isKnockoutShimPivot,n=e.freezeForKnockoutShimContent,a=i.useRef();t||(a.current=e.currentItemKey);var r=a.current,o=i.useCallback(function(e,a){return t&&n?{currentItemKey:r}:{}},[t,r,n]),s=i.useMemo(function(){return{itemsScope:o}},[o]);return!r&&n?null:i.createElement(S,{value:s},e.children)}var I=(0,l.c)(function(e,t){var n,a=t.freezeForKnockoutShimContent,r=void 0!==a&&a,o=(0,h.a)(e).itemsScopeItemKey,s=null===(n=e.demandItemFacet(v.c,o))||void 0===n?void 0:n.itemKey,d=e.demandItemFacet(_.b,o);return c.HW.isActivated("019FFBDD-E9BB-40DB-B2DE-F519C242B84F","12/9/2021","Freeze current item key when transitioning away from ItemsScope pivots")?i.createElement(m.a,{mode:d&&r?"freeze":"none",fallback:null},t.children):i.createElement(D,{currentItemKey:s,isKnockoutShimPivot:d,freezeForKnockoutShimContent:r},t.children)}),x=function(e){function t(t,n){return e.call(this,t,n)||this}return(0,a.XJ)(t,e),t.prototype.getChildContext=function(){return{currentItemsScope:this.context.dependencies.itemsScopeItemKey}},t.prototype.render=function(){var e=i.createElement(f.a,{resources:this.context.dependencies.resources},this.props.children),t=y?e:i.createElement(I,{freezeForKnockoutShimContent:this.props.freezeForKnockoutShimContent},e);return this.context.currentItemsScope?t:i.createElement(d.a,{store:this.context.dependencies.itemCacheStore,itemsScopeItemKey:this.context.dependencies.itemsScopeItemKey},t)},t.contextTypes=(0,a.W_)((0,a.W_)({},o.a),{currentItemsScope:r.string}),t.childContextTypes={currentItemsScope:r.string},t}(i.PureComponent),C=(0,s.a)("CurrentItemsScope",x,{itemsScopeItemKey:u.a,itemCacheStore:p.a,resources:c.lh})}
,2549:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SitePermissionsPanelContainer:()=>Fe,default:()=>He});var a,i,r,o,s=n("tslib_102"),c=n(96),d=n(1941),l=n(641),u=n(1448),f=n(24),p=n(7075),m=n(470),_=n(26),h=n(4029),b=n(43),g=n("odsp.util_578"),v=n(7077),y=function(e){function t(t){var n=e.call(this,{dataSourceName:"SharingSiteDataSource"},{pageContext:t})||this,a=(0,c.h)(n._pageContext);return n._getSharingSettingsUrl=a+"/_api/SP.Web.GetObjectSharingSettings?$expand=ObjectSharingInformation,SharePointSettings/PickerProperties",n._shareUrl=a+"/_api/SP.Web.ShareObject",n._getSiteSharingtSettingsUrl=a+"/_api/web?$select=MembersCanShare,TenantAdminMembersCanShare,RequestAccessEmail,UseAccessRequestDefault,AccessRequestSiteDescription,AssociatedOwnerGroup,AssociatedMemberGroup&$expand=AssociatedOwnerGroup,AssociatedMemberGroup,AssociatedMemberGroup/AllowMembersEditMembership",n._setSiteSharingSettingsUrl=a+"/_api/web",n._setUseAccessRequestDefaultUrl=a+"/_api/web/SetUseAccessRequestDefaultAndUpdate",n._setUseAccessRequestDescriptiontUrl=a+"/_api/web/SetAccessRequestSiteDescriptionAndUpdate",n._setGroupAllowMembersEditMembershipUrl=a+"/_api/web/SiteGroups({0})",n._getSiteSensitivityLabelInfo=a+"/_api/site/sensitivitylabelinfo",n}return(0,s.XJ)(t,e),t.prototype.getSharingSettings=function(){var e=this;return this._getSharingSettingsRawResponse().then(function(t){return e._parseSettings(t)},function(t){return e._parseError(t)})},t.prototype.getSiteSharingSettings=function(){var e=this;return this.getData(function(){return e._getSiteSharingtSettingsUrl},function(e){return JSON.parse(e).d},"SP.Web.SiteSharingSettings",null,"GET",null,null,null,!0).then(function(t){var n={};return n.membersCanShare=t.MembersCanShare,n.tenantAdminMembersCanShare=t.TenantAdminMembersCanShare,n.requestAccessEmail=t.RequestAccessEmail,n.useAccessRequestDefault=t.UseAccessRequestDefault,n.accessRequestSiteDescription=t.AccessRequestSiteDescription,n.ownersGroup=e.parseSPGroup(t.AssociatedOwnerGroup),n.membersGroup=e.parseSPGroup(t.AssociatedMemberGroup),n},function(t){return e._parseError(t)})},t.prototype.setSiteSharingSettings=function(e){var t=this,n=b.a.generate(),a="multipart/mixed; boundary=batch_"+n,i=[],r=[],o=[];if(void 0===e.membersCanShare&&void 0===e.requestAccessEmail||(i.push(this._setSiteSharingSettingsUrl),o.push("MERGE"),r.push(JSON.stringify({__metadata:{type:"SP.Web"},MembersCanShare:e.membersCanShare,RequestAccessEmail:e.requestAccessEmail}))),void 0!==e.useAccessRequestDefault&&(i.push(this._setUseAccessRequestDefaultUrl),o.push("POST"),r.push(JSON.stringify({useAccessRequestDefault:e.useAccessRequestDefault}))),void 0!==e.accessRequestSiteDescription&&(i.push(this._setUseAccessRequestDescriptiontUrl),o.push("POST"),r.push(JSON.stringify({description:e.accessRequestSiteDescription}))),e.membersGroup&&void 0!==e.membersGroup.id&&void 0!==e.defaultMembersGroupAddMembers&&(i.push(g.OO(this._setGroupAllowMembersEditMembershipUrl,e.membersGroup.id)),o.push("MERGE"),r.push(JSON.stringify({__metadata:{type:"SP.Group"},AllowMembersEditMembership:e.defaultMembersGroupAddMembers}))),0!=i.length){var s=this.getData(function(){return h.DataBatchOperationHelper.getBatchOperationUrl(t._pageContext.webAbsoluteUrl)},function(e){return e},"SP.Web.SetSiteSharingSettings",function(){return h.DataBatchOperationHelper.getBatchContentExtended(n,i,"POST",h.DataBatchOperationHelper.defaultBatchRequestPostData,r,h.DataBatchOperationHelper.defaultBatchAcceptData,o)},"POST",null,a,void 0,void 0,void 0);return new _.c(function(e,t){s.then(function(n){var a=h.DataBatchOperationHelper.processBatchResponse(n);a.hasError?t(a):e(a)},function(e){t(e)})}).then(function(e){},function(e){return _.c.reject(e)})}},t.prototype.shareSite=function(e,n){var a=this;return this.getData(function(){return a._shareUrl},function(e){var a=JSON.parse(e).d,i=[];a.UniquelyPermissionedUsers&&a.UniquelyPermissionedUsers.results&&(i=a.UniquelyPermissionedUsers.results);var r=[];a.InvitedUsers&&a.InvitedUsers.results&&(r=a.InvitedUsers.results);var o={};return o.statusCode=a.StatusCode,o.errorMessage=a.ErrorMessage,o.people=t._parsePeople(i,n.siteUrl),o.invitedUsers=t._parsePeople(r,n.siteUrl),o},"ShareSite",function(){for(var t=[],a=0;a<e.length;a++){var i=e[a];t.push(i.rawPersonData)}n.roleValue===p.a.Edit.toString()?n.roleValue=v.a:n.roleValue===p.a.View.toString()?n.roleValue=v.e:n.roleValue===p.a.Owner.toString()&&(n.roleValue=v.c);var r={url:n.siteUrl,peoplePickerInput:JSON.stringify(t),roleValue:n.roleValue,groupId:n.groupId,sendEmail:n.sendEmail,emailBody:n.message,emailSubject:n.subject,includeAnonymousLinkInEmail:!n.requireSignIn,propagateAcl:n.propagateSharing,useSimplifiedRoles:!0};return JSON.stringify(r)})},t.prototype.getSiteSensitivityLabelInfo=function(){var e=this;return this.getData(function(){return e._getSiteSensitivityLabelInfo},function(e){return JSON.parse(e).d},"SP.Web.SiteSensitivityLabelInfo",null,"GET",null,null,null,!0).then(function(e){var t={};return t.membersCanShare=e.SensitivityLabelInfo.MembersCanShare,t.id=e.SensitivityLabelInfo.Id,t.displayName=e.SensitivityLabelInfo.DisplayName,t},function(e){return{membersCanShare:"None"}})},t.prototype._getSharingSettingsRawResponse=function(){var e=this,t={useSimplifiedRoles:!0};return t.objectUrl=this._pageContext.webAbsoluteUrl,this.getData(function(){return e._getSharingSettingsUrl},function(e){return JSON.parse(e).d},"SP.Web.GetObjectSharingSettings",function(){return JSON.stringify(t)},"POST",null,null,null,!0)},t._parsePeople=function(e,n){return e.map(function(e){var a={siteUrl:n,role:t._parseSharingRole(e.CurrentRole),statusCode:Number(!e.Status),errorMessage:e.Message||null};return{name:e.DisplayName,email:e.Email,userId:e.UserId,sharingInfo:a}})},t._parseSharingRole=function(e){switch(e){case 0:return p.a.None;default:return p.a.View;case 2:return p.a.Edit}},t.prototype._parseError=function(e){var t={};return t.sharingApiErrorMessage=e.message.value,t},t.prototype._parseSettings=function(e){var t={};t.canSendEmail=e.canSendEmail,t.pickerProperties={},t.itemUrl=e.itemUrl,t.mailSettings={defaultCharacterLimit:500},t.itemId=e.ItemId,t.itemName=e.ItemName,t.canManagePermissions=e.ObjectSharingInformation.CanManagePermissions,t.canSendEmail=e.CanSendEmail,t.pickerProperties={},t.supportsSharingPropagation=e.SupportsAclPropagation,t.showAdditionalExternalWarning=e.ShowExternalSharingWarning,t.sharedWithMany=e.ObjectSharingInformation.IsSharedWithSecurityGroup||e.ObjectSharingInformation.IsSharedWithMany,t.blockPeoplePickerAndSharing=e.BlockPeoplePickerAndSharing,t.canCurrentUserShareExternally=e.CanCurrentUserShareExternally,e.SharePointSettings&&e.SharePointSettings.PickerProperties&&this._setPickerProperties(e.SharePointSettings.PickerProperties,e.SharePointSettings.PickerProperties.PrincipalAccountType,t);var n=[];if(e.SimplifiedRoles&&e.SimplifiedRoles.results)for(var a=0;a<e.SimplifiedRoles.results.length;a++){var i={};i.name=e.SimplifiedRoles.results[a].Key,i.value=e.SimplifiedRoles.results[a].Value,n.push(i)}return t.sharingRoles=n,t.showAdvanced=t.canManagePermissions,t},t.prototype.parseSPGroup=function(e){return{id:e.Id,loginName:e.LoginName,principalType:e.PrincipalType,title:e.Title,allowMembersEditMembership:e.AllowMembersEditMembership,description:e.Description}},t.prototype._setPickerProperties=function(e,t,n){n.pickerProperties=e,n.pickerProperties.PrincipalAccountType=this._convertPrincipalType(t)},t.prototype._convertPrincipalType=function(e){if(!e)return 0;for(var t=0,n=0,a=e.split(",");n<a.length;n++){var i=a[n];"User"===i?t|=1:"DL"===i?t|=2:"SecGroup"===i?t|=4:"SPGroup"===i&&(t|=8)}return t},t}(m.b),S=function(){function e(e){this._dataSource=e.sharingSiteDataSource||new y(e.pageContext)}return e.prototype.getSharingSettings=function(){return this._dataSource.getSharingSettings()},e.prototype.shareSite=function(e,t){return this._dataSource.shareSite(e,t)},e.prototype.getSiteSharingSettings=function(){return this._dataSource.getSiteSharingSettings()},e.prototype.setSiteSharingSettings=function(e){return this._dataSource.setSiteSharingSettings(e)},e.prototype.getSiteSensitivityLabelInfo=function(){return this._dataSource.getSiteSensitivityLabelInfo()},e}(),D=n(870),I=function(e){function t(t){return e.call(this,{dataSourceName:"SitePermissionsDataSource"},{pageContext:t})||this}return(0,s.XJ)(t,e),t.prototype.getSiteGroupsAndUsers=function(e){var t=this,n=e?"":"?$expand=Users";return this.getData(function(){return t._getUrl("web/SiteGroups"+n)},function(e){return t._parseSiteGroupsAndUsers(e)},"GetSiteGroupsAndUsers",void 0,"GET")},t.prototype.getSiteGroupAndUsersById=function(e){var t=this;return this.dataRequestor.getData({url:this._getUrl("web/SiteGroups/GetById(id=".concat(e,")?")+"$expand=Users"),parseResponse:function(e){return t._parseSiteGroupAndUsers(e)},qosName:"GetSiteGroupAndUsersById",method:"GET",noRedirect:!0})},t.prototype.associatedPermissionGroups=function(){var e=this;return this.getData(function(){return(0,c.h)(e._pageContext)+"/_api/web?$expand=AssociatedOwnerGroup,AssociatedMemberGroup,AssociatedVisitorGroup"},function(t){return e._parseAssociatedPermissionGroups(t)},"associatedPermissionGroups",void 0,"GET")},t.prototype.hubSitePermissionGroups=function(){var e=this;return this.getData(function(){return(0,c.h)(e._pageContext)+"/_api/site?$expand=HubSiteSynchronizableVisitorGroup"},function(t){return e._parseHubSitePermissionGroups(t)},"hubSitePermissionGroups",void 0,"GET")},t.prototype.addRoleAssignment=function(e,t){var n=this;return this.getData(function(){return n._getUrl(g.OO("web/RoleAssignments/addroleassignment(principalid={0},roledefid={1})",e,t))},void 0,"AddRoleAssignment",void 0,"POST",void 0,void 0,3)},t.prototype.removeRoleAssignment=function(e,t){var n=this;return this.getData(function(){return n._getUrl(g.OO("web/RoleAssignments/removeroleassignment(principalid={0},roledefid={1})",e,t))},void 0,"RemoveRoleAssignment",void 0,"POST",void 0,void 0,3)},t.prototype.addUserToGroup=function(e,t){var n=this,a={__metadata:{type:"SP.User"},LoginName:t};return this.getData(function(){return n._getUrl(g.OO("web/sitegroups(id={0})/users",e))},void 0,"addToGroupById",function(){return JSON.stringify(a)},"POST",void 0,void 0,3)},t.prototype.removeFromGroupById=function(e,t){var n=this;return this.getData(function(){return n._getUrl(g.OO("web/sitegroups(id={0})/users/removebyid(id={1})",e,t))},void 0,"removeFromGroupById",void 0,"POST",void 0,void 0,3)},t.prototype.ensureUser=function(e){var t=this,n={logonName:e};return this.getData(function(){return t._getUrl("web/ensureUser")},function(e){return t._parseSiteGroupAndUsers(e)},"ensureUser",function(){return JSON.stringify(n)},"POST",void 0,void 0,3,!0)},t.prototype.getRoleAssignments=function(){var e=this;return this.dataRequestor.getData({url:(0,c.h)(this._pageContext)+"/_api/web/RoleAssignments?$expand=RoleDefinitionBindings",parseResponse:function(t){return e._parseRoleAssignments(t)},qosName:"GetRoleAssignments",method:"GET",noRedirect:!0})},t.prototype._parseSiteGroupsAndUsers=function(e){var t=this,n=JSON.parse(e);return n&&n.d&&n.d.results&&n.d.results.length>0?n.d.results.map(function(e){return t._parseSPUser(e)}):e},t.prototype._parseSiteGroupAndUsers=function(e){var t=JSON.parse(e);return t&&t.d?this._parseSPUser(t.d):void 0},t.prototype._parseSPUser=function(e){var t=this;return{id:e.Id,loginName:e.LoginName,principalType:e.PrincipalType,title:e.Title,email:e.Email,allowMembersEditMembership:e.AllowMembersEditMembership,allowRequestToJoinLeave:e.AllowRequestToJoinLeave,autoAcceptRequestToJoinLeave:e.AutoAcceptRequestToJoinLeave,description:e.Description,users:e.Users&&e.Users.results&&e.Users.results.length>0?e.Users.results.map(function(n){return{id:n.Id,principalId:e.Id,email:n.Email,loginName:n.LoginName,isSiteAdmin:n.IsSiteAdmin,principalType:n.PrincipalType,title:n.Title,urlImage:t._fixUserImage(n)}}):void 0}},t.prototype._parseAssociatedPermissionGroups=function(e){var t=JSON.parse(e),n=[];return t&&t.d&&t.d.AssociatedMemberGroup&&t.d.AssociatedOwnerGroup&&t.d.AssociatedVisitorGroup&&(n[0]=this._getSPUserFromAssociatedGroup(t.d.AssociatedOwnerGroup,5),n[1]=this._getSPUserFromAssociatedGroup(t.d.AssociatedMemberGroup,6),n[2]=this._getSPUserFromAssociatedGroup(t.d.AssociatedVisitorGroup,2)),n},t.prototype._parseHubSitePermissionGroups=function(e){var t=JSON.parse(e),n=[];return t&&t.d&&t.d.HubSiteSynchronizableVisitorGroup&&t.d.HubSiteSynchronizableVisitorGroup.LoginName&&(n[0]=this._getSPUserFromAssociatedGroup(t.d.HubSiteSynchronizableVisitorGroup,2)),n},t.prototype._getSPUserFromAssociatedGroup=function(e,t){return{id:e.Id,loginName:e.LoginName,principalType:e.PrincipalType,title:e.Title,roleType:t}},t.prototype._parseRoleAssignments=function(e){var t={},n=JSON.parse(e);if(n&&n.d&&n.d.results&&n.d.results.length>0){var a=n.d.results;for(var i in a){var r=a[i]&&a[i].PrincipalId,o=[];if(a[i]&&a[i].RoleDefinitionBindings&&a[i].RoleDefinitionBindings.results){var s=a[i].RoleDefinitionBindings.results;for(var c in s){var d=s[c];if(d){var l={id:d.Id,name:d.Name,basePermissions:{High:d.BasePermissions.High,Low:d.BasePermissions.Low},description:d.Description,hidden:d.Hidden,order:d.Order,roleTypeKind:d.RoleTypeKind};o.push(l)}}}t[r]=o}}return t},t.prototype._fixUserImage=function(e){if(1===e.PrincipalType&&e.Email)return(0,D.b)(e.Email)},t.prototype._getUrl=function(e){return"".concat(this._pageContext.webAbsoluteUrl,"/_api/").concat(e)},t}(m.b),x=n(1447),C=function(){function e(e){this._context=e,this._dataSource=new I(this._context),this._siteHeaderLogoAcronymDataSource=new x.b(this._context)}return e.prototype.getAssociatedPermissionGroups=function(){return this._dataSource.associatedPermissionGroups()},e.prototype.getHubSitePermissionGroups=function(){return this._dataSource.hubSitePermissionGroups()},e.prototype.getSiteGroupsAndUsersWithPermissions=function(e){var t=this,n=[];if(e){var a=[];for(var i in e){var r=this._getSiteGroupAndUsersById(e[i],i,n);a.push(r)}return _.c.all(a).then(function(){return t._fixUsersImage(n)})}return _.c.resolve(void 0)},e.prototype.getSiteGroupsAndUsers=function(e){return this._dataSource.getSiteGroupsAndUsers(e)},e.prototype.getRoleAssignments=function(){return this._dataSource.getRoleAssignments().catch(function(e){})},e.prototype._fixUsersImage=function(e){var t=[];return e&&e.length>0&&(e.forEach(function(e){e.users&&e.users.length>0&&e.users.forEach(function(e){e.urlImage||t.push(e)})}),t&&t.length>0)?this._siteHeaderLogoAcronymDataSource.getAcronyms(t.map(function(e){return e.title})).then(function(n){if(n&&n.length>0)for(var a=0;a<n.length;a++)t[a].imageInitials=n[a].acronym,t[a].initialsColor=x.b.decodeAcronymColor(n[a].color);return e},function(){return e}):_.c.resolve(e)},e.prototype._getSiteGroupAndUsersById=function(e,t,n){return this._dataSource.getSiteGroupAndUsersById(e.id).then(function(a){a.roleType=e.roleType,a.users&&a.users.length>0&&a.users.forEach(function(e){e.roleType=a.roleType}),n[t]=a}).catch(function(a){if(403!==a.status)throw a;e.currentUserCannotViewMembers=!0,n[t]=e})},e}(),O=n(41),w=n(1450),E=n(7573),A="federateddirectoryclaimprovider";!function(e){e[e.Limited=0]="Limited",e[e.FullControl=1]="FullControl",e[e.Edit=2]="Edit",e[e.Read=3]="Read"}(o||(o={}));var L=((a={})[1]=o.Limited,a[2]=o.Read,a[3]=o.Edit,a[4]=o.Edit,a[6]=o.Edit,a[5]=o.FullControl,a),k=((i={})[5]=1073741829,i[6]=1073741830,i[2]=1073741826,i),M=((r={})[5]=1,r[6]=48,r[2]=128,r),P=function(){function e(e){var t=this;this._permissionGroups={},this._shareSite=function(e,n,a){var i=t._assignUsersToPermssionGroup(e),r=[];for(var s in t._sharingSiteProvider||(t._sharingSiteProvider=new S({pageContext:t._pageContext})),i)if(i[s]&&i[s].length>0){var c=t._pageContext.isExternalGuestUser&&t._permissionLevelOfCurrentUser!==o.FullControl?"":"group:".concat(t._permissionGroups[s]);r.push(t._sharingSiteProvider.shareSite(i[s],{siteUrl:t._pageContext.webAbsoluteUrl,roleValue:c,sendEmail:t._params.isEmailSharingEnabled&&n,message:a,requireSignIn:!0}))}return _.c.all(r).then(function(e){if(!g.HW.isActivated("5a013444-053c-4234-8a89-3443d47a5952","02/04/2021","Improve share site error handling")&&e&&e.length>0)for(var n in e)if(e[n]&&e[n].errorMessage)return t._setState({shareSiteErrorMsg:t._getShareSiteErrorMsg(e[n])}),!1;return t._setState({showShareSiteOnly:!!t._params.shouldLoadSharePanelOnly}),t._fetchUpdatedPermissions(),!0})},this._onCancel=function(){t._params.shouldLoadSharePanelOnly?t._setState({shouldDismissPanel:!0,shareSiteErrorMsg:null}):t._setState({showShareSiteOnly:!1,shareSiteErrorMsg:null}),t._fetchUpdatedPermissions()},this._onDismiss=function(){t._setState({shareSiteErrorMsg:null})},this._saveHubPermissionSync=function(e){t._setState({showHubSyncToggleSpinner:!0});var n=void 0;O.Engagement.logData({name:e?"SitePermissionsPanel.EnableHubPermSync":"SitePermissionsPanel.DisableHubPermSync",extraData:{isHubSite:t._pageContext.isHubSite}}),(n=t._pageContext.isHubSite?t._hubDataSource.getHubSite(t._pageContext.hubSiteId).then(function(n){return t._hubDataSource.updateHubSite((0,s.W_)((0,s.W_)({},n),{description:n.description||"",enablePermissionsSync:e}))}):t._siteDataSource.setCanSyncHubSitePermissionsProperty(e))&&n.then(function(){t._fetchHubPermissions()},function(e){t._setState({hubPivotErrorString:t._getErrorString(e),showHubSyncToggleSpinner:!1})})},this._addHubUser=function(e){var n;if(O.Engagement.logData({name:"SitePermissions.AddHubUser"}),(null===(n=t._params.sitePermissionsPanelContainer.state)||void 0===n?void 0:n.hubVisitorsCount)>=10)t._setState({isOverHubPermSyncLimit:!0});else{t._setState({showHubSyncToggleSpinner:!0});var a=t._hubSiteGroups&&t._hubSiteGroups[0];a&&e&&t._sitePermissionsDataSource.ensureUser(e.userId).then(function(e){return t._sitePermissionsDataSource.addUserToGroup(String(a.id),e.loginName)}).then(function(){t._fetchHubPermissions()},function(e){t._setState({hubPivotErrorString:t._getErrorString(e),showHubSyncToggleSpinner:!1})})}},this._shareSiteOnlyOnClick=function(){O.Engagement.logData({name:"SitePermissions.ShareSiteOnlyClick"}),t._setState({showShareSiteOnly:!t._params.sitePermissionsPanelContainer.state.showShareSiteOnly,showSavingSpinner:!1})},this._goToOutlookClick=function(){O.Engagement.logData({name:"SitePermissions.GoToOutlookClick"}),t._params.goToOutlookOnClick()};var n=e.pageContext;this._params=e,this._pageContext=n,this._sitePermissionsProvider=new C(n),this._sitePermissionsDataSource=new I(n),this._sharingSiteProvider=new S({pageContext:n}),this._hubDataSource=new d.HubDataSource(n),this._siteDataSource=new l.SiteDataSource(n),this._permissionLevelOfCurrentUser=this._getPermissionLevelOfCurrentUser(),this._isGroup=(0,c.k)(this._pageContext),this._isHubSitePermSyncEnabled=n.isSiteAdmin}return Object.defineProperty(e.prototype,"PERMISSION_STRINGS",{get:function(){var e;return(e={})[o.Edit]=this._strings("edit"),e[o.FullControl]=this._strings("fullControl"),e[o.Read]=this._strings("read"),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"GROUP_NAME_STRINGS",{get:function(){var e;return(e={})[o.FullControl]=this._strings("siteOwners"),e[o.Edit]=this._strings("siteMembers"),e[o.Read]=this._strings("siteVisitors"),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"GROUP_DESCRIPTION_STRINGS",{get:function(){var e;return(e={})[o.FullControl]=this._strings("siteOwnersDescription"),e[o.Edit]=this._strings("siteMembersDescription"),e[o.Read]=this._strings("siteVisitorsDescription"),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HUB_GROUP_NAME_STRINGS",{get:function(){var e;return(e={})[o.Read]=this._strings("hubVisitors"),e},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var e=this;this._fetchUpdatedPermissions(),this._getPickerSettings().then(function(){e._params.sitePermissionsPanelContainer.setState({pickerSettings:e._pickerSettings})})},e.prototype.componentWillUnmount=function(){},e.prototype.getRenderProps=function(e,t){var n=this._params,a=n.sitePermissionsPanelContainer.state,i=a&&a.hubSite&&a.hubSite.enablePermissionsSync,r=void 0;return this._isHubSitePermSyncEnabled&&(r=this._pageContext.isHubSite?i:a&&a.canSyncHubSitePermissions),{sitePermissions:a&&a.sitePermissions,showShareSiteOnly:!(!a||!a.showShareSiteOnly),showSavingSpinner:!(!a||!a.showSavingSpinner),menuItems:this._getPanelAddMenu(),pageContext:this._pageContext,onSave:this._shareSite,onCancel:this._onCancel,onDismiss:this._onDismiss,saveButton:n.shouldLoadSharePanelOnly?this._strings("share"):this._strings("addButton"),advancedPermSettingsUrl:n.advancedPermSettingsUrl,permissionStrings:this.PERMISSION_STRINGS,sitePermissionsContextualMenuItems:this._getSitePermissionsContextualMenuItems(),goToOutlookOnClick:n.goToOutlookOnClick,addMemberDefaultPermissionLevel:n.addMemberDefaultPermissionLevel,sitePreviewLoader:n.sitePreviewLoader,shouldDismissPanel:a&&a.shouldDismissPanel,shouldLoadSharePanelOnly:n.shouldLoadSharePanelOnly,onShareSiteCallback:this._shareSiteOnlyOnClick.bind(this),permissionLevelOfCurrentUser:this._permissionLevelOfCurrentUser,isEmailSharingEnabled:n.isEmailSharingEnabled,pickerSettings:a&&a.pickerSettings,hasCustomizedGroups:a&&a.hasCustomizedGroups,lpcModuleLoader:g.HW.isActivated("d41cdd32-c16a-4c7c-abd5-a6a4f08f057c")?e:void 0,lpcModuleCustomWaiter:t,peoplePickerDataSource:n.peoplePickerDataSource,isDefaultPermissionsChanged:a&&a.isDefaultPermissionsChanged,showHubSyncToggleSpinner:a&&a.showHubSyncToggleSpinner,shareSiteErrorMsg:null==a?void 0:a.shareSiteErrorMsg,shouldHideSiteSharingSettingPanel:U()?void 0:n.shouldHideSiteSharingSettingPanel,strings:U()?void 0:n.strings,descriptionLearnMoreUrl:U()?void 0:n.descriptionLearnMoreUrl,showHubPivot:this._isHubSitePermSyncEnabled&&(this._pageContext.isHubSite||i),onSaveHubPermissionSync:this._saveHubPermissionSync,enableHubPermissionsSync:r,isHubSite:this._pageContext.isHubSite,hubSiteTitle:a&&a.hubSite&&a.hubSite.name,hubSyncControlsAreDisabled:a&&a.hubSite&&!this._pageContext.isHubSite&&!a.hubSite.enablePermissionsSync,hubSitePermissions:a&&a.hubSitePermissions,onAddHubUserCallback:this._addHubUser,hubPivotErrorString:a&&a.hubPivotErrorString,isOverHubPermSyncLimit:a&&a.isOverHubPermSyncLimit,hubVisitorsCount:a&&a.hubVisitorsCount,shouldShowInviteButton:g.HW.isActivated("85471b0f-ddf2-4b02-8230-8abf823eca41","06/09/2021","check for ibmode to show invite button")||this._pageContext.IBMode!==c.b.Implicit,shouldHideAccessRequestsDialog:n.shouldHideAccessRequestsDialog,shareSiteTitle:(0,w.a)(this._pageContext)?this._strings("siteAccessSitePermissionsPanel"):void 0}},e.prototype._setState=function(e){this._params.sitePermissionsPanelContainer.setState(e)},e.prototype._fetchUpdatedPermissions=function(){var e=this;this._sitePermissionsProvider.getAssociatedPermissionGroups().then(function(t){e._associatedGroups=t}).then(function(){return e._checkIfDefaultPermissionsChanged(e._associatedGroups)}).then(function(t){e._isDefaultPermissionsChanged=t,t?e._setState({sitePermissions:void 0,menuItems:e._getPanelAddMenu(),isDefaultPermissionsChanged:!0,hasCustomizedGroups:e._hasCustomizedGroups}):e._sitePermissionsProvider.getSiteGroupsAndUsersWithPermissions(e._associatedGroups).then(function(t){if(t&&t.length){for(var n=0,a=t;n<a.length;n++){var i=a[n],r=L[i.roleType];e._permissionGroups[r]=i.id}var s=t.map(function(t){var n=L[t.roleType];return{personas:e._getPersona(t),title:e.GROUP_NAME_STRINGS[n]||"",description:e.GROUP_DESCRIPTION_STRINGS[n]||"",permLevel:n,permLevelTitle:e._permissionLevelOfCurrentUser!==o.FullControl?"":e.PERMISSION_STRINGS[n]||""}});e._setState({sitePermissions:s,menuItems:e._getPanelAddMenu(),isDefaultPermissionsChanged:!1,hasCustomizedGroups:e._hasCustomizedGroups})}})}),this._fetchHubPermissions()},e.prototype._fetchHubPermissions=function(){var e=this;if(this._isHubSitePermSyncEnabled&&this._pageContext.hubSiteId){this._setState({showHubSyncToggleSpinner:!0});var t,n,a,i,r=[],o=this._hubDataSource.getHubSite(this._pageContext.hubSiteId).then(function(e){t=e});if(r.push(o),!this._pageContext.isHubSite){var s=this._siteDataSource.getCanSyncHubSitePermissionsProperty(!0).then(function(e){n=e});r.push(s)}var c=this._sitePermissionsProvider.getHubSitePermissionGroups().then(function(t){return e._hubSiteGroups=t,e._sitePermissionsProvider.getSiteGroupsAndUsersWithPermissions(t).then(function(t){var n;t&&t.length&&(i=(null===(n=t[0].users)||void 0===n?void 0:n.length)||0,a=t.map(function(t){var n=L[t.roleType];return{personas:e._getPersona(t,!0),title:e.HUB_GROUP_NAME_STRINGS[n]||"",permLevel:n,permLevelTitle:e.PERMISSION_STRINGS[n]||"",hideHeader:!0}}))})});r.push(c),_.c.all(r).then(function(){e._setState({hubSite:t,canSyncHubSitePermissions:n,hubSitePermissions:a,showHubSyncToggleSpinner:!1,hubPivotErrorString:void 0,isOverHubPermSyncLimit:i>10,hubVisitorsCount:i})},function(t){e._setState({hubPivotErrorString:e._getErrorString(t),showHubSyncToggleSpinner:!1})})}},e.prototype._checkIfDefaultPermissionsChanged=function(e){var t=this;if(this._permissionLevelOfCurrentUser===o.FullControl||f.a.hasPermission(this._pageContext.webPermMasks,f.a.managePermissions)){var n=function(e,n){if(t._isGroup)return!1;for(var a=!1,i=!1,r=0,o=n[e.id];r<o.length;r++){var s=o[r],c=k[e.roleType];if(s.id===c)a=!0;else if(s.order<M[e.roleType]||2147483647===s.order){i=!0;break}}return!a||i};return this._sitePermissionsProvider.getRoleAssignments().then(function(a){if(!a)return!1;t._hasCustomizedGroups=Object.keys(a).length>3;for(var i=0,r=e;i<r.length;i++){var o=r[i];if(n(o,a))return!0}return!1}).catch(function(e){return!1})}return _.c.wrap(!1)},e.prototype._getPersona=function(e,t){void 0===t&&(t=!1);var n=[];if(e.users)for(var a=0,i=e.users;a<i.length;a++){var r=i[a],s=this._isGroupLoginName(r.loginName);if("SHAREPOINT\\system"!==r.loginName){var c=this._permissionLevelOfCurrentUser;n.push({name:this._getUserTitle(r),email:r.email,imageUrl:r.urlImage,initialsColor:r.initialsColor,imageInitials:r.imageInitials,groupId:s&&this._parseGroupId(r.loginName),type:s&&u.a.group,menuItems:this._isGroupClaimOwner(r.loginName)||c!==o.FullControl&&(c!==o.Edit||L[r.roleType]!==o.Edit)?void 0:this._getUserPermissions(r,e,t)})}}else e.currentUserCannotViewMembers&&n.push({currentUserCannotViewMembers:!0});return n},e.prototype._getUserPermissions=function(e,t,n){var a=this;void 0===n&&(n=!1);var i=[];if(n&&this._pageContext.hubSiteId&&!this._pageContext.isHubSite)return null;if(!n)for(var r=function(t){t.onClick=function(){return a._updatePerm(e,t.permissionLevel)}},o=0,s=i=this._getSitePermissionsContextualMenuItems().filter(function(e){return e.permissionLevel!==L[t.roleType]});o<s.length;o++)r(s[o]);return this._isGroupClaim(e.loginName)||i.push({name:this._strings("remove"),key:"remove",onClick:function(t){return a._removePerm(e)},"data-automationid":F()?void 0:"SitePermMenuItem-Remove"}),i&&i.length>0?i:void 0},e.prototype._getSitePermissionsContextualMenuItems=function(){var e=this,t=F(),n=[{name:this._strings("read"),key:"read",permissionLevel:o.Read,"data-automationid":t?void 0:"SitePermMenuItem-Read"},{name:this._strings("fullControl"),key:"full",permissionLevel:o.FullControl,"data-automationid":t?void 0:"SitePermMenuItem-Full"},{name:this._strings("edit"),key:"edit",permissionLevel:o.Edit,"data-automationid":t?void 0:"SitePermMenuItem-Edit"}];return this._permissionLevelOfCurrentUser===o.Edit?n=[n[2]]:this._permissionLevelOfCurrentUser===o.Read&&(n=[n[0]]),n.filter(function(t){return e._permissionGroups[t.permissionLevel]})},e.prototype._updatePerm=function(e,t){var n=this,a=this._permissionGroups[t];this._sitePermissionsDataSource.addUserToGroup(a,e.loginName).then(function(){n._sitePermissionsDataSource.removeFromGroupById(e.principalId.toString(),e.id.toString()).then(function(){n._fetchUpdatedPermissions()})}),O.Engagement.logData({name:"SitePermissionsPanel.UpdatePermTo"+o[t]})},e.prototype._removePerm=function(e){var t=this;this._sitePermissionsDataSource.removeFromGroupById(e.principalId.toString(),e.id.toString()).then(function(){t._fetchUpdatedPermissions(),g.HW.isActivated("4fec41ce-d08e-43b1-a51b-0f343c98c32d")||O.Engagement.logData({name:"SitePermissionsPanel.RemovePermFor"+L[e.roleType]})})},e.prototype._getUserTitle=function(e){return this._isGroupClaim(e.loginName)?this._isGroupClaimOwner(e.loginName)?g.OO(this._strings("groupOwners"),this._pageContext.webTitle):g.OO(this._strings("groupMembers"),this._pageContext.webTitle):e.title},e.prototype._isGroupLoginName=function(e){return e&&-1!==e.indexOf(A)},e.prototype._isGroupClaim=function(e){return this._isGroupLoginName(e)&&-1!==e.indexOf(this._pageContext.groupId)},e.prototype._isGroupClaimOwner=function(e){return this._isGroupClaim(e)&&-1!==e.indexOf("_o")},e.prototype._parseGroupId=function(e){var t;if(this._isGroupClaim(e))t=this._pageContext.groupId;else if(this._isGroupLoginName(e)){var n=e.indexOf(A)+A.length+1;t=e.substring(n,n+36)}return t},e.prototype._getPanelAddMenu=function(){var e=[];return this._isGroup&&e.push({name:this._strings("addMembersToGroup"),key:"addToGroup",onClick:this._goToOutlookClick,className:"SitePermissionsPanel-addToGroup"}),this._isDefaultPermissionsChanged||e.push({name:this._strings("shareSiteOnly"),key:"shareSiteOnly",onClick:this._shareSiteOnlyOnClick,className:"SitePermissionsPanel-shareSiteOnly"}),e.length>0?e:void 0},e.prototype._getPermissionLevelOfCurrentUser=function(){var e=this._pageContext.webPermMasks;return f.a.hasPermission(e,f.a.manageWeb)?o.FullControl:f.a.hasPermission(e,f.a.editListItems)?o.Edit:f.a.hasPermission(e,f.a.viewPages)?o.Read:void 0},e.prototype._assignUsersToPermssionGroup=function(e){for(var t,n=((t={})[o.FullControl]=[],t[o.Edit]=[],t[o.Read]=[],t),a=0,i=e;a<i.length;a++){var r=i[a],s=this._params.addMemberDefaultPermissionLevel,c=this._getSitePermissionsContextualMenuItems().map(function(e){return e.permissionLevel}),d=r.permissionLevel;d||(d=s&&this._permissionGroups[s]&&c.indexOf(s)>-1?s:this._permissionGroups[o.Edit]&&c.indexOf(o.Edit)>-1?o.Edit:this._permissionGroups[o.Read]&&c.indexOf(o.Read)>-1?o.Read:o.FullControl),n[d]&&n[d].push(r)}return n},e.prototype._getPickerSettings=function(){var e=this;return this._sharingSiteProvider.getSharingSettings().then(function(t){e._pickerSettings=t.pickerProperties}).catch(function(t){e._pickerSettings=void 0})},e.prototype._getErrorString=function(e){return e&&e.message?String(e.message.value||e.message):this._strings("genericHubPivotError")},e.prototype._getShareSiteErrorMsg=function(e){return(null==e?void 0:e.errorMessage)?e.errorMessage:this._strings("genericShareSiteError")},e.prototype._strings=function(e){var t;return g.HW.isActivated("921498ad-0a8e-4008-bf13-cb518c0ad112")?E[e]:(null===(t=this._params.strings)||void 0===t?void 0:t[e])||E[e]},e}();const T=P;function U(){return g.HW.isActivated("6f44d188-0fd4-4289-9f05-5c349fe010bc")}function F(){return g.HW.isActivated("8a0171ad-4574-4659-b39f-b5c7bbd1f3ee")}var H=n("fui.lco_496"),R=n("fui.lcoms_828"),N=n("fui.util_43"),B=function(){function e(e){this._dataSource=e.dataSource}return e.prototype.getPendingAccessRequests=function(e,t,n,a){return this._dataSource.getPendingAccessRequests(e,t,n,a)},e.prototype.changeRequestStatus=function(e,t){return this._dataSource.changeRequestStatus(e,t)},e.prototype.hasAccessRequests=function(){return this._dataSource.hasAccessRequests()},e}(),j=n(134),V=1073741830,z=1073741826,G=function(){function e(e){this._pageContext=e.pageContext,this._urlBeginning=(0,c.h)(e.pageContext),this._getPendingAccessRequestsUrl=this._urlBeginning+"/_api/web/AccessRequestsList/GetItems",this._getChangeRequestStatusUrl=this._urlBeginning+"/_api/SP.AccessRequests.ChangeRequestStatus",this._getIfPendingAccessRequestsUrl=this._urlBeginning+"/_api/SP.Web.GetObjectSharingSettings?$expand=ObjectSharingInformation",this._dataRequestor=new j.b({pageContext:e.pageContext})}return e.prototype.changeRequestStatus=function(e,t){var n=this;if(!e||e.length<1)return _.c.reject([!1]);if(e.length>1){var a=b.a.generate(),i="multipart/mixed; boundary=batch_"+a,r=[],o=[],s=[];return e.forEach(function(e){s.push(n._getChangeRequestStatusUrl);var a=e.isWeb?"SharePoint Group":"Role Definition",i=e.isWeb?e.groupId:e.isEditor?V:z;r.push(JSON.stringify({itemId:e.id,newStatus:t,convStr:null,permType:a,permissionLevel:i})),o.push("POST")}),this._dataRequestor.getData({url:h.default.getBatchOperationUrl(this._pageContext.webAbsoluteUrl),parseResponse:function(e){return e},qosName:"acceptDenyAccessRequests",additionalPostData:h.default.getBatchContentExtended(a,s,"POST",h.default.defaultBatchRequestPostData,r,h.default.defaultBatchAcceptData,o),method:"POST",contentType:i,noRedirect:!0,needsRequestDigest:!0}).then(function(e){var t=h.default.processBatchResponse(e);return t.hasError?_.c.reject(t):t}).then(function(e){return e.items.map(function(){return!0})},function(e){return e.items.map(function(e){return!e.error})})}var c=this._getChangeRequestStatusUrl,d=e[0].isWeb?"SharePoint Group":"Role Definition",l=e[0].isWeb?e[0].groupId:e[0].isEditor?V:z,u={itemId:e[0].id,newStatus:t,convStr:null,permType:d,permissionLevel:l};return this._dataRequestor.getData({url:c,parseResponse:function(e){return[!e]},qosName:"acceptDenyAccessRequests",additionalPostData:JSON.stringify(u),method:"POST",noRedirect:!0,needsRequestDigest:!0})},e.prototype.getPendingAccessRequests=function(e,t,n,a){var i=this,r=[];n&&r.push("$top="+n),a&&r.push("$skip="+a),r.push("$select=ID,RequestedForDisplayName,RequestDate,ObjectRequestedTitleDisp,RequestedObjectUrl,RequestedForUserId,RequestedFor,Conversation,RequestedWebId,RequestedListId,RequestedListItemId");var o=this._getPendingAccessRequestsUrl;r.length>0&&(o+="?"+r.join("&"));var s={query:{__metadata:{type:"SP.CamlQuery"},ViewXml:"<View><Query><OrderBy><FieldRef Name='"+e+"' Ascending='"+(t?"FALSE":"TRUE")+"'/></OrderBy><Where><And><Eq><FieldRef Name='IsInvitation'></FieldRef><Value Type='Boolean'>0</Value></Eq><Eq><FieldRef Name='Status'></FieldRef><Value Type='Integer'>0</Value></Eq></And></Where></Query></View>"}};return this._dataRequestor.getData({url:o,method:"POST",additionalPostData:JSON.stringify(s),qosName:"getPendingAccessRequests",parseResponse:function(e){var t=JSON.parse(e);return t&&t.d&&t.d.results?t.d.results.map(function(e){return{id:e.ID,requesterDispName:e.RequestedForDisplayName,requestDate:new Date(e.RequestDate),item:e.ObjectRequestedTitleDisp,itemUrl:new URL(e.RequestedObjectUrl.Url),userLogin:i.getLogin(e.RequestedFor),userId:e.RequestedForUserId,isEditor:!0,isWeb:e.RequestedListItemId===b.a.Empty&&e.RequestedListId===b.a.Empty&&e.RequestedWebId!=b.a.Empty,comment:e.Conversation}}):e}})},e.prototype.hasAccessRequests=function(){var e=this._getIfPendingAccessRequestsUrl,t={objectUrl:this._pageContext.webAbsoluteUrl,useSimplifiedRoles:!0};return this._dataRequestor.getData({url:e,method:"POST",additionalPostData:JSON.stringify(t),qosName:"getIfPendingAccessRequests",parseResponse:function(e){var t=JSON.parse(e);return t&&t.d&&t.d.ObjectSharingInformation&&t.d.ObjectSharingInformation.HasPendingAccessRequests}})},e.prototype.getLogin=function(e){var t=e.lastIndexOf("|")+1;return e.substring(t)},e}(),K=n(5786),W=n(2316),q=n(1870),Q=n(1947),Y=n("react-lib"),J=n(2903),X=n(7080),Z=n(2455),$=n(7574);function ee(e){for(var t=e.selectedItems,n=e.sharingLinkKind,a=e.canAddExternalPrincipal,i=e.hasDlpPolicyTip,r=e.viewPolicyTipCallback,o=e.permissionsMap,s=0,c=t;s<c.length;s++){var d=c[s];if(!d.isResolved)return i&&!a?Y.createElement("div",null,Y.createElement("span",null,$.a," "),Y.createElement(R.NG4,{onClick:r},$.b)):d.rawData?d.rawData.Description:Y.createElement("span",null,$.i);if(d.isExternal&&d.principalType===K.a.distributionList&&d.entityType===u.a.group)return Y.createElement("span",null,$.n);var l=n===X.a.organizationEdit||n===X.a.organizationView;if(d.isExternal&&l)return Y.createElement("span",null,$.m)}if(o&&n===X.a.direct){var f=0;for(var p in o)o[p]===Z.a.none&&f++;if(1===f)return Y.createElement("span",null,$.g);if(f>1)return Y.createElement("span",null,$.f)}return null}var te=n(7572);(0,N.pZ)([{rawString:".ms-AccessRequestsDialogContainer{max-width:100%;width:1082px;max-height:100%;height:750px}.ms-AccessRequestsDialogListContainer{display:inline}.ms-AccessRequestsDialog-inner{display:inline-block;height:90%;max-height:80%}.ms-AccessRequestsDialog-content{display:inline}.ms-AccessRequestsDialogContent{max-width:100%;width:1082px;max-height:100%;height:750px;overflow-x:hidden;overflow-y:hidden;display:flex;flex-direction:column}.ms-AccessRequestsDialogHeader{margin-top:5px;padding-right:60px}[dir=ltr] .ms-AccessRequestsDialogHeader{margin-left:30px}[dir=rtl] .ms-AccessRequestsDialogHeader{margin-right:30px}.ms-AccessRequestsDialogTitle{font-size:20px;font-weight:600}.ms-AccessReqestsDialogListContainer{margin-top:50px;height:100%}.ms-AccessRequestsList-FileIcon{vertical-align:middle;max-height:32px;max-width:32px}.ms-AccessRequestsDialog-ContactContainer{margin-top:20px;font-size:14px}[dir=ltr] .ms-AccessRequestsDialog-ContactContainer{margin-left:20px}[dir=rtl] .ms-AccessRequestsDialog-ContactContainer{margin-right:20px}[dir=ltr] .ms-AccessRequestsDialog-ContactIcon{margin-right:8px}[dir=rtl] .ms-AccessRequestsDialog-ContactIcon{margin-left:8px}.ms-AccessRequestsDialog-ContactLine{margin-bottom:8px}.ms-AccessRequestsDialog-TopLine{margin-top:16px}.ms-AccessRequestsDialogHeader{max-width:1150px}.ms-AccessRequestsDialog-Footer{max-height:16px}.ms-AccessRequestsDialog-AdvancedSettings-link{position:relative;float:left}.ms-AccessRequestsDialog-ClassicExperience-link{position:relative;float:right}"}]);var ne,ae=n(7577);!function(e){e[e.Approve=1]="Approve",e[e.Decline=3]="Decline"}(ne||(ne={})),(0,N.pZ)([{rawString:".ms-accessRequestsList-ScrollablePane{height:525px;position:relative;background-color:#fff}.ms-accessRequestsButtons{height:48px;display:flex;align-items:stretch}.ms-AccessRequest-AccessRequestList{height:100%;display:flex;flex-direction:column;overflow-y:hidden;overflow-x:hidden}.ms-AccessRequestsList-CheckBoxRoot{min-height:64px;vertical-align:top;padding-top:11px;padding-bottom:11px}.ms-AccessRequestsList-ColumnText{font-size:14px;vertical-align:top;padding-top:8.5px}.ms-accessRequestsList{display:inline}.ms-AccessRequestsDialogListContainer{display:inline}.ms-AccessRequest-AccessRequestListHeader{padding-right:0;padding-left:0}.ms-AccessRequestsList-card{min-width:48px}.ms-AccessRequestsList-card:active{pointer-events:none}.ms-AccessRequestsList-Column{padding-left:0;padding-right:0}.ms-AccessRequestsList-NameColumn{min-width:230px}.ms-AccessRequestsList-IconColumn{min-width:36px;max-width:36px;margin-top:10px;font-size:15px}.ms-AccessRequestsList-ItemColumn{max-width:308px;min-width:308px}.ms-AccessRequestsList-RequestDateColumn{min-width:144px;max-width:144px;margin-top:11px}.ms-AccessRequestsList-PermissionsColumn{min-width:156px;max-width:156px;margin-top:6px}.ms-AccessRequestsList-CommentColumn{min-width:78px;max-width:78px;margin-top:9px}.ms-AccessRequestsList-Comment{overflow:hidden;word-break:break-all}.ms-AccessRequestsList-CompletedStatus{color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.ms-AccessRequestsList-Link{color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}.ms-AccessRequestsList-RequestDate{color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}.ms-accessRequestsList-ErrorMessage{background-color:"},{theme:"errorBackground",defaultValue:"#fde7e9"},{rawString:";font-size:14}.ms-accessRequestsList-Blocked{padding-top:8px;color:#a4262c}.ms-accessRequestsList-Cancel{font-size:14px}.ms-accessRequestsList-ErrorText{padding-top:5px}"}]);var ie=n(1393),re=n(823),oe=n(474),se=n(2384),ce=function(e){function t(t){var n=e.call(this,t)||this;n._getColumns=function(e,t){return[{key:"column1",name:"     "+ae.q,fieldName:"RequestedForDisplayName",iconName:"Contact",minWidth:200,isRowHeader:!0,isResizable:!1,isSorted:"RequestedForDisplayName"===e,isSortedDescending:t,onRender:n._renderNameColumn,onColumnClick:n._onColumnClick,data:"string",isPadded:!1,className:"ms-AccessRequestsList-Column ms-AccessRequestsList-NameColumn"},{key:"column2",name:"File type",isResizable:!1,iconName:"Page",isIconOnly:!0,minWidth:16,maxWidth:16,onColumnClick:n._onColumnClick,onRender:n._renderFileType,className:"ms-AccessRequestsList-Column ms-AccessRequestsList-IconColumn"},{key:"column3",name:ae.n,fieldName:"ObjectRequestedTitleDisp",minWidth:280,isSorted:"ObjectRequestedTitleDisp"===e,isSortedDescending:t,isResizable:!1,onColumnClick:n._onColumnClick,data:"string",className:"ms-AccessRequestsList-Column ms-AccessRequestsList-ItemColumn",onRender:n._renderFilename,isPadded:!1},{key:"column4",name:ae.w,fieldName:"RequestDate",minWidth:138,isSorted:"RequestDate"===e,isSortedDescending:t,isResizable:!1,onColumnClick:n._onColumnClick,data:"string",onRender:n._renderRequestDate,className:"ms-AccessRequestsList-Column ms-AccessRequestsList-RequestDateColumn",isPadded:!1},{key:"column5",name:ae.u,isResizable:!1,onRender:n._renderPermissionsDropdown,minWidth:138,className:"ms-AccessRequestsList-Column ms-AccessRequestsList-PermissionsColumn",isPadded:!1},{key:"column6",name:"",isResizable:!1,onRender:n._renderRequestComment,minWidth:78,className:"ms-AccessRequestsList-Column ms-AccessRequestsList-CommentColumn",isPadded:!1}]},n._renderNoRequestsMessage=function(){return Y.createElement(H.MVl,{stickyClassName:"ms-AccessRequest-AccessRequestListHeader",stickyPosition:H.vm_.Header},Y.createElement("div",null,ae.t))},n._renderNoInternalRequestsMessage=function(){return Y.createElement(H.MVl,{stickyClassName:"ms-AccessRequest-AccessRequestListHeader",stickyPosition:H.vm_.Header},Y.createElement("div",null,ae.s))},n._renderNoExternalRequestsMessage=function(){return Y.createElement(H.MVl,{stickyClassName:"ms-AccessRequest-AccessRequestListHeader",stickyPosition:H.vm_.Header},Y.createElement("div",null,ae.r))},n._renderContainsError=function(){return Y.createElement(R.jS7,{horizontal:!0,tokens:{childrenGap:10,padding:10},styles:{root:{width:"100%"}}},Y.createElement(R.jS7.Item,{order:1,className:"ms-accessRequestsList-Blocked"},Y.createElement(H.k45,{iconName:"Blocked2"})),Y.createElement(R.rNJ,{order:2,className:"ms-accessRequestsList-ErrorText"},ae.k),Y.createElement(R.rNJ,{order:3},Y.createElement(R.hYu,{className:"ms-accessRequestsList-Cancel",iconProps:{iconName:"Cancel"},onClick:function(){n.setState({containsError:!1})}})))},n._renderTopButtons=function(){var e,t,a=n._selection.getSelection(),i=a.length>1,r=!(a.length>0);return e=function(){n._approveDeclineAll(a,ne.Approve)},t=function(){n._approveDeclineAll(a,ne.Decline)},Y.createElement(R.jS7,{horizontal:!0,className:"ms-accessRequestsButtons",tokens:{childrenGap:10,padding:10},styles:{root:{width:"100%"}}},Y.createElement(R.jS7.Item,{order:1},Y.createElement("span",null,Y.createElement(R.PRY,{iconProps:{iconName:"CheckMark"},allowDisabledFocus:!0,onClick:e,disabled:r},i?ae.c:ae.e))),Y.createElement(R.jS7.Item,{order:2},Y.createElement("span",null,Y.createElement(R.PRY,{iconProps:{iconName:"Cancel"},allowDisabledFocus:!0,onClick:t,disabled:r},i?ae.g:ae.i))),Y.createElement(R.jS7.Item,{order:3},0===a.length?Y.createElement(R.PRY,{iconProps:{iconName:"Refresh"},allowDisabledFocus:!0,onClick:n._refreshPage},ae.v):null))},n._refreshPage=function(){n.setState({allRequests:[],hasMoreRequests:!0,orderBy:"RequestDate"},function(){return n._fetchPendingRequests()})},n._approveDeclineAll=function(e,t){var a=!1;e.forEach(function(e){!0===e.completed&&(a=!0)}),a?n.setState({containsError:!0}):(n.setState({containsError:!1}),n._accessRequestsProvider.changeRequestStatus(e,t).then(function(a){e.forEach(function(e){e.completed=!0,e.completedStatus=t===ne.Approve?ae.d:ae.h}),n._selection.setAllSelected(!0),n._selection.setAllSelected(!1)}))},n._renderList=function(){"internal"===n.props.currentFilter?n._filterForInternal():"external"===n.props.currentFilter&&n._filterForExternal();var e=n.state,t=e.allRequests,a=e.internalRequests,i=e.externalRequests,r=e.columns,o=e.hasMoreRequests;return Y.createElement(H.SjO,null,Y.createElement(ie.a,{"data-automation-id":"AccessRequestDetailsList",className:"ms-AccessRequest-AccessRequestList",checkboxCellClassName:"ms-AccessRequestList-Checkbox",items:"all"===n.props.currentFilter?t:"internal"===n.props.currentFilter?a||[]:"external"===n.props.currentFilter&&i||[],compact:!1,columns:r,selectionMode:t&&t.length>0?H.T4d.multiple:H.T4d.none,layoutMode:H.IWK.justified,isHeaderVisible:!0,selection:n._selection,selectionPreservedOnEmptyClick:!0,enterModalSelectionOnTouch:!0,ariaLabelForSelectionColumn:ae.z,ariaLabelForSelectAllCheckbox:ae.x,onRowDidMount:function(e,t){n._onRenderItem(e,t)},constrainMode:H.W5Y.horizontalConstrained,enableShimmer:t?0===t.length&&o:o,onRenderDetailsHeader:n.onRenderDetailsHeader,onRenderRow:n._onRenderRow}))},n._onRenderRow=function(e,t,a){return t((0,s.W_)((0,s.W_)({},e||{}),{onRenderCheck:n._onRenderCheck}))},n._onRenderCheck=function(e,t){return void 0===t&&(t=H.onk),Y.createElement(t,(0,s.W_)({},e,{styles:{root:"ms-AccessRequestsList-CheckBoxRoot",check:"ms-AccessRequestsList-CheckBoxCheck",isDisabled:"ms-AccessRequestsList-CheckBoxDisabled"}}))},n._renderFileType=function(e){if(e){var t=n._getItemIcon(e.itemUrl);return Y.createElement(H.k45,{iconName:t})}},n._renderRequestComment=function(e){if(e&&e.comment&&e.comment.length)return Y.createElement("div",null,Y.createElement(R.qxl,{content:n._renderRequestCommentToolTip(e),calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}}},Y.createElement(R.hYu,{iconProps:{iconName:"Message"},title:ae.p,ariaLabel:ae.p})))},n._renderRequestCommentToolTip=function(e){var t,a;return t=function(){n._selection.setAllSelected(!1),n._approveDeclineAll([e],ne.Approve)},a=function(){n._selection.setAllSelected(!1),n._approveDeclineAll([e],ne.Decline)},Y.createElement("div",{className:"ms-AccessRequestsList-CommentToolTip"},Y.createElement("div",{className:"ms-AccessRequestsList-Comment"}," ",e.comment," "),e.completed?null:Y.createElement(R.jS7,{horizontal:!0},Y.createElement(R.jS7.Item,{order:1},Y.createElement(R.PRY,{iconProps:{iconName:"CheckMark"},allowDisabledFocus:!0,onClick:t},ae.e)),Y.createElement(R.jS7.Item,{order:2},Y.createElement(R.PRY,{iconProps:{iconName:"Cancel"},allowDisabledFocus:!0,onClick:a},ae.i))))},n._renderRequestDate=function(e){var t=n.props.pageContext;if(e){if(!0===e.completed)return Y.createElement("div",{className:"ms-AccessRequestsList-CompletedStatus"},e.completedStatus);var a=e.requestDate,i=a&&new Date(a).getTime();if("number"==typeof i&&!isNaN(i)){var r=t.currentUICultureName;return Y.createElement("div",{className:"ms-AccessRequestsList-RequestDate"},(0,re.d)(new Date(i),r))}}},n._onRenderOption=function(e){return Y.createElement("div",null,e.data&&e.data.icon&&Y.createElement(H.k45,{style:{marginRight:"8px"},iconName:e.data.icon,"aria-hidden":"true",title:e.data.icon}),Y.createElement("span",null,e.text))},n._onRenderPlaceholder=function(e){return Y.createElement("div",{className:"dropdownExample-placeholder"},Y.createElement(H.k45,{style:{marginRight:"8px"},iconName:"Edit","aria-hidden":"true"}),Y.createElement("span",null,e.placeholder))},n._onRenderTitle=function(e){var t=e[0];return Y.createElement("div",null,t.data&&t.data.icon&&Y.createElement(H.k45,{style:{marginRight:"8px"},iconName:t.data.icon,"aria-hidden":"true",title:t.data.icon}),Y.createElement("span",null,t.text))},n._renderPermissionsDropdown=function(e){var t;e.dropRef=Y.createRef(),e.isWeb&&(n._associatedGroups&&0!==n._associatedGroups.length||n._fetchAssociatedGroups(),(!n._associatedGroups||n._associatedGroups.length<2)&&(e.isWeb=!1)),t=function(){var t=e.dropRef.current.selectedOptions[0].key;return n._onChangePermission(t,e)};var a=e.isWeb?ae.o:ae.j,i=e.isWeb?ae.C:ae.B;return Y.createElement(R.jS7,{tokens:{childrenGap:20},verticalAlign:"end"},Y.createElement(H.AHK,{componentRef:e.dropRef,disabled:e.completed,placeholder:a,ariaLabel:ae.y,options:[{key:"Edit",text:a,data:{icon:"Edit"}},{key:"View",text:i,data:{icon:"Uneditable2"}}],styles:{dropdown:{width:120}},onRenderOption:n._onRenderOption,onRenderPlaceholder:n._onRenderPlaceholder,onRenderTitle:n._onRenderTitle,onChange:t}))},n._renderNameColumn=function(e){var t=n.state.resolvedPersons;if(t[e.userLogin]){var a=t[e.userLogin],i={personaType:"User",identifier:a.userId,pageContext:n.props.pageContext,lpcHoverTargetProps:{upn:a.email,hostAppPersonaInfo:{PersonaDisplayName:e.requesterDispName}}};return(0,oe.b)(i,Y.createElement("div",{className:"ms-AccessRequestsList-card"},Y.createElement(R.nuF,{"data-is-focusable":!0,imageUrl:a.image,primaryText:e.requesterDispName,size:H.fXG.small,hidePersonaDetails:!1,showInitialsUntilImageLoads:!0})))}return e.queried||(n._queryForPersonaInfo(e.userLogin),e.queried=!0),Y.createElement("div",{className:"ms-AccessRequestsList-name"},Y.createElement(R.qxl,{content:ae.A,calloutProps:{gapSpace:0},styles:{root:{display:"inline-block"}}},e.requesterDispName))},n._renderFilename=function(e){return Y.createElement("div",{className:"ms-AccessRequestsList-ColumnText"},Y.createElement(R.NG4,{href:e.itemUrl.toString(),target:"_blank",className:"ms-AccessRequestsList-Link"},e.item))},n._fetchPendingRequests=function(){var e,t=n.state,a=t.hasMoreRequests,i=t.allRequests,r=t.orderBy,o=t.ascending,s=n.props.pageSize;a&&(e=i?n.state.allRequests:[],n._accessRequestsProvider.getPendingAccessRequests(r,o,s,e.length).then(function(t){if(Array.isArray(t)&&t.length>0){t.forEach(function(t){t.queried=!1,e.push(t)});var a=n._mergeInNewRequests(t),i=t.length===s&&a&&a.length<s;return n.setState({allRequests:a,hasMoreRequests:t.length===s}),i}return n.setState({hasMoreRequests:!1}),!1}).then(function(e){e&&n._fetchPendingRequests()}).catch(function(e){O.Engagement.logData({name:"AccessRequests.Error"})}))},n._queryForPersonaInfo=function(e){var t=n.state.resolvedPersons,a=n.state.resolvedPersons;return t[e]||n._onGetMoreResults(e).then(function(t){a[e]={userId:t.userId,name:t.name,email:t.email,image:t.image,department:t.department,job:t.job,office:t.office,phone:t.phone,isResolved:t.isResolved,isExternal:t.isExternal},n.setState({resolvedPersons:a})}),!0},n._onGetMoreResults=function(e){var t=n.props.pageContext,a={allowEmailAddresses:!1,allowMultipleEntities:null,allUrlZones:null,enabledClaimProviders:null,forceClaims:null,groupID:0,maximumEntitySuggestions:30,principalSource:15,principalType:1,required:null,urlZone:null,urlZoneSpecified:null,filterExternalUsers:!1,blockExternalUsers:!1,useGraph:!t.enforceIBSegmentFilter,useSubstrate:t.IBSegments&&t.IBSegments.length>0,conversationId:b.a.generate(),siteIBSegmentIDs:t.IBSegments};return n._peoplePickerProvider.resolve(e,a)},n._mergeInNewRequests=function(e){var t=n.state.allRequests;if(t&&t.length>0){var a=n._mapRequests(t),i=e.filter(function(e){return!(e.id in a)});return(0,s.AE)((0,s.AE)([],t,!0),i,!0)}return e},n._mapRequests=function(e){for(var t={},n=0,a=e;n<a.length;n++){var i=a[n];t[i.id]=i}return t},n._sort=function(e,t,n){var a="RequestedForDisplayName"===t?function(e,t){return e.requesterDispName.toLocaleUpperCase().localeCompare(t.requesterDispName.toLocaleUpperCase())}:"ObjectRequestedTitleDisp"===t?function(e,t){return e.item.toLocaleUpperCase().localeCompare(t.item.toLocaleUpperCase())}:function(e,t){return e.requestDate.valueOf()-t.requestDate.valueOf()};return e.sort(a),n&&e.reverse(),e},n._onRenderItem=function(e,t){var a=n.state.allRequests,i=n.props.pageSize;(t===a.length-i||a.length<i&&t===a.length-1)&&n._fetchPendingRequests()},n._getSelectionDetails=function(){return n._selection.getSelectedCount()>0},n._onColumnClick=function(e,t){var a=n.state,i=a.columns,r=a.hasMoreRequests,o=a.allRequests,c=i.map(function(e){var n=e.key===t.key;return(0,s.W_)((0,s.W_)({},e),{isSorted:n,isSortedDescending:n&&!e.isSortedDescending})});r?n.setState({allRequests:[],hasMoreRequests:!0,orderBy:t.fieldName,ascending:!t.isSortedDescending,columns:c},function(){return n._fetchPendingRequests()}):n.setState({allRequests:(0,s.AE)([],n._sort(o,t.fieldName,!t.isSortedDescending),!0),orderBy:t.fieldName,ascending:!t.isSortedDescending,columns:c})},n._accessRequestsProvider=t.accessRequestsProvider,n._peoplePickerProvider=new W.a({pageContext:t.pageContext,peoplePickerDataSource:t.peoplePickerDataSource}),n._sitePermissionsProvider=new C(t.pageContext);var a=n._getColumns("RequestDate",!1);return n._selection=new H.uTq({onSelectionChanged:function(){n.setState({isRequestSelected:n._getSelectionDetails()})}}),n.state={columns:a,allRequests:[],isRequestSelected:n._getSelectionDetails(),internalRequests:[],externalRequests:[],selectedRequest:void 0,hasMoreRequests:!0,orderBy:"RequestDate",ascending:!0,isCommentTooltipVisible:!1,resolvedPersons:new Map,containsError:!1},(0,se.a)(),n}return(0,s.XJ)(t,e),t.prototype.render=function(){var e=this.state,t=e.allRequests,n=e.internalRequests,a=e.externalRequests,i=e.hasMoreRequests,r=!(t&&0!==t.length||i),o=n&&!n.length,s=a&&!a.length;return Y.createElement("div",{className:"ms-accessRequestsList"},this._renderTopButtons(),Y.createElement("div",{className:"ms-accessRequestsList-ErrorMessage"},this.state.containsError&&this._renderContainsError()),Y.createElement("div",{className:"ms-accessRequestsList-ScrollablePane"},Y.createElement(H.E1E,{scrollbarVisibility:H.wzZ.auto},this._renderList(),"all"===this.props.currentFilter?r&&this._renderNoRequestsMessage():"internal"===this.props.currentFilter?o&&this._renderNoInternalRequestsMessage():"external"===this.props.currentFilter?s&&this._renderNoExternalRequestsMessage():"")))},t.prototype.componentDidMount=function(){this._fetchAssociatedGroups(),this._fetchPendingRequests()},t.prototype.componentDidUpdate=function(e){e.accessRequestsEnabled!==this.props.accessRequestsEnabled&&this.setState({columns:this._getColumns(this.state.orderBy,this.state.ascending)})},t.prototype.onRenderDetailsHeader=function(e,t){return Y.createElement(H.MVl,{stickyClassName:"ms-AccessRequest-AccessRequestListHeader",stickyPosition:H.vm_.Header,isScrollSynced:!0},t((0,s.W_)({},e)))},t.prototype._filterForInternal=function(){for(var e=this.state,t=e.allRequests,n=e.internalRequests,a=e.resolvedPersons,i=[],r=!1,o=0,s=t;o<s.length;o++){var c=s[o];a[c.userLogin]&&(a[c.userLogin].isExternal||(i.push(c),n&&n.length>=i.length&&i[i.length-1]!==n[i.length-1]&&(r=!0)))}n&&n.length!==i.length&&(r=!0),r&&this.setState({internalRequests:i})},t.prototype._filterForExternal=function(){for(var e=this.state,t=e.allRequests,n=e.externalRequests,a=e.resolvedPersons,i=[],r=!1,o=0,s=t;o<s.length;o++){var c=s[o];a[c.userLogin]&&a[c.userLogin].isExternal&&(i.push(c),n&&n.length>=i.length&&i[i.length-1]!==n[i.length-1]&&(r=!0))}n&&n.length!==i.length&&(r=!0),r&&this.setState({externalRequests:i})},t.prototype._getItemIcon=function(e){if(e){var t=null,n=e.toString().split("/"),a=n[n.length-1];return a.includes(".")?(t=a.split(".")[1].split("?")[0],(0,H.stJ)({extension:t,size:16}).iconName):"teams"===n[n.length-2]?"SharepointLogo":(0,H.stJ)({type:N.xQ.folder,size:16}).iconName}},t.prototype._onChangePermission=function(e,t){"Edit"===e?(t.isEditor=!0,t.isWeb&&this._associatedGroups&&this._associatedGroups.length>2&&(t.groupId=this._associatedGroups[1].id)):(t.isEditor=!1,t.isWeb&&this._associatedGroups&&this._associatedGroups.length>2&&(t.groupId=this._associatedGroups[2].id))},t.prototype._fetchAssociatedGroups=function(){var e=this;this._sitePermissionsProvider.getAssociatedPermissionGroups().then(function(t){e._associatedGroups=t})},t}(Y.Component),de=(0,H.bDN)(ce,function(e){return{root:[],label:{}}}),le=function(e){function t(t){var n=e.call(this,t)||this;return n.handlePivotClick=function(e){"all"===e.props.itemKey?n.setState({currentFilter:"all"}):"internal"===e.props.itemKey?n.setState({currentFilter:"internal"}):"external"===e.props.itemKey&&n.setState({currentFilter:"external"})},n.state={currentFilter:"all"},n}return(0,s.XJ)(t,e),t.prototype.render=function(){return Y.createElement(R.X$,{hidden:!this.props.showAccessRequestDialog,onDismiss:this.props.onDismiss,containerClassName:"ms-dialogMainOverride ms-AccessRequestsDialogContainer",dialogContentProps:{type:H.r_c.normal,showCloseButton:!0,className:"ms-AccessRequestsDialogContent",styles:{header:{className:"ms-AccessRequestsDialogHeader"},inner:{className:"ms-AccessRequestsDialog-inner"},content:{className:"ms-AccessRequestsDialog-content"}}},modalProps:{isBlocking:!0,isDarkOverlay:!1}},Y.createElement(R.jS7,{horizontal:!0,disableShrink:!0},Y.createElement(R.jS7.Item,{order:1},Y.createElement("div",{className:"ms-AccessRequestsDialogHeader"},Y.createElement("div",{className:"ms-AccessRequestsDialogTitle"},ae.a))),Y.createElement(R.jS7.Item,{order:2},this.renderPivot())),Y.createElement("div",{className:"ms-AccessRequestsDialogListContainer"},Y.createElement(de,{pageSize:10,accessRequestsEnabled:!0,accessRequestsProvider:new B({dataSource:new G({pageContext:this.props.pageContext})}),peoplePickerDataSource:this.props.peoplePickerDataSource,pageContext:this.props.pageContext,currentFilter:this.state.currentFilter})),Y.createElement("div",{className:"ms-AccessRequestsDialog-Footer"},this.renderClassicLink()))},t.prototype.renderClassicLink=function(){var e=this.props.pageContext.webAbsoluteUrl+"/Access%20Requests/pendingreq.aspx?mbypass=1";return Y.createElement(R.NG4,{href:e,className:"ms-AccessRequestsDialog-ClassicExperience-link","data-automationid":"SitePermissionsPanelAccessRequestsDialogClassicLink",target:"_blank"},ae.f)},t.prototype.renderPivot=function(){return Y.createElement("div",null,Y.createElement(R.ymH,{"aria-label":"Filtering between all, internal, and external only users",onLinkClick:this.handlePivotClick,headersOnly:!0},Y.createElement(R.G1D,{headerText:ae.b,itemKey:"all"}),Y.createElement(R.G1D,{headerText:ae.m,itemKey:"internal"}),Y.createElement(R.G1D,{headerText:ae.l,itemKey:"external"})))},t}(Y.Component),ue=n(2331),fe=n(2334),pe=n(2904),me=n("fui.core_870"),_e=n(7578);(0,N.pZ)([{rawString:".ms-sitePerm-body{flex-grow:1;margin-bottom:16px}.ms-sitePerm-Title{font-weight:700}.ms-sitePerm-itemBtn{height:20px;width:32px;vertical-align:middle;text-align:center;padding:10px;vertical-align:top;display:table-row;cursor:pointer}.ms-sitePerm-itemBtn-title{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:"},{theme:"mediumFontWeight",defaultValue:"400"},{rawString:';font-weight:600}.ms-sitePerm-personName{white-space:nowrap;text-overflow:ellipsis}[dir=ltr] .ms-sitePerm-personName .ms-Persona-details{text-align:left}[dir=rtl] .ms-sitePerm-personName .ms-Persona-details{text-align:right}.ms-sitePerm-personName>div{outline:transparent;position:relative;margin-top:10px;margin-bottom:10px}.ms-sitePerm-personName>div::-moz-focus-inner{border:0}.ms-Fabric--isFocusVisible .ms-sitePerm-personName>div:focus:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:1px solid '},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.ms-sitePerm-PersonaContextMenu .ms-ContextualMenu.ms-FocusZone{position:relative}.ms-sitePerm-buttonArea{max-width:95px;max-height:40px;cursor:pointer;font-size:12px}.ms-sitePerm-buttonAreaMargins{margin:2px 0}.ms-sitePerm-noButtonArea{max-width:95px;max-height:40px;font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:"}.ms-sitePerm-linkText{width:100%}.ms-sitePerm-chevron{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";transition:transform .1s linear}[dir=ltr] .ms-sitePerm-chevron{margin-right:15px}[dir=rtl] .ms-sitePerm-chevron{margin-left:15px}.ms-sitePermMenu-chevron{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";transition:transform .1s linear}[dir=ltr] .ms-sitePermMenu-chevron{left:15px}[dir=rtl] .ms-sitePermMenu-chevron{right:15px}.ms-sitePermMen-chevronAlignment{vertical-align:-2px;padding:1px}[dir=ltr] .ms-sitePermMenu-chevron.has-permLevelTitle{margin-left:8px}[dir=rtl] .ms-sitePermMenu-chevron.has-permLevelTitle{margin-right:8px}.ms-sitePerm-chevron.is-expanded{transform:rotate(-180deg)}.ms-sitePerm-personaContainer{margin-bottom:20px}[dir=ltr] .ms-sitePerm-personaContainer{margin-left:27px}[dir=rtl] .ms-sitePerm-personaContainer{margin-right:27px}.ms-sitePerm-emptyGroupText{color:#666}.ms-sitePerm-Persona .sp-deferredLivePersonaCard-root{display:block}.ms-sitePerm-Persona .sp-deferredLivePersonaCard-root .ms-TooltipHost{display:block;overflow:hidden;text-overflow:ellipsis}.ms-sitePerm-infoIcon{padding:0 4px;font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:"}"}]);var he=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._onClick=function(){a.setState({isContextualMenuVisible:!a.state.isContextualMenuVisible})},a._onDismiss=function(e){a.setState({isContextualMenuVisible:!1}),e.stopPropagation(),e.preventDefault()},a._resolveMenu=function(e){return a.menu=e},a.id=(0,H.f53)("sitePermMenuButton"),a.menuId=(0,H.f53)("sitePermMenuButton-menu"),a.state={isContextualMenuVisible:!1},a}return(0,s.XJ)(t,e),t.prototype.render=function(){var e=g.HW.isActivated("8edb111c-5b9d-4352-b0d0-31e6919246ce")?"ms-sitePermMenu-chevron":"ms-sitePermMenu-chevron ms-sitePermMen-chevronAlignment";return this.props.menuItems?Y.createElement("div",{className:"ms-sitePerm-ContextMenuButton","data-automationid":"SitePermissionsPersonaContextMenuButton"},Y.createElement(H.z5q,{direction:H.GIy.horizontal},Y.createElement("div",{className:"ms-sitePerm-buttonArea",ref:this._resolveMenu},Y.createElement("span",{className:"ms-sitePerm-linkText",id:this.id,onClick:this._onClick,"data-is-focusable":!0,role:"button","aria-haspopup":!0,"data-automationid":"SitePermissionsPersonaContextMenuButton","aria-expanded":!!this.state.isContextualMenuVisible,"aria-owns":this.menuId},this.props.permLevelTitle,Y.createElement(H.k45,{iconName:"ChevronDown",className:(0,N.N0)(e,this.props.permLevelTitle&&"has-permLevelTitle")}))),this.state.isContextualMenuVisible&&Y.createElement(H.v2H,{className:"ms-sitePerm-PersonaContextMenu",id:this.menuId,items:this.props.menuItems,isBeakVisible:!1,target:this.menu,directionalHint:H.aZJ.bottomLeftEdge,onDismiss:this._onDismiss,gapSpace:0}))):Y.createElement("div",{className:"ms-sitePerm-noButtonArea","data-automationid":"SitePermissionsNoButtonArea"},this.props.permLevelTitle)},t}(Y.Component),be=function(e){function t(t){var n=e.call(this,t)||this;return n._onClick=function(){n.setState({isExpanded:!n.state.isExpanded})},n._onLPCOpen=function(){n.props.isLPCOpenHandler&&n.props.isLPCOpenHandler(!0)},n._onLPCClose=function(){n.props.isLPCOpenHandler&&n.props.isLPCOpenHandler(!1)},n.state={isExpanded:t&&t.hideHeader},n}return(0,s.XJ)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.personas,a=t.hideHeader,i=this.state.isExpanded;return Y.createElement("div",{className:"ms-sitePerm-body","data-automationid":"SitePermissionsBody"},Y.createElement(H.z5q,{direction:H.GIy.vertical,isInnerZoneKeystroke:function(e){return e.which===(0,me.uRx)(me.Xf7.right)}},!a&&Y.createElement("span",null,Y.createElement("span",{className:"ms-sitePerm-itemBtn",onClick:this._onClick,"data-is-focusable":!0,"data-automationid":"SitePermHeader"+t.permLevel,"aria-expanded":!!i,role:"button"},Y.createElement(H.k45,{iconName:"ChevronDown",className:(0,N.N0)("ms-sitePerm-chevron",i&&"is-expanded")}),Y.createElement("span",{className:"ms-sitePerm-itemBtn-title","data-automationid":"SitePermissionsBodyButton"},t.title)),t.description&&Y.createElement(R.qxl,{content:t.description,directionalHint:H.aZJ.bottomCenter},Y.createElement(H.vb4,{iconName:"Info",className:"ms-sitePerm-infoIcon",tabIndex:0,"data-is-focusable":!0,"aria-label":t.description,role:"img"}))),Y.createElement("div",{className:"ms-sitePerm-personaContainer"},i&&n&&n.length?n.map(function(t,n){if(t.currentUserCannotViewMembers)return Y.createElement("div",{key:n,className:"ms-sitePerm-cannotViewMembersText"},_e.a);var a=e._getPersonaControl(t);return e._getPersona(a,t,n)}):i&&Y.createElement("div",{className:"ms-sitePerm-emptyGroupText"},_e.b))))},t.prototype._makeDeferredLpcProps=function(e){var t,n=e.type===u.a.group?"Group":"User";return t={cardParameters:{personaInfo:{identifiers:{Smtp:e.groupId?void 0:e.email,PersonaType:n,Upn:e.email,AadObjectId:e.groupId,DisplayName:e.name}},behavior:{onCardOpen:this._onLPCOpen,onCardClose:this._onLPCClose}}},{personaType:n,identifier:e.email,pageContext:this.props.pageContext,moduleLoader:ge()?this.props.lpcModuleLoader:void 0,customWaiter:this.props.lpcModuleCustomWaiter,addGroupMembersCallback:void 0,lpcHoverTargetProps:void 0,lpcHoverTargetV2Props:t}},t.prototype._wrapPersona=function(e){var t=this;return function(n,a){var i=t._makeDeferredLpcProps(e);return(0,oe.b)(i,Y.createElement("div",null,a(n)))}},t.prototype._getPersonaControl=function(e){var t=!ge()||this.props.lpcModuleLoader?this._wrapPersona(e):void 0;return Y.createElement(R.nuF,{"data-is-focusable":!0,imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,primaryText:e.name,size:H.fXG.small,hidePersonaDetails:!1,onRenderCoin:t,onRenderInitials:t,onRenderPrimaryText:t,"data-automationid":"SitePermissionsPersonaControl"},!this.props.pageContext.isTeamsChannelSite&&Y.createElement(he,{menuItems:e.menuItems,title:this.props.title,permLevelTitle:this.props.permLevelTitle}))},t.prototype._getPersona=function(e,t,n){return Y.createElement("div",{className:"ms-sitePerm-Persona",title:t.name,key:n+t.name,"data-automationid":"SitePermissionsPersona"},Y.createElement("div",{className:"ms-sitePerm-personName","data-automationid":"SitePermissionsPersonaName"},e))},t}(Y.Component);function ge(){return g.HW.isActivated("d41cdd32-c16a-4c7c-abd5-a6a4f08f057c")}(0,N.pZ)([{rawString:".ms-siteSharingSettingsPanel-textField label,.ms-siteSharingSettingsPanel-toggle label{font-weight:600}.ms-siteSharingSettingsPanel-container{margin-bottom:1px}.ms-siteSharingSettingsPanel-tenantAdminMembersCanShareMessage{font-size:12px;font-style:italic}[dir=ltr] .ms-siteSharingSettingsPanel-discardButton{margin-left:8px}[dir=rtl] .ms-siteSharingSettingsPanel-discardButton{margin-right:8px}.ms-siteSharingSettingsPanel-peoplePicker-error{margin:8px 0 0 0}[dir=rtl] .ms-siteSharingSettingsPanel-peoplePicker-error{margin:8px 0 0 0}.ms-siteSharingSettingsPanel-sectionHeaderLabel{font-weight:600;font-size:16px}.ms-siteSharingSettings-BackButton{color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:';position:absolute;left:16px;margin-top:7px}.SiteSharingSettingsPanelDescription{margin:8px 0 16px}.ms-siteSharingSettingsPanel-Content{margin-bottom:4px}.ms-siteSharingSettingsPanel-Content [class*=" applicationRole"],.ms-siteSharingSettingsPanel-Content [class^=applicationRole]{margin-bottom:0}.ms-siteSharingSettingsPanel{margin-bottom:1px}.ms-siteSharingSettingsPanel .ms-Panel-closeButton{margin-top:20px}.ms-siteSharingSettingsPanel-Title-Container{margin-top:8px}.ms-siteSharingSettingsPanel-content{margin-bottom:1px}.ms-siteSharingSettingsPanel-Header{margin-bottom:1px}.ms-siteSharingSettingsPanel-Title{font-size:'},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:"},{theme:"xLargeFontWeight",defaultValue:"600"},{rawString:";position:absolute;left:58px;margin-top:9px}.ms-siteSharingSettingsPanel-HeaderText{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:"}.ms-siteSharingSettingsPanel-SharingPermissionsChoiceGroup{margin-bottom:24px}.ms-siteSharingSettingsPanel-AccessRequestsChoiceGroup{margin-bottom:24px}"}]);var ve,ye,Se,De=n(7575);!function(e){e[e.Default=0]="Default",e[e.Email=1]="Email"}(ve||(ve={})),function(e){e[e.FileFolderSite=0]="FileFolderSite",e[e.FileFolder=1]="FileFolder",e[e.None=2]="None"}(ye||(ye={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.On=1]="On",e[e.Off=2]="Off"}(Se||(Se={}));var Ie=function(e){function t(t){var n=e.call(this,t)||this;return n.isLabelMembersCanShareActiveKSActivated=g.HW.isActivated("c0c10500-ca6a-437b-8f4f-efe5edbbddd4","03/24/2022","Use LabelMembersCanShare setting if Label has MembersCanShare setting"),n.onDismiss=function(){n.resetState(),n.props.onDismiss&&n.props.onDismiss(),O.Engagement.logData({name:"SiteSharingSettingsPanel.OnDismiss.Click"})},n.onBackButtonClick=function(){!n.hasInvalidSettings()&&n.haveSettingsChanged()?n.setState({showConfirmDialog:!0}):(n.resetState(),n.props.onDismiss&&n.props.onDismiss()),O.Engagement.logData({name:"SiteSharingSettingsPanel.BackButton.Click"})},n.onSaveClick=function(){var e=n.state.selectedPersons&&1===n.state.selectedPersons.length?n.state.selectedPersons[0]:null,t="someone@example.com",a=!1;n.state.accessRequestEnabled?n.state.accessRequestOption===ve.Email?t=e.email:a=!0:t="",n.setMembersCanShareFromOption(n.state.membersCanShareOption);var i={membersCanShare:n.membersCanShareEnabled,requestAccessEmail:t,useAccessRequestDefault:a,accessRequestSiteDescription:n.state.accessRequestSiteDescription,defaultMembersGroupAddMembers:n.membersCanShareEnabled&&n.membersCanAddToGroupEnabled,membersGroup:n.siteSharingSettings.membersGroup,ownersGroup:n.siteSharingSettings.ownersGroup};n.sharingSiteProvider.setSiteSharingSettings(i).then(function(e){n.siteSharingSettings=i,n.setState({showLoadingSpinner:!1}),n.props.onDismiss&&n.props.onDismiss()},function(e){var t=[];if(e&&e.hasError&&e.items)for(var a=e.items,i=0;i<a.length;i++){var r=a[i];r&&r.error&&t.push(r.error.message)}n.setState({showLoadingSpinner:!1,saveFailed:!0,serverErrorDetails:t})}),n.setState({showLoadingSpinner:!0,showConfirmDialog:!1}),O.Engagement.logData({name:"SiteSharingSettingsPanel.Save.Click"})},n.onDiscardClick=function(){n.resetState(),n.props.onDismiss&&n.props.onDismiss(),O.Engagement.logData({name:"SiteSharingSettingsPanel.Discard.Click"})},n.onAccessRequestChange=function(){n.setState({accessRequestEnabled:!n.state.accessRequestEnabled}),O.Engagement.logData({name:"SiteSharingSettingsPanel.AccessRequest.Click"})},n.onAccessRequestSiteDescriptionChange=function(e,t){n.setState({accessRequestSiteDescription:t}),O.Engagement.logData({name:"SiteSharingSettingsPanel.AccessRequestSiteDescription.Click"})},n.onAccessRequestOptionChanged=function(e,t){n.setState({accessRequestOption:ve[t.key]})},n.onMembersCanShareOptionChanged=function(e,t){n.setState({membersCanShareOption:ye[t.key]})},n.onSelectedPeopleChange=function(e){var t,a=ee({selectedItems:e});!a&&e.length>0&&(e[0].email||(a=Y.createElement("span",null,De.s))),a&&(t=Y.createElement(H.usJ,{className:"ms-siteSharingSettingsPanel-peoplePicker-error",messageBarType:H.$ep.error},a));var i=e.length>0&&!t;n.setState({selectedPersons:e,peoplePickerError:t,personaSelected:i})},n.onSuggestionSelected=function(e){return n.peoplePickerProvider.resolve(e.userId,n.pickerParams).then(function(e){return!e.email&&e.rawData.EntityData&&(e.email=e.rawData.EntityData.OtherMails),e})},n.onDiscardDialogClick=function(){n.resetState(),n.props.onDismiss&&n.props.onDismiss(),O.Engagement.logData({name:"SiteSharingSettingsPanel.DialogDiscard.Click"})},n.onDismissSaveErrorMessage=function(){n.setState({saveFailed:!1,serverErrorDetails:[]}),O.Engagement.logData({name:"SiteSharingSettingsPanel.ErrorMessage.Click"})},n.state={showLoadingSpinner:!0},n.peoplePickerProvider=t.peoplePickerProvider,n.sharingSiteProvider=t.sharingSiteProvider,n.pickerParams={principalSource:15,principalType:7,allowEmailAddresses:!0,maximumEntitySuggestions:30,forceResolve:!0},O.Engagement.logData({name:"SiteSharingSettingsPanel.Opened.Click"}),n}return(0,s.XJ)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pageContext,a=t.isOpen,i=this.state,r=i.showLoadingSpinner,o=i.accessRequestOption,s=i.membersCanShareOptionDisabled,c=i.membersCanShareOption,d=i.accessRequestEnabled,l=i.accessRequestSiteDescription,u=i.selectedPersons,f=i.peoplePickerError,p=i.showConfirmDialog,m={iconName:"Back"};return Y.createElement(H.k8Z,{className:"ms-siteSharingSettingsPanel",isOpen:a,type:H.ecV.smallFixedFar,onDismiss:this.onDismiss,isLightDismiss:!0,forceFocusInsideTrap:!1,closeButtonAriaLabel:De.h,onRenderNavigationContent:function(t,n){return Y.createElement(Y.Fragment,null,Y.createElement("div",{className:"ms-siteSharingSettingsPanel-Header"},Y.createElement("div",{className:"ms-siteSharingSettingsPanel-Title-Container"},Y.createElement(R.hYu,{"data-is-focusable":!0,className:"ms-siteSharingSettings-BackButton",ariaLabel:De.h,iconProps:m,onClick:e.onBackButtonClick}),Y.createElement("p",{className:"ms-siteSharingSettingsPanel-Title"}," ",De.v))),n(t))},onRenderFooterContent:function(t,n){return Y.createElement("div",{className:"ms-siteSharingSettingsPanel-Footer"},Y.createElement(R.rfU,{className:"ms-siteSharingSettingsPanel-saveButton",onClick:e.onSaveClick,"data-automationid":"SiteSharingSettingsPanelSaveButton",disabled:e.hasInvalidSettings()||!e.haveSettingsChanged()},De.q),Y.createElement(R.B0k,{className:"ms-siteSharingSettingsPanel-discardButton",onClick:e.onDiscardClick,"data-automationid":"SiteSharingSettingsPanelPanelDiscardButton"},De.j),e.state.saveFailed&&Y.createElement("div",{className:"ms-groupMember-errorMessage"},Y.createElement(H.usJ,{messageBarType:H.$ep.error,isMultiline:!0,onDismiss:e.onDismissSaveErrorMessage,dismissButtonAriaLabel:De.h},Y.createElement("span",null,De.r),e.state.serverErrorDetails.map(function(e){return Y.createElement("span",null,e)}))))},styles:{content:"siteSharingSettingsPanel-content"}},Y.createElement("div",{className:"ms-siteSharingSettingsPanel-Content"},!r&&Y.createElement("div",null,Y.createElement("div",{className:"SiteSharingSettingsPanelDescription","data-automationid":"SiteSharingSettingsPanelDescription"},n.isTeamsChannelSite?De.t:De.u),s?Y.createElement(R.cbL,{className:"ms-siteSharingSettingsPanel-tenantAdminMembersCanShareMessage"},De.w):null,Y.createElement("div",{className:"ms-siteSharingSettingsPanel-SharingPermissionsChoiceGroup"},Y.createElement(R.vcq,{selectedKey:ye[c],options:n.isTeamsChannelSite?[{key:ye[1],text:De.k},{key:ye[2],text:De.n}]:[{key:ye[0],text:De.l},{key:ye[1],text:De.m},{key:ye[2],text:De.o}],label:De.p,styles:{root:{marginBottom:48},label:{fontWeight:"600",fontSize:16}},required:!1,disabled:s,onChange:this.onMembersCanShareOptionChanged})),Y.createElement("div",{className:"ms-siteSharingSettingsPanel-sectionHeader"},Y.createElement(R.cbL,{className:"ms-siteSharingSettingsPanel-sectionHeaderLabel"},De.c)),Y.createElement(R.bVQ,{checked:d,label:De.g,inlineLabel:!0,onChange:this.onAccessRequestChange,onText:De.y,offText:De.x,styles:{root:{justifyContent:"space-between"}}}),d&&Y.createElement("div",{className:"ms-siteSharingSettingsPanel-AccessRequestsChoiceGroup"},Y.createElement(R.vcq,{selectedKey:ve[o],options:[{key:ve[0],text:this.siteSharingSettings.ownersGroup&&this.siteSharingSettings.ownersGroup.title||De.d},{key:ve[1],text:De.b}],label:De.a,required:!1,onChange:this.onAccessRequestOptionChanged,styles:{root:{marginBottom:16},label:{fontWeight:"600"}}})),d&&o===ve.Email&&Y.createElement("div",{className:"ms-siteSharingSettingsPanel-container"},Y.createElement(ue.a,{noResultsFoundText:" ",context:n,peoplePickerType:fe.a.normal,onSelectedPersonasChange:this.onSelectedPeopleChange,onSuggestionSelected:this.onSuggestionSelected,dataProvider:this.peoplePickerProvider,itemLimit:1,peoplePickerQueryParams:this.pickerParams,selectedItems:u}),f),d&&Y.createElement(H.FuC,{label:De.e,className:"ms-siteSharingSettingsPanel-textField",placeholder:De.f,multiline:!0,rows:4,resizable:!1,value:l,onChange:this.onAccessRequestSiteDescriptionChange,maxLength:500,styles:{subComponentStyles:{label:{root:{paddingBottom:16}}}}})),r&&Y.createElement(R.tu6,null),Y.createElement(R.X$,{hidden:!p,className:"ms-siteSharingSettingsPanel-confirmDialog",onDismiss:this.onDiscardDialogClick,dialogContentProps:{type:H.r_c.normal,title:De.i},modalProps:{isBlocking:!1}},Y.createElement(H.j5C,null,Y.createElement(R.rfU,{className:"ms-siteSharingSettingsPanel-saveButton",onClick:this.onSaveClick,text:De.q}),Y.createElement(R.B0k,{className:"ms-siteSharingSettingsPanel-discardButton",onClick:this.onDiscardDialogClick,text:De.j})))))},t.prototype.componentDidMount=function(){var e=this;this.labelMembersCanShare=void 0,this.isLabelMembersCanShareActiveKSActivated?this.loadSiteSharingSettings():this.getSiteSensitivityLabelInfo().then(function(){if(e.siteSensitivityLabelInfo){var t=e.siteSensitivityLabelInfo.membersCanShare;"ShareAll"===t?e.labelMembersCanShare=ye.FileFolderSite:"ShareFileAndFolder"===t?e.labelMembersCanShare=ye.FileFolder:"ShareNone"===t&&(e.labelMembersCanShare=ye.None)}e.loadSiteSharingSettings()})},t.prototype.loadSiteSharingSettings=function(){var e=this;this.getSiteSharingSettings().then(function(){var t;t=!e.isLabelMembersCanShareActiveKSActivated&&void 0!==e.labelMembersCanShare||e.siteSharingSettings&&e.siteSharingSettings.tenantAdminMembersCanShare&&e.siteSharingSettings.tenantAdminMembersCanShare!==Se.Unspecified,e.setState({showLoadingSpinner:!1,membersCanShareOption:e.getMembersCanShareOption(),membersCanShareOptionDisabled:t,accessRequestEnabled:e.siteSharingSettings&&(e.siteSharingSettings.useAccessRequestDefault||!!e.siteSharingSettings.requestAccessEmail),accessRequestOption:!e.siteSharingSettings||!e.siteSharingSettings.useAccessRequestDefault&&e.siteSharingSettings.requestAccessEmail?ve.Email:ve.Default,requestAccessEmail:e.siteSharingSettings&&e.siteSharingSettings.requestAccessEmail,accessRequestSiteDescription:e.siteSharingSettings&&e.siteSharingSettings.accessRequestSiteDescription}),e.state.requestAccessEmail?e.peoplePickerProvider.resolve(e.state.requestAccessEmail,e.pickerParams).then(function(t){!t.email&&t.rawData.EntityData&&(t.email=t.rawData.EntityData.OtherMails),e.setState({selectedPersons:[t],showLoadingSpinner:!1,personaSelected:!0})}):e.setState({showLoadingSpinner:!1})})},t.prototype.getSiteSharingSettings=function(){var e=this;return this.sharingSiteProvider.getSiteSharingSettings().then(function(t){e.siteSharingSettings=t}).catch(function(t){e.siteSharingSettings=void 0})},t.prototype.getSiteSensitivityLabelInfo=function(){var e=this;return this.sharingSiteProvider.getSiteSensitivityLabelInfo().then(function(t){e.siteSensitivityLabelInfo=t}).catch(function(t){e.siteSensitivityLabelInfo=void 0})},t.prototype.haveSettingsChanged=function(){var e=this.state,t=e.accessRequestOption,n=e.membersCanShareOption,a=e.accessRequestEnabled,i=e.accessRequestSiteDescription,r=e.selectedPersons,o=e.personaSelected,s=a&&t===ve.Email&&o?r[0].email:"";return this.setMembersCanShareFromOption(n),this.siteSharingSettings&&(this.siteSharingSettings.membersCanShare!==this.membersCanShareEnabled||this.siteSharingSettings.membersGroup&&this.siteSharingSettings.membersGroup.allowMembersEditMembership!==this.membersCanAddToGroupEnabled||this.siteSharingSettings.requestAccessEmail!==s||this.siteSharingSettings.useAccessRequestDefault!==(a&&t===ve.Default)||this.siteSharingSettings.accessRequestSiteDescription!==i)},t.prototype.hasInvalidSettings=function(){return this.state.accessRequestEnabled&&this.state.accessRequestOption===ve.Email&&!this.state.personaSelected},t.prototype.setMembersCanShareFromOption=function(e){switch(this.membersCanShareEnabled=!1,this.membersCanAddToGroupEnabled=!1,e){case ye.FileFolderSite:this.membersCanShareEnabled=!0,this.membersCanAddToGroupEnabled=!0;break;case ye.FileFolder:this.membersCanShareEnabled=!0,this.membersCanAddToGroupEnabled=!1;break;default:this.membersCanShareEnabled=!1,this.membersCanAddToGroupEnabled=!1}},t.prototype.getMembersCanShareOption=function(){var e=ye.FileFolderSite;return void 0!==this.labelMembersCanShare?this.labelMembersCanShare:this.siteSharingSettings?(e=this.siteSharingSettings.tenantAdminMembersCanShare&&this.siteSharingSettings.tenantAdminMembersCanShare!==Se.Unspecified?this.siteSharingSettings.tenantAdminMembersCanShare===Se.On?ye.FileFolderSite:ye.None:this.siteSharingSettings.membersCanShare&&this.siteSharingSettings.membersGroup&&this.siteSharingSettings.membersGroup.allowMembersEditMembership?ye.FileFolderSite:this.siteSharingSettings.membersCanShare?ye.FileFolder:ye.None,this.props.pageContext.isTeamsChannelSite&&e===ye.FileFolderSite&&(e=ye.FileFolder),e):void 0},t.prototype.resetState=function(){this.setState({membersCanShareOption:this.getMembersCanShareOption(),accessRequestEnabled:this.siteSharingSettings&&(this.siteSharingSettings.useAccessRequestDefault||!!this.siteSharingSettings.requestAccessEmail),accessRequestOption:this.siteSharingSettings&&this.siteSharingSettings.useAccessRequestDefault?ve.Default:ve.Email,requestAccessEmail:this.siteSharingSettings&&this.siteSharingSettings.requestAccessEmail,accessRequestSiteDescription:this.siteSharingSettings&&this.siteSharingSettings.accessRequestSiteDescription,serverErrorDetails:[],saveFailed:!1})},t}(Y.Component),xe=(0,H.bDN)(Ie,function(e){return{root:[],label:{}}}),Ce=n(2946);(0,N.pZ)([{rawString:".ms-SitePermPanel-Pivot{right:20px;margin:8px 0 8px}.ms-sitePermPanel-buttonArea{max-width:160px;max-height:40px;margin-bottom:16px}.ms-SitePermPanel-PeoplePicker{margin-bottom:16px}.ms-SitePermPanel-PeoplePicker div.ms-BasePicker-text{border-color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.ms-SitePermPanel-PeoplePicker .ms-PickerPersona-item{display:flex}.ms-SitePermPanel-ShareSiteEmail-message-div{margin-bottom:24px}.ms-SitePermPanelButton{margin-bottom:24px}.ms-SitePermPanel-Link{outline:transparent;position:relative;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:';text-decoration:none;display:inline-block}.ms-SitePermPanel-Link::-moz-focus-inner{border:0}.ms-Fabric--isFocusVisible .ms-SitePermPanel-Link:focus:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:1px solid '},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.ms-SitePermPanel-Link.is-disabled{color:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:"}.ms-SitePermPanel-Link:focus,.ms-SitePermPanel-Link:hover{color:"},{theme:"themeDarker",defaultValue:"#004578"},{rawString:"}.ms-SitePermPanel-Link:active{color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.ms-sitePermPanel-TextArea{margin:8px 0 16px}.ms-SitePermPanel-AdvancedPerm{margin:28px 0 24px}.ms-SitePermPanel-HubPivotDiv{margin:8px 0 24px}[dir=ltr] .ms-SitePermPanel-HubPivot-permissions .ms-sitePerm-personaContainer{margin-left:0}[dir=rtl] .ms-SitePermPanel-HubPivot-permissions .ms-sitePerm-personaContainer{margin-right:0}.ms-SitePermPanel-SharePanel{margin-top:36px}.ms-SitePermPanelButton-container{padding:0 4px}.ms-SitePermPanel-HubVisitorPickerHint{font-size:12px;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.ms-SitePermPanel{color:"},{theme:"black",defaultValue:"#000"},{rawString:"}.ms-SitePermPanel .ms-Panel-navigation{height:18px;display:block}.ms-SitePermPanel-ShareSiteEmail{margin-bottom:30px}.ms-SitePermPanel-ShareSiteEmail-checkbox{margin-bottom:8px}.ms-SitePermPanel-PeoplePicker-error,.ms-SitePermPanel-PeoplePicker-warning{margin-top:8px}.ms-SitePermPanel-sectionTitle{font-weight:600;padding:0 0 10px}.ms-SitePermPanel-UserExpiration{margin-bottom:24px}.ms-SitePermPanel-UserExpiration-text{margin-bottom:10px}.ms-SitePermPanel-HubPivot-helperText{font-weight:400;margin-bottom:24px}.ms-SitePermPanel-SharingSettings{margin:12px 0 24px}.ms-SitePermPanel-NavigationContent{margin-top:18px;display:flex;width:100%;justify-content:flex-end}.ms-SitePermPanel-NavigationContent .ms-Panel-closeButton{margin-top:7px}.ms-SitePermPanel-BackIcon{color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";position:absolute;left:8px;margin-top:0}.ms-SitePermPanel-Title{font-size:"},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:"},{theme:"xLargeFontWeight",defaultValue:"600"},{rawString:";position:absolute;left:50px;margin-top:0}.ms-SitePermPanel-NavigationContentDismiss{display:flex;width:100%;justify-content:flex-end}.ms-SitePermPanel-NavigationContentDismiss .ms-Panel-closeButton{margin-top:12px;height:44px}.ms-AccessRequests-link{margin-bottom:18px}"}]);var Oe={ODB:1479},we="sitePerm-peoplePickerLabel",Ee=function(e){function t(t){var n,a=e.call(this,t)||this;return a._onChangeSendEmail=function(e){a.setState({shouldSendEmail:!a.state.shouldSendEmail})},a._removePermControl=function(e){a.setState({shouldHidePermControl:!0})},a._onChangeEnableHubPermissionSync=function(e,t){a.props.onSaveHubPermissionSync&&a.props.onSaveHubPermissionSync(t)},a._closePanel=function(){a._isLPCOpen||(a.setState({showPanel:!1,showUserExpirationPanel:!1}),a.props.onDismiss&&a.props.onDismiss())},a._onClick=function(){O.Engagement.logData({name:"SitePermissionsPanel.InvitePeople.Click"})},a._onSaveClick=function(e){a.setState({showSavingSpinner:!0,saveButtonDisabled:!0});var t=a._peoplePicker.selectedPeople;t&&t.length&&a.props.onSave&&a.props.onSave(t,a.state.shouldSendEmail,a._mailMessage).done(function(e){a.setState({showSavingSpinner:!1,saveButtonDisabled:!1,showPanel:a._showPanel()}),(a._isShareSiteErrorMessageKSActivated||e)&&a._resetSharePanel()}),O.Engagement.logData({name:"SitePermissionsPanel.Save.Click"})},a._showPanel=function(){return!!a.props.shareSiteErrorMsg||!a.props.shouldLoadSharePanelOnly&&a.state.showPanel},a._onCancelClick=function(e){a.props.onCancel&&(a._resetSharePanel(),a.props.onCancel()),O.Engagement.logData({name:"SitePermissionsPanel.Cancel.Click"})},a._onAccessRequestsClick=function(){a.setState({showAccessRequestDialog:!0})},a._onDismissAccessRequestsDialog=function(){a.setState({showAccessRequestDialog:!1})},a._onSuggestionSelected=function(e){var t=a.props.pickerSettings,n={principalSource:t.PrincipalSource,principalType:t.PrincipalAccountType,allowEmailAddresses:t.AllowEmailAddresses,filterExternalUsers:!1,maximumEntitySuggestions:30,forceResolve:!0};return!1===e.isExternal||e.isExternal&&e.providerName?e:(e.principalType===K.a.distributionList&&(n.isGraphDistributionList=!0,n.useGraph=!0,n.useSubstrate=!0),a._peoplePickerProvider.resolve(e.userId,n).then(function(e){return!e.email&&e.rawData.EntityData&&(e.email=e.rawData.EntityData.OtherMails),!e.name&&e.rawData.EntityData&&(e.name=e.rawData.EntityData.OtherMails),e}))},a._onSelectHubPersona=function(e){var t=e&&e[0];a.props.onAddHubUserCallback&&a.props.onAddHubUserCallback(t)},a._onSelectedPeopleChange=function(e){var t,n,i,r,o=[],s=ee({selectedItems:e}),c=function(e){var t,n=e.filter(function(e){return e.entityType===u.a.externalUser}),a=n.length,i=n.map(function(e){return e.name});if(2===a){var r=(t=i.join(", ")).lastIndexOf(","),o="".concat(t.substring(0,r)," ").concat($.c," ").concat(t.substring(r+1));return g.OO($.k,o)}return a>2?(r=(t=i.join(", ")).lastIndexOf(","),o="".concat(t.substring(0,r+1)," ").concat($.c," ").concat(t.substring(r+1)),g.OO($.k,o)):1===a?g.OO($.l,i[0]):""}(e),d=(r="",1===(i=e.filter(function(e){return e.entityType===u.a.group}).length)?r=$.j:i>1&&(r=g.OO($.h,i)),r);s&&(t=Y.createElement(H.usJ,{className:"ms-SitePermPanel-PeoplePicker-error",messageBarType:H.$ep.error},s)),c&&o.push(Y.createElement(H.usJ,{className:"ms-SitePermPanel-PeoplePicker-warning",messageBarType:H.$ep.warning},c)),d&&o.push(Y.createElement(H.usJ,{className:"ms-SitePermPanel-PeoplePicker-warning",messageBarType:H.$ep.warning},d)),o.length>0&&(n=Y.createElement("div",{className:"ms-SitePermPanel-PeoplePicker-warnings"},o)),a.setState({isPersonaSelected:a._peoplePicker.selectedPeople.length>0&&!t,peoplePickerError:t,peoplePickerWarnings:n})},a._siteSharingSettingsOnClick=function(){a.setState({showSiteSharingSettingsPanel:!0}),O.Engagement.logData({name:"SitePermissionsPanel.SiteSharingSettings.Click"})},a._onDismissSiteSharingSettingsPanel=function(){a.setState({showSiteSharingSettingsPanel:!1}),O.Engagement.logData({name:"SitePermissionsPanel.DismissSiteSharingSettings.Click"})},a._onUserExpirationClick=function(){a.setState({showUserExpirationPanel:!0}),O.Engagement.logData({name:"SitePermissionsPanel.UserExpirationPanel.Click"})},a._onDismissUserExpirationPanel=function(){a.setState({showUserExpirationPanel:!1}),O.Engagement.logData({name:"SitePermissionsPanel.DismissUserExpirationPanel.Click"})},a._isLPCOpenHandler=function(e){a._isLPCOpen=e},a._isUserExpirationPanelEnabled=t.pageContext.isSiteAdmin,t.pageContext.teamsChannelType===c.g.SharedChannel&&(a._isUserExpirationPanelEnabled=!1),a._isAccessRequestDialogEnabled=!1,a._isGroup=(0,c.k)(t.pageContext),a._mailMessage="",a._isLPCOpen=!1,a.state={showPanel:!0,showShareSiteOnly:t.showShareSiteOnly,shouldSendEmail:!0,showSiteSharingSettingsPanel:!1,showUserExpirationPanel:!1,showAccessRequestDialog:!1,showMsgBarForChannelSite:null===(n=a.props.pageContext)||void 0===n?void 0:n.isTeamsChannelSite},a._peoplePickerProvider=new W.a({pageContext:t.pageContext,peoplePickerDataSource:t.peoplePickerDataSource}),a._isUserExpirationPanelEnabled&&(a._userExpirationProvider=new q.UserExpirationProvider({dataSource:new Q.UserExpirationDataSource({pageContext:t.pageContext})}),a._userExpirationProvider.getExternalUserExpirationPolicy().then(function(e){return a.setState({userExpirationPolicyDays:e})})),!g.IT.isFeatureEnabled(Oe)||!g.HW.isActivated("9aa75fc6-c569-43eb-90a5-099794af3ba7","01/20/2023","Should hide access requests dialog")&&t.shouldHideAccessRequestsDialog||(a._accessRequestsProvider=new B({dataSource:new G({pageContext:t.pageContext})}),a._accessRequestsProvider.hasAccessRequests().then(function(e){a._isAccessRequestDialogEnabled=e&&(t.pageContext.isSiteAdmin||t.pageContext.isSiteOwner)})),a._isShareSiteErrorMessageKSActivated=g.HW.isActivated("e2de818a-f5bb-4b12-b2d2-a74a277f707b","06/22/2022","Display the error message from the server instead of a preset one"),a._layerHostSelector=(0,H.QVF)(),O.Engagement.logData({name:"SitePermissionsPanel.Opened.Click"}),a}return(0,s.XJ)(t,e),t.prototype.componentDidMount=function(){g.HW.isActivated("d750768e-ca5e-4070-9d2e-2220dac8ba99","01/24/2023","Delete Fluent default layer container to force persona card to render on top of panel")||"body"!==this._layerHostSelector||(0,H.s63)(document.body)},t.prototype.render=function(){var e=this,t=this.props,n=t.showShareSiteOnly,a=t.shouldDismissPanel,i=t.pickerSettings,r=t.showHubPivot,o=t.shouldLoadSharePanelOnly,s=o?t.shareSiteTitle||this._strings("shareSiteTitle"):null;return Y.createElement(H.k8Z,{className:"ms-SitePermPanel",isOpen:this.state.showPanel&&!a,type:H.ecV.smallFixedFar,onDismiss:this._closePanel,isLightDismiss:!0,headerText:n?s:t.title||this._strings("title"),forceFocusInsideTrap:!1,closeButtonAriaLabel:this._strings("closeButtonAriaLabel"),onRenderFooterContent:function(t,a){return n&&i?Y.createElement("div",{className:"ms-SitePermPanelButton"},Y.createElement("span",{className:"ms-SitePermPanelButton-container"},Y.createElement(R.rfU,{className:"ms-SitePermPanel-saveButton",disabled:!e.state.isPersonaSelected,onClick:e._onSaveClick,"data-automationid":"SitePermissionsPanelSaveButton"},e.props.saveButton)),Y.createElement("span",{className:"ms-SitePermPanelButton-container"},Y.createElement(R.B0k,{className:"ms-SitePermPanel-cancelButton",onClick:e._onCancelClick,"data-automationid":"SitePermissionsPanelCancelButton"},e._strings("cancelButton")))):null},onRenderNavigationContent:function(t,a){return n&&!o?Y.createElement("div",{className:"ms-SitePermPanel-NavigationContent","data-automation-id":Le()?void 0:"sitePermPanel-NavigationContent"},Y.createElement(R.hYu,{iconProps:{iconName:"Back"},className:"ms-SitePermPanel-BackIcon",onClick:e._onCancelClick,ariaLabel:e._strings("backButtonAriaLabel")}),Y.createElement("p",{className:"ms-SitePermPanel-Title",role:"heading","aria-level":1},e.props.shareSiteTitle||e._strings("shareSiteTitle")),a(t)):Y.createElement("div",{className:"ms-SitePermPanel-NavigationContentDismiss","data-automation-id":Le()?void 0:"sitePermPanel-NavigationDismiss"},a(t))}},n&&i&&this._renderShareSiteOnly(),!n&&r&&Y.createElement(R.ymH,{className:"ms-SitePermPanel-Pivot"},Y.createElement(R.G1D,{headerText:this._strings("pivotThisSite")},this._renderPermissions()),Y.createElement(R.G1D,{headerText:this._strings("pivotHubSite")},this._renderHubPermissions())),!n&&!r&&this._renderPermissions())},t.prototype._renderAdvancedPermSettings=function(){var e,t=this.props,n=t.advancedPermSettingsUrl,a=t.hasCustomizedGroups,i=t.pageContext,r=t.permissionLevelOfCurrentUser,s=t.isDefaultPermissionsChanged,c=t.showShareSiteOnly;if(n&&(r===o.FullControl||f.a.hasPermission(i.webPermMasks,f.a.managePermissions))){if(i.isTeamsChannelSite)return e;var d=Y.createElement(R.NG4,{href:n,target:"_blank",className:"ms-MessageBar-link","data-automationid":"SitePermissionsPanelAdvancedPermLink"},this._strings("advancedPermSettings")),l=void 0;s?l=c?this._strings("sharePanelUniquePermissionDescription"):this._strings("uniquePermissionDescription"):a&&(l=this._strings("additionalGroupsDescription")),l&&(-1===l.indexOf("{0}")&&(l+=" {0}."),d=Y.createElement("span",null,g.ni(l,d))),e=Y.createElement("div",{className:"ms-SitePermPanel-AdvancedPerm"},d)}return e},t.prototype._renderSiteSharingSetting=function(){var e,t=this.props,n=t.shouldHideSiteSharingSettingPanel,a=t.pageContext,i=t.permissionLevelOfCurrentUser,r=this.state.showSiteSharingSettingsPanel;if((Ae()||!n)&&(i===o.FullControl||f.a.hasPermission(a.webPermMasks,f.a.managePermissions))){var s=Y.createElement(R.NG4,{className:"ms-MessageBar-link","data-automationid":"SitePermissionsPanelSiteSharingSettingsLink",onClick:this._siteSharingSettingsOnClick},this._strings("siteSharingSectionText"));e=Y.createElement("div",{className:"ms-SitePermPanel-SharingSettings"},Y.createElement("div",{className:"ms-SitePermPanel-sectionTitle"}," ",this._strings("siteSharingSectionTitle")),s,r&&Y.createElement(xe,{isOpen:r,onDismiss:this._onDismissSiteSharingSettingsPanel,pageContext:a,peoplePickerProvider:this._peoplePickerProvider,sharingSiteProvider:new S({pageContext:a})}))}return e},t.prototype._renderUserExpiration=function(){var e=this.props.pageContext,t=this.state,n=t.showUserExpirationPanel,a=t.userExpirationPolicyDays,i=Y.createElement(R.NG4,{className:"ms-MessageBar-link","data-automationid":"SitePermissionsPanelUserExpirationLink",onClick:this._onUserExpirationClick},this._strings("userExpirationLink"));return null!=a&&Y.createElement("div",{className:"ms-SitePermPanel-UserExpiration"},Y.createElement("div",{className:"ms-SitePermPanel-sectionTitle"},this._strings("userExpiration")),Y.createElement("div",{className:"ms-SitePermPanel-UserExpiration-text"},g.Gx(this._strings("userExpirationText"),this._strings("userExpirationInterval"),a)),i,n&&Y.createElement(Ce.a,{isOpen:n,onBackButton:this._onDismissUserExpirationPanel,onDismiss:this._closePanel,pageContext:e,userExpirationProvider:this._userExpirationProvider,userExpirationPolicyDays:a,userExpirationPolicyEnabled:a>0}))},t.prototype._renderAccessRequestsDialog=function(){var e=this.state.showAccessRequestDialog,t=this.props.pageContext,n=Y.createElement(R.NG4,{className:"ms-AccessRequests-link","data-automationid":"SitePermissionsPanelAccessRequestsDialogLink",onClick:this._onAccessRequestsClick},this._strings("accessRequestsLink"));return Y.createElement("div",{className:"ms-SitePermPanel-AcessRequests"},n,e&&Y.createElement(le,{showAccessRequestDialog:e,onDismiss:this._onDismissAccessRequestsDialog,pageContext:t,peoplePickerDataSource:this.props.peoplePickerDataSource}))},t.prototype._renderPermissions=function(){var e=this,t=this.props.sitePermissions;return Y.createElement("div",null,this.state.showMsgBarForChannelSite&&this._renderMessageBarForChannelSite(),this._renderInviteContextMenu(),t&&Y.createElement("div",{style:{marginTop:this.props.pageContext.isTeamsChannelSite?20:0}},t.map(function(t){return e._getSitePermissions(t)})),this._renderSiteSharingSetting(),this._isAccessRequestDialogEnabled&&this._renderAccessRequestsDialog(),this._isUserExpirationPanelEnabled&&this._renderUserExpiration(),this._renderAdvancedPermSettings())},t.prototype._renderMessageBarForChannelSite=function(){var e=this;return Y.createElement(H.usJ,{messageBarType:H.$ep.blocked,onDismiss:function(){return e.setState({showMsgBarForChannelSite:!1})},dismissButtonAriaLabel:"Close",styles:{root:{marginTop:20}}},this._strings("msgBarMessageForChannelSite"),Y.createElement(R.NG4,{href:J.b.getHelpLink(J.a.TEMAS_CONNECTED_SITE_HELP_LINK,this.props.pageContext.currentUICultureName),target:"_blank"},this._strings("LearnMoreLinkText")))},t.prototype._renderInviteContextMenu=function(){if(this.props.pageContext.isTeamsChannelSite)return null;var e=this.props,t=e.descriptionLearnMoreUrl,n=e.menuItems,a=e.onShareSiteCallback,i=e.sitePermissions,r=e.permissionLevelOfCurrentUser,s=e.pickerSettings,c=e.shouldShowInviteButton,d={items:n,className:"ms-sitePermPanel-invitePeopleContextualMenu"};return Y.createElement("div",null,Y.createElement("p",{className:"ms-sitePermPanel-TextArea","data-automationid":"SitePermissionsPanelDescription"},this._strings("panelDescription"),!Ae()&&t&&Y.createElement(Y.Fragment,null," ",Y.createElement(R.NG4,{href:t,target:"_blank"},this._strings("LearnMoreLinkText")))),Y.createElement("div",{className:"ms-sitePerm-ContextMenu"},s&&i&&(r===o.FullControl||r===o.Edit)&&c&&Y.createElement("div",{className:"ms-sitePermPanel-buttonArea"},Y.createElement(R.rfU,{menuProps:this._isGroup?d:void 0,className:(0,N.N0)("ms-sitePermPanel-itemBtn",this._isGroup?"ms-sitePermPanel-invitePeopleButton":"ms-sitePermPanel-shareSiteButton"),onClick:this._isGroup?this._onClick:a,"data-automationid":"SitePermissionsPanelInviteButton"},this._isGroup?this._strings("invitePeople"):this._strings("shareSiteTitle")))))},t.prototype._renderHubPermissions=function(){var e,t=this,n=this.props,a=n.isHubSite,i=n.hubSiteTitle,r=n.enableHubPermissionsSync,o=n.showHubSyncToggleSpinner,c=n.hubSyncControlsAreDisabled,d=n.hubPivotErrorString,l=n.isOverHubPermSyncLimit,u=n.hubVisitorsCount,f=a?this._strings("enableHubSitePermissionSyncToggle"):this._strings("enableAssociatedSitePermissionSyncToggle"),p=void 0;a?p=r?this._strings("hubSitePivotHelperTextLabel"):this._strings("hubSitePivotDisabledHelperTextLabel"):i&&(p=r?g.OO(this._strings("associatedSitePivotHelperTextLabel"),null===(e=this.props.pageContext)||void 0===e?void 0:e.webTitle,i):g.OO(this._strings("hubSiteSyncDisallowedHelperTextLabel"),i));var m=r&&!o,_=m&&a,h=this._getPeoplePickerProps(),b=(0,s.W_)((0,s.W_)({},h),{itemLimit:1,peoplePickerType:fe.a.normal,onSelectedPersonasChange:this._onSelectHubPersona,peoplePickerQueryParams:(0,s.W_)((0,s.W_)({},h.peoplePickerQueryParams),{allowEmailAddresses:!1}),inputProps:{"aria-label":this._strings("hubVisitorsPeoplePickerArialLabel"),placeholder:this._strings("hubPeoplePickerPlaceholder")}}),v=10-u;return v<0&&(v=0),Y.createElement("div",{className:"ms-SitePermPanel-HubPivotDiv"},Y.createElement(R.bVQ,{checked:r,disabled:o||c,label:f,onText:this._strings("toggleOn"),offText:this._strings("toggleOff"),onChange:this._onChangeEnableHubPermissionSync}),o?Y.createElement(R.tu6,null):null,p&&Y.createElement(R.cbL,{className:"ms-SitePermPanel-HubPivot-helperText"},p+" ",Y.createElement(R.NG4,{href:"https://go.microsoft.com/fwlink/?linkid=2133626"},this._strings("LearnMoreLinkText"))),m&&Y.createElement(R.cbL,null,this._strings("hubVisitors")),_?Y.createElement("div",{className:"ms-SitePermPanel-PeoplePicker","data-automationid":"SitePermissionsPanelHubPeoplePicker"},l&&Y.createElement(H.usJ,{messageBarType:H.$ep.warning},this._strings("over10EntitiesInHubVisitorsNotice")),Y.createElement(ue.a,(0,s.W_)({},b)),Y.createElement(R.cbL,{className:"ms-SitePermPanel-HubVisitorPickerHint"},g.OO(this._strings("hubVistorsPickerHint"),v))):null,d&&Y.createElement(H.usJ,{className:"ms-SitePermPanel-HubPivot-error",messageBarType:H.$ep.error},d),!o&&r&&this.props.hubSitePermissions&&Y.createElement("div",{className:"ms-SitePermPanel-HubPivot-permissions"},this.props.hubSitePermissions.map(function(e){return t._getSitePermissions(e)})))},t.prototype._renderShareSiteOnly=function(){var e=this,t=this.props,n=t.goToOutlookOnClick,a=t.isEmailSharingEnabled,i=t.pageContext,r=t.shouldLoadSharePanelOnly,o=t.sitePermissions,c=t.sitePreviewLoader,d=t.isDefaultPermissionsChanged,l=t.shareSiteErrorMsg,u=this.state,f=u.isPersonaSelected,p=u.peoplePickerError,m=u.peoplePickerWarnings,_=u.shouldHidePermControl,h=u.shouldSendEmail,b=u.showSavingSpinner,v=null;return this._isGroup&&n&&(v=Y.createElement("div",{className:"ms-SitePermPanel-PeoplePicker","data-automationid":"SitePermissionsPanelPeoplePicker"},(0,te.a)(this._strings("shareSiteOnlyVerboseText"),this._strings("shareSiteOnlyAddMembersLinkText"),R.NG4,{className:"ms-SitePermPanel-Link",onClick:n,"data-automationid":"SitePermissionsPanelAddMemberLink"}))),d?this._renderAdvancedPermSettings():Y.createElement("div",{className:"ms-SitePermPanel-SharePanel"},Y.createElement("div",{onClick:this._removePermControl,className:"ms-SitePermPanel-PeoplePicker","data-automationid":"SitePermissionsPanelPeoplePicker"},Y.createElement("div",{className:"ms-SitePermPanel-PeoplePicker",id:we},i.isSPO?this._strings("addUserOrGroupText"):this._strings("addUserOrGroupTextNoO365Group")),v,Y.createElement(ue.a,(0,s.W_)({},this._getPeoplePickerProps(),{componentRef:function(t){t&&(e._peoplePicker=t)}})),p||m),Y.createElement("div",null,r&&!_&&Y.createElement("div",null,o&&o.map(function(t){return e._getSitePermissions(t)})),a&&f&&Y.createElement("div",{className:"ms-SitePermPanel-ShareSiteEmail"},Y.createElement(R.mSm,{className:"ms-SitePermPanel-ShareSiteEmail-checkbox",defaultChecked:h,label:this._strings("sendEmailText"),onChange:this._onChangeSendEmail}),h&&Y.createElement("div",{className:"ms-SitePermPanel-ShareSiteEmail-message-div"},Y.createElement(H.FuC,{className:"ms-SitePermPanel-ShareSiteEmail-message",multiline:!0,resizable:!1,placeholder:this._strings("messagePlaceHolderText"),onChange:function(t,n){return e._mailMessage=n}}),c))),b&&Y.createElement(R.tu6,null),!g.HW.isActivated("5a013444-053c-4234-8a89-3443d47a5952","02/04/2021","Improve share site error handling")&&l&&Y.createElement(H.usJ,{"aria-label":this._isShareSiteErrorMessageKSActivated?this._strings("sharingIsDisabledByOwners"):l,messageBarType:H.$ep.error,isMultiline:!0,dismissButtonAriaLabel:this._strings("closeButtonAriaLabel")},this._isShareSiteErrorMessageKSActivated?this._strings("sharingIsDisabledByOwners"):l))},t.prototype.renderPeoplePickerItemWithMenu=function(e){var t,n=this.props.sitePermissionsContextualMenuItems.map(function(e){return e.permissionLevel});t=e.item.permissionLevel?e.item.permissionLevel:n.indexOf(this.props.addMemberDefaultPermissionLevel)>-1?this.props.addMemberDefaultPermissionLevel:n.indexOf(o.Edit)>-1?o.Edit:n.indexOf(o.Read)>-1?o.Read:o.FullControl;var a=this.props.permissionLevelOfCurrentUser===o.FullControl?this.props.sitePermissionsContextualMenuItems.filter(function(e){return e.permissionLevel!==t}).map(function(t){return(0,s.W_)((0,s.W_)({},t),{onClick:function(t,n){var a=e.item;a.permissionLevel=n.permissionLevel,e.onItemChange(a,e.index)}})}):void 0;return Y.createElement(pe.a,(0,s.W_)((0,s.W_)({},e),{menuTitle:this.props.permissionLevelOfCurrentUser!==o.FullControl?"":this.props.permissionStrings[t],menuItems:a}))},t.prototype._getSitePermissions=function(e){return Y.createElement(be,(0,s.W_)({},e,{key:e.permLevel,pageContext:this.props.pageContext,lpcModuleLoader:g.HW.isActivated("d41cdd32-c16a-4c7c-abd5-a6a4f08f057c")?this.props.lpcModuleLoader:void 0,lpcModuleCustomWaiter:this.props.lpcModuleCustomWaiter,isLPCOpenHandler:this._isLPCOpenHandler}))},t.prototype._resetSharePanel=function(){this._mailMessage="",this.setState({shouldSendEmail:!0,isPersonaSelected:!1,peoplePickerWarnings:void 0,peoplePickerError:void 0})},t.prototype._getPeoplePickerProps=function(){var e=this,t=this.props,n=t.pageContext,a=t.pickerSettings;return{noResultsFoundText:" ",context:n,peoplePickerType:fe.a.listBelow,onSelectedPersonasChange:this._onSelectedPeopleChange,onRenderItem:function(t){return e.renderPeoplePickerItemWithMenu(t)},onSuggestionSelected:this._onSuggestionSelected,dataProvider:this._peoplePickerProvider,peoplePickerQueryParams:{allowEmailAddresses:!0,allowMultipleEntities:null,allUrlZones:null,enabledClaimProviders:null,forceClaims:null,groupID:0,maximumEntitySuggestions:30,principalSource:a&&a.PrincipalSource,blockExternalUsers:!0,principalType:a&&a.PrincipalAccountType,required:null,urlZone:null,urlZoneSpecified:null,useGraph:!n.enforceIBSegmentFilter,useSubstrate:n.IBSegments&&n.IBSegments.length>0,conversationId:b.a.generate(),siteIBSegmentIDs:n.IBSegments},suggestionsAvailableAlertText:this._strings("suggestionsAvailableAlertText"),enableSelectedSuggestionAlert:!0,inputProps:{id:Le()?void 0:"peoplePickerTextInput","aria-labelledby":we,autoFocus:!0},customizeSuggestionPersonaProps:Le()?void 0:function(e){return(0,s.W_)((0,s.W_)({},e),{"data-automation-id":"peoplePickerSuggestionPersona"})}}},t.prototype._strings=function(e){var t;return g.HW.isActivated("921498ad-0a8e-4008-bf13-cb518c0ad112")?E[e]:(null===(t=this.props.strings)||void 0===t?void 0:t[e])||E[e]},t}(Y.Component);function Ae(){return g.HW.isActivated("6f44d188-0fd4-4289-9f05-5c349fe010bc")}function Le(){return g.HW.isActivated("34e805e1-9976-4e91-b2ed-188ce91b5c76")}var ke=n(1818),Me=n(186),Pe=n(274),Te=n(42),Ue=n(363),Fe=function(e){function t(t){var n=e.call(this,t)||this;n._resources=t.hostModel.resources,n._pageContext=n._resources.consume(Te.n);var a=(0,c.k)(n._pageContext);return n._bundleLoader=n._resources.consume(Pe.a),n.state={showShareSiteOnly:t.showShareSiteOnly},n._state=new T({sitePermissionsPanelContainer:n,pageContext:n._pageContext,advancedPermSettingsUrl:n.getAdvancedPermissionsSettingsUrl(),goToOutlookOnClick:n._goToMembersOnClick.bind(n),addMemberDefaultPermissionLevel:a?void 0:o.Read,isEmailSharingEnabled:!0,peoplePickerDataSource:n._resources.consume(ke.resourceKey),shouldLoadSharePanelOnly:t.shouldLoadSharePanelOnly}),n}return(0,s.XJ)(t,e),t.prototype.componentDidMount=function(){this._state.componentDidMount()},t.prototype.componentWillUnmount=function(){this._state.componentWillUnmount()},t.prototype.render=function(){var e=g.HW.isActivated("d41cdd32-c16a-4c7c-abd5-a6a4f08f057c")?(0,Ue.a)():void 0,t=this._state.getRenderProps(e,this._bundleLoader.waitForPLT());return Y.createElement(Ee,(0,s.W_)({},t))},t.prototype.getAdvancedPermissionsSettingsUrl=function(){return"".concat(this._pageContext.webAbsoluteUrl,"/").concat(this._pageContext.layoutsUrl,"/user.aspx")},t.prototype._goToMembersOnClick=function(){var e=this._resources.consume(Me.a),t=new(this._resources.injected(e.LaunchGroupMembershipPanelAction))({}),n=function(){t.dispose()};t.execute(null).done(n,n)},t}(Y.Component);const He=Fe}
,2550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SiteSettingsPanelContainer:()=>X,default:()=>Z});var a=n("tslib_102"),i=n("react-lib"),r=n(2258),o=n(2947),s=n(83),c=n(96),d=n(26),l=n(114),u=n(43),f=n(1447),p=n(7149),m=n(7151),_=n(1452),h=n(2817),b=n(1821),g=n(641),v=n(2818),y=n("odsp.util_578"),S={ODB:1075},D=function(e){function t(t){return e.call(this,{},{pageContext:t})||this}return(0,a.XJ)(t,e),t.prototype.getSiteStatus=function(e){var n=this;return this.getData(function(){return n._pageContext.webAbsoluteUrl+y.OO("/_api/SPSiteManager/status?url='{0}'",e)},function(e){return t._parseSiteInfoResponse(e,"Status")},"GetSiteStatus",void 0,"GET",void 0,void 0,3)},t.prototype.createSite=function(e){var n,a=this;return y.HW.isActivated("86b296d3-8110-463b-ae4c-b439789cef27","03/08/2022","Return correlation id with site creation results")||(n=function(e){var t;return e.response&&(e.response.correlationId=null===(t=e.eventData.extraData)||void 0===t?void 0:t.CorrelationId),e}),this.getData(function(){return a._pageContext.webAbsoluteUrl+"/_api/SPSiteManager/Create"},function(e){return t._parseSiteInfoResponse(e,"Create")},"CreateSite",function(){var t={request:{__metadata:{type:"Microsoft.SharePoint.Portal.SPSiteCreationRequest"},WebTemplate:e.webTemplate,Title:e.title,Url:e.url,Description:e.description,Classification:e.classification,SensitivityLabel:e.sensitivityLabel,SiteDesignId:e.siteDesignId,Lcid:e.lcid?e.lcid:void 0,TimeZoneId:e.timeZoneId?e.timeZoneId:void 0,ShareByEmailEnabled:e.shareByEmailEnabled,WebTemplateExtensionId:e.webTemplateExtensionId?e.webTemplateExtensionId:u.a.Empty,Owner:e.owner?e.owner:void 0}};return y.tH.isFeatureEnabled(S)&&(t.request.HubSiteId=e.hubSiteId?e.hubSiteId:u.a.Empty),t.request.AdditionalSiteFeatureIds=e.additionalSiteFeatureIds?{results:e.additionalSiteFeatureIds.map(function(e){return e.toString()})}:void 0,t.request.AdditionalWebFeatureIds=e.additionalWebFeatureIds?{results:e.additionalWebFeatureIds.map(function(e){return e.toString()})}:void 0,JSON.stringify(t)},"POST",void 0,void 0,3,void 0,void 0,n)},t.prototype.deleteSite=function(e){var t=this;return this.getData(function(){return t._pageContext.webAbsoluteUrl+"/_api/SPSiteManager/Delete"},void 0,"DeleteSite",function(){var t={siteId:e};return JSON.stringify(t)},"POST",void 0,void 0,3)},t._parseSiteInfoResponse=function(e,t){var n=JSON.parse(e);if(!n.d||!n.d[t])return{siteStatus:3};var a=n.d[t];return{siteUrl:a.SiteUrl,siteStatus:a.SiteStatus}},t}(v.a),I=function(){function e(e){this._dataSource=e.dataSource||new D(e.pageContext)}return e.prototype.checkSiteExists=function(e){return this._dataSource.checkSiteExists(e)},e.prototype.createSite=function(e){return this._dataSource.createSite(e)},e.prototype.getSiteStatus=function(e){return e?this._dataSource.getSiteStatus(e):d.c.reject("Missing site url.")},e.prototype.deleteSite=function(e){return this._dataSource.deleteSite(e)},e.prototype.getTenantAdminSettings=function(){return this._dataSource.getTenantAdminSettings()},e.prototype.updateSiteProperties=function(e){return this._dataSource.updateSiteProperties(e)},e}(),x=n(7165),C=n(7164),O=n(7163),w=n(2707),E=n(2948),A=n(7579),L=n(2659),k=n(1941),M=n(41),P=n(2839),T=n(45),U=n(7580),F=n(2795),H=n(2497),R=n(2949),N=n(20),B=n(2820),j=n("fui.lco_496"),V="private",z="public",G={ODB:60328},K={ODB:60625},W={ODB:1401},q=y.HW.isActivated("9c709718-b788-404b-9a1b-f6cbf4045797","08/13/2022","Add Unpublished Label To Label List Kill Switch"),Q=y.HW.isActivated("11edae2c-0b8d-4586-a335-696b2ac70afc","09/15/2023","Use Label privacy from Page Context"),Y=function(){function e(e){var t,n,a=this;this._onCancelPendingHubSiteJoin=function(){(a._params.siteSettingsPanelContainer.state||{}).isHubSiteJoinPending&&a._hubDataSource.onHubSiteJoinRequestCanceled().then(function(){return a._hubDataSource.getHubSiteJoinApprovalCorrelationId()}).then(function(e){if(a._isHubSiteApprovalPending(e))a.setState({errorMessage:A.G});else{var t=a._pageContext.hubSiteId?a._pageContext.hubSiteId:"";a.setState({isHubSiteJoinPending:!1,joinHubSiteSelectedKey:t})}}).catch(function(){a.setState({errorMessage:A.G})})},this._onDeleteGroup=function(){var e;e=a._isGroup?a._groupsProvider.deleteSite(a._pageContext.siteAbsoluteUrl):a._isRootWeb?a._spSiteProvider.deleteSite(a._pageContext.siteId):a._webDataSource.delete(),a.setState({groupDeleteErrorMessage:null}),e.then(function(){window.location.href=a._getSharePointHomePageUrl()},function(e){if(404!==e.status)throw a.setState({groupDeleteErrorMessage:a._getErrorString(e)}),e;window.location.href=a._getSharePointHomePageUrl()})},this._onDeleteGroupDismiss=function(){a.setState({groupDeleteErrorMessage:null})},this._onDismiss=function(){a.setState({isPanelOpen:!1})},this._onSave=function(e,t,n,i,r,s,c,l,f,p){a.setState({errorMessage:null});var m=new N.a({name:"SiteSettingsPanel.OnSave"}),_=f||p?new N.a({name:"SiteSettingsPanelWithTranslations.OnSave"}):void 0,h=s&&s.key;if(a._isGroup){var b=a._getGroupToBePatchedNew(e,t,n,i);if(!y.HW.isActivated("952bf3d2-dabd-47c3-8309-52b4220e944a","9/25/2020","AuthZenMandatoryLabelClient")&&!b)return m.end({resultType:N.b.Failure}),void(null==_||_.end({resultType:N.b.ExpectedFailure}));a._groupsProvider.saveGroupProperties(b).then(function(){if(r){if(-1===o.c.indexOf(r.type))throw new Error(U.l);if(r.size>o.a)throw new Error(U.k);return a._groupsProvider.setGroupImage(r).catch(function(e){throw e&&e.status&&404===e.status?new Error(U.m):new Error(U.j)})}}).then(function(){return a._updateHubState(h,c)}).then(function(){return a._updateHubPermSyncSetting(l,h,c)}).then(function(){return a._groupsProvider.syncGroupProperties()}).then(function(){m.end({resultType:N.b.Success}),null==_||_.end({resultType:N.b.Success}),window.location.reload()}).catch(function(e){m.end({resultType:N.b.Failure}),null==_||_.end({resultType:N.b.ExpectedFailure}),a.setState({errorMessage:a._getErrorString(e)})})}else{var v={description:t,title:e,titleTranslations:f?B.b.convertTranslationInputToSPResourceEntry(f):void 0,descriptionTranslations:p?B.b.convertTranslationInputToSPResourceEntry(p):void 0},S=d.c.resolve(v);if(r){var D="__sitelogo__"+r.name;S=(0,P.a)(a._spListCollectionDataSource,a._webDataSource,D,r).then(function(e){return v.siteLogoUrl=e.serverRelativeUrl,v})}else null===r&&(v.siteLogoUrl="");var I=null,x=null;if(a._isSensLabelPresentInLabelListOrPageContext){var C=a._creationContext;if(a._isSensLabelsValuesExist){if(!i)return void a.setState({errorMessage:U.a});JSON.stringify(C.dataClassificationOptionsNew).indexOf(JSON.stringify({classificationTitle:i.key.toString(),classificationDescription:i.text}))>-1||!q&&y.tH.isFeatureEnabled(W)&&i.key===a._pageContext.sensitivityLabel?(I=i.text,x=i.key.toString()):i.key.toString()===u.a.Empty&&(I="",x="")}else!q&&y.tH.isFeatureEnabled(W)&&i.key===a._pageContext.sensitivityLabel&&(I=i.text,x=i.key.toString())}S.then(function(e){return a._webDataSource.setBasicWebProperties(e)}).then(function(){var e=new g.SiteDataSource(a._pageContext);return a._isSensLabelPresentInLabelListOrPageContext?e.setClassificationPropertyAndId(I,x):a._pageContext.isSiteAdmin&&i&&i.text?e.setClassificationProperty(i.text):void 0}).then(function(){return a._updateHubState(h,c)}).then(function(){return a._updateHubPermSyncSetting(l,h,c)}).then(function(){m.end({resultType:N.b.Success}),null==_||_.end({resultType:N.b.Success}),window.location.reload()}).catch(function(t){var n;!y.HW.isActivated("5b390194-1e57-4d0e-b4a6-90a0a25249b0","06/03/2021")&&e&&e.length>256&&(n=N.b.ExpectedFailure,t=U.n);var i={resultType:n||N.b.Failure,resultCode:t?t.code:"undefined error",error:t?t.toString():"_api/web failed",extraData:y.HW.isActivated("54cc7e68-a39d-46f6-80f5-11ea81e3b325","02/26/2021","MUI Editing monitor (this can be used in general)")?void 0:{siteId:a._pageContext.siteId,tenantID:a._pageContext.siteSubscriptionId,correlationId:t?t.correlationId:"undefined error",containsMUIEditingTitle:f,containsMUIEditingDescription:p}};m.end(i),null==_||_.end(i),a.setState({errorMessage:a._getErrorString(t)})})}},this._onValidateGroupName=function(e){var t,n,i=a._groupsProvider.group&&a._groupsProvider.group.alias?a._groupsProvider.group.alias:void 0;if(a.setState({isGroupNameValidationInProgress:!0,groupNameValidationError:void 0,groupNameWithPrefixAndSuffix:void 0}),!e)return a.setState({isGroupNameValidationInProgress:!1,groupNameValidationError:U.d,groupNameWithPrefixAndSuffix:n}),d.c.resolve(void 0);var r=function(e){var t;return e.validationErrorCode===h.a.containsBlockedWord&&(t=e.blockedWord?y.OO(U.b,e.blockedWord):U.c),t},o=function(e){e&&e.message&&a._params.siteSettingsPanelContainer.state&&a._params.siteSettingsPanelContainer.state.isGroupNameValidationInProgress&&a.setState({isGroupNameValidationInProgress:!1,groupNameValidationError:e.message.value})};return a._groupSiteProvider.validateGroupName(e,i).then(function(a){if(a.displayNameErrorDetails){var i=a.displayNameErrorDetails;i.validationErrorCode===h.a.missingPrefixSuffix?n=[i.prefix,e,i.suffix].join(""):t=r(i)}},function(e){o(e)}).then(function(){return n?a._groupSiteProvider.validateGroupName(n,i):d.c.resolve(void 0)}).then(function(e){e&&e.displayNameErrorDetails&&(t=r(e.displayNameErrorDetails)),a._params.siteSettingsPanelContainer.state&&a._params.siteSettingsPanelContainer.state.isGroupNameValidationInProgress&&a.setState({isGroupNameValidationInProgress:!1,groupNameValidationError:t,groupNameWithPrefixAndSuffix:n})},function(e){o(e)})},this._params=e,this._pageContext=e.pageContext,this._isGroup=(0,c.k)(this._pageContext),this._isRootWeb=this._pageContext.webAbsoluteUrl===this._pageContext.siteAbsoluteUrl,this._isCommunicationSite=Number(this._pageContext.webTemplate)===T.a.sitePagePublishing,this._canDeleteGrouplessTeamSite="STS#3"===this._pageContext.webTemplateConfiguration,this._params.siteSettingsPanelContainer.state={isPanelOpen:!0,flowWidgetPanelProps:{isOpen:!1}},y.HW.isActivated("65DD3DD8-F4B9-4DBE-BBBC-4CDAD4A544AF","10/27/2020","Switch BizApps flight checks to farm settings")?this._isHubSiteJoinApprovalFlightEnabled=y.tH.isFeatureEnabled({ODB:1076}):this._isHubSiteJoinApprovalFlightEnabled=1===Number(null===(n=null===(t=this._pageContext)||void 0===t?void 0:t.farmSettings)||void 0===n?void 0:n.ExternalService_bizappshubsitejoinapprovalenabled),this._isSiteAccessRestrictionFlightEnabled=y.tH.isFeatureEnabled({ODB:1747}),this._hubDataSource=new k.HubDataSource(this._pageContext),this._enableDelete=this._isGroup||this._isCommunicationSite||!this._isRootWeb||this._canDeleteGrouplessTeamSite,this._flowDataSource=new F.a(e.pageContext),this._isPendingHubJoinApproval=!1}return e.prototype.componentDidMount=function(){var e=this;y.HW.isActivated("1c92cec9-ae27-49d9-953c-164b32f4c842","03/16/2023","Cleanup fluent layer host when site info panel mounts")||(0,j.s63)(document.body);var t=this._params,n=[],a=t.pageContext;this._spListCollectionDataSource=new w.a(a),this._acronymDataSource=new f.a(a);var i=this._acronymDataSource.getAcronymData(a.webTitle);if(n.push(i),i.then(function(t){e.setState({siteAcronym:t.acronym,siteLogoColor:e._isGroup?a.groupColor:t.color})}),this._setUpHubOptions(n),this._isSiteAccessRestrictionFlightEnabled){var r=new g.SiteDataSource(this._pageContext).getRestrictedAccessControlGroupsProperty().then(function(t){var n=t.map(function(e){return JSON.parse(e)}).filter(function(e){return!!e.displayName}).map(function(e){return e.displayName}),a=n.length>0;e.setState({isSiteAccessRestrictionEnabled:a,restrictedSiteAccessGroups:n})});n.push(r)}var o=new N.a({name:"SiteSettingsPanel.GetGroup"});if(this._isGroup){this._groupsProvider=new p.a({pageContext:t.pageContext});var c=this._groupsProvider.group,u=new l.a;n.push(u.getPromise()),this._eventGroup=new s.b(this),this._eventGroup.on(c,m.a.onSourceChange,function(t){t===_.a.Server||t===_.a.Cache?(e.setState({name:c.name,description:c.description,privacyOptions:e._getPrivacyOptions(c),privacySelectedKey:c.isPublic?z:V,siteLogoUrl:e._getSiteLogoUrl(c),hasPictureUrl:c.hasPictureUrl}),u.complete(c)):_.a.Error}),c.load(!0)}else this._spSiteProvider=new I({pageContext:a}),this._webDataSource=new L.a(a),this.setState({description:a.webDescription,name:a.webTitle,nameCurrentLCID:a.WebTitleCurrentLCID,descriptionCurrentLCID:a.WebDescriptionCurrentLCID,siteLogoUrl:a.webLogoUrl,hasPictureUrl:!0});if((this._isGroup||a.isSiteAdmin)&&this._setComponentClassificationState(n),y.tH.isFeatureEnabled(K)){var h=new x.a({pageContext:this._pageContext});this._siteScriptProgressProvider=new C.a({dataSource:h,currentCultureName:this._pageContext.currentCultureName});var b=this._siteScriptProgressProvider.getSiteDesignRuns().then(function(t){var n=t.filter(function(e){return[O.a.Default,O.a.OOBSiteDesign,O.a.JoinHubSite].indexOf(e.actionTrigger)>-1});e.setState({siteDesignRuns:n})});n.push(b)}d.c.all(n).then(function(){e.setState({isLoading:!1}),e._isGroup&&o.end({resultType:N.b.Success})},function(t){e._isGroup&&o.end({resultType:N.b.Failure,error:t})})},e.prototype.componentWillUnmount=function(){this._eventGroup&&(this._eventGroup.dispose(),this._eventGroup=null)},e.prototype.getRenderProps=function(){var e=this._params,t=e.pageContext,n=e.siteSettingsPanelContainer.state||{},a=Number(t.webTemplate),i=u.a.Empty;return{isPanelOpen:n.isPanelOpen,name:n.name||"",nameCurrentLCID:n.nameCurrentLCID,description:n.description||"",descriptionCurrentLCID:n.descriptionCurrentLCID,privacyOptions:n.privacyOptions||[],privacySelectedKey:n.privacySelectedKey||"",classificationPrivacy:n.classificationPrivacy||[],classificationOptions:n.classificationOptions||[],classificationSelectedKey:n.classificationSelectedKey||i,showLoadingSpinner:"boolean"!=typeof n.isLoading||n.isLoading,showImageBrowser:n.hasPictureUrl,hubDisplayType:n.hubDisplayType,makeHubDisplayType:n.makeHubDisplayType,isSiteAccessRestrictionEnabled:n.isSiteAccessRestrictionEnabled,restrictedSiteAccessGroups:n.restrictedSiteAccessGroups,enableDelete:this._enableDelete,errorMessage:n.errorMessage,groupDeleteErrorMessage:n.groupDeleteErrorMessage,useDeleteSiteStrings:!this._isGroup,classicSiteSettingsUrl:"".concat(t.webAbsoluteUrl,"/_layouts/15/settings.aspx"),deleteSiteFallbackUrl:this._isGroup||this._isRootWeb&&!y.HW.isActivated("57B712A0-FA84-4081-85F6-E4F9E8AB2FAF")&&(a===T.a.group||a===T.a.sitePagePublishing||"STS#3"===t.webTemplateConfiguration)?null:"".concat(t.webAbsoluteUrl,"/_layouts/15/deleteweb.aspx"),usageGuidelinesUrl:n.usageGuidelinesUrl,emptyImageUrl:e.emptyImageUrl,disableRemoveLogo:this._isGroup,classificationDescriptions:n.classificationDescriptions,joinHubSiteOptions:n.joinHubSiteOptions,joinHubSiteSelectedKey:n.joinHubSiteSelectedKey,isHubSite:t.isHubSite,isHubSiteJoinPending:n.isHubSiteJoinPending,siteLogo:{imageUrl:n.siteLogoUrl,acronym:n.siteAcronym,backgroundColor:n.siteLogoColor},onCancelPendingHubSiteJoinClicked:this._onCancelPendingHubSiteJoin,onDeleteGroup:this._onDeleteGroup,onDeleteGroupDismiss:this._onDeleteGroupDismiss,onDismiss:this._onDismiss,onSave:this._onSave,onValidateGroupName:this._isGroup?this._onValidateGroupName:void 0,groupNameValidationError:n.groupNameValidationError,groupNameWithPrefixAndSuffix:n.groupNameWithPrefixAndSuffix,isGroupNameValidationInProgress:n.isGroupNameValidationInProgress,isHubOptionsReady:n.isHubOptionsReady,flowWidgetPanelProps:n.flowWidgetPanelProps,useSensitivityLabels:this._isSensLabelsValuesExist,isHubPermSyncEnabled:n.isHubPermSyncEnabled,pageContext:t,hubSites:this._hubSites,siteDesignRuns:n.siteDesignRuns}},e.prototype.setState=function(e){this._params.siteSettingsPanelContainer.setState(e)},e.prototype._setComponentClassificationState=function(e){var t=this,n=this._pageContext;this._groupSiteProvider=new b.GroupSiteProvider({pageContext:n});var a=this._groupSiteProvider.getGroupCreationContext(!1);e.push(a);var i=new N.a({name:"SiteSettingsPanel.SetSensitivityLabel"});a.then(function(e){var a,r=n.sensitivityLabelName?n.sensitivityLabelName:n.siteClassification;t._creationContext=e,t._isSensLabelsValuesExist=e.dataClassificationOptionsNew&&e.dataClassificationOptionsNew.length>0,t._isSensLabelsValuesExistInPageContext=!!n.sensitivityLabel,t._isSensLabelPresentInLabelListOrPageContext=t._isSensLabelsValuesExist||t._isSensLabelsValuesExistInPageContext;var o,s=t._isSensLabelPresentInLabelListOrPageContext?n.sensitivityLabel:r,c=t._isSensLabelPresentInLabelListOrPageContext?t._createClassificationOptionsNew(s,r):t._createClassificationOptions(s),d=[],l=[];o=Q?"Private"===t._pageContext.groupType?"public":"unspecified":t._pageContext.labelPrivacy?t._pageContext.labelPrivacy:"unspecified",t._isSensLabelsValuesExist&&e&&e.classificationDescriptionsNew?(d=t._getClassificationDescriptions(s,r),l=t._getClassificationPrivacy(s,o)):!q&&y.tH.isFeatureEnabled(W)&&t._isSensLabelsValuesExistInPageContext&&0===(null===(a=null==e?void 0:e.classificationDescriptionsNew)||void 0===a?void 0:a.length)?(d=t._getClassificationDescriptionsForNoLabelPublished(r),l=t._getClassificationPrivacyForNoLabelPublished(s,o)):e&&e.classificationDescriptions&&(d=e.classificationDescriptions),s=t._getClassificationSelection(s,c),t.setState({classificationOptions:c,classificationSelectedKey:s,usageGuidelinesUrl:t._creationContext&&t._creationContext.usageGuidelineUrl||void 0,classificationDescriptions:d,classificationPrivacy:l}),i.end({resultType:N.b.Success})},function(e){i.end({resultType:N.b.Failure,error:e})})},e.prototype._createClassificationOptions=function(e){var t=!1,n=this._creationContext,a=n&&n.dataClassificationOptions&&n.dataClassificationOptions.length>0?n.dataClassificationOptions.map(function(n){return n===e&&(t=!0),{key:n,text:n}}):[];return e&&!t&&a.push({key:e,text:e}),a},e.prototype._createClassificationOptionsNew=function(e,t){var n,a=!1,i=this._creationContext;if(!q&&y.tH.isFeatureEnabled(W)){var r=i.dataClassificationOptionsNew;if(n=this._isSensLabelsValuesExist?r.map(function(t){return t.classificationTitle===e&&(a=!0),{key:t.classificationTitle,text:t.classificationDescription}}):[],t&&e&&!a){var o=void 0;n&&n.length>0&&"None"===n[n.length-1].text&&(o=n.pop()),n.push({key:e,text:t}),o&&n.push(o)}}else r=i.siteSensitivityLabelId&&this._pageContext.sensitivityLabel!==i.siteSensitivityLabelId?i.dataClassificationOptionsNew.filter(function(e){return e.classificationTitle!==i.siteSensitivityLabelId}):i.dataClassificationOptionsNew,n=this._isSensLabelsValuesExist?r.map(function(t){return t.classificationTitle===e&&(a=!0),{key:t.classificationTitle,text:t.classificationDescription}}):[],t&&e&&!a&&n.push({key:e,text:t});return n},e.prototype._getClassificationDescriptions=function(e,t){var n=this._creationContext;if(!q&&y.tH.isFeatureEnabled(W)){var i=n.dataClassificationOptionsNew.find(function(t){return t.classificationTitle===e});return Q||e&&!i?i?n.classificationDescriptionsNew:(0,a.AE)((0,a.AE)([],n.classificationDescriptionsNew,!0),[{classificationTitle:t,classificationDescription:null}],!1):n.classificationDescriptionsNew}if(!n.siteSensitivityLabelId||this._pageContext.sensitivityLabel===n.siteSensitivityLabelId)return n.classificationDescriptionsNew;var r=n.dataClassificationOptionsNew.filter(function(e){return e.classificationTitle===n.siteSensitivityLabelId}).pop();return r?n.classificationDescriptionsNew.filter(function(e){return e.classificationTitle!==r.classificationTitle}):n.classificationDescriptionsNew},e.prototype._getClassificationDescriptionsForNoLabelPublished=function(e){return[{classificationTitle:e,classificationDescription:null}]},e.prototype._getClassificationPrivacy=function(e,t){var n=this._creationContext;return!Q&&e||!q&&y.tH.isFeatureEnabled(W)?n.dataClassificationOptionsNew.find(function(t){return t.classificationTitle===e})?n.classificationPrivacy:(0,a.AE)((0,a.AE)([],n.classificationPrivacy,!0),[{classificationTitle:e,classificationPrivacy:t}],!1):n.classificationPrivacy},e.prototype._getClassificationPrivacyForNoLabelPublished=function(e,t){return[{classificationTitle:e,classificationPrivacy:t}]},e.prototype._getClassificationSelection=function(e,t){return void 0===e&&t.length>0?e=t[0].key:e},e.prototype._getSharePointHomePageUrl=function(){var e=this._pageContext;return e.webAbsoluteUrl&&e.webServerRelativeUrl?(0,c.i)(e)+"/_layouts/15/sharepoint.aspx":void 0},e.prototype._setUpHubOptions=function(e){var t=this,n=this._pageContext;if(!y.IT.isFeatureEnabled(G)||!n.isTeamsChannelSite){var a=n.isHubSite,i=n.hubSiteId,r=n.hasManageWebPermissions,o=i&&!a;if(r&&this._isRootWeb)if(a)this.setState({isHubOptionsReady:!0,hubDisplayType:E.a.readOnly});else{this.setState({hubDisplayType:o?E.a.readOnly:E.a.enabled});var s=new g.SiteDataSource(this._pageContext),c={hubSites:this._hubDataSource.getHubSites(),approvalCorrelationId:this._isHubSiteJoinApprovalFlightEnabled?this._hubDataSource.getHubSiteJoinApprovalCorrelationId():d.c.resolve(null),hubData:this._hubDataSource.getHubData(),permSyncEnabled:y.HW.isActivated("511A1744-137B-433D-89AD-D788D0D7A27A")||this._pageContext.hubSiteId?s.getCanSyncHubSitePermissionsProperty(!0):d.c.resolve(!0)},l=new N.a({name:"SiteSettingsPanel.SetUpHubOptions"});d.c.all(c).then(function(e){var n=e.hubSites,a=e.approvalCorrelationId,r=e.hubData,o=e.permSyncEnabled;t._hubSites=n;var s=n?n.map(function(e){return{key:e.id,text:e.name,data:{requiresJoinApproval:!!t._isHubSiteJoinApprovalFlightEnabled&&e.requiresJoinApproval}}}):[];s.length>0&&(s.unshift({key:"",text:U.f}),i&&(s[0].ariaLabel=U.f+", "+A.A));var c="",d=!1;i?(c=i,s&&s.some(function(e){return e.key===c})||s.push({key:c,text:r.name,selected:!0,disabled:!0})):t._isHubSiteApprovalPending(a)&&(c=t._getHubSiteIdFromStandardApprovalCorrelationId(a),d=!0),t.setState({isHubOptionsReady:!0,joinHubSiteOptions:s,joinHubSiteSelectedKey:c,hubDisplayType:s.length?E.a.enabled:E.a.readOnly,isHubSiteJoinPending:d,isHubPermSyncEnabled:o}),l.end({resultType:N.b.Success})},function(e){l.end({resultType:N.b.Failure,error:e})})}else this.setState({isHubOptionsReady:!0,hubDisplayType:E.a.readOnly})}},e.prototype._getSiteLogoUrl=function(e){var t=this._pageContext.webLogoUrl;return t===c.a&&(t=e.pictureUrl),t},e.prototype._getPrivacyOptions=function(e){return[{key:V,text:U.h},{key:z,text:U.i}]},e.prototype._getGroupToBePatchedNew=function(e,t,n,a){var i={id:this._groupsProvider.group.id},r=this._params.siteSettingsPanelContainer.state,o=this._creationContext;if(e!==r.name&&(i.name=e),t!==r.description&&(i.description=t),o&&o.isSensitivityLabelMandatory&&!r.classificationSelectedKey&&(!a||!a.key||a.key.toString()===u.a.Empty))return this.setState({errorMessage:U.g}),null;if(a&&a.key&&a.key!==r.classificationSelectedKey)if(this._isSensLabelsValuesExist){if(this._isSensLabelsValuesExist)if(JSON.stringify(o.dataClassificationOptionsNew).indexOf(JSON.stringify({classificationTitle:a.key.toString(),classificationDescription:a.text}))>-1)i.assignedLabels=a.key.toString();else{if(a.key.toString()!==u.a.Empty)return this.setState({errorMessage:U.a}),null;n.key!==r.privacySelectedKey&&(i.isPublic=n.key===z),i.assignedLabels=u.a.Empty}}else if(n.key!==r.privacySelectedKey&&(i.isPublic=n.key===z),i.assignedLabels="",o&&o.dataClassificationOptions&&o.dataClassificationOptions.length>0){if(!(a&&o.dataClassificationOptions.indexOf(a.text)>-1))return this.setState({errorMessage:U.a}),null;i.classification=a.text}return n.key!==r.privacySelectedKey&&null==i.isPublic&&(i.isPublic=n.key===z),i},e.prototype._updateHubState=function(e,t){var n,a=this._hubDataSource,i=this._params.siteSettingsPanelContainer.state;if(i.hubDisplayType===E.a.enabled){var r=this._pageContext.hubSiteId;e=e||"",r&&!e&&(M.Engagement.logData({name:"SiteSettingsPanel.LeaveHub",isIntentional:!0}),n=a.joinHubSite(e)),e&&r!==e&&(M.Engagement.logData({name:r?"SiteSettingsPanel.SwitchHub":"SiteSettingsPanel.JoinHub",isIntentional:!0}),n=this._attemptToJoinHubSite(e))}if(n||i.makeHubDisplayType!==E.a.enabled||"boolean"!=typeof t||t===!!this._pageContext.isHubSite||(t?(n=a.makeHubSite(),M.Engagement.logData({name:"SiteSettingsPanel.MakeHubSite",isIntentional:!0})):(n=a.removeHubSite().then(function(){return a.joinHubSite("")}),M.Engagement.logData({name:"SiteSettingsPanel.RemoveHubSite",isIntentional:!0}))),n){var o=new N.a({name:"SiteSettingsPanel.UpdateHubState"});return n.then(function(){return o.end({resultType:N.b.Success})}).catch(function(e){return o.end({resultType:N.b.Failure}),d.c.reject(e)})}return d.c.resolve()},e.prototype._updateHubPermSyncSetting=function(e,t,n){var a=d.c.resolve();return this._params.siteSettingsPanelContainer.state.isHubPermSyncEnabled===e||void 0===e||this._pageContext.isHubSite||n?a:t?!y.HW.isActivated("3fff37ce-572d-440c-afe1-b326c1ff5409","01/05/2021","Fix join hub approval flow issue")&&this._isPendingHubJoinApproval?a:(M.Engagement.logData({name:e?"SiteSettingsPanel.EnableHubPermSync":"SiteSettingsPanel.DisableHubPermSync"}),new g.SiteDataSource(this._pageContext).setCanSyncHubSitePermissionsProperty(e)):a},e.prototype._attemptToJoinHubSite=function(e){var t=this;return this._hubDataSource.joinHubSite(e).catch(function(n){var a=t._hubSites.filter(function(t){return t.id===e})[0];if(t._isHubSiteJoinApprovalFlightEnabled&&a.requiresJoinApproval&&n.hubSiteJoinApprovalErrorCode===k.HubSiteJoinApprovalErrorCode.NeedsApproval)return t._isPendingHubJoinApproval=!0,(0,R.b)(a.siteUrl,t._flowDataSource).then(function(n){if(n)return t._launchTriggerApprovalFlowWidget(n,e);throw new Error(A.K)});if(403===n.status)throw new Error(A.b);throw n})},e.prototype._getErrorString=function(e){return e&&e.message?e.message.value||e.message:U.e},e.prototype._isHubSiteApprovalPending=function(e){return!!e},e.prototype._generateStandardApprovalCorrelationId=function(e){return this._pageContext.siteAbsoluteUrl+"?hub="+e},e.prototype._getHubSiteIdFromStandardApprovalCorrelationId=function(e){var t=e.lastIndexOf("?hub=");return t>=0?e.substr(t+"?hub=".length):null},e.prototype._launchTriggerApprovalFlowWidget=function(e,t){var n=this;this._flowWidgetSignal=new l.a,this._triggerHubJoinApprovalFlowQos=new N.a({name:"SiteSettingsPanel.TriggerHubJoinApprovalFlow"});var a=this._generateStandardApprovalCorrelationId(t),i={flow:e,widgetType:H.e.FlowsRuntime,actionName:H.c.TriggerFlow,actionData:{flowName:e.id,implicitData:[{RequestingSiteUrl:this._pageContext.siteAbsoluteUrl,RequestingSiteId:u.a.normalizeLower(this._pageContext.siteId,!1),RequestingSiteTitle:this._pageContext.webTitle,ApprovalCorrelationId:a}]},additionalEvents:[H.d.GetStrings]};return this.setState({flowWidgetPanelProps:{isOpen:!0,pageContext:this._pageContext,errorImgUrl:this._params.flowWidgetErrorImageUrl,widgetParams:i,onTriggerFlowSucceeded:function(){return n._onTriggerFlowSucceeded()},onGetStrings:function(e){return n._onGetStrings(e)},onWidgetError:function(e){return n._onWidgetError(e)},onDismiss:function(){return n._onFlowPanelDismissed()}}}),this._flowWidgetSignal.getPromise().then(function(){return n._hubDataSource.onHubSiteJoinRequestStarted(a)})},e.prototype._onTriggerFlowSucceeded=function(){M.Engagement.logData({name:"SiteSettingsPanel.ApprovalFlowTriggered",isIntentional:!0}),this._triggerHubJoinApprovalFlowQos.end({resultType:N.b.Success}),this.setState({flowWidgetPanelProps:{isOpen:!1}}),this._flowWidgetSignal.complete()},e.prototype._onGetStrings=function(e){e(null,{INVOKE_FLOW_RUN_FLOW_BUTTON:A.J,INVOKE_FLOW_HEADER:A.I})},e.prototype._onWidgetError=function(e){this._triggerHubJoinApprovalFlowQos.end({resultType:N.b.Failure}),this.setState({flowWidgetPanelProps:{isOpen:!1}}),this._flowWidgetSignal.error(e)},e.prototype._onFlowPanelDismissed=function(){this._triggerHubJoinApprovalFlowQos.end({resultType:N.b.ExpectedFailure}),this.setState({flowWidgetPanelProps:{isOpen:!1}})},e}(),J=n(42),X=function(e){function t(t){var n=e.call(this,t)||this,a=t.hostModel.resources;return n._state=new Y({siteSettingsPanelContainer:n,pageContext:a.consume(J.n),emptyImageUrl:r.c(a,"photo",96)}),n}return(0,a.XJ)(t,e),t.prototype.componentDidMount=function(){this._state.componentDidMount()},t.prototype.componentWillUnmount=function(){this._state.componentWillUnmount()},t.prototype.render=function(){var e=this._state.getRenderProps();return i.createElement(o.b,(0,a.W_)({},e))},t}(i.Component);const Z=X}
,2553:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UserExpirationPanelContainer:()=>d,default:()=>l});var a=n("tslib_102"),i=n("react-lib"),r=n(2946),o=n(1870),s=n(1947),c=n(42),d=function(e){function t(t){var n=e.call(this,t)||this;return n._resources=t.hostModel.resources,n._OnDismiss=t.onDismiss,n._pageContext=n._resources.consume(c.n),n._UserExpirationProvider=new o.UserExpirationProvider({dataSource:new s.UserExpirationDataSource({pageContext:n._pageContext})}),n.state={days:0},n._UserExpirationProvider.getExternalUserExpirationPolicy().then(function(e){n.setState({days:e})}),n}return(0,a.XJ)(t,e),t.prototype.render=function(){return i.createElement(r.a,{isOpen:!0,onDismiss:this._OnDismiss,pageContext:this._pageContext,userExpirationProvider:this._UserExpirationProvider,userExpirationPolicyDays:this.state.days,userExpirationPolicyEnabled:0!==this.state.days})},t}(i.Component);const l=d}
,2554:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VivaConnectionsSettingsPanelContainer:()=>s,default:()=>c});var a=n("tslib_102"),i=n("react-lib"),r=n(3014),o=n(42),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props,t=e.hostModel,n=(0,a.l7)(e,["hostModel"]),s=(0,a.W_)((0,a.W_)({},n),{pageContext:t.resources.consume(o.n)});return i.createElement(r.b,(0,a.W_)({},s))},t}(i.Component);const c=s}
,3782:(e,t,n)=>{"use strict";n.d(t,{a:()=>i.b,b:()=>i.e,c:()=>i.f,d:()=>o,e:()=>i.g,f:()=>c,g:()=>i.i,h:()=>i.l,i:()=>i.q,j:()=>s});var a=n(6984),i=n(2768),r=n(2258);function o(e,t,n,o,s){return(0,i.d)({getIconUrlFromExtension:function(t){return r.a(e,t,16)}},a,t,n,o,s)}function s(e,t,n,o,s){return(0,i.r)({getIconUrlFromExtension:function(t){return r.a(e,t,16)}},a,t,n,o,s)}function c(e,t){return(0,i.h)(a,e,t)}}
,2259:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var a={auto:"auto",always:"always",hidden:"hidden"}}
,2218:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});const a={opened:0,closed:1}}
,2242:(e,t,n)=>{"use strict";n.d(t,{a:()=>p});var a=n("tslib_102"),i=n(528),r=n("odsp.util_578"),o=n(2259),s=n(2218),c=n(26),d=n("knockout-lib");const l=function(){function e(e){var t=this,n=e.noTitle,a=void 0!==n&&n,i=e.title,r=void 0===i?d.observable(""):i,l=e.elementDescribedBy,u=void 0===l?"":l,f=e.hasCommandBar,p=void 0!==f&&f,m=e.size,_=void 0===m?"Small":m,h=e.scrollMode,b=void 0===h?o.a.auto:h,g=e.showCloseButton,v=void 0===g||g,y=e.includePadding,S=void 0===y||y,D=e.preserveLightDismiss,I=void 0!==D&&D,x=e.stickyCloseButton,C=void 0!==x&&x,O=e.component,w=void 0===O?null:O,E=e.maximizePanelContent,A=void 0!==E&&E,L=e.panelContentSize,k=void 0===L?d.observable({width:0,height:0}):L,M=e.isBlocking,P=e.disableEscape,T=void 0!==P&&P,U=e.overridePanelStyle;this.size=_,this.title=d.isObservable(r)?r:d.observable(r),this.elementDescribedBy=u,this.maximizePanelContent=A,this.panelContentSize=k,this.noTitle=a,this.hasCommandBar=p,this.component=w,this.scrollMode=b,this.showCloseButton=v,this.includePadding=S,this.preserveLightDismiss=I,this.stickyCloseButton=C,this.isBlocking=d.isObservable(M)?M:d.observable(M),this.disableEscape=T,this.overridePanelStyle=U,this.state=d.observable(s.a.opened),this._promise=new c.c(function(e){var n=d.computed(function(){t.state()===s.a.closed&&(e(!0),n.dispose())},t)})}return e.prototype.wait=function(){return this._promise},e}();var u=n(2348),f=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a.currentPanels=a.observables.createArray(),a._needsOverlayContent=n.needsOverlayContent,a}return(0,a.XJ)(t,e),t.prototype.requestPanel=function(e){this._needsOverlayContent.needsOverlayContent.set(!0);var t=new l(e),n=this.currentPanels;n.push(t);var a=function(){return n.remove(t)};return t.wait().then(a,a),t},t.dependencies=(0,a.W_)((0,a.W_)({},i.default.dependencies),{needsOverlayContent:u.a}),t}(i.default),p=(0,r.Yx)("PanelProvider",f)}
,2405:(e,t,n)=>{"use strict";n.d(t,{a:()=>r,b:()=>i.a,c:()=>s,d:()=>o});var a=n("odsp.util_578"),i=n(2359),r=new a.qT("commandHandler"),o=new a.qT("viewerContext"),s=new a.qT("onePlayerEmbedOptions");new a.qT("isMicroService")}
,2429:(e,t,n)=>{"use strict";n.d(t,{a:()=>r.oKI,b:()=>i.B0k,c:()=>i.hYu,e:()=>g,d:()=>M,f:()=>i.JOI,h:()=>i.tu6,g:()=>o.xYP,i:()=>v.c});var a=n("tslib_102"),i=n("fui.lcoms_828"),r=n("fui.lco_496"),o=n("fui.core_870"),s=n("react-lib");(0,n("fui.util_43").pZ)([{rawString:".ms-ListCreationPanel{margin-top:48px;color:"},{theme:"black",defaultValue:"#000"},{rawString:"}.ms-ListCreationPanel-PanelDescription{margin-top:10px;margin-bottom:0;font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400;font-weight:300}.ms-ListCreationPanel-NameField{margin-top:17px;margin-bottom:7px}.ms-ListCreationPanel-DescriptionField{resize:none;margin-top:17px;margin-bottom:7px}.ms-ListCreationPanel-ErrorMessage{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400;color:"},{theme:"errorText",defaultValue:"#a4262c"},{rawString:";box-sizing:border-box;box-shadow:none;margin:0;padding:0;margin-top:20px;margin-bottom:13px}.ms-ListCreationPanel-SensitivityLabel .ms-Dropdown{margin-top:15px;margin-bottom:20px}.ms-ListCreationPanel-More-Link{margin-bottom:20px}.ms-ListCreationPanel-DescriptionField .ms-TextField-field{display:block}.ms-ListCreationPanel-ClassificationDescriptions{margin-top:38px}.ms-ListCreationPanel-ClassificationDescriptions .ms-ListCreationPanel-ClassficationDescription-item{margin-bottom:12px}.ms-ListCreationPanel-ClassificationDescriptions .ms-ClassificationDescriptions-itemTitle{font-size:"},{theme:"mediumFontSize",defaultValue:"14px"},{rawString:";font-weight:400;font-weight:600;padding:5px 0}.ms-ListCreationPanel-ClassificationDescriptions .ms-ClassificationDescriptions-itemDescription{font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400;white-space:pre-wrap}.ms-ListCreationPanel-NavigationContent{margin-top:18px;display:flex;width:100%;justify-content:flex-end}.ms-ListCreationPanel-NavigationContent .ms-Panel-closeButton{height:44px;margin-top:-6px}[dir=ltr] .ms-ListCreationPanel-NavigationContent .ms-Panel-closeButton{margin-right:11px}[dir=rtl] .ms-ListCreationPanel-NavigationContent .ms-Panel-closeButton{margin-left:11px}.ms-ListCreationPanel-Title{font-size:"},{theme:"xLargeFontSize",defaultValue:"20px"},{rawString:";font-weight:"},{theme:"xLargeFontWeight",defaultValue:"600"},{rawString:";position:absolute;margin-top:0;background-color:"},{theme:"white",defaultValue:"#fff"},{rawString:";width:100%}[dir=ltr] .ms-ListCreationPanel-Title{left:50px}[dir=rtl] .ms-ListCreationPanel-Title{right:50px}.ms-SiteSettingsPanel-BackIcon-RTL{background:"},{theme:"white",defaultValue:"#fff"},{rawString:"}.ms-ChoiceField.ms-ListCreationPanel-Checkbox{margin-top:13px;margin-bottom:13px;font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400}.ms-Checkbox.ms-ListCreationPanel-Checkbox{margin-top:13px;margin-bottom:13px;font-size:"},{theme:"smallFontSize",defaultValue:"12px"},{rawString:";font-weight:400}[dir=ltr] .ms-ListCreationPanel-CancelButton.ms-Button{margin-left:8px}[dir=rtl] .ms-ListCreationPanel-CancelButton.ms-Button{margin-right:8px}.ms-ListCreationPanel-Spinner{margin-top:20px}.ms-ListCreationPanel-Spinner .ms-Spinner-label{color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:'}.ms-ListCreationPanel-Shimmer{margin-top:10px}.ms-ListCreationPanel-Shimmer .ms-Shimmer-shimmerWrapper{width:40%}[dir=ltr] .ms-ListCreationPanel-LearnMore{margin-left:5px}[dir=rtl] .ms-ListCreationPanel-LearnMore{margin-right:5px}.ms-ListCreationPanel-CreateButton{border-color:transparent}.ms-Panel-scrollableContent{height:100%}.ms-espDialogFooterPrimaryButton{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:8px}.ms-espDialogFooterCancelButton{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-disableESPDialog{max-width:560;max-height:176;border-radius:"2px"}.ms-espComponentsStack{vertical-align:start;margin-top:10px}.ms-espCheckboxTextContainer{margin-top:5px}.ms-espCheckBox .ms-Checkbox-checkbox{margin-left:auto;margin-bottom:auto}'}]);var c,d=n(7566),l=n("odsp.util_578"),u=n(9);!function(e){e.NONE="none",e.DEFAULT="default",e.ESP="esp"}(c||(c={}));var f=l.tH.isFeatureEnabled({ODB:60740}),p=l.tH.isFeatureEnabled({ODB:60863}),m=l.tH.isFeatureEnabled({ODB:60731}),_=l.HW.isActivated("7b2d0025-df66-43ac-8c26-647ea448dda1","12/05/2022","check for permission for sensibility label dropdown"),h=(0,u.a)(function(){return(0,a.Zd)(void 0,void 0,void 0,function(){return(0,a.qr)(this,function(e){switch(e.label){case 0:return[4,n.e(1442).then(n.bind(n,3066))];case 1:return[2,e.sent()]}})})}),b=function(e){function t(t){var n=e.call(this,t)||this;return n._NONE_DROPDOWN_OPTION_KEY="none",n._onRenderLabel=function(e,t){var a=n.props,r=a.sensitivityLabelsProps,o=a.learnMoreString,d=a.moreInfoString,l=r.sensitivityLabelsFieldDescription,u=r.isESPLibraryLabellingEnabled,f=r.espSensitivityLabelsCheckboxInfoString,p=r.espSensitivityLabelsDescriptionText,m=r.isESPCheckboxEnabled;return s.createElement(s.Fragment,null,s.createElement(i.jS7,{horizontal:!0,verticalAlign:"center"},t(e),s.createElement(i.hYu,{iconProps:{iconName:"Info"},title:d,ariaLabel:d,onClick:n._onInfoClick,styles:{root:{marginBottom:-3}}})),s.createElement("span",null,u?p:l),n._getLearnMoreContent(u,o),u?s.createElement(i.jS7,{horizontal:!0,className:"ms-espComponentsStack"},s.createElement(i.mSm,{className:"ms-espCheckBox",checked:n.state.selectedDocumentLibraryProtectionType===c.ESP,onChange:n._onESPCheckboxSelection,disabled:!_&&r.disableSensLabelDropDown||!m}),s.createElement("div",{className:"ms-espCheckboxTextContainer"},s.createElement("span",null,f),n._getLearnMoreContent(u,o))):void 0)},n._getLearnMoreContent=function(e,t){var n="https://go.microsoft.com/fwlink/?linkid=2186840",a="ms-ListCreationPanel-LearnMore";return e?s.createElement(i.NG4,{href:n,className:a,target:"_blank"},t):s.createElement(i.NG4,{href:n,className:a},t)},n._getMoreInfoContent=function(e){return s.createElement("div",{className:"ms-ListCreationPanel-ClassificationDescriptions"},e.map(function(e,t){return"none"===e.key?void 0:s.createElement("div",{className:"ms-ListCreationPanel-ClassficationDescription-item",key:t},s.createElement("div",{className:"ms-ClassificationDescriptions-itemTitle"},e.text),s.createElement("div",{className:"ms-ClassificationDescriptions-itemDescription"},e.title))}))},n._onInfoClick=function(){n.props.sensitivityLabelsProps.onRenderBackButton(),n.setState({isInfoState:!0})},n._onCancelClick=function(e){n.props.onCancel.onCancelAction&&(n.props.onCancel.onCancelAction(e),e.stopPropagation(),e.preventDefault())},n._onSensitivityLabelChanged=function(e,t){n.setState({selectedSensitivityLabel:t})},n._onListTitleChanged=function(e,t){t&&t.trim()?n.setState({createButtonDisabled:!1,listTitle:t,errorMessage:null}):n.setState({createButtonDisabled:!0,listTitle:t})},n._onListDescriptionChanged=function(e,t){n.state.listDescription!==t&&n.setState({listDescription:t})},n._onShowInQuickLaunchChanged=function(){n.setState({showInQuickLaunch:!n.state.showInQuickLaunch})},n._getSyntexSetting=function(){return s.createElement(h,(0,a.W_)({},n.props.syntexSettingProps))},n._onESPCheckboxSelection=function(e,t){if(t){var a=n.props.sensitivityLabelsProps.onDocumentLibraryProtectionTypeChange?n.props.sensitivityLabelsProps.onDocumentLibraryProtectionTypeChange(c.ESP):[];n.setState({selectedSensitivityLabel:a?a[0]:void 0,selectedDocumentLibraryProtectionType:c.ESP,sensitivityLabelsOptions:a})}else n.setState({isVisibleESPRemovalDialog:!0})},n._onCloseESPRemovalDialog=function(){n.setState({isVisibleESPRemovalDialog:!1})},n._onRemoveESPProtection=function(){var e=n.props.sensitivityLabelsProps.onDocumentLibraryProtectionTypeChange?n.props.sensitivityLabelsProps.onDocumentLibraryProtectionTypeChange(c.DEFAULT):[],t=e?e[0]:void 0;n.setState({selectedSensitivityLabel:t,selectedDocumentLibraryProtectionType:c.DEFAULT,sensitivityLabelsOptions:e}),n._onCloseESPRemovalDialog()},n._getESPRemovalDialog=function(e){return s.createElement(s.Fragment,null,s.createElement(i.X$,{hidden:!e.isOpen,dialogContentProps:e.dialogContentProps,modalProps:e.modelProperties,onDismiss:e.onDismiss},s.createElement(r.j5C,null,s.createElement(i.rfU,{className:"ms-espDialogFooterPrimaryButton",onClick:e.onRemoveESPProtection,text:e.removeProtectionButtonText}),s.createElement(i.B0k,{className:"ms-espDialogFooterCancelButton",onClick:e.onCancel,text:e.cancelButtonText}))))},n._areSensitivityLabelOptionsEqual=function(e,t){if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},n._isEditMode=!!t.isEditMode,n.state={showInQuickLaunch:n.props.showInQuickLaunchDefault,createButtonDisabled:!n.props.nameFieldValue,showLoadingSpinner:!1,selectedSensitivityLabel:n.props.sensitivityLabelsProps.selectedSensitivityLabel,isInfoState:!1,loadingOptions:n.props.sensitivityLabelsProps.loading,selectedDocumentLibraryProtectionType:n.props.sensitivityLabelsProps.selectedDocumentLibraryProtectionType,sensitivityLabelsOptions:n.props.sensitivityLabelsProps.sensitivityLabels?n.props.sensitivityLabelsProps.sensitivityLabels:[],isVisibleESPRemovalDialog:!1},n}return(0,a.XJ)(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(e.errorMessage&&this.setState({showLoadingSpinner:!1,createButtonDisabled:!1,errorMessage:e.errorMessage}),this.props.sensitivityLabelsProps.isESPLibraryLabellingEnabled){if(this.state.isInfoState!==e.sensitivityLabelsProps.ifShowInfoContent)return;e.sensitivityLabelsProps.selectedDocumentLibraryProtectionType!==this.state.selectedDocumentLibraryProtectionType&&this.setState({selectedDocumentLibraryProtectionType:e.sensitivityLabelsProps.selectedDocumentLibraryProtectionType}),e.sensitivityLabelsProps.selectedSensitivityLabel!==this.state.selectedSensitivityLabel&&this.setState({selectedSensitivityLabel:e.sensitivityLabelsProps.selectedSensitivityLabel}),this._areSensitivityLabelOptionsEqual(e.sensitivityLabelsProps.sensitivityLabels,this.state.sensitivityLabelsOptions)||this.setState({sensitivityLabelsOptions:e.sensitivityLabelsProps.sensitivityLabels})}},t.prototype.componentDidUpdate=function(e){var t,n,a=this.props;(null===(t=e.sensitivityLabelsProps.selectedSensitivityLabel)||void 0===t?void 0:t.id)!==(null===(n=a.sensitivityLabelsProps.selectedSensitivityLabel)||void 0===n?void 0:n.id)&&this.setState({selectedSensitivityLabel:a.sensitivityLabelsProps.selectedSensitivityLabel}),e.nameFieldValue!==a.nameFieldValue&&this.setState({listTitle:a.nameFieldValue,createButtonDisabled:!1}),e.descriptionFieldValue!==a.descriptionFieldValue&&this.setState({listDescription:a.descriptionFieldValue}),e.sensitivityLabelsProps.ifShowInfoContent!==a.sensitivityLabelsProps.ifShowInfoContent&&this.setState({isInfoState:a.sensitivityLabelsProps.ifShowInfoContent}),e.sensitivityLabelsProps.loading!==a.sensitivityLabelsProps.loading&&this.setState({loadingOptions:a.sensitivityLabelsProps.loading})},t.prototype.render=function(){var e=this.props,t=e.panelDescription,n=e.nameFieldLabel,a=e.nameFieldPlaceHolder,o=e.descriptionFieldLabel,c=e.descriptionFieldPlaceHolder,d=e.showInQuickLaunchString,l=e.spinnerString,u=e.sensitivityLabelsProps,h=e.onRenderLink,b=e.syntexSettingProps,g=this.state,v=g.showInQuickLaunch,y=g.listTitle,S=g.listDescription,D=g.createButtonDisabled,I=g.showLoadingSpinner,x=g.errorMessage,C=g.selectedSensitivityLabel,O=g.loadingOptions,w=g.sensitivityLabelsOptions,E=g.selectedDocumentLibraryProtectionType,A=u.sensitivityLabels,L=u.sensitivityLabelsFieldLabel,k=u.sensitivityLabelsFieldPlaceHolder,M=u.hideSensitivityLabelOptions,P=u.disableSensLabelDropDown,T=u.espCheckBoxDialogTitle,U=u.espCheckBoxDialogDescription,F=u.espCheckBoxDialogRemoveProtectionButtonText,H=u.espCheckBoxDialogCancelButtonText,R=u.isESPLibraryLabellingEnabled,N=s.createElement(i.rfU,{className:"ms-ListCreationPanel-CreateButton",disabled:D,ariaLabel:this.props.onCreate.onCreateString,onClick:this._onClick.bind(this,null==y?void 0:y.trim(),S,v,C,E)},this.props.onCreate.onCreateString),B=s.createElement(i.B0k,{className:"ms-ListCreationPanel-CancelButton",ariaLabel:this.props.onCancel.onCancelString,onClick:this._onCancelClick},this.props.onCancel.onCancelString),j=s.createElement(r.FuC,{className:"ms-ListCreationPanel-NameField",label:n,placeholder:a,componentRef:this._resolveRef("_listTitleInput"),onChange:this._onListTitleChanged,required:!0,value:y}),V=s.createElement(r.FuC,{className:"ms-ListCreationPanel-DescriptionField",label:o,placeholder:c,componentRef:this._resolveRef("_listDescriptionInput"),multiline:!0,value:S,resizable:!1,onChange:this._onListDescriptionChanged}),z=f||p,G=_?z:z&&!M,K=A;R&&(K=w&&w.length>0?w:A);var W=G?(null==K?void 0:K.length)>0?s.createElement(r.AHK,{label:L,selectedKey:C?C.key:this._NONE_DROPDOWN_OPTION_KEY,onChange:this._onSensitivityLabelChanged,placeholder:k,options:K,onRenderLabel:this._onRenderLabel,disabled:!_&&P}):O?s.createElement(s.Fragment,null,s.createElement(r.bE0,{className:"ms-ListCreationPanel-Shimmer",width:"40%"}),s.createElement(r.bE0,{className:"ms-ListCreationPanel-Shimmer"})):void 0:void 0,q=this._isEditMode?void 0:s.createElement(i.mSm,{className:"ms-ListCreationPanel-Checkbox",label:d,onChange:this._onShowInQuickLaunchChanged,checked:v}),Q=h?h():void 0,Y={removeProtectionButtonText:F,cancelButtonText:H,isOpen:this.state.isVisibleESPRemovalDialog,onRemoveESPProtection:this._onRemoveESPProtection,onCancel:this._onCloseESPRemovalDialog,onDismiss:this._onCloseESPRemovalDialog,dialogContentProps:{type:r.r_c.close,title:T,subText:U},modelProperties:{isBlocking:!0,className:"ms-disableESPDialog"}},J=s.createElement("div",{className:"ms-ListCreationPanelContent"},t?s.createElement("div",{className:"ms-ListCreationPanel-PanelDescription"},t):null,j,V,s.createElement("div",{className:"ms-ListCreationPanel-SensitivityLabel"},W),q,Q?s.createElement("div",{className:"ms-ListCreationPanel-More-Link"},Q):null,m&&(null==b?void 0:b.showSyntexSetting)?this._getSyntexSetting():null,s.createElement("div",{className:"ms-ListCreationPanel-ErrorMessage","aria-live":"polite"},x||null),s.createElement("div",{className:"ms-ListCreationPanel-Buttons"},N,B),I?s.createElement(i.tu6,{className:"ms-ListCreationPanel-Spinner",label:l}):null,R?this._getESPRemovalDialog(Y):null),X=K?this._getMoreInfoContent(K):void 0;return this.state.isInfoState?X:J},t.prototype._onClick=function(e,t,n,a,i,r){this.setState({showLoadingSpinner:!0,createButtonDisabled:!0}),!this._isEditMode&&this.props.onCreate.onCreateAction&&(this.props.onCreate.onCreateAction(e,t,n,a,r),r.stopPropagation(),r.preventDefault()),this._isEditMode&&this.props.onEdit.onSaveAction&&(this.props.onEdit.onSaveAction(e,t,a,i,r),r.stopPropagation(),r.preventDefault())},t.defaultProps={showInQuickLaunchDefault:!0},t}(r.oKI),g=function(e){function t(t){var n=e.call(this,t)||this;return n._renderHeader=function(e){var t=(0,o.fsl)()?"Forward":"Back";return s.createElement("div",{className:"ms-ListCreationPanel-NavigationContent"},s.createElement(i.hYu,{iconProps:{iconName:t},className:"ms-SiteSettingsPanel-BackIcon-RTL",onClick:n._onBackClicked,ariaLabel:d.a}),s.createElement("p",{className:"ms-ListCreationPanel-Title"}," ",d.e))},n._onRenderBackIcon=function(){n.setState({onRenderBackButton:!0})},n._onBackClicked=function(){n.setState({onRenderBackButton:!1})},n._onCancelClick=function(e){var t=n.props.listCreationPanelContentProps;t&&t.onCancel&&t.onCancel.onCancelAction&&(t.onCancel.onCancelAction(e),e.stopPropagation(),e.preventDefault())},n.state={onRenderBackButton:!1},n}return(0,a.XJ)(t,e),t.prototype.render=function(){var e=this.props.listCreationPanelContentProps.sensitivityLabelsProps,t=(0,a.W_)((0,a.W_)({},e),{onRenderBackButton:this._onRenderBackIcon,ifShowInfoContent:this.state.onRenderBackButton});return s.createElement(r.k8Z,(0,a.W_)({className:"ms-ListCreationPanel",onDismiss:this._onCancelClick},this.props.panelProps,{onRenderNavigation:this.state.onRenderBackButton?this._renderHeader:void 0,focusTrapZoneProps:{firstFocusableSelector:"ms-TextField-field"},id:"ms-ListCreationPanel","data-automation-id":"ms-ListCreationPanel"}),s.createElement(b,(0,a.W_)({},this.props.listCreationPanelContentProps,{sensitivityLabelsProps:t,infoString:d.b,learnMoreString:d.c,moreInfoString:d.d})))},t.prototype.componentDidMount=function(){var e=document.getElementById("fluent-default-layer-host");setTimeout(function(){var t=document.getElementById("ms-ListCreationPanel");e&&t&&t.appendChild(e)},500)},t.defaultProps={panelProps:{type:r.ecV.smallFixedFar}},t}(s.Component),v=n(2937),y=n(24),S=n(69),D=n(2706),I=n(2707),x=n(41),C=n(7567),O=l.tH.isFeatureEnabled({ODB:60740}),w=l.tH.isFeatureEnabled({ODB:60731}),E=l.tH.isFeatureEnabled({ODB:61537}),A=l.HW.isActivated("f9a1ec07-e345-40bb-865c-0e37012ebecc","04/14/2023","Update sensitivity id for none option"),L=l.HW.isActivated("024d6a20-d7a4-4117-8971-0b7b37f75816","07/31/2023","Add Syntex model check"),k=l.HW.isActivated("3e3fe822-313c-4fe0-ba06-e810edbf944c","07/27/2023","Update the setting client-side checks for default document libaray"),M=function(){function e(e){var t,n=this;this._getSyntexMachinelearningflag=function(){var e;n._params&&n._params.getSyntexMachineLearningflags&&(null===(e=n._params.getSyntexMachineLearningflags())||void 0===e||e.then(function(e){n.setState({syntexMachineLearningflag:e}),x.Engagement.logData({name:"listCreationPanel.onCreate.getSyntexMachinelearningflag"})}).catch(function(e){console.log(null==e?void 0:e.message)}))},this._setSyntexMachineLearningflag=function(e){n._SyntexReprocessingFileSettingUpdated=!0,n.setState({syntexMachineLearningflag:e?1:0}),x.Engagement.logData({name:"listCreationPanel.onCreate.setSyntexMachinelearningflag",extraData:{syntexMachineLearningflag:e}})},this._onCreateClick=function(e,t,a,i,r){var o;x.Engagement.logData({name:"listCreationPanel.onCreate.Click"}),o=a?D.a.on:D.a.off;var s={title:e,description:t,templateType:n._params.listTemplateType,quickLaunchOption:o};n._spListCollectionDataSource.createList(s).then(function(e){var t=e.defaultViewUrl,a=e.id;if(i&&O&&n._params.getSharePointToken){var o=A||"none"!==i.id?i.id:"";n._params.getSharePointToken().then(function(e){x.Engagement.logData({name:"listCreationPanel.onCreate.setSensitvityLabel"}),n._spListCollectionDataSource.setSensitvityLabel(o,a,e).then(function(e){n._onSuccess(t,r)},function(e){var t=e.message.value;n.setState({errorMessage:t})})})}else n._onSuccess(t,r)},function(e){var t=e.message.value;n.setState({errorMessage:t})}),n._params.onCreateClick&&n._params.onCreateClick(r),r.stopPropagation(),r.preventDefault()},this._onSaveClick=function(e,t,a,i,r){var o,s,d="none"===(null==a?void 0:a.id)?"":null==a?void 0:a.id,l={title:e,description:t},u=n._isExtendedSharePointPermissionEnabled(),f=n._pageContext.isExtendedSharePointPermissionEnabled;u&&i===c.ESP?(l.espSensitivityLabelId=d,l.defaultSensitivityLabelId=null):(l.defaultSensitivityLabelId=d,l.espSensitivityLabelId=null),w&&n._SyntexReprocessingFileSettingUpdated&&n._params&&n._params.setSyntexMachineLearningflags?null===(s=Promise.all([n._params.setSyntexMachineLearningflags(n._params.listCreationPanelContainer.state.syntexMachineLearningflag),n._params.getSharePointToken&&(null===(o=n._params.getSharePointToken())||void 0===o?void 0:o.then(function(e){n._spListCollectionDataSource.setDocumentLibraryProperties(l,n._pageContext.listId,e,f)}))]))||void 0===s||s.then(function(e){var t="".concat(new S.a(n._pageContext.webAbsoluteUrl).authority).concat(n._pageContext.listUrl);n._onSuccess(t,r),x.Engagement.logData({name:"listCreationPanel.onCreate.saveSyntexMachinelearningflag"})},function(e){var t=e.message.value;n.setState({errorMessage:t})}):n._params.getSharePointToken&&n._params.getSharePointToken().then(function(e){n._spListCollectionDataSource.setDocumentLibraryProperties(l,n._pageContext.listId,e,f).then(function(e){var t="".concat(new S.a(n._pageContext.webAbsoluteUrl).authority).concat(n._pageContext.listUrl);n._onSuccess(t,r)},function(e){var t=e.message.value;n.setState({errorMessage:t})})}),r.stopPropagation(),r.preventDefault()},this._onCancelClick=function(e){x.Engagement.logData({name:"listCreationPanel.onCancel.Click"}),n.setState({isPanelOpen:!1}),n._params.onCancelClick&&n._params.onCancelClick(e),e.stopPropagation(),e.preventDefault()},this._getSensitivityLabel=function(){n._params.getSensitivityLabels&&n._params.getSensitivityLabels().then(function(e){n.setState({sensitivityLabels:e,loading:!1})},function(e){var t=e.message.value;n.setState({errorMessage:t,loading:!1})})},this._getESPSensitivityLabels=function(){n._params.getESPSensitivityLabels&&n._params.getESPSensitivityLabels().then(function(e){n.setState({espSensitivityLabels:e,loading:!1})},function(e){var t=e.message?e.message:e;n.setState({errorMessage:t,loading:!1})})},this._getCurrentSelectedOption=function(e){var t=n._params.listCreationPanelContainer.state.sensitivityLabels;if(e&&t){for(var a=0;a<t.length;a++)if(t[a].id===e)return t[a];return{key:"",text:""}}},this._getCurrentSelectedOptionWithESP=function(e,t){var a=n._params.listCreationPanelContainer.state.espSensitivityLabels,i=t===c.ESP?null==e?void 0:e.espSensitivityLabelId:null==e?void 0:e.defaultSensitivityLabelId;if(i&&a){var r=t===c.ESP?a.userDefinedLabels:a.adminDefinedLabels;if(r){for(var o=0;o<r.length;o++)if(r[o].id===i)return r[o];return{key:"",text:""}}}},this._getDocumentLibrarySelectedProtectionType=function(e,t){var a=t?n._getCurrentSelectedOptionWithESP(e,c.ESP):null;return a&&a.id&&""!==a.id.trim()?c.ESP:(null==e?void 0:e.defaultSensitivityLabelId)&&""!==(null==e?void 0:e.defaultSensitivityLabelId.trim())?c.DEFAULT:c.NONE},this._onDocumentLibraryProtectionTypeChange=function(e){var t=[],a=n._params.listCreationPanelContainer.state.espSensitivityLabels;return a&&e&&a.userDefinedLabels&&a.adminDefinedLabels?(e===c.ESP?(a.userDefinedLabels.forEach(function(e){e.disabled=!1,t.push(e)}),a.adminDefinedLabels.forEach(function(e){e.disabled=!0,t.push(e)})):(a.adminDefinedLabels.forEach(function(e){e.disabled=!1,t.push(e)}),a.userDefinedLabels.forEach(function(e){e.disabled=!0,t.push(e)})),t):[]},this._isExtendedSharePointPermissionEnabled=function(){return n._pageContext.isExtendedSharePointPermissionEnabled&&E},this._params=e,this._pageContext=e.pageContext;var a=k?this._pageContext.isLabelIRMEnabled:this._pageContext.isDocumentLibraryDefaultLabellingEnabled;this._params.listCreationPanelContainer.state={listUrl:void 0,errorMessage:null,isPanelOpen:!0,sensitivityLabels:void 0,listInfo:void 0,loading:a,espSensitivityLabels:void 0};var i=this._pageContext;this._spListCollectionDataSource=new I.a(i);var r=this._isExtendedSharePointPermissionEnabled();this._params.isEditMode?null===(t=this._getDocumentLibSettingInfo())||void 0===t||t.then(function(e){n._pageContext.isDocumentLibraryDefaultLabellingEnabled&&r?n._getESPSensitivityLabels():n._pageContext.isDocumentLibraryDefaultLabellingEnabled&&n._getSensitivityLabel()}):a&&this._getSensitivityLabel(),w&&(e.pageContext.isSyntexEnabled||e.pageContext.isSyntexPAYGEnabled)&&this._getSyntexMachinelearningflag(),this._SyntexReprocessingFileSettingUpdated=!1}return e.prototype.getRenderProps=function(){var e=this._params,t=e.listCreationPanelContainer.state,n={type:e.panelType,headerText:e.strings.panelHeaderText,isOpen:t.isPanelOpen,isLightDismiss:!0,closeButtonAriaLabel:C.a},a={onCreateString:e.strings.onCreateOrSaveString,onCreateAction:this._onCreateClick},i={onCancelString:e.strings.onCancelString,onCancelAction:this._onCancelClick},r=t.listInfo,o={onSaveAction:this._onSaveClick},s=y.a.hasPermission(this._pageContext.webPermMasks,y.a.fullMaskWithoutACP),c=this._isExtendedSharePointPermissionEnabled(),d=this._getDocumentLibrarySelectedProtectionType(r,c);return{panelProps:n,listCreationPanelContentProps:{isEditMode:e.isEditMode,panelDescription:e.strings.panelDescription,nameFieldLabel:e.strings.nameFieldLabel,nameFieldValue:null==r?void 0:r.title,nameFieldPlaceHolder:e.strings.nameFieldPlaceHolder,descriptionFieldLabel:e.strings.descriptionFieldLabel,descriptionFieldValue:null==r?void 0:r.description,descriptionFieldPlaceHolder:e.strings.descriptionFieldPlaceHolder,errorMessage:t.errorMessage,spinnerString:e.strings.spinnerString,onCreate:a,onCancel:i,onEdit:o,showInQuickLaunchDefault:e.showInQuickLaunchDefault,showInQuickLaunchString:e.strings.showInQuickLaunchString,sensitivityLabelsProps:{selectedSensitivityLabel:c?this._getCurrentSelectedOptionWithESP(r,d):this._getCurrentSelectedOption(null==r?void 0:r.defaultSensitivityLabelId),sensitivityLabelsFieldLabel:C.i,sensitivityLabelsFieldPlaceHolder:C.j,sensitivityLabelsFieldDescription:C.h,sensitivityLabels:c?this._onDocumentLibraryProtectionTypeChange(d):t.sensitivityLabels,loading:t.loading,hideSensitivityLabelOptions:!this._params.isEditMode&&!s,disableSensLabelDropDown:!s,isESPLibraryLabellingEnabled:c,isESPCheckboxEnabled:this._isESPInformationExists(c),espSensitivityLabelsCheckboxInfoString:C.f,espSensitivityLabelsDescriptionText:C.g,selectedDocumentLibraryProtectionType:d,onDocumentLibraryProtectionTypeChange:this._onDocumentLibraryProtectionTypeChange,espCheckBoxDialogTitle:C.e,espCheckBoxDialogDescription:C.c,espCheckBoxDialogRemoveProtectionButtonText:C.d,espCheckBoxDialogCancelButtonText:C.b},syntexSettingProps:{showSyntexSetting:L?e.isEditMode&&(e.pageContext.isSyntexEnabled||e.pageContext.isSyntexPAYGEnabled):e.isSyntexModelApplied&&e.isEditMode&&(e.pageContext.isSyntexEnabled||e.pageContext.isSyntexPAYGEnabled),syntexMachineLearningflags:t.syntexMachineLearningflag,setSyntexMachineLearningflags:this._setSyntexMachineLearningflag,logoUrl:e.syntexLogoUrl},onRenderLink:e.onRenderLink}}},e.prototype.setState=function(e){this._params.listCreationPanelContainer.setState(e)},e.prototype._getDocumentLibSettingInfo=function(){var e=this,t=this._pageContext.listId;if(this._params.getSharePointToken)return this._params.getSharePointToken().then(function(n){return e._spListCollectionDataSource.getDocumentLibrarySettingInfo(t,n,e._isExtendedSharePointPermissionEnabled()).then(function(t){return e.setState({listInfo:{title:t.title,description:t.description,defaultSensitivityLabelId:t.defaultSensitivityLabelId,espSensitivityLabelId:t.espSensitivityLabelId}}),t})})},e.prototype._onSuccess=function(e,t){this._params.onSuccess(t,e),t.stopPropagation(),t.preventDefault()},e.prototype._isESPInformationExists=function(e){var t=this._params.listCreationPanelContainer.state;return e&&t.espSensitivityLabels&&t.espSensitivityLabels.userDefinedLabels&&t.espSensitivityLabels.userDefinedLabels.length>0},e}();n(2546),n(2547),n(2548),n(2549),n(2550),n(2551),n(2758),n(2951),n(2552),n(2553),n(2554)}
,2648:(e,t,n)=>{"use strict";n.d(t,{a:()=>a.a});var a=n(2361)}
,2359:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var a=new(n("odsp.util_578").qT)("messenger")}
,2361:(e,t,n)=>{"use strict";n.d(t,{a:()=>d});var a=n(26),i=n(96),r=n(365),o=n(80),s=n(362),c=n("odsp.util_578").HW.isActivated("C90ACFD1-2C9D-4910-8044-2E5FAD5EEE64","2/9/2022","Location datasource passing a getAuthToken callback");function d(e,t,n){var d=e.consume(o.a),l=e.consume(r.a);return a.c.resolve(e.consumeAsync(s.a.bypass)).then(function(e){return n&&e.getOAuthSessionToken&&!c?e.getOAuthSessionToken(n).then(function(e){return e.accessToken}):e.getSharePointToken?e.getSharePointToken((0,i.i)(d||{})).then(function(e){return e.accessToken}):(l.logData({name:t+".ErrorInGettInGettingIdentityDataSource"}),"No IdentityDataSource")})}}
,2198:(e,t,n)=>{var a;a=function(){"use strict";function a(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t,n,a){for(var i=-1,r=null==e?0:e.length;++i<r;){var o=e[i];t(a,o,n(o),e)}return a}function r(e,t){for(var n=-1,a=null==e?0:e.length;++n<a&&!1!==t(e[n],n,e););return e}function o(e,t){return!(null==e||!e.length)&&f(e,t,0)>-1}function s(e,t,n){for(var a=-1,i=null==e?0:e.length;++a<i;)if(n(t,e[a]))return!0;return!1}function c(e,t){for(var n=-1,a=null==e?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}function d(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}function l(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}function u(e,t,n,a){for(var i=e.length,r=n+(a?1:-1);a?r--:++r<i;)if(t(e[r],r,e))return r;return-1}function f(e,t,n){return t==t?function(e,t,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}(e,t,n):u(e,p,n)}function p(e){return e!=e}function m(e){return function(t){return null==t?pt:t[e]}}function _(e){return function(t){return null==e?pt:e[t]}}function h(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}function b(e){return function(t){return e(t)}}function g(e,t){return e.has(t)}function v(e){return An.test(e)}function y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,a){n[++t]=[a,e]}),n}function S(e,t){return function(n){return e(t(n))}}function D(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function I(e){return v(e)?function(e){return e.match(wn)||[]}(e):function(e){return e.split("")}(e)}function x(e){for(var t=e.length;t--&&mn.test(e.charAt(t)););return t}function C(){}function O(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function w(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function E(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function A(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new E;++t<n;)this.add(e[t])}function L(e){this.size=(this.__data__=new w(e)).size}function k(e,t){var n=ci(e),a=!n&&si(e),i=!n&&!a&&di(e),r=!n&&!a&&!i&&pi(e),o=n||a||i||r,s=o?h(e.length,String):[],c=s.length;for(var d in e)!t&&!ta.call(e,d)||o&&("length"==d||i&&("offset"==d||"parent"==d)||r&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||Se(d,c))||s.push(d);return s}function M(e,t,n){(n===pt||He(e[t],n))&&(n!==pt||t in e)||F(e,t,n)}function P(e,t,n){var a=e[t];ta.call(e,t)&&He(a,n)&&(n!==pt||t in e)||F(e,t,n)}function T(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function U(e,t,n,a){return za(e,function(e,i,r){t(a,e,n(e),r)}),a}function F(e,t,n){"__proto__"==t&&ba?ba(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function H(e,t,n,a,i,o){var s,c=t&bt,d=t&gt,l=t&vt;if(n&&(s=i?n(e,a,i,o):n(e)),s!==pt)return s;if(!Ve(e))return e;var u=ci(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ta.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return de(e,s)}else{var f=Ya(e),p=f==Pt||f==Tt;if(di(e))return re(e,c);if(f==Rt||f==wt||p&&!i){if(s=d||p?{}:ve(e),!c)return d?function(e,t){return le(e,Qa(e),t)}(e,function(e,t){return e&&le(t,tt(t),e)}(s,e)):function(e,t){return le(e,qa(e),t)}(e,function(e,t){return e&&le(t,et(t),e)}(s,e))}else{if(!Mn[f])return i?e:{};s=function(e,t,n){var a=e.constructor;switch(t){case Wt:return oe(e);case Lt:case kt:return new a(+e);case qt:return function(e,t){return new e.constructor(t?oe(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case Qt:case Yt:case Jt:case Xt:case Zt:case $t:case en:case tn:case nn:return se(e,n);case Ut:case jt:return new a;case Ft:case Vt:return new a(e);case Bt:return function(e){var t=new e.constructor(e.source,bn.exec(e));return t.lastIndex=e.lastIndex,t}(e);case zt:return function(e){return Ba?Object(Ba.call(e)):{}}(e)}}(e,f,c)}}o||(o=new L);var m=o.get(e);if(m)return m;o.set(e,s),fi(e)?e.forEach(function(a){s.add(H(a,t,n,a,e,o))}):li(e)&&e.forEach(function(a,i){s.set(i,H(a,t,n,i,e,o))});var _=u?pt:(l?d?me:pe:d?tt:et)(e);return r(_||e,function(a,i){_&&(a=e[i=a]),P(s,i,H(a,t,n,i,e,o))}),s}function R(e,t,n,a){var i=-1,r=o,d=!0,l=e.length,u=[],f=t.length;if(!l)return u;n&&(t=c(t,b(n))),a?(r=s,d=!1):t.length>=mt&&(r=g,d=!1,t=new A(t));e:for(;++i<l;){var p=e[i],m=null==n?p:n(p);if(p=a||0!==p?p:0,d&&m==m){for(var _=f;_--;)if(t[_]===m)continue e;u.push(p)}else r(t,m,a)||u.push(p)}return u}function N(e,t,n,a,i){var r=-1,o=e.length;for(n||(n=ye),i||(i=[]);++r<o;){var s=e[r];t>0&&n(s)?t>1?N(s,t-1,n,a,i):d(i,s):a||(i[i.length]=s)}return i}function B(e,t){return e&&Ga(e,t,et)}function j(e,t){for(var n=0,a=(t=ae(t,e)).length;null!=e&&n<a;)e=e[Ae(t[n++])];return n&&n==a?e:pt}function V(e,t,n){var a=t(e);return ci(e)?a:d(a,n(e))}function z(e){return null==e?e===pt?Gt:Ht:ha&&ha in Object(e)?function(e){var t=ta.call(e,ha),n=e[ha];try{e[ha]=pt;var a=!0}catch(e){}var i=aa.call(e);return a&&(t?e[ha]=n:delete e[ha]),i}(e):function(e){return aa.call(e)}(e)}function G(e,t){return null!=e&&ta.call(e,t)}function K(e,t){return null!=e&&t in Object(e)}function W(e){return ze(e)&&z(e)==wt}function q(e,t,n,a,i){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,a,i,r){var o=ci(e),s=ci(t),c=o?Et:Ya(e),d=s?Et:Ya(t),l=(c=c==wt?Rt:c)==Rt,u=(d=d==wt?Rt:d)==Rt,f=c==d;if(f&&di(e)){if(!di(t))return!1;o=!0,l=!1}if(f&&!l)return r||(r=new L),o||pi(e)?fe(e,t,n,a,i,r):function(e,t,n,a,i,r,o){switch(n){case qt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wt:return!(e.byteLength!=t.byteLength||!r(new ca(e),new ca(t)));case Lt:case kt:case Ft:return He(+e,+t);case Mt:return e.name==t.name&&e.message==t.message;case Bt:case Vt:return e==t+"";case Ut:var s=y;case jt:var c=a&yt;if(s||(s=D),e.size!=t.size&&!c)return!1;var d=o.get(e);if(d)return d==t;a|=St,o.set(e,t);var l=fe(s(e),s(t),a,i,r,o);return o.delete(e),l;case zt:if(Ba)return Ba.call(e)==Ba.call(t)}return!1}(e,t,c,n,a,i,r);if(!(n&yt)){var p=l&&ta.call(e,"__wrapped__"),m=u&&ta.call(t,"__wrapped__");if(p||m){var _=p?e.value():e,h=m?t.value():t;return r||(r=new L),i(_,h,n,a,r)}}return!!f&&(r||(r=new L),function(e,t,n,a,i,r){var o=n&yt,s=pe(e),c=s.length;if(c!=pe(t).length&&!o)return!1;for(var d=c;d--;){var l=s[d];if(!(o?l in t:ta.call(t,l)))return!1}var u=r.get(e),f=r.get(t);if(u&&f)return u==t&&f==e;var p=!0;r.set(e,t),r.set(t,e);for(var m=o;++d<c;){var _=e[l=s[d]],h=t[l];if(a)var b=o?a(h,_,l,t,e,r):a(_,h,l,e,t,r);if(!(b===pt?_===h||i(_,h,n,a,r):b)){p=!1;break}m||(m="constructor"==l)}if(p&&!m){var g=e.constructor,v=t.constructor;g!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v)&&(p=!1)}return r.delete(e),r.delete(t),p}(e,t,n,a,i,r))}(e,t,n,a,q,i))}function Q(e){return"function"==typeof e?e:null==e?st:"object"==typeof e?ci(e)?function(e,t){return Ie(e)&&Ce(t)?Oe(Ae(e),t):function(n){var a=Ze(n,e);return a===pt&&a===t?$e(n,e):q(t,a,yt|St)}}(e[0],e[1]):function(e){var t=function(e){for(var t=et(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,Ce(i)]}return t}(e);return 1==t.length&&t[0][2]?Oe(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,a){var i=n.length,r=i;if(null==e)return!r;for(e=Object(e);i--;){var o=n[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<r;){var s=(o=n[i])[0],c=e[s],d=o[1];if(o[2]){if(c===pt&&!(s in e))return!1}else{var l=new L;if(!q(d,c,yt|St,undefined,l))return!1}}return!0}(n,0,t)}}(e):lt(e)}function Y(e){if(!xe(e))return Ia(e);var t=[];for(var n in Object(e))ta.call(e,n)&&"constructor"!=n&&t.push(n);return t}function J(e,t,n,a,i){e!==t&&Ga(t,function(r,o){if(i||(i=new L),Ve(r))!function(e,t,n,a,i,r,o){var s=Ee(e,n),c=Ee(t,n),d=o.get(c);if(d)M(e,n,d);else{var l=r?r(s,c,n+"",e,t,o):pt,u=l===pt;if(u){var f=ci(c),p=!f&&di(c),m=!f&&!p&&pi(c);l=c,f||p||m?ci(s)?l=s:Ne(s)?l=de(s):p?(u=!1,l=re(c,!0)):m?(u=!1,l=se(c,!0)):l=[]:Ge(c)||si(c)?(l=s,si(s)?l=Je(s):Ve(s)&&!Be(s)||(l=ve(c))):u=!1}u&&(o.set(c,l),i(l,c,a,r,o),o.delete(c)),M(e,n,l)}}(e,t,o,n,J,a,i);else{var s=a?a(Ee(e,o),r,o+"",e,t,i):pt;s===pt&&(s=r),M(e,o,s)}},tt)}function X(e,t){return Ja(we(e,t,st),e+"")}function Z(e,t,n,a){if(!Ve(e))return e;for(var i=-1,r=(t=ae(t,e)).length,o=r-1,s=e;null!=s&&++i<r;){var c=Ae(t[i]),d=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=o){var l=s[c];(d=a?a(l,c,s):pt)===pt&&(d=Ve(l)?l:Se(t[i+1])?[]:{})}P(s,c,d),s=s[c]}return e}function $(e,t,n){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(i);++a<i;)r[a]=e[a+t];return r}function ee(e){if("string"==typeof e)return e;if(ci(e))return c(e,ee)+"";if(We(e))return ja?ja.call(e):"";var t=e+"";return"0"==t&&1/e==-Dt?"-0":t}function te(e,t,n){var a=-1,i=o,r=e.length,c=!0,d=[],l=d;if(n)c=!1,i=s;else if(r>=mt){var u=t?null:Wa(e);if(u)return D(u);c=!1,i=g,l=new A}else l=t?[]:d;e:for(;++a<r;){var f=e[a],p=t?t(f):f;if(f=n||0!==f?f:0,c&&p==p){for(var m=l.length;m--;)if(l[m]===p)continue e;t&&l.push(p),d.push(f)}else i(l,p,n)||(l!==d&&l.push(p),d.push(f))}return d}function ne(e){return Ne(e)?e:[]}function ae(e,t){return ci(e)?e:Ie(e,t)?[e]:Xa(Xe(e))}function ie(e,t,n){var a=e.length;return n=n===pt?a:n,!t&&n>=a?e:$(e,t,n)}function re(e,t){if(t)return e.slice();var n=e.length,a=da?da(n):new e.constructor(n);return e.copy(a),a}function oe(e){var t=new e.constructor(e.byteLength);return new ca(t).set(new ca(e)),t}function se(e,t){return new e.constructor(t?oe(e.buffer):e.buffer,e.byteOffset,e.length)}function ce(e,t){if(e!==t){var n=e!==pt,a=null===e,i=e==e,r=We(e),o=t!==pt,s=null===t,c=t==t,d=We(t);if(!s&&!d&&!r&&e>t||r&&o&&c&&!s&&!d||a&&o&&c||!n&&c||!i)return 1;if(!a&&!r&&!d&&e<t||d&&n&&i&&!a&&!r||s&&n&&i||!o&&i||!c)return-1}return 0}function de(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}function le(e,t,n,a){var i=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var s=t[r],c=a?a(n[s],e[s],s,n,e):pt;c===pt&&(c=e[s]),i?F(n,s,c):P(n,s,c)}return n}function ue(e){return X(function(t,n){var a=-1,i=n.length,r=i>1?n[i-1]:pt,o=i>2?n[2]:pt;for(r=e.length>3&&"function"==typeof r?(i--,r):pt,o&&De(n[0],n[1],o)&&(r=i<3?pt:r,i=1),t=Object(t);++a<i;){var s=n[a];s&&e(t,s,a,r)}return t})}function fe(e,t,n,a,i,r){var o=n&yt,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var d=r.get(e),u=r.get(t);if(d&&u)return d==t&&u==e;var f=-1,p=!0,m=n&St?new A:pt;for(r.set(e,t),r.set(t,e);++f<s;){var _=e[f],h=t[f];if(a)var b=o?a(h,_,f,t,e,r):a(_,h,f,e,t,r);if(b!==pt){if(b)continue;p=!1;break}if(m){if(!l(t,function(e,t){if(!g(m,t)&&(_===e||i(_,e,n,a,r)))return m.push(t)})){p=!1;break}}else if(_!==h&&!i(_,h,n,a,r)){p=!1;break}}return r.delete(e),r.delete(t),p}function pe(e){return V(e,et,qa)}function me(e){return V(e,tt,Qa)}function _e(){var e=C.iteratee||ct;return e=e===ct?Q:e,arguments.length?e(arguments[0],arguments[1]):e}function he(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function be(e,t){var n=function(e,t){return null==e?pt:e[t]}(e,t);return function(e){return!(!Ve(e)||function(e){return!!na&&na in e}(e))&&(Be(e)?ra:yn).test(Le(e))}(n)?n:pt}function ge(e,t,n){for(var a=-1,i=(t=ae(t,e)).length,r=!1;++a<i;){var o=Ae(t[a]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||++a!=i?r:!!(i=null==e?0:e.length)&&je(i)&&Se(o,i)&&(ci(e)||si(e))}function ve(e){return"function"!=typeof e.constructor||xe(e)?{}:Va(la(e))}function ye(e){return ci(e)||si(e)||!!(ma&&e&&e[ma])}function Se(e,t){var n=typeof e;return!!(t=t??It)&&("number"==n||"symbol"!=n&&Dn.test(e))&&e>-1&&e%1==0&&e<t}function De(e,t,n){if(!Ve(n))return!1;var a=typeof t;return!!("number"==a?Re(n)&&Se(t,n.length):"string"==a&&t in n)&&He(n[t],e)}function Ie(e,t){if(ci(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!We(e))||dn.test(e)||!cn.test(e)||null!=t&&e in Object(t)}function xe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Zn)}function Ce(e){return e==e&&!Ve(e)}function Oe(e,t){return function(n){return null!=n&&n[e]===t&&(t!==pt||e in Object(n))}}function we(e,t,n){return t=xa(t===pt?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=xa(i.length-t,0),s=Array(o);++r<o;)s[r]=i[t+r];r=-1;for(var c=Array(t+1);++r<t;)c[r]=i[r];return c[t]=n(s),a(e,this,c)}}function Ee(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ae(e){if("string"==typeof e||We(e))return e;var t=e+"";return"0"==t&&1/e==-Dt?"-0":t}function Le(e){if(null!=e){try{return ea.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ke(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var i=null==n?0:Qe(n);return i<0&&(i=xa(a+i,0)),u(e,_e(t,3),i)}function Me(e){var t=null==e?0:e.length;return t?e[t-1]:pt}function Pe(e,t){return(ci(e)?r:za)(e,_e(t,3))}function Te(e,t){var n;if("function"!=typeof t)throw new TypeError(_t);return e=Qe(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=pt),n}}function Ue(e,t,n){function a(t){var n=d,a=l;return d=l=pt,_=t,f=e.apply(a,n)}function i(e){return _=e,p=setTimeout(o,t),h?a(e):f}function r(e){var n=e-m;return m===pt||n>=t||n<0||b&&e-_>=u}function o(){var e=oi();if(r(e))return s(e);p=setTimeout(o,function(e){var n=t-(e-m);return b?Ca(n,u-(e-_)):n}(e))}function s(e){return p=pt,g&&d?a(e):(d=l=pt,f)}function c(){var e=oi(),n=r(e);if(d=arguments,l=this,m=e,n){if(p===pt)return i(m);if(b)return clearTimeout(p),p=setTimeout(o,t),a(m)}return p===pt&&(p=setTimeout(o,t)),f}var d,l,u,f,p,m,_=0,h=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError(_t);return t=Ye(t)||0,Ve(n)&&(h=!!n.leading,u=(b="maxWait"in n)?xa(Ye(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),c.cancel=function(){p!==pt&&clearTimeout(p),_=0,d=m=l=p=pt},c.flush=function(){return p===pt?f:s(oi())},c}function Fe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(_t);var n=function(){var a=arguments,i=t?t.apply(this,a):a[0],r=n.cache;if(r.has(i))return r.get(i);var o=e.apply(this,a);return n.cache=r.set(i,o)||r,o};return n.cache=new(Fe.Cache||E),n}function He(e,t){return e===t||e!=e&&t!=t}function Re(e){return null!=e&&je(e.length)&&!Be(e)}function Ne(e){return ze(e)&&Re(e)}function Be(e){if(!Ve(e))return!1;var t=z(e);return t==Pt||t==Tt||t==At||t==Nt}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=It}function Ve(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}function Ge(e){if(!ze(e)||z(e)!=Rt)return!1;var t=la(e);if(null===t)return!0;var n=ta.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ea.call(n)==ia}function Ke(e){return"string"==typeof e||!ci(e)&&ze(e)&&z(e)==Vt}function We(e){return"symbol"==typeof e||ze(e)&&z(e)==zt}function qe(e){return e?(e=Ye(e))===Dt||e===-Dt?(e<0?-1:1)*xt:e==e?e:0:0===e?e:0}function Qe(e){var t=qe(e),n=t%1;return t==t?n?t-n:t:0}function Ye(e){if("number"==typeof e)return e;if(We(e))return Ct;if(Ve(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ve(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=function(e){return e?e.slice(0,x(e)+1).replace(pn,""):e}(e);var n=vn.test(e);return n||Sn.test(e)?Tn(e.slice(2),n?2:8):gn.test(e)?Ct:+e}function Je(e){return le(e,tt(e))}function Xe(e){return null==e?"":ee(e)}function Ze(e,t,n){var a=null==e?pt:j(e,t);return a===pt?n:a}function $e(e,t){return null!=e&&ge(e,t,K)}function et(e){return Re(e)?k(e):Y(e)}function tt(e){return Re(e)?k(e,!0):function(e){if(!Ve(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=xe(e),n=[];for(var a in e)("constructor"!=a||!t&&ta.call(e,a))&&n.push(a);return n}(e)}function nt(e){return null==e?[]:function(e,t){return c(t,function(t){return e[t]})}(e,et(e))}function at(e){return yi(Xe(e).toLowerCase())}function it(e){return(e=Xe(e))&&e.replace(In,qn).replace(On,"")}function rt(e,t,n){return e=Xe(e),(t=n?pt:t)===pt?function(e){return Ln.test(e)}(e)?function(e){return e.match(En)||[]}(e):function(e){return e.match(_n)||[]}(e):e.match(t)||[]}function ot(e){return function(){return e}}function st(e){return e}function ct(e){return Q("function"==typeof e?e:H(e,bt))}function dt(){}function lt(e){return Ie(e)?m(Ae(e)):function(e){return function(t){return j(t,e)}}(e)}function ut(){return[]}function ft(){return!1}var pt,mt=200,_t="Expected a function",ht="__lodash_hash_undefined__",bt=1,gt=2,vt=4,yt=1,St=2,Dt=1/0,It=9007199254740991,xt=17976931348623157e292,Ct=NaN,Ot=4294967295,wt="[object Arguments]",Et="[object Array]",At="[object AsyncFunction]",Lt="[object Boolean]",kt="[object Date]",Mt="[object Error]",Pt="[object Function]",Tt="[object GeneratorFunction]",Ut="[object Map]",Ft="[object Number]",Ht="[object Null]",Rt="[object Object]",Nt="[object Proxy]",Bt="[object RegExp]",jt="[object Set]",Vt="[object String]",zt="[object Symbol]",Gt="[object Undefined]",Kt="[object WeakMap]",Wt="[object ArrayBuffer]",qt="[object DataView]",Qt="[object Float32Array]",Yt="[object Float64Array]",Jt="[object Int8Array]",Xt="[object Int16Array]",Zt="[object Int32Array]",$t="[object Uint8Array]",en="[object Uint8ClampedArray]",tn="[object Uint16Array]",nn="[object Uint32Array]",an=/&(?:amp|lt|gt|quot|#39);/g,rn=/[&<>"']/g,on=RegExp(an.source),sn=RegExp(rn.source),cn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dn=/^\w*$/,ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,fn=RegExp(un.source),pn=/^\s+/,mn=/\s/,_n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hn=/\\(\\)?/g,bn=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,vn=/^0b[01]+$/i,yn=/^\[object .+?Constructor\]$/,Sn=/^0o[0-7]+$/i,Dn=/^(?:0|[1-9]\d*)$/,In=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xn="\\ud83c[\\udffb-\\udfff]",Cn=RegExp("['’]","g"),On=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),wn=RegExp(xn+"(?="+xn+")|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*","g"),En=RegExp("[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+|(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*","g"),An=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ln=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kn={};kn[Qt]=kn[Yt]=kn[Jt]=kn[Xt]=kn[Zt]=kn[$t]=kn[en]=kn[tn]=kn[nn]=!0,kn[wt]=kn[Et]=kn[Wt]=kn[Lt]=kn[qt]=kn[kt]=kn[Mt]=kn[Pt]=kn[Ut]=kn[Ft]=kn[Rt]=kn[Bt]=kn[jt]=kn[Vt]=kn[Kt]=!1;var Mn={};Mn[wt]=Mn[Et]=Mn[Wt]=Mn[qt]=Mn[Lt]=Mn[kt]=Mn[Qt]=Mn[Yt]=Mn[Jt]=Mn[Xt]=Mn[Zt]=Mn[Ut]=Mn[Ft]=Mn[Rt]=Mn[Bt]=Mn[jt]=Mn[Vt]=Mn[zt]=Mn[$t]=Mn[en]=Mn[tn]=Mn[nn]=!0,Mn[Mt]=Mn[Pt]=Mn[Kt]=!1;var Pn=parseFloat,Tn=parseInt,Un="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Fn="object"==typeof self&&self&&self.Object===Object&&self,Hn=Un||Fn||Function("return this")(),Rn=t&&!t.nodeType&&t,Nn=Rn&&e&&!e.nodeType&&e,Bn=(Di=Nn&&Nn.exports===Rn)&&Un.process,jn=function(){try{return Nn&&Nn.require&&Nn.require("util").types||Bn&&Bn.binding&&Bn.binding("util")}catch(e){}}(),Vn=jn&&jn.isMap,zn=jn&&jn.isRegExp,Gn=jn&&jn.isSet,Kn=jn&&jn.isTypedArray,Wn=m("length"),qn=_({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Qn=_({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),Yn=_({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Jn=Array.prototype,Xn=Function.prototype,Zn=Object.prototype,$n=Hn["__core-js_shared__"],ea=Xn.toString,ta=Zn.hasOwnProperty,na=function(){var e=/[^.]+$/.exec($n&&$n.keys&&$n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),aa=Zn.toString,ia=ea.call(Object),ra=RegExp("^"+ea.call(ta).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oa=Di?Hn.Buffer:pt,sa=Hn.Symbol,ca=Hn.Uint8Array,da=oa?oa.allocUnsafe:pt,la=S(Object.getPrototypeOf,Object),ua=Object.create,fa=Zn.propertyIsEnumerable,pa=Jn.splice,ma=sa?sa.isConcatSpreadable:pt,_a=sa?sa.iterator:pt,ha=sa?sa.toStringTag:pt,ba=function(){try{var e=be(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ga=Math.ceil,va=Math.floor,ya=Object.getOwnPropertySymbols,Sa=oa?oa.isBuffer:pt,Da=Hn.isFinite,Ia=S(Object.keys,Object),xa=Math.max,Ca=Math.min,Oa=Date.now,wa=Math.random,Ea=be(Hn,"DataView"),Aa=be(Hn,"Map"),La=be(Hn,"Promise"),ka=be(Hn,"Set"),Ma=be(Hn,"WeakMap"),Pa=be(Object,"create"),Ta=Le(Ea),Ua=Le(Aa),Fa=Le(La),Ha=Le(ka),Ra=Le(Ma),Na=sa?sa.prototype:pt,Ba=Na?Na.valueOf:pt,ja=Na?Na.toString:pt,Va=function(){function e(){}return function(t){if(!Ve(t))return{};if(ua)return ua(t);e.prototype=t;var n=new e;return e.prototype=pt,n}}();O.prototype.clear=function(){this.__data__=Pa?Pa(null):{},this.size=0},O.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},O.prototype.get=function(e){var t=this.__data__;if(Pa){var n=t[e];return n===ht?pt:n}return ta.call(t,e)?t[e]:pt},O.prototype.has=function(e){var t=this.__data__;return Pa?t[e]!==pt:ta.call(t,e)},O.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pa&&t===pt?ht:t,this},w.prototype.clear=function(){this.__data__=[],this.size=0},w.prototype.delete=function(e){var t=this.__data__,n=T(t,e);return!(n<0||(n==t.length-1?t.pop():pa.call(t,n,1),--this.size,0))},w.prototype.get=function(e){var t=this.__data__,n=T(t,e);return n<0?pt:t[n][1]},w.prototype.has=function(e){return T(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,a=T(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},E.prototype.clear=function(){this.size=0,this.__data__={hash:new O,map:new(Aa||w),string:new O}},E.prototype.delete=function(e){var t=he(this,e).delete(e);return this.size-=t?1:0,t},E.prototype.get=function(e){return he(this,e).get(e)},E.prototype.has=function(e){return he(this,e).has(e)},E.prototype.set=function(e,t){var n=he(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},A.prototype.add=A.prototype.push=function(e){return this.__data__.set(e,ht),this},A.prototype.has=function(e){return this.__data__.has(e)},L.prototype.clear=function(){this.__data__=new w,this.size=0},L.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},L.prototype.get=function(e){return this.__data__.get(e)},L.prototype.has=function(e){return this.__data__.has(e)},L.prototype.set=function(e,t){var n=this.__data__;if(n instanceof w){var a=n.__data__;if(!Aa||a.length<mt-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new E(a)}return n.set(e,t),this.size=n.size,this};var za=function(e,t){return function(t,n){if(null==t)return t;if(!Re(t))return e(t,n);for(var a=t.length,i=-1,r=Object(t);++i<a&&!1!==n(r[i],i,r););return t}}(B),Ga=function(e,t,n){for(var a=-1,i=Object(e),r=n(e),o=r.length;o--;){var s=r[++a];if(!1===t(i[s],s,i))break}return e},Ka=ba?function(e,t){return ba(e,"toString",{configurable:!0,enumerable:!1,value:ot(t),writable:!0})}:st,Wa=ka&&1/D(new ka([,-0]))[1]==Dt?function(e){return new ka(e)}:dt,qa=ya?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,a=null==e?0:e.length,i=0,r=[];++n<a;){var o=e[n];t(o)&&(r[i++]=o)}return r}(ya(e),function(t){return fa.call(e,t)}))}:ut,Qa=ya?function(e){for(var t=[];e;)d(t,qa(e)),e=la(e);return t}:ut,Ya=z;(Ea&&Ya(new Ea(new ArrayBuffer(1)))!=qt||Aa&&Ya(new Aa)!=Ut||La&&"[object Promise]"!=Ya(La.resolve())||ka&&Ya(new ka)!=jt||Ma&&Ya(new Ma)!=Kt)&&(Ya=function(e){var t=z(e),n=t==Rt?e.constructor:pt,a=n?Le(n):"";if(a)switch(a){case Ta:return qt;case Ua:return Ut;case Fa:return"[object Promise]";case Ha:return jt;case Ra:return Kt}return t});var Ja=function(e){var t=0,n=0;return function(){var a=Oa(),i=16-(a-n);if(n=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(pt,arguments)}}(Ka),Xa=function(e){var t=Fe(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ln,function(e,n,a,i){t.push(a?i.replace(hn,"$1"):n||e)}),t},function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(),Za=X(function(e,t){return Ne(e)?R(e,N(t,1,Ne,!0)):[]}),$a=X(function(e,t){var n=Me(t);return Ne(n)&&(n=pt),Ne(e)?R(e,N(t,1,Ne,!0),_e(n,2)):[]}),ei=X(function(e,t){var n=Me(t);return Ne(n)&&(n=pt),Ne(e)?R(e,N(t,1,Ne,!0),pt,n):[]}),ti=X(function(e){var t=c(e,ne);return t.length&&t[0]===e[0]?function(e,t,n){for(var a=o,i=e[0].length,r=e.length,s=r,c=Array(r),d=1/0,l=[];s--;){var u=e[s];d=Ca(u.length,d),c[s]=i>=120&&u.length>=120?new A(s&&u):pt}u=e[0];var f=-1,p=c[0];e:for(;++f<i&&l.length<d;){var m=u[f],_=m;if(m=0!==m?m:0,!(p?g(p,_):a(l,_,n))){for(s=r;--s;){var h=c[s];if(!(h?g(h,_):a(e[s],_,n)))continue e}p&&p.push(_),l.push(m)}}return l}(t):[]}),ni=X(function(e,t){return Ne(e)?R(e,t):[]}),ai=function(e){return function(t,n,a){var i=Object(t);if(!Re(t)){var r=_e(n,3);t=et(t),n=function(e){return r(i[e],e,i)}}var o=e(t,n,a);return o>-1?i[r?t[o]:o]:pt}}(ke),ii=function(e,t){return function(t,n){return(ci(t)?i:U)(t,e,_e(n,2),{})}}(function(e,t,n){ta.call(e,n)?e[n].push(t):F(e,n,[t])}),ri=X(function(e,t){if(null==e)return[];var n=t.length;return n>1&&De(e,t[0],t[1])?t=[]:n>2&&De(t[0],t[1],t[2])&&(t=[t[0]]),function(e,t,n){t=t.length?c(t,function(e){return ci(e)?function(t){return j(t,1===e.length?e[0]:e)}:e}):[st];var a=-1;return t=c(t,b(_e())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].c;return e}(function(e,t){var n=-1,a=Re(e)?Array(e.length):[];return za(e,function(e,i,r){a[++n]=t(e)}),a}(e,function(e,n,i){return{a:c(t,function(t){return t(e)}),b:++a,c:e}}),function(e,t){return function(e,t,n){for(var a=-1,i=e.a,r=t.a,o=i.length,s=n.length;++a<o;){var c=ce(i[a],r[a]);if(c)return a>=s?c:c*("desc"==n[a]?-1:1)}return e.b-t.b}(e,t,n)})}(e,N(t,1),[])}),oi=function(){return Hn.Date.now()};Fe.Cache=E;var si=W(function(){return arguments}())?W:function(e){return ze(e)&&ta.call(e,"callee")&&!fa.call(e,"callee")},ci=Array.isArray,di=Sa||ft,li=Vn?b(Vn):function(e){return ze(e)&&Ya(e)==Ut},ui=zn?b(zn):function(e){return ze(e)&&z(e)==Bt},fi=Gn?b(Gn):function(e){return ze(e)&&Ya(e)==jt},pi=Kn?b(Kn):function(e){return ze(e)&&je(e.length)&&!!kn[z(e)]},mi=ue(function(e,t){if(xe(t)||Re(t))le(t,et(t),e);else for(var n in t)ta.call(t,n)&&P(e,n,t[n])}),_i=ue(function(e,t){le(t,tt(t),e)}),hi=function(e,t){return function(n,a){return function(e,t,n,a){return B(e,function(e,i,r){t(a,n(e),i,r)}),a}(n,e,t(a),{})}}(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=aa.call(t)),e[t]=n},ot(st)),bi=ue(function(e,t,n){J(e,t,n)}),gi=function(e){return function(t){var n=Ya(t);return n==Ut?y(t):n==jt?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return c(t,function(t){return[t,e[t]]})}(t,e(t))}}(et),vi=function(e){return function(t){return function(e,t,n,a){for(var i=-1,r=null==e?0:e.length;++i<r;)n=t(n,e[i],i,e);return n}(rt(it(t).replace(Cn,"")),e,"")}}(function(e,t,n){return t=t.toLowerCase(),e+(n?at(t):t)}),yi=function(e){var t=v(e=Xe(e))?I(e):pt,n=t?t[0]:e.charAt(0),a=t?ie(t,1).join(""):e.slice(1);return n.toUpperCase()+a},Si=function(e){var t=Math.round;return function(e,n){if(e=Ye(e),(n=null==n?0:Ca(Qe(n),292))&&Da(e)){var a=(Xe(e)+"e").split("e");return+((a=(Xe(t(a[0]+"e"+(+a[1]+n)))+"e").split("e"))[0]+"e"+(+a[1]-n))}return t(e)}}();C.assign=mi,C.assignIn=_i,C.before=Te,C.chunk=function(e,t,n){t=(n?De(e,t,n):t===pt)?1:xa(Qe(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,r=0,o=Array(ga(a/t));i<a;)o[r++]=$(e,i,i+=t);return o},C.constant=ot,C.debounce=Ue,C.difference=Za,C.differenceBy=$a,C.differenceWith=ei,C.flatten=function(e){return null!=e&&e.length?N(e,1):[]},C.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,a={};++t<n;){var i=e[t];a[i[0]]=i[1]}return a},C.groupBy=ii,C.intersection=ti,C.invert=hi,C.iteratee=ct,C.keys=et,C.keysIn=tt,C.memoize=Fe,C.merge=bi,C.once=function(e){return Te(2,e)},C.property=lt,C.set=function(e,t,n){return null==e?e:Z(e,t,n)},C.sortBy=ri,C.throttle=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError(_t);return Ve(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),Ue(e,t,{leading:a,maxWait:t,trailing:i})},C.toArray=function(e){if(!e)return[];if(Re(e))return Ke(e)?I(e):de(e);if(_a&&e[_a])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[_a]());var t=Ya(e);return(t==Ut?y:t==jt?D:nt)(e)},C.toPairs=gi,C.toPlainObject=Je,C.uniq=function(e){return e&&e.length?te(e):[]},C.uniqBy=function(e,t){return e&&e.length?te(e,_e(t,2)):[]},C.unset=function(e,t){return null==e||function(e,t){return null==(e=function(e,t){return t.length<2?e:j(e,$(t,0,-1))}(e,t=ae(t,e)))||delete e[Ae(Me(t))]}(e,t)},C.update=function(e,t,n){return null==e?e:function(e,t,n,a){return Z(e,t,n(j(e,t)),void 0)}(e,t,function(e){return"function"==typeof e?e:st}(n))},C.values=nt,C.without=ni,C.words=rt,C.entries=gi,C.extend=_i,C.camelCase=vi,C.capitalize=at,C.clone=function(e){return H(e,vt)},C.cloneDeep=function(e){return H(e,bt|vt)},C.cloneDeepWith=function(e,t){return H(e,bt|vt,t="function"==typeof t?t:pt)},C.deburr=it,C.eq=He,C.escape=function(e){return(e=Xe(e))&&sn.test(e)?e.replace(rn,Qn):e},C.escapeRegExp=function(e){return(e=Xe(e))&&fn.test(e)?e.replace(un,"\\$&"):e},C.find=ai,C.findIndex=ke,C.findKey=function(e,t){return function(e,t,n){var a;return n(e,function(e,n,i){if(t(e,n,i))return a=n,!1}),a}(e,_e(t,3),B)},C.forEach=Pe,C.forIn=function(e,t){return null==e?e:Ga(e,_e(t,3),tt)},C.get=Ze,C.has=function(e,t){return null!=e&&ge(e,t,G)},C.hasIn=$e,C.identity=st,C.isArguments=si,C.isArray=ci,C.isArrayLike=Re,C.isArrayLikeObject=Ne,C.isBuffer=di,C.isElement=function(e){return ze(e)&&1===e.nodeType&&!Ge(e)},C.isEmpty=function(e){if(null==e)return!0;if(Re(e)&&(ci(e)||"string"==typeof e||"function"==typeof e.splice||di(e)||pi(e)||si(e)))return!e.length;var t=Ya(e);if(t==Ut||t==jt)return!e.size;if(xe(e))return!Y(e).length;for(var n in e)if(ta.call(e,n))return!1;return!0},C.isEqual=function(e,t){return q(e,t)},C.isEqualWith=function(e,t,n){var a=(n="function"==typeof n?n:pt)?n(e,t):pt;return a===pt?q(e,t,pt,n):!!a},C.isFunction=Be,C.isLength=je,C.isMap=li,C.isObject=Ve,C.isObjectLike=ze,C.isPlainObject=Ge,C.isRegExp=ui,C.isSet=fi,C.isString=Ke,C.isSymbol=We,C.isTypedArray=pi,C.last=Me,C.stubArray=ut,C.stubFalse=ft,C.noop=dt,C.now=oi,C.random=function(e,t,n){if(n&&"boolean"!=typeof n&&De(e,t,n)&&(t=n=pt),n===pt&&("boolean"==typeof t?(n=t,t=pt):"boolean"==typeof e&&(n=e,e=pt)),e===pt&&t===pt?(e=0,t=1):(e=qe(e),t===pt?(t=e,e=0):t=qe(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var i=wa();return Ca(e+i*(t-e+Pn("1e-"+((i+"").length-1))),t)}return function(e,t){return e+va(wa()*(t-e+1))}(e,t)},C.round=Si,C.sumBy=function(e,t){return e&&e.length?function(e,t){for(var n,a=-1,i=e.length;++a<i;){var r=t(e[a]);r!==pt&&(n=n===pt?r:n+r)}return n}(e,_e(t,2)):0},C.times=function(e,t){if((e=Qe(e))<1||e>It)return[];var n=Ot,a=Ca(e,Ot);t=_e(t),e-=Ot;for(var i=h(a,t);++n<e;)t(n);return i},C.toFinite=qe,C.toInteger=Qe,C.toNumber=Ye,C.toString=Xe,C.trimEnd=function(e,t,n){if((e=Xe(e))&&(n||t===pt))return e.slice(0,x(e)+1);if(!e||!(t=ee(t)))return e;var a=I(e);return ie(a,0,function(e,t){for(var n=e.length;n--&&f(t,e[n],0)>-1;);return n}(a,I(t))+1).join("")},C.trimStart=function(e,t,n){if((e=Xe(e))&&(n||t===pt))return e.replace(pn,"");if(!e||!(t=ee(t)))return e;var a=I(e);return ie(a,function(e,t){for(var n=-1,a=e.length;++n<a&&f(t,e[n],0)>-1;);return n}(a,I(t))).join("")},C.truncate=function(e,t){var n=30,a="...";if(Ve(t)){var i="separator"in t?t.separator:i;n="length"in t?Qe(t.length):n,a="omission"in t?ee(t.omission):a}var r=(e=Xe(e)).length;if(v(e)){var o=I(e);r=o.length}if(n>=r)return e;var s=n-function(e){return v(e)?function(e){for(var t=wn.lastIndex=0;wn.test(e);)++t;return t}(e):Wn(e)}(a);if(s<1)return a;var c=o?ie(o,0,s).join(""):e.slice(0,s);if(i===pt)return c+a;if(o&&(s+=c.length-s),ui(i)){if(e.slice(s).search(i)){var d,l=c;for(i.global||(i=RegExp(i.source,Xe(bn.exec(i))+"g")),i.lastIndex=0;d=i.exec(l);)var u=d.index;c=c.slice(0,u===pt?s:u)}}else if(e.indexOf(ee(i),s)!=s){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+a},C.unescape=function(e){return(e=Xe(e))&&on.test(e)?e.replace(an,Yn):e},C.upperFirst=yi,C.each=Pe,C.VERSION="4.17.21";var Di={};return C.each(Object.keys(C),function(e){Di[e]=C[e]}),Di},(e=n.nmd(e)).exports=a()}
}]);