1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3209],{64620:(e,t,s)=>{s.d(t,{A:()=>l});var i=s(57404),a=s(55024),r=s(13005);class l extends r.Ay{static async createSupportTicket(e){return await this.fetchApi(r.U0.post,a.J.BASE_URL()+"/api/support",e,i.A.get().customer?this.authHeaders():this.baseHeaders())}static async requestTicketLookup(e){await this.fetchApi(r.U0.post,a.J.BASE_URL()+"/api/support/ticket-lookup",e,this.baseHeaders())}static async getSupportByIdAndSecret(e,t){try{return await this.fetchApi(r.U0.get,a.J.BASE_URL()+"/api/support/"+e+"?secret="+t)}catch(e){if(410===e.statusCode)return{archived:!0};throw e}}static async sendMessageCustomer(e,t,s){return await this.fetchApi(r.U0.put,a.J.BASE_URL()+"/api/support/"+e+"?secret="+t,{message:s})}}},69151:(e,t,s)=>{s.d(t,{Q:()=>u});var i=s(50979),a=s(91134),r=s(84614),l=s(66398),n=s.n(l),o=s(31579),c=s(33792),p=s(92458),d=s(55024);let u=e=>{var t,s,l,u,m,v,h,x,j,f,g;let N=e.seller,{t:b}=(0,r.Bd)(["seller","common"]),{organization:q}=(0,c.hn)(),y=N.localeSettings.defaultLanguage,F=o.A.asPlainString(N.description).substring(0,100),S=[N.name,N.locationName,F,b("common:metas.keywords.tickets",{lng:y}),b("common:metas.keywords.buyOnline",{lng:y})];(null==(t=N.shopSettings)?void 0:t.seoSettings)&&(null==(s=N.shopSettings)?void 0:s.seoSettings.tags)&&(S=N.shopSettings.seoSettings.tags.length<6?S.concat(N.shopSettings.seoSettings.tags):N.shopSettings.seoSettings.tags);let k=S.join(),w=b("seller:metas.title",{seller:N.name,lng:y,organizationName:null!=(v=null==q?void 0:q.name)?v:"vivenu"}),A=b("seller:metas.description",{seller:N.name,description:F,lng:y,organizationName:null!=(h=null==q?void 0:q.name)?h:"vivenu"}),I=(0,p.br)();(null==(l=N.shopSettings)?void 0:l.seoSettings)&&(0,p.$8)(N._id,I)&&((null==(x=N.shopSettings.seoSettings)?void 0:x.description)&&(null==(j=N.shopSettings.seoSettings)?void 0:j.description)!=""&&(A=N.shopSettings.seoSettings.description),(null==(f=N.shopSettings.seoSettings)?void 0:f.title)&&(null==(g=N.shopSettings.seoSettings)?void 0:g.title)!=""&&(w=N.shopSettings.seoSettings.title));let C=b("seller:metas.ogTitle",{seller:N.name,lng:y});return(0,i.jsxs)(n(),{children:[!(0,a.O_)(d.J.ENVIRONMENT())||e.noIndex||(null==(m=N.shopSettings)||null==(u=m.seoSettings)?void 0:u.noIndex)?(0,i.jsx)("meta",{name:"robots",content:"noindex"}):(0,i.jsx)("meta",{name:"robots",content:"index, follow"}),(0,i.jsx)("title",{children:w}),(0,i.jsx)("meta",{name:"title",content:w}),(0,i.jsx)("meta",{name:"keywords",content:k}),(0,i.jsx)("meta",{name:"description",content:A}),(0,i.jsx)("meta",{property:"og:title",content:C}),(0,i.jsx)("meta",{property:"og:description",content:A}),(0,i.jsx)("meta",{property:"og:image",content:N.backgroundImage})]})}},83209:(e,t,s)=>{s.r(t),s.d(t,{SupportPage:()=>ei,SupportTemplates:()=>et,__N_SSP:()=>ee,default:()=>ea,getSupportPageProps:()=>es});var i,a=s(50979),r=s(69151),l=s(26308),n=s(94208),o=s(26426),c=s(10400),p=s(8320),d=s(85739),u=s(8563),m=s(20609),v=s(89723),h=s(53113);(i||(i={})).create=v.A.object().keys({firstname:v.A.string().required(),lastname:v.A.string().required(),email:h.s.email,message:v.A.string().required(),transactionId:v.A.string().optional().trim(),sellerId:v.A.string().optional(),assignToSeller:v.A.boolean().optional()}).unknown(!0);var x=s(84614),j=s(66398),f=s.n(j),g=s(25963),N=s(5054),b=s(31579),q=(s(18626),s(58411)),y=s(90682),F=s(103),S=s(62097),k=s(81438),w=s(47491),A=s(81623),I=s(4293),C=s(15678),E=s(57404),T=s(55024),D=s(64620),R=s(2194);function _(e){let{children:t}=e;return(0,a.jsx)("div",{className:"vi-rounded-lg vi-border vi-bg-sec vi-p-4 vi-text-sm",children:t})}function U(e){let{value:t,title:s,children:i}=e;return(0,a.jsxs)(I.q7,{value:t,className:"vi-border vi-rounded-lg vi-overflow-hidden",children:[(0,a.jsx)(I.Y9,{className:"my-0",children:(0,a.jsxs)(I.l9,{className:"vi-group vi-flex vi-w-full vi-cursor-pointer vi-items-center vi-justify-between vi-gap-3 vi-px-4 vi-py-3 vi-text-left vi-text-sm vi-font-medium vi-bg-sec hover:vi-opacity-80 vi-transition-opacity",children:[(0,a.jsx)("span",{children:s}),(0,a.jsx)(n.g,{icon:l.Jt$,className:"vi-h-3 vi-w-3 vi-shrink-0 vi-transition-transform vi-duration-200 group-data-[state=open]:vi-rotate-180","aria-hidden":!0})]})}),(0,a.jsx)(I.UC,{className:"vi-overflow-hidden data-[state=open]:vi-animate-accordion-down data-[state=closed]:vi-animate-accordion-up",children:(0,a.jsx)("div",{className:"vi-p-4",children:i})})]})}function B(e){let{seller:t}=e,{t:s}=(0,x.Bd)("support"),[i,r]=(0,g.useState)(!1),[l,n]=(0,g.useState)(!1),o=(0,g.useRef)(!1),[c,d]=(0,g.useState)(null),m=(0,g.useRef)({contactEmail:"",repeatEmail:"",firstName:"",lastName:"",eventName:"",eventDate:"",purchaseDate:""}),v=async()=>
1{if(o.current)return;d(null);let e=m.current;if(!e.contactEmail||e.contactEmail!==e.repeatEmail)return void d(s("supportFaq.form.emailMismatch"));if(!e.firstName||!e.lastName)return void d(s("supportFaq.form.nameRequired"));let i=["Investigation Request - Cannot find tickets","Buyer: ".concat(e.firstName," ").concat(e.lastName),e.eventName&&"Event: ".concat(e.eventName),e.eventDate&&"Event Date: ".concat(e.eventDate),e.purchaseDate&&"Purchase Date: ".concat(e.purchaseDate)].filter(Boolean);o.current=!0,n(!0);try{await D.A.createSupportTicket({sellerId:t._id,firstname:e.firstName,lastname:e.lastName,email:e.contactEmail,message:i.join("\n")}),r(!0)}catch(e){d(s("supportFaq.form.error"))}finally{o.current=!1,n(!1)}};return i?(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"vi-font-medium",children:s("supportFaq.investigationRequest.submitted")}),(0,a.jsx)("p",{className:"vi-text-sm vi-mt-1",children:s("supportFaq.investigationRequest.submittedDescription")})]}):(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),v()},children:[(0,a.jsx)("p",{className:"vi-mb-3 vi-text-sm",children:s("supportFaq.investigationRequest.description")}),(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"contactEmail"),title:s("supportFaq.form.contactEmail"),type:"email"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"repeatEmail"),title:s("supportFaq.form.repeatEmail"),type:"email"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"firstName"),title:s("supportFaq.form.firstName"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"lastName"),title:s("supportFaq.form.lastName"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"eventName"),title:s("supportFaq.form.eventName"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"eventDate"),title:s("supportFaq.form.eventDate"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"purchaseDate"),title:s("supportFaq.form.purchaseDate"),type:"text"})})]}),c&&(0,a.jsx)("p",{className:"vi-mt-2 vi-text-sm vi-text-red-500",children:c}),(0,a.jsx)("button",{type:"submit",disabled:l,className:"btn small default vi-mt-4",children:l?s("supportFaq.form.submitting"):s("supportFaq.investigationRequest.submit")})]})}function L(e){let{seller:t}=e,{t:s}=(0,x.Bd)("support"),[i,r]=(0,g.useState)(!1),[l,n]=(0,g.useState)(!1),o=(0,g.useRef)(!1),[c,d]=(0,g.useState)(null),m=(0,g.useRef)({contactEmail:"",repeatEmail:"",firstName:"",lastName:"",eventName:"",eventDate:"",purchaseDate:""}),v=async()=>{if(o.current)return;d(null);let e=m.current;if(!e.contactEmail||e.contactEmail!==e.repeatEmail)return void d(s("supportFaq.form.emailMismatch"));if(!e.firstName||!e.lastName)return void d(s("supportFaq.form.nameRequired"));let i=["Invoice Request","Buyer: ".concat(e.firstName," ").concat(e.lastName),e.eventName&&"Event: ".concat(e.eventName),e.eventDate&&"Event Date: ".concat(e.eventDate),e.purchaseDate&&"Purchase Date: ".concat(e.purchaseDate)].filter(Boolean);o.current=!0,n(!0);try{await D.A.createSupportTicket({sellerId:t._id,firstname:e.firstName,lastname:e.lastName,email:e.contactEmail,message:i.join("\n"),assignToSeller:!0}),r(!0)}catch(e){d(s("supportFaq.form.error"))}finally{o.current=!1,n(!1)}};return i?(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"vi-font-medium",children:s("supportFaq.invoiceRequest.submitted")}),(0,a.jsx)("p",{className:"vi-text-sm vi-mt-1",children:s("supportFaq.invoiceRequest.submittedDescription")})]}):(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),v()},children:[(0,a.jsx)("p",{className:"vi-mb-3 vi-text-sm",children:s("supportFaq.invoiceRequest.description")}),(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"contactEmail"),title:s("supportFaq.form.contactEmail"),type:"email"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"repeatEmail"),title:s("supportFaq.form.repeatEmail"),type:"email"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"firstName"),title:s("supportFaq.form.firstName"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"lastName"),title:s("supportFaq.form.lastName"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"eventName"),title:s("supportFaq.form.eventName"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"eventDate"),title:s("supportFaq.form.eventDate"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(m.current,"purchaseDate"),title:s("supportFaq.form.purchaseDate"),type:"text"})})]}),c&&(0,a.jsx)("p",{className:"vi-mt-2 vi-text-sm vi-text-red-500",children:c}),(0,a.jsx)("button",{type:"submit",disabled:l,className:"vi-mt-4 btn small default",children:l?s("supportFaq.form.submitting"):s("supportFaq.invoiceRequest.submit")})]})}function P(e){let{seller:t,transactionId:s}=e,{t:i}=(0,x.Bd)("support"),[r,l]=(0,g.useState)(!1),[n,o]=(0,g.useState)(!1),c=(0,g.useRef)(!1),[d,m]=(0,g.useState)(null),v=(0,g.useRef)({firstName:"",lastName:"",email:"",identifier:null!=s?s:""}),h=async()=>
1{if(c.current)return;m(null);let e=v.current;if(!e.firstName||!e.lastName)return void m(i("supportFaq.form.nameRequired"));if(!e.email)return void m(i("supportFaq.form.emailRequired"));if(!e.identifier)return void m(i("supportFaq.revocationRequest.identifierRequired"));let s=i("supportFaq.revocationRequest.template",{firstName:e.firstName,lastName:e.lastName,email:e.email,identifier:e.identifier});c.current=!0,o(!0);try{await D.A.createSupportTicket({sellerId:t._id,transactionId:e.identifier,firstname:e.firstName,lastname:e.lastName,email:e.email,message:s,assignToSeller:!0}),l(!0)}catch(e){m(i("supportFaq.form.error"))}finally{c.current=!1,o(!1)}};return r?(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"vi-font-medium",children:i("supportFaq.revocationRequest.submitted")}),(0,a.jsx)("p",{className:"vi-text-sm vi-mt-1",children:i("supportFaq.revocationRequest.submittedDescription")})]}):(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),h()},children:[(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(v.current,"firstName"),title:i("supportFaq.form.firstName"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(v.current,"lastName"),title:i("supportFaq.form.lastName"),type:"text"})}),(0,a.jsx)("div",{className:"col-md-12",children:(0,a.jsx)(p.A,{link:new u.a(v.current,"email"),title:i("supportFaq.form.contactEmail"),type:"email"})}),(0,a.jsx)("div",{className:"col-md-12",children:(0,a.jsx)(p.A,{link:new u.a(v.current,"identifier"),title:i("supportFaq.revocationRequest.identifier"),type:"text"})})]}),d&&(0,a.jsx)("p",{className:"vi-mt-2 vi-text-sm vi-text-red-500",children:d}),(0,a.jsx)("button",{type:"submit",disabled:n,className:"btn small default vi-mt-4",children:n?i("supportFaq.form.submitting"):i("supportFaq.revocationRequest.submit")})]})}function O(e){let{seller:t}=e,{t:s}=(0,x.Bd)("support"),[i,r]=(0,g.useState)(!1),[l,n]=(0,g.useState)(!1),o=(0,g.useRef)(!1),[c,d]=(0,g.useState)(null),m=(0,g.useRef)({email:""}),v=async()=>{if(!o.current){if(d(null),!m.current.email)return void d(s("supportFaq.ticketLookup.enterEmail"));o.current=!0,n(!0);try{await D.A.requestTicketLookup({email:m.current.email,sellerId:t._id}),r(!0)}catch(e){d(s("supportFaq.form.error"))}finally{o.current=!1,n(!1)}}};return i?(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"vi-font-medium",children:s("supportFaq.ticketLookup.emailSent")}
1),(0,a.jsx)("p",{className:"vi-text-sm vi-mt-1",children:s("supportFaq.ticketLookup.emailSentDescription")})]}):(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),v()},children:[(0,a.jsx)("p",{className:"vi-text-sm vi-mb-3",children:s("supportFaq.ticketLookup.description")}),(0,a.jsxs)("div",{className:"vi-flex vi-flex-col vi-gap-2 sm:vi-flex-row sm:vi-items-center",children:[(0,a.jsx)("div",{className:"vi-flex-1",children:(0,a.jsx)(p.A,{className:"[&_.field]:!vi-mb-0",link:new u.a(m.current,"email"),title:s("supportFaq.ticketLookup.emailPlaceholder"),type:"email"})}),(0,a.jsx)("button",{type:"submit",disabled:l,className:"btn small default",children:l?s("supportFaq.ticketLookup.submitting"):s("supportFaq.ticketLookup.submit")})]}),c&&(0,a.jsx)("p",{className:"vi-mt-2 vi-text-sm vi-text-red-500",children:c})]})}function Q(e){let{seller:t}=e,{t:s}=(0,x.Bd)("support");return(0,a.jsxs)(I.bL,{type:"multiple",className:"vi-space-y-2",children:[(0,a.jsx)(U,{value:"login",title:s("supportFaq.findTickets.cannotFind"),children:(0,a.jsx)(O,{seller:t})}),(0,a.jsx)(U,{value:"forgot-email",title:s("supportFaq.findTickets.forgotEmail"),children:(0,a.jsx)(B,{seller:t})})]})}function z(e){let{description:t,seller:s}=e,{t:i}=(0,x.Bd)("support");return(0,a.jsxs)("div",{className:"vi-space-y-4",children:[(0,a.jsx)(_,{children:(0,a.jsx)("p",{children:t})}),(0,a.jsx)(J,{seller:s}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"vi-mb-2 vi-text-sm vi-font-medium",children:i("supportFaq.dontHaveAnAccount")}),(0,a.jsx)(Q,{seller:s})]})]})}function J(e){let{seller:t}=e,{t:s}=(0,x.Bd)("support"),i=E.A.get().isAuthenticationActive(t),{pages:r}=(0,R.tB)(t,void 0),l=[...r.values()].find(e=>!e.hidden);return i&&l?(0,a.jsx)("a",{href:l.href,className:"vi-inline-block vi-rounded-lg vi-border vi-px-4 vi-py-2 vi-text-sm vi-font-medium hover:vi-bg-sec vi-transition-colors",children:s("support:supportFaq.goToAccount")}):null}function H(e){let{description:t,seller:s}=e,{t:i}=(0,x.Bd)("support");return(0,a.jsxs)("div",{className:"vi-space-y-4",children:[(0,a.jsx)(_,{children:(0,a.jsx)("p",{children:t})}),(0,a.jsx)(J,{seller:s}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"vi-mb-2 vi-text-sm vi-font-medium",children:i("supportFaq.dontHaveAnAccount")}),(0,a.jsx)(Q,{seller:s})]})]})}let M=[{value:"missing-tickets",label:e=>e("supportFaq.topics.missingTickets")},{value:"cancel-ticket",label:e=>e("supportFaq.topics.cancelTicket")},{value:"change-date",label:e=>e("supportFaq.topics.changeDate")},{value:"change-name",label:e=>e("supportFaq.topics.changeName")},{value:"transfer-ticket",label:e=>e("supportFaq.topics.transferTicket")},{value:"cancel-subscription",label:e=>e("supportFaq.topics.cancelSubscription")},{value:"change-payment",label:e=>e("supportFaq.topics.changePayment")},{value:"invoice",label:e=>e("supportFaq.topics.invoice")},{value:"refund-pending",label:e=>e("supportFaq.topics.refundPending")},{value:"charged-not-concluded",label:e=>e("supportFaq.topics.chargedNotConcluded")},{value:"event-questions",label:e=>e("supportFaq.topics.eventQuestions")},{value:"revocation",label:e=>e("supportFaq.topics.revocation")},{value:"other-question",label:e=>e("supportFaq.topics.otherQuestion")}];function V(e){var t,s;let{topic:i,seller:r,transactionId:l,onRevealSupportForm:n}=e,{t:o}=(0,x.Bd)("support");switch(i){case"missing-tickets":return(0,a.jsx)(z,{description:o("supportFaq.descriptions.missingTickets"),seller:r});case"cancel-ticket":return(0,a.jsx)(z,{description:o("supportFaq.descriptions.cancelTicket"),seller:r});case"change-date":return(0,a.jsx)(z,{description:o("supportFaq.descriptions.changeDate"),seller:r});case"change-name":return(0,a.jsx)(z,{description:o("supportFaq.descriptions.changeName"),seller:r});case"transfer-ticket":return(0,a.jsx)(z,{description:o("supportFaq.descriptions.transferTicket"),seller:r});case"cancel-subscription":return(0,a.jsx)(H,{description:o("supportFaq.descriptions.cancelSubscription"),seller:r});case"change-payment":return(0,a.jsx)(H,{description:o("supportFaq.descriptions.changePayment"),seller:r});case"invoice":if(!(null==(t=r.taxSetting)?void 0:t.sendTaxInvoiceToCustomer))return(0,a.jsx)("div",{className:"vi-space-y-4",children:(0,a.jsx)(L,{seller:r})});return(0,a.jsx)(H,{description:o("supportFaq.descriptions.invoice"),seller:r});case"refund-pending":return(0,a.jsx)(_,{children:(0,a.jsx)("p",{children:o("supportFaq.descriptions.refundPending")})});case"charged-not-concluded":return(0,a.jsx)(_,{children:(0,a.jsx)("p",{children:o("supportFaq.descriptions.chargedNotConcluded")})});case"event-questions":{let e=(null==(s=r.supportSettings)?void 0:s.faqUrl)||r.website,t=e?T.J.getValidUrl(e):void 0;return(0,a.jsxs)("div",{className:"vi-space-y-4",children:[!!t&&t.startsWith("http")&&(0,a.jsx)(_,{children:(0,a.jsxs)("p",{className:"vi-mb-2",children:[o("supportFaq.descriptions.eventQuestions")," ",(0,a.jsx)(F.p,{href:t,className:"vi-underline",children:t})]})}),(0,a.jsx)("p",{className:"vi-mb-2 vi-text-sm vi-font-medium",children:o("supportFaq.descriptions.otherQuestion")}),(0,a.jsx)("button",{type:"button",onClick:()=>n(!0),className:"btn small default",children:o("supportFaq.openSupportForm")})]})}case"revocation":return(0,a.jsxs)("div",{className:"vi-space-y-4",children:[(0,a.jsx)(_,{children:o("supportFaq.descriptions.revocation")}),(0,a.jsx)(P,{seller:r,transactionId:l})]});case"other-question":return(0,a.jsxs)(_,{children:[(0,a.jsx)("p",{className:"vi-mb-3",children:o("supportFaq.descriptions.otherQuestion")}),(0,a.jsx)("button",{type:"button",onClick:()=>n(!1),className:"btn small default",children:o("supportFaq.openSupportForm")})]})}}function W(e){let{t}=(0,x.Bd)("support"),s=C.X.includes(e.seller.locationCountry),i=M.filter(t=>"revocation"===t.value?s&&"revocation"===e.initialTopic:e.faqEnabled),[r,o]=(0,g.useState)(e.initialTopic&&i.some(t=>t.value===e.initialTopic)?e.initialTopic:"");return(0,a.jsxs)("div",{className:"vi-mt-6 vi-space-y-4",children:[(0,a.jsxs)("div",{className:"vi-relative",children:[(0,a.jsxs)("select",{value:r,onChange:e=>o(e.target.value),className:"vi-w-full vi-appearance-none vi-cursor-pointer vi-rounded-lg vi-border vi-bg-prim vi-px-4 vi-py-3 vi-pr-10 vi-text-sm vi-font-medium focus:vi-outline-none focus:vi-ring-2 focus:vi-ring-[var(--accent-color,#000)]",children:[(0,a.jsx)("option",{value:"",children:t("supportFaq.selectTopic")}),i.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label(t)},e.value))]}),(0,a.jsx)(n.g,{icon:l.Jt$,className:"vi-pointer-events-none vi-absolute vi-right-4 vi-top-1/2 vi-h-3 vi-w-3 -vi-translate-y-1/2","aria-hidden":!0})]}),r&&(0,a.jsx)("div",{className:"vi-animate-accordion-down",children:(0,a.jsx)(V,{topic:r,seller:e.seller,transactionId:e.transactionId,onRevealSupportForm:e.onRevealSupportForm})})]})}var K=s(33792),Y=s(92458),$=s(86611),G=s(11171),X=s(57829),Z=s(92200),ee=!0,et=function(e){return e.AccountDeleti
1on="account-deletion",e}({});let es=async(e,t,s)=>{let i={sellerIdOrUrl:s||null,transactionId:e.query.transaction||null,template:e.query.template||null,topic:e.query.topic||null,seller:null,organization:null,faqLocale:"de"===e.detectedLocale?"de":"en"};if(s){var a,r;i.seller=await Z.A.fetchSellerInfo(s,e.detectedLocale),t.domainCtx=await (0,Y.Wq)(t.domainCtx,null==(a=i.seller)?void 0:a._id,null==(r=i.seller)?void 0:r.orgId)}return i},ei=(0,X.CI)(["support","common"])(class extends g.Component{initializePayload(){var e,t;this.payload.sellerId=this.props.seller._id,$.c.get().setSellerId(this.props.seller._id);let s=this.props.transactionId;s&&""!=s&&(this.payload.transactionId=s),"account-deletion"===this.props.template&&(this.payload.message=this.props.t("support:templates.account_deletion"),this.setState({showSupportForm:!0})),q.v.applyCheckoutStyling({theme:(null==(t=this.props.seller)||null==(e=t.shopSettings)?void 0:e.pageStyle)||"white",accentColor:this.props.seller.accentColor,sellerInfo:this.props.seller});let i=E.A.get().customer;(null==i?void 0:i.prename)&&(this.payload.firstname=i.prename),(null==i?void 0:i.lastname)&&(this.payload.lastname=i.lastname),(null==i?void 0:i.primaryEmail)&&(this.payload.email=i.primaryEmail),this.forceUpdate()}componentDidMount(){this.initializePayload();let e=()=>{this.initializePayload(),E.A.get().unsubscribe(e)};E.A.get().subscribe(e),this.state.isFAQAvailable||this.state.showSupportForm||this.setState({showSupportForm:!0})}async verifyCaptchaAndCreateSupport(){let e=this.props.t;if(this.validator.check(),this.validator.hasErrors())return this.forceUpdate(),this.forceUpdate();try{await D.A.createSupportTicket({...this.payload,...this.state.assignToSeller?{assignToSeller:!0}:{}}),this.setState({showCreationSuccess:!0})}catch(t){t instanceof Error&&"reCAPTCHA verification failed"===t.message&&N.X.info({title:e("common:error"),message:e("support:reCaptchaError")})}}render(){var e,t,s,i,d,v,h,j,g;let N=this.props.t,q=N("support:send"),k=G._.supportUrl(null,this.props.seller?{seller:this.props.seller._id}:{},this.props.organization,this.props.domainCtx);k&&k.startsWith("//")&&(k="https:".concat(k));let I={...this.props.sellerIdOrUrl?{seller:null!=(v=null==(e=this.props.seller)?void 0:e._id)?v:this.props.sellerIdOrUrl}:{},...this.props.transactionId?{transaction:this.props.transactionId}:{}},C=this.props.sellerIdOrUrl===this.props.seller.url?this.props.seller.url:void 0,D=(0,Y.oU)({_id:this.props.seller._id,url:C},this.props.domainCtx),R="".concat(D,"/support?").concat(T.J.objectToQueryString(I),"#main");E.A.get().customer;let _=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Q,{seller:this.props.seller,noIndex:!0}),k&&(0,a.jsx)(f(),{children:(0,a.jsx)("link",{rel:"canonical",href:k})}),(0,a.jsxs)(S.v,{hideAccountPill:!0,children:[(0,a.jsx)("div",{className:"checkout-hero",children:(0,a.jsx)("div",{className:"banner"})}),(0,a.jsx)(w.Y,{seller:this.props.seller,children:(0,a.jsx)(A.G,{seller:this.props.seller})}),(0,a.jsx)("div",{className:"vi-mt-32 vi-z-1",children:(0,a.jsxs)("div",{className:"container vi-bg-prim vi-rounded-md vi-p-6 vi-max-w-3xl vi-shadow-lg",children:[this.state.showCreationSuccess&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{children:N("common:support")}),(0,a.jsx)("h1",{children:N("support:supportCreationSuccess")}),(0,a.jsx)("p",{className:"text",children:N("support:supportCreationConfirmation")})]}),!this.state.showCreationSuccess&&this.state.showSupportForm&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{children:N("common:support")}),(0,a.jsx)("h1",{style:{marginTop:0},children:N("support:contactus")}),(0,a.jsx)("p",{children:N("support:queries")}),(null==(t=this.props.seller.customTextConfig)?void 0:t.supportAvailabilityText)&&(0,a.jsx)("div",{className:(0,o.A)("vi-my-6 vi-p-4 vi-rounded-md vi-border vi-bg-sec",{"vi-bg-stone-500/10 vi-shadow-sm":(null==(i=this.props.seller)||null==(s=i.shopSettings)?void 0:s.pageStyle)==="black"}),children:(0,a.jsx)(b.A,{text:null==(d=this.props.seller.customTextConfig)?void 0:d.supportAvailabilityText})})]}),this.state.isFAQAvailable&&(0,a.jsx)("div",{children:(0,a.jsxs)("button",{disabled:this.state.buttonDisabled,className:"btn bordered vi-mt-4 vi-flex vi-flex-row vi-items-center vi-justify-center",onClick:()=>this.setState({showSupportForm:!1}),children:[(0,a.jsx)(n.g,{icon:l.CeG,size:"sm"}),N("common:back")]})}),(0,a.jsxs)(c.Ay,{validator:this.validator,children:[(0,a.jsx)("h2",{className:"h5 mt-4",children:N("common:support")}),(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(this.payload,"firstname"),title:N("c
1ommon:firstName"),type:"text",readOnly:!!this.props.template})}),(0,a.jsx)("div",{className:"col-md-6",children:(0,a.jsx)(p.A,{link:new u.a(this.payload,"lastname"),title:N("common:lastName"),type:"text",readOnly:!!this.props.template})})]}),(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("div",{className:"col-md-12",children:(0,a.jsx)(p.A,{link:new u.a(this.payload,"email"),title:N("common:email"),type:"text",readOnly:!!this.props.template})})}),!this.props.template&&(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("div",{className:"col-md-12",children:(0,a.jsx)(p.A,{link:new u.a(this.payload,"transactionId"),title:N("support:transaction"),type:"text"})})}),(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("div",{className:"col-md-12",children:(0,a.jsx)(p.A,{link:new u.a(this.payload,"message"),title:N("support:message"),type:"textarea",readOnly:!!this.props.template,height:150})})}),(0,a.jsx)("div",{className:"box mt-24",children:(0,a.jsx)("p",{className:"text small muted",children:(0,a.jsx)(x.x6,{i18nKey:"support:acceptPrivacyPoliciesOfVivenu",components:[(0,a.jsx)(F.p,{href:G._.dataPrivacyUrl(this.props.organization),showLinkIcon:!0})],tOptions:{buttonText:q}})})}),(0,a.jsx)("button",{disabled:this.state.buttonDisabled,className:"btn default block mt-24",onClick:()=>this.verifyCaptchaAndCreateSupport(),children:q})]}),!1,(0,a.jsx)("br",{})]}),!this.state.showCreationSuccess&&!this.state.showSupportForm&&this.state.isFAQAvailable&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{children:N("common:support")}),(0,a.jsx)("h1",{className:"vi-mt-0",children:N("support:howCanWeHelpYou")}),(0,a.jsx)("p",{children:N("support:browseFAQ")})]}),(0,a.jsx)(W,{seller:this.props.seller,supportFormUrl:R,locale:this.props.faqLocale,transactionId:this.props.transactionId,initialTopic:this.props.topic,faqEnabled:(0,m.i3)(this.props.seller,m.KV.SupportFAQ)&&!this.props.seller.orgId&&!this.props.seller.supportUrl,onRevealSupportForm:e=>this.setState({showSupportForm:!0,assignToSeller:e})})]})]})}),(0,a.jsx)("div",{className:"vi-grow"}),(0,a.jsx)("footer",{children:(0,a.jsx)(y.t,{sellerId:null!=(h=this.props.seller._id)?h:this.props.sellerIdOrUrl,transactionId:null!=(j=this.props.transactionId)?j:void 0})})]})]});return(0,a.jsx)(K.O3,{seller:this.props.seller,organization:null!=(g=this.props.organization)?g:void 0,children:_})}constructor(e){super(e),this.payload={},this.validator=new d.A(this.payload,i.create);let t=(0,m.i3)(e.seller,m.KV.SupportFAQ)&&!e.seller.orgId;this.state={showCreationSuccess:!1,showLoginPrompt:!1,showSupportForm:!1,buttonDisabled:!1,assignToSeller:!1,isFAQAvailable:t||"revocation"===e.topic}}});function ea(e){let{t}=(0,x.Bd)("common"),s=e.seller;return s?(0,a.jsx)(ei,{...e,seller:s}):(0,a.jsx)(k.M,{code:404,message:t("status.notFound")})}},91134:(e,t,s)=>{s.d(t,{O_:()=>i}),s(23727);function i(e){return"prod"===e}}}]);
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.