PageSourceSearch

https://www.crisbarros.com.br/_next/static/chunks/5837.5e9a5b8faaff9caf.js

js crisbarros.com.br collected 2026-10-01 13:15:39 UTC 13,376 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5837],{85837:function(e,a,o){"use strict";o.r(a),o.d(a,{default:function(){return W}});var t=o(34751),i=o(35134),m=o(85939),r=o(23365),l=o(51756),s=o(63448),n=o(8783),c=o(73645),d=o(70667),g=o.n(d),u=e=>{var{image:a}=e;return(0,t.jsx)(n.default,{src:(0,c.Kp)(a.imageUrl,{width:50,height:75})||"",alt:a.imageText,className:g().mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:10,style:{position:"absolute",inset:0,filter:"blur(10px)"}})};u.displayName="PDP.ImageZoom.Common.BlurImage";var _=o(36549),p=e=>{var{images:a,selectedImageIndex:o,alt:m}=e,d=(0,s._)(e,["images","selectedImageIndex","alt"]),[p,h]=(0,i.useState)(!1),v=null==a?void 0:a[o];if(!v)return null;var x=(0,c.Kp)(v.imageUrl,(0,r._)({},_.Zl.image_zoom.desktop));return(0,t.jsx)("div",(0,l._)((0,r._)({},d),{className:g()["main-image-container"],children:(0,t.jsxs)("div",{className:g()["image-desktop"],children:[!p&&(0,t.jsx)(u,{image:v}),x&&(0,t.jsx)(n.default,{src:x||"",alt:m||v.imageText,className:g().mainImage,layout:"fill",objectFit:"cover",priority:!0,quality:100,onLoad:()=>{h(!0)}})]})}))},h=e=>{var{images:a,onThumbnailClick:o,selectedImageIndex:i}=e;return(0,t.jsx)("div",{className:g().thumbs,children:a.map((e,a)=>(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:()=>o(a),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&o(a)},className:a===i?g().selected:"",children:(0,t.jsx)(n.default,{src:e.imageUrl,alt:e.imageText,layout:"responsive",width:100,height:100,objectFit:"cover",priority:!1})},a))})},v=o(46500),x=e=>{var{onClose:a}=e;return(0,t.jsx)("div",{className:"".concat(g()["button-close-container"]),children:(0,t.jsx)(v.Z,{iconNameStart:_.UZ.close,className:"".concat(g()["button-close"]),variant:"tertiary",state:"default",size:"medium",onClick:a,style:{textDecoration:"none"}})})},I=e=>{var{defaultScale:a=1,maxScale:o=3}=e,t=(0,i.useRef)(null),m=(0,i.useRef)(null),[r,l]=(0,i.useState)(a),s=(0,i.useRef)(0),n=(0,i.useRef)({x:0,y:0}),c=(0,i.useRef)({x:0,y:0}),d=()=>{if(!m.current||!t.current)return{minX:0,maxX:0,minY:0,maxY:0};var e,a,o,i=t.current.getBoundingClientRect(),r=null===(e=m.current.children[0])||void 0===e?void 0:e.getBoundingClientRect(),l=null!==(a=null==r?void 0:r.width)&&void 0!==a?a:0,s=null!==(o=null==r?void 0:r.height)&&void 0!==o?o:0,n=Math.min(0,(i.width-l)/2);return{minX:n,maxX:Math.max(0,(l-i.width)/2),minY:Math.min(0,(i.height-s)/2),maxY:Math.max(0,(s-i.height)/2)}},g=(e,a,o)=>{if(m.current){var t=m.current.children[0];t&&requestAnimationFrame(()=>{t.style.transform="translate(calc(-50% + ".concat(e,"px), calc(-50% + ").concat(a,"px)) scale(").concat(o,")")})}},u=(0,i.useCallback)(e=>{var a,o,t,i,{minX:m,maxX:r,minY:l,maxY:g}=d(),{x:u,y:_}=c.current;if(e.touches.length>1){var p=e.touches[0],h=e.touches[1],v=p.pageX-h.pageX,x=p.pageY-h.pageY;s.current=Math.sqrt(v*v+x*x),n.current={x:(p.pageX+h.pageX)/2,y:(p.pageY+h.pageY)/2}}else 1===e.touches.length&&(n.current={x:(null!==(t=null===(a=e.touches[0])||void 0===a?void 0:a.pageX)&&void 0!==t?t:0)-Math.max(m,Math.min(r,u)),y:(null!==(i=null===(o=e.touches[0])||void 0===o?void 0:o.pageY)&&void 0!==i?i:0)-Math.max(l,Math.min(g,_))})},[r,c]),_=(0,i.useCallback)(e=>{if(m.current&&t.current){var{minX:a,maxX:i,minY:u,maxY:_}=d();if(e.touches.length>1){e.preventDefault();var p=e.touches[0],h=e.touches[1],v=p.pageX-h.pageX,x=p.pageY-h.pageY,I=Math.sqrt(v*v+x*x);if(!s.current){s.current=I;return}var b=Math.max(1,Math.min(o,I/s.current*r));if(r===b)return;l(b);var Z=(p.pageX+h.pageX)/2,j=(p.pageY+h.pageY)/2,f=Z-n.current.x,y=j-n.current.y;f=Math.max(a,Math.min(i,f)),y=Math.max(u,Math.min(_,y)),c.current={x:f,y},s.current=I,g(f,y,b)}else if(1===e.touches.length){var w,N,z,M,k=null!==(z=null===(w=e.touches[0])||void 0===w?void 0:w.pageX)&&void 0!==z?z:0,C=null!==(M=null===(N=e.touches[0])||void 0===N?void 0:N.pageY)&&void 0!==M?M:0,R=k-n.current.x,B=C-n.current.y;R=Math.max(a,Math.min(i,R)),B=Math.max(u,Math.min(_,B)),c.current={x:R,y:B},g(R,B,r)}}},[o,r]);return(0,i.useEffect)(()=>(document.addEventListener("touchstart",u),document.addEventListener("touchmove",_,{passive:!1}),()=>{document.removeEventListener("touchstart",u),document.removeEventListener("touchmove",_)}),[_,u]),{containerRef:t,imgRef:m,scale:r}},b=o(12409),Z=o(56895),j=e=>{var{image:a}=e,o=(0,s._)(e,["image"]);return(0,t.jsx)("div",{className:g()["image-mobile--wrapper"],children:(0,t.jsx)(n.default,(0,l._)((0,r._)({},o,_.Zl.image_zoom.mobile),{alt:a.imageText,className:g()["image-mobile"],quality:100,src:a.imageUrl}))})};j.display="PDP.ImageZoom.Mobile.Carousel.Item";var f=e=>{var{current:a,images:o,onFirstImgLoaded:m,setCurrent:s,hasManyImages:n}=e,c=()=>{m(!0)},d=(0,i.useCallback)(e=>{null==s||s(e)},[s]);return(0,t.jsxs)(b.Z.Root,{className:g().carousel,callback:e=>d(e),config:{delay:0,direction:"next",gap:0,initialPage:null!=a?a:0,itemsPerPage:1,loop:!0,slidesPerMove:1},children:[(0,t.jsx)(b.Z.Body,{children:Array.isArray(o)&&o.map((e,a)=>(0,t.jsx)(b.Z.Item,{children:(0,t.jsx)(j,(0,l._)((0,r._)({},0===a&&{priority:!0,loading:"eager"},0===a&&{onLoad:c}),{image:e}))},a))}),(0,t.jsxs)(b.Z.Controller,{className:g()["carousel--controller"],children:[(0,t.jsx)(v.Z,{adornment:{start:(0,t.jsx)(Z.Z,{name:"arrow-left"})},"data-carousel-action":"prev",className:g()["arrow-left"],variant:"tertiary"}),(0,t.jsx)(v.Z,{adornment:{start:(0,t.jsx)(Z.Z,{name:"arrow-right"})},className:g()["arrow-right"],"data-carousel-action":"next",variant:"tertiary"}),n?(0,t.jsxs)("div",{className:g().counter,children:[(null!=a?a:0)+1," / ",o.length]}):(0,t.jsx)(b.Z.Bullets,{align:"center",className:g().bullets,internal:!0,mode:"inverse"})]})]})};f.displayName="ImageZoom.Mobile.Carousel";var y=e=>{var{imgRef:a,image:o,alt:i}=e;return(0,t.jsx)("div",{className:g()["image-zoom--image"],ref:a,children:(0,t.jsx)(n.default,(0,l._)((0,r._)({},_.Zl.image_zoom.mobile),{alt:i||o.imageText,className:g()["image-zoom--image--img"],qual
1ity:100,src:o.imageUrl}))})};y.displayName="ImageZoom.ImageZoom";var w=e=>{var{loaded:a=!1}=e;return(0,t.jsx)("div",{className:g()["zoom-popup"],"data-loaded":a,children:(0,t.jsxs)("svg",{width:"38",height:"39",viewBox:"0 0 38 39",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.93 5.382a3.711 3.711 0 0 1 2.55-1.007c.949 0 1.864.36 2.549 1.007a3.534 3.534 0 0 1 1.113 2.472v11.357l10.118 3.332c.587.193 1.1.56 1.465 1.053.366.494.565 1.089.566 1.7v.004c0 .22-.025.44-.075.653v.005l-2.98 12.52a.625.625 0 0 1-1.215-.29l2.977-12.515v-.002c.029-.122.043-.247.044-.372a1.619 1.619 0 0 0-.321-.958 1.729 1.729 0 0 0-.851-.61L24.32 20.257a.625.625 0 0 1-.43-.594V7.88a2.285 2.285 0 0 0-.72-1.59 2.462 2.462 0 0 0-1.691-.665c-.635 0-1.241.24-1.69.666a2.285 2.285 0 0 0-.722 1.59v19.04a.625.625 0 0 1-1.115.388l-.056-.071-.161-.202a178.922 178.922 0 0 0-2.333-2.858l-.002-.002a2.581 2.581 0 0 0-.897-.69 2.677 2.677 0 0 0-1.122-.25H12.37c-.307 0-.61.078-.874.225a1.712 1.712 0 0 0-.635.61 1.625 1.625 0 0 0-.016 1.653l7.128 12.296a.625.625 0 0 1-1.082.627L9.762 26.35a2.876 2.876 0 0 1 .027-2.924 2.962 2.962 0 0 1 1.098-1.057 3.05 3.05 0 0 1 1.482-.384h1.016c.57.002 1.133.127 1.648.368.515.24.97.59 1.33 1.024.514.614 1.026 1.239 1.455 1.768V7.855a3.535 3.535 0 0 1 1.113-2.473ZM6.446 10.22a.625.625 0 0 1 0 .884l-5.324 5.324a.625.625 0 0 1-.884-.884l5.324-5.324a.625.625 0 0 1 .884 0Z"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.68 12.033c.345 0 .625.28.625.625v2.703h2.702a.625.625 0 1 1 0 1.25H.68a.625.625 0 0 1-.625-.625v-3.328c0-.345.28-.625.625-.625ZM16.429.237a.625.625 0 0 1 0 .884l-5.325 5.324a.625.625 0 0 1-.884-.883L15.545.237a.625.625 0 0 1 .884 0Z"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.034.68c0-.346.28-.626.625-.626h3.328c.345 0 .625.28.625.625v3.328a.625.625 0 1 1-1.25 0V1.304h-2.703a.625.625 0 0 1-.625-.625Z"})]})})};w.displayName="ImageZoom.ZoomPopup";var N=e=>{var{current:a=0,images:o,setCurrent:m,alt:n,hasManyImages:c}=e,d=(0,s._)(e,["current","images","setCurrent","alt","hasManyImages"]),{containerRef:u,imgRef:_,scale:p}=I({defaultScale:1,maxScale:3}),[h,v]=(0,i.useState)(!1);return(0,t.jsxs)("div",(0,l._)((0,r._)({},d),{className:g()["image-mobile"],"data-disable-carrousel-pan":p>1,children:[(0,t.jsx)(w,{loaded:h}),(0,t.jsx)(f,{hasManyImages:c,current:a,images:o,onFirstImgLoaded:v,setCurrent:m}),o[a]&&(0,t.jsx)("div",{className:g()["image-zoom--mobile"],ref:u,children:(0,t.jsx)(y,{imgRef:_,image:o[a],alt:n})})]}))};N.displayName="ImageZoom.ImageMobile";var z=o(80166),M=o(17201),k=o.n(M),C=o(90177),R=o(14717),B=o(84529),P=o(24233),Y=o(2896),X=o(15063),D=o(36136),L=o.n(D),S=e=>{var{children:a}=e;return(0,t.jsx)("div",{className:L()["selectors-container"],children:a})},U=o(91489),F=e=>{var{children:a}=e;return(0,t.jsx)("div",{className:L()["pdp-main__info-main-content"],children:a})},q=o(98944),T=o(70506),V=o(96041),H=()=>(0,t.jsx)(V.Z,{size:"small",className:L().divider}),E=e=>{var{callBackProductAdded:a}=e,{isKit:o,productId:i}=(0,T.F)();return(0,t.jsx)(U.Z.Body,{className:k()["modal-product-body"],children:(0,t.jsx)(C.default,{className:k()["pdp-main__info-modifier"],children:(0,t.jsxs)(F,{children:[(0,t.jsx)(q.default,{}),(0,t.jsx)(B.default,{children:(0,t.jsx)(P.default,{})}),!o&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(S,{children:[(0,t.jsx)(Y.PDPSimilars,{productId:i}),(0,t.jsx)(H,{}),(0,t.jsx)(X.default,{})]})}),(0,t.jsx)(R.default,{showWishlist:!1,addToCartBtnSize:{mobile:"large",desktop:"large"},callBack:a})]})})})};function A(e){var{callBackProductAdded:a}=e,[o,m]=(0,i.useState)(!1);return(0,t.jsxs)("div",{className:k()["quick-shop"],children:[(0,t.jsx)(z.Z,{onClick:()=>m(e=>!e),size:"large",className:k()["shop-bag"],iconName:_.UZ.bag}),(0,t.jsxs)(U.Z.Root,{isOpen:o,setIsOpen:m,style:{zIndex:_.nt.modal},variant:"sideRight",backDropReverse:!0,children:[(0,t.jsx)(U.Z.NestedHeaders.Header,{title:_.pX.title,iconRight:"close"}),(0,t.jsx)(E,{callBackProductAdded:a})]})]})}var O=e=>{var a,o,r,{current:l=0,images:s,setShowImageZoom:n,hasQuickShop:c,hasManyImages:d}=e,{isMobile:u}=(0,m.bN)(),{productName:v}=(0,T.F)(),[I,b]=(0,i.useState)(l),Z=e=>{b(e)};return u?(0,t.jsxs)("div",{className:g()["image-zoom-wrapper-mobile"],style:{zIndex:_.nt.pdp_image_zoom},children:[(0,t.jsx)(x,{onClose:()=>{n({initialIndex:I,show:!1})}}),(0,t.jsx)(N,{current:I,images:s,setCurrent:Z,alt:v,hasManyImages:d})]}):(0,t.jsxs)("div",{className:g()["image-zoom-wrapper-desktop"],style:{zIndex:_.nt.pdp_image_zoom},children:[(0,t.jsx)(x,{onClose:()=>n({show:!1,initialIndex:l})}),(0,t.jsx)(p,{images:s,selectedImageIndex:l,onThumbnailClick:Z,alt:v},null!==(r=null===(a=s[l])||void 0===a?void 0:a.imageId)&&void 0!==r?r:"".concat(null===(o=s[l])||void 0===o?void 0:o.imageText,"-").concat(l)),(0,t.jsx)(h,{images:s,selectedImageIndex:l,onThumbnailClick:e=>{n({initialIndex:e,show:!0})}}),c&&(0,t.jsx)(A,{callBackProductAdded:()=>{n({initialIndex:0,show:!1})}})]})};O.displayName="ImageZoom";var W=O},17201:function(e){e.exports={"shop-bag":"styles_shop-bag__mfMjV",shopBag:"styles_shop-bag__mfMjV","modal-product-body":"styles_modal-product-body__jC1o_",modalProductBody:"styles_modal-product-body__jC1o_","pdp-main__info-modifier":"styles_pdp-main__info-modifier__lJ0de",pdpMainInfoModifier:"styles_pdp-main__info-modifier__lJ0de"}},70667:function(e){e.exports={"image-zoom-wrapper-desktop":"ImageZoom_image-zoom-wrapper-desktop__3iugS",imageZoomWrapperDesktop:"ImageZoom_image-zoom-wrapper-desktop__3iugS","button-close-container":"ImageZoom_button-close-container__0N2d_",buttonCloseContainer:"ImageZoom_button-close-container__0N2d_","button-close":"ImageZoom_button-close__HdTO7",buttonClose:"ImageZoom_button-close__HdTO7","icon-button":"ImageZoom_icon-button__6IuV8",iconButton:"ImageZoom_icon-button__6IuV8","main-image-container":"ImageZoom_main-image-container__nHDCs",mainImageContainer:"ImageZoom_main-image-container__nHDCs","image-desktop":"ImageZoom_image-desktop__fGpW4",imageDesktop:"ImageZoom_image-desktop__fGpW4",thumbs:"ImageZoom_thumbs__ROrQS",selected:"ImageZoom_selected__juhkP","shop-bag":"ImageZoom_shop-bag__Gzgwx",shopBag:"ImageZoom_shop-bag__Gzgwx","image-zoom-wrapper-mobile":"ImageZoom_image-zoom-wrapper-mobile__QnzFA",imageZoomWrapperMobile:"ImageZoom_image-zoom-wrapper-mobile__QnzFA","image-mobile":"ImageZoom_image-mobile__BzUUc",imageMobile:"ImageZoom_image-mobile__BzUUc","image-mobile--wrapper":"ImageZoom_image-mobile--wrapper__k4o8D",imageMobileWrapper:"ImageZoom_image-mobile--wrapper__k4o8D","image-zoom--image":"ImageZoom_image-zoom--image__UVQdd",imageZoomImage:"ImageZoom_image-zoom--image__UVQdd",carousel:"ImageZoom_carousel__f2h15","carousel--controller":"ImageZoom_carousel--controller__V3jbH",carouselController:"ImageZoom_carousel--controller__V3jbH","arrow-left":"ImageZoom_arrow-left__nwuC_",arrowLeft:"ImageZoom_arrow-left__nwuC_","arrow-right":"ImageZoom_arrow-right__chF5C",arrowRight:"ImageZoom_arrow-right__chF5C",bullets:"ImageZoom_bullets__cbkOY",counter:"ImageZoom_counter__qmuY1","zoom-popup":"ImageZoom_zoom-popup__v3j5R",zoomPopup:"ImageZoom_zoom-popup__v3j5R","image-zoom--mobile":"ImageZoom_image-zoom--mobile__j9lIk",imageZoomMobile:"ImageZoom_image-zoom--mobile__j9lIk","image-zoom--image--img":"ImageZoom_image-zoom--image--img__tLBhq",imageZoomImageImg:"ImageZoom_image-zoom--image--img__tLBhq"}}}]);

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.