PageSourceSearch

https://www.claroshop.com/static/js/Page_Landings.5391d614e49b05d235a8.chunk.js

js claroshop.com collected 2026-10-03 21:05:43 UTC 4,029 bytes, 2 lines download raw bytes

1(this.webpackJsonpclaroshop_pwa=this.webpackJsonpclaroshop_pwa||[]).push([[116],{349:function(e,t,n){},566:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return h}));var a=n(3),c=n(0),r=n.n(c),l=(n(349),n(8)),o=n(1),s=n(2),u={method:"GET",mode:"cors",cache:"default"};var i=n(11),d=Object(l.a)((function(){return Promise.all([n.e(7),n.e(16)]).then(n.bind(null,341))})),m=Object(l.a)((function(){return Promise.all([n.e(0),n.e(27)]).then(n.bind(null,222))})),b=Object(l.a)((function(){return n.e(62).then(n.bind(null,205))})),p=Object(l.a)((function(){return n.e(8).then(n.bind(null,182))})),f=Object(l.a)((function(){return n.e(49).then(n.bind(null,187))})),E=Object(l.a)((function(){return n.e(46).then(n.bind(null,183))}));function h(e){Object(c.useEffect)((function(){window.ineum("page","Landings Page"),window.scrollTo(0,0),Object(o.e)("wishlistAfter"),Object(o.e)("productAfter"),Object(o.e)("typeButton")}),[]);var t=e.match.params,n=Object(c.useState)([]),l=Object(a.a)(n,2),h=l[0],g=l[1],j=Object(c.useState)(!0),O=Object(a.a)(j,2),v=O[0],N=O[1],w=Object(c.useState)(!1),S=Object(a.a)(w,2),k=S[0],P=S[1];Object(c.useEffect)((function(){(function(){var e,t,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=a.landingName;n=Number(c),console.log(),!0===isNaN(n)?(e="https://www.claroshop.com/l/",t="".concat(c,"?webapp=1")):!1===isNaN(n)&&(e="".concat(s.e,"/app/v1/landing/"),t="".concat(c));var r="".concat(e).concat(t);return fetch(r,u).then((function(e){return e.json()})).then((function(e){if(!0===isNaN(n))return{banner:e.banner,productos:e.productos};if(!1===isNaN(n)){var t=e.data;return{banner:t.banner,productos:t.productos}}})).catch((function(e){return console.log("error",e)}))})({landingName:t.landingName}).then((function(e){g(e),N(!1)}))}),[t.landingName]);var C=Object(c.useState)(!1),L=Object(a.a)(C,2),_=L[0],y=L[1],B=Object(c.useState)(),F=Object(a.a)(B,2),T=F[0],A=F[1],I=function(e){A(e)},J=Object(c.useState)(),x=Object(a.a)(J,2),z=x[0],D=x[1];return Object(c.useEffect)((function(){}),[z,T]),r.a.createElement(r.a.Fragment,null,v&&r.a.createElement(i.a,null,r.a.createElement(c.Suspense,{fallback:r.a.createElement("div",null)},r.a.createElement(b,null))),r.a.createElement(i.a,null,r.a.createElement(c.Suspense,{fallback:r.a.createElement("header",null,r.a.createElement("div",{className:"headerSup"}),r.a.createElement("div",{className:"headerInf"}))},r.a.createElement(f,{setUpCP:D,changeDirectionBar:I}))),r.a.createElement("section",{className:"barCpResponsive"},r.a.createElement(i.a,null,r.a.createElement(c.Suspense,{fallback:r.a.createElement("div",null)},r.a.createElement(p,{changeCP:I,clase:"barHeaderCP"})))),r.a.createElement("main",null,r.a.createElement("section",{className:"contentLandings"},r.a.createElement("div",{className:"container"},h.productos?r.a.createElement(i.a,null,r.a.createElement(c.Suspense,{fallback:r.a.createElement("div",null)},r.a.createElement(d,{results:h.productos.productosCategorias.length,disableFilters:1,isShowing:k,setIsShowing:P,seEnviaVista:function(e){y(e)}}))):null,h.banner&&0!==h.banner.length?r.a.createElement("div",{className:"contBannerLanding"},r.a.createElement("img",{loading:"lazy",src:h.banner.contenido,alt:h.banner.nombre,height:"400",width:"100%"})):null,h.productos?r.a.createElement(i.a,null,r.a.createElement("div",{className:"contProductsLanding"},h.productos.productosCategorias.map((function(e,t){var n=e.id_producto,a=e.nombre,l=e.precio,o=e.precio_lista,s=e.Foto,u=e.descuento,i=e.nombreTienda,d=e.brand,b=e.categories;return r.a.createElement(c.Suspense,{fallback:r.a.createElement("article",{className:"cardProduct"},r.a.createElement("a",null)),key:n},r.a.createElement(m,{id:n,nombre:a,precio:o,precioLista:l,foto:s,descuento:u,store:i,vista:_,brand:d,categories:b,index:t}))})))):null))),r.a.createElement(i.a,null,r.a.createElement(c.Suspense,{fallback:r.a.createElement("div",null)},r.a.createElement(E,null))))}}}]);
2//# sourceMappingURL=Page_Landings.5391d614e49b05d235a8.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.