PageSourceSearch

https://tul.com.co/_next/static/chunks/7669-0ca05030211b4dc6.js

js tul.com.co collected 2026-09-24 12:39:49 UTC 8,411 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7669],{7496:(e,l,t)=>{"use strict";t.d(l,{A:()=>o});var s=t(50003),i=t(89707);t(80409),t(67015),t(55185);var r=t(12486);t(75708);var n=t(90963),a=t(34962);function o(e){var l,t,o,d,c,u,x;let p=(0,n.useRef)(null),[m,h]=(0,n.useState)(!1),[f,g]=(0,n.useState)(!0);if(e.loading)return e.skeleton?e.skeleton:(0,s.jsxs)("div",{className:"flex flex-row min-w-full",children:[(0,s.jsx)("div",{className:"skeleton shadow-md bigScreen:h-[168px] mx-[16px] bigScreen:w-[168px] smallScreen:h-[143px] smallScreen:w-[143px]"}),(0,s.jsx)("div",{className:"skeleton shadow-md bigScreen:h-[168px] mx-[16px] bigScreen:w-[168px] smallScreen:h-[143px] smallScreen:w-[143px]"}),(0,s.jsx)("div",{className:"skeleton shadow-md bigScreen:h-[168px] mx-[16px] bigScreen:w-[168px] smallScreen:h-[143px] smallScreen:w-[143px]"})]});let v=e=>{h(!e.isBeginning),g(!e.isEnd)},w=e.height?"h-["+e.height+"]":"";return(0,s.jsxs)("div",{className:"flex "+w,children:[(0,s.jsx)("div",{className:(0,a.QP)("h-auto flex items-center relative left-[20px] z-10",null==(t=e.swiperConfig)||null==(l=t.leftButtonConfig)?void 0:l.styles),children:(0,s.jsx)("button",{id:"carousel-left",name:"carousel-left","aria-label":"carousel-left",className:"".concat(m?"":"invisible"," smallScreen:hidden h-[64px] right-[-10px] w-[64px] shadow-lg rounded-full flex justify-center items-center pt-[10px] text-primary_1 bg-tul_white absolute"),onClick:()=>{var e;return m&&(null==(e=p.current)?void 0:e.slidePrev())},children:(0,s.jsx)("i",{className:"soytul soytul-arrow_chevron_left_micro_filled relative text-[48px] left-[0px] top-[3px]"})})}),(0,s.jsx)(i.RC,{height:20,mousewheel:!0,initialSlide:(null==e?void 0:e.initialSlide)||0,keyboard:{enabled:!0},onBeforeInit:e=>{p.current=e},onInit:l=>{var t,s;g(null!=(s=null==(t=e.swiperConfig)?void 0:t.allowSlideNext)?s:l.allowSlideNext)},onSlideChange:e=>{v(e)},modules:[r.s3,r.Vx],slidesPerView:null!=(x=null==(o=e.swiperConfig)?void 0:o.slidesPerView)?x:"auto",breakpoints:null==(d=e.swiperConfig)?void 0:d.breakpoints,className:"w-full h-full flex flex-row",children:(0,s.jsx)("div",{children:e.children})}),(0,s.jsx)("div",{className:(0,a.QP)("h-auto flex items-center relative left-[-20px] z-10",null==(u=e.swiperConfig)||null==(c=u.rightButtonConfig)?void 0:c.styles),children:(0,s.jsx)("button",{id:"carousel-right",name:"carousel-right","aria-label":"carousel-right",className:"".concat(f?"":"invisible"," smallScreen:hidden h-[64px] w-[64px] shadow-lg rounded-full flex justify-center items-center pt-[10px] text-primary_1 bg-tul_white absolute"),onClick:()=>{var e;return f&&(null==(e=p.current)?void 0:e.slideNext())},children:(0,s.jsx)("i",{className:"soytul soytul-arrow_chevron_right_micro_filled relative text-[48px]  left-[2px] top-[3px]"})})})]})}},28094:(e,l,t)=>{"use strict";t.d(l,{a:()=>s});let s={BR:{significantDigits:2,thousandsSeparator:".",decimalSeparator:",",symbol:"R$",cellphoneDigits:10,currencyCode:"BRL"},MX:{significantDigits:2,thousandsSeparator:",",decimalSeparator:".",symbol:"$",cellphoneDigits:11,currencyCode:"MXN"},CO:{significantDigits:0,thousandsSeparator:".",decimalSeparator:",",symbol:"$",cellphoneDigits:10,currencyCode:"COP"}}},28888:(e,l,t)=>{"use strict";t.d(l,{default:()=>f});var s=t(50003),i=t(89707),r=t(52939),n=t(90963),a=t(7496),o=t(50771),d=t(5950),c=t(89199),u=t(57746),x=t.n(u),p=t(4648),m=t(59382),h=t(58648);function f(e){var l,t,u;let{id:f,title:g,classTitle:v,cornerImage:w,sliderLink:b,sliderRequest:S,breakpoints:j,seeMoreBtnSlider:y,hasItems:N,handleOnClickTitle:_}=e,{data:k}=(0,m.useSession)(),C=async e=>{var l,t;return new p.G(k).request({url:e.url||"",method:null!=(l=e.method)?l:o.s.GET,body:null!=(t=e.body)?t:""}).then(e=>e.json())},{data:P,isLoading:B,error:A}=(0,h.A)((null==k||null==(l=k.user)?void 0:l.id_token)&&S.url?S:null,C,{revalidateOnMount:!0});(0,n.useEffect)(()=>{if(((null==P?void 0:P.products)&&(null==P?void 0:P.products)||A||void 0===P&&!B)&&N){var e,l;N((null!=(l=null==P||null==(e=P.products)?void 0:e.length)?l:0)>0)}},[P,A,B,N]);let M=(0,s.jsxs)("div",{className:"block min-w-full mb-4 h-[404px] overflow-hidden",children:[(0,s.jsx)("div",{className:"skeleton 
1shadow-md h-5 w-52 mb-2"}),(0,s.jsx)("div",{className:"grid grid-cols-[repeat(_auto-fit,_min(198px))] min-w-[100vw] max-w-[100%] gap-y-5",children:Array.from(Array(20).keys()).map(e=>(0,s.jsx)("div",{className:"skeleton shadow-md h-[362px] mx-[16px] w-[168px] "},e))})]});return B?M:(0,s.jsx)("div",{id:f,children:(null==P?void 0:P.products)&&(null==P||null==(t=P.products)?void 0:t.length)>0?(0,s.jsx)(c.default,{children:(0,s.jsxs)("div",{style:w?{backgroundImage:"url('".concat(w,"')"),backgroundRepeat:"no-repeat",backgroundPosition:"right top",backgroundPositionY:"-4px",backgroundPositionX:"100%"}:{},className:"bg-[size:100px] md:bg-[size:170px]",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)("h2",{className:"pl-[10px] md:pl-[30px] font-bold text-[16px] leading-[22px] text-tul_black ".concat(v),children:(0,s.jsx)(d.A,{id:g,defaultMessage:g})}),b?(0,s.jsx)(x(),{href:b.url,onClick:_,children:(0,s.jsx)("div",{className:"ml-[30px] flex flex-row rounded-[26px] py-1 px-3 font-semibold text-[14px] leading-[19px] text-tul_white bg-primary_1",children:(0,s.jsxs)("h2",{className:" ",children:[(0,s.jsx)(d.A,{id:null==b?void 0:b.title,defaultMessage:null==b?void 0:b.title}),(0,s.jsx)("i",{className:"text-[14px] soytul soytul-arrow_right_filled relative top-[3px] ml-1"})]})})}):""]}),(0,s.jsxs)(a.A,{swiperConfig:{slidesPerView:"auto",breakpoints:null!=j?j:{300:{slidesPerView:2,spaceBetween:0},340:{slidesPerView:2,spaceBetween:0},640:{slidesPerView:3,spaceBetween:0},768:{slidesPerView:4,spaceBetween:4},1024:{slidesPerView:4,spaceBetween:4}}},children:[null==P||null==(u=P.products)?void 0:u.map((e,l)=>(0,s.jsx)(i.qr,{children:(0,s.jsx)(r.A,{product:e},(null==e?void 0:e.uuid)||l)},(null==e?void 0:e.uuid)||l)),y&&b&&(0,s.jsx)(i.qr,{className:"flex justify-start items-center align-middle my-auto",children:(0,s.jsxs)(x(),{href:b.url,className:"flex flex-col justify-center items-center",children:[(0,s.jsx)("div",{className:"smallScreen:w-[32px] flex flex-col smallScreen:h-[32px] bigScreen:w-[50px] bigScreen:h-[50px] rounded-[50%] bg-primary_1 text-tul_white",children:(0,s.jsx)("i",{className:"bigScreen:text-[20px] smallScreen:text-[16
1px] relative smallScreen:top-[7px] smallScreen:left-[8px]  bigScreen:top-[14px] bigScreen:left-[14px] soytul soytul-arrow_right_filled"})}),y.label&&(0,s.jsx)("p",{className:"font-semibold text-[12px] leading-4 text-primary_1 mt-2",children:(0,s.jsx)(d.A,{id:y.label||"",defaultMessage:y.label||""})})]})},1e3)]})]})}):""})}},34683:(e,l,t)=>{"use strict";t.d(l,{M:()=>s});let s=(0,t(90963).createContext)({isLoading:!1,error:{},products:[],checkoutCart:null,setProduct:e=>{},addProduct:(e,l)=>{},deleteProduct:e=>{},totalItems:0,getTotalItems:()=>{},productsTemp:[],getApiCart:()=>{}})},55751:(e,l,t)=>{"use strict";t.d(l,{r:()=>s});var s=function(e){return e.CO="CO",e.MX="MX",e.BR="BR",e}({})},58872:(e,l,t)=>{"use strict";t.d(l,{y:()=>r});var s=t(28094),i=t(55751);let r=(e,l)=>{let t,r=s.a.CO;l&&(r.significantDigits=l),"number"!=typeof e&&(e=0);let n=e.toFixed(r.significantDigits);if(0==r.significantDigits){let[e]=n.split(r.decimalSeparator);t="".concat(r.symbol).concat(e.replace(/\B(?=(\d{3})+(?!\d))/g,r.thousandsSeparator))}else{let[e,l]=n.split(".");t="".concat(r.symbol).concat(e.replace(/\B(?=(\d{3})+(?!\d))/g,r.thousandsSeparator)).concat(r.decimalSeparator).concat(l)}return"CO"===i.r.BR&&(t=t.replace(r.symbol,"".concat(r.symbol," "))),t}},75708:()=>{},92021:(e,l,t)=>{"use strict";t.d(l,{M:()=>n});var s=t(4648),i=t(59382),r=t(90963);function n(e,l){var t;let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{data:a}=(0,i.useSession)(),[o,d]=(0,r.useState)({}),[c,u]=(0,r.useState)(null),[x,p]=(0,r.useState)(!0),m=(0,r.useMemo)(()=>new s.G(a),[a]);return(0,r.useEffect)(()=>{var l;let t=new AbortController;return p(!0),(null==a||null==(l=a.user)?void 0:l.id_token)&&n?(e.host&&(m.host=e.host),m.request({...e}).then(e=>{if(!t.signal.aborted)return e.json()}).then(e=>{t.signal.aborted||(d(e),p(!1))}).catch(e=>{t.signal.aborted||(u(e),p(!1))})):p(!1),()=>{t.abort()}},[null==a||null==(t=a.user)?void 0:t.id_token,l,n,JSON.stringify(e)]),{data:o,error:c,isLoading:x,request: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.