PageSourceSearch

https://www.tiendeo.com.ec/_next/static/chunks/2508-1f68499cf45308ee.js

js tiendeo.com.ec collected 2026-10-05 22:01:43 UTC 11,277 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2508,3353],{10193:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(6029),l=r(23423),s=r(2910),n=r(20206);let o=e=>{let{position:t="left",leftArrowClass:r="",rightArrowClass:o="",className:i,disabled:d,...c}=e,u=(0,l.c)(),p=(0,n.cn)("absolute top-1/2 -translate-y-1/2 z-10 text-primary-base w-9 h-9 flex items-center justify-center",i,{"text-neutral-medium-300/80 pointer-events-none cursor-not-allowed":d}),f=u("left"===t?"ARIALABEL_LEFTARROW":"ARIALABEL_RIGHTARROW");return(0,a.jsxs)("button",{type:"button",className:p,"aria-label":f,"data-testid":`carousel_arrow_${t}`,"data-position":t,disabled:d,...c,children:[d&&(0,a.jsx)("div",{className:"absolute inset-0 bg-transparent pointer-events-auto"}),"left"===t?(0,a.jsx)(s.IconChevronLeft,{}):(0,a.jsx)(s.IconChevronRight,{})]})}},46672:(e,t,r)=>{r.d(t,{Jy:()=>a,lN:()=>s,uL:()=>l});let a={mobile:{slidesPerView:2},desktop:{slidesPerView:4}},l="#D2312EE5",s={defaultAdvSize:[200,200],viewPorts:{desktop:[1024,768],desktopLarge:[1024,768],tablet:[768,480],mobile:[0,0]},refreshInterval:40}},55862:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(6029),l=r(67549),s=r(55729),n=r(76264),o=r(2910),i=r(99938),d=r(60024);let c=s.useLayoutEffect;function u({showChevron:e=!1,description:t,readMoreText:r,showLessText:p,autoSize:f,className:h,buttonClassname:m}){let[x,y]=(0,s.useState)(!1),[E,b]=(0,s.useState)(!1),[A,g]=(0,s.useState)("auto"),[v,w]=(0,s.useState)(!0),R=(0,s.useRef)(null),L=(0,s.useRef)({collapsed:0,expanded:0}),{t:S}=(0,l.md)(d.GS),{seoDataByTemplate:_}=(0,l.md)(d.dn),{short_description:N}=_?.copy||{},C=t??N,O=f?.clampClassName||"expandable-clamp";if(c(()=>{if(!C||!R.current)return;let e=R.current;e.classList.add(O);let t=e.offsetHeight;e.classList.remove(O);let r=e.scrollHeight;e.classList.add(O),L.current={collapsed:t,expanded:r},b(r>t),g(`${t}px`)},[C,O]),(0,s.useEffect)(()=>{let e=R.current;if(!e)return;let t=e=>{"max-height"!==e.propertyName||x||w(!0)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[x]),!C)return null;let I=x?p||S("SHOW_LESS"):r||S("READ_MORE"),T=x?"expandable-description-chevron-up":"expandable-description-chevron-down",k=x?"expandable-description-show-less":"expandable-description-read-more";return(0,a.jsxs)("div",{className:x?"overflow-y-auto":"overflow-hidden","data-testid":"expandable-description","data-expanded":x,children:[(0,a.jsx)("span",{ref:R,className:(0,n.QP)("block transition-all expandable-description ease-in-out overflow-hidden text-justify",v&&!x&&O,h),style:{maxHeight:A,transitionProperty:"max-height",transitionDuration:"500ms"},dangerouslySetInnerHTML:{__html:C},"data-testid":"expandable-description-content"}),E&&(0,a.jsx)("button",{type:"button",onClick:()=>{let{collapsed:e,expanded:t}=L.current,r=!x;r?(w(!1),g(`${e}px`),requestAnimationFrame(()=>g(`${t}px`))):(g(`${t}px`),requestAnimationFrame(()=>g(`${e}px`))),y(r)},className:(0,n.QP)("show-more-button flex text-sm font-semibold mt-2",m),"data-testid":"expandable-description-toggle","data-action":x?"collapse":"expand",children:(0,a.jsxs)("div",{className:(0,n.QP)("flex","text-primary-base"),"data-testid":k,children:[I,e&&(0,a.jsx)(o.IconChevronDown,{size:i.I.S,className:x?"rotate-180":"","data-testid":T})]})})]})}},57956:(e,t,r)=>{r.d(t,{A:()=>a});let a=e=>e?e.replace(/(.00|,00)%/g,"%"):e},74606:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(6029),l=r(55729),s=r(39976),n=r(71181),o=r(76264),i=r(46672),d=r(10193);let c=function({children:e,rootClasses:t,arrowClasses:r,leftArrowClass:c,rightArrowClass:u,spaceBetween:p=0,disabledClass:f,slidesPerView:h=1,slidesToScroll:m=1,breakpoints:x=i.Jy,mobileScrollArrows:y,externalArrows:E=!1,showDots:b=!1}){let[A,g]=(0,l.useState)(0),[v,w]=(0,l.useState)(0),R=(0,l.useRef)(null),L=(0,l.useRef)(null),S=l.Children.toArray(e),_=(0,s.A)(),{isSmartphone:N}=(0,n.k)(),C=E||y||!N,O=x[_]?.slidesPerView||h,{slideWidth:I,scrollByAmount:T,maxDots:k}=function({containerWidth:e,externalArrows:t,isSmartphone:r,spaceBetween:a,currentSlidesPerView:l,currentSlidesToScroll:s,flatChildren:n,showDots:o}){let i=e-(t?r?80:64:0),d=i?Math.floor((i-a*(l-1))/l):0,c=(d+a)*s,u=n.length,p=Math.max(0,u*d+(u-1)*a-i),f=o&&c>0&&p>0?Math.ceil(p/c)+1:1;return{slideWidth:d,scrollByAmount:c,maxDots:f}}({containerWidth:A,externalArrows:E,isSmartphone:N,spaceBetween:p,currentSlidesPerView:O,currentSlidesToScroll:x[_]?.slidesToScroll||m,flatChildren:S,showDots:b}),{scrollStart:$,scrollEnd:j,activeDot:P,handleScroll:Y}=(({scrollRef:e,containerWidth:t,showDots:r,scrollByAmount:a,maxDots:s})=>{let[n,o]=(0,l.useState)(!0),[i,d]=(0,l.useState)(!1),[c,u]=(0,l.useState)(0);return{scrollStart:n,scrollEnd:i,activeDot:c,handleScroll:(0,l.useCallback)(()=>
1{if(e.current&&t>0){let{scrollLeft:t,scrollWidth:l,clientWidth:n}=e.current;o(0===t);let i=l<=n||t+n>=l-1;d(i),r&&a>0&&(i?u(s-1):u(Math.round(t/a)))}},[t,r,a,s,e])}})({scrollRef:L,containerWidth:A,showDots:b,scrollByAmount:T,maxDots:k});(0,l.useEffect)(()=>{let e=()=>{R.current&&(g(R.current.offsetWidth),setTimeout(()=>Y(),0))};return e(),window.addEventListener("resize",e),setTimeout(()=>w(1),100),()=>window.removeEventListener("resize",e)},[Y]),(0,l.useEffect)(()=>{setTimeout(()=>Y(),0)},[S.length,O,Y]);let M=(0,o.QP)("relative grid min-h-30 w-full list-none",t,1===v?"opacity-100":"opacity-0"),F=(0,o.QP)("overflow-hidden touch-pan-x mobile:min-h-24",E?"mx-9 tablet:mx-8":""),B=(0,o.Id)("snap-start py-1 px-0 tablet:px-1 shrink-0",`mr-[${p}px]`);return(0,a.jsxs)("div",{className:M,ref:R,"data-testid":"carousel-container",children:[(0,a.jsx)("div",{className:F,children:(0,a.jsx)("div",{className:"flex overflow-x-auto scroll-smooth snap-x snap-mandatory hide-scrollbar","data-testid":"carousel-scroll-container",style:{gap:`${p}px`},onScroll:Y,ref:L,children:S.map((e,t)=>(0,a.jsx)("div",{className:(0,o.Id)(B),style:{width:I},"data-testid":"carousel-slide",children:e},`carousel-component-slide-${t+1}`))})}),C&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.A,{className:(0,o.QP)(r,f,c||(E?"left-0":"left-2")),position:"left",onClick:()=>{L.current?.scrollBy({left:-T,behavior:"smooth"})},disabled:$}),(0,a.jsx)(d.A,{className:(0,o.QP)(r,f,u||(E?"right-0":"right-2")),position:"right",onClick:()=>{L.current?.scrollBy({left:T,behavior:"smooth"})},disabled:j})]}),b&&k>1&&(0,a.jsx)("div",{className:"flex justify-center items-center gap-2 mt-6",children:Array.from({length:k}).map((e,t)=>(0,a.jsx)("div",{className:(0,o.QP)("w-2 h-2 rounded-full transition-opacity","bg-neutral-dark-400",t===P?"bg-white opacity-100":"bg-white opacity-60")},t))})]})}},75734:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(6029);function l(e){let t,{data:r}=e,l=void 0===(t=JSON.stringify(r))?null:t.replace(/</g,"\\u003c");return null===l?null:(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:l}})}},83288:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(6029),l=r(67549);r(55729);var s=r(60024);let n=({title:e="Video player",allowFullScreen:t=!0,youtubeVideoId:r})=>{let{mainFlyer:n}=(0,l.md)(s.tS),o=r||n?.settings?.youtube_video_id;if(!o)return null;let i=`https://www.youtube.com/embed/${o}`;return(0,a.jsx)("div",{className:"relative aspect-[16/9]",children:(0,a.jsx)("iframe",{src:i,allow:"autoplay; encrypted-media",allowFullScreen:t,title:e,className:"inset-0 w-full h-full"})})}},94144:(e,t,r)=>{r.d(t,{A:()=>a});let a=({digits:e,symbol:t,code:r,currencyPosition:a="before"})=>{let l=t||r;return e&&l?"before"===a?`${l} ${e}`:`${e} ${l}`:""}},97673:(e,t,r)=>{r.d(t,{A:()=>h});var a=r(51796),l=r(4611),s=r(67549),n=r(55729),o=r(11909),i=r(60024),d=r(10090);let c=(e,t)=>{if(!e||!t)return`${d.YU.HOME_FLYERS_BY_CATEGORY.default.desktop}`;let r="desktop"===e||"desktopLarge"===e?"desktop":"mobile";switch(t){case"MAINCATEGORY_LOCAL":case"MAINCATEGORY_NATIONAL":{let e=d.YU.MAIN_CATEGORY_FLYERS[a.g]||d.YU.MAIN_CATEGORY_FLYERS.default;return`${e[r]}`}case"RETAILER_LOCAL":case"RETAILER_NATIONAL":return`${"desktop"===e?d.YU.RETAILER_RELATED_FLYERS_DESKTOP:d.YU.RETAILER_RELATED_FLYERS_MOBILE}`;default:{let e=d.YU.HOME_FLYERS_BY_CATEGORY[a.g]||d.YU.HOME_FLYERS_BY_CATEGORY.default;return`${e[r]}`}}};var u=r(98350);let p=async({countryCode:e,postalCode:t,pathFlyers:r,limit:a,nextToken:l,categoryIdentifier:s,excludeMerchantId:n})=>{try{let i=(0,o.x)("publications"),d=await fetch(`${i}?${new URLSearchParams({countryCode:e,postalCode:t,pathFlyers:r,limit:`${a}`,nextToken:l,...s?{categoryIdentifier:s}:{},...n?{excludeMerchantId:n}:{}})}`);return await d.json()}catch{return{flyers:[]}}},f=async({ll:e,country:t,limit:r,city:a,outsideCountry:l,id:s,excludedRetailer:n,type:i,page:d,mrkSlug:c})=>{try{let u=(0,o.x)("flyers"),p=await fetch(`${u}?${new URLSearchParams({id:s,type:i,ll:e,country:t,limit:`${r}`,city:a,outsideCountry:`${l}`,excludedRetailer:`${n}`,page:`${d}`,...c?{mrk_slug:c}:{}})}`);return await p.json()}catch{return{flyers:[]}}},h=(e={flyers:[],totalCount:0})=>{let t=((e={flyers:[],totalCount:0})=>{let[t,r]=n.useState(1),{country:o,city:d,retailer:p,currentCategory:h,device:m,pageType:x}=(0,s.md)(i.dn),{latitude:y,longitude:E,outsideCountry:b}=(0,s.md)(i.aU),A=`${y},${E}`,g="category",v=parseInt(c(m,x),10),w=d?.slug||"",R=p?.id,L=h?.id||0,S=function(){let e;switch(a.g){case l.OB.TIENDEO:e="td";break;case l.OB.PROMOQUI:e="pq";break;case l.OB.DOVECONVIENE:e="dc";break;case l.OB.VOLANTINO_FACILE:e="vf";break;case l.OB.PUBECO:e="pb";break;case l.OB.PROSPECTO:e="pr";break;case l.OB.PORTAL:e="pt";break;default:e="td"}return e}
1(),[_,N]=(0,n.useState)(e.flyers),C=e?.totalCount?Math.ceil(e.totalCount/v):1,[O,I]=(0,n.useState)(t<C),T=async()=>{try{let e=await f({ll:A,country:o,limit:v,city:w,outsideCountry:b,id:L.toString(),excludedRetailer:R?.toString(),type:g,page:t,mrkSlug:S});N(t=>[...t,...e.flyers]),I(t<C)}catch(e){u.A.error({functionName:"fetchNewPage",error:e,additionalInfo:{ll:A,country:o,limit:v,city:w,outsideCountry:b,categoryId:L.toString(),excludedRetailerId:R?.toString(),categoryType:g,page:t,mrkSlug:S,message:"Error occurred while fetching a new page of flyers"}})}};return(0,n.useEffect)(()=>{r(1),N(e.flyers),I((e?.totalCount?Math.ceil(e.totalCount/v):1)>1)},[p,h]),(0,n.useEffect)(()=>{1!==t&&t>1&&O&&T()},[t]),{flyersData:_,fetchNextPage:()=>{r(e=>e+1)},hasNextPage:O}})(e),r=((e={flyers:[],totalCount:0})=>{let{retailer:t,currentCategory:r,device:a,pageType:l}=(0,s.md)(i.dn),o=parseInt(c(a,l),10),[d,f]=(0,n.useState)(e.flyers),h=(0,n.useRef)(e.nextToken??null),[m,x]=(0,n.useState)(!!e.nextToken),y=async()=>{let{v2Params:t}=e;if(!t||!h.current)return;let r=Array.isArray(t.pathFlyers)?t.pathFlyers[0]:t.pathFlyers;try{let e=await p({countryCode:t.countryCode,postalCode:t.postalCode,pathFlyers:r,limit:o,nextToken:h.current,categoryIdentifier:t.categoryIdentifier,excludeMerchantId:t.excludeMerchantId});f(t=>[...t,...e.flyers]),h.current=e.nextToken??null,x(!!e.nextToken)}catch(e){u.A.error({functionName:"usePublicationsV2Fetch - fetchNextPage",error:e,additionalInfo:{countryCode:t.countryCode,postalCode:t.postalCode,pathFlyers:r,limit:o,message:"Error occurred while fetching a new page of publications"}})}};return(0,n.useEffect)(()=>{f(e.flyers),h.current=e.nextToken??null,x(!!e.nextToken)},[t,r]),{flyersData:d,fetchNextPage:y,hasNextPage:m}})(e);return e.v2Params?r:t}}}]);

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.