diff --git a/assets/css/admin.css b/assets/css/admin.css index b473efa..c1c462d 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -1,6 +1,1874 @@ -: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-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} +:root { + --gtmkit-background-white: #fff; + --gtmkit-background-grey: #f0f0f1; + --gtmkit-border-color: #ddd; + --gtmkit-text-color-heading: #454545; + --gtmkit-text-color-grey: #777777; + --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 #DDDDDD; + --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: #DDDDDD; + --gtmkit-button-secondary-text: #777; + --gtmkit-button-secondary-text-hover: #454545; +} /* ! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com -*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,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-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}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{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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}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: }::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: }.gtmkit-absolute{position:absolute}.gtmkit-relative{position:relative}.gtmkit-inset-0{inset:0}.gtmkit-z-10{z-index:10}.gtmkit-m-4{margin:1rem}.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-12{margin-bottom:3rem}.gtmkit-mb-14{margin-bottom:3.5rem}.gtmkit-mb-20{margin-bottom:5rem}.gtmkit-mb-4{margin-bottom:1rem}.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-mt-12{margin-top:3rem}.gtmkit-mt-16{margin-top:4rem}.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-list-item{display:list-item}.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-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-max-w-3xl{max-width:48rem}.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-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gtmkit-items-center{align-items:center}.gtmkit-justify-center{justify-content:center}.gtmkit-gap-16{gap:4rem}.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-whitespace-nowrap{white-space:nowrap}.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-b{border-bottom-width:1px}.gtmkit-border-b-2{border-bottom-width:2px}.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-text-color-grey)}.gtmkit-border-color-primary{border-color:var(--gtmkit-color-primary)}.gtmkit-bg-color-border{background-color:var(--gtmkit-border-color)}.gtmkit-bg-color-primary{background-color:var(--gtmkit-color-primary)}.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-px-8{padding-left:2rem!important;padding-right:2rem!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-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-8{padding-bottom:2rem;padding-top:2rem}.gtmkit-text-left{text-align:left}.gtmkit-text-center{text-align:center}.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-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-font-bold{font-weight:700}.gtmkit-font-light{font-weight:300}.gtmkit-font-medium{font-weight:500}.gtmkit-text-color-grey{color:var(--gtmkit-text-color-grey)}.gtmkit-text-color-heading{color:var(--gtmkit-text-color-heading)}.gtmkit-text-color-primary{color:var(--gtmkit-color-primary)}.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-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}.disabled\:\!gtmkit-bg-color-button-disabled:disabled{background-color:var(--gtmkit-button-disabled-bg)!important}.disabled\:\!gtmkit-text-color-grey:disabled{color:var(--gtmkit-text-color-grey)!important}@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}}.gtmkit-admin-page #wpcontent{padding-left:0!important}.gtmkit-admin-page #wpcontent *,.gtmkit-admin-page #wpcontent :after,.gtmkit-admin-page #wpcontent :before{box-sizing:border-box}.gtmkit_header{padding:24px var(--gtmkit-space-h)}.gtmkit_header h1#gtmkit-title{align-items:center;display:flex;font-size:28px;font-weight:500;margin:0}.gtmkit_header h1#gtmkit-title img{margin-right:1em}.gtmkit-header-navigation{align-items:center;background:var(--gtmkit-background-white);border-color:var(--gtmkit-border-color);border-style:solid;border-width:1px 0;display:flex;justify-content:space-between;min-height:60px;padding:0 var(--gtmkit-space-h)}.gtmkit-header-navigation .gtmkit-nav-tab-wrapper{align-items:center;display:flex;margin:0}.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li{border-top:none;margin-bottom:0;margin-right:2rem;outline:0!important}.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a{border-bottom:4px solid var(--gtmkit-background-white);box-shadow:none;color:var(--gtmkit-text-color-grey);display:block;font-weight:600;padding:20px 0 18px;text-decoration:none;transition:border .3s ease}.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a.active,.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a.active:focus,.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a.active:focus:active{border-color:var(--gtmkit-color-primary);border-top:none;color:var(--gtmkit-text-color-heading)}.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a.active:hover,.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a:hover{border-color:var(--gtmkit-text-color-grey)}.gtmkit-header-navigation .gtmkit-nav-tab-wrapper .nav-tab-active,.gtmkit-header-navigation .gtmkit-nav-tab-wrapper .nav-tab-active:focus,.gtmkit-header-navigation .gtmkit-nav-tab-wrapper .nav-tab-active:focus:active,.gtmkit-header-navigation .gtmkit-nav-tab-wrapper .nav-tab-active:hover{border-color:var(--gtmkit-color-primary);color:var(--gtmkit-text-color-heading)}.gtmkit-tab{display:none;max-width:1920px;padding:24px var(--gtmkit-space-h)}.gtmkit-tab.active{display:block}.gtmkit-tab label.select,.gtmkit-tab label.textinput{float:left;margin:5px 0;width:200px}.gtmkit-tab input.textinput,.gtmkit-tab select,.gtmkit-tab textarea{width:400px}.gtmkit-tab .description{margin:5px}.gtmkit-tab .success{color:var(--gtmkit-color-success)}.gtmkit-tab .error{color:var(--gtmkit-color-error)}.gtmkit-tab input[type=radio]{margin-bottom:-4px}.gtmkit-tab .form-table{margin-top:20px}.gtmkit-tab .form-table td,.gtmkit-tab .form-table th{padding-bottom:16px;padding-top:16px}.gtmkit-tab .form-table td fieldset label{font-size:13px}.gtmkit-tab .form-table td fieldset label.radio{line-height:1}.gtmkit-tab .gtmkit-form-legend{font-size:14px;font-weight:600}.gtmkit-metabox{background:var(--gtmkit-background-white);border:1px solid var(--gtmkit-border-color);border-radius:4px}.gtmkit-items-list{padding:calc(var(--gtmkit-space-v)/2) 12px 0;width:100%}.gtmkit-items-list ul{align-content:stretch;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-bottom:0}.gtmkit-items-list.single-item{padding-left:0}.gtmkit-items-list.single-item ul{justify-content:space-between}.gtmkit-items-list.single-item .gtmkit-list-item{margin-left:0;margin-right:0}.gtmkit-list-item{background:var(--gtmkit-background-white);border:1px solid var(--gtmkit-border-color);border-radius:4px;margin-bottom:24px;margin-left:12px;margin-right:12px;max-width:100%;padding:16px 20px;position:relative;width:100%}.gtmkit-list-item.disabled{opacity:.5}.gtmkit-list-item h3{font-size:var(--gtmkit-font-size-m);line-height:1.2;margin:0;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.gtmkit-list-item p{margin-bottom:0}.gtmkit-list-item .gtmkit-list-item-pill{border-radius:40px;font-size:12px;font-weight:700;line-height:1;padding:4px 8px;position:absolute;right:16px;text-transform:uppercase;top:16px}.gtmkit-list-item .gtmkit-list-item-pill.gtmkit-list-item-pill-green{background:var(--gtmkit-color-success);color:#fff}.gtmkit-list-item .gtmkit-list-item-pill.gtmkit-list-item-pill-orange{background:var(--gtmkit-color-warning);color:#fff}.gtmkit-list-item .gtmkit-list-item-pill.gtmkit-list-item-pill-red{background:var(--gtmkit-color-error);color:#fff}.gtmkit-list-item .gtmkit-list-item-pill.gtmkit-list-item-pill-grey{background:var(--gtmkit-button-disabled);color:#fff}.gtmkit-list-item.gtmkit-list-item-has-pill h3{max-width:calc(100% - 60px)}@media (min-width:1024px){.gtmkit-list-item{width:calc(50% - 24px)}}@media (min-width:1440px){.gtmkit-list-item{width:calc(33.33333% - 24px)}}.gtmkit-list-item-actions{min-height:40px;position:relative}.gtmkit-list-item:focus .gtmkit-list-item-description,.gtmkit-list-item:hover .gtmkit-list-item-description{opacity:0}.gtmkit-list-item:focus .gtmkit-list-item-buttons,.gtmkit-list-item:hover .gtmkit-list-item-buttons{opacity:1}.gtmkit-list-item-buttons{display:flex;justify-content:space-between;opacity:0;position:absolute;top:0;width:100%;z-index:10}.gtmkit-list-item-buttons .gtmkit-button{background-color:var(--gtmkit-button-primary-bg);border:1px solid var(--gtmkit-button-primary-bg);border-radius:4px;color:var(--gtmkit-button-primary-text);cursor:pointer;display:inline-block;flex-grow:1;font-size:var(--gtmkit-font-size-s);font-weight:700;line-height:1;margin-left:10px;padding:10px 16px;text-align:center;text-decoration:none}.gtmkit-list-item-buttons .gtmkit-button.gtmkit-button-secondary{background-color:var(--gtmkit-button-secondary-bg);border:1px solid var(--gtmkit-button-secondary-border);color:var(--gtmkit-button-secondary-text)}.gtmkit-list-item-buttons .gtmkit-button.gtmkit-button-secondary:focus,.gtmkit-list-item-buttons .gtmkit-button.gtmkit-button-secondary:hover{background-color:var(--gtmkit-button-secondary-bg-hover);border-color:var(--gtmkit-button-secondary-border);color:var(--gtmkit-button-secondary-text-hover)}.gtmkit-list-item-buttons .gtmkit-button:first-child{margin-left:0}.gtmkit-list-item-buttons .gtmkit-button:focus,.gtmkit-list-item-buttons .gtmkit-button:hover{background-color:var(--gtmkit-button-primary-bg-hover);border-color:var(--gtmkit-button-primary-bg-hover);color:var(--gtmkit-button-primary-text-hover)}#gtmkit-submit-container{padding:24px var(--gtmkit-space-h)}#sidebar-container{padding-left:20px;padding-top:10px;width:300px}#sidebar-container h3{line-height:1.4;margin:0;padding:8px 12px}#sidebar-container ul{margin:1em}#sidebar-container a{text-decoration:none}#sidebar-container .inside{background:var(--gtmkit-background-white);border-left:0;border-right:0}#sidebar-container #credit{color:#888;font-size:10px;line-height:3em;margin:3em 0;min-width:255px;text-align:center}.gtmkit-clear:after,.gtmkit-clear:before{content:" ";display:table}.gtmkit-clear:after{clear:both}.gtmkit-setting-row{border-bottom:1px solid #e4e4e4;font-size:14px;line-height:1.3;padding:30px 0}.gtmkit-setting-row:first-of-type{padding-top:10px!important}.gtmkit-setting-row.inactive{display:none}.gtmkit-setting-row .gtmkit-setting-mid-row-sep{background:#e4e4e4;border:0;height:1px;margin:15px 0}.gtmkit-setting-row.section-heading{padding:20px 0}.gtmkit-setting-row.section-heading.no-desc h2,.gtmkit-setting-row.section-heading.no-desc h4{margin:0}.gtmkit-setting-row.section-heading .gtmkit-setting-field{margin:0;max-width:1005px}.gtmkit-setting-row.gtmkit-setting-row-checkbox input[type=checkbox]{float:left;margin:1px 0 0}.gtmkit-setting-row.gtmkit-setting-row-checkbox input[type=checkbox]+label{margin:0 0 0 8px;vertical-align:baseline}.gtmkit-setting-row.gtmkit-setting-row-checkbox .desc{margin:0 0 0 30px}.gtmkit-setting-row.gtmkit-setting-row-checkbox input[type=checkbox]+label+.desc{margin:8px 0 0}.gtmkit-setting-row.gtmkit-setting-row-email .gtmkit-setting-label,.gtmkit-setting-row.gtmkit-setting-row-number .gtmkit-setting-label,.gtmkit-setting-row.gtmkit-setting-row-password .gtmkit-setting-label,.gtmkit-setting-row.gtmkit-setting-row-select .gtmkit-setting-label,.gtmkit-setting-row.gtmkit-setting-row-text .gtmkit-setting-label{padding-top:8px}.gtmkit-setting-row.gtmkit-setting-row-radio .gtmkit-setting-field input[type=radio]{margin:-3px 10px 0 0}.gtmkit-setting-row.gtmkit-setting-row-radio .gtmkit-setting-field label{display:inline-block;margin-right:30px}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field label{display:inline-block;vertical-align:middle}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute;top:auto;white-space:nowrap;width:1px}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked+.gtmkit-setting-toggle-switch{background-color:#00a32a}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked+.gtmkit-setting-toggle-switch:before{transform:translateX(16px)}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled:checked:hover+.gtmkit-setting-toggle-switch,.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled:not(:checked):hover+.gtmkit-setting-toggle-switch{box-shadow:none}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled:not(:checked):hover+.gtmkit-setting-toggle-switch{background-color:#ddd}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled+.gtmkit-setting-toggle-switch{background-color:#ddd;cursor:default}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled:checked+.gtmkit-setting-toggle-switch{background-color:#24ff5c;cursor:default}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked+.gtmkit-setting-toggle-switch+.gtmkit-setting-toggle-checked-label{display:inline-block}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked+.gtmkit-setting-toggle-switch+.gtmkit-setting-toggle-checked-label+.gtmkit-setting-toggle-unchecked-label{display:none}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled+.gtmkit-setting-toggle-switch+.gtmkit-setting-toggle-checked-label,.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled+.gtmkit-setting-toggle-switch+.gtmkit-setting-toggle-unchecked-label{color:#aaa}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked:focus+.gtmkit-setting-toggle-switch,.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked:hover+.gtmkit-setting-toggle-switch{box-shadow:0 0 0 1px #fff,0 0 0 3px #00a32a}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:not(:checked):focus+.gtmkit-setting-toggle-switch,.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:not(:checked):hover+.gtmkit-setting-toggle-switch{background-color:#999;box-shadow:0 0 0 1px #fff,0 0 0 3px #999}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-checked-label,.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-unchecked-label{color:#777;font-size:13px;font-weight:400;text-transform:uppercase}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-checked-label{display:none}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-switch{background-color:#ccc;border-radius:15px;cursor:pointer;display:inline-block;height:20px;margin:0 5px 0 0;position:relative;transition:all .2s ease-in-out;vertical-align:middle;width:36px}.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-switch:before{background-color:#fff;border-radius:50%;content:"";height:16px;left:2px;position:absolute;top:2px;transition:all .2s ease-in-out;width:16px}.gtmkit-setting-row h2,.gtmkit-setting-row h4{color:#444;font-size:20px;font-weight:700;margin:0 0 6px}.gtmkit-setting-row h2{margin-bottom:15px}.gtmkit-setting-row h3{color:#444;font-size:24px;font-weight:600;margin:0 0 20px}.gtmkit-setting-row h5{color:#444;font-size:16px;font-weight:600;margin:0 0 20px}.gtmkit-setting-row p{font-size:14px;line-height:1.5em;margin:12px 0 0}.gtmkit-setting-row p:first-of-type{margin:8px 0 0}.gtmkit-setting-row p.desc{color:#777;font-style:italic}.gtmkit-setting-row p.buttonned{margin-top:30px}.gtmkit-setting-row ul{margin:8px 0 0}.gtmkit-setting-row ul.list li{list-style-type:disc;margin-left:20px}.gtmkit-setting-row table.actions-list td,.gtmkit-setting-row table.actions-list th{padding:5px 5px 5px 0;text-align:left}.gtmkit-setting-row table.actions-list td.email{padding-right:2em}.gtmkit-setting-row table.actions-list td.status{width:100px}.gtmkit-setting-row table.actions-list td.actions a{border-bottom:1px solid;display:inline-block;margin-right:5px;text-decoration:none}.gtmkit-setting-row table.actions-list td.actions a[class*=delete],.gtmkit-setting-row table.actions-list td.actions a[class*=error]{color:#a00}.gtmkit-setting-row table.actions-list td.actions a[class*=delete]:active,.gtmkit-setting-row table.actions-list td.actions a[class*=delete]:focus,.gtmkit-setting-row table.actions-list td.actions a[class*=delete]:hover,.gtmkit-setting-row table.actions-list td.actions a[class*=error]:active,.gtmkit-setting-row table.actions-list td.actions a[class*=error]:focus,.gtmkit-setting-row table.actions-list td.actions a[class*=error]:hover{color:#400}.gtmkit-setting-row input[type=email],.gtmkit-setting-row input[type=number],.gtmkit-setting-row input[type=password],.gtmkit-setting-row input[type=text],.gtmkit-setting-row select{background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:none;color:#333;display:inline-block;line-height:1.3;margin:0 10px 0 0;min-height:35px;padding:7px 12px;vertical-align:middle;width:400px}.gtmkit-setting-row input[type=email][readonly],.gtmkit-setting-row input[type=number][readonly],.gtmkit-setting-row input[type=password][readonly],.gtmkit-setting-row input[type=text][readonly],.gtmkit-setting-row select[readonly]{background-color:#f9f9f9}.gtmkit-setting-row input[type=email].small-text,.gtmkit-setting-row input[type=number].small-text,.gtmkit-setting-row input[type=password].small-text,.gtmkit-setting-row input[type=text].small-text,.gtmkit-setting-row select.small-text{width:75px}.gtmkit-setting-row input[type=email]:focus,.gtmkit-setting-row input[type=number]:focus,.gtmkit-setting-row input[type=password]:focus,.gtmkit-setting-row input[type=text]:focus,.gtmkit-setting-row select:focus{border:1px solid #016aab;box-shadow:0 0 0 1px #016aab;outline:none}.gtmkit-setting-row input[type=email]:disabled,.gtmkit-setting-row input[type=number]:disabled,.gtmkit-setting-row input[type=password]:disabled,.gtmkit-setting-row input[type=text]:disabled,.gtmkit-setting-row select:disabled{opacity:.6}.gtmkit-setting-row input[type=checkbox]:focus,.gtmkit-setting-row input[type=radio]:focus{border:1px solid #016aab;box-shadow:0 0 0 1px #016aab;outline:none}.gtmkit-setting-row .gtmkit-dashicons-yes-alt-green.gtmkit-animate{animation:gtmkit-fade-in-stop-out 1s linear}.gtmkit-setting-row .gtmkit-dashicons-yes-alt-green.gtmkit-success{color:#00a32a}.gtmkit-setting-label{display:block;float:left;padding:0 20px 0 0;width:225px}.gtmkit-setting-label label{display:block;font-weight:600}.gtmkit-setting-field{display:block;margin:0 0 0 225px;max-width:800px}.gtmkit-setting-field hr{margin:20px 0}.gtmkit-setting-field .gtmkit-setting-field-row{display:flex;flex-wrap:wrap}.gtmkit-setting-field .gtmkit-setting-field-row>.gtmkit-btn{margin-right:10px}.gtmkit_radio_block{line-height:20px}[class^=gtmkit-dashicons]{display:inline-block;height:20px;width:20px}.gtmkit-dashicons-yes-alt-green{background-image:url(../images/icons/dashicons/dashicons-yes-alt-green.svg)}.gtmkit-dashicons-pdf-gray{background-image:url(../images/icons/dashicons/dashicons-pdf-grey.svg)}code{font-style:normal}.gtmkit_section_message{width:75%}.gtmkit_section_message.space-top{margin-top:100px}.gtmkit_section_message.warning{margin-top:10px;width:-moz-fit-content;width:fit-content}.gtmkit_section_message h3{line-height:1.4;margin:0;padding:8px 12px}.gtmkit_section_message h3 .version{color:#777;font-size:12px;font-weight:400;margin-left:8px}.gtmkit_section_message .inside{margin:1em}.gtmkit_section_message ul li{margin-bottom:12px} -/*# sourceMappingURL=admin.css.map */ \ No newline at end of file +*/ +/* +1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) +2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) +*/ +*, +::before, +::after { + box-sizing: border-box; + /* 1 */ + border-width: 0; + /* 2 */ + border-style: solid; + /* 2 */ + border-color: #e5e7eb; + /* 2 */ +} + +::before, +::after { + --tw-content: ""; +} + +/* +1. Use a consistent sensible line-height in all browsers. +2. Prevent adjustments of font size after orientation changes in iOS. +3. Use a more readable tab size. +4. Use the user's configured `sans` font-family by default. +5. Use the user's configured `sans` font-feature-settings by default. +6. Use the user's configured `sans` font-variation-settings by default. +*/ +html { + line-height: 1.5; + /* 1 */ + -webkit-text-size-adjust: 100%; + /* 2 */ + -moz-tab-size: 4; + /* 3 */ + -o-tab-size: 4; + tab-size: 4; + /* 3 */ + font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + /* 4 */ + font-feature-settings: normal; + /* 5 */ + font-variation-settings: normal; + /* 6 */ +} + +/* +1. Remove the margin in all browsers. +2. Inherit line-height from `html` so users can set them as a class directly on the `html` element. +*/ +body { + margin: 0; + /* 1 */ + line-height: inherit; + /* 2 */ +} + +/* +1. Add the correct height in Firefox. +2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) +3. Ensure horizontal rules are visible by default. +*/ +hr { + height: 0; + /* 1 */ + color: inherit; + /* 2 */ + border-top-width: 1px; + /* 3 */ +} + +/* +Add the correct text decoration in Chrome, Edge, and Safari. +*/ +abbr:where([title]) { + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; +} + +/* +Remove the default font size and weight for headings. +*/ +h1, +h2, +h3, +h4, +h5, +h6 { + font-size: inherit; + font-weight: inherit; +} + +/* +Reset links to optimize for opt-in styling instead of opt-out. +*/ +a { + color: inherit; + text-decoration: inherit; +} + +/* +Add the correct font weight in Edge and Safari. +*/ +b, +strong { + font-weight: bolder; +} + +/* +1. Use the user's configured `mono` font family by default. +2. Correct the odd `em` font sizing in all browsers. +*/ +code, +kbd, +samp, +pre { + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; + /* 1 */ + font-size: 1em; + /* 2 */ +} + +/* +Add the correct font size in all browsers. +*/ +small { + font-size: 80%; +} + +/* +Prevent `sub` and `sup` elements from affecting the line height in all browsers. +*/ +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* +1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) +2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) +3. Remove gaps between table borders by default. +*/ +table { + text-indent: 0; + /* 1 */ + border-color: inherit; + /* 2 */ + border-collapse: collapse; + /* 3 */ +} + +/* +1. Change the font styles in all browsers. +2. Remove the margin in Firefox and Safari. +3. Remove default padding in all browsers. +*/ +button, +input, +optgroup, +select, +textarea { + font-family: inherit; + /* 1 */ + font-size: 100%; + /* 1 */ + font-weight: inherit; + /* 1 */ + line-height: inherit; + /* 1 */ + color: inherit; + /* 1 */ + margin: 0; + /* 2 */ + padding: 0; + /* 3 */ +} + +/* +Remove the inheritance of text transform in Edge and Firefox. +*/ +button, +select { + text-transform: none; +} + +/* +1. Correct the inability to style clickable types in iOS and Safari. +2. Remove default button styles. +*/ +button, +[type=button], +[type=reset], +[type=submit] { + -webkit-appearance: button; + /* 1 */ + background-color: transparent; + /* 2 */ + background-image: none; + /* 2 */ +} + +/* +Use the modern Firefox focus style for all focusable elements. +*/ +:-moz-focusring { + outline: auto; +} + +/* +Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) +*/ +:-moz-ui-invalid { + box-shadow: none; +} + +/* +Add the correct vertical alignment in Chrome and Firefox. +*/ +progress { + vertical-align: baseline; +} + +/* +Correct the cursor style of increment and decrement buttons in Safari. +*/ +::-webkit-inner-spin-button, +::-webkit-outer-spin-button { + height: auto; +} + +/* +1. Correct the odd appearance in Chrome and Safari. +2. Correct the outline style in Safari. +*/ +[type=search] { + -webkit-appearance: textfield; + /* 1 */ + outline-offset: -2px; + /* 2 */ +} + +/* +Remove the inner padding in Chrome and Safari on macOS. +*/ +::-webkit-search-decoration { + -webkit-appearance: none; +} + +/* +1. Correct the inability to style clickable types in iOS and Safari. +2. Change font properties to `inherit` in Safari. +*/ +::-webkit-file-upload-button { + -webkit-appearance: button; + /* 1 */ + font: inherit; + /* 2 */ +} + +/* +Add the correct display in Chrome and Safari. +*/ +summary { + display: list-item; +} + +/* +Removes the default spacing and border for appropriate elements. +*/ +blockquote, +dl, +dd, +h1, +h2, +h3, +h4, +h5, +h6, +hr, +figure, +p, +pre { + margin: 0; +} + +fieldset { + margin: 0; + padding: 0; +} + +legend { + padding: 0; +} + +ol, +ul, +menu { + list-style: none; + margin: 0; + padding: 0; +} + +/* +Prevent resizing textareas horizontally by default. +*/ +textarea { + resize: vertical; +} + +/* +1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) +2. Set the default placeholder color to the user's configured gray 400 color. +*/ +input::-moz-placeholder, textarea::-moz-placeholder { + opacity: 1; + /* 1 */ + color: #9ca3af; + /* 2 */ +} + +input::placeholder, +textarea::placeholder { + opacity: 1; + /* 1 */ + color: #9ca3af; + /* 2 */ +} + +/* +Set the default cursor for buttons. +*/ +button, +[role=button] { + cursor: pointer; +} + +/* +Make sure disabled buttons don't get the pointer cursor. +*/ +:disabled { + cursor: default; +} + +/* +1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14) +2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) + This can trigger a poorly considered lint error in some tools but is included by design. +*/ +img, +svg, +video, +canvas, +audio, +iframe, +embed, +object { + display: block; + /* 1 */ + vertical-align: middle; + /* 2 */ +} + +/* +Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) +*/ +img, +video { + max-width: 100%; + height: auto; +} + +/* Make elements with the HTML hidden attribute stay hidden by default */ +[hidden] { + display: none; +} + +*, ::before, ::after { + --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: rgb(59 130 246 / 0.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: ; +} + +::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: rgb(59 130 246 / 0.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: ; +} + +.gtmkit-absolute { + position: absolute; +} + +.gtmkit-relative { + position: relative; +} + +.gtmkit-sticky { + position: sticky; +} + +.gtmkit-inset-0 { + inset: 0px; +} + +.gtmkit-z-10 { + z-index: 10; +} + +.gtmkit-m-4 { + margin: 1rem; +} + +.gtmkit-mx-auto { + margin-left: auto; + margin-right: auto; +} + +.gtmkit-my-16 { + margin-top: 4rem; + margin-bottom: 4rem; +} + +.gtmkit-my-4 { + margin-top: 1rem; + margin-bottom: 1rem; +} + +.gtmkit-my-6 { + margin-top: 1.5rem; + margin-bottom: 1.5rem; +} + +.gtmkit-my-8 { + margin-top: 2rem; + margin-bottom: 2rem; +} + +.\!gtmkit-mt-4 { + margin-top: 1rem !important; +} + +.gtmkit-mb-12 { + margin-bottom: 3rem; +} + +.gtmkit-mb-14 { + margin-bottom: 3.5rem; +} + +.gtmkit-mb-2 { + margin-bottom: 0.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: 0.5rem; +} + +.gtmkit-ml-4 { + margin-left: 1rem; +} + +.gtmkit-mr-8 { + margin-right: 2rem; +} + +.gtmkit-mt-12 { + margin-top: 3rem; +} + +.gtmkit-mt-16 { + margin-top: 4rem; +} + +.gtmkit-mt-3 { + margin-top: 0.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-list-item { + display: list-item; +} + +.gtmkit-hidden { + display: none; +} + +.gtmkit-h-0 { + height: 0px; +} + +.gtmkit-h-0\.5 { + height: 0.125rem; +} + +.gtmkit-h-2 { + height: 0.5rem; +} + +.gtmkit-h-2\.5 { + height: 0.625rem; +} + +.gtmkit-h-5 { + height: 1.25rem; +} + +.gtmkit-h-8 { + height: 2rem; +} + +.gtmkit-min-h-\[175px\] { + min-height: 175px; +} + +.gtmkit-w-2 { + width: 0.5rem; +} + +.gtmkit-w-2\.5 { + width: 0.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-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-shrink-0 { + flex-shrink: 0; +} + +.gtmkit-table-fixed { + table-layout: fixed; +} + +.gtmkit-grid-cols-2 { + grid-template-columns: repeat(2, minmax(0, 1fr)); +} + +.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-6 { + gap: 1.5rem; +} + +.gtmkit-space-x-8 > :not([hidden]) ~ :not([hidden]) { + --tw-space-x-reverse: 0; + margin-right: calc(2rem * var(--tw-space-x-reverse)); + margin-left: calc(2rem * (1 - var(--tw-space-x-reverse))); +} + +.gtmkit-space-y-1 > :not([hidden]) ~ :not([hidden]) { + --tw-space-y-reverse: 0; + margin-top: calc(0.25rem * (1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.25rem * var(--tw-space-y-reverse)); +} + +.gtmkit-space-y-2 > :not([hidden]) ~ :not([hidden]) { + --tw-space-y-reverse: 0; + margin-top: calc(0.5rem * (1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); +} + +.gtmkit-whitespace-nowrap { + white-space: nowrap; +} + +.gtmkit-rounded { + border-radius: 0.25rem; +} + +.gtmkit-rounded-full { + border-radius: 9999px; +} + +.gtmkit-rounded-md { + border-radius: 0.375rem; +} + +.gtmkit-border { + border-width: 1px; +} + +.gtmkit-border-2 { + border-width: 2px; +} + +.gtmkit-border-y { + border-top-width: 1px; + border-bottom-width: 1px; +} + +.gtmkit-border-b { + 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-text-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-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: 0.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-top: 1rem !important; + padding-bottom: 1rem !important; +} + +.\!gtmkit-py-6 { + padding-top: 1.5rem !important; + padding-bottom: 1.5rem !important; +} + +.gtmkit-px-16 { + padding-left: 4rem; + padding-right: 4rem; +} + +.gtmkit-px-2 { + padding-left: 0.5rem; + padding-right: 0.5rem; +} + +.gtmkit-px-20 { + padding-left: 5rem; + padding-right: 5rem; +} + +.gtmkit-px-3 { + padding-left: 0.75rem; + padding-right: 0.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-top: 0.25rem; + padding-bottom: 0.25rem; +} + +.gtmkit-py-12 { + padding-top: 3rem; + padding-bottom: 3rem; +} + +.gtmkit-py-2 { + padding-top: 0.5rem; + padding-bottom: 0.5rem; +} + +.gtmkit-py-3 { + padding-top: 0.75rem; + padding-bottom: 0.75rem; +} + +.gtmkit-py-4 { + padding-top: 1rem; + padding-bottom: 1rem; +} + +.gtmkit-py-6 { + padding-top: 1.5rem; + padding-bottom: 1.5rem; +} + +.gtmkit-py-8 { + padding-top: 2rem; + padding-bottom: 2rem; +} + +.gtmkit-pb-6 { + padding-bottom: 1.5rem; +} + +.gtmkit-pb-\[18px\] { + padding-bottom: 18px; +} + +.gtmkit-pt-5 { + padding-top: 1.25rem; +} + +.gtmkit-text-left { + text-align: left; +} + +.gtmkit-text-center { + text-align: center; +} + +.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-base { + font-size: 1rem; + line-height: 1.5rem; +} + +.gtmkit-text-lg { + font-size: 1.125rem; + line-height: 1.75rem; +} + +.gtmkit-text-sm { + font-size: 0.875rem; + line-height: 1.25rem; +} + +.gtmkit-text-xl { + font-size: 1.25rem; + line-height: 1.75rem; +} + +.gtmkit-text-xs { + font-size: 0.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-text-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-outline-0 { + outline-width: 0px; +} + +.gtmkit-drop-shadow-md { + --tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 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-property: opacity; + transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + transition-duration: 150ms; +} + +.gtmkit-duration-500 { + transition-duration: 500ms; +} + +.hover\:gtmkit-border-color-grey:hover { + border-color: var(--gtmkit-text-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-text-color-grey) !important; +} + +.gtmkit-group:hover .group-hover\:gtmkit-block { + display: block; +} + +.gtmkit-group:hover .group-hover\:gtmkit-hidden { + display: none; +} + +@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-flex { + display: flex; + } + .lg\:gtmkit-grid { + display: grid; + } + .lg\:gtmkit-w-1\/2 { + width: 50%; + } + .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)); + } +} +@media (min-width: 1536px) { + .\32 xl\:gtmkit-w-1\/3 { + width: 33.333333%; + } +} +.gtmkit-admin-page #wpcontent { + padding-left: 0 !important; +} +.gtmkit-admin-page #wpcontent *, +.gtmkit-admin-page #wpcontent *::before, +.gtmkit-admin-page #wpcontent *::after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.gtmkit_header { + padding: 24px var(--gtmkit-space-h); +} +.gtmkit_header h1#gtmkit-title { + margin: 0; + display: flex; + align-items: center; + font-size: 28px; + font-weight: 500; +} +.gtmkit_header h1#gtmkit-title img { + margin-right: 1em; +} + +.gtmkit-header-navigation { + align-items: center; + background: var(--gtmkit-background-white); + border-color: var(--gtmkit-border-color); + border-style: solid; + border-width: 1px 0; + display: flex; + justify-content: space-between; + min-height: 60px; + padding: 0 var(--gtmkit-space-h); +} +.gtmkit-header-navigation .gtmkit-nav-tab-wrapper { + display: flex; + align-items: center; + margin: 0; +} +.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li { + margin-bottom: 0; + margin-right: 2rem; + outline: 0 !important; + border-top: none; +} +.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a { + border-bottom: 4px solid var(--gtmkit-background-white); + color: var(--gtmkit-text-color-grey); + display: block; + font-weight: 600; + padding: 20px 0 18px 0; + text-decoration: none; + transition: border 300ms ease; + box-shadow: none; +} +.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a.active, .gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a.active:focus, .gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a.active:focus:active { + border-color: var(--gtmkit-color-primary); + color: var(--gtmkit-text-color-heading); + border-top: none; +} +.gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a.active:hover, .gtmkit-header-navigation .gtmkit-nav-tab-wrapper li a:hover { + border-color: var(--gtmkit-text-color-grey); +} +.gtmkit-header-navigation .gtmkit-nav-tab-wrapper .nav-tab-active, +.gtmkit-header-navigation .gtmkit-nav-tab-wrapper .nav-tab-active:focus, +.gtmkit-header-navigation .gtmkit-nav-tab-wrapper .nav-tab-active:focus:active, +.gtmkit-header-navigation .gtmkit-nav-tab-wrapper .nav-tab-active:hover { + border-color: var(--gtmkit-color-primary); + color: var(--gtmkit-text-color-heading); +} + +.gtmkit-tab { + padding: 24px var(--gtmkit-space-h); + display: none; + max-width: 1920px; +} +.gtmkit-tab.active { + display: block; +} +.gtmkit-tab label.select, +.gtmkit-tab label.textinput { + float: left; + width: 200px; + margin: 5px 0; +} +.gtmkit-tab input.textinput, .gtmkit-tab select, .gtmkit-tab textarea { + width: 400px; +} +.gtmkit-tab .description { + margin: 5px; +} +.gtmkit-tab .success { + color: var(--gtmkit-color-success); +} +.gtmkit-tab .error { + color: var(--gtmkit-color-error); +} +.gtmkit-tab input[type=radio] { + margin-bottom: -4px; +} +.gtmkit-tab .form-table { + margin-top: 20px; +} +.gtmkit-tab .form-table th, +.gtmkit-tab .form-table td { + padding-top: 16px; + padding-bottom: 16px; +} +.gtmkit-tab .form-table td fieldset label { + font-size: 13px; +} +.gtmkit-tab .form-table td fieldset label.radio { + line-height: 1; +} +.gtmkit-tab .gtmkit-form-legend { + font-size: 14px; + font-weight: 600; +} + +.gtmkit-metabox { + background: var(--gtmkit-background-white); + border: 1px solid var(--gtmkit-border-color); + border-radius: 4px; +} + +.gtmkit-items-list { + padding: calc(var(--gtmkit-space-v) / 2) 12px 0; + width: 100%; +} +.gtmkit-items-list ul { + align-content: stretch; + display: flex; + flex-wrap: wrap; + justify-content: flex-start; + margin-bottom: 0; +} +.gtmkit-items-list.single-item { + padding-left: 0; +} +.gtmkit-items-list.single-item ul { + justify-content: space-between; +} +.gtmkit-items-list.single-item .gtmkit-list-item { + margin-left: 0; + margin-right: 0; +} + +.gtmkit-list-item { + background: var(--gtmkit-background-white); + border: 1px solid var(--gtmkit-border-color); + border-radius: 4px; + margin-bottom: 24px; + margin-right: 12px; + margin-left: 12px; + max-width: 100%; + padding: 16px 20px; + position: relative; + width: 100%; +} +.gtmkit-list-item.disabled { + opacity: 0.5; +} +.gtmkit-list-item h3 { + font-size: var(--gtmkit-font-size-m); + line-height: 1.2; + margin: 0; + overflow: hidden; + position: relative; + text-overflow: ellipsis; + white-space: nowrap; +} +.gtmkit-list-item p { + margin-bottom: 0; +} +.gtmkit-list-item .gtmkit-list-item-pill { + position: absolute; + top: 16px; + right: 16px; + font-size: 12px; + font-weight: 700; + text-transform: uppercase; + line-height: 1; + padding: 4px 8px; + border-radius: 40px; +} +.gtmkit-list-item .gtmkit-list-item-pill.gtmkit-list-item-pill-green { + background: var(--gtmkit-color-success); + color: #fff; +} +.gtmkit-list-item .gtmkit-list-item-pill.gtmkit-list-item-pill-orange { + background: var(--gtmkit-color-warning); + color: #fff; +} +.gtmkit-list-item .gtmkit-list-item-pill.gtmkit-list-item-pill-red { + background: var(--gtmkit-color-error); + color: #fff; +} +.gtmkit-list-item .gtmkit-list-item-pill.gtmkit-list-item-pill-grey { + background: var(--gtmkit-button-disabled); + color: #fff; +} +.gtmkit-list-item.gtmkit-list-item-has-pill h3 { + max-width: calc(100% - 60px); +} + +@media (min-width: 1024px) { + .gtmkit-list-item { + width: calc(50% - 24px); + } +} +@media (min-width: 1440px) { + .gtmkit-list-item { + width: calc(33.3333333333% - 24px); + } +} +.gtmkit-list-item-actions { + position: relative; + min-height: 40px; +} + +.gtmkit-list-item:hover .gtmkit-list-item-description, .gtmkit-list-item:focus .gtmkit-list-item-description { + opacity: 0; +} + +.gtmkit-list-item:hover .gtmkit-list-item-buttons, .gtmkit-list-item:focus .gtmkit-list-item-buttons { + opacity: 1; +} + +.gtmkit-list-item-buttons { + display: flex; + justify-content: space-between; + opacity: 0; + position: absolute; + top: 0; + width: 100%; + z-index: 10; +} +.gtmkit-list-item-buttons .gtmkit-button { + flex-grow: 1; + margin-left: 10px; + text-align: center; + background-color: var(--gtmkit-button-primary-bg); + border: 1px solid var(--gtmkit-button-primary-bg); + border-radius: 4px; + color: var(--gtmkit-button-primary-text); + cursor: pointer; + display: inline-block; + font-size: var(--gtmkit-font-size-s); + font-weight: 700; + line-height: 1; + padding: 10px 16px; + text-decoration: none; +} +.gtmkit-list-item-buttons .gtmkit-button.gtmkit-button-secondary { + background-color: var(--gtmkit-button-secondary-bg); + border: 1px solid var(--gtmkit-button-secondary-border); + color: var(--gtmkit-button-secondary-text); +} +.gtmkit-list-item-buttons .gtmkit-button.gtmkit-button-secondary:hover, .gtmkit-list-item-buttons .gtmkit-button.gtmkit-button-secondary:focus { + background-color: var(--gtmkit-button-secondary-bg-hover); + border-color: var(--gtmkit-button-secondary-border); + color: var(--gtmkit-button-secondary-text-hover); +} +.gtmkit-list-item-buttons .gtmkit-button:first-child { + margin-left: 0; +} +.gtmkit-list-item-buttons .gtmkit-button:hover, .gtmkit-list-item-buttons .gtmkit-button:focus { + background-color: var(--gtmkit-button-primary-bg-hover); + border-color: var(--gtmkit-button-primary-bg-hover); + color: var(--gtmkit-button-primary-text-hover); +} + +#gtmkit-submit-container { + padding: 24px var(--gtmkit-space-h); +} + +#sidebar-container { + width: 300px; + padding-left: 20px; + padding-top: 10px; +} +#sidebar-container h3 { + padding: 8px 12px; + margin: 0; + line-height: 1.4; +} +#sidebar-container ul { + margin: 1em; +} +#sidebar-container a { + text-decoration: none; +} +#sidebar-container .inside { + background: var(--gtmkit-background-white); + border-left: 0; + border-right: 0; +} +#sidebar-container #credit { + text-align: center; + font-size: 10px; + color: #888; + line-height: 3em; + margin: 3em 0; + min-width: 255px; +} + +.gtmkit-clear:before { + content: " "; + display: table; +} +.gtmkit-clear:after { + clear: both; + content: " "; + display: table; +} + +.gtmkit-setting-row { + border-bottom: 1px solid #e4e4e4; + padding: 30px 0; + font-size: 14px; + line-height: 1.3; +} +.gtmkit-setting-row:first-of-type { + padding-top: 10px !important; +} +.gtmkit-setting-row.inactive { + display: none; +} +.gtmkit-setting-row .gtmkit-setting-mid-row-sep { + background: #e4e4e4; + height: 1px; + border: 0; + margin: 15px 0; +} +.gtmkit-setting-row.section-heading { + padding: 20px 0; +} +.gtmkit-setting-row.section-heading.no-desc h2, +.gtmkit-setting-row.section-heading.no-desc h4 { + margin: 0; +} +.gtmkit-setting-row.section-heading .gtmkit-setting-field { + margin: 0; + max-width: 1005px; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox input[type=checkbox] { + float: left; + margin: 1px 0 0 0; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox input[type=checkbox] + label { + margin: 0 0 0 8px; + vertical-align: baseline; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox .desc { + margin: 0 0 0 30px; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox input[type=checkbox] + label + .desc { + margin: 8px 0 0 0; +} +.gtmkit-setting-row.gtmkit-setting-row-text .gtmkit-setting-label, .gtmkit-setting-row.gtmkit-setting-row-password .gtmkit-setting-label, .gtmkit-setting-row.gtmkit-setting-row-number .gtmkit-setting-label, .gtmkit-setting-row.gtmkit-setting-row-email .gtmkit-setting-label { + padding-top: 8px; +} +.gtmkit-setting-row.gtmkit-setting-row-select .gtmkit-setting-label { + padding-top: 8px; +} +.gtmkit-setting-row.gtmkit-setting-row-radio .gtmkit-setting-field input[type=radio] { + margin: -3px 10px 0 0; +} +.gtmkit-setting-row.gtmkit-setting-row-radio .gtmkit-setting-field label { + margin-right: 30px; + display: inline-block; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field label { + vertical-align: middle; + display: inline-block; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox] { + position: absolute; + top: auto; + overflow: hidden; + clip: rect(1px, 1px, 1px, 1px); + width: 1px; + height: 1px; + white-space: nowrap; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked + .gtmkit-setting-toggle-switch { + background-color: #00a32a; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked + .gtmkit-setting-toggle-switch:before { + -webkit-transform: translateX(16px); + -ms-transform: translateX(16px); + transform: translateX(16px); +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled:checked:hover + .gtmkit-setting-toggle-switch, .gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled:not(:checked):hover + .gtmkit-setting-toggle-switch { + box-shadow: none; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled:not(:checked):hover + .gtmkit-setting-toggle-switch { + background-color: #ddd; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled + .gtmkit-setting-toggle-switch { + background-color: #ddd; + cursor: default; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled:checked + .gtmkit-setting-toggle-switch { + background-color: #24ff5c; + cursor: default; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked + .gtmkit-setting-toggle-switch + .gtmkit-setting-toggle-checked-label { + display: inline-block; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked + .gtmkit-setting-toggle-switch + .gtmkit-setting-toggle-checked-label + .gtmkit-setting-toggle-unchecked-label { + display: none; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled + .gtmkit-setting-toggle-switch + .gtmkit-setting-toggle-checked-label, .gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:disabled + .gtmkit-setting-toggle-switch + .gtmkit-setting-toggle-unchecked-label { + color: #aaaaaa; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked:hover + .gtmkit-setting-toggle-switch, .gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:checked:focus + .gtmkit-setting-toggle-switch { + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00a32a; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:not(:checked):hover + .gtmkit-setting-toggle-switch, .gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field input[type=checkbox]:not(:checked):focus + .gtmkit-setting-toggle-switch { + background-color: #999; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px #999; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-unchecked-label, +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-checked-label { + text-transform: uppercase; + font-weight: 400; + color: #777; + font-size: 13px; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-checked-label { + display: none; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-switch { + position: relative; + cursor: pointer; + background-color: #ccc; + border-radius: 15px; + -webkit-transition: all 0.2s ease-in-out; + -moz-transition: all 0.2s ease-in-out; + -ms-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; + vertical-align: middle; + display: inline-block; + margin: 0 5px 0 0; + width: 36px; + height: 20px; +} +.gtmkit-setting-row.gtmkit-setting-row-checkbox-toggle .gtmkit-setting-field .gtmkit-setting-toggle-switch:before { + position: absolute; + content: ""; + height: 16px; + width: 16px; + left: 2px; + top: 2px; + background-color: #fff; + border-radius: 50%; + -webkit-transition: all 0.2s ease-in-out; + -moz-transition: all 0.2s ease-in-out; + -ms-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} +.gtmkit-setting-row h2, .gtmkit-setting-row h4 { + color: #444; + font-size: 20px; + font-weight: 700; + margin: 0 0 6px 0; +} +.gtmkit-setting-row h2 { + margin-bottom: 15px; +} +.gtmkit-setting-row h3 { + color: #444; + font-size: 24px; + font-weight: 600; + margin: 0 0 20px 0; +} +.gtmkit-setting-row h5 { + color: #444; + font-size: 16px; + font-weight: 600; + margin: 0 0 20px 0; +} +.gtmkit-setting-row p { + margin: 12px 0 0; + font-size: 14px; + line-height: 1.5em; +} +.gtmkit-setting-row p:first-of-type { + margin: 8px 0 0; +} +.gtmkit-setting-row p.desc { + font-style: italic; + color: #777; +} +.gtmkit-setting-row p.buttonned { + margin-top: 30px; +} +.gtmkit-setting-row ul { + margin: 8px 0 0; +} +.gtmkit-setting-row ul.list li { + margin-left: 20px; + list-style-type: disc; +} +.gtmkit-setting-row table.actions-list td, .gtmkit-setting-row table.actions-list th { + padding: 5px 5px 5px 0; + text-align: left; +} +.gtmkit-setting-row table.actions-list td.email { + padding-right: 2em; +} +.gtmkit-setting-row table.actions-list td.status { + width: 100px; +} +.gtmkit-setting-row table.actions-list td.actions a { + border-bottom: 1px solid; + display: inline-block; + margin-right: 5px; + text-decoration: none; +} +.gtmkit-setting-row table.actions-list td.actions a[class*=delete], .gtmkit-setting-row table.actions-list td.actions a[class*=error] { + color: #a00; +} +.gtmkit-setting-row table.actions-list td.actions a[class*=delete]:hover, .gtmkit-setting-row table.actions-list td.actions a[class*=delete]:active, .gtmkit-setting-row table.actions-list td.actions a[class*=delete]:focus, .gtmkit-setting-row table.actions-list td.actions a[class*=error]:hover, .gtmkit-setting-row table.actions-list td.actions a[class*=error]:active, .gtmkit-setting-row table.actions-list td.actions a[class*=error]:focus { + color: #440000; +} +.gtmkit-setting-row input[type=text], +.gtmkit-setting-row input[type=email], +.gtmkit-setting-row input[type=number], +.gtmkit-setting-row input[type=password], +.gtmkit-setting-row select { + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + box-shadow: none; + color: #333; + display: inline-block; + vertical-align: middle; + padding: 7px 12px; + margin: 0 10px 0 0; + width: 400px; + min-height: 35px; + line-height: 1.3; +} +.gtmkit-setting-row input[type=text][readonly], +.gtmkit-setting-row input[type=email][readonly], +.gtmkit-setting-row input[type=number][readonly], +.gtmkit-setting-row input[type=password][readonly], +.gtmkit-setting-row select[readonly] { + background-color: #f9f9f9; +} +.gtmkit-setting-row input[type=text].small-text, +.gtmkit-setting-row input[type=email].small-text, +.gtmkit-setting-row input[type=number].small-text, +.gtmkit-setting-row input[type=password].small-text, +.gtmkit-setting-row select.small-text { + width: 75px; +} +.gtmkit-setting-row input[type=text]:focus, +.gtmkit-setting-row input[type=email]:focus, +.gtmkit-setting-row input[type=number]:focus, +.gtmkit-setting-row input[type=password]:focus, +.gtmkit-setting-row select:focus { + border: 1px solid #016AAB; + box-shadow: 0 0 0 1px #016AAB; + outline: none; +} +.gtmkit-setting-row input[type=text]:disabled, +.gtmkit-setting-row input[type=email]:disabled, +.gtmkit-setting-row input[type=number]:disabled, +.gtmkit-setting-row input[type=password]:disabled, +.gtmkit-setting-row select:disabled { + opacity: 0.6; +} +.gtmkit-setting-row input[type=checkbox]:focus, +.gtmkit-setting-row input[type=radio]:focus { + border: 1px solid #016AAB; + box-shadow: 0 0 0 1px #016AAB; + outline: none; +} +.gtmkit-setting-row .gtmkit-dashicons-yes-alt-green.gtmkit-animate { + -webkit-animation: gtmkit-fade-in-stop-out 1s linear; + animation: gtmkit-fade-in-stop-out 1s linear; +} +.gtmkit-setting-row .gtmkit-dashicons-yes-alt-green.gtmkit-success { + color: #00a32a; +} + +.gtmkit-setting-label { + display: block; + float: left; + width: 225px; + padding: 0 20px 0 0; +} +.gtmkit-setting-label label { + display: block; + font-weight: 600; +} + +.gtmkit-setting-field { + display: block; + margin: 0 0 0 225px; + max-width: 800px; +} +.gtmkit-setting-field hr { + margin: 20px 0; +} +.gtmkit-setting-field .gtmkit-setting-field-row { + display: flex; + flex-wrap: wrap; +} +.gtmkit-setting-field .gtmkit-setting-field-row > .gtmkit-btn { + margin-right: 10px; +} + +.gtmkit_radio_block { + line-height: 20px; +} + +[class^=gtmkit-dashicons] { + display: inline-block; + width: 20px; + height: 20px; +} + +.gtmkit-dashicons-yes-alt-green { + background-image: url("../images/icons/dashicons/dashicons-yes-alt-green.svg"); +} + +.gtmkit-dashicons-pdf-gray { + background-image: url("../images/icons/dashicons/dashicons-pdf-grey.svg"); +} + +code { + font-style: normal; +} + +.gtmkit_section_message { + width: 75%; +} +.gtmkit_section_message.space-top { + margin-top: 100px; +} +.gtmkit_section_message.warning { + margin-top: 10px; + width: fit-content; +} +.gtmkit_section_message h3 { + padding: 8px 12px; + margin: 0; + line-height: 1.4; +} +.gtmkit_section_message h3 .version { + color: #777; + font-size: 12px; + margin-left: 8px; + font-weight: 400; +} +.gtmkit_section_message .inside { + margin: 1em; +} +.gtmkit_section_message ul li { + margin-bottom: 12px; +} + +/*# sourceMappingURL=admin.css.map */ diff --git a/build/admin/settings.asset.php b/build/admin/settings.asset.php new file mode 100644 index 0000000..4c3c926 --- /dev/null +++ b/build/admin/settings.asset.php @@ -0,0 +1 @@ + array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '77ee83c4ea5024b59278'); diff --git a/build/admin/settings.css b/build/admin/settings.css new file mode 100644 index 0000000..df3978c --- /dev/null +++ b/build/admin/settings.css @@ -0,0 +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:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,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-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}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{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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}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: }::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: }.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-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-my-4{margin-bottom:1rem!important;margin-top:1rem!important}.\!gtmkit-my-6{margin-bottom:1.5rem!important;margin-top:1.5rem!important}.\!gtmkit-mt-4{margin-top:1rem!important}.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-16{margin-top:4rem}.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-list-item{display:list-item}.gtmkit-hidden{display:none}.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-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-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-shrink-0{flex-shrink:0}.gtmkit-table-fixed{table-layout:fixed}.gtmkit-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.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-6{gap:1.5rem}.gtmkit-space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*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-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-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-bottom:1.5rem;padding-top:1.5rem}.gtmkit-py-8{padding-bottom:2rem;padding-top:2rem}.gtmkit-pb-6{padding-bottom:1.5rem}.gtmkit-pb-\[18px\]{padding-bottom:18px}.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-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-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-60{opacity:.6}.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}.gtmkit-group:hover .group-hover\:gtmkit-block{display:block}.gtmkit-group:hover .group-hover\:gtmkit-hidden{display:none}@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-flex{display:flex}.lg\:gtmkit-grid{display:grid}.lg\:gtmkit-w-1\/2{width:50%}.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))}}@media(min-width:1536px){.\32 xl\:gtmkit-w-1\/3{width:33.333333%}}.gtmkit #wpcontent{padding-left:0!important}.gtmkit #wpcontent *,.gtmkit #wpcontent :after,.gtmkit #wpcontent :before{box-sizing:border-box}.gtmkit a:focus{box-shadow:none}.gtmkit p{font-size:14px}.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} diff --git a/build/admin/settings.js b/build/admin/settings.js new file mode 100644 index 0000000..0037b46 --- /dev/null +++ b/build/admin/settings.js @@ -0,0 +1 @@ +!function(){"use strict";var t={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},d:function(e,n){for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=window.wp.element,n=window.wp.components,a=window.lodash,i=window.wp.apiFetch,r=t.n(i);r().use(r().createNonceMiddleware(window.gtmkitSettings.nonce)),r().use(r().createRootURLMiddleware(window.gtmkitSettings.root));const o=async()=>{let t={};try{t=await r()({path:"gtmkit/v1/get-options",method:"POST"})}catch(t){return console.log("fetchSettings Errors:",t),{gtm_kit_settings_fetch_settings_errors:!0}}return!0===t.success?t.data:t},l=async()=>{let t={};try{t=await r()({path:"gtmkit/v1/get-site-data",method:"POST"})}catch(t){return console.log("fetchSiteData Errors:",t),{gtm_kit_settings_fetch_site_data_errors:!0}}return!0===t.success?t.data:t};var s=window.wp.i18n,m=(t,e)=>{const n=Object.assign({},t);switch(e.type){case"FETCH_SETTINGS":n.fetchedSettings=e.payload.fetchedSettings,n.stateSettings=e.payload.stateSettings,n.siteData=e.payload.siteData,n.installData=e.payload.installData,n.isPending=!1,n.canSave=!1,void 0===e.payload.fetchedSettings.integrations&&(n.fetchedSettings.integrations={}),void 0!==e.payload.fetchedSettings.gtm_kit_settings_fetch_settings_errors&&(n.notice=(0,s.__)("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;let t=!1,a=(0,s.__)("Saved Successfully.","gtm-kit"),i=!1;void 0!==e.payload.fetchedSettings.gtm_kit_settings_update_settings_errors&&(t=!0,a=(0,s.__)("An error occurred.","gtm-kit"),i=!0),n.canSave=t,n.notice=a,n.hasError=i;break;case"UPDATE_STATE":e.payload.fetchedSettings&&(n.fetchedSettings=e.payload.fetchedSettings),e.payload.stateSettings&&(n.stateSettings=e.payload.stateSettings),void 0!==e.payload.isPending&&(n.isPending=e.payload.isPending),void 0!==e.payload.notice&&(n.notice=e.payload.notice),void 0!==e.payload.hasError&&(n.hasError=e.payload.hasError),void 0!==e.payload.canSave&&(n.canSave=e.payload.canSave)}return n};const c=(0,e.createContext)();var u,g=t=>{const[n,i]=(0,e.useReducer)(m,{fetchedSettings:{},stateSettings:{},isPending:!0,notice:"",hasError:"",canSave:!1}),s=async()=>{const[t,e]=await Promise.all([o(),l()]),n="wizard"===window.gtmkitSettings.currentPage?await(async()=>{let t={};try{t=await r()({path:"gtmkit/v1/get-install-data",method:"POST"})}catch(t){return console.log("fetchSiteData Errors:",t),{gtm_kit_settings_fetch_site_data_errors:!0}}return!0===t.success?t.data:t})():{};i({type:"FETCH_SETTINGS",payload:{fetchedSettings:t,stateSettings:t,siteData:e,installData:n}})},u=async t=>{i({type:"UPDATE_STATE",payload:t})};(0,e.useEffect)((()=>{s()}),[]);const g={useDispatch:t=>{i(t)},useUpdateSettings:async()=>{i({type:"UPDATE_SETTINGS_BEFORE",payload:{isPending:!0}});const t=await(async t=>{let e={};try{e=await r()({path:"gtmkit/v1/set-options",method:"POST",data:t})}catch(t){return console.log("updateSettings Errors:",t),{gtm_kit_settings_update_settings_errors:!0}}return!0===e.success?e.data:e})(n.stateSettings);i({type:"UPDATE_SETTINGS",payload:{fetchedSettings:t,stateSettings:t}})},useFetchSettings:s,useUpdateState:u,useUpdateStateSettings:async(t,e,i)=>{const r=JSON.parse(JSON.stringify(n.stateSettings));let o;r[t][e]=i,o=!(0,a.isEqual)(r,n.fetchedSettings),u({stateSettings:r,canSave:o})},useImportSettings:async(t,e)=>{const i=JSON.parse(JSON.stringify(n.stateSettings));let r;const o={};o.general={...i.general,...e.general},"integrations"in e&&(o.integrations={...i.integrations,...e.integrations}),r=!(0,a.isEqual)(o,n.fetchedSettings),u({stateSettings:o,canSave:r})},useSettings:n.stateSettings,useIsPending:n.isPending,useNotice:n.notice,useHasError:n.hasError,useCanSave:n.canSave,useSiteData:n.siteData,useInstallData:n.installData};return(0,e.createElement)(c.Provider,{value:g},t.children)},d=window.React,p=t.n(d);function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e=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 x;function w(t,e,n){void 0===n&&(n="/");let a=L(("string"==typeof e?y(e):e).pathname||"/",n);if(null==a)return null;let i=S(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)))))}(i);let r=null;for(let t=0;null==r&&t{let o={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};o.relativePath.startsWith("/")&&(k(o.relativePath.startsWith(a),'Absolute route path "'+o.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(a.length));let l=B([a,o.relativePath]),s=n.concat(o);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 "'+l+'".'),S(t.children,e,s,l)),(null!=t.path||t.index)&&e.push({path:l,score:O(l,t.index),routesMeta:s})};return t.forEach(((t,e)=>{var n;if(""!==t.path&&null!=(n=t.path)&&n.includes("?"))for(let n of N(t.path))i(t,e,n);else i(t,e)})),e}function N(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 o=N(a.join("/")),l=[];return l.push(...o.map((t=>""===t?r:[r,t].join("/")))),i&&l.push(...o),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 C=/^:\w+$/,T=3,P=2,G=1,I=10,D=-2,M=t=>"*"===t;function O(t,e){let n=t.split("/"),a=n.length;return n.some(M)&&(a+=D),e&&(a+=P),n.filter((t=>!M(t))).reduce(((t,e)=>t+(C.test(e)?T:""===e?G:I)),a)}function R(t,e){let{routesMeta:n}=t,a={},i="/",r=[];for(let t=0;t(a.push(e),"/([^\\/]+)")));return t.endsWith("*")?(a.push("*"),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],o=r.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:a.reduce(((t,e,n)=>{if("*"===e){let t=l[n]||"";o=r.slice(0,r.length-t.length).replace(/(.)\/+$/,"$1")}return t[e]=function(t,e){try{return decodeURIComponent(t)}catch(n){return f(!1,'The value for the URL param "'+e+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),t}}(l[n]||"",e),t}),{}),pathname:r,pathnameBase:o,pattern:t}}function A(t){try{return decodeURI(t)}catch(e){return f(!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 L(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 W(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 and the router will parse it for you.'}function j(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}function H(t,e,n,a){let i;void 0===a&&(a=!1),"string"==typeof t?i=y(t):(i=h({},t),k(!i.pathname||!i.pathname.includes("?"),W("?","pathname","search",i)),k(!i.pathname||!i.pathname.includes("#"),W("#","pathname","hash",i)),k(!i.search||!i.search.includes("#"),W("#","search","hash",i)));let r,o=""===t||""===i.pathname,l=o?"/":i.pathname;if(a||null==l)r=n;else{let t=e.length-1;if(l.startsWith("..")){let e=l.split("/");for(;".."===e[0];)e.shift(),t-=1;i.pathname=e.join("/")}r=t>=0?e[t]:"/"}let s=function(t,e){void 0===e&&(e="/");let{pathname:n,search:a="",hash:i=""}="string"==typeof t?y(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:K(a),hash:J(i)}}(i,r),m=l&&"/"!==l&&l.endsWith("/"),c=(o||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!m&&!c||(s.pathname+="/"),s}const B=t=>t.join("/").replace(/\/\/+/g,"/"),F=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),K=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",J=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const z=["post","put","patch","delete"],$=(new Set(z),["get",...z]);function q(){return q=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.current=!0})),d.useCallback((function(a,i){void 0===i&&(i={}),n.current&&("number"==typeof a?t.navigate(a):t.navigate(a,q({fromRouteId:e},i)))}),[t,e])}():function(){et()||k(!1);let t=d.useContext(V),{basename:e,navigator:n}=d.useContext(X),{matches:a}=d.useContext(Z),{pathname:i}=nt(),r=JSON.stringify(j(a).map((t=>t.pathnameBase))),o=d.useRef(!1);return at((()=>{o.current=!0})),d.useCallback((function(a,l){if(void 0===l&&(l={}),!o.current)return;if("number"==typeof a)return void n.go(a);let s=H(a,JSON.parse(r),i,"path"===l.relative);null==t&&"/"!==e&&(s.pathname="/"===s.pathname?e:B([e,s.pathname])),(l.replace?n.replace:n.push)(s,l.state,l)}),[e,n,r,i,t])}()}function rt(t,e){let{relative:n}=void 0===e?{}:e,{matches:a}=d.useContext(Z),{pathname:i}=nt(),r=JSON.stringify(j(a).map((t=>t.pathnameBase)));return d.useMemo((()=>H(t,JSON.parse(r),i,"path"===n)),[t,r,i,n])}function ot(t,e,n){et()||k(!1);let{navigator:a}=d.useContext(X),{matches:i}=d.useContext(Z),r=i[i.length-1],o=r?r.params:{},l=(r&&r.pathname,r?r.pathnameBase:"/");r&&r.route;let s,m=nt();if(e){var c;let t="string"==typeof e?y(e):e;"/"===l||(null==(c=t.pathname)?void 0:c.startsWith(l))||k(!1),s=t}else s=m;let g=s.pathname||"/",p=w(t,{pathname:"/"===l?g:g.slice(l.length)||"/"}),h=function(t,e,n){var a;if(void 0===e&&(e=[]),void 0===n&&(n=null),null==t){var i;if(null==(i=n)||!i.errors)return null;t=n.matches}let r=t,o=null==(a=n)?void 0:a.errors;if(null!=o){let t=r.findIndex((t=>t.route.id&&(null==o?void 0:o[t.route.id])));t>=0||k(!1),r=r.slice(0,Math.min(r.length,t+1))}return r.reduceRight(((t,a,i)=>{let l=a.route.id?null==o?void 0:o[a.route.id]:null,s=null;n&&(s=a.route.errorElement||st);let m=e.concat(r.slice(0,i+1)),c=()=>{let e;return e=l?s:a.route.Component?d.createElement(a.route.Component,null):a.route.element?a.route.element:t,d.createElement(ct,{match:a,routeContext:{outlet:t,matches:m,isDataRoute:null!=n},children:e})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===i)?d.createElement(mt,{location:n.location,revalidation:n.revalidation,component:s,error:l,children:c(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):c()}),null)}(p&&p.map((t=>Object.assign({},t,{params:Object.assign({},o,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])}))),i,n);return e&&h?d.createElement(Q.Provider,{value:{location:q({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:u.Pop}},h):h}function lt(){let t=function(){var t;let e=d.useContext(tt),n=function(t){let e=d.useContext(Y);return e||k(!1),e}(gt.UseRouteError),a=dt(gt.UseRouteError);return e||(null==(t=n.errors)?void 0:t[a])}(),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,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},e),n?d.createElement("pre",{style:a},n):null,null)}const st=d.createElement(lt,null);class mt extends d.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: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 this.state.error?d.createElement(Z.Provider,{value:this.props.routeContext},d.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ct(t){let{routeContext:e,match:n,children:a}=t,i=d.useContext(V);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Z.Provider,{value:e},a)}var ut=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(ut||{}),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 dt(t){let e=function(t){let e=d.useContext(Z);return e||k(!1),e}(),n=e.matches[e.matches.length-1];return n.route.id||k(!1),n.route.id}function pt(t){let{to:e,replace:n,state:a,relative:i}=t;et()||k(!1);let{matches:r}=d.useContext(Z),{pathname:o}=nt(),l=it(),s=H(e,j(r).map((t=>t.pathnameBase)),o,"path"===i),m=JSON.stringify(s);return d.useEffect((()=>l(JSON.parse(m),{replace:n,state:a,relative:i})),[l,m,i,n,a]),null}function ht(t){k(!1)}function _t(t){let{basename:e="/",children:n=null,location:a,navigationType:i=u.Pop,navigator:r,static:o=!1}=t;et()&&k(!1);let l=e.replace(/^\/*/,"/"),s=d.useMemo((()=>({basename:l,navigator:r,static:o})),[l,r,o]);"string"==typeof a&&(a=y(a));let{pathname:m="/",search:c="",hash:g="",state:p=null,key:h="default"}=a,_=d.useMemo((()=>{let t=L(m,l);return null==t?null:{location:{pathname:t,search:c,hash:g,state:p,key:h},navigationType:i}}),[l,m,c,g,p,h,i]);return null==_?null:d.createElement(X.Provider,{value:s},d.createElement(Q.Provider,{children:n,value:_}))}function kt(t){let{children:e,location:n}=t;return ot(ft(e),n)}function ft(t,e){void 0===e&&(e=[]);let n=[];return d.Children.forEach(t,((t,a)=>{if(!d.isValidElement(t))return;let i=[...e,a];if(t.type===d.Fragment)return void n.push.apply(n,ft(t.props.children,i));t.type!==ht&&k(!1),t.props.index&&t.props.children&&k(!1);let r={id:t.props.id||i.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&&(r.children=ft(t.props.children,i)),n.push(r)})),n}function Et(){return Et=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}d.startTransition,new Promise((()=>{})),d.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const bt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],yt=["aria-current","caseSensitive","className","end","style","to","children"],xt=d.startTransition;function wt(t){let{basename:e,children:n,future:a,window:i}=t,r=d.useRef();var o;null==r.current&&(r.current=(void 0===(o={window:i,v5Compat:!0})&&(o={}),function(t,e,n,a){void 0===a&&(a={});let{window:i=document.defaultView,v5Compat:r=!1}=a,o=i.history,l=u.Pop,s=null,m=c();function c(){return(o.state||{idx:null}).idx}function g(){l=u.Pop;let t=c(),e=null==t?null:t-m;m=t,s&&s({action:l,location:p.location,delta:e})}function d(t){let e="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof t?t:b(t);return k(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}null==m&&(m=0,o.replaceState(h({},o.state,{idx:m}),""));let p={get action(){return l},get location(){return t(i,o)},listen(t){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(_,g),s=t,()=>{i.removeEventListener(_,g),s=null}},createHref(t){return e(i,t)},createURL:d,encodeLocation(t){let e=d(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){l=u.Push;let a=v(p.location,t,e);n&&n(a,t),m=c()+1;let g=E(a,m),d=p.createHref(a);try{o.pushState(g,"",d)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;i.location.assign(d)}r&&s&&s({action:l,location:p.location,delta:1})},replace:function(t,e){l=u.Replace;let a=v(p.location,t,e);n&&n(a,t),m=c();let i=E(a,m),g=p.createHref(a);o.replaceState(i,"",g),r&&s&&s({action:l,location:p.location,delta:0})},go(t){return o.go(t)}};return p}((function(t,e){let{pathname:n="/",search:a="",hash:i=""}=y(t.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),v("",{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){f("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")}),o)));let l=r.current,[s,m]=d.useState({action:l.action,location:l.location}),{v7_startTransition:c}=a||{},g=d.useCallback((t=>{c&&xt?xt((()=>m(t))):m(t)}),[m,c]);return d.useLayoutEffect((()=>l.listen(g)),[l,g]),d.createElement(_t,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:l})}const St="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Nt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ct=d.forwardRef((function(t,e){let n,{onClick:a,relative:i,reloadDocument:r,replace:o,state:l,target:s,to:m,preventScrollReset:c}=t,u=vt(t,bt),{basename:g}=d.useContext(X),p=!1;if("string"==typeof m&&Nt.test(m)&&(n=m,St))try{let t=new URL(window.location.href),e=m.startsWith("//")?new URL(t.protocol+m):new URL(m),n=L(e.pathname,g);e.origin===t.origin&&null!=n?m=n+e.search+e.hash:p=!0}catch(t){}let h=function(t,e){let{relative:n}=void 0===e?{}:e;et()||k(!1);let{basename:a,navigator:i}=d.useContext(X),{hash:r,pathname:o,search:l}=rt(t,{relative:n}),s=o;return"/"!==a&&(s="/"===o?a:B([a,o])),i.createHref({pathname:s,search:l,hash:r})}(m,{relative:i}),_=function(t,e){let{target:n,replace:a,state:i,preventScrollReset:r,relative:o}=void 0===e?{}:e,l=it(),s=nt(),m=rt(t,{relative:o});return d.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!==a?a:b(s)===b(m);l(t,{replace:n,state:i,preventScrollReset:r,relative:o})}}),[s,l,m,a,i,n,t,r,o])}(m,{replace:o,state:l,target:s,preventScrollReset:c,relative:i});return d.createElement("a",Et({},u,{href:n||h,onClick:p||r?a:function(t){a&&a(t),t.defaultPrevented||_(t)},ref:e,target:s}))})),Tt=d.forwardRef((function(t,e){let{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:r=!1,style:o,to:l,children:s}=t,m=vt(t,yt),c=rt(l,{relative:m.relative}),u=nt(),g=d.useContext(Y),{navigator:p}=d.useContext(X),h=p.encodeLocation?p.encodeLocation(c).pathname:c.pathname,_=u.pathname,k=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;a||(_=_.toLowerCase(),k=k?k.toLowerCase():null,h=h.toLowerCase());let f,E=_===h||!r&&_.startsWith(h)&&"/"===_.charAt(h.length),v=null!=k&&(k===h||!r&&k.startsWith(h)&&"/"===k.charAt(h.length)),b=E?n:void 0;f="function"==typeof i?i({isActive:E,isPending:v}):[i,E?"active":null,v?"pending":null].filter(Boolean).join(" ");let y="function"==typeof o?o({isActive:E,isPending:v}):o;return d.createElement(Ct,Et({},m,{"aria-current":b,className:f,ref:e,style:y,to:l}),"function"==typeof s?s({isActive:E,isPending:v}):s)}));var Pt,Gt;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher"})(Pt||(Pt={})),function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(Gt||(Gt={}));var It=({to:t,title:n})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Tt,{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 ":"")},n)),Dt=({page:t})=>(0,e.createElement)("nav",{className:"gtmkit-flex gtmkit-items-center gtmkit-px-8 gtmkit-border-y gtmkit-bg-white gtmkit-border-color-border gtmkit-space-x-8"},function({page:t}){const e=[{to:"general",title:(0,s.__)("Dashboard","gtm-kit")},{to:"container",title:(0,s.__)("Container","gtm-kit")},{to:"post-data",title:(0,s.__)("Post data","gtm-kit")},{to:"user-data",title:(0,s.__)("User data","gtm-kit")},{to:"google-consent-mode",title:(0,s.__)("Google Consent Mode","gtm-kit")},{to:"misc",title:(0,s.__)("Misc","gtm-kit")},{to:"whats-new",title:(0,s.__)("What's New","gtm-kit")}],n=[{to:"integrations",title:(0,s.__)("Integrations","gtm-kit")},{to:"woocommerce",title:"WooCommerce"},{to:"cf7",title:"Contact Form 7"},{to:"edd",title:"Easy Digital Downloads"}],a=[{to:"help",title:(0,s.__)("Help","gtm-kit")},{to:"support",title:(0,s.__)("Support","gtm-kit")}];switch(t){case"general":return e;case"integrations":return n;case"help":return a}}({page:t}).map((function(t){return(0,e.createElement)(It,{to:t.to,title:t.title})}))),Mt=({page:t})=>{let n=(0,s.__)("Settings","gtm-kit");switch(t){case"general":n=(0,s.__)("Settings","gtm-kit");break;case"integrations":n=(0,s.__)("Integrations","gtm-kit");break;case"help":n=(0,s.__)("Help","gtm-kit")}return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("header",{className:"gtmkit-px-8 gtmkit-py-6 gtmkit-sticky"},(0,e.createElement)("div",{className:"gtmkit-flex gtmkit-items-center gtmkit-justify-between"},(0,e.createElement)("h1",{className:"gtmkit-flex gtmkit-items-center gtmkit-font-medium gtmkit-text-3xl"},(0,e.createElement)("svg",{className:"gtmkit-mr-8",height:"44",viewBox:"0 0 160 54",width:"128",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("rect",{fill:"#888",height:"54",rx:"4.265",width:"160"}),(0,e.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,e.createElement)("g",{fill:"#fff",transform:"matrix(1.465202 0 0 1.465202 -4.582436 -7.553126)"},(0,e.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,e.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"}))),n))),(0,e.createElement)(Dt,{page:t}))};function Ot(){return Ot=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}function Ut(t,e){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ut(t,e)}function At(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ut(t,e)}function Lt(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Wt=window.ReactDOM,jt=t.n(Wt),Ht=p().createContext(null),Bt=function(t){return t.scrollTop},Ft="unmounted",Kt="exited",Jt="entering",zt="entered",$t="exiting",qt=function(t){function e(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=Kt,a.appearStatus=Jt):i=zt:i=e.unmountOnExit||e.mountOnEnter?Ft:Kt,a.state={status:i},a.nextCallback=null,a}At(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===Ft?{status:Kt}: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!==Jt&&n!==zt&&(e=Jt):n!==Jt&&n!==zt||(e=$t)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===Jt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:jt().findDOMNode(this);n&&Bt(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kt&&this.setState({status:Ft})},n.performEnter=function(t){var e=this,n=this.props.enter,a=this.context?this.context.isMounting:t,i=this.props.nodeRef?[a]:[jt().findDOMNode(this),a],r=i[0],o=i[1],l=this.getTimeouts(),s=a?l.appear:l.enter;t||n?(this.props.onEnter(r,o),this.safeSetState({status:Jt},(function(){e.props.onEntering(r,o),e.onTransitionEnd(s,(function(){e.safeSetState({status:zt},(function(){e.props.onEntered(r,o)}))}))}))):this.safeSetState({status:zt},(function(){e.props.onEntered(r)}))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),a=this.props.nodeRef?void 0:jt().findDOMNode(this);e?(this.props.onExit(a),this.safeSetState({status:$t},(function(){t.props.onExiting(a),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:Kt},(function(){t.props.onExited(a)}))}))}))):this.safeSetState({status:Kt},(function(){t.props.onExited(a)}))},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(a){n&&(n=!1,e.nextCallback=null,t(a))},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:jt().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],o=i[1];this.props.addEndListener(r,o)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===Ft)return null;var e=this.props,n=e.children,a=(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,Rt(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return p().createElement(Ht.Provider,{value:null},"function"==typeof n?n(t,a):p().cloneElement(p().Children.only(n),a))},e}(p().Component);function Vt(){}qt.contextType=Ht,qt.propTypes={},qt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vt,onEntering:Vt,onEntered:Vt,onExit:Vt,onExiting:Vt,onExited:Vt},qt.UNMOUNTED=Ft,qt.EXITED=Kt,qt.ENTERING=Jt,qt.ENTERED=zt,qt.EXITING=$t;var Yt=qt,Xt=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=Lt(n.className,a):n.setAttribute("class",Lt(n.className&&n.className.baseVal||"",a)));var n,a}))},Qt=function(t){function e(){for(var e,n=arguments.length,a=new Array(n),i=0;i{const{useUpdateSettings:i,useIsPending:r,useCanSave:o}=(0,e.useContext)(c);return(0,e.createElement)(n.Button,{className:a,onClick:()=>i(),variant:"primary",disabled:r||!o},o?(0,s.__)(t,"gtm-kit"):(0,s.__)("Saved","gtm-kit"),r?(0,e.createElement)(n.Spinner,null):"")},ee=()=>{const{useCanSave:t}=(0,e.useContext)(c);return(0,e.createElement)(Zt,{in:t,timeout:500,classNames:"slide",unmountOnExit:!0},(0,e.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,e.createElement)(te,null)))},ne=({subject:t})=>{const n=!0===t||"on"===t,a=!0===n?"gtmkit-bg-color-success":"gtmkit-bg-color-button-disabled";return(0,e.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 "+a},n?(0,s.__)("Active","gtm-kit"):(0,s.__)("Inactive","gtm-kit"))};const ae=(0,e.forwardRef)((({children:t,className:n="",...a},i)=>(0,e.createElement)("div",{...a,className:"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},t)));ae.Header=({as:t="h3",title:n="",children:a,className:i="",...r})=>(0,e.createElement)("div",{...r,className:"gtmkit-flex gtmkit-justify-between gtmkit-mb-5 "+i},(0,e.createElement)(t,{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading"},n),a),ae.Content=({as:t="div",children:n,className:a="group-hover:gtmkit-hidden",...i})=>(0,e.createElement)(t,{...i,className:a},n),ae.Button=({url:t,destination:a,newTab:i=!1,text:r,group:o="",...l})=>{const s=it();return(0,e.createElement)("div",{...l,className:"gtmkit-hidden group-hover:gtmkit-block"},(0,e.createElement)(n.Button,{variant:"primary",className:"gtmkit-rounded !gtmkit-py-4 !gtmkit-px-8 gtmkit-w-full",onClick:()=>{a&&t&&!1===i?window.gtmkitSettings.current_poage===o?s(a,{replace:!0}):window.location.href=t+"#"+a:t?i?window.open(t):window.location.href=t:s(a,{replace:!0})}},(0,e.createElement)("span",{className:"gtmkit-mx-auto gtmkit-text-sm gtmkit-font-bold"},r)))};var ie=ae,re=({title:t,data:n,className:a=""})=>{const{useSettings:i}=(0,e.useContext)(c);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8 gtmkit-mt-6"},t),(0,e.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},n.map((t=>!1===t.featured?null:(0,e.createElement)(ie,null,(0,e.createElement)(ie.Header,{title:t.title},t.pill?(0,e.createElement)(ne,{subject:i[t.group][t.option]}):null),(0,e.createElement)(ie.Content,null,t.text.map(((t,n)=>(0,e.createElement)("p",{key:n},t)))),(0,e.createElement)(ie.Button,{url:t.link.url,destination:t.link.destination,text:t.link.text?t.link.text:(0,s.__)("Read article","gtm-kit"),newTab:t.link.external,group:t.group}))))))};const oe=[{title:"Woocommerce",pill:!0,group:"integrations",option:"woocommerce_integration",text:[(0,s.__)("The #1 open source eCommerce platform built for WordPress","gtm-kit")],link:{internal:!0,url:window.gtmkitSettings.integrationsUrl,destination:"/woocommerce",text:(0,s.__)("Setup integration","gtm-kit")}},{title:"Contact Form 7",pill:!0,group:"integrations",option:"cf7_integration",text:[(0,s.__)("Just another contact form plugin for WordPress. Simple but flexible","gtm-kit")],link:{internal:!0,url:window.gtmkitSettings.integrationsUrl,destination:"/cf7",text:(0,s.__)("Setup integration","gtm-kit")}},{title:"Easy Digital Downloads",pill:!0,group:"integrations",option:"edd_integration",text:[(0,s.__)("Easy way to sell Digital Products With WordPress","gtm-kit")],link:{internal:!0,url:window.gtmkitSettings.integrationsUrl,destination:"/edd",text:(0,s.__)("Setup integration","gtm-kit")}}],le=[{title:"Getting started with GTM Kit",text:[(0,s.__)("How to get the most out of Google Tag Manager with GTM Kit.","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/getting-started-with-gtm-kit/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=getting-started&utm_content=dashboard-tutorials"},featured:!0},{title:(0,s.__)("WooCommerce integration","gtm-kit"),text:[(0,s.__)("Integrate WooCommerce with Google Tag Manager and Google Analytics.","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/woocommerce/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=woocommerce&utm_content=dashboard-tutorials"},featured:!0},{title:"Contact Form 7 Integration",text:[(0,s.__)("Integrate Contact Form 7 with Google Tag Manager and Google Analytics.","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/contact-form-7-integration/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=getting-started&utm_content=dashboard-tutorials"},featured:!1},{title:"Easy Digital Downloads integration",text:[(0,s.__)("Integrate Easy Digital Downloads with Google Tag Manager and Google Analytics.","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/set-up-easy-digital-downloads-for-google-tag-manager/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=getting-started&utm_content=dashboard-tutorials"},featured:!1},{title:"Advanced GTM container implementation",text:[(0,s.__)("Customization of the GTM container implementation and Server Side Tracking.","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/advanced-gtm-container-implementation/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=getting-started&utm_content=dashboard-tutorials"},featured:!1},{title:"Settings, actions and filters for developers",text:[(0,s.__)("One of the things that makes GTM Kit a great tool for developers is the ability to override options in wp-config.php.","gtm-kit")],link:{external:!0,url:"https://gtmkit.com/documentation/settings-actions-and-filters-for-developers/#utm_source=gtmkit-plugin&utm_medium=software&utm_term=getting-started&utm_content=dashboard-tutorials"},featured:!1}];var se=()=>{const{useSettings:t}=(0,e.useContext)(c),n=le;return n.push({title:(0,s.__)("See all tutorials…","gtm-kit"),text:[(0,s.__)("See all our tutorial 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,s.__)("Read articles","gtm-kit")},featured:!0}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,s.__)("Status","gtm-kit")),(0,e.createElement)("div",{className:"lg:gtmkit-flex lg:gtmkit-justify-between gtmkit-gap-6 gtmkit-border-b gtmkit-border-color-border gtmkit-pb-6 gtmkit-min-h-[175px]"},(0,e.createElement)(ie,{className:"lg:gtmkit-w-1/2 2xl:gtmkit-w-1/3"},(0,e.createElement)(ie.Header,{title:"Google Tag Manager Container"},(0,e.createElement)(ne,{subject:t.general.gtm_id&&t.general.container_active})),(0,e.createElement)(ie.Content,null,t.general.gtm_id&&t.general.container_active?(0,e.createElement)("p",null,(0,s.__)("Container ID:","gtm-kit")," ",t&&t.general.gtm_id):(0,e.createElement)("p",null,(0,s.__)("The container is not active but the datalayer is generated.","gtm-kit"))),(0,e.createElement)(ie.Button,{destination:"/container",text:(0,s.__)("Edit container","gtm-kit")})),(0,e.createElement)(ie,{className:"lg:gtmkit-w-1/2 2xl:gtmkit-w-1/3"},(0,e.createElement)(ie.Header,{title:(0,s.__)("Help improve GTM Kit","gtm-kit")},(0,e.createElement)(ne,{subject:t.general.analytics_active})),(0,e.createElement)(ie.Content,null,(0,e.createElement)("p",null,(0,s.__)("Share anonymous data with the development team to help improve GTM Kit.","gtm-kit"))),(0,e.createElement)(ie.Button,{destination:"/misc",text:(0,s.__)("Share anonymous data","gtm-kit")}))),(0,e.createElement)(re,{title:(0,s.__)("Tutorials","gtm-kit"),data:n}),(0,e.createElement)(re,{title:(0,s.__)("Integrations","gtm-kit"),data:oe}))},me=({title:t,placeholder:a,help:i,className:r="gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",optionGroup:o="general",optionName:l,pluginInactive:s})=>{const{useSettings:m,useUpdateStateSettings:u}=(0,e.useContext)(c);return(0,e.createElement)(n.TextControl,{label:t,placeholder:a,help:i,className:r,value:m&&m[o][l],onChange:t=>u(o,l,t),disabled:s})},ce=({title:t,label:a,optionGroup:i="general",optionName:r,disabled:o=!1})=>{const{useSettings:l,useUpdateStateSettings:s}=(0,e.useContext)(c);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"gtmkit-settings-field-wrap gtmkit-py-4"},(0,e.createElement)(n.BaseControl,{label:t},(0,e.createElement)(n.ToggleControl,{label:a,checked:!o&&l[i][r],onChange:()=>{s(i,r,!(l&&l[i][r]))},disabled:o}))))},ue=({title:t,options:a,help:i,className:r="gtmkit-settings-field-wrap gtmkit-py-4",optionGroup:o="general",optionName:l,disabled:s})=>{const{useSettings:m,useUpdateStateSettings:u}=(0,e.useContext)(c);return(0,e.createElement)(n.RadioControl,{label:t,options:a,help:i,className:r,selected:parseInt(m[o][l]),onChange:t=>u(o,l,t),disabled:s})},ge=({pluginName:t})=>(0,e.createElement)(pe,null,(0,e.createElement)(pe.Header,{title:(0,s.sprintf)((0,s.__)("%s is not active","gtm-kit"),t),className:"gtmkit-text-red-600"}),(0,e.createElement)(pe.Content,null,(0,e.createElement)("p",{className:"gtmkit-mb-6"},(0,s.sprintf)((0,s.__)("If you haven't installed and activated %s you must do that.","gtm-kit"),t)),(0,e.createElement)(n.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+t}},(0,s.sprintf)((0,s.__)("Install %s","gtm-kit"),t))));const de=(0,e.forwardRef)((({children:t,className:n="",disabled:a=!1,...i},r)=>(0,e.createElement)("div",{...i,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-w-3/4 gtmkit-border-color-grey "+n+(a?"gtmkit-opacity-60":""),ref:r},t)));de.Header=({as:t="h3",title:n="",children:a,className:i="",...r})=>(0,e.createElement)(t,{...r,className:"gtmkit-font-bold gtmkit-text-lg gtmkit-px-8 gtmkit-py-4 gtmkit-border-b gtmkit-border-color-grey "+i},n,a),de.Content=({as:t="div",children:n,className:a="",...i})=>(0,e.createElement)(t,{...i,className:"gtmkit-px-8 gtmkit-py-6 "+a},n);var pe=de,he=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8"},(0,s.__)("Google Tag Manager container","gtm-kit")),(0,e.createElement)(pe,null,(0,e.createElement)(pe.Header,{title:(0,s.__)("Google Tag Manager container code","gtm-kit")}),(0,e.createElement)(pe.Content,null,(0,e.createElement)("p",{className:"gtmkit-mb-4"},(0,s.__)("To start collecting data with Google Tag manager you must register the Container ID of your Google Tag Manager container.","gtm-kit")),(0,e.createElement)(me,{title:(0,s.__)("Container ID:","gtm-kit"),optionName:"gtm_id",placeholder:(0,s.__)("Enter Container ID","gtm-kit")}),(0,e.createElement)(ce,{title:(0,s.__)("Inject Container Code","gtm-kit"),label:(0,s.__)("Setting this to Off will remove the Google Tag Manager container code but the data layer will remain.","gtm-kit"),optionName:"container_active"}),(0,e.createElement)(ce,{title:(0,s.__)("Just the container","gtm-kit"),label:(0,s.__)("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"}),(0,e.createElement)(me,{title:(0,s.__)("dataLayer variable name:","gtm-kit"),optionName:"datalayer_name",placeholder:"dataLayer",help:(0,s.__)("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.","gtm-kit")}))),(0,e.createElement)(pe,null,(0,e.createElement)(pe.Header,{title:(0,s.__)("GTM Server Side","gtm-kit")}),(0,e.createElement)(pe.Content,null,(0,e.createElement)(me,{title:(0,s.__)("GTM Server Side Domain:","gtm-kit"),optionName:"sgtm_domain",placeholder:(0,s.__)("Enter domain …","gtm-kit"),help:(0,s.__)("Enter your custom domain name if you are using a custom server side GTM container for tracking.","gtm-kit")}),(0,e.createElement)(me,{title:(0,s.__)("sGTM container identifier:","gtm-kit"),optionName:"sgtm_container_identifier",placeholder:(0,s.__)("Enter loader name …","gtm-kit"),help:(0,s.__)("Only use if you are using a custom loader.","gtm-kit")}))),(0,e.createElement)(pe,null,(0,e.createElement)(pe.Header,{title:(0,s.__)("Container Code Implementation","gtm-kit")}),(0,e.createElement)(pe.Content,null,(0,e.createElement)(ue,{title:(0,s.__)("Container code implementation:","gtm-kit"),options:[{label:(0,s.__)("Standard implementation as recommended by Google (no delay)","gtm-kit"),value:0},{label:(0,s.__)("Load container when browser is idle (requestIdleCallback)","gtm-kit"),value:1}],help:(0,s.__)("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"}),(0,e.createElement)(ue,{title:(0,s.__)("Container code noscript implementation:","gtm-kit"),options:[{label:(0,s.__)("Just after the opening tag","gtm-kit"),value:0},{label:(0,s.__)("Footer of the page (not recommended by Google)","gtm-kit"),value:1},{label:(0,s.__)("Custom (insert function in your template)","gtm-kit"),value:2},{label:(0,s.__)("Disable