PageSourceSearch

https://www.swarovski.com.ar/_next/static/chunks/623.a0e9b8cff57394e0.js

js swarovski.com.ar collected 2026-10-08 07:25:32 UTC 6,068 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[623],{64080:function(e,r,n){"use strict";var a=n(27378);let t=(0,a.forwardRef)(function({testId:e="fs-product-grid",children:r,...n},t){return a.createElement("ul",{ref:t,"data-fs-product-grid":!0,...n},r)});r.Z=t},47811:function(e,r,n){"use strict";var a=n(27378);let t=(0,a.forwardRef)(function({testId:e="fs-product-grid-item",children:r,...n},t){return a.createElement("li",{ref:t,"data-fs-product-grid-item":!0,...n},r)});r.Z=t},45623:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return j}});var a=n(55732),t=n(64080),l=n(47811),i=n(83535),s=n(84755),o=n(27378),c=n(47095),u=n(38579),d=n.n(u),g=n(92228),f=n.n(g),h=n(72072),v=n.n(h),p=n(24246),RichText_RichText=e=>{var{text:r}=e;try{var n=JSON.parse(r),a=v()(n,void 0,void 0,(e,r)=>"LINK"!==e.type?null:'<a href="'.concat(e.data.url,'">').concat(r,"</a>"));return(0,p.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})}catch(e){return(0,p.jsx)("div",{children:r})}},m=n(79894),_=n.n(m),BannerGrillaPLP_BannerGrillaPLP=e=>{var{imageUrl:r,textCTA:n,linkCTA:a,textLinkCTA:t}=e;return(0,p.jsxs)("div",{className:f()["banner-grilla"],children:[a&&(0,p.jsx)(_(),{className:f()["banner-grilla-img"],href:a,children:(0,p.jsx)(d(),{src:r,alt:"Banner Grilla",width:958,height:478,quality:100})}),(0,p.jsxs)("div",{className:f()["banner-grilla-cta"],children:[(0,p.jsx)(RichText_RichText,{text:n}),a&&(0,p.jsx)(_(),{href:a,children:t})]})]})},x=n(35440),P=n(63662),b=(0,o.memo)(function(e){var r,n,u,d,{products:g,page:f,pageSize:h,productCard:{showDiscountBadge:v,bordered:m,taxesConfiguration:_}={}}=e,{0:b,1:y}=(0,o.useState)([]),{data:C}=(0,x.Z)(),j=(0,P.usePathname)(),G=null==C?void 0:null===(r=C.searchCMSPage[0])||void 0===r?void 0:null===(n=r.settings)||void 0===n?void 0:null===(u=n.bannersGrilla)||void 0===u?void 0:null===(d=u.content)||void 0===d?void 0:d.filter(e=>e.slug===j),bannerCheckDate=e=>{var r=new Date,n=null!=e&&e.dateStart?new Date(e.dateStart):null,a=null!=e&&e.dateFinish?new Date(e.dateFinish):null;return(!n||!(r<n))&&(!a||!(r>a))};(0,o.useEffect)(()=>{function _fetchAdditionalData(){return(_fetchAdditionalData=(0,a.Z)(function*(){try{var e=yield fetch("https://swarovskiargentina.vtexcommercestable.com.br/api/dataentities/IB/search/?_fields=bankname,installments,image,collection,startDate,endDate,text&".concat(Math.floor(30*Math.random()))),r=(yield e.json()).filter(e=>{var r=null==e?void 0:e.startDate,n=null==e?void 0:e.endDate;return!!(0,c.Z)(r,n)});y(r)}catch(e){console.error("Error fetching additional data:",e)}})).apply(this,arguments)}!function(){_fetchAdditionalData.apply(this,arguments)}()},[]);var D=0===f&&G&&G.length>0?[...g,g[0],g[1]].filter(Boolean):g;return(0,p.jsx)(i.Z,{aspectRatio:1,loading:0===g.length,children:(0,p.jsx)(t.Z,{children:D.map((e,r)=>{var{node:n}=e,a=h*f+r,t=null==G?void 0:G.find(e=>e.locationRender===a),i=t&&bannerCheckDate(t);return(0,p.jsxs)("div",{style:{display:"contents"},children:[i&&(0,p.jsx)("div",{style:{gridColumn:"span 2"},children:(0,p.jsx)(BannerGrillaPLP_BannerGrillaPLP,{imageUrl:null==t?void 0:t.imageUrl,textCTA:null==t?void 0:t.textCTA,linkCTA:null==t?void 0:t.linkCTA,textLinkCTA:null==t?void 0:t.textLinkCTA})},"banner-grilla-".concat(a)),(0,p.jsx)(l.Z,{children:(0,p.jsx)(s.Z,{aspectRatio:1,imgProps:{width:150,height:150,sizes:"30vw",loading:0===r?"eager":"lazy"},bordered:m,showDiscountBadge:v,product:n,index:a+1,taxesConfiguration:_,additionalData:b})})]},"product-".concat(a,"-").concat(n.id))})})})}),y=n(91093),C=n(27184),j=(0,o.memo)(function(e){var r,n,a,{page:t,title:l,productCard:i,itemsPerPage:s}=e,{data:o}=(0,C.__)(t),c=null!==(r=null==o?void 0:null===(n=o.search)||void 0===n?void 0:null===(a=n.products)||void 0===a?void 0:a.edges)&&void 0!==r?r:[];return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(y.Z,{products:c,page:t,pageSize:s,title:l}),(0,p.jsx)(b,{products:c,page:t,pageSize:s,productCard:i})]})})},27184:function(e,r,n){"use strict";n.d(r,{Bj:function(){return o},Y_:function(){return useCreateUseGalleryPage},__:function(){return useGalleryPage}});var a=n(9377),t=n(79006),l=n(27378),i=n(43179),s=n(76518),o=(0,l.createContext)(e=>({data:null})),useGalleryPage=e=>{var r=(0,l.useContext)(o);if(!r)throw Error("Missing UseGalleryPageContext on React tree");return r(e)},c=a.gU,getKey=e=>JSON.stringify(e),useCreateUseGalleryPage=()=>{var{0:e,1:r}=(0,l.useState)([]),n=(0,l.useRef)([]),a=(0,l.useRef)([]),o=(0,l.useCallback)(function(e){var{state:{sort:o,term:u,selectedFacets:d},itemsPerPage:g}=(0,t.R)(),f=(0,s.y)({first:g,after:(g*e).toString(),sort:o,term:null!=u?u:"",selectedFacets:d}),h=a.current[e]===getKey(f),{data:v}=(0,i.aM)(c,f,{fallbackData:null,suspense:!0,doNotRun:h}),p=!h&&null!==v;if(p){a.current[e]=getKey(f);var m=[...n.current];m[e]=v,n.current=m}return(0,l.useEffect)(()=>{p&&r(r=>{var n=[...r];return n[e]=v,n})},[v,e,p]),(0,l.useMemo)(()=>h?{data:n.current[e]}:{data:v},[h,v,e])},[]);return(0,l.useMemo)(()=>({pages:e,useGalleryPage:o}),[e,o])}},91093:function(e,r,n){"use strict";var a=n(79006),t=n(27378),l=n(9957),i=n(86677),s=n(54828),o=n(24246),replacePagination=(e,r)=>{var n=new URL(window.location.href);n.searchParams.get("page")!==e&&(n.searchParams.set("page",e),r.replace(n,void 0,{shallow:!0,scroll:!1}))};r.Z=function(e){var{page:r,pageSize:n,products:c,title:u}=e,d=(0,t.useRef)(!1),{ref:g,inView:f}=(0,l.YD)(),{pages:h}=(0,a.R)(),v=(0,i.useRouter)(),{sendViewItemListEvent:p}=(0,s.m)({products:c,title:u,page:r,pageSize:n});return(0,t.useEffect)(()=>{f&&h.length>1&&replacePagination(r.toString(),v),f&&!d.current&&c.length&&(p(),d.current=!0)},[h.length,f,r,v,p,c.length]),(0,o.jsx)("div",{ref:g})}},92228:function(e){e.exports={"banner-grilla":"BannerGrillaPLP_banner-grilla__4UFhD",bannerGrilla:"BannerGrillaPLP_banner-grilla__4UFhD","banner-grilla-img":"BannerGrillaPLP_banner-grilla-img__1SiFW",bannerGrillaImg:"BannerGrillaPLP_banner-grilla-img__1SiFW","banner-grilla-cta":"BannerGrillaPLP_banner-grilla-cta__9yrEN",bannerGrillaCta:"BannerGrillaPLP_banner-grilla-cta__9yrEN"}}}]);

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.