PageSourceSearch

https://www.elgato.com/_next/static/chunks/112-72b5ff33df179d20.js

js elgato.com collected 2026-09-24 08:29:20 UTC 14,017 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[112],{90112:function(e,n,t){"use strict";t.d(n,{Fv:function(){return k}});var r=t(85893),a=t(67294),l=t(79841),i=t(29227),o=t(3727),s=t(41664),c=t.n(s),d=t(9225),u=t(11163),p=t(96520),h=t(78669);let m=e=>{var n,t;let{orderListNoteIdentifier:a,initialBlockData:l}=e,{data:i,error:o}=(0,p.P)({identifier:[a],contentType:"cmsBlock"},{revalidateOnFocus:!1,revalidateOnMount:!0,initialData:l});return!i||o?null:(0,r.jsx)("div",{className:"account-order-note",children:(0,r.jsx)(h.w,{html:null===(t=i[0])||void 0===t?void 0:null===(n=t.parsedEntries)||void 0===n?void 0:n.content})})};var v=t(93967),x=t.n(v),j=t(12921),g=t.n(j),b=t(8898),f=t(4210),y=t(91637),_=t(19833);let w="ELGATO",k=e=>{let{pageSize:n,currentPage:t,setTotalPages:s,setTotalCount:p,orderListNoteIdentifier:h,initialBlockData:v,showOrderNote:j=!1}=e,{t:k}=(0,l.$G)(["account"]),{LoadingIndicator:N}=(0,o.l8)(),{base:{dateFormatByRegion:O,returns:C,b2b:P}}=(0,y.d7)(),{orders:S,loading:T,customer:z}=(0,i.y)({pageSize:n,currentPage:t}),{locale:E}=(0,u.useRouter)(),[L,D]=(0,a.useState)(""),[A,M]=(0,a.useState)([]),R=e=>{let n=btoa(JSON.stringify({order_number:e,email:null==z?void 0:z.email}));return"".concat(L,"?qs=").concat(n)},$=(0,a.useCallback)(e=>{var n;let t={CANCEL:()=>{var n;return(0,r.jsx)("div",{children:(null==e?void 0:null===(n=e.payment_gateway_names)||void 0===n?void 0:n.includes("Direct Bank Transfer"))?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:x()(g()["btn-b2b-cancel"]),onClick:()=>M(n=>[...n,null==e?void 0:e.id]),children:k("account||orderlist|Cancel")}),(null==A?void 0:A.includes(null==e?void 0:e.id))&&(0,r.jsx)("p",{className:x()(g()["txt-b2b-message"]),dangerouslySetInnerHTML:{__html:k("account||Please reach out the {{ supportEmail }} to cancel",{supportEmail:'<a href="mailto:'.concat(null==P?void 0:P.supportEmail,'">').concat(null==P?void 0:P.supportEmail,"</a>")})}})]}):(0,r.jsx)(c(),{href:"/account/orders/cancelform/".concat(null==e?void 0:e.number),children:k("account||orderlist|Cancel")})})},RETURN:()=>(0,r.jsx)("a",{href:R(null==e?void 0:e.number),target:"_blank",rel:"noreferrer",children:k("account||orders|Return")})};return null==e?void 0:null===(n=e.available_actions)||void 0===n?void 0:n.map(e=>null===e?{}:t[e]())},[L,k,z,A]),I=(0,a.useMemo)(()=>null==S?void 0:S.items.map((e,n)=>{var t;return e&&(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"order-id","data-th":k("account||orderlist|Order Number"),children:(0,r.jsx)(c(),{href:"/account/orders/".concat(null==e?void 0:e.number),children:null==e?void 0:e.number})}),(0,r.jsx)("td",{"data-th":k("account||orderlist|Order Status"),children:k("account||orders|".concat(null==e?void 0:e.status))}),(0,r.jsx)("td",{"data-th":k("account||orderlist|Date Placed"),children:(0,_.L0)(new Date(null==e?void 0:e.order_date).getTime(),(0,_.bz)(O))}),(0,r.jsx)("td",{"data-th":k("account||orderlist|Total"),children:(0,d.T)(null==e?void 0:null===(t=e.total)||void 0===t?void 0:t.grand_total,E)}),(0,r.jsx)("td",{className:"action","data-th":k("account||orderlist|Action"),children:(0,r.jsx)("div",{className:"actions",children:$(e)})})]},n)}),[S,z,k,$]),B=(0,a.useMemo)(()=>null==S?void 0:S.items.map((e,n)=>{var t;return e&&(0,r.jsxs)("div",{className:"order-items",children:[(0,r.jsxs)("div",{className:"order-item-label",children:[(0,r.jsx)("p",{children:k("Order Number")}),(0,r.jsx)("p",{children:k("Order Status")}),(0,r.jsx)("p",{children:k("Date Placed")}),(0,r.jsx)("p",{children:k("Total")}),(0,r.jsx)("p",{children:k("Action")})]}),(0,r.jsxs)("div",{className:"order-item-value",children:[(0,r.jsx)("p",{children:(0,r.jsx)(c(),{href:"/account/orders/".concat(null==e?void 0:e.number),children:null==e?void 0:e.number})}),(0,r.jsx)("p",{children:k("account||orders|".concat(null==e?void 0:e.status))}),(0,r.jsx)("p",{children:(0,_.L0)(new Date(null==e?void 0:e.order_date).getTime(),(0,_.bz)(O))}),(0,r.jsx)("p",{children:(0,d.T)(null==e?void 0:null===(t=e.total)||void 0===t?void 0:t.grand_total,E)}),(0,r.jsx)("p",{children:(0,r.jsx)("div",{className:"actions",children:$(e)})})]})]})}),[S,z,k,$]);return((0,a.useEffect)(()=>{let e;e=C&&C.enabled&&C.url?{dev:C.url,staging:C.url,production:C.url}:{dev:f.E[w].dev,staging:f.E[w].staging,production:f.E[w].production},D((0,b.s)(e))},[]),(0,a.useEffect)(()=>{S&&S.page_info&&(s&&s(S.page_info.total_pages),p&&p(S.total_count))},[S]),T)?(0,r.jsx)("div",{className:"mx-auto max-w-xs",children:(0,r.jsx)(N,{})}):(null==S?void 0:S.items.length)?(0,r.jsxs)(r.Fragment,{children:[j&&(0,r.jsx)(m,{initialBlockData:v,orderListNoteIdentifier:h}),(0,r.jsx)("div",{className:"order-date-picker",children:(0,r.jsx)("input",{type:"date",className:"order-date-filter",name:"date-filter"})}),(0,r.jsx)("div",{className:x()(g()["order-list-table"]),children:(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:k("account||orderlist|Order Number")}),(0,r.jsx)("th",{children:k("account||orderlist|Order Status")}),(0,r.jsx)("th",{children:k("account||orderlist|Date Placed")}),(0,r.jsx)("th",{children:k("account||orderlist|Total")}),(0,r.jsx)("th",{className:"action",children:k("account||orderlist|Action")})]})}),(0,r.jsx)("tbody",{children:I})]})}),(0,r.jsx)("div",{className:"order-list-mobile",children:B})]}):(0,r.jsx)("div",{children:k("account||orderlist|No Orders found")})};t(61968),t(30681),t(78652),t(28873),t(92209),t(29032),t(29857)},29227:function(e,n,t){"use strict";t.d(n,{y:function(){return a}});var r=t(72615);let a=(e,n,t)=>{var a;let{data:l,error:i,isValidating:o}=(0,r.a)("\n    query customer($pageSize: Int, $currentPage: Int, $onlyRma: Boolean) {\n        customer {\n            firstname\n            lastname\n            email\n            orders(\n                pageSize: $pageSize\n                currentPage: $currentPage\n                filter: { onlyRma: $onlyRma }\n            ) {\n                page_info {\n                    current_page\n                    page_size\n                    total_pages\n                }\n                total_count\n                items {\n                    available_actions\n                    aftership_rma_id\n                    number\n                    id\n                    order_date\n                    total {\n                        grand_total {\n                            value\n                            currency\n                        }\n                    }\n                    payment_gateway_names\n                    items {\n                        product_sku\n                        product_name\n                        product_type\n                        product_url_key\n                        id\n                        status\n                        backorder {\n                            available\n                            expected_delivery_date\n                            date\n                        }\n                    }\n                    status\n                }\n            }\n        }\n    }\n",e,n,t),s=null==l?void 0:null===(a=l.data)||void 0===a?void 0:a.customer,c=null==s?void 0:s.orders;return{loading:!l&&o,error:i,customer:s,orders:c}}},78669:function(e,n,t){"use strict";t.d(n,{w:function(){return l}});var r=t(5152),a=t.n(r);t(67294);let l=a()(()=>Promise.all([t.e(6561),t.e(4666)]).then(t.bind(t,14666)),{loadableGenerated:{webpack:()=>[14666]}})},61968:function(e,n,t){"use strict";t.d(n,{G:function(){return _}});var r=t(85893),a=t(67294),l=t(93967),i=t.n(l),o=t(43267),s=t.n(o);let c=e=>{let{children:n}=e;return(0,r.jsx)("ul",{className:i()(s()["pagination-list"],"pagination-list"),children:n})};var d=t(92528),u=t(80628);let p=function(e,n,t){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,l=(0,a.useCallback)((e,n)=>{let t=1+r,a=n-r,l=e-r;return e<t?l=1:e>a&&(l=Math.max(n-2*r,1)),l},[r]),i=(0,a.useCallback)(()=>{n(Math.max(1,l(e,t)-(r+1)))},[e,l,n,t,r]),o=(0,a.useCallback)(()=>{let a=l(e,t);n(Math.min(t,a+2*r+(r+1)))},[e,l,n,t,r]),s=(0,a.useCallback)(()=>{e>1&&n(e-1)},[e,n]),c=(0,a.useCallback)(()=>{e<t&&n(e+1)},[e,n,t]);return{handleLeftSkip:i,handleRightSkip:o,handleNavBack:s,handleNavForward:c,isActiveLeft:1!==e,isActiveRight:e!==t,tiles:(0,a.useMemo)(()=>{let n=[],a=Math.min(2*r,t-1),i=l(e,t);for(let e=i;e<=i+a;e++){let t=e;n.push(t)}return n},[e,l,t,r])}};var h=t(29857);let m=e=>{let{isActive:n,number:t,onClick:l}=e,o=(0,a.useCallback)(()=>l(t),[l,t]);return(0,r.jsx)("li",{className:i()(s()["page-item"],{active:n}),children:n?(0,r.jsx)("span",{className:"page-link",children:t}):(0,r.jsx)(h.zx,{className:"page-link",variant:"link",onClick:o,onKeyDown:o,children:t})})};
1var v=t(79841);let x=e=>{let{pageControl:n}=e,{t}=(0,v.$G)(),{pageSize:a,currentPage:l,totalCount:o}=n,c=(l-1)*Number(a)+1,d=Math.min(c+Number(a)-1,o);return(0,r.jsx)("div",{className:i()(s()["items-count"],"pagination-items-count"),children:(0,r.jsx)("span",{children:t("Items {{itemsStart}} to {{itemEnd}} of {{totalCount}} total",{itemsStart:c,itemEnd:d,totalCount:o})})})};var j=t(7340),g=t(82802),b=t(27434);let f=e=>{let{setPageSize:n,pageSize:t,setPage:a,options:l}=e,{t:o}=(0,v.$G)(),c=e=>(n(e),a(1),null);return(0,r.jsxs)("div",{className:i()(s()["pagination-dropdown"],"pagination-dropdown"),children:[(0,r.jsx)("span",{children:o("Show ")}),(0,r.jsx)(j.L,{openedDisplay:(0,r.jsx)(()=>(0,r.jsxs)("div",{className:s()["dropdown-label"],children:[(0,r.jsx)(h.zx,{type:"button",variant:"link",children:t}),(0,r.jsx)(g.Z,{width:"20",height:"20"})]}),{}),closedDisplay:(0,r.jsx)(()=>(0,r.jsxs)("div",{className:s()["dropdown-label"],children:[(0,r.jsx)(h.zx,{type:"button",variant:"link",children:t}),(0,r.jsx)("span",{children:(0,r.jsx)(b.Z,{width:"20",height:"20"})})]}),{}),children:(0,r.jsx)("ul",{className:s()["pagination-dropdown-list"],children:null==l?void 0:l.map((e,n)=>(0,r.jsx)("li",{value:e.optionValue,children:(0,r.jsx)(h.zx,{onClick:()=>{c(e.optionValue)},onKeyUp:()=>{c(e.optionValue)},variant:"link",children:e.optionLabel})},n))})}),(0,r.jsx)("span",{children:o("per page")})]})},y=[{optionLabel:"10",optionValue:10},{optionLabel:"20",optionValue:20},{optionLabel:"50",optionValue:50}],_=e=>{let{className:n,options:t=y,showToolbar:l=!0,pageControl:o,setPageSize:v,prevIcon:j=(0,r.jsx)(d.Z,{size:"20"}),nextIcon:g=(0,r.jsx)(u.Z,{size:"20"})}=e,{currentPage:b,setPage:_,totalPages:w,pageSize:k,totalCount:N}=o,{handleNavBack:O,handleNavForward:C,isActiveLeft:P,isActiveRight:S,tiles:T}=p(b,_,w),z=(0,a.useMemo)(()=>T.map(e=>(0,r.jsx)(m,{isActive:e===b,number:e,onClick:_},e)),[b,T,_]);return N?(0,r.jsxs)("div",{className:i()(s()["pagination-toolbar"],n),children:[l&&(0,r.jsx)(x,{pageControl:o}),w>1&&(0,r.jsxs)(c,{children:[P&&(0,r.jsx)("li",{className:i()(s()["page-item"],s().previous),children:(0,r.jsx)(h.zx,{variant:"link",onClick:O,onKeyDown:O,children:(0,r.jsx)("span",{"aria-hidden":"true",children:j})})}),z,S&&(0,r.jsx)("li",{className:i()(s()["page-item"],s().next),children:(0,r.jsx)(h.zx,{variant:"link",onClick:C,onKeyDown:C,children:(0,r.jsx)("span",{"aria-hidden":"true",children:g})})})]}),l&&(0,r.jsx)(f,{setPageSize:v,pageSize:k,setPage:_,options:t})]}):null}},43267:function(e){e.exports={"pagination-toolbar":"PaginationToolbarStyle_pagination-toolbar__PfeUL","page-item":"PaginationToolbarStyle_page-item__3wtA2","pagination-dropdown":"PaginationToolbarStyle_pagination-dropdown__e__Ay","pagination-dropdown-list":"PaginationToolbarStyle_pagination-dropdown-list__I1caw","items-count":"PaginationToolbarStyle_items-count__JNKxj","pagination-list":"PaginationToolbarStyle_pagination-list__1wcBA","dropdown-label":"PaginationToolbarStyle_dropdown-label___uKo5"}},92528:function(e,n,t){"use strict";var r=t(67294),a=t(45697),l=t.n(a);function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var o=(0,r.forwardRef)(function(e,n){var t=e.color,a=e.size,l=void 0===a?24:a,o=function(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(e,["color","size"]);return r.createElement("svg",i({ref:n,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:void 0===t?"currentColor":t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),r.createElement("polyline",{points:"15 18 9 12 15 6"}))});
1o.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},o.displayName="ChevronLeft",n.Z=o},80628:function(e,n,t){"use strict";var r=t(67294),a=t(45697),l=t.n(a);function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var o=(0,r.forwardRef)(function(e,n){var t=e.color,a=e.size,l=void 0===a?24:a,o=function(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(e,["color","size"]);return r.createElement("svg",i({ref:n,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:void 0===t?"currentColor":t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),r.createElement("polyline",{points:"9 18 15 12 9 6"}))});o.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},o.displayName="ChevronRight",n.Z=o}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.