PageSourceSearch

https://www.cobasi.com.br/_next/static/chunks/8837.3a21b9fe85ed3227.js

js cobasi.com.br collected 2026-09-24 10:27:09 UTC 4,728 bytes, 10 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8837],{38837:function(e,r,n){n.r(r),n.d(r,{default:function(){return N}});var t=n(59499),l=n(67294),a=n(81043),i=n(8289),s=n(71898),o=n(75424),c=n(87760),d=n(79974),u=n(70714),h=n(27417),p=u.ZP.div.withConfig({displayName:"ThemedGalleryDisplay",componentId:"sc-fppkqz-0"})(["width:100%;padding:0 0 var(--token-spacings-sm);"," display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:var(--token-spacings-xxs);.showcase,.banner{width:100%;}"],h.B.greaterThan("medium")`
2    padding: 0 0 var(--token-spacings-xxl) 0;
3  `),b=n(38346),v=n(19671),f=n(83992),g=n(48006),m=n(68293),w=n(85893);let _=({product:e,clickProduct:r})=>{var n;let t=null===(n=e.skus)||void 0===n?void 0:n.find(e=>e.bestChoice&&"AVAILABLE"===e.available),{0:a,1:i}=(0,l.useState)((null==t?void 0:t.available)==="AVAILABLE"),{0:s,1:o}=(0,l.useState)(null!=e&&e.skus&&t?t:g.Z);return(0,l.useEffect)(()=>{i((null==t?void 0:t.available)==="AVAILABLE"),o(null!=e&&e.skus&&t?t:g.Z)},[e]),(0,l.useEffect)(()=>{i((null==s?void 0:s.available)==="AVAILABLE")},[s]),(0,w.jsx)(m.Z,{product:e,chipSelect:s,onHandleClick:()=>r(e),onHandleChipSelect:o,isProductAvailable:a,isCategory:!1,variant:"vertical",hasBorder:"full",cardSize:"21rem",isSynerise:!1})},x=u.ZP.div.withConfig({displayName:"styles__ContainerCards",componentId:"sc-chlv9x-0"})(["width:100%;.tag-wrapper-skus{.tag-category{width:50%;}.tag-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%;}}.arrows_themed_gallery_cards{top:-30px;&:disabled{display:block;}}"," .arrows_themed_gallery_cards.carousel__arrow--next{right:0;}.arrows_themed_gallery_cards.carousel__arrow--prev{right:50px;left:auto;}"],h.B.lessThan("medium")`
4    .arrows_themed_gallery_cards {
5      display: none;
6      &:disabled {
7        display: none;
8      }
9    }
10  `),y=({hotsite:e,cardEventClick:r})=>{let{mobile:n}=(0,b.Z)();if(!e||0===e.length)return null;let t=e.map(e=>(0,v.vm)(e));return(0,w.jsx)(x,{"data-testid":"container-cards",children:(0,w.jsx)(f.Z,{showArrows:!0,spacing:n?"16":"24",classNameArrow:"btn outlined btn-icon-rounded btn-sm arrows_themed_gallery_cards",children:null==t?void 0:t.map(e=>(0,w.jsx)(_,{product:e,clickProduct:r},e.id))})})};var k=n(41664),j=n.n(k);let P=(0,u.ZP)(j()).withConfig({displayName:"styles__Wrapper",componentId:"sc-lwic8s-0"})(["",";"],({haslink:e})=>(0,u.iv)(["width:100%;height:100%;pointer-events:",";.banner{border:1px solid var(--token-colors-neutral-cloud-normal);border-radius:var(--token-border-radius-lg);}"],e?"all":"none")),A=({themed_gallerie:e,handleClickBanner:r})=>(0,w.jsx)(P,{href:e.link_banner,target:e.banner_open_new_tab?"_blank":"_self",haslink:e.link_banner,onClick:r,children:(0,w.jsxs)("picture",{children:[(0,w.jsx)("source",{srcSet:e.banners.bannerMobile,media:"(max-width: 900px)"}),(0,w.jsx)("img",{src:e.banners.banner,alt:e.title||"Banner Galeria",height:"100%",width:"100%",loading:"lazy",className:"banner"})]})});function O(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function C(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?O(Object(n),!0).forEach(function(r){(0,t.Z)(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}let E=({themed_galleries:e})=>{var r,n;let t=(0,a.I0)(),u=(0,l.useRef)(null),h=(0,l.useRef)(null),b=(0,a.v9)(e=>e.cart);(0,l.useEffect)(()=>{(0,d.Pi)(null==u?void 0:u.current,()=>{u.current=null;let r=new URL(e.link_banner,o._);c.vk(r.searchParams.get("BANNER"))}),(0,d.Pi)(null==h?void 0:h.current,()=>{h.current=null,c.hW(e.hotsite,null==e?void 0:e.title,null==e?void 0:e.title)})},[]);let v=()=>{c.G5(new URL(e.link_banner,o._).searchParams.get("BANNER"))},f=r=>{c.Gh(r,null==e?void 0:e.title,null==e?void 0:e.title),t((0,i.u)(C(C({},b),{},{counterProductTemp:1})))};return(0,w.jsxs)(p,{children:[(0,w.jsx)(s.k,{isTrue:!!(null!==(r=e.banners)&&void 0!==r&&r.bannerMobile)&&!!(null!==(n=e.banners)&&void 0!==n&&n.banner),children:(0,w.jsx)("div",{ref:u,className:"banner",children:(0,w.jsx)(A,{themed_gallerie:e,handleClickBanner:v})})}),(0,w.jsx)(s.k,{isTrue:!!e.title&&!!e.hotsite,children:(0,w.jsx)("p",{className:"heading-xs",children:e.title})}),(0,w.jsx)(s.k,{isTrue:!!e.hotsite,children:(0,w.jsx)("div",{ref:h,className:"showcase",children:(0,w.jsx)(y,{hotsite:e.hotsite,cardEventClick:f})})})]})};var N=E}}]);

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.