PageSourceSearch

https://my.husqvarna-motorcycles.com/_next/static/chunks/7145-28d8e7561e9a834f.js

js husqvarna-motorcycles.com collected 2026-09-24 09:41:13 UTC 21,952 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7145],{77145:function(e,t,r){r.d(t,{mv:function(){return u},t:function(){return v},Hx:function(){return H}});var a=r(85893),n=r(19521),l=r(94698),o=r(33661),i=r(57335),c=r(11163),s=r(11683);let d=n.ZP.div.withConfig({componentId:"sc-7f0bdf80-0"})(["display:flex;padding:1.5rem 0;align-items:center;position:relative;flex-wrap:wrap;","{flex-direction:column;align-items:flex-start;padding:1rem 0;}&.contact-details-attachments{align-items:flex-start;}label{color:",";width:40%;padding-right:20px;","{text-align:left;}","{width:100%;padding-top:0.8rem;padding-bottom:0.8rem;}}.contact-detail-field{color:",";word-break:break-word;width:60%;","{width:100%;}}"],(0,l.down)("sm"),e=>{let{theme:t}=e;return t.colors.label},(0,l.down)("md"),(0,l.down)("sm"),e=>{let{theme:t}=e;return t.colors.text},(0,l.down)("sm")),p=e=>{let{label:t,content:r}=e;return(0,a.jsxs)(d,{children:[(0,a.jsx)(s.ZT,{variant:"label",className:"contact-detail-label",children:t}),(0,a.jsx)(s.ZT,{variant:"body1",className:"contact-detail-field",children:r})]})},h=n.ZP.div.withConfig({componentId:"sc-7f0bdf80-1"})(["display:flex;flex-direction:column;.file-container{background:",";border-radius:",";padding:0.5rem 1rem;display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5rem;cursor:pointer;text-decoration:none;","{width:100%;margin-left:0;}.file-name{color:",";font-family:",";font-style:",";font-weight:",";font-size:",";line-height:",";text-transform:",";letter-spacing:",";margin-right:0.5rem;}.file-size{color:",";font-family:",";font-style:",";font-weight:",";font-size:",";line-height:",";text-transform:",";letter-spacing:",";}}"],e=>{let{theme:t}=e;return t.background.content},e=>{let{theme:t}=e;return t.shape.borderRadius},(0,l.down)("sm"),e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.typography.body1.fontFamily},e=>{let{theme:t}=e;return t.typography.body1.fontStyle},e=>{let{theme:t}=e;return t.typography.body1.fontWeight},e=>{let{theme:t}=e;return t.typography.body1.fontSize},e=>{let{theme:t}=e;return t.typography.body1.lineHeight},e=>{let{theme:t}=e;return t.typography.body1.textTransform},e=>{let{theme:t}=e;return t.typography.body1.letterSpacing},e=>{let{theme:t}=e;return t.colors.enabled},e=>{let{theme:t}=e;return t.typography.body1.fontFamily},e=>{let{theme:t}=e;return t.typography.body1.fontStyle},e=>{let{theme:t}=e;return t.typography.body1.fontWeight},e=>{let{theme:t}=e;return t.typography.body1.fontSize},e=>{let{theme:t}=e;return t.typography.body1.lineHeight},e=>{let{theme:t}=e;return t.typography.body1.textTransform},e=>{let{theme:t}=e;return t.typography.body1.letterSpacing}),m=e=>{let{label:t,content:r}=e,{id:n}=(0,c.useRouter)().query,{contactDetailsAttachment:l}=(0,i.w5)({inquiryId:n});return(0,a.jsxs)(d,{className:"contact-details-attachments",children:[(0,a.jsx)(s.ZT,{variant:"label",className:"contact-details-label",children:t}),(0,a.jsx)(h,{className:"contact-detail-field",children:r&&r.length>0?r.map((e,t)=>(0,a.jsxs)("a",{href:l&&l.length>0?l[t]:null,className:"file-container",target:"_blank",download:e.fileName,children:[(0,a.jsx)("span",{className:"file-name",children:e.fileName}),(0,a.jsxs)("span",{className:"file-size",children:[Math.round(e.fileSize)," (kb)"]})]},t)):"-"})]})},y=n.ZP.div.withConfig({componentId:"sc-7f0bdf80-2"})(["width:100%;max-width:1000px;padding:1.5rem;background:",";border-radius:",";"],e=>{let{theme:t}=e;return t.background.sidebar},e=>{let{theme:t}=e;return t.shape.borderRadius}),u=e=>{let{contactDetails:t}=e,{t:r}=(0,o.bU)();return(0,a.jsxs)(y,{children:[(0,a.jsx)(p,{label:r("contact.form.dealer"),content:t&&t.dealerName?t.dealerName:"-"}),(0,a.jsx)(p,{label:r("account.form.email"),content:t&&t.email?t.email:"-"}),(0,a.jsx)(p,{label:r("account.form.phone"),content:t&&t.phoneNumber?t.phoneNumber:"-"}),(0,a.jsx)(p,{label:r("contact.form.motorcycle"),content:t&&t.articleName?t.articleName:"-"}),(0,a.jsx)(p,{label:r("contact.form.vin"),content:t&&t.vin?t.vin:"-"}),(0,a.jsx)(p,{label:r("contact.form.subject"),content:t&&t.subject?t.subject:"-"}),(0,a.jsx)(p,{label:r("contact.form.message"),content:t&&t.message?t.message:"-"}),(0,a.jsx)(m,{label:r("contact.form.attachment"),content:t&&t.attachements?t.attachements:null})]})};var f=r(67294),g=r(20512),b=r(88250),x=r(14202),j=r(1191),w=r(78743);let k=n.ZP.div.withConfig({componentId:"sc-f7f9f1bf-0"})([".contact-consent{width:100%;color:",";font-family:",";font-style:",";font-weight:",";font-size:",";line-height:",";text-transform:",";letter-spacing:",";a{color:",";font-family:",";font-style:",";font-weight:",";font-size:",";line-height:",";text-transform:",";letter-spacing:",";}}.contact-dealer{position:relative;width:calc(50% - 1rem) !important;","{width:100% !important;}> div{width:100% !important;}.form-field{padding-bottom:0 !important;}.change-dealer{color:",";font-family:",";font-style:",";font-weight:",";font-size:",";line-height:",";text-transform:",";letter-spacing:",";text-decoration:none;cursor:pointer;display:flex;align-items:center;max-width:max-content;padding-bottom:2rem;padding-top:0.5rem;svg{fill:",";}}}"],e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.typography.body1.fontFamily},e=>{let{theme:t}=e;return t.typography.body1.fontStyle},e=>{let{theme:t}=e;return t.typography.body1.fontWeight},e=>{let{theme:t}=e;return t.typography.body1.fontSize},e=>{let{theme:t}=e;return t.typography.body1.lineHeight},e=>{let{theme:t}=e;return t.typography.body1.textTransform},e=>{let{theme:t}=e;return t.typography.body1.letterSpacing},e=>{let{theme:t}=e;return t.colors.enabled},e=>{let{theme:t}=e;return t.typography.body1.fontFamily},e=>{let{theme:t}=e;return t.typography.body1.fontStyle},e=>{let{theme:t}=e;return t.typography.body1.fontWeight},e=>{let{theme:t}=e;return t.typography.body1.fontSize},e=>{let{theme:t}=e;return t.typography.body1.lineHeight},e=>{let{theme:t}=e;return t.typography.body1.textTransform},e=>{let{theme:t}=e;return t.typography.body1.letterSpacing},(0,l.down)("lg"),e=>{let{theme:t}=e;return t.colors.headline},e=>{let{theme:t}=e;return t.typography.body1.fontFamily},e=>{let{theme:t}=e;return t.typography.body1.fontStyle},e=>{let{theme:t}=e;return t.typography.body1.fontWeight},e=>{let{theme:t}=e;return t.typography.body1.fontSize},e=>{let{theme:t}=e;return t.typography.body1.lineHeight},e=>{let{theme:t}=e;return t.typography.body1.textTransform},e=>{let{theme:t}=e;return t.typography.body1.letterSpacing},e=>{let{theme:t}=e;return t.colors.primary}),v=e=>{let{onSubmit:t,onSave:r,bikes:n,user:l,configurationId:i}=e,{t:c,lang:d}
1=(0,o.bU)(),{addNotification:p}=(0,x.zn)(),[h,m]=(0,f.useState)(!1),[y,u]=(0,f.useState)(!1),v=()=>{u(!1)},[N,C]=(0,f.useState)(null),S=(0,f.useMemo)(()=>(n||[]).map(e=>({label:e.nickname?e.nickname+" - "+e.bikeName:e.bikeName,value:e.id})),[n]);c("contact.form.dealer"),c("contact.form.customer_service");let z=(0,f.useMemo)(()=>[{value:"male",label:c("account.genders.male")},{value:"female",label:c("account.genders.female")},{value:"",label:c("account.genders.neutral")}],[d]);return(0,a.jsx)(k,{children:(0,a.jsx)(b.Gq,{children:(0,a.jsx)(g.J9,{initialValues:{user:l,InquiryType:"Dealer",Consent:!0,message:"",subject:"",bikeId:null},onSubmit:async(e,a)=>{let{setSubmitting:n,setErrors:o,resetForm:s,setFieldValue:d,setFieldError:h}=a;n(!0);try{let a=!1;if((null!==e.city&&""!==e.city||null!==e.zip&&""!==e.zip||null!==e.street&&""!==e.street)&&((null===e.zip||""===e.zip)&&(h("zip",c("notifications.zip_empty")),a=!0),(null===e.street||""===e.street)&&(h("street",c("notifications.street_empty")),a=!0),(null===e.city||""===e.city)&&(h("city",c("notifications.city_empty")),a=!0)),a){n(!1);return}if(e.birthday&&e.birthday.includes("_")){h("birthday",c("account.validation.invalid_date"));return}if(!e.bikeId&&!i){h("bikeId",c("contact.form.error_selectedBikeId_required"));return}let o={InquiryType:e.InquiryType,bikeId:e.bikeId||"",vin:e.vin,Consent:e.Consent,dealer:e.dealer,dealerNo:e.dealerNo,locationId:e.locationId,subject:e.subject,message:e.message,Attachments:e.Attachments,configurationId:i};for(let e in o)void 0===o[e]&&delete o[e];let m={...l,birthday:e.birthday,gender:e.gender,phonePrivate:e.phonePrivate,street:e.street,zip:e.zip,city:e.city};await r(m),await t(o),p({message:c("notifications.send_success")}),s(),l&&(d("primaryEmail",l.primaryEmail),d("birthday",l.birthday),d("gender",l.gender),d("phonePrivate",l.phonePrivate),d("street",l.street),d("zip",l.zip),d("city",l.city),l.preferredDealer&&(d("dealer",l.preferredDealer.dealerName),d("dealerNo",l.preferredDealer.dealerNo),d("locationId",l.preferredDealer.locationId),C(l.preferredDealer.brand)))}catch(e){p({message:c("notifications.".concat((0,b.KU)(e))),type:"error"}),o((0,b.CK)(e,"account.form",c)),h("street",e.response.data.error.errorMessage)}n(!1)},children:e=>{let{isSubmitting:t,values:r,setFieldValue:o}=e;return(0,f.useEffect)(()=>{l&&(o("primaryEmail",l.primaryEmail),o("birthday",l.birthday),o("gender",l.gender),o("phonePrivate",l.phonePrivate),o("street",l.street),o("zip",l.zip),o("city",l.city))},[l]),(0,f.useEffect)(()=>{l&&l.preferredDealer&&(o("dealer",l.preferredDealer.dealerName),o("dealerNo",l.preferredDealer.dealerNo),o("locationId",l.preferredDealer.locationId),C(l.preferredDealer.brand))},[]),(0,f.useEffect)(()=>{i&&(r.subject||o("subject",c("configurations.send_to_dealer_subject")),r.message||o("message",c("configurations.send_to_dealer_message")),o("InquiryType","Configuration"))},[i]),(0,f.useEffect)(()=>{if(r.bikeId){let e=n.find(e=>e.id==r.bikeId);o("vin",e&&e.VIN?e.VIN:""),e&&e.VIN?m(!0):m(!1)}},[r.bikeId]),(0,f.useEffect)(()=>{1===S.length&&o("bikeId",n[0].id)},[S]),(0,a.jsxs)(g.l0,{children:[(0,a.jsx)(b.UC,{}),(0,a.jsxs)("div",{className:"form-box form-fullwidth",children:[r&&r.InquiryType&&["Dealer","Configuration"].includes(r.InquiryType)?(0,a.jsxs)("div",{className:"contact-dealer",children:[(0,a.jsx)(b.Wi,{label:c("ServiceBook.form.dealer")+"*",placeholder:c("ServiceBook.form.dealer_placeholder"),type:"text",name:"dealer",readOnly:!0}),(0,a.jsxs)("a",{className:"change-dealer",onClick:()=>{u(!0)},children:[c("common.navigation.account-dealerchange")," ",(0,a.jsx)(j.Z,{})]}),(0,a.jsx)(s.Ey,{isOpen:y,onRequestClose:v,ariaHideApp:!1,shouldCloseOnOverlayClick:!1,children:(0,a.jsx)(w.e,{onSaveLabel:c("common.actions.choose"),onSelect:e=>{o("dealer",e.dealerName),o("dealerNo",e.dealerNo),o("locationId",e.locationId),C(e.brand),v()},surpressNotifications:!0,onClose:v})})]}):null,(0,a.jsx)(b.Wi,{label:c("account.form.email")+"*",placeholder:c("account.form.email"),type:"email",name:"primaryEmail",className:"field-halfwidth",readOnly:!0}),l&&!l.birthday?(0,a.jsx)(b.r$,{label:c("account.form.birthday"),name:"birthday"}):null,l&&!l.gender?(0,a.jsx)(b.ih,{options:z,placeholder:c("account.form.select_gender"),label:c("account.form.gender"),name:"gender"}):null,l&&!l.phonePrivate?(0,a.jsx)(b.Wi,{label:c("account.form.phone"),placeholder:c("account.form.phone"),type:"text",name:"phonePrivate"}):null,l&&!l.city?(0,a.jsx)(b.Wi,{label:c("account.form.city"),placeholder:c("account.form.city"),type:"text",name:"city"}):null,l&&!l.zip?(0,a.jsx)(b.Wi,{label:c("account.form.zip"),placeholder:c("account.form.zip"),type:"text",name:"zip"}):null,l&&!l.street?(0,a.jsx)(b.Wi,{label:c("account.form.street"),placeholder:c("account.form.street"),type:"text",name:"street"}):null,i?null:(0,a.jsx)(b.ih,{label:c("contact.form.bike")+"*",options:S,name:"bikeId",placeholder:S.length?c("contact.form.select_bike"):c("contact.form.dealer_brand_validation"),trackingClass:"contact-bike-selection"}),i?null:(0,a.jsx)(b.Wi,{label:c("contact.form.vin"),placeholder:c("contact.form.vin_placeholder"),type:"text",name:"vin",readOnly:!!h||null}),(0,a.jsx)(b.Wi,{label:c("contact.form.subject")+"*",placeholder:c("contact.form.subject_placeholder"),type:"text",name:"subject"}),(0,a.jsx)(b.ld,{label:c("contact.form.message")+"*",rows:6,placeholder:c("contact.form.message_placeholder"),name:"message",maxChars:2500}),(0,a.jsx)(b.VD,{accept:".jpg,.jpeg,.png,.pdf,.docx",maxSize:8,maxSizeErrorLabel:c("contact.form.fileTooLarge"),label:c("contact.form.attachment"),placeholder:c("contact.form.attachments_placeholder"),name:"Attachments[]"}),(0,a.jsx)("span",{className:"contact-consent",dangerouslySetInnerHTML:{__html:c("contact.form.consent")}})]}),(0,a.jsxs)(s.zx,{className:"submit-contact-form",type:"submit",disabled:t,children:[c("common.actions.send"),t?(0,a.jsx)(b.aN,{}):null]})]})}})})})};var N=r(70890);function C(){return(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M9.611 6.75C10.0252 6.75 10.361 7.08579 10.361 7.5C10.361 7.9
11421 10.0252 8.25 9.611 8.25H7.25C5.31721 8.25 3.75 9.81721 3.75 11.75C3.75 13.6828 5.31721 15.25 7.25 15.25H9.611C10.0252 15.25 10.361 15.5858 10.361 16C10.361 16.4142 10.0252 16.75 9.611 16.75H7.25C4.48879 16.75 2.25 14.5112 2.25 11.75C2.25 8.98879 4.48879 6.75 7.25 6.75H9.611ZM16.75 6.75C19.5112 6.75 21.75 8.98879 21.75 11.75C21.75 14.4385 19.6275 16.6318 16.9669 16.7454L16.75 16.75H14.389C13.9748 16.75 13.639 16.4142 13.639 16C13.639 15.6203 13.9212 15.3065 14.2872 15.2568L14.389 15.25H16.75C18.6828 15.25 20.25 13.6828 20.25 11.75C20.25 9.88164 18.7855 8.35489 16.942 8.25518L16.75 8.25H14.389C13.9748 8.25 13.639 7.91421 13.639 7.5C13.639 7.12031 13.9212 6.80651 14.2872 6.75685L14.389 6.75H16.75ZM16 11.25C16.4142 11.25 16.75 11.5858 16.75 12C16.75 12.4142 16.4142 12.75 16 12.75H8C7.58579 12.75 7.25 12.4142 7.25 12C7.25 11.5858 7.58579 11.25 8 11.25H16Z"})})}var S=r(70958),z=r(41664),I=r.n(z);let _=n.ZP.div.withConfig({componentId:"sc-5bc9784a-0"})(["background:",";border-radius:",";.table-scroll{","{overflow-x:auto;}::-webkit-scrollbar{height:5px;}::-webkit-scrollbar-track{background:transparent;}::-webkit-scrollbar-thumb{background:",";}::-webkit-scrollbar-thumb:hover{background:",";}}table{width:100%;border-collapse:collapse;word-wrap:break-word;table-layout:fixed;","{width:100%;display:block;tbody{width:100%;display:block;}thead{display:none;}}tr{:hover{td{background-color:",";}cursor:pointer;}","{position:relative;margin:0.75rem;padding-bottom:1rem;display:flex;flex-direction:column;border-bottom:1px solid ",";&:last-child{border-bottom:none;}}}th{text-align:left;width:15%;padding:1.5rem 0.5rem;&:first-of-type{padding-left:1rem;}&.th-date,&.th-attachments{width:10%;}&.th-arrow{width:7%;}span{color:",";font-family:",";font-style:",";font-weight:",";font-size:",";line-height:",";text-transform:",";letter-spacing:",";cursor:pointer;display:flex;align-items:center;&.ascending{svg{transform:rotate(-90deg);}}svg{fill:",";transform:rotate(90deg);margin-left:0.8rem;}}}td{color:",";font-family:",";font-style:",";font-weight:",";font-size:",";line-height:",";text-transform:",";letter-spacing:",";width:15%;padding:1.5rem 0.5rem;border-top:1px solid ",";","{border-top:none;}&:first-of-type{padding-left:1rem;}span{color:",";font-family:",";font-style:",";font-weight:",";font-size:",";line-height:",";text-transform:",";letter-spacing:",";display:flex;align-items:center;&.td-attachments-link{color:",";svg{fill:",";margin-right:0.5rem;}}}a{display:flex;align-items:center;justify-content:center;svg{fill:",";}}&.td-date,&.th-attachments{width:10%;}&.td-arrow{width:7%;}","{display:flex;width:100%;padding:0.5rem !important;height:auto;word-wrap:break-word;&.td-title,&.td-name,&.td-notes,&.td-date,&.td-duration{width:100%;}&.td-arrow{position:absolute;top:0rem;right:0rem;}span{flex:3;}&:before{color:",";font-family:",";font-style:",";font-weight:",";font-size:",";line-height:",";text-transform:",";letter-spacing:",";width:6rem;flex:2;display:flex;text-align:left;content:attr(data-th);}}}}"],e=>{let{theme:t}=e;return t.background.sidebar},e=>{let{theme:t}=e;return t.shape.borderRadius},(0,l.down)("xxl"),e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.primary},(0,l.down)("md"),e=>{let{theme:t}=e;return t.colors.backgroundHover},(0,l.down)("md"),e=>{let{theme:t}=e;return t.background.content},e=>{let{theme:t}=e;return t.colors.table},e=>{let{theme:t}=e;return t.typography.label.fontFamily},e=>{let{theme:t}=e;return t.typography.label.fontStyle},e=>{let{theme:t}=e;return t.typography.label.fontWeight},e=>{let{theme:t}=e;return t.typography.label.fontSize},e=>{let{theme:t}=e;return t.typography.label.lineHeight},e=>{let{theme:t}=e;return t.typography.label.textTransform},e=>{let{theme:t}=e;return t.typography.label.letterSpacing},e=>{let{theme:t}=e;return t.colors.table},e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.typography.body1.fontFamily},e=>{let{theme:t}=e;return t.typography.body1.fontStyle},e=>{let{theme:t}=e;return t.typography.body1.fontWeight},e=>{let{theme:t}=e;return t.typography.body1.fontSize},e=>{let{theme:t}=e;return t.typography.body1.lineHeight},e=>{let{theme:t}=e;return t.typography.body1.textTransform},e=>{let{theme:t}=e;return t.typography.body1.letterSpacing},e=>{let{theme:t}=e;return t.colors.border},(0,l.down)("md"),e=>{let{theme:t}=e;return t.colors.text},e=>{let{theme:t}=e;return t.typography.body1.fontFamily},e=>{let{theme:t}=e;return t.typography.body1.fontStyle},e=>{let{theme:t}=e;return t.typography.body1.fontWeight},e=>{let{theme:t}=e;return t.typography.body1.fontSize},e=>{let{theme:t}=e;return t.typography.body1.lineHeight},e=>{let{theme:t}=e;return t.typography.body1.textTransform},e=>{let{theme:t}=e;return t.typography.body1.letterSpacing},e=>{let{theme:t}=e;return t.colors.enabled},e=>{let{theme:t}=e;return t.colors.enabled},e=>{let{theme:t}=e;return t.colors.primary},(0,l.down)("md"),e=>{let{theme:t}=e;return t.colors.label},e=>{let{theme:t}=e;return t.typography.label.fontFamily},e=>{let{theme:t}=e;return t.typography.label.fontStyle},e=>{let{theme:t}=e;return t.typography.label.fontWeight},e=>{let{theme:t}=e;return t.typography.label.fontSize},e=>{let{theme:t}=e;return t.typography.label.lineHeight},e=>{let{theme:t}=e;return t.typography.label.textTransform},e=>{let{theme:t}=e;return t.typography.label.letterSpacing}),H=e=>{let{contactHistory:t,firstEntry:r,lastEntry:n,currentPage:l}=e,{t:i,country:c,lang:s,formatDate:d}
1=(0,o.bU)(),{sortItems:p,requestSort:h,sortConfig:m}=(0,S.c)(t),y=e=>{if(m)return m.key===e?m.direction:void 0},u=p.slice(r,n);return(0,a.jsx)(_,{children:(0,a.jsx)("div",{className:"table-scroll",children:(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"th-date",children:(0,a.jsxs)("span",{onClick:()=>h("created"),className:y("created"),children:[i("contact.details.date"),(0,a.jsx)(j.Z,{})]})}),(0,a.jsx)("th",{className:"th-bike",children:(0,a.jsxs)("span",{onClick:()=>h("articleName"),className:y("articleName"),children:[i("contact.details.bike"),(0,a.jsx)(j.Z,{})]})}),(0,a.jsx)("th",{className:"th-dealer",children:(0,a.jsxs)("span",{onClick:()=>h("dealerName"),className:y("dealerName"),children:[i("contact.details.dealer"),(0,a.jsx)(j.Z,{})]})}),(0,a.jsx)("th",{className:"th-subject",children:(0,a.jsxs)("span",{onClick:()=>h("subject"),className:y("subject"),children:[i("contact.details.subject"),(0,a.jsx)(j.Z,{})]})}),(0,a.jsx)("th",{className:"th-attachments",children:(0,a.jsxs)("span",{children:[i("contact.details.attachments"),(0,a.jsx)(j.Z,{})]})}),(0,a.jsx)("th",{className:"th-arrow"})]})}),(0,a.jsx)("tbody",{children:u.map(e=>(0,a.jsx)(I(),{href:"/[country]/[lang]/contact/entry?id=".concat(e.id,"&page=").concat(l||""),as:"/".concat(c,"/").concat(s,"/contact/entry?id=").concat(e.id,"&page=").concat(l||""),legacyBehavior:!0,children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{"data-th":i("contact.details.date"),className:"td-date",children:(0,a.jsx)("span",{children:d(e.created)})}),(0,a.jsx)("td",{"data-th":i("contact.details.bike"),className:"td-bike",children:(0,a.jsx)("span",{children:e.articleName})}),(0,a.jsx)("td",{"data-th":i("contact.details.dealer"),className:"td-dealer",children:(0,a.jsx)("span",{children:e.dealerName})}),(0,a.jsx)("td",{"data-th":i("contact.details.subject"),className:"td-subject",children:(0,a.jsx)("span",{children:e.subject})}),(0,a.jsx)("td",{"data-th":i("contact.details.attachments"),className:"td-attachments",children:e.attachements&&e.attachements.length>0?(0,a.jsxs)("span",{className:"td-attachments-link",children:[(0,a.jsx)(C,{}),e.attachements.length+" ",1==e.attachements.length?i("contact.details.file"):i("contact.details.files")]}):null}),(0,a.jsx)("td",{className:"td-arrow",children:(0,a.jsx)("a",{className:"contact-view-button",children:(0,a.jsx)(N.Z,{})})})]},e.id)},e.id))})]})})})}},57335:function(e,t,r){r.d(t,{WJ:function(){return i},uu:function(){return o},w5:function(){return c}});var a=r(67294),n=r(28937),l=r(86788);let o=()=>{let{user:e}=(0,l.Eu)(),{apiClient:t}=(0,n.m)();return{onSubmit:(0,a.useCallback)(async r=>(r.UserEmail=e.email,await t.createInquiry(r)),[e])}},i=()=>{let{apiClient:e}=(0,n.m)(),[t,r]=(0,a.useState)([]),[l,o]=(0,a.useState)(!1),i=(0,a.useCallback)(async()=>{o(!0);let t=await e.getContactHistory();r(t?t.userInquiryCollection:null),o(!1)},[t]);return(0,a.useEffect)(()=>{i()},[]),{contactHistory:t,loadingContact:l}},c=e=>{let{inquiryId:t}=e,{user:r}=(0,l.Eu)(),{apiClient:o}=(0,n.m)(),[i,c]=(0,a.useState)(null),[s,d]=(0,a.useState)(null),p=(0,a.useCallback)(async()=>{c(await o.getContactDetails(t))},[t]),h=(0,a.useCallback)(async e=>{let t=await o.getContactDetailsAttachment(e);return window.URL.createObjectURL(new Blob([t]))},[s]),m=async()=>{if(i&&i.attachements&&i.attachements.length>0){let e=[];for(let t of i.attachements){let r=t.url.toString().split("id=")[1],a=await h(r);e.push(a)}d(e)}};return(0,a.useEffect)(()=>{m()},[i]),(0,a.useEffect)(()=>{r&&p()},[r]),{contactDetails:i,contactDetailsAttachment:s,loadContactDetailsAttachment:h}}}}]);

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.