1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3145],{73145:function(e,s,a){a.r(s),a.d(s,{UpscaleExpressionSettings:function(){return UpscaleExpressionSettings}});var l=a(98365),n=a(99544),t=a(61892),r=a(51466),i=a(26633),o=a(80379);let c=[{value:"true",label:"True"},{value:"false",label:"False"}],d=[{value:"true",label:"True"},{value:"false",label:"False"}],u=[{value:"1",label:"1x"},{value:"2",label:"2x"},{value:"3",label:"3x (Pro only)"},{value:"4",label:"4x (Pro only)"}];function UpscaleExpressionSettings(e){var s;let{config:a,onChange:p,subscription:x}=e;return(null==a?void 0:a.expression_config)?(null==x||null===(s=x.plan)||void 0===s||s.type,(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"flex items-center justify-between",children:(0,l.jsx)(t._,{children:"Enable Face Upsample"})}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Choose if you want to enable face upsample for the upscale."}),(0,l.jsxs)(r.Ph,{value:(0,n.E)(a.expression_config,"Upscale")?a.expression_config.enable_face_upsample.toString():"false",onValueChange:e=>{p({...a,expression_config:{...a.expression_config,enable_face_upsample:"true"===e}})},children:[(0,l.jsx)(r.i4,{children:(0,l.jsx)(r.ki,{placeholder:"Select color fix type"})}),(0,l.jsx)(r.Bw,{children:c.map(e=>{let{value:s,label:a}=e;return(0,l.jsx)(r.Ql,{value:s,children:a},s)})})]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"flex items-center justify-between",children:(0,l.jsx)(t._,{children:"Enable Background Enhance"})}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Choose if you want to enable background enhance for the upscale."}),(0,l.jsxs)(r.Ph,{value:(0,n.E)(a.expression_config,"Upscale")?a.expression_config.enable_background_enhance.toString():"false",onValueChange:e=>{p({...a,expression_config:{...a.expression_config,enable_background_enhance:"true"===e}})},children:[(0,l.jsx)(r.i4,{children:(0,l.jsx)(r.ki,{placeholder:"Select enable background enhance"})}),(0,l.jsx)(r.Bw,{children:d.map(e=>{let{value:s,label:a}=e;return(0,l.jsx)(r.Ql,{value:s,children:a},s)})})]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"flex flex-col",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)(t._,{children:"Fidelity"}),(0,l.jsx)("span",{className:"text-sm text-muted-foreground",children:a.expression_config.fidelity||1})]})}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Choose between quality (lower number) and fidelity (higher number)."}),(0,l.jsx)(i.i,{value:[a.expression_config.fidelity||1],min:0,max:1,step:.1,onValueChange:e=>{p({...a,expression_config:{...a.expression_config,fidelity:e[0]}})}})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"flex items-center justify-between",children:(0,l.jsx)(t._,{children:"Upscale"})}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Choose the scale for the upscale."}),(0,l.jsxs)(r.Ph,{value:String(a.expression_config.upscale||2),onValueChange:e=>{p({...a,expression_config:{...a.expression_config,upscale:Number(e)}})},children:[(0,l.jsx)(r.i4,{children:(0,l.jsx)(r.ki,{placeholder:"Select upscale factor"})}),(0,l.jsx)(r.Bw,{children:u.map(e=>{var s;let{value:a,label:n}=e;return(0,l.jsx)(r.Ql,{value:a,disabled:("3"===a||"4"===a)&&(null==x?void 0:null===(s=x.plan)||void 0===s?void 0:s.type)!=="Pro",children:n},a)})})]})]})]}),(0,l.jsxs)("div",{className:"flex flex-row gap-2 bg-secondary rounded-md p-2 my-5 align-top items-start",children:[(0,l.jsx)(o.Z,{className:"h-4 w-4 text-muted-foreground shrink-0"}),(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:"Due to an unexpected price increase from our API provider, Upscale will be adjusted to 10 credits per request starting June 15. This change is essential to maintain the continued operation of our service. We appreciate your understanding and support."})]})]})})):null}},51466:function(e,s,a){a.d(s,{Bw:function(){return m},Ph:function(){return d},Ql:function(){return g},i4:function(){return p},ki:function(){return u}});var l=a(98365),n=a(77455),t=a(61559),r=a(22578),i=a(73642),o=a(81989),c=a(2161);let d=t.fC;t.ZA;let u=t.B4,p=n.forwardRef((e,s)=>{let{className:a,children:n,...i}=e;
1return(0,l.jsxs)(t.xz,{ref:s,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...i,children:[n,(0,l.jsx)(t.JO,{asChild:!0,children:(0,l.jsx)(r.Z,{className:"h-4 w-4 opacity-50"})})]})});p.displayName=t.xz.displayName;let x=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,l.jsx)(t.u_,{ref:s,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,l.jsx)(i.Z,{className:"h-4 w-4"})})});x.displayName=t.u_.displayName;let f=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,l.jsx)(t.$G,{ref:s,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,l.jsx)(r.Z,{className:"h-4 w-4"})})});f.displayName=t.$G.displayName;let m=n.forwardRef((e,s)=>{let{className:a,children:n,position:r="popper",...i}=e;return(0,l.jsx)(t.h_,{children:(0,l.jsxs)(t.VY,{ref:s,className:(0,c.cn)("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:r,...i,children:[(0,l.jsx)(x,{}),(0,l.jsx)(t.l_,{className:(0,c.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,l.jsx)(f,{})]})})});m.displayName=t.VY.displayName;let h=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,l.jsx)(t.__,{ref:s,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...n})});h.displayName=t.__.displayName;let g=n.forwardRef((e,s)=>{let{className:a,children:n,...r}=e;return(0,l.jsxs)(t.ck,{ref:s,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[(0,l.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(t.wU,{children:(0,l.jsx)(o.Z,{className:"h-4 w-4"})})}),(0,l.jsx)(t.eT,{children:n})]})});g.displayName=t.ck.displayName;let j=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,l.jsx)(t.Z0,{ref:s,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",a),...n})});j.displayName=t.Z0.displayName}}]);
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.