@@ -2247,7 +2247,7 @@ var demoCSS = i$3`
22472247 margin-bottom: var(--size-huge);
22482248 }
22492249 #guide .text,
2250- #guide #verdict + .scoreExample {
2250+ #guide #label + .scoreExample {
22512251 margin-bottom: var(--size-xhuge);
22522252 }
22532253 #guide p,
@@ -2372,7 +2372,7 @@ var demoCSS = i$3`
23722372 animation: .5s ease-out 0s 2 alternate both paused drawerBump;
23732373 }
23742374 #guide .response,
2375- #verdict p,
2375+ #label p,
23762376 .scoreExample {
23772377 transition: max-height var(--full-lapse) ease-out var(--half-lapse),
23782378 opacity var(--full-lapse) ease-out var(--half-lapse);
@@ -2383,7 +2383,7 @@ var demoCSS = i$3`
23832383 opacity: 0;
23842384 }
23852385 .scored #guide .response,
2386- .scored #verdict p,
2386+ .scored #label p,
23872387 .scored .scoreExample {
23882388 opacity: 1;
23892389 }
@@ -3700,7 +3700,7 @@ class RecaptchaDemo extends s {
37003700 step : { type : String } ,
37013701 /* Result */
37023702 score : { type : String } ,
3703- verdict : { type : String } ,
3703+ label : { type : String } ,
37043704 reason : { type : String } ,
37053705 } ;
37063706
@@ -3715,7 +3715,7 @@ class RecaptchaDemo extends s {
37153715 /* Result */
37163716 this . _score = undefined ;
37173717 this . score = this . _score ;
3718- this . verdict = undefined ;
3718+ this . label = undefined ;
37193719 this . reason = undefined ;
37203720 /* Other */
37213721 this . cleanupGame = ( ) => { } ;
@@ -3852,7 +3852,7 @@ class RecaptchaDemo extends s {
38523852 }
38533853
38543854 handleSubmit ( ) {
3855- if ( this . score && this . verdict ) {
3855+ if ( this . score && this . label ) {
38563856 this . goToNextStep ( ) ;
38573857 return ;
38583858 }
@@ -4179,25 +4179,18 @@ class RecaptchaDemo extends s {
41794179 const score = this . score && this . score . slice ( 0 , 3 ) ;
41804180 const percentage = score && Number ( score ) * 100 ;
41814181 let card = null ;
4182- switch ( this . verdict ) {
4182+ switch ( this . label ) {
41834183 case "Not Bad" :
41844184 card = x `
41854185 <p>reCAPTCHA is ${ percentage || "???" } % confident you're not bad.</p>
41864186 <img alt="Not Bad" src="${ human } " />
41874187 ` ;
41884188 break ;
41894189 case "Bad" :
4190- if ( this . reason ) {
4191- card = x `
4192- <p>Suspicious request. Reason: "${ this . reason } ".</p>
4193- <img alt="Bad" src="${ badbad } " />
4194- ` ;
4195- } else {
4196- card = x `
4197- <p>reCAPTCHA is ${ percentage || "???" } % confident you're not bad.</p>
4198- <img alt="Bad" src="${ badbad } " />
4199- ` ;
4200- }
4190+ card = x `
4191+ <p>Suspicious request. Reason: "${ this . reason } ".</p>
4192+ <img alt="Bad" src="${ badbad } " />
4193+ ` ;
42014194 break ;
42024195 default :
42034196 card = x `
@@ -4209,7 +4202,7 @@ class RecaptchaDemo extends s {
42094202 ` ;
42104203 }
42114204 return x `
4212- <div id="verdict ">
4205+ <div id="label ">
42134206 <div id="score">
42144207 <div class="score">${ score || "–" } </div>
42154208 ${ card }
@@ -4457,10 +4450,10 @@ class RecaptchaDemo extends s {
44574450 animating : this . animating ,
44584451 drawerOpen : this . step !== "game" && this . drawerOpen ,
44594452 drawerClosed : this . step === "game" || ! this . drawerOpen ,
4460- scored : this . score && this . verdict ,
4453+ scored : this . score && this . label ,
44614454 sitemapOpen : this . sitemapOpen ,
44624455 sitemapClosed : ! this . sitemapOpen ,
4463- unscored : ! this . score || ! this . verdict ,
4456+ unscored : ! this . score || ! this . label ,
44644457 } ) } "
44654458 id="demo"
44664459 >
0 commit comments