"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[428],{5428:(t,e,s)=>{s.r(e),s.d(e,{default:()=>g});var r=s(7723),i=s(6087),a=s(6427),m=s(237),n=s(7568),l=s(9132),o=s(790);const g=()=>{const{isSendingSystemData:t,updateSupportTicket:e,useSupportTicket:s,sendSystemData:g,useIsSystemDataSent:d,useSystemDataMessage:k}=(0,i.useContext)(n.fY),{isPremium:p}=(0,i.useContext)(l.BN);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,r.__)("Get support","gtm-kit")}),(0,o.jsxs)(m.A,{children:[(0,o.jsx)(m.A.Header,{title:(0,r.__)("Support options","gtm-kit")}),(0,o.jsx)(m.A.Content,{children:(0,o.jsxs)("ul",{className:"gtmkit-text-color-primary",children:[p&&(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://jump.gtmkit.com/link/4-E35E4",target:"_blank",rel:"noreferrer",children:(0,r.__)("WooCommerce Premium Support","gtm-kit")})}),(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://wordpress.org/support/plugin/gtm-kit/",target:"_blank",rel:"noreferrer",children:(0,r.__)("WordPress.org Support Forum","gtm-kit")})}),(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://github.com/tlamedia/gtm-kit",target:"_blank",rel:"noreferrer",children:(0,r.__)("GITHub repository","gtm-kit")})}),(0,o.jsxs)("li",{children:[(0,o.jsx)("a",{href:"https://gtmkit.com/",target:"_blank",rel:"noreferrer",children:(0,r.__)("Plugin Homepage","gtm-kit")})," ","(gtmkit.com)"]})]})})]}),(0,o.jsxs)(m.A,{children:[(0,o.jsx)(m.A.Header,{title:(0,r.__)("Share system data with the GTM Kit support team","gtm-kit")}),(0,o.jsx)(m.A.Content,{children:d?(0,o.jsx)("p",{className:"gtmkit-mb-2",children:k}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"gtmkit-mb-2",children:(0,r.__)("If the GTM Kit support team has asked you to send your system data you can do so by entering the support ticket below:","gtm-kit")}),(0,o.jsx)(a.TextControl,{label:(0,o.jsxs)("span",{className:"gtmkit-text-red-600",children:[k," "]}),placeholder:(0,r.__)("Enter support ticket","gtm-kit"),className:"gtmkit-settings-field-wrap gtmkit-py-4 gtmkit-max-w-md",value:s,onChange:t=>e(t)}),(0,o.jsxs)(a.Button,{variant:"primary",className:"gtmkit-mx-auto gtmkit-rounded-md !gtmkit-py-4 !gtmkit-px-6 gtmkit-text-base disabled:!gtmkit-bg-color-button-disabled disabled:!gtmkit-text-color-grey",onClick:()=>{g()},disabled:!s.toUpperCase().startsWith("FS"),children:[(0,o.jsx)("span",{children:(0,r.__)("Send system data","gtm-kit")}),t?(0,o.jsx)(a.Spinner,{}):""]})]})})]})]})}}}]);