@shophost/rest-api 2.0.67 → 2.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/schema.prisma +1 -0
- package/scripts/shophost-rest-api.mjs +198 -1
- package/src/bootstrap.js +1 -1
- package/src/container.js +1 -1
- package/src/core/auth/auth.schema.js +1 -1
- package/src/core/auth/auth.util.js +1 -1
- package/src/core/auth/better-auth.lib.js +1 -1
- package/src/core/auth/generate-password-hash.util.js +1 -1
- package/src/core/auth/headers.schema.js +1 -1
- package/src/core/auth/user.schema.js +1 -1
- package/src/core/db/__generated__/client/browser.js +1 -1
- package/src/core/db/__generated__/client/client.js +1 -1
- package/src/core/db/__generated__/client/enums.js +1 -1
- package/src/core/db/__generated__/client/internal/class.js +789 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -1
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +41 -1
- package/src/core/db/index.js +1 -1
- package/src/core/email/components.js +1 -1
- package/src/core/exceptions/http-exception.js +1 -1
- package/src/core/hono/hono.js +1 -1
- package/src/core/lib/prisma.js +1 -1
- package/src/core/logging/pino.js +1 -1
- package/src/core/notifications/email.service.js +1 -1
- package/src/core/openapi/openapi.lib.js +1 -1
- package/src/core/utils/currency.util.js +1 -1
- package/src/core/utils/env.util.js +1 -1
- package/src/core/utils/object.util.js +1 -1
- package/src/core/utils/translations.util.js +1 -1
- package/src/core/utils/zod.util.js +1 -1
- package/src/db.js +1 -1
- package/src/features/access/access.handler.js +1 -1
- package/src/features/access/access.route.js +1 -1
- package/src/features/access/access.schema.js +1 -1
- package/src/features/access/access.service.js +1 -1
- package/src/features/analytics/analytics.handler.js +1 -1
- package/src/features/analytics/analytics.route.js +1 -1
- package/src/features/analytics/analytics.schema.js +1 -1
- package/src/features/analytics/analytics.service.js +1 -1
- package/src/features/cart/cart.handler.js +1 -1
- package/src/features/cart/cart.route.js +1 -1
- package/src/features/cart/cart.schema.js +1 -1
- package/src/features/cart/cart.service.js +1 -1
- package/src/features/cart/cart.util.js +1 -1
- package/src/features/customer/customer.handler.js +1 -1
- package/src/features/customer/customer.route.js +1 -1
- package/src/features/customer/customer.schema.js +1 -1
- package/src/features/customer/customer.service.js +1 -1
- package/src/features/file/file.handler.js +1 -1
- package/src/features/file/file.route.js +1 -1
- package/src/features/file/file.schema.js +1 -1
- package/src/features/file/file.service.js +1 -1
- package/src/features/health/health.handler.js +1 -1
- package/src/features/health/health.route.js +1 -1
- package/src/features/index.js +1 -1
- package/src/features/integration/integration-config.js +1 -1
- package/src/features/integration/integration-registry.js +1 -1
- package/src/features/integration/integration.handler.js +1 -1
- package/src/features/integration/integration.route.js +1 -1
- package/src/features/integration/integration.schema.js +1 -1
- package/src/features/integration/integration.service.js +1 -1
- package/src/features/inventory/inventory.service.js +1 -1
- package/src/features/location/location.handler.js +1 -1
- package/src/features/location/location.route.js +1 -1
- package/src/features/location/location.schema.js +1 -1
- package/src/features/location/location.service.js +1 -1
- package/src/features/manufacturer/manufacturer.handler.js +1 -1
- package/src/features/manufacturer/manufacturer.route.js +1 -1
- package/src/features/manufacturer/manufacturer.schema.js +1 -1
- package/src/features/manufacturer/manufacturer.service.js +1 -1
- package/src/features/order/emails/order-confirmation.email.js +1 -1
- package/src/features/order/emails/order-notification.email.js +1 -1
- package/src/features/order/fulfilment.schema.js +1 -1
- package/src/features/order/order-fulfillment.service.js +1 -1
- package/src/features/order/order.handler.js +1 -1
- package/src/features/order/order.route.js +1 -1
- package/src/features/order/order.schema.js +1 -1
- package/src/features/order/order.service.js +1 -1
- package/src/features/order/recipient.schema.js +1 -1
- package/src/features/organization/legal-entity.schema.js +1 -1
- package/src/features/organization/organization-configuration.schema.d.ts +2 -0
- package/src/features/organization/organization-configuration.schema.js +1 -1
- package/src/features/organization/organization.handler.js +1 -1
- package/src/features/organization/organization.route.d.ts +5 -0
- package/src/features/organization/organization.route.js +1 -1
- package/src/features/organization/organization.schema.d.ts +2 -0
- package/src/features/organization/organization.schema.js +1 -1
- package/src/features/organization/organization.service.d.ts +4 -0
- package/src/features/organization/organization.service.js +1 -1
- package/src/features/payment/payment-webhook.service.js +1 -1
- package/src/features/payment/payment.handler.js +1 -1
- package/src/features/payment/payment.route.js +1 -1
- package/src/features/payment/payment.schema.js +1 -1
- package/src/features/payment/payment.service.js +1 -1
- package/src/features/payment/stripe.service.js +1 -1
- package/src/features/product/product-modifier.schema.js +1 -1
- package/src/features/product/product.handler.js +1 -1
- package/src/features/product/product.route.js +1 -1
- package/src/features/product/product.schema.js +1 -1
- package/src/features/product/product.service.js +1 -1
- package/src/features/product-category/product-category.handler.js +1 -1
- package/src/features/product-category/product-category.route.js +1 -1
- package/src/features/product-category/product-category.schema.js +1 -1
- package/src/features/product-category/product-category.service.js +1 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js +1 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js +1 -1
- package/src/features/reservation/emails/reservation-email-date.d.ts +2 -0
- package/src/features/reservation/emails/reservation-email-date.js +1 -0
- package/src/features/reservation/emails/reservation-notification.email.js +1 -1
- package/src/features/reservation/emails/reservation-updated.email.js +1 -1
- package/src/features/reservation/reservation.handler.js +1 -1
- package/src/features/reservation/reservation.route.js +1 -1
- package/src/features/reservation/reservation.schema.js +1 -1
- package/src/features/reservation/reservation.service.js +1 -1
- package/src/features/shipping/shipping.handler.js +1 -1
- package/src/features/shipping/shipping.route.js +1 -1
- package/src/features/shipping/shipping.service.js +1 -1
- package/src/features/shipping-method/shipping-method.handler.js +1 -1
- package/src/features/shipping-method/shipping-method.route.js +1 -1
- package/src/features/shipping-method/shipping-method.schema.js +1 -1
- package/src/features/shipping-method/shipping-method.service.js +1 -1
- package/src/features/shipping-method/shipping-zone.schema.js +1 -1
- package/src/features/webhook/webhook.handler.js +1 -1
- package/src/features/webhook/webhook.route.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/next.js +1 -1
- package/src/schemas/address.schema.js +1 -1
- package/src/schemas/currency.schema.js +1 -1
- package/src/schemas/error.schema.js +1 -1
- package/src/schemas/index.d.ts +1 -0
- package/src/schemas/index.js +1 -1
- package/src/schemas/locales.schema.js +1 -1
- package/src/schemas/number.schema.js +1 -1
- package/src/schemas/pagination.schema.js +1 -1
- package/src/schemas/params.schema.js +1 -1
- package/src/schemas/queries.schema.js +1 -1
- package/src/schemas/time-zone.schema.d.ts +9 -0
- package/src/schemas/time-zone.schema.js +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{__awaiter as s}from"tslib";import{createApiRouter as d}from"../../core/hono/hono";import{locationRoute as u}from"./location.route";export const registerLocationHandlers=n=>{const r=d(),a=()=>{if(!n)throw new Error("Google Maps API key is required");return n};return r.openapi(u.getPredictions,e=>s(void 0,void 0,void 0,function*(){const o=e.get("auth"),t=e.req.valid("query");yield o.getCurrentUser();const i=yield a().getPredictions(t.query,t.radius);return e.json(i,200)})),r.openapi(u.getPlaceDetails,e=>s(void 0,void 0,void 0,function*(){const o=e.get("auth"),t=e.req.valid("param");yield o.getCurrentUser();const i=yield a().getPlaceDetails(t.placeId);return e.json(i,200)})),r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{z as e}from"@hono/zod-openapi";import{createApiRoute as t}from"../../core/hono/hono";import{ErrorSchema as a,HeaderSchema as o,PlaceDetailsSchema as r,PlaceSchema as i}from"../../schemas";const s=t({description:"Returns a list of places for autocompletion based on a search query",headers:o,method:"GET",operationId:"getPredictions",path:"/places/prediction",query:e.object({query:e.string().openapi({description:"Search query",example:"123 Main St"}),radius:e.coerce.number().default(1e4).openapi({description:"Search radius in meters",example:1e4})}),responses:{200:e.array(i),400:a,401:a},summary:"Get Places Predictions",tags:["Location"]}),c=t({description:"Returns details for a specific place based on its placeId",headers:o,method:"GET",operationId:"getPlaceDetails",path:"/places/:placeId",pathParams:e.object({placeId:e.string().openapi({description:"The Google Place ID for the address",example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",param:{in:"path",name:"placeId"}})}),responses:{200:r,400:a,401:a},summary:"Get Place Details",tags:["Location"]});export const locationRoute={getPredictions:s,getPlaceDetails:c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{z as e}from"@hono/zod-openapi";export const PlaceSchema=e.object({placeId:e.string().openapi({example:"ChIJN1t_tKlj4AR4GeTYWZ7frY",description:"The Google Place ID for the address"}),text:e.string().openapi({example:"123 Main Street, New York, USA",description:"The description of the place"}),addressLineOne:e.string().openapi({example:"123 Main Street",description:"The first line of the address"}),addressLineTwo:e.string().optional().openapi({example:"Suite 100",description:"The second line of the address"}),latitude:e.number().optional().openapi({example:40.712776,description:"The latitude of the coordinate"}),longitude:e.number().optional().openapi({example:-74.005974,description:"The longitude of the coordinate"})}).openapi("Place"),PlaceDetailsSchema=e.object({addressLineOne:e.string().openapi({example:"123 Main Street",description:"The first line of the address"}),zipCode:e.string().optional().openapi({example:"12345",description:"The postal code of the address"}),city:e.string().openapi({example:"New York",description:"The city of the address"}),country:e.string().openapi({example:"USA",description:"The ISO 3166-1 alpha-2 country code"})}).openapi("PlaceDetails");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{__awaiter as d}from"tslib";import h,{isAxiosError as c}from"axios";import{logger as n}from"../../core/logging/pino";class m{constructor(s){this.apiKey=s,this.client=h.create({baseURL:"https://places.googleapis.com/v1",headers:{"Content-Type":"application/json","X-Goog-Api-Key":s}})}getPredictions(s,a){return d(this,void 0,void 0,function*(){var o,i,r;if(!s||s.trim()===""||s.length<3)return[];try{const{data:e}=yield this.client.post("/places:autocomplete",{input:s,locationBias:{circle:{center:{latitude:37.7937,longitude:-122.3965},radius:a||1e5}}});return e.suggestions.map(({placePrediction:t})=>({placeId:t.placeId,text:t.text.text,addressLineOne:t.structuredFormat.mainText.text,addressLineTwo:t.structuredFormat.secondaryText.text}))}catch(e){throw c(e)?n.error({status:(o=e.response)===null||o===void 0?void 0:o.status,statusText:(i=e.response)===null||i===void 0?void 0:i.statusText,data:(r=e.response)===null||r===void 0?void 0:r.data,query:s},"Google Places Autocomplete request failed"):n.error({err:e,query:s},"Unexpected error during Places Autocomplete"),e}})}findDistanceBetweenCoordinates(s,a){return d(this,void 0,void 0,function*(){const o=p=>p*(Math.PI/180),r=o(a.latitude-s.latitude),e=o(a.longitude-s.longitude),t=o(s.latitude),u=o(a.latitude),l=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t)*Math.cos(u)*Math.sin(e/2)*Math.sin(e/2);return 6371*(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)))})}getPlaceDetails(s){return d(this,void 0,void 0,function*(){var a,o,i;let r;try{r=(yield this.client.get(`/places/${s}`,{headers:{"X-Goog-FieldMask":"addressComponents,adrFormatAddress,formattedAddress,location,plusCode,postalAddress,shortFormattedAddress,types"}})).data}catch(t){throw c(t)?n.error({status:(a=t.response)===null||a===void 0?void 0:a.status,statusText:(o=t.response)===null||o===void 0?void 0:o.statusText,data:(i=t.response)===null||i===void 0?void 0:i.data,placeId:s},"Google Place Details request failed"):n.error({err:t,placeId:s},"Unexpected error during Place Details"),t}const e={addressLineOne:"",zipCode:"",country:"",city:"",latitude:r.location.latitude,longitude:r.location.longitude};if(!r.addressComponents)return e;for(const t of r.addressComponents)t.types.includes("street_number")&&(e.addressLineOne=t.shortText),t.types.includes("route")&&(e.addressLineOne=t.shortText+" "+e.addressLineOne),t.types.includes("postal_code")&&(e.zipCode=t.shortText),t.types.includes("country")&&(e.country=t.shortText),t.types.includes("locality")&&(e.city=t.longText);return e})}}export{m as LocationService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{__awaiter as u}from"tslib";import{createApiRouter as l}from"../../core/hono/hono";import{manufacturerRoute as d}from"./manufacturer.route";export const registerManufacturerHandlers=i=>{const o=l();return o.openapi(d.createManufacturer,a=>u(void 0,void 0,void 0,function*(){const r=a.get("auth"),t=a.req.valid("param"),e=a.req.valid("json"),n=yield r.isGranted("create"),s=yield i.createManufacturer(t.organizationId,n.id,e);return a.json(s,201)})),o.openapi(d.getManufacturer,a=>u(void 0,void 0,void 0,function*(){const r=a.get("auth"),t=a.req.valid("param"),e=a.req.valid("query");yield r.isGranted("read");const n=yield i.getManufacturer(t.organizationId,t.id,{locale:e.locale||null});return a.json(n,200)})),o.openapi(d.getManufacturers,a=>u(void 0,void 0,void 0,function*(){const r=a.get("auth"),t=a.req.valid("param"),e=a.req.valid("query");yield r.isGranted("read");const n=yield i.getManufacturers(t.organizationId,Object.assign(Object.assign({},e),{locale:e.locale||null}));return a.json(n,200)})),o.openapi(d.updateManufacturer,a=>u(void 0,void 0,void 0,function*(){const r=a.get("auth"),t=a.req.valid("param"),e=a.req.valid("json"),n=yield r.isGranted("update"),s=yield i.updateManufacturer(t.organizationId,t.id,n.id,e);return a.json(s,200)})),o.openapi(d.deleteManufacturer,a=>u(void 0,void 0,void 0,function*(){const r=a.get("auth"),t=a.req.valid("param"),e=yield r.isGranted("delete");return yield i.deleteManufacturer(t.organizationId,t.id,e.id),a.body(null,204)})),o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{z as t}from"@hono/zod-openapi";import{createApiRoute as e}from"../../core/hono/hono";import{ErrorSchema as a,HeaderSchema as r,OrganizationParams as o,OrganizationWithIdParams as n,PaginationMetaSchema as s,PaginationQuerySchema as i}from"../../schemas";import{GetResourceQuerySchema as m}from"../../schemas/queries.schema";import{CreateManufacturerSchema as f,LocalizedManufacturerSchema as c,ManufacturerSchema as u,UpdateManufacturerSchema as d}from"./manufacturer.schema";const p=e({description:"Fetches a paginated list of manufacturers for a specific organization",headers:r,method:"GET",operationId:"getManufacturers",path:"/:organizationId/manufacturers",pathParams:o,query:i,responses:{200:t.object({list:t.array(t.union([u,c])),meta:s}),400:a,401:a},summary:"Get Manufacturers",tags:["Manufacturer"]}),h=e({body:f,description:"Creates a new manufacturer for a specific organization",headers:r,method:"POST",operationId:"createManufacturer",path:"/:organizationId/manufacturers",pathParams:o,responses:{201:u,400:a,401:a,404:a},summary:"Create Manufacturer",tags:["Manufacturer"]}),M=e({headers:r,method:"GET",operationId:"getManufacturer",path:"/:organizationId/manufacturers/:id",pathParams:n,query:m,responses:{200:t.union([u,c]),401:a,404:a},summary:"Get Manufacturer",tags:["Manufacturer"]}),g=e({body:d,description:"Updates an existing manufacturer",headers:r,method:"PUT",operationId:"updateManufacturer",path:"/:organizationId/manufacturers/:id",pathParams:n,responses:{200:u,400:a,401:a,404:a},summary:"Update Manufacturer",tags:["Manufacturer"]}),y=e({description:"Soft deletes a manufacturer",headers:r,method:"DELETE",operationId:"deleteManufacturer",path:"/:organizationId/manufacturers/:id",pathParams:n,responses:{204:null,400:a,401:a,404:a},summary:"Delete Manufacturer",tags:["Manufacturer"]});export const manufacturerRoute={getManufacturers:p,createManufacturer:h,getManufacturer:M,updateManufacturer:g,deleteManufacturer:y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{z as e}from"@hono/zod-openapi";import{validateRequiredForDefaultLocale as o}from"../../core/utils/zod.util";import{FileSchema as a}from"../file/file.schema";export const ManufacturerSchema=e.object({id:e.string().openapi({example:"clf9876543210abcdef",description:"ID of the manufacturer"}),name:e.string().openapi({example:"Tech Innovators Inc.",description:"Name of the manufacturer"}),logo:a.nullable().optional().openapi({description:"Logo of the manufacturer"}),createdAt:e.date(),translations:e.array(e.object({locale:e.string().min(1,"Locale is required").openapi({example:"en-US",description:"Locale code for the translation"}),about:e.string().max(6e3,"Maximum character limit is 6000").nullable().optional().openapi({example:"Tech Innovators Inc. is a technology company.",description:"Description about the manufacturer in the specified locale"})})).optional().openapi({description:"List of translations for the manufacturer"})}).openapi("Manufacturer"),LocalizedManufacturerSchema=ManufacturerSchema.omit({translations:!0}).extend({about:e.string().nullable().optional().default("")}).openapi("LocalizedManufacturer"),CreateManufacturerSchema=e.object({name:e.string().min(1,"Name is required").openapi({example:"Apple Inc.",description:"Name of the manufacturer"}),defaultLocale:e.string().min(1,"Default locale is required").openapi({example:"en-US",description:"The default locale for the manufacturer"}),logo:a.nullable().optional().openapi({description:"Logo of the manufacturer"}),translations:e.array(e.object({locale:e.string().min(1,"Locale is required").openapi({example:"en-US",description:"Locale code for the translation"}),about:e.string().max(6e3,"Maximum character limit is 6000").nullable().optional().openapi({example:"Apple Inc. is a multinational technology company.",description:"Description about the manufacturer in the specified locale"})})).min(1,"Translations are required").openapi({description:"List of translations for the manufacturer"}),logoId:e.string().optional().openapi({example:"clf9876543210abcdef",description:"ID reference to the manufacturer's logo file"})}).superRefine(o("about")).openapi("CreateManufacturer"),UpdateManufacturerSchema=e.object({name:e.string().min(1,"Name is required").optional().openapi({example:"Apple Inc. Updated",description:"Name of the manufacturer"}),logo:a.nullable().optional().openapi({description:"Logo of the manufacturer"}),defaultLocale:e.string().min(1,"Default locale is required").openapi({description:"The default locale for the manufacturer"}),logoId:e.string().nullable().optional().openapi({example:"clf9876543210abcdef",description:"ID reference to the manufacturer's logo file"}),translations:e.array(e.object({locale:e.string().min(1,"Locale is required").openapi({example:"en-US",description:"Locale code for the translation"}),about:e.string().max(6e3,"Maximum character limit is 6000").nullable().optional().openapi({example:"Apple Inc. is a multinational technology company.",description:"Description about the manufacturer in the specified locale"})})).optional().openapi({description:"List of translations for the manufacturer"})}).openapi("UpdateManufacturer");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{__awaiter as i}from"tslib";import{z as u}from"@hono/zod-openapi";import{HttpException as v}from"../../core/exceptions/http-exception";import{flattenTranslationData as d}from"../../core/utils/zod.util";import{LocalizedManufacturerSchema as f,ManufacturerSchema as o,PaginationMetaSchema as m}from"../../schemas";class M{constructor(e){this.prisma=e}findManufacturer(e,a,t){return i(this,void 0,void 0,function*(){const r=yield this.prisma.manufacturer.findUnique({where:{id:e,organizationId:a,deletedAt:null},include:t?.include});if(!r)throw new v(404,"Manufacturer not found");return r})}createManufacturer(e,a,t){return i(this,void 0,void 0,function*(){const r=yield this.prisma.manufacturer.create({data:{name:t.name,organizationId:e,createdBy:a,logoId:t.logoId,translations:{create:t.translations}},include:{translations:!0,logo:!0}});return o.parse(r)})}getManufacturer(e,a,t){return i(this,void 0,void 0,function*(){const{locale:r}=t,n=yield this.findManufacturer(a,e,{include:{logo:!0,translations:r?{where:{locale:r}}:!0}});return r?f.parse(d(n)):o.parse(n)})}getManufacturers(e,a){return i(this,void 0,void 0,function*(){const{page:t=1,limit:r=10,search:n,locale:s}=a,[c,l]=yield this.prisma.manufacturer.paginate({orderBy:{createdAt:"desc"},where:Object.assign({organizationId:e,deletedAt:null},n&&{name:{contains:n,mode:"insensitive"}}),include:{logo:!0,translations:s?{where:{locale:s}}:!0}}).withPages({page:t,limit:r});if(!s)return u.object({meta:m,list:u.array(o)}).parse({meta:l,list:c});const h=c.map(p=>d(p));return u.object({meta:m,list:u.array(f)}).parse({meta:l,list:h})})}updateManufacturer(e,a,t,r){return i(this,void 0,void 0,function*(){yield this.findManufacturer(a,e);const n=yield this.prisma.manufacturer.update({where:{id:a,organizationId:e,deletedAt:null},data:{updatedBy:t,name:r.name,translations:{deleteMany:{},create:r.translations||[]},logoId:r.logoId},include:{logo:!0,translations:!0}});return o.parse(n)})}deleteManufacturer(e,a,t){return i(this,void 0,void 0,function*(){yield this.findManufacturer(a,e),yield this.prisma.manufacturer.update({where:{id:a,organizationId:e,deletedAt:null},data:{deletedAt:new Date,deletedBy:t}})})}}export{M as ManufacturerService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x51e42a=_0x2a65,_0x418604=_0x2a65;(function(_0x269ade,_0x217999){const _0x232dc1=_0x2a65,_0x1768e5=_0x2a65,_0x14df58=_0x269ade();while(!![]){try{const _0x17e242=parseInt(_0x232dc1(0x16c))/0x1+-parseInt(_0x232dc1(0x19f))/0x2*(parseInt(_0x232dc1(0x23c))/0x3)+parseInt(_0x232dc1(0x24d))/0x4+-parseInt(_0x1768e5(0x241))/0x5*(-parseInt(_0x1768e5(0x208))/0x6)+-parseInt(_0x232dc1(0x265))/0x7*(-parseInt(_0x232dc1(0x225))/0x8)+parseInt(_0x232dc1(0x283))/0x9+-parseInt(_0x1768e5(0x198))/0xa;if(_0x17e242===_0x217999)break;else _0x14df58['push'](_0x14df58['shift']());}catch(_0x3f3351){_0x14df58['push'](_0x14df58['shift']());}}}(_0x422b,0xd99f3));import{jsx as _0x329dc6,jsxs as _0x13d425}from'react/jsx-runtime';import{Body as _0x5989f0,Column as _0x3991bc,Container as _0x527a73,Head as _0x453582,Heading as _0x3dc283,Hr as _0xb8a1c9,Html as _0x57b62d,Img as _0x1c1254,Link as _0x4c5d2c,Preview as _0x184ecb,Row as _0x52ac67,Section as _0x3eec0d,Tailwind as _0x38546c,Text as _0x4bfde8}from'../../../core/email/components';function _0x2a65(_0x948626,_0x20af12){_0x948626=_0x948626-0x160;const _0x422baa=_0x422b();let _0x2a65e9=_0x422baa[_0x948626];if(_0x2a65['Yhbqvv']===undefined){var _0x5475bd=function(_0x2350d1){const _0x1e3c39='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x280e13='',_0x1a833c='';for(let _0x3b7e2d=0x0,_0x360332,_0x2f0203,_0xa3f363=0x0;_0x2f0203=_0x2350d1['charAt'](_0xa3f363++);~_0x2f0203&&(_0x360332=_0x3b7e2d%0x4?_0x360332*0x40+_0x2f0203:_0x2f0203,_0x3b7e2d++%0x4)?_0x280e13+=String['fromCharCode'](0xff&_0x360332>>(-0x2*_0x3b7e2d&0x6)):0x0){_0x2f0203=_0x1e3c39['indexOf'](_0x2f0203);}for(let _0x5a5193=0x0,_0x1a14ff=_0x280e13['length'];_0x5a5193<_0x1a14ff;_0x5a5193++){_0x1a833c+='%'+('00'+_0x280e13['charCodeAt'](_0x5a5193)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a833c);};_0x2a65['UbKIby']=_0x5475bd,_0x2a65['lTgWOV']={},_0x2a65['Yhbqvv']=!![];}const _0x3fc868=_0x422baa[0x0],_0x1fb42f=_0x948626+_0x3fc868,_0xe33f21=_0x2a65['lTgWOV'][_0x1fb42f];return!_0xe33f21?(_0x2a65e9=_0x2a65['UbKIby'](_0x2a65e9),_0x2a65['lTgWOV'][_0x1fb42f]=_0x2a65e9):_0x2a65e9=_0xe33f21,_0x2a65e9;}const m=(_0x131ffc,_0x4071d0='PLN',_0x23624f=_0x51e42a(0x1b8))=>new Intl[(_0x418604(0x1b6))+'rmat'](_0x23624f,{'style':_0x418604(0x178),'currency':_0x4071d0})[_0x418604(0x233)](_0x131ffc),j=({user:_0x4e7d87,organization:_0x1eda70,order:_0x534aba})=>{const _0x24cf5a=_0x418604,_0x47d8d3=_0x418604,_0x5e3f19={'KbXnv':function(_0xa7597f,_0x425af7,_0x743a7c,_0x120093){return _0xa7597f(_0x425af7,_0x743a7c,_0x120093);},'ZmPup':function(_0x359051,_0x204a59,_0x475c5d){return _0x359051(_0x204a59,_0x475c5d);},'QanTF':_0x24cf5a(0x28c),'FccOZ':_0x47d8d3(0x245)+_0x24cf5a(0x1e5)+_0x24cf5a(0x1cd)+_0x24cf5a(0x27b),'EyuGJ':function(_0x3c54be,_0x269774){return _0x3c54be===_0x269774;},'YOiJu':_0x24cf5a(0x1ce)+'lg','TVRdk':function(_0x3023d7,_0x5d5716,_0x1f136c){return _0x3023d7(_0x5d5716,_0x1f136c);},'GUxcO':_0x47d8d3(0x234)+_0x47d8d3(0x1c1)+_0x47d8d3(0x202)+_0x47d8d3(0x1b1)+_0x24cf5a(0x23a),'XnEqw':_0x47d8d3(0x240)+_0x47d8d3(0x24b),'eWodJ':'mb-6','etpoj':function(_0x1c102b,_0x4cbd65,_0x87f69f){return _0x1c102b(_0x4cbd65,_0x87f69f);},'jxhLz':_0x24cf5a(0x232)+_0x47d8d3(0x207)+_0x24cf5a(0x1b9)+_0x24cf5a(0x1a8),'Rctxy':_0x24cf5a(0x183),'jgzla':_0x24cf5a(0x27a),'JmOAb':_0x24cf5a(0x1ec)+_0x47d8d3(0x222)+_0x24cf5a(0x27c),'BMAer':function(_0x5ab79f,_0x36004c,_0x33bc37){return _0x5ab79f(_0x36004c,_0x33bc37);},'EcVHD':function(_0x5c58a0,_0x37d644,_0x42c179){return _0x5c58a0(_0x37d644,_0x42c179);},'lAXaT':function(_0x4d840e,_0x5797cb){return _0x4d840e===_0x5797cb;},'nKFFA':function(_0x1f22c5,_0x5a61f0,_0x4cf776){return _0x1f22c5(_0x5a61f0,_0x4cf776);},'lXikW':function(_0x48cbd7,_0x2749f7,_0x4d471e){return _0x48cbd7(_0x2749f7,_0x4d471e);},'hsUpo':_0x47d8d3(0x226),'pwwnY':_0x47d8d3(0x234)+_0x47d8d3(0x1f2)+'ail/stat'+_0x24cf5a(0x21d)+_0x47d8d3(0x23d)+'o.png'};var _0x5ea5d5,_0x1a39ab,_0x4dfb41,_0xb3e52a,_0x2dc3bc,_0x437905,_0x140352,_0x4ad570,_0x2b97ff,_0x945408,_0x5871fe,_0x250997,_0x3ba225,_0x5dc553,_0x2e95d5,_0x4e1272;const _0x2dfb1c=_0x47d8d3(0x1f8)+_0x24cf5a(0x173)+_0x24cf5a(0x201)+'m\x20'+_0x1eda70[_0x24cf5a(0x1c8)],_0x180684=new Date()[_0x47d8d3(0x164)+_0x47d8d3(0x1dd)+'ng'](_0x5e3f19[_0x47d8d3(0x1ac)],{'day':_0x24cf5a(0x199),'month':_0x47d8d3(0x199),'year':_0x24cf5a(0x251)}),_0x333bf3=((_0x5ea5d5=_0x534aba[_0x47d8d3(0x1e0)])===null||_0x5ea5d5===void 0x0?void 0x0:_0x5ea5d5[_0x47d8d3(0x182)])||0x0,_0x58a9e0=((_0x1a39ab=_0x534aba['payment'])===null||_0x1a39ab===void 0x0?void 0x0:_0x1a39ab[_0x24cf5a(0x168)])||0x0,_0xf5fdc1=((_0x4dfb41=_0x534aba[_0x47d8d3(0x1e0)])===null||_0x4dfb41===void 0x0?void 0x0:_0x4dfb41[_0x24cf5a(0x191)])||0x0,_0x5609ea=_0x47d8d3(0x234)+_0x1eda70[_0x47d8d3(0x22f)+'ation'][_0x24cf5a(0x25c)]+('/account'+'/orders/')+_0x534aba['id'];return _0x13d425(_0x57b62d,{'children':[_0x329dc6(_0x453582,{}),_0x329dc6(_0x184ecb,{'children':_0x2dfb1c}),_0x329dc6(_0x38546c,{'children':_0x13d425(_0x5989f0,{'className':_0x24cf5a(0x245)+_0x47d8d3(0x169)+_0x24cf5a(0x214),'children':[_0x13d425(_0x527a73,{'className':_0x5e3f19[_0x47d8d3(0x1af)],'children':[_0x329dc6(_0x3eec0d,{'className':_0x47d8d3(0x1f6),'children':_0x5e3f19['ZmPup'](_0x13d425,_0x52ac67,{'children':[_0x329dc6(_0x3991bc,{'className':_0x24cf5a(0x219),'children':_0x329dc6(_0x1c1254,{'alt':'React\x20Em'+_0x47d8d3(0x220),'height':_0x47d8d3(0x20b),'src':(_0xb3e52a=_0x1eda70[_0x47d8d3(0x167)])===null||_0x5e3f19[_0x24cf5a(0x1de)](_0xb3e52a,void 0x0)?void 0x0:_0xb3e52a[_0x24cf5a(0x1d8)],'className':_0x5e3f19[_0x24cf5a(0x1a1)]})}),_0x5e3f19[_0x47d8d3(0x22a)](_0x329dc6,_0x3991bc,{'align':_0x47d8d3(0x27a),'children':_0x13d425(_0x52ac67,{'align':_0x24cf5a(0x27a),'children':[_0x329dc6(_0x3991bc,{'children':_0x329dc6(_0x4c5d2c,{'href':_0x5e3f19[_0x47d8d3(0x20f)],'children':_0x5e3f19[_0x47d8d3(0x288)](_0x329dc6,_0x1c1254,{'alt':_0x47d8d3(0x1c5)+'m','className':_0x24cf5a(0x28f),'height':'36','src':_0x47d8d3(0x234)+'react.em'+_0x47d8d3(0x210)+_0x24cf5a(0x21d)+_0x47d8d3(0x23d)+_0x47d8d3(0x28e),'width':'36'})})}),_0x329dc6(_0x3991bc,{'children':_0x329dc6(_0x4c5d2c,{'href':_0x24cf5a(0x234)+_0x24cf5a(0x1e1)+'book.com'+_0x47d8d3(0x258)+_0x47d8d3(0x268),'children':_0x329dc6(_0x1c1254,{'alt':_0x47d8d3(0x226),'className':_0x47d8d3(0x28f),'height':'36','src':_0x47d8d3(0x234)+_0x24cf5a(0x1f2)+_0x24cf5a(0x210)+'ic/faceb'+_0x47d8d3(0x275)+'.png','width':'36'})})})]})})]})}),_0x13d425(_0x3eec0d,{'children':[_0x13d425(_0x3dc283,{'className':'text-3xl'+_0x24cf5a(0x18d)+_0x47d8d3(0x1e2)+'gray-800'+_0x47d8d3(0x227),'children':[_0x47d8d3(0x27d),_0x4e7d87['firstnam'+'e'],',']}),_0x329dc6(_0x4bfde8,{'className':'text-gra'+_0x47d8d3(0x17c)+_0x47d8d3(0x1d9)+'lg','children':_0x24cf5a(0x22e)+_0x47d8d3(0x292)+_0x24cf5a(0x1ff)+_0x47d8d3(0x230)+_0x47d8d3(0x1fd)+_0x47d8d3(0x1d6)+_0x24cf5a(0x1a6)})]}),_0x329dc6(_0x3eec0d,{'className':_0x47d8d3(0x1ad),'children':_0x329dc6(_0x4c5d2c,{'href':_0x5609ea,'className':_0x47d8d3(0x245)+'900\x20text'+_0x24cf5a(0x1ed)+_0x24cf5a(0x27f)+_0x24cf5a(0x16d)+'e\x20font-m'+_0x24cf5a(0x278)+_0x24cf5a(0x277)+_0x24cf5a(0x18e)+_0x24cf5a(0x179)+_0x24cf5a(0x1d1)+_0x47d8d3(0x161),'children':_0x5e3f19['XnEqw']})})]}),_0x13d425(_0x527a73,{'className':_0x24cf5a(0x196)+_0x24cf5a(0x284)+_0x24cf5a(0x193)+'unded-xl'+'\x20bg-whit'+_0x47d8d3(0x1b7),'children':[_0x329dc6(_0x3eec0d,{'className':_0x5e3f19[_0x47d8d3(0x221)],'children':_0x13d425(_0x52ac67,{'children':[_0x13d425(_0x3991bc,{'className':_0x47d8d3(0x271),'children':[_0x5e3f19[_0x47d8d3(0x27e)](_0x329dc6,_0x4bfde8,{'className':_0x24cf5a(0x16b)+_0x24cf5a(0x1bd)+'-0','children':_0x24cf5a(0x235)+'\x20details'}),_0x13d425(_0x4bfde8,{'className':_0x47d8d3(0x232)+_0x47d8d3(0x207)+_0x24cf5a(0x1b9)+_0x47d8d3(0x1a8),'children':[(_0x2dc3bc=_0x534aba[_0x47d8d3(0x182)+_0x24cf5a(0x1bf)])===null||_0x5e3f19[_0x24cf5a(0x1de)](_0x2dc3bc,void 0x0)?void 0x0:_0x2dc3bc[_0x47d8d3(0x1b4)+'e'],'\x20',(_0x437905=_0x534aba[_0x24cf5a(0x182)+_0x24cf5a(0x1bf)])===null||_0x437905===void 0x0?void 0x0:_0x437905[_0x24cf5a(0x26c)]]}),_0x13d425(_0x4bfde8,{'className':'font-sem'+_0x24cf5a(0x207)+_0x47d8d3(0x1b9)+_0x47d8d3(0x1a8),'children':[(_0x140352=_0x534aba[_0x24cf5a(0x182)+_0x47d8d3(0x1bf)])===null||_0x140352===void 0x0?void 0x0:_0x140352[_0x47d8d3(0x212)+_0x24cf5a(0x187)],'\x20',((_0x4ad570=_0x534aba[_0x24cf5a(0x182)+_0x47d8d3(0x1bf)])===null||_0x4ad570===void 0x0?void 0x0:_0x4ad570[_0x24cf5a(0x24a)+'er'])&&_0x24cf5a(0x26b)+((_0x2b97ff=_0x534aba['shipping'+_0x24cf5a(0x1bf)])===null||_0x2b97ff===void 0x0?void 0x0:_0x2b97ff[_0x24cf5a(0x24a)+'er']),_0x329dc6('br',{}),(_0x945408=_0x534aba[_0x24cf5a(0x182)+_0x24cf5a(0x1bf)])===null||_0x945408===void 0x0?void 0x0:_0x945408[_0x47d8d3(0x1c7)],'\x20',(_0x5871fe=_0x534aba['shipping'+_0x24cf5a(0x1bf)])===null||_0x5871fe===void 0x0?void 0x0:_0x5871fe[_0x47d8d3(0x19d)]]}),_0x329dc6(_0x4bfde8,{'className':_0x47d8d3(0x16b)+_0x24cf5a(0x1bd)+'-0','children':_0x47d8d3(0x291)}),_0x329dc6(_0x4bfde8,{'className':_0x5e3f19[_0x47d8d3(0x20a)],'children':(_0x250997=_0x534aba[_0x47d8d3(0x182)+_0x24cf5a(0x1bf)])===null||_0x250997===void 0x0?void 0x0:_0x250997[_0x24cf5a(0x282)]})]}),_0x329dc6(_0x3991bc,{'className':_0x24cf5a(0x18c)+_0x24cf5a(0x290),'align':'right','valign':'top','children':_0x329dc6(_0x4bfde8,{'className':'text-gra'+_0x47d8d3(0x1bd)+_0x24cf5a(0x242),'children':_0x180684})})]})}),_0x329dc6(_0x4bfde8,{'className':_0x24cf5a(0x16b)+_0x24cf5a(0x1bd)+'-0','children':_0x24cf5a(0x272)+'mmary'}),_0x329dc6(_0xb8a1c9,{'className':_0x47d8d3(0x1d7)+_0x24cf5a(0x263)+'mb-0'}),_0x329dc6(_0x3eec0d,{'children':_0x534aba['items'][_0x47d8d3(0x20c)]((_0x453603,_0x22a89e)=>{const _0x441238=_0x24cf5a,_0xf2a796=_0x24cf5a;var _0x45a3ed,_0x11b13d;const _0x24ba70=_0x453603;return _0x5e3f19[_0x441238(0x243)](_0x329dc6,_0x441238(0x183),{'width':_0xf2a796(0x17b),'cellPadding':0x0,'cellSpacing':0x0,'border':0x0,'className':_0x22a89e===_0x534aba['items'][_0x441238(0x1a4)]-0x1?'mb-0':'mb-4','children':_0x13d425('tr',{'children':[_0x5e3f19[_0xf2a796(0x288)](_0x13d425,'td',{'valign':_0x441238(0x22c),'children':[_0x13d425(_0x4bfde8,{'className':'font-sem'+_0xf2a796(0x1e4)+'-0','children':[((_0x45a3ed=_0x24ba70[_0x441238(0x197)+_0x441238(0x215)][0x0])===null||_0x45a3ed===void 0x0?void 0x0:_0x45a3ed[_0x441238(0x256)])||_0x441238(0x26d),'\x20(',((_0x11b13d=_0x24ba70[_0x441238(0x197)+_0xf2a796(0x215)][0x0])===null||_0x11b13d===void 0x0?void 0x0:_0x11b13d[_0x441238(0x26e)])||'',')']}),_0x13d425(_0x4bfde8,{'className':_0xf2a796(0x16b)+_0xf2a796(0x17c)+_0xf2a796(0x186),'children':['Quantity'+':\x20',_0x24ba70[_0xf2a796(0x26a)]]})]}),_0x329dc6('td',{'align':_0xf2a796(0x27a),'valign':_0xf2a796(0x22c),'children':_0x329dc6(_0x4bfde8,{'className':_0x441238(0x232)+'ibold','children':_0x5e3f19[_0x441238(0x243)](m,_0x24ba70[_0x441238(0x1a7)+'e']*_0x24ba70[_0x441238(0x26a)],_0x1eda70['configur'+_0x441238(0x252)][_0xf2a796(0x1eb)+_0xf2a796(0x28b)],_0x1eda70[_0xf2a796(0x22f)+_0x441238(0x252)][_0xf2a796(0x223)+_0xf2a796(0x1f3)])})})]})},_0x22a89e);})}),_0x329dc6(_0xb8a1c9,{'className':_0x24cf5a(0x1d7)+'ray-200\x20'+_0x24cf5a(0x18a)}),_0x329dc6(_0x3eec0d,{'children':_0x13d425(_0x5e3f19[_0x47d8d3(0x1ca)],{'width':'100%','cellPadding':0x0,'cellSpacing':0x0,'border':0x0,'children':[_0x13d425('tr',{'children':[_0x329dc6('td',{'children':_0x329dc6(_0x4bfde8,{'className':_0x24cf5a(0x16b)+_0x24cf5a(0x17e),'children':_0x47d8d3(0x1a3)+_0x24cf5a(0x1ab)})}),_0x329dc6('td',{'align':_0x47d8d3(0x27a),'children':_0x329dc6(_0x4bfde8,{'className':_0x24cf5a(0x16b)+_0x47d8d3(0x17e),'children':m(_0x333bf3,_0x1eda70[_0x24cf5a(0x22f)+_0x47d8d3(0x252)][_0x24cf5a(0x1eb)+'urrency'],_0x1eda70[_0x24cf5a(0x22f)+_0x24cf5a(0x252)][_0x24cf5a(0x223)+_0x47d8d3(0x1f3)])})})]}),_0x58a9e0>0x0&&_0x5e3f19['etpoj'](_0x13d425,'tr',{'children':[_0x329dc6('td',{'children':_0x329dc6(_0x4bfde8,{'className':_0x47d8d3(0x16b)+_0x24cf5a(0x17e),'children':_0x24cf5a(0x16f)})}),_0x329dc6('td',{'align':_0x5e3f19['jgzla'],'children':_0x13d425(_0x4bfde8,{'className':_0x24cf5a(0x16b)+_0x24cf5a(0x17e),'children':['-',m(_0x58a9e0,_0x1eda70[_0x47d8d3(0x22f)+_0x47d8d3(0x252)][_0x24cf5a(0x1eb)+_0x47d8d3(0x28b)],_0x1eda70[_0x24cf5a(0x22f)+_0x47d8d3(0x252)][_0x24cf5a(0x223)+_0x24cf5a(0x1f3)])]})})]})]})}),_0x329dc6(_0xb8a1c9,{'className':_0x47d8d3(0x1d7)+_0x47d8d3(0x257)}),_0x329dc6(_0x3eec0d,{'className':_0x47d8d3(0x1f6),'children':_0x329dc6(_0x47d8d3(0x183),{'width':_0x47d8d3(0x17b),'cellPadding':0x0,'cellSpacing':0x0,'border':0x0,'children':_0x13d425('tr',{'children':[_0x329dc6('td',{'children':_0x329dc6(_0x4bfde8,{'className':_0x24cf5a(0x1ec)+_0x47d8d3(0x222)+_0x24cf5a(0x27c),'children':_0x47d8d3(0x190)})}),_0x329dc6('td',{'align':_0x24cf5a(0x27a),'children':_0x329dc6(_0x4bfde8,{'className':_0x5e3f19[_0x24cf5a(0x286)],'children':m(_0xf5fdc1,_0x1eda70[_0x24cf5a(0x22f)+_0x24cf5a(0x252)][_0x47d8d3(0x1eb)+_0x47d8d3(0x28b)],_0x1eda70[_0x24cf5a(0x22f)+_0x24cf5a(0x252)]['defaultL'+_0x47d8d3(0x1f3)])})})]})})})]}),_0x329dc6(_0x3eec0d,{'className':_0x47d8d3(0x18e)+_0x47d8d3(0x21f)+_0x47d8d3(0x20e)+'y-5','children':_0x13d425('table',{'className':'w-full','children':[_0x329dc6('tr',{'className':_0x47d8d3(0x189),'children':_0x329dc6('td',{'align':_0x24cf5a(0x1f7),'children':((_0x3ba225=_0x1eda70[_0x47d8d3(0x167)])===null||_0x3ba225===void 0x0?void 0x0:_0x3ba225[_0x24cf5a(0x1d8)])&&_0x5e3f19[_0x24cf5a(0x287)](_0x329dc6,_0x1c1254,{'alt':_0x47d8d3(0x1bc)+_0x47d8d3(0x220),'height':_0x24cf5a(0x20b),'src':_0x1eda70['logoFile'][_0x24cf5a(0x1d8)],'className':_0x47d8d3(0x1ce)+'lg'})})}),_0x329dc6('tr',{'className':_0x47d8d3(0x189),'children':_0x13d425('td',{'align':'center','children':[_0x329dc6(_0x4bfde8,{'className':_0x24cf5a(0x224)+_0x24cf5a(0x260)+_0x24cf5a(0x1ea)+_0x24cf5a(0x239)+_0x47d8d3(0x1e2)+_0x47d8d3(0x1c9)+_0x47d8d3(0x16b)+_0x47d8d3(0x25f),'children':_0x1eda70[_0x47d8d3(0x1c8)]}),_0x5e3f19['EcVHD'](_0x13d425,_0x4bfde8,{'className':_0x24cf5a(0x224)+_0x47d8d3(0x260)+_0x47d8d3(0x171)+_0x24cf5a(0x1b0)+_0x24cf5a(0x204)+_0x47d8d3(0x21c)+'0','children':[(_0x5dc553=_0x1eda70[_0x24cf5a(0x19a)])===null||_0x5dc553===void 0x0?void 0x0:_0x5dc553['addressL'+'ineOne'],',','\x20',(_0x2e95d5=_0x1eda70['address'])===null||_0x5e3f19[_0x47d8d3(0x174)](_0x2e95d5,void 0x0)?void 0x0:_0x2e95d5[_0x24cf5a(0x19d)],'\x20',(_0x4e1272=_0x1eda70[_0x24cf5a(0x19a)])===null||_0x5e3f19[_0x24cf5a(0x174)](_0x4e1272,void 0x0)?void 0x0:_0x4e1272[_0x24cf5a(0x1c7)]]}),_0x5e3f19[_0x24cf5a(0x175)](_0x329dc6,_0x4bfde8,{'className':_0x24cf5a(0x1df)+_0x24cf5a(0x229)+_0x47d8d3(0x26f)+_0x24cf5a(0x1ba)+_0x47d8d3(0x166)+_0x47d8d3(0x269)+_0x47d8d3(0x248),'children':_0x1eda70[_0x24cf5a(0x282)]})]})}),_0x329dc6('tr',{'children':_0x329dc6('td',{'align':_0x47d8d3(0x1f7),'children':_0x13d425(_0x52ac67,{'className':'table-ce'+_0x47d8d3(0x21a)+_0x24cf5a(0x205)+_0x24cf5a(0x1f9)+_0x24cf5a(0x231)+_0x24cf5a(0x1e3),'children':[_0x5e3f19['lXikW'](_0x329dc6,_0x3991bc,{'className':_0x24cf5a(0x1d0),'children':_0x329dc6(_0x4c5d2c,{'href':_0x47d8d3(0x234)+'www.face'+_0x47d8d3(0x270)+_0x47d8d3(0x258)+_0x24cf5a(0x268),'children':_0x329dc6(_0x1c1254,{'alt':_0x5e3f19[_0x47d8d3(0x1f1)],'height':'36','src':_0x47d8d3(0x234)+_0x47d8d3(0x1f2)+_0x47d8d3(0x210)+'ic/faceb'+_0x24cf5a(0x275)+_0x24cf5a(0x185),'width':'36'})})}),_0x329dc6(_0x3991bc,{'children':_0x329dc6(_0x4c5d2c,{'href':_0x24cf5a(0x234)+_0x47d8d3(0x1c1)+_0x47d8d3(0x202)+_0x47d8d3(0x1b1)+_0x47d8d3(0x23a),'children':_0x329dc6(_0x1c1254,{'alt':_0x47d8d3(0x1c5)+'m','height':'36','src':_0x5e3f19[_0x24cf5a(0x1f4)],'width':'36'})})})]})})})]})})]})})]});},z={'user':{'id':_0x418604(0x1cf)+_0x51e42a(0x25a)+'ePP6BAW6'+_0x418604(0x1cb),'name':_0x418604(0x20d)+_0x51e42a(0x1fc),'email':_0x51e42a(0x238)+_0x418604(0x279)+_0x51e42a(0x206),'emailVerified':!0x0,'image':_0x51e42a(0x234)+_0x418604(0x1b2)+'leuserco'+_0x418604(0x24e)+_0x418604(0x285)+'ocKbkCAM'+_0x418604(0x180)+_0x51e42a(0x213)+_0x51e42a(0x1fa)+_0x51e42a(0x1be)+_0x51e42a(0x172)+'eZ5f=s96'+'-c','createdAt':_0x418604(0x28a)+'22T22:54'+':40.260Z','updatedAt':_0x51e42a(0x28a)+_0x418604(0x1a9)+':40.260Z','firstname':_0x418604(0x20d),'lastname':_0x418604(0x261)},'order':{'id':_0x51e42a(0x18f)+_0x51e42a(0x1e9)+_0x418604(0x162)+'r','referenceId':'PH6LD6','token':'VAE9TX','expiresAt':_0x51e42a(0x177)+_0x51e42a(0x1db)+':09.689Z','items':[{'translations':[{'locale':'en','title':_0x51e42a(0x249)+_0x51e42a(0x1f5),'subtitle':_0x418604(0x184)+'vel:\x20Med'+_0x418604(0x23e)},{'locale':'pl','title':_0x51e42a(0x276),'subtitle':_0x51e42a(0x184)+_0x51e42a(0x244)+_0x418604(0x23e)}],'rawData':{'productId':'cm8kudyq'+'q0006ity'+_0x51e42a(0x1e6)+'u','quantity':0x6,'modifierGroups':[{'id':'cm8kuonh'+_0x51e42a(0x19b)+_0x418604(0x1fb)+'c','modifiers':[{'id':'cm8kudyq'+'q000dity'+'dq25s2n2'+'e','quantity':0x1}]}]},'unitPrice':0x27,'image':{'id':_0x418604(0x1b3)+_0x418604(0x264)+_0x51e42a(0x194)+'b','url':_0x51e42a(0x234)+_0x418604(0x1da)+_0x418604(0x1aa)+_0x418604(0x1c4)+_0x418604(0x236)+'cel-stor'+_0x51e42a(0x19e)+'Masala%2'+'0Dosa-b0'+'tr9uWZqm'+_0x418604(0x1fe)+_0x51e42a(0x25d)+'5eCw.png','mimeType':_0x51e42a(0x209)+'g','size':0x15d155,'filename':_0x418604(0x249)+_0x51e42a(0x22b)},'totalPrice':0xea,'quantity':0x6,'productSnapshotId':'cm8kuopt'+_0x418604(0x289)+_0x418604(0x21e)+'y'},{'translations':[{'locale':'en','title':_0x51e42a(0x249)+'osa','subtitle':_0x51e42a(0x184)+_0x418604(0x244)+_0x51e42a(0x23e)},{'locale':'pl','title':_0x51e42a(0x276),'subtitle':_0x51e42a(0x184)+_0x51e42a(0x244)+_0x51e42a(0x23e)}],'rawData':{'productId':_0x51e42a(0x273)+_0x418604(0x1c2)+_0x51e42a(0x1e6)+'u','quantity':0x6,'modifierGroups':[{'id':_0x418604(0x1c6)+_0x51e42a(0x19b)+_0x418604(0x1fb)+'c','modifiers':[{'id':_0x418604(0x273)+_0x51e42a(0x22d)+_0x418604(0x262)+'e','quantity':0x1}]}]},'unitPrice':0x27,'image':{'id':_0x51e42a(0x1b3)+'m0000l70'+'3ocs7snf'+'b','url':_0x418604(0x234)+_0x51e42a(0x1da)+_0x51e42a(0x1aa)+_0x418604(0x1c4)+'blob.ver'+'cel-stor'+_0x418604(0x19e)+_0x51e42a(0x1d5)+_0x51e42a(0x266)+_0x418604(0x250)+_0x418604(0x1fe)+'0fzqkM6z'+_0x51e42a(0x200),'mimeType':_0x51e42a(0x209)+'g','size':0x15d155,'filename':'Masala\x20D'+_0x418604(0x22b)},'totalPrice':0xea,'quantity':0x6,'productSnapshotId':_0x51e42a(0x23b)+'y0006ji0'+'35n7w5ib'+'y'}],'shippingMethod':{'id':'cm8kuqmk'+_0x51e42a(0x1ee)+_0x418604(0x16a)+'y','title':_0x418604(0x25b)+_0x418604(0x1a3),'providerName':'Wolt\x20Cou'+_0x51e42a(0x28d),'requireDateOfDelivery':!0x0,'shippingZones':[{'id':_0x51e42a(0x1ef)+_0x51e42a(0x1cc)+_0x418604(0x1e7)+'h','title':_0x51e42a(0x17d),'distanceUpto':0x7,'price':0x1,'minimumOrderAmount':0x3c,'eta':_0x51e42a(0x1e8)}],'createdAt':'2025-03-'+'22T23:40'+_0x51e42a(0x228),'updatedAt':_0x51e42a(0x28a)+_0x418604(0x246)+_0x51e42a(0x165)},'acceptedAt':null,'dispatchedAt':null,'readyForDispatchAt':null,'completedAt':null,'cancelledAt':null,'shippingAddress':{'id':'cm94wbpb'+_0x418604(0x1bb)+_0x418604(0x274)+'n','firstname':_0x418604(0x16e),'lastname':_0x418604(0x18b),'phone':_0x51e42a(0x21b)+'5862','addressLineOne':_0x51e42a(0x188)+'wa\x20Lema\x20'+'28','doorNumber':'54','addressLineTwo':null,'zipCode':_0x418604(0x25e),'city':_0x51e42a(0x267),'country':'PL','placeId':_0x51e42a(0x1ae)+_0x418604(0x1d2)+_0x51e42a(0x1f0)+_0x51e42a(0x255),'deliveryInstructions':'4th\x20floo'+_0x418604(0x192)},'fulfilmentMethod':_0x418604(0x17a),'currency':'PLN','payment':{'id':_0x51e42a(0x18f)+_0x418604(0x1d3)+_0x418604(0x281)+'i','method':_0x418604(0x24f),'provider':_0x51e42a(0x211),'status':_0x418604(0x254)+'d','shipping':0x1,'subtotal':0xea,'total':0xeb,'discount':0x0,'currency':_0x418604(0x1a5)},'status':'pending'},'organization':{'id':_0x418604(0x17f)+_0x418604(0x247)+'3b59mdy7'+'b','name':_0x51e42a(0x280)+_0x418604(0x253),'phone':_0x418604(0x21b)+_0x51e42a(0x1dc),'email':'contact@'+_0x418604(0x24c)+'stro.pl','createdAt':'2025-03-'+_0x51e42a(0x259)+_0x51e42a(0x160),'legalEntityId':null,'address':{'id':_0x51e42a(0x17f)+'r0002lg0'+_0x51e42a(0x217)+'t','firstname':null,'lastname':null,'phone':null,'addressLineOne':'Plac\x20Boh'+'aterów\x20G'+'etta\x202','doorNumber':null,'addressLineTwo':'3','zipCode':'33-332','city':_0x418604(0x267),'country':'PL','placeId':_0x418604(0x176)+_0x51e42a(0x237)+_0x51e42a(0x1b5)+_0x51e42a(0x218),'deliveryInstructions':null},'configuration':{'id':'cm8kthfd'+_0x51e42a(0x1a0)+_0x51e42a(0x1a2)+'n','hostname':_0x418604(0x276),'countriesShipping':['us'],'stripeAccountId':_0x418604(0x276),'enableHostCheckout':!0x1,'enableHostTracking':!0x1,'isAcceptingOrders':!0x1,'isAcceptingReservations':!0x1,'defaultLocale':'en','supportedLocales':['en','pl'],'defaultCurrency':_0x418604(0x1a5),'createdAt':_0x418604(0x28a)+_0x418604(0x259)+_0x51e42a(0x160)},'logo':_0x418604(0x234)+_0x418604(0x1da)+_0x418604(0x1aa)+_0x418604(0x1c4)+_0x51e42a(0x236)+_0x418604(0x19c)+_0x51e42a(0x19e)+'logo-zeJ'+_0x51e42a(0x163)+_0x51e42a(0x23f)+_0x418604(0x1c0)+_0x51e42a(0x216),'logoFile':{'id':_0x418604(0x181)+_0x51e42a(0x1c3)+_0x418604(0x203)+'k','url':'https://'+_0x418604(0x1da)+'qnepss3d'+_0x418604(0x1c4)+_0x418604(0x236)+_0x51e42a(0x19c)+_0x418604(0x19e)+'logo-zeJ'+'ymFRMFCI'+_0x418604(0x23f)+_0x51e42a(0x1c0)+_0x51e42a(0x216),'mimeType':_0x51e42a(0x209)+'g','size':0x193641,'filename':_0x51e42a(0x170)}}};j[_0x51e42a(0x195)+_0x418604(0x1d4)]=z;function _0x422b(){const _0xf3199b=['BgqGDgv4Dc0','BsbWDc01','AwjVBgqGBwi','ntaGCc02ig0','zhvOCtb5DMu','zhbKDMnRmNq','otbTAw4','BtaWmdbPDhG','nNb4xsbMB24','zgvMyxvSDem','Dgv4Dc14Bca','lxnTihjVDw4','zdaWmgLPDhK','y204A3vXBwS','sxzNoe8Yuhe','AhnvCg8','CMvHy3qUzw0','B2nHBgu','ChD3BLK','B3nH','BwiTnG','y2vUDgvY','vgHPCYbPCYa','nNb4xsbHBgK','qMLxBLLWq1K','mZjQAtrIEM0','ifnOywPP','igLZigjLAw4','qLrqtvv4nhG','zwvUihjLy2u','nwvdDY5WBMC','zwLWDcbMCM8','ywDYyw0Uy28','mZu2z3DJBgy','ChHDihrLEhq','ChHDihCTwZu','lNbS','AwjVBgqGDgu','mJuYDwvQsNzi','Aw1Hz2uVCg4','ANHOthO','mtaW','BwfW','qwjOAxnOzwS','CMf5ltuWiha','r1v4y08','ywLSl3n0yxq','C3rYAxbL','ywrKCMvZC0W','tNHJBtfHwxq','C2fUCW','Aw9UCW','qK9QlNbUzW','mZuWAwPPywW','u1nb','DY1BodaLxq','BgWGAc1Bndq','kZq4ntCWmtm','lwDYyxKTnta','AwmVAw5ZDge','mZvUn3C1Awi','DgvYigjNlwC','ywLSigXVz28','zvDVzeO','zM9UDc1IB2W','zgvMyxvSDeW','BxKTwZHWEf0','mZKXodGWohfty3jeEq','rMfJzwjVB2S','ig1Ilta','oJiZlJeWmvO','wZrWEf0GDgu','vfzszgS','B3nHlNbUzW','Dg9W','CtaWmgrPDhK','ww91CIbVCMq','y29UzMLNDxi','AxzLzcbHBMq','z24TyM90Dg8','zM9UDc1Zzw0','zM9YBwf0','Ahr0Chm6lY8','u2HPChbPBMC','yMXVyI52zxi','uMTsyKzRy1i','A29UDgfRDea','Dc1Zzw1PyM8','yMLZDhjVlW','y204A3vVChq','mtiWC2nqDLLx','z3jHBs1SB2C','AxvT','s1bSDMP4ww0','vhjHy2SGww8','mte0ntm1uvv2v2Dd','ltaGChqTmq','s2jyBNy','DMvSoIbnzwq','yMCTz3jHEs0','mJjumJm6nda','CtaWmdfSzZa','yxKTntaW','twfZywXHieq','zg9VCK51Bwi','DxiGt3jKzxi','BwfKCMfZyMK','nZCZnty4CfHft0T6','BNrLBNqUy28','yMXPAW','Dhi5DvDACw0','BNvTzxjPyW','yxrPB24','Axn0CM8','C3vJy2vLzgu','BLDn','DgL0Bgu','CMf5ltiWma','l21HzhjHC0i','mJjumJm6mdu','mg1Kqw5TnvK','rxHWCMvZCYa','Ag9ZDg5HBwu','mgz6CwTnnNO','mZeTntCX','Es05mda','ihrLEhqTwZe','u2HHAMK','zheYnxmYBJi','CMf5ltiWmca','BtaWmdbSnZa','mtrQA2DxBNm','merVC2eTyJa','s3jHA8oZDW','Axn0CM8V','ihrLEhqTz3i','CxvHBNrPDhK','ic8G','BgfZDg5HBwu','uhjVzhvJDa','C3vIDgL0Bgu','EhqTwZe2ChG','yM9VAY5JB20','DY1BnJaLxq','t3jKzxiGu3u','y204A3vKExe','mwfRDxfOnZC','B29RlwXVz28','BNvSBa','ltiGChGTnsa','zwrPDw0GChK','ywjOAxnOzwS','CMLNAhq','mhb4xq','zcbTyI0W','sgKG','zxrWB2O','zgvKlw1Kihq','twfKCMfZiei','mxrOC25Qn3u','CgHVBMu','mtmZmZCYnJjJCKXcquy','Bwf4lxCTwZy','Bs9Hl0fdzZG','sM1pqwi','qK1bzxi','wM1qDxa','EtaWmdzQAta','mJaYns0WmY0','DxjYzw5JEq','zw4Tr0i','CMLLCG','BY5WBMC','BxGTwZrWEf0','Cc0Wig10lta','ugHVBMu','zxiGAgfZigi','oJe0lJi3mvO','ig15ltq','mwL2owSYBxe','Ew1guK1gq0K','Dg9mB2nHBgu','oJm1lJmXovO','zY1BmJrWEf0','Bg9NB0zPBgu','zgLZy291BNq','ntaGzM9UDc0','zgfYngeXCg8','Dgv4Dc1NCMe','ota0otmZEM5KEeLv','zxH0lxDOAxq','s2XHDwrPyq','q2fTCgfPz24','Bg9NBY5WBMC','nNb4xsbSzwe','Df9nx3vPsgG','Ew91CIbYzwm','Befyyvq','BKTgrKe','q2HjsMyTBNm','mJaYns0Wnc0','y3vYCMvUy3K','DgvYigLUBgK','zgvSAxzLCNK','mtaWjq','Es02mdaGBwi','wM9UzsaX','Es03mda','y204A3rOzMq','ve52twL6ALG','y204A3rTDtG','C2HPChbPBMC','DgfIBgu','u3bPy2uGtgu','lNbUzW','ltaGBxqTma','Aw5Lt25L','u3rHBMLZXyjH','DY1MDwXS','BxqTna','u21VDgvY','DY1BndaLxsa','igzVBNqTyM8','Dgv4Dc1Jzw4','y205nhDICgi','vg90ywW6','Dg90ywW','CIaTie1HAg8','mdbWEf0GCM8','m29JCZDZBMy','uhjLDMLLD1a','BxGTyxv0BYa','DhjHBNnSyxq','mJq1ntm0mdbqsvPnv3y','mI1KAwDPDa','ywrKCMvZCW','DJaWmdjQAta','y2vSlxn0B3i','EMLWq29Kzq','ywDLlMnVBs8','ntG3nJzkywTQDeS','CJaWmdnSzZa','wu9PsNu','m2DOz3mYnJi','rgvSAxzLCNK','BgvUz3rO','ueXo','C2vKlG','Dw5PDfbYAwm','odaWig15lta','mJjumJi6ntq','Cw5LChnZm2q','igzLzq','uwfUvey','BwiTma','q2HjsNjrzMq','rMnJt1O','zgLUzY1BmJq','Bs9TywrYyxm','BgGZlMDVB2C','y204A3vLzta','zMLYC3rUyw0','mJfNDe9IrLm','tNvTyMvYrM8','zsbWEc02','zw4Tvvm','EhqTz3jHEs0','xsbSzwfKAw4','BtaWmdDPDhG','uMvHy3qGrw0','Es01mdaGBwi','BvuTn2ffmKy','qwrKCMvZCW','mMfMm1nbv3y','D3D3lMLUC3q','CtaWmdzPDhK','otaWmdvSzZa','lNb1yMXPyY4','sw5ZDgfNCMe','y204A3vVBMG','y2L0Eq','BMfTzq','EgWGChqTmIa','uMn0EhK','AgrIyunQquO','zdaWmgPPDhK','yxGTDY1BnJa','CM91BMrLzc0','vKqWt0O1mMy','ChiTwZHWEf0','BMuTyMXVy2S','AdLwyuzRy1i','BtaWmdHPDhG','CM9WCW','twfZywXHjti','zYbWCM9Jzxm','yM9YzgvYlwC','DxjS','ltiGDgv4Dc0','EJnSAxv5yxq','mdDumda6mJa','ntG2mG','rgf0zvn0CMK','rxL1r0O','BwiTmcbTDc0','Cgf5BwvUDa','D3D3lMzHy2u'];_0x422b=function(){return _0xf3199b;};return _0x422b();}export default j;export{j as OrderConfirmationEmail};
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Body as W,Column as n,Container as D,Head as Y,Heading as E,Hr as T,Html as J,Img as r,Link as c,Preview as K,Row as o,Section as s,Tailwind as U,Text as l}from"../../../core/email/components";const m=(h,i="PLN",a="en-US")=>new Intl.NumberFormat(a,{style:"currency",currency:i}).format(h),j=({user:h,organization:i,order:a})=>{var u,p,g,b,y,f,x,v,N,w,k,q,A,P,C,L;const F=`This is your receipt from ${i.name}`,O=new Date().toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"numeric"}),B=((u=a.payment)===null||u===void 0?void 0:u.shipping)||0,_=((p=a.payment)===null||p===void 0?void 0:p.discount)||0,Z=((g=a.payment)===null||g===void 0?void 0:g.total)||0,R=`https://${i.configuration.hostname}/account/orders/${a.id}`;return t(J,{children:[e(Y,{}),e(K,{children:F}),e(U,{children:t(W,{className:"bg-gray-50 font-sans",children:[t(D,{className:"bg-gray-50 p-6 max-w-[600px]",children:[e(s,{className:"mb-6",children:t(o,{children:[e(n,{className:"w-[80%]",children:e(r,{alt:"React Email logo",height:"100",src:(b=i.logoFile)===null||b===void 0?void 0:b.url,className:"rounded-lg"})}),e(n,{align:"right",children:t(o,{align:"right",children:[e(n,{children:e(c,{href:"https://www.instagram.com/madrasbistro/",children:e(r,{alt:"Instagram",className:"mx-[4px]",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})}),e(n,{children:e(c,{href:"https://www.facebook.com/madrasBistro/",children:e(r,{alt:"Facebook",className:"mx-[4px]",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})})]})})]})}),t(s,{children:[t(E,{className:"text-3xl font-bold text-gray-800 mb-0",children:["Hi ",h.firstname,","]}),e(l,{className:"text-gray-600 mb-2 text-lg",children:"Your order has been received and is being processed."})]}),e(s,{className:"mb-0",children:e(c,{href:R,className:"bg-gray-900 text-sm rounded-md text-white font-medium py-2 px-5 text-center inline-block my-4",children:"Track Your Order"})})]}),t(D,{className:"mx-auto max-w-[600px] rounded-xl bg-white px-6",children:[e(s,{className:"mb-6",children:t(o,{children:[t(n,{className:"w-[60%]",children:[e(l,{className:"text-gray-500 mb-0",children:"Shipping details"}),t(l,{className:"font-semibold text-gray-800 my-0",children:[(y=a.shippingAddress)===null||y===void 0?void 0:y.firstname," ",(f=a.shippingAddress)===null||f===void 0?void 0:f.lastname]}),t(l,{className:"font-semibold text-gray-800 my-0",children:[(x=a.shippingAddress)===null||x===void 0?void 0:x.addressLineOne," ",((v=a.shippingAddress)===null||v===void 0?void 0:v.doorNumber)&&` / ${(N=a.shippingAddress)===null||N===void 0?void 0:N.doorNumber}`,e("br",{}),(w=a.shippingAddress)===null||w===void 0?void 0:w.city," ",(k=a.shippingAddress)===null||k===void 0?void 0:k.zipCode]}),e(l,{className:"text-gray-500 mb-0",children:"Phone"}),e(l,{className:"font-semibold text-gray-800 my-0",children:(q=a.shippingAddress)===null||q===void 0?void 0:q.phone})]}),e(n,{className:"w-[40%] p-0 mt-0",align:"right",valign:"top",children:e(l,{className:"text-gray-500 mb-0 pt-1",children:O})})]})}),e(l,{className:"text-gray-500 mb-0",children:"Order Summary"}),e(T,{className:"border-gray-200 mb-0"}),e(s,{children:a.items.map((H,I)=>{var M,S;const d=H;return e("table",{width:"100%",cellPadding:0,cellSpacing:0,border:0,className:I===a.items.length-1?"mb-0":"mb-4",children:t("tr",{children:[t("td",{valign:"top",children:[t(l,{className:"font-semibold mb-0",children:[((M=d.translations[0])===null||M===void 0?void 0:M.title)||"Product"," (",((S=d.translations[0])===null||S===void 0?void 0:S.subtitle)||"",")"]}),t(l,{className:"text-gray-600 mb-0 mt-0",children:["Quantity: ",d.quantity]})]}),e("td",{align:"right",valign:"top",children:e(l,{className:"font-semibold",children:m(d.unitPrice*d.quantity,i.configuration.defaultCurrency,i.configuration.defaultLocale)})})]})},I)})}),e(T,{className:"border-gray-200 mt-4"}),e(s,{children:t("table",{width:"100%",cellPadding:0,cellSpacing:0,border:0,children:[t("tr",{children:[e("td",{children:e(l,{className:"text-gray-700",children:"Delivery fee"})}),e("td",{align:"right",children:e(l,{className:"text-gray-700",children:m(B,i.configuration.defaultCurrency,i.configuration.defaultLocale)})})]}),_>0&&t("tr",{children:[e("td",{children:e(l,{className:"text-gray-700",children:"Campaign"})}),e("td",{align:"right",children:t(l,{className:"text-gray-700",children:["-",m(_,i.configuration.defaultCurrency,i.configuration.defaultLocale)]})})]})]})}),e(T,{className:"border-gray-200"}),e(s,{className:"mb-6",children:e("table",{width:"100%",cellPadding:0,cellSpacing:0,border:0,children:t("tr",{children:[e("td",{children:e(l,{className:"text-xl font-bold mb-0",children:"Total:"})}),e("td",{align:"right",children:e(l,{className:"text-xl font-bold mb-0",children:m(Z,i.configuration.defaultCurrency,i.configuration.defaultLocale)})})]})})})]}),e(s,{className:"text-center bg-gray-50 py-5",children:t("table",{className:"w-full",children:[e("tr",{className:"w-full",children:e("td",{align:"center",children:((A=i.logoFile)===null||A===void 0?void 0:A.url)&&e(r,{alt:"React Email logo",height:"100",src:i.logoFile.url,className:"rounded-lg"})})}),e("tr",{className:"w-full",children:t("td",{align:"center",children:[e(l,{className:"my-[8px] text-[16px] font-semibold text-xl pt-2 text-gray-900",children:i.name}),t(l,{className:"my-[8px] text-[16px] leading-[24px] text-gray-500",children:[(P=i.address)===null||P===void 0?void 0:P.addressLineOne,","," ",(C=i.address)===null||C===void 0?void 0:C.zipCode," ",(L=i.address)===null||L===void 0?void 0:L.city]}),e(l,{className:"mb-0 mt-[4px] text-[16px] leading-[24px] text-gray-500",children:i.phone})]})}),e("tr",{children:e("td",{align:"center",children:t(o,{className:"table-cell h-[44px] w-[56px] align-bottom pt-5",children:[e(n,{className:"pr-[8px]",children:e(c,{href:"https://www.facebook.com/madrasBistro/",children:e(r,{alt:"Facebook",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})}),e(n,{children:e(c,{href:"https://www.instagram.com/madrasbistro/",children:e(r,{alt:"Instagram",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})})]})})})]})})]})})]})},z={user:{id:"VD0OJ52f0mdAnm5YePP6BAW6hdbaCjAJ",name:"Abhishek Shaji",email:"kontakt@abhishek.pl",emailVerified:!0,image:"https://lh3.googleusercontent.com/a/ACg8ocKbkCAMTNvMizjXNxcm1aYtBiWnYpCYmU-7aE2Ft_M_uiHheZ5f=s96-c",createdAt:"2025-03-22T22:54:40.260Z",updatedAt:"2025-03-22T22:54:40.260Z",firstname:"Abhishek",lastname:"Shaji"},order:{id:"cm94wbpbm0000itx1iv9k2mqr",referenceId:"PH6LD6",token:"VAE9TX",expiresAt:"2025-04-07T00:20:09.689Z",items:[{translations:[{locale:"en",title:"Masala Dosa",subtitle:"Spice Level: Medium"},{locale:"pl",title:"null",subtitle:"Spice Level: Medium"}],rawData:{productId:"cm8kudyqq0006ityduhq0yveu",quantity:6,modifierGroups:[{id:"cm8kuonhv0002ji032ji4bzmc",modifiers:[{id:"cm8kudyqq000ditydq25s2n2e",quantity:1}]}]},unitPrice:39,image:{id:"cm8kuee0m0000l703ocs7snfb",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/Masala%20Dosa-b0tr9uWZqmBTPMUx4x0fzqkM6z5eCw.png",mimeType:"image/png",size:1429845,filename:"Masala Dosa.png"},totalPrice:234,quantity:6,productSnapshotId:"cm8kuopty0006ji035n7w5iby"},{translations:[{locale:"en",title:"Masala Dosa",subtitle:"Spice Level: Medium"},{locale:"pl",title:"null",subtitle:"Spice Level: Medium"}],rawData:{productId:"cm8kudyqq0006ityduhq0yveu",quantity:6,modifierGroups:[{id:"cm8kuonhv0002ji032ji4bzmc",modifiers:[{id:"cm8kudyqq000ditydq25s2n2e",quantity:1}]}]},unitPrice:39,image:{id:"cm8kuee0m0000l703ocs7snfb",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/Masala%20Dosa-b0tr9uWZqmBTPMUx4x0fzqkM6z5eCw.png",mimeType:"image/png",size:1429845,filename:"Masala Dosa.png"},totalPrice:234,quantity:6,productSnapshotId:"cm8kuopty0006ji035n7w5iby"}],shippingMethod:{id:"cm8kuqmkd000iitydar4a1poy",title:"Express Delivery",providerName:"Wolt Courier",requireDateOfDelivery:!0,shippingZones:[{id:"cm8kuqmkd000jitydpdvck2th",title:"Zone 1",distanceUpto:7,price:1,minimumOrderAmount:60,eta:"90min"}],createdAt:"2025-03-22T23:40:23.101Z",updatedAt:"2025-03-22T23:40:35.319Z"},acceptedAt:null,dispatchedAt:null,readyForDispatchAt:null,completedAt:null,cancelledAt:null,shippingAddress:{id:"cm94wbpbm0007itx1akuqh77n",firstname:"Klaudia",lastname:"Smoter",phone:"+48570135862",addressLineOne:"Stanis\u0142awa Lema 28",doorNumber:"54",addressLineTwo:null,zipCode:"31-571",city:"Krak\xF3w",country:"PL",placeId:"ChIJrQfdh9VaFkcRIvg8O2PqnWM",deliveryInstructions:"4th floor - Maho"},fulfilmentMethod:"delivery",currency:"PLN",payment:{id:"cm94wbpbm0008itx1thsnj7ui",method:"blik",provider:"stripe",status:"succeeded",shipping:1,subtotal:234,total:235,discount:0,currency:"PLN"},status:"pending"},organization:{id:"cm8kthfdq0001lg03b59mdy7b",name:"Madras Bistro",phone:"+48570135862",email:"contact@madrasbistro.pl",createdAt:"2025-03-22T23:05:14.271Z",legalEntityId:null,address:{id:"cm8kthfdr0002lg0350ijialt",firstname:null,lastname:null,phone:null,addressLineOne:"Plac Bohater\xF3w Getta 2",doorNumber:null,addressLineTwo:"3",zipCode:"33-332",city:"Krak\xF3w",country:"PL",placeId:"ChIJf-nsRkRbFkcR21gtObFSSSA",deliveryInstructions:null},configuration:{id:"cm8kthfdr0003lg03ghgs262n",hostname:"null",countriesShipping:["us"],stripeAccountId:"null",enableHostCheckout:!1,enableHostTracking:!1,isAcceptingOrders:!1,isAcceptingReservations:!1,defaultLocale:"en",supportedLocales:["en","pl"],defaultCurrency:"PLN",createdAt:"2025-03-22T23:05:14.271Z"},logo:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",logoFile:{id:"cm8ktmu890005lg0356gwclfk",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",mimeType:"image/png",size:1652289,filename:"logo.png"}}};j.PreviewProps=z;export default j;export{j as OrderConfirmationEmail};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x389527=_0x3e69,_0x5129f2=_0x3e69;(function(_0x485c30,_0xc33c8b){const _0x457049=_0x3e69,_0x37f19a=_0x3e69,_0x34f5a6=_0x485c30();while(!![]){try{const _0x46fd12=-parseInt(_0x457049(0x2bc))/0x1*(parseInt(_0x457049(0x2e9))/0x2)+-parseInt(_0x37f19a(0x2fd))/0x3*(parseInt(_0x457049(0x25b))/0x4)+parseInt(_0x37f19a(0x24b))/0x5*(parseInt(_0x37f19a(0x1f8))/0x6)+parseInt(_0x37f19a(0x265))/0x7+parseInt(_0x457049(0x1e2))/0x8+-parseInt(_0x37f19a(0x1dd))/0x9+parseInt(_0x457049(0x2ae))/0xa*(parseInt(_0x457049(0x232))/0xb);if(_0x46fd12===_0xc33c8b)break;else _0x34f5a6['push'](_0x34f5a6['shift']());}catch(_0x533d09){_0x34f5a6['push'](_0x34f5a6['shift']());}}}(_0x1dc8,0x2b199));function _0x1dc8(){const _0x495cf8=['u21VDgvY','wuXIwu0','otaWihrLEhq','BgGZlMDVB2C','zdaWmgPPDhK','zgvMyxvSDeW','Es02mdaGBwi','mZjQAtrIEM0','rgvSAxzLCNK','C3rYBY5WBa','oJe0lJi3mvO','DY1BnJaLxq','tNvTyMvYrM8','EhqTwZe2ChG','DgfIBguTy2u','u3bPy2uGtgu','Ahr0Chm6lY8','BwiTma','ugf5BwvUDdO','BtaWmdbPDhG','DY1BndaLxsa','uhjLDMLLD1a','Bg9NB0zPBgu','zw1Z','EKDmy1u','oJm1lJmXovO','B2nlyMTdqu0','C3vIDgL0Bgu','Axn0CM8V','otaWmdvSzZa','DxjS','svDlAw0','mZvUn3C1Awi','vMLLDYbpCMq','CMLLCG','mtaW','kZq4ntCWmtm','EJnSAxv5yxq','Bs9TywrYyxm','C3vJy2vLzgu','ChHDihrLEhq','DgLVBNm','DMvSoIbnzwq','ihjLy2vPDMu','y204A3rTDtG','uMTsyKzRy1i','u2HHAMK','y204A3vVChq','qMLxBLLWq1K','nJbzrfvYvhC','AwmVzMfJzwi','q2fTCgfPz24','nhrOigzSB28','ic8G','CMf5ltiWmca','mg1Kqw5TnvK','y2L0Eq','ig15ltq','iefKzhjLC3m','Axn0CM8','CxvHBNrPDhK','ieLUzM9YBwe','ig1Ilta','mxvlB0vYyG','sw5ZDgfNCMe','zwrPDw0GChK','Es01','oJa5lJy4ovO','CIaJ','CgvUzgLUzW','BNvTzxjPyW','Ew1guK1gq0K','Ag9ZDg5HBwu','s1bSDMP4ww0','ueG2teq2','Dgv4Dc14Bca','BgfZDg5HBwu','y3HwrLe','t3jKzxiGrge','DgLVBG','yxrLCSoZDYbh','EgWGChqTmIa','igzVBNqTyM8','twfKCMfZiei','ywrKCMvZC0W','nNb4xsbHBgK','nNb4xsbSzwe','qwrKCMvZCW','DgvYigjNlwC','vg90ywW6','igjNlxDOAxq','CgHVBMu','zM9UDc1Zzw0','B3nHlNbUzW','zvbqnKjbvZy','ntG2mG','twfZywXHjti','yMXVyI52zxi','C3rYAxbL','yxKTntaW','zY1BmJrWEf0','BMuTyMXVy2S','zdaWmgLPDhK','ywrKCMvZCW','zgvMyxvSDem','Bg9NBY5WBMC','BY5WBMC','mJaYns0WmY0','mJK0nJrlBMfutLi','ywDLlMnVBs8','ugXHyYbcB2G','Cgf5BwvUDa','BgvUz3rO','DgfIBgu','CtaWmdzPDhK','oJqWlJi2mfO','vKqWt0O1mMy','D2eGtgvTysa','mhb4xq','BNrLBNqUy28','CJaWmdjSzZa','Dgu6ia','DJaWmdjQAta','BxKTwZHWEf0','ntaGCc02ig0','lNbS','BxqTna','y204A3vKExe','mtq3m2DWqMLgCq','EhfWEem','mJaYns0Wnc0','ihrLEhqTwZe','zuLK','y204A3vXBwS','zM9YBwf0','s3jHA8oZDW','CMLNAhq','igXVz28','y2vSlxn0B3i','odaWig15lta','BwiTmIbTDc0','yM9VAY5JB20','m2i1ow1KEtC','ntaGzM9UDc0','B29RlwXVz28','sw5ZDhj1y3q','zgvKlw1Kihq','igzLzq','qLrqtvv4nhG','Dw5PDfbYAwm','vg9mqxa','q2HjsNjrzMq','Bs9Hl0fdzZG','mtK1odu4mhn2yMvlyq','zM9YihLVDxi','CM1HDa','CMvHy3qUzw0','z3jHEs04mda','mteYmJK3nMTPz3DVBa','zgvSAxzLCNK','ifnOywPP','CJaWmdnSzZa','zcbHig5LDYa','Dg9W','EMLWq29Kzq','tLzqBfK','mZuWAwPPywW','mJjumJm6mdu','yM9YzgvYlwC','qK9QlNbUzW','AdLwyuzRy1i','yxrPB24','Dgv4Dc1NCMe','BNvSBa','CIaTie1HAg8','Cw5LChnZm2q','ueXo','mJjumJi6ntq','mI1KAwDPDa','mwL2owSYBxe','mJCWnZe0u0HcwuTx','BxGTwZrWEf0','B2nHBgu','ww91igHHDMu','t3jKzxiGsuq','BxGTyxv0BYa','Bg9NBY16zuO','BvuTn2ffmKy','vKffovry','nNb4xsbMB24','zM9UDc1IB2W','Dhi5DvDACw0','q2HjsMyTBNm','twfZywXHieq','v29SDcbdB3u','Aw9UCW','zheYnxmYBJi','Aw5Lt25L','q3vZDg9Tzxi','D3D3lMLUC3q','y3vYCMvUy3K','z3jHBs1SB2C','zhvOCtb5DMu','y2vUDgvY','yMCTz3jHEs0','z24TyM90Dg8','zgfYngeXCg8','DhjHBNnSyxq','Es03mda','y205nhDICgi','BtaWmdHPDhG','ltiGChGTnsa','m29JCZDZBMy','lNb1yMXPyY4','zcbTyI0W','mxrOC25Qn3u','zw1HAwW','yMLZDhjVlW','y204A3vVBMG','C2fUCW','q3PmCeC','ihrLEhqTz3i','CtaWmdfSzZa','ywDYyw0Uy28','Dgv4Dc1Jzw4','Aw1Hz2uVCg4','ChHDihCTwZu','mMfMm1nbv3y','zgLUzY1BmJq','rxHWCMvZCYa','EtaWmdzQAta','zw4Tvvm','ChiTwZHWEf0','DY1MDwXS','lxnTihjVDw4','xsbSzwfKAw4','BtaWmdbSnZa','vLfKvNq','mtm2mJm1vKHoA0TZ','ieLUC3rYDwm','BwfKCMfZyMK','A29UDgfRDea','ywLSl3n0yxq','Dc1Zzw1PyM8','merVC2eTyJa','wZrWEf0GDgu','y204A3rOzMq','s2XHDwrPyq','DxjYzw5JEq','ugHVBMu','mJjumJm6nda','B3nH','yxGTDY1BnJa','sxzNoe8Yuhe','Ce5IEwy','mgz6CwTnnNO','CMf5ltiWma','zgLZy291BNq','zvO1zJ1Zoty','ywjOAxnOzwS','BMfTzq','AwjVBgq','tejSzMO','mtbXugr6zw4','CtaWmgrPDhK','u3rHBMLZXyjH','y204A3vLzta','Es01mdaGBwi','mZmTmZmY','Bwf4lxCTwZy','zhbKDMnRmNq','rgf0zvn0CMK','C3rHDhvZ','BwiTnG','oJiZlJeWmvO','u1nb','zMLYC3rUyw0','AxrLBxm','z2fmwgm','mJHrtwv2BM4','AwjVBgqGDgu','zg9VCK51Bwi','D3D3lMzHy2u','rMfJzwjVB2S','ltaGChqTmq','m2DOz3mYnJi','BgWGAc1Bndq','lwDYyxKTnta','uxvHBNrPDhK','nZuXodqYvwPlrLPy','CMvMzxjLBMm','Es05mda','AxvT','EhqTz3jHEs0','zxr0ysaY','BIbWBgfJzwq','l21HzhjHC0i','lNbUzW','CM9WCW','y29UzMLNDxi','qwjOAxnOzwS','C2HPChbPBMC','nwvdDY5WBMC','BgqGDgv4Dc0','ve52twL6ALG','zsbWEc02','BwfW','qwPqvgO','mtaWjq','mdbWEf0GCM8','ltaGBxqTma','Dg90ywW','CM91BMrLzc0'];_0x1dc8=function(){return _0x495cf8;};return _0x1dc8();}import{jsx as _0x39e5e4,jsxs as _0x2e8ff0,Fragment as _0x181a8d}from'react/jsx-runtime';import{Body as _0x59c105,Column as _0x5029ba,Container as _0x1957e9,Head as _0x25c631,Heading as _0x3582e7,Hr as _0x34d837,Html as _0x5acf4f,Img as _0x2def31,Link as _0x4bdbb5,Preview as _0x645e03,Row as _0x110194,Section as _0x591a29,Tailwind as _0x3dbd97,Text as _0x38e2bd}from'../../../core/email/components';const u=(_0x9f2bda,_0x3af69a=_0x389527(0x1f4),_0x27dc3b=_0x5129f2(0x22b))=>new Intl[(_0x5129f2(0x289))+(_0x389527(0x1df))](_0x27dc3b,{'style':_0x5129f2(0x20c),'currency':_0x3af69a})[_0x5129f2(0x303)](_0x9f2bda),S=({user:_0x57d44e,organization:_0x18a27e,order:_0x5e5ce8})=>{const _0x1c7f43=_0x389527,_0x5a1fe0=_0x389527,_0x225cca={'zGLcU':function(_0x1a98ce,_0x3cc2ff){return _0x1a98ce===_0x3cc2ff;},'xqpxC':_0x1c7f43(0x1e7),'CzLpG':function(_0x2a3c45,_0x288512,_0x585ac3){return _0x2a3c45(_0x288512,_0x585ac3);},'VQdVt':function(_0x266b82,_0x466c8b,_0x3ca943){return _0x266b82(_0x466c8b,_0x3ca943);},'uTzVP':_0x1c7f43(0x2a0),'YLbYM':_0x1c7f43(0x1fd)+_0x5a1fe0(0x251)+_0x1c7f43(0x279)+'unded-xl'+_0x5a1fe0(0x2d7)+_0x5a1fe0(0x275),'pNbyf':_0x1c7f43(0x1ec)+_0x5a1fe0(0x2b3)+_0x1c7f43(0x1d0)+'2','NkYVQ':'font-sem'+_0x5a1fe0(0x25c)+_0x1c7f43(0x269)+_0x1c7f43(0x1cf),'cxVFQ':function(_0x3b36d6,_0x2115c9){return _0x3b36d6===_0x2115c9;},'ToLAp':function(_0x36108e,_0x2a6b51,_0x3c270c,_0x9226ab){return _0x36108e(_0x2a6b51,_0x3c270c,_0x9226ab);},'LBlfj':'text-xl\x20'+_0x5a1fe0(0x202)+_0x5a1fe0(0x21a),'IWKim':_0x5a1fe0(0x2d6),'gaLXc':function(_0x209afe,_0x3cb9ea,_0x769420){return _0x209afe(_0x3cb9ea,_0x769420);},'AjPTj':function(_0x351563,_0x1c31ae,_0x214f62){return _0x351563(_0x1c31ae,_0x214f62);},'NVPlY':_0x5a1fe0(0x28d)+_0x5a1fe0(0x1e0)+_0x5a1fe0(0x236)+_0x1c7f43(0x2af)+_0x1c7f43(0x1d4)+_0x1c7f43(0x26d)};var _0x538339,_0x2d3a7e,_0x4590d4,_0x2cb06a,_0x2b60b5,_0x2e69f0,_0xfc96f5,_0x31c08e,_0x4f3d89,_0xda0904,_0x3a4b8c,_0x309dfc,_0x390402,_0x48233,_0x243f2c,_0x2d455a,_0x25e0ae,_0x3ea7bb;const _0x2ab3ba='New\x20orde'+_0x5a1fe0(0x2c1)+_0x5e5ce8[_0x5a1fe0(0x266)+_0x1c7f43(0x301)]+(_0x1c7f43(0x2a8)+'d'),_0x24a939=new Date()['toLocale'+_0x1c7f43(0x253)+'ng']('en-GB',{'day':_0x5a1fe0(0x1f6),'month':_0x5a1fe0(0x1f6),'year':_0x1c7f43(0x2c3)}),_0x25fb52=((_0x538339=_0x5e5ce8[_0x5a1fe0(0x2ec)])===null||_0x538339===void 0x0?void 0x0:_0x538339[_0x1c7f43(0x271)])||0x0,_0x1b192f=((_0x2d3a7e=_0x5e5ce8['payment'])===null||_0x2d3a7e===void 0x0?void 0x0:_0x2d3a7e[_0x1c7f43(0x245)])||0x0,_0x47a1dd=((_0x4590d4=_0x5e5ce8[_0x1c7f43(0x2ec)])===null||_0x4590d4===void 0x0?void 0x0:_0x4590d4[_0x5a1fe0(0x27b)])||0x0,_0x1906d2=_0x5a1fe0(0x28d)+_0x18a27e[_0x1c7f43(0x26f)+_0x1c7f43(0x1ef)][_0x5a1fe0(0x2c5)]+('/admin/o'+'rders/')+_0x5e5ce8['id'];return _0x2e8ff0(_0x5acf4f,{'children':[_0x39e5e4(_0x25c631,{}),_0x39e5e4(_0x645e03,{'children':_0x2ab3ba}),_0x39e5e4(_0x3dbd97,{'children':_0x2e8ff0(_0x59c105,{'className':_0x1c7f43(0x210)+_0x1c7f43(0x1d3)+_0x5a1fe0(0x21f),'children':[_0x2e8ff0(_0x1957e9,{'className':_0x5a1fe0(0x210)+_0x5a1fe0(0x2f9)+_0x1c7f43(0x240)+_0x5a1fe0(0x2f3),'children':[_0x39e5e4(_0x591a29,{'className':_0x5a1fe0(0x255),'children':_0x2e8ff0(_0x110194,{'children':[_0x225cca[_0x1c7f43(0x220)](_0x39e5e4,_0x5029ba,{'className':'w-[80%]','children':_0x225cca[_0x5a1fe0(0x231)](_0x39e5e4,_0x2def31,{'alt':_0x18a27e[_0x1c7f43(0x248)]+_0x5a1fe0(0x306),'height':_0x225cca['uTzVP'],'src':(_0x2cb06a=_0x18a27e[_0x1c7f43(0x293)])===null||_0x2cb06a===void 0x0?void 0x0:_0x2cb06a[_0x1c7f43(0x29b)],'className':_0x5a1fe0(0x27c)+'lg'})}),_0x39e5e4(_0x5029ba,{'align':_0x5a1fe0(0x305),'children':_0x2e8ff0(_0x110194,{'align':_0x5a1fe0(0x305),'children':[_0x39e5e4(_0x5029ba,{'children':_0x39e5e4(_0x4bdbb5,{'href':_0x1c7f43(0x28d)+_0x5a1fe0(0x20b)+_0x5a1fe0(0x223)+_0x5a1fe0(0x2a3)+'bistro/','children':_0x39e5e4(_0x2def31,{'alt':_0x1c7f43(0x2bd)+'m','className':_0x5a1fe0(0x1f9),'height':'36','src':_0x1c7f43(0x28d)+_0x1c7f43(0x1e0)+_0x5a1fe0(0x236)+'ic/insta'+_0x5a1fe0(0x20d)+_0x1c7f43(0x2e7),'width':'36'})})}),_0x39e5e4(_0x5029ba,{'children':_0x39e5e4(_0x4bdbb5,{'href':_0x5a1fe0(0x28d)+'www.face'+_0x5a1fe0(0x1d1)+'/madrasB'+_0x1c7f43(0x299),'children':_0x39e5e4(_0x2def31,{'alt':'Facebook','className':'mx-[4px]','height':'36','src':_0x1c7f43(0x28d)+_0x5a1fe0(0x1e0)+_0x5a1fe0(0x236)+_0x1c7f43(0x2af)+_0x5a1fe0(0x1d4)+_0x1c7f43(0x26d),'width':'36'})})})]})})]})}),_0x2e8ff0(_0x591a29,{'children':[_0x39e5e4(_0x3582e7,{'className':'text-3xl'+_0x1c7f43(0x2cf)+_0x5a1fe0(0x273)+_0x1c7f43(0x1e1)+_0x1c7f43(0x2bb),'children':_0x5a1fe0(0x1fb)+_0x1c7f43(0x2a8)+_0x1c7f43(0x1e6)+'order'}),_0x2e8ff0(_0x38e2bd,{'className':_0x5a1fe0(0x1f0)+_0x1c7f43(0x283)+'-2\x20text-'+'lg','children':['Order\x20#',_0x5e5ce8[_0x5a1fe0(0x266)+_0x1c7f43(0x301)],'\x20has\x20bee'+_0x5a1fe0(0x26b)+'\x20and\x20is\x20'+'waiting\x20'+_0x1c7f43(0x1de)+'\x20action.']})]}),_0x39e5e4(_0x591a29,{'className':_0x1c7f43(0x28e),'children':_0x39e5e4(_0x4bdbb5,{'href':_0x1906d2,'className':'bg-gray-'+_0x5a1fe0(0x27f)+_0x1c7f43(0x22e)+_0x5a1fe0(0x1d6)+'ext-whit'+'e\x20font-m'+_0x1c7f43(0x2be)+_0x1c7f43(0x217)+_0x5a1fe0(0x224)+'ter\x20inli'+_0x1c7f43(0x2e2)+_0x1c7f43(0x2b6),'children':_0x5a1fe0(0x29e)+'er\x20Detai'+'ls'})})]}),_0x2e8ff0(_0x1957e9,{'className':_0x225cca[_0x1c7f43(0x27e)],'children':[_0x39e5e4(_0x591a29,{'className':_0x5a1fe0(0x255),'children':_0x2e8ff0(_0x110194,{'children':[_0x2e8ff0(_0x5029ba,{'className':_0x1c7f43(0x288),'children':[_0x39e5e4(_0x38e2bd,{'className':_0x5a1fe0(0x1f0)+_0x1c7f43(0x24f)+'-0','children':_0x5a1fe0(0x20a)+_0x5a1fe0(0x2ba)+_0x1c7f43(0x2cc)}),_0x2e8ff0(_0x38e2bd,{'className':_0x1c7f43(0x2d9)+_0x1c7f43(0x25c)+_0x5a1fe0(0x269)+_0x1c7f43(0x1cf),'children':[_0x57d44e[_0x1c7f43(0x258)+'e'],'\x20',_0x57d44e[_0x5a1fe0(0x2c9)]]}),_0x39e5e4(_0x38e2bd,{'className':'font-sem'+_0x5a1fe0(0x25c)+_0x5a1fe0(0x269)+_0x1c7f43(0x1cf),'children':_0x57d44e[_0x1c7f43(0x21c)]}),_0x39e5e4(_0x34d837,{'className':_0x225cca[_0x1c7f43(0x242)]}),_0x39e5e4(_0x38e2bd,{'className':_0x1c7f43(0x1f0)+_0x5a1fe0(0x24f)+'-0','children':_0x5a1fe0(0x285)+_0x1c7f43(0x2b7)}),_0x2e8ff0(_0x38e2bd,{'className':_0x225cca['NkYVQ'],'children':[(_0x2b60b5=_0x5e5ce8[_0x5a1fe0(0x271)+_0x5a1fe0(0x2d4)])===null||_0x2b60b5===void 0x0?void 0x0:_0x2b60b5[_0x1c7f43(0x258)+'e'],'\x20',(_0x2e69f0=_0x5e5ce8[_0x5a1fe0(0x271)+'Address'])===null||_0x2e69f0===void 0x0?void 0x0:_0x2e69f0[_0x5a1fe0(0x2c9)]]}),_0x2e8ff0(_0x38e2bd,{'className':_0x1c7f43(0x2d9)+'ibold\x20te'+'xt-gray-'+_0x1c7f43(0x1cf),'children':[(_0xfc96f5=_0x5e5ce8[_0x5a1fe0(0x271)+_0x1c7f43(0x2d4)])===null||_0xfc96f5===void 0x0?void 0x0:_0xfc96f5[_0x5a1fe0(0x2d1)+_0x5a1fe0(0x209)],'\x20',((_0x31c08e=_0x5e5ce8[_0x1c7f43(0x271)+_0x5a1fe0(0x2d4)])===null||_0x31c08e===void 0x0?void 0x0:_0x31c08e['doorNumb'+'er'])&&_0x1c7f43(0x2b2)+((_0x4f3d89=_0x5e5ce8[_0x1c7f43(0x271)+_0x1c7f43(0x2d4)])===null||_0x4f3d89===void 0x0?void 0x0:_0x4f3d89[_0x1c7f43(0x25d)+'er']),_0x39e5e4('br',{}),(_0xda0904=_0x5e5ce8[_0x5a1fe0(0x271)+_0x1c7f43(0x2d4)])===null||_0xda0904===void 0x0?void 0x0:_0xda0904['city'],'\x20',(_0x3a4b8c=_0x5e5ce8[_0x1c7f43(0x271)+_0x5a1fe0(0x2d4)])===null||_0x3a4b8c===void 0x0?void 0x0:_0x3a4b8c[_0x5a1fe0(0x1e8)]]}),_0x39e5e4(_0x38e2bd,{'className':_0x5a1fe0(0x1f0)+_0x1c7f43(0x24f)+'-0','children':_0x1c7f43(0x23d)}),_0x39e5e4(_0x38e2bd,{'className':_0x5a1fe0(0x2d9)+_0x5a1fe0(0x25c)+_0x5a1fe0(0x269)+_0x5a1fe0(0x1cf),'children':(_0x309dfc=_0x5e5ce8[_0x1c7f43(0x271)+_0x1c7f43(0x2d4)])===null||_0x309dfc===void 0x0?void 0x0:_0x309dfc[_0x1c7f43(0x2d8)]}),((_0x390402=_0x5e5ce8['shipping'+_0x1c7f43(0x2d4)])===null||_0x390402===void 0x0?void 0x0:_0x390402[_0x1c7f43(0x1e3)+_0x1c7f43(0x1d5)+_0x5a1fe0(0x207)])&&_0x2e8ff0(_0x181a8d,{'children':[_0x39e5e4(_0x38e2bd,{'className':_0x1c7f43(0x1f0)+_0x5a1fe0(0x24f)+'-0','children':_0x1c7f43(0x285)+_0x5a1fe0(0x233)+_0x1c7f43(0x2a6)}),_0x39e5e4(_0x38e2bd,{'className':_0x225cca['NkYVQ'],'children':_0x5e5ce8[_0x5a1fe0(0x271)+_0x1c7f43(0x2d4)][_0x5a1fe0(0x1e3)+_0x1c7f43(0x1d5)+_0x5a1fe0(0x207)]})]})]}),_0x225cca['CzLpG'](_0x2e8ff0,_0x5029ba,{'className':_0x5a1fe0(0x291)+'p-0\x20mt-0','align':_0x1c7f43(0x305),'valign':_0x5a1fe0(0x1e7),'children':[_0x2e8ff0(_0x38e2bd,{'className':_0x1c7f43(0x1f0)+_0x1c7f43(0x24f)+_0x5a1fe0(0x260),'children':[_0x1c7f43(0x2cb)+_0x1c7f43(0x2f6),_0x24a939]}),_0x2e8ff0(_0x38e2bd,{'className':_0x1c7f43(0x1f0)+_0x1c7f43(0x24f)+_0x1c7f43(0x260),'children':[_0x5a1fe0(0x1fc)+':\x20',_0x5e5ce8[_0x1c7f43(0x266)+_0x1c7f43(0x301)]]}),_0x2e8ff0(_0x38e2bd,{'className':'text-gra'+'y-500\x20mb'+'-0\x20pt-1','children':[_0x5a1fe0(0x28f)+'\x20',_0x225cca[_0x1c7f43(0x2ca)](_0x48233=_0x5e5ce8['payment'],null)||_0x48233===void 0x0?void 0x0:_0x48233[_0x1c7f43(0x254)]]})]})]})}),_0x39e5e4(_0x38e2bd,{'className':_0x5a1fe0(0x1f0)+_0x1c7f43(0x24f)+'-0','children':'Order\x20It'+_0x1c7f43(0x294)}),_0x39e5e4(_0x34d837,{'className':'border-g'+_0x1c7f43(0x2b3)+_0x5a1fe0(0x28e)}),_0x39e5e4(_0x591a29,{'children':_0x5e5ce8[_0x5a1fe0(0x259)][_0x1c7f43(0x276)]((_0x159721,_0x2a6f88)=>{const _0x5c6a26=_0x5a1fe0,_0x5131c9=_0x5a1fe0;var _0x75f072,_0x288481;const _0x2f9c72=_0x159721;return _0x39e5e4('table',{'width':'100%','cellPadding':0x0,'cellSpacing':0x0,'border':0x0,'className':_0x225cca[_0x5c6a26(0x295)](_0x2a6f88,_0x5e5ce8[_0x5c6a26(0x259)][_0x5c6a26(0x2ed)]-0x1)?_0x5131c9(0x28e):'mb-4','children':_0x2e8ff0('tr',{'children':[_0x2e8ff0('td',{'valign':_0x225cca[_0x5c6a26(0x2fe)],'children':[_0x2e8ff0(_0x38e2bd,{'className':_0x5c6a26(0x2d9)+'ibold\x20mb'+'-0','children':[((_0x75f072=_0x2f9c72[_0x5131c9(0x213)+'ions'][0x0])===null||_0x75f072===void 0x0?void 0x0:_0x75f072['title'])||'Product','\x20(',((_0x288481=_0x2f9c72['translat'+_0x5c6a26(0x207)][0x0])===null||_0x288481===void 0x0?void 0x0:_0x288481[_0x5131c9(0x298)])||'',')']}),_0x2e8ff0(_0x38e2bd,{'className':_0x5131c9(0x1f0)+_0x5c6a26(0x283)+_0x5c6a26(0x27a),'children':[_0x5c6a26(0x264)+':\x20',_0x2f9c72[_0x5c6a26(0x2b9)]]})]}),_0x39e5e4('td',{'align':'right','valign':_0x5c6a26(0x1e7),'children':_0x39e5e4(_0x38e2bd,{'className':_0x5c6a26(0x2d9)+_0x5c6a26(0x249),'children':u(_0x2f9c72[_0x5131c9(0x1d9)+'e']*_0x2f9c72['quantity'],_0x18a27e[_0x5c6a26(0x26f)+'ation'][_0x5131c9(0x2e5)+_0x5131c9(0x23c)],_0x18a27e[_0x5c6a26(0x26f)+_0x5c6a26(0x1ef)][_0x5131c9(0x282)+'ocale'])})})]})},_0x2a6f88);})}),_0x39e5e4(_0x34d837,{'className':_0x1c7f43(0x1ec)+_0x1c7f43(0x2b3)+_0x5a1fe0(0x2fb)}),_0x39e5e4(_0x591a29,{'children':_0x2e8ff0(_0x1c7f43(0x2ee),{'width':_0x1c7f43(0x278),'cellPadding':0x0,'cellSpacing':0x0,'border':0x0,'children':[_0x2e8ff0('tr',{'children':[_0x39e5e4('td',{'children':_0x39e5e4(_0x38e2bd,{'className':_0x5a1fe0(0x1f0)+_0x5a1fe0(0x214),'children':_0x5a1fe0(0x285)+_0x1c7f43(0x1d7)})}),_0x39e5e4('td',{'align':_0x1c7f43(0x305),'children':_0x39e5e4(_0x38e2bd,{'className':_0x1c7f43(0x1f0)+_0x5a1fe0(0x214),'children':_0x225cca[_0x5a1fe0(0x1da)](u,_0x25fb52,_0x18a27e[_0x5a1fe0(0x26f)+_0x5a1fe0(0x1ef)][_0x1c7f43(0x2e5)+_0x1c7f43(0x23c)],_0x18a27e[_0x5a1fe0(0x26f)+_0x5a1fe0(0x1ef)][_0x1c7f43(0x282)+'ocale'])})})]}),_0x1b192f>0x0&&_0x2e8ff0('tr',{'children':[_0x225cca[_0x5a1fe0(0x231)](_0x39e5e4,'td',{'children':_0x39e5e4(_0x38e2bd,{'className':'text-gra'+_0x5a1fe0(0x214),'children':_0x5a1fe0(0x2b0)})}),_0x39e5e4('td',{'align':_0x5a1fe0(0x305),'children':_0x2e8ff0(_0x38e2bd,{'className':_0x1c7f43(0x1f0)+_0x5a1fe0(0x214),'children':['-',u(_0x1b192f,_0x18a27e['configur'+_0x5a1fe0(0x1ef)][_0x1c7f43(0x2e5)+_0x5a1fe0(0x23c)],_0x18a27e[_0x5a1fe0(0x26f)+_0x5a1fe0(0x1ef)][_0x5a1fe0(0x282)+_0x5a1fe0(0x1fa)])]})})]})]})}),_0x39e5e4(_0x34d837,{'className':_0x5a1fe0(0x1ec)+_0x1c7f43(0x244)}),_0x225cca[_0x1c7f43(0x231)](_0x39e5e4,_0x591a29,{'className':_0x5a1fe0(0x255),'children':_0x39e5e4('table',{'width':_0x1c7f43(0x278),'cellPadding':0x0,'cellSpacing':0x0,'border':0x0,'children':_0x2e8ff0('tr',{'children':[_0x39e5e4('td',{'children':_0x225cca['VQdVt'](_0x39e5e4,_0x38e2bd,{'className':_0x225cca[_0x1c7f43(0x24a)],'children':_0x225cca[_0x1c7f43(0x29c)]})}),_0x225cca[_0x1c7f43(0x25a)](_0x39e5e4,'td',{'align':_0x5a1fe0(0x305),'children':_0x39e5e4(_0x38e2bd,{'className':_0x5a1fe0(0x2c8)+_0x1c7f43(0x202)+_0x1c7f43(0x21a),'children':u(_0x47a1dd,_0x18a27e[_0x5a1fe0(0x26f)+_0x5a1fe0(0x1ef)][_0x1c7f43(0x2e5)+_0x5a1fe0(0x23c)],_0x18a27e[_0x5a1fe0(0x26f)+_0x1c7f43(0x1ef)][_0x5a1fe0(0x282)+_0x5a1fe0(0x1fa)])})})]})})})]}),_0x39e5e4(_0x591a29,{'className':_0x5a1fe0(0x224)+_0x5a1fe0(0x2d5)+'ray-50\x20p'+_0x1c7f43(0x2bf),'children':_0x2e8ff0(_0x5a1fe0(0x2ee),{'className':_0x1c7f43(0x22d),'children':[_0x39e5e4('tr',{'className':_0x5a1fe0(0x22d),'children':_0x39e5e4('td',{'align':_0x1c7f43(0x20f),'children':((_0x243f2c=_0x18a27e[_0x1c7f43(0x293)])===null||_0x243f2c===void 0x0?void 0x0:_0x243f2c['url'])&&_0x39e5e4(_0x2def31,{'alt':_0x18a27e[_0x5a1fe0(0x248)]+_0x1c7f43(0x306),'height':'100','src':_0x18a27e['logoFile'][_0x1c7f43(0x29b)],'className':_0x1c7f43(0x27c)+'lg'})})}),_0x225cca[_0x5a1fe0(0x277)](_0x39e5e4,'tr',{'className':_0x1c7f43(0x22d),'children':_0x2e8ff0('td',{'align':_0x1c7f43(0x20f),'children':[_0x39e5e4(_0x38e2bd,{'className':_0x1c7f43(0x2f8)+_0x5a1fe0(0x300)+_0x5a1fe0(0x201)+_0x5a1fe0(0x237)+_0x5a1fe0(0x273)+_0x5a1fe0(0x2ce)+_0x5a1fe0(0x1f0)+_0x1c7f43(0x267),'children':_0x18a27e[_0x1c7f43(0x248)]}),_0x2e8ff0(_0x38e2bd,{'className':_0x1c7f43(0x2f8)+_0x5a1fe0(0x300)+_0x5a1fe0(0x2d3)+_0x5a1fe0(0x228)+_0x1c7f43(0x2a5)+_0x1c7f43(0x263)+'0','children':[(_0x2d455a=_0x18a27e[_0x5a1fe0(0x2e4)])===null||_0x225cca[_0x1c7f43(0x295)](_0x2d455a,void 0x0)?void 0x0:_0x2d455a[_0x5a1fe0(0x2d1)+_0x5a1fe0(0x209)],',','\x20',(_0x25e0ae=_0x18a27e['address'])===null||_0x25e0ae===void 0x0?void 0x0:_0x25e0ae['zipCode'],'\x20',(_0x3ea7bb=_0x18a27e[_0x5a1fe0(0x2e4)])===null||_0x3ea7bb===void 0x0?void 0x0:_0x3ea7bb[_0x5a1fe0(0x2b5)]]}),_0x39e5e4(_0x38e2bd,{'className':'mb-0\x20mt-'+_0x5a1fe0(0x239)+_0x1c7f43(0x28a)+_0x5a1fe0(0x22f)+_0x1c7f43(0x2e1)+_0x1c7f43(0x221)+_0x5a1fe0(0x2e0),'children':_0x18a27e['phone']})]})}),_0x39e5e4('tr',{'children':_0x39e5e4('td',{'align':_0x1c7f43(0x20f),'children':_0x2e8ff0(_0x110194,{'className':_0x5a1fe0(0x28b)+_0x1c7f43(0x262)+_0x5a1fe0(0x226)+_0x1c7f43(0x2d2)+_0x5a1fe0(0x211)+'m\x20pt-5','children':[_0x39e5e4(_0x5029ba,{'className':_0x1c7f43(0x22c),'children':_0x39e5e4(_0x4bdbb5,{'href':_0x5a1fe0(0x28d)+_0x5a1fe0(0x25e)+_0x5a1fe0(0x1d1)+_0x1c7f43(0x26c)+_0x1c7f43(0x299),'children':_0x39e5e4(_0x2def31,{'alt':_0x1c7f43(0x25f),'height':'36','src':_0x225cca[_0x1c7f43(0x1e9)],'width':'36'})})}),_0x39e5e4(_0x5029ba,{'children':_0x39e5e4(_0x4bdbb5,{'href':_0x1c7f43(0x28d)+_0x1c7f43(0x20b)+_0x1c7f43(0x223)+_0x5a1fe0(0x2a3)+_0x5a1fe0(0x21d),'children':_0x39e5e4(_0x2def31,{'alt':_0x5a1fe0(0x2bd)+'m','height':'36','src':_0x5a1fe0(0x28d)+_0x5a1fe0(0x1e0)+'ail/stat'+'ic/insta'+_0x1c7f43(0x20d)+_0x1c7f43(0x2e7),'width':'36'})})})]})})})]})})]})})]});},z={'user':{'id':_0x389527(0x2f1)+_0x5129f2(0x2b4)+_0x389527(0x2db)+'hdbaCjAJ','name':_0x5129f2(0x270)+_0x389527(0x1e4),'email':_0x5129f2(0x235)+_0x5129f2(0x247)+_0x389527(0x2fa),'emailVerified':!0x0,'image':'https://'+_0x5129f2(0x280)+'leuserco'+_0x389527(0x2f4)+_0x5129f2(0x1dc)+_0x389527(0x297)+_0x5129f2(0x274)+'Nxcm1aYt'+_0x5129f2(0x2ad)+_0x5129f2(0x1ff)+'t_M_uiHh'+_0x5129f2(0x246)+'-c','createdAt':_0x5129f2(0x2e8)+_0x5129f2(0x1f5)+_0x5129f2(0x2f0),'updatedAt':_0x389527(0x2e8)+_0x5129f2(0x1f5)+_0x5129f2(0x2f0),'firstname':_0x389527(0x270),'lastname':_0x5129f2(0x2ab)},'order':{'id':_0x5129f2(0x215)+_0x5129f2(0x290)+_0x389527(0x1f7)+'r','referenceId':_0x5129f2(0x2c7),'token':_0x5129f2(0x200),'expiresAt':_0x5129f2(0x2ff)+'07T00:20'+_0x389527(0x2c0),'items':[{'translations':[{'locale':'en','title':_0x389527(0x205)+'osa','subtitle':_0x389527(0x28c)+'vel:\x20Med'+'ium'},{'locale':'pl','title':_0x5129f2(0x1f1),'subtitle':_0x5129f2(0x28c)+_0x389527(0x2a7)+_0x389527(0x268)}],'rawData':{'productId':_0x389527(0x2fc)+_0x5129f2(0x2ef)+_0x389527(0x20e)+'u','quantity':0x6,'modifierGroups':[{'id':_0x389527(0x21e)+'v0002ji0'+_0x5129f2(0x284)+'c','modifiers':[{'id':_0x389527(0x2fc)+_0x5129f2(0x24c)+_0x5129f2(0x208)+'e','quantity':0x1}]}]},'unitPrice':0x27,'image':{'id':_0x5129f2(0x24e)+_0x5129f2(0x230)+_0x5129f2(0x218)+'b','url':_0x5129f2(0x28d)+_0x5129f2(0x2a2)+_0x5129f2(0x1f3)+_0x389527(0x219)+_0x5129f2(0x2de)+_0x389527(0x1ce)+_0x389527(0x2ea)+_0x5129f2(0x2dd)+_0x5129f2(0x238)+_0x389527(0x203)+_0x5129f2(0x1d8)+_0x5129f2(0x243)+_0x5129f2(0x272),'mimeType':'image/pn'+'g','size':0x15d155,'filename':_0x5129f2(0x205)+_0x5129f2(0x2da)},'totalPrice':0xea,'quantity':0x6,'productSnapshotId':_0x389527(0x2ac)+_0x5129f2(0x22a)+_0x389527(0x29d)+'y'},{'translations':[{'locale':'en','title':_0x5129f2(0x205)+_0x389527(0x23f),'subtitle':_0x5129f2(0x28c)+_0x5129f2(0x2a7)+_0x389527(0x268)},{'locale':'pl','title':_0x5129f2(0x1f1),'subtitle':_0x5129f2(0x28c)+_0x389527(0x2a7)+'ium'}],'rawData':{'productId':_0x5129f2(0x2fc)+_0x5129f2(0x2ef)+_0x389527(0x20e)+'u','quantity':0x6,'modifierGroups':[{'id':_0x5129f2(0x21e)+_0x5129f2(0x2f7)+_0x389527(0x284)+'c','modifiers':[{'id':'cm8kudyq'+'q000dity'+_0x389527(0x208)+'e','quantity':0x1}]}]},'unitPrice':0x27,'image':{'id':_0x5129f2(0x24e)+_0x5129f2(0x230)+'3ocs7snf'+'b','url':_0x389527(0x28d)+_0x389527(0x2a2)+_0x389527(0x1f3)+_0x5129f2(0x219)+_0x389527(0x2de)+_0x389527(0x1ce)+_0x389527(0x2ea)+_0x389527(0x2dd)+_0x389527(0x238)+_0x5129f2(0x203)+_0x389527(0x1d8)+_0x5129f2(0x243)+_0x389527(0x272),'mimeType':_0x5129f2(0x225)+'g','size':0x15d155,'filename':_0x389527(0x205)+_0x389527(0x2da)},'totalPrice':0xea,'quantity':0x6,'productSnapshotId':'cm8kuopt'+_0x389527(0x22a)+_0x5129f2(0x29d)+'y'}],'shippingMethod':{'id':_0x389527(0x302)+_0x389527(0x2e3)+_0x5129f2(0x212)+'y','title':_0x389527(0x229)+'Delivery','providerName':_0x5129f2(0x206)+_0x5129f2(0x29f),'requireDateOfDelivery':!0x0,'shippingZones':[{'id':_0x5129f2(0x302)+_0x5129f2(0x281)+_0x5129f2(0x252)+'h','title':'Zone\x201','distanceUpto':0x7,'price':0x1,'minimumOrderAmount':0x3c,'eta':'90min'}],'createdAt':_0x5129f2(0x2e8)+_0x389527(0x23e)+_0x5129f2(0x256),'updatedAt':_0x5129f2(0x2e8)+_0x389527(0x23e)+_0x5129f2(0x296)},'acceptedAt':null,'dispatchedAt':null,'readyForDispatchAt':null,'completedAt':null,'cancelledAt':null,'shippingAddress':{'id':_0x389527(0x215)+'m0007itx'+'1akuqh77'+'n','firstname':_0x389527(0x23b),'lastname':_0x5129f2(0x27d),'phone':_0x389527(0x2a1)+'5862','addressLineOne':_0x389527(0x24d)+_0x389527(0x2f2)+'28','doorNumber':'54','addressLineTwo':null,'zipCode':'31-571','city':_0x389527(0x304),'country':'PL','placeId':_0x389527(0x1db)+_0x389527(0x1ee)+_0x389527(0x241)+'nWM','deliveryInstructions':_0x389527(0x2b1)+_0x389527(0x1f2)},'fulfilmentMethod':_0x5129f2(0x1e3),'currency':_0x389527(0x1f4),'payment':{'id':_0x389527(0x215)+_0x5129f2(0x216)+_0x5129f2(0x21b)+'i','method':'blik','provider':_0x389527(0x2df),'status':_0x389527(0x2a4)+'d','shipping':0x1,'subtotal':0xea,'total':0xeb,'discount':0x0,'currency':_0x5129f2(0x1f4)},'status':_0x389527(0x2c2)},'organization':{'id':_0x5129f2(0x23a)+_0x5129f2(0x222)+_0x5129f2(0x1d2)+'b','name':_0x5129f2(0x2d0)+_0x389527(0x2b8),'phone':'+4857013'+_0x389527(0x2dc),'email':'contact@'+_0x5129f2(0x234)+_0x5129f2(0x286),'createdAt':_0x389527(0x2e8)+'22T23:05'+_0x389527(0x287),'legalEntityId':null,'address':{'id':_0x5129f2(0x23a)+_0x389527(0x2f5)+_0x389527(0x1ea)+'t','firstname':null,'lastname':null,'phone':null,'addressLineOne':_0x5129f2(0x2eb)+_0x5129f2(0x2cd)+_0x5129f2(0x26a),'doorNumber':null,'addressLineTwo':'3','zipCode':_0x5129f2(0x250),'city':'Kraków','country':'PL','placeId':_0x389527(0x204)+_0x389527(0x2aa)+'21gtObFS'+_0x389527(0x257),'deliveryInstructions':null},'configuration':{'id':'cm8kthfd'+_0x389527(0x1e5)+_0x5129f2(0x261)+'n','hostname':'null','countriesShipping':['us'],'stripeAccountId':_0x5129f2(0x1f1),'enableHostCheckout':!0x1,'enableHostTracking':!0x1,'isAcceptingOrders':!0x1,'isAcceptingReservations':!0x1,'defaultLocale':'en','supportedLocales':['en','pl'],'defaultCurrency':'PLN','createdAt':_0x389527(0x2e8)+_0x389527(0x1eb)+_0x389527(0x287)},'logo':_0x5129f2(0x28d)+'z3liuyat'+_0x5129f2(0x1f3)+'.public.'+_0x389527(0x2de)+_0x389527(0x1ce)+'age.com/'+_0x389527(0x1fe)+_0x389527(0x2c4)+'KPlvjxYm'+'2af3SAWv'+_0x389527(0x1ed),'logoFile':{'id':_0x389527(0x2a9)+_0x5129f2(0x29a)+'356gwclf'+'k','url':_0x389527(0x28d)+_0x389527(0x2a2)+'qnepss3d'+_0x5129f2(0x219)+'blob.ver'+_0x389527(0x1ce)+_0x5129f2(0x2ea)+_0x5129f2(0x1fe)+_0x389527(0x2c4)+_0x5129f2(0x2c6)+_0x5129f2(0x227)+_0x5129f2(0x1ed),'mimeType':'image/pn'+'g','size':0x193641,'filename':_0x5129f2(0x2e6)}}};function _0x3e69(_0x55366d,_0x2cc6fe){_0x55366d=_0x55366d-0x1ce;const _0x1dc8b9=_0x1dc8();let _0x3e6990=_0x1dc8b9[_0x55366d];if(_0x3e69['ZwQfPG']===undefined){var _0x164bfa=function(_0x8313b8){const _0x583457='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x6022a='',_0x5e7aea='';for(let _0x35fb06=0x0,_0x552310,_0x33906a,_0x15a95c=0x0;_0x33906a=_0x8313b8['charAt'](_0x15a95c++);~_0x33906a&&(_0x552310=_0x35fb06%0x4?_0x552310*0x40+_0x33906a:_0x33906a,_0x35fb06++%0x4)?_0x6022a+=String['fromCharCode'](0xff&_0x552310>>(-0x2*_0x35fb06&0x6)):0x0){_0x33906a=_0x583457['indexOf'](_0x33906a);}for(let _0x4d083b=0x0,_0x420fa=_0x6022a['length'];_0x4d083b<_0x420fa;_0x4d083b++){_0x5e7aea+='%'+('00'+_0x6022a['charCodeAt'](_0x4d083b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5e7aea);};_0x3e69['IBzuYZ']=_0x164bfa,_0x3e69['JCzrbh']={},_0x3e69['ZwQfPG']=!![];}const _0x265fe5=_0x1dc8b9[0x0],_0x5de982=_0x55366d+_0x265fe5,_0x4954c7=_0x3e69['JCzrbh'][_0x5de982];return!_0x4954c7?(_0x3e6990=_0x3e69['IBzuYZ'](_0x3e6990),_0x3e69['JCzrbh'][_0x5de982]=_0x3e6990):_0x3e6990=_0x4954c7,_0x3e6990;}S[_0x5129f2(0x292)+_0x389527(0x26e)]=z;export default S;export{S as OrderNotificationEmail};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as J}from"react/jsx-runtime";import{Body as K,Column as s,Container as O,Head as U,Heading as $,Hr as m,Html as E,Img as r,Link as o,Preview as V,Row as h,Section as n,Tailwind as G,Text as l}from"../../../core/email/components";const u=(d,a="PLN",i="en-US")=>new Intl.NumberFormat(i,{style:"currency",currency:a}).format(d),S=({user:d,organization:a,order:i})=>{var p,g,b,y,f,v,x,N,w,k,A,q,P,I,C,L,_,M;const B=`New order #${i.referenceId} received`,Z=new Date().toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"numeric"}),H=((p=i.payment)===null||p===void 0?void 0:p.shipping)||0,T=((g=i.payment)===null||g===void 0?void 0:g.discount)||0,R=((b=i.payment)===null||b===void 0?void 0:b.total)||0,W=`https://${a.configuration.hostname}/admin/orders/${i.id}`;return t(E,{children:[e(U,{}),e(V,{children:B}),e(G,{children:t(K,{className:"bg-gray-50 font-sans",children:[t(O,{className:"bg-gray-50 p-6 max-w-[600px]",children:[e(n,{className:"mb-6",children:t(h,{children:[e(s,{className:"w-[80%]",children:e(r,{alt:`${a.name} logo`,height:"100",src:(y=a.logoFile)===null||y===void 0?void 0:y.url,className:"rounded-lg"})}),e(s,{align:"right",children:t(h,{align:"right",children:[e(s,{children:e(o,{href:"https://www.instagram.com/madrasbistro/",children:e(r,{alt:"Instagram",className:"mx-[4px]",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})}),e(s,{children:e(o,{href:"https://www.facebook.com/madrasBistro/",children:e(r,{alt:"Facebook",className:"mx-[4px]",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})})]})})]})}),t(n,{children:[e($,{className:"text-3xl font-bold text-gray-800 mb-0",children:"You have received a new order"}),t(l,{className:"text-gray-600 mb-2 text-lg",children:["Order #",i.referenceId," has been placed and is waiting for your action."]})]}),e(n,{className:"mb-0",children:e(o,{href:W,className:"bg-gray-900 text-sm rounded-md text-white font-medium py-2 px-5 text-center inline-block my-4",children:"View Order Details"})})]}),t(O,{className:"mx-auto max-w-[600px] rounded-xl bg-white px-6",children:[e(n,{className:"mb-6",children:t(h,{children:[t(s,{className:"w-[60%]",children:[e(l,{className:"text-gray-500 mb-0",children:"Customer Information"}),t(l,{className:"font-semibold text-gray-800 my-0",children:[d.firstname," ",d.lastname]}),e(l,{className:"font-semibold text-gray-800 my-0",children:d.email}),e(m,{className:"border-gray-200 mb-2 mt-2"}),e(l,{className:"text-gray-500 mb-0",children:"Delivery Address"}),t(l,{className:"font-semibold text-gray-800 my-0",children:[(f=i.shippingAddress)===null||f===void 0?void 0:f.firstname," ",(v=i.shippingAddress)===null||v===void 0?void 0:v.lastname]}),t(l,{className:"font-semibold text-gray-800 my-0",children:[(x=i.shippingAddress)===null||x===void 0?void 0:x.addressLineOne," ",((N=i.shippingAddress)===null||N===void 0?void 0:N.doorNumber)&&` / ${(w=i.shippingAddress)===null||w===void 0?void 0:w.doorNumber}`,e("br",{}),(k=i.shippingAddress)===null||k===void 0?void 0:k.city," ",(A=i.shippingAddress)===null||A===void 0?void 0:A.zipCode]}),e(l,{className:"text-gray-500 mb-0",children:"Phone"}),e(l,{className:"font-semibold text-gray-800 my-0",children:(q=i.shippingAddress)===null||q===void 0?void 0:q.phone}),((P=i.shippingAddress)===null||P===void 0?void 0:P.deliveryInstructions)&&t(J,{children:[e(l,{className:"text-gray-500 mb-0",children:"Delivery Instructions"}),e(l,{className:"font-semibold text-gray-800 my-0",children:i.shippingAddress.deliveryInstructions})]})]}),t(s,{className:"w-[40%] p-0 mt-0",align:"right",valign:"top",children:[t(l,{className:"text-gray-500 mb-0 pt-1",children:["Order Date: ",Z]}),t(l,{className:"text-gray-500 mb-0 pt-1",children:["Order ID: ",i.referenceId]}),t(l,{className:"text-gray-500 mb-0 pt-1",children:["Payment: ",(I=i.payment)===null||I===void 0?void 0:I.status]})]})]})}),e(l,{className:"text-gray-500 mb-0",children:"Order Items"}),e(m,{className:"border-gray-200 mb-0"}),e(n,{children:i.items.map((Y,F)=>{var D,j;const c=Y;return e("table",{width:"100%",cellPadding:0,cellSpacing:0,border:0,className:F===i.items.length-1?"mb-0":"mb-4",children:t("tr",{children:[t("td",{valign:"top",children:[t(l,{className:"font-semibold mb-0",children:[((D=c.translations[0])===null||D===void 0?void 0:D.title)||"Product"," (",((j=c.translations[0])===null||j===void 0?void 0:j.subtitle)||"",")"]}),t(l,{className:"text-gray-600 mb-0 mt-0",children:["Quantity: ",c.quantity]})]}),e("td",{align:"right",valign:"top",children:e(l,{className:"font-semibold",children:u(c.unitPrice*c.quantity,a.configuration.defaultCurrency,a.configuration.defaultLocale)})})]})},F)})}),e(m,{className:"border-gray-200 mt-4"}),e(n,{children:t("table",{width:"100%",cellPadding:0,cellSpacing:0,border:0,children:[t("tr",{children:[e("td",{children:e(l,{className:"text-gray-700",children:"Delivery fee"})}),e("td",{align:"right",children:e(l,{className:"text-gray-700",children:u(H,a.configuration.defaultCurrency,a.configuration.defaultLocale)})})]}),T>0&&t("tr",{children:[e("td",{children:e(l,{className:"text-gray-700",children:"Campaign"})}),e("td",{align:"right",children:t(l,{className:"text-gray-700",children:["-",u(T,a.configuration.defaultCurrency,a.configuration.defaultLocale)]})})]})]})}),e(m,{className:"border-gray-200"}),e(n,{className:"mb-6",children:e("table",{width:"100%",cellPadding:0,cellSpacing:0,border:0,children:t("tr",{children:[e("td",{children:e(l,{className:"text-xl font-bold mb-0",children:"Total:"})}),e("td",{align:"right",children:e(l,{className:"text-xl font-bold mb-0",children:u(R,a.configuration.defaultCurrency,a.configuration.defaultLocale)})})]})})})]}),e(n,{className:"text-center bg-gray-50 py-5",children:t("table",{className:"w-full",children:[e("tr",{className:"w-full",children:e("td",{align:"center",children:((C=a.logoFile)===null||C===void 0?void 0:C.url)&&e(r,{alt:`${a.name} logo`,height:"100",src:a.logoFile.url,className:"rounded-lg"})})}),e("tr",{className:"w-full",children:t("td",{align:"center",children:[e(l,{className:"my-[8px] text-[16px] font-semibold text-xl pt-2 text-gray-900",children:a.name}),t(l,{className:"my-[8px] text-[16px] leading-[24px] text-gray-500",children:[(L=a.address)===null||L===void 0?void 0:L.addressLineOne,","," ",(_=a.address)===null||_===void 0?void 0:_.zipCode," ",(M=a.address)===null||M===void 0?void 0:M.city]}),e(l,{className:"mb-0 mt-[4px] text-[16px] leading-[24px] text-gray-500",children:a.phone})]})}),e("tr",{children:e("td",{align:"center",children:t(h,{className:"table-cell h-[44px] w-[56px] align-bottom pt-5",children:[e(s,{className:"pr-[8px]",children:e(o,{href:"https://www.facebook.com/madrasBistro/",children:e(r,{alt:"Facebook",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})}),e(s,{children:e(o,{href:"https://www.instagram.com/madrasbistro/",children:e(r,{alt:"Instagram",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})})]})})})]})})]})})]})},z={user:{id:"VD0OJ52f0mdAnm5YePP6BAW6hdbaCjAJ",name:"Abhishek Shaji",email:"kontakt@abhishek.pl",emailVerified:!0,image:"https://lh3.googleusercontent.com/a/ACg8ocKbkCAMTNvMizjXNxcm1aYtBiWnYpCYmU-7aE2Ft_M_uiHheZ5f=s96-c",createdAt:"2025-03-22T22:54:40.260Z",updatedAt:"2025-03-22T22:54:40.260Z",firstname:"Abhishek",lastname:"Shaji"},order:{id:"cm94wbpbm0000itx1iv9k2mqr",referenceId:"PH6LD6",token:"VAE9TX",expiresAt:"2025-04-07T00:20:09.689Z",items:[{translations:[{locale:"en",title:"Masala Dosa",subtitle:"Spice Level: Medium"},{locale:"pl",title:"null",subtitle:"Spice Level: Medium"}],rawData:{productId:"cm8kudyqq0006ityduhq0yveu",quantity:6,modifierGroups:[{id:"cm8kuonhv0002ji032ji4bzmc",modifiers:[{id:"cm8kudyqq000ditydq25s2n2e",quantity:1}]}]},unitPrice:39,image:{id:"cm8kuee0m0000l703ocs7snfb",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/Masala%20Dosa-b0tr9uWZqmBTPMUx4x0fzqkM6z5eCw.png",mimeType:"image/png",size:1429845,filename:"Masala Dosa.png"},totalPrice:234,quantity:6,productSnapshotId:"cm8kuopty0006ji035n7w5iby"},{translations:[{locale:"en",title:"Masala Dosa",subtitle:"Spice Level: Medium"},{locale:"pl",title:"null",subtitle:"Spice Level: Medium"}],rawData:{productId:"cm8kudyqq0006ityduhq0yveu",quantity:6,modifierGroups:[{id:"cm8kuonhv0002ji032ji4bzmc",modifiers:[{id:"cm8kudyqq000ditydq25s2n2e",quantity:1}]}]},unitPrice:39,image:{id:"cm8kuee0m0000l703ocs7snfb",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/Masala%20Dosa-b0tr9uWZqmBTPMUx4x0fzqkM6z5eCw.png",mimeType:"image/png",size:1429845,filename:"Masala Dosa.png"},totalPrice:234,quantity:6,productSnapshotId:"cm8kuopty0006ji035n7w5iby"}],shippingMethod:{id:"cm8kuqmkd000iitydar4a1poy",title:"Express Delivery",providerName:"Wolt Courier",requireDateOfDelivery:!0,shippingZones:[{id:"cm8kuqmkd000jitydpdvck2th",title:"Zone 1",distanceUpto:7,price:1,minimumOrderAmount:60,eta:"90min"}],createdAt:"2025-03-22T23:40:23.101Z",updatedAt:"2025-03-22T23:40:35.319Z"},acceptedAt:null,dispatchedAt:null,readyForDispatchAt:null,completedAt:null,cancelledAt:null,shippingAddress:{id:"cm94wbpbm0007itx1akuqh77n",firstname:"Klaudia",lastname:"Smoter",phone:"+48570135862",addressLineOne:"Stanis\u0142awa Lema 28",doorNumber:"54",addressLineTwo:null,zipCode:"31-571",city:"Krak\xF3w",country:"PL",placeId:"ChIJrQfdh9VaFkcRIvg8O2PqnWM",deliveryInstructions:"4th floor - Maho"},fulfilmentMethod:"delivery",currency:"PLN",payment:{id:"cm94wbpbm0008itx1thsnj7ui",method:"blik",provider:"stripe",status:"succeeded",shipping:1,subtotal:234,total:235,discount:0,currency:"PLN"},status:"pending"},organization:{id:"cm8kthfdq0001lg03b59mdy7b",name:"Madras Bistro",phone:"+48570135862",email:"contact@madrasbistro.pl",createdAt:"2025-03-22T23:05:14.271Z",legalEntityId:null,address:{id:"cm8kthfdr0002lg0350ijialt",firstname:null,lastname:null,phone:null,addressLineOne:"Plac Bohater\xF3w Getta 2",doorNumber:null,addressLineTwo:"3",zipCode:"33-332",city:"Krak\xF3w",country:"PL",placeId:"ChIJf-nsRkRbFkcR21gtObFSSSA",deliveryInstructions:null},configuration:{id:"cm8kthfdr0003lg03ghgs262n",hostname:"null",countriesShipping:["us"],stripeAccountId:"null",enableHostCheckout:!1,enableHostTracking:!1,isAcceptingOrders:!1,isAcceptingReservations:!1,defaultLocale:"en",supportedLocales:["en","pl"],defaultCurrency:"PLN",createdAt:"2025-03-22T23:05:14.271Z"},logo:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",logoFile:{id:"cm8ktmu890005lg0356gwclfk",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",mimeType:"image/png",size:1652289,filename:"logo.png"}}};S.PreviewProps=z;export default S;export{S as OrderNotificationEmail};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{z as e}from"@hono/zod-openapi";export const fulfilmentMethod=e.enum(["delivery","pickup"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{__awaiter as t}from"tslib";class n{constructor(e,r){this.inventoryService=e,this.orderService=r}fulfillPaidOrder(e,r){return t(this,void 0,void 0,function*(){const i=yield this.inventoryService.processPaidOrderInventory(e);return i.status!=="deducted"||(yield this.orderService.sendOrderNotifications(e,r)),i})}}export{n as OrderFulfillmentService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{__awaiter as i}from"tslib";import{createApiRouter as c}from"../../core/hono/hono";import{orderRoute as s}from"./order.route";import{OrderInventoryConflictError as y}from"./order.service";export const registerOrderHandlers=d=>{const a=c();return a.openapi(s.createOrder,r=>i(void 0,void 0,void 0,function*(){var t;const e=r.get("auth"),o=r.req.valid("param"),n=r.req.valid("json"),l=r.req.valid("query"),p=yield e.getCurrentUser(),g=(t=r.req.raw.headers.get("accept-language"))!==null&&t!==void 0?t:void 0;try{const{order:u,redirectUrl:v}=yield d.createOrder(o.organizationId,p,n,{acceptLanguage:g,locale:l.locale||void 0});return r.json({order:u,redirectUrl:v},201)}catch(u){if(u instanceof y)return r.json(u.payload,409);throw u}})),a.openapi(s.getMyOrders,r=>i(void 0,void 0,void 0,function*(){const t=r.get("auth"),e=r.req.valid("param"),o=r.req.valid("query"),n=yield t.getCurrentUser(),l=yield d.getMyOrders(n.id,e.organizationId,o);return r.json(l,200)})),a.openapi(s.getOrder,r=>i(void 0,void 0,void 0,function*(){const t=r.get("auth"),e=r.req.valid("param"),o=yield t.getCurrentUser(),n=yield d.getOrder(o,e.organizationId,e.id);return r.json(n,200)})),a.openapi(s.getOrders,r=>i(void 0,void 0,void 0,function*(){const t=r.get("auth"),e=r.req.valid("param"),o=r.req.valid("query");yield t.isGranted("read");const n=yield d.getOrders(e.organizationId,o);return r.json(n,200)})),a.openapi(s.updateStatus,r=>i(void 0,void 0,void 0,function*(){const t=r.get("auth"),e=r.req.valid("param");yield t.isGranted("update");const o=yield d.updateStatus(e.organizationId,e.id,e.operation);return r.json(o,200)})),a.openapi(s.deleteOrder,r=>i(void 0,void 0,void 0,function*(){const t=r.get("auth"),e=r.req.valid("param"),o=yield t.isGranted("delete");return yield d.deleteOrder(e.organizationId,e.id,o.id),r.body(null,204)})),a};
|