"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[958],{6992:(t,e,i)=>{i.d(e,{A:()=>r});var a=i(6427),o=i(6087),s=i(5280),l=i(1835),n=i(790);const r=(0,o.memo)((({title:t,label:e,optionGroup:i="general",optionName:r,disabled:m=!1,narrow:g=!1,premium:d=!1,notificationId:c=""})=>{const p=(0,o.useId)(),[k,h]=(0,s.G)(i,r),{removeNotification:_}=(0,l.h)(),u="gtmkit-settings-field-wrap "+(g?"gtmkit-py-2":"gtmkit-py-4");return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:u,children:(0,n.jsx)(a.BaseControl,{label:d?(0,n.jsxs)(n.Fragment,{children:[t,(0,n.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:p,children:(0,n.jsx)(a.ToggleControl,{label:e,checked:!m&&Boolean(k),onChange:()=>{h(!Boolean(k)),c&&_(c)},disabled:m})})})})}))},237:(t,e,i)=>{i.d(e,{A:()=>r});var a=i(6087),o=i(790);const s=(0,a.memo)((({as:t="h3",title:e="",children:i,className:a="",...s})=>(0,o.jsxs)(t,{...s,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 "+a,children:[e,i]}))),l=(0,a.memo)((({as:t="div",children:e,className:i="",...a})=>(0,o.jsx)(t,{...a,className:"gtmkit-px-8 gtmkit-py-6 "+i,children:e}))),n=(0,a.forwardRef)((({children:t,className:e="",disabled:i=!1,...a},s)=>(0,o.jsx)("div",{...a,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:s,children:t})));n.Header=s,n.Content=l;const r=n},9958:(t,e,i)=>{i.r(e),i.d(e,{default:()=>n});var a=i(7723),o=i(6992),s=i(237),l=i(790);const n=()=>(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.__)("Post Data","gtm-kit")}),(0,l.jsxs)(s.A,{children:[(0,l.jsx)(s.A.Header,{title:(0,a.__)("Post Data Settings","gtm-kit")}),(0,l.jsxs)(s.A.Content,{children:[(0,l.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("Specify which post data elements you wish to include in the dataLayer for use in Google Tag Manager.","gtm-kit")}),(0,l.jsx)(o.A,{title:(0,a.__)("Post type","gtm-kit"),id:"post-type",label:(0,a.__)("Include the type of the current post or archive page.","gtm-kit"),optionName:"datalayer_post_type"}),(0,l.jsx)(o.A,{title:(0,a.__)("Page type","gtm-kit"),id:"page-type",label:(0,a.__)('Include the defined page type. I.e. post, page, product, category, cart, checkout etc. You may override this on page-level and set you own page type i.e. "campaign".',"gtm-kit"),optionName:"datalayer_page_type"}),(0,l.jsx)(o.A,{title:(0,a.__)("Categories","gtm-kit"),id:"categories",label:(0,a.__)("Include the categories of the current post or archive page.","gtm-kit"),optionName:"datalayer_categories"}),(0,l.jsx)(o.A,{title:(0,a.__)("Tags","gtm-kit"),id:"tags",label:(0,a.__)("Include the tags of the current post or archive page.","gtm-kit"),optionName:"datalayer_tags"}),(0,l.jsx)(o.A,{title:(0,a.__)("Post title","gtm-kit"),id:"post-title",label:(0,a.__)("Include the Post ID of the current post.","gtm-kit"),optionName:"datalayer_post_title"}),(0,l.jsx)(o.A,{title:(0,a.__)("Post ID","gtm-kit"),id:"post-id",label:(0,a.__)("Include the Post ID of the current post.","gtm-kit"),optionName:"datalayer_post_id"}),(0,l.jsx)(o.A,{title:(0,a.__)("Post data","gtm-kit"),id:"post-date",label:(0,a.__)("Include the post date.","gtm-kit"),optionName:"datalayer_post_date"}),(0,l.jsx)(o.A,{title:(0,a.__)("Post author name","gtm-kit"),id:"post-author-name",label:(0,a.__)("Include the post author name.","gtm-kit"),optionName:"datalayer_post_author_name"}),(0,l.jsx)(o.A,{title:(0,a.__)("Post author ID","gtm-kit"),id:"post-author-id",label:(0,a.__)("Include the post author ID.","gtm-kit"),optionName:"datalayer_post_author_id"})]})]})]})},1835:(t,e,i)=>{i.d(e,{h:()=>s});var a=i(6087),o=i(282);const s=()=>{var t,e;const{notifications:i,setNotificationStatus:s,isUpdatingNotifications:l}=(0,a.useContext)(o.V2),n=(0,a.useCallback)((t=>s(t,"dismiss")),[s]),r=(0,a.useCallback)((t=>s(t,"remove")),[s]),m=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:n,removeNotification:r,isUpdatingNotifications:l,totalNotifications:m,problemNotifications:g,hasProblems:g>0,hasNotifications:m>0}}},5280:(t,e,i)=>{i.d(e,{G:()=>s});var a=i(6087),o=i(3951);const s=(t,e)=>{const{settings:i,updateStateSettings:s}=(0,a.useContext)(o.ph),l=i?.[t]?.[e];return[l,(0,a.useCallback)((i=>{s(t,e,i)}),[t,e,s])]}}}]);