"use strict";(globalThis.webpackChunkgtm_kit=globalThis.webpackChunkgtm_kit||[]).push([[473],{473(t,e,i){i.r(e),i.d(e,{default:()=>m});var a=i(87),o=i(723),n=i(427),g=i(767),s=i(294),l=i(8),r=i(790);const m=()=>{const{useSettings:t,updateStateSettings:e,updateSettings:i,isPending:m}=(0,a.useContext)(s.ph),{useInstallData:c}=(0,a.useContext)(l.p6),d=(0,g.Zp)();return(0,r.jsxs)("div",{className:"gtmkit-text-center",children:[(0,r.jsx)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading",children:(0,o.__)("Essential Settings","gtm-kit")}),(0,r.jsx)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto",children:(0,r.jsx)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey",children:(0,o.__)("There are a lot of settings in GTM Kit and we recommend that you uses our recommended settings but you can also choose to use the default settings and go through the settings at your convenience.","gtm-kit")})}),(0,r.jsx)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto",children:(0,r.jsx)(n.BaseControl,{label:(0,o.__)("Page type","gtm-kit"),id:"page-type",children:(0,r.jsx)(n.ToggleControl,{label:(0,o.__)("Include the page type i.e. page, product, category, cart, checkout etc in the datalayer?","gtm-kit"),checked:t&&t.general.datalayer_page_type,onChange:()=>{e("general","datalayer_page_type",!(t&&t.general.datalayer_page_type))}})})}),c.woocommerce_integration?(0,r.jsx)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto",children:(0,r.jsx)(n.BaseControl,{label:(0,o.__)("Track WooCommerce","gtm-kit"),id:"track-wooCommerce",children:(0,r.jsx)(n.ToggleControl,{label:(0,o.__)("Would you like to track e-commerce data from WooCommerce?","gtm-kit"),checked:t&&t.integrations.woocommerce_integration,onChange:()=>{e("integrations","woocommerce_integration",!(t&&t.integrations.woocommerce_integration))}})})}):null,c.cf7_integration?(0,r.jsx)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto",children:(0,r.jsx)(n.BaseControl,{label:(0,o.__)("Track Contact Form 7","gtm-kit"),id:"track-cf7",children:(0,r.jsx)(n.ToggleControl,{label:(0,o.__)("Would you like to track form submissions from Contact Form 7?","gtm-kit"),checked:t&&t.integrations.cf7_integration,onChange:()=>{e("integrations","cf7_integration",!(t&&t.integrations.cf7_integration))}})})}):null,c.edd_integration?(0,r.jsx)("div",{className:"gtmkit-settings-field-wrap",children:(0,r.jsx)(n.BaseControl,{label:(0,o.__)("Track Easy Digital Downloads","gtm-kit"),id:"track-edd",children:(0,r.jsx)(n.ToggleControl,{label:(0,o.__)("Would you like to track e-commerce data from Easy Digital Downloads?","gtm-kit"),checked:t&&t.integrations.edd_integration,onChange:()=>{e("integrations","edd_integration",!(t&&t.integrations.edd_integration))}})})}):null,(0,r.jsx)("div",{className:"gtmkit-flex gtmkit-mt-12",children:(0,r.jsxs)(n.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(),d("/share-anonymous-data",{replace:!0})},disabled:m,children:[(0,o.__)("Save and continue","gtm-kit"),m?(0,r.jsx)(n.Spinner,{}):""]})})]})}}}]);