PageSourceSearch

https://molbubi.hu/assets/ReceiptDetailsPage-Cce_bdvy.js

js molbubi.hu collected 2026-10-01 11:57:07 UTC 3,589 bytes, 1 lines download raw bytes

1import{j as t,B as l,T as e,L as T,c as A,g as P,e as j,f as i,z as R}from"./vendor-mui-CO7ndWfg.js";import{u as y,a as S,b as B,e as C,y as E,P as k,g as w,M as z,B as N,f as O}from"./main-Bc0VL40j.js";import{e as W}from"./vendor-react-xiLgNGE9.js";import{P as $}from"./PaymentsService-DEzBFUVC.js";import"./vendor-mapbox-D8F1hoiy.js";const D=({order:n})=>{var o,x,m,s;const{t:r,i18n:g}=y(),c=a=>O(a/100,n.currency,g.language),d=(x=(o=n.discount)==null?void 0:o.discountAmount)==null?void 0:x.amount;return t.jsxs(A,{size:"small",children:[t.jsxs(P,{children:[(m=n.orderLines)==null?void 0:m.map(a=>{var h;return t.jsxs(j,{children:[t.jsx(i,{children:t.jsxs(e,{variant:"body2",children:[((h=a.product)==null?void 0:h.name)??"—",a.quantity>1&&` × ${a.quantity}`]})}),t.jsx(i,{align:"right",children:t.jsx(e,{variant:"body2",children:c(a.totalPrice)})})]},a.id)}),d!=null&&t.jsxs(j,{children:[t.jsx(i,{children:t.jsxs(e,{variant:"body2",children:[r("discount","Discount"),((s=n.discount)==null?void 0:s.code)&&` (${n.discount.code})`]})}),t.jsx(i,{align:"right",children:t.jsxs(e,{variant:"body2",children:["-",c(d)]})})]}),t.jsxs(j,{children:[t.jsx(i,{children:t.jsx(e,{variant:"body2",fontWeight:"bold",children:r("total","Total")})}),t.jsx(i,{align:"right",children:t.jsx(e,{variant:"body2",fontWeight:"bold",children:c(n.amount??0)})})]})]}),t.jsx(R,{children:t.jsxs(j,{children:[t.jsx(i,{children:t.jsx(e,{variant:"body2",fontSize:"0.875rem",color:"text.secondary",children:r("modules.Receipt.orderTypes.vat","VAT")})}),t.jsx(i,{align:"right",children:t.jsx(e,{variant:"body2",fontSize:"0.875rem",color:"text.secondary",children:c(n.vatAmount??0)})})]})})]})},G=()=>{const{token:n}=W(),{t:r,i18n:g}=y(),{systemConfig:c}=S(),{data:d}=B(),{data:o,loading:x,error:m}=C(v=>$.paymentsControllerGetOrder(v,n??""),[n],{skip:!n}),s=d==null?void 0:d.settings,a=s==null?void 0:s.title,h=c.contactEmail,p=c.colourKey,u=s==null?void 0:s.footer,f=E.get("urbanSharingAssetsUrl"),b=p?`${f}/v1/favicons/public-web/${p}/android-chrome-256x256.png`:null;return x?t.jsx(k,{variant:"detail"}):m||!o?t.jsxs(l,{sx:{maxWidth:800,width:"100%",p:3,mx:"auto"},children:[t.jsx(e,{variant:"h4",gutterBottom:!0,children:r("modules.ErrorPage.PageNotFound.heading","The page could not be found")}),!!m&&t.jsx(e,{variant:"body1",color:"text.secondary",children:w(m,"")})]}):t.jsxs(l,{children:[t.jsxs(l,{sx:{textAlign:"center",mb:3},children:[b&&t.jsx(l,{sx:{mb:1,mx:"auto",width:100},children:t.jsx("img",{src:b,alt:a||"",style:{width:"100%",height:"auto"}})}),a&&t.jsx(e,{variant:"body2",sx:{color:"text.primary",fontWeight:"normal"},children:a})]}),t.jsx(e,{variant:"h5",component:"h1",gutterBottom:!0,sx:{mb:2},children:r("modules.Receipt.header","Receipt for purchase from {siteName}",{siteName:a||""})}),t.jsx(e,{variant:"body2",color:"text.secondary",paragraph:!0,children:r("modules.Receipt.orderNumber","Order #{id}",{id:o.id})}),t.jsx(l,{sx:{mb:3},children:t.jsx(D,{order:o})}),o.completedAt&&t.jsx(l,{sx:{mb:3},children:t.jsx(e,{variant:"body2",children:r("date_completed_at","Date: {completedAt}",{completedAt:z(o.completedAt,g.language)})})}),h&&t.jsx(e,{variant:"body2",align:"center",paragraph:!0,sx:{mb:3},children:r("modules.Receipt.contact","For customer service or other inquiries, please send us an email at {contactEmail}",{contactEmail:t.jsx(T,{href:`mailto:${h}`,children:h})})}),(u==null?void 0:u.aboutOperator)&&t.jsx(l,{sx:{textAlign:"center",fontWeight:"normal",fontSize:"0.875rem",color:"text.secondary"},children:t.jsx(N,{value:u.aboutOperator})})]})};export{G as ReceiptDetailsPage};

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.