Plugin Directory

Changeset 3149785


Ignore:
Timestamp:
09/11/2024 06:31:31 AM (19 months ago)
Author:
tlamedia
Message:

Update to version 2.0 from GitHub

Location:
gtm-kit
Files:
26 added
88 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gtm-kit/tags/2.0/assets/admin/settings-rtl.css

    r3134629 r3149785  
    1 :root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-right:auto;margin-left:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0{margin-bottom:0}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-right:.5rem}.gtmkit-ml-4{margin-right:1rem}.gtmkit-mr-8{margin-left:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-ml-6{margin-right:1.5rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-h-0{height:0}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2{height:.5rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2{width:.5rem}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-3\/4{width:75%}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-left:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-6{padding-right:1.5rem!important;padding-left:1.5rem!important}.\!gtmkit-px-8{padding-right:2rem!important;padding-left:2rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-16{padding-right:4rem;padding-left:4rem}.gtmkit-px-2{padding-right:.5rem;padding-left:.5rem}.gtmkit-px-20{padding-right:5rem;padding-left:5rem}.gtmkit-px-3{padding-right:.75rem;padding-left:.75rem}.gtmkit-px-4{padding-right:1rem;padding-left:1rem}.gtmkit-px-5{padding-right:1.25rem;padding-left:1.25rem}.gtmkit-px-6{padding-right:1.5rem;padding-left:1.5rem}.gtmkit-px-8{padding-right:2rem;padding-left:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-top:1.5rem}.gtmkit-pb-6,.gtmkit-py-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:right}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit #wpcontent{padding-right:0!important}.gtmkit #wpcontent *,.gtmkit #wpcontent :after,.gtmkit #wpcontent :before{box-sizing:border-box}.gtmkit a{font-size:14px}.gtmkit a:focus{box-shadow:none}.gtmkit p{font-size:14px}.gtmkit .components-button.is-primary{background-color:var(--gtmkit-color-button)}.gtmkit .components-button .components-spinner{margin:0 1rem 0 0}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{font-size:14px;font-weight:600;text-transform:none}.gtmkit .slide-appear,.gtmkit .slide-enter{transform:translateY(100%)}.gtmkit .slide-appear-active,.gtmkit .slide-enter-active{transform:translateY(0);transition:transform .5s ease-in-out}.gtmkit .slide-exit{transform:translateY(0)}.gtmkit .slide-exit-active{transform:translateY(100%);transition:transform .5s ease-in-out}
     1:root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-right:auto;margin-left:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-right:.5rem}.gtmkit-ml-4{margin-right:1rem}.gtmkit-ml-6{margin-right:1.5rem}.gtmkit-mr-2{margin-left:.5rem}.gtmkit-mr-8{margin-left:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-hidden{display:none}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-min{height:-moz-min-content;height:min-content}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-screen-lg{max-width:1024px}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-cursor-pointer{cursor:pointer}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.\!gtmkit-justify-start{justify-content:flex-start!important}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-left:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-0{border-top-width:0}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-background-disabled{background-color:var(--gtmkit-button-disabled-bg)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-error{background-color:var(--gtmkit-color-error)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-3{padding-right:.75rem!important;padding-left:.75rem!important}.\!gtmkit-px-6{padding-right:1.5rem!important;padding-left:1.5rem!important}.\!gtmkit-px-8{padding-right:2rem!important;padding-left:2rem!important}.\!gtmkit-py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-1\.5{padding-right:.375rem;padding-left:.375rem}.gtmkit-px-16{padding-right:4rem;padding-left:4rem}.gtmkit-px-2{padding-right:.5rem;padding-left:.5rem}.gtmkit-px-20{padding-right:5rem;padding-left:5rem}.gtmkit-px-3{padding-right:.75rem;padding-left:.75rem}.gtmkit-px-4{padding-right:1rem;padding-left:1rem}.gtmkit-px-5{padding-right:1.25rem;padding-left:1.25rem}.gtmkit-px-6{padding-right:1.5rem;padding-left:1.5rem}.gtmkit-px-8{padding-right:2rem;padding-left:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-3{padding-bottom:.75rem;padding-top:.75rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.gtmkit-py-px{padding-bottom:1px;padding-top:1px}.gtmkit-pb-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:right}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-leading-\[1\.125rem\]{line-height:1.125rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit #wpcontent{padding-right:0!important}.gtmkit #wpcontent *,.gtmkit #wpcontent :after,.gtmkit #wpcontent :before{box-sizing:border-box}.gtmkit a{font-size:14px}.gtmkit a:focus{box-shadow:none}.gtmkit p{font-size:14px}.gtmkit .components-button.is-primary{background-color:var(--gtmkit-color-button)}.gtmkit .components-button .components-spinner{margin:0 1rem 0 0}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{font-size:14px;font-weight:600;text-transform:none}.gtmkit .slide-appear,.gtmkit .slide-enter{transform:translateY(100%)}.gtmkit .slide-appear-active,.gtmkit .slide-enter-active{transform:translateY(0);transition:transform .5s ease-in-out}.gtmkit .slide-exit{transform:translateY(0)}.gtmkit .slide-exit-active{transform:translateY(100%);transition:transform .5s ease-in-out}
  • gtm-kit/tags/2.0/assets/admin/settings.asset.php

    r3139454 r3149785  
    1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '5675825ba95e3805cc8c');
     1<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives'), 'version' => 'e9e4e88a99fd728885a0');
  • gtm-kit/tags/2.0/assets/admin/settings.css

    r3134629 r3149785  
    1 :root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-left:auto;margin-right:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0{margin-bottom:0}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-left:.5rem}.gtmkit-ml-4{margin-left:1rem}.gtmkit-mr-8{margin-right:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-ml-6{margin-left:1.5rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-h-0{height:0}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2{height:.5rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2{width:.5rem}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-3\/4{width:75%}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.\!gtmkit-px-8{padding-left:2rem!important;padding-right:2rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-16{padding-left:4rem;padding-right:4rem}.gtmkit-px-2{padding-left:.5rem;padding-right:.5rem}.gtmkit-px-20{padding-left:5rem;padding-right:5rem}.gtmkit-px-3{padding-left:.75rem;padding-right:.75rem}.gtmkit-px-4{padding-left:1rem;padding-right:1rem}.gtmkit-px-5{padding-left:1.25rem;padding-right:1.25rem}.gtmkit-px-6{padding-left:1.5rem;padding-right:1.5rem}.gtmkit-px-8{padding-left:2rem;padding-right:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-top:1.5rem}.gtmkit-pb-6,.gtmkit-py-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:left}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit #wpcontent{padding-left:0!important}.gtmkit #wpcontent *,.gtmkit #wpcontent :after,.gtmkit #wpcontent :before{box-sizing:border-box}.gtmkit a{font-size:14px}.gtmkit a:focus{box-shadow:none}.gtmkit p{font-size:14px}.gtmkit .components-button.is-primary{background-color:var(--gtmkit-color-button)}.gtmkit .components-button .components-spinner{margin:0 0 0 1rem}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{font-size:14px;font-weight:600;text-transform:none}.gtmkit .slide-appear,.gtmkit .slide-enter{transform:translateY(100%)}.gtmkit .slide-appear-active,.gtmkit .slide-enter-active{transform:translateY(0);transition:transform .5s ease-in-out}.gtmkit .slide-exit{transform:translateY(0)}.gtmkit .slide-exit-active{transform:translateY(100%);transition:transform .5s ease-in-out}
     1:root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-left:auto;margin-right:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-left:.5rem}.gtmkit-ml-4{margin-left:1rem}.gtmkit-ml-6{margin-left:1.5rem}.gtmkit-mr-2{margin-right:.5rem}.gtmkit-mr-8{margin-right:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-hidden{display:none}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-min{height:-moz-min-content;height:min-content}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-screen-lg{max-width:1024px}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-cursor-pointer{cursor:pointer}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.\!gtmkit-justify-start{justify-content:flex-start!important}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-0{border-top-width:0}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-background-disabled{background-color:var(--gtmkit-button-disabled-bg)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-error{background-color:var(--gtmkit-color-error)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!gtmkit-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.\!gtmkit-px-8{padding-left:2rem!important;padding-right:2rem!important}.\!gtmkit-py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-1\.5{padding-left:.375rem;padding-right:.375rem}.gtmkit-px-16{padding-left:4rem;padding-right:4rem}.gtmkit-px-2{padding-left:.5rem;padding-right:.5rem}.gtmkit-px-20{padding-left:5rem;padding-right:5rem}.gtmkit-px-3{padding-left:.75rem;padding-right:.75rem}.gtmkit-px-4{padding-left:1rem;padding-right:1rem}.gtmkit-px-5{padding-left:1.25rem;padding-right:1.25rem}.gtmkit-px-6{padding-left:1.5rem;padding-right:1.5rem}.gtmkit-px-8{padding-left:2rem;padding-right:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-3{padding-bottom:.75rem;padding-top:.75rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.gtmkit-py-px{padding-bottom:1px;padding-top:1px}.gtmkit-pb-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:left}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-leading-\[1\.125rem\]{line-height:1.125rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit #wpcontent{padding-left:0!important}.gtmkit #wpcontent *,.gtmkit #wpcontent :after,.gtmkit #wpcontent :before{box-sizing:border-box}.gtmkit a{font-size:14px}.gtmkit a:focus{box-shadow:none}.gtmkit p{font-size:14px}.gtmkit .components-button.is-primary{background-color:var(--gtmkit-color-button)}.gtmkit .components-button .components-spinner{margin:0 0 0 1rem}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{font-size:14px;font-weight:600;text-transform:none}.gtmkit .slide-appear,.gtmkit .slide-enter{transform:translateY(100%)}.gtmkit .slide-appear-active,.gtmkit .slide-enter-active{transform:translateY(0);transition:transform .5s ease-in-out}.gtmkit .slide-exit{transform:translateY(0)}.gtmkit .slide-exit-active{transform:translateY(100%);transition:transform .5s ease-in-out}
  • gtm-kit/tags/2.0/assets/admin/settings.js

    r3139454 r3149785  
    1 (()=>{"use strict";var t={251:(t,e,n)=>{var a=n(196),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function m(t,e,n){var a,r={},m=null,c=null;for(a in void 0!==n&&(m=""+n),void 0!==e.key&&(m=""+e.key),void 0!==e.ref&&(c=e.ref),e)s.call(e,a)&&!l.hasOwnProperty(a)&&(r[a]=e[a]);if(t&&t.defaultProps)for(a in e=t.defaultProps)void 0===r[a]&&(r[a]=e[a]);return{$$typeof:i,type:t,key:m,ref:c,props:r,_owner:o.current}}e.Fragment=r,e.jsx=m,e.jsxs=m},893:(t,e,n)=>{t.exports=n(251)},196:t=>{t.exports=window.React}},e={};function n(a){var i=e[a];if(void 0!==i)return i.exports;var r=e[a]={exports:{}};return t[a](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(196),e=n.n(t);const a=window.wp.i18n,i=window.wp.element,r=window.wp.components,s=window.lodash,o=window.wp.apiFetch;var l=n.n(o);l().use(l().createNonceMiddleware(window.gtmkitSettings.nonce)),l().use(l().createRootURLMiddleware(window.gtmkitSettings.root));const m=async(t,e,n=null,a=!1)=>{let i={};try{i=await l()({path:t,method:e,...n&&{data:n}})}catch(n){return console.log(`${e} ${t} Errors:`,n),{[`gtm_kit_api_${e}_${t}_errors`]:!0}}return!0===a?i:!0===i.success?i.data:options},c=(t,e)=>{const n={...t};switch(e.type){case"FETCH_SETTINGS":n.fetchedSettings={...e.payload.fetchedSettings,integrations:e.payload.fetchedSettings.integrations||{}},n.stateSettings=e.payload.stateSettings,n.siteData=e.payload.siteData,n.installData=e.payload.installData,n.isPending=!1,n.canSave=!1,e.payload.fetchedSettings.gtm_kit_api_fetch_settings_errors&&(n.notice=(0,a.__)("An error occurred.","gtm-kit"),n.hasError=!0);break;case"UPDATE_SETTINGS_BEFORE":n.isPending=e.payload.isPending;break;case"UPDATE_SETTINGS":n.fetchedSettings=e.payload.fetchedSettings,n.stateSettings=e.payload.stateSettings,n.isPending=!1,n.canSave=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors,n.notice=e.payload.fetchedSettings.gtm_kit_api_update_settings_errors?(0,a.__)("An error occurred.","gtm-kit"):(0,a.__)("Saved Successfully.","gtm-kit"),n.hasError=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors;break;case"UPDATE_STATE":n.fetchedSettings=e.payload.fetchedSettings||n.fetchedSettings,n.stateSettings=e.payload.stateSettings||n.stateSettings,n.isPending=e.payload.isPending||n.isPending,n.notice=e.payload.notice||n.notice,n.hasError=e.payload.hasError||n.hasError,n.canSave=e.payload.canSave||n.canSave,n.isSendingSystemData=e.payload.isSendingSystemData||n.isSendingSystemData,n.supportTicket=e.payload.supportTicket||n.supportTicket,n.isSendingLicenseKey=e.payload.isSendingLicenseKey||n.isSendingLicenseKey,n.licenseKey=e.payload.licenseKey||n.licenseKey;break;case"SEND_SUPPORT_DATA_BEFORE":n.isSendingSystemData=e.payload.isSendingSystemData||n.isSendingSystemData;break;case"SEND_SUPPORT_DATA":n.isSendingSystemData=!1,n.isSystemDataSent=e.payload.isSystemDataSent||n.isSystemDataSent,n.systemDataMessage=e.payload.systemDataMessage||n.systemDataMessage;break;case"SEND_LICENSE_KEY_BEFORE":n.isSendingLicenseKey=e.payload.isSendingLicenseKey||n.isSendingLicenseKey;break;case"SEND_LICENSE_KEY":n.isSendingLicenseKey=!1,n.isLicenseKeySent=e.payload.isLicenseKeySent||n.isLicenseKeySent,n.licenseKeyMessage=e.payload.licenseKeyMessage||n.licenseKeyMessage}return n},g=(0,i.createContext)(),u=e=>{const[n,a]=(0,i.useReducer)(c,{fetchedSettings:{},stateSettings:{},isPending:!0,notice:"",hasError:!1,canSave:!1,supportTicket:"",isSystemDataSent:!1,systemDataMessage:"",licenseKey:"",isLicensenKeySent:!1,licenseKeyMessage:""}),r=async()=>{const t=window.gtmkitSettings.settings?window.gtmkitSettings.settings:{},e=window.gtmkitSettings.site_data?window.gtmkitSettings.site_data:{},n="wizard"===window.gtmkitSettings.currentPage?window.gtmkitSettings.install_data:{};a({type:"FETCH_SETTINGS",payload:{fetchedSettings:t,stateSettings:t,siteData:e,installData:n}})},o=async t=>{a({type:"UPDATE_STATE",payload:t})};(0,i.useEffect)((()=>{r()}),[]);const l={useDispatch:t=>{a(t)},useUpdateSettings:async()=>{a({type:"UPDATE_SETTINGS_BEFORE",payload:{isPending:!0}});const t=await(e=n.stateSettings,m("gtmkit/v1/set-options","POST",e));var e;a({type:"UPDATE_SETTINGS",payload:{fetchedSettings:t,stateSettings:t}})},useFetchSettings:r,useUpdateState:o,useUpdateStateSettings:async(t,e,a)=>{const i=JSON.parse(JSON.stringify(n.stateSettings));let r;i[t][e]=a,r=!(0,s.isEqual)(i,n.fetchedSettings),o({stateSettings:i,canSave:r})},useImportSettings:async(t,e)=>{const a=JSON.parse(JSON.stringify(n.stateSettings));let i;const r={};r.general={...a.general,...e.general},"integrations"in e&&(r.integrations={...a.integrations,...e.integrations}),i=!(0,s.isEqual)(r,n.fetchedSettings),o({stateSettings:r,canSave:i})},useUpdateSupportTicket:async t=>{o({supportTicket:t})},useSendSystemData:async()=>{a({type:"SEND_SUPPORT_DATA_BEFORE",payload:{isSendingSystemData:!0}});const t=await(e=n.supportTicket,m("gtmkit/v1/send-support-data","POST",e,!0));var e;a({type:"SEND_SUPPORT_DATA",payload:{isSendingSystemData:!1,isSystemDataSent:t.success,systemDataMessage:t.data}})},useUpdateLicenseKey:async t=>{o({licenseKey:t})},useSendLicenseKey:async()=>{a({type:"SEND_LICENSE_KEY_BEFORE",payload:{isSendingLicenseKey:!0}});const t=await(e=n.licenseKey,m("gtmkit/v1/send-license-key","POST",e,!0));var e;a({type:"SEND_LICENSE_KEY",payload:{isSendingLicenseKey:!1,isLicenseKeySent:t.success,licenseKeyMessage:t.data}})},useSettings:n.stateSettings,useIsPending:n.isPending,useNotice:n.notice,useHasError:n.hasError,useCanSave:n.canSave,useSiteData:n.siteData,useInstallData:n.installData,useIsSending:n.isSendingSystemData,useSupportTicket:n.supportTicket,useIsSystemDataSent:n.isSystemDataSent,useSystemDataMessage:n.systemDataMessage,useIsSendingLicenseKey:n.isSendingLicenseKey,useLicenseKey:n.licenseKey,useIsLicenseKeySent:n.isLicenseKeySent,useLicenseKeyMessage:n.licenseKeyMessage,useUserRoles:window.gtmkitSettings.user_roles?window.gtmkitSettings.user_roles:[],isPremium:!!window.gtmkitSettings.isPremium&&window.gtmkitSettings.isPremium};return(0,t.createElement)(g.Provider,{value:l},e.children)};function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},d.apply(this,arguments)}var p;!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(p||(p={}));const h="popstate";function _(t,e){if(!1===t||null==t)throw new Error(e)}function k(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function f(t,e){return{usr:t.state,key:t.key,idx:e}}function S(t,e,n,a){return void 0===n&&(n=null),d({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?E(e):e,{state:n,key:e&&e.key||a||Math.random().toString(36).substr(2,8)})}function b(t){let{pathname:e="/",search:n="",hash:a=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(e+="#"===a.charAt(0)?a:"#"+a),e}function E(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let a=t.indexOf("?");a>=0&&(e.search=t.substr(a),t=t.substr(0,a)),t&&(e.pathname=t)}return e}var v;function y(t,e,n){return void 0===n&&(n="/"),function(t,e,n,a){let i=R(("string"==typeof e?E(e):e).pathname||"/",n);if(null==i)return null;let r=x(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,n)=>t===e[n]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(r);let s=null;for(let t=0;null==s&&t<r.length;++t){let e=M(i);s=G(r[t],e,a)}return s}(t,e,n,!1)}function x(t,e,n,a){void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===a&&(a="");let i=(t,i,r)=>{let s={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};s.relativePath.startsWith("/")&&(_(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(a.length));let o=K([a,s.relativePath]),l=n.concat(s);t.children&&t.children.length>0&&(_(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),x(t.children,e,l,o)),(null!=t.path||t.index)&&e.push({path:o,score:I(o,t.index),routesMeta:l})};return t.forEach(((t,e)=>{var n;if(""!==t.path&&null!=(n=t.path)&&n.includes("?"))for(let n of w(t.path))i(t,e,n);else i(t,e)})),e}function w(t){let e=t.split("/");if(0===e.length)return[];let[n,...a]=e,i=n.endsWith("?"),r=n.replace(/\?$/,"");if(0===a.length)return i?[r,""]:[r];let s=w(a.join("/")),o=[];return o.push(...s.map((t=>""===t?r:[r,t].join("/")))),i&&o.push(...s),o.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const N=/^:[\w-]+$/,C=3,j=2,T=1,U=10,D=-2,P=t=>"*"===t;function I(t,e){let n=t.split("/"),a=n.length;return n.some(P)&&(a+=D),e&&(a+=j),n.filter((t=>!P(t))).reduce(((t,e)=>t+(N.test(e)?C:""===e?T:U)),a)}function G(t,e,n){void 0===n&&(n=!1);let{routesMeta:a}=t,i={},r="/",s=[];for(let t=0;t<a.length;++t){let o=a[t],l=t===a.length-1,m="/"===r?e:e.slice(r.length)||"/",c=O({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},m),g=o.route;if(!c&&l&&n&&!a[a.length-1].route.index&&(c=O({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},m)),!c)return null;Object.assign(i,c.params),s.push({params:i,pathname:K([r,c.pathname]),pathnameBase:H(K([r,c.pathnameBase])),route:g}),"/"!==c.pathnameBase&&(r=K([r,c.pathnameBase]))}return s}function O(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[n,a]=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!0),k("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let a=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((t,e,n)=>(a.push({paramName:e,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return t.endsWith("*")?(a.push({paramName:"*"}),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==t&&"/"!==t&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),a]}(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let r=i[0],s=r.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:a.reduce(((t,e,n)=>{let{paramName:a,isOptional:i}=e;if("*"===a){let t=o[n]||"";s=r.slice(0,r.length-t.length).replace(/(.)\/+$/,"$1")}const l=o[n];return t[a]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),t}),{}),pathname:r,pathnameBase:s,pattern:t}}function M(t){try{return t.split("/").map((t=>decodeURIComponent(t).replace(/\//g,"%2F"))).join("/")}catch(e){return k(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function R(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,a=t.charAt(n);return a&&"/"!==a?null:t.slice(n)||"/"}function L(t,e,n,a){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(a)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(t,e){let n=function(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}(t);return e?n.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)):n.map((t=>t.pathnameBase))}function F(t,e,n,a){let i;void 0===a&&(a=!1),"string"==typeof t?i=E(t):(i=d({},t),_(!i.pathname||!i.pathname.includes("?"),L("?","pathname","search",i)),_(!i.pathname||!i.pathname.includes("#"),L("#","pathname","hash",i)),_(!i.search||!i.search.includes("#"),L("#","search","hash",i)));let r,s=""===t||""===i.pathname,o=s?"/":i.pathname;if(null==o)r=n;else{let t=e.length-1;if(!a&&o.startsWith("..")){let e=o.split("/");for(;".."===e[0];)e.shift(),t-=1;i.pathname=e.join("/")}r=t>=0?e[t]:"/"}let l=function(t,e){void 0===e&&(e="/");let{pathname:n,search:a="",hash:i=""}="string"==typeof t?E(t):t,r=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:r,search:B(a),hash:W(i)}}(i,r),m=o&&"/"!==o&&o.endsWith("/"),c=(s||"."===o)&&n.endsWith("/");return l.pathname.endsWith("/")||!m&&!c||(l.pathname+="/"),l}const K=t=>t.join("/").replace(/\/\/+/g,"/"),H=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),B=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",W=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const $=["post","put","patch","delete"],z=(new Set($),["get",...$]);function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},J.apply(this,arguments)}new Set(z),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const V=t.createContext(null),q=t.createContext(null),Y=t.createContext(null),X=t.createContext(null),Q=t.createContext({outlet:null,matches:[],isDataRoute:!1}),Z=t.createContext(null);function tt(){return null!=t.useContext(X)}function et(){return tt()||_(!1),t.useContext(X).location}function nt(e){t.useContext(Y).static||t.useLayoutEffect(e)}function at(){let{isDataRoute:e}=t.useContext(Q);return e?function(){let{router:e}=function(e){let n=t.useContext(V);return n||_(!1),n}(ct.UseNavigateStable),n=ut(gt.UseNavigateStable),a=t.useRef(!1);return nt((()=>{a.current=!0})),t.useCallback((function(t,i){void 0===i&&(i={}),a.current&&("number"==typeof t?e.navigate(t):e.navigate(t,J({fromRouteId:n},i)))}),[e,n])}():function(){tt()||_(!1);let e=t.useContext(V),{basename:n,future:a,navigator:i}=t.useContext(Y),{matches:r}=t.useContext(Q),{pathname:s}=et(),o=JSON.stringify(A(r,a.v7_relativeSplatPath)),l=t.useRef(!1);return nt((()=>{l.current=!0})),t.useCallback((function(t,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof t)return void i.go(t);let r=F(t,JSON.parse(o),s,"path"===a.relative);null==e&&"/"!==n&&(r.pathname="/"===r.pathname?n:K([n,r.pathname])),(a.replace?i.replace:i.push)(r,a.state,a)}),[n,i,o,s,e])}()}function it(e,n){let{relative:a}=void 0===n?{}:n,{future:i}=t.useContext(Y),{matches:r}=t.useContext(Q),{pathname:s}=et(),o=JSON.stringify(A(r,i.v7_relativeSplatPath));return t.useMemo((()=>F(e,JSON.parse(o),s,"path"===a)),[e,o,s,a])}function rt(e,n,a,i){tt()||_(!1);let{navigator:r}=t.useContext(Y),{matches:s}=t.useContext(Q),o=s[s.length-1],l=o?o.params:{},m=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let c,g=et();if(n){var u;let t="string"==typeof n?E(n):n;"/"===m||(null==(u=t.pathname)?void 0:u.startsWith(m))||_(!1),c=t}else c=g;let d=c.pathname||"/",h=d;if("/"!==m){let t=m.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(t.length).join("/")}let k=y(e,{pathname:h}),f=function(e,n,a,i){var r;if(void 0===n&&(n=[]),void 0===a&&(a=null),void 0===i&&(i=null),null==e){var s;if(null==(s=a)||!s.errors)return null;e=a.matches}let o=e,l=null==(r=a)?void 0:r.errors;if(null!=l){let t=o.findIndex((t=>t.route.id&&void 0!==(null==l?void 0:l[t.route.id])));t>=0||_(!1),o=o.slice(0,Math.min(o.length,t+1))}let m=!1,c=-1;if(a&&i&&i.v7_partialHydration)for(let t=0;t<o.length;t++){let e=o[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=t),e.route.id){let{loaderData:t,errors:n}=a,i=e.route.loader&&void 0===t[e.route.id]&&(!n||void 0===n[e.route.id]);if(e.route.lazy||i){m=!0,o=c>=0?o.slice(0,c+1):[o[0]];break}}}return o.reduceRight(((e,i,r)=>{let s,g=!1,u=null,d=null;var p;a&&(s=l&&i.route.id?l[i.route.id]:void 0,u=i.route.errorElement||ot,m&&(c<0&&0===r?(dt[p="route-fallback"]||(dt[p]=!0),g=!0,d=null):c===r&&(g=!0,d=i.route.hydrateFallbackElement||null)));let h=n.concat(o.slice(0,r+1)),_=()=>{let n;return n=s?u:g?d:i.route.Component?t.createElement(i.route.Component,null):i.route.element?i.route.element:e,t.createElement(mt,{match:i,routeContext:{outlet:e,matches:h,isDataRoute:null!=a},children:n})};return a&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?t.createElement(lt,{location:a.location,revalidation:a.revalidation,component:u,error:s,children:_(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):_()}),null)}(k&&k.map((t=>Object.assign({},t,{params:Object.assign({},l,t.params),pathname:K([m,r.encodeLocation?r.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?m:K([m,r.encodeLocation?r.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),s,a,i);return n&&f?t.createElement(X.Provider,{value:{location:J({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:p.Pop}},f):f}function st(){let e=function(){var e;let n=t.useContext(Z),a=function(e){let n=t.useContext(q);return n||_(!1),n}(gt.UseRouteError),i=ut(gt.UseRouteError);return void 0!==n?n:null==(e=a.errors)?void 0:e[i]}(),n=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),a?t.createElement("pre",{style:i},a):null,null)}const ot=t.createElement(st,null);class lt extends t.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?t.createElement(Q.Provider,{value:this.props.routeContext},t.createElement(Z.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mt(e){let{routeContext:n,match:a,children:i}=e,r=t.useContext(V);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),t.createElement(Q.Provider,{value:n},i)}var ct=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(ct||{}),gt=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(gt||{});function ut(e){let n=function(e){let n=t.useContext(Q);return n||_(!1),n}(),a=n.matches[n.matches.length-1];return a.route.id||_(!1),a.route.id}const dt={};function pt(e){let{to:n,replace:a,state:i,relative:r}=e;tt()||_(!1);let{future:s,static:o}=t.useContext(Y),{matches:l}=t.useContext(Q),{pathname:m}=et(),c=at(),g=F(n,A(l,s.v7_relativeSplatPath),m,"path"===r),u=JSON.stringify(g);return t.useEffect((()=>c(JSON.parse(u),{replace:a,state:i,relative:r})),[c,u,r,a,i]),null}function ht(t){_(!1)}function _t(e){let{basename:n="/",children:a=null,location:i,navigationType:r=p.Pop,navigator:s,static:o=!1,future:l}=e;tt()&&_(!1);let m=n.replace(/^\/*/,"/"),c=t.useMemo((()=>({basename:m,navigator:s,static:o,future:J({v7_relativeSplatPath:!1},l)})),[m,l,s,o]);"string"==typeof i&&(i=E(i));let{pathname:g="/",search:u="",hash:d="",state:h=null,key:k="default"}=i,f=t.useMemo((()=>{let t=R(g,m);return null==t?null:{location:{pathname:t,search:u,hash:d,state:h,key:k},navigationType:r}}),[m,g,u,d,h,k,r]);return null==f?null:t.createElement(Y.Provider,{value:c},t.createElement(X.Provider,{children:a,value:f}))}function kt(t){let{children:e,location:n}=t;return rt(ft(e),n)}function ft(e,n){void 0===n&&(n=[]);let a=[];return t.Children.forEach(e,((e,i)=>{if(!t.isValidElement(e))return;let r=[...n,i];if(e.type===t.Fragment)return void a.push.apply(a,ft(e.props.children,r));e.type!==ht&&_(!1),e.props.index&&e.props.children&&_(!1);let s={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=ft(e.props.children,r)),a.push(s)})),a}t.startTransition,new Promise((()=>{})),t.Component;const St=window.ReactDOM;var bt=n.n(St);function Et(){return Et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Et.apply(this,arguments)}function vt(t,e){if(null==t)return{};var n,a,i={},r=Object.keys(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||(i[n]=t[n]);return i}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const yt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],xt=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(t){}const wt=t.createContext({isTransitioning:!1});new Map;const Nt=t.startTransition;function Ct(e){let{basename:n,children:a,future:i,window:r}=e,s=t.useRef();null==s.current&&(s.current=function(t){return void 0===t&&(t={}),function(t,e,n,a){void 0===a&&(a={});let{window:i=document.defaultView,v5Compat:r=!1}=a,s=i.history,o=p.Pop,l=null,m=c();function c(){return(s.state||{idx:null}).idx}function g(){o=p.Pop;let t=c(),e=null==t?null:t-m;m=t,l&&l({action:o,location:k.location,delta:e})}function u(t){let e="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof t?t:b(t);return n=n.replace(/ $/,"%20"),_(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}null==m&&(m=0,s.replaceState(d({},s.state,{idx:m}),""));let k={get action(){return o},get location(){return t(i,s)},listen(t){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(h,g),l=t,()=>{i.removeEventListener(h,g),l=null}},createHref:t=>e(i,t),createURL:u,encodeLocation(t){let e=u(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){o=p.Push;let a=S(k.location,t,e);n&&n(a,t),m=c()+1;let g=f(a,m),u=k.createHref(a);try{s.pushState(g,"",u)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;i.location.assign(u)}r&&l&&l({action:o,location:k.location,delta:1})},replace:function(t,e){o=p.Replace;let a=S(k.location,t,e);n&&n(a,t),m=c();let i=f(a,m),g=k.createHref(a);s.replaceState(i,"",g),r&&l&&l({action:o,location:k.location,delta:0})},go:t=>s.go(t)};return k}((function(t,e){let{pathname:n="/",search:a="",hash:i=""}=E(t.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),S("",{pathname:n,search:a,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){let n=t.document.querySelector("base"),a="";if(n&&n.getAttribute("href")){let e=t.location.href,n=e.indexOf("#");a=-1===n?e:e.slice(0,n)}return a+"#"+("string"==typeof e?e:b(e))}),(function(t,e){k("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),t)}({window:r,v5Compat:!0}));let o=s.current,[l,m]=t.useState({action:o.action,location:o.location}),{v7_startTransition:c}=i||{},g=t.useCallback((t=>{c&&Nt?Nt((()=>m(t))):m(t)}),[m,c]);return t.useLayoutEffect((()=>o.listen(g)),[o,g]),t.createElement(_t,{basename:n,children:a,location:l.location,navigationType:l.action,navigator:o,future:i})}St.flushSync,t.useId;const jt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Tt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ut=t.forwardRef((function(e,n){let a,{onClick:i,relative:r,reloadDocument:s,replace:o,state:l,target:m,to:c,preventScrollReset:g,unstable_viewTransition:u}=e,d=vt(e,yt),{basename:p}=t.useContext(Y),h=!1;if("string"==typeof c&&Tt.test(c)&&(a=c,jt))try{let t=new URL(window.location.href),e=c.startsWith("//")?new URL(t.protocol+c):new URL(c),n=R(e.pathname,p);e.origin===t.origin&&null!=n?c=n+e.search+e.hash:h=!0}catch(t){}let k=function(e,n){let{relative:a}=void 0===n?{}:n;tt()||_(!1);let{basename:i,navigator:r}=t.useContext(Y),{hash:s,pathname:o,search:l}=it(e,{relative:a}),m=o;return"/"!==i&&(m="/"===o?i:K([i,o])),r.createHref({pathname:m,search:l,hash:s})}(c,{relative:r}),f=function(e,n){let{target:a,replace:i,state:r,preventScrollReset:s,relative:o,unstable_viewTransition:l}=void 0===n?{}:n,m=at(),c=et(),g=it(e,{relative:o});return t.useCallback((t=>{if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(t,a)){t.preventDefault();let n=void 0!==i?i:b(c)===b(g);m(e,{replace:n,state:r,preventScrollReset:s,relative:o,unstable_viewTransition:l})}}),[c,m,g,i,r,a,e,s,o,l])}(c,{replace:o,state:l,target:m,preventScrollReset:g,relative:r,unstable_viewTransition:u});return t.createElement("a",Et({},d,{href:a||k,onClick:h||s?i:function(t){i&&i(t),t.defaultPrevented||f(t)},ref:n,target:m}))})),Dt=t.forwardRef((function(e,n){let{"aria-current":a="page",caseSensitive:i=!1,className:r="",end:s=!1,style:o,to:l,unstable_viewTransition:m,children:c}=e,g=vt(e,xt),u=it(l,{relative:g.relative}),d=et(),p=t.useContext(q),{navigator:h,basename:k}=t.useContext(Y),f=null!=p&&function(e,n){void 0===n&&(n={});let a=t.useContext(wt);null==a&&_(!1);let{basename:i}=function(e){let n=t.useContext(V);return n||_(!1),n}(Pt.useViewTransitionState),r=it(e,{relative:n.relative});if(!a.isTransitioning)return!1;let s=R(a.currentLocation.pathname,i)||a.currentLocation.pathname,o=R(a.nextLocation.pathname,i)||a.nextLocation.pathname;return null!=O(r.pathname,o)||null!=O(r.pathname,s)}(u)&&!0===m,S=h.encodeLocation?h.encodeLocation(u).pathname:u.pathname,b=d.pathname,E=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;i||(b=b.toLowerCase(),E=E?E.toLowerCase():null,S=S.toLowerCase()),E&&k&&(E=R(E,k)||E);const v="/"!==S&&S.endsWith("/")?S.length-1:S.length;let y,x=b===S||!s&&b.startsWith(S)&&"/"===b.charAt(v),w=null!=E&&(E===S||!s&&E.startsWith(S)&&"/"===E.charAt(S.length)),N={isActive:x,isPending:w,isTransitioning:f},C=x?a:void 0;y="function"==typeof r?r(N):[r,x?"active":null,w?"pending":null,f?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(N):o;return t.createElement(Ut,Et({},g,{"aria-current":C,className:y,ref:n,style:j,to:l,unstable_viewTransition:m}),"function"==typeof c?c(N):c)}));var Pt,It;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Pt||(Pt={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(It||(It={}));const Gt=({title:e})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("header",{className:"gtmkit-px-8 gtmkit-py-6 gtmkit-sticky"},(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-items-center gtmkit-justify-between"},(0,t.createElement)("h1",{className:"gtmkit-flex gtmkit-items-center gtmkit-font-medium gtmkit-text-3xl"},(0,t.createElement)("svg",{className:"gtmkit-mr-8",height:"44",viewBox:"0 0 160 54",width:"128",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{fill:"#888",height:"54",rx:"4.265",width:"160"}),(0,t.createElement)("path",{d:"m88.659 7.002h-49.266c-2.915 0-5.378-.184-9.23 2.596l-18.743 12.752c-4.549 3.292-4.571 6.001 0 9.302l18.743 12.751c3.652 2.646 6.299 2.597 9.23 2.597h15.686 33.58c2.931-.057 5.394-1.784 5.34-3.923v-32.21c-.012-2.134-2.409-3.865-5.34-3.865z",fill:"#3969bb",transform:"matrix(-1 0 0 -1 101.999867 53.999547)"}),(0,t.createElement)("g",{fill:"#fff",transform:"matrix(1.465202 0 0 1.465202 -4.582436 -7.553126)"},(0,t.createElement)("path",{d:"m18.316 23.086h4.632v6.052c-.75.245-1.459.415-2.121.514-.663.098-1.341.148-2.033.148-1.764 0-3.106-.517-4.035-1.554-.929-1.034-1.395-2.519-1.395-4.457 0-1.886.538-3.356 1.617-4.41 1.078-1.054 2.573-1.579 4.481-1.579 1.2 0 2.357.239 3.469.718l-.823 1.979c-.85-.425-1.737-.637-2.657-.637-1.071 0-1.932.358-2.572 1.077-.645.718-.968 1.685-.968 2.899 0 1.267.26 2.233.78 2.904.516.667 1.271.999 2.262.999.517 0 1.041-.052 1.572-.158v-2.435h-2.209zm11.912 6.555h-2.474v-9.614h-3.173v-2.06h8.816v2.06h-3.169zm9.908 0-2.811-9.158h-.072c.103 1.863.154 3.105.154 3.728v5.43h-2.213v-11.674h3.368l2.764 8.927h.048l2.934-8.927h3.369v11.674h-2.308v-5.525c0-.261 0-.561.009-.903.009-.341.048-1.246.112-2.716h-.074l-3.011 9.144z"}),(0,t.createElement)("path",{d:"m88.883 31.898h-3.811l-4.147-6.67-1.417 1.018v5.652h-3.357v-15.83h3.357v7.242l1.318-1.861 4.293-5.381h3.724l-5.523 7.006zm1.589-15.233c0-1.075.6-1.614 1.8-1.614 1.199 0 1.798.539 1.798 1.614 0 .512-.148.91-.45 1.196-.297.284-.749.429-1.348.429-1.2 0-1.8-.543-1.8-1.625zm3.449 15.233h-3.302v-12.104h3.302zm8.563-2.413c.578 0 1.271-.128 2.077-.38v2.456c-.82.37-1.831.552-3.031.552-1.324 0-2.28-.333-2.885-1.001-.602-.667-.902-1.668-.902-3.003v-5.835h-1.585v-1.399l1.823-1.103.949-2.557h2.115v2.579h3.388v2.48h-3.388v5.835c0 .467.129.815.393 1.041.264.222.614.335 1.046.335z"}))),e)))),Ot=({to:e,title:n})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Dt,{to:e,className:({isActive:t})=>"gtmkit-border-b-4 gtmkit-border-white gtmkit-text-color-grey gtmkit-font-semibold gtmkit-pt-5 gtmkit-pb-[18px] hover:gtmkit-border-color-grey "+(t?"gtmkit-text-color-heading gtmkit-border-b-color-primary ":"")},n)),Mt=({NavList:e})=>(0,t.createElement)("nav",{className:"gtmkit-flex gtmkit-flex-wrap gtmkit-items-center gtmkit-px-8 gtmkit-border-y gtmkit-bg-white gtmkit-border-color-border gtmkit-text-[15px] gtmkit-space-x-9"},e.map((function(e){return(0,t.createElement)(Ot,{key:e.to,to:e.to,title:e.title})})));function Rt(){return Rt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Rt.apply(this,arguments)}function Lt(t,e){if(null==t)return{};var n,a,i={},r=Object.keys(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||(i[n]=t[n]);return i}function At(t,e){return At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},At(t,e)}function Ft(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,At(t,e)}function Kt(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Ht=e().createContext(null);var Bt=function(t){return t.scrollTop},Wt="unmounted",$t="exited",zt="entering",Jt="entered",Vt="exiting",qt=function(t){function n(e,n){var a;a=t.call(this,e,n)||this;var i,r=n&&!n.isMounting?e.enter:e.appear;return a.appearStatus=null,e.in?r?(i=$t,a.appearStatus=zt):i=Jt:i=e.unmountOnExit||e.mountOnEnter?Wt:$t,a.state={status:i},a.nextCallback=null,a}Ft(n,t),n.getDerivedStateFromProps=function(t,e){return t.in&&e.status===Wt?{status:$t}:null};var a=n.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==zt&&n!==Jt&&(e=zt):n!==zt&&n!==Jt||(e=Vt)}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,a=this.props.timeout;return t=e=n=a,null!=a&&"number"!=typeof a&&(t=a.exit,e=a.enter,n=void 0!==a.appear?a.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===zt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:bt().findDOMNode(this);n&&Bt(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$t&&this.setState({status:Wt})},a.performEnter=function(t){var e=this,n=this.props.enter,a=this.context?this.context.isMounting:t,i=this.props.nodeRef?[a]:[bt().findDOMNode(this),a],r=i[0],s=i[1],o=this.getTimeouts(),l=a?o.appear:o.enter;t||n?(this.props.onEnter(r,s),this.safeSetState({status:zt},(function(){e.props.onEntering(r,s),e.onTransitionEnd(l,(function(){e.safeSetState({status:Jt},(function(){e.props.onEntered(r,s)}))}))}))):this.safeSetState({status:Jt},(function(){e.props.onEntered(r)}))},a.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),a=this.props.nodeRef?void 0:bt().findDOMNode(this);e?(this.props.onExit(a),this.safeSetState({status:Vt},(function(){t.props.onExiting(a),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:$t},(function(){t.props.onExited(a)}))}))}))):this.safeSetState({status:$t},(function(){t.props.onExited(a)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(a){n&&(n=!1,e.nextCallback=null,t(a))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:bt().findDOMNode(this),a=null==t&&!this.props.addEndListener;if(n&&!a){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=i[0],s=i[1];this.props.addEndListener(r,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===Wt)return null;var n=this.props,a=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Lt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e().createElement(Ht.Provider,{value:null},"function"==typeof a?a(t,i):e().cloneElement(e().Children.only(a),i))},n}(e().Component);function Yt(){}qt.contextType=Ht,qt.propTypes={},qt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yt,onEntering:Yt,onEntered:Yt,onExit:Yt,onExiting:Yt,onExited:Yt},qt.UNMOUNTED=Wt,qt.EXITED=$t,qt.ENTERING=zt,qt.ENTERED=Jt,qt.EXITING=Vt;const Xt=qt;var Qt=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return a=e,void((n=t).classList?n.classList.remove(a):"string"==typeof n.className?n.className=Kt(n.className,a):n.setAttribute("class",Kt(n.className&&n.className.baseVal||"",a)));var n,a}))},Zt=function(t){function n(){for(var e,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var a=e.resolveArguments(t,n),i=a[0],r=a[1];e.removeClasses(i,"exit"),e.addClass(i,r?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var a=e.resolveArguments(t,n),i=a[0],r=a[1]?"appear":"enter";e.addClass(i,r,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var a=e.resolveArguments(t,n),i=a[0],r=a[1]?"appear":"enter";e.removeClasses(i,r),e.addClass(i,r,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,a="string"==typeof n,i=a?(a&&n?n+"-":"")+t:n[t];return{baseClassName:i,activeClassName:a?i+"-active":n[t+"Active"],doneClassName:a?i+"-done":n[t+"Done"]}},e}Ft(n,t);var a=n.prototype;return a.addClass=function(t,e,n){var a=this.getClassNames(e)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&i&&(a+=" "+i),"active"===n&&t&&Bt(t),a&&(this.appliedClasses[e][n]=a,function(t,e){t&&e&&e.split(" ").forEach((function(e){return a=e,void((n=t).classList?n.classList.add(a):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,a)||("string"==typeof n.className?n.className=n.className+" "+a:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+a)));var n,a}))}(t,a))},a.removeClasses=function(t,e){var n=this.appliedClasses[e],a=n.base,i=n.active,r=n.done;this.appliedClasses[e]={},a&&Qt(t,a),i&&Qt(t,i),r&&Qt(t,r)},a.render=function(){var t=this.props,n=(t.classNames,Lt(t,["classNames"]));return e().createElement(Xt,Rt({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(e().Component);Zt.defaultProps={classNames:""},Zt.propTypes={};const te=Zt,ee=({title:e=(0,a.__)("Save","gtm-kit"),className:n="gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey"})=>{const{useUpdateSettings:s,useIsPending:o,useCanSave:l}=(0,i.useContext)(g);return(0,t.createElement)(r.Button,{className:n,onClick:()=>s(),variant:"primary",disabled:o||!l},l?(0,a.__)(e,"gtm-kit"):(0,a.__)("Saved","gtm-kit"),o?(0,t.createElement)(r.Spinner,null):"")},ne=()=>{const{useCanSave:e}=(0,i.useContext)(g);return(0,t.createElement)(te,{in:e,timeout:500,classNames:"slide",unmountOnExit:!0},(0,t.createElement)("footer",{className:"gtmkit-fixed gtmkit-bottom-0 gtmkit-w-full gtmkit-z-10 gtmkit-bg-color-grey gtmkit-text-white gtmkit-p-8"},(0,t.createElement)(ee,null)))},ae=({subject:e})=>{const n=!0===e||"on"===e,i=!0===n?"gtmkit-bg-color-success":"gtmkit-bg-color-button-disabled";return(0,t.createElement)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-2 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase "+i},n?(0,a.__)("Active","gtm-kit"):(0,a.__)("Inactive","gtm-kit"))},ie=(0,i.forwardRef)((({children:e,className:n="",...a},i)=>(0,t.createElement)("div",{...a,className:"gtmkit-flex gtmkit-flex-col gtmkit-min-h-[128px] gtmkit-bg-white gtmkit-border gtmkit-border-color-border gtmkit-mb-6 gtmkit-py-4 gtmkit-px-5 gtmkit-rounded gtmkit-group gtmkit-w-full "+n,ref:i},e)));ie.Header=({as:e="h3",title:n="",children:a,className:i="",...r})=>(0,t.createElement)("div",{...r,className:"gtmkit-flex gtmkit-justify-between gtmkit-items-center gtmkit-mb-5 "+i},(0,t.createElement)(e,{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading"},n),a),ie.Content=({as:e="div",children:n,className:a="gtmkit-flex-auto",...i})=>(0,t.createElement)(e,{...i,className:a},n),ie.Button=({url:e,destination:n,newTab:a=!1,text:i,group:s="",...o})=>{const l=at();return(0,t.createElement)("div",{...o,className:"gtmkit-mt-4 gtmkit-mb-0.5"},(0,t.createElement)(r.Button,{variant:"primary",className:"gtmkit-rounded !gtmkit-py-4 !gtmkit-px-8 gtmkit-w-full sm:gtmkit-w-auto gtmkit-min-w-[225px]",onClick:()=>{n&&e&&!1===a?window.gtmkitSettings.current_poage===s?l(n,{replace:!0}):window.location.href=e+"#"+n:e?a?window.open(e):window.location.href=e:l(n,{replace:!0})}},(0,t.createElement)("span",{className:"gtmkit-mx-auto gtmkit-text-sm gtmkit-font-bold"},i)))};const re=ie,se=({title:e,data:n,className:r=""})=>{const{useSettings:s}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8 gtmkit-mt-6"},e),(0,t.createElement)("div",{className:"lg:gtmkit-grid lg:gtmkit-grid-cols-2 xl:gtmkit-grid-cols-3 gtmkit-justify-between gtmkit-gap-6 gtmkit-border-b gtmkit-border-color-border gtmkit-pb-6 gtmkit-min-h-[175px] "+r},n.map(((e,n)=>!1===e.featured?null:(0,t.createElement)(re,{key:n},(0,t.createElement)(re.Header,{title:e.title},e.pill?(0,t.createElement)(ae,{subject:s[e.group][e.option]}):null),(0,t.createElement)(re.Content,null,e.text.map(((e,n)=>(0,t.createElement)("p",{key:n},e)))),(0,t.createElement)(re.Button,{url:e.link.url,destination:e.link.destination,text:e.link.text?e.link.text:(0,a.__)("Read article","gtm-kit"),newTab:e.link.external,group:e.group}))))))},oe=t=>((t,e,n)=>{const a=(t,n)=>({...n,title:t.title,to:t.path,group:t.group||n.group,option:t.option||n.option,text:[t.description],link:{...n.link,url:window.gtmkitSettings[e+"Url"],destination:"/"+t.path}});return"templates"===e?Object.keys(t).map((e=>a(t[e][0],n))):Object.keys(t).map((e=>a(t[e],n)))})(window.gtmkitSettings[t],t,function(t){switch(t){case"integrations":return{pill:!0,group:"integrations",option:null,link:{internal:!0,text:(0,a.__)("Setup Integration","gtm-kit")}};case"templates":return{pill:!1,group:null,option:null,link:{internal:!0,text:(0,a.__)("Get Template","gtm-kit")}};default:return{pill:!1,group:null,option:null,link:{internal:!0,text:(0,a.__)("Read More","gtm-kit")}}}}(t)),le=()=>{const{useSettings:e}=(0,i.useContext)(g),[n,r]=(0,i.useState)(window.gtmkitSettings.tutorials),s=Boolean(e.general.sgtm_domain&&e.general.sgtm_domain.trim());return(0,i.useEffect)((()=>{r((t=>[...t,{title:(0,a.__)("See all tutorials","gtm-kit"),text:[(0,a.__)("See all our tutorials and get the most out of GTM Kit","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=documentation&utm_content=dashboard-tutorials",text:(0,a.__)("Read articles","gtm-kit")},featured:!0}]))}),[]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("General","gtm-kit")),(0,t.createElement)("div",{className:"lg:gtmkit-grid lg:gtmkit-grid-cols-2 xl:gtmkit-grid-cols-3 lg:gtmkit-justify-between gtmkit-gap-6 gtmkit-border-b gtmkit-border-color-border gtmkit-pb-6 gtmkit-min-h-[175px]"},(0,t.createElement)(re,null,(0,t.createElement)(re.Header,{title:"Google Tag Manager Container"},(0,t.createElement)(ae,{subject:e.general.gtm_id&&e.general.container_active})),(0,t.createElement)(re.Content,null,e.general.gtm_id&&e.general.container_active?(0,t.createElement)("p",null,(0,a.__)("Container ID:","gtm-kit")," ",e&&e.general.gtm_id):(0,t.createElement)("p",null,(0,a.__)("The container is not active but the datalayer is generated.","gtm-kit"))),(0,t.createElement)(re.Button,{destination:"/container",text:(0,a.__)("Edit container","gtm-kit")})),(0,t.createElement)(re,null,(0,t.createElement)(re.Header,{title:(0,a.__)("Server-side GTM","gtm-kit")},(0,t.createElement)(ae,{subject:s})),(0,t.createElement)(re.Content,null,(0,t.createElement)("p",null,(0,a.__)("Server-side tagging is a silver bullet that gives you improved data accuracy, performance, privacy, and flexibility.","gtm-kit"))),(0,t.createElement)(re.Button,{destination:"/container",text:(0,a.__)("Edit container","gtm-kit")})),(0,t.createElement)(re,null,(0,t.createElement)(re.Header,{title:(0,a.__)("Help improve GTM Kit","gtm-kit")},(0,t.createElement)(ae,{subject:e.general.analytics_active})),(0,t.createElement)(re.Content,null,(0,t.createElement)("p",null,(0,a.__)("Share anonymous data with the development team to help improve GTM Kit.","gtm-kit"))),(0,t.createElement)(re.Button,{destination:"/misc",text:(0,a.__)("Share anonymous data","gtm-kit")}))),(0,t.createElement)(se,{title:(0,a.__)("Tutorials","gtm-kit"),data:n}),(0,t.createElement)(se,{title:(0,a.__)("Integrations","gtm-kit"),data:oe("integrations")}))},me=({title:e,placeholder:n,help:a,className:i="gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",optionGroup:s="general",optionName:o,isDisabled:l,useSettings:m,useUpdateStateSettings:c})=>(0,t.createElement)(r.TextControl,{label:e,placeholder:n,help:a,className:i,value:m[s][o],onChange:t=>c(s,o,t),disabled:l}),ce=({title:e,label:n,optionGroup:a="general",optionName:i,disabled:s=!1,useSettings:o,useUpdateStateSettings:l})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-py-4"},(0,t.createElement)(r.BaseControl,{label:e},(0,t.createElement)(r.ToggleControl,{label:n,checked:!s&&o[a][i],onChange:()=>{l(a,i,!(o&&o[a][i]))},disabled:s})))),ge=({title:e,options:n,help:a,className:i="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:s="general",optionName:o,disabled:l,useSettings:m,useUpdateStateSettings:c})=>(0,t.createElement)(r.RadioControl,{label:e,options:n,help:a,className:i,selected:parseInt(m[s][o]),onChange:t=>c(s,o,t),disabled:l}),ue=({title:e,help:n,items:a=[],optionGroup:s="general",optionName:o,disabled:l=!1,useSettings:m,useUpdateStateSettings:c})=>{const g=Array.isArray(m[s][o])?m[s][o]:[],[u,d]=(0,i.useState)(g);return(0,i.useEffect)((()=>{const t=Array.isArray(m[s][o])?m[s][o]:[];d(t)}),[m]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-py-4"},(0,t.createElement)(r.BaseControl,{label:e,help:n},a.map((e=>(0,t.createElement)(r.CheckboxControl,{key:e.role,label:e.name,disabled:l,checked:u.includes(e.role),onChange:t=>((t,e)=>{d((n=>{let a;return a=t?[...n,e]:n.filter((t=>t!==e)),c(s,o,a),a}))})(t,e.role)}))))))};var de=n(893);const pe=(0,i.forwardRef)((({children:t,className:e="",disabled:n=!1,...a},i)=>(0,de.jsx)("div",{...a,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-w-3/4 gtmkit-border-color-grey "+e+(n?"gtmkit-opacity-60":""),ref:i,children:t})));pe.Header=({as:t="h3",title:e="",children:n,className:a="",...i})=>(0,de.jsxs)(t,{...i,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,n]}),pe.Content=({as:t="div",children:e,className:n="",...a})=>(0,de.jsx)(t,{...a,className:"gtmkit-px-8 gtmkit-py-6 "+n,children:e});const he=pe,_e=()=>{const{useSettings:e,useUpdateStateSettings:n,useUserRoles:r}=(0,i.useContext)(g),s=!(e.general.sgtm_domain&&e.general.sgtm_domain.trim()&&e.general.sgtm_container_identifier&&e.general.sgtm_container_identifier.trim()),o=et();return(0,t.useEffect)((()=>{const t=new URLSearchParams(o.search).get("focus");if(t){const e=document.getElementById(t);e&&e.scrollIntoView()}}),[o]),(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,a.__)("Google Tag Manager container","gtm-kit")}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("General Container Settings","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container.","gtm-kit")}),(0,de.jsx)(me,{title:(0,a.__)("GTM Container ID:","gtm-kit"),optionName:"gtm_id",placeholder:(0,a.__)("Enter GTM Container ID","gtm-kit"),useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(ce,{title:(0,a.__)("Inject Container Code","gtm-kit"),label:(0,a.__)("Setting this to Off will remove the Google Tag Manager container code but the data layer will remain.","gtm-kit"),optionName:"container_active",useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(ce,{title:(0,a.__)("Just the container","gtm-kit"),label:(0,a.__)("Setting this to On will reduce the functionality to just the GTM container code. No additional data will be pushed to the datalayer regardless of any other settings.","gtm-kit"),optionName:"just_the_container",useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(me,{title:(0,a.__)("dataLayer variable name:","gtm-kit"),optionName:"datalayer_name",placeholder:"dataLayer",help:(0,a.__)("The default name of the data layer object is dataLayer. If you prefer to use a different name for your data layer, you may do so.","gtm-kit"),useSettings:e,useUpdateStateSettings:n})]})]}),(0,de.jsx)("div",{id:"sgtm"}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Server-side Tagging (sGTM)","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(me,{title:(0,a.__)("sGTM Container Domain:","gtm-kit"),optionName:"sgtm_domain",placeholder:(0,a.__)("Enter domain","gtm-kit"),help:(0,a.__)("Enter your custom domain name if you are using a custom server side GTM container for tracking.","gtm-kit"),useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(me,{title:(0,a.__)("sGTM container identifier:","gtm-kit"),optionName:"sgtm_container_identifier",placeholder:(0,a.__)("Enter loader name","gtm-kit"),help:(0,a.__)("Only use if you are using a custom loader.","gtm-kit"),useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(ce,{title:(0,a.__)("Cookie Keeper (for Stape users only)","gtm-kit"),label:(0,a.__)("Prolong cookie lifetime in Safari and other browsers with ITP. This only works if you use Stape sGTM hosting and have set up the Cookie Keeper power up.","gtm-kit"),optionName:"sgtm_cookie_keeper",disabled:s,useSettings:e,useUpdateStateSettings:n})]}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Google Tag Manager Server-side Tagging","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("Server-side tagging is a silver bullet that gives you improved data accuracy, performance, privacy, and flexibility.","gtm-kit")," ",(0,de.jsx)("a",{href:"https://gtmkit.com/guides/google-tag-manager-server-side-tagging/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=sgtm&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more","gtm-kit")})]}),(0,de.jsx)("h4",{className:"gtmkit-pt-4 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Hosting server-side GTM containers","gtm-kit")}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("Setting up server-side tracking can be challenging and costly but there is an easy and cheap solution.","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("Stape.io is a solution for hosting server-side Google Tag Manager containers, offering a simplified approach that demands less technical expertise than solutions like Google Cloud Platform.","gtm-kit")," ",(0,a.__)("Additionally, it provides valuable add-ons for enhanced functionality.","gtm-kit")]}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,de.jsx)("a",{href:"https://jump.gtmkit.com/link/1-AC1E5",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more about Stape.io","gtm-kit")})})]})})]})]}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Page Speed Optimization","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsx)(he.Content,{children:(0,de.jsx)(ce,{title:(0,a.__)("load_delayed_js event","gtm-kit"),label:(0,a.__)("Setting this to On will push the event 'load_delayed_js' on page load.","gtm-kit"),optionName:"load_js_event",useSettings:e,useUpdateStateSettings:n})}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Delay JavaScript execution","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("Page optimization plugins can delay the 'load_delayed_js' event and this can be used to delay the triggering og tags in Google Tag Manager.","gtm-kit")," ",(0,de.jsx)("a",{href:"https://gtmkit.com/guides/delay-javascript-execution-in-gtm/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=delay-js&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Google Tag Manager Environment","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(me,{title:(0,a.__)("gtm_auth:","gtm-kit"),optionName:"gtm_auth",placeholder:(0,a.__)("Enter gtm_auth code","gtm-kit"),help:(0,a.__)("Enter the gtm_auth code for your GTM environment.","gtm-kit"),useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(me,{title:(0,a.__)("gtm_preview:","gtm-kit"),optionName:"gtm_preview",placeholder:(0,a.__)("Enter gtm_preview code","gtm-kit"),help:(0,a.__)("Enter the gtm_preview code for your GTM environment.","gtm-kit"),useSettings:e,useUpdateStateSettings:n})]}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Environments","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("In Google Tag Manager you can define different environments like Live, Dev and QA.","gtm-kit")," ",(0,a.__)('To use a specific environment in GTM Kit you must enter the "gtm_auth" and "gtm_preview" codes for that environment.',"gtm-kit")," ",(0,a.__)("If left empty the default environment will be used.","gtm-kit")]}),(0,de.jsx)("h4",{className:"gtmkit-pt-4 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Override settings in wp-config.php","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("You can override the values by using constants in wp-config.php, which is a very useful for setting the value in your development and staging environments.","gtm-kit")," ",(0,de.jsx)("a",{href:"https://gtmkit.com/documentation/settings-actions-and-filters-for-developers/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=container-settings&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Exclude User Roles","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsx)(he.Content,{children:(0,de.jsx)(ue,{title:(0,a.__)("Exclude user roles","gtm-kit"),help:(0,a.__)("Select the roles that you want to exclude from tracking.","gtm-kit"),items:r,optionName:"exclude_user_roles",useSettings:e,useUpdateStateSettings:n})}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold gtmkit-text-red-600",children:(0,a.__)("Warning!","gtm-kit")}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("Excluding user roles is not compatible with all full-page cache solutions. Some full-page cache solutions may cache the page identically for all users, regardless of their user role. This could result in users being excluded who should not be.","gtm-kit")}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("Please ensure thorough and proper testing of this.","gtm-kit")})]})})]})]}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Container Code Implementation","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(ge,{title:(0,a.__)("Container code implementation:","gtm-kit"),options:[{label:(0,a.__)("Standard implementation as recommended by Google (no delay)","gtm-kit"),value:0},{label:(0,a.__)("Load container when the browser is idle (requestIdleCallback)","gtm-kit"),value:1}],help:(0,a.__)("Depending on how you use Google Tag Manager you can delay the loading of the container script until the browser is idle.","gtm-kit"),optionName:"script_implementation",useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(ge,{title:(0,a.__)("Container code noscript implementation:","gtm-kit"),options:[{label:(0,a.__)("Just after the opening <body> tag","gtm-kit"),value:0},{label:(0,a.__)("Footer of the page (not recommended by Google)","gtm-kit"),value:1},{label:(0,a.__)("Custom (insert function in your template)","gtm-kit"),value:2},{label:(0,a.__)("Disable <noscript> implementation","gtm-kit"),value:3}],help:(0,a.__)('The preferred method to implement the <noscript> container code is just after the opening <body> tag. This requires that your theme uses the "body_open" hook. If your theme does not support this the script can be injected in the footer or you can use the function below.',"gtm-kit"),optionName:"noscript_implementation",useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,de.jsx)("code",{children:"<?php if ( function_exists( 'gtmkit_the_noscript_tag' ) ) { gtmkit_the_noscript_tag(); } ?>"})})]})]})]})},ke=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Post Data","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Post Data Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-4"},(0,a.__)("Specify which post data elements you wish to include in the dataLayer for use in Google Tag Manager.","gtm-kit")),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Post data","gtm-kit"),id:"post-date",label:(0,a.__)("Include the post date.","gtm-kit"),optionName:"datalayer_post_date",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}))))},fe=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("User Data","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Warning!","gtm-kit"),className:"gtmkit-text-red-600"}),(0,t.createElement)(he.Content,{className:"gtmkit-space-y-2"},(0,t.createElement)("p",null,(0,a.__)("Including user data is not compatible with full page caching.","gtm-kit")),(0,t.createElement)("p",null,(0,a.__)("Full page caching will cache user data making it the same for all users. There are ways around this, but it depends on the chosen cache solution and is only for advanced users.","gtm-kit")))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("User Data Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Logged in","gtm-kit"),id:"logged-in",label:(0,a.__)("Include whether the user is logged in.","gtm-kit"),optionName:"datalayer_logged_in",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("User ID","gtm-kit"),id:"user-id",label:(0,a.__)("Include the user ID if the user is logged in.","gtm-kit"),optionName:"datalayer_user_id",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("User role","gtm-kit"),id:"user-role",label:(0,a.__)("Include the user role if the user is logged in.","gtm-kit"),optionName:"datalayer_user_role",useSettings:e,useUpdateStateSettings:n}))))},Se=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g),r=!e.general.gcm_default_settings;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Google Consent Mode","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Google Consent Mode Activation","gtm-kit")},(0,t.createElement)("span",{className:"gtmkit-text-red-600 gtmkit-ml-2"},(0,a.__)("Warning!","gtm-kit"))),(0,t.createElement)(he.Content,{className:"gtmkit-space-y-2"},(0,t.createElement)("p",null,(0,a.__)("Most Consent Management Platforms will handle the Google Consent Mode settings for you and applying the default settings in both GTM Kit and you CMP will lead to unexpected behaviour or errors.","gtm-kit")),(0,t.createElement)("p",null,(0,a.__)("You should only use these settings if you do not have a Consent Management Platform that supports Google Consent Mode.","gtm-kit")),(0,t.createElement)("p",{className:"!gtmkit-mt-4"},(0,a.__)("GTM Kit will only set the default Consent Mode settings and you must update the settings yourself when the user has given consent.","gtm-kit")),(0,t.createElement)("p",{className:"gtmkit-text-color-primary !gtmkit-my-6"},(0,t.createElement)("a",{href:"https://developers.google.com/tag-platform/security/guides/consent#implementation_example",target:"_blank",rel:"noreferrer",className:"hover:gtmkit-underline gtmkit-font-semibold"},(0,a.__)("See an example of how consent is updated","gtm-kit"))),(0,t.createElement)(ce,{title:(0,a.__)("Activate GCM settings","gtm-kit"),label:(0,a.__)("Choose this option if you would like to activate the default settings below","gtm-kit"),optionName:"gcm_default_settings",useSettings:e,useUpdateStateSettings:n}))),(0,t.createElement)(he,{disabled:r},(0,t.createElement)(he.Header,{title:(0,a.__)("Google Consent Mode Default Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Ad Personalization","gtm-kit"),label:(0,a.__)("Enables personalized advertising","gtm-kit"),optionName:"gcm_ad_personalization",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Ad Storage","gtm-kit"),label:(0,a.__)("Enables storage, such as cookies, related to advertising","gtm-kit"),optionName:"gcm_ad_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Ad User Data","gtm-kit"),label:(0,a.__)("Enables sending user data related to advertising to Google","gtm-kit"),optionName:"gcm_ad_user_data",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Analytics Storage","gtm-kit"),label:(0,a.__)("Enables storage, such as cookies, related to analytics (for example, visit duration)","gtm-kit"),optionName:"gcm_analytics_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Functionality Storage","gtm-kit"),label:(0,a.__)("Enables storage that supports the functionality of the website or app such as language settings","gtm-kit"),optionName:"gcm_functionality_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Personalization Storage","gtm-kit"),label:(0,a.__)("Enables storage related to personalization such as video recommendations","gtm-kit"),optionName:"gcm_personalization_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Security Storage","gtm-kit"),label:(0,a.__)("Enables storage related to security such as authentication functionality, fraud prevention, and other user protection","gtm-kit"),optionName:"gcm_security_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)("h4",{className:"gtmkit-font-bold gtmkit-pt-8"},(0,a.__)("Advanced","gtm-kit")),(0,t.createElement)(ce,{title:(0,a.__)("Redact Ads Data","gtm-kit"),label:(0,a.__)("Redact advertising data","gtm-kit"),optionName:"gcm_ads_data_redaction",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Pass through URL parameters","gtm-kit"),label:(0,a.__)("Pass through ad click, client ID, and session ID information in URLs","gtm-kit"),optionName:"gcm_url_passthrough",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(me,{title:(0,a.__)("Wait For Update","gtm-kit"),optionName:"gcm_wait_for_update",placeholder:(0,a.__)("Enter time in milliseconds","gtm-kit"),useSettings:e,useUpdateStateSettings:n}))))},be=({label:e,value:n,tag:a})=>(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-4 gtmkit-py-2"},(0,t.createElement)("strong",null,e)),(0,t.createElement)("td",{className:"gtmkit-px-4 gtmkit-py-2"},"code"===a?(0,t.createElement)("code",{className:"gtmkit-text-sm"},n):(0,t.createElement)("em",null,n))),Ee=()=>{const{useSiteData:e}=(0,i.useContext)(g),n=Object.values(e.shared_data);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey"},(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,t.createElement)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey"},(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,t.createElement)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm gtmkit-my-6 gtmkit-py-6"},(0,t.createElement)("tbody",{className:"gtmkit-py-6"},n.map((function(e,n){return(0,t.createElement)(be,{key:n,label:e.label,value:e.value,tag:e.tag})})))))},ve=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Misc","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Help improve GTM Kit","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(Ee,null),(0,t.createElement)("p",{className:"gtmkit-my-4 gtmkit-mb-2 gtmkit-text-color-grey"},(0,a.__)("GTM Kit will never transmit any domain names or container ID's.","gtm-kit")),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Logging and debugging","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Event Inspector","gtm-kit"),label:(0,a.__)("The event inspector is placed in the footer of the front and it allows you to see all the fired GTM events.","gtm-kit"),optionName:"event_inspector",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Console log","gtm-kit"),label:(0,a.__)("Log helpful messages and warnings to the browser log.","gtm-kit"),optionName:"console_log",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Debug log","gtm-kit"),label:(0,a.__)('Log the "purchase" event to the debug log.',"gtm-kit"),optionName:"debug_log",useSettings:e,useUpdateStateSettings:n}))))},ye=()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(se,{title:(0,a.__)("Integrations","gtm-kit"),data:oe("integrations")})),xe=({pluginName:e})=>(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.sprintf)(
     1(()=>{var t={838:function(t){t.exports=function(){"use strict";const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:a}=Object;let{freeze:o,seal:s,create:r}=Object,{apply:l,construct:m}="undefined"!=typeof Reflect&&Reflect;o||(o=function(t){return t}),s||(s=function(t){return t}),l||(l=function(t,e,n){return t.apply(e,n)}),m||(m=function(t,e){return new t(...e)});const c=v(Array.prototype.forEach),g=v(Array.prototype.pop),u=v(Array.prototype.push),d=v(String.prototype.toLowerCase),p=v(String.prototype.toString),h=v(String.prototype.match),k=v(String.prototype.replace),f=v(String.prototype.indexOf),_=v(String.prototype.trim),x=v(Object.prototype.hasOwnProperty),b=v(RegExp.prototype.test),S=(y=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return m(y,e)});var y;function v(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return l(t,e,i)}}function E(t,i){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;e&&e(t,null);let o=i.length;for(;o--;){let e=i[o];if("string"==typeof e){const t=a(e);t!==e&&(n(i)||(i[o]=t),e=t)}t[e]=!0}return t}function N(t){for(let e=0;e<t.length;e++)x(t,e)||(t[e]=null);return t}function w(e){const n=r(null);for(const[i,a]of t(e))x(e,i)&&(Array.isArray(a)?n[i]=N(a):a&&"object"==typeof a&&a.constructor===Object?n[i]=w(a):n[i]=a);return n}function j(t,e){for(;null!==t;){const n=a(t,e);if(n){if(n.get)return v(n.get);if("function"==typeof n.value)return v(n.value)}t=i(t)}return function(){return null}}const T=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),U=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=o(["#text"]),R=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),L=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),P=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=s(/<%[\w\W]*|[\w\W]*%>/gm),H=s(/\${[\w\W]*}/gm),B=s(/^data-[\-\w.\u00B7-\uFFFF]/),W=s(/^aria-[\-\w]+$/),K=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=s(/^(?:\w+script|data):/i),Y=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=s(/^html$/i),J=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var q=Object.freeze({__proto__:null,MUSTACHE_EXPR:G,ERB_EXPR:F,TMPLIT_EXPR:H,DATA_ATTR:B,ARIA_ATTR:W,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:Y,DOCTYPE_NAME:$,CUSTOM_ELEMENT:J});const V=1,X=3,Z=7,Q=8,tt=9,et=function(){return"undefined"==typeof window?null:window};return function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et();const i=t=>e(t);if(i.version="3.1.6",i.removed=[],!n||!n.document||n.document.nodeType!==tt)return i.isSupported=!1,i;let{document:a}=n;const s=a,l=s.currentScript,{DocumentFragment:m,HTMLTemplateElement:y,Node:v,Element:N,NodeFilter:G,NamedNodeMap:F=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:H,DOMParser:B,trustedTypes:W}=n,z=N.prototype,Y=j(z,"cloneNode"),J=j(z,"remove"),nt=j(z,"nextSibling"),it=j(z,"childNodes"),at=j(z,"parentNode");if("function"==typeof y){const t=a.createElement("template");t.content&&t.content.ownerDocument&&(a=t.content.ownerDocument)}let ot,st="";const{implementation:rt,createNodeIterator:lt,createDocumentFragment:mt,getElementsByTagName:ct}=a,{importNode:gt}=s;let ut={};i.isSupported="function"==typeof t&&"function"==typeof at&&rt&&void 0!==rt.createHTMLDocument;const{MUSTACHE_EXPR:dt,ERB_EXPR:pt,TMPLIT_EXPR:ht,DATA_ATTR:kt,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:_t,ATTR_WHITESPACE:xt,CUSTOM_ELEMENT:bt}=q;let{IS_ALLOWED_URI:St}=q,yt=null;const vt=E({},[...T,...C,...D,...A,...O]);let Et=null;const Nt=E({},[...R,...L,...M,...P]);let wt=Object.seal(r(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),jt=null,Tt=null,Ct=!0,Dt=!0,Ut=!1,At=!0,It=!1,Ot=!0,Rt=!1,Lt=!1,Mt=!1,Pt=!1,Gt=!1,Ft=!1,Ht=!0,Bt=!1,Wt=!0,Kt=!1,zt={},Yt=null;const $t=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Jt=null;const qt=E({},["audio","video","img","source","image","track"]);let Vt=null;const Xt=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zt="http://www.w3.org/1998/Math/MathML",Qt="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml";let ee=te,ne=!1,ie=null;const ae=E({},[Zt,Qt,te],p);let oe=null;const se=["application/xhtml+xml","text/html"];let re=null,le=null;const me=a.createElement("form"),ce=function(t){return t instanceof RegExp||t instanceof Function},ge=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!le||le!==t){if(t&&"object"==typeof t||(t={}),t=w(t),oe=-1===se.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,re="application/xhtml+xml"===oe?p:d,yt=x(t,"ALLOWED_TAGS")?E({},t.ALLOWED_TAGS,re):vt,Et=x(t,"ALLOWED_ATTR")?E({},t.ALLOWED_ATTR,re):Nt,ie=x(t,"ALLOWED_NAMESPACES")?E({},t.ALLOWED_NAMESPACES,p):ae,Vt=x(t,"ADD_URI_SAFE_ATTR")?E(w(Xt),t.ADD_URI_SAFE_ATTR,re):Xt,Jt=x(t,"ADD_DATA_URI_TAGS")?E(w(qt),t.ADD_DATA_URI_TAGS,re):qt,Yt=x(t,"FORBID_CONTENTS")?E({},t.FORBID_CONTENTS,re):$t,jt=x(t,"FORBID_TAGS")?E({},t.FORBID_TAGS,re):{},Tt=x(t,"FORBID_ATTR")?E({},t.FORBID_ATTR,re):{},zt=!!x(t,"USE_PROFILES")&&t.USE_PROFILES,Ct=!1!==t.ALLOW_ARIA_ATTR,Dt=!1!==t.ALLOW_DATA_ATTR,Ut=t.ALLOW_UNKNOWN_PROTOCOLS||!1,At=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,It=t.SAFE_FOR_TEMPLATES||!1,Ot=!1!==t.SAFE_FOR_XML,Rt=t.WHOLE_DOCUMENT||!1,Pt=t.RETURN_DOM||!1,Gt=t.RETURN_DOM_FRAGMENT||!1,Ft=t.RETURN_TRUSTED_TYPE||!1,Mt=t.FORCE_BODY||!1,Ht=!1!==t.SANITIZE_DOM,Bt=t.SANITIZE_NAMED_PROPS||!1,Wt=!1!==t.KEEP_CONTENT,Kt=t.IN_PLACE||!1,St=t.ALLOWED_URI_REGEXP||K,ee=t.NAMESPACE||te,wt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(wt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(wt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(wt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),It&&(Dt=!1),Gt&&(Pt=!0),zt&&(yt=E({},O),Et=[],!0===zt.html&&(E(yt,T),E(Et,R)),!0===zt.svg&&(E(yt,C),E(Et,L),E(Et,P)),!0===zt.svgFilters&&(E(yt,D),E(Et,L),E(Et,P)),!0===zt.mathMl&&(E(yt,A),E(Et,M),E(Et,P))),t.ADD_TAGS&&(yt===vt&&(yt=w(yt)),E(yt,t.ADD_TAGS,re)),t.ADD_ATTR&&(Et===Nt&&(Et=w(Et)),E(Et,t.ADD_ATTR,re)),t.ADD_URI_SAFE_ATTR&&E(Vt,t.ADD_URI_SAFE_ATTR,re),t.FORBID_CONTENTS&&(Yt===$t&&(Yt=w(Yt)),E(Yt,t.FORBID_CONTENTS,re)),Wt&&(yt["#text"]=!0),Rt&&E(yt,["html","head","body"]),yt.table&&(E(yt,["tbody"]),delete jt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ot=t.TRUSTED_TYPES_POLICY,st=ot.createHTML("")}else void 0===ot&&(ot=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(W,l)),null!==ot&&"string"==typeof st&&(st=ot.createHTML(""));o&&o(t),le=t}},ue=E({},["mi","mo","mn","ms","mtext"]),de=E({},["foreignobject","annotation-xml"]),pe=E({},["title","style","font","a","script"]),he=E({},[...C,...D,...U]),ke=E({},[...A,...I]),fe=function(t){u(i.removed,{element:t});try{at(t).removeChild(t)}catch(e){J(t)}},_e=function(t,e){try{u(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){u(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Et[t])if(Pt||Gt)try{fe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},xe=function(t){let e=null,n=null;if(Mt)t="<remove></remove>"+t;else{const e=h(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===oe&&ee===te&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=ot?ot.createHTML(t):t;if(ee===te)try{e=(new B).parseFromString(i,oe)}catch(t){}if(!e||!e.documentElement){e=rt.createDocument(ee,"template",null);try{e.documentElement.innerHTML=ne?st:i}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),ee===te?ct.call(e,Rt?"html":"body")[0]:Rt?e.documentElement:o},be=function(t){return lt.call(t.ownerDocument||t,t,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},Se=function(t){return t instanceof H&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof F)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},ye=function(t){return"function"==typeof v&&t instanceof v},ve=function(t,e,n){ut[t]&&c(ut[t],(t=>{t.call(i,e,n,le)}))},Ee=function(t){let e=null;if(ve("beforeSanitizeElements",t,null),Se(t))return fe(t),!0;const n=re(t.nodeName);if(ve("uponSanitizeElement",t,{tagName:n,allowedTags:yt}),t.hasChildNodes()&&!ye(t.firstElementChild)&&b(/<[/\w]/g,t.innerHTML)&&b(/<[/\w]/g,t.textContent))return fe(t),!0;if(t.nodeType===Z)return fe(t),!0;if(Ot&&t.nodeType===Q&&b(/<[/\w]/g,t.data))return fe(t),!0;if(!yt[n]||jt[n]){if(!jt[n]&&we(n)){if(wt.tagNameCheck instanceof RegExp&&b(wt.tagNameCheck,n))return!1;if(wt.tagNameCheck instanceof Function&&wt.tagNameCheck(n))return!1}if(Wt&&!Yt[n]){const e=at(t)||t.parentNode,n=it(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i){const a=Y(n[i],!0);a.__removalCount=(t.__removalCount||0)+1,e.insertBefore(a,nt(t))}}return fe(t),!0}return t instanceof N&&!function(t){let e=at(t);e&&e.tagName||(e={namespaceURI:ee,tagName:"template"});const n=d(t.tagName),i=d(e.tagName);return!!ie[t.namespaceURI]&&(t.namespaceURI===Qt?e.namespaceURI===te?"svg"===n:e.namespaceURI===Zt?"svg"===n&&("annotation-xml"===i||ue[i]):Boolean(he[n]):t.namespaceURI===Zt?e.namespaceURI===te?"math"===n:e.namespaceURI===Qt?"math"===n&&de[i]:Boolean(ke[n]):t.namespaceURI===te?!(e.namespaceURI===Qt&&!de[i])&&!(e.namespaceURI===Zt&&!ue[i])&&!ke[n]&&(pe[n]||!he[n]):!("application/xhtml+xml"!==oe||!ie[t.namespaceURI]))}(t)?(fe(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!b(/<\/no(script|embed|frames)/i,t.innerHTML)?(It&&t.nodeType===X&&(e=t.textContent,c([dt,pt,ht],(t=>{e=k(e,t," ")})),t.textContent!==e&&(u(i.removed,{element:t.cloneNode()}),t.textContent=e)),ve("afterSanitizeElements",t,null),!1):(fe(t),!0)},Ne=function(t,e,n){if(Ht&&("id"===e||"name"===e)&&(n in a||n in me))return!1;if(Dt&&!Tt[e]&&b(kt,e));else if(Ct&&b(ft,e));else if(!Et[e]||Tt[e]){if(!(we(t)&&(wt.tagNameCheck instanceof RegExp&&b(wt.tagNameCheck,t)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(t))&&(wt.attributeNameCheck instanceof RegExp&&b(wt.attributeNameCheck,e)||wt.attributeNameCheck instanceof Function&&wt.attributeNameCheck(e))||"is"===e&&wt.allowCustomizedBuiltInElements&&(wt.tagNameCheck instanceof RegExp&&b(wt.tagNameCheck,n)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(n))))return!1}else if(Vt[e]);else if(b(St,k(n,xt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==f(n,"data:")||!Jt[t])if(Ut&&!b(_t,k(n,xt,"")));else if(n)return!1;return!0},we=function(t){return"annotation-xml"!==t&&h(t,bt)},je=function(t){ve("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Et};let a=e.length;for(;a--;){const o=e[a],{name:s,namespaceURI:r,value:l}=o,m=re(s);let u="value"===s?l:_(l);if(n.attrName=m,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,ve("uponSanitizeAttribute",t,n),u=n.attrValue,Ot&&b(/((--!?|])>)|<\/(style|title)/i,u)){_e(s,t);continue}if(n.forceKeepAttr)continue;if(_e(s,t),!n.keepAttr)continue;if(!At&&b(/\/>/i,u)){_e(s,t);continue}It&&c([dt,pt,ht],(t=>{u=k(u,t," ")}));const d=re(t.nodeName);if(Ne(d,m,u)){if(!Bt||"id"!==m&&"name"!==m||(_e(s,t),u="user-content-"+u),ot&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(r);else switch(W.getAttributeType(d,m)){case"TrustedHTML":u=ot.createHTML(u);break;case"TrustedScriptURL":u=ot.createScriptURL(u)}try{r?t.setAttributeNS(r,s,u):t.setAttribute(s,u),Se(t)?fe(t):g(i.removed)}catch(t){}}}ve("afterSanitizeAttributes",t,null)},Te=function t(e){let n=null;const i=be(e);for(ve("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)ve("uponSanitizeShadowNode",n,null),Ee(n)||(n.content instanceof m&&t(n.content),je(n));ve("afterSanitizeShadowDOM",e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,o=null,r=null;if(ne=!t,ne&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ye(t)){if("function"!=typeof t.toString)throw S("toString is not a function");if("string"!=typeof(t=t.toString()))throw S("dirty is not a string, aborting")}if(!i.isSupported)return t;if(Lt||ge(e),i.removed=[],"string"==typeof t&&(Kt=!1),Kt){if(t.nodeName){const e=re(t.nodeName);if(!yt[e]||jt[e])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof v)n=xe("\x3c!----\x3e"),a=n.ownerDocument.importNode(t,!0),a.nodeType===V&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Pt&&!It&&!Rt&&-1===t.indexOf("<"))return ot&&Ft?ot.createHTML(t):t;if(n=xe(t),!n)return Pt?null:Ft?st:""}n&&Mt&&fe(n.firstChild);const l=be(Kt?t:n);for(;o=l.nextNode();)Ee(o)||(o.content instanceof m&&Te(o.content),je(o));if(Kt)return t;if(Pt){if(Gt)for(r=mt.call(n.ownerDocument);n.firstChild;)r.appendChild(n.firstChild);else r=n;return(Et.shadowroot||Et.shadowrootmode)&&(r=gt.call(s,r,!0)),r}let g=Rt?n.outerHTML:n.innerHTML;return Rt&&yt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b($,n.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+g),It&&c([dt,pt,ht],(t=>{g=k(g,t," ")})),ot&&Ft?ot.createHTML(g):g},i.setConfig=function(){ge(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lt=!0},i.clearConfig=function(){le=null,Lt=!1},i.isValidAttribute=function(t,e,n){le||ge({});const i=re(t),a=re(e);return Ne(i,a,n)},i.addHook=function(t,e){"function"==typeof e&&(ut[t]=ut[t]||[],u(ut[t],e))},i.removeHook=function(t){if(ut[t])return g(ut[t])},i.removeHooks=function(t){ut[t]&&(ut[t]=[])},i.removeAllHooks=function(){ut={}},i}()}()},942:(t,e)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=s(t,o(n)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return a.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)i.call(t,n)&&t[n]&&(e=s(e,n));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(a.default=a,t.exports=a):void 0===(n=function(){return a}.apply(e,[]))||(t.exports=n)}()}},e={};function n(i){var a=e[i];if(void 0!==a)return a.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=window.wp.i18n,e=window.wp.element,i=window.wp.components,a=window.lodash,o=window.wp.apiFetch;var s=n.n(o);s().use(s().createNonceMiddleware(window.gtmkitSettings.nonce)),s().use(s().createRootURLMiddleware(window.gtmkitSettings.root));const r=async(t,e,n=null,i=!1)=>{let a={};try{a=await s()({path:t,method:e,...n&&{data:n}})}catch(n){return console.log(`${e} ${t} Errors:`,n),{[`gtm_kit_api_${e}_${t}_errors`]:!0}}return!0===i?a:!0===a.success?a.data:options},l=(e,n)=>{const i={...e};switch(n.type){case"FETCH_SETTINGS":i.fetchedSettings={...n.payload.fetchedSettings,integrations:n.payload.fetchedSettings.integrations||{}},i.stateSettings=n.payload.stateSettings,i.siteData=n.payload.siteData,i.notifications=n.payload.notifications,i.installData=n.payload.installData,i.isPending=!1,i.canSave=!1,n.payload.fetchedSettings.gtm_kit_api_fetch_settings_errors&&(i.notice=(0,t.__)("An error occurred.","gtm-kit"),i.hasError=!0);break;case"UPDATE_SETTINGS_BEFORE":i.isPending=n.payload.isPending;break;case"UPDATE_SETTINGS":i.fetchedSettings=n.payload.fetchedSettings,i.stateSettings=n.payload.stateSettings,i.isPending=!1,i.canSave=!!n.payload.fetchedSettings.gtm_kit_api_update_settings_errors,i.notice=n.payload.fetchedSettings.gtm_kit_api_update_settings_errors?(0,t.__)("An error occurred.","gtm-kit"):(0,t.__)("Saved Successfully.","gtm-kit"),i.hasError=!!n.payload.fetchedSettings.gtm_kit_api_update_settings_errors;break;case"UPDATE_STATE":i.fetchedSettings=n.payload.fetchedSettings||i.fetchedSettings,i.stateSettings=n.payload.stateSettings||i.stateSettings,i.isPending=n.payload.isPending||i.isPending,i.notice=n.payload.notice||i.notice,i.hasError=n.payload.hasError||i.hasError,i.canSave=n.payload.canSave||i.canSave,i.isSendingSystemData=n.payload.isSendingSystemData||i.isSendingSystemData,i.supportTicket=n.payload.supportTicket||i.supportTicket,i.isSendingLicenseKey=n.payload.isSendingLicenseKey||i.isSendingLicenseKey,i.licenseKey=n.payload.licenseKey||i.licenseKey;break;case"SEND_SUPPORT_DATA_BEFORE":i.isSendingSystemData=n.payload.isSendingSystemData||i.isSendingSystemData;break;case"SEND_SUPPORT_DATA":i.isSendingSystemData=!1,i.isSystemDataSent=n.payload.isSystemDataSent||i.isSystemDataSent,i.systemDataMessage=n.payload.systemDataMessage||i.systemDataMessage;break;case"SEND_LICENSE_KEY_BEFORE":i.isSendingLicenseKey=n.payload.isSendingLicenseKey||i.isSendingLicenseKey;break;case"SEND_LICENSE_KEY":i.isSendingLicenseKey=!1,i.isLicenseKeySent=n.payload.isLicenseKeySent||i.isLicenseKeySent,i.licenseKeyMessage=n.payload.licenseKeyMessage||i.licenseKeyMessage;break;case"SEND_NOTIFICATION_STATUS_BEFORE":i.isUpdatingNotifications=n.payload.isUpdatingNotifications||i.isUpdatingNotifications;break;case"SEND_NOTIFICATION_STATUS":i.isUpdatingNotifications=!1,i.isNotificationStatusSent=n.payload.isNotificationStatusSent||i.isNotificationStatusSent,i.notifications=n.payload.notifications||i.Notifications}return i},m=window.ReactJSXRuntime,c=(0,e.createContext)(),g=t=>{const[n,i]=(0,e.useReducer)(l,{fetchedSettings:{},stateSettings:{},isPending:!0,notice:"",hasError:!1,canSave:!1,supportTicket:"",isSystemDataSent:!1,systemDataMessage:"",licenseKey:"",isLicensenKeySent:!1,licenseKeyMessage:"",notifications:{}}),o=async()=>{const t=window.gtmkitSettings.settings?window.gtmkitSettings.settings:{},e=window.gtmkitSettings.site_data?window.gtmkitSettings.site_data:{},n=window.gtmkitSettings.notifications?window.gtmkitSettings.notifications:{metrics:{total:1}},a="wizard"===window.gtmkitSettings.currentPage?window.gtmkitSettings.install_data:{};i({type:"FETCH_SETTINGS",payload:{fetchedSettings:t,stateSettings:t,siteData:e,notifications:n,installData:a}})},s=async t=>{i({type:"UPDATE_STATE",payload:t})};(0,e.useEffect)((()=>{o()}),[]);const g={useDispatch:t=>{i(t)},useUpdateSettings:async()=>{i({type:"UPDATE_SETTINGS_BEFORE",payload:{isPending:!0}});const t=await(e=n.stateSettings,r("gtmkit/v1/set-options","POST",e));var e;i({type:"UPDATE_SETTINGS",payload:{fetchedSettings:t,stateSettings:t}})},useFetchSettings:o,useUpdateState:s,useUpdateStateSettings:async(t,e,i)=>{const o=JSON.parse(JSON.stringify(n.stateSettings));let r;o[t][e]=i,r=!(0,a.isEqual)(o,n.fetchedSettings),s({stateSettings:o,canSave:r})},useImportSettings:async(t,e)=>{const i=JSON.parse(JSON.stringify(n.stateSettings));let o;const r={};r.general={...i.general,...e.general},"integrations"in e&&(r.integrations={...i.integrations,...e.integrations}),o=!(0,a.isEqual)(r,n.fetchedSettings),s({stateSettings:r,canSave:o})},useUpdateSupportTicket:async t=>{s({supportTicket:t})},useSendSystemData:async()=>{i({type:"SEND_SUPPORT_DATA_BEFORE",payload:{isSendingSystemData:!0}});const t=await(e=n.supportTicket,r("gtmkit/v1/send-support-data","POST",e,!0));var e;i({type:"SEND_SUPPORT_DATA",payload:{isSendingSystemData:!1,isSystemDataSent:t.success,systemDataMessage:t.data}})},useUpdateLicenseKey:async t=>{s({licenseKey:t})},useSendLicenseKey:async()=>{i({type:"SEND_LICENSE_KEY_BEFORE",payload:{isSendingLicenseKey:!0}});const t=await(e=n.licenseKey,r("gtmkit/v1/send-license-key","POST",e,!0));var e;i({type:"SEND_LICENSE_KEY",payload:{isSendingLicenseKey:!1,isLicenseKeySent:t.success,licenseKeyMessage:t.data}})},useSetNotificationStatus:async(t,e)=>{i({type:"SEND_NOTIFICATION_STATUS_BEFORE",payload:{isUpdatingNotifications:!0}});const n={"notification-id":t,action:e},a=await(t=>r("gtmkit/v1/set-notification-status","POST",t,!0))(n);i({type:"SEND_NOTIFICATION_STATUS",payload:{isUpdatingNotifications:!1,isNotificationStatusSent:a.success,notifications:a.data}})},useSettings:n.stateSettings,useIsPending:n.isPending,useNotice:n.notice,useHasError:n.hasError,useCanSave:n.canSave,useSiteData:n.siteData,useInstallData:n.installData,useIsSending:n.isSendingSystemData,useSupportTicket:n.supportTicket,useIsSystemDataSent:n.isSystemDataSent,useSystemDataMessage:n.systemDataMessage,useIsSendingLicenseKey:n.isSendingLicenseKey,useLicenseKey:n.licenseKey,useIsLicenseKeySent:n.isLicenseKeySent,useLicenseKeyMessage:n.licenseKeyMessage,useNotifications:n.notifications,useIsUpdatingNotifications:n.isUpdatingNotifications,useUserRoles:window.gtmkitSettings.user_roles?window.gtmkitSettings.user_roles:[],isPremium:!!window.gtmkitSettings.isPremium&&window.gtmkitSettings.isPremium};return(0,m.jsx)(c.Provider,{value:g,children:t.children})},u=window.React;var d,p=n.n(u);function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},h.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(d||(d={}));const k="popstate";function f(t,e){if(!1===t||null==t)throw new Error(e)}function _(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function x(t,e){return{usr:t.state,key:t.key,idx:e}}function b(t,e,n,i){return void 0===n&&(n=null),h({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?y(e):e,{state:n,key:e&&e.key||i||Math.random().toString(36).substr(2,8)})}function S(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(e+="#"===i.charAt(0)?i:"#"+i),e}function y(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}var v;function E(t,e,n){return void 0===n&&(n="/"),function(t,e,n,i){let a=P(("string"==typeof e?y(e):e).pathname||"/",n);if(null==a)return null;let o=N(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,n)=>t===e[n]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(o);let s=null;for(let t=0;null==s&&t<o.length;++t){let e=M(a);s=R(o[t],e,i)}return s}(t,e,n,!1)}function N(t,e,n,i){void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===i&&(i="");let a=(t,a,o)=>{let s={relativePath:void 0===o?t.path||"":o,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};s.relativePath.startsWith("/")&&(f(s.relativePath.startsWith(i),'Absolute route path "'+s.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(i.length));let r=B([i,s.relativePath]),l=n.concat(s);t.children&&t.children.length>0&&(f(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+r+'".'),N(t.children,e,l,r)),(null!=t.path||t.index)&&e.push({path:r,score:O(r,t.index),routesMeta:l})};return t.forEach(((t,e)=>{var n;if(""!==t.path&&null!=(n=t.path)&&n.includes("?"))for(let n of w(t.path))a(t,e,n);else a(t,e)})),e}function w(t){let e=t.split("/");if(0===e.length)return[];let[n,...i]=e,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===i.length)return a?[o,""]:[o];let s=w(i.join("/")),r=[];return r.push(...s.map((t=>""===t?o:[o,t].join("/")))),a&&r.push(...s),r.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const j=/^:[\w-]+$/,T=3,C=2,D=1,U=10,A=-2,I=t=>"*"===t;function O(t,e){let n=t.split("/"),i=n.length;return n.some(I)&&(i+=A),e&&(i+=C),n.filter((t=>!I(t))).reduce(((t,e)=>t+(j.test(e)?T:""===e?D:U)),i)}function R(t,e,n){void 0===n&&(n=!1);let{routesMeta:i}=t,a={},o="/",s=[];for(let t=0;t<i.length;++t){let r=i[t],l=t===i.length-1,m="/"===o?e:e.slice(o.length)||"/",c=L({path:r.relativePath,caseSensitive:r.caseSensitive,end:l},m),g=r.route;if(!c&&l&&n&&!i[i.length-1].route.index&&(c=L({path:r.relativePath,caseSensitive:r.caseSensitive,end:!1},m)),!c)return null;Object.assign(a,c.params),s.push({params:a,pathname:B([o,c.pathname]),pathnameBase:W(B([o,c.pathnameBase])),route:g}),"/"!==c.pathnameBase&&(o=B([o,c.pathnameBase]))}return s}function L(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!0),_("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((t,e,n)=>(i.push({paramName:e,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return t.endsWith("*")?(i.push({paramName:"*"}),a+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==t&&"/"!==t&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}(t.path,t.caseSensitive,t.end),a=e.match(n);if(!a)return null;let o=a[0],s=o.replace(/(.)\/+$/,"$1"),r=a.slice(1);return{params:i.reduce(((t,e,n)=>{let{paramName:i,isOptional:a}=e;if("*"===i){let t=r[n]||"";s=o.slice(0,o.length-t.length).replace(/(.)\/+$/,"$1")}const l=r[n];return t[i]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),t}),{}),pathname:o,pathnameBase:s,pattern:t}}function M(t){try{return t.split("/").map((t=>decodeURIComponent(t).replace(/\//g,"%2F"))).join("/")}catch(e){return _(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function P(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&"/"!==i?null:t.slice(n)||"/"}function G(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(i)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function F(t,e){let n=function(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}(t);return e?n.map(((t,e)=>e===n.length-1?t.pathname:t.pathnameBase)):n.map((t=>t.pathnameBase))}function H(t,e,n,i){let a;void 0===i&&(i=!1),"string"==typeof t?a=y(t):(a=h({},t),f(!a.pathname||!a.pathname.includes("?"),G("?","pathname","search",a)),f(!a.pathname||!a.pathname.includes("#"),G("#","pathname","hash",a)),f(!a.search||!a.search.includes("#"),G("#","search","hash",a)));let o,s=""===t||""===a.pathname,r=s?"/":a.pathname;if(null==r)o=n;else{let t=e.length-1;if(!i&&r.startsWith("..")){let e=r.split("/");for(;".."===e[0];)e.shift(),t-=1;a.pathname=e.join("/")}o=t>=0?e[t]:"/"}let l=function(t,e){void 0===e&&(e="/");let{pathname:n,search:i="",hash:a=""}="string"==typeof t?y(t):t,o=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:o,search:K(i),hash:z(a)}}(a,o),m=r&&"/"!==r&&r.endsWith("/"),c=(s||"."===r)&&n.endsWith("/");return l.pathname.endsWith("/")||!m&&!c||(l.pathname+="/"),l}const B=t=>t.join("/").replace(/\/\/+/g,"/"),W=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),K=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",z=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const Y=["post","put","patch","delete"],$=(new Set(Y),["get",...Y]);function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},J.apply(this,arguments)}new Set($),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const q=u.createContext(null),V=u.createContext(null),X=u.createContext(null),Z=u.createContext(null),Q=u.createContext({outlet:null,matches:[],isDataRoute:!1}),tt=u.createContext(null);function et(){return null!=u.useContext(Z)}function nt(){return et()||f(!1),u.useContext(Z).location}function it(t){u.useContext(X).static||u.useLayoutEffect(t)}function at(){let{isDataRoute:t}=u.useContext(Q);return t?function(){let{router:t}=function(){let t=u.useContext(q);return t||f(!1),t}(gt.UseNavigateStable),e=dt(ut.UseNavigateStable),n=u.useRef(!1);return it((()=>{n.current=!0})),u.useCallback((function(i,a){void 0===a&&(a={}),n.current&&("number"==typeof i?t.navigate(i):t.navigate(i,J({fromRouteId:e},a)))}),[t,e])}():function(){et()||f(!1);let t=u.useContext(q),{basename:e,future:n,navigator:i}=u.useContext(X),{matches:a}=u.useContext(Q),{pathname:o}=nt(),s=JSON.stringify(F(a,n.v7_relativeSplatPath)),r=u.useRef(!1);return it((()=>{r.current=!0})),u.useCallback((function(n,a){if(void 0===a&&(a={}),!r.current)return;if("number"==typeof n)return void i.go(n);let l=H(n,JSON.parse(s),o,"path"===a.relative);null==t&&"/"!==e&&(l.pathname="/"===l.pathname?e:B([e,l.pathname])),(a.replace?i.replace:i.push)(l,a.state,a)}),[e,i,s,o,t])}()}function ot(t,e){let{relative:n}=void 0===e?{}:e,{future:i}=u.useContext(X),{matches:a}=u.useContext(Q),{pathname:o}=nt(),s=JSON.stringify(F(a,i.v7_relativeSplatPath));return u.useMemo((()=>H(t,JSON.parse(s),o,"path"===n)),[t,s,o,n])}function st(t,e,n,i){et()||f(!1);let{navigator:a}=u.useContext(X),{matches:o}=u.useContext(Q),s=o[o.length-1],r=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let m,c=nt();if(e){var g;let t="string"==typeof e?y(e):e;"/"===l||(null==(g=t.pathname)?void 0:g.startsWith(l))||f(!1),m=t}else m=c;let p=m.pathname||"/",h=p;if("/"!==l){let t=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(t.length).join("/")}let k=E(t,{pathname:h}),_=function(t,e,n,i){var a;if(void 0===e&&(e=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==t){var o;if(!n)return null;if(n.errors)t=n.matches;else{if(!(null!=(o=i)&&o.v7_partialHydration&&0===e.length&&!n.initialized&&n.matches.length>0))return null;t=n.matches}}let s=t,r=null==(a=n)?void 0:a.errors;if(null!=r){let t=s.findIndex((t=>t.route.id&&void 0!==(null==r?void 0:r[t.route.id])));t>=0||f(!1),s=s.slice(0,Math.min(s.length,t+1))}let l=!1,m=-1;if(n&&i&&i.v7_partialHydration)for(let t=0;t<s.length;t++){let e=s[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(m=t),e.route.id){let{loaderData:t,errors:i}=n,a=e.route.loader&&void 0===t[e.route.id]&&(!i||void 0===i[e.route.id]);if(e.route.lazy||a){l=!0,s=m>=0?s.slice(0,m+1):[s[0]];break}}}return s.reduceRight(((t,i,a)=>{let o,c=!1,g=null,d=null;var p;n&&(o=r&&i.route.id?r[i.route.id]:void 0,g=i.route.errorElement||lt,l&&(m<0&&0===a?(pt[p="route-fallback"]||(pt[p]=!0),c=!0,d=null):m===a&&(c=!0,d=i.route.hydrateFallbackElement||null)));let h=e.concat(s.slice(0,a+1)),k=()=>{let e;return e=o?g:c?d:i.route.Component?u.createElement(i.route.Component,null):i.route.element?i.route.element:t,u.createElement(ct,{match:i,routeContext:{outlet:t,matches:h,isDataRoute:null!=n},children:e})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===a)?u.createElement(mt,{location:n.location,revalidation:n.revalidation,component:g,error:o,children:k(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):k()}),null)}(k&&k.map((t=>Object.assign({},t,{params:Object.assign({},r,t.params),pathname:B([l,a.encodeLocation?a.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?l:B([l,a.encodeLocation?a.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),o,n,i);return e&&_?u.createElement(Z.Provider,{value:{location:J({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:d.Pop}},_):_}function rt(){let t=function(){var t;let e=u.useContext(tt),n=function(){let t=u.useContext(V);return t||f(!1),t}(ut.UseRouteError),i=dt(ut.UseRouteError);return void 0!==e?e:null==(t=n.errors)?void 0:t[i]}(),e=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},e),n?u.createElement("pre",{style:i},n):null,null)}const lt=u.createElement(rt,null);class mt extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?u.createElement(Q.Provider,{value:this.props.routeContext},u.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ct(t){let{routeContext:e,match:n,children:i}=t,a=u.useContext(q);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Q.Provider,{value:e},i)}var gt=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(gt||{}),ut=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(ut||{});function dt(t){let e=function(){let t=u.useContext(Q);return t||f(!1),t}(),n=e.matches[e.matches.length-1];return n.route.id||f(!1),n.route.id}const pt={};function ht(t){let{to:e,replace:n,state:i,relative:a}=t;et()||f(!1);let{future:o,static:s}=u.useContext(X),{matches:r}=u.useContext(Q),{pathname:l}=nt(),m=at(),c=H(e,F(r,o.v7_relativeSplatPath),l,"path"===a),g=JSON.stringify(c);return u.useEffect((()=>m(JSON.parse(g),{replace:n,state:i,relative:a})),[m,g,a,n,i]),null}function kt(t){f(!1)}function ft(t){let{basename:e="/",children:n=null,location:i,navigationType:a=d.Pop,navigator:o,static:s=!1,future:r}=t;et()&&f(!1);let l=e.replace(/^\/*/,"/"),m=u.useMemo((()=>({basename:l,navigator:o,static:s,future:J({v7_relativeSplatPath:!1},r)})),[l,r,o,s]);"string"==typeof i&&(i=y(i));let{pathname:c="/",search:g="",hash:p="",state:h=null,key:k="default"}=i,_=u.useMemo((()=>{let t=P(c,l);return null==t?null:{location:{pathname:t,search:g,hash:p,state:h,key:k},navigationType:a}}),[l,c,g,p,h,k,a]);return null==_?null:u.createElement(X.Provider,{value:m},u.createElement(Z.Provider,{children:n,value:_}))}function _t(t){let{children:e,location:n}=t;return st(xt(e),n)}function xt(t,e){void 0===e&&(e=[]);let n=[];return u.Children.forEach(t,((t,i)=>{if(!u.isValidElement(t))return;let a=[...e,i];if(t.type===u.Fragment)return void n.push.apply(n,xt(t.props.children,a));t.type!==kt&&f(!1),t.props.index&&t.props.children&&f(!1);let o={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(o.children=xt(t.props.children,a)),n.push(o)})),n}u.startTransition,new Promise((()=>{})),u.Component;const bt=window.ReactDOM;var St=n.n(bt);function yt(){return yt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},yt.apply(this,arguments)}function vt(t,e){if(null==t)return{};var n,i,a={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(a[n]=t[n]);return a}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Et=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Nt=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(t){}const wt=u.createContext({isTransitioning:!1});new Map;const jt=u.startTransition;function Tt(t){let{basename:e,children:n,future:i,window:a}=t,o=u.useRef();null==o.current&&(o.current=function(t){return void 0===t&&(t={}),function(t,e,n,i){void 0===i&&(i={});let{window:a=document.defaultView,v5Compat:o=!1}=i,s=a.history,r=d.Pop,l=null,m=c();function c(){return(s.state||{idx:null}).idx}function g(){r=d.Pop;let t=c(),e=null==t?null:t-m;m=t,l&&l({action:r,location:p.location,delta:e})}function u(t){let e="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof t?t:S(t);return n=n.replace(/ $/,"%20"),f(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}null==m&&(m=0,s.replaceState(h({},s.state,{idx:m}),""));let p={get action(){return r},get location(){return t(a,s)},listen(t){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(k,g),l=t,()=>{a.removeEventListener(k,g),l=null}},createHref:t=>e(a,t),createURL:u,encodeLocation(t){let e=u(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){r=d.Push;let i=b(p.location,t,e);n&&n(i,t),m=c()+1;let g=x(i,m),u=p.createHref(i);try{s.pushState(g,"",u)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;a.location.assign(u)}o&&l&&l({action:r,location:p.location,delta:1})},replace:function(t,e){r=d.Replace;let i=b(p.location,t,e);n&&n(i,t),m=c();let a=x(i,m),g=p.createHref(i);s.replaceState(a,"",g),o&&l&&l({action:r,location:p.location,delta:0})},go:t=>s.go(t)};return p}((function(t,e){let{pathname:n="/",search:i="",hash:a=""}=y(t.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),b("",{pathname:n,search:i,hash:a},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){let n=t.document.querySelector("base"),i="";if(n&&n.getAttribute("href")){let e=t.location.href,n=e.indexOf("#");i=-1===n?e:e.slice(0,n)}return i+"#"+("string"==typeof e?e:S(e))}),(function(t,e){_("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),t)}({window:a,v5Compat:!0}));let s=o.current,[r,l]=u.useState({action:s.action,location:s.location}),{v7_startTransition:m}=i||{},c=u.useCallback((t=>{m&&jt?jt((()=>l(t))):l(t)}),[l,m]);return u.useLayoutEffect((()=>s.listen(c)),[s,c]),u.createElement(ft,{basename:e,children:n,location:r.location,navigationType:r.action,navigator:s,future:i})}bt.flushSync,u.useId;const Ct="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Dt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ut=u.forwardRef((function(t,e){let n,{onClick:i,relative:a,reloadDocument:o,replace:s,state:r,target:l,to:m,preventScrollReset:c,unstable_viewTransition:g}=t,d=vt(t,Et),{basename:p}=u.useContext(X),h=!1;if("string"==typeof m&&Dt.test(m)&&(n=m,Ct))try{let t=new URL(window.location.href),e=m.startsWith("//")?new URL(t.protocol+m):new URL(m),n=P(e.pathname,p);e.origin===t.origin&&null!=n?m=n+e.search+e.hash:h=!0}catch(t){}let k=function(t,e){let{relative:n}=void 0===e?{}:e;et()||f(!1);let{basename:i,navigator:a}=u.useContext(X),{hash:o,pathname:s,search:r}=ot(t,{relative:n}),l=s;return"/"!==i&&(l="/"===s?i:B([i,s])),a.createHref({pathname:l,search:r,hash:o})}(m,{relative:a}),_=function(t,e){let{target:n,replace:i,state:a,preventScrollReset:o,relative:s,unstable_viewTransition:r}=void 0===e?{}:e,l=at(),m=nt(),c=ot(t,{relative:s});return u.useCallback((e=>{if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(e,n)){e.preventDefault();let n=void 0!==i?i:S(m)===S(c);l(t,{replace:n,state:a,preventScrollReset:o,relative:s,unstable_viewTransition:r})}}),[m,l,c,i,a,n,t,o,s,r])}(m,{replace:s,state:r,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:g});return u.createElement("a",yt({},d,{href:n||k,onClick:h||o?i:function(t){i&&i(t),t.defaultPrevented||_(t)},ref:e,target:l}))})),At=u.forwardRef((function(t,e){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:r,unstable_viewTransition:l,children:m}=t,c=vt(t,Nt),g=ot(r,{relative:c.relative}),d=nt(),p=u.useContext(V),{navigator:h,basename:k}=u.useContext(X),_=null!=p&&function(t,e){void 0===e&&(e={});let n=u.useContext(wt);null==n&&f(!1);let{basename:i}=function(){let t=u.useContext(q);return t||f(!1),t}(It.useViewTransitionState),a=ot(t,{relative:e.relative});if(!n.isTransitioning)return!1;let o=P(n.currentLocation.pathname,i)||n.currentLocation.pathname,s=P(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=L(a.pathname,s)||null!=L(a.pathname,o)}(g)&&!0===l,x=h.encodeLocation?h.encodeLocation(g).pathname:g.pathname,b=d.pathname,S=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;i||(b=b.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&k&&(S=P(S,k)||S);const y="/"!==x&&x.endsWith("/")?x.length-1:x.length;let v,E=b===x||!o&&b.startsWith(x)&&"/"===b.charAt(y),N=null!=S&&(S===x||!o&&S.startsWith(x)&&"/"===S.charAt(x.length)),w={isActive:E,isPending:N,isTransitioning:_},j=E?n:void 0;v="function"==typeof a?a(w):[a,E?"active":null,N?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let T="function"==typeof s?s(w):s;return u.createElement(Ut,yt({},c,{"aria-current":j,className:v,ref:e,style:T,to:r,unstable_viewTransition:l}),"function"==typeof m?m(w):m)}));var It,Ot;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(It||(It={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(Ot||(Ot={}));const Rt=({title:t})=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)("header",{className:"gtmkit-px-8 gtmkit-py-6 gtmkit-sticky"},(0,u.createElement)("div",{className:"gtmkit-flex gtmkit-items-center gtmkit-justify-between"},(0,u.createElement)("h1",{className:"gtmkit-flex gtmkit-items-center gtmkit-font-medium gtmkit-text-3xl"},(0,u.createElement)("svg",{className:"gtmkit-mr-8",height:"44",viewBox:"0 0 160 54",width:"128",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)("rect",{fill:"#888",height:"54",rx:"4.265",width:"160"}),(0,u.createElement)("path",{d:"m88.659 7.002h-49.266c-2.915 0-5.378-.184-9.23 2.596l-18.743 12.752c-4.549 3.292-4.571 6.001 0 9.302l18.743 12.751c3.652 2.646 6.299 2.597 9.23 2.597h15.686 33.58c2.931-.057 5.394-1.784 5.34-3.923v-32.21c-.012-2.134-2.409-3.865-5.34-3.865z",fill:"#3969bb",transform:"matrix(-1 0 0 -1 101.999867 53.999547)"}),(0,u.createElement)("g",{fill:"#fff",transform:"matrix(1.465202 0 0 1.465202 -4.582436 -7.553126)"},(0,u.createElement)("path",{d:"m18.316 23.086h4.632v6.052c-.75.245-1.459.415-2.121.514-.663.098-1.341.148-2.033.148-1.764 0-3.106-.517-4.035-1.554-.929-1.034-1.395-2.519-1.395-4.457 0-1.886.538-3.356 1.617-4.41 1.078-1.054 2.573-1.579 4.481-1.579 1.2 0 2.357.239 3.469.718l-.823 1.979c-.85-.425-1.737-.637-2.657-.637-1.071 0-1.932.358-2.572 1.077-.645.718-.968 1.685-.968 2.899 0 1.267.26 2.233.78 2.904.516.667 1.271.999 2.262.999.517 0 1.041-.052 1.572-.158v-2.435h-2.209zm11.912 6.555h-2.474v-9.614h-3.173v-2.06h8.816v2.06h-3.169zm9.908 0-2.811-9.158h-.072c.103 1.863.154 3.105.154 3.728v5.43h-2.213v-11.674h3.368l2.764 8.927h.048l2.934-8.927h3.369v11.674h-2.308v-5.525c0-.261 0-.561.009-.903.009-.341.048-1.246.112-2.716h-.074l-3.011 9.144z"}),(0,u.createElement)("path",{d:"m88.883 31.898h-3.811l-4.147-6.67-1.417 1.018v5.652h-3.357v-15.83h3.357v7.242l1.318-1.861 4.293-5.381h3.724l-5.523 7.006zm1.589-15.233c0-1.075.6-1.614 1.8-1.614 1.199 0 1.798.539 1.798 1.614 0 .512-.148.91-.45 1.196-.297.284-.749.429-1.348.429-1.2 0-1.8-.543-1.8-1.625zm3.449 15.233h-3.302v-12.104h3.302zm8.563-2.413c.578 0 1.271-.128 2.077-.38v2.456c-.82.37-1.831.552-3.031.552-1.324 0-2.28-.333-2.885-1.001-.602-.667-.902-1.668-.902-3.003v-5.835h-1.585v-1.399l1.823-1.103.949-2.557h2.115v2.579h3.388v2.48h-3.388v5.835c0 .467.129.815.393 1.041.264.222.614.335 1.046.335z"}))),t))));var Lt=n(942),Mt=n.n(Lt);const Pt=({count:t,important:e,nav:n=!1})=>(0,m.jsx)(m.Fragment,{children:t>0&&(0,m.jsx)("span",{className:Mt()("gtmkit-ml-2 gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py-px gtmkit-leading-[1.125rem] gtmkit-uppercase",{"gtmkit-bg-color-error":e},{"gtmkit-bg-color-success":!e},{"gtmkit-px-1.5":n},{"gtmkit-px-2":!n}),children:t})}),Gt=({metrics:t})=>(0,m.jsx)(Pt,{count:t.total,important:t.problem>0,nav:!0}),Ft=Pt,Ht=({to:t,title:n})=>{const{useNotifications:i}=(0,e.useContext)(c);return i.metrics.total,(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(At,{to:t,className:({isActive:t})=>"gtmkit-border-b-4 gtmkit-border-white gtmkit-text-color-grey gtmkit-font-semibold gtmkit-pt-5 gtmkit-pb-[18px] hover:gtmkit-border-color-grey "+(t?"gtmkit-text-color-heading gtmkit-border-b-color-primary ":""),children:[n,"notifications"===t&&(0,m.jsx)(Gt,{metrics:i.metrics})]})})},Bt=({NavList:t})=>(0,u.createElement)("nav",{className:"gtmkit-flex gtmkit-flex-wrap gtmkit-items-center gtmkit-px-8 gtmkit-border-y gtmkit-bg-white gtmkit-border-color-border gtmkit-text-[15px] gtmkit-space-x-9"},t.map((function(t){return(0,u.createElement)(Ht,{key:t.to,to:t.to,title:t.title})})));function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Wt.apply(this,arguments)}function Kt(t,e){if(null==t)return{};var n,i,a={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(a[n]=t[n]);return a}function zt(t,e){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zt(t,e)}function Yt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,zt(t,e)}function $t(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Jt=p().createContext(null);var qt=function(t){return t.scrollTop},Vt="unmounted",Xt="exited",Zt="entering",Qt="entered",te="exiting",ee=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var a,o=n&&!n.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?o?(a=Xt,i.appearStatus=Zt):a=Qt:a=e.unmountOnExit||e.mountOnEnter?Vt:Xt,i.state={status:a},i.nextCallback=null,i}Yt(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===Vt?{status:Xt}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==Zt&&n!==Qt&&(e=Zt):n!==Zt&&n!==Qt||(e=te)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,i=this.props.timeout;return t=e=n=i,null!=i&&"number"!=typeof i&&(t=i.exit,e=i.enter,n=void 0!==i.appear?i.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===Zt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:St().findDOMNode(this);n&&qt(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xt&&this.setState({status:Vt})},n.performEnter=function(t){var e=this,n=this.props.enter,i=this.context?this.context.isMounting:t,a=this.props.nodeRef?[i]:[St().findDOMNode(this),i],o=a[0],s=a[1],r=this.getTimeouts(),l=i?r.appear:r.enter;t||n?(this.props.onEnter(o,s),this.safeSetState({status:Zt},(function(){e.props.onEntering(o,s),e.onTransitionEnd(l,(function(){e.safeSetState({status:Qt},(function(){e.props.onEntered(o,s)}))}))}))):this.safeSetState({status:Qt},(function(){e.props.onEntered(o)}))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:St().findDOMNode(this);e?(this.props.onExit(i),this.safeSetState({status:te},(function(){t.props.onExiting(i),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:Xt},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:Xt},(function(){t.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,e.nextCallback=null,t(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:St().findDOMNode(this),i=null==t&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=a[0],s=a[1];this.props.addEndListener(o,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===Vt)return null;var e=this.props,n=e.children,i=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Kt(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return p().createElement(Jt.Provider,{value:null},"function"==typeof n?n(t,i):p().cloneElement(p().Children.only(n),i))},e}(p().Component);function ne(){}ee.contextType=Jt,ee.propTypes={},ee.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ne,onEntering:ne,onEntered:ne,onExit:ne,onExiting:ne,onExited:ne},ee.UNMOUNTED=Vt,ee.EXITED=Xt,ee.ENTERING=Zt,ee.ENTERED=Qt,ee.EXITING=te;const ie=ee;var ae=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return i=e,void((n=t).classList?n.classList.remove(i):"string"==typeof n.className?n.className=$t(n.className,i):n.setAttribute("class",$t(n.className&&n.className.baseVal||"",i)));var n,i}))},oe=function(t){function e(){for(var e,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var i=e.resolveArguments(t,n),a=i[0],o=i[1];e.removeClasses(a,"exit"),e.addClass(a,o?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var i=e.resolveArguments(t,n),a=i[0],o=i[1]?"appear":"enter";e.addClass(a,o,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var i=e.resolveArguments(t,n),a=i[0],o=i[1]?"appear":"enter";e.removeClasses(a,o),e.addClass(a,o,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,i="string"==typeof n,a=i?(i&&n?n+"-":"")+t:n[t];return{baseClassName:a,activeClassName:i?a+"-active":n[t+"Active"],doneClassName:i?a+"-done":n[t+"Done"]}},e}Yt(e,t);var n=e.prototype;return n.addClass=function(t,e,n){var i=this.getClassNames(e)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&a&&(i+=" "+a),"active"===n&&t&&qt(t),i&&(this.appliedClasses[e][n]=i,function(t,e){t&&e&&e.split(" ").forEach((function(e){return i=e,void((n=t).classList?n.classList.add(i):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,i)||("string"==typeof n.className?n.className=n.className+" "+i:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+i)));var n,i}))}(t,i))},n.removeClasses=function(t,e){var n=this.appliedClasses[e],i=n.base,a=n.active,o=n.done;this.appliedClasses[e]={},i&&ae(t,i),a&&ae(t,a),o&&ae(t,o)},n.render=function(){var t=this.props,e=(t.classNames,Kt(t,["classNames"]));return p().createElement(ie,Wt({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(p().Component);oe.defaultProps={classNames:""},oe.propTypes={};const se=oe,re=({title:n=(0,t.__)("Save","gtm-kit"),className:a="gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey"})=>{const{useUpdateSettings:o,useIsPending:s,useCanSave:r}=(0,e.useContext)(c);return(0,u.createElement)(i.Button,{className:a,onClick:()=>o(),variant:"primary",disabled:s||!r},r?(0,t.__)(n,"gtm-kit"):(0,t.__)("Saved","gtm-kit"),s?(0,u.createElement)(i.Spinner,null):"")},le=()=>{const{useCanSave:t}=(0,e.useContext)(c);return(0,u.createElement)(se,{in:t,timeout:500,classNames:"slide",unmountOnExit:!0},(0,u.createElement)("footer",{className:"gtmkit-fixed gtmkit-bottom-0 gtmkit-w-full gtmkit-z-10 gtmkit-bg-color-grey gtmkit-text-white gtmkit-p-8"},(0,u.createElement)(re,null)))},me=({subject:e})=>{const n=!0===e||"on"===e,i=!0===n?"gtmkit-bg-color-success":"gtmkit-bg-color-button-disabled";return(0,u.createElement)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-2 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase "+i},n?(0,t.__)("Active","gtm-kit"):(0,t.__)("Inactive","gtm-kit"))},ce=(0,e.forwardRef)((({children:t,className:e="",...n},i)=>(0,u.createElement)("div",{...n,className:"gtmkit-flex gtmkit-flex-col gtmkit-min-h-[128px] gtmkit-bg-white gtmkit-border gtmkit-border-color-border gtmkit-mb-6 gtmkit-py-4 gtmkit-px-5 gtmkit-rounded gtmkit-group gtmkit-w-full "+e,ref:i},t)));ce.Header=({as:t="h3",title:e="",children:n,className:i="",...a})=>(0,u.createElement)("div",{...a,className:"gtmkit-flex gtmkit-justify-between gtmkit-items-center gtmkit-mb-5 "+i},(0,u.createElement)(t,{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading"},e),n),ce.Content=({as:t="div",children:e,className:n="gtmkit-flex-auto",...i})=>(0,u.createElement)(t,{...i,className:n},e),ce.Button=({url:t,destination:e,newTab:n=!1,text:a,group:o="",...s})=>{const r=at();return(0,u.createElement)("div",{...s,className:"gtmkit-mt-4 gtmkit-mb-0.5"},(0,u.createElement)(i.Button,{variant:"primary",className:"gtmkit-rounded !gtmkit-py-4 !gtmkit-px-8 gtmkit-w-full sm:gtmkit-w-auto gtmkit-min-w-[225px]",onClick:()=>{e&&t&&!1===n?window.gtmkitSettings.current_poage===o?r(e,{replace:!0}):window.location.href=t+"#"+e:t?n?window.open(t):window.location.href=t:r(e,{replace:!0})}},(0,u.createElement)("span",{className:"gtmkit-mx-auto gtmkit-text-sm gtmkit-font-bold"},a)))};const ge=ce,ue=({title:n,data:i,className:a=""})=>{const{useSettings:o}=(0,e.useContext)(c);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8 gtmkit-mt-6"},n),(0,u.createElement)("div",{className:"lg:gtmkit-grid lg:gtmkit-grid-cols-2 xl:gtmkit-grid-cols-3 gtmkit-justify-between gtmkit-gap-6 gtmkit-border-b gtmkit-border-color-border gtmkit-pb-6 gtmkit-min-h-[175px] "+a},i.map(((e,n)=>!1===e.featured?null:(0,u.createElement)(ge,{key:n},(0,u.createElement)(ge.Header,{title:e.title},e.pill?(0,u.createElement)(me,{subject:o[e.group][e.option]}):null),(0,u.createElement)(ge.Content,null,e.text.map(((t,e)=>(0,u.createElement)("p",{key:e},t)))),(0,u.createElement)(ge.Button,{url:e.link.url,destination:e.link.destination,text:e.link.text?e.link.text:(0,t.__)("Read article","gtm-kit"),newTab:e.link.external,group:e.group}))))))},de=e=>((t,e,n)=>{const i=(t,n)=>({...n,title:t.title,to:t.path,group:t.group||n.group,option:t.option||n.option,text:[t.description],link:{...n.link,url:window.gtmkitSettings[e+"Url"],destination:"/"+t.path}});return"templates"===e?Object.keys(t).map((e=>i(t[e][0],n))):Object.keys(t).map((e=>i(t[e],n)))})(window.gtmkitSettings[e],e,function(e){switch(e){case"integrations":return{pill:!0,group:"integrations",option:null,link:{internal:!0,text:(0,t.__)("Setup Integration","gtm-kit")}};case"templates":return{pill:!1,group:null,option:null,link:{internal:!0,text:(0,t.__)("Get Template","gtm-kit")}};default:return{pill:!1,group:null,option:null,link:{internal:!0,text:(0,t.__)("Read More","gtm-kit")}}}}(e)),pe=()=>{const{useSettings:n,useNotifications:i}=(0,e.useContext)(c),[a,o]=(0,e.useState)(window.gtmkitSettings.tutorials),s=(Boolean(n.general.sgtm_domain&&n.general.sgtm_domain.trim()),i.metrics);return(0,e.useEffect)((()=>{o((e=>[...e,{title:(0,t.__)("See all tutorials","gtm-kit"),text:[(0,t.__)("See all our tutorials and get the most out of GTM Kit","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=documentation&utm_content=dashboard-tutorials",text:(0,t.__)("Read articles","gtm-kit")},featured:!0}]))}),[]),(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:(0,t.__)("General","gtm-kit")}),(0,m.jsxs)("div",{className:"lg:gtmkit-grid lg:gtmkit-grid-cols-2 xl:gtmkit-grid-cols-3 lg:gtmkit-justify-between gtmkit-gap-6 gtmkit-border-b gtmkit-border-color-border gtmkit-pb-6 gtmkit-min-h-[175px]",children:[(0,m.jsxs)(ge,{children:[(0,m.jsx)(ge.Header,{title:"Google Tag Manager Container",children:(0,m.jsx)(me,{subject:n.general.gtm_id&&n.general.container_active})}),(0,m.jsx)(ge.Content,{children:n.general.gtm_id&&n.general.container_active?(0,m.jsxs)("p",{children:[(0,t.__)("Container ID:","gtm-kit")," ",n&&n.general.gtm_id]}):(0,m.jsx)("p",{children:(0,t.__)("The container is not active but the datalayer is generated.","gtm-kit")})}),(0,m.jsx)(ge.Button,{destination:"/container",text:(0,t.__)("Edit container","gtm-kit")})]}),(0,m.jsxs)(ge,{children:[(0,m.jsx)(ge.Header,{title:(0,t.__)("Notifications","gtm-kit"),className:"!gtmkit-justify-start",children:(0,m.jsx)(Ft,{count:s.total,important:s.problem>0})}),(0,m.jsx)(ge.Content,{children:s.total?(0,m.jsx)(m.Fragment,{children:s.problem?(0,m.jsx)("p",{children:(0,t.__)("There are some problems that require your attention.","gtm-kit")}):(0,m.jsx)("p",{children:(0,t.__)("There are some notifications that may require your attention.","gtm-kit")})}):(0,m.jsx)("p",{children:(0,t.__)("No notifications at the moment.","gtm-kit")})}),(0,m.jsx)(ge.Button,{destination:"/notifications",text:(0,t.__)("See all notifications","gtm-kit")})]}),(0,m.jsxs)(ge,{children:[(0,m.jsx)(ge.Header,{title:(0,t.__)("Help improve GTM Kit","gtm-kit"),children:(0,m.jsx)(me,{subject:n.general.analytics_active})}),(0,m.jsx)(ge.Content,{children:(0,m.jsx)("p",{children:(0,t.__)("Share anonymous data with the development team to help improve GTM Kit.","gtm-kit")})}),(0,m.jsx)(ge.Button,{destination:"/misc",text:(0,t.__)("Share anonymous data","gtm-kit")})]})]}),(0,m.jsx)(ue,{title:(0,t.__)("Tutorials","gtm-kit"),data:a}),(0,m.jsx)(ue,{title:(0,t.__)("Integrations","gtm-kit"),data:de("integrations")})]})},he=({title:t,placeholder:e,help:n,className:a="gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",optionGroup:o="general",optionName:s,isDisabled:r,useSettings:l,useUpdateStateSettings:m})=>(0,u.createElement)(i.TextControl,{label:t,placeholder:e,help:n,className:a,value:l[o][s],onChange:t=>m(o,s,t),disabled:r}),ke=({title:t,label:e,optionGroup:n="general",optionName:a,disabled:o=!1,useSettings:s,useUpdateStateSettings:r})=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-py-4"},(0,u.createElement)(i.BaseControl,{label:t},(0,u.createElement)(i.ToggleControl,{label:e,checked:!o&&s[n][a],onChange:()=>{r(n,a,!(s&&s[n][a]))},disabled:o})))),fe=({title:t,options:e,help:n,className:a="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:o="general",optionName:s,disabled:r,useSettings:l,useUpdateStateSettings:m})=>(0,u.createElement)(i.RadioControl,{label:t,options:e,help:n,className:a,selected:parseInt(l[o][s]),onChange:t=>m(o,s,t),disabled:r}),_e=({title:t,help:n,items:a=[],optionGroup:o="general",optionName:s,disabled:r=!1,useSettings:l,useUpdateStateSettings:m})=>{const c=Array.isArray(l[o][s])?l[o][s]:[],[g,d]=(0,e.useState)(c);return(0,e.useEffect)((()=>{const t=Array.isArray(l[o][s])?l[o][s]:[];d(t)}),[l]),(0,u.createElement)(u.Fragment,null,(0,u.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-py-4"},(0,u.createElement)(i.BaseControl,{label:t,help:n},a.map((t=>(0,u.createElement)(i.CheckboxControl,{key:t.role,label:t.name,disabled:r,checked:g.includes(t.role),onChange:e=>((t,e)=>{d((n=>{let i;return i=t?[...n,e]:n.filter((t=>t!==e)),m(o,s,i),i}))})(e,t.role)}))))))},xe=(0,e.forwardRef)((({children:t,className:e="",disabled:n=!1,...i},a)=>(0,m.jsx)("div",{...i,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-max-w-screen-lg gtmkit-border-color-grey gtmkit-rounded "+e+(n?"gtmkit-opacity-60":""),ref:a,children:t})));xe.Header=({as:t="h3",title:e="",children:n,className:i="",...a})=>(0,m.jsxs)(t,{...a,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 "+i,children:[e,n]}),xe.Content=({as:t="div",children:e,className:n="",...i})=>(0,m.jsx)(t,{...i,className:"gtmkit-px-8 gtmkit-py-6 "+n,children:e});const be=xe,Se=()=>{const{useSettings:n,useUpdateStateSettings:i,useUserRoles:a}=(0,e.useContext)(c),o=!(n.general.sgtm_domain&&n.general.sgtm_domain.trim()&&n.general.sgtm_container_identifier&&n.general.sgtm_container_identifier.trim()),s=nt();return(0,u.useEffect)((()=>{const t=new URLSearchParams(s.search).get("focus");if(t){const e=document.getElementById(t);e&&e.scrollIntoView()}}),[s]),(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:(0,t.__)("Google Tag Manager container","gtm-kit")}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("General Container Settings","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container.","gtm-kit")}),(0,m.jsx)(he,{title:(0,t.__)("GTM Container ID:","gtm-kit"),optionName:"gtm_id",placeholder:(0,t.__)("Enter GTM Container ID","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Inject Container Code","gtm-kit"),label:(0,t.__)("Setting this to Off will remove the Google Tag Manager container code but the data layer will remain.","gtm-kit"),optionName:"container_active",useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Just the container","gtm-kit"),label:(0,t.__)("Setting this to On will reduce the functionality to just the GTM container code. No additional data will be pushed to the datalayer regardless of any other settings.","gtm-kit"),optionName:"just_the_container",useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("dataLayer variable name:","gtm-kit"),optionName:"datalayer_name",placeholder:"dataLayer",help:(0,t.__)("The default name of the data layer object is dataLayer. If you prefer to use a different name for your data layer, you may do so.","gtm-kit"),useSettings:n,useUpdateStateSettings:i})]})]}),(0,m.jsx)("div",{id:"sgtm"}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Server-side Tagging (sGTM)","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(he,{title:(0,t.__)("sGTM Container Domain:","gtm-kit"),optionName:"sgtm_domain",placeholder:(0,t.__)("Enter domain","gtm-kit"),help:(0,t.__)("Enter your custom domain name if you are using a custom server side GTM container for tracking.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("sGTM container identifier:","gtm-kit"),optionName:"sgtm_container_identifier",placeholder:(0,t.__)("Enter loader name","gtm-kit"),help:(0,t.__)("Only use if you are using a custom loader.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Cookie Keeper (for Stape users only)","gtm-kit"),label:(0,t.__)("Prolong cookie lifetime in Safari and other browsers with ITP. This only works if you use Stape sGTM hosting and have set up the Cookie Keeper power up.","gtm-kit"),optionName:"sgtm_cookie_keeper",disabled:o,useSettings:n,useUpdateStateSettings:i})]}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Google Tag Manager Server-side Tagging","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("Server-side tagging is a silver bullet that gives you improved data accuracy, performance, privacy, and flexibility.","gtm-kit")," ",(0,m.jsx)("a",{href:"https://gtmkit.com/guides/google-tag-manager-server-side-tagging/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=sgtm&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more","gtm-kit")})]}),(0,m.jsx)("h4",{className:"gtmkit-pt-4 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Hosting server-side GTM containers","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("Setting up server-side tracking can be challenging and costly but there is an easy and cheap solution.","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("Stape.io is a solution for hosting server-side Google Tag Manager containers, offering a simplified approach that demands less technical expertise than solutions like Google Cloud Platform.","gtm-kit")," ",(0,t.__)("Additionally, it provides valuable add-ons for enhanced functionality.","gtm-kit")]}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,m.jsx)("a",{href:"https://jump.gtmkit.com/link/1-AC1E5",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more about Stape.io","gtm-kit")})})]})})]})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Page Speed Optimization","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsx)(be.Content,{children:(0,m.jsx)(ke,{title:(0,t.__)("load_delayed_js event","gtm-kit"),label:(0,t.__)("Setting this to On will push the event 'load_delayed_js' on page load.","gtm-kit"),optionName:"load_js_event",useSettings:n,useUpdateStateSettings:i})}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Delay JavaScript execution","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("Page optimization plugins can delay the 'load_delayed_js' event and this can be used to delay the triggering og tags in Google Tag Manager.","gtm-kit")," ",(0,m.jsx)("a",{href:"https://gtmkit.com/guides/delay-javascript-execution-in-gtm/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=delay-js&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Google Tag Manager Environment","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(he,{title:(0,t.__)("gtm_auth:","gtm-kit"),optionName:"gtm_auth",placeholder:(0,t.__)("Enter gtm_auth code","gtm-kit"),help:(0,t.__)("Enter the gtm_auth code for your GTM environment.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("gtm_preview:","gtm-kit"),optionName:"gtm_preview",placeholder:(0,t.__)("Enter gtm_preview code","gtm-kit"),help:(0,t.__)("Enter the gtm_preview code for your GTM environment.","gtm-kit"),useSettings:n,useUpdateStateSettings:i})]}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Environments","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("In Google Tag Manager you can define different environments like Live, Dev and QA.","gtm-kit")," ",(0,t.__)('To use a specific environment in GTM Kit you must enter the "gtm_auth" and "gtm_preview" codes for that environment.',"gtm-kit")," ",(0,t.__)("If left empty the default environment will be used.","gtm-kit")]}),(0,m.jsx)("h4",{className:"gtmkit-pt-4 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Override settings in wp-config.php","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("You can override the values by using constants in wp-config.php, which is a very useful for setting the value in your development and staging environments.","gtm-kit")," ",(0,m.jsx)("a",{href:"https://gtmkit.com/documentation/settings-actions-and-filters-for-developers/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=container-settings&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Exclude User Roles","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsx)(be.Content,{children:(0,m.jsx)(_e,{title:(0,t.__)("Exclude user roles","gtm-kit"),help:(0,t.__)("Select the roles that you want to exclude from tracking.","gtm-kit"),items:a,optionName:"exclude_user_roles",useSettings:n,useUpdateStateSettings:i})}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold gtmkit-text-red-600",children:(0,t.__)("Warning!","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("Excluding user roles is not compatible with all full-page cache solutions. Some full-page cache solutions may cache the page identically for all users, regardless of their user role. This could result in users being excluded who should not be.","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("Please ensure thorough and proper testing of this.","gtm-kit")})]})})]})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Container Code Implementation","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(fe,{title:(0,t.__)("Container code implementation:","gtm-kit"),options:[{label:(0,t.__)("Standard implementation as recommended by Google (no delay)","gtm-kit"),value:0},{label:(0,t.__)("Load container when the browser is idle (requestIdleCallback)","gtm-kit"),value:1}],help:(0,t.__)("Depending on how you use Google Tag Manager you can delay the loading of the container script until the browser is idle.","gtm-kit"),optionName:"script_implementation",useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(fe,{title:(0,t.__)("Container code noscript implementation:","gtm-kit"),options:[{label:(0,t.__)("Just after the opening <body> tag","gtm-kit"),value:0},{label:(0,t.__)("Footer of the page (not recommended by Google)","gtm-kit"),value:1},{label:(0,t.__)("Custom (insert function in your template)","gtm-kit"),value:2},{label:(0,t.__)("Disable <noscript> implementation","gtm-kit"),value:3}],help:(0,t.__)('The preferred method to implement the <noscript> container code is just after the opening <body> tag. This requires that your theme uses the "body_open" hook. If your theme does not support this the script can be injected in the footer or you can use the function below.',"gtm-kit"),optionName:"noscript_implementation",useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,m.jsx)("code",{children:"<?php if ( function_exists( 'gtmkit_the_noscript_tag' ) ) { gtmkit_the_noscript_tag(); } ?>"})})]})]})]})},ye=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Post Data","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Post Data Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-4"},(0,t.__)("Specify which post data elements you wish to include in the dataLayer for use in Google Tag Manager.","gtm-kit")),(0,u.createElement)(ke,{title:(0,t.__)("Post type","gtm-kit"),id:"post-type",label:(0,t.__)("Include the type of the current post or archive page.","gtm-kit"),optionName:"datalayer_post_type",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Page type","gtm-kit"),id:"page-type",label:(0,t.__)('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",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Categories","gtm-kit"),id:"categories",label:(0,t.__)("Include the categories of the current post or archive page.","gtm-kit"),optionName:"datalayer_categories",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Tags","gtm-kit"),id:"tags",label:(0,t.__)("Include the tags of the current post or archive page.","gtm-kit"),optionName:"datalayer_tags",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post title","gtm-kit"),id:"post-title",label:(0,t.__)("Include the Post ID of the current post.","gtm-kit"),optionName:"datalayer_post_title",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post ID","gtm-kit"),id:"post-id",label:(0,t.__)("Include the Post ID of the current post.","gtm-kit"),optionName:"datalayer_post_id",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post data","gtm-kit"),id:"post-date",label:(0,t.__)("Include the post date.","gtm-kit"),optionName:"datalayer_post_date",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post author name","gtm-kit"),id:"post-author-name",label:(0,t.__)("Include the post author name.","gtm-kit"),optionName:"datalayer_post_author_name",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post author ID","gtm-kit"),id:"post-author-id",label:(0,t.__)("Include the post author ID.","gtm-kit"),optionName:"datalayer_post_author_id",useSettings:n,useUpdateStateSettings:i}))))},ve=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("User Data","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Warning!","gtm-kit"),className:"gtmkit-text-red-600"}),(0,u.createElement)(be.Content,{className:"gtmkit-space-y-2"},(0,u.createElement)("p",null,(0,t.__)("Including user data is not compatible with full page caching.","gtm-kit")),(0,u.createElement)("p",null,(0,t.__)("Full page caching will cache user data making it the same for all users. There are ways around this, but it depends on the chosen cache solution and is only for advanced users.","gtm-kit")))),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("User Data Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Logged in","gtm-kit"),id:"logged-in",label:(0,t.__)("Include whether the user is logged in.","gtm-kit"),optionName:"datalayer_logged_in",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("User ID","gtm-kit"),id:"user-id",label:(0,t.__)("Include the user ID if the user is logged in.","gtm-kit"),optionName:"datalayer_user_id",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("User role","gtm-kit"),id:"user-role",label:(0,t.__)("Include the user role if the user is logged in.","gtm-kit"),optionName:"datalayer_user_role",useSettings:n,useUpdateStateSettings:i}))))},Ee=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c),a=!n.general.gcm_default_settings;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Google Consent Mode","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Google Consent Mode Activation","gtm-kit")},(0,u.createElement)("span",{className:"gtmkit-text-red-600 gtmkit-ml-2"},(0,t.__)("Warning!","gtm-kit"))),(0,u.createElement)(be.Content,{className:"gtmkit-space-y-2"},(0,u.createElement)("p",null,(0,t.__)("Most Consent Management Platforms will handle the Google Consent Mode settings for you and applying the default settings in both GTM Kit and you CMP will lead to unexpected behaviour or errors.","gtm-kit")),(0,u.createElement)("p",null,(0,t.__)("You should only use these settings if you do not have a Consent Management Platform that supports Google Consent Mode.","gtm-kit")),(0,u.createElement)("p",{className:"!gtmkit-mt-4"},(0,t.__)("GTM Kit will only set the default Consent Mode settings and you must update the settings yourself when the user has given consent.","gtm-kit")),(0,u.createElement)("p",{className:"gtmkit-text-color-primary !gtmkit-my-6"},(0,u.createElement)("a",{href:"https://developers.google.com/tag-platform/security/guides/consent#implementation_example",target:"_blank",rel:"noreferrer",className:"hover:gtmkit-underline gtmkit-font-semibold"},(0,t.__)("See an example of how consent is updated","gtm-kit"))),(0,u.createElement)(ke,{title:(0,t.__)("Activate GCM settings","gtm-kit"),label:(0,t.__)("Choose this option if you would like to activate the default settings below","gtm-kit"),optionName:"gcm_default_settings",useSettings:n,useUpdateStateSettings:i}))),(0,u.createElement)(be,{disabled:a},(0,u.createElement)(be.Header,{title:(0,t.__)("Google Consent Mode Default Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Ad Personalization","gtm-kit"),label:(0,t.__)("Enables personalized advertising","gtm-kit"),optionName:"gcm_ad_personalization",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Ad Storage","gtm-kit"),label:(0,t.__)("Enables storage, such as cookies, related to advertising","gtm-kit"),optionName:"gcm_ad_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Ad User Data","gtm-kit"),label:(0,t.__)("Enables sending user data related to advertising to Google","gtm-kit"),optionName:"gcm_ad_user_data",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Analytics Storage","gtm-kit"),label:(0,t.__)("Enables storage, such as cookies, related to analytics (for example, visit duration)","gtm-kit"),optionName:"gcm_analytics_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Functionality Storage","gtm-kit"),label:(0,t.__)("Enables storage that supports the functionality of the website or app such as language settings","gtm-kit"),optionName:"gcm_functionality_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Personalization Storage","gtm-kit"),label:(0,t.__)("Enables storage related to personalization such as video recommendations","gtm-kit"),optionName:"gcm_personalization_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Security Storage","gtm-kit"),label:(0,t.__)("Enables storage related to security such as authentication functionality, fraud prevention, and other user protection","gtm-kit"),optionName:"gcm_security_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)("h4",{className:"gtmkit-font-bold gtmkit-pt-8"},(0,t.__)("Advanced","gtm-kit")),(0,u.createElement)(ke,{title:(0,t.__)("Redact Ads Data","gtm-kit"),label:(0,t.__)("Redact advertising data","gtm-kit"),optionName:"gcm_ads_data_redaction",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Pass through URL parameters","gtm-kit"),label:(0,t.__)("Pass through ad click, client ID, and session ID information in URLs","gtm-kit"),optionName:"gcm_url_passthrough",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(he,{title:(0,t.__)("Wait For Update","gtm-kit"),optionName:"gcm_wait_for_update",placeholder:(0,t.__)("Enter time in milliseconds","gtm-kit"),useSettings:n,useUpdateStateSettings:i}))))},Ne=({label:t,value:e,tag:n})=>(0,u.createElement)("tr",null,(0,u.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-4 gtmkit-py-2"},(0,u.createElement)("strong",null,t)),(0,u.createElement)("td",{className:"gtmkit-px-4 gtmkit-py-2"},"code"===n?(0,u.createElement)("code",{className:"gtmkit-text-sm"},e):(0,u.createElement)("em",null,e))),we=()=>{const{useSiteData:n}=(0,e.useContext)(c),i=Object.values(n.shared_data);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey"},(0,t.__)("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,u.createElement)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey"},(0,t.__)("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,u.createElement)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm gtmkit-my-6 gtmkit-py-6"},(0,u.createElement)("tbody",{className:"gtmkit-py-6"},i.map((function(t,e){return(0,u.createElement)(Ne,{key:e,label:t.label,value:t.value,tag:t.tag})})))))},je=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Misc","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Help improve GTM Kit","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(we,null),(0,u.createElement)("p",{className:"gtmkit-my-4 gtmkit-mb-2 gtmkit-text-color-grey"},(0,t.__)("GTM Kit will never transmit any domain names or container ID's.","gtm-kit")),(0,u.createElement)(ke,{title:(0,t.__)("Share anonymous data","gtm-kit"),label:(0,t.__)("I agree to share anonymous data with the development team to help improve GTM Kit.","gtm-kit"),optionName:"analytics_active",useSettings:n,useUpdateStateSettings:i}))),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Logging and debugging","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Event Inspector","gtm-kit"),label:(0,t.__)("The event inspector is placed in the footer of the front and it allows you to see all the fired GTM events.","gtm-kit"),optionName:"event_inspector",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Console log","gtm-kit"),label:(0,t.__)("Log helpful messages and warnings to the browser log.","gtm-kit"),optionName:"console_log",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Debug log","gtm-kit"),label:(0,t.__)('Log the "purchase" event to the debug log.',"gtm-kit"),optionName:"debug_log",useSettings:n,useUpdateStateSettings:i}))))},Te=()=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)(ue,{title:(0,t.__)("Integrations","gtm-kit"),data:de("integrations")})),Ce=({pluginName:e})=>(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.sprintf)(
    22// translators: %s is the name of the plugin.
    3 (0,a.__)("%s is not active","gtm-kit"),e),className:"gtmkit-text-red-600"}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-6"},(0,a.sprintf)(
    43// translators: %s is the name of the plugin.
    5 (0,a.__)("If you haven't installed and activated %s you must do that.","gtm-kit"),e)),(0,t.createElement)(r.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=window.gtmkitSettings.pluginInstallUrl+e}},(0,a.sprintf)(
     4(0,t.__)("%s is not active","gtm-kit"),e),className:"gtmkit-text-red-600"}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-6"},(0,t.sprintf)(
    65// translators: %s is the name of the plugin.
    7 (0,a.__)("Install %s","gtm-kit"),e)))),we=({title:e,options:n,className:s="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:o="general",optionName:l,disabled:m=!1,help:c="",notSet:u=!1})=>{const{useSettings:d,useUpdateStateSettings:p}=(0,i.useContext)(g),h=u?[{label:(0,a.__)("(not set)","gtm-kit"),value:""},...n]:n;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(r.SelectControl,{label:e,value:d&&d[o][l],options:h,className:s,onChange:t=>p(o,l,t),disabled:m,help:c}))},Ne=({pluginName:e,optionName:n,pluginInactive:r})=>{const{useSettings:s,useUpdateStateSettings:o}=(0,i.useContext)(g);return(0,t.createElement)(he,{disabled:r},(0,t.createElement)(he.Header,{title:(0,a.sprintf)(
    86// translators: %s is the name of the plugin.
    9 (0,a.__)("%s Integration","gtm-kit"),e)}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.sprintf)(
     7(0,t.__)("If you haven't installed and activated %s you must do that.","gtm-kit"),e)),(0,u.createElement)(i.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=window.gtmkitSettings.pluginInstallUrl+e}},(0,t.sprintf)(
    108// translators: %s is the name of the plugin.
    11 (0,a.__)("Track %s","gtm-kit"),e),label:(0,a.sprintf)(
    129// translators: %s is the name of the plugin.
    13 (0,a.__)("Activate the %s integration","gtm-kit"),e),optionGroup:"integrations",optionName:n,disabled:r,useSettings:s,useUpdateStateSettings:o})))},Ce=[{label:(0,a.__)("Retail","gtm-kit"),value:"retail"},{label:(0,a.__)("Education","gtm-kit"),value:"education"},{label:(0,a.__)("Flights","gtm-kit"),value:"flights"},{label:(0,a.__)("Hotel rental","gtm-kit"),value:"hotel_rental"},{label:(0,a.__)("Jobs","gtm-kit"),value:"jobs"},{label:(0,a.__)("Local deals","gtm-kit"),value:"local"},{label:(0,a.__)("Real estate","gtm-kit"),value:"real_estate"},{label:(0,a.__)("Travel","gtm-kit"),value:"travel"},{label:(0,a.__)("Custom","gtm-kit"),value:"custom"}],je=()=>{const{useSettings:t,useUpdateStateSettings:e,isPremium:n}=(0,i.useContext)(g),r="WooCommerce",s=!window.gtmkitSettings.plugins.woocommerce,o=s||!t.integrations.woocommerce_integration,l=o||!n||!t.general.sgtm_domain,m=l||!t.premium.woocommerce_webhooks;return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,a.__)("WooCommerce","gtm-kit")}),s?(0,de.jsx)(xe,{pluginName:r}):null,(0,de.jsx)(Ne,{pluginName:r,optionName:"woocommerce_integration",pluginInactive:s}),(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Basic settings","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(we,{title:(0,a.__)("Brand","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_brand",options:window.gtmkitSettings.taxonomyOptions,help:(0,a.__)("Select the taxonomy that is used for product brands","gtm-kit"),notSet:!0,disabled:o}),(0,de.jsx)(ce,{title:(0,a.__)("Use SKU instead of ID","gtm-kit"),label:(0,a.__)("Use SKU instead of the product ID with fallback to ID if no SKU is set.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_use_sku",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Exclude tax","gtm-kit"),label:(0,a.__)("Exclude tax from prices and revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_tax",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Exclude shipping from revenue","gtm-kit"),label:(0,a.__)("Exclude shipping from revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_shipping",disabled:o,useSettings:t,useUpdateStateSettings:e})]})]}),(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("User Data","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsx)(he.Content,{children:(0,de.jsx)(ce,{title:(0,a.__)("Include customer data","gtm-kit"),label:(0,a.__)('Enable this option to include customer data in the data layer on the "purchase" event.',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_customer_data",disabled:o,useSettings:t,useUpdateStateSettings:e})}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("User-Provided Data","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("The user data is available in the datalayer in 'ecommerce.customer' and a subset of the user data formatted for the 'User-Provided Data' variable is available in 'user-data'.","gtm-kit")," ",(0,de.jsx)("a",{href:"https://support.google.com/google-ads/answer/13262500?sjid=9465166023214753583-EU#Code_snippet",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more","gtm-kit")})]})]})})]})]}),n?(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Webhooks for server-side tracking","gtm-kit"),children:n?(0,de.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,de.jsxs)(he.Content,{children:[l?(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("In order to use webhooks you must first enable Server-side Tagging by entering a sGTM Container Domain","gtm-kit"),(0,de.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:window.gtmkitSettings.dashboardUrl+"#/container?focus=sgtm",children:(0,a.__)("Go to sGTM settings","gtm-kit")})]}):(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("In order to use webhooks you must configure you server-side container to handle the webhooks","gtm-kit"),(0,de.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:window.gtmkitSettings.templatesUrl+"#/server-side-tagging",children:(0,a.__)("Go to GTM Templates","gtm-kit")})]}),(0,de.jsx)(ce,{title:(0,a.__)("Send webhooks to server GTM container","gtm-kit"),label:(0,a.__)("This option will allow webhooks to be sent to your server GTM container.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_webhooks",disabled:l,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Purchase webhook","gtm-kit"),label:(0,a.__)("Enable this option to include the permalink structure of the product base, category base, tag base and attribute base.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_purchase_webhook",disabled:m,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Refund webhook","gtm-kit"),label:(0,a.__)("Enable this option to include the path of cart, checkout, order received and my account page.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_refund_webhook",disabled:m,useSettings:t,useUpdateStateSettings:e})]})]}):null,(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Event customization","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(ge,{title:"view_item_list (with product filter)",options:[{label:(0,a.__)("Push view_item_list when the list is updated using a product filter.","gtm-kit"),value:0},{label:(0,a.__)("Only only push view_item_list once per per page for each list.","gtm-kit"),value:1}],help:(0,a.__)("Do you what to push the view_item_list event if the list is updated using a filter or just once per page view.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_view_item_list_limit",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ge,{title:"view_item (variable product)",options:[{label:(0,a.__)("Only push view_item on the master product","gtm-kit"),value:0},{label:(0,a.__)("Push view_item on master and variation products (higher number of views).","gtm-kit"),value:1},{label:(0,a.__)("Only push view_item on variation products.","gtm-kit"),value:2}],help:(0,a.__)('When do you want to fire the "view_item" event on variable products?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_variable_product_tracking",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ge,{title:"add_shipping_info ",options:[{label:(0,a.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,a.__)("When a shipment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,a.__)("Disable the 'add_shipment_info' event.","gtm-kit"),value:0}],help:(0,a.__)('When do you want to fire the "add_shipment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_shipping_info",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ge,{title:"add_payment_info ",options:[{label:(0,a.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,a.__)("When a payment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,a.__)("Disable the 'add_payment_info' event.","gtm-kit"),value:0}],help:(0,a.__)('When do you want to fire the "add_payment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_payment_info",disabled:o,useSettings:t,useUpdateStateSettings:e})]})]}),(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Google Ads Settings","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(we,{title:(0,a.__)("Google Business Vertical","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_google_business_vertical",options:Ce,help:(0,a.__)("In order to use Google Ads Remarketing you must select your business type (vertical).","gtm-kit"),notSet:!0,disabled:o}),(0,de.jsx)(me,{title:(0,a.__)("Product ID prefix","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_product_id_prefix",placeholder:(0,a.__)("Enter prefix","gtm-kit"),help:(0,a.__)("If your product feed generator is adding a prefix to the product IDs, you can add the prefix here to include it in the Data Layer.","gtm-kit"),disabled:o,useSettings:t,useUpdateStateSettings:e})]})]}),n?(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Custom CSS Selectors","gtm-kit"),children:n?(0,de.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("If your shop is not compatible with the default CSS selectors you can specify your own CSS selectors.","gtm-kit")}),(0,de.jsx)(me,{title:(0,a.__)("Single Product (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_single_product_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,a.__)("Enter CSS selector","gtm-kit"),help:(0,a.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit"),useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(me,{title:(0,a.__)("Product List (select_item):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_item_selector",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,a.__)("Enter CSS selector","gtm-kit"),help:(0,a.__)("Enter the CSS selector that matches your product list item, which should be use to fire the select_item event.","gtm-kit"),useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(me,{title:(0,a.__)("Product List (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,a.__)("Enter CSS selector","gtm-kit"),help:(0,a.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit"),useSettings:t,useUpdateStateSettings:e})]})]}):null,(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Advanced Settings","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(ce,{title:(0,a.__)("Dequeue the default JavaScript","gtm-kit"),label:(0,a.__)("Enable this option to dequeue the default JavaScript if you plan to create your own JavaScript.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_dequeue_script",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Include permalink structure","gtm-kit"),label:(0,a.__)("Enable this option to include the permalink structure of the product base, category base, tag base and attribute base.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_permalink_structure",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Include path of pages","gtm-kit"),label:(0,a.__)("Enable this option to include the path of cart, checkout, order received and my account page.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_pages",disabled:o,useSettings:t,useUpdateStateSettings:e})]})]})]})},Te=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g),r="Contact Form 7",s=!window.gtmkitSettings.plugins.cf7,o=s||!e.integrations.cf7_integration;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Contact Form 7","gtm-kit")),s?(0,t.createElement)(xe,{pluginName:r}):null,(0,t.createElement)(Ne,{pluginName:r,optionName:"cf7_integration",pluginInactive:s}),(0,t.createElement)(he,{disabled:o},(0,t.createElement)(he.Header,{title:(0,a.__)("Basic Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ge,{title:(0,a.__)("Load JavaScript","gtm-kit"),options:[{label:(0,a.__)("Only on pages where the Contact Form 7 script is registered (recommended).","gtm-kit"),value:1},{label:(0,a.__)("On all pages","gtm-kit"),value:2}],help:(0,a.__)("Where do you want load the JavaScript?","gtm-kit"),optionGroup:"integrations",optionName:"cf7_load_js",disabled:o,useSettings:e,useUpdateStateSettings:n}))))},Ue=()=>{const e="Easy Digital Downloads",n=!window.gtmkitSettings.plugins.edd,{useSettings:r,useUpdateStateSettings:s}=(0,i.useContext)(g),o=n||!r.integrations.edd_integration;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Easy Digital Downloads","gtm-kit")),n?(0,t.createElement)(xe,{pluginName:e}):null,(0,t.createElement)(Ne,{pluginName:e,optionName:"edd_integration",pluginInactive:n}),(0,t.createElement)(he,{disabled:o},(0,t.createElement)(he.Header,{title:(0,a.__)("Basic Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Use SKU instead of ID","gtm-kit"),label:(0,a.__)("Use SKU instead of the product ID with fallback to ID if no SKU is set.","gtm-kit"),optionGroup:"integrations",optionName:"edd_use_sku",disabled:o,useSettings:r,useUpdateStateSettings:s}),(0,t.createElement)(ce,{title:(0,a.__)("Exclude tax","gtm-kit"),label:(0,a.__)("Exclude tax from prices and revenue","gtm-kit"),optionGroup:"integrations",optionName:"edd_exclude_tax",disabled:o,useSettings:r,useUpdateStateSettings:s}),(0,t.createElement)(ce,{title:(0,a.__)("Include customer data","gtm-kit"),label:(0,a.__)('Enable this option to include customer data in the data layer on the "purchase" event.',"gtm-kit"),optionGroup:"integrations",optionName:"edd_include_customer_data",disabled:o,useSettings:r,useUpdateStateSettings:s}))),(0,t.createElement)(he,{disabled:o},(0,t.createElement)(he.Header,{title:(0,a.__)("Google Ads Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(we,{title:(0,a.__)("Google Business Vertical","gtm-kit"),optionGroup:"integrations",optionName:"edd_google_business_vertical",options:Ce,help:(0,a.__)("In order to use Google Ads Remarketing you must select your business type (vertical).","gtm-kit"),notSet:!0,disabled:o}),(0,t.createElement)(me,{title:(0,a.__)("Product ID prefix","gtm-kit"),optionGroup:"integrations",optionName:"edd_product_id_prefix",placeholder:(0,a.__)("Enter prefix","gtm-kit"),help:(0,a.__)("If your product feed generator is adding a prefix to the product IDs, you can add the prefix here to include it in the Data Layer.","gtm-kit"),disabled:o,useSettings:r,useUpdateStateSettings:s}))),(0,t.createElement)(he,{disabled:n},(0,t.createElement)(he.Header,{title:(0,a.__)("Advanced settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Dequeue the default JavaScript","gtm-kit"),label:(0,a.__)("Enable this option to dequeue the default JavaScript if you plan to create your own JavaScript.","gtm-kit"),optionGroup:"integrations",optionName:"edd_dequeue_script",disabled:o,useSettings:r,useUpdateStateSettings:s}))))},De=window.gtmkitSettings.templates||{},Pe=(Object.keys(De).map((function(t){const e=De[t][0];return{title:e.title,to:e.path,pill:!1,text:[e.description],link:{internal:!0,url:window.gtmkitSettings.templatesUrl,destination:"/"+e.path,text:(0,a.__)("Get template","gtm-kit")}}})),()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Getting Started","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Configure your Google Tag Manager container","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-4"},(0,a.__)("GTM Kit is sending data to your Google Tag Manger container but you still need to configure Tags, Triggers and Variables in GTM to use the data.","gtm-kit")),(0,t.createElement)("p",{className:"gtmkit-mb-4"},(0,a.__)("Below you will find GTM container template files, with all the necessary tags, trigger, and variables.","gtm-kit")),(0,t.createElement)("p",null,(0,a.__)("Please read the guide on how to use the import files and configure GTM.","gtm-kit"),(0,t.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:"https://gtmkit.com/guides/how-to-import-a-google-tag-manager-container/",target:"_blank",rel:"noreferrer"},(0,a.__)("Read the guide","gtm-kit"))))),(0,t.createElement)(se,{title:(0,a.__)("Templates","gtm-kit"),data:oe("templates")}))),Ie=({title:e,description:n,link:i,templates:r})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:e}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-4"},n),i&&i.url&&i.link_text?(0,t.createElement)("div",null,(0,t.createElement)("a",{href:i.url,target:"_blank",className:"gtmkit-text-color-primary gtmkit-text-base dgtmkit-font-semibold hover:gtmkit-underline",rel:"noreferrer"},i.link_text)):null,r&&r.length>0?(0,t.createElement)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-8 gtmkit-mt-8 gtmkit-border-2 gtmkit-px-6 gtmkit-py-4"},(0,t.createElement)("div",null,(0,t.createElement)("h4",{className:"gtmkit-font-bold"},(0,a.__)("GTM container import files:","gtm-kit")),(0,t.createElement)("ul",{className:"gtmkit-text-sm gtmkit-text-color-primary"},r.map((function(e){return(0,t.createElement)("li",null,(0,t.createElement)("a",{className:"hover:gtmkit-underline",href:e.link,target:"_blank",rel:"noreferrer"},e.title))})))),(0,t.createElement)("div",null,(0,t.createElement)("h4",{className:"gtmkit-font-bold"},(0,a.__)("Necessary modifications:","gtm-kit")),(0,t.createElement)("ul",{className:"gtmkit-text-sm"},r.map((function(e){return(0,t.createElement)("li",null,e.help_text)}))))):null))),Ge=({sectionData:e})=>{const n=e.collections;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},e.title),Object.keys(n).map((function(e){return(0,t.createElement)(Ie,{title:n[e].title,description:n[e].description,link:n[e].link,templates:n[e].templates})})))},Oe=()=>{const e=at(),n=window.gtmkitSettings.tutorials;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Help","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Need help?","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-4"},(0,a.__)("We are here to help if you have any questions.","gtm-kit"),(0,t.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",onClick:()=>{e("/support",{replace:!0})}},(0,a.__)("See support options","gtm-kit"))))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Tutorials","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("ul",null,n.map(((e,n)=>(0,t.createElement)("li",{key:n,className:"gtmkit-mb-4"},(0,t.createElement)("a",{href:e.link.url,target:"_blank",rel:"noreferrer",className:"gtmkit-font-semibold gtmkit-text-color-primary hover:gtmkit-underline"},e.title),e.text.map(((e,n)=>(0,t.createElement)("div",{key:n,className:"gtmkit-text-sm"},e))))))))))},Me=()=>{const{useIsSending:e,useSiteData:n,useUpdateSupportTicket:s,useSupportTicket:o,useSendSystemData:l,useIsSystemDataSent:m,useSystemDataMessage:c}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Get support","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Support options","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("ul",{className:"gtmkit-text-color-primary"},(0,t.createElement)("li",null,(0,t.createElement)("a",{href:"https://wordpress.org/support/plugin/gtm-kit/",target:"_blank",rel:"noreferrer"},(0,a.__)("WordPress.org Support Forum","gtm-kit"))),(0,t.createElement)("li",null,(0,t.createElement)("a",{href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer"},(0,a.__)("GITHub repository","gtm-kit"))),(0,t.createElement)("li",null,(0,t.createElement)("a",{href:"https://gtmkit.com/",target:"_blank",rel:"noreferrer"},(0,a.__)("Plugin Homepage","gtm-kit"))," ","(gtmkit.com)")))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Share system data with the GTM Kit support team","gtm-kit")}),(0,t.createElement)(he.Content,null,m?(0,t.createElement)("p",{className:"gtmkit-mb-2"},c):(0,t.createElement)(t.Fragment,null,(0,t.createElement)("p",{className:"gtmkit-mb-2"},(0,a.__)("If the GTM Kit support team has asked you to send your system data you can do so by entering the support ticket below:","gtm-kit")),(0,t.createElement)(r.TextControl,{label:(0,t.createElement)("span",{className:"gtmkit-text-red-600"},c," "),placeholder:(0,a.__)("Enter support ticket","gtm-kit"),className:"gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",value:o,onChange:t=>s(t)}),(0,t.createElement)(r.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey",onClick:()=>{l()},disabled:!o.toUpperCase().startsWith("FS")},(0,t.createElement)("span",null,(0,a.__)("Send system data","gtm-kit")),e?(0,t.createElement)(r.Spinner,null):"")))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("About GTM Kit","gtm-kit"),className:"gtmkit-flex gtmkit-items-center"},(0,t.createElement)("span",{className:"gtmkit-text-sm gtmkit-text-color-grey gtmkit-font-light gtmkit-ml-2"},"(",(0,a.__)("Version:","gtm-kit")," ",n.gtmkit_version,")")),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",null,(0,a.__)("Learn about changes and follow the development of GTM Kit:","gtm-kit"),(0,t.createElement)("br",null),(0,t.createElement)("a",{className:"gtmkit-text-color-primary hover:gtmkit-underline",href:"https://gtmkit.com/changelog/",target:"_blank",rel:"noreferrer"},(0,a.__)("The changelog","gtm-kit")),(0,t.createElement)("br",null),(0,t.createElement)("a",{className:"gtmkit-text-color-primary  hover:gtmkit-underline",href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer"},(0,a.__)("The GitHub repository","gtm-kit"))))))};const Re=e=>{const{Fill:n,Slot:a}=(0,r.createSlotFill)(e),i=({children:e})=>(0,t.createElement)(n,null,e);return i.Slot=({fillProps:e})=>(0,t.createElement)(a,{fillProps:e},(t=>t.length?t:null)),i},Le=Re("GravityForms"),Ae=(Re("WooWebhooks"),Re("WooCustomSelectors"),({integrationID:e,pluginName:n})=>{const{useSettings:a,useUpdateStateSettings:r}=(0,i.useContext)(g),s=!window.gtmkitSettings.plugins[e],o=s||!a.integrations[e+"_integration"];return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},n),s?(0,t.createElement)(xe,{pluginName:n}):null,(0,t.createElement)(Ne,{pluginName:n,optionName:e+"_integration",pluginInactive:s}),"gf"===e?(0,t.createElement)(Le.Slot,{fillProps:{settingsInactive:o,useSettings:a,useUpdateStateSettings:r}}):null)}),Fe=window.wp.plugins,Ke={integrations:(0,a.__)("Integrations","gtm-kit"),templates:(0,a.__)("Google Tag Manager Templates","gtm-kit"),help:(0,a.__)("Help","gtm-kit")},He=()=>{const{useSettings:e}=(0,i.useContext)(g),n=window.gtmkitSettings,s=n.currentPage,o=function({page:t}){switch(t){case"general":return[{to:"general",title:(0,a.__)("Dashboard","gtm-kit")},{to:"container",title:(0,a.__)("Container","gtm-kit")},{to:"post-data",title:(0,a.__)("Post data","gtm-kit")},{to:"user-data",title:(0,a.__)("User data","gtm-kit")},{to:"google-consent-mode",title:(0,a.__)("Google Consent Mode","gtm-kit")},{to:"misc",title:(0,a.__)("Misc","gtm-kit")}];case"integrations":return[{to:"integrations",title:(0,a.__)("Integrations","gtm-kit")},...oe("integrations")];case"templates":return[{to:"templates",title:(0,a.__)("Templates","gtm-kit")},...oe("templates")];case"help":return[{to:"help",title:(0,a.__)("Help","gtm-kit")},{to:"support",title:(0,a.__)("Support","gtm-kit")}]}}({page:s}),l=n.templates,m=n.integrations,c=Ke[s]||(0,a.__)("Settings","gtm-kit");return Object.keys(e).length?(0,t.createElement)(r.SlotFillProvider,null,(0,t.createElement)(Gt,{title:c}),(0,t.createElement)(Mt,{NavList:o}),(0,t.createElement)("main",{className:"gtmkit-max-w-[1536px] gtmkit-px-8 gtmkit-pt-8 gtmkit-text-base"},(0,t.createElement)(kt,null,(0,t.createElement)(ht,{exact:!0,path:"/general",element:(0,t.createElement)(le,null)}),(0,t.createElement)(ht,{exact:!0,path:"/container",element:(0,t.createElement)(_e,null)}),(0,t.createElement)(ht,{exact:!0,path:"/post-data",element:(0,t.createElement)(ke,null)}),(0,t.createElement)(ht,{exact:!0,path:"/user-data",element:(0,t.createElement)(fe,null)}),(0,t.createElement)(ht,{exact:!0,path:"/google-consent-mode",element:(0,t.createElement)(Se,null)}),(0,t.createElement)(ht,{exact:!0,path:"/misc",element:(0,t.createElement)(ve,null)}),(0,t.createElement)(ht,{exact:!0,path:"/integrations",element:(0,t.createElement)(ye,null)}),(0,t.createElement)(ht,{exact:!0,path:"/woocommerce",element:(0,t.createElement)(je,null)}),(0,t.createElement)(ht,{exact:!0,path:"/cf7",element:(0,t.createElement)(Te,null)}),(0,t.createElement)(ht,{exact:!0,path:"/edd",element:(0,t.createElement)(Ue,null)}),m&&Object.keys(m).map((function(e){if("add-on"===m[e].type)return(0,t.createElement)(ht,{exact:!0,key:e,path:e,element:(0,t.createElement)(Ae,{integrationID:e,pluginName:m[e].title})})})),(0,t.createElement)(ht,{exact:!0,path:"/templates",element:(0,t.createElement)(Pe,null)}),l&&Object.keys(l).map((function(e){return(0,t.createElement)(ht,{exact:!0,key:e,path:e,element:(0,t.createElement)(Ge,{sectionData:l[e][0]})})})),(0,t.createElement)(ht,{exact:!0,path:"/help",element:(0,t.createElement)(Oe,null)}),(0,t.createElement)(ht,{exact:!0,path:"/support",element:(0,t.createElement)(Me,null)}),(0,t.createElement)(ht,{path:"/",element:(0,t.createElement)(pt,{replace:!0,to:"/"+s})}))),(0,t.createElement)(ne,null),(0,t.createElement)(Fe.PluginArea,null)):(0,t.createElement)("div",{className:"gtmkit-h-screen gtmkit-flex gtmkit-items-center gtmkit-justify-center"},(0,t.createElement)(r.Spinner,null))},Be=()=>(0,t.createElement)(Ct,{basename:"/"},(0,t.createElement)(u,null,(0,t.createElement)(He,null)));document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById(window.gtmkitSettings.rootId);null!=e&&(0,i.render)((0,t.createElement)(Be,null),e)}))})()})();
     10(0,t.__)("Install %s","gtm-kit"),e)))),De=({title:n,options:a,className:o="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:s="general",optionName:r,disabled:l=!1,help:m="",notSet:g=!1})=>{const{useSettings:d,useUpdateStateSettings:p}=(0,e.useContext)(c),h=g?[{label:(0,t.__)("(not set)","gtm-kit"),value:""},...a]:a;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)(i.SelectControl,{label:n,value:d&&d[s][r],options:h,className:o,onChange:t=>p(s,r,t),disabled:l,help:m}))},Ue=({pluginName:n,optionName:i,pluginInactive:a})=>{const{useSettings:o,useUpdateStateSettings:s}=(0,e.useContext)(c);return(0,u.createElement)(be,{disabled:a},(0,u.createElement)(be.Header,{title:(0,t.sprintf)(
     11// translators: %s is the name of the plugin.
     12// translators: %s is the name of the plugin.
     13(0,t.__)("%s Integration","gtm-kit"),n)}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.sprintf)(
     14// translators: %s is the name of the plugin.
     15// translators: %s is the name of the plugin.
     16(0,t.__)("Track %s","gtm-kit"),n),label:(0,t.sprintf)(
     17// translators: %s is the name of the plugin.
     18// translators: %s is the name of the plugin.
     19(0,t.__)("Activate the %s integration","gtm-kit"),n),optionGroup:"integrations",optionName:i,disabled:a,useSettings:o,useUpdateStateSettings:s})))},Ae=[{label:(0,t.__)("Retail","gtm-kit"),value:"retail"},{label:(0,t.__)("Education","gtm-kit"),value:"education"},{label:(0,t.__)("Flights","gtm-kit"),value:"flights"},{label:(0,t.__)("Hotel rental","gtm-kit"),value:"hotel_rental"},{label:(0,t.__)("Jobs","gtm-kit"),value:"jobs"},{label:(0,t.__)("Local deals","gtm-kit"),value:"local"},{label:(0,t.__)("Real estate","gtm-kit"),value:"real_estate"},{label:(0,t.__)("Travel","gtm-kit"),value:"travel"},{label:(0,t.__)("Custom","gtm-kit"),value:"custom"}],Ie={variant:{default:"gtmkit-feature-upsell--default",card:"gtmkit-feature-upsell--card"}},Oe=({children:e,shouldUpsell:n=!0,className:a="",variant:o="card",cardLink:s="",cardText:r=(0,t.__)("Unlock with premium","gtm-kit"),...l})=>n?(0,m.jsxs)("div",{className:Mt()("gtmkit-feature-upsell gtmkit-relative gtmkit-max-w-screen-lg",Ie.variant[o],a),children:[(0,m.jsx)("div",{className:"gtmkit-space-y-8 gtmkit-opacity-30",children:e}),(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:"gtmkit-absolute gtmkit-inset-0 gtmkit-flex gtmkit-items-center gtmkit-justify-center",children:(0,m.jsx)(i.Button,{as:"a",className:"gtmkit-gap-2 gtmkit-shadow-lg gtmkit-rounded !gtmkit-text-lg fgtmkit-font-bold gtmkit-py-6 gtmkit-px-8 is-primary",variant:"upsell",href:s,target:"_blank",rel:"noopener",...l,children:r})})]}):e,Re=()=>{const{useSettings:n,useUpdateStateSettings:i,isPremium:a}=(0,e.useContext)(c),o="WooCommerce",s=!window.gtmkitSettings.plugins.woocommerce,r=s||!n.integrations.woocommerce_integration,l=r||!a||!n.general.sgtm_domain,g=l||!n.premium.woocommerce_webhooks;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:(0,t.__)("WooCommerce","gtm-kit")}),s?(0,m.jsx)(Ce,{pluginName:o}):null,(0,m.jsx)(Ue,{pluginName:o,optionName:"woocommerce_integration",pluginInactive:s}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Basic settings","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(De,{title:(0,t.__)("Brand","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_brand",options:window.gtmkitSettings.taxonomyOptions,help:(0,t.__)("Select the taxonomy that is used for product brands","gtm-kit"),notSet:!0,disabled:r}),(0,m.jsx)(ke,{title:(0,t.__)("Use SKU instead of ID","gtm-kit"),label:(0,t.__)("Use SKU instead of the product ID with fallback to ID if no SKU is set.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_use_sku",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Exclude tax","gtm-kit"),label:(0,t.__)("Exclude tax from prices and revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_tax",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Exclude shipping from revenue","gtm-kit"),label:(0,t.__)("Exclude shipping from revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_shipping",disabled:r,useSettings:n,useUpdateStateSettings:i})]})]}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("User Data","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsx)(be.Content,{children:(0,m.jsx)(ke,{title:(0,t.__)("Include customer data","gtm-kit"),label:(0,t.__)('Enable this option to include customer data in the data layer on the "purchase" event.',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_customer_data",disabled:r,useSettings:n,useUpdateStateSettings:i})}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("User-Provided Data","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("The user data is available in the datalayer in 'ecommerce.customer' and a subset of the user data formatted for the 'User-Provided Data' variable is available in 'user-data'.","gtm-kit")," ",(0,m.jsx)("a",{href:"https://support.google.com/google-ads/answer/13262500?sjid=9465166023214753583-EU#Code_snippet",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,m.jsx)(Oe,{shouldUpsell:!a,cardLink:"https://jump.gtmkit.com/link/2-30DDC",children:(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Webhooks for server-side tracking","gtm-kit"),children:a?(0,m.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,m.jsxs)(be.Content,{children:[l?(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("In order to use webhooks you must first enable Server-side Tagging by entering a sGTM Container Domain","gtm-kit"),(0,m.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:window.gtmkitSettings.dashboardUrl+"#/container?focus=sgtm",children:(0,t.__)("Go to sGTM settings","gtm-kit")})]}):(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("In order to use webhooks you must configure you server-side container to handle the webhooks","gtm-kit"),(0,m.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:window.gtmkitSettings.templatesUrl+"#/server-side-tagging",children:(0,t.__)("Go to GTM Templates","gtm-kit")})]}),(0,m.jsx)(ke,{title:(0,t.__)("Send webhooks to server GTM container","gtm-kit"),label:(0,t.__)("This option will allow webhooks to be sent to your server GTM container.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_webhooks",disabled:l,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Purchase webhook","gtm-kit"),label:(0,t.__)("Enable this option to include the permalink structure of the product base, category base, tag base and attribute base.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_purchase_webhook",disabled:g,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Refund webhook","gtm-kit"),label:(0,t.__)("Enable this option to include the path of cart, checkout, order received and my account page.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_refund_webhook",disabled:g,useSettings:n,useUpdateStateSettings:i})]})]})}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Event customization","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(fe,{title:"view_item_list (with product filter)",options:[{label:(0,t.__)("Push view_item_list when the list is updated using a product filter.","gtm-kit"),value:0},{label:(0,t.__)("Only only push view_item_list once per per page for each list.","gtm-kit"),value:1}],help:(0,t.__)("Do you what to push the view_item_list event if the list is updated using a filter or just once per page view.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_view_item_list_limit",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(fe,{title:"view_item (variable product)",options:[{label:(0,t.__)("Only push view_item on the master product","gtm-kit"),value:0},{label:(0,t.__)("Push view_item on master and variation products (higher number of views).","gtm-kit"),value:1},{label:(0,t.__)("Only push view_item on variation products.","gtm-kit"),value:2}],help:(0,t.__)('When do you want to fire the "view_item" event on variable products?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_variable_product_tracking",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(fe,{title:"add_shipping_info ",options:[{label:(0,t.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,t.__)("When a shipment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,t.__)("Disable the 'add_shipment_info' event.","gtm-kit"),value:0}],help:(0,t.__)('When do you want to fire the "add_shipment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_shipping_info",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(fe,{title:"add_payment_info ",options:[{label:(0,t.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,t.__)("When a payment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,t.__)("Disable the 'add_payment_info' event.","gtm-kit"),value:0}],help:(0,t.__)('When do you want to fire the "add_payment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_payment_info",disabled:r,useSettings:n,useUpdateStateSettings:i})]})]}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Google Ads Settings","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(De,{title:(0,t.__)("Google Business Vertical","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_google_business_vertical",options:Ae,help:(0,t.__)("In order to use Google Ads Remarketing you must select your business type (vertical).","gtm-kit"),notSet:!0,disabled:r}),(0,m.jsx)(he,{title:(0,t.__)("Product ID prefix","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_product_id_prefix",placeholder:(0,t.__)("Enter prefix","gtm-kit"),help:(0,t.__)("If your product feed generator is adding a prefix to the product IDs, you can add the prefix here to include it in the Data Layer.","gtm-kit"),disabled:r,useSettings:n,useUpdateStateSettings:i})]})]}),(0,m.jsx)(Oe,{shouldUpsell:!a,cardLink:"https://jump.gtmkit.com/link/2-30DDC",children:(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Custom CSS Selectors","gtm-kit"),children:a?(0,m.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("If your shop is not compatible with the default CSS selectors you can specify your own CSS selectors.","gtm-kit")}),(0,m.jsx)(he,{title:(0,t.__)("Single Product (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_single_product_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,t.__)("Enter CSS selector","gtm-kit"),help:(0,t.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("Product List (select_item):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_item_selector",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,t.__)("Enter CSS selector","gtm-kit"),help:(0,t.__)("Enter the CSS selector that matches your product list item, which should be use to fire the select_item event.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("Product List (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,t.__)("Enter CSS selector","gtm-kit"),help:(0,t.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit"),useSettings:n,useUpdateStateSettings:i})]})]})}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Advanced Settings","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(ke,{title:(0,t.__)("Dequeue the default JavaScript","gtm-kit"),label:(0,t.__)("Enable this option to dequeue the default JavaScript if you plan to create your own JavaScript.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_dequeue_script",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Include permalink structure","gtm-kit"),label:(0,t.__)("Enable this option to include the permalink structure of the product base, category base, tag base and attribute base.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_permalink_structure",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Include path of pages","gtm-kit"),label:(0,t.__)("Enable this option to include the path of cart, checkout, order received and my account page.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_pages",disabled:r,useSettings:n,useUpdateStateSettings:i})]})]})]})},Le=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c),a="Contact Form 7",o=!window.gtmkitSettings.plugins.cf7,s=o||!n.integrations.cf7_integration;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Contact Form 7","gtm-kit")),o?(0,u.createElement)(Ce,{pluginName:a}):null,(0,u.createElement)(Ue,{pluginName:a,optionName:"cf7_integration",pluginInactive:o}),(0,u.createElement)(be,{disabled:s},(0,u.createElement)(be.Header,{title:(0,t.__)("Basic Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(fe,{title:(0,t.__)("Load JavaScript","gtm-kit"),options:[{label:(0,t.__)("Only on pages where the Contact Form 7 script is registered (recommended).","gtm-kit"),value:1},{label:(0,t.__)("On all pages","gtm-kit"),value:2}],help:(0,t.__)("Where do you want load the JavaScript?","gtm-kit"),optionGroup:"integrations",optionName:"cf7_load_js",disabled:s,useSettings:n,useUpdateStateSettings:i}))))},Me=()=>{const n="Easy Digital Downloads",i=!window.gtmkitSettings.plugins.edd,{useSettings:a,useUpdateStateSettings:o}=(0,e.useContext)(c),s=i||!a.integrations.edd_integration;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Easy Digital Downloads","gtm-kit")),i?(0,u.createElement)(Ce,{pluginName:n}):null,(0,u.createElement)(Ue,{pluginName:n,optionName:"edd_integration",pluginInactive:i}),(0,u.createElement)(be,{disabled:s},(0,u.createElement)(be.Header,{title:(0,t.__)("Basic Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Use SKU instead of ID","gtm-kit"),label:(0,t.__)("Use SKU instead of the product ID with fallback to ID if no SKU is set.","gtm-kit"),optionGroup:"integrations",optionName:"edd_use_sku",disabled:s,useSettings:a,useUpdateStateSettings:o}),(0,u.createElement)(ke,{title:(0,t.__)("Exclude tax","gtm-kit"),label:(0,t.__)("Exclude tax from prices and revenue","gtm-kit"),optionGroup:"integrations",optionName:"edd_exclude_tax",disabled:s,useSettings:a,useUpdateStateSettings:o}),(0,u.createElement)(ke,{title:(0,t.__)("Include customer data","gtm-kit"),label:(0,t.__)('Enable this option to include customer data in the data layer on the "purchase" event.',"gtm-kit"),optionGroup:"integrations",optionName:"edd_include_customer_data",disabled:s,useSettings:a,useUpdateStateSettings:o}))),(0,u.createElement)(be,{disabled:s},(0,u.createElement)(be.Header,{title:(0,t.__)("Google Ads Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(De,{title:(0,t.__)("Google Business Vertical","gtm-kit"),optionGroup:"integrations",optionName:"edd_google_business_vertical",options:Ae,help:(0,t.__)("In order to use Google Ads Remarketing you must select your business type (vertical).","gtm-kit"),notSet:!0,disabled:s}),(0,u.createElement)(he,{title:(0,t.__)("Product ID prefix","gtm-kit"),optionGroup:"integrations",optionName:"edd_product_id_prefix",placeholder:(0,t.__)("Enter prefix","gtm-kit"),help:(0,t.__)("If your product feed generator is adding a prefix to the product IDs, you can add the prefix here to include it in the Data Layer.","gtm-kit"),disabled:s,useSettings:a,useUpdateStateSettings:o}))),(0,u.createElement)(be,{disabled:i},(0,u.createElement)(be.Header,{title:(0,t.__)("Advanced settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Dequeue the default JavaScript","gtm-kit"),label:(0,t.__)("Enable this option to dequeue the default JavaScript if you plan to create your own JavaScript.","gtm-kit"),optionGroup:"integrations",optionName:"edd_dequeue_script",disabled:s,useSettings:a,useUpdateStateSettings:o}))))},Pe=window.gtmkitSettings.templates||{},Ge=(Object.keys(Pe).map((function(e){const n=Pe[e][0];return{title:n.title,to:n.path,pill:!1,text:[n.description],link:{internal:!0,url:window.gtmkitSettings.templatesUrl,destination:"/"+n.path,text:(0,t.__)("Get template","gtm-kit")}}})),()=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Getting Started","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Configure your Google Tag Manager container","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-4"},(0,t.__)("GTM Kit is sending data to your Google Tag Manger container but you still need to configure Tags, Triggers and Variables in GTM to use the data.","gtm-kit")),(0,u.createElement)("p",{className:"gtmkit-mb-4"},(0,t.__)("Below you will find GTM container template files, with all the necessary tags, trigger, and variables.","gtm-kit")),(0,u.createElement)("p",null,(0,t.__)("Please read the guide on how to use the import files and configure GTM.","gtm-kit"),(0,u.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:"https://gtmkit.com/guides/how-to-import-a-google-tag-manager-container/",target:"_blank",rel:"noreferrer"},(0,t.__)("Read the guide","gtm-kit"))))),(0,u.createElement)(ue,{title:(0,t.__)("Templates","gtm-kit"),data:de("templates")}))),Fe=({title:e,description:n,link:i,templates:a})=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:e}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-4"},n),i&&i.url&&i.link_text?(0,u.createElement)("div",null,(0,u.createElement)("a",{href:i.url,target:"_blank",className:"gtmkit-text-color-primary gtmkit-text-base dgtmkit-font-semibold hover:gtmkit-underline",rel:"noreferrer"},i.link_text)):null,a&&a.length>0?(0,u.createElement)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-8 gtmkit-mt-8 gtmkit-border-2 gtmkit-px-6 gtmkit-py-4"},(0,u.createElement)("div",null,(0,u.createElement)("h4",{className:"gtmkit-font-bold"},(0,t.__)("GTM container import files:","gtm-kit")),(0,u.createElement)("ul",{className:"gtmkit-text-sm gtmkit-text-color-primary"},a.map((function(t){return(0,u.createElement)("li",null,(0,u.createElement)("a",{className:"hover:gtmkit-underline",href:t.link,target:"_blank",rel:"noreferrer"},t.title))})))),(0,u.createElement)("div",null,(0,u.createElement)("h4",{className:"gtmkit-font-bold"},(0,t.__)("Necessary modifications:","gtm-kit")),(0,u.createElement)("ul",{className:"gtmkit-text-sm"},a.map((function(t){return(0,u.createElement)("li",null,t.help_text)}))))):null))),He=({sectionData:t})=>{const e=t.collections;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},t.title),Object.keys(e).map((function(t){return(0,u.createElement)(Fe,{title:e[t].title,description:e[t].description,link:e[t].link,templates:e[t].templates})})))},Be=()=>{const e=at(),n=window.gtmkitSettings.tutorials;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Help","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Need help?","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-4"},(0,t.__)("We are here to help if you have any questions.","gtm-kit"),(0,u.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",onClick:()=>{e("/support",{replace:!0})}},(0,t.__)("See support options","gtm-kit"))))),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Tutorials","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)("ul",null,n.map(((t,e)=>(0,u.createElement)("li",{key:e,className:"gtmkit-mb-4"},(0,u.createElement)("a",{href:t.link.url,target:"_blank",rel:"noreferrer",className:"gtmkit-font-semibold gtmkit-text-color-primary hover:gtmkit-underline"},t.title),t.text.map(((t,e)=>(0,u.createElement)("div",{key:e,className:"gtmkit-text-sm"},t))))))))))},We=()=>{const{useIsSending:n,useSiteData:a,useUpdateSupportTicket:o,useSupportTicket:s,useSendSystemData:r,useIsSystemDataSent:l,useSystemDataMessage:g,isPremium:u}=(0,e.useContext)(c);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:(0,t.__)("Get support","gtm-kit")}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Support options","gtm-kit")}),(0,m.jsx)(be.Content,{children:(0,m.jsxs)("ul",{className:"gtmkit-text-color-primary",children:[u&&(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://jump.gtmkit.com/link/4-E35E4",target:"_blank",rel:"noreferrer",children:(0,t.__)("WooCommerce Premium Support","gtm-kit")})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://wordpress.org/support/plugin/gtm-kit/",target:"_blank",rel:"noreferrer",children:(0,t.__)("WordPress.org Support Forum","gtm-kit")})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer",children:(0,t.__)("GITHub repository","gtm-kit")})}),(0,m.jsxs)("li",{children:[(0,m.jsx)("a",{href:"https://gtmkit.com/",target:"_blank",rel:"noreferrer",children:(0,t.__)("Plugin Homepage","gtm-kit")})," ","(gtmkit.com)"]})]})})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Share system data with the GTM Kit support team","gtm-kit")}),(0,m.jsx)(be.Content,{children:l?(0,m.jsx)("p",{className:"gtmkit-mb-2",children:g}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{className:"gtmkit-mb-2",children:(0,t.__)("If the GTM Kit support team has asked you to send your system data you can do so by entering the support ticket below:","gtm-kit")}),(0,m.jsx)(i.TextControl,{label:(0,m.jsxs)("span",{className:"gtmkit-text-red-600",children:[g," "]}),placeholder:(0,t.__)("Enter support ticket","gtm-kit"),className:"gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",value:s,onChange:t=>o(t)}),(0,m.jsxs)(i.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey",onClick:()=>{r()},disabled:!s.toUpperCase().startsWith("FS"),children:[(0,m.jsx)("span",{children:(0,t.__)("Send system data","gtm-kit")}),n?(0,m.jsx)(i.Spinner,{}):""]})]})})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("About GTM Kit","gtm-kit"),className:"gtmkit-flex gtmkit-items-center",children:(0,m.jsxs)("span",{className:"gtmkit-text-sm gtmkit-text-color-grey gtmkit-font-light gtmkit-ml-2",children:["(",(0,t.__)("Version:","gtm-kit")," ",a.gtmkit_version,")"]})}),(0,m.jsx)(be.Content,{children:(0,m.jsxs)("p",{children:[(0,t.__)("Learn about changes and follow the development of GTM Kit:","gtm-kit"),(0,m.jsx)("br",{}),(0,m.jsx)("a",{className:"gtmkit-text-color-primary hover:gtmkit-underline",href:"https://gtmkit.com/changelog/",target:"_blank",rel:"noreferrer",children:(0,t.__)("The changelog","gtm-kit")}),(0,m.jsx)("br",{}),(0,m.jsx)("a",{className:"gtmkit-text-color-primary  hover:gtmkit-underline",href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer",children:(0,t.__)("The GitHub repository","gtm-kit")})]})})]})]})};const Ke=t=>{const{Fill:e,Slot:n}=(0,i.createSlotFill)(t),a=({children:t})=>(0,u.createElement)(e,null,t);return a.Slot=({fillProps:t})=>(0,u.createElement)(n,{fillProps:t},(t=>t.length?t:null)),a},ze=Ke("GravityForms"),Ye=(Ke("WooWebhooks"),Ke("WooCustomSelectors"),({integrationID:t,pluginName:n})=>{const{useSettings:i,useUpdateStateSettings:a}=(0,e.useContext)(c),o=!window.gtmkitSettings.plugins[t],s=o||!i.integrations[t+"_integration"];return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},n),o?(0,u.createElement)(Ce,{pluginName:n}):null,(0,u.createElement)(Ue,{pluginName:n,optionName:t+"_integration",pluginInactive:o}),"gf"===t?(0,u.createElement)(ze.Slot,{fillProps:{settingsInactive:s,useSettings:i,useUpdateStateSettings:a}}):null)}),$e=window.wp.plugins,Je=(0,e.forwardRef)((function({icon:t,size:n=24,...i},a){return(0,e.cloneElement)(t,{width:n,height:n,...i,ref:a})})),qe=window.wp.primitives,Ve=(0,m.jsx)(qe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)(qe.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),Xe=(0,m.jsx)(qe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)(qe.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var Ze=n(838),Qe=n.n(Ze);const tn=({title:n,type:a,hideEmpty:o=!0})=>{const{useNotifications:s,useSetNotificationStatus:r,useIsUpdatingNotifications:l}=(0,e.useContext)(c),g=s[a],u=Object.entries(g.active),d=Object.entries(g.dismissed);if(0===g.total&&o)return null;const[p,h]=(0,e.useState)(!1),k=(Object.entries(g.active),Object.entries(g.dismissed),(e,n,a)=>(0,m.jsxs)("div",{className:Mt()("gtmkit-flex gtmkit-items-center gtmkit-justify-between gtmkit-border gtmkit-px-4 gtmkit-py-3 gtmkit-gap-x-16",{"gtmkit-border gtmkit-border-t-0":a},{"gtmkit-border-2":!a}),children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("span",{className:"gtmkit-font-bold gtmkit-mr-2",children:n.header}),(0,m.jsx)("span",{className:"gtmkit-text-sm",dangerouslySetInnerHTML:{__html:Qe().sanitize(n.message)}})]}),(0,m.jsxs)(i.Button,{variant:"primary",className:"gtmkit-rounded !gtmkit-py-1 !gtmkit-px-3 gtmkit-h-min",onClick:()=>r(n.id,a?"restore":"dismiss"),children:[(0,m.jsx)("span",{className:"gtmkit-text-sm",children:(0,t.__)(a?"Restore":"Dismiss","gtm-kit")}),l?(0,m.jsx)(i.Spinner,{}):null]})]},e));return(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:n,children:(0,m.jsx)(Ft,{count:g.active.length,important:"problem"===a})}),(0,m.jsxs)(be.Content,{className:"gtmkit-space-y-4",children:[u.map((([t,e])=>k(t,e,!1))),d.length>0&&(0,m.jsxs)("div",{children:[(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-py gtmkit-font-bold gtmkit-flex gtmkit-items-center gtmkit-justify-between gtmkit-cursor-pointer",onClick:()=>h((t=>!t)),children:[(0,m.jsx)("span",{children:(0,t.sprintf)(
     20// translators: %d is number %s can be either 'problem' or 'notification'.
     21// translators: %d is number %s can be either 'problem' or 'notification'.
     22(0,t._n)("You have %d hidden %s:","You have %d hidden %ss:",d.length,"gtm-kit"),d.length,a)}),(0,m.jsx)(Je,{icon:p?Ve:Xe,size:48})]}),(0,m.jsx)("div",{className:Mt()("gtmkit-border","gtmkit-border-t-0","gtmkit-mb-4","gtmkit-bg-color-background-disabled",{"gtmkit-hidden":!p}),children:d.map((([t,e])=>k(t,e,!0)))})]}),0===g.total&&(0,m.jsx)("p",{children:(0,t.__)("No notifications at the moment.","gtm-kit")})]})]})},en=()=>(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:(0,t.__)("Misc","gtm-kit")}),(0,m.jsx)(tn,{title:(0,t.__)("Problems","gtm-kit"),type:"problem"}),(0,m.jsx)(tn,{title:(0,t.__)("Notifications","gtm-kit"),type:"notice",hideEmpty:!1})]}),nn=({className:t=""})=>(0,m.jsx)(i.Icon,{icon:()=>(0,m.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",className:t,children:(0,m.jsx)("path",{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})}),an=()=>{const{useIsSendingLicenseKey:n}=(0,e.useContext)(c),a=window.gtmkitSettings.opportunities;let o=[];Object.entries(a).length&&(o=Object.entries(a.upgrades));const s=a.plugins||{},r=a.theme||{},l=Object.entries(s),g=!!Object.keys(r).length;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:(0,t.__)("Upgrades","gtm-kit")}),o.map((([e,a])=>(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:a.name}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)("h2",{className:"gtmkit-font-bold gtmkit-mb-4",children:a.header}),a.description&&(0,m.jsx)("p",{className:"gtmkit-mb-4",children:a.description}),a.usp.length>0&&(0,m.jsx)("ul",{className:"gtmkit-text-sm gtmkit-mb-8",children:a.usp.map((t=>(0,m.jsxs)("li",{className:"gtmkit-flex gtmkit-items-center",children:[(0,m.jsx)(nn,{})," ",t]})))}),(l.length>0||g)&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h2",{className:"gtmkit-font-bold gtmkit-mb-4",children:(0,t.__)("Enhanced Compatibility","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-mb-6",children:(0,t.__)("Based on the currently active theme and plugins, you will gain the following features tailored specifically to your setup if you upgrade to the GTM Kit Woo Add-On:","gtm-kit")})]}),g&&(0,m.jsxs)("p",{className:"gtmkit-mb-6",children:[(0,m.jsxs)("span",{className:"gtmkit-font-bold",children:[r.name,":"]})," ",(0,t.__)("Your theme is supported with enhanced compatibility.","gtm-kit")," ",r.description]}),l.length>0&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h3",{className:"gtmkit-font-bold gtmkit-text-sm gtmkit-mb-4",children:(0,t.__)("Enhanced Plugin Support:","gtm-kit")}),(0,m.jsx)("ul",{className:"gtmkit-text-sm",children:l.map((([t,e])=>(0,m.jsxs)("li",{className:"gtmkit-mb-4",children:[e.name," - ",e.description]},t)))})]}),a.url&&(0,m.jsxs)(i.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base gtmkit-mt-4",onClick:()=>{window.location.href=a.url},children:[(0,m.jsx)("span",{children:a.button_text||(0,t.__)("Learn More","gtm-kit")}),n?(0,m.jsx)(i.Spinner,{}):""]})]})]},e)))]})},on={integrations:(0,t.__)("Integrations","gtm-kit"),templates:(0,t.__)("Google Tag Manager Templates","gtm-kit"),help:(0,t.__)("Help","gtm-kit")},sn=()=>{const{useSettings:n}=(0,e.useContext)(c),a=window.gtmkitSettings,o=a.currentPage,s=function({page:e}){switch(e){case"general":return[{to:"general",title:(0,t.__)("Dashboard","gtm-kit")},{to:"container",title:(0,t.__)("Container","gtm-kit")},{to:"post-data",title:(0,t.__)("Post data","gtm-kit")},{to:"user-data",title:(0,t.__)("User data","gtm-kit")},{to:"google-consent-mode",title:(0,t.__)("Google Consent Mode","gtm-kit")},{to:"notifications",title:(0,t.__)("Notifications","gtm-kit")},{to:"misc",title:(0,t.__)("Misc","gtm-kit")}];case"integrations":return[{to:"integrations",title:(0,t.__)("Integrations","gtm-kit")},...de("integrations")];case"upgrades":return[{to:"upgrades",title:(0,t.__)("Upgrades","gtm-kit")}];case"templates":return[{to:"templates",title:(0,t.__)("Templates","gtm-kit")},...de("templates")];case"help":return[{to:"help",title:(0,t.__)("Help","gtm-kit")},{to:"support",title:(0,t.__)("Support","gtm-kit")}]}}({page:o}),r=a.templates,l=a.integrations,g=on[o]||(0,t.__)("Settings","gtm-kit");return Object.keys(n).length?(0,m.jsxs)(i.SlotFillProvider,{children:[(0,m.jsx)(Rt,{title:g}),(0,m.jsx)(Bt,{NavList:s}),(0,m.jsx)("main",{className:"gtmkit-max-w-[1536px] gtmkit-px-8 gtmkit-pt-8 gtmkit-text-base",children:(0,m.jsxs)(_t,{children:[(0,m.jsx)(kt,{exact:!0,path:"/general",element:(0,m.jsx)(pe,{})}),(0,m.jsx)(kt,{exact:!0,path:"/container",element:(0,m.jsx)(Se,{})}),(0,m.jsx)(kt,{exact:!0,path:"/post-data",element:(0,m.jsx)(ye,{})}),(0,m.jsx)(kt,{exact:!0,path:"/user-data",element:(0,m.jsx)(ve,{})}),(0,m.jsx)(kt,{exact:!0,path:"/google-consent-mode",element:(0,m.jsx)(Ee,{})}),(0,m.jsx)(kt,{exact:!0,path:"/notifications",element:(0,m.jsx)(en,{})}),(0,m.jsx)(kt,{exact:!0,path:"/misc",element:(0,m.jsx)(je,{})}),(0,m.jsx)(kt,{exact:!0,path:"/integrations",element:(0,m.jsx)(Te,{})}),(0,m.jsx)(kt,{exact:!0,path:"/woocommerce",element:(0,m.jsx)(Re,{})}),(0,m.jsx)(kt,{exact:!0,path:"/cf7",element:(0,m.jsx)(Le,{})}),(0,m.jsx)(kt,{exact:!0,path:"/edd",element:(0,m.jsx)(Me,{})}),l&&Object.keys(l).map((function(t){if("add-on"===l[t].type)return(0,m.jsx)(kt,{exact:!0,path:t,element:(0,m.jsx)(Ye,{integrationID:t,pluginName:l[t].title})},t)})),(0,m.jsx)(kt,{exact:!0,path:"/upgrades",element:(0,m.jsx)(an,{})}),(0,m.jsx)(kt,{exact:!0,path:"/templates",element:(0,m.jsx)(Ge,{})}),r&&Object.keys(r).map((function(t){return(0,m.jsx)(kt,{exact:!0,path:t,element:(0,m.jsx)(He,{sectionData:r[t][0]})},t)})),(0,m.jsx)(kt,{exact:!0,path:"/help",element:(0,m.jsx)(Be,{})}),(0,m.jsx)(kt,{exact:!0,path:"/support",element:(0,m.jsx)(We,{})}),(0,m.jsx)(kt,{path:"/",element:(0,m.jsx)(ht,{replace:!0,to:"/"+o})})]})}),(0,m.jsx)(le,{}),(0,m.jsx)($e.PluginArea,{})]}):(0,m.jsx)("div",{className:"gtmkit-h-screen gtmkit-flex gtmkit-items-center gtmkit-justify-center",children:(0,m.jsx)(i.Spinner,{})})},rn=()=>(0,m.jsx)(Tt,{basename:"/",children:(0,m.jsx)(g,{children:(0,m.jsx)(sn,{})})});document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById(window.gtmkitSettings.rootId);null!=t&&(0,e.render)((0,m.jsx)(rn,{}),t)}))})()})();
  • gtm-kit/tags/2.0/assets/admin/wizard-rtl.css

    r3134629 r3149785  
    1 :root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-right:auto;margin-left:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0{margin-bottom:0}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-right:.5rem}.gtmkit-ml-4{margin-right:1rem}.gtmkit-mr-8{margin-left:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-ml-6{margin-right:1.5rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-h-0{height:0}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2{height:.5rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2{width:.5rem}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-3\/4{width:75%}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-left:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-6{padding-right:1.5rem!important;padding-left:1.5rem!important}.\!gtmkit-px-8{padding-right:2rem!important;padding-left:2rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-16{padding-right:4rem;padding-left:4rem}.gtmkit-px-2{padding-right:.5rem;padding-left:.5rem}.gtmkit-px-20{padding-right:5rem;padding-left:5rem}.gtmkit-px-3{padding-right:.75rem;padding-left:.75rem}.gtmkit-px-4{padding-right:1rem;padding-left:1rem}.gtmkit-px-5{padding-right:1.25rem;padding-left:1.25rem}.gtmkit-px-6{padding-right:1.5rem;padding-left:1.5rem}.gtmkit-px-8{padding-right:2rem;padding-left:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-top:1.5rem}.gtmkit-pb-6,.gtmkit-py-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:right}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit p{font-size:14px}.gtmkit-settings-field-wrap{background:#fff;border:1px solid #c3c4c7;margin-block-start:2rem;padding:20px}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{display:block;font-size:13px;font-weight:600}.gtmkit-settings-field-wrap .gtmkit-text-center .components-text-control__input{text-align:center}.gtmkit-notice{margin:0;padding-left:20px!important;width:300px}.gtmkit-notice .components-notice__content p{margin:0}.gtmkit-page-loader{height:30px!important;right:50%;position:fixed!important;top:50%;transform:translate(50%,-50%);width:30px!important}body.toplevel_page_gtm-kit-settings #wpfooter{display:none}
     1:root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-right:auto;margin-left:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-right:.5rem}.gtmkit-ml-4{margin-right:1rem}.gtmkit-ml-6{margin-right:1.5rem}.gtmkit-mr-2{margin-left:.5rem}.gtmkit-mr-8{margin-left:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-hidden{display:none}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-min{height:-moz-min-content;height:min-content}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-screen-lg{max-width:1024px}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-cursor-pointer{cursor:pointer}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.\!gtmkit-justify-start{justify-content:flex-start!important}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-left:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-0{border-top-width:0}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-background-disabled{background-color:var(--gtmkit-button-disabled-bg)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-error{background-color:var(--gtmkit-color-error)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-3{padding-right:.75rem!important;padding-left:.75rem!important}.\!gtmkit-px-6{padding-right:1.5rem!important;padding-left:1.5rem!important}.\!gtmkit-px-8{padding-right:2rem!important;padding-left:2rem!important}.\!gtmkit-py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-1\.5{padding-right:.375rem;padding-left:.375rem}.gtmkit-px-16{padding-right:4rem;padding-left:4rem}.gtmkit-px-2{padding-right:.5rem;padding-left:.5rem}.gtmkit-px-20{padding-right:5rem;padding-left:5rem}.gtmkit-px-3{padding-right:.75rem;padding-left:.75rem}.gtmkit-px-4{padding-right:1rem;padding-left:1rem}.gtmkit-px-5{padding-right:1.25rem;padding-left:1.25rem}.gtmkit-px-6{padding-right:1.5rem;padding-left:1.5rem}.gtmkit-px-8{padding-right:2rem;padding-left:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-3{padding-bottom:.75rem;padding-top:.75rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.gtmkit-py-px{padding-bottom:1px;padding-top:1px}.gtmkit-pb-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:right}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-leading-\[1\.125rem\]{line-height:1.125rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit p{font-size:14px}.gtmkit-settings-field-wrap{background:#fff;border:1px solid #c3c4c7;margin-block-start:2rem;padding:20px}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{display:block;font-size:13px;font-weight:600}.gtmkit-settings-field-wrap .gtmkit-text-center .components-text-control__input{text-align:center}.gtmkit-notice{margin:0;padding-left:20px!important;width:300px}.gtmkit-notice .components-notice__content p{margin:0}.gtmkit-page-loader{height:30px!important;right:50%;position:fixed!important;top:50%;transform:translate(50%,-50%);width:30px!important}body.toplevel_page_gtm-kit-settings #wpfooter{display:none}
  • gtm-kit/tags/2.0/assets/admin/wizard.asset.php

    r3139454 r3149785  
    1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '78fa6d1fd726260bef13');
     1<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '392b7bf946ae0bc997db');
  • gtm-kit/tags/2.0/assets/admin/wizard.css

    r3134629 r3149785  
    1 :root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-left:auto;margin-right:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0{margin-bottom:0}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-left:.5rem}.gtmkit-ml-4{margin-left:1rem}.gtmkit-mr-8{margin-right:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-ml-6{margin-left:1.5rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-h-0{height:0}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2{height:.5rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2{width:.5rem}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-3\/4{width:75%}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.\!gtmkit-px-8{padding-left:2rem!important;padding-right:2rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-16{padding-left:4rem;padding-right:4rem}.gtmkit-px-2{padding-left:.5rem;padding-right:.5rem}.gtmkit-px-20{padding-left:5rem;padding-right:5rem}.gtmkit-px-3{padding-left:.75rem;padding-right:.75rem}.gtmkit-px-4{padding-left:1rem;padding-right:1rem}.gtmkit-px-5{padding-left:1.25rem;padding-right:1.25rem}.gtmkit-px-6{padding-left:1.5rem;padding-right:1.5rem}.gtmkit-px-8{padding-left:2rem;padding-right:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-top:1.5rem}.gtmkit-pb-6,.gtmkit-py-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:left}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit p{font-size:14px}.gtmkit-settings-field-wrap{background:#fff;border:1px solid #c3c4c7;margin-block-start:2rem;padding:20px}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{display:block;font-size:13px;font-weight:600}.gtmkit-settings-field-wrap .gtmkit-text-center .components-text-control__input{text-align:center}.gtmkit-notice{margin:0;padding-right:20px!important;width:300px}.gtmkit-notice .components-notice__content p{margin:0}.gtmkit-page-loader{height:30px!important;left:50%;position:fixed!important;top:50%;transform:translate(-50%,-50%);width:30px!important}body.toplevel_page_gtm-kit-settings #wpfooter{display:none}
     1:root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-left:auto;margin-right:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-left:.5rem}.gtmkit-ml-4{margin-left:1rem}.gtmkit-ml-6{margin-left:1.5rem}.gtmkit-mr-2{margin-right:.5rem}.gtmkit-mr-8{margin-right:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-hidden{display:none}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-min{height:-moz-min-content;height:min-content}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-screen-lg{max-width:1024px}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-cursor-pointer{cursor:pointer}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.\!gtmkit-justify-start{justify-content:flex-start!important}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-0{border-top-width:0}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-background-disabled{background-color:var(--gtmkit-button-disabled-bg)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-error{background-color:var(--gtmkit-color-error)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!gtmkit-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.\!gtmkit-px-8{padding-left:2rem!important;padding-right:2rem!important}.\!gtmkit-py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-1\.5{padding-left:.375rem;padding-right:.375rem}.gtmkit-px-16{padding-left:4rem;padding-right:4rem}.gtmkit-px-2{padding-left:.5rem;padding-right:.5rem}.gtmkit-px-20{padding-left:5rem;padding-right:5rem}.gtmkit-px-3{padding-left:.75rem;padding-right:.75rem}.gtmkit-px-4{padding-left:1rem;padding-right:1rem}.gtmkit-px-5{padding-left:1.25rem;padding-right:1.25rem}.gtmkit-px-6{padding-left:1.5rem;padding-right:1.5rem}.gtmkit-px-8{padding-left:2rem;padding-right:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-3{padding-bottom:.75rem;padding-top:.75rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.gtmkit-py-px{padding-bottom:1px;padding-top:1px}.gtmkit-pb-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:left}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-leading-\[1\.125rem\]{line-height:1.125rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit p{font-size:14px}.gtmkit-settings-field-wrap{background:#fff;border:1px solid #c3c4c7;margin-block-start:2rem;padding:20px}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{display:block;font-size:13px;font-weight:600}.gtmkit-settings-field-wrap .gtmkit-text-center .components-text-control__input{text-align:center}.gtmkit-notice{margin:0;padding-right:20px!important;width:300px}.gtmkit-notice .components-notice__content p{margin:0}.gtmkit-page-loader{height:30px!important;left:50%;position:fixed!important;top:50%;transform:translate(-50%,-50%);width:30px!important}body.toplevel_page_gtm-kit-settings #wpfooter{display:none}
  • gtm-kit/tags/2.0/assets/admin/wizard.js

    r3139454 r3149785  
    1 (()=>{"use strict";var t={251:(t,e,a)=>{var n=a(196),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function m(t,e,a){var n,r={},m=null,c=null;for(n in void 0!==a&&(m=""+a),void 0!==e.key&&(m=""+e.key),void 0!==e.ref&&(c=e.ref),e)s.call(e,n)&&!o.hasOwnProperty(n)&&(r[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===r[n]&&(r[n]=e[n]);return{$$typeof:i,type:t,key:m,ref:c,props:r,_owner:l.current}}e.Fragment=r,e.jsx=m,e.jsxs=m},893:(t,e,a)=>{t.exports=a(251)},196:t=>{t.exports=window.React}},e={};function a(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=a(196);const e=window.wp.element,n=window.wp.components,i=window.lodash,r=window.wp.apiFetch;var s=a.n(r);s().use(s().createNonceMiddleware(window.gtmkitSettings.nonce)),s().use(s().createRootURLMiddleware(window.gtmkitSettings.root));const l=async(t,e,a=null,n=!1)=>{let i={};try{i=await s()({path:t,method:e,...a&&{data:a}})}catch(a){return console.log(`${e} ${t} Errors:`,a),{[`gtm_kit_api_${e}_${t}_errors`]:!0}}return!0===n?i:!0===i.success?i.data:options},o=window.wp.i18n,m=(t,e)=>{const a={...t};switch(e.type){case"FETCH_SETTINGS":a.fetchedSettings={...e.payload.fetchedSettings,integrations:e.payload.fetchedSettings.integrations||{}},a.stateSettings=e.payload.stateSettings,a.siteData=e.payload.siteData,a.installData=e.payload.installData,a.isPending=!1,a.canSave=!1,e.payload.fetchedSettings.gtm_kit_api_fetch_settings_errors&&(a.notice=(0,o.__)("An error occurred.","gtm-kit"),a.hasError=!0);break;case"UPDATE_SETTINGS_BEFORE":a.isPending=e.payload.isPending;break;case"UPDATE_SETTINGS":a.fetchedSettings=e.payload.fetchedSettings,a.stateSettings=e.payload.stateSettings,a.isPending=!1,a.canSave=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors,a.notice=e.payload.fetchedSettings.gtm_kit_api_update_settings_errors?(0,o.__)("An error occurred.","gtm-kit"):(0,o.__)("Saved Successfully.","gtm-kit"),a.hasError=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors;break;case"UPDATE_STATE":a.fetchedSettings=e.payload.fetchedSettings||a.fetchedSettings,a.stateSettings=e.payload.stateSettings||a.stateSettings,a.isPending=e.payload.isPending||a.isPending,a.notice=e.payload.notice||a.notice,a.hasError=e.payload.hasError||a.hasError,a.canSave=e.payload.canSave||a.canSave,a.isSendingSystemData=e.payload.isSendingSystemData||a.isSendingSystemData,a.supportTicket=e.payload.supportTicket||a.supportTicket,a.isSendingLicenseKey=e.payload.isSendingLicenseKey||a.isSendingLicenseKey,a.licenseKey=e.payload.licenseKey||a.licenseKey;break;case"SEND_SUPPORT_DATA_BEFORE":a.isSendingSystemData=e.payload.isSendingSystemData||a.isSendingSystemData;break;case"SEND_SUPPORT_DATA":a.isSendingSystemData=!1,a.isSystemDataSent=e.payload.isSystemDataSent||a.isSystemDataSent,a.systemDataMessage=e.payload.systemDataMessage||a.systemDataMessage;break;case"SEND_LICENSE_KEY_BEFORE":a.isSendingLicenseKey=e.payload.isSendingLicenseKey||a.isSendingLicenseKey;break;case"SEND_LICENSE_KEY":a.isSendingLicenseKey=!1,a.isLicenseKeySent=e.payload.isLicenseKeySent||a.isLicenseKeySent,a.licenseKeyMessage=e.payload.licenseKeyMessage||a.licenseKeyMessage}return a},c=(0,e.createContext)(),g=a=>{const[n,r]=(0,e.useReducer)(m,{fetchedSettings:{},stateSettings:{},isPending:!0,notice:"",hasError:!1,canSave:!1,supportTicket:"",isSystemDataSent:!1,systemDataMessage:"",licenseKey:"",isLicensenKeySent:!1,licenseKeyMessage:""}),s=async()=>{const t=window.gtmkitSettings.settings?window.gtmkitSettings.settings:{},e=window.gtmkitSettings.site_data?window.gtmkitSettings.site_data:{},a="wizard"===window.gtmkitSettings.currentPage?window.gtmkitSettings.install_data:{};r({type:"FETCH_SETTINGS",payload:{fetchedSettings:t,stateSettings:t,siteData:e,installData:a}})},o=async t=>{r({type:"UPDATE_STATE",payload:t})};(0,e.useEffect)((()=>{s()}),[]);const g={useDispatch:t=>{r(t)},useUpdateSettings:async()=>{r({type:"UPDATE_SETTINGS_BEFORE",payload:{isPending:!0}});const t=await(e=n.stateSettings,l("gtmkit/v1/set-options","POST",e));var e;r({type:"UPDATE_SETTINGS",payload:{fetchedSettings:t,stateSettings:t}})},useFetchSettings:s,useUpdateState:o,useUpdateStateSettings:async(t,e,a)=>{const r=JSON.parse(JSON.stringify(n.stateSettings));let s;r[t][e]=a,s=!(0,i.isEqual)(r,n.fetchedSettings),o({stateSettings:r,canSave:s})},useImportSettings:async(t,e)=>{const a=JSON.parse(JSON.stringify(n.stateSettings));let r;const s={};s.general={...a.general,...e.general},"integrations"in e&&(s.integrations={...a.integrations,...e.integrations}),r=!(0,i.isEqual)(s,n.fetchedSettings),o({stateSettings:s,canSave:r})},useUpdateSupportTicket:async t=>{o({supportTicket:t})},useSendSystemData:async()=>{r({type:"SEND_SUPPORT_DATA_BEFORE",payload:{isSendingSystemData:!0}});const t=await(e=n.supportTicket,l("gtmkit/v1/send-support-data","POST",e,!0));var e;r({type:"SEND_SUPPORT_DATA",payload:{isSendingSystemData:!1,isSystemDataSent:t.success,systemDataMessage:t.data}})},useUpdateLicenseKey:async t=>{o({licenseKey:t})},useSendLicenseKey:async()=>{r({type:"SEND_LICENSE_KEY_BEFORE",payload:{isSendingLicenseKey:!0}});const t=await(e=n.licenseKey,l("gtmkit/v1/send-license-key","POST",e,!0));var e;r({type:"SEND_LICENSE_KEY",payload:{isSendingLicenseKey:!1,isLicenseKeySent:t.success,licenseKeyMessage:t.data}})},useSettings:n.stateSettings,useIsPending:n.isPending,useNotice:n.notice,useHasError:n.hasError,useCanSave:n.canSave,useSiteData:n.siteData,useInstallData:n.installData,useIsSending:n.isSendingSystemData,useSupportTicket:n.supportTicket,useIsSystemDataSent:n.isSystemDataSent,useSystemDataMessage:n.systemDataMessage,useIsSendingLicenseKey:n.isSendingLicenseKey,useLicenseKey:n.licenseKey,useIsLicenseKeySent:n.isLicenseKeySent,useLicenseKeyMessage:n.licenseKeyMessage,useUserRoles:window.gtmkitSettings.user_roles?window.gtmkitSettings.user_roles:[],isPremium:!!window.gtmkitSettings.isPremium&&window.gtmkitSettings.isPremium};return(0,t.createElement)(c.Provider,{value:g},a.children)};function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},u.apply(this,arguments)}var d;!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(d||(d={}));const p="popstate";function h(t,e){if(!1===t||null==t)throw new Error(e)}function k(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function y(t,e){return{usr:t.state,key:t.key,idx:e}}function S(t,e,a,n){return void 0===a&&(a=null),u({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?E(e):e,{state:a,key:e&&e.key||n||Math.random().toString(36).substr(2,8)})}function f(t){let{pathname:e="/",search:a="",hash:n=""}=t;return a&&"?"!==a&&(e+="?"===a.charAt(0)?a:"?"+a),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function E(t){let e={};if(t){let a=t.indexOf("#");a>=0&&(e.hash=t.substr(a),t=t.substr(0,a));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}var x;function M(t,e,a){return void 0===a&&(a="/"),function(t,e,a,n){let i=A(("string"==typeof e?E(e):e).pathname||"/",a);if(null==i)return null;let r=N(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,a)=>t===e[a]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(r);let s=null;for(let t=0;null==s&&t<r.length;++t){let e=U(i);s=C(r[t],e,n)}return s}(t,e,a,!1)}function N(t,e,a,n){void 0===e&&(e=[]),void 0===a&&(a=[]),void 0===n&&(n="");let i=(t,i,r)=>{let s={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};s.relativePath.startsWith("/")&&(h(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let l=B([n,s.relativePath]),o=a.concat(s);t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),N(t.children,e,o,l)),(null!=t.path||t.index)&&e.push({path:l,score:I(l,t.index),routesMeta:o})};return t.forEach(((t,e)=>{var a;if(""!==t.path&&null!=(a=t.path)&&a.includes("?"))for(let a of v(t.path))i(t,e,a);else i(t,e)})),e}function v(t){let e=t.split("/");if(0===e.length)return[];let[a,...n]=e,i=a.endsWith("?"),r=a.replace(/\?$/,"");if(0===n.length)return i?[r,""]:[r];let s=v(n.join("/")),l=[];return l.push(...s.map((t=>""===t?r:[r,t].join("/")))),i&&l.push(...s),l.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(x||(x={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const w=/^:[\w-]+$/,_=3,b=2,T=1,L=10,j=-2,D=t=>"*"===t;function I(t,e){let a=t.split("/"),n=a.length;return a.some(D)&&(n+=j),e&&(n+=b),a.filter((t=>!D(t))).reduce(((t,e)=>t+(w.test(e)?_:""===e?T:L)),n)}function C(t,e,a){void 0===a&&(a=!1);let{routesMeta:n}=t,i={},r="/",s=[];for(let t=0;t<n.length;++t){let l=n[t],o=t===n.length-1,m="/"===r?e:e.slice(r.length)||"/",c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:o},m),g=l.route;if(!c&&o&&a&&!n[n.length-1].route.index&&(c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},m)),!c)return null;Object.assign(i,c.params),s.push({params:i,pathname:B([r,c.pathname]),pathnameBase:G(B([r,c.pathnameBase])),route:g}),"/"!==c.pathnameBase&&(r=B([r,c.pathnameBase]))}return s}function O(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[a,n]=function(t,e,a){void 0===e&&(e=!1),void 0===a&&(a=!0),k("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((t,e,a)=>(n.push({paramName:e,isOptional:null!=a}),a?"/?([^\\/]+)?":"/([^\\/]+)")));return t.endsWith("*")?(n.push({paramName:"*"}),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==t&&"/"!==t&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}(t.path,t.caseSensitive,t.end),i=e.match(a);if(!i)return null;let r=i[0],s=r.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:n.reduce(((t,e,a)=>{let{paramName:n,isOptional:i}=e;if("*"===n){let t=l[a]||"";s=r.slice(0,r.length-t.length).replace(/(.)\/+$/,"$1")}const o=l[a];return t[n]=i&&!o?void 0:(o||"").replace(/%2F/g,"/"),t}),{}),pathname:r,pathnameBase:s,pattern:t}}function U(t){try{return t.split("/").map((t=>decodeURIComponent(t).replace(/\//g,"%2F"))).join("/")}catch(e){return k(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function A(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let a=e.endsWith("/")?e.length-1:e.length,n=t.charAt(a);return n&&"/"!==n?null:t.slice(a)||"/"}function P(t,e,a,n){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(n)+"].  Please separate it out to the `to."+a+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function z(t,e){let a=function(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}(t);return e?a.map(((e,a)=>a===t.length-1?e.pathname:e.pathnameBase)):a.map((t=>t.pathnameBase))}function R(t,e,a,n){let i;void 0===n&&(n=!1),"string"==typeof t?i=E(t):(i=u({},t),h(!i.pathname||!i.pathname.includes("?"),P("?","pathname","search",i)),h(!i.pathname||!i.pathname.includes("#"),P("#","pathname","hash",i)),h(!i.search||!i.search.includes("#"),P("#","search","hash",i)));let r,s=""===t||""===i.pathname,l=s?"/":i.pathname;if(null==l)r=a;else{let t=e.length-1;if(!n&&l.startsWith("..")){let e=l.split("/");for(;".."===e[0];)e.shift(),t-=1;i.pathname=e.join("/")}r=t>=0?e[t]:"/"}let o=function(t,e){void 0===e&&(e="/");let{pathname:a,search:n="",hash:i=""}="string"==typeof t?E(t):t,r=a?a.startsWith("/")?a:function(t,e){let a=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?a.length>1&&a.pop():"."!==t&&a.push(t)})),a.length>1?a.join("/"):"/"}(a,e):e;return{pathname:r,search:K(n),hash:Y(i)}}(i,r),m=l&&"/"!==l&&l.endsWith("/"),c=(s||"."===l)&&a.endsWith("/");return o.pathname.endsWith("/")||!m&&!c||(o.pathname+="/"),o}const B=t=>t.join("/").replace(/\/\/+/g,"/"),G=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),K=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",Y=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const W=["post","put","patch","delete"],F=(new Set(W),["get",...W]);function Q(){return Q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},Q.apply(this,arguments)}new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const $=t.createContext(null),J=t.createContext(null),H=t.createContext(null),Z=t.createContext(null),V=t.createContext({outlet:null,matches:[],isDataRoute:!1}),X=t.createContext(null);function q(){return null!=t.useContext(Z)}function tt(){return q()||h(!1),t.useContext(Z).location}function et(e){t.useContext(H).static||t.useLayoutEffect(e)}function at(){let{isDataRoute:e}=t.useContext(V);return e?function(){let{router:e}=function(e){let a=t.useContext($);return a||h(!1),a}(ot.UseNavigateStable),a=ct(mt.UseNavigateStable),n=t.useRef(!1);return et((()=>{n.current=!0})),t.useCallback((function(t,i){void 0===i&&(i={}),n.current&&("number"==typeof t?e.navigate(t):e.navigate(t,Q({fromRouteId:a},i)))}),[e,a])}():function(){q()||h(!1);let e=t.useContext($),{basename:a,future:n,navigator:i}=t.useContext(H),{matches:r}=t.useContext(V),{pathname:s}=tt(),l=JSON.stringify(z(r,n.v7_relativeSplatPath)),o=t.useRef(!1);return et((()=>{o.current=!0})),t.useCallback((function(t,n){if(void 0===n&&(n={}),!o.current)return;if("number"==typeof t)return void i.go(t);let r=R(t,JSON.parse(l),s,"path"===n.relative);null==e&&"/"!==a&&(r.pathname="/"===r.pathname?a:B([a,r.pathname])),(n.replace?i.replace:i.push)(r,n.state,n)}),[a,i,l,s,e])}()}function nt(e,a,n,i){q()||h(!1);let{navigator:r}=t.useContext(H),{matches:s}=t.useContext(V),l=s[s.length-1],o=l?l.params:{},m=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let c,g=tt();if(a){var u;let t="string"==typeof a?E(a):a;"/"===m||(null==(u=t.pathname)?void 0:u.startsWith(m))||h(!1),c=t}else c=g;let p=c.pathname||"/",k=p;if("/"!==m){let t=m.replace(/^\//,"").split("/");k="/"+p.replace(/^\//,"").split("/").slice(t.length).join("/")}let y=M(e,{pathname:k}),S=function(e,a,n,i){var r;if(void 0===a&&(a=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let l=e,o=null==(r=n)?void 0:r.errors;if(null!=o){let t=l.findIndex((t=>t.route.id&&void 0!==(null==o?void 0:o[t.route.id])));t>=0||h(!1),l=l.slice(0,Math.min(l.length,t+1))}let m=!1,c=-1;if(n&&i&&i.v7_partialHydration)for(let t=0;t<l.length;t++){let e=l[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=t),e.route.id){let{loaderData:t,errors:a}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!a||void 0===a[e.route.id]);if(e.route.lazy||i){m=!0,l=c>=0?l.slice(0,c+1):[l[0]];break}}}return l.reduceRight(((e,i,r)=>{let s,g=!1,u=null,d=null;var p;n&&(s=o&&i.route.id?o[i.route.id]:void 0,u=i.route.errorElement||rt,m&&(c<0&&0===r?(gt[p="route-fallback"]||(gt[p]=!0),g=!0,d=null):c===r&&(g=!0,d=i.route.hydrateFallbackElement||null)));let h=a.concat(l.slice(0,r+1)),k=()=>{let a;return a=s?u:g?d:i.route.Component?t.createElement(i.route.Component,null):i.route.element?i.route.element:e,t.createElement(lt,{match:i,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:a})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?t.createElement(st,{location:n.location,revalidation:n.revalidation,component:u,error:s,children:k(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):k()}),null)}(y&&y.map((t=>Object.assign({},t,{params:Object.assign({},o,t.params),pathname:B([m,r.encodeLocation?r.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?m:B([m,r.encodeLocation?r.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),s,n,i);return a&&S?t.createElement(Z.Provider,{value:{location:Q({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:d.Pop}},S):S}function it(){let e=function(){var e;let a=t.useContext(X),n=function(e){let a=t.useContext(J);return a||h(!1),a}(mt.UseRouteError),i=ct(mt.UseRouteError);return void 0!==a?a:null==(e=n.errors)?void 0:e[i]}(),a=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},a),n?t.createElement("pre",{style:i},n):null,null)}const rt=t.createElement(it,null);class st extends t.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?t.createElement(V.Provider,{value:this.props.routeContext},t.createElement(X.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lt(e){let{routeContext:a,match:n,children:i}=e,r=t.useContext($);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(V.Provider,{value:a},i)}var ot=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(ot||{}),mt=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(mt||{});function ct(e){let a=function(e){let a=t.useContext(V);return a||h(!1),a}(),n=a.matches[a.matches.length-1];return n.route.id||h(!1),n.route.id}const gt={};function ut(e){let{to:a,replace:n,state:i,relative:r}=e;q()||h(!1);let{future:s,static:l}=t.useContext(H),{matches:o}=t.useContext(V),{pathname:m}=tt(),c=at(),g=R(a,z(o,s.v7_relativeSplatPath),m,"path"===r),u=JSON.stringify(g);return t.useEffect((()=>c(JSON.parse(u),{replace:n,state:i,relative:r})),[c,u,r,n,i]),null}function dt(t){h(!1)}function pt(e){let{basename:a="/",children:n=null,location:i,navigationType:r=d.Pop,navigator:s,static:l=!1,future:o}=e;q()&&h(!1);let m=a.replace(/^\/*/,"/"),c=t.useMemo((()=>({basename:m,navigator:s,static:l,future:Q({v7_relativeSplatPath:!1},o)})),[m,o,s,l]);"string"==typeof i&&(i=E(i));let{pathname:g="/",search:u="",hash:p="",state:k=null,key:y="default"}=i,S=t.useMemo((()=>{let t=A(g,m);return null==t?null:{location:{pathname:t,search:u,hash:p,state:k,key:y},navigationType:r}}),[m,g,u,p,k,y,r]);return null==S?null:t.createElement(H.Provider,{value:c},t.createElement(Z.Provider,{children:n,value:S}))}function ht(t){let{children:e,location:a}=t;return nt(kt(e),a)}function kt(e,a){void 0===a&&(a=[]);let n=[];return t.Children.forEach(e,((e,i)=>{if(!t.isValidElement(e))return;let r=[...a,i];if(e.type===t.Fragment)return void n.push.apply(n,kt(e.props.children,r));e.type!==dt&&h(!1),e.props.index&&e.props.children&&h(!1);let s={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=kt(e.props.children,r)),n.push(s)})),n}t.startTransition,new Promise((()=>{})),t.Component;const yt=window.ReactDOM;new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(t){}new Map;const St=t.startTransition;function ft(e){let{basename:a,children:n,future:i,window:r}=e,s=t.useRef();null==s.current&&(s.current=function(t){return void 0===t&&(t={}),function(t,e,a,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:r=!1}=n,s=i.history,l=d.Pop,o=null,m=c();function c(){return(s.state||{idx:null}).idx}function g(){l=d.Pop;let t=c(),e=null==t?null:t-m;m=t,o&&o({action:l,location:E.location,delta:e})}function k(t){let e="null"!==i.location.origin?i.location.origin:i.location.href,a="string"==typeof t?t:f(t);return a=a.replace(/ $/,"%20"),h(e,"No window.location.(origin|href) available to create URL for href: "+a),new URL(a,e)}null==m&&(m=0,s.replaceState(u({},s.state,{idx:m}),""));let E={get action(){return l},get location(){return t(i,s)},listen(t){if(o)throw new Error("A history only accepts one active listener");return i.addEventListener(p,g),o=t,()=>{i.removeEventListener(p,g),o=null}},createHref:t=>e(i,t),createURL:k,encodeLocation(t){let e=k(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){l=d.Push;let n=S(E.location,t,e);a&&a(n,t),m=c()+1;let g=y(n,m),u=E.createHref(n);try{s.pushState(g,"",u)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;i.location.assign(u)}r&&o&&o({action:l,location:E.location,delta:1})},replace:function(t,e){l=d.Replace;let n=S(E.location,t,e);a&&a(n,t),m=c();let i=y(n,m),g=E.createHref(n);s.replaceState(i,"",g),r&&o&&o({action:l,location:E.location,delta:0})},go:t=>s.go(t)};return E}((function(t,e){let{pathname:a="/",search:n="",hash:i=""}=E(t.location.hash.substr(1));return a.startsWith("/")||a.startsWith(".")||(a="/"+a),S("",{pathname:a,search:n,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){let a=t.document.querySelector("base"),n="";if(a&&a.getAttribute("href")){let e=t.location.href,a=e.indexOf("#");n=-1===a?e:e.slice(0,a)}return n+"#"+("string"==typeof e?e:f(e))}),(function(t,e){k("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),t)}({window:r,v5Compat:!0}));let l=s.current,[o,m]=t.useState({action:l.action,location:l.location}),{v7_startTransition:c}=i||{},g=t.useCallback((t=>{c&&St?St((()=>m(t))):m(t)}),[m,c]);return t.useLayoutEffect((()=>l.listen(g)),[l,g]),t.createElement(pt,{basename:a,children:n,location:o.location,navigationType:o.action,navigator:l,future:i})}var Et,xt;yt.flushSync,t.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"}(Et||(Et={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(xt||(xt={}));const Mt=()=>{const{useSettings:a,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s}=(0,e.useContext)(c),l=at();return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"md:gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-16 gtmkit-mb-20"},(0,t.createElement)("div",{className:""},(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-w-full !gtmkit-px-8 "},(0,t.createElement)(n.TextControl,{label:(0,o.__)("Container ID","gtm-kit"),placeholder:(0,o.__)("Enter Container ID","gtm-kit"),value:a&&a.general.gtm_id,className:"gtmkit-text-center",onChange:t=>i("general","gtm_id",t)})),(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,t.createElement)(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:()=>{r(),l("/essential-settings",{replace:!0})},disabled:s||!a.general.gtm_id.includes("-")},(0,o.__)("Save and continue","gtm-kit"),s?(0,t.createElement)(n.Spinner,null):""))),(0,t.createElement)("div",{className:"gtmkit-mt-8 gtmkit-border gtmkit-p-6 gtmkit-text-left gtmkit-text-color-grey gtmkit-text-center"},(0,t.createElement)("h2",{className:"gtmkit-font-bold gtmkit-text-base gtmkit-mb-4"},"Need help?"),(0,t.createElement)("p",{className:"gtmkit-mb-6"},(0,o.__)("Find your GTM container ID on","gtm-kit"),(0,t.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-underline",href:"https://tagmanager.google.com/",target:"_blank",rel:"noreferrer"},"Google Tag Manager")),(0,t.createElement)("p",null,(0,o.__)("It should look something like this:","gtm-kit")," ","GTM-12ZM7SF4"))),(0,t.createElement)("div",{className:"gtmkit-mt-3 md:gtmkit-mt-10 gtmkit-text-color-grey gtmkit-text-base"},(0,t.createElement)("span",{className:"gtmkit-block"},(0,o.__)("No thanks. I know what I'm doing.","gtm-kit")),(0,t.createElement)("a",{className:"gtmkit-underline gtmkit-ml-4",href:window.gtmkitSettings.dashboardUrl},(0,o.__)("Go to the dashboard.","gtm-kit"))))},Nt=()=>{const{useImportSettings:a,useIsPending:i,useInstallData:r}=(0,e.useContext)(c),[s,l]=(0,e.useState)(!0),m=Object.keys(r.import_data)[0],[g,u]=(0,e.useState)(m),d=[];return Object.keys(r.import_data).forEach((t=>{d.push({value:t,label:r.import_data[t].name})})),s?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto gtmkit-border gtmkit-p-8 gtmkit-my-8"},(0,t.createElement)("h2",{className:"gtmkit-text-lg gtmkit-text-color-heading gtmkit-font-bold"},(0,o.__)("Would you like to import plugin settings?","gtm-kit")),(0,t.createElement)("p",{className:"gtmkit-text-base gtmkit-my-4 gtmkit-text-color-grey"},(0,o.__)("We have found the configuration of other plugins in the database.","gtm-kit")," ",(0,o.__)("Would you like to import your settings to GTM Kit?","gtm-kit")),(0,t.createElement)(n.RadioControl,{help:(0,o.__)("Select the plugin you want to import settings from.","gtm-kit"),selected:g,options:d,onChange:t=>u(t)}),(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,t.createElement)(n.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-6 !gtmkit-px-8 gtmkit-text-base",onClick:()=>{a(g,r.import_data[g]),l(!1)}},(0,t.createElement)("span",{className:"gtmkit-text-lg gtmkit-font-bold"},(0,o.__)("Yes","gtm-kit")),i?(0,t.createElement)(n.Spinner,null):""),(0,t.createElement)(n.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-6 !gtmkit-px-8 gtmkit-text-base",onClick:()=>{l(!1)}},(0,t.createElement)("span",{className:"gtmkit-text-lg gtmkit-font-bold"},(0,o.__)("No","gtm-kit")),i?(0,t.createElement)(n.Spinner,null):"")))):(0,t.createElement)(Mt,null)},vt=()=>{const{useInstallData:a}=(0,e.useContext)(c),{firstInstall:n}=a,{importAvailable:i}=a;return(0,t.createElement)("div",{className:"gtmkit-text-center"},(0,t.createElement)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading"},(0,o.__)("You've successfully installed GTM Kit!","gtm-kit")),(0,t.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey"},(0,o.__)("To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container.","gtm-kit"))),n&&i?(0,t.createElement)(Nt,null):(0,t.createElement)(Mt,null))},wt=()=>{const{useSettings:a,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s,useInstallData:l}=(0,e.useContext)(c),m=at();return(0,t.createElement)("div",{className:"gtmkit-text-center"},(0,t.createElement)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading"},(0,o.__)("Essential Settings","gtm-kit")),(0,t.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey"},(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,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Page type","gtm-kit"),id:"page-type"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("Include the page type i.e. page, product, category, cart, checkout etc in the datalayer?","gtm-kit"),checked:a&&a.general.datalayer_page_type,onChange:()=>{i("general","datalayer_page_type",!(a&&a.general.datalayer_page_type))}}))),l.woocommerce_integration?(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Track WooCommerce","gtm-kit"),id:"track-wooCommerce"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("Would you like to track e-commerce data from WooCommerce?","gtm-kit"),checked:a&&a.integrations.woocommerce_integration,onChange:()=>{i("integrations","woocommerce_integration",!(a&&a.integrations.woocommerce_integration))}}))):null,l.cf7_integration?(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Track Contact Form 7","gtm-kit"),id:"track-cf7"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("Would you like to track form submissions from Contact Form 7?","gtm-kit"),checked:a&&a.integrations.cf7_integration,onChange:()=>{i("integrations","cf7_integration",!(a&&a.integrations.cf7_integration))}}))):null,l.edd_integration?(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap"},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Track Easy Digital Downloads","gtm-kit"),id:"track-edd"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("Would you like to track e-commerce data from Easy Digital Downloads?","gtm-kit"),checked:a&&a.integrations.edd_integration,onChange:()=>{i("integrations","edd_integration",!(a&&a.integrations.edd_integration))}}))):null,(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,t.createElement)(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:()=>{r(),m("/share-anonymous-data",{replace:!0})},disabled:s},(0,o.__)("Save and continue","gtm-kit"),s?(0,t.createElement)(n.Spinner,null):"")))},_t=()=>{const{useSettings:a,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s,useSiteData:l}=(0,e.useContext)(c),m=at();return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h1",{className:"gtmkit-text-3xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading gtmkit-text-center"},(0,o.__)("Help improve GTM Kit","gtm-kit")),(0,t.createElement)("p",{className:"gtmkit-text-sm gtmkit-mb-4 gtmkit-text-color-grey"},(0,o.__)("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,t.createElement)("p",{className:"gtmkit-text-sm gtmkit-mb-8 gtmkit-text-color-grey"},(0,o.__)("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,t.createElement)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm"},(0,t.createElement)("tbody",null,(0,t.createElement)("tr",{className:""},(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Server type:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.web_server))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"PHP version number:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.php_version))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"WordPress version number:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.wordpress_version))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"WordPress multisite:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.multisite?(0,o.__)("Yes","gtm-kit"):(0,o.__)("No","gtm-kit")))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Current theme:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.current_theme))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Current site language:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.locale))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Active plugins:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("em",null,"Plugin names of all active plugins"))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Anonymized GTM Kit settings:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("em",null,"Which GTM Kit settings are active"))))),(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-max !gtmkit-px-8 gtmkit-mx-auto "},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Share anonymous data","gtm-kit"),id:"share-anonymous-data"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("I agree to share anonymous data with the development team to help improve GTM Kit. ","gtm-kit"),checked:a&&a.general.analytics_active,onChange:()=>{i("general","analytics_active",!(a&&a.general.analytics_active))}}))),(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,t.createElement)(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:()=>{r(),m("/getting-started",{replace:!0})},disabled:s},(0,o.__)("Save and continue","gtm-kit"),s?(0,t.createElement)(n.Spinner,null):"")))};var bt=a(893);const Tt=()=>(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("h1",{className:"gtmkit-text-3xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading gtmkit-text-center",children:(0,o.__)("You are ready to use GTM Kit!","gtm-kit")}),(0,bt.jsx)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey gtmkit-text-center",children:(0,o.__)("Your Google Tag Manager Container is now sending data to Google Tag Manager.","gtm-kit")}),(0,bt.jsxs)("p",{className:"gtmkit-text-base gtmkit-mb-12 gtmkit-text-color-grey gtmkit-text-center",children:[(0,o.__)("Below you will find GTM container import files, with all the necessary tags, trigger, and variables to use Google Analytics 4.","gtm-kit")," "]}),(0,bt.jsxs)("div",{className:"gtmkit-border-2 gtmkit-max-w-lg gtmkit-mx-auto gtmkit-mb-8",children:[(0,bt.jsx)("h3",{className:"gtmkit-p-3 gtmkit-font-bold gtmkit-text-xl gtmkit-border-b-2",children:(0,o.__)("Getting Started","gtm-kit")}),(0,bt.jsxs)("p",{className:"gtmkit-text-base gtmkit-text-color-grey gtmkit-m-4",children:[(0,o.__)("The next step is to configure your Google Tag Manager container. You will find templates for this in the GTM Templates section.","gtm-kit")," ",(0,bt.jsx)("a",{className:"gtmkit-text-color-primary gtmkit-whitespace-nowrap",href:window.gtmkitSettings.templatesUrl,rel:"noreferrer",children:(0,o.__)("Go to GTM Templates","gtm-kit")})]}),(0,bt.jsxs)("p",{className:"gtmkit-text-base gtmkit-text-color-grey gtmkit-m-4",children:[(0,o.__)("To get the most out of Google Tag Manager with GTM Kit, you should also review the tutorials.","gtm-kit")," ",(0,bt.jsx)("a",{className:"gtmkit-text-color-primary gtmkit-whitespace-nowrap",href:window.gtmkitSettings.helpUrl+"#/help",rel:"noreferrer",children:(0,o.__)("Go to Tutorials","gtm-kit")})]})]}),(0,bt.jsx)("div",{className:"gtmkit-flex gtmkit-mt-12",children:(0,bt.jsx)(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:()=>{window.location.href=window.gtmkitSettings.dashboardUrl},children:(0,o.__)("Go to the dashboard","gtm-kit")})})]}),Lt=[{step:1,path:"/welcome",element:"Welcome",title:(0,o.__)("Welcome","gtm-kit")},{step:2,path:"/essential-settings",element:"EssentialSettings",title:(0,o.__)("Essential Settings","gtm-kit")},{step:3,path:"/share-anonymous-data",element:"ShareAnonymousData",title:(0,o.__)("Help improve GTM Kit","gtm-kit")},{step:4,path:"/getting-started",element:"GettingStarted",title:(0,o.__)("Getting Started","gtm-kit")}],jt=({step:e,currentStep:a,totalSteps:n})=>{if(e===n)return;let i="gtmkit-h-0.5 gtmkit-w-full";return i+=e<a?" gtmkit-bg-color-primary":" gtmkit-bg-color-border",(0,t.createElement)("div",{className:i})},Dt=({step:e,currentStep:a})=>e<a?(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"gtmkit-w-5 gtmkit-h-5 gtmkit-text-white"},(0,t.createElement)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})):e===a?(0,t.createElement)("span",{className:"gtmkit-h-2.5 gtmkit-w-2.5 gtmkit-rounded-full gtmkit-bg-color-primary"}):void 0,It=({step:e,currentStep:a,totalSteps:n})=>{if(0===e)return;let i="gtmkit-transition-opacity gtmkit-duration-500 gtmkit-absolute gtmkit-inset-0 gtmkit-border-2 gtmkit-flex gtmkit-items-center gtmkit-justify-center gtmkit-rounded-full gtmkit-opacity-100";return i+=e<a?" gtmkit-bg-color-primary":" gtmkit-bg-white",i+=e>a?" gtmkit-border-color-border":" gtmkit-border-color-primary",(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{className:"gtmkit-relative gtmkit-shrink-0 gtmkit-z-10 gtmkit-w-8 gtmkit-h-8 gtmkit-rounded-full"},(0,t.createElement)("span",{className:i},(0,t.createElement)(Dt,{step:e,currentStep:a,totalSteps:n}))),(0,t.createElement)(jt,{step:e,currentStep:a,totalSteps:n}))},Ct=()=>{const e=Lt.length-1+Lt[0].step;let a=((t,e)=>{const a=Object.keys(e);return t.filter((function(t){for(let n=0;n<a.length;n++)if(!t.hasOwnProperty(a[n])||t[a[n]]!==e[a[n]])return!1;return!0}))})(Lt,{path:tt().pathname});return a=a.length?a[0].step:0,0===a?(0,t.createElement)("div",{className:"gtmkit-my-16"}):(0,t.createElement)("div",{className:"gtmkit-mt-6 gtmkit-inset-0 gtmkit-mx-auto gtmkit-my-6 gtmkit-flex gtmkit-items-center gtmkit-max-w-xl","aria-hidden":"true"},Lt.map((function(n){return(0,t.createElement)(It,{key:n.step,step:n.step,currentStep:a,totalSteps:e})})))},Ot=()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("header",{className:"gtmkit-text-center gtmkit-px-3"},(0,t.createElement)("h1",{className:"gtmkit-mt-3 md:gtmkit-mt-8 gtmkit-mb-4 gtmkit-w-[225px] gtmkit-inline-block"},(0,t.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNDY3LjEgMTU4Ni40IiBoZWlnaHQ9IjU0IiB2aWV3Qm94PSIwIDAgMTYwIDU0IiB3aWR0aD0iMTYwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IGZpbGw9IiM4ODgiIGhlaWdodD0iNTQiIHJ4PSI0LjI2NSIgd2lkdGg9IjE2MCIvPjxwYXRoIGQ9Im04OC42NTkgNy4wMDJoLTQ5LjI2NmMtMi45MTUgMC01LjM3OC0uMTg0LTkuMjMgMi41OTZsLTE4Ljc0MyAxMi43NTJjLTQuNTQ5IDMuMjkyLTQuNTcxIDYuMDAxIDAgOS4zMDJsMTguNzQzIDEyLjc1MWMzLjY1MiAyLjY0NiA2LjI5OSAyLjU5NyA5LjIzIDIuNTk3aDE1LjY4NiAzMy41OGMyLjkzMS0uMDU3IDUuMzk0LTEuNzg0IDUuMzQtMy45MjN2LTMyLjIxYy0uMDEyLTIuMTM0LTIuNDA5LTMuODY1LTUuMzQtMy44NjV6IiBmaWxsPSIjMzk2OWJiIiB0cmFuc2Zvcm09Im1hdHJpeCgtMSAwIDAgLTEgMTAxLjk5OTg2NyA1My45OTk1NDcpIi8+PGcgZmlsbD0iI2ZmZiIgdHJhbnNmb3JtPSJtYXRyaXgoMS40NjUyMDIgMCAwIDEuNDY1MjAyIC00LjU4MjQzNiAtNy41NTMxMjYpIj48cGF0aCBkPSJtMTguMzE2IDIzLjA4Nmg0LjYzMnY2LjA1MmMtLjc1LjI0NS0xLjQ1OS40MTUtMi4xMjEuNTE0LS42NjMuMDk4LTEuMzQxLjE0OC0yLjAzMy4xNDgtMS43NjQgMC0zLjEwNi0uNTE3LTQuMDM1LTEuNTU0LS45MjktMS4wMzQtMS4zOTUtMi41MTktMS4zOTUtNC40NTcgMC0xLjg4Ni41MzgtMy4zNTYgMS42MTctNC40MSAxLjA3OC0xLjA1NCAyLjU3My0xLjU3OSA0LjQ4MS0xLjU3OSAxLjIgMCAyLjM1Ny4yMzkgMy40NjkuNzE4bC0uODIzIDEuOTc5Yy0uODUtLjQyNS0xLjczNy0uNjM3LTIuNjU3LS42MzctMS4wNzEgMC0xLjkzMi4zNTgtMi41NzIgMS4wNzctLjY0NS43MTgtLjk2OCAxLjY4NS0uOTY4IDIuODk5IDAgMS4yNjcuMjYgMi4yMzMuNzggMi45MDQuNTE2LjY2NyAxLjI3MS45OTkgMi4yNjIuOTk5LjUxNyAwIDEuMDQxLS4wNTIgMS41NzItLjE1OHYtMi40MzVoLTIuMjA5em0xMS45MTIgNi41NTVoLTIuNDc0di05LjYxNGgtMy4xNzN2LTIuMDZoOC44MTZ2Mi4wNmgtMy4xNjl6bTkuOTA4IDAtMi44MTEtOS4xNThoLS4wNzJjLjEwMyAxLjg2My4xNTQgMy4xMDUuMTU0IDMuNzI4djUuNDNoLTIuMjEzdi0xMS42NzRoMy4zNjhsMi43NjQgOC45MjdoLjA0OGwyLjkzNC04LjkyN2gzLjM2OXYxMS42NzRoLTIuMzA4di01LjUyNWMwLS4yNjEgMC0uNTYxLjAwOS0uOTAzLjAwOS0uMzQxLjA0OC0xLjI0Ni4xMTItMi43MTZoLS4wNzRsLTMuMDExIDkuMTQ0eiIvPjxwYXRoIGQ9Im04OC44ODMgMzEuODk4aC0zLjgxMWwtNC4xNDctNi42Ny0xLjQxNyAxLjAxOHY1LjY1MmgtMy4zNTd2LTE1LjgzaDMuMzU3djcuMjQybDEuMzE4LTEuODYxIDQuMjkzLTUuMzgxaDMuNzI0bC01LjUyMyA3LjAwNnptMS41ODktMTUuMjMzYzAtMS4wNzUuNi0xLjYxNCAxLjgtMS42MTQgMS4xOTkgMCAxLjc5OC41MzkgMS43OTggMS42MTQgMCAuNTEyLS4xNDguOTEtLjQ1IDEuMTk2LS4yOTcuMjg0LS43NDkuNDI5LTEuMzQ4LjQyOS0xLjIgMC0xLjgtLjU0My0xLjgtMS42MjV6bTMuNDQ5IDE1LjIzM2gtMy4zMDJ2LTEyLjEwNGgzLjMwMnptOC41NjMtMi40MTNjLjU3OCAwIDEuMjcxLS4xMjggMi4wNzctLjM4djIuNDU2Yy0uODIuMzctMS44MzEuNTUyLTMuMDMxLjU1Mi0xLjMyNCAwLTIuMjgtLjMzMy0yLjg4NS0xLjAwMS0uNjAyLS42NjctLjkwMi0xLjY2OC0uOTAyLTMuMDAzdi01LjgzNWgtMS41ODV2LTEuMzk5bDEuODIzLTEuMTAzLjk0OS0yLjU1N2gyLjExNXYyLjU3OWgzLjM4OHYyLjQ4aC0zLjM4OHY1LjgzNWMwIC40NjcuMTI5LjgxNS4zOTMgMS4wNDEuMjY0LjIyMi42MTQuMzM1IDEuMDQ2LjMzNXoiLz48L2c+PC9zdmc+",alt:(0,o.__)("GTM Kit","gtm-kit"),className:"gtmkit-w-full"}))),(0,t.createElement)(Ct,null)),Ut=()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("footer",{className:"gtm-kit-settings-footer gtmkit-my-8 gtmkit-text-color-grey"},(0,t.createElement)("p",{className:"gtmkit-mx-auto gtmkit-max-w-max"},(0,t.createElement)("a",{className:"gtmkit-underline",href:window.gtmkitSettings.dashboardUrl},(0,o.__)("Go to the dashboard.","gtm-kit"))))),At=()=>{const{useSettings:a}=(0,e.useContext)(c);return Object.keys(a).length?(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Ot,null),(0,t.createElement)("main",{className:"gtmkit-max-w-3xl gtmkit-bg-white gtmkit-border-1 gtmkit-border-color-border gtmkit-rounded-md gtmkit-mx-auto gtmkit-py-12 gtmkit-px-16 gtmkit-text-base"},(0,t.createElement)(ht,null,(0,t.createElement)(dt,{exact:!0,path:"/welcome",element:(0,t.createElement)(vt,null)}),(0,t.createElement)(dt,{exact:!0,path:"/essential-settings",element:(0,t.createElement)(wt,null)}),(0,t.createElement)(dt,{exact:!0,path:"/share-anonymous-data",element:(0,t.createElement)(_t,null)}),(0,t.createElement)(dt,{exact:!0,path:"/getting-started",element:(0,t.createElement)(Tt,null)}),(0,t.createElement)(dt,{path:"/",element:(0,t.createElement)(ut,{replace:!0,to:"/welcome"})}))),(0,t.createElement)(Ut,null)):(0,t.createElement)(n.Spinner,{className:"gtm-kit-settings-page-loader"})},Pt=()=>(0,t.createElement)(ft,{basename:"/"},(0,t.createElement)(g,null,(0,t.createElement)(At,null)));document.addEventListener("DOMContentLoaded",(()=>{void 0!==document.getElementById(window.gtmkitSettings.rootId)&&null!==document.getElementById(window.gtmkitSettings.rootId)&&(0,e.render)((0,t.createElement)(Pt,null),document.getElementById(window.gtmkitSettings.rootId))}))})()})();
     1(()=>{"use strict";var t={n:e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a}),a},d:(e,a)=>{for(var n in a)t.o(a,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.React,a=window.wp.element,n=window.wp.components,i=window.lodash,r=window.wp.apiFetch;var s=t.n(r);s().use(s().createNonceMiddleware(window.gtmkitSettings.nonce)),s().use(s().createRootURLMiddleware(window.gtmkitSettings.root));const o=async(t,e,a=null,n=!1)=>{let i={};try{i=await s()({path:t,method:e,...a&&{data:a}})}catch(a){return console.log(`${e} ${t} Errors:`,a),{[`gtm_kit_api_${e}_${t}_errors`]:!0}}return!0===n?i:!0===i.success?i.data:options},l=window.wp.i18n,c=(t,e)=>{const a={...t};switch(e.type){case"FETCH_SETTINGS":a.fetchedSettings={...e.payload.fetchedSettings,integrations:e.payload.fetchedSettings.integrations||{}},a.stateSettings=e.payload.stateSettings,a.siteData=e.payload.siteData,a.notifications=e.payload.notifications,a.installData=e.payload.installData,a.isPending=!1,a.canSave=!1,e.payload.fetchedSettings.gtm_kit_api_fetch_settings_errors&&(a.notice=(0,l.__)("An error occurred.","gtm-kit"),a.hasError=!0);break;case"UPDATE_SETTINGS_BEFORE":a.isPending=e.payload.isPending;break;case"UPDATE_SETTINGS":a.fetchedSettings=e.payload.fetchedSettings,a.stateSettings=e.payload.stateSettings,a.isPending=!1,a.canSave=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors,a.notice=e.payload.fetchedSettings.gtm_kit_api_update_settings_errors?(0,l.__)("An error occurred.","gtm-kit"):(0,l.__)("Saved Successfully.","gtm-kit"),a.hasError=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors;break;case"UPDATE_STATE":a.fetchedSettings=e.payload.fetchedSettings||a.fetchedSettings,a.stateSettings=e.payload.stateSettings||a.stateSettings,a.isPending=e.payload.isPending||a.isPending,a.notice=e.payload.notice||a.notice,a.hasError=e.payload.hasError||a.hasError,a.canSave=e.payload.canSave||a.canSave,a.isSendingSystemData=e.payload.isSendingSystemData||a.isSendingSystemData,a.supportTicket=e.payload.supportTicket||a.supportTicket,a.isSendingLicenseKey=e.payload.isSendingLicenseKey||a.isSendingLicenseKey,a.licenseKey=e.payload.licenseKey||a.licenseKey;break;case"SEND_SUPPORT_DATA_BEFORE":a.isSendingSystemData=e.payload.isSendingSystemData||a.isSendingSystemData;break;case"SEND_SUPPORT_DATA":a.isSendingSystemData=!1,a.isSystemDataSent=e.payload.isSystemDataSent||a.isSystemDataSent,a.systemDataMessage=e.payload.systemDataMessage||a.systemDataMessage;break;case"SEND_LICENSE_KEY_BEFORE":a.isSendingLicenseKey=e.payload.isSendingLicenseKey||a.isSendingLicenseKey;break;case"SEND_LICENSE_KEY":a.isSendingLicenseKey=!1,a.isLicenseKeySent=e.payload.isLicenseKeySent||a.isLicenseKeySent,a.licenseKeyMessage=e.payload.licenseKeyMessage||a.licenseKeyMessage;break;case"SEND_NOTIFICATION_STATUS_BEFORE":a.isUpdatingNotifications=e.payload.isUpdatingNotifications||a.isUpdatingNotifications;break;case"SEND_NOTIFICATION_STATUS":a.isUpdatingNotifications=!1,a.isNotificationStatusSent=e.payload.isNotificationStatusSent||a.isNotificationStatusSent,a.notifications=e.payload.notifications||a.Notifications}return a},m=window.ReactJSXRuntime,g=(0,a.createContext)(),u=t=>{const[e,n]=(0,a.useReducer)(c,{fetchedSettings:{},stateSettings:{},isPending:!0,notice:"",hasError:!1,canSave:!1,supportTicket:"",isSystemDataSent:!1,systemDataMessage:"",licenseKey:"",isLicensenKeySent:!1,licenseKeyMessage:"",notifications:{}}),r=async()=>{const t=window.gtmkitSettings.settings?window.gtmkitSettings.settings:{},e=window.gtmkitSettings.site_data?window.gtmkitSettings.site_data:{},a=window.gtmkitSettings.notifications?window.gtmkitSettings.notifications:{metrics:{total:1}},i="wizard"===window.gtmkitSettings.currentPage?window.gtmkitSettings.install_data:{};n({type:"FETCH_SETTINGS",payload:{fetchedSettings:t,stateSettings:t,siteData:e,notifications:a,installData:i}})},s=async t=>{n({type:"UPDATE_STATE",payload:t})};(0,a.useEffect)((()=>{r()}),[]);const l={useDispatch:t=>{n(t)},useUpdateSettings:async()=>{n({type:"UPDATE_SETTINGS_BEFORE",payload:{isPending:!0}});const t=await(a=e.stateSettings,o("gtmkit/v1/set-options","POST",a));var a;n({type:"UPDATE_SETTINGS",payload:{fetchedSettings:t,stateSettings:t}})},useFetchSettings:r,useUpdateState:s,useUpdateStateSettings:async(t,a,n)=>{const r=JSON.parse(JSON.stringify(e.stateSettings));let o;r[t][a]=n,o=!(0,i.isEqual)(r,e.fetchedSettings),s({stateSettings:r,canSave:o})},useImportSettings:async(t,a)=>{const n=JSON.parse(JSON.stringify(e.stateSettings));let r;const o={};o.general={...n.general,...a.general},"integrations"in a&&(o.integrations={...n.integrations,...a.integrations}),r=!(0,i.isEqual)(o,e.fetchedSettings),s({stateSettings:o,canSave:r})},useUpdateSupportTicket:async t=>{s({supportTicket:t})},useSendSystemData:async()=>{n({type:"SEND_SUPPORT_DATA_BEFORE",payload:{isSendingSystemData:!0}});const t=await(a=e.supportTicket,o("gtmkit/v1/send-support-data","POST",a,!0));var a;n({type:"SEND_SUPPORT_DATA",payload:{isSendingSystemData:!1,isSystemDataSent:t.success,systemDataMessage:t.data}})},useUpdateLicenseKey:async t=>{s({licenseKey:t})},useSendLicenseKey:async()=>{n({type:"SEND_LICENSE_KEY_BEFORE",payload:{isSendingLicenseKey:!0}});const t=await(a=e.licenseKey,o("gtmkit/v1/send-license-key","POST",a,!0));var a;n({type:"SEND_LICENSE_KEY",payload:{isSendingLicenseKey:!1,isLicenseKeySent:t.success,licenseKeyMessage:t.data}})},useSetNotificationStatus:async(t,e)=>{n({type:"SEND_NOTIFICATION_STATUS_BEFORE",payload:{isUpdatingNotifications:!0}});const a={"notification-id":t,action:e},i=await(t=>o("gtmkit/v1/set-notification-status","POST",t,!0))(a);n({type:"SEND_NOTIFICATION_STATUS",payload:{isUpdatingNotifications:!1,isNotificationStatusSent:i.success,notifications:i.data}})},useSettings:e.stateSettings,useIsPending:e.isPending,useNotice:e.notice,useHasError:e.hasError,useCanSave:e.canSave,useSiteData:e.siteData,useInstallData:e.installData,useIsSending:e.isSendingSystemData,useSupportTicket:e.supportTicket,useIsSystemDataSent:e.isSystemDataSent,useSystemDataMessage:e.systemDataMessage,useIsSendingLicenseKey:e.isSendingLicenseKey,useLicenseKey:e.licenseKey,useIsLicenseKeySent:e.isLicenseKeySent,useLicenseKeyMessage:e.licenseKeyMessage,useNotifications:e.notifications,useIsUpdatingNotifications:e.isUpdatingNotifications,useUserRoles:window.gtmkitSettings.user_roles?window.gtmkitSettings.user_roles:[],isPremium:!!window.gtmkitSettings.isPremium&&window.gtmkitSettings.isPremium};return(0,m.jsx)(g.Provider,{value:l,children:t.children})};function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},d.apply(this,arguments)}var p;!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(p||(p={}));const h="popstate";function k(t,e){if(!1===t||null==t)throw new Error(e)}function y(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function S(t,e){return{usr:t.state,key:t.key,idx:e}}function f(t,e,a,n){return void 0===a&&(a=null),d({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?x(e):e,{state:a,key:e&&e.key||n||Math.random().toString(36).substr(2,8)})}function E(t){let{pathname:e="/",search:a="",hash:n=""}=t;return a&&"?"!==a&&(e+="?"===a.charAt(0)?a:"?"+a),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function x(t){let e={};if(t){let a=t.indexOf("#");a>=0&&(e.hash=t.substr(a),t=t.substr(0,a));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}var N;function M(t,e,a){return void 0===a&&(a="/"),function(t,e,a,n){let i=z(("string"==typeof e?x(e):e).pathname||"/",a);if(null==i)return null;let r=v(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,a)=>t===e[a]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(r);let s=null;for(let t=0;null==s&&t<r.length;++t){let e=A(i);s=O(r[t],e,n)}return s}(t,e,a,!1)}function v(t,e,a,n){void 0===e&&(e=[]),void 0===a&&(a=[]),void 0===n&&(n="");let i=(t,i,r)=>{let s={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};s.relativePath.startsWith("/")&&(k(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let o=G([n,s.relativePath]),l=a.concat(s);t.children&&t.children.length>0&&(k(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),v(t.children,e,l,o)),(null!=t.path||t.index)&&e.push({path:o,score:C(o,t.index),routesMeta:l})};return t.forEach(((t,e)=>{var a;if(""!==t.path&&null!=(a=t.path)&&a.includes("?"))for(let a of w(t.path))i(t,e,a);else i(t,e)})),e}function w(t){let e=t.split("/");if(0===e.length)return[];let[a,...n]=e,i=a.endsWith("?"),r=a.replace(/\?$/,"");if(0===n.length)return i?[r,""]:[r];let s=w(n.join("/")),o=[];return o.push(...s.map((t=>""===t?r:[r,t].join("/")))),i&&o.push(...s),o.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(N||(N={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const _=/^:[\w-]+$/,T=3,b=2,L=1,j=10,D=-2,I=t=>"*"===t;function C(t,e){let a=t.split("/"),n=a.length;return a.some(I)&&(n+=D),e&&(n+=b),a.filter((t=>!I(t))).reduce(((t,e)=>t+(_.test(e)?T:""===e?L:j)),n)}function O(t,e,a){void 0===a&&(a=!1);let{routesMeta:n}=t,i={},r="/",s=[];for(let t=0;t<n.length;++t){let o=n[t],l=t===n.length-1,c="/"===r?e:e.slice(r.length)||"/",m=U({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},c),g=o.route;if(!m&&l&&a&&!n[n.length-1].route.index&&(m=U({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},c)),!m)return null;Object.assign(i,m.params),s.push({params:i,pathname:G([r,m.pathname]),pathnameBase:K(G([r,m.pathnameBase])),route:g}),"/"!==m.pathnameBase&&(r=G([r,m.pathnameBase]))}return s}function U(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[a,n]=function(t,e,a){void 0===e&&(e=!1),void 0===a&&(a=!0),y("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((t,e,a)=>(n.push({paramName:e,isOptional:null!=a}),a?"/?([^\\/]+)?":"/([^\\/]+)")));return t.endsWith("*")?(n.push({paramName:"*"}),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==t&&"/"!==t&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}(t.path,t.caseSensitive,t.end),i=e.match(a);if(!i)return null;let r=i[0],s=r.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce(((t,e,a)=>{let{paramName:n,isOptional:i}=e;if("*"===n){let t=o[a]||"";s=r.slice(0,r.length-t.length).replace(/(.)\/+$/,"$1")}const l=o[a];return t[n]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),t}),{}),pathname:r,pathnameBase:s,pattern:t}}function A(t){try{return t.split("/").map((t=>decodeURIComponent(t).replace(/\//g,"%2F"))).join("/")}catch(e){return y(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function z(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let a=e.endsWith("/")?e.length-1:e.length,n=t.charAt(a);return n&&"/"!==n?null:t.slice(a)||"/"}function P(t,e,a,n){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(n)+"].  Please separate it out to the `to."+a+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function R(t,e){let a=function(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}(t);return e?a.map(((t,e)=>e===a.length-1?t.pathname:t.pathnameBase)):a.map((t=>t.pathnameBase))}function B(t,e,a,n){let i;void 0===n&&(n=!1),"string"==typeof t?i=x(t):(i=d({},t),k(!i.pathname||!i.pathname.includes("?"),P("?","pathname","search",i)),k(!i.pathname||!i.pathname.includes("#"),P("#","pathname","hash",i)),k(!i.search||!i.search.includes("#"),P("#","search","hash",i)));let r,s=""===t||""===i.pathname,o=s?"/":i.pathname;if(null==o)r=a;else{let t=e.length-1;if(!n&&o.startsWith("..")){let e=o.split("/");for(;".."===e[0];)e.shift(),t-=1;i.pathname=e.join("/")}r=t>=0?e[t]:"/"}let l=function(t,e){void 0===e&&(e="/");let{pathname:a,search:n="",hash:i=""}="string"==typeof t?x(t):t,r=a?a.startsWith("/")?a:function(t,e){let a=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?a.length>1&&a.pop():"."!==t&&a.push(t)})),a.length>1?a.join("/"):"/"}(a,e):e;return{pathname:r,search:Y(n),hash:F(i)}}(i,r),c=o&&"/"!==o&&o.endsWith("/"),m=(s||"."===o)&&a.endsWith("/");return l.pathname.endsWith("/")||!c&&!m||(l.pathname+="/"),l}const G=t=>t.join("/").replace(/\/\/+/g,"/"),K=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",F=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const W=["post","put","patch","delete"],Q=(new Set(W),["get",...W]);function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},J.apply(this,arguments)}new Set(Q),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const H=e.createContext(null),$=e.createContext(null),Z=e.createContext(null),V=e.createContext(null),X=e.createContext({outlet:null,matches:[],isDataRoute:!1}),q=e.createContext(null);function tt(){return null!=e.useContext(V)}function et(){return tt()||k(!1),e.useContext(V).location}function at(t){e.useContext(Z).static||e.useLayoutEffect(t)}function nt(){let{isDataRoute:t}=e.useContext(X);return t?function(){let{router:t}=function(){let t=e.useContext(H);return t||k(!1),t}(ct.UseNavigateStable),a=gt(mt.UseNavigateStable),n=e.useRef(!1);return at((()=>{n.current=!0})),e.useCallback((function(e,i){void 0===i&&(i={}),n.current&&("number"==typeof e?t.navigate(e):t.navigate(e,J({fromRouteId:a},i)))}),[t,a])}():function(){tt()||k(!1);let t=e.useContext(H),{basename:a,future:n,navigator:i}=e.useContext(Z),{matches:r}=e.useContext(X),{pathname:s}=et(),o=JSON.stringify(R(r,n.v7_relativeSplatPath)),l=e.useRef(!1);return at((()=>{l.current=!0})),e.useCallback((function(e,n){if(void 0===n&&(n={}),!l.current)return;if("number"==typeof e)return void i.go(e);let r=B(e,JSON.parse(o),s,"path"===n.relative);null==t&&"/"!==a&&(r.pathname="/"===r.pathname?a:G([a,r.pathname])),(n.replace?i.replace:i.push)(r,n.state,n)}),[a,i,o,s,t])}()}function it(t,a,n,i){tt()||k(!1);let{navigator:r}=e.useContext(Z),{matches:s}=e.useContext(X),o=s[s.length-1],l=o?o.params:{},c=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let m,g=et();if(a){var u;let t="string"==typeof a?x(a):a;"/"===c||(null==(u=t.pathname)?void 0:u.startsWith(c))||k(!1),m=t}else m=g;let d=m.pathname||"/",h=d;if("/"!==c){let t=c.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(t.length).join("/")}let y=M(t,{pathname:h}),S=function(t,a,n,i){var r;if(void 0===a&&(a=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==t){var s;if(!n)return null;if(n.errors)t=n.matches;else{if(!(null!=(s=i)&&s.v7_partialHydration&&0===a.length&&!n.initialized&&n.matches.length>0))return null;t=n.matches}}let o=t,l=null==(r=n)?void 0:r.errors;if(null!=l){let t=o.findIndex((t=>t.route.id&&void 0!==(null==l?void 0:l[t.route.id])));t>=0||k(!1),o=o.slice(0,Math.min(o.length,t+1))}let c=!1,m=-1;if(n&&i&&i.v7_partialHydration)for(let t=0;t<o.length;t++){let e=o[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(m=t),e.route.id){let{loaderData:t,errors:a}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!a||void 0===a[e.route.id]);if(e.route.lazy||i){c=!0,o=m>=0?o.slice(0,m+1):[o[0]];break}}}return o.reduceRight(((t,i,r)=>{let s,g=!1,u=null,d=null;var p;n&&(s=l&&i.route.id?l[i.route.id]:void 0,u=i.route.errorElement||st,c&&(m<0&&0===r?(ut[p="route-fallback"]||(ut[p]=!0),g=!0,d=null):m===r&&(g=!0,d=i.route.hydrateFallbackElement||null)));let h=a.concat(o.slice(0,r+1)),k=()=>{let a;return a=s?u:g?d:i.route.Component?e.createElement(i.route.Component,null):i.route.element?i.route.element:t,e.createElement(lt,{match:i,routeContext:{outlet:t,matches:h,isDataRoute:null!=n},children:a})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?e.createElement(ot,{location:n.location,revalidation:n.revalidation,component:u,error:s,children:k(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):k()}),null)}(y&&y.map((t=>Object.assign({},t,{params:Object.assign({},l,t.params),pathname:G([c,r.encodeLocation?r.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?c:G([c,r.encodeLocation?r.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),s,n,i);return a&&S?e.createElement(V.Provider,{value:{location:J({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:p.Pop}},S):S}function rt(){let t=function(){var t;let a=e.useContext(q),n=function(){let t=e.useContext($);return t||k(!1),t}(mt.UseRouteError),i=gt(mt.UseRouteError);return void 0!==a?a:null==(t=n.errors)?void 0:t[i]}(),a=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},a),n?e.createElement("pre",{style:i},n):null,null)}const st=e.createElement(rt,null);class ot extends e.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?e.createElement(X.Provider,{value:this.props.routeContext},e.createElement(q.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lt(t){let{routeContext:a,match:n,children:i}=t,r=e.useContext(H);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(X.Provider,{value:a},i)}var ct=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(ct||{}),mt=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(mt||{});function gt(t){let a=function(){let t=e.useContext(X);return t||k(!1),t}(),n=a.matches[a.matches.length-1];return n.route.id||k(!1),n.route.id}const ut={};function dt(t){let{to:a,replace:n,state:i,relative:r}=t;tt()||k(!1);let{future:s,static:o}=e.useContext(Z),{matches:l}=e.useContext(X),{pathname:c}=et(),m=nt(),g=B(a,R(l,s.v7_relativeSplatPath),c,"path"===r),u=JSON.stringify(g);return e.useEffect((()=>m(JSON.parse(u),{replace:n,state:i,relative:r})),[m,u,r,n,i]),null}function pt(t){k(!1)}function ht(t){let{basename:a="/",children:n=null,location:i,navigationType:r=p.Pop,navigator:s,static:o=!1,future:l}=t;tt()&&k(!1);let c=a.replace(/^\/*/,"/"),m=e.useMemo((()=>({basename:c,navigator:s,static:o,future:J({v7_relativeSplatPath:!1},l)})),[c,l,s,o]);"string"==typeof i&&(i=x(i));let{pathname:g="/",search:u="",hash:d="",state:h=null,key:y="default"}=i,S=e.useMemo((()=>{let t=z(g,c);return null==t?null:{location:{pathname:t,search:u,hash:d,state:h,key:y},navigationType:r}}),[c,g,u,d,h,y,r]);return null==S?null:e.createElement(Z.Provider,{value:m},e.createElement(V.Provider,{children:n,value:S}))}function kt(t){let{children:e,location:a}=t;return it(yt(e),a)}function yt(t,a){void 0===a&&(a=[]);let n=[];return e.Children.forEach(t,((t,i)=>{if(!e.isValidElement(t))return;let r=[...a,i];if(t.type===e.Fragment)return void n.push.apply(n,yt(t.props.children,r));t.type!==pt&&k(!1),t.props.index&&t.props.children&&k(!1);let s={id:t.props.id||r.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(s.children=yt(t.props.children,r)),n.push(s)})),n}e.startTransition,new Promise((()=>{})),e.Component;const St=window.ReactDOM;new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(t){}new Map;const ft=e.startTransition;function Et(t){let{basename:a,children:n,future:i,window:r}=t,s=e.useRef();null==s.current&&(s.current=function(t){return void 0===t&&(t={}),function(t,e,a,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:r=!1}=n,s=i.history,o=p.Pop,l=null,c=m();function m(){return(s.state||{idx:null}).idx}function g(){o=p.Pop;let t=m(),e=null==t?null:t-c;c=t,l&&l({action:o,location:y.location,delta:e})}function u(t){let e="null"!==i.location.origin?i.location.origin:i.location.href,a="string"==typeof t?t:E(t);return a=a.replace(/ $/,"%20"),k(e,"No window.location.(origin|href) available to create URL for href: "+a),new URL(a,e)}null==c&&(c=0,s.replaceState(d({},s.state,{idx:c}),""));let y={get action(){return o},get location(){return t(i,s)},listen(t){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(h,g),l=t,()=>{i.removeEventListener(h,g),l=null}},createHref:t=>e(i,t),createURL:u,encodeLocation(t){let e=u(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){o=p.Push;let n=f(y.location,t,e);a&&a(n,t),c=m()+1;let g=S(n,c),u=y.createHref(n);try{s.pushState(g,"",u)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;i.location.assign(u)}r&&l&&l({action:o,location:y.location,delta:1})},replace:function(t,e){o=p.Replace;let n=f(y.location,t,e);a&&a(n,t),c=m();let i=S(n,c),g=y.createHref(n);s.replaceState(i,"",g),r&&l&&l({action:o,location:y.location,delta:0})},go:t=>s.go(t)};return y}((function(t,e){let{pathname:a="/",search:n="",hash:i=""}=x(t.location.hash.substr(1));return a.startsWith("/")||a.startsWith(".")||(a="/"+a),f("",{pathname:a,search:n,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){let a=t.document.querySelector("base"),n="";if(a&&a.getAttribute("href")){let e=t.location.href,a=e.indexOf("#");n=-1===a?e:e.slice(0,a)}return n+"#"+("string"==typeof e?e:E(e))}),(function(t,e){y("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),t)}({window:r,v5Compat:!0}));let o=s.current,[l,c]=e.useState({action:o.action,location:o.location}),{v7_startTransition:m}=i||{},g=e.useCallback((t=>{m&&ft?ft((()=>c(t))):c(t)}),[c,m]);return e.useLayoutEffect((()=>o.listen(g)),[o,g]),e.createElement(ht,{basename:a,children:n,location:l.location,navigationType:l.action,navigator:o,future:i})}var xt,Nt;St.flushSync,e.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"}(xt||(xt={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(Nt||(Nt={}));const Mt=()=>{const{useSettings:t,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s}=(0,a.useContext)(g),o=nt();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"md:gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-16 gtmkit-mb-20"},(0,e.createElement)("div",{className:""},(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-w-full !gtmkit-px-8 "},(0,e.createElement)(n.TextControl,{label:(0,l.__)("Container ID","gtm-kit"),placeholder:(0,l.__)("Enter Container ID","gtm-kit"),value:t&&t.general.gtm_id,className:"gtmkit-text-center",onChange:t=>i("general","gtm_id",t)})),(0,e.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,e.createElement)(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:()=>{r(),o("/essential-settings",{replace:!0})},disabled:s||!t.general.gtm_id.includes("-")},(0,l.__)("Save and continue","gtm-kit"),s?(0,e.createElement)(n.Spinner,null):""))),(0,e.createElement)("div",{className:"gtmkit-mt-8 gtmkit-border gtmkit-p-6 gtmkit-text-left gtmkit-text-color-grey gtmkit-text-center"},(0,e.createElement)("h2",{className:"gtmkit-font-bold gtmkit-text-base gtmkit-mb-4"},"Need help?"),(0,e.createElement)("p",{className:"gtmkit-mb-6"},(0,l.__)("Find your GTM container ID on","gtm-kit"),(0,e.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-underline",href:"https://tagmanager.google.com/",target:"_blank",rel:"noreferrer"},"Google Tag Manager")),(0,e.createElement)("p",null,(0,l.__)("It should look something like this:","gtm-kit")," ","GTM-12ZM7SF4"))),(0,e.createElement)("div",{className:"gtmkit-mt-3 md:gtmkit-mt-10 gtmkit-text-color-grey gtmkit-text-base"},(0,e.createElement)("span",{className:"gtmkit-block"},(0,l.__)("No thanks. I know what I'm doing.","gtm-kit")),(0,e.createElement)("a",{className:"gtmkit-underline gtmkit-ml-4",href:window.gtmkitSettings.dashboardUrl},(0,l.__)("Go to the dashboard.","gtm-kit"))))},vt=()=>{const{useImportSettings:t,useIsPending:i,useInstallData:r}=(0,a.useContext)(g),[s,o]=(0,a.useState)(!0),c=Object.keys(r.import_data)[0],[m,u]=(0,a.useState)(c),d=[];return Object.keys(r.import_data).forEach((t=>{d.push({value:t,label:r.import_data[t].name})})),s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto gtmkit-border gtmkit-p-8 gtmkit-my-8"},(0,e.createElement)("h2",{className:"gtmkit-text-lg gtmkit-text-color-heading gtmkit-font-bold"},(0,l.__)("Would you like to import plugin settings?","gtm-kit")),(0,e.createElement)("p",{className:"gtmkit-text-base gtmkit-my-4 gtmkit-text-color-grey"},(0,l.__)("We have found the configuration of other plugins in the database.","gtm-kit")," ",(0,l.__)("Would you like to import your settings to GTM Kit?","gtm-kit")),(0,e.createElement)(n.RadioControl,{help:(0,l.__)("Select the plugin you want to import settings from.","gtm-kit"),selected:m,options:d,onChange:t=>u(t)}),(0,e.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,e.createElement)(n.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-6 !gtmkit-px-8 gtmkit-text-base",onClick:()=>{t(m,r.import_data[m]),o(!1)}},(0,e.createElement)("span",{className:"gtmkit-text-lg gtmkit-font-bold"},(0,l.__)("Yes","gtm-kit")),i?(0,e.createElement)(n.Spinner,null):""),(0,e.createElement)(n.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-6 !gtmkit-px-8 gtmkit-text-base",onClick:()=>{o(!1)}},(0,e.createElement)("span",{className:"gtmkit-text-lg gtmkit-font-bold"},(0,l.__)("No","gtm-kit")),i?(0,e.createElement)(n.Spinner,null):"")))):(0,e.createElement)(Mt,null)},wt=()=>{const{useInstallData:t}=(0,a.useContext)(g),{firstInstall:n}=t,{importAvailable:i}=t;return(0,e.createElement)("div",{className:"gtmkit-text-center"},(0,e.createElement)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading"},(0,l.__)("You've successfully installed GTM Kit!","gtm-kit")),(0,e.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey"},(0,l.__)("To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container.","gtm-kit"))),n&&i?(0,e.createElement)(vt,null):(0,e.createElement)(Mt,null))},_t=()=>{const{useSettings:t,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s,useInstallData:o}=(0,a.useContext)(g),c=nt();return(0,e.createElement)("div",{className:"gtmkit-text-center"},(0,e.createElement)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading"},(0,l.__)("Essential Settings","gtm-kit")),(0,e.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey"},(0,l.__)("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,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Page type","gtm-kit"),id:"page-type"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("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:()=>{i("general","datalayer_page_type",!(t&&t.general.datalayer_page_type))}}))),o.woocommerce_integration?(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Track WooCommerce","gtm-kit"),id:"track-wooCommerce"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("Would you like to track e-commerce data from WooCommerce?","gtm-kit"),checked:t&&t.integrations.woocommerce_integration,onChange:()=>{i("integrations","woocommerce_integration",!(t&&t.integrations.woocommerce_integration))}}))):null,o.cf7_integration?(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Track Contact Form 7","gtm-kit"),id:"track-cf7"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("Would you like to track form submissions from Contact Form 7?","gtm-kit"),checked:t&&t.integrations.cf7_integration,onChange:()=>{i("integrations","cf7_integration",!(t&&t.integrations.cf7_integration))}}))):null,o.edd_integration?(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap"},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Track Easy Digital Downloads","gtm-kit"),id:"track-edd"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("Would you like to track e-commerce data from Easy Digital Downloads?","gtm-kit"),checked:t&&t.integrations.edd_integration,onChange:()=>{i("integrations","edd_integration",!(t&&t.integrations.edd_integration))}}))):null,(0,e.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,e.createElement)(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:()=>{r(),c("/share-anonymous-data",{replace:!0})},disabled:s},(0,l.__)("Save and continue","gtm-kit"),s?(0,e.createElement)(n.Spinner,null):"")))},Tt=()=>{const{useSettings:t,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s,useSiteData:o}=(0,a.useContext)(g),c=nt();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h1",{className:"gtmkit-text-3xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading gtmkit-text-center"},(0,l.__)("Help improve GTM Kit","gtm-kit")),(0,e.createElement)("p",{className:"gtmkit-text-sm gtmkit-mb-4 gtmkit-text-color-grey"},(0,l.__)("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,e.createElement)("p",{className:"gtmkit-text-sm gtmkit-mb-8 gtmkit-text-color-grey"},(0,l.__)("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,e.createElement)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm"},(0,e.createElement)("tbody",null,(0,e.createElement)("tr",{className:""},(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Server type:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.web_server))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"PHP version number:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.php_version))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"WordPress version number:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.wordpress_version))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"WordPress multisite:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.multisite?(0,l.__)("Yes","gtm-kit"):(0,l.__)("No","gtm-kit")))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Current theme:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.current_theme))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Current site language:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.locale))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Active plugins:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("em",null,"Plugin names of all active plugins"))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Anonymized GTM Kit settings:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("em",null,"Which GTM Kit settings are active"))))),(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-max !gtmkit-px-8 gtmkit-mx-auto "},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Share anonymous data","gtm-kit"),id:"share-anonymous-data"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("I agree to share anonymous data with the development team to help improve GTM Kit. ","gtm-kit"),checked:t&&t.general.analytics_active,onChange:()=>{i("general","analytics_active",!(t&&t.general.analytics_active))}}))),(0,e.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,e.createElement)(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:()=>{r(),c("/getting-started",{replace:!0})},disabled:s},(0,l.__)("Save and continue","gtm-kit"),s?(0,e.createElement)(n.Spinner,null):"")))},bt=()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h1",{className:"gtmkit-text-3xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading gtmkit-text-center",children:(0,l.__)("You are ready to use GTM Kit!","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey gtmkit-text-center",children:(0,l.__)("Your Google Tag Manager Container is now sending data to Google Tag Manager.","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-text-base gtmkit-mb-12 gtmkit-text-color-grey gtmkit-text-center",children:[(0,l.__)("Below you will find GTM container import files, with all the necessary tags, trigger, and variables to use Google Analytics 4.","gtm-kit")," "]}),(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-max-w-lg gtmkit-mx-auto gtmkit-mb-8",children:[(0,m.jsx)("h3",{className:"gtmkit-p-3 gtmkit-font-bold gtmkit-text-xl gtmkit-border-b-2",children:(0,l.__)("Getting Started","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-text-base gtmkit-text-color-grey gtmkit-m-4",children:[(0,l.__)("The next step is to configure your Google Tag Manager container. You will find templates for this in the GTM Templates section.","gtm-kit")," ",(0,m.jsx)("a",{className:"gtmkit-text-color-primary gtmkit-whitespace-nowrap",href:window.gtmkitSettings.templatesUrl,rel:"noreferrer",children:(0,l.__)("Go to GTM Templates","gtm-kit")})]}),(0,m.jsxs)("p",{className:"gtmkit-text-base gtmkit-text-color-grey gtmkit-m-4",children:[(0,l.__)("To get the most out of Google Tag Manager with GTM Kit, you should also review the tutorials.","gtm-kit")," ",(0,m.jsx)("a",{className:"gtmkit-text-color-primary gtmkit-whitespace-nowrap",href:window.gtmkitSettings.helpUrl+"#/help",rel:"noreferrer",children:(0,l.__)("Go to Tutorials","gtm-kit")})]})]}),(0,m.jsx)("div",{className:"gtmkit-flex gtmkit-mt-12",children:(0,m.jsx)(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:()=>{window.location.href=window.gtmkitSettings.dashboardUrl},children:(0,l.__)("Go to the dashboard","gtm-kit")})})]}),Lt=[{step:1,path:"/welcome",element:"Welcome",title:(0,l.__)("Welcome","gtm-kit")},{step:2,path:"/essential-settings",element:"EssentialSettings",title:(0,l.__)("Essential Settings","gtm-kit")},{step:3,path:"/share-anonymous-data",element:"ShareAnonymousData",title:(0,l.__)("Help improve GTM Kit","gtm-kit")},{step:4,path:"/getting-started",element:"GettingStarted",title:(0,l.__)("Getting Started","gtm-kit")}],jt=({step:t,currentStep:a,totalSteps:n})=>{if(t===n)return;let i="gtmkit-h-0.5 gtmkit-w-full";return i+=t<a?" gtmkit-bg-color-primary":" gtmkit-bg-color-border",(0,e.createElement)("div",{className:i})},Dt=({step:t,currentStep:a})=>t<a?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"gtmkit-w-5 gtmkit-h-5 gtmkit-text-white"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})):t===a?(0,e.createElement)("span",{className:"gtmkit-h-2.5 gtmkit-w-2.5 gtmkit-rounded-full gtmkit-bg-color-primary"}):void 0,It=({step:t,currentStep:a,totalSteps:n})=>{if(0===t)return;let i="gtmkit-transition-opacity gtmkit-duration-500 gtmkit-absolute gtmkit-inset-0 gtmkit-border-2 gtmkit-flex gtmkit-items-center gtmkit-justify-center gtmkit-rounded-full gtmkit-opacity-100";return i+=t<a?" gtmkit-bg-color-primary":" gtmkit-bg-white",i+=t>a?" gtmkit-border-color-border":" gtmkit-border-color-primary",(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"gtmkit-relative gtmkit-shrink-0 gtmkit-z-10 gtmkit-w-8 gtmkit-h-8 gtmkit-rounded-full"},(0,e.createElement)("span",{className:i},(0,e.createElement)(Dt,{step:t,currentStep:a,totalSteps:n}))),(0,e.createElement)(jt,{step:t,currentStep:a,totalSteps:n}))},Ct=()=>{const t=Lt.length-1+Lt[0].step;let a=((t,e)=>{const a=Object.keys(e);return t.filter((function(t){for(let n=0;n<a.length;n++)if(!t.hasOwnProperty(a[n])||t[a[n]]!==e[a[n]])return!1;return!0}))})(Lt,{path:et().pathname});return a=a.length?a[0].step:0,0===a?(0,e.createElement)("div",{className:"gtmkit-my-16"}):(0,e.createElement)("div",{className:"gtmkit-mt-6 gtmkit-inset-0 gtmkit-mx-auto gtmkit-my-6 gtmkit-flex gtmkit-items-center gtmkit-max-w-xl","aria-hidden":"true"},Lt.map((function(n){return(0,e.createElement)(It,{key:n.step,step:n.step,currentStep:a,totalSteps:t})})))},Ot=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("header",{className:"gtmkit-text-center gtmkit-px-3"},(0,e.createElement)("h1",{className:"gtmkit-mt-3 md:gtmkit-mt-8 gtmkit-mb-4 gtmkit-w-[225px] gtmkit-inline-block"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNDY3LjEgMTU4Ni40IiBoZWlnaHQ9IjU0IiB2aWV3Qm94PSIwIDAgMTYwIDU0IiB3aWR0aD0iMTYwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IGZpbGw9IiM4ODgiIGhlaWdodD0iNTQiIHJ4PSI0LjI2NSIgd2lkdGg9IjE2MCIvPjxwYXRoIGQ9Im04OC42NTkgNy4wMDJoLTQ5LjI2NmMtMi45MTUgMC01LjM3OC0uMTg0LTkuMjMgMi41OTZsLTE4Ljc0MyAxMi43NTJjLTQuNTQ5IDMuMjkyLTQuNTcxIDYuMDAxIDAgOS4zMDJsMTguNzQzIDEyLjc1MWMzLjY1MiAyLjY0NiA2LjI5OSAyLjU5NyA5LjIzIDIuNTk3aDE1LjY4NiAzMy41OGMyLjkzMS0uMDU3IDUuMzk0LTEuNzg0IDUuMzQtMy45MjN2LTMyLjIxYy0uMDEyLTIuMTM0LTIuNDA5LTMuODY1LTUuMzQtMy44NjV6IiBmaWxsPSIjMzk2OWJiIiB0cmFuc2Zvcm09Im1hdHJpeCgtMSAwIDAgLTEgMTAxLjk5OTg2NyA1My45OTk1NDcpIi8+PGcgZmlsbD0iI2ZmZiIgdHJhbnNmb3JtPSJtYXRyaXgoMS40NjUyMDIgMCAwIDEuNDY1MjAyIC00LjU4MjQzNiAtNy41NTMxMjYpIj48cGF0aCBkPSJtMTguMzE2IDIzLjA4Nmg0LjYzMnY2LjA1MmMtLjc1LjI0NS0xLjQ1OS40MTUtMi4xMjEuNTE0LS42NjMuMDk4LTEuMzQxLjE0OC0yLjAzMy4xNDgtMS43NjQgMC0zLjEwNi0uNTE3LTQuMDM1LTEuNTU0LS45MjktMS4wMzQtMS4zOTUtMi41MTktMS4zOTUtNC40NTcgMC0xLjg4Ni41MzgtMy4zNTYgMS42MTctNC40MSAxLjA3OC0xLjA1NCAyLjU3My0xLjU3OSA0LjQ4MS0xLjU3OSAxLjIgMCAyLjM1Ny4yMzkgMy40NjkuNzE4bC0uODIzIDEuOTc5Yy0uODUtLjQyNS0xLjczNy0uNjM3LTIuNjU3LS42MzctMS4wNzEgMC0xLjkzMi4zNTgtMi41NzIgMS4wNzctLjY0NS43MTgtLjk2OCAxLjY4NS0uOTY4IDIuODk5IDAgMS4yNjcuMjYgMi4yMzMuNzggMi45MDQuNTE2LjY2NyAxLjI3MS45OTkgMi4yNjIuOTk5LjUxNyAwIDEuMDQxLS4wNTIgMS41NzItLjE1OHYtMi40MzVoLTIuMjA5em0xMS45MTIgNi41NTVoLTIuNDc0di05LjYxNGgtMy4xNzN2LTIuMDZoOC44MTZ2Mi4wNmgtMy4xNjl6bTkuOTA4IDAtMi44MTEtOS4xNThoLS4wNzJjLjEwMyAxLjg2My4xNTQgMy4xMDUuMTU0IDMuNzI4djUuNDNoLTIuMjEzdi0xMS42NzRoMy4zNjhsMi43NjQgOC45MjdoLjA0OGwyLjkzNC04LjkyN2gzLjM2OXYxMS42NzRoLTIuMzA4di01LjUyNWMwLS4yNjEgMC0uNTYxLjAwOS0uOTAzLjAwOS0uMzQxLjA0OC0xLjI0Ni4xMTItMi43MTZoLS4wNzRsLTMuMDExIDkuMTQ0eiIvPjxwYXRoIGQ9Im04OC44ODMgMzEuODk4aC0zLjgxMWwtNC4xNDctNi42Ny0xLjQxNyAxLjAxOHY1LjY1MmgtMy4zNTd2LTE1LjgzaDMuMzU3djcuMjQybDEuMzE4LTEuODYxIDQuMjkzLTUuMzgxaDMuNzI0bC01LjUyMyA3LjAwNnptMS41ODktMTUuMjMzYzAtMS4wNzUuNi0xLjYxNCAxLjgtMS42MTQgMS4xOTkgMCAxLjc5OC41MzkgMS43OTggMS42MTQgMCAuNTEyLS4xNDguOTEtLjQ1IDEuMTk2LS4yOTcuMjg0LS43NDkuNDI5LTEuMzQ4LjQyOS0xLjIgMC0xLjgtLjU0My0xLjgtMS42MjV6bTMuNDQ5IDE1LjIzM2gtMy4zMDJ2LTEyLjEwNGgzLjMwMnptOC41NjMtMi40MTNjLjU3OCAwIDEuMjcxLS4xMjggMi4wNzctLjM4djIuNDU2Yy0uODIuMzctMS44MzEuNTUyLTMuMDMxLjU1Mi0xLjMyNCAwLTIuMjgtLjMzMy0yLjg4NS0xLjAwMS0uNjAyLS42NjctLjkwMi0xLjY2OC0uOTAyLTMuMDAzdi01LjgzNWgtMS41ODV2LTEuMzk5bDEuODIzLTEuMTAzLjk0OS0yLjU1N2gyLjExNXYyLjU3OWgzLjM4OHYyLjQ4aC0zLjM4OHY1LjgzNWMwIC40NjcuMTI5LjgxNS4zOTMgMS4wNDEuMjY0LjIyMi42MTQuMzM1IDEuMDQ2LjMzNXoiLz48L2c+PC9zdmc+",alt:(0,l.__)("GTM Kit","gtm-kit"),className:"gtmkit-w-full"}))),(0,e.createElement)(Ct,null)),Ut=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("footer",{className:"gtm-kit-settings-footer gtmkit-my-8 gtmkit-text-color-grey"},(0,e.createElement)("p",{className:"gtmkit-mx-auto gtmkit-max-w-max"},(0,e.createElement)("a",{className:"gtmkit-underline",href:window.gtmkitSettings.dashboardUrl},(0,l.__)("Go to the dashboard.","gtm-kit"))))),At=()=>{const{useSettings:t}=(0,a.useContext)(g);return Object.keys(t).length?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ot,null),(0,e.createElement)("main",{className:"gtmkit-max-w-3xl gtmkit-bg-white gtmkit-border-1 gtmkit-border-color-border gtmkit-rounded-md gtmkit-mx-auto gtmkit-py-12 gtmkit-px-16 gtmkit-text-base"},(0,e.createElement)(kt,null,(0,e.createElement)(pt,{exact:!0,path:"/welcome",element:(0,e.createElement)(wt,null)}),(0,e.createElement)(pt,{exact:!0,path:"/essential-settings",element:(0,e.createElement)(_t,null)}),(0,e.createElement)(pt,{exact:!0,path:"/share-anonymous-data",element:(0,e.createElement)(Tt,null)}),(0,e.createElement)(pt,{exact:!0,path:"/getting-started",element:(0,e.createElement)(bt,null)}),(0,e.createElement)(pt,{path:"/",element:(0,e.createElement)(dt,{replace:!0,to:"/welcome"})}))),(0,e.createElement)(Ut,null)):(0,e.createElement)(n.Spinner,{className:"gtm-kit-settings-page-loader"})},zt=()=>(0,e.createElement)(Et,{basename:"/"},(0,e.createElement)(u,null,(0,e.createElement)(At,null)));document.addEventListener("DOMContentLoaded",(()=>{void 0!==document.getElementById(window.gtmkitSettings.rootId)&&null!==document.getElementById(window.gtmkitSettings.rootId)&&(0,a.render)((0,e.createElement)(zt,null),document.getElementById(window.gtmkitSettings.rootId))}))})();
  • gtm-kit/tags/2.0/assets/integration/woocommerce.js

    r3055017 r3149785  
    1 function gtmkitLoad(){const a=window.gtmkit_settings.datalayer_name;let n;const d={"wp-block-handpicked-products":1,"wp-block-product-best-sellers":1,"wp-block-product-category":1,"wp-block-product-new":1,"wp-block-product-on-sale":1,"wp-block-products-by-attribute":1,"wp-block-product-tag":1,"wp-block-product-top-rated":1};document.querySelectorAll(".wc-block-grid .wc-block-grid__product").forEach(function(t){var e=t.closest(".wc-block-grid"),i=t.querySelector(".gtmkit_product_data");if(e&&i){var r,c=e.classList;if(c)for(const o in d)c.contains(o)&&((r=JSON.parse(i.getAttribute("data-gtmkit_product_data"))).item_list_name=window.gtmkit_settings.wc.text[o],r.index=d[o],i.setAttribute("data-gtmkit_product_data",JSON.stringify(r)),d[o]++)}});var t=document.querySelectorAll(".gtmkit_product_data");if(t.length){const i=[];let e;t.forEach(function(t){e=JSON.parse(t.getAttribute("data-gtmkit_product_data")),i.push(e)}),window[a].push({ecommerce:null}),window[a].push({event:"view_item_list",ecommerce:{items:i}})}document.addEventListener("click",function(t){t=t.target;let e;if(!t)return!0;if(t.closest(".add_to_cart_button.ajax_add_to_cart:not(.single_add_to_cart_button)"))e="add_to_cart";else{if(!t.closest(".products")&&!t.closest(".wc-block-grid__products")||!t.closest(window.gtmkit_settings.wc.css_selectors.product_list_wishlist))return!0;e="add_to_wishlist"}t=t.closest(".product,.wc-block-grid__product"),t=t&&t.querySelector(".gtmkit_product_data");if(!t)return!0;t=JSON.parse(t.getAttribute("data-gtmkit_product_data"));t.quantity=1,window[a].push({ecommerce:null}),window[a].push({event:e,ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price,items:[t]}})}),document.addEventListener("click",function(r){r=r.target;if(!r)return!0;let c,i=r.closest("form.cart");if(!i){let t=r.parentNode;for(;!i&&t;)i=t.querySelector("form.cart"),t=t.parentNode}if(!i)return!0;if(r.closest(".single_add_to_cart_button:not(.disabled,.input-needed)"))c="add_to_cart";else{if(!r.closest(window.gtmkit_settings.wc.css_selectors.single_product_wishlist))return!0;c="add_to_wishlist"}var r=i.querySelectorAll("[name=variation_id]"),t=i.classList&&i.classList.contains("grouped_form")&&!i.classList.contains("bundle_form");if(r.length){let t=1,e;n&&(r=i.querySelector("[name=quantity]"),n.quantity=r&&r.value||1,t=n.quantity,e=n.price),(n&&"add_to_cart"===c||"add_to_wishlist"===c)&&(window[a].push({ecommerce:null}),window[a].push({event:c,ecommerce:{currency:window.gtmkit_data.wc.currency,value:e*t,items:[n]}}))}else if(t){r=document.querySelectorAll(".grouped_form .gtmkit_product_data");const o=[];let i=0;if(r.forEach(function(t){let e=document.querySelectorAll("input[name=quantity\\["+t.getAttribute("data-gtmkit_product_id")+"\\]]");if(e=Number(e[0].value),0===(e=isNaN(e)?0:e)&&"add_to_cart"===c)return!0;0===e&&"add_to_wishlist"===c&&(e=1);t=JSON.parse(t.getAttribute("data-gtmkit_product_data"));t.quantity=e,o.push(t),i+=t.price*t.quantity}),0===o.length)return!0;window[a].push({ecommerce:null}),window[a].push({event:c,ecommerce:{currency:window.gtmkit_data.wc.currency,value:i,items:o}})}else{t=JSON.parse(i.querySelector("[name=gtmkit_product_data]")&&i.querySelector("[name=gtmkit_product_data]").value);t.quantity=i.querySelector("[name=quantity]")&&i.querySelector("[name=quantity]").value,window[a].push({ecommerce:null}),window[a].push({event:c,ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price*t.quantity,items:[t]}})}}),document.addEventListener("click",function(t){var t=t.target;return!t||!t.closest(".mini_cart_item a.remove,.product-remove a.remove")||!(t=JSON.parse(t.getAttribute("data-gtmkit_product_data")))||(window[a].push({ecommerce:null}),void window[a].push({event:"remove_from_cart",ecommerce:{items:[t]}}))}),document.addEventListener("click",function(t){t=t.target;if(!t.closest(window.gtmkit_settings.wc.css_selectors.product_list_select_item))return!0;var t=t.closest(".product,.wc-block-grid__product");let e;return!t||!(e=t.querySelector(".gtmkit_product_data"))||void 0===e.getAttribute("data-gtmkit_product_data")||!(t=JSON.parse(e.getAttribute("data-gtmkit_product_data")))||(window[a].push({ecommerce:null}),void window[a].push({event:"select_item",ecommerce:{items:[t]}}))}),jQuery(document).on("found_variation",function(t,e){if(void 0!==e){t=t.target;if(t.querySelector("[name=gtmkit_product_data]")){var t=JSON.parse(t.querySelector("[name=gtmkit_product_data]")&&t.querySelector("[name=gtmkit_product_data]").value),i=(t.id=t.item_id=window.gtmkit_settings.wc.pid_prefix+e.variation_id,window.gtmkit_settings.wc.use_sku&&e.sku&&""!==e.sku&&(t.id=t.item_id=window.gtmkit_settings.wc.pid_prefix+e.sku),t.price=e.display_price,[]);for(const r in e.attributes)i.push(e.attributes[r]);t.item_variant=i.filter(t=>t).join("|"),n=t,0!==window.gtmkit_settings.wc.view_item.config&&(window[a].push({ecommerce:null}),window[a].push({event:"view_item",ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price,items:[t]}})),!0===window.gtmkit_settings.console_log&&(console.log("GTM Kit: selectedProductVariationData"),console.log(n))}}})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",gtmkitLoad):gtmkitLoad();
     1function gtmkitLoad(){const n=window.gtmkit_settings.datalayer_name;let a;const d={"wp-block-handpicked-products":1,"wp-block-product-best-sellers":1,"wp-block-product-category":1,"wp-block-product-new":1,"wp-block-product-on-sale":1,"wp-block-products-by-attribute":1,"wp-block-product-tag":1,"wp-block-product-top-rated":1};document.querySelectorAll(".wc-block-grid .wc-block-grid__product").forEach(function(t){var e=t.closest(".wc-block-grid"),i=t.querySelector(".gtmkit_product_data");if(e&&i){var c,r=e.classList;if(r)for(const o in d)r.contains(o)&&((c=JSON.parse(i.getAttribute("data-gtmkit_product_data"))).item_list_name=window.gtmkit_settings.wc.text[o],c.index=d[o],i.setAttribute("data-gtmkit_product_data",JSON.stringify(c)),d[o]++)}});var t=document.querySelectorAll(".gtmkit_product_data");if(t.length){const i=[];let e;t.forEach(function(t){e=JSON.parse(t.getAttribute("data-gtmkit_product_data")),i.push(e)}),window[n].push({ecommerce:null}),window[n].push({event:"view_item_list",ecommerce:{items:i}})}document.addEventListener("click",function(t){t=t.target;let e;if(!t)return!0;if(t.closest(".add_to_cart_button.ajax_add_to_cart:not(.single_add_to_cart_button)"))e="add_to_cart";else{if(!window.gtmkit_settings.wc.wishlist||!t.closest(".products")&&!t.closest(".wc-block-grid__products")||!t.closest(window.gtmkit_settings.wc.css_selectors.product_list_wishlist))return!0;e="add_to_wishlist"}t=t.closest(".product,.wc-block-grid__product"),t=t&&t.querySelector(".gtmkit_product_data");if(!t)return!0;t=JSON.parse(t.getAttribute("data-gtmkit_product_data"));t.quantity=1,window[n].push({ecommerce:null}),window[n].push({event:e,ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price,items:[t]}})}),document.addEventListener("click",function(c){c=c.target;if(!c)return!0;let r,i=c.closest("form.cart");if(!i){let t=c.parentNode;for(;!i&&t;)i=t.querySelector("form.cart"),t=t.parentNode}if(!i)return!0;if(c.closest(".single_add_to_cart_button:not(.disabled,.input-needed)"))r="add_to_cart";else{if(!window.gtmkit_settings.wc.wishlist||!c.closest(window.gtmkit_settings.wc.css_selectors.single_product_wishlist))return!0;r="add_to_wishlist"}var c=i.querySelectorAll("[name=variation_id]"),t=i.classList&&i.classList.contains("grouped_form")&&!i.classList.contains("bundle_form");if(c.length){let t=1,e;a&&(c=i.querySelector("[name=quantity]"),a.quantity=c&&c.value||1,t=a.quantity,e=a.price),(a&&"add_to_cart"===r||"add_to_wishlist"===r)&&(window[n].push({ecommerce:null}),window[n].push({event:r,ecommerce:{currency:window.gtmkit_data.wc.currency,value:e*t,items:[a]}}))}else if(t){c=document.querySelectorAll(".grouped_form .gtmkit_product_data");const o=[];let i=0;if(c.forEach(function(t){let e=document.querySelectorAll("input[name=quantity\\["+t.getAttribute("data-gtmkit_product_id")+"\\]]");if(e=Number(e[0].value),0===(e=isNaN(e)?0:e)&&"add_to_cart"===r)return!0;0===e&&"add_to_wishlist"===r&&(e=1);t=JSON.parse(t.getAttribute("data-gtmkit_product_data"));t.quantity=e,o.push(t),i+=t.price*t.quantity}),0===o.length)return!0;window[n].push({ecommerce:null}),window[n].push({event:r,ecommerce:{currency:window.gtmkit_data.wc.currency,value:i,items:o}})}else{t=JSON.parse(i.querySelector("[name=gtmkit_product_data]")&&i.querySelector("[name=gtmkit_product_data]").value);t.quantity=i.querySelector("[name=quantity]")&&i.querySelector("[name=quantity]").value,window[n].push({ecommerce:null}),window[n].push({event:r,ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price*t.quantity,items:[t]}})}}),document.addEventListener("click",function(t){var t=t.target;return!t||!t.closest(".mini_cart_item a.remove,.product-remove a.remove")||!(t=JSON.parse(t.getAttribute("data-gtmkit_product_data")))||(window[n].push({ecommerce:null}),void window[n].push({event:"remove_from_cart",ecommerce:{items:[t]}}))}),document.addEventListener("click",function(t){t=t.target;if(!t.closest(window.gtmkit_settings.wc.css_selectors.product_list_select_item))return!0;var t=t.closest(".product,.wc-block-grid__product");let e;return!t||!(e=t.querySelector(".gtmkit_product_data"))||void 0===e.getAttribute("data-gtmkit_product_data")||!(t=JSON.parse(e.getAttribute("data-gtmkit_product_data")))||(window[n].push({ecommerce:null}),void window[n].push({event:"select_item",ecommerce:{items:[t]}}))}),jQuery(document).on("found_variation",function(t,e){if(void 0!==e){t=t.target;if(t.querySelector("[name=gtmkit_product_data]")){var t=JSON.parse(t.querySelector("[name=gtmkit_product_data]")&&t.querySelector("[name=gtmkit_product_data]").value),i=(t.id=t.item_id=window.gtmkit_settings.wc.pid_prefix+e.variation_id,window.gtmkit_settings.wc.use_sku&&e.sku&&""!==e.sku&&(t.id=t.item_id=window.gtmkit_settings.wc.pid_prefix+e.sku),t.price=e.display_price,[]);for(const c in e.attributes)i.push(e.attributes[c]);t.item_variant=i.filter(t=>t).join("|"),a=t,0!==window.gtmkit_settings.wc.view_item.config&&(window[n].push({ecommerce:null}),window[n].push({event:"view_item",ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price,items:[t]}})),!0===window.gtmkit_settings.console_log&&(console.log("GTM Kit: selectedProductVariationData"),console.log(a))}}})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",gtmkitLoad):gtmkitLoad();
  • gtm-kit/tags/2.0/gtm-kit.php

    r3139454 r3149785  
    44 *
    55 * Plugin Name: GTM Kit
    6  * Version:     1.23.3
     6 * Version:     2.0.0
    77 * Plugin URI:  https://gtmkit.com/
    88 * Description: Google Tag Manager implementation focusing on flexibility and pagespeed.
     
    1212 * Domain Path: /languages/
    1313 * License:     GPLv3
    14  * Requires at least: 6.2
    15  * Requires PHP: 7.2
     14 * Requires at least: 6.3
     15 * Requires PHP: 7.4
    1616 *
    17  * WC requires at least: 8.2
    18  * WC tested up to: 9.2
     17 * WC requires at least: 8.3
     18 * WC tested up to: 9.3
    1919 *
    2020 * @package GTM Kit
     
    2828}
    2929
    30 const GTMKIT_VERSION = '1.23.3';
     30const GTMKIT_VERSION = '2.0.0';
    3131
    3232if ( ! defined( 'GTMKIT_FILE' ) ) {
  • gtm-kit/tags/2.0/inc/main.php

    r3094947 r3149785  
    1515use TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage;
    1616use TLA_Media\GTM_Kit\Admin\MetaBox;
     17use TLA_Media\GTM_Kit\Admin\NotificationsHandler;
     18use TLA_Media\GTM_Kit\Admin\PluginAvailability;
    1719use TLA_Media\GTM_Kit\Admin\SetupWizard;
     20use TLA_Media\GTM_Kit\Admin\PluginSuggestions;
    1821use TLA_Media\GTM_Kit\Admin\TemplatesOptionsPage;
     22use TLA_Media\GTM_Kit\Common\Conditionals\ContactForm7Conditional;
     23use TLA_Media\GTM_Kit\Common\Conditionals\EasyDigitalDownloadsConditional;
     24use TLA_Media\GTM_Kit\Common\Conditionals\PremiumConditional;
     25use TLA_Media\GTM_Kit\Common\Conditionals\WooCommerceConditional;
    1926use TLA_Media\GTM_Kit\Common\RestAPIServer;
    2027use TLA_Media\GTM_Kit\Common\Util;
     
    2835use TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads;
    2936use TLA_Media\GTM_Kit\Integration\WooCommerce;
     37use TLA_Media\GTM_Kit\Admin\UpgradesOptionsPage;
    3038
    3139
     
    6169
    6270    wp_clear_scheduled_hook( 'gtmkit_send_anonymous_data' );
     71
     72    do_action( 'gtmkit_deactivate' );
    6373}
    6474
     
    6878 * Add plugin action links on Plugins page.
    6979 *
    70  * @param array $links Existing plugin action links.
    71  *
    72  * @return array
     80 * @param array<string, string> $links Existing plugin action links.
     81 *
     82 * @return array<string, string>
    7383 */
    7484function gtmkit_add_plugin_action_link( array $links ): array {
     
    8898 * Remove deactivation link.
    8999 *
    90  * @param array $links Existing plugin action links.
    91  *
    92  * @return array
     100 * @param array<string, string> $links Existing plugin action links.
     101 *
     102 * @return array<string, string>
    93103 */
    94104function gtmkit_remove_deactivation_link( array $links ): array {
     
    127137        UserData::register( $options );
    128138
    129         if ( $options->get( 'integrations', 'woocommerce_integration' ) && function_exists( 'WC' ) ) {
     139        if ( $options->get( 'integrations', 'woocommerce_integration' ) && ( new WooCommerceConditional() )->is_met() ) {
    130140            WooCommerce::register( $options, $util );
    131141        }
    132         if ( $options->get( 'integrations', 'cf7_integration' ) && class_exists( 'WPCF7' ) ) {
     142        if ( $options->get( 'integrations', 'cf7_integration' ) && ( new ContactForm7Conditional() )->is_met() ) {
    133143            ContactForm7::register( $options, $util );
    134144        }
    135         if ( $options->get( 'integrations', 'edd_integration' ) && class_exists( 'EDD_Requirements_Check' ) ) {
     145        if ( $options->get( 'integrations', 'edd_integration' ) && ( new EasyDigitalDownloadsConditional() )->is_met() ) {
    136146            EasyDigitalDownloads::register( $options, $util );
    137147        }
     
    161171    }
    162172
    163     $options         = new Options();
    164     $rest_api_server = new RestAPIServer();
    165     $util            = new Util( $options, $rest_api_server );
    166 
     173    $options             = new Options();
     174    $rest_api_server     = new RestAPIServer();
     175    $util                = new Util( $options, $rest_api_server );
     176    $plugin_availability = new PluginAvailability();
     177
     178    $notifications_handler = NotificationsHandler::get();
     179
     180    PluginSuggestions::register( $notifications_handler, $plugin_availability );
    167181    Analytics::register( $options, $util );
    168182    MetaBox::register( $options );
     
    170184    GeneralOptionsPage::register( $options, $util );
    171185    IntegrationsOptionsPage::register( $options, $util );
    172     if ( ! $util->is_premium() ) {
     186    if ( ! ( new PremiumConditional() )->is_met() ) {
    173187        TemplatesOptionsPage::register( $options, $util );
    174188    } else {
    175189        add_filter( 'plugin_action_links_' . plugin_basename( GTMKIT_FILE ), 'TLA_Media\GTM_Kit\gtmkit_remove_deactivation_link', 11, 1 );
    176190    }
     191    UpgradesOptionsPage::register( $options, $util );
    177192    HelpOptionsPage::register( $options, $util );
    178193
  • gtm-kit/tags/2.0/languages/gtm-kit.pot

    r3139454 r3149785  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: GTM Kit 1.23.3\n"
     5"Project-Id-Version: GTM Kit 2.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gtm-kit\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-08-21T11:23:44+00:00\n"
     12"POT-Creation-Date: 2024-09-03T15:14:34+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.9.0\n"
     
    3131msgstr ""
    3232
    33 #: inc/main.php:80
     33#: inc/main.php:89
    3434msgid "Go to GTM Kit Settings page"
    3535msgstr ""
    3636
    37 #: inc/main.php:81
    38 #: assets/admin/settings.js:13
     37#: inc/main.php:90
     38#: assets/admin/settings.js:15
    3939msgid "Settings"
    4040msgstr ""
    4141
    4242#. translators: %s is GTM Kit Add-On.
    43 #: inc/main.php:99
     43#: inc/main.php:108
    4444msgid "Required by %s"
    4545msgstr ""
     
    6161msgstr ""
    6262
    63 #: src/Admin/AdminAPI.php:88
     63#: src/Admin/AdminAPI.php:96
    6464#: src/Common/RestAPIServer.php:33
    6565msgid "Only authenticated users can access endpoint."
    6666msgstr ""
    6767
    68 #: src/Admin/AdminAPI.php:134
    69 #: src/Admin/AdminAPI.php:139
     68#: src/Admin/AdminAPI.php:142
     69#: src/Admin/AdminAPI.php:147
    7070msgid "The support ticket was not found. Please check that you have entered the correct ticket."
    7171msgstr ""
    7272
    73 #: src/Admin/AdminAPI.php:136
     73#: src/Admin/AdminAPI.php:144
    7474msgid "Thank you! We have received the data."
    7575msgstr ""
    7676
    77 #: src/Admin/GeneralOptionsPage.php:67
     77#: src/Admin/GeneralOptionsPage.php:83
    7878#: assets/admin/settings.js:1
    7979msgid "General"
    8080msgstr ""
    8181
    82 #: src/Admin/GeneralOptionsPage.php:76
     82#: src/Admin/GeneralOptionsPage.php:92
    8383msgid "General Settings"
    8484msgstr ""
     
    8787#: src/Admin/HelpOptionsPage.php:53
    8888#: assets/admin/settings.js:13
     89#: assets/admin/settings.js:15
    8990msgid "Help"
    9091msgstr ""
     
    102103msgstr ""
    103104
    104 #: src/Admin/IntegrationsOptionsPage.php:44
    105 #: src/Admin/IntegrationsOptionsPage.php:53
    106 #: assets/admin/settings.js:1
    107 #: assets/admin/settings.js:13
     105#: src/Admin/IntegrationsOptionsPage.php:46
     106#: src/Admin/IntegrationsOptionsPage.php:55
     107#: assets/admin/settings.js:1
     108#: assets/admin/settings.js:15
    108109msgid "Integrations"
    109110msgstr ""
     
    122123#: src/Admin/MetaBox.php:95
    123124msgid "%1$sNote:%2$s This will only be applied if page type has been activated in the global settings of GTM Kit."
     125msgstr ""
     126
     127#: src/Admin/PluginSuggestions.php:121
     128msgid "It appears that you are not currently using a supported SEO plugin. By installing either WordPress SEO or Rank Math, you can assign a primary category to each product. This primary category will then be used in the data layer if the product is associated with multiple categories."
     129msgstr ""
     130
     131#: src/Admin/PluginSuggestions.php:126
     132msgid "Plugin suggestion:"
     133msgstr ""
     134
     135#. translators: %s is the name of the plugin.
     136#: src/Admin/PluginSuggestions.php:144
     137msgid "It seems that you have installed the Google Tag Manager plugin called %1$s. Running two different GTM plugins simultaneously can lead to unexpected results, significantly impact data accuracy, and slow down page speed. Please consider deactivating %2$s unless you have carefully considered and addressed the potential challenges."
     138msgstr ""
     139
     140#: src/Admin/PluginSuggestions.php:152
     141msgid "Possible Conflict:"
    124142msgstr ""
    125143
     
    236254msgstr ""
    237255
    238 #: src/Integration/WooCommerce.php:1129
     256#: src/Integration/WooCommerce.php:1128
    239257msgid "GTM Kit data."
    240258msgstr ""
     
    307325
    308326#: assets/admin/settings.js:1
    309 msgid "Server-side GTM"
     327#: assets/admin/settings.js:15
     328msgid "Notifications"
     329msgstr ""
     330
     331#: assets/admin/settings.js:1
     332msgid "There are some problems that require your attention."
     333msgstr ""
     334
     335#: assets/admin/settings.js:1
     336msgid "There are some notifications that may require your attention."
     337msgstr ""
     338
     339#: assets/admin/settings.js:1
     340#: assets/admin/settings.js:15
     341msgid "No notifications at the moment."
     342msgstr ""
     343
     344#: assets/admin/settings.js:1
     345msgid "See all notifications"
     346msgstr ""
     347
     348#: assets/admin/settings.js:1
     349#: assets/admin/wizard.js:1
     350msgid "Help improve GTM Kit"
     351msgstr ""
     352
     353#: assets/admin/settings.js:1
     354msgid "Share anonymous data with the development team to help improve GTM Kit."
     355msgstr ""
     356
     357#: assets/admin/settings.js:1
     358#: assets/admin/wizard.js:1
     359msgid "Share anonymous data"
     360msgstr ""
     361
     362#: assets/admin/settings.js:1
     363#: assets/admin/settings.js:13
     364msgid "Tutorials"
     365msgstr ""
     366
     367#: assets/admin/settings.js:1
     368msgid "Google Tag Manager container"
     369msgstr ""
     370
     371#: assets/admin/settings.js:1
     372msgid "General Container Settings"
     373msgstr ""
     374
     375#: assets/admin/settings.js:1
     376#: assets/admin/wizard.js:1
     377msgid "To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container."
     378msgstr ""
     379
     380#: assets/admin/settings.js:1
     381msgid "GTM Container ID:"
     382msgstr ""
     383
     384#: assets/admin/settings.js:1
     385msgid "Enter GTM Container ID"
     386msgstr ""
     387
     388#: assets/admin/settings.js:1
     389msgid "Inject Container Code"
     390msgstr ""
     391
     392#: assets/admin/settings.js:1
     393msgid "Setting this to Off will remove the Google Tag Manager container code but the data layer will remain."
     394msgstr ""
     395
     396#: assets/admin/settings.js:1
     397msgid "Just the container"
     398msgstr ""
     399
     400#: assets/admin/settings.js:1
     401msgid "Setting this to On will reduce the functionality to just the GTM container code. No additional data will be pushed to the datalayer regardless of any other settings."
     402msgstr ""
     403
     404#: assets/admin/settings.js:1
     405msgid "dataLayer variable name:"
     406msgstr ""
     407
     408#: assets/admin/settings.js:1
     409msgid "The default name of the data layer object is dataLayer. If you prefer to use a different name for your data layer, you may do so."
     410msgstr ""
     411
     412#: assets/admin/settings.js:1
     413msgid "Server-side Tagging (sGTM)"
     414msgstr ""
     415
     416#: assets/admin/settings.js:1
     417msgid "sGTM Container Domain:"
     418msgstr ""
     419
     420#: assets/admin/settings.js:1
     421msgid "Enter domain"
     422msgstr ""
     423
     424#: assets/admin/settings.js:1
     425msgid "Enter your custom domain name if you are using a custom server side GTM container for tracking."
     426msgstr ""
     427
     428#: assets/admin/settings.js:1
     429msgid "sGTM container identifier:"
     430msgstr ""
     431
     432#: assets/admin/settings.js:1
     433msgid "Enter loader name"
     434msgstr ""
     435
     436#: assets/admin/settings.js:1
     437msgid "Only use if you are using a custom loader."
     438msgstr ""
     439
     440#: assets/admin/settings.js:1
     441msgid "Cookie Keeper (for Stape users only)"
     442msgstr ""
     443
     444#: assets/admin/settings.js:1
     445msgid "Prolong cookie lifetime in Safari and other browsers with ITP. This only works if you use Stape sGTM hosting and have set up the Cookie Keeper power up."
     446msgstr ""
     447
     448#: assets/admin/settings.js:1
     449msgid "Google Tag Manager Server-side Tagging"
    310450msgstr ""
    311451
     
    315455
    316456#: assets/admin/settings.js:1
    317 #: assets/admin/wizard.js:1
    318 msgid "Help improve GTM Kit"
    319 msgstr ""
    320 
    321 #: assets/admin/settings.js:1
    322 msgid "Share anonymous data with the development team to help improve GTM Kit."
    323 msgstr ""
    324 
    325 #: assets/admin/settings.js:1
    326 #: assets/admin/wizard.js:1
    327 msgid "Share anonymous data"
    328 msgstr ""
    329 
    330 #: assets/admin/settings.js:1
    331 #: assets/admin/settings.js:13
    332 msgid "Tutorials"
    333 msgstr ""
    334 
    335 #: assets/admin/settings.js:1
    336 msgid "Google Tag Manager container"
    337 msgstr ""
    338 
    339 #: assets/admin/settings.js:1
    340 msgid "General Container Settings"
    341 msgstr ""
    342 
    343 #: assets/admin/settings.js:1
    344 #: assets/admin/wizard.js:1
    345 msgid "To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container."
    346 msgstr ""
    347 
    348 #: assets/admin/settings.js:1
    349 msgid "GTM Container ID:"
    350 msgstr ""
    351 
    352 #: assets/admin/settings.js:1
    353 msgid "Enter GTM Container ID"
    354 msgstr ""
    355 
    356 #: assets/admin/settings.js:1
    357 msgid "Inject Container Code"
    358 msgstr ""
    359 
    360 #: assets/admin/settings.js:1
    361 msgid "Setting this to Off will remove the Google Tag Manager container code but the data layer will remain."
    362 msgstr ""
    363 
    364 #: assets/admin/settings.js:1
    365 msgid "Just the container"
    366 msgstr ""
    367 
    368 #: assets/admin/settings.js:1
    369 msgid "Setting this to On will reduce the functionality to just the GTM container code. No additional data will be pushed to the datalayer regardless of any other settings."
    370 msgstr ""
    371 
    372 #: assets/admin/settings.js:1
    373 msgid "dataLayer variable name:"
    374 msgstr ""
    375 
    376 #: assets/admin/settings.js:1
    377 msgid "The default name of the data layer object is dataLayer. If you prefer to use a different name for your data layer, you may do so."
    378 msgstr ""
    379 
    380 #: assets/admin/settings.js:1
    381 msgid "Server-side Tagging (sGTM)"
    382 msgstr ""
    383 
    384 #: assets/admin/settings.js:1
    385 msgid "sGTM Container Domain:"
    386 msgstr ""
    387 
    388 #: assets/admin/settings.js:1
    389 msgid "Enter domain"
    390 msgstr ""
    391 
    392 #: assets/admin/settings.js:1
    393 msgid "Enter your custom domain name if you are using a custom server side GTM container for tracking."
    394 msgstr ""
    395 
    396 #: assets/admin/settings.js:1
    397 msgid "sGTM container identifier:"
    398 msgstr ""
    399 
    400 #: assets/admin/settings.js:1
    401 msgid "Enter loader name"
    402 msgstr ""
    403 
    404 #: assets/admin/settings.js:1
    405 msgid "Only use if you are using a custom loader."
    406 msgstr ""
    407 
    408 #: assets/admin/settings.js:1
    409 msgid "Cookie Keeper (for Stape users only)"
    410 msgstr ""
    411 
    412 #: assets/admin/settings.js:1
    413 msgid "Prolong cookie lifetime in Safari and other browsers with ITP. This only works if you use Stape sGTM hosting and have set up the Cookie Keeper power up."
    414 msgstr ""
    415 
    416 #: assets/admin/settings.js:1
    417 msgid "Google Tag Manager Server-side Tagging"
    418 msgstr ""
    419 
    420 #: assets/admin/settings.js:1
    421457#: assets/admin/settings.js:13
    422458msgid "Learn more"
     
    636672
    637673#: assets/admin/settings.js:1
    638 #: assets/admin/settings.js:13
     674#: assets/admin/settings.js:15
    639675msgid "Post data"
    640676msgstr ""
     
    702738
    703739#: assets/admin/settings.js:1
    704 #: assets/admin/settings.js:13
     740#: assets/admin/settings.js:15
    705741msgid "Google Consent Mode"
    706742msgstr ""
     
    833869
    834870#: assets/admin/settings.js:1
    835 #: assets/admin/settings.js:13
     871#: assets/admin/settings.js:15
    836872msgid "Misc"
    837873msgstr ""
     
    12381274
    12391275#: assets/admin/settings.js:13
     1276#: assets/admin/settings.js:15
    12401277msgid "Templates"
    12411278msgstr ""
     
    13171354msgstr ""
    13181355
    1319 #: assets/admin/settings.js:13
     1356#. translators: %d is number %s can be either 'problem' or 'notification'.
     1357#: assets/admin/settings.js:15
     1358msgid "You have %d hidden %s:"
     1359msgid_plural "You have %d hidden %ss:"
     1360msgstr[0] ""
     1361msgstr[1] ""
     1362
     1363#: assets/admin/settings.js:15
     1364msgid "Problems"
     1365msgstr ""
     1366
     1367#: assets/admin/settings.js:15
    13201368msgid "Google Tag Manager Templates"
    13211369msgstr ""
    13221370
    1323 #: assets/admin/settings.js:13
     1371#: assets/admin/settings.js:15
    13241372msgid "Dashboard"
    13251373msgstr ""
    13261374
    1327 #: assets/admin/settings.js:13
     1375#: assets/admin/settings.js:15
    13281376msgid "Container"
    13291377msgstr ""
    13301378
    1331 #: assets/admin/settings.js:13
     1379#: assets/admin/settings.js:15
    13321380msgid "User data"
    13331381msgstr ""
    13341382
    1335 #: assets/admin/settings.js:13
     1383#: assets/admin/settings.js:15
    13361384msgid "Support"
    13371385msgstr ""
  • gtm-kit/tags/2.0/readme.txt

    r3139454 r3149785  
    44Tags: google tag manager, gtm, woocommerce, analytics, ga4
    55Tested up to: 6.6
    6 Stable tag: 1.23.3
     6Stable tag: 2.0.0
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2323- select_item
    2424- view_item
    25 - add_to_wishlist
     25- add_to_wishlist **[Premium]**
    2626- add_to_cart
    2727- view_cart
     
    3131- add_payment_info
    3232- purchase
     33- refund **[Premium]**
     34
     35Unlock all features with [GTM Kit Woo Add-On](https://jump.gtmkit.com/link/2-30DDC).
    3336
    3437### Easy Digital Downloads
     
    8992== Changelog ==
    9093
     94= 2.0 =
     95
     96Release date: 2024-09-DD
     97
     98We are introducing [GTM Kit Woo Add-On](https://jump.gtmkit.com/link/2-30DDC), which is a premium plugin that unlock premium features in GTM Kit.
     99
     100Find out about what else is new in our [our release post](https://gtmkit.com/gtm-kit-2-0/).
     101
     102#### Breaking change:
     103* Starting with GTM Kit version 2.0, the add_to_wishlist event is no longer supported in the free version of GTM Kit.
     104
     105#### Enhancements:
     106* A notifications handler has been added to communicate issues and notifications that require the user’s attention.
     107* Added a warning when other Google Tag Manager plugins that may cause a conflict are active.
     108* WooCommerce users are advised to install a supported SEO plugin to take advantage of a default category in data layer items.
     109
     110#### Other:
     111* Increased PHPStan analysis level to 6, enhancing static code analysis and catching potential issues earlier in the development process.
     112* Require WordPress 6.3.
     113* Require WooCommerce 8.3.
     114* Require PHP 7.4.
    91115
    92116= 1.23.3 =
     
    134158* Tested up to WordPress 6.6.
    135159
    136 = 1.22.4 =
    137 
    138 Release date: 2024-05-30
    139 
    140 #### Enhancements:
    141 * Improve log and support data.
    142 
    143 #### Bugfixes:
    144 * There was a typo preventing the GTMKIT_WC_DEBUG_TRACK_PURCHASE constant from having any effect.
    145 
    146 #### Other:
    147 * Tested up to WooCommerce 8.9.
    148 
    149 = 1.22.3 =
    150 
    151 Release date: 2024-05-22
    152 
    153 #### Bugfixes:
    154 - The datalayer was not pushed when the container was disabled.
    155 
    156 #### Other:
    157 - Improved quality assurance (CI). Thanks [szepeviktor](https://github.com/szepeviktor)
    158 
    159 = 1.22.2 =
    160 
    161 #### Bugfixes:
    162 - Fix items in add_shipping_info and add_payment_info
    163 
    164 = 1.22.1 =
    165 
    166 Release date: 2024-05-13
    167 
    168 #### Bugfixes:
    169 - wait_for_update was not printed in Google Consent Mode default settings.
    170 
    171 = 1.22 =
    172 
    173 Release date: 2024-05-08
    174 
    175 Find out about what's new in our [our release post](https://gtmkit.com/gtm-kit-1-22/).
    176 
    177 #### Enhancements:
    178 - Added an Event Inspector for verifying that events are being pushed to the datalayer. You can now debug events without using GTM preview mode.
    179 - Added advanced GCM settings: 'ads_data_redaction', 'url_passthrough' and 'wait_for_update'.
    180 - Updated the custom container loader for use with Stape.io.
    181160
    182161== Upgrade Notice ==
    183162
    184 = 1.23.1 =
    185 The load priority of the script 'gtmkit-js-before' has been lowered from 1 to 5.
     163= 2.0 =
     164Starting with GTM Kit version 2.0, the add_to_wishlist event is no longer supported in the free version of GTM Kit.
  • gtm-kit/tags/2.0/src/Admin/AbstractOptionsPage.php

    r3139454 r3149785  
    2323     * @var string
    2424     */
    25     protected $option_name = 'gtmkit';
     25    protected string $option_name = 'gtmkit';
    2626
    2727    /**
     
    3030     * @var Options
    3131     */
    32     protected $options;
     32    protected Options $options;
    3333
    3434    /**
     
    3737     * @var Util
    3838     */
    39     protected $util;
     39    protected Util $util;
    4040
    4141    /**
  • gtm-kit/tags/2.0/src/Admin/AdminAPI.php

    r3070452 r3149785  
    2323     * @var Options
    2424     */
    25     private $options;
     25    private Options $options;
    2626
    2727    /**
     
    3030     * @var Util
    3131     */
    32     private $util;
     32    private Util $util;
    3333
    3434    /**
     
    7272                'methods'  => 'POST',
    7373                'callback' => [ $this, 'send_support_data' ],
     74            ]
     75        );
     76
     77        $this->util->rest_api_server->register_rest_route(
     78            '/set-notification-status',
     79            [
     80                'methods'  => 'POST',
     81                'callback' => [ $this, 'set_notification_status' ],
    7482            ]
    7583        );
     
    140148        }
    141149    }
     150
     151    /**
     152     * Set notification status
     153     *
     154     * @return void
     155     */
     156    public function set_notification_status(): void {
     157        $input = $this->get_json_input();
     158
     159        if ( $this->validate_notification_input( $input ) ) {
     160            $notification_id = sanitize_text_field( $input['notification-id'] );
     161            $action          = sanitize_text_field( $input['action'] );
     162
     163            $notifications_handler = NotificationsHandler::get();
     164            $notifications_handler->setup_current_notifications();
     165            $notification = $notifications_handler->get_notification_by_id( $notification_id );
     166
     167            if ( $notification instanceof Notification ) {
     168                switch ( $action ) {
     169                    case 'dismiss':
     170                        $notification_action = $notifications_handler->maybe_dismiss_notification( $notification );
     171                        break;
     172                    case 'restore':
     173                        $notification_action = $notifications_handler->restore_notification( $notification );
     174                        break;
     175                    default:
     176                        $notification_action = false;
     177                }
     178
     179                if ( $notification_action ) {
     180                    wp_send_json_success( (object) $notifications_handler->get_notifications_array() );
     181                } else {
     182                    wp_send_json_error( (object) $notifications_handler->get_notifications_array() );
     183                }
     184            } else {
     185                wp_send_json_error( 'The notification was not found.' );
     186            }
     187        } else {
     188            wp_send_json_error( 'Invalid input.' );
     189        }
     190    }
     191
     192    /**
     193     * Validate notification input
     194     *
     195     * @param array<string, string>|null $input The input.
     196     * @return bool
     197     */
     198    private function validate_notification_input( ?array $input ): bool {
     199        return isset( $input['notification-id'], $input['action'] )
     200                && in_array( $input['action'], [ 'dismiss', 'restore' ], true );
     201    }
     202
     203    /**
     204     * Get JSON input
     205     *
     206     * @return array<string, string>|null
     207     */
     208    private function get_json_input(): ?array {
     209        $input_raw = file_get_contents( 'php://input' );
     210        return $input_raw ? json_decode( $input_raw, true ) : null;
     211    }
    142212}
  • gtm-kit/tags/2.0/src/Admin/Analytics.php

    r2961341 r3149785  
    2121     * @var Analytics
    2222     */
    23     public static $instance;
     23    public static Analytics $instance;
    2424
    2525    /**
     
    2828     * @var Options
    2929     */
    30     protected $options;
     30    protected Options $options;
    3131
    3232    /**
     
    3535     * @var Util
    3636     */
    37     private $util;
     37    private Util $util;
    3838
    3939    /**
  • gtm-kit/tags/2.0/src/Admin/AssetsTrait.php

    r3112163 r3149785  
    2929        }
    3030
    31         $deps_file  = $path . 'assets/admin/' . $script_handle . '.asset.php';
     31        $deps_file  = \realpath( $path . 'assets/admin/' . $script_handle . '.asset.php' );
    3232        $dependency = [];
    3333        $version    = false;
    3434
    35         if ( \file_exists( $deps_file ) ) {
    36             $deps_file  = require $deps_file;
    37             $dependency = $deps_file['dependencies'];
    38             $version    = $deps_file['version'];
     35        // Ensure the file is within the expected directory.
     36        if ( $deps_file && \strpos( $deps_file, \realpath( $path . 'assets/admin/' ) ) === 0 && \file_exists( $deps_file ) ) {
     37            $deps_data  = require $deps_file; // nosemgrep.
     38            $dependency = $deps_data['dependencies'];
     39            $version    = $deps_data['version'];
     40        }
     41
     42        // Polyfill for WordPress versions earlier than 6.6.
     43        if ( in_array( 'react-jsx-runtime', $dependency, true ) && ! wp_script_is( 'react-jsx-runtime', 'registered' ) ) {
     44            wp_register_script(
     45                'react-jsx-runtime',
     46                GTMKIT_URL . 'assets/react-jsx-runtime.js',
     47                [ 'react' ],
     48                '18.3.1',
     49                true
     50            );
    3951        }
    4052
  • gtm-kit/tags/2.0/src/Admin/GeneralOptionsPage.php

    r3112163 r3149785  
    1818     * @var string
    1919     */
    20     protected $option_group = 'general';
     20    protected string $option_group = 'general';
     21
     22    /**
     23     * The notifications
     24     *
     25     * @var array<string, array<string, int|array<string>>|int>
     26     */
     27    protected array $notifications = [];
    2128
    2229    /**
     
    2633        add_menu_page(
    2734            $this->get_page_title(),
    28             'GTM KIT',
     35            $this->get_main_menu_title(),
    2936            $this->get_capability(),
    3037            $this->get_menu_slug(),
     
    6067
    6168    /**
     69     * Get the main admin page menu title.
     70     *
     71     * @return string
     72     */
     73    protected function get_main_menu_title(): string {
     74        return 'GTM Kit' . $this->get_notification_counter();
     75    }
     76
     77    /**
    6278     * Get the admin page menu title.
    6379     *
     
    6581     */
    6682    protected function get_menu_title(): string {
    67         return __( 'General', 'gtm-kit' );
     83        return __( 'General', 'gtm-kit' ) . $this->get_notification_counter();
    6884    }
    6985
     
    119135                'site_data'       => $this->util->get_site_data( $this->options->get_all_raw() ),
    120136                'user_roles'      => $this->get_user_roles(),
     137                'notifications'   => $this->get_notifications(),
    121138            ]
    122139        );
     
    124141
    125142    /**
    126      * Get the templates
    127      *
    128      * @return array
     143     * Get the tutorials
     144     *
     145     * @return array<string, mixed>
    129146     */
    130147    private function get_tutorials(): array {
     
    135152     * Get user roles
    136153     *
    137      * @return array
     154     * @return array<array<string, string>>
    138155     */
    139156    private function get_user_roles(): array {
     
    151168        return $user_roles;
    152169    }
     170
     171    /**
     172     * Get the notifications array
     173     *
     174     * @return array<string, array<string, int|array<string>>|int>
     175     */
     176    private function get_notifications_array(): array {
     177        if ( empty( $this->notifications ) ) {
     178            $notifications_handler = NotificationsHandler::get();
     179            $this->notifications   = $notifications_handler->get_notifications_array();
     180        }
     181
     182        return $this->notifications;
     183    }
     184
     185    /**
     186     * Returns the notification count in HTML format.
     187     *
     188     * @return string The notification count in HTML format.
     189     */
     190    private function get_notification_counter(): string {
     191        return sprintf(
     192            ' <span class="menu-counter count-%1$d"><span class="count" aria-hidden="true">%1$d</span></span>',
     193            $this->get_notifications_array()['metrics']['total']
     194        );
     195    }
     196
     197    /**
     198     * Returns the notifications.
     199     *
     200     * @return object The notifications.
     201     */
     202    protected function get_notifications(): object {
     203        return (object) $this->get_notifications_array();
     204    }
    153205}
  • gtm-kit/tags/2.0/src/Admin/HelpOptionsPage.php

    r3070452 r3149785  
    77
    88namespace TLA_Media\GTM_Kit\Admin;
     9
     10use TLA_Media\GTM_Kit\Common\Conditionals\PremiumConditional;
    911
    1012/**
     
    1820     * @var string
    1921     */
    20     protected $option_group = 'help';
     22    protected string $option_group = 'help';
    2123
    2224    /**
     
    9597                'settings'        => $this->options->get_all_raw(),
    9698                'site_data'       => [ 'gtmkit_version' => GTMKIT_VERSION ],
     99                'isPremium'       => ( new PremiumConditional() )->is_met(),
    97100            ]
    98101        );
     
    102105     * Get the templates
    103106     *
    104      * @return array
     107     * @return array<string, mixed>
    105108     */
    106109    private function get_tutorials(): array {
  • gtm-kit/tags/2.0/src/Admin/Integrations.php

    r3112163 r3149785  
    1616     * Get the integrations
    1717     *
    18      * @return array
     18     * @return array<string, array<string, string>>
    1919     */
    2020    public static function get_integrations(): array {
  • gtm-kit/tags/2.0/src/Admin/IntegrationsOptionsPage.php

    r3118062 r3149785  
    77
    88namespace TLA_Media\GTM_Kit\Admin;
     9
     10use TLA_Media\GTM_Kit\Common\Conditionals\PremiumConditional;
    911
    1012/**
     
    1820     * @var string
    1921     */
    20     protected $option_group = 'integrations';
     22    protected string $option_group = 'integrations';
    2123
    2224    /**
     
    111113                'root'             => \esc_url_raw( rest_url() ),
    112114                'nonce'            => \wp_create_nonce( 'wp_rest' ),
    113                 'isPremium'        => $this->util->is_premium(),
     115                'isPremium'        => ( new PremiumConditional() )->is_met(),
    114116                'integrations'     => Integrations::get_integrations(),
    115117                'dashboardUrl'     => \menu_page_url( 'gtmkit_general', false ),
     
    127129     * Get the plugins.
    128130     *
    129      * @return array
     131     * @return array<string, bool>
    130132     */
    131133    private function get_plugins(): array {
  • gtm-kit/tags/2.0/src/Admin/MetaBox.php

    r3139454 r3149785  
    2020     * @var Options
    2121     */
    22     protected $options;
     22    protected Options $options;
    2323
    2424    /**
     
    113113                    delete_post_meta( (int) $_POST['post_ID'], 'gtmkit_page_type' );
    114114                } else {
    115                     update_post_meta( (int) $_POST['post_ID'], 'gtmkit_page_type', $_POST['gtmkit_option']['page_type'] );
     115                    $page_type = sanitize_text_field( $_POST['gtmkit_option']['page_type'] );
     116                    update_post_meta( (int) $_POST['post_ID'], 'gtmkit_page_type', $page_type );
    116117                }
    117118            }
  • gtm-kit/tags/2.0/src/Admin/SetupWizard.php

    r3139454 r3149785  
    3030     * @var Options
    3131     */
    32     protected $options;
     32    protected Options $options;
    3333
    3434    /**
     
    3737     * @var Util
    3838     */
    39     protected $util;
     39    protected Util $util;
    4040
    4141    /**
  • gtm-kit/tags/2.0/src/Admin/TemplatesOptionsPage.php

    r3070452 r3149785  
    1818     * @var string
    1919     */
    20     protected $option_group = 'templates';
     20    protected string $option_group = 'templates';
    2121
    2222    /**
     
    102102     * Get the templates
    103103     *
    104      * @return array
     104     * @return array<string, mixed>
    105105     */
    106106    private function get_templates(): array {
  • gtm-kit/tags/2.0/src/Common/RestAPIServer.php

    r2961341 r3149785  
    2020     * @var string
    2121     */
    22     private $route_namespace = 'gtmkit/v1';
     22    private string $route_namespace = 'gtmkit/v1';
    2323
    2424    /**
     
    4040     * Register REST route
    4141     *
    42      * @param string $route The route.
    43      * @param array  $args The arguments.
     42     * @param string               $route The route.
     43     * @param array<string, mixed> $args The arguments.
    4444     *
    4545     * @return void
  • gtm-kit/tags/2.0/src/Common/Util.php

    r3112163 r3149785  
    2121     * @var Options
    2222     */
    23     public $options;
     23    public Options $options;
    2424
    2525    /**
     
    2828     * @var RestAPIServer
    2929     */
    30     public $rest_api_server;
     30    public RestAPIServer $rest_api_server;
    3131
    3232    /**
     
    3535     * @var string
    3636     */
    37     public $asset_path;
     37    public string $asset_path;
    3838
    3939    /**
     
    4242     * @var string
    4343     */
    44     public $asset_url;
     44    public string $asset_url;
    4545
    4646    /**
     
    4949     * @var string
    5050     */
    51     private $api_namespace = '/api/v1';
     51    private string $api_namespace = '/api/v1';
    5252
    5353    /**
     
    5656     * @var string
    5757     */
    58     private $api_host;
     58    private string $api_host;
    5959
    6060    /**
     
    8989     * Get the site data
    9090     *
    91      * @param array $options The options.
    92      * @param bool  $anonymize Anonymize the data.
    93      *
    94      * @return array
     91     * @param array<string, mixed> $options The options.
     92     * @param bool                 $anonymize Anonymize the data.
     93     *
     94     * @return array<string, mixed>
    9595     */
    9696    public function get_site_data( array $options, bool $anonymize = true ): array {
     
    127127     * Set the site data
    128128     *
    129      * @param array  $data Current data.
    130      * @param array  $options The options.
    131      * @param string $wp_version The WordPress version.
    132      * @param bool   $anonymize Anonymize the data.
    133      *
    134      * @return array
     129     * @param array<string, mixed> $data Current data.
     130     * @param array<string, mixed> $options The options.
     131     * @param string               $wp_version The WordPress version.
     132     * @param bool                 $anonymize Anonymize the data.
     133     *
     134     * @return array<string, mixed>
    135135     */
    136136    private function set_site_data( array $data, array $options, string $wp_version, bool $anonymize ): array {
     
    149149     * Add shared data
    150150     *
    151      * @param array  $data Current data.
    152      * @param string $wp_version The WordPress version.
    153      *
    154      * @return array
     151     * @param array<string, mixed> $data Current data.
     152     * @param string               $wp_version The WordPress version.
     153     *
     154     * @return array<string, mixed>
    155155     */
    156156    private function add_shared_data( array $data, string $wp_version ): array {
     
    204204     * Gets names of all active plugins.
    205205     *
    206      * @return array An array of active plugins names.
     206     * @return array<int, string> An array of active plugins names.
    207207     */
    208208    public function get_active_plugins(): array {
     
    225225     * Add plugin to array if active.
    226226     *
    227      * @param string $plugin The plugin slug.
    228      * @param string $key The key.
    229      * @param array  $data The data.
    230      * @param bool   $shorten Shorten the version number or not.
    231      *
    232      * @return array An array of active plugins names.
     227     * @param string               $plugin The plugin slug.
     228     * @param string               $key The key.
     229     * @param array<string, mixed> $data The data.
     230     * @param bool                 $shorten Shorten the version number or not.
     231     *
     232     * @return array<string, mixed> An array of active plugins names.
    233233     */
    234234    public function add_active_plugin_and_version( string $plugin, string $key, array $data, bool $shorten = true ): array {
     
    245245     * Anonymize options
    246246     *
    247      * @param array $options The options.
    248      *
    249      * @return array
     247     * @param array<string, mixed> $options The options.
     248     *
     249     * @return array<string, mixed>
    250250     */
    251251    public function anonymize_options( array $options ): array {
     
    311311     * Enqueue script in build
    312312     *
    313      * @param string $handle The script handle.
    314      * @param string $script The script name.
    315      * @param bool   $has_asset_file If the script has an asset file or not.
    316      * @param array  $deps The script dependencies.
    317      * @param array  $args The loading strategy.
     313     * @param string                      $handle The script handle.
     314     * @param string                      $script The script name.
     315     * @param bool                        $has_asset_file If the script has an asset file or not.
     316     * @param array<int, string>          $deps The script dependencies.
     317     * @param array<string, string|false> $args The loading strategy.
    318318     *
    319319     * @return void
    320320     */
    321     public function enqueue_script( string $handle, string $script, bool $has_asset_file = false, array $deps = [], array $args = [ 'strategy' => 'defer' ] ): void {
     321    public function enqueue_script( string $handle, string $script, bool $has_asset_file = false, array $deps = [], array $args = [
     322        'strategy'  => 'defer',
     323        'in_footer' => false,
     324    ] ): void {
    322325
    323326        $ver = $this->get_plugin_version();
     
    325328        if ( $has_asset_file ) {
    326329            $file = $this->asset_path . substr_replace( $script, '.asset.php', - strlen( '.js' ) );
    327             if ( file_exists( $file ) ) {
    328                 $deps_file = require $file;
    329                 $deps      = $deps_file['dependencies'];
    330                 $ver       = $deps_file['version'];
     330            $file = \realpath( $this->asset_path . substr_replace( $script, '.asset.php', - strlen( '.js' ) ) );
     331
     332            // Ensure the file is within the expected directory.
     333            if ( $file && \strpos( $file, \realpath( $this->asset_path ) ) === 0 && \file_exists( $file ) ) {
     334                $deps_data = require $file; // nosemgrep.
     335                $deps      = $deps_data['dependencies'];
     336                $ver       = $deps_data['version'];
    331337            }
    332338        }
     
    349355     * @param string $transient The transient.
    350356     *
    351      * @return array
     357     * @return array<string, mixed>
    352358     */
    353359    public function get_data( string $endpoint, string $transient ): array {
     
    446452        return $this->normalize_and_hash( $hash_algorithm, $normalized_email, true );
    447453    }
    448 
    449     /**
    450      * Is premium
    451      *
    452      * @return bool True when is premium.
    453      */
    454     public function is_premium(): bool {
    455         return \defined( 'GTMKIT_WOO_FILE' );
    456     }
    457454}
  • gtm-kit/tags/2.0/src/Frontend/BasicDatalayerData.php

    r3004949 r3149785  
    2020     * @var Options
    2121     */
    22     protected $options;
     22    protected Options $options;
    2323
    2424    /**
     
    2727     * @var bool
    2828     */
    29     protected $set_datalayer_post_type;
     29    protected bool $set_datalayer_post_type;
    3030
    3131    /**
     
    3434     * @var bool
    3535     */
    36     protected $set_datalayer_page_type;
     36    protected bool $set_datalayer_page_type;
    3737
    3838    /**
     
    6262     * Get the basic dataLayer data
    6363     *
    64      * @param array $datalayer The datalayer.
    65      *
    66      * @return array
     64     * @param array<string, mixed> $datalayer The datalayer.
     65     *
     66     * @return array<string, mixed>
    6767     */
    6868    public function get_datalayer_content( array $datalayer ): array {
     
    9797     * Set post and page types in the datalayer
    9898     *
    99      * @param array  $datalayer The datalayer.
    100      * @param string $post_type The post type.
    101      * @param string $page_type The page type.
    102      *
    103      * @return array
     99     * @param array<string, mixed> $datalayer The datalayer.
     100     * @param string               $post_type The post type.
     101     * @param string               $page_type The page type.
     102     *
     103     * @return array<string, mixed>
    104104     */
    105105    private function set_post_and_page_types( array $datalayer, string $post_type, string $page_type = '' ): array {
     
    118118     * Get priority dataLayer data
    119119     *
    120      * @param array $datalayer The datalayer.
    121      *
    122      * @return array
     120     * @param array<string, mixed> $datalayer The datalayer.
     121     *
     122     * @return array<string, mixed>
    123123     */
    124124    public function get_priority_datalayer_content( array $datalayer ): array {
     
    136136     * Get the dataLayer data for singular post types
    137137     *
    138      * @param array $datalayer The datalayer.
    139      *
    140      * @return array
     138     * @param array<string, mixed> $datalayer The datalayer.
     139     *
     140     * @return array<string, mixed>
    141141     */
    142142    private function get_singular_datalayer_content( array $datalayer ): array {
     
    189189     * Get the dataLayer data for site search
    190190     *
    191      * @param array $datalayer The datalayer.
    192      *
    193      * @return array
     191     * @param array<string, mixed> $datalayer The datalayer.
     192     *
     193     * @return array<string, mixed>
    194194     */
    195195    private function get_site_search_datalayer_content( array $datalayer ): array {
  • gtm-kit/tags/2.0/src/Frontend/Frontend.php

    r3118062 r3149785  
    2020     * @var Options
    2121     */
    22     protected $options;
     22    protected Options $options;
    2323
    2424    /**
     
    2727     * @var string
    2828     */
    29     protected $datalayer_name;
     29    protected string $datalayer_name;
    3030
    3131    /**
     
    254254     * Set inline script attributes
    255255     *
    256      * @param array  $attributes The script attributes.
    257      * @param string $script The script.
    258      *
    259      * @return array The script attributes.
     256     * @param array<string, mixed> $attributes The script attributes.
     257     * @param string               $script The script.
     258     *
     259     * @return array<string, mixed> The script attributes.
    260260     */
    261261    public function set_inline_script_attributes( array $attributes, string $script ): array { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
     
    311311     * Exclude GTM Kit in WP Rocket
    312312     *
    313      * @param array $pattern The exclude list.
    314      *
    315      * @return array
     313     * @param array<int, string> $pattern The exclude list.
     314     *
     315     * @return array<int, string>
    316316     */
    317317    public function wp_rocket_exclude_javascript( array $pattern ): array {
     
    325325     * Adds Google Tag Manager domain DNS Prefetch printed by wp_resource_hints
    326326     *
    327      * @param array  $hints URLs to print for resource hints.
    328      * @param string $relation_type The relation type the URL are printed for.
    329      *
    330      * @return array URL to print
     327     * @param array<int, string> $hints URLs to print for resource hints.
     328     * @param string             $relation_type The relation type the URL are printed for.
     329     *
     330     * @return array<int, string> URL to print
    331331     */
    332332    public function dns_prefetch( array $hints, string $relation_type ): array {
  • gtm-kit/tags/2.0/src/Frontend/Stape.php

    r3004949 r3149785  
    2727     * @var Options
    2828     */
    29     protected $options;
     29    protected Options $options;
    3030
    3131    /**
     
    6969            array(
    7070                'name'    => self::COOKIE_KEEPER_NAME,
    71                 'value'   => md5( wp_rand( PHP_INT_MIN, PHP_INT_MAX ) . '|' . filter_input( INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_DEFAULT ) . '|' . time() ),
     71                'value'   => md5( wp_rand( PHP_INT_MIN, PHP_INT_MAX ) . '|' . filter_input( INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_SANITIZE_SPECIAL_CHARS ) . '|' . time() ),
    7272                'expires' => time() + ( YEAR_IN_SECONDS * 2 ),
    7373            )
     
    9595     * Set cookie.
    9696     *
    97      * @param  array $args Parameters.
     97     * @param  array<string, mixed> $args Parameters.
    9898     * @return void
    9999     */
  • gtm-kit/tags/2.0/src/Frontend/UserData.php

    r3090572 r3149785  
    2020     * @var Options
    2121     */
    22     protected $options;
     22    protected Options $options;
    2323
    2424    /**
     
    4545     * Get the dataLayer content
    4646     *
    47      * @param array $datalayer The datalayer.
     47     * @param array<string, mixed> $datalayer The datalayer.
    4848     *
    49      * @return array
     49     * @return array<string, mixed>
    5050     */
    5151    public function get_datalayer_content( array $datalayer ): array {
  • gtm-kit/tags/2.0/src/Installation/PluginDataImport.php

    r2974164 r3149785  
    1616     * Get the data for all plugins.
    1717     *
    18      * @return array
     18     * @return array<string, mixed>
    1919     */
    2020    public function get_all(): array {
     
    5555     * @param string $slug The plugin slug.
    5656     *
    57      * @return array
     57     * @return array<string, mixed>
    5858     */
    5959    public function get( string $slug ): array {
     
    8888     * Check if GTM4WP plugin settings are present and extract them.
    8989     *
    90      * @return array
     90     * @return array<string, mixed>
    9191     */
    9292    private function get_gtm4wp(): array {
     
    133133     * Check if GTM for WooCommerce plugin settings are present and extract them.
    134134     *
    135      * @return array
     135     * @return array<string, mixed>
    136136     */
    137137    private function get_gtm_for_woocommerce(): array {
     
    158158     * Check if Metronet Tag Manager plugin settings are present and extract them.
    159159     *
    160      * @return array
     160     * @return array<string, mixed>
    161161     */
    162162    private function get_metronet_tag_manager(): array {
     
    185185     * Check if Google Analytics and Google Tag Manager plugin settings are present and extract them.
    186186     *
    187      * @return array
     187     * @return array<string, mixed>
    188188     */
    189189    private function get_google_analytics_and_google_tag_manager(): array {
     
    207207     * Check if Google Tag Manager plugin settings are present and extract them.
    208208     *
    209      * @return array
     209     * @return array<string, mixed>
    210210     */
    211211    private function get_google_tag_manager(): array {
     
    235235        if ( ! function_exists( 'is_plugin_active' ) ) {
    236236
    237             include_once ABSPATH . 'wp-admin/includes/plugin.php';
     237            require_once ABSPATH . 'wp-admin/includes/plugin.php';
    238238
    239239        }
  • gtm-kit/tags/2.0/src/Installation/Upgrade.php

    r3118062 r3149785  
    88namespace TLA_Media\GTM_Kit\Installation;
    99
     10use TLA_Media\GTM_Kit\Common\Conditionals\WooCommerceConditional;
    1011use TLA_Media\GTM_Kit\Options;
    1112
     
    3536     * Get upgrades if applicable.
    3637     *
    37      * @return array
     38     * @return array<string>
    3839     */
    3940    protected function get_upgrades(): array {
     
    4546            '1.20' => 'v120_upgrade',
    4647            '1.22' => 'v122_upgrade',
     48            '2.0'  => 'v2_upgrade',
    4749        ];
    4850
     
    154156        Options::init()->set( $values, false, false );
    155157    }
     158
     159    /**
     160     * Upgrade routine for v2.0
     161     */
     162    protected function v2_upgrade(): void {
     163
     164        if ( ! function_exists( 'get_plugins' ) ) {
     165            require_once ABSPATH . 'wp-admin/includes/plugin.php';
     166        }
     167
     168        if ( (
     169            new WooCommerceConditional() )->is_met() &&
     170            ( \is_plugin_active( 'yith-woocommerce-wishlist/init.php' ) || \is_plugin_active( 'ti-woocommerce-wishlist/ti-woocommerce-wishlist.php' )
     171        ) ) {
     172            $values = [
     173                'misc' => [
     174                    'gf_wishlist' => true,
     175                ],
     176            ];
     177
     178            Options::init()->set( $values, false, false );
     179        }
     180    }
    156181}
  • gtm-kit/tags/2.0/src/Integration/AbstractEcommerce.php

    r3018660 r3149785  
    2222     * @var string
    2323     */
    24     protected $store_currency;
     24    protected string $store_currency;
    2525
    2626    /**
     
    2929     * @var int
    3030     */
    31     protected $grouped_product_position;
     31    protected int $grouped_product_position;
    3232
    3333    /**
    3434     * Global data.
    3535     *
    36      * @var array
     36     * @var array<string, mixed>
    3737     */
    38     protected $global_data;
     38    protected array $global_data;
    3939
    4040    /**
     
    5454     * Get instance
    5555     */
    56     abstract public static function instance();
     56    abstract public static function instance(): self;
    5757
    5858    /**
     
    7070     * @param string $taxonomy The taxonomy slug.
    7171     *
    72      * @return array The category breadcrumb for the given product ID.
     72     * @return array<int|string, mixed> The category breadcrumb for the given product ID.
    7373     */
    7474    public function get_primary_product_category( int $product_id, string $taxonomy ): array {
     
    118118     * @param string $taxonomy The taxonomy slug.
    119119     *
    120      * @return array The category path elements as an array.
     120     * @return array<int, string> The category path elements as an array.
    121121     */
    122122    public function get_category_breadcrumb( int $category_id, string $taxonomy ): array {
  • gtm-kit/tags/2.0/src/Integration/AbstractIntegration.php

    r2960370 r3149785  
    2121     * @var Options
    2222     */
    23     protected $options;
     23    protected Options $options;
    2424
    2525    /**
     
    2828     * @var Util
    2929     */
    30     protected $util;
     30    protected Util $util;
    3131
    3232    /**
     
    4444     * Get instance
    4545     */
    46     abstract public static function instance();
     46    abstract public static function instance(): self;
    4747
    4848    /**
  • gtm-kit/tags/2.0/src/Integration/ContactForm7.php

    r3090572 r3149785  
    2020     * Instance.
    2121     *
    22      * @var ContactForm7 An instance of ContactForm7.
     22     * @var null|ContactForm7 An instance of ContactForm7.
    2323     */
    24     protected static $instance = null;
     24    protected static ?ContactForm7 $instance = null;
    2525
    2626    /**
  • gtm-kit/tags/2.0/src/Integration/EasyDigitalDownloads.php

    r3090572 r3149785  
    2424     * Instance.
    2525     *
    26      * @var EasyDigitalDownloads
    27      */
    28     protected static $instance = null;
     26     * @var null|EasyDigitalDownloads
     27     */
     28    protected static ?EasyDigitalDownloads $instance = null;
    2929
    3030    /**
     
    9393     * Get the global script settings
    9494     *
    95      * @param array $global_settings Script settings.
    96      *
    97      * @return array
     95     * @param array<string, mixed> $global_settings Script settings.
     96     *
     97     * @return array<string, mixed>
    9898     */
    9999    public function get_global_settings( array $global_settings ): array {
     
    111111     * Get the global script data
    112112     *
    113      * @param array $global_data Script data.
    114      *
    115      * @return array
     113     * @param array<string, mixed> $global_data Script data.
     114     *
     115     * @return array<string, mixed>
    116116     */
    117117    public function get_global_data( array $global_data ): array {
     
    134134     * Get the dataLayer content
    135135     *
    136      * @param array $data_layer The datalayer content.
    137      *
    138      * @return array The datalayer content
     136     * @param array<string, mixed> $data_layer The datalayer content.
     137     *
     138     * @return array<string, mixed> The datalayer content
    139139     */
    140140    public function get_datalayer_content( array $data_layer ): array {
     
    158158     * Get the dataLayer data for product pages
    159159     *
    160      * @param array $data_layer The datalayer content.
    161      *
    162      * @return array The datalayer content
     160     * @param array<string, mixed> $data_layer The datalayer content.
     161     *
     162     * @return array<string, mixed> The datalayer content
    163163     */
    164164    public function get_datalayer_content_product_page( array $data_layer ): array {
     
    188188     * Get the dataLayer data for category pages
    189189     *
    190      * @param array $data_layer The datalayer content.
    191      *
    192      * @return array The datalayer content
     190     * @param array<string, mixed> $data_layer The datalayer content.
     191     *
     192     * @return array<string, mixed> The datalayer content
    193193     */
    194194    public function get_datalayer_content_product_category( array $data_layer ): array {
     
    204204     * Get the dataLayer data for product tag pages
    205205     *
    206      * @param array $data_layer The datalayer content.
    207      *
    208      * @return array The datalayer content
     206     * @param array<string, mixed> $data_layer The datalayer content.
     207     *
     208     * @return array<string, mixed> The datalayer content
    209209     */
    210210    public function get_datalayer_content_product_tag( array $data_layer ): array {
     
    220220     * Get the dataLayer data for checkout page
    221221     *
    222      * @param array $data_layer The datalayer content.
    223      *
    224      * @return array The datalayer content
     222     * @param array<string, mixed> $data_layer The datalayer content.
     223     *
     224     * @return array<string, mixed> The datalayer content
    225225     */
    226226    public function get_datalayer_content_checkout( array $data_layer ): array {
     
    240240     * Get the dataLayer data for order_received page
    241241     *
    242      * @param array $data_layer The datalayer content.
    243      *
    244      * @return array The datalayer content
     242     * @param array<string, mixed> $data_layer The datalayer content.
     243     *
     244     * @return array<string, mixed> The datalayer content
    245245     */
    246246    public function get_datalayer_content_order_received( array $data_layer ): array {
     
    334334     * @param string $event_context The event context of the item data.
    335335     *
    336      * @return array The cart items.
     336     * @return array<int, mixed> The cart items.
    337337     */
    338338    public function get_cart_items( string $event_context ): array {
     
    352352     * Get item data.
    353353     *
    354      * @param EDD_Download $download An instance of EDD_Download.
    355      * @param array        $options Optional options.
    356      * @param array        $additional_item_attributes Any key-value pair that needs to be added to the item data.
    357      * @param string       $event_context The event context of the item data.
    358      *
    359      * @return array The item data.
     354     * @param EDD_Download         $download An instance of EDD_Download.
     355     * @param array<string, mixed> $options Optional options.
     356     * @param array<string, mixed> $additional_item_attributes Any key-value pair that needs to be added to the item data.
     357     * @param string               $event_context The event context of the item data.
     358     *
     359     * @return array<string, mixed> The item data.
    360360     */
    361361    public function get_item_data( EDD_Download $download, array $options = [], array $additional_item_attributes = [], string $event_context = '' ): array {
     
    413413     * Include customer data
    414414     *
    415      * @param array      $data_layer The datalayer content.
    416      * @param Order|false $order Order.
    417      *
    418      * @return array The datalayer.
     415     * @param array<string, mixed> $data_layer The datalayer content.
     416     * @param Order|false          $order Order.
     417     *
     418     * @return array<string, mixed> The datalayer.
    419419     */
    420420    public function include_customer_data( array $data_layer, $order ): array {
  • gtm-kit/tags/2.0/src/Integration/WooCommerce.php

    r3139454 r3149785  
    3232     * Instance.
    3333     *
    34      * @var WooCommerce
    35      */
    36     protected static $instance = null;
     34     * @var null|WooCommerce
     35     */
     36    protected static ?WooCommerce $instance = null;
    3737
    3838    /**
     
    113113            3
    114114        );
    115         add_filter( 'tinvwl_wishlist_item_meta_post', [ self::$instance, 'Compatibility_With_TI_Wishlist' ] );
    116 
    117115        add_action( 'woocommerce_after_shop_loop_item', [ self::$instance, 'product_list_loop_add_to_cart_tracking' ] );
    118116        add_filter( 'woocommerce_cart_item_remove_link', [ self::$instance, 'cart_item_remove_link' ], 10, 2 );
     
    234232     * Get the global script settings
    235233     *
    236      * @param array $global_settings Script settings.
    237      *
    238      * @return array
     234     * @param array<string, mixed> $global_settings Script settings.
     235     *
     236     * @return array<string, mixed>
    239237     */
    240238    public function get_global_settings( array $global_settings ): array {
     
    246244        $global_settings['wc']['view_item']['config']         = (int) $this->options->get( 'integrations', 'woocommerce_variable_product_tracking' );
    247245        $global_settings['wc']['view_item_list']['config']    = (int) $this->options->get( 'integrations', 'woocommerce_view_item_list_limit' );
     246        $global_settings['wc']['wishlist']                    = false;
    248247        $global_settings['wc']['text']                        = [
    249248            'wp-block-handpicked-products'   => __( 'Handpicked Products', 'gtm-kit' ),
     
    259258        ];
    260259        $global_settings['wc']['css_selectors']               = [
    261             'single_product_wishlist'  => '.add_to_wishlist, .tinvwl_add_to_wishlist_button:not(.tinvwl-product-in-list,.disabled-add-wishlist)',
    262             'product_list_select_item' => '.products .product:not(.product-category) a:not(.add_to_cart_button.ajax_add_to_cart,.add_to_wishlist,.tinvwl_add_to_wishlist_button),' .
    263                                         '.wc-block-grid__products li:not(.product-category) a:not(.add_to_cart_button.ajax_add_to_cart,.add_to_wishlist,.tinvwl_add_to_wishlist_button),' .
    264                                         '.woocommerce-grouped-product-list-item__label a:not(.add_to_wishlist,.tinvwl_add_to_wishlist_button)',
    265             'product_list_wishlist'    => '.add_to_wishlist, .tinvwl_add_to_wishlist_button:not(.tinvwl-product-in-list)',
     260            'product_list_select_item' => '.products .product:not(.product-category) a:not(.add_to_cart_button.ajax_add_to_cart,.add_to_wishlist),' .
     261                                        '.wc-block-grid__products li:not(.product-category) a:not(.add_to_cart_button.ajax_add_to_cart,.add_to_wishlist),' .
     262                                        '.woocommerce-grouped-product-list-item__label a:not(.add_to_wishlist)',
    266263        ];
    267264
     
    272269     * Get the global script data
    273270     *
    274      * @param array $global_data Script data.
    275      *
    276      * @return array
     271     * @param array<string, mixed> $global_data Script data.
     272     *
     273     * @return array<string, mixed>
    277274     */
    278275    public function get_global_data( array $global_data ): array {
     
    320317     * Get the WooCommerce dataLayer content
    321318     *
    322      * @param array $data_layer The datalayer content.
    323      *
    324      * @return array The datalayer content
     319     * @param array<string, mixed> $data_layer The datalayer content.
     320     *
     321     * @return array<string, mixed> The datalayer content
    325322     */
    326323    public function get_datalayer_content( array $data_layer ): array {
     
    354351     * Get the dataLayer data for product pages
    355352     *
    356      * @param array $data_layer The datalayer content.
    357      *
    358      * @return array The datalayer content
     353     * @param array<string, mixed> $data_layer The datalayer content.
     354     *
     355     * @return array<string, mixed> The datalayer content
    359356     */
    360357    public function get_datalayer_content_product_page( array $data_layer ): array {
     
    390387     * Get the dataLayer data for category pages
    391388     *
    392      * @param array $data_layer The datalayer content.
    393      *
    394      * @return array The datalayer content
     389     * @param array<string, mixed> $data_layer The datalayer content.
     390     *
     391     * @return array<string, mixed> The datalayer content
    395392     */
    396393    public function get_datalayer_content_product_category( array $data_layer ): array {
     
    406403     * Get the dataLayer data for product tag pages
    407404     *
    408      * @param array $data_layer The datalayer content.
    409      *
    410      * @return array The datalayer content
     405     * @param array<string, mixed> $data_layer The datalayer content.
     406     *
     407     * @return array<string, mixed> The datalayer content
    411408     */
    412409    public function get_datalayer_content_product_tag( array $data_layer ): array {
     
    422419     * Get the dataLayer data for cart page
    423420     *
    424      * @param array $data_layer The datalayer content.
    425      *
    426      * @return array The datalayer content
     421     * @param array<string, mixed> $data_layer The datalayer content.
     422     *
     423     * @return array<string, mixed> The datalayer content
    427424     */
    428425    public function get_datalayer_content_cart( array $data_layer ): array {
     
    451448     * Get the dataLayer data for checkout page
    452449     *
    453      * @param array $data_layer The datalayer content.
    454      *
    455      * @return array The datalayer content
     450     * @param array<string, mixed> $data_layer The datalayer content.
     451     *
     452     * @return array<string, mixed> The datalayer content
    456453     */
    457454    public function get_datalayer_content_checkout( array $data_layer ): array {
     
    484481     * Get the dataLayer data for order_received page
    485482     *
    486      * @param array $data_layer The datalayer content.
    487      *
    488      * @return array The datalayer content
     483     * @param array<string, mixed> $data_layer The datalayer content.
     484     *
     485     * @return array<string, mixed> The datalayer content
    489486     */
    490487    public function get_datalayer_content_order_received( array $data_layer ): array {
     
    556553     * Retrieves purchase event data for the data layer.
    557554     *
    558      * @param WC_Order $order The order.
    559      * @param array    $data_layer The datalayer content.
    560      *
    561      * @return array The datalayer content.
     555     * @param WC_Order             $order The order.
     556     * @param array<string, mixed> $data_layer The datalayer content.
     557     *
     558     * @return array<string, mixed> The datalayer content.
    562559     */
    563560    public function get_purchase_event( WC_Order $order, array $data_layer = [] ): array {
     
    604601     * Get the permalinkStructure property for the dataLayer
    605602     *
    606      * @param array $data_layer The datalayer content.
    607      *
    608      * @return array The datalayer content
     603     * @param array<string, mixed> $data_layer The datalayer content.
     604     *
     605     * @return array<string, mixed> The datalayer content
    609606     */
    610607    private function get_permalink_structure_property( array $data_layer ): array {
     
    623620     * Get the pages property for the dataLayer
    624621     *
    625      * @param array $data_layer The datalayer content.
    626      *
    627      * @return array The datalayer content
     622     * @param array<string, mixed> $data_layer The datalayer content.
     623     *
     624     * @return array<string, mixed> The datalayer content
    628625     */
    629626    public function get_pages_property( array $data_layer ): array {
     
    643640     * @param string $event_context The event context of the item data.
    644641     *
    645      * @return array The cart items.
     642     * @return array<int, mixed> The cart items.
    646643     */
    647644    public function get_cart_items( string $event_context ): array {
     
    682679     * Get item data.
    683680     *
    684      * @param WC_Product $product An instance of WP_Product.
    685      * @param array      $additional_item_attributes Any key-value pair that needs to be added to the item data.
    686      * @param string     $event_context The event context of the item data.
    687      *
    688      * @return array The item data.
     681     * @param WC_Product           $product An instance of WP_Product.
     682     * @param array<string, mixed> $additional_item_attributes Any key-value pair that needs to be added to the item data.
     683     * @param string               $event_context The event context of the item data.
     684     *
     685     * @return array<string, mixed> The item data.
    689686     */
    690687    public function get_item_data( $product, array $additional_item_attributes = [], string $event_context = '' ): array {
     
    742739     * Get the coupons and discount for an item
    743740     *
    744      * @param array $coupons The coupons.
    745      * @param array $item The item.
    746      *
    747      * @return array
     741     * @param array<int, mixed>    $coupons The coupons.
     742     * @param array<string, mixed> $item The item.
     743     *
     744     * @return array<string, mixed>
    748745     */
    749746    public function get_coupon_discount( array $coupons, array $item ): array {
     
    10471044
    10481045    /**
    1049      * Compatibility with TI WooCommerce Wishlist
    1050      *
    1051      * @param array $item_data Item data.
    1052      *
    1053      * @return array
    1054      */
    1055     public function Compatibility_With_TI_Wishlist( array $item_data ): array {
    1056 
    1057         foreach ( array_keys( $item_data ) as $key ) {
    1058             if ( strpos( $key, 'gtmkit_' ) === 0 ) {
    1059                 unset( $item_data[ $key ] );
    1060             }
    1061         }
    1062 
    1063         return $item_data;
    1064     }
    1065 
    1066     /**
    10671046     * Registers the actual data into each endpoint.
    10681047     */
     
    10961075     * @param WC_Product $product Current product data.
    10971076     *
    1098      * @return array $product Registered data or empty array if condition is not satisfied.
     1077     * @return array<string, mixed> $product Registered data or empty array if condition is not satisfied.
    10991078     */
    11001079    public function extend_product_data( $product ): array {
     
    11071086     * Register GTM data into products endpoint.
    11081087     *
    1109      * @param array $cart_item Cart item data.
    1110      *
    1111      * @return array $product Registered data or empty array if condition is not satisfied.
     1088     * @param array<string, mixed> $cart_item Cart item data.
     1089     *
     1090     * @return array<string, mixed> $product Registered data or empty array if condition is not satisfied.
    11121091     */
    11131092    public function extend_cart_data( array $cart_item ): array {
     
    11171096    }
    11181097
    1119 
    11201098    /**
    11211099     * Register subscription product schema into cart/items endpoint.
    11221100     *
    1123      * @return array Registered schema.
     1101     * @return array<string, mixed> Registered schema.
    11241102     */
    11251103    public function extend_product_schema(): array {
     
    11391117     * @param int $post_id The post ID.
    11401118     *
    1141      * @return array
     1119     * @return array<int, mixed>
    11421120     */
    11431121    public function has_woocommerce_blocks( int $post_id ): array {
     
    11621140     * Get WooCommerce blocks
    11631141     *
    1164      * @return array
     1142     * @return array<int, mixed>
    11651143     */
    11661144    public function get_woocommerce_blocks(): array {
     
    11711149     * Include customer data
    11721150     *
    1173      * @param array $data_layer The datalayer content.
    1174      * @param mixed $order_value Order value.
    1175      *
    1176      * @return array
     1151     * @param array<string, mixed> $data_layer The datalayer content.
     1152     * @param mixed                $order_value Order value.
     1153     *
     1154     * @return array<string, mixed>
    11771155     */
    11781156    public function include_customer_data( array $data_layer, $order_value ): array {
     
    12431221     * @param WC_Order $order The order.
    12441222     *
    1245      * @return array
     1223     * @return array<int, mixed>
    12461224     */
    12471225    private function get_order_items( WC_Order $order ): array {
  • gtm-kit/tags/2.0/src/Options.php

    r3118062 r3149785  
    2323     * All the options.
    2424     *
    25      * @var array
    26      */
    27     private $options;
     25     * @var array<string, mixed>
     26     */
     27    private array $options;
    2828
    2929    /**
    3030     * Map of all the default options
    3131     *
    32      * @var array
    33      */
    34     private static $map = [
     32     * @var array<string, array<string, array<string, mixed>>>
     33     */
     34    private static array $map = [
    3535        'general'      => [
    3636            'gtm_id'                  => [
     
    132132     * @param mixed $old_value The old value.
    133133     *
    134      * @return array|null
     134     * @return array<string, mixed>|null
    135135     */
    136136    public function pre_update_option( $new_value, $old_value ): ?array {
     
    144144     * The default options.
    145145     *
    146      * @return array
     146     * @return array<string, mixed>
    147147     */
    148148    public static function get_defaults(): array {
    149149
    150150        if ( ! function_exists( 'is_plugin_active' ) ) {
    151             include_once ABSPATH . 'wp-admin/includes/plugin.php';
     151            require_once ABSPATH . 'wp-admin/includes/plugin.php';
    152152        }
    153153
     
    217217     * @param string $key The option key.
    218218     *
    219      * @return array|null
     219     * @return array<string, mixed>|null
    220220     */
    221221    protected function get_default_key_value( string $group, string $key ): ?array {
     
    255255     * Set plugin options.
    256256     *
    257      * @param array $options Plugin options.
    258      * @param bool  $first_install Add option on first install.
    259      * @param bool  $overwrite_existing Overwrite existing settings or merge.
     257     * @param array<string, mixed> $options Plugin options.
     258     * @param bool                 $first_install Add option on first install.
     259     * @param bool                 $overwrite_existing Overwrite existing settings or merge.
    260260     */
    261261    public function set( array $options, bool $first_install = false, bool $overwrite_existing = true ): void {
     
    285285     * Process the generic plugin options.
    286286     *
    287      * @param array $options The options array.
    288      *
    289      * @return array
     287     * @param array<string, mixed> $options The options array.
     288     *
     289     * @return array<string, mixed>
    290290     */
    291291    private function process_generic_options( array $options ): array {
     
    314314     * Merge recursively, including a proper substitution of values in sub-arrays when keys are the same.
    315315     *
    316      * @return array
     316     * @return array<string, mixed>
    317317     */
    318318    public static function array_merge_recursive(): array {
     
    360360     * Get all the options, but without stripping the slashes.
    361361     *
    362      * @return array
     362     * @return array<string, mixed>
    363363     */
    364364    public function get_all_raw(): array {
  • gtm-kit/tags/2.0/src/js/woocommerce.js

    r3055017 r3149785  
    8787        ) {
    8888            event = 'add_to_cart';
    89         } else if (
     89        } else if ( window.gtmkit_settings.wc.wishlist &&
    9090            (eventTargetElement.closest('.products') ||
    9191                eventTargetElement.closest('.wc-block-grid__products')) &&
     
    149149            if ( eventTargetElement.closest( '.single_add_to_cart_button:not(.disabled,.input-needed)' ) ) {
    150150                event = 'add_to_cart';
    151             } else if ( eventTargetElement.closest( window.gtmkit_settings.wc.css_selectors.single_product_wishlist ) ) {
     151            } else if ( window.gtmkit_settings.wc.wishlist && eventTargetElement.closest( window.gtmkit_settings.wc.css_selectors.single_product_wishlist ) ) {
    152152                event = 'add_to_wishlist';
    153153            } else {
  • gtm-kit/tags/2.0/src/scss/_tailwind-compiled.scss

    r3134629 r3149785  
    11/*
    2 ! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com
     2! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com
    33*/
    44
     
    655655}
    656656
    657 .gtmkit-mb-0 {
    658   margin-bottom: 0px;
    659 }
    660 
    661657.gtmkit-mb-0\.5 {
    662658  margin-bottom: 0.125rem;
     
    703699}
    704700
     701.gtmkit-ml-6 {
     702  margin-left: 1.5rem;
     703}
     704
     705.gtmkit-mr-2 {
     706  margin-right: 0.5rem;
     707}
     708
    705709.gtmkit-mr-8 {
    706710  margin-right: 2rem;
     
    727731}
    728732
    729 .gtmkit-ml-6 {
    730   margin-left: 1.5rem;
    731 }
    732 
    733733.gtmkit-block {
    734734  display: block;
     
    747747}
    748748
    749 .gtmkit-h-0 {
    750   height: 0px;
     749.gtmkit-hidden {
     750  display: none;
    751751}
    752752
     
    755755}
    756756
    757 .gtmkit-h-2 {
    758   height: 0.5rem;
    759 }
    760 
    761757.gtmkit-h-2\.5 {
    762758  height: 0.625rem;
     
    771767}
    772768
     769.gtmkit-h-min {
     770  height: -moz-min-content;
     771  height: min-content;
     772}
     773
    773774.gtmkit-h-screen {
    774775  height: 100vh;
     
    783784}
    784785
    785 .gtmkit-w-2 {
    786   width: 0.5rem;
    787 }
    788 
    789786.gtmkit-w-2\.5 {
    790787  width: 0.625rem;
    791 }
    792 
    793 .gtmkit-w-3\/4 {
    794   width: 75%;
    795788}
    796789
     
    844837}
    845838
     839.gtmkit-max-w-screen-lg {
     840  max-width: 1024px;
     841}
     842
    846843.gtmkit-max-w-xl {
    847844  max-width: 36rem;
     
    860857}
    861858
     859.gtmkit-cursor-pointer {
     860  cursor: pointer;
     861}
     862
    862863.gtmkit-grid-cols-2 {
    863864  grid-template-columns: repeat(2, minmax(0, 1fr));
     
    876877}
    877878
     879.\!gtmkit-justify-start {
     880  justify-content: flex-start !important;
     881}
     882
    878883.gtmkit-justify-center {
    879884  justify-content: center;
     
    902907.gtmkit-gap-8 {
    903908  gap: 2rem;
     909}
     910
     911.gtmkit-gap-x-16 {
     912  -moz-column-gap: 4rem;
     913       column-gap: 4rem;
    904914}
    905915
     
    922932}
    923933
     934.gtmkit-space-y-4 > :not([hidden]) ~ :not([hidden]) {
     935  --tw-space-y-reverse: 0;
     936  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
     937  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
     938}
     939
    924940.gtmkit-space-y-8 > :not([hidden]) ~ :not([hidden]) {
    925941  --tw-space-y-reverse: 0;
     
    969985}
    970986
     987.gtmkit-border-t-0 {
     988  border-top-width: 0px;
     989}
     990
    971991.gtmkit-border-t-4 {
    972992  border-top-width: 4px;
     
    9941014}
    9951015
     1016.gtmkit-bg-color-background-disabled {
     1017  background-color: var(--gtmkit-button-disabled-bg);
     1018}
     1019
    9961020.gtmkit-bg-color-border {
    9971021  background-color: var(--gtmkit-border-color);
     
    10001024.gtmkit-bg-color-button-disabled {
    10011025  background-color: var(--gtmkit-button-disabled);
     1026}
     1027
     1028.gtmkit-bg-color-error {
     1029  background-color: var(--gtmkit-color-error);
    10021030}
    10031031
     
    10311059}
    10321060
     1061.\!gtmkit-px-3 {
     1062  padding-left: 0.75rem !important;
     1063  padding-right: 0.75rem !important;
     1064}
     1065
    10331066.\!gtmkit-px-6 {
    10341067  padding-left: 1.5rem !important;
     
    10411074}
    10421075
     1076.\!gtmkit-py-1 {
     1077  padding-top: 0.25rem !important;
     1078  padding-bottom: 0.25rem !important;
     1079}
     1080
    10431081.\!gtmkit-py-4 {
    10441082  padding-top: 1rem !important;
     
    10511089}
    10521090
     1091.gtmkit-px-1\.5 {
     1092  padding-left: 0.375rem;
     1093  padding-right: 0.375rem;
     1094}
     1095
    10531096.gtmkit-px-16 {
    10541097  padding-left: 4rem;
     
    11061149}
    11071150
     1151.gtmkit-py-3 {
     1152  padding-top: 0.75rem;
     1153  padding-bottom: 0.75rem;
     1154}
     1155
    11081156.gtmkit-py-4 {
    11091157  padding-top: 1rem;
     
    11161164}
    11171165
     1166.gtmkit-py-px {
     1167  padding-top: 1px;
     1168  padding-bottom: 1px;
     1169}
     1170
    11181171.gtmkit-pb-6 {
    11191172  padding-bottom: 1.5rem;
     
    12191272.gtmkit-leading-5 {
    12201273  line-height: 1.25rem;
     1274}
     1275
     1276.gtmkit-leading-\[1\.125rem\] {
     1277  line-height: 1.125rem;
    12211278}
    12221279
  • gtm-kit/tags/2.0/vendor/composer/autoload_classmap.php

    r3112163 r3149785  
    1717    'TLA_Media\\GTM_Kit\\Admin\\IntegrationsOptionsPage' => $baseDir . '/src/Admin/IntegrationsOptionsPage.php',
    1818    'TLA_Media\\GTM_Kit\\Admin\\MetaBox' => $baseDir . '/src/Admin/MetaBox.php',
     19    'TLA_Media\\GTM_Kit\\Admin\\Notification' => $baseDir . '/src/Admin/Notification.php',
     20    'TLA_Media\\GTM_Kit\\Admin\\NotificationsHandler' => $baseDir . '/src/Admin/NotificationsHandler.php',
     21    'TLA_Media\\GTM_Kit\\Admin\\PluginAvailability' => $baseDir . '/src/Admin/PluginAvailability.php',
     22    'TLA_Media\\GTM_Kit\\Admin\\PluginSuggestions' => $baseDir . '/src/Admin/PluginSuggestions.php',
    1923    'TLA_Media\\GTM_Kit\\Admin\\SetupWizard' => $baseDir . '/src/Admin/SetupWizard.php',
    2024    'TLA_Media\\GTM_Kit\\Admin\\TemplatesOptionsPage' => $baseDir . '/src/Admin/TemplatesOptionsPage.php',
     25    'TLA_Media\\GTM_Kit\\Admin\\UpgradesOptionsPage' => $baseDir . '/src/Admin/UpgradesOptionsPage.php',
     26    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\Conditional' => $baseDir . '/src/Common/Conditionals/Conditional.php',
     27    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\ContactForm7Conditional' => $baseDir . '/src/Common/Conditionals/ContactForm7Conditional.php',
     28    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\EasyDigitalDownloadsConditional' => $baseDir . '/src/Common/Conditionals/EasyDigitalDownloadsConditional.php',
     29    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\PremiumConditional' => $baseDir . '/src/Common/Conditionals/PremiumConditional.php',
     30    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\WooCommerceConditional' => $baseDir . '/src/Common/Conditionals/WooCommerceConditional.php',
    2131    'TLA_Media\\GTM_Kit\\Common\\RestAPIServer' => $baseDir . '/src/Common/RestAPIServer.php',
    2232    'TLA_Media\\GTM_Kit\\Common\\Util' => $baseDir . '/src/Common/Util.php',
  • gtm-kit/tags/2.0/vendor/composer/autoload_static.php

    r3112163 r3149785  
    3232        'TLA_Media\\GTM_Kit\\Admin\\IntegrationsOptionsPage' => __DIR__ . '/../..' . '/src/Admin/IntegrationsOptionsPage.php',
    3333        'TLA_Media\\GTM_Kit\\Admin\\MetaBox' => __DIR__ . '/../..' . '/src/Admin/MetaBox.php',
     34        'TLA_Media\\GTM_Kit\\Admin\\Notification' => __DIR__ . '/../..' . '/src/Admin/Notification.php',
     35        'TLA_Media\\GTM_Kit\\Admin\\NotificationsHandler' => __DIR__ . '/../..' . '/src/Admin/NotificationsHandler.php',
     36        'TLA_Media\\GTM_Kit\\Admin\\PluginAvailability' => __DIR__ . '/../..' . '/src/Admin/PluginAvailability.php',
     37        'TLA_Media\\GTM_Kit\\Admin\\PluginSuggestions' => __DIR__ . '/../..' . '/src/Admin/PluginSuggestions.php',
    3438        'TLA_Media\\GTM_Kit\\Admin\\SetupWizard' => __DIR__ . '/../..' . '/src/Admin/SetupWizard.php',
    3539        'TLA_Media\\GTM_Kit\\Admin\\TemplatesOptionsPage' => __DIR__ . '/../..' . '/src/Admin/TemplatesOptionsPage.php',
     40        'TLA_Media\\GTM_Kit\\Admin\\UpgradesOptionsPage' => __DIR__ . '/../..' . '/src/Admin/UpgradesOptionsPage.php',
     41        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\Conditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/Conditional.php',
     42        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\ContactForm7Conditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/ContactForm7Conditional.php',
     43        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\EasyDigitalDownloadsConditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/EasyDigitalDownloadsConditional.php',
     44        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\PremiumConditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/PremiumConditional.php',
     45        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\WooCommerceConditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/WooCommerceConditional.php',
    3646        'TLA_Media\\GTM_Kit\\Common\\RestAPIServer' => __DIR__ . '/../..' . '/src/Common/RestAPIServer.php',
    3747        'TLA_Media\\GTM_Kit\\Common\\Util' => __DIR__ . '/../..' . '/src/Common/Util.php',
  • gtm-kit/tags/2.0/vendor/composer/installed.php

    r3139454 r3149785  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '44b18f33aef58db2d6ac1b6fa29c4f9b583df746',
     6        'reference' => '8f779ad9f08f3aeba4a68076cd25114917840707',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '44b18f33aef58db2d6ac1b6fa29c4f9b583df746',
     16            'reference' => '8f779ad9f08f3aeba4a68076cd25114917840707',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • gtm-kit/tags/2.0/vendor/composer/platform_check.php

    r2780851 r3149785  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 70200)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 70400)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • gtm-kit/trunk/assets/admin/settings-rtl.css

    r3134629 r3149785  
    1 :root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-right:auto;margin-left:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0{margin-bottom:0}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-right:.5rem}.gtmkit-ml-4{margin-right:1rem}.gtmkit-mr-8{margin-left:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-ml-6{margin-right:1.5rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-h-0{height:0}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2{height:.5rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2{width:.5rem}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-3\/4{width:75%}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-left:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-6{padding-right:1.5rem!important;padding-left:1.5rem!important}.\!gtmkit-px-8{padding-right:2rem!important;padding-left:2rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-16{padding-right:4rem;padding-left:4rem}.gtmkit-px-2{padding-right:.5rem;padding-left:.5rem}.gtmkit-px-20{padding-right:5rem;padding-left:5rem}.gtmkit-px-3{padding-right:.75rem;padding-left:.75rem}.gtmkit-px-4{padding-right:1rem;padding-left:1rem}.gtmkit-px-5{padding-right:1.25rem;padding-left:1.25rem}.gtmkit-px-6{padding-right:1.5rem;padding-left:1.5rem}.gtmkit-px-8{padding-right:2rem;padding-left:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-top:1.5rem}.gtmkit-pb-6,.gtmkit-py-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:right}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit #wpcontent{padding-right:0!important}.gtmkit #wpcontent *,.gtmkit #wpcontent :after,.gtmkit #wpcontent :before{box-sizing:border-box}.gtmkit a{font-size:14px}.gtmkit a:focus{box-shadow:none}.gtmkit p{font-size:14px}.gtmkit .components-button.is-primary{background-color:var(--gtmkit-color-button)}.gtmkit .components-button .components-spinner{margin:0 1rem 0 0}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{font-size:14px;font-weight:600;text-transform:none}.gtmkit .slide-appear,.gtmkit .slide-enter{transform:translateY(100%)}.gtmkit .slide-appear-active,.gtmkit .slide-enter-active{transform:translateY(0);transition:transform .5s ease-in-out}.gtmkit .slide-exit{transform:translateY(0)}.gtmkit .slide-exit-active{transform:translateY(100%);transition:transform .5s ease-in-out}
     1:root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-right:auto;margin-left:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-right:.5rem}.gtmkit-ml-4{margin-right:1rem}.gtmkit-ml-6{margin-right:1.5rem}.gtmkit-mr-2{margin-left:.5rem}.gtmkit-mr-8{margin-left:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-hidden{display:none}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-min{height:-moz-min-content;height:min-content}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-screen-lg{max-width:1024px}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-cursor-pointer{cursor:pointer}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.\!gtmkit-justify-start{justify-content:flex-start!important}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-left:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-0{border-top-width:0}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-background-disabled{background-color:var(--gtmkit-button-disabled-bg)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-error{background-color:var(--gtmkit-color-error)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-3{padding-right:.75rem!important;padding-left:.75rem!important}.\!gtmkit-px-6{padding-right:1.5rem!important;padding-left:1.5rem!important}.\!gtmkit-px-8{padding-right:2rem!important;padding-left:2rem!important}.\!gtmkit-py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-1\.5{padding-right:.375rem;padding-left:.375rem}.gtmkit-px-16{padding-right:4rem;padding-left:4rem}.gtmkit-px-2{padding-right:.5rem;padding-left:.5rem}.gtmkit-px-20{padding-right:5rem;padding-left:5rem}.gtmkit-px-3{padding-right:.75rem;padding-left:.75rem}.gtmkit-px-4{padding-right:1rem;padding-left:1rem}.gtmkit-px-5{padding-right:1.25rem;padding-left:1.25rem}.gtmkit-px-6{padding-right:1.5rem;padding-left:1.5rem}.gtmkit-px-8{padding-right:2rem;padding-left:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-3{padding-bottom:.75rem;padding-top:.75rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.gtmkit-py-px{padding-bottom:1px;padding-top:1px}.gtmkit-pb-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:right}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-leading-\[1\.125rem\]{line-height:1.125rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit #wpcontent{padding-right:0!important}.gtmkit #wpcontent *,.gtmkit #wpcontent :after,.gtmkit #wpcontent :before{box-sizing:border-box}.gtmkit a{font-size:14px}.gtmkit a:focus{box-shadow:none}.gtmkit p{font-size:14px}.gtmkit .components-button.is-primary{background-color:var(--gtmkit-color-button)}.gtmkit .components-button .components-spinner{margin:0 1rem 0 0}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{font-size:14px;font-weight:600;text-transform:none}.gtmkit .slide-appear,.gtmkit .slide-enter{transform:translateY(100%)}.gtmkit .slide-appear-active,.gtmkit .slide-enter-active{transform:translateY(0);transition:transform .5s ease-in-out}.gtmkit .slide-exit{transform:translateY(0)}.gtmkit .slide-exit-active{transform:translateY(100%);transition:transform .5s ease-in-out}
  • gtm-kit/trunk/assets/admin/settings.asset.php

    r3139454 r3149785  
    1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '5675825ba95e3805cc8c');
     1<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives'), 'version' => 'e9e4e88a99fd728885a0');
  • gtm-kit/trunk/assets/admin/settings.css

    r3134629 r3149785  
    1 :root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-left:auto;margin-right:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0{margin-bottom:0}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-left:.5rem}.gtmkit-ml-4{margin-left:1rem}.gtmkit-mr-8{margin-right:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-ml-6{margin-left:1.5rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-h-0{height:0}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2{height:.5rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2{width:.5rem}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-3\/4{width:75%}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.\!gtmkit-px-8{padding-left:2rem!important;padding-right:2rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-16{padding-left:4rem;padding-right:4rem}.gtmkit-px-2{padding-left:.5rem;padding-right:.5rem}.gtmkit-px-20{padding-left:5rem;padding-right:5rem}.gtmkit-px-3{padding-left:.75rem;padding-right:.75rem}.gtmkit-px-4{padding-left:1rem;padding-right:1rem}.gtmkit-px-5{padding-left:1.25rem;padding-right:1.25rem}.gtmkit-px-6{padding-left:1.5rem;padding-right:1.5rem}.gtmkit-px-8{padding-left:2rem;padding-right:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-top:1.5rem}.gtmkit-pb-6,.gtmkit-py-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:left}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit #wpcontent{padding-left:0!important}.gtmkit #wpcontent *,.gtmkit #wpcontent :after,.gtmkit #wpcontent :before{box-sizing:border-box}.gtmkit a{font-size:14px}.gtmkit a:focus{box-shadow:none}.gtmkit p{font-size:14px}.gtmkit .components-button.is-primary{background-color:var(--gtmkit-color-button)}.gtmkit .components-button .components-spinner{margin:0 0 0 1rem}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{font-size:14px;font-weight:600;text-transform:none}.gtmkit .slide-appear,.gtmkit .slide-enter{transform:translateY(100%)}.gtmkit .slide-appear-active,.gtmkit .slide-enter-active{transform:translateY(0);transition:transform .5s ease-in-out}.gtmkit .slide-exit{transform:translateY(0)}.gtmkit .slide-exit-active{transform:translateY(100%);transition:transform .5s ease-in-out}
     1:root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-left:auto;margin-right:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-left:.5rem}.gtmkit-ml-4{margin-left:1rem}.gtmkit-ml-6{margin-left:1.5rem}.gtmkit-mr-2{margin-right:.5rem}.gtmkit-mr-8{margin-right:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-hidden{display:none}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-min{height:-moz-min-content;height:min-content}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-screen-lg{max-width:1024px}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-cursor-pointer{cursor:pointer}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.\!gtmkit-justify-start{justify-content:flex-start!important}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-0{border-top-width:0}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-background-disabled{background-color:var(--gtmkit-button-disabled-bg)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-error{background-color:var(--gtmkit-color-error)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!gtmkit-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.\!gtmkit-px-8{padding-left:2rem!important;padding-right:2rem!important}.\!gtmkit-py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-1\.5{padding-left:.375rem;padding-right:.375rem}.gtmkit-px-16{padding-left:4rem;padding-right:4rem}.gtmkit-px-2{padding-left:.5rem;padding-right:.5rem}.gtmkit-px-20{padding-left:5rem;padding-right:5rem}.gtmkit-px-3{padding-left:.75rem;padding-right:.75rem}.gtmkit-px-4{padding-left:1rem;padding-right:1rem}.gtmkit-px-5{padding-left:1.25rem;padding-right:1.25rem}.gtmkit-px-6{padding-left:1.5rem;padding-right:1.5rem}.gtmkit-px-8{padding-left:2rem;padding-right:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-3{padding-bottom:.75rem;padding-top:.75rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.gtmkit-py-px{padding-bottom:1px;padding-top:1px}.gtmkit-pb-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:left}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-leading-\[1\.125rem\]{line-height:1.125rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit #wpcontent{padding-left:0!important}.gtmkit #wpcontent *,.gtmkit #wpcontent :after,.gtmkit #wpcontent :before{box-sizing:border-box}.gtmkit a{font-size:14px}.gtmkit a:focus{box-shadow:none}.gtmkit p{font-size:14px}.gtmkit .components-button.is-primary{background-color:var(--gtmkit-color-button)}.gtmkit .components-button .components-spinner{margin:0 0 0 1rem}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{font-size:14px;font-weight:600;text-transform:none}.gtmkit .slide-appear,.gtmkit .slide-enter{transform:translateY(100%)}.gtmkit .slide-appear-active,.gtmkit .slide-enter-active{transform:translateY(0);transition:transform .5s ease-in-out}.gtmkit .slide-exit{transform:translateY(0)}.gtmkit .slide-exit-active{transform:translateY(100%);transition:transform .5s ease-in-out}
  • gtm-kit/trunk/assets/admin/settings.js

    r3139454 r3149785  
    1 (()=>{"use strict";var t={251:(t,e,n)=>{var a=n(196),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function m(t,e,n){var a,r={},m=null,c=null;for(a in void 0!==n&&(m=""+n),void 0!==e.key&&(m=""+e.key),void 0!==e.ref&&(c=e.ref),e)s.call(e,a)&&!l.hasOwnProperty(a)&&(r[a]=e[a]);if(t&&t.defaultProps)for(a in e=t.defaultProps)void 0===r[a]&&(r[a]=e[a]);return{$$typeof:i,type:t,key:m,ref:c,props:r,_owner:o.current}}e.Fragment=r,e.jsx=m,e.jsxs=m},893:(t,e,n)=>{t.exports=n(251)},196:t=>{t.exports=window.React}},e={};function n(a){var i=e[a];if(void 0!==i)return i.exports;var r=e[a]={exports:{}};return t[a](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(196),e=n.n(t);const a=window.wp.i18n,i=window.wp.element,r=window.wp.components,s=window.lodash,o=window.wp.apiFetch;var l=n.n(o);l().use(l().createNonceMiddleware(window.gtmkitSettings.nonce)),l().use(l().createRootURLMiddleware(window.gtmkitSettings.root));const m=async(t,e,n=null,a=!1)=>{let i={};try{i=await l()({path:t,method:e,...n&&{data:n}})}catch(n){return console.log(`${e} ${t} Errors:`,n),{[`gtm_kit_api_${e}_${t}_errors`]:!0}}return!0===a?i:!0===i.success?i.data:options},c=(t,e)=>{const n={...t};switch(e.type){case"FETCH_SETTINGS":n.fetchedSettings={...e.payload.fetchedSettings,integrations:e.payload.fetchedSettings.integrations||{}},n.stateSettings=e.payload.stateSettings,n.siteData=e.payload.siteData,n.installData=e.payload.installData,n.isPending=!1,n.canSave=!1,e.payload.fetchedSettings.gtm_kit_api_fetch_settings_errors&&(n.notice=(0,a.__)("An error occurred.","gtm-kit"),n.hasError=!0);break;case"UPDATE_SETTINGS_BEFORE":n.isPending=e.payload.isPending;break;case"UPDATE_SETTINGS":n.fetchedSettings=e.payload.fetchedSettings,n.stateSettings=e.payload.stateSettings,n.isPending=!1,n.canSave=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors,n.notice=e.payload.fetchedSettings.gtm_kit_api_update_settings_errors?(0,a.__)("An error occurred.","gtm-kit"):(0,a.__)("Saved Successfully.","gtm-kit"),n.hasError=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors;break;case"UPDATE_STATE":n.fetchedSettings=e.payload.fetchedSettings||n.fetchedSettings,n.stateSettings=e.payload.stateSettings||n.stateSettings,n.isPending=e.payload.isPending||n.isPending,n.notice=e.payload.notice||n.notice,n.hasError=e.payload.hasError||n.hasError,n.canSave=e.payload.canSave||n.canSave,n.isSendingSystemData=e.payload.isSendingSystemData||n.isSendingSystemData,n.supportTicket=e.payload.supportTicket||n.supportTicket,n.isSendingLicenseKey=e.payload.isSendingLicenseKey||n.isSendingLicenseKey,n.licenseKey=e.payload.licenseKey||n.licenseKey;break;case"SEND_SUPPORT_DATA_BEFORE":n.isSendingSystemData=e.payload.isSendingSystemData||n.isSendingSystemData;break;case"SEND_SUPPORT_DATA":n.isSendingSystemData=!1,n.isSystemDataSent=e.payload.isSystemDataSent||n.isSystemDataSent,n.systemDataMessage=e.payload.systemDataMessage||n.systemDataMessage;break;case"SEND_LICENSE_KEY_BEFORE":n.isSendingLicenseKey=e.payload.isSendingLicenseKey||n.isSendingLicenseKey;break;case"SEND_LICENSE_KEY":n.isSendingLicenseKey=!1,n.isLicenseKeySent=e.payload.isLicenseKeySent||n.isLicenseKeySent,n.licenseKeyMessage=e.payload.licenseKeyMessage||n.licenseKeyMessage}return n},g=(0,i.createContext)(),u=e=>{const[n,a]=(0,i.useReducer)(c,{fetchedSettings:{},stateSettings:{},isPending:!0,notice:"",hasError:!1,canSave:!1,supportTicket:"",isSystemDataSent:!1,systemDataMessage:"",licenseKey:"",isLicensenKeySent:!1,licenseKeyMessage:""}),r=async()=>{const t=window.gtmkitSettings.settings?window.gtmkitSettings.settings:{},e=window.gtmkitSettings.site_data?window.gtmkitSettings.site_data:{},n="wizard"===window.gtmkitSettings.currentPage?window.gtmkitSettings.install_data:{};a({type:"FETCH_SETTINGS",payload:{fetchedSettings:t,stateSettings:t,siteData:e,installData:n}})},o=async t=>{a({type:"UPDATE_STATE",payload:t})};(0,i.useEffect)((()=>{r()}),[]);const l={useDispatch:t=>{a(t)},useUpdateSettings:async()=>{a({type:"UPDATE_SETTINGS_BEFORE",payload:{isPending:!0}});const t=await(e=n.stateSettings,m("gtmkit/v1/set-options","POST",e));var e;a({type:"UPDATE_SETTINGS",payload:{fetchedSettings:t,stateSettings:t}})},useFetchSettings:r,useUpdateState:o,useUpdateStateSettings:async(t,e,a)=>{const i=JSON.parse(JSON.stringify(n.stateSettings));let r;i[t][e]=a,r=!(0,s.isEqual)(i,n.fetchedSettings),o({stateSettings:i,canSave:r})},useImportSettings:async(t,e)=>{const a=JSON.parse(JSON.stringify(n.stateSettings));let i;const r={};r.general={...a.general,...e.general},"integrations"in e&&(r.integrations={...a.integrations,...e.integrations}),i=!(0,s.isEqual)(r,n.fetchedSettings),o({stateSettings:r,canSave:i})},useUpdateSupportTicket:async t=>{o({supportTicket:t})},useSendSystemData:async()=>{a({type:"SEND_SUPPORT_DATA_BEFORE",payload:{isSendingSystemData:!0}});const t=await(e=n.supportTicket,m("gtmkit/v1/send-support-data","POST",e,!0));var e;a({type:"SEND_SUPPORT_DATA",payload:{isSendingSystemData:!1,isSystemDataSent:t.success,systemDataMessage:t.data}})},useUpdateLicenseKey:async t=>{o({licenseKey:t})},useSendLicenseKey:async()=>{a({type:"SEND_LICENSE_KEY_BEFORE",payload:{isSendingLicenseKey:!0}});const t=await(e=n.licenseKey,m("gtmkit/v1/send-license-key","POST",e,!0));var e;a({type:"SEND_LICENSE_KEY",payload:{isSendingLicenseKey:!1,isLicenseKeySent:t.success,licenseKeyMessage:t.data}})},useSettings:n.stateSettings,useIsPending:n.isPending,useNotice:n.notice,useHasError:n.hasError,useCanSave:n.canSave,useSiteData:n.siteData,useInstallData:n.installData,useIsSending:n.isSendingSystemData,useSupportTicket:n.supportTicket,useIsSystemDataSent:n.isSystemDataSent,useSystemDataMessage:n.systemDataMessage,useIsSendingLicenseKey:n.isSendingLicenseKey,useLicenseKey:n.licenseKey,useIsLicenseKeySent:n.isLicenseKeySent,useLicenseKeyMessage:n.licenseKeyMessage,useUserRoles:window.gtmkitSettings.user_roles?window.gtmkitSettings.user_roles:[],isPremium:!!window.gtmkitSettings.isPremium&&window.gtmkitSettings.isPremium};return(0,t.createElement)(g.Provider,{value:l},e.children)};function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},d.apply(this,arguments)}var p;!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(p||(p={}));const h="popstate";function _(t,e){if(!1===t||null==t)throw new Error(e)}function k(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function f(t,e){return{usr:t.state,key:t.key,idx:e}}function S(t,e,n,a){return void 0===n&&(n=null),d({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?E(e):e,{state:n,key:e&&e.key||a||Math.random().toString(36).substr(2,8)})}function b(t){let{pathname:e="/",search:n="",hash:a=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(e+="#"===a.charAt(0)?a:"#"+a),e}function E(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let a=t.indexOf("?");a>=0&&(e.search=t.substr(a),t=t.substr(0,a)),t&&(e.pathname=t)}return e}var v;function y(t,e,n){return void 0===n&&(n="/"),function(t,e,n,a){let i=R(("string"==typeof e?E(e):e).pathname||"/",n);if(null==i)return null;let r=x(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,n)=>t===e[n]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(r);let s=null;for(let t=0;null==s&&t<r.length;++t){let e=M(i);s=G(r[t],e,a)}return s}(t,e,n,!1)}function x(t,e,n,a){void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===a&&(a="");let i=(t,i,r)=>{let s={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};s.relativePath.startsWith("/")&&(_(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(a.length));let o=K([a,s.relativePath]),l=n.concat(s);t.children&&t.children.length>0&&(_(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),x(t.children,e,l,o)),(null!=t.path||t.index)&&e.push({path:o,score:I(o,t.index),routesMeta:l})};return t.forEach(((t,e)=>{var n;if(""!==t.path&&null!=(n=t.path)&&n.includes("?"))for(let n of w(t.path))i(t,e,n);else i(t,e)})),e}function w(t){let e=t.split("/");if(0===e.length)return[];let[n,...a]=e,i=n.endsWith("?"),r=n.replace(/\?$/,"");if(0===a.length)return i?[r,""]:[r];let s=w(a.join("/")),o=[];return o.push(...s.map((t=>""===t?r:[r,t].join("/")))),i&&o.push(...s),o.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const N=/^:[\w-]+$/,C=3,j=2,T=1,U=10,D=-2,P=t=>"*"===t;function I(t,e){let n=t.split("/"),a=n.length;return n.some(P)&&(a+=D),e&&(a+=j),n.filter((t=>!P(t))).reduce(((t,e)=>t+(N.test(e)?C:""===e?T:U)),a)}function G(t,e,n){void 0===n&&(n=!1);let{routesMeta:a}=t,i={},r="/",s=[];for(let t=0;t<a.length;++t){let o=a[t],l=t===a.length-1,m="/"===r?e:e.slice(r.length)||"/",c=O({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},m),g=o.route;if(!c&&l&&n&&!a[a.length-1].route.index&&(c=O({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},m)),!c)return null;Object.assign(i,c.params),s.push({params:i,pathname:K([r,c.pathname]),pathnameBase:H(K([r,c.pathnameBase])),route:g}),"/"!==c.pathnameBase&&(r=K([r,c.pathnameBase]))}return s}function O(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[n,a]=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!0),k("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let a=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((t,e,n)=>(a.push({paramName:e,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return t.endsWith("*")?(a.push({paramName:"*"}),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==t&&"/"!==t&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),a]}(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let r=i[0],s=r.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:a.reduce(((t,e,n)=>{let{paramName:a,isOptional:i}=e;if("*"===a){let t=o[n]||"";s=r.slice(0,r.length-t.length).replace(/(.)\/+$/,"$1")}const l=o[n];return t[a]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),t}),{}),pathname:r,pathnameBase:s,pattern:t}}function M(t){try{return t.split("/").map((t=>decodeURIComponent(t).replace(/\//g,"%2F"))).join("/")}catch(e){return k(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function R(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,a=t.charAt(n);return a&&"/"!==a?null:t.slice(n)||"/"}function L(t,e,n,a){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(a)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(t,e){let n=function(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}(t);return e?n.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)):n.map((t=>t.pathnameBase))}function F(t,e,n,a){let i;void 0===a&&(a=!1),"string"==typeof t?i=E(t):(i=d({},t),_(!i.pathname||!i.pathname.includes("?"),L("?","pathname","search",i)),_(!i.pathname||!i.pathname.includes("#"),L("#","pathname","hash",i)),_(!i.search||!i.search.includes("#"),L("#","search","hash",i)));let r,s=""===t||""===i.pathname,o=s?"/":i.pathname;if(null==o)r=n;else{let t=e.length-1;if(!a&&o.startsWith("..")){let e=o.split("/");for(;".."===e[0];)e.shift(),t-=1;i.pathname=e.join("/")}r=t>=0?e[t]:"/"}let l=function(t,e){void 0===e&&(e="/");let{pathname:n,search:a="",hash:i=""}="string"==typeof t?E(t):t,r=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:r,search:B(a),hash:W(i)}}(i,r),m=o&&"/"!==o&&o.endsWith("/"),c=(s||"."===o)&&n.endsWith("/");return l.pathname.endsWith("/")||!m&&!c||(l.pathname+="/"),l}const K=t=>t.join("/").replace(/\/\/+/g,"/"),H=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),B=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",W=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const $=["post","put","patch","delete"],z=(new Set($),["get",...$]);function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},J.apply(this,arguments)}new Set(z),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const V=t.createContext(null),q=t.createContext(null),Y=t.createContext(null),X=t.createContext(null),Q=t.createContext({outlet:null,matches:[],isDataRoute:!1}),Z=t.createContext(null);function tt(){return null!=t.useContext(X)}function et(){return tt()||_(!1),t.useContext(X).location}function nt(e){t.useContext(Y).static||t.useLayoutEffect(e)}function at(){let{isDataRoute:e}=t.useContext(Q);return e?function(){let{router:e}=function(e){let n=t.useContext(V);return n||_(!1),n}(ct.UseNavigateStable),n=ut(gt.UseNavigateStable),a=t.useRef(!1);return nt((()=>{a.current=!0})),t.useCallback((function(t,i){void 0===i&&(i={}),a.current&&("number"==typeof t?e.navigate(t):e.navigate(t,J({fromRouteId:n},i)))}),[e,n])}():function(){tt()||_(!1);let e=t.useContext(V),{basename:n,future:a,navigator:i}=t.useContext(Y),{matches:r}=t.useContext(Q),{pathname:s}=et(),o=JSON.stringify(A(r,a.v7_relativeSplatPath)),l=t.useRef(!1);return nt((()=>{l.current=!0})),t.useCallback((function(t,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof t)return void i.go(t);let r=F(t,JSON.parse(o),s,"path"===a.relative);null==e&&"/"!==n&&(r.pathname="/"===r.pathname?n:K([n,r.pathname])),(a.replace?i.replace:i.push)(r,a.state,a)}),[n,i,o,s,e])}()}function it(e,n){let{relative:a}=void 0===n?{}:n,{future:i}=t.useContext(Y),{matches:r}=t.useContext(Q),{pathname:s}=et(),o=JSON.stringify(A(r,i.v7_relativeSplatPath));return t.useMemo((()=>F(e,JSON.parse(o),s,"path"===a)),[e,o,s,a])}function rt(e,n,a,i){tt()||_(!1);let{navigator:r}=t.useContext(Y),{matches:s}=t.useContext(Q),o=s[s.length-1],l=o?o.params:{},m=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let c,g=et();if(n){var u;let t="string"==typeof n?E(n):n;"/"===m||(null==(u=t.pathname)?void 0:u.startsWith(m))||_(!1),c=t}else c=g;let d=c.pathname||"/",h=d;if("/"!==m){let t=m.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(t.length).join("/")}let k=y(e,{pathname:h}),f=function(e,n,a,i){var r;if(void 0===n&&(n=[]),void 0===a&&(a=null),void 0===i&&(i=null),null==e){var s;if(null==(s=a)||!s.errors)return null;e=a.matches}let o=e,l=null==(r=a)?void 0:r.errors;if(null!=l){let t=o.findIndex((t=>t.route.id&&void 0!==(null==l?void 0:l[t.route.id])));t>=0||_(!1),o=o.slice(0,Math.min(o.length,t+1))}let m=!1,c=-1;if(a&&i&&i.v7_partialHydration)for(let t=0;t<o.length;t++){let e=o[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=t),e.route.id){let{loaderData:t,errors:n}=a,i=e.route.loader&&void 0===t[e.route.id]&&(!n||void 0===n[e.route.id]);if(e.route.lazy||i){m=!0,o=c>=0?o.slice(0,c+1):[o[0]];break}}}return o.reduceRight(((e,i,r)=>{let s,g=!1,u=null,d=null;var p;a&&(s=l&&i.route.id?l[i.route.id]:void 0,u=i.route.errorElement||ot,m&&(c<0&&0===r?(dt[p="route-fallback"]||(dt[p]=!0),g=!0,d=null):c===r&&(g=!0,d=i.route.hydrateFallbackElement||null)));let h=n.concat(o.slice(0,r+1)),_=()=>{let n;return n=s?u:g?d:i.route.Component?t.createElement(i.route.Component,null):i.route.element?i.route.element:e,t.createElement(mt,{match:i,routeContext:{outlet:e,matches:h,isDataRoute:null!=a},children:n})};return a&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?t.createElement(lt,{location:a.location,revalidation:a.revalidation,component:u,error:s,children:_(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):_()}),null)}(k&&k.map((t=>Object.assign({},t,{params:Object.assign({},l,t.params),pathname:K([m,r.encodeLocation?r.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?m:K([m,r.encodeLocation?r.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),s,a,i);return n&&f?t.createElement(X.Provider,{value:{location:J({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:p.Pop}},f):f}function st(){let e=function(){var e;let n=t.useContext(Z),a=function(e){let n=t.useContext(q);return n||_(!1),n}(gt.UseRouteError),i=ut(gt.UseRouteError);return void 0!==n?n:null==(e=a.errors)?void 0:e[i]}(),n=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),a?t.createElement("pre",{style:i},a):null,null)}const ot=t.createElement(st,null);class lt extends t.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?t.createElement(Q.Provider,{value:this.props.routeContext},t.createElement(Z.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mt(e){let{routeContext:n,match:a,children:i}=e,r=t.useContext(V);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),t.createElement(Q.Provider,{value:n},i)}var ct=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(ct||{}),gt=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(gt||{});function ut(e){let n=function(e){let n=t.useContext(Q);return n||_(!1),n}(),a=n.matches[n.matches.length-1];return a.route.id||_(!1),a.route.id}const dt={};function pt(e){let{to:n,replace:a,state:i,relative:r}=e;tt()||_(!1);let{future:s,static:o}=t.useContext(Y),{matches:l}=t.useContext(Q),{pathname:m}=et(),c=at(),g=F(n,A(l,s.v7_relativeSplatPath),m,"path"===r),u=JSON.stringify(g);return t.useEffect((()=>c(JSON.parse(u),{replace:a,state:i,relative:r})),[c,u,r,a,i]),null}function ht(t){_(!1)}function _t(e){let{basename:n="/",children:a=null,location:i,navigationType:r=p.Pop,navigator:s,static:o=!1,future:l}=e;tt()&&_(!1);let m=n.replace(/^\/*/,"/"),c=t.useMemo((()=>({basename:m,navigator:s,static:o,future:J({v7_relativeSplatPath:!1},l)})),[m,l,s,o]);"string"==typeof i&&(i=E(i));let{pathname:g="/",search:u="",hash:d="",state:h=null,key:k="default"}=i,f=t.useMemo((()=>{let t=R(g,m);return null==t?null:{location:{pathname:t,search:u,hash:d,state:h,key:k},navigationType:r}}),[m,g,u,d,h,k,r]);return null==f?null:t.createElement(Y.Provider,{value:c},t.createElement(X.Provider,{children:a,value:f}))}function kt(t){let{children:e,location:n}=t;return rt(ft(e),n)}function ft(e,n){void 0===n&&(n=[]);let a=[];return t.Children.forEach(e,((e,i)=>{if(!t.isValidElement(e))return;let r=[...n,i];if(e.type===t.Fragment)return void a.push.apply(a,ft(e.props.children,r));e.type!==ht&&_(!1),e.props.index&&e.props.children&&_(!1);let s={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=ft(e.props.children,r)),a.push(s)})),a}t.startTransition,new Promise((()=>{})),t.Component;const St=window.ReactDOM;var bt=n.n(St);function Et(){return Et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Et.apply(this,arguments)}function vt(t,e){if(null==t)return{};var n,a,i={},r=Object.keys(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||(i[n]=t[n]);return i}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const yt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],xt=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(t){}const wt=t.createContext({isTransitioning:!1});new Map;const Nt=t.startTransition;function Ct(e){let{basename:n,children:a,future:i,window:r}=e,s=t.useRef();null==s.current&&(s.current=function(t){return void 0===t&&(t={}),function(t,e,n,a){void 0===a&&(a={});let{window:i=document.defaultView,v5Compat:r=!1}=a,s=i.history,o=p.Pop,l=null,m=c();function c(){return(s.state||{idx:null}).idx}function g(){o=p.Pop;let t=c(),e=null==t?null:t-m;m=t,l&&l({action:o,location:k.location,delta:e})}function u(t){let e="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof t?t:b(t);return n=n.replace(/ $/,"%20"),_(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}null==m&&(m=0,s.replaceState(d({},s.state,{idx:m}),""));let k={get action(){return o},get location(){return t(i,s)},listen(t){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(h,g),l=t,()=>{i.removeEventListener(h,g),l=null}},createHref:t=>e(i,t),createURL:u,encodeLocation(t){let e=u(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){o=p.Push;let a=S(k.location,t,e);n&&n(a,t),m=c()+1;let g=f(a,m),u=k.createHref(a);try{s.pushState(g,"",u)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;i.location.assign(u)}r&&l&&l({action:o,location:k.location,delta:1})},replace:function(t,e){o=p.Replace;let a=S(k.location,t,e);n&&n(a,t),m=c();let i=f(a,m),g=k.createHref(a);s.replaceState(i,"",g),r&&l&&l({action:o,location:k.location,delta:0})},go:t=>s.go(t)};return k}((function(t,e){let{pathname:n="/",search:a="",hash:i=""}=E(t.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),S("",{pathname:n,search:a,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){let n=t.document.querySelector("base"),a="";if(n&&n.getAttribute("href")){let e=t.location.href,n=e.indexOf("#");a=-1===n?e:e.slice(0,n)}return a+"#"+("string"==typeof e?e:b(e))}),(function(t,e){k("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),t)}({window:r,v5Compat:!0}));let o=s.current,[l,m]=t.useState({action:o.action,location:o.location}),{v7_startTransition:c}=i||{},g=t.useCallback((t=>{c&&Nt?Nt((()=>m(t))):m(t)}),[m,c]);return t.useLayoutEffect((()=>o.listen(g)),[o,g]),t.createElement(_t,{basename:n,children:a,location:l.location,navigationType:l.action,navigator:o,future:i})}St.flushSync,t.useId;const jt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Tt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ut=t.forwardRef((function(e,n){let a,{onClick:i,relative:r,reloadDocument:s,replace:o,state:l,target:m,to:c,preventScrollReset:g,unstable_viewTransition:u}=e,d=vt(e,yt),{basename:p}=t.useContext(Y),h=!1;if("string"==typeof c&&Tt.test(c)&&(a=c,jt))try{let t=new URL(window.location.href),e=c.startsWith("//")?new URL(t.protocol+c):new URL(c),n=R(e.pathname,p);e.origin===t.origin&&null!=n?c=n+e.search+e.hash:h=!0}catch(t){}let k=function(e,n){let{relative:a}=void 0===n?{}:n;tt()||_(!1);let{basename:i,navigator:r}=t.useContext(Y),{hash:s,pathname:o,search:l}=it(e,{relative:a}),m=o;return"/"!==i&&(m="/"===o?i:K([i,o])),r.createHref({pathname:m,search:l,hash:s})}(c,{relative:r}),f=function(e,n){let{target:a,replace:i,state:r,preventScrollReset:s,relative:o,unstable_viewTransition:l}=void 0===n?{}:n,m=at(),c=et(),g=it(e,{relative:o});return t.useCallback((t=>{if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(t,a)){t.preventDefault();let n=void 0!==i?i:b(c)===b(g);m(e,{replace:n,state:r,preventScrollReset:s,relative:o,unstable_viewTransition:l})}}),[c,m,g,i,r,a,e,s,o,l])}(c,{replace:o,state:l,target:m,preventScrollReset:g,relative:r,unstable_viewTransition:u});return t.createElement("a",Et({},d,{href:a||k,onClick:h||s?i:function(t){i&&i(t),t.defaultPrevented||f(t)},ref:n,target:m}))})),Dt=t.forwardRef((function(e,n){let{"aria-current":a="page",caseSensitive:i=!1,className:r="",end:s=!1,style:o,to:l,unstable_viewTransition:m,children:c}=e,g=vt(e,xt),u=it(l,{relative:g.relative}),d=et(),p=t.useContext(q),{navigator:h,basename:k}=t.useContext(Y),f=null!=p&&function(e,n){void 0===n&&(n={});let a=t.useContext(wt);null==a&&_(!1);let{basename:i}=function(e){let n=t.useContext(V);return n||_(!1),n}(Pt.useViewTransitionState),r=it(e,{relative:n.relative});if(!a.isTransitioning)return!1;let s=R(a.currentLocation.pathname,i)||a.currentLocation.pathname,o=R(a.nextLocation.pathname,i)||a.nextLocation.pathname;return null!=O(r.pathname,o)||null!=O(r.pathname,s)}(u)&&!0===m,S=h.encodeLocation?h.encodeLocation(u).pathname:u.pathname,b=d.pathname,E=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;i||(b=b.toLowerCase(),E=E?E.toLowerCase():null,S=S.toLowerCase()),E&&k&&(E=R(E,k)||E);const v="/"!==S&&S.endsWith("/")?S.length-1:S.length;let y,x=b===S||!s&&b.startsWith(S)&&"/"===b.charAt(v),w=null!=E&&(E===S||!s&&E.startsWith(S)&&"/"===E.charAt(S.length)),N={isActive:x,isPending:w,isTransitioning:f},C=x?a:void 0;y="function"==typeof r?r(N):[r,x?"active":null,w?"pending":null,f?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(N):o;return t.createElement(Ut,Et({},g,{"aria-current":C,className:y,ref:n,style:j,to:l,unstable_viewTransition:m}),"function"==typeof c?c(N):c)}));var Pt,It;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Pt||(Pt={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(It||(It={}));const Gt=({title:e})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("header",{className:"gtmkit-px-8 gtmkit-py-6 gtmkit-sticky"},(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-items-center gtmkit-justify-between"},(0,t.createElement)("h1",{className:"gtmkit-flex gtmkit-items-center gtmkit-font-medium gtmkit-text-3xl"},(0,t.createElement)("svg",{className:"gtmkit-mr-8",height:"44",viewBox:"0 0 160 54",width:"128",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{fill:"#888",height:"54",rx:"4.265",width:"160"}),(0,t.createElement)("path",{d:"m88.659 7.002h-49.266c-2.915 0-5.378-.184-9.23 2.596l-18.743 12.752c-4.549 3.292-4.571 6.001 0 9.302l18.743 12.751c3.652 2.646 6.299 2.597 9.23 2.597h15.686 33.58c2.931-.057 5.394-1.784 5.34-3.923v-32.21c-.012-2.134-2.409-3.865-5.34-3.865z",fill:"#3969bb",transform:"matrix(-1 0 0 -1 101.999867 53.999547)"}),(0,t.createElement)("g",{fill:"#fff",transform:"matrix(1.465202 0 0 1.465202 -4.582436 -7.553126)"},(0,t.createElement)("path",{d:"m18.316 23.086h4.632v6.052c-.75.245-1.459.415-2.121.514-.663.098-1.341.148-2.033.148-1.764 0-3.106-.517-4.035-1.554-.929-1.034-1.395-2.519-1.395-4.457 0-1.886.538-3.356 1.617-4.41 1.078-1.054 2.573-1.579 4.481-1.579 1.2 0 2.357.239 3.469.718l-.823 1.979c-.85-.425-1.737-.637-2.657-.637-1.071 0-1.932.358-2.572 1.077-.645.718-.968 1.685-.968 2.899 0 1.267.26 2.233.78 2.904.516.667 1.271.999 2.262.999.517 0 1.041-.052 1.572-.158v-2.435h-2.209zm11.912 6.555h-2.474v-9.614h-3.173v-2.06h8.816v2.06h-3.169zm9.908 0-2.811-9.158h-.072c.103 1.863.154 3.105.154 3.728v5.43h-2.213v-11.674h3.368l2.764 8.927h.048l2.934-8.927h3.369v11.674h-2.308v-5.525c0-.261 0-.561.009-.903.009-.341.048-1.246.112-2.716h-.074l-3.011 9.144z"}),(0,t.createElement)("path",{d:"m88.883 31.898h-3.811l-4.147-6.67-1.417 1.018v5.652h-3.357v-15.83h3.357v7.242l1.318-1.861 4.293-5.381h3.724l-5.523 7.006zm1.589-15.233c0-1.075.6-1.614 1.8-1.614 1.199 0 1.798.539 1.798 1.614 0 .512-.148.91-.45 1.196-.297.284-.749.429-1.348.429-1.2 0-1.8-.543-1.8-1.625zm3.449 15.233h-3.302v-12.104h3.302zm8.563-2.413c.578 0 1.271-.128 2.077-.38v2.456c-.82.37-1.831.552-3.031.552-1.324 0-2.28-.333-2.885-1.001-.602-.667-.902-1.668-.902-3.003v-5.835h-1.585v-1.399l1.823-1.103.949-2.557h2.115v2.579h3.388v2.48h-3.388v5.835c0 .467.129.815.393 1.041.264.222.614.335 1.046.335z"}))),e)))),Ot=({to:e,title:n})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Dt,{to:e,className:({isActive:t})=>"gtmkit-border-b-4 gtmkit-border-white gtmkit-text-color-grey gtmkit-font-semibold gtmkit-pt-5 gtmkit-pb-[18px] hover:gtmkit-border-color-grey "+(t?"gtmkit-text-color-heading gtmkit-border-b-color-primary ":"")},n)),Mt=({NavList:e})=>(0,t.createElement)("nav",{className:"gtmkit-flex gtmkit-flex-wrap gtmkit-items-center gtmkit-px-8 gtmkit-border-y gtmkit-bg-white gtmkit-border-color-border gtmkit-text-[15px] gtmkit-space-x-9"},e.map((function(e){return(0,t.createElement)(Ot,{key:e.to,to:e.to,title:e.title})})));function Rt(){return Rt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Rt.apply(this,arguments)}function Lt(t,e){if(null==t)return{};var n,a,i={},r=Object.keys(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||(i[n]=t[n]);return i}function At(t,e){return At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},At(t,e)}function Ft(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,At(t,e)}function Kt(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Ht=e().createContext(null);var Bt=function(t){return t.scrollTop},Wt="unmounted",$t="exited",zt="entering",Jt="entered",Vt="exiting",qt=function(t){function n(e,n){var a;a=t.call(this,e,n)||this;var i,r=n&&!n.isMounting?e.enter:e.appear;return a.appearStatus=null,e.in?r?(i=$t,a.appearStatus=zt):i=Jt:i=e.unmountOnExit||e.mountOnEnter?Wt:$t,a.state={status:i},a.nextCallback=null,a}Ft(n,t),n.getDerivedStateFromProps=function(t,e){return t.in&&e.status===Wt?{status:$t}:null};var a=n.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==zt&&n!==Jt&&(e=zt):n!==zt&&n!==Jt||(e=Vt)}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,a=this.props.timeout;return t=e=n=a,null!=a&&"number"!=typeof a&&(t=a.exit,e=a.enter,n=void 0!==a.appear?a.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===zt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:bt().findDOMNode(this);n&&Bt(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$t&&this.setState({status:Wt})},a.performEnter=function(t){var e=this,n=this.props.enter,a=this.context?this.context.isMounting:t,i=this.props.nodeRef?[a]:[bt().findDOMNode(this),a],r=i[0],s=i[1],o=this.getTimeouts(),l=a?o.appear:o.enter;t||n?(this.props.onEnter(r,s),this.safeSetState({status:zt},(function(){e.props.onEntering(r,s),e.onTransitionEnd(l,(function(){e.safeSetState({status:Jt},(function(){e.props.onEntered(r,s)}))}))}))):this.safeSetState({status:Jt},(function(){e.props.onEntered(r)}))},a.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),a=this.props.nodeRef?void 0:bt().findDOMNode(this);e?(this.props.onExit(a),this.safeSetState({status:Vt},(function(){t.props.onExiting(a),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:$t},(function(){t.props.onExited(a)}))}))}))):this.safeSetState({status:$t},(function(){t.props.onExited(a)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(a){n&&(n=!1,e.nextCallback=null,t(a))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:bt().findDOMNode(this),a=null==t&&!this.props.addEndListener;if(n&&!a){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=i[0],s=i[1];this.props.addEndListener(r,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===Wt)return null;var n=this.props,a=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Lt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e().createElement(Ht.Provider,{value:null},"function"==typeof a?a(t,i):e().cloneElement(e().Children.only(a),i))},n}(e().Component);function Yt(){}qt.contextType=Ht,qt.propTypes={},qt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yt,onEntering:Yt,onEntered:Yt,onExit:Yt,onExiting:Yt,onExited:Yt},qt.UNMOUNTED=Wt,qt.EXITED=$t,qt.ENTERING=zt,qt.ENTERED=Jt,qt.EXITING=Vt;const Xt=qt;var Qt=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return a=e,void((n=t).classList?n.classList.remove(a):"string"==typeof n.className?n.className=Kt(n.className,a):n.setAttribute("class",Kt(n.className&&n.className.baseVal||"",a)));var n,a}))},Zt=function(t){function n(){for(var e,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var a=e.resolveArguments(t,n),i=a[0],r=a[1];e.removeClasses(i,"exit"),e.addClass(i,r?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var a=e.resolveArguments(t,n),i=a[0],r=a[1]?"appear":"enter";e.addClass(i,r,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var a=e.resolveArguments(t,n),i=a[0],r=a[1]?"appear":"enter";e.removeClasses(i,r),e.addClass(i,r,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,a="string"==typeof n,i=a?(a&&n?n+"-":"")+t:n[t];return{baseClassName:i,activeClassName:a?i+"-active":n[t+"Active"],doneClassName:a?i+"-done":n[t+"Done"]}},e}Ft(n,t);var a=n.prototype;return a.addClass=function(t,e,n){var a=this.getClassNames(e)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&i&&(a+=" "+i),"active"===n&&t&&Bt(t),a&&(this.appliedClasses[e][n]=a,function(t,e){t&&e&&e.split(" ").forEach((function(e){return a=e,void((n=t).classList?n.classList.add(a):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,a)||("string"==typeof n.className?n.className=n.className+" "+a:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+a)));var n,a}))}(t,a))},a.removeClasses=function(t,e){var n=this.appliedClasses[e],a=n.base,i=n.active,r=n.done;this.appliedClasses[e]={},a&&Qt(t,a),i&&Qt(t,i),r&&Qt(t,r)},a.render=function(){var t=this.props,n=(t.classNames,Lt(t,["classNames"]));return e().createElement(Xt,Rt({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(e().Component);Zt.defaultProps={classNames:""},Zt.propTypes={};const te=Zt,ee=({title:e=(0,a.__)("Save","gtm-kit"),className:n="gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey"})=>{const{useUpdateSettings:s,useIsPending:o,useCanSave:l}=(0,i.useContext)(g);return(0,t.createElement)(r.Button,{className:n,onClick:()=>s(),variant:"primary",disabled:o||!l},l?(0,a.__)(e,"gtm-kit"):(0,a.__)("Saved","gtm-kit"),o?(0,t.createElement)(r.Spinner,null):"")},ne=()=>{const{useCanSave:e}=(0,i.useContext)(g);return(0,t.createElement)(te,{in:e,timeout:500,classNames:"slide",unmountOnExit:!0},(0,t.createElement)("footer",{className:"gtmkit-fixed gtmkit-bottom-0 gtmkit-w-full gtmkit-z-10 gtmkit-bg-color-grey gtmkit-text-white gtmkit-p-8"},(0,t.createElement)(ee,null)))},ae=({subject:e})=>{const n=!0===e||"on"===e,i=!0===n?"gtmkit-bg-color-success":"gtmkit-bg-color-button-disabled";return(0,t.createElement)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-2 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase "+i},n?(0,a.__)("Active","gtm-kit"):(0,a.__)("Inactive","gtm-kit"))},ie=(0,i.forwardRef)((({children:e,className:n="",...a},i)=>(0,t.createElement)("div",{...a,className:"gtmkit-flex gtmkit-flex-col gtmkit-min-h-[128px] gtmkit-bg-white gtmkit-border gtmkit-border-color-border gtmkit-mb-6 gtmkit-py-4 gtmkit-px-5 gtmkit-rounded gtmkit-group gtmkit-w-full "+n,ref:i},e)));ie.Header=({as:e="h3",title:n="",children:a,className:i="",...r})=>(0,t.createElement)("div",{...r,className:"gtmkit-flex gtmkit-justify-between gtmkit-items-center gtmkit-mb-5 "+i},(0,t.createElement)(e,{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading"},n),a),ie.Content=({as:e="div",children:n,className:a="gtmkit-flex-auto",...i})=>(0,t.createElement)(e,{...i,className:a},n),ie.Button=({url:e,destination:n,newTab:a=!1,text:i,group:s="",...o})=>{const l=at();return(0,t.createElement)("div",{...o,className:"gtmkit-mt-4 gtmkit-mb-0.5"},(0,t.createElement)(r.Button,{variant:"primary",className:"gtmkit-rounded !gtmkit-py-4 !gtmkit-px-8 gtmkit-w-full sm:gtmkit-w-auto gtmkit-min-w-[225px]",onClick:()=>{n&&e&&!1===a?window.gtmkitSettings.current_poage===s?l(n,{replace:!0}):window.location.href=e+"#"+n:e?a?window.open(e):window.location.href=e:l(n,{replace:!0})}},(0,t.createElement)("span",{className:"gtmkit-mx-auto gtmkit-text-sm gtmkit-font-bold"},i)))};const re=ie,se=({title:e,data:n,className:r=""})=>{const{useSettings:s}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8 gtmkit-mt-6"},e),(0,t.createElement)("div",{className:"lg:gtmkit-grid lg:gtmkit-grid-cols-2 xl:gtmkit-grid-cols-3 gtmkit-justify-between gtmkit-gap-6 gtmkit-border-b gtmkit-border-color-border gtmkit-pb-6 gtmkit-min-h-[175px] "+r},n.map(((e,n)=>!1===e.featured?null:(0,t.createElement)(re,{key:n},(0,t.createElement)(re.Header,{title:e.title},e.pill?(0,t.createElement)(ae,{subject:s[e.group][e.option]}):null),(0,t.createElement)(re.Content,null,e.text.map(((e,n)=>(0,t.createElement)("p",{key:n},e)))),(0,t.createElement)(re.Button,{url:e.link.url,destination:e.link.destination,text:e.link.text?e.link.text:(0,a.__)("Read article","gtm-kit"),newTab:e.link.external,group:e.group}))))))},oe=t=>((t,e,n)=>{const a=(t,n)=>({...n,title:t.title,to:t.path,group:t.group||n.group,option:t.option||n.option,text:[t.description],link:{...n.link,url:window.gtmkitSettings[e+"Url"],destination:"/"+t.path}});return"templates"===e?Object.keys(t).map((e=>a(t[e][0],n))):Object.keys(t).map((e=>a(t[e],n)))})(window.gtmkitSettings[t],t,function(t){switch(t){case"integrations":return{pill:!0,group:"integrations",option:null,link:{internal:!0,text:(0,a.__)("Setup Integration","gtm-kit")}};case"templates":return{pill:!1,group:null,option:null,link:{internal:!0,text:(0,a.__)("Get Template","gtm-kit")}};default:return{pill:!1,group:null,option:null,link:{internal:!0,text:(0,a.__)("Read More","gtm-kit")}}}}(t)),le=()=>{const{useSettings:e}=(0,i.useContext)(g),[n,r]=(0,i.useState)(window.gtmkitSettings.tutorials),s=Boolean(e.general.sgtm_domain&&e.general.sgtm_domain.trim());return(0,i.useEffect)((()=>{r((t=>[...t,{title:(0,a.__)("See all tutorials","gtm-kit"),text:[(0,a.__)("See all our tutorials and get the most out of GTM Kit","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=documentation&utm_content=dashboard-tutorials",text:(0,a.__)("Read articles","gtm-kit")},featured:!0}]))}),[]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("General","gtm-kit")),(0,t.createElement)("div",{className:"lg:gtmkit-grid lg:gtmkit-grid-cols-2 xl:gtmkit-grid-cols-3 lg:gtmkit-justify-between gtmkit-gap-6 gtmkit-border-b gtmkit-border-color-border gtmkit-pb-6 gtmkit-min-h-[175px]"},(0,t.createElement)(re,null,(0,t.createElement)(re.Header,{title:"Google Tag Manager Container"},(0,t.createElement)(ae,{subject:e.general.gtm_id&&e.general.container_active})),(0,t.createElement)(re.Content,null,e.general.gtm_id&&e.general.container_active?(0,t.createElement)("p",null,(0,a.__)("Container ID:","gtm-kit")," ",e&&e.general.gtm_id):(0,t.createElement)("p",null,(0,a.__)("The container is not active but the datalayer is generated.","gtm-kit"))),(0,t.createElement)(re.Button,{destination:"/container",text:(0,a.__)("Edit container","gtm-kit")})),(0,t.createElement)(re,null,(0,t.createElement)(re.Header,{title:(0,a.__)("Server-side GTM","gtm-kit")},(0,t.createElement)(ae,{subject:s})),(0,t.createElement)(re.Content,null,(0,t.createElement)("p",null,(0,a.__)("Server-side tagging is a silver bullet that gives you improved data accuracy, performance, privacy, and flexibility.","gtm-kit"))),(0,t.createElement)(re.Button,{destination:"/container",text:(0,a.__)("Edit container","gtm-kit")})),(0,t.createElement)(re,null,(0,t.createElement)(re.Header,{title:(0,a.__)("Help improve GTM Kit","gtm-kit")},(0,t.createElement)(ae,{subject:e.general.analytics_active})),(0,t.createElement)(re.Content,null,(0,t.createElement)("p",null,(0,a.__)("Share anonymous data with the development team to help improve GTM Kit.","gtm-kit"))),(0,t.createElement)(re.Button,{destination:"/misc",text:(0,a.__)("Share anonymous data","gtm-kit")}))),(0,t.createElement)(se,{title:(0,a.__)("Tutorials","gtm-kit"),data:n}),(0,t.createElement)(se,{title:(0,a.__)("Integrations","gtm-kit"),data:oe("integrations")}))},me=({title:e,placeholder:n,help:a,className:i="gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",optionGroup:s="general",optionName:o,isDisabled:l,useSettings:m,useUpdateStateSettings:c})=>(0,t.createElement)(r.TextControl,{label:e,placeholder:n,help:a,className:i,value:m[s][o],onChange:t=>c(s,o,t),disabled:l}),ce=({title:e,label:n,optionGroup:a="general",optionName:i,disabled:s=!1,useSettings:o,useUpdateStateSettings:l})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-py-4"},(0,t.createElement)(r.BaseControl,{label:e},(0,t.createElement)(r.ToggleControl,{label:n,checked:!s&&o[a][i],onChange:()=>{l(a,i,!(o&&o[a][i]))},disabled:s})))),ge=({title:e,options:n,help:a,className:i="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:s="general",optionName:o,disabled:l,useSettings:m,useUpdateStateSettings:c})=>(0,t.createElement)(r.RadioControl,{label:e,options:n,help:a,className:i,selected:parseInt(m[s][o]),onChange:t=>c(s,o,t),disabled:l}),ue=({title:e,help:n,items:a=[],optionGroup:s="general",optionName:o,disabled:l=!1,useSettings:m,useUpdateStateSettings:c})=>{const g=Array.isArray(m[s][o])?m[s][o]:[],[u,d]=(0,i.useState)(g);return(0,i.useEffect)((()=>{const t=Array.isArray(m[s][o])?m[s][o]:[];d(t)}),[m]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-py-4"},(0,t.createElement)(r.BaseControl,{label:e,help:n},a.map((e=>(0,t.createElement)(r.CheckboxControl,{key:e.role,label:e.name,disabled:l,checked:u.includes(e.role),onChange:t=>((t,e)=>{d((n=>{let a;return a=t?[...n,e]:n.filter((t=>t!==e)),c(s,o,a),a}))})(t,e.role)}))))))};var de=n(893);const pe=(0,i.forwardRef)((({children:t,className:e="",disabled:n=!1,...a},i)=>(0,de.jsx)("div",{...a,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-w-3/4 gtmkit-border-color-grey "+e+(n?"gtmkit-opacity-60":""),ref:i,children:t})));pe.Header=({as:t="h3",title:e="",children:n,className:a="",...i})=>(0,de.jsxs)(t,{...i,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,n]}),pe.Content=({as:t="div",children:e,className:n="",...a})=>(0,de.jsx)(t,{...a,className:"gtmkit-px-8 gtmkit-py-6 "+n,children:e});const he=pe,_e=()=>{const{useSettings:e,useUpdateStateSettings:n,useUserRoles:r}=(0,i.useContext)(g),s=!(e.general.sgtm_domain&&e.general.sgtm_domain.trim()&&e.general.sgtm_container_identifier&&e.general.sgtm_container_identifier.trim()),o=et();return(0,t.useEffect)((()=>{const t=new URLSearchParams(o.search).get("focus");if(t){const e=document.getElementById(t);e&&e.scrollIntoView()}}),[o]),(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,a.__)("Google Tag Manager container","gtm-kit")}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("General Container Settings","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container.","gtm-kit")}),(0,de.jsx)(me,{title:(0,a.__)("GTM Container ID:","gtm-kit"),optionName:"gtm_id",placeholder:(0,a.__)("Enter GTM Container ID","gtm-kit"),useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(ce,{title:(0,a.__)("Inject Container Code","gtm-kit"),label:(0,a.__)("Setting this to Off will remove the Google Tag Manager container code but the data layer will remain.","gtm-kit"),optionName:"container_active",useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(ce,{title:(0,a.__)("Just the container","gtm-kit"),label:(0,a.__)("Setting this to On will reduce the functionality to just the GTM container code. No additional data will be pushed to the datalayer regardless of any other settings.","gtm-kit"),optionName:"just_the_container",useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(me,{title:(0,a.__)("dataLayer variable name:","gtm-kit"),optionName:"datalayer_name",placeholder:"dataLayer",help:(0,a.__)("The default name of the data layer object is dataLayer. If you prefer to use a different name for your data layer, you may do so.","gtm-kit"),useSettings:e,useUpdateStateSettings:n})]})]}),(0,de.jsx)("div",{id:"sgtm"}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Server-side Tagging (sGTM)","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(me,{title:(0,a.__)("sGTM Container Domain:","gtm-kit"),optionName:"sgtm_domain",placeholder:(0,a.__)("Enter domain","gtm-kit"),help:(0,a.__)("Enter your custom domain name if you are using a custom server side GTM container for tracking.","gtm-kit"),useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(me,{title:(0,a.__)("sGTM container identifier:","gtm-kit"),optionName:"sgtm_container_identifier",placeholder:(0,a.__)("Enter loader name","gtm-kit"),help:(0,a.__)("Only use if you are using a custom loader.","gtm-kit"),useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(ce,{title:(0,a.__)("Cookie Keeper (for Stape users only)","gtm-kit"),label:(0,a.__)("Prolong cookie lifetime in Safari and other browsers with ITP. This only works if you use Stape sGTM hosting and have set up the Cookie Keeper power up.","gtm-kit"),optionName:"sgtm_cookie_keeper",disabled:s,useSettings:e,useUpdateStateSettings:n})]}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Google Tag Manager Server-side Tagging","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("Server-side tagging is a silver bullet that gives you improved data accuracy, performance, privacy, and flexibility.","gtm-kit")," ",(0,de.jsx)("a",{href:"https://gtmkit.com/guides/google-tag-manager-server-side-tagging/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=sgtm&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more","gtm-kit")})]}),(0,de.jsx)("h4",{className:"gtmkit-pt-4 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Hosting server-side GTM containers","gtm-kit")}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("Setting up server-side tracking can be challenging and costly but there is an easy and cheap solution.","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("Stape.io is a solution for hosting server-side Google Tag Manager containers, offering a simplified approach that demands less technical expertise than solutions like Google Cloud Platform.","gtm-kit")," ",(0,a.__)("Additionally, it provides valuable add-ons for enhanced functionality.","gtm-kit")]}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,de.jsx)("a",{href:"https://jump.gtmkit.com/link/1-AC1E5",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more about Stape.io","gtm-kit")})})]})})]})]}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Page Speed Optimization","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsx)(he.Content,{children:(0,de.jsx)(ce,{title:(0,a.__)("load_delayed_js event","gtm-kit"),label:(0,a.__)("Setting this to On will push the event 'load_delayed_js' on page load.","gtm-kit"),optionName:"load_js_event",useSettings:e,useUpdateStateSettings:n})}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Delay JavaScript execution","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("Page optimization plugins can delay the 'load_delayed_js' event and this can be used to delay the triggering og tags in Google Tag Manager.","gtm-kit")," ",(0,de.jsx)("a",{href:"https://gtmkit.com/guides/delay-javascript-execution-in-gtm/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=delay-js&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Google Tag Manager Environment","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(me,{title:(0,a.__)("gtm_auth:","gtm-kit"),optionName:"gtm_auth",placeholder:(0,a.__)("Enter gtm_auth code","gtm-kit"),help:(0,a.__)("Enter the gtm_auth code for your GTM environment.","gtm-kit"),useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(me,{title:(0,a.__)("gtm_preview:","gtm-kit"),optionName:"gtm_preview",placeholder:(0,a.__)("Enter gtm_preview code","gtm-kit"),help:(0,a.__)("Enter the gtm_preview code for your GTM environment.","gtm-kit"),useSettings:e,useUpdateStateSettings:n})]}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Environments","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("In Google Tag Manager you can define different environments like Live, Dev and QA.","gtm-kit")," ",(0,a.__)('To use a specific environment in GTM Kit you must enter the "gtm_auth" and "gtm_preview" codes for that environment.',"gtm-kit")," ",(0,a.__)("If left empty the default environment will be used.","gtm-kit")]}),(0,de.jsx)("h4",{className:"gtmkit-pt-4 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("Override settings in wp-config.php","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("You can override the values by using constants in wp-config.php, which is a very useful for setting the value in your development and staging environments.","gtm-kit")," ",(0,de.jsx)("a",{href:"https://gtmkit.com/documentation/settings-actions-and-filters-for-developers/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=container-settings&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Exclude User Roles","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsx)(he.Content,{children:(0,de.jsx)(ue,{title:(0,a.__)("Exclude user roles","gtm-kit"),help:(0,a.__)("Select the roles that you want to exclude from tracking.","gtm-kit"),items:r,optionName:"exclude_user_roles",useSettings:e,useUpdateStateSettings:n})}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold gtmkit-text-red-600",children:(0,a.__)("Warning!","gtm-kit")}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("Excluding user roles is not compatible with all full-page cache solutions. Some full-page cache solutions may cache the page identically for all users, regardless of their user role. This could result in users being excluded who should not be.","gtm-kit")}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("Please ensure thorough and proper testing of this.","gtm-kit")})]})})]})]}),(0,de.jsxs)(he,{children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Container Code Implementation","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(ge,{title:(0,a.__)("Container code implementation:","gtm-kit"),options:[{label:(0,a.__)("Standard implementation as recommended by Google (no delay)","gtm-kit"),value:0},{label:(0,a.__)("Load container when the browser is idle (requestIdleCallback)","gtm-kit"),value:1}],help:(0,a.__)("Depending on how you use Google Tag Manager you can delay the loading of the container script until the browser is idle.","gtm-kit"),optionName:"script_implementation",useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)(ge,{title:(0,a.__)("Container code noscript implementation:","gtm-kit"),options:[{label:(0,a.__)("Just after the opening <body> tag","gtm-kit"),value:0},{label:(0,a.__)("Footer of the page (not recommended by Google)","gtm-kit"),value:1},{label:(0,a.__)("Custom (insert function in your template)","gtm-kit"),value:2},{label:(0,a.__)("Disable <noscript> implementation","gtm-kit"),value:3}],help:(0,a.__)('The preferred method to implement the <noscript> container code is just after the opening <body> tag. This requires that your theme uses the "body_open" hook. If your theme does not support this the script can be injected in the footer or you can use the function below.',"gtm-kit"),optionName:"noscript_implementation",useSettings:e,useUpdateStateSettings:n}),(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,de.jsx)("code",{children:"<?php if ( function_exists( 'gtmkit_the_noscript_tag' ) ) { gtmkit_the_noscript_tag(); } ?>"})})]})]})]})},ke=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Post Data","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Post Data Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-4"},(0,a.__)("Specify which post data elements you wish to include in the dataLayer for use in Google Tag Manager.","gtm-kit")),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Post data","gtm-kit"),id:"post-date",label:(0,a.__)("Include the post date.","gtm-kit"),optionName:"datalayer_post_date",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}))))},fe=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("User Data","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Warning!","gtm-kit"),className:"gtmkit-text-red-600"}),(0,t.createElement)(he.Content,{className:"gtmkit-space-y-2"},(0,t.createElement)("p",null,(0,a.__)("Including user data is not compatible with full page caching.","gtm-kit")),(0,t.createElement)("p",null,(0,a.__)("Full page caching will cache user data making it the same for all users. There are ways around this, but it depends on the chosen cache solution and is only for advanced users.","gtm-kit")))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("User Data Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Logged in","gtm-kit"),id:"logged-in",label:(0,a.__)("Include whether the user is logged in.","gtm-kit"),optionName:"datalayer_logged_in",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("User ID","gtm-kit"),id:"user-id",label:(0,a.__)("Include the user ID if the user is logged in.","gtm-kit"),optionName:"datalayer_user_id",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("User role","gtm-kit"),id:"user-role",label:(0,a.__)("Include the user role if the user is logged in.","gtm-kit"),optionName:"datalayer_user_role",useSettings:e,useUpdateStateSettings:n}))))},Se=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g),r=!e.general.gcm_default_settings;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Google Consent Mode","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Google Consent Mode Activation","gtm-kit")},(0,t.createElement)("span",{className:"gtmkit-text-red-600 gtmkit-ml-2"},(0,a.__)("Warning!","gtm-kit"))),(0,t.createElement)(he.Content,{className:"gtmkit-space-y-2"},(0,t.createElement)("p",null,(0,a.__)("Most Consent Management Platforms will handle the Google Consent Mode settings for you and applying the default settings in both GTM Kit and you CMP will lead to unexpected behaviour or errors.","gtm-kit")),(0,t.createElement)("p",null,(0,a.__)("You should only use these settings if you do not have a Consent Management Platform that supports Google Consent Mode.","gtm-kit")),(0,t.createElement)("p",{className:"!gtmkit-mt-4"},(0,a.__)("GTM Kit will only set the default Consent Mode settings and you must update the settings yourself when the user has given consent.","gtm-kit")),(0,t.createElement)("p",{className:"gtmkit-text-color-primary !gtmkit-my-6"},(0,t.createElement)("a",{href:"https://developers.google.com/tag-platform/security/guides/consent#implementation_example",target:"_blank",rel:"noreferrer",className:"hover:gtmkit-underline gtmkit-font-semibold"},(0,a.__)("See an example of how consent is updated","gtm-kit"))),(0,t.createElement)(ce,{title:(0,a.__)("Activate GCM settings","gtm-kit"),label:(0,a.__)("Choose this option if you would like to activate the default settings below","gtm-kit"),optionName:"gcm_default_settings",useSettings:e,useUpdateStateSettings:n}))),(0,t.createElement)(he,{disabled:r},(0,t.createElement)(he.Header,{title:(0,a.__)("Google Consent Mode Default Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Ad Personalization","gtm-kit"),label:(0,a.__)("Enables personalized advertising","gtm-kit"),optionName:"gcm_ad_personalization",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Ad Storage","gtm-kit"),label:(0,a.__)("Enables storage, such as cookies, related to advertising","gtm-kit"),optionName:"gcm_ad_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Ad User Data","gtm-kit"),label:(0,a.__)("Enables sending user data related to advertising to Google","gtm-kit"),optionName:"gcm_ad_user_data",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Analytics Storage","gtm-kit"),label:(0,a.__)("Enables storage, such as cookies, related to analytics (for example, visit duration)","gtm-kit"),optionName:"gcm_analytics_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Functionality Storage","gtm-kit"),label:(0,a.__)("Enables storage that supports the functionality of the website or app such as language settings","gtm-kit"),optionName:"gcm_functionality_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Personalization Storage","gtm-kit"),label:(0,a.__)("Enables storage related to personalization such as video recommendations","gtm-kit"),optionName:"gcm_personalization_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Security Storage","gtm-kit"),label:(0,a.__)("Enables storage related to security such as authentication functionality, fraud prevention, and other user protection","gtm-kit"),optionName:"gcm_security_storage",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)("h4",{className:"gtmkit-font-bold gtmkit-pt-8"},(0,a.__)("Advanced","gtm-kit")),(0,t.createElement)(ce,{title:(0,a.__)("Redact Ads Data","gtm-kit"),label:(0,a.__)("Redact advertising data","gtm-kit"),optionName:"gcm_ads_data_redaction",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Pass through URL parameters","gtm-kit"),label:(0,a.__)("Pass through ad click, client ID, and session ID information in URLs","gtm-kit"),optionName:"gcm_url_passthrough",disabled:r,useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(me,{title:(0,a.__)("Wait For Update","gtm-kit"),optionName:"gcm_wait_for_update",placeholder:(0,a.__)("Enter time in milliseconds","gtm-kit"),useSettings:e,useUpdateStateSettings:n}))))},be=({label:e,value:n,tag:a})=>(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-4 gtmkit-py-2"},(0,t.createElement)("strong",null,e)),(0,t.createElement)("td",{className:"gtmkit-px-4 gtmkit-py-2"},"code"===a?(0,t.createElement)("code",{className:"gtmkit-text-sm"},n):(0,t.createElement)("em",null,n))),Ee=()=>{const{useSiteData:e}=(0,i.useContext)(g),n=Object.values(e.shared_data);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey"},(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,t.createElement)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey"},(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,t.createElement)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm gtmkit-my-6 gtmkit-py-6"},(0,t.createElement)("tbody",{className:"gtmkit-py-6"},n.map((function(e,n){return(0,t.createElement)(be,{key:n,label:e.label,value:e.value,tag:e.tag})})))))},ve=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Misc","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Help improve GTM Kit","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(Ee,null),(0,t.createElement)("p",{className:"gtmkit-my-4 gtmkit-mb-2 gtmkit-text-color-grey"},(0,a.__)("GTM Kit will never transmit any domain names or container ID's.","gtm-kit")),(0,t.createElement)(ce,{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",useSettings:e,useUpdateStateSettings:n}))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Logging and debugging","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Event Inspector","gtm-kit"),label:(0,a.__)("The event inspector is placed in the footer of the front and it allows you to see all the fired GTM events.","gtm-kit"),optionName:"event_inspector",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Console log","gtm-kit"),label:(0,a.__)("Log helpful messages and warnings to the browser log.","gtm-kit"),optionName:"console_log",useSettings:e,useUpdateStateSettings:n}),(0,t.createElement)(ce,{title:(0,a.__)("Debug log","gtm-kit"),label:(0,a.__)('Log the "purchase" event to the debug log.',"gtm-kit"),optionName:"debug_log",useSettings:e,useUpdateStateSettings:n}))))},ye=()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(se,{title:(0,a.__)("Integrations","gtm-kit"),data:oe("integrations")})),xe=({pluginName:e})=>(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.sprintf)(
     1(()=>{var t={838:function(t){t.exports=function(){"use strict";const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:a}=Object;let{freeze:o,seal:s,create:r}=Object,{apply:l,construct:m}="undefined"!=typeof Reflect&&Reflect;o||(o=function(t){return t}),s||(s=function(t){return t}),l||(l=function(t,e,n){return t.apply(e,n)}),m||(m=function(t,e){return new t(...e)});const c=v(Array.prototype.forEach),g=v(Array.prototype.pop),u=v(Array.prototype.push),d=v(String.prototype.toLowerCase),p=v(String.prototype.toString),h=v(String.prototype.match),k=v(String.prototype.replace),f=v(String.prototype.indexOf),_=v(String.prototype.trim),x=v(Object.prototype.hasOwnProperty),b=v(RegExp.prototype.test),S=(y=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return m(y,e)});var y;function v(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return l(t,e,i)}}function E(t,i){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;e&&e(t,null);let o=i.length;for(;o--;){let e=i[o];if("string"==typeof e){const t=a(e);t!==e&&(n(i)||(i[o]=t),e=t)}t[e]=!0}return t}function N(t){for(let e=0;e<t.length;e++)x(t,e)||(t[e]=null);return t}function w(e){const n=r(null);for(const[i,a]of t(e))x(e,i)&&(Array.isArray(a)?n[i]=N(a):a&&"object"==typeof a&&a.constructor===Object?n[i]=w(a):n[i]=a);return n}function j(t,e){for(;null!==t;){const n=a(t,e);if(n){if(n.get)return v(n.get);if("function"==typeof n.value)return v(n.value)}t=i(t)}return function(){return null}}const T=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),U=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=o(["#text"]),R=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),L=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),P=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=s(/<%[\w\W]*|[\w\W]*%>/gm),H=s(/\${[\w\W]*}/gm),B=s(/^data-[\-\w.\u00B7-\uFFFF]/),W=s(/^aria-[\-\w]+$/),K=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=s(/^(?:\w+script|data):/i),Y=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=s(/^html$/i),J=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var q=Object.freeze({__proto__:null,MUSTACHE_EXPR:G,ERB_EXPR:F,TMPLIT_EXPR:H,DATA_ATTR:B,ARIA_ATTR:W,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:Y,DOCTYPE_NAME:$,CUSTOM_ELEMENT:J});const V=1,X=3,Z=7,Q=8,tt=9,et=function(){return"undefined"==typeof window?null:window};return function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et();const i=t=>e(t);if(i.version="3.1.6",i.removed=[],!n||!n.document||n.document.nodeType!==tt)return i.isSupported=!1,i;let{document:a}=n;const s=a,l=s.currentScript,{DocumentFragment:m,HTMLTemplateElement:y,Node:v,Element:N,NodeFilter:G,NamedNodeMap:F=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:H,DOMParser:B,trustedTypes:W}=n,z=N.prototype,Y=j(z,"cloneNode"),J=j(z,"remove"),nt=j(z,"nextSibling"),it=j(z,"childNodes"),at=j(z,"parentNode");if("function"==typeof y){const t=a.createElement("template");t.content&&t.content.ownerDocument&&(a=t.content.ownerDocument)}let ot,st="";const{implementation:rt,createNodeIterator:lt,createDocumentFragment:mt,getElementsByTagName:ct}=a,{importNode:gt}=s;let ut={};i.isSupported="function"==typeof t&&"function"==typeof at&&rt&&void 0!==rt.createHTMLDocument;const{MUSTACHE_EXPR:dt,ERB_EXPR:pt,TMPLIT_EXPR:ht,DATA_ATTR:kt,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:_t,ATTR_WHITESPACE:xt,CUSTOM_ELEMENT:bt}=q;let{IS_ALLOWED_URI:St}=q,yt=null;const vt=E({},[...T,...C,...D,...A,...O]);let Et=null;const Nt=E({},[...R,...L,...M,...P]);let wt=Object.seal(r(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),jt=null,Tt=null,Ct=!0,Dt=!0,Ut=!1,At=!0,It=!1,Ot=!0,Rt=!1,Lt=!1,Mt=!1,Pt=!1,Gt=!1,Ft=!1,Ht=!0,Bt=!1,Wt=!0,Kt=!1,zt={},Yt=null;const $t=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Jt=null;const qt=E({},["audio","video","img","source","image","track"]);let Vt=null;const Xt=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zt="http://www.w3.org/1998/Math/MathML",Qt="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml";let ee=te,ne=!1,ie=null;const ae=E({},[Zt,Qt,te],p);let oe=null;const se=["application/xhtml+xml","text/html"];let re=null,le=null;const me=a.createElement("form"),ce=function(t){return t instanceof RegExp||t instanceof Function},ge=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!le||le!==t){if(t&&"object"==typeof t||(t={}),t=w(t),oe=-1===se.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,re="application/xhtml+xml"===oe?p:d,yt=x(t,"ALLOWED_TAGS")?E({},t.ALLOWED_TAGS,re):vt,Et=x(t,"ALLOWED_ATTR")?E({},t.ALLOWED_ATTR,re):Nt,ie=x(t,"ALLOWED_NAMESPACES")?E({},t.ALLOWED_NAMESPACES,p):ae,Vt=x(t,"ADD_URI_SAFE_ATTR")?E(w(Xt),t.ADD_URI_SAFE_ATTR,re):Xt,Jt=x(t,"ADD_DATA_URI_TAGS")?E(w(qt),t.ADD_DATA_URI_TAGS,re):qt,Yt=x(t,"FORBID_CONTENTS")?E({},t.FORBID_CONTENTS,re):$t,jt=x(t,"FORBID_TAGS")?E({},t.FORBID_TAGS,re):{},Tt=x(t,"FORBID_ATTR")?E({},t.FORBID_ATTR,re):{},zt=!!x(t,"USE_PROFILES")&&t.USE_PROFILES,Ct=!1!==t.ALLOW_ARIA_ATTR,Dt=!1!==t.ALLOW_DATA_ATTR,Ut=t.ALLOW_UNKNOWN_PROTOCOLS||!1,At=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,It=t.SAFE_FOR_TEMPLATES||!1,Ot=!1!==t.SAFE_FOR_XML,Rt=t.WHOLE_DOCUMENT||!1,Pt=t.RETURN_DOM||!1,Gt=t.RETURN_DOM_FRAGMENT||!1,Ft=t.RETURN_TRUSTED_TYPE||!1,Mt=t.FORCE_BODY||!1,Ht=!1!==t.SANITIZE_DOM,Bt=t.SANITIZE_NAMED_PROPS||!1,Wt=!1!==t.KEEP_CONTENT,Kt=t.IN_PLACE||!1,St=t.ALLOWED_URI_REGEXP||K,ee=t.NAMESPACE||te,wt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(wt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(wt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(wt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),It&&(Dt=!1),Gt&&(Pt=!0),zt&&(yt=E({},O),Et=[],!0===zt.html&&(E(yt,T),E(Et,R)),!0===zt.svg&&(E(yt,C),E(Et,L),E(Et,P)),!0===zt.svgFilters&&(E(yt,D),E(Et,L),E(Et,P)),!0===zt.mathMl&&(E(yt,A),E(Et,M),E(Et,P))),t.ADD_TAGS&&(yt===vt&&(yt=w(yt)),E(yt,t.ADD_TAGS,re)),t.ADD_ATTR&&(Et===Nt&&(Et=w(Et)),E(Et,t.ADD_ATTR,re)),t.ADD_URI_SAFE_ATTR&&E(Vt,t.ADD_URI_SAFE_ATTR,re),t.FORBID_CONTENTS&&(Yt===$t&&(Yt=w(Yt)),E(Yt,t.FORBID_CONTENTS,re)),Wt&&(yt["#text"]=!0),Rt&&E(yt,["html","head","body"]),yt.table&&(E(yt,["tbody"]),delete jt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ot=t.TRUSTED_TYPES_POLICY,st=ot.createHTML("")}else void 0===ot&&(ot=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(W,l)),null!==ot&&"string"==typeof st&&(st=ot.createHTML(""));o&&o(t),le=t}},ue=E({},["mi","mo","mn","ms","mtext"]),de=E({},["foreignobject","annotation-xml"]),pe=E({},["title","style","font","a","script"]),he=E({},[...C,...D,...U]),ke=E({},[...A,...I]),fe=function(t){u(i.removed,{element:t});try{at(t).removeChild(t)}catch(e){J(t)}},_e=function(t,e){try{u(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){u(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Et[t])if(Pt||Gt)try{fe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},xe=function(t){let e=null,n=null;if(Mt)t="<remove></remove>"+t;else{const e=h(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===oe&&ee===te&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=ot?ot.createHTML(t):t;if(ee===te)try{e=(new B).parseFromString(i,oe)}catch(t){}if(!e||!e.documentElement){e=rt.createDocument(ee,"template",null);try{e.documentElement.innerHTML=ne?st:i}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),ee===te?ct.call(e,Rt?"html":"body")[0]:Rt?e.documentElement:o},be=function(t){return lt.call(t.ownerDocument||t,t,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},Se=function(t){return t instanceof H&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof F)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},ye=function(t){return"function"==typeof v&&t instanceof v},ve=function(t,e,n){ut[t]&&c(ut[t],(t=>{t.call(i,e,n,le)}))},Ee=function(t){let e=null;if(ve("beforeSanitizeElements",t,null),Se(t))return fe(t),!0;const n=re(t.nodeName);if(ve("uponSanitizeElement",t,{tagName:n,allowedTags:yt}),t.hasChildNodes()&&!ye(t.firstElementChild)&&b(/<[/\w]/g,t.innerHTML)&&b(/<[/\w]/g,t.textContent))return fe(t),!0;if(t.nodeType===Z)return fe(t),!0;if(Ot&&t.nodeType===Q&&b(/<[/\w]/g,t.data))return fe(t),!0;if(!yt[n]||jt[n]){if(!jt[n]&&we(n)){if(wt.tagNameCheck instanceof RegExp&&b(wt.tagNameCheck,n))return!1;if(wt.tagNameCheck instanceof Function&&wt.tagNameCheck(n))return!1}if(Wt&&!Yt[n]){const e=at(t)||t.parentNode,n=it(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i){const a=Y(n[i],!0);a.__removalCount=(t.__removalCount||0)+1,e.insertBefore(a,nt(t))}}return fe(t),!0}return t instanceof N&&!function(t){let e=at(t);e&&e.tagName||(e={namespaceURI:ee,tagName:"template"});const n=d(t.tagName),i=d(e.tagName);return!!ie[t.namespaceURI]&&(t.namespaceURI===Qt?e.namespaceURI===te?"svg"===n:e.namespaceURI===Zt?"svg"===n&&("annotation-xml"===i||ue[i]):Boolean(he[n]):t.namespaceURI===Zt?e.namespaceURI===te?"math"===n:e.namespaceURI===Qt?"math"===n&&de[i]:Boolean(ke[n]):t.namespaceURI===te?!(e.namespaceURI===Qt&&!de[i])&&!(e.namespaceURI===Zt&&!ue[i])&&!ke[n]&&(pe[n]||!he[n]):!("application/xhtml+xml"!==oe||!ie[t.namespaceURI]))}(t)?(fe(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!b(/<\/no(script|embed|frames)/i,t.innerHTML)?(It&&t.nodeType===X&&(e=t.textContent,c([dt,pt,ht],(t=>{e=k(e,t," ")})),t.textContent!==e&&(u(i.removed,{element:t.cloneNode()}),t.textContent=e)),ve("afterSanitizeElements",t,null),!1):(fe(t),!0)},Ne=function(t,e,n){if(Ht&&("id"===e||"name"===e)&&(n in a||n in me))return!1;if(Dt&&!Tt[e]&&b(kt,e));else if(Ct&&b(ft,e));else if(!Et[e]||Tt[e]){if(!(we(t)&&(wt.tagNameCheck instanceof RegExp&&b(wt.tagNameCheck,t)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(t))&&(wt.attributeNameCheck instanceof RegExp&&b(wt.attributeNameCheck,e)||wt.attributeNameCheck instanceof Function&&wt.attributeNameCheck(e))||"is"===e&&wt.allowCustomizedBuiltInElements&&(wt.tagNameCheck instanceof RegExp&&b(wt.tagNameCheck,n)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(n))))return!1}else if(Vt[e]);else if(b(St,k(n,xt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==f(n,"data:")||!Jt[t])if(Ut&&!b(_t,k(n,xt,"")));else if(n)return!1;return!0},we=function(t){return"annotation-xml"!==t&&h(t,bt)},je=function(t){ve("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Et};let a=e.length;for(;a--;){const o=e[a],{name:s,namespaceURI:r,value:l}=o,m=re(s);let u="value"===s?l:_(l);if(n.attrName=m,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,ve("uponSanitizeAttribute",t,n),u=n.attrValue,Ot&&b(/((--!?|])>)|<\/(style|title)/i,u)){_e(s,t);continue}if(n.forceKeepAttr)continue;if(_e(s,t),!n.keepAttr)continue;if(!At&&b(/\/>/i,u)){_e(s,t);continue}It&&c([dt,pt,ht],(t=>{u=k(u,t," ")}));const d=re(t.nodeName);if(Ne(d,m,u)){if(!Bt||"id"!==m&&"name"!==m||(_e(s,t),u="user-content-"+u),ot&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(r);else switch(W.getAttributeType(d,m)){case"TrustedHTML":u=ot.createHTML(u);break;case"TrustedScriptURL":u=ot.createScriptURL(u)}try{r?t.setAttributeNS(r,s,u):t.setAttribute(s,u),Se(t)?fe(t):g(i.removed)}catch(t){}}}ve("afterSanitizeAttributes",t,null)},Te=function t(e){let n=null;const i=be(e);for(ve("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)ve("uponSanitizeShadowNode",n,null),Ee(n)||(n.content instanceof m&&t(n.content),je(n));ve("afterSanitizeShadowDOM",e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,o=null,r=null;if(ne=!t,ne&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ye(t)){if("function"!=typeof t.toString)throw S("toString is not a function");if("string"!=typeof(t=t.toString()))throw S("dirty is not a string, aborting")}if(!i.isSupported)return t;if(Lt||ge(e),i.removed=[],"string"==typeof t&&(Kt=!1),Kt){if(t.nodeName){const e=re(t.nodeName);if(!yt[e]||jt[e])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof v)n=xe("\x3c!----\x3e"),a=n.ownerDocument.importNode(t,!0),a.nodeType===V&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Pt&&!It&&!Rt&&-1===t.indexOf("<"))return ot&&Ft?ot.createHTML(t):t;if(n=xe(t),!n)return Pt?null:Ft?st:""}n&&Mt&&fe(n.firstChild);const l=be(Kt?t:n);for(;o=l.nextNode();)Ee(o)||(o.content instanceof m&&Te(o.content),je(o));if(Kt)return t;if(Pt){if(Gt)for(r=mt.call(n.ownerDocument);n.firstChild;)r.appendChild(n.firstChild);else r=n;return(Et.shadowroot||Et.shadowrootmode)&&(r=gt.call(s,r,!0)),r}let g=Rt?n.outerHTML:n.innerHTML;return Rt&&yt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b($,n.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+g),It&&c([dt,pt,ht],(t=>{g=k(g,t," ")})),ot&&Ft?ot.createHTML(g):g},i.setConfig=function(){ge(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lt=!0},i.clearConfig=function(){le=null,Lt=!1},i.isValidAttribute=function(t,e,n){le||ge({});const i=re(t),a=re(e);return Ne(i,a,n)},i.addHook=function(t,e){"function"==typeof e&&(ut[t]=ut[t]||[],u(ut[t],e))},i.removeHook=function(t){if(ut[t])return g(ut[t])},i.removeHooks=function(t){ut[t]&&(ut[t]=[])},i.removeAllHooks=function(){ut={}},i}()}()},942:(t,e)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=s(t,o(n)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return a.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)i.call(t,n)&&t[n]&&(e=s(e,n));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(a.default=a,t.exports=a):void 0===(n=function(){return a}.apply(e,[]))||(t.exports=n)}()}},e={};function n(i){var a=e[i];if(void 0!==a)return a.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=window.wp.i18n,e=window.wp.element,i=window.wp.components,a=window.lodash,o=window.wp.apiFetch;var s=n.n(o);s().use(s().createNonceMiddleware(window.gtmkitSettings.nonce)),s().use(s().createRootURLMiddleware(window.gtmkitSettings.root));const r=async(t,e,n=null,i=!1)=>{let a={};try{a=await s()({path:t,method:e,...n&&{data:n}})}catch(n){return console.log(`${e} ${t} Errors:`,n),{[`gtm_kit_api_${e}_${t}_errors`]:!0}}return!0===i?a:!0===a.success?a.data:options},l=(e,n)=>{const i={...e};switch(n.type){case"FETCH_SETTINGS":i.fetchedSettings={...n.payload.fetchedSettings,integrations:n.payload.fetchedSettings.integrations||{}},i.stateSettings=n.payload.stateSettings,i.siteData=n.payload.siteData,i.notifications=n.payload.notifications,i.installData=n.payload.installData,i.isPending=!1,i.canSave=!1,n.payload.fetchedSettings.gtm_kit_api_fetch_settings_errors&&(i.notice=(0,t.__)("An error occurred.","gtm-kit"),i.hasError=!0);break;case"UPDATE_SETTINGS_BEFORE":i.isPending=n.payload.isPending;break;case"UPDATE_SETTINGS":i.fetchedSettings=n.payload.fetchedSettings,i.stateSettings=n.payload.stateSettings,i.isPending=!1,i.canSave=!!n.payload.fetchedSettings.gtm_kit_api_update_settings_errors,i.notice=n.payload.fetchedSettings.gtm_kit_api_update_settings_errors?(0,t.__)("An error occurred.","gtm-kit"):(0,t.__)("Saved Successfully.","gtm-kit"),i.hasError=!!n.payload.fetchedSettings.gtm_kit_api_update_settings_errors;break;case"UPDATE_STATE":i.fetchedSettings=n.payload.fetchedSettings||i.fetchedSettings,i.stateSettings=n.payload.stateSettings||i.stateSettings,i.isPending=n.payload.isPending||i.isPending,i.notice=n.payload.notice||i.notice,i.hasError=n.payload.hasError||i.hasError,i.canSave=n.payload.canSave||i.canSave,i.isSendingSystemData=n.payload.isSendingSystemData||i.isSendingSystemData,i.supportTicket=n.payload.supportTicket||i.supportTicket,i.isSendingLicenseKey=n.payload.isSendingLicenseKey||i.isSendingLicenseKey,i.licenseKey=n.payload.licenseKey||i.licenseKey;break;case"SEND_SUPPORT_DATA_BEFORE":i.isSendingSystemData=n.payload.isSendingSystemData||i.isSendingSystemData;break;case"SEND_SUPPORT_DATA":i.isSendingSystemData=!1,i.isSystemDataSent=n.payload.isSystemDataSent||i.isSystemDataSent,i.systemDataMessage=n.payload.systemDataMessage||i.systemDataMessage;break;case"SEND_LICENSE_KEY_BEFORE":i.isSendingLicenseKey=n.payload.isSendingLicenseKey||i.isSendingLicenseKey;break;case"SEND_LICENSE_KEY":i.isSendingLicenseKey=!1,i.isLicenseKeySent=n.payload.isLicenseKeySent||i.isLicenseKeySent,i.licenseKeyMessage=n.payload.licenseKeyMessage||i.licenseKeyMessage;break;case"SEND_NOTIFICATION_STATUS_BEFORE":i.isUpdatingNotifications=n.payload.isUpdatingNotifications||i.isUpdatingNotifications;break;case"SEND_NOTIFICATION_STATUS":i.isUpdatingNotifications=!1,i.isNotificationStatusSent=n.payload.isNotificationStatusSent||i.isNotificationStatusSent,i.notifications=n.payload.notifications||i.Notifications}return i},m=window.ReactJSXRuntime,c=(0,e.createContext)(),g=t=>{const[n,i]=(0,e.useReducer)(l,{fetchedSettings:{},stateSettings:{},isPending:!0,notice:"",hasError:!1,canSave:!1,supportTicket:"",isSystemDataSent:!1,systemDataMessage:"",licenseKey:"",isLicensenKeySent:!1,licenseKeyMessage:"",notifications:{}}),o=async()=>{const t=window.gtmkitSettings.settings?window.gtmkitSettings.settings:{},e=window.gtmkitSettings.site_data?window.gtmkitSettings.site_data:{},n=window.gtmkitSettings.notifications?window.gtmkitSettings.notifications:{metrics:{total:1}},a="wizard"===window.gtmkitSettings.currentPage?window.gtmkitSettings.install_data:{};i({type:"FETCH_SETTINGS",payload:{fetchedSettings:t,stateSettings:t,siteData:e,notifications:n,installData:a}})},s=async t=>{i({type:"UPDATE_STATE",payload:t})};(0,e.useEffect)((()=>{o()}),[]);const g={useDispatch:t=>{i(t)},useUpdateSettings:async()=>{i({type:"UPDATE_SETTINGS_BEFORE",payload:{isPending:!0}});const t=await(e=n.stateSettings,r("gtmkit/v1/set-options","POST",e));var e;i({type:"UPDATE_SETTINGS",payload:{fetchedSettings:t,stateSettings:t}})},useFetchSettings:o,useUpdateState:s,useUpdateStateSettings:async(t,e,i)=>{const o=JSON.parse(JSON.stringify(n.stateSettings));let r;o[t][e]=i,r=!(0,a.isEqual)(o,n.fetchedSettings),s({stateSettings:o,canSave:r})},useImportSettings:async(t,e)=>{const i=JSON.parse(JSON.stringify(n.stateSettings));let o;const r={};r.general={...i.general,...e.general},"integrations"in e&&(r.integrations={...i.integrations,...e.integrations}),o=!(0,a.isEqual)(r,n.fetchedSettings),s({stateSettings:r,canSave:o})},useUpdateSupportTicket:async t=>{s({supportTicket:t})},useSendSystemData:async()=>{i({type:"SEND_SUPPORT_DATA_BEFORE",payload:{isSendingSystemData:!0}});const t=await(e=n.supportTicket,r("gtmkit/v1/send-support-data","POST",e,!0));var e;i({type:"SEND_SUPPORT_DATA",payload:{isSendingSystemData:!1,isSystemDataSent:t.success,systemDataMessage:t.data}})},useUpdateLicenseKey:async t=>{s({licenseKey:t})},useSendLicenseKey:async()=>{i({type:"SEND_LICENSE_KEY_BEFORE",payload:{isSendingLicenseKey:!0}});const t=await(e=n.licenseKey,r("gtmkit/v1/send-license-key","POST",e,!0));var e;i({type:"SEND_LICENSE_KEY",payload:{isSendingLicenseKey:!1,isLicenseKeySent:t.success,licenseKeyMessage:t.data}})},useSetNotificationStatus:async(t,e)=>{i({type:"SEND_NOTIFICATION_STATUS_BEFORE",payload:{isUpdatingNotifications:!0}});const n={"notification-id":t,action:e},a=await(t=>r("gtmkit/v1/set-notification-status","POST",t,!0))(n);i({type:"SEND_NOTIFICATION_STATUS",payload:{isUpdatingNotifications:!1,isNotificationStatusSent:a.success,notifications:a.data}})},useSettings:n.stateSettings,useIsPending:n.isPending,useNotice:n.notice,useHasError:n.hasError,useCanSave:n.canSave,useSiteData:n.siteData,useInstallData:n.installData,useIsSending:n.isSendingSystemData,useSupportTicket:n.supportTicket,useIsSystemDataSent:n.isSystemDataSent,useSystemDataMessage:n.systemDataMessage,useIsSendingLicenseKey:n.isSendingLicenseKey,useLicenseKey:n.licenseKey,useIsLicenseKeySent:n.isLicenseKeySent,useLicenseKeyMessage:n.licenseKeyMessage,useNotifications:n.notifications,useIsUpdatingNotifications:n.isUpdatingNotifications,useUserRoles:window.gtmkitSettings.user_roles?window.gtmkitSettings.user_roles:[],isPremium:!!window.gtmkitSettings.isPremium&&window.gtmkitSettings.isPremium};return(0,m.jsx)(c.Provider,{value:g,children:t.children})},u=window.React;var d,p=n.n(u);function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},h.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(d||(d={}));const k="popstate";function f(t,e){if(!1===t||null==t)throw new Error(e)}function _(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function x(t,e){return{usr:t.state,key:t.key,idx:e}}function b(t,e,n,i){return void 0===n&&(n=null),h({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?y(e):e,{state:n,key:e&&e.key||i||Math.random().toString(36).substr(2,8)})}function S(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(e+="#"===i.charAt(0)?i:"#"+i),e}function y(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}var v;function E(t,e,n){return void 0===n&&(n="/"),function(t,e,n,i){let a=P(("string"==typeof e?y(e):e).pathname||"/",n);if(null==a)return null;let o=N(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,n)=>t===e[n]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(o);let s=null;for(let t=0;null==s&&t<o.length;++t){let e=M(a);s=R(o[t],e,i)}return s}(t,e,n,!1)}function N(t,e,n,i){void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===i&&(i="");let a=(t,a,o)=>{let s={relativePath:void 0===o?t.path||"":o,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};s.relativePath.startsWith("/")&&(f(s.relativePath.startsWith(i),'Absolute route path "'+s.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(i.length));let r=B([i,s.relativePath]),l=n.concat(s);t.children&&t.children.length>0&&(f(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+r+'".'),N(t.children,e,l,r)),(null!=t.path||t.index)&&e.push({path:r,score:O(r,t.index),routesMeta:l})};return t.forEach(((t,e)=>{var n;if(""!==t.path&&null!=(n=t.path)&&n.includes("?"))for(let n of w(t.path))a(t,e,n);else a(t,e)})),e}function w(t){let e=t.split("/");if(0===e.length)return[];let[n,...i]=e,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===i.length)return a?[o,""]:[o];let s=w(i.join("/")),r=[];return r.push(...s.map((t=>""===t?o:[o,t].join("/")))),a&&r.push(...s),r.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const j=/^:[\w-]+$/,T=3,C=2,D=1,U=10,A=-2,I=t=>"*"===t;function O(t,e){let n=t.split("/"),i=n.length;return n.some(I)&&(i+=A),e&&(i+=C),n.filter((t=>!I(t))).reduce(((t,e)=>t+(j.test(e)?T:""===e?D:U)),i)}function R(t,e,n){void 0===n&&(n=!1);let{routesMeta:i}=t,a={},o="/",s=[];for(let t=0;t<i.length;++t){let r=i[t],l=t===i.length-1,m="/"===o?e:e.slice(o.length)||"/",c=L({path:r.relativePath,caseSensitive:r.caseSensitive,end:l},m),g=r.route;if(!c&&l&&n&&!i[i.length-1].route.index&&(c=L({path:r.relativePath,caseSensitive:r.caseSensitive,end:!1},m)),!c)return null;Object.assign(a,c.params),s.push({params:a,pathname:B([o,c.pathname]),pathnameBase:W(B([o,c.pathnameBase])),route:g}),"/"!==c.pathnameBase&&(o=B([o,c.pathnameBase]))}return s}function L(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!0),_("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let i=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((t,e,n)=>(i.push({paramName:e,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return t.endsWith("*")?(i.push({paramName:"*"}),a+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==t&&"/"!==t&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),i]}(t.path,t.caseSensitive,t.end),a=e.match(n);if(!a)return null;let o=a[0],s=o.replace(/(.)\/+$/,"$1"),r=a.slice(1);return{params:i.reduce(((t,e,n)=>{let{paramName:i,isOptional:a}=e;if("*"===i){let t=r[n]||"";s=o.slice(0,o.length-t.length).replace(/(.)\/+$/,"$1")}const l=r[n];return t[i]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),t}),{}),pathname:o,pathnameBase:s,pattern:t}}function M(t){try{return t.split("/").map((t=>decodeURIComponent(t).replace(/\//g,"%2F"))).join("/")}catch(e){return _(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function P(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&"/"!==i?null:t.slice(n)||"/"}function G(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(i)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function F(t,e){let n=function(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}(t);return e?n.map(((t,e)=>e===n.length-1?t.pathname:t.pathnameBase)):n.map((t=>t.pathnameBase))}function H(t,e,n,i){let a;void 0===i&&(i=!1),"string"==typeof t?a=y(t):(a=h({},t),f(!a.pathname||!a.pathname.includes("?"),G("?","pathname","search",a)),f(!a.pathname||!a.pathname.includes("#"),G("#","pathname","hash",a)),f(!a.search||!a.search.includes("#"),G("#","search","hash",a)));let o,s=""===t||""===a.pathname,r=s?"/":a.pathname;if(null==r)o=n;else{let t=e.length-1;if(!i&&r.startsWith("..")){let e=r.split("/");for(;".."===e[0];)e.shift(),t-=1;a.pathname=e.join("/")}o=t>=0?e[t]:"/"}let l=function(t,e){void 0===e&&(e="/");let{pathname:n,search:i="",hash:a=""}="string"==typeof t?y(t):t,o=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:o,search:K(i),hash:z(a)}}(a,o),m=r&&"/"!==r&&r.endsWith("/"),c=(s||"."===r)&&n.endsWith("/");return l.pathname.endsWith("/")||!m&&!c||(l.pathname+="/"),l}const B=t=>t.join("/").replace(/\/\/+/g,"/"),W=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),K=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",z=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const Y=["post","put","patch","delete"],$=(new Set(Y),["get",...Y]);function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},J.apply(this,arguments)}new Set($),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const q=u.createContext(null),V=u.createContext(null),X=u.createContext(null),Z=u.createContext(null),Q=u.createContext({outlet:null,matches:[],isDataRoute:!1}),tt=u.createContext(null);function et(){return null!=u.useContext(Z)}function nt(){return et()||f(!1),u.useContext(Z).location}function it(t){u.useContext(X).static||u.useLayoutEffect(t)}function at(){let{isDataRoute:t}=u.useContext(Q);return t?function(){let{router:t}=function(){let t=u.useContext(q);return t||f(!1),t}(gt.UseNavigateStable),e=dt(ut.UseNavigateStable),n=u.useRef(!1);return it((()=>{n.current=!0})),u.useCallback((function(i,a){void 0===a&&(a={}),n.current&&("number"==typeof i?t.navigate(i):t.navigate(i,J({fromRouteId:e},a)))}),[t,e])}():function(){et()||f(!1);let t=u.useContext(q),{basename:e,future:n,navigator:i}=u.useContext(X),{matches:a}=u.useContext(Q),{pathname:o}=nt(),s=JSON.stringify(F(a,n.v7_relativeSplatPath)),r=u.useRef(!1);return it((()=>{r.current=!0})),u.useCallback((function(n,a){if(void 0===a&&(a={}),!r.current)return;if("number"==typeof n)return void i.go(n);let l=H(n,JSON.parse(s),o,"path"===a.relative);null==t&&"/"!==e&&(l.pathname="/"===l.pathname?e:B([e,l.pathname])),(a.replace?i.replace:i.push)(l,a.state,a)}),[e,i,s,o,t])}()}function ot(t,e){let{relative:n}=void 0===e?{}:e,{future:i}=u.useContext(X),{matches:a}=u.useContext(Q),{pathname:o}=nt(),s=JSON.stringify(F(a,i.v7_relativeSplatPath));return u.useMemo((()=>H(t,JSON.parse(s),o,"path"===n)),[t,s,o,n])}function st(t,e,n,i){et()||f(!1);let{navigator:a}=u.useContext(X),{matches:o}=u.useContext(Q),s=o[o.length-1],r=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let m,c=nt();if(e){var g;let t="string"==typeof e?y(e):e;"/"===l||(null==(g=t.pathname)?void 0:g.startsWith(l))||f(!1),m=t}else m=c;let p=m.pathname||"/",h=p;if("/"!==l){let t=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(t.length).join("/")}let k=E(t,{pathname:h}),_=function(t,e,n,i){var a;if(void 0===e&&(e=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==t){var o;if(!n)return null;if(n.errors)t=n.matches;else{if(!(null!=(o=i)&&o.v7_partialHydration&&0===e.length&&!n.initialized&&n.matches.length>0))return null;t=n.matches}}let s=t,r=null==(a=n)?void 0:a.errors;if(null!=r){let t=s.findIndex((t=>t.route.id&&void 0!==(null==r?void 0:r[t.route.id])));t>=0||f(!1),s=s.slice(0,Math.min(s.length,t+1))}let l=!1,m=-1;if(n&&i&&i.v7_partialHydration)for(let t=0;t<s.length;t++){let e=s[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(m=t),e.route.id){let{loaderData:t,errors:i}=n,a=e.route.loader&&void 0===t[e.route.id]&&(!i||void 0===i[e.route.id]);if(e.route.lazy||a){l=!0,s=m>=0?s.slice(0,m+1):[s[0]];break}}}return s.reduceRight(((t,i,a)=>{let o,c=!1,g=null,d=null;var p;n&&(o=r&&i.route.id?r[i.route.id]:void 0,g=i.route.errorElement||lt,l&&(m<0&&0===a?(pt[p="route-fallback"]||(pt[p]=!0),c=!0,d=null):m===a&&(c=!0,d=i.route.hydrateFallbackElement||null)));let h=e.concat(s.slice(0,a+1)),k=()=>{let e;return e=o?g:c?d:i.route.Component?u.createElement(i.route.Component,null):i.route.element?i.route.element:t,u.createElement(ct,{match:i,routeContext:{outlet:t,matches:h,isDataRoute:null!=n},children:e})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===a)?u.createElement(mt,{location:n.location,revalidation:n.revalidation,component:g,error:o,children:k(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):k()}),null)}(k&&k.map((t=>Object.assign({},t,{params:Object.assign({},r,t.params),pathname:B([l,a.encodeLocation?a.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?l:B([l,a.encodeLocation?a.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),o,n,i);return e&&_?u.createElement(Z.Provider,{value:{location:J({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:d.Pop}},_):_}function rt(){let t=function(){var t;let e=u.useContext(tt),n=function(){let t=u.useContext(V);return t||f(!1),t}(ut.UseRouteError),i=dt(ut.UseRouteError);return void 0!==e?e:null==(t=n.errors)?void 0:t[i]}(),e=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},e),n?u.createElement("pre",{style:i},n):null,null)}const lt=u.createElement(rt,null);class mt extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?u.createElement(Q.Provider,{value:this.props.routeContext},u.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ct(t){let{routeContext:e,match:n,children:i}=t,a=u.useContext(q);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Q.Provider,{value:e},i)}var gt=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(gt||{}),ut=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(ut||{});function dt(t){let e=function(){let t=u.useContext(Q);return t||f(!1),t}(),n=e.matches[e.matches.length-1];return n.route.id||f(!1),n.route.id}const pt={};function ht(t){let{to:e,replace:n,state:i,relative:a}=t;et()||f(!1);let{future:o,static:s}=u.useContext(X),{matches:r}=u.useContext(Q),{pathname:l}=nt(),m=at(),c=H(e,F(r,o.v7_relativeSplatPath),l,"path"===a),g=JSON.stringify(c);return u.useEffect((()=>m(JSON.parse(g),{replace:n,state:i,relative:a})),[m,g,a,n,i]),null}function kt(t){f(!1)}function ft(t){let{basename:e="/",children:n=null,location:i,navigationType:a=d.Pop,navigator:o,static:s=!1,future:r}=t;et()&&f(!1);let l=e.replace(/^\/*/,"/"),m=u.useMemo((()=>({basename:l,navigator:o,static:s,future:J({v7_relativeSplatPath:!1},r)})),[l,r,o,s]);"string"==typeof i&&(i=y(i));let{pathname:c="/",search:g="",hash:p="",state:h=null,key:k="default"}=i,_=u.useMemo((()=>{let t=P(c,l);return null==t?null:{location:{pathname:t,search:g,hash:p,state:h,key:k},navigationType:a}}),[l,c,g,p,h,k,a]);return null==_?null:u.createElement(X.Provider,{value:m},u.createElement(Z.Provider,{children:n,value:_}))}function _t(t){let{children:e,location:n}=t;return st(xt(e),n)}function xt(t,e){void 0===e&&(e=[]);let n=[];return u.Children.forEach(t,((t,i)=>{if(!u.isValidElement(t))return;let a=[...e,i];if(t.type===u.Fragment)return void n.push.apply(n,xt(t.props.children,a));t.type!==kt&&f(!1),t.props.index&&t.props.children&&f(!1);let o={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(o.children=xt(t.props.children,a)),n.push(o)})),n}u.startTransition,new Promise((()=>{})),u.Component;const bt=window.ReactDOM;var St=n.n(bt);function yt(){return yt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},yt.apply(this,arguments)}function vt(t,e){if(null==t)return{};var n,i,a={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(a[n]=t[n]);return a}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Et=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Nt=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(t){}const wt=u.createContext({isTransitioning:!1});new Map;const jt=u.startTransition;function Tt(t){let{basename:e,children:n,future:i,window:a}=t,o=u.useRef();null==o.current&&(o.current=function(t){return void 0===t&&(t={}),function(t,e,n,i){void 0===i&&(i={});let{window:a=document.defaultView,v5Compat:o=!1}=i,s=a.history,r=d.Pop,l=null,m=c();function c(){return(s.state||{idx:null}).idx}function g(){r=d.Pop;let t=c(),e=null==t?null:t-m;m=t,l&&l({action:r,location:p.location,delta:e})}function u(t){let e="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof t?t:S(t);return n=n.replace(/ $/,"%20"),f(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}null==m&&(m=0,s.replaceState(h({},s.state,{idx:m}),""));let p={get action(){return r},get location(){return t(a,s)},listen(t){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(k,g),l=t,()=>{a.removeEventListener(k,g),l=null}},createHref:t=>e(a,t),createURL:u,encodeLocation(t){let e=u(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){r=d.Push;let i=b(p.location,t,e);n&&n(i,t),m=c()+1;let g=x(i,m),u=p.createHref(i);try{s.pushState(g,"",u)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;a.location.assign(u)}o&&l&&l({action:r,location:p.location,delta:1})},replace:function(t,e){r=d.Replace;let i=b(p.location,t,e);n&&n(i,t),m=c();let a=x(i,m),g=p.createHref(i);s.replaceState(a,"",g),o&&l&&l({action:r,location:p.location,delta:0})},go:t=>s.go(t)};return p}((function(t,e){let{pathname:n="/",search:i="",hash:a=""}=y(t.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),b("",{pathname:n,search:i,hash:a},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){let n=t.document.querySelector("base"),i="";if(n&&n.getAttribute("href")){let e=t.location.href,n=e.indexOf("#");i=-1===n?e:e.slice(0,n)}return i+"#"+("string"==typeof e?e:S(e))}),(function(t,e){_("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),t)}({window:a,v5Compat:!0}));let s=o.current,[r,l]=u.useState({action:s.action,location:s.location}),{v7_startTransition:m}=i||{},c=u.useCallback((t=>{m&&jt?jt((()=>l(t))):l(t)}),[l,m]);return u.useLayoutEffect((()=>s.listen(c)),[s,c]),u.createElement(ft,{basename:e,children:n,location:r.location,navigationType:r.action,navigator:s,future:i})}bt.flushSync,u.useId;const Ct="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Dt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ut=u.forwardRef((function(t,e){let n,{onClick:i,relative:a,reloadDocument:o,replace:s,state:r,target:l,to:m,preventScrollReset:c,unstable_viewTransition:g}=t,d=vt(t,Et),{basename:p}=u.useContext(X),h=!1;if("string"==typeof m&&Dt.test(m)&&(n=m,Ct))try{let t=new URL(window.location.href),e=m.startsWith("//")?new URL(t.protocol+m):new URL(m),n=P(e.pathname,p);e.origin===t.origin&&null!=n?m=n+e.search+e.hash:h=!0}catch(t){}let k=function(t,e){let{relative:n}=void 0===e?{}:e;et()||f(!1);let{basename:i,navigator:a}=u.useContext(X),{hash:o,pathname:s,search:r}=ot(t,{relative:n}),l=s;return"/"!==i&&(l="/"===s?i:B([i,s])),a.createHref({pathname:l,search:r,hash:o})}(m,{relative:a}),_=function(t,e){let{target:n,replace:i,state:a,preventScrollReset:o,relative:s,unstable_viewTransition:r}=void 0===e?{}:e,l=at(),m=nt(),c=ot(t,{relative:s});return u.useCallback((e=>{if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(e,n)){e.preventDefault();let n=void 0!==i?i:S(m)===S(c);l(t,{replace:n,state:a,preventScrollReset:o,relative:s,unstable_viewTransition:r})}}),[m,l,c,i,a,n,t,o,s,r])}(m,{replace:s,state:r,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:g});return u.createElement("a",yt({},d,{href:n||k,onClick:h||o?i:function(t){i&&i(t),t.defaultPrevented||_(t)},ref:e,target:l}))})),At=u.forwardRef((function(t,e){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:r,unstable_viewTransition:l,children:m}=t,c=vt(t,Nt),g=ot(r,{relative:c.relative}),d=nt(),p=u.useContext(V),{navigator:h,basename:k}=u.useContext(X),_=null!=p&&function(t,e){void 0===e&&(e={});let n=u.useContext(wt);null==n&&f(!1);let{basename:i}=function(){let t=u.useContext(q);return t||f(!1),t}(It.useViewTransitionState),a=ot(t,{relative:e.relative});if(!n.isTransitioning)return!1;let o=P(n.currentLocation.pathname,i)||n.currentLocation.pathname,s=P(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=L(a.pathname,s)||null!=L(a.pathname,o)}(g)&&!0===l,x=h.encodeLocation?h.encodeLocation(g).pathname:g.pathname,b=d.pathname,S=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;i||(b=b.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&k&&(S=P(S,k)||S);const y="/"!==x&&x.endsWith("/")?x.length-1:x.length;let v,E=b===x||!o&&b.startsWith(x)&&"/"===b.charAt(y),N=null!=S&&(S===x||!o&&S.startsWith(x)&&"/"===S.charAt(x.length)),w={isActive:E,isPending:N,isTransitioning:_},j=E?n:void 0;v="function"==typeof a?a(w):[a,E?"active":null,N?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let T="function"==typeof s?s(w):s;return u.createElement(Ut,yt({},c,{"aria-current":j,className:v,ref:e,style:T,to:r,unstable_viewTransition:l}),"function"==typeof m?m(w):m)}));var It,Ot;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(It||(It={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(Ot||(Ot={}));const Rt=({title:t})=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)("header",{className:"gtmkit-px-8 gtmkit-py-6 gtmkit-sticky"},(0,u.createElement)("div",{className:"gtmkit-flex gtmkit-items-center gtmkit-justify-between"},(0,u.createElement)("h1",{className:"gtmkit-flex gtmkit-items-center gtmkit-font-medium gtmkit-text-3xl"},(0,u.createElement)("svg",{className:"gtmkit-mr-8",height:"44",viewBox:"0 0 160 54",width:"128",xmlns:"http://www.w3.org/2000/svg"},(0,u.createElement)("rect",{fill:"#888",height:"54",rx:"4.265",width:"160"}),(0,u.createElement)("path",{d:"m88.659 7.002h-49.266c-2.915 0-5.378-.184-9.23 2.596l-18.743 12.752c-4.549 3.292-4.571 6.001 0 9.302l18.743 12.751c3.652 2.646 6.299 2.597 9.23 2.597h15.686 33.58c2.931-.057 5.394-1.784 5.34-3.923v-32.21c-.012-2.134-2.409-3.865-5.34-3.865z",fill:"#3969bb",transform:"matrix(-1 0 0 -1 101.999867 53.999547)"}),(0,u.createElement)("g",{fill:"#fff",transform:"matrix(1.465202 0 0 1.465202 -4.582436 -7.553126)"},(0,u.createElement)("path",{d:"m18.316 23.086h4.632v6.052c-.75.245-1.459.415-2.121.514-.663.098-1.341.148-2.033.148-1.764 0-3.106-.517-4.035-1.554-.929-1.034-1.395-2.519-1.395-4.457 0-1.886.538-3.356 1.617-4.41 1.078-1.054 2.573-1.579 4.481-1.579 1.2 0 2.357.239 3.469.718l-.823 1.979c-.85-.425-1.737-.637-2.657-.637-1.071 0-1.932.358-2.572 1.077-.645.718-.968 1.685-.968 2.899 0 1.267.26 2.233.78 2.904.516.667 1.271.999 2.262.999.517 0 1.041-.052 1.572-.158v-2.435h-2.209zm11.912 6.555h-2.474v-9.614h-3.173v-2.06h8.816v2.06h-3.169zm9.908 0-2.811-9.158h-.072c.103 1.863.154 3.105.154 3.728v5.43h-2.213v-11.674h3.368l2.764 8.927h.048l2.934-8.927h3.369v11.674h-2.308v-5.525c0-.261 0-.561.009-.903.009-.341.048-1.246.112-2.716h-.074l-3.011 9.144z"}),(0,u.createElement)("path",{d:"m88.883 31.898h-3.811l-4.147-6.67-1.417 1.018v5.652h-3.357v-15.83h3.357v7.242l1.318-1.861 4.293-5.381h3.724l-5.523 7.006zm1.589-15.233c0-1.075.6-1.614 1.8-1.614 1.199 0 1.798.539 1.798 1.614 0 .512-.148.91-.45 1.196-.297.284-.749.429-1.348.429-1.2 0-1.8-.543-1.8-1.625zm3.449 15.233h-3.302v-12.104h3.302zm8.563-2.413c.578 0 1.271-.128 2.077-.38v2.456c-.82.37-1.831.552-3.031.552-1.324 0-2.28-.333-2.885-1.001-.602-.667-.902-1.668-.902-3.003v-5.835h-1.585v-1.399l1.823-1.103.949-2.557h2.115v2.579h3.388v2.48h-3.388v5.835c0 .467.129.815.393 1.041.264.222.614.335 1.046.335z"}))),t))));var Lt=n(942),Mt=n.n(Lt);const Pt=({count:t,important:e,nav:n=!1})=>(0,m.jsx)(m.Fragment,{children:t>0&&(0,m.jsx)("span",{className:Mt()("gtmkit-ml-2 gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py-px gtmkit-leading-[1.125rem] gtmkit-uppercase",{"gtmkit-bg-color-error":e},{"gtmkit-bg-color-success":!e},{"gtmkit-px-1.5":n},{"gtmkit-px-2":!n}),children:t})}),Gt=({metrics:t})=>(0,m.jsx)(Pt,{count:t.total,important:t.problem>0,nav:!0}),Ft=Pt,Ht=({to:t,title:n})=>{const{useNotifications:i}=(0,e.useContext)(c);return i.metrics.total,(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(At,{to:t,className:({isActive:t})=>"gtmkit-border-b-4 gtmkit-border-white gtmkit-text-color-grey gtmkit-font-semibold gtmkit-pt-5 gtmkit-pb-[18px] hover:gtmkit-border-color-grey "+(t?"gtmkit-text-color-heading gtmkit-border-b-color-primary ":""),children:[n,"notifications"===t&&(0,m.jsx)(Gt,{metrics:i.metrics})]})})},Bt=({NavList:t})=>(0,u.createElement)("nav",{className:"gtmkit-flex gtmkit-flex-wrap gtmkit-items-center gtmkit-px-8 gtmkit-border-y gtmkit-bg-white gtmkit-border-color-border gtmkit-text-[15px] gtmkit-space-x-9"},t.map((function(t){return(0,u.createElement)(Ht,{key:t.to,to:t.to,title:t.title})})));function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Wt.apply(this,arguments)}function Kt(t,e){if(null==t)return{};var n,i,a={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(a[n]=t[n]);return a}function zt(t,e){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zt(t,e)}function Yt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,zt(t,e)}function $t(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Jt=p().createContext(null);var qt=function(t){return t.scrollTop},Vt="unmounted",Xt="exited",Zt="entering",Qt="entered",te="exiting",ee=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var a,o=n&&!n.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?o?(a=Xt,i.appearStatus=Zt):a=Qt:a=e.unmountOnExit||e.mountOnEnter?Vt:Xt,i.state={status:a},i.nextCallback=null,i}Yt(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===Vt?{status:Xt}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==Zt&&n!==Qt&&(e=Zt):n!==Zt&&n!==Qt||(e=te)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,i=this.props.timeout;return t=e=n=i,null!=i&&"number"!=typeof i&&(t=i.exit,e=i.enter,n=void 0!==i.appear?i.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===Zt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:St().findDOMNode(this);n&&qt(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xt&&this.setState({status:Vt})},n.performEnter=function(t){var e=this,n=this.props.enter,i=this.context?this.context.isMounting:t,a=this.props.nodeRef?[i]:[St().findDOMNode(this),i],o=a[0],s=a[1],r=this.getTimeouts(),l=i?r.appear:r.enter;t||n?(this.props.onEnter(o,s),this.safeSetState({status:Zt},(function(){e.props.onEntering(o,s),e.onTransitionEnd(l,(function(){e.safeSetState({status:Qt},(function(){e.props.onEntered(o,s)}))}))}))):this.safeSetState({status:Qt},(function(){e.props.onEntered(o)}))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:St().findDOMNode(this);e?(this.props.onExit(i),this.safeSetState({status:te},(function(){t.props.onExiting(i),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:Xt},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:Xt},(function(){t.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,e.nextCallback=null,t(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:St().findDOMNode(this),i=null==t&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=a[0],s=a[1];this.props.addEndListener(o,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===Vt)return null;var e=this.props,n=e.children,i=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Kt(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return p().createElement(Jt.Provider,{value:null},"function"==typeof n?n(t,i):p().cloneElement(p().Children.only(n),i))},e}(p().Component);function ne(){}ee.contextType=Jt,ee.propTypes={},ee.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ne,onEntering:ne,onEntered:ne,onExit:ne,onExiting:ne,onExited:ne},ee.UNMOUNTED=Vt,ee.EXITED=Xt,ee.ENTERING=Zt,ee.ENTERED=Qt,ee.EXITING=te;const ie=ee;var ae=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return i=e,void((n=t).classList?n.classList.remove(i):"string"==typeof n.className?n.className=$t(n.className,i):n.setAttribute("class",$t(n.className&&n.className.baseVal||"",i)));var n,i}))},oe=function(t){function e(){for(var e,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var i=e.resolveArguments(t,n),a=i[0],o=i[1];e.removeClasses(a,"exit"),e.addClass(a,o?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var i=e.resolveArguments(t,n),a=i[0],o=i[1]?"appear":"enter";e.addClass(a,o,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var i=e.resolveArguments(t,n),a=i[0],o=i[1]?"appear":"enter";e.removeClasses(a,o),e.addClass(a,o,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,i="string"==typeof n,a=i?(i&&n?n+"-":"")+t:n[t];return{baseClassName:a,activeClassName:i?a+"-active":n[t+"Active"],doneClassName:i?a+"-done":n[t+"Done"]}},e}Yt(e,t);var n=e.prototype;return n.addClass=function(t,e,n){var i=this.getClassNames(e)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&a&&(i+=" "+a),"active"===n&&t&&qt(t),i&&(this.appliedClasses[e][n]=i,function(t,e){t&&e&&e.split(" ").forEach((function(e){return i=e,void((n=t).classList?n.classList.add(i):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,i)||("string"==typeof n.className?n.className=n.className+" "+i:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+i)));var n,i}))}(t,i))},n.removeClasses=function(t,e){var n=this.appliedClasses[e],i=n.base,a=n.active,o=n.done;this.appliedClasses[e]={},i&&ae(t,i),a&&ae(t,a),o&&ae(t,o)},n.render=function(){var t=this.props,e=(t.classNames,Kt(t,["classNames"]));return p().createElement(ie,Wt({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(p().Component);oe.defaultProps={classNames:""},oe.propTypes={};const se=oe,re=({title:n=(0,t.__)("Save","gtm-kit"),className:a="gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey"})=>{const{useUpdateSettings:o,useIsPending:s,useCanSave:r}=(0,e.useContext)(c);return(0,u.createElement)(i.Button,{className:a,onClick:()=>o(),variant:"primary",disabled:s||!r},r?(0,t.__)(n,"gtm-kit"):(0,t.__)("Saved","gtm-kit"),s?(0,u.createElement)(i.Spinner,null):"")},le=()=>{const{useCanSave:t}=(0,e.useContext)(c);return(0,u.createElement)(se,{in:t,timeout:500,classNames:"slide",unmountOnExit:!0},(0,u.createElement)("footer",{className:"gtmkit-fixed gtmkit-bottom-0 gtmkit-w-full gtmkit-z-10 gtmkit-bg-color-grey gtmkit-text-white gtmkit-p-8"},(0,u.createElement)(re,null)))},me=({subject:e})=>{const n=!0===e||"on"===e,i=!0===n?"gtmkit-bg-color-success":"gtmkit-bg-color-button-disabled";return(0,u.createElement)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-2 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase "+i},n?(0,t.__)("Active","gtm-kit"):(0,t.__)("Inactive","gtm-kit"))},ce=(0,e.forwardRef)((({children:t,className:e="",...n},i)=>(0,u.createElement)("div",{...n,className:"gtmkit-flex gtmkit-flex-col gtmkit-min-h-[128px] gtmkit-bg-white gtmkit-border gtmkit-border-color-border gtmkit-mb-6 gtmkit-py-4 gtmkit-px-5 gtmkit-rounded gtmkit-group gtmkit-w-full "+e,ref:i},t)));ce.Header=({as:t="h3",title:e="",children:n,className:i="",...a})=>(0,u.createElement)("div",{...a,className:"gtmkit-flex gtmkit-justify-between gtmkit-items-center gtmkit-mb-5 "+i},(0,u.createElement)(t,{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading"},e),n),ce.Content=({as:t="div",children:e,className:n="gtmkit-flex-auto",...i})=>(0,u.createElement)(t,{...i,className:n},e),ce.Button=({url:t,destination:e,newTab:n=!1,text:a,group:o="",...s})=>{const r=at();return(0,u.createElement)("div",{...s,className:"gtmkit-mt-4 gtmkit-mb-0.5"},(0,u.createElement)(i.Button,{variant:"primary",className:"gtmkit-rounded !gtmkit-py-4 !gtmkit-px-8 gtmkit-w-full sm:gtmkit-w-auto gtmkit-min-w-[225px]",onClick:()=>{e&&t&&!1===n?window.gtmkitSettings.current_poage===o?r(e,{replace:!0}):window.location.href=t+"#"+e:t?n?window.open(t):window.location.href=t:r(e,{replace:!0})}},(0,u.createElement)("span",{className:"gtmkit-mx-auto gtmkit-text-sm gtmkit-font-bold"},a)))};const ge=ce,ue=({title:n,data:i,className:a=""})=>{const{useSettings:o}=(0,e.useContext)(c);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8 gtmkit-mt-6"},n),(0,u.createElement)("div",{className:"lg:gtmkit-grid lg:gtmkit-grid-cols-2 xl:gtmkit-grid-cols-3 gtmkit-justify-between gtmkit-gap-6 gtmkit-border-b gtmkit-border-color-border gtmkit-pb-6 gtmkit-min-h-[175px] "+a},i.map(((e,n)=>!1===e.featured?null:(0,u.createElement)(ge,{key:n},(0,u.createElement)(ge.Header,{title:e.title},e.pill?(0,u.createElement)(me,{subject:o[e.group][e.option]}):null),(0,u.createElement)(ge.Content,null,e.text.map(((t,e)=>(0,u.createElement)("p",{key:e},t)))),(0,u.createElement)(ge.Button,{url:e.link.url,destination:e.link.destination,text:e.link.text?e.link.text:(0,t.__)("Read article","gtm-kit"),newTab:e.link.external,group:e.group}))))))},de=e=>((t,e,n)=>{const i=(t,n)=>({...n,title:t.title,to:t.path,group:t.group||n.group,option:t.option||n.option,text:[t.description],link:{...n.link,url:window.gtmkitSettings[e+"Url"],destination:"/"+t.path}});return"templates"===e?Object.keys(t).map((e=>i(t[e][0],n))):Object.keys(t).map((e=>i(t[e],n)))})(window.gtmkitSettings[e],e,function(e){switch(e){case"integrations":return{pill:!0,group:"integrations",option:null,link:{internal:!0,text:(0,t.__)("Setup Integration","gtm-kit")}};case"templates":return{pill:!1,group:null,option:null,link:{internal:!0,text:(0,t.__)("Get Template","gtm-kit")}};default:return{pill:!1,group:null,option:null,link:{internal:!0,text:(0,t.__)("Read More","gtm-kit")}}}}(e)),pe=()=>{const{useSettings:n,useNotifications:i}=(0,e.useContext)(c),[a,o]=(0,e.useState)(window.gtmkitSettings.tutorials),s=(Boolean(n.general.sgtm_domain&&n.general.sgtm_domain.trim()),i.metrics);return(0,e.useEffect)((()=>{o((e=>[...e,{title:(0,t.__)("See all tutorials","gtm-kit"),text:[(0,t.__)("See all our tutorials and get the most out of GTM Kit","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=documentation&utm_content=dashboard-tutorials",text:(0,t.__)("Read articles","gtm-kit")},featured:!0}]))}),[]),(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:(0,t.__)("General","gtm-kit")}),(0,m.jsxs)("div",{className:"lg:gtmkit-grid lg:gtmkit-grid-cols-2 xl:gtmkit-grid-cols-3 lg:gtmkit-justify-between gtmkit-gap-6 gtmkit-border-b gtmkit-border-color-border gtmkit-pb-6 gtmkit-min-h-[175px]",children:[(0,m.jsxs)(ge,{children:[(0,m.jsx)(ge.Header,{title:"Google Tag Manager Container",children:(0,m.jsx)(me,{subject:n.general.gtm_id&&n.general.container_active})}),(0,m.jsx)(ge.Content,{children:n.general.gtm_id&&n.general.container_active?(0,m.jsxs)("p",{children:[(0,t.__)("Container ID:","gtm-kit")," ",n&&n.general.gtm_id]}):(0,m.jsx)("p",{children:(0,t.__)("The container is not active but the datalayer is generated.","gtm-kit")})}),(0,m.jsx)(ge.Button,{destination:"/container",text:(0,t.__)("Edit container","gtm-kit")})]}),(0,m.jsxs)(ge,{children:[(0,m.jsx)(ge.Header,{title:(0,t.__)("Notifications","gtm-kit"),className:"!gtmkit-justify-start",children:(0,m.jsx)(Ft,{count:s.total,important:s.problem>0})}),(0,m.jsx)(ge.Content,{children:s.total?(0,m.jsx)(m.Fragment,{children:s.problem?(0,m.jsx)("p",{children:(0,t.__)("There are some problems that require your attention.","gtm-kit")}):(0,m.jsx)("p",{children:(0,t.__)("There are some notifications that may require your attention.","gtm-kit")})}):(0,m.jsx)("p",{children:(0,t.__)("No notifications at the moment.","gtm-kit")})}),(0,m.jsx)(ge.Button,{destination:"/notifications",text:(0,t.__)("See all notifications","gtm-kit")})]}),(0,m.jsxs)(ge,{children:[(0,m.jsx)(ge.Header,{title:(0,t.__)("Help improve GTM Kit","gtm-kit"),children:(0,m.jsx)(me,{subject:n.general.analytics_active})}),(0,m.jsx)(ge.Content,{children:(0,m.jsx)("p",{children:(0,t.__)("Share anonymous data with the development team to help improve GTM Kit.","gtm-kit")})}),(0,m.jsx)(ge.Button,{destination:"/misc",text:(0,t.__)("Share anonymous data","gtm-kit")})]})]}),(0,m.jsx)(ue,{title:(0,t.__)("Tutorials","gtm-kit"),data:a}),(0,m.jsx)(ue,{title:(0,t.__)("Integrations","gtm-kit"),data:de("integrations")})]})},he=({title:t,placeholder:e,help:n,className:a="gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",optionGroup:o="general",optionName:s,isDisabled:r,useSettings:l,useUpdateStateSettings:m})=>(0,u.createElement)(i.TextControl,{label:t,placeholder:e,help:n,className:a,value:l[o][s],onChange:t=>m(o,s,t),disabled:r}),ke=({title:t,label:e,optionGroup:n="general",optionName:a,disabled:o=!1,useSettings:s,useUpdateStateSettings:r})=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-py-4"},(0,u.createElement)(i.BaseControl,{label:t},(0,u.createElement)(i.ToggleControl,{label:e,checked:!o&&s[n][a],onChange:()=>{r(n,a,!(s&&s[n][a]))},disabled:o})))),fe=({title:t,options:e,help:n,className:a="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:o="general",optionName:s,disabled:r,useSettings:l,useUpdateStateSettings:m})=>(0,u.createElement)(i.RadioControl,{label:t,options:e,help:n,className:a,selected:parseInt(l[o][s]),onChange:t=>m(o,s,t),disabled:r}),_e=({title:t,help:n,items:a=[],optionGroup:o="general",optionName:s,disabled:r=!1,useSettings:l,useUpdateStateSettings:m})=>{const c=Array.isArray(l[o][s])?l[o][s]:[],[g,d]=(0,e.useState)(c);return(0,e.useEffect)((()=>{const t=Array.isArray(l[o][s])?l[o][s]:[];d(t)}),[l]),(0,u.createElement)(u.Fragment,null,(0,u.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-py-4"},(0,u.createElement)(i.BaseControl,{label:t,help:n},a.map((t=>(0,u.createElement)(i.CheckboxControl,{key:t.role,label:t.name,disabled:r,checked:g.includes(t.role),onChange:e=>((t,e)=>{d((n=>{let i;return i=t?[...n,e]:n.filter((t=>t!==e)),m(o,s,i),i}))})(e,t.role)}))))))},xe=(0,e.forwardRef)((({children:t,className:e="",disabled:n=!1,...i},a)=>(0,m.jsx)("div",{...i,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-max-w-screen-lg gtmkit-border-color-grey gtmkit-rounded "+e+(n?"gtmkit-opacity-60":""),ref:a,children:t})));xe.Header=({as:t="h3",title:e="",children:n,className:i="",...a})=>(0,m.jsxs)(t,{...a,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 "+i,children:[e,n]}),xe.Content=({as:t="div",children:e,className:n="",...i})=>(0,m.jsx)(t,{...i,className:"gtmkit-px-8 gtmkit-py-6 "+n,children:e});const be=xe,Se=()=>{const{useSettings:n,useUpdateStateSettings:i,useUserRoles:a}=(0,e.useContext)(c),o=!(n.general.sgtm_domain&&n.general.sgtm_domain.trim()&&n.general.sgtm_container_identifier&&n.general.sgtm_container_identifier.trim()),s=nt();return(0,u.useEffect)((()=>{const t=new URLSearchParams(s.search).get("focus");if(t){const e=document.getElementById(t);e&&e.scrollIntoView()}}),[s]),(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:(0,t.__)("Google Tag Manager container","gtm-kit")}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("General Container Settings","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container.","gtm-kit")}),(0,m.jsx)(he,{title:(0,t.__)("GTM Container ID:","gtm-kit"),optionName:"gtm_id",placeholder:(0,t.__)("Enter GTM Container ID","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Inject Container Code","gtm-kit"),label:(0,t.__)("Setting this to Off will remove the Google Tag Manager container code but the data layer will remain.","gtm-kit"),optionName:"container_active",useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Just the container","gtm-kit"),label:(0,t.__)("Setting this to On will reduce the functionality to just the GTM container code. No additional data will be pushed to the datalayer regardless of any other settings.","gtm-kit"),optionName:"just_the_container",useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("dataLayer variable name:","gtm-kit"),optionName:"datalayer_name",placeholder:"dataLayer",help:(0,t.__)("The default name of the data layer object is dataLayer. If you prefer to use a different name for your data layer, you may do so.","gtm-kit"),useSettings:n,useUpdateStateSettings:i})]})]}),(0,m.jsx)("div",{id:"sgtm"}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Server-side Tagging (sGTM)","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(he,{title:(0,t.__)("sGTM Container Domain:","gtm-kit"),optionName:"sgtm_domain",placeholder:(0,t.__)("Enter domain","gtm-kit"),help:(0,t.__)("Enter your custom domain name if you are using a custom server side GTM container for tracking.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("sGTM container identifier:","gtm-kit"),optionName:"sgtm_container_identifier",placeholder:(0,t.__)("Enter loader name","gtm-kit"),help:(0,t.__)("Only use if you are using a custom loader.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Cookie Keeper (for Stape users only)","gtm-kit"),label:(0,t.__)("Prolong cookie lifetime in Safari and other browsers with ITP. This only works if you use Stape sGTM hosting and have set up the Cookie Keeper power up.","gtm-kit"),optionName:"sgtm_cookie_keeper",disabled:o,useSettings:n,useUpdateStateSettings:i})]}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Google Tag Manager Server-side Tagging","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("Server-side tagging is a silver bullet that gives you improved data accuracy, performance, privacy, and flexibility.","gtm-kit")," ",(0,m.jsx)("a",{href:"https://gtmkit.com/guides/google-tag-manager-server-side-tagging/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=sgtm&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more","gtm-kit")})]}),(0,m.jsx)("h4",{className:"gtmkit-pt-4 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Hosting server-side GTM containers","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("Setting up server-side tracking can be challenging and costly but there is an easy and cheap solution.","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("Stape.io is a solution for hosting server-side Google Tag Manager containers, offering a simplified approach that demands less technical expertise than solutions like Google Cloud Platform.","gtm-kit")," ",(0,t.__)("Additionally, it provides valuable add-ons for enhanced functionality.","gtm-kit")]}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,m.jsx)("a",{href:"https://jump.gtmkit.com/link/1-AC1E5",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more about Stape.io","gtm-kit")})})]})})]})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Page Speed Optimization","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsx)(be.Content,{children:(0,m.jsx)(ke,{title:(0,t.__)("load_delayed_js event","gtm-kit"),label:(0,t.__)("Setting this to On will push the event 'load_delayed_js' on page load.","gtm-kit"),optionName:"load_js_event",useSettings:n,useUpdateStateSettings:i})}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Delay JavaScript execution","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("Page optimization plugins can delay the 'load_delayed_js' event and this can be used to delay the triggering og tags in Google Tag Manager.","gtm-kit")," ",(0,m.jsx)("a",{href:"https://gtmkit.com/guides/delay-javascript-execution-in-gtm/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=delay-js&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Google Tag Manager Environment","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(he,{title:(0,t.__)("gtm_auth:","gtm-kit"),optionName:"gtm_auth",placeholder:(0,t.__)("Enter gtm_auth code","gtm-kit"),help:(0,t.__)("Enter the gtm_auth code for your GTM environment.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("gtm_preview:","gtm-kit"),optionName:"gtm_preview",placeholder:(0,t.__)("Enter gtm_preview code","gtm-kit"),help:(0,t.__)("Enter the gtm_preview code for your GTM environment.","gtm-kit"),useSettings:n,useUpdateStateSettings:i})]}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Environments","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("In Google Tag Manager you can define different environments like Live, Dev and QA.","gtm-kit")," ",(0,t.__)('To use a specific environment in GTM Kit you must enter the "gtm_auth" and "gtm_preview" codes for that environment.',"gtm-kit")," ",(0,t.__)("If left empty the default environment will be used.","gtm-kit")]}),(0,m.jsx)("h4",{className:"gtmkit-pt-4 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("Override settings in wp-config.php","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("You can override the values by using constants in wp-config.php, which is a very useful for setting the value in your development and staging environments.","gtm-kit")," ",(0,m.jsx)("a",{href:"https://gtmkit.com/documentation/settings-actions-and-filters-for-developers/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=container-settings&utm_content=dashboard-container",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Exclude User Roles","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsx)(be.Content,{children:(0,m.jsx)(_e,{title:(0,t.__)("Exclude user roles","gtm-kit"),help:(0,t.__)("Select the roles that you want to exclude from tracking.","gtm-kit"),items:a,optionName:"exclude_user_roles",useSettings:n,useUpdateStateSettings:i})}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold gtmkit-text-red-600",children:(0,t.__)("Warning!","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("Excluding user roles is not compatible with all full-page cache solutions. Some full-page cache solutions may cache the page identically for all users, regardless of their user role. This could result in users being excluded who should not be.","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("Please ensure thorough and proper testing of this.","gtm-kit")})]})})]})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Container Code Implementation","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(fe,{title:(0,t.__)("Container code implementation:","gtm-kit"),options:[{label:(0,t.__)("Standard implementation as recommended by Google (no delay)","gtm-kit"),value:0},{label:(0,t.__)("Load container when the browser is idle (requestIdleCallback)","gtm-kit"),value:1}],help:(0,t.__)("Depending on how you use Google Tag Manager you can delay the loading of the container script until the browser is idle.","gtm-kit"),optionName:"script_implementation",useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(fe,{title:(0,t.__)("Container code noscript implementation:","gtm-kit"),options:[{label:(0,t.__)("Just after the opening <body> tag","gtm-kit"),value:0},{label:(0,t.__)("Footer of the page (not recommended by Google)","gtm-kit"),value:1},{label:(0,t.__)("Custom (insert function in your template)","gtm-kit"),value:2},{label:(0,t.__)("Disable <noscript> implementation","gtm-kit"),value:3}],help:(0,t.__)('The preferred method to implement the <noscript> container code is just after the opening <body> tag. This requires that your theme uses the "body_open" hook. If your theme does not support this the script can be injected in the footer or you can use the function below.',"gtm-kit"),optionName:"noscript_implementation",useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,m.jsx)("code",{children:"<?php if ( function_exists( 'gtmkit_the_noscript_tag' ) ) { gtmkit_the_noscript_tag(); } ?>"})})]})]})]})},ye=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Post Data","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Post Data Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-4"},(0,t.__)("Specify which post data elements you wish to include in the dataLayer for use in Google Tag Manager.","gtm-kit")),(0,u.createElement)(ke,{title:(0,t.__)("Post type","gtm-kit"),id:"post-type",label:(0,t.__)("Include the type of the current post or archive page.","gtm-kit"),optionName:"datalayer_post_type",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Page type","gtm-kit"),id:"page-type",label:(0,t.__)('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",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Categories","gtm-kit"),id:"categories",label:(0,t.__)("Include the categories of the current post or archive page.","gtm-kit"),optionName:"datalayer_categories",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Tags","gtm-kit"),id:"tags",label:(0,t.__)("Include the tags of the current post or archive page.","gtm-kit"),optionName:"datalayer_tags",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post title","gtm-kit"),id:"post-title",label:(0,t.__)("Include the Post ID of the current post.","gtm-kit"),optionName:"datalayer_post_title",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post ID","gtm-kit"),id:"post-id",label:(0,t.__)("Include the Post ID of the current post.","gtm-kit"),optionName:"datalayer_post_id",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post data","gtm-kit"),id:"post-date",label:(0,t.__)("Include the post date.","gtm-kit"),optionName:"datalayer_post_date",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post author name","gtm-kit"),id:"post-author-name",label:(0,t.__)("Include the post author name.","gtm-kit"),optionName:"datalayer_post_author_name",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Post author ID","gtm-kit"),id:"post-author-id",label:(0,t.__)("Include the post author ID.","gtm-kit"),optionName:"datalayer_post_author_id",useSettings:n,useUpdateStateSettings:i}))))},ve=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("User Data","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Warning!","gtm-kit"),className:"gtmkit-text-red-600"}),(0,u.createElement)(be.Content,{className:"gtmkit-space-y-2"},(0,u.createElement)("p",null,(0,t.__)("Including user data is not compatible with full page caching.","gtm-kit")),(0,u.createElement)("p",null,(0,t.__)("Full page caching will cache user data making it the same for all users. There are ways around this, but it depends on the chosen cache solution and is only for advanced users.","gtm-kit")))),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("User Data Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Logged in","gtm-kit"),id:"logged-in",label:(0,t.__)("Include whether the user is logged in.","gtm-kit"),optionName:"datalayer_logged_in",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("User ID","gtm-kit"),id:"user-id",label:(0,t.__)("Include the user ID if the user is logged in.","gtm-kit"),optionName:"datalayer_user_id",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("User role","gtm-kit"),id:"user-role",label:(0,t.__)("Include the user role if the user is logged in.","gtm-kit"),optionName:"datalayer_user_role",useSettings:n,useUpdateStateSettings:i}))))},Ee=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c),a=!n.general.gcm_default_settings;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Google Consent Mode","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Google Consent Mode Activation","gtm-kit")},(0,u.createElement)("span",{className:"gtmkit-text-red-600 gtmkit-ml-2"},(0,t.__)("Warning!","gtm-kit"))),(0,u.createElement)(be.Content,{className:"gtmkit-space-y-2"},(0,u.createElement)("p",null,(0,t.__)("Most Consent Management Platforms will handle the Google Consent Mode settings for you and applying the default settings in both GTM Kit and you CMP will lead to unexpected behaviour or errors.","gtm-kit")),(0,u.createElement)("p",null,(0,t.__)("You should only use these settings if you do not have a Consent Management Platform that supports Google Consent Mode.","gtm-kit")),(0,u.createElement)("p",{className:"!gtmkit-mt-4"},(0,t.__)("GTM Kit will only set the default Consent Mode settings and you must update the settings yourself when the user has given consent.","gtm-kit")),(0,u.createElement)("p",{className:"gtmkit-text-color-primary !gtmkit-my-6"},(0,u.createElement)("a",{href:"https://developers.google.com/tag-platform/security/guides/consent#implementation_example",target:"_blank",rel:"noreferrer",className:"hover:gtmkit-underline gtmkit-font-semibold"},(0,t.__)("See an example of how consent is updated","gtm-kit"))),(0,u.createElement)(ke,{title:(0,t.__)("Activate GCM settings","gtm-kit"),label:(0,t.__)("Choose this option if you would like to activate the default settings below","gtm-kit"),optionName:"gcm_default_settings",useSettings:n,useUpdateStateSettings:i}))),(0,u.createElement)(be,{disabled:a},(0,u.createElement)(be.Header,{title:(0,t.__)("Google Consent Mode Default Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Ad Personalization","gtm-kit"),label:(0,t.__)("Enables personalized advertising","gtm-kit"),optionName:"gcm_ad_personalization",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Ad Storage","gtm-kit"),label:(0,t.__)("Enables storage, such as cookies, related to advertising","gtm-kit"),optionName:"gcm_ad_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Ad User Data","gtm-kit"),label:(0,t.__)("Enables sending user data related to advertising to Google","gtm-kit"),optionName:"gcm_ad_user_data",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Analytics Storage","gtm-kit"),label:(0,t.__)("Enables storage, such as cookies, related to analytics (for example, visit duration)","gtm-kit"),optionName:"gcm_analytics_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Functionality Storage","gtm-kit"),label:(0,t.__)("Enables storage that supports the functionality of the website or app such as language settings","gtm-kit"),optionName:"gcm_functionality_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Personalization Storage","gtm-kit"),label:(0,t.__)("Enables storage related to personalization such as video recommendations","gtm-kit"),optionName:"gcm_personalization_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Security Storage","gtm-kit"),label:(0,t.__)("Enables storage related to security such as authentication functionality, fraud prevention, and other user protection","gtm-kit"),optionName:"gcm_security_storage",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)("h4",{className:"gtmkit-font-bold gtmkit-pt-8"},(0,t.__)("Advanced","gtm-kit")),(0,u.createElement)(ke,{title:(0,t.__)("Redact Ads Data","gtm-kit"),label:(0,t.__)("Redact advertising data","gtm-kit"),optionName:"gcm_ads_data_redaction",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Pass through URL parameters","gtm-kit"),label:(0,t.__)("Pass through ad click, client ID, and session ID information in URLs","gtm-kit"),optionName:"gcm_url_passthrough",disabled:a,useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(he,{title:(0,t.__)("Wait For Update","gtm-kit"),optionName:"gcm_wait_for_update",placeholder:(0,t.__)("Enter time in milliseconds","gtm-kit"),useSettings:n,useUpdateStateSettings:i}))))},Ne=({label:t,value:e,tag:n})=>(0,u.createElement)("tr",null,(0,u.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-4 gtmkit-py-2"},(0,u.createElement)("strong",null,t)),(0,u.createElement)("td",{className:"gtmkit-px-4 gtmkit-py-2"},"code"===n?(0,u.createElement)("code",{className:"gtmkit-text-sm"},e):(0,u.createElement)("em",null,e))),we=()=>{const{useSiteData:n}=(0,e.useContext)(c),i=Object.values(n.shared_data);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey"},(0,t.__)("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,u.createElement)("p",{className:"gtmkit-mb-2 gtmkit-text-color-grey"},(0,t.__)("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,u.createElement)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm gtmkit-my-6 gtmkit-py-6"},(0,u.createElement)("tbody",{className:"gtmkit-py-6"},i.map((function(t,e){return(0,u.createElement)(Ne,{key:e,label:t.label,value:t.value,tag:t.tag})})))))},je=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c);return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Misc","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Help improve GTM Kit","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(we,null),(0,u.createElement)("p",{className:"gtmkit-my-4 gtmkit-mb-2 gtmkit-text-color-grey"},(0,t.__)("GTM Kit will never transmit any domain names or container ID's.","gtm-kit")),(0,u.createElement)(ke,{title:(0,t.__)("Share anonymous data","gtm-kit"),label:(0,t.__)("I agree to share anonymous data with the development team to help improve GTM Kit.","gtm-kit"),optionName:"analytics_active",useSettings:n,useUpdateStateSettings:i}))),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Logging and debugging","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Event Inspector","gtm-kit"),label:(0,t.__)("The event inspector is placed in the footer of the front and it allows you to see all the fired GTM events.","gtm-kit"),optionName:"event_inspector",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Console log","gtm-kit"),label:(0,t.__)("Log helpful messages and warnings to the browser log.","gtm-kit"),optionName:"console_log",useSettings:n,useUpdateStateSettings:i}),(0,u.createElement)(ke,{title:(0,t.__)("Debug log","gtm-kit"),label:(0,t.__)('Log the "purchase" event to the debug log.',"gtm-kit"),optionName:"debug_log",useSettings:n,useUpdateStateSettings:i}))))},Te=()=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)(ue,{title:(0,t.__)("Integrations","gtm-kit"),data:de("integrations")})),Ce=({pluginName:e})=>(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.sprintf)(
    22// translators: %s is the name of the plugin.
    3 (0,a.__)("%s is not active","gtm-kit"),e),className:"gtmkit-text-red-600"}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-6"},(0,a.sprintf)(
    43// translators: %s is the name of the plugin.
    5 (0,a.__)("If you haven't installed and activated %s you must do that.","gtm-kit"),e)),(0,t.createElement)(r.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=window.gtmkitSettings.pluginInstallUrl+e}},(0,a.sprintf)(
     4(0,t.__)("%s is not active","gtm-kit"),e),className:"gtmkit-text-red-600"}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-6"},(0,t.sprintf)(
    65// translators: %s is the name of the plugin.
    7 (0,a.__)("Install %s","gtm-kit"),e)))),we=({title:e,options:n,className:s="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:o="general",optionName:l,disabled:m=!1,help:c="",notSet:u=!1})=>{const{useSettings:d,useUpdateStateSettings:p}=(0,i.useContext)(g),h=u?[{label:(0,a.__)("(not set)","gtm-kit"),value:""},...n]:n;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(r.SelectControl,{label:e,value:d&&d[o][l],options:h,className:s,onChange:t=>p(o,l,t),disabled:m,help:c}))},Ne=({pluginName:e,optionName:n,pluginInactive:r})=>{const{useSettings:s,useUpdateStateSettings:o}=(0,i.useContext)(g);return(0,t.createElement)(he,{disabled:r},(0,t.createElement)(he.Header,{title:(0,a.sprintf)(
    86// translators: %s is the name of the plugin.
    9 (0,a.__)("%s Integration","gtm-kit"),e)}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.sprintf)(
     7(0,t.__)("If you haven't installed and activated %s you must do that.","gtm-kit"),e)),(0,u.createElement)(i.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=window.gtmkitSettings.pluginInstallUrl+e}},(0,t.sprintf)(
    108// translators: %s is the name of the plugin.
    11 (0,a.__)("Track %s","gtm-kit"),e),label:(0,a.sprintf)(
    129// translators: %s is the name of the plugin.
    13 (0,a.__)("Activate the %s integration","gtm-kit"),e),optionGroup:"integrations",optionName:n,disabled:r,useSettings:s,useUpdateStateSettings:o})))},Ce=[{label:(0,a.__)("Retail","gtm-kit"),value:"retail"},{label:(0,a.__)("Education","gtm-kit"),value:"education"},{label:(0,a.__)("Flights","gtm-kit"),value:"flights"},{label:(0,a.__)("Hotel rental","gtm-kit"),value:"hotel_rental"},{label:(0,a.__)("Jobs","gtm-kit"),value:"jobs"},{label:(0,a.__)("Local deals","gtm-kit"),value:"local"},{label:(0,a.__)("Real estate","gtm-kit"),value:"real_estate"},{label:(0,a.__)("Travel","gtm-kit"),value:"travel"},{label:(0,a.__)("Custom","gtm-kit"),value:"custom"}],je=()=>{const{useSettings:t,useUpdateStateSettings:e,isPremium:n}=(0,i.useContext)(g),r="WooCommerce",s=!window.gtmkitSettings.plugins.woocommerce,o=s||!t.integrations.woocommerce_integration,l=o||!n||!t.general.sgtm_domain,m=l||!t.premium.woocommerce_webhooks;return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,a.__)("WooCommerce","gtm-kit")}),s?(0,de.jsx)(xe,{pluginName:r}):null,(0,de.jsx)(Ne,{pluginName:r,optionName:"woocommerce_integration",pluginInactive:s}),(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Basic settings","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(we,{title:(0,a.__)("Brand","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_brand",options:window.gtmkitSettings.taxonomyOptions,help:(0,a.__)("Select the taxonomy that is used for product brands","gtm-kit"),notSet:!0,disabled:o}),(0,de.jsx)(ce,{title:(0,a.__)("Use SKU instead of ID","gtm-kit"),label:(0,a.__)("Use SKU instead of the product ID with fallback to ID if no SKU is set.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_use_sku",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Exclude tax","gtm-kit"),label:(0,a.__)("Exclude tax from prices and revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_tax",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Exclude shipping from revenue","gtm-kit"),label:(0,a.__)("Exclude shipping from revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_shipping",disabled:o,useSettings:t,useUpdateStateSettings:e})]})]}),(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("User Data","gtm-kit")}),(0,de.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,de.jsx)(he.Content,{children:(0,de.jsx)(ce,{title:(0,a.__)("Include customer data","gtm-kit"),label:(0,a.__)('Enable this option to include customer data in the data layer on the "purchase" event.',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_customer_data",disabled:o,useSettings:t,useUpdateStateSettings:e})}),(0,de.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,de.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,de.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,a.__)("User-Provided Data","gtm-kit")}),(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("The user data is available in the datalayer in 'ecommerce.customer' and a subset of the user data formatted for the 'User-Provided Data' variable is available in 'user-data'.","gtm-kit")," ",(0,de.jsx)("a",{href:"https://support.google.com/google-ads/answer/13262500?sjid=9465166023214753583-EU#Code_snippet",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,a.__)("Learn more","gtm-kit")})]})]})})]})]}),n?(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Webhooks for server-side tracking","gtm-kit"),children:n?(0,de.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,de.jsxs)(he.Content,{children:[l?(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("In order to use webhooks you must first enable Server-side Tagging by entering a sGTM Container Domain","gtm-kit"),(0,de.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:window.gtmkitSettings.dashboardUrl+"#/container?focus=sgtm",children:(0,a.__)("Go to sGTM settings","gtm-kit")})]}):(0,de.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,a.__)("In order to use webhooks you must configure you server-side container to handle the webhooks","gtm-kit"),(0,de.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:window.gtmkitSettings.templatesUrl+"#/server-side-tagging",children:(0,a.__)("Go to GTM Templates","gtm-kit")})]}),(0,de.jsx)(ce,{title:(0,a.__)("Send webhooks to server GTM container","gtm-kit"),label:(0,a.__)("This option will allow webhooks to be sent to your server GTM container.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_webhooks",disabled:l,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Purchase webhook","gtm-kit"),label:(0,a.__)("Enable this option to include the permalink structure of the product base, category base, tag base and attribute base.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_purchase_webhook",disabled:m,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Refund webhook","gtm-kit"),label:(0,a.__)("Enable this option to include the path of cart, checkout, order received and my account page.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_refund_webhook",disabled:m,useSettings:t,useUpdateStateSettings:e})]})]}):null,(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Event customization","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(ge,{title:"view_item_list (with product filter)",options:[{label:(0,a.__)("Push view_item_list when the list is updated using a product filter.","gtm-kit"),value:0},{label:(0,a.__)("Only only push view_item_list once per per page for each list.","gtm-kit"),value:1}],help:(0,a.__)("Do you what to push the view_item_list event if the list is updated using a filter or just once per page view.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_view_item_list_limit",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ge,{title:"view_item (variable product)",options:[{label:(0,a.__)("Only push view_item on the master product","gtm-kit"),value:0},{label:(0,a.__)("Push view_item on master and variation products (higher number of views).","gtm-kit"),value:1},{label:(0,a.__)("Only push view_item on variation products.","gtm-kit"),value:2}],help:(0,a.__)('When do you want to fire the "view_item" event on variable products?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_variable_product_tracking",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ge,{title:"add_shipping_info ",options:[{label:(0,a.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,a.__)("When a shipment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,a.__)("Disable the 'add_shipment_info' event.","gtm-kit"),value:0}],help:(0,a.__)('When do you want to fire the "add_shipment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_shipping_info",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ge,{title:"add_payment_info ",options:[{label:(0,a.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,a.__)("When a payment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,a.__)("Disable the 'add_payment_info' event.","gtm-kit"),value:0}],help:(0,a.__)('When do you want to fire the "add_payment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_payment_info",disabled:o,useSettings:t,useUpdateStateSettings:e})]})]}),(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Google Ads Settings","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(we,{title:(0,a.__)("Google Business Vertical","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_google_business_vertical",options:Ce,help:(0,a.__)("In order to use Google Ads Remarketing you must select your business type (vertical).","gtm-kit"),notSet:!0,disabled:o}),(0,de.jsx)(me,{title:(0,a.__)("Product ID prefix","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_product_id_prefix",placeholder:(0,a.__)("Enter prefix","gtm-kit"),help:(0,a.__)("If your product feed generator is adding a prefix to the product IDs, you can add the prefix here to include it in the Data Layer.","gtm-kit"),disabled:o,useSettings:t,useUpdateStateSettings:e})]})]}),n?(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Custom CSS Selectors","gtm-kit"),children:n?(0,de.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)("p",{className:"gtmkit-mb-4",children:(0,a.__)("If your shop is not compatible with the default CSS selectors you can specify your own CSS selectors.","gtm-kit")}),(0,de.jsx)(me,{title:(0,a.__)("Single Product (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_single_product_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,a.__)("Enter CSS selector","gtm-kit"),help:(0,a.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit"),useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(me,{title:(0,a.__)("Product List (select_item):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_item_selector",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,a.__)("Enter CSS selector","gtm-kit"),help:(0,a.__)("Enter the CSS selector that matches your product list item, which should be use to fire the select_item event.","gtm-kit"),useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(me,{title:(0,a.__)("Product List (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,a.__)("Enter CSS selector","gtm-kit"),help:(0,a.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit"),useSettings:t,useUpdateStateSettings:e})]})]}):null,(0,de.jsxs)(he,{disabled:o,children:[(0,de.jsx)(he.Header,{title:(0,a.__)("Advanced Settings","gtm-kit")}),(0,de.jsxs)(he.Content,{children:[(0,de.jsx)(ce,{title:(0,a.__)("Dequeue the default JavaScript","gtm-kit"),label:(0,a.__)("Enable this option to dequeue the default JavaScript if you plan to create your own JavaScript.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_dequeue_script",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Include permalink structure","gtm-kit"),label:(0,a.__)("Enable this option to include the permalink structure of the product base, category base, tag base and attribute base.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_permalink_structure",disabled:o,useSettings:t,useUpdateStateSettings:e}),(0,de.jsx)(ce,{title:(0,a.__)("Include path of pages","gtm-kit"),label:(0,a.__)("Enable this option to include the path of cart, checkout, order received and my account page.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_pages",disabled:o,useSettings:t,useUpdateStateSettings:e})]})]})]})},Te=()=>{const{useSettings:e,useUpdateStateSettings:n}=(0,i.useContext)(g),r="Contact Form 7",s=!window.gtmkitSettings.plugins.cf7,o=s||!e.integrations.cf7_integration;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Contact Form 7","gtm-kit")),s?(0,t.createElement)(xe,{pluginName:r}):null,(0,t.createElement)(Ne,{pluginName:r,optionName:"cf7_integration",pluginInactive:s}),(0,t.createElement)(he,{disabled:o},(0,t.createElement)(he.Header,{title:(0,a.__)("Basic Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ge,{title:(0,a.__)("Load JavaScript","gtm-kit"),options:[{label:(0,a.__)("Only on pages where the Contact Form 7 script is registered (recommended).","gtm-kit"),value:1},{label:(0,a.__)("On all pages","gtm-kit"),value:2}],help:(0,a.__)("Where do you want load the JavaScript?","gtm-kit"),optionGroup:"integrations",optionName:"cf7_load_js",disabled:o,useSettings:e,useUpdateStateSettings:n}))))},Ue=()=>{const e="Easy Digital Downloads",n=!window.gtmkitSettings.plugins.edd,{useSettings:r,useUpdateStateSettings:s}=(0,i.useContext)(g),o=n||!r.integrations.edd_integration;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Easy Digital Downloads","gtm-kit")),n?(0,t.createElement)(xe,{pluginName:e}):null,(0,t.createElement)(Ne,{pluginName:e,optionName:"edd_integration",pluginInactive:n}),(0,t.createElement)(he,{disabled:o},(0,t.createElement)(he.Header,{title:(0,a.__)("Basic Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Use SKU instead of ID","gtm-kit"),label:(0,a.__)("Use SKU instead of the product ID with fallback to ID if no SKU is set.","gtm-kit"),optionGroup:"integrations",optionName:"edd_use_sku",disabled:o,useSettings:r,useUpdateStateSettings:s}),(0,t.createElement)(ce,{title:(0,a.__)("Exclude tax","gtm-kit"),label:(0,a.__)("Exclude tax from prices and revenue","gtm-kit"),optionGroup:"integrations",optionName:"edd_exclude_tax",disabled:o,useSettings:r,useUpdateStateSettings:s}),(0,t.createElement)(ce,{title:(0,a.__)("Include customer data","gtm-kit"),label:(0,a.__)('Enable this option to include customer data in the data layer on the "purchase" event.',"gtm-kit"),optionGroup:"integrations",optionName:"edd_include_customer_data",disabled:o,useSettings:r,useUpdateStateSettings:s}))),(0,t.createElement)(he,{disabled:o},(0,t.createElement)(he.Header,{title:(0,a.__)("Google Ads Settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(we,{title:(0,a.__)("Google Business Vertical","gtm-kit"),optionGroup:"integrations",optionName:"edd_google_business_vertical",options:Ce,help:(0,a.__)("In order to use Google Ads Remarketing you must select your business type (vertical).","gtm-kit"),notSet:!0,disabled:o}),(0,t.createElement)(me,{title:(0,a.__)("Product ID prefix","gtm-kit"),optionGroup:"integrations",optionName:"edd_product_id_prefix",placeholder:(0,a.__)("Enter prefix","gtm-kit"),help:(0,a.__)("If your product feed generator is adding a prefix to the product IDs, you can add the prefix here to include it in the Data Layer.","gtm-kit"),disabled:o,useSettings:r,useUpdateStateSettings:s}))),(0,t.createElement)(he,{disabled:n},(0,t.createElement)(he.Header,{title:(0,a.__)("Advanced settings","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)(ce,{title:(0,a.__)("Dequeue the default JavaScript","gtm-kit"),label:(0,a.__)("Enable this option to dequeue the default JavaScript if you plan to create your own JavaScript.","gtm-kit"),optionGroup:"integrations",optionName:"edd_dequeue_script",disabled:o,useSettings:r,useUpdateStateSettings:s}))))},De=window.gtmkitSettings.templates||{},Pe=(Object.keys(De).map((function(t){const e=De[t][0];return{title:e.title,to:e.path,pill:!1,text:[e.description],link:{internal:!0,url:window.gtmkitSettings.templatesUrl,destination:"/"+e.path,text:(0,a.__)("Get template","gtm-kit")}}})),()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Getting Started","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Configure your Google Tag Manager container","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-4"},(0,a.__)("GTM Kit is sending data to your Google Tag Manger container but you still need to configure Tags, Triggers and Variables in GTM to use the data.","gtm-kit")),(0,t.createElement)("p",{className:"gtmkit-mb-4"},(0,a.__)("Below you will find GTM container template files, with all the necessary tags, trigger, and variables.","gtm-kit")),(0,t.createElement)("p",null,(0,a.__)("Please read the guide on how to use the import files and configure GTM.","gtm-kit"),(0,t.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:"https://gtmkit.com/guides/how-to-import-a-google-tag-manager-container/",target:"_blank",rel:"noreferrer"},(0,a.__)("Read the guide","gtm-kit"))))),(0,t.createElement)(se,{title:(0,a.__)("Templates","gtm-kit"),data:oe("templates")}))),Ie=({title:e,description:n,link:i,templates:r})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:e}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-4"},n),i&&i.url&&i.link_text?(0,t.createElement)("div",null,(0,t.createElement)("a",{href:i.url,target:"_blank",className:"gtmkit-text-color-primary gtmkit-text-base dgtmkit-font-semibold hover:gtmkit-underline",rel:"noreferrer"},i.link_text)):null,r&&r.length>0?(0,t.createElement)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-8 gtmkit-mt-8 gtmkit-border-2 gtmkit-px-6 gtmkit-py-4"},(0,t.createElement)("div",null,(0,t.createElement)("h4",{className:"gtmkit-font-bold"},(0,a.__)("GTM container import files:","gtm-kit")),(0,t.createElement)("ul",{className:"gtmkit-text-sm gtmkit-text-color-primary"},r.map((function(e){return(0,t.createElement)("li",null,(0,t.createElement)("a",{className:"hover:gtmkit-underline",href:e.link,target:"_blank",rel:"noreferrer"},e.title))})))),(0,t.createElement)("div",null,(0,t.createElement)("h4",{className:"gtmkit-font-bold"},(0,a.__)("Necessary modifications:","gtm-kit")),(0,t.createElement)("ul",{className:"gtmkit-text-sm"},r.map((function(e){return(0,t.createElement)("li",null,e.help_text)}))))):null))),Ge=({sectionData:e})=>{const n=e.collections;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},e.title),Object.keys(n).map((function(e){return(0,t.createElement)(Ie,{title:n[e].title,description:n[e].description,link:n[e].link,templates:n[e].templates})})))},Oe=()=>{const e=at(),n=window.gtmkitSettings.tutorials;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Help","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Need help?","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",{className:"gtmkit-mb-4"},(0,a.__)("We are here to help if you have any questions.","gtm-kit"),(0,t.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",onClick:()=>{e("/support",{replace:!0})}},(0,a.__)("See support options","gtm-kit"))))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Tutorials","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("ul",null,n.map(((e,n)=>(0,t.createElement)("li",{key:n,className:"gtmkit-mb-4"},(0,t.createElement)("a",{href:e.link.url,target:"_blank",rel:"noreferrer",className:"gtmkit-font-semibold gtmkit-text-color-primary hover:gtmkit-underline"},e.title),e.text.map(((e,n)=>(0,t.createElement)("div",{key:n,className:"gtmkit-text-sm"},e))))))))))},Me=()=>{const{useIsSending:e,useSiteData:n,useUpdateSupportTicket:s,useSupportTicket:o,useSendSystemData:l,useIsSystemDataSent:m,useSystemDataMessage:c}=(0,i.useContext)(g);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,a.__)("Get support","gtm-kit")),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Support options","gtm-kit")}),(0,t.createElement)(he.Content,null,(0,t.createElement)("ul",{className:"gtmkit-text-color-primary"},(0,t.createElement)("li",null,(0,t.createElement)("a",{href:"https://wordpress.org/support/plugin/gtm-kit/",target:"_blank",rel:"noreferrer"},(0,a.__)("WordPress.org Support Forum","gtm-kit"))),(0,t.createElement)("li",null,(0,t.createElement)("a",{href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer"},(0,a.__)("GITHub repository","gtm-kit"))),(0,t.createElement)("li",null,(0,t.createElement)("a",{href:"https://gtmkit.com/",target:"_blank",rel:"noreferrer"},(0,a.__)("Plugin Homepage","gtm-kit"))," ","(gtmkit.com)")))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("Share system data with the GTM Kit support team","gtm-kit")}),(0,t.createElement)(he.Content,null,m?(0,t.createElement)("p",{className:"gtmkit-mb-2"},c):(0,t.createElement)(t.Fragment,null,(0,t.createElement)("p",{className:"gtmkit-mb-2"},(0,a.__)("If the GTM Kit support team has asked you to send your system data you can do so by entering the support ticket below:","gtm-kit")),(0,t.createElement)(r.TextControl,{label:(0,t.createElement)("span",{className:"gtmkit-text-red-600"},c," "),placeholder:(0,a.__)("Enter support ticket","gtm-kit"),className:"gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",value:o,onChange:t=>s(t)}),(0,t.createElement)(r.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey",onClick:()=>{l()},disabled:!o.toUpperCase().startsWith("FS")},(0,t.createElement)("span",null,(0,a.__)("Send system data","gtm-kit")),e?(0,t.createElement)(r.Spinner,null):"")))),(0,t.createElement)(he,null,(0,t.createElement)(he.Header,{title:(0,a.__)("About GTM Kit","gtm-kit"),className:"gtmkit-flex gtmkit-items-center"},(0,t.createElement)("span",{className:"gtmkit-text-sm gtmkit-text-color-grey gtmkit-font-light gtmkit-ml-2"},"(",(0,a.__)("Version:","gtm-kit")," ",n.gtmkit_version,")")),(0,t.createElement)(he.Content,null,(0,t.createElement)("p",null,(0,a.__)("Learn about changes and follow the development of GTM Kit:","gtm-kit"),(0,t.createElement)("br",null),(0,t.createElement)("a",{className:"gtmkit-text-color-primary hover:gtmkit-underline",href:"https://gtmkit.com/changelog/",target:"_blank",rel:"noreferrer"},(0,a.__)("The changelog","gtm-kit")),(0,t.createElement)("br",null),(0,t.createElement)("a",{className:"gtmkit-text-color-primary  hover:gtmkit-underline",href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer"},(0,a.__)("The GitHub repository","gtm-kit"))))))};const Re=e=>{const{Fill:n,Slot:a}=(0,r.createSlotFill)(e),i=({children:e})=>(0,t.createElement)(n,null,e);return i.Slot=({fillProps:e})=>(0,t.createElement)(a,{fillProps:e},(t=>t.length?t:null)),i},Le=Re("GravityForms"),Ae=(Re("WooWebhooks"),Re("WooCustomSelectors"),({integrationID:e,pluginName:n})=>{const{useSettings:a,useUpdateStateSettings:r}=(0,i.useContext)(g),s=!window.gtmkitSettings.plugins[e],o=s||!a.integrations[e+"_integration"];return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},n),s?(0,t.createElement)(xe,{pluginName:n}):null,(0,t.createElement)(Ne,{pluginName:n,optionName:e+"_integration",pluginInactive:s}),"gf"===e?(0,t.createElement)(Le.Slot,{fillProps:{settingsInactive:o,useSettings:a,useUpdateStateSettings:r}}):null)}),Fe=window.wp.plugins,Ke={integrations:(0,a.__)("Integrations","gtm-kit"),templates:(0,a.__)("Google Tag Manager Templates","gtm-kit"),help:(0,a.__)("Help","gtm-kit")},He=()=>{const{useSettings:e}=(0,i.useContext)(g),n=window.gtmkitSettings,s=n.currentPage,o=function({page:t}){switch(t){case"general":return[{to:"general",title:(0,a.__)("Dashboard","gtm-kit")},{to:"container",title:(0,a.__)("Container","gtm-kit")},{to:"post-data",title:(0,a.__)("Post data","gtm-kit")},{to:"user-data",title:(0,a.__)("User data","gtm-kit")},{to:"google-consent-mode",title:(0,a.__)("Google Consent Mode","gtm-kit")},{to:"misc",title:(0,a.__)("Misc","gtm-kit")}];case"integrations":return[{to:"integrations",title:(0,a.__)("Integrations","gtm-kit")},...oe("integrations")];case"templates":return[{to:"templates",title:(0,a.__)("Templates","gtm-kit")},...oe("templates")];case"help":return[{to:"help",title:(0,a.__)("Help","gtm-kit")},{to:"support",title:(0,a.__)("Support","gtm-kit")}]}}({page:s}),l=n.templates,m=n.integrations,c=Ke[s]||(0,a.__)("Settings","gtm-kit");return Object.keys(e).length?(0,t.createElement)(r.SlotFillProvider,null,(0,t.createElement)(Gt,{title:c}),(0,t.createElement)(Mt,{NavList:o}),(0,t.createElement)("main",{className:"gtmkit-max-w-[1536px] gtmkit-px-8 gtmkit-pt-8 gtmkit-text-base"},(0,t.createElement)(kt,null,(0,t.createElement)(ht,{exact:!0,path:"/general",element:(0,t.createElement)(le,null)}),(0,t.createElement)(ht,{exact:!0,path:"/container",element:(0,t.createElement)(_e,null)}),(0,t.createElement)(ht,{exact:!0,path:"/post-data",element:(0,t.createElement)(ke,null)}),(0,t.createElement)(ht,{exact:!0,path:"/user-data",element:(0,t.createElement)(fe,null)}),(0,t.createElement)(ht,{exact:!0,path:"/google-consent-mode",element:(0,t.createElement)(Se,null)}),(0,t.createElement)(ht,{exact:!0,path:"/misc",element:(0,t.createElement)(ve,null)}),(0,t.createElement)(ht,{exact:!0,path:"/integrations",element:(0,t.createElement)(ye,null)}),(0,t.createElement)(ht,{exact:!0,path:"/woocommerce",element:(0,t.createElement)(je,null)}),(0,t.createElement)(ht,{exact:!0,path:"/cf7",element:(0,t.createElement)(Te,null)}),(0,t.createElement)(ht,{exact:!0,path:"/edd",element:(0,t.createElement)(Ue,null)}),m&&Object.keys(m).map((function(e){if("add-on"===m[e].type)return(0,t.createElement)(ht,{exact:!0,key:e,path:e,element:(0,t.createElement)(Ae,{integrationID:e,pluginName:m[e].title})})})),(0,t.createElement)(ht,{exact:!0,path:"/templates",element:(0,t.createElement)(Pe,null)}),l&&Object.keys(l).map((function(e){return(0,t.createElement)(ht,{exact:!0,key:e,path:e,element:(0,t.createElement)(Ge,{sectionData:l[e][0]})})})),(0,t.createElement)(ht,{exact:!0,path:"/help",element:(0,t.createElement)(Oe,null)}),(0,t.createElement)(ht,{exact:!0,path:"/support",element:(0,t.createElement)(Me,null)}),(0,t.createElement)(ht,{path:"/",element:(0,t.createElement)(pt,{replace:!0,to:"/"+s})}))),(0,t.createElement)(ne,null),(0,t.createElement)(Fe.PluginArea,null)):(0,t.createElement)("div",{className:"gtmkit-h-screen gtmkit-flex gtmkit-items-center gtmkit-justify-center"},(0,t.createElement)(r.Spinner,null))},Be=()=>(0,t.createElement)(Ct,{basename:"/"},(0,t.createElement)(u,null,(0,t.createElement)(He,null)));document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById(window.gtmkitSettings.rootId);null!=e&&(0,i.render)((0,t.createElement)(Be,null),e)}))})()})();
     10(0,t.__)("Install %s","gtm-kit"),e)))),De=({title:n,options:a,className:o="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:s="general",optionName:r,disabled:l=!1,help:m="",notSet:g=!1})=>{const{useSettings:d,useUpdateStateSettings:p}=(0,e.useContext)(c),h=g?[{label:(0,t.__)("(not set)","gtm-kit"),value:""},...a]:a;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)(i.SelectControl,{label:n,value:d&&d[s][r],options:h,className:o,onChange:t=>p(s,r,t),disabled:l,help:m}))},Ue=({pluginName:n,optionName:i,pluginInactive:a})=>{const{useSettings:o,useUpdateStateSettings:s}=(0,e.useContext)(c);return(0,u.createElement)(be,{disabled:a},(0,u.createElement)(be.Header,{title:(0,t.sprintf)(
     11// translators: %s is the name of the plugin.
     12// translators: %s is the name of the plugin.
     13(0,t.__)("%s Integration","gtm-kit"),n)}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.sprintf)(
     14// translators: %s is the name of the plugin.
     15// translators: %s is the name of the plugin.
     16(0,t.__)("Track %s","gtm-kit"),n),label:(0,t.sprintf)(
     17// translators: %s is the name of the plugin.
     18// translators: %s is the name of the plugin.
     19(0,t.__)("Activate the %s integration","gtm-kit"),n),optionGroup:"integrations",optionName:i,disabled:a,useSettings:o,useUpdateStateSettings:s})))},Ae=[{label:(0,t.__)("Retail","gtm-kit"),value:"retail"},{label:(0,t.__)("Education","gtm-kit"),value:"education"},{label:(0,t.__)("Flights","gtm-kit"),value:"flights"},{label:(0,t.__)("Hotel rental","gtm-kit"),value:"hotel_rental"},{label:(0,t.__)("Jobs","gtm-kit"),value:"jobs"},{label:(0,t.__)("Local deals","gtm-kit"),value:"local"},{label:(0,t.__)("Real estate","gtm-kit"),value:"real_estate"},{label:(0,t.__)("Travel","gtm-kit"),value:"travel"},{label:(0,t.__)("Custom","gtm-kit"),value:"custom"}],Ie={variant:{default:"gtmkit-feature-upsell--default",card:"gtmkit-feature-upsell--card"}},Oe=({children:e,shouldUpsell:n=!0,className:a="",variant:o="card",cardLink:s="",cardText:r=(0,t.__)("Unlock with premium","gtm-kit"),...l})=>n?(0,m.jsxs)("div",{className:Mt()("gtmkit-feature-upsell gtmkit-relative gtmkit-max-w-screen-lg",Ie.variant[o],a),children:[(0,m.jsx)("div",{className:"gtmkit-space-y-8 gtmkit-opacity-30",children:e}),(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:"gtmkit-absolute gtmkit-inset-0 gtmkit-flex gtmkit-items-center gtmkit-justify-center",children:(0,m.jsx)(i.Button,{as:"a",className:"gtmkit-gap-2 gtmkit-shadow-lg gtmkit-rounded !gtmkit-text-lg fgtmkit-font-bold gtmkit-py-6 gtmkit-px-8 is-primary",variant:"upsell",href:s,target:"_blank",rel:"noopener",...l,children:r})})]}):e,Re=()=>{const{useSettings:n,useUpdateStateSettings:i,isPremium:a}=(0,e.useContext)(c),o="WooCommerce",s=!window.gtmkitSettings.plugins.woocommerce,r=s||!n.integrations.woocommerce_integration,l=r||!a||!n.general.sgtm_domain,g=l||!n.premium.woocommerce_webhooks;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:(0,t.__)("WooCommerce","gtm-kit")}),s?(0,m.jsx)(Ce,{pluginName:o}):null,(0,m.jsx)(Ue,{pluginName:o,optionName:"woocommerce_integration",pluginInactive:s}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Basic settings","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(De,{title:(0,t.__)("Brand","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_brand",options:window.gtmkitSettings.taxonomyOptions,help:(0,t.__)("Select the taxonomy that is used for product brands","gtm-kit"),notSet:!0,disabled:r}),(0,m.jsx)(ke,{title:(0,t.__)("Use SKU instead of ID","gtm-kit"),label:(0,t.__)("Use SKU instead of the product ID with fallback to ID if no SKU is set.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_use_sku",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Exclude tax","gtm-kit"),label:(0,t.__)("Exclude tax from prices and revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_tax",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Exclude shipping from revenue","gtm-kit"),label:(0,t.__)("Exclude shipping from revenue","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_exclude_shipping",disabled:r,useSettings:n,useUpdateStateSettings:i})]})]}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("User Data","gtm-kit")}),(0,m.jsxs)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-4",children:[(0,m.jsx)(be.Content,{children:(0,m.jsx)(ke,{title:(0,t.__)("Include customer data","gtm-kit"),label:(0,t.__)('Enable this option to include customer data in the data layer on the "purchase" event.',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_customer_data",disabled:r,useSettings:n,useUpdateStateSettings:i})}),(0,m.jsx)("div",{className:"gtmkit-px-8 gtmkit-py-6",children:(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-mt-3",children:[(0,m.jsx)("h4",{className:"gtmkit-pt-3 gtmkit-mb-4 gtmkit-text-lg gtmkit-font-bold",children:(0,t.__)("User-Provided Data","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("The user data is available in the datalayer in 'ecommerce.customer' and a subset of the user data formatted for the 'User-Provided Data' variable is available in 'user-data'.","gtm-kit")," ",(0,m.jsx)("a",{href:"https://support.google.com/google-ads/answer/13262500?sjid=9465166023214753583-EU#Code_snippet",className:"gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",target:"_blank",rel:"noreferrer",children:(0,t.__)("Learn more","gtm-kit")})]})]})})]})]}),(0,m.jsx)(Oe,{shouldUpsell:!a,cardLink:"https://jump.gtmkit.com/link/2-30DDC",children:(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Webhooks for server-side tracking","gtm-kit"),children:a?(0,m.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,m.jsxs)(be.Content,{children:[l?(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("In order to use webhooks you must first enable Server-side Tagging by entering a sGTM Container Domain","gtm-kit"),(0,m.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:window.gtmkitSettings.dashboardUrl+"#/container?focus=sgtm",children:(0,t.__)("Go to sGTM settings","gtm-kit")})]}):(0,m.jsxs)("p",{className:"gtmkit-mb-4",children:[(0,t.__)("In order to use webhooks you must configure you server-side container to handle the webhooks","gtm-kit"),(0,m.jsx)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:window.gtmkitSettings.templatesUrl+"#/server-side-tagging",children:(0,t.__)("Go to GTM Templates","gtm-kit")})]}),(0,m.jsx)(ke,{title:(0,t.__)("Send webhooks to server GTM container","gtm-kit"),label:(0,t.__)("This option will allow webhooks to be sent to your server GTM container.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_webhooks",disabled:l,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Purchase webhook","gtm-kit"),label:(0,t.__)("Enable this option to include the permalink structure of the product base, category base, tag base and attribute base.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_purchase_webhook",disabled:g,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Refund webhook","gtm-kit"),label:(0,t.__)("Enable this option to include the path of cart, checkout, order received and my account page.","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_refund_webhook",disabled:g,useSettings:n,useUpdateStateSettings:i})]})]})}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Event customization","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(fe,{title:"view_item_list (with product filter)",options:[{label:(0,t.__)("Push view_item_list when the list is updated using a product filter.","gtm-kit"),value:0},{label:(0,t.__)("Only only push view_item_list once per per page for each list.","gtm-kit"),value:1}],help:(0,t.__)("Do you what to push the view_item_list event if the list is updated using a filter or just once per page view.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_view_item_list_limit",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(fe,{title:"view_item (variable product)",options:[{label:(0,t.__)("Only push view_item on the master product","gtm-kit"),value:0},{label:(0,t.__)("Push view_item on master and variation products (higher number of views).","gtm-kit"),value:1},{label:(0,t.__)("Only push view_item on variation products.","gtm-kit"),value:2}],help:(0,t.__)('When do you want to fire the "view_item" event on variable products?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_variable_product_tracking",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(fe,{title:"add_shipping_info ",options:[{label:(0,t.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,t.__)("When a shipment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,t.__)("Disable the 'add_shipment_info' event.","gtm-kit"),value:0}],help:(0,t.__)('When do you want to fire the "add_shipment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_shipping_info",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(fe,{title:"add_payment_info ",options:[{label:(0,t.__)("When the 'Place order' button is clicked","gtm-kit"),value:1},{label:(0,t.__)("When a payment method is selected with fallback to the 'Place order' button.","gtm-kit"),value:2},{label:(0,t.__)("Disable the 'add_payment_info' event.","gtm-kit"),value:0}],help:(0,t.__)('When do you want to fire the "add_payment_info" event?',"gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_payment_info",disabled:r,useSettings:n,useUpdateStateSettings:i})]})]}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Google Ads Settings","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(De,{title:(0,t.__)("Google Business Vertical","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_google_business_vertical",options:Ae,help:(0,t.__)("In order to use Google Ads Remarketing you must select your business type (vertical).","gtm-kit"),notSet:!0,disabled:r}),(0,m.jsx)(he,{title:(0,t.__)("Product ID prefix","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_product_id_prefix",placeholder:(0,t.__)("Enter prefix","gtm-kit"),help:(0,t.__)("If your product feed generator is adding a prefix to the product IDs, you can add the prefix here to include it in the Data Layer.","gtm-kit"),disabled:r,useSettings:n,useUpdateStateSettings:i})]})]}),(0,m.jsx)(Oe,{shouldUpsell:!a,cardLink:"https://jump.gtmkit.com/link/2-30DDC",children:(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Custom CSS Selectors","gtm-kit"),children:a?(0,m.jsx)("div",{className:"gtmkit-text-xs gtmkit-text-white gtmkit-font-bold gtmkit-rounded-full gtmkit-py gtmkit-px-3 gtmkit-h-5 gtmkit-leading-5 gtmkit-uppercase gtmkit-bg-color-success gtmkit-ml-6",children:"Premium"}):null}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)("p",{className:"gtmkit-mb-4",children:(0,t.__)("If your shop is not compatible with the default CSS selectors you can specify your own CSS selectors.","gtm-kit")}),(0,m.jsx)(he,{title:(0,t.__)("Single Product (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_single_product_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,t.__)("Enter CSS selector","gtm-kit"),help:(0,t.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("Product List (select_item):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_item_selector",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,t.__)("Enter CSS selector","gtm-kit"),help:(0,t.__)("Enter the CSS selector that matches your product list item, which should be use to fire the select_item event.","gtm-kit"),useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(he,{title:(0,t.__)("Product List (add_to_wishlist):","gtm-kit"),optionGroup:"premium",optionName:"woocommerce_product_list_add_to_wishlist",className:"gtmkit-settings-field-wrap gtmkit-py-4",placeholder:(0,t.__)("Enter CSS selector","gtm-kit"),help:(0,t.__)("Enter the CSS selector that matches button, which should be use to fire the add_to_wishlist event.","gtm-kit"),useSettings:n,useUpdateStateSettings:i})]})]})}),(0,m.jsxs)(be,{disabled:r,children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Advanced Settings","gtm-kit")}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)(ke,{title:(0,t.__)("Dequeue the default JavaScript","gtm-kit"),label:(0,t.__)("Enable this option to dequeue the default JavaScript if you plan to create your own JavaScript.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_dequeue_script",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Include permalink structure","gtm-kit"),label:(0,t.__)("Enable this option to include the permalink structure of the product base, category base, tag base and attribute base.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_permalink_structure",disabled:r,useSettings:n,useUpdateStateSettings:i}),(0,m.jsx)(ke,{title:(0,t.__)("Include path of pages","gtm-kit"),label:(0,t.__)("Enable this option to include the path of cart, checkout, order received and my account page.","gtm-kit"),optionGroup:"integrations",optionName:"woocommerce_include_pages",disabled:r,useSettings:n,useUpdateStateSettings:i})]})]})]})},Le=()=>{const{useSettings:n,useUpdateStateSettings:i}=(0,e.useContext)(c),a="Contact Form 7",o=!window.gtmkitSettings.plugins.cf7,s=o||!n.integrations.cf7_integration;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Contact Form 7","gtm-kit")),o?(0,u.createElement)(Ce,{pluginName:a}):null,(0,u.createElement)(Ue,{pluginName:a,optionName:"cf7_integration",pluginInactive:o}),(0,u.createElement)(be,{disabled:s},(0,u.createElement)(be.Header,{title:(0,t.__)("Basic Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(fe,{title:(0,t.__)("Load JavaScript","gtm-kit"),options:[{label:(0,t.__)("Only on pages where the Contact Form 7 script is registered (recommended).","gtm-kit"),value:1},{label:(0,t.__)("On all pages","gtm-kit"),value:2}],help:(0,t.__)("Where do you want load the JavaScript?","gtm-kit"),optionGroup:"integrations",optionName:"cf7_load_js",disabled:s,useSettings:n,useUpdateStateSettings:i}))))},Me=()=>{const n="Easy Digital Downloads",i=!window.gtmkitSettings.plugins.edd,{useSettings:a,useUpdateStateSettings:o}=(0,e.useContext)(c),s=i||!a.integrations.edd_integration;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Easy Digital Downloads","gtm-kit")),i?(0,u.createElement)(Ce,{pluginName:n}):null,(0,u.createElement)(Ue,{pluginName:n,optionName:"edd_integration",pluginInactive:i}),(0,u.createElement)(be,{disabled:s},(0,u.createElement)(be.Header,{title:(0,t.__)("Basic Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Use SKU instead of ID","gtm-kit"),label:(0,t.__)("Use SKU instead of the product ID with fallback to ID if no SKU is set.","gtm-kit"),optionGroup:"integrations",optionName:"edd_use_sku",disabled:s,useSettings:a,useUpdateStateSettings:o}),(0,u.createElement)(ke,{title:(0,t.__)("Exclude tax","gtm-kit"),label:(0,t.__)("Exclude tax from prices and revenue","gtm-kit"),optionGroup:"integrations",optionName:"edd_exclude_tax",disabled:s,useSettings:a,useUpdateStateSettings:o}),(0,u.createElement)(ke,{title:(0,t.__)("Include customer data","gtm-kit"),label:(0,t.__)('Enable this option to include customer data in the data layer on the "purchase" event.',"gtm-kit"),optionGroup:"integrations",optionName:"edd_include_customer_data",disabled:s,useSettings:a,useUpdateStateSettings:o}))),(0,u.createElement)(be,{disabled:s},(0,u.createElement)(be.Header,{title:(0,t.__)("Google Ads Settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(De,{title:(0,t.__)("Google Business Vertical","gtm-kit"),optionGroup:"integrations",optionName:"edd_google_business_vertical",options:Ae,help:(0,t.__)("In order to use Google Ads Remarketing you must select your business type (vertical).","gtm-kit"),notSet:!0,disabled:s}),(0,u.createElement)(he,{title:(0,t.__)("Product ID prefix","gtm-kit"),optionGroup:"integrations",optionName:"edd_product_id_prefix",placeholder:(0,t.__)("Enter prefix","gtm-kit"),help:(0,t.__)("If your product feed generator is adding a prefix to the product IDs, you can add the prefix here to include it in the Data Layer.","gtm-kit"),disabled:s,useSettings:a,useUpdateStateSettings:o}))),(0,u.createElement)(be,{disabled:i},(0,u.createElement)(be.Header,{title:(0,t.__)("Advanced settings","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)(ke,{title:(0,t.__)("Dequeue the default JavaScript","gtm-kit"),label:(0,t.__)("Enable this option to dequeue the default JavaScript if you plan to create your own JavaScript.","gtm-kit"),optionGroup:"integrations",optionName:"edd_dequeue_script",disabled:s,useSettings:a,useUpdateStateSettings:o}))))},Pe=window.gtmkitSettings.templates||{},Ge=(Object.keys(Pe).map((function(e){const n=Pe[e][0];return{title:n.title,to:n.path,pill:!1,text:[n.description],link:{internal:!0,url:window.gtmkitSettings.templatesUrl,destination:"/"+n.path,text:(0,t.__)("Get template","gtm-kit")}}})),()=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Getting Started","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Configure your Google Tag Manager container","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-4"},(0,t.__)("GTM Kit is sending data to your Google Tag Manger container but you still need to configure Tags, Triggers and Variables in GTM to use the data.","gtm-kit")),(0,u.createElement)("p",{className:"gtmkit-mb-4"},(0,t.__)("Below you will find GTM container template files, with all the necessary tags, trigger, and variables.","gtm-kit")),(0,u.createElement)("p",null,(0,t.__)("Please read the guide on how to use the import files and configure GTM.","gtm-kit"),(0,u.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",href:"https://gtmkit.com/guides/how-to-import-a-google-tag-manager-container/",target:"_blank",rel:"noreferrer"},(0,t.__)("Read the guide","gtm-kit"))))),(0,u.createElement)(ue,{title:(0,t.__)("Templates","gtm-kit"),data:de("templates")}))),Fe=({title:e,description:n,link:i,templates:a})=>(0,u.createElement)(u.Fragment,null,(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:e}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-4"},n),i&&i.url&&i.link_text?(0,u.createElement)("div",null,(0,u.createElement)("a",{href:i.url,target:"_blank",className:"gtmkit-text-color-primary gtmkit-text-base dgtmkit-font-semibold hover:gtmkit-underline",rel:"noreferrer"},i.link_text)):null,a&&a.length>0?(0,u.createElement)("div",{className:"gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-8 gtmkit-mt-8 gtmkit-border-2 gtmkit-px-6 gtmkit-py-4"},(0,u.createElement)("div",null,(0,u.createElement)("h4",{className:"gtmkit-font-bold"},(0,t.__)("GTM container import files:","gtm-kit")),(0,u.createElement)("ul",{className:"gtmkit-text-sm gtmkit-text-color-primary"},a.map((function(t){return(0,u.createElement)("li",null,(0,u.createElement)("a",{className:"hover:gtmkit-underline",href:t.link,target:"_blank",rel:"noreferrer"},t.title))})))),(0,u.createElement)("div",null,(0,u.createElement)("h4",{className:"gtmkit-font-bold"},(0,t.__)("Necessary modifications:","gtm-kit")),(0,u.createElement)("ul",{className:"gtmkit-text-sm"},a.map((function(t){return(0,u.createElement)("li",null,t.help_text)}))))):null))),He=({sectionData:t})=>{const e=t.collections;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},t.title),Object.keys(e).map((function(t){return(0,u.createElement)(Fe,{title:e[t].title,description:e[t].description,link:e[t].link,templates:e[t].templates})})))},Be=()=>{const e=at(),n=window.gtmkitSettings.tutorials;return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,t.__)("Help","gtm-kit")),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Need help?","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)("p",{className:"gtmkit-mb-4"},(0,t.__)("We are here to help if you have any questions.","gtm-kit"),(0,u.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-font-semibold hover:gtmkit-underline",onClick:()=>{e("/support",{replace:!0})}},(0,t.__)("See support options","gtm-kit"))))),(0,u.createElement)(be,null,(0,u.createElement)(be.Header,{title:(0,t.__)("Tutorials","gtm-kit")}),(0,u.createElement)(be.Content,null,(0,u.createElement)("ul",null,n.map(((t,e)=>(0,u.createElement)("li",{key:e,className:"gtmkit-mb-4"},(0,u.createElement)("a",{href:t.link.url,target:"_blank",rel:"noreferrer",className:"gtmkit-font-semibold gtmkit-text-color-primary hover:gtmkit-underline"},t.title),t.text.map(((t,e)=>(0,u.createElement)("div",{key:e,className:"gtmkit-text-sm"},t))))))))))},We=()=>{const{useIsSending:n,useSiteData:a,useUpdateSupportTicket:o,useSupportTicket:s,useSendSystemData:r,useIsSystemDataSent:l,useSystemDataMessage:g,isPremium:u}=(0,e.useContext)(c);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:(0,t.__)("Get support","gtm-kit")}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Support options","gtm-kit")}),(0,m.jsx)(be.Content,{children:(0,m.jsxs)("ul",{className:"gtmkit-text-color-primary",children:[u&&(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://jump.gtmkit.com/link/4-E35E4",target:"_blank",rel:"noreferrer",children:(0,t.__)("WooCommerce Premium Support","gtm-kit")})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://wordpress.org/support/plugin/gtm-kit/",target:"_blank",rel:"noreferrer",children:(0,t.__)("WordPress.org Support Forum","gtm-kit")})}),(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer",children:(0,t.__)("GITHub repository","gtm-kit")})}),(0,m.jsxs)("li",{children:[(0,m.jsx)("a",{href:"https://gtmkit.com/",target:"_blank",rel:"noreferrer",children:(0,t.__)("Plugin Homepage","gtm-kit")})," ","(gtmkit.com)"]})]})})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("Share system data with the GTM Kit support team","gtm-kit")}),(0,m.jsx)(be.Content,{children:l?(0,m.jsx)("p",{className:"gtmkit-mb-2",children:g}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{className:"gtmkit-mb-2",children:(0,t.__)("If the GTM Kit support team has asked you to send your system data you can do so by entering the support ticket below:","gtm-kit")}),(0,m.jsx)(i.TextControl,{label:(0,m.jsxs)("span",{className:"gtmkit-text-red-600",children:[g," "]}),placeholder:(0,t.__)("Enter support ticket","gtm-kit"),className:"gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",value:s,onChange:t=>o(t)}),(0,m.jsxs)(i.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey",onClick:()=>{r()},disabled:!s.toUpperCase().startsWith("FS"),children:[(0,m.jsx)("span",{children:(0,t.__)("Send system data","gtm-kit")}),n?(0,m.jsx)(i.Spinner,{}):""]})]})})]}),(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:(0,t.__)("About GTM Kit","gtm-kit"),className:"gtmkit-flex gtmkit-items-center",children:(0,m.jsxs)("span",{className:"gtmkit-text-sm gtmkit-text-color-grey gtmkit-font-light gtmkit-ml-2",children:["(",(0,t.__)("Version:","gtm-kit")," ",a.gtmkit_version,")"]})}),(0,m.jsx)(be.Content,{children:(0,m.jsxs)("p",{children:[(0,t.__)("Learn about changes and follow the development of GTM Kit:","gtm-kit"),(0,m.jsx)("br",{}),(0,m.jsx)("a",{className:"gtmkit-text-color-primary hover:gtmkit-underline",href:"https://gtmkit.com/changelog/",target:"_blank",rel:"noreferrer",children:(0,t.__)("The changelog","gtm-kit")}),(0,m.jsx)("br",{}),(0,m.jsx)("a",{className:"gtmkit-text-color-primary  hover:gtmkit-underline",href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer",children:(0,t.__)("The GitHub repository","gtm-kit")})]})})]})]})};const Ke=t=>{const{Fill:e,Slot:n}=(0,i.createSlotFill)(t),a=({children:t})=>(0,u.createElement)(e,null,t);return a.Slot=({fillProps:t})=>(0,u.createElement)(n,{fillProps:t},(t=>t.length?t:null)),a},ze=Ke("GravityForms"),Ye=(Ke("WooWebhooks"),Ke("WooCustomSelectors"),({integrationID:t,pluginName:n})=>{const{useSettings:i,useUpdateStateSettings:a}=(0,e.useContext)(c),o=!window.gtmkitSettings.plugins[t],s=o||!i.integrations[t+"_integration"];return(0,u.createElement)(u.Fragment,null,(0,u.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},n),o?(0,u.createElement)(Ce,{pluginName:n}):null,(0,u.createElement)(Ue,{pluginName:n,optionName:t+"_integration",pluginInactive:o}),"gf"===t?(0,u.createElement)(ze.Slot,{fillProps:{settingsInactive:s,useSettings:i,useUpdateStateSettings:a}}):null)}),$e=window.wp.plugins,Je=(0,e.forwardRef)((function({icon:t,size:n=24,...i},a){return(0,e.cloneElement)(t,{width:n,height:n,...i,ref:a})})),qe=window.wp.primitives,Ve=(0,m.jsx)(qe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)(qe.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),Xe=(0,m.jsx)(qe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)(qe.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var Ze=n(838),Qe=n.n(Ze);const tn=({title:n,type:a,hideEmpty:o=!0})=>{const{useNotifications:s,useSetNotificationStatus:r,useIsUpdatingNotifications:l}=(0,e.useContext)(c),g=s[a],u=Object.entries(g.active),d=Object.entries(g.dismissed);if(0===g.total&&o)return null;const[p,h]=(0,e.useState)(!1),k=(Object.entries(g.active),Object.entries(g.dismissed),(e,n,a)=>(0,m.jsxs)("div",{className:Mt()("gtmkit-flex gtmkit-items-center gtmkit-justify-between gtmkit-border gtmkit-px-4 gtmkit-py-3 gtmkit-gap-x-16",{"gtmkit-border gtmkit-border-t-0":a},{"gtmkit-border-2":!a}),children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("span",{className:"gtmkit-font-bold gtmkit-mr-2",children:n.header}),(0,m.jsx)("span",{className:"gtmkit-text-sm",dangerouslySetInnerHTML:{__html:Qe().sanitize(n.message)}})]}),(0,m.jsxs)(i.Button,{variant:"primary",className:"gtmkit-rounded !gtmkit-py-1 !gtmkit-px-3 gtmkit-h-min",onClick:()=>r(n.id,a?"restore":"dismiss"),children:[(0,m.jsx)("span",{className:"gtmkit-text-sm",children:(0,t.__)(a?"Restore":"Dismiss","gtm-kit")}),l?(0,m.jsx)(i.Spinner,{}):null]})]},e));return(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:n,children:(0,m.jsx)(Ft,{count:g.active.length,important:"problem"===a})}),(0,m.jsxs)(be.Content,{className:"gtmkit-space-y-4",children:[u.map((([t,e])=>k(t,e,!1))),d.length>0&&(0,m.jsxs)("div",{children:[(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-py gtmkit-font-bold gtmkit-flex gtmkit-items-center gtmkit-justify-between gtmkit-cursor-pointer",onClick:()=>h((t=>!t)),children:[(0,m.jsx)("span",{children:(0,t.sprintf)(
     20// translators: %d is number %s can be either 'problem' or 'notification'.
     21// translators: %d is number %s can be either 'problem' or 'notification'.
     22(0,t._n)("You have %d hidden %s:","You have %d hidden %ss:",d.length,"gtm-kit"),d.length,a)}),(0,m.jsx)(Je,{icon:p?Ve:Xe,size:48})]}),(0,m.jsx)("div",{className:Mt()("gtmkit-border","gtmkit-border-t-0","gtmkit-mb-4","gtmkit-bg-color-background-disabled",{"gtmkit-hidden":!p}),children:d.map((([t,e])=>k(t,e,!0)))})]}),0===g.total&&(0,m.jsx)("p",{children:(0,t.__)("No notifications at the moment.","gtm-kit")})]})]})},en=()=>(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:(0,t.__)("Misc","gtm-kit")}),(0,m.jsx)(tn,{title:(0,t.__)("Problems","gtm-kit"),type:"problem"}),(0,m.jsx)(tn,{title:(0,t.__)("Notifications","gtm-kit"),type:"notice",hideEmpty:!1})]}),nn=({className:t=""})=>(0,m.jsx)(i.Icon,{icon:()=>(0,m.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",className:t,children:(0,m.jsx)("path",{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})}),an=()=>{const{useIsSendingLicenseKey:n}=(0,e.useContext)(c),a=window.gtmkitSettings.opportunities;let o=[];Object.entries(a).length&&(o=Object.entries(a.upgrades));const s=a.plugins||{},r=a.theme||{},l=Object.entries(s),g=!!Object.keys(r).length;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:(0,t.__)("Upgrades","gtm-kit")}),o.map((([e,a])=>(0,m.jsxs)(be,{children:[(0,m.jsx)(be.Header,{title:a.name}),(0,m.jsxs)(be.Content,{children:[(0,m.jsx)("h2",{className:"gtmkit-font-bold gtmkit-mb-4",children:a.header}),a.description&&(0,m.jsx)("p",{className:"gtmkit-mb-4",children:a.description}),a.usp.length>0&&(0,m.jsx)("ul",{className:"gtmkit-text-sm gtmkit-mb-8",children:a.usp.map((t=>(0,m.jsxs)("li",{className:"gtmkit-flex gtmkit-items-center",children:[(0,m.jsx)(nn,{})," ",t]})))}),(l.length>0||g)&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h2",{className:"gtmkit-font-bold gtmkit-mb-4",children:(0,t.__)("Enhanced Compatibility","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-mb-6",children:(0,t.__)("Based on the currently active theme and plugins, you will gain the following features tailored specifically to your setup if you upgrade to the GTM Kit Woo Add-On:","gtm-kit")})]}),g&&(0,m.jsxs)("p",{className:"gtmkit-mb-6",children:[(0,m.jsxs)("span",{className:"gtmkit-font-bold",children:[r.name,":"]})," ",(0,t.__)("Your theme is supported with enhanced compatibility.","gtm-kit")," ",r.description]}),l.length>0&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h3",{className:"gtmkit-font-bold gtmkit-text-sm gtmkit-mb-4",children:(0,t.__)("Enhanced Plugin Support:","gtm-kit")}),(0,m.jsx)("ul",{className:"gtmkit-text-sm",children:l.map((([t,e])=>(0,m.jsxs)("li",{className:"gtmkit-mb-4",children:[e.name," - ",e.description]},t)))})]}),a.url&&(0,m.jsxs)(i.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base gtmkit-mt-4",onClick:()=>{window.location.href=a.url},children:[(0,m.jsx)("span",{children:a.button_text||(0,t.__)("Learn More","gtm-kit")}),n?(0,m.jsx)(i.Spinner,{}):""]})]})]},e)))]})},on={integrations:(0,t.__)("Integrations","gtm-kit"),templates:(0,t.__)("Google Tag Manager Templates","gtm-kit"),help:(0,t.__)("Help","gtm-kit")},sn=()=>{const{useSettings:n}=(0,e.useContext)(c),a=window.gtmkitSettings,o=a.currentPage,s=function({page:e}){switch(e){case"general":return[{to:"general",title:(0,t.__)("Dashboard","gtm-kit")},{to:"container",title:(0,t.__)("Container","gtm-kit")},{to:"post-data",title:(0,t.__)("Post data","gtm-kit")},{to:"user-data",title:(0,t.__)("User data","gtm-kit")},{to:"google-consent-mode",title:(0,t.__)("Google Consent Mode","gtm-kit")},{to:"notifications",title:(0,t.__)("Notifications","gtm-kit")},{to:"misc",title:(0,t.__)("Misc","gtm-kit")}];case"integrations":return[{to:"integrations",title:(0,t.__)("Integrations","gtm-kit")},...de("integrations")];case"upgrades":return[{to:"upgrades",title:(0,t.__)("Upgrades","gtm-kit")}];case"templates":return[{to:"templates",title:(0,t.__)("Templates","gtm-kit")},...de("templates")];case"help":return[{to:"help",title:(0,t.__)("Help","gtm-kit")},{to:"support",title:(0,t.__)("Support","gtm-kit")}]}}({page:o}),r=a.templates,l=a.integrations,g=on[o]||(0,t.__)("Settings","gtm-kit");return Object.keys(n).length?(0,m.jsxs)(i.SlotFillProvider,{children:[(0,m.jsx)(Rt,{title:g}),(0,m.jsx)(Bt,{NavList:s}),(0,m.jsx)("main",{className:"gtmkit-max-w-[1536px] gtmkit-px-8 gtmkit-pt-8 gtmkit-text-base",children:(0,m.jsxs)(_t,{children:[(0,m.jsx)(kt,{exact:!0,path:"/general",element:(0,m.jsx)(pe,{})}),(0,m.jsx)(kt,{exact:!0,path:"/container",element:(0,m.jsx)(Se,{})}),(0,m.jsx)(kt,{exact:!0,path:"/post-data",element:(0,m.jsx)(ye,{})}),(0,m.jsx)(kt,{exact:!0,path:"/user-data",element:(0,m.jsx)(ve,{})}),(0,m.jsx)(kt,{exact:!0,path:"/google-consent-mode",element:(0,m.jsx)(Ee,{})}),(0,m.jsx)(kt,{exact:!0,path:"/notifications",element:(0,m.jsx)(en,{})}),(0,m.jsx)(kt,{exact:!0,path:"/misc",element:(0,m.jsx)(je,{})}),(0,m.jsx)(kt,{exact:!0,path:"/integrations",element:(0,m.jsx)(Te,{})}),(0,m.jsx)(kt,{exact:!0,path:"/woocommerce",element:(0,m.jsx)(Re,{})}),(0,m.jsx)(kt,{exact:!0,path:"/cf7",element:(0,m.jsx)(Le,{})}),(0,m.jsx)(kt,{exact:!0,path:"/edd",element:(0,m.jsx)(Me,{})}),l&&Object.keys(l).map((function(t){if("add-on"===l[t].type)return(0,m.jsx)(kt,{exact:!0,path:t,element:(0,m.jsx)(Ye,{integrationID:t,pluginName:l[t].title})},t)})),(0,m.jsx)(kt,{exact:!0,path:"/upgrades",element:(0,m.jsx)(an,{})}),(0,m.jsx)(kt,{exact:!0,path:"/templates",element:(0,m.jsx)(Ge,{})}),r&&Object.keys(r).map((function(t){return(0,m.jsx)(kt,{exact:!0,path:t,element:(0,m.jsx)(He,{sectionData:r[t][0]})},t)})),(0,m.jsx)(kt,{exact:!0,path:"/help",element:(0,m.jsx)(Be,{})}),(0,m.jsx)(kt,{exact:!0,path:"/support",element:(0,m.jsx)(We,{})}),(0,m.jsx)(kt,{path:"/",element:(0,m.jsx)(ht,{replace:!0,to:"/"+o})})]})}),(0,m.jsx)(le,{}),(0,m.jsx)($e.PluginArea,{})]}):(0,m.jsx)("div",{className:"gtmkit-h-screen gtmkit-flex gtmkit-items-center gtmkit-justify-center",children:(0,m.jsx)(i.Spinner,{})})},rn=()=>(0,m.jsx)(Tt,{basename:"/",children:(0,m.jsx)(g,{children:(0,m.jsx)(sn,{})})});document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById(window.gtmkitSettings.rootId);null!=t&&(0,e.render)((0,m.jsx)(rn,{}),t)}))})()})();
  • gtm-kit/trunk/assets/admin/wizard-rtl.css

    r3134629 r3149785  
    1 :root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-right:auto;margin-left:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0{margin-bottom:0}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-right:.5rem}.gtmkit-ml-4{margin-right:1rem}.gtmkit-mr-8{margin-left:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-ml-6{margin-right:1.5rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-h-0{height:0}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2{height:.5rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2{width:.5rem}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-3\/4{width:75%}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-left:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-6{padding-right:1.5rem!important;padding-left:1.5rem!important}.\!gtmkit-px-8{padding-right:2rem!important;padding-left:2rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-16{padding-right:4rem;padding-left:4rem}.gtmkit-px-2{padding-right:.5rem;padding-left:.5rem}.gtmkit-px-20{padding-right:5rem;padding-left:5rem}.gtmkit-px-3{padding-right:.75rem;padding-left:.75rem}.gtmkit-px-4{padding-right:1rem;padding-left:1rem}.gtmkit-px-5{padding-right:1.25rem;padding-left:1.25rem}.gtmkit-px-6{padding-right:1.5rem;padding-left:1.5rem}.gtmkit-px-8{padding-right:2rem;padding-left:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-top:1.5rem}.gtmkit-pb-6,.gtmkit-py-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:right}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit p{font-size:14px}.gtmkit-settings-field-wrap{background:#fff;border:1px solid #c3c4c7;margin-block-start:2rem;padding:20px}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{display:block;font-size:13px;font-weight:600}.gtmkit-settings-field-wrap .gtmkit-text-center .components-text-control__input{text-align:center}.gtmkit-notice{margin:0;padding-left:20px!important;width:300px}.gtmkit-notice .components-notice__content p{margin:0}.gtmkit-page-loader{height:30px!important;right:50%;position:fixed!important;top:50%;transform:translate(50%,-50%);width:30px!important}body.toplevel_page_gtm-kit-settings #wpfooter{display:none}
     1:root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-right:auto;margin-left:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-right:.5rem}.gtmkit-ml-4{margin-right:1rem}.gtmkit-ml-6{margin-right:1.5rem}.gtmkit-mr-2{margin-left:.5rem}.gtmkit-mr-8{margin-left:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-hidden{display:none}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-min{height:-moz-min-content;height:min-content}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-screen-lg{max-width:1024px}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-cursor-pointer{cursor:pointer}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.\!gtmkit-justify-start{justify-content:flex-start!important}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-left:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-0{border-top-width:0}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-background-disabled{background-color:var(--gtmkit-button-disabled-bg)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-error{background-color:var(--gtmkit-color-error)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-3{padding-right:.75rem!important;padding-left:.75rem!important}.\!gtmkit-px-6{padding-right:1.5rem!important;padding-left:1.5rem!important}.\!gtmkit-px-8{padding-right:2rem!important;padding-left:2rem!important}.\!gtmkit-py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-1\.5{padding-right:.375rem;padding-left:.375rem}.gtmkit-px-16{padding-right:4rem;padding-left:4rem}.gtmkit-px-2{padding-right:.5rem;padding-left:.5rem}.gtmkit-px-20{padding-right:5rem;padding-left:5rem}.gtmkit-px-3{padding-right:.75rem;padding-left:.75rem}.gtmkit-px-4{padding-right:1rem;padding-left:1rem}.gtmkit-px-5{padding-right:1.25rem;padding-left:1.25rem}.gtmkit-px-6{padding-right:1.5rem;padding-left:1.5rem}.gtmkit-px-8{padding-right:2rem;padding-left:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-3{padding-bottom:.75rem;padding-top:.75rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.gtmkit-py-px{padding-bottom:1px;padding-top:1px}.gtmkit-pb-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:right}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-leading-\[1\.125rem\]{line-height:1.125rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit p{font-size:14px}.gtmkit-settings-field-wrap{background:#fff;border:1px solid #c3c4c7;margin-block-start:2rem;padding:20px}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{display:block;font-size:13px;font-weight:600}.gtmkit-settings-field-wrap .gtmkit-text-center .components-text-control__input{text-align:center}.gtmkit-notice{margin:0;padding-left:20px!important;width:300px}.gtmkit-notice .components-notice__content p{margin:0}.gtmkit-page-loader{height:30px!important;right:50%;position:fixed!important;top:50%;transform:translate(50%,-50%);width:30px!important}body.toplevel_page_gtm-kit-settings #wpfooter{display:none}
  • gtm-kit/trunk/assets/admin/wizard.asset.php

    r3139454 r3149785  
    1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '78fa6d1fd726260bef13');
     1<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '392b7bf946ae0bc997db');
  • gtm-kit/trunk/assets/admin/wizard.css

    r3134629 r3149785  
    1 :root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-left:auto;margin-right:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0{margin-bottom:0}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-left:.5rem}.gtmkit-ml-4{margin-left:1rem}.gtmkit-mr-8{margin-right:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-ml-6{margin-left:1.5rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-h-0{height:0}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2{height:.5rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2{width:.5rem}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-3\/4{width:75%}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.\!gtmkit-px-8{padding-left:2rem!important;padding-right:2rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-16{padding-left:4rem;padding-right:4rem}.gtmkit-px-2{padding-left:.5rem;padding-right:.5rem}.gtmkit-px-20{padding-left:5rem;padding-right:5rem}.gtmkit-px-3{padding-left:.75rem;padding-right:.75rem}.gtmkit-px-4{padding-left:1rem;padding-right:1rem}.gtmkit-px-5{padding-left:1.25rem;padding-right:1.25rem}.gtmkit-px-6{padding-left:1.5rem;padding-right:1.5rem}.gtmkit-px-8{padding-left:2rem;padding-right:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-top:1.5rem}.gtmkit-pb-6,.gtmkit-py-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:left}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit p{font-size:14px}.gtmkit-settings-field-wrap{background:#fff;border:1px solid #c3c4c7;margin-block-start:2rem;padding:20px}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{display:block;font-size:13px;font-weight:600}.gtmkit-settings-field-wrap .gtmkit-text-center .components-text-control__input{text-align:center}.gtmkit-notice{margin:0;padding-right:20px!important;width:300px}.gtmkit-notice .components-notice__content p{margin:0}.gtmkit-page-loader{height:30px!important;left:50%;position:fixed!important;top:50%;transform:translate(-50%,-50%);width:30px!important}body.toplevel_page_gtm-kit-settings #wpfooter{display:none}
     1:root{--gtmkit-background-white:#fff;--gtmkit-background-grey:#f0f0f1;--gtmkit-border-color:#ddd;--gtmkit-text-color-heading:#454545;--gtmkit-text-color-grey:#777;--gtmkit-color-grey:#888;--gtmkit-color-primary:#3969bb;--gtmkit-color-secondary:#00a32a;--gtmkit-color-button:#3969bb;--gtmkit-color-success:#00a32a;--gtmkit-color-warning:orange;--gtmkit-color-error:red;--gtmkit-space-h:2rem;--gtmkit-space-v:1.5rem;--gtmkit-font-size-l:18px;--gtmkit-font-size-m:16px;--gtmkit-font-size-s:14px;--gtmkit-font-size-xl:22px;--gtmkit-font-size-xs:12px;--gtmkit-font-size-xxl:24px;--gtmkit-button-disabled:#bbb;--gtmkit-button-disabled-bg:#f5f5f5;--gtmkit-button-disabled-border:1px solid #ddd;--gtmkit-button-disabled-text:#bbb;--gtmkit-button-primary-bg:var(--gtmkit-color-primary);--gtmkit-button-primary-bg-hover:#397eeb;--gtmkit-button-primary-text:#fff;--gtmkit-button-primary-text-hover:#fff;--gtmkit-button-secondary-bg:#f8f8f8;--gtmkit-button-secondary-bg-hover:#fff;--gtmkit-button-secondary-border:#ddd;--gtmkit-button-secondary-text:#777;--gtmkit-button-secondary-text-hover:#454545}*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.gtmkit-container{width:100%}@media(min-width:640px){.gtmkit-container{max-width:640px}}@media(min-width:768px){.gtmkit-container{max-width:768px}}@media(min-width:1024px){.gtmkit-container{max-width:1024px}}@media(min-width:1280px){.gtmkit-container{max-width:1280px}}@media(min-width:1536px){.gtmkit-container{max-width:1536px}}.gtmkit-fixed{position:fixed}.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-sticky{position:sticky}.gtmkit-inset-0{inset:0}.gtmkit-bottom-0{bottom:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.gtmkit-mx-auto{margin-left:auto;margin-right:auto}.gtmkit-my-16{margin-bottom:4rem;margin-top:4rem}.gtmkit-my-4{margin-bottom:1rem;margin-top:1rem}.gtmkit-my-6{margin-bottom:1.5rem;margin-top:1.5rem}.gtmkit-my-8{margin-bottom:2rem;margin-top:2rem}.\!gtmkit-mt-4{margin-top:1rem!important}.gtmkit-mb-0\.5{margin-bottom:.125rem}.gtmkit-mb-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-2{margin-bottom:.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.gtmkit-mb-5{margin-bottom:1.25rem}.gtmkit-mb-6{margin-bottom:1.5rem}.gtmkit-mb-8{margin-bottom:2rem}.gtmkit-ml-2{margin-left:.5rem}.gtmkit-ml-4{margin-left:1rem}.gtmkit-ml-6{margin-left:1.5rem}.gtmkit-mr-2{margin-right:.5rem}.gtmkit-mr-8{margin-right:2rem}.gtmkit-mt-12{margin-top:3rem}.gtmkit-mt-3{margin-top:.75rem}.gtmkit-mt-4{margin-top:1rem}.gtmkit-mt-6{margin-top:1.5rem}.gtmkit-mt-8{margin-top:2rem}.gtmkit-block{display:block}.gtmkit-inline-block{display:inline-block}.gtmkit-flex{display:flex}.gtmkit-grid{display:grid}.gtmkit-hidden{display:none}.gtmkit-h-0\.5{height:.125rem}.gtmkit-h-2\.5{height:.625rem}.gtmkit-h-5{height:1.25rem}.gtmkit-h-8{height:2rem}.gtmkit-h-min{height:-moz-min-content;height:min-content}.gtmkit-h-screen{height:100vh}.gtmkit-min-h-\[128px\]{min-height:128px}.gtmkit-min-h-\[175px\]{min-height:175px}.gtmkit-w-2\.5{width:.625rem}.gtmkit-w-5{width:1.25rem}.gtmkit-w-8{width:2rem}.gtmkit-w-\[225px\]{width:225px}.gtmkit-w-\[250px\]{width:250px}.gtmkit-w-full{width:100%}.gtmkit-min-w-\[225px\]{min-width:225px}.gtmkit-max-w-3xl{max-width:48rem}.gtmkit-max-w-\[1536px\]{max-width:1536px}.gtmkit-max-w-\[90\%\]{max-width:90%}.gtmkit-max-w-lg{max-width:32rem}.gtmkit-max-w-max{max-width:-moz-max-content;max-width:max-content}.gtmkit-max-w-md{max-width:28rem}.gtmkit-max-w-screen-lg{max-width:1024px}.gtmkit-max-w-xl{max-width:36rem}.gtmkit-flex-auto{flex:1 1 auto}.gtmkit-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-cursor-pointer{cursor:pointer}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-flex-col{flex-direction:column}.gtmkit-flex-wrap{flex-wrap:wrap}.gtmkit-items-center{align-items:center}.\!gtmkit-justify-start{justify-content:flex-start!important}.gtmkit-justify-center{justify-content:center}.gtmkit-justify-between{justify-content:space-between}.gtmkit-gap-16{gap:4rem}.gtmkit-gap-2{gap:.5rem}.gtmkit-gap-4{gap:1rem}.gtmkit-gap-6{gap:1.5rem}.gtmkit-gap-8{gap:2rem}.gtmkit-gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.gtmkit-space-x-9>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.25rem*var(--tw-space-x-reverse))}.gtmkit-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.gtmkit-whitespace-nowrap{white-space:nowrap}.gtmkit-rounded{border-radius:.25rem}.gtmkit-rounded-full{border-radius:9999px}.gtmkit-rounded-md{border-radius:.375rem}.gtmkit-border{border-width:1px}.gtmkit-border-2{border-width:2px}.gtmkit-border-y{border-top-width:1px}.gtmkit-border-b,.gtmkit-border-y{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.gtmkit-border-b-4{border-bottom-width:4px}.gtmkit-border-t-0{border-top-width:0}.gtmkit-border-t-4{border-top-width:4px}.gtmkit-border-color-border{border-color:var(--gtmkit-border-color)}.gtmkit-border-color-grey{border-color:var(--gtmkit-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gtmkit-border-b-color-primary{border-bottom-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-background-disabled{background-color:var(--gtmkit-button-disabled-bg)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-button-disabled{background-color:var(--gtmkit-button-disabled)}.gtmkit-bg-color-error{background-color:var(--gtmkit-color-error)}.gtmkit-bg-color-grey{background-color:var(--gtmkit-color-grey)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-success{background-color:var(--gtmkit-color-success)}.gtmkit-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gtmkit-p-3{padding:.75rem}.gtmkit-p-6{padding:1.5rem}.gtmkit-p-8{padding:2rem}.\!gtmkit-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!gtmkit-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.\!gtmkit-px-8{padding-left:2rem!important;padding-right:2rem!important}.\!gtmkit-py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.\!gtmkit-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.\!gtmkit-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.gtmkit-px-1\.5{padding-left:.375rem;padding-right:.375rem}.gtmkit-px-16{padding-left:4rem;padding-right:4rem}.gtmkit-px-2{padding-left:.5rem;padding-right:.5rem}.gtmkit-px-20{padding-left:5rem;padding-right:5rem}.gtmkit-px-3{padding-left:.75rem;padding-right:.75rem}.gtmkit-px-4{padding-left:1rem;padding-right:1rem}.gtmkit-px-5{padding-left:1.25rem;padding-right:1.25rem}.gtmkit-px-6{padding-left:1.5rem;padding-right:1.5rem}.gtmkit-px-8{padding-left:2rem;padding-right:2rem}.gtmkit-py-1{padding-bottom:.25rem;padding-top:.25rem}.gtmkit-py-12{padding-bottom:3rem;padding-top:3rem}.gtmkit-py-2{padding-bottom:.5rem;padding-top:.5rem}.gtmkit-py-3{padding-bottom:.75rem;padding-top:.75rem}.gtmkit-py-4{padding-bottom:1rem;padding-top:1rem}.gtmkit-py-6{padding-bottom:1.5rem;padding-top:1.5rem}.gtmkit-py-px{padding-bottom:1px;padding-top:1px}.gtmkit-pb-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.gtmkit-pt-3{padding-top:.75rem}.gtmkit-pt-4{padding-top:1rem}.gtmkit-pt-5{padding-top:1.25rem}.gtmkit-pt-8{padding-top:2rem}.gtmkit-text-left{text-align:left}.gtmkit-text-center{text-align:center}.\!gtmkit-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.gtmkit-text-2xl{font-size:1.5rem;line-height:2rem}.gtmkit-text-3xl{font-size:1.875rem;line-height:2.25rem}.gtmkit-text-4xl{font-size:2.25rem;line-height:2.5rem}.gtmkit-text-\[15px\]{font-size:15px}.gtmkit-text-base{font-size:1rem;line-height:1.5rem}.gtmkit-text-lg{font-size:1.125rem;line-height:1.75rem}.gtmkit-text-sm{font-size:.875rem;line-height:1.25rem}.gtmkit-text-xl{font-size:1.25rem;line-height:1.75rem}.gtmkit-text-xs{font-size:.75rem;line-height:1rem}.gtmkit-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-font-semibold{font-weight:600}.gtmkit-uppercase{text-transform:uppercase}.gtmkit-leading-5{line-height:1.25rem}.gtmkit-leading-\[1\.125rem\]{line-height:1.125rem}.gtmkit-text-color-grey{color:var(--gtmkit-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.gtmkit-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.gtmkit-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.gtmkit-underline{text-decoration-line:underline}.gtmkit-opacity-100{opacity:1}.gtmkit-opacity-30{opacity:.3}.gtmkit-opacity-60{opacity:.6}.gtmkit-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.gtmkit-ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.gtmkit-ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.gtmkit-ring-opacity-5{--tw-ring-opacity:0.05}.gtmkit-drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gtmkit-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.gtmkit-duration-500{transition-duration:.5s}.hover\:gtmkit-border-color-grey:hover{border-color:var(--gtmkit-color-grey)}.hover\:gtmkit-underline:hover{text-decoration-line:underline}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-color-grey)!important}@media(min-width:640px){.sm\:gtmkit-w-auto{width:auto}}@media(min-width:768px){.md\:gtmkit-mt-10{margin-top:2.5rem}.md\:gtmkit-mt-12{margin-top:3rem}.md\:gtmkit-mt-16{margin-top:4rem}.md\:gtmkit-mt-8{margin-top:2rem}.md\:gtmkit-grid{display:grid}.md\:gtmkit-max-w-xl{max-width:36rem}}@media(min-width:1024px){.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gtmkit-justify-between{justify-content:space-between}}@media(min-width:1280px){.xl\:gtmkit-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.gtmkit p{font-size:14px}.gtmkit-settings-field-wrap{background:#fff;border:1px solid #c3c4c7;margin-block-start:2rem;padding:20px}.gtmkit-settings-field-wrap .components-base-control.components-toggle-control{line-height:1.5em}.gtmkit-settings-field-wrap .components-base-control__label{display:block;font-size:13px;font-weight:600}.gtmkit-settings-field-wrap .gtmkit-text-center .components-text-control__input{text-align:center}.gtmkit-notice{margin:0;padding-right:20px!important;width:300px}.gtmkit-notice .components-notice__content p{margin:0}.gtmkit-page-loader{height:30px!important;left:50%;position:fixed!important;top:50%;transform:translate(-50%,-50%);width:30px!important}body.toplevel_page_gtm-kit-settings #wpfooter{display:none}
  • gtm-kit/trunk/assets/admin/wizard.js

    r3139454 r3149785  
    1 (()=>{"use strict";var t={251:(t,e,a)=>{var n=a(196),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function m(t,e,a){var n,r={},m=null,c=null;for(n in void 0!==a&&(m=""+a),void 0!==e.key&&(m=""+e.key),void 0!==e.ref&&(c=e.ref),e)s.call(e,n)&&!o.hasOwnProperty(n)&&(r[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===r[n]&&(r[n]=e[n]);return{$$typeof:i,type:t,key:m,ref:c,props:r,_owner:l.current}}e.Fragment=r,e.jsx=m,e.jsxs=m},893:(t,e,a)=>{t.exports=a(251)},196:t=>{t.exports=window.React}},e={};function a(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=a(196);const e=window.wp.element,n=window.wp.components,i=window.lodash,r=window.wp.apiFetch;var s=a.n(r);s().use(s().createNonceMiddleware(window.gtmkitSettings.nonce)),s().use(s().createRootURLMiddleware(window.gtmkitSettings.root));const l=async(t,e,a=null,n=!1)=>{let i={};try{i=await s()({path:t,method:e,...a&&{data:a}})}catch(a){return console.log(`${e} ${t} Errors:`,a),{[`gtm_kit_api_${e}_${t}_errors`]:!0}}return!0===n?i:!0===i.success?i.data:options},o=window.wp.i18n,m=(t,e)=>{const a={...t};switch(e.type){case"FETCH_SETTINGS":a.fetchedSettings={...e.payload.fetchedSettings,integrations:e.payload.fetchedSettings.integrations||{}},a.stateSettings=e.payload.stateSettings,a.siteData=e.payload.siteData,a.installData=e.payload.installData,a.isPending=!1,a.canSave=!1,e.payload.fetchedSettings.gtm_kit_api_fetch_settings_errors&&(a.notice=(0,o.__)("An error occurred.","gtm-kit"),a.hasError=!0);break;case"UPDATE_SETTINGS_BEFORE":a.isPending=e.payload.isPending;break;case"UPDATE_SETTINGS":a.fetchedSettings=e.payload.fetchedSettings,a.stateSettings=e.payload.stateSettings,a.isPending=!1,a.canSave=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors,a.notice=e.payload.fetchedSettings.gtm_kit_api_update_settings_errors?(0,o.__)("An error occurred.","gtm-kit"):(0,o.__)("Saved Successfully.","gtm-kit"),a.hasError=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors;break;case"UPDATE_STATE":a.fetchedSettings=e.payload.fetchedSettings||a.fetchedSettings,a.stateSettings=e.payload.stateSettings||a.stateSettings,a.isPending=e.payload.isPending||a.isPending,a.notice=e.payload.notice||a.notice,a.hasError=e.payload.hasError||a.hasError,a.canSave=e.payload.canSave||a.canSave,a.isSendingSystemData=e.payload.isSendingSystemData||a.isSendingSystemData,a.supportTicket=e.payload.supportTicket||a.supportTicket,a.isSendingLicenseKey=e.payload.isSendingLicenseKey||a.isSendingLicenseKey,a.licenseKey=e.payload.licenseKey||a.licenseKey;break;case"SEND_SUPPORT_DATA_BEFORE":a.isSendingSystemData=e.payload.isSendingSystemData||a.isSendingSystemData;break;case"SEND_SUPPORT_DATA":a.isSendingSystemData=!1,a.isSystemDataSent=e.payload.isSystemDataSent||a.isSystemDataSent,a.systemDataMessage=e.payload.systemDataMessage||a.systemDataMessage;break;case"SEND_LICENSE_KEY_BEFORE":a.isSendingLicenseKey=e.payload.isSendingLicenseKey||a.isSendingLicenseKey;break;case"SEND_LICENSE_KEY":a.isSendingLicenseKey=!1,a.isLicenseKeySent=e.payload.isLicenseKeySent||a.isLicenseKeySent,a.licenseKeyMessage=e.payload.licenseKeyMessage||a.licenseKeyMessage}return a},c=(0,e.createContext)(),g=a=>{const[n,r]=(0,e.useReducer)(m,{fetchedSettings:{},stateSettings:{},isPending:!0,notice:"",hasError:!1,canSave:!1,supportTicket:"",isSystemDataSent:!1,systemDataMessage:"",licenseKey:"",isLicensenKeySent:!1,licenseKeyMessage:""}),s=async()=>{const t=window.gtmkitSettings.settings?window.gtmkitSettings.settings:{},e=window.gtmkitSettings.site_data?window.gtmkitSettings.site_data:{},a="wizard"===window.gtmkitSettings.currentPage?window.gtmkitSettings.install_data:{};r({type:"FETCH_SETTINGS",payload:{fetchedSettings:t,stateSettings:t,siteData:e,installData:a}})},o=async t=>{r({type:"UPDATE_STATE",payload:t})};(0,e.useEffect)((()=>{s()}),[]);const g={useDispatch:t=>{r(t)},useUpdateSettings:async()=>{r({type:"UPDATE_SETTINGS_BEFORE",payload:{isPending:!0}});const t=await(e=n.stateSettings,l("gtmkit/v1/set-options","POST",e));var e;r({type:"UPDATE_SETTINGS",payload:{fetchedSettings:t,stateSettings:t}})},useFetchSettings:s,useUpdateState:o,useUpdateStateSettings:async(t,e,a)=>{const r=JSON.parse(JSON.stringify(n.stateSettings));let s;r[t][e]=a,s=!(0,i.isEqual)(r,n.fetchedSettings),o({stateSettings:r,canSave:s})},useImportSettings:async(t,e)=>{const a=JSON.parse(JSON.stringify(n.stateSettings));let r;const s={};s.general={...a.general,...e.general},"integrations"in e&&(s.integrations={...a.integrations,...e.integrations}),r=!(0,i.isEqual)(s,n.fetchedSettings),o({stateSettings:s,canSave:r})},useUpdateSupportTicket:async t=>{o({supportTicket:t})},useSendSystemData:async()=>{r({type:"SEND_SUPPORT_DATA_BEFORE",payload:{isSendingSystemData:!0}});const t=await(e=n.supportTicket,l("gtmkit/v1/send-support-data","POST",e,!0));var e;r({type:"SEND_SUPPORT_DATA",payload:{isSendingSystemData:!1,isSystemDataSent:t.success,systemDataMessage:t.data}})},useUpdateLicenseKey:async t=>{o({licenseKey:t})},useSendLicenseKey:async()=>{r({type:"SEND_LICENSE_KEY_BEFORE",payload:{isSendingLicenseKey:!0}});const t=await(e=n.licenseKey,l("gtmkit/v1/send-license-key","POST",e,!0));var e;r({type:"SEND_LICENSE_KEY",payload:{isSendingLicenseKey:!1,isLicenseKeySent:t.success,licenseKeyMessage:t.data}})},useSettings:n.stateSettings,useIsPending:n.isPending,useNotice:n.notice,useHasError:n.hasError,useCanSave:n.canSave,useSiteData:n.siteData,useInstallData:n.installData,useIsSending:n.isSendingSystemData,useSupportTicket:n.supportTicket,useIsSystemDataSent:n.isSystemDataSent,useSystemDataMessage:n.systemDataMessage,useIsSendingLicenseKey:n.isSendingLicenseKey,useLicenseKey:n.licenseKey,useIsLicenseKeySent:n.isLicenseKeySent,useLicenseKeyMessage:n.licenseKeyMessage,useUserRoles:window.gtmkitSettings.user_roles?window.gtmkitSettings.user_roles:[],isPremium:!!window.gtmkitSettings.isPremium&&window.gtmkitSettings.isPremium};return(0,t.createElement)(c.Provider,{value:g},a.children)};function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},u.apply(this,arguments)}var d;!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(d||(d={}));const p="popstate";function h(t,e){if(!1===t||null==t)throw new Error(e)}function k(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function y(t,e){return{usr:t.state,key:t.key,idx:e}}function S(t,e,a,n){return void 0===a&&(a=null),u({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?E(e):e,{state:a,key:e&&e.key||n||Math.random().toString(36).substr(2,8)})}function f(t){let{pathname:e="/",search:a="",hash:n=""}=t;return a&&"?"!==a&&(e+="?"===a.charAt(0)?a:"?"+a),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function E(t){let e={};if(t){let a=t.indexOf("#");a>=0&&(e.hash=t.substr(a),t=t.substr(0,a));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}var x;function M(t,e,a){return void 0===a&&(a="/"),function(t,e,a,n){let i=A(("string"==typeof e?E(e):e).pathname||"/",a);if(null==i)return null;let r=N(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,a)=>t===e[a]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(r);let s=null;for(let t=0;null==s&&t<r.length;++t){let e=U(i);s=C(r[t],e,n)}return s}(t,e,a,!1)}function N(t,e,a,n){void 0===e&&(e=[]),void 0===a&&(a=[]),void 0===n&&(n="");let i=(t,i,r)=>{let s={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};s.relativePath.startsWith("/")&&(h(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let l=B([n,s.relativePath]),o=a.concat(s);t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),N(t.children,e,o,l)),(null!=t.path||t.index)&&e.push({path:l,score:I(l,t.index),routesMeta:o})};return t.forEach(((t,e)=>{var a;if(""!==t.path&&null!=(a=t.path)&&a.includes("?"))for(let a of v(t.path))i(t,e,a);else i(t,e)})),e}function v(t){let e=t.split("/");if(0===e.length)return[];let[a,...n]=e,i=a.endsWith("?"),r=a.replace(/\?$/,"");if(0===n.length)return i?[r,""]:[r];let s=v(n.join("/")),l=[];return l.push(...s.map((t=>""===t?r:[r,t].join("/")))),i&&l.push(...s),l.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(x||(x={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const w=/^:[\w-]+$/,_=3,b=2,T=1,L=10,j=-2,D=t=>"*"===t;function I(t,e){let a=t.split("/"),n=a.length;return a.some(D)&&(n+=j),e&&(n+=b),a.filter((t=>!D(t))).reduce(((t,e)=>t+(w.test(e)?_:""===e?T:L)),n)}function C(t,e,a){void 0===a&&(a=!1);let{routesMeta:n}=t,i={},r="/",s=[];for(let t=0;t<n.length;++t){let l=n[t],o=t===n.length-1,m="/"===r?e:e.slice(r.length)||"/",c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:o},m),g=l.route;if(!c&&o&&a&&!n[n.length-1].route.index&&(c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},m)),!c)return null;Object.assign(i,c.params),s.push({params:i,pathname:B([r,c.pathname]),pathnameBase:G(B([r,c.pathnameBase])),route:g}),"/"!==c.pathnameBase&&(r=B([r,c.pathnameBase]))}return s}function O(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[a,n]=function(t,e,a){void 0===e&&(e=!1),void 0===a&&(a=!0),k("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((t,e,a)=>(n.push({paramName:e,isOptional:null!=a}),a?"/?([^\\/]+)?":"/([^\\/]+)")));return t.endsWith("*")?(n.push({paramName:"*"}),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==t&&"/"!==t&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}(t.path,t.caseSensitive,t.end),i=e.match(a);if(!i)return null;let r=i[0],s=r.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:n.reduce(((t,e,a)=>{let{paramName:n,isOptional:i}=e;if("*"===n){let t=l[a]||"";s=r.slice(0,r.length-t.length).replace(/(.)\/+$/,"$1")}const o=l[a];return t[n]=i&&!o?void 0:(o||"").replace(/%2F/g,"/"),t}),{}),pathname:r,pathnameBase:s,pattern:t}}function U(t){try{return t.split("/").map((t=>decodeURIComponent(t).replace(/\//g,"%2F"))).join("/")}catch(e){return k(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function A(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let a=e.endsWith("/")?e.length-1:e.length,n=t.charAt(a);return n&&"/"!==n?null:t.slice(a)||"/"}function P(t,e,a,n){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(n)+"].  Please separate it out to the `to."+a+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function z(t,e){let a=function(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}(t);return e?a.map(((e,a)=>a===t.length-1?e.pathname:e.pathnameBase)):a.map((t=>t.pathnameBase))}function R(t,e,a,n){let i;void 0===n&&(n=!1),"string"==typeof t?i=E(t):(i=u({},t),h(!i.pathname||!i.pathname.includes("?"),P("?","pathname","search",i)),h(!i.pathname||!i.pathname.includes("#"),P("#","pathname","hash",i)),h(!i.search||!i.search.includes("#"),P("#","search","hash",i)));let r,s=""===t||""===i.pathname,l=s?"/":i.pathname;if(null==l)r=a;else{let t=e.length-1;if(!n&&l.startsWith("..")){let e=l.split("/");for(;".."===e[0];)e.shift(),t-=1;i.pathname=e.join("/")}r=t>=0?e[t]:"/"}let o=function(t,e){void 0===e&&(e="/");let{pathname:a,search:n="",hash:i=""}="string"==typeof t?E(t):t,r=a?a.startsWith("/")?a:function(t,e){let a=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?a.length>1&&a.pop():"."!==t&&a.push(t)})),a.length>1?a.join("/"):"/"}(a,e):e;return{pathname:r,search:K(n),hash:Y(i)}}(i,r),m=l&&"/"!==l&&l.endsWith("/"),c=(s||"."===l)&&a.endsWith("/");return o.pathname.endsWith("/")||!m&&!c||(o.pathname+="/"),o}const B=t=>t.join("/").replace(/\/\/+/g,"/"),G=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),K=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",Y=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const W=["post","put","patch","delete"],F=(new Set(W),["get",...W]);function Q(){return Q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},Q.apply(this,arguments)}new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const $=t.createContext(null),J=t.createContext(null),H=t.createContext(null),Z=t.createContext(null),V=t.createContext({outlet:null,matches:[],isDataRoute:!1}),X=t.createContext(null);function q(){return null!=t.useContext(Z)}function tt(){return q()||h(!1),t.useContext(Z).location}function et(e){t.useContext(H).static||t.useLayoutEffect(e)}function at(){let{isDataRoute:e}=t.useContext(V);return e?function(){let{router:e}=function(e){let a=t.useContext($);return a||h(!1),a}(ot.UseNavigateStable),a=ct(mt.UseNavigateStable),n=t.useRef(!1);return et((()=>{n.current=!0})),t.useCallback((function(t,i){void 0===i&&(i={}),n.current&&("number"==typeof t?e.navigate(t):e.navigate(t,Q({fromRouteId:a},i)))}),[e,a])}():function(){q()||h(!1);let e=t.useContext($),{basename:a,future:n,navigator:i}=t.useContext(H),{matches:r}=t.useContext(V),{pathname:s}=tt(),l=JSON.stringify(z(r,n.v7_relativeSplatPath)),o=t.useRef(!1);return et((()=>{o.current=!0})),t.useCallback((function(t,n){if(void 0===n&&(n={}),!o.current)return;if("number"==typeof t)return void i.go(t);let r=R(t,JSON.parse(l),s,"path"===n.relative);null==e&&"/"!==a&&(r.pathname="/"===r.pathname?a:B([a,r.pathname])),(n.replace?i.replace:i.push)(r,n.state,n)}),[a,i,l,s,e])}()}function nt(e,a,n,i){q()||h(!1);let{navigator:r}=t.useContext(H),{matches:s}=t.useContext(V),l=s[s.length-1],o=l?l.params:{},m=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let c,g=tt();if(a){var u;let t="string"==typeof a?E(a):a;"/"===m||(null==(u=t.pathname)?void 0:u.startsWith(m))||h(!1),c=t}else c=g;let p=c.pathname||"/",k=p;if("/"!==m){let t=m.replace(/^\//,"").split("/");k="/"+p.replace(/^\//,"").split("/").slice(t.length).join("/")}let y=M(e,{pathname:k}),S=function(e,a,n,i){var r;if(void 0===a&&(a=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let l=e,o=null==(r=n)?void 0:r.errors;if(null!=o){let t=l.findIndex((t=>t.route.id&&void 0!==(null==o?void 0:o[t.route.id])));t>=0||h(!1),l=l.slice(0,Math.min(l.length,t+1))}let m=!1,c=-1;if(n&&i&&i.v7_partialHydration)for(let t=0;t<l.length;t++){let e=l[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=t),e.route.id){let{loaderData:t,errors:a}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!a||void 0===a[e.route.id]);if(e.route.lazy||i){m=!0,l=c>=0?l.slice(0,c+1):[l[0]];break}}}return l.reduceRight(((e,i,r)=>{let s,g=!1,u=null,d=null;var p;n&&(s=o&&i.route.id?o[i.route.id]:void 0,u=i.route.errorElement||rt,m&&(c<0&&0===r?(gt[p="route-fallback"]||(gt[p]=!0),g=!0,d=null):c===r&&(g=!0,d=i.route.hydrateFallbackElement||null)));let h=a.concat(l.slice(0,r+1)),k=()=>{let a;return a=s?u:g?d:i.route.Component?t.createElement(i.route.Component,null):i.route.element?i.route.element:e,t.createElement(lt,{match:i,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:a})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?t.createElement(st,{location:n.location,revalidation:n.revalidation,component:u,error:s,children:k(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):k()}),null)}(y&&y.map((t=>Object.assign({},t,{params:Object.assign({},o,t.params),pathname:B([m,r.encodeLocation?r.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?m:B([m,r.encodeLocation?r.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),s,n,i);return a&&S?t.createElement(Z.Provider,{value:{location:Q({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:d.Pop}},S):S}function it(){let e=function(){var e;let a=t.useContext(X),n=function(e){let a=t.useContext(J);return a||h(!1),a}(mt.UseRouteError),i=ct(mt.UseRouteError);return void 0!==a?a:null==(e=n.errors)?void 0:e[i]}(),a=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},a),n?t.createElement("pre",{style:i},n):null,null)}const rt=t.createElement(it,null);class st extends t.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?t.createElement(V.Provider,{value:this.props.routeContext},t.createElement(X.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lt(e){let{routeContext:a,match:n,children:i}=e,r=t.useContext($);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(V.Provider,{value:a},i)}var ot=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(ot||{}),mt=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(mt||{});function ct(e){let a=function(e){let a=t.useContext(V);return a||h(!1),a}(),n=a.matches[a.matches.length-1];return n.route.id||h(!1),n.route.id}const gt={};function ut(e){let{to:a,replace:n,state:i,relative:r}=e;q()||h(!1);let{future:s,static:l}=t.useContext(H),{matches:o}=t.useContext(V),{pathname:m}=tt(),c=at(),g=R(a,z(o,s.v7_relativeSplatPath),m,"path"===r),u=JSON.stringify(g);return t.useEffect((()=>c(JSON.parse(u),{replace:n,state:i,relative:r})),[c,u,r,n,i]),null}function dt(t){h(!1)}function pt(e){let{basename:a="/",children:n=null,location:i,navigationType:r=d.Pop,navigator:s,static:l=!1,future:o}=e;q()&&h(!1);let m=a.replace(/^\/*/,"/"),c=t.useMemo((()=>({basename:m,navigator:s,static:l,future:Q({v7_relativeSplatPath:!1},o)})),[m,o,s,l]);"string"==typeof i&&(i=E(i));let{pathname:g="/",search:u="",hash:p="",state:k=null,key:y="default"}=i,S=t.useMemo((()=>{let t=A(g,m);return null==t?null:{location:{pathname:t,search:u,hash:p,state:k,key:y},navigationType:r}}),[m,g,u,p,k,y,r]);return null==S?null:t.createElement(H.Provider,{value:c},t.createElement(Z.Provider,{children:n,value:S}))}function ht(t){let{children:e,location:a}=t;return nt(kt(e),a)}function kt(e,a){void 0===a&&(a=[]);let n=[];return t.Children.forEach(e,((e,i)=>{if(!t.isValidElement(e))return;let r=[...a,i];if(e.type===t.Fragment)return void n.push.apply(n,kt(e.props.children,r));e.type!==dt&&h(!1),e.props.index&&e.props.children&&h(!1);let s={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=kt(e.props.children,r)),n.push(s)})),n}t.startTransition,new Promise((()=>{})),t.Component;const yt=window.ReactDOM;new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(t){}new Map;const St=t.startTransition;function ft(e){let{basename:a,children:n,future:i,window:r}=e,s=t.useRef();null==s.current&&(s.current=function(t){return void 0===t&&(t={}),function(t,e,a,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:r=!1}=n,s=i.history,l=d.Pop,o=null,m=c();function c(){return(s.state||{idx:null}).idx}function g(){l=d.Pop;let t=c(),e=null==t?null:t-m;m=t,o&&o({action:l,location:E.location,delta:e})}function k(t){let e="null"!==i.location.origin?i.location.origin:i.location.href,a="string"==typeof t?t:f(t);return a=a.replace(/ $/,"%20"),h(e,"No window.location.(origin|href) available to create URL for href: "+a),new URL(a,e)}null==m&&(m=0,s.replaceState(u({},s.state,{idx:m}),""));let E={get action(){return l},get location(){return t(i,s)},listen(t){if(o)throw new Error("A history only accepts one active listener");return i.addEventListener(p,g),o=t,()=>{i.removeEventListener(p,g),o=null}},createHref:t=>e(i,t),createURL:k,encodeLocation(t){let e=k(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){l=d.Push;let n=S(E.location,t,e);a&&a(n,t),m=c()+1;let g=y(n,m),u=E.createHref(n);try{s.pushState(g,"",u)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;i.location.assign(u)}r&&o&&o({action:l,location:E.location,delta:1})},replace:function(t,e){l=d.Replace;let n=S(E.location,t,e);a&&a(n,t),m=c();let i=y(n,m),g=E.createHref(n);s.replaceState(i,"",g),r&&o&&o({action:l,location:E.location,delta:0})},go:t=>s.go(t)};return E}((function(t,e){let{pathname:a="/",search:n="",hash:i=""}=E(t.location.hash.substr(1));return a.startsWith("/")||a.startsWith(".")||(a="/"+a),S("",{pathname:a,search:n,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){let a=t.document.querySelector("base"),n="";if(a&&a.getAttribute("href")){let e=t.location.href,a=e.indexOf("#");n=-1===a?e:e.slice(0,a)}return n+"#"+("string"==typeof e?e:f(e))}),(function(t,e){k("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),t)}({window:r,v5Compat:!0}));let l=s.current,[o,m]=t.useState({action:l.action,location:l.location}),{v7_startTransition:c}=i||{},g=t.useCallback((t=>{c&&St?St((()=>m(t))):m(t)}),[m,c]);return t.useLayoutEffect((()=>l.listen(g)),[l,g]),t.createElement(pt,{basename:a,children:n,location:o.location,navigationType:o.action,navigator:l,future:i})}var Et,xt;yt.flushSync,t.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"}(Et||(Et={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(xt||(xt={}));const Mt=()=>{const{useSettings:a,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s}=(0,e.useContext)(c),l=at();return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"md:gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-16 gtmkit-mb-20"},(0,t.createElement)("div",{className:""},(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-w-full !gtmkit-px-8 "},(0,t.createElement)(n.TextControl,{label:(0,o.__)("Container ID","gtm-kit"),placeholder:(0,o.__)("Enter Container ID","gtm-kit"),value:a&&a.general.gtm_id,className:"gtmkit-text-center",onChange:t=>i("general","gtm_id",t)})),(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,t.createElement)(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:()=>{r(),l("/essential-settings",{replace:!0})},disabled:s||!a.general.gtm_id.includes("-")},(0,o.__)("Save and continue","gtm-kit"),s?(0,t.createElement)(n.Spinner,null):""))),(0,t.createElement)("div",{className:"gtmkit-mt-8 gtmkit-border gtmkit-p-6 gtmkit-text-left gtmkit-text-color-grey gtmkit-text-center"},(0,t.createElement)("h2",{className:"gtmkit-font-bold gtmkit-text-base gtmkit-mb-4"},"Need help?"),(0,t.createElement)("p",{className:"gtmkit-mb-6"},(0,o.__)("Find your GTM container ID on","gtm-kit"),(0,t.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-underline",href:"https://tagmanager.google.com/",target:"_blank",rel:"noreferrer"},"Google Tag Manager")),(0,t.createElement)("p",null,(0,o.__)("It should look something like this:","gtm-kit")," ","GTM-12ZM7SF4"))),(0,t.createElement)("div",{className:"gtmkit-mt-3 md:gtmkit-mt-10 gtmkit-text-color-grey gtmkit-text-base"},(0,t.createElement)("span",{className:"gtmkit-block"},(0,o.__)("No thanks. I know what I'm doing.","gtm-kit")),(0,t.createElement)("a",{className:"gtmkit-underline gtmkit-ml-4",href:window.gtmkitSettings.dashboardUrl},(0,o.__)("Go to the dashboard.","gtm-kit"))))},Nt=()=>{const{useImportSettings:a,useIsPending:i,useInstallData:r}=(0,e.useContext)(c),[s,l]=(0,e.useState)(!0),m=Object.keys(r.import_data)[0],[g,u]=(0,e.useState)(m),d=[];return Object.keys(r.import_data).forEach((t=>{d.push({value:t,label:r.import_data[t].name})})),s?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto gtmkit-border gtmkit-p-8 gtmkit-my-8"},(0,t.createElement)("h2",{className:"gtmkit-text-lg gtmkit-text-color-heading gtmkit-font-bold"},(0,o.__)("Would you like to import plugin settings?","gtm-kit")),(0,t.createElement)("p",{className:"gtmkit-text-base gtmkit-my-4 gtmkit-text-color-grey"},(0,o.__)("We have found the configuration of other plugins in the database.","gtm-kit")," ",(0,o.__)("Would you like to import your settings to GTM Kit?","gtm-kit")),(0,t.createElement)(n.RadioControl,{help:(0,o.__)("Select the plugin you want to import settings from.","gtm-kit"),selected:g,options:d,onChange:t=>u(t)}),(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,t.createElement)(n.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-6 !gtmkit-px-8 gtmkit-text-base",onClick:()=>{a(g,r.import_data[g]),l(!1)}},(0,t.createElement)("span",{className:"gtmkit-text-lg gtmkit-font-bold"},(0,o.__)("Yes","gtm-kit")),i?(0,t.createElement)(n.Spinner,null):""),(0,t.createElement)(n.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-6 !gtmkit-px-8 gtmkit-text-base",onClick:()=>{l(!1)}},(0,t.createElement)("span",{className:"gtmkit-text-lg gtmkit-font-bold"},(0,o.__)("No","gtm-kit")),i?(0,t.createElement)(n.Spinner,null):"")))):(0,t.createElement)(Mt,null)},vt=()=>{const{useInstallData:a}=(0,e.useContext)(c),{firstInstall:n}=a,{importAvailable:i}=a;return(0,t.createElement)("div",{className:"gtmkit-text-center"},(0,t.createElement)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading"},(0,o.__)("You've successfully installed GTM Kit!","gtm-kit")),(0,t.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey"},(0,o.__)("To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container.","gtm-kit"))),n&&i?(0,t.createElement)(Nt,null):(0,t.createElement)(Mt,null))},wt=()=>{const{useSettings:a,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s,useInstallData:l}=(0,e.useContext)(c),m=at();return(0,t.createElement)("div",{className:"gtmkit-text-center"},(0,t.createElement)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading"},(0,o.__)("Essential Settings","gtm-kit")),(0,t.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey"},(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,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Page type","gtm-kit"),id:"page-type"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("Include the page type i.e. page, product, category, cart, checkout etc in the datalayer?","gtm-kit"),checked:a&&a.general.datalayer_page_type,onChange:()=>{i("general","datalayer_page_type",!(a&&a.general.datalayer_page_type))}}))),l.woocommerce_integration?(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Track WooCommerce","gtm-kit"),id:"track-wooCommerce"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("Would you like to track e-commerce data from WooCommerce?","gtm-kit"),checked:a&&a.integrations.woocommerce_integration,onChange:()=>{i("integrations","woocommerce_integration",!(a&&a.integrations.woocommerce_integration))}}))):null,l.cf7_integration?(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Track Contact Form 7","gtm-kit"),id:"track-cf7"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("Would you like to track form submissions from Contact Form 7?","gtm-kit"),checked:a&&a.integrations.cf7_integration,onChange:()=>{i("integrations","cf7_integration",!(a&&a.integrations.cf7_integration))}}))):null,l.edd_integration?(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap"},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Track Easy Digital Downloads","gtm-kit"),id:"track-edd"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("Would you like to track e-commerce data from Easy Digital Downloads?","gtm-kit"),checked:a&&a.integrations.edd_integration,onChange:()=>{i("integrations","edd_integration",!(a&&a.integrations.edd_integration))}}))):null,(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,t.createElement)(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:()=>{r(),m("/share-anonymous-data",{replace:!0})},disabled:s},(0,o.__)("Save and continue","gtm-kit"),s?(0,t.createElement)(n.Spinner,null):"")))},_t=()=>{const{useSettings:a,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s,useSiteData:l}=(0,e.useContext)(c),m=at();return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h1",{className:"gtmkit-text-3xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading gtmkit-text-center"},(0,o.__)("Help improve GTM Kit","gtm-kit")),(0,t.createElement)("p",{className:"gtmkit-text-sm gtmkit-mb-4 gtmkit-text-color-grey"},(0,o.__)("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,t.createElement)("p",{className:"gtmkit-text-sm gtmkit-mb-8 gtmkit-text-color-grey"},(0,o.__)("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,t.createElement)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm"},(0,t.createElement)("tbody",null,(0,t.createElement)("tr",{className:""},(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Server type:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.web_server))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"PHP version number:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.php_version))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"WordPress version number:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.wordpress_version))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"WordPress multisite:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.multisite?(0,o.__)("Yes","gtm-kit"):(0,o.__)("No","gtm-kit")))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Current theme:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.current_theme))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Current site language:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("code",{className:"gtmkit-text-sm"},l.locale))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Active plugins:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("em",null,"Plugin names of all active plugins"))),(0,t.createElement)("tr",null,(0,t.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("strong",null,"Anonymized GTM Kit settings:")),(0,t.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,t.createElement)("em",null,"Which GTM Kit settings are active"))))),(0,t.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-max !gtmkit-px-8 gtmkit-mx-auto "},(0,t.createElement)(n.BaseControl,{label:(0,o.__)("Share anonymous data","gtm-kit"),id:"share-anonymous-data"},(0,t.createElement)(n.ToggleControl,{label:(0,o.__)("I agree to share anonymous data with the development team to help improve GTM Kit. ","gtm-kit"),checked:a&&a.general.analytics_active,onChange:()=>{i("general","analytics_active",!(a&&a.general.analytics_active))}}))),(0,t.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,t.createElement)(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:()=>{r(),m("/getting-started",{replace:!0})},disabled:s},(0,o.__)("Save and continue","gtm-kit"),s?(0,t.createElement)(n.Spinner,null):"")))};var bt=a(893);const Tt=()=>(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("h1",{className:"gtmkit-text-3xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading gtmkit-text-center",children:(0,o.__)("You are ready to use GTM Kit!","gtm-kit")}),(0,bt.jsx)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey gtmkit-text-center",children:(0,o.__)("Your Google Tag Manager Container is now sending data to Google Tag Manager.","gtm-kit")}),(0,bt.jsxs)("p",{className:"gtmkit-text-base gtmkit-mb-12 gtmkit-text-color-grey gtmkit-text-center",children:[(0,o.__)("Below you will find GTM container import files, with all the necessary tags, trigger, and variables to use Google Analytics 4.","gtm-kit")," "]}),(0,bt.jsxs)("div",{className:"gtmkit-border-2 gtmkit-max-w-lg gtmkit-mx-auto gtmkit-mb-8",children:[(0,bt.jsx)("h3",{className:"gtmkit-p-3 gtmkit-font-bold gtmkit-text-xl gtmkit-border-b-2",children:(0,o.__)("Getting Started","gtm-kit")}),(0,bt.jsxs)("p",{className:"gtmkit-text-base gtmkit-text-color-grey gtmkit-m-4",children:[(0,o.__)("The next step is to configure your Google Tag Manager container. You will find templates for this in the GTM Templates section.","gtm-kit")," ",(0,bt.jsx)("a",{className:"gtmkit-text-color-primary gtmkit-whitespace-nowrap",href:window.gtmkitSettings.templatesUrl,rel:"noreferrer",children:(0,o.__)("Go to GTM Templates","gtm-kit")})]}),(0,bt.jsxs)("p",{className:"gtmkit-text-base gtmkit-text-color-grey gtmkit-m-4",children:[(0,o.__)("To get the most out of Google Tag Manager with GTM Kit, you should also review the tutorials.","gtm-kit")," ",(0,bt.jsx)("a",{className:"gtmkit-text-color-primary gtmkit-whitespace-nowrap",href:window.gtmkitSettings.helpUrl+"#/help",rel:"noreferrer",children:(0,o.__)("Go to Tutorials","gtm-kit")})]})]}),(0,bt.jsx)("div",{className:"gtmkit-flex gtmkit-mt-12",children:(0,bt.jsx)(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:()=>{window.location.href=window.gtmkitSettings.dashboardUrl},children:(0,o.__)("Go to the dashboard","gtm-kit")})})]}),Lt=[{step:1,path:"/welcome",element:"Welcome",title:(0,o.__)("Welcome","gtm-kit")},{step:2,path:"/essential-settings",element:"EssentialSettings",title:(0,o.__)("Essential Settings","gtm-kit")},{step:3,path:"/share-anonymous-data",element:"ShareAnonymousData",title:(0,o.__)("Help improve GTM Kit","gtm-kit")},{step:4,path:"/getting-started",element:"GettingStarted",title:(0,o.__)("Getting Started","gtm-kit")}],jt=({step:e,currentStep:a,totalSteps:n})=>{if(e===n)return;let i="gtmkit-h-0.5 gtmkit-w-full";return i+=e<a?" gtmkit-bg-color-primary":" gtmkit-bg-color-border",(0,t.createElement)("div",{className:i})},Dt=({step:e,currentStep:a})=>e<a?(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"gtmkit-w-5 gtmkit-h-5 gtmkit-text-white"},(0,t.createElement)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})):e===a?(0,t.createElement)("span",{className:"gtmkit-h-2.5 gtmkit-w-2.5 gtmkit-rounded-full gtmkit-bg-color-primary"}):void 0,It=({step:e,currentStep:a,totalSteps:n})=>{if(0===e)return;let i="gtmkit-transition-opacity gtmkit-duration-500 gtmkit-absolute gtmkit-inset-0 gtmkit-border-2 gtmkit-flex gtmkit-items-center gtmkit-justify-center gtmkit-rounded-full gtmkit-opacity-100";return i+=e<a?" gtmkit-bg-color-primary":" gtmkit-bg-white",i+=e>a?" gtmkit-border-color-border":" gtmkit-border-color-primary",(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{className:"gtmkit-relative gtmkit-shrink-0 gtmkit-z-10 gtmkit-w-8 gtmkit-h-8 gtmkit-rounded-full"},(0,t.createElement)("span",{className:i},(0,t.createElement)(Dt,{step:e,currentStep:a,totalSteps:n}))),(0,t.createElement)(jt,{step:e,currentStep:a,totalSteps:n}))},Ct=()=>{const e=Lt.length-1+Lt[0].step;let a=((t,e)=>{const a=Object.keys(e);return t.filter((function(t){for(let n=0;n<a.length;n++)if(!t.hasOwnProperty(a[n])||t[a[n]]!==e[a[n]])return!1;return!0}))})(Lt,{path:tt().pathname});return a=a.length?a[0].step:0,0===a?(0,t.createElement)("div",{className:"gtmkit-my-16"}):(0,t.createElement)("div",{className:"gtmkit-mt-6 gtmkit-inset-0 gtmkit-mx-auto gtmkit-my-6 gtmkit-flex gtmkit-items-center gtmkit-max-w-xl","aria-hidden":"true"},Lt.map((function(n){return(0,t.createElement)(It,{key:n.step,step:n.step,currentStep:a,totalSteps:e})})))},Ot=()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("header",{className:"gtmkit-text-center gtmkit-px-3"},(0,t.createElement)("h1",{className:"gtmkit-mt-3 md:gtmkit-mt-8 gtmkit-mb-4 gtmkit-w-[225px] gtmkit-inline-block"},(0,t.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNDY3LjEgMTU4Ni40IiBoZWlnaHQ9IjU0IiB2aWV3Qm94PSIwIDAgMTYwIDU0IiB3aWR0aD0iMTYwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IGZpbGw9IiM4ODgiIGhlaWdodD0iNTQiIHJ4PSI0LjI2NSIgd2lkdGg9IjE2MCIvPjxwYXRoIGQ9Im04OC42NTkgNy4wMDJoLTQ5LjI2NmMtMi45MTUgMC01LjM3OC0uMTg0LTkuMjMgMi41OTZsLTE4Ljc0MyAxMi43NTJjLTQuNTQ5IDMuMjkyLTQuNTcxIDYuMDAxIDAgOS4zMDJsMTguNzQzIDEyLjc1MWMzLjY1MiAyLjY0NiA2LjI5OSAyLjU5NyA5LjIzIDIuNTk3aDE1LjY4NiAzMy41OGMyLjkzMS0uMDU3IDUuMzk0LTEuNzg0IDUuMzQtMy45MjN2LTMyLjIxYy0uMDEyLTIuMTM0LTIuNDA5LTMuODY1LTUuMzQtMy44NjV6IiBmaWxsPSIjMzk2OWJiIiB0cmFuc2Zvcm09Im1hdHJpeCgtMSAwIDAgLTEgMTAxLjk5OTg2NyA1My45OTk1NDcpIi8+PGcgZmlsbD0iI2ZmZiIgdHJhbnNmb3JtPSJtYXRyaXgoMS40NjUyMDIgMCAwIDEuNDY1MjAyIC00LjU4MjQzNiAtNy41NTMxMjYpIj48cGF0aCBkPSJtMTguMzE2IDIzLjA4Nmg0LjYzMnY2LjA1MmMtLjc1LjI0NS0xLjQ1OS40MTUtMi4xMjEuNTE0LS42NjMuMDk4LTEuMzQxLjE0OC0yLjAzMy4xNDgtMS43NjQgMC0zLjEwNi0uNTE3LTQuMDM1LTEuNTU0LS45MjktMS4wMzQtMS4zOTUtMi41MTktMS4zOTUtNC40NTcgMC0xLjg4Ni41MzgtMy4zNTYgMS42MTctNC40MSAxLjA3OC0xLjA1NCAyLjU3My0xLjU3OSA0LjQ4MS0xLjU3OSAxLjIgMCAyLjM1Ny4yMzkgMy40NjkuNzE4bC0uODIzIDEuOTc5Yy0uODUtLjQyNS0xLjczNy0uNjM3LTIuNjU3LS42MzctMS4wNzEgMC0xLjkzMi4zNTgtMi41NzIgMS4wNzctLjY0NS43MTgtLjk2OCAxLjY4NS0uOTY4IDIuODk5IDAgMS4yNjcuMjYgMi4yMzMuNzggMi45MDQuNTE2LjY2NyAxLjI3MS45OTkgMi4yNjIuOTk5LjUxNyAwIDEuMDQxLS4wNTIgMS41NzItLjE1OHYtMi40MzVoLTIuMjA5em0xMS45MTIgNi41NTVoLTIuNDc0di05LjYxNGgtMy4xNzN2LTIuMDZoOC44MTZ2Mi4wNmgtMy4xNjl6bTkuOTA4IDAtMi44MTEtOS4xNThoLS4wNzJjLjEwMyAxLjg2My4xNTQgMy4xMDUuMTU0IDMuNzI4djUuNDNoLTIuMjEzdi0xMS42NzRoMy4zNjhsMi43NjQgOC45MjdoLjA0OGwyLjkzNC04LjkyN2gzLjM2OXYxMS42NzRoLTIuMzA4di01LjUyNWMwLS4yNjEgMC0uNTYxLjAwOS0uOTAzLjAwOS0uMzQxLjA0OC0xLjI0Ni4xMTItMi43MTZoLS4wNzRsLTMuMDExIDkuMTQ0eiIvPjxwYXRoIGQ9Im04OC44ODMgMzEuODk4aC0zLjgxMWwtNC4xNDctNi42Ny0xLjQxNyAxLjAxOHY1LjY1MmgtMy4zNTd2LTE1LjgzaDMuMzU3djcuMjQybDEuMzE4LTEuODYxIDQuMjkzLTUuMzgxaDMuNzI0bC01LjUyMyA3LjAwNnptMS41ODktMTUuMjMzYzAtMS4wNzUuNi0xLjYxNCAxLjgtMS42MTQgMS4xOTkgMCAxLjc5OC41MzkgMS43OTggMS42MTQgMCAuNTEyLS4xNDguOTEtLjQ1IDEuMTk2LS4yOTcuMjg0LS43NDkuNDI5LTEuMzQ4LjQyOS0xLjIgMC0xLjgtLjU0My0xLjgtMS42MjV6bTMuNDQ5IDE1LjIzM2gtMy4zMDJ2LTEyLjEwNGgzLjMwMnptOC41NjMtMi40MTNjLjU3OCAwIDEuMjcxLS4xMjggMi4wNzctLjM4djIuNDU2Yy0uODIuMzctMS44MzEuNTUyLTMuMDMxLjU1Mi0xLjMyNCAwLTIuMjgtLjMzMy0yLjg4NS0xLjAwMS0uNjAyLS42NjctLjkwMi0xLjY2OC0uOTAyLTMuMDAzdi01LjgzNWgtMS41ODV2LTEuMzk5bDEuODIzLTEuMTAzLjk0OS0yLjU1N2gyLjExNXYyLjU3OWgzLjM4OHYyLjQ4aC0zLjM4OHY1LjgzNWMwIC40NjcuMTI5LjgxNS4zOTMgMS4wNDEuMjY0LjIyMi42MTQuMzM1IDEuMDQ2LjMzNXoiLz48L2c+PC9zdmc+",alt:(0,o.__)("GTM Kit","gtm-kit"),className:"gtmkit-w-full"}))),(0,t.createElement)(Ct,null)),Ut=()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("footer",{className:"gtm-kit-settings-footer gtmkit-my-8 gtmkit-text-color-grey"},(0,t.createElement)("p",{className:"gtmkit-mx-auto gtmkit-max-w-max"},(0,t.createElement)("a",{className:"gtmkit-underline",href:window.gtmkitSettings.dashboardUrl},(0,o.__)("Go to the dashboard.","gtm-kit"))))),At=()=>{const{useSettings:a}=(0,e.useContext)(c);return Object.keys(a).length?(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Ot,null),(0,t.createElement)("main",{className:"gtmkit-max-w-3xl gtmkit-bg-white gtmkit-border-1 gtmkit-border-color-border gtmkit-rounded-md gtmkit-mx-auto gtmkit-py-12 gtmkit-px-16 gtmkit-text-base"},(0,t.createElement)(ht,null,(0,t.createElement)(dt,{exact:!0,path:"/welcome",element:(0,t.createElement)(vt,null)}),(0,t.createElement)(dt,{exact:!0,path:"/essential-settings",element:(0,t.createElement)(wt,null)}),(0,t.createElement)(dt,{exact:!0,path:"/share-anonymous-data",element:(0,t.createElement)(_t,null)}),(0,t.createElement)(dt,{exact:!0,path:"/getting-started",element:(0,t.createElement)(Tt,null)}),(0,t.createElement)(dt,{path:"/",element:(0,t.createElement)(ut,{replace:!0,to:"/welcome"})}))),(0,t.createElement)(Ut,null)):(0,t.createElement)(n.Spinner,{className:"gtm-kit-settings-page-loader"})},Pt=()=>(0,t.createElement)(ft,{basename:"/"},(0,t.createElement)(g,null,(0,t.createElement)(At,null)));document.addEventListener("DOMContentLoaded",(()=>{void 0!==document.getElementById(window.gtmkitSettings.rootId)&&null!==document.getElementById(window.gtmkitSettings.rootId)&&(0,e.render)((0,t.createElement)(Pt,null),document.getElementById(window.gtmkitSettings.rootId))}))})()})();
     1(()=>{"use strict";var t={n:e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a}),a},d:(e,a)=>{for(var n in a)t.o(a,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.React,a=window.wp.element,n=window.wp.components,i=window.lodash,r=window.wp.apiFetch;var s=t.n(r);s().use(s().createNonceMiddleware(window.gtmkitSettings.nonce)),s().use(s().createRootURLMiddleware(window.gtmkitSettings.root));const o=async(t,e,a=null,n=!1)=>{let i={};try{i=await s()({path:t,method:e,...a&&{data:a}})}catch(a){return console.log(`${e} ${t} Errors:`,a),{[`gtm_kit_api_${e}_${t}_errors`]:!0}}return!0===n?i:!0===i.success?i.data:options},l=window.wp.i18n,c=(t,e)=>{const a={...t};switch(e.type){case"FETCH_SETTINGS":a.fetchedSettings={...e.payload.fetchedSettings,integrations:e.payload.fetchedSettings.integrations||{}},a.stateSettings=e.payload.stateSettings,a.siteData=e.payload.siteData,a.notifications=e.payload.notifications,a.installData=e.payload.installData,a.isPending=!1,a.canSave=!1,e.payload.fetchedSettings.gtm_kit_api_fetch_settings_errors&&(a.notice=(0,l.__)("An error occurred.","gtm-kit"),a.hasError=!0);break;case"UPDATE_SETTINGS_BEFORE":a.isPending=e.payload.isPending;break;case"UPDATE_SETTINGS":a.fetchedSettings=e.payload.fetchedSettings,a.stateSettings=e.payload.stateSettings,a.isPending=!1,a.canSave=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors,a.notice=e.payload.fetchedSettings.gtm_kit_api_update_settings_errors?(0,l.__)("An error occurred.","gtm-kit"):(0,l.__)("Saved Successfully.","gtm-kit"),a.hasError=!!e.payload.fetchedSettings.gtm_kit_api_update_settings_errors;break;case"UPDATE_STATE":a.fetchedSettings=e.payload.fetchedSettings||a.fetchedSettings,a.stateSettings=e.payload.stateSettings||a.stateSettings,a.isPending=e.payload.isPending||a.isPending,a.notice=e.payload.notice||a.notice,a.hasError=e.payload.hasError||a.hasError,a.canSave=e.payload.canSave||a.canSave,a.isSendingSystemData=e.payload.isSendingSystemData||a.isSendingSystemData,a.supportTicket=e.payload.supportTicket||a.supportTicket,a.isSendingLicenseKey=e.payload.isSendingLicenseKey||a.isSendingLicenseKey,a.licenseKey=e.payload.licenseKey||a.licenseKey;break;case"SEND_SUPPORT_DATA_BEFORE":a.isSendingSystemData=e.payload.isSendingSystemData||a.isSendingSystemData;break;case"SEND_SUPPORT_DATA":a.isSendingSystemData=!1,a.isSystemDataSent=e.payload.isSystemDataSent||a.isSystemDataSent,a.systemDataMessage=e.payload.systemDataMessage||a.systemDataMessage;break;case"SEND_LICENSE_KEY_BEFORE":a.isSendingLicenseKey=e.payload.isSendingLicenseKey||a.isSendingLicenseKey;break;case"SEND_LICENSE_KEY":a.isSendingLicenseKey=!1,a.isLicenseKeySent=e.payload.isLicenseKeySent||a.isLicenseKeySent,a.licenseKeyMessage=e.payload.licenseKeyMessage||a.licenseKeyMessage;break;case"SEND_NOTIFICATION_STATUS_BEFORE":a.isUpdatingNotifications=e.payload.isUpdatingNotifications||a.isUpdatingNotifications;break;case"SEND_NOTIFICATION_STATUS":a.isUpdatingNotifications=!1,a.isNotificationStatusSent=e.payload.isNotificationStatusSent||a.isNotificationStatusSent,a.notifications=e.payload.notifications||a.Notifications}return a},m=window.ReactJSXRuntime,g=(0,a.createContext)(),u=t=>{const[e,n]=(0,a.useReducer)(c,{fetchedSettings:{},stateSettings:{},isPending:!0,notice:"",hasError:!1,canSave:!1,supportTicket:"",isSystemDataSent:!1,systemDataMessage:"",licenseKey:"",isLicensenKeySent:!1,licenseKeyMessage:"",notifications:{}}),r=async()=>{const t=window.gtmkitSettings.settings?window.gtmkitSettings.settings:{},e=window.gtmkitSettings.site_data?window.gtmkitSettings.site_data:{},a=window.gtmkitSettings.notifications?window.gtmkitSettings.notifications:{metrics:{total:1}},i="wizard"===window.gtmkitSettings.currentPage?window.gtmkitSettings.install_data:{};n({type:"FETCH_SETTINGS",payload:{fetchedSettings:t,stateSettings:t,siteData:e,notifications:a,installData:i}})},s=async t=>{n({type:"UPDATE_STATE",payload:t})};(0,a.useEffect)((()=>{r()}),[]);const l={useDispatch:t=>{n(t)},useUpdateSettings:async()=>{n({type:"UPDATE_SETTINGS_BEFORE",payload:{isPending:!0}});const t=await(a=e.stateSettings,o("gtmkit/v1/set-options","POST",a));var a;n({type:"UPDATE_SETTINGS",payload:{fetchedSettings:t,stateSettings:t}})},useFetchSettings:r,useUpdateState:s,useUpdateStateSettings:async(t,a,n)=>{const r=JSON.parse(JSON.stringify(e.stateSettings));let o;r[t][a]=n,o=!(0,i.isEqual)(r,e.fetchedSettings),s({stateSettings:r,canSave:o})},useImportSettings:async(t,a)=>{const n=JSON.parse(JSON.stringify(e.stateSettings));let r;const o={};o.general={...n.general,...a.general},"integrations"in a&&(o.integrations={...n.integrations,...a.integrations}),r=!(0,i.isEqual)(o,e.fetchedSettings),s({stateSettings:o,canSave:r})},useUpdateSupportTicket:async t=>{s({supportTicket:t})},useSendSystemData:async()=>{n({type:"SEND_SUPPORT_DATA_BEFORE",payload:{isSendingSystemData:!0}});const t=await(a=e.supportTicket,o("gtmkit/v1/send-support-data","POST",a,!0));var a;n({type:"SEND_SUPPORT_DATA",payload:{isSendingSystemData:!1,isSystemDataSent:t.success,systemDataMessage:t.data}})},useUpdateLicenseKey:async t=>{s({licenseKey:t})},useSendLicenseKey:async()=>{n({type:"SEND_LICENSE_KEY_BEFORE",payload:{isSendingLicenseKey:!0}});const t=await(a=e.licenseKey,o("gtmkit/v1/send-license-key","POST",a,!0));var a;n({type:"SEND_LICENSE_KEY",payload:{isSendingLicenseKey:!1,isLicenseKeySent:t.success,licenseKeyMessage:t.data}})},useSetNotificationStatus:async(t,e)=>{n({type:"SEND_NOTIFICATION_STATUS_BEFORE",payload:{isUpdatingNotifications:!0}});const a={"notification-id":t,action:e},i=await(t=>o("gtmkit/v1/set-notification-status","POST",t,!0))(a);n({type:"SEND_NOTIFICATION_STATUS",payload:{isUpdatingNotifications:!1,isNotificationStatusSent:i.success,notifications:i.data}})},useSettings:e.stateSettings,useIsPending:e.isPending,useNotice:e.notice,useHasError:e.hasError,useCanSave:e.canSave,useSiteData:e.siteData,useInstallData:e.installData,useIsSending:e.isSendingSystemData,useSupportTicket:e.supportTicket,useIsSystemDataSent:e.isSystemDataSent,useSystemDataMessage:e.systemDataMessage,useIsSendingLicenseKey:e.isSendingLicenseKey,useLicenseKey:e.licenseKey,useIsLicenseKeySent:e.isLicenseKeySent,useLicenseKeyMessage:e.licenseKeyMessage,useNotifications:e.notifications,useIsUpdatingNotifications:e.isUpdatingNotifications,useUserRoles:window.gtmkitSettings.user_roles?window.gtmkitSettings.user_roles:[],isPremium:!!window.gtmkitSettings.isPremium&&window.gtmkitSettings.isPremium};return(0,m.jsx)(g.Provider,{value:l,children:t.children})};function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},d.apply(this,arguments)}var p;!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(p||(p={}));const h="popstate";function k(t,e){if(!1===t||null==t)throw new Error(e)}function y(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function S(t,e){return{usr:t.state,key:t.key,idx:e}}function f(t,e,a,n){return void 0===a&&(a=null),d({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?x(e):e,{state:a,key:e&&e.key||n||Math.random().toString(36).substr(2,8)})}function E(t){let{pathname:e="/",search:a="",hash:n=""}=t;return a&&"?"!==a&&(e+="?"===a.charAt(0)?a:"?"+a),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function x(t){let e={};if(t){let a=t.indexOf("#");a>=0&&(e.hash=t.substr(a),t=t.substr(0,a));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}var N;function M(t,e,a){return void 0===a&&(a="/"),function(t,e,a,n){let i=z(("string"==typeof e?x(e):e).pathname||"/",a);if(null==i)return null;let r=v(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every(((t,a)=>t===e[a]))?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(r);let s=null;for(let t=0;null==s&&t<r.length;++t){let e=A(i);s=O(r[t],e,n)}return s}(t,e,a,!1)}function v(t,e,a,n){void 0===e&&(e=[]),void 0===a&&(a=[]),void 0===n&&(n="");let i=(t,i,r)=>{let s={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};s.relativePath.startsWith("/")&&(k(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(n.length));let o=G([n,s.relativePath]),l=a.concat(s);t.children&&t.children.length>0&&(k(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),v(t.children,e,l,o)),(null!=t.path||t.index)&&e.push({path:o,score:C(o,t.index),routesMeta:l})};return t.forEach(((t,e)=>{var a;if(""!==t.path&&null!=(a=t.path)&&a.includes("?"))for(let a of w(t.path))i(t,e,a);else i(t,e)})),e}function w(t){let e=t.split("/");if(0===e.length)return[];let[a,...n]=e,i=a.endsWith("?"),r=a.replace(/\?$/,"");if(0===n.length)return i?[r,""]:[r];let s=w(n.join("/")),o=[];return o.push(...s.map((t=>""===t?r:[r,t].join("/")))),i&&o.push(...s),o.map((e=>t.startsWith("/")&&""===e?"/":e))}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(N||(N={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const _=/^:[\w-]+$/,T=3,b=2,L=1,j=10,D=-2,I=t=>"*"===t;function C(t,e){let a=t.split("/"),n=a.length;return a.some(I)&&(n+=D),e&&(n+=b),a.filter((t=>!I(t))).reduce(((t,e)=>t+(_.test(e)?T:""===e?L:j)),n)}function O(t,e,a){void 0===a&&(a=!1);let{routesMeta:n}=t,i={},r="/",s=[];for(let t=0;t<n.length;++t){let o=n[t],l=t===n.length-1,c="/"===r?e:e.slice(r.length)||"/",m=U({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},c),g=o.route;if(!m&&l&&a&&!n[n.length-1].route.index&&(m=U({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},c)),!m)return null;Object.assign(i,m.params),s.push({params:i,pathname:G([r,m.pathname]),pathnameBase:K(G([r,m.pathnameBase])),route:g}),"/"!==m.pathnameBase&&(r=G([r,m.pathnameBase]))}return s}function U(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[a,n]=function(t,e,a){void 0===e&&(e=!1),void 0===a&&(a=!0),y("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((t,e,a)=>(n.push({paramName:e,isOptional:null!=a}),a?"/?([^\\/]+)?":"/([^\\/]+)")));return t.endsWith("*")?(n.push({paramName:"*"}),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==t&&"/"!==t&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}(t.path,t.caseSensitive,t.end),i=e.match(a);if(!i)return null;let r=i[0],s=r.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce(((t,e,a)=>{let{paramName:n,isOptional:i}=e;if("*"===n){let t=o[a]||"";s=r.slice(0,r.length-t.length).replace(/(.)\/+$/,"$1")}const l=o[a];return t[n]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),t}),{}),pathname:r,pathnameBase:s,pattern:t}}function A(t){try{return t.split("/").map((t=>decodeURIComponent(t).replace(/\//g,"%2F"))).join("/")}catch(e){return y(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function z(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let a=e.endsWith("/")?e.length-1:e.length,n=t.charAt(a);return n&&"/"!==n?null:t.slice(a)||"/"}function P(t,e,a,n){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(n)+"].  Please separate it out to the `to."+a+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function R(t,e){let a=function(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}(t);return e?a.map(((t,e)=>e===a.length-1?t.pathname:t.pathnameBase)):a.map((t=>t.pathnameBase))}function B(t,e,a,n){let i;void 0===n&&(n=!1),"string"==typeof t?i=x(t):(i=d({},t),k(!i.pathname||!i.pathname.includes("?"),P("?","pathname","search",i)),k(!i.pathname||!i.pathname.includes("#"),P("#","pathname","hash",i)),k(!i.search||!i.search.includes("#"),P("#","search","hash",i)));let r,s=""===t||""===i.pathname,o=s?"/":i.pathname;if(null==o)r=a;else{let t=e.length-1;if(!n&&o.startsWith("..")){let e=o.split("/");for(;".."===e[0];)e.shift(),t-=1;i.pathname=e.join("/")}r=t>=0?e[t]:"/"}let l=function(t,e){void 0===e&&(e="/");let{pathname:a,search:n="",hash:i=""}="string"==typeof t?x(t):t,r=a?a.startsWith("/")?a:function(t,e){let a=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?a.length>1&&a.pop():"."!==t&&a.push(t)})),a.length>1?a.join("/"):"/"}(a,e):e;return{pathname:r,search:Y(n),hash:F(i)}}(i,r),c=o&&"/"!==o&&o.endsWith("/"),m=(s||"."===o)&&a.endsWith("/");return l.pathname.endsWith("/")||!c&&!m||(l.pathname+="/"),l}const G=t=>t.join("/").replace(/\/\/+/g,"/"),K=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",F=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const W=["post","put","patch","delete"],Q=(new Set(W),["get",...W]);function J(){return J=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},J.apply(this,arguments)}new Set(Q),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const H=e.createContext(null),$=e.createContext(null),Z=e.createContext(null),V=e.createContext(null),X=e.createContext({outlet:null,matches:[],isDataRoute:!1}),q=e.createContext(null);function tt(){return null!=e.useContext(V)}function et(){return tt()||k(!1),e.useContext(V).location}function at(t){e.useContext(Z).static||e.useLayoutEffect(t)}function nt(){let{isDataRoute:t}=e.useContext(X);return t?function(){let{router:t}=function(){let t=e.useContext(H);return t||k(!1),t}(ct.UseNavigateStable),a=gt(mt.UseNavigateStable),n=e.useRef(!1);return at((()=>{n.current=!0})),e.useCallback((function(e,i){void 0===i&&(i={}),n.current&&("number"==typeof e?t.navigate(e):t.navigate(e,J({fromRouteId:a},i)))}),[t,a])}():function(){tt()||k(!1);let t=e.useContext(H),{basename:a,future:n,navigator:i}=e.useContext(Z),{matches:r}=e.useContext(X),{pathname:s}=et(),o=JSON.stringify(R(r,n.v7_relativeSplatPath)),l=e.useRef(!1);return at((()=>{l.current=!0})),e.useCallback((function(e,n){if(void 0===n&&(n={}),!l.current)return;if("number"==typeof e)return void i.go(e);let r=B(e,JSON.parse(o),s,"path"===n.relative);null==t&&"/"!==a&&(r.pathname="/"===r.pathname?a:G([a,r.pathname])),(n.replace?i.replace:i.push)(r,n.state,n)}),[a,i,o,s,t])}()}function it(t,a,n,i){tt()||k(!1);let{navigator:r}=e.useContext(Z),{matches:s}=e.useContext(X),o=s[s.length-1],l=o?o.params:{},c=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let m,g=et();if(a){var u;let t="string"==typeof a?x(a):a;"/"===c||(null==(u=t.pathname)?void 0:u.startsWith(c))||k(!1),m=t}else m=g;let d=m.pathname||"/",h=d;if("/"!==c){let t=c.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(t.length).join("/")}let y=M(t,{pathname:h}),S=function(t,a,n,i){var r;if(void 0===a&&(a=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==t){var s;if(!n)return null;if(n.errors)t=n.matches;else{if(!(null!=(s=i)&&s.v7_partialHydration&&0===a.length&&!n.initialized&&n.matches.length>0))return null;t=n.matches}}let o=t,l=null==(r=n)?void 0:r.errors;if(null!=l){let t=o.findIndex((t=>t.route.id&&void 0!==(null==l?void 0:l[t.route.id])));t>=0||k(!1),o=o.slice(0,Math.min(o.length,t+1))}let c=!1,m=-1;if(n&&i&&i.v7_partialHydration)for(let t=0;t<o.length;t++){let e=o[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(m=t),e.route.id){let{loaderData:t,errors:a}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!a||void 0===a[e.route.id]);if(e.route.lazy||i){c=!0,o=m>=0?o.slice(0,m+1):[o[0]];break}}}return o.reduceRight(((t,i,r)=>{let s,g=!1,u=null,d=null;var p;n&&(s=l&&i.route.id?l[i.route.id]:void 0,u=i.route.errorElement||st,c&&(m<0&&0===r?(ut[p="route-fallback"]||(ut[p]=!0),g=!0,d=null):m===r&&(g=!0,d=i.route.hydrateFallbackElement||null)));let h=a.concat(o.slice(0,r+1)),k=()=>{let a;return a=s?u:g?d:i.route.Component?e.createElement(i.route.Component,null):i.route.element?i.route.element:t,e.createElement(lt,{match:i,routeContext:{outlet:t,matches:h,isDataRoute:null!=n},children:a})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?e.createElement(ot,{location:n.location,revalidation:n.revalidation,component:u,error:s,children:k(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):k()}),null)}(y&&y.map((t=>Object.assign({},t,{params:Object.assign({},l,t.params),pathname:G([c,r.encodeLocation?r.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?c:G([c,r.encodeLocation?r.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])}))),s,n,i);return a&&S?e.createElement(V.Provider,{value:{location:J({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:p.Pop}},S):S}function rt(){let t=function(){var t;let a=e.useContext(q),n=function(){let t=e.useContext($);return t||k(!1),t}(mt.UseRouteError),i=gt(mt.UseRouteError);return void 0!==a?a:null==(t=n.errors)?void 0:t[i]}(),a=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},a),n?e.createElement("pre",{style:i},n):null,null)}const st=e.createElement(rt,null);class ot extends e.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?e.createElement(X.Provider,{value:this.props.routeContext},e.createElement(q.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lt(t){let{routeContext:a,match:n,children:i}=t,r=e.useContext(H);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(X.Provider,{value:a},i)}var ct=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(ct||{}),mt=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(mt||{});function gt(t){let a=function(){let t=e.useContext(X);return t||k(!1),t}(),n=a.matches[a.matches.length-1];return n.route.id||k(!1),n.route.id}const ut={};function dt(t){let{to:a,replace:n,state:i,relative:r}=t;tt()||k(!1);let{future:s,static:o}=e.useContext(Z),{matches:l}=e.useContext(X),{pathname:c}=et(),m=nt(),g=B(a,R(l,s.v7_relativeSplatPath),c,"path"===r),u=JSON.stringify(g);return e.useEffect((()=>m(JSON.parse(u),{replace:n,state:i,relative:r})),[m,u,r,n,i]),null}function pt(t){k(!1)}function ht(t){let{basename:a="/",children:n=null,location:i,navigationType:r=p.Pop,navigator:s,static:o=!1,future:l}=t;tt()&&k(!1);let c=a.replace(/^\/*/,"/"),m=e.useMemo((()=>({basename:c,navigator:s,static:o,future:J({v7_relativeSplatPath:!1},l)})),[c,l,s,o]);"string"==typeof i&&(i=x(i));let{pathname:g="/",search:u="",hash:d="",state:h=null,key:y="default"}=i,S=e.useMemo((()=>{let t=z(g,c);return null==t?null:{location:{pathname:t,search:u,hash:d,state:h,key:y},navigationType:r}}),[c,g,u,d,h,y,r]);return null==S?null:e.createElement(Z.Provider,{value:m},e.createElement(V.Provider,{children:n,value:S}))}function kt(t){let{children:e,location:a}=t;return it(yt(e),a)}function yt(t,a){void 0===a&&(a=[]);let n=[];return e.Children.forEach(t,((t,i)=>{if(!e.isValidElement(t))return;let r=[...a,i];if(t.type===e.Fragment)return void n.push.apply(n,yt(t.props.children,r));t.type!==pt&&k(!1),t.props.index&&t.props.children&&k(!1);let s={id:t.props.id||r.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(s.children=yt(t.props.children,r)),n.push(s)})),n}e.startTransition,new Promise((()=>{})),e.Component;const St=window.ReactDOM;new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(t){}new Map;const ft=e.startTransition;function Et(t){let{basename:a,children:n,future:i,window:r}=t,s=e.useRef();null==s.current&&(s.current=function(t){return void 0===t&&(t={}),function(t,e,a,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:r=!1}=n,s=i.history,o=p.Pop,l=null,c=m();function m(){return(s.state||{idx:null}).idx}function g(){o=p.Pop;let t=m(),e=null==t?null:t-c;c=t,l&&l({action:o,location:y.location,delta:e})}function u(t){let e="null"!==i.location.origin?i.location.origin:i.location.href,a="string"==typeof t?t:E(t);return a=a.replace(/ $/,"%20"),k(e,"No window.location.(origin|href) available to create URL for href: "+a),new URL(a,e)}null==c&&(c=0,s.replaceState(d({},s.state,{idx:c}),""));let y={get action(){return o},get location(){return t(i,s)},listen(t){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(h,g),l=t,()=>{i.removeEventListener(h,g),l=null}},createHref:t=>e(i,t),createURL:u,encodeLocation(t){let e=u(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){o=p.Push;let n=f(y.location,t,e);a&&a(n,t),c=m()+1;let g=S(n,c),u=y.createHref(n);try{s.pushState(g,"",u)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;i.location.assign(u)}r&&l&&l({action:o,location:y.location,delta:1})},replace:function(t,e){o=p.Replace;let n=f(y.location,t,e);a&&a(n,t),c=m();let i=S(n,c),g=y.createHref(n);s.replaceState(i,"",g),r&&l&&l({action:o,location:y.location,delta:0})},go:t=>s.go(t)};return y}((function(t,e){let{pathname:a="/",search:n="",hash:i=""}=x(t.location.hash.substr(1));return a.startsWith("/")||a.startsWith(".")||(a="/"+a),f("",{pathname:a,search:n,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){let a=t.document.querySelector("base"),n="";if(a&&a.getAttribute("href")){let e=t.location.href,a=e.indexOf("#");n=-1===a?e:e.slice(0,a)}return n+"#"+("string"==typeof e?e:E(e))}),(function(t,e){y("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),t)}({window:r,v5Compat:!0}));let o=s.current,[l,c]=e.useState({action:o.action,location:o.location}),{v7_startTransition:m}=i||{},g=e.useCallback((t=>{m&&ft?ft((()=>c(t))):c(t)}),[c,m]);return e.useLayoutEffect((()=>o.listen(g)),[o,g]),e.createElement(ht,{basename:a,children:n,location:l.location,navigationType:l.action,navigator:o,future:i})}var xt,Nt;St.flushSync,e.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"}(xt||(xt={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(Nt||(Nt={}));const Mt=()=>{const{useSettings:t,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s}=(0,a.useContext)(g),o=nt();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"md:gtmkit-grid gtmkit-grid-cols-2 gtmkit-gap-16 gtmkit-mb-20"},(0,e.createElement)("div",{className:""},(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-w-full !gtmkit-px-8 "},(0,e.createElement)(n.TextControl,{label:(0,l.__)("Container ID","gtm-kit"),placeholder:(0,l.__)("Enter Container ID","gtm-kit"),value:t&&t.general.gtm_id,className:"gtmkit-text-center",onChange:t=>i("general","gtm_id",t)})),(0,e.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,e.createElement)(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:()=>{r(),o("/essential-settings",{replace:!0})},disabled:s||!t.general.gtm_id.includes("-")},(0,l.__)("Save and continue","gtm-kit"),s?(0,e.createElement)(n.Spinner,null):""))),(0,e.createElement)("div",{className:"gtmkit-mt-8 gtmkit-border gtmkit-p-6 gtmkit-text-left gtmkit-text-color-grey gtmkit-text-center"},(0,e.createElement)("h2",{className:"gtmkit-font-bold gtmkit-text-base gtmkit-mb-4"},"Need help?"),(0,e.createElement)("p",{className:"gtmkit-mb-6"},(0,l.__)("Find your GTM container ID on","gtm-kit"),(0,e.createElement)("a",{className:"gtmkit-ml-2 gtmkit-text-color-primary gtmkit-underline",href:"https://tagmanager.google.com/",target:"_blank",rel:"noreferrer"},"Google Tag Manager")),(0,e.createElement)("p",null,(0,l.__)("It should look something like this:","gtm-kit")," ","GTM-12ZM7SF4"))),(0,e.createElement)("div",{className:"gtmkit-mt-3 md:gtmkit-mt-10 gtmkit-text-color-grey gtmkit-text-base"},(0,e.createElement)("span",{className:"gtmkit-block"},(0,l.__)("No thanks. I know what I'm doing.","gtm-kit")),(0,e.createElement)("a",{className:"gtmkit-underline gtmkit-ml-4",href:window.gtmkitSettings.dashboardUrl},(0,l.__)("Go to the dashboard.","gtm-kit"))))},vt=()=>{const{useImportSettings:t,useIsPending:i,useInstallData:r}=(0,a.useContext)(g),[s,o]=(0,a.useState)(!0),c=Object.keys(r.import_data)[0],[m,u]=(0,a.useState)(c),d=[];return Object.keys(r.import_data).forEach((t=>{d.push({value:t,label:r.import_data[t].name})})),s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto gtmkit-border gtmkit-p-8 gtmkit-my-8"},(0,e.createElement)("h2",{className:"gtmkit-text-lg gtmkit-text-color-heading gtmkit-font-bold"},(0,l.__)("Would you like to import plugin settings?","gtm-kit")),(0,e.createElement)("p",{className:"gtmkit-text-base gtmkit-my-4 gtmkit-text-color-grey"},(0,l.__)("We have found the configuration of other plugins in the database.","gtm-kit")," ",(0,l.__)("Would you like to import your settings to GTM Kit?","gtm-kit")),(0,e.createElement)(n.RadioControl,{help:(0,l.__)("Select the plugin you want to import settings from.","gtm-kit"),selected:m,options:d,onChange:t=>u(t)}),(0,e.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,e.createElement)(n.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-6 !gtmkit-px-8 gtmkit-text-base",onClick:()=>{t(m,r.import_data[m]),o(!1)}},(0,e.createElement)("span",{className:"gtmkit-text-lg gtmkit-font-bold"},(0,l.__)("Yes","gtm-kit")),i?(0,e.createElement)(n.Spinner,null):""),(0,e.createElement)(n.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-6 !gtmkit-px-8 gtmkit-text-base",onClick:()=>{o(!1)}},(0,e.createElement)("span",{className:"gtmkit-text-lg gtmkit-font-bold"},(0,l.__)("No","gtm-kit")),i?(0,e.createElement)(n.Spinner,null):"")))):(0,e.createElement)(Mt,null)},wt=()=>{const{useInstallData:t}=(0,a.useContext)(g),{firstInstall:n}=t,{importAvailable:i}=t;return(0,e.createElement)("div",{className:"gtmkit-text-center"},(0,e.createElement)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading"},(0,l.__)("You've successfully installed GTM Kit!","gtm-kit")),(0,e.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey"},(0,l.__)("To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container.","gtm-kit"))),n&&i?(0,e.createElement)(vt,null):(0,e.createElement)(Mt,null))},_t=()=>{const{useSettings:t,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s,useInstallData:o}=(0,a.useContext)(g),c=nt();return(0,e.createElement)("div",{className:"gtmkit-text-center"},(0,e.createElement)("h1",{className:"gtmkit-text-4xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading"},(0,l.__)("Essential Settings","gtm-kit")),(0,e.createElement)("div",{className:"gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey"},(0,l.__)("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,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Page type","gtm-kit"),id:"page-type"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("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:()=>{i("general","datalayer_page_type",!(t&&t.general.datalayer_page_type))}}))),o.woocommerce_integration?(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Track WooCommerce","gtm-kit"),id:"track-wooCommerce"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("Would you like to track e-commerce data from WooCommerce?","gtm-kit"),checked:t&&t.integrations.woocommerce_integration,onChange:()=>{i("integrations","woocommerce_integration",!(t&&t.integrations.woocommerce_integration))}}))):null,o.cf7_integration?(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-lg gtmkit-mx-auto"},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Track Contact Form 7","gtm-kit"),id:"track-cf7"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("Would you like to track form submissions from Contact Form 7?","gtm-kit"),checked:t&&t.integrations.cf7_integration,onChange:()=>{i("integrations","cf7_integration",!(t&&t.integrations.cf7_integration))}}))):null,o.edd_integration?(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap"},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Track Easy Digital Downloads","gtm-kit"),id:"track-edd"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("Would you like to track e-commerce data from Easy Digital Downloads?","gtm-kit"),checked:t&&t.integrations.edd_integration,onChange:()=>{i("integrations","edd_integration",!(t&&t.integrations.edd_integration))}}))):null,(0,e.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,e.createElement)(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:()=>{r(),c("/share-anonymous-data",{replace:!0})},disabled:s},(0,l.__)("Save and continue","gtm-kit"),s?(0,e.createElement)(n.Spinner,null):"")))},Tt=()=>{const{useSettings:t,useUpdateStateSettings:i,useUpdateSettings:r,useIsPending:s,useSiteData:o}=(0,a.useContext)(g),c=nt();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h1",{className:"gtmkit-text-3xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading gtmkit-text-center"},(0,l.__)("Help improve GTM Kit","gtm-kit")),(0,e.createElement)("p",{className:"gtmkit-text-sm gtmkit-mb-4 gtmkit-text-color-grey"},(0,l.__)("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,e.createElement)("p",{className:"gtmkit-text-sm gtmkit-mb-8 gtmkit-text-color-grey"},(0,l.__)("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,e.createElement)("table",{className:"gtmkit-border-2 gtmkit-table-fixed gtmkit-w-full gtmkit-text-sm"},(0,e.createElement)("tbody",null,(0,e.createElement)("tr",{className:""},(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Server type:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.web_server))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"PHP version number:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.php_version))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"WordPress version number:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.wordpress_version))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"WordPress multisite:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.multisite?(0,l.__)("Yes","gtm-kit"):(0,l.__)("No","gtm-kit")))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Current theme:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.current_theme))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Current site language:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("code",{className:"gtmkit-text-sm"},o.locale))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Active plugins:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("em",null,"Plugin names of all active plugins"))),(0,e.createElement)("tr",null,(0,e.createElement)("td",{className:"gtmkit-font-bold gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("strong",null,"Anonymized GTM Kit settings:")),(0,e.createElement)("td",{className:"gtmkit-px-2 gtmkit-py-1"},(0,e.createElement)("em",null,"Which GTM Kit settings are active"))))),(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-max-w-max !gtmkit-px-8 gtmkit-mx-auto "},(0,e.createElement)(n.BaseControl,{label:(0,l.__)("Share anonymous data","gtm-kit"),id:"share-anonymous-data"},(0,e.createElement)(n.ToggleControl,{label:(0,l.__)("I agree to share anonymous data with the development team to help improve GTM Kit. ","gtm-kit"),checked:t&&t.general.analytics_active,onChange:()=>{i("general","analytics_active",!(t&&t.general.analytics_active))}}))),(0,e.createElement)("div",{className:"gtmkit-flex gtmkit-mt-12"},(0,e.createElement)(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:()=>{r(),c("/getting-started",{replace:!0})},disabled:s},(0,l.__)("Save and continue","gtm-kit"),s?(0,e.createElement)(n.Spinner,null):"")))},bt=()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h1",{className:"gtmkit-text-3xl gtmkit-font-medium gtmkit-mb-8 gtmkit-text-color-heading gtmkit-text-center",children:(0,l.__)("You are ready to use GTM Kit!","gtm-kit")}),(0,m.jsx)("p",{className:"gtmkit-text-base gtmkit-mb-4 gtmkit-text-color-grey gtmkit-text-center",children:(0,l.__)("Your Google Tag Manager Container is now sending data to Google Tag Manager.","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-text-base gtmkit-mb-12 gtmkit-text-color-grey gtmkit-text-center",children:[(0,l.__)("Below you will find GTM container import files, with all the necessary tags, trigger, and variables to use Google Analytics 4.","gtm-kit")," "]}),(0,m.jsxs)("div",{className:"gtmkit-border-2 gtmkit-max-w-lg gtmkit-mx-auto gtmkit-mb-8",children:[(0,m.jsx)("h3",{className:"gtmkit-p-3 gtmkit-font-bold gtmkit-text-xl gtmkit-border-b-2",children:(0,l.__)("Getting Started","gtm-kit")}),(0,m.jsxs)("p",{className:"gtmkit-text-base gtmkit-text-color-grey gtmkit-m-4",children:[(0,l.__)("The next step is to configure your Google Tag Manager container. You will find templates for this in the GTM Templates section.","gtm-kit")," ",(0,m.jsx)("a",{className:"gtmkit-text-color-primary gtmkit-whitespace-nowrap",href:window.gtmkitSettings.templatesUrl,rel:"noreferrer",children:(0,l.__)("Go to GTM Templates","gtm-kit")})]}),(0,m.jsxs)("p",{className:"gtmkit-text-base gtmkit-text-color-grey gtmkit-m-4",children:[(0,l.__)("To get the most out of Google Tag Manager with GTM Kit, you should also review the tutorials.","gtm-kit")," ",(0,m.jsx)("a",{className:"gtmkit-text-color-primary gtmkit-whitespace-nowrap",href:window.gtmkitSettings.helpUrl+"#/help",rel:"noreferrer",children:(0,l.__)("Go to Tutorials","gtm-kit")})]})]}),(0,m.jsx)("div",{className:"gtmkit-flex gtmkit-mt-12",children:(0,m.jsx)(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:()=>{window.location.href=window.gtmkitSettings.dashboardUrl},children:(0,l.__)("Go to the dashboard","gtm-kit")})})]}),Lt=[{step:1,path:"/welcome",element:"Welcome",title:(0,l.__)("Welcome","gtm-kit")},{step:2,path:"/essential-settings",element:"EssentialSettings",title:(0,l.__)("Essential Settings","gtm-kit")},{step:3,path:"/share-anonymous-data",element:"ShareAnonymousData",title:(0,l.__)("Help improve GTM Kit","gtm-kit")},{step:4,path:"/getting-started",element:"GettingStarted",title:(0,l.__)("Getting Started","gtm-kit")}],jt=({step:t,currentStep:a,totalSteps:n})=>{if(t===n)return;let i="gtmkit-h-0.5 gtmkit-w-full";return i+=t<a?" gtmkit-bg-color-primary":" gtmkit-bg-color-border",(0,e.createElement)("div",{className:i})},Dt=({step:t,currentStep:a})=>t<a?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"gtmkit-w-5 gtmkit-h-5 gtmkit-text-white"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})):t===a?(0,e.createElement)("span",{className:"gtmkit-h-2.5 gtmkit-w-2.5 gtmkit-rounded-full gtmkit-bg-color-primary"}):void 0,It=({step:t,currentStep:a,totalSteps:n})=>{if(0===t)return;let i="gtmkit-transition-opacity gtmkit-duration-500 gtmkit-absolute gtmkit-inset-0 gtmkit-border-2 gtmkit-flex gtmkit-items-center gtmkit-justify-center gtmkit-rounded-full gtmkit-opacity-100";return i+=t<a?" gtmkit-bg-color-primary":" gtmkit-bg-white",i+=t>a?" gtmkit-border-color-border":" gtmkit-border-color-primary",(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"gtmkit-relative gtmkit-shrink-0 gtmkit-z-10 gtmkit-w-8 gtmkit-h-8 gtmkit-rounded-full"},(0,e.createElement)("span",{className:i},(0,e.createElement)(Dt,{step:t,currentStep:a,totalSteps:n}))),(0,e.createElement)(jt,{step:t,currentStep:a,totalSteps:n}))},Ct=()=>{const t=Lt.length-1+Lt[0].step;let a=((t,e)=>{const a=Object.keys(e);return t.filter((function(t){for(let n=0;n<a.length;n++)if(!t.hasOwnProperty(a[n])||t[a[n]]!==e[a[n]])return!1;return!0}))})(Lt,{path:et().pathname});return a=a.length?a[0].step:0,0===a?(0,e.createElement)("div",{className:"gtmkit-my-16"}):(0,e.createElement)("div",{className:"gtmkit-mt-6 gtmkit-inset-0 gtmkit-mx-auto gtmkit-my-6 gtmkit-flex gtmkit-items-center gtmkit-max-w-xl","aria-hidden":"true"},Lt.map((function(n){return(0,e.createElement)(It,{key:n.step,step:n.step,currentStep:a,totalSteps:t})})))},Ot=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("header",{className:"gtmkit-text-center gtmkit-px-3"},(0,e.createElement)("h1",{className:"gtmkit-mt-3 md:gtmkit-mt-8 gtmkit-mb-4 gtmkit-w-[225px] gtmkit-inline-block"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNDY3LjEgMTU4Ni40IiBoZWlnaHQ9IjU0IiB2aWV3Qm94PSIwIDAgMTYwIDU0IiB3aWR0aD0iMTYwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IGZpbGw9IiM4ODgiIGhlaWdodD0iNTQiIHJ4PSI0LjI2NSIgd2lkdGg9IjE2MCIvPjxwYXRoIGQ9Im04OC42NTkgNy4wMDJoLTQ5LjI2NmMtMi45MTUgMC01LjM3OC0uMTg0LTkuMjMgMi41OTZsLTE4Ljc0MyAxMi43NTJjLTQuNTQ5IDMuMjkyLTQuNTcxIDYuMDAxIDAgOS4zMDJsMTguNzQzIDEyLjc1MWMzLjY1MiAyLjY0NiA2LjI5OSAyLjU5NyA5LjIzIDIuNTk3aDE1LjY4NiAzMy41OGMyLjkzMS0uMDU3IDUuMzk0LTEuNzg0IDUuMzQtMy45MjN2LTMyLjIxYy0uMDEyLTIuMTM0LTIuNDA5LTMuODY1LTUuMzQtMy44NjV6IiBmaWxsPSIjMzk2OWJiIiB0cmFuc2Zvcm09Im1hdHJpeCgtMSAwIDAgLTEgMTAxLjk5OTg2NyA1My45OTk1NDcpIi8+PGcgZmlsbD0iI2ZmZiIgdHJhbnNmb3JtPSJtYXRyaXgoMS40NjUyMDIgMCAwIDEuNDY1MjAyIC00LjU4MjQzNiAtNy41NTMxMjYpIj48cGF0aCBkPSJtMTguMzE2IDIzLjA4Nmg0LjYzMnY2LjA1MmMtLjc1LjI0NS0xLjQ1OS40MTUtMi4xMjEuNTE0LS42NjMuMDk4LTEuMzQxLjE0OC0yLjAzMy4xNDgtMS43NjQgMC0zLjEwNi0uNTE3LTQuMDM1LTEuNTU0LS45MjktMS4wMzQtMS4zOTUtMi41MTktMS4zOTUtNC40NTcgMC0xLjg4Ni41MzgtMy4zNTYgMS42MTctNC40MSAxLjA3OC0xLjA1NCAyLjU3My0xLjU3OSA0LjQ4MS0xLjU3OSAxLjIgMCAyLjM1Ny4yMzkgMy40NjkuNzE4bC0uODIzIDEuOTc5Yy0uODUtLjQyNS0xLjczNy0uNjM3LTIuNjU3LS42MzctMS4wNzEgMC0xLjkzMi4zNTgtMi41NzIgMS4wNzctLjY0NS43MTgtLjk2OCAxLjY4NS0uOTY4IDIuODk5IDAgMS4yNjcuMjYgMi4yMzMuNzggMi45MDQuNTE2LjY2NyAxLjI3MS45OTkgMi4yNjIuOTk5LjUxNyAwIDEuMDQxLS4wNTIgMS41NzItLjE1OHYtMi40MzVoLTIuMjA5em0xMS45MTIgNi41NTVoLTIuNDc0di05LjYxNGgtMy4xNzN2LTIuMDZoOC44MTZ2Mi4wNmgtMy4xNjl6bTkuOTA4IDAtMi44MTEtOS4xNThoLS4wNzJjLjEwMyAxLjg2My4xNTQgMy4xMDUuMTU0IDMuNzI4djUuNDNoLTIuMjEzdi0xMS42NzRoMy4zNjhsMi43NjQgOC45MjdoLjA0OGwyLjkzNC04LjkyN2gzLjM2OXYxMS42NzRoLTIuMzA4di01LjUyNWMwLS4yNjEgMC0uNTYxLjAwOS0uOTAzLjAwOS0uMzQxLjA0OC0xLjI0Ni4xMTItMi43MTZoLS4wNzRsLTMuMDExIDkuMTQ0eiIvPjxwYXRoIGQ9Im04OC44ODMgMzEuODk4aC0zLjgxMWwtNC4xNDctNi42Ny0xLjQxNyAxLjAxOHY1LjY1MmgtMy4zNTd2LTE1LjgzaDMuMzU3djcuMjQybDEuMzE4LTEuODYxIDQuMjkzLTUuMzgxaDMuNzI0bC01LjUyMyA3LjAwNnptMS41ODktMTUuMjMzYzAtMS4wNzUuNi0xLjYxNCAxLjgtMS42MTQgMS4xOTkgMCAxLjc5OC41MzkgMS43OTggMS42MTQgMCAuNTEyLS4xNDguOTEtLjQ1IDEuMTk2LS4yOTcuMjg0LS43NDkuNDI5LTEuMzQ4LjQyOS0xLjIgMC0xLjgtLjU0My0xLjgtMS42MjV6bTMuNDQ5IDE1LjIzM2gtMy4zMDJ2LTEyLjEwNGgzLjMwMnptOC41NjMtMi40MTNjLjU3OCAwIDEuMjcxLS4xMjggMi4wNzctLjM4djIuNDU2Yy0uODIuMzctMS44MzEuNTUyLTMuMDMxLjU1Mi0xLjMyNCAwLTIuMjgtLjMzMy0yLjg4NS0xLjAwMS0uNjAyLS42NjctLjkwMi0xLjY2OC0uOTAyLTMuMDAzdi01LjgzNWgtMS41ODV2LTEuMzk5bDEuODIzLTEuMTAzLjk0OS0yLjU1N2gyLjExNXYyLjU3OWgzLjM4OHYyLjQ4aC0zLjM4OHY1LjgzNWMwIC40NjcuMTI5LjgxNS4zOTMgMS4wNDEuMjY0LjIyMi42MTQuMzM1IDEuMDQ2LjMzNXoiLz48L2c+PC9zdmc+",alt:(0,l.__)("GTM Kit","gtm-kit"),className:"gtmkit-w-full"}))),(0,e.createElement)(Ct,null)),Ut=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("footer",{className:"gtm-kit-settings-footer gtmkit-my-8 gtmkit-text-color-grey"},(0,e.createElement)("p",{className:"gtmkit-mx-auto gtmkit-max-w-max"},(0,e.createElement)("a",{className:"gtmkit-underline",href:window.gtmkitSettings.dashboardUrl},(0,l.__)("Go to the dashboard.","gtm-kit"))))),At=()=>{const{useSettings:t}=(0,a.useContext)(g);return Object.keys(t).length?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ot,null),(0,e.createElement)("main",{className:"gtmkit-max-w-3xl gtmkit-bg-white gtmkit-border-1 gtmkit-border-color-border gtmkit-rounded-md gtmkit-mx-auto gtmkit-py-12 gtmkit-px-16 gtmkit-text-base"},(0,e.createElement)(kt,null,(0,e.createElement)(pt,{exact:!0,path:"/welcome",element:(0,e.createElement)(wt,null)}),(0,e.createElement)(pt,{exact:!0,path:"/essential-settings",element:(0,e.createElement)(_t,null)}),(0,e.createElement)(pt,{exact:!0,path:"/share-anonymous-data",element:(0,e.createElement)(Tt,null)}),(0,e.createElement)(pt,{exact:!0,path:"/getting-started",element:(0,e.createElement)(bt,null)}),(0,e.createElement)(pt,{path:"/",element:(0,e.createElement)(dt,{replace:!0,to:"/welcome"})}))),(0,e.createElement)(Ut,null)):(0,e.createElement)(n.Spinner,{className:"gtm-kit-settings-page-loader"})},zt=()=>(0,e.createElement)(Et,{basename:"/"},(0,e.createElement)(u,null,(0,e.createElement)(At,null)));document.addEventListener("DOMContentLoaded",(()=>{void 0!==document.getElementById(window.gtmkitSettings.rootId)&&null!==document.getElementById(window.gtmkitSettings.rootId)&&(0,a.render)((0,e.createElement)(zt,null),document.getElementById(window.gtmkitSettings.rootId))}))})();
  • gtm-kit/trunk/assets/integration/woocommerce.js

    r3055017 r3149785  
    1 function gtmkitLoad(){const a=window.gtmkit_settings.datalayer_name;let n;const d={"wp-block-handpicked-products":1,"wp-block-product-best-sellers":1,"wp-block-product-category":1,"wp-block-product-new":1,"wp-block-product-on-sale":1,"wp-block-products-by-attribute":1,"wp-block-product-tag":1,"wp-block-product-top-rated":1};document.querySelectorAll(".wc-block-grid .wc-block-grid__product").forEach(function(t){var e=t.closest(".wc-block-grid"),i=t.querySelector(".gtmkit_product_data");if(e&&i){var r,c=e.classList;if(c)for(const o in d)c.contains(o)&&((r=JSON.parse(i.getAttribute("data-gtmkit_product_data"))).item_list_name=window.gtmkit_settings.wc.text[o],r.index=d[o],i.setAttribute("data-gtmkit_product_data",JSON.stringify(r)),d[o]++)}});var t=document.querySelectorAll(".gtmkit_product_data");if(t.length){const i=[];let e;t.forEach(function(t){e=JSON.parse(t.getAttribute("data-gtmkit_product_data")),i.push(e)}),window[a].push({ecommerce:null}),window[a].push({event:"view_item_list",ecommerce:{items:i}})}document.addEventListener("click",function(t){t=t.target;let e;if(!t)return!0;if(t.closest(".add_to_cart_button.ajax_add_to_cart:not(.single_add_to_cart_button)"))e="add_to_cart";else{if(!t.closest(".products")&&!t.closest(".wc-block-grid__products")||!t.closest(window.gtmkit_settings.wc.css_selectors.product_list_wishlist))return!0;e="add_to_wishlist"}t=t.closest(".product,.wc-block-grid__product"),t=t&&t.querySelector(".gtmkit_product_data");if(!t)return!0;t=JSON.parse(t.getAttribute("data-gtmkit_product_data"));t.quantity=1,window[a].push({ecommerce:null}),window[a].push({event:e,ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price,items:[t]}})}),document.addEventListener("click",function(r){r=r.target;if(!r)return!0;let c,i=r.closest("form.cart");if(!i){let t=r.parentNode;for(;!i&&t;)i=t.querySelector("form.cart"),t=t.parentNode}if(!i)return!0;if(r.closest(".single_add_to_cart_button:not(.disabled,.input-needed)"))c="add_to_cart";else{if(!r.closest(window.gtmkit_settings.wc.css_selectors.single_product_wishlist))return!0;c="add_to_wishlist"}var r=i.querySelectorAll("[name=variation_id]"),t=i.classList&&i.classList.contains("grouped_form")&&!i.classList.contains("bundle_form");if(r.length){let t=1,e;n&&(r=i.querySelector("[name=quantity]"),n.quantity=r&&r.value||1,t=n.quantity,e=n.price),(n&&"add_to_cart"===c||"add_to_wishlist"===c)&&(window[a].push({ecommerce:null}),window[a].push({event:c,ecommerce:{currency:window.gtmkit_data.wc.currency,value:e*t,items:[n]}}))}else if(t){r=document.querySelectorAll(".grouped_form .gtmkit_product_data");const o=[];let i=0;if(r.forEach(function(t){let e=document.querySelectorAll("input[name=quantity\\["+t.getAttribute("data-gtmkit_product_id")+"\\]]");if(e=Number(e[0].value),0===(e=isNaN(e)?0:e)&&"add_to_cart"===c)return!0;0===e&&"add_to_wishlist"===c&&(e=1);t=JSON.parse(t.getAttribute("data-gtmkit_product_data"));t.quantity=e,o.push(t),i+=t.price*t.quantity}),0===o.length)return!0;window[a].push({ecommerce:null}),window[a].push({event:c,ecommerce:{currency:window.gtmkit_data.wc.currency,value:i,items:o}})}else{t=JSON.parse(i.querySelector("[name=gtmkit_product_data]")&&i.querySelector("[name=gtmkit_product_data]").value);t.quantity=i.querySelector("[name=quantity]")&&i.querySelector("[name=quantity]").value,window[a].push({ecommerce:null}),window[a].push({event:c,ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price*t.quantity,items:[t]}})}}),document.addEventListener("click",function(t){var t=t.target;return!t||!t.closest(".mini_cart_item a.remove,.product-remove a.remove")||!(t=JSON.parse(t.getAttribute("data-gtmkit_product_data")))||(window[a].push({ecommerce:null}),void window[a].push({event:"remove_from_cart",ecommerce:{items:[t]}}))}),document.addEventListener("click",function(t){t=t.target;if(!t.closest(window.gtmkit_settings.wc.css_selectors.product_list_select_item))return!0;var t=t.closest(".product,.wc-block-grid__product");let e;return!t||!(e=t.querySelector(".gtmkit_product_data"))||void 0===e.getAttribute("data-gtmkit_product_data")||!(t=JSON.parse(e.getAttribute("data-gtmkit_product_data")))||(window[a].push({ecommerce:null}),void window[a].push({event:"select_item",ecommerce:{items:[t]}}))}),jQuery(document).on("found_variation",function(t,e){if(void 0!==e){t=t.target;if(t.querySelector("[name=gtmkit_product_data]")){var t=JSON.parse(t.querySelector("[name=gtmkit_product_data]")&&t.querySelector("[name=gtmkit_product_data]").value),i=(t.id=t.item_id=window.gtmkit_settings.wc.pid_prefix+e.variation_id,window.gtmkit_settings.wc.use_sku&&e.sku&&""!==e.sku&&(t.id=t.item_id=window.gtmkit_settings.wc.pid_prefix+e.sku),t.price=e.display_price,[]);for(const r in e.attributes)i.push(e.attributes[r]);t.item_variant=i.filter(t=>t).join("|"),n=t,0!==window.gtmkit_settings.wc.view_item.config&&(window[a].push({ecommerce:null}),window[a].push({event:"view_item",ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price,items:[t]}})),!0===window.gtmkit_settings.console_log&&(console.log("GTM Kit: selectedProductVariationData"),console.log(n))}}})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",gtmkitLoad):gtmkitLoad();
     1function gtmkitLoad(){const n=window.gtmkit_settings.datalayer_name;let a;const d={"wp-block-handpicked-products":1,"wp-block-product-best-sellers":1,"wp-block-product-category":1,"wp-block-product-new":1,"wp-block-product-on-sale":1,"wp-block-products-by-attribute":1,"wp-block-product-tag":1,"wp-block-product-top-rated":1};document.querySelectorAll(".wc-block-grid .wc-block-grid__product").forEach(function(t){var e=t.closest(".wc-block-grid"),i=t.querySelector(".gtmkit_product_data");if(e&&i){var c,r=e.classList;if(r)for(const o in d)r.contains(o)&&((c=JSON.parse(i.getAttribute("data-gtmkit_product_data"))).item_list_name=window.gtmkit_settings.wc.text[o],c.index=d[o],i.setAttribute("data-gtmkit_product_data",JSON.stringify(c)),d[o]++)}});var t=document.querySelectorAll(".gtmkit_product_data");if(t.length){const i=[];let e;t.forEach(function(t){e=JSON.parse(t.getAttribute("data-gtmkit_product_data")),i.push(e)}),window[n].push({ecommerce:null}),window[n].push({event:"view_item_list",ecommerce:{items:i}})}document.addEventListener("click",function(t){t=t.target;let e;if(!t)return!0;if(t.closest(".add_to_cart_button.ajax_add_to_cart:not(.single_add_to_cart_button)"))e="add_to_cart";else{if(!window.gtmkit_settings.wc.wishlist||!t.closest(".products")&&!t.closest(".wc-block-grid__products")||!t.closest(window.gtmkit_settings.wc.css_selectors.product_list_wishlist))return!0;e="add_to_wishlist"}t=t.closest(".product,.wc-block-grid__product"),t=t&&t.querySelector(".gtmkit_product_data");if(!t)return!0;t=JSON.parse(t.getAttribute("data-gtmkit_product_data"));t.quantity=1,window[n].push({ecommerce:null}),window[n].push({event:e,ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price,items:[t]}})}),document.addEventListener("click",function(c){c=c.target;if(!c)return!0;let r,i=c.closest("form.cart");if(!i){let t=c.parentNode;for(;!i&&t;)i=t.querySelector("form.cart"),t=t.parentNode}if(!i)return!0;if(c.closest(".single_add_to_cart_button:not(.disabled,.input-needed)"))r="add_to_cart";else{if(!window.gtmkit_settings.wc.wishlist||!c.closest(window.gtmkit_settings.wc.css_selectors.single_product_wishlist))return!0;r="add_to_wishlist"}var c=i.querySelectorAll("[name=variation_id]"),t=i.classList&&i.classList.contains("grouped_form")&&!i.classList.contains("bundle_form");if(c.length){let t=1,e;a&&(c=i.querySelector("[name=quantity]"),a.quantity=c&&c.value||1,t=a.quantity,e=a.price),(a&&"add_to_cart"===r||"add_to_wishlist"===r)&&(window[n].push({ecommerce:null}),window[n].push({event:r,ecommerce:{currency:window.gtmkit_data.wc.currency,value:e*t,items:[a]}}))}else if(t){c=document.querySelectorAll(".grouped_form .gtmkit_product_data");const o=[];let i=0;if(c.forEach(function(t){let e=document.querySelectorAll("input[name=quantity\\["+t.getAttribute("data-gtmkit_product_id")+"\\]]");if(e=Number(e[0].value),0===(e=isNaN(e)?0:e)&&"add_to_cart"===r)return!0;0===e&&"add_to_wishlist"===r&&(e=1);t=JSON.parse(t.getAttribute("data-gtmkit_product_data"));t.quantity=e,o.push(t),i+=t.price*t.quantity}),0===o.length)return!0;window[n].push({ecommerce:null}),window[n].push({event:r,ecommerce:{currency:window.gtmkit_data.wc.currency,value:i,items:o}})}else{t=JSON.parse(i.querySelector("[name=gtmkit_product_data]")&&i.querySelector("[name=gtmkit_product_data]").value);t.quantity=i.querySelector("[name=quantity]")&&i.querySelector("[name=quantity]").value,window[n].push({ecommerce:null}),window[n].push({event:r,ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price*t.quantity,items:[t]}})}}),document.addEventListener("click",function(t){var t=t.target;return!t||!t.closest(".mini_cart_item a.remove,.product-remove a.remove")||!(t=JSON.parse(t.getAttribute("data-gtmkit_product_data")))||(window[n].push({ecommerce:null}),void window[n].push({event:"remove_from_cart",ecommerce:{items:[t]}}))}),document.addEventListener("click",function(t){t=t.target;if(!t.closest(window.gtmkit_settings.wc.css_selectors.product_list_select_item))return!0;var t=t.closest(".product,.wc-block-grid__product");let e;return!t||!(e=t.querySelector(".gtmkit_product_data"))||void 0===e.getAttribute("data-gtmkit_product_data")||!(t=JSON.parse(e.getAttribute("data-gtmkit_product_data")))||(window[n].push({ecommerce:null}),void window[n].push({event:"select_item",ecommerce:{items:[t]}}))}),jQuery(document).on("found_variation",function(t,e){if(void 0!==e){t=t.target;if(t.querySelector("[name=gtmkit_product_data]")){var t=JSON.parse(t.querySelector("[name=gtmkit_product_data]")&&t.querySelector("[name=gtmkit_product_data]").value),i=(t.id=t.item_id=window.gtmkit_settings.wc.pid_prefix+e.variation_id,window.gtmkit_settings.wc.use_sku&&e.sku&&""!==e.sku&&(t.id=t.item_id=window.gtmkit_settings.wc.pid_prefix+e.sku),t.price=e.display_price,[]);for(const c in e.attributes)i.push(e.attributes[c]);t.item_variant=i.filter(t=>t).join("|"),a=t,0!==window.gtmkit_settings.wc.view_item.config&&(window[n].push({ecommerce:null}),window[n].push({event:"view_item",ecommerce:{currency:window.gtmkit_data.wc.currency,value:t.price,items:[t]}})),!0===window.gtmkit_settings.console_log&&(console.log("GTM Kit: selectedProductVariationData"),console.log(a))}}})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",gtmkitLoad):gtmkitLoad();
  • gtm-kit/trunk/gtm-kit.php

    r3139454 r3149785  
    44 *
    55 * Plugin Name: GTM Kit
    6  * Version:     1.23.3
     6 * Version:     2.0.0
    77 * Plugin URI:  https://gtmkit.com/
    88 * Description: Google Tag Manager implementation focusing on flexibility and pagespeed.
     
    1212 * Domain Path: /languages/
    1313 * License:     GPLv3
    14  * Requires at least: 6.2
    15  * Requires PHP: 7.2
     14 * Requires at least: 6.3
     15 * Requires PHP: 7.4
    1616 *
    17  * WC requires at least: 8.2
    18  * WC tested up to: 9.2
     17 * WC requires at least: 8.3
     18 * WC tested up to: 9.3
    1919 *
    2020 * @package GTM Kit
     
    2828}
    2929
    30 const GTMKIT_VERSION = '1.23.3';
     30const GTMKIT_VERSION = '2.0.0';
    3131
    3232if ( ! defined( 'GTMKIT_FILE' ) ) {
  • gtm-kit/trunk/inc/main.php

    r3094947 r3149785  
    1515use TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage;
    1616use TLA_Media\GTM_Kit\Admin\MetaBox;
     17use TLA_Media\GTM_Kit\Admin\NotificationsHandler;
     18use TLA_Media\GTM_Kit\Admin\PluginAvailability;
    1719use TLA_Media\GTM_Kit\Admin\SetupWizard;
     20use TLA_Media\GTM_Kit\Admin\PluginSuggestions;
    1821use TLA_Media\GTM_Kit\Admin\TemplatesOptionsPage;
     22use TLA_Media\GTM_Kit\Common\Conditionals\ContactForm7Conditional;
     23use TLA_Media\GTM_Kit\Common\Conditionals\EasyDigitalDownloadsConditional;
     24use TLA_Media\GTM_Kit\Common\Conditionals\PremiumConditional;
     25use TLA_Media\GTM_Kit\Common\Conditionals\WooCommerceConditional;
    1926use TLA_Media\GTM_Kit\Common\RestAPIServer;
    2027use TLA_Media\GTM_Kit\Common\Util;
     
    2835use TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads;
    2936use TLA_Media\GTM_Kit\Integration\WooCommerce;
     37use TLA_Media\GTM_Kit\Admin\UpgradesOptionsPage;
    3038
    3139
     
    6169
    6270    wp_clear_scheduled_hook( 'gtmkit_send_anonymous_data' );
     71
     72    do_action( 'gtmkit_deactivate' );
    6373}
    6474
     
    6878 * Add plugin action links on Plugins page.
    6979 *
    70  * @param array $links Existing plugin action links.
    71  *
    72  * @return array
     80 * @param array<string, string> $links Existing plugin action links.
     81 *
     82 * @return array<string, string>
    7383 */
    7484function gtmkit_add_plugin_action_link( array $links ): array {
     
    8898 * Remove deactivation link.
    8999 *
    90  * @param array $links Existing plugin action links.
    91  *
    92  * @return array
     100 * @param array<string, string> $links Existing plugin action links.
     101 *
     102 * @return array<string, string>
    93103 */
    94104function gtmkit_remove_deactivation_link( array $links ): array {
     
    127137        UserData::register( $options );
    128138
    129         if ( $options->get( 'integrations', 'woocommerce_integration' ) && function_exists( 'WC' ) ) {
     139        if ( $options->get( 'integrations', 'woocommerce_integration' ) && ( new WooCommerceConditional() )->is_met() ) {
    130140            WooCommerce::register( $options, $util );
    131141        }
    132         if ( $options->get( 'integrations', 'cf7_integration' ) && class_exists( 'WPCF7' ) ) {
     142        if ( $options->get( 'integrations', 'cf7_integration' ) && ( new ContactForm7Conditional() )->is_met() ) {
    133143            ContactForm7::register( $options, $util );
    134144        }
    135         if ( $options->get( 'integrations', 'edd_integration' ) && class_exists( 'EDD_Requirements_Check' ) ) {
     145        if ( $options->get( 'integrations', 'edd_integration' ) && ( new EasyDigitalDownloadsConditional() )->is_met() ) {
    136146            EasyDigitalDownloads::register( $options, $util );
    137147        }
     
    161171    }
    162172
    163     $options         = new Options();
    164     $rest_api_server = new RestAPIServer();
    165     $util            = new Util( $options, $rest_api_server );
    166 
     173    $options             = new Options();
     174    $rest_api_server     = new RestAPIServer();
     175    $util                = new Util( $options, $rest_api_server );
     176    $plugin_availability = new PluginAvailability();
     177
     178    $notifications_handler = NotificationsHandler::get();
     179
     180    PluginSuggestions::register( $notifications_handler, $plugin_availability );
    167181    Analytics::register( $options, $util );
    168182    MetaBox::register( $options );
     
    170184    GeneralOptionsPage::register( $options, $util );
    171185    IntegrationsOptionsPage::register( $options, $util );
    172     if ( ! $util->is_premium() ) {
     186    if ( ! ( new PremiumConditional() )->is_met() ) {
    173187        TemplatesOptionsPage::register( $options, $util );
    174188    } else {
    175189        add_filter( 'plugin_action_links_' . plugin_basename( GTMKIT_FILE ), 'TLA_Media\GTM_Kit\gtmkit_remove_deactivation_link', 11, 1 );
    176190    }
     191    UpgradesOptionsPage::register( $options, $util );
    177192    HelpOptionsPage::register( $options, $util );
    178193
  • gtm-kit/trunk/languages/gtm-kit.pot

    r3139454 r3149785  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: GTM Kit 1.23.3\n"
     5"Project-Id-Version: GTM Kit 2.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gtm-kit\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-08-21T11:23:44+00:00\n"
     12"POT-Creation-Date: 2024-09-03T15:14:34+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.9.0\n"
     
    3131msgstr ""
    3232
    33 #: inc/main.php:80
     33#: inc/main.php:89
    3434msgid "Go to GTM Kit Settings page"
    3535msgstr ""
    3636
    37 #: inc/main.php:81
    38 #: assets/admin/settings.js:13
     37#: inc/main.php:90
     38#: assets/admin/settings.js:15
    3939msgid "Settings"
    4040msgstr ""
    4141
    4242#. translators: %s is GTM Kit Add-On.
    43 #: inc/main.php:99
     43#: inc/main.php:108
    4444msgid "Required by %s"
    4545msgstr ""
     
    6161msgstr ""
    6262
    63 #: src/Admin/AdminAPI.php:88
     63#: src/Admin/AdminAPI.php:96
    6464#: src/Common/RestAPIServer.php:33
    6565msgid "Only authenticated users can access endpoint."
    6666msgstr ""
    6767
    68 #: src/Admin/AdminAPI.php:134
    69 #: src/Admin/AdminAPI.php:139
     68#: src/Admin/AdminAPI.php:142
     69#: src/Admin/AdminAPI.php:147
    7070msgid "The support ticket was not found. Please check that you have entered the correct ticket."
    7171msgstr ""
    7272
    73 #: src/Admin/AdminAPI.php:136
     73#: src/Admin/AdminAPI.php:144
    7474msgid "Thank you! We have received the data."
    7575msgstr ""
    7676
    77 #: src/Admin/GeneralOptionsPage.php:67
     77#: src/Admin/GeneralOptionsPage.php:83
    7878#: assets/admin/settings.js:1
    7979msgid "General"
    8080msgstr ""
    8181
    82 #: src/Admin/GeneralOptionsPage.php:76
     82#: src/Admin/GeneralOptionsPage.php:92
    8383msgid "General Settings"
    8484msgstr ""
     
    8787#: src/Admin/HelpOptionsPage.php:53
    8888#: assets/admin/settings.js:13
     89#: assets/admin/settings.js:15
    8990msgid "Help"
    9091msgstr ""
     
    102103msgstr ""
    103104
    104 #: src/Admin/IntegrationsOptionsPage.php:44
    105 #: src/Admin/IntegrationsOptionsPage.php:53
    106 #: assets/admin/settings.js:1
    107 #: assets/admin/settings.js:13
     105#: src/Admin/IntegrationsOptionsPage.php:46
     106#: src/Admin/IntegrationsOptionsPage.php:55
     107#: assets/admin/settings.js:1
     108#: assets/admin/settings.js:15
    108109msgid "Integrations"
    109110msgstr ""
     
    122123#: src/Admin/MetaBox.php:95
    123124msgid "%1$sNote:%2$s This will only be applied if page type has been activated in the global settings of GTM Kit."
     125msgstr ""
     126
     127#: src/Admin/PluginSuggestions.php:121
     128msgid "It appears that you are not currently using a supported SEO plugin. By installing either WordPress SEO or Rank Math, you can assign a primary category to each product. This primary category will then be used in the data layer if the product is associated with multiple categories."
     129msgstr ""
     130
     131#: src/Admin/PluginSuggestions.php:126
     132msgid "Plugin suggestion:"
     133msgstr ""
     134
     135#. translators: %s is the name of the plugin.
     136#: src/Admin/PluginSuggestions.php:144
     137msgid "It seems that you have installed the Google Tag Manager plugin called %1$s. Running two different GTM plugins simultaneously can lead to unexpected results, significantly impact data accuracy, and slow down page speed. Please consider deactivating %2$s unless you have carefully considered and addressed the potential challenges."
     138msgstr ""
     139
     140#: src/Admin/PluginSuggestions.php:152
     141msgid "Possible Conflict:"
    124142msgstr ""
    125143
     
    236254msgstr ""
    237255
    238 #: src/Integration/WooCommerce.php:1129
     256#: src/Integration/WooCommerce.php:1128
    239257msgid "GTM Kit data."
    240258msgstr ""
     
    307325
    308326#: assets/admin/settings.js:1
    309 msgid "Server-side GTM"
     327#: assets/admin/settings.js:15
     328msgid "Notifications"
     329msgstr ""
     330
     331#: assets/admin/settings.js:1
     332msgid "There are some problems that require your attention."
     333msgstr ""
     334
     335#: assets/admin/settings.js:1
     336msgid "There are some notifications that may require your attention."
     337msgstr ""
     338
     339#: assets/admin/settings.js:1
     340#: assets/admin/settings.js:15
     341msgid "No notifications at the moment."
     342msgstr ""
     343
     344#: assets/admin/settings.js:1
     345msgid "See all notifications"
     346msgstr ""
     347
     348#: assets/admin/settings.js:1
     349#: assets/admin/wizard.js:1
     350msgid "Help improve GTM Kit"
     351msgstr ""
     352
     353#: assets/admin/settings.js:1
     354msgid "Share anonymous data with the development team to help improve GTM Kit."
     355msgstr ""
     356
     357#: assets/admin/settings.js:1
     358#: assets/admin/wizard.js:1
     359msgid "Share anonymous data"
     360msgstr ""
     361
     362#: assets/admin/settings.js:1
     363#: assets/admin/settings.js:13
     364msgid "Tutorials"
     365msgstr ""
     366
     367#: assets/admin/settings.js:1
     368msgid "Google Tag Manager container"
     369msgstr ""
     370
     371#: assets/admin/settings.js:1
     372msgid "General Container Settings"
     373msgstr ""
     374
     375#: assets/admin/settings.js:1
     376#: assets/admin/wizard.js:1
     377msgid "To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container."
     378msgstr ""
     379
     380#: assets/admin/settings.js:1
     381msgid "GTM Container ID:"
     382msgstr ""
     383
     384#: assets/admin/settings.js:1
     385msgid "Enter GTM Container ID"
     386msgstr ""
     387
     388#: assets/admin/settings.js:1
     389msgid "Inject Container Code"
     390msgstr ""
     391
     392#: assets/admin/settings.js:1
     393msgid "Setting this to Off will remove the Google Tag Manager container code but the data layer will remain."
     394msgstr ""
     395
     396#: assets/admin/settings.js:1
     397msgid "Just the container"
     398msgstr ""
     399
     400#: assets/admin/settings.js:1
     401msgid "Setting this to On will reduce the functionality to just the GTM container code. No additional data will be pushed to the datalayer regardless of any other settings."
     402msgstr ""
     403
     404#: assets/admin/settings.js:1
     405msgid "dataLayer variable name:"
     406msgstr ""
     407
     408#: assets/admin/settings.js:1
     409msgid "The default name of the data layer object is dataLayer. If you prefer to use a different name for your data layer, you may do so."
     410msgstr ""
     411
     412#: assets/admin/settings.js:1
     413msgid "Server-side Tagging (sGTM)"
     414msgstr ""
     415
     416#: assets/admin/settings.js:1
     417msgid "sGTM Container Domain:"
     418msgstr ""
     419
     420#: assets/admin/settings.js:1
     421msgid "Enter domain"
     422msgstr ""
     423
     424#: assets/admin/settings.js:1
     425msgid "Enter your custom domain name if you are using a custom server side GTM container for tracking."
     426msgstr ""
     427
     428#: assets/admin/settings.js:1
     429msgid "sGTM container identifier:"
     430msgstr ""
     431
     432#: assets/admin/settings.js:1
     433msgid "Enter loader name"
     434msgstr ""
     435
     436#: assets/admin/settings.js:1
     437msgid "Only use if you are using a custom loader."
     438msgstr ""
     439
     440#: assets/admin/settings.js:1
     441msgid "Cookie Keeper (for Stape users only)"
     442msgstr ""
     443
     444#: assets/admin/settings.js:1
     445msgid "Prolong cookie lifetime in Safari and other browsers with ITP. This only works if you use Stape sGTM hosting and have set up the Cookie Keeper power up."
     446msgstr ""
     447
     448#: assets/admin/settings.js:1
     449msgid "Google Tag Manager Server-side Tagging"
    310450msgstr ""
    311451
     
    315455
    316456#: assets/admin/settings.js:1
    317 #: assets/admin/wizard.js:1
    318 msgid "Help improve GTM Kit"
    319 msgstr ""
    320 
    321 #: assets/admin/settings.js:1
    322 msgid "Share anonymous data with the development team to help improve GTM Kit."
    323 msgstr ""
    324 
    325 #: assets/admin/settings.js:1
    326 #: assets/admin/wizard.js:1
    327 msgid "Share anonymous data"
    328 msgstr ""
    329 
    330 #: assets/admin/settings.js:1
    331 #: assets/admin/settings.js:13
    332 msgid "Tutorials"
    333 msgstr ""
    334 
    335 #: assets/admin/settings.js:1
    336 msgid "Google Tag Manager container"
    337 msgstr ""
    338 
    339 #: assets/admin/settings.js:1
    340 msgid "General Container Settings"
    341 msgstr ""
    342 
    343 #: assets/admin/settings.js:1
    344 #: assets/admin/wizard.js:1
    345 msgid "To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container."
    346 msgstr ""
    347 
    348 #: assets/admin/settings.js:1
    349 msgid "GTM Container ID:"
    350 msgstr ""
    351 
    352 #: assets/admin/settings.js:1
    353 msgid "Enter GTM Container ID"
    354 msgstr ""
    355 
    356 #: assets/admin/settings.js:1
    357 msgid "Inject Container Code"
    358 msgstr ""
    359 
    360 #: assets/admin/settings.js:1
    361 msgid "Setting this to Off will remove the Google Tag Manager container code but the data layer will remain."
    362 msgstr ""
    363 
    364 #: assets/admin/settings.js:1
    365 msgid "Just the container"
    366 msgstr ""
    367 
    368 #: assets/admin/settings.js:1
    369 msgid "Setting this to On will reduce the functionality to just the GTM container code. No additional data will be pushed to the datalayer regardless of any other settings."
    370 msgstr ""
    371 
    372 #: assets/admin/settings.js:1
    373 msgid "dataLayer variable name:"
    374 msgstr ""
    375 
    376 #: assets/admin/settings.js:1
    377 msgid "The default name of the data layer object is dataLayer. If you prefer to use a different name for your data layer, you may do so."
    378 msgstr ""
    379 
    380 #: assets/admin/settings.js:1
    381 msgid "Server-side Tagging (sGTM)"
    382 msgstr ""
    383 
    384 #: assets/admin/settings.js:1
    385 msgid "sGTM Container Domain:"
    386 msgstr ""
    387 
    388 #: assets/admin/settings.js:1
    389 msgid "Enter domain"
    390 msgstr ""
    391 
    392 #: assets/admin/settings.js:1
    393 msgid "Enter your custom domain name if you are using a custom server side GTM container for tracking."
    394 msgstr ""
    395 
    396 #: assets/admin/settings.js:1
    397 msgid "sGTM container identifier:"
    398 msgstr ""
    399 
    400 #: assets/admin/settings.js:1
    401 msgid "Enter loader name"
    402 msgstr ""
    403 
    404 #: assets/admin/settings.js:1
    405 msgid "Only use if you are using a custom loader."
    406 msgstr ""
    407 
    408 #: assets/admin/settings.js:1
    409 msgid "Cookie Keeper (for Stape users only)"
    410 msgstr ""
    411 
    412 #: assets/admin/settings.js:1
    413 msgid "Prolong cookie lifetime in Safari and other browsers with ITP. This only works if you use Stape sGTM hosting and have set up the Cookie Keeper power up."
    414 msgstr ""
    415 
    416 #: assets/admin/settings.js:1
    417 msgid "Google Tag Manager Server-side Tagging"
    418 msgstr ""
    419 
    420 #: assets/admin/settings.js:1
    421457#: assets/admin/settings.js:13
    422458msgid "Learn more"
     
    636672
    637673#: assets/admin/settings.js:1
    638 #: assets/admin/settings.js:13
     674#: assets/admin/settings.js:15
    639675msgid "Post data"
    640676msgstr ""
     
    702738
    703739#: assets/admin/settings.js:1
    704 #: assets/admin/settings.js:13
     740#: assets/admin/settings.js:15
    705741msgid "Google Consent Mode"
    706742msgstr ""
     
    833869
    834870#: assets/admin/settings.js:1
    835 #: assets/admin/settings.js:13
     871#: assets/admin/settings.js:15
    836872msgid "Misc"
    837873msgstr ""
     
    12381274
    12391275#: assets/admin/settings.js:13
     1276#: assets/admin/settings.js:15
    12401277msgid "Templates"
    12411278msgstr ""
     
    13171354msgstr ""
    13181355
    1319 #: assets/admin/settings.js:13
     1356#. translators: %d is number %s can be either 'problem' or 'notification'.
     1357#: assets/admin/settings.js:15
     1358msgid "You have %d hidden %s:"
     1359msgid_plural "You have %d hidden %ss:"
     1360msgstr[0] ""
     1361msgstr[1] ""
     1362
     1363#: assets/admin/settings.js:15
     1364msgid "Problems"
     1365msgstr ""
     1366
     1367#: assets/admin/settings.js:15
    13201368msgid "Google Tag Manager Templates"
    13211369msgstr ""
    13221370
    1323 #: assets/admin/settings.js:13
     1371#: assets/admin/settings.js:15
    13241372msgid "Dashboard"
    13251373msgstr ""
    13261374
    1327 #: assets/admin/settings.js:13
     1375#: assets/admin/settings.js:15
    13281376msgid "Container"
    13291377msgstr ""
    13301378
    1331 #: assets/admin/settings.js:13
     1379#: assets/admin/settings.js:15
    13321380msgid "User data"
    13331381msgstr ""
    13341382
    1335 #: assets/admin/settings.js:13
     1383#: assets/admin/settings.js:15
    13361384msgid "Support"
    13371385msgstr ""
  • gtm-kit/trunk/readme.txt

    r3139454 r3149785  
    44Tags: google tag manager, gtm, woocommerce, analytics, ga4
    55Tested up to: 6.6
    6 Stable tag: 1.23.3
     6Stable tag: 2.0.0
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    2323- select_item
    2424- view_item
    25 - add_to_wishlist
     25- add_to_wishlist **[Premium]**
    2626- add_to_cart
    2727- view_cart
     
    3131- add_payment_info
    3232- purchase
     33- refund **[Premium]**
     34
     35Unlock all features with [GTM Kit Woo Add-On](https://jump.gtmkit.com/link/2-30DDC).
    3336
    3437### Easy Digital Downloads
     
    8992== Changelog ==
    9093
     94= 2.0 =
     95
     96Release date: 2024-09-DD
     97
     98We are introducing [GTM Kit Woo Add-On](https://jump.gtmkit.com/link/2-30DDC), which is a premium plugin that unlock premium features in GTM Kit.
     99
     100Find out about what else is new in our [our release post](https://gtmkit.com/gtm-kit-2-0/).
     101
     102#### Breaking change:
     103* Starting with GTM Kit version 2.0, the add_to_wishlist event is no longer supported in the free version of GTM Kit.
     104
     105#### Enhancements:
     106* A notifications handler has been added to communicate issues and notifications that require the user’s attention.
     107* Added a warning when other Google Tag Manager plugins that may cause a conflict are active.
     108* WooCommerce users are advised to install a supported SEO plugin to take advantage of a default category in data layer items.
     109
     110#### Other:
     111* Increased PHPStan analysis level to 6, enhancing static code analysis and catching potential issues earlier in the development process.
     112* Require WordPress 6.3.
     113* Require WooCommerce 8.3.
     114* Require PHP 7.4.
    91115
    92116= 1.23.3 =
     
    134158* Tested up to WordPress 6.6.
    135159
    136 = 1.22.4 =
    137 
    138 Release date: 2024-05-30
    139 
    140 #### Enhancements:
    141 * Improve log and support data.
    142 
    143 #### Bugfixes:
    144 * There was a typo preventing the GTMKIT_WC_DEBUG_TRACK_PURCHASE constant from having any effect.
    145 
    146 #### Other:
    147 * Tested up to WooCommerce 8.9.
    148 
    149 = 1.22.3 =
    150 
    151 Release date: 2024-05-22
    152 
    153 #### Bugfixes:
    154 - The datalayer was not pushed when the container was disabled.
    155 
    156 #### Other:
    157 - Improved quality assurance (CI). Thanks [szepeviktor](https://github.com/szepeviktor)
    158 
    159 = 1.22.2 =
    160 
    161 #### Bugfixes:
    162 - Fix items in add_shipping_info and add_payment_info
    163 
    164 = 1.22.1 =
    165 
    166 Release date: 2024-05-13
    167 
    168 #### Bugfixes:
    169 - wait_for_update was not printed in Google Consent Mode default settings.
    170 
    171 = 1.22 =
    172 
    173 Release date: 2024-05-08
    174 
    175 Find out about what's new in our [our release post](https://gtmkit.com/gtm-kit-1-22/).
    176 
    177 #### Enhancements:
    178 - Added an Event Inspector for verifying that events are being pushed to the datalayer. You can now debug events without using GTM preview mode.
    179 - Added advanced GCM settings: 'ads_data_redaction', 'url_passthrough' and 'wait_for_update'.
    180 - Updated the custom container loader for use with Stape.io.
    181160
    182161== Upgrade Notice ==
    183162
    184 = 1.23.1 =
    185 The load priority of the script 'gtmkit-js-before' has been lowered from 1 to 5.
     163= 2.0 =
     164Starting with GTM Kit version 2.0, the add_to_wishlist event is no longer supported in the free version of GTM Kit.
  • gtm-kit/trunk/src/Admin/AbstractOptionsPage.php

    r3139454 r3149785  
    2323     * @var string
    2424     */
    25     protected $option_name = 'gtmkit';
     25    protected string $option_name = 'gtmkit';
    2626
    2727    /**
     
    3030     * @var Options
    3131     */
    32     protected $options;
     32    protected Options $options;
    3333
    3434    /**
     
    3737     * @var Util
    3838     */
    39     protected $util;
     39    protected Util $util;
    4040
    4141    /**
  • gtm-kit/trunk/src/Admin/AdminAPI.php

    r3070452 r3149785  
    2323     * @var Options
    2424     */
    25     private $options;
     25    private Options $options;
    2626
    2727    /**
     
    3030     * @var Util
    3131     */
    32     private $util;
     32    private Util $util;
    3333
    3434    /**
     
    7272                'methods'  => 'POST',
    7373                'callback' => [ $this, 'send_support_data' ],
     74            ]
     75        );
     76
     77        $this->util->rest_api_server->register_rest_route(
     78            '/set-notification-status',
     79            [
     80                'methods'  => 'POST',
     81                'callback' => [ $this, 'set_notification_status' ],
    7482            ]
    7583        );
     
    140148        }
    141149    }
     150
     151    /**
     152     * Set notification status
     153     *
     154     * @return void
     155     */
     156    public function set_notification_status(): void {
     157        $input = $this->get_json_input();
     158
     159        if ( $this->validate_notification_input( $input ) ) {
     160            $notification_id = sanitize_text_field( $input['notification-id'] );
     161            $action          = sanitize_text_field( $input['action'] );
     162
     163            $notifications_handler = NotificationsHandler::get();
     164            $notifications_handler->setup_current_notifications();
     165            $notification = $notifications_handler->get_notification_by_id( $notification_id );
     166
     167            if ( $notification instanceof Notification ) {
     168                switch ( $action ) {
     169                    case 'dismiss':
     170                        $notification_action = $notifications_handler->maybe_dismiss_notification( $notification );
     171                        break;
     172                    case 'restore':
     173                        $notification_action = $notifications_handler->restore_notification( $notification );
     174                        break;
     175                    default:
     176                        $notification_action = false;
     177                }
     178
     179                if ( $notification_action ) {
     180                    wp_send_json_success( (object) $notifications_handler->get_notifications_array() );
     181                } else {
     182                    wp_send_json_error( (object) $notifications_handler->get_notifications_array() );
     183                }
     184            } else {
     185                wp_send_json_error( 'The notification was not found.' );
     186            }
     187        } else {
     188            wp_send_json_error( 'Invalid input.' );
     189        }
     190    }
     191
     192    /**
     193     * Validate notification input
     194     *
     195     * @param array<string, string>|null $input The input.
     196     * @return bool
     197     */
     198    private function validate_notification_input( ?array $input ): bool {
     199        return isset( $input['notification-id'], $input['action'] )
     200                && in_array( $input['action'], [ 'dismiss', 'restore' ], true );
     201    }
     202
     203    /**
     204     * Get JSON input
     205     *
     206     * @return array<string, string>|null
     207     */
     208    private function get_json_input(): ?array {
     209        $input_raw = file_get_contents( 'php://input' );
     210        return $input_raw ? json_decode( $input_raw, true ) : null;
     211    }
    142212}
  • gtm-kit/trunk/src/Admin/Analytics.php

    r2961341 r3149785  
    2121     * @var Analytics
    2222     */
    23     public static $instance;
     23    public static Analytics $instance;
    2424
    2525    /**
     
    2828     * @var Options
    2929     */
    30     protected $options;
     30    protected Options $options;
    3131
    3232    /**
     
    3535     * @var Util
    3636     */
    37     private $util;
     37    private Util $util;
    3838
    3939    /**
  • gtm-kit/trunk/src/Admin/AssetsTrait.php

    r3112163 r3149785  
    2929        }
    3030
    31         $deps_file  = $path . 'assets/admin/' . $script_handle . '.asset.php';
     31        $deps_file  = \realpath( $path . 'assets/admin/' . $script_handle . '.asset.php' );
    3232        $dependency = [];
    3333        $version    = false;
    3434
    35         if ( \file_exists( $deps_file ) ) {
    36             $deps_file  = require $deps_file;
    37             $dependency = $deps_file['dependencies'];
    38             $version    = $deps_file['version'];
     35        // Ensure the file is within the expected directory.
     36        if ( $deps_file && \strpos( $deps_file, \realpath( $path . 'assets/admin/' ) ) === 0 && \file_exists( $deps_file ) ) {
     37            $deps_data  = require $deps_file; // nosemgrep.
     38            $dependency = $deps_data['dependencies'];
     39            $version    = $deps_data['version'];
     40        }
     41
     42        // Polyfill for WordPress versions earlier than 6.6.
     43        if ( in_array( 'react-jsx-runtime', $dependency, true ) && ! wp_script_is( 'react-jsx-runtime', 'registered' ) ) {
     44            wp_register_script(
     45                'react-jsx-runtime',
     46                GTMKIT_URL . 'assets/react-jsx-runtime.js',
     47                [ 'react' ],
     48                '18.3.1',
     49                true
     50            );
    3951        }
    4052
  • gtm-kit/trunk/src/Admin/GeneralOptionsPage.php

    r3112163 r3149785  
    1818     * @var string
    1919     */
    20     protected $option_group = 'general';
     20    protected string $option_group = 'general';
     21
     22    /**
     23     * The notifications
     24     *
     25     * @var array<string, array<string, int|array<string>>|int>
     26     */
     27    protected array $notifications = [];
    2128
    2229    /**
     
    2633        add_menu_page(
    2734            $this->get_page_title(),
    28             'GTM KIT',
     35            $this->get_main_menu_title(),
    2936            $this->get_capability(),
    3037            $this->get_menu_slug(),
     
    6067
    6168    /**
     69     * Get the main admin page menu title.
     70     *
     71     * @return string
     72     */
     73    protected function get_main_menu_title(): string {
     74        return 'GTM Kit' . $this->get_notification_counter();
     75    }
     76
     77    /**
    6278     * Get the admin page menu title.
    6379     *
     
    6581     */
    6682    protected function get_menu_title(): string {
    67         return __( 'General', 'gtm-kit' );
     83        return __( 'General', 'gtm-kit' ) . $this->get_notification_counter();
    6884    }
    6985
     
    119135                'site_data'       => $this->util->get_site_data( $this->options->get_all_raw() ),
    120136                'user_roles'      => $this->get_user_roles(),
     137                'notifications'   => $this->get_notifications(),
    121138            ]
    122139        );
     
    124141
    125142    /**
    126      * Get the templates
    127      *
    128      * @return array
     143     * Get the tutorials
     144     *
     145     * @return array<string, mixed>
    129146     */
    130147    private function get_tutorials(): array {
     
    135152     * Get user roles
    136153     *
    137      * @return array
     154     * @return array<array<string, string>>
    138155     */
    139156    private function get_user_roles(): array {
     
    151168        return $user_roles;
    152169    }
     170
     171    /**
     172     * Get the notifications array
     173     *
     174     * @return array<string, array<string, int|array<string>>|int>
     175     */
     176    private function get_notifications_array(): array {
     177        if ( empty( $this->notifications ) ) {
     178            $notifications_handler = NotificationsHandler::get();
     179            $this->notifications   = $notifications_handler->get_notifications_array();
     180        }
     181
     182        return $this->notifications;
     183    }
     184
     185    /**
     186     * Returns the notification count in HTML format.
     187     *
     188     * @return string The notification count in HTML format.
     189     */
     190    private function get_notification_counter(): string {
     191        return sprintf(
     192            ' <span class="menu-counter count-%1$d"><span class="count" aria-hidden="true">%1$d</span></span>',
     193            $this->get_notifications_array()['metrics']['total']
     194        );
     195    }
     196
     197    /**
     198     * Returns the notifications.
     199     *
     200     * @return object The notifications.
     201     */
     202    protected function get_notifications(): object {
     203        return (object) $this->get_notifications_array();
     204    }
    153205}
  • gtm-kit/trunk/src/Admin/HelpOptionsPage.php

    r3070452 r3149785  
    77
    88namespace TLA_Media\GTM_Kit\Admin;
     9
     10use TLA_Media\GTM_Kit\Common\Conditionals\PremiumConditional;
    911
    1012/**
     
    1820     * @var string
    1921     */
    20     protected $option_group = 'help';
     22    protected string $option_group = 'help';
    2123
    2224    /**
     
    9597                'settings'        => $this->options->get_all_raw(),
    9698                'site_data'       => [ 'gtmkit_version' => GTMKIT_VERSION ],
     99                'isPremium'       => ( new PremiumConditional() )->is_met(),
    97100            ]
    98101        );
     
    102105     * Get the templates
    103106     *
    104      * @return array
     107     * @return array<string, mixed>
    105108     */
    106109    private function get_tutorials(): array {
  • gtm-kit/trunk/src/Admin/Integrations.php

    r3112163 r3149785  
    1616     * Get the integrations
    1717     *
    18      * @return array
     18     * @return array<string, array<string, string>>
    1919     */
    2020    public static function get_integrations(): array {
  • gtm-kit/trunk/src/Admin/IntegrationsOptionsPage.php

    r3118062 r3149785  
    77
    88namespace TLA_Media\GTM_Kit\Admin;
     9
     10use TLA_Media\GTM_Kit\Common\Conditionals\PremiumConditional;
    911
    1012/**
     
    1820     * @var string
    1921     */
    20     protected $option_group = 'integrations';
     22    protected string $option_group = 'integrations';
    2123
    2224    /**
     
    111113                'root'             => \esc_url_raw( rest_url() ),
    112114                'nonce'            => \wp_create_nonce( 'wp_rest' ),
    113                 'isPremium'        => $this->util->is_premium(),
     115                'isPremium'        => ( new PremiumConditional() )->is_met(),
    114116                'integrations'     => Integrations::get_integrations(),
    115117                'dashboardUrl'     => \menu_page_url( 'gtmkit_general', false ),
     
    127129     * Get the plugins.
    128130     *
    129      * @return array
     131     * @return array<string, bool>
    130132     */
    131133    private function get_plugins(): array {
  • gtm-kit/trunk/src/Admin/MetaBox.php

    r3139454 r3149785  
    2020     * @var Options
    2121     */
    22     protected $options;
     22    protected Options $options;
    2323
    2424    /**
     
    113113                    delete_post_meta( (int) $_POST['post_ID'], 'gtmkit_page_type' );
    114114                } else {
    115                     update_post_meta( (int) $_POST['post_ID'], 'gtmkit_page_type', $_POST['gtmkit_option']['page_type'] );
     115                    $page_type = sanitize_text_field( $_POST['gtmkit_option']['page_type'] );
     116                    update_post_meta( (int) $_POST['post_ID'], 'gtmkit_page_type', $page_type );
    116117                }
    117118            }
  • gtm-kit/trunk/src/Admin/SetupWizard.php

    r3139454 r3149785  
    3030     * @var Options
    3131     */
    32     protected $options;
     32    protected Options $options;
    3333
    3434    /**
     
    3737     * @var Util
    3838     */
    39     protected $util;
     39    protected Util $util;
    4040
    4141    /**
  • gtm-kit/trunk/src/Admin/TemplatesOptionsPage.php

    r3070452 r3149785  
    1818     * @var string
    1919     */
    20     protected $option_group = 'templates';
     20    protected string $option_group = 'templates';
    2121
    2222    /**
     
    102102     * Get the templates
    103103     *
    104      * @return array
     104     * @return array<string, mixed>
    105105     */
    106106    private function get_templates(): array {
  • gtm-kit/trunk/src/Common/RestAPIServer.php

    r2961341 r3149785  
    2020     * @var string
    2121     */
    22     private $route_namespace = 'gtmkit/v1';
     22    private string $route_namespace = 'gtmkit/v1';
    2323
    2424    /**
     
    4040     * Register REST route
    4141     *
    42      * @param string $route The route.
    43      * @param array  $args The arguments.
     42     * @param string               $route The route.
     43     * @param array<string, mixed> $args The arguments.
    4444     *
    4545     * @return void
  • gtm-kit/trunk/src/Common/Util.php

    r3112163 r3149785  
    2121     * @var Options
    2222     */
    23     public $options;
     23    public Options $options;
    2424
    2525    /**
     
    2828     * @var RestAPIServer
    2929     */
    30     public $rest_api_server;
     30    public RestAPIServer $rest_api_server;
    3131
    3232    /**
     
    3535     * @var string
    3636     */
    37     public $asset_path;
     37    public string $asset_path;
    3838
    3939    /**
     
    4242     * @var string
    4343     */
    44     public $asset_url;
     44    public string $asset_url;
    4545
    4646    /**
     
    4949     * @var string
    5050     */
    51     private $api_namespace = '/api/v1';
     51    private string $api_namespace = '/api/v1';
    5252
    5353    /**
     
    5656     * @var string
    5757     */
    58     private $api_host;
     58    private string $api_host;
    5959
    6060    /**
     
    8989     * Get the site data
    9090     *
    91      * @param array $options The options.
    92      * @param bool  $anonymize Anonymize the data.
    93      *
    94      * @return array
     91     * @param array<string, mixed> $options The options.
     92     * @param bool                 $anonymize Anonymize the data.
     93     *
     94     * @return array<string, mixed>
    9595     */
    9696    public function get_site_data( array $options, bool $anonymize = true ): array {
     
    127127     * Set the site data
    128128     *
    129      * @param array  $data Current data.
    130      * @param array  $options The options.
    131      * @param string $wp_version The WordPress version.
    132      * @param bool   $anonymize Anonymize the data.
    133      *
    134      * @return array
     129     * @param array<string, mixed> $data Current data.
     130     * @param array<string, mixed> $options The options.
     131     * @param string               $wp_version The WordPress version.
     132     * @param bool                 $anonymize Anonymize the data.
     133     *
     134     * @return array<string, mixed>
    135135     */
    136136    private function set_site_data( array $data, array $options, string $wp_version, bool $anonymize ): array {
     
    149149     * Add shared data
    150150     *
    151      * @param array  $data Current data.
    152      * @param string $wp_version The WordPress version.
    153      *
    154      * @return array
     151     * @param array<string, mixed> $data Current data.
     152     * @param string               $wp_version The WordPress version.
     153     *
     154     * @return array<string, mixed>
    155155     */
    156156    private function add_shared_data( array $data, string $wp_version ): array {
     
    204204     * Gets names of all active plugins.
    205205     *
    206      * @return array An array of active plugins names.
     206     * @return array<int, string> An array of active plugins names.
    207207     */
    208208    public function get_active_plugins(): array {
     
    225225     * Add plugin to array if active.
    226226     *
    227      * @param string $plugin The plugin slug.
    228      * @param string $key The key.
    229      * @param array  $data The data.
    230      * @param bool   $shorten Shorten the version number or not.
    231      *
    232      * @return array An array of active plugins names.
     227     * @param string               $plugin The plugin slug.
     228     * @param string               $key The key.
     229     * @param array<string, mixed> $data The data.
     230     * @param bool                 $shorten Shorten the version number or not.
     231     *
     232     * @return array<string, mixed> An array of active plugins names.
    233233     */
    234234    public function add_active_plugin_and_version( string $plugin, string $key, array $data, bool $shorten = true ): array {
     
    245245     * Anonymize options
    246246     *
    247      * @param array $options The options.
    248      *
    249      * @return array
     247     * @param array<string, mixed> $options The options.
     248     *
     249     * @return array<string, mixed>
    250250     */
    251251    public function anonymize_options( array $options ): array {
     
    311311     * Enqueue script in build
    312312     *
    313      * @param string $handle The script handle.
    314      * @param string $script The script name.
    315      * @param bool   $has_asset_file If the script has an asset file or not.
    316      * @param array  $deps The script dependencies.
    317      * @param array  $args The loading strategy.
     313     * @param string                      $handle The script handle.
     314     * @param string                      $script The script name.
     315     * @param bool                        $has_asset_file If the script has an asset file or not.
     316     * @param array<int, string>          $deps The script dependencies.
     317     * @param array<string, string|false> $args The loading strategy.
    318318     *
    319319     * @return void
    320320     */
    321     public function enqueue_script( string $handle, string $script, bool $has_asset_file = false, array $deps = [], array $args = [ 'strategy' => 'defer' ] ): void {
     321    public function enqueue_script( string $handle, string $script, bool $has_asset_file = false, array $deps = [], array $args = [
     322        'strategy'  => 'defer',
     323        'in_footer' => false,
     324    ] ): void {
    322325
    323326        $ver = $this->get_plugin_version();
     
    325328        if ( $has_asset_file ) {
    326329            $file = $this->asset_path . substr_replace( $script, '.asset.php', - strlen( '.js' ) );
    327             if ( file_exists( $file ) ) {
    328                 $deps_file = require $file;
    329                 $deps      = $deps_file['dependencies'];
    330                 $ver       = $deps_file['version'];
     330            $file = \realpath( $this->asset_path . substr_replace( $script, '.asset.php', - strlen( '.js' ) ) );
     331
     332            // Ensure the file is within the expected directory.
     333            if ( $file && \strpos( $file, \realpath( $this->asset_path ) ) === 0 && \file_exists( $file ) ) {
     334                $deps_data = require $file; // nosemgrep.
     335                $deps      = $deps_data['dependencies'];
     336                $ver       = $deps_data['version'];
    331337            }
    332338        }
     
    349355     * @param string $transient The transient.
    350356     *
    351      * @return array
     357     * @return array<string, mixed>
    352358     */
    353359    public function get_data( string $endpoint, string $transient ): array {
     
    446452        return $this->normalize_and_hash( $hash_algorithm, $normalized_email, true );
    447453    }
    448 
    449     /**
    450      * Is premium
    451      *
    452      * @return bool True when is premium.
    453      */
    454     public function is_premium(): bool {
    455         return \defined( 'GTMKIT_WOO_FILE' );
    456     }
    457454}
  • gtm-kit/trunk/src/Frontend/BasicDatalayerData.php

    r3004949 r3149785  
    2020     * @var Options
    2121     */
    22     protected $options;
     22    protected Options $options;
    2323
    2424    /**
     
    2727     * @var bool
    2828     */
    29     protected $set_datalayer_post_type;
     29    protected bool $set_datalayer_post_type;
    3030
    3131    /**
     
    3434     * @var bool
    3535     */
    36     protected $set_datalayer_page_type;
     36    protected bool $set_datalayer_page_type;
    3737
    3838    /**
     
    6262     * Get the basic dataLayer data
    6363     *
    64      * @param array $datalayer The datalayer.
    65      *
    66      * @return array
     64     * @param array<string, mixed> $datalayer The datalayer.
     65     *
     66     * @return array<string, mixed>
    6767     */
    6868    public function get_datalayer_content( array $datalayer ): array {
     
    9797     * Set post and page types in the datalayer
    9898     *
    99      * @param array  $datalayer The datalayer.
    100      * @param string $post_type The post type.
    101      * @param string $page_type The page type.
    102      *
    103      * @return array
     99     * @param array<string, mixed> $datalayer The datalayer.
     100     * @param string               $post_type The post type.
     101     * @param string               $page_type The page type.
     102     *
     103     * @return array<string, mixed>
    104104     */
    105105    private function set_post_and_page_types( array $datalayer, string $post_type, string $page_type = '' ): array {
     
    118118     * Get priority dataLayer data
    119119     *
    120      * @param array $datalayer The datalayer.
    121      *
    122      * @return array
     120     * @param array<string, mixed> $datalayer The datalayer.
     121     *
     122     * @return array<string, mixed>
    123123     */
    124124    public function get_priority_datalayer_content( array $datalayer ): array {
     
    136136     * Get the dataLayer data for singular post types
    137137     *
    138      * @param array $datalayer The datalayer.
    139      *
    140      * @return array
     138     * @param array<string, mixed> $datalayer The datalayer.
     139     *
     140     * @return array<string, mixed>
    141141     */
    142142    private function get_singular_datalayer_content( array $datalayer ): array {
     
    189189     * Get the dataLayer data for site search
    190190     *
    191      * @param array $datalayer The datalayer.
    192      *
    193      * @return array
     191     * @param array<string, mixed> $datalayer The datalayer.
     192     *
     193     * @return array<string, mixed>
    194194     */
    195195    private function get_site_search_datalayer_content( array $datalayer ): array {
  • gtm-kit/trunk/src/Frontend/Frontend.php

    r3118062 r3149785  
    2020     * @var Options
    2121     */
    22     protected $options;
     22    protected Options $options;
    2323
    2424    /**
     
    2727     * @var string
    2828     */
    29     protected $datalayer_name;
     29    protected string $datalayer_name;
    3030
    3131    /**
     
    254254     * Set inline script attributes
    255255     *
    256      * @param array  $attributes The script attributes.
    257      * @param string $script The script.
    258      *
    259      * @return array The script attributes.
     256     * @param array<string, mixed> $attributes The script attributes.
     257     * @param string               $script The script.
     258     *
     259     * @return array<string, mixed> The script attributes.
    260260     */
    261261    public function set_inline_script_attributes( array $attributes, string $script ): array { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
     
    311311     * Exclude GTM Kit in WP Rocket
    312312     *
    313      * @param array $pattern The exclude list.
    314      *
    315      * @return array
     313     * @param array<int, string> $pattern The exclude list.
     314     *
     315     * @return array<int, string>
    316316     */
    317317    public function wp_rocket_exclude_javascript( array $pattern ): array {
     
    325325     * Adds Google Tag Manager domain DNS Prefetch printed by wp_resource_hints
    326326     *
    327      * @param array  $hints URLs to print for resource hints.
    328      * @param string $relation_type The relation type the URL are printed for.
    329      *
    330      * @return array URL to print
     327     * @param array<int, string> $hints URLs to print for resource hints.
     328     * @param string             $relation_type The relation type the URL are printed for.
     329     *
     330     * @return array<int, string> URL to print
    331331     */
    332332    public function dns_prefetch( array $hints, string $relation_type ): array {
  • gtm-kit/trunk/src/Frontend/Stape.php

    r3004949 r3149785  
    2727     * @var Options
    2828     */
    29     protected $options;
     29    protected Options $options;
    3030
    3131    /**
     
    6969            array(
    7070                'name'    => self::COOKIE_KEEPER_NAME,
    71                 'value'   => md5( wp_rand( PHP_INT_MIN, PHP_INT_MAX ) . '|' . filter_input( INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_DEFAULT ) . '|' . time() ),
     71                'value'   => md5( wp_rand( PHP_INT_MIN, PHP_INT_MAX ) . '|' . filter_input( INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_SANITIZE_SPECIAL_CHARS ) . '|' . time() ),
    7272                'expires' => time() + ( YEAR_IN_SECONDS * 2 ),
    7373            )
     
    9595     * Set cookie.
    9696     *
    97      * @param  array $args Parameters.
     97     * @param  array<string, mixed> $args Parameters.
    9898     * @return void
    9999     */
  • gtm-kit/trunk/src/Frontend/UserData.php

    r3090572 r3149785  
    2020     * @var Options
    2121     */
    22     protected $options;
     22    protected Options $options;
    2323
    2424    /**
     
    4545     * Get the dataLayer content
    4646     *
    47      * @param array $datalayer The datalayer.
     47     * @param array<string, mixed> $datalayer The datalayer.
    4848     *
    49      * @return array
     49     * @return array<string, mixed>
    5050     */
    5151    public function get_datalayer_content( array $datalayer ): array {
  • gtm-kit/trunk/src/Installation/PluginDataImport.php

    r2974164 r3149785  
    1616     * Get the data for all plugins.
    1717     *
    18      * @return array
     18     * @return array<string, mixed>
    1919     */
    2020    public function get_all(): array {
     
    5555     * @param string $slug The plugin slug.
    5656     *
    57      * @return array
     57     * @return array<string, mixed>
    5858     */
    5959    public function get( string $slug ): array {
     
    8888     * Check if GTM4WP plugin settings are present and extract them.
    8989     *
    90      * @return array
     90     * @return array<string, mixed>
    9191     */
    9292    private function get_gtm4wp(): array {
     
    133133     * Check if GTM for WooCommerce plugin settings are present and extract them.
    134134     *
    135      * @return array
     135     * @return array<string, mixed>
    136136     */
    137137    private function get_gtm_for_woocommerce(): array {
     
    158158     * Check if Metronet Tag Manager plugin settings are present and extract them.
    159159     *
    160      * @return array
     160     * @return array<string, mixed>
    161161     */
    162162    private function get_metronet_tag_manager(): array {
     
    185185     * Check if Google Analytics and Google Tag Manager plugin settings are present and extract them.
    186186     *
    187      * @return array
     187     * @return array<string, mixed>
    188188     */
    189189    private function get_google_analytics_and_google_tag_manager(): array {
     
    207207     * Check if Google Tag Manager plugin settings are present and extract them.
    208208     *
    209      * @return array
     209     * @return array<string, mixed>
    210210     */
    211211    private function get_google_tag_manager(): array {
     
    235235        if ( ! function_exists( 'is_plugin_active' ) ) {
    236236
    237             include_once ABSPATH . 'wp-admin/includes/plugin.php';
     237            require_once ABSPATH . 'wp-admin/includes/plugin.php';
    238238
    239239        }
  • gtm-kit/trunk/src/Installation/Upgrade.php

    r3118062 r3149785  
    88namespace TLA_Media\GTM_Kit\Installation;
    99
     10use TLA_Media\GTM_Kit\Common\Conditionals\WooCommerceConditional;
    1011use TLA_Media\GTM_Kit\Options;
    1112
     
    3536     * Get upgrades if applicable.
    3637     *
    37      * @return array
     38     * @return array<string>
    3839     */
    3940    protected function get_upgrades(): array {
     
    4546            '1.20' => 'v120_upgrade',
    4647            '1.22' => 'v122_upgrade',
     48            '2.0'  => 'v2_upgrade',
    4749        ];
    4850
     
    154156        Options::init()->set( $values, false, false );
    155157    }
     158
     159    /**
     160     * Upgrade routine for v2.0
     161     */
     162    protected function v2_upgrade(): void {
     163
     164        if ( ! function_exists( 'get_plugins' ) ) {
     165            require_once ABSPATH . 'wp-admin/includes/plugin.php';
     166        }
     167
     168        if ( (
     169            new WooCommerceConditional() )->is_met() &&
     170            ( \is_plugin_active( 'yith-woocommerce-wishlist/init.php' ) || \is_plugin_active( 'ti-woocommerce-wishlist/ti-woocommerce-wishlist.php' )
     171        ) ) {
     172            $values = [
     173                'misc' => [
     174                    'gf_wishlist' => true,
     175                ],
     176            ];
     177
     178            Options::init()->set( $values, false, false );
     179        }
     180    }
    156181}
  • gtm-kit/trunk/src/Integration/AbstractEcommerce.php

    r3018660 r3149785  
    2222     * @var string
    2323     */
    24     protected $store_currency;
     24    protected string $store_currency;
    2525
    2626    /**
     
    2929     * @var int
    3030     */
    31     protected $grouped_product_position;
     31    protected int $grouped_product_position;
    3232
    3333    /**
    3434     * Global data.
    3535     *
    36      * @var array
     36     * @var array<string, mixed>
    3737     */
    38     protected $global_data;
     38    protected array $global_data;
    3939
    4040    /**
     
    5454     * Get instance
    5555     */
    56     abstract public static function instance();
     56    abstract public static function instance(): self;
    5757
    5858    /**
     
    7070     * @param string $taxonomy The taxonomy slug.
    7171     *
    72      * @return array The category breadcrumb for the given product ID.
     72     * @return array<int|string, mixed> The category breadcrumb for the given product ID.
    7373     */
    7474    public function get_primary_product_category( int $product_id, string $taxonomy ): array {
     
    118118     * @param string $taxonomy The taxonomy slug.
    119119     *
    120      * @return array The category path elements as an array.
     120     * @return array<int, string> The category path elements as an array.
    121121     */
    122122    public function get_category_breadcrumb( int $category_id, string $taxonomy ): array {
  • gtm-kit/trunk/src/Integration/AbstractIntegration.php

    r2960370 r3149785  
    2121     * @var Options
    2222     */
    23     protected $options;
     23    protected Options $options;
    2424
    2525    /**
     
    2828     * @var Util
    2929     */
    30     protected $util;
     30    protected Util $util;
    3131
    3232    /**
     
    4444     * Get instance
    4545     */
    46     abstract public static function instance();
     46    abstract public static function instance(): self;
    4747
    4848    /**
  • gtm-kit/trunk/src/Integration/ContactForm7.php

    r3090572 r3149785  
    2020     * Instance.
    2121     *
    22      * @var ContactForm7 An instance of ContactForm7.
     22     * @var null|ContactForm7 An instance of ContactForm7.
    2323     */
    24     protected static $instance = null;
     24    protected static ?ContactForm7 $instance = null;
    2525
    2626    /**
  • gtm-kit/trunk/src/Integration/EasyDigitalDownloads.php

    r3090572 r3149785  
    2424     * Instance.
    2525     *
    26      * @var EasyDigitalDownloads
    27      */
    28     protected static $instance = null;
     26     * @var null|EasyDigitalDownloads
     27     */
     28    protected static ?EasyDigitalDownloads $instance = null;
    2929
    3030    /**
     
    9393     * Get the global script settings
    9494     *
    95      * @param array $global_settings Script settings.
    96      *
    97      * @return array
     95     * @param array<string, mixed> $global_settings Script settings.
     96     *
     97     * @return array<string, mixed>
    9898     */
    9999    public function get_global_settings( array $global_settings ): array {
     
    111111     * Get the global script data
    112112     *
    113      * @param array $global_data Script data.
    114      *
    115      * @return array
     113     * @param array<string, mixed> $global_data Script data.
     114     *
     115     * @return array<string, mixed>
    116116     */
    117117    public function get_global_data( array $global_data ): array {
     
    134134     * Get the dataLayer content
    135135     *
    136      * @param array $data_layer The datalayer content.
    137      *
    138      * @return array The datalayer content
     136     * @param array<string, mixed> $data_layer The datalayer content.
     137     *
     138     * @return array<string, mixed> The datalayer content
    139139     */
    140140    public function get_datalayer_content( array $data_layer ): array {
     
    158158     * Get the dataLayer data for product pages
    159159     *
    160      * @param array $data_layer The datalayer content.
    161      *
    162      * @return array The datalayer content
     160     * @param array<string, mixed> $data_layer The datalayer content.
     161     *
     162     * @return array<string, mixed> The datalayer content
    163163     */
    164164    public function get_datalayer_content_product_page( array $data_layer ): array {
     
    188188     * Get the dataLayer data for category pages
    189189     *
    190      * @param array $data_layer The datalayer content.
    191      *
    192      * @return array The datalayer content
     190     * @param array<string, mixed> $data_layer The datalayer content.
     191     *
     192     * @return array<string, mixed> The datalayer content
    193193     */
    194194    public function get_datalayer_content_product_category( array $data_layer ): array {
     
    204204     * Get the dataLayer data for product tag pages
    205205     *
    206      * @param array $data_layer The datalayer content.
    207      *
    208      * @return array The datalayer content
     206     * @param array<string, mixed> $data_layer The datalayer content.
     207     *
     208     * @return array<string, mixed> The datalayer content
    209209     */
    210210    public function get_datalayer_content_product_tag( array $data_layer ): array {
     
    220220     * Get the dataLayer data for checkout page
    221221     *
    222      * @param array $data_layer The datalayer content.
    223      *
    224      * @return array The datalayer content
     222     * @param array<string, mixed> $data_layer The datalayer content.
     223     *
     224     * @return array<string, mixed> The datalayer content
    225225     */
    226226    public function get_datalayer_content_checkout( array $data_layer ): array {
     
    240240     * Get the dataLayer data for order_received page
    241241     *
    242      * @param array $data_layer The datalayer content.
    243      *
    244      * @return array The datalayer content
     242     * @param array<string, mixed> $data_layer The datalayer content.
     243     *
     244     * @return array<string, mixed> The datalayer content
    245245     */
    246246    public function get_datalayer_content_order_received( array $data_layer ): array {
     
    334334     * @param string $event_context The event context of the item data.
    335335     *
    336      * @return array The cart items.
     336     * @return array<int, mixed> The cart items.
    337337     */
    338338    public function get_cart_items( string $event_context ): array {
     
    352352     * Get item data.
    353353     *
    354      * @param EDD_Download $download An instance of EDD_Download.
    355      * @param array        $options Optional options.
    356      * @param array        $additional_item_attributes Any key-value pair that needs to be added to the item data.
    357      * @param string       $event_context The event context of the item data.
    358      *
    359      * @return array The item data.
     354     * @param EDD_Download         $download An instance of EDD_Download.
     355     * @param array<string, mixed> $options Optional options.
     356     * @param array<string, mixed> $additional_item_attributes Any key-value pair that needs to be added to the item data.
     357     * @param string               $event_context The event context of the item data.
     358     *
     359     * @return array<string, mixed> The item data.
    360360     */
    361361    public function get_item_data( EDD_Download $download, array $options = [], array $additional_item_attributes = [], string $event_context = '' ): array {
     
    413413     * Include customer data
    414414     *
    415      * @param array      $data_layer The datalayer content.
    416      * @param Order|false $order Order.
    417      *
    418      * @return array The datalayer.
     415     * @param array<string, mixed> $data_layer The datalayer content.
     416     * @param Order|false          $order Order.
     417     *
     418     * @return array<string, mixed> The datalayer.
    419419     */
    420420    public function include_customer_data( array $data_layer, $order ): array {
  • gtm-kit/trunk/src/Integration/WooCommerce.php

    r3139454 r3149785  
    3232     * Instance.
    3333     *
    34      * @var WooCommerce
    35      */
    36     protected static $instance = null;
     34     * @var null|WooCommerce
     35     */
     36    protected static ?WooCommerce $instance = null;
    3737
    3838    /**
     
    113113            3
    114114        );
    115         add_filter( 'tinvwl_wishlist_item_meta_post', [ self::$instance, 'Compatibility_With_TI_Wishlist' ] );
    116 
    117115        add_action( 'woocommerce_after_shop_loop_item', [ self::$instance, 'product_list_loop_add_to_cart_tracking' ] );
    118116        add_filter( 'woocommerce_cart_item_remove_link', [ self::$instance, 'cart_item_remove_link' ], 10, 2 );
     
    234232     * Get the global script settings
    235233     *
    236      * @param array $global_settings Script settings.
    237      *
    238      * @return array
     234     * @param array<string, mixed> $global_settings Script settings.
     235     *
     236     * @return array<string, mixed>
    239237     */
    240238    public function get_global_settings( array $global_settings ): array {
     
    246244        $global_settings['wc']['view_item']['config']         = (int) $this->options->get( 'integrations', 'woocommerce_variable_product_tracking' );
    247245        $global_settings['wc']['view_item_list']['config']    = (int) $this->options->get( 'integrations', 'woocommerce_view_item_list_limit' );
     246        $global_settings['wc']['wishlist']                    = false;
    248247        $global_settings['wc']['text']                        = [
    249248            'wp-block-handpicked-products'   => __( 'Handpicked Products', 'gtm-kit' ),
     
    259258        ];
    260259        $global_settings['wc']['css_selectors']               = [
    261             'single_product_wishlist'  => '.add_to_wishlist, .tinvwl_add_to_wishlist_button:not(.tinvwl-product-in-list,.disabled-add-wishlist)',
    262             'product_list_select_item' => '.products .product:not(.product-category) a:not(.add_to_cart_button.ajax_add_to_cart,.add_to_wishlist,.tinvwl_add_to_wishlist_button),' .
    263                                         '.wc-block-grid__products li:not(.product-category) a:not(.add_to_cart_button.ajax_add_to_cart,.add_to_wishlist,.tinvwl_add_to_wishlist_button),' .
    264                                         '.woocommerce-grouped-product-list-item__label a:not(.add_to_wishlist,.tinvwl_add_to_wishlist_button)',
    265             'product_list_wishlist'    => '.add_to_wishlist, .tinvwl_add_to_wishlist_button:not(.tinvwl-product-in-list)',
     260            'product_list_select_item' => '.products .product:not(.product-category) a:not(.add_to_cart_button.ajax_add_to_cart,.add_to_wishlist),' .
     261                                        '.wc-block-grid__products li:not(.product-category) a:not(.add_to_cart_button.ajax_add_to_cart,.add_to_wishlist),' .
     262                                        '.woocommerce-grouped-product-list-item__label a:not(.add_to_wishlist)',
    266263        ];
    267264
     
    272269     * Get the global script data
    273270     *
    274      * @param array $global_data Script data.
    275      *
    276      * @return array
     271     * @param array<string, mixed> $global_data Script data.
     272     *
     273     * @return array<string, mixed>
    277274     */
    278275    public function get_global_data( array $global_data ): array {
     
    320317     * Get the WooCommerce dataLayer content
    321318     *
    322      * @param array $data_layer The datalayer content.
    323      *
    324      * @return array The datalayer content
     319     * @param array<string, mixed> $data_layer The datalayer content.
     320     *
     321     * @return array<string, mixed> The datalayer content
    325322     */
    326323    public function get_datalayer_content( array $data_layer ): array {
     
    354351     * Get the dataLayer data for product pages
    355352     *
    356      * @param array $data_layer The datalayer content.
    357      *
    358      * @return array The datalayer content
     353     * @param array<string, mixed> $data_layer The datalayer content.
     354     *
     355     * @return array<string, mixed> The datalayer content
    359356     */
    360357    public function get_datalayer_content_product_page( array $data_layer ): array {
     
    390387     * Get the dataLayer data for category pages
    391388     *
    392      * @param array $data_layer The datalayer content.
    393      *
    394      * @return array The datalayer content
     389     * @param array<string, mixed> $data_layer The datalayer content.
     390     *
     391     * @return array<string, mixed> The datalayer content
    395392     */
    396393    public function get_datalayer_content_product_category( array $data_layer ): array {
     
    406403     * Get the dataLayer data for product tag pages
    407404     *
    408      * @param array $data_layer The datalayer content.
    409      *
    410      * @return array The datalayer content
     405     * @param array<string, mixed> $data_layer The datalayer content.
     406     *
     407     * @return array<string, mixed> The datalayer content
    411408     */
    412409    public function get_datalayer_content_product_tag( array $data_layer ): array {
     
    422419     * Get the dataLayer data for cart page
    423420     *
    424      * @param array $data_layer The datalayer content.
    425      *
    426      * @return array The datalayer content
     421     * @param array<string, mixed> $data_layer The datalayer content.
     422     *
     423     * @return array<string, mixed> The datalayer content
    427424     */
    428425    public function get_datalayer_content_cart( array $data_layer ): array {
     
    451448     * Get the dataLayer data for checkout page
    452449     *
    453      * @param array $data_layer The datalayer content.
    454      *
    455      * @return array The datalayer content
     450     * @param array<string, mixed> $data_layer The datalayer content.
     451     *
     452     * @return array<string, mixed> The datalayer content
    456453     */
    457454    public function get_datalayer_content_checkout( array $data_layer ): array {
     
    484481     * Get the dataLayer data for order_received page
    485482     *
    486      * @param array $data_layer The datalayer content.
    487      *
    488      * @return array The datalayer content
     483     * @param array<string, mixed> $data_layer The datalayer content.
     484     *
     485     * @return array<string, mixed> The datalayer content
    489486     */
    490487    public function get_datalayer_content_order_received( array $data_layer ): array {
     
    556553     * Retrieves purchase event data for the data layer.
    557554     *
    558      * @param WC_Order $order The order.
    559      * @param array    $data_layer The datalayer content.
    560      *
    561      * @return array The datalayer content.
     555     * @param WC_Order             $order The order.
     556     * @param array<string, mixed> $data_layer The datalayer content.
     557     *
     558     * @return array<string, mixed> The datalayer content.
    562559     */
    563560    public function get_purchase_event( WC_Order $order, array $data_layer = [] ): array {
     
    604601     * Get the permalinkStructure property for the dataLayer
    605602     *
    606      * @param array $data_layer The datalayer content.
    607      *
    608      * @return array The datalayer content
     603     * @param array<string, mixed> $data_layer The datalayer content.
     604     *
     605     * @return array<string, mixed> The datalayer content
    609606     */
    610607    private function get_permalink_structure_property( array $data_layer ): array {
     
    623620     * Get the pages property for the dataLayer
    624621     *
    625      * @param array $data_layer The datalayer content.
    626      *
    627      * @return array The datalayer content
     622     * @param array<string, mixed> $data_layer The datalayer content.
     623     *
     624     * @return array<string, mixed> The datalayer content
    628625     */
    629626    public function get_pages_property( array $data_layer ): array {
     
    643640     * @param string $event_context The event context of the item data.
    644641     *
    645      * @return array The cart items.
     642     * @return array<int, mixed> The cart items.
    646643     */
    647644    public function get_cart_items( string $event_context ): array {
     
    682679     * Get item data.
    683680     *
    684      * @param WC_Product $product An instance of WP_Product.
    685      * @param array      $additional_item_attributes Any key-value pair that needs to be added to the item data.
    686      * @param string     $event_context The event context of the item data.
    687      *
    688      * @return array The item data.
     681     * @param WC_Product           $product An instance of WP_Product.
     682     * @param array<string, mixed> $additional_item_attributes Any key-value pair that needs to be added to the item data.
     683     * @param string               $event_context The event context of the item data.
     684     *
     685     * @return array<string, mixed> The item data.
    689686     */
    690687    public function get_item_data( $product, array $additional_item_attributes = [], string $event_context = '' ): array {
     
    742739     * Get the coupons and discount for an item
    743740     *
    744      * @param array $coupons The coupons.
    745      * @param array $item The item.
    746      *
    747      * @return array
     741     * @param array<int, mixed>    $coupons The coupons.
     742     * @param array<string, mixed> $item The item.
     743     *
     744     * @return array<string, mixed>
    748745     */
    749746    public function get_coupon_discount( array $coupons, array $item ): array {
     
    10471044
    10481045    /**
    1049      * Compatibility with TI WooCommerce Wishlist
    1050      *
    1051      * @param array $item_data Item data.
    1052      *
    1053      * @return array
    1054      */
    1055     public function Compatibility_With_TI_Wishlist( array $item_data ): array {
    1056 
    1057         foreach ( array_keys( $item_data ) as $key ) {
    1058             if ( strpos( $key, 'gtmkit_' ) === 0 ) {
    1059                 unset( $item_data[ $key ] );
    1060             }
    1061         }
    1062 
    1063         return $item_data;
    1064     }
    1065 
    1066     /**
    10671046     * Registers the actual data into each endpoint.
    10681047     */
     
    10961075     * @param WC_Product $product Current product data.
    10971076     *
    1098      * @return array $product Registered data or empty array if condition is not satisfied.
     1077     * @return array<string, mixed> $product Registered data or empty array if condition is not satisfied.
    10991078     */
    11001079    public function extend_product_data( $product ): array {
     
    11071086     * Register GTM data into products endpoint.
    11081087     *
    1109      * @param array $cart_item Cart item data.
    1110      *
    1111      * @return array $product Registered data or empty array if condition is not satisfied.
     1088     * @param array<string, mixed> $cart_item Cart item data.
     1089     *
     1090     * @return array<string, mixed> $product Registered data or empty array if condition is not satisfied.
    11121091     */
    11131092    public function extend_cart_data( array $cart_item ): array {
     
    11171096    }
    11181097
    1119 
    11201098    /**
    11211099     * Register subscription product schema into cart/items endpoint.
    11221100     *
    1123      * @return array Registered schema.
     1101     * @return array<string, mixed> Registered schema.
    11241102     */
    11251103    public function extend_product_schema(): array {
     
    11391117     * @param int $post_id The post ID.
    11401118     *
    1141      * @return array
     1119     * @return array<int, mixed>
    11421120     */
    11431121    public function has_woocommerce_blocks( int $post_id ): array {
     
    11621140     * Get WooCommerce blocks
    11631141     *
    1164      * @return array
     1142     * @return array<int, mixed>
    11651143     */
    11661144    public function get_woocommerce_blocks(): array {
     
    11711149     * Include customer data
    11721150     *
    1173      * @param array $data_layer The datalayer content.
    1174      * @param mixed $order_value Order value.
    1175      *
    1176      * @return array
     1151     * @param array<string, mixed> $data_layer The datalayer content.
     1152     * @param mixed                $order_value Order value.
     1153     *
     1154     * @return array<string, mixed>
    11771155     */
    11781156    public function include_customer_data( array $data_layer, $order_value ): array {
     
    12431221     * @param WC_Order $order The order.
    12441222     *
    1245      * @return array
     1223     * @return array<int, mixed>
    12461224     */
    12471225    private function get_order_items( WC_Order $order ): array {
  • gtm-kit/trunk/src/Options.php

    r3118062 r3149785  
    2323     * All the options.
    2424     *
    25      * @var array
    26      */
    27     private $options;
     25     * @var array<string, mixed>
     26     */
     27    private array $options;
    2828
    2929    /**
    3030     * Map of all the default options
    3131     *
    32      * @var array
    33      */
    34     private static $map = [
     32     * @var array<string, array<string, array<string, mixed>>>
     33     */
     34    private static array $map = [
    3535        'general'      => [
    3636            'gtm_id'                  => [
     
    132132     * @param mixed $old_value The old value.
    133133     *
    134      * @return array|null
     134     * @return array<string, mixed>|null
    135135     */
    136136    public function pre_update_option( $new_value, $old_value ): ?array {
     
    144144     * The default options.
    145145     *
    146      * @return array
     146     * @return array<string, mixed>
    147147     */
    148148    public static function get_defaults(): array {
    149149
    150150        if ( ! function_exists( 'is_plugin_active' ) ) {
    151             include_once ABSPATH . 'wp-admin/includes/plugin.php';
     151            require_once ABSPATH . 'wp-admin/includes/plugin.php';
    152152        }
    153153
     
    217217     * @param string $key The option key.
    218218     *
    219      * @return array|null
     219     * @return array<string, mixed>|null
    220220     */
    221221    protected function get_default_key_value( string $group, string $key ): ?array {
     
    255255     * Set plugin options.
    256256     *
    257      * @param array $options Plugin options.
    258      * @param bool  $first_install Add option on first install.
    259      * @param bool  $overwrite_existing Overwrite existing settings or merge.
     257     * @param array<string, mixed> $options Plugin options.
     258     * @param bool                 $first_install Add option on first install.
     259     * @param bool                 $overwrite_existing Overwrite existing settings or merge.
    260260     */
    261261    public function set( array $options, bool $first_install = false, bool $overwrite_existing = true ): void {
     
    285285     * Process the generic plugin options.
    286286     *
    287      * @param array $options The options array.
    288      *
    289      * @return array
     287     * @param array<string, mixed> $options The options array.
     288     *
     289     * @return array<string, mixed>
    290290     */
    291291    private function process_generic_options( array $options ): array {
     
    314314     * Merge recursively, including a proper substitution of values in sub-arrays when keys are the same.
    315315     *
    316      * @return array
     316     * @return array<string, mixed>
    317317     */
    318318    public static function array_merge_recursive(): array {
     
    360360     * Get all the options, but without stripping the slashes.
    361361     *
    362      * @return array
     362     * @return array<string, mixed>
    363363     */
    364364    public function get_all_raw(): array {
  • gtm-kit/trunk/src/js/woocommerce.js

    r3055017 r3149785  
    8787        ) {
    8888            event = 'add_to_cart';
    89         } else if (
     89        } else if ( window.gtmkit_settings.wc.wishlist &&
    9090            (eventTargetElement.closest('.products') ||
    9191                eventTargetElement.closest('.wc-block-grid__products')) &&
     
    149149            if ( eventTargetElement.closest( '.single_add_to_cart_button:not(.disabled,.input-needed)' ) ) {
    150150                event = 'add_to_cart';
    151             } else if ( eventTargetElement.closest( window.gtmkit_settings.wc.css_selectors.single_product_wishlist ) ) {
     151            } else if ( window.gtmkit_settings.wc.wishlist && eventTargetElement.closest( window.gtmkit_settings.wc.css_selectors.single_product_wishlist ) ) {
    152152                event = 'add_to_wishlist';
    153153            } else {
  • gtm-kit/trunk/src/scss/_tailwind-compiled.scss

    r3134629 r3149785  
    11/*
    2 ! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com
     2! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com
    33*/
    44
     
    655655}
    656656
    657 .gtmkit-mb-0 {
    658   margin-bottom: 0px;
    659 }
    660 
    661657.gtmkit-mb-0\.5 {
    662658  margin-bottom: 0.125rem;
     
    703699}
    704700
     701.gtmkit-ml-6 {
     702  margin-left: 1.5rem;
     703}
     704
     705.gtmkit-mr-2 {
     706  margin-right: 0.5rem;
     707}
     708
    705709.gtmkit-mr-8 {
    706710  margin-right: 2rem;
     
    727731}
    728732
    729 .gtmkit-ml-6 {
    730   margin-left: 1.5rem;
    731 }
    732 
    733733.gtmkit-block {
    734734  display: block;
     
    747747}
    748748
    749 .gtmkit-h-0 {
    750   height: 0px;
     749.gtmkit-hidden {
     750  display: none;
    751751}
    752752
     
    755755}
    756756
    757 .gtmkit-h-2 {
    758   height: 0.5rem;
    759 }
    760 
    761757.gtmkit-h-2\.5 {
    762758  height: 0.625rem;
     
    771767}
    772768
     769.gtmkit-h-min {
     770  height: -moz-min-content;
     771  height: min-content;
     772}
     773
    773774.gtmkit-h-screen {
    774775  height: 100vh;
     
    783784}
    784785
    785 .gtmkit-w-2 {
    786   width: 0.5rem;
    787 }
    788 
    789786.gtmkit-w-2\.5 {
    790787  width: 0.625rem;
    791 }
    792 
    793 .gtmkit-w-3\/4 {
    794   width: 75%;
    795788}
    796789
     
    844837}
    845838
     839.gtmkit-max-w-screen-lg {
     840  max-width: 1024px;
     841}
     842
    846843.gtmkit-max-w-xl {
    847844  max-width: 36rem;
     
    860857}
    861858
     859.gtmkit-cursor-pointer {
     860  cursor: pointer;
     861}
     862
    862863.gtmkit-grid-cols-2 {
    863864  grid-template-columns: repeat(2, minmax(0, 1fr));
     
    876877}
    877878
     879.\!gtmkit-justify-start {
     880  justify-content: flex-start !important;
     881}
     882
    878883.gtmkit-justify-center {
    879884  justify-content: center;
     
    902907.gtmkit-gap-8 {
    903908  gap: 2rem;
     909}
     910
     911.gtmkit-gap-x-16 {
     912  -moz-column-gap: 4rem;
     913       column-gap: 4rem;
    904914}
    905915
     
    922932}
    923933
     934.gtmkit-space-y-4 > :not([hidden]) ~ :not([hidden]) {
     935  --tw-space-y-reverse: 0;
     936  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
     937  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
     938}
     939
    924940.gtmkit-space-y-8 > :not([hidden]) ~ :not([hidden]) {
    925941  --tw-space-y-reverse: 0;
     
    969985}
    970986
     987.gtmkit-border-t-0 {
     988  border-top-width: 0px;
     989}
     990
    971991.gtmkit-border-t-4 {
    972992  border-top-width: 4px;
     
    9941014}
    9951015
     1016.gtmkit-bg-color-background-disabled {
     1017  background-color: var(--gtmkit-button-disabled-bg);
     1018}
     1019
    9961020.gtmkit-bg-color-border {
    9971021  background-color: var(--gtmkit-border-color);
     
    10001024.gtmkit-bg-color-button-disabled {
    10011025  background-color: var(--gtmkit-button-disabled);
     1026}
     1027
     1028.gtmkit-bg-color-error {
     1029  background-color: var(--gtmkit-color-error);
    10021030}
    10031031
     
    10311059}
    10321060
     1061.\!gtmkit-px-3 {
     1062  padding-left: 0.75rem !important;
     1063  padding-right: 0.75rem !important;
     1064}
     1065
    10331066.\!gtmkit-px-6 {
    10341067  padding-left: 1.5rem !important;
     
    10411074}
    10421075
     1076.\!gtmkit-py-1 {
     1077  padding-top: 0.25rem !important;
     1078  padding-bottom: 0.25rem !important;
     1079}
     1080
    10431081.\!gtmkit-py-4 {
    10441082  padding-top: 1rem !important;
     
    10511089}
    10521090
     1091.gtmkit-px-1\.5 {
     1092  padding-left: 0.375rem;
     1093  padding-right: 0.375rem;
     1094}
     1095
    10531096.gtmkit-px-16 {
    10541097  padding-left: 4rem;
     
    11061149}
    11071150
     1151.gtmkit-py-3 {
     1152  padding-top: 0.75rem;
     1153  padding-bottom: 0.75rem;
     1154}
     1155
    11081156.gtmkit-py-4 {
    11091157  padding-top: 1rem;
     
    11161164}
    11171165
     1166.gtmkit-py-px {
     1167  padding-top: 1px;
     1168  padding-bottom: 1px;
     1169}
     1170
    11181171.gtmkit-pb-6 {
    11191172  padding-bottom: 1.5rem;
     
    12191272.gtmkit-leading-5 {
    12201273  line-height: 1.25rem;
     1274}
     1275
     1276.gtmkit-leading-\[1\.125rem\] {
     1277  line-height: 1.125rem;
    12211278}
    12221279
  • gtm-kit/trunk/vendor/composer/autoload_classmap.php

    r3112163 r3149785  
    1717    'TLA_Media\\GTM_Kit\\Admin\\IntegrationsOptionsPage' => $baseDir . '/src/Admin/IntegrationsOptionsPage.php',
    1818    'TLA_Media\\GTM_Kit\\Admin\\MetaBox' => $baseDir . '/src/Admin/MetaBox.php',
     19    'TLA_Media\\GTM_Kit\\Admin\\Notification' => $baseDir . '/src/Admin/Notification.php',
     20    'TLA_Media\\GTM_Kit\\Admin\\NotificationsHandler' => $baseDir . '/src/Admin/NotificationsHandler.php',
     21    'TLA_Media\\GTM_Kit\\Admin\\PluginAvailability' => $baseDir . '/src/Admin/PluginAvailability.php',
     22    'TLA_Media\\GTM_Kit\\Admin\\PluginSuggestions' => $baseDir . '/src/Admin/PluginSuggestions.php',
    1923    'TLA_Media\\GTM_Kit\\Admin\\SetupWizard' => $baseDir . '/src/Admin/SetupWizard.php',
    2024    'TLA_Media\\GTM_Kit\\Admin\\TemplatesOptionsPage' => $baseDir . '/src/Admin/TemplatesOptionsPage.php',
     25    'TLA_Media\\GTM_Kit\\Admin\\UpgradesOptionsPage' => $baseDir . '/src/Admin/UpgradesOptionsPage.php',
     26    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\Conditional' => $baseDir . '/src/Common/Conditionals/Conditional.php',
     27    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\ContactForm7Conditional' => $baseDir . '/src/Common/Conditionals/ContactForm7Conditional.php',
     28    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\EasyDigitalDownloadsConditional' => $baseDir . '/src/Common/Conditionals/EasyDigitalDownloadsConditional.php',
     29    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\PremiumConditional' => $baseDir . '/src/Common/Conditionals/PremiumConditional.php',
     30    'TLA_Media\\GTM_Kit\\Common\\Conditionals\\WooCommerceConditional' => $baseDir . '/src/Common/Conditionals/WooCommerceConditional.php',
    2131    'TLA_Media\\GTM_Kit\\Common\\RestAPIServer' => $baseDir . '/src/Common/RestAPIServer.php',
    2232    'TLA_Media\\GTM_Kit\\Common\\Util' => $baseDir . '/src/Common/Util.php',
  • gtm-kit/trunk/vendor/composer/autoload_static.php

    r3112163 r3149785  
    3232        'TLA_Media\\GTM_Kit\\Admin\\IntegrationsOptionsPage' => __DIR__ . '/../..' . '/src/Admin/IntegrationsOptionsPage.php',
    3333        'TLA_Media\\GTM_Kit\\Admin\\MetaBox' => __DIR__ . '/../..' . '/src/Admin/MetaBox.php',
     34        'TLA_Media\\GTM_Kit\\Admin\\Notification' => __DIR__ . '/../..' . '/src/Admin/Notification.php',
     35        'TLA_Media\\GTM_Kit\\Admin\\NotificationsHandler' => __DIR__ . '/../..' . '/src/Admin/NotificationsHandler.php',
     36        'TLA_Media\\GTM_Kit\\Admin\\PluginAvailability' => __DIR__ . '/../..' . '/src/Admin/PluginAvailability.php',
     37        'TLA_Media\\GTM_Kit\\Admin\\PluginSuggestions' => __DIR__ . '/../..' . '/src/Admin/PluginSuggestions.php',
    3438        'TLA_Media\\GTM_Kit\\Admin\\SetupWizard' => __DIR__ . '/../..' . '/src/Admin/SetupWizard.php',
    3539        'TLA_Media\\GTM_Kit\\Admin\\TemplatesOptionsPage' => __DIR__ . '/../..' . '/src/Admin/TemplatesOptionsPage.php',
     40        'TLA_Media\\GTM_Kit\\Admin\\UpgradesOptionsPage' => __DIR__ . '/../..' . '/src/Admin/UpgradesOptionsPage.php',
     41        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\Conditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/Conditional.php',
     42        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\ContactForm7Conditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/ContactForm7Conditional.php',
     43        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\EasyDigitalDownloadsConditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/EasyDigitalDownloadsConditional.php',
     44        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\PremiumConditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/PremiumConditional.php',
     45        'TLA_Media\\GTM_Kit\\Common\\Conditionals\\WooCommerceConditional' => __DIR__ . '/../..' . '/src/Common/Conditionals/WooCommerceConditional.php',
    3646        'TLA_Media\\GTM_Kit\\Common\\RestAPIServer' => __DIR__ . '/../..' . '/src/Common/RestAPIServer.php',
    3747        'TLA_Media\\GTM_Kit\\Common\\Util' => __DIR__ . '/../..' . '/src/Common/Util.php',
  • gtm-kit/trunk/vendor/composer/installed.php

    r3139454 r3149785  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '44b18f33aef58db2d6ac1b6fa29c4f9b583df746',
     6        'reference' => '8f779ad9f08f3aeba4a68076cd25114917840707',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '44b18f33aef58db2d6ac1b6fa29c4f9b583df746',
     16            'reference' => '8f779ad9f08f3aeba4a68076cd25114917840707',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • gtm-kit/trunk/vendor/composer/platform_check.php

    r2780851 r3149785  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 70200)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 70400)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
Note: See TracChangeset for help on using the changeset viewer.