sodtrack-web-ui 0.109.17 → 0.109.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2KDSQXDD.js +1 -0
- package/dist/{chunk-RJSGMW3C.js → chunk-2YYGM3SN.js} +1 -1
- package/dist/{chunk-DQPEDR44.js → chunk-3EQKZA4E.js} +1 -1
- package/dist/{chunk-HK55XL3Z.js → chunk-4UTR6XAH.js} +1 -1
- package/dist/{chunk-RDLVOTB7.js → chunk-5AHJZHZG.js} +1 -1
- package/dist/chunk-5COF6T5O.js +2 -0
- package/dist/chunk-5CWMGBAA.js +1 -0
- package/dist/{chunk-U7K2I65N.js → chunk-5P3NEWSI.js} +1 -1
- package/dist/{chunk-7OYIF4US.js → chunk-5S7CEVEK.js} +1 -1
- package/dist/{chunk-YCS6WI6G.js → chunk-5TQ2OJAH.js} +1 -1
- package/dist/{chunk-MNYTF4ZX.js → chunk-6MK7NLF5.js} +1 -1
- package/dist/{chunk-HR2NBRU5.js → chunk-6YHL2TME.js} +1 -1
- package/dist/{chunk-H4JYD6DT.js → chunk-76J4QR6W.js} +1 -1
- package/dist/{chunk-5EDIO5HD.js → chunk-7ERWQ3FH.js} +1 -1
- package/dist/{chunk-XAM7ON7S.js → chunk-AEKMGJ2L.js} +1 -1
- package/dist/{chunk-RF6XEDU2.js → chunk-CA5XNVS5.js} +1 -1
- package/dist/{chunk-UBBIUUO7.js → chunk-CTR3GKCC.js} +1 -1
- package/dist/chunk-FKX6C4AB.js +1 -0
- package/dist/chunk-FM2XHJR6.js +1 -0
- package/dist/{chunk-LVSLLN77.js → chunk-FZVOKCYO.js} +1 -1
- package/dist/{chunk-LHQIFRWQ.js → chunk-HPAR3YH6.js} +1 -1
- package/dist/{chunk-DGTGAQR3.js → chunk-HPIKGJQV.js} +1 -1
- package/dist/{chunk-ZXOIJ2EB.js → chunk-HVKEP4T2.js} +1 -1
- package/dist/{chunk-YU52F44A.js → chunk-JILFS566.js} +1 -1
- package/dist/chunk-JV6BTCAQ.js +1 -0
- package/dist/{chunk-NEJOR7NG.js → chunk-LOMBLDZW.js} +1 -1
- package/dist/{chunk-HW7CXOBQ.js → chunk-MZAOBPTZ.js} +1 -1
- package/dist/{chunk-T7NIWIYR.js → chunk-OQCEARDQ.js} +1 -1
- package/dist/{chunk-K2GYYQ6B.js → chunk-OY5A3XIW.js} +1 -1
- package/dist/chunk-P5FV5ZGY.js +1 -0
- package/dist/chunk-Q4CWL65C.js +1 -0
- package/dist/chunk-QFDJQTZN.js +1 -0
- package/dist/{chunk-GLOAD3Q6.js → chunk-QJOYOR4B.js} +1 -1
- package/dist/{chunk-AFMKNISN.js → chunk-QX2NMWPS.js} +1 -1
- package/dist/chunk-UB7KGFVR.js +1 -0
- package/dist/{chunk-A24QJTID.js → chunk-UBSXAQMD.js} +1 -1
- package/dist/chunk-UPVM72WX.js +1 -0
- package/dist/{chunk-BBQLDRFN.js → chunk-VFJJSNTF.js} +1 -1
- package/dist/chunk-X5YTKIUR.js +1 -0
- package/dist/chunk-XMMVCTDS.js +1 -0
- package/dist/chunk-XNZH53UN.js +1 -0
- package/dist/{chunk-2OUDM2ZI.js → chunk-XSXVFXUV.js} +1 -1
- package/dist/{chunk-DUMZRH4V.js → chunk-Y62GJUE5.js} +1 -1
- package/dist/{chunk-ZK7SPMRF.js → chunk-YN6VYUCM.js} +1 -1
- package/dist/{chunk-JWBZEU42.js → chunk-ZDMBCRIA.js} +1 -1
- package/dist/{chunk-MYEOZPEM.js → chunk-ZE64BJO4.js} +1 -1
- package/dist/{chunk-GGWQ777J.js → chunk-ZMMNEYEQ.js} +1 -1
- package/dist/{chunk-ZJLLLPVT.js → chunk-ZX6P36LZ.js} +1 -1
- package/dist/components/accordion-form.js +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-message.js +1 -1
- package/dist/components/autocomplete-multiple.js +1 -1
- package/dist/components/autocomplete-skeleton.js +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/button-active.js +1 -1
- package/dist/components/button-menu.js +1 -1
- package/dist/components/calendar.d.ts +1 -3
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar_old.js +1 -1
- package/dist/components/card-basic.js +1 -1
- package/dist/components/card-expandable.js +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip-input.js +1 -1
- package/dist/components/choice-chips.js +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-picker_old.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer-bar.js +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropzone.js +1 -1
- package/dist/components/error-screen.js +1 -1
- package/dist/components/icons.d.ts +2 -1
- package/dist/components/icons.js +1 -1
- package/dist/components/index.d.ts +34 -3
- package/dist/components/index.js +1 -1
- package/dist/components/list-item-arrow.js +1 -1
- package/dist/components/list-item-button.js +1 -1
- package/dist/components/list-item-checkbox-left.js +1 -1
- package/dist/components/list-item-checkbox.js +1 -1
- package/dist/components/list-item_old.js +1 -1
- package/dist/components/locale-provider.d.ts +13 -0
- package/dist/components/locale-provider.js +1 -0
- package/dist/components/number-field-skeleton.d.ts +8 -0
- package/dist/components/number-field-skeleton.js +1 -0
- package/dist/components/number-field.d.ts +38 -0
- package/dist/components/number-field.js +1 -0
- package/dist/components/radio.js +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/search-bar.js +1 -1
- package/dist/components/select-skeleton.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/select_old.js +1 -1
- package/dist/components/signature-pad.js +1 -1
- package/dist/components/snackbar.js +1 -1
- package/dist/components/step-item.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/text-field.js +1 -1
- package/dist/components/text-field_old.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/time-picker_old.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/tracker-item.js +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-4RGH7TGS.js +0 -1
- package/dist/chunk-4U5GQO4B.js +0 -1
- package/dist/chunk-5IR76AQF.js +0 -2
- package/dist/chunk-62FLNDI4.js +0 -1
- package/dist/chunk-H64GDT5T.js +0 -1
- package/dist/chunk-OAEB36FA.js +0 -1
- package/dist/chunk-OV5UWITZ.js +0 -1
- package/dist/chunk-PK5AAM6O.js +0 -1
- package/dist/chunk-Q2A56VLQ.js +0 -1
- package/dist/chunk-RCKQP3EH.js +0 -1
- package/dist/chunk-XTEIU7UY.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-ZMMNEYEQ.js';import {c,d}from'./chunk-QJOYOR4B.js';import {a as a$3}from'./chunk-VIMWKUML.js';import {a}from'./chunk-6MK7NLF5.js';import {v,i,h}from'./chunk-Q4CWL65C.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {DatePicker}from'@ark-ui/react/date-picker';import {Portal}from'@ark-ui/react/portal';import {forwardRef}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var H=forwardRef(({className:A,disabled:c$1,error:k,helperText:C,label:w,readOnly:n,required:h,tooltip:v$1,...N},V)=>{let u=c({error:k,disabled:c$1,readOnly:n});return jsxs(DatePicker.Root,{ref:V,...N,disabled:c$1,readOnly:n,positioning:{placement:"bottom-end"},"data-error":k||void 0,className:u.root({className:A}),children:[jsx(a,{as:DatePicker.Label,label:w,required:h,tooltip:v$1}),jsxs(DatePicker.Control,{className:a$1(u.control(),"items-center justify-between gap-2 overflow-hidden"),children:[jsx(DatePicker.Input,{className:a$1(u.input(),"peer cursor-inherit py-2.5 pl-2"),tabIndex:n?-1:void 0}),!n&&!c$1&&jsx(a$2,{as:DatePicker.ClearTrigger}),k&&jsx(d,{}),jsx(DatePicker.Trigger,{className:a$1("ring-input-ring rounded-r-input flex h-(--height-input) w-(--height-input) shrink-0 cursor-pointer items-center justify-center bg-neutral-100 text-neutral-700 ring transition-shadow focus:outline-none","peer-focus:ring-input-ring-focus focus:ring-input-ring-focus peer-focus:ring-2 focus:ring-2","group-data-[error=true]:ring-input-ring-error group-data-[error=true]:ring-2","group-data-readonly:ring-input-ring-disabled peer-read-only:text-neutral-400","disabled:ring-input-ring-disabled group-data-disabled:cursor-not-allowed"),tabIndex:n?-1:void 0,children:jsx(v,{className:"size-4.5"})})]}),jsx(a$3,{children:C}),jsx(Portal,{children:jsx(DatePicker.Positioner,{children:jsxs(DatePicker.Content,{className:"elevation-9 z-layer rounded-xl bg-neutral-50 p-3",children:[jsx(DatePicker.View,{view:"day",children:jsx(DatePicker.Context,{children:l=>jsxs(Fragment,{children:[jsx(g,{}),jsxs(DatePicker.Table,{children:[jsx(DatePicker.TableHead,{children:jsx(DatePicker.TableRow,{children:l.weekDays.map((i,o)=>jsx(DatePicker.TableHeader,{className:"font-inter h-10 text-sm font-semibold text-neutral-900",children:i.narrow},o))})}),jsx(DatePicker.TableBody,{children:l.weeks.map((i,o)=>jsx(DatePicker.TableRow,{children:i.map((r,s)=>jsx(DatePicker.TableCell,{value:r,children:jsx(DatePicker.TableCellTrigger,{className:a$1("font-inter mx-0.75 my-1 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full text-center text-sm leading-[142.86%] font-normal text-neutral-900","[&:not([data-today])]:[&:not([data-disabled])]:[&:not([data-selected])]:hover:bg-primary-50","data-outside-range:cursor-not-allowed data-outside-range:text-neutral-400","data-disabled:cursor-not-allowed data-disabled:text-neutral-400","data-selected:bg-primary-500 data-selected:text-neutral-50","data-selected:hover:bg-primary-300 data-selected:hover:text-neutral-900","data-today:ring-primary-500 [&:not([data-selected])]:[&:not([data-disabled])]:data-today:text-primary-500 [&:not([data-selected])]:data-today:ring","[&:not([data-selected])]:[&:not([data-disabled])]:data-today:hover:ring-primary-600 [&:not([data-selected])]:[&:not([data-disabled])]:data-today:hover:text-primary-600","data-disabled:data-today:text-neutral-400 data-disabled:data-today:ring-neutral-400"),children:r.day})},s))},o))})]})]})})}),jsx(DatePicker.View,{view:"month",children:jsx(DatePicker.Context,{children:l=>jsxs(Fragment,{children:[jsx(g,{}),jsx(DatePicker.Table,{children:jsx(DatePicker.TableBody,{children:l.getMonthsGrid({columns:4,format:"short"}).map((i,o)=>jsx(DatePicker.TableRow,{children:i.map((r,s)=>jsx(DatePicker.TableCell,{value:r.value,children:jsx(DatePicker.TableCellTrigger,{className:"font-inter hover:bg-primary-100 data-selected:bg-primary-200 data-selected:text-primary-600 flex h-12 w-16.5 cursor-pointer items-center justify-center rounded-lg text-center text-sm font-normal transition-colors",children:r.label})},s))},o))})})]})})}),jsx(DatePicker.View,{view:"year",children:jsx(DatePicker.Context,{children:l=>jsxs(Fragment,{children:[jsx(g,{}),jsx(DatePicker.Table,{children:jsx(DatePicker.TableBody,{children:l.getYearsGrid({columns:4}).map((i,o)=>jsx(DatePicker.TableRow,{children:i.map((r,s)=>jsx(DatePicker.TableCell,{value:r.value,children:jsx(DatePicker.TableCellTrigger,{className:"font-inter hover:bg-primary-100 data-selected:bg-primary-200 data-selected:text-primary-600 flex h-12 w-16.5 cursor-pointer items-center justify-center rounded-lg text-center text-sm font-normal transition-colors",children:r.label})},s))},o))})})]})})})]})})})]})});H.displayName="DatePicker";var g=()=>jsxs(DatePicker.ViewControl,{className:"my-1 flex items-center justify-between",children:[jsx(DatePicker.PrevTrigger,{className:"cursor-pointer p-1.75",children:jsx(i,{className:"size-4.5"})}),jsx(DatePicker.ViewTrigger,{children:jsx(DatePicker.RangeText,{className:"font-inter cursor-pointer rounded-sm px-2 text-base leading-[150%] font-semibold text-neutral-900 transition-colors"})}),jsx(DatePicker.NextTrigger,{className:"cursor-pointer p-1.75",children:jsx(h,{className:"size-4.5"})})]});export{H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-
|
|
1
|
+
import {a as a$3}from'./chunk-76J4QR6W.js';import {a as a$2}from'./chunk-ZMMNEYEQ.js';import {b,c,d,a as a$5}from'./chunk-QJOYOR4B.js';import {a as a$4}from'./chunk-VIMWKUML.js';import {a}from'./chunk-6MK7NLF5.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {Portal}from'@ark-ui/react/portal';import {createListCollection,Select}from'@ark-ui/react/select';import {forwardRef,useMemo,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var de=a$5,Q=b;function X(d$1,z){let{className:D,label:F,required:E,tooltip:H,error:i,isItemDisabled:m,value:o,helperText:L,placeholder:j,onSelect:S,onValueChange:f,defaultValue:g,options:r,clearable:q=true,disabled:b,readOnly:s,size:B=Q,...M}=d$1,c$1=Object.getOwnPropertyNames(d$1),h=typeof o=="object"&&o!==null?o.value:o,x=useMemo(()=>typeof o!="object"||o===null||r.some(l=>l.value===o.value)?r:[o,...r],[r,o]),T=useMemo(()=>createListCollection({items:x,isItemDisabled:m,itemToValue:l=>String(l.value)}),[x,m]),K=useCallback(l=>{let y=l.items.at(0)??null;S?.(y),f?.(y?.value??null);},[S,f]);if(c$1.includes("defaultValue")&&c$1.includes("value"))throw new Error("Cannot set both defaultValue and value props on Select. Use one or the other.");let v=c({error:i,disabled:b,readOnly:s,size:B}),n=!s&&q,a$5=!!i;return jsxs(Select.Root,{ref:z,"data-error":i,disabled:b,readOnly:s,collection:T,className:v.root({className:D}),positioning:{placement:"bottom-end"},onValueChange:K,value:c$1.includes("value")?h!=null?[String(h)]:[]:void 0,defaultValue:g!=null?[String(g)]:void 0,...M,children:[jsx(a,{as:Select.Label,label:F,required:E,tooltip:H}),jsxs(Select.Control,{className:a$1(v.control(),"relative overflow-hidden"),children:[jsx(Select.Trigger,{className:a$1("text-input-text data-placeholder-shown:text-input-placeholder data-disabled:text-input-text-disabled flex h-full w-full cursor-pointer items-center pl-3 disabled:cursor-not-allowed",n&&a$5&&"pr-24",n!==a$5&&"pr-16",!n&&!a$5&&"pr-10"),children:jsx(Select.ValueText,{className:"font-inter min-w-0 flex-1 truncate text-left text-sm",placeholder:j})}),jsxs("div",{className:"pointer-events-none absolute top-1/2 right-3 flex -translate-y-1/2 items-center gap-2",children:[a$5&&jsx(d,{}),n&&jsx(a$2,{as:Select.ClearTrigger,className:"pointer-events-auto",onClick:l=>l.stopPropagation()}),jsx(Select.Indicator,{className:"group/chevron-host flex shrink-0 items-center justify-center",children:jsx(a$3,{})})]})]}),jsx(a$4,{children:L}),jsx(Portal,{children:jsx(Select.Positioner,{children:jsx(Select.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 w-(--reference-width) overflow-auto rounded-lg outline-none",children:T.items.map(l=>jsx(Select.Item,{item:l,className:"font-inter data-highlighted:bg-primary-100 cursor-pointer py-3 pr-2.5 pl-3 text-sm font-medium data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Select.ItemText,{children:l.label})},l.value))})})}),jsx(Select.HiddenSelect,{})]})}var R=forwardRef(X);R.displayName="Select";var me=R;export{de as a,Q as b,me as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e as e$1}from'./chunk-PI7DECIN.js';import {b,e,f,c as c$1,d}from'./chunk-
|
|
1
|
+
import {e as e$1}from'./chunk-PI7DECIN.js';import {b,e,f,c as c$1,d}from'./chunk-Q4CWL65C.js';import {c}from'./chunk-C7TLKKPT.js';import {a}from'./chunk-OBZIYJO7.js';import {createToaster,Toaster,Toast}from'@ark-ui/react/toast';import {jsx,jsxs}from'react/jsx-runtime';var w=["success","warning","error","info","loading"],y=createToaster({placement:"top",overlap:false,gap:8,duration:5e3}),o="hidden size-6 animate-in shrink-0 fade-in-0 zoom-in duration-300",N=g=>jsx(Toaster,{toaster:y,...g,children:r=>jsxs(Toast.Root,{className:a("group z-(--z-index) flex h-auto max-w-175 min-w-70 translate-x-(--x) translate-y-(--y) items-center rounded-lg opacity-(--opacity) transition-all will-change-transform","data-[state=close]:animate-slide-up data-[state=open]:animate-slide-down p-3 pr-2","data-[type=success]:bg-success-300","data-[type=info]:bg-info-300","data-[type=warning]:bg-warning-300","data-[type=error]:bg-danger-300","data-[type=loading]:bg-primary-500"),children:[jsx(c,{size:"md",tone:"white",className:"hidden group-data-[type=loading]:block"}),jsx(b,{className:a(o,"text-success-800 group-data-[type=success]:block")}),jsx(e,{className:a(o,"text-info-800 group-data-[type=info]:block")}),jsx(f,{className:a(o,"text-warning-800 group-data-[type=warning]:block")}),jsx(c$1,{className:a(o,"text-danger-800 group-data-[type=error]:block")}),jsxs("div",{className:"mr-4.5 ml-3",children:[jsx(Toast.Title,{className:"font-inter truncate text-sm leading-[143%] font-medium text-neutral-900 group-data-[type=loading]:text-neutral-50",children:r.title}),jsx(Toast.Description,{className:"font-inter mt-1 line-clamp-3 text-xs leading-[133%] text-neutral-900 group-data-[type=loading]:hidden empty:hidden",children:r.description})]}),jsx(Toast.CloseTrigger,{asChild:true,children:jsx(e$1,{Icon:d,size:"md",variant:"ghost",tone:"neutral",className:"ml-auto group-data-[type=loading]:text-neutral-50"})})]},r.id)});export{w as a,y as b,N as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-CA5XNVS5.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import k,{useId,useRef,useState,useEffect}from'react';import*as h from'@radix-ui/react-portal';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var b=56,s=6,D=({options:n,noResults:m,selectedOption:x,onSelect:y,onChange:O,onClick:E,className:S,..._})=>{let P=useId(),l=useRef(null),t=useRef(null),[R,L]=useState("bottom"),[o,C]=useState(),[p,f]=useState(x??null),N=e=>{l.current.style.display="none",t.current.value=e.label,f(e),y?.(e);};return useEffect(()=>{if(!t.current)return;let e=()=>{if(!t.current)return;let r=b*(n.length<s?n.length:s)+16,i=t.current.getBoundingClientRect();C(i);let I=window.innerHeight-i.bottom>r,T=i.top>r;L(I?"bottom":T?"top":"bottom");};return e(),t.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{t.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[t.current]),useEffect(()=>{function e(r){l.current&&!l.current.contains(r.target)&&(l.current.style.display="none");}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e);}},[l.current]),jsxs(Fragment,{children:[jsx(a,{className:a$1("w-full cursor-pointer!",S),readOnly:true,ref:t,autoComplete:"off",list:"",selectMode:true,value:p?.label,showClearButton:false,onClick:e=>{l.current.style.display="flex",E?.(e);},onChange:e=>{f(null),O?.(e);},..._}),jsx(h.Root,{asChild:true,children:jsxs("ul",{ref:l,className:"elevation-8 pointer-events-auto absolute z-10000 my-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:o?{width:`${o.width}px`,left:o.left,top:R==="bottom"?`${o.height+o.top+window.scrollY}px`:window.scrollY+o.top-(n.length<s?n.length:s)*b-16}:void 0,children:[n.length===0&&jsxs("div",{className:"elevation-8 flex max-h-88 flex-1 flex-col items-center justify-center rounded-lg bg-neutral-50 px-8 py-6",children:[k.cloneElement(m.icon,{className:"mb-2 h-8 w-8 text-neutral-300"}),jsx("p",{className:"text-center text-sm leading-[120%] text-neutral-500",children:m.message})]}),n.map(e=>jsx("li",{onClick:()=>{e.disabled||N(e);},className:a$1("w-full shrink-0 py-4 pr-6 pl-4 text-left",p?.value===e.value&&"bg-primary-200",e.disabled?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 cursor-pointer"),children:e.label},`select-option-${P}-${e.key??e.value}`))]})})]})};export{D as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-6MK7NLF5.js';import {d}from'./chunk-Q4CWL65C.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {SignaturePad}from'@ark-ui/react/signature-pad';import {forwardRef,useState,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';var z=forwardRef((N,D)=>{let{rootClassName:v,className:V,label:m,required:k,tooltip:A,helperText:f,error:u,hasValue:b,onChange:h,readOnly:n,disabled:e,...E}=N,[F,T]=useState(false),d$1=b!==void 0,H=d$1?b:F,P=useCallback(async a=>{let[l,g]=a.split(","),w=l.match(/:(.*?);/),q=w?w[1]:"image/png",c=atob(g),S=new Uint8Array(c.length);for(let i=0;i<c.length;i++)S[i]=c.charCodeAt(i);return new File([S],"signature.png",{type:q})},[]),o=useCallback(a=>{d$1||T(!!a),h?.(a);},[d$1,h]),R=useCallback(async a=>{if(n||e)return;let l=await a.getDataUrl("image/png");if(!l){o(null);return}let g=await P(l);o(g);},[o,P,n,e]),U=H&&!n&&!e;return jsxs(SignaturePad.Root,{ref:D,"data-error":u,className:a$1("group flex flex-col",v),onDrawEnd:R,readOnly:n,disabled:e,...E,children:[m&&jsx(a,{as:SignaturePad.Label,label:m,required:k,tooltip:A}),jsxs(SignaturePad.Control,{className:a$1("group/control","relative h-40 w-full overflow-hidden","rounded-lg bg-white p-4","border border-dashed border-neutral-300",u&&"border-error-500",n&&"pointer-events-none border-neutral-300 bg-neutral-100",e&&"pointer-events-none opacity-60",V),children:[jsx(SignaturePad.Segment,{className:"h-full w-full"}),jsx(SignaturePad.Guide,{className:"absolute inset-0 opacity-20"}),U&&jsx(SignaturePad.ClearTrigger,{className:"absolute top-2 right-2 z-20 cursor-pointer rounded-lg bg-neutral-100 p-1 ring-1 ring-neutral-500",onClick:()=>o(null),children:jsx(d,{className:"size-4 text-neutral-700"})})]}),f&&jsx("p",{className:a$1("font-inter text-2xs mt-1 leading-[133.33%] font-normal",u?"text-error-500":"text-neutral-700",e&&"text-neutral-400"),children:f})]})});z.displayName="SignaturePad";export{z as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-5P3NEWSI.js';import {e as e$2}from'./chunk-PI7DECIN.js';import {a}from'./chunk-6MK7NLF5.js';import {e,x as x$1}from'./chunk-Q4CWL65C.js';import {e as e$1}from'./chunk-6V4ZY7YY.js';import {c}from'./chunk-C7TLKKPT.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {FileUpload}from'@ark-ui/react';import {getDefaultOptions}from'date-fns';import {useState,useCallback}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var N='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.8 9H9.2a.8.8 0 0 0-.8.8v5.6a.8.8 0 0 0 .8.8h5.6a.8.8 0 0 0 .8-.8V9.8a.8.8 0 0 0-.8-.8Z"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m15.6 13.8-2-2-4.4 4.4M10.6 11.8a.6.6 0 1 0 0-1.2.6.6 0 0 0 0 1.2Z"/></svg>';var R='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><g stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" clip-path="url(%23b)"><path d="M12 16.6a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"/><path d="m11.2 11 2.4 1.6-2.4 1.6V11Z"/></g><defs><clipPath id="b"><path fill="%23fff" d="M7.2 7.8h9.6v9.6H7.2z"/></clipPath></defs></svg>';var P='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M9.6 16.2a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4Z"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M10.8 15V9.8l4.8-.8v5.2"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.4 15.4a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4Z"/></svg>';var S='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%2301A797" d="M15.045 13.178c-.599 0-1.348.105-1.594.141-1.014-1.06-1.303-1.662-1.368-1.822a7.115 7.115 0 0 0 .438-2.189c.021-.552-.096-.965-.347-1.226a.913.913 0 0 0-.643-.282c-.306 0-.818.155-.818 1.19 0 .899.418 1.852.534 2.098-.61 1.776-1.265 2.992-1.404 3.242C7.392 15.253 7.2 16.146 7.2 16.4c0 .454.324.725.866.725 1.317 0 2.52-2.211 2.718-2.595.936-.373 2.188-.604 2.506-.659.913.87 1.97 1.102 2.408 1.102.33 0 1.102 0 1.102-.794 0-.738-.945-1-1.755-1Zm-.064.522c.712 0 .9.235.9.36 0 .077-.03.332-.411.332-.342 0-.933-.197-1.513-.626.242-.032.6-.066 1.024-.066Zm-3.487-5.394c.065 0 .107.02.143.07.204.283.04 1.211-.162 1.937-.193-.623-.339-1.578-.134-1.914.04-.065.086-.093.153-.093Zm-.346 5.557c.258-.52.547-1.279.704-1.708.315.527.738 1.016.983 1.281-.763.16-1.34.321-1.687.427Zm-3.436 2.605c-.017-.02-.02-.063-.007-.113.027-.107.232-.636 1.714-1.3-.212.335-.544.813-.908 1.17-.257.24-.457.361-.594.361-.05 0-.117-.013-.205-.118Z"/></svg>';var U='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14 15H8.4M15.6 13.4H8.4M14 11.8H8.4M15.6 10.2H8.4"/></svg>';var _='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M8.4 12.6h7.2m-7.2 0V9.8a.8.8 0 0 1 .8-.8h5.6a.8.8 0 0 1 .8.8v2.8H8.4Zm0 0v2.8a.8.8 0 0 0 .8.8h5.6a.8.8 0 0 0 .8-.8v-2.8H8.4Z"/></svg>';var x='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%2301756A" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%2301756A" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><g clip-path="url(%23b)"><path stroke="%2301A797" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16 15.4a.8.8 0 0 1-.8.8H8.8a.8.8 0 0 1-.8-.8V9.8a.8.8 0 0 1 .8-.8h2l.8 1.2h3.6a.8.8 0 0 1 .8.8v4.4Z"/></g><defs><clipPath id="b"><path fill="%23fff" d="M7.2 7.8h9.6v9.6H7.2z"/></clipPath></defs></svg>';var D='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/></svg>';var O='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.95 19.067c-.144 0-.282-.017-.413-.053a2.51 2.51 0 0 1-.37-.13v-.782c.113.08.213.148.303.202a.5.5 0 0 0 .26.082c.12 0 .218-.03.292-.092.077-.064.115-.166.115-.307v-2.189h.874v2.228c0 .198-.032.364-.096.499a.836.836 0 0 1-.245.321.873.873 0 0 1-.34.168 1.39 1.39 0 0 1-.38.053Zm2.584-1.08V19h-.869v-3.202h1.503c.377 0 .675.085.893.255.22.17.33.437.33.801 0 .362-.11.642-.33.84-.218.196-.516.293-.893.293h-.634Zm0-.662h.528c.061 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865Zm3.81 1.742a1.96 1.96 0 0 1-.825-.163 1.2 1.2 0 0 1-.557-.528c-.131-.246-.197-.571-.197-.974 0-.394.066-.714.197-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.605.062.199.042.39.1.572.173v.782a4.255 4.255 0 0 0-.552-.254 1.382 1.382 0 0 0-.51-.096c-.165 0-.31.03-.431.091a.58.58 0 0 0-.274.307c-.064.144-.096.347-.096.61 0 .256.034.459.101.61a.64.64 0 0 0 .269.311.81.81 0 0 0 .384.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.349v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.672.091Z"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/></svg>';var q='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h15.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.023 19.067c-.144 0-.282-.017-.413-.053a2.51 2.51 0 0 1-.37-.13v-.782c.112.08.213.148.303.202a.5.5 0 0 0 .259.082c.121 0 .219-.03.293-.092.076-.064.115-.166.115-.307v-2.189h.873v2.228c0 .198-.032.364-.096.499a.836.836 0 0 1-.244.321.873.873 0 0 1-.341.168 1.39 1.39 0 0 1-.38.053Zm2.584-1.08V19h-.869v-3.202H7.24c.378 0 .676.085.893.255.221.17.331.437.331.801 0 .362-.11.642-.33.84-.218.196-.516.293-.894.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM8.977 19v-3.202h2.232v.663H9.851v.605h1.17v.662H9.847v.61h1.363V19H8.977Zm4.295.067a1.96 1.96 0 0 1-.826-.163 1.2 1.2 0 0 1-.557-.528c-.13-.246-.196-.571-.196-.974 0-.394.065-.714.196-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.606.062.198.042.389.1.57.173v.782a4.255 4.255 0 0 0-.551-.254 1.382 1.382 0 0 0-.509-.096c-.166 0-.31.03-.432.091a.58.58 0 0 0-.273.307c-.064.144-.096.347-.096.61 0 .256.033.459.1.61a.64.64 0 0 0 .27.311.81.81 0 0 0 .383.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.349v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.672.091Z"/></svg>';var $='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.633 17.987V19h-.87v-3.202h1.503c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM7.003 19v-3.202h.72l1.574 2.088-.264.557v-2.645h.797V19h-.634l-1.584-2.035.183-.394V19h-.792Zm4.918.067a1.96 1.96 0 0 1-.826-.163 1.2 1.2 0 0 1-.556-.528c-.132-.246-.197-.571-.197-.974 0-.394.065-.714.197-.96.134-.25.32-.432.556-.548.237-.115.51-.172.821-.172.208 0 .41.02.605.062.198.042.389.1.571.173v.782a4.255 4.255 0 0 0-.552-.254 1.382 1.382 0 0 0-.509-.096c-.166 0-.31.03-.432.091a.58.58 0 0 0-.273.307c-.064.144-.096.347-.096.61 0 .256.033.459.1.61a.64.64 0 0 0 .27.311.81.81 0 0 0 .383.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.35v1.516a2.84 2.84 0 0 1-.644.274 2.52 2.52 0 0 1-.672.091Z"/></svg>';var G='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h18.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="m4.37 19-.868-3.202h.95l.485 2.4h-.13l.687-2.4h.658l.69 2.43h-.138l.484-2.43h.956L7.274 19h-.858l-.663-2.194h.149L5.225 19h-.854Zm4.218 0v-3.202h2.232v.663H9.462v.605h1.17v.662H9.458v.61h1.363V19H8.588Zm2.855 0v-3.202h1.42c.225 0 .423.03.596.087a.82.82 0 0 1 .417.278c.106.128.159.304.159.528a.578.578 0 0 1-.116.365.88.88 0 0 1-.278.23 2.274 2.274 0 0 1-.297.13l-.101-.197c.195.007.363.043.504.11.14.065.25.156.326.274.08.115.12.255.12.418 0 .224-.056.41-.168.557a.972.972 0 0 1-.437.321c-.179.067-.376.101-.59.101h-1.555Zm.873-.662h.61a.475.475 0 0 0 .182-.034.27.27 0 0 0 .135-.11.373.373 0 0 0 .053-.207.32.32 0 0 0-.034-.153.248.248 0 0 0-.082-.106.323.323 0 0 0-.12-.058.575.575 0 0 0-.149-.019h-.595v.687Zm-.005-1.306h.586c.045 0 .085-.01.12-.029a.29.29 0 0 0 .096-.091.278.278 0 0 0 .039-.149c0-.112-.03-.19-.092-.235a.347.347 0 0 0-.21-.067h-.538v.571Zm3.263.955V19h-.869v-3.202h1.503c.377 0 .675.085.892.255.221.17.332.437.332.801 0 .362-.11.642-.332.84-.217.196-.515.293-.892.293h-.634Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865Z"/></svg>';var Y='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23511D59" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M15.15 7.95h-6.3a.9.9 0 0 0-.9.9v6.3a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9v-6.3a.9.9 0 0 0-.9-.9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M16.05 13.35 13.8 11.1l-4.95 4.95M10.425 11.1a.675.675 0 1 0 0-1.35.675.675 0 0 0 0 1.35Z"/><path fill="%23A750B4" d="M.6 13.2h11.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.915 19.067a1.96 1.96 0 0 1-.825-.163 1.2 1.2 0 0 1-.557-.528c-.131-.246-.197-.571-.197-.974 0-.394.066-.714.197-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.606.062.198.042.388.1.57.173v.782a4.255 4.255 0 0 0-.551-.254 1.382 1.382 0 0 0-.51-.096c-.166 0-.31.03-.431.091a.58.58 0 0 0-.274.307c-.064.144-.096.347-.096.61 0 .256.034.459.101.61a.64.64 0 0 0 .269.311.81.81 0 0 0 .384.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662H6.23v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.673.091ZM6.883 19v-3.202h.874V19h-.874Zm1.528 0v-3.202h2.223v.663H9.28v.686h1.167v.667H9.28V19h-.869Z"/></svg>';var W='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.67 19v-3.202h.878l1.08 1.47-.456.009 1.114-1.479h.854V19h-.868v-2.563l.148.297-1.041 1.373-1.056-1.406.173-.106V19H3.67Zm4.994-1.013V19h-.869v-3.202h1.502c.378 0 .676.085.893.255.221.17.331.437.331.801 0 .362-.11.642-.33.84-.218.196-.516.293-.894.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM12.234 19v-.84h-1.34v-.59l1.417-1.772h.797v1.719h.398v.643h-.398V19h-.874Zm-.62-1.483h.62v-.773l-.62.773Z"/></svg>';var K='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h17.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.513 19v-3.202h.878l1.08 1.47-.456.009 1.114-1.479h.854V19h-.868v-2.563l.148.297-1.041 1.373-1.056-1.406.173-.106V19h-.826Zm4.994-1.013V19h-.869v-3.202H9.14c.378 0 .676.085.893.255.221.17.331.437.331.801 0 .362-.11.642-.33.84-.218.196-.516.293-.894.293h-.633Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM10.877 19v-3.202h2.232v.663h-1.358v.605h1.17v.662h-1.175v.61h1.363V19h-2.232Zm4.295.067a1.96 1.96 0 0 1-.826-.163 1.2 1.2 0 0 1-.557-.528c-.13-.246-.197-.571-.197-.974 0-.394.066-.714.197-.96.135-.25.32-.432.557-.548.237-.115.51-.172.82-.172.209 0 .41.02.606.062.198.042.388.1.57.173v.782a4.255 4.255 0 0 0-.551-.254 1.382 1.382 0 0 0-.509-.096c-.166 0-.31.03-.432.091a.58.58 0 0 0-.274.307c-.064.144-.096.347-.096.61 0 .256.034.459.101.61a.64.64 0 0 0 .27.311.81.81 0 0 0 .383.092c.08 0 .152-.005.216-.015a.65.65 0 0 0 .168-.053v-.494h-.48v-.662h1.349v1.516a2.84 2.84 0 0 1-.643.274 2.52 2.52 0 0 1-.672.091Z"/></svg>';var J='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="m3.552 19 1.195-3.202h.955L6.806 19h-.892L4.91 15.947l.447-.038L4.358 19h-.806Zm.706-.629.163-.619h1.43l.082.62H4.258Zm3.47.629-1.185-3.202H7.55l.864 2.684h-.279l.86-2.684h.926L8.659 19h-.93Zm2.576 0v-3.202h.873V19h-.873Z"/></svg>';var X='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%233749A2" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12 16.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="m11.1 10.2 2.7 1.8-2.7 1.8v-3.6Z"/><path fill="%234B61D1" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.351 19v-3.202h.879l1.08 1.47-.456.009 1.113-1.479h.855V19h-.869v-2.563l.149.297-1.042 1.373-1.056-1.406.173-.106V19h-.826Zm4.96-.95-.316-.504 1.219-1.748h1.094L8.312 18.05Zm-.835.95v-3.202h.874V19h-.874Zm1.565-2.02L10.4 19H9.32l-.95-1.469.671-.552ZM11.726 19l-1.186-3.202h1.008l.864 2.684h-.278l.86-2.684h.926L12.657 19h-.931Z"/></svg>';var Q='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23593AD1" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.5 15.45a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M8.85 14.1V8.25l5.4-.9v5.85"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12.9 14.55a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path fill="%238161FF" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.712 19v-3.202h.879l1.08 1.47-.456.009 1.113-1.479h.855V19h-.87v-2.563l.15.297-1.042 1.373-1.056-1.406.173-.106V19h-.826Zm4.994-1.013V19h-.869v-3.202H9.34c.377 0 .675.085.892.255.221.17.332.437.332.801 0 .362-.11.642-.332.84-.217.196-.515.293-.892.293h-.634Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865Zm3.335 1.713c-.173 0-.34-.025-.504-.076a3.162 3.162 0 0 1-.451-.183v-.725c.15.09.3.17.446.24.15.07.31.106.476.106a.753.753 0 0 0 .388-.086.279.279 0 0 0 .144-.255.36.36 0 0 0-.115-.278c-.077-.074-.22-.11-.432-.11h-.5v-.634h.51c.137 0 .236-.03.297-.091a.283.283 0 0 0 .096-.212c0-.086-.022-.152-.067-.196a.381.381 0 0 0-.178-.096.91.91 0 0 0-.23-.03c-.105 0-.216.014-.331.04a1.926 1.926 0 0 0-.442.162v-.643c.122-.064.256-.115.404-.153a1.651 1.651 0 0 1 .854-.015c.137.029.262.079.374.149a.761.761 0 0 1 .326.917.694.694 0 0 1-.278.326.442.442 0 0 1-.163.067c.08.023.157.06.23.11.074.049.14.108.197.178a.81.81 0 0 1 .197.552c0 .18-.037.33-.11.452a.828.828 0 0 1-.293.283c-.122.07-.256.121-.403.153a2.03 2.03 0 0 1-.442.048Z"/></svg>';var e1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 5.7h-4.5a1.2 1.2 0 0 1-1.2-1.2h5.7v1.2Zm-4.5 0a1.2 1.2 0 0 1-1.2-1.2V.6h1.2v5.7ZM20.1.6v5.1V.6Z" mask="url(%23a)"/><path fill="%23593AD1" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.5 15.45a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M8.85 14.1V8.25l5.4-.9v5.85"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M12.9 14.55a1.35 1.35 0 1 0 0-2.7 1.35 1.35 0 0 0 0 2.7Z"/><path fill="%238161FF" d="M.6 13.2h15.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="m4.488 19-.869-3.202h.95l.485 2.4h-.13l.687-2.4h.658l.691 2.43h-.14l.486-2.43h.955L7.392 19h-.86l-.662-2.194h.15L5.341 19h-.854Zm3.588 0 1.195-3.202h.955L11.33 19h-.893l-1.003-3.053.446-.038L8.882 19h-.806Zm.705-.629.163-.619h1.43l.082.62H8.781Zm3.47.629-1.185-3.202h1.008l.864 2.684h-.278l.859-2.684h.926L13.183 19h-.931Z"/></svg>';var a1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23730D0D" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%23BB3939" d="M.6 13.2h13.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.463 17.987V19h-.869v-3.202h1.503c.377 0 .675.085.892.255.221.17.332.437.332.801 0 .362-.11.642-.332.84-.217.196-.515.293-.892.293h-.634Zm0-.662h.528c.06 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.125-.09.436.436 0 0 0-.163-.03h-.528v.865ZM6.833 19v-3.202h1.344c.554 0 .959.136 1.215.408.259.272.389.67.389 1.196 0 .521-.13.918-.39 1.19-.255.272-.66.408-1.214.408H6.833Zm.87-.662h.369c.265 0 .467-.074.605-.221.14-.15.21-.389.21-.715 0-.33-.07-.568-.21-.716-.138-.15-.34-.225-.605-.225h-.37v1.877Zm2.59.662v-3.202h2.222v.663h-1.354v.686h1.167v.667h-1.166V19h-.87Z"/></svg>';var t1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23074856" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%232D9AB2" d="M.6 13.2h14.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.806 19v-3.202H5.15c.554 0 .958.136 1.214.408.26.272.39.67.39 1.196 0 .521-.13.918-.39 1.19-.256.272-.66.408-1.214.408H3.806Zm.869-.662h.37c.265 0 .467-.074.604-.221.141-.15.211-.389.211-.715 0-.33-.07-.568-.21-.716-.138-.15-.34-.225-.606-.225h-.37v1.877Zm4.04.73c-.317 0-.595-.06-.835-.178a1.276 1.276 0 0 1-.557-.548c-.131-.246-.197-.56-.197-.94 0-.55.14-.967.418-1.248.281-.282.672-.423 1.17-.423.318 0 .595.06.831.178.24.118.426.3.557.547.134.243.202.557.202.94 0 .551-.14.967-.418 1.249-.278.281-.669.422-1.171.422Zm0-.702c.144 0 .267-.03.37-.09a.576.576 0 0 0 .235-.303c.057-.144.086-.338.086-.581 0-.24-.029-.43-.086-.571a.552.552 0 0 0-.235-.298.711.711 0 0 0-.37-.091.683.683 0 0 0-.37.096.6.6 0 0 0-.24.302c-.054.141-.081.333-.081.576 0 .24.027.43.081.572a.6.6 0 0 0 .24.297c.103.061.226.091.37.091Zm3.539.701c-.519 0-.915-.134-1.19-.403-.273-.269-.409-.69-.409-1.262 0-.554.13-.972.39-1.253.261-.285.665-.427 1.209-.427.17 0 .34.02.513.062.176.042.348.1.514.173v.749a1.94 1.94 0 0 0-.49-.245 1.334 1.334 0 0 0-.417-.077.938.938 0 0 0-.442.096.619.619 0 0 0-.283.312c-.064.147-.096.352-.096.614 0 .253.033.453.1.6a.613.613 0 0 0 .289.312c.128.058.284.087.47.087.109 0 .237-.024.384-.072.15-.048.312-.128.485-.24v.749a1.759 1.759 0 0 1-.307.12 3.057 3.057 0 0 1-.365.076 2.34 2.34 0 0 1-.355.03Z"/></svg>';var l1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23074856" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%232D9AB2" d="M.6 13.2h17.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.628 19v-3.202h1.344c.553 0 .958.136 1.214.408.26.272.389.67.389 1.196 0 .521-.13.918-.389 1.19-.256.272-.66.408-1.214.408H3.628Zm.869-.662h.37c.265 0 .466-.074.604-.221.14-.15.211-.389.211-.715 0-.33-.07-.568-.211-.716-.138-.15-.34-.225-.605-.225h-.37v1.877Zm4.04.73c-.317 0-.595-.06-.835-.178a1.276 1.276 0 0 1-.557-.548c-.131-.246-.197-.56-.197-.94 0-.55.14-.967.418-1.248.281-.282.672-.423 1.17-.423.318 0 .594.06.831.178.24.118.426.3.557.547.134.243.202.557.202.94 0 .551-.14.967-.418 1.249-.278.281-.669.422-1.171.422Zm0-.702c.144 0 .267-.03.37-.09a.576.576 0 0 0 .235-.303c.057-.144.086-.338.086-.581 0-.24-.029-.43-.086-.571a.552.552 0 0 0-.236-.298.711.711 0 0 0-.37-.091.683.683 0 0 0-.369.096.6.6 0 0 0-.24.302c-.054.141-.081.333-.081.576 0 .24.027.43.081.572a.6.6 0 0 0 .24.297c.103.061.226.091.37.091Zm3.538.701c-.518 0-.915-.134-1.19-.403-.272-.269-.408-.69-.408-1.262 0-.554.13-.972.389-1.253.262-.285.665-.427 1.21-.427.17 0 .34.02.513.062.176.042.347.1.514.173v.749a1.94 1.94 0 0 0-.49-.245 1.334 1.334 0 0 0-.418-.077.938.938 0 0 0-.441.096.619.619 0 0 0-.283.312c-.064.147-.096.352-.096.614 0 .253.033.453.1.6a.613.613 0 0 0 .289.312c.128.058.284.087.47.087.109 0 .237-.024.384-.072.15-.048.312-.128.485-.24v.749a1.759 1.759 0 0 1-.307.12 3.057 3.057 0 0 1-.365.076 2.34 2.34 0 0 1-.355.03Zm4.57-.067H15.56l-2.165-3.202h1.085L16.645 19Zm-1.633-2.05.649-1.152h.945l-1.147 1.79-.447-.638Zm.125.735L14.38 19h-.936l1.262-1.92.432.605Z"/></svg>';var i1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23124E46" d="M3 11.7.6 13.2H3v-1.5Z"/><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M14.25 14.7h-6.3M16.05 12.9h-8.1M14.25 11.1h-6.3M16.05 9.3h-8.1"/><path fill="%2301756A" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M3.974 19v-2.54H3.12v-.662h2.587v.663h-.869V19h-.864Zm5.15 0H8.04l-2.164-3.202h1.084L9.124 19Zm-1.632-2.05.648-1.152h.946l-1.147 1.79-.447-.638Zm.125.735L6.86 19h-.936l1.262-1.92.432.605ZM10.147 19v-2.54h-.854v-.662h2.588v.663h-.87V19h-.863Z"/></svg>';var o1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23793304" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path fill="%23E1E7E6" d="M15.1 8.9H8.3v4.25a.425.425 0 0 0 .425.425h5.95a.425.425 0 0 0 .425-.425V8.9Zm.85 4.25a1.275 1.275 0 0 1-1.275 1.275h-1.949l1.4 1.4a.425.425 0 1 1-.601.6L11.7 14.601l-1.824 1.824a.425.425 0 1 1-.601-.6l1.399-1.4H8.725A1.275 1.275 0 0 1 7.45 13.15V8.9a.425.425 0 0 1 0-.85h8.5a.425.425 0 0 1 0 .85v4.25Z"/></g><path fill="%23C66727" d="M.6 13.2h13.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.547 17.987V19H3.68v-3.202H5.18c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662h.528c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865Zm3.24.662V19h-.87v-3.202H8.42c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662h.527c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865ZM10.8 19v-2.54h-.854v-.662h2.587v.663h-.87V19H10.8Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 7.2h10.2v10.2H6.6z"/></clipPath></defs></svg>';var h1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%23793304" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path fill="%23E1E7E6" d="M15.1 8.9H8.3v4.25a.425.425 0 0 0 .425.425h5.95a.425.425 0 0 0 .425-.425V8.9Zm.85 4.25a1.275 1.275 0 0 1-1.275 1.275h-1.949l1.4 1.4a.425.425 0 1 1-.601.6L11.7 14.601l-1.824 1.824a.425.425 0 1 1-.601-.6l1.399-1.4H8.725A1.275 1.275 0 0 1 7.45 13.15V8.9a.425.425 0 0 1 0-.85h8.5a.425.425 0 0 1 0 .85v4.25Z"/></g><path fill="%23C66727" d="M.6 13.2h16.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M4.37 17.987V19H3.5v-3.202h1.503c.377 0 .675.085.893.255.22.17.33.437.33.801 0 .362-.11.642-.33.84-.218.196-.516.293-.893.293h-.634Zm0-.662h.527c.061 0 .115-.008.163-.024a.314.314 0 0 0 .125-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03H4.37v.865Zm3.238.662V19H6.74v-3.202h1.502c.378 0 .675.085.893.255.22.17.331.437.331.801 0 .362-.11.642-.331.84-.218.196-.515.293-.893.293h-.634Zm0-.662h.528c.061 0 .116-.008.164-.024a.314.314 0 0 0 .124-.082.49.49 0 0 0 .1-.307.577.577 0 0 0-.028-.192.383.383 0 0 0-.072-.14.276.276 0 0 0-.124-.09.436.436 0 0 0-.164-.03h-.528v.865ZM10.622 19v-2.54h-.855v-.662h2.588v.663h-.87V19h-.863Zm5.15 0h-1.085l-2.165-3.202h1.085L15.772 19Zm-1.632-2.05.648-1.152h.945l-1.147 1.79-.446-.638Zm.125.735L13.506 19h-.936l1.263-1.92.432.605Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 7.2h10.2v10.2H6.6z"/></clipPath></defs></svg>';var r1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%232B8B51" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.95 11.4h8.1m-8.1 0V8.25a.9.9 0 0 1 .9-.9h6.3a.9.9 0 0 1 .9.9v3.15h-8.1Zm0 0v3.15a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9V11.4h-8.1Z"/></g><path fill="%2331A15E" d="M.6 13.2h13.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M5.107 19.067c-.519 0-.915-.134-1.19-.403-.273-.269-.409-.69-.409-1.262 0-.554.13-.972.39-1.253.262-.285.665-.427 1.209-.427.17 0 .34.02.513.062.176.042.348.1.514.173v.749a1.94 1.94 0 0 0-.49-.245 1.334 1.334 0 0 0-.417-.077.938.938 0 0 0-.442.096.619.619 0 0 0-.283.312c-.064.147-.096.352-.096.614 0 .253.034.453.1.6a.613.613 0 0 0 .289.312c.128.058.285.087.47.087.109 0 .237-.024.384-.072.15-.048.312-.128.485-.24v.749a1.759 1.759 0 0 1-.307.12 3.057 3.057 0 0 1-.365.076 2.34 2.34 0 0 1-.355.03Zm2.702 0c-.16 0-.31-.006-.447-.019a2.674 2.674 0 0 1-.384-.062 1.96 1.96 0 0 1-.331-.125v-.816c.16.125.334.217.523.278.189.058.36.087.514.087.121 0 .219-.023.293-.068.073-.044.11-.121.11-.23 0-.074-.037-.133-.11-.178a1.019 1.019 0 0 0-.288-.124 29.641 29.641 0 0 1-.404-.135 2.128 2.128 0 0 1-.264-.115.963.963 0 0 1-.225-.168.768.768 0 0 1-.163-.25.93.93 0 0 1-.063-.36c0-.14.026-.275.077-.403a1.002 1.002 0 0 1 .643-.571c.163-.058.354-.086.571-.086.132 0 .25.008.356.024.105.012.204.035.297.067a2.2 2.2 0 0 1 .288.12v.825a1.89 1.89 0 0 0-.542-.312 1.06 1.06 0 0 0-.307-.067.872.872 0 0 0-.245.024.38.38 0 0 0-.183.091.246.246 0 0 0-.067.183c0 .08.026.144.077.192a.71.71 0 0 0 .22.115c.097.029.202.06.318.091.134.039.256.082.364.13.112.048.208.107.288.177a.73.73 0 0 1 .188.26c.044.099.067.22.067.364 0 .205-.048.388-.144.548-.096.16-.232.286-.408.379a1.33 1.33 0 0 1-.62.134ZM10.406 19 9.22 15.798h1.008l.864 2.684h-.278l.859-2.684h.926L11.337 19h-.931Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 16.8V6h10.8v10.8z"/></clipPath></defs></svg>';var s1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%232B8B51" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.95 11.4h8.1m-8.1 0V8.25a.9.9 0 0 1 .9-.9h6.3a.9.9 0 0 1 .9.9v3.15h-8.1Zm0 0v3.15a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9V11.4h-8.1Z"/></g><path fill="%2331A15E" d="M.6 13.2h12.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M6.384 19H5.3l-2.165-3.202H4.22L6.384 19Zm-1.632-2.05.648-1.152h.946l-1.147 1.79-.447-.638Zm.125.735L4.12 19h-.936l1.262-1.92.432.605ZM6.765 19v-3.202h.873v2.535h1.335V19H6.765Zm3.799.067c-.16 0-.309-.006-.446-.019a2.674 2.674 0 0 1-.384-.062 1.96 1.96 0 0 1-.332-.125v-.816c.16.125.335.217.524.278.188.058.36.087.513.087.122 0 .22-.023.293-.068.074-.044.11-.121.11-.23 0-.074-.036-.133-.11-.178a1.019 1.019 0 0 0-.288-.124 29.641 29.641 0 0 1-.403-.135 2.127 2.127 0 0 1-.264-.115.963.963 0 0 1-.226-.168.768.768 0 0 1-.163-.25.93.93 0 0 1-.062-.36c0-.14.025-.275.076-.403a1.002 1.002 0 0 1 .644-.571c.163-.058.353-.086.57-.086.132 0 .25.008.356.024.106.012.205.035.298.067a2.2 2.2 0 0 1 .288.12v.825a1.89 1.89 0 0 0-.542-.312 1.06 1.06 0 0 0-.308-.067.872.872 0 0 0-.245.024.38.38 0 0 0-.182.091.246.246 0 0 0-.067.183c0 .08.025.144.076.192a.71.71 0 0 0 .221.115c.096.029.202.06.317.091.134.039.256.082.365.13.112.048.208.107.288.177a.73.73 0 0 1 .187.26c.045.099.067.22.067.364 0 .205-.048.388-.144.548-.096.16-.232.286-.408.379a1.33 1.33 0 0 1-.619.134Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 16.8V6h10.8v10.8z"/></clipPath></defs></svg>';var n1='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="%23fff" stroke="%23BDCBC9" stroke-width=".9" d="M5.4.45h10.228l4.922 4.522V21.6a1.95 1.95 0 0 1-1.95 1.95H5.4a1.95 1.95 0 0 1-1.95-1.95V2.4A1.95 1.95 0 0 1 5.4.45Z"/><mask id="a" fill="%23fff"><path d="M15 .6h5.1v5.1h-4.5a.6.6 0 0 1-.6-.6V.6Z"/></mask><path fill="%23BDCBC9" d="M15 .6h5.1H15Zm5.1 6h-4.5a1.5 1.5 0 0 1-1.5-1.5l1.8-.3h4.2v1.8Zm-4.5 0a1.5 1.5 0 0 1-1.5-1.5V.6h1.8v4.2l-.3 1.8Zm4.5-6v5.1V.6Z" mask="url(%23a)"/><path fill="%232B8B51" d="M3 11.7.6 13.2H3v-1.5Z"/><g clip-path="url(%23b)"><path stroke="%23E1E7E6" stroke-linecap="round" stroke-linejoin="round" stroke-width=".8" d="M7.95 11.4h8.1m-8.1 0V8.25a.9.9 0 0 1 .9-.9h6.3a.9.9 0 0 1 .9.9v3.15h-8.1Zm0 0v3.15a.9.9 0 0 0 .9.9h6.3a.9.9 0 0 0 .9-.9V11.4h-8.1Z"/></g><path fill="%2331A15E" d="M.6 13.2h15.6a1.2 1.2 0 0 1 1.2 1.2v7.4H1.8a1.2 1.2 0 0 1-1.2-1.2v-7.4Z"/><path fill="%23fff" d="M6.232 19h-.965l-2.184-3.202h.965L6.232 19Zm-1.589-2.016.696-1.186h.86L5.045 17.56l-.403-.576Zm.13.677L3.962 19h-.84l1.243-1.872.408.533ZM6.624 19v-3.202h.778v2.592h1.392V19h-2.17Zm3.738.067c-.163 0-.31-.008-.442-.024a2.375 2.375 0 0 1-.364-.072 2.017 2.017 0 0 1-.327-.125v-.739c.147.119.314.208.5.269.185.06.361.091.527.091.148 0 .26-.027.336-.081.08-.058.12-.144.12-.26a.24.24 0 0 0-.11-.206.934.934 0 0 0-.283-.14c-.119-.04-.251-.087-.399-.138a1.812 1.812 0 0 1-.273-.11.784.784 0 0 1-.408-.422.944.944 0 0 1-.063-.366c0-.131.024-.258.072-.38a.923.923 0 0 1 .221-.326c.103-.096.232-.17.389-.225a1.6 1.6 0 0 1 .552-.087c.131 0 .246.008.346.024.102.016.2.04.292.072.093.03.188.068.284.116v.748a1.617 1.617 0 0 0-.25-.168 1.53 1.53 0 0 0-.283-.134 1.016 1.016 0 0 0-.576-.029.376.376 0 0 0-.187.11.263.263 0 0 0-.068.188c0 .09.028.16.082.211.054.051.13.094.226.13l.321.105c.131.039.251.082.36.13.112.045.21.102.293.173.083.07.147.156.192.259a.919.919 0 0 1 .067.37c0 .191-.045.367-.134.527a.975.975 0 0 1-.389.375c-.17.09-.378.134-.624.134Zm4.56-.067h-.964l-2.184-3.202h.965L14.923 19Zm-1.588-2.016.696-1.186h.86l-1.153 1.762-.403-.576Zm.13.677L12.652 19h-.84l1.244-1.872.408.533Z"/><defs><clipPath id="b"><path fill="%23fff" d="M6.6 16.8V6h10.8v10.8z"/></clipPath></defs></svg>';var a0=["image","video","audio","pdf","text","spreadsheet","all"],j5=["extended","compact"],t0={image:N,video:R,audio:P,pdf:S,text:U,spreadsheet:_,all:x},V={jpg:{fileType:"image",mimeType:"image/jpeg",badge:O},jpeg:{fileType:"image",mimeType:"image/jpeg",badge:q},png:{fileType:"image",mimeType:"image/png",badge:$},webp:{fileType:"image",mimeType:"image/webp",badge:G},gif:{fileType:"image",mimeType:"image/gif",badge:Y},mp4:{fileType:"video",mimeType:"video/mp4",badge:W},mpeg:{fileType:"video",mimeType:"video/mpeg",badge:K},avi:{fileType:"video",mimeType:"video/x-msvideo",badge:J},mkv:{fileType:"video",mimeType:"video/x-matroska",badge:X},mp3:{fileType:"audio",mimeType:"audio/mpeg",badge:Q},wav:{fileType:"audio",mimeType:"audio/wav",badge:e1},pdf:{fileType:"pdf",mimeType:"application/pdf",badge:a1},doc:{fileType:"text",mimeType:"application/msword",badge:t1},docx:{fileType:"text",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",badge:l1},txt:{fileType:"text",mimeType:"text/plain",badge:i1},ppt:{fileType:"text",mimeType:"application/vnd.ms-powerpoint",badge:o1},pptx:{fileType:"text",mimeType:"application/vnd.openxmlformats-officedocument.presentationml.presentation",badge:h1},csv:{fileType:"spreadsheet",mimeType:"text/csv",badge:r1},xls:{fileType:"spreadsheet",mimeType:"application/vnd.ms-excel",badge:s1},xlsx:{fileType:"spreadsheet",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",badge:n1}},f1=a0.reduce((a,e)=>{let l=Object.values(V).filter(o=>o.fileType===e).map(o=>o.mimeType);return a[e]={mimeTypes:Array.from(new Set(l)),icon:t0[e]},a},{}),l0=a=>a in V,i0=a=>[...a].sort((o,H)=>o.extension.localeCompare(H.extension))[0]?.badge||D,o0=Object.entries(V).reduce((a,[e,l])=>{let o=l.mimeType.toLowerCase();return a[o]=[...a[o]||[],{extension:e.toLowerCase(),badge:l.badge}],a},{}),h0=Object.entries(o0).reduce((a,[e,l])=>(a[e]=i0(l),a),{}),r0=a=>{let e=a.lastIndexOf(".");return e<=0||e===a.length-1?"":a.slice(e+1).toLowerCase()},s0=a=>{let e=r0(a.name),l=l0(e)?V[e].badge:"",o=a.type?h0[a.type.toLowerCase()]:"";return {extension:e,badgeIcon:l||o||D}},n0="FILE_TOO_LARGE",d0=a=>a?.startsWith("es")?{loading:"Cargando..",dragText:"Arrastra tus archivos hasta aqu\xED",selectText:"O selecciona desde tu dispositivo",selectButton:"Seleccionar",maxFilesTitle:"L\xEDmite de archivos alcanzado",maxFilesDescription:"Has alcanzado el m\xE1ximo permitido. Elimina un archivo para continuar cargando",maxImagesTitle:"L\xEDmite de im\xE1genes alcanzado",maxImagesDescription:"Has alcanzado el m\xE1ximo permitido. Elimina una imagen para continuar cargando",maxFilesAllowed:e=>`M\xE1ximo permitido: ${e} ${e===1?"archivo":"archivos"}`,maxImagesAllowed:e=>`M\xE1ximo permitido: ${e} ${e===1?"imagen":"im\xE1genes"}`,dragSpreadsheetText:e=>e===1?"Arrastra tu hoja de c\xE1lculo hasta aqu\xED":"Arrastra tus hojas de c\xE1lculo hasta aqu\xED",dragImageText:e=>e===1?"Arrastra tu imagen hasta aqu\xED":"Arrastra tus im\xE1genes hasta aqu\xED",fileExceedsMaxSize:"El archivo excede el tama\xF1o permitido"}:a?.startsWith("pt")?{loading:"Carregando..",dragText:"Arraste seus arquivos at\xE9 aqui",selectText:"Ou selecione do seu dispositivo",selectButton:"Selecionar",maxFilesTitle:"Limite de arquivos atingido",maxFilesDescription:"Voc\xEA atingiu o m\xE1ximo permitido. Exclua um arquivo para continuar carregando",maxImagesTitle:"Limite de imagens atingido",maxImagesDescription:"Voc\xEA atingiu o m\xE1ximo permitido. Exclua uma imagem para continuar carregando",maxFilesAllowed:e=>`M\xE1ximo permitido: ${e} ${e===1?"arquivo":"arquivos"}`,maxImagesAllowed:e=>`M\xE1ximo permitido: ${e} ${e===1?"imagem":"imagens"}`,dragSpreadsheetText:e=>e===1?"Arraste sua planilha at\xE9 aqui":"Arraste suas planilhas at\xE9 aqui",dragImageText:e=>e===1?"Arraste sua imagem at\xE9 aqui":"Arraste suas imagens at\xE9 aqui",fileExceedsMaxSize:"O arquivo excede o tamanho permitido"}:{loading:"Loading..",dragText:"Drag your files here",selectText:"Or select from your device",selectButton:"Select",maxFilesTitle:"File limit reached",maxFilesDescription:"You have reached the maximum allowed. Delete a file to continue uploading",maxImagesTitle:"Maximum images reached",maxImagesDescription:"You have reached the maximum allowed. Delete an image to continue uploading",maxFilesAllowed:e=>`Maximum allowed: ${e} ${e===1?"file":"files"}`,maxImagesAllowed:e=>`Maximum allowed: ${e} ${e===1?"image":"images"}`,dragSpreadsheetText:e=>e===1?"Drag your spreadsheet here":"Drag your spreadsheets here",dragImageText:e=>e===1?"Drag your image here":"Drag your images here",fileExceedsMaxSize:"The file exceeds the allowed size"},m0=a=>Array.isArray(a)?a:[a],A=a=>a.length===1?a[0]:null,p0=(a,e)=>A(a)===e,f0=a=>a.flatMap(e=>f1[e]?.mimeTypes||[]),c0=a=>{let e=A(a);return e?f1[e]?.icon||x:x},v0=(a,e,l)=>{let o=A(a);return o==="image"?e.dragImageText(l):o==="spreadsheet"?e.dragSpreadsheetText(l):e.dragText},g0=a=>a.errors.includes(n0),Z0=a=>a.map(e=>({...e,id:crypto.randomUUID()})),m1=a=>a.map(e=>jsx(FileUpload.Item,{file:e,className:"aspect-square size-16",children:jsxs(FileUpload.ItemPreview,{type:"image",className:"relative h-full w-full",children:[jsx(FileUpload.ItemPreviewImage,{className:"h-full w-full rounded-lg object-cover"}),jsx(FileUpload.ItemDeleteTrigger,{asChild:true,className:"absolute -top-1 -right-1",children:jsx(e$2,{Icon:x$1,variant:"light",tone:"neutral",size:"sm"})})]})},`${e.name}-${e.size}-${e.lastModified}`)),k0=({file:a,errorMessage:e$1,onDelete:l})=>jsxs("div",{className:"border-danger-300 bg-danger-50 flex h-13 shrink-0 items-center rounded-md border-2 pr-2 pl-4",children:[jsx("div",{className:"bg-danger-100 ring-danger-200 shrink-0 rounded-full p-2 ring ring-inset",children:jsx(e,{className:"text-danger-600 size-5.5"})}),jsxs("div",{className:"mr-6 ml-2 flex min-w-0 flex-1 flex-col gap-0.5",children:[jsx("span",{className:"font-inter line-clamp-1 text-xs leading-[133%] font-medium text-neutral-900",children:a.name}),jsx("span",{className:"text-2xs font-inter text-danger-600 leading-[133%]",children:e$1})]}),jsx(e$2,{Icon:x$1,variant:"ghost",tone:"neutral",size:"sm",className:"ml-auto shrink-0",onClick:l})]}),z5=({acceptedFileTypes:a$3,acceptedFiles:e$3,maxFiles:l=5,maxFileSize:o=15728640,minFileSize:H,isLoading:c$1=false,isDisabled:c1=false,hasError:p=false,label:y,size:f="compact",tooltip:v1,required:g1=false,onFileAccept:Z1,onFileReject:E,onFileChange:b,className:k1})=>{let u1=Array.isArray(a$3)&&a$3.length===0,k=m0(a$3),v=p0(k,"image"),F=f0(k),M1=c0(k),{locale:w1}=getDefaultOptions(),d=d0(w1?.code),x1=v0(k,d,l),[C,B]=useState([]),V1=useCallback(h=>{let r=h.files.filter(g0);r.length>0&&B(g=>[...g,...Z0(r)]),E?.(h);},[E]),H1=useCallback(h=>{b?.(h);},[b]),u=C.length>0;return jsxs(FileUpload.Root,{acceptedFiles:e$3,maxFiles:l,maxFileSize:o,minFileSize:H,disabled:c1||c$1,accept:F.length>0?F.join(", "):void 0,validate:u1?()=>["FILE_INVALID_TYPE"]:void 0,onFileAccept:Z1,onFileReject:V1,onFileChange:H1,className:k1,children:[y&&jsx(a,{as:FileUpload.Label,label:y,tooltip:v1,required:g1}),jsx(FileUpload.Context,{children:({dragging:h,disabled:r,acceptedFiles:g})=>{let Z=g.length>=l,s=r||Z;return jsxs(Fragment,{children:[jsxs(FileUpload.Dropzone,{disableClick:s,className:a$1("flex w-full items-center justify-center rounded-lg border border-dashed transition-colors",{"h-52 flex-col px-10":f==="extended","items-center px-4 py-4":f==="compact","border-neutral-500 bg-neutral-100":c$1,"border-danger-300 bg-danger-50 border-2":!c$1&&p,"bg-primary-100 ring-primary-400 border-transparent ring-2 ring-inset":!c$1&&!p&&h&&!s,"cursor-not-allowed border border-neutral-600 bg-neutral-100":!c$1&&!p&&!h&&s,"pointer-events-none":s,"hover:border-primary-400 hover:bg-primary-50 border-neutral-600 bg-neutral-100":!c$1&&!p&&!h&&!s}),children:[c$1&&jsxs("div",{className:a$1("flex items-center gap-3",{"flex-col":f==="extended"}),children:[jsx(c,{size:"lg"}),jsx("span",{className:"text-sm leading-[143%] font-medium text-neutral-800",children:d.loading})]}),!c$1&&jsxs(Fragment,{children:[jsx("div",{className:a$1("shrink-0 rounded-full p-2 ring ring-inset",{"bg-neutral-200 ring-neutral-300":s,"bg-primary-100 ring-primary-200":!s,"bg-danger-100 ring-danger-200":p}),children:p?jsx(e,{className:"text-danger-600 size-5.5"}):jsx("img",{src:M1,alt:"file type",className:a$1("size-6",s&&"grayscale")})}),jsxs("div",{className:a$1("flex flex-col gap-0.5",{"mt-3":f==="extended","ml-3":f==="compact"}),children:[jsx("span",{className:a$1("font-inter text-sm leading-[143%] font-semibold",{"text-neutral-500":s,"text-neutral-800":!s,"text-neutral-900":p,"text-center":f==="extended"}),children:x1}),jsx("span",{className:a$1("font-inter text-xs leading-[133%]",{"text-neutral-500":s,"text-neutral-700":!s,"text-neutral-900":p,"text-center":f==="extended"}),children:d.selectText})]}),jsx(e$1,{variant:"secondary",tone:p?"danger":"primary",className:a$1({"mx-auto mt-4":f==="extended","ml-auto":f==="compact"}),size:"sm",disabled:s,children:d.selectButton})]})]}),l>0&&Number.isFinite(l)&&jsx("p",{className:"text-2xs mt-2 leading-[133%] font-medium text-neutral-600",children:v?d.maxImagesAllowed(l):d.maxFilesAllowed(l)})]})}}),jsx(FileUpload.Context,{children:({acceptedFiles:h})=>h.length<l?null:jsx(a$2,{hasCloseButton:false,variant:"warning",title:v?d.maxImagesTitle:d.maxFilesTitle,description:v?d.maxImagesDescription:d.maxFilesDescription,className:"mt-3"})}),jsx(FileUpload.Context,{children:({acceptedFiles:h})=>jsxs(FileUpload.ItemGroup,{className:a$1("mt-3 flex empty:hidden",{"flex-wrap gap-3":v&&!u,"flex-col gap-3":!v||u}),children:[C.map(r=>jsx(k0,{file:r.file,errorMessage:d.fileExceedsMaxSize,onDelete:()=>{B(g=>g.filter(Z=>Z.id!==r.id));}},r.id)),v&&u&&h.length>0&&jsx("div",{className:"flex flex-wrap gap-3",children:m1(h)}),v&&!u&&m1(h),!v&&h.map(r=>{let{badgeIcon:g,extension:Z}=s0(r);return jsxs(FileUpload.Item,{file:r,className:"flex h-13 shrink-0 items-center rounded-md bg-neutral-50 pr-2 pl-4 ring ring-neutral-300 ring-inset",children:[jsx(FileUpload.ItemPreview,{type:".*",children:jsx("img",{src:g,alt:Z?`${Z} file`:"unknown file",className:"size-6"})}),jsxs("div",{className:"mr-6 ml-2 flex flex-col gap-0.5",children:[jsx(FileUpload.ItemName,{className:"font-inter line-clamp-1 text-xs leading-[133%] font-medium text-neutral-900"}),jsx(FileUpload.ItemSizeText,{className:"text-2xs font-inter leading-[133%] text-neutral-700"})]}),jsx(FileUpload.ItemDeleteTrigger,{asChild:true,className:"ml-auto",children:jsx(e$2,{Icon:x$1,variant:"ghost",tone:"neutral",size:"sm"})})]},`${r.name}-${r.size}-${r.lastModified}`)})]})}),jsx(FileUpload.HiddenInput,{})]})};
|
|
2
|
+
export{a0 as a,j5 as b,z5 as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-ZMMNEYEQ.js';import {c,d}from'./chunk-QJOYOR4B.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {a}from'./chunk-6MK7NLF5.js';import {j,g}from'./chunk-Q4CWL65C.js';import {NumberInput}from'@ark-ui/react/number-input';import {forwardRef,useId}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var x={useGrouping:false,maximumFractionDigits:10},U=(e,t)=>Number.isNaN(e)?"":new Intl.NumberFormat(t,x).format(e),w=tv({extend:c,slots:{control:"items-center justify-between gap-2 overflow-hidden",input:"peer",segment:["ring-input-ring rounded-r-input flex h-(--height-input) w-8 shrink-0 flex-col bg-neutral-200 text-neutral-800 ring transition-shadow","divide-input-ring divide-y"],segmentTrigger:["flex flex-1 cursor-pointer transition-colors outline-none","enabled:hover:bg-primary-200","disabled:cursor-not-allowed disabled:text-neutral-600"],segmentIcon:"mt-1 ml-2.25 size-3",adornments:"flex items-center gap-1"},variants:{error:{true:{input:"pr-3",segment:"ring-input-ring-error divide-input-ring-error bg-danger-20 text-danger-600",segmentTrigger:"enabled:hover:bg-danger-50"}},readOnly:{true:{segment:"ring-input-ring-disabled divide-input-ring-disabled"}},disabled:{true:{segment:"ring-input-ring-disabled divide-input-ring-disabled"}}},compoundVariants:[{error:true,readOnly:true,class:{segment:"ring-input-ring-error divide-input-ring-error"}},{error:true,disabled:true,class:{segment:"ring-input-ring-error divide-input-ring-error"}}]}),V=e=>{if(e.key!=="Home"&&e.key!=="End"||e.ctrlKey||e.metaKey||e.altKey)return;e.preventDefault();let t=e.currentTarget,{selectionStart:i,selectionEnd:l,value:a}=t;e.key==="Home"?t.setSelectionRange(0,e.shiftKey?l??0:0):t.setSelectionRange(e.shiftKey?i??a.length:a.length,a.length);},K=forwardRef(({className:e,disabled:t,error:i,helperText:l,label:a$3,placeholder:F,readOnly:u,required:m,tooltip:D,...v},k)=>{let p=useId(),n=w({error:i,disabled:t,readOnly:u});return jsxs(NumberInput.Root,{...v,formatOptions:x,disabled:t,readOnly:u,required:m,invalid:!!i,"data-error":i||void 0,className:n.root({className:e}),children:[jsx(a,{as:NumberInput.Label,label:a$3,required:m,tooltip:D}),jsxs(NumberInput.Control,{className:n.control(),children:[jsx(NumberInput.Input,{ref:k,placeholder:F,className:n.input(),"aria-describedby":l?p:void 0,onKeyDown:V}),jsx(NumberInput.Context,{children:d$1=>{let g=!u&&!t&&!d$1.empty;return !g&&!i?null:jsxs("div",{className:n.adornments(),children:[g&&jsx(a$1,{onClick:()=>d$1.clearValue()}),i&&jsx(d,{})]})}}),jsxs("div",{className:n.segment(),children:[jsx(NumberInput.IncrementTrigger,{className:n.segmentTrigger(),children:jsx(j,{className:n.segmentIcon()})}),jsx(NumberInput.DecrementTrigger,{className:n.segmentTrigger(),children:jsx(g,{className:n.segmentIcon()})})]})]}),jsx(a$2,{id:p,children:l})]})});K.displayName="NumberField";export{x as a,U as b,K as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e as e$2}from'./chunk-PI7DECIN.js';import {e,c,b,f,d}from'./chunk-
|
|
1
|
+
import {e as e$2}from'./chunk-PI7DECIN.js';import {e,c,b,f,d}from'./chunk-Q4CWL65C.js';import {e as e$1}from'./chunk-6V4ZY7YY.js';import {a}from'./chunk-OBZIYJO7.js';import {useState,useCallback}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var w=tv({slots:{container:"flex shrink-0 rounded-lg p-3 pr-2 ring ring-inset",icon:"mr-3 size-6 shrink-0",closeIcon:"ml-3 shrink-0",title:"font-inter my-auto text-sm leading-[143%] text-neutral-900",description:"font-inter mt-1 line-clamp-3 text-xs leading-[130%] text-neutral-900"},variants:{hasCloseButton:{true:{}},variant:{warning:{container:"bg-warning-100 ring-warning-600",icon:"text-warning-800"},success:{container:"bg-success-100 ring-success-600",icon:"text-success-800"},error:{container:"bg-danger-100 ring-danger-600",icon:"text-danger-800"},info:{container:"bg-info-100 ring-info-600",icon:"text-info-800"}}},defaultVariants:{variant:"info",size:"md",hasCloseButton:true}}),S={warning:f,success:b,error:c,info:e},O=({variant:r="info",className:p,description:t,title:d$1,hasCloseButton:a$1=true,actionButton:n})=>{let[x,N]=useState(true),{container:v,icon:h,closeIcon:C,title:I,description:y}=w({variant:r,hasCloseButton:a$1}),b=useCallback(()=>{N(false);},[]),M=S[r||"info"];return jsxs("div",{role:"alert",className:a(v(),p,!x&&"hidden"),children:[jsxs("div",{className:"flex flex-1",children:[jsx(M,{className:h({className:!t&&"my-auto"}),"aria-hidden":"true"}),jsxs("div",{className:"flex flex-col",children:[jsx("h6",{className:I({className:t&&"font-semibold"}),children:d$1}),t&&jsx("p",{className:y(),children:t})]})]}),n&&jsx(e$1,{...n,variant:"secondary",tone:"neutral",className:a("my-auto ml-4.5",n.className),size:"lg"}),a$1&&jsx(e$2,{Icon:d,className:C(),size:"sm",variant:"ghost",tone:"neutral",onClick:b,"aria-label":"Close alert"})]})};export{O as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-3HZUH4JJ.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {i,h as h$1}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-3HZUH4JJ.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {i,h as h$1}from'./chunk-Q4CWL65C.js';import {e}from'./chunk-6V4ZY7YY.js';import {a}from'./chunk-OBZIYJO7.js';import*as r from'react';import {Pagination}from'@ark-ui/react/pagination';import {getDefaultOptions}from'date-fns';import {jsx,jsxs}from'react/jsx-runtime';var H={es:{paginationSummary:(a,e,n)=>`${a}-${e} de ${n}`,rowsPerPage:"Filas por p\xE1gina"},pt:{paginationSummary:(a,e,n)=>`${a}-${e} de ${n}`,rowsPerPage:"Linhas por p\xE1gina"}},h={paginationSummary:(a,e,n)=>`${a}-${e} of ${n}`,rowsPerPage:"Rows per page"},L=a=>{let e=a?.slice(0,2);return e&&H[e]||h},S=r.forwardRef(({className:a$1,...e},n)=>jsx("div",{ref:n,className:a("ring-primary-200 flex flex-col overflow-hidden rounded-lg bg-neutral-50 ring-1",a$1),...e}));S.displayName="TableContainer";var M=r.forwardRef(({className:a$1,...e},n)=>jsx("div",{className:a("relative w-full overflow-x-auto",a$1),children:jsx("table",{ref:n,className:"w-full table-auto overflow-hidden text-neutral-900",...e})}));M.displayName="Table";var E=r.forwardRef(({className:a,...e},n)=>jsx("thead",{ref:n,className:a,...e}));E.displayName="TableHeader";var z=r.forwardRef(({className:a,...e},n)=>jsx("tbody",{ref:n,className:a,...e}));z.displayName="TableBody";var A=r.forwardRef(({className:a$1,...e},n)=>jsx("tr",{ref:n,className:a("text-sm leading-[130%] font-normal",a$1),...e}));A.displayName="TableBodyRow";var I=r.forwardRef(({Icon:a$1,icon:e$1,title:n,description:l,className:i,button:m,...b},T)=>jsxs("div",{ref:T,...b,className:a("flex flex-col items-center justify-center py-10 text-neutral-500",i),children:[e$1&&r.cloneElement(e$1,{className:"text-neutral-300 w-6 h-6"}),a$1&&jsx(a$1,{className:"h-6 w-6 text-neutral-300"}),jsx("span",{className:"mt-2 text-sm leading-[130%] font-semibold",children:n}),l&&jsx("span",{className:"mt-0.5 text-sm leading-[130%]",children:l}),m&&jsx(e,{size:"sm",...m,className:a("mt-3",m.className)})]}));I.displayName="TableNoResults";var $=r.forwardRef(({className:a$1,...e},n)=>jsx("tr",{ref:n,className:a("bg-primary-100",a$1),...e}));$.displayName="TableHeaderRow";var k=r.forwardRef(({className:a$1,...e},n)=>jsx("th",{ref:n,className:a("font-inter h-10 px-3 py-1.5 text-left text-xs leading-[133%] text-neutral-900 uppercase",a$1),...e}));k.displayName="TableHead";var B=r.forwardRef(({className:a$1,...e},n)=>jsx("td",{ref:n,className:a("h-22 px-4 py-3.5 wrap-break-word",a$1),...e}));B.displayName="TableCell";var y=({pageSize:a,rowsPerPageOptions:e,onPageSizeChange:n,label:l})=>jsxs("div",{className:"flex items-center justify-end",children:[jsx("select",{className:"mr-4 text-sm leading-[130%]",value:a,id:"rows_per_page",onChange:i=>{n?.(Number(i.target.value));},children:e.map(i=>jsx("option",{children:i},i))}),jsx("span",{className:"mr-2 text-sm leading-[130%] text-neutral-700",children:l})]}),J=({isDisableNextPageButton:a,isDisablePreviousPageButton:e,onNextPageClick:n,onPreviousPageClick:l,pagination:i$1,rowsCount:m,onPageSizeChange:b,onPageChange:T,rowsPerPageOptions:N=[10,20,50]})=>{let{locale:x}=getDefaultOptions(),f=L(x?.code);return m==null?jsxs("div",{className:"border-t-primary-200 grid min-h-12 flex-1 grid-cols-3 items-center justify-between gap-6 border-t px-4.5",children:[jsx("div",{}),jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsx(e$1,{Icon:i,size:"md",variant:"ghost",onClick:l,disabled:e}),jsx(e$1,{Icon:h$1,size:"md",variant:"ghost",onClick:n,disabled:a})]}),jsx(y,{pageSize:i$1.pageSize,rowsPerPageOptions:N,onPageSizeChange:b,label:f.rowsPerPage})]}):jsx(Pagination.Root,{count:m,page:i$1.pageIndex+1,pageSize:i$1.pageSize,siblingCount:2,onPageSizeChange:s=>{b?.(s.pageSize);},onPageChange:s=>{T?.(s.page);},children:jsx(Pagination.Context,{children:s=>jsxs("div",{className:"border-t-primary-200 grid min-h-12 flex-1 grid-cols-3 items-center justify-between gap-6 border-t px-4.5",children:[jsx("span",{className:"text-sm leading-[130%] font-normal text-neutral-700",children:f.paginationSummary(s.pageRange.start+1,s.pageRange.end,s.count)}),jsxs("div",{className:"flex items-center justify-center gap-2",children:[jsx(Pagination.PrevTrigger,{asChild:true,onClick:l,disabled:e,children:jsx(e$1,{Icon:i,size:"md",variant:"ghost"})}),s.pages.map((c,u)=>c.type==="page"?jsx(Pagination.Item,{...c,asChild:true,children:jsx(d,{variant:"standard",type:"ghost",size:"xs",selected:s.page===c.value,className:"cursor-pointer",children:c.value})},u):jsx(Pagination.Ellipsis,{index:u,children:"\u2026"},u)),jsx(Pagination.NextTrigger,{asChild:true,onClick:n,disabled:a,children:jsx(e$1,{Icon:h$1,size:"md",variant:"ghost"})})]}),jsx(y,{pageSize:i$1.pageSize,rowsPerPageOptions:N,onPageSizeChange:c=>{s.setPageSize(c);},label:f.rowsPerPage})]})})})};export{S as a,M as b,E as c,z as d,A as e,I as f,$ as g,k as h,B as i,J as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-MP4CHZ2K.js';import {a as a$1}from'./chunk-R6NIURLZ.js';import {g}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-MP4CHZ2K.js';import {a as a$1}from'./chunk-R6NIURLZ.js';import {g}from'./chunk-Q4CWL65C.js';import {a}from'./chunk-OBZIYJO7.js';import*as s from'react';import {Accordion}from'@ark-ui/react/accordion';import*as reactAccordion from'@radix-ui/react-accordion';export{reactAccordion as a };import {jsx,jsxs}from'react/jsx-runtime';var W=["sm","md"],x=s.forwardRef(({className:o,children:r,size:t="md",hasBorder:a$1=false,...c},d)=>jsx(Accordion.Root,{"data-border":a$1,"data-size":t,className:a("group/root space-y-2",o),...c,ref:d,children:r}));x.displayName="Accordion";var h=s.forwardRef(({className:o,...r},t)=>jsx(Accordion.Item,{ref:t,className:a("rounded-lg bg-neutral-50","group-data-[border=true]/root:ring-1 group-data-[border=true]/root:ring-neutral-200 group-data-[border=true]/root:ring-inset",o),...r}));h.displayName="AccordionItem";var A=s.forwardRef(({className:o,children:r,...t},a$1)=>jsxs(Accordion.ItemTrigger,{ref:a$1,className:a("group flex w-full flex-1 items-center justify-between p-4 transition-all [&[data-state=open]>svg]:rotate-180",o),...t,children:[r,jsx(g,{className:"h-6 w-6 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]}));A.displayName=Accordion.ItemTrigger.displayName;var I=s.forwardRef(({className:o,title:r,description:t,onEndButtonClick:a$2,StartIcon:c,EndIcon:d$1,children:P,badgeNumber:g$1,chipStatus:p,...v},y)=>jsxs(Accordion.ItemTrigger,{ref:y,className:a("group hover:not-disabled:bg-primary-100 flex w-full flex-1 items-center justify-between gap-3 rounded-lg p-2 pl-3 transition-all [&[data-state=open]>div>.chevron-icon]:rotate-180",!t&&"min-h-12",t&&"group-data-[size=md]/root:min-h-15.75 group-data-[size=sm]/root:min-h-12",o),...v,children:[jsxs("div",{className:"flex",children:[c&&jsx(c,{className:"mr-2 size-4.5 shrink-0 text-neutral-900 group-disabled:text-neutral-500 group-data-[size=sm]/root:size-3.5"}),jsxs("div",{children:[jsx("p",{className:"text-left text-base leading-[125%]! font-semibold text-neutral-900 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:r}),jsx("p",{className:"text-left text-sm leading-[130%] font-normal tracking-[0.28px] text-neutral-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-xs",children:t})]})]}),jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[p&&jsx(d,{variant:p.variant,type:p.type,size:"xs",className:"shrink-0",children:p.text}),g$1?.toString()&&jsx(a$1,{variant:"alert",size:"md",content:g$1.toString()}),d$1&&jsx(d$1,{className:"m-1.75 text-neutral-900 group-disabled:text-neutral-500",size:18,onClick:R=>{R.stopPropagation(),a$2?.();}}),jsx(g,{className:"chevron-icon h-4.5 w-4.5 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})]}));I.displayName=Accordion.ItemTrigger.displayName;var N=s.forwardRef(({className:o,children:r,...t},a$1)=>jsx(Accordion.ItemContent,{ref:a$1,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",...t,children:jsx("div",{className:a("pr-2 pl-3 group-data-[size=md]/root:py-4 group-data-[size=sm]/root:py-2",o),children:r})}));N.displayName=Accordion.ItemContent.displayName;export{W as b,x as c,h as d,A as e,I as f,N as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-HIULYFIC.js';import {
|
|
1
|
+
import {a}from'./chunk-HIULYFIC.js';import {r}from'./chunk-Q4CWL65C.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var d=({as:m,label:t,required:l,tooltip:o,className:p,htmlFor:c})=>jsxs(m,{className:a$1("font-inter mb-2 flex items-center text-xs leading-[133.33%] font-medium text-neutral-900",p),htmlFor:c,children:[l?jsxs("span",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-danger-500",children:"*"}),t]}):t,o&&jsx(a,{content:o,className:"ml-2",children:jsx(r,{className:"size-3.5"})})]});export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-MP4CHZ2K.js';import {a as a$2}from'./chunk-R6NIURLZ.js';import {g}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-MP4CHZ2K.js';import {a as a$2}from'./chunk-R6NIURLZ.js';import {g}from'./chunk-Q4CWL65C.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import*as a from'react';import*as e from'@radix-ui/react-accordion';import {jsx,jsxs}from'react/jsx-runtime';var b=["sm","md"],w=a.forwardRef(({className:i,children:o,size:r="md",...n},d)=>jsx(e.Root,{"data-size":r,className:a$1("group/root space-y-2",i),...n,ref:d,children:o})),y=a.forwardRef(({className:i,...o},r)=>jsx(e.Item,{ref:r,className:i,...o}));y.displayName="AccordionFormItem";var R=a.forwardRef(({className:i,title:o,onEndButtonClick:r,StartIcon:n,children:d$1,badgeNumber:p,chipStatus:c,...g$1},u)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{title:o,ref:u,className:a$1("group flex h-8 items-center gap-4 [&[data-state=open]>div>.chevron-icon]:rotate-180",i),...g$1,children:[jsxs("div",{className:"group flex items-center",children:[n&&jsx(n,{className:"text-primary-500 group-enabled:group-hover:text-primary-700 mr-2 h-4.5 w-4.5 shrink-0 transition-colors group-disabled:text-neutral-500 group-data-[size=sm]/root:h-3.5 group-data-[size=sm]/root:w-3.5"}),jsx("div",{children:jsx("p",{className:"text-primary-500 group-enabled:group-hover:text-primary-700 line-clamp-1 text-left text-base leading-[130%]! font-semibold transition-colors group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:o})})]}),jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[c&&jsx(d,{variant:c.variant,type:c.type,size:"xs",className:"shrink-0",children:c.text}),p?.toString()&&jsx(a$2,{variant:"alert",size:"md",content:p.toString()}),jsx(g,{className:"chevron-icon text-primary-500 group-enabled:group-hover:text-primary-700 h-4.5 w-4.5 shrink-0 transition-transform group-disabled:text-neutral-500"})]})]})}));R.displayName=e.Trigger.displayName;var A=a.forwardRef(({className:i,children:o,...r},n)=>jsx(e.Content,{ref:n,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",...r,children:jsx("div",{className:i,children:o})}));A.displayName=e.Content.displayName;export{b as a,w as b,y as c,R as d,A as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {g}from'./chunk-
|
|
1
|
+
import {g}from'./chunk-Q4CWL65C.js';import {a}from'./chunk-OBZIYJO7.js';import {jsx}from'react/jsx-runtime';var p=({className:r})=>jsx(g,{"aria-hidden":true,className:a("size-4.5 text-neutral-900 transition-transform will-change-transform","group-data-disabled/control:text-neutral-600","group-data-readonly/control:text-neutral-600","group-data-[state=open]/chevron-host:rotate-180",r)});export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-ZE64BJO4.js';import {c as c$1}from'./chunk-OQCEARDQ.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {d}from'./chunk-HPIKGJQV.js';import {a}from'./chunk-AWRP67K4.js';import {L}from'./chunk-Q4CWL65C.js';import {e}from'./chunk-6V4ZY7YY.js';import {a as a$2}from'./chunk-P6B33GL6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {getDefaultOptions}from'date-fns';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var t=tv({slots:{root:"ring-drawer-bar-border @container flex w-full flex-col rounded-md bg-neutral-100 ring ring-inset",header:"border-drawer-bar-border py-3.125 flex flex-wrap items-center gap-3 border-b px-4 last:border-b-0 @md:gap-2",main:"border-drawer-bar-border py-1.875 flex flex-col items-stretch gap-2 border-b px-2 last:border-b-0 @md:flex-row @md:items-center",actions:"flex shrink-0 items-center gap-3 @max-md:flex-wrap",selection:"ml-auto flex items-center gap-3",selectionLabel:"text-sm leading-[143%] font-medium text-neutral-900",divider:"h-4 @max-md:h-px @max-md:w-full",filters:"flex flex-col gap-2 px-2 pt-3 pb-2 @md:flex-row @md:justify-between"}}),z=r=>r?.startsWith("es")?"Seleccionados":r?.startsWith("pt")?"Selecionados":"Selected",W=r=>r?.startsWith("es")?"Limpiar todo":r?.startsWith("pt")?"Limpar tudo":"Clear all",D=r=>{let{header:e}=t();return jsx("div",{...r,className:e()})};D.displayName="DrawerBarHeader";var f=({label:r,...e})=>{let{locale:o}=getDefaultOptions(),{selectionLabel:i,selection:s}=t();return jsxs("div",{className:s(),children:[jsx("span",{className:i(),children:r??z(o?.code)}),jsx(a$2,{...e,size:"md",variant:"primary",type:"square"})]})};f.displayName="DrawerBarSelection";var C=r=>jsx(c$1,{...r,variant:"outline",orientation:"horizontal",size:"sm"});C.displayName="DrawerBarChoiceChips";var v=r=>{let{main:e}=t();return jsx("div",{...r,className:e()})};v.displayName="DrawerBarMain";var P=r=>jsx(c,{size:"lg",...r});P.displayName="DrawerBarSearchBar";var N=({children:r})=>{let{actions:e}=t();return jsx("div",{className:e(),children:r})};N.displayName="DrawerBarActions";var b=({className:r,...e$1})=>jsx(e,{...e$1,className:a$1("@max-md:w-full",r),variant:"ghost",size:"md"});b.displayName="DrawerBarActionButton";var y=r=>jsx(e$1,{...r,variant:"ghost",size:"md"});y.displayName="DrawerBarActionIconButton";var g=()=>{let{divider:r}=t();return jsx(a,{orientation:"vertical",variant:"400",className:r()})};g.displayName="DrawerBarDivider";var x=({children:r,onClear:e$1,clearLabel:o})=>{let{locale:i}=getDefaultOptions(),{filters:s}=t();return jsxs("div",{className:s(),children:[jsx("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:r}),e$1&&jsx(e,{size:"sm",variant:"ghost",StartIcon:L,onClick:e$1,children:o??W(i?.code)})]})};x.displayName="DrawerBarFilters";var F=r=>jsx(d,{size:"md",variant:"fill",color:"neutral",...r});F.displayName="DrawerBarFilterChipInput";var S=({children:r,className:e,...o})=>{let{root:i}=t();return jsx("div",{className:i({className:e}),...o,children:r})};S.displayName="DrawerBar";var Y=Object.assign(S,{Header:D,Selection:f,ChoiceChips:C,Main:v,SearchBar:P,Actions:N,ActionButton:b,ActionIconButton:y,Divider:g,Filters:x,FilterChipInput:F});export{Y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c,d}from'./chunk-
|
|
1
|
+
import {c,d}from'./chunk-QJOYOR4B.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {a}from'./chunk-6MK7NLF5.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {Field}from'@ark-ui/react/field';import {forwardRef}from'react';import {jsxs,jsx}from'react/jsx-runtime';var g=forwardRef(({className:T,disabled:l,error:r,helperText:c$1,label:f,placeholder:b,readOnly:i,required:p,tooltip:u,...F},v)=>{let t=c({error:r,disabled:l,readOnly:i,multiline:true});return jsxs(Field.Root,{"data-error":r,disabled:l,readOnly:i,className:t.root({className:T}),children:[jsx(a,{as:Field.Label,label:f,required:p,tooltip:u}),jsxs("div",{className:t.control(),children:[jsx(Field.Textarea,{ref:v,required:p,placeholder:b,"aria-invalid":r,className:a$1(t.input(),"no-scrollbar h-20"),...F}),r&&jsx("div",{className:a$1(t.trailing(),"cursor-text"),children:jsx(d,{})})]}),jsx(a$2,{as:Field.HelperText,children:c$1})]})});g.displayName="Textarea";export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-T2Q6B32U.js';import {
|
|
1
|
+
import {a as a$1}from'./chunk-T2Q6B32U.js';import {r,d,g as g$1}from'./chunk-Q4CWL65C.js';import {a}from'./chunk-OBZIYJO7.js';import g,{forwardRef,useId,useRef,useState,useCallback,useEffect}from'react';import {Label}from'@radix-ui/react-label';import {jsxs,jsx}from'react/jsx-runtime';var U=forwardRef(({label:x,placeholder:R,error:t,selectMode:b=false,showClearButton:H=true,helperText:M,className:I,size:e="md",onClean:P,onChange:f,startIcon:u,endIcon:p,startComponent:c,fixedTopLabel:C,startText:i,disabled:o,required:v,...D},m)=>{let w=useId(),l=useRef(null),[s,h]=useState(false),T=!l.current?.value,F=useCallback(()=>{if(l.current&&!o){l.current.value="",h(false),P?.();let a={target:l.current,currentTarget:l.current,type:"change",bubbles:true,cancelable:false,defaultPrevented:false,eventPhase:0,isTrusted:true,preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},isDefaultPrevented:()=>false,isPropagationStopped:()=>false,timeStamp:Date.now(),nativeEvent:new Event("change")};f?.(a);}},[o,f,l.current]);return useEffect(()=>{l.current&&h(l.current.value.length>0);},[]),jsxs("div",{className:a("flex flex-col",I),children:[jsxs("div",{className:a("relative flex flex-col rounded-lg bg-neutral-50",e==="lg"&&"h-12",e==="md"&&"h-10",e==="sm"&&"h-8"),children:[jsx("input",{id:w,disabled:o,required:v,className:a("hover:caret-neutral-text-neutral-600 hover:ring-neutral-text-neutral-600 hover:text-neutral no-spinner peer focus:placeholder-opacity-100 focus:caret-primary-800 focus:ring-primary-800 disabled:bg-neutral-80 absolute z-20 h-full w-full rounded-lg bg-neutral-50/0 text-left tracking-normal text-neutral-900 placeholder-neutral-500 caret-neutral-900 ring-1 ring-neutral-400 outline-0 transition-all ease-linear ring-inset not-placeholder-shown:z-10 focus:text-neutral-900 focus:placeholder-neutral-500 focus:ring-2 disabled:text-neutral-400 disabled:ring-neutral-100",x&&"placeholder-neutral-500/0",t&&"placeholder-error-700/0 ring-error-700 hover:ring-error-700 focus:ring-error-700 hover:text-neutral-900",e==="lg"&&"text-base",e==="md"&&"text-sm",e==="sm"&&"text-sm",u?e==="lg"?"pl-[2.75rem]":"pl-[2.38rem]":c?"pl-[6.5rem]":"pl-4",i&&"pl-[1.94rem]",p?e==="lg"?"pr-[2.75rem]":"pr-[2.38rem]":"pr-4"),placeholder:R??"",ref:a=>{typeof m=="function"?m(a):m&&(m.current=a),l.current=a;},onChange:a=>{h(a.target.value.length>0),f?.(a);},...D}),c&&g.cloneElement(c,{className:a("absolute z-20 flex left-3 top-1/2 transform -translate-y-1/2 items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),u&&g.cloneElement(u,{size:18,className:a("absolute flex peer-focus:text-neutral-900 z-20 text-neutral-500 left-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),i&&jsx("div",{className:"flex h-full items-center pl-3",children:jsx("p",{className:a("text-neutral-700",t&&"text-error-700"),children:i})}),x&&jsxs(Label,{htmlFor:w,className:a("peer-hover:text-primary-800 absolute -top-[0.5625rem] z-10 ml-3 bg-neutral-50 px-1 tracking-normal text-neutral-50 transition-all duration-75 ease-linear peer-disabled:z-20 peer-disabled:text-neutral-400","peer-focus:text-primary-800 peer-disabled:peer-not-focus:peer-placeholder-shown:bg-neutral-80 peer-focus:-top-[0.5625rem] peer-focus:z-20 peer-focus:ml-3 peer-focus:text-xs",!t&&"peer-not-disabled:peer-not-focus:text-neutral-400 peer-not-disabled:peer-not-focus:peer-not-placeholder-shown:text-neutral-900",s&&"peer-disabled:bg-neutral-80",e==="lg"?"text-base peer-placeholder-shown:top-3 placeholder-shown:text-xs":e==="md"?"text-sm peer-placeholder-shown:top-2.5 placeholder-shown:text-xs":"text-sm peer-placeholder-shown:top-1.5 placeholder-shown:text-xs",!T&&"text-xs",t&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700",u?e==="lg"?"peer-placeholder-shown:ml-[2.75rem]":"peer-placeholder-shown:ml-[2.38rem]":c?"peer-placeholder-shown:ml-[6rem]":"ml-3",C&&"-top-[0.375rem]! z-20 ml-3 text-xs! transition-none!",i&&"peer-placeholder-shown:ml-[1.94rem]"),children:[v&&"*",x]}),(H&&(!T||s)||t)&&jsxs("div",{className:a("absolute z-10 hidden h-full items-center peer-focus:flex",t&&!o&&"flex",b||p?e==="lg"?"right-[2.81rem]":e==="md"?"right-[2.125rem]":"right-[1.875rem]":"right-4"),children:[t&&jsx(r,{size:e==="sm"?14:18,className:"text-error-700"}),!t&&jsx(d,{onMouseDown:F,size:e==="sm"?14:18,className:"cursor-pointer text-neutral-900"})]}),p&&g.cloneElement(p,{size:e==="sm"?14:18,className:a("absolute peer-focus:text-neutral-900 z-20 text-neutral-500 flex right-3 h-full items-center rounded-full peer-disabled:text-neutral-400",t&&!s&&"text-error-700 peer-hover:text-error-700 peer-focus:text-error-700")}),b&&jsx("div",{className:a("peer-hover:text-neutral peer-focus:text-primary-900 absolute right-4 z-20 flex h-full items-center rounded-full transition-all ease-linear peer-focus:rotate-180 peer-disabled:text-neutral-400"),children:jsx(g$1,{className:e==="lg"?"h-6 w-6":"h-4.5 w-4.5"})})]}),jsx(a$1,{helperText:M,error:t,disabled:o})]})});export{U as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {i,h}from'./chunk-
|
|
1
|
+
import {i,h}from'./chunk-Q4CWL65C.js';import {a}from'./chunk-OBZIYJO7.js';import {Carousel}from'@ark-ui/react/carousel';import {forwardRef}from'react';import {jsx}from'react/jsx-runtime';var p=forwardRef(({className:e,...r},o)=>jsx(Carousel.Root,{ref:o,className:a("relative w-full",e),...r})),c=forwardRef(({className:e,...r},o)=>jsx(Carousel.Control,{ref:o,className:a("pointer-events-none absolute inset-0 z-10 flex items-center justify-between px-4",e),...r})),m=forwardRef(({className:e,children:r,...o},n)=>jsx(Carousel.PrevTrigger,{ref:n,className:a("pointer-events-auto flex h-8 w-8 items-center justify-center rounded-full bg-white/80 text-gray-600 shadow-lg backdrop-blur-sm transition-all hover:bg-white hover:text-gray-800 focus:ring-2 focus:ring-white/50 focus:outline-none disabled:cursor-not-allowed disabled:opacity-30",e),...o,children:r||jsx(i,{className:"h-4 w-4"})})),g=forwardRef(({className:e,children:r,...o},n)=>jsx(Carousel.NextTrigger,{ref:n,className:a("pointer-events-auto flex h-8 w-8 items-center justify-center rounded-full bg-white/80 text-gray-600 shadow-lg backdrop-blur-sm transition-all hover:bg-white hover:text-gray-800 focus:ring-2 focus:ring-white/50 focus:outline-none disabled:cursor-not-allowed disabled:opacity-30",e),...o,children:r||jsx(h,{className:"h-4 w-4"})})),C=forwardRef(({className:e,...r},o)=>jsx(Carousel.IndicatorGroup,{ref:o,className:a("flex items-center justify-center gap-2",e),...r})),d=forwardRef(({className:e,...r},o)=>jsx(Carousel.Indicator,{ref:o,className:a("bg-primary-100 hover:bg-primary-400 data-[current]:bg-primary-500 h-2 w-2 rounded-full shadow transition-all duration-300 data-[current]:scale-125",e),...r})),f=forwardRef(({className:e,...r},o)=>jsx(Carousel.ItemGroup,{ref:o,className:a("flex overflow-hidden",e),...r})),P=forwardRef(({className:e,...r},o)=>jsx(Carousel.Item,{ref:o,className:a("w-full flex-none",e),...r})),v=forwardRef(({className:e,...r},o)=>jsx("div",{ref:o,className:a("overflow-hidden rounded-lg",e),...r})),R=Object.assign(p,{Root:p,Control:c,PrevTrigger:m,NextTrigger:g,IndicatorGroup:C,Indicator:d,ItemGroup:f,Item:P,Viewport:v});export{p as a,c as b,m as c,g as d,C as e,d as f,f as g,P as h,v as i,R as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-GFVJRSZI.js';import {a as a$2}from'./chunk-CA5XNVS5.js';import {p}from'./chunk-Q4CWL65C.js';import {a as a$3}from'./chunk-OBZIYJO7.js';import {useState,useRef,useMemo,useEffect}from'react';import*as L from'@radix-ui/react-portal';import {format}from'date-fns';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var B=["00:00:00","00:30:00","01:00:00","01:30:00","02:00:00","02:30:00","03:00:00","03:30:00","04:00:00","04:30:00","05:00:00","05:30:00","06:00:00","06:30:00","07:00:00","07:30:00","08:00:00","08:30:00","09:00:00","09:30:00","10:00:00","10:30:00","11:00:00","11:30:00","12:00:00","12:30:00","13:00:00","13:30:00","14:00:00","14:30:00","15:00:00","15:30:00","16:00:00","16:30:00","17:00:00","17:30:00","18:00:00","18:30:00","19:00:00","19:30:00","20:00:00","20:30:00","21:00:00","21:30:00","22:00:00","22:30:00","23:00:00","23:30:00"],v=56,a=6,D=({value:c,onChange:h,locale:b,minTime:p$1,maxTime:u,...k})=>{let[R,m]=useState(false),[l,f]=useState(c),[t,P]=useState(),[F,O]=useState("bottom"),w=useRef(null),o=useRef(null),M=e=>{f(e),h?.(e),m(false);},N=useMemo(()=>l?format(new Date("2024-01-01T"+l),"p"):"",[l,b]),z=()=>{f(void 0),h?.(void 0);},n=useMemo(()=>B.map(e=>({value:e,label:format(new Date("2024-01-01T"+e),"p"),disabled:p$1&&e<p$1||u&&e>u})),[b,p$1,u]);return useEffect(()=>{f(c);},[c]),a$1(w,()=>{m(false);}),useEffect(()=>{if(!o.current)return;let e=()=>{if(!o.current)return;let i=v*(n.length<a?n.length:a)+16,s=o.current.getBoundingClientRect();P(s);let H=window.innerHeight-s.bottom>i,S=s.top+s.height>i;O(H?"bottom":S?"top":"bottom");};return e(),o.current.addEventListener("mousedown",e),window.addEventListener("scroll",e,true),window.addEventListener("resize",e),()=>{o.current?.removeEventListener("mousedown",e),window.removeEventListener("scroll",e,true),window.removeEventListener("resize",e);}},[o.current]),jsxs(Fragment,{children:[jsx(a$2,{ref:o,autoComplete:"off",startIcon:jsx(p,{}),onClean:z,readOnly:true,value:N,onClick:e=>{P(e.currentTarget.getBoundingClientRect()),m(i=>!i);},...k}),jsx(L.Root,{children:jsx("div",{ref:w,className:a$3("elevation-8 pointer-events-auto fixed z-50 my-2 hidden max-h-84 w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",R&&"block"),style:t?{width:`${t.width}px`,top:F==="bottom"?`${t.height+t.top}px`:t.top-(n.length<a?n.length:a)*v-16,left:t?.left}:void 0,children:n.map(e=>jsx("div",{onClick:()=>!e.disabled&&M(e.value),className:a$3("flex w-full items-center px-2 hover:cursor-pointer",!e.disabled&&"hover:bg-primary-100",l===e.value&&"bg-primary-200",e.disabled&&"text-neutral-500 hover:cursor-not-allowed"),style:{height:v},children:e.label},e.value))})})]})};D.displayName="TimePicker_old";export{D as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {k as k$1}from'./chunk-Q4CWL65C.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var I=e=>e==null||typeof e=="number"||typeof e=="string"?false:typeof e=="function"?true:typeof e=="object"&&"$$typeof"in e&&typeof e.render=="function";var l=tv({base:"font-jakarta text-2xs flex size-full items-center justify-center rounded-full border font-medium ring-1 ring-offset-1 ring-offset-white",variants:{state:{wait:"border-neutral-400 bg-neutral-100 text-neutral-600 ring-neutral-300",active:"border-primary-400 bg-primary-50 text-primary-500 ring-primary-300",success:"border-success-500 bg-success-300 text-success-800 ring-success-300",current:"border-primary-400 bg-primary-100 text-primary-600 ring-transparent",complete:"border-primary-600 bg-primary-600 ring-primary-600 text-neutral-50"}},defaultVariants:{state:"wait"}}),G=12,h=1.5,c=28,S=c/2,D={x:S,y:S},f=216,P=7,x=15,a=10,g=f+a,R=g+P,y=R+a,_=y+x,E=_+a,w=E+P,L=[{startDeg:0,endDeg:f},{startDeg:g,endDeg:R},{startDeg:y,endDeg:_},{startDeg:E,endDeg:w}],d=(e,t,n)=>{let r=(n-90)*Math.PI/180;return {x:e.x+t*Math.cos(r),y:e.y+t*Math.sin(r)}},O=(e,t,n,r)=>{let o=d(e,t,n),i=d(e,t,r),v=r-n>180?1:0;return `M ${o.x} ${o.y} A ${t} ${t} 0 ${v} 1 ${i.x} ${i.y}`},A=()=>jsx("svg",{"aria-hidden":true,viewBox:`0 0 ${c} ${c}`,className:"text-primary-500 pointer-events-none absolute -inset-1 size-7",children:L.map(({startDeg:e,endDeg:t},n)=>jsx("path",{d:O(D,G,e,t),fill:"none",stroke:"currentColor",strokeWidth:h,strokeLinecap:"round"},n))}),b=(e,t)=>{if(e==="success")return k$1;if(!t)throw new Error('StepItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return t},$=(e,t,n,r)=>{if(t==="icon"){if(e==="success")return {state:"success",variant:"icon"};if(!I(n))throw new Error('StepItem: `content` (LucideIcon) is required when `variant` is "icon" and `state` is not "success".');return {state:e,variant:"icon",content:n}}if(t==="number"){if(typeof n!="number")throw new Error('StepItem: `content` (number) is required when `variant` is "number".');return {state:e,variant:"number",content:n}}if(r===void 0)throw new Error("StepItem: `stepNumber` is required when `variant` is omitted (legacy API).");return {state:e,stepNumber:r}},k=e=>e.variant==="icon"?e.state==="success"?{variant:"icon",content:b("success")}:{variant:"icon",content:b(e.state,e.content)}:e.variant==="number"?{variant:"number",content:e.content}:{variant:"number",content:e.stepNumber},T=({variant:e,content:t})=>e==="icon"?jsx(t,{className:"size-3 shrink-0","aria-hidden":true}):t,z=({state:e,variant:t,content:n,stepNumber:r,className:o,...i})=>{let m=k($(e,t,n,r));return jsxs("div",{className:a$1("relative inline-flex size-5 shrink-0",o),...i,children:[jsx("div",{className:l({state:e}),children:T(m)}),e==="current"&&jsx(A,{})]})};export{I as a,b,z as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2YYGM3SN.js';import {a}from'./chunk-KTD2GEB6.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {jsxs,jsx}from'react/jsx-runtime';var s={md:"h-(--height-input-md)",lg:"h-(--height-input)"},p=({size:i=b,className:r})=>jsxs("div",{className:a$1("flex w-full flex-col gap-2",r),children:[jsx(a,{className:"h-4 w-15 rounded-sm"}),jsx(a,{className:a$1(s[i],"w-full rounded-lg")})]});export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-R6NIURLZ.js';import {d}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-R6NIURLZ.js';import {d}from'./chunk-Q4CWL65C.js';import {a}from'./chunk-OBZIYJO7.js';import*as e from'@radix-ui/react-tabs';import o from'react';import {tv}from'tailwind-variants';import {jsx,jsxs}from'react/jsx-runtime';var k=["ghost","fill","fillWithCloseButton"],D=["sm","md"],y=tv({base:"group relative shrink-0 px-4 leading-[130%] text-neutral-900 transition-all disabled:text-neutral-500",variants:{variant:{ghost:"not-disabled:hover:bg-primary-100 rounded-sm font-semibold",fill:"[&:not(:disabled)]:aria-selected:elevation-10 not-disabled:hover:border-primary-300 not-disabled:hover:text-primary-700 not-disabled:aria-selected:text-primary-500 rounded-lg rounded-b-none! border-1 border-b-0! border-transparent aria-selected:bg-neutral-50 aria-selected:font-semibold",fillWithCloseButton:"[&:not(:disabled)]:aria-selected:elevation-10 bg-primary-100 not-disabled:hover:border-primary-300 not-disabled:hover:bg-primary-100 not-disabled:hover:text-primary-700 not-disabled:aria-selected:text-primary-500 rounded-lg rounded-b-none! border-1 border-b-0! border-transparent aria-selected:font-semibold not-disabled:not-[&:hover]:aria-selected:bg-neutral-50 not-disabled:hover:aria-selected:border-transparent not-disabled:hover:aria-selected:bg-neutral-50"},size:{sm:"h-10 text-sm",md:"h-12 text-base"}}}),P=tv({base:"mr-2 flex shrink-0 transition-all ease-linear group-aria-selected:not-disabled:text-neutral-900",variants:{size:{sm:"",md:""}}}),C=tv({base:"group-aria-selected:bg-primary-500 absolute bottom-0 h-0 w-full rounded-sm transition-all group-disabled:bg-neutral-500 group-aria-selected:h-1 group-disabled:group-aria-selected:h-0",variants:{variant:{ghost:"flex",fill:"hidden",fillWithCloseButton:"hidden"}}}),R=tv({variants:{variant:{ghost:"",fill:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:right-0 before:left-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']",fillWithCloseButton:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:right-0 before:left-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']"},size:{sm:"",md:""}},compoundVariants:[{variant:"fill",size:"sm",className:"before:top-10"},{variant:"fill",size:"md",className:"before:top-12"},{variant:"fillWithCloseButton",size:"sm",className:"before:top-10"},{variant:"fillWithCloseButton",size:"md",className:"before:top-12"}]}),f=o.createContext({}),I=o.forwardRef(({className:i,size:a$1="sm",variant:t="ghost",...s},l)=>jsx(f.Provider,{value:{size:a$1,variant:t},children:jsx(e.Root,{"data-tab-variant":t,ref:l,...s,className:a(i,"relative")})})),N=o.forwardRef(({className:i,...a$1},t)=>{let{variant:s}=o.useContext(f);return jsx(e.List,{ref:t,...a$1,className:a("no-scrollbar flex max-w-full space-x-2 overflow-x-scroll",s!=="ghost"&&"px-6",i)})});N.displayName=e.List.displayName;var z=o.forwardRef(({className:i,badgeNumber:a$2,disabled:t,variant:s,StartIcon:l,onClose:T,...v},h)=>{let{size:d$1,variant:x}=o.useContext(f),n=s??x;return jsx(e.Trigger,{"data-tab-variant":n,ref:h,disabled:t,className:y({size:d$1,variant:n,className:i}),...v,children:jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsxs("div",{className:"flex items-center justify-center",children:[l&&jsx(l,{className:P({size:d$1}),size:d$1==="sm"?12:14}),v.children,jsxs("div",{className:a("flex items-center gap-1 empty:hidden",n==="ghost"&&"ml-1",n==="fill"&&"ml-3",n==="fillWithCloseButton"&&"ml-3"),children:[!t&&a$2&&jsx(a$1,{variant:"alert",size:d$1==="sm"?"sm":"md",content:String(a$2)}),n==="fillWithCloseButton"&&jsx(d,{onPointerDown:p=>{p.preventDefault(),p.stopPropagation(),T?.(p);},className:"transition-colors group-aria-selected:not-disabled:text-neutral-900",size:14})]})]}),jsx("div",{className:C({variant:n})})]})})});z.displayName=e.Trigger.displayName;var W=o.forwardRef(({className:i,...a},t)=>{let{variant:s,size:l}=o.useContext(f);return jsx(e.Content,{ref:t,className:R({variant:s,size:l,className:i}),...a})});W.displayName=e.Content.displayName;export{k as a,D as b,I as c,N as d,z as e,W as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-Q4CWL65C.js';import {a}from'./chunk-OBZIYJO7.js';import {forwardRef}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var w=["lg","md"],H=["neutral","primary"],M=["fill","outlined"],x=tv({slots:{container:"flex cursor-default items-center rounded px-2 py-1 ring transition-all ring-inset focus-within:ring-3",startIcon:"mr-1.5",closeButton:"ml-2 cursor-pointer focus-visible:outline-none",closeIcon:""},variants:{color:{neutral:{},primary:{}},variant:{fill:{},outlined:{}},size:{lg:{container:"min-h-7 text-sm leading-[142%] font-medium",startIcon:"size-3.5",closeIcon:"size-3.5"},md:{container:"min-h-6 text-xs leading-[133%] font-medium",startIcon:"size-3",closeIcon:"size-3"}},disabled:{true:{container:"cursor-not-allowed"},false:{container:"focus-within:ring-primary-800"}}},compoundVariants:[{disabled:false,color:"neutral",variant:"fill",className:{container:"bg-neutral-200 text-neutral-800 ring-neutral-500 hover:bg-neutral-300"}},{disabled:true,color:"neutral",variant:"fill",className:{container:"bg-neutral-200 text-neutral-600 ring-neutral-400"}},{disabled:false,color:"primary",variant:"fill",className:{container:"bg-primary-100 text-primary-600 ring-primary-400 hover:bg-primary-200"}},{disabled:true,color:"primary",variant:"fill",className:{container:"bg-neutral-200 text-neutral-600 ring-neutral-400"}},{disabled:false,color:"neutral",variant:"outlined",className:{container:"hover:bg-primary-100 bg-neutral-50 text-neutral-800 ring-neutral-800"}},{disabled:true,color:"neutral",variant:"outlined",className:{container:"bg-neutral-50 text-neutral-600 ring-neutral-400"}},{disabled:false,color:"primary",variant:"outlined",className:{container:"text-primary-600 ring-primary-600 hover:bg-primary-100 bg-neutral-50"}},{disabled:true,color:"primary",variant:"outlined",className:{container:"bg-neutral-50 text-neutral-600 ring-neutral-400"}}],defaultVariants:{disabled:false,size:"md"}}),N=forwardRef(({children:i,onClose:o,StartIcon:r,className:l,hasCloseIcon:s=true,disabled:a$1,color:c,variant:u,size:p,...m},d$1)=>{let{container:f,startIcon:g,closeButton:b,closeIcon:y}=x({color:c,variant:u,size:p,disabled:a$1});return jsxs("span",{ref:d$1,className:a(f(),l),...m,children:[r&&jsx(r,{"aria-hidden":true,className:g()}),i,s&&!a$1&&jsx("button",{type:"button","aria-label":"Remove",onClick:I=>{I.stopPropagation(),o?.();},className:b(),children:jsx(d,{"aria-hidden":true,className:y()})})]})});N.displayName="ChipInput";export{w as a,H as b,M as c,N as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c,d}from'./chunk-
|
|
1
|
+
import {c,d}from'./chunk-QJOYOR4B.js';import {a as a$2}from'./chunk-VIMWKUML.js';import {a}from'./chunk-6MK7NLF5.js';import {a as a$1}from'./chunk-OBZIYJO7.js';import {Field}from'@ark-ui/react/field';import {forwardRef,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';var n=0,f=t=>{let e=document.activeElement;if(!e||e.type!=="number")return;document.elementFromPoint(t.clientX,t.clientY)===e&&t.preventDefault();},x=()=>{useEffect(()=>(n===0&&document.addEventListener("wheel",f,{passive:false}),n+=1,()=>{n-=1,n===0&&document.removeEventListener("wheel",f);}),[]);};var L=forwardRef(({className:t,disabled:e,error:o,helperText:v,label:T,readOnly:m,required:s,tooltip:E,...h},b)=>{x();let l=c({error:o,disabled:e,readOnly:m});return jsxs(Field.Root,{"data-error":o,disabled:e,readOnly:m,className:l.root({className:t}),children:[jsx(a,{as:Field.Label,label:T,required:s,tooltip:E}),jsxs("div",{className:l.control(),children:[jsx(Field.Input,{ref:b,required:s,className:l.input(),...h}),o&&jsx("div",{className:a$1(l.trailing(),"cursor-text"),children:jsx(d,{})})]}),jsx(a$2,{as:Field.HelperText,children:v})]})});L.displayName="TextField";export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-Y62GJUE5.js';import {c as c$1}from'./chunk-JYNJHAGL.js';import {a as a$2}from'./chunk-JW7HS6NX.js';import {d}from'./chunk-MP4CHZ2K.js';import {e as e$1}from'./chunk-PI7DECIN.js';import {a as a$1}from'./chunk-HIULYFIC.js';import {e,t,u}from'./chunk-Q4CWL65C.js';import {e as e$2}from'./chunk-6V4ZY7YY.js';import {a as a$3}from'./chunk-P6B33GL6.js';import {a}from'./chunk-OBZIYJO7.js';import {useCallback}from'react';import {tv}from'tailwind-variants';import {useCollapsibleContext,Collapsible}from'@ark-ui/react/collapsible';import {getDefaultOptions}from'date-fns';import {jsxs,jsx}from'react/jsx-runtime';var c=tv({slots:{root:"ring-expandable-card-border group/expandable-card flex h-fit flex-col rounded-lg ring transition-all duration-200 ease-in-out ring-inset",header:"flex pt-3 pr-1 pb-2 pl-3",headerLabel:"text-sm leading-[130%] font-semibold empty:hidden",complementaryText:"line-clamp-1 text-xs leading-[130%] text-neutral-900",subtitle:"line-clamp-1 text-xs leading-[130%] text-neutral-700",content:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up border-expandable-card-border overflow-hidden group-data-[state=open]/expandable-card:border-t",contentInner:"px-3 pt-4 pb-6",fixedContent:"border-expandable-card-border border-t px-3 pt-6 pb-4"},variants:{background:{white:{root:"bg-neutral-50"},gray:{root:"bg-neutral-100"}}},defaultVariants:{background:"white"}}),G=(a,e)=>e?.startsWith("es")?a?"Contraer":"Expandir":e?.startsWith("pt")?a?"Recolher":"Expandir":a?"Collapse":"Expand",gt=({headerLabel:a$4,complementaryText:e$3,subtitle:o,headerTooltip:n,className:m,action:i,chipStatus:l,badgeExpandable:p,chipExpandable:h,badgeNumber:b$1,Icon:v,iconButtons:w,checkbox:x,...D})=>{let{header:M,headerLabel:O,complementaryText:F,subtitle:A}=c(),E=useCollapsibleContext(),{locale:R}=getDefaultOptions(),S=G(E.open,R?.code);return jsxs("div",{...D,className:a(M(),m),children:[x&&jsx(b,{...x,className:a("mt-0.25 mr-1",x.className)}),jsxs("div",{className:"flex flex-1 flex-col gap-1",children:[jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxs("div",{className:"flex items-center gap-2",children:[v&&jsx(v,{className:"h-3.5 w-3.5 shrink-0"}),jsxs("div",{className:"flex items-center gap-2",children:[jsx("b",{className:O(),children:a$4}),e$3&&jsx("span",{className:F(),children:e$3}),n&&jsx(a$1,{content:n,contentClassName:"font-normal normal-case",children:jsx(e,{className:"h-3.5 w-3.5 shrink-0"})})]})]}),jsxs("div",{className:"flex items-center gap-2",children:[l&&jsx(d,{...l,size:"xs",type:"light"}),h&&jsx(c$1,{...h,type:"light"}),p&&jsx(a$2,{...p,size:"md"}),b$1&&jsx(a$3,{text:b$1.text,affix:b$1.affix,size:"md",variant:"primary",type:"square"}),w?.map((d,C)=>{let{tooltipContent:N,...U}=d;return jsx(a$1,{content:N,disabled:!N,children:jsx(e$1,{...U,variant:"ghost",tone:"neutral",size:"sm"})},C)}),i&&(()=>{let{tooltipContent:d,...C}=i;return jsx(a$1,{content:d,disabled:!d,children:jsx(e$2,{...C,size:"sm",variant:"ghost",tone:"neutral"})})})(),jsx(a$1,{content:S,asChild:true,children:jsx(Collapsible.Trigger,{asChild:true,children:jsx(e$1,{Icon:E.open?t:u,variant:"ghost",size:"sm",tone:"neutral"})})})]})]}),o&&jsx("p",{className:A(),children:o})]})]})},ft=({className:a,...e})=>{let{contentInner:o,content:n}=c();return jsx(Collapsible.Content,{className:n(),children:jsx("div",{...e,className:o({className:a})})})},ht=({className:a,...e})=>{let{fixedContent:o}=c();return jsx("div",{...e,className:o({className:a})})},vt=({className:a,onOpenChange:e,children:o,background:n="white",...m})=>{let{root:i}=c({background:n}),l=useCallback(p=>{e?.(p);},[e]);return jsx(Collapsible.Root,{onOpenChange:l,className:i({className:a}),...m,children:o})};export{gt as a,ft as b,ht as c,vt as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {i,h}from'./chunk-Q4CWL65C.js';import {a}from'./chunk-OBZIYJO7.js';import {DatePickerRootProvider,useDatePicker,parseDate,DatePicker}from'@ark-ui/react/date-picker';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var y=DatePickerRootProvider,w=useDatePicker,P=parseDate,C=({className:o,context:r,...t})=>r?jsx(DatePicker.RootProvider,{value:r,children:jsx(m,{className:o})}):jsx(DatePicker.Root,{...t,open:true,selectionMode:"single",numOfMonths:1,value:t.value?[P(t.value)]:void 0,asChild:true,children:jsx(m,{className:o})}),m=({className:o})=>jsx("div",{className:a("w-full max-w-150 min-w-70 rounded-xl bg-neutral-50 p-3 ring ring-neutral-200 ring-inset",o),children:jsx(DatePicker.View,{view:"day",children:jsx(DatePicker.Context,{children:r=>jsxs(Fragment,{children:[jsxs(DatePicker.ViewControl,{className:"flex items-center justify-between p-2",children:[jsx(DatePicker.PrevTrigger,{className:"cursor-pointer p-1.75",children:jsx(i,{className:"size-4.5"})}),jsx(DatePicker.ViewTrigger,{disabled:true,children:jsx(DatePicker.RangeText,{className:"font-inter text-base leading-[140%] font-semibold text-neutral-900"})}),jsx(DatePicker.NextTrigger,{className:"cursor-pointer p-1.75",children:jsx(h,{className:"size-4.5"})})]}),jsxs(DatePicker.Table,{className:"mt-3 w-full",children:[jsx(DatePicker.TableHead,{children:jsx(DatePicker.TableRow,{children:r.weekDays.map((t,l)=>jsx(DatePicker.TableHeader,{className:"font-inter h-10 w-[9.34579439%] text-sm font-semibold text-neutral-900",children:t.narrow},l))})}),jsx(DatePicker.TableBody,{children:r.weeks.map((t,l)=>jsx(DatePicker.TableRow,{children:t.map((s,u)=>jsx(DatePicker.TableCell,{value:s,className:"relative before:block before:pb-[87.7%] before:content-['']",children:jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsx(DatePicker.TableCellTrigger,{className:a("font-base font-inter flex size-8 cursor-pointer items-center justify-center rounded-full text-sm leading-[142.86%] text-neutral-900 transition-colors","[&:not([data-today])]:[&:not([data-disabled])]:[&:not([data-selected])]:hover:bg-primary-50","data-outside-range:cursor-not-allowed data-outside-range:text-neutral-400","data-disabled:cursor-not-allowed data-disabled:text-neutral-400","data-selected:bg-primary-500 data-selected:text-neutral-50","data-selected:hover:bg-primary-300 data-selected:hover:text-neutral-900","data-today:ring-primary-500 [&:not([data-selected])]:[&:not([data-disabled])]:data-today:text-primary-500 [&:not([data-selected])]:data-today:ring","[&:not([data-selected])]:[&:not([data-disabled])]:data-today:hover:ring-primary-600 [&:not([data-selected])]:[&:not([data-disabled])]:data-today:hover:text-primary-600","data-disabled:data-today:text-neutral-400 data-disabled:data-today:ring-neutral-400"),children:s.day})})},u))},l))})]})]})})})});export{y as a,w as b,P as c,C as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$8}from'./chunk-XMXLUNEU.js';import {a as a$6}from'./chunk-JW7HS6NX.js';import {a as a$7}from'./chunk-FHABUQAH.js';import {a as a$4}from'./chunk-
|
|
1
|
+
import {a as a$8}from'./chunk-XMXLUNEU.js';import {a as a$6}from'./chunk-JW7HS6NX.js';import {a as a$7}from'./chunk-FHABUQAH.js';import {a as a$4}from'./chunk-76J4QR6W.js';import {a as a$3}from'./chunk-ZMMNEYEQ.js';import {a,b,c,d}from'./chunk-QJOYOR4B.js';import {a as a$5}from'./chunk-VIMWKUML.js';import {a as a$1}from'./chunk-6MK7NLF5.js';import {a as a$2}from'./chunk-OBZIYJO7.js';import {createListCollection,useCombobox,Combobox,useComboboxContext}from'@ark-ui/react/combobox';import {useFilter}from'@ark-ui/react/locale';import {Portal}from'@ark-ui/react/portal';import {useMemo,useRef,useState,useCallback,useEffect}from'react';import {jsxs,jsx}from'react/jsx-runtime';function me(){let n=useComboboxContext(),r=useRef(n);r.current=n;let i=n.value.join("|"),m=n.inputValue.length>0,d=n.collection.size;return useEffect(()=>{if(!i||m||!d)return;let s=r.current.collection.stringify(r.current.value[0]);s&&r.current.setInputValue(s);},[i,m,d]),null}var De=a,de=b,be=n=>{let{label:r,error:i,required:m,tooltip:d$1,disabled:s,readOnly:S,options:u,onInputValueChange:y,onSelect:b,defaultValue:A,helperText:K,noResultsTitle:O,noResultsDescription:U,noResultsIcon:_,noResultsTitleLines:J,noResultsDescriptionLines:Q,value:l,size:W=de,className:X,emptyState:Y,...Z}=n,$=Object.getOwnPropertyNames(n),R=typeof l=="object"&&l!==null?l.value:l,f=useMemo(()=>typeof l!="object"||l===null||u.some(e=>e.value===l.value)?u:[l,...u],[u,l]),g=useRef(null),ee=useMemo(()=>({sensitivity:"base"}),[]),{contains:I}=useFilter(ee),[x,te]=useState(""),V=useMemo(()=>createListCollection({items:f,itemToString:e=>e.label,itemToValue:e=>String(e.value)}),[f]),a=useMemo(()=>x?V.filter((e,w,v)=>I(e,x)||!!v.description&&I(v.description,x)):V,[V,x,I]),c$1=useCallback(e=>{te(e??"");},[]),oe=useCallback(e=>{let w=f.find(v=>String(v.value)===e.itemValue);w&&b?.(w);},[b,f]),ne=useCallback(e=>{if(e.reason==="input-change"){c$1(e.inputValue),y?.(e.inputValue??"");return}c$1(""),e.reason==="clear-trigger"&&y?.("");},[c$1,y]),le=useCombobox({collection:a,defaultValue:A!=null?[String(A)]:void 0,placeholder:n.placeholder,inputValue:n.inputValue,onInputValueChange:ne,value:$.includes("value")?R!=null?[String(R)]:[]:void 0,onSelect:oe,inputBehavior:"autocomplete",openOnClick:true,disabled:s,readOnly:S,...Z}),re=useCallback(()=>{b?.(null);},[b]);useEffect(()=>{g.current&&g.current.value===""&&c$1("");},[c$1,g.current?.value]);let N=c({error:i,disabled:s,readOnly:S,size:W});return jsxs(Combobox.RootProvider,{value:le,"data-error":i||void 0,className:N.root({className:X}),children:[jsx(a$1,{as:Combobox.Label,label:r,required:m,tooltip:d$1}),jsx(me,{}),jsxs(Combobox.Control,{className:a$2(N.control(),"group/control items-center justify-between gap-2 overflow-hidden px-3",s&&"cursor-not-allowed"),children:[jsx(Combobox.Input,{ref:g,className:a$2(N.input(),"data-placeholder-shown:text-input-placeholder px-0 text-left disabled:cursor-not-allowed")}),i&&jsx(d,{}),!S&&jsx(a$3,{as:Combobox.ClearTrigger,className:"group-data-disabled/control:hidden",onClick:re}),jsx(Combobox.Trigger,{className:"group/chevron-host cursor-pointer group-data-disabled/control:cursor-not-allowed",children:jsx(a$4,{})})]}),jsx(a$5,{children:K}),jsx(Portal,{children:jsx(Combobox.Positioner,{children:jsx(Combobox.Content,{className:"elevation-9 z-layer bg-input-bg max-h-67.5 min-w-27.5 overflow-auto rounded-lg",children:jsxs(Combobox.ItemGroup,{className:a$2({"flex flex-col items-center justify-center":a.items.length===0}),children:[a.items.length>0&&a.items.map(e=>jsx(Combobox.Item,{item:e,className:"font-inter data-highlighted:bg-primary-100 block w-full cursor-pointer p-3 data-disabled:cursor-not-allowed data-disabled:text-neutral-400",children:jsx(Combobox.ItemText,{className:"flex w-full min-w-0 flex-col gap-1",asChild:true,children:jsxs("div",{className:"w-full min-w-0",children:[jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[jsx("p",{className:"min-w-0 flex-1 truncate text-sm leading-[130%] font-medium",children:e.label}),e.badgeExpandable&&jsx("div",{className:"flex shrink-0 justify-end overflow-visible",children:jsx(a$6,{size:"sm",...e.badgeExpandable})})]}),e.description&&jsx("p",{className:"text-xs leading-[130%]",children:e.description})]})})},e.value)),a.items.length===0&&O&&jsx(a$7,{title:O,description:U,Icon:_,descriptionLines:Q,titleLines:J}),a.items.length===0&&jsx(a$8,{size:"sm",variant:"not-found",...Y})]})})})})]})};be.displayName="Autocomplete";export{De as a,de as b,be as c};
|