Files
hub-insurance/wp-content/plugins/gravitysmtp/assets/js/dist/9201.a4c9eb4d0c16bcb67687.min.js
T
2026-07-02 15:54:39 -06:00

1 line
11 KiB
JavaScript

"use strict";(self.webpackChunkgravitysmtp=self.webpackChunkgravitysmtp||[]).push([[9201],{99201:function(e,t,n){var i=n(71860),o=n(90455),r=n(88856),c=n(8140),a=n(78564),l=n.n(a),s=n(27122),d=n.n(s),u=n(7175),m=n(75195),v=n(35739),_=n(82263),p=n(30242),g=n(80509),f=n(68347),y=n(29549),b=n(5529),h=n(25787),A=n(48959),x=n(13379),w=n(84860),E=n(66598),O=n(83707),q=n(93313),C=n(98895);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j=u.q_.forwardRef,T=u.q_.useEffect,z=u.q_.useState,B=u.tm.useLocation,N=u.tm.useNavigate,P=j(function(e,t){var n,r,a,s,S=e.customAttributes,j=void 0===S?{}:S,P=e.customClasses,D=void 0===P?[]:P,J=e.common,L=void 0===J?{}:J,I=e.data,R=void 0===I?{}:I,H=e.endpoints,F=void 0===H?{}:H,M=e.i18n,U=void 0===M?{}:M,W=N(),G=B(),K=(0,C.default)(function(e){return e.singleActivityDialogOpen}),Q=(0,C.default)(function(e){return e.setSingleActivityDialogOpen}),V=(0,C.default)(function(e){return e.singleActivityEventId}),X=(0,C.default)(function(e){return e.setSingleActivityEventId}),Y=(0,C.default)(function(e){return e.singleActivityLogDetail}),Z=(0,C.default)(function(e){return e.setSingleActivityLogDetail}),$=(0,C.default)(function(e){return e.singleActivityType}),ee=(0,C.default)(function(e){return e.setSingleActivityType}),te=z(!1),ne=(0,c.A)(te,2),ie=ne[0],oe=ne[1],re=z(""),ce=(0,c.A)(re,2),ae=ce[0],le=ce[1],se=z(""),de=(0,c.A)(se,2),ue=de[0],me=de[1],ve=z(""),_e=(0,c.A)(ve,2),pe=_e[0],ge=_e[1],fe=(0,w.dh)(),ye=(null==L||null===(n=L.endpoints)||void 0===n||null===(n=n.delete_email)||void 0===n?void 0:n.action)||"",be=(null==L||null===(r=L.endpoints)||void 0===r||null===(r=r.delete_email)||void 0===r?void 0:r.nonce)||"",he=(null==L||null===(a=L.endpoints)||void 0===a||null===(a=a.get_single_email)||void 0===a?void 0:a.action)||"",Ae=(null==L||null===(s=L.endpoints)||void 0===s||null===(s=s.get_single_email)||void 0===s?void 0:s.nonce)||"",xe=((null==L?void 0:L.i18n)||{}).snackbar_email_log_delete_error,we=void 0===xe?"":xe,Ee=(F||{}).gravitysmtp_resend_email,Oe=void 0===Ee?{}:Ee,qe=Oe.action,Ce=void 0===qe?"":qe,Se=Oe.nonce,ke=void 0===Se?"":Se,je=U.confirm_delete_email_heading,Te=void 0===je?"":je,ze=U.confirm_delete_email_content,Be=void 0===ze?"":ze,Ne=U.confirm_delete_email_delete,Pe=void 0===Ne?"":Ne,De=U.confirm_delete_email_cancel,Je=void 0===De?"":De,Le=U.confirm_resend_email_heading,Ie=void 0===Le?"":Le,Re=U.confirm_resend_email_content,He=void 0===Re?"":Re,Fe=U.confirm_resend_email_alert,Me=void 0===Fe?"":Fe,Ue=U.confirm_resend_email_resend,We=void 0===Ue?"":Ue,Ge=U.confirm_resend_email_cancel,Ke=void 0===Ge?"":Ge,Qe=U.debug_messages,Ve=void 0===Qe?{}:Qe,Xe=Ve.deleting_single_activity_log,Ye=void 0===Xe?"":Xe,Ze=Ve.deleting_single_activity_log_error,$e=void 0===Ze?"":Ze,et=Ve.fetching_single_activity_log,tt=void 0===et?"":et,nt=Ve.fetching_single_activity_log_error,it=void 0===nt?"":nt,ot=U.resending_email,rt=U.resending_error,ct=U.resend_recipient_label,at=void 0===ct?"":ct,lt=U.resend_recipient_placeholder,st=void 0===lt?"":lt,dt=U.resend_recipient_description,ut=void 0===dt?"":dt,mt=U.resend_include_cc_label,vt=void 0===mt?"":mt,_t=U.resend_include_cc_description,pt=void 0===_t?"":_t,gt=U.resend_include_bcc_label,ft=void 0===gt?"":gt,yt=U.resend_include_bcc_description,bt=void 0===yt?"":yt,ht=U.resend_summary_heading,At=void 0===ht?"Email Summary":ht,xt=U.resend_summary_subject,wt=void 0===xt?"Subject":xt,Et=U.resend_summary_from,Ot=void 0===Et?"From":Et,qt=U.resend_summary_original_to,Ct=void 0===qt?"Original To":qt,St=U.resend_summary_date_sent,kt=void 0===St?"Date Sent":St,jt=U.resend_recipient_details_heading,Tt=void 0===jt?"Recipient Details":jt,zt=U.snackbar_resend_error,Bt=U.snackbar_resend_success,Nt=k({className:(0,u.pS)({"gravitysmtp-single-activity":!0},D)},j),Pt="delete"===$,Dt=(null==Y?void 0:Y.subject)||"",Jt=(null==Y?void 0:Y.from)||"",Lt=(null==Y?void 0:Y.to)||"",It=(null==Y?void 0:Y.cc)||"",Rt=(null==Y?void 0:Y.bcc)||"",Ht=(null==Y?void 0:Y.date)||"",Ft=!Pt&&K&&!!V&&!!he&&!!Ae&&!(null!=Y&&Y.technical_information);T(function(){K&&!Pt&&le("string"==typeof Lt?Lt:"")},[K,Lt,Pt]),T(function(){K&&!Pt&&(me("string"==typeof It?It:""),ge("string"==typeof Rt?Rt:""))},[K,Pt,It,Rt]);var Mt=function(){var e=(0,o.A)(l().mark(function e(){var t,n,i,o;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(he&&Ae){e.next=2;break}return e.abrupt("return");case 2:return t={action:he,security:Ae,event_id:V},e.next=5,(0,O.A)((0,v.nv)(tt,JSON.stringify((0,q.A)(["security"],t))),"info");case 5:return e.prev=5,e.next=8,(0,m.bE)({endpoint:d(),body:t});case 8:null!=(o=e.sent)&&null!==(n=o.data)&&void 0!==n&&n.success&&null!=o&&null!==(i=o.data)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.log_detail&&Z(o.data.data.log_detail),e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(5),e.next=16,(0,O.A)((0,v.nv)(it,JSON.stringify(e.t0)),"error");case 16:case"end":return e.stop()}},e,null,[[5,12]])}));return function(){return e.apply(this,arguments)}}();T(function(){Ft&&Mt()},[Ft,V]);var Ut=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=new URLSearchParams(G.search),i=R.nav_item_param_key||"tab";if("activity-log"!==n.get(i))if(n.delete("event_id"),n.set(i,"activity-log"),"activity-log"===(null==G||null===(e=G.state)||void 0===e?void 0:e.previous)){if(!t)return void W(-1);window.location.href="".concat(G.pathname,"?").concat(n.toString())}else{if(!t){var o=k(k({},G),{},{search:"?".concat(n.toString())});W(o,{state:{previous:"log-details"}})}window.location.href="".concat(G.pathname,"?").concat(n.toString())}else t&&window.location.reload()},Wt=function(){var e=(0,o.A)(l().mark(function e(){var t,n,i,o;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return oe(!0),t={action:ye,security:be,event_id:V},e.next=4,(0,O.A)((0,v.nv)(Ye,JSON.stringify((0,q.A)(["security"],t))),"info");case 4:return e.prev=4,e.next=7,(0,m.bE)({endpoint:d(),body:t});case 7:null!=(i=e.sent)&&null!==(n=i.data)&&void 0!==n&&n.success?fe(null==i||null===(o=i.data)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.message):fe(we,"error"),Q(!1),Ut(!0),e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(4),fe(e.t0.message,"error"),e.next=18,(0,O.A)((0,v.nv)($e,JSON.stringify(e.t0)),"error");case 18:case"end":return e.stop()}},e,null,[[4,13]])}));return function(){return e.apply(this,arguments)}}(),Gt=function(){var e=(0,o.A)(l().mark(function e(){var t,n,i,o;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return oe(!0),t={action:Ce,security:ke,email_id:V,recipient:ae,cc:ue,bcc:pe},e.next=4,(0,O.A)((0,v.nv)(ot,JSON.stringify((0,q.A)(["security"],t))),"info");case 4:return e.prev=4,e.next=7,(0,m.bE)({endpoint:d(),body:t});case 7:null!=(i=e.sent)&&null!==(n=i.data)&&void 0!==n&&n.success?(fe(Bt),Ut(!0)):fe((null==i||null===(o=i.data)||void 0===o?void 0:o.data)||zt,"error"),e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(4),fe(zt,"error"),e.next=16,(0,O.A)((0,v.nv)(rt,JSON.stringify(e.t0)),"error");case 16:oe(!1),Q(!1),X(0),ee("");case 20:case"end":return e.stop()}},e,null,[[4,11]])}));return function(){return e.apply(this,arguments)}}(),Kt=Pt?Te:Ie,Qt=Pt?Be:He,Vt=Pt?Pe:We,Xt=Pt?Je:Ke,Yt=Pt?Wt:Gt,Zt=function(){Q(!1)},$t={closeButtonType:"simplified",onClose:Zt,onCloseAfterAnimation:function(){X(0),Z({}),ee(""),le(""),me(""),ge(""),oe(!1)},closeOnMaskClick:!1,customWrapperClasses:Pt?[]:["gravitysmtp-single-activity__dialog--resend"],customCloseButtonLabelAttributes:{className:(0,u.pS)({"gform-button__icon":!0,"gravity-admin-icon":!0,"gravity-admin-icon--x":!0})},isOpen:K,maskTheme:"light",mode:"modal",padContent:!1,position:"absolute",showCloseButton:!Pt,simplebar:!0,theme:"cosmos",title:Kt,titleSize:"md",titleTagName:"h3"};return u.q_.createElement("div",(0,i.A)({},Nt,{ref:t}),u.q_.createElement(A.A,$t,!Pt&&u.q_.createElement(p.A,{customClasses:["gravitysmtp-single-activity__dialog-content"],spacing:[3,0,0]},u.q_.createElement(_.A,{content:Me,customIconPrefix:"gravity-admin-icon",spacing:[0,0,6,0],theme:"cosmos",type:"info"}),u.q_.createElement(x.A,{HeaderContent:function(){return u.q_.createElement(b.A,{content:At,size:"text-md",weight:"medium",tagName:"h3"})},customClasses:["gravitysmtp-single-activity__summary-box"],spacing:6,style:"compact"},u.q_.createElement(E.A,{content:"".concat(wt,": ").concat(Dt),size:"text-sm",color:"comet",spacing:[0,0,2,0]}),u.q_.createElement(E.A,{content:"".concat(Ot,": ").concat(Jt),size:"text-sm",color:"comet",spacing:[0,0,2,0]}),u.q_.createElement(E.A,{content:"".concat(Ct,": ").concat(Lt),size:"text-sm",color:"comet",spacing:[0,0,2,0]}),u.q_.createElement(E.A,{content:"".concat(kt,": ").concat(Ht),size:"text-sm",color:"comet"})),u.q_.createElement(x.A,{HeaderContent:function(){return u.q_.createElement(b.A,{content:Tt,size:"text-md",weight:"medium",tagName:"h3"})},customClasses:["gravitysmtp-single-activity__recipient-box"],spacing:3,style:"compact"},u.q_.createElement(h.A,{labelAttributes:{label:at},helpTextAttributes:{content:ut},placeholder:st,onChange:function(e){le(e)},controlled:!0,spacing:0,value:ae,type:"text",width:"full"}),u.q_.createElement(f.A,{labelAttributes:{label:vt},helpTextAttributes:{content:pt},helpTextPosition:"below",onChange:function(e){me(e)},controlled:!0,spacing:[4,0,0,0],value:ue}),u.q_.createElement(f.A,{labelAttributes:{label:ft},helpTextAttributes:{content:bt},helpTextPosition:"below",onChange:function(e){ge(e)},controlled:!0,spacing:[4,0,0,0],value:pe}))),Pt&&u.q_.createElement(E.A,{content:Qt,size:"text-sm",color:"comet",spacing:[3,0,0,0]}),Pt?u.q_.createElement(y.A,{container:!0,customClasses:["gravitysmtp-single-activity__dialog-actions"],justifyContent:"flex-start",columnSpacing:3,spacing:[8,0,0,0],type:"fluid"},u.q_.createElement(y.A,{item:!0,width:6},u.q_.createElement(g.A,{label:Xt,onClick:Zt,type:"white",width:"full"})),u.q_.createElement(y.A,{item:!0,width:6},u.q_.createElement(g.A,{active:ie,activeType:"loader",label:Vt,lockSize:!0,onClick:Yt,width:"full"}))):u.q_.createElement(p.A,{customClasses:["gravitysmtp-single-activity__dialog-actions"],display:"flex",spacing:[6,0,0,0]},u.q_.createElement(g.A,{label:Xt,onClick:Zt,size:"size-height-m",spacing:[0,2,0,0],type:"white"}),u.q_.createElement(g.A,{active:ie,activeType:"loader",disabled:!Pt&&Ft,label:Vt,lockSize:!0,onClick:Yt,size:"size-height-m"}))))});P.propTypes={customAttributes:u.By.object,customClasses:u.By.oneOfType([u.By.string,u.By.array,u.By.object]),common:u.By.object,data:u.By.object,endpoints:u.By.object,i18n:u.By.object},t.default=P}}]);