1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4120],{24285:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pricing/success",function(){return t(92441)}])},37100:function(e,s,t){"use strict";t.d(s,{I:function(){return c}});var l=t(52322),a=t(57913);function c(){return(0,l.jsxs)("div",{className:"flex flex-col pb-10 md:gap-10 gap-6",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,l.jsx)(a.O,{className:"h-10 md:h-12 w-80 md:w-96"}),(0,l.jsx)(a.O,{className:"h-10 w-40"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row",children:[(0,l.jsxs)("section",{className:"w-full bg-alabaster-50 rounded-lg p-4 md:p-6 flex flex-col gap-6",children:[(0,l.jsx)(a.O,{className:"h-6 w-48"}),(0,l.jsx)("div",{className:"flex flex-col gap-4",children:[1,2].map(e=>(0,l.jsxs)("div",{className:"p-4 border border-carbon-300 rounded-lg bg-white-50",children:[(0,l.jsxs)("div",{className:"flex justify-between items-start mb-3",children:[(0,l.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,l.jsx)(a.O,{className:"h-5 w-5 rounded-full"}),(0,l.jsx)(a.O,{className:"h-5 w-40"})]}),(0,l.jsx)(a.O,{className:"h-4 w-16"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 text-sm",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(a.O,{className:"h-4 w-20"}),(0,l.jsx)(a.O,{className:"h-4 w-32"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(a.O,{className:"h-4 w-16"}),(0,l.jsx)(a.O,{className:"h-4 w-24"})]})]})]},e))}),(0,l.jsxs)("div",{className:"border border-carbon-300 rounded-lg p-4",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,l.jsx)(a.O,{className:"h-5 w-5 rounded-full"}),(0,l.jsx)(a.O,{className:"h-5 w-48"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(a.O,{className:"h-4 w-24"}),(0,l.jsx)(a.O,{className:"h-10 w-full"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(a.O,{className:"h-4 w-20"}),(0,l.jsx)(a.O,{className:"h-10 w-full"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(a.O,{className:"h-4 w-16"}),(0,l.jsx)(a.O,{className:"h-10 w-full"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(a.O,{className:"h-4 w-28"}),(0,l.jsx)(a.O,{className:"h-10 w-full"})]})]}),(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(a.O,{className:"h-4 w-20"}),(0,l.jsx)(a.O,{className:"h-10 w-full"})]})})]})]}),(0,l.jsxs)("aside",{className:"w-full bg-alabaster-50 rounded-lg p-4 md:p-6 flex flex-col gap-4 md:gap-6 mx-auto max-w-3xl md:max-w-full",children:[(0,l.jsx)(a.O,{className:"h-6 w-40"}),(0,l.jsxs)("div",{className:"bg-white-50 rounded-lg p-4 border border-carbon-300",children:[(0,l.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)(a.O,{className:"h-5 w-32 mb-2"}),(0,l.jsx)(a.O,{className:"h-4 w-24"})]}),(0,l.jsxs)("div",{className:"flex flex-col items-end gap-2",children:[(0,l.jsx)(a.O,{className:"h-8 w-24"}),(0,l.jsx)(a.O,{className:"h-4 w-16"})]})]}),(0,l.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,l.jsx)(a.O,{className:"h-4 w-20"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(a.O,{className:"h-8 w-8 rounded"}),(0,l.jsx)(a.O,{className:"h-8 w-12"}),(0,l.jsx)(a.O,{className:"h-8 w-8 rounded"})]})]}),(0,l.jsxs)("div",{className:"border-t border-carbon-300 pt-4",children:[(0,l.jsx)(a.O,{className:"h-4 w-36 mb-2"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(a.O,{className:"h-10 flex-1"}),(0,l.jsx)(a.O,{className:"h-10 w-20"})]})]}),(0,l.jsx)("div",{className:"border-t border-carbon-300 pt-4 mt-4",children:(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)(a.O,{className:"h-4 w-16"}),(0,l.jsx)(a.O,{className:"h-4 w-20"})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)(a.O,{className:"h-4 w-12"}),(0,l.jsx)(a.O,{className:"h-4 w-16"})]}),(0,l.jsxs)("div",{className:"flex justify-between border-t border-carbon-300 pt-2",children:[(0,l.jsx)(a.O,{className:"h-5 w-20"}),(0,l.jsx)(a.O,{className:"h-5 w-24"})]})]})})]}),(0,l.jsx)(a.O,{className:"h-12 w-full rounded-lg"})]})]})]})}},92441:function(e,s,t){"use strict";t.r(s),t.d(s,{Index:function(){return y},__N_SSP:function(){return w},default:function(){return O}});
1var l=t(52322),a=t(2784),c=t(37100),r=t(45484),i=t(5632),n=t(76413),x=t(11122),o=t(70314),d=t.n(o),f=t(94449),m=t(4102),h=t(76152),u=t(12802),j=t(12904),b={src:"/_next/static/media/purcharse-success.e121abb2.webp",height:1135,width:1361,blurDataURL:"data:image/webp;base64,UklGRp4AAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSCsAAAABYB3ZVpP+u4EWcgZTKY5fXK+xh4hIUbe05yD5GwAI4OR34CX4E8FYtRwSAFZQOCBMAAAA0AEAnQEqCAAHAAJAOCWUAnQA9IG33wAA/uvETDi+MXbCAc/zvn38ai92tcwImtYWt664Md5x/fJZ11Di/rmO62aK/xl8Zl7uWmiAAA==",blurWidth:8,blurHeight:7},p=t(96577),N=t.n(p),v=t(10055),g=t(56133),w=!0;function y(){var e,s,t,r;let o=(0,m.u0)(null===x.ag||void 0===x.ag?void 0:x.ag.language),{t:p,i18n:{language:w}}=(0,x.$G)("pricing"),{t:y}=(0,x.$G)("common"),{t:O}=(0,x.$G)("buttons"),k=(0,i.useRouter)(),[A,E]=(0,a.useState)(null),{data:I}=(0,m.VP8)(),{data:P}=(0,m.s2F)(),_=(null==A?void 0:A.countryId)!==void 0?(0,m.hOP)(A.countryId,P):(0,m.L1m)(k.locale);function C(e){return(0,h.s)(e,_,I)}let D=(0,f.v9)(m.PRA),S=(0,f.v9)(m.Ng8),T=!!(null==D?void 0:D.userId),F=S===m.FWD.b2b,[L]=(0,m.z9E)(),[z]=(0,m.Y5c)(),[U,B]=(0,a.useState)(!1),[R,W]=(0,a.useState)(!1),q=(0,f.I0)(),{cart:Q,clearCart:X,setIsCartClearingInProgress:Y}=(0,j.j)();(0,a.useEffect)(()=>{Y(!0)},[Y]);let[G]=(0,m.qQf)(),[M,V]=(0,a.useState)(!1),Z=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=setTimeout(()=>{R||U||W(!0)},1e4);return()=>clearTimeout(e)},[R,U]),(0,a.useEffect)(()=>{let e=k.query.token,s=g.EN.getItem("jwt");if(T){W(!0);return}e&&!U?(B(!0),L({token:e}).unwrap().then(e=>{"b2b"===e.userType&&q((0,m.TYv)()),W(!0),B(!1)}).catch(e=>{console.error("Success page login failed:",e),B(!1),W(!1)})):s&&!U?(B(!0),z().unwrap().then(e=>{"b2b"===e.userType&&q((0,m.TYv)()),W(!0),B(!1)}).catch(e=>{console.error("Session restore failed:",e),B(!1),W(!1)})):s||e||W(!0)},[k.query.token,T,U,L,z,q]);let{publicRuntimeConfig:K}=d()(),$=null==K?void 0:K.NEXT_PUBLIC_ADMIN_B2B_URL;function J(e){let s=e.toFixed(2);return s.endsWith(".00")||s.endsWith(",00")?parseInt(s,10).toString():s.replace(/\.00$/,"").replace(/,00$/,"").replace(".",",")}return((0,a.useEffect)(()=>{let e=g.EN.getItem("purchaseData");if(e)try{let s=JSON.parse(e);if(s.expiresAt&&Date.now()>s.expiresAt){console.warn("Purchase data has expired, removing from localStorage"),g.EN.removeItem("purchaseData"),E(null);return}E(s)}catch(e){console.error("Error parsing purchase data:",e),g.EN.removeItem("purchaseData"),E(null)}else console.warn("No purchase data found in localStorage")},[]),(0,a.useEffect)(()=>{let e=async()=>{let e=Object.keys(Q).length;if(A&&R&&!Z.current&&e>0){Z.current=!0,Y(!0);try{if(F&&(null==D?void 0:D.userId)){let s=g.EN.getItem("cartId");if(s&&e>0){let e=Object.values(Q);for(let t of e)try{await G({cartId:Number(s),productId:Number(t.id)}).unwrap()}catch(e){console.error("Error clearing cart product from server:",e)}}}X(),g.EN.removeItem("cartId"),V(!0),Z.current=!1,Y(!1)}catch(e){console.error("Error clearing cart after payment:",e),Z.current=!1,Y(!1)}}};e()},[A,M,R,F,null==D?void 0:D.userId,Q,X,G]),(0,a.useEffect)(()=>{let e=()=>{let e=k.locale||"es-es",s=n.Et.path[e]||n.Et.path["es-es"];window.location.pathname.includes(s)||g.EN.removeItem("purchaseData")},s=()=>{setTimeout(e,100)},t=()=>{"hidden"===document.visibilityState&&e()};return window.addEventListener("beforeunload",s),document.addEventListener("visibilitychange",t),()=>{window.removeEventListener("beforeunload",s),document.removeEventListener("visibilitychange",t),e()}},[]),!U&&R&&M)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"hidden md:flex w-full h-full px-[88px] py-20 bg-white-50 justify-center items-start gap-6",children:[(0,l.jsxs)("div",{className:"w-[620px] inline-flex flex-col justify-start items-start gap-6",children:[(0,l.jsx)("div",{className:"self-stretch flex justify-center flex-col text-carbon-800 text-[50px] font-abcgintonord font-medium break-words",children:p("success.title")}),(0,l.jsx)("div",{className:"self-stretch flex flex-col justify-start items-start gap-2",children:(0,l.jsx)("div",{className:"self-stretch flex justify-center flex-col text-carbon-800 text-base font-normal break-words",children:(0,l.jsx)(x.cC,{i18nKey:"success.description",ns:"pricing",components:{br:(0,l.jsx)("br",{})}})})}),(0,l.jsx)("div",{className:"self-stretch flex flex-col justify-start items-start gap-6",children:(0,l.jsxs)("div",{className:"self-stretch inline-flex justify-start items-start gap-2",children:[(0,l.jsx)(v.z,{fill:"outline",color:"secondary",size:"large",className:"flex-1",onClick:()=>window.open("".concat($,"/").concat(w,"/home/logon"),"_blank"),children:p("success.buttons.goToProducts")}),(0,l.jsx)(v.z,{color:"secondary",size:"large",className:"flex-1",onClick:()=>window.open("".concat($,"/").concat(w,"/home/logon"),"_blank"),children:O("header.postOffer")})]})}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(N(),{src:b,alt:""})})]}),A&&(0,l.jsx)("div",{className:"w-[620px] inline-flex flex-col justify-start items-start gap-6",children:(0,l.jsxs)("div",{className:"self-stretch max-h-[724px] min-h-fit p-6 bg-alabaster-50 rounded flex flex-col justify-start items-start gap-6",children:[(0,l.jsx)("div",{className:"self-stretch flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:p("shop.summary.title")}),(0,l.jsx)("div",{className:"self-stretch p-6 bg-white-50 rounded flex flex-col justify-start items-start gap-6",children:(0,l.jsxs)("div",{className:"self-stretch bg-white-50 rounded flex flex-col justify-start items-normal gap-6 max-h-[550px] min-h-[300px] overflow-y-auto border border-gray-200 p-4",children:[A.items.map((e,s)=>(0,l.jsxs)(a.Fragment,{children:[(0,l.jsxs)("div",{className:"self-stretch px-2 flex flex-col justify-start items-start gap-4",children:[(0,l.jsxs)("div",{className:"self-stretch inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-700 text-base font-normal break-words",children:p("shop.summary.service")}),(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:[p("shop.summary.credit")," ",e.name]})]}),(0,l.jsxs)("div",{className:"self-stretch inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-700 text-base font-normal break-words",children:p("shop.summary.unitPrice")}),(0,l.jsx)("div",{className:"flex justify-center flex-col items-end",children:e.discountPercentage>0?(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-normal line-through break-words",children:[e.unitPrice,o]}),(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:[e.discountedPrice,o]}),(0,l.jsx)("div",{className:"inline-flex flex-col justify-start items-start gap-2",children:(0,l.jsx)("div",{className:"h-7 px-2 py-1 bg-carbon-800 rounded-[20px] inline-flex justify-start items-center gap-2",children:(0,l.jsxs)("div",{className:"text-center flex justify-center flex-col text-white-50 text-xs font-bold break-words",children:["-",e.discountPercentage,"%"]})})})]}):(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:[e.unitPrice,o]})})]}),(0,l.jsxs)("div",{className:"self-stretch inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-700 text-base font-normal break-words",children:p("ui.units")}),(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:e.quantity})]}),(0,l.jsxs)("div",{className:"self-stretch inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:p("shop.summary.serviceTotal")}),(0,l.jsx)("div",{className:"flex justify-center flex-col items-end",children:e.discountPercentage>0?(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-normal line-through break-words",children:[J(e.originalTotal),o]}),(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:[J(e.total),o]})]}):(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:[J(e.total),o]})})]})]}),s<A.items.length-1&&(0,l.jsx)("div",{className:"self-stretch h-px relative",children:(0,l.jsx)("div",{className:"w-full h-px left-0 top-0 absolute bg-carbon-300"})})]},e.id)),(0,l.jsx)("div",{className:"self-stretch h-px relative",children:(0,l.jsx)("div",{className:"w-full h-px left-0 top-0 absolute bg-carbon-300"})}),(0,l.jsxs)("div",{className:"self-stretch flex flex-col justify-start items-start gap-4",children:[(0,l.jsxs)("div",{className:"self-stretch px-2 inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:p("shop.summary.subtotal")}),(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:[J(A.subtotal),o]})]}),A.promoCode&&(null===(e=A.promoDiscount)||void 0===e?void 0:e.isValid)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"self-stretch px-2 inline-flex justify-between items-center",children:(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-normal break-words",children:A.promoCode})}),(0,l.jsxs)("div",{className:"self-stretch p-2 bg-cream-100 rounded inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-normal break-words",children:p("shop.summary.promoCode")}),(0,l.jsx)("div",{className:"flex justify-center flex-col items-end",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(null===(s=A.promoDiscount)||void 0===s?void 0:s.discount)>0&&(0,l.jsx)("div",{className:"inline-flex flex-col justify-start items-start gap-2",children:(0,l.jsx)("div",{className:"h-7 px-2 py-1 bg-carbon-800 rounded-[20px] inline-flex justify-start items-center gap-2",children:(0,l.jsxs)("div",{className:"text-center flex justify-center flex-col text-white-50 text-xs font-bold break-words",children:["-",A.promoDiscount.discount,"%"]})})}),(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:["-",J((0,u.pq)(A.subtotal,A.promoDiscount)),o]})]})})]})]}),A.totalSavings>0&&!A.promoCode&&(0,l.jsxs)("div",{className:"self-stretch p-2 bg-cream-100 rounded inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-normal break-words",children:p("shop.summary.savings")}),(0,l.jsx)("div",{className:"flex justify-center flex-col items-end",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"inline-flex flex-col justify-start items-start gap-2",children:(0,l.jsx)("div",{className:"h-7 px-2 py-1 bg-carbon-800 rounded-[20px] inline-flex justify-start items-center gap-2",children:(0,l.jsxs)("div",{className:"text-center flex justify-center flex-col text-white-50 text-xs font-bold break-words",children:["-",A.overallDiscountPercentage,"%"]})})}),(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:[J(A.totalSavings),o]})]})})]})]}),(0,l.jsx)("div",{className:"self-stretch h-px relative",children:(0,l.jsx)("div",{className:"w-full h-px left-0 top-0 absolute bg-carbon-300"})}),(0,l.jsxs)("div",{className:"self-stretch px-2 inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-normal break-words",children:y("tax.excluded")}),(0,l.jsx)("div",{className:"flex justify-center flex-col items-end",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"inline-flex flex-col justify-start items-start gap-2",children:(0,l.jsx)("div",{className:"h-7 px-2 py-1 bg-carbon-800 rounded-[20px] inline-flex justify-start items-center gap-2",children:(0,l.jsx)("div",{className:"text-center flex justify-center flex-col text-white-50 text-xs font-bold break-words",children:(()=>{let e=(0,u.PL)(A.subtotal,A.promoDiscount);return A.iva>0&&e>0?"".concat(Math.round(A.iva/e*100),"%"):"0%"})()})})}),(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-base font-bold break-words",children:[J(A.iva),o]})]})})]}),(0,l.jsxs)("div",{className:"self-stretch px-2 inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex justify-center flex-col text-carbon-800 text-xl font-bold break-words",children:p("shop.summary.total")}),(0,l.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,l.jsxs)("div",{className:"flex justify-center flex-col text-carbon-800 text-xl font-bold break-words",children:[J(A.total),o]}),C(A.total)&&(0,l.jsxs)("span",{className:"text-carbon-700 text-sm",children:["(",C(A.total),")"]})]})]})]})})]})})]}),(0,l.jsxs)("div",{className:"md:hidden self-stretch pt-4 pb-10 bg-white-50 inline-flex flex-col justify-start items-start gap-6",children:[(0,l.jsxs)("div",{className:"self-stretch flex flex-col justify-start items-start gap-2",children:[(0,l.jsx)("div",{className:"self-stretch text-left text-carbon-800 text-[28px] font-medium font-abcgintonord",children:p("success.title")}),(0,l.jsx)("div",{className:"self-stretch text-left text-carbon-800 text-base font-normal",children:(0,l.jsx)(x.cC,{i18nKey:"success.description",ns:"pricing",components:{br:(0,l.jsx)("br",{})}})})]}),(0,l.jsxs)("div",{className:"self-stretch flex flex-col justify-start items-start gap-2",children:[(0,l.jsx)(v.z,{fill:"outline",color:"secondary",size:"large",className:"w-full",onClick:()=>window.open("".concat($,"/").concat(w,"/home/logon?returnNewUI=").concat(n.Lk.path[w]),"_blank"),children:p("success.buttons.goToProducts")}),(0,l.jsx)(v.z,{color:"secondary",size:"large",className:"w-full",onClick:()=>window.open("".concat($,"/").concat(w,"/home/logon?returnNewUI=").concat(n.Lk.path[w]),"_blank"),children:O("header.postOffer")})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(N(),{src:b,alt:""})}),A&&(0,l.jsx)("div",{className:"self-stretch bg-white-50 rounded flex flex-col justify-start items-start gap-4",children:(0,l.jsxs)("div",{className:"self-stretch p-4 bg-alabaster-50 flex flex-col justify-start items-start gap-4",children:[(0,l.jsx)("div",{className:"self-stretch text-center text-carbon-800 text-lg font-bold",children:p("shop.summary.title")}),(0,l.jsx)("div",{className:"self-stretch p-6 bg-white-50 rounded flex flex-col justify-center items-start gap-6",children:(0,l.jsxs)("div",{className:"self-stretch bg-white-50 rounded flex flex-col justify-start items-start gap-6",children:[A.items.map((e,s)=>(0,l.jsxs)(a.Fragment,{children:[(0,l.jsxs)("div",{className:"self-stretch px-2 flex flex-col justify-start items-start gap-4",children:[(0,l.jsxs)("div",{className:"self-stretch inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"flex-1 text-neutral-500 text-xs font-normal",children:p("shop.summary.service")}),(0,l.jsxs)("div",{className:"text-center text-carbon-800 text-sm font-bold",children:[p("shop.summary.credit")," ",e.name]})]}),(0,l.jsxs)("div",{className:"self-stretch inline-flex justify-between items-start",children:[(0,l.jsx)("div",{className:"text-neutral-500 text-xs font-normal",children:p("shop.summary.unitPrice")}),(0,l.jsx)("div",{className:"inline-flex flex-col justify-center items-end gap-2",children:e.discountPercentage>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"inline-flex justify-end items-start gap-2",children:[(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-bold",children:[e.discountedPrice,o]}),(0,l.jsx)("div",{className:"h-5 px-2 py-1 bg-carbon-800 rounded-[20px] inline-flex justify-start items-center gap-1",children:(0,l.jsxs)("div",{className:"text-center t
1ext-white-50 text-[10px] font-bold",children:["-",e.discountPercentage,"%"]})})]}),(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-normal line-through",children:[e.unitPrice,o]})]}):(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-bold",children:[e.unitPrice,o]})})]}),(0,l.jsxs)("div",{className:"self-stretch inline-flex justify-between items-start",children:[(0,l.jsx)("div",{className:"text-neutral-500 text-xs font-normal",children:p("ui.units")}),(0,l.jsx)("div",{className:"text-center text-carbon-800 text-sm font-bold",children:e.quantity})]}),(0,l.jsxs)("div",{className:"self-stretch inline-flex justify-between items-start",children:[(0,l.jsx)("div",{className:"text-carbon-800 text-xs font-bold",children:p("shop.summary.serviceTotal")}),(0,l.jsx)("div",{className:"inline-flex flex-col justify-center items-end gap-2",children:e.discountPercentage>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-bold",children:[J(e.total),o]}),(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-normal line-through",children:[J(e.originalTotal),o]})]}):(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-bold",children:[J(e.total),o]})})]})]}),s<A.items.length-1&&(0,l.jsx)("div",{className:"self-stretch h-px relative",children:(0,l.jsx)("div",{className:"w-full h-px left-0 top-0 absolute bg-gray-200"})})]},e.id)),(0,l.jsx)("div",{className:"self-stretch h-px relative",children:(0,l.jsx)("div",{className:"w-full h-px left-0 top-0 absolute bg-gray-200"})}),(0,l.jsxs)("div",{className:"self-stretch flex flex-col justify-start items-start gap-4",children:[(0,l.jsxs)("div",{className:"self-stretch px-2 inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"text-carbon-800 text-xs font-bold",children:p("shop.summary.subtotal")}),(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-bold",children:[J(A.subtotal),o]})]}),A.promoCode&&(null===(t=A.promoDiscount)||void 0===t?void 0:t.isValid)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"self-stretch px-2 inline-flex justify-between items-center",children:(0,l.jsx)("div",{className:"text-carbon-800 text-xs font-normal",children:A.promoCode})}),(0,l.jsxs)("div",{className:"self-stretch p-2 bg-cream-100 rounded inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"text-carbon-800 text-xs font-normal",children:p("shop.summary.promoCode")}),(0,l.jsxs)("div",{className:"flex justify-end items-center gap-1",children:[(null===(r=A.promoDiscount)||void 0===r?void 0:r.discount)>0&&(0,l.jsx)("div",{className:"h-5 px-1.5 py-0.5 bg-carbon-800 rounded-[15px] inline-flex justify-start items-center",children:(0,l.jsxs)("div",{className:"text-center text-white-50 text-[10px] font-bold",children:["-",A.promoDiscount.discount,"%"]})}),(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-bold",children:["-",J((0,u.pq)(A.subtotal,A.promoDiscount)),o]})]})]})]}),A.totalSavings>0&&!A.promoCode&&(0,l.jsxs)("div",{className:"self-stretch p-2 bg-cream-100 rounded inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"text-carbon-800 text-xs font-normal",children:p("shop.summary.savings")}),(0,l.jsxs)("div",{className:"flex justify-end items-center gap-1",children:[(0,l.jsx)("div",{className:"h-5 px-1.5 py-0.5 bg-carbon-800 rounded-[15px] inline-flex justify-start items-center",children:(0,l.jsxs)("div",{className:"text-center text-white-50 text-[10px] font-bold",children:["-",A.overallDiscountPercentage,"%"]})}),(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-bold",children:[J(A.totalSavings),o]})]})]})]}),(0,l.jsx)("div",{className:"self-stretch h-px relative",children:(0,l.jsx)("div",{className:"w-full h-px left-0 top-0 absolute bg-gray-200"})}),(0,l.jsxs)("div",{className:"self-stretch px-2 inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"text-carbon-800 text-xs font-normal",children:"IVA"}),(0,l.jsxs)("div",{className:"flex justify-end items-center gap-1",children:[(0,l.jsx)("div",{className:"h-5 px-1.5 py-0.5 bg-carbon-800 rounded-[15p
1x] inline-flex justify-start items-center",children:(0,l.jsx)("div",{className:"text-center text-white-50 text-[10px] font-bold",children:(()=>{let e=(0,u.PL)(A.subtotal,A.promoDiscount);return A.iva>0&&e>0?"".concat(Math.round(A.iva/e*100),"%"):"0%"})()})}),(0,l.jsxs)("div",{className:"text-carbon-800 text-sm font-bold",children:[J(A.iva),o]})]})]}),(0,l.jsxs)("div",{className:"self-stretch px-2 inline-flex justify-between items-center",children:[(0,l.jsx)("div",{className:"text-carbon-800 text-sm font-bold",children:p("shop.summary.total")}),(0,l.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,l.jsxs)("div",{className:"text-carbon-800 text-base font-bold",children:[J(A.total),o]}),C(A.total)&&(0,l.jsxs)("span",{className:"text-carbon-700 text-xs",children:["(",C(A.total),")"]})]})]})]})})]})})]})]}):(0,l.jsx)(c.I,{})}var O=(0,r.Z)(y)},57913:function(e,s,t){"use strict";t.d(s,{O:function(){return a}});var l=t(52322);function a(e){let{className:s="",...t}=e;return(0,l.jsx)("div",{className:"animate-pulse rounded-md bg-carbon-300 ".concat(s),...t})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=24285)}),_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.