1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="34e7e06a-1a0b-470f-ae09-3320346de1ed",e._sentryDebugIdIdentifier="sentry-dbid-34e7e06a-1a0b-470f-ae09-3320346de1ed")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5527],{2251:e=>{e.exports={showHelp:"ob_L0cEtl",knowledgeBaseLink:"ob_wAZwoJ",link:"ob_KP8Mnc",helpText:"ob_WuEeFE",popUpContainer:"ob_GkmawG",doNotShow:"ob_qPbB9n",skip:"ob_1ddW8g",knowledgeLink:"ob_tWfDDY",skipButton:"ob_kTsby4",icon:"ob_3qBg0n"}},4294:(e,t,o)=>{"use strict";o.d(t,{DU:()=>a,X3:()=>l,Yq:()=>i,ZA:()=>r,_W:()=>n});let s={sns:2,website:3,other:5};s.sns,s.website,s.other;let n={USER:"user",PERFORMANCE:"performance"},i={RETIRED:"retire",WISHLIST:"future",PAST:"past",PREPARED:"prepared",UNPREPARED:"unprepared"},r=[i.WISHLIST,i.PREPARED,i.UNPREPARED],a=1,l=3},11378:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o(95155);o(12115);var n=o(12758),i=o.n(n),r=o(86194),a=o(69821),l=o.n(a);let c=e=>{let{children:t,className:o}=e;return(0,s.jsx)("div",{className:(0,r.default)(l().cardBox,o),children:t})};c.propTypes={className:i().string,children:i().node};let d=c},15990:e=>{e.exports={root:"ob_zBL7dy",label:"ob_0qREqi",tooltip:"ob_44DtH5",infoTooltipIcon:"ob_vWqEws",tooltipPopper:"ob_ObuRou"}},18547:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o(95155);o(12115);var n=o(86194),i=o(12758),r=o.n(i),a=o(67774),l=o.n(a);let c=e=>{let{leftIcon:t,rightIcon:o,children:i,className:r,isCancelled:a,isArchived:c,isVerified:d,blueChip:u}=e;return(0,s.jsxs)("div",{className:(0,n.default)(l().chip,{[l().archived]:c,[l().unverified]:!d,[l().verified]:d,[l().cancelled]:a,[l().blueChip]:u},r),children:[t&&(0,s.jsx)("span",{className:`${l().icon} ${l().leftIcon}`,children:t}),i,o&&(0,s.jsx)("span",{className:`${l().icon} ${l().rightIcon}`,children:o})]})};c.propTypes={children:r().oneOfType([r().arrayOf(r().node),r().node]),leftIcon:r().oneOfType([r().arrayOf(r().node),r().node]),rightIcon:r().oneOfType([r().arrayOf(r().node),r().node]),isVerified:r().bool},c.defaultProps={isVerified:!1};let d=c},21525:(e,t,o)=>{"use strict";o.d(t,{A:()=>_});var s=o(95155),n=o(12115),i=o(86194),r=o(79824),a=o(12758),l=o.n(a),c=o(48158),d=o(19420),u=o(21911),p=o(8987),m=o(22377),h=o(94396),R=o.n(h);let T=e=>{let{isVisible:t,onChangeVisibility:o,canChangeVisibility:a,inValidAction:l,hasProAccountValidation:h,isHiddenProduction:T,isRejectedProduction:_,type:E,popupSource:A,specialPermission:b,trackingData:P,skipTracking:I=!1,isUpdating:f}=e,{t:x}=(0,m.useTranslation)(),g=(0,c.A)(),C=(0,d.j3)(P,I),{setInValidAction:N,confirmSpecialPermissionWithSource:S,hasPermissions:{isShowHide:O}}=(0,p.o)(),[j,y]=(0,n.useState)(!1);(0,n.useEffect)(()=>{y(t)},[t,f]);let k=()=>{if(T)return void N(u.IN_VALID_ACTION_TYPES.HIDDEN_PRODUCTION);a?y(a(!0)):y(!0),o(!0)},v=()=>{y(!1),o(!1)},w=k,D=v;if(h){let e=O;b&&(e=b?.permission),w=S(e,k,A),D=S(e,v,A)}return(0,s.jsx)("div",{className:(0,i.default)(R()["switch-container"],C),children:(0,s.jsxs)("label",{className:R()["react-switch"],children:[(0,s.jsx)("input",{checked:j,onChange:()=>{if(l)return _?void N(u.IN_VALID_ACTION_TYPES.VALIDATION_REJECTED_PRODUCTION):void N(E??u.IN_VALID_ACTION_TYPES.VALIDATION_PENDING_PRODUCTION);j?D():w(),(0,r.A)(P)||g.click({...P,meta:{isVisible:!j,...P?.meta}})},className:R()["react-switch-checkbox"],type:"checkbox"}),(0,s.jsx)("div",{className:R()["react-switch-button"]}),(0,s.jsxs)("div",{className:R()["react-switch-labels"],children:[(0,s.jsx)("span",{children:x(`${u.TP}.FN_SHOW`)}),(0,s.jsx)("span",{children:x(`${u.TP}.FN_HIDE`)})]})]})})};T.propTypes={isVisible:l().bool,inValidAction:l().bool,onChangeVisibility:l().func,hasProAccountValidation:l().bool,isHiddenProduction:l().bool,isUpdating:l().bool},T.defaultProps={isVisible:!1,inValidAction:!1,onChangeVisibility:()=>void 0,hasProAccountValidation:!0,isHiddenProduction:!1,isUpdating:!1};let _=T},26611:(e,t,o)=>{"use strict";o.d(t,{A:()=>_});var s=o(95155),n=o(12115),i=o(26545),r=o(80580),a=o(96809),l=o(37222),c=o(27022);let d=null,u=async e=>{let t=(()=>
1{if(d)return d;let{createBrowserApi:e}=o(34078);return d=e()})(),s=t[(0,c.getEndpointService)((0,l.cuetvVideosList)(e)?.endpoint)]||t.default,n=(0,a.buildResolvedQuery)((0,l.cuetvVideosList)(e),s);if(n)return n.queryFn()},p=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/).*cuetv\.online.*/g,m=()=>"cuetv_"+(0,r.A)(),h=(e,t,o)=>{let s=document.createElement("style");return s.innerHTML=` 2 #${t} { 3 height: 100%; 4 width: 100%; 5} 6 7#${e} { 8 height: 100%; 9 width: 100%; 10 position: relative; 11} 12 13#${e}:hover #${o} { 14 display: block !important; 15} 16 17#${o} { 18 position: absolute; 19 display: none; 20 padding: 5px; 21 background: rgba(0, 0, 0, 0.5); 22 top: 20px; 23 left: 20px; 24} 25 26#${o} > a { 27 text-decoration: underline; 28 color: #fff; 29 font-size: 20px; 30 line-height: 20px; 31}`,s},R=(e,t,o,s,n,i,r)=>{let a=((e,t,o)=>{let s=document.createElement("iframe");return s.setAttribute("src",e),s.setAttribute("id",o),s.setAttribute("frameborder",0),s.setAttribute("webkitAllowFullScreen",1),s.setAttribute("mozallowfullscreen",1),s.setAttribute("allowFullScreen",1),s.title=t.name,s})(i,e,t),l=((e,t,o,s)=>{let n=document.createElement("a");n.setAttribute("href",s),n.setAttribute("target","_blank"),n.setAttribute("id",o);let i=document.createElement("img");i.setAttribute("src","/images/icons/cuetv-play.png"),i.classList.add("icon");let r=document.createElement("img");return r.setAttribute("src",e),r.classList.add("imgStyle"),n.appendChild(r),n.appendChild(i),n})(e?.thumbnail?.medium,0,t,n),c=((e,t)=>{let o=document.createElement("a");o.setAttribute("href",e),o.setAttribute("target","_blank"),o.setAttribute("title","Watch on CueTV"),o.innerHTML="Watch on CueTV";let s=document.createElement("div");return s.setAttribute("id",t),s.appendChild(o),s})(n,s),d=h(o,t,s),u=((e,t)=>{let o=document.createElement("style");return o.innerHTML=` 32 #${t} { 33 display: block; 34 height: 100%; 35 width: 100%; 36 text-align: center; 37 position: relative; 38 cursor: pointer; 39} 40 41#${t} .imgStyle { 42 max-height: 100%; 43 max-width: 100%; 44 width: auto; 45 height: auto; 46 position: absolute; 47 top: 0; 48 bottom: 0; 49 left: 0; 50 right: 0; 51 margin: auto; 52} 53 54#${t} .icon { 55 max-width: 45px; 56 position: absolute; 57 width: auto; 58 height: auto; 59 max-height: 45px; 60 position: absolute; 61 top: 0; 62 bottom: 0; 63 left: 0; 64 right: 0; 65 margin: auto; 66} 67 68#${e} { 69 height: 100%; 70 width: 100%; 71 position: relative; 72 text-align: center; 73}`,o})(o,t),p=document.createElement("div");return p.setAttribute("id",o),e?.is_public?(p.appendChild(a),p.appendChild(c),p.appendChild(d)):(p.appendChild(l),p.appendChild(u)),r&&(a.onload=r),p};class T extends n.Component{static #e=this.displayName="VimeoOtt";static #t=this.canPlay=e=>p.test(e);static #o=this.forceLoad=!0;componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){u({lang:"en",limit:10,page:1,video_slug:e.split("/").pop()}).then(t=>{let o=t?.data||[];if(0==o.length)return void this.props.onError("Invalid Link");if(this.duration=null,this.cueTvVideo=o[0],!this.container)return;let s=m(),n=m(),i=m(),r=`https://embed.vhx.tv/videos/${this.cueTvVideo.external_key}/?api=1&referrer=${e}&sharing=1&title=0`;if(this.cueTvVideo?.is_public){let t=R(this.cueTvVideo,s,n,i,e,r,this.props.onReady),o=h(n,s,i);this.container.appendChild(o),this.container.appendChild(t)}else{let t=R(this.cueTvVideo,s,n,i,e,r,this.props.onReady),o=h(n,s,i);this.container.appendChild(o),this.container.appendChild(t)}}).catch(e=>{console.log("resolving media failed :: ",e),this.props.onError(e)})}refreshDuration(){}play(){let e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e){this.callPlayer("setCurrentTime",e)}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){let{display:e}=this.props;return(0,s.jsx)("div",{ref:this.ref,style:{width:"100%",height:"100%",overflow:"hidden",display:e}},this.props.url)}constructor(...e){super(...e),this.callPlayer=i.callPlayer,this.duration=null,this.currentTime=null,this.secondsLoaded=null,this.cueTvVideo={},this.mute=()=>{this.setVolume(0)},this.unmute=()=>{null!==this.props.volume&&this.setVolume(this.props.volume)},this.ref=e=>{this.container=e}}}let _=T},27339:e=>{e.exports={separator:"ob_GmLfxr",itemRoot:"ob_SYWRCW"}}
73,39913:e=>{e.exports={isRetired:"ob_wih0e5",buttonLabel:"ob_pBJXN5",infoText:"ob_FGFQyA",extraInfo:"ob_FRo541",titleClass:"ob_LMAHb4",roleWithChip:"ob_FcfUqH",announcedChip:"ob_dfiePK"}},44100:(e,t,o)=>{"use strict";o.d(t,{A:()=>E});var s=o(95155),n=o(12115),i=o(12758),r=o.n(i),a=o(48149),l=o.n(a),c=o(86194),d=o(48158),u=o(74906),p=o(21911),m=o(27282),h=o(26611),R=o(52222),T=o.n(R);l().addCustomPlayer(h.A);let _=e=>{let{record:t,type:o,onThumbClick:i,showPlayButton:r,showControls:a,className:h,selfSize:R,popUp:_,customWidth:E,customHeight:A,autoplay:b,muted:P,placeholder:I,banner:f,videoClass:x,onPlay:g,onPause:C,onEnded:N}=e,S=(0,n.useRef)(null),O="thumb"===o,j=_?null:t?.thumbnail?.urls?.original,y=t?.url||t?.file?.urls?.original,k=y?.match(p.facebookMediaUrlRegex),v=(0,d.A)(),[w,D]=(0,n.useState)(b),L=y?.match(p.stagePlusMediaUrlRegex)?"stagePlus":y?.match(p.cueTvMediaUrlRegex)||l().canPlay(y)?"reactPlayer":"unknown";return(0,s.jsxs)("div",{className:(0,c.default)(_?T().rootPopup:T().root,R&&T().limitSize,!R&&T().playerWrapper,k&&T().facebookPlayerWrapper,O&&T().playerWrapperThumb,O&&T().hidePlayButton,r&&T().showPlayButton,h),ref:S,children:["stagePlus"===L?(0,s.jsx)("iframe",{title:"StagePlusPlayer",className:T().stagePlusPlayer,src:`https://player.stage-plus.com/?url=${new URL(y).origin}${new URL(y).pathname}`,width:"100%",height:"100%",frameBorder:"0",allow:"clipboard-write; encrypted-media; picture-in-picture; web-share",allowfullscreen:!0}):null,"reactPlayer"===L?(0,s.jsx)(l(),{className:(0,c.default)(T().reactPlayer,O&&T().thumbClass,y?.match(p.vimeoMediaUrlRegex)&&T().videoWrapper,x),url:y,playing:w,muted:P,controls:a&&!O,onClick:()=>i(t),light:(!!O||!!j)&&j,...R?{}:{width:k?"200":E,height:A},onStart:()=>{if(t){let{description:e,title:o}=t;v.click((0,m.tk)({videoUrl:y,description:e,title:o}),u.h0)}},onReady:()=>{f&&D(!0)},fallback:(0,s.jsx)("p",{children:"Loading...."}),onPlay:g,onPause:C,onEnded:N}):null,"unknown"===L?(0,s.jsx)(s.Fragment,{children:I}):null]})};_.propTypes={record:r().object,type:r().oneOf(["full","thumb"]),onThumbClick:r().func,showPlayButton:r().bool,showControls:r().bool,selfSize:r().bool,popUp:r().bool,customWidth:r().string,customHeight:r().string,autoplay:r().bool,muted:r().bool},_.defaultProps={type:"full",onThumbClick:()=>void 0,customHeight:"100%",customWidth:"100%",autoplay:!1,muted:!1};let E=_},49915:(e,t,o)=>{"use strict";o.d(t,{A:()=>h});var s=o(95155),n=o(12115),i=o(12758),r=o.n(i),a=o(96027),l=o(33567),c=o(78470),d=o(10043),u=o(72962),p=o.n(u);let m=e=>{let{className:t,icon:o,content:i}=e,[r,u]=n.useState(!1),m=(0,l.A)(),h=(0,d.A)(m.breakpoints.up("sm")),R=()=>{u(!1)},T=t||p().popper;return h?(0,s.jsx)(c.A,{arrow:!0,title:i,PopperProps:{className:T},children:o}):(0,s.jsx)(a.A,{onClickAway:R,children:(0,s.jsx)(c.A,{arrow:!0,title:i,PopperProps:{className:T},onClose:R,open:r,disableFocusListener:!0,disableHoverListener:!1,disableTouchListener:!0,onClick:()=>{u(!0)},children:o})})};m.propTypes={className:r().string,icon:r().node,content:r().node};let h=m},50493:e=>{e.exports={modal:"ob_JcZLYy",content:"ob_tmaqUX",title:"ob_XapiAJ",subtext:"ob_AuEXqv",formWrapper:"ob_lwxkdr"}},52222:e=>{e.exports={root:"ob_biLY2V",rootPopup:"ob_DEL74m",playerWrapper:"ob_XpkEMN",facebookPlayerWrapper:"ob_pqeQOj",reactPlayer:"ob_0CrOXw",stagePlusPlayer:"ob_XCHeFY",videoWrapper:"ob_dFf8cA",playerWrapperThumb:"ob_Ez6f2p",hidePlayButton:"ob_bjvWg7",showPlayButton:"ob_3YOouP",limitSize:"ob_GcuzkV",brokenVideo:"ob_LKAZ1y"}},53976:(e,t,o)=>{"use strict";o.d(t,{A:()=>R});var s=o(95155);o(12115);var n=o(12758),i=o.n(n),r=o(85696),a=o(19554),l=o(1084),c=o(686),d=o(6097),u=o(22377),p=o(84037),m=o.n(p);let h=e=>{let{className:t,closeModal:o,onDelete:n,title:i,text:p,description:h,actionButtonLabel:R=`${d.TP}.m_DELETE`,loading:T,buttonVariant:_,trackingSaveData:E,trackingCancelData:A}=e,{t:b}=(0,u.useTranslation)("translation"),P=b(R===`${d.TP}.m_DELETE`?`${d.TP}.m_DELETE`:R);return(0,s.jsx)(r.A,{isOpened:!0,className:t,onClose:o,type:"warning",title:(0,s.jsx)(l.A,{className:m().title,children:i}),buttons:[(0,s.jsx)(c.A,{onClick:o,style:{color:"rgb(139, 139, 139)",fontWeight:"bold",padding:"0.73rem"},trackingData:A,children:b(`${d.TP}.m_CANCEL`)},"approve-button"),(0,s.jsx)(a.A,{variant:_,onClick:n,isLoading:T,trackingData:E,children:P},"cancel-button")],description:h,children:p})};h.propTypes={closeModal:i().func.isRequired,onDelete:i().func.isRequired,title:i().string,text:i().node,actionButtonLabel:i().string,loading:i().bool,buttonVariant:i().string,className:i().string},h.defaultProps={title:"",text:"",actionButtonLabel:`${d.TP}.m_DELETE`,loading:!1};let R=h},54705:(e,t,o)=>{"use strict";o.d(t,{A:()=>S,_:()=>C});var s=o(95155),n=o(12115),i=o(86194),r=o(98134),a=o.n(r),l=o(25411),c=o.n(l),d=o(12758),u=o.n(d),p=o(33077),m=o(33567),h=o(16963),R=o(45202),T=o(71356),_=o(2456),E=o(64792),A=o(10043),b=o(35153),P=o(72091),I=o(72259),f=o(22377),x=o(96714),g=o.n(x);let C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.default,o=!!e?.isCancelled;
73return{classes:{...g(),cell:t(g().cell,o&&g().cellCancelled)},cx:t}},N=e=>{let t,{headers:o,data:i,cells:r,customElements:l,fetchFunction:d,withPagination:u,noButton:x,loading:g,tableClasses:N={}}=e,{classes:S,cx:O}=C(),{t:j}=(0,f.useTranslation)("translation"),y=(0,m.A)(),k=(0,A.A)(y.breakpoints.down("md")),[v,w]=n.useState(a()(i,"data",[])),[D,L]=n.useState(!1),[U,F]=n.useState(!0);(0,n.useEffect)(()=>{let e=a()(i,"data",[]);u||x?w(e):w(U?e.slice(0,4):e)},[i,U,u,x]),t=k?l?.card??l.row??null:l?.row??null;let{limit:V,total:$,page:M}=i;return 0===v.length?j("operabase.general.NO_RESULTS"):(0,s.jsxs)(s.Fragment,{children:[k?(0,s.jsxs)(p.Ay,{container:!0,spacing:2,children:[g&&(0,s.jsx)(P.A,{}),v&&v.length>0&&v.map(e=>(0,s.jsx)(p.Ay,{item:!0,sm:12,xs:12,children:n.cloneElement(t,{data:e})},a()(i,"id")))]}):(0,s.jsx)("div",{className:S.table,children:(0,s.jsxs)(h.A,{classes:{root:N.tableRoot},children:[(0,s.jsx)(_.A,{classes:{root:N.tableHead},children:(0,s.jsx)(E.A,{children:o&&o.length>0&&o?.map((e,t)=>(0,s.jsx)(T.A,{classes:{head:S.head,root:N.tableHeaderCell},children:e},`${a()(e,"props.id")||e}-${t}`))})}),(0,s.jsxs)(R.A,{classes:{root:O(N.tableBody,S.body)},children:[g&&(0,s.jsx)(P.A,{className:S.loadingIndicator}),v&&v.length>0&&v.map((e,o)=>t?n.cloneElement(t,{data:e,cellClass:S.cell,key:a()(e,"id")||`FbTable-${o}`}):(0,s.jsx)(E.A,{classes:{root:N.tableRow},children:r.map(t=>(0,s.jsx)(T.A,{className:S.cell,classes:{root:N.tableCell},children:c()(t)?((e,t)=>{for(let o=0;o<t.length;o++){let s=a()(e,t[o]);if(s)return s}return null})(e,t):a()(e,t,"")},a()(e,t)||a()(e,`[0].${t}`)))},a()(e,"id")||o))]})]})}),u&&(0,s.jsx)(I.A,{filters:{limit:V,total:$,page:M},fetchFunction:d}),!u&&!x&&(0,s.jsx)(b.A,{onClick:()=>{D?w(U?a()(i,"data",[]):v.slice(0,4)):(d({limit:a()(i,"total")}),L(!0)),F(!U)},className:S.seeMoreButton,children:j(U?"operabase.general.m_ARTICLES_SEE_ALL":"operabase.general.FN_SEE_LESS_TITLE")})]})};N.propTypes={data:u().object,headers:u().array,cells:u().array,customElements:u().shape({card:u().element,row:u().element}),fetchFunction:u().func,withPagination:u().bool,noButton:u().bool,loading:u().bool,tableClasses:u().shape({tableRoot:u().string,tableHead:u().string,tableHeaderCell:u().string,tableBody:u().string,tableRow:u().string,tableCell:u().string})},N.defaultProps={data:{total:0,limit:100,page:1,data:[]},headers:[],withPagination:!0,fetchFunction:()=>void 0,noButton:!1,loading:!1};let S=N},61131:(e,t,o)=>{"use strict";o.d(t,{A:()=>I});var s=o(95155),n=o(12115),i=o(75096),r=o(22822),a=o(99944),l=o(35153),c=o(48158),d=o(74906),u=o(44100),p=o(71596),m=o(21911),h=o(65222),R=o(43069),T=o(27822),_=o(27282),E=o(22377),A=o(2251),b=o.n(A);let P={section:d.bP.HELP_CENTER,component:d.$j.NAVIGATE_CTA},I=e=>{let{helpInfo:t}=e,{t:o}=(0,E.useTranslation)("translation"),A=(0,c.A)(),{helpUrl:I,knowledgeBaseLink:f,selectedTab:x}=t,{isHelpInfoModal:g,setIsHelpInfoModal:C,helpInfoData:N,openHelpModal:S}=(0,T.b9)(),[O,j]=(0,n.useState)(((0,R.Ri)(h.FIRST_EDIT)?.toString()!=="true")??!1),y=(0,n.useMemo)(()=>N.helpUrl===m.ARTIST_EDIT_HELP_VIDEO,[N]),k=(0,n.useMemo)(()=>({video_url:N.helpUrl,tab:x}),[x,N]),v=()=>{C(!1)};return I||f?(0,s.jsxs)(s.Fragment,{children:[t?.helpUrl&&(0,s.jsxs)("div",{className:b().showHelp,onClick:()=>S(I,f),role:"presentation",children:[(0,s.jsx)("div",{className:b().helpText,children:o(`${m.TP}.FN_HELP`)}),(0,s.jsx)(i.A,{className:b().icon,fontSize:"small"})]}),!t?.helpUrl&&(0,s.jsx)("div",{className:b().showHelp,children:(0,s.jsxs)("a",{className:b().knowledgeBaseLink,href:f,target:"_blank","aria-label":"knowledgebase",onClick:()=>{A.click({...P,meta:{url:f}})},children:[(0,s.jsx)(E.Trans,{ns:"translation",i18nKey:`${m.TP}.VISIT_HELP_CENTER`,components:{helpLink:(0,s.jsx)("div",{className:b().link})}}),(0,s.jsx)(i.A,{fontSize:"small"})]})}),g&&(0,s.jsx)(p.A,{className:b().modal,isModalOpen:!0,onClose:()=>{v(),A.click((0,_.zD)((0,_.mL)(y),k),d.h0)},disableBackdropClick:!0,isMedia:!0,children:(0,s.jsxs)("div",{className:b().popUpContainer,children:[(0,s.jsx)("div",{className:b().doNotShow,children:(0,s.jsx)(a.A,{control:(0,s.jsx)(r.A,{checked:O,onClick:e=>{e?.target?.checked?((0,R.TV)(h.FIRST_EDIT,!1),j(!0),A.click((0,_.XS)((0,_.mL)(y),k),d.h0)):((0,R.TV)(h.FIRST_EDIT,!0),j(!1))},color:"secondary"}),label:o(`${m.TP}.FN_DO_NOT_SHOW_AGAIN`)})}),(0,s.jsx)(u.A,{type:"full",record:{url:N.helpUrl},customWidth:"100%",customHeight:"500px",showControls:!0,popUp:!0,autoplay:!0}),(0,s.jsxs)("div",{className:b().skip,children:[(0,s.jsx)("div",{className:b().knowledgeLink,children:(0,s.jsx)(E.Trans,{ns:"translation",i18nKey:`${m.TP}.VISIT_HELP_CENTER`,components:{helpLink:(0,s.jsx)("a",{className:b().link,href:N.knowledgeBaseLink,target:"_blank","aria-label":"knowledgebase"})}})}),(0,s.jsx)(l.A,{className:b().skipButton,variant:"text",onClick:()=>{v(),A.click((0,_.qw)((0,_.mL)(y),k),d.h0)},children:o(`${m.TP}.FN_SKIP`)})]})]})})]}):null}},62329:(e,t,o)=>{"use strict";var s=o(46671);o.o(s,"debounce")&&o.d(t,{debounce:function(){return s.debounce}})},67336:e=>{e.exports={selectField:"ob_6cY5tT"}},67774:e=>{e.exports={chip:"ob_sJS02l",icon:"ob_84YhJo",leftIcon:"ob_Hs7QZ6",rightIcon:"ob_XMzwAR",archived:"ob_9SEZsa",unverified:"ob_J7LMSE",verified:"ob_sAPTxe",cancelled:"ob_t5hIiQ",blueChip:"ob_VT
73S0s7"}},68079:e=>{e.exports={tableRow:"ob_A8uPuT",cell:"ob_OQkOVa",cellActions:"ob_WQVSVG",cellWithoutBorder:"ob_U3Ago1",info:"ob_vuK51F",role:"ob_yjGLjn",privacyAction:"ob_2j1t46",isRetired:"ob_7Ekrus",buttonLabel:"ob_s7mYof",infoText:"ob_C6gm1W",extraInfo:"ob_IeiBg4",roleWithChip:"ob_JatoP0",announcedChip:"ob_yPCU4M"}},69054:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var s=o(95155);o(12115);var n=o(86973),i=o(48158),r=o(19420),a=o(88447),l=o.n(a);let c=function(e){let{children:t,trackingData:o,skipTracking:a=!1,onClick:c,...d}=e,u=(0,i.A)(),p={root:(0,r.j3)(o,a),selected:l().selectedItem};return(0,s.jsx)(n.A,{classes:p,onClick:e=>{c&&c(e),o&&Object.keys(o).length&&u.click(o)},...d,children:t})}},69821:e=>{e.exports={cardBox:"ob_Mw5Gg7"}},71027:e=>{e.exports={root:"ob_EpL4eT",icon:"ob_Fa0DmH",action:"ob_nxcYxI",addLink:"ob_uZ4wc6"}},72091:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o(95155);o(12115);var n=o(4474),i=o(86194),r=o(21911),a=o(92104),l=o.n(a);let c=e=>{let{className:t,variant:o,...a}=e,c=o===r.LOADER_VARIANTS.PRIMARY?l().primary:l().secondary;return(0,s.jsx)("div",{className:(0,i.default)(l().root,c,t),children:(0,s.jsx)(n.A,{...a})})};c.defaultProps={variant:r.LOADER_VARIANTS.SECONDARY};let d=c},72259:(e,t,o)=>{"use strict";o.d(t,{A:()=>T});var s=o(95155);o(12115);var n=o(12758),i=o.n(n),r=o(87647),a=o(48158),l=o(74906),c=o(84903),d=o.n(c),u=o(12634),p=o(21911),m=o(98435),h=o.n(m);let R=e=>{let{variant:t,filters:o,fetchFunction:n,onPageChange:i,renderItem:c}=e,m=(0,u.A)(),R=Math.ceil(o.total/o.limit),T=void 0!==c,_=(0,a.A)(),E=t===p.PAGINATION_VARIANTS.PRIMARY?"rgb(0, 103, 197)":d().colors.primary;return o.total?(0,s.jsx)("div",{className:h().root,style:{"--fb-pagination-selected-border-color":E},children:(0,s.jsx)(r.A,{count:R,page:o.page,color:"primary",showFirstButton:!0,showLastButton:!0,...!T&&{onChange:(e,t)=>
73{n({limit:o.limit,page:t}),i(),m.scrollTo(),_.click({section:l.bP.PAGINATION,meta:{page:t||1}})}},...T&&{renderItem:c}})}):null};R.propTypes={variant:i().string,fetchFunction:i().func,onPageChange:i().func,filters:i().shape({limit:i().number,page:i().number,total:i().number})},R.defaultProps={variant:p.PAGINATION_VARIANTS.SECONDARY,fetchFunction:()=>void 0,onPageChange:()=>void 0,filters:{limit:20,page:1,total:0}};let T=R},72962:e=>{e.exports={popper:"ob_Kqn7iF",tooltip:"ob_ceKxDn"}},77846:(e,t,o)=>{"use strict";o.d(t,{A:()=>R});var s=o(95155);o(12115);var n=o(12758),i=o.n(n),r=o(51247),a=o(78617),l=o(19554),c=o(21911),d=o(22377),u=o(3840),p=o(71027),m=o.n(p);let h=e=>{let{icon:t,message:o,action:n}=e,{t:i}=(0,d.useTranslation)("translation");return o?(0,s.jsxs)("div",{className:m().root,children:[(0,s.jsx)("div",{className:m().iconWrapper,children:t===c.ICON_TYPES.SEARCH?(0,s.jsx)(a.A,{className:m().icon}):(0,s.jsx)(r.A,{className:m().icon})}),(0,s.jsx)("div",{children:o}),n&&(0,s.jsxs)("div",{children:[n?.text?n.text:i(`${c.TP}.FN_CLICK_HERE_TO`),(0,s.jsxs)("span",{className:m().action,onClick:n?.onClick,children:[n?.href&&(0,s.jsx)(u.A,{className:m().addLink,href:n?.href,children:n?.label}),n?.type==="btn"?(0,s.jsx)(l.A,{type:"submit",children:n?.label}):(0,s.jsx)("span",{children:n?.label})]})]})]}):null};h.propTypes={message:i().string.isRequired,icon:i().string,action:i().shape({label:i().string,text:i().string,onClick:i().func})};let R=h},81867:e=>{e.exports={confirmModal:"ob_06ZUNb",repertoireContainer:"ob_tJIrfW"}},84037:e=>{e.exports={title:"ob_XKWKut"}},88447:e=>{e.exports={selectedItem:"ob_0Fh8sf"}},91789:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>eO});var s=o(95155),n=o(12115),i=o(46671),r=o(12758),a=o.n(r),l=o(65062),c=o(27955),d=o(32340),u=o(61131),p=o(53976),m=o(54705),h=o(74906),R=o(77846),T=o(99447),_=o(21911),E=o(4294),A=o(6097),b=o(61634),P=o(2248),I=o(49484),f=o(12634),x=o(54589),g=o(8987),C=o(28809);let N=e=>{let t=e?.some(e=>e?.id===-1),o=null;o=t?(0,i.groupBy)(e,"work.composer.id"):(0,i.reduce)(e,(e,t)=>{let o=(0,C.XU)(t?.work?.creators),s=o.map(e=>e?.profile?.id).sort().join("_"),n=o[0];return n?(0,i.has)(e,s)?{...e,[s]:[...e[s],{...t,work:{...t?.work,composer:n}}]}:{...e,[s]:[{...t,work:{...t?.work,composer:n}}]}:e},{});let s={};for(let e in o){let t=(0,i.get)(o,e),n=(0,i.get)(t,"[0].work.composer"),r=(0,i.groupBy)(t,"work.id"),a={};for(let e in r){let t=(0,i.get)(r,e),o=(0,i.get)(t,"[0].work");(0,i.set)(a,e,{work:o,data:(0,i.toArray)(t)})}(0,i.set)(s,e,{composer:n,data:(0,i.sortBy)((0,i.toArray)(a),e=>e?.work?.original_name?.toUpperCase())})}return(0,i.sortBy)((0,i.toArray)(s),e=>e?.composer?.profile?.shortName?.toUpperCase())};var S=o(33077),O=o(65951),j=o(17165),y=o(97862),k=o(46800),v=o(22377),w=o(39938),D=o(62176),L=o(27339),U=o.n(L);let F={profession:{name:"profession_id",label:`${_.TP}.m_JOBTYPE`,placeholder:`${_.TP}.m_JOBTYPE`,value:void 0},role:{name:"role_id",label:`${_.TP}.FN_CHARACTER_ROLE`,placeholder:`${_.TP}.FN_CHARACTER_ROLE`,value:void 0},instrumentRole:{name:"instrumentRole",label:`${_.TP}.FN_INSTRUMENT_ROLE`,placeholder:`${_.TP}.FN_INSTRUMENT_ROLE`,value:void 0}},V=e=>{let{professionsOptions:t,rolesOptions:o,onAddOption:n,professionsDisabled:i,rolesDisabled:r,isCreatable:a,isProfessionCreatable:l,usePrimaryVariants:c,instrumentRoles:d,onRoleTextChange:u,onProfessionTextChange:p,isOverModal:m,values:h}=e,{t:R}=(0,v.useTranslation)("translation");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.Ay,{item:!0,xs:!0,children:(0,s.jsx)(O.D0,{instanceId:F.profession.name,name:F.profession.name,options:t,label:R(`${_.TP}.m_JOBTYPE`),component:y.Ay,variant:c?_.AUTOCOMPLETE_VARIANTS.PRIMARY:_.AUTOCOMPLETE_VARIANTS.SECONDARY,onChange:e=>n({...e,type:"profession"}),onInputTextChange:e=>p&&p(e),preventDefaultOnChange:!0,isDisabled:i,isCreatable:l||a,fullWidth:c,isOverModal:m},F.profession.name)}),(0,s.jsx)(S.Ay,{item:!0,sm:1,xs:12,classes:{item:U().separator},children:R(`${_.TP}.FN_OR`)}),(0,s.jsx)(S.Ay,{item:!0,xs:!0,children:(0,s.jsx)(O.D0,{instanceId:F.role.name,name:F.role.name,options:o,label:R(`${_.TP}.FN_CHARACTER_ROLE`),component:y.Ay,onInputTextChange:e=>
73u(e,h?.work_id),variant:c?_.AUTOCOMPLETE_VARIANTS.PRIMARY:_.AUTOCOMPLETE_VARIANTS.SECONDARY,onChange:e=>n({...e,type:"role"}),isDisabled:r,isCreatable:a,fullWidth:c,isOverModal:m},F.role.name)}),(0,s.jsx)(S.Ay,{item:!0,sm:1,xs:12,classes:{item:U().separator},children:R(`${_.TP}.FN_OR`)}),(0,s.jsx)(S.Ay,{item:!0,xs:!0,children:(0,s.jsx)(O.D0,{instanceId:F.instrumentRole.name,name:F.instrumentRole.name,options:d,label:R(`${_.TP}.FN_INSTRUMENT_ROLE`),component:y.Ay,onInputTextChange:e=>u(e,h?.work_id),variant:c?_.AUTOCOMPLETE_VARIANTS.PRIMARY:_.AUTOCOMPLETE_VARIANTS.SECONDARY,onChange:e=>n({...e,type:"instrumentRole"}),isDisabled:r,isCreatable:a,fullWidth:c,isOverModal:m},F.instrumentRole.name)})]})};V.propTypes={professionsOptions:a().array,rolesOptions:a().array,onAddOption:a().func.isRequired,isCreatable:a().bool,isProfessionCreatable:a().bool,usePrimaryVariants:a().bool,isOverModal:a().bool},V.defaultProps={professionsOptions:[],rolesOptions:[],isCreatable:!1,isProfessionCreatable:!1,isOverModal:!1};let $=(e,t,o)=>!!t||o({message:`${_.TP}.FN_REQUIRED_FIELD`,path:e});(0,j.Ik)().shape({[F.role.name]:(0,j.Ik)().nullable().test(function(e){return!!(0,D.get)(this.parent,F.profession.name)||$(F.role.name,e,this.createError)}),[F.profession.name]:(0,j.Ik)().nullable().test(function(e){return!!(0,D.get)(this.parent,F.role.name)||$(F.profession.name,e,this.createError)})});let M={composer:{name:"composer_id",label:`${_.TP}.m_COMPOSER`,placeholder:`${_.TP}.SORT_WORK_COMPOSER_NAME`,value:void 0,productionName:"work.composer"},work:{name:"work_id",label:`${_.TP}.SEARCH_PRODUCTION`,placeholder:`${_.TP}.SEARCH_PRODUCTION`,value:void 0,productionName:"work"},readiness:{name:"status",label:`${_.TP}.FN_ROLE_READINESS`,value:void 0},...F},W=j.Ik().shape({[M.composer.name]:j.Ik().required(`${_.TP}.FN_REQUIRED_FIELD`).nullable(),[M.work.name]:j.Ik().required(`${_.TP}.FN_REQUIRED_FIELD`).nullable(),[M.readiness.name]:j.Ik().required(`${_.TP}.FN_REQUIRED_FIELD`).nullable(),[M.profession.name]:j.Ik().test("required",`${_.TP}.FN_REQUIRED_FIELD`,function(e){return e||this.parent[M.role.name]||this.parent[M.instrumentRole.name]}).nullable(),[M.role.name]:j.Ik().test("required",`${_.TP}.FN_REQUIRED_FIELD`,function(e){return e||this.parent[M.profession.name]||this.parent[M.instrumentRole.name]}).nullable(),[M.instrumentRole.name]:j.Ik().test("required",`${_.TP}.FN_REQUIRED_FIELD`,function(e){return e||this.parent[M.profession.name]||this.parent[M.role.name]}).nullable()}),B={[M.composer.name]:"",[M.work.name]:"",[M.profession.name]:"",[M.role.name]:"",[M.readiness.name]:""},Y=e=>{let{formRef:t,works:o,loadingAggValue:n,onChange:i,professions:r,roles:a,getWorks:l,usePrimaryVariants:c,onFormSubmit:d,instrumentRoles:u,onRoleTextChange:p,onProfessionTextChange:m}=e,{t:h}=(0,v.useTranslation)("translation"),R=[{value:_.repertoireStatuses.PREPARED,label:h(`${_.TP}.FN_ROLE_PREPARED`)},{value:_.repertoireStatuses.UNPREPARED,label:h(`${_.TP}.FN_ROLE_UNPREPARED`)}];return(0,s.jsx)(O.l1,{initialValues:B,validationSchema:W,onSubmit:(e,t)=>{let{setSubmitting:o}=t;d?d(e,{setSubmitting:o}):o(!1)},enableReinitialize:!0,innerRef:t,children:e=>{let{setValues:t,setFieldValue:d,values:T}=e;return(0,s.jsx)(O.lV,{children:(0,s.jsxs)(S.Ay,{container:!0,spacing:2,children:[(0,s.jsx)(w.A,{searchWorkFilters:(e,t,o)=>l(t,o),composerField:M.composer,workField:M.work,works:o,loadingValue:n,setFieldValue:d,setValues:t,values:T,preventWorkSetValues:!0,onWorkChange:e=>{i&&i(M.work.name,e),t({...T,[M.profession.name]:"",[M.role.name]:"",[M.work.name]:e,[M.composer.name]:{label:(0,k.$1)(e)}})},composerGridParams:c?{md:6,sm:6,xs:12}:void 0,workGridParams:c?{xs:12}:void 0,buttonVariant:_.BUTTON_VARIANTS.PRIMARY,indicatorVariant:_.INDICATOR_VARIANTS.PRIMARY,workFieldVariant:c?_.AUTOCOMPLETE_VARIANTS.PRIMARY:_.AUTOCOMPLETE_VARIANTS.SECONDARY,isOverModal:c}),(0,s.jsx)(S.Ay,{item:!0,xs:12,children:(0,s.jsx)(S.Ay,{container:!0,spacing:2,justifyContent:"flex-start",alignItems:"flex-start",children:(0,s.jsx)(V,{onAddOption:e=>{switch(e?.type){case"profession":t({...T,[F.profession.name]:e,[F.role.name]:null,[F.instrumentRole.name]:null});break;case"role":t({...T,[F.profession.name]:null,[F.role.name]:e,[F.instrumentRole.name]:null});break;case"instrumentRole":t({...T,[F.profession.name]:null,[F.role.name]:null,[F.instrumentRole.name]:e})}},professionsOptions:r,rolesOptions:a,instrumentRoles:u,values:T,rolesDisabled:!T[M.work.name]?.value,usePrimaryVariants:c,onRoleTextChange:p,onProfessionTextChange:m,isProfessionCreatable:!0,isOverModal:c})})}),(0,s.jsx)(S.Ay,{item:!0,xs:5,children:(0,s.jsx)(O.D0,{name:M.readiness.name,instanceId:M.readiness.name,label:h(M.readiness.label),options:R,component:y.Ay,variant:c?_.AUTOCOMPLETE_VARIA
73NTS.PRIMARY:_.AUTOCOMPLETE_VARIANTS.SECONDARY,indicatorVariant:c?_.INDICATOR_VARIANTS.PRIMARY:_.INDICATOR_VARIANTS.SECONDARY,fullWidth:c,isOverModal:c})})]})})}})};Y.propTypes={formRef:a().object.isRequired,onChange:a().func.isRequired,works:a().array,loadingAggValue:a().string,professions:a().array,roles:a().array,getWorks:a().func.isRequired,usePrimaryVariants:a().bool,onFormSubmit:a().func};var H=o(15082),q=o(78715),G=o(69277),z=o(89921),Q=o(992),K=o(68355),J=o(62329),X=o(88754),Z=o(50493),ee=o.n(Z);let et=e=>e?.workRoleProfessions?.some(function(){let{profession:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?.id===_.SINGER_PROFESSION_TYPE_ID||e?.parentProfession?.id===_.SINGER_PROFESSION_TYPE_ID}),eo=e=>e?.workRoleProfessions?.some(function(){let{profession:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?.id===_.INSTRUMENTALIST_PROFESSION_TYPE_ID||e?.parentProfession?.id===_.INSTRUMENTALIST_PROFESSION_TYPE_ID}),es=e=>{let{profile:t,onClose:o,getRepertoireList:r,trackHubspotForm:a,trackingData:c}=e,{t:u}=(0,v.useTranslation)("translation"),p=(0,n.useRef)(),m=(0,b.G4)(),R=function(e){let t=function(e){let t=(0,b.G4)();return(e,o,s)=>t((0,X.productionAggregations)({aggregation_type:e,...o?{aggregation_query:o}:{},...s||{}}))}(0);return(0,J.debounce)(t,300)}(q.PRODUCTIONS_AGGREGATIONS),{workAgg:T}=_.performancesAggregationTypes,A=t?.id,[f,x]=(0,n.useState)(""),[g,N]=(0,n.useState)({workId:null,query:""}),[O,j]=(0,n.useState)({query:"",composerId:null}),{data:y=[]}=(0,b.IT)((0,P.profileRepertoireList)({id:A,show_hidden:!0,as_edit:!0,limit:9999},{enabled:!!A,select:e=>e?.data||[]})),w=(0,i.filter)(y,e=>E.ZA.includes(e?.status)&&e.source===E._W.USER)?.length,{data:D,isFetching:L}=(0,b.IT)((0,z.professionsList)({query:f,crew_role_validation_status:"approved",tag:"-voice-types,-instruments",validation_status:G.EDIT_ENTITY_SEARCH,page:1,limit:1e3})),{data:U}=(0,b.IT)((0,Q.workRolesList)({work_id:g.workId,query:g.query,is_standard:!0,page:1,limit:1e3},{enabled:!!g.workId})),{data:F,isFetching:V}=(0,b.IT)((0,Q.worksList)({query:O.query,work_creator_id:O.composerId?`a${O.composerId}`:void 0,exclude_concerts:!0,validation_status:G.EDIT_WITH_PROCESSING,limit:20},{enabled:!!O.query||!!O.composerId})),{mutate:$,isLoading:W}=(0,b.n_)(P.profileRepertoireCreate,(0,d.r)(u,{successKey:`${_.TP}.FN_SUCCESS_CREATING_DATA`,errorKey:`${_.TP}.FN_ERROR_CREATING_DATA`,errorParams:{endpoint:`profiles/${A}/repertoire`},onSuccess:()=>{"function"==typeof r&&r(),o(),a()}})),{mutateAsync:B,isPending:Z}=(0,b.n_)(z.professionCreate),es=(0,n.useMemo)(()=>(0,I.createSelectFieldOptions)(D?.data||[],"id","name",{type:"profession"},!0),[D]),en=(0,n.useMemo)(()=>{let e=(U?.data||[]).filter(et);return(0,I.createSelectFieldOptions)(e,"id","name",{type:"role"},!0)},[U]),ei=(0,n.useMemo)(()=>{let e=(U?.data||[]).filter(eo);return(0,I.createSelectFieldOptions)(e,"id","name",{type:"instrumentRole"},!0)},[U]),er=(0,n.useMemo)(()=>(F?.data||[]).map(e=>({...e,value:e.id,label:(0,k.uC)(e,!0,!0),composers:(0,C.XU)(e?.creators)})),[F]),ea=async e=>{if(!A)return;let t=(0,K.g9)(e),o=e?.[M.profession.name],s=t?.profession_id;if((0,i.get)(o,"__isNew__"))try{let e=await B({data:{name:o.label}}),t=e?.data||e;if(!t?.id)throw Error(u(`${_.TP}.FN_ERROR_CREATING_DATA`));s=t.id}catch{(0,l.M8)(u(`${_.TP}.FN_ERROR_CREATING_DATA`),{variant:"error"});return}let n={profile:{id:A},work:{id:t?.work_id},...t?.role_id?{workRole:{id:t?.role_id}}:{},...t?.instrumentRole?{workRole:{id:t?.instrumentRole}}:{},...s?{profession:{id:s}}:{},status:t?.status,source:"user"};$({params:{id:A},data:n})},el=(0,n.useMemo)(()=>(0,i.debounce)((e,t)=>{N({workId:t?.id||null,query:e})},300),[]),ec=(0,n.useMemo)(()=>(0,i.debounce)(e=>{x(e||"")},300),[]),ed=async(e,t)=>{let o=(0,i.get)(t,"value");switch(e){case M.work.name:if(o&&(N(e=>({workId:o,query:e.query})),!p?.current?.values[M.composer.name])){let e=await m((0,Q.worksList)({id:o,limit:1})),t=(0,i.get)(e,"data.[0].composers.[0]");t&&p.current.setFieldValue(M.composer.name,(0,I.getOption)(t))}break;case M.composer.name:o&&R(T,"",{limit:9999,composer_id:o})}},eu=(0,n.useCallback)(()=>V?M.work.name:L?M.profession.name:"",[V,L]),ep=(0,n.useMemo)(()=>(0,i.debounce)((e,t)=>{j({query:e||"",composerId:t||null})},300),[]);return(0,s.jsx)(H.A,{onClose:o,disableBackdropClick:!0,isOpened:!0,title1:u(`${_.TP}.ADD_FUTURE_REPERTOIRE`),title2:u(`${_.TP}.REMAINING_REPERTOIRE_TO_ADD`,{added:w,total:5}),buttonText:u(`${_.TP}.m_SAVE`),submitFunc:()=>
73{p.current.submitForm()},className:ee().modal,buttonVariant:_.BUTTON_VARIANTS.PRIMARY,isLoading:W||Z,hasVerticalTitles:!0,trackingData:{...c,component:h.$j.FUTURE_REPERTOIRE_MODAL,subComponent:h.kU.ADD_CTA},children:(0,s.jsxs)(S.Ay,{container:!0,className:ee().content,spacing:1,children:[(0,s.jsx)(S.Ay,{item:!0,xs:12,className:ee().title,children:u(`${_.TP}.FN_ADD_FUTURE_REPERTOIRE_TITLE`)}),(0,s.jsx)(S.Ay,{item:!0,xs:12,className:ee().subtext,children:u(`${_.TP}.FN_ADD_FUTURE_REPERTOIRE_DESC`)}),(0,s.jsx)(S.Ay,{item:!0,xs:12,className:ee().formWrapper,children:(0,s.jsx)(Y,{formRef:p,works:er,onRoleTextChange:el,onProfessionTextChange:ec,onChange:ed,loadingAggValue:eu(),professions:es,roles:en,instrumentRoles:ei,getWorks:ep,onFormSubmit:ea,usePrimaryVariants:!0})})]})})};es.propTypes={profile:a().object,onClose:a().func,getRepertoireList:a().func,trackHubspotForm:a().func,trackingData:a().object};let en=(0,n.memo)(es);var ei=o(81867),er=o.n(ei),ea=o(86194),el=o(73491),ec=o(1352),ed=o(18547),eu=o(96286),ep=o(50468),em=o(64776),eh=o(67336),eR=o.n(eh);let eT=e=>{let{data:t,onStatusChange:o,onDelete:i,isFutureRepertoire:r,trackingData:a}=e,{t:l}=(0,v.useTranslation)("translation"),{confirmProAccount:c,confirmSpecialPermission:d,hasPermissions:{isFutureRepEdit:u}}=(0,g.o)(),p=t?.id,m=[{value:_.repertoireStatuses.PAST,label:l(`${_.TP}.ACTIVE`)},{value:_.repertoireStatuses.RETIRED,label:l(`${_.TP}.RETIRED`)}],R=[{value:_.repertoireStatuses.PREPARED,label:l(`${_.TP}.FN_ROLE_PREPARED`)},{value:_.repertoireStatuses.UNPREPARED,label:l(`${_.TP}.FN_ROLE_UNPREPARED`)}],[T,E]=(0,n.useState)(()=>{let e=t?.status;return r?e===_.repertoireStatuses.UNPREPARED?R[1]:R[0]:t?.status===_.repertoireStatuses.RETIRED?m[1]:m[0]}),A=e=>{o(p,e?.value),E(e)},b=()=>i(t);return(0,s.jsxs)(S.Ay,{container:!0,alignItems:"center",spacing:1,children:[(0,s.jsx)(S.Ay,{item:!0,children:(0,s.jsx)(em.A,{field:{name:"status",value:T},trackingData:a,onChange:r?d(u,A):c(A),options:r?R:m,className:eR().selectField})}),_.futureRepertoireStatuses.includes(t.status)&&(0,s.jsx)(S.Ay,{item:!0,children:(0,s.jsx)(ep.A,{trackingData:{...a,subComponent:h.kU.DELETE_CTA},onClick:r?d(u,b):c(b)})})]})};eT.propTypes={data:a().object,onStatusChange:a().func,onDelete:a().func,isFutureRepertoire:a().bool};var e_=o(11378),eE=o(686),eA=o(43671),eb=o(39913),eP=o.n(eb);let eI=e=>{let{t,data:{data:o},onSwitchVisibility:n,onStatusChange:i,confirmProAccount:r,onDelete:a,isFutureRepertoire:l,trackingData:c}=e,{t:d}=(0,v.useTranslation)("translation"),u=o?.reduce((e,t)=>{let{work:o,data:s}=t,n=s?.length;return[...e,...s?.map((e,t)=>({work:o,role:e,roleName:(e=>{let t=e?.workRole?"workRole":"profession";return e?.[t]?.name||e?.[t]?.reference})(e),voiceType:e?.workRole?.profession?.name,parentProfession:e?.profession?.isCrewRole&&!e?.workRole?e?.profession?.parentProfessions?.map(e=>e.profession?.name).filter(Boolean).join(", "):null,status:e?.status,workRowSpan:n,renderWorkCell:0===t}))]},[]);return(0,s.jsx)(s.Fragment,{children:u?.map((e,o)=>{let{work:u}=e,p=u?.original_name||u?.name||"";return(0,s.jsx)(e_.A,{children:(0,s.jsxs)(S.Ay,{container:!0,spacing:1,justifyContent:"space-between",padding:2,direction:"row",children:[(0,s.jsx)(S.Ay,{container:!0,item:!0,spacing:1,direction:"column",children:(0,s.jsxs)(S.Ay,{item:!0,children:[(0,s.jsx)(eA.default,{className:eP().titleClass,size:"small",children:t(`${_.TP}.m_COMPOSER`)}),(0,s.jsx)("div",{className:eP().infoText,children:(0,C.oi)(e?.work?.creators)})]})}),(0,s.jsxs)(S.Ay,{item:!0,children:[(0,s.jsx)(eA.default,{className:eP().titleClass,size:"small",children:t(`${_.TP}.FN_WORK_TITLE_COMPOSER_TITLE`)}),(0,s.jsxs)("div",{className:eP().bold,children:[(0,s.jsx)("p",{className:eP().infoText,children:p}),u?.name!==p&&(0,s.jsx)("p",{className:eP().extraInfo,children:u?.name})]})]}),(0,s.jsxs)(S.Ay,{container:!0,item:!0,justifyContent:"space-between",children:[(0,s.jsxs)(S.Ay,{item:!0,children:[(0,s.jsx)(eA.default,{className:eP().titleClass,size:"small",children:t(`${_.TP}.m_ROLE`)}),(0,s.jsxs)("div",{className:eP().roleWithChip,children:[(0,s.jsxs)("div",{className:(0,ea.default)({[eP().isRetired]:e?.role?.status===_.repertoireStatuses.RETIRED}),children:[(0,s.jsx)("p",{className:eP().infoText,children:e?.roleName}),e?.voiceType&&(0,s.jsx)("p",{className:eP().extraInfo,children:e?.voiceType}),e?.parentProfession&&(0,s.jsx)("p",{className:eP().extraInfo,children:e?.parentProfession})]}),!l&&e?.role?.status==="announced"&&(0,s.jsx)(ed.A,{blueChip:!0,className:eP().announcedChip,children:(0,s.jsx)(eu.Ay,{size:"10",children:d(`${_.TP}.FN_ANNOUNCED`)})})]})]}),(0,s.jsx)(S.Ay,{item:!0,children:(0,s.jsx)(eT,{data:e?.role,onStatusChange:i,confirmProAccount:r,onDelete:a,isFutureRepertoire:l,trackingData:{...c,component:h.$j.ROLE_SWITCH,meta:{isFutureRepertoire:l,roleId:e?.role?.id,workId:e?.work?.id}}})})]}),(0,s.jsxs)(S.Ay,{item:!0,children:[(0,s.jsx)(eA.default,{className:eP().titleClass,size:"small",children:t(`${_.TP}.FN_PRIVACY_LABEL`)}),(0,s.jsx)("div",{children:e?.role.privacyAttribute?.id===_.PRIVACY_ATTRIBUTE_IDS.PRIVATE?(0,s.jsx)(eE.A,{startIcon:(0,s.jsx)(ec.A,{}),onClick:()=>n(e?.role,_.PRIVACY_ATTRIBUTE_IDS.PUBLIC),classes:{label:eP().buttonLabel},trackingData:{...c,component:h.$j.ROLE_SWITCH,subComponent:h.kU.PRIVATE},children:t(`${_.TP}.PRIVACY_PRIVATE`)}):(0,s.jsx)(eE.A,{startIcon:(0,s.jsx)(el.A,{}),onClick:()=>n(e?.role,_.PRIVACY_ATTRIBUTE_IDS.PRIVATE),classes:{label:eP().buttonLabel},trackingData:{...c,component:h.$j.PRIVACY_SELECTOR,subComponent:h.kU.PUBLIC},children:t(`${_.TP}.PRIVACY_PUBLIC`)})})]})]})},`${e.id}-${o}`)})})};eI.propTypes={t:a().func,data:a().object,onDelete:a().func,onSwitchVisibility:a().func,onStatusChange:a().func,confirmProAccount:a().func,isFutureRepertoire:a().bool};var ef=o(71356),ex=o(64792),eg=o(68079),eC=o.n(eg);let eN=e=>{let{t,data:{data:o},onSwitchVisibility:n,onStatusChange:i,confirmProAccount:r,onDelete:a,isFutureRepertoire:l,trackingData:c}=e,{t:d}=(0,v.useTranslation)("translation"),u=o.reduce((e,t)=>
73{let{work:o,data:s}=t,n=s.length;return[...e,...s.map((e,t)=>({work:o,role:e,roleName:(e=>{let t=e?.workRole?"workRole":"profession";return e?.[t]?.name||e?.[t]?.reference})(e),voiceType:e?.workRole?.profession?.name,parentProfession:e?.profession?.isCrewRole&&!e?.workRole?e?.profession?.parentProfessions?.map(e=>e.profession?.name).filter(Boolean).join(", "):null,status:e?.status,workRowSpan:n,renderWorkCell:0===t}))]},[]),p=u?.length;return(0,s.jsx)(s.Fragment,{children:u?.map((e,o)=>{let{work:u}=e,m=u?.original_name||u?.name||"";return(0,s.jsxs)(ex.A,{className:eC().tableRow,children:[0===o&&(0,s.jsx)(ef.A,{className:(0,ea.default)(eC().cell,eC().info,{[eC().isRetired]:e?.role?.status===_.repertoireStatuses.RETIRED}),rowSpan:p,children:(0,C.oi)(e?.work?.creators)}),e.renderWorkCell&&(0,s.jsxs)(ef.A,{className:(0,ea.default)(eC().cell,eC().info,{[eC().cellWithoutBorder]:o<p-e?.workRowSpan&&e?.workRowSpan!==p,[eC().isRetired]:e?.role?.status===_.repertoireStatuses.RETIRED}),rowSpan:e?.workRowSpan,children:[(0,s.jsx)("p",{className:eC().infoText,children:m}),u?.name!==m&&(0,s.jsx)("p",{className:eC().extraInfo,children:u?.name})]}),(0,s.jsx)(ef.A,{className:(0,ea.default)(eC().cell,eC().role,{[eC().cellWithoutBorder]:o<p-1,[eC().isRetired]:e?.role?.status===_.repertoireStatuses.RETIRED}),children:(0,s.jsxs)("div",{className:eC().roleWithChip,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:eC().infoText,children:e?.roleName}),e?.voiceType&&(0,s.jsx)("p",{className:eC().extraInfo,children:e?.voiceType}),e?.parentProfession&&(0,s.jsx)("p",{className:eC().extraInfo,children:e?.parentProfession})]}),!l&&e?.role?.status==="announced"&&(0,s.jsx)(ed.A,{blueChip:!0,className:eC().announcedChip,children:(0,s.jsx)(eu.Ay,{size:"10",textTransform:"capitalize",children:d(`${_.TP}.FN_ANNOUNCED`)})})]})}),(0,s.jsx)(ef.A,{className:(0,ea.default)(eC().cell,eC().cellActions,{[eC().cellWithoutBorder]:o<p-1}),children:(0,s.jsx)(eT,{data:e?.role,onStatusChange:i,confirmProAccount:r,onDelete:a,isFutureRepertoire:l,trackingData:{...c,component:h.$j.ROLE_SWITCH,meta:{isFutureRepertoire:l,roleId:e?.role?.id,workId:e?.work?.id}}})}),(0,s.jsx)(ef.A,{className:(0,ea.default)(eC().cell,eC().privacyAction,{[eC().cellWithoutBorder]:o<p-1}),children:e?.role.privacyAttribute?.id===_.PRIVACY_ATTRIBUTE_IDS.PRIVATE?(0,s.jsx)(eE.A,{startIcon:(0,s.jsx)(ec.A,{}),onClick:()=>n(e?.role,_.PRIVACY_ATTRIBUTE_IDS.PUBLIC),classes:{label:eC().buttonLabel},trackingData:{...c,component:h.$j.ROLE_SWITCH,subComponent:h.kU.PRIVATE},children:t(`${_.TP}.PRIVACY_PRIVATE`)}):(0,s.jsx)(eE.A,{startIcon:(0,s.jsx)(el.A,{}),onClick:()=>n(e?.role,_.PRIVACY_ATTRIBUTE_IDS.PRIVATE),classes:{label:eC().buttonLabel},trackingData:{...c,component:h.$j.ROLE_SWITCH,subComponent:h.kU.PUBLIC},children:t(`${_.TP}.PRIVACY_PUBLIC`)})})]},e?.role?.id)})})};eN.propTypes={t:a().func,data:a().object,onDelete:a().func,onSwitchVisibility:a().func,onStatusChange:a().func,confirmProAccount:a().func,isFutureRepertoire:a().bool};let eS=e=>{let{t,profile:o,trackHubspotForm:r,tabSection:a,helpInfo:C}=e,S=(0,f.A)(),{entity:O,refetchEntityDetails:j,queryParams:y}
73=(0,x.A)(),[k,v]=(0,n.useState)(y?.[A.VALID_QUERY_PARAMS.SCROLL_TO]||a),[w,D]=(0,n.useState)(!1),[L,U]=(0,n.useState)(null),[F,V]=(0,n.useState)(!1),{confirmSpecialPermission:$,confirmSpecialPermissionWithSource:M,hasPermissions:{isFutureRepEdit:W,isRepertoireShowHideOnPublicPage:B,isFutureRepertoireShowOnCastingTool:Y}}=(0,g.o)(),H=o?.id,{data:q=[],isLoading:G,refetch:z}=(0,b.IT)((0,P.profileRepertoireList)({id:H,show_hidden:!0,as_edit:!0,limit:9999},{enabled:!!H,select:e=>e?.data||[]})),{future:Q=[],shedule:K=[]}=(0,n.useMemo)(()=>{let e=q.filter(e=>!E.ZA?.includes(e?.status)&&(e?.source===E._W.USER||e?.source===E._W.PERFORMANCE)),t=q.filter(e=>E.ZA?.includes(e?.status)&&e?.source===E._W.USER),[o,s]=(0,i.partition)(t,{status:E.Yq.PREPARED}),[n,r]=(0,i.partition)(e,{status:E.Yq.RETIRED});return{shedule:N(e),future:N(t),retired:N(n),active:N(r),prepared:N(o),unPrepared:N(s),futureCount:t?.length||0,activeCount:(r?.length||0)+(n?.length||0)}},[q]),J=(0,i.filter)(q,e=>E.ZA.includes(e?.status)&&e.source===E._W.USER)?.length,X=(e,t)=>{j(),(0,l.M8)(e,t)},{mutate:Z}=(0,b.n_)(P.profileCustomizationUpdate,{onError:e=>X((0,I.errorMessageConverter)(e),c.jV.ERROR),onSuccess:()=>X(t(`${_.TP}.FN_SUCCESS_UPDATING_DATA`),c.jV.SUCCESS)}),{mutate:ee}=(0,b.n_)(P.profileRepertoireUpdate,(0,d.r)(t,{successKey:`${_.TP}.FN_SUCCESS_UPDATING_DATA`,errorKey:`${_.TP}.FN_ERROR_UPDATING_DATA`,errorParams:{endpoint:"profile-repertoire"},onSuccess:()=>{z(),r()}})),{mutate:et}=(0,b.n_)(P.profileRepertoireDelete,{onSuccess:()=>{z(),U(null),D(!1),r(),(0,l.M8)(t(`${_.TP}.FN_SUCCESS_DELETION`,{name:`${L?.work?.name} / ${L?.workRole?.name||L?.profession?.name}`}),{variant:c.jV.SUCCESS})},onError:e=>(0,l.M8)((0,I.errorMessageConverter)(e),{variant:c.jV.ERROR})}),eo=O?.customization?.find(e=>e?.key===A.ARTIST_CUSTOMIZE.REPERTOIRE),es=O?.customization?.find(e=>e?.key===A.ARTIST_CUSTOMIZE.FUTURE_REPERTOIRE);(0,n.useEffect)(()=>{y?.[A.VALID_QUERY_PARAMS.SCROLL_TO]?(y?.[A.VALID_QUERY_PARAMS.OPEN_MODAL]===_.REPERTOIRE_SECTIONS.FUTURE_REPERTOIRE&&V(!0),v(y?.[A.VALID_QUERY_PARAMS.SCROLL_TO])):v(a)},[a,y]),(0,n.useEffect)(()=>{if(k&&!G){let e=document.querySelector(`[name="${k}"]`);if(e){let t=e.getBoundingClientRect().top+window.pageYOffset+-150;window.scrollTo({top:t,behavior:"smooth"})}}},[k,G]);let ei=e=>{U(e),D(!0)},ea=(e,t)=>{ee({params:{id:H,repertoireId:e.id},data:{privacyAttribute:{id:t}}})},el=(e,t)=>{ee({params:{id:H,repertoireId:e},data:{status:t}})},ec=[t(`${_.TP}.m_COMPOSER`),t(`${_.TP}.FN_WORK_TITLE_COMPOSER_TITLE`),t(`${_.TP}.m_ROLE`),"",t(`${_.TP}.FN_PRIVACY_LABEL`)],ed={label:t(`${_.TP}.ADD_FUTURE_REPERTOIRE`),onClick:$(W,()=>V(!0)),disabled:J>=5},eu=(e,t)=>{Z({params:{id:O?.id,customizationId:t?.id},data:{id:t.id,value:e}})};return(0,s.jsxs)("div",{className:er().repertoireContainer,children:[(0,s.jsx)(u.A,{helpInfo:C}),(0,s.jsxs)("div",{children:[(0,s.jsx)(T.A,{name:_.REPERTOIRE_SECTIONS.FUTURE_REPERTOIRE,title:t(`${_.TP}.FN_FUTURE_REPERTOIRE_TITLE`),description:t(`${_.TP}.FN_FUTURE_REPERTOIRE_DESCRIPTION`),addAction:ed,isLoading:G,isSectionShowHide:Q?.length>0,toggleSwitchTitle:t(`${_.TP}.FN_SHOW_ON_PROFILE`),visibilityAction:{isVisible:es?.value,onChange:e=>eu(e,es),popupSource:A.POPUP_SOURCES.FUTURE_REPERTOIRE,hasProAccountValidation:!0,specialPermission:Y},trackingData:{section:h.bP.FUTURE_REPERTOIRE},children:Q?.length===0?(0,s.jsx)(R.A,{message:`${t(`${_.TP}.FN_X_CONTENT_EMPTY_MSG`,{content:t(`${_.TP}.FN_FUTURE_REPERTOIRE_TITLE`)})}`,action:ed}):(0,s.jsx)(m.A,{headers:ec,data:{data:Q},customElements:{row:(0,s.jsx)(eN,{t:t,onSwitchVisibility:M(Y,ea,A.POPUP_SOURCES.FUTURE_REPERTOIRE),onStatusChange:el,onDelete:ei,isFutureRepertoire:!0,trackingData:{section:h.bP.FUTURE_REPERTOIRE}}),card:(0,s.jsx)(eI,{t:t,onSwitchVisibility:M(Y,ea,A.POPUP_SOURCES.FUTURE_REPERTOIRE),onStatusChange:el,onDelete:ei,isFutureRepertoire:!0,trackingData:{section:h.bP.FUTURE_REPERTOIRE}})},withPagination:!0})}),(0,s.jsx)(T.A,{name:_.REPERTOIRE_SECTIONS.REPERTOIRE,title:t(`${_.TP}.FN_TAB_REPERTOIRE`),description:t(`${_.TP}.FN_REPERTOIRE_DESCRIPTION`),isLoading:G,isSectionShowHide:K?.length>0,toggleSwitchTitle:t(`${_.TP}.FN_SHOW_ON_OVERVIEW`),visibilityAction:{isVisible:eo?.value,onChange:e=>eu(e,eo),popupSource:A.POPUP_SOURCES.REPERTOIRE,hasProAccountValidation:!0,specialPermission:B},trackingData:{section:h.bP.REPERTOIRE},children:K?.length===0?(0,s.jsx)(R.A,{message:t(`${_.TP}.FN_X_CONTENT_EMPTY_MSG`,{content:t(`${_.TP}.FN_TAB_REPERTOIRE`)})}):(0,s.jsx)(m.A,{headers:ec,data:{data:K},customElements:{row:(0,s.jsx)(eN,{t:t,onSwitchVisibility:M(Y,ea,A.POPUP_SOURCES.SHOW_HIDE_REPERTOIRE_ON_CASTING_TOOL),onStatusChange:el,onDelete:ei,trackingData:{section:h.bP.REPERTOIRE}}),card:(0,s.jsx)(eI,{t:t,onSwitchVisibility:M(Y,ea,A.POPUP_SOURCES.SHOW_HIDE_REPERTOIRE_ON_CASTING_TOOL),onStatusChange:el,onDelete:ei,trackingData:{section:h.bP.REPERTOIRE}})},withPagination:!0}
73)}),w&&(0,s.jsx)(p.A,{closeModal:()=>{U(null),D(!1)},title:t(`${_.TP}.FN_DELETE_CONFIRM_TITLE`),description:t(`${_.TP}.FN_DELETE_CONFIRMATION_DESCRIPTION`),onDelete:()=>{L?.id&&et({params:{id:H,repertoireId:L.id}})},buttonVariant:_.BUTTON_VARIANTS.PRIMARY,className:er().confirmModal,trackingSaveData:{section:h.bP.FUTURE_REPERTOIRE,component:h.$j.ACTION_STATUS_MODAL,subComponent:h.kU.DELETE_CTA},trackingCancelData:{section:h.bP.FUTURE_REPERTOIRE,component:h.$j.ACTION_STATUS_MODAL,subComponent:h.kU.CANCEL_CTA}}),F&&(0,s.jsx)(en,{profile:o,onClose:()=>{V(!1),S.updateQueryParams({deleteParams:[A.VALID_QUERY_PARAMS.SCROLL_TO,A.VALID_QUERY_PARAMS.OPEN_MODAL]})},getRepertoireList:z,trackHubspotForm:r,trackingData:{section:h.bP.FUTURE_REPERTOIRE}})]})]})};eS.propTypes={t:a().func,profile:a().object};let eO=eS},92104:e=>{e.exports={root:"ob_pOXibU",primary:"ob_nuYn8m",secondary:"ob_PU3hRE"}},94396:e=>{e.exports={"switch-container":"ob_wghLgU","react-switch-checkbox":"ob_PrPFIG","react-switch-button":"ob_VvnTqk","react-switch-labels":"ob_IpkiSv","react-switch":"ob_hxO8kc"}},94719:(e,t,o)=>{"use strict";o.d(t,{A:()=>E});var s=o(95155);o(12115);var n=o(79824),i=o(12758),r=o.n(i),a=o(41557),l=o(88322),c=o(86194),d=o(49915),u=o(48158),p=o(19420),m=o(6097),h=o(22377),R=o(15990),T=o.n(R);let _=e=>{let{label:t,tooltipText:o,onClick:i,skipTracking:r=!1,trackingData:R}=e,{t:_}=(0,h.useTranslation)("translation"),E=(0,u.A)(),A=(0,p.j3)(R,r);return(0,s.jsxs)("div",{className:T().root,children:[(0,s.jsxs)("div",{className:(0,c.default)(T().label,A),onClick:e=>{i&&i(e),(0,n.A)(R)||E.click(R)},children:[(0,s.jsx)(l.A,{})," ",t||_(`${m.TP}.FN_REORDER_ENTITY_LABEL`)]}),o?.length>0&&(0,s.jsx)("div",{className:T().tooltip,children:(0,s.jsx)(d.A,{content:(0,s.jsx)("div",{children:o}),icon:(0,s.jsx)(a.A,{className:T().infoTooltipIcon}),className:T().tooltipPopper})})]})};_.propTypes={label:r().string,tooltipText:r().string,onClick:r().func},_.defaultProps={label:"",tooltipText:"",onClick:()=>void 0};let E=_},96714:e=>{e.exports={table:"ob_TtiRt8",cell:"ob_HHZxgg",cellCancelled:"ob_P5LauQ",number:"ob_PaNKW3",flexCell:"ob_mjM1BO",flexInlineCell:"ob_Yoev8G",head:"ob_4MqKH4",link:"ob_9ToK1A",linkButton:"ob_rHWO9A",seeMoreButton:"ob_lwhrRq",bold:"ob_J5pekl",avatar:"ob_5zJmtP",flex:"ob_IxWe2I",artistName:"ob_jIxdT7",empty:"ob_BIJmnc",verticalMenu:"ob_J07ZSu",body:"ob_je22Eh",loadingIndicator:"ob_jjGqea"}},98435:e=>{e.exports={root:"ob_Dq6o5d"}},99371:e=>{e.exports={root:"ob_wJcgOr",header:"ob_qMWr67",headerActions:"ob_Tb0nIp",addBtnWrapper:"ob_x86oRJ",title:"ob_vguNfb",helpText:"ob_Ojg76v",description:"ob_Cd24w5",content:"ob_WQRhXu",addLink:"ob_eo1lBk",actionButton:"ob_varH59",showHideContainer:"ob_ukeY1A",customTitle:"ob_aDiuiW",spacing:"ob_ct4dwH",showHideInfo:"ob_FEiooA"}},99447:(e,t,o)=>{"use strict";o.d(t,{A:()=>b});var s=o(95155);o(12115);var n=o(86194),i=o(12758),r=o.n(i),a=o(59734),l=o(33077),c=o(35153),d=o(72091),u=o(74906),p=o(3840),m=o(94719),h=o(21525),R=o(21911),T=o(6097),_=o(99371),E=o.n(_);let A=e=>{let{name:t,className:o,title:i,helpText:r,description:_,children:A,addAction:b,reorderAction:P,hideReorderAction:I,hideAddAction:f,isLoading:x,isSectionShowHide:g,visibilityAction:C,toggleSwitchTitle:N,showAndHideInfo:S,trackingData:O,skipTracking:j=!1}=e;return(0,s.jsxs)(l.Ay,{name:t,className:(0,n.default)(E().root,o),container:!0,xs:12,children:[(0,s.jsxs)(l.Ay,{container:!0,xs:12,item:!0,justifyContent:"space-between",children:[(0,s.jsxs)(l.Ay,{container:!0,item:!0,xs:12,sm:5,children:[(0,s.jsxs)(l.Ay,{item:!0,container:!0,direction:"row",children:[(0,s.jsx)(l.Ay,{item:!0,className:E().title,children:i}),r?.length>0&&(0,s.jsx)(l.Ay,{item:!0,className:E().helpText,children:r})]}),_&&(0,s.jsx)(l.Ay,{item:!0,className:E().description,children:_})]}),(0,s.jsxs)(l.Ay,{container:!0,direction:"row",xs:12,sm:7,alignItems:"start",justifyContent:"space-between",className:(0,n.default)(E().actionButton,E().spacing),children:[!I&&P&&(0,s.jsx)(l.Ay,{item:!0,children:(0,s.jsx)(m.A,{label:P?.label,tooltipText:P?.tooltipText,onClick:P?.onClick,trackingData:{...O,component:u.$j.REORDER_ACTION}})}),!f&&b&&(0,s.jsx)(l.Ay,{item:!0,children:!b?.disabled&&b?.href?.length>
730?(0,s.jsx)(c.A,{variant:R.BUTTON_VARIANTS.TERTIARY,startIcon:(0,s.jsx)(a.A,{}),children:(0,s.jsx)(p.A,{className:E().addLink,href:b?.href,children:b?.label})},"add-button"):(0,s.jsx)(c.A,{variant:R.BUTTON_VARIANTS.TERTIARY,onClick:()=>b?.onClick(T.POPUP_SOURCES.REPERTOIRE),startIcon:(0,s.jsx)(a.A,{}),disabled:b?.disabled,trackingData:{...O,subComponent:u.$j.ADD_CTA},skipTracking:j,children:b?.label},"add-button")}),g&&(0,s.jsxs)(l.Ay,{container:!0,direction:"column",xs:12,sm:6,justifyContent:"flex-end",alignItems:"flex-end",gap:1,className:E().showHideContainer,children:[N&&(0,s.jsx)(l.Ay,{item:!0,xs:12,sm:12,children:(0,s.jsx)("div",{className:E().customTitle,children:N})}),(0,s.jsx)(l.Ay,{item:!0,xs:12,sm:12,children:(0,s.jsx)(h.A,{isVisible:C?.isVisible,onChangeVisibility:C?.onChange,isUpdating:x,popupSource:C?.popupSource,hasProAccountValidation:C?.hasProAccountValidation,specialPermission:{permission:C?.specialPermission},trackingData:{...O,component:u.$j.SHOW_HIDE_TOGGLE}})}),S&&(0,s.jsxs)(l.Ay,{item:!0,className:E().showHideInfo,children:["(",S,")"]})]})]})]}),(0,s.jsx)(l.Ay,{item:!0,xs:12,children:x?(0,s.jsx)("div",{className:E().content,children:(0,s.jsx)(d.A,{variant:R.LOADER_VARIANTS.PRIMARY})}):(0,s.jsx)("div",{className:E().content,children:A})})]})};A.propTypes={title:r().string,helpText:r().string,description:r().element,children:r().element,addAction:r().shape({label:r().string,onClick:r().func,href:r().string,as:r().string,disabled:r().func}),reorderAction:r().shape({label:r().string,onClick:r().func}),hideReorderAction:r().bool,hideAddAction:r().bool,isSectionShowHide:r().bool},A.defaultProps={title:"",helpText:"",hideReorderAction:!1,hideAddAction:!1,isSectionShowHide:!1};let b=A}}]);
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.