(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4472],{17302:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(95053),r=n(67294),a=n(85893);function o(e){var t=e.currentQuantity,n=e.minValue,o=e.maxValue,s=e.disabled,l=e.onChange,d=(0,r.useState)(!1),c=d[0],u=d[1];return(0,a.jsxs)("div",{className:"quantity",style:{margin:"0px",padding:"0px"},children:[(0,a.jsx)("input",{type:"button",defaultValue:"-",onClick:function(){if(t!==n)return l(t-1)},disabled:s,style:{width:"20px",border:"1px solid #BBBBBC",backgroundColor:"white",cursor:"pointer",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px",fontSize:"24px",fontWeight:"600",color:"#696C6C"}}),(0,a.jsx)("input",{type:"text",value:t,onChange:function(e){var t,r=e.target.value;return r?!1!==(t=r,!!i.Z.number.condition.test(t))?!1===c?(u(!0),l(r,!0)):void l(r):void 0:(u(!1),l(n))},onBlur:function(){return u(!1)},disabled:s,style:{width:"40px",height:"40px",border:"none",borderTop:"0.1px solid #BBBBBC",borderBottom:"0.1px solid #BBBBBC",backgroundColor:"white",cursor:"pointer",fontSize:"14px",fontWeight:"bold",textAlign:"center",color:"#32312F"}}),(0,a.jsx)("input",{type:"button",defaultValue:"+",onClick:function(){if(t!==o)return l(t+1)},disabled:s,style:{width:"20px",border:"1px solid #BBBBBC",backgroundColor:"white",cursor:"pointer",borderTopRightRadius:"5px",borderBottomRightRadius:"5px",fontSize:"14px",fontWeight:"600",color:"#696C6B"}})]})}o.defaultProps={currentQuantity:1,minValue:0,maxValue:999,disabled:!1,onChange:function(){}};var s=o},5042:function(e,t,n){"use strict";n.d(t,{Z:function(){return X}});var i=n(59499),r=n(67294),a=(n(68045),n(46066)),o=n(83618),s=(n(13311),n(11163)),l=n.n(s),d=n(79180),c=n(45217),u=n(14416),A=n(24561),v=n(52865),p=n(33191),N=(n(76418),n(72068)),_=n(9341),m="|",x=function(e){return parseInt(e,10)},h=function(e,t){return e.sequence-t.sequence},I=function(e,t){return e.id.localeCompare(t.id)},E=function(e){return Object.hasOwnProperty.call(e,"attributes")},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((function(e){return"Defining"===e.usage&&e.values.length>0})).map((function(e){return{id:e.uniqueID,sequence:x(e.sequence),name:e.name,valueid:e.values[0].uniqueID}})).sort(I).map((function(e){return e.valueid})).join(m)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((function(e){return"Defining"===e.usage&&e.values.length>0})).map((function(e){return{identifier:e.identifier,sequence:x(e.sequence),id:e.uniqueID,name:e.name,values:e.values.map((function(e){return{identifier:e.identifier,sequence:x(e.sequence),id:e.uniqueID,value:e.value}})).sort(h)}})).sort(I)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((function(e){return"Descriptive"===e.usage&&e.values.length>0})).map((function(e){return{identifier:e.identifier,sequence:x(e.sequence),id:e.uniqueID,name:e.name,values:e.values.map((function(e){return{identifier:e.identifier,sequence:x(e.sequence),id:e.uniqueID,value:e.value}})).sort(h)}})).sort(I)},S=function(e){return!Object.hasOwnProperty.call(e,"items")||1===e.items.length},b=function(e){return e.singleSKUCatalogEntryID?e.singleSKUCatalogEntryID:e.uniqueID?e.uniqueID:e.productId},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return e.forEach((function(e){t[e.uniqueID]=e})),t},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return e.forEach((function(e){t[e.identifier]=e.values[0].value})),t},C=n(33176),R=n(60011),P=(n(66040),n(21113)),g=n(60432),y=(n(47353),n(85893));function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function L(e){for(var t=1;tparseInt(V)&&(F=!0),"0.0"!==i&&"0"!==i&&0!==i&&null!==i&&parseInt(V)>parseInt(null===(t=i)||void 0===t?void 0:t.toFixed(1))&&(q=!0),V=V||G,a.finalOfferPrice=V,a.finalListPrice=G,a.pricePagoACuotas=i;var W=function(e){var t={},n={},i=O(e.attributes),r=j(e.attributes),a=T(i),o=D(r),s="";if(S(e)){if(!E(e)||0===i.length)return t.defaultKey=b(e),Object.hasOwnProperty.call(e,"items")&&1===e.items.length?n[t.defaultKey]=e.items[0]:n[t.defaultKey]=e,{skusMap:t,productsMap:n};s=f(e.attributes),t[s]=b(e),Object.hasOwnProperty.call(e,"items")&&1===e.items.length?n[t[s]]=e.items[0]:n[t[s]]=e}else{if(!E(e)||E(e)&&0===i.length)return t.defaultKey=b(e),n[t.defaultKey]=e,{skusMap:t,productsMap:n};e.items.filter((function(e){return i.every((function(t){return void 0!==e.attributes&&e.attributes.length>0&&e.attributes.some((function(e){return e.identifier===t.identifier}))}))})).forEach((function(e){O(e.attributes).forEach((function(e){e.sequence=a[e.uniqueID].sequence})),e.definingAttributes=T(e.attributes),s=f(e.attributes),t[s]=b(e),n[t[s]]=e}))}return{skusMap:t,productsMap:n,attributesMap:a,attributesDescriptiveMap:o}}(a),J=W.skusMap,Y=W.attributesMap,$={},ee={};if(!Object.hasOwnProperty.call(J,"defaultKey")){var te=Object.keys(J).sort((function(e,t){return e.localeCompare(t)})),ne="",ie=Object.keys(Y);te.forEach((function(e){var t=e.split(m),n=(0,o.Z)(t),i=n[0],r=n.slice(1),a={};ne=i,a[ie[0]]=L(L({},Y[ie[0]]),{},{values:Y[ie[0]].values.map((function(e){return L(L({},e),{},{status:e.id===i?B:w})}))}),r.forEach((function(e,t){a[ie[t+1]]=L(L({},Y[ie[t+1]]),{},{values:Y[ie[t+1]].values.map((function(t){var n=k;return t.id===e&&(n=B),L(L({},t),{},{status:n})}))}),ne="".concat(ne).concat(m).concat(e)})),$[ne]=a}));var re=Object.keys($),ae=re[re.length-1];Object.keys($[ae]).forEach((function(e){var t;ee[e]=null===(t=$[ae][e].values.find((function(e){return e.status===B})))||void 0===t?void 0:t.id}))}try{Object.values(Y)}catch(se){[]}var oe=a.name;return oe.length>30&&(oe="".concat(a.name.slice(0,27),"...")),(0,y.jsx)(y.Fragment,{children:!0===U.loading?(0,y.jsx)(A.ZP,{height:180,children:(0,y.jsx)("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"100%",height:"100%"})}):(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("div",{className:"equipoElement equipoElement--new",children:(0,y.jsxs)("div",{className:"wrapperEquipoElement",children:[(0,y.jsx)("div",{className:"container-pic container-pic--new",children:"12"===R?(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(N.Z,{src:"".concat("https://cdn.claro.com.co/imagenes/claroshop/catalogo","/").concat(M,"/200x310/").concat(a.partNumber,".jpg"),className:"imgResp cursor-pointer img-product",alt:a.name,onClick:function(){return z(a)}})}):(0,y.jsx)(N.Z,{src:a.thumbnail,className:"imgResp cursor-pointer img-product",alt:a.name,onClick:function(){return z(a)}})}),(0,y.jsxs)("div",{className:"card-details-container-red",children:[(0,y.jsx)(_.Z,{attributes:a.attributes?a.attributes:[],type:h}),(0,y.jsx)("div",{className:"container-name container-name--new",children:(0,y.jsx)("p",{title:a.name,className:"name-new-card text-home-red text-name-new-card-home",onClick:function(){return z(a)},children:a.name?oe:""})}),(0,y.jsxs)("div",{className:"container-prices container-prices--new",children:[q&&(0,y.jsxs)("div",{className:"container-pricePagoACuotas container-pricePagoACuotas--new",style:{marginTop:"15px"},children:[(0,y.jsx)("p",{className:"text-home-red text-cliente-claro-price cliente-claro-price font-color-blue",children:(0,p.T4)(a.pricePagoACuotas,!1,"COP")}),(0,y.jsx)("p",{className:"text-home-red text-cliente-claro-text cliente-claro-text font-color-blue",children:(0,y.jsx)(d._H,{id:"label.typeClientHomeOrPostPay"})})]}),(0,y.jsxs)("div",{className:"container-pricePagoACuotas container-pricePagoACuotas--new",children:[(0,y.jsx)("p",{className:"text-bold-home-red cliente-claro-price",children:(0,p.T4)(a.finalOfferPrice,!1)}),(0,y.jsx)("p",{className:"text-home-red cliente-claro-text priceNow-label",children:(0,y.jsx)(d._H,{id:"label.priceNow"})})]}),F&&(0,y.jsxs)("div",{className:"container-finalListPrice container-finalListPrice--new",children:[(0,y.jsx)("p",{className:"text-home-red final-normal-price",children:(0,p.T4)(a.finalListPrice,!1)}),(0,y.jsx)("p",{className:"text-home-red text-final-normal-text final-normal-text",children:(0,y.jsx)(d._H,{id:"label.priceBefore"})})]})]}),(0,y.jsx)("div",{className:"boton-center boton-center--new",children:(0,y.jsx)("a",{onClick:function(){return z(a)},onKeyDown:function(){},role:"button",className:"btn-blanco-rojo btn-blanco-rojo--new button-view-details",children:(0,y.jsx)(d._H,{id:"button.seeProduct"})})})]})]})})})})})),G=n(72679);function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function q(e){for(var t=1;t0)},responsive:[{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1,initialSlide:0,nextArrow:(0,y.jsx)(Z,{canGoNext:!1,className:"prev-button",onClick:function(){U.slickNext()}}),prevArrow:(0,y.jsx)(K,{canGoPrev:!1,className:"prev-button",onClick:function(){U.slickPrev()}}),beforeChange:function(e,t){v(t);var n=null===c||void 0===c?void 0:c.length;_(t+20)}}}]};return(0,r.useEffect)((function(){h(!1)}),[]),(0,y.jsx)("section",{className:"productosRelacionados productosRelacionados--new",children:(0,y.jsxs)("div",{className:"container",children:[(0,y.jsx)("div",{className:i?"title-home-red":"title-home-red title-large-red",style:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:"1.5rem"},children:(0,y.jsx)("span",{children:s||""})}),(0,y.jsx)(a.Z,q(q({ref:function(e){return U=e}},I),{},{children:c})),4===c.length?(0,y.jsxs)("div",{className:"bar-indicators bar-indicators--new",children:[(0,y.jsx)("br",{}),(0,y.jsx)("br",{}),(0,y.jsx)("ul",{style:{display:"flex",justifyContent:"center"},children:(0,y.jsx)("li",{style:{width:"36px",height:"9px",background:"#404040 0% 0% no-repeat padding-box",margin:"0 5px",cursor:"pointer",transition:"width 0.3s ease-in-out",border:"1px solid #404040",borderRadius:"4px",opacity:"1"}})})]}):"","news"===o&&(0,y.jsx)("div",{className:"boton-center boton-center--new",children:(0,y.jsx)("a",{onClick:function(){return l().push((null===s||void 0===s?void 0:s.urlRedirectButtonSeeMore)||"")},onKeyDown:function(){},role:"button",className:"btn-blanco-rojo btn-blanco-rojo--new btn-blanco-rojo--new-big",children:(0,y.jsx)(d._H,{id:"button.seeMore"})})})]})})}))},56143:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var i=n(50029),r=n(87794),a=n.n(r),o=n(55153),s=n(95904),l=n(79180),d=n(85893),c=function(){var e=(0,i.Z)(a().mark((function e(t,n,i,r){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,s.Rp)(t);case 3:200!==e.sent&&(localStorage.setItem("isTokenError","Su sesi\xf3n ha terminado."),localStorage.getItem("isLogginSession")&&n("error",(0,d.jsx)(l._H,{id:"label.yourSessionHasBeenFinished"}),(0,d.jsx)(l._H,{id:"label.titleYourSessionHasBeenFinished"}),(function(){r((0,o.W3)()),i.push("/")}),"","Aceptar","btn-rojo")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("error",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,n,i,r){return e.apply(this,arguments)}}()},68045:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var i=n(50029),r=n(87794),a=n.n(r),o=n(67294),s=n(24872),l=n(97066),d=n(12039);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e},t=(0,o.useState)([]),n=t[0],r=t[1],c=(0,o.useState)(!0),u=c[0],A=c[1],v=(0,o.useState)(!1),p=v[0],N=v[1];function _(){return m.apply(this,arguments)}function m(){return(m=(0,i.Z)(a().mark((function t(){var n,i,o,c;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(null!==(i=(0,d.Gg)(l.t.categories))&&((null===i||void 0===i?void 0:i.length)||0)>0)){t.next=6;break}return A(!1),e(i),t.abrupt("return",r(i));case 6:return t.next=8,(0,s.C)();case 8:o=t.sent,c=(null===o||void 0===o||null===(n=o.data)||void 0===n?void 0:n.catalogGroupView)||[],(0,d.KY)(l.t.categories,c),r(c),e(c),A(!1),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(0),console.error({error:t.t0}),N(!0);case 20:case"end":return t.stop()}}),t,null,[[0,16]])})))).apply(this,arguments)}return(0,o.useEffect)((function(){_()}),[]),{data:n,error:p,load:u}}},81958:function(e,t,n){"use strict";var i=n(67294),r=n(14416),a=n(21113);t.Z=function(){var e,t=(0,r.v9)((function(e){return e.CartManager})),n=(null===t||void 0===t||null===(e=t.cartInfo)||void 0===e?void 0:e.orderItem)||[],o=(null===t||void 0===t?void 0:t.totalItems)||0,s=(0,i.useState)([]),l=s[0],d=s[1],c=(0,i.useState)(!1),u=c[0],A=c[1],v=(0,i.useState)(!1),p=v[0],N=(v[1],(0,i.useState)(!1)),_=N[0],m=N[1],x=(0,i.useState)(""),h=x[0],I=x[1],E=(0,i.useState)(""),f=E[0],O=E[1],j=(0,i.useState)([]),S=j[0],b=j[1];(0,i.useEffect)((function(){if(o>0){b((function(){return n.map((function(e){return{poIdProduct:null===e||void 0===e?void 0:e.partNumber,quantity:"".concat(Number(null===e||void 0===e?void 0:e.quantity))}}))}));var e=n.map((function(e){return T(e.detailProduct.contents[0].attributes)}));d(e);var t=e.find((function(e){return"11"===e})),i=void 0!==e.find((function(e){return"7"===e}))||void 0!==t,r=void 0!==e.find((function(e){return"12"===e}));if(r){var s=n.map((function(e){return(0,a.mp)({attributes:e.detailProduct.contents[0].attributes})})),l=(null===s||void 0===s?void 0:s[0])||"";l&&I(l);var c=n.map((function(e){return(0,a.UW)({attributes:e.detailProduct.contents[0].attributes})})),u=(null===c||void 0===c?void 0:c[0])||"";u&&O(u)}A(i),m(r)}}),[n]);var T=function(e){var t,n="",i=null===(t=e||[])||void 0===t?void 0:t.find((function(e){return"TipoProducto"===e.identifier}));return void 0!==i&&!1!==i&&(n=i.values[0].value),n};return{infoCart:t,listItems:n,existEleventOrSevent:u,totalItems:o,listTypeProducts:l,existProductTwelve:_,existProductTwo:p,idSeller:h,idProveedor:f,prdoductsCartON:S}}},60378:function(e,t,n){"use strict";n.d(t,{y:function(){return N}});var i=n(59499),r=n(50029),a=n(87794),o=n.n(a),s=n(67294),l=n(97066),d=n(14416),c=n(26680),u=n(12039),A=n(12009);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0],t=(0,s.useState)({data:[],error:!1,load:!0}),n=t[0],i=t[1],a=(0,d.v9)((function(e){var t;return(null===e||void 0===e||null===(t=e.SessionManager)||void 0===t?void 0:t.token)||""}));function v(){return N.apply(this,arguments)}function N(){return(N=(0,r.Z)(o().mark((function t(){var n,r,s,d,v,N,_,m,x,h,I;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(null!==(_=e?(0,u.Gg)(l.t.purchaseFlowsCategory):(0,u.Gg)(l.t.purchaseFlows))&&((null===_||void 0===_?void 0:_.length)||0)>0)){t.next=4;break}return t.abrupt("return",i((function(e){return p(p({},e),{},{data:_,load:!1})})));case 4:return t.next=6,(0,c.xn)({name:A.f.flujos_de_venta,token:a});case 6:m=t.sent,x=null===m||void 0===m||null===(n=m.MarketingSpotData)||void 0===n||null===(r=n[0])||void 0===r||null===(s=r.baseMarketingSpotActivityData)||void 0===s||null===(d=s[0])||void 0===d||null===(v=d.marketingContentDescription)||void 0===v||null===(N=v[0])||void 0===N?void 0:N.marketingText,h=JSON.parse(x),I=e?h.flujos_de_venta.filter((function(e){return e.categorias.every((function(e){return""!==e}))})):h.flujos_de_venta,(0,u.KY)(e?l.t.purchaseFlowsCategory:l.t.purchaseFlows,I),i((function(e){return{error:!1,data:I,load:!1}})),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),i({error:t.t0,data:[],load:!1});case 17:case"end":return t.stop()}}),t,null,[[0,14]])})))).apply(this,arguments)}return(0,s.useEffect)((function(){v()}),[a]),n}},43799:function(e,t,n){"use strict";function i(){return!0}function r(e){return"tecnologia"==e||"terminales_libres"==e}function a(e,t,n,i){if(e&&r(e.toLowerCase().trim())){var a={};n&&(a=null===n||void 0===n?void 0:n.map((function(e){return{productId:e.detailProduct.contents[0].partNumber,quantity:Number(e.quantity),itemPrice:Number(e.detailProduct?"Offer"!=e.detailProduct.contents[0].price[0].usage?e.detailProduct.contents[0].price[1].value:e.detailProduct.contents[0].price[0].value:0)}}))),a=Array.isArray(a)?a:[a];var o={name:"Add to Cart",properties:{dyType:"add-to-cart-v1",value:Number(t.price?"Offer"!=t.price[0].usage?t.price[1].value:t.price[0].value:0)*Number(i),currency:"COP",productId:t.partNumber,quantity:Number(i),cart:a}};window.DY=window.DY||{},DY.recommendationContext={type:"PRODUCT",data:[t.partNumber]},DY.API("event",o)}}function o(e,t){if(e&&r(e.toLowerCase().trim())){var n=null===t||void 0===t?void 0:t.cartInfo;if(n){var i=n.orderItem.map((function(e){return{productId:e.detailProduct.contents[0].partNumber,quantity:Number(e.quantity),itemPrice:Number(e.detailProduct?"Offer"!=e.detailProduct.contents[0].price[0].usage?e.detailProduct.contents[0].price[1].value:e.detailProduct.contents[0].price[0].value:0)}}));i=Array.isArray(i)?i:[i];var a=Number(t.cartInfo.grandTotal),o={name:"Purchase",properties:{uniqueTransactionId:n.orderId+"",dyType:"purchase-v1",value:a,currency:"COP",cart:i}};window.DY=window.DY||{},DY.recommendationContext={type:"OTHER",data:["thankyou"]},DY.API("event",o)}}}n.d(t,{CZ:function(){return i},TB:function(){return a},pV:function(){return o}})},67965:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var i=n(92777),r=n(82262),a=n(10748),o=n(81531),s=n(63553),l=n(37247),d=n(59499),c=n(67294),u=n(14416),A=n(45217),v=n(97048),p=n(85893),N=function(e){var t=e.alertModalOptions,n=e.toggleIsModalVisible,i=e.toggleIsModalVisible1,r=e.toggleIsModalVisible2,a=t.colorCloseButton,o=t.isShownCloseButton;if(!t||!n)return null;var s="";switch(t.type){case"info":s="/static/images/icons/icon_info_red.svg";break;case"success":s="/static/images/icons/icon_success_red.svg";break;case"error":s="/static/images/icons/ico_bloqueo_red.svg";break;case"warn":s="/static/images/icons/icon_warning.svg";break;default:s=""}return s?(0,p.jsx)(v.Z,{styles:{modal:{borderRadius:"10px",boxSadow:"0px 3px 6px #00000029",width:"450px"}},open:t.isVisible,onClose:function(){return n()},center:!0,showCloseIcon:!1,classNames:{overlay:["success"===t.type?"registerRed__modal-overlay":""].join(" "),modal:["success"===t.type?"registerRed__modal-success":""].join(" ")},children:(0,p.jsxs)("div",{id:"edit-contra",className:["modalClienteRedise\xf1o","success"===t.type?"registerRed__modal-success-content":""].join(" "),style:{lineHeight:1.3,padding:"2px 20px"},children:[o&&(0,p.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end"},children:(0,p.jsx)("p",{style:{fontFamily:"Roboto-Bold",fontSize:"1.2rem",color:a,margin:0,cursor:"pointer"},onClick:n,children:"\u2715"})}),(0,p.jsx)("div",{children:(0,p.jsx)("img",{src:s,alt:"img-success",className:["success"===t.type?"registerRed__modal-success-icon":"tamanoResponsiveIcon"].join(" ")})}),t.message&&(0,p.jsx)("p",{style:{fontSize:"20px",fontWeight:"600",marginTop:"25px",marginBottom:"-8px"},className:["success"===t.type?"registerRed__modal-success-title":""].join(" "),children:(0,p.jsx)("div",{dangerouslySetInnerHTML:{__html:null===t||void 0===t?void 0:t.message}})}),(0,p.jsx)("p",{style:{},className:["success"===t.type?"registerRed__modal-success-message":""].join(" "),children:(0,p.jsx)("div",{dangerouslySetInnerHTML:{__html:null===t||void 0===t?void 0:t.title}})}),(0,p.jsx)("button",{type:"button",onClick:function(){return i()},style:{display:!(null!==t&&void 0!==t&&t.buttonMessage)&&"none",borderRadius:"20px",width:null===t||void 0===t?void 0:t.buttonWidth},className:[t.classbtn||"","success"===t.type?"registerRed__modal-button registerRed__modal-success-button":""].join(" "),children:null===t||void 0===t?void 0:t.buttonMessage}),(0,p.jsx)("button",{type:"button",className:t.classbtn2,onClick:function(){return r()},style:{display:!(null!==t&&void 0!==t&&t.buttonMessage2)&&"none",borderRadius:"20px",width:null===t||void 0===t?void 0:t.buttonWidth2},children:null===t||void 0===t?void 0:t.buttonMessage2})]})}):null};function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function m(e){for(var t=1;t13&&void 0!==arguments[13]&&arguments[13],N=arguments.length>14&&void 0!==arguments[14]?arguments[14]:"#187385";t.callback=r,t.callbackButton=s,t.callbackButton2=u,t.setState({alertModalOptions:{isVisible:!0,type:e,message:n,title:i,icon:a,buttonMessage:o,callbackButton:s,classbtn:l,buttonWidth:d,buttonMessage2:c,callbackButton2:u,classbtn2:A,buttonWidth2:v,isShownCloseButton:p,colorCloseButton:N}})})),t.state={alertModalOptions:{isVisible:!1,type:"",message:""}},t}return(0,r.Z)(s,[{key:"render",value:function(){var t=this.state.alertModalOptions;return(0,p.jsxs)("div",{children:[(0,p.jsx)(e,m(m({},this.props),{},{showAlertRed:this.showAlertRed})),(0,p.jsx)(N,{alertModalOptions:t,toggleIsModalVisible:this.toggleIsModalVisible,toggleIsModalVisible1:this.toggleIsModalVisible1,toggleIsModalVisible2:this.toggleIsModalVisible2})]})}}]),s}(c.Component);return(0,d.Z)(t,"getInitialProps",(function(t){return e.getInitialProps(t)})),h(t)}},20634:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return wt}});var i=n(90116),r=n(83618),a=n(59499),o=n(50029),s=n(87794),l=n.n(s),d=n(67294),c=n(11163),u=n(28860),A=n.n(u),v=n(45217),p=n(14416),N=n(72068),_=n(97048),m=n(50361),x=n.n(m),h=n(39415),I=n(33191),E=n(95904),f=n(26680),O=(n(55153),n(70197)),j=n(5042),S=n(61102),b=n(89181),T=n(75901),D=n(87612),C=n(28165),R=n(7763),P=n(13313),g=n(60323),y=n(21113),M=n(63112),L=n(9374),w=n(762),k=(n(72641),n(92879)),B=(n(60055),n(46066)),U=n(85893);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function G(e){for(var t=1;t"]})})]})})})})},Ie=["a","b","c","d","e"],Ee=function(e){var t=e.attributes1,n=e.attributes2,i=W(t,n).findFeature,r=Ie.map((function(e,t){var n=i("ctd_".concat(e,"_nombre")),r=i("ctd_".concat(e,"_desc"));return r&&n?(0,U.jsxs)("div",{className:"outstanding-features--box",children:[(0,U.jsx)("div",{className:"outstanding-features--name",children:n}),(0,U.jsx)("div",{className:"outstanding-features--description",children:r})]},"".concat(t,"-").concat(e)):null}));return(0,U.jsx)(d.Fragment,{children:(0,U.jsxs)("div",{className:"outstanding-features",children:[(0,U.jsx)("h4",{children:(0,U.jsx)(Q._H,{id:"label.featuredFeatures"})}),(0,U.jsx)("div",{className:"outstanding-features--list",children:r})]})})},fe="_nombre",Oe=["1","2"],je=["a","b","c","d","e","f","g","h","i","j","k","l"],Se=function(e){var t=e.icon,n=e.name,i=e.attributes;return(0,U.jsx)("div",{className:"fichaElement",children:(0,U.jsxs)("div",{className:"container",children:[(0,U.jsx)("div",{className:"image-description",children:(0,U.jsx)("img",{src:"../../static/images/icons".concat(t)||0})}),(0,U.jsx)("div",{className:"titulo",children:(0,U.jsx)("h3",{children:n||"No disponible"})}),(0,U.jsx)("div",{className:"caracTable",children:i.map((function(e,t){return(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:e[0]||""}),(0,U.jsx)("dd",{children:e[1]||""})]})}))})]})})},be=function(e){var t=e.attributes1,n=e.attributes2,i=W(t,n).findFeature;return(0,U.jsx)(d.Fragment,{children:je.map((function(e){return i("ft_".concat(e).concat(fe))&&(0,U.jsx)(Se,{icon:i("ft_".concat(e).concat("_ico")),name:i("ft_".concat(e).concat(fe)),attributes:Oe.map((function(t){return[i("ft_".concat(e).concat(t,"_nombre")),i("ft_".concat(e).concat(t,"_desc"))]}))})}))})},Te=function(e){var t=e.attributes1,n=e.attributes2,i=e.attributesMap,r=e.attID,a=W(t,n).findFeature,o=void 0;Object.keys(i||{}).forEach((function(e,t){var n,a=null===(n=i[e].values||[])||void 0===n?void 0:n.find((function(e){return(null===e||void 0===e?void 0:e.id)===r}));o=null===a||void 0===a?void 0:a.value}));var s=!1;void 0!==a("GARANTIA_MESES")&&"NA"!==a("GARANTIA_MESES")&&"N/A"!==a("GARANTIA_MESES")&&(s=!0);var l=!1;(void 0!==a("BATERIA")&&"NA"!==a("BATERIA")&&"N/A"!==a("BATERIA")||void 0!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&"NA"!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&"N/A"!==a("SOPORTA_CARGA_RAPIDA_WATTS")||void 0!==a("SOPORTA_CARGA_INALAMBRICA")&&"NA"!==a("SOPORTA_CARGA_INALAMBRICA")&&"N/A"!==a("SOPORTA_CARGA_INALAMBRICA")||void 0!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&"NA"!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&"N/A"!==a("INCLUYE_CARGADOR_CARGA_RAPIDA"))&&(l=!0);var c=!1;(void 0!==a("CANT_CAMARA_PRINCIPAL")&&"NA"!==a("CANT_CAMARA_PRINCIPAL")&&"N/A"!==a("CANT_CAMARA_PRINCIPAL")||void 0!==a("MPX_CAMARA_PRINCIPAL")&&"NA"!==a("MPX_CAMARA_PRINCIPAL")&&"N/A"!==a("MPX_CAMARA_PRINCIPAL")||void 0!==a("CANT_CAMARA_SELFIE")&&"NA"!==a("CANT_CAMARA_SELFIE")&&"N/A"!==a("CANT_CAMARA_SELFIE")||void 0!==a("MPX_CAMARA_SELFIE")&&"NA"!==a("MPX_CAMARA_SELFIE")&&"N/A"!==a("MPX_CAMARA_SELFIE")||void 0!==a("RESOLUCION_DE_VIDEO")&&"NA"!==a("RESOLUCION_DE_VIDEO")&&"N/A"!==a("RESOLUCION_DE_VIDEO"))&&(c=!0);var u=!1;void 0!==a("CONECTIVIDAD")&&"NA"!==a("CONECTIVIDAD")&&"N/A"!==a("CONECTIVIDAD")&&(u=!0);var A=!1;(void 0!==o||void 0!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&"NA"!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&"N/A"!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")||void 0!==a("PESO_GRAMOS")&&"NA"!==a("PESO_GRAMOS")&&"N/A"!==a("PESO_GRAMOS")||void 0!==a("PROTECCION_POLVO_AGUA")&&"NA"!==a("PROTECCION_POLVO_AGUA")&&"N/A"!==a("PROTECCION_POLVO_AGUA"))&&(A=!0);var v=!1;(void 0!==a("TIPO_DE_SIM")&&"NA"!==a("TIPO_DE_SIM")&&"N/A"!==a("TIPO_DE_SIM")||void 0!==a("DUAL_SIM")&&"NA"!==a("DUAL_SIM")&&"N/A"!==a("DUAL_SIM")||void 0!==a("SISTEMA_OPERATIVO")&&"NA"!==a("SISTEMA_OPERATIVO")&&"N/A"!==a("SISTEMA_OPERATIVO")||void 0!==a("SISTEMAOPERATIVO")&&"NA"!==a("SISTEMAOPERATIVO")&&"N/A"!==a("SISTEMAOPERATIVO")||void 0!==a("VERSION_SISTEMA_OPERATIVO")&&"NA"!==a("VERSION_SISTEMA_OPERATIVO")&&"N/A"!==a("VERSION_SISTEMA_OPERATIVO")||void 0!==a("TIPO_DE_PRODUCTO")&&"NA"!==a("TIPO_DE_PRODUCTO")&&"N/A"!==a("TIPO_DE_PRODUCTO"))&&(v=!0);var p=!1;(void 0!==a("MEMORIA_INTERNA")&&"NA"!==a("MEMORIA_INTERNA")&&"N/A"!==a("MEMORIA_INTERNA")||void 0!==a("MEMORIA_RAM")&&"NA"!==a("MEMORIA_RAM")&&"N/A"!==a("MEMORIA_RAM")||void 0!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&"NA"!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&"N/A"!==a("SOPORTA_MEMORIA_EXPANDIBLE"))&&(p=!0);var N=!1;(void 0!==a("CATEGORIA_DE_USO")&&"NA"!==a("CATEGORIA_DE_USO")&&"N/A"!==a("CATEGORIA_DE_USO")||void 0!==a("CALIDAD_TERM")&&"NA"!==a("CALIDAD_TERM")&&"N/A"!==a("CALIDAD_TERM")||void 0!==a("CUIDADOS_RELEVANTES_TERM")&&"NA"!==a("CUIDADOS_RELEVANTES_TERM")&&"N/A"!==a("CUIDADOS_RELEVANTES_TERM")||void 0!==a("FORMA_DE_EMPLEO_TERM")&&"NA"!==a("FORMA_DE_EMPLEO_TERM")&&"N/A"!==a("FORMA_DE_EMPLEO_TERM")||void 0!==a("IDONEIDAD_TERM")&&"NA"!==a("IDONEIDAD_TERM")&&"N/A"!==a("IDONEIDAD_TERM")||void 0!==a("MATERIALES_DE_FABRICACION_TERM")&&"NA"!==a("MATERIALES_DE_FABRICACION_TERM")&&"N/A"!==a("MATERIALES_DE_FABRICACION_TERM")||void 0!==a("MODO_DE_FABRICACION_TERM")&&"NA"!==a("MODO_DE_FABRICACION_TERM")&&"N/A"!==a("MODO_DE_FABRICACION_TERM")||void 0!==a("NATURALEZA_DE_FABRICACION_TERM")&&"NA"!==a("NATURALEZA_DE_FABRICACION_TERM")&&"N/A"!==a("NATURALEZA_DE_FABRICACION_TERM")||void 0!==a("ORIGEN_TERM")&&"NA"!==a("ORIGEN_TERM")&&"N/A"!==a("ORIGEN_TERM")||void 0!==a("RESTRICCIONES_DE_USO_TERM")&&"NA"!==a("RESTRICCIONES_DE_USO_TERM")&&"N/A"!==a("RESTRICCIONES_DE_USO_TERM")||void 0!==a("USOS_PREVISTOS_TERM")&&"NA"!==a("USOS_PREVISTOS_TERM")&&"N/A"!==a("USOS_PREVISTOS_TERM"))&&(N=!0);var _=!1;(void 0!==a("TAMANO_DE_PANTALLA_PULGADAS")&&"NA"!==a("TAMANO_DE_PANTALLA_PULGADAS")&&"N/A"!==a("TAMANO_DE_PANTALLA_PULGADAS")||void 0!==a("TIPO_DE_PANTALLA")&&"NA"!==a("TIPO_DE_PANTALLA")&&"N/A"!==a("TIPO_DE_PANTALLA")||void 0!==a("RESOLUCION_DE_PANTALLA")&&"NA"!==a("RESOLUCION_DE_PANTALLA")&&"N/A"!==a("RESOLUCION_DE_PANTALLA")||void 0!==a("TASA_DE_REFRESCO")&&"NA"!==a("TASA_DE_REFRESCO")&&"N/A"!==a("TASA_DE_REFRESCO"))&&(_=!0);var m=!1;(void 0!==a("PROCESADOR")&&"NA"!==a("PROCESADOR")&&"N/A"!==a("PROCESADOR")||void 0!==a("MARCA_PROCESADOR")&&"NA"!==a("MARCA_PROCESADOR")&&"N/A"!==a("MARCA_PROCESADOR")||void 0!==a("MODELO_PROCESADOR")&&"NA"!==a("MODELO_PROCESADOR")&&"N/A"!==a("MODELO_PROCESADOR")||void 0!==a("VELOCIDAD_MAX_NUCLEOS")&&"NA"!==a("VELOCIDAD_MAX_NUCLEOS")&&"N/A"!==a("VELOCIDAD_MAX_NUCLEOS")||void 0!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&"NA"!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&"N/A"!==a("CANTIDAD_DE_NUCLEOS_TOTAL"))&&(m=!0);var x=!1;void 0!==a("TECNOLOGIA")&&"NA"!==a("TECNOLOGIA")&&"N/A"!==a("TECNOLOGIA")&&(x=!0);var h=(0,d.useState)(!1),I=h[0],E=h[1];return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{className:"mod__fichaTecnica",children:[(0,U.jsxs)("div",{className:"".concat(I?"fichaElement":"fichaElement morePanel"),children:[A&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Dise\xf1o"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==o&&"NA"!==o&&"N/A"!==o&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Color"}),(0,U.jsx)("dd",{children:o})]}),void 0!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&"NA"!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&"N/A"!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Dimensi\xf3n equipo"}),(0,U.jsx)("dd",{children:a("DIMENSIONES_LARGO_ANCHO_ALTO_")})]}),void 0!==a("PESO_GRAMOS")&&"NA"!==a("PESO_GRAMOS")&&"N/A"!==a("PESO_GRAMOS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Peso"}),(0,U.jsx)("dd",{children:a("PESO_GRAMOS")})]}),void 0!==a("PROTECCION_POLVO_AGUA")&&"NA"!==a("PROTECCION_POLVO_AGUA")&&"N/A"!==a("PROTECCION_POLVO_AGUA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Protecci\xf3n polvo y agua"}),(0,U.jsx)("dd",{children:a("PROTECCION_POLVO_AGUA")})]})]})]}),c&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"C\xe1mara"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("CANT_CAMARA_PRINCIPAL")&&"NA"!==a("CANT_CAMARA_PRINCIPAL")&&"N/A"!==a("CANT_CAMARA_PRINCIPAL")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"C\xe1mara principal"}),(0,U.jsx)("dd",{children:a("CANT_CAMARA_PRINCIPAL")})]}),void 0!==a("MPX_CAMARA_PRINCIPAL")&&"NA"!==a("MPX_CAMARA_PRINCIPAL")&&"N/A"!==a("MPX_CAMARA_PRINCIPAL")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"MPX C\xe1mara principal"}),(0,U.jsx)("dd",{children:a("MPX_CAMARA_PRINCIPAL")})]}),void 0!==a("CANT_CAMARA_SELFIE")&&"NA"!==a("CANT_CAMARA_SELFIE")&&"N/A"!==a("CANT_CAMARA_SELFIE")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"C\xe1mara frontal"}),(0,U.jsx)("dd",{children:a("CANT_CAMARA_SELFIE")})]}),void 0!==a("MPX_CAMARA_SELFIE")&&"NA"!==a("MPX_CAMARA_SELFIE")&&"N/A"!==a("MPX_CAMARA_SELFIE")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"MPX C\xe1mara frontal"}),(0,U.jsx)("dd",{children:a("MPX_CAMARA_SELFIE")})]}),void 0!==a("RESOLUCION_DE_VIDEO")&&"NA"!==a("RESOLUCION_DE_VIDEO")&&"N/A"!==a("RESOLUCION_DE_VIDEO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Resoluci\xf3n video"}),(0,U.jsx)("dd",{children:a("RESOLUCION_DE_VIDEO")})]})]})]}),p&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Memoria"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("MEMORIA_INTERNA")&&"NA"!==a("MEMORIA_INTERNA")&&"N/A"!==a("MEMORIA_INTERNA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Memoria Interna"}),(0,U.jsx)("dd",{children:a("MEMORIA_INTERNA")})]}),void 0!==a("MEMORIA_RAM")&&"NA"!==a("MEMORIA_RAM")&&"N/A"!==a("MEMORIA_RAM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Memoria RAM"}),(0,U.jsx)("dd",{children:a("MEMORIA_RAM")})]}),void 0!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&"NA"!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&"N/A"!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Soporta memoria expandible"}),(0,U.jsx)("dd",{children:a("SOPORTA_MEMORIA_EXPANDIBLE")})]})]})]}),_&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Pantalla"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("TAMANO_DE_PANTALLA_PULGADAS")&&"NA"!==a("TAMANO_DE_PANTALLA_PULGADAS")&&"N/A"!==a("TAMANO_DE_PANTALLA_PULGADAS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tama\xf1o pantalla"}),(0,U.jsx)("dd",{children:a("TAMANO_DE_PANTALLA_PULGADAS")})]}),void 0!==a("TIPO_DE_PANTALLA")&&"NA"!==a("TIPO_DE_PANTALLA")&&"N/A"!==a("TIPO_DE_PANTALLA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tipo de pantalla"}),(0,U.jsx)("dd",{children:a("TIPO_DE_PANTALLA")})]}),void 0!==a("RESOLUCION_DE_PANTALLA")&&"NA"!==a("RESOLUCION_DE_PANTALLA")&&"N/A"!==a("RESOLUCION_DE_PANTALLA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Resoluci\xf3n pantalla"}),(0,U.jsx)("dd",{children:a("RESOLUCION_DE_PANTALLA")})]}),void 0!==a("TASA_DE_REFRESCO")&&"NA"!==a("TASA_DE_REFRESCO")&&"N/A"!==a("TASA_DE_REFRESCO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tasa de refresco"}),(0,U.jsx)("dd",{children:a("TASA_DE_REFRESCO")})]})]})]}),x&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Red"})}),(0,U.jsx)("div",{className:"grid grid-cols gap-20",children:void 0!==a("TECNOLOGIA")&&"NA"!==a("TECNOLOGIA")&&"N/A"!==a("TECNOLOGIA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Red"}),(0,U.jsx)("dd",{children:a("TECNOLOGIA")})]})})]}),u&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Conectividad"})}),(0,U.jsx)("div",{className:"grid grid-cols gap-20",children:void 0!==a("CONECTIVIDAD")&&"NA"!==a("CONECTIVIDAD")&&"N/A"!==a("CONECTIVIDAD")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Conectividad"}),(0,U.jsx)("dd",{children:a("CONECTIVIDAD")})]})})]}),l&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Bater\xeda"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("BATERIA")&&"NA"!==a("BATERIA")&&"N/A"!==a("BATERIA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Bater\xeda"}),(0,U.jsx)("dd",{children:a("BATERIA")})]}),void 0!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&"NA"!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&"N/A"!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Carga r\xe1pida"}),(0,U.jsx)("dd",{children:a("SOPORTA_CARGA_RAPIDA_WATTS")})]}),void 0!==a("SOPORTA_CARGA_INALAMBRICA")&&"NA"!==a("SOPORTA_CARGA_INALAMBRICA")&&"N/A"!==a("SOPORTA_CARGA_INALAMBRICA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Carga inal\xe1mbrica"}),(0,U.jsx)("dd",{children:a("SOPORTA_CARGA_INALAMBRICA")})]}),void 0!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&"NA"!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&"N/A"!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Incluye cargador carga r\xe1pida"}),(0,U.jsx)("dd",{children:a("INCLUYE_CARGADOR_CARGA_RAPIDA")})]})]})]}),m&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Procesador"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("PROCESADOR")&&"NA"!==a("PROCESADOR")&&"N/A"!==a("PROCESADOR")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Marca procesador"}),(0,U.jsx)("dd",{children:a("PROCESADOR")})]}),void 0!==a("MARCA_PROCESADOR")&&"NA"!==a("MARCA_PROCESADOR")&&"N/A"!==a("MARCA_PROCESADOR")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Marca procesador"}),(0,U.jsx)("dd",{children:a("MARCA_PROCESADOR")})]}),void 0!==a("MODELO_PROCESADOR")&&"NA"!==a("MODELO_PROCESADOR")&&"N/A"!==a("MODELO_PROCESADOR")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Modelo procesador"}),(0,U.jsx)("dd",{children:a("MODELO_PROCESADOR")})]}),void 0!==a("VELOCIDAD_MAX_NUCLEOS")&&"NA"!==a("VELOCIDAD_MAX_NUCLEOS")&&"N/A"!==a("VELOCIDAD_MAX_NUCLEOS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Velocidad m\xe1xima n\xfacleos"}),(0,U.jsx)("dd",{children:a("VELOCIDAD_MAX_NUCLEOS")})]}),void 0!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&"NA"!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&"N/A"!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Cantidad n\xfacleos"}),(0,U.jsx)("dd",{children:a("CANTIDAD_DE_NUCLEOS_TOTAL")})]})]})]}),v&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Generales"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("TIPO_DE_SIM")&&"NA"!==a("TIPO_DE_SIM")&&"N/A"!==a("TIPO_DE_SIM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tipo SIM"}),(0,U.jsx)("dd",{children:a("TIPO_DE_SIM")})]}),void 0!==a("DUAL_SIM")&&"NA"!==a("DUAL_SIM")&&"N/A"!==a("DUAL_SIM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Dual SIM"}),(0,U.jsx)("dd",{children:a("DUAL_SIM")})]}),void 0!==a("SISTEMAOPERATIVO")&&"NA"!==a("SISTEMAOPERATIVO")&&"N/A"!==a("SISTEMAOPERATIVO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Sistema operativo"}),(0,U.jsx)("dd",{children:a("SISTEMAOPERATIVO")})]}),void 0!==a("SISTEMA_OPERATIVO")&&"NA"!==a("SISTEMA_OPERATIVO")&&"N/A"!==a("SISTEMA_OPERATIVO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Sistema operativo"}),(0,U.jsx)("dd",{children:a("SISTEMA_OPERATIVO")})]}),void 0!==a("VERSION_SISTEMA_OPERATIVO")&&"NA"!==a("VERSION_SISTEMA_OPERATIVO")&&"N/A"!==a("VERSION_SISTEMA_OPERATIVO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Versi\xf3n sistema operativo"}),(0,U.jsx)("dd",{children:a("VERSION_SISTEMA_OPERATIVO")})]}),void 0!==a("TIPO_DE_PRODUCTO")&&"NA"!==a("TIPO_DE_PRODUCTO")&&"N/A"!==a("TIPO_DE_PRODUCTO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tipo de producto"}),(0,U.jsx)("dd",{children:a("TIPO_DE_PRODUCTO")})]})]})]}),s&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Adicionales"})}),(0,U.jsx)("div",{className:"grid grid-cols gap-20",children:void 0!==a("GARANTIA_MESES")&&"NA"!==a("GARANTIA_MESES")&&"N/A"!==a("GARANTIA_MESES")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Garant\xeda"}),(0,U.jsx)("dd",{children:a("GARANTIA_MESES")})]})})]}),N&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Otros"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("CATEGORIA_DE_USO")&&"NA"!==a("CATEGORIA_DE_USO")&&"N/A"!==a("CATEGORIA_DE_USO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tipo de uso"}),(0,U.jsx)("dd",{children:a("CATEGORIA_DE_USO")})]}),void 0!==a("CALIDAD_TERM")&&"NA"!==a("CALIDAD_TERM")&&"N/A"!==a("CALIDAD_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Calidad"}),(0,U.jsx)("dd",{children:a("CALIDAD_TERM")})]}),void 0!==a("CUIDADOS_RELEVANTES_TERM")&&"NA"!==a("CUIDADOS_RELEVANTES_TERM")&&"N/A"!==a("CUIDADOS_RELEVANTES_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Cuidados Relevantes"}),(0,U.jsx)("dd",{children:a("CUIDADOS_RELEVANTES_TERM")})]}),void 0!==a("FORMA_DE_EMPLEO_TERM")&&"NA"!==a("FORMA_DE_EMPLEO_TERM")&&"N/A"!==a("FORMA_DE_EMPLEO_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Forma de Empleo"}),(0,U.jsx)("dd",{children:a("FORMA_DE_EMPLEO_TERM")})]}),void 0!==a("IDONEIDAD_TERM")&&"NA"!==a("IDONEIDAD_TERM")&&"N/A"!==a("IDONEIDAD_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Idoneidad"}),(0,U.jsx)("dd",{children:a("IDONEIDAD_TERM")})]}),void 0!==a("MATERIALES_DE_FABRICACION_TERM")&&"NA"!==a("MATERIALES_DE_FABRICACION_TERM")&&"N/A"!==a("MATERIALES_DE_FABRICACION_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Materiales de fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("MATERIALES_DE_FABRICACION_TERM")})]}),void 0!==a("MODO_DE_FABRICACION_TERM")&&"NA"!==a("MODO_DE_FABRICACION_TERM")&&"N/A"!==a("MODO_DE_FABRICACION_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Modo de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("MODO_DE_FABRICACION_TERM")})]}),void 0!==a("NATURALEZA_DE_FABRICACION_TERM")&&"NA"!==a("NATURALEZA_DE_FABRICACION_TERM")&&"N/A"!==a("NATURALEZA_DE_FABRICACION_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Naturaleza de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("NATURALEZA_DE_FABRICACION_TERM")})]}),void 0!==a("ORIGEN_TERM")&&"NA"!==a("ORIGEN_TERM")&&"N/A"!==a("ORIGEN_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Origen"}),(0,U.jsx)("dd",{children:a("ORIGEN_TERM")})]}),void 0!==a("RESTRICCIONES_DE_USO_TERM")&&"NA"!==a("RESTRICCIONES_DE_USO_TERM")&&"N/A"!==a("RESTRICCIONES_DE_USO_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Restricciones de Uso"}),(0,U.jsx)("dd",{children:a("RESTRICCIONES_DE_USO_TERM")})]}),void 0!==a("USOS_PREVISTOS_TERM")&&"NA"!==a("USOS_PREVISTOS_TERM")&&"N/A"!==a("USOS_PREVISTOS_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Usos Previstos"}),(0,U.jsx)("dd",{children:a("USOS_PREVISTOS_TERM")})]})]})]})]}),(0,U.jsxs)("div",{className:"flex justify-center",children:[!I&&(0,U.jsx)("div",{role:"button",className:"more flex",onClick:function(){E(!I)},children:"M\xe1s detalles"}),I&&(0,U.jsx)("div",{role:"button",className:"more flex active",onClick:function(){E(!I)},children:"Menos detalles"})]})]})})},De=function(e){var t=e.attributes1,n=e.attributes2,i=e.attributesMap,r=e.attID,a=W(t,n).findFeature,o=void 0;Object.keys(i||{}).forEach((function(e,t){var n,a=null===(n=i[e].values||[])||void 0===n?void 0:n.find((function(e){return(null===e||void 0===e?void 0:e.id)===r}));o=null===a||void 0===a?void 0:a.value}));var s=!1;(void 0!==a("GARANTIA_MESES")&&"NA"!==a("GARANTIA_MESES")&&"N/A"!==a("GARANTIA_MESES")||void 0!==a("GARANTIA")&&"NA"!==a("GARANTIA")&&"N/A"!==a("GARANTIA"))&&(s=!0);var l=!1;(void 0!==a("BATERIA")&&"NA"!==a("BATERIA")&&"N/A"!==a("BATERIA")||void 0!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&"NA"!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&"N/A"!==a("SOPORTA_CARGA_RAPIDA_WATTS")||void 0!==a("SOPORTA_CARGA_INALAMBRICA")&&"NA"!==a("SOPORTA_CARGA_INALAMBRICA")&&"N/A"!==a("SOPORTA_CARGA_INALAMBRICA")||void 0!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&"NA"!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&"N/A"!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")||void 0!==a("TIPO_DE_BATERIA")&&"NA"!==a("TIPO_DE_BATERIA")&&"N/A"!==a("TIPO_DE_BATERIA"))&&(l=!0);var c=!1;(void 0!==a("CANT_CAMARA_PRINCIPAL")&&"NA"!==a("CANT_CAMARA_PRINCIPAL")&&"N/A"!==a("CANT_CAMARA_PRINCIPAL")||void 0!==a("MPX_CAMARA_PRINCIPAL")&&"NA"!==a("MPX_CAMARA_PRINCIPAL")&&"N/A"!==a("MPX_CAMARA_PRINCIPAL")||void 0!==a("CANT_CAMARA_SELFIE")&&"NA"!==a("CANT_CAMARA_SELFIE")&&"N/A"!==a("CANT_CAMARA_SELFIE")||void 0!==a("MPX_CAMARA_SELFIE")&&"NA"!==a("MPX_CAMARA_SELFIE")&&"N/A"!==a("MPX_CAMARA_SELFIE")||void 0!==a("RESOLUCION_DE_VIDEO")&&"NA"!==a("RESOLUCION_DE_VIDEO")&&"N/A"!==a("RESOLUCION_DE_VIDEO"))&&(c=!0);var u=!1;(void 0!==a("CONECTIVIDAD")&&"NA"!==a("CONECTIVIDAD")&&"N/A"!==a("CONECTIVIDAD")||void 0!==a("TARJETA_VIDEO")&&"NA"!==a("TARJETA_VIDEO")&&"N/A"!==a("TARJETA_VIDEO")||void 0!==a("TIPO_DE_PUERTOS")&&"NA"!==a("TIPO_DE_PUERTOS")&&"N/A"!==a("TIPO_DE_PUERTOS")||void 0!==a("BLUETOOTH")&&"NA"!==a("BLUETOOTH")&&"N/A"!==a("BLUETOOTH")||void 0!==a("USB_TIPO_C")&&"NA"!==a("USB_TIPO_C")&&"N/A"!==a("USB_TIPO_C")||void 0!==a("WIFI")&&"NA"!==a("WIFI")&&"N/A"!==a("WIFI"))&&(u=!0);var A=!1;(void 0!==o||void 0!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&"NA"!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&"N/A"!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")||void 0!==a("PESO_GRAMOS")&&"NA"!==a("PESO_GRAMOS")&&"N/A"!==a("PESO_GRAMOS")||void 0!==a("PROTECCION_POLVO_AGUA")&&"NA"!==a("PROTECCION_POLVO_AGUA")&&"N/A"!==a("PROTECCION_POLVO_AGUA")||void 0!==a("DIMENSIONES")&&"NA"!==a("DIMENSIONES")&&"N/A"!==a("DIMENSIONES")||void 0!==a("PESO")&&"NA"!==a("PESO")&&"N/A"!==a("PESO"))&&(A=!0);var v=!1;(void 0!==a("TIPO_DE_SIM")&&"NA"!==a("TIPO_DE_SIM")&&"N/A"!==a("TIPO_DE_SIM")||void 0!==a("DUAL_SIM")&&"NA"!==a("DUAL_SIM")&&"N/A"!==a("DUAL_SIM")||void 0!==a("SISTEMA_OPERATIVO")&&"NA"!==a("SISTEMA_OPERATIVO")&&"N/A"!==a("SISTEMA_OPERATIVO")||void 0!==a("SISTEMAOPERATIVO")&&"NA"!==a("SISTEMAOPERATIVO")&&"N/A"!==a("SISTEMAOPERATIVO")||void 0!==a("VERSION_SISTEMA_OPERATIVO")&&"NA"!==a("VERSION_SISTEMA_OPERATIVO")&&"N/A"!==a("VERSION_SISTEMA_OPERATIVO")||void 0!==a("TIPO_DE_PRODUCTO")&&"NA"!==a("TIPO_DE_PRODUCTO")&&"N/A"!==a("TIPO_DE_PRODUCTO")||void 0!==a("CAPACIDAD")&&"NA"!==a("CAPACIDAD")&&"N/A"!==a("CAPACIDAD")||void 0!==a("MARCA")&&"NA"!==a("MARCA")&&"N/A"!==a("MARCA")||void 0!==a("MATERIAL_DE_FABRICACION")&&"NA"!==a("MATERIAL_DE_FABRICACION")&&"N/A"!==a("MATERIAL_DE_FABRICACION")||void 0!==a("MODELO")&&"NA"!==a("MODELO")&&"N/A"!==a("MODELO"))&&(v=!0);var p=!1;(void 0!==a("MEMORIA_INTERNA")&&"NA"!==a("MEMORIA_INTERNA")&&"N/A"!==a("MEMORIA_INTERNA")||void 0!==a("MEMORIA_RAM")&&"NA"!==a("MEMORIA_RAM")&&"N/A"!==a("MEMORIA_RAM")||void 0!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&"NA"!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&"N/A"!==a("SOPORTA_MEMORIA_EXPANDIBLE"))&&(p=!0);var N=!1;(void 0!==a("CATEGORIA_DE_USO")&&"NA"!==a("CATEGORIA_DE_USO")&&"N/A"!==a("CATEGORIA_DE_USO")||void 0!==a("CALIDAD_TERM")&&"NA"!==a("CALIDAD_TERM")&&"N/A"!==a("CALIDAD_TERM")||void 0!==a("CUIDADOS_RELEVANTES_TERM")&&"NA"!==a("CUIDADOS_RELEVANTES_TERM")&&"N/A"!==a("CUIDADOS_RELEVANTES_TERM")||void 0!==a("FORMA_DE_EMPLEO_TERM")&&"NA"!==a("FORMA_DE_EMPLEO_TERM")&&"N/A"!==a("FORMA_DE_EMPLEO_TERM")||void 0!==a("IDONEIDAD_TERM")&&"NA"!==a("IDONEIDAD_TERM")&&"N/A"!==a("IDONEIDAD_TERM")||void 0!==a("MATERIALES_DE_FABRICACION_TERM")&&"NA"!==a("MATERIALES_DE_FABRICACION_TERM")&&"N/A"!==a("MATERIALES_DE_FABRICACION_TERM")||void 0!==a("MODO_DE_FABRICACION_TERM")&&"NA"!==a("MODO_DE_FABRICACION_TERM")&&"N/A"!==a("MODO_DE_FABRICACION_TERM")||void 0!==a("NATURALEZA_DE_FABRICACION_TERM")&&"NA"!==a("NATURALEZA_DE_FABRICACION_TERM")&&"N/A"!==a("NATURALEZA_DE_FABRICACION_TERM")||void 0!==a("ORIGEN_TERM")&&"NA"!==a("ORIGEN_TERM")&&"N/A"!==a("ORIGEN_TERM")||void 0!==a("RESTRICCIONES_DE_USO_TERM")&&"NA"!==a("RESTRICCIONES_DE_USO_TERM")&&"N/A"!==a("RESTRICCIONES_DE_USO_TERM")||void 0!==a("USOS_PREVISTOS_TERM")&&"NA"!==a("USOS_PREVISTOS_TERM")&&"N/A"!==a("USOS_PREVISTOS_TERM")||void 0!==a("CALIDAD_TECNLG")&&"NA"!==a("CALIDAD_TECNLG")&&"N/A"!==a("CALIDAD_TECNLG")||void 0!==a("CUIDADOS_RELEVANTES_TECNLG")&&"NA"!==a("CUIDADOS_RELEVANTES_TECNLG")&&"N/A"!==a("CUIDADOS_RELEVANTES_TECNLG")||void 0!==a("FORMA_DE_EMPLEO_TECNLG")&&"NA"!==a("FORMA_DE_EMPLEO_TECNLG")&&"N/A"!==a("FORMA_DE_EMPLEO_TECNLG")||void 0!==a("IDONEIDAD_TECNLG")&&"NA"!==a("IDONEIDAD_TECNLG")&&"N/A"!==a("IDONEIDAD_TECNLG")||void 0!==a("MATERIALES_DE_FABRICACION_TECN")&&"NA"!==a("MATERIALES_DE_FABRICACION_TECN")&&"N/A"!==a("MATERIALES_DE_FABRICACION_TECN")||void 0!==a("MODO_DE_FABRICACION_TECNLG")&&"NA"!==a("MODO_DE_FABRICACION_TECNLG")&&"N/A"!==a("MODO_DE_FABRICACION_TECNLG")||void 0!==a("NATURALEZA_DE_FABRICACION_TECN")&&"NA"!==a("NATURALEZA_DE_FABRICACION_TECN")&&"N/A"!==a("NATURALEZA_DE_FABRICACION_TECN")||void 0!==a("ORIGEN_TECNLG")&&"NA"!==a("ORIGEN_TECNLG")&&"N/A"!==a("ORIGEN_TECNLG")||void 0!==a("RESTRICCIONES_DE_USO_TECNLG")&&"NA"!==a("RESTRICCIONES_DE_USO_TECNLG")&&"N/A"!==a("RESTRICCIONES_DE_USO_TECNLG")||void 0!==a("USOS_PREVISTOS_TECNLG")&&"NA"!==a("USOS_PREVISTOS_TECNLG")&&"N/A"!==a("USOS_PREVISTOS_TECNLG"))&&(N=!0);var _=!1;(void 0!==a("TAMANO_DE_PANTALLA_PULGADAS")&&"NA"!==a("TAMANO_DE_PANTALLA_PULGADAS")&&"N/A"!==a("TAMANO_DE_PANTALLA_PULGADAS")||void 0!==a("TIPO_DE_PANTALLA")&&"NA"!==a("TIPO_DE_PANTALLA")&&"N/A"!==a("TIPO_DE_PANTALLA")||void 0!==a("RESOLUCION_DE_PANTALLA")&&"NA"!==a("RESOLUCION_DE_PANTALLA")&&"N/A"!==a("RESOLUCION_DE_PANTALLA")||void 0!==a("TASA_DE_REFRESCO")&&"NA"!==a("TASA_DE_REFRESCO")&&"N/A"!==a("TASA_DE_REFRESCO")||void 0!==a("RESOLUCION")&&"NA"!==a("RESOLUCION")&&"N/A"!==a("RESOLUCION")||void 0!==a("TAMANO_DE_PANTALLA")&&"NA"!==a("TAMANO_DE_PANTALLA")&&"N/A"!==a("TAMANO_DE_PANTALLA"))&&(_=!0);var m=!1;(void 0!==a("PROCESADOR")&&"NA"!==a("PROCESADOR")&&"N/A"!==a("PROCESADOR")||void 0!==a("MARCA_PROCESADOR")&&"NA"!==a("MARCA_PROCESADOR")&&"N/A"!==a("MARCA_PROCESADOR")||void 0!==a("MODELO_PROCESADOR")&&"NA"!==a("MODELO_PROCESADOR")&&"N/A"!==a("MODELO_PROCESADOR")||void 0!==a("VELOCIDAD_MAX_NUCLEOS")&&"NA"!==a("VELOCIDAD_MAX_NUCLEOS")&&"N/A"!==a("VELOCIDAD_MAX_NUCLEOS")||void 0!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&"NA"!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&"N/A"!==a("CANTIDAD_DE_NUCLEOS_TOTAL"))&&(m=!0);var x=!1;void 0!==a("TECNOLOGIA")&&"NA"!==a("TECNOLOGIA")&&"N/A"!==a("TECNOLOGIA")&&(x=!0);var h=(0,d.useState)(!1),I=h[0],E=h[1];return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{className:"mod__fichaTecnica",children:[(0,U.jsxs)("div",{className:"".concat(I?"fichaElement":"fichaElement morePanel"),children:[A&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Dise\xf1o"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==o&&"NA"!==o&&"N/A"!==o&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Color"}),(0,U.jsx)("dd",{children:o})]}),void 0!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&"NA"!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&"N/A"!==a("DIMENSIONES_LARGO_ANCHO_ALTO_")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Dimensi\xf3n equipo"}),(0,U.jsx)("dd",{children:a("DIMENSIONES_LARGO_ANCHO_ALTO_")})]}),void 0!==a("PESO_GRAMOS")&&"NA"!==a("PESO_GRAMOS")&&"N/A"!==a("PESO_GRAMOS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Peso"}),(0,U.jsx)("dd",{children:a("PESO_GRAMOS")})]}),void 0!==a("PROTECCION_POLVO_AGUA")&&"NA"!==a("PROTECCION_POLVO_AGUA")&&"N/A"!==a("PROTECCION_POLVO_AGUA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Protecci\xf3n polvo y agua"}),(0,U.jsx)("dd",{children:a("PROTECCION_POLVO_AGUA")})]}),void 0!==a("PESO")&&"NA"!==a("PESO")&&"N/A"!==a("PESO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Peso"}),(0,U.jsx)("dd",{children:a("PESO")})]}),void 0!==a("DIMENSIONES")&&"NA"!==a("DIMENSIONES")&&"N/A"!==a("DIMENSIONES")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Dimensi\xf3n del equipo"}),(0,U.jsx)("dd",{children:a("DIMENSIONES")})]})]})]}),c&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"C\xe1mara"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("CANT_CAMARA_PRINCIPAL")&&"NA"!==a("CANT_CAMARA_PRINCIPAL")&&"N/A"!==a("CANT_CAMARA_PRINCIPAL")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"C\xe1mara principal"}),(0,U.jsx)("dd",{children:a("CANT_CAMARA_PRINCIPAL")})]}),void 0!==a("MPX_CAMARA_PRINCIPAL")&&"NA"!==a("MPX_CAMARA_PRINCIPAL")&&"N/A"!==a("MPX_CAMARA_PRINCIPAL")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"MPX C\xe1mara principal"}),(0,U.jsx)("dd",{children:a("MPX_CAMARA_PRINCIPAL")})]}),void 0!==a("CANT_CAMARA_SELFIE")&&"NA"!==a("CANT_CAMARA_SELFIE")&&"N/A"!==a("CANT_CAMARA_SELFIE")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"C\xe1mara frontal"}),(0,U.jsx)("dd",{children:a("CANT_CAMARA_SELFIE")})]}),void 0!==a("MPX_CAMARA_SELFIE")&&"NA"!==a("MPX_CAMARA_SELFIE")&&"N/A"!==a("MPX_CAMARA_SELFIE")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"MPX C\xe1mara frontal"}),(0,U.jsx)("dd",{children:a("MPX_CAMARA_SELFIE")})]}),void 0!==a("RESOLUCION_DE_VIDEO")&&"NA"!==a("RESOLUCION_DE_VIDEO")&&"N/A"!==a("RESOLUCION_DE_VIDEO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Resoluci\xf3n video"}),(0,U.jsx)("dd",{children:a("RESOLUCION_DE_VIDEO")})]})]})]}),p&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Memoria"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("MEMORIA_INTERNA")&&"NA"!==a("MEMORIA_INTERNA")&&"N/A"!==a("MEMORIA_INTERNA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Memoria Interna"}),(0,U.jsx)("dd",{children:a("MEMORIA_INTERNA")})]}),void 0!==a("MEMORIA_RAM")&&"NA"!==a("MEMORIA_RAM")&&"N/A"!==a("MEMORIA_RAM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Memoria RAM"}),(0,U.jsx)("dd",{children:a("MEMORIA_RAM")})]}),void 0!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&"NA"!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&"N/A"!==a("SOPORTA_MEMORIA_EXPANDIBLE")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Soporta memoria expandible"}),(0,U.jsx)("dd",{children:a("SOPORTA_MEMORIA_EXPANDIBLE")})]})]})]}),_&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Pantalla"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("TAMANO_DE_PANTALLA_PULGADAS")&&"NA"!==a("TAMANO_DE_PANTALLA_PULGADAS")&&"N/A"!==a("TAMANO_DE_PANTALLA_PULGADAS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tama\xf1o pantalla"}),(0,U.jsx)("dd",{children:a("TAMANO_DE_PANTALLA_PULGADAS")})]}),void 0!==a("TIPO_DE_PANTALLA")&&"NA"!==a("TIPO_DE_PANTALLA")&&"N/A"!==a("TIPO_DE_PANTALLA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tipo de pantalla"}),(0,U.jsx)("dd",{children:a("TIPO_DE_PANTALLA")})]}),void 0!==a("RESOLUCION_DE_PANTALLA")&&"NA"!==a("RESOLUCION_DE_PANTALLA")&&"N/A"!==a("RESOLUCION_DE_PANTALLA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Resoluci\xf3n pantalla"}),(0,U.jsx)("dd",{children:a("RESOLUCION_DE_PANTALLA")})]}),void 0!==a("TASA_DE_REFRESCO")&&"NA"!==a("TASA_DE_REFRESCO")&&"N/A"!==a("TASA_DE_REFRESCO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tasa de refresco"}),(0,U.jsx)("dd",{children:a("TASA_DE_REFRESCO")})]}),void 0!==a("RESOLUCION")&&"NA"!==a("RESOLUCION")&&"N/A"!==a("RESOLUCION")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Resoluci\xf3n pantalla"}),(0,U.jsx)("dd",{children:a("RESOLUCION")})]}),void 0!==a("TAMANO_DE_PANTALLA")&&"NA"!==a("TAMANO_DE_PANTALLA")&&"N/A"!==a("TAMANO_DE_PANTALLA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tama\xf1o de pantalla"}),(0,U.jsx)("dd",{children:a("TAMANO_DE_PANTALLA")})]})]})]}),x&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Red"})}),(0,U.jsx)("div",{className:"grid grid-cols gap-20",children:void 0!==a("TECNOLOGIA")&&"NA"!==a("TECNOLOGIA")&&"N/A"!==a("TECNOLOGIA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Red"}),(0,U.jsx)("dd",{children:a("TECNOLOGIA")})]})})]}),u&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Conectividad"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("CONECTIVIDAD")&&"NA"!==a("CONECTIVIDAD")&&"N/A"!==a("CONECTIVIDAD")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Conectividad"}),(0,U.jsx)("dd",{children:a("CONECTIVIDAD")})]}),void 0!==a("TARJETA_VIDEO")&&"NA"!==a("TARJETA_VIDEO")&&"N/A"!==a("TARJETA_VIDEO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tarjeta de Video"}),(0,U.jsx)("dd",{children:a("TARJETA_VIDEO")})]}),void 0!==a("TIPO_DE_PUERTOS")&&"NA"!==a("TIPO_DE_PUERTOS")&&"N/A"!==a("TIPO_DE_PUERTOS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Puertos Incluidos"}),(0,U.jsx)("dd",{children:a("TIPO_DE_PUERTOS")})]}),void 0!==a("BLUETOOTH")&&"NA"!==a("BLUETOOTH")&&"N/A"!==a("BLUETOOTH")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Bluetooth"}),(0,U.jsx)("dd",{children:a("BLUETOOTH")})]}),void 0!==a("USB_TIPO_C")&&"NA"!==a("USB_TIPO_C")&&"N/A"!==a("USB_TIPO_C")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"USB Tipo C"}),(0,U.jsx)("dd",{children:a("USB_TIPO_C")})]}),void 0!==a("WIFI")&&"NA"!==a("WIFI")&&"N/A"!==a("WIFI")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"WIFI"}),(0,U.jsx)("dd",{children:a("WIFI")})]})]})]}),l&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Bater\xeda"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("BATERIA")&&"NA"!==a("BATERIA")&&"N/A"!==a("BATERIA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Bater\xeda"}),(0,U.jsx)("dd",{children:a("BATERIA")})]}),void 0!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&"NA"!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&"N/A"!==a("SOPORTA_CARGA_RAPIDA_WATTS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Carga r\xe1pida"}),(0,U.jsx)("dd",{children:a("SOPORTA_CARGA_RAPIDA_WATTS")})]}),void 0!==a("SOPORTA_CARGA_INALAMBRICA")&&"NA"!==a("SOPORTA_CARGA_INALAMBRICA")&&"N/A"!==a("SOPORTA_CARGA_INALAMBRICA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Carga inal\xe1mbrica"}),(0,U.jsx)("dd",{children:a("SOPORTA_CARGA_INALAMBRICA")})]}),void 0!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&"NA"!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&"N/A"!==a("INCLUYE_CARGADOR_CARGA_RAPIDA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Incluye cargador carga r\xe1pida"}),(0,U.jsx)("dd",{children:a("INCLUYE_CARGADOR_CARGA_RAPIDA")})]}),void 0!==a("TIPO_DE_BATERIA")&&"NA"!==a("TIPO_DE_BATERIA")&&"N/A"!==a("TIPO_DE_BATERIA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Duracion Bater\xeda"}),(0,U.jsx)("dd",{children:a("TIPO_DE_BATERIA")})]})]})]}),m&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Procesador"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("PROCESADOR")&&"NA"!==a("PROCESADOR")&&"N/A"!==a("PROCESADOR")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Marca procesador"}),(0,U.jsx)("dd",{children:a("PROCESADOR")})]}),void 0!==a("MARCA_PROCESADOR")&&"NA"!==a("MARCA_PROCESADOR")&&"N/A"!==a("MARCA_PROCESADOR")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Marca procesador"}),(0,U.jsx)("dd",{children:a("MARCA_PROCESADOR")})]}),void 0!==a("MODELO_PROCESADOR")&&"NA"!==a("MODELO_PROCESADOR")&&"N/A"!==a("MODELO_PROCESADOR")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Modelo procesador"}),(0,U.jsx)("dd",{children:a("MODELO_PROCESADOR")})]}),void 0!==a("VELOCIDAD_MAX_NUCLEOS")&&"NA"!==a("VELOCIDAD_MAX_NUCLEOS")&&"N/A"!==a("VELOCIDAD_MAX_NUCLEOS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Velocidad m\xe1xima n\xfacleos"}),(0,U.jsx)("dd",{children:a("VELOCIDAD_MAX_NUCLEOS")})]}),void 0!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&"NA"!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&"N/A"!==a("CANTIDAD_DE_NUCLEOS_TOTAL")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Cantidad n\xfacleos"}),(0,U.jsx)("dd",{children:a("CANTIDAD_DE_NUCLEOS_TOTAL")})]})]})]}),v&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Generales"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("TIPO_DE_SIM")&&"NA"!==a("TIPO_DE_SIM")&&"N/A"!==a("TIPO_DE_SIM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tipo SIM"}),(0,U.jsx)("dd",{children:a("TIPO_DE_SIM")})]}),void 0!==a("DUAL_SIM")&&"NA"!==a("DUAL_SIM")&&"N/A"!==a("DUAL_SIM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Dual SIM"}),(0,U.jsx)("dd",{children:a("DUAL_SIM")})]}),void 0!==a("SISTEMAOPERATIVO")&&"NA"!==a("SISTEMAOPERATIVO")&&"N/A"!==a("SISTEMAOPERATIVO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Sistema operativo"}),(0,U.jsx)("dd",{children:a("SISTEMAOPERATIVO")})]}),void 0!==a("SISTEMA_OPERATIVO")&&"NA"!==a("SISTEMA_OPERATIVO")&&"N/A"!==a("SISTEMA_OPERATIVO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Sistema operativo"}),(0,U.jsx)("dd",{children:a("SISTEMA_OPERATIVO")})]}),void 0!==a("VERSION_SISTEMA_OPERATIVO")&&"NA"!==a("VERSION_SISTEMA_OPERATIVO")&&"N/A"!==a("VERSION_SISTEMA_OPERATIVO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Versi\xf3n sistema operativo"}),(0,U.jsx)("dd",{children:a("VERSION_SISTEMA_OPERATIVO")})]}),void 0!==a("TIPO_DE_PRODUCTO")&&"NA"!==a("TIPO_DE_PRODUCTO")&&"N/A"!==a("TIPO_DE_PRODUCTO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tipo de producto"}),(0,U.jsx)("dd",{children:a("TIPO_DE_PRODUCTO")})]}),void 0!==a("CAPACIDAD")&&"NA"!==a("CAPACIDAD")&&"N/A"!==a("CAPACIDAD")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Almacenamiento"}),(0,U.jsx)("dd",{children:a("CAPACIDAD")})]}),void 0!==a("MARCA")&&"NA"!==a("MARCA")&&"N/A"!==a("MARCA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Marca"}),(0,U.jsx)("dd",{children:a("MARCA")})]}),void 0!==a("MATERIAL_DE_FABRICACION")&&"NA"!==a("MATERIAL_DE_FABRICACION")&&"N/A"!==a("MATERIAL_DE_FABRICACION")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Material de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("MATERIAL_DE_FABRICACION")})]}),void 0!==a("MODELO")&&"NA"!==a("MODELO")&&"N/A"!==a("MODELO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Modelo"}),(0,U.jsx)("dd",{children:a("MODELO")})]})]})]}),s&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Adicionales"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("GARANTIA_MESES")&&"NA"!==a("GARANTIA_MESES")&&"N/A"!==a("GARANTIA_MESES")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Garant\xeda"}),(0,U.jsx)("dd",{children:a("GARANTIA_MESES")})]}),void 0!==a("GARANTIA")&&"NA"!==a("GARANTIA")&&"N/A"!==a("GARANTIA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Garant\xeda"}),(0,U.jsx)("dd",{children:a("GARANTIA")})]})]})]}),N&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Otros"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==a("CATEGORIA_DE_USO")&&"NA"!==a("CATEGORIA_DE_USO")&&"N/A"!==a("CATEGORIA_DE_USO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tipo de uso"}),(0,U.jsx)("dd",{children:a("CATEGORIA_DE_USO")})]}),void 0!==a("CALIDAD_TERM")&&"NA"!==a("CALIDAD_TERM")&&"N/A"!==a("CALIDAD_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Calidad"}),(0,U.jsx)("dd",{children:a("CALIDAD_TERM")})]}),void 0!==a("CUIDADOS_RELEVANTES_TERM")&&"NA"!==a("CUIDADOS_RELEVANTES_TERM")&&"N/A"!==a("CUIDADOS_RELEVANTES_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Cuidados Relevantes"}),(0,U.jsx)("dd",{children:a("CUIDADOS_RELEVANTES_TERM")})]}),void 0!==a("FORMA_DE_EMPLEO_TERM")&&"NA"!==a("FORMA_DE_EMPLEO_TERM")&&"N/A"!==a("FORMA_DE_EMPLEO_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Forma de Empleo"}),(0,U.jsx)("dd",{children:a("FORMA_DE_EMPLEO_TERM")})]}),void 0!==a("IDONEIDAD_TERM")&&"NA"!==a("IDONEIDAD_TERM")&&"N/A"!==a("IDONEIDAD_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Idoneidad"}),(0,U.jsx)("dd",{children:a("IDONEIDAD_TERM")})]}),void 0!==a("MATERIALES_DE_FABRICACION_TERM")&&"NA"!==a("MATERIALES_DE_FABRICACION_TERM")&&"N/A"!==a("MATERIALES_DE_FABRICACION_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Materiales de fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("MATERIALES_DE_FABRICACION_TERM")})]}),void 0!==a("MODO_DE_FABRICACION_TERM")&&"NA"!==a("MODO_DE_FABRICACION_TERM")&&"N/A"!==a("MODO_DE_FABRICACION_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Modo de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("MODO_DE_FABRICACION_TERM")})]}),void 0!==a("NATURALEZA_DE_FABRICACION_TERM")&&"NA"!==a("NATURALEZA_DE_FABRICACION_TERM")&&"N/A"!==a("NATURALEZA_DE_FABRICACION_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Naturaleza de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("NATURALEZA_DE_FABRICACION_TERM")})]}),void 0!==a("ORIGEN_TERM")&&"NA"!==a("ORIGEN_TERM")&&"N/A"!==a("ORIGEN_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Origen"}),(0,U.jsx)("dd",{children:a("ORIGEN_TERM")})]}),void 0!==a("RESTRICCIONES_DE_USO_TERM")&&"NA"!==a("RESTRICCIONES_DE_USO_TERM")&&"N/A"!==a("RESTRICCIONES_DE_USO_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Restricciones de Uso"}),(0,U.jsx)("dd",{children:a("RESTRICCIONES_DE_USO_TERM")})]}),void 0!==a("USOS_PREVISTOS_TERM")&&"NA"!==a("USOS_PREVISTOS_TERM")&&"N/A"!==a("USOS_PREVISTOS_TERM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Usos Previstos"}),(0,U.jsx)("dd",{children:a("USOS_PREVISTOS_TERM")})]}),void 0!==a("CALIDAD_TECNLG")&&"NA"!==a("CALIDAD_TECNLG")&&"N/A"!==a("CALIDAD_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Calidad"}),(0,U.jsx)("dd",{children:a("CALIDAD_TECNLG")})]}),void 0!==a("CUIDADOS_RELEVANTES_TECNLG")&&"NA"!==a("CUIDADOS_RELEVANTES_TECNLG")&&"N/A"!==a("CUIDADOS_RELEVANTES_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Cuidados Relevantes"}),(0,U.jsx)("dd",{children:a("CUIDADOS_RELEVANTES_TECNLG")})]}),void 0!==a("FORMA_DE_EMPLEO_TECNLG")&&"NA"!==a("FORMA_DE_EMPLEO_TECNLG")&&"N/A"!==a("FORMA_DE_EMPLEO_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Forma de empleo"}),(0,U.jsx)("dd",{children:a("FORMA_DE_EMPLEO_TECNLG")})]}),void 0!==a("IDONEIDAD_TECNLG")&&"NA"!==a("IDONEIDAD_TECNLG")&&"N/A"!==a("IDONEIDAD_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Idoneidad"}),(0,U.jsx)("dd",{children:a("IDONEIDAD_TECNLG")})]}),void 0!==a("MATERIALES_DE_FABRICACION_TECN")&&"NA"!==a("MATERIALES_DE_FABRICACION_TECN")&&"N/A"!==a("MATERIALES_DE_FABRICACION_TECN")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Materiales de fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("MATERIALES_DE_FABRICACION_TECN")})]}),void 0!==a("MODO_DE_FABRICACION_TECNLG")&&"NA"!==a("MODO_DE_FABRICACION_TECNLG")&&"N/A"!==a("MODO_DE_FABRICACION_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Modo de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("MODO_DE_FABRICACION_TECNLG")})]}),void 0!==a("NATURALEZA_DE_FABRICACION_TECN")&&"NA"!==a("NATURALEZA_DE_FABRICACION_TECN")&&"N/A"!==a("NATURALEZA_DE_FABRICACION_TECN")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Naturaleza de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:a("NATURALEZA_DE_FABRICACION_TECN")})]}),void 0!==a("ORIGEN_TECNLG")&&"NA"!==a("ORIGEN_TECNLG")&&"N/A"!==a("ORIGEN_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Origen"}),(0,U.jsx)("dd",{children:a("ORIGEN_TECNLG")})]}),void 0!==a("RESTRICCIONES_DE_USO_TECNLG")&&"NA"!==a("RESTRICCIONES_DE_USO_TECNLG")&&"N/A"!==a("RESTRICCIONES_DE_USO_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Restricciones de Uso"}),(0,U.jsx)("dd",{children:a("RESTRICCIONES_DE_USO_TECNLG")})]}),void 0!==a("USOS_PREVISTOS_TECNLG")&&"NA"!==a("USOS_PREVISTOS_TECNLG")&&"N/A"!==a("USOS_PREVISTOS_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Usos Previstos"}),(0,U.jsx)("dd",{children:a("USOS_PREVISTOS_TECNLG")})]})]})]})]}),(0,U.jsxs)("div",{className:"flex justify-center",children:[!I&&(0,U.jsx)("div",{role:"button",className:"more flex",onClick:function(){E(!I)},children:"M\xe1s detalles"}),I&&(0,U.jsx)("div",{role:"button",className:"more flex active",onClick:function(){E(!I)},children:"Menos detalles"})]})]})})};var Ce=function(e){var t,n,i,r,a,o,s,l=e.detalle_kitprepago,d=null===l||void 0===l||null===(t=l.MarketingSpotData)||void 0===t||null===(n=t[0])||void 0===n||null===(i=n.baseMarketingSpotActivityData)||void 0===i||null===(r=i[0])||void 0===r||null===(a=r.marketingContentDescription)||void 0===a||null===(o=a[0])||void 0===o?void 0:o.marketingText;return(0,U.jsx)("div",{className:"Kit-Prepago-info",dangerouslySetInnerHTML:{__html:(s=d,s?s.replace(/)<[^<]*)*<\/style>/gi,""):s)}})},Re=function(e,t){var n,i=X()(t,(function(t){return t.identifier===e}));return null===i||void 0===i||null===(n=i.values[0])||void 0===n?void 0:n.value},Pe=function(e,t){var n=function(e){return function(t){return function(n){return e[n]?e[n]:Re(n,t)}}}(e)(t);return{ctd_a_nombre:n("ctd_a_nombre"),ctd_nombres:{ctd_a_nombre:n("ctd_a_nombre"),ctd_b_nombre:n("ctd_b_nombre"),ctd_c_nombre:n("ctd_c_nombre"),ctd_d_nombre:n("ctd_d_nombre"),ctd_e_nombre:n("ctd_e_nombre")},ctd_descipciones:{ctd_a_desc:n("ctd_a_desc"),ctd_b_desc:n("ctd_b_desc"),ctd_c_desc:n("ctd_c_desc"),ctd_d_desc:n("ctd_d_desc"),ctd_e_desc:n("ctd_e_desc")},cp_a_ico:n("cp_a_ico"),cp_b_ico:n("cp_b_ico"),cp_c_ico:n("cp_c_ico"),cp_d_ico:n("cp_d_ico"),cp_a_desc:n("cp_a_desc"),cp_b_desc:n("cp_b_desc"),cp_c_desc:n("cp_c_desc"),cp_d_desc:n("cp_d_desc"),car_anexo_a_nombre:n("car_anexo_a_nombre"),car_anexo_b_nombre:n("car_anexo_b_nombre"),car_anexo_c_nombre:n("car_anexo_c_nombre"),car_anexo_a_desc:n("car_anexo_a_desc"),car_anexo_b_desc:n("car_anexo_b_desc"),car_anexo_c_desc:n("car_anexo_c_desc"),car_anexo_a_imagen:n("car_anexo_a_imagen"),car_anexo_b_imagen:n("car_anexo_b_imagen"),car_anexo_c_imagen:n("car_anexo_c_imagen"),ft_a_ico:n("ft_a_ico"),ft_b_ico:n("ft_b_ico"),ft_c_ico:n("ft_c_ico"),ft_d_ico:n("ft_d_ico"),ft_e_ico:n("ft_e_ico"),ft_f_ico:n("ft_f_ico"),ft_g_ico:n("ft_g_ico"),ft_h_ico:n("ft_h_ico"),ft_i_ico:n("ft_i_ico"),ft_j_ico:n("ft_j_ico"),ft_k_ico:n("ft_k_ico"),ft_l_ico:n("ft_l_ico"),ft_a_nombre:n("ft_a_nombre"),ft_b_nombre:n("ft_b_nombre"),ft_c_nombre:n("ft_c_nombre"),ft_d_nombre:n("ft_d_nombre"),ft_e_nombre:n("ft_e_nombre"),ft_f_nombre:n("ft_f_nombre"),ft_g_nombre:n("ft_g_nombre"),ft_h_nombre:n("ft_h_nombre"),ft_i_nombre:n("ft_i_nombre"),ft_j_nombre:n("ft_j_nombre"),ft_k_nombre:n("ft_k_nombre"),ft_l_nombre:n("ft_l_nombre"),cd_a_nombreico:n("cd_a_nombreico"),cd_b_nombreico:n("cd_b_nombreico"),cd_c_nombreico:n("cd_c_nombreico"),cd_a_titulo:n("cd_a_titulo"),cd_a_desc:n("cd_a_desc"),cd_a_desc1:n("cd_a_desc1"),cd_a_imagen:n("cd_a_imagen"),cd_b_titulo:n("cd_b_titulo"),cd_b_desc:n("cd_b_desc"),cd_b_desc1:n("cd_b_desc1"),cd_b_imagen:n("cd_b_imagen"),cd_c_titulo:n("cd_c_titulo"),cd_c_desc:n("cd_c_desc1"),cd_c_imagen:n("cd_c_imagen"),caja_a_desc:n("caja_a_desc"),caja_b_desc:n("caja_b_desc"),caja_a_nombre:n("caja_a_nombre"),caja_b_nombre:n("caja_b_nombre"),esFinanciable:n("esFinanciable"),tipo_venta:n("TIPO_VENTA"),cd_1_desc:n("cd_1_desc"),cd_1_ico:n("cd_1_ico"),cd_1_imagen:n("cd_1_imagen"),cd_1_nombre:n("cd_1_nombre"),cd_1_titulo:n("cd_1_titulo"),cd_2_desc:n("cd_2_desc"),cd_2_ico:n("cd_2_ico"),cd_2_imagen:n("cd_2_imagen"),cd_2_nombre:n("cd_2_nombre"),cd_2_titulo:n("cd_2_titulo"),cd_3_desc:n("cd_3_desc"),cd_3_ico:n("cd_3_ico"),cd_3_imagen:n("cd_3_imagen"),cd_3_nombre:n("cd_3_nombre"),cd_3_titulo:n("cd_3_titulo"),codigoCategoria:n("codigoCategoria"),codigoGtin:n("codigoGtin")}},ge=n(83225),ye=n(59663),Me=n(60432),Le=n(68045),we=n(60378),ke=n(32505);function Be(){return Ue.apply(this,arguments)}function Ue(){return Ue=(0,o.Z)(l().mark((function e(){var t,n,i,r,a=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:"",n=a.length>1&&void 0!==a[1]?a[1]:"",e.next=4,(0,ke.yC)(n,"646x1000");case 4:return i=e.sent,r=(i||[]).filter((function(e){return e.includes("".concat(t,"."))||e.includes("".concat(t,"_"))})),e.abrupt("return",(r||[]).map((function(e){return{fullImage:"".concat("https://cdn.claro.com.co/imagenes/claroshop/catalogo","/").concat(n,"/646x1000/").concat(e),thumbnail:"".concat("https://cdn.claro.com.co/imagenes/claroshop/catalogo","/").concat(n,"/70x110/").concat(e)}})));case 7:case"end":return e.stop()}}),e)}))),Ue.apply(this,arguments)}function Fe(e){var t;return null===e||void 0===e||null===(t=e.filter((function(e){var t;return!(null!==(t=e.thumbnail)&&void 0!==t&&t.includes("200x310"))})))||void 0===t?void 0:t.map((function(e){return{fullImage:e.fullImage,thumbnail:e.thumbnail}}))}var Ge=n(66896),Ve=n(30939),qe=function(e){var t=e.partNumber,n=(0,d.useState)(""),i=n[0],r=n[1],a=(0,d.useState)(""),s=a[0],c=a[1],u=(0,d.useState)(),A=u[0],v=u[1];function p(){return(p=(0,o.Z)(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,Ve.qf)();case 3:t=e.sent,r(t.data[0].VALUE),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),r("0");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function N(){return N=(0,o.Z)(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,Ve.MD)(t);case 3:n=e.sent,c(n.data.total),_(n.data),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),c("0");case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),N.apply(this,arguments)}function _(e){var t=(5*e.V+4*e.IV+3*e.III+2*e.II+1*e.I)/(e.V+e.IV+e.III+e.II+e.I);v(t)}return(0,d.useEffect)((function(){!function(){p.apply(this,arguments)}(),function(e){N.apply(this,arguments)}(t)}),[t]),(0,U.jsx)(U.Fragment,{children:"1"===i&&0!==s&&(0,U.jsxs)("div",{className:"divProductRatePD",children:[(0,U.jsxs)("div",{className:"starsContentPD",children:[(0,U.jsx)("i",{class:A>=1?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:A>=2?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:A>=3?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:A>=4?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:A>=5?"fa fa-star":"fa fa-star-o","aria-hidden":"true"})]}),(0,U.jsx)("div",{className:"opinionsPD",children:(0,U.jsxs)("a",{href:"#OpinionsResume",children:[s," opiniones"]})})]})})},Qe=n(48772);function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ke(e){for(var t=1;t0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("h3",{children:"Rese\xf1as del producto"}),(0,U.jsxs)("div",{className:"resumenRese\xf1asProducto",children:[(0,U.jsxs)("div",{className:"resumenCalif",children:[(0,U.jsx)("p",{children:null===N||void 0===N?void 0:N.toFixed(1)}),(0,U.jsxs)("div",{className:"starsContentPDR",children:[(0,U.jsx)("i",{class:N>=1?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:N>=2?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:N>=3?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:N>=4?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:N>=5?"fa fa-star":"fa fa-star-o","aria-hidden":"true"})]}),(0,U.jsx)("div",{className:"opinionsPDR",children:(0,U.jsxs)("p",{children:[s," Rese\xf1as"]})})]}),(0,U.jsx)("div",{className:"ratesCalif",children:(0,U.jsx)("div",{className:"ratesContainer",children:(0,U.jsxs)("ul",{children:[(0,U.jsxs)("li",{children:["5 estrellas"," ",(0,U.jsx)("div",{className:"element1",children:(0,U.jsx)("div",{className:"element2",style:{width:(null===A||void 0===A?void 0:A.V)/s*100}})}),null===A||void 0===A?void 0:A.V]}),(0,U.jsxs)("li",{children:["4 estrellas"," ",(0,U.jsx)("div",{className:"element1",children:(0,U.jsx)("div",{className:"element2",style:{width:(null===A||void 0===A?void 0:A.IV)/s*100}})}),null===A||void 0===A?void 0:A.IV]}),(0,U.jsxs)("li",{children:["3 estrellas"," ",(0,U.jsx)("div",{className:"element1",children:(0,U.jsx)("div",{className:"element2",style:{width:(null===A||void 0===A?void 0:A.III)/s*100}})}),null===A||void 0===A?void 0:A.III]}),(0,U.jsxs)("li",{children:["2 estrellas"," ",(0,U.jsx)("div",{className:"element1",children:(0,U.jsx)("div",{className:"element2",style:{width:(null===A||void 0===A?void 0:A.II)/s*100}})}),null===A||void 0===A?void 0:A.II]}),(0,U.jsxs)("li",{children:["1 estrellas"," ",(0,U.jsx)("div",{className:"element1",children:(0,U.jsx)("div",{className:"element2",style:{width:(null===A||void 0===A?void 0:A.I)/s*100}})}),null===A||void 0===A?void 0:A.I]})]})})}),(0,U.jsxs)("div",{className:"divBotonCalif",children:[(0,U.jsx)("span",{}),(0,U.jsx)("span",{}),(0,U.jsx)("div",{children:(0,U.jsx)("a",{className:"btn-azul",onClick:function(){g(!P)},onKeyDown:function(){},role:"button",children:"Califica el producto"})})]})]})]}),(0,U.jsx)(U.Fragment,{children:M>0&&(0,U.jsxs)(U.Fragment,{children:[h.data.map((function(e){return(0,U.jsx)("div",{className:"detalleRese\xf1asProducto",children:(0,U.jsxs)("div",{className:"detalleComentario",children:[(0,U.jsxs)("div",{className:"detalleRese\xf1a1",children:[(0,U.jsxs)("div",{className:"starsContentPDR2",children:[(0,U.jsx)("i",{class:parseInt(e.NUMERO_ESTRELLAS)>=1?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:parseInt(e.NUMERO_ESTRELLAS)>=2?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:parseInt(e.NUMERO_ESTRELLAS)>=3?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:parseInt(e.NUMERO_ESTRELLAS)>=4?"fa fa-star":"fa fa-star-o","aria-hidden":"true"}),(0,U.jsx)("i",{class:parseInt(e.NUMERO_ESTRELLAS)>=5?"fa fa-star":"fa fa-star-o","aria-hidden":"true"})]}),(0,U.jsxs)("p",{children:["Por ",e.NOMBRE_USUARIO,": ",e.TITULO_COMENTARIO]})]}),(0,U.jsx)("div",{className:"detalleRese\xf1a2",children:(0,U.jsxs)("p",{children:["Calificado el ",G(e.FECHA_REGISTRO)]})}),(0,U.jsx)("div",{className:"detalleRese\xf1a3",children:(0,U.jsx)("span",{children:e.COMENTARIO})})]})})})),(0,U.jsx)(Qe.Z,{rowsPerPageOptions:[5,10,15],count:M,page:S,onPageChange:function(e,t){b(t),C(Ke(Ke({},D),{},{first:t*D.maxResults}))},rowsPerPage:f,onRowsPerPageChange:function(e){O(e.target.value),b(0),C(Ke(Ke({},D),{},{first:0,maxResults:e.target.value}))},labelRowsPerPage:"Filas por p\xe1gina",labelDisplayedRows:function(e){var t=e.from,n=e.to,i=e.count;return"Mostrando ".concat(t,"-").concat(n," de ").concat(i," comentarios")}})]})})]}),(0,U.jsx)(_.Z,{open:P,onClose:function(){return g(!1)},center:!0,showCloseIcon:!0,children:(0,U.jsxs)("div",{className:"divModalRateProducts",children:[(0,U.jsx)("h3",{children:"Califica el producto"}),(0,U.jsx)("p",{children:'Por favor ingresa a la secci\xf3n de "Mis pedidos" para poder calificar este producto.'}),(0,U.jsx)("div",{children:(0,U.jsx)("a",{className:"btn-azul",onClick:function(){g(!P)},onKeyDown:function(){},role:"button",children:"Aceptar"})})]})})]})},Xe=n(52865),ze=n(43799),We=n(47353);function Je(e){var t,n=e.toggleActiveAccordeonIndex,i=e.handleQuantityChange,r=e.inventoryStatusBySku,a=e.activeAccordeonIndex,o=e.linkparentCategory,s=e.getValueInventory,l=e.selectedQuantity,d=e.attrDescMap1SKU,c=e.longDescription,u=e.finalOfferPrice,A=e.priceForAddi,v=e.attrDescMap,p=e.breadcrum,N=e.handleBuy,_=e.product,m=e.state,x=e.productInfoView,h=(null===r||void 0===r||null===(t=r[0])||void 0===t?void 0:t.catEntry)||"",E=(0,ce.s)().sellLimits,f=(0,L.ag)({inventory:r,selectedSku2:h,sellLimitsMarketing:E,shortHand:!0});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("section",{className:"detalleProducto",children:(0,U.jsxs)("div",{className:"container containerdetalleProducto",children:[(0,U.jsx)("div",{className:"breadcrumDiv",children:(0,U.jsxs)("span",{className:"shopNavigation",children:[(0,U.jsx)("a",{href:"/",children:"Tienda"})," /"," ",(0,U.jsx)("a",{href:o,children:p})," /"," ",_.name]})}),(0,U.jsxs)("div",{className:"productoName--mobile",children:[(0,U.jsxs)("span",{className:"deleteCSS-plan7text",children:["PLAN ",x.segmentoTarifario.toUpperCase()]}),(0,U.jsx)("h1",{className:"deleteCSS-productTitle",children:_.name})]}),(0,U.jsx)(ue,{mobile:!0,children:f}),(0,U.jsxs)("div",{className:"detalleProductoCont",children:[(0,U.jsx)("div",{className:"productoGaleria product_page_content mobMarginLN",style:{marginLeft:"-40px"},children:(0,U.jsx)(We.Z,{namePlan:_.name,pricePlan:(0,I.T4)(u,!1),gigas:x.datosComercial,minLDI:x.ldiMovilComercial})}),(0,U.jsxs)("div",{className:"product-info__wrapper",children:[(0,U.jsx)("div",{className:"product-info-top-section__container",children:(0,U.jsxs)("div",{className:"deleteCSS-productoName",children:[(0,U.jsxs)("span",{className:"deleteCSS-plan7text",children:["PLAN ",x.segmentoTarifario.toUpperCase()]}),(0,U.jsx)("h1",{className:"deleteCSS-productTitle",children:_.name?_.name:""})]})}),(0,U.jsx)(ue,{children:f}),(0,U.jsxs)("form",{action:"/cart",className:"productoInfo",children:[(0,U.jsxs)("div",{className:"productoPrecioDetails",children:[(0,U.jsxs)("div",{className:"productPrices deleteCSS-productPricesFlex",children:[(0,U.jsxs)("div",{className:"",children:[(0,U.jsx)("div",{className:"precioLN",style:{display:"flex"},children:(0,U.jsxs)("span",{className:"deleteCSS-precioActual7",children:[(0,U.jsx)("p",{className:"deleteCSS-priceNowFP",children:(0,I.T4)(u)}),(0,U.jsx)("p",{className:"deleteCSS-priceNowSmall",children:"Precio Ahora"})]})}),(0,U.jsx)("div",{className:"productoFeaturesMobile",children:(0,U.jsxs)("div",{className:"deleteCSS-selectQuantityRow",children:[(0,U.jsxs)("div",{className:"selectQuantityText",children:[(0,U.jsx)(Q._H,{id:"label.quantity"}),":"]}),(0,U.jsx)("div",{className:"selectQuantity",children:(0,U.jsx)("div",{className:"prodCantidad",children:(0,U.jsx)("div",{className:"deleteCSS-selectQuantitySelector",children:(0,U.jsx)(ee.Z,{currentQuantity:parseInt(l),minValue:1,maxValue:999,onChange:i})})})})]})})]}),null!==r&&r.filter((function(e){return e.catEntry.includes(h)})).map((function(e){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"deleteCSS-ctaWrap",children:(0,U.jsxs)("div",{className:"cta",children:[(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(s(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:N,className:parseInt(e.catEntryQuantity)<=parseInt(s(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled":"deleteCSS-btn-rojo",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(s(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart"})}),(0,U.jsx)("br",{})]})}),(0,U.jsx)("div",{className:"stickyBuyDiv",children:(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(s(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:N,className:parseInt(e.catEntryQuantity)<=parseInt(s(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled stickyBuy":"deleteCSS-btn-rojo stickyBuy",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(s(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart"})})})]})}))]}),(0,U.jsx)("div",{className:"deleteCSS-productoFeatures",children:(0,U.jsxs)("div",{className:"deleteCSS-selectQuantityRow",children:[(0,U.jsxs)("div",{className:"selectQuantityText",children:[(0,U.jsx)(Q._H,{id:"label.quantity"}),":"]}),(0,U.jsx)("div",{className:"selectQuantity",children:(0,U.jsx)("div",{className:"prodCantidad",children:(0,U.jsx)("div",{className:"deleteCSS-selectQuantitySelector",children:(0,U.jsx)(ee.Z,{currentQuantity:parseInt(l),minValue:1,maxValue:999,onChange:i})})})})]})})]}),(0,U.jsx)($,{priceForAddi:A,minAmount:m.minAmount}),(0,U.jsx)(J,{borderSpecial:!0,attributes1:v,attributes2:d,type:2,productInfoView:x})]}),(0,U.jsx)("div",{style:{clear:"both"}})]})]})]})}),(0,U.jsx)("div",{className:"container",children:(0,U.jsx)("div",{className:"deleteCSS-mod__Accordeon",children:void 0!==c&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(0===a?"active":""),onClick:function(){n(0===a?-1:0)},onKeyDown:function(){},tabIndex:0,role:"button",children:"T\xe9rminos y Condiciones"}),(0,U.jsx)("dd",{className:"".concat(0===a?"active":""),style:{display:0===a?"block":"none"},children:(0,U.jsx)("p",{className:"deleteCSS-accCont",children:c})})]})})})]})}Je.defaultProps={inventoryStatusBySku:[],activeAccordeonIndex:0,linkparentCategory:"",selectedQuantity:"",attrDescMap1SKU:"",finalOfferPrice:"",longDescription:"",priceForAddi:"",selectedSku2:"",attrDescMap:"",breadcrum:"",state:{},product:{},handleBuy:function(){},getValueInventory:function(){},handleQuantityChange:function(){},toggleActiveAccordeonIndex:function(){}};var Ye=Je;n(81958);function $e(e){var t,n=e.toggleactiveAccordeonIndex1,i=e.inventoryStatusBySku,r=e.activeAccordeonIndex1,a=e.linkparentCategory,o=e.getValueInventory,s=e.attrDescMap1SKU,l=e.longDescription,d=e.finalOfferPrice,c=e.attrDescMap,u=e.breadcrum,A=e.handleBuy,v=e.product,p=(e.state,e.productInfoView),N=e.flowName,_=(null===i||void 0===i||null===(t=i[0])||void 0===t?void 0:t.catEntry)||"",m=(0,ce.s)().sellLimits,x=(0,L.ag)({inventory:i,selectedSku2:_,sellLimitsMarketing:m,shortHand:!0});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("section",{className:"detalleProducto",children:(0,U.jsxs)("div",{className:"container containerdetalleProducto",children:[(0,U.jsx)("div",{className:"breadcrumDiv",children:(0,U.jsxs)("span",{className:"shopNavigation",children:[(0,U.jsx)("a",{href:"/",children:"Tienda"})," /"," ",(0,U.jsx)("a",{href:a,children:u})," / ",v.name]})}),(0,U.jsxs)("div",{className:"productoName--mobile",children:[(0,U.jsxs)("span",{className:"plan7text",children:["PLAN ",p.segmentoTarifario.toUpperCase()]}),(0,U.jsx)("h1",{className:"productTitle",children:v.name})]}),(0,U.jsx)(ue,{mobile:!0,children:x}),(0,U.jsxs)("div",{className:"detalleProductoCont",children:[(0,U.jsx)("div",{className:"productoGaleria product_page_content mobMarginLN",style:{marginLeft:"-40px"},children:(0,U.jsx)(We.Z,{namePlan:v.name,pricePlan:(0,I.T4)(d,!1),gigas:p.datosComercial,minLDI:p.ldiMovilComercial,flowName:N})}),(0,U.jsxs)("div",{className:"product-info__wrapper",children:[(0,U.jsx)("div",{className:"product-info-top-section__container",children:(0,U.jsxs)("div",{className:"productoName",children:[(0,U.jsxs)("span",{className:"plan7text",children:["PLAN ",p.segmentoTarifario.toUpperCase()]}),(0,U.jsx)("h1",{className:"productTitle",children:v.name?v.name:""})]})}),(0,U.jsx)(ue,{children:x}),(0,U.jsxs)("form",{action:"/cart",className:"productoInfo",children:[(0,U.jsx)("div",{className:"productoPrecioDetails",children:(0,U.jsxs)("div",{className:"productPrices productPricesFlex",children:[(0,U.jsx)("div",{className:"",children:(0,U.jsx)("div",{className:"precioLN",style:{display:"flex"},children:(0,U.jsxs)("span",{className:"precioActual7",children:[(0,U.jsx)("p",{className:"priceNowFP",children:(0,I.T4)(d)}),(0,U.jsx)("p",{className:"priceNowSmall",children:"Precio Ahora"})]})})}),null!==i&&i.filter((function(e){return e.catEntry.includes(_)})).map((function(e){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"deleteCSS-ctaWrap",children:(0,U.jsxs)("div",{className:"cta",children:[(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:A,className:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled":"deleteCSS-btn-rojo",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.continue>"})}),(0,U.jsx)("br",{})]})}),(0,U.jsx)("div",{className:"stickyBuyDiv",children:(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:A,className:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled stickyBuy":"deleteCSS-btn-rojo stickyBuy",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.continue>"})})})]})}))]})}),(0,U.jsx)("div",{className:"margin-info-plan"}),(0,U.jsx)(J,{borderSpecial:!0,attributes1:c,attributes2:s,type:2,productInfoView:p})]}),(0,U.jsx)("div",{style:{clear:"both"}})]})]})]})}),(0,U.jsx)("div",{className:"container",children:(0,U.jsx)("div",{className:"deleteCSS-mod__Accordeon",children:void 0!==l&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(0===r?"active":""),onClick:function(){n(0===r?-1:0)},onKeyDown:function(){},tabIndex:0,role:"button",children:"T\xe9rminos y Condiciones"}),(0,U.jsx)("dd",{className:"".concat(0===r?"active":""),style:{display:0===r?"block":"none"},children:(0,U.jsx)("p",{className:"deleteCSS-accCont",dangerouslySetInnerHTML:{__html:l}})})]})})})]})}$e.defaultProps={inventoryStatusBySku:[],activeAccordeonIndex1:0,linkparentCategory:"",selectedQuantity:"",attrDescMap1SKU:"",finalOfferPrice:"",longDescription:"",priceForAddi:"",selectedSku2:"",attrDescMap:"",breadcrum:"",state:{},product:{},handleBuy:function(){},getValueInventory:function(){},handleQuantityChange:function(){},toggleactiveAccordeonIndex1:function(){}};var et=$e;function tt(e){var t,n=e.toggleActiveAccordeonIndex,i=e.inventoryStatusBySku,r=e.activeAccordeonIndex,a=e.linkparentCategory,o=e.getValueInventory,s=e.attrDescMap1SKU,l=e.longDescription,d=e.finalOfferPrice,c=(e.priceForAddi,e.attrDescMap),u=e.breadcrum,A=e.handleBuy,v=e.product,p=(e.state,e.productInfoView),N=(null===i||void 0===i||null===(t=i[0])||void 0===t?void 0:t.catEntry)||"",_=(0,ce.s)().sellLimits,m=(0,L.ag)({inventory:i,selectedSku2:N,sellLimitsMarketing:_,shortHand:!0});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("section",{className:"detalleProducto",children:(0,U.jsxs)("div",{className:"container containerdetalleProducto",children:[(0,U.jsx)("div",{className:"breadcrumDiv",children:(0,U.jsxs)("span",{className:"shopNavigation",children:[(0,U.jsx)("a",{href:"/",style:{color:"#000000",textDecoration:"none"},children:"Tienda"})," /"," ",(0,U.jsx)("a",{href:a,style:{color:"#000000",textDecoration:"none"},children:u})," /"," ",v.name]})}),(0,U.jsxs)("div",{className:"productoName--mobile",children:[(0,U.jsxs)("span",{className:"deleteCSS-plan7text",children:["PLAN ",p.segmentoTarifario.toUpperCase()]}),(0,U.jsx)("h1",{className:"deleteCSS-productTitle",children:v.name})]}),(0,U.jsx)(ue,{mobile:!0,children:m}),(0,U.jsxs)("div",{className:"detalleProductoCont",children:[(0,U.jsx)("div",{className:"productoGaleria product_page_content mobMarginLN",style:{marginLeft:"-40px"},children:(0,U.jsx)(We.Z,{namePlan:v.name,pricePlan:(0,I.T4)(d,!1),gigas:p.datosComercial,minLDI:p.ldiMovilComercial})}),(0,U.jsxs)("div",{className:"product-info__wrapper",children:[(0,U.jsx)("div",{className:"product-info-top-section__container",children:(0,U.jsxs)("div",{className:"deleteCSS-productoName",children:[(0,U.jsxs)("span",{className:"deleteCSS-plan7text",children:["PLAN ",p.segmentoTarifario.toUpperCase()]}),(0,U.jsx)("h1",{className:"deleteCSS-productTitle",children:v.name?v.name:""})]})}),(0,U.jsx)(ue,{children:m}),(0,U.jsxs)("form",{action:"/cart",className:"productoInfo",children:[(0,U.jsx)("div",{className:"productoPrecioDetails",children:(0,U.jsxs)("div",{className:"productPrices deleteCSS-productPricesFlex",children:[(0,U.jsx)("div",{className:"",children:(0,U.jsx)("div",{className:"precioLN",style:{display:"flex"},children:(0,U.jsxs)("span",{className:"deleteCSS-precioActual7",children:[(0,U.jsx)("p",{className:"deleteCSS-priceNowFP",children:(0,I.T4)(d)}),(0,U.jsx)("p",{className:"deleteCSS-priceNowSmall",children:"Precio Ahora"})]})})}),null!==i&&i.filter((function(e){return e.catEntry.includes(N)})).map((function(e){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"deleteCSS-ctaWrap",children:(0,U.jsxs)("div",{className:"cta",children:[(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:A,className:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled":"deleteCSS-btn-rojo",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart"})}),(0,U.jsx)("br",{})]})}),(0,U.jsx)("div",{className:"stickyBuyDiv",children:(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:A,className:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled stickyBuy":"deleteCSS-btn-rojo stickyBuy",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(o(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart"})})})]})}))]})}),(0,U.jsx)(J,{borderSpecial:!0,attributes1:c,attributes2:s,type:2,productInfoView:p})]}),(0,U.jsx)("div",{style:{clear:"both"}})]})]})]})}),(0,U.jsx)("div",{className:"container",children:(0,U.jsx)("div",{className:"deleteCSS-mod__Accordeon",children:void 0!==l&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(0===r?"active":""),onClick:function(){n(0===r?-1:0)},onKeyDown:function(){},tabIndex:0,role:"button",children:"T\xe9rminos y Condiciones"}),(0,U.jsx)("dd",{className:"".concat(0===r?"active":""),style:{display:0===r?"block":"none"},children:(0,U.jsx)("p",{className:"deleteCSS-accCont",children:l})})]})})})]})}tt.defaultProps={inventoryStatusBySku:[],activeAccordeonIndex:0,linkparentCategory:"",selectedQuantity:"",attrDescMap1SKU:"",finalOfferPrice:"",longDescription:"",priceForAddi:"",selectedSku2:"",attrDescMap:"",breadcrum:"",state:{},product:{},handleBuy:function(){},getValueInventory:function(){},handleQuantityChange:function(){},toggleActiveAccordeonIndex:function(){}};var nt=tt,it=n(44816),rt=n(58533),at=function(e){var t=e.isOpen,n=void 0!==t&&t,i=e.hasMore,r=void 0===i||i,a=e.onClose,o=void 0===a?function(){}:a,s=e.fetchMoreData,l=void 0===s?function(){}:s,d=e.questionsData,c=void 0===d?[]:d;return(0,U.jsx)(_.Z,{open:n,onClose:o,children:(0,U.jsxs)("div",{className:"modal-general-error no_selection productQuestions modal-general-questions",children:[(0,U.jsx)("h3",{className:"modal-questions-title",children:(0,U.jsx)(Q._H,{id:"label.frecuentQuestionsView"})}),(0,U.jsx)(rt.Z,{dataLength:c.length,next:l,hasMore:r,height:700,className:"form-col-12 questionsWrapper questions-modal-wrapper",loader:(0,U.jsx)("span",{className:"loading-questions",children:"Cargando..."}),children:c.map((function(e,t){return(0,U.jsxs)("div",{className:"form-col-12 questionsBox",children:[(0,U.jsx)("img",{style:{position:"absolute",top:"-3%",left:-28,width:"20px",height:"20px"},src:"/static/images/img/interrogation.png",alt:"interrogation"}),(0,U.jsx)("span",{className:"questionTitle",children:"Pregunta:"}),(0,U.jsx)("p",{className:"questionBody",children:e.TEXTO_PREGUNTA}),e.TEXTO_RESPUESTA?(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{className:"questionsBoxAnswer",children:[(0,U.jsx)("span",{className:"questionTitle",children:"Respuesta:"}),(0,U.jsx)("p",{className:"questionBody answer",children:e.TEXTO_RESPUESTA})]})}):null,(0,U.jsx)("div",{className:"divider",style:{width:"100%"}})]},t)}))})]})})};function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function st(e){for(var t=1;tC?(0,U.jsx)("span",{className:"questionTitle seeAll",onClick:function(){B(st(st({},k),{},{isOpen:!0}))},children:"Ver todas las preguntas"}):null]})]}),(0,U.jsx)(it.Z,{isOpen:M.isOpen,message:M.message,iconSuccess:M.iconSuccess,iconCustom:M.iconCustom,onClose:M.onClose}),(0,U.jsx)(at,{isOpen:k.isOpen,message:k.message,onClose:k.onClose,questionsData:O,fetchMoreData:H,hasMore:m})]})},ct=n(32922),ut=function(e){var t=e.attributes1,n=e.attributes2,i=W(t,n).findFeature,r=!1;void 0!==i("GARANTIA")&&"NA"!==i("GARANTIA")&&"N/A"!==i("GARANTIA")&&(r=!0);var a=!1;(void 0!==i("BATERIA")&&"NA"!==i("BATERIA")&&"N/A"!==i("BATERIA")||void 0!==i("TIPO_DE_BATERIA")&&"NA"!==i("TIPO_DE_BATERIA")&&"N/A"!==i("TIPO_DE_BATERIA"))&&(a=!0);var o=!1;(void 0!==i("CONECTIVIDAD")&&"NA"!==i("CONECTIVIDAD")&&"N/A"!==i("CONECTIVIDAD")||void 0!==i("TARJETA_VIDEO")&&"NA"!==i("TARJETA_VIDEO")&&"N/A"!==i("TARJETA_VIDEO")||void 0!==i("TIPO_DE_PUERTOS")&&"NA"!==i("TIPO_DE_PUERTOS")&&"N/A"!==i("TIPO_DE_PUERTOS")||void 0!==i("BLUETOOTH")&&"NA"!==i("BLUETOOTH")&&"N/A"!==i("BLUETOOTH")||void 0!==i("USB_TIPO_C")&&"NA"!==i("USB_TIPO_C")&&"N/A"!==i("USB_TIPO_C")||void 0!==i("WIFI")&&"NA"!==i("WIFI")&&"N/A"!==i("WIFI"))&&(o=!0);var s=!1;(void 0!==i("DIMENSIONES")&&"NA"!==i("DIMENSIONES")&&"N/A"!==i("DIMENSIONES")||void 0!==i("PESO")&&"NA"!==i("PESO")&&"N/A"!==i("PESO"))&&(s=!0);var l=!1;(void 0!==i("CAPACIDAD")&&"NA"!==i("CAPACIDAD")&&"N/A"!==i("CAPACIDAD")||void 0!==i("MARCA")&&"NA"!==i("MARCA")&&"N/A"!==i("MARCA")||void 0!==i("SISTEMA_OPERATIVO")&&"NA"!==i("SISTEMA_OPERATIVO")&&"N/A"!==i("SISTEMA_OPERATIVO")||void 0!==i("MATERIAL_DE_FABRICACION")&&"NA"!==i("MATERIAL_DE_FABRICACION")&&"N/A"!==i("MATERIAL_DE_FABRICACION")||void 0!==i("MODELO")&&"NA"!==i("MODELO")&&"N/A"!==i("MODELO"))&&(l=!0);var c=!1;void 0!==i("MEMORIA_RAM")&&"NA"!==i("MEMORIA_RAM")&&"N/A"!==i("MEMORIA_RAM")&&(c=!0);var u=!1;(void 0!==i("RESOLUCION")&&"NA"!==i("RESOLUCION")&&"N/A"!==i("RESOLUCION")||void 0!==i("TAMANO_DE_PANTALLA")&&"NA"!==i("TAMANO_DE_PANTALLA")&&"N/A"!==i("TAMANO_DE_PANTALLA")||void 0!==i("TIPO_DE_PANTALLA")&&"NA"!==i("TIPO_DE_PANTALLA")&&"N/A"!==i("TIPO_DE_PANTALLA"))&&(u=!0);var A=!1;void 0!==i("PROCESADOR")&&"NA"!==i("PROCESADOR")&&"N/A"!==i("PROCESADOR")&&(A=!0);var v=!1;(void 0!==i("CALIDAD_TECNLG")&&"NA"!==i("CALIDAD_TECNLG")&&"N/A"!==i("CALIDAD_TECNLG")||void 0!==i("CUIDADOS_RELEVANTES_TECNLG")&&"NA"!==i("CUIDADOS_RELEVANTES_TECNLG")&&"N/A"!==i("CUIDADOS_RELEVANTES_TECNLG")||void 0!==i("FORMA_DE_EMPLEO_TECNLG")&&"NA"!==i("FORMA_DE_EMPLEO_TECNLG")&&"N/A"!==i("FORMA_DE_EMPLEO_TECNLG")||void 0!==i("IDONEIDAD_TECNLG")&&"NA"!==i("IDONEIDAD_TECNLG")&&"N/A"!==i("IDONEIDAD_TECNLG")||void 0!==i("MATERIALES_DE_FABRICACION_TECN")&&"NA"!==i("MATERIALES_DE_FABRICACION_TECN")&&"N/A"!==i("MATERIALES_DE_FABRICACION_TECN")||void 0!==i("MODO_DE_FABRICACION_TECNLG")&&"NA"!==i("MODO_DE_FABRICACION_TECNLG")&&"N/A"!==i("MODO_DE_FABRICACION_TECNLG")||void 0!==i("NATURALEZA_DE_FABRICACION_TECN")&&"NA"!==i("NATURALEZA_DE_FABRICACION_TECN")&&"N/A"!==i("NATURALEZA_DE_FABRICACION_TECN")||void 0!==i("ORIGEN_TECNLG")&&"NA"!==i("ORIGEN_TECNLG")&&"N/A"!==i("ORIGEN_TECNLG")||void 0!==i("RESTRICCIONES_DE_USO_TECNLG")&&"NA"!==i("RESTRICCIONES_DE_USO_TECNLG")&&"N/A"!==i("RESTRICCIONES_DE_USO_TECNLG")||void 0!==i("USOS_PREVISTOS_TECNLG")&&"NA"!==i("USOS_PREVISTOS_TECNLG")&&"N/A"!==i("USOS_PREVISTOS_TECNLG"))&&(v=!0);var p=(0,d.useState)(!1),N=p[0],_=p[1];return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{className:"mod__fichaTecnica",children:[(0,U.jsxs)("div",{className:"".concat(N?"fichaElement":"fichaElement morePanelTec"),children:[r&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Adicionales"})}),(0,U.jsx)("div",{className:"grid grid-cols gap-20",children:void 0!==i("GARANTIA")&&"NA"!==i("GARANTIA")&&"N/A"!==i("GARANTIA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Garant\xeda"}),(0,U.jsx)("dd",{children:i("GARANTIA")})]})})]}),a&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Bater\xeda"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==i("BATERIA")&&"NA"!==i("BATERIA")&&"N/A"!==i("BATERIA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Bater\xeda"}),(0,U.jsx)("dd",{children:i("BATERIA")})]}),void 0!==i("TIPO_DE_BATERIA")&&"NA"!==i("TIPO_DE_BATERIA")&&"N/A"!==i("TIPO_DE_BATERIA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Duracion Bater\xeda"}),(0,U.jsx)("dd",{children:i("TIPO_DE_BATERIA")})]})]})]}),o&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Conectividad"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==i("CONECTIVIDAD")&&"NA"!==i("CONECTIVIDAD")&&"N/A"!==i("CONECTIVIDAD")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Conectividad"}),(0,U.jsx)("dd",{children:i("CONECTIVIDAD")})]}),void 0!==i("TARJETA_VIDEO")&&"NA"!==i("TARJETA_VIDEO")&&"N/A"!==i("TARJETA_VIDEO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tarjeta de Video"}),(0,U.jsx)("dd",{children:i("TARJETA_VIDEO")})]}),void 0!==i("TIPO_DE_PUERTOS")&&"NA"!==i("TIPO_DE_PUERTOS")&&"N/A"!==i("TIPO_DE_PUERTOS")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Puertos Incluidos"}),(0,U.jsx)("dd",{children:i("TIPO_DE_PUERTOS")})]}),void 0!==i("BLUETOOTH")&&"NA"!==i("BLUETOOTH")&&"N/A"!==i("BLUETOOTH")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Bluetooth"}),(0,U.jsx)("dd",{children:i("BLUETOOTH")})]}),void 0!==i("USB_TIPO_C")&&"NA"!==i("USB_TIPO_C")&&"N/A"!==i("USB_TIPO_C")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"USB Tipo C"}),(0,U.jsx)("dd",{children:i("USB_TIPO_C")})]}),void 0!==i("WIFI")&&"NA"!==i("WIFI")&&"N/A"!==i("WIFI")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"WIFI"}),(0,U.jsx)("dd",{children:i("WIFI")})]})]})]}),s&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Dise\xf1o"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==i("PESO")&&"NA"!==i("PESO")&&"N/A"!==i("PESO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Peso"}),(0,U.jsx)("dd",{children:i("PESO")})]}),void 0!==i("DIMENSIONES")&&"NA"!==i("DIMENSIONES")&&"N/A"!==i("DIMENSIONES")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Dimensi\xf3n del equipo"}),(0,U.jsx)("dd",{children:i("DIMENSIONES")})]})]})]}),l&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Generales"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==i("CAPACIDAD")&&"NA"!==i("CAPACIDAD")&&"N/A"!==i("CAPACIDAD")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Almacenamiento"}),(0,U.jsx)("dd",{children:i("CAPACIDAD")})]}),void 0!==i("MARCA")&&"NA"!==i("MARCA")&&"N/A"!==i("MARCA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Marca"}),(0,U.jsx)("dd",{children:i("MARCA")})]}),void 0!==i("SISTEMA_OPERATIVO")&&"NA"!==i("SISTEMA_OPERATIVO")&&"N/A"!==i("SISTEMA_OPERATIVO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Sistema operativo"}),(0,U.jsx)("dd",{children:i("SISTEMA_OPERATIVO")})]}),void 0!==i("MATERIAL_DE_FABRICACION")&&"NA"!==i("MATERIAL_DE_FABRICACION")&&"N/A"!==i("MATERIAL_DE_FABRICACION")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Material de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:i("MATERIAL_DE_FABRICACION")})]}),void 0!==i("MODELO")&&"NA"!==i("MODELO")&&"N/A"!==i("MODELO")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Modelo"}),(0,U.jsx)("dd",{children:i("MODELO")})]})]})]}),c&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Memoria"})}),(0,U.jsx)("div",{className:"grid grid-cols gap-20",children:void 0!==i("MEMORIA_RAM")&&"NA"!==i("MEMORIA_RAM")&&"N/A"!==i("MEMORIA_RAM")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Memoria RAM"}),(0,U.jsx)("dd",{children:i("MEMORIA_RAM")})]})})]}),u&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Pantalla"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==i("RESOLUCION")&&"NA"!==i("RESOLUCION")&&"N/A"!==i("RESOLUCION")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Resoluci\xf3n pantalla"}),(0,U.jsx)("dd",{children:i("RESOLUCION")})]}),void 0!==i("TAMANO_DE_PANTALLA")&&"NA"!==i("TAMANO_DE_PANTALLA")&&"N/A"!==i("TAMANO_DE_PANTALLA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tama\xf1o de pantalla"}),(0,U.jsx)("dd",{children:i("TAMANO_DE_PANTALLA")})]}),void 0!==i("TIPO_DE_PANTALLA")&&"NA"!==i("TIPO_DE_PANTALLA")&&"N/A"!==i("TIPO_DE_PANTALLA")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Tipo de pantalla"}),(0,U.jsx)("dd",{children:i("TIPO_DE_PANTALLA")})]})]})]}),A&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Procesador"})}),(0,U.jsx)("div",{className:"grid grid-cols gap-20",children:void 0!==i("PROCESADOR")&&"NA"!==i("PROCESADOR")&&"N/A"!==i("PROCESADOR")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Procesador"}),(0,U.jsx)("dd",{children:i("PROCESADOR")})]})})]}),v&&(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:"fichaElementTitulo",children:(0,U.jsx)("h3",{children:"Otros"})}),(0,U.jsxs)("div",{className:"grid grid-cols gap-20",children:[void 0!==i("CALIDAD_TECNLG")&&"NA"!==i("CALIDAD_TECNLG")&&"N/A"!==i("CALIDAD_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Calidad"}),(0,U.jsx)("dd",{children:i("CALIDAD_TECNLG")})]}),void 0!==i("CUIDADOS_RELEVANTES_TECNLG")&&"NA"!==i("CUIDADOS_RELEVANTES_TECNLG")&&"N/A"!==i("CUIDADOS_RELEVANTES_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Cuidados Relevantes"}),(0,U.jsx)("dd",{children:i("CUIDADOS_RELEVANTES_TECNLG")})]}),void 0!==i("FORMA_DE_EMPLEO_TECNLG")&&"NA"!==i("FORMA_DE_EMPLEO_TECNLG")&&"N/A"!==i("FORMA_DE_EMPLEO_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Forma de empleo"}),(0,U.jsx)("dd",{children:i("FORMA_DE_EMPLEO_TECNLG")})]}),void 0!==i("IDONEIDAD_TECNLG")&&"NA"!==i("IDONEIDAD_TECNLG")&&"N/A"!==i("IDONEIDAD_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Idoneidad"}),(0,U.jsx)("dd",{children:i("IDONEIDAD_TECNLG")})]}),void 0!==i("MATERIALES_DE_FABRICACION_TECN")&&"NA"!==i("MATERIALES_DE_FABRICACION_TECN")&&"N/A"!==i("MATERIALES_DE_FABRICACION_TECN")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Materiales de fabricaci\xf3n"}),(0,U.jsx)("dd",{children:i("MATERIALES_DE_FABRICACION_TECN")})]}),void 0!==i("MODO_DE_FABRICACION_TECNLG")&&"NA"!==i("MODO_DE_FABRICACION_TECNLG")&&"N/A"!==i("MODO_DE_FABRICACION_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Modo de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:i("MODO_DE_FABRICACION_TECNLG")})]}),void 0!==i("NATURALEZA_DE_FABRICACION_TECN")&&"NA"!==i("NATURALEZA_DE_FABRICACION_TECN")&&"N/A"!==i("NATURALEZA_DE_FABRICACION_TECN")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Naturaleza de Fabricaci\xf3n"}),(0,U.jsx)("dd",{children:i("NATURALEZA_DE_FABRICACION_TECN")})]}),void 0!==i("ORIGEN_TECNLG")&&"NA"!==i("ORIGEN_TECNLG")&&"N/A"!==i("ORIGEN_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Origen"}),(0,U.jsx)("dd",{children:i("ORIGEN_TECNLG")})]}),void 0!==i("RESTRICCIONES_DE_USO_TECNLG")&&"NA"!==i("RESTRICCIONES_DE_USO_TECNLG")&&"N/A"!==i("RESTRICCIONES_DE_USO_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Restricciones de Uso"}),(0,U.jsx)("dd",{children:i("RESTRICCIONES_DE_USO_TECNLG")})]}),void 0!==i("USOS_PREVISTOS_TECNLG")&&"NA"!==i("USOS_PREVISTOS_TECNLG")&&"N/A"!==i("USOS_PREVISTOS_TECNLG")&&(0,U.jsxs)("dl",{children:[(0,U.jsx)("dt",{children:"Usos Previstos"}),(0,U.jsx)("dd",{children:i("USOS_PREVISTOS_TECNLG")})]})]})]})]}),(0,U.jsxs)("div",{className:"flex justify-center",children:[!N&&(0,U.jsx)("div",{role:"button",className:"more flex",onClick:function(){_(!N)},children:"M\xe1s detalles"}),N&&(0,U.jsx)("div",{role:"button",className:"more flex active",onClick:function(){_(!N)},children:"Menos detalles"})]})]})})},At=n(85646),vt=n(48859),pt=n(9863),Nt=n(6723),_t=n(24981),mt=n(67778),xt=n(59785),ht=n(86274),It=n(48043),Et=n(67965),ft=(n(95672),n(12009)),Ot=n(60011);function jt(e){return St.apply(this,arguments)}function St(){return(St=(0,o.Z)(l().mark((function e(t){var n,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=null,null===t||void 0===t||null===(n=t.data)||void 0===n||n.orderItem.forEach((function(e){e.orderItemExtendAttribute.forEach((function(e){"purchaseFlow"===e.attributeName&&"PREAPOST"===e.attributeValue&&(i=e.attributeValue)}))})),e.abrupt("return",i);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}n(56143);function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Tt(e){for(var t=1;t0?Fe(a[0].images):Fe(Ue.images),"ClaroShop"!==(null===jn||void 0===jn||null===(i=jn.flowData)||void 0===i?void 0:i.typeProduct)){e.next=10;break}return e.next=6,Be(r,En);case 6:s=e.sent,vn(s),e.next=11;break;case 10:vn(o);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rn(){cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),R("error","Te invitamos a realizar tu compra en unos minutos.","Error",Pn,"","Aceptar","btn-rojo")}function Pn(){oe.push("/")}function gn(e){var t,n=(0,h.Nl)(e),i=n.partNumberMap,a=n.skusMap,o=n.productsMap,s=n.attributesMap,l=n.attributesDescriptiveMap;if(void 0!==s){var d=Object.keys(s);void 0!==s[d].values.find((function(e){return e.id===Nn.attributeSelected}))||(Nn.attributeSelected=void 0)}var c={},u={};if(!Object.hasOwnProperty.call(a,"defaultKey")){var A=Object.keys(a).sort((function(e,t){return e.localeCompare(t)})),v="",p=Object.keys(s);A.forEach((function(e){var t=e.split(h.zs),n=(0,r.Z)(t),i=n[0],l=n.slice(1),d={};v=i,d[p[0]]=Tt(Tt({},s[p[0]]),{},{values:s[p[0]].values.map((function(e){return Tt(Tt({},e),{},{status:e.id===i?Pt:Ct})}))}),l.forEach((function(e,t){var n=A.filter((function(e){return e.startsWith(v)}));d[p[t+1]]=Tt(Tt({},s[p[t+1]]),{},{values:s[p[t+1]].values.map((function(i){var r=Rt;return i.id===e?r=Pt:n.some((function(e){return o[a[e]].definingAttributes[p[t+1]].values.some((function(e){return i.id===e.id}))}))&&(r=Ct),Tt(Tt({},i),{},{status:r})}))}),v="".concat(v).concat(h.zs).concat(e)})),c[v]=d}));var N=Object.keys(c)[0];Object.keys(a).forEach((function(e){a[e]===b.seo.tokenValue&&(N=e)})),Object.keys(c[N]).forEach((function(e){u[e]=c[N][e].values.find((function(e){return e.status===Pt})).id}))}parseInt(e.availableQuantity||0,10);var _=void 0!==l?{attrDescMap:l||{}}:{attrDescMap1SKU:o[a.defaultKey].attributes||{}},m=(kn(u),(null===(t=Object.values(o))||void 0===t?void 0:t[0])||null),x=e.parentCatalogGroupID,I=e.precioClienteClaro,E=e.precioClienteClaroKit,f=e.precioAntesKit,O=e.precioAhoraKit,j=e.longDescription,S=e.shortDescription,T=e.precioIva,D=e.precioSinImpuestos;cn((function(t){return Tt(Tt(Tt({},t),{},{selectedAttributes:u,product:m,parentCategory:x,altImage:"".concat(e.manufacturer," ").concat(e.name)},_),{},{skusMap:a,productInfoView:(null===e||void 0===e?void 0:e.viewInfo)||{},partNumberMap:i,attributesMap:s,productsMap:o,attrsCompatibilityMap:c,precioClienteClaro:I,precioClienteKit:E,precioAntesKit:f,precioAhoraKit:O,longDescription:j,shortDescription:S,precioIva:T,precioSinImpuestos:D})})),Hn(Object.keys(u)[0],Object.values(u)[0])()}var yn=function(e){if(e&&null!==e&&void 0!==e&&e.detailProduct){var t,n,i,r=null===e||void 0===e||null===(t=e.detailProduct)||void 0===t||null===(n=t.contents[0])||void 0===n?void 0:n.attributes,a=null===r||void 0===r?void 0:r.find((function(e){return"PREVENTA"===e.name}));return!!a&&"true"===(null===a||void 0===a||null===(i=a.values[0])||void 0===i?void 0:i.value)}},Mn=function(){sessionStorage.removeItem("correo"),sessionStorage.removeItem("telefono"),sessionStorage.removeItem("nombre")};function Ln(){return wn.apply(this,arguments)}function wn(){return wn=(0,o.Z)(l().mark((function e(){var t,n,i,r,a,s,d,c,u,A,v,p,N,_,m,x,h,f,O,j,S,b,T,D,C,P,g,M,k,V,q,X,z,W,Y,$,ee,te,ne,ie,re,le,de,ce,ue,Ae,ve,pe,Ne,_e,me,xe,he,Ie,Ee,fe,Oe,je;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(cn((function(e){return Tt(Tt({},e),{},{isLoading:!0})})),"{}","","{}",a=!1,void 0!==Je&&(s=JSON.parse(Je)),s&&s[jn.flowData.typeProduct]&&s[jn.flowData.typeProduct].forEach((function(e){e.flowName===jn.flowName&&!0===e.estado&&(a=!0)})),d=Nr(dn.breadcrumb),c=(null===ii||void 0===ii?void 0:ii.attributeID)==(null===Nn||void 0===Nn?void 0:Nn.attributeSelected2)&&null!==(t=null===Nn||void 0===Nn?void 0:Nn.position)&&void 0!==t?t:0,u=(null===ii||void 0===ii?void 0:ii.attributeID)==(null===Nn||void 0===Nn?void 0:Nn.attributeSelected2)&&null!==(n=null===Nn||void 0===Nn?void 0:Nn.searchTerm)&&void 0!==n?n:"",A=null===_n||void 0===_n?void 0:_n.orderItem,v=Array.isArray(A)&&A.length>0?(0,y.ci)(A):"0",p=Array.isArray(A)&&A.length>0&&A[0].currency||"COP",(0,Xe.wy)(ii,jn.flowName,d,null===dn||void 0===dn||null===(i=dn.selectedQuantity)||void 0===i?void 0:i.toString(),ui[Un],c,null,u,p,v),!ze.CZ){e.next=22;break}return e.next=18,F();case 18:if((m=e.sent)&&null!==m&&void 0!==m&&m.data){e.next=21;break}throw new Error("Cart error");case 21:(0,ze.TB)(jn.flowName,ii,null===(N=m.data)||void 0===N?void 0:N.orderItem,null===dn||void 0===dn||null===(_=dn.selectedQuantity)||void 0===_?void 0:_.toString());case 22:if(K({list:ii.list,position:null!==(r=null===Nn||void 0===Nn?void 0:Nn.position)&&void 0!==r?r:0,category:d,productId:ii.parentCatalogEntryID,itemId:ii.id,itemPartNumber:ii.partNumber,searchTerm:u}),"PREAPOST"!==jn.flowName){e.next=109;break}return e.prev=24,e.next=27,(0,vt.Wx)();case 27:if(h=e.sent,f=h.ip,!0!==(null===Mt||void 0===Mt||null===(x=Mt.maxPerIP)||void 0===x?void 0:x.active)){e.next=38;break}if(!f){e.next=38;break}return e.next=33,(0,vt.n_)({ipAddress:f,originFlow:pt.c.MPP});case 33:if(S=e.sent){e.next=36;break}throw new Error(JSON.stringify(Tt(Tt({},null===(b=Mt.maxPerIP)||void 0===b?void 0:b.errorContent),{},{fromResponse:!1})));case 36:if(S&&!1!==(null===S||void 0===S?void 0:S.success)&&null!==S&&void 0!==S&&S.data&&!((null===S||void 0===S||null===(O=S.data)||void 0===O?void 0:O.attempts)>=(null===(j=Mt.maxPerIP)||void 0===j?void 0:j.maxNumber))){e.next=38;break}throw new Error(JSON.stringify(Tt(Tt({},null===(T=Mt.maxPerIP)||void 0===T?void 0:T.errorContent),{},{fromResponse:!1})));case 38:if(!0!==(null===Ft||void 0===Ft?void 0:Ft.isActive)){e.next=47;break}if(!f){e.next=47;break}return e.next=42,(0,mt.E)(f);case 42:if(!(D=e.sent)){e.next=47;break}if(C=D.country_code,["CO"].includes(C)){e.next=47;break}throw new Error(JSON.stringify(Tt(Tt({},Ft.errorContent),{},{fromResponse:!1})));case 47:e.next=55;break;case 49:return e.prev=49,e.t0=e.catch(24),J((0,_t.I)(e.t0)),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),ae(!0),e.abrupt("return");case 55:return e.prev=55,e.next=58,F();case 58:if((X=e.sent)&&null!==X&&void 0!==X&&X.data){e.next=61;break}throw new Error("Cart error");case 61:if((null===(P=X.data.orderItem)||void 0===P?void 0:P.length)>0&&(se((0,xt.m_)()),W=ht.Z.getInstance(mn),(Y=(null===X||void 0===X||null===(z=X.data)||void 0===z?void 0:z.orderId)||null)&&W.post("".concat(It.default.DELETE_CART).concat(Y),{}).then((function(){se((0,xt.l1)({}))})).catch((function(){se((0,xt.jc)())}))),se((0,xt.oX)()),$=dn.skusMap,ee=kn(),te=null!==(g=null!==(M=null===$||void 0===$?void 0:$[ee])&&void 0!==M?M:null===$||void 0===$?void 0:$[0])&&void 0!==g?g:null===$||void 0===$?void 0:$.defaultKey){e.next=69;break}return e.abrupt("return",R("info","Selecciona un color"));case 69:return ne=(null===dn||void 0===dn||null===(k=dn.selectedQuantity)||void 0===k?void 0:k.toString())||"1",ie=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:ne,productId:te,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(V=dn.product)||void 0===V?void 0:V.partNumber}),re=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:ne,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),le=on?re:[ie],e.next=75,Z.add(le,mn);case 75:if((de=e.sent)&&!0!==(null===de||void 0===de?void 0:de.error)){e.next=78;break}throw new Error("Error al agregar al carrito");case 78:ce=(0,w.Vz)(null===jn||void 0===jn||null===(q=jn.flow)||void 0===q?void 0:q.categorias2,null===H||void 0===H?void 0:H.data),ue=0!==Object.keys(ce||{}).length?ce.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(ue,ii,ne,jn.flowName),Ae=pn||!1===(null===Ot||void 0===Ot?void 0:Ot.status)?"/datos-personales-prepost":"/login",oe.push(Ae),e.next=108;break;case 85:if(e.prev=85,e.t1=e.catch(55),pn||!0!==(null===Ot||void 0===Ot?void 0:Ot.status)){e.next=107;break}if(me=dn.skusMap,xe=kn(),he=null!==(ve=null!==(pe=null===me||void 0===me?void 0:me[xe])&&void 0!==pe?pe:null===me||void 0===me?void 0:me[0])&&void 0!==ve?ve:null===me||void 0===me?void 0:me.defaultKey){e.next=93;break}return e.abrupt("return",R("info","Selecciona un color"));case 93:if(Ie=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:currentProductQuantity,productId:he,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(Ne=dn.product)||void 0===Ne?void 0:Ne.partNumber}),Ee=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:currentProductQuantity,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),fe=on?Ee:[Ie],pn||"PORTABILIDAD_POST"!==jn.flowName&&("PREAPOST"!==jn.flowName||!1!==(null===Ot||void 0===Ot?void 0:Ot.status))){e.next=101;break}return e.next=99,Z.add(fe);case 99:e.next=103;break;case 101:return e.next=103,B.add(fe);case 103:Oe=(0,w.Vz)(null===jn||void 0===jn||null===(_e=jn.flow)||void 0===_e?void 0:_e.categorias2,null===H||void 0===H?void 0:H.data),je=0!==Object.keys(Oe||{}).length?Oe.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(je,ii,currentProductQuantity,jn.flowName),oe.push("/login");case 107:cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})}));case 108:return e.abrupt("return");case 109:pn?F().then(function(){var e=(0,o.Z)(l().mark((function e(t){var n,i,r,a,o,s,d,c,u,A,v,p,N,_,m,x,h,I,f,O,j,S,b,T,D,C,P,g,M,L,k,U,V,q,Q,Z,K,X,z,W,J,Y,$,ee,te,ne,ie,re,ae,se,le,de,ce,ue,Ae,ve,pe,Ne,_e,me,xe,he,Ie,Ee,fe,Oe,je,Se,be,Te,De,Ce,Re,Pe,ge,ye;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(Object.keys(null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.orderItem).length>0)){e.next=118;break}if(d=(0,y.Oc)(null===t||void 0===t||null===(i=t.data)||void 0===i||null===(r=i.orderItem[0])||void 0===r?void 0:r.orderItemExtendAttribute),c=(0,y.oL)(null===t||void 0===t||null===(a=t.data)||void 0===a||null===(o=a.orderItem[0])||void 0===o?void 0:o.orderItemExtendAttribute),u=yn(null===t||void 0===t||null===(s=t.data)||void 0===s?void 0:s.orderItem[0]),!("TECNOLOGIA"!==d&&"TECNOLOGIA"===jn.flowName||"TECNOLOGIA"===d&&"TECNOLOGIA"!==jn.flowName||"TECNOLOGIA"===d&&"ClaroShop"===c&&"TECNOLOGIA"===jn.flowName&&"ClaroShop"!==jn.flowData.typeProduct||"TECNOLOGIA"===d&&"ClaroShop"!==c&&"TECNOLOGIA"===jn.flowName&&"ClaroShop"===jn.flowData.typeProduct||"KIT_PREPAGO"!==d&&"KIT_PREPAGO"===jn.flowName||"KIT_PREPAGO"===d&&"KIT_PREPAGO"!==jn.flowName||"TERMINALES_LIBRES"!==d&&"TERMINALES_LIBRES"===jn.flowName||"TERMINALES_LIBRES"===d&&"TERMINALES_LIBRES"!==jn.flowName||"PREAPOST"!==d&&"PREAPOST"===jn.flowName||"PREAPOST"===d&&"PREAPOST"!==jn.flowName||"PORTABILIDAD_PRE"!==d&&"PORTABILIDAD_PRE"===jn.flowName||"PORTABILIDAD_PRE"===d&&"PORTABILIDAD_PRE"!==jn.flowName||"PORTABILIDAD_POST"!==d&&"PORTABILIDAD_POST"===jn.flowName||"PORTABILIDAD_POST"===d&&"PORTABILIDAD_POST"!==jn.flowName||"HOGARES"!==d&&"HOGARES"===jn.flowName||"HOGARES"===d&&"HOGARES"!==jn.flowName||u)){e.next=42;break}if("PORTABILIDAD_PRE"!==d&&"PREAPOST"!==d){e.next=39;break}return e.next=8,G(null===t||void 0===t||null===(A=t.data)||void 0===A?void 0:A.orderId);case 8:if(e.prev=8,_=dn.skusMap,m=kn(),x=null!==(v=null!==(p=null===_||void 0===_?void 0:_[m])&&void 0!==p?p:null===_||void 0===_?void 0:_[0])&&void 0!==v?v:null===_||void 0===_?void 0:_.defaultKey){e.next=14;break}return e.abrupt("return",R("info","Selecciona un color"));case 14:if(h=(null===dn||void 0===dn||null===(N=dn.selectedQuantity)||void 0===N?void 0:N.toString())||"1",!("PORTABILIDAD_POST"===jn.flowName&&h>1)){e.next=20;break}R("error","","Ups, solamente puedes agregar un producto para portabilidad postpago",(function(){}),"","Aceptar","btn-rojo"),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),e.next=31;break;case 20:return O=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:h,productId:x,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(I=dn.product)||void 0===I?void 0:I.partNumber}),j=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:h,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),S=on?j:[O],e.next=25,B.add(S);case 25:e.sent,b=(0,w.Vz)(null===jn||void 0===jn||null===(f=jn.flow)||void 0===f?void 0:f.categorias2,null===H||void 0===H?void 0:H.data),T=0!==Object.keys(b||{}).length?b.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(T,ii,h,jn.flowName),D="PORTABILIDAD_POST"===jn.flowName?"/cart":"PREAPOST"===jn.flowName?pn?"/datos-personales-prepost":"/login":pn?"/cart":"/login",oe.push(D);case 31:e.next=37;break;case 33:e.prev=33,e.t0=e.catch(8),console.error({error:e.t0}),Rn();case 37:e.next=40;break;case 39:"PREAPOST"!==d&&"PREAPOST"===jn.flowName?(rn(null===t||void 0===t||null===(C=t.data)||void 0===C?void 0:C.orderId),en(!0),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})}))):(R("warning","Ten en cuenta que no puedes mezclar productos de categor\xedas diferentes. Por favor completa la primera compra para continuar con esta solicitud.","",(function(){}),"","Aceptar","btn-rojo"),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})));case 40:e.next=116;break;case 42:if("PORTABILIDAD_POST"!==d||"PORTABILIDAD_POST"!==jn.flowName){e.next=47;break}R("error","","Ups, solamente puedes agregar un producto para portabilidad postpago",(function(){}),"","Aceptar","btn-rojo"),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),e.next=116;break;case 47:if("PREAPOST"!==d||"PREAPOST"!==jn.flowName){e.next=80;break}if(ii.partNumber===t.data.orderItem[0].partNumber){e.next=77;break}return e.next=51,G(null===t||void 0===t||null===(P=t.data)||void 0===P?void 0:P.orderId);case 51:if(e.prev=51,V=dn.skusMap,q=kn(),Q=null!==(g=null!==(M=null===V||void 0===V?void 0:V[q])&&void 0!==M?M:null===V||void 0===V?void 0:V[0])&&void 0!==g?g:null===V||void 0===V?void 0:V.defaultKey){e.next=57;break}return e.abrupt("return",R("info","Selecciona un color"));case 57:return Z=(null===dn||void 0===dn||null===(L=dn.selectedQuantity)||void 0===L?void 0:L.toString())||"1",K=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:Z,productId:Q,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(k=dn.product)||void 0===k?void 0:k.partNumber}),X=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:Z,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),z=on?X:[K],e.next=63,B.add(z);case 63:e.sent,W=(0,w.Vz)(null===jn||void 0===jn||null===(U=jn.flow)||void 0===U?void 0:U.categorias2,null===H||void 0===H?void 0:H.data),J=0!==Object.keys(W||{}).length?W.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(J,ii,Z,jn.flowName),Y=pn?"/datos-personales-prepost":"/login",oe.push(Y),e.next=75;break;case 71:e.prev=71,e.t1=e.catch(51),console.error({error:e.t1}),Rn();case 75:e.next=78;break;case 77:oe.push("/datos-personales-prepost");case 78:e.next=116;break;case 80:if(e.prev=80,ne=dn.skusMap,ie=kn(),re=null!==($=null!==(ee=null===ne||void 0===ne?void 0:ne[ie])&&void 0!==ee?ee:null===ne||void 0===ne?void 0:ne[0])&&void 0!==$?$:null===ne||void 0===ne?void 0:ne.defaultKey){e.next=86;break}return e.abrupt("return",R("info","Selecciona un color"));case 86:if(ae=(null===dn||void 0===dn||null===(te=dn.selectedQuantity)||void 0===te?void 0:te.toString())||"1",!("PORTABILIDAD_POST"===jn.flowName&&ae>1)){e.next=92;break}R("error","","Ups, solamente puedes agregar un producto para portabilidad postpago",(function(){}),"","Aceptar","btn-rojo"),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),e.next=110;break;case 92:if("PREAPOST"!==jn.flowName){e.next=99;break}le=(0,w.Vz)(null===jn||void 0===jn||null===(se=jn.flow)||void 0===se?void 0:se.categorias2,null===H||void 0===H?void 0:H.data),de=0!==Object.keys(le||{}).length?le.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(de,ii,ae,jn.flowName),oe.push("/datos-personales-prepost"),e.next=110;break;case 99:return Ae=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:ae,productId:re,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(ce=dn.product)||void 0===ce?void 0:ce.partNumber}),ve=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:ae,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),pe=on?ve:[Ae],e.next=104,B.add(pe);case 104:Ne=(0,w.Vz)(null===jn||void 0===jn||null===(ue=jn.flow)||void 0===ue?void 0:ue.categorias2,null===H||void 0===H?void 0:H.data),_e=0!==Object.keys(Ne||{}).length?Ne.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(_e,ii,ae,jn.flowName),"/datos-personales-prepost",me=pn?"PREAPOST"===jn.flowName?"/datos-personales-prepost":"/cart":"/login",oe.push(me);case 110:e.next=116;break;case 112:e.prev=112,e.t2=e.catch(80),console.error({error:e.t2}),Rn();case 116:e.next=153;break;case 118:if(e.prev=118,Ee=dn.skusMap,fe=kn(),Oe=null!==(xe=null!==(he=null===Ee||void 0===Ee?void 0:Ee[fe])&&void 0!==he?he:null===Ee||void 0===Ee?void 0:Ee[0])&&void 0!==xe?xe:null===Ee||void 0===Ee?void 0:Ee.defaultKey){e.next=124;break}return e.abrupt("return",R("info","Selecciona un color"));case 124:if(je=(null===dn||void 0===dn||null===(Ie=dn.selectedQuantity)||void 0===Ie?void 0:Ie.toString())||"1",!("PORTABILIDAD_POST"===jn.flowName&&je>1)){e.next=130;break}R("error","","Ups, solamente puedes agregar un producto para portabilidad postpago",(function(){}),"","Aceptar","btn-rojo"),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),e.next=147;break;case 130:return Te=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:je,productId:Oe,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(Se=dn.product)||void 0===Se?void 0:Se.partNumber}),De=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:je,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),Ce=on?De:[Te],e.next=135,(0,E.Rp)(mn);case 135:return Re=e.sent,e.next=138,B.add(Ce);case 138:return e.sent,Pe=(0,w.Vz)(null===jn||void 0===jn||null===(be=jn.flow)||void 0===be?void 0:be.categorias2,null===H||void 0===H?void 0:H.data),e.next=142,F();case 142:e.sent,ge=0!==Object.keys(Pe||{}).length?Pe.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(ge,ii,je,jn.flowName),ye="PREAPOST"===jn.flowName?"/datos-personales-prepost":"PORTABILIDAD_POST"===jn.flowName||401!==Re?"/cart":"/login",oe.push(ye);case 147:e.next=153;break;case 149:e.prev=149,e.t3=e.catch(118),console.error({error:e.t3}),Rn();case 153:case"end":return e.stop()}}),e,null,[[8,33],[51,71],[80,112],[118,149]])})));return function(t){return e.apply(this,arguments)}}()).catch(function(){var e=(0,o.Z)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"Invalid JWT!"===t.message?(R("error",(0,U.jsx)(Q._H,{id:"label.yourSessionHasBeenFinished"}),(0,U.jsx)(Q._H,{id:"label.titleYourSessionHasBeenFinished"}),(function(){return oe.push("/login")}),"","Aceptar","btn-rojo"),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})}))):(console.error("error:::::",t),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):F().then(function(){var e=(0,o.Z)(l().mark((function e(t){var n,i,r,o,s,d,c,u,A,v,p,N,_,m,x,h,E,f,O,j,S,b,T,D,C,P,g,M,k,U,F,V,q,Q,K,X,z,W,J,Y,$,ee,te,ne,ie,re,ae,se,le,de,ce,ue,Ae,ve,pe,Ne,_e,me,xe,he,Ie,Ee,fe,Oe,je,Se,be,Te,De,Ce,Re,Pe,ge,ye,Me,Le,we,ke,Be,Ue,Fe,Ge,Ve,qe,Qe,Ze,Ke,He,ze,We,Je,Ye,$e,et,tt,nt,it,rt,at,ot,st,lt,dt,ct,ut,At,vt,pt,Nt,_t,mt,xt,ht,It,Et,ft,St,bt,Dt,Ct,Rt,Pt,gt,yt,Mt,Lt,wt,kt,Bt,Ut,Ft,Gt,Vt,qt,Qt,Zt,Kt,Ht,Xt,zt,Wt,Jt,Yt,$t,en,tn,nn,rn,an,sn,ln,un,An,vn,Nn,_n,mn,xn,hn,In,En,On,Sn,bn,Tn,Dn,Cn,Pn,gn,yn,Ln,wn,Bn,Un,Fn,Gn,Vn,qn,Qn,Zn,Kn,Hn,Xn,zn,Wn,Jn,Yn,$n,ei,ti,ni,ri,ai,oi,si,li,di,ci,ui,Ai,vi,pi,Ni,_i,mi,xi,hi,Ii,Ei,fi,Oi,ji,Si,bi,Ti,Di,Ci,Ri,Pi,gi,yi,Mi,Li,wi,ki,Bi,Ui,Fi,Gi,Vi,qi,Qi,Zi,Ki,Hi,Xi,zi,Wi,Ji,Yi,$i,er,tr,nr,ir,rr,ar,or,sr,lr,dr,cr,ur,Ar,vr,pr,Nr,_r,mr,xr,hr,Ir,Er,fr,Or,jr,Sr,br,Tr,Dr,Cr,Rr,Pr,gr,yr,Mr;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=!1,e.next=3,jt(t);case 3:if("PREAPOST"!==e.sent){e.next=8;break}return e.next=7,G(null===t||void 0===t||null===(r=t.data)||void 0===r?void 0:r.orderId);case 7:i=!0;case 8:if(!(Object.keys(null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.orderItem).length>0)||i){e.next=251;break}if(u=(0,y.Oc)(null===t||void 0===t||null===(o=t.data)||void 0===o||null===(s=o.orderItem[0])||void 0===s?void 0:s.orderItemExtendAttribute),A=(0,y.oL)(null===t||void 0===t||null===(d=t.data)||void 0===d||null===(c=d.orderItem[0])||void 0===c?void 0:c.orderItemExtendAttribute),"PORTABILIDAD_POST"!==u||"PORTABILIDAD_POST"!==jn.flowName){e.next=16;break}R("error","","Ups, solamente puedes agregar un producto para portabilidad postpago",(function(){}),"","Aceptar","btn-rojo"),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),e.next=249;break;case 16:if("PORTABILIDAD_PRE"!==u||"PORTABILIDAD_POST"!==jn.flowName){e.next=45;break}return e.next=19,G(null===t||void 0===t||null===(v=t.data)||void 0===v?void 0:v.orderId);case 19:if(e.prev=19,h=dn.skusMap,E=kn(),f=null!==(p=null!==(N=null===h||void 0===h?void 0:h[E])&&void 0!==N?N:null===h||void 0===h?void 0:h[0])&&void 0!==p?p:null===h||void 0===h?void 0:h.defaultKey){e.next=25;break}return e.abrupt("return",R("info","Selecciona un color"));case 25:return O=(null===dn||void 0===dn||null===(_=dn.selectedQuantity)||void 0===_?void 0:_.toString())||"1",j=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:O,productId:f,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(m=dn.product)||void 0===m?void 0:m.partNumber}),S=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:O,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),b=on?S:[j],e.next=31,Z.add(b);case 31:e.sent,T=(0,w.Vz)(null===jn||void 0===jn||null===(x=jn.flow)||void 0===x?void 0:x.categorias2,null===H||void 0===H?void 0:H.data),D=0!==Object.keys(T||{}).length?T.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(D,ii,O,jn.flowName),C="PORTABILIDAD_POST"===jn.flowName?"/cart":"/login",oe.push(C),e.next=43;break;case 39:e.prev=39,e.t0=e.catch(19),console.error({error:e.t0}),Rn();case 43:e.next=249;break;case 45:if("PORTABILIDAD_POST"!==u||"KIT_PREPAGO"!==jn.flowName){e.next=66;break}return e.next=48,G(null===t||void 0===t||null===(P=t.data)||void 0===P?void 0:P.orderId);case 48:if(q=dn.skusMap,Q=kn(),K=null!==(g=null!==(M=null===q||void 0===q?void 0:q[Q])&&void 0!==M?M:null===q||void 0===q?void 0:q[0])&&void 0!==g?g:null===q||void 0===q?void 0:q.defaultKey){e.next=53;break}return e.abrupt("return",R("info","Selecciona un color"));case 53:return X=(null===dn||void 0===dn||null===(k=dn.selectedQuantity)||void 0===k?void 0:k.toString())||"1",{pAhK:null===dn||void 0===dn?void 0:dn.precioAhoraKit,ivaK:null===dn||void 0===dn?void 0:dn.precioIva,sku:null===dn||void 0===dn||null===(U=dn.product)||void 0===U?void 0:U.partNumber,pQty:X},z=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:X,productId:K,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(F=dn.product)||void 0===F?void 0:F.partNumber}),W=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:X,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),J=on?W:[z],e.next=60,B.add(J);case 60:Y=(0,w.Vz)(null===jn||void 0===jn||null===(V=jn.flow)||void 0===V?void 0:V.categorias2,null===H||void 0===H?void 0:H.data),$=0!==Object.keys(Y||{}).length?Y.breadcrum:jn.category.breadcrum,(0,Xe.Xq)($,ii,X,jn.flowName),oe.push("/login"),e.next=249;break;case 66:if(!("KIT_PREPAGO"===u&&"KIT_PREPAGO"===jn.flowName||"TERMINALES_LIBRES"===u&&"TERMINALES_LIBRES"===jn.flowName||"POSTPAGO_LINEA_NUEVA"===u&&"POSTPAGO_LINEA_NUEVA"===jn.flowName||"SIM_MAS_PAQUETE"===u&&"SIM_MAS_PAQUETE"===jn.flowName||"TECNOLOGIA"===u&&"Claro"===A&&"TECNOLOGIA"===jn.flowName&&"ClaroShop"!==jn.flowData.typeProduct||"TECNOLOGIA"===u&&"ClaroShop"===A&&"TECNOLOGIA"===jn.flowName&&"ClaroShop"===jn.flowData.typeProduct)){e.next=247;break}if("KIT_PREPAGO"!==jn.flowName){e.next=120;break}if(!a){e.next=102;break}if(ae=dn.skusMap,se=kn(),le=null!==(ee=null!==(te=null===ae||void 0===ae?void 0:ae[se])&&void 0!==te?te:null===ae||void 0===ae?void 0:ae[0])&&void 0!==ee?ee:null===ae||void 0===ae?void 0:ae.defaultKey){e.next=74;break}return e.abrupt("return",R("info","Selecciona un color"));case 74:return de=(null===dn||void 0===dn||null===(ne=dn.selectedQuantity)||void 0===ne?void 0:ne.toString())||"1",{pAhK:null===dn||void 0===dn?void 0:dn.precioAhoraKit,ivaK:null===dn||void 0===dn?void 0:dn.precioIva,sku:null===dn||void 0===dn||null===(ie=dn.product)||void 0===ie?void 0:ie.partNumber,pQty:de,pWOTKit:(null===dn||void 0===dn?void 0:dn.precioAhoraKit)-(null===dn||void 0===dn?void 0:dn.precioIva),pWTKit:null===dn||void 0===dn?void 0:dn.precioAhoraKit,ivaKit:null===dn||void 0===dn?void 0:dn.precioIva},e.next=78,(0,L.YS)({partNumber:null===dn||void 0===dn||null===(re=dn.product)||void 0===re?void 0:re.partNumber,typePlan:"PRE"});case 78:if("error"!==(ce=e.sent)){e.next=83;break}return e.abrupt("return",R("error","Te invitamos a realizar tu compra en unos minutos.","Error",(function(){return oe.push("/")}),"","Aceptar","btn-rojo"));case 83:if(ce.data.productConfiguration.contextCharacteristic.value.childMaterial,pe=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:de,productId:le,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(ue=dn.product)||void 0===ue?void 0:ue.partNumber}),Ne=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:de,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),_e=on?Ne:[pe],!(me=null===t||void 0===t||null===(Ae=t.data)||void 0===Ae?void 0:Ae.orderItem.find((function(e){return e.productId===_e[0].productId})))){e.next=94;break}return _e[0].quantity="".concat(parseInt(me.quantity)+parseInt(_e[0].quantity)),e.next=92,Z.update(_e);case 92:e.next=96;break;case 94:return e.next=96,Z.add(_e);case 96:xe=(0,w.Vz)(null===jn||void 0===jn||null===(ve=jn.flow)||void 0===ve?void 0:ve.categorias2,null===H||void 0===H?void 0:H.data),he=0!==Object.keys(xe||{}).length?xe.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(he,ii,de,jn.flowName),oe.push("/cart");case 100:e.next=118;break;case 102:if(be=dn.skusMap,Te=kn(),De=null!==(Ie=null!==(Ee=null===be||void 0===be?void 0:be[Te])&&void 0!==Ee?Ee:null===be||void 0===be?void 0:be[0])&&void 0!==Ie?Ie:null===be||void 0===be?void 0:be.defaultKey){e.next=107;break}return e.abrupt("return",R("info","Selecciona un color"));case 107:return Ce=(null===dn||void 0===dn||null===(fe=dn.selectedQuantity)||void 0===fe?void 0:fe.toString())||"1",{pAhK:null===dn||void 0===dn?void 0:dn.precioAhoraKit,ivaK:null===dn||void 0===dn?void 0:dn.precioIva,sku:null===dn||void 0===dn||null===(Oe=dn.product)||void 0===Oe?void 0:Oe.partNumber,pQty:Ce},Re=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:Ce,productId:De,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(je=dn.product)||void 0===je?void 0:je.partNumber}),Pe=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:Ce,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),ge=on?Pe:[Re],e.next=114,B.add(ge);case 114:ye=(0,w.Vz)(null===jn||void 0===jn||null===(Se=jn.flow)||void 0===Se?void 0:Se.categorias2,null===H||void 0===H?void 0:H.data),Me=0!==Object.keys(ye||{}).length?ye.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(Me,ii,Ce,jn.flowName),oe.push("/login");case 118:e.next=245;break;case 120:if("TERMINALES_LIBRES"!==jn.flowName||"ClaroShop"===jn.flowData.typeProduct){e.next=175;break}if(!a){e.next=157;break}if(Ke=dn.skusMap,He=kn(),ze=null!==(Le=null!==(we=null===Ke||void 0===Ke?void 0:Ke[He])&&void 0!==we?we:null===Ke||void 0===Ke?void 0:Ke[0])&&void 0!==Le?Le:null===Ke||void 0===Ke?void 0:Ke.defaultKey){e.next=127;break}return e.abrupt("return",R("info","Selecciona un color"));case 127:return We=null!==dn&&void 0!==dn&&null!==(ke=dn.product)&&void 0!==ke&&ke.price?null===dn||void 0===dn||null===(Be=dn.product)||void 0===Be?void 0:Be.price:(null===dn||void 0===dn||null===(Ue=dn.product)||void 0===Ue||null===(Fe=Ue.productDetail)||void 0===Fe||null===(Ge=Fe.contents)||void 0===Ge||null===(Ve=Ge[0])||void 0===Ve?void 0:Ve.price)||0,Je=(0,I.aS)(We,"I"),Ye=(null===dn||void 0===dn||null===(qe=dn.selectedQuantity)||void 0===qe?void 0:qe.toString())||"1",{pAhT:Number((0,I.rj)(Je)),pSIT:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,ivaT:null===dn||void 0===dn?void 0:dn.precioIva,sku:null===dn||void 0===dn||null===(Qe=dn.product)||void 0===Qe?void 0:Qe.partNumber,pQty:Ye,pWOTFin:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,pWTFin:Number((0,I.rj)(Je)),ivaP:null===dn||void 0===dn?void 0:dn.precioIva},e.next=133,(0,L.YS)({partNumber:null===dn||void 0===dn||null===(Ze=dn.product)||void 0===Ze?void 0:Ze.partNumber,typePlan:"LIBRE"});case 133:if("error"!==($e=e.sent)){e.next=138;break}return e.abrupt("return",R("error","Te invitamos a realizar tu compra en unos minutos.","Error",(function(){return oe.push("/")}),"","Aceptar","btn-rojo"));case 138:if($e.data.productConfiguration.contextCharacteristic.value.childMaterial,it=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:Ye,productId:ze,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(et=dn.product)||void 0===et?void 0:et.partNumber}),rt=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:Ye,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),at=on?rt:[it],!(ot=null===t||void 0===t||null===(tt=t.data)||void 0===tt?void 0:tt.orderItem.find((function(e){return e.productId===at[0].productId})))){e.next=149;break}return at[0].quantity="".concat(parseInt(ot.quantity)+parseInt(at[0].quantity)),e.next=147,Z.update(at);case 147:e.next=151;break;case 149:return e.next=151,Z.add(at);case 151:st=(0,w.Vz)(null===jn||void 0===jn||null===(nt=jn.flow)||void 0===nt?void 0:nt.categorias2,null===H||void 0===H?void 0:H.data),lt=0!==Object.keys(st||{}).length?st.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(lt,ii,Ye,jn.flowName),oe.push("/cart");case 155:e.next=173;break;case 157:if(vt=dn.skusMap,pt=kn(),Nt=null!==(dt=null!==(ct=null===vt||void 0===vt?void 0:vt[pt])&&void 0!==ct?ct:null===vt||void 0===vt?void 0:vt[0])&&void 0!==dt?dt:null===vt||void 0===vt?void 0:vt.defaultKey){e.next=162;break}return e.abrupt("return",R("info","Selecciona un color"));case 162:return _t=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:currentProductQuantity,productId:Nt,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(ut=dn.product)||void 0===ut?void 0:ut.partNumber}),mt=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:currentProductQuantity,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),xt=on?mt:[_t],e.next=167,B.add(xt);case 167:e.sent,ht=(0,w.Vz)(null===jn||void 0===jn||null===(At=jn.flow)||void 0===At?void 0:At.categorias2,null===H||void 0===H?void 0:H.data),It=0!==Object.keys(ht||{}).length?ht.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(It,ii,currentProductQuantity,jn.flowName),Et="PORTABILIDAD_POST"===jn.flowName?"/cart":"PREAPOST"===jn.flowName?pn?"/datos-personales-prepost":"/login":pn?"/cart":"/login",oe.push(Et);case 173:e.next=245;break;case 175:if("TECNOLOGIA"!==jn.flowName||"ClaroShop"===jn.flowData.typeProduct){e.next=224;break}if(!a){e.next=204;break}if(Bt=dn.skusMap,Ut=kn(),Ft=null!==(ft=null!==(St=null===Bt||void 0===Bt?void 0:Bt[Ut])&&void 0!==St?St:null===Bt||void 0===Bt?void 0:Bt[0])&&void 0!==ft?ft:null===Bt||void 0===Bt?void 0:Bt.defaultKey){e.next=182;break}return e.abrupt("return",R("info","Selecciona un color"));case 182:if(Gt=null!==dn&&void 0!==dn&&null!==(bt=dn.product)&&void 0!==bt&&bt.price?null===dn||void 0===dn||null===(Dt=dn.product)||void 0===Dt?void 0:Dt.price:(null===dn||void 0===dn||null===(Ct=dn.product)||void 0===Ct||null===(Rt=Ct.productDetail)||void 0===Rt||null===(Pt=Rt.contents)||void 0===Pt||null===(gt=Pt[0])||void 0===gt?void 0:gt.price)||0,Vt=(0,I.aS)(Gt,"I"),qt=(null===dn||void 0===dn||null===(yt=dn.selectedQuantity)||void 0===yt?void 0:yt.toString())||"1",{pAhT:Number((0,I.rj)(Vt)),pSIT:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,ivaT:null===dn||void 0===dn?void 0:dn.precioIva,dT:0,sku:null===dn||void 0===dn||null===(Mt=dn.product)||void 0===Mt?void 0:Mt.partNumber,pQty:qt,fPWOTFin:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,fPWTFin:Number((0,I.rj)(Vt)),ivaP:null===dn||void 0===dn?void 0:dn.precioIva,pWOTFin:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,pWTFin:Number((0,I.rj)(Vt))},Qt=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:qt,productId:Ft,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(Lt=dn.product)||void 0===Lt?void 0:Lt.partNumber}),Zt=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:qt,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),Kt=on?Zt:[Qt],!(Ht=null===t||void 0===t||null===(wt=t.data)||void 0===wt?void 0:wt.orderItem.find((function(e){return e.productId===Kt[0].productId})))){e.next=196;break}return Kt[0].quantity="".concat(parseInt(Ht.quantity)+parseInt(Kt[0].quantity)),e.next=194,Z.update(Kt);case 194:e.next=198;break;case 196:return e.next=198,Z.add(Kt);case 198:Xt=(0,w.Vz)(null===jn||void 0===jn||null===(kt=jn.flow)||void 0===kt?void 0:kt.categorias2,null===H||void 0===H?void 0:H.data),zt=0!==Object.keys(Xt||{}).length?Xt.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(zt,ii,qt,jn.flowName),oe.push("/cart"),e.next=222;break;case 204:if(An=dn.skusMap,vn=kn(),Nn=null!==(Wt=null!==(Jt=null===An||void 0===An?void 0:An[vn])&&void 0!==Jt?Jt:null===An||void 0===An?void 0:An[0])&&void 0!==Wt?Wt:null===An||void 0===An?void 0:An.defaultKey){e.next=209;break}return e.abrupt("return",R("info","Selecciona un color"));case 209:return _n=null!==dn&&void 0!==dn&&null!==(Yt=dn.product)&&void 0!==Yt&&Yt.price?null===dn||void 0===dn||null===($t=dn.product)||void 0===$t?void 0:$t.price:(null===dn||void 0===dn||null===(en=dn.product)||void 0===en||null===(tn=en.productDetail)||void 0===tn||null===(nn=tn.contents)||void 0===nn||null===(rn=nn[0])||void 0===rn?void 0:rn.price)||0,mn=(0,I.aS)(_n,"I"),xn=(null===dn||void 0===dn||null===(an=dn.selectedQuantity)||void 0===an?void 0:an.toString())||"1",{pAhT:Number((0,I.rj)(mn)),pSIT:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,ivaT:null===dn||void 0===dn?void 0:dn.precioIva,dT:0,sku:null===dn||void 0===dn||null===(sn=dn.product)||void 0===sn?void 0:sn.partNumber,pQty:xn},hn=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:xn,productId:Nn,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(ln=dn.product)||void 0===ln?void 0:ln.partNumber}),In=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:xn,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),En=on?In:[hn],e.next=218,B.add(En);case 218:On=(0,w.Vz)(null===jn||void 0===jn||null===(un=jn.flow)||void 0===un?void 0:un.categorias2,null===H||void 0===H?void 0:H.data),Sn=0!==Object.keys(On||{}).length?On.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(Sn,ii,xn,jn.flowName),oe.push("/login");case 222:e.next=245;break;case 224:if(!("POSTPAGO_LINEA_NUEVA"===jn.flowName&&"ClaroShop"!==jn.flowData.typeProduct||"SIM_MAS_PAQUETE"===jn.flowName&&"ClaroShop"!==jn.flowData.typeProduct||"TECNOLOGIA"===jn.flowName&&"ClaroShop"===jn.flowData.typeProduct)){e.next=245;break}if(gn=dn.skusMap,yn=kn(),Ln=null!==(bn=null!==(Tn=null===gn||void 0===gn?void 0:gn[yn])&&void 0!==Tn?Tn:null===gn||void 0===gn?void 0:gn[0])&&void 0!==bn?bn:null===gn||void 0===gn?void 0:gn.defaultKey){e.next=230;break}return e.abrupt("return",R("info","Selecciona un color"));case 230:if(wn=(null===dn||void 0===dn||null===(Dn=dn.selectedQuantity)||void 0===Dn?void 0:Dn.toString())||"1",Bn=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:wn,productId:Ln,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(Cn=dn.product)||void 0===Cn?void 0:Cn.partNumber}),Un=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:wn,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),Fn=on?Un:[Bn],!a){e.next=239;break}return e.next=237,Z.add(Fn);case 237:e.next=241;break;case 239:return e.next=241,B.add(Fn);case 241:Gn=(0,w.Vz)(null===jn||void 0===jn||null===(Pn=jn.flow)||void 0===Pn?void 0:Pn.categorias2,null===H||void 0===H?void 0:H.data),Vn=0!==Object.keys(Gn||{}).length?Gn.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(Vn,ii,wn,jn.flowName),a?oe.push("/cart"):oe.push("/login");case 245:e.next=249;break;case 247:R("warning","Ten en cuenta que no puedes mezclar productos de categor\xedas diferentes. Por favor completa la primera compra para continuar con esta solicitud.","",(function(){}),"","Aceptar","btn-rojo"),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})}));case 249:e.next=377;break;case 251:if(e.prev=251,Kn=dn.skusMap,Hn=kn(),Xn=null!==(qn=null!==(Qn=null===Kn||void 0===Kn?void 0:Kn[Hn])&&void 0!==Qn?Qn:null===Kn||void 0===Kn?void 0:Kn[0])&&void 0!==qn?qn:null===Kn||void 0===Kn?void 0:Kn.defaultKey){e.next=257;break}return e.abrupt("return",R("info","Selecciona un color"));case 257:if(zn=(null===dn||void 0===dn||null===(Zn=dn.selectedQuantity)||void 0===Zn?void 0:Zn.toString())||"1",!("PORTABILIDAD_POST"===jn.flowName&&zn>1)){e.next=263;break}R("error","","Ups, solamente puedes agregar un producto para portabilidad postpago",(function(){}),"","Aceptar","btn-rojo"),cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),e.next=371;break;case 263:if("KIT_PREPAGO"!==jn.flowName){e.next=285;break}if(!a){e.next=284;break}return{pAhK:null===dn||void 0===dn?void 0:dn.precioAhoraKit,ivaK:null===dn||void 0===dn?void 0:dn.precioIva,sku:null===dn||void 0===dn||null===(Wn=dn.product)||void 0===Wn?void 0:Wn.partNumber,pQty:zn,pWOTKit:(null===dn||void 0===dn?void 0:dn.precioAhoraKit)-(null===dn||void 0===dn?void 0:dn.precioIva),pWTKit:null===dn||void 0===dn?void 0:dn.precioAhoraKit,ivaKit:null===dn||void 0===dn?void 0:dn.precioIva},e.next=268,(0,L.YS)({partNumber:null===dn||void 0===dn||null===(Jn=dn.product)||void 0===Jn?void 0:Jn.partNumber,typePlan:"PRE"});case 268:if("error"!==(Yn=e.sent)){e.next=273;break}return e.abrupt("return",R("error","Te invitamos a realizar tu compra en unos minutos.","Error",(function(){return oe.push("/")}),"","Aceptar","btn-rojo"));case 273:return Yn.data.productConfiguration.contextCharacteristic.value.childMaterial,ti=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:zn,productId:Xn,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===($n=dn.product)||void 0===$n?void 0:$n.partNumber}),ni=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:zn,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),ri=on?ni:[ti],e.next=279,Z.add(ri);case 279:ai=(0,w.Vz)(null===jn||void 0===jn||null===(ei=jn.flow)||void 0===ei?void 0:ei.categorias2,null===H||void 0===H?void 0:H.data),oi=0!==Object.keys(ai||{}).length?ai.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(oi,ii,zn,jn.flowName);case 282:e.next=285;break;case 284:({pAhK:null===dn||void 0===dn?void 0:dn.precioAhoraKit,ivaK:null===dn||void 0===dn?void 0:dn.precioIva,sku:null===dn||void 0===dn||null===(si=dn.product)||void 0===si?void 0:si.partNumber,pQty:zn});case 285:if("TERMINALES_LIBRES"!==jn.flowName||"ClaroShop"===jn.flowData.typeProduct){e.next=311;break}if(!a){e.next=308;break}return _i=null!==dn&&void 0!==dn&&null!==(li=dn.product)&&void 0!==li&&li.price?null===dn||void 0===dn||null===(di=dn.product)||void 0===di?void 0:di.price:(null===dn||void 0===dn||null===(ci=dn.product)||void 0===ci||null===(ui=ci.productDetail)||void 0===ui||null===(Ai=ui.contents)||void 0===Ai||null===(vi=Ai[0])||void 0===vi?void 0:vi.price)||0,mi=(0,I.aS)(_i,"I"),{pAhT:Number((0,I.rj)(mi)),pSIT:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,ivaT:null===dn||void 0===dn?void 0:dn.precioIva,sku:null===dn||void 0===dn||null===(pi=dn.product)||void 0===pi?void 0:pi.partNumber,pQty:zn,pWOTFin:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,pWTFin:Number((0,I.rj)(mi)),ivaP:null===dn||void 0===dn?void 0:dn.precioIva},e.next=292,(0,L.YS)({partNumber:null===dn||void 0===dn||null===(Ni=dn.product)||void 0===Ni?void 0:Ni.partNumber,typePlan:"LIBRE"});case 292:if("error"!==(xi=e.sent)){e.next=297;break}return e.abrupt("return",R("error","Te invitamos a realizar tu compra en unos minutos.","Error",(function(){return oe.push("/")}),"","Aceptar","btn-rojo"));case 297:return xi.data.productConfiguration.contextCharacteristic.value.childMaterial,Ei=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:zn,productId:Xn,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(hi=dn.product)||void 0===hi?void 0:hi.partNumber}),fi=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:zn,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),Oi=on?fi:[Ei],e.next=303,Z.add(Oi);case 303:ji=(0,w.Vz)(null===jn||void 0===jn||null===(Ii=jn.flow)||void 0===Ii?void 0:Ii.categorias2,null===H||void 0===H?void 0:H.data),Si=0!==Object.keys(ji||{}).length?ji.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(Si,ii,zn,jn.flowName);case 306:e.next=311;break;case 308:yi=null!==dn&&void 0!==dn&&null!==(bi=dn.product)&&void 0!==bi&&bi.price?null===dn||void 0===dn||null===(Ti=dn.product)||void 0===Ti?void 0:Ti.price:(null===dn||void 0===dn||null===(Di=dn.product)||void 0===Di||null===(Ci=Di.productDetail)||void 0===Ci||null===(Ri=Ci.contents)||void 0===Ri||null===(Pi=Ri[0])||void 0===Pi?void 0:Pi.price)||0,Mi=(0,I.aS)(yi,"I"),{pAhT:Number((0,I.rj)(Mi)),pSIT:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,ivaT:null===dn||void 0===dn?void 0:dn.precioIva,sku:null===dn||void 0===dn||null===(gi=dn.product)||void 0===gi?void 0:gi.partNumber,pQty:zn};case 311:if("TECNOLOGIA"!==jn.flowName||"ClaroShop"===jn.flowData.typeProduct){e.next=329;break}if(!a){e.next=326;break}return Qi=null!==dn&&void 0!==dn&&null!==(Li=dn.product)&&void 0!==Li&&Li.price?null===dn||void 0===dn||null===(wi=dn.product)||void 0===wi?void 0:wi.price:(null===dn||void 0===dn||null===(ki=dn.product)||void 0===ki||null===(Bi=ki.productDetail)||void 0===Bi||null===(Ui=Bi.contents)||void 0===Ui||null===(Fi=Ui[0])||void 0===Fi?void 0:Fi.price)||0,Zi=(0,I.aS)(Qi,"I"),{pAhT:Number((0,I.rj)(Zi)),pSIT:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,ivaT:null===dn||void 0===dn?void 0:dn.precioIva,dT:0,sku:null===dn||void 0===dn||null===(Gi=dn.product)||void 0===Gi?void 0:Gi.partNumber,pQty:zn,fPWOTFin:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,fPWTFin:Number((0,I.rj)(Zi)),ivaP:null===dn||void 0===dn?void 0:dn.precioIva,pWOTFin:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,pWTFin:Number((0,I.rj)(Zi))},Ki=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:zn,productId:Xn,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(Vi=dn.product)||void 0===Vi?void 0:Vi.partNumber}),Hi=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:zn,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),Xi=on?Hi:[Ki],e.next=321,Z.add(Xi);case 321:zi=(0,w.Vz)(null===jn||void 0===jn||null===(qi=jn.flow)||void 0===qi?void 0:qi.categorias2,null===H||void 0===H?void 0:H.data),Wi=0!==Object.keys(zi||{}).length?zi.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(Wi,ii,zn,jn.flowName),e.next=329;break;case 326:rr=null!==dn&&void 0!==dn&&null!==(Ji=dn.product)&&void 0!==Ji&&Ji.price?null===dn||void 0===dn||null===(Yi=dn.product)||void 0===Yi?void 0:Yi.price:(null===dn||void 0===dn||null===($i=dn.product)||void 0===$i||null===(er=$i.productDetail)||void 0===er||null===(tr=er.contents)||void 0===tr||null===(nr=tr[0])||void 0===nr?void 0:nr.price)||0,ar=(0,I.aS)(rr,"I"),{pAhT:Number((0,I.rj)(ar)),pSIT:null===dn||void 0===dn?void 0:dn.precioSinImpuestos,ivaT:null===dn||void 0===dn?void 0:dn.precioIva,dT:0,sku:null===dn||void 0===dn||null===(ir=dn.product)||void 0===ir?void 0:ir.partNumber,pQty:zn};case 329:if(!("POSTPAGO_LINEA_NUEVA"===jn.flowName&&"ClaroShop"!==jn.flowData.typeProduct||"SIM_MAS_PAQUETE"===jn.flowName&&"ClaroShop"!==jn.flowData.typeProduct||"TECNOLOGIA"===jn.flowName&&"ClaroShop"===jn.flowData.typeProduct)){e.next=355;break}if(!a){e.next=347;break}if(ur=dn.skusMap,Ar=kn(),vr=null!==(or=null!==(sr=null===ur||void 0===ur?void 0:ur[Ar])&&void 0!==sr?sr:null===ur||void 0===ur?void 0:ur[0])&&void 0!==or?or:null===ur||void 0===ur?void 0:ur.defaultKey){e.next=336;break}return e.abrupt("return",R("info","Selecciona un color"));case 336:return pr=(null===dn||void 0===dn||null===(lr=dn.selectedQuantity)||void 0===lr?void 0:lr.toString())||"1",Nr=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:pr,productId:vr,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(dr=dn.product)||void 0===dr?void 0:dr.partNumber}),_r=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:pr,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),mr=on?_r:[Nr],e.next=342,Z.add(mr);case 342:xr=(0,w.Vz)(null===jn||void 0===jn||null===(cr=jn.flow)||void 0===cr?void 0:cr.categorias2,null===H||void 0===H?void 0:H.data),hr=0!==Object.keys(xr||{}).length?xr.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(hr,ii,pr,jn.flowName),e.next=355;break;case 347:return fr=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:zn,productId:Xn,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(Ir=dn.product)||void 0===Ir?void 0:Ir.partNumber}),Or=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:zn,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),jr=on?Or:[fr],e.next=352,B.add(jr);case 352:Sr=(0,w.Vz)(null===jn||void 0===jn||null===(Er=jn.flow)||void 0===Er?void 0:Er.categorias2,null===H||void 0===H?void 0:H.data),br=0!==Object.keys(Sr||{}).length?Sr.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(br,ii,zn,jn.flowName);case 355:if(a){e.next=369;break}if(Cr=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:zn,productId:Xn,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(Tr=dn.product)||void 0===Tr?void 0:Tr.partNumber}),Rr=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:zn,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),Pr=on?Rr:[Cr],pn||"PORTABILIDAD_POST"!==jn.flowName&&("PREAPOST"!==jn.flowName||!1!==(null===Ot||void 0===Ot?void 0:Ot.status))){e.next=364;break}return e.next=362,Z.add(Pr);case 362:e.next=366;break;case 364:return e.next=366,B.add(Pr);case 366:gr=(0,w.Vz)(null===jn||void 0===jn||null===(Dr=jn.flow)||void 0===Dr?void 0:Dr.categorias2,null===H||void 0===H?void 0:H.data),yr=0!==Object.keys(gr||{}).length?gr.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(yr,ii,zn,jn.flowName);case 369:"PORTABILIDAD_POST"===jn.flowName?Mr="/cart":a?(Mr="/cart",localStorage.setItem("isGuest",!0),localStorage.removeItem("client"),Mn()):Mr="PREAPOST"===jn.flowName&&!1===(null===Ot||void 0===Ot?void 0:Ot.status)?"/datos-personales-prepost":"/login",oe.push(Mr);case 371:e.next=377;break;case 373:e.prev=373,e.t1=e.catch(251),console.error({error:e.t1}),Rn();case 377:case"end":return e.stop()}}),e,null,[[19,39],[251,373]])})));return function(t){return e.apply(this,arguments)}}()).catch(function(){var e=(0,o.Z)(l().mark((function e(t){var n,i,r,a,o,s,d,c,u,A,v,p,N,_;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=dn.skusMap,d=(null===dn||void 0===dn||null===(n=dn.selectedQuantity)||void 0===n?void 0:n.toString())||"1",c=kn(),u=null!==(i=null!==(r=null===s||void 0===s?void 0:s[c])&&void 0!==r?r:null===s||void 0===s?void 0:s[0])&&void 0!==i?i:null===s||void 0===s?void 0:s.defaultKey){e.next=6;break}return e.abrupt("return",R("info","Selecciona un color"));case 6:if(A=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:d,productId:u,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(a=dn.product)||void 0===a?void 0:a.partNumber}),v=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:d,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),p=on?v:[A],pn||"PORTABILIDAD_POST"!==jn.flowName&&"KIT_PREPAGO"!==jn.flowName&&("PREAPOST"!==jn.flowName||!1!==(null===Ot||void 0===Ot?void 0:Ot.status))){e.next=14;break}return e.next=12,Z.add(p);case 12:e.next=16;break;case 14:return e.next=16,B.add(p);case 16:N=(0,w.Vz)(null===jn||void 0===jn||null===(o=jn.flow)||void 0===o?void 0:o.categorias2,null===H||void 0===H?void 0:H.data),_=0!==Object.keys(N||{}).length?N.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(_,ii,d,jn.flowName),oe.push("/login");case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 110:case"end":return e.stop()}}),e,null,[[24,49],[55,85]])}))),wn.apply(this,arguments)}function kn(e){var t=e||dn.selectedAttributes,n=Object.entries(t).map((function(e){return e[1]})).join(h.zs);return""===n?h.SM:n}var Bn,Un=kn(),Fn=dn.skusMap,Gn=dn.partNumberMap;Bn=void 0!==Nn.attributeSelected?Nn.attributeSelected:kn();var Vn=(null===Fn||void 0===Fn?void 0:Fn[Bn])||(null===Fn||void 0===Fn?void 0:Fn[0]),qn=(null===Gn||void 0===Gn?void 0:Gn[Bn])||(null===Gn||void 0===Gn?void 0:Gn[0]),Qn=function(){(0,Xe.ps)("Detalle de producto","\xa1Ups!, parece que algo sali\xf3 mal, int\xe9ntalo nuevamente o si prefieres comun\xedcate con nosotros a la l\xednea (601)7457466."),C("error","Algo sali\xf3 mal al generar tu solicitud","Int\xe9ntalo de nuevo o, si necesitas ayuda, comun\xedcate a la l\xednea (601) 745 7466",(function(){}),"","Aceptar",Pn,"btn-rojo-red-sim-paquete-modal-detail",null,null,null,null,null,null,null)},Zn=function(){"CUOTAS"===cr?oe.push("/simulator"):R("error","Te invitamos a finalizar tu compra con","Actualmente el producto no est\xe1 disponible para pago a cuotas en la factura Claro.",(function(){}),"","Comprar con otros medios de pago >","btn-rojo","otros medios de pago.")},Kn=function(e){var t,n,i=e.target.value,r=X.data.find((function(e){return e.flujo_venta===i})),a=(0,w.Vz)(null===r||void 0===r?void 0:r.categorias2,null===H||void 0===H?void 0:H.data),o=["/claro".concat(null===a||void 0===a||null===(t=a.seo)||void 0===t?void 0:t.href),null===a||void 0===a||null===(n=a.breadcrum)||void 0===n?void 0:n.split("/")[1]];cn((function(e){return Tt(Tt({},e),{},{breadcrumb:o,linkparentCategory:o[0],breadcrum:o[1]})})),jn.handleChangePurchaseFlow(i)},Hn=function(e,t){return function(){var n;void 0!==Nn.attributeSelected?(n=Nn.attributeSelected,Nn.attributeSelected=void 0):n=t;var i=dn.selectedAttributes,r=x()(i),a="";r[e]=n,a=Object.keys(r).join(h.zs);var o=Object.keys(dn.skusMap);!Object.hasOwnProperty.call(dn.skusMap,a)&&dn.attributesMap&&(a="",Object.keys(dn.attributesMap).forEach((function(e,t){var n=r[e],i="";if(i=0===t?"".concat(n):"".concat(a).concat(h.zs).concat(n),!o.some((function(e){return e.startsWith(i)}))){var s=o.find((function(e){return e.startsWith(a)})).split(h.zs);Object.keys(r).forEach((function(e,t){r[e]=s[t]}))}a=i}))),fe(!1),cn((function(e){return Tt(Tt({},e),{},{selectedAttributes:r,product:Tt(Tt({},e.product),{},{attributeID:n})})}))}},Xn=function(e){cn((function(t){return Tt(Tt({},t),{},{activeAccordeonIndex1:e})}))},zn=function(e){cn((function(t){return Tt(Tt({},t),{},{activeAccordeonIndex2:e})}))},Wn=function(){cn((function(e){return Tt(Tt({},e),{},{isModalSizesShow:!e.isModalSizesShow})}))};function Jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cn((function(n){var r=e;t?((0,i.Z)(String(n.selectedQuantity)).forEach((function(e){r=r.replace(e,"")})),r||(r=1)):r=parseInt(e,10);return Tt(Tt({},n),{},{selectedQuantity:r})}))}var Yn=function(){},$n=function(e){Ke({index:e,show:!0})};function ei(){return ei=(0,o.Z)(l().mark((function e(t){var n,i,r,a,o,s,d,c,u,A,v,p,N,_;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return en(!1),cn((function(e){return Tt(Tt({},e),{},{isLoading:!0})})),"{}","",e.next=6,G(t);case 6:if(e.prev=6,s=dn.skusMap,d=kn(),c=null!==(n=null!==(i=null===s||void 0===s?void 0:s[d])&&void 0!==i?i:null===s||void 0===s?void 0:s[0])&&void 0!==n?n:null===s||void 0===s?void 0:s.defaultKey){e.next=12;break}return e.abrupt("return",R("info","Selecciona un color"));case 12:return u=(null===dn||void 0===dn||null===(r=dn.selectedQuantity)||void 0===r?void 0:r.toString())||"1",A=Tt(Tt({},jn.flowData),{},{bundles:"{}",quantity:u,productId:c,parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(a=dn.product)||void 0===a?void 0:a.partNumber}),v=((null===ii||void 0===ii?void 0:ii.components)||[]).map((function(e){var t;return Tt(Tt(Tt({},jn.flowData),ii.bundleInfoSave),{},{quantity:u,productId:e.sKUs[0].uniqueID||"",parentCategoryID:fn,purchaseFlow:jn.flowName,newPrices:JSON.stringify({}),newIdProduct:"",partNumber:null===dn||void 0===dn||null===(t=dn.product)||void 0===t?void 0:t.partNumber})})),p=on?v:[A],e.next=18,B.add(p);case 18:N=(0,w.Vz)(null===jn||void 0===jn||null===(o=jn.flow)||void 0===o?void 0:o.categorias2,null===H||void 0===H?void 0:H.data),_=0!==Object.keys(N||{}).length?N.breadcrum:jn.category.breadcrum,(0,Xe.Xq)(_,ii,u,jn.flowName),"/datos-personales-prepost",oe.push("/datos-personales-prepost"),e.next=29;break;case 25:e.prev=25,e.t0=e.catch(6),console.error({error:e.t0}),Rn();case 29:case"end":return e.stop()}}),e,null,[[6,25]])}))),ei.apply(this,arguments)}(0,d.useEffect)((function(){if(cn((function(e){return Tt(Tt({},e),{},{isLoading:!0})})),st){var e,t,n,i,r,a,s,d,c=JSON.parse(st),u=Object.fromEntries(c.sliders.map((function(e){return[e.name,e]}))),A="https://us-east.api.hclcommerce.ai/model-results-api",v=null===c||void 0===c?void 0:c.projectId,p=null===(e=u.MORELIKETHIS)||void 0===e?void 0:e.modelInterfaceId,N=null===(t=u.FBOUGHTT0GETHER)||void 0===t?void 0:t.modelInterfaceId,_=null===(n=u.MORELIKETHIS)||void 0===n?void 0:n.tittle,m=null===(i=u.FBOUGHTT0GETHER)||void 0===i?void 0:i.tittle;if(null!==(r=u.MORELIKETHIS)&&void 0!==r&&r.isActive)fetch("".concat(A,"/v1/projects/").concat(v,"/model-results/").concat(p,"?productId=").concat(null===b||void 0===b||null===(s=b.seo)||void 0===s?void 0:s.tokenExternalValue)).then((function(e){e.json().then(function(){var e=(0,o.Z)(l().mark((function e(t){var n,i,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(404!==t.statusCode){e.next=3;break}return cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),e.abrupt("return");case 3:return n=null===t||void 0===t?void 0:t.map((function(e){return e.itemId})).filter((function(e){return null!=e})).filter((function(e){return!/^\d+(\.\d+)?E[+-]\d+$/i.test(e)})).join(","),e.next=6,(0,ke.T4)({partNumbers:n});case 6:i=e.sent,cn((function(e){return Tt(Tt({},e),{},{recommendedProducts1:null===i||void 0===i?void 0:i.catalogEntryView,recommendedProducts1Name:_,isLoading:!1})})),r=function(e,t){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"view_item_list",eventModel:{items:[],item_list_id:"".concat(e,"-").concat(t),item_list_name:"".concat(e,"-").concat(t),list_type:"hcl-commerce-ai-recommendation"}})},r(v,p);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})).catch((function(e){result||console.error("There was a problem creating an empty div")}));if(null!==(a=u.FBOUGHTT0GETHER)&&void 0!==a&&a.isActive)fetch("".concat(A,"/v1/projects/").concat(v,"/model-results/").concat(N,"?productId=").concat(null===b||void 0===b||null===(d=b.seo)||void 0===d?void 0:d.tokenExternalValue)).then((function(e){e.json().then(function(){var e=(0,o.Z)(l().mark((function e(t){var n,i,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(404!==t.statusCode){e.next=3;break}return cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})})),e.abrupt("return");case 3:return n=null===t||void 0===t?void 0:t.map((function(e){return e.itemId})).filter((function(e){return null!=e})).filter((function(e){return!/^\d+(\.\d+)?E[+-]\d+$/i.test(e)})).join(","),e.next=6,(0,ke.T4)({partNumbers:n});case 6:i=e.sent,cn((function(e){return Tt(Tt({},e),{},{recommendedProducts2:null===i||void 0===i?void 0:i.catalogEntryView,recommendedProducts2Name:m,isLoading:!1})})),r=function(e,t){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"view_item_list",eventModel:{items:[],item_list_id:"".concat(e,"-").concat(t),item_list_name:"".concat(e,"-").concat(t),list_type:"hcl-commerce-ai-recommendation"}})},r(v,N);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})).catch((function(e){result||console.error("There was a problem creating an empty div")}))}cn((function(e){return Tt(Tt({},e),{},{isLoading:!1})}))}),[qn,st]);var ti=dn.linkparentCategory,ni=dn.breadcrum,ii=dn.product,ri=dn.precioClienteClaro,ai=dn.precioClienteKit,oi=dn.precioAntesKit,si=dn.precioAhoraKit,li=dn.inventoryStatusBySku,di=dn.altImage,ci=dn.attributesMap,ui=dn.attrsCompatibilityMap,Ai=dn.selectedQuantity,vi=dn.attrDescMap,pi=dn.attrDescMap1SKU,Ni=dn.longDescriptionPageView1,_i=dn.longDescriptionPageView2,mi=(dn.longDescriptionPageView3,dn.longDescriptionFeaturesPageView,dn.activeAccordeonIndex1),xi=dn.activeAccordeonIndex2,hi=(dn.activeAccordeonIndex3,dn.longDescription),Ii=dn.shortDescription,Ei=dn.productInfoView,fi=dn.infoPlanPrepago,Oi=dn.infoTextPlanPrepago,ji=dn.detalle_kitprepago,Si=null!==ii&&void 0!==ii&&ii.price?null===ii||void 0===ii?void 0:ii.price:(null===ii||void 0===ii||null===(v=ii.productDetail)||void 0===v||null===(N=v.contents)||void 0===N||null===(m=N[0])||void 0===m?void 0:m.price)||0,bi=!1,Ti=!1,Di=ri||null,Ci=null===An||void 0===An?void 0:An.map((function(e){return e.fullImage||""})),Ri=(0,I.aS)(Si,"L"),Pi=(0,I.aS)(Si,"I"),gi="0.0"!==Ri&&"0"!==Ri&&0!==Ri&&null!==Ri&&"0.0"!==Pi&&"0"!==Pi&&0!==Pi&&null!==Pi&&parseInt(Ri)>parseInt(Pi);"0.0"!==Di&&"0"!==Di&&0!==Di&&null!==Di&&parseInt(Pi)>parseInt(Di.toFixed(1))&&(bi=!0);var yi="0.0"!==oi&&"0"!==oi&&0!==oi&&null!==oi&&"0.0"!==si&&"0"!==si&&0!==si&&null!==si&&parseInt(oi)>parseInt(si);"0.0"!==ai&&"0"!==ai&&0!==ai&&null!==ai&&parseInt(null===si||void 0===si?void 0:si.toFixed(1))>parseInt(null===ai||void 0===ai?void 0:ai.toFixed(1))&&(Ti=!0);var Mi=Object.values(ci||{})||[],Li=Number(Pi)*Ai,wi=Number(si)*Ai,ki=Pe(vi,pi),Bi=ki.caja_b_desc,Ui=ki.caja_b_nombre,Fi=ki.car_anexo_a_desc,Gi=ki.car_anexo_a_imagen,Vi=ki.car_anexo_a_nombre,qi=ki.car_anexo_b_desc,Qi=ki.car_anexo_b_imagen,Zi=ki.car_anexo_b_nombre,Ki=ki.car_anexo_c_desc,Hi=ki.car_anexo_c_imagen,Xi=ki.car_anexo_c_nombre,zi=ki.cd_1_desc,Wi=ki.cd_1_ico,Ji=(ki.cd_1_imagen,ki.cd_1_nombre),Yi=(ki.cd_1_titulo,ki.cd_2_desc),$i=(ki.cd_2_ico,ki.cd_2_imagen,ki.cd_2_nombre),er=(ki.cd_2_titulo,ki.cd_3_desc),tr=(ki.cd_3_ico,ki.cd_3_imagen,ki.cd_3_nombre),nr=(ki.cd_3_titulo,ki.cp_a_desc),ir=ki.cp_a_ico,rr=ki.cp_b_desc,ar=ki.cp_b_ico,or=ki.cp_c_desc,sr=ki.cp_c_ico,lr=ki.cp_d_desc,dr=ki.cp_d_ico,cr=(ki.esFinanciable,ki.tipo_venta),ur=ki.ft_a_ico,Ar=ki.ctd_a_nombre,vr=(void 0===cr||Number((null===dn||void 0===dn?void 0:dn.selectedQuantity)||1),function(e){var t,n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"url_icon_tienda",a=null===(t=e||[])||void 0===t?void 0:t.find((function(e){return(null===e||void 0===e?void 0:e.identifier)===r}));return(null===a||void 0===a||null===(n=a.values)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.value)||""}),pr=(0,L.ag)({inventory:li,selectedSku2:Vn,sellLimitsMarketing:lt});function Nr(){var e=dn.breadcrumb[1],t=null!==e&&void 0!==e&&e.includes("/")?e.split("/").map((function(e){return e.toLowerCase().trim()})):[null===e||void 0===e?void 0:e.toLowerCase().trim()];return Nn.category?Nn.category.split("/").map((function(e){return e.toLowerCase().trim()})).includes(t[0])&&("tecnolog\xeda"==t[0]||"servicios m\xf3viles"==t[0]&&t.length>1)?t[1]:t[0]:"tecnolog\xeda"===t[0]||"servicios m\xf3viles"==t[0]&&t.length>1?t[1]:t[0]}return(0,d.useEffect)((function(){"true"===it&&dn.selectedQuantity>6?tt(!0):tt(!1)}),[dn,it]),(0,d.useEffect)((function(){document.body.classList.contains("tiendaClaro")&&(document.body.classList.remove("tiendaClaro"),document.body.classList.add("bg-white"))}),[]),(0,d.useEffect)((function(){Dn(qn)}),[qn]),(0,d.useEffect)((function(){if(jn.flowName&&null!==Ue&&void 0!==Ue&&Ue.partNumber&&dn.breadcrumb){var e,t,n;if(["portabilidad_post","sim_mas_paquete","postpago_linea_nueva"].includes(null===jn||void 0===jn?void 0:jn.flowName.toLowerCase().trim())){var i,r=(null===li||void 0===li||null===(i=li[0])||void 0===i?void 0:i.catEntry)||"";n=(0,L.ag)({inventory:li,selectedSku2:r,isBoolean:!0,sellLimitsMarketing:lt})}else n=(0,L.ag)({inventory:li,selectedSku2:Vn,isBoolean:!0,sellLimitsMarketing:lt});var a=Nr(dn.breadcrumb),o=(null===ii||void 0===ii?void 0:ii.attributeID)==(null===Nn||void 0===Nn?void 0:Nn.attributeSelected2)&&null!==(e=null===Nn||void 0===Nn?void 0:Nn.position)&&void 0!==e?e:0,s=(null===ii||void 0===ii?void 0:ii.attributeID)==(null===Nn||void 0===Nn?void 0:Nn.attributeSelected2)&&null!==(t=null===Nn||void 0===Nn?void 0:Nn.searchTerm)&&void 0!==t?t:"";(0,Xe.RO)(ii,null===jn||void 0===jn?void 0:jn.flowName,a,ui[Un],n,o,s)}Object.keys(Ue).length>0&&jn.flowName.length>0&&Dn(qn)}),[Ue,jn.flowName,dn.breadcrumb,dn.inventoryStatusBySku]),(0,d.useEffect)((function(){var e=function(){var e=(0,o.Z)(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(Ue&&H&&H.data&&Array.isArray(H.data)&&H.data.length>0)){e.next=7;break}return e.next=3,We(Ue,H);case 3:(t=e.sent)&&["TERMINALES_LIBRES","TECNOLOGIA"].includes(t),e.next=8;break;case 7:console.warn("prductDetail o categories no est\xe1n definidos correctamente, o categories.data est\xe1 vac\xedo.");case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[mn,Ue,H]),(0,U.jsxs)(pe.Z,{children:[(0,U.jsx)(Ne.Z,{active:dn.isLoading||St||Lt||Bt||Gt,spinner:(0,U.jsx)(_e.Z,{}),styles:{overlay:function(e){return Tt(Tt({},e),{},{background:ye.Z.GENERAL.LOADER_OVERLAY_COLOR})}},children:(0,U.jsxs)("main",{className:"wrapper",style:{background:"#fff !important"},children:["SIM_MAS_PAQUETE"===jn.flowName&&(0,U.jsx)(ve,{handleQuantityChange:Jn,getValueInventory:Sn,inventoryStatusBySku:li,activeAccordeonIndex1:mi,linkparentCategory:ti,selectedQuantity:Ai,attrDescMap1SKU:pi,longDescription:hi,attrDescMap:vi,handleBuy:Ln,state:dn,priceForAddi:Li,finalOfferPrice:Pi,dataServer:b,breadcrum:ni,product:ii,toggleactiveAccordeonIndex1:Xn,productInfoView:Ei,infoPlanPrepago:fi,infoTextPlanPrepago:Oi}),"POSTPAGO_LINEA_NUEVA"===jn.flowName&&(0,U.jsx)(Ye,{handleQuantityChange:Jn,getValueInventory:Sn,inventoryStatusBySku:li,activeAccordeonIndex:mi,linkparentCategory:ti,selectedQuantity:Ai,attrDescMap1SKU:pi,longDescription:hi,attrDescMap:vi,handleBuy:Ln,state:dn,priceForAddi:Li,finalOfferPrice:Pi,breadcrum:ni,product:ii,toggleActiveAccordeonIndex:Xn,productInfoView:Ei}),"PREAPOST"===jn.flowName&&(0,U.jsx)(et,{handleQuantityChange:Jn,getValueInventory:Sn,inventoryStatusBySku:li,activeAccordeonIndex1:mi,linkparentCategory:ti,selectedQuantity:Ai,attrDescMap1SKU:pi,longDescription:hi,attrDescMap:vi,handleBuy:Ln,state:dn,priceForAddi:Li,finalOfferPrice:Pi,breadcrum:ni,product:ii,toggleactiveAccordeonIndex1:Xn,productInfoView:Ei,flowName:jn.flow.flujo_venta}),"PORTABILIDAD_POST"===jn.flowName&&(0,U.jsx)(nt,{handleQuantityChange:Jn,getValueInventory:Sn,inventoryStatusBySku:li,activeAccordeonIndex:mi,linkparentCategory:ti,selectedQuantity:Ai,attrDescMap1SKU:pi,longDescription:hi,attrDescMap:vi,handleBuy:Ln,state:dn,priceForAddi:Li,finalOfferPrice:Pi,breadcrum:ni,product:ii,toggleActiveAccordeonIndex:Xn,productInfoView:Ei}),("TERMINALES_LIBRES"===jn.flowName||"KIT_PREPAGO"===jn.flowName)&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("section",{className:"detalleProducto",children:(0,U.jsxs)("div",{className:"container containerdetalleProducto",children:[(0,U.jsx)("div",{className:"breadcrumDiv",children:(0,U.jsxs)("span",{className:"shopNavigation",children:[(0,U.jsx)("a",{href:"/",children:"Tienda"})," /"," ",(0,U.jsx)("a",{href:ti,children:ni})," /"," ",null===ii||void 0===ii?void 0:ii.name]})}),(0,U.jsxs)("div",{className:"hidden-on-desktop",children:["true"===it&&(0,U.jsx)("div",{children:(0,U.jsx)(At.default,{bannerUrl:Qt})}),""!==(null===ii||void 0===ii?void 0:ii.manufacturer)&&(0,U.jsx)("h5",{className:"productoName--mobile--h5",children:"".concat(ii.manufacturer)}),(0,U.jsxs)("h1",{className:"productTitle",children:["true"===it&&(0,U.jsx)("b",{className:"PreventaText",children:"Preventa"}),it?" ".concat(null===ii||void 0===ii?void 0:ii.name):((null===ii||void 0===ii?void 0:ii.name)||"").toLowerCase()]})]}),(0,U.jsx)(ue,{redisign:!0,mobile:!0,children:pr}),(0,U.jsxs)("div",{className:"detalleProductoCont",children:[(0,U.jsx)("div",{className:"productoGaleria",children:(0,U.jsx)(V,{listImg:An,altImageBase:di||"",handleOpenLighbox:$n})}),(0,U.jsxs)("div",{className:"product-info__wrapper",children:[(0,U.jsx)("div",{className:"product-info-top-section__container",children:(0,U.jsxs)("div",{className:"productoName",children:[""!==ii.manufacturer&&(0,U.jsx)("h5",{className:"productoName--desktop--h5",children:"".concat(ii.manufacturer)}),(0,U.jsxs)("h1",{className:"productTitle",children:["true"===it&&(0,U.jsx)("b",{className:"PreventaText",children:"Preventa"}),"true"===it?" ".concat(null===ii||void 0===ii?void 0:ii.name):((null===ii||void 0===ii?void 0:ii.name)||"").toLowerCase()]})]})}),(0,U.jsx)(ue,{redisign:!0,children:pr}),(0,U.jsxs)("form",{action:"/cart",className:"productoInfo",children:[(0,U.jsx)("div",{className:"productoPrecioDetails",children:(0,U.jsxs)("div",{className:"productPrices productPricesFlex",children:["TERMINALES_LIBRES"===jn.flowName&&(0,U.jsxs)(U.Fragment,{children:[bi?(0,U.jsxs)("div",{className:"paymentBoxSmall",children:[(0,U.jsxs)("div",{className:"paymentBoxBanner",children:[(0,U.jsx)(Q._H,{id:"label.typeClientHomeOrPostPay"}),(0,U.jsx)("img",{src:"../../static/images/icons/iconoClaroPrecios.svg"})]}),(0,U.jsx)("div",{className:"paymentBoxPrice",children:(0,U.jsxs)("div",{className:"paymentDivPrice",children:[(0,U.jsx)("span",{className:"promoPrice",children:(0,I.T4)(Di)}),(0,U.jsx)("p",{className:"paymentBoxText",children:(0,U.jsx)(Q._H,{id:"label.paymentInInstallmentsWithYourInvoice"})})]})})]}):(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{className:"precio hide-on-mobile flex w-full",children:[(0,U.jsxs)("span",{className:"precioActual g-5",children:[(0,U.jsx)("p",{className:"priceNowFP",children:(0,I.T4)(Pi)}),(0,U.jsx)("p",{className:"priceNowSmall",children:"Precio Ahora"})]}),(0,U.jsx)("span",{className:"priceBeforeFP precioActual g-7 productDetail__text productDetail__before",children:gi&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("del",{className:"priceBeforeCrossed",children:(0,I.T4)(Ri,!1)}),(0,U.jsx)("p",{children:"Precio normal"})]})})]})}),(0,U.jsxs)("div",{className:"precio hidden-on-desktop",children:[(0,U.jsxs)("span",{className:"precioActual",children:[(0,U.jsx)("p",{className:"priceNowFP",children:(0,I.T4)(Pi)}),(0,U.jsx)("p",{className:"priceNowSmall",children:"Precio Ahora"})]}),(0,U.jsx)("span",{className:"priceBeforeFP precioActual productDetail__text productDetail__before",children:gi&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("del",{className:"priceBeforeCrossed",children:(0,I.T4)(Ri,!1)}),(0,U.jsx)("p",{children:"Precio normal"})]})})]})]}),"KIT_PREPAGO"===jn.flowName&&(0,U.jsxs)(U.Fragment,{children:[Ti?(0,U.jsxs)("div",{className:"paymentBoxSmall",children:[(0,U.jsxs)("div",{className:"paymentBoxBanner",children:[(0,U.jsx)(Q._H,{id:"label.typeClientHomeOrPostPay"}),(0,U.jsx)("img",{src:"../../static/images/icons/iconoClaroPrecios.svg"})]}),(0,U.jsx)("div",{className:"paymentBoxPrice",children:(0,U.jsxs)("div",{className:"paymentDivPrice",children:[(0,U.jsx)("span",{className:"promoPrice",children:(0,I.T4)(ai)}),(0,U.jsx)("p",{className:"paymentBoxText",children:(0,U.jsx)(Q._H,{id:"label.paymentInInstallmentsWithYourInvoice"})})]})})]}):(0,U.jsxs)(U.Fragment,{children:[" ",(0,U.jsxs)("div",{className:"precio hide-on-mobile flex w-full",children:[(0,U.jsxs)("span",{className:"precioActual g-5",children:[(0,U.jsx)("p",{className:"priceNowFP",children:(0,I.T4)(si)}),(0,U.jsx)("p",{className:"priceNowSmall",children:"Precio Ahora"})]}),(0,U.jsx)("span",{className:"priceBeforeFP precioActual g-7 productDetail__text productDetail__before",children:yi&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("del",{className:"priceBeforeCrossed",children:(0,I.T4)(Ri,!1)}),(0,U.jsx)("p",{children:"Precio normal"})]})})]})]}),(0,U.jsxs)("div",{className:"precio hidden-on-desktop",children:[(0,U.jsxs)("span",{className:"precioActual",children:[(0,U.jsx)("p",{className:"priceNowFP",children:(0,I.T4)(si)}),(0,U.jsx)("p",{className:"priceNowSmall",children:"Precio Ahora"})]}),(0,U.jsx)("span",{className:"priceBeforeFP precioActual productDetail__text productDetail__before",children:yi&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("del",{className:"priceBeforeCrossed",children:(0,I.T4)(oi,!1)}),(0,U.jsx)("p",{children:"Precio normal"})]})})]})]})]})}),"KIT_PREPAGO"===jn.flowName||"TERMINALES_LIBRES"===jn.flowName?(0,U.jsx)(Dt,{attrDescMap:vi}):null,(0,U.jsxs)("div",{className:"conatiner-change-flow",children:[(0,U.jsx)("h5",{className:"change-flow__title principla-title",children:"\xbfC\xf3mo lo quieres comprar?"}),(0,U.jsx)("div",{className:"contain-radios flex w-full",children:(0,U.jsxs)(U.Fragment,{children:[(null===Ht||void 0===Ht?void 0:Ht.terminales)&&(0,U.jsxs)("label",{className:"g-5 change-flow__card-radio cont-radio ".concat("TERMINALES_LIBRES"===jn.flowName&&"change-flow__card-radio--active"),children:[(0,U.jsx)("input",{type:"radio",value:"TERMINALES_LIBRES",onChange:Kn,checked:"TERMINALES_LIBRES"===jn.flowName}),(0,U.jsx)("h5",{className:"change-flow__title",children:"Solo el celular"}),(0,U.jsx)("span",{className:"checkmark"})]}),(null===Ht||void 0===Ht?void 0:Ht.kit_prepago)&&(0,U.jsxs)("label",{className:"g-7 change-flow__card-radio cont-radio ".concat("KIT_PREPAGO"===jn.flowName&&"change-flow__card-radio--active"),children:[(0,U.jsx)("input",{type:"radio",value:"KIT_PREPAGO",onChange:Kn,checked:"KIT_PREPAGO"===jn.flowName}),(0,U.jsxs)("h5",{className:"change-flow__title",children:["Con SIM Card",(0,U.jsx)("div",{children:"Kit prepago"})]}),(0,U.jsx)("span",{className:"checkmark"})]})]})}),"KIT_PREPAGO"===jn.flowName&&(0,U.jsx)(Ce,{attributes1:vi,attributes2:pi,detalle_kitprepago:ji})]}),(0,U.jsxs)("div",{className:"productoPrecioDetails",children:[(0,U.jsx)("div",{className:"productPrices productPricesFlex",children:(0,U.jsxs)("div",{className:"productoFeaturesMobile",children:[(0,U.jsx)(q.ZP,{product:ii,showLabel:!0,type:yt,attributes:Mi,selectedAttributes:ui[Un],selectAttribute:Hn,toggleModalSizes:Wn,changeAttributeSelector:Yn,intl:g,handleDefaultColor:Ie}),(0,U.jsxs)("div",{className:"selectQuantityRow",children:[(0,U.jsxs)("div",{className:"selectQuantityText",children:[(0,U.jsx)(Q._H,{id:"label.quantity"}),":"]}),(0,U.jsx)("div",{className:"selectQuantity",children:(0,U.jsx)("div",{className:"prodCantidad",children:(0,U.jsx)("div",{className:"selectQuantitySelector",children:(0,U.jsx)(ee.Z,{currentQuantity:parseInt(Ai),minValue:1,maxValue:gt,onChange:Jn})})})})]})]})}),(0,U.jsxs)("div",{className:"productoFeatures",children:[(0,U.jsx)("div",{className:"g-5",children:(0,U.jsx)(q.ZP,{product:ii,showLabel:!0,type:yt,attributes:Mi,selectedAttributes:ui[Un],selectAttribute:Hn,toggleModalSizes:Wn,changeAttributeSelector:Yn,intl:g,handleDefaultColor:Ie})}),(0,U.jsx)("div",{className:"g-7",children:(0,U.jsxs)("div",{className:"selectQuantityRow",children:[(0,U.jsxs)("div",{className:"selectQuantityText",children:[(0,U.jsx)(Q._H,{id:"label.quantity"}),":"]}),(0,U.jsx)("div",{className:"selectQuantity",children:(0,U.jsx)("div",{className:"prodCantidad",children:(0,U.jsx)("div",{className:"selectQuantitySelector",children:(0,U.jsx)(ee.Z,{currentQuantity:parseInt(Ai),minValue:1,maxValue:gt,onChange:Jn})})})})]})})]})]}),(0,U.jsx)("div",{className:"productoExtras",children:(0,U.jsx)("div",{className:"sell-wrapper",style:{marginTop:"10px"},children:(0,U.jsx)("strong",{children:(0,U.jsxs)("span",{className:"sellForMKP productDetail",children:[(0,U.jsx)(Q._H,{id:"label.sellLabel"})," ",(0,U.jsx)("img",{className:"logo-claro-intext",src:"/static/images/img/logos/logo-claro.png"})]})})})}),null!==li&&li.filter((function(e){return e.catEntry.includes(Vn)})).map((function(e){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"ctaWrap hide-on-mobile",children:(0,U.jsxs)("div",{className:"cta",children:[(0,U.jsx)("div",{className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))}),(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled rounded":"btn-rojo",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})]})}),(0,U.jsx)("div",{className:"stickyBuyDiv",children:(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled stickyBuy rounded":"btn-rojo stickyBuy",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})})]})})),"KIT_PREPAGO"===jn.flowName&&(0,U.jsx)($,{priceForAddi:wi,minAmount:dn.minAmount}),"TERMINALES_LIBRES"===jn.flowName&&(0,U.jsx)($,{priceForAddi:Li,minAmount:dn.minAmount}),null!==li&&li.filter((function(e){return e.catEntry.includes(Vn)})).map((function(e){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"ctaWrap hidden-on-desktop",children:(0,U.jsxs)("div",{className:"cta",children:[(0,U.jsx)("div",{className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))}),(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled rounded":"btn-rojo",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})]})}),(0,U.jsx)("div",{className:"stickyBuyDiv",children:(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled stickyBuy rounded":"btn-rojo stickyBuy",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})})]})}))]}),Ar?(0,U.jsx)(Ee,{attributes1:vi,attributes2:pi}):null,(0,U.jsx)("div",{style:{clear:"both"}})]})]})]})}),"KIT_PREPAGO"===jn.flowName&&(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("section",{id:"detalles",className:"detalleProductoTabs container",children:[(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==hi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(1===_i?"active":""),onClick:function(){cn(1===_i?function(e){return Tt(Tt({},e),{},{longDescriptionPageView2:-1})}:function(e){return Tt(Tt({},e),{},{longDescriptionPageView2:1})})},onKeyDown:function(){},tabIndex:1,role:"button",children:(0,U.jsx)(Q._H,{id:"label.infoAdd"})}),(0,U.jsx)("dd",{className:"".concat(1===_i?"active":""),style:{display:1===_i?"block":"none"},children:(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsxs)("div",{className:"container",children:[(0,U.jsxs)("div",{className:"productoBoxDescripText",children:[(0,U.jsx)("h3",{children:ii.name}),(0,U.jsx)("div",{dangerouslySetInnerHTML:{__html:hi}})]}),(0,U.jsx)("div",{className:"productoBoxDescripImg",children:Gi&&(0,U.jsx)("img",{src:"".concat(Gi),alt:"".concat(ii.manufacturer," ").concat(ii.name," ").concat(Vi)})})]})})})]})}),(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==hi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"notIcon",children:(0,U.jsx)(Q._H,{id:"label.dataSheet"})}),(0,U.jsx)("dd",{className:"active",style:{display:"block"},children:(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsx)(Te,{attributes1:vi,attributes2:pi,attributesMap:ci,attID:null===ii||void 0===ii?void 0:ii.attributeID})})})]})}),(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==Bi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(0===mi?"active":""),onClick:function(){Xn(0===mi?-1:0)},onKeyDown:function(){},tabIndex:0,role:"button",children:Ui}),(0,U.jsx)("dd",{className:"".concat(0===mi?"active":""),style:{display:0===mi?"block":"none"},children:(0,U.jsx)("p",{className:"accCont",children:Bi})})]})})]})}),"TERMINALES_LIBRES"===jn.flowName&&(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("section",{id:"detalles",className:"detalleProductoTabs container",children:[(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==hi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(1===_i?"active":""),onClick:function(){cn(1===_i?function(e){return Tt(Tt({},e),{},{longDescriptionPageView2:-1})}:function(e){return Tt(Tt({},e),{},{longDescriptionPageView2:1})})},onKeyDown:function(){},tabIndex:1,role:"button",children:(0,U.jsx)(Q._H,{id:"label.infoAdd"})}),(0,U.jsx)("dd",{className:"".concat(1===_i?"active":""),style:{display:1===_i?"block":"none"},children:(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsxs)("div",{className:"container",children:[(0,U.jsxs)("div",{className:"productoBoxDescripText",children:[(0,U.jsx)("h3",{children:ii.name}),(0,U.jsx)("div",{dangerouslySetInnerHTML:{__html:hi}})]}),(0,U.jsx)("div",{className:"productoBoxDescripImg",children:Gi&&(0,U.jsx)("img",{src:"".concat(Gi),alt:"".concat(ii.manufacturer," ").concat(ii.name," ").concat(Vi)})})]})})})]})}),(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==hi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"notIcon",children:(0,U.jsx)(Q._H,{id:"label.dataSheet"})}),(0,U.jsx)("dd",{className:"active",style:{display:"block"},children:(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsx)(Te,{attributes1:vi,attributes2:pi,attributesMap:ci,attID:null===ii||void 0===ii?void 0:ii.attributeID})})})]})}),(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==Bi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(0===xi?"active":""),onClick:function(){zn(0===xi?-1:0)},onKeyDown:function(){},tabIndex:0,role:"button",children:Ui}),(0,U.jsx)("dd",{className:"".concat(0===xi?"active":""),style:{display:0===xi?"block":"none"},children:(0,U.jsx)("p",{className:"accCont",children:Bi})})]})})]})})]}),"TECNOLOGIA"===jn.flowName&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("section",{className:"detalleProducto",children:(0,U.jsxs)("div",{className:"container containerdetalleProducto",children:[(0,U.jsx)("div",{className:"breadcrumDiv",children:(0,U.jsxs)("span",{className:"shopNavigation",children:[(0,U.jsx)("a",{href:"/",children:"Tienda"})," /"," ",(0,U.jsx)("a",{href:ti,children:ni})," /"," ",ii.name]})}),(0,U.jsxs)("div",{className:"hidden-on-desktop",children:[""!==ii.manufacturer&&(0,U.jsx)("h5",{className:"productoName--mobile--h5",children:"".concat(ii.manufacturer)}),(0,U.jsx)("div",{className:"productoName--mobile",children:(0,U.jsx)("h1",{className:"productTitle",children:ii.name})})]}),(0,U.jsx)(ue,{redisign:!0,mobile:!0,children:pr}),void 0===hn&&(0,U.jsxs)("div",{className:"detalleProductoCont",children:[(0,U.jsx)("div",{className:"productoGaleria",children:(0,U.jsx)(V,{listImg:An,altImageBase:di||"",handleOpenLighbox:$n})}),(0,U.jsxs)("div",{className:"product-info__wrapper",children:[(0,U.jsx)("div",{className:"product-info-top-section__container",children:(0,U.jsxs)("div",{className:"productoName",children:[""!==ii.manufacturer&&(0,U.jsx)("h5",{className:"productoName--desktop--h5",children:"".concat(ii.manufacturer)}),(0,U.jsx)("h1",{className:"productTitle",children:ii.name?ii.name:""})]})}),(0,U.jsx)(ue,{redisign:!0,children:pr}),(0,U.jsxs)("form",{action:"/cart",className:"productoInfo",children:[(0,U.jsxs)("div",{className:"productoPrecioDetails",children:[(0,U.jsxs)("div",{className:"productPrices productPricesFlex",children:[bi?(0,U.jsxs)("div",{className:"paymentBoxSmall",children:[(0,U.jsxs)("div",{className:"paymentBoxBanner",children:[(0,U.jsx)(Q._H,{id:"label.typeClientHomeOrPostPay"}),(0,U.jsx)("img",{src:"../../static/images/icons/iconoClaroPrecios.svg"})]}),(0,U.jsx)("div",{className:"paymentBoxPrice",children:(0,U.jsxs)("div",{className:"paymentDivPrice",children:[(0,U.jsx)("span",{className:"promoPrice",children:(0,I.T4)(Di)}),(0,U.jsx)("p",{className:"paymentBoxText",children:(0,U.jsx)(Q._H,{id:"label.paymentInInstallmentsWithYourInvoice"})})]})})]}):(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{className:"precio hide-on-mobile flex w-full",style:{paddingBottom:"24px"},children:[(0,U.jsxs)("span",{className:"precioActual g-5",children:[(0,U.jsx)("p",{className:"priceNowFP",children:(0,I.T4)(Pi)}),(0,U.jsx)("p",{className:"priceNowSmall",children:"Precio Ahora"})]}),(0,U.jsx)("span",{className:"priceBeforeFP precioActual g-7 productDetail__text productDetail__before",children:gi&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("del",{className:"priceBeforeCrossed",children:(0,I.T4)(Ri,!1)}),(0,U.jsx)("p",{children:"Precio normal"})]})})]})}),(0,U.jsxs)("div",{className:"precio hidden-on-desktop ",style:{paddingBottom:"24px"},children:[(0,U.jsxs)("span",{className:"precioActual",children:[(0,U.jsx)("p",{className:"priceNowFP",children:(0,I.T4)(Pi)}),(0,U.jsx)("p",{className:"priceNowSmall",children:"Precio Ahora"})]}),(0,U.jsx)("span",{className:"priceBeforeFP precioActual productDetail__text productDetail__before",children:gi&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("del",{className:"priceBeforeCrossed",children:(0,I.T4)(Ri,!1)}),(0,U.jsx)("p",{children:"Precio normal"})]})})]}),(0,U.jsxs)("div",{className:"productoFeaturesMobile",children:[(0,U.jsx)(q.ZP,{product:ii,showLabel:!0,type:yt,attributes:Mi,selectedAttributes:ui[Un],selectAttribute:Hn,toggleModalSizes:Wn,changeAttributeSelector:Yn,intl:g,handleDefaultColor:Ie}),(0,U.jsxs)("div",{className:"selectQuantityRow",children:[(0,U.jsxs)("div",{className:"selectQuantityText",children:[(0,U.jsx)(Q._H,{id:"label.quantity"}),":"]}),(0,U.jsx)("div",{className:"selectQuantity",children:(0,U.jsx)("div",{className:"prodCantidad",children:(0,U.jsx)("div",{className:"selectQuantitySelector",children:(0,U.jsx)(ee.Z,{currentQuantity:parseInt(Ai),minValue:1,maxValue:gt,onChange:Jn})})})})]})]})]}),(0,U.jsxs)("div",{className:"productoFeatures",children:[(0,U.jsx)("div",{className:"g-5",children:(0,U.jsx)(q.ZP,{product:ii,showLabel:!0,type:yt,attributes:Mi,selectedAttributes:ui[Un],selectAttribute:Hn,toggleModalSizes:Wn,changeAttributeSelector:Yn,intl:g,handleDefaultColor:Ie})}),(0,U.jsx)("div",{className:"g-7",children:(0,U.jsxs)("div",{className:"selectQuantityRow",children:[(0,U.jsxs)("div",{className:"selectQuantityText",children:[(0,U.jsx)(Q._H,{id:"label.quantity"}),":"]}),(0,U.jsx)("div",{className:"selectQuantity",children:(0,U.jsx)("div",{className:"prodCantidad",children:(0,U.jsx)("div",{className:"selectQuantitySelector",children:(0,U.jsx)(ee.Z,{currentQuantity:parseInt(Ai),minValue:1,maxValue:gt,onChange:Jn})})})})]})})]})]}),(0,U.jsx)("div",{className:"productoExtras",children:(0,U.jsx)("div",{className:"sell-wrapper",style:{marginTop:"10px"},children:(0,U.jsx)("strong",{children:(0,U.jsxs)("span",{className:"sellForMKP productDetail",children:[(0,U.jsx)(Q._H,{id:"label.sellLabel"})," ",(0,U.jsx)("img",{className:"logo-claro-intext",src:"/static/images/img/logos/logo-claro.png"})]})})})}),null!==li&&li.filter((function(e){return e.catEntry.includes(Vn)})).map((function(e){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"ctaWrap hide-on-mobile",children:(0,U.jsxs)("div",{className:"cta",children:[(0,U.jsx)("div",{className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))}),(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled rounded":"btn-rojo",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})]})}),(0,U.jsx)("div",{className:"stickyBuyDiv",children:(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled stickyBuy rounded":"btn-rojo stickyBuy",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})})]})})),(0,U.jsx)($,{priceForAddi:Li,minAmount:dn.minAmount}),null!==li&&li.filter((function(e){return e.catEntry.includes(Vn)})).map((function(e){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"ctaWrap hidden-on-desktop",children:(0,U.jsxs)("div",{className:"cta",children:[(0,U.jsx)("div",{className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))}),(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled rounded":"btn-rojo",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})]})}),(0,U.jsx)("div",{className:"stickyBuyDiv",children:(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled stickyBuy rounded":"btn-rojo stickyBuy",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})})]})}))]}),(0,U.jsx)("div",{style:{clear:"both"}})]})]}),hn&&"12"===hn&&(0,U.jsxs)("div",{className:"detalleProductoCont",children:[(0,U.jsxs)("div",{className:"productoGaleria",style:{position:"relative",top:"0",left:"0"},children:[vr(null===ii||void 0===ii?void 0:ii.attributes)&&(0,U.jsx)("img",{src:vr(null===ii||void 0===ii?void 0:ii.attributes),className:"logoMKPFP"}),(0,U.jsx)(V,{listImg:An,altImageBase:di||"",handleOpenLighbox:$n})]}),(0,U.jsxs)("div",{className:"product-info__wrapper",children:[(0,U.jsx)("div",{className:"product-info-top-section__container",children:(0,U.jsxs)("div",{className:"productoName",children:[""!==ii.manufacturer&&(0,U.jsx)("h5",{className:"productoName--2--h5",children:"".concat(ii.manufacturer)}),(0,U.jsx)("h1",{className:"productTitle",children:ii.name?ii.name:""})]})}),(0,U.jsx)(ue,{redisign:!0,children:pr}),"12"===hn&&(0,U.jsx)(qe,{partNumber:qn}),(0,U.jsxs)("form",{action:"/cart",className:"productoInfo",children:[(0,U.jsxs)("div",{className:"productoPrecioDetails",children:[(0,U.jsxs)("div",{className:"productPrices productPricesFlex",children:[(0,U.jsxs)("div",{className:"precio flex w-full flew-col",children:[(0,U.jsxs)("span",{className:"precioActual g-5",children:[(0,U.jsx)("p",{className:"priceNowFP",children:(0,I.T4)(Pi)}),(0,U.jsx)("p",{className:"priceNowSmall",children:"Precio Ahora"})]}),(0,U.jsx)("span",{className:"priceBeforeFP precioActual g-7 productDetail__text productDetail__before",children:gi&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("del",{className:"priceBeforeCrossed",children:(0,I.T4)(Ri,!1)}),(0,U.jsx)("p",{children:"Precio normal"})]})})]}),(0,U.jsxs)("div",{className:"productoFeaturesMobile",children:[(0,U.jsx)(q.ZP,{product:ii,showLabel:!0,type:yt,attributes:Mi,selectedAttributes:ui[Un],selectAttribute:Hn,toggleModalSizes:Wn,changeAttributeSelector:Yn,intl:g,handleDefaultColor:Ie}),(0,U.jsxs)("div",{className:"selectQuantityRow",children:[(0,U.jsxs)("div",{className:"selectQuantityText",children:[(0,U.jsx)(Q._H,{id:"label.quantity"}),":"]}),(0,U.jsx)("div",{className:"selectQuantity",children:(0,U.jsx)("div",{className:"prodCantidad",children:(0,U.jsx)("div",{className:"selectQuantitySelector",children:(0,U.jsx)(ee.Z,{currentQuantity:parseInt(Ai),minValue:1,maxValue:gt,onChange:Jn})})})})]})]})]}),(0,U.jsxs)("div",{className:"productoFeatures flex w-full hide-on-mobile",children:[(0,U.jsx)("div",{className:"g-5",children:(0,U.jsx)(q.ZP,{product:ii,showLabel:!0,type:yt,attributes:Mi,selectedAttributes:ui[Un],selectAttribute:Hn,toggleModalSizes:Wn,changeAttributeSelector:Yn,intl:g,handleDefaultColor:Ie})}),(0,U.jsx)("div",{className:"g-7",children:(0,U.jsxs)("div",{className:"selectQuantityRow",children:[(0,U.jsxs)("div",{className:"selectQuantityText",children:[(0,U.jsx)(Q._H,{id:"label.quantity"}),":"]}),(0,U.jsx)("div",{className:"selectQuantity",children:(0,U.jsx)("div",{className:"prodCantidad",children:(0,U.jsx)("div",{className:"selectQuantitySelector",children:(0,U.jsx)(ee.Z,{currentQuantity:parseInt(Ai),minValue:1,maxValue:gt,onChange:Jn})})})})]})})]})]}),(0,U.jsx)("div",{className:"productoExtras",style:{marginTop:"10px"},children:(0,U.jsx)("div",{className:"sell-wrapper tecandclaroshop",children:(0,U.jsxs)("p",{className:"sell-label",children:[(0,U.jsx)(Q._H,{id:"label.sellLabel"})," ",function(e){var t,n,i,r=null===(t=e||[])||void 0===t?void 0:t.find((function(e){return"filtro_tienda"===(null===e||void 0===e?void 0:e.identifier)}));return(null===r||void 0===r||null===(n=r.values)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.value)||""}(null===ii||void 0===ii?void 0:ii.attributes)]})})}),null!==li&&li.filter((function(e){return e.catEntry.includes(Vn)})).map((function(e){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"ctaWrap",children:(0,U.jsxs)("div",{className:"cta",children:[(0,U.jsx)("div",{className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))}),(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled rounded":"btn-rojo",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})]})}),(0,U.jsx)("div",{className:"stickyBuyDiv",children:(0,U.jsx)("a",{onClick:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?function(){}:Ln,className:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?"btn-gris disabled stickyBuy rounded":"btn-rojo stickyBuy",onKeyDown:function(){},tabIndex:0,role:"button",children:parseInt(e.catEntryQuantity)<=parseInt(Sn(T.t.UNIDADES_NO_DISPONIBLES))?(0,U.jsx)(Q._H,{id:"button.unavailable"}):(0,U.jsx)(Q._H,{id:"button.addToCart2"})})})]})})),(0,U.jsx)($,{priceForAddi:Li,minAmount:dn.minAmount})]}),(0,U.jsx)("div",{style:{clear:"both"}})]})]}),Ar?(0,U.jsx)(Ee,{attributes1:vi,attributes2:pi}):null]})}),"TECNOLOGIA"===jn.flowName&&"12"!==hn&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("section",{id:"detalles",className:"detalleProductoTabs container",children:[(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==hi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(1===_i?"active":""),onClick:function(){cn(1===_i?function(e){return Tt(Tt({},e),{},{longDescriptionPageView2:-1})}:function(e){return Tt(Tt({},e),{},{longDescriptionPageView2:1})})},onKeyDown:function(){},tabIndex:1,role:"button",children:(0,U.jsx)(Q._H,{id:"label.infoAdd"})}),(0,U.jsx)("dd",{className:"".concat(1===_i?"active":""),style:{display:1===_i?"block":"none"},children:(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsxs)("div",{className:"container",children:[(0,U.jsxs)("div",{className:"productoBoxDescripText",children:[(0,U.jsx)("h3",{children:ii.name}),(0,U.jsx)("div",{dangerouslySetInnerHTML:{__html:hi}})]}),(0,U.jsx)("div",{className:"productoBoxDescripImg",children:Gi&&(0,U.jsx)("img",{src:"".concat(Gi),alt:"".concat(ii.manufacturer," ").concat(ii.name," ").concat(Vi)})})]})})})]})}),(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==hi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"notIcon",children:(0,U.jsx)(Q._H,{id:"label.dataSheet"})}),(0,U.jsx)("dd",{className:"active",style:{display:"block"},children:(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsx)(ut,{attributes1:vi,attributes2:pi})})})]})})]}),(0,U.jsx)("div",{className:"container",children:(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==Bi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(0===mi?"active":""),onClick:function(){Xn(0===mi?-1:0)},onKeyDown:function(){},tabIndex:0,role:"button",children:Ui}),(0,U.jsx)("dd",{className:"".concat(0===mi?"active":""),style:{display:0===mi?"block":"none"},children:(0,U.jsx)("p",{className:"accCont",children:Bi})})]})})})]}),"12"===hn&&(0,U.jsxs)(U.Fragment,{children:[ir&&(0,U.jsx)("section",{className:"detalleProdPrincipales",children:(0,U.jsxs)("div",{className:"container",children:[(0,U.jsx)("h3",{children:(0,U.jsx)(Q._H,{id:"label.mainFeatures"})}),(0,U.jsxs)("ul",{children:[(0,U.jsxs)("li",{children:[(0,U.jsx)("img",{src:ir,alt:""}),(0,U.jsx)("span",{children:nr})]}),(0,U.jsxs)("li",{children:[(0,U.jsx)("img",{src:ar,alt:""}),(0,U.jsx)("span",{children:rr})]}),(0,U.jsxs)("li",{children:[(0,U.jsx)("img",{src:sr,alt:""}),(0,U.jsx)("span",{children:or})]}),(0,U.jsxs)("li",{children:[(0,U.jsx)("img",{src:dr,alt:""}),(0,U.jsx)("span",{children:lr})]})]})]})}),(0,U.jsx)("div",{className:"detalleProductoTabsContent",children:(0,U.jsxs)("ul",{className:"viewDescrip",children:[(0,U.jsxs)("li",{className:"".concat(0===Ni?"show":""),children:[Vi&&(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsxs)("div",{className:"container",children:[(0,U.jsxs)("div",{className:"productoBoxDescripText",children:[(0,U.jsx)("h3",{children:Vi}),(0,U.jsx)("p",{children:Fi})]}),(0,U.jsx)("div",{className:"productoBoxDescripImg",children:(0,U.jsx)("img",{src:"".concat(Gi),alt:"".concat(ii.manufacturer," ").concat(ii.name," ").concat(Vi)})})]})}),Zi&&(0,U.jsx)("div",{className:"productoBoxDescrip imgLeft",children:(0,U.jsxs)("div",{className:"container",children:[(0,U.jsxs)("div",{className:"productoBoxDescripText",children:[(0,U.jsx)("h3",{children:Zi}),(0,U.jsx)("p",{children:qi})]}),(0,U.jsx)("div",{className:"productoBoxDescripImg",children:(0,U.jsx)("img",{src:"".concat(Qi),alt:"".concat(ii.manufacturer," ").concat(ii.name," ").concat(Zi)})})]})}),Xi&&(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsxs)("div",{className:"container",children:[(0,U.jsxs)("div",{className:"productoBoxDescripText",children:[(0,U.jsx)("h3",{children:Xi}),(0,U.jsx)("p",{children:Ki})]}),(0,U.jsx)("div",{className:"productoBoxDescripImg",children:(0,U.jsx)("img",{src:"".concat(Hi),alt:"".concat(ii.manufacturer," ").concat(ii.name," ").concat(Xi)})})]})}),Wi&&(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsxs)("div",{className:"container no-padding bottom",children:[(0,U.jsx)("div",{className:"productDetail__recommendation",children:(0,U.jsx)("h3",{className:"productDetail__recommendation--tittle",children:(0,U.jsx)(Q._H,{id:"label.featuredFeatures"})})}),(0,U.jsxs)("div",{className:"productDetail__recommendation--content",children:[(0,U.jsxs)("div",{className:"content-box",children:[Ji&&(0,U.jsx)("h4",{children:Ji}),zi&&(0,U.jsx)("span",{children:zi})]}),(0,U.jsxs)("div",{className:"content-box",children:[$i&&(0,U.jsx)("h4",{children:$i}),Yi&&(0,U.jsx)("span",{children:Yi})]}),(0,U.jsxs)("div",{className:"content-box",children:[tr&&(0,U.jsx)("h4",{children:tr}),er&&(0,U.jsx)("span",{children:er})]})]})]})})]}),(0,U.jsx)("li",{className:"".concat(1===Ni?"show":""),children:ur?(0,U.jsx)("div",{className:"mod__fichaTecnica",children:(0,U.jsx)(be,{attributes1:vi,attributes2:pi})}):null})]})})]}),"12"===hn&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"container",style:{marginTop:"20px"},children:(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==hi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(1===mi?"active":""),onClick:function(){Xn(1===mi?-1:1)},onKeyDown:function(){},tabIndex:1,role:"button",children:"Descripci\xf3n del Producto"}),(0,U.jsxs)("dd",{className:"".concat(1===mi?"active":""),style:{display:1===mi?"block":"none"},children:[(0,U.jsx)("p",{className:"accCont",style:{fontSize:"1.25rem",paddingBottom:"5px"},children:ii.name}),void 0!==Ii&&(0,U.jsx)("p",{className:"accCont",dangerouslySetInnerHTML:{__html:Ii}}),(0,U.jsx)("p",{className:"accCont",dangerouslySetInnerHTML:{__html:hi}})]})]})})}),Object.keys(vi).length>0&&(0,U.jsx)("div",{className:"container",children:(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==hi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"notIcon",children:(0,U.jsx)(Q._H,{id:"label.dataSheet"})}),(0,U.jsx)("dd",{className:"active",style:{display:"block"},children:(0,U.jsx)("div",{className:"productoBoxDescrip",children:(0,U.jsx)(De,{attributes1:vi,attributes2:pi,attributesMap:ci,attID:null===ii||void 0===ii?void 0:ii.attributeID})})})]})})}),(0,U.jsx)("div",{className:"container",children:(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==Bi&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(0===mi?"active":""),onClick:function(){Xn(0===mi?-1:0)},onKeyDown:function(){},tabIndex:0,role:"button",children:Ui}),(0,U.jsx)("dd",{className:"".concat(0===mi?"active":""),style:{display:0===mi?"block":"none"},children:(0,U.jsx)("p",{className:"accCont",children:Bi})})]})})})]}),"12"===hn&&"1"===je&&(0,U.jsx)(dt,{product:Ue,client:Tt(Tt({},de),{},{userId:null===Ae||void 0===Ae?void 0:Ae.userId})}),"12"===hn&&(0,U.jsx)(He,{partNumber:qn})]}),gn,(0,U.jsx)("div",{className:"container",children:(0,U.jsx)("div",{className:"mod__Accordeon",children:void 0!==Vt&&"true"===it&&(0,U.jsxs)("dl",{className:"showAccordeon",children:[(0,U.jsx)("dt",{className:"".concat(0===mi?"active":""),onClick:function(){Xn(0===mi?-1:0)},onKeyDown:function(){},tabIndex:0,role:"button",children:"T\xe9rminos y condiciones"}),(0,U.jsx)("dd",{className:"".concat(0===mi?"active":""),style:{display:0===mi?"block":"none"},children:(0,U.jsx)("p",{className:"accCont",children:Vt})})]})})}),(null===dn||void 0===dn||null===(O=dn.recommendedProducts1)||void 0===O?void 0:O.length)>0&&(0,U.jsx)(j.Z,{products:null===dn||void 0===dn?void 0:dn.recommendedProducts1,selectAttributeCard:P,titleSlider:null===dn||void 0===dn?void 0:dn.recommendedProducts1Name,type:"recommended"}),(null===dn||void 0===dn||null===(S=dn.recommendedProducts2)||void 0===S?void 0:S.length)>0&&(0,U.jsx)(j.Z,{products:null===dn||void 0===dn?void 0:dn.recommendedProducts2,selectAttributeCard:P,titleSlider:null===dn||void 0===dn?void 0:dn.recommendedProducts2Name,type:"recommended"})]})}),Ze.show&&(0,U.jsx)(k.Z,{mainSrc:Ci[Ze.index],nextSrc:Ci[(Ze.index+1)%Ci.length],prevSrc:Ci[(Ze.index+Ci.length-1)%Ci.length],onCloseRequest:function(){return Ke((function(e){return Tt(Tt({},e),{},{show:!1})}))},onMovePrevRequest:function(){return Ke((function(e){return Tt(Tt({},e),{},{index:(e.index+Ci.length-1)%Ci.length})}))},onMoveNextRequest:function(){return Ke((function(e){return Tt(Tt({},e),{},{index:(e.index+1)%Ci.length})}))}}),(0,U.jsx)(he,{openModal:Wt,closeModal:function(){return Jt(!1)},callback:Zn}),W?(0,U.jsx)(Nt.Z,{open:re,setOpen:ae,error:W,popupMppData:kt,errorRetries:te,setErrorRetries:ne}):null,(0,U.jsx)(_.Z,{open:$t,onClose:function(){return en(!1)},center:!0,showCloseIcon:!0,children:(0,U.jsxs)("div",{className:"modalCliente",children:[(0,U.jsxs)("div",{children:[(0,U.jsx)("svg",{viewBox:"0 0 38 38",style:{width:"38px",height:"38px",marginBottom:"10px"},children:(0,U.jsx)("use",{xlinkHref:"/static/images/icons.svg#ico_InformacionEnLinea"})}),(0,U.jsx)("h3",{style:{marginBottom:"10px",fontSize:"18px",fontWeight:"600"},children:"Tenemos una novedad"}),(0,U.jsx)("ol",{children:(0,U.jsxs)("p",{style:{fontSize:"14px"},children:["Tienes productos en tu carrito de compras, finaliza tu compra",(0,U.jsx)("br",{})," \xf3",(0,U.jsxs)("strong",{style:{fontWeight:"600"},children:[" ","continua con tu cambio de plan"]})," ","y se borraran autom\xe1ticamente",(0,U.jsx)("br",{})," los productos del carrito"]})})]}),(0,U.jsxs)("div",{className:"cont-btns",children:[(0,U.jsx)("a",{className:"btn-azul",onClick:function(){return cn((function(e){return Tt(Tt({},e),{},{isLoading:!0})})),void oe.push("/cart")},children:"Revisar el carrito >"}),(0,U.jsx)("a",{className:"btn-rojo",onClick:function(){return function(e){return ei.apply(this,arguments)}(nn)},children:"Pasarme a postpago >"})]})]})})]})}Mt.getInitialProps=function(){var e=(0,o.Z)(l().mark((function e(t){var n,i,r,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.query,i={error:!1},e.prev=2,e.next=5,(0,O.w1)(n.urlCategory);case 5:a=e.sent,i=Tt(Tt({},i),{},{seo:(null===a||void 0===a||null===(r=a.contents)||void 0===r?void 0:r[0])||null}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),i={error:!0,msg:e.t0};case 12:return e.abrupt("return",{dataServer:i});case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}();var Lt=(0,v.qC)(b.Z,S.Z,Et.Z,C.Z,R.b,P.V,g.Z),wt=(0,v.qC)(Lt,(0,p.$j)(null,(function(e){return(0,v.DE)({saveCartProductAnalyticsAction2:Ot.QY},e)})))(Mt)},85646:function(e,t,n){"use strict";n.r(t);var i=n(59499),r=n(4730),a=n(67294),o=n(11163),s=n.n(o),l=n(8943),d=n(68045),c=n(60378),u=(n(80767),n(14416)),A=n(98421),v=n(85893),p=["enabled","title"];function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(e){for(var t=1;t0&&(null===(t=Object.keys(y))||void 0===t?void 0:t.length)>0&&(null===(n=Object.keys(M))||void 0===n?void 0:n.length)>0&&w.length>0&&o&&o.business_unit2&&o.flowName&&C){var a=i.enabled,s=void 0!==a&&a,d=i.title,c=void 0===d?"banner presales":d,u=(0,r.Z)(i,p);if(!s||!C)return;var A=[_({},u)].map((function(e){var t,n;return(null===e||void 0===e||null===(t=e.link)||void 0===t||null===(n=t.split("/detalle-producto/"))||void 0===n?void 0:n[1])||""}));(0,l.ah)(A,o,c,"banner preventa fijo",y,M,L,w)}}),[i,y,M,w,o,null===o||void 0===o?void 0:o.business_unit2,null===o||void 0===o?void 0:o.flowName,L,C]),(0,a.useEffect)((function(){if(g){var e=null===g||void 0===g?void 0:g.dataTimerTimer.fin,t=new Date,n=(new Date(e).getTime()-t.getTime())/1e3,i=n/86400;x(i<10&&i>=0?"0".concat(Math.trunc(i)):Math.trunc(i));var r=(n%=86400)/3600;E(r<10&&r>=0?"0".concat(Math.trunc(r)):Math.trunc(r));var a=(n%=3600)/60;j(a<10&&a>=0?"0".concat(Math.trunc(a)):Math.trunc(a))}}),[g,b]),(0,a.useEffect)((function(){R(!(m<=0&&I<=0&&O<=0))}),[m,I,O]),(0,a.useEffect)((function(){var e=setInterval((function(){T((function(e){return!e}))}),6e4);return function(){return clearInterval(e)}}),[]);var k=function(){return s().push(null===g||void 0===g?void 0:g.textButton.link)};return(0,v.jsx)(v.Fragment,{children:C&&(0,v.jsxs)("div",{className:"container-bannerPresales",children:[(0,v.jsxs)("div",{className:"container-bannerPresales-desktop",style:{backgroundImage:"url(".concat(null===g||void 0===g?void 0:g.backgroundImageDesktop,")")},children:[(0,v.jsx)("div",{className:"container-start-bannerPresales"}),(0,v.jsxs)("div",{className:"container-center-bannerPresales",children:[(0,v.jsx)("h1",{className:"titleCenter",style:{color:"".concat(null===g||void 0===g?void 0:g.title1.title.color1)},children:null===g||void 0===g?void 0:g.title1.title.text1}),(0,v.jsx)("h2",{className:"subtitleCenter",style:{color:"".concat(null===g||void 0===g?void 0:g.title1.subTitle.color2)},children:null===g||void 0===g?void 0:g.title1.subTitle.text2}),(null===g||void 0===g?void 0:g.button)&&(0,v.jsx)("button",{className:"button-bannerPresales",onClick:k,children:null===g||void 0===g?void 0:g.textButton.text})]}),(0,v.jsxs)("div",{className:"container-end-bannerPresales",children:[(0,v.jsx)("h1",{className:"title-right-bannerPresales",style:{color:"".concat(null===g||void 0===g?void 0:g.title2.title.color3)},children:null===g||void 0===g?void 0:g.title2.title.text3}),(0,v.jsx)("h2",{className:"subtitle-right-bannerPresales",style:{color:"".concat(null===g||void 0===g?void 0:g.title2.subTitle.color4)},children:null===g||void 0===g?void 0:g.title2.subTitle.text4}),(0,v.jsxs)("div",{className:"container-cont-bannerPresales",children:[(0,v.jsx)("div",{className:"container-number-bannerPresales",style:{color:"".concat(null===g||void 0===g?void 0:g.timerNumColor)},children:"".concat(m," : ").concat(I," : ").concat(O)}),(0,v.jsx)("div",{className:"container-text-bannerPresales",children:null===g||void 0===g||null===(t=g.timer)||void 0===t?void 0:t.map((function(e,t){return(0,v.jsx)("p",{style:{color:"".concat(null===e||void 0===e?void 0:e.color)},children:null===e||void 0===e?void 0:e.text},t)}))})]})]})]}),(0,v.jsxs)("div",{className:"container-bannerPresales-mobile",style:{backgroundImage:"url(".concat(null===g||void 0===g?void 0:g.backgroundImageMobile,")")},children:[(0,v.jsxs)("div",{className:"container-end-bannerPresales",children:[(0,v.jsx)("h1",{className:"title-right-bannerPresales",style:{color:"".concat(null===g||void 0===g?void 0:g.title2.title.color3)},children:null===g||void 0===g?void 0:g.title2.title.text3}),(0,v.jsx)("h2",{className:"subtitle-right-bannerPresales",style:{color:"".concat(null===g||void 0===g?void 0:g.title2.subTitle.color4)},children:null===g||void 0===g?void 0:g.title2.subTitle.text4}),(0,v.jsxs)("div",{className:"container-cont-bannerPresales",children:[(0,v.jsx)("div",{className:"container-number-bannerPresales",style:{color:"".concat(null===g||void 0===g?void 0:g.timerNumColor)},children:"".concat(m," : ").concat(I," : ").concat(O)}),(0,v.jsx)("div",{className:"container-text-bannerPresales",children:null===g||void 0===g||null===(n=g.timer)||void 0===n?void 0:n.map((function(e,t){return(0,v.jsx)("p",{style:{color:"".concat(null===e||void 0===e?void 0:e.color)},children:null===e||void 0===e?void 0:e.text},t)}))})]})]}),(0,v.jsxs)("div",{className:"container-center-bannerPresales",children:[(0,v.jsx)("h1",{className:"titleCenter",style:{color:"".concat(null===g||void 0===g?void 0:g.title1.title.color1)},children:null===g||void 0===g?void 0:g.title1.title.text1}),(0,v.jsx)("h2",{className:"subtitleCenter",style:{color:"".concat(null===g||void 0===g?void 0:g.title1.subTitle.color2)},children:null===g||void 0===g?void 0:g.title1.subTitle.text2})]}),(null===g||void 0===g?void 0:g.button)&&(0,v.jsx)("button",{onClick:k,className:"button-bannerPresales",children:null===g||void 0===g?void 0:g.textButton.text})]})]})})}},82074:function(e,t,n){"use strict";n.d(t,{d:function(){return s}});var i=n(50029),r=n(87794),a=n.n(r),o=n(48043),s=(n(6862),function(){var e=(0,i.Z)(a().mark((function e(t){var n,i,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"POST",url:"".concat(o.default.CENTRALES_RIESGO),headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)},e.prev=1,e.next=4,fetch(n.url,n);case 4:return i=e.sent,e.next=7,i.json();case 7:return r=e.sent,e.abrupt("return",r);case 11:e.prev=11,e.t0=e.catch(1),console.error("[guardaCentrales]",e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}())},83225:function(e,t,n){"use strict";n.d(t,{J:function(){return l},g:function(){return d}});var i=n(50029),r=n(87794),a=n.n(r),o=n(87066),s=n(48043),l=function(){var e=(0,i.Z)(a().mark((function e(t){var n,i,r,l,d,c,u,A;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.get("".concat(s.default.BANNER,"montoMinimoADDI"),{headers:{Authorization:"Bearer ".concat(t)}});case 2:return l=e.sent,d=l.data,c=(null===d||void 0===d||null===(n=d.MarketingSpotData[0])||void 0===n||null===(i=n.baseMarketingSpotActivityData[0])||void 0===i||null===(r=i.marketingContentDescription[0])||void 0===r?void 0:r.marketingText)||!1,u=JSON.parse(c||[]),A=u[0].montoMinimo,e.abrupt("return",A||5e4);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=(0,i.Z)(a().mark((function e(t){var n,i,r,l,d,c,u,A,v,p,N;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.get("".concat(s.default.BANNER,"montoMinimoMaximoCEROPAY"),{headers:{Authorization:"Bearer ".concat(t)}});case 2:return l=e.sent,d=l.data,c=(null===d||void 0===d||null===(n=d.MarketingSpotData[0])||void 0===n||null===(i=n.baseMarketingSpotActivityData[0])||void 0===i||null===(r=i.marketingContentDescription[0])||void 0===r?void 0:r.marketingText)||!1,u=JSON.parse(c||[]),A=u[0],v=A.montoMinimo,p=A.montoMaximo,N={min:+v||1e5,max:+p||2e6},e.abrupt("return",N);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},30939:function(e,t,n){"use strict";n.d(t,{K1:function(){return A},MD:function(){return u},ZC:function(){return d},kr:function(){return v},qf:function(){return c}});var i=n(50029),r=n(87794),a=n.n(r),o=n(63144),s=n.n(o),l=n(48043),d=function(){var e=(0,i.Z)(a().mark((function e(t){var n,i,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"GET",url:"".concat(l.default.GET_SELLER_EMAIL,"?ORGENTITYNAME=").concat(t)},e.next=3,s()(n.url,n);case 3:return i=e.sent,e.next=6,i.json();case 6:return r=e.sent,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=(0,i.Z)(a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={method:"GET",url:l.default.ACTIVE_RATE},e.next=3,s()(t.url,t);case 3:return n=e.sent,e.next=6,n.json();case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=(0,i.Z)(a().mark((function e(t){var n,i,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"GET",url:"".concat(l.default.TOTAL_RATE_PRODUCT,"?part_number=").concat(t)},e.next=3,s()(n.url,n);case 3:return i=e.sent,e.next=6,i.json();case 6:return r=e.sent,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=function(){var e=(0,i.Z)(a().mark((function e(t){var n,i,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"GET",url:"".concat(l.default.TOTAL_RATE_PRODUCT_APPROVED,"?part_number=").concat(t)},e.next=3,s()(n.url,n);case 3:return i=e.sent,e.next=6,i.json();case 6:return r=e.sent,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=(0,i.Z)(a().mark((function e(t,n,i){var r,o,d;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={method:"GET",url:"".concat(l.default.RATES_PRODUCT,"?part_number=").concat(t,"&initialLimit=").concat(n,"&finalLimit=").concat(i)},e.next=3,s()(r.url,r);case 3:return o=e.sent,e.next=6,o.json();case 6:return d=e.sent,e.abrupt("return",d);case 8:case"end":return e.stop()}}),e)})));return function(t,n,i){return e.apply(this,arguments)}}()},13943:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/productDetail",function(){return n(20634)}])}},function(e){e.O(0,[2175,1664,6063,2679,9219,6506,1224,63,5675,6066,2095,1233,5201,5758,5871,6240,8744,7763,9949,2620,2867,2710,9546,3026,8246,8867,8242,9890,55,6814,1328,9774,2888,179],(function(){return t=13943,e(e.s=t);var t}));var t=e.O();_N_E=t}]);