PageSourceSearch

https://clawbox.com/_next/static/immutable/chunks/42pan_oyu2ai9.js

js clawbox.com collected 2026-10-04 04:02:48 UTC 55,448 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,855501,e=>{"use strict";var t=e.i(607887),r=e.i(463099),s=e.i(258102),a=e.i(450281),l=e.i(486776),n=e.i(538832);function o({locale:e,placeholder:a="Search skills...",initialValue:l="",onSearch:i,showSuggestions:d=!0,skills:c=[],dark:x=!1}){let[h,m]=(0,r.useState)(l),[u,g]=(0,r.useState)([]),[f,p]=(0,r.useState)(!1),[b,v]=(0,r.useState)(-1),[w,j]=(0,r.useState)(null),[y,N]=(0,r.useState)(!1),k=(0,r.useRef)(null),C=(0,r.useRef)(null),L=(0,s.useRouter)();(0,r.useEffect)(()=>{N(!0)},[]),(0,r.useEffect)(()=>{if(h.length>=2&&d&&c.length>0){let e=c.filter(e=>e.name.toLowerCase().includes(h.toLowerCase())||e.category.toLowerCase().includes(h.toLowerCase())).slice(0,5);g(e),p(e.length>0)}else g([]),p(!1);v(-1)},[h,c,d]);let $=(0,r.useCallback)(()=>{if(!C.current)return;let e=C.current.getBoundingClientRect();j({top:e.bottom+window.scrollY+8,left:e.left+window.scrollX,width:e.width})},[]);(0,r.useEffect)(()=>{if(f)return $(),window.addEventListener("scroll",$,!0),window.addEventListener("resize",$),()=>{window.removeEventListener("scroll",$,!0),window.removeEventListener("resize",$)}},[f,$]);let E=f&&u.length>0&&w&&(0,t.jsx)("div",{role:"listbox",style:{position:"absolute",top:w.top,left:w.left,width:w.width},className:`rounded-xl overflow-hidden shadow-2xl shadow-black/50 z-[200] ${x?"bg-gray-900/95 backdrop-blur-xl border border-white/10":"bg-white border border-gray-300"}`,children:u.map((r,s)=>(0,t.jsxs)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),L.push(`/${e}/store/app/${r.slug}`),p(!1)},className:`w-full px-4 py-3 text-left flex items-center gap-3 transition-colors ${x?`hover:bg-orange-500/10 ${s===b?"bg-orange-500/10":""}`:`hover:bg-gray-100 ${s===b?"bg-gray-100":""}`}`,children:[(0,t.jsx)("svg",{className:"w-4 h-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,t.jsx)("span",{className:x?"text-white":"text-gray-900",children:r.name}),(0,t.jsx)("span",{className:"text-xs ml-auto text-gray-500",children:r.category})]},r.slug))});return(0,t.jsxs)("form",{ref:C,onSubmit:t=>{t.preventDefault(),h.trim()&&(i?i(h.trim()):L.push(`/${e}/store/search?q=${encodeURIComponent(h.trim())}`),p(!1))},className:"relative w-full",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{ref:k,type:"text",value:h,onChange:e=>m(e.target.value),onKeyDown:t=>{if("ArrowDown"===t.key)t.preventDefault(),v(e=>Math.min(e+1,u.length-1));else if("ArrowUp"===t.key)t.preventDefault(),v(e=>Math.max(e-1,-1));else if("Enter"===t.key&&b>=0){t.preventDefault();let r=u[b];L.push(`/${e}/store/app/${r.slug}`),p(!1)}else"Escape"===t.key&&p(!1)},onFocus:()=>u.length>0&&p(!0),onBlur:()=>setTimeout(()=>p(!1),150),placeholder:a,className:`w-full px-4 py-3.5 pl-12 rounded-xl transition-colors focus:outline-none focus:ring-2 focus:ring-orange-500/50 ${x?"bg-black/30 border border-white/10 text-white placeholder-gray-500 focus:border-orange-500/30":"bg-gray-100 border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-orange-400"}`}),(0,t.jsx)("svg",{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),h&&(0,t.jsx)("button",{type:"button",onClick:()=>{m(""),k.current?.focus()},className:`absolute right-4 top-1/2 -translate-y-1/2 ${x?"text-gray-500 hover:text-white":"text-gray-500 hover:text-gray-900"}`,children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),y&&E&&(0,n.createPortal)(E,document.body)]})}function i({locale:e}){let r=(0,s.usePathname)();if("true"!==(0,s.useSearchParams)().get("embed"))return null;let a=[{label:"Home",href:`/${e}/store?embed=true`,icon:e=>(0,t.jsx)("svg",{className:`w-6 h-6 ${e?"text-orange-500":"text-gray-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),isActive:t=>t===`/${e}/store`||t===`/${e}/store/`},{label:"Browse",href:`/${e}/store/search?embed=true`,icon:e=>(0,t.jsx)("svg",{className:`w-6 h-6 ${e?"text-orange-500":"text-gray-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})}),isActive:e=>e.includes("/store/search")||e.includes("/store/category")},{label:"Search",href:`/${e}/store/search?embed=true`,icon:e=>(0,t.jsx)("svg",{className:`w-6 h-6 ${e?"text-orange-500":"text-gray-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),isActive:()=>!1}];return(0,t.jsx)("nav",{className:"fixed bottom-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-lg border-t border-gray-200",children:(0,t.jsx)("div",{className:"max-w-lg mx-auto",children:(0,t.jsx)("div",{className:"flex items-center justify-around h-14",children:a.map(e=>{let s=e.isActive(r);return(0,t.jsxs)(l.default,{href:e.href,className:"flex flex-col items-center justify-center flex-1 h-full",children:[e.icon(s),(0,t.jsx)("span",{className:`text-[10px] mt-0.5 ${s?"text-orange-500 font-medium":"text-gray-400"}`,children:e.label})]},e.label)})})})})}var d=e.i(369850),c=e.i(83059),x=e.i(124880),h=e.i(499231),m=e.i(194656),u=e.i(251815),g=e.i(580564);let f="store-promo-popup-dismissed";function p({locale:e,skillCount:s}){let[a,l]=(0,r.useState)(!1),[n,o]=(0,r.useState)(15),[i,d]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=localStorage.getItem(f);if(e&&Date.now()-parseInt(e)<864e5)return;let t=setTimeout(()=>l(!0),3e4);return()=>clearTimeout(t)},[]),(0,r.useEffect)(()=>
1{if(!a||i)return;if(n<=0){window.location.href=(0,g.checkoutHref)({locale:e,carry:window.location.search});return}let t=setInterval(()=>o(e=>e-1),1e3);return()=>clearInterval(t)},[a,i,n,e]);let x=(0,r.useCallback)(()=>{d(!0),l(!1),localStorage.setItem(f,String(Date.now()))},[]),h=(0,r.useCallback)(()=>{d(!0),l(!1),localStorage.setItem(f,String(Date.now()))},[]);return!a||i?null:(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:x}),(0,t.jsxs)("div",{className:"relative bg-white rounded-2xl shadow-2xl max-w-sm w-full p-6 animate-[fadeIn_0.3s_ease-out]",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("button",{onClick:x,className:"absolute top-3 right-3 text-gray-400 hover:text-gray-600 transition",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-14 h-14 mx-auto mb-3 rounded-2xl bg-gradient-to-br from-orange-400 to-red-600 flex items-center justify-center shadow-lg",children:(0,t.jsx)(m.default,{src:"/clawbox-icon.png",alt:"ClawBox",width:36,height:36,className:"w-9 h-9"})}),(0,t.jsxs)("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:["Ready to run these ",s,"+ skills?"]}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mb-4",children:"All skills run locally on ClawBox — your dedicated AI hardware."}),(0,t.jsxs)("div",{className:"relative w-20 h-20 mx-auto mb-4",children:[(0,t.jsxs)("svg",{className:"w-20 h-20 -rotate-90",viewBox:"0 0 80 80",children:[(0,t.jsx)("circle",{cx:"40",cy:"40",r:"35",fill:"none",stroke:"#f3f4f6",strokeWidth:"4"}),(0,t.jsx)("circle",{cx:"40",cy:"40",r:"35",fill:"none",stroke:"#f97316",strokeWidth:"4",strokeLinecap:"round",strokeDasharray:`${2*Math.PI*35}`,strokeDashoffset:`${2*Math.PI*35*(1-n/15)}`,className:"transition-all duration-1000 ease-linear"})]}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-2xl font-bold text-orange-600",children:n})]}),(0,t.jsxs)("p",{className:"text-xs text-gray-400 mb-4",children:["Redirecting to order page in ",n,"s..."]}),(0,t.jsxs)(c.default,{className:"block w-full py-3 btn-gradient text-white rounded-xl font-semibold text-center transition hover:scale-[1.02] shadow-lg shadow-orange-500/25 mb-2",children:["Order ClawBox — ",(0,t.jsx)(u.default,{})," →"]}),(0,t.jsx)("button",{onClick:h,className:"text-sm text-gray-400 hover:text-gray-600 transition",children:"Keep browsing skills"})]})]})]})}function b({skill:e,locale:r,onGetClick:s,index:a}){return(0,t.jsx)("div",{className:"group relative rounded-2xl bg-white/[0.02] border border-white/[0.06] hover:border-orange-500/40 hover:bg-orange-500/5 transition-all duration-200 p-4",style:{animationDelay:`${30*a}ms`},children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)(l.default,{href:`/${r}/store/app/${e.slug}`,className:"flex items-center gap-3 flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,t.jsx)(x.default,{slug:e.slug,icon:e.icon,category:e.category,size:48}),"official"===e.channel&&(0,t.jsx)("div",{className:"absolute -bottom-1 -right-1 w-5 h-5 rounded-full bg-blue-500 border-2 border-gray-950 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-3 h-3 text-white",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})})})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-0.5",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-white truncate",children:e.name}),e.verified&&"official"!==e.channel&&(0,t.jsx)("span",{className:"w-4 h-4 rounded-full bg-green-500/20 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)("svg",{className:"w-2.5 h-2.5 text-green-400",viewBox:"0 0 24 24",fill:"
1currentColor",children:(0,t.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})})})]}),(0,t.jsx)("p",{className:"text-xs text-gray-500 truncate mb-1",children:e.summary}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-orange-400 text-xs font-medium",children:["★ ",e.rating.toFixed(1)]}),(0,t.jsx)("span",{className:"text-xs text-gray-600",children:e.installs})]})]})]}),(0,t.jsx)("button",{onClick:()=>s(e.name),className:"flex-shrink-0 px-4 py-2 text-xs font-bold text-orange-400 bg-orange-500/10 border border-orange-500/30 rounded-xl hover:bg-orange-500/20 hover:border-orange-500/50 transition-all",children:"GET"})]})})}function v({skill:e,locale:r,index:s}){return(0,t.jsxs)(l.default,{href:`/${r}/store/app/${e.slug}`,className:"group relative rounded-2xl bg-gradient-to-br from-orange-500/5 to-purple-500/5 border border-white/[0.08] hover:border-orange-500/40 transition-all duration-200 p-4",style:{animationDelay:`${50*s}ms`},children:[e.featured&&(0,t.jsx)("div",{className:"absolute top-3 right-3",children:(0,t.jsx)("span",{className:"px-2 py-0.5 text-[10px] font-bold bg-gradient-to-r from-orange-500 to-red-500 text-white rounded-full",children:"FEATURED"})}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,t.jsx)(x.default,{slug:e.slug,icon:e.icon,category:e.category,size:56}),"official"===e.channel&&(0,t.jsx)("div",{className:"absolute -bottom-1 -right-1 w-5 h-5 rounded-full bg-blue-500 border-2 border-gray-950 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-3 h-3 text-white",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})})})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,t.jsx)("p",{className:"text-base font-bold text-white truncate",children:e.name}),e.verified&&"official"!==e.channel&&(0,t.jsx)("span",{className:"w-4 h-4 rounded-full bg-green-500/20 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)("svg",{className:"w-2.5 h-2.5 text-green-400",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})})})]}),(0,t.jsx)("p",{className:"text-xs text-gray-400 line-clamp-2 mb-2",children:e.summary}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("span",{className:"text-orange-400 text-sm font-medium",children:["★ ",e.rating.toFixed(1)]}),(0,t.jsx)("span",{className:"text-xs text-gray-500",children:e.installs})]})]})]})]})}function w({skill:e,locale:r,index:s}){return(0,t.jsxs)(l.default,{href:`/${r}/store/app/${e.slug}`,className:"group flex items-center gap-3 p-3 rounded-xl bg-white/[0.02] border border-white/[0.06] hover:border-orange-500/40 hover:bg-orange-500/5 transition-all duration-200",style:{animationDelay:`${30*s}ms`},children:[(0,t.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,t.jsx)(x.default,{slug:e.slug,icon:e.icon,category:e.category,size:44}),"official"===e.channel&&(0,t.jsx)("div",{className:"absolute -bottom-0.5 -right-0.5 w-4 h-4 rounded-full bg-blue-500 border-2 border-gray-950 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-2.5 h-2.5 text-white",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})})})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-0.5",children:[(0,t.jsx)("h3",{className:"font-semibold text-white text-sm truncate",children:e.name}),e.verified&&"official"!==e.channel&&(0,t.jsx)("span",{className:"w-3.5 h-3.5 rounded-full bg-green-500/20 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)("svg",{className:"w-2 h-2 text-green-400",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-xs text-orange-400 font-medium",children:["★ ",e.rating.toFixed(1)]}),(0,t.jsx)("span",{className:"text-xs text-gray-600",children:e.installs})]})]})]})}e.s(["default",0,function({locale:e,initialSkills:n,totalCount:x,categories:m,featuredSkills:u,newSkills:g,popularSkills:f,skillsByCategory:j}
1){let y=(0,s.useSearchParams)(),N=(0,a.useTranslations)("storeUI"),k=[{value:"featured",label:N("featured")},{value:"popular",label:N("popular")},{value:"newest",label:N("new")},{value:"rating",label:N("topRated")},{value:"az",label:N("az")}],C="true"===y.get("embed"),[L,$]=(0,r.useState)(null),[E,S]=(0,r.useState)(""),[M,A]=(0,r.useState)("featured"),[B,z]=(0,r.useState)(!1),[I,D]=(0,r.useState)(24),[R,U]=(0,r.useState)(null),[H,P]=(0,r.useState)(!1);(0,r.useEffect)(()=>{C&&document.querySelectorAll("header, footer, [data-sticky-buy-bar], [data-promo-banner]").forEach(e=>{e.style.display="none"})},[C]);let W=()=>{R||H||(P(!0),fetch("/api/store/apps?limit=0&verified=false").then(e=>e.json()).then(e=>{Array.isArray(e.apps)&&U(e.apps)}).catch(()=>{}).finally(()=>P(!1)))},T=R??n,_=T.map(e=>({slug:e.slug,name:e.name,category:e.category})),F=(0,r.useMemo)(()=>{let e=E?T.filter(e=>e.category===E):T;switch(M){case"popular":return[...e].sort((e,t)=>{let r=parseInt(e.installs.replace(/[^0-9]/g,""))||0;return(parseInt(t.installs.replace(/[^0-9]/g,""))||0)-r});case"newest":return[...e].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime());case"rating":return[...e].sort((e,t)=>t.rating-e.rating);case"az":return[...e].sort((e,t)=>e.name.localeCompare(t.name));default:return[...e].sort((e,t)=>!!t.featured-!!e.featured)}},[T,E,M]);return(0,t.jsxs)("div",{className:"min-h-screen bg-gray-950 text-white",children:[(0,t.jsx)(p,{locale:e,skillCount:x}),(0,t.jsxs)("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute top-0 left-1/4 w-[600px] h-[600px] bg-orange-500/5 rounded-full blur-[150px]"}),(0,t.jsx)("div",{className:"absolute top-0 right-1/4 w-[500px] h-[500px] bg-purple-500/5 rounded-full blur-[150px]"}),(0,t.jsx)("div",{className:"absolute bottom-1/4 left-1/3 w-[400px] h-[400px] bg-orange-500/3 rounded-full blur-[120px]"})]}),(0,t.jsx)("section",{className:"relative pt-24 md:pt-28 pb-8 px-4",children:(0,t.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,t.jsxs)("div",{className:"glass-card rounded-3xl p-6 mb-6 animate-fade-in-up",children:[(0,t.jsxs)("div",{className:"flex items-center gap-5 mb-6",children:[(0,t.jsx)("div",{className:"w-16 h-16 rounded-2xl btn-gradient flex items-center justify-center text-3xl shadow-xl shadow-orange-500/30",children:"🧩"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl md:text-3xl font-black",children:(0,t.jsx)("span",{className:"bg-gradient-to-r from-orange-400 via-red-400 to-purple-400 bg-clip-text text-transparent",children:"App Store"})}),(0,t.jsxs)("p",{className:"text-gray-400 text-sm mt-1",children:[x," skills available for your ClawBox"]})]})]}),(0,t.jsx)("div",{className:"relative",onFocusCapture:W,children:(0,t.jsx)(o,{locale:e,placeholder:N("search"),skills:_,showSuggestions:!0,dark:!0})})]}),(0,t.jsxs)("div",{className:"glass-card rounded-2xl p-4 animate-fade-in-up animation-delay-100 isolate",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 pb-3",children:[(0,t.jsx)("button",{onClick:()=>{S(""),z(!1),A("featured")},className:`px-3 py-2 rounded-xl text-xs font-semibold whitespace-nowrap transition-all ${!E&&!B?"btn-gradient text-white shadow-lg shadow-orange-500/25":"bg-white/5 text-gray-400 border border-white/10 hover:border-orange-500/50 hover:text-white"}`,children:"All"}),m.map(e=>(0,t.jsxs)("button",{onClick:()=>{var t;return t=e.id,void(W(),S(t===E?"":t),z(!0),D(24))},className:`px-3 py-2 rounded-xl text-xs font-semibold whitespace-nowrap transition-all flex items-center gap-2 ${E===e.id?"btn-gradient text-white shadow-lg shadow-orange-500/25":"bg-white/5 text-gray-400 border border-white/10 hover:border-orange-500/50 hover:text-white"}`,children:[(0,t.jsx)(h.default,{categoryId:e.id,icon:e.icon,size:20,className:"!rounded-md"}),(0,t.jsx)("span",{children:N(`cat_${e.id}`)}),(0,t.jsx)("span",{className:`text-[10px] px-1.5 py-0.5 rounded-full ${E===e.id?"bg-white/20":"bg-white/5"}`,children:e.count})]},e.id))]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2 pt-3 border-t border-white/5",children:k.map(e=>(0,t.jsx)("button",{onClick:()=>{var t;return t=e.value,void(W(),A(t),"featured"!==t&&z(!0))},className:`px-3 py-1.5 rounded-lg text-xs font-medium transition-all ${M===e.value?"bg-white/10 text-white border border-white/20":"text-gray-500 hover:text-gray-300 hover:bg-white/5"}`,children:e.label},e.value))})]})]})}),(0,t.jsx)("div",{className:"relative px-4 pb-24",children:(0,t.jsxs)("div",{className:"max-w-6xl mx-auto 
1space-y-8",children:[B||E?(0,t.jsx)("section",{className:"animate-fade-in-up",children:(0,t.jsxs)("div",{className:"glass-card rounded-3xl p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-orange-500/20 to-purple-500/20 border border-white/10 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-5 h-5 text-orange-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-bold text-white",children:E?m.find(e=>e.id===E)?.name:"All Apps"}),(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:[F.length," apps"]})]})]}),E&&(0,t.jsxs)("button",{onClick:()=>{S(""),z(!1),A("featured")},className:"flex items-center gap-2 text-sm text-orange-400 hover:text-orange-300 transition",children:[(0,t.jsxs)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Clear filter"]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:F.slice(0,I).map((r,s)=>(0,t.jsx)(b,{skill:r,locale:e,onGetClick:$,index:s},r.slug))}),I<F.length&&(0,t.jsx)("div",{className:"text-center pt-6",children:(0,t.jsxs)("button",{onClick:()=>{W(),D(e=>e+24)},className:"px-6 py-3 bg-white/5 border border-white/10 rounded-xl text-sm font-medium text-gray-300 hover:text-white hover:border-orange-500/50 hover:bg-orange-500/10 transition-all",children:[N("loadM
1ore")," (",F.length-I," more)"]})})]})}):(0,t.jsxs)(t.Fragment,{children:[u.length>0&&(0,t.jsx)("section",{className:"animate-fade-in-up",children:(0,t.jsxs)("div",{className:"glass-card rounded-3xl p-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-orange-500/20 to-red-500/20 border border-white/10 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-orange-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("polygon",{points:"12,2 15.09,8.26 22,9.27 17,14.14 18.18,21.02 12,17.77 5.82,21.02 7,14.14 2,9.27 8.91,8.26"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-white",children:"Featured"}),(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"Hand-picked apps for you"})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:u.slice(0,6).map((r,s)=>(0,t.jsx)(v,{skill:r,locale:e,index:s},r.slug))})]})}),(0,t.jsx)("section",{className:"animate-fade-in-up animation-delay-100",children:(0,t.jsxs)("div",{className:"glass-card rounded-3xl p-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-purple-500/20 to-pink-500/20 border border-white/10 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-purple-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-white",children:N("browseByCategory")}),(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"Find apps by category"})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3",children:m.map((r,s)=>(0,t.jsxs)(l.default,{href:`/${e}/store/category/${r.id}`,className:"group flex flex-col items-center gap-3 p-4 rounded-2xl bg-white/[0.02] border border-white/[0.06] hover:border-orange-500/40 hover:bg-orange-500/5 transition-all",style:{animationDelay:`${50*s}ms`},children:[(0,t.jsx)("div",{className:"w-14 h-14 rounded-xl bg-gradient-to-br from-white/5 to-white/[0.02] border border-white/10 flex items-center justify-center group-hover:scale-110 transition-transform",children:(0,t.jsx)(h.default,{categoryId:r.id,icon:r.icon,size:32})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("span",{className:"text-sm text-white font-medium block",children:N(`cat_${r.id}`)}),(0,t.jsx)("span",{className:"text-xs text-gray-500",children:N("nApps",{count:r.count})})]})]},r.id))})]})}),f.length>0&&(0,t.jsx)("section",{className:"animate-fade-in-up animation-delay-200",children:(0,t.jsxs)("div",{className:"glass-card rounded-3xl p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-green-500/20 to-emerald-500/20 border border-white/10 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-green-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-white",children:N("popularApps")}),(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"Most downloaded apps"})]})]}),(0,t.jsxs)("button",{onClick:()=>{W(),A("popular"),z(!0)},className:"text-sm text-orange-400 hover:text-orange-300 font-medium transition flex items-center gap-1",children:[N("seeAll"),(0,t.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:f.slice(0,8).map((r,s)=>(0,t.jsx)(w,{skill:r,locale:e,index:s},r.slug))})]})}),g.length>0&&(0,t.jsx)("section",{className:"animate-fade-in-up animation-delay-300",children:(0,t.jsxs)("div",{className:"glass-card rounded-3xl p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-blue-500/20 to-cyan-500/20 border border-white/10 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-blue-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-white",children:N("newApps")}),(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"Recently added"})]})]}),(0,t.jsxs)("button",{onClick:()=>{W(),A("newest"),z(!0)},className:"text-sm text-orange-400 hover:text-orange-300 font-medium transition flex items-center gap-1",children:[N("seeAll"),(0,t.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:g.slice(0,8).map((r,s)=>(0,t.jsx)(w,{skill:r,locale:e,index:s},r.slug))})]})}),m.slice(0,4).map((r,s)=>{let a=j[r.id];return a&&0!==a.length?(0,t.jsx)("section",{className:"animate-fade-in-up",style:{animationDelay:`${400+100*s}ms`},children:(0,t.jsxs)("div",{className:"glass-card rounded-3xl p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-white/5 to-white/[0.02] border border-white/10 flex items-center justify-center overflow-hidden",children:(0,t.jsx)(h.default,{categoryId:r.id,icon:r.icon,size:40,className:"!rounded-lg"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-white",children:N(`cat_${r.id}`)}),(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:[r.count," apps"]})]})]}),(0,t.jsxs)(l.default,{href:`/${e}/store/category/${r.id}`,className:"text-sm text-orange-400 hover:text-orange-300 font-medium transition flex items-center gap-1",children:[N("seeAll"),(0,t.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:a.map((r,s)=>(0,t.jsx)(w,{skill:r,locale:e,index:s},r.slug))})]})},r.id):null})]}),(0,t.jsx)("section",{className:"animate-fade-in-up",children:(0,t.jsxs)("div",{className:"gradient-border rounded-3xl p-8 text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 rounded-2xl btn-gradient flex items-center justify-center text-3xl mx-auto mb-4 shadow-xl shadow-orange-500/25 float-animation",children:"🚀"}),(0,t.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:N("cantFind")}),(0,t.jsx)("p",{className:"text-gray-400 mb-6 max-w-md mx-auto",children:N("buildYourOwn")}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-center gap-4",children:[(0,t.jsx)(l.default,{href:`/${e}/store/search`,className:"px-6 py-3 btn-gradient text-white rounded-xl font-semibold transition hover:scale-105 shadow-lg shadow-orange-500/25",children:"Browse All Apps"}),(0,t.jsx)(c.default,{className:"max-w-full px-6 py-3 bg-white/5 border border-white/10 text-gray-300 rounded-xl font-semibold hover:border-orange-400/50 hover:text-orange-400 transition",children:N("orderClawBox")})]})]})}),(0,t.jsx)("div",{className:"text-center py-4",children:(0,t.jsxs)("p",{className:"text-xs text-gray-600 max-w-2xl mx-auto",children:["App Store data is provided by ",(0,t.jsx)("a",{href:"https://clawhub.ai",target:"_blank",rel:"noopener noreferrer",className:"text-orange-500 hover:text-orange-400",children:"ClawHub"})," — the open skill registry for OpenClaw. App availability, ratings, and descriptions are sourced from ClawHub and may change without notice."]})})]})}),(0,t.jsx)(i,{locale:e}),(0,t.jsx)(d.default,{isOpen:null!==L,onClose:()=>$(null),appName:L||"",locale:e})]})}],855501)},251815,e=>{"use strict";var t=e.i(607887),r=e.i(283638),s=e.i(453011),a=e.i(132261);e.s(["default",0,function({euroAmount:e=(0,a.currentClawboxPriceEur)(),vat:l=!0,label:n=!0,labelClassName:o}){let{price:i}=(0,r.useCurrency)();return l?(0,t.jsx)(s.default,{euroAmount:e,label:n,labelClassName:o}):(0,t.jsx)(t.Fragment,{children:i(e)})}])},402971,e=>{"use strict";var t=e.i(607887),r=e.i(463099),s=e.i(258102),a=e.i(450281),l=e.i(856794),n=e.i(283638);function o({className:e=""}){let{currency:r,setCurrency:s}=(0,n.useCurrency)();return(0,t.jsxs)("div",{className:`inline-flex items-center gap-1 text-sm ${e}`,children:[(0,t.jsx)("button",{onClick:()=>s("EUR"),className:`font-medium transition hover:text-orange-500 ${"EUR"===r?"text-orange-500 underline underline-offset-2":"text-gray-400"}`,children:"EUR"}),(0,t.jsx)("span",{className:"text-gray-500",children:"/"}),(0,t.jsx)("button",{onClick:()=>s("USD"),className:`font-medium transition hover:text-orange-500 ${"USD"===r?"text-orange-500 underline underline-offset-2":"text-gray-400"}`,children:"USD"})]})}var i=e.i(83059),d=e.i(251815),c=e.i(538832),x=e.i(662400);let h=44*x.UI_LANGUAGES.length+16;var m=e.i(930574);function u(){let[e,a]=(0,r.useState)(null),n=null!==e,o=(0,r.useRef)(null),i=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useId)(),g=(0,l.useLocale)(),f=(0,s.usePathname)(),p=x.UI_LANGUAGES.find(e=>e.code===g)||x.UI_LANGUAGES[0],b=(0,r.useCallback)(()=>{let e=i.current;if(!e||0===e.getClientRects().length)return null;let t=e.getBoundingClientRect(),r={width:document.documentElement.clientWidth,height:window.innerHeight};return t.bottom<0||t.top>r.height?null:function(e,t,r=h){let s=t.height-e.bottom-16,a=e.top-16,l=Math.max(8,Math.min(e.right-176,t.width-176-8));return s<r&&a>s?{left:l,bottom:t.height-e.top+8,maxHeight:Math.max(0,a)}:{left:l,top:e.bottom+8,maxHeight:Math.max(0,s)}}(t,r)},[]),v=(0,r.useCallback)(()=>{a(n?null:b())},[n,b]),w=(0,r.useCallback)(()=>{a(null),i.current?.focus()},[]);return(0,r.useEffect)(()=>
1{if(n)return document.addEventListener("click",e),window.addEventListener("scroll",t,!0),window.addEventListener("resize",t),window.addEventListener("keydown",r,!0),()=>{document.removeEventListener("click",e),window.removeEventListener("scroll",t,!0),window.removeEventListener("resize",t),window.removeEventListener("keydown",r,!0)};function e(e){let t=e.target;o.current?.contains(t)||d.current?.contains(t)||a(null)}function t(){let e=b();a(t=>t===e||t&&e&&t.left===e.left&&t.top===e.top&&t.bottom===e.bottom&&t.maxHeight===e.maxHeight?t:e)}function r(e){"Escape"===e.key&&(e.stopPropagation(),w())}},[n,b,w]),(0,r.useEffect)(()=>{n&&d.current?.querySelector('[aria-checked="true"]')?.focus()},[n]),(0,t.jsxs)("div",{ref:o,className:"relative","data-lang-selector":!0,children:[(0,t.jsxs)("button",{ref:i,onClick:v,className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-300 hover:text-orange-400 transition rounded-md hover:bg-gray-800/50","aria-label":"Select language","aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?u:void 0,children:[(0,t.jsx)(m.FlagIcon,{code:p.flag,size:20,label:p.name}),(0,t.jsx)("span",{className:"hidden sm:inline",children:p.code.toUpperCase()}),(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",className:`transition-transform ${n?"rotate-180":""}`,children:(0,t.jsx)("path",{d:"M3 5L6 8L9 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e&&(0,c.createPortal)((0,t.jsx)("div",{ref:d,id:u,role:"menu","aria-label":"Select language","data-lang-menu":!0,onKeyDown:e=>{if("Tab"===e.key){a(null),i.current?.focus();return}let t=Array.from(d.current?.querySelectorAll('[role="menuitemradio"]')??[]),r=t.indexOf(document.activeElement),s="ArrowDown"===e.key?(r+1)%t.length:"ArrowUp"===e.key?r<=0?t.length-1:r-1:"Home"===e.key?0:"End"===e.key?t.length-1:null;null!==s&&(e.preventDefault(),t[s]?.focus())},style:{left:e.left,top:e.top,bottom:e.bottom,maxHeight:e.maxHeight,width:176},className:"fixed bg-[#161f31] border border-gray-700 rounded-lg shadow-xl py-2 z-[200] backdrop-blur-xl overflow-y-auto overscroll-contain",children:x.UI_LANGUAGES.map(e=>(0,t.jsxs)("button",{type:"button",role:"menuitemradio","aria-checked":e.code===g,onClick:()=>{var t;let r,s,l;return t=e.code,r=RegExp(`^/(${x.UI_LANGUAGES.map(e=>e.code).join("|")})(/|$)`),s=f.replace(r,"/")||"/",l="en"===t?s:`/${t}${"/"===s?"":s}`,void(document.cookie=`NEXT_LOCALE=${t}; path=/; max-age=31536000; SameSite=lax`,a(null),window.location.assign(l))},className:`w-full text-left px-4 py-2.5 text-sm transition flex items-center gap-3 ${e.code===g?"text-orange-400 bg-orange-500/10":"text-gray-300 hover:text-orange-400 hover:bg-gray-800/50"}`,children:[(0,t.jsx)(m.FlagIcon,{code:e.flag,size:20,label:e.name}),(0,t.jsx)("span",{lang:e.code,children:e.name}),e.code===g&&(0,t.jsx)("svg",{className:"ml-auto w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})]},e.code))}),document.body)]})}var g=e.i(807140),f=e.i(129182);e.s(["default",0,function(){let[e,n]=(0,r.useState)(!1),[c,x]=(0,r.useState)(null),[h,m]=(0,r.useState)(null),[p,b]=(0,r.useState)(!1),[v,w]=(0,r.useState)(!1),j=(0,s.usePathname)(),y=(0,r.useId)(),N=(0,r.useId)();(0,r.useEffect)(()=>{let e=!1;return fetch("/api/portal/session?optional=1",{credentials:"same-origin",cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{e||w(!!t?.user)}).catch(()=>{e||w(!1)}),()=>{e=!0}},[]);let k=(0,a.useTranslations)("header"),C=(0,a.useTranslations)("navigation"),L=(0,l.useLocale)(),$=e=>"en"===L?e:`/${L}${e}`,E=[{href:$("/"),label:k("products.main")},{href:$("/clawbox-workstation"),label:k("products.workstation")},{href:"/hermes",label:"ClawBox Hermes Edition"},{href:"/portal",label:k("products.portal")},{href:$("/store"),label:k("products.store")}],S=[{href:$("/compare"),label:k("compareLinks.fullComparison")||"Full Comparison"},{href:"/hermes-vs-openclaw",label:"Hermes Agent vs OpenClaw"},{href:$("/compare/cloud-ai"),label:k("compareLinks.vsCloudAi")||"vs. Cloud AI (ChatGPT, Claude)"},{href:$("/compare/raspberry-pi"),label:k("compareLinks.vsRaspberryPi")||"vs. Raspberry Pi 5"}
1,{href:$("/compare/home-server"),label:k("compareLinks.vsHomeServer")||"vs. Home Server"},{href:$("/compare/mac-mini"),label:k("compareLinks.vsMacMini")||"vs. Mac Mini M4"},{href:"/hermes/mac-mini",label:"Hermes Agent on a Mac mini"}],M="https://docs.clawbox.com/";(0,r.useEffect)(()=>{let e=()=>b(window.scrollY>50);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let A=j.startsWith("/portal")||j.includes("/store"),B=j.startsWith("/compare")||"/compare/mac-mini"===j||"/compare/raspberry-pi"===j||"/hermes-vs-openclaw"===j,z=j.includes("/blog"),I=j.replace(/^\/(en|de|es|fr|it|nl|zh|ja|sv|bg)(\/|$)/,"/")||"/",D="/"!==I&&""!==I&&"/clawbox-workstation"!==I||p||e,R="/hermes"===I||I.startsWith("/hermes/"),U=R?"hermes":"connect",H=!R&&"/hermes-vs-openclaw"!==I,P="font-medium text-orange-400",W=D?"font-medium text-gray-300 hover:text-orange-400 transition":"font-medium text-gray-800 hover:text-orange-600 transition";return(0,t.jsx)(f.default,{homeHref:$("/"),solid:D,mobileOpen:e,onToggleMobile:()=>n(!e),desktopNav:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.Dropdown,{label:"ClawBox",links:E,open:"products"===c,onToggle:()=>x("products"===c?null:"products"),onClose:()=>x(null),active:A,baseClass:W}),(0,t.jsx)("a",{href:$("/#pricing"),className:j.includes("/pricing")?P:W,children:k("pricing")}),(0,t.jsx)("a",{href:$("/leaderboard"),className:j.includes("/leaderboard")?P:W,children:C("leaderboard")}),(0,t.jsx)(g.Dropdown,{label:k("compare"),links:S,open:"compare"===c,onToggle:()=>x("compare"===c?null:"compare"),onClose:()=>x(null),active:B,baseClass:W}),(0,t.jsx)("a",{href:$("/blog"),className:z?P:W,children:k("blog")||"Blog"}),(0,t.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",className:W,children:k("docs")})]}),desktopActions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o,{}),H&&(0,t.jsx)(u,{}),(0,t.jsx)("a",{href:"/portal",className:`px-4 py-1.5 rounded-lg border text-sm font-medium transition ${D?"border-gray-600 text-gray-200 hover:border-orange-400 hover:text-orange-400":"border-gray-400 text-gray-700 hover:border-orange-500 hover:text-orange-500"}`,children:k(v?"portal":"login")})]}),mobileAction:(0,t.jsx)(i.default,{product:U,businessOption:!1,className:"lg:hidden ml-auto mr-2 px-3 py-2 btn-gradient text-white rounded-lg font-semibold text-xs leading-none shadow-md shadow-orange-500/20",children:k("buyShort")}),mobilePanel:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col px-6 py-6 gap-1",children:[(0,t.jsxs)("button",{onClick:()=>m("products"===h?null:"products"),"aria-expanded":"products"===h,"aria-controls":y,className:`${A?P:W} text-lg py-2 flex items-center justify-between`,children:["ClawBox",(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",className:`transition-transform ${"products"===h?"rotate-180":""}`,children:(0,t.jsx)("path",{d:"M3 5L6 8L9 5",stroke:"#f97316",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,t.jsx)(g.NavPanel,{id:y,open:"products"===h,className:"pl-4 flex flex-col gap-1",children:E.map(e=>(0,t.jsxs)("a",{href:e.href,onClick:()=>n(!1),className:`${j===e.href?"text-orange-400 font-medium":"text-gray-400 hover:text-orange-400"} transition py-1.5`,children:[e.label,e.desc&&(0,t.jsx)("span",{className:"block text-xs text-gray-500",children:e.desc})]},e.href))}),(0,t.jsx)("a",{href:$("/#pricing"),onClick:()=>n(!1),className:`${W} text-lg py-2`,children:k("pricing")}),(0,t.jsx)("a",{href:$("/leaderboard"),onClick:()=>n(!1),className:`${j.includes("/leaderboard")?P:W} text-lg py-2`,children:C("leaderboard")}),(0,t.jsxs)("button",{onClick:()=>m("compare"===h?null:"compare"),"aria-expanded":"compare"===h,"aria-controls":N,className:`${B?P:W} text-lg py-2 flex items-center justify-between`,children:[k("compare"),(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",className:`transition-transform ${"compare"===h?"rotate-180":""}`,children:(0,t.jsx)("path",{d:"M3 5L6 8L9 5",stroke:"#f97316",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,t.jsx)(g.NavPanel,{id:N,open:"compare"===h,className:"pl-4 flex flex-col gap-1",children:S.map(e=>(0,t.jsx)("a",{href:e.href,onClick:()=>n(!1),className:`${j===e.href?"text-orange-400 font-medium":"text-gray-400 hover:text-orange-400"} transition py-1.5`,children:e.label},e.href))}),(0,t.jsx)("a",{href:$("/blog"),onClick:()=>n(!1),className:`${z?P:W} text-lg py-2`,children:k("blog")||"Blog"}),(0,t.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",onClick:()=>n(!1),className:`${W} text-lg py-2`,children:k("docs")})]}),(0,t.jsxs)("div",{className:"mt-auto sticky bottom-0 shrink-0 px-6 pt-4 border-t border-gray-800 bg-gray-900 flex flex-col gap-3",style:{zIndex:60,paddingBottom:"calc(1rem + env(safe-area-inset-bottom, 0px))"},children:[(0,t.jsxs)("div",{className:"flex justify-center gap-4",children:[(0,t.jsx)(o,{}),H&&(0,t.jsx)(u,{})]}),(0,t.jsx)("a",{href:"/portal",onClick:()=>n(!1),className:"block w-full text-center px-5 py-3 rounded-lg font-semibold transition border border-gray-600 text-gray-200 hover:border-orange-400 hover:text-orange-400",children:k(v?"portal":"login")}),(0,t.jsxs)(i.default,{product:U,businessOption:!1,className:"block w-full text-center px-5 py-3 btn-gradient text-white rounded-lg font-semibold transition",children:[k("buyButton")," — ",(0,t.jsx)(d.default,{})]})]})]})})}],402971)},807140,e=>{"use strict";var t=e.i(607887),r=e.i(463099);function s({id:e,open:r,className:a,children:l}){return(0,t.jsx)("div",{id:e,"data-nav-panel":!0,hidden:!r,inert:!r,className:a,children:l})}e.s(["Dropdown",0,function({label:e,links:a,open:l,onToggle:n,onClose:o,active:i,baseClass:d,align:c="left",triggerClassName:x,ariaLabel:h,linkAs:m="a",panelHeader:u,children:g}){let f=(0,r.useRef)(null),p=(0,r.useRef)(null),b=(0,r.useId)();return(0,r.useEffect)(()=>{function e(e){f.current&&!f.current.contains(e.target)&&o()}function t(e){"Escape"===e.key&&(o(),p.current?.focus())}return l&&(document.addEventListener("click",e),document.addEventListener("keydown",t)),()=>{document.removeEventListener("click",e),document.removeEventListener("keydown",t)}},[l,o]),(0,t.jsxs)("div",{ref:f,className:"relative",children:[(0,t.jsxs)("button",{ref:p,type:"button",onClick:n,"aria-expanded":l,"aria-controls":b,"aria-label":h,className:x??`${i?"text-orange-400":d||"text-gray-300"} hover:text-orange-400 transition flex items-center gap-1`,children:[e,(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",className:`transition-transform ${l?"rotate-180":""}`,children:(0,t.jsx)("path",{d:"M3 5L6 8L9 5",stroke:"#f97316",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,t.jsxs)(s,{id:b,open:l,className:`absolute top-full ${"right"===c?"right-0":"left-0"} mt-2 w-56 bg-[#161f31] border border-gray-700 rounded-lg shadow-xl py-2 z-50 backdrop-blur-xl`,children:[u,a.map(e=>(0,t.jsxs)(m,{href:e.href,onClick:o,"aria-current":e.active?"page":void 0,className:`flex items-center gap-2 px-4 py-2.5 text-sm transition hover:bg-gray-800/50 ${e.active?"text-orange-400 font-medium":"text-gray-300 hover:text-orange-400"}`,children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[e.label,e.desc&&(0,t.jsx)("span",{className:"block text-xs text-gray-500 mt-0.5",children:e.desc})]}),e.badge]},e.href)),g]})]})},"NavPanel",0,s])},129182,e=>{"use strict";var t=e.i(607887),r=e.i(463099),s=e.i(194656);e.s(["default",0,function({homeHref:e,solid:a,mobileOpen:l,onToggleMobile:n,desktopNav:o,desktopActions:i,mobileAction:d,mobilePanel:c,logoSuffix:x,collapseAt:h="lg",toggleLabel:m="Toggle menu"}){let u="xl"===h?{show:"hidden xl:flex",hide:"xl:hidden"}:{show:"hidden lg:flex",hide:"lg:hidden"};(0,r.useEffect)(()=>{let e=document.querySelector("[data-site-header]");if(!e)return;let t=()=>{document.documentElement.style.setProperty("--site-header-h",`${e.offsetHeight}px`)};t();let r=new ResizeObserver(t);return r.observe(e),window.addEventListener("resize",t),()=>{r.disconnect(),window.removeEventListener("resize",t)}},[]),(0,r.useEffect)(()=>
1{if(l){let e=window.scrollY;document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.body.dataset.mobileMenu="open",document.body.dataset.scrollY=String(e)}else{let e=document.body.dataset.scrollY;document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",document.documentElement.style.overflow="",delete document.body.dataset.mobileMenu,e&&window.scrollTo({top:parseInt(e),behavior:"instant"}),delete document.body.dataset.scrollY}return()=>{let e=document.body.dataset.scrollY;document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",document.documentElement.style.overflow="",delete document.body.dataset.mobileMenu,e&&window.scrollTo({top:parseInt(e),behavior:"instant"}),delete document.body.dataset.scrollY}},[l]);let g=(0,r.useRef)(null),f=(0,r.useRef)(n);return(0,r.useEffect)(()=>{f.current=n}),(0,r.useEffect)(()=>{if(l)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&(f.current(),g.current?.focus())}},[l]),(0,t.jsxs)("nav",{"data-site-header":!0,style:{top:"var(--promo-banner-h, 0px)"},className:`fixed w-full z-50 transform-gpu transition-[background-color,border-color,box-shadow] duration-300 ${a?"bg-[#161f31]/95 backdrop-blur-xl backdrop-saturate-150 border-b border-white/10 shadow-lg shadow-black/30":"bg-transparent border-b border-transparent shadow-none"}`,children:[(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-3 md:px-4 py-3 md:py-4 flex justify-between items-center overflow-visible",children:[(0,t.jsxs)("a",{href:e,className:"flex items-center gap-2 flex-shrink-0",children:[(0,t.jsx)(s.default,{src:"/clawbox-icon.png",alt:"",width:36,height:36,className:`w-9 h-9 object-contain transition-all duration-500 ${a?"drop-shadow-[0_0_8px_rgba(249,115,22,0.6)]":""}`,priority:!0}),(0,t.jsx)("span",{className:`text-xl font-bold font-display bg-gradient-to-r from-orange-400 to-orange-700 bg-clip-text text-transparent transition-all duration-300 ${a?"opacity-100 max-w-[100px]":"max-lg:opacity-100 max-lg:max-w-[100px] lg:opacity-100 lg:max-w-[100px] opacity-0 max-w-0 overflow-hidden"}`,children:"ClawBox"}),x]}),o&&(0,t.jsx)("div",{className:`${u.show} items-center gap-6`,children:o}),i&&(0,t.jsx)("div",{className:`${u.show} items-center gap-3 flex-shrink-0`,children:i}),d,c&&(0,t.jsxs)("button",{ref:g,className:`${u.hide} flex flex-col gap-1.5 p-2 flex-shrink-0 rounded-lg border border-gray-700/70 bg-gray-800/70 ${d?"":"ml-auto"}`,onClick:n,"aria-label":m,"aria-expanded":l,"data-site-menu-toggle":!0,children:[(0,t.jsx)("span",{className:`block w-5 h-0.5 transition-transform bg-gray-200 ${l?"rotate-45 translate-y-2":""}`}),(0,t.jsx)("span",{className:`block w-5 h-0.5 transition-opacity bg-gray-200 ${l?"opacity-0":""}`}),(0,t.jsx)("span",{className:`block w-5 h-0.5 transition-transform bg-gray-200 ${l?"-rotate-45 -translate-y-2":""}`})]})]}),l&&c&&(0,t.jsx)("div",{"data-menu-scroll":!0,className:`absolute inset-x-0 top-full bg-gray-900 ${u.hide} z-50 flex flex-col border-t border-gray-800 overflow-y-auto`,style:{height:"calc(100dvh - var(--promo-banner-h, 0px) - 100%)",overscrollBehavior:"contain"},children:c})]})}])},453011,e=>{"use strict";var t=e.i(607887),r=e.i(283638),s=e.i(132261),a=e.i(41539);function l(){let{country:e="",vatLabels:t,currency:s,price:l,priceExact:n}=(0,r.useCurrency)();return r=>{let o=(0,a.visitorPriceCents)(Math.round(100*r),e),i=o.cents/100,d="EUR"===s&&"incl"===o.basis&&o.cents%100!=0?n(i):l(i),c="incl"===o.basis?t?.incl??"":"excl"===o.basis?t?.excl??"":"";return{...o,text:d,label:c}}}e.s(["default",0,function({euroAmount:e=(0,s.currentClawboxPriceEur)(),label:r=!0,labelClassName:a="whitespace-nowrap text-[0.7em] font-semibold opacity-75"}){let n=l()(e);return(0,t.jsxs)(t.Fragment,{children:[n.text,r&&n.label?(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{className:a,"data-vat-label":n.basis,children:n.label})]}):null]})},"useVisitorPrice",0,l])},124880,e=>{"use strict";var t=e.i(607887),r=e.i(463099),s=e.i(194656);let a={"smart-home":"from-amber-400 to-amber-600",productivity:"from-blue-400 to-blue-600","social-media":"from-pink-400 to-pink-600",finance:"from-green-400 to-green-600",developer:"from-purple-400 to-purple-600",security:"from-red-400 to-red-600",health:"from-emerald-400 to-emerald-600",shopping:"from-orange-400 to-orange-600",entertainment:"from-violet-400 to-violet-600",weather:"from-cyan-400 to-cyan-600",writing:"from-indigo-400 to-indigo-600",ai:"from-yellow-400 to-yellow-600"};e.s(["default",0,function({slug:e,icon:l,category:n,size:o=48,className:i=""}){let[d,c]=(0,r.useState)(!1),x=a[n]||"from-gray-400 to-gray-600",h=o>=64?"text-3xl":o>=48?"text-xl":"text-base";return d?(0,t.jsx)("div",{className:`rounded-xl bg-gradient-to-br ${x} flex items-center justify-center text-white ${h} shadow-sm flex-shrink-0 ${i}`,style:{width:o,height:o},children:l}):(0,t.jsx)(s.default,{src:`/store/icons/${e}.png`,alt:e,width:o,height:o,className:`rounded-xl shadow-sm flex-shrink-0 ${i}`,onError:()=>c(!0)})}])},499231,e=>{"use strict";var t=e.i(607887),r=e.i(463099),s=e.i(194656);let a={"smart-home":"from-amber-400 to-amber-600",productivity:"from-blue-400 to-blue-600","social-media":"from-pink-400 to-pink-600",finance:"from-green-400 to-green-600",developer:"from-purple-400 to-purple-600",security:"from-red-400 to-red-600",health:"from-emerald-400 to-emerald-600",shopping:"from-orange-400 to-orange-600",entertainment:"from-violet-400 to-violet-600","weather-travel":"from-cyan-400 to-cyan-600",writing:"from-indigo-400 to-indigo-600","ai-automation":"from-yellow-400 to-yellow-600"},l={"smart-home":"🏠",productivity:"📬","social-media":"📣",finance:"💵",developer:"💻",security:"🛡️",health:"❤️",shopping:"
1🛒",entertainment:"🎵","weather-travel":"🌤️",writing:"✍️","ai-automation":"⚡"};e.s(["default",0,function({categoryId:e,icon:n,size:o=48,className:i=""}){let[d,c]=(0,r.useState)(!1),x=a[e]||"from-gray-400 to-gray-600",h=n&&n&&!/^[\x00-\x7F]+$/.test(n)?n:l[e]||"📦",m=o>=40?"text-2xl":o>=28?"text-lg":"text-base";return d?(0,t.jsx)("div",{className:`rounded-2xl bg-gradient-to-br ${x} flex items-center justify-center text-white ${m} shadow-sm ${i}`,style:{width:o,height:o},children:h}):(0,t.jsx)(s.default,{src:`/store/category-icons/${e}.png`,alt:e,width:o,height:o,className:`rounded-2xl shadow-sm ${i}`,onError:()=>c(!0)})}])},369850,e=>{"use strict";var t=e.i(607887),r=e.i(194656),s=e.i(83059),a=e.i(251815);e.s(["default",0,function({isOpen:e,onClose:l,appName:n}){return e?(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",onClick:l,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),(0,t.jsxs)("div",{className:"relative bg-white rounded-2xl shadow-2xl max-w-md w-full p-6 animate-[fadeIn_0.2s_ease-out]",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("button",{onClick:l,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 transition",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-orange-400 to-red-600 flex items-center justify-center shadow-lg",children:(0,t.jsx)(r.default,{src:"/clawbox-icon.png",alt:"ClawBox",width:40,height:40,className:"w-10 h-10"})}),(0,t.jsxs)("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:["Get ClawBox to use ",n]}),(0,t.jsxs)("p",{className:"text-gray-600 text-sm mb-6",children:["Apps run locally on your ClawBox — a plug-and-play AI hardware device powered by NVIDIA Jetson. Order yours and start using ",n," and 580+ other skills."]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)(s.default,{className:"block w-full py-3 btn-gradient text-white rounded-xl font-semibold text-center transition hover:scale-[1.02] shadow-lg shadow-orange-500/25",children:["Order ClawBox — ",(0,t.jsx)(a.default,{})]}),(0,t.jsx)("a",{href:"https://clawhub.ai",target:"_blank",rel:"noopener noreferrer",className:"block w-full py-3 border border-gray-300 text-gray-600 rounded-xl font-medium text-center hover:border-orange-400 hover:text-orange-500 transition",children:"Or install on your own hardware via ClawHub →"})]}),(0,t.jsx)("p",{className:"text-xs text-gray-400 mt-4",children:"30-day money-back guarantee · Free shipping EU · Ships worldwide"})]})]})]}):null}])},580564,e=>{"use strict";var t=e.i(942522);let r=[...t.UTM_KEYS,...t.CLICK_ID_KEYS,"promo","ref"];e.s(["checkoutHref",0,function({locale:e="en",product:t="connect",quantity:s=1,carry:a,origin:l=""}={}){let n=new URLSearchParams({product:t,quantity:String(s)}),o="string"==typeof a?new URLSearchParams(a):a;if(o)for(let e of r){let t=o.get(e);t&&n.set(e,t)}return`${l.replace(/\/$/,"")}${e&&"en"!==e?`/${e}/checkout`:"/checkout"}?${n.toString()}`}])},662400,930574,e=>{"use strict";e.s(["UI_LANGUAGES",0,[{code:"en",name:"English",flag:"gb"},{code:"zh",name:"中文",flag:"cn"},{code:"ja",name:"日本語",flag:"jp"},{code:"de",name:"Deutsch",flag:"de"},{code:"fr",name:"Français",flag:"fr"},{code:"it",name:"Italiano",flag:"it"},{code:"es",name:"Español",flag:"es"},{code:"nl",name:"Nederlands",flag:"nl"},{code:"sv",name:"Svenska",flag:"se"},{code:"bg",name:"Български",flag:"bg"}]],662400);var t=e.i(607887),r=e.i(194656);e.s(["FlagIcon",0,function({code:e,size:s=20,label:a}){return(0,t.jsx)(r.default,{src:`https://flagcdn.com/w40/${e}.png`,alt:a??e,width:s,height:Math.round(.75*s),className:"rounded-sm object-cover inline-block",style:{width:s,height:Math.round(.75*s)},unoptimized:!0})}],930574)}]);

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.