1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7160],{30915:function(e,n){n.Z={src:"/_next/static/media/default-product-image.54a34aa8.png",height:1e3,width:1e3,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAcElEQVR42mMAgRLGUkYIDeFCOO4lwiA2mFsiX5JYsqnElYGhhIWhhJmBobSu9E7pz9LzpSwMDAylTAwMJctL9pTkljSXSDOAQCVHmRwDFGQxMjAw9Gj3mXdbdbl22XfrMoBAG2MjcydjD2M3EDIwAADxsBwbCedT9QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},42137:function(e,n){n.Z={src:"/_next/static/media/fanatec-default-product-image.09643a0c.png",height:1333,width:2e3,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAQAAADSmGXeAAAAO0lEQVR42mPAAroYGRi6MjtndakxMHQyMXQxMTB0qXRWdAV3cYAkIfJyXRJdzF3cyNrYOnm6WBkYGBgA9lUMvUs3ygAAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5}},28873:function(e,n,l){l.d(n,{r:function(){return y}});var t=l(85893),a=l(59748),s=l(91637),o=l(92865),r=l(9225),i=l(12921),c=l.n(i),d=(l(96520),l(57669)),u=l(93967),m=l.n(u),p=l(19833),v=l(1588),h=l(79841),x=l(11163),g=l(67294),_=l(57843),j=l(30915),b=(l(42137),{src:"/_next/static/media/tags-filled.d1453607.svg",height:13,width:12,blurWidth:0,blurHeight:0});let f=e=>e?null==e?void 0:e.replace("/c_scale%2C","/c_fill%2C"):"",y=e=>{let{orderData:n}=e,l=j.Z,{t:i}=(0,h.$G)(["account","common"]),{locale:u}=(0,x.useRouter)(),{base:{dateFormatByRegion:y,deliveryDateRange:N}}=(0,s.d7)(),A="k70_",k=(0,g.useRef)(null),[w,E]=(0,g.useState)({}),T=e=>{if(!(null==e?void 0:e.backorder)||!(null==e?void 0:e.backorder_delivery_date))return"";let{backorder_date_range:n,translation_entry:l}=(0,v.hY)(y,null==e?void 0:e.backorder,"",null==e?void 0:e.backorder_delivery_date);return"".concat(i("account||orders|".concat(l))," ").concat(n||"")};k.current;let S=(e,n,l)=>{var t,a,s;let o=null==n?void 0:null===(t=n[e])||void 0===t?void 0:t.deliverBy,r=(null==n?void 0:null===(s=n[e])||void 0===s?void 0:null===(a=s.excludedDeliveryDate)||void 0===a?void 0:a.split("-"))||[];return(0,p.V_)({dateFormatByRegion:y,deliverBy:o,excludedDeliveryDate:r,orderCreatedDate:l})},C=(e,n,l,t)=>{var a,s;if((null==e?void 0:null===(a=e.toLocaleLowerCase())||void 0===a?void 0:a.startsWith(A))||(null==e?void 0:null===(s=e.toLocaleLowerCase())||void 0===s?void 0:s.startsWith("p6_")))return null;let o=S(e,n,t);return o?"".concat(i("common||Deliver by")," ").concat(o||""):null},R=e=>{var l,t;return null!==(t=null===(l=n.shipments)||void 0===l?void 0:l.filter(n=>{var l;return e&&(null==n?void 0:n.tracking)&&(null==n?void 0:null===(l=n.items)||void 0===l?void 0:l.some(n=>(null==n?void 0:n.product_sku)===e))}))&&void 0!==t?t:[]},I=e=>{var n;let l=null===(n=e.shipping_address)||void 0===n?void 0:n.country_code;l&&"AD,AL,AT,AX,BA,BE,BG,BQ,BY,CH,CW,CY,CZ,DE,DK,EE,ES,EU,FI,FO,FR,GB,GG,GI,GR,HR,HU,IE,IM,IS,IT,JE,LI,LT,LU,LV,MC,MD,ME,MK,MT,NL,NO,PL,PT,RO,RS,RU,SE,SI,SJ,SK,SM,SX,UA,VA,XK".includes(l)&&(l="EU"),N&&N[l]},O=(0,g.useMemo)(()=>{var e;return null===(e=n.items)||void 0===e?void 0:e.map((e,s)=>{var p,v,h,x,g,j,y,N,k,w,E,S;let O=(null==e?void 0:e.status)=="SHIPPED",D=!!(null==e?void 0:null===(p=e.bundle_components)||void 0===p?void 0:p.length),L=T(e),q=C(e.product_sku,n.deliverByMapping,(null==e?void 0:e.bundle_components)||[],n.order_date),M=I(n),B=D?". ".concat(i("account||orders|Bundle ship together")):"",F=(0,d.D)(null==e?void 0:e.promo_campaign_message);return[(0,t.jsxs)("tr",{style:{height:(null==e?void 0:null===(v=e.bundle_components)||void 0===v?void 0:v.length)?"".concat((null==e?void 0:null===(h=e.bundle_components)||void 0===h?void 0:h.length)*50+130,"px"):"auto",verticalAlign:(null==e?void 0:null===(x=e.bundle_components)||void 0===x?void 0:x.length)?"top":"middle"},"data-backorder":L||null,className:m()([(null==e?void 0:null===(g=e.status)||void 0===g?void 0:g.toUpperCase())!=="CANCELED"&&c()["row-with-border"],!L&&!q&&!M&&c()["border-btm-no-backorder"],D&&c()["row-has-bundles"],"relative"]),children:[(0,t.jsxs)("td",{className:"col ","data-th":i("account||orders|Item"),children:[(0,t.jsx)("div",{style:{margin:"0px 3px 3px 3px"},children:D?(0,t.jsx)(o.ZP,{src:(e=>{var n,l,t;if(null==e?void 0:null===(n=e.product_sku)||void 0===n?void 0:n.startsWith("p6_"))switch(null==e?void 0:e.product_name.toUpperCase()){case"PLATFORM 6":return"https://assets.corsair.com/image/upload/v1693246263/products/Gaming-Desks/Fixed/PLATFORM_6_RENDERS_07.png";case"PLATFORM 6 CREATOR EDITION":return"https://assets.corsair.com/image/upload/v1693246265/products/Gaming-Desks/Elevate/Elevate%20-%20Wood/PLATFORM_6_ELEVATE_WOOD_RENDERS_24.png";case"PLATFORM 6 ELAVATE":return"https://assets.corsair.com/image/upload/v1693246258/products/Gaming-Desks/Elevate/Elevate%20-%20Black/PLATFORM_6_ELEVATE_RENDERS_06.png";default:return null}else if(null==e?void 0:null===(l=e.product_sku)||void 0===l?void 0:l.startsWith(A))return"https://res.cloudinary.com/corsair-pwa/image/upload/v1658997657/products/Gaming-Keyboards/CH-9189010-NA/Gallery/K70_PRO_MINI_WIRELESS_PBT_24.png";return null==e?void 0:null===(t=e.image)||void 0===t?void 0:t.src})(e)||l,alt:(null==e?void 0:e.product_name)?null==e?void 0:e.product_name:"placeholder",objectFit:"contain",width:96,height:96,className:c()["product-img"]}):(0,t.jsx)(o.ZP,{src:(null==e?void 0:null===(j=e.image)||void 0===j?void 0:j.src)||l,alt:(null==e?void 0:e.product_name)?null==e?void 0:e.product_name:"placeholder",objectFit:"contain",width:96,height:96,className:c()["product-img"]})}),(0,t.jsx)("div",{className:m()(c()["orderitem-bunde-list"],"md:absolute left-16 bottom-6 relative"),children:null==e?void 0:null===(y=e.bundle_components)||void 0===y?void 0:y.map(e=>(0,t.jsxs)("div",{className:"flex items-center align-middle",style:{marginTop:"3px"},children:[(0,t.jsx)(o.ZP,{src:(null==e?void 0:e.image_url)?f(null==e?void 0:e.image_url):l,alt:(null==e?void 0:e.name)?null==e?void 0:e.name:"placeholder",objectFit:"contain",width:50,height:50,className:c()["product-img"]}),(0,t.jsx)("span",{className:"block ml-4 text-xs md-max:overflow-hidden md-max:whitespace-normal overflow-hidden",style:{maxWidth:"200px",maxHeight:"34px"},children:e.name}),(null==e?void 0:e.qty)&&Number(null==e?void 0:e.qty)>1&&(0,t.jsxs)("span",{className:"ml-4",style:{flexShrink:0,flexGrow:0},children:[" ","x",null==e?void 0:e.qty]})]},e.sku))})]}),(0,t.jsxs)("td",{className:"col name","data-th":i("account||orders|Item"),children:[(0,t.jsx)("strong",{className:"product-item-name md:text-base",children:null==e?void 0:e.product_name}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"font-thin text-xs whitespace-pre",children:null==e?void 0:e.product_sku}),null==e?void 0:null===(N=e.selected_options)||void 0===N?void 0:N.map((e,n)=>(0,t.jsxs)("dl",{className:c()["item-options"],children:[(0,t.jsx)("dt",{children:(0,t.jsx)("b",{children:null==e?void 0:e.label})}),(0,t.jsx)("dd",{children:null==e?void 0:e.value})]},"".concat(null==e?void 0:e.label,"-").concat(n))),!(null==e?void 0:e.exclude_promo)&&(null==e?void 0:e.promo_campaign_mh)&&(0,t.jsxs)("div",{className:c()["msg-promo-campaign"],children:[(0,t.jsx)("div",{children:(0,t.jsx)(o.ZP,{className:c()["plus-icon"],src:b,width:18,height:18,alt:"",objectFit:"contain"})}),(0,t.jsx)("span",{className:c()["msg-promo-campaign__txt"],children:i("common||Comes with two free months of mmhmm")})]}),!(null==e?void 0:e.exclude_promo)&&!!(null==e?void 0:e.promo_campaign_name)&&(0,t.jsxs)("div",{className:c()["msg-promo-campaign"],children:[(0,t.jsx)("div",{children:(0,t.jsx)(o.ZP,{className:c()["plus-icon"],src:b,width:18,height:18,alt:"",objectFit:"contain"})}),(0,t.jsx)("span",{className:c()["msg-promo-campaign__txt"],children:F||i("common||Configurable 3rd party promo code")})]})]}),(0,t.jsx)("td",{className:"col","data-th":i("account||orders|Price"),children:(0,t.jsx)("span",{className:"cart-price",children:(0,t.jsx)("span",{className:"font-thin",children:e&&(0,r.T)((0,_._)(e,n.items),u).replaceAll("â",",")})})}),(0,t.jsx)("td",{className:"col qty","data-th":i("account||orders|Qty"),children:(0,t.jsx)("ul",{className:"items-qty",children:(null==e?void 0:e.quantity_ordered)!==0&&(0,t.jsx)("li",{children:(0,t.jsx)("span",{className:"font-thin",children:null==e?void 0:e.quantity_ordered})})})}),(0,t.jsx)("td",{className:"col subtotal","data-th":i("account||orders|Item Total"),children:(0,t.jsx)("span",{className:"price-excluding-tax",children:(0,t.jsx)("span",{children:(0,t.jsx)("span",{className:"text-lg font-semibold",children:(0,r.T)((0,_.f)(e,n.items),u).replaceAll("â",",")})})})}),(0,t.jsx)("td",{className:"col qty","data-th":i("account||orders|Item Status"),children:(0,t.jsx)("ul",{className:"items-qty",children:(0,t.jsx)("li",{children:(0,t.jsx)("span",{className:"font-thin",children:i("account||orders|".concat(null==e?void 0:e.status))})})})}),(0,t.jsxs)("td",{className:m()("col qty",D&&c()["bundle-tracking-info"]),"data-th":i("account||orders|Tracking Info"),style:{height:(null==e?void 0:null===(k=e.bundle_components)||void 0===k?void 0:k.length)?"".concat((null==e?void 0:null===(w=e.bundle_components)||void 0===w?void 0:w.length)*50+130,"px"):"auto"},children:[(0,t.jsx)("ul",{className:c()["tracking-info"],style:{whiteSpace:"normal",wordBreak:"break-word"},children:R(null==e?void 0:e.product_sku).map(e=>{var n;return(null==e?void 0:e.tracking)&&(0,t.jsx)("li",{children:(0,t.jsx)("a",{target:"_blank",rel:"noreferrer",href:e.tracking[0].title,className:"font-thin uppercase cursor-pointer text-blue",children:null==e?void 0:null===(n=e.tracking[0])||void 0===n?void 0:n.number})})})}),D&&(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-around",height:(null==e?void 0:null===(E=e.bundle_components)||void 0===E?void 0:E.length)?"".concat(50*e.bundle_components.length,"px"):"auto"},children:(null==e?void 0:e.bundle_components)&&(null==e?void 0:e.bundle_components.map((e,n)=>(0,t.jsx)("a",{href:null==e?void 0:e.tracking_url,target:"_blank",rel:"noreferrer",className:"font-thin uppercase ".concat((null==e?void 0:e.tracking_url)&&"cursor-pointer text-blue text-ellipsis"),children:null==e?void 0:e.tracking_number},n)))})]}),(0,t.jsx)("td",{className:"col qty","data-th":i("account||orders|Invoice Number"),children:(0,t.jsx)("ul",{className:"items-qty",children:null===(S=n.invoices)||void 0===S?void 0:S.map((e,n)=>(0,t.jsx)("li",{children:(0,t.jsx)("span",{className:"font-thin",children:null==e?void 0:e.number},n)}))})}),!1]},s),!O&&L&&(0,t.jsxs)("tr",{className:m()(c()["row-with-border-btm"]),children:[(0,t.jsx)("td",{className:"col hidden",colSpan:1}),(0,t.jsx)("td",{className:"col",colSpan:7,children:(0,t.jsxs)("div",{className:"w-full flex items-center",children:[(0,t.jsx)("span",{className:"mr-1.5",children:(0,t.jsx)(a.XT,{})}),(0,t.jsx)("span",{className:"font-semibold text-sm font-sairaCopy text-teal",children:"".concat(L).concat(B)})]})})]}),!O&&!L&&q&&(0,t.jsxs)("tr",{className:m()(c()["row-with-border-btm"]),children:[(0,t.jsx)("td",{className:"col hidden",colSpan:1}),(0,t.jsx)("td",{className:"col",colSpan:7,children:(0,t.jsx)("div",{className:"w-full flex items-center",children:(0,t.jsx)("span",{className:"font-semibold text-sm font-sairaCopy text-teal",children:"".concat(q)})})})]}),!O&&!1,[(0,t.jsx)("div",{className:"w-full h-0.5 border-0"},s)]]})},[n.items]),D=(0,g.useMemo)(()=>{var e;return null===(e=n.items)||void 0===e?void 0:e.map((e,s)=>{var p,v,h,x,g,j;let y=(null==e?void 0:e.status)=="SHIPPED",N=null!==(j=null==e?void 0:null===(p=e.bundle_components)||void 0===p?void 0:p.length)&&void 0!==j?j:0,A=T(e),k=N?". ".concat(i("account||orders|Bundle ship together")):"",w=(I(n),C(e.product_sku,n.deliverByMapping,(null==e?void 0:e.bundle_components)||[],n.order_date)),E=(0,d.D)(null==e?void 0:e.promo_campaign_message);return[(0,t.jsxs)("div",{className:"order-details-product relative",style:{paddingBottom:(null==e?void 0:null===(v=e.bundle_components)||void 0===v?void 0:v.length)?"".concat(50*e.bundle_components.length+30,"px"):"auto"},children:[(0,t.jsx)("div",{className:"order-profuct-image",children:(0,t.jsx)(o.ZP,{src:(null==e?void 0:null===(h=e.image)||void 0===h?void 0:h.src)||l,alt:(null==e?void 0:e.product_name)?null==e?void 0:e.product_name:"placeholder",objectFit:"contain",width:96,height:96,className:c()["product-img"]})}),(0,t.jsxs)("div",{className:"order-product-info flex-grow",children:[(0,t.jsxs)("div",{className:"product-item",children:[(0,t.jsx)("strong",{className:"product-item-name md:text-base",children:null==e?void 0:e.product_name}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"font-thin text-xs whitespace-pre",children:null==e?void 0:e.product_sku}),null==e?void 0:null===(x=e.selected_options)||void 0===x?void 0:x.map((e,n)=>(0,t.jsxs)("dl",{className:c()["item-options"],children:[(0,t.jsx)("dt",{children:(0,t.jsx)("b",{children:null==e?void 0:e.label})}),(0,t.jsx)("dd",{children:null==e?void 0:e.value})]},"".concat(null==e?void 0:e.label,"-").concat(n))),!(null==e?void 0:e.exclude_promo)&&(null==e?void 0:e.promo_campaign_mh)&&(0,t.jsxs)("div",{className:c()["msg-promo-campaign"],children:[(0,t.jsx)("div",{children:(0,t.jsx)(o.ZP,{className:c()["plus-icon"],src:b,width:18,height:18,alt:"",objectFit:"contain"})}),(0,t.jsx)("span",{className:c()["msg-promo-campaign__txt"],children:i("common||Comes with two free months of mmhmm")})]}),!(null==e?void 0:e.exclude_promo)&&!!(null==e?void 0:e.promo_campaign_name)&&(0,t.jsxs)("div",{className:c()["msg-promo-campaign"],children:[(0,t.jsx)("div",{children:(0,t.jsx)(o.ZP,{className:c()["plus-icon"],src:b,width:18,height:18,alt:"",objectFit:"contain"})}),(0,t.jsx)("span",{className:c()["msg-promo-campaign__txt"],children:E||i("common||Configurable 3rd party promo code")})]})]}),(0,t.jsxs)("div",{className:"product-item-info",children:[(0,t.jsxs)("p",{className:"price",children:[i("Item price: "),e&&(0,r.T)((0,_._)(e,n.items),u).replaceAll("â",",")]}),(0,t.jsx)("p",{className:"status",children:i("account||orders|".concat(null==e?void 0:e.status))}),(0,t.jsx)("p",{className:"tracking-info",children:R(null==e?void 0:e.product_sku).map(e=>{var n;return(null==e?void 0:e.tracking)&&(0,t.jsx)("a",{target:"_blank",rel:"noreferrer",href:e.tracking[0].title,className:"font-thin uppercase cursor-pointer text-blue",children:null==e?void 0:null===(n=e.tracking[0])||void 0===n?void 0:n.number})})})]}),(0,t.jsxs)("div",{className:"product-item-info pb-4",children:[(0,t.jsxs)("strong",{className:"quantity",children:[i("QTY: "),(null==e?void 0:e.quantity_ordered)!==0&&(0,t.jsx)("span",{className:"font-thin",children:null==e?void 0:e.quantity_ordered})]}),(0,t.jsx)("strong",{className:"total",children:(0,r.T)((0,_.f)(e,n.items),u).replaceAll("â",",")})]}),!y&&(null==e?void 0:e.backorder)&&(0,t.jsxs)("div",{className:"w-full flex items-start mt-4",children:[(0,t.jsx)("span",{className:"mt-1 mr-1.5",children:(0,t.jsx)(a.XT,{})}),(0,t.jsx)("span",{className:"font-semibold text-sm font-sairaCopy text-teal",children:"".concat(A).
1concat(k)})]}),!y&&!1,!y&&!A&&w&&(0,t.jsx)("div",{className:"w-full flex items-start mt-4",children:(0,t.jsx)("span",{className:"font-semibold text-sm font-sairaCopy text-teal",children:w})})]}),(0,t.jsx)("div",{className:m()(c()["orderitem-bunde-list"],"absolute left-16 bottom-6"),children:null==e?void 0:null===(g=e.bundle_components)||void 0===g?void 0:g.map(e=>(0,t.jsxs)("div",{className:"flex items-center align-middle",children:[(0,t.jsx)(o.ZP,{src:(null==e?void 0:e.image_url)?f(null==e?void 0:e.image_url):l,alt:(null==e?void 0:e.name)?null==e?void 0:e.name:"placeholder",objectFit:"contain",width:50,height:50,className:c()["product-img"]}),(0,t.jsx)("span",{className:"block ml-4 text-xs md-max:overflow-hidden md-max:whitespace-normal overflow-hidden",style:{maxWidth:"200px",maxHeight:"34px"},children:e.name}),(null==e?void 0:e.qty)&&Number(null==e?void 0:e.qty)>1&&(0,t.jsxs)("span",{className:"ml-4",style:{flexShrink:0,flexGrow:0},children:[" ","x",null==e?void 0:e.qty]})]},e.sku))})]},s)]})},[n.items]);return(0,t.jsxs)("div",{className:m()(c()["orderd-items-container"]),children:[(0,t.jsx)("div",{className:c()["order-list-table"],children:(0,t.jsxs)("table",{className:m()(c()["order-items-body-table"]),children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"bg-accents-8",children:[(0,t.jsx)("th",{className:m()(c()["order-list-table-header"])}),(0,t.jsx)("th",{className:m()(c()["order-list-table-header"]),children:i("account||orders|Item")}),(0,t.jsx)("th",{className:m()(c()["order-list-table-header"]),children:i("account||orders|Price")}),(0,t.jsx)("th",{className:m()(c()["order-list-table-header"]),children:i("account||orders|Qty")}),(0,t.jsx)("th",{className:m()(c()["order-list-table-header"]),children:i("account||orders|Item Total")}),(0,t.jsx)("th",{className:m()(c()["order-list-table-header"]),children:i("account||orders|Item Status")}),(0,t.jsx)("th",{className:m()(c()["order-list-table-header"]),style:{width:"fit-content"},children:i("account||orders|Tracking Info")}),(0,t.jsx)("th",{className:m()(c()["order-list-table-header"]),children:i("account||orders|Invoice Number")}),!1]})}),(0,t.jsx)("tbody",{className:"border",children:n.items&&O})]})}),(0,t.jsx)("div",{className:"order-list-card-mobile",children:n.items&&D})]})}},92209:function(e,n,l){l.d(n,{w:function(){return s}});var t=l(85893);l(67294);var a=l(99711);let s=e=>{let{address:n,companyCustomer:l}=e,{countryNameLocale:s}=(0,a.FE)({revalidateOnFocus:!1});return n&&(0,t.jsxs)("div",{className:"font-light",children:[l&&(0,t.jsx)("p",{children:l}),(0,t.jsxs)("p",{children:[n.firstname," ",n.lastname]}),!l&&n.company&&(0,t.jsx)("p",{children:n.company}),(0,t.jsxs)("p",{children:[n.street.filter(e=>!!e).join(", "),n.city&&", ".concat(n.city),n.region&&", ".concat(n.region)]}),(0,t.jsx)("p",{children:n.postcode}),(0,t.jsx)("p",{children:s.get(n.country_code)}),(0,t.jsx)("a",{href:"tel:".concat(n.telephone),children:"T: ".concat(n.telephone)})]})}},29032:function(e,n,l){l.d(n,{p:function(){return m}});var t=l(85893);l(67294);var a=l(79841),s=l(92209),o=l(93967),r=l.n(o),i=l(12921),c=l.n(i),d=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,t.jsx)("path",{d:"M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"})});let u=e=>{let{orderVoucher:n}=e,{t:l}=(0,a.$G)(["account"]);if(!n)return null;let s=n.split(",").map(e=>{let n=e.replace(/\s/g,"").split(":");return{key:null==n?void 0:n[0],value:null==n?void 0:n[1]}}),o=(e,n)=>{e.preventDefault(),navigator.clipboard.writeText(n)};return(0,t.jsxs)("div",{className:"box-info",children:[(0,t.jsx)("h2",{className:r()(c()["address-label"]),children:l("account||orders|VOUCHER")}),s.map(e=>(0,t.jsxs)("div",{className:"font-light mb-3",children:[(0,t.jsxs)("p",{children:[e.key,":"]}),(0,t.jsxs)("div",{className:"flex items-baseline",children:[(0,t.jsx)("p",{children:e.value}),(0,t.jsx)("button",{title:l("account||orders|CopyToClipBoard"),className:"ml-1 h-3 w-3 opacity-60 hover:opacity-100 cursor-pointer",onClick:n=>o(n,e.value),children:(0,t.jsx)(d,{})})]})]},e.key))]})},m=e=>{var n,l,o,i,d,m,p;let{orderData:v,project:h,contactInfo:x}=e,{t:g}=(0,a.$G)(["account"]);return(0,t.jsxs)("div",{className:"order-block",children:[(0,t.jsx)("div",{className:r()(c()["billing-info-header"]),children:g("account||orders|BILLING INFORMATION")}),(0,t.jsxs)("div",{className:r()(c()["order-block-grid"]),children:[(0,t.jsxs)("div",{className:"box-info",children:[(0,t.jsx)("h2",{className:r()(c()["address-label"]),children:g("account||orders|Billing Address")}),(0,t.jsx)(s.w,{address:v.billing_address})]}),(0,t.jsxs)("div",{className:"box-info",children:[(0,t.jsx)("h2",{className:r()(c()["address-label"]),children:g("Payment Type")}),(0,t.jsx)("div",{className:"font-extralight",children:null==v?void 0:null===(l=v.payment_methods)||void 0===l?void 0:null===(n=l[0])||void 0===n?void 0:n.name})]}),(0,t.jsxs)("div",{className:"box-info",children:[(0,t.jsx)("h2",{className:r()(c()["address-label"]),children:g("account||orders|Ship To")}),(0,t.jsx)(s.w,{companyCustomer:null==x?void 0:x.companyName,address:v.shipping_address?v.shipping_address:null})]}),!!(null==v?void 0:null===(o=v.customer)||void 0===o?void 0:o.email)&&(null==v?void 0:null===(i=v.customer)||void 0===i?void 0:i.email)!==(null==x?void 0:x.email)&&(0,t.jsxs)("div",{className:"box-info",children:[(0,t.jsx)("h2",{className:r()(c()["address-label"]),children:g("Contact information")}),(0,t.jsx)("div",{className:"font-light",children:"".concat(null==v?void 0:null===(d=v.customer)||void 0===d?void 0:d.firstname," ").concat(null==v?void 0:null===(m=v.customer)||void 0===m?void 0:m.lastname)}),(0,t.jsx)("div",{className:"font-light",children:null==v?void 0:null===(p=v.customer)||void 0===p?void 0:p.email})]}
1),"FANATEC"===h&&(0,t.jsx)(u,{orderVoucher:v.game_key_voucher})]})]})}},30681:function(e,n,l){l.d(n,{R:function(){return N}});var t,a,s=l(85893);l(67294);var o=l(79841),r=l(3727),i=l(44795),c=l(60272),d=l(29032),u=l(28873),m=l(93967),p=l.n(m),v=l(12921),h=l.n(v),x=l(78652),g=l(41664),_=l.n(g),j=l(11163),b=l.n(j),f=l(4210),y=l(8898);(t=a||(a={})).Pending="Pending",t.Closed="Closed",t.Complete="Complete";let N=e=>{var n,l;let{view:t,isReturn:a,OrderReturns:m,project:v="CORSAIR"}=e,{t:g}=(0,o.$G)(["account"]),{LoadingIndicator:j}=(0,r.l8)(),{loading:N,error:A,customer:k,orders:w}=(0,c.f)({orderNumber:t});if(A||!t)return(0,s.jsx)(i.m,{});if(N)return(0,s.jsx)("div",{className:"mx-auto max-w-xs",children:(0,s.jsx)(j,{})});let E=t.replace(/\D/g,""),T=null==w?void 0:null===(n=w.invoices[0])||void 0===n?void 0:n.id.split("/"),S=null==T?void 0:T[(null==T?void 0:T.length)-1],C=(0,y.s)({dev:f.l[v].dev,staging:f.l[v].staging,production:f.l[v].production});return w?(0,s.jsxs)("div",{className:h()["order-details-contianer"],children:[(0,s.jsxs)("div",{className:h()["order-number-title"],children:[(0,s.jsx)(_(),{href:"/account/orders",children:(0,s.jsx)("span",{style:{width:9,height:9,borderTop:"3px solid black",borderLeft:"3px solid black",transform:"rotate(-45deg)",cursor:"pointer"}})}),(0,s.jsx)("div",{className:h().divider}),(0,s.jsx)("p",{className:"font-light tracking-widest text-3xl ml-2",style:{marginBottom:-5},children:g("account||orders|ORDER DETAILS")})]}),(0,s.jsxs)("div",{className:h()["order-number"],children:[g("account||orders|Order Number:")," ",w.number,(0,s.jsx)("button",{className:h()["order-invoice"],onClick:()=>b().push("https://".concat(C,"/apps/sufio/invoice/download/?id=").concat(S,"&number=").concat(E)),children:g("Download PDF invoice")})]}),(0,s.jsx)(d.p,{orderData:w,project:v,contactInfo:{companyName:null==k?void 0:null===(l=k.company)||void 0===l?void 0:l.name,email:null==k?void 0:k.email}}),(0,s.jsx)(u.r,{orderData:w}),(0,s.jsx)("div",{className:p()(h()["orderd-items-container"]),children:(0,s.jsx)("div",{className:h()["order-list-table"],children:(0,s.jsx)(x.m,{orderTotal:w.total})})})]}):(0,s.jsx)("div",{children:g("account||orders|Something went wrong. Please try again later.")})}},78652:function(e,n,l){l.d(n,{m:function(){return m}});var t=l(85893),a=l(67294),s=l(79841),o=l(9225),r=l(11163),i=l(93967),c=l.n(i),d=l(12921),u=l.n(d);let m=e=>{var n,l,i,d,m;let{orderTotal:p}=e,{t:v}=(0,s.$G)(["account"]),{locale:h}=(0,r.useRouter)(),x=(0,a.useMemo)(()=>{var e;return null===(e=p.discounts)||void 0===e?void 0:e.reduce((e,n)=>e+n.amount.value,0)},[null==p?void 0:null===(n=p.discounts)||void 0===n?void 0:n.length]),g=(null==p?void 0:null===(l=p.discounts)||void 0===l?void 0:l.length)>0?{value:p.subtotal.value-x,currency:p.subtotal.currency}:null==p?void 0:p.subtotal,_=!!(null==p?void 0:null===(i=p.grand_total)||void 0===i?void 0:i.value)&&!!p.subtotal.value;return(0,t.jsxs)("table",{className:c()(u()["price-totals"]),children:[(null==p?void 0:null===(d=p.discounts)||void 0===d?void 0:d.length)>0?(0,t.jsxs)("tr",{className:"discount",children:[(0,t.jsx)("th",{colSpan:4,className:"w-1/2 text-xl font-light align-top text-green",children:v("account||orders|Discount ")}),(0,t.jsx)("td",{className:"".concat(c()(u()["order-total-amount"])," flex flex-col items-end"),"data-th":v("account||orders|Discount "),children:null==p?void 0:p.discounts.map((e,n)=>{var l;return(null==e?void 0:null===(l=e.amount)||void 0===l?void 0:l.value)!==0?(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("span",{className:"code price text-green",children:null==e?void 0:e.label}),(0,t.jsxs)("span",{className:"price text-green",children:[" | ","-",(0,o.T)(null==e?void 0:e.amount,h)]})]},n):(0,t.jsxs)("span",{className:"price text-green",children:["-",(0,o.T)(null==e?void 0:e.amount,h)]},n)})})]}):null,(0,t.jsxs)("tr",{className:"subtotal",children:[(0,t.jsx)("th",{colSpan:4,className:c()(u()["order-total-label"]),children:v("account||orders|Subtotal")}),(0,t.jsx)("td",{className:c()(u()["order-total-amount"]),"data-th":v("account||orders|Subtotal"),children:(0,t.jsx)("span",{className:"mt-15",children:(0,o.T)(g,h)})})]}),(null===(m=p.total_tax)||void 0===m?void 0:m.value)!==0&&(0,t.jsxs)("tr",{className:"tax-amount",children:[(0,t.jsx)("th",{colSpan:4,className:c()(u()["order-total-label"]),children:v("account||orders|Tax")}),(0,t.jsx)("td",{className:c()(u()["order-total-amount"]),"data-th":v("account||orders|Tax"),children:(0,t.jsx)("span",{className:"price",children:(0,o.T)(p.total_tax,h)})})]}),_&&(0,t.jsx)("tr",{className:"shipping",children:p.total_shipping&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("th",{colSpan:4,className:c()(u()["order-total-label"]),children:v("account||orders|Shipping")}),(0,t.jsx)("td",{className:c()(u()["order-total-amount"]),"data-th":v("account||orders|Shipping"),children:(0,t.jsx)("span",{className:"price",children:(0,o.T)(p.total_shipping,h)})})]})}),(0,t.jsxs)("tr",{className:"grand_total",children:[(0,t.jsx)("th",{colSpan:4,className:"mt-2 text-2xl font-semibold tracking-widest uppercase",children:(0,t.jsx)("strong",{children:v("account||orders|Grand Total")})}),(0,t.jsx)("td",{className:c()(u()["order-total-amount"]),"data-th":v("account||orders|Grand Total"),children:(0,t.jsx)("strong",{children:(0,t.jsx)("span",{className:"text-xl font-semibold price",children:(0,o.T)(p.grand_total,h)})})})]})]})}},4210:function(e,n,l){l.d(n,{E:function(){return a},l:function(){return t}});let t={CORSAIR:{dev:"corsair-us-dev.myshopify.com",staging:"corsair-stage.myshopify.com",production:"corsair-us.myshopify.com"},ELGATO:{dev:"elgato-dev.myshopify.com",staging:"elgato-stage.myshopify.com",production:"elgato-us.myshopify.com"},SCUF:{dev:"scuf-dev.myshopify.com",staging:"scuf-stage.myshopify.com",production:"scuf-us.myshopify.com"},FANATEC:{dev:"fanatec-dev.myshopify.com",staging:"fanatec-stage.myshopify.com",production:"fanatec-us.myshopify.com"}},a={CORSAIR:{dev:"https://returns-dev.corsair.com",staging:"https://returns-stage.corsair.com",production:"https://returns.corsair.com"},ELGATO:{dev:"https://returns-dev.elgato.com",staging:"https://returns-stage.elgato.com",production:"https://returns.elgato.com"},SCUF:{dev:"https://returns-dev.scuf.com",staging:"https://returns-stage.scuf.com",production:"https://returns.scuf.com"},FANATEC:{dev:"https://returns-dev.fanatec.com",staging:"https://returns-stage.fanatec.com",production:"https://returns.fanatec.com"}}},58537:function(e,n,l){l.d(n,{I:function(){return t}});let t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"corsair";return"\n query customer($orderNumber: String) {\n customer {\n firstname\n lastname\n email\n company {\n name\n }\n orders(filter: { number: { eq: $orderNumber } }) {\n items {\n number\n id\n order_date\n game_key_voucher\n customer {\n firstname\n lastname\n email\n }\n total {\n subtotal {\n value\n currency\n }
1\n discounts {\n amount {\n value\n currency\n }\n label\n }\n base_grand_total {\n value\n currency\n }\n taxes {\n amount {\n value\n currency\n }\n rate\n }\n total_tax {\n value\n currency\n }\n shipping_handling {\n total_amount {\n value\n currency\n }\n }\n total_shipping {\n value\n currency\n }\n grand_total {\n value\n currency\n }\n }\n items {\n bundle_components {\n id\n sku\n name\n image_url\n tracking_number\n tracking_url\n price_msrp\n qty\n }\n product_sku\n product_name\n product_type\n product_url_key\n id\n product_sale_price {\n value\n currency\n }
1\n discounts {\n label\n amount {\n value\n currency\n }\n }\n selected_options {\n label\n value\n }\n quantity_ordered\n quantity_shipped\n quantity_canceled\n quantity_invoiced\n quantity_refunded\n quantity_returned\n status\n eligible_for_return\n image {\n label\n src\n }\n backorder {\n type\n available\n expected_delivery_date\n date\n }\n entered_options {\n label\n value\n }\n __typename\n gift_wrapping {\n uid\n price {\n value\n currency\n }\n image {\n label\n url\n }\n design\n }\n exclude_promo\n promo_campaign_name\n promo_campaign_message\n ".concat("elgato"==e?"promo_campaign_mh":"","\n buy_x_get_x\n backorder_delivery_date\n ").concat("fanatec"==e?"product_serial_number":"","\n }\n deliver{\n key\n value\n }\n status\n billing_address {\n firstname\n lastname\n street\n city\n region\n country_code\n postcode\n telephone\n company\n }\n payment_methods {\n type\n name\n additional_data {\n name\n value\n }\n }\n shipping_method\n shipping_address {\n firstname\n lastname\n street\n city\n country_code\n postcode\n region\n telephone\n company\n }\n invoices {\n id\n number\n total {\n subtotal {\n value\n currency\n }
1\n discounts {\n amount {\n value\n currency\n }\n label\n }\n base_grand_total {\n value\n currency\n }\n taxes {\n amount {\n value\n currency\n }\n rate\n }\n total_tax {\n value\n currency\n }\n shipping_handling {\n total_amount {\n value\n currency\n }\n }\n total_shipping {\n value\n currency\n }\n grand_total {\n value\n currency\n }\n }\n items {\n product_sku\n product_name\n product_sale_price {\n currency\n value\n }\n __typename\n id\n discounts {\
1n label\n amount {\n value\n currency\n }\n }\n order_item {\n id\n product_sku\n product_name\n product_type\n selected_options {\n label\n value\n }\n quantity_invoiced\n product_sale_price {\n value\n currency\n }\n discounts {\n label\n amount {\n value\n currency\n }\n }\n }\n }\n }\n shipments {\n id\n number\n comments {\n timestamp\n message\n }\n tracking {\n number\n carrier\n title\n }\n items {\n id\n quantity_shipped\n product_sku\n order_item {\n id\n quantity_shipped\n product_sku\n product_name\n product_type\n selected_options {\n label\n value\n }\n }\n }\n }\n returns {\n total_count\n }\n }\n }\n }\n }\n")}},60272:function(e,n,l){l.d(n,{f:function(){return o}});var t=l(72615),a=l(58537);let s=e=>{try{var n;return JSON.parse((null==e?void 0:null===(n=e[0])||void 0===n?void 0:n.value)||"[]").reduce((e,n)=>{let{deliver_by:l,excluded_delivery_dates:t,key:a,sku:s}=n||{};return e[s]={deliverBy:l,excludedDeliveryDate:t},e},{})}catch(e){return console.log(e),[]}},o=(e,n,l)=>{var o,r;let{data:i,error:c,isValidating:d}=(0,t.a)((0,a.I)("elgato"),e,n,l),u=null==i?void 0:null===(o=i.data)||void 0===o?void 0:o.customer,m=null==u?void 0:null===(r=u.orders)||void 0===r?void 0:r.items[0],p=s((null==m?void 0:m.deliver)||[]);return{loading:!i&&d,error:c,customer:u,orders:{...m,deliverByMapping:p}}}},8898:function(e,n,l){l.d(n,{s:function(){return t}});let t=e=>location.href.includes("dev")?e.dev:location.href.includes("stage")||location.href.includes("staging")?e.staging:e.production},57843:function(e,n,l){l.d(n,{_:function(){return t},f:function(){return a}});let t=(e,n)=>{var l,t,a;let s;if(s=Number(e.totalqty)?e.totalqty:Number(null==e?void 0:e.qtyreturned)<=Number(null==e?void 0:e.totalqty)||1===Number(e.quantity_ordered)?null==n?void 0:n.filter(n=>(null==n?void 0:n.product_sku)===(null==e?void 0:e.product_sku)).length:Number(e.quantity_ordered),!(null===(l=e.product_sale_price)||void 0===l?void 0:l.value))return null;{if(!(null===(t=e.discounts)||void 0===t?void 0:t.length))return e.product_sale_price;let l={...e.product_sale_price,value:null==e?void 0:null===(a=e.discounts)||void 0===a?void 0:a.reduce((e,n)=>e-((null==n?void 0:n.amount.value)/s||0),e.product_sale_price.value)};return l&&(null==l?void 0:l.value)<0&&(l.value=0),console.log(e,n,s,l),l}},a=(e,n)=>{var l;return{value:(null===(l=t(e,n))||void 0===l?void 0:l.value)*Number(e.quantity_ordered),currency:null==e?void 0:e.product_sale_price.currency}}},59046:function(e,n,l){var t=l(67294),a=l(45697),s=l.n(a);function o(){return(o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e}).apply(this,arguments)}var r=(0,t.forwardRef)(function(e,n){var l=e.color,a=e.size,s=void 0===a?24:a,r=function(e,n){if(null==e)return{};var l,t,a=function(e,n){if(null==e)return{};var l,t,a={},s=Object.keys(e);for(t=0;t<s.length;t++)l=s[t],n.indexOf(l)>=0||(a[l]=e[l]);return a}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(t=0;t<s.length;t++)l=s[t],!(n.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(a[l]=e[l])}return a}(e,["color","size"]);return t.createElement("svg",o({ref:n,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:void 0===l?"currentColor":l,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},r),t.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),t.createElement("polyline",{points:"15 3 21 3 21 9"}),t.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))});
1r.propTypes={color:s().string,size:s().oneOfType([s().string,s().number])},r.displayName="ExternalLink",n.Z=r}}]);
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.