Files
heicode/website/out/_next/static/chunks/03sg2vxcecckm.js
T

1 line
10 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23988,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={formatUrl:function(){return l},formatWithValidation:function(){return s},urlObjectKeys:function(){return u}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let a=e.r(24930)._(e.r(17516)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,o=e.protocol||"",n=e.pathname||"",l=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==s?(s="//"+(s||""),n&&"/"!==n[0]&&(n="/"+n)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),n=n.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${o}${s}${n}${c}${l}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return l(e)}},40716,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let o=e.r(55118);function n(e,t){let r=(0,o.useRef)(null),n=(0,o.useRef)(null);return(0,o.useCallback)(o=>{if(null===o){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=a(e,o)),t&&(n.current=a(t,o))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},67973,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let o=e.r(23869),n=e.r(80097);function a(e){if(!(0,o.isAbsoluteUrl)(e))return!0;try{let t=(0,o.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},48766,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return o}});let o=e=>{}},54249,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={default:function(){return y},useLinkStatus:function(){return v}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let a=e.r(24930),i=e.r(46882),l=a._(e.r(55118)),u=e.r(23988),s=e.r(35547),c=e.r(40716),d=e.r(23869),f=e.r(22955);e.r(7507);let p=e.r(97637),h=e.r(58922),m=e.r(67973),g=e.r(31546);function y(t){var r,o;let n,a,y,[v,x]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),j=(0,l.useRef)(null),{href:C,as:_,children:k,prefetch:w=null,passHref:S,replace:O,shallow:P,scroll:T,onClick:L,onMouseEnter:N,onTouchStart:A,legacyBehavior:R=!1,onNavigate:E,transitionTypes:M,ref:U,unstable_dynamicOnHover:$,...I}=t;n=k,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let B=l.default.useContext(s.AppRouterContext),H=!1!==w,K=!1!==w?null===(o=w)||"auto"===o?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,D="string"==typeof(r=_||C)?r:(0,u.formatUrl)(r);if(R){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(n)}let z=R?a&&"object"==typeof a&&a.ref:U,W=l.default.useCallback(e=>(null!==B&&(j.current=(0,h.mountLinkInstance)(e,D,B,K,H,x)),()=>{j.current&&((0,h.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,h.unmountPrefetchableInstance)(e)}),[H,D,B,K,x]),F={ref:(0,c.useMergedRef)(W,z),onClick(t){R||"function"!=typeof L||L(t),R&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!B||t.defaultPrevented||function(t,r,o,n,a,i,u){if("u">typeof window){let s,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((s=t.currentTarget.getAttribute("target"))&&"_self"!==s||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(9697);l.default.startTransition(()=>{d(r,n?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,o.current,u)})}}(t,D,j,O,T,E,M)},onMouseEnter(e){R||"function"!=typeof N||N(e),R&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),B&&H&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){R||"function"!=typeof A||A(e),R&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),B&&H&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(D)?F.href=D:R&&!S&&("a"!==a.type||"href"in a.props)||(F.href=(0,f.addBasePath)(D)),y=R?l.default.cloneElement(a,F):(0,i.jsx)("a",{...I,...F,children:n}),(0,i.jsx)(b.Provider,{value:v,children:y})}e.r(48766);let b=(0,l.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,l.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},49793,e=>{"use strict";var t=e.i(55118);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.forwardRef)(({color:e="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:l="",children:u,iconNode:s,...c},d)=>(0,t.createElement)("svg",{ref:d,...n,width:o,height:o,stroke:e,strokeWidth:i?24*Number(a)/Number(o):a,className:r("lucide",l),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...s.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]]));e.s(["default",0,(e,n)=>{let i=(0,t.forwardRef)(({className:i,...l},u)=>(0,t.createElement)(a,{ref:u,iconNode:n,className:r(`lucide-${o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...l}));return i.displayName=o(e),i}],49793)},57609,e=>{"use strict";let t=(0,e.i(49793).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],57609)},77742,e=>{"use strict";var t=e.i(46882),r=e.i(54249),o=e.i(57609),n=e.i(56780);let a={zh:{back:"返回首页",title:"服务条款",date:"生效日期: 2026年5月",sections:[{h2:"1. 接受条款",p:"通过访问或使用 Heicode(包含 Heicode Manager、Heicode 客户端、CodeGW 等组件),您同意受这些服务条款的约束。"},{h2:"2. 服务描述",p:"Heicode 提供基于 AI 的智能开发服务。我们保留随时修改、暂停或终止平台部分或全部功能的权利,而无需向您发出通知。"},{h2:"3. 用户行为与内容",p:"您对在平台提交的作用于代码执行或访问授权(如 Git 仓库、SK 集成等)等操作负全责。您同意不会利用本平台从事任何违反适用法律法规或对第三方造成侵权的活动。"},{h2:"4. 责任限制",p:"Heicode 自动生成的代码和操作仍需要您的审核确认。平台不对在使用我们的技术或执行结果后给您的业务带来的意外损害承担连带赔偿责任。"}]},en:{back:"Back to home",title:"Terms of Service",date:"Effective Date: May 2026",sections:[{h2:"1. Acceptance of Terms",p:"By accessing or using Heicode (including Heicode Manager, Heicode Client, CodeGW, etc.), you agree to be bound by these Terms of Service."},{h2:"2. Description of Services",p:"Heicode provides an AI-based intelligent development service. We reserve the right to modify, suspend, or discontinue all or part of the platform features at any time without notice."},{h2:"3. User Conduct & Content",p:"You are solely responsible for all actions and authorizations (e.g. Git repository bindings, SK integrations) you submit. You agree not to use the platform for any illegal activities or infringing on third parties."},{h2:"4. Limitation of Liability",p:"Code and actions automatically generated by Heicode still require your review and approval. The platform is not liable for any incidental damages caused to your business as a result of using our technology or execution outcomes."}]}};e.s(["default",0,function(){let{lang:e,toggle:i}=(0,n.useLang)(),l=a[e];return(0,t.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,t.jsx)("div",{className:"sticky top-0 z-40 border-b border-border/50 bg-background/90 backdrop-blur-md",children:(0,t.jsxs)("div",{className:"mx-auto flex h-14 max-w-3xl items-center justify-between px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[(0,t.jsx)(o.ArrowLeft,{className:"h-4 w-4"}),l.back]}),(0,t.jsx)("button",{onClick:i,className:"rounded-md border border-border/60 px-2.5 py-1 font-mono text-xs text-muted-foreground transition-colors hover:border-accent/50 hover:text-foreground",children:"zh"===e?"EN":"中"})]})}),(0,t.jsxs)("div",{className:"mx-auto max-w-3xl px-4 py-16 sm:px-6 lg:px-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold tracking-tight mb-8",children:l.title}),(0,t.jsxs)("div",{className:"space-y-8 text-muted-foreground leading-relaxed",children:[(0,t.jsx)("p",{children:l.date}),l.sections.map((e,r)=>(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-foreground mb-3",children:e.h2}),(0,t.jsx)("p",{children:e.p})]},r))]})]})]})}])}]);