PageSourceSearch

https://trellis3d.net/_next/static/chunks/2752-f3f4d71e7810dc97.js

js trellis3d.net collected 2026-10-04 23:10:39 UTC 16,120 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2752],{2752:function(e,t,r){r.d(t,{default:function(){return g}});var a=r(881),n=r(4149),s=r(8580),l=r(4391),o=r(6580),i=r(7525),d=r(9427),c=r(569),u=r(7217),m=r(699),f=r(214);function x(e){let{name:t,id:r,priceMonthly:x,unit:g,plan:h,amount:b,currency:y,credits:v,description:w,features:j,featured:N,type:k,locale:S="en",payproUrl:_,user_level:C=u.aZ.TRIAL,compact:T=!1,translations:E={processing:"Processing...",buy_now:"Try Now"}}=e;(0,i.useRouter)();let[L,z]=(0,n.useState)(!1),[R,I]=(0,n.useState)(!1),[A,D]=(0,n.useState)(!1),[O,V]=(0,n.useState)(""),{user:P}=(0,m.b)(),{referralId:Z}=function(){let[e,t]=(0,n.useState)(null),[r,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>{window.rewardful?window.rewardful("ready",()=>{t(window.Rewardful.referral),a(!0)}):setTimeout(e,100)};e()},[]),{referralId:e,isReady:r}}(),M=!!P,B=()=>{if("yearly"!==h)return null;parseFloat(x.replace("$",""));let e={16680:1590,19080:1990,28680:2990,53880:5990,71880:8990}[b];return e?e/100:b/12/.8},F=B(),H=(()=>
1{if("yearly"!==h)return null;let e=parseFloat(x.replace("$","")),t=B();return t?Math.round((t-e)/t*100):null})(),K=async()=>{try{if(!M){z(!1),I(!0);return}z(!0);let e=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:h,credits:v,amount:b,currency:y,locale:S,user_level:C,referral:Z})});if(401===e.status){z(!1),o.toast.error("You need to log in"),I(!0);return}let{code:t,message:r,data:a}=await e.json();if(!a){z(!1),o.toast.error(r||"Checkout failed");return}let{public_key:n,session_id:s}=a,l=await (0,d.J)(n);if(!l){z(!1),o.toast.error("Checkout failed");return}let i=await l.redirectToCheckout({sessionId:s});i.error&&(z(!1),o.toast.error(i.error.message||"An error occurred"))}catch(e){z(!1),o.toast.error("Checkout failed")}};return(0,a.jsxs)("div",{className:p("flex flex-col border rounded-3xl shadow-lg transition-all duration-300 hover:shadow-xl hover:-translate-y-2 relative hover:shadow-primary",T?"p-4 sm:p-6":"p-8 sm:p-8","primary"===k?"bg-card border-2 border-primary":"bg-card/50 border-border/50"),children:[(0,a.jsx)("div",{className:"flex justify-between items-center",children:(0,a.jsx)("div",{id:r,className:p("font-base text-card-foreground rounded-lg px-3 bg-secondary/50 border-0",T?"text-sm":"text-lg"),children:t})}),(0,a.jsxs)("div",{className:"flex justify-between items-end ".concat(T?"mt-4":"mt-8"),children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-x-2",children:[(0,a.jsx)("span",{className:p("font-semibold tracking-tight text-foreground",T?"text-3xl sm:text-4xl":"text-5xl"),children:x}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:p("text-foreground",T?"text-base":"text-xl"),children:g}),"yearly"===h&&F&&(0,a.jsxs)("span",{className:"absolute -top-7 left-0 text-muted-foreground line-through ".concat(T?"text-sm":"text-lg"),children:["$",F.toFixed(2)]})]})]}),"yearly"===h&&H&&(0,a.jsxs)("span",{className:"font-semibold bg-green-500/20 rounded-full px-2 text-green-500 ".concat(T?"text-xs":"text-sm"),children:[H,"% off"]})]}),(0,a.jsx)("div",{className:"mt-auto grid grid-cols-1 gap-4 ".concat(T?"pt-4":"pt-8"),children:(0,a.jsx)(s.z,{className:p("transition-all duration-300 hover:scale-105 rounded-xl",T?"text-lg py-4":"text-lg py-6","primary"===k?"bg-primary text-primary-foreground hover:bg-primary/90 border-0 shadow-lg":"bg-muted/50 text-muted-foreground hover:bg-muted/70 border border-border"),disabled:L,onClick:K,children:L?E.processing:E.buy_now})}),(0,a.jsx)("ul",{role:"list",className:p("space-y-2 leading-6 text-muted-foreground",T?"mt-4 text-xs space-y-2":"mt-8 text-sm"),children:(j||[]).map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-x-3 items-start",children:[e.available?(0,a.jsx)(l.wO,{className:p("flex-none mt-1 text-green-500","h-4 w-4"),"aria-hidden":"true"}):(0,a.jsx)(l.GjQ,{className:p("flex-none mt-1 text-red-500","h-4 w-4"),"aria-hidden":"true"}),(0,a.jsx)("span",{className:p("text-base",e.available?"text-foreground":"text-muted-foreground/70"),dangerouslySetInnerHTML:{__html:e.text}})]},t))}),(0,a.jsx)(c.f,{open:R,onOpenChange:I}),(0,a.jsx)(f.Vq,{open:A,onOpenChange:D,children:(0,a.jsx)(f.cZ,{className:"w-[90vw] h-[90vh] max-w-[1400px] p-0 border-0",children:(0,a.jsx)("iframe",{src:O,className:"w-full h-full border-0",allow:"payment",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",onError:e=>{console.error("iframe error:",e),o.toast.error("Payment page failed to load"),D(!1)}})})})]})}function p(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}function g(e){let{onetimeTiers:t,monthlyTiers:r,yearlyTiers:s,locale:l,showOneTimeTab:o=!0,compact:i=!1,translations:d,tierCardTranslations:c}=e,[u,m]=(0,n.useState)("yearly");return(0,a.jsxs)("div",{className:"w-full mx-auto",children:[(0,a.jsx)("div",{className:"flex justify-center ".concat(i?"mb-3":"mb-4"," px-2"),children:(0,a.jsxs)("div",{className:"inline-flex border border-border bg-card shadow-sm rounded-full overflow-hidden",children:[(0,a.jsx)("button",{onClick:()=>m("monthly"),className:"rounded-full ".concat(i?"px-3 sm:px-6 py-1.5 text-sm":"px-3 sm:px-6 lg:px-8 py-1.5 sm:py-2 text-xs sm:text-sm"," font-medium transition-all duration-200 whitespace-nowrap ").concat("monthly"===u?"bg-primary text-primary-foreground":"bg-card text-foreground
1/80 hover:bg-secondary/50"),children:d.tabs_monthly}),(0,a.jsxs)("button",{onClick:()=>m("yearly"),className:"rounded-full ".concat(i?"px-3 sm:px-6 py-1.5 text-sm":"px-3 sm:px-6 lg:px-8 py-1.5 sm:py-2 text-xs sm:text-sm"," font-medium transition-all duration-200 flex items-center whitespace-nowrap ").concat("yearly"===u?"bg-primary text-primary-foreground":"bg-card text-foreground/80 hover:bg-secondary/50"),children:[d.tabs_yearly,(0,a.jsx)("span",{className:"".concat(i?"ml-1 text-xs px-1 py-0.5":"ml-1 sm:ml-2 text-xs px-1.5 sm:px-2 py-0.5"," bg-green-600 rounded-full"),children:d.tabs_yearly_tips})]}),o&&(0,a.jsx)("button",{onClick:()=>m("one-time"),className:"rounded-full ".concat(i?"px-2 sm:px-4 py-1 text-xs":"px-3 sm:px-6 lg:px-8 py-1.5 sm:py-2 text-xs sm:text-sm"," font-medium transition-all duration-200 whitespace-nowrap ").concat("one-time"===u?"bg-primary text-primary-foreground":"bg-card text-foreground/80 hover:bg-secondary/50"),children:d.tabs_one_time})]})}),(0,a.jsx)("div",{className:"grid ".concat(i?"grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-2 sm:gap-3 p-1 sm:p-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3 sm:gap-4 lg:gap-6 p-2 sm:p-4"),children:("one-time"===u&&o?t:"monthly"===u?r:s).map(e=>(0,a.jsx)("div",{className:"h-full",children:(0,a.jsx)(x,{...e,locale:"en"===l?void 0:l,compact:i,translations:c})},e.id))})]})}},569:function(e,t,r){r.d(t,{f:function(){return c}});var a=r(881),n=r(214),s=r(8580),l=r(445),o=r(2397),i=r(2580),d=r(7168);function c(e){let{open:t,onOpenChange:r}=e,c=(0,i.useTranslations)("common.auth.loginDialog");return(0,a.jsx)(n.Vq,{open:t,onOpenChange:r,children:(0,a.jsx)(n.cZ,{className:"sm:max-w-[800px] p-0 gap-0 border border-border",children:(0,a.jsxs)("div",{className:"w-full flex min-h-[500px] justify-start",children:[(0,a.jsx)("div",{className:"w-1/2 p-8 flex items-center",children:(0,a.jsxs)("div",{className:"w-full flex flex-col justify-between h-full py-4",children:[(0,a.jsxs)("div",{className:"text-center space-y-6",children:[(0,a.jsxs)("h1",{className:"text-2xl font-bold tracking-tight text-foreground",children:[c("welcome_title")," ",(0,a.jsx)("span",{className:"text-2xl text-primary",children:d.RS})]}),(0,a.jsx)("p",{className:"text-base text-muted-foreground max-w-sm mx-auto leading-relaxed",children:c("welcome_subtitle")})]}),(0,a.jsx)("div",{className:"flex flex-col space-y-4",children:(0,a.jsxs)(s.z,{onClick:()=>{(0,o.zB)("google")},children:[(0,a.jsx)(l.default,{src:"/google.svg",alt:"Google",width:20,height:20,className:"mr-2"}),c("continue_with_google")]})}),(0,a.jsxs)("p",{className:"text-xs text-center text-muted-foreground",children:[c("terms_text_part1")," ",(0,a.jsx)("a",{href:"/terms-of-service",className:"underline hover:text-primary",children:c("terms_link")}),c("terms_text_part2")," ",(0,a.jsx)("a",{href:"/privacy-policy",className:"underline hover:text-primary",children:c("privacy_link")}),c("terms_text_part3")]})]})}),(0,a.jsx)("div",{className:"w-1/2 relative bg-muted overflow-hidden rounded-r-lg",children:(0,a.jsx)("div",{className:"absolute inset-0",children:(0,a.jsx)(l.default,{src:"https://fluximageai.net/website/sign_img_02.jpg",alt:"Logo",fill:!0,className:"object-cover",priority:!0})})})]})})})}},8580:function(e,t,r){r.d(t,{d:function(){return i},z:function(){return d}});var a=r(881),n=r(4149),s=r(3136),l=r(9326),o=r(270);let i=(0,l.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>
1{let{className:r,variant:n,size:l,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,a.jsx)(u,{className:(0,o.cn)(i({variant:n,size:l,className:r})),ref:t,...c})});d.displayName="Button"},214:function(e,t,r){r.d(t,{$N:function(){return x},Be:function(){return p},Vq:function(){return i},cZ:function(){return m},fK:function(){return f},hg:function(){return d}});var a=r(881),n=r(4149),s=r(1e3),l=r(9897),o=r(270);let i=s.fC,d=s.xz,c=s.h_;s.x8;let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.aV,{ref:t,className:(0,o.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...n})});u.displayName=s.aV.displayName;let m=n.forwardRef((e,t)=>{let{className:r,children:n,...i}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{}),(0,a.jsxs)(s.VY,{ref:t,className:(0,o.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...i,children:[n,(0,a.jsxs)(s.x8,{className:"absolute right-4 top-4 roun
1ded-sm bg-foreground/10 backdrop-blur-sm p-2 hover:bg-foreground/20 ring-offset-background transition-all hover:scale-110 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[(0,a.jsx)(l.Z,{className:"h-4 w-4 text-foreground"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=s.VY.displayName;let f=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};f.displayName="DialogHeader";let x=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Dx,{ref:t,className:(0,o.cn)("text-lg font-semibold leading-none tracking-tight",r),...n})});x.displayName=s.Dx.displayName;let p=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.dk,{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...n})});p.displayName=s.dk.displayName},7168:function(e,t,r){r.d(t,{RS:function(){return a},im:function(){return n},jT:function(){return s}});let a="Trellis 3D",n="Generated by Trellis3d.net",s=null},699:function(e,t,r){r.d(t,{AppContextProvider:function(){return m},I:function(){return u},b:function(){return c}});var a=r(881),n=r(6776),s=r(4149),l=r(2397),o=r(7217);let i=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365;if("undefined"==typeof document)return;let a=new Date;a.setTime(a.getTime()+864e5*r),document.cookie="".concat(e,"=").concat(t,";expires=").concat(a.toUTCString(),";path=/;SameSite=Lax")},d=e=>{if("undefined"==typeof document)return null;let t=e+"=",r=document.cookie.split(";");for(let e=0;e<r.length;e++){let a=r[e];for(;" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return a.substring(t.length,a.length)}return null},c=()=>(0,s.useContext)(u),u=(0,s.createContext)({}),m=e=>{var t,r;let{children:c,initialTheme:m}
1=e,[f,x]=(0,s.useState)(m||"light"),[p,g]=(0,s.useState)(window.localStorage.getItem("locale")||"en"),[h,b]=(0,s.useState)(!1),[y,v]=(0,s.useState)(!1),[w,j]=(0,s.useState)(null),[N,k]=(0,s.useState)(null),[S,_]=(0,s.useState)([]),[C,T]=(0,s.useState)(!1),[E,L]=(0,s.useState)(null),z=(0,l.kP)(),R=async()=>{try{let e=await fetch("/api/get-user-credits",{method:"POST",headers:{"Content-Type":"application/json"}}),{data:t}=await e.json();if(console.log("user credits",t),t){k(t);let e=t.is_paid;T(e)}}catch(e){console.log("get user credits failed:",e)}};(0,s.useEffect)(()=>{p&&(window.localStorage.setItem("locale",p),console.log("Locale updated:",p))},[p]),(0,s.useEffect)(()=>{if(m&&["dark","light"].includes(m)){x(m),(0,n.lK)("THEME",m,-1);return}let e=d("theme");if(e&&["dark","light"].includes(e)){x(e),(0,n.lK)("THEME",e,-1);return}let t=(0,n.FE)("THEME");if(t&&["dark","light"].includes(t)){x(t),i("theme",t);return}x("dark"),i("theme","dark");let r=window.matchMedia("(prefers-color-scheme: dark)"),a=()=>{x("dark")};return r.addListener(a),()=>{r.removeListener(a)}},[]),(0,s.useEffect)(()=>{"dark"===f?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),i("theme",f)},[f]),(0,s.useEffect)(()=>{N&&T(N.is_paid)},[N]),(0,s.useEffect)(()=>{(async()=>{var e,t;if(null==z?void 0:null===(t=z.data)||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.uuid)try{let e=await fetch("/api/get-active-subscription");if(e.ok){let t=await e.json();L(t.subscriptionLevel),console.log("fetchSubscriptionLevel success, currentSubscriptionLevel:",t.subscriptionLevel),t.subscriptionLevel===o.aZ.TRIAL&&L(null)}else console.error("fetchSubscriptionLevel fail:",e.statusText),L(null)}catch(e){console.error("fetchSubscriptionLevel fail:",e),L(null)}else L(null)})(),C&&null===E&&L(o.aZ.BASE)},[null==z?void 0:null===(r=z.data)||void 0===r?void 0:null===(t=r.user)||void 0===t?void 0:t.uuid,C]);let I="localhost"===window.location.hostname&&"3000"===window.location.port;return(0,s.useEffect)(()=>{I&&!N&&(k({temporary_credits:0,permanent_credits:0,left_credits:999,is_paid:!1}),T(!1))},[I,N,E]),(0,a.jsx)(u.Provider,{value:{theme:f,setTheme:x,locale:p,set
1Locale:g,isSiderOpen:h,setIsSiderOpen:b,isShowSignPanel:y,setIsShowSignPanel:v,user:w,setUser:j,userCredits:N,setUserCredits:k,predictions:S,setPredictions:_,fetchUserCredits:R,isPaidUser:C,setIsPaidUser:T,currentSubscriptionLevel:E},children:c})}},270:function(e,t,r){r.d(t,{cn:function(){return s}});var a=r(3958),n=r(7521);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.m6)((0,a.W)(t))}},6776:function(e,t,r){r.d(t,{FE:function(){return n},lK:function(){return s}});let a=()=>Date.parse(new Date().toUTCString())/1e3,n=e=>{let t=localStorage.getItem(e);if(!t)return null;let r=t.split(":");if(!r||r.length<2)return null;let n=Number(r[0]),s=a();if(-1!==n&&n<s)return l(e),null;let o=r[0]+":";return t.replace(o,"")},s=(e,t,r)=>{localStorage.setItem(e,r+":"+t)},l=e=>{localStorage.removeItem(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.