1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2255],{4940:function(e,t,n){Promise.resolve().then(n.bind(n,3002)),Promise.resolve().then(n.bind(n,7246))},4601:function(){},8975:function(e,t,n){"use strict";var s=n(257);n(4601);var i=n(2265),r=i&&"object"==typeof i&&"default"in i?i:{default:i},a=void 0!==s&&s.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var t=void 0===e?{}:e,n=t.name,s=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,r=void 0===i?a:i;l(o(s),"`name` must be a string"),this._name=s,this._deletedRulePlaceholder="#"+s+"-deleted-rule____{}",l("boolean"==typeof r,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=r,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var c="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=c?c.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(l(o(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var s=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,s))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(s){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var s=this._tags[e];l(s,"old rule at index `"+e+"` not found"),s.textContent=t}return e},t.deleteRule=function(e){if("undefined"==typeof window){this._serverSheet.deleteRule(e);return}if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];l(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},t.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,n){t&&l(o(t),"makeStyleTag accepts only strings as second parameter");var s=document.createElement("style");this._nonce&&s.setAttribute("nonce",this._nonce),s.type="text/css",s.setAttribute("data-"+e,""),t&&s.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(s,n):i.appendChild(s),s},function(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function l(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},u={};function m(e,t){if(!t)return"jsx-"+e;var n=String(t),s=e+n;return u[s]||(u[s]="jsx-"+d(e+"-"+n)),u[s]}function h(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return u[n]||(u[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[n]}var p=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,s=void 0===n?null:n,i=t.optimizeForSpeed,r=void 0!==i&&i;this._sheet=s||new c({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),s&&"boolean"==typeof r&&(this._sheet.setOptimizeForSpeed(r),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),s=n.styleId,i=n.rules;if(s in this._instancesCounts){this._instancesCounts[s]+=1;return}var r=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[s]=r,this._instancesCounts[s]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var s=this._fromServer&&this._fromServer[n];s?(s.parentNode.removeChild(s),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],s=e[1];return r.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:s}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,s=e.id;if(n){var i=m(s,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return h(i,e)}):[h(i,t)]}}return{styleId:m(s),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=i.createContext(null);f.displayName="StyleSheetContext";var y=r.default.useInsertionEffect||r.default.useLayoutEffect,x="undefined"!=typeof window?new p:void 0;function v(e){var t=x||i.useContext(f);return t&&("undefined"==typeof window?t.add(e):y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},t.style=v},29:function(e,t,n){"use strict";e.exports=n(8975).style},7246:function(e,t,n){"use strict";n.d(t,{default:function(){return w}});var s=n(7437),i=n(8666),r=n(695),a=n(2265),o=n(8575),c=n(9376),l=n(5252),d=n(4375),u=n(6169),m=n(636),h=n(490),p=n(7409),f=n(4914),y=n(3284),x=n(7875),v=n(4908);function b(e){return{articleSia:!0,productId:e.id,sku:e.id,type:"Fisico",name:e.title,status:"ACTIVO",stock:100,quantity:e.quantity||1,media:{images:[{main:!0,url:e.img}]},pim:{brand:"Unknown",brandId:"0",category:"General",price:{prices:{currency:"USD",publishedPrice:e.price,tax:0}
1,discount:{finalPrice:e.price,percentage:0}}},range:{max:0,min:0}}}var g=e=>{let{order:t,onViewOrders:n,onContinueShopping:i,isBankTransfer:r=!0,bankDetails:o}=e,[c,l]=(0,a.useState)(!1),d=t.localId,{displayInfo:u,total:m,currency:h,paymentMethod:p}=t,f=async()=>{try{await navigator.clipboard.writeText(d),l(!0),setTimeout(()=>l(!1),2e3)}catch(e){console.error("Error al copiar:",e)}};return(0,s.jsx)("div",{className:"payment-success-page",style:{minHeight:"100vh",background:"linear-gradient(135deg, #4F46E5 0%, #2563EB 100%)",overflowY:"auto",display:"flex",justifyContent:"center",paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)"},children:(0,s.jsxs)("div",{style:{width:"100%",maxWidth:480,margin:"0 auto"},children:[(0,s.jsxs)("div",{className:"text-center pt-4 pb-3",children:[(0,s.jsx)("div",{className:"d-inline-flex align-items-center justify-content-center mb-2",style:{width:56,height:56,borderRadius:"50%",background:"rgba(255,255,255,0.2)"},children:(0,s.jsx)("i",{className:"ti ti-circle-check text-white",style:{fontSize:32}})}),(0,s.jsx)("h5",{className:"text-white mb-1 fw-bold",children:"\xa1Pedido Confirmado!"}),(0,s.jsxs)("span",{className:"badge",style:{background:"rgba(251, 191, 36, 0.9)",color:"#78350F",fontSize:11,padding:"4px 10px",borderRadius:12},children:[(0,s.jsx)("i",{className:"ti ti-cloud-off me-1",style:{fontSize:12}}),"Pendiente de sincronizaci\xf3n"]})]}),(0,s.jsxs)("div",{className:"px-3 pb-4",children:[(0,s.jsxs)("div",{className:"bg-white rounded-4 p-3 mb-3 text-center shadow-sm",children:[(0,s.jsx)("small",{className:"text-muted",children:"N\xfamero de Orden (Local)"}),(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-center gap-2 mt-1",children:[(0,s.jsx)("h5",{className:"mb-0 text-primary fw-bold",style:{letterSpacing:.5,fontSize:16},children:d}),(0,s.jsx)("button",{type:"button",className:"btn btn-sm p-1",onClick:f,style:{background:c?"#10B981":"#E0E7FF",color:c?"#fff":"#4F46E5",borderRadius:6,transition:"all 0.2s"},children:(0,s.jsx)("i",{className:"ti ".concat(c?"ti-check":"ti-copy"),style:{fontSize:16}})})]}),(0,s.jsx)("small",{className:"text-muted",style:{fontSize:11},children:"Se asignar\xe1 n\xfamero oficial al sincronizar"})]}),(0,s.jsxs)("div",{className:"bg-white rounded-4 p-3 mb-3 shadow-sm",children:[(0,s.jsxs)("h6",{className:"mb-2 d-flex align-items-center gap-2",style:{fontSize:14},children:[(0,s.jsx)("i",{className:"ti ti-file-description text-primary"}),"Resumen del Pedido"]}),(0,s.jsxs)("div",{style:{fontSize:13},children:[u.accountName&&(0,s.jsxs)("div",{className:"d-flex justify-content-between py-1 border-bottom",children:[(0,s.jsx)("span",{className:"text-muted",children:"Cliente:"}),(0,s.jsx)("strong",{className:"text-end",style:{maxWidth:"65%",fontSize:12},children:u.accountName})]}),(0,s.jsxs)("div",{className:"d-flex justify-content-between py-1 border-bottom",children:[(0,s.jsx)("span",{className:"text-muted",children:"Productos:"}),(0,s.jsxs)("span",{children:[u.itemCount," art\xedculo",1!==u.itemCount?"s":""]})]}),u.shippingAddress&&(0,s.jsxs)("div",{className:"d-flex justify-content-between py-1 border-bottom",children:[(0,s.jsx)("span",{className:"text-muted",children:"Env\xedo a:"}),(0,s.jsx)("span",{className:"text-end",style:{maxWidth:"60%",fontSize:11},children:u.shippingAddress})]}),(0,s.jsxs)("div",{className:"d-flex justify-content-between py-1 border-bottom",children:[(0,s.jsx)("span",{className:"text-muted",children:"Pago:"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"ti ".concat("Transfer"===p?"ti-building-bank":"ti-credit-card"," me-1")}),"Transfer"===p?"Transferencia Bancaria":"Cr\xe9dito MAPS"]})]}),(0,s.jsxs)("div",{className:"d-flex justify-content-between py-2",children:[(0,s.jsx)("span",{className:"text-muted",children:"Total:"}),(0,s.jsxs)("strong",{className:"text-success",style:{fontSize:18},children:["$",m.toFixed(2)," ",h]})]})]})]}),r&&o&&(0,s.jsxs)("div",{className:"bg-white rounded-4 p-3 mb-3 shadow-sm",children:[(0,s.jsxs)("h6",{className:"mb-2 d-flex align-items-center gap-2",style:{fontSize:14},children:[(0,s.jsx)("i",{className:"ti ti-building-bank text-primary"}),"Datos para Transferencia"]}),(0,s.jsxs)("div",{style:{fontSize:13},children:[(0,s.jsxs)("div",{className:"d-flex justify-content-between py-1 border-bottom",children:[(0,s.jsx)("span",{className:"text-muted",children:"Banco:"}),(0,s.jsx)("strong",{children:o.bankName})]}),(0,s.jsxs)("div",{className:"d-flex justify-content-between py-1 border-bottom",children:[(0,s.jsx)("span",{className:"text-muted",children:"Titular:"}),(0,s.jsx)("span",{children:o.accountHolder})]}),(0,s.jsxs)("div",{className:"d-flex justify-content-between py-1 border-bottom",children:[(0,s.jsx)("span",{className:"text-muted",children:"Cuenta:"}),(0,s.jsx)("span",{children:o.accountNumber})]}),(0,s.jsxs)("div",{className:"d-flex justify-content-between py-1",children:[(0,s.jsx)("span",{className:"text-muted",children:"CLABE:"}),(0,s.jsx)("span",{style:{fontSize:11},children:o.clabe})]})]}),(0,s.jsxs)("div",{className:"mt-2 p-2 rounded-3 alert-warning",style:{fontSize:12},children:[(0,s.jsx)("i",{className:"ti ti-info-circle me-1"}),"Recibir\xe1s el n\xfamero oficial de orden cuando se sincronice."]})]}),(0,s.jsxs)("div",{className:"rounded-3 p-3 mb-3 text-center",style:{background:"rgba(255,255,255,0.15)",border:"1px dashed rgba(255,255,255,0.4)"},children:[(0,s.jsx)("i",{className:"ti ti-cloud-upload text-white mb-2",style:{fontSize:28}}),(0,s.jsx)("p",{className:"text-white mb-0",style:{fontSize:13},children:"Tu pedido se guard\xf3 localmente y se sincronizar\xe1 autom\xe1ticamente cuando recuperes la conexi\xf3n a internet."})]}),(0,s.jsx)("p",{className:"text-white text-center mb-3",style:{fontSize:13,opacity:.9},children:r?"Una vez sincronizado, podr\xe1s realizar tu transferencia con los datos bancarios oficiales.":"El cargo a tu cr\xe9dito MAPS se procesar\xe1 cuando se sincronice el pedido."}),(0,s.jsxs)("div",{className:"d-flex gap-2 justify-content-center mb-3",children:[(0,s.jsxs)("button",{className:"btn btn-warning fw-semibold px-4",onClick:()=>{n?n():window.location.href="/my-orders"},style:{borderRadius:25},children:[(0,s.jsx)("i",{className:"ti ti-list-check me-1"}),"Ver Mis \xd3rdenes"]}),(0,s.jsxs)("button",{className:"btn btn-outline-light px-3",onClick:()=>{i?i():window.location.href="/home"},style:{borderRadius:25},children:[(0,s.jsx)("i",{className:"ti ti-arrow-left me-1"}),"Seguir Comprando"]})]}),(0,s.jsx)("p",{className:"text-white text-center mb-0",style:{fontSize:12,opacity:.6}
1,children:new Date().toLocaleString("es-MX",{dateStyle:"long",timeStyle:"short"})})]})]})})},j=n(4328),S=n(3140);let _={bankName:"BBVA M\xe9xico",accountHolder:"MAPS Cloud SA de CV",accountNumber:"0123456789",clabe:"012180001234567890"};var w=()=>{let e=(0,c.useRouter)(),t=(0,o.I0)(),{emptyCart:n}=(0,m.Z)(),{isExpressMode:w,getCheckoutItems:N,getCheckoutTotal:k}=(0,h.Z)(),z=(0,o.v9)(e=>e.order.checkoutData),C=(0,o.v9)(e=>e.order.extendedCheckoutData),R=(0,o.v9)(e=>e.cart.cart),{isOnline:F}=(0,y.X)(),A=(0,x.O1)(),T=!F&&A,P=w?N():R,E=w?k():(null==z?void 0:z.cartTotal)||0,{totals:I,isLoading:O}=(0,j.Z)("Transfer"),[B,D]=(0,a.useState)(!1),[q,L]=(0,a.useState)(null);(0,a.useEffect)(()=>{z&&C||(p.Am.error("Por favor completa los datos del checkout primero"),e.push("/checkout"))},[z,C,e]);let Z=async()=>{if(!C){p.Am.error("Datos del checkout no disponibles");return}D(!0);try{let e=P.map(e=>({articleSia:!0,productId:e.id,sku:e.id,type:"Fisico",name:e.title,status:"ACTIVO",stock:100,quantity:e.quantity||1,media:{images:[{main:!0,url:e.img}]},pim:{brand:"Unknown",brandId:"0",category:"General",price:{prices:{currency:"USD",publishedPrice:e.price,tax:0},discount:{finalPrice:e.price,percentage:0}}},range:{max:0,min:0}}));(0,f.Y)(C);let n=function(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Transfer";try{let i;if(!e||0===e.length)return{success:!1,error:"No hay productos en el carrito"};if(!n.rawInvoiceDetails||!n.rawShippingTypes)return{success:!1,error:"Faltan datos de checkout (facturaci\xf3n o env\xedo)"};i=t&&t.length===e.length?t:e.map(b);let r=(0,f.Y)(n),a=function(e,t){var n,s,i;let r=(null===(n=e.rawSelectedAccount)||void 0===n?void 0:n.company)||"Cuenta desconocida",a=(null===(i=e.rawShippingTypes)||void 0===i?void 0:null===(s=i.shipping)||void 0===s?void 0:s.addresses)||[],o=a[e.selectedShippingAddressIndex]||a[0],c=o?"".concat(o.streetAndNumber||"",", ").concat(o.neighborhood||"",", ").concat(o.city||""):"Direcci\xf3n no especificada",l=t.map(e=>({id:e.id,title:e.title,price:e.price,quantity:e.quantity,img:e.img}));return{accountName:r,shippingAddress:c,itemCount:l.length,items:l}}(n,e);return{success:!0,data:{cartProducts:i,orderRequest:r,paymentMethod:s,displayInfo:a}}}catch(e){return{success:!1,error:"Error preparando orden offline: ".concat(e.message)}}}(P,e,C,"Transfer");if(!n.success||!n.data){p.Am.error(n.error||"Error preparando orden offline"),D(!1);return}let s=await v.Z.createOrder(n.data.cartProducts,n.data.orderRequest,"Transfer",n.data.displayInfo);s.success&&s.order?(t((0,d.Pj)({method:"bank"})),w?t((0,d.Sk)()):t((0,u.LL)()),L(s.order),p.Am.success("Pedido guardado - Se sincronizar\xe1 cuando haya conexi\xf3n")):p.Am.error(s.error||"Error al guardar el pedido offline")}catch(e){console.error("[CheckoutBank] Error creating offline order:",e),p.Am.error("Error al guardar el pedido")}finally{D(!1)}},M=e=>!!(e instanceof TypeError&&e.message.includes("fetch")||e instanceof Error&&e.message.includes("network"))||"object"==typeof e&&null!==e&&"offline"in e||!navigator.onLine,U=async()=>{let n=(0,f.B)(C);if(!n.valid){p.Am.error(n.errors[0]||"Datos del checkout incompletos"),e.push("/checkout");return}if(!C){p.Am.error("Datos del checkout no disponibles");return}if(T){await Z();return}let s=w?N()[0]:null;D(!0);try{var i,r,a,o,c,m,h,y,x,v,b,g,j,S;if(w&&(null==s?void 0:s.rawProduct)){await l.Z3.clearCart().catch(()=>{});let e=await l.Z3.addToCart({articleSia:s.rawProduct.articleSia||!1,productId:s.rawProduct.productId,sku:s.rawProduct.sku,type:s.rawProduct.type,name:s.rawProduct.name,status:s.rawProduct.status,stock:s.rawProduct.stock,quantity:s.quantity,media:s.rawProduct.media,pim:s.rawProduct.pim,range:s.rawProduct.range});if(!e.success){if(A&&(e.offline||M(e))){D(!1),await Z();return}p.Am.error("Error al preparar el producto para la compra"),D(!1);return}}t((0,d.Pj)({method:"bank"}));let n=(0,f.Y)(C),N=await l.Z3.completeOrder("Transfer",n);if(N.success&&(null===(r=N.data)||void 0===r?void 0:null===(i=r.data)||void 0===i?void 0:i.serialNumber)){let n=N.data.data.serialNumber;t((0,d.DL)(n)),t((0,d.LV)({id:n,items:P.map(e=>({id:e.id,img:e.img,title:e.title,price:e.price,quantity:e.quantity||1}
1)),shippingInfo:{fullName:(null==z?void 0:null===(a=z.account)||void 0===a?void 0:a.contactName)||"",email:(null==z?void 0:null===(o=z.account)||void 0===o?void 0:o.contactEmail)||"",phone:(null==z?void 0:null===(c=z.account)||void 0===c?void 0:c.contactPhone)||"",address:(null==z?void 0:null===(h=z.delivery)||void 0===h?void 0:null===(m=h.address)||void 0===m?void 0:m.streetAndNumber)||"",city:(null==z?void 0:null===(x=z.delivery)||void 0===x?void 0:null===(y=x.address)||void 0===y?void 0:y.city)||"",zipCode:(null==z?void 0:null===(b=z.delivery)||void 0===b?void 0:null===(v=b.address)||void 0===v?void 0:v.postalCode)||"",country:(null==z?void 0:null===(j=z.delivery)||void 0===j?void 0:null===(g=j.address)||void 0===g?void 0:g.country)||"Mexico"},paymentInfo:{method:"bank"},subtotal:E,shipping:0,tax:0,total:E,status:"pending",createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),bankDetails:{bankName:_.bankName,accountHolder:_.accountHolder,accountNumber:_.accountNumber,clabe:_.clabe,reference:n}})),w?t((0,d.Sk)()):(t((0,u.LL)()),l.Z3.clearCart().catch(()=>{})),e.push("/payment-success")}else{if(A&&(N.offline||M(N))){D(!1),await Z();return}let e=N.error||(null===(S=N.data)||void 0===S?void 0:S.message)||"Error al crear la orden";p.Am.error(e)}}catch(e){if(A&&M(e)){D(!1),await Z();return}p.Am.error(e instanceof Error?e.message:"Error al procesar la orden")}finally{D(!1)}};return q?(0,s.jsx)(g,{order:q,isBankTransfer:!0,bankDetails:_,onViewOrders:()=>e.push("/my-orders"),onContinueShopping:()=>e.push("/home")}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.default,{links:"checkout-payment",title:"Transferencia Bancaria"}),(0,s.jsx)("div",{className:"page-content-wrapper",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)("div",{className:"checkout-wrapper-area py-3",children:(0,s.jsxs)("div",{className:"credit-card-info-wrapper",children:[T&&(0,s.jsxs)("div",{className:"alert alert-warning text-center mb-3",style:{fontSize:13},children:[(0,s.jsx)("i",{className:"ti ti-wifi-off me-2"}),(0,s.jsx)("strong",{children:"Modo sin conexi\xf3n"}),(0,s.jsx)("br",{}),(0,s.jsx)("small",{children:"Tu pedido se guardar\xe1 y sincronizar\xe1 cuando recuperes la conexi\xf3n"})]}),(0,s.jsx)("img",{className:"d-block mb-4 mx-auto",src:"/assets/img/bg-img/credit-card.png",alt:"Transferencia Bancaria",style:{maxWidth:"200px"}}),(0,s.jsxs)("div",{className:"bank-ac-info",children:[(0,s.jsx)("p",{className:"text-center mb-3",children:"Realiza tu pago directamente a nuestra cuenta bancaria. Usa tu n\xfamero de orden como referencia. Tu pedido ser\xe1 procesado una vez que los fondos se hayan acreditado en nuestra cuenta."}),(0,s.jsxs)("ul",{className:"list-group mb-3",children:[(0,s.jsxs)("li",{className:"list-group-item d-flex justify-content-between align-items-center border-0 border-bottom",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"ti ti-building me-2"}),"Banco"]}),(0,s.jsx)("span",{className:"fw-bold",children:_.bankName})]}),(0,s.jsxs)("li",{className:"list-group-item d-flex justify-content-between align-items-center border-0 border-bottom",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"ti ti-user me-2"}),"Titular"]}),(0,s.jsx)("span",{children:_.accountHolder})]}),(0,s.jsxs)("li",{className:"list-group-item d-flex justify-content-between align-items-center border-0 border-bottom",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"ti ti-credit-card me-2"}),"No. Cuenta"]}),(0,s.jsx)("span",{children:_.accountNumber})]}),(0,s.jsxs)("li",{className:"list-group-item d-flex justify-content-between align-items-center border-0",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"ti ti-barcode me-2"}),"CLABE"]}),(0,s.jsx)("span",{style:{fontSize:"13px"},children:_.clabe})]})]}),I?(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)(S.Z,{totals:I,isLoading:O})}):E>0?(0,s.jsx)("div",{className:"alert alert-primary mb-3 text-center",children:(0,s.jsxs)("strong",{children:["Total a pagar: $",E.toFixed(2)," USD"]})}):null,(0,s.jsx)("div",{className:"alert alert-warning mb-3",children:(0,s.jsxs)("small",{children:[(0,s.jsx)("i",{className:"ti ti-info-circle me-1"}),"Una vez realizada la transferencia, env\xeda tu comprobante de pago. Los pagos se verifican en un plazo de 24-48 horas h\xe1biles."]})})]}),(0,s.jsx)("button",{className:"btn btn-primary btn-lg w-100",onClick:U,disabled:B||!z||!C,children:B?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status"}),"Procesando..."]}):"Confirmar Pedido"})]})})})}),(0,s.jsx)("div",{className:"internet-connection-status",id:"internetStatus"}),(0,s.jsx)(i.Z,{})]})}}},function(e){e.O(0,[2972,8304,2519,4461,6951,6783,553,3284,9722,3364,7224,2971,6997,1744],function(){return e(e.s=4940)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.