1!function(){try{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]="4267453c-fb86-4668-ad55-fddf524b7cfe",e._sentryDebugIdIdentifier="sentry-dbid-4267453c-fb86-4668-ad55-fddf524b7cfe")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[827],{62023:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai/portfolio",function(){return l(79946)}])},54514:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var r=l(44489),a=l(70851);function s(e){let{className:t}=e;return(0,r.jsx)("div",{className:(0,a.A)("animate-pulse bg-[#252525]",t)})}},31435:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var r=l(44489),a=l(59315),s=l.n(a),n=l(32528),i=l.n(n),o=l(62070),c=l(15322);let d=()=>{let{t:e}=(0,c.Bd)("website");return(0,r.jsxs)("section",{className:"relative flex items-center justify-center max-lg:aspect-[375/569] lg:h-[355px] 4xl:h-[500px]",children:[(0,r.jsx)(s(),{src:(0,o.gi)("/ai/portfolio/banner.png"),alt:"AI Portfolio",width:3840,height:1330,className:"absolute left-0 top-0 h-full w-full object-cover object-center max-lg:hidden"}),(0,r.jsx)(s(),{src:(0,o.gi)("/ai/portfolio/banner-mobile.png"),alt:"AI Portfolio",width:750,height:1140,className:"absolute left-0 top-0 h-full w-full lg:hidden"}),(0,r.jsxs)("div",{className:"relative flex flex-col items-center justify-center max-lg:px-7 max-lg:text-center",children:[(0,r.jsx)("h2",{className:"mb-4 font-bold max-lg:text-3xl lg:mb-3.5 lg:text-4xl 4xl:mb-8 4xl:text-5xl",children:e("pages.ai-portfolio.banner.title")}),(0,r.jsx)("p",{className:"heading-22 mb-12 lg:mb-10 4xl:mb-14",children:e("pages.ai-portfolio.banner.desc")}),(0,r.jsx)(i(),{href:"/download",className:"paragraph-18 flex h-12 items-center justify-center rounded-full text-black max-lg:px-8 max-lg:text-sm lg:w-[182px] 4xl:h-15 4xl:w-[217px]",style:{background:"linear-gradient(90deg, #C0D3FF 0%, #E8D6FF 100%)"},children:e("common.download-app")})]})]})}},69428:(e,t,l)=>{"use strict";l.d(t,{A:()=>m});var r=l(44489),a=l(44349),s=l(32528),n=l.n(s),i=l(59315),o=l.n(i),c=l(62070);let d=e=>{try{return e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.setSelectionRange(0,0),e.blur(),!0}catch(e){return console.error("Failed to copy input value:",e),!1}};var x=l(52395),u=l(10635),h=l(15322);let m=()=>{let{t:e}=(0,h.Bd)("website"),{isLoggedIn:t}=(0,u.A)(),[l,s]=(0,a.useState)("");(0,a.useEffect)(()=>{s(window.location.href)},[]);let i=(0,a.useRef)(null),[m,p]=(0,a.useState)(e("common.copy-link"));return(0,r.jsx)("div",{className:"lg:pt-28 4xl:pt-[100px]",children:(0,r.jsxs)("div",{className:"relative rounded-[20px] bg-141124 lg:pb-8 lg:pt-18 4xl:pb-10 4xl:pt-32",children:[(0,r.jsx)("div",{className:"absolute w-full lg:-top-28 4xl:top-[-100px]",children:(0,r.jsx)(o(),{src:(0,c.gi)("/ai/portfolio/share.png"),alt:"AI Portfolio",width:274,height:221,className:"mx-auto lg:w-[244px] 4xl:w-[274px]"})}),(0,r.jsxs)("div",{className:"lg:px-5 4xl:px-9",children:[(0,r.jsx)("h4",{className:"heading-24 lg:mb-1.5 4xl:mb-2",children:e("common.ai-portfolio")}),(0,r.jsx)("p",{className:"whitespace-pre-wrap lg:mb-7 lg:text-sm 4xl:text-lg",children:e("pages.ai-portfolio.share.desc")}),(0,r.jsx)(n(),{href:t?"/download":"/auth",className:"heading-16 flex w-full items-center justify-center rounded-full text-black lg:mb-3.5 lg:h-12 4xl:mb-4.5 4xl:h-14",style:{background:"linear-gradient(90deg, #C0D3FF 0%, #E8D6FF 100%)"},children:e("common.try-now")}),(0,r.jsx)(n(),{href:"https://help.rockflow.ai/docs/innvative-products/ai-portfolio/",className:"heading-16 flex w-full items-center justify-center rounded-full border-[1.5px] border-white lg:mb-6 lg:h-12 4xl:h-14",children:e("common.learn-more")}),(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsxs)(x.AM,{onOpenChange:t=>{t&&p(e("common.copy-link"))},children:[(0,r.jsxs)(x.Wv,{className:"flex items-center justify-center lg:gap-2 4xl:gap-2.5",children:[(0,r.jsx)("div",{className:"flex items-center lg:w-6 4xl:w-7",children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35 35",fill:"none",children:[(0,r.jsx)("path",{d:"M16.6869 7.13133H7.91667C7.57841 7.12824 7.24292 7.19354 6.92981 7.32341C6.6167 7.45329 6.33224 7.64513 6.09304 7.88775C5.85384 8.13037 5.66469 8.41889 5.53665 8.73648C5.4086 9.05406 5.34422 9.39434 5.34727 9.73743V27.5284C5.34876 27.8686 5.41649 28.2051 5.54656 28.5187C5.67664 28.8323 5.8665 29.1167 6.10524 29.3556C6.34399 29.5945 6.62691 29.7832 6.93777 29.911C7.24863 30.0387 7.5813 30.1028 7.91667 30.0998H24.4979C25.3722 30.0967 26.2099 29.7431 26.8282 29.116C27.4465 28.4889 27.7951 27.6392 27.7981 26.7524V20.1618",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M30.2762 9.42175H22.0884C21.728 9.42175 21.3824 9.56697 21.1275 9.82546C20.8727 10.0839 20.7295 10.4345 20.7295 10.8001V18.2941",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.645 5.59998L30.836 9.42226L26.645 13.3835",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"})]})}),(0,r.jsx)("span",{className:"heading-16",children:e("common.share")})]}),(0,r.jsx)(x.hl,{children:(0,r.jsxs)("div",{className:"rounded-[20px] bg-312E40 lg:w-80 lg:px-4.5 lg:py-4 4xl:w-[420px] 4xl:px-6 4xl:py-5",children:[(0,r.jsx)("h5",{className:"heading-22 lg:mb-2",children:e("pages.ai-portfolio.share.dialog.title")}),(0,r.jsx)("input",{ref:i,type:"text",readOnly:!0,value:l,className:"paragraph-14 w-full rounded-full border border-464646 bg-transparent text-B2B2B2 outline-none lg:mb-4 lg:h-12 lg:px-3 4xl:mb-5 4xl:h-14 4xl:px-4"}),(0,r.jsx)("button",{className:"paragraph-14 flex items-center justify-center rounded-full bg-white text-black lg:h-8 lg:px-4 4xl:h-10 4xl:px-
15",onClick:()=>{i.current&&d(i.current)&&p(e("common.copied"))},children:m})]})})]})})]})]})})}},28839:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var r=l(44489),a=l(2193),s=l(7261);let n=(e,t,l)=>"".concat("https://rockflow.ai").concat(e===t?"":"/".concat(e)).concat(l);function i(e){let{title:t,description:l,keywords:i,children:o,imageUrl:c="".concat("https://web-cdn.rockflow.tech/rockflow-website","/logo.v2.png")}=e,{locale:d="en",defaultLocale:x="en",locales:u=["en"],asPath:h}=(0,s.useRouter)(),m=(h||"/").split("#")[0]||"/",p=n(d,x,m),g=[...u.map(e=>({hrefLang:e,href:n(e,x,m)})),{hrefLang:"x-default",href:n(x,x,m)}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.bV,{titleTemplate:"%s | RockFlow",title:t,description:l,canonical:p,languageAlternates:g,openGraph:{type:"website",locale:d,url:p,site_name:"RockFlow",images:[{url:c,width:600,height:600,alt:t}]},twitter:{cardType:"summary_large_image",site:"@twitter",handle:"@twitter"},additionalMetaTags:[{name:"keywords",content:i||""},{name:"telegram:channel",content:"@telegram"},{name:"twitter:title",content:t||"RockFlow"},{name:"twitter:description",content:l||"RockFlow"},{name:"twitter:image",content:c}]}),o]})}},83258:(e,t,l)=>{"use strict";l.d(t,{Zj:()=>a,xE:()=>r});var r=function(e){return e.ALL="ALL",e.TOP_PICKS="TOP_PICKS",e.FAVORITE="FAVORITE",e}({}),a=function(e){return e.CREATE_TIME="CREATE_TIME",e.TRADING_AMOUNT="TRADING_AMOUNT",e.COPY_TRADERS="COPY_TRADERS",e.FOLLOWERS="FOLLOWERS",e.WEEKLY_YIELD_RATE="WEEKLY_YIELD_RATE",e.MONTHLY_YIELD_RATE="MONTHLY_YIELD_RATE",e.YEARLY_YIELD_RATE="YEARLY_YIELD_RATE",e.WEEKLY_BACK_TEST_PROFIT_PERCENT="WEEKLY_BACK_TEST_PROFIT_PERCENT",e.MONTHLY_BACK_TEST_PROFIT_PERCENT="MONTHLY_BACK_TEST_PROFIT_PERCENT",e.YEARLY_BACK_TEST_PROFIT_PERCENT="YEARLY_BACK_TEST_PROFIT_PERCENT",e}({});Object.fromEntries(Object.keys(a).filter(e=>isNaN(Number(e))).map(e=>[e,e]))},79946:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>R,default:()=>Y});var r=l(44489),a=l(37942),s=l(44349),n=l(70851),i=l(83258);l(54514);var o=l(59315),c=l.n(o),d=l(32528),x=l.n(d),u=l(15322),h=l(12620),m=l(65278);function p(e){let{t}=(0,u.Bd)("ai-strategy"),l=e=>{if(void 0===e)return"--%";let t=100*e,l=t>=0?"+":"";return"".concat(l).concat(t.toFixed(2),"%")},a=(()=>{switch(e.sortType){case i.Zj.COPY_TRADERS:return{label:t("copy_users"),value:e.copyTraders.toString()};case i.Zj.FOLLOWERS:return{label:t("bookmark"),value:e.followers.toString()};default:return{label:t("card_aum"),value:(0,m.P)(e.tradingAmount)+" USD"}}})(),s=(()=>{switch(e.sortType){case i.Zj.WEEKLY_BACK_TEST_PROFIT_PERCENT:return{label:t("backtest_return_1w"),value:l(e.monthlyBackTestProfitPercent)};case i.Zj.MONTHLY_BACK_TEST_PROFIT_PERCENT:return{label:t("backtest_return_1m"),value:l(e.monthlyBackTestProfitPercent)};case i.Zj.YEARLY_BACK_TEST_PROFIT_PERCENT:return{label:t("backtest_return_1y"),value:l(e.yearlyBackTestProfitPercent)};default:return{label:t("card_monthly_backtest"),value:l(e.monthlyBackTestProfitPercent)}}})(),n=(()=>{switch(e.sortType){case i.Zj.WEEKLY_YIELD_RATE:return{label:t("return_1w"),value:l(e.monthlyYieldRate)};case i.Zj.MONTHLY_YIELD_RATE:return{label:t("return_1m"),value:l(e.monthlyYieldRate)};case i.Zj.YEARLY_YIELD_RATE:return{label:t("return_1y"),value:l(e.yearlyYieldRate)};default:return{label:t("card_monthly_return"),value:l(e.monthlyYieldRate)}}})();return(0,r.jsx)(x(),{className:"block",href:"/ai/portfolio/".concat(e.strategy.userId),children:(0,r.jsxs)("div",{className:"px-4.5 py-5 transition hover:bg-29223E lg:mt-6 lg:rounded-[20px] lg:bg-141124 lg:px-8 lg:py-6 4xl:mt-12 4xl:px-9 4xl:py-12",children:[(0,r.jsxs)("h3",{className:"heading-28 items-center max-lg:flex max-lg:text-sm",children:[(0,r.jsx)("span",{className:"max-lg:w-0 max-lg:flex-1 max-lg:truncate",children:e.strategy.nickname}),(0,r.jsx)("svg",{className:"lg:hidden",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",children:(0,r.jsx)("path",{d:"M4.9 12.8571L10.5 7.45422L4.9 2.14286",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,r.jsxs)("div",{className:"mt-3 flex items-center gap-1 lg:gap-4 4xl:mt-4",children:[(0,r.jsx)("div",{className:"h-4 w-4 lg:h-7 lg:w-7 4xl:h-9 4xl:w-9",children:(0,h.s)(e.creator.avatar)?(0,r.jsx)("div",{className:"heading-22 flex h-full w-full items-center justify-center rounded-full text-white max-lg:text-sm",style:{backgroundColor:(0,h.$)(e.creator.nickname,e.strategy.userId.toString()).avatarColor},children:(0,h.$)(e.creator.nickname,e.strategy.userId.toString()).avatarStr}):(0,r.jsx)(c(),{src:e.strategy.avatar,alt:"avatar",width:36,height:36,loading:"lazy",className:"h-full w-full rounded-full"})}),(0,r.jsx)("span",{className:"paragraph-18 max-lg:text-xs max-lg:text-886AFF",children:e.creator.nickname})]}),(0,r.jsx)("p",{className:"heading-18 mt-2 line-clamp-2 max-lg:text-xs/[1.7em] lg:mt-6 4xl:mt-7",children:e.strategy.introduction}),(0,r.jsxs)("div",{className:"mt-4 flex justify-between lg:mt-5 4xl:mt-8",children:[(0,r.jsx)(g,{label:a.label,value:a.value,className:"text-left"}),(0,r.jsx)(g,{label:s.label,value:s.value,className:"text-left",textClassName:"text-886AFF"}),(0,r.jsx)(g,{label:n.label,value:n.value,className:"text-right",textClassName:e.monthlyYieldRate>=0?"text-0EF8C0":"text-FF39A3"})]})]})})}function g(e){return(0,r.jsxs)("div",{className:(0,n.A)("flex flex-1 flex-col",e.className),children:[(0,r.jsx)("span",{className:(0,n.A)("heading-24 max-lg:text-sm",e.textClassName),children:e.value}),(0,r.jsx)("span",{className:"paragraph-18 text-949494 max-lg:text-xs",children:e.label})]})}var f=l(28839),b=l(10349);let _=[{label:"return",key:"yield",children:[{label:"return_1w",value:i.Zj.WEEKLY_YIELD_RATE,key:"WEEKLY_YIELD_RATE"},{label:"return_1m",value:i.Zj.MONTHLY_YIELD_RATE,key:"MONTHLY_YIELD_RATE"},{label:"return_1y",value:i.Zj.YEARLY_YIELD_RATE,key:"YEARLY_YIELD_RATE"}]},{label:"backtest_return",key:"backtest",children:[{label:"backtest_return_1w",value:i.Zj.WEEKLY_BACK_TEST_PROFIT_PERCENT,key:"WEEKLY_BACK_TEST_PROFIT_PERCENT"},{label:"backtest_return_1m",value:i.Zj.MONTHLY_BACK_TEST_PROFIT_PERCENT,key:"MONTHLY_BACK_TEST_PROFIT_PERCENT"},{label:"backtest_return_1y",value:i.Zj.YEARLY_BACK_TEST_PROFIT_PERCENT,key:"YEARLY_BACK_TEST_PROFIT_PERCENT"}]}
1,{label:"card_aum",key:"TRADING_AMOUNT",value:i.Zj.TRADING_AMOUNT},{label:"copy_users",key:"COPY_TRADERS",value:i.Zj.COPY_TRADERS},{label:"bookmark",key:"FOLLOWERS",value:i.Zj.FOLLOWERS}],j=new Map([[i.Zj.COPY_TRADERS,"copy_users"],[i.Zj.WEEKLY_YIELD_RATE,"return_1w"],[i.Zj.MONTHLY_YIELD_RATE,"return_1m"],[i.Zj.YEARLY_YIELD_RATE,"return_1y"],[i.Zj.WEEKLY_BACK_TEST_PROFIT_PERCENT,"backtest_return_1w"],[i.Zj.MONTHLY_BACK_TEST_PROFIT_PERCENT,"backtest_return_1m"],[i.Zj.YEARLY_BACK_TEST_PROFIT_PERCENT,"backtest_return_1y"],[i.Zj.TRADING_AMOUNT,"card_aum"],[i.Zj.FOLLOWERS,"bookmark"]]);function v(e){let{t}=(0,u.Bd)("ai-strategy"),[l,a]=(0,s.useState)(null),[o,c]=(0,s.useState)({sort:"",asc:!0}),d=e=>{let t;o.sort===e?(o.asc||(e=i.Zj.CREATE_TIME),t=!1):t=!0,c({sort:e,asc:t})},x=e=>o.sort!==e||null===o.asc?null:(0,r.jsxs)("svg",{className:(0,n.A)(o.asc?"rotate-0":"rotate-180"),width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",children:[(0,r.jsx)("path",{d:"M10 6.64258L5.96429 1.99972L1.92858 6.64258",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M5.21387 15C5.21387 15.4142 5.54965 15.75 5.96387 15.75C6.37808 15.75 6.71387 15.4142 6.71387 15L5.21387 15ZM5.96387 15L6.71387 15L6.71387 2L5.96387 2L5.21387 2L5.21387 15L5.96387 15Z",fill:"currentColor"})]}),h=(0,s.useMemo)(()=>{var l;return t(null!==(l=j.get(e.sort))&&void 0!==l?l:"sort_by")},[e.sort]);return(0,r.jsxs)(b._s,{onOpenChange:t=>{if(t){let t="";_.forEach(e=>{var l,r;(null===(r=e.children)||void 0===r?void 0:null===(l=r.find(e=>e.value===o.sort))||void 0===l?void 0:l.key)&&(t=e.key)}),t?a(t):a(null),c({sort:e.sort,asc:e.asc})}},children:[(0,r.jsx)(b.Uz,{asChild:!0,className:"lg:hidden",children:(0,r.jsxs)("button",{className:"inline-flex h-7 min-w-[3.75rem] items-center space-x-1 rounded-full border border-535353 bg-transparent px-3 text-xs font-semibold",id:"sort-controller-mobile",children:[(0,r.jsx)("span",{children:h}),(0,r.jsx)("svg",{className:"mt-0.5",width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",children:(0,r.jsx)("path",{d:"M1 1L4 4L7 1",stroke:"currentColor"})})]})}),(0,r.jsxs)(b.zj,{className:"z-[10000000000]",children:[(0,r.jsxs)(b.BE,{className:"py-2",children:[(0,r.jsx)(b.gk,{className:"text-center text-xl font-bold",children:t("sort_by")}),(0,r.jsx)(b.I6,{})]}),(0,r.jsx)("div",{className:"hidden-scroll-bar h-[20rem] max-h-[60vh] overflow-y-auto px-6 text-sm font-semibold",children:_.map(e=>{if("children"in e){var s;return(0,r.jsxs)(y,{className:"overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",onClick:()=>a(l===e.key?null:e.key),children:[(0,r.jsx)("span",{className:"flex items-center text-white",children:t(e.label)}),(0,r.jsxs)("div",{className:"flex items-center space-x-4",children:[l===e.key&&(0,r.jsx)("svg",{className:"text-886AFF",width:"7",height:"7",viewBox:"0 0 7 7",fill:"none",children:(0,r.jsx)("circle",{cx:"3.5",cy:"3.5",r:"3.5",fill:"currentColor"})}),(0,r.jsx)("svg",{className:(0,n.A)("ml-2 text-535353 transition-transform",l===e.key?"rotate-180":"rotate-0"),width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",children:(0,r.jsx)("path",{d:"M1.75977 5.78564L7.54862 11.7856L13.2394 5.78564",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]}),(0,r.jsx)("div",{className:(0,n.A)("overflow-hidden transition-[max-height] duration-300 ease-in-out",l===e.key?"max-h-40":"max-h-0"),children:null===(s=e.children)||void 0===s?void 0:s.map(e=>(0,r.jsxs)("div",{className:(0,n.A)("flex w-full items-center justify-between pb-5 transition-colors first:pt-5 last:pb-0",o.sort===e.value?"text-white":"text-949494"),onClick:()=>d(e.value),children:[(0,r.jsx)("span",{children:t(e.label)}),x(e.key)]},e.value))})]},e.key)}return(0,r.jsx)(y,{onClick:()=>{d(e.value)},children:(0,r.jsxs)("div",{className:"flex items-center justify-between text-sm font-bold text-white transition-colors",children:[(0,r.jsx)("span",{children:t(e.label)}),x(e.key)]})},e.key)})}),(0,r.jsx)(b.tb,{className:"p-6 text-white",children:(0,r.jsx)(b.cp,{asChild:!0,children:(0,r.jsx)("button",{className:"h-12 rounded-full bg-white text-lg font-bold text-black",onClick:()=>{e.onChange(o.sort,o.asc)},children:t("confirm",{ns:"common"})})})})]})]})}function y(e){return(0,r.jsx)("div",{className:(0,n.A)("border-b-f2f2f2 border-b-1 py-5 last:border-b-0 dark:border-b-191919",e.className),onClick:e.onClick,children:e.children})}var E=l(52395);function w(e){let{t}
1=(0,u.Bd)("ai-strategy"),[l,a]=(0,s.useState)(!1),[o,c]=(0,s.useState)(null);(0,s.useEffect)(()=>{let t="";_.forEach(l=>{var r,a;(null===(a=l.children)||void 0===a?void 0:null===(r=a.find(t=>t.value===e.sort))||void 0===r?void 0:r.key)&&(t=l.key)}),t?c(t):c(null)},[e.sort]);let d=t=>{let l;e.sort===t?(e.asc||(t=i.Zj.CREATE_TIME),l=!1):l=!0,e.onChange(t,l)},x=t=>e.sort!==t||null===e.asc?null:(0,r.jsxs)("svg",{className:(0,n.A)(e.asc?"rotate-0":"rotate-180"),width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",children:[(0,r.jsx)("path",{d:"M10 6.64258L5.96429 1.99972L1.92858 6.64258",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M5.21387 15C5.21387 15.4142 5.54965 15.75 5.96387 15.75C6.37808 15.75 6.71387 15.4142 6.71387 15L5.21387 15ZM5.96387 15L6.71387 15L6.71387 2L5.96387 2L5.21387 2L5.21387 15L5.96387 15Z",fill:"currentColor"})]}),h=(0,s.useMemo)(()=>{var l;return t(null!==(l=j.get(e.sort))&&void 0!==l?l:"sort_by")},[e.sort]);return(0,r.jsxs)(E.AM,{onOpenChange:a,children:[(0,r.jsx)(E.Wv,{id:"sort
1-controller-pc",className:"max-lg:hidden",children:(0,r.jsxs)("div",{className:"heading-18 flex items-center gap-5 rounded-full border border-3C355B bg-transparent lg:h-15 lg:w-64 lg:px-7 4xl:h-18 4xl:w-[330px] 4xl:px-9",children:[(0,r.jsx)("span",{className:"flex-1 text-left",children:h}),(0,r.jsx)("span",{className:"lg:w-4 4xl:w-5",children:(0,r.jsx)("svg",{viewBox:"0 0 8 5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:(0,n.A)("transition",l?"rotate-180":""),children:(0,r.jsx)("path",{d:"M1 1L4 4L7 1",stroke:"currentColor"})})})]})}),(0,r.jsx)(E.hl,{children:(0,r.jsx)("div",{className:"heading-18 rounded-[20px] bg-312E40 shadow-[0_4px_34px_0_rgba(0,0,0,.55)] lg:w-80 4xl:w-[420px]",children:_.map(e=>{if("children"in e){var l;return(0,r.jsxs)(N,{className:"overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between lg:h-16 4xl:h-20",onClick:()=>c(o===e.key?null:e.key),children:[(0,r.jsx)("span",{className:"heading-18",children:t(e.label)}),(0,r.jsxs)("div",{className:"flex items-center lg:gap-4 5xl:gap-5",children:[o===e.key&&(0,r.jsx)("div",{className:"flex items-center justify-between lg:h-2 lg:w-2 4xl:h-2.5 4xl:w-2.5",children:(0,r.jsx)("svg",{className:"h-full w-full text-886AFF",viewBox:"0 0 7 7",fill:"none",children:(0,r.jsx)("circle",{cx:"3.5",cy:"3.5",r:"3.5",fill:"currentColor"})})}),(0,r.jsx)("div",{className:"flex items-center justify-between lg:w-4 4xl:w-5",children:(0,r.jsx)("svg",{className:(0,n.A)("transition-transform",o===e.key?"rotate-180":"rotate-0"),viewBox:"0 0 8 5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M1 1L4 4L7 1",stroke:"currentColor"})})})]})]}),(0,r.jsx)("div",{className:(0,n.A)("overflow-hidden transition-[max-height] duration-300 ease-in-out",o===e.key?"lg:max-h-48 4xl:max-h-60":"max-h-0"),children:null===(l=e.children)||void 0===l?void 0:l.map(e=>(0,r.jsxs)("div",{className:"flex items-center justify-between lg:h-16 4xl:h-20",onClick:()=>d(e.value),children:[(0,r.jsx)("span",{children:t(e.label)}),x(e.key)]},e.value))})]},e.key)}return(0,r.jsx)(N,{onClick:()=>{d(e.value)},children:(0,r.jsxs)("div",{className:"flex items-center justify-between transition-colors lg:h-16 4xl:h-20",children:[(0,r.jsx)("span",{children:t(e.label)}),x(e.key)]})},e.key)})})})]})}function N(e){return(0,r.jsx)("div",{className:(0,n.A)("group cursor-pointer lg:pl-[1.67vw] 5xl:pl-8",e.className),onClick:e.onClick,children:(0,r.jsx)("div",{className:"border-b border-3C355B group-last:border-none lg:pr-[1.67vw] 5xl:pr-8",children:e.children})})}var k=l(62070),T=l(69428),C=l(31435),A=l(2193),L=l(7261),R=!0;function Y(e){let{filter:t,sort:l,asc:a,aiPortfolioList:s}=e,{t:o}=(0,u.Bd)("ai-strategy"),{t:d}=(0,u.Bd)("website"),x=(0,L.useRouter)(),h=[{label:o("filter_all"),value:i.xE.ALL},{label:o("filter_featured"),value:i.xE.TOP_PICKS}],m={title:d("pages.ai-portfolio.index.meta.title",{num:Math.round(13*Math.random())+7}),desc:d("pages.ai-portfolio.index.meta.desc",{num:Math.round(13*Math.random())+7,percent:(13*Math.random()+7).toFixed(2)}),keywords:d("pages.ai-portfolio.index.meta.keywords"),imgUrl:"https://web-cdn.rockflow.tech/h5/logo.png"},g=async e=>{let t="/ai/portfolio?filter=".concat(e,"&sort=").concat(l,"&asc=").concat(a);return x.push(t)},b=(e,l)=>{let r="/ai/portfolio?filter=".concat(t,"&sort=").concat(e,"&asc=").concat(l);x.push(r)};return(0,r.jsxs)(f.A,{title:m.title,description:m.desc,keywords:m.keywords,imageUrl:m.imgUrl,children:[(0,r.jsx)(A.Q2,{scriptId:"faq-page",type:"FAQPage",keyOverride:"faq-page",mainEntity:Array.from({length:5}).map((e,t)=>({questionName:d("pages.ai-portfolio.index.faq.".concat(t,".questionName")),acceptedAnswerText:d("pages.ai-portfolio.index.faq.".concat(t,".acceptedAnswerText"))}))}),(0,r.jsxs)("div",{className:"pt-20 text-white lg:pt-[150px] 4xl:pt-52",children:[(0,r.jsx)(c(),{src:(0,k.gi)("/ai/portfolio/bg.png"),alt:"AI Portfolio",width:1920,height:665,className:"absolute left-0 top-0 w-full"}),(0,r.jsxs)("div",{className:"relative mx-auto flex lg:max-w-screen-lg lg:gap-6 lg:px-10 4xl:max-w-screen-4xl 4xl:gap-8 4xl:px-14",children:[(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsxs)("section",{children:[(0,r.jsx)("h1",{className:"heading-68 mb-7 text-2xl max-lg:text-center lg:mb-4 4xl:mb-8",children:o("ai-portfolio")}),(0,r.jsx)("h2",{className:"heading-22 text-949494 max-lg:hidden lg:mb-20 4xl:mb-18",children:d("pages.ai-portfolio.index.h2")}),(0,r.jsxs)("div",{className:"flex items-center gap-4 max-lg:mb-6 max-lg:px-4.5 lg:gap-7 4xl:gap-10",children:[(0,r.jsx)("div",{className:"heading-18 flex flex-1 border-3C355B text-xs max-lg:gap-4 lg:border-b",children:h.map(e=>(0,r.jsxs)("button",{className:(0,n.A)("relative flex items-center justify-center px-3 transition max-lg:h-8 max-lg:rounded-[6px] lg:flex-1 lg:py-4 4xl:py-6",t===e.value?"max-lg:bg-1C1C1C":"lg:text-949494"),onClick:()=>g(e.value),id:"tab-".concat(e.value.toLocaleLowerCase()),children:[e.label,(0,r.jsx)("span",{className:(0,n.A)("absolute w-full bg-white transition lg:-bottom-1 lg:h-[7px]",t===e.value?"":"opacity-0")})]},e.value))}),(0,r.jsx)(v,{activeTab:t,sort:l,asc:a,onChange:b}),(0,r.jsx)(w,{activeTab:t,sort:l,asc:a,onChange:b})]}),(0,r.jsx)("div",{className:"divide-191919 max-lg:divide-y",children:s.map(e=>(0,r.jsx)(p,{...e,sortType:l},e.strategy.userId))})]})}),(0,r.jsx)("div",{className:"shrink-0 max-lg:hidden lg:w-[265px] 4xl:w-[374px]",children:(0,r.jsx)("div",{className:"sticky z-10 lg:top-28 4xl:top-36",children:(0,r.jsx)(T.A,{})})})]}),(0,r.jsx)(C.A,{})]})]})}Y.getLayout=function(e){return(0,r.jsx)(a.A,{theme:"dark",children:e})}},65278:(e,t,l)=>{"use strict";function r(e){return e?String(e).replace(/\d+/,function(e){return e.replace(/(\d)(?=(\d{3})+$)/g,function(e){return e+","})}):"0"}l.d(t,{P:()=>r})},12620:(e,t,l)=>{"use strict";l.d(t,{$:()=>s,s:()=>a});let r=["#9bc5ff","#b59bff","#ffdb9b","#ff9b9b"];function a(e){return!e||""===e.trim()||e.includes("avatar-default/avatar-default.png")}function s(e,t){let l=function(e){let t=(parseInt(e,10)||0)%r.length;return r[t]}(t),a="R",s=(e||"Rocker").trim();return s.length>0&&(a=s.charAt(0).toUpperCase()),{avatarColor:l,avatarStr:a}}},4291:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});let r=(0,l(54287).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},55362:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});let r=(0,l(54287).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},69902:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});let r=(0,l(54287).A)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]])},29358:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});let r=(0,l(54287).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},62669:(e,t,l)=>{"use strict";l.d(t,{DX:()=>d});var r,a=l(44349),s=l(14990),n=l(44489),i=Symbol.for("react.lazy"),o=(r||(r=l.t(a,2)))[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=function(e){let t=function(e){let t=a.forwardRef((e,t)=>
1{let{children:l,...r}=e;if(c(l)&&"function"==typeof o&&(l=o(l._payload)),a.isValidElement(l)){var n;let e,i;let o=(n=l,(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref),c=function(e,t){let l={...t};for(let r in t){let a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?l[r]=(...e)=>{let t=s(...e);return a(...e),t}:a&&(l[r]=a):"style"===r?l[r]={...a,...s}:"className"===r&&(l[r]=[a,s].filter(Boolean).join(" "))}return{...e,...l}}(r,l.props);return l.type!==a.Fragment&&(c.ref=t?(0,s.t)(t,o):o),a.cloneElement(l,c)}return a.Children.count(l)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),l=a.forwardRef((e,l)=>{let{children:r,...s}=e;c(r)&&"function"==typeof o&&(r=o(r._payload));let i=a.Children.toArray(r),d=i.find(u);if(d){let e=d.props.children,r=i.map(t=>t!==d?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,n.jsx)(t,{...s,ref:l,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,n.jsx)(t,{...s,ref:l,children:r})});return l.displayName=`${e}.Slot`,l}("Slot"),x=Symbol("radix.slottable");function u(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}}},e=>{var t=t=>e(e.s=t);e.O(0,[6954,813,2528,3872,6789,3843,7133,9498,2193,7928,4444,7942,636,6593,8792],()=>t(62023)),_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.