"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[345],{4901:(t,e,i)=>{i.d(e,{A:()=>r});var n=i(7723),a=i(6992),s=i(237),o=i(6087),l=i(3951),g=i(790);const r=(0,o.memo)((({pluginName:t,optionName:e,pluginInactive:i})=>{const{useSettings:r,updateStateSettings:c}=(0,o.useContext)(l.ph);return(0,g.jsxs)(s.A,{disabled:i,children:[(0,g.jsx)(s.A.Header,{title:(0,n.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,n.__)("%s Integration","gtm-kit"),t)}),(0,g.jsx)(s.A.Content,{children:(0,g.jsx)(a.A,{title:(0,n.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,n.__)("Track %s","gtm-kit"),t),label:(0,n.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,n.__)("Activate the %s integration","gtm-kit"),t),optionGroup:"integrations",optionName:e,disabled:i,useSettings:r,updateStateSettings:c})})]})}))},3345:(t,e,i)=>{i.r(e),i.d(e,{default:()=>c});var n=i(7723),a=i(9566),s=i(8949),o=i(6327),l=i(4901),g=i(237),r=i(790);const c=()=>{const t="Contact Form 7",{pluginInactive:e,settingsInactive:i}=(0,a.q)("cf7","cf7_integration");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,n.__)("Contact Form 7","gtm-kit")}),e?(0,r.jsx)(s.A,{pluginName:t}):null,(0,r.jsx)(l.A,{pluginName:t,optionName:"cf7_integration",pluginInactive:e}),(0,r.jsxs)(g.A,{disabled:i,children:[(0,r.jsx)(g.A.Header,{title:(0,n.__)("Basic Settings","gtm-kit")}),(0,r.jsx)(g.A.Content,{children:(0,r.jsx)(o.A,{title:(0,n.__)("Load JavaScript","gtm-kit"),options:[{label:(0,n.__)("Only on pages where the Contact Form 7 script is registered (recommended).","gtm-kit"),value:1},{label:(0,n.__)("On all pages","gtm-kit"),value:2}],help:(0,n.__)("Where do you want load the JavaScript?","gtm-kit"),optionGroup:"integrations",optionName:"cf7_load_js",disabled:i})})]})]})}}}]);