"use strict";(self.webpackChunkgravitysmtp=self.webpackChunkgravitysmtp||[]).push([[358,3201,3528,7157],{11823:function(e,t,n){var r=n(71860),s=n(88856),a=n(7175),o=n(35739),i=n(80509),l=n(77619),c=n(5529),u=n(66598),d=n(84860);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var p=(0,a.q_.forwardRef)(function(e,t){var n=e.customAttributes,p=void 0===n?{}:n,_=e.customClasses,g=void 0===_?[]:_,b=e.data,v=void 0===b?{}:b,y=e.i18n,f=void 0===y?{}:y,h=(0,d.dh)(),O=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{iconPrefix:"gravity-admin-icon",locked:(null==o||null===(e=o.data)||void 0===e||null===(e=e.locked_settings)||void 0===e?void 0:e.includes(n))||r,lockedMessage:s||(null==o||null===(t=o.i18n)||void 0===t?void 0:t.setting_locked)||""}}},28715:function(e,t,n){var r=n(71860),s=n(88856),a=n(7175),o=n(30242),i=n(5529),l=n(43632),c=n(66598),u=n(48959),d=n(13379),m=n(52014);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var _=(0,a.q_.forwardRef)(function(e,t){var n=e.customAttributes,_=void 0===n?{}:n,g=e.customClasses,b=void 0===g?[]:g,v=e.i18n,y=void 0===v?{}:v,f=(null==y?void 0:y.debug_log)||{},h=f.details_dialog_heading,O=void 0===h?"":h,A=f.details_dialog_event,q=void 0===A?"":A,E=f.details_dialog_date,w=void 0===E?"":E,j=f.details_dialog_log,x=void 0===j?"":j,P=(0,m.default)(function(e){return e.debugDetailsDialogOpen}),C=(0,m.default)(function(e){return e.debugDetailsDialogData}),k=(0,m.default)(function(e){return e.setDebugDetailsDialogOpen}),B=function(e){for(var t=1;t0&&Me.issues[0]&&d.q_.createElement(d.q_.Fragment,null,d.q_.createElement(v.A,{size:"text-sm",tagName:"h5",weight:"medium",spacing:5,content:de}),d.q_.createElement(A.A,{size:"text-sm",spacing:5},d.q_.createElement("ul",{className:"gform-list--bulleted"},Me.issues.map(function(e,t){return d.q_.createElement("li",{key:"issues-".concat(t)},e)})))),(null==Me?void 0:Me.possible_reasons)&&Me.possible_reasons.length>0&&d.q_.createElement(d.q_.Fragment,null,d.q_.createElement(v.A,{size:"text-sm",tagName:"h5",weight:"medium",spacing:5,content:me}),d.q_.createElement(A.A,{size:"text-sm",spacing:5},d.q_.createElement("ul",{className:"gform-list--bulleted"},Me.possible_reasons.map(function(e,t){return d.q_.createElement("li",{key:"possible-reasons-".concat(t)},e)})))),(null==Me?void 0:Me.recommended_steps)&&Me.recommended_steps.length>0&&d.q_.createElement(d.q_.Fragment,null,d.q_.createElement(v.A,{size:"text-sm",tagName:"h5",weight:"medium",spacing:3,content:pe}),d.q_.createElement(A.A,{size:"text-sm",spacing:5},d.q_.createElement("ul",{className:"gform-list--bulleted"},Me.recommended_steps.map(function(e,t){return d.q_.createElement("li",{key:"recommended-steps-".concat(t)},e)})))),d.q_.createElement(g.A,{display:"flex",spacing:2},d.q_.createElement(b.A,{label:_e,onClick:function(){window.location.href="//".concat(window.location.host).concat(window.location.pathname,"?page=gravitysmtp-activity-log&tab=log-details&event_id=").concat(Me.full_log.log_id)},size:"size-height-m",spacing:[0,3,0,0],type:"white",ref:bt}),d.q_.createElement(b.A,{icon:"copy",iconPosition:"leading",iconPrefix:"gravity-admin-icon",label:ge,onClick:function(){(0,p.Ns)(Me.log_copy),Et(be),At(!0)},ref:yt,size:"size-height-m",type:"white"}))):d.q_.createElement(d.q_.Fragment,null,d.q_.createElement(y.A,{labelAttributes:{label:$},helpTextAttributes:{content:te},placeholder:ee,onChange:function(e){return Ke(e)},type:"email",disabled:Pe,customAttributes:{"data-test-id":"send-a-test-email-input",ref:_t},spacing:6}),d.q_.createElement(y.A,{labelAttributes:{label:ne},helpTextAttributes:{content:se},placeholder:re,onChange:function(e){return Ze(e)},type:"email",disabled:Pe,customAttributes:{"data-test-id":"send-a-test-from-email",ref:gt},spacing:6}),je&&d.q_.createElement(f.A,{customAttributes:{"data-test-id":"send-a-test-integration"},initialValue:tt,labelAttributes:{label:ae},helpTextAttributes:{content:oe},name:"integration",onChange:function(e){return nt(e)},options:we,disabled:Pe,spacing:6}),d.q_.createElement(q.A,{customAttributes:{"data-test-id":"send-a-test-html"},initialChecked:at,labelAttributes:P({label:ie},(0,j.A)("send-a-test-html")),helpTextAttributes:{content:le,size:"text-sm"},helpTextWidth:"full",labelPosition:"left",id:"send-a-test-html",name:"send-a-test-html",onChange:function(e){return ot(e)},size:"size-m",width:"full",disabled:Pe})))))});D.propTypes={customAttributes:d.By.object,customClasses:d.By.oneOfType([d.By.string,d.By.array,d.By.object])},D.displayName="SendATestScreen",t.default=D}}]);