1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9661],{12933:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rechnungen",function(){return t(97535)}])},7071:function(e,n,t){"use strict";var r=t(85893),i=t(87918),l=t(19550);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){o(e,n,t[n])}))}return e}n.Z=function(e){var n=e.sx,t=e.skin,o=e.color,s=(0,l.Z)(),c={primary:a({},s.primaryLight),secondary:a({},s.secondaryLight),success:a({},s.successLight),error:a({},s.errorLight),warning:a({},s.warningLight),info:a({},s.infoLight)};return(0,r.jsx)(i.Z,a({},e,{variant:"filled"},"light"===t&&{className:"MuiChip-light"},{sx:"light"===t&&o?Object.assign(c[o],n):n}))}},10792:function(e,n,t){"use strict";var r=t(85893),i=t(86886);n.Z=function(e){var n=e.title,t=e.subtitle;return(0,r.jsxs)(i.ZP,{item:!0,xs:12,children:[n,t||null]})}},97535:function(e,n,t){"use strict";t.r(n);var r=t(34051),i=t.n(r),l=t(85893),o=t(67294),a=t(41664),s=t.n(a),c=t(87357),d=t(86886),u=t(66242),h=t(34386),f=t(11496),x=t(18972),m=t(50135),p=t(78445),j=t(93946),g=t(47312),b=t(15861),v=t(94054),y=t(44267),Z=t(69032),w=t(18360),_=t(77058),S=t(50657),C=t(6514),P=t(16628),O=t(55113),k=t(7906),I=t(53184),W=t(295),D=t(72882),A=t(68509),E=t(98102),N=t(89755),R=t(10792),T=t(50122),z=t(48800),L=t(42734),M=t(9997),B=t(9198),H=t.n(B),F=t(9473),G=t(24575),U=t(7071),q=t(77301),K=(t(95828),t(64488)),X=t(9669),$=t.n(X);function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function J(e,n,t,r,i,l,o){try{var a=e[l](o),s=a.value}catch(c){return void t(c)}a.done?n(s):Promise.resolve(s).then(r,i)}function V(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){V(e,n,t[n])}))}return e}function ee(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,l=[],o=!0,a=!1;try{for(t=t.call(e);!(o=(r=t.next()).done)&&(l.push(r.value),!n||l.length!==n);o=!0);}catch(s){a=!0,i=s}finally{try{o||null==t.return||t.return()}finally{if(a)throw i}}return l}}(e,n)||te(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,n){if(e){if("string"===typeof e)return Q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Q(e,n):void 0}}var re=(0,f.ZP)(E.Z)((function(e){var n,t=e.theme;return V(n={},"&.".concat(N.Z.head),{color:t.palette.common.white,backgroundColor:t.palette.common.black}),V(n,"&.".concat(N.Z.body),{fontSize:14}),n})),ie=(0,f.ZP)(A.Z)((function(e){return{"&:nth-of-type(odd)":{backgroundColor:e.theme.palette.action.hover},"&:last-of-type td, &:last-of-type th":{border:0}}})),le=((0,f.ZP)("a")((function(e){return{textDecoration:"none",color:e.theme.palette.primary.main}})),(0,o.forwardRef)((function(e,n){return(0,l.jsx)(P.Z,Y({ref:n},e))}))),oe=(0,o.forwardRef)((function(e,n){var t=null!==e.start?(0,M.Z)(e.start,"dd.MM.yyyy"):"",r=null!==e.end?" - ".concat((0,M.Z)(e.end,"dd.MM.yyyy")):null,i="".concat(t).concat(null!==r?r:"");null===e.start&&e.dates.length&&e.setDates&&e.setDates([]);var o=Y({},e);return delete o.setDates,(0,l.jsx)(m.Z,Y({fullWidth:!0,inputRef:n},o,{label:e.label||"",value:i}))}));n.default=function(){var e=(0,o.useState)([]),n=e[0],t=e[1],r=(0,o.useState)(""),a=r[0],f=r[1],m=(0,o.useState)(10),P=m[0],E=m[1],N=(0,o.useState)(""),M=N[0],B=N[1],X=(0,o.useState)(null),Q=X[0],V=X[1],Y=(0,o.useState)([]),te=Y[0],ae=Y[1],se=(0,o.useState)(null),ce=se[0],de=se[1],ue=(0,_.$)(),he=ue.t,fe=(ue.i18n,(0,o.useState)(!1)),xe=fe[0],me=fe[1],pe=(0,o.useState)(""),je=pe[0],ge=pe[1],be=(0,o.useState)(""),ve=be[0],ye=be[1],Ze=[{flex:.1,field:"order_id",minWidth:80,headerName:he("orderID"),renderCell:function(e){var n=e.row;return(0,l.jsxs)(b.Z,{variant:"body2",sx:{color:"text.primary",fontWeight:500,lineHeight:"22px",letterSpacing:".1px"},children:["#",(0,l.jsx)(s(),{href:"javascript:void(0);",legacyBehavior:!0,children:(0,l.jsx)("a",{onClick:function(){return Se(n.order_id,n.order_from)},children:null!=n.lexoffice_order_id?n.lexoffice_order_id:n.order_id})})]})}},{flex:.25,field:"name",minWidth:300,headerName:he("customer"),renderCell:function(e){var n=e.row,t=n.name,r=n.email;return(0,l.jsx)(c.Z,{sx:{display:"flex",alignItems:"center"},children:(0,l.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,l.jsx)(b.Z,{noWrap:!0,variant:"body2",sx:{color:"text.primary",fontWeight:500,lineHeight:"22px",letterSpacing:".1px"},children:t}),(0,l.jsx)(b.Z,{noWrap:!0,variant:"caption",children:r})]})})}},{flex:.15,minWidth:125,field:"voucherDate",headerName:he("voucherDate"),renderCell:function(e){var n=e.row;return(0,l.jsx)(b.Z,{variant:"body2",children:n.voucherDate})}},{flex:.1,minWidth:90,field:"Total",headerName:he("total"),renderCell:function(e){var n=e.row.Total.toLocaleStr
1ing("en").replace(".",",");return(0,l.jsxs)(b.Z,{variant:"body2",children:["".concat(n||0)," \u20ac"]})}},{flex:.1,minWidth:90,field:"order_status",headerName:he("websiteStatus"),renderCell:function(e){var n=e.row;return 0!==n.balance?(0,l.jsx)(b.Z,{variant:"body2",sx:{color:"text.primary"},children:he(n.order_status)}):(0,l.jsx)(U.Z,{size:"small",skin:"light",color:"success",label:"Paid"})}},{flex:.1,minWidth:90,field:"invoice_number",headerName:he("paymentStatus"),renderCell:function(e){var n=e.row;return 0!==n.balance?(0,l.jsx)(b.Z,{variant:"body2",sx:{color:"text.primary"},children:he(n.invoice_number)}):(0,l.jsx)(U.Z,{size:"small",skin:"light",color:"success",label:"Paid"})}}],we=(0,F.I0)(),_e=(0,F.v9)((function(e){return e.invoice}));(0,o.useEffect)((function(){we((0,G.rQ)({dates:n,q:a,status:M}));window.localStorage.getItem("i18nextLng")}),[we,M,a,n]);var Se=function(e,n){$()({method:"post",url:"https://start.raketen-basis.de/api/get-order-details",data:{user:window.localStorage.getItem("useremail"),order_id:e,order_from:n},headers:{"Content-Type":"application/json"}}).then((function(e){me(!0),ge(e.data.response_data.order),ye(e.data.response_data.products)}))},Ce=ne(Ze).concat([{flex:.1,minWidth:130,sortable:!1,field:"actions",headerName:he("Actions"),renderCell:function(e){var n=function(){var n,t=(n=i().mark((function n(t,r,l){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:$()({url:"https://start.raketen-basis.de/api/download-invoice/",method:"POST",responseType:"blob",data:{order_id:t,order_from:r}}).then((function(n){var t=window.URL.createObjectURL(new Blob([n.data])),i=document.createElement("a");i.href=t,"rt"==r?i.setAttribute("download",l+".pdf"):i.setAttribute("download",e.row.order_id+"-invoice.pdf"),document.body.appendChild(i),i.click()}));case 1:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,i){var l=n.apply(e,t);function o(e){J(l,r,i,o,a,"next",e)}function a(e){J(l,r,i,o,a,"throw",e)}o(void 0)}))});return function(e,n,r){return t.apply(this,arguments)}}();return(0,l.jsx)(c.Z,{sx:{display:"flex",alignItems:"center"},children:(0,l.jsx)(h.Z,{title:he("Download Invoice"),children:(0,l.jsx)(j.Z,{size:"small",sx:{mr:.5},onClick:function(){return n(e.row.order_id,e.row.order_from,e.row.invoice_name_to_download)},children:(0,l.jsx)(z.Z,{})})})})}}]),Pe=0,Oe=function(e){return"".concat(e.toFixed(2).replace(".",","))};return(0,l.jsxs)(d.ZP,{container:!0,spacing:6,children:[(0,l.jsx)(R.Z,{title:(0,l.jsx)(b.Z,{variant:"h5",children:(0,l.jsx)(T.Z,{children:he("Bestellhistorie")})})}),(0,l.jsx)(d.ZP,{item:!0,xs:12,children:(0,l.jsxs)(u.Z,{children:[(0,l.jsx)(p.Z,{title:he("Filter")}),(0,l.jsx)(y.Z,{children:(0,l.jsxs)(d.ZP,{container:!0,spacing:6,children:[(0,l.jsx)(d.ZP,{item:!0,xs:12,sm:6,children:(0,l.jsxs)(v.Z,{fullWidth:!0,children:[(0,l.jsx)(g.Z,{id:"invoice-status-select",children:he("Invoice Status")}),(0,l.jsxs)(w.Z,{fullWidth:!0,value:M,sx:{mr:4,mb:2},label:he("Invoice Status"),onChange:function(e){B(e.target.value)},labelId:"invoice-status-select",children:[(0,l.jsx)(x.Z,{value:"",children:"none"}),(0,l.jsx)(x.Z,{value:"pending",children:"Zahlung ausstehend"}),(0,l.jsx)(x.Z,{value:"completed",children:"Abgeschlossen"}),(0,l.jsx)(x.Z,{value:"on-hold",children:"In Bearbeitung"}),(0,l.jsx)(x.Z,{value:"processing",children:"wird bearbeitet"}),(0,l.jsx)(x.Z,{value:"trashed",children:"Storniert/Abgebrochen"}),(0,l.jsx)(x.Z,{value:"refunded",children:"R\xfcckerstattet"}),(0,l.jsx)(x.Z,{value:"failed",children:"Fehlgeschlagen"})]})]})}),(0,l.jsx)(d.ZP,{item:!0,xs:12,sm:6,children:(0,l.jsx)(K.Z,{children:(0,l.jsx)(H(),{isClearable:!0,selectsRange:!0,monthsShown:2,endDate:Q,selected:ce,startDate:ce,locale:"de",shouldCloseOnSelect:!1,id:"date-range-picker-months",onChange:function(e){var n=ee(e,2),r=n[0],i=n[1];null!==r&&null!==i&&t(e),de(r),V(i)},customInput:(0,l.jsx)(oe,{dates:n,setDates:t,label:he("Invoice Date"),end:Q,start:ce})})})})]})})]})}),(0,l.jsx)(d.ZP,{item:!0,xs:12,children:(0,l.jsxs)(u.Z,{children:[(0,l.jsx)(q.Z,{value:a,selectedRows:te,handleFilter:function(e){f(e)}}),(0,l.jsx)(Z._,{autoHeight:!0,pagination:!0,rows:_e.data,columns:Ce,getRowId:function(e){return e.order_id},disableSelectionOnClick:!0,pageSize:Number(P),rowsPerPageOptions:[10,25,50],sx:{"& .MuiDataGrid-columnHeaders":{borderRadius:0}},onSelectionModelChange:function(e){return ae(e)},onPageSizeChange:function(e){return E(e)}})]})}),(0,l.jsx)(S.Z,{fullWidth:!0,open:xe,maxWidth:"md",scroll:"body",onClose:function(){me(!1)},TransitionComponent:le,onBackdropClick:function(){return me(!1)},children:(0,l.jsxs)(C.Z,{sx:{pb:6,px:{xs:8,sm:15},pt:{xs:8,sm:12.5},position:"relative"},children:[(0,l.jsx)(j.Z,{size:"small",onClick:function(){return me(!1)},sx:{position:"absolute",right:"1rem",top:"1rem"},children:(0,l.jsx)(L.Z,{})}),(0,l.jsx)(c.Z,{sx:{mb:9,textAlign:"center"},children:(0,l.jsx)(b.Z,{variant:"h5",sx:{mb:3,lineHeight:"2rem"},children:he("Order Detail")})}),(0,l.jsxs)(c.Z,{children:[(0,l.jsx)(d.ZP,{item:!0,sm:12,xs:12,children:(0,l.jsxs)(b.Z,{variant:"h6",sx:{mb:3,lineHeight:"1.2rem"},children:[he("Order")," #",je?null!=je.lexoffice_order_id?je.lexoffice_order_id:je.id:0]})}),(0,l.jsx)(D.Z,{component:O.Z,children:(0,l.jsxs)(k.Z,{sx:{minWidth:700},"aria-label":"customized table",children:[(0,l.jsx)(I.Z,{children:(0,l.jsxs)(A.Z,{children:[(0,l.jsx)(re,{children:he("Pos.")}),(0,l.jsx)(re,{align:"left",children:he("Products")}),(0,l.jsx)(re,{align:"left",children:he("Anzahl")}),(0,l.jsx)(re,{align:"left",children:he("Einzel")}),(0,l.jsx)(re,{align:"right",children:he("Gesamt")})]})}),(0,l.jsxs)(W.Z,{children:[ve&&ve.map((function(e){return Pe+=e.sub_total,(0,l.jsxs)(ie,{children:[(0,l.jsx)(re,{component:"th",scope:"row",children:"1"}),(0,l.jsxs)(re,{align:"left",children:[100==e.product_id?"ROCKET Backlink ":"ROCKET Backlink-Paket-",e.product_name]}),(0,l.jsx)(re,{align:"left",children:e.quntity}
1),(0,l.jsxs)(re,{align:"left",children:[Oe(e.product_price)," \u20ac"]}),(0,l.jsxs)(re,{align:"right",children:[Oe(e.sub_total)," \u20ac"]})]},e.product_id)})),(0,l.jsxs)(ie,{children:[(0,l.jsx)(re,{component:"th",scope:"row"}),(0,l.jsx)(re,{align:"left",colSpan:3,children:"Zwischensumme:"}),(0,l.jsxs)(re,{align:"right",children:[Oe(Pe)," \u20ac"]})]},"m1"),(0,l.jsxs)(ie,{children:[(0,l.jsx)(re,{component:"th",scope:"row"}),(0,l.jsx)(re,{align:"left",colSpan:3,children:"19 % MwSt."}),(0,l.jsxs)(re,{align:"right",children:[Oe(.19*Pe)," \u20ac"]})]},"m2"),(0,l.jsxs)(ie,{children:[(0,l.jsx)(re,{component:"th",scope:"row"}),(0,l.jsx)(re,{align:"left",colSpan:3,children:"Zahlungsart:"}),(0,l.jsx)(re,{align:"right",children:je.payment_method})]},"m2"),(0,l.jsxs)(ie,{children:[(0,l.jsx)(re,{component:"th",scope:"row"}),(0,l.jsx)(re,{align:"left",colSpan:3,children:"Gesamt:"}),(0,l.jsxs)(re,{align:"right",children:[Oe(Pe+.19*Pe)," \u20ac"]})]},"m2")]})]})})]})]})})]})}},77301:function(e,n,t){"use strict";var r=t(85893),i=t(87357),l=t(50135);n.Z=function(e){var n=e.value,t=(e.selectedRows,e.handleFilter);return(0,r.jsx)(i.Z,{sx:{p:5,pb:3,width:"100%",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:(0,r.jsx)(i.Z,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center"},children:(0,r.jsx)(l.Z,{size:"small",value:n,placeholder:"Search Invoice",sx:{mr:4,mb:2,maxWidth:"180px"},onChange:function(e){return t(e.target.value)}})})})}}},function(e){e.O(0,[2657,5395,135,7085,4661,9032,8960,3456,6468,9774,2888,179],(function(){return n=12933,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.