PageSourceSearch

https://www.maestro.io/static/js/chunks/2869.105e015.js

js maestro.io collected 2026-10-02 04:12:55 UTC 14,891 bytes, 212 lines download raw bytes

1(function(){try{var j=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},N=new j.Error().stack;N&&(j._sentryDebugIds=j._sentryDebugIds||{},j._sentryDebugIds[N]="63d5e250-fb32-4236-b107-a092c4c25eb3",j._sentryDebugIdIdentifier="sentry-dbid-63d5e250-fb32-4236-b107-a092c4c25eb3")}catch{}})();var _global=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};_global.SENTRY_RELEASE={id:"d0b2a86c2e49a10a9d9513a5bf665a7912e86753"},(self.webpackChunk_maestro_io_client=self.webpackChunk_maestro_io_client||[]).push([[2869],{214809:(j,N,o)=>{o.d(N,{A:()=>W});var ee=o(732091),H=o.n(ee),V=o(962832),z=o.n(V),F=o(63696),t=o(362688),y=o.n(t),i=o(955807),R=o(756558),te=Object.defineProperty,oe=(d,l,p)=>l in d?te(d,l,{enumerable:!0,configurable:!0,writable:!0,value:p}):d[l]=p,Q=(d,l,p)=>(oe(d,typeof l!="symbol"?l+"":l,p),p);class K extends F.Component{render(){const{doc:l,docLoaded:p,index:P,func:a}=this.props;return a(l,P,p)}}Q(K,"propTypes",{doc:y().any,docLoaded:y().bool.isRequired,func:y().func.isRequired,index:y().number.isRequired}),Q(K,"defaultProps",{doc:null});const w=(0,R.A)({component:K,mapper:(d,l)=>({doc:d,docLoaded:l})});var ne=Object.defineProperty,re=(d,l,p)=>l in d?ne(d,l,{enumerable:!0,configurable:!0,writable:!0,value:p}):d[l]=p,U=(d,l,p)=>(re(d,typeof l!="symbol"?l+"":l,p),p);const C=(d,l)=>l?typeof l=="function"?l(d):typeof l=="string"?z()(d,l):(H()(!1,`RealtimeDocumentListMapper idField must be falsy/function/string, but received: ${JSON.stringify(l,null,2)}`),null):d;
1class W extends F.Component{render(){const{children:l,collection:p,idField:P,list:a,loading:s,mapper:ie}=this.props;return F.createElement(i.A,{dedupe:!1,keyField:P,list:a},(X,T,ae)=>{const Y=C(T,P);return Y?F.createElement(w,{key:X,collection:p,func:l,id:Y,index:ae,loading:s,mapper:ie}):null})}}U(W,"propTypes",{children:y().func.isRequired,collection:y().string.isRequired,idField:y().oneOfType([y().func,y().string]),list:y().array.isRequired,loading:y().func,mapper:y().oneOfType([y().func,y().string])}),U(W,"defaultProps",{idField:"_id",loading:()=>null,mapper:void 0})},582869:(j,N,o)=>{o.r(N),o.d(N,{default:()=>at});var ee=o(224191),H=o(89649),V=o(463302),z=o(365179),F=o(368909),t=o(63696),y=o(362688),i=o.n(y),R=o(498685),te=o(887944),oe=o(804797),Q=o(720012),K=o(848452),w=o(252992),ne=o(955807),re=o(214809),U=o(784567),C=o(41989),W=o(776637),d=o.n(W),l=o(723792),p=o(990220),P=o(914347),a=o(886550),s=o(429195),ie=o(312854),X=o(283722),T=o(545290),ae=o(622045);const Y=a.Ay.label`
2  display: flex;
3  position: relative;
4  align-items: center;
5`,Ee=a.Ay.div.attrs(e=>({radius:`${e.radioRadius}px`}))`
6  ${T.j7};
7  border: ${({radioBorderColor:e,radioBorderWidth:r})=>`${r}px solid ${e} !important`};
8  background: ${({radioBackground:e="rgba(0, 0, 0, 0.3)"})=>e};
9  display: flex;
10  justify-content: center;
11  align-items: center;
12  cursor: pointer;
13  margin-right: 13px;
14  &:after {
15    ${({isActive:e,fullyFilled:r,activeRadioColor:n,radioRadius:c})=>(0,a.AH)`
16      ${e&&'content: "";'}
17      width: ${r?c:7}px;
18      height: ${r?c:7}px;
19      flex-grow: 0;
20      flex-shrink: 0;
21      border-radius: 100%;
22      background: ${A=>n||(0,s.mrt)(A)};
23    `}
24  }
25`,Ie=a.Ay.div`
26  ${T.f3}
27  color: ${({isActive:e})=>e?s.SP6:s.XO2};
28`,Re=a.Ay.input.attrs({type:"radius"})`
29  position: absolute;
30  display: none;
31  opacity: 0;
32  cursor: pointer;
33  max-width: 15px;
34  height: 16px;
35`;var Pe=Object.defineProperty,Te=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,me=(e,r,n)=>r in e?Pe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Se=(e,r)=>{for(var n in r||(r={}))pe.call(r,n)&&me(e,n,r[n]);if(Z)for(var n of Z(r))ue.call(r,n)&&me(e,n,r[n]);return e},Be=(e,r)=>Te(e,Oe(r)),De=(e,r)=>{var n={};for(var c in e)pe.call(e,c)&&r.indexOf(c)<0&&(n[c]=e[c]);if(e!=null&&Z)for(var c of Z(e))r.indexOf(c)<0&&ue.call(e,c)&&(n[c]=e[c]);return n};function ge(e){var r=e,{activeRadioColor:n,children:c,className:A,fullyFilled:u,label:$,labelKey:m,isActive:E,onChange:g,radioBorderColor:O,radioBorderWidth:b,radioRadius:x,radioBackground:v,radioChildren:I}=r,B=De(r,["activeRadioColor","children","className","fullyFilled","label","labelKey","isActive","onChange","radioBorderColor","radioBorderWidth","radioRadius","radioBackground","radioChildren"]);const S=(0,t.useCallback)(({target:{checked:D}})=>{g(D)},[g]);return t.createElement(Y,{className:A},t.createElement(Ee,{activeRadioColor:n,fullyFilled:u,isActive:E,radioBackground:v,radioBorderColor:O,radioBorderWidth:b,radioRadius:x},I),($||m)&&t.createElement(ae.A,{component:Ie,isActive:E,stringKey:m},$),c,t.createElement(Re,Be(Se({},B),{checked:E,onChange:g&&S})))}var he=o(152544);const Le=a.Ay.div`
36  margin-top: 12px;
37  text-align: center;
38  font-size: 14px;
39  margin-bottom: ${s.Sm7};
40  ${T.xj};
41`,Me=a.Ay.div`
42  margin-bottom: 10px;
43  opacity: ${e=>e.opaque?"0.5":"1"};
44  padding: 25px 10px;
45  overflow: hidden;
46`,je=a.Ay.div`
47  position: relative;
48  border-bottom: 0.87px solid ${s.ywe};
49  padding-bottom: 17px;
50`,Ne=(0,a.Ay)(ge).attrs(e=>({activeRadioColor:(0,s.SP6)(e),radioBackground:e.isActive?(0,s.SP6)(e):(0,s.AOI)(e),radioBorderColor:(0,s.SP6)(e),radioBorderWidth:1.5,radioRadius:16}))`
51  width: 100%;
52  ${e=>!e.isCorrectAnswer&&e.isActive&&"opacity: 0.5"};
53`,Ve=(0,a.Ay)(ge).attrs(e=>({activeRadioColor:(0,s.SP6)(e),radioBackground:(0,s.AOI)(e),radioBorderColor:(0,s.mrt)(e),radioBorderWidth:1.5,radioRadius:16}))`
54  width: 100%;
55`,fe=a.Ay.div`
56  min-width: ${e=>e.showNumbers?"55px":"40px"};
57  color: ${s.mz9};
58`,ke=a.Ay.div.attrs(({className:e})=>({className:`${w.Cy} ${e||""}`}))`
59  position: relative;
60  display: flex;
61  align-items: center;
62  justify-content: space-between;
63
64  ${e=>e.isFirst?(0,a.AH)`margin-top: 12px;`:(0,a.AH)`margin-top: 7px;`};
65  min-height: 43px;
66  padding: 5px 0px 5px 14px;
67  border-radius: 5px;
68
69  ${e=>e.selected&&(0,a.AH)`background-color: ${(0,s.mrt)(e)}; color: ${(0,s.Jzj)(e)};
70    ${fe} { color: ${(0,s.Jzj)(e)} !important;`};
71  ${e=>e.hasVoted&&!e.selected&&e.isCorrect&&(0,a.AH)`
72      border: 1.5px solid ${s.ju8};
73    `};
74
75  cursor: ${e=>e.showPointer?"pointer":"default"};
76  ${(0,T.nD)`
77    cursor: pointer;
78  `};
79  ${T._i};
80
81  contain: content;
82`,Fe=a.Ay.div`
83  text-transform: uppercase;
84  color: ${s.mrt};
85  ${he.Bm}
86`,He=a.Ay.div`
87  margin-top: 25px;
88  white-space: normal;
89  ${T.WL};
90  ${he.t}
91`,pt=e=>offset(SURFACE_1(e),5),ye=(0,a.Ay)(X.Ay)`
92  position: absolute;
93  line-height: 0;
94  color: ${s.mrt};
95  font-size: 8px;
96`,ze=a.Ay.div`
97  opacity: ${e=>e.opaque?"0.6":"1"};
98  color: ${e=>e.selected&&(0,s.Jzj)(e)};
99  display: flex;
100  align-items: center;
101  font-weight: 400;
102  width: 100%;
103`,Qe=a.Ay.div`
104  background-image: url(${e=>e.image});
105  background-size: cover;
106  background-repeat: no-repeat;
107  flex-shrink: 0;
108  width: 50px;
109  height: 50px;
110  border-radius: 5px;
111`,Ke=a.Ay.div`
112  margin-left: 10px;
113  ${T._i};
114  font-weight: 500;
115  width: 100%;
116`,ve=a.Ay.div`
117  height: 18px;
118  position: absolute;
119  right: -10px;
120  border-radius: 10px 0px 0px 10px;
121  display: flex;
122  align-items: center;
123  padding: 4px 10px 4px 12px;
124  background-color: ${e=>e.isCorrect?s.jEq:s.__g} !important;
125  ${e=>e.locked&&(0,a.AH)`background-color: ${s.mrt} !important`};
126  text-transform: uppercase;
127  color: ${s.SP6};
128  font-size: 9px;
129  line-height: 10px;
130  font-weight: 700;
131
132  & span {
133    height: 8px;
134  }
135`,Ue=(0,a.Ay)(X.Ay)`
136  margin-right: 2px;
137  height: auto !important;
138
139  & > svg {
140    width: 6.3px;
141    height: 7.27px;
142  }
143`,We=a.Ay.div`
144  width: 100%;
145  display: flex;
146  justify-content: space-between;
147  align-items: center;
148
149  padding-right: ${e=>e.isTrivia?"58px":"30px"}
150`,Je=a.Ay.progress`
151  width: 100%;
152  height: 7px;
153  border-radius: 20px;
154  contain: content;
155
156  &::-webkit-progress-bar {
157    width: 100%;
158    height: 7px;
159    background-color: ${s.AOI};
160    border-radius: 20px;
161    border: 0.5px solid ${s.mrt};
162    contain: content;
163  }
164  &::-webkit-progress-value {
165    background: ${s.mz9};
166    height: 7px;
167  }
168`,Ge=a.Ay.div`
169  padding: 10px;
170`,Xe=a.Ay.button`
171  ${T.Qr};
172  width: 100%;
173  padding: 10px;
174`,Ye=a.Ay.div`
175  position: absolute;
176  top: 0;
177  bottom: 0;
178  left: 0;
179  right: 0;
180  opacity: .6;
181  background-color: black;
182  width: 100%;
183  height: 100%;
184`,Ze=a.Ay.div`
185  position: relative;
186  margin-bottom: 10px;
187  opacity: ${e=>e.opaque?"0.5":"1"};
188  padding: 25px 10px;
189  overflow: hidden;
190  background-color: ${e=>(0,ie.e$)((0,s.AOI)(e),.1)};
191`,qe=a.Ay.div`
192  position: absolute;
193  right: 0;
194  height: 100%;
195  width: 43px;
196  border-radius: 5px 0px 0px 5px;
197  background-color: ${e=>e.isCorrect?s.ju8:s.W6Q};
198  display: flex;
199  justify-content: center;
200  align-items: center;
201`,_e=a.Ay.div`
202  width: 16px;
203  height: 16px;
204  border-radius: 100%;
205  background-color: ${s.ywe};
206
207  display: flex;
208  justify-content: center;
209  align-items: center;
210`,et=(0,a.Ay)(ye).attrs(({isCorrect:e})=>({name:e?"ok":"cancel"}))`
211  color: ${e=>e.isCorrect?s.ju8:s.W6Q};
212`,Ce=({isCorrect:e})=>t.createElement(qe,{isCorrect:e},t.createElement(_e,null,t.createElement(et,{isCorrect:e})));
212Ce.propTypes={isCorrect:i().bool.isRequired};const tt=Ce,ut=(e,r)=>r?`${Math.floor(e/r*100)}%`:"0%",ot=({percentage:e,count:r,showRawResponse:n})=>`${e}${n?` (${r})`:""}`,nt=e=>e.selected?w.AQ:(e.hasVoted,w.HH);function xe(e){const{endUserT:r}=(0,C.T9)(),{answer:n,canVote:c,hasVoted:A,handleSelection:u,i:$,isACorrectAnswer:m,key:E,opaque:g,showCount:O,showPercent:b,type:x,userChoseThisAnswer:v}=e,I=(0,R.sF)(n.count,n.total),B=[P.d.Poll,P.d.Prediction].includes(x)?Ve:Ne,S=x===P.d.Trivia,D=ot({count:n.count,percentage:I,showRawResponse:O});return t.createElement(ke,{key:E,hasVoted:A,isCorrect:m,isFirst:$===0,onClick:L=>{L.preventDefault(),c&&u(n,$)},selected:v,showPointer:!A},t.createElement(B,{className:`${w.e8} ${nt(n)}`,fullyFilled:S,isActive:v,isCorrectAnswer:m,radioChildren:v&&S&&t.createElement(ye,{name:"ok"})},t.createElement(ze,{hasImage:n.imageUrl,opaque:g},n.imageUrl&&t.createElement(Qe,{image:n.imageUrl}),t.createElement(Ke,null,t.createElement("div",{className:w.a$},t.createElement("span",null,r([C.Rq.multipleChoiceAnswer,{answerId:n._id,multipleChoiceId:n.pollId,multipleChoiceType:x}])||n.answer)),A&&I&&b&&t.createElement(We,{isTrivia:S},t.createElement(fe,{showNumbers:O},D),t.createElement(Je,{max:"100",value:String(I.replace("%",""))}))))),A&&(v||m)&&S&&t.createElement(tt,{isCorrect:m}))}xe.propTypes={answer:i().shape({_id:i().string,answer:i().string,correct:i().bool,count:i().number,imageUrl:i().string,index:i().number,pollId:i().string,total:i().number}),canVote:i().bool,handleSelection:i().func,i:i().number,isACorrectAnswer:i().bool,key:i().number,opaque:i().bool,showCount:i().bool,showPercent:i().bool,userChoseThisAnswer:i().bool};function Ae(e){const{onEngage:r,pollData:n,panelDoc:c,onEngageMultipleChoiceOverlay:A}=e,{_id:u,answers:$=[],open:m,question:E,type:g}=n||{},O=(0,R.wA)(),{endUserT:b}=(0,C.T9)(),{response:x}=(0,R.ks)(n?n._id:null),[v,I]=(0,t.useState)(x?.answerId||null),[B,S]=(0,t.useState)(!!v),D=(0,R.d4)(V.mC),L=(0,R.d4)(V.F6),q=!!D;(0,t.useEffect)(()=>{const f=L&&x?.answerId||null;I(f),S(!!f)},[d()(x),L]);const le=()=>O((0,H.to)({kind:"login"})),de=(f,M)=>{var G;const{_id:_,answer:ce}=f,$e=(G=c?.data)==null?void 0:G.broadcastId;$e&&A({broadcastId:$e,index:M}),r({action:`answer_${g}`,correct:f.correct,poll:u,question:E,response:ce,responseId:_}),I(_);const ct={answerId:f._id,pollId:f.pollId,siteId:p.Cn,userId:L};O((0,Q.dN)(ct,p.Cn))},h=(f,M)=>{if(!D){le();return}de(f,M)},k=$.filter(f=>f.correct),J=k.length!==0,st=!B&&!!(m&&(!(J&&v)||!J)),be=k.some(f=>f._id===v),we=(!m||g!==P.d.Prediction)&&!!$.find(f=>f.total>0),lt=we&&n?.showCount,dt=!L||!m&&!J;return n?t.createElement(Me,null,g===P.d.Trivia&&J&&B&&t.createElement(ve,{isCorrect:be},be?b([C.Rq.multipleChoicePanelCorrect],["CORRECT"]):b([C.Rq.multipleChoicePanelIncorrect],["INCORRECT"])),t.createElement(je,{className:w._K},!m&&q&&t.createElement(ve,{locked:!0},t.createElement(Ue,{name:"lock"}),b([C.Rq.multipleChoicePanelLocked],["LOCKED"])),t.createElement(Fe,null,b([C.Rq.multipleChoicePanelType,{type:g}],[g?.toUpperCase()])),t.createElement(He,{"data-testid":`${g}Question`},t.createElement("span",null,b([C.Rq.multipleChoiceQuestion,{multipleChoiceId:u,multipleChoiceType:g}])||E))),t.createElement(l.A,{keyField:"_id",list:$},(f,M,G)=>{const _=!!k.find(ce=>ce._id===M._id);return t.createElement(xe,{key:f,answer:M,canVote:st,handleSelection:()=>h(M,G),hasCorrectAnswers:!!(J&&v),hasVoted:B,i:G,isACorrectAnswer:_,opaque:dt,showCount:lt,showPercent:we,type:g,userChoseThisAnswer:M._id===v})})):t.createElement(U.A,null)}Ae.propTypes={doc:i().shape({_id:i().string}).isRequired,onEngage:i().func.isRequired,onEngageMultipleChoiceOverlay:i().func.isRequired,panelDoc:i().shape({}).isRequired,pollData:i().shape({_id:i().string}).isRequired};function se(e){const r=(0,R.wA)(),{endUserT:n}=(0,C.T9)(),c=(0,R.d4)(V.M3),A=(0,R.d4)(z.x6f),{doc:u,hidden:$,renderer:m,token:E,isMobile:g}=e,{broadcastId:O}=u||{},{loginButtonText:b,questions:x=[],previewData:v}=m,I=x.map(h=>h.pollId).sort(),B=I.join("$");(0,t.useEffect)(()=>{r((0,Q.yk)(u._id,I))},[B]);const S=h=>{h.stopPropagation()},D=(0,t.useCallback)(h=>{h.overrides={class:"multiple_choice"},r((0,te.Qo)("engage",u,h))},[u]),L=(0,t.useCallback)(h=>{r((0,oe.tV)(h))},[u]),q=h=>{if(!h)return null;const{_id:k}=h||{};return t.createElement(Ae,{key:`${O}-${k}`,doc:u,onEngage:D,onEngageMultipleChoiceOverlay:L,panelDoc:u,pollData:h,userLoggedIn:!E})},le=!!v,de=!(E||O&&g);return t.createElement(Ge,{className:w.zl},t.createElement(K.A,{doc:u,kingdom:"panel",visible:!$}),!c&&t.createElement(Xe,{className:w.gd,onClick:()=>r((0,H.to)({kind:"login"}))},b?t.createElement("span",null,n([C.Rq.multipleChoicePanelLoginButtonText,{pageId:A,panelId:u._id}])||b):t.createElement("span",null,n([C.Rq.multipleChoicePanelDefaultLoginButtonText],["ADMIN_LABEL_
212LOGIN_TO_PARTICIPATE"]))),!!m?.description&&t.createElement(Le,null,n([C.Rq.multipleChoicePanelDescription,{pageId:A,panelId:u._id}])||m.description),t.createElement(Ze,null,de&&t.createElement(Ye,{onClick:S}),le?t.createElement(ne.A,{keyField:"_id",list:v},(h,k)=>q(k)):t.createElement(re.A,{collection:"poll",idField:"pollId",list:x||[],loading:U.A},h=>q(h))))}se.propTypes={doc:i().shape({_id:i().string}).isRequired,hidden:i().bool,renderer:i().shape({description:i().string,loginButtonText:i().string,questions:i().arrayOf(i().shape({arrayId:i().string,pollId:i().string}))}).isRequired},se.defaultProps={hidden:void 0};const rt=e=>({isMobile:(0,F.VC)(e),objectId:(0,z.RWC)(e),siteId:(0,z.V2d)(e),token:(0,V.mC)(e),userId:(0,V.F6)(e)}),it=e=>({onLogInClick:()=>e((0,H.JT)())}),at=(0,ee.connect)(rt,it)(se)}}]);

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.