1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9076],{50821:(s,e,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/support/[id]/[secret]",function(){return t(90519)}])},60108:(s,e,t)=>{"use strict";t.d(e,{s:()=>a});var r=t(55450),i=t.n(r);let a=async()=>{await i().push(i().asPath)}},71147:(s,e,t)=>{"use strict";t.d(e,{A:()=>n});var r=t(53447),i=t(62900),a=t(38234);class n extends a.Ay{static async createSupportTicket(s){return await this.fetchApi(a.U0.post,i.J.BASE_URL()+"/api/support",s,r.A.get().customer?this.authHeaders():this.baseHeaders())}static async requestTicketLookup(s){await this.fetchApi(a.U0.post,i.J.BASE_URL()+"/api/support/ticket-lookup",s,this.baseHeaders())}static async getSupportByIdAndSecret(s,e){try{return await this.fetchApi(a.U0.get,i.J.BASE_URL()+"/api/support/"+s+"?secret="+e)}catch(s){if(410===s.statusCode)return{archived:!0};throw s}}static async sendMessageCustomer(s,e,t){return await this.fetchApi(a.U0.put,i.J.BASE_URL()+"/api/support/"+s+"?secret="+e,{message:t})}}},90519:(s,e,t)=>{"use strict";t.r(e),t.d(e,{__N_SSP:()=>f,default:()=>y});var r=t(50979),i=t(60890),a=t(72202),n=t(59489),o=t.n(n),p=t(25963),c=t(35531),d=t(4142),l=t(79902),u=t(16425),h=t(36040),m=t(78077),x=t(48474),j=t(60108),v=t(74652),g=t(71147);class _ extends p.Component{componentDidMount(){d.v.applyCheckoutStyling({theme:"white",accentColor:"#696969",sellerInfo:null})}renderMessages(){var s;let{support:e}=this.props,t=this.props.t;return(0,r.jsx)(r.Fragment,{children:null==(s=e.messages)?void 0:s.map(s=>{var e;let a=s.userId?"support-item-left answer":"support-item-right question";return(0,r.jsxs)("div",{className:"support-item-cell "+a,children:[(0,r.jsx)("div",{className:"support-item-body",children:s.message}),(0,r.jsxs)("div",{className:"support-item-time muted",children:[(0,r.jsx)("strong",{children:s.userId?null!=(e=s.senderName)?e:t("support:vivenuTeam"):t("support:you")})," ",i.rL.formatDateWithTime(s.createdAt)]})]})})})}async sendMessage(){let s=this.props.t;try{await g.A.sendMessageCustomer(this.props.support._id,this.props.support.secret,this.text)&&(this.text="",(0,j.s)())}catch(e){c.X.info({title:s("support:notifications.failed"),message:s("support:notifications.failedToSend")})}}render(){let{support:s}=this.props,e=this.props.t;return(null==s?void 0:s.archived)===!0?(0,r.jsx)(m.M,{code:410,message:"Support ticket has been archived"}):s?(0,r.jsxs)(x.O3,{seller:this.props.seller,organization:this.props.organization,children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:e("common:support")}),(0,r.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,r.jsx)(h.v,{children:(0,r.jsxs)("div",{className:"support-body",children:[(0,r.jsxs)("div",{className:"container",children:[(0,r.jsxs)("div",{className:"header",children:[(0,r.jsx)("label",{children:e("common:support")}),(0,r.jsxs)("h1",{children:["#",s._id]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{children:e("support:conversation")}),(0,r.jsx)("div",{className:"conversation-inner",children:this.renderMessages()})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{children:e("support:reply")}),(0,r.jsx)(u.A,{type:"textarea",height:150,title:e("support:message"),description:"",link:new a.a(this,"text")}),(0,r.jsx)("button",{disabled:!1,className:"btn default",onClick:()=>this.sendMessage(),children:e("support:send")})]})]}),(0,r.jsx)("footer",{children:(0,r.jsx)(l.t,{sellerId:s.sellerId,transactionId:s.transactionId})})]})})]}):(0,r.jsx)(m.M,{code:404,message:"Support could not be found"})}constructor(...s){super(...s),this.text=""}}var f=!0;let y=(0,v.CI)(["common","support"])(_)}},s=>{s.O(0,[7310,95,589,885,6762,5358,5418,3148,2864,7621,639,6957,636,6593,8792],()=>s(s.s=50821)),_N_E=s.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.