1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="5938ca5c-5e01-74b4-c8e2-09eefae3e511")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,898879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let a=e.r(271645),i="u"<typeof window,n=i?()=>{}:a.useLayoutEffect,o=i?()=>{}:a.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let e=a.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),s()),n(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),n(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},325633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return g},defaultHead:function(){return h}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let n=e.r(555682),o=e.r(190809),s=e.r(843476),l=o._(e.r(271645)),d=n._(e.r(898879)),c=e.r(742732);function h(){return[(0,s.jsx)("meta",{charSet:"utf-8"},"charset"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function u(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(233525);let p=["name","httpEquiv","charSet","itemProp"];function f(e){let t,r,a,i;return e.reduce(u,[]).reverse().concat(h().reverse()).filter((t=new Set,r=new Set,a=new Set,i={},e=>{let n=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?n=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?n=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)a.has(r)?n=!1:a.add(r);else{let t=e.props[r],a=i[r]||new Set;("name"!==r||!o)&&a.has(t)?n=!1:(a.add(t),i[r]=a)}}}return n})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let g=function({children:e}){let t=(0,l.useContext)(c.HeadManagerContext);return(0,s.jsx)(d.default,{reduceComponentsToState:f,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},488143,(e,t,r)=>{"use strict";function a({widthInt:e,heightInt:t,blurWidth:r,blurHeight:i,blurDataURL:n,objectFit:o}){let s=r?40*r:e,l=i?40*i:t,d=s&&l?`viewBox='0 0 ${s} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${n}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return a}})},987690,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return n},imageConfigDefault:function(){return o}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let n=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,
2contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},908927,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return d}}),e.r(233525);let a=e.r(543369),i=e.r(488143),n=e.r(987690),o=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:h=!1,loading:u,className:p,quality:f,width:g,height:m,fill:w=!1,style:x,overrideSrc:y,onLoad:b,onLoadingComplete:v,placeholder:C="empty",blurDataURL:j,fetchPriority:k,decoding:D="async",layout:_,objectFit:R,objectPosition:N,lazyBoundary:S,lazyRoot:P,...E},M){var O;let z,I,L,{imgConf:$,showAltText:A,blurComplete:B,defaultLoader:H}=M,U=$||n.imageConfigDefault;if("allSizes"in U)z=U;else{let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>e-t),t=U.deviceSizes.sort((e,t)=>e-t),r=U.qualities?.sort((e,t)=>e-t);z={...U,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===H)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let X=E.loader||H;delete E.loader,delete E.srcSet;let Y="__next_img_default"in X;if(Y){if("custom"===z.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 3Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=X;X=t=>{let{config:r,...a}=t;return e(a)}}if(_){"fill"===_&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(x={...x,...e});let r={responsive:"100vw",fill:"100vw"}[_];r&&!t&&(t=r)}let T="",K=l(g),W=l(m);if((O=e)&&"object"==typeof O&&(s(O)||void 0!==O.src)){let t=s(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(I=t.blurWidth,L=t.blurHeight,j=j||t.blurDataURL,T=t.src,!w)if(K||W){if(K&&!W){let e=K/t.width;W=Math.round(t.height*e)}else if(!K&&W){let e=W/t.height;K=Math.round(t.width*e)}}else K=t.width,W=t.height}let F=!c&&!h&&("lazy"===u||void 0===u);(!(e="string"==typeof e?e:T)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,F=!1),z.unoptimized&&(r=!0),Y&&!z.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let q=l(f),G=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:N}:{},A?{}:{color:"transparent"},x),V=B||"empty"===C?null:"blur"===C?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:K,heightInt:W,blurWidth:I,blurHeight:L,blurDataURL:j||"",objectFit:G.objectFit})}")`:`url("${C}")`,J=o.includes(G.objectFit)?"fill"===G.objectFit?"100% 100%":"cover":G.objectFit,Q=V?{backgroundSize:J,backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:V}:{},Z=function({config:e,src:t,unoptimized:r,width:i,quality:n,sizes:o,loader:s}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,a.getDeploymentId)();if(e){let r=t.indexOf("?");if(-1!==r){let a=new URLSearchParams(t.slice(r+1));a.get("dpl")||(a.append("dpl",e),t=t.slice(0,r)+"?"+a.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:d}=function({deviceSizes:e,allSizes:t},r,a){if(a){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(a);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,o),c=l.length-1;return{sizes:o||"w"!==d?o:"100vw",srcSet:l.map((r,a)=>`${s({config:e,src:t,quality:n,width:r})} ${"w"===d?r:a+1}${d}`).join(", "),src:s({config:e,src:t,quality:n,width:l[c]})}}({config:z,src:e,unoptimized:r,width:K,quality:q,sizes:t,loader:X}),ee=F?"lazy":u;return{props:{...E,loading:ee,fetchPriority:k,width:K,height:W,decoding:D,className:p,style:{...G,...Q},sizes:Z.sizes,srcSet:Z.srcSet,src:y||Z.src},meta:{unoptimized:r,preload:h||c,placeholder:C,fill:w}}}},918556,(e,t,r)=>{"use strict";
3Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return n}});let a=e.r(555682)._(e.r(271645)),i=e.r(987690),n=a.default.createContext(i.imageConfigDefault)},670965,(e,t,r)=>{"use strict";function a(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return a}})},1948,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let a=e.r(670965),i=e.r(543369);function n({config:e,src:t,width:r,quality:o}){let s=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),a=r.get("dpl");if(a){s=a,r.delete("dpl");let i=r.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 4Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,a.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${l}${t.startsWith("/")&&s?`&dpl=${s}`:""}`}n.__next_img_default=!0;let o=n},605500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return b}});let a=e.r(555682),i=e.r(190809),n=e.r(843476),o=i._(e.r(271645)),s=a._(e.r(174080)),l=a._(e.r(325633)),d=e.r(908927),c=e.r(987690),h=e.r(918556);e.r(233525);let u=e.r(65856),p=a._(e.r(1948)),f=e.r(818581),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,r,a,i,n,o){let s=e?.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let a=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>a,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{a=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}a?.current&&a.current(e)}}))}function w(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let x=(0,o.forwardRef)(({src:e,srcSet:t,sizes:r,height:a,width:i,decoding:s,className:l,style:d,fetchPriority:c,placeholder:h,loading:u,unoptimized:p,fill:g,onLoadRef:x,onLoadingCompleteRef:y,setBlurComplete:b,setShowAltText:v,sizesInput:C,onLoad:j,onError:k,...D},_)=>{let R=(0,o.useCallback)(e=>{e&&(k&&(e.src=e.src),e.complete&&m(e,h,x,y,b,p,C))},[e,h,x,y,b,k,p,C]),N=(0,f.useMergedRef)(_,R);return(0,n.jsx)("img",{...D,...w(c),loading:u,width:i,height:a,decoding:s,"data-nimg":g?"fill":"1",className:l,style:d,sizes:r,srcSet:t,src:e,ref:N,onLoad:e=>{m(e.currentTarget,h,x,y,b,p,C)},onError:e=>{v(!0),"empty"!==h&&b(!0),k&&k(e)}})});function y({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...w(t.fetchPriority)};return e&&s.default.preload?(s.default.preload(t.src,r),null):(0,n.jsx)(l.default,{children:(0,n.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(u.RouterContext),a=(0,o.useContext)(h.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=g||a||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>
4e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"u"<typeof window?a?.localPatterns:e.localPatterns}},[a]),{onLoad:s,onLoadingComplete:l}=e,f=(0,o.useRef)(s);(0,o.useEffect)(()=>{f.current=s},[s]);let m=(0,o.useRef)(l);(0,o.useEffect)(()=>{m.current=l},[l]);let[w,b]=(0,o.useState)(!1),[v,C]=(0,o.useState)(!1),{props:j,meta:k}=(0,d.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:w,showAltText:v});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x,{...j,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:f,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:C,sizesInput:e.sizes,ref:t}),k.preload?(0,n.jsx)(y,{isAppRouter:!r,imgAttributes:j}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},794909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return c},getImageProps:function(){return d}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});let n=e.r(555682),o=e.r(908927),s=e.r(605500),l=n._(e.r(1948));function d(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=s.Image},657688,(e,t,r)=>{t.exports=e.r(794909)},207670,e=>{"use strict";function t(){for(var e,t,r=0,a="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,a,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var n=t.length;for(r=0;r<n;r++)t[r]&&(a=e(t[r]))&&(i&&(i+=" "),i+=a)}else for(a in t)t[a]&&(i&&(i+=" "),i+=a);return i}(e))&&(a&&(a+=" "),a+=t);return a}e.s(["clsx",0,t,"default",0,t])},659544,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(549838);let i=(0,r.forwardRef)(({className:e,variant:r="primary",size:i="md",isLoading:n=!1,leftIcon:o,rightIcon:s,fullWidth:l=!1,disabled:d,children:c,...h},u)=>{let p=(0,a.cn)("inline-flex items-center justify-center font-medium","transition-all duration-200 ease-[cubic-bezier(0.25,0.46,0.45,0.94)]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","active:scale-[0.98] active:transition-transform active:duration-100"),f={primary:(0,a.cn)("bg-gradient-to-r from-primary-500 to-accent-500 text-white","hover:from-primary-600 hover:to-accent-600","focus-visible:ring-primary-500","shadow-md hover:shadow-[0_8px_16px_rgba(0,255,200,0.15)]"),secondary:(0,a.cn)("bg-surface-100 text-surface-900","hover:bg-surface-200","focus-visible:ring-surface-500","dark:bg-surface-800 dark:text-surface-100 dark:hover:bg-surface-700"),outline:(0,a.cn)("border-[1.5px] border-primary-500 text-primary-600 bg-transparent","hover:bg-primary-50/80 hover:text-primary-700","focus-visible:ring-primary-500","dark:border-primary-400 dark:text-primary-400 dark:hover:bg-primary-950/50"),ghost:(0,a.cn)("text-surface-600 bg-transparent","hover:bg-surface-100 hover:text-surface-900","focus-visible:ring-surface-500","dark:text-surface-400 dark:hover:bg-surface-800 dark:hover:text-surface-100"),danger:(0,a.cn)("bg-error text-white","hover:bg-red-600","focus-visible:ring-error")};return(0,t.jsxs)("button",{ref:u,className:(0,a.cn)(p,f[r],{sm:"h-8 px-3 text-sm rounded-[10px] gap-1.5",md:"h-11 min-h-[44px] px-4 text-sm rounded-xl gap-2",lg:"h-12 px-6 text-base rounded-xl gap-2 sm:h-14 sm:px-8",xl:"h-14 px-8 text-lg rounded-xl gap-3"}[i],l&&"w-full",e),disabled:d||n,...h,children:[n?(0,t.jsxs)("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):o?(0,t.jsx)("span",{className:"shrink-0",children:o}):null,c,s&&!n&&(0,t.jsx)("span",{className:"shrink-0",children:s})]})});i.displayName="Button",e.s(["Button",0,i])},339964,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(549838);let i=(0,r.forwardRef)(({className:e,variant:r="default",padding:i="md",hover:n=!1,children:o,...s},l)=>{let d={default:(0,a.cn)("bg-white dark:bg-surface-800","border border-surface-200 dark:border-surface-700"),outline:(0,a.cn)("bg-transparent","border-2 border-surface-200 dark:border-surface-700"),elevated:(0,a.cn)("bg-white dark:bg-surface-800","shadow-lg dark:shadow-surface-900/50"),glass:(0,a.cn)("glass dark:glass-dark")};return(0,t.jsx)("div",{ref:l,className:(0,a.cn)("rounded-xl",d[r],{none:"",sm:"p-4",md:"p-6",lg:"p-8"}[i],n&&"transition-all duration-200 hover:shadow-xl hover:-translate-y-1",e),...s,children:o})});
4i.displayName="Card";let n=(0,r.forwardRef)(({className:e,...r},i)=>(0,t.jsx)("div",{ref:i,className:(0,a.cn)("flex flex-col space-y-1.5",e),...r}));n.displayName="CardHeader";let o=(0,r.forwardRef)(({className:e,...r},i)=>(0,t.jsx)("h3",{ref:i,className:(0,a.cn)("text-xl font-semibold text-surface-900 dark:text-surface-100",e),...r}));o.displayName="CardTitle";let s=(0,r.forwardRef)(({className:e,...r},i)=>(0,t.jsx)("p",{ref:i,className:(0,a.cn)("text-sm text-surface-500 dark:text-surface-400",e),...r}));s.displayName="CardDescription";let l=(0,r.forwardRef)(({className:e,...r},i)=>(0,t.jsx)("div",{ref:i,className:(0,a.cn)("",e),...r}));l.displayName="CardContent";let d=(0,r.forwardRef)(({className:e,...r},i)=>(0,t.jsx)("div",{ref:i,className:(0,a.cn)("flex items-center pt-4",e),...r}));d.displayName="CardFooter",e.s(["Card",0,i,"CardContent",0,l,"CardDescription",0,s,"CardFooter",0,d,"CardHeader",0,n,"CardTitle",0,o])},103812,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(549838);let i=(0,r.forwardRef)(({className:e,type:i="text",label:n,error:o,hint:s,leftIcon:l,rightIcon:d,isPassword:c,disabled:h,id:u,...p},f)=>{let[g,m]=(0,r.useState)(!1),w=u||n?.toLowerCase().replace(/\s+/g,"-"),x=c?g?"text":"password":i;return(0,t.jsxs)("div",{className:"w-full",children:[n&&(0,t.jsx)("label",{htmlFor:w,className:"block text-sm font-medium text-surface-700 dark:text-surface-300 mb-1.5",children:n}),(0,t.jsxs)("div",{className:"relative",children:[l&&(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-surface-400",children:l}),(0,t.jsx)("input",{ref:f,id:w,type:x,disabled:h,className:(0,a.cn)("w-full h-11 min-h-[44px] px-3 text-sm rounded-lg transition-all duration-200","bg-white dark:bg-surface-800","border border-surface-300 dark:border-surface-600","text-surface-900 dark:text-surface-100","placeholder:text-surface-400 dark:placeholder:text-surface-500","focus:outline-none focus:ring-2 focus:ring-primary-500/40 focus:border-primary-500","focus:shadow-[0_0_0_4px_rgba(0,255,200,0.25)]","disabled:bg-surface-100 disabled:cursor-not-allowed dark:disabled:bg-surface-900",o&&"border-error focus:ring-error/40 focus:border-error",l&&"pl-10",(d||c)&&"pr-10",e),...p}),c&&(0,t.jsx)("button",{type:"button",onClick:()=>m(!g),className:"absolute inset-y-0 right-0 pr-3 flex items-center text-surface-400 hover:text-surface-600 dark:hover:text-surface-300",children:g?(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})}):(0,t.jsxs)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})}),d&&!c&&(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-surface-400",children:d})]}),(o||s)&&(0,t.jsx)("p",{className:(0,a.cn)("mt-1.5 text-sm",o?"text-error":"text-surface-500 dark:text-surface-400"),children:o||s})]})});i.displayName="Input",e.s(["Input",0,i])},761851,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=r,i=Object.defineProperty,n=(e,t,r)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?i(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r};let o={x:0,y:0,width:0,height:0,unit:"px"},s=(e,t,r)=>Math.min(Math.max(e,t),r),l=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function d(e,t,r){return"%"===e.unit?{...o,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/r*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/r*100:0}}function c(e,t,r){return e.unit?"px"===e.unit?{...o,...e,unit:"px"}:{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*r/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*r/100:0}:{...o,...e,unit:"px"}}function h(e,t,r,a,i,n=0,o=0,s=a,l=i){let d={...e},c=Math.min(n,a),u=Math.min(o,i),p=Math.min(s,a),f=Math.min(l,i);t&&(t>1?(u=(c=o?o*t:c)/t,p=s*t):(c=(u=n?n/t:u)*t,f=l/t)),d.y<0&&(d.height=Math.max(d.height+d.y,u),d.y=0),d.x<0&&(d.width=Math.max(d.width+d.x,c),d.x=0);let g=a-(d.x+d.width);g<0&&(d.x=Math.min(d.x,a-c),d.width+=g);let m=i-(d.y+d.height);if(m<0&&(d.y=Math.min(d.y,i-u),d.height+=m),d.width<c&&(("sw"===r||"nw"==r)&&(d.x-=c-d.width),d.width=c),d.height<u&&(("nw"===r||"ne"==r)&&(d.y-=u-d.height),d.height=u),d.width>
4p&&(("sw"===r||"nw"==r)&&(d.x-=p-d.width),d.width=p),d.height>f&&(("nw"===r||"ne"==r)&&(d.y-=f-d.height),d.height=f),t){let e=d.width/d.height;if(e<t){let e=Math.max(d.width/t,u);("nw"===r||"ne"==r)&&(d.y-=e-d.height),d.height=e}else if(e>t){let e=Math.max(d.height*t,c);("sw"===r||"nw"==r)&&(d.x-=e-d.width),d.width=e}}return d}let u={capture:!0,passive:!1},p=0,f=class e extends a.PureComponent{constructor(){super(...arguments),n(this,"docMoveBound",!1),n(this,"mouseDownOnCrop",!1),n(this,"dragStarted",!1),n(this,"evData",{startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0}),n(this,"componentRef",(0,a.createRef)()),n(this,"mediaRef",(0,a.createRef)()),n(this,"resizeObserver"),n(this,"initChangeCalled",!1),n(this,"instanceId",`rc-${p++}`),n(this,"state",{cropIsActive:!1,newCropIsBeingDrawn:!1}),n(this,"onCropPointerDown",e=>{let{crop:t,disabled:r}=this.props,a=this.getBox();if(!t)return;let i=c(t,a.width,a.height);if(r)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let n=e.target.dataset.ord,o=e.clientX,s=e.clientY,l=i.x,d=i.y;if(n){let t=e.clientX-a.x,r=e.clientY-a.y,c=0,h=0;"ne"===n||"e"==n?(c=t-(i.x+i.width),h=r-i.y,l=i.x,d=i.y+i.height):"se"===n||"s"===n?(c=t-(i.x+i.width),h=r-(i.y+i.height),l=i.x,d=i.y):"sw"===n||"w"==n?(c=t-i.x,h=r-(i.y+i.height),l=i.x+i.width,d=i.y):("nw"===n||"n"==n)&&(c=t-i.x,h=r-i.y,l=i.x+i.width,d=i.y+i.height),o=l+a.x+c,s=d+a.y+h}this.evData={startClientX:o,startClientY:s,startCropX:l,startCropY:d,clientX:e.clientX,clientY:e.clientY,isResize:!!n,ord:n},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})}),n(this,"onComponentPointerDown",e=>{let{crop:t,disabled:r,locked:a,keepSelection:i,onChange:n}=this.props,o=this.getBox();if(r||a||i&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let s=e.clientX-o.x,l=e.clientY-o.y,h={unit:"px",x:s,y:l,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:s,startCropY:l,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,n(c(h,o.width,o.height),d(h,o.width,o.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}),n(this,"onDocPointerMove",e=>{let t,{crop:r,disabled:a,onChange:i,onDragStart:n}=this.props,o=this.getBox();if(a||!r||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,n&&n(e));let{evData:s}=this;s.clientX=e.clientX,s.clientY=e.clientY,l(r,t=s.isResize?this.resizeCrop():this.dragCrop())||i(c(t,o.width,o.height),d(t,o.width,o.height))}),n(this,"onComponentKeyDown",t=>{let{crop:r,disabled:a,onChange:i,onComplete:n}=this.props;if(a)return;let o=t.key,l=!1;if(!r)return;let h=this.getBox(),u=this.makePixelCrop(h),p=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===o?(u.x-=p,l=!0):"ArrowRight"===o?(u.x+=p,l=!0):"ArrowUp"===o?(u.y-=p,l=!0):"ArrowDown"===o&&(u.y+=p,l=!0),l){t.cancelable&&t.preventDefault(),u.x=s(u.x,0,h.width-u.width),u.y=s(u.y,0,h.height-u.height);let e=c(u,h.width,h.height),r=d(u,h.width,h.height);i(e,r),n&&n(e,r)}}),n(this,"onHandlerKeyDown",(t,r)=>{var a,i;let n,{aspect:o=0,crop:s,disabled:u,minWidth:p=0,minHeight:f=0,maxWidth:g,maxHeight:m,onChange:w,onComplete:x}=this.props,y=this.getBox();if(u||!s||"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();let b=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,v=h((a=c(s,y.width,y.height),i=t.key,n={...a},"ArrowLeft"===i?"nw"===r?(n.x-=b,n.y-=b,n.width+=b,n.height+=b):"w"===r?(n.x-=b,n.width+=b):"sw"===r?(n.x-=b,n.width+=b,n.height+=b):"ne"===r?(n.y+=b,n.width-=b,n.height-=b):"e"===r?n.width-=b:"se"===r&&(n.width-=b,n.height-=b):"ArrowRight"===i&&("nw"===r?(n.x+=b,n.y+=b,n.width-=b,n.height-=b):"w"===r?(n.x+=b,n.width-=b):"sw"===r?(n.x+=b,n.width-=b,n.height-=b):"ne"===r?(n.y-=b,n.width+=b,n.height+=b):"e"===r?n.width+=b:"se"===r&&(n.width+=b,n.height+=b)),"ArrowUp"===i?"nw"===r?(n.x-=b,n.y-=b,n.width+=b,n.height+=b):"n"===r?(n.y-=b,n.height+=b):"ne"===r?(n.y-=b,n.width+=b,n.height+=b):"sw"===r?(n.x+=b,n.width-=b,n.height-=b):"s"===r?n.height-=b:"se"===r&&(n.width-=b,n.height-=b):"ArrowDown"===i&&("nw"===r?(n.x+=b,n.y+=b,n.width-=b,n.height-=b):"n"===r?(n.y+=b,n.height-=b):"ne"===r?(n.y+=b,n.width-=b,n.height-=b):"sw"===r?(n.x-=b,n.width+=b,n.height+=b):"s"===r?n.height+=b:"se"===r&&(n.width+=b,n.height+=b)),n),o,r,y.width,y.height,p,f,g,m);if(!l(s,v)){let e=d(v,y.width,y.height);w(v,e),x&&x(v,e)}}),n(this,"onDocPointerDone",e=>{let{crop:t,disabled:r,onComplete:a,onDragEnd:i}=this.props,n=this.getBox();this.unbindDocMove(),!(r||!t)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,i&&i(e),a&&a(c(t,n.width,n.height),d(t,n.width,n.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))}),n(this,"onDragFocus",()=>{var e;null==(e=this.componentRef.current)||e.scrollTo(0,0)})}get document(){return document}getBox(){let e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};let{x:t,y:r,width:a,height:i}=e.getBoundingClientRect();return{x:t,y:r,width:a,height:i}}componentDidUpdate(e){let{crop:t,onComplete:r}=this.props;if(r&&!e.crop&&t){let{width:e,height:a}=this.getBox();e&&a&&r(c(t,e,a),d(t,e,a))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,u),this.document.addEventListener("pointerup",this.onDocPointerDone,u),this.document.addEventListener("pointercancel",this.onDocPointerDone,u),this.docMoveBound=!0)}
4unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,u),this.document.removeEventListener("pointerup",this.onDocPointerDone,u),this.document.removeEventListener("pointercancel",this.onDocPointerDone,u),this.docMoveBound=!1)}getCropStyle(){let{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){let{evData:e}=this,t=this.getBox(),r=this.makePixelCrop(t),a=e.clientX-e.startClientX,i=e.clientY-e.startClientY;return r.x=s(e.startCropX+a,0,t.width-r.width),r.y=s(e.startCropY+i,0,t.height-r.height),r}getPointRegion(e,t,r,a){let i,{evData:n}=this,o=n.clientX-e.x,s=n.clientY-e.y;return i=a&&t?"nw"===t||"n"===t||"ne"===t:s<n.startCropY,(r&&t?"nw"===t||"w"===t||"sw"===t:o<n.startCropX)?i?"nw":"sw":i?"ne":"se"}resolveMinDimensions(e,t,r=0,a=0){let i=Math.min(r,e.width),n=Math.min(a,e.height);return t&&(i||n)?t>1?i?[i,i/t]:[n*t,n]:n?[n*t,n]:[i,i/t]:[i,n]}resizeCrop(){let{evData:t}=this,{aspect:r=0,maxWidth:a,maxHeight:i}=this.props,n=this.getBox(),[o,l]=this.resolveMinDimensions(n,r,this.props.minWidth,this.props.minHeight),d=this.makePixelCrop(n),c=this.getPointRegion(n,t.ord,o,l),u=t.ord||c,p=t.clientX-t.startClientX,f=t.clientY-t.startClientY;(o&&"nw"===u||"w"===u||"sw"===u)&&(p=Math.min(p,-o)),(l&&"nw"===u||"n"===u||"ne"===u)&&(f=Math.min(f,-l));let g={unit:"px",x:0,y:0,width:0,height:0};"ne"===c?(g.x=t.startCropX,g.width=p,r?g.height=g.width/r:g.height=Math.abs(f),g.y=t.startCropY-g.height):"se"===c?(g.x=t.startCropX,g.y=t.startCropY,g.width=p,r?g.height=g.width/r:g.height=f):"sw"===c?(g.x=t.startCropX+p,g.y=t.startCropY,g.width=Math.abs(p),r?g.height=g.width/r:g.height=f):"nw"===c&&(g.x=t.startCropX+p,g.width=Math.abs(p),r?(g.height=g.width/r,g.y=t.startCropY-g.height):(g.height=Math.abs(f),g.y=t.startCropY+f));let m=h(g,r,c,n.width,n.height,o,l,a,i);return r||e.xyOrds.indexOf(u)>-1?d=m:e.xOrds.indexOf(u)>-1?(d.x=m.x,d.width=m.width):e.yOrds.indexOf(u)>-1&&(d.y=m.y,d.height=m.height),d.x=s(d.x,0,n.width-d.width),d.y=s(d.y,0,n.height-d.height),d}renderCropSelection(){let{ariaLabels:t=e.defaultProps.ariaLabels,disabled:r,locked:i,renderSelectionAddon:n,ruleOfThirds:o,crop:s}=this.props,l=this.getCropStyle();if(s)return a.default.createElement("div",{style:l,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!r&&!i&&a.default.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},a.default.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),a.default.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),a.default.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),a.default.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),a.default.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),n&&a.default.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},n(this.state)),o&&a.default.createElement(a.default.Fragment,null,a.default.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),a.default.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return c({...o,...this.props.crop||{}},e.width,e.height)}render(){let{aspect:e,children:t,circularCrop:r,className:i,crop:n,disabled:o,locked:s,style:l,ruleOfThirds:d}=this.props,{cropIsActive:c,newCropIsBeingDrawn:h}=this.state,u=n?this.renderCropSelection():null,p=((...e)=>e.filter(e=>e&&"string"==typeof e).join(" "))("ReactCrop",i,c&&"ReactCrop--active",o&&"ReactCrop--disabled",s&&"ReactCrop--locked",h&&"ReactCrop--new-crop",n&&e&&"ReactCrop--fixed-aspect",n&&r&&"ReactCrop--circular-crop",n&&d&&"ReactCrop--rule-of-thirds",!this.dragStarted&&n&&!n.width&&!n.height&&"ReactCrop--invisible-crop",r&&"ReactCrop--no-animate");return a.default.createElement("div",{ref:this.componentRef,className:p,style:l},a.default.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},t),n?a.default.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},a.default.createElement("defs",null,a.default.createElement("mask",{id:`hole-${this.instanceId}`},a.default.createElement("rect",{width:"100%",height:"100%",fill:"white"}),r?a.default.createElement("ellipse",{cx:`${n.x+n.width/2}${n.unit}`,cy:`${n.y+n.height/2}${n.unit}`,rx:`${n.width/2}${n.unit}`,ry:`${n.height/2}${n.unit}`,fill:"black"}):a.default.createElement("rect",{x:`${n.x}${n.unit}`,y:`${n.y}${n.unit}`,width:`${n.width}${n.unit}`,height:`${n.height}${n.unit}`,fill:"black"}))),a.default.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,u)}};n(f,"xOrds",["e","w"]),n(f,"yOrds",["n","s"]),n(f,"xyOrds",["nw","ne","se","sw"]),n(f,"nudgeStep",1),n(f,"nudgeStepMedium",10),n(f,"nudgeStepLarge",100),n(f,"defaultProps",{ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}});var g=e.i(659544);e.s(["LogoCropModal",0,function({imageSrc:e,onCropComplete:a,onCancel:i}
4){let[n,o]=(0,r.useState)(),[s,l]=(0,r.useState)(),[h,u]=(0,r.useState)(!1),p=(0,r.useRef)(null),m=(0,r.useCallback)(e=>{var t,r;let a,i,{width:n,height:s}=e.currentTarget;o((a=c(t={unit:"%",width:90},n,s),t.width&&(a.height=a.width/1),t.height&&(a.width=+a.height),a.y+a.height>s&&(a.height=s-a.y,a.width=+a.height),a.x+a.width>n&&(a.width=n-a.x,a.height=a.width/1),(i=c(r="%"===t.unit?d(a,n,s):a,n,s)).x=(n-i.width)/2,i.y=(s-i.height)/2,"%"===r.unit?d(i,n,s):i))},[]),w=async()=>{if(s&&p.current){u(!0);try{let e=p.current,t=document.createElement("canvas"),r=t.getContext("2d");if(!r)throw Error("No 2d context");let i=e.naturalWidth/e.width,n=e.naturalHeight/e.height;t.width=400,t.height=400,r.imageSmoothingEnabled=!0,r.imageSmoothingQuality="high",r.drawImage(e,s.x*i,s.y*n,s.width*i,s.height*n,0,0,400,400),t.toBlob(e=>{e?a(e):(console.error("Failed to create blob"),u(!1))},"image/png",1)}catch(e){console.error("Crop error:",e),u(!1)}}};return(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",children:(0,t.jsxs)("div",{className:"bg-white dark:bg-surface-900 rounded-xl shadow-2xl max-w-lg w-full max-h-[90vh] overflow-hidden",children:[(0,t.jsxs)("div",{className:"px-6 py-4 border-b border-surface-200 dark:border-surface-700",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-surface-900 dark:text-white",children:"Crop Your Logo"}),(0,t.jsx)("p",{className:"text-sm text-surface-600 dark:text-surface-400 mt-1",children:"Adjust the crop area to select the portion you want. The result will be a 400x400px square."})]}),(0,t.jsx)("div",{className:"p-6 flex justify-center items-center bg-surface-100 dark:bg-surface-800 overflow-auto max-h-[50vh]",children:(0,t.jsx)(f,{crop:n,onChange:(e,t)=>
4o(t),onComplete:e=>l(e),aspect:1,circularCrop:!1,className:"max-w-full",children:(0,t.jsx)("img",{ref:p,src:e,alt:"Crop preview",onLoad:m,className:"max-w-full max-h-[45vh] object-contain",crossOrigin:"anonymous"})})}),(0,t.jsxs)("div",{className:"px-6 py-4 border-t border-surface-200 dark:border-surface-700 flex justify-end gap-3",children:[(0,t.jsx)(g.Button,{variant:"outline",onClick:i,disabled:h,children:"Cancel"}),(0,t.jsx)(g.Button,{onClick:w,disabled:!s||h,children:h?(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsxs)("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):"Apply Crop"})]})]})})}],761851)},479931,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(657688),i=e.i(659544),n=e.i(761851);e.s(["LogoUpload",0,function({currentLogoUrl:e,type:o,organizationId:s,accreditationOrgId:l,onUploadSuccess:d,onDeleteSuccess:c,label:h="Business Logo",helpText:u="PNG or JPG, max 2MB. Image will be cropped to 400x400px square.",compact:p=!1}){let[f,g]=(0,r.useState)(e||null),[m,w]=(0,r.useState)(!1),[x,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(null),[C,j]=(0,r.useState)(!1),[k,D]=(0,r.useState)(null),[_,R]=(0,r.useState)(null),N=(0,r.useRef)(null),S=(0,r.useCallback)(e=>{if(v(null),!["image/png","image/jpeg","image/jpg"].includes(e.type))return void v("Only PNG and JPG files are allowed");if(e.size>5242880)return void v("File size must be less than 5MB");R(e);let t=new FileReader;t.onload=()=>{D(t.result)},t.readAsDataURL(e)},[]),P=(0,r.useCallback)(async e=>{D(null),R(null),w(!0);try{let t=new File([e],"logo.png",{type:"image/png"}),r=new FormData;r.append("file",t);let a=new URLSearchParams({type:o});s&&a.append("organizationId",s),l&&a.append("accreditationOrgId",l);let i=await fetch(`/api/upload/logo?${a.toString()}`,{method:"POST",body:r}),n=await i.json();if(!i.ok)throw Error(n.error||"Upload failed");g(n.url),d?.(n.url)}catch(e){v(e instanceof Error?e.message:"Upload failed")}finally{w(!1)}},[o,s,l,d]),E=(0,r.useCallback)(()=>{D(null),R(null),N.current&&(N.current.value="")},[]),M=(0,r.useCallback)(async()=>{if(f){y(!0),v(null);try{let e=new URLSearchParams({type:o});s&&e.append("organizationId",s),l&&e.append("accreditationOrgId",l);let t=await fetch(`/api/upload/logo?${e.toString()}`,{method:"DELETE"}),r=await t.json();if(!t.ok)throw Error(r.error||"Delete failed");g(null),c?.()}catch(e){v(e instanceof Error?e.message:"Delete failed")}finally{y(!1)}}},[f,o,s,l,c]),O=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),"dragenter"===e.type||"dragover"===e.type?j(!0):"dragleave"===e.type&&j(!1)},[]),z=(0,r.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),j(!1),e.dataTransfer.files&&e.dataTransfer.files[0]&&S(e.dataTransfer.files[0])},[S]),I=(0,r.useCallback)(e=>{e.target.files&&e.target.files[0]&&S(e.target.files[0])},[S]),L=(0,r.useCallback)(()=>{N.current?.click()},[]);return p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:L,disabled:m,className:"p-1.5 text-surface-400 hover:text-primary-600 transition-colors disabled:opacity-50",title:"Upload logo",children:m?(0,t.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),(0,t.jsx)("input",{ref:N,type:"file",accept:"image/png,image/jpeg,image/jpg",onChange:I,className:"hidden"}),k&&(0,t.jsx)(n.LogoCropModal,{imageSrc:k,onCropComplete:P,onCancel:E})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-3",children:[h&&(0,t.jsx)("label",{className:"block text-sm font-medium text-surface-700 dark:text-surface-300",children:h}),(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsxs)("div",{className:`relative w-24 h-24 rounded-lg border-2 border-dashed transition-colors overflow-hidden flex items-center justify-center ${C?"border-primary-500 bg-primary-50 dark:bg-primary-900/20":"border-surface-300 dark:border-surface-600 bg-surface-100 dar
4k:bg-surface-800"}`,onDragEnter:O,onDragLeave:O,onDragOver:O,onDrop:z,onClick:L,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&L(),children:[f?(0,t.jsx)(a.default,{src:f,alt:"Logo",fill:!0,className:"object-contain p-1",unoptimized:!0}):(0,t.jsxs)("div",{className:"text-center p-2",children:[(0,t.jsx)("svg",{className:"w-8 h-8 mx-auto text-surface-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),(0,t.jsx)("span",{className:"text-xs text-surface-500 dark:text-surface-400 mt-1 block",children:"Drop or click"})]}),m&&(0,t.jsx)("div",{className:"absolute inset-0 bg-white/80 dark:bg-surface-900/80 flex items-center justify-center",children:(0,t.jsxs)("svg",{className:"w-6 h-6 animate-spin text-primary-600",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),(0,t.jsx)("input",{ref:N,type:"file",accept:"image/png,image/jpeg,image/jpg",onChange:I,className:"hidden"})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(i.Button,{type:"button",variant:"outline",size:"sm",onClick:L,disabled:m,children:f?"Change":"Upload"}),f&&(0,t.jsx)(i.Button,{type:"button",variant:"ghost",size:"sm",onClick:M,disabled:x,className:"text-error hover:bg-error/10",children:x?"Removing...":"Remove"})]}),(0,t.jsx)("p",{className:"text-xs text-surface-500 dark:text-surface-400",children:u})]})]}),b&&(0,t.jsxs)("p",{className:"text-sm text-error flex items-center gap-1",children:[(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),b]})]}),k&&(0,t.jsx)(n.LogoCropModal,{imageSrc:k,onCropComplete:P,onCancel:E})]})}])}]); 5 6//# debugId=5938ca5c-5e01-74b4-c8e2-09eefae3e511 7//# sourceMappingURL=0np7snnham9vl.js.map
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.