PageSourceSearch

https://clipopai.vercel.app/_next/static/chunks/5daddde19e74ea21.js

js clipopai.vercel.app collected 2026-10-03 05:16:51 UTC 15,073 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15288,e=>{"use strict";var t=e.i(43171),a=e.i(75157);function r({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,a.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})}function s({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function n({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("leading-none font-semibold",e),...r})}function i({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-muted-foreground text-sm",e),...r})}function o({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-6",e),...r})}e.s(["Card",()=>r,"CardContent",()=>o,"CardDescription",()=>i,"CardHeader",()=>s,"CardTitle",()=>n])},87486,e=>{"use strict";var t=e.i(43171),a=e.i(11558),r=e.i(94237),s=e.i(75157);let n=(0,r.cva)("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function i({className:e,variant:r,asChild:i=!1,...o}){let l=i?a.Slot:"span";return(0,t.jsx)(l,{"data-slot":"badge",className:(0,s.cn)(n({variant:r}),e),...o})}e.s(["Badge",()=>i])},52569,e=>{"use strict";let t=(0,e.i(66310).default)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",()=>t])},88018,e=>{"use strict";var t=e.i(52569);e.s(["ChevronDown",()=>t.default])},44004,e=>{"use strict";var t=e.i(73406);let a=null;function r(){return!0}function s(){return{url:"https://zqvcgzypiirkultrlhll.supabase.co",anonKey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InpxdmNnenlwaWlya3VsdHJsaGxsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzY5NTY4NDgsImV4cCI6MjA5MjUzMjg0OH0.CaFjfkjHnHQ194A0621EnLMidZAWVOJtlHAauaOE1lg"}}function n(e){let{url:r,anonKey:n}=s();return r&&n?e?(0,t.createClient)(r,n,{global:{headers:{Authorization:`Bearer ${e}`}},db:{timeout:6e4},auth:{autoRefreshToken:!0,persistSession:!1,detectSessionInUrl:!1,flowType:"implicit"}}):(a||(a=(0,t.createClient)(r,n,{db:{timeout:6e4},auth:{autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"}}),window.__supabaseClient=a),a):{auth:{getSession:async()=>({data:{session:null}}),getUser:async()=>({data:{user:null}}),signInWithPassword:async()=>({data:{session:null},error:Error("Not configured")}),signUp:async()=>({data:{session:null},error:Error("Not configured")}),signInWithOAuth:async()=>({data:{url:null},error:Error("Not configured")}),signOut:async()=>({}),setSession:async()=>({data:{session:null},error:null})},from:()=>({select:()=>({eq:()=>({maybeSingle:async()=>({data:null})})}),insert:async()=>({error:null})})}}e.s(["getSupabaseClient",()=>n,"getSupabaseCredentials",()=>s,"isSupabaseConfigured",()=>r])},24414,e=>{"use strict";var t=e.i(43171),a=e.i(48897),r=e.i(15288),s=e.i(87486),n=e.i(19455),i=e.i(47747),o=e.i(6219),l=e.i(20736),d=e.i(79680);let u=(0,e.i(66310).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var c=e.i(75051),m=e.i(88018),h=e.i(77240),g=e.i(44004),f=e.i(15292);function x(){let{t:x,locale:p}=(0,i.useLocale)(),b=(0,f.normalizeLocale)(p),[v,j]=(0,a.useState)([]),[y,N]=(0,a.useState)(!0),[w,k]=(0,a.useState)(1),[C,z]=(0,a.useState)(null),[S,I]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{let t=!1;return async function a(){let a=[...(0,f.getStoredBlogPosts)(b),...(0,f.getBuiltInBlogPosts)(b)];if(!(0,g.isSupabaseConfigured)()){j(a),N(!1);return}try{let{getSupabaseClient:r}=await e.A(19615),s=r(),n=await s.from("blogs").select("*").eq("is_published",!0).order("created_at",{ascending:!1}).limit(60),i=n.data,o=n.error;if(o)throw o;if(!i||0===i.length){j(a),N(!1);return}let l=new Map;for(let e of i){let t=String(e.parent_id||e.id||"");l.has(t)||l.set(t,[]),l.get(t).push(e)}let d=[];for(let[,e]of l){let t=e.find(e=>e.locale===b);t||(t=e.find(e=>"en"===e.locale||!e.locale)),t||(t=e.find(e=>(function(e){if(!e||!e.trim())return"en";let t=e.trim(),a={zh:(t.match(/[\u4e00-\u9fff]/g)||[]).length,ja:(t.match(/[\u3040-\u309f\u30a0-\u30ff]/g)||[]).length,ko:(t.match(/[\uac00-\ud7af\u1100-\u11ff]/g)||[]).length,ar:(t.match(/[\u0600-\u06ff]/g)||[]).length,he:(t.match(/[\u0590-\u05ff]/g)||[]).length,th:(t.match(/[\u0e00-\u0e7f]/g)||[]).length,hi:(t.match(/[\u0900-\u097f]/g)||[]).length,ru:(t.match(/[\u0400-\u04ff]/g)||[]).length,bn:(t.match(/[\u0980-\u09ff]/g)||[]).length,ta:(t.match(/[\u0b80-\u0bff]/g)||[]).length,te:(t.match(/[\u0c00-\u0c7f]/g)||[]).length},r="en",s=0;for(let[e,t]of Object.entries(a))t>s&&(s=t,r=e);
1if(0===s){if(/[\u00c0-\u00ff\u0100-\u017f]|đ|Đ/ig.test(t))return"vi";let e=t.toLowerCase();return/\b(der|die|das|und|ist|ein|eine|für|mit|auf|aus|bei|noch|auch|wird|können|sollte)\b/i.test(e)?"de":/\b(le|la|les|de|des|du|et|est|un|une|pour|dans|avec|sur|pas|que|qui|comment)\b/i.test(e)?"fr":/\b(el|la|los|las|de|en|y|que|por|con|para|una|como|pero|más|este|esta|del)\b/i.test(e)?"es":/\b(o|a|os|as|de|em|e|que|um|uma|para|com|não|por|mais|como|mas|dos|das)\b/i.test(e)?"pt":/\b(il|la|le|lo|gli|di|e|in|che|per|un|una|con|non|più|anche|questo|questa)\b/i.test(e)?"it":/\b(de|het|een|van|en|in|is|dat|op|te|zijn|niet|met|ook|voor|maar|hun)\b/i.test(e)?"nl":/\b(det|den|de|og|er|en|et|at|til|med|på|af|har|som|kan|ikke|vil)\b/i.test(e)?"da":/\b(det|den|de|og|er|en|et|å|til|med|på|av|har|som|kan|ikke|vil|skal)\b/i.test(e)?"no":/\b(det|den|de|och|är|en|ett|att|till|med|på|av|har|som|kan|inte|ska|eller)\b/i.test(e)?"sv":/\b(yang|dan|di|ke|dari|ini|itu|dengan|untuk|tidak|akan|pada|adalah|seperti|juga|bisa)\b/i.test(e)?"id":/\b(ve|bir|bu|da|için|ile|ne|olarak|gibi|daha|her|en|çok|yeni|ancak|aynı)\b/i.test(e)?"tr":/\b(i|w|na|z|do|się|nie|że|to|jest|od|po|za|przez|tak|ale|czy)\b/i.test(e)?"pl":/\b(ja|on|ei|oli|se|ne|tämä|joka|hän|että|mutta|myös|kuin|niin|vain|voida)\b/i.test(e)?"fi":"en"}return"zh"===r?/[\u3400-\u4dbf\uf900-\ufaff]|國|說|學|開|電|網|點|書|車|長|門|問|時|東|買|賣|過|還|裡|學|對|話|機|經|動|現|關|將|區|華|總|請|產|單|種|場|樂|壓|選|據|結|構|應|認|質|運|爭|歷|養|據|擔|據|據/i.test(t)?"zh-Hant":"zh":r})(String(e.title||""))===b)),t||(t=[...e].sort((e,t)=>new Date(t.created_at||0).getTime()-new Date(e.created_at||0).getTime())[0]),d.push(t)}d.sort((e,t)=>new Date(t.created_at||0).getTime()-new Date(e.created_at||0).getTime());let u=d.map(e=>(0,f.normalizeBlogRow)(e));if(0===u.length)for(let e of(0,f.getStoredBlogPosts)(b)){let t=(e.title||"").trim().toLowerCase();u.some(e=>(e.title||"").trim().toLowerCase()===t)||u.push(e)}0===u.length&&u.push(...(0,f.getBuiltInBlogPosts)(b)),t||j(u)}catch{t||j(a)}finally{t||N(!1)}}(),()=>{t=!0}},[b]),y)return(0,t.jsx)("div",{className:"min-h-screen bg-muted/30",children:(0,t.jsx)("div",{className:"container mx-auto px-4 py-16",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,t.jsx)("div",{className:"h-9 w-48 bg-muted animate-pulse rounded mb-4"}),(0,t.jsx)("div",{className:"h-4 w-72 bg-muted animate-pulse rounded mb-12"}),(0,t.jsx)("div",{className:"grid gap-8",children:Array.from({length:3}).map((e,a)=>(0,t.jsx)(r.Card,{className:"overflow-hidden",children:(0,t.jsxs)("div",{className:"md:flex",children:[(0,t.jsx)("div",{className:"h-48 md:w-1/3 bg-muted animate-pulse"}),(0,t.jsxs)("div",{className:"p-6 md:w-2/3",children:[(0,t.jsx)("div",{className:"h-4 w-24 bg-muted animate-pulse rounded mb-3"}),(0,t.jsx)("div",{className:"h-6 w-3/4 bg-muted animate-pulse rounded mb-4"}),(0,t.jsx)("div",{className:"h-4 w-full bg-muted animate-pulse rounded mb-2"}),(0,t.jsx)("div",{className:"h-4 w-5/6 bg-muted animate-pulse rounded"})]})]})},a))})]})})});let B=new Map;for(let e of v)e.category&&B.set(e.category,(B.get(e.category)||0)+1);let T=Array.from(B.keys()),M=C?v.filter(e=>e.category===C):v,$=Math.ceil(M.length/10),H=(w-1)*10,A=M.slice(H,H+10),_=e=>{k(e),window.scrollTo({top:0,behavior:"smooth"})};return(0,t.jsx)("div",{className:"min-h-screen bg-muted/30",children:(0,t.jsx)("div",{className:"container mx-auto px-4 py-16",children:(0,t.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,t.jsx)("h1",{className:"text-4xl font-bold mb-4",children:x("blog.title")}),(0,t.jsx)("p",{className:"text-muted-foreground mb-8",children:x("blog.subtitle")}),T.length>0&&(0,t.jsxs)("div",{className:"mb-12",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-border"}),(0,t.jsx)("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"zh"===b?"分类筛选":"zh-Hant"===b?"分類篩選":"Filter by Category"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-border"})]}),(0,t.jsx)("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:S?"1000px":"120px"},children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-2.5",children:[(0,t.jsxs)("button",{onClick:()=>{z(null),k(1)},className:`group inline-flex items-center gap-1.5 px-4 py-2 rounded-full text-sm font-medium border transition-all duration-200 ${null===C?"bg-primary text-primary-foreground border-primary shadow-sm scale-105":"bg-background text-muted-foreground border-border hover:border-primary/40 hover:text-foreground hover:shadow-sm"}`,children:[(0,t.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})}),"zh"===b||"zh-Hant"===b?"全部":"All",(0,t.jsx)("span",{className:`text-xs px-1.5 rounded-full ${null===C?"bg-primary-foreground
1/20 text-primary-foreground":"bg-muted text-muted-foreground group-hover:bg-muted/80"}`,children:v.length})]}),(S?T:T.slice(0,8).concat(C&&!T.slice(0,8).includes(C)?[C]:[])).map(e=>(0,t.jsxs)("button",{onClick:()=>{z(C===e?null:e),k(1)},className:`group inline-flex items-center gap-1.5 px-4 py-2 rounded-full text-sm font-medium border transition-all duration-200 ${C===e?"bg-primary text-primary-foreground border-primary shadow-sm scale-105":"bg-background text-muted-foreground border-border hover:border-primary/40 hover:text-foreground hover:shadow-sm"}`,children:[(0,t.jsx)("span",{className:`w-1.5 h-1.5 rounded-full transition-colors ${C===e?"bg-primary-foreground":"bg-muted-foreground/40 group-hover:bg-primary/60"}`}),e,(0,t.jsx)("span",{className:`text-xs px-1.5 rounded-full ${C===e?"bg-primary-foreground/20 text-primary-foreground":"bg-muted text-muted-foreground group-hover:bg-muted/80"}`,children:B.get(e)||0})]},e))]})}),T.length>8&&(0,t.jsxs)("button",{onClick:()=>I(!S),className:"mt-3 inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[S?"zh"===b||"zh-Hant"===b?"收起":"Collapse":"zh"===b?`展开剩余 ${T.length-8} 个标签`:"zh-Hant"===b?`展開剩餘 ${T.length-8} 個標籤`:`+${T.length-8} more`,(0,t.jsx)(m.ChevronDown,{className:`h-4 w-4 transition-transform duration-300 ${S?"rotate-180":""}`})]})]}),0===M.length?(0,t.jsxs)("div",{className:"text-center py-16",children:[(0,t.jsx)(d.FileText,{className:"h-12 w-12 mx-auto text-muted-foreground mb-4"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:x("blog.noPosts")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid gap-8",children:A.map(e=>(0,t.jsx)(r.Card,{className:"overflow-hidden hover:shadow-lg transition-shadow",children:(0,t.jsxs)("div",{className:"md:flex",children:[(0,t.jsx)("div",{className:"relative h-48 md:min-h-[240px] md:w-1/3",children:(0,t.jsx)("img",{src:e.cover_image||(0,f.getDefaultCoverImage)(e.category),alt:e.title,loading:"lazy",decoding:"async",className:"absolute inset-0 w-full h-full object-cover",onError:t=>{t.currentTarget.src=(0,f.getDefaultCoverImage)(e.category)}})}),(0,t.jsxs)("div",{className:"p-6 md:w-2/3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-3",children:[(0,t.jsx)(s.Badge,{variant:"secondary",children:e.category}),(0,t.jsxs)("span",{className:"text-sm text-muted-foreground flex items-center gap-1",children:[(0,t.jsx)(o.Calendar,{className:"h-4 w-4"}),(e=>{if(!e)return"";let t="zh"===b?"zh-CN":"zh-Hant"===b?"zh-TW":"en"===b?"en-US":b,a=new Date(e);return Number.isNaN(a.getTime())?"":a.toLocaleString(t,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})})(e.created_at)]})]}),(0,t.jsx)("h2",{className:"text-2xl font-bold mb-3",children:(0,t.jsx)(h.default,{href:(0,f.buildBlogUrl)(e),className:"text-primary hover:text-primary/80 transition-colors",children:e.title})}),(0,t.jsxs)("p",{className:"text-muted-foreground mb-4 line-clamp-3",children:[(e.summary||(0,f.stripHtml)(e.content)).substring(0,200),e.summary||e.content.length>200?"...":""]}),(0,t.jsx)(n.Button,{variant:"link",className:"p-0 h-auto",asChild:!0,children:(0,t.jsxs)(h.default,{href:(0,f.buildBlogUrl)(e),className:"flex items-center gap-1",children:[x("blog.readMore"),(0,t.jsx)(l.ArrowRight,{className:"h-4 w-4"})]})})]})]})},e.id))}),$>1&&(0,t.jsxs)("div",{className:"mt-12 flex items-center justify-center gap-2",children:[(0,t.jsxs)(n.Button,{variant:"outline",size:"sm",onClick:()=>_(w-1),disabled:1===w,className:"flex items-center gap-1",children:[(0,t.jsx)(u,{className:"h-4 w-4"}),"zh"===b?"上一页":"Prev"]}),(()=>{let e=[],t=Math.max(1,w-Math.floor(2.5)),a=Math.min($,t+5-1);a-t+1<5&&(t=Math.max(1,a-5+1));for(let r=t;r<=a;r++)e.push(r);return e})().map(e=>(0,t.jsx)(n.Button,{variant:w===e?"default":"outline",size:"sm",onClick:()=>_(e),children:e},e)),(0,t.jsxs)(n.Button,{variant:"outline",size:"sm",onClick:()=>_(w+1),disabled:w===$,className:"flex items-center gap-1",children:["zh"===b?"下一页":"Next",(0,t.jsx)(c.ChevronRight,{className:"h-4 w-4"})]}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground ml-3",children:"zh"===b?`第 ${w}/${$} 页,共 ${M.length} 篇`:`Page ${w}/${$}, ${M.length} articles`})]})]})]})})})}e.s(["default",()=>x],24414)}]);

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.