From 8c2ae06c4191cac8800e696f0aa1020e8a40acef Mon Sep 17 00:00:00 2001 From: Konstantin Fandelyuk Date: Fri, 6 Dec 2024 21:11:16 +0200 Subject: [PATCH] test 6 --- .../storefront-order/chunks/confirmCancelOrder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/__dropins__/storefront-order/chunks/confirmCancelOrder.js b/scripts/__dropins__/storefront-order/chunks/confirmCancelOrder.js index cc372dfb6..27e442e6a 100644 --- a/scripts/__dropins__/storefront-order/chunks/confirmCancelOrder.js +++ b/scripts/__dropins__/storefront-order/chunks/confirmCancelOrder.js @@ -17,7 +17,7 @@ mutation REORDER_ITEMS_MUTATION($orderNumber: String!) { } } } -`,S=async n=>await s(T,{method:"POST",variables:{orderNumber:n}}).then(e=>{var i,o,m,c,u,R;if((i=e.errors)!=null&&i.length)return E(e.errors);const t=!!((c=(m=(o=e==null?void 0:e.data)==null?void 0:o.reorderItems)==null?void 0:m.cart)!=null&&c.itemsV2.items.length),r=((R=(u=e==null?void 0:e.data)==null?void 0:u.reorderItems)==null?void 0:R.userInputErrors)??[];return{success:t,userInputErrors:r}}).catch(O),l=` +`,S=async o=>await s(T,{method:"POST",variables:{orderNumber:o}}).then(e=>{var i,n,m,c,u,R;if((i=e.errors)!=null&&i.length)return E(e.errors);const t=!!((c=(m=(n=e==null?void 0:e.data)==null?void 0:n.reorderItems)==null?void 0:m.cart)!=null&&c.itemsV2.items.length),r=((R=(u=e==null?void 0:e.data)==null?void 0:u.reorderItems)==null?void 0:R.userInputErrors)??[];return{success:t,userInputErrors:r}}).catch(O),l=` mutation CONFIRM_RETURN_GUEST_ORDER($input: ConfirmReturnInput!) { confirmReturn(input: $input) { return { @@ -25,7 +25,7 @@ mutation CONFIRM_RETURN_GUEST_ORDER($input: ConfirmReturnInput!) { } } } -${f}`,$=async(n,e)=>await s(l,{method:"POST",variables:{orderId:n,confirmationKey:e}}).then(t=>{var r;return(r=t.errors)!=null&&r.length?E(t.errors):t.data}).catch(O),d=` +${f}`,$=async(o,e)=>await s(l,{method:"POST",variables:{input:{orderId:o,confirmationKey:e}}}).then(t=>{var r;return(r=t.errors)!=null&&r.length?E(t.errors):t.data}).catch(O),d=` mutation CONFIRM_CANCEL_ORDER_MUTATION( $orderId: ID!, $confirmationKey: String! @@ -44,4 +44,4 @@ ${f}`,$=async(n,e)=>await s(l,{method:"POST",variables:{orderId:n,confirmationKe } } ${_} -`,g=async(n,e)=>s(d,{variables:{orderId:n,confirmationKey:e}}).then(async({errors:t,data:r})=>{var m,c,u,R;const i=[...(m=r==null?void 0:r.confirmCancelOrder)!=null&&m.errorV2?[(c=r==null?void 0:r.confirmCancelOrder)==null?void 0:c.errorV2]:[],...t??[]];let o=null;return(u=r==null?void 0:r.confirmCancelOrder)!=null&&u.order&&(o=I((R=r==null?void 0:r.confirmCancelOrder)==null?void 0:R.order),a.emit("order/data",o)),i.length>0?E(i):o});export{$ as a,g as c,S as r}; +`,g=async(o,e)=>s(d,{variables:{orderId:o,confirmationKey:e}}).then(async({errors:t,data:r})=>{var m,c,u,R;const i=[...(m=r==null?void 0:r.confirmCancelOrder)!=null&&m.errorV2?[(c=r==null?void 0:r.confirmCancelOrder)==null?void 0:c.errorV2]:[],...t??[]];let n=null;return(u=r==null?void 0:r.confirmCancelOrder)!=null&&u.order&&(n=I((R=r==null?void 0:r.confirmCancelOrder)==null?void 0:R.order),a.emit("order/data",n)),i.length>0?E(i):n});export{$ as a,g as c,S as r};