PageSourceSearch

https://www.bragard.co.uk/js/62.bundle.ca503001f476b9283e4e.js

js bragard.co.uk collected 2026-10-04 04:48:25 UTC 7,064 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkchefworks_theme=self.webpackChunkchefworks_theme||[]).push([[62],{26943(e,r,t){t.r(r),t.d(r,{OrderDetails:()=>f,OrderInvoices:()=>L,OrderRefunds:()=>C,OrderShipments:()=>k});var n=t(14041),a=t(30004),o=t(62534),i=t(91115);const l="FNDYgud75FrHQD8ofUK6",s="kSnFux2VK7HRW9P4ilhB",c="aDszo5szCy2RjtrU8sck",d="c41CROfaw8h1nZX60D25",u="bRO1__6xYC8Rus7H4IkY";var m=function(e,r){return!r||e.includes("/actor/")?e:"".concat(e.replace(/\/$/,""),"/actor/").concat(encodeURIComponent(r),"/")};function f(e){var r=e.config,t=e.order,f=void 0===t?void 0:t,v=(0,a.usePhraseTranslater)();if(!f)return null;var g=f.order_urls,p=g.portal_approval_approve_url,E=g.portal_approval_decline_url,h=function(){if("undefined"==typeof window)return"";var e=window.location.pathname.match(/\/actor\/([^/]+)/);return e?decodeURIComponent(e[1]):""}(),y="undefined"!=typeof window&&window.location.pathname.includes("/sales/guest/view/")&&window.location.pathname.includes("/token/")&&window.location.pathname.includes("/actor/")&&!!h&&!!p&&!!E,P=p?m(p,h):"",w=E?m(E,h):"",b=function(e,r){e.preventDefault(),e.stopPropagation(),window.confirm(r)&&(window.location.href=e.currentTarget.href)};return n.createElement(o.SalesDetailsLayout,{config:r,order:f,className:l},n.createElement(i.Order,{config:r,order:f,className:s,showOrderHeader:!1,showItemsAlways:!0,orderDetails:!0}),y&&n.createElement("div",{className:c},n.createElement("a",{className:d,href:P,onClick:function(e){return b(e,v("Are you sure you want to approve this order?"))}},v("Approve")),n.createElement("a",{className:u,href:w,onClick:function(e){return b(e,v("Are you sure you want to decline this order?"))}},v("Decline"))))}var v=t(85515),g=t(94348);function p(e){var r=e.config,t=e.order,i=e.layoutPage,l=void 0===i?void 0:i,s=e.entityLabel,c=void 0===s?void 0:s,d=e.entityPrintAllUrl,u=void 0===d?void 0:d,m=e.children,f=void 0===m?void 0:m,p=(0,a.usePhraseTranslater)();return n.createElement(o.SalesDetailsLayout,{config:r,order:t,itemsWrapperClassName:g.default.orderEntityWrapper,orderNumberAsLink:!0,layoutPage:l},n.createElement(n.Fragment,null,u&&n.createElement("div",{className:g.default.orderEntityHeadline},n.createElement(v.Link,{label:c?p("Print All %1",c):p("Print All"),href:u,opacityOnHover:!0,target:"_blank"})),n.createElement("div",{className:g.default.orderEntityWrapper},f&&f)))}var E=t(7459),h=t(29054),y=t(2519),P=t(1051),w=t(95637),b=function(e){var r=e.config,t=e.order,o=e.invoice,i=(0,n.useState)(!1),l=i[0],s=i[1],c=(0,a.usePhraseTranslater)(),d=o.number,u=o.items,m=o.printInvoiceUrl,f=o.total,v=t.number,p=t.billing_address.email,E=r.salesConfig,b=E.sageMiddlewareEnabled,I=E.isShowSendInvoicePdfLink,L=E.isShowOrderNumberForMagentoInvoice,_=!b&&L?v:d,O=b&&I;return n.createElement(h.SalesEntityLayout,{salesEntityLabel:c("Invoice"),salesEntityNumber:_,salesEntityPrintUrl:m,total:f,className:l?g.default.orderEntityZIndex:"",extraEntityLinksContent:function(){if(O)return n.createElement(y.SendInvoicePdf,{invoiceNumber:d,billingEmail:p})}()},n.createElement(n.Fragment,null,u.map(function(e){var a=(0,P.getInvoiceOrderItem)(e);return a?n.createElement(w.OrderItem,{className:g.default.orderEntityItem,config:r,order:t,orderItem:a,showItemStatus:!1,showPriceTotal:!0,priceTotalLabel:c("Subtotal:"),setWrapperHasZIndex:s}):null})))},I=function(e){var r=e.config,t=e.order,a=e.invoices;return a&&a.length?n.createElement("div",{className:(0,E.classes)(g.default.orderEntityList)},a.map(function(e){return n.createElement(b,{config:r,order:t,invoice:e})})):null};function L(e){var r=e.config,t=e.order,o=void 0===t?void 0:t,i=(0,a.usePhraseTranslater)();if(!o)return null;var l=o.invoices,s=o.order_urls.print_all_invoices_url;return n.createElement(p,{config:r,order:o,layoutPage:"invoices",entityLabel:i("Invoices"),entityPrintAllUrl:s},n.createElement(I,{config:r,order:o,invoices:l}))}var _=function(e){var r=e.config,t=e.order,o=e.refund,i=(0,n.useState)(!1),l=i[0],s=i[1],c=(0,a.usePhraseTranslater)(),d=o.number,u=o.items,m=o.printRefundUrl,f=o.total;return n.createElement(h.SalesEntityLayout,{salesEntityLabel:c("Refund"),salesEntityNumber:d,salesEntityPrintUrl:m,total:f,className:l?g.default.orderEntityZIndex:""},n.createElement(n.Fragment,null,u.map(function(e){var a=(0,P.getRefundOrderItem)(e);return a?n.createElement(w.OrderItem,{className:g.default.orderEntityItem,config:r,order:t,orderItem:a,showItemStatus:!1,showPriceTotal:!0,priceTotalLabel:c("Subtotal:"),setWrapperHasZIndex:s}):null})))},O=function(e){var r=e.config,t=e.order,a=e.refunds;return a&&a.length?n.createElement("div",{className:(0,E.classes)(g.default.orderEntityList)},a.map(function(e){return n.createElement(_,{config:r,order:t,refund:e})})):null};function C(e){var r=e.config,t=e.order,o=void 0===t?void 0:t,i=(0,a.usePhraseTranslater)();if(!o)return null;var l=o.credit_memos,s=o.order_urls.print_all_refunds_url;return n.createElement(p,{config:r,order:o,layoutPage:"refunds",entityLabel:i("Refunds"),entityPrintAllUrl:s},n.createElement(O,{config:r,order:o,refunds:l}))}var N=t(91541),S=function(e){var r=e.config,t=e.order,a=e.shipments;return a&&a.length?n.createElement("div",{className:(0,E.classes)(g.default.orderEntityList)},a.map(function(e){return n.createElement(N.Shipment,{config:r,order:t,shipment:e})})):null};function k(e){var r=e.config,t=e.order,o=void 0===t?void 0:t,i=(0,a.usePhraseTranslater)();if(!o)return null;var l=o.shipments,s=o.order_urls.print_all_shipments_url;return n.createElement(p,{config:r,order:o,layoutPage:"shipments",entityLabel:i("Shipments"),entityPrintAllUrl:s},n.createElement(S,{config:r,order:o,shipments:l}))}},91142(e,r,t){t.r(r),t.d(r,{default:()=>d});var n=t(14041),a=t(50654),o=t(30004),i=t(26943),l=t(40856),s=t(8144),c=t(98738);const d=function(){var e=(0,o.usePhraseTranslater)(),r=e("Your Invoices"),t=(0,a.useReactiveVar)(l.salesLayoutConfigVar),d=(0,a.useReactiveVar)(l.currentOrderVar),u=t.salesConfig.customerOrdersUrl,m=[{label:e("Your Orders"),url:u},{label:r}],f=n.createElement(c.OrderDetailsPageContent,{pageTitle:r},n.createElement(i.OrderInvoices,{config:t,order:d}));return n.createElement(s.SalesLayout,{pageKey:"order-invoices",pageTitle:r,pageContent:f,pageBreadcrumbs:m,showLeftSidebar:!1,loadCountries:!0,loadWidgets:!0,loadInvoices:!0,isGuestPage:!1,splitOrderItems:!1})}},98738(e,r,t){t.r(r),t.d(r,{OrderDetailsPageContent:()=>l});var n=t(14041),a=t(87946),o=(0,n.createContext)(void 0);function i(e){var r=e.children,t=(0,n.useContext)(o),a=t.orderDetailsPageLoading,i=t.setOrderDetailsPageLoading;return(0,n.useEffect)(function(){a||i(!0),i(!1)},[]),n.createElement(n.Fragment,null,r)}function l(e){var r=e.pageTitle,t=void 0===r?void 0:r,l=e.children,s=void 0===l?void 0:l,c=(0,n.use
1State)(!1),d=c[0],u=c[1];return n.createElement(o.Provider,{value:{orderDetailsPageLoading:d,setOrderDetailsPageLoading:u}},n.createElement(i,null,n.createElement(a.PageContent,{pageTitle:t,pageLoading:d},n.createElement(n.Fragment,null,s))))}}}]);
2//# sourceMappingURL=62.bundle.ca503001f476b9283e4e.js.map

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.