PageSourceSearch

https://www.hdphotoconverter.online/_next/static/chunks/2930-c86e08148abce464.js

js hdphotoconverter.online collected 2026-10-04 02:08:59 UTC 10,806 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2930],{280:(e,t,r)=>{r.d(t,{$:()=>d,r:()=>o});var a=r(8813),l=r(7641),s=r(6418),i=r(6860),n=r(4727);let o=(0,i.F)("inline-flex items-center justify-center gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{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=l.forwardRef((e,t)=>{let{className:r,variant:l,size:i,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,a.jsx)(u,{className:(0,n.cn)(o({variant:l,size:i,className:r})),ref:t,...c})});d.displayName="Button"},2800:(e,t,r)=>{r.d(t,{PW:()=>s,np:()=>i,pr:()=>l});var a=r(9971);let l=e=>{let t=localStorage.getItem(e);if(!t)return null;let r=t.split(":");if(!r||r.length<2)return null;let l=Number(r[0]),s=(0,a.lg)();if(-1!==l&&l<s)return i(e),null;let n=r[0]+":";return t.replace(n,"")},s=(e,t,r)=>{localStorage.setItem(e,r+":"+t)},i=e=>{localStorage.removeItem(e)}},2930:(e,t,r)=>{r.d(t,{default:()=>w});var a=r(8813),l=r(3947),s=r(5058),i=r(7641),n=r(5750),o=r(8565),d=r(4727);let c=i.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)(n.bL,{className:(0,d.cn)("grid gap-2",r),...l,ref:t})});c.displayName=n.bL.displayName;let u=i.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)(n.q7,{ref:t,className:(0,d.cn)("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),...l,children:(0,a.jsx)(n.C1,{className:"flex items-center justify-center",children:(0,a.jsx)(o.A,{className:"h-2.5 w-2.5 fill-current text-current"})})})});u.displayName=n.q7.displayName;let m=(0,r(6860).F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function f(e){let{className:t,variant:r,...l}=e;return(0,a.jsx)("div",{className:(0,d.cn)(m({variant:r}),t),...l})}var x=r(280),p=r(3234),h=r(239),g=r(1357),b=r(3763),v=r(4788);function w(){let{user:e,setShowSignModal:t}=(0,b.U)(),r=(0,v.c3)("pricing"),[n,o]=(0,i.useState)("yearly"),[d,m]=(0,i.useState)(!1),[w,y]=(0,i.useState)(null),j=r.raw("groups")||[],N=r.raw("plans")||[],_=async function(r){arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{if(!e){t(!0);return}let a=N.filter(e=>e.group===n)[r];if(!a)return;let l={product_id:a.product_id,product_name:a.title,credits:a.credits,interval:a.interval,amount:a.amount,currency:a.currency,valid_months:a.valid_months};m(!0),y(a.product_id);let s=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(401===s.status){m(!1),y(null),t(!0);return}let{code:i,message:o,data:d}=await s.json();if(0!==i){g.oR.error(o);return}let{public_key:c,session_id:u}=d,f=await (0,h.c)(c);if(!f){g.oR.error("checkout failed");return}let x=await f.redirectToCheckout({sessionId:u});x.error&&g.oR.error(x.error.message)}catch(e){console.log("checkout failed: ",e),g.oR.error("checkout failed")}finally{m(!1),y(null)}},k=N.filter(e=>e.group===n);return(0,a.jsx)("section",{id:"pricing",className:"py-12 sm:py-16",children:(0,a.jsxs)("div",{className:"container max-w-full px-4 sm:px-8",children:[(0,a.jsxs)("div",{className:"mx-auto mb-16 text-center",children:[(0,a.jsx)("h2",{className:"mb-6 text-4xl md:text-5xl lg:text-6xl font-bold bg-gradient-to-r from-emerald-600 to-teal-600 bg-clip-text text-transparent",children:r("title")}),(0,a.jsx)("p",{className:"text-slate-600 text-xl lg:text-2xl max-w-3xl mx-auto leading-relaxed",children:r("description")})]}),(0,a.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-center gap-2",children:[j&&j.length>0&&(0,a.jsx)("div",{className:"mb-10 w-full max-w-xl rounded-2xl bg-slate-100 p-1.5 shadow-inner sm:mb-16 sm:rounded-full",children:(0,a.jsx)(c,{value:n,className:"grid w-full grid-cols-1 gap-1 sm:grid-cols-3",onValueChange:e=>{o(e)},children:j.map((e,t)=>(0,a.jsxs)("div",{className:'rounded-full transition-all duration-300 has-[button[data-state="checked"]]:bg-white has-[button[data-state="checked"]]:shadow-md',children:[(0,a.jsx)(u,{value:e.name||"",id:e.name,className:"peer sr-only"}),(0,a.jsxs)(p.J,{htmlFor:e.name,className:"flex min-w-0 cursor-pointer items-center justify-center px-3 py-2.5 text-center text-sm font-semibold text-slate-600 transition-all duration-300 hover:text-emerald-500 peer-data-[state=checked]:text-emerald-600 sm:px-4",children:[(0,a.jsx)("span",{className:"min-w-0 truncate",children:e.title}),e.label&&(0,a.jsx)(f,{variant:"outline",className:"ml-2 shrink-0 border-emerald-500 bg-gradient-to-r from-emerald-500 to-teal-500 px-2 text-xs font-semibold text-white",children:e.label})]})]},t))})}),(0,a.jsx)("div",{className:"mt-0 flex w-full max-w-md min-w-0 flex-col gap-4 md:grid md:max-w-6xl md:grid-cols-2 md:gap-6 lg:grid-cols-3",children:k.map((e,t)=>(0,a.jsx)("div",{className:"min-w-0 rounded-xl p-5 transition-all duration-300 sm:p-8 ".concat(e.label?"border-emerald-500 border-2 bg-gradient-to-br from-emerald-50/50 to-teal-50/50 shadow-xl sm:scale-105":"border-slate-200 border hover:border-emerald-300 hover:shadow-lg"),children:(0,a.jsxs)("div",{className:"flex h-full flex-col justify-between gap-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-4 flex min-w-0 items-start gap-2",children:[e.title&&(0,a.jsx)("h3",{className:"min-w-0 flex-1 text-xl font-semibold",children:e.title}),e.label&&(0,a.jsx)(f,{variant:"outline",className:"shrink-0 border-emerald-500 bg-gradient-to-r from-emerald-500 to-teal-500 px-3 py-1 font-semibold text-white",children:e.label})]}),(0,a.jsxs)("div",{className:"mb-4 flex min-w-0 flex-wrap items-end gap-2",children:[e.original_price&&(0,a.jsx)("span",{className:"text-xl text-muted-foreground font-semibold line-through",children:e.original_price}),e.price&&(0,a.jsx)("span",{className:"break-words bg-gradient-to-r from-emerald-600 to-teal-600 bg-clip-text text-4xl font-bold text-transparent sm:text-5xl",children:e.price}),e.unit&&(0,a.jsx)("span",{className:"block font-semibold",children:e.unit})]}),e.description&&(0,a.jsx)("p",{className:"text-muted-foreground",children:e.description}),e.features_title&&(0,a.jsx)("p",{className:"mb-3 mt-6 font-semibold",children:e.features_title}),e.features&&(0,a.jsx)("ul",{className:"flex flex-col gap-3",children:e.features.map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-3",children:[(0,a.jsx)(l.A,{className:"mt-0.5 size-5 shrink-0 text-emerald-500"}),(0,a.jsx)("span",{className:"text-slate-700",children:e})]},"feature-".concat(t)))})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)(x.$,{className:"w-full flex items-center justify-center gap-2 font-semibold py-6 text-lg transition-all duration-300 ".concat(e.label?"bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-700 hover:to-teal-700 text-white shadow-lg hover:shadow-xl":"bg-slate-900 hover:bg-slate-800 text-white"),disabled:d,onClick:()=>{!d&&_(t)},children:[(!d||d&&w!==e.product_id)&&(0,a.jsx)("span",{children:e.button_title}),d&&w===e.product_id&&(0,a.jsx)("span",{children:e.button_title}),d&&w===e.product_id&&(0,a.jsx)(s.A,{className:"mr-2 h-4 w-4 animate-spin"})]}),e.tip&&(0,a.jsx)("p",{className:"text-muted-foreground text-sm mt-2",children:e.tip})]})]})},t))})]})]})})}},3234:(e,t,r)=>{r.d(t,{J:()=>d});var a=r(8813),l=r(7641),s=r(8650),i=r(6860),n=r(4727);let o=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((e,t)=>
1{let{className:r,...l}=e;return(0,a.jsx)(s.b,{ref:t,className:(0,n.cn)(o(),r),...l})});d.displayName=s.b.displayName},3763:(e,t,r)=>{r.d(t,{AppContextProvider:()=>m,U:()=>u});var a=r(8813),l=r(7641),s=r(2800),i=r(6279),n=r(8864),o=r.n(n);r(4553);var d=r(7989);let c=(0,l.createContext)({}),u=()=>(0,l.useContext)(c),m=e=>{let{children:t}=e,{data:r}=(0,d.wV)(),[n,u]=(0,l.useState)(()=>"light"),[m,f]=(0,l.useState)(!1),[x,p]=(0,l.useState)(null),[h,g]=(0,l.useState)(!1),b=async function(){try{let e=await fetch("/api/get-user-info",{method:"POST"});if(!e.ok)throw Error("fetch user info failed with status: "+e.status);let{code:t,message:r,data:a}=await e.json();if(0!==t)throw Error(r);p(a),w(a)}catch(e){console.log("fetch user info failed")}},v=async function(){try{await fetch("/api/update-user-source",{method:"POST"})}catch(e){}},w=async e=>{try{if(e.invited_by){console.log("user already been invited",e.invited_by);return}let t=(0,s.pr)(i.wD.InviteCode);if(!t)return;let r=o()(e.created_at).unix(),a=o()().unix(),l=Number(a-r);if(l<=0||l>7200){console.log("user created more than 2 hours");return}console.log("update invite",t,e.uuid);let n={invite_code:t,user_uuid:e.uuid},d=await fetch("/api/update-invite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!d.ok)throw Error("update invite failed with status: "+d.status);let{code:c,message:u,data:m}=await d.json();if(0!==c)throw Error(u);p(m),(0,s.np)(i.wD.InviteCode)}catch(e){console.log("update invite failed: ",e)}};return(0,l.useEffect)(()=>{r&&r.user&&(b(),v())},[r]),(0,a.jsx)(c.Provider,{value:{theme:n,setTheme:u,showSignModal:m,setShowSignModal:f,user:x,setUser:p,showFeedback:h,setShowFeedback:g},children:t})}},4727:(e,t,r)=>{r.d(t,{cn:()=>s});var a=r(9322),l=r(5523);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,a.$)(t))}},6279:(e,t,r)=>{r.d(t,{wD:()=>a});let a={Theme:"THEME",InviteCode:"INVITE_CODE"}},9971:(e,t,r)=>{r.d(t,{lg:()=>a});let a=()=>Date.parse(new Date().toUTCString())/1e3}}]);

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.