1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2369],{19394:function(e,t,o){var l=o(57437),a=o(15826),n=o(93982),r=o(50797),i=o(77639),s=o(18223),c=o(95280),d=o(2265);t.Z=e=>{var t,o;let[u,x]=(0,d.useState)(),f=!!u,[p,b]=(0,d.useState)();return(0,d.useEffect)(()=>{b(e.tabList.find(t=>t.id===e.selectedTab))},[e.selectedTab]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{variant:"contained",disableElevation:!0,disableRipple:!0,"aria-label":e.hideLabel?"Category":void 0,sx:{borderRadius:"12px",...e.hideLabel?{minWidth:48,padding:0,justifyContent:"center",alignItems:"center","& .MuiButton-endIcon":{marginLeft:0,marginRight:0,display:"flex",alignItems:"center",justifyContent:"center"}}:void 0,fontFamily:"inherit",fontSize:"16px",fontWeight:400,color:"#000",borderWidth:"1px",borderStyle:"solid",borderColor:f?"rgba(0,0,0,0.35)":"rgba(0,0,0,0.1)","&:hover":{borderColor:"rgba(0,0,0,0.35)"},"&.Mui-focusVisible":{borderColor:"rgba(0,0,0,0.35)",outline:"none"}},className:"h-12 md3-input !rounded-xl transition-colors ".concat(e.hideLabel?"w-12 min-w-12 p-0":"px-6 pl-5"," ").concat(f?"bg-white":"bg-white/70 hover:bg-white"),onMouseDown:e=>{e.preventDefault(),x(e.currentTarget)},onClick:e=>x(e.currentTarget),endIcon:e.hideLabel?null:f?(0,l.jsx)(r.Z,{}):(0,l.jsx)(n.Z,{}),children:e.hideLabel?(0,l.jsx)("span",{className:"flex items-center justify-center w-full h-full",children:f?(0,l.jsx)(r.Z,{}):(0,l.jsx)(n.Z,{})}):(0,l.jsx)("span",{className:"flex items-center gap-2 overflow-hidden whitespace-nowrap max-w-[200px] text-[16px] font-normal",style:{fontFamily:'"Roboto Flex", sans-serif',color:e.selectedTabs&&e.selectedTabs.length>0?"#000":"rgba(0, 0, 0, 0.54)"},children:e.selectedTabs&&e.selectedTabs.length>0?1===e.selectedTabs.length?null!==(o=null===(t=e.tabList.find(t=>{var o;return t.id===(null===(o=e.selectedTabs)||void 0===o?void 0:o[0])}))||void 0===t?void 0:t.label)&&void 0!==o?o:"Category":e.tabList.filter(t=>{var o;return!!t.icon&&(null===(o=e.selectedTabs)||void 0===o?void 0:o.includes(t.id))}).slice(0,3).map(e=>(0,l.jsx)("img",{src:e.icon,alt:e.label,className:"w-[18px] h-[18px]"},"selected-tab-icon-".concat(e.id))):"Category"})}),(0,l.jsx)(s.Z,{anchorEl:u,open:f,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{className:"rounded-xl",sx:{borderRadius:"12px"}},sx:{"& .MuiList-root":{padding:"6px 0"}},onClose:()=>x(void 0),children:e.tabList.map((t,o)=>{var n,r;return(0,l.jsx)(c.Z,{onClick:()=>{e.onSelected(t),x(void 0)},children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"w-4 flex-none",children:"all"===t.value?!(null===(n=e.selectedTabs)||void 0===n?void 0:n.length)&&(0,l.jsx)(a.Z,{className:"w-4",htmlColor:"#777"}):(null===(r=e.selectedTabs)||void 0===r?void 0:r.includes(t.id))&&(0,l.jsx)(a.Z,{className:"w-4",htmlColor:"#777"})}),t.icon&&(0,l.jsx)("div",{children:(0,l.jsx)("img",{src:t.icon,alt:t.label,className:"w-[15px] h-[15px] md:w-5 md:h-5"})}),(0,l.jsx)("div",{className:"pr-2 text-base capitalize",children:t.label})]})},"drop_cate_".concat(o))})})]})}},84954:function(e,t,o){o.d(t,{f:function(){return i}});var l=o(57437),a=o(19394),n=o(84013),r=o(10560);function i(e){let{performerInfoTabs:t,leaderScopeCategories:o,selectedTab:i,selectedCategoryIds:s,onTabSelect:c,searchText:d,onSearchTextChange:u,isSearchActive:x,onSearchActiveChange:f}=e,p=r.PE?null!=o?o:[]:t;return p.length>0?(0,l.jsxs)("div",{className:"flex flex-row items-center gap-3 w-full sticky top-0 z-[60] py-2 md:static md:top-auto md:py-0",children:[(0,l.jsx)("div",{className:"flex-1"}),(0,l.jsx)("div",{className:"flex-auto flex justify-center",children:(0,l.jsxs)("div",{className:"flex items-center gap-3 w-full px-3 py-2 ".concat(x?"max-w-none":"max-w-[760px]"),children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(n.Z,{searchTextPlaceHolder:"Search",value:d,onChange:u,onFocusChange:e=>{window.matchMedia("(max-width: 767px)").matches&&f(e)}})}),(0,l.jsx)(a.Z,{tabList:p,onSelected:c,selectedTab:i,selectedTabs:s,hideLabel:x})]})}),(0,l.jsx)("div",{className:"flex-1"})]}):null}},84013:function(e,t,o){var l=o(57437),a=o(74589),n=o(97121),r=o(73977),i=o(27350),s=o(12455),c=o(362
161),d=o(2265);t.Z=e=>{var t;let o=(0,n.Z)(),u=void 0!==e.value?e.value:o.searchText,x=null!==(t=e.onChange)&&void 0!==t?t:o.setSearchText,f=(0,d.useRef)(null),[p,b]=(0,d.useState)(!1);return(0,l.jsx)("div",{className:"max-w-7xl bg-transparent",children:(0,l.jsx)("div",{className:"flex justify-center w-full",children:(0,l.jsx)("div",{className:"max-w-none w-full relative pl-0",children:(0,l.jsxs)("div",{className:"flex items-center relative",children:[(0,l.jsx)(r.Z,{className:"absolute z-[1] left-[10px] pointer-events-none",htmlColor:u?"#fff":"#9ca3af"}),(0,l.jsx)(i.ZP,{ref:f,placeholder:e.searchTextPlaceHolder,"aria-label":e.searchTextPlaceHolder,className:"flex-auto w-full flex items-center md3-input !rounded-xl h-12 pl-10 pr-[5px] transition-colors ".concat(p||u?"bg-white":"bg-white/70 hover:bg-white"),sx:{borderRadius:"12px",color:"#000","& .MuiInputBase-input":{fontSize:"16px",fontWeight:400},"& .MuiInputBase-input::placeholder":{opacity:1,color:"rgba(0, 0, 0, 0.54)"},"&.Mui-focused":{border:"1px solid rgba(0,0,0,0.35)"}},value:u,onFocus:()=>{var t;b(!0),null===(t=e.onFocusChange)||void 0===t||t.call(e,!0)},onBlur:()=>{var t;b(!1),null===(t=e.onFocusChange)||void 0===t||t.call(e,!1)},onChange:e=>x(e.currentTarget.value?e.currentTarget.value.toLowerCase():""),onKeyDown:t=>{"enter"==t.key.toLowerCase()&&e.onEnter&&e.onEnter(u)}}),!!u&&(0,l.jsx)("div",{className:"absolute right-[5px]",children:(0,l.jsx)(s.Z,{title:"Clear search text",children:(0,l.jsx)(c.Z,{"aria-label":"Clear search text",className:"w-6 h-6 text-white",onClick:()=>{var e;x("");let t=null===(e=f.current)||void 0===e?void 0:e.children[0];t&&t.focus&&t.focus()},children:(0,l.jsx)(a.Z,{})})})})]})})})})}},57126:function(e,t,o){o.d(t,{P:function(){return c}});var l=o(57437),a=o(2265),n=o(60034),r=o(1589),i=o(36003),s=o(44253);function c(e){let t=(0,a.useRef)(null),o="prototype"===e.variant,r={"& .MuiTabs-flexContainer":{gap:o?"0px":void 0,justifyContent:"flex-start"},...o?{"& .MuiTabs-indicator":{display:"none"},"& .MuiTab-root.Mui-selected":{color:"inherit"},"& .MuiTabs-scrollButtons:first-of-type::before":{backgroundImage:"none",width:0},"& .MuiTabs-scrollButtons:last-of-type::before":{backgroundImage:"none",width:0}}:{}};return(0,a.useEffect)(()=>{if(!e.selectedTab)return;let o=0,l=0;return o=window.requestAnimationFrame(()=>{l=window.requestAnimationFrame(()=>{var e,o;let l=null===(e=t.current)||void 0===e?void 0:e.querySelector(".MuiTabs-scroller"),a=null===(o=t.current)||void 0===o?void 0:o.querySelector('[role="tab"][aria-selected="true"]');if(!l||!a)return;let n=Math.max(a.offsetLeft-12,0);l.scrollTo({left:n,behavior:"smooth"})})}),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(l)}},[e.selectedTab,e.tabList]),(0,l.jsx)("div",{ref:t,className:"relative w-fit max-w-full min-w-0",children:(0,l.jsx)(d,{variant:"scrollable",scrollButtons:"auto",className:"mx-auto w-fit max-w-full min-w-0 ".concat(e.tabsClassName),value:e.selectedTab||!1,classes:{scrollButtons:"absolute transition-opacity duration-300 top-[0] bottom-[0] w-[40px] z-[1] opacity-100"},allowScrollButtonsMobile:!0,sx:r,children:e.tabList.map((t,a)=>{let{label:r,value:i,id:c,link:d,icon:u,className:x}=t;return(0,l.jsx)(n.Z,{"data-testid":"".concat(s.V.LEADER_PORTAL_TAB,"-").concat(c),tabIndex:a,value:i,title:r,onClick:()=>{e.onSelected({value:i,link:d})},sx:{"&.MuiButtonBase-root.MuiTab-root .MuiTouchRipple-root":{margin:0}},className:"".concat(x||i,"-tab ").concat(o?"first:rounded-l-xl last:rounded-r-xl h-[40px] flex items-center p-0 border-0 border-r border-border/80 last:border-r-0 flex-none":"rounded-full h-[40px] flex items-center p-0 border-0 flex-none"," ").concat(e.selectedTab===i?"".concat(e.tabSelectedClass," ").concat(!e.noSelectionShadow&&"shadow"):e.tabUnselectedClass," ").concat(e.tabClassName),label:(0,l.jsxs)("div",{className:"w-full flex items-center justify-center gap-2 ".concat(o?"px-2 py-2.5 md:px-2.5 md:py-2.5":"rounded-full px-2 py-[6px] md:px-5 md:py-[8px]"),children:[u&&(0,l.jsx)("img",{src:u,alt:r,className:"w-[15px] h-[15px] md:w-5 md:h-5"}),(0,l.jsx)("span",{className:o?"text-xs md:text-sm font-[500] text-inherit":"font-[500]",children:r})]})},"tab_".concat(a))})})})}let d=(0,r.ZP)(i.Z)({width:"fit-content",maxWidth:"100%",display:"flex",justifyContent:"flex-start","& .MuiTabs-flexContainer":{gap:"5px",padding:0,justifyContent:"flex-start",flexWrap:"nowrap",flexShrink:0},"& .MuiTabs-scroller":{width:"fit-content",maxWidth:"100%",display:"flex",justifyContent:"flex-start",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",WebkitOverflowScrolling:"touch",overscrollBehaviorX:"contain",touchAction:"pan-x",minWidth:0,"&::-webkit-scrollbar":{display:"none"}},".MuiTabs-root::before":{content:'" "',position:"absolute",top:0,right:0,bottom:0,left:0},"& .MuiTabs-scrollButtons":{backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"}},"& .MuiTabs-scrollButtons:first-of-type":{left:"0",borderRadius:"100%"},"& .MuiTabs-scrollButtons:last-of-type":{right:"0",borderRadius:"100%"},"& .MuiSvgIcon-root":{zIndex:"1"},"& .MuiTouchRipple-root":{margin:"4px 0"},"& .MuiTabs-scrollButtons:first-of-type .MuiTouchRipple-root::before":{content:'" "',position:"absolute",top:"0",bottom:"0",backgroundColor:"transparent",width:"40px",height:"40px",borderRadius:"100%",zIndex:"-1",left:0},"& .MuiTabs-scrollButtons:last-of-type .MuiTouchRipple-root::before":{content:'" "',position:"absolute",top:"0",bottom:"0",backgroundColor:"transparent",width:"40px",height:"40px",borderRadius:"100%",zIndex:"-1",right:0},"& .MuiTabs-scrollButtons:hover .MuiTouchRipple-root::before":{backgroundColor:"transparent"},"& .MuiTabs-scrollButtons:first-of-type::before":{content:'" "',position:"absolute",top:"0",bottom:"0",width:"70px",zIndex:"-1",left:0,borderTopLeftRadius:"20px",borderBottomLeftRadius:"20px",backgroundImage:"linear-gradient(to right, #EAECF0, #EAECF0, rgba(243, 245, 249, 0))"},"& .MuiTabs-scrollButtons:last-of-type::before":{content:'" "',position:"absolute",top:"0",bottom:"0",width:"70px",zIndex:"-1",right:0,borderTopRightRadius:"20px",borderBottomRightRadius:"20px",backgroundImage:"linear-gradient(to left, #EAECF0, #EAECF0, rgba(243, 245, 249, 0))"}})},80213:function(e,t,o){o.d(t,{v:function(){return r}});var l=o(2265),a=o(10560);function n(e,t){let o=e=>{var o,l;return t instanceof Map?null!==(o=t.get(e))&&void 0!==o?o:[]:null!==(l=t[e])&&void 0!==l?l:[]},l=new Set,a=[];for(let t of e)for(let e of o(t))l.has(e.id)||(l.add(e.id),a.push(e));return a}function r(e){let{selectedCategoryIds:t,selectedTab:o,slug:r,categoryLeaderRegimenMap:i,playbookHashset:s,performerRegimenData:c,isPlaybooksView:d}=e,[u,x]=(0,l.useState)(""),[f,p]=(0,l.useState)(!1);(0,l.useEffect)(()=>{d||(x(""),p(!1))},[d]);let b=(0,l.useMemo)(()=>{var e,l,d,u;if(t.length>0){if(a.PE&&r){let e=i.get(r);return e?n(t,e):[]}return n(t,s)}return a.PE&&r?null!==(l=null===(e=i.get(r))||void 0===e?void 0:e.get(o||"all"))&&void 0!==l?l:[]:null!==(u=null!==(d=s[o])&&void 0!==d?d:c)&&void 0!==u?u:[]},[t,o,r,i,s,c]),h=(0,l.useMemo)(()=>(function(e,t){let o=t.trim().toLowerCase();return o?e.filter(e=>{var t,l,a,n,r;return(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().includes(o))||(null===(l=e.description)||void 0===l?void 0:l.toLowerCase().includes(o))||(null===(a=e.hashtags)||void 0===a?void 0:a.toLowerCase().includes(o))||(null===(n=e.openingChatMessage)||void 0===n?void 0:n.toLowerCase().includes(o))||(null===(r=e.category)||void 0===r?void 0:r.toLowerCase().includes(o))}):e})(b,u),[b,u]);return{searchText:u,setSearchText:x,isSearchActive:f,setIsSearchActive:p,filteredPlaybooks:h}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.