Files
WEBtomaste/Atomaste Reference/public_html/wp-content/plugins/complianz-gdpr/settings/build/348.08abf3f718ffd9ea409e.js

1 line
5.4 KiB
JavaScript
Raw Normal View History

2025-12-10 12:17:30 -05:00
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[348,8895],{88895:(e,a,t)=>{t.r(a),t.d(a,{default:()=>l});var n=t(81621),o=t(9588);const r={optin:{labels:["Functional","Statistics","Marketing","Do Not Track","No Choice","No Warning"],categories:["functional","statistics","marketing","do_not_track","no_choice","no_warning"],datasets:[{data:["0","0","0","0","0","0"],backgroundColor:"rgba(46, 138, 55, 1)",borderColor:"rgba(46, 138, 55, 1)",label:"A (default)",fill:"false",borderDash:[0,0]},{data:["0","0","0","0","0","0"],backgroundColor:"rgba(244, 191, 62, 1)",borderColor:"rgba(244, 191, 62, 1)",label:"B",fill:"false",borderDash:[0,0]}],max:5},optout:{labels:["Functional","Statistics","Marketing","Do Not Track","No Choice","No Warning"],categories:["functional","statistics","marketing","do_not_track","no_choice","no_warning"],datasets:[{data:["0","0","0","0","0","0"],backgroundColor:"rgba(46, 138, 55, 1)",borderColor:"rgba(46, 138, 55, 1)",label:"A (default)",fill:"false",borderDash:[0,0]},{data:["0","0","0","0","0","0"],backgroundColor:"rgba(244, 191, 62, 1)",borderColor:"rgba(244, 191, 62, 1)",label:"B",fill:"false",borderDash:[0,0]}],max:5}},s={optin:{labels:["Functional","Statistics","Marketing","Do Not Track","No Choice","No Warning"],categories:["functional","statistics","marketing","do_not_track","no_choice","no_warning"],datasets:[{data:["29","747","174","292","30","10"],backgroundColor:"rgba(46, 138, 55, 1)",borderColor:"rgba(46, 138, 55, 1)",label:"Demo A (default)",fill:"false",borderDash:[0,0]},{data:["3","536","240","389","45","32"],backgroundColor:"rgba(244, 191, 62, 1)",borderColor:"rgba(244, 191, 62, 1)",label:"Demo B",fill:"false",borderDash:[0,0]}],max:5},optout:{labels:["Functional","Statistics","Marketing","Do Not Track","No Choice","No Warning"],categories:["functional","statistics","marketing","do_not_track","no_choice","no_warning"],datasets:[{data:["29","747","174","292","30","10"],backgroundColor:"rgba(46, 138, 55, 1)",borderColor:"rgba(46, 138, 55, 1)",label:"A (default)",fill:"false",borderDash:[0,0]},{data:["3","536","240","389","45","32"],backgroundColor:"rgba(244, 191, 62, 1)",borderColor:"rgba(244, 191, 62, 1)",label:"Demo B",fill:"false",borderDash:[0,0]}],max:5}},l=(0,n.vt)(((e,a)=>({consentType:"optin",setConsentType:a=>{e({consentType:a})},statisticsLoading:!1,consentTypes:[],regions:[],defaultConsentType:"optin",loaded:!1,statisticsData:r,emptyStatisticsData:r,bestPerformerEnabled:!1,daysLeft:"",abTrackingCompleted:!1,labels:[],setLabels:a=>{e({labels:a})},fetchStatisticsData:async()=>{if(!cmplz_settings.is_premium)return void e({saving:!1,loaded:!0,consentType:"optin",consentTypes:["optin","optout"],statisticsData:s,defaultConsentType:"optin",bestPerformerEnabled:!1,regions:"eu",daysLeft:11,abTrackingCompleted:!1});if(e({saving:!0}),a().loaded)return;const{daysLeft:t,abTrackingCompleted:n,consentTypes:r,statisticsData:l,defaultConsentType:i,regions:c,bestPerformerEnabled:d}=await o.doAction("get_statistics_data",{}).then((e=>e)).catch((e=>{console.error(e)}));e({saving:!1,loaded:!0,consentType:i,consentTypes:r,statisticsData:l,defaultConsentType:i,bestPerformerEnabled:d,regions:c,daysLeft:t,abTrackingCompleted:n})}})))},70348:(e,a,t)=>{t.r(a),t.d(a,{default:()=>c});var n=t(51609),o=t(4219),r=t(88895),s=t(86087),l=t(45111),i=t(27723);const c=(0,s.memo)((()=>{const{fields:e,getFieldValue:a,addHelpNotice:t}=(0,o.default)(),{regions:c,abTrackingCompleted:d,daysLeft:b,bestPerformerEnabled:g,loaded:p,fetchStatisticsData:f}=(0,r.default)(),[u,h]=(0,s.useState)(!1),[m,_]=(0,s.useState)(!1);(0,s.useEffect)((()=>{p||f()}),[]),(0,s.useEffect)((()=>{let e=1==a("a_b_testing");h(e);let t=1==a("a_b_testing_buttons");_(t)}),[e]);const k=(e,a,t)=>(0,n.createElement)("div",{className:"cmplz-statistics-status"},(0,n.createElement)(l.default,{name:e,color:a}),t);return(0,s.useEffect)((()=>{let e=(0,i.__)('The conversion graph shows the ratio for the different choices users have. When a user has made a choice, this will be counted as either a converted us