1(function(){try{var b=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},M=new b.Error().stack;M&&(b._sentryDebugIds=b._sentryDebugIds||{},b._sentryDebugIds[M]="9fd8c5bc-6294-4005-a63b-b0d633d67259",b._sentryDebugIdIdentifier="sentry-dbid-9fd8c5bc-6294-4005-a63b-b0d633d67259")}catch{}})();var _global=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};_global.SENTRY_RELEASE={id:"6b3b5bcd49ac3ca4e22832378da81add8169a867"},(self.webpackChunk_maestro_io_client=self.webpackChunk_maestro_io_client||[]).push([[738],{887757:(b,M,e)=>{e.d(M,{A:()=>K});var p=e(362688),t=e.n(p),i=e(63696),c=e(886550),s=e(86138);const d=(0,c.i7)` 2 from { 3 opacity: 0; 4 } 5 6 to { 7 opacity: 1; 8 } 9`;var r=e(429195),h=e(171751),U=e(154789),A=e(571417),C=e(152544);const v=({widthPx:u})=>u?(0,c.AH)` 10 width: ${(0,h.WJ)(u)}; 11 `:"",g=(0,c.AH)` 12 animation: 0.3s ease-out ${d}; 13`,f=c.Ay.div` 14 ${g} 15 ${v}; 16`,D=c.Ay.div` 17 background-color: ${r.k6P}; 18 color: ${r.o0B}; 19 padding: ${r.Sm7}; 20`,I=c.Ay.div` 21 background-color: ${r.dHK}; 22 color: ${r.o0B}; 23 padding: ${u=>u.noContentPadding?"0":r.Sm7}; 24`,W=c.Ay.div` 25 display: flex; 26 flex-flow: row nowrap; 27 align-items: center; 28 justify-content: space-between; 29`,o=c.Ay.div` 30 && { 31 ${C.p6} 32 text-transform: uppercase; 33 } 34`,m=(0,c.Ay)(U.Ay)` 35 margin-left: 10px; 36`,R=c.Ay.div` 37 ${C.eb}; 38 color: ${r.zkP}; 39 margin-top: ${r.Sm7}; 40`,F=c.Ay.div` 41 display: flex; 42 ${C.GD} 43`,G=c.Ay.div` 44 ${C.eb}; 45 color: ${r.zkP}; 46`;function K({className:u,children:H,infoKey:L,nameKey:X,noContentPadding:E,onSave:P,saveEnabled:S,widthPx:Q,handleCancel:w,isFooterModal:O,testIdCancel:$,testIdSave:Z}){const J=O?G:o;return(0,i.useEffect)(()=>{S&&!O&&P?.()},[S,O]),i.createElement(A.A,{onClick:P,shellLayer:O?"modalLegacy":"modalAnchored"},i.createElement(f,{className:u,widthPx:Q},i.createElement(D,null,i.createElement(W,null,i.createElement(s.A,{component:J,stringKey:X}),i.createElement(F,null,i.createElement(s.A,{component:m,componentProps:{"data-testid":$,onClick:w},stringKey:"ADMIN_ACTION_CANCEL"}),O?i.createElement(s.A,{component:m,componentProps:{"data-testid":Z,disabled:!S,onClick:P},stringKey:"ADMIN_ACTION_ADD"}):null)),L&&i.createElement(s.A,{component:R,stringKey:L})),i.createElement(I,{noContentPadding:E},H)))}K.propTypes={children:t().node.isRequired,className:t().string,handleCancel:t().func,infoKey:t().string,isFooterModal:t().bool,nameKey:t().string.isRequired,noContentPadding:t().bool,onSave:t().func.isRequired,saveEnabled:t().bool,testIdCancel:t().string,testIdSave:t().string,widthPx:t().oneOfType([t().string,t().number])},K.defaultProps={className:"",handleCancel:void 0,infoKey:void 0,isFooterModal:!1,noContentPadding:!1,saveEnabled:!0,testIdCancel:void 0,widthPx:void 0}},627287:(b,M,e)=>{e.d(M,{A:()=>C});var p=e(362688),t=e.n(p),i=e(63696),c=e(886550),s=e(879019),d=Object.defineProperty,r=(v,g,f)=>g in v?d(v,g,{enumerable:!0,configurable:!0,writable:!0,value:f}):v[g]=f,h=(v,g,f)=>(r(v,typeof g!="symbol"?g+"":g,f),f);const U=c.Ay.div` 47 align-items: center; 48 display: flex; 49 flex-flow: row nowrap; 50 opacity: ${v=>v.disabled?".3":"1"}; 51`;class A extends i.Component{constructor(){super(...arguments),h(this,"handleChange",()=>{const{active:g,onChange:f,disabled:D}=this.props;D||f?.(!g)})}render(){const{active:g,"data-testid":f,labelKey:D,helperTextKey:I,className:W,disabled:o}=this.props,{handleChange:m}=this;return i.createElement(U,{className:W,disabled:o},i.createElement(s.A,{checked:g,"data-testid":f,descriptionKey:I,disabled:o,labelKey:D,labelUppercase:!0,onChange:m}))}}h(A,"propTypes",{active:t().bool.isRequired,className:t().string,"data-testid":t().string,disabled:t().bool,helperTextKey:t().string,labelKey:t().string,onChange:t().func.isRequired}),h(A,"defaultProps",{className:"","data-testid":void 0,disabled:!1,helperTextKey:void 0,labelKey:void 0});const C=A},300738:(b,M,e)=>{e.r(M),e.d(M,{default:()=>z});var p=e(224191),t=e(272568),i=e(298116),c=e(731694),s=e(63696),d=e(362688),r=e.n(d),h=e(886550),U=e(86138),A=e(718264),C=e.n(A),v=e(679380),g=e(283722),f=e(551269),D=e(429195),I=e(545290),W=e(718250),o=e.n(W),m=e(887757),R=e(166143),F=e(13155),G=Object.defineProperty,K=(l,n,a)=>n in l?G(l,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[n]=a,u=(l,n,a)=>(K(l,typeof n!="symbol"?n+"":n,a),a);class H extends s.Component{constructor(){super(...arguments),u(this,"state",{imageUrl:"",uploadedImage:null}),u(this,"handleInput",n=>{this.setState({imageUrl:n})}),u(this,"handleImageUpload",n=>{this.setState({uploadedImage:n})}),u(this,"handleSubmit",()=>{const{onAdd:n}=this.props,{imageUrl:a,uploadedImage:y}=this.state;n({arrayId:o()(),image:y,link:a})})}render(){const{closeModal:n}=this.props,{uploadedImage:a,imageUrl:y}=this.state,{handleImageUpload:V,handleInput:x,handleSubmit:_}=this;return s.createElement(m.A,{handleCancel:n,isFooterModal:!0,nameKey:"ADM
51IN_ACTION_ADD_A_SPONSOR",onSave:_,position:"topCenter",testIdCancel:"cancelSponsorButton",testIdSave:"addSponsorButton",widthPx:450},s.createElement(F.Ay,{acceptedTypes:"image/jpeg, image/png, image/tiff, image/bmp, image/gif, image/jpg",canDrop:!1,dimensionRequirements:{exactDimensions:!1,pixelHeight:60,pixelWidth:100},height:160,imagePreview:a,labelKey:"ADMIN_LABEL_SPONSOR_IMAGE",onClearImage:V,onFileSubmit:V}),s.createElement(R.Ay,{inputTestId:"sponsorUrlInput",labelKey:"IMAGE_URL",onChange:x,placeholderKey:"ADMIN_ACTION_ENTER_A_URL_FOR_YOUR_IMAGE",value:y}))}}u(H,"propTypes",{closeModal:r().func.isRequired,onAdd:r().func.isRequired});var L=Object.defineProperty,X=(l,n,a)=>n in l?L(l,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[n]=a,E=(l,n,a)=>(X(l,typeof n!="symbol"?n+"":n,a),a);const P=h.Ay.div` 52 align-items: center; 53 display: flex; 54 flex: 0 0 auto; 55 min-height: 57.8px; 56 justify-content: end; 57 margin: 0; 58 padding: 0; 59 position: relative; 60 width: 100%; 61 margin-bottom: 11px; 62 && > * { 63 ${I.EC} 64 } 65`,S=h.Ay.div` 66 opacity: 0; 67 transition: opacity 0.2s ease-in-out; 68 background-color: ${D.Qod}; 69 cursor: pointer; 70 display: flex; 71 height: 16px; 72 line-height: 13px; 73 justify-content: center; 74 position: absolute; 75 right: 0; 76 top: 0; 77 width: 16px; 78 border-radius: 2.5px; 79`,Q=(0,h.Ay)(g.Ay)` 80 > svg { 81 width: 8px; 82 height: 8px; 83 } 84`,w=(0,h.AH)` 85 border-color: ${D.Qod}; 86 & ${S} { 87 opacity: 1; 88 } 89`,O=h.Ay.div` 90 border: 2px solid transparent; 91 92 ${({isSimpleModeEnabled:l})=>l?(0,h.AH)` 93 &:hover { 94 ${w} 95 } 96 `:w} 97 margin-top: 0; 98 position: relative; 99 user-select: none; 100 max-width: 150px; 101 width: 100%; 102 ${({index:l,itemCount:n})=>l===n-1&&"margin-right: 0;"} 103`,$=h.Ay.img` 104 max-height: 60px; 105 height: 100%; 106 object-fit: contain; 107 width: 100%; 108 max-width: 150px; 109`,Z=h.Ay.div` 110 text-transform: uppercase; 111`,J=h.Ay.div` 112 border: 2px dotted ${D.Qod}; 113 height: 60px; 114 margin: 0 10px; 115 margin: 5px; 116 min-width: 100px; 117 position: relative; 118 user-select: none; 119`;class Y extends s.Component{constructor(){super(...arguments),E(this,"state",{data:this.props.data,editModalOpen:!1,hasLocalChanges:!1}),E(this,"placeholderRef",s.createRef()),E(this,"showEditModal",()=>{this.setState({editModalOpen:!0},()=>{})}),E(this,"hideEditModal",()=>{this.setState({editModalOpen:!1})}),E(this,"addSponsor",n=>{this.setState(a=>({data:[...a.data,n],hasLocalChanges:!0})),this.hideEditModal()}),E(this,"removeSponsor",n=>{n.stopPropagation();const a=parseInt(n.currentTarget.dataset.index,10);this.setState(y=>({data:y.data.filter((V,x)=>x!==a),hasLocalChanges:!0}),()=>this.onSave()),this.hideEditModal()}),E(this,"onDragEnd",n=>{const{data:a}=this.state,y=!C()(a,n);this.setState({data:n,hasLocalChanges:y},()=>this.onSave())}),E(this,"onSave",()=>{const{handleSave:n,onCloseActionModal:a}=this.props,{data:y}=this.state;n(y),this.setState({hasLocalChanges:!1}),a()})}componentDidUpdate(n){const{data:a}=this.props;C()(n.data,a)||this.setState({data:a,hasLocalChanges:!1})}render(){const{className:n,isActionModalOpen:a,onCloseActionModal:y,isSimpleModeEnabled:V}=this.props,{editModalOpen:x,hasLocalChanges:_,data:N}=this.state;return s.createElement(P,{className:n,editModalOpen:x},a&&s.createElement(f.A,{addKey:"ADMIN_ACTION_ADD",hasChanges:_,labelKey:"ADMIN_SPONSORS",onClose:y,onEdit:N.length<8?this.showEditModal:void 0,onSave:this.onSave,saveKey:"ADM
119IN_ACTION_DONE",shellLayer:"modalLegacy",testIdAdd:"adminAddSponsorButton"}),x&&s.createElement(H,{closeModal:this.hideEditModal,onAdd:this.addSponsor}),N.length===0?s.createElement(Z,null,s.createElement(U.A,{stringKey:"ADMIN_NO_SPONSORS_ADDED"})):s.createElement(v.A,{innerDivCss:` 120 align-items: center; 121 border: 2px solid transparent; 122 margin-top: 10px; 123 & > *:not(:last-child) { 124 margin-right: 24px; 125 } 126 `,innerDivStyles:{flexWrap:"wrap",overflow:"hidden",width:"100%"},isDragDisabled:x,keyField:B=>B?.arrayId,list:N,noPadding:!0,onDragEnd:this.onDragEnd,renderPlaceholder:()=>x&&s.createElement(J,{ref:this.placeholderRef})},(B,T)=>{const{image:q}=B;return s.createElement(O,{index:T,isSimpleModeEnabled:V,itemCount:N.length},!x&&s.createElement(S,{"data-index":T,"data-testid":c.Vm,onClick:this.removeSponsor},s.createElement(Q,{name:"close-thin"})),s.createElement($,{alt:"sponsor",src:q}))}))}}E(Y,"propTypes",{className:r().string,data:r().arrayOf(r().object),handleSave:r().func.isRequired,isSimpleModeEnabled:r().bool.isRequired}),E(Y,"defaultProps",{className:"",data:[]});const j=l=>({isSimpleModeEnabled:(0,i.G7)(l,i.Xj.SIMPLE_MODE)}),k=l=>({handleSave:n=>l((0,t.xY)(t.NU.SPONSORS,n))}),z=(0,p.connect)(j,k)(Y)},551269:(b,M,e)=>{e.d(M,{A:()=>o});var p=e(886550),t=e(63696),i=e(429195),c=e(86138),s=e(362688),d=e.n(s),r=e(627287),h=e(955807),U=e(154789),A=e(571417),C=e(152544);const v=p.Ay.div` 127 position: absolute; 128 align-items: center; 129 background-color: ${i.dHK}; 130 box-shadow: 0 2px 4px rgba(0,0,0,0.5); 131 display: flex; 132 justify-content: center; 133 z-index: 100; 134`,g=(0,p.Ay)(r.A)` 135 padding: 0 ${i.Sm7}; 136`,f=(0,p.AH)` 137 height: 72px; 138 padding: 0 ${i.Sm7}; 139 align-items: center; 140 justify-content: center; 141 display: flex; 142 width: max-content; 143`,D=p.Ay.div` 144 ${f} 145 ${C.p6} 146 color: ${i.o0B}; 147 user-select: none; 148 background-color: ${i.k6P}; 149`,I=(0,p.Ay)(U.Ay)` 150 margin: 0 20px; 151`,W=p.Ay.div` 152 user-select: none; 153 padding: 0 ${i.Sm7}; 154`;function o({addKey:m,buttons:R,className:F,labelKey:G,hasChanges:K,offsetBottom:u,offsetLeft:H,offsetRight:L,offsetTop:X,onClose:E,onEdit:P,onSave:S,onToggle:Q,shellLayer:w,testIdAdd:O,testIdToggle:$,toggleActive:Z,toggleKey:J}){return(0,t.useEffect)(()=>{K&&S()},[K]),t.createElement(A.A,{className:F,offsetBottom:u,offsetLeft:H,offsetRight:L,offsetTop:X,onClick:E,shellLayer:w},t.createElement(v,null,t.createElement(c.A,{component:D,stringKey:G}),Q&&t.createElement(W,null,t.createElement(r.A,{active:Z,"data-testid":$,labelKey:J,onChange:Q})),R.length>0&&t.createElement(h.A,{keyField:"stringKey",list:R},(Y,{stringKey:j,action:k,testId:z,type:l,value:n})=>l==="toggle"?t.createElement(g,{key:Y,active:n,"data-testid":z,labelKey:j,onChange:k}):t.createElement(I,{key:Y,"data-testid":z,onClick:k},t.createElement(c.A,{stringKey:j}))),P&&t.createElement(I,{"data-testid":O,onClick:P},t.createElement(c.A,{stringKey:m}))))}o.propTypes={addKey:d().string,buttons:d().arrayOf(d().shape({action:d().func,stringKey:d().string})),className:d().string,hasChanges:d().bool.isRequired,labelKey:d().string.isRequired,offsetBottom:d().number,offsetLeft:d().number,offsetRight:d().number,offsetTop:d().number,onClose:d().func,onEdit:d().func,onSave:d().func.isRequired,onToggle:d().func,shellLayer:d().oneOf(["modalAnchored","modalLegacy"]),testIdAdd:d().string,testIdToggle:d().string,toggleActive:d().bool,toggleKey:d().string},o.defaultProps={addKey:"ADMIN_ACTION_ADD",buttons:[],className:void 0,offsetBottom:0,offsetLeft:0,offsetRight:0,offsetTop:0,onEdit:void 0,shellLayer:"modalAnchored",onToggle:void 0,testIdAdd:void 0,testIdToggle:void 0,toggleActive:!0,toggleKey:"ADMIN_ACTION_HIDE"}},571417:(b,M,e)=>{e.d(M,{A:()=>W});var p=e(886550),t=e(63696),i=e(161931),c=e(731694),s=e(224191),d=e.n(s),r=e(467783),h=e(678041),U=e.n(h),A=e(243412);const C=A.M.layer.modal-1,v=p.Ay.span` 155 display: block; 156 width: 0; 157 height: 0; 158 overflow: hidden; 159`,g=p.Ay.div` 160 ${({staticPos:o})=>!o&&"position: fixed;"} 161 ${({left:o,top:m,offsetLeft:R=0,offsetTop:F=0})=>` 162 ${o!==void 0?`left: ${o-R}px;`:""} 163 ${m!==void 0?`top: ${m-F}px;`:""} 164 `} 165 z-index: ${({shellLayer:o="modalAnchored"})=>o==="modalLegacy"?A.M.layer.modalLegacy:A.M.layer.modalAnchored}; 166 transition: opacity 0.1s; 167 opacity: ${({isMounted:o})=>o?1:0}; 168`,f=p.Ay.div` 169 ${({staticPos:o})=>!o&&"position: fixed;"} 170 z-index: ${A.M.layer.modal}; 171 display: flex; 172 justify-content: center; 173 & > * { 174 position: static !important; 175 } 176`,D={top:(0,p.AH)` 177 left: 0; 178 top: 0; 179 height: ${({offset:o,margin:m})=>o-m}px; 180 `,bottom:(0,p.AH)` 181 left: 0; 182 bottom: 0; 183 height: ${({offset:o,margin:m})=>window.innerHeight-o-m}px; 184 `,left:(0,p.AH)` 185 top: 0; 186 left: 0; 187 width: ${({offset:o,margin:m})=>o-m}px; 188 `,right:(0,p.AH)` 189 top: 0; 190 right: 0; 191 width: ${({offset:o,margin:m})=>window.innerWidth-o-m}px; 192 `},I=p.Ay.div` 193 position: fixed; 194 // One below FixedWrapper (modal layer) so content paints above click-outside backdrop. 195 z-index: ${C}; 196 width: 100vw; 197 height: 100vh; 198 ${({side:o})=>D[o]} 199`;function W({center:o,children:m,className:R,offsetBottom:F=0,offsetLeft:G=0,offsetRight:K=0,offsetTop:u=0,onClick:H,parentRef:L,shellLayer:X="modalAnchored",staticPos:E}){const P=(0,s.useDispatch)(),[S,Q]=(0,t.useState)(!1),w=(0,t.useRef)(null),O=(0,t.useRef)(null),$=(0,t.useRef)(null),[{left
199:Z,top:J},Y]=(0,t.useState)({left:0,top:0}),[j,k]=(0,t.useState)({bottom:0,left:0,right:0,top:0}),z=n=>{P((0,r.zg)()),H?.(n)};(0,t.useEffect)(()=>{const n=setTimeout(()=>{Q(!0)},50);return()=>{clearTimeout(n)}},[]),(0,t.useEffect)(()=>{const n=()=>{var _,N,B;return(B=(N=L?.current)!=null?N:(_=w.current)==null?void 0:_.parentElement)!=null?B:null},a=()=>{window.requestAnimationFrame(()=>{var _;const N=n(),B=(_=$.current)==null?void 0:_.firstElementChild,T=N?.getBoundingClientRect(),q=B?.getBoundingClientRect()||new DOMRect;if(T){k(T);const ee=T.top-q.height,te=o?T.left+T.width/2-q.width/2:T.left;Y({left:te+q.width>=window.innerWidth?window.innerWidth-q.width:Math.max(te,0),top:ee<0?T.top+T.height:ee})}})};a();const y=document.getElementById(c.DW);y?.addEventListener("scroll",a);const V=n(),x=new(U())(a);return V&&x.observe(V),$.current&&x.observe($.current),()=>{y?.removeEventListener("scroll",a),x.disconnect()}},[o,L,S]);const l=t.createElement(g,{ref:O,className:R,"data-testid":"fixed-modal-shell",isMounted:S,left:Z,offsetLeft:G,offsetTop:u,shellLayer:X,staticPos:E,top:J},t.createElement(f,{ref:$,staticPos:E},m),t.createElement(I,{margin:u,offset:j.top,onClick:z,side:"top"}),t.createElement(I,{margin:F,offset:j.bottom,onClick:z,side:"bottom"}),t.createElement(I,{margin:G,offset:j.left,onClick:z,side:"left"}),t.createElement(I,{margin:K,offset:j.right,onClick:z,side:"right"}));return t.createElement(t.Fragment,null,t.createElement(v,{ref:w,"aria-hidden":"true"}),typeof document<"u"?(0,i.createPortal)(l,document.body):null)}}}]);
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.