PageSourceSearch

https://fylia.ai/_next/static/chunks/894.45f6d235f8ef527f.js

js fylia.ai collected 2026-10-05 12:02:27 UTC 4,151 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[894],{66063:()=>{},78235:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});let n=(0,t(46774).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},78513:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>m});var n=t(63616),s=t(27980),a=t(55524),r=t(78235);t(66063);var c=t(85776),i=t(36297),d=t(19256),o=t(38607),u=t(66935);function h(e){let{title:l,onChange:t,...s}=e;return(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("div",{children:l}),(0,n.jsx)("input",{...s,onChange:e=>t(Number(e.target.value)),type:"number",className:"h-12 w-full rounded-lg border border-main-gray bg-[#060607] px-3"})]})}function x(e){let{children:l,className:t,onClick:s,disabled:a}=e;return(0,n.jsx)("button",{type:"button",disabled:a,onClick:s,className:(0,d.cn)("flex h-12 flex-1 items-center justify-center rounded-lg border border-white/70 text-nowrap text-white/70 hover:opacity-80",t),children:l})}function m(e){var l,t;let{open:m,setOpen:g,originalImage:p,onCropComplete:f,aspect:b=2/3,MIN_DIMENSION:j}=e,v=(0,c.c)("components.ImageCropDialog"),N=(0,s.useRef)(null),w=(0,s.useRef)(null),[y,k]=(0,s.useState)(),[C,M]=(0,s.useState)(),[S,A]=(0,s.useState)(1),[E,T]=(0,s.useState)(0),_=()=>{g(!1)},L=async()=>{if(N.current&&w.current&&C){let{imageUrl:e,imageFile:l}=await (0,o.TO)({image:N.current,canvasEl:w.current,crop:(0,i.$P)(C,N.current.width,N.current.height),scale:S,rotate:E});f({imageUrl:e,imageFile:l}),g(!1)}};return l=async()=>{(null==y?void 0:y.width)&&(null==y?void 0:y.height)&&N.current&&w.current&&(0,o.dn)(N.current,w.current,y,S,E)},t=[y,S,E],(0,s.useEffect)(()=>{let e=setTimeout(()=>{t&&l.apply(null,...t)},150);return()=>{clearTimeout(e)}},t),(0,n.jsx)(u.lG,{open:m,onOpenChange:g,children:(0,n.jsxs)(u.Cf,{closeBtnClassName:"hidden",className:(0,d.cn)("flex w-[calc(100%-24px)] flex-col !rounded-xl border border-main-gray bg-card-black p-3 lg:h-[581px] lg:w-[739px] lg:min-w-[739px] lg:flex-row"),children:[(0,n.jsx)(u.HM,{asChild:!0,children:(0,n.jsxs)("button",{type:"button",onClick:_,className:"absolute top-3 right-3",children:[(0,n.jsx)(a.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"close"})]})}),(0,n.jsx)("div",{className:"text-xl font-semibold lg:hidden",children:v("title")}),(0,n.jsx)(i.Ay,{crop:C,onChange:(e,l)=>M(l),onComplete:e=>k(e),keepSelection:!0,aspect:b,minWidth:j,className:"my-auto h-fit max-h-full overflow-hidden rounded-lg lg:w-[383px] lg:min-w-[383px]",children:(0,n.jsx)("img",{ref:N,src:p,alt:"Upload",style:{transform:"scale(".concat(S,") rotate(").concat(E,"deg)")},className:"h-full w-full bg-black/70 lg:w-[383px] lg:min-w-[383px]",onLoad:e=>{let{width:l,height:t,naturalWidth:n}=e.currentTarget,s=n/l*100;j&&(s=j/l*100);let a=(0,i.dS)({unit:"%",width:s},b,l,t),r=(0,i.ge)(a,l,t),c=(0,i.$P)(r,l,t);M(r),k(c)}})}),(0,n.jsxs)("div",{className:"flex flex-grow flex-col gap-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-xl font-semibold",children:v("title")}),(0,n.jsx)("div",{className:"text-sm",children:v("content")})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(h,{title:v("scale"),step:"0.1",min:1,value:S,onChange:A}),(0,n.jsx)(h,{title:v("rotate"),step:45,value:E,onChange:e=>T(Math.min(360,Math.max(-360,Number(e))))}),(0,n.jsxs)("button",{type:"button",onClick:()=>{A(1),T(0)},className:"flex-center mt-auto size-12 rounded-lg border border-main-gray bg-[#060607]",children:[(0,n.jsx)(r.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"resetFilter"})]})]}),(0,n.jsx)("div",{className:"relative hidden flex-1 lg:block",children:(0,n.jsx)("canvas",{ref:w,className:"absolute-center absolute inset-0 max-h-full rounded-lg bg-contain"})}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(x,{onClick:_,children:v("cancel")}),(0,n.jsx)(x,{onClick:L,className:"border-none bg-gradient-main font-semibold text-black",children:v("done")})]})]})]})})}}}]);

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.