Current File : /home/virtualki/22346/wp-content/f7bcd45a05c86920dccd19deae5b4442/dist/408735213.js |
"use strict";(self.webpackChunkrealCookieBanner_=self.webpackChunkrealCookieBanner_||[]).push([[668],{66732:(e,t,s)=>{s.d(t,{X:()=>o});var a=s(12719),n=s(59726);function o(){const{__:e}=(0,n.s)();return(0,a.WH)({title:e("Want a better integrated visual content blocker for your website?"),testDrive:!0,feature:"visual-content-blocker",assetName:e("pro-modal/visual-content-blocker.webp"),description:e("Instead of a lot of text, you can offer your visitor a more pleasant way to view blocked content. For example, you can replace your video embeds with a privacy-compliant dummy player with thumbnail, or an embedded map with a preview map.")})}},84200:(e,t,s)=>{function a(e){return e.indexOf(".")>-1&&!!/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/.test(e)}s.d(t,{g:()=>a})},37682:(e,t,s)=>{s.d(t,{y:()=>n});var a=s(3713);const n=(0,s(57922).PA)((()=>(0,a.jsx)("div",{})))},63581:(e,t,s)=>{s.r(t),s.d(t,{DashboardCards:()=>W});var a=s(3713),n=s(43799),o=s(18197),r=s(6099),i=s(92453),l=s(57922),c=s(41594),d=s(23291),u=s(33146),h=s(71951),m=s(30617);const p=(0,l.PA)((()=>{const{optionStore:{others:{cachePlugins:e}}}=(0,h.g)(),t=Object.values(e).join(", ");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"description",children:(0,m.__)("Real Cookie Banner can empty your page cache automatically as soon as a page cache is detected. This means that you do not have to manually clear your page cache if you make changes to the cookie banner via the customizer or if you ask for a new consent.")}),t?(0,a.jsx)(u.A,{status:"success",text:(0,m._i)((0,m.__)("We have detected {{strong}}%s{{/strong}} as your page cache.",t),{strong:(0,a.jsx)("strong",{})})}):(0,a.jsx)(u.A,{status:"default",text:(0,m._i)((0,m.__)("We did {{strong}}not detect{{/strong}} any page cache on your site."),{strong:(0,a.jsx)("strong",{})})})]})}));var _=s(42837),g=s(73491);const x="#/settings",f="#/cookies",b=(0,l.PA)((()=>{const{optionStore:e,cookieStore:{groups:t}}=(0,h.g)(),{isTcf:s,isBannerActive:n,isBlockerActive:r,busySettings:i,cookieCounts:l,isOnlyRcbCookieCreated:c,tcfVendorConfigurationCounts:d}=e,p=n&&r;return(0,a.jsxs)(o.A,{spinning:t.busy||i,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(u.A,{status:n?"success":"error",text:(0,m._i)(n?(0,m.__)("Cookie Banner is {{strong}}activated{{/strong}}"):(0,m.__)("Cookie Banner is {{strong}}deactivated{{/strong}}"),{strong:(0,a.jsx)("strong",{})})}),(0,a.jsx)("p",{className:"description",children:(0,m._i)((0,m.__)("You can enable and disable the cookie banner in the {{a}}settings page{{/a}}."),{a:(0,a.jsx)("a",{href:x})})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(u.A,{status:p?"success":"error",text:(0,m._i)(p?(0,m.__)("Content Blocker is {{strong}}activated{{/strong}}"):(0,m.__)("Content Blocker is {{strong}}deactivated{{/strong}}"),{strong:(0,a.jsx)("strong",{})})}),(0,a.jsx)("p",{className:"description",children:(0,m._i)((0,m.__)("You can enable and disable the content blocker in the {{a}}settings page{{/a}}."),{a:(0,a.jsx)("a",{href:x})})})]}),(0,a.jsxs)("p",{children:[(0,m.__)("Available service groups:")," ",t.sortedGroups.map((e=>{let{data:{name:t,id:s}}=e;return(0,a.jsx)(g.A,{children:t},s)})),"• ",(0,a.jsx)("a",{href:f,children:(0,m.__)("Manage")})]}),(0,a.jsxs)("p",{children:[(0,m._i)((0,m.__)("You have defined {{strong}}%d enabled{{/strong}}, %d disabled and %d draft services.",c?0:l.publish,c?0:l.private,c?0:l.draft),{strong:(0,a.jsx)("strong",{})})," • ",(0,a.jsx)("a",{href:f,children:(0,m.__)("Manage")})]}),s&&d&&(0,a.jsxs)("p",{children:[(0,m._i)((0,m.__)("You have defined {{strong}}%d enabled{{/strong}}, %d disabled and %d draft TCF vendors.",d.publish,d.draft,d.private),{strong:(0,a.jsx)("strong",{})})," • ",(0,a.jsx)("a",{href:"#/cookies/tcf-vendors",children:(0,m.__)("Manage")})]})]})})),y=(0,l.PA)((e=>{let{description:t,links:s,logo:n}=e;return(0,a.jsxs)(a.Fragment,{children:[!!n&&(0,a.jsx)("img",{src:n,style:{maxWidth:"100%",maxHeight:"80px",display:"block",margin:"0 0 10px"}}),!!t&&(0,a.jsx)("p",{className:"description",dangerouslySetInnerHTML:{__html:t}}),null==s?void 0:s.map((e=>{let{link:t,linkText:s}=e;return(0,a.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",className:"button",style:{marginTop:13,marginRight:10},children:s},t)}))]})}));var v=s(41415),j=s(19117),w=s(34650),k=s(24262),A=s(24985),C=s(66732),S=s(84200),T=s(42090),N=s(23110),L=(s(59627),s(12719));const M=(0,l.PA)((()=>{const{message:e}=j.A.useApp(),[t,s]=(0,c.useState)(!1),{optionStore:{dashboardMigration:{id:n,description:r,actions:i},others:{isPro:l}}}=(0,h.g)(),[d,u]=(0,c.useState)({}),[p,_]=(0,c.useState)([]),g=(0,L.WH)({title:(0,m.__)("Want to optimize the cookie banner for mobile users?"),testDrive:!0,feature:"mobile-experience",assetName:(0,m.__)("pro-modal/mobile-optimization.png"),description:(0,m.__)("Cookie banners are a necessary evil that takes up a lot of space, especially on smartphones. With mobile optimization you can customize the cookie banner so that it is more discreet and at the same time easy to read on smartphones.")}),x=(0,C.X)(),f=(0,c.useCallback)((async t=>{let{id:a,callback:o}=t;if("string"==typeof o&&(0,S.g)(o))window.location.href=o;else{s(!0);try{const{success:t,redirect:s,message:o,overrideAction:r}=await(0,T.E)({location:N.a,params:{migration:n,action:a}});t&&(s?window.location.href=s:(e.success(o||(0,m.__)("Successfully saved changes!")),r&&(u((e=>({...e,[a]:r}))),_((e=>[...e,a])))))}catch(e){}finally{s(!1)}}}),[]);return(0,a.jsxs)(o.A,{spinning:t,children:[(0,a.jsx)("p",{className:"description",dangerouslySetInnerHTML:{__html:r}}),(0,a.jsx)(w.A,{itemLayout:"vertical",size:"small",dataSource:Object.values(i),renderItem:e=>{const{id:t,title:s,description:n,linkText:o,linkClasses:r,linkDisabled:i,confirmText:c,previewImage:u,performed:h,performedLabel:_,needsPro:b,info:y}={...e,...d[e.id]||{},...p.indexOf(e.id)>-1?{performed:!0}:{}},j=(0,a.jsx)("button",{className:r,onClick:()=>!c&&f(e),disabled:i,children:o},"apply-link");return(0,a.jsx)(w.A.Item,{actions:[o&&(c?(0,a.jsx)(k.A,{title:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:c}}),placement:"bottomLeft",onConfirm:()=>f(e),cancelText:(0,m.__)("Cancel"),okText:o,overlayStyle:{maxWidth:450},transitionName:null,children:j}):j),h&&(!b||l)&&(0,a.jsxs)("span",{style:{verticalAlign:"middle"},children:[(0,a.jsx)(v.A,{})," ",_||(0,m.__)("Already applied")]}),b&&!l&&(()=>{let e,s;switch(t){case"visual-content-blocker":({modal:e,tag:s}=x);break;case"mobile-experience":({modal:e,tag:s}=g);break;default:return null}return(0,a.jsxs)(a.Fragment,{children:[e," ",(0,a.jsx)("span",{style:{position:"absolute",top:3},children:s})]})})()].filter(Boolean),children:(0,a.jsx)(w.A.Item.Meta,{title:s,description:(0,a.jsxs)(a.Fragment,{children:[u?u.endsWith(".webm")?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,src:u,style:{marginLeft:15,width:272,height:"auto",float:"right",cursor:"pointer"},onClick:e=>e.target.nextElementSibling.click(),children:(0,a.jsx)("source",{src:u,type:"video/webm"})}),(0,a.jsx)(A.A,{width:272,wrapperStyle:{display:"none"},preview:{imageRender:()=>(0,a.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,src:u,children:(0,a.jsx)("source",{src:u,type:"video/webm"})})}})]}):(0,a.jsx)(A.A,{width:272,src:u,wrapperStyle:{marginLeft:15,float:"right"}}):null,(0,a.jsx)("p",{className:"description",dangerouslySetInnerHTML:{__html:n}}),!!y&&(0,a.jsx)("div",{className:"notice notice-info below-h2 notice-alt",style:{marginTop:10},children:(0,a.jsx)("p",{className:"description",dangerouslySetInnerHTML:{__html:y}})})]})})},t)}})]})}));var F=s(2464);const P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};var Y=s(4679),D=function(e,t){return c.createElement(Y.A,(0,F.A)({},e,{ref:t,icon:P}))};const I=c.forwardRef(D);var B=s(64715);const E=(0,l.PA)((()=>{const{message:e}=j.A.useApp(),{cookieStore:t,optionStore:s}=(0,h.g)(),{busySettings:n,others:{isPro:o,isLicensed:r},cloudReleaseInfo:{blocker:i,service:l}}=s,[d,u]=(0,c.useState)(!1),p=(0,c.useCallback)((async()=>{if(!d){u(!0);try{await t.fetchTemplatesServices({storage:"redownload"}),await t.fetchTemplatesBlocker(),await s.fetchCurrentRevision(),e.success("Template database successfully updated. You can see the latest templates now!")}catch(t){e.error(t.responseJSON.message)}finally{u(!1)}}}),[d]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"description",children:(0,m.__)("Templates for hundreds of services that you could be running on your website must be downloaded from Real Cookie Banner's Service Cloud. The data will be downloaded locally to your server, so your website visitors will not need to connect to the cloud.")}),r?(0,a.jsxs)(a.Fragment,{children:[i?(0,a.jsx)("p",{className:"description",children:(0,m._i)((0,m.__)("You have downloaded the service templates the last time on {{u/}}"),{u:(0,a.jsx)(B.A,{title:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:(0,m.__)("Services")}),(0,a.jsx)("br",{}),(0,m.__)("Release ID"),": ",null==l?void 0:l.releaseId,(0,a.jsx)("br",{}),(0,m.__)("Pre-release"),":"," ",(null==l?void 0:l.isPreReleaseEnabled)?(0,m.__)("Yes"):(0,m.__)("No"),(0,a.jsx)("br",{}),(0,a.jsx)("strong",{children:(0,m.__)("Content Blocker")}),(0,a.jsx)("br",{}),(0,m.__)("Release ID"),": ",null==i?void 0:i.releaseId,(0,a.jsx)("br",{}),(0,m.__)("Pre-release"),":"," ",(null==i?void 0:i.isPreReleaseEnabled)?(0,m.__)("Yes"):(0,m.__)("No")]}),children:(0,a.jsx)("u",{style:{textDecoration:"none",borderBottom:"1px dotted #000",cursor:"help"},children:new Date(i.downloadTime).toLocaleString(document.documentElement.lang)})})})}):n?null:(0,a.jsx)("div",{className:"notice notice-error inline below-h2 notice-alt",style:{margin:"10px 0"},children:(0,a.jsx)("p",{className:"description",children:(0,m.__)('An error occurred when trying to download the templates from the Service Cloud for the first time. This means that the scanner will currently not be able to suggest scan results for service templates. The download will be performed again automatically in a few minutes, or click "Update templates" below.')})}),(0,a.jsx)("p",{children:(0,a.jsx)(B.A,{title:(0,m.__)('The template database is downloaded to your WordPress and is updated daily. Click "Update templates" to download the latest version now!'),placement:"bottom",children:(0,a.jsxs)("a",{type:"button",className:"button "+(d?"button-disabled":""),onClick:p,children:[(0,a.jsx)(I,{spin:d})," ",(0,m.__)("Update templates")]})})})]}):n?null:(0,a.jsx)("div",{className:"notice notice-warning inline below-h2 notice-alt",style:{margin:"10px 0"},children:(0,a.jsxs)("p",{className:"description",children:[(0,m.__)("This functionality is only available with a valid license, as the service templates must be downloaded regularly from our cloud service.")," ","•"," ",(0,a.jsx)("a",{href:`#/licensing?navigateAfterActivation=${encodeURIComponent(window.location.href)}`,children:o?(0,m.__)("Activate license"):(0,m.__)("Activate free license")})]})})]})}));var R=s(52624),z=s(37682);const W=(0,l.PA)((()=>{const{statsStore:e,optionStore:t,cookieStore:s,checklistStore:l}=(0,h.g)(),{others:{isPro:u,assetsUrl:g,hints:{dashboardTile:x}},dashboardMigration:f}=t,{filters:{dates:v}}=e,[j,w]=(0,c.useState)();(0,c.useEffect)((()=>{s.groups.get(),t.fetchCurrentRevision()}),[]);const k=l.completed.length<3||f?.5:1,A=(0,c.useMemo)((()=>(0,a.jsx)(n.A,{style:{margin:10,opacity:k},title:(0,m.__)("General"),className:"rcb-dashboard-card-focus",children:(0,a.jsx)(b,{})})),[k]),C=(0,c.useMemo)((()=>f?(0,a.jsx)(n.A,{style:{margin:10},title:f.headline,extra:(0,a.jsx)("a",{href:"#",onClick:()=>t.dismissMigration(),children:(0,m.__)("Dismiss this info")}),children:(0,a.jsx)(M,{})}):null),[f,t]),S=(0,c.useMemo)((()=>(0,a.jsx)(n.A,{style:{margin:10,opacity:f?k:void 0},title:(0,m.__)("Set up the cookie banner"),extra:l.done?null:(0,a.jsx)("a",{href:"#",onClick:()=>l.toggleChecklistItem("all",!0),children:(0,m.__)("I have already done all the steps")}),children:(0,a.jsx)(_.y,{})})),[l.done,f]),T=(0,c.useMemo)((()=>x.map((e=>{let{title:t,...s}=e;return(0,a.jsx)(n.A,{style:{margin:10,opacity:k},title:t,className:"rcb-dashboard-card-focus",children:(0,a.jsx)(y,{...s})},t)}))),[x,k]);return 0===l.items.length?(0,a.jsx)(o.A,{spinning:!0,style:{marginTop:15}}):(0,a.jsx)(o.A,{spinning:l.busyChecklist,style:{marginTop:15},children:(0,a.jsxs)(r.A,{children:[(0,a.jsxs)(i.A,{xl:16,sm:16,xs:24,children:[C,l.done?A:S,(0,a.jsx)(n.A,{style:{margin:10,opacity:k},className:"rcb-dashboard-card-focus",title:(0,m.__)("Statistics"),extra:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:"#/consent",children:(0,m.__)("More statistics")})," • ",(0,a.jsx)(R.U,{value:v,disabled:!0})]}),children:u?(0,a.jsx)(z.y,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.X,{title:(0,m.__)("Want to see detailed statistics about the consents of your visitors?"),inContainer:!0,inContainerElement:j,testDrive:!0,feature:"dashboard-stats",description:(0,m.__)("You can get several statistics about how your users use the cookie banner. This helps you to calculate the total number of users who do not want to be tracked, for example, by extrapolating data from Google Analytics."),showHints:!1,showFomoCouponCounter:l.done}),(0,a.jsx)("div",{ref:w,className:"rcb-antd-modal-mount",style:{height:600,backgroundImage:`url('${g}dashboard-statistics-blured.png')`}})]})})]}),(0,a.jsxs)(i.A,{xl:8,sm:8,xs:24,children:[l.done?S:A,T,(0,a.jsx)(n.A,{style:{margin:10,opacity:k},title:(0,m.__)("Service Cloud"),className:"rcb-dashboard-card-focus",children:(0,a.jsx)(E,{})}),(0,a.jsx)(n.A,{style:{margin:10,opacity:k},title:(0,m.__)("Cache"),className:"rcb-dashboard-card-focus",children:(0,a.jsx)(p,{})})]})]})})}))},52624:(e,t,s)=>{s.d(t,{U:()=>u});var a=s(3713),n=s(38123),o=s.n(n),r=s(32386),i=s(16983);const l=r.A.generatePicker(i.A);var c=s(30617);const{RangePicker:d}=l,u=e=>{const t=o().localeData();return(0,a.jsx)(d,{locale:{lang:{locale:o().locale(),placeholder:(0,c.__)("Select date"),rangePlaceholder:[(0,c.__)("Start date"),(0,c.__)("End date")],today:(0,c.__)("Today"),now:(0,c.__)("Now"),backToToday:(0,c.__)("Back to today"),ok:(0,c.__)("OK"),clear:(0,c.__)("Clear"),month:(0,c.__)("Month"),year:(0,c.__)("Year"),timeSelect:(0,c.__)("Select time"),dateSelect:(0,c.__)("Select date"),monthSelect:(0,c.__)("Choose a month"),yearSelect:(0,c.__)("Choose a year"),decadeSelect:(0,c.__)("Choose a decade"),yearFormat:"YYYY",dateFormat:t.longDateFormat("LL"),dayFormat:"D",dateTimeFormat:t.longDateFormat("LLL"),monthFormat:"MMMM",monthBeforeYear:!0,previousMonth:(0,c.__)("Previous month (PageUp)"),nextMonth:(0,c.__)("Next month (PageDown)"),previousYear:(0,c.__)("Last year (Control + left)"),nextYear:(0,c.__)("Next year (Control + right)"),previousDecade:(0,c.__)("Last decade"),nextDecade:(0,c.__)("Next decade"),previousCentury:(0,c.__)("Last century"),nextCentury:(0,c.__)("Next century")},timePickerLocale:{placeholder:(0,c.__)("Select time")},dateFormat:t.longDateFormat("LL"),dateTimeFormat:t.longDateFormat("LLL"),weekFormat:"YYYY-wo",monthFormat:"YYYY-MM"},...e})}},16741:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(75206),n=s.n(a);function o(e,t,s,a){var o=n().unstable_batchedUpdates?function(e){n().unstable_batchedUpdates(s,e)}:s;return null!=e&&e.addEventListener&&e.addEventListener(t,o,a),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,a)}}}},23797:(e,t,s)=>{function a(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function n(e){var t=e.getBoundingClientRect(),s=document.documentElement;return{left:t.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}s.d(t,{A3:()=>n,XV:()=>a})}}]);
//# sourceMappingURL=https://sourcemap.devowl.io/real-cookie-banner/5.1.6/99004976e0443893a9e4cc1d11d96266/chunk-config-tab-dashboard.lite.js.map