"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[428],{237:(t,e,s)=>{s.d(e,{A:()=>n});var i=s(6087),r=s(790);const m=(0,i.memo)((({as:t="h3",title:e="",children:s,className:i="",...m})=>(0,r.jsxs)(t,{...m,className:"gtmkit-font-bold gtmkit-text-lg gtmkit-px-8 gtmkit-py-4 gtmkit-border-b gtmkit-border-color-grey gtmkit-flex gtmkit-items-center "+i,children:[e,s]}))),a=(0,i.memo)((({as:t="div",children:e,className:s="",...i})=>(0,r.jsx)(t,{...i,className:"gtmkit-px-8 gtmkit-py-6 "+s,children:e}))),l=(0,i.forwardRef)((({children:t,className:e="",disabled:s=!1,...i},m)=>(0,r.jsx)("div",{...i,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-max-w-screen-lg gtmkit-border-color-grey gtmkit-rounded "+e+(s?"gtmkit-opacity-60":""),ref:m,children:t})));l.Header=m,l.Content=a;const n=l},5428:(t,e,s)=>{s.r(e),s.d(e,{default:()=>g});var i=s(7723),r=s(6087),m=s(6427),a=s(237),l=s(7568),n=s(9132),o=s(790);const g=()=>{const{isSendingSystemData:t,updateSupportTicket:e,useSupportTicket:s,sendSystemData:g,useIsSystemDataSent:d,useSystemDataMessage:c}=(0,r.useContext)(l.fY),{isPremium:k}=(0,r.useContext)(n.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,i.__)("Get support","gtm-kit")}),(0,o.jsxs)(a.A,{children:[(0,o.jsx)(a.A.Header,{title:(0,i.__)("Support options","gtm-kit")}),(0,o.jsx)(a.A.Content,{children:(0,o.jsxs)("ul",{className:"gtmkit-text-color-primary",children:[k&&(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://jump.gtmkit.com/link/4-E35E4",target:"_blank",rel:"noreferrer",children:(0,i.__)("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,i.__)("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,i.__)("GITHub repository","gtm-kit")})}),(0,o.jsxs)("li",{children:[(0,o.jsx)("a",{href:"https://gtmkit.com/",target:"_blank",rel:"noreferrer",children:(0,i.__)("Plugin Homepage","gtm-kit")})," ","(gtmkit.com)"]})]})})]}),(0,o.jsxs)(a.A,{children:[(0,o.jsx)(a.A.Header,{title:(0,i.__)("Share system data with the GTM Kit support team","gtm-kit")}),(0,o.jsx)(a.A.Content,{children:d?(0,o.jsx)("p",{className:"gtmkit-mb-2",children:c}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"gtmkit-mb-2",children:(0,i.__)("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)(m.TextControl,{label:(0,o.jsxs)("span",{className:"gtmkit-text-red-600",children:[c," "]}),placeholder:(0,i.__)("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)(m.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,i.__)("Send system data","gtm-kit")}),t?(0,o.jsx)(m.Spinner,{}):""]})]})})]})]})}}}]);