"use strict";(self.webpackChunkcomplianz_gdpr=self.webpackChunkcomplianz_gdpr||[]).push([[7511],{7511:(t,i,n)=>{n.r(i),n.d(i,{default:()=>u});var a=n(81621),e=n(9588);const u=(0,a.vt)(((t,i)=>({apiRequestActive:!1,pluginAction:"status",wordPressUrl:"#",upgradeUrl:"#",rating:[],statusLoaded:!1,setStatusLoaded:i=>{t({statusLoaded:i})},startPluginAction:(n,a)=>{let u={};t({apiRequestActive:!0}),u.pluginAction=void 0!==a?a:i().pluginAction,u.slug=n;let r=!1;"download"===u.pluginAction&&(r="activate"),e.doAction("plugin_actions",u).then((a=>{t({pluginAction:a.pluginAction,wordPressUrl:a.wordpress_url,upgradeUrl:a.upgrade_url});let e=Math.round(a.star_rating.rating/10,0)/2;t({rating:e,ratingCount:a.star_rating.rating_count,apiRequestActive:!1,statusLoaded:!0}),"activate"===r&&"installed"!==a.pluginAction&&i().startPluginAction(n,a.pluginAction)}))}})))}}]);