PageSourceSearch

https://www.seeed.cc/_next/static/chunks/8273-3b2bc41f1ea80f40.js

js seeed.cc collected 2026-10-02 06:17:29 UTC 8,685 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8273],{8273:(e,t,l)=>{"use strict";l.d(t,{default:()=>d});var a=l(42355),r=l(97550),s=l(97747),n=l(79933),i=l(73462),o=l(55475),c=l(61169);function d(e){let{data:t=[],postCardProps:l={showExcerpt:!0,showTags:!1,showAuthor:!1,showDate:!0,showImage:!0,linkTarget:"_self"},className:d="",swiperClassName:u="",loading:x=!1,loadingCount:p=4,slidesPerView:m=2,spaceBetween:h=14,autoplay:g=!1,navigation:f=!0,pagination:v=!0,loop:b=!1,breakpoints:j={480:{slidesPerView:2,spaceBetween:5},560:{slidesPerView:3,spaceBetween:5},820:{slidesPerView:3,spaceBetween:10},1080:{slidesPerView:4,spaceBetween:14}},...w}=e,y=(0,o.useRef)(null),[N,A]=(0,o.useState)(!0),[k,_]=(0,o.useState)(!1);return x?(0,a.jsx)("div",{className:"post-card-swiper-loading py-[14px] ".concat(d),children:(0,a.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(160px,1fr))] sm:grid-cols-[repeat(auto-fill,minmax(200px,1fr))] md:grid-cols-[repeat(auto-fill,minmax(220px,1fr))] lg:grid-cols-[repeat(auto-fill,minmax(240px,1fr))] gap-[8px] sm:gap-[10px] md:gap-[12px] lg:gap-[16px]",children:[...Array(p)].map((e,t)=>(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-md p-4 animate-pulse ",children:[(0,a.jsx)("div",{className:"aspect-[4/3] bg-gray-200 rounded mb-4"}),(0,a.jsx)("div",{className:"h-[10px] md:h-[12px] bg-gray-200 rounded-xl mb-2"}),(0,a.jsx)("div",{className:"h-[10px] md:h-[12px] bg-gray-200 rounded-xl w-3/4 mb-2"}),(0,a.jsx)("div",{className:"h-[10px] md:h-[12px] bg-gray-200 rounded-xl w-1/2"}),(0,a.jsx)("div",{className:"h-[20px] hidden md:block"})]},t))})}):t&&0!==t.length?(0,a.jsxs)("div",{className:"".concat(d," relative"),children:[(0,a.jsx)("div",{className:"posts-swiper",children:(0,a.jsx)(r.RC,{className:"post-swiper-container pb-12 ".concat(u),modules:[s.Vx,s.dK,s.Ij],spaceBetween:h,slidesPerView:m,navigation:!1,pagination:!!v&&{clickable:!0,dynamicBullets:!0},autoplay:g,loop:b,breakpoints:j,onSwiper:e=>{y.current=e,A(e.isBeginning),_(e.isEnd)},onReachBeginning:()=>A(!0),onReachEnd:()=>_(!0),onFromEdge:()=>{A(!1),_(!1)},...w,children:t.map(e=>(0,a.jsx)(r.qr,{children:(0,a.jsx)(n.default,{post:e,...l})},e.id))})}),f&&t.length&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.T,{variant:"flat",color:"primary",className:"prev_button ".concat(N?"hidden":""," absolute left-0 xl:translate-x-[calc(-100%-10px)] bg-white shadow-lg translate-y-[-50%]  top-[50%] z-[10] hover:text-active hover:border-active border border-transparent"),onPress:()=>{var e;return null==(e=y.current)?void 0:e.slidePrev()},isIconOnly:!0,isDisabled:N,radius:"full","aria-label":"Previous slide",children:(0,a.jsx)(i.BackIcon,{})}),(0,a.jsx)(c.T,{variant:"flat",color:"primary",isIconOnly:!0,isDisabled:k,radius:"full",className:"next_button ".concat(k?"hidden":""," absolute right-0 xl:translate-x-[calc(100%+10px)] bg-white  shadow-lg translate-y-[-50%] top-[50%] z-[10] hover:text-active hover:border-active border border-transparent"),onPress:()=>{var e;return null==(e=y.current)?void 0:e.slideNext()},"aria-label":"Next slide",children:(0,a.jsx)(i.GoIcon,{})})]})]}):null}l(99245),l(62184)},62184:()=>{},66877:(e,t,l)=>{"use strict";l.d(t,{Yq:()=>u});var a=l(96234),r=l(98038),s=l(31495),n=l(29325),i=l(96779),o=l(87255);let c={en:n.c,"zh-hans":i.g,zh:i.g,ja:o.ja},d=e=>c[e]||n.c,u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"yyyy-MM-dd";try{let n=(0,a.H)(e);if(!(0,r.f)(n))return e;let i=d(t);return(0,s.GP)(n,l,{locale:i})}catch(t){return console.error("Error formatting date:",t),e}}},78191:(e,t,l)=>{"use strict";function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;for(let l in"string"==typeof t&&(t=document.querySelector(t)||document.documentElement),e)t.style.setProperty(l,e[l])}l.d(t,{K8:()=>r,df:()=>a});let r="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},79933:(e,t,l)=>{"use strict";l.d(t,{default:()=>g});var a=l(42355),r=l(90930),s=l(43262),n=l.n(s),i=l(91738),o=l(79112),c=l(59278),d=l(66877),u=l(78191),x=l(41147),p=l(55475);let m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,l=e.replace(/<[^>]*>/g,"");return t?(0,i.Ay)(l.length>t?l.substring(0,t)+"...":l):(0,i.Ay)(l)},h=e=>{var t,l;if(null==e?void 0:e.solutionMeta)return e.solutionMeta.externalUrl?e.solutionMeta.externalUrl:"/solutions/".concat(e.solutionMeta.slug);
1if(null==e||null==(t=e.caseMeta)?void 0:t.url)return e.caseMeta.url;if(null==e||null==(l=e.customFields)?void 0:l.solution_json_data){try{let t=JSON.parse(e.customFields.solution_json_data);if(t.external_url)return t.external_url}catch(e){}return"/solutions/".concat(e.slug)}return"Page"===e.__typename&&x.m5.hasOwnProperty(e.slug)?(0,x.FD)(e.slug):"/".concat(x.c5.Post,"/").concat(e.slug)};function g(e){let{post:t,showExcerpt:l=!0,showTags:s=!0,showAuthor:i=!1,showDate:x=!1,showImage:g=!0,linkTarget:f,disableLink:v=!1,onClick:b,imageOverlay:j,className:w="",classNames:y={}}=e;(0,o.c)("post");let N=(0,c.Ym)(),A="function"==typeof v?v(t):v,k=h(t),_=k.startsWith("http"),I=f||(_?"_blank":void 0),P=e=>{null==b||b(t,e)},B=b&&A?{role:"button",tabIndex:0,onClick:P,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),null==b||b(t,e))}}:{},E=()=>{var e,n,o,c,h,f,v,b,w,A,k,_;return(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-md hover:shadow-lg transition-all duration-300 overflow-hidden h-full flex flex-col ".concat((null==y?void 0:y.card)||""),children:[g&&(0,a.jsxs)("div",{className:"relative bg-gray-50 w-full aspect-[4/3] sm:aspect-[252/161] overflow-hidden ".concat(y.imageWrapper||""),children:[(0,a.jsx)(r.default,{src:(null==(n=t.featuredImage)||null==(e=n.node)?void 0:e.mediaItemUrl)?null==(c=t.featuredImage)||null==(o=c.node)?void 0:o.mediaItemUrl:u.K8,loading:"lazy",blurDataURL:u.K8,placeholder:"blur",onError:e=>{e.target.src=u.K8},fill:!0,alt:(null==(f=t.featuredImage)||null==(h=f.node)?void 0:h.altText)||t.title,className:"object-cover w-full group-hover:scale-105 transition-transform duration-300 ".concat(y.image||"")}),j?"function"==typeof j?j(t):j:null,s&&(null==(v=t.tags)?void 0:v.nodes)&&t.tags.nodes.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-1 absolute bottom-[10px] px-[10px] w-full z-[10] ".concat(y.tagWrapper||""),children:t.tags.nodes.slice(0,6).map(e=>e.node?(0,a.jsx)(p.Fragment,{children:e.node},e.id||e.name):(0,a.jsx)("div",{className:"border  bg-active border-active  justify-center  text-center  text-white inline-flex items-center px-[2px] rounded text-[12px] ".concat(y.tag||""),title:e.name,children:(0,a.jsx)("div",{className:"scale-85 text-center origin-center",children:e.name})},e.id||e.name))})]}),(0,a.jsxs)("div",{className:"p-[10px] md:p-[12px] lg:p-[16px] xl:p-[20px] ".concat(y.content||""),children:[!1,(0,a.jsx)("div",{className:"min-h-[44px] mb-[5px]",children:(0,a.jsx)("h3",{title:t.title,className:"line-clamp-2 text-[13px] md:text-[14px] lg:text-[16px] font-semibold text-gray-900  group-hover:text-primary transition-colors leading-[1.4] ".concat(y.title||""),children:t.title})}),l&&t.excerpt&&(0,a.jsx)("div",{className:"min-h-[42px]",children:(0,a.jsx)("p",{title:t.excerpt,className:"line-clamp-2 text-[12px] md:text-[13px] lg:text-[14px] text-gray-600 mb-[5px] leading-[1.4] ".concat(y.excerpt||""),children:m(t.excerpt)})}),(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 sm:gap-3 text-xs sm:text-sm text-gray-500 mt-auto",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[i&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(null==(A=t.author)||null==(w=A.node)||null==(b=w.avatar)?void 0:b.url)&&(0,a.jsx)(r.default,{src:t.author.node.avatar.url,alt:t.author.node.name,width:16,height:16,className:"sm:w-5 sm:h-5 rounded-full"}),(0,a.jsx)("span",{className:"font-medium text-gray-700 truncate",children:null==(_=t.author)||null==(k=_.node)?void 0:k.name})]}),x&&(0,a.jsx)("time",{className:"text-[12px] italic whitespace-nowrap scale-85 origin-bottom-left",dateTime:t.date,children:(0,d.Yq)(t.date,N)})]})})]})]})};return(0,a.jsx)("article",{className:"group cursor-pointer h-full ".concat(w),"data-post-id":t.postId||t.pageId,...B,children:t.slug&&!A?_?(0,a.jsx)("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:"block h-full",onClick:b?P:void 0,children:(0,a.jsx)(E,{})}):(0,a.jsx)(n(),{...I?{target:I}:{},href:k,className:"block h-full",prefetch:!0,onClick:b?P:void 0,children:(0,a.jsx)(E,{})}):(0,a.jsx)("div",{className:"h-full",children:(0,a.jsx)(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.