PageSourceSearch

https://www.zendesk.com.mx/web-assets/_next/static/chunks/6143.9e994c02f11b9cf7.js

js zendesk.com.mx collected 2026-10-02 02:59:49 UTC 7,744 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6143],{75212:function(e,t,i){i.d(t,{Z:function(){return P}});var a=i(85893),n=i(45697),r=i.n(n),s=i(41290),l=i(15291),o=i(19521),u=i(56439),c=i(29573),d=i(1604),p=i(567),g=i(77832);let m=o.default.div.withConfig({componentId:"sc-144ffba0-0"})(["--imageMargin:0;--headingMargin:0;",""],e=>{let{size:t}=e;switch(t){case"medium":return(0,o.css)(["--imageMargin:16px;--headingMargin:12px;"]);case"large":return(0,o.css)(["--imageMargin:24px;--headingMargin:24px;"])}}),h=(0,o.default)(d.CardMediaImage).withConfig({componentId:"sc-144ffba0-1"})(["margin:0 0 var(--imageMargin);position:relative;min-width:25%;","{min-width:33%;}"],e=>{let{theme:t}=e;return(0,g.Z)("up","md",t)}),f=(0,o.default)(u.Heading).withConfig({componentId:"sc-144ffba0-2"})(["margin:0 0 var(--headingMargin);text-decoration-color:transparent;text-decoration-line:underline;text-underline-offset:0.1em;transition:text-decoration-color 100ms ",";"],e=>{let{theme:t}=e;return t.animations.easing.linear}),x=(0,o.default)(c.Text).withConfig({componentId:"sc-144ffba0-3"})(["-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;margin:0;overflow:hidden;"]),v=(0,o.default)(p.r).withConfig({componentId:"sc-144ffba0-4"})(["position:relative;"," &:hover,&:focus{","{text-decoration-color:",";}}"],e=>{let{size:t}=e;return"small"===t?(0,o.css)(["align-items:center;display:flex;gap:16px;"]):(0,o.css)(["display:block;"])},f,e=>{let{theme:t}=e;return t.palette.sesame400});var b=i(46209);let y=e=>{let{post:t,size:i="medium",imageProps:n,...r}=e;if(!t)return null;let{path:o,title:u,subtitle:c,tags:d,heroImage:p,heroImageAlt:g}=t,y={size:i,...r};return p=p||"https://web-assets.zendesk.com/is/image/zendesk/Generic_Post_Thumbnail",(null==o?void 0:o.endsWith("/"))||(o+="/"),(0,a.jsxs)(m,{...y,children:[(0,a.jsxs)(v,{isBare:!0,href:o,size:i,children:["xsmall"!==i&&(0,a.jsx)(h,{aspectRatio:"small"===i?"1/1":"4/3",children:(0,a.jsx)(l.E,{src:p,layout:"fill",alt:g||u,...n})}),(0,a.jsx)(f,{variant:"large"===i?"h2":"h6",override:"h3",children:(0,b.QA)(u,{textOnly:!0})}),c&&["medium","large"].includes(i)&&(0,a.jsx)(x,{variant:"large"===i?"":"caption",children:(0,b.QA)(c,{textOnly:!0})})]}
1),d&&"medium"===i&&(0,a.jsx)(s.TagContainer,{style:{marginTop:"16px"},children:d.slice(0,3).map((e,t)=>e.url&&e.title&&(0,a.jsx)(s.Tag,{href:e.url,children:e.title},e.url+t))})]})};y.propTypes={post:r().shape({path:r().string.isRequired,title:r().string.isRequired,subtitle:r().string,heroImage:r().string,heroImageAlt:r().string,tags:r().arrayOf(r().shape({title:r().string.isRequired,url:r().string.isRequired}))}).isRequired,size:r().oneOf(["xsmall","small","medium","large"])};var P=y},22565:function(e,t,i){i.d(t,{Z:function(){return w}});var a=i(85893),n=i(67294),r=i(45697),s=i.n(r),l=i(79198),o=i(52776),u=i(75212),c=i(11163);let d=e=>e.split("?")[0].split("#")[0].replace(/\/page\/\d+\/?$/,"")||"/",p=e=>{let{itemsPerPage:t,totalItems:i,onPage:a,initialPage:r=1}=e,s=(0,c.useRouter)(),l=Math.ceil(i/t),[o,u]=(0,n.useState)(!1),[p,g]=(0,n.useState)(r),m=(0,n.useCallback)(async e=>{if(!e||e<1||e>l)return;u(!0),await (null==a?void 0:a(e)),g(e);let t=d(s.asPath).replace(/\/$/,""),i=1===e?"".concat(t,"/"):"".concat(t,"/page/").concat(e,"/");s.push(i,void 0,{shallow:!0}),u(!1)},[l,a,s]);return{currentPage:p,totalPages:l,goToPage:m,isLoading:o}};var g=i(19521),m=i(77832),h=i(7158);let f=g.default.div.withConfig({componentId:"sc-76e38194-0"})(["transition:opacity 0.1s ease;",";"],e=>{let{$isLoading:t}=e;return t&&(0,g.css)(["opacity:0.8;"])}),x=g.default.div.withConfig({componentId:"sc-76e38194-1"})(["animation:pulse 2s ease-in-out infinite;background:",";display:none;height:100%;left:0;position:absolute;top:0;width:101%;z-index:3;@keyframes pulse{0%{opacity:0.3;}50%{opacity:0.8;}100%{opacity:0.3;}}",";"],e=>{let{theme:t}=e;return t.colors.background},e=>{let{$isLoading:t}=e;return t&&(0,g.css)(["display:block;"])}),v=g.default.div.withConfig({componentId:"sc-76e38194-2"})(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;","{grid-template-columns:repeat(4,minmax(0,1fr));}"],e=>{let{theme:t}=e;return(0,m.Z)("up","md",t)}),b=(0,g.default)(h.Pagination).withConfig({componentId:"sc-76e38194-3"})(["margin:48px auto 0;"]);var y=i(67558);let P=e=>{let{posts:t,postCount:i=4,totalPosts:n,isPaginated:r=!1,carouselLabel:s,onPage:c,initialPage:d,id:g,...m}=e,{t:h}=(0,l.Z)("blogArchive");(0,y.Z)(g&&{"@type":"ItemList",itemListElement:null==t?void 0:t.map((e,t)=>({"@type":"ListItem",position:t+1,item:{"@type":"BlogPosting",headline:e.title,url:e.path,image:e.heroImage}}))},{id:"PostList-".concat(g)});let{currentPage:P,totalPages:w,goToPage:j,isLoading:C}=p({itemsPerPage:i,totalItems:n,onPage:c,initialPage:d});if(!t)return null;let I={"data-nmw-id":"blog.PostList",id:g,...m},k=[...t].splice((P-1)*i,i),L=e=>{e.preventDefault(),j(Number.parseInt(e.target.closest("a").href.replace(/.+\/page\/(\d+).*/,"$1"),10))};return r?(0,a.jsxs)(f,{$isLoading:C,...I,children:[(0,a.jsx)(v,{children:t.map((e,t)=>(0,a.jsx)(u.Z,{post:e},t))}),(0,a.jsx)(b,{currentPage:P,totalPages:w,format:"/blog/page/%#%/",nextText:h("pagination_next"),prevText:h("pagination_previous"),listItemProps:{onClick:L},previousProps:{onClick:L},nextProps:{onClick:L}}),(0,a.jsx)(x,{$isLoading:C})]}):(0,a.jsx)(f,{...I,children:(0,a.jsx)(o.Carousel,{isOverflowHidden:!1,slidesToShow:4,label:s,children:k.map((e,t)=>(0,a.jsx)(u.Z,{post:e},t))})})};P.propTypes={posts:s().arrayOf(s().shape(u.Z.propTypes.post)).isRequired,postCount:s().number,isPaginated:s().bool,carouselLabel:s().string,totalPosts:s().number,onPage:s().func,initialPage:s().number};var w=P},6143:function(e,t,i){i.r(t),i.d(t,{default:function(){return v}});var a=i(85893),n=i(67294),r=i(11163),s=i(45697),l=i.n(s),o=i(79198),u=i(56439),c=i(32690),d=i(87202),p=i(90004);let g=async e=>{let t,{currentPath:i="/blog/",currentPage:a=1,perPage:n=8,isPreview:r=!1,options:s={}}=e;if(!i||null==a||a<1)return null;let l=i.replace(/[?#].*$/,"").replace(/^(.+?\/)(tag|page).+$/g,"$1"),o="/api/query-blog/?".concat(new URLSearchParams({currentPath:l,offset:n*(a-1),locale:c.Multilingual.instance.locale,isPreview:r,options:JSON.stringify(s)}));try{var u;let e=await (0,p.rQ)(o);(null==e?void 0:e.status)===200&&(null==e?void 0:null===(u=e.data)||void 0===u?void 0:u.stories)?t=e.data:console.log("fetchPaginatedStoryListing: response status was ".concat(null==e?void 0:e.status))}catch(e){return console.error("fetchPaginatedStoryListing: Error getting page model for ".concat(o),e.message),null}return t};var m=i(23202),h=i(38127),f=i(22565);let x=e=>{let{model:t,...i}=e,s=(0,r.useRouter)(),{stories:l,pageInfo:c,tags:p}=t,{offset:x,limit:v,totalMatches:b}=c||{},{paginationData:y,currentPage:P}=(0,n.useContext)(m.z)||{},w=(null==y?void 0:y.stories)&&P>1?y.stories:l,{t:j}
1=(0,o.Z)("blogArchive"),[C,I]=(0,n.useState)(w||[]),k={isPaginated:!0,posts:(0,n.useMemo)(()=>C&&0!==C.length?C.map(e=>{let{link:t,title:i,description:a,heroImage:n,tags:r}=e;return{path:null==t?void 0:t.path,title:i,subtitle:a,heroImage:(0,d.Vh)(n,{wid:480}),heroImageAlt:(null==n?void 0:n.alt)||i,tags:null==r?void 0:r.map(e=>e.title&&e.slug&&{title:e.title,url:"/blog/tag/".concat(e.slug,"/")})}}):[],[C]),postCount:v,totalPosts:b,offset:x,initialPage:P||1,onPage:async e=>{let t=await g({currentPath:null==s?void 0:s.asPath,currentPage:e,perPage:v,options:{tags:p}});(null==t?void 0:t.stories)&&I(t.stories)},...i};return(0,a.jsx)(h.X,{heading:(0,a.jsx)(u.Heading,{children:j("supertitle")}),children:(0,a.jsx)(f.Z,{...k})})};x.displayName="PostListPaginated",x.propTypes={model:l().shape({stories:l().arrayOf(l().object),pageInfo:l().object}).isRequired};var v=x}}]);

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.