"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[474],{9680:(e,t,s)=>{s.d(t,{q:()=>a,u:()=>m});var i=s(6427),n=s(6087),l=s(790);const c=e=>{const{Fill:t,Slot:s}=(0,i.createSlotFill)(e),c=(0,n.memo)((({children:e})=>(0,l.jsx)(t,{children:e})));return c.Slot=(0,n.memo)((({fillProps:e})=>(0,l.jsx)(s,{fillProps:e,children:e=>e.length?e:null}))),c},m=c("GravityForms"),a=c("LicenseActivation")},4474:(e,t,s)=>{s.r(t),s.d(t,{default:()=>h});var i=s(7723),n=s(6087),l=s(6427),c=s(237),m=s(9132),a=s(790);const r=(0,n.memo)((({className:e=""})=>(0,a.jsx)(l.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 o=s(9680),d=s(8621),g=s(1840);const h=()=>{const{useIsSendingLicenseKey:e,updateLicenseKey:t,useLicenseKey:s,sendLicenseKey:h,deactivateLicense:u,useIsLicenseKeySent:p,useLicenseKeyMessage:k}=(0,n.useContext)(m.BN),x=d.A.getOpportunities();let j=[];Object.entries(x).length&&(j=Object.entries(x.upgrades));const b=x.plugins||{},y=x.theme||{},L=Object.entries(b),_=!!Object.keys(y).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")}),j.map((([t,s])=>{const n=(0,g.v)(s.url);return(0,a.jsxs)(c.A,{children:[(0,a.jsx)(c.A.Header,{title:s.name}),(0,a.jsxs)(c.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)))}),(L.length>0||_)&&(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")})]}),_&&(0,a.jsxs)("p",{className:"gtmkit-mb-6",children:[(0,a.jsxs)("span",{className:"gtmkit-font-bold",children:[y.name,":"]})," ",(0,i.__)("Your theme is supported with enhanced compatibility.","gtm-kit")," ",y.description]}),L.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:L.map((([e,t])=>(0,a.jsxs)("li",{className:"gtmkit-mb-4",children:[t.name," -"," ",t.description]},e)))})]}),n&&(0,a.jsxs)(l.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=n},children:[(0,a.jsx)("span",{children:s.button_text||(0,i.__)("Learn More","gtm-kit")}),e?(0,a.jsx)(l.Spinner,{}):""]})]})]},t)})),(0,a.jsx)(o.q.Slot,{fillProps:{useIsSendingLicenseKey:e,updateLicenseKey:t,useLicenseKey:s,sendLicenseKey:h,deactivateLicense:u,useIsLicenseKeySent:p,useLicenseKeyMessage:k}})]})}}}]);