"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5371],{27404:(e,a,t)=>{t.d(a,{p:()=>o});var s=t(57505),n=t(29580);let o=({imgSrc:e})=>(0,s.jsx)(n.GT,{wheel:{step:30},pinch:{step:10},children:(0,s.jsx)(n.WZ,{wrapperStyle:{width:"100%",height:"100%"},contentStyle:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("img",{src:e,alt:"image-preview",className:"max-w-[100%] max-h-[100%] object-contain !pointer-events-auto",onClick:e=>e.stopPropagation()})})})},45371:(e,a,t)=>{t.r(a),t.d(a,{ImagePreviewReadOnlyModal:()=>r});var s=t(57505),n=t(78917),o=t(16697),l=t(95060);let i=({className:e})=>(0,s.jsx)("div",{className:(0,o.cn)("flex items-center justify-center","bg-gray-100 dark:bg-gray-800 rounded-3xl max-h-400 max-w-[680px] w-full h-full",e),onClick:e=>e.stopPropagation(),children:(0,s.jsx)(l.A,{size:160,className:"shrink-0 text-gray-200 dark:text-gray-700"})});var d=t(27404);let r=({imgSrc:e,isFullScreen:a,setIsFullScreen:t})=>(0,s.jsx)(n.i,{open:a,onToggle:t,bodyClassName:"mt-[50px] h-[calc(100%-50px)]",children:e?(0,s.jsx)(d.p,{imgSrc:e}):(0,s.jsx)(i,{})})},78917:(e,a,t)=>{t.d(a,{i:()=>m});var s=t(57505),n=t(20655),o=t(27939),l=t(66893);t(50245);var i=t(16697);function d({...e}){return(0,s.jsx)(o.bL,{"data-slot":"dialog",...e})}function r({...e}){return(0,s.jsx)(o.ZL,{"data-slot":"dialog-portal",...e})}function c({className:e,...a}){return(0,s.jsx)(o.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[1350] bg-black/50",e),...a})}function x({className:e,overlayClassName:a,children:t,showCloseButton:n=!0,...d}){return(0,s.jsxs)(r,{"data-slot":"dialog-portal",children:[(0,s.jsx)(c,{className:a}),(0,s.jsxs)(o.UC,{"data-slot":"dialog-content",className:(0,i.cn)("bg-background data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-[1400] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg p-6 duration-200 sm:max-w-lg",e),...d,children:[t,n&&(0,s.jsxs)(o.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,s.jsx)(l.A,{}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function g({className:e,...a}){return(0,s.jsx)(o.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg leading-none font-semibold",e),...a})}function u({className:e,...a}){return(0,s.jsx)(o.VY,{"data-slot":"dialog-description",className:(0,i.cn)("text-muted-foreground text-sm",e),...a})}var p=t(43119);let m=({open:e,onToggle:a,children:t,className:o,bodyClassName:l})=>(0,s.jsx)(d,{open:e,onOpenChange:a,modal:!1,children:(0,s.jsxs)(x,{onEscapeKeyDown:e=>{(0,p.Ay)("esc",e)&&a(!1)},className:(0,i.cn)("bg-transparent border-none flex flex-col w-full h-full max-w-none ",o),showCloseButton:!1,onClick:()=>a(!1),children:[(0,s.jsx)("div",{className:"fixed inset-0 -z-[1] bg-black/50 backdrop-blur"}),(0,s.jsx)(g,{className:"hidden"}),(0,s.jsx)(u,{className:"hidden"}),(0,s.jsx)(n._,{className:"absolute right-4",onClose:()=>a(!1)}),(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col justify-center items-center w-full h-full",l),children:t})]})})}}]);