PageSourceSearch

https://acuthai.com/wp-content/plugins/cookie-law-info/legacy/admi…/js/cookie-law-info-ccpa.js?ver=3.5.4

js acuthai.com collected 2026-09-24 13:17:54 UTC 7,331 bytes, 219 lines download raw bytes

1(function( $ ) {
2	'use strict';
3	var CCPA = {
4		ccpaOptedOut: false,
5		ccpaOptOutConfirmationOpen: false,
6		set: function() {
7			this.setCheckboxState();
8			jQuery( document ).on(
9				'click',
10				'.wt-cli-ccpa-opt-out-checkbox',
11				function() {
12					CCPA.ccpaOptedOut = false;
13					if (this.checked === true ) {
14						CCPA.ccpaOptedOut = true;
15					}
16					CCPA.optOutCcpa();
17				}
18			);
19			jQuery( document ).on(
20				'click',
21				'.wt-cli-ccpa-opt-out:not(.wt-cli-ccpa-opt-out-checkbox)',
22				function(){
23					CCPA.showCcpaOptOutConfirmBox();
24				}
25			)
26		},
27		setCheckboxState : function() {
28			var cliConsent       = {};
29			var preferenceCookie = CLI_Cookie.read( CLI_PREFERENCE_COOKIE );
30			if ( preferenceCookie !== null ) {
31				cliConsent = CCPA.parseCookie( preferenceCookie );
32				if ( typeof( cliConsent.ccpaOptout ) !== 'undefined') {
33
34					if ( cliConsent.ccpaOptout === true ) {
35						jQuery( '.wt-cli-ccpa-opt-out-checkbox' ).prop( 'checked',true );
36					} else {
37						jQuery( '.wt-cli-ccpa-opt-out-checkbox' ).prop( 'checked',false );
38					}
39				}
40
41			}
42		},
43		optOutCcpa: function() {
44			var preferenceCookie = CLI_Cookie.read( CLI_PREFERENCE_COOKIE );
45			var cliConsent       = {};
46			if ( preferenceCookie !== null ) {
47				cliConsent = CCPA.parseCookie( preferenceCookie );
48			}
49			cliConsent.ccpaOptout = this.ccpaOptedOut;
50			cliConsent            = JSON.stringify( cliConsent );
51			cliConsent            = window.btoa( cliConsent );
52			CLI_Cookie.set( CLI_PREFERENCE_COOKIE,cliConsent,CLI_ACCEPT_COOKIE_EXPIRE );
53			this.setCheckboxState();
54		},
55		parseCookie: function( preferenceCookie ) {
56			var cliConsent = {};
57			cliConsent     = window.atob( preferenceCookie );
58			cliConsent     = JSON.parse( cliConsent );
59			return cliConsent;
60		},
61		toggleCCPA: function() {
62
63		},
64		checkAuthentication: function() {
65
66		},
67		showCcpaOptOutConfirmBox: function() {
68
69			var css                         = '.cli-alert-dialog-buttons button {\
70                -webkit-box-flex: 1!important;\
71                -ms-flex: 1!important;\
72                flex: 1!important;\
73                -webkit-appearance: none!important;\
74                -moz-appearance: none!important;\
75                appearance: none!important;\
76                margin: 4px!important;\
77                padding: 8px 16px!important;\
78                border-radius: 64px!important;\
79                cursor: pointer!important;\
80                font-weight: 700!important;\
81                font-size: 12px !important;\
82                color: #fff;\
83                text-align: center!important;\
84                text-transform: capitalize;\
85                border: 2px solid #61a229;\
86            } #cLiCcpaOptoutPrompt .cli-modal-dialog{\
87                max-width: 320px;\
88            }\
89            #cLiCcpaOptoutPrompt .cli-modal-content {\
90                box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);\
91            -webkit-box-shadow:0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);\
92            -moz-box-shadow0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);\
93            }\
94            .cli-alert-dialog-content {\
95                font-size: 14px;\
96            }\
97            .cli-alert-dialog-buttons {\
98                padding-top:5px;\
99            }\
100            button.cli-ccpa-button-cancel {\
101                background: transparent !important;\
102                color: #61a229;\
103            }\
104            button.cli-ccpa-button-confirm {\
105                background-color:#61a229;\
106                color:#ffffff;\
107            }';
108			var head                        = document.head || document.getElementsByTagName( 'head' )[0];
109			var style                       = document.createElement( 'style' );
110			var primaryColor                = CLI.settings.button_1_button_colour;
111			var primaryLinkColor            = CLI.settings.button_1_link_colour;
112			var backgroundColor             = CLI.settings.background;
113			var textColor                   = CLI.settings.text;
114			CCPA.ccpaOptOutConfirmationOpen = false;
115			var ccpaPrompt,
116			$this                           = this;
117			(ccpaPrompt = document.createElement( "div" )).classList.add( "cli-modal", "cli-show", "cli-blowup" );
118			ccpaPrompt.id = "cLiCcpaOptoutPrompt";
119			var t         = document.createElement( "div" );
120			t.className   = "cli-modal-dialog";
121			var n         = document.createElement( "div" );
122			n.classList.add( "cli-modal-content","cli-bar-popup" );
123			var o       = document.createElement( "div" );
124			o.className = "cli-modal-body";
125			var p       = document.createElement( "div" );
126			p.classList.add( "wt-cli-element", "cli-container-fluid", "cli-tab-container" );
127			var q       = document.createElement( "div" );
128			q.className = "cli-row";
129			var r       = document.createElement( "div" );
130			r.classList.add( "cli-col-12" );
131			var x = document.createElement( "div" );
132			x.classList.add( "cli-modal-backdrop", "cli-fade", "cli-settings-overlay", "cli-show" );
133			var a       = document.createElement( "button" );
134			var b       = document.createElement( "button" );
135			var c       = document.createElement( "div" );
136			var d       = document.createElement( "div" );
137			d.className = "cli-alert-dialog-content",
138			d.innerText = ccpa_data.opt_out_prompt,
139			c.className = "cli-alert-dialog-buttons";
140			a.className = "cli-ccpa-button-confirm",
141			a.innerText = ccpa_data.opt_out_confirm,
142			a.addEventListener(
143				"click",
144				function() {
145					CCPA.ccpaOptedOut = true,
146					CCPA.optOutCcpa(),
147					document.body.removeChild( ccpaPrompt ),
148					document.body.removeChild( x ),
149					document.body.classList.remove( "cli-modal-open" );
150					head.removeChild( style );
151					if ( Cli_Data.ccpaType === 'ccpa' ) {
152						CLI.enableAllCookies();
153						CLI.accept_close();
154					}
155				}
156			),
157			b.className = "cli-ccpa-button-cancel",
158			b.innerText = ccpa_data.opt_out_cancel,
159			b.addEventListener(
160				"click",
161				function() {
162					CCPA.ccpaOptedOut = false,
163					CCPA.optOutCcpa(),
164					document.body.removeChild( ccpaPrompt ),
165					document.body.removeChild( x ),
166					document.body.classList.remove( "cli-modal-open" );
167					head.removeChild( style );
168					if ( Cli_Data.ccpaType === 'ccpa' ) {
169						CLI.enableAllCookies();
170						CLI.accept_close();
171					}
172				}
173			),
174			ccpaPrompt.addEventListener(
175				"click",
176				function( event ) {
177					event.stopPropagation();
178					if ( ccpaPrompt !== event.target) {
179						return;
180					}
181					document.body.removeChild( ccpaPrompt ),
182					document.body.removeChild( x ),
183					document.body.classList.remove( "cli-modal-open" );
184					head.removeChild( style );
185
186				}
187			),
188			ccpaPrompt.appendChild( t ),
189			t.appendChild( n ),
190			n.appendChild( o ),
191			o.appendChild( p ),
192			p.appendChild( q ),
193			q.appendChild( r ),
194			r.appendChild( d ),
195			r.appendChild( c ),
196			c.appendChild( b ),
197			c.appendChild( a ),
198
199			head.appendChild( style );
200			style.type = 'text/css';
201			if (style.styleSheet) {
202				// This is required for IE8 and below.
203				style.styleSheet.cssText = css;
204			} else {
205				style.appendChild( document.createTextNode( css ) );
206			}
207			document.body.appendChild( ccpaPrompt );
208			document.body.appendChild( x );
209			document.body.classList.add( "cli-modal-open" );
210
211		},
212	}
213	jQuery( document ).ready(
214		function() {
215			CCPA.set();
216		}
217	);
218
219})( jQuery );

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.