PageSourceSearch

https://app.merlinai.co/_next/static/chunks/88122-e1a3df7e5d478b26.js

js merlinai.co collected 2026-09-30 05:40:56 UTC 50,079 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88122],{543084:function(e,o,r){var n=r(785893),t=r(667294),l=r(492053),i=r(905883),s=r(895604);let a=e=>{let{label:o,content:r,icon:a,defaultOpened:c=!1,headerAction:d}=e,[x,p]=(0,t.useState)(c),u=()=>{p(e=>!e)};return(0,n.jsxs)("div",{style:{border:"1px solid ".concat(s.mWN),borderRadius:"4px",overflow:"hidden",marginBottom:"8px"},children:[(0,n.jsxs)("div",{onClick:u,style:{display:"flex",alignItems:"center",padding:"12px 16px",cursor:"pointer",backgroundColor:x?"var(--color-bg-white-0)":s.t0e},children:[a&&(0,n.jsx)("div",{style:{marginRight:"12px",display:"flex",alignItems:"center"},children:a}),(0,n.jsx)("div",{style:{flex:1},children:o}),d&&(0,n.jsx)("div",{style:{marginRight:"12px",display:"flex",alignItems:"center"},onClick:e=>e.stopPropagation(),children:d}),(0,n.jsx)("div",{style:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:x?"var(--color-bg-white-0)":s.t0e,borderRadius:"4px"},children:x?(0,n.jsx)(i.Z,{size:16}):(0,n.jsx)(l.Z,{size:16})})]}),(0,n.jsx)("div",{style:{display:"grid",gridTemplateRows:x?"1fr":"0fr",transition:"grid-template-rows 0.3s ease",backgroundColor:"var(--color-bg-white-0)"},children:(0,n.jsx)("div",{style:{overflow:"hidden",minHeight:0},children:(0,n.jsx)("div",{style:{padding:"12px 16px",marginLeft:a?"28px":"0"},children:r})})})]})},c=e=>{var o,r;let{data:t,defaultOpened:l}=e;return(0,n.jsx)("div",{children:t.map((e,t)=>(0,n.jsx)(a,{label:e.label,content:e.content,icon:e.icon,headerAction:e.headerAction,defaultOpened:null!==(r=null!==(o=e.defaultOpened)&&void 0!==o?o:l)&&void 0!==r&&r},t))})};o.Z=c},701365:function(e,o,r){r.d(o,{O:function(){return d},Z:function(){return c}});var n=r(785893);r(667294);var t=r(44127),l=r(697980),i=r(301962),s=r(270747),a=r(895604);function c(e){let{label:o,color:r=a.$aJ,backgroundColor:t=a.iHp,size:l="md",leftIcon:i,rightIcon:s,variant:c="filled"}=e;return(0,n.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",gap:"2px",backgroundColor:t,color:r,padding:"sm"===l?"2px 4px":"md"===l?"4px 8px":"6px 12px",borderRadius:"4px",border:"outline"===c?"1px solid ".concat(a.mWN):"1px solid transparent",fontSize:"sm"===l?"8px":"md"===l?"11px":"14px"},children:[i,(0,n.jsx)("span",{children:o}),s]})}function d(e){let{label:o,status:r,variant:d="filled"}=e,x=(()=>
1{if("outline"===d)return{backgroundColor:"var(--color-bg-white-0)",color:a.zyC,border:"1px solid ".concat(a.mWN)};switch(r){case"success":return{backgroundColor:a.ipS,color:a.dqD};case"warning":return{backgroundColor:a.lb2,color:a.kUV};case"error":return{backgroundColor:a.FHS,color:a.XGb};case"info":return{backgroundColor:a.xOw,color:a.$aJ};default:return{backgroundColor:"var(--color-bg-white-0)",color:a.o$}}})();return(0,n.jsx)(c,{label:o,color:x.color,backgroundColor:x.backgroundColor,variant:d,leftIcon:(()=>{switch(r){case"success":return(0,n.jsx)(t.Z,{size:16,color:a.dqD});case"warning":return(0,n.jsx)(s.Z,{size:16,color:a.kUV});case"error":return(0,n.jsx)(l.Z,{size:16,color:a.XGb});case"info":return(0,n.jsx)(i.Z,{size:16,color:a.$aJ});default:return null}})()})}},24835:function(e,o,r){r.d(o,{Z:function(){return p}});var n=r(785893),t=r(991449),l=r(598793),i=r(741664),s=r.n(i),a=r(811163),c=r(628681),d=r(895604),x=r(651380);function p(e){let{main:o,sub:r}=e,i=(0,a.useRouter)();return(0,n.jsxs)(t.Z,{spacing:6,children:[(0,n.jsx)(x.Z,{color:d.Syz,size:20,onClick:()=>i.back(),style:{cursor:"pointer"}}),(0,n.jsx)(s(),{href:o.href,style:{display:"flex",alignItems:"center",gap:8,textDecoration:"none"},children:(0,n.jsx)(l.x,{style:{color:d.zyC},fw:500,ml:8,children:o.label})}),r.map((e,o)=>(0,n.jsx)("span",{style:{display:"flex",alignItems:"center"},children:o===r.length-1?(0,n.jsxs)(t.Z,{spacing:5,children:[(0,n.jsx)(c.Z,{color:d.Syz}),(0,n.jsx)(l.x,{fw:500,style:{color:d.zyC},children:e.label})]}):e.disabled?(0,n.jsxs)(t.Z,{spacing:5,style:{cursor:"not-allowed"},children:[(0,n.jsx)(c.Z,{color:d.Syz}),(0,n.jsx)(l.x,{fw:500,style:{color:d.Syz},children:e.label})]}):(0,n.jsx)(s(),{href:e.href,style:{textDecoration:"none",color:d.zyC},children:(0,n.jsxs)(t.Z,{spacing:5,children:[(0,n.jsx)(c.Z,{color:d.Syz}),(0,n.jsx)(l.x,{fw:500,style:{color:d.zyC},children:e.label})]})})},o))]})}},798014:function(e,o,r){r.d(o,{o:function(){return u}});var n=r(785893),t=r(667294),l=r(656354),i=r(991449),s=r(930762),a=r(240254),c=r(84888),d=r(598793),x=r(463991),p=r(895604);function u(e){let{children:o,items:r,disabled:u=!1,loading:h=!1,variant:g="outline",menuLabel:f,buttonStyle:b}=e,[m,v]=(0,t.useState)(!1),y=(0,t.useRef)(null),j=(0,t.useRef)(null),[w,C]=(0,t.useState)({top:0,bottom:0,left:0,openAbove:!1});(0,t.useEffect)(()=>{if(m&&y.current){let e=y.current.getBoundingClientRect(),o=window.innerHeight-e.bottom,r=e.top;C({top:e.bottom+4,bottom:window.innerHeight-e.top+4,left:e.left,openAbove:o<200&&r>o})}},[m]),(0,t.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&y.current&&!y.current.contains(e.target)&&v(!1)};return m&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[m]),(0,t.useEffect)(()=>{let e=e=>{"Escape"===e.key&&v(!1)};return m&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[m]);let k=(0,t.useMemo)(()=>{if(u)return{backgroundColor:p.t0e,color:p.sQG,cursor:"not-allowed",opacity:.6,border:"1px solid transparent"};switch(g){case"outline":return{backgroundColor:p.LN9,color:p.$aJ,border:"1px solid ".concat(p.$aJ),"&:hover":{backgroundColor:p.iHp}};case"light":return{backgroundColor:p.iHp,color:p.$aJ,border:"1px solid transparent","&:hover":{backgroundColor:p.LN9,border:"1px solid ".concat(p.$aJ)}};case"subtle":return{backgroundColor:"transparent",color:p.$aJ,border:"1px solid transparent","&:hover":{backgroundColor:p.iHp}};default:return{backgroundColor:p.cRH,color:"white",border:"1px solid transparent","&:hover":{backgroundColor:p.NQw}}}},[g,u]),z=()=>{u||h||v(!m)},S=e=>{v(!1),e.onClick()};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.k,{ref:y,onClick:z,sx:{borderRadius:"4px",padding:"8px 16px",fontSize:"14px",fontWeight:500,display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease",...k,...b},children:(0,n.jsxs)(i.Z,{spacing:6,children:[h?(0,n.jsx)(s.a,{size:"xs"}):o,!h&&(0,n.jsx)(x.C26,{size:14})]})}),m&&(0,n.jsx)(a.h,{children:(0,n.jsxs)(c.x,{ref:j,sx:{position:"fixed",top:w.openAbove?"auto":w.top,bottom:w.openAbove?w.bottom:"auto",left:w.left,zIndex:9999,background:"var(--color-bg-white-0)",borderRadius:"8px",boxShadow:"0px 16px 32px -12px rgba(14, 18, 27, 0.25), 0px 0px 1px rgba(0, 0, 0, 0.2)",border:"1px solid ".concat(p.mWN),minWidth:220,maxHeight:300,overflowY:"auto"},children:[f&&(0,n.jsx)(d.x,{size:"xs",weight:500,color:p.zyC,px:12,py:8,sx:{borderBottom:"1px solid ".concat(p.mWN)},children:f}),r.map(e=>(0,n.jsxs)(c.x,{onClick:()=>S(e),sx:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",cursor:"pointer",transition:"background-color 150ms ease","&:hover":{backgroundColor:p.t0e}},children:[e.icon,(0,n.jsx)(d.x,{size:"sm",color:p.sAG,children:e.label})]},e.key))]})})]})}},434421:function(e,o,r){r.d(o,{ER:function(){return d},KM:function(){return c},O3:function(){return x},kq:function(){return p}});var n=r(785893),t=r(667294),l=r(930762),i=r(991449),s=r(656354),a=r(895604);let c=e=>{let{children:o,leftIcon:r,rightIcon:c,variant:d="filled",disabled:x,iconOnly:p,icon:u,loading:h,...g}=e,f=(0,t.useMemo)(()=>
1{if(x)return{backgroundColor:a.t0e,color:a.sQG,cursor:"not-allowed",opacity:.6,border:"1px solid transparent","&:hover":{backgroundColor:a.t0e,color:a.sQG}};switch(d){case"outline":return{backgroundColor:a.LN9,color:a.$aJ,border:"1px solid ".concat(a.$aJ),"&:hover":{backgroundColor:a.iHp,color:a.$aJ,border:"1px solid transparent"},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.$aJ),boxShadow:"0px 0px 0px 4px ".concat(a.iHp)}};case"light":return{backgroundColor:a.iHp,color:a.$aJ,border:"1px solid transparent","&:hover":{backgroundColor:a.LN9,color:a.$aJ,border:"1px solid ".concat(a.$aJ)},"&:focus":{backgroundColor:a.LN9,color:a.$aJ,border:"1px solid ".concat(a.$aJ),boxShadow:"0px 0px 0px 4px ".concat(a.iHp)}};case"subtle":return{backgroundColor:"transparent",color:a.$aJ,border:"1px solid transparent","&:hover":{backgroundColor:a.iHp},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.$aJ),boxShadow:"0px 0px 0px 4px ".concat(a.iHp)}};default:return{backgroundColor:a.cRH,color:"white",border:"1px solid transparent","&:hover":{backgroundColor:a.NQw},"&:focus":{boxShadow:"0px 0px 0px 4px ".concat(a.iHp)}}}},[d,x]),b=h?(0,n.jsx)(l.a,{size:"xs",color:"white"}):p?u||r||c||null:(0,n.jsxs)(i.Z,{spacing:12,position:"apart",children:[r,o,c]}),m=e=>{var o;if(x||h){e.preventDefault(),e.stopPropagation();return}null===(o=g.onClick)||void 0===o||o.call(g)};return(0,n.jsx)(s.k,{...g,onClick:m,sx:e=>({borderRadius:"4px",padding:"xs"===g.size?"6px 12px":"sm"===g.size?"8px 16px":"10px 20px",fontSize:"14px",fontWeight:500,display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease",...f}),children:b})},d=e=>{let{children:o,leftIcon:r,rightIcon:l,variant:c="outline",disabled:d,iconOnly:x,icon:p,...u}=e,h=(0,t.useMemo)(()=>{if(d)return{backgroundColor:a.t0e,color:a.sQG,cursor:"not-allowed",opacity:.6,border:"1px solid transparent","&:hover":{backgroundColor:a.t0e,color:a.sQG}};switch(c){case"outline":return{backgroundColor:a.LN9,color:a.zyC,border:"1px solid ".concat(a.mWN),"&:hover":{backgroundColor:a.t0e,border:"1px solid transparent",color:a.sAG},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.o$),color:a.sAG,boxShadow:"0px 0px 0px 4px ".concat(a.Ups)}};case"light":return{backgroundColor:a.t0e,border:"1px solid transparent",color:a.zyC,"&:hover":{backgroundColor:a.LN9,color:a.sAG,border:"1px solid ".concat(a.mWN)},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.o$),color:a.sAG,boxShadow:"0px 0px 0px 4px ".concat(a.Ups)}};case"subtle":return{backgroundColor:"transparent",color:a.zyC,border:"1px solid transparent","&:hover":{backgroundColor:a.t0e,color:a.sAG,border:"1px solid transparent"},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.o$),color:a.sAG,boxShadow:"0px 0px 0px 4px ".concat(a.Ups)}};default:return{backgroundColor:a.AHW,color:"white",border:"1px solid transparent","&:hover":{backgroundColor:a.Wh2},"&:focus":{boxShadow:"0px 0px 0px 4px ".concat(a.iHp)}}}},[c,d]),g=x?p||r||l||null:(0,n.jsxs)(i.Z,{spacing:4,children:[r,o,l]}),f=e=>{var o;if(d){e.preventDefault(),e.stopPropagation();return}null===(o=u.onClick)||void 0===o||o.call(u)};return(0,n.jsx)(s.k,{...u,onClick:f,sx:e=>({borderRadius:"4px",minWidth:x?"32px":"104px",padding:"xs"===u.size?"6px":"sm"===u.size?"8px":"10px",fontSize:"14px",fontWeight:500,display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease","&:focus":{boxShadow:"0px 0px 0px 4px ".concat(a.Ups)},...h}),children:g})},x=e=>{let{children:o,leftIcon:r,rightIcon:l,variant:c="filled",disabled:d,iconOnly:x,icon:p,...u}=e,h=(0,t.useMemo)(()=>{if(d)return{backgroundColor:a.t0e,color:a.sQG,cursor:"not-allowed",opacity:.6,border:"1px solid transparent","&:hover":{backgroundColor:a.t0e,color:a.sQG}};switch(c){case"outline":return{backgroundColor:a.LN9,color:a.XGb,border:"1px solid ".concat(a.XGb),"&:hover":{backgroundColor:a.P1Q,border:"1px solid transparent",color:a.XGb},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.XGb),color:a.XGb,boxShadow:"0px 0px 0px 4px ".concat(a.P1Q)}};case"light":return{backgroundColor:a.P1Q,border:"1px solid transparent",color:a.XGb,"&:hover":{backgroundColor:a.LN9,color:a.XGb,border:"1px solid ".concat(a.XGb)},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.XGb),color:a.XGb,boxShadow:"0px 0px 0px 4px ".concat(a._4B)}};case"subtle":return{backgroundColor:"transparent",color:a.XGb,border:"1px solid transparent","&:hover":{backgroundColor:a.P1Q,color:a.XGb,border:"1px solid transparent"},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.XGb),color:a.XGb,boxShadow:"0px 0px 0px 4px ".concat(a._4B)}};default:return{backgroundColor:a.XGb,color:"white",border:"1px solid transparent","&:hover":{backgroundColor:a.guc},"&:focus":{boxShadow:"0px 0px 0px 4px ".concat(a._4B)}}}},[c,d]),g=x?p||r||l||null:(0,n.jsxs)(i.Z,{spacing:4,children:[r,o,l]}),f=e=>{var o;if(d){e.preventDefault(),e.stopPropagation();return}null===(o=u.onClick)||void 0===o||o.call(u)};return(0,n.jsx)(s.k,{...u,onClick:f,sx:e=>({borderRadius:"4px",padding:"xs"===u.size?"6px":"sm"===u.size?"8px":"10px",fontSize:"14px",fontWeight:500,display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:x?"32px":"104px",transition:"background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease","&:focus":{boxShadow:"0px 0px 0px 4px ".concat(a.Ups)},...h}),children:g})}
1,p=e=>{let{children:o,leftIcon:r,rightIcon:c,variant:d="filled",disabled:x,iconOnly:p,icon:u,loading:h,...g}=e,f=(0,t.useMemo)(()=>{if(x)return{backgroundColor:a.t0e,color:a.sQG,cursor:"not-allowed",opacity:.6,border:"1px solid transparent","&:hover":{backgroundColor:a.t0e,color:a.sQG}};switch(d){case"outline":return{backgroundColor:a.LN9,color:a.SaI,border:"1px solid ".concat(a.wK4),"&:hover":{backgroundColor:a.HjT,border:"1px solid transparent",color:a.SaI},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.wK4),color:a.SaI,boxShadow:"0px 0px 0px 4px ".concat(a._4B)}};case"light":return{backgroundColor:a.HjT,border:"1px solid transparent",color:a.SaI,"&:hover":{backgroundColor:a.LN9,color:a.SaI,border:"1px solid ".concat(a.wK4)},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.wK4),color:a.SaI,boxShadow:"0px 0px 0px 4px ".concat(a._4B)}};case"subtle":return{backgroundColor:"transparent",color:a.SaI,border:"1px solid transparent","&:hover":{backgroundColor:a.HjT,border:"1px solid transparent",color:a.SaI},"&:focus":{backgroundColor:a.LN9,border:"1px solid ".concat(a.wK4),color:a.SaI,boxSh
1adow:"0px 0px 0px 4px ".concat(a._4B)}};default:return{backgroundColor:a.wK4,color:a.Q0C,border:"1px solid transparent","&:hover":{color:a.DOR,backgroundColor:a.Bz5},"&:focus":{boxShadow:"0px 0px 0px 4px ".concat(a._4B)}}}},[d,x]),b=h?(0,n.jsx)(l.a,{size:"xs",color:"dark"}):p?u||r||c||null:(0,n.jsxs)(i.Z,{spacing:4,children:[r,o,c]}),m=e=>{var o;if(x||h){e.preventDefault(),e.stopPropagation();return}null===(o=g.onClick)||void 0===o||o.call(g)};return(0,n.jsx)(s.k,{...g,onClick:m,sx:e=>({borderRadius:"4px",padding:"xs"===g.size?"6px":"sm"===g.size?"8px":"10px",fontSize:"14px",fontWeight:500,display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease","&:focus":{boxShadow:"0px 0px 0px 4px ".concat(a.Ups)},...f}),children:b})}},11402:function(e,o,r){r.d(o,{W:function(){return c}});var n=r(785893),t=r(223529),l=r(604573),i=r(803424),s=r(634622),a=r(667294);function c(e){let{label:o,placeholder:r="Select date",selectedDate:c,onDateSelect:d,onBlur:x,withAsterisk:p}=e,[u,h]=(0,a.useState)(!1),g=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=e=>{g.current&&!g.current.contains(e.target)&&(h(!1),x&&x(c))};return u&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[u,c,x]);let f=e=>{d(e)},b=e=>{d(e),h(!1),x&&x(e)},m=()=>{h(!1)},v=c?(0,i.WU)(c,"MMM dd, yyyy"):"";return(0,n.jsxs)("div",{ref:g,className:"relative",children:[(0,n.jsx)("div",{onClick:()=>h(!u),className:"cursor-pointer",children:(0,n.jsx)(l.Z,{withAsterisk:p,label:o,value:v,placeholder:r,readOnly:!0,onChange:()=>{},rightSection:(0,n.jsx)(s.Z,{size:16,className:"text-text-sub-600"})})}),u&&(0,n.jsx)("div",{className:"absolute z-50 mt-1",children:(0,n.jsx)(t.M,{selectedDate:c,onDateSelect:f,onApply:b,onCancel:m})})]})}},223529:function(e,o,r){r.d(o,{M:function(){return C}});var n=r(785893),t=r(667294),l=r(596241),i=r(337692),s=r(232276),a=r(571041),c=r(747837),d=r(803424),x=r(29893),p=r(55861),u=r(167889),h=r(84888),g=r(991449),f=r(656354),b=r(598793),m=r(463991),v=r(434421),y=r(895604);let j=["MO","TU","WE","TH","FR","SA","SU"],w=(0,p.k)(e=>({calendarHeader:{backgroundColor:y.t0e,borderRadius:4,color:y.zyC,padding:6},monthButton:{backgroundColor:y.LN9,color:e.colors.gray[6],"&:hover":{backgroundColor:e.colors.gray[0]},borderRadius:4,padding:4},dayOfWeek:{color:e.colors.gray[6],fontSize:e.fontSizes.xs,fontWeight:500,textAlign:"center"},dateButtonBase:{width:32,height:32,padding:0,minHeight:"unset"},footer:{borderTop:"1px solid ".concat(y.mWN),padding:"16px",marginTop:e.spacing.md}})),C=e=>{let{selectedDate:o,onDateSelect:r,onCancel:p,onApply:y}=e,{classes:C}=w(),[k,z]=(0,t.useState)(()=>o?(0,l.N)(o):(0,l.N)(new Date)),[S,N]=(0,t.useState)(o);(0,t.useEffect)(()=>{o&&(N(o),z((0,l.N)(o)))},[o]);let Z=()=>{z(e=>(0,i.W)(e,1))},W=()=>{z(e=>(0,s.z)(e,1))},R=e=>{N(e),null==r||r(e)},B=()=>{S&&(null==y||y(S))},D=(0,l.N)(k),G=(0,a.V)(k),L=(0,c.D)({start:D,end:G}),E=D.getDay();return(0,n.jsxs)(u.X,{style:{boxShadow:"0px 16px 32px -12px #0E121B1A"},radius:4,sx:{width:320},children:[(0,n.jsx)(h.x,{p:20,children:(0,n.jsxs)(g.Z,{position:"apart",className:C.calendarHeader,children:[(0,n.jsx)(f.k,{onClick:Z,className:C.monthButton,children:(0,n.jsx)(m.ed9,{size:18})}),(0,n.jsx)(b.x,{size:"sm",weight:500,children:(0,d.WU)(k,"MMMM yyyy")}),(0,n.jsx)(f.k,{onClick:W,className:C.monthButton,children:(0,n.jsx)(m.VG8,{size:18})})]})}),(0,n.jsx)(g.Z,{spacing:8,px:20,grow:!0,mb:"xs",children:j.map(e=>(0,n.jsx)(h.x,{className:C.dayOfWeek,children:e},e))}),(0,n.jsxs)(h.x,{px:20,sx:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:8},children:[Array.from({length:0===E?6:E-1}).map((e,o)=>(0,n.jsx)(h.x,{},"padding-".concat(o))),L.map(e=>{let o=S&&(0,x.K)(e,S);return o?(0,n.jsx)(v.KM,{onClick:()=>R(e),className:C.dateButtonBase,style:{padding:0,width:"32px"},children:(0,d.WU)(e,"d")},e.toISOString()):(0,n.jsx)(v.ER,{onClick:()=>R(e),variant:"subtle",className:C.dateButtonBase,style:{minWidth:"32px"},children:(0,d.WU)(e,"d")},e.toISOString())})]}),(0,n.jsxs)(g.Z,{position:"apart",className:C.footer,grow:!0,children:[(0,n.jsx)(v.ER,{variant:"outline",onClick:p,children:"Cancel"}),(0,n.jsx)(v.KM,{onClick:B,children:"Apply"})]})]})}},684767:function(e,o,r){r.d(o,{D:function(){return W}});var n=r(785893),t=r(667294),l=r(657783),i=r(337692),s=r(596241),a=r(970340),c=r(29893),d=r(571041),x=r(747837),p=r(803424),u=r(232276),h=r(55861),g=r(84888),f=r(991449),b=r(656354),m=r(598793),v=r(167889),y=r(281374),j=r(334925),w=r(463991),C=r(434421),k=r(895604);let z=["MO","TU","WE","TH","FR","SA","SU"],S=[{label:"Today",getValue:()=>[new Date,new Date]},{label:"Last 7 days",getValue:()=>[(0,l.k)(new Date,6),new Date]},{label:"Last 30 days",getValue:()=>[(0,l.k)(new Date,29),new Date]},{label:"Last 3 months",getValue:()=>[(0,i.W)(new Date,3),new Date]},{label:"Last 12 months",getValue:()=>[(0,i.W)(new Date,12),new Date]},{label:"Month to date",getValue:()=>[(0,s.N)(new Date),new Date]},{label:"Year to date",getValue:()=>[new Date(new Date().getFullYear(),0,1),new Date]},{label:"All time",getValue:()=>[new Date(2020,0,1),new Date]}],N=(0,h.k)(e=>({root:{display:"flex"},presets:{borderRight:"1px solid ".concat(k.mWN),padding:"20px 16px",
1width:160},presetButton:{width:"100%",justifyContent:"flex-start",height:32,padding:"6px 12px",borderRadius:4,color:k.sAG,fontSize:14,"&:hover":{backgroundColor:k.iHp}},presetButtonSelected:{backgroundColor:k.$aJ,color:"white","&:hover":{backgroundColor:k.$aJ}},calendarsWrapper:{display:"flex",gap:e.spacing.xl,padding:"20px 24px"},calendarHeader:{backgroundColor:k.t0e,borderRadius:4,color:k.zyC,padding:6,marginBottom:e.spacing.md},monthButton:{backgroundColor:k.LN9,color:e.colors.gray[6],"&:hover":{backgroundColor:e.colors.gray[0]},borderRadius:4,padding:4},dayOfWeek:{color:e.colors.gray[6],fontSize:e.fontSizes.xs,fontWeight:500,textAlign:"center"},calendarGrid:{display:"grid",gridTemplateColumns:"repeat(7, 36px)",gap:4,justifyContent:"center"},dateButtonWrapper:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center"},dateButton:{width:"100%",height:"100%",padding:0,minHeight:"unset",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,"&:hover":{backgroundColor:k.iHp}},dateButtonSelected:{backgroundColor:k.$aJ,color:"white","&:hover":{backgroundColor:k.$aJ}},dateButtonInRange:{backgroundColor:"".concat(k.iHp," !important"),borderRadius:0},dateButtonRangeStart:{borderTopLeftRadius:"4px !important",borderBottomLeftRadius:"4px !important"},dateButtonRangeEnd:{borderTopRightRadius:"4px !important",borderBottomRightRadius:"4px !important"},footer:{borderTop:"1px solid ".concat(k.mWN),padding:"16px"},rangeText:{fontSize:14,color:k.sAG,fontWeight:400}})),Z=e=>{let{currentMonth:o,onPrevMonth:r,onNextMonth:t,value:l,onDateClick:i,hoveredDate:u,onDateHover:h}=e,{classes:v,cx:y}=N(),j=e=>{if(l[0]&&l[1])return(0,a._)(e,{start:l[0],end:l[1]});if(l[0]&&u){let[o,r]=l[0]<u?[l[0],u]:[u,l[0]];return(0,a._)(e,{start:o,end:r})}return!1},C=e=>l[0]&&(0,c.K)(e,l[0]),k=e=>l[1]&&(0,c.K)(e,l[1]),S=(0,s.N)(o),Z=(0,d.V)(o),W=(0,x.D)({start:S,end:Z}),R=S.getDay();return(0,n.jsxs)(g.x,{children:[(0,n.jsxs)(f.Z,{position:"apart",className:v.calendarHeader,children:[(0,n.jsx)(b.k,{onClick:r,className:v.monthButton,children:(0,n.jsx)(w.ed9,{size:18})}),(0,n.jsx)(m.x,{size:"sm",weight:500,children:(0,p.WU)(o,"MMMM yyyy")}),(0,n.jsx)(b.k,{onClick:t,className:v.monthButton,children:(0,n.jsx)(w.VG8,{size:18})})]}),(0,n.jsx)(f.Z,{spacing:4,grow:!0,mb:"xs",children:z.map(e=>(0,n.jsx)(g.x,{className:v.dayOfWeek,children:e},e))}),(0,n.jsxs)(g.x,{className:v.calendarGrid,children:[Array.from({length:0===R?6:R-1}).map((e,o)=>(0,n.jsx)(g.x,{className:v.dateButtonWrapper},"padding-".concat(o))),W.map(e=>{l[0]&&(0,c.K)(e,l[0])||l[1]&&(0,c.K)(e,l[1]);let o=j(e),r=C(e),t=k(e);return(0,n.jsx)(g.x,{onMouseEnter:()=>h(e),className:v.dateButtonWrapper,children:(0,n.jsx)(b.k,{onClick:()=>i(e),className:y(v.dateButton,o&&!r&&!t&&v.dateButtonInRange,(r||t)&&v.dateButtonSelected,r&&v.dateButtonRangeStart,t&&v.dateButtonRangeEnd),children:(0,p.WU)(e,"d")})},e.toISOString())})]})]})},W=e=>{let{value:o,onChange:r,onCancel:l,onApply:s}=e,{classes:a,cx:d}=N(),[x,h]=(0,t.useState)(new Date),[w,z]=(0,t.useState)((0,u.z)(new Date,1)),[W,R]=(0,t.useState)(null),B=()=>h(e=>(0,i.W)(e,1)),D=()=>{let e=(0,u.z)(x,1);e<w&&h(e)},G=()=>{let e=(0,i.W)(w,1);e>x&&z(e)},L=()=>z(e=>(0,u.z)(e,1)),E=e=>{let[n,t]=o;!n||n&&t?r([e,null]):e<n?r([e,n]):r([n,e])},I=e=>{let[o,n]=e.getValue();r([o,n])},H=e=>{if(!o[0]||!o[1])return!1;let[r,n]=e.getValue();return(0,c.K)(o[0],r)&&(0,c.K)(o[1],n)};return(0,n.jsx)(v.X,{style:{boxShadow:"0px 16px 32px -12px #0E121B1A"},radius:4,children:(0,n.jsxs)("div",{className:a.root,children:[(0,n.jsx)(y.K,{className:a.presets,spacing:"xs",children:S.map(e=>(0,n.jsx)(b.k,{onClick:()=>I(e),className:d(a.presetButton,H(e)&&a.presetButtonSelected),children:e.label},e.label))}),(0,n.jsxs)(g.x,{children:[(0,n.jsxs)("div",{className:a.calendarsWrapper,children:[(0,n.jsx)(Z,{currentMonth:x,onPrevMonth:B,onNextMonth:D,value:o,onDateClick:E,hoveredDate:W,onDateHover:R}),(0,n.jsx)(Z,{currentMonth:w,onPrevMonth:G,onNextMonth:L,value:o,onDateClick:E,hoveredDate:W,onDateHover:R})]}),(0,n.jsx)("div",{className:a.footer,children:(0,n.jsxs)(j.M,{cols:2,children:[(0,n.jsx)(f.Z,{children:(0,n.jsxs)(m.x,{className:a.rangeText,children:[(0,n.jsx)("span",{style:{color:k.zyC},children:"Range:"})," ",o[0]?(0,p.WU)(o[0],"MMM dd, yyyy"):"",o[1]?" - ".concat((0,p.WU)(o[1],"MMM dd, yyyy")):""]})}),(0,n.jsxs)(f.Z,{position:"right",spacing:16,grow:!0,children:[(0,n.jsx)(C.ER,{variant:"outline",onClick:l,children:"Cancel"}),(0,n.jsx)(C.KM,{onClick:()=>null==s?void 0:s(o),children:"Apply"})]})]})})]})]})})}},458302:function(e,o,r){r.d(o,{i:function(){return i}});var n=r(785893),t=r(6277),l=r(895604);r(667294);let i=e=>{let{children:o,dashed:r,...i}=e;return(0,n.jsx)(t.i,{labelPosition:"center",color:l.a44,style:{borderStyle:r?"dashed":"solid"},label:o?(0,n.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:o}):void 0,...i})}},437799:function(e,o,r){var n=r(785893),t=r(991449),l=r(748797),i=r(281374),s=r(326016);r(667294);let a=e=>{let{title:o,description:r,icon:l}=e;return(0,n.jsxs)(t.Z,{p:"md",style:{borderBottom:"1px solid #eee"},children:[l,(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{style:{fontWeight:600},children:o}),r&&(0,n.jsx)("div",{style:{fontSize:"smaller",color:"#666"},children:r})]})]})},c=e=>{let{children:o}=e;return(0,n.jsx)(t.Z,{p:"md",style:{borderTop:"1px solid #eee"},children:o})},d=e=>{let{children:o}=e;return(0,n.jsx)(l.x,{style:{flex:1},children:(0,n.jsx)(i.K,{style:{minHeight:0},children:o})})},x=e=>{let{isOpen:o,onClose:r,children:t,size:l}=e;return(0,n.jsx)(s.d,{position:"right",opened:o,onClose:r,withCloseButton:!1,size:l||"md",styles:{body:{padding:0,height:"100%",display:"flex",flexDirection:"column"}},children:t})};x.Header=a,x.Body=d,x.Footer=c,o.Z=x},454829:function(e,o,r){var n=r(785893),t=r(546512),l=r(667294);let i=(0,l.createContext)(null);function s(e){let{children:o}=e,[r,s]=(0,l.useState)(!1);return(0,n.jsx)(i.Provider,{value:{opened:r,setOpened:s},children:(0,n.jsx)(t.J,{opened:r,onChange:s,width:"auto",position:"bottom-start",offset:8,trapFocus:!1,transition:"pop",withinPortal:!0,children:o})})}s.Target=function(e){let{children:o}=e,r=(0,l.useContext)(i);if(!r)throw Error("Dropdown.Target must be inside Dropdown");return(0,n.jsx)(t.J.Target,{children:(0,n.jsx)("div",{onClick:()=>r.setOpened(!r.opened),style:{display:"inline-block"},children:o})})},s.Content=function(e){let{children:o}=e;return(0,n.jsx)(t.J.Dropdown,{style:{background:"var(--color-bg-white-0)",borderRadius:4,padding:0,minWidth:100,maxWidth:300,boxShadow:"0px 16px 32px -12px #0E121B1A"},children:o})}},353925:function(e,o,r){r.d(o,{Z:function(){return x}});var n=r(785893),t=r(895604),l=r(84888),i=r(598793),s=r(281374),a=r(756952),c=r(434421),d=r(222130);function x(e){let{setFiles:o}=e,r=e=>{o([...e])};return(0,n.jsx)(a.fh,{onDrop:e=>r(e),onReject:e=>console.log("rejected files",e),maxSize:52428800,accept:{"image/*":[".jpeg",".jpg",".png"],"application/pdf":[".pdf"],"video/mp4":[".mp4"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[".pptx"],"application/vnd.ms-powerpoint":[".ppt"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/msword":[".doc"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[".xlsx"],"application/vnd.ms-excel":[".xls"]},styles:{root:{border:"2px dashed ".concat(t.mWN),borderRadius:"4px"}},children:(0,n.jsxs)(s.K,{align:"center",spacing:20,style:{minHeight:180,pointerEvents:"none",padding:"20px"},children:[(0,n.jsx)(l.x,{style:{width:"36px",height:"36px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"8px"},children:(0,n.jsx)(d.Z,{size:19.81,color:t.Q$S})}),(0,n.jsx)(i.x,{size:"md",weight:500,inline:!0,children:"Choose a file or drag & drop it here."}),(0,n.jsx)(i.x,{size:"sm",color:"dimmed",inline:!0,mt:0,children:"JPEG, PNG, PDF, and MP4 formats, up to 50 MB."}),(0,n.jsx)(c.ER,{variant:"outline",children:"Browse File"})]})})}},705772:function(e,o,r){r.d(o,{f:function(){return a}});var n=r(785893),t=r(549881),l=r(281374),i=r(991449),s=r(598793);let a=e=>{let{fileName:o,fileSize:r,fileType:a}=e;return(0,n.jsx)(t.Z,{withBorder:!0,children:(0,n.jsx)(l.K,{spacing:10,children:(0,n.jsxs)(i.Z,{children:[(null==a?void 0:a.includes("pdf"))?(0,n.jsx)("img",{style:{width:40,height:40},src:"../../icons/pdf.png"}):(null==a?void 0:a.includes("image"))?(0,n.jsx)("img",{style:{width:40,height:40},src:"../../icons/image.png"}):(null==a?void 0:a.includes("video"))?(0,n.jsx)("img",{style:{width:40,height:40},src:"../../icons/video.png"}):void 0,(0,n.jsx)(l.K,{spacing:5,children:(0,n.jsx)(s.x,{children:o})})]})})})}},162028:function(e,o,r){r(785893),r(758394),r(434421),r(705772)},165929:function(e,o,r){r.d(o,{Z:function(){return t}});var n=r(785893);function t(e){let{children:o}=e;return(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:16,padding:16,maxWidth:1200,margin:"0 auto"},children:o})}},758394:function(e,o,r){r.d(o,{fe:function(){return u},mz:function(){return h},xB:function(){return p}});var n=r(785893),t=r(667294),l=r(973935),i=r(991449),s=r(84888),a=r(281374),c=r(598793),d=r(167889),x=r(834230);let p=e=>{let{title:o,description:r,icon:t,centered:l=!1,hint:d}=e;return(0,n.jsxs)(i.Z,{position:"apart",align:"flex-start",style:{padding:"16px 20px",position:"sticky",top:0,zIndex:10,background:"var(--color-bg-white-0)",borderBottom:"1px solid var(--color-stroke-soft-200)"},children:[(0,n.jsx)(s.x,{style:{flex:1},children:l?(0,n.jsxs)(a.K,{spacing:8,align:"center",children:[t&&(0,n.jsx)(s.x,{style:{fontSize:24},children:t}),(0,n.jsx)(c.x,{fw:600,style:{textAlign:"center"},children:o}),(0,n.jsx)(c.x,{size:"sm",color:"dimmed",style:{textAlign:"center"},children:r})]}):(0,n.jsxs)(i.Z,{spacing:12,style:{textAlign:"left"},children:[t&&(0,n.jsx)(s.x,{style:{fontSize:24},children:t}),(0,n.jsxs)(a.K,{spacing:2,children:[(0,n.jsx)(c.x,{fw:600,children:o}),(0,n.jsx)(c.x,{size:"sm",color:"dimmed",children:r})]}),d&&(0,n.jsx)(s.x,{children:d})]})}),(0,n.jsx)(s.x,{onClick:e=>{e.stopPropagation();let o=new CustomEvent("modal-close");window.dispatchEvent(o)},style:{cursor:"pointer",fontSize:20},children:(0,n.jsx)(x.Z,{})})]})},u=e=>{let{children:o}=e;return(0,n.jsx)(a.K,{style:{padding:"16px 20px",flex:1,overflowY:"visible"},children:o})},h=e=>{let{children:o}=e;return(0,n.jsx)(i.Z,{position:"right",style:{background:"var(--color-bg-white-0)",padding:"16px 20px",borderTop:"1px solid var(--color-stroke-soft-200)",position:"sticky",bottom:0,zIndex:10},children:o})},g=e=>{let{children:o,position:r="center",zIndex:t=100,forceInteractive:l=!1}=e,i="center";return"top"===r&&(i="flex-start"),"bottom"===r&&(i="flex-end"),(0,n.jsx)(s.x,{onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(51, 51, 51, 0.24)",display:"flex",alignItems:i,justifyContent:"center",padding:"24px 16px",zIndex:t,overflowY:"auto",...l?{pointerEvents:"auto"}:{}},children:o})},f=e=>{let{zIndex:o=100,isOpen:r,onClose:i,children:s,position:a="center",width:c=400,borderRadius:x,closeOnEscape:p=!0,portalTarget:u=null}=e;if((0,t.useEffect)(()=>{let e=e=>{"Escape"===e.key&&p&&i()},o=()=>{i()};return window.addEventListener("keydown",e),window.addEventListener("modal-close",o),()=>{window.removeEventListener("keydown",e),window.removeEventListener("modal-close",o)}},[i,p]),!r)return null;let h=(0,n.jsx)(g,{position:a,zIndex:o,forceInteractive:!!u,children:(0,n.jsx)(d.X,{shadow:"md",onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),style:{background:"var(--color-bg-white-0)",minWidth:c,maxWidth:"fit-content",maxHeight:"calc(100vh - 48px)",display:"flex",flexDirection:"column",position:"relative",borderRadius:x||4,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.06), 0px 2px 4px rgba(0, 0, 0, 0.04)",overflow:"auto"},children:s})});return u?(0,l.createPortal)(h,u):h};f.Header=p,f.Body=u,f.Footer=h,o.ZP=f},726780:function(e,o,r){r.d(o,{t:function(){return f}});var n=r(785893),t=r(667294),l=r(811163),i=r(991449),s=r(598793),a=r
1(280102),c=r(491578),d=r(141354),x=r(634381),p=r(93820),u=r(351218),h=r(224709),g=r(895604);let f=e=>{let{total:o,rounded:r=!1}=e,f=(0,l.useRouter)(),{query:b,pathname:m}=f,v=Number(b.page)||1,[y,j]=(0,t.useState)(v);(0,t.useEffect)(()=>{y!==Number(b.page)&&f.push({pathname:m,query:{...b,page:y}},void 0,{shallow:!0})},[y,m,b,f]);let w=(0,d.h)({total:o,page:y,onChange:j}),C=Array.from({length:o},(e,o)=>({value:(o+1).toString(),label:"".concat(o+1," / page")})),k={root:{borderRadius:r?9999:4,padding:6,fontSize:14,height:28,width:28,display:"flex",alignItems:"center",justifyContent:"center",color:g.zyC}},z={root:{...k.root,border:"none",backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"}}};return(0,n.jsxs)(i.Z,{position:"apart",align:"center",w:"100%",children:[(0,n.jsxs)(s.x,{size:"sm",color:"dimmed",children:["Page ",y," of ",o]}),(0,n.jsxs)(i.Z,{spacing:8,children:[(0,n.jsx)(a.z,{size:"xs",variant:"subtle",onClick:w.first,disabled:1===y,styles:z,children:(0,n.jsx)(u.Z,{})}),(0,n.jsx)(a.z,{size:"xs",variant:"subtle",onClick:w.previous,disabled:1===y,styles:z,children:(0,n.jsx)(p.Z,{})}),w.range.map((e,o)=>"dots"===e?(0,n.jsx)(s.x,{size:"sm",mx:4,children:"..."},o):(0,n.jsx)(a.z,{size:"xs",variant:e===y?"filled":"default",onClick:()=>w.setPage(e),styles:{root:{...k.root,backgroundColor:e===y?g.mWN:void 0}},children:e},o)),(0,n.jsx)(a.z,{size:"xs",variant:"subtle",onClick:w.next,disabled:y===o,styles:z,children:(0,n.jsx)(x.Z,{})}),(0,n.jsx)(a.z,{size:"xs",variant:"subtle",onClick:w.last,disabled:y===o,styles:z,children:(0,n.jsx)(h.Z,{})})]}),(0,n.jsx)(c.Ph,{size:"xs",data:C,value:y.toString(),onChange:e=>j(Number(e)),w:100})]})}},199918:function(e,o,r){r(785893)},750062:function(e,o,r){r(785893),r(811163)},319532:function(e,o,r){r.d(o,{s:function(){return s}});var n=r(785893),t=r(811163),l=r(831792),i=r(667294);function s(e){let{controlName:o,...r}=e,s=(0,t.useRouter)(),a=(0,i.useCallback)(e=>{let{pathname:r,query:n}=s,t={...n,[o]:e};s.push({pathname:r,query:t})},[s,o]);return(0,n.jsx)(l.s,{...r,onChange:a})}},18691:function(e,o,r){var n=r(785893),t=r(84888),l=r(598793),i=r(991449),s=r(255956),a=r(240254),c=r(906012),d=r(766939),x=r(301962),p=r(492053),u=r(323822),h=r(479679),g=r(895604),f=r(667294);let b=e=>{let{placeholder:o,placeholderIcon:r,onClick:i,isOpen:s,selectedIcon:a,tag:d,readOnly:x,clearable:p,hasValue:u,onClear:f}=e,b=p&&u&&!x;return(0,n.jsxs)(t.x,{onClick:x?void 0:i,tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||x||(e.preventDefault(),null==i||i())},sx:{width:"100%",maxWidth:"100%",minWidth:0,border:"1px solid ".concat(g.mWN),borderRadius:"4px",padding:"4px 12px",backgroundColor:"var(--color-bg-white-0)",minHeight:36,cursor:x?"default":"pointer",boxSizing:"border-box",display:"grid",gridTemplateColumns:b?"1fr 20px 20px":"1fr 20px",alignItems:"center",columnGap:4,"&:hover":{borderColor:x?void 0:g.o$},"&:focus":{borderColor:x?void 0:g.o$,boxShadow:x?void 0:"0 0 0 2px ".concat(g.mWN)}},children:[(0,n.jsxs)(t.x,{sx:{display:"grid",gridTemplateColumns:"auto 1fr auto",alignItems:"center",columnGap:8,minWidth:0,overflow:"hidden"},children:[(a||r)&&(0,n.jsx)(t.x,{sx:{width:20,display:"flex",alignItems:"center"},children:a||r}),(0,n.jsx)(l.x,{sx:{minWidth:0,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:o,children:o}),d&&(0,n.jsx)(t.x,{sx:{display:"flex",alignItems:"center"},children:d})]}),b&&(0,n.jsx)(t.x,{onClick:e=>{e.stopPropagation(),null==f||f()},sx:{width:20,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:"2px","&:hover":{backgroundColor:"var(--color-bg-weak-50)"}},children:(0,n.jsx)(h.Z,{size:16,color:g.zyC})}),(0,n.jsx)(t.x,{sx:{width:20,display:"flex",alignItems:"center",justifyContent:"flex-end"},children:!x&&(0,n.jsx)(c.Z,{size:20,style:{transform:s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})})]})},m=e=>{let{label:o,value:r,icon:s,isSelected:a,tag:c,onClick:x}=e;return(0,n.jsx)(t.x,{onClick:()=>x&&x(r),sx:{padding:"4px 12px",cursor:"pointer","&:hover":{backgroundColor:"var(--color-bg-weak-50)"}},children:(0,n.jsxs)(i.Z,{position:"apart",spacing:"xs",noWrap:!0,children:[(0,n.jsxs)(i.Z,{spacing:"xs",noWrap:!0,sx:{minWidth:0,flex:1,overflow:"hidden"},children:[s,(0,n.jsx)(l.x,{style:{fontSize:14,fontWeight:400,color:g.sAG,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:o,children:o})]}),!!c&&(0,n.jsx)(t.x,{sx:{flexShrink:0},children:c}),(0,n.jsx)(t.x,{sx:{flexShrink:0},children:a&&(0,n.jsx)(d.Z,{})})]})})},v=e=>{let{label:o,onClick:r}=e;return(0,n.jsx)(t.x,{onClick:r,sx:{padding:"8px 12px",cursor:"pointer",borderTop:"1px solid ".concat(g.mWN),"&:hover":{backgroundColor:"var(--color-bg-weak-50)"}},children:(0,n.jsxs)(i.Z,{spacing:"xs",children:[(0,n.jsx)(p.Z,{size:16,color:g.$aJ}),(0,n.jsx)(l.x,{style:{fontSize:14,fontWeight:400,color:g.$aJ},children:o})]})})},y=e=>{let{value:o,onChange:r,placeholder:l}=e;return(0,n.jsx)(t.x,{sx:{padding:"4px 12px",borderBottom:"1px solid ".concat(g.mWN)},children:(0,n.jsxs)(i.Z,{spacing:"xs",noWrap:!0,children:[(0,n.jsx)(u.Z,{size:16,color:g.zyC}),(0,n.jsx)(s.I,{value:o,onChange:e=>r(e.target.value),placeholder:l||"Search...",variant:"unstyled",styles:{input:{fontSize:14,fontWeight:400,color:g.sAG,border:"none",outline:"none",backgroundColor:"transparent","&::placeholder":{color:g.zyC}}}})]})})},j=e=>{let{data:o,selectedValue:r,onSelect:i,searchable:s,creatable:c,onCreate:d,searchValue:x,onSearchChange:p,nothingFound:u,createLabel:h,maxDropdownHeight:b=200,position:j,width:w,openUpward:C=!1,dropdownRef:k}=e,[z,S]=(0,f.useState)(null),N=(0,f.useRef)(null),Z=k||N;(0,f.useEffect)(()=>
1{if(Z.current&&j){let e=Z.current.getBoundingClientRect(),o=window.innerWidth,r=(j.left||0)+e.width;if(r>o-16){let e=Math.max(16,(j.left||0)-(r-(o-16)));S(e)}else S(null)}},[j,o,x]);let W=(0,f.useMemo)(()=>o&&Array.isArray(o)?x?o.filter(e=>{var o;return null==e?void 0:null===(o=e.label)||void 0===o?void 0:o.toLowerCase().includes(x.toLowerCase())}):o:[],[o,x]),R=c&&x&&!W.some(e=>e.label.toLowerCase()===x.toLowerCase()),B=()=>{d&&x&&d(x)},D=null!==z?z:(null==j?void 0:j.left)||0;return(0,n.jsx)(a.h,{children:(0,n.jsxs)(t.x,{ref:Z,sx:{boxShadow:"0px 16px 32px -12px #0E121B1A",borderRadius:"4px",backgroundColor:"var(--color-bg-white-0)",position:"fixed",left:D,...C?{bottom:"".concat(window.innerHeight-((null==j?void 0:j.top)||0),"px"),marginBottom:"4px"}:{top:(null==j?void 0:j.top)||0,marginTop:"4px"},minWidth:w||"auto",width:"max-content",maxWidth:"calc(100vw - 32px)",zIndex:1e4,maxHeight:"".concat(b,"px"),overflowY:"auto",transition:"left 0.1s ease, transform 0.15s ease, opacity 0.15s ease",transform:"scaleY(1)",transformOrigin:C?"bottom":"top",opacity:1},children:[s&&(0,n.jsx)(y,{value:x||"",onChange:p||(()=>{}),placeholder:"Search..."}),W.length>0?null==W?void 0:W.map(e=>(0,n.jsx)(m,{...e,isSelected:e.value===r,onClick:i},e.value)):(0,n.jsx)(t.x,{sx:{padding:"8px 12px"},children:(0,n.jsx)(l.x,{size:"sm",color:g.zyC,children:u||"Nothing found"})}),R&&(0,n.jsx)(v,{label:h||'Create "'.concat(x,'"'),onClick:B})]})})},w=e=>{let{label:o,optional:r}=e;return(0,n.jsxs)(i.Z,{spacing:2,mb:4,children:[(0,n.jsx)(l.x,{size:"sm",weight:500,children:o}),!r&&o&&(0,n.jsxs)("span",{"data-required":!0,style:{color:g.$aJ},"aria-hidden":"true",children:[" ","*"]}),r&&(0,n.jsx)(l.x,{size:"sm",color:"dimmed",children:"(Optional)"})]})},C=e=>{let{hint:o}=e;return o?(0,n.jsxs)(i.Z,{spacing:4,mt:4,align:"center",children:[(0,n.jsx)(x.Z,{size:14,color:"info"===o.type?g.zyC:g.XGb}),(0,n.jsx)(l.x,{size:12,color:"info"===o.type?g.zyC:g.XGb,children:o.message})]}):null},k=e=>{let{label:o,placeholder:r,placeholderIcon:l,data:i=[],hint:s,optional:a,value:c,onChange:d,searchable:x=!0,creatable:p=!1,sortable:u=!0,onCreate:h,onSearch:g,maxDropdownHeight:m=200,nothingFound:v,createLabel:y,tag:k,readOnly:z=!1,clearable:S=!1}=e,[N,Z]=(0,f.useState)(!1),[W,R]=(0,f.useState)(""),[B,D]=(0,f.useState)(null),[G,L]=(0,f.useState)(0),[E,I]=(0,f.useState)(!1),H=(0,f.useRef)(null),M=(0,f.useRef)(null),A=(0,f.useRef)(null),T=()=>{if(M.current){let e=M.current.getBoundingClientRect(),o=window.innerHeight,r=o-e.bottom,n=e.top,t=r<m&&n>r;I(t),t?D({top:e.top-4,left:e.left}):D({top:e.bottom+4,left:e.left}),L(e.width)}};(0,f.useEffect)(()=>{N&&T()},[N,m]),(0,f.useEffect)(()=>{let e=e=>{H.current&&!H.current.contains(e.target)&&A.current&&!A.current.contains(e.target)&&(Z(!1),R(""),D(null))},o=()=>{N&&T()},r=()=>{N&&T()};return document.addEventListener("mousedown",e),window.addEventListener("scroll",o,!0),window.addEventListener("resize",r),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("scroll",o,!0),window.removeEventListener("resize",r)}},[N]);let $=(0,f.useMemo)(()=>i&&Array.isArray(i)?u?[...i].sort((e,o)=>{let r=e.label||"",n=o.label||"";return r.localeCompare(n)}):i:[],[i,u]),P=null==$?void 0:$.find(e=>e.value===c),O=P?P.label:r,J=null==P?void 0:P.icon,X=e=>{d&&d(e),Z(!1),R(""),D(null)},K=e=>{R(e),g&&g(e)},U=e=>{h&&h(e),Z(!1),R(""),D(null)},V=()=>{d&&d(null),Z(!1),R(""),D(null)};return(0,n.jsxs)(t.x,{ref:H,sx:{position:"relative",width:"100%"},children:[(0,n.jsx)(w,{label:o,optional:a}),(0,n.jsxs)(t.x,{ref:M,sx:{position:"relative",width:"100%"},children:[(0,n.jsx)(b,{placeholder:O,placeholderIcon:l,selectedIcon:J,onClick:()=>Z(e=>!e),isOpen:N,tag:k,readOnly:z,clearable:S,hasValue:!!c,onClear:V}),N&&B&&(0,n.jsx)(j,{data:$,selectedValue:c,onSelect:X,searchable:x,creatable:p,onCreate:U,searchValue:W,onSearchChange:K,nothingFound:v,createLabel:y,maxDropdownHeight:m,position:B,width:G,openUpward:E,dropdownRef:A})]}),(0,n.jsx)(t.x,{sx:{opacity:N?0:1,transition:"opacity 150ms ease",minHeight:"24px"},children:(0,n.jsx)(C,{hint:s})})]})};o.Z=k},723836:function(e,o,r){r.d(o,{Z:function(){return t}});var n=r(785893);function t(e){let{height:o=1,color:r="transparent"}=e;return(0,n.jsx)("div",{style:{width:"100%",height:"".concat(o,"px"),background:r}})}},551121:function(e,o,r){r(785893)},138233:function(e,o,r){r.d(o,{m:function(){return a}});var n=r(785893),t=r(667294),l=r(811163),i=r(895604);let s=(0,t.createContext)(void 0);function a(e){let{value:o,defaultValue:r,onChange:l,children:i}=e,[a,c]=(0,t.useState)(r||""),d=void 0!==o,x=e=>{d||c(e),null==l||l(e)};return(0,n.jsx)(s.Provider,{value:{value:d?o:a,setValue:x},children:(0,n.jsx)("div",{style:{width:"100%"},children:i})})}a.List=function(e){let{children:o,style:r}=e;return(0,n.jsx)("div",{style:{borderBottom:"1px solid ".concat(i.mWN),position:"relative"},children:(0,n.jsx)("div",{style:{display:"inline-flex",gap:"8px",paddingLeft:"20px",paddingRight:"20px",...r},children:o})})},a.Tab=function(e){let{value:o,children:r,style:a}=e,c=(0,t.useContext)(s);if(!c)throw Error("Tabs.Tab must be used within a Tabs component");let{value:d,setValue:x}=c,p=d===o,u=(0,l.useRouter)(),h=()=>{x(o);let{pathname:e,query:r}=u,n={...r,tab:o};u.push({pathname:e,query:n},void 0,{shallow:!0})};return(0,n.jsx)("button",{onClick:h,style:{padding:"10px 16px",fontSize:"14px",fontWeight:500,color:p?i.sAG:i.zyC,background:"transparent",border:"none",borderBottom:p?"2px solid ".concat(i.cRH):"2px solid transparent",curs
1or:"pointer",transition:"color 150ms ease, border-color 150ms ease",whiteSpace:"nowrap",...a},children:r})},a.Panel=function(e){let{value:o,children:r}=e,l=(0,t.useContext)(s);if(!l)throw Error("Tabs.Panel must be used within a Tabs component");let{value:i}=l;return i!==o?null:(0,n.jsx)("div",{style:{paddingTop:"16px"},children:r})}},611964:function(e,o,r){var n=r(785893);r(667294);var t=r(84888),l=r(991449),i=r(438424),s=r(895604);o.Z=function(e){let{leftIcon:o,rightIcon:r,text:a,onDelete:c,type:d="default"}=e;return(0,n.jsx)(t.x,{style:(()=>{let e={display:"inline-flex",alignItems:"center",height:"24px",padding:"0 8px",borderRadius:"4px",fontSize:"14px",lineHeight:"20px",gap:"4px",cursor:"disabled"===d?"not-allowed":"default"};switch(d){case"filled":return{...e,backgroundColor:{information_lighter:s.xOw},border:"none",color:"#000000"};case"outline":return{...e,backgroundColor:"transparent",border:"1px solid ".concat(s.mWN),color:s.sAG};case"disabled":return{...e,backgroundColor:s.t0e,border:"1px solid ".concat(s.mWN),color:s.nhy,opacity:.5};default:return{...e,backgroundColor:s.t0e,border:"1px solid ".concat(s.mWN),color:s.sAG}}})(),children:(0,n.jsxs)(l.Z,{spacing:4,noWrap:!0,children:[o&&(0,n.jsx)("span",{style:{display:"flex",alignItems:"center"},children:o}),(0,n.jsx)("span",{children:a}),r&&(0,n.jsx)("span",{style:{display:"flex",alignItems:"center"},children:r}),c&&!r&&(0,n.jsx)(i.Z,{size:16,style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),c()}})]})})}},604573:function(e,o,r){r.d(o,{Z:function(){return a}});var n=r(785893),t=r(80061),l=r(598793),i=r(895604),s=r(301962);function a(e){let{value:o,onChange:r,onBlur:a,onEnterPress:c,label:d,placeholder:x,withAsterisk:p=!1,hint:u,disabled:h=!1,readOnly:g=!1,reserveErrorSpace:f=!0,...b}=e,m=(null==u?void 0:u.type)==="error",v=h||g,y=e=>{"Enter"===e.key&&(c?(e.preventDefault(),null==a||a(),c()):(e.currentTarget.blur(),null==a||a()))};return(0,n.jsxs)("div",{style:{position:"relative",width:"100%"},children:[d&&(0,n.jsx)("div",{style:{marginBottom:"4px"},children:(0,n.jsxs)("label",{style:{display:"block",fontSize:"14px",fontWeight:500,color:v?i.zyC:"var(--color-text-strong-950)"},children:[d,!p&&(0,n.jsx)("span",{style:{color:i.zyC,marginLeft:"2px"},children:"(Optional)"}),p&&(0,n.jsx)("span",{style:{color:i.$aJ,marginLeft:"2px"},children:"*"})]})}),(0,n.jsx)(t.o,{value:o,onChange:e=>r(e.currentTarget.value),onBlur:a,onKeyDown:y,placeholder:x,disabled:h,readOnly:g,error:m,...b,styles:{input:{border:"1px solid ".concat(m?i.XGb:i.mWN),borderRadius:"4px",boxShadow:v?"none":"0px 1px 2px 0px #0A0D1408",padding:"12px",backgroundColor:h?i.t0e:"var(--color-bg-white-0)",transition:"all 0.2s ease",fontSize:"14px",color:v?i.zyC:"inherit",cursor:h?"not-allowed":g?"default":"text","&:hover":h?{}:{backgroundColor:g?"var(--color-bg-white-0)":i.t0e,borderColor:m?i.XGb:"transparent"},"&:focus":h?{}:{borderColor:m?i.XGb:i.o$,backgroundColor:"var(--color-bg-white-0)",boxShadow:"0 0 0 2px ".concat(i.Ups)}}}}),(u||f)&&(0,n.jsx)("div",{style:{minHeight:"20px",marginTop:"7px",display:"flex",alignItems:"center",gap:"4px"},children:u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Z,{size:14,color:m?i.XGb:i.zyC}),(0,n.jsx)(l.x,{size:"xs",style:{fontSize:"12px",color:m?i.XGb:i.zyC},children:u.message})]})})]})}},202871:function(e,o,r){r.d(o,{Z:function(){return a}});var n=r(785893),t=r(281182),l=r(598793),i=r(301962),s=r(895604);function a(e){let{value:o,onChange:r,label:a,placeholder:c,withAsterisk:d=!1,hint:x,limit:p,disabled:u=!1,readOnly:h=!1,onKeyDown:g}=e,f=null==o?void 0:o.length,b=(null==x?void 0:x.type)==="error",m=u||h;return(0,n.jsxs)("div",{style:{position:"relative",width:"100%"},children:[a&&(0,n.jsxs)("label",{style:{display:"block",marginBottom:"4px",fontSize:"14px",fontWeight:500,color:m?s.zyC:"var(--color-text-strong-950)"},children:[a,!d&&(0,n.jsx)("span",{style:{color:s.zyC,marginLeft:"2px"},children:"(Optional)"}),d&&(0,n.jsx)("span",{style:{color:s.$aJ,marginLeft:"2px"},children:"*"})]}),(0,n.jsx)(t.g,{value:o,onChange:e=>r(e.currentTarget.value),placeholder:c,disabled:u,readOnly:h,error:b,onKeyDown:g,autosize:!0,minRows:4,styles:{input:{border:"1px solid ".concat(b?s.XGb:s.mWN),borderRadius:"4px",boxShadow:m?"none":"0px 1px 2px 0px #0A0D1408",padding:"12px",transition:"all 0.2s ease",backgroundColor:u?s.t0e:"white",color:m?s.zyC:"inherit",fontSize:"14px",cursor:u?"not-allowed":h?"default":"text","&:hover":u?{}:{backgroundColor:h?"var(--color-bg-white-0)":s.t0e,borderColor:b?s.XGb:"transparent"},"&:focus":u?{}:{borderColor:b?s.XGb:s.o$,boxShadow:"0px 0px 0px 2px ".concat(s.Ups),backgroundColor:"var(--color-bg-white-0)"}}}}),p&&(0,n.jsxs)(l.x,{size:"xs",style:{position:"absolute",bottom:x?"28px":"8px",right:"12px",fontSize:"12px",color:s.zyC},children:[f,"/",p]}),(0,n.jsx)("div",{style:{minHeight:"20px",marginTop:"4px",display:"flex",alignItems:"center",gap:"4px"},children:x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Z,{size:14,color:b?s.XGb:s.zyC}),(0,n.jsx)(l.x,{size:"xs",style:{fontSize:"12px",color:b?s.XGb:s.zyC},children:x.message})]})})]})}},805330:function(e,o,r){var n=r(785893);let t=e=>{let{label:o,facing:r="left"}=e;return(0,n.jsxs)("div",{className:"flex flex-col items-center self-stretch px-2",children:[(0,n.jsx)("div",{className:"min-h-[20px] w-px flex-1 bg-stroke-soft-200"}),(0,n.jsx)("span",{className:"whitespace-nowrap py-4 text-xs font-medium uppercase tracking-wider text-text-soft-400",style:{writingMode:"left"===r?"sideways-lr":"sidew
1ays-rl"},children:o}),(0,n.jsx)("div",{className:"min-h-[20px] w-px flex-1 bg-stroke-soft-200"})]})};o.Z=t},128645:function(e,o,r){r(785893);var n=r(954131),t=r(348510),l=r(496279),i=r(723621),s=r(949924);r(458302),r(667294),n.Z.configure({paragraph:{HTMLAttributes:{style:"margin: 0;"}}}),i.Z.configure({mergeNestedSpanStyles:!0}),t.Z,l.Z.configure({types:["heading","paragraph"]}),s.ZP.configure({openOnClick:!0})},488122:function(e,o,r){r.d(o,{$_:function(){return t},Ct:function(){return h.Z},ER:function(){return n.ER},KM:function(){return n.KM},Mt:function(){return p.M},O3:function(){return n.O3},OE:function(){return h.O},Ph:function(){return a.Z},UQ:function(){return u.Z},Vp:function(){return f.Z},Wr:function(){return S.W},Z0:function(){return w.Z},bu:function(){return c.Z},dy:function(){return x.Z},f:function(){return d.f},fe:function(){return g.fe},fh:function(){return j.Z},gx:function(){return s.Z},iz:function(){return l.i},kq:function(){return n.kq},lm:function(){return y.lm},mQ:function(){return m.m},mz:function(){return g.mz},oG:function(){return k.o},oi:function(){return i.Z},or:function(){return C.Z},pT:function(){return z.Z},sY:function(){return b.s},tl:function(){return v.t},u_:function(){return g.ZP},xB:function(){return g.xB}});var n=r(434421),t=r(895604),l=r(458302),i=r(604573),s=r(202871),a=r(18691),c=r(24835),d=r(705772),x=r(437799);r(162028),r(684767);var p=r(223529);r(199918),r(551121);var u=r(543084),h=r(701365);r(603691);var g=r(758394),f=r(611964),b=r(319532),m=r(138233),v=r(726780);r(454829),r(128645);var y=r(792567),j=r(353925),w=r(723836);r(750062);var C=r(165929),k=r(798014);r(576282);var z=r(805330),S=r(11402)}}]);

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.