"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[761],{6992:(t,e,i)=>{i.d(e,{A:()=>m});var s=i(6427),a=i(6087),n=i(5280),o=i(1835),l=i(790);const m=(0,a.memo)((({title:t,label:e,optionGroup:i="general",optionName:m,disabled:r=!1,narrow:g=!1,premium:c=!1,notificationId:d=""})=>{const k=(0,a.useId)(),[h,u]=(0,n.G)(i,m),{removeNotification:p}=(0,o.h)(),x="gtmkit-settings-field-wrap "+(g?"gtmkit-py-2":"gtmkit-py-4");return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:x,children:(0,l.jsx)(s.BaseControl,{label:c?(0,l.jsxs)(l.Fragment,{children:[t,(0,l.jsx)("span",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-normal gtmkit-rounded-full gtmkit-py-0.5 gtmkit-px-2 gtmkit-h-5 gtmkit-leading-5 gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"})]}):t,id:k,children:(0,l.jsx)(s.ToggleControl,{label:e,checked:!r&&Boolean(h),onChange:()=>{u(!Boolean(h)),d&&p(d)},disabled:r})})})})}))},7722:(t,e,i)=>{i.d(e,{A:()=>g});var s=i(6942),a=i.n(s),n=i(6427),o=i(7723),l=i(7449),m=i(790);const r={variant:{section:"gtmkit-feature-upsell--section",single:"gtmkit-feature-upsell--single"}},g=({children:t,shouldUpsell:e=!0,className:i="",variant:s="section",cardLink:g="",cardText:c=(0,o.__)("Unlock with premium","gtm-kit"),...d})=>{if(!e)return t;const k=g||(0,l.a)("upgrades","upgrades");return(0,m.jsxs)("div",{className:a()("gtmkit-feature-upsell gtmkit-relative gtmkit-max-w-screen-lg",r.variant[s],i),children:[(0,m.jsx)("div",{className:a()("gtmkit-opacity-60",{"gtmkit-space-y-8":"section"===s},{"gtmkit-px-4":"single"===s}),children:t}),(0,m.jsx)("div",{className:"gtmkit-absolute gtmkit-inset-0 gtmkit-ring-1 gtmkit-ring-black gtmkit-ring-opacity-5 gtmkit-shadow-lg gtmkit-rounded-md"}),(0,m.jsx)("div",{className:a()("gtmkit-absolute gtmkit-inset-0 gtmkit-flex gtmkit-items-center",{"gtmkit-justify-center":"section"===s},{"gtmkit-justify-end":"single"===s}),children:(0,m.jsx)(n.Button,{as:"a",className:a()("gtmkit-shadow-lg gtmkit-rounded is-primary",{"gtmkit-text-lg gtmkit-py-6 gtmkit-px-8":"section"===s},{"gtmkit-text-sm gtmkit-py-0.5 gtmkit-px-4 gtmkit-mr-8":"single"===s}),variant:"upsell",onClick:()=>{window.location.href=k},target:"_blank",rel:"noopener",...d,children:c})})]})}},237:(t,e,i)=>{i.d(e,{A:()=>m});var s=i(6087),a=i(790);const n=(0,s.memo)((({as:t="h3",title:e="",children:i,className:s="",...n})=>(0,a.jsxs)(t,{...n,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 "+s,children:[e,i]}))),o=(0,s.memo)((({as:t="div",children:e,className:i="",...s})=>(0,a.jsx)(t,{...s,className:"gtmkit-px-8 gtmkit-py-6 "+i,children:e}))),l=(0,s.forwardRef)((({children:t,className:e="",disabled:i=!1,...s},n)=>(0,a.jsx)("div",{...s,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-max-w-screen-lg gtmkit-border-color-grey gtmkit-rounded "+e+(i?"gtmkit-opacity-60":""),ref:n,children:t})));l.Header=n,l.Content=o;const m=l},1761:(t,e,i)=>{i.r(e),i.d(e,{default:()=>k});var s=i(6087),a=i(7723),n=i(9730),o=i(9132),l=i(790);const m=(0,s.memo)((({label:t,value:e,tag:i})=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{className:"gtmkit-font-bold gtmkit-px-4 gtmkit-py-2",children:(0,l.jsx)("strong",{children:t})}),(0,l.jsx)("td",{className:"gtmkit-px-4 gtmkit-py-2",children:"code"===i?(0,l.jsx)("code",{className:"gtmkit-text-sm",children:e}):(0,l.jsx)("em",{children:e})})]}))),r=()=>{const{useSiteData:t}=(0,s.useContext)(n.p6),e=Object.values(t.shared_data);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey",children:(0,a.__)("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,l.jsx)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey",children:(0,a.__)("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,l.jsx)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm gtmkit-my-6 gtmkit-py-6",children:(0,l.jsx)("tbody",{className:"gtmkit-py-6",children:e.map((function(t,e){return(0,l.jsx)(m,{label:t.label,value:t.value,tag:t.tag},e)}))})})]})};var g=i(6992),c=i(237),d=i(7722);const k=()=>{const{useSiteData:t}=(0,s.useContext)(n.p6),{isPremium:e}=(0,s.useContext)(o.BN);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,a.__)("Misc","gtm-kit")}),(0,l.jsxs)(c.A,{children:[(0,l.jsx)(c.A.Header,{title:(0,a.__)("Automatic Updates","gtm-kit")}),(0,l.jsxs)(c.A.Content,{children:[(0,l.jsx)("p",{className:"gtmkit-my-4 gtmkit-text-color-grey",children:(0,a.__)("New releases of GTM Kit may contain important updates to comply with changes in Google Tag Manager or analytics in general. We recommend enabling automatic plugin updates for GTM Kit to ensure it is always up to date.","gtm-kit")}),(0,l.jsx)("p",{className:"gtmkit-my-4 gtmkit-text-color-grey",children:(0,a.__)("You can, of course, manually update GTM Kit whenever it suits you, but we highly recommend that you regularly update your plugins and themes to the latest versions to keep your site secure.","gtm-kit")}),(0,l.jsx)(g.A,{title:(0,a.__)("Enable Automatic Updates","gtm-kit"),label:(0,a.__)("Automatically update the GTM Kit plugin when new releases are available.","gtm-kit"),optionGroup:"misc",optionName:"auto_update",notificationId:"gtmkit-auto-update"})]})]}),(0,l.jsxs)(c.A,{children:[(0,l.jsx)(c.A.Header,{title:(0,a.__)("Logging and debugging","gtm-kit")}),(0,l.jsxs)(c.A.Content,{children:[(0,l.jsx)("div",{className:"gtmkit-py-2",children:(0,l.jsx)(d.A,{shouldUpsell:!e,variant:"single",children:(0,l.jsx)(g.A,{title:(0,a.__)("Event Inspector","gtm-kit"),label:(0,a.__)("The event inspector is placed in the footer of the frontand and allows you to see all the fired GTM events.","gtm-kit"),optionName:"event_inspector",disabled:!e,premium:e,narrow:!0})})}),(0,l.jsx)(g.A,{title:(0,a.__)("Console log","gtm-kit"),label:(0,a.__)("Log helpful messages and warnings to the browser log.","gtm-kit"),optionName:"console_log",notificationId:"gtmkit-log-active"}),(0,l.jsx)(g.A,{title:(0,a.__)("Debug log","gtm-kit"),label:(0,a.__)('Log the "purchase" event to the debug log.',"gtm-kit"),optionName:"debug_log",notificationId:"gtmkit-log-active"})]})]}),(0,l.jsxs)(c.A,{children:[(0,l.jsx)(c.A.Header,{title:(0,a.__)("Help improve GTM Kit","gtm-kit")}),(0,l.jsxs)(c.A.Content,{children:[(0,l.jsx)(r,{}),(0,l.jsx)("p",{className:"gtmkit-my-4 gtmkit-mb-2 gtmkit-text-color-grey",children:(0,a.__)("GTM Kit will never transmit any domain names or container ID's.","gtm-kit")}),(0,l.jsx)(g.A,{title:(0,a.__)("Share anonymous data","gtm-kit"),label:(0,a.__)("I agree to share anonymous data with the development team to help improve GTM Kit.","gtm-kit"),optionName:"analytics_active"})]})]}),(0,l.jsxs)(c.A,{children:[(0,l.jsx)(c.A.Header,{title:(0,a.__)("About GTM Kit","gtm-kit"),className:"gtmkit-flex gtmkit-items-center",children:(0,l.jsxs)("span",{className:"gtmkit-text-sm gtmkit-text-color-grey gtmkit-font-light gtmkit-ml-2",children:["(",(0,a.__)("Version:","gtm-kit")," ",t.gtmkit_version,")"]})}),(0,l.jsx)(c.A.Content,{children:(0,l.jsxs)("p",{children:[(0,a.__)("Learn about changes and follow the development of GTM Kit:","gtm-kit"),(0,l.jsx)("br",{}),(0,l.jsx)("a",{className:"gtmkit-text-color-primary hover:gtmkit-underline",href:"https://gtmkit.com/changelog/",target:"_blank",rel:"noreferrer",children:(0,a.__)("The changelog","gtm-kit")}),(0,l.jsx)("br",{}),(0,l.jsx)("a",{className:"gtmkit-text-color-primary hover:gtmkit-underline",href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer",children:(0,a.__)("The GitHub repository","gtm-kit")})]})})]})]})}},1835:(t,e,i)=>{i.d(e,{h:()=>n});var s=i(6087),a=i(282);const n=()=>{var t,e;const{notifications:i,setNotificationStatus:n,isUpdatingNotifications:o}=(0,s.useContext)(a.V2),l=(0,s.useCallback)((t=>n(t,"dismiss")),[n]),m=(0,s.useCallback)((t=>n(t,"remove")),[n]),r=null!==(t=i?.metrics?.total)&&void 0!==t?t:0,g=null!==(e=i?.metrics?.problem)&&void 0!==e?e:0;return{notifications:i,dismissNotification:l,removeNotification:m,isUpdatingNotifications:o,totalNotifications:r,problemNotifications:g,hasProblems:g>0,hasNotifications:r>0}}},5280:(t,e,i)=>{i.d(e,{G:()=>n});var s=i(6087),a=i(3951);const n=(t,e)=>{const{settings:i,updateStateSettings:n}=(0,s.useContext)(a.ph),o=i?.[t]?.[e];return[o,(0,s.useCallback)((i=>{n(t,e,i)}),[t,e,n])]}}}]);