@shophost/rest-api 2.0.67 → 2.0.68
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/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 +788 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -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.js +1 -1
- package/src/features/organization/organization.handler.js +1 -1
- package/src/features/organization/organization.route.js +1 -1
- package/src/features/organization/organization.schema.js +1 -1
- 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-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.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
|
@@ -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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{z as r}from"@hono/zod-openapi";import{createApiRoute as t}from"../../core/hono/hono";import{CreateOrderSchema as p,ErrorSchema as e,HeaderSchema as a,locale as m,OrderSchema as o,OrderStatusSchema as h,OrganizationParams as s,OrganizationWithIdParams as d,PaginationMetaSchema as n,PaginationQuerySchema as i}from"../../schemas";import{CartConflictSchema as c}from"../cart/cart.schema";const g=t({description:"Fetches paginated list of orders",headers:a,method:"GET",operationId:"getOrders",path:"/:organizationId/orders",pathParams:s,query:i,responses:{200:r.object({list:r.array(o),meta:n}),400:e,401:e},summary:"Get Orders",tags:["Order"]}),O=t({description:"Fetches paginated list of orders for the authenticated user",headers:a,method:"GET",operationId:"getMyOrders",path:"/:organizationId/orders/me",pathParams:s,query:i,responses:{200:r.object({list:r.array(o),meta:n}),400:e,401:e},summary:"Get My Orders",tags:["Order"]}),u=t({body:p,description:"Creates a new order",headers:a,method:"POST",operationId:"createOrder",path:"/:organizationId/orders",pathParams:r.object({organizationId:r.string().cuid().min(1).openapi({description:"The organization ID",example:"ckel0e8qw00004n5p5w6fznym",param:{in:"path",name:"organizationId"}})}),query:r.object({locale:m.optional()}),responses:{201:r.object({order:o,redirectUrl:r.string().url().optional()}),409:c,400:e,401:e,404:e},summary:"Create Order",tags:["Order"]}),l=t({headers:a,method:"GET",operationId:"getOrder",path:"/:organizationId/orders/:id",pathParams:d,responses:{200:o,401:e,404:e},summary:"Get Order",tags:["Order"]}),y=t({description:"Changes the status of an existing order based on the operation",headers:a,method:"POST",operationId:"updateOrderStatus",path:"/:organizationId/orders/:id/status/:operation",pathParams:d.extend({operation:h}),responses:{200:o,400:e,401:e,404:e},summary:"Change Order Status",tags:["Order"]}),I=t({description:"Soft deletes order",headers:a,method:"DELETE",operationId:"deleteOrder",path:"/:organizationId/orders/:id",pathParams:d,responses:{204:null,400:e,401:e,404:e},summary:"Delete Order",tags:["Order"]});export const orderRoute={getOrders:g,getMyOrders:O,createOrder:u,getOrder:l,updateStatus:y,deleteOrder:I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x116ad4=_0x29b8,_0xcd3a8b=_0x29b8;(function(_0x4313fe,_0x396838){const _0x228211=_0x29b8,_0x3fe8f4=_0x29b8,_0x529385=_0x4313fe();while(!![]){try{const _0xe14d5a=-parseInt(_0x228211(0x9a))/0x1*(parseInt(_0x228211(0x99))/0x2)+parseInt(_0x228211(0x9d))/0x3*(-parseInt(_0x3fe8f4(0x6a))/0x4)+-parseInt(_0x3fe8f4(0x8f))/0x5*(-parseInt(_0x3fe8f4(0x6c))/0x6)+parseInt(_0x228211(0xc4))/0x7*(parseInt(_0x3fe8f4(0x6f))/0x8)+parseInt(_0x228211(0x88))/0x9+parseInt(_0x228211(0xcc))/0xa+-parseInt(_0x228211(0x9f))/0xb*(-parseInt(_0x3fe8f4(0x86))/0xc);if(_0xe14d5a===_0x396838)break;else _0x529385['push'](_0x529385['shift']());}catch(_0x47060f){_0x529385['push'](_0x529385['shift']());}}}(_0x1515,0x55156));import{z as _0x3f300f}from'@hono/zod-openapi';function _0x1515(){const _0x6e9e3b=['mtGXmLvkD3vzyq','BNvSBgfIBgu','nJqXnJf5B1fqEKm','mtvumtq6mZa','ig1HBNvHBca','ihvZzwqGzM8','zgvSAxzLCNK','BNrnzxrOB2q','q3jLyxrLt3i','ntC4nZa1vhfHCffH','yw5ZBgf0Aw8','yxrPB24','rgf0zsb3Agu','zIb1BML0CYa','ihjLzMvYzw4','CgvUzgLUzW','rgLZCgf0y2G','rxHWAxjHDgK','AwzPzxjZ','mLjvsLHVEq','ntKXodKXv2fICKPR','zIbVCMrLCIa','ywnJzxb0zwq','odKWndnjthv0yuW','ig1LDgHVzca','mJu4nuPLt05nAW','vg90ywWGChi','zw4Tvvm','zgvYihDHCYa','B3iGB3jKzxi','Dwn0zwqGywy','t3jKzxi','zxiGAxrLBq','zgLUzYbTB2q','mtHumte6ndu','zwrbDa','ihrOzsbVCMq','BgLUzsbPDgu','u3rHDhvZig8','AxjLzcb3Agu','t1jelteYmZq','DgvYihbHEw0','B3bLBMfWAq','rxH0zxjUywW','mJaYmY0XmI0','zwXPDMvYEsC','y3vPza','C3rYAw5N','AtLQma','mJaYmY0WnI0','DxaGB3iGzgu','ztvMnMC3AdG','qwrKAxrPB24','B3jKzxi','vvne','q3vYCMvUy3K','AxPLoIbmyxi','BIbMDwXMAwW','B2jQzwn0','yxjYyxK','zw51Bq','zM9YihrOzsa','nty1nJiXzfPWufr3','ywWGzgv0ywK','zIb0AguGDhi','igzVCIb0Agu','zhjHzNq','twv0Ag9Kswq','CMvMAw5L','twv0Ag9Kig8','mtmXmdy2mg1iwLzOza','tNvTyMvYig8','Aw50','qxjYyxKGB2y','oJaWwG','uhjPy2uGCgu','oJu5wG','igLZihjLCxu','u2HPChbPBMC','DhjHBNnMB3i','zhvJDa','tg9JywXLig8','CIb1BML0ig8','y2XQmtiZndu','BIb0AguGCge','CI1KAxnWyxq','igLUDMvUDg8','DeL0zw0','zw50','q29SB3i6ifm','y29TCgXLDgu','BwLU','CNKGD2fZigq','mZfumJm6ntK','AwX2zxiSifm','mtrumty6mJa','vgL0BguGB2y','BIb0AguGB3i','C2HPChbPBMC','B3b0Aw9UywW','zgvY','ihzLCMLMAwm','DcbIzsbKzwq','y2uGsuqGzM8','B24Gzgf0zsa','vhjHBNnSyxq','Aw9UCYbMB3i','ndbSCNHHsw4','z2DLzcbMB3i','mZbiwhnrqwq','EunVBMzSAwm','zxH0zw5K','ndHvqxjSvKS','vw5PCxvLigK','CIb0AguGB3i','mtzumdK6mtu','zgvMyxvSDa','y2fUy2vSBgu','AwnLigzVCIa','zgLZCgf0y2G','CIbMB3iGDgG','yxnZAwDU','BNvTyMvY','zIb0AguGAxq','zgf0zq','CMvHzhLgB3i','BwvUDe1LDgG','BsWGAw5JBhu','AwqGB3jKzxi','Aw52zw50B3i','BgL2zxj5kq','CMvHzhKTzM8','zNvSzMLSBwu','t3jKzxjjDgu','ihDHCYbMBge'];_0x1515=function(){return _0x6e9e3b;};return _0x1515();}import{AddressSchema as _0x6e3c04}from'../../schemas/address.schema';import{currency as _0x2d1fe9}from'../../schemas/currency.schema';import{locale as _0x314128}from'../../schemas/locales.schema';import{CartItemSchema as _0x296c8e,CartSchema as _0x447ef1}from'../cart/cart.schema';function _0x29b8(_0x4b5646,_0x137248){_0x4b5646=_0x4b5646-0x67;const _0x15156a=_0x1515();let _0x29b8f6=_0x15156a[_0x4b5646];if(_0x29b8['kLiPzz']===undefined){var _0x1dbb1f=function(_0x36518a){const _0x33f7bb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f4779='',_0x21bd65='';for(let _0x27d816=0x0,_0x15ee5d,_0x5b1d5e,_0x54bb0d=0x0;_0x5b1d5e=_0x36518a['charAt'](_0x54bb0d++);~_0x5b1d5e&&(_0x15ee5d=_0x27d816%0x4?_0x15ee5d*0x40+_0x5b1d5e:_0x5b1d5e,_0x27d816++%0x4)?_0x4f4779+=String['fromCharCode'](0xff&_0x15ee5d>>(-0x2*_0x27d816&0x6)):0x0){_0x5b1d5e=_0x33f7bb['indexOf'](_0x5b1d5e);}for(let _0x3b197a=0x0,_0x40bac1=_0x4f4779['length'];_0x3b197a<_0x40bac1;_0x3b197a++){_0x21bd65+='%'+('00'+_0x4f4779['charCodeAt'](_0x3b197a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21bd65);};_0x29b8['usSyQK']=_0x1dbb1f,_0x29b8['ITJERx']={},_0x29b8['kLiPzz']=!![];}const _0x648017=_0x15156a[0x0],_0x41e1a7=_0x4b5646+_0x648017,_0x32d658=_0x29b8['ITJERx'][_0x41e1a7];return!_0x32d658?(_0x29b8f6=_0x29b8['usSyQK'](_0x29b8f6),_0x29b8['ITJERx'][_0x41e1a7]=_0x29b8f6):_0x29b8f6=_0x32d658,_0x29b8f6;}import{FileSchema as _0x13fcc0}from'../file/file.schema';import{PaymentMethodSchema as _0x3b865c,PaymentProviderSchema as _0x59fae5,PaymentSchema as _0xb2c478}from'../payment/payment.schema';import{ShippingMethodSchema as _0x57922d}from'../shipping-method/shipping-method.schema';import{fulfilmentMethod as _0x8c97e7}from'./fulfilment.schema';export const OrderStatusSchema=_0x3f300f[_0x116ad4(0xc2)]([_0x116ad4(0xc8),_0xcd3a8b(0x95),_0xcd3a8b(0x9c),_0x116ad4(0x82)+_0x116ad4(0xdb)+'ch',_0x116ad4(0x76)+'ed',_0x116ad4(0xe0)+'d','cancelle'+'d'])[_0x116ad4(0xb0)]({'description':_0x116ad4(0xac)+'f\x20the\x20or'+'der','example':_0x116ad4(0x9c)}),OrderItemSchema=_0x3f300f[_0x116ad4(0xc0)]({'translations':_0x3f300f[_0x116ad4(0xc1)](_0x3f300f[_0x116ad4(0xc0)]({'locale':_0x314128[_0x116ad4(0xb0)]({'description':_0x116ad4(0xd7)+_0x116ad4(0xc6)+_0xcd3a8b(0x90)+'n','example':_0x116ad4(0xa1)}),'title':_0x3f300f['string']()[_0x116ad4(0xb0)]({'description':_0xcd3a8b(0xe6)+_0xcd3a8b(0xaa)+'ered\x20pro'+_0x116ad4(0xd6),'example':'Premium\x20'+'Watch'}),'subtitle':_0x3f300f[_0x116ad4(0xb5)]()[_0x116ad4(0xb0)]({'description':_0xcd3a8b(0xba)+_0x116ad4(0xc5)+'ls\x20about'+_0x116ad4(0xaa)+'ered\x20ite'+_0xcd3a8b(0x7e)+_0x116ad4(0xa7)+_0xcd3a8b(0x98),'example':_0x116ad4(0xdf)+_0xcd3a8b(0xe4)+_0x116ad4(0xbe)+'ge'})}))[_0x116ad4(0xb0)]({'description':_0xcd3a8b(0x68)+_0x116ad4(0x69)+_0xcd3a8b(0xaa)+_0x116ad4(0xa6)}),'rawData':_0x296c8e,'unitPrice':_0x3f300f['number']()['min'](0x0)['openapi']({'description':_0x116ad4(0xd1)+_0x116ad4(0xd8)+_0x116ad4(0x7a)+'em','example':299.99}),'image':_0x13fcc0[_0x116ad4(0x87)]()[_0x116ad4(0xe9)](),'totalPrice':_0x3f300f[_0x116ad4(0x79)]()['min'](0x0)[_0xcd3a8b(0xb0)]({'description':_0xcd3a8b(0xa0)+_0xcd3a8b(0x75)+'this\x20ite'+'m\x20(unitP'+'rice\x20×\x20q'+'uantity)','example':599.98}),'quantity':_0x3f300f[_0xcd3a8b(0x79)]()['min'](0x1)[_0x116ad4(0xb0)]({'description':_0xcd3a8b(0xcd)+_0xcd3a8b(0x93)+'ordered','example':0x2}),'productSnapshotId':_0x3f300f[_0xcd3a8b(0xb5)]()[_0x116ad4(0xb4)]()})['openapi'](_0xcd3a8b(0x84)+'m'),InventoryConflictItemSchema=_0x3f300f[_0x116ad4(0xc0)]({'productId':_0x3f300f[_0x116ad4(0xb5)]()[_0xcd3a8b(0xb4)](),'title':_0x3f300f[_0xcd3a8b(0xb5)](),'requestedQuantity':_0x3f300f[_0x116ad4(0x79)]()[_0x116ad4(0xce)]()[_0x116ad4(0xe1)](0x1),'availableQuantity':_0x3f300f[_0xcd3a8b(0x79)]()[_0x116ad4(0xce)]()[_0xcd3a8b(0xe1)](0x0)})[_0xcd3a8b(0xb0)]('Inventor'+_0xcd3a8b(0x6d)+_0xcd3a8b(0xdd)),OrderSchema=_0x3f300f['object']({'id':_0x3f300f[_0xcd3a8b(0xb5)]()[_0xcd3a8b(0xb0)]({'description':_0xcd3a8b(0x70)+'dentifie'+_0x116ad4(0x77)+'e\x20order','example':_0xcd3a8b(0xd9)+'67890abc'+'def'}),'referenceId':_0x3f300f['string']()['openapi']({'description':_0x116ad4(0xb1)+_0xcd3a8b(0x94)+_0x116ad4(0xed)+'r\x20the\x20or'+_0xcd3a8b(0xea),'example':_0xcd3a8b(0xae)+'5'}),'status':OrderStatusSchema[_0x116ad4(0xe9)](),'token':_0x3f300f[_0xcd3a8b(0xb5)]()[_0x116ad4(0xb0)]({'description':'Security'+'\x20token\x20f'+_0xcd3a8b(0xa3)+_0xcd3a8b(0xeb)+_0xcd3a8b(0x91),'example':'a1b2c3d4'+_0xcd3a8b(0xb9)+_0x116ad4(0xb6)}),'expiresAt':_0x3f300f[_0xcd3a8b(0x7b)]()[_0xcd3a8b(0xb0)]({'description':_0xcd3a8b(0x97)+_0xcd3a8b(0x67)+_0x116ad4(0xc3)+_0xcd3a8b(0xbb),'example':_0xcd3a8b(0xb2)+_0x116ad4(0xe3)+_0xcd3a8b(0xd2)}),'items':_0x3f300f[_0x116ad4(0xc1)](OrderItemSchema)[_0xcd3a8b(0xe1)](0x1)['openapi']({'description':_0xcd3a8b(0xcf)+'\x20items\x20i'+_0xcd3a8b(0xe7)+_0xcd3a8b(0xea)}),'shippingMethod':_0x57922d[_0x116ad4(0x87)]()[_0x116ad4(0xb0)]({'description':_0x116ad4(0xd4)+_0xcd3a8b(0x9e)+'selected'+_0x116ad4(0xc7)+'\x20order'}),'acceptedAt':_0x3f300f['date']()[_0xcd3a8b(0x87)]()['optional']()[_0xcd3a8b(0xb0)]({'description':'Date\x20whe'+_0x116ad4(0xe7)+_0xcd3a8b(0xa2)+_0xcd3a8b(0x9c),'example':_0x116ad4(0xb7)+'15T14:30'+':00Z'}),'dispatchedAt':_0x3f300f[_0x116ad4(0x7b)]()[_0x116ad4(0x87)]()[_0xcd3a8b(0xe9)]()['openapi']({'description':_0xcd3a8b(0x92)+_0x116ad4(0xe7)+_0xcd3a8b(0xa2)+_0x116ad4(0x76)+'ed','example':_0x116ad4(0xb7)+_0xcd3a8b(0x72)+_0xcd3a8b(0xd0)}),'readyForDispatchAt':_0x3f300f['date']()[_0xcd3a8b(0x87)]()[_0x116ad4(0xe9)]()[_0xcd3a8b(0xb0)]({'description':'Date\x20whe'+'n\x20the\x20or'+_0xcd3a8b(0xa2)+'ready\x20fo'+'r\x20dispat'+'ch','example':_0x116ad4(0xb7)+_0x116ad4(0x72)+_0x116ad4(0xd0)}),'createdAt':_0x3f300f['date']()[_0x116ad4(0xb0)]({'description':_0xcd3a8b(0x92)+'n\x20the\x20or'+_0xcd3a8b(0xa2)+'created','example':_0xcd3a8b(0xb7)+_0xcd3a8b(0x89)+_0xcd3a8b(0xd0)}),'completedAt':_0x3f300f[_0xcd3a8b(0x7b)]()[_0x116ad4(0x87)]()['optional']()['openapi']({'description':_0xcd3a8b(0x92)+_0xcd3a8b(0xe7)+_0xcd3a8b(0xa2)+_0x116ad4(0xe0)+'d','example':_0xcd3a8b(0xb7)+_0xcd3a8b(0xa8)+':00Z'}),'cancelledAt':_0x3f300f[_0xcd3a8b(0x7b)]()[_0x116ad4(0x87)]()[_0xcd3a8b(0xe9)]()[_0xcd3a8b(0xb0)]({'description':_0x116ad4(0x92)+_0x116ad4(0xe7)+'der\x20was\x20'+_0xcd3a8b(0x74)+'d','example':_0xcd3a8b(0xb7)+_0xcd3a8b(0xe5)+_0xcd3a8b(0xd0)}),'inventoryDeductedAt':_0x3f300f['date']()[_0xcd3a8b(0x87)]()[_0xcd3a8b(0xe9)]()[_0x116ad4(0xb0)]({'description':_0xcd3a8b(0x92)+'n\x20the\x20pa'+_0xcd3a8b(0x7f)+_0xcd3a8b(0xdc)+_0x116ad4(0xe2)+'educted','example':'2023-06-'+_0xcd3a8b(0x89)+_0xcd3a8b(0xd0)}),'inventoryConflictAt':_0x3f300f[_0xcd3a8b(0x7b)]()[_0x116ad4(0x87)]()[_0x116ad4(0xe9)]()[_0x116ad4(0xb0)]({'description':'Date\x20whe'+_0xcd3a8b(0xda)+_0xcd3a8b(0x7f)+_0x116ad4(0x85)+_0xcd3a8b(0x6b)+_0x116ad4(0x8a)+_0xcd3a8b(0x80)+'y\x20review','example':_0xcd3a8b(0xb7)+'15T14:30'+_0x116ad4(0xd0)}),'inventoryConflictItems':_0x3f300f[_0xcd3a8b(0xc1)](InventoryConflictItemSchema)[_0xcd3a8b(0x87)]()['optional']()['openapi']({'description':'List\x20of\x20'+_0x116ad4(0xab)+'ms\x20that\x20'+'could\x20no'+_0x116ad4(0xec)+_0xcd3a8b(0xa4)+_0xcd3a8b(0xaf)+_0xcd3a8b(0xde)}),'shippingAddress':_0x6e3c04[_0xcd3a8b(0x87)]()[_0xcd3a8b(0xe9)](),'fulfilmentMethod':_0x8c97e7[_0xcd3a8b(0xb0)]({'description':_0x116ad4(0xcb)+_0xcd3a8b(0x9b)+'fulfilme'+'nt\x20(pick'+_0x116ad4(0xb8)+_0xcd3a8b(0x81),'example':_0x116ad4(0x8c)}),'currency':_0x2d1fe9[_0x116ad4(0xb0)]({'description':_0xcd3a8b(0xbd)+_0xcd3a8b(0x8b)+_0x116ad4(0x71)+_0xcd3a8b(0xea),'example':_0xcd3a8b(0xbc)}),'payment':_0xb2c478})[_0x116ad4(0xd5)+'m'](_0x1446f6=>{const _0x1dfc8f=_0xcd3a8b,_0x23605e=_0xcd3a8b,_0x3952d7={'sSZwF':_0x1dfc8f(0x9c)};let _0x8d9214;return _0x1446f6[_0x23605e(0x74)+'dAt']?_0x8d9214=_0x23605e(0x74)+'d':_0x1446f6[_0x1dfc8f(0xe0)+'dAt']?_0x8d9214='complete'+'d':_0x1446f6[_0x23605e(0x76)+_0x23605e(0xa9)]?_0x8d9214=_0x23605e(0x76)+'ed':_0x1446f6[_0x1dfc8f(0x7c)+_0x1dfc8f(0x96)+'At']?_0x8d9214=_0x1dfc8f(0x82)+_0x23605e(0xdb)+'ch':_0x1446f6[_0x23605e(0x9c)+'At']?_0x8d9214=_0x3952d7['sSZwF']:_0x8d9214=_0x1dfc8f(0x95),Object[_0x1dfc8f(0x78)](Object[_0x23605e(0x78)]({},_0x1446f6),{'status':_0x8d9214});})[_0x116ad4(0xb0)](_0x116ad4(0xa5)),CreateOrderSchema=_0x447ef1[_0xcd3a8b(0x6e)]({'fulfilmentMethod':_0x8c97e7[_0x116ad4(0x73)](_0xcd3a8b(0x8c)),'payment':_0x3f300f[_0xcd3a8b(0xc0)]({'provider':_0x59fae5,'method':_0x3b865c}),'checkoutBaseUrl':_0x3f300f['string']()['url']()})[_0xcd3a8b(0xca)](_0xc97386=>_0xc97386[_0x116ad4(0x83)+_0x116ad4(0x8d)]!==_0x116ad4(0x8c)||_0xc97386['shipping'+'MethodId']!==void 0x0,{'message':_0xcd3a8b(0xe8)+_0xcd3a8b(0xc9)+_0x116ad4(0xd3)+_0x116ad4(0xad)+_0xcd3a8b(0xbf)+_0x116ad4(0x7d)+'od\x20is\x20\x27d'+_0x116ad4(0xb3),'path':[_0x116ad4(0xe8)+'MethodId']})[_0xcd3a8b(0xb0)](_0x116ad4(0x8e)+_0xcd3a8b(0xea));
|
|
1
|
+
import{z as e}from"@hono/zod-openapi";import{AddressSchema as a}from"../../schemas/address.schema";import{currency as o}from"../../schemas/currency.schema";import{locale as n}from"../../schemas/locales.schema";import{CartItemSchema as p,CartSchema as d}from"../cart/cart.schema";import{FileSchema as l}from"../file/file.schema";import{PaymentMethodSchema as c,PaymentProviderSchema as s,PaymentSchema as m}from"../payment/payment.schema";import{ShippingMethodSchema as h}from"../shipping-method/shipping-method.schema";import{fulfilmentMethod as r}from"./fulfilment.schema";export const OrderStatusSchema=e.enum(["draft","pending","accepted","ready-for-dispatch","dispatched","completed","cancelled"]).openapi({description:"Status of the order",example:"accepted"}),OrderItemSchema=e.object({translations:e.array(e.object({locale:n.openapi({description:"Locale of the translation",example:"en-US"}),title:e.string().openapi({description:"Title of the ordered product",example:"Premium Watch"}),subtitle:e.string().openapi({description:"Additional details about the ordered item, including modifiers",example:"Color: Silver, Size: Large"})})).openapi({description:"Translations for the order item"}),rawData:p,unitPrice:e.number().min(0).openapi({description:"Price per unit of the item",example:299.99}),image:l.nullable().optional(),totalPrice:e.number().min(0).openapi({description:"Total price for this item (unitPrice \xD7 quantity)",example:599.98}),quantity:e.number().min(1).openapi({description:"Number of units ordered",example:2}),productSnapshotId:e.string().cuid()}).openapi("OrderItem"),InventoryConflictItemSchema=e.object({productId:e.string().cuid(),title:e.string(),requestedQuantity:e.number().int().min(1),availableQuantity:e.number().int().min(0)}).openapi("InventoryConflictItem"),OrderSchema=e.object({id:e.string().openapi({description:"Unique identifier for the order",example:"clj1234567890abcdef"}),referenceId:e.string().openapi({description:"External reference ID for the order",example:"ORD-12345"}),status:OrderStatusSchema.optional(),token:e.string().openapi({description:"Security token for order verification",example:"a1b2c3d4e5f6g7h8i9j0"}),expiresAt:e.date().openapi({description:"Expiration date for the order",example:"2023-12-31T23:59:59Z"}),items:e.array(OrderItemSchema).min(1).openapi({description:"Array of items in the order"}),shippingMethod:h.nullable().openapi({description:"Shipping method selected for the order"}),acceptedAt:e.date().nullable().optional().openapi({description:"Date when the order was accepted",example:"2023-06-15T14:30:00Z"}),dispatchedAt:e.date().nullable().optional().openapi({description:"Date when the order was dispatched",example:"2023-06-16T09:15:00Z"}),readyForDispatchAt:e.date().nullable().optional().openapi({description:"Date when the order was ready for dispatch",example:"2023-06-16T09:15:00Z"}),createdAt:e.date().openapi({description:"Date when the order was created",example:"2023-06-15T14:30:00Z"}),completedAt:e.date().nullable().optional().openapi({description:"Date when the order was completed",example:"2023-06-18T11:45:00Z"}),cancelledAt:e.date().nullable().optional().openapi({description:"Date when the order was cancelled",example:"2023-06-14T16:20:00Z"}),inventoryDeductedAt:e.date().nullable().optional().openapi({description:"Date when the paid order inventory was deducted",example:"2023-06-15T14:30:00Z"}),inventoryConflictAt:e.date().nullable().optional().openapi({description:"Date when the paid order was flagged for manual inventory review",example:"2023-06-15T14:30:00Z"}),inventoryConflictItems:e.array(InventoryConflictItemSchema).nullable().optional().openapi({description:"List of line items that could not be deducted after payment"}),shippingAddress:a.nullable().optional(),fulfilmentMethod:r.openapi({description:"Method of order fulfilment (pickup or delivery)",example:"delivery"}),currency:o.openapi({description:"Currency used for the order",example:"USD"}),payment:m}).transform(t=>{let i;return t.cancelledAt?i="cancelled":t.completedAt?i="completed":t.dispatchedAt?i="dispatched":t.readyForDispatchAt?i="ready-for-dispatch":t.acceptedAt?i="accepted":i="pending",Object.assign(Object.assign({},t),{status:i})}).openapi("Order"),CreateOrderSchema=d.extend({fulfilmentMethod:r.default("delivery"),payment:e.object({provider:s,method:c}),checkoutBaseUrl:e.string().url()}).refine(t=>t.fulfilmentMethod!=="delivery"||t.shippingMethodId!==void 0,{message:"shippingMethodId is required when fulfilmentMethod is 'delivery'",path:["shippingMethodId"]}).openapi("CreateOrder");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x54463f=_0x1fbf,_0x111348=_0x1fbf;(function(_0x25b36a,_0x50f27a){const _0x57c044=_0x1fbf,_0x8750fb=_0x1fbf,_0x45f517=_0x25b36a();while(!![]){try{const _0x2dc60d=-parseInt(_0x57c044(0x170))/0x1+-parseInt(_0x8750fb(0x1d0))/0x2*(parseInt(_0x8750fb(0x1f9))/0x3)+parseInt(_0x8750fb(0x169))/0x4*(parseInt(_0x57c044(0x1b8))/0x5)+parseInt(_0x57c044(0x1cd))/0x6+parseInt(_0x8750fb(0x1cf))/0x7+parseInt(_0x8750fb(0x17c))/0x8+-parseInt(_0x8750fb(0x168))/0x9;if(_0x2dc60d===_0x50f27a)break;else _0x45f517['push'](_0x45f517['shift']());}catch(_0x282309){_0x45f517['push'](_0x45f517['shift']());}}}(_0x3074,0x84a46));import{__awaiter as _0x47d18e}from'tslib';import{z as _0x2fb85e}from'@hono/zod-openapi';import{customAlphabet as _0x4f0228}from'nanoid';function _0x1fbf(_0x121630,_0x410c2c){_0x121630=_0x121630-0x161;const _0x3074be=_0x3074();let _0x1fbf49=_0x3074be[_0x121630];if(_0x1fbf['yTsTjb']===undefined){var _0x4a9da3=function(_0x5c79cf){const _0xf85779='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4a8c84='',_0x3b7d26='';for(let _0x10ea66=0x0,_0x42e076,_0x4a006f,_0x4cc825=0x0;_0x4a006f=_0x5c79cf['charAt'](_0x4cc825++);~_0x4a006f&&(_0x42e076=_0x10ea66%0x4?_0x42e076*0x40+_0x4a006f:_0x4a006f,_0x10ea66++%0x4)?_0x4a8c84+=String['fromCharCode'](0xff&_0x42e076>>(-0x2*_0x10ea66&0x6)):0x0){_0x4a006f=_0xf85779['indexOf'](_0x4a006f);}for(let _0x4d2842=0x0,_0x3e2c35=_0x4a8c84['length'];_0x4d2842<_0x3e2c35;_0x4d2842++){_0x3b7d26+='%'+('00'+_0x4a8c84['charCodeAt'](_0x4d2842)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b7d26);};_0x1fbf['jwJtuL']=_0x4a9da3,_0x1fbf['SjFRBR']={},_0x1fbf['yTsTjb']=!![];}const _0x3cf108=_0x3074be[0x0],_0x1cdc0a=_0x121630+_0x3cf108,_0x36392a=_0x1fbf['SjFRBR'][_0x1cdc0a];return!_0x36392a?(_0x1fbf49=_0x1fbf['jwJtuL'](_0x1fbf49),_0x1fbf['SjFRBR'][_0x1cdc0a]=_0x1fbf49):_0x1fbf49=_0x36392a,_0x1fbf49;}import{HttpException as _0x16afb}from'../../core/exceptions/http-exception';import{logger as _0x2e3ef6}from'../../core/logging/pino';import{OrderSchema as _0x55c48b,OrganizationSchema as _0x2d6e44,PaginationMetaSchema as _0x3bc409,UserSchema as _0x56f454,localeMap as _0x3e48b6}from'../../schemas';import{transformCartItemToOrderItem as _0x2bed78}from'../cart/cart.util';const S=_0x4f0228('12345678'+_0x54463f(0x1da)+_0x111348(0x1f3)+_0x54463f(0x1a9)+_0x111348(0x1f5),0x6);class z extends _0x16afb{constructor(_0x25cf47){const _0x367a32=_0x111348,_0x1a9d48=_0x111348;super(0x199,_0x25cf47[_0x367a32(0x1b3)]),this[_0x367a32(0x1b2)]=_0x25cf47;}}class _{constructor(_0x372b62,_0x2b5db,_0x17574d,_0x3ff762){const _0x12a018=_0x54463f,_0x533c22=_0x54463f;this[_0x12a018(0x1f7)]=_0x372b62,this[_0x12a018(0x1ae)+_0x12a018(0x164)]=_0x2b5db,this[_0x533c22(0x1c4)+_0x533c22(0x1c7)]=_0x17574d,this[_0x533c22(0x18d)+_0x533c22(0x175)]=_0x3ff762;}[_0x111348(0x174)+_0x54463f(0x1c6)](_0x58febc,_0x272c97){const _0x5d6787={'OsAij':function(_0x1f67eb,_0x408327,_0x586b62,_0x4c5477,_0x16163c){return _0x1f67eb(_0x408327,_0x586b62,_0x4c5477,_0x16163c);}};return _0x5d6787['OsAij'](_0x47d18e,this,void 0x0,void 0x0,function*(){const _0xc40ea6=_0x1fbf,_0x30ae46=_0x1fbf;try{yield _0x272c97();}catch(_0x4587fc){_0x2e3ef6[_0xc40ea6(0x191)](Object['assign']({'err':_0x4587fc},_0x58febc),_0x30ae46(0x1e3)+_0xc40ea6(0x176)+'ailed');}});}[_0x54463f(0x19a)+_0x54463f(0x182)+'es'](_0x3fc3bb){const _0x172939=_0x54463f,_0x5f3e84=_0x54463f,_0x49b9b0=_0x3fc3bb[_0x172939(0x16f)]()[_0x172939(0x1f1)+'ase']()[_0x5f3e84(0x172)](/-/g,'_');if(!_0x49b9b0)return[];const [_0x34a2af]=_0x49b9b0[_0x172939(0x190)]('_');return!_0x34a2af||_0x34a2af===_0x49b9b0?[_0x49b9b0]:[_0x49b9b0,_0x34a2af];}[_0x54463f(0x18a)+_0x54463f(0x1de)+_0x111348(0x18e)](_0x3f84b3,_0x263b0c,_0x46d5e6,_0x27d639){const _0x3dd068=_0x111348,_0x5df114=_0x111348,_0x3ecb7a=new Set(_0x46d5e6);if(_0x3f84b3&&_0x3ecb7a[_0x3dd068(0x1cb)](_0x3f84b3))return _0x3f84b3;if(!_0x263b0c)return _0x27d639;const _0x2d9768=_0x263b0c[_0x5df114(0x190)](',')[_0x5df114(0x19f)]((_0x3a159c,_0x3f83ff)=>{const _0x268ef1=_0x5df114,_0x4d3585=_0x5df114,[_0x49262d,..._0x33bf3b]=_0x3a159c[_0x268ef1(0x16f)]()[_0x268ef1(0x190)](';'),_0x737c33=_0x33bf3b[_0x268ef1(0x173)](_0x52316d=>_0x52316d[_0x268ef1(0x16f)]()[_0x4d3585(0x171)+'th']('q=')),_0x11c1ac=_0x737c33?Number['parseFlo'+'at'](_0x737c33['trim']()[_0x4d3585(0x18b)](0x2)):0x1;return{'index':_0x3f83ff,'quality':Number[_0x268ef1(0x19e)](_0x11c1ac)?_0x11c1ac:0x0,'rawLocale':_0x49262d};})[_0x5df114(0x1e1)](_0x403582=>_0x403582[_0x3dd068(0x1b7)+'e'])[_0x5df114(0x1b9)]((_0x42433f,_0x23e562)=>_0x23e562['quality']!==_0x42433f[_0x3dd068(0x16e)]?_0x23e562['quality']-_0x42433f[_0x3dd068(0x16e)]:_0x42433f[_0x5df114(0x1ce)]-_0x23e562[_0x5df114(0x1ce)]);for(const _0x1a48e5 of _0x2d9768)for(const _0x2b8a39 of this[_0x3dd068(0x19a)+_0x3dd068(0x182)+'es'](_0x1a48e5[_0x5df114(0x1b7)+'e']))if(_0x3e48b6[_0x5df114(0x1cb)](_0x2b8a39)&&_0x3ecb7a[_0x3dd068(0x1cb)](_0x2b8a39))return _0x2b8a39;return _0x27d639;}[_0x111348(0x1b0)+_0x111348(0x1db)](_0x3b62a2,_0x271d4d,_0x2465bf,_0x2028e0){const _0x1a52f1=_0x54463f,_0x47b68f=_0x54463f,_0x42c7e1={'MtxMh':_0x1a52f1(0x1d3)+_0x47b68f(0x166)+_0x1a52f1(0x1b1),'DCZDN':'delivery','rCLal':function(_0x38ce80,_0x4b730a){return _0x38ce80===_0x4b730a;},'wxAgp':function(_0x4c4ab9,_0x9b0d00){return _0x4c4ab9!==_0x9b0d00;},'XiDPe':function(_0x2311fa,_0x40cb5d,_0x111e24,_0x2edc53,_0x5c7b15){return _0x2311fa(_0x40cb5d,_0x111e24,_0x2edc53,_0x5c7b15);}};return _0x42c7e1[_0x1a52f1(0x1ba)](_0x47d18e,this,void 0x0,void 0x0,function*(){const _0x687a66=_0x47b68f,_0x4f96e1=_0x47b68f;var _0x2ac1c1,_0x4bf66c,_0x1cfee2,_0x5631a6,_0x3c3ba4;const _0x187eb8=yield this[_0x687a66(0x1f7)]['organiza'+_0x687a66(0x1d9)][_0x687a66(0x19b)+'t']({'where':{'id':_0x3b62a2},'include':{'configuration':!0x0}});if(!_0x187eb8)throw new _0x16afb(0x194,_0x42c7e1[_0x4f96e1(0x1a2)]);const _0x36efcd=this[_0x687a66(0x18a)+_0x4f96e1(0x1de)+_0x4f96e1(0x18e)](_0x2028e0?.[_0x4f96e1(0x1ea)],_0x2028e0?.[_0x687a66(0x1c9)+_0x4f96e1(0x193)],_0x187eb8[_0x687a66(0x1b4)+_0x4f96e1(0x1af)][_0x687a66(0x1ed)+_0x4f96e1(0x1c1)],_0x187eb8['configur'+_0x4f96e1(0x1af)][_0x687a66(0x1b5)+_0x4f96e1(0x18e)]),_0x4c000d=yield this[_0x4f96e1(0x1c4)+_0x4f96e1(0x1c7)][_0x687a66(0x187)+_0x687a66(0x17f)](_0x3b62a2,_0x2465bf,{'locale':_0x36efcd});if(_0x4c000d[_0x4f96e1(0x1dc)+'roductId'+'s'][_0x4f96e1(0x1e8)]>0x0||this[_0x687a66(0x1bd)+_0x4f96e1(0x19c)](_0x2465bf['items'],_0x4c000d[_0x687a66(0x17b)+_0x4f96e1(0x1e2)]))throw new z(Object['assign'](Object[_0x687a66(0x1e6)]({},_0x4c000d),{'message':_0x4f96e1(0x178)+_0x687a66(0x198)+_0x687a66(0x185)+_0x4f96e1(0x16b)+_0x4f96e1(0x1c0)+_0x687a66(0x1be)+_0x687a66(0x1bb)+_0x687a66(0x1bc)+_0x687a66(0x1bf)+'y.'}));const _0x47c3c1=yield this[_0x4f96e1(0x1f7)]['address'][_0x687a66(0x19b)+'t']({'where':{'users':{'some':{'id':_0x271d4d['id']}},'isDefault':!0x0}});if(_0x2465bf[_0x687a66(0x1e7)+'ntMethod']===_0x42c7e1[_0x4f96e1(0x17a)]&&!_0x47c3c1)throw new _0x16afb(0x190,_0x4f96e1(0x165)+_0x4f96e1(0x197)+_0x4f96e1(0x1d6)+_0x687a66(0x183)+_0x687a66(0x1d7)+_0x4f96e1(0x163)+'ss');const _0x2f7337=yield Promise[_0x687a66(0x1f2)](_0x4c000d[_0x687a66(0x17b)+_0x687a66(0x1e2)][_0x687a66(0x19f)](_0x2bed78(this['prisma']))),_0x49304a=yield this[_0x4f96e1(0x1f7)][_0x687a66(0x199)+_0x4f96e1(0x1d8)][_0x4f96e1(0x19b)+'t']({'where':{'id':_0x2465bf[_0x4f96e1(0x199)+_0x687a66(0x194)]},'include':{'shippingZones':!0x0}}),_0x1bbfea=(_0x4bf66c=(_0x2ac1c1=_0x49304a?.['shipping'+_0x687a66(0x1ad)][0x0])===null||_0x42c7e1[_0x4f96e1(0x192)](_0x2ac1c1,void 0x0)?void 0x0:_0x2ac1c1[_0x4f96e1(0x1a5)])!==null&&_0x4bf66c!==void 0x0?_0x4bf66c:0x0,_0xa4d16a=_0x2f7337[_0x4f96e1(0x1ef)]((_0x2c5204,_0x9b817f)=>_0x2c5204+_0x9b817f[_0x4f96e1(0x1a3)+'ce'],0x0),_0x690a11=_0xa4d16a+_0x1bbfea,_0x596a3=yield this[_0x4f96e1(0x1f7)]['order']['create']({'data':Object['assign'](Object[_0x4f96e1(0x1e6)]({'token':S(),'referenceId':S(),'organization':{'connect':{'id':_0x3b62a2}},'fulfilmentMethod':_0x2465bf[_0x687a66(0x1e7)+_0x4f96e1(0x1ec)],'shippingMethod':_0x2465bf[_0x4f96e1(0x199)+_0x687a66(0x194)]?{'connect':{'id':_0x2465bf[_0x4f96e1(0x199)+_0x4f96e1(0x194)]}}:void 0x0,'currency':_0x187eb8[_0x4f96e1(0x1b4)+_0x4f96e1(0x1af)][_0x4f96e1(0x1c3)+_0x687a66(0x1a8)],'sourceIp':_0x687a66(0x1a7)+'1','items':{'create':_0x2f7337}},_0x47c3c1?{'shippingAddress':{'create':Object[_0x4f96e1(0x1e6)](Object[_0x687a66(0x1e6)]({},_0x47c3c1),{'id':void 0x0})}}:{}),{'user':{'connect':{'id':_0x271d4d['id']}},'payment':{'create':{'method':_0x2465bf[_0x4f96e1(0x1e9)]['method'],'provider':_0x2465bf[_0x4f96e1(0x1e9)]['provider'],'shipping':(_0x5631a6=(_0x1cfee2=_0x49304a?.['shipping'+_0x4f96e1(0x1ad)][0x0])===null||_0x1cfee2===void 0x0?void 0x0:_0x1cfee2[_0x4f96e1(0x1a5)])!==null&&_0x5631a6!==void 0x0?_0x5631a6:0x0,'subtotal':_0xa4d16a,'total':_0x690a11,'discount':0x0,'currency':_0x187eb8[_0x4f96e1(0x1b4)+_0x4f96e1(0x1af)][_0x4f96e1(0x1c3)+_0x687a66(0x1a8)]}}}),'include':{'items':{'include':{'translations':!0x0,'image':!0x0}},'payment':!0x0,'shippingMethod':{'include':{'shippingZones':!0x0}}}}),_0x271b38=_0x55c48b[_0x687a66(0x1a1)](_0x596a3);return{'redirectUrl':(_0x3c3ba4=(yield this[_0x687a66(0x1ae)+_0x687a66(0x164)][_0x687a66(0x184)+_0x687a66(0x1dd)+_0x4f96e1(0x162)](_0x3b62a2,_0x271d4d,_0x271b38,{'locale':_0x36efcd,'defaultLocale':_0x187eb8[_0x687a66(0x1b4)+'ation'][_0x687a66(0x1b5)+_0x687a66(0x18e)],'successUrl':_0x2465bf[_0x687a66(0x179)+_0x687a66(0x1eb)]+('/account'+_0x4f96e1(0x1aa))+_0x596a3['id']+('?clearCa'+_0x687a66(0x195)),'cancelUrl':_0x2465bf['checkout'+'BaseUrl']+(_0x687a66(0x1a4)+_0x4f96e1(0x1e0)+_0x687a66(0x16c)+'ayment')}))[_0x687a66(0x186)+_0x4f96e1(0x177)])!==null&&_0x42c7e1['wxAgp'](_0x3c3ba4,void 0x0)?_0x3c3ba4:void 0x0,'order':_0x55c48b[_0x687a66(0x1a1)](_0x596a3)};});}[_0x111348(0x1bd)+_0x111348(0x19c)](_0x8c9c8e,_0x2b97df){const _0x2a2723=_0x54463f,_0x5dd023=_0x54463f;return JSON[_0x2a2723(0x180)+'y'](_0x8c9c8e)!==JSON[_0x5dd023(0x180)+'y'](_0x2b97df);}['sendOrde'+_0x54463f(0x1f4)+_0x111348(0x16d)](_0x496627,_0x4738d4){const _0x3495ee={'CZuTL':function(_0x49ea73,_0x40b623,_0x393315,_0x552fa0,_0x29e0b3){return _0x49ea73(_0x40b623,_0x393315,_0x552fa0,_0x29e0b3);}};return _0x3495ee['CZuTL'](_0x47d18e,this,void 0x0,void 0x0,function*(){const _0x582dc9=_0x1fbf,_0x533bb3=_0x1fbf,_0x89df77=yield this[_0x582dc9(0x1f7)][_0x582dc9(0x16a)][_0x533bb3(0x19b)+'t']({'where':{'id':_0x496627},'include':{'items':{'include':{'translations':!0x0,'image':!0x0}},'payment':!0x0,'organization':{'include':{'address':!0x0,'configuration':!0x0,'logoFile':!0x0,'members':{'include':{'user':!0x0}}}},'shippingAddress':!0x0,'shippingMethod':{'include':{'shippingZones':!0x0}}}}),_0x1c5777=_0x4738d4??_0x89df77?.['userId'],_0x13b661=_0x1c5777?yield this[_0x533bb3(0x1f7)][_0x533bb3(0x18f)][_0x582dc9(0x19b)+'t']({'where':{'id':_0x1c5777}}):null;if(!_0x89df77||!_0x13b661)return;const _0x3bbd47=_0x56f454[_0x533bb3(0x1a1)](_0x13b661),_0x407394=_0x2d6e44['parse'](_0x89df77['organiza'+'tion']),_0x32ae9f=_0x55c48b['parse'](_0x89df77);yield this[_0x582dc9(0x174)+'ndEmail']({'emailType':_0x533bb3(0x1d4)+_0x533bb3(0x161)+'on','orderId':_0x89df77['id'],'organizationId':_0x89df77[_0x582dc9(0x18c)+_0x582dc9(0x167)],'userId':_0x13b661['id']},()=>this['emailSer'+'vice'][_0x533bb3(0x1f6)+_0x533bb3(0x17e)+'ationEma'+'il'](_0x89df77[_0x582dc9(0x18c)+'tionId'],_0x3bbd47,_0x407394,_0x32ae9f));for(const _0x1dc9f1 of _0x89df77['organiza'+_0x533bb3(0x1d9)][_0x533bb3(0x1a6)])yield this[_0x582dc9(0x174)+_0x582dc9(0x1c6)]({'emailType':_0x582dc9(0x1ac)+'tificati'+'on','memberId':_0x1dc9f1[_0x533bb3(0x18f)]['id'],'orderId':_0x89df77['id'],'organizationId':_0x89df77[_0x533bb3(0x18c)+_0x582dc9(0x167)],'userId':_0x13b661['id']},()=>this[_0x582dc9(0x18d)+'vice'][_0x582dc9(0x1f6)+'rNotific'+_0x533bb3(0x1c8)+'il'](_0x89df77[_0x533bb3(0x18c)+'tionId'],_0x3bbd47,_0x56f454[_0x582dc9(0x1a1)](_0x1dc9f1[_0x533bb3(0x18f)]),_0x407394,_0x32ae9f));});}[_0x111348(0x1c5)](_0x106a4,_0x294298,_0xac57e9){const _0x23856d=_0x54463f,_0x38adbe=_0x54463f,_0x5cfb71={'sJuXe':_0x23856d(0x188)+_0x23856d(0x1e4)};return _0x47d18e(this,void 0x0,void 0x0,function*(){const _0x1e3648=_0x23856d,_0x46428d=_0x23856d,_0xcb18ed=yield this[_0x1e3648(0x1f7)][_0x1e3648(0x16a)][_0x46428d(0x1a0)+'ue']({'where':{'id':_0xac57e9,'organizationId':_0x294298,'deletedAt':null,'user':{'id':_0x106a4['id']}},'include':{'items':{'include':{'translations':!0x0,'image':!0x0}},'shippingAddress':!0x0,'shippingMethod':{'include':{'shippingZones':!0x0}},'payment':!0x0}});if(!_0xcb18ed)throw new _0x16afb(0x194,_0x5cfb71[_0x46428d(0x1f0)]);return _0x55c48b[_0x46428d(0x1a1)](_0xcb18ed);});}[_0x54463f(0x1d2)+_0x111348(0x181)](_0xd46c24,_0x376a9c,_0x410172){const _0x5a7a57=_0x111348,_0x563a2c={'XlCzL':'insensit'+_0x5a7a57(0x189)};return _0x47d18e(this,void 0x0,void 0x0,function*(){const _0x35fe81=_0x5a7a57,_0xe3e2c=_0x5a7a57,{page:_0xe77b29=0x1,limit:_0x40d0fa=0xa,search:_0x20878f}=_0x410172,[_0x577ee5,_0x3ea04e]=yield this[_0x35fe81(0x1f7)][_0xe3e2c(0x16a)]['paginate']({'where':Object[_0xe3e2c(0x1e6)]({'organizationId':_0x376a9c,'userId':_0xd46c24,'deletedAt':null},_0x20878f?{'referenceId':{'contains':_0x20878f,'mode':_0x563a2c[_0xe3e2c(0x19d)]}}:{}),'include':{'items':{'include':{'translations':!0x0,'image':!0x0}},'shippingAddress':!0x0,'shippingMethod':{'include':{'shippingZones':!0x0}},'payment':!0x0},'orderBy':{'createdAt':'desc'}})[_0x35fe81(0x1df)+'s']({'page':_0xe77b29,'limit':_0x40d0fa});return{'meta':_0x3bc409['parse'](_0x3ea04e),'list':_0x2fb85e[_0x35fe81(0x1e5)](_0x55c48b)[_0x35fe81(0x1a1)](_0x577ee5)};});}[_0x54463f(0x1c5)+'s'](_0x280d98,_0x4d908e){const _0x14e834=_0x111348,_0x361a2b={'BQZtu':function(_0x309a73,_0x16521e,_0x1c36aa,_0x4abd75,_0x5278a8){return _0x309a73(_0x16521e,_0x1c36aa,_0x4abd75,_0x5278a8);}};return _0x361a2b[_0x14e834(0x1cc)](_0x47d18e,this,void 0x0,void 0x0,function*(){const _0x479db3=_0x14e834,_0x237adc=_0x14e834,{page:_0x456922=0x1,limit:_0x146dca=0xa}=_0x4d908e,[_0x12eef1,_0x27f275]=yield this[_0x479db3(0x1f7)][_0x479db3(0x16a)][_0x479db3(0x1f8)]({'where':{'organizationId':_0x280d98,'deletedAt':null},'include':{'items':{'include':{'translations':!0x0,'image':!0x0}},'shippingAddress':!0x0,'shippingMethod':{'include':{'shippingZones':!0x0}},'payment':!0x0},'orderBy':{'createdAt':_0x237adc(0x17d)}})[_0x479db3(0x1df)+'s']({'page':_0x456922,'limit':_0x146dca});return{'meta':_0x3bc409['parse'](_0x27f275),'list':_0x2fb85e[_0x237adc(0x1e5)](_0x55c48b)[_0x237adc(0x1a1)](_0x12eef1)};});}[_0x54463f(0x1ee)+_0x54463f(0x1db)](_0x2ecc9a,_0x210537,_0x2489ce){return _0x47d18e(this,void 0x0,void 0x0,function*(){const _0xf318c=_0x1fbf,_0x25e97d=_0x1fbf;if(!(yield this[_0xf318c(0x1f7)][_0x25e97d(0x16a)]['findUniq'+'ue']({'where':{'id':_0x210537,'organizationId':_0x2ecc9a,'deletedAt':null}})))throw new _0x16afb(0x194,_0xf318c(0x188)+_0x25e97d(0x1e4));yield this[_0x25e97d(0x1f7)][_0x25e97d(0x16a)]['update']({'where':{'id':_0x210537,'organizationId':_0x2ecc9a,'deletedAt':null},'data':{'deletedAt':new Date(),'deletedBy':_0x2489ce}});});}['updateSt'+_0x54463f(0x1d1)](_0x1bc0e4,_0x25b97a,_0x516c63){return _0x47d18e(this,void 0x0,void 0x0,function*(){const _0x500803=_0x1fbf,_0x248568=_0x1fbf;if(!(yield this[_0x500803(0x1f7)][_0x248568(0x16a)][_0x248568(0x1a0)+'ue']({'where':{'id':_0x25b97a,'organizationId':_0x1bc0e4,'deletedAt':null},'include':{'items':!0x0,'shippingMethod':{'include':{'shippingZones':!0x0}}}})))throw new _0x16afb(0x194,'Order\x20no'+_0x248568(0x1e4));let _0x438cd9={};switch(_0x516c63){case _0x500803(0x1b6):_0x438cd9={'acceptedAt':new Date()};break;case _0x500803(0x1c2)+_0x248568(0x1ab)+'ch':_0x438cd9={'readyForDispatchAt':new Date()};break;case _0x248568(0x1d5)+'ed':_0x438cd9={'dispatchedAt':new Date()};break;case _0x500803(0x196)+'d':_0x438cd9={'completedAt':new Date()};break;case'cancelle'+'d':_0x438cd9={'cancelledAt':new Date()};break;}const _0x1e5092=yield this[_0x500803(0x1f7)][_0x500803(0x16a)][_0x248568(0x1ca)]({'where':{'id':_0x25b97a},'data':_0x438cd9,'include':{'items':{'include':{'translations':!0x0,'image':!0x0}},'shippingAddress':!0x0,'shippingMethod':{'include':{'shippingZones':!0x0}},'payment':!0x0}});return _0x55c48b[_0x500803(0x1a1)](_0x1e5092);});}}export{_ as OrderService};export{z as OrderInventoryConflictError};function _0x3074(){const _0x33982b=['Cgf5BwvUDa','Bg9JywXL','qMfZzvvYBa','BNrnzxrOB2q','C3vWCg9YDgu','zgvSzxrLt3i','CMvKDwnL','C0P1wgu','Dg9mB3DLCKm','ywXS','r0HjsKTmtu4','CK5VDgLMAwm','v1HzwG','C2vUze9Yzgu','ChjPC21H','CgfNAw5HDgu','mJm1mdy3nfrhq21bvq','BMzPCM1HDgK','C3nPB24','BMCGywrKCMu','zxj2AwnL','vgHPCYb1C2u','DgLVBIbUB3q','DgLVBKLK','nZe0mdC5ohvcqNbNEq','mJeWnfbNreH0rq','B3jKzxi','yxjLig5VigW','BMCTyw5Klxa','yxrPB25Z','CxvHBgL0Eq','DhjPBq','ntiXotK5DuTqCNvb','C3rHCNrZv2K','CMvWBgfJzq','zMLUza','C2fMzwX5u2u','DMLJzq','BgL2zxj5igy','vxjS','u29TzsbPDgu','y2HLy2TVDxq','renAre4','BM9YBwfSAxO','odq1mdG3mMzmyKDtqG','zgvZyW','CKnVBMzPCM0','yxrH','C3rYAw5NAwy','zxjZ','q2fUzgLKyxq','ysbKzwzHDwW','y3jLyxrLq2G','DxiGy2fYDca','CMvKAxjLy3q','z2v0q2fYDeq','t3jKzxiGBM8','AxzL','CMvZB2X2zum','C2XPy2u','B3jNyw5PEMe','zw1HAwXtzxi','B2nHBgu','DxnLCG','C3bSAxq','zxjYB3i','CKnmywW','BMD1ywDL','twv0Ag9Kswq','CNq9Dhj1zq','y29TCgXLDgu','CIbKB2vZig4','BxmGAw4GEw8','C2HPChbPBMC','Dg9mB2nHBgu','zMLUzezPCNm','B25MBgLJDa','wgXdEKW','AxngAw5PDgu','BwfW','zMLUzfvUAxe','CgfYC2u','txr4twG','Dg90ywXqCMK','l2nOzwnRB3u','ChjPy2u','BwvTyMvYCW','mti3lJaUmc4','DxjYzw5JEq','t1bruLnuvvy','l29YzgvYCY8','CI1KAxnWyxq','B3jKzxiTBM8','wM9Uzxm','Cgf5BwvUDfm','yxrPB24','y3jLyxrLt3i','igzVDw5K','Cgf5Bg9Hza','BwvZC2fNzq','y29UzMLNDxi','zgvMyxvSDeW','ywnJzxb0zwq','CMf3tg9JywW','nJG2nvnKsKvXza','C29YDa','wgLeugu','Aw4GDgHLihi','zxf1zxn0zwq','AgfZq2fYDem','ywLSywjSzsa','ihf1yw50Axq','B25NzxiGyxy','zeXVy2fSzxm','CMvHzhKTzM8','zgvMyxvSDem','y2fYDfnLCNy','z2v0t3jKzxi','BMrfBwfPBa','AwnL','yxrPB25fBwe','ywnJzxb0tge','DxbKyxrL','AgfZ','qLfADhu','ndq4nduYnKzSCwvlAW','Aw5KzxG','ode0mtiXvwnoAxrN','mMXqz2vuCG','yxr1CW','z2v0txLpCMq','t3jNyw5PEMe','B3jKzxiTy28','zgLZCgf0y2G','B3qGAgf2zsa','DcbZAgLWCgK','twv0Ag9K','DgLVBG','otbbqKneruy','zgvY','Aw52ywXPzfa','zwnRB3v0u2u','AgvJA291DeW','D2L0AfbHz2u','Dc9ZAgLWCgK','zMLSDgvY','zwrjDgvTCW','rw1HAwWGzgu','DcbMB3vUza','yxjYyxK','yxnZAwDU','zNvSzMLSBwu','BgvUz3rO'];_0x3074=function(){return _0x33982b;};return _0x3074();}
|
|
1
|
+
import{__awaiter as l}from"tslib";import{z as O}from"@hono/zod-openapi";import{customAlphabet as U}from"nanoid";import{HttpException as m}from"../../core/exceptions/http-exception";import{logger as D}from"../../core/logging/pino";import{OrderSchema as p,OrganizationSchema as Z,PaginationMetaSchema as A,UserSchema as I,localeMap as F}from"../../schemas";import{transformCartItemToOrderItem as E}from"../cart/cart.util";const S=U("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ",6);class z extends m{constructor(t){super(409,t.message),this.payload=t}}class _{constructor(t,i,e,r){this.prisma=t,this.paymentService=i,this.cartService=e,this.emailService=r}safelySendEmail(t,i){return l(this,void 0,void 0,function*(){try{yield i()}catch(e){D.error(Object.assign({err:e},t),"Email delivery failed")}})}toLocaleCandidates(t){const i=t.trim().toLowerCase().replace(/-/g,"_");if(!i)return[];const[e]=i.split("_");return!e||e===i?[i]:[i,e]}resolveCheckoutLocale(t,i,e,r){const n=new Set(e);if(t&&n.has(t))return t;if(!i)return r;const d=i.split(",").map((s,a)=>{const[o,...c]=s.trim().split(";"),g=c.find(f=>f.trim().startsWith("q=")),u=g?Number.parseFloat(g.trim().slice(2)):1;return{index:a,quality:Number.isFinite(u)?u:0,rawLocale:o}}).filter(s=>s.rawLocale).sort((s,a)=>a.quality!==s.quality?a.quality-s.quality:s.index-a.index);for(const s of d)for(const a of this.toLocaleCandidates(s.rawLocale))if(F.has(a)&&n.has(a))return a;return r}createOrder(t,i,e,r){return l(this,void 0,void 0,function*(){var n,d,s,a,o;const c=yield this.prisma.organization.findFirst({where:{id:t},include:{configuration:!0}});if(!c)throw new m(404,"Organization not found");const g=this.resolveCheckoutLocale(r?.locale,r?.acceptLanguage,c.configuration.supportedLocales,c.configuration.defaultLocale),u=yield this.cartService.getCartData(t,e,{locale:g});if(u.invalidProductIds.length>0||this.hasCartConflict(e.items,u.normalizedItems))throw new z(Object.assign(Object.assign({},u),{message:"Some items in your cart are no longer available in the requested quantity."}));const f=yield this.prisma.address.findFirst({where:{users:{some:{id:i.id}},isDefault:!0}});if(e.fulfilmentMethod==="delivery"&&!f)throw new m(400,"This user does not have a default shipping address");const y=yield Promise.all(u.normalizedItems.map(E(this.prisma))),h=yield this.prisma.shippingMethod.findFirst({where:{id:e.shippingMethodId},include:{shippingZones:!0}}),C=(d=(n=h?.shippingZones[0])===null||n===void 0?void 0:n.price)!==null&&d!==void 0?d:0,w=y.reduce((q,k)=>q+k.totalPrice,0),L=w+C,v=yield this.prisma.order.create({data:Object.assign(Object.assign({token:S(),referenceId:S(),organization:{connect:{id:t}},fulfilmentMethod:e.fulfilmentMethod,shippingMethod:e.shippingMethodId?{connect:{id:e.shippingMethodId}}:void 0,currency:c.configuration.defaultCurrency,sourceIp:"127.0.0.1",items:{create:y}},f?{shippingAddress:{create:Object.assign(Object.assign({},f),{id:void 0})}}:{}),{user:{connect:{id:i.id}},payment:{create:{method:e.payment.method,provider:e.payment.provider,shipping:(a=(s=h?.shippingZones[0])===null||s===void 0?void 0:s.price)!==null&&a!==void 0?a:0,subtotal:w,total:L,discount:0,currency:c.configuration.defaultCurrency}}}),include:{items:{include:{translations:!0,image:!0}},payment:!0,shippingMethod:{include:{shippingZones:!0}}}}),b=p.parse(v);return{redirectUrl:(o=(yield this.paymentService.createCheckoutSession(t,i,b,{locale:g,defaultLocale:c.configuration.defaultLocale,successUrl:`${e.checkoutBaseUrl}/account/orders/${v.id}?clearCart=true`,cancelUrl:`${e.checkoutBaseUrl}/checkout/shipping-and-payment`})).redirectUrl)!==null&&o!==void 0?o:void 0,order:p.parse(v)}})}hasCartConflict(t,i){return JSON.stringify(t)!==JSON.stringify(i)}sendOrderNotifications(t,i){return l(this,void 0,void 0,function*(){const e=yield this.prisma.order.findFirst({where:{id:t},include:{items:{include:{translations:!0,image:!0}},payment:!0,organization:{include:{address:!0,configuration:!0,logoFile:!0,members:{include:{user:!0}}}},shippingAddress:!0,shippingMethod:{include:{shippingZones:!0}}}}),r=i??e?.userId,n=r?yield this.prisma.user.findFirst({where:{id:r}}):null;if(!e||!n)return;const d=I.parse(n),s=Z.parse(e.organization),a=p.parse(e);yield this.safelySendEmail({emailType:"order-confirmation",orderId:e.id,organizationId:e.organizationId,userId:n.id},()=>this.emailService.sendOrderConfirmationEmail(e.organizationId,d,s,a));for(const o of e.organization.members)yield this.safelySendEmail({emailType:"order-notification",memberId:o.user.id,orderId:e.id,organizationId:e.organizationId,userId:n.id},()=>this.emailService.sendOrderNotificationEmail(e.organizationId,d,I.parse(o.user),s,a))})}getOrder(t,i,e){return l(this,void 0,void 0,function*(){const r=yield this.prisma.order.findUnique({where:{id:e,organizationId:i,deletedAt:null,user:{id:t.id}},include:{items:{include:{translations:!0,image:!0}},shippingAddress:!0,shippingMethod:{include:{shippingZones:!0}},payment:!0}});if(!r)throw new m(404,"Order not found");return p.parse(r)})}getMyOrders(t,i,e){return l(this,void 0,void 0,function*(){const{page:r=1,limit:n=10,search:d}=e,[s,a]=yield this.prisma.order.paginate({where:Object.assign({organizationId:i,userId:t,deletedAt:null},d?{referenceId:{contains:d,mode:"insensitive"}}:{}),include:{items:{include:{translations:!0,image:!0}},shippingAddress:!0,shippingMethod:{include:{shippingZones:!0}},payment:!0},orderBy:{createdAt:"desc"}}).withPages({page:r,limit:n});return{meta:A.parse(a),list:O.array(p).parse(s)}})}getOrders(t,i){return l(this,void 0,void 0,function*(){const{page:e=1,limit:r=10}=i,[n,d]=yield this.prisma.order.paginate({where:{organizationId:t,deletedAt:null},include:{items:{include:{translations:!0,image:!0}},shippingAddress:!0,shippingMethod:{include:{shippingZones:!0}},payment:!0},orderBy:{createdAt:"desc"}}).withPages({page:e,limit:r});return{meta:A.parse(d),list:O.array(p).parse(n)}})}deleteOrder(t,i,e){return l(this,void 0,void 0,function*(){if(!(yield this.prisma.order.findUnique({where:{id:i,organizationId:t,deletedAt:null}})))throw new m(404,"Order not found");yield this.prisma.order.update({where:{id:i,organizationId:t,deletedAt:null},data:{deletedAt:new Date,deletedBy:e}})})}updateStatus(t,i,e){return l(this,void 0,void 0,function*(){if(!(yield this.prisma.order.findUnique({where:{id:i,organizationId:t,deletedAt:null},include:{items:!0,shippingMethod:{include:{shippingZones:!0}}}})))throw new m(404,"Order not found");let n={};switch(e){case"accepted":n={acceptedAt:new Date};break;case"ready-for-dispatch":n={readyForDispatchAt:new Date};break;case"dispatched":n={dispatchedAt:new Date};break;case"completed":n={completedAt:new Date};break;case"cancelled":n={cancelledAt:new Date};break}const d=yield this.prisma.order.update({where:{id:i},data:n,include:{items:{include:{translations:!0,image:!0}},shippingAddress:!0,shippingMethod:{include:{shippingZones:!0}},payment:!0}});return p.parse(d)})}}export{_ as OrderService};export{z as OrderInventoryConflictError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{z as e}from"@hono/zod-openapi";import{AddressSchema as t,CreateAddressSchema as o}from"../../schemas/address.schema";export const RecipientSchema=e.object({id:e.string().openapi({example:"clf9876543210abcdef",description:"ID of the customer"}),firstname:e.string().nullable().optional().openapi({example:"John Doe",description:"Name of the customer"}),email:e.string().nullable().optional().openapi({example:"john.doe@example.com",description:"Email of the customer"}),phone:e.string().nullable().optional().openapi({example:"+1234567890",description:"Phone number of the customer"}),address:t.nullable().optional().openapi({description:"Address of the customer"}),createdAt:e.date(),updatedAt:e.date()}).openapi("Customer"),CreateRecipientSchema=RecipientSchema.pick({firstname:!0,email:!0,phone:!0}).extend({address:o}).openapi("Customer"),UpdateCustomerSchema=CreateRecipientSchema.partial().openapi("UpdateCustomer");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{z as e}from"@hono/zod-openapi";import{AddressSchema as t,CreateAddressSchema as i,UpdateAddressSchema as a}from"../../schemas/address.schema";export const LegalEntitySchema=e.object({id:e.string().openapi({example:"clm1234567890abcdef",description:"The unique identifier of the legal entity"}),name:e.string().openapi({example:"Acme Corporation",description:"The name of the legal entity"}),taxId:e.string().min(2).max(20).openapi({example:"PL1234567890",description:"The TAX ID of the legal entity"}),email:e.string().email().nullable().openapi({example:"contact@acme.com",description:"The email of the legal entity",format:"email"}),phone:e.string().nullable().openapi({example:"+48123456789",description:"The phone number of the legal entity"}),createdAt:e.date().openapi({description:"The date and time when the legal entity was created",format:"date-time"}),address:t.required().openapi({description:"The address of the legal entity"})}).openapi("LegalEntity"),CreateLegalEntitySchema=e.object({name:e.string().min(1,"Name is required").openapi({example:"Acme Corporation",description:"The name of the legal entity"}),taxId:e.string().min(2).max(20).openapi({example:"PL1234567890",description:"The TAX ID of the legal entity"}),email:e.string().email().optional().openapi({example:"contact@acme.com",description:"The email of the legal entity",format:"email"}),phone:e.string().optional().openapi({example:"+48123456789",description:"The phone number of the legal entity"}),address:i.required().openapi({description:"The address of the legal entity"})}).openapi("CreateLegalEntity"),UpdateLegalEntitySchema=e.object({name:e.string().min(1,"Name is required").optional().openapi({example:"Acme Corporation",description:"The name of the legal entity"}),taxId:e.string().min(2).max(20).openapi({example:"PL1234567890",description:"The TAX ID of the legal entity"}),email:e.string().email().optional().openapi({example:"contact@acme.com",description:"The email of the legal entity",format:"email"}),phone:e.string().optional().openapi({example:"+48123456789",description:"The phone number of the legal entity"}),address:a.required().openapi({description:"The address of the legal entity"})}).openapi("UpdateLegalEntity");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{z as e}from"@hono/zod-openapi";import{currency as n}from"../../schemas/currency.schema";import{locale as i}from"../../schemas/locales.schema";export const TimeScheduleSchema=e.object({monday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Monday"}),tuesday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Tuesday"}),wednesday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Wednesday"}),thursday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Thursday"}),friday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Friday"}),saturday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Saturday"}),sunday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Sunday"})}).openapi("TimeSchedule"),OrganizationConfigurationSchema=e.object({id:e.string().openapi({example:"clm1234567890abcdef",description:"Unique identifier for the organization configuration"}),hostname:e.coerce.string().optional().openapi({example:"store.example.com",description:"Hostname associated with the organization"}),countriesShipping:e.array(e.string()).openapi({example:["US","CA"],description:"List of countries where shipping is available"}),stripeAccountId:e.coerce.string().optional().openapi({example:"acct_123456789",description:"Stripe account ID associated with the organization"}),enableHostCheckout:e.boolean().openapi({example:!0,description:"Indicates if host checkout is enabled"}),enableHostTracking:e.boolean().openapi({example:!0,description:"Indicates if host tracking is enabled"}),isAcceptingOrders:e.boolean().openapi({example:!0,description:"Indicates if the organization is currently accepting orders"}),isAcceptingReservations:e.boolean().openapi({example:!0,description:"Indicates if the organization is currently accepting reservations"}),isOpen:e.boolean().default(!1).openapi({example:!0,description:"Indicates if the organization is currently open"}),defaultLocale:i,supportedLocales:e.array(i).openapi({description:"List of supported locales for the organization"}),openingTimes:TimeScheduleSchema.optional(),closingTimes:TimeScheduleSchema.optional(),facebookProfile:e.string().nullable().optional().openapi({example:"https://www.facebook.com/example",description:"Facebook profile URL for the organization"}),instagramProfile:e.string().nullable().optional().openapi({example:"https://www.instagram.com/example",description:"Instagram profile URL for the organization"}),xProfile:e.string().nullable().optional().openapi({example:"https://www.x.com/example",description:"X profile URL for the organization"}),defaultCurrency:n.openapi({example:"USD",description:"Default currency for the organization"}),createdAt:e.date().openapi({description:"Timestamp when the organization configuration was created"})}).openapi("OrganizationConfiguration"),UpdateOrganizationConfigurationSchema=OrganizationConfigurationSchema.pick({hostname:!0,countriesShipping:!0,stripeAccountId:!0,enableHostCheckout:!0,enableHostTracking:!0,isAcceptingOrders:!0,isAcceptingReservations:!0,defaultLocale:!0,supportedLocales:!0,defaultCurrency:!0,openingTimes:!0,closingTimes:!0,facebookProfile:!0,instagramProfile:!0,xProfile:!0}).partial().openapi("UpdateOrganizationConfiguration");
|