"use strict";(globalThis.webpackChunkgtm_kit=globalThis.webpackChunkgtm_kit||[]).push([[193],{193(t,e,i){i.r(e),i.d(e,{default:()=>d});var s=i(87),m=i(723),a=i(427),l=i(767),n=i(294),r=i(8),g=i(790);const d=()=>{const{useSettings:t,updateStateSettings:e,updateSettings:i,isPending:d}=(0,s.useContext)(n.ph),{useSiteData:c}=(0,s.useContext)(r.p6),o=(0,l.Zp)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading gtmkit-text-center",children:(0,m.__)("Help improve GTM Kit","gtm-kit")}),(0,g.jsx)("p",{className:"gtmkit-text-sm gtmkit-mb-4 gtmkit-text-color-grey",children:(0,m.__)("GTM Kit is used together with a wide variety of server configurations and plugins. It is very helpful for us to know what some of these configurations are so we can test the most common configurations.","gtm-kit")}),(0,g.jsx)("p",{className:"gtmkit-text-sm gtmkit-mb-8 gtmkit-text-color-grey",children:(0,m.__)("You can help by sharing anonymous data with us. Below is a detailed view of all data GTM Kit will collect if granted permission:","gtm-kit")}),(0,g.jsx)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm",children:(0,g.jsxs)("tbody",{children:[(0,g.jsxs)("tr",{className:"",children:[(0,g.jsx)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("strong",{children:"Server type:"})}),(0,g.jsx)("td",{className:"gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("code",{className:"gtmkit-text-sm",children:c.web_server})})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("strong",{children:"PHP version number:"})}),(0,g.jsx)("td",{className:"gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("code",{className:"gtmkit-text-sm",children:c.php_version})})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("strong",{children:"WordPress version number:"})}),(0,g.jsx)("td",{className:"gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("code",{className:"gtmkit-text-sm",children:c.wordpress_version})})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("strong",{children:"WordPress multisite:"})}),(0,g.jsx)("td",{className:"gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("code",{className:"gtmkit-text-sm",children:c.multisite?(0,m.__)("Yes","gtm-kit"):(0,m.__)("No","gtm-kit")})})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("strong",{children:"Current theme:"})}),(0,g.jsx)("td",{className:"gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("code",{className:"gtmkit-text-sm",children:c.current_theme})})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("strong",{children:"Current site language:"})}),(0,g.jsx)("td",{className:"gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("code",{className:"gtmkit-text-sm",children:c.locale})})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("strong",{children:"Active plugins:"})}),(0,g.jsx)("td",{className:"gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("em",{children:"Plugin names of all active plugins"})})]}),(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("strong",{children:"Anonymized GTM Kit settings:"})}),(0,g.jsx)("td",{className:"gtmkit-px-2 gtmkit-py-1",children:(0,g.jsx)("em",{children:"Which GTM Kit settings are active"})})]})]})}),(0,g.jsx)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-max !gtmkit-px-8 gtmkit-mx-auto ",children:(0,g.jsx)(a.BaseControl,{label:(0,m.__)("Share anonymous data","gtm-kit"),id:"share-anonymous-data",children:(0,g.jsx)(a.ToggleControl,{label:(0,m.__)("I agree to share anonymous data with the development team to help improve GTM Kit.","gtm-kit"),checked:t&&t.general.analytics_active,onChange:()=>{e("general","analytics_active",!(t&&t.general.analytics_active))}})})}),(0,g.jsx)("div",{className:"gtmkit-flex gtmkit-mt-12",children:(0,g.jsxs)(a.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-6 !gtmkit-px-8 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey",onClick:()=>{i(),o("/automatic-updates",{replace:!0})},disabled:d,children:[(0,m.__)("Save and continue","gtm-kit"),d?(0,g.jsx)(a.Spinner,{}):""]})})]})}}}]);