@@ -57,6 +57,7 @@ export interface ModalOptions {
5757 actionButtonText ?: string ;
5858 actionButtonLink ?: string ;
5959 position ?: { top : number ; left : number ; name : string } ;
60+ crPin ?: string ;
6061}
6162
6263@customElement ( 'capture-eye-modal' )
@@ -83,6 +84,7 @@ export class CaptureEyeModal extends LitElement {
8384 @state ( ) protected _asset : AssetModel | undefined = undefined ;
8485 @state ( ) protected _assetLoaded = false ;
8586 @state ( ) protected _imageLoaded = false ;
87+ @state ( ) protected _crPin = Constant . crPin . on ;
8688
8789 @query ( '.modal' ) modalElement ! : HTMLDivElement ;
8890
@@ -132,6 +134,9 @@ export class CaptureEyeModal extends LitElement {
132134 this . _imageLoaded = false ;
133135 this . _engagementZones = options . engagementZones ;
134136 }
137+ if ( options . crPin !== undefined ) {
138+ this . _crPin = options . crPin ;
139+ }
135140 this . preloadEngagementZoneImages ( ) ;
136141 if ( options . actionButtonText )
137142 this . _actionButtonText = options . actionButtonText ;
@@ -156,6 +161,7 @@ export class CaptureEyeModal extends LitElement {
156161 this . _asset = undefined ;
157162 this . _assetLoaded = false ;
158163 this . _position = undefined ;
164+ this . _crPin = Constant . crPin . on ;
159165 }
160166
161167 private remToPixels ( rem : number ) : number {
@@ -257,7 +263,7 @@ export class CaptureEyeModal extends LitElement {
257263 /> `
258264 : html `` ;
259265
260- const contentCredentials = this . isC2paSupported ( )
266+ const contentCredentials = this . _crPin !== Constant . crPin . off && this . isC2paSupported ( )
261267 ? html `< div
262268 class ="button-content-credentials " title ="Inspect Content Credentials "
263269 @click =${ this . handleInspectContentCredentials }
0 commit comments