/home/bonphmya/liebeszauber-magie.de/wp-content/plugins/gtm-kit/assets/admin/838.js
"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[838],{6992:(t,i,e)=>{e.d(i,{A:()=>r});var s=e(6427),n=e(6087),o=e(5280),a=e(1835),l=e(790);const r=(0,n.memo)((({title:t,label:i,optionGroup:e="general",optionName:r,disabled:m=!1,narrow:g=!1,premium:c=!1,notificationId:d=""})=>{const k=(0,n.useId)(),[u,p]=(0,o.G)(e,r),{removeNotification:h}=(0,a.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:i,checked:!m&&Boolean(u),onChange:()=>{p(!Boolean(u)),d&&h(d)},disabled:m})})})})}))},4901:(t,i,e)=>{e.d(i,{A:()=>m});var s=e(7723),n=e(6992),o=e(237),a=e(6087),l=e(3951),r=e(790);const m=(0,a.memo)((({pluginName:t,optionName:i,pluginInactive:e})=>{const{useSettings:m,updateStateSettings:g}=(0,a.useContext)(l.ph);return(0,r.jsxs)(o.A,{disabled:e,children:[(0,r.jsx)(o.A.Header,{title:(0,s.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,s.__)("%s Integration","gtm-kit"),t)}),(0,r.jsx)(o.A.Content,{children:(0,r.jsx)(n.A,{title:(0,s.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,s.__)("Track %s","gtm-kit"),t),label:(0,s.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,s.__)("Activate the %s integration","gtm-kit"),t),optionGroup:"integrations",optionName:i,disabled:e,useSettings:m,updateStateSettings:g})})]})}))},8949:(t,i,e)=>{e.d(i,{A:()=>m});var s=e(7723),n=e(6087),o=e(6427),a=e(237),l=e(8621),r=e(790);const m=(0,n.memo)((({pluginName:t})=>(0,r.jsxs)(a.A,{children:[(0,r.jsx)(a.A.Header,{title:(0,s.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,s.__)("%s is not active","gtm-kit"),t),className:"gtmkit-text-red-600"}),(0,r.jsxs)(a.A.Content,{children:[(0,r.jsx)("p",{className:"gtmkit-mb-6",children:(0,s.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,s.__)("If you haven't installed and activated %s you must do that.","gtm-kit"),t)}),(0,r.jsx)(o.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-sm disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey",onClick:()=>{window.location.href=l.A.getPluginInstallUrl()+t},children:(0,s.sprintf)(
// translators: %s is the name of the plugin.
// translators: %s is the name of the plugin.
(0,s.__)("Install %s","gtm-kit"),t)})]})]})))},237:(t,i,e)=>{e.d(i,{A:()=>r});var s=e(6087),n=e(790);const o=(0,s.memo)((({as:t="h3",title:i="",children:e,className:s="",...o})=>(0,n.jsxs)(t,{...o,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:[i,e]}))),a=(0,s.memo)((({as:t="div",children:i,className:e="",...s})=>(0,n.jsx)(t,{...s,className:"gtmkit-px-8 gtmkit-py-6 "+e,children:i}))),l=(0,s.forwardRef)((({children:t,className:i="",disabled:e=!1,...s},o)=>(0,n.jsx)("div",{...s,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-max-w-screen-lg gtmkit-border-color-grey gtmkit-rounded "+i+(e?"gtmkit-opacity-60":""),ref:o,children:t})));l.Header=o,l.Content=a;const r=l},9680:(t,i,e)=>{e.d(i,{q:()=>r,u:()=>l});var s=e(6427),n=e(6087),o=e(790);const a=t=>{const{Fill:i,Slot:e}=(0,s.createSlotFill)(t),a=(0,n.memo)((({children:t})=>(0,o.jsx)(i,{children:t})));return a.Slot=(0,n.memo)((({fillProps:t})=>(0,o.jsx)(e,{fillProps:t,children:t=>t.length?t:null}))),a},l=a("GravityForms"),r=a("LicenseActivation")},6838:(t,i,e)=>{e.r(i),e.d(i,{default:()=>g});var s=e(8949),n=e(4901),o=e(6087),a=e(3951),l=e(9680),r=e(8621),m=e(790);const g=({integrationID:t,pluginName:i})=>{const{useSettings:e}=(0,o.useContext)(a.ph),g=!r.A.isPluginActive(t),c=g||!e.integrations[t+"_integration"];return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:i}),g?(0,m.jsx)(s.A,{pluginName:i}):null,(0,m.jsx)(n.A,{pluginName:i,optionName:t+"_integration",pluginInactive:g}),"gf"===t?(0,m.jsx)(l.u.Slot,{fillProps:{settingsInactive:c,useSettings:e}}):null]})}},1835:(t,i,e)=>{e.d(i,{h:()=>o});var s=e(6087),n=e(282);const o=()=>{var t,i;const{notifications:e,setNotificationStatus:o,isUpdatingNotifications:a}=(0,s.useContext)(n.V2),l=(0,s.useCallback)((t=>o(t,"dismiss")),[o]),r=(0,s.useCallback)((t=>o(t,"remove")),[o]),m=null!==(t=e?.metrics?.total)&&void 0!==t?t:0,g=null!==(i=e?.metrics?.problem)&&void 0!==i?i:0;return{notifications:e,dismissNotification:l,removeNotification:r,isUpdatingNotifications:a,totalNotifications:m,problemNotifications:g,hasProblems:g>0,hasNotifications:m>0}}},5280:(t,i,e)=>{e.d(i,{G:()=>o});var s=e(6087),n=e(3951);const o=(t,i)=>{const{settings:e,updateStateSettings:o}=(0,s.useContext)(n.ph),a=e?.[t]?.[i];return[a,(0,s.useCallback)((e=>{o(t,i,e)}),[t,i,o])]}}}]);