/home/bonphmya/liebeszauber-magie.de/wp-content/plugins/gtm-kit/assets/admin/474.js
"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[474],{237:(e,t,s)=>{s.d(t,{A:()=>a});var i=s(6087),n=s(790);const m=(0,i.memo)((({as:e="h3",title:t="",children:s,className:i="",...m})=>(0,n.jsxs)(e,{...m,className:"gtmkit-font-bold gtmkit-text-lg gtmkit-px-8 gtmkit-py-4 gtmkit-border-b gtmkit-border-color-grey gtmkit-flex gtmkit-items-center "+i,children:[t,s]}))),l=(0,i.memo)((({as:e="div",children:t,className:s="",...i})=>(0,n.jsx)(e,{...i,className:"gtmkit-px-8 gtmkit-py-6 "+s,children:t}))),c=(0,i.forwardRef)((({children:e,className:t="",disabled:s=!1,...i},m)=>(0,n.jsx)("div",{...i,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-max-w-screen-lg gtmkit-border-color-grey gtmkit-rounded "+t+(s?"gtmkit-opacity-60":""),ref:m,children:e})));c.Header=m,c.Content=l;const a=c},9680:(e,t,s)=>{s.d(t,{q:()=>a,u:()=>c});var i=s(6427),n=s(6087),m=s(790);const l=e=>{const{Fill:t,Slot:s}=(0,i.createSlotFill)(e),l=(0,n.memo)((({children:e})=>(0,m.jsx)(t,{children:e})));return l.Slot=(0,n.memo)((({fillProps:e})=>(0,m.jsx)(s,{fillProps:e,children:e=>e.length?e:null}))),l},c=l("GravityForms"),a=l("LicenseActivation")},4474:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var i=s(7723),n=s(6087),m=s(6427),l=s(237),c=s(9132),a=s(790);const r=(0,n.memo)((({className:e=""})=>(0,a.jsx)(m.Icon,{icon:()=>(0,a.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",className:e,children:(0,a.jsx)("path",{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})})));var g=s(9680),o=s(8621);const d=()=>{const{useIsSendingLicenseKey:e,updateLicenseKey:t,useLicenseKey:s,sendLicenseKey:d,deactivateLicense:h,useIsLicenseKeySent:k,useLicenseKeyMessage:x}=(0,n.useContext)(c.BN),p=o.A.getOpportunities();let u=[];Object.entries(p).length&&(u=Object.entries(p.upgrades));const b=p.plugins||{},j=p.theme||{},y=Object.entries(b),N=!!Object.keys(j).length;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,i.__)("Upgrades","gtm-kit")}),u.map((([t,s])=>(0,a.jsxs)(l.A,{children:[(0,a.jsx)(l.A.Header,{title:s.name}),(0,a.jsxs)(l.A.Content,{children:[(0,a.jsx)("h2",{className:"gtmkit-font-bold gtmkit-mb-4",children:s.header}),s.description&&(0,a.jsx)("p",{className:"gtmkit-mb-4",children:s.description}),s.usp.length>0&&(0,a.jsx)("ul",{className:"gtmkit-text-sm gtmkit-mb-8",children:s.usp.map(((e,t)=>(0,a.jsxs)("li",{className:"gtmkit-flex gtmkit-items-center",children:[(0,a.jsx)(r,{})," ",e]},t)))}),(y.length>0||N)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"gtmkit-font-bold gtmkit-mb-4",children:(0,i.__)("Enhanced Compatibility","gtm-kit")}),(0,a.jsx)("p",{className:"gtmkit-mb-6",children:(0,i.__)("Based on the currently active theme and plugins, you will gain the following features tailored specifically to your setup if you upgrade to the GTM Kit Woo Add-On:","gtm-kit")})]}),N&&(0,a.jsxs)("p",{className:"gtmkit-mb-6",children:[(0,a.jsxs)("span",{className:"gtmkit-font-bold",children:[j.name,":"]})," ",(0,i.__)("Your theme is supported with enhanced compatibility.","gtm-kit")," ",j.description]}),y.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:"gtmkit-font-bold gtmkit-text-sm gtmkit-mb-4",children:(0,i.__)("Enhanced Plugin Support:","gtm-kit")}),(0,a.jsx)("ul",{className:"gtmkit-text-sm",children:y.map((([e,t])=>(0,a.jsxs)("li",{className:"gtmkit-mb-4",children:[t.name," -"," ",t.description]},e)))})]}),s.url&&(0,a.jsxs)(m.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base gtmkit-mt-4",onClick:()=>{window.location.href=s.url},children:[(0,a.jsx)("span",{children:s.button_text||(0,i.__)("Learn More","gtm-kit")}),e?(0,a.jsx)(m.Spinner,{}):""]})]})]},t))),(0,a.jsx)(g.q.Slot,{fillProps:{useIsSendingLicenseKey:e,updateLicenseKey:t,useLicenseKey:s,sendLicenseKey:d,deactivateLicense:h,useIsLicenseKeySent:k,useLicenseKeyMessage:x}})]})}}}]);