PageSourceSearch

https://www.1x.tech/_next/static/chunks/pages/discover-452874dc3b059386.js

js 1x.tech collected 2026-10-02 03:13:43 UTC 7,475 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cbabb068-db40-4190-b066-4dfcca3f8c62",e._sentryDebugIdIdentifier="sentry-dbid-cbabb068-db40-4190-b066-4dfcca3f8c62")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2626],{55421:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/discover",function(){return i(24736)}])},12616:function(e,t,i){"use strict";i.d(t,{i:function(){return s}});var l=i(67294),n=i(91409);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,[t,i]=(0,l.useState)(0),[s,a]=(0,l.useState)(0),[d,o]=(0,l.useState)(!1),[r,c]=(0,l.useState)(!1),[x,u]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let t=(0,n.Z)(()=>{let e=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight);d&&e>=800?(c(!0),u(!1)):!d&&e<800&&(u(!0),c(!1)),i(e),a(t),o(e<800)},e,!0);return window.addEventListener("resize",t,!1),t(),()=>window.removeEventListener("resize",t,!1)},[e,d]),{width:t,height:s,transitionedFromMobile:r,transitionedToMobile:x}}},24736:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return v},default:function(){return g}});var l=i(85893),n=i(27614),s=i(90998),a=i(50894),d=i(67294),o=i(90512),r=i(98842),c=i(57016),x=i(2261);i(26182);var u=i(12616),p=e=>{var t;let{data:i}=e,n=(0,d.useRef)(null),[s,a]=(0,d.useState)(0),[r,p]=(0,d.useState)(32),[f,h]=(0,d.useState)(!1),[v,g]=(0,d.useState)(!1),[m,w]=(0,d.useState)(!0),j=(0,d.useRef)(null),{width:y}=(0,u.i)();return(0,d.useEffect)(()=>{if(v){var e;j.current.style.maxHeight="unset",j.current.style.maxHeight="".concat(null===(e=j.current)||void 0===e?void 0:e.offsetHeight,"px")}},[v,y]),(0,d.useEffect)(()=>{y>=1024?p((y-1024)/2):p(32)},[y]),(0,l.jsxs)("section",{className:(0,o.W)("lg:px-[0px] lg:max-w-[1024px] lg:mx-auto lg:w-full"),children:[(0,l.jsxs)("div",{className:(0,o.W)("flex px-[32px] justify-between items-center","ml:px-[0px]"),children:[(0,l.jsx)("h2",{className:(0,o.W)(" text-[24px] leading-[28px] tracking-[-0.03em] font-medium text-discoveryDark capitalize"," lg:text-[30px] lg:leading-[34px]"),children:null==i?void 0:i.name}),(0,l.jsxs)("div",{className:(0,o.W)("flex gap-x-[12px]"),children:[(0,l.jsx)("button",{disabled:0==s,onClick:function(){if(null==n?void 0:n.current){var e;null===(e=n.current)||void 0===e||e.slidePrev()}},className:(0,o.W)("flex items-center justify-center w-[20px] h-[20px]",0==s&&"opacity-50"),children:(0,l.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,o.W)("rotate-[180deg]"),children:[(0,l.jsx)("g",{"clip-path":"url(#clip0_5495_124)",children:(0,l.jsx)("path",{d:"M13.75 10L7.5 16.25L6.625 15.375L12 10L6.625 4.625L7.5 3.75L13.75 10Z",fill:"#4F4749"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5495_124",children:(0,l.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,l.jsx)("button",{onClick:function(){if(null==n?void 0:n.current){var e;null===(e=n.current)||void 0===e||e.slideNext()}},className:(0,o.W)("flex items-center justify-center w-[20px] h-[20px]",s==(null==i?void 0:i.posts.length)-1&&y<1024&&"opacity-50 pointer-events-none",s==(null==i?void 0:i.posts.length)-2&&y>=1024&&"opacity-50 pointer-events-none"),children:(0,l.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("g",{"clip-path":"url(#clip0_5495_124)",children:(0,l.jsx)("path",{d:"M13.75 10L7.5 16.25L6.625 15.375L12 10L6.625 4.625L7.5 3.75L13.75 10Z",fill:"#4F4749"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5495_124",children:(0,l.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})})]})]}),(0,l.jsx)("div",{ref:j,className:(0,o.W)("overflow-y-hidden pt-[32px] h-full","lg:px-[32px]","ml:px-[0px]"),children:(0,l.jsx)(x.tq,{onBeforeInit:e=>{n.current=e,g(!0)},spaceBetween:12,slidesPerView:"auto",speed:500,slidesOffsetBefore:32,slidesOffsetAfter:32,onSlideChange:e=>{y>=1024&&h(!0),e.realIndex===(null==i?void 0:i.posts.length)-1?e.allowSlideNext=!1:e.allowSlideNext=!0,a(e.activeIndex)},breakpoints:{1024:{slidesOffsetBefore:0,slidesOffsetAfter:0}},children:null==i?void 0:null===(t=i.posts)||void 0===t?void 0:t.map((e,t)=>(0,l.jsx)(x.o5,{className:(0,o.W)("!w-fit"),children:(0,l.jsx)(c.Z,{data:e,isInSli
1der:!0,width:y,index:t,currentIndex:s,slidesFullOpacity:f},t)},t))})})]})},f=i(55386),h=e=>{var t,i,n,s;let{data:a}=e,[x,u]=(0,d.useState)(!1),[h,v]=(0,d.useState)(!1),g=["Stories","Company","product","Research"],m=null==a?void 0:null===(t=a.tagPosts)||void 0===t?void 0:t.filter(e=>e.name).sort((e,t)=>g.indexOf(e.name)-g.indexOf(t.name));return(0,d.useEffect)(()=>{x&&setTimeout(()=>{v(!0)},500)},[x]),(0,l.jsxs)(r.Z,{data:a,children:[(0,l.jsx)(f.E.section,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.3}},exit:{opacity:0,transition:{duration:.3}},className:(0,o.W)("px-[32px] mt-[45px]","lg:max-w-[1024px] lg:mx-auto lg:mt-[0px]","ml:px-[0px]"),children:(0,l.jsx)("div",{className:(0,o.W)("flex gap-y-[80px] flex-col mt-[45px]","lg:mt-[0px]"),children:null==a?void 0:null===(i=a.latestPosts.slice(0,3))||void 0===i?void 0:i.map((e,t)=>(0,l.jsx)(c.Z,{data:e,isFeatured:!0},t))})},"discover-home-page"),(0,l.jsxs)(f.E.section,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.3}},exit:{opacity:0,transition:{duration:.3}},className:(0,o.W)("flex flex-col gap-y-[120px] mt-[105px] overflow-x-hidden","lg:gap-y-[80px] lg:mt-[80px]"),children:[null==m?void 0:null===(n=m.slice(0,2))||void 0===n?void 0:n.map((e,t)=>{var i;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p,{data:e},t),t+4<(null==a?void 0:null===(i=a.latestPosts)||void 0===i?void 0:i.length)&&1!==t&&(0,l.jsx)("div",{className:(0,o.W)("px-[32px]","lg:max-w-[1024px] lg:mx-auto lg:w-full","ml:px-[0px]"),children:(0,l.jsx)(c.Z,{data:null==a?void 0:a.latestPosts[t+4],isFeatured:!0},"index"+t)})]})}),x&&(0,l.jsx)("div",{className:(0,o.W)("px-[32px]","lg:max-w-[1024px] lg:mx-auto lg:w-full","ml:px-[0px]"),children:(0,l.jsx)(c.Z,{data:null==a?void 0:a.latestPosts[5],isFeatured:!0})}),x&&(null===(s=m.slice(2,4))||void 0===s?void 0:s.map((e,t)=>{var i;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p,{data:e},t),t+5<(null==a?void 0:null===(i=a.latestPosts)||void 0===i?void 0:i.length)&&(null==a?void 0:a.latestPosts[t+6])&&(0,l.jsx)("div",{className:(0,o.W)("px-[32px]","lg:max-w-[1024px] lg:mx-auto lg:w-full","ml:px-[0px]"),children:(0,l.jsx)(c.Z,{data:null==a?void 0:a.latestPosts[t+6],isFeatured:!0},"index"+t)})]})})),(0,l.jsx)("div",{className:(0,o.W)("px-[32px]","lg:flex lg:justify-center",h&&"hidden"),children:(0,l.jsx)("button",{onClick:()=>u(!0),className:(0,o.W)("w-full py-[18.5px] text-discoveryDark text-[12px] leading-[19.2px]  border-[1px] border-discoveryDark/30 hover:border-discoveryDark transition-all","lg:max-w-[256px]",x&&"opacity-0 pointer-events-none"),children:"View More"})})]},"discover-home-page-carousel")]})},v=!0;function g(e){let[t]=(0,s.y)(e.discoverHomePage,n.Z8);return(0,l.jsx)(a.A,{seo:e.seo,globalSettings:e.globalSettings,children:(0,l.jsx)(h,{data:t})})}}},function(e){e.O(0,[3653,2962,8388,2491,7080,7614,8818,2888,9774,179],function(){return e(e.s=55421)}),_N_E=e.O()}]);

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.