anarock-widgets 1.0.30 → 1.0.32

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.
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap";/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-100:oklch(95.4% .038 75.164);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-green-50:oklch(98.2% .018 155.826);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-600:oklch(59.6% .145 163.225);--color-purple-50:oklch(97.7% .014 308.299);--color-rose-600:oklch(58.6% .253 17.585);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--anarock-font:"Outfit",sans-serif}body{font-family:var(--anarock-font)}}@layer components;@layer utilities{.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.\!absolute{position:absolute!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-\[20px\]{top:20px}.left-0{left:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-10{z-index:10}.col-span-5{grid-column:span 5/span 5}.col-span-7{grid-column:span 7/span 7}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.\!m-0{margin:calc(var(--spacing)*0)!important}.\!my-0{margin-block:calc(var(--spacing)*0)!important}.my-4{margin-block:calc(var(--spacing)*4)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-2\.5{margin-top:calc(var(--spacing)*2.5)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-\[6px\]{margin-top:6px}.mt-\[8px\]{margin-top:8px}.mt-\[12px\]{margin-top:12px}.mt-\[16px\]{margin-top:16px}.mt-\[24px\]{margin-top:24px}.mt-\[35\.5px\]{margin-top:35.5px}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-\[16px\]{margin-bottom:16px}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.table{display:table}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-\[6px\]{height:6px}.h-\[7px\]{height:7px}.h-\[15px\]{height:15px}.h-\[48px\]{height:48px}.h-\[62px\]{height:62px}.h-\[66px\]{height:66px}.h-\[68px\]{height:68px}.h-\[76px\]{height:76px}.h-\[98px\]{height:98px}.h-\[105px\]{height:105px}.h-\[106px\]{height:106px}.h-\[110px\]{height:110px}.h-\[111px\]{height:111px}.h-\[124px\]{height:124px}.h-\[126px\]{height:126px}.h-\[128px\]{height:128px}.h-\[132px\]{height:132px}.h-\[158px\]{height:158px}.h-\[162px\]{height:162px}.h-\[170px\]{height:170px}.h-\[181px\]{height:181px}.h-\[182px\]{height:182px}.h-\[184px\]{height:184px}.h-\[186px\]{height:186px}.h-\[192px\]{height:192px}.h-\[232px\]{height:232px}.h-\[235px\]{height:235px}.h-\[238px\]{height:238px}.h-\[250px\]{height:250px}.h-\[251px\]{height:251px}.h-\[254px\]{height:254px}.h-\[259px\]{height:259px}.h-\[303px\]{height:303px}.h-\[305px\]{height:305px}.h-\[360px\]{height:360px}.h-\[362px\]{height:362px}.h-\[523px\]{height:523px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\[184px\]{max-height:184px}.max-h-\[186px\]{max-height:186px}.max-h-\[303px\]{max-height:303px}.max-h-\[305px\]{max-height:305px}.min-h-0{min-height:calc(var(--spacing)*0)}.w-2{width:calc(var(--spacing)*2)}.w-2\/3{width:66.6667%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-\[7px\]{width:7px}.w-\[15px\]{width:15px}.w-\[50\%\]{width:50%}.w-\[158px\]{width:158px}.w-\[162px\]{width:162px}.w-\[214px\]{width:214px}.w-\[215px\]{width:215px}.w-\[353px\]{width:353px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\[80px\]{min-width:80px}.min-w-\[84px\]{min-width:84px}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.\!columns-1{-moz-columns:1!important;columns:1!important}.break-inside-avoid{-moz-column-break-inside:avoid;break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.\!gap-\[0px\]{gap:0!important}.\!gap-\[16px\]{gap:16px!important}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-\[4px\]{gap:4px}.gap-\[8px\]{gap:8px}.gap-\[12px\]{gap:12px}.gap-\[16px\]{gap:16px}.gap-\[24px\]{gap:24px}.gap-\[28px\]{gap:28px}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-\[24px\]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(24px*var(--tw-space-y-reverse));margin-block-end:calc(24px*calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.\!rounded-\[12px\]{border-radius:12px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.\!border-\[0\.5px\]{border-style:var(--tw-border-style)!important;border-width:.5px!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.\!border-\[\#EBEBEB\]{border-color:#ebebeb!important}.border-\[\#EBEBEB\]{border-color:#ebebeb}.border-\[\#FAFBFD\]{border-color:#fafbfd}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-300{border-color:var(--color-gray-300)}.bg-\[\#1FA05B\]{background-color:#1fa05b}.bg-\[\#3C82F6\]{background-color:#3c82f6}.bg-\[\#8B5CF6\]{background-color:#8b5cf6}.bg-\[\#12B981\]{background-color:#12b981}.bg-\[\#121212\]{background-color:#121212}.bg-\[\#AB0000\]{background-color:#ab0000}.bg-\[\#E6F2FF\]{background-color:#e6f2ff}.bg-\[\#E6F7EE\]{background-color:#e6f7ee}.bg-\[\#E7A015\]{background-color:#e7a015}.bg-\[\#EDF6FF\]{background-color:#edf6ff}.bg-\[\#F0FFF7\]{background-color:#f0fff7}.bg-\[\#F6F6F6\]{background-color:#f6f6f6}.bg-\[\#F7FEFA\]{background-color:#f7fefa}.bg-\[\#F8FAFC\]{background-color:#f8fafc}.bg-\[\#F9FAFB\]{background-color:#f9fafb}.bg-\[\#FAFBFD\]{background-color:#fafbfd}.bg-\[\#FBF4F4\]{background-color:#fbf4f4}.bg-\[\#FBF5FF\]{background-color:#fbf5ff}.bg-\[\#FFF2F2\]{background-color:#fff2f2}.bg-\[\#FFFBF2\]{background-color:#fffbf2}.bg-black{background-color:var(--color-black)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-green-50{background-color:var(--color-green-50)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-\[16px\]{padding:16px}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-\[8px\]{padding-top:8px}.pt-\[12px\]{padding-top:12px}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-\[8px\]{padding-bottom:8px}.text-center{text-align:center}.text-right{text-align:right}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\!text-\[10px\]{font-size:10px!important}.\!text-\[12px\]{font-size:12px!important}.\!text-\[14px\]{font-size:14px!important}.\!text-\[16px\]{font-size:16px!important}.\!text-\[24px\]{font-size:24px!important}.\!text-\[28px\]{font-size:28px!important}.text-\[10\.75px\]{font-size:10.75px}.text-\[10px\]{font-size:10px}.text-\[12\.07px\]{font-size:12.07px}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[19\.35px\]{font-size:19.35px}.text-\[20px\]{font-size:20px}.text-\[28px\]{font-size:28px}.\!leading-\[14px\]{--tw-leading:14px!important;line-height:14px!important}.\!leading-\[16px\]{--tw-leading:16px!important;line-height:16px!important}.\!leading-\[20px\]{--tw-leading:20px!important;line-height:20px!important}.\!leading-\[32px\]{--tw-leading:32px!important;line-height:32px!important}.leading-\[12\.59px\]{--tw-leading:12.59px;line-height:12.59px}.leading-\[12px\]{--tw-leading:12px;line-height:12px}.leading-\[14px\]{--tw-leading:14px;line-height:14px}.leading-\[15\.05px\]{--tw-leading:15.05px;line-height:15.05px}.leading-\[16\.09px\]{--tw-leading:16.09px;line-height:16.09px}.leading-\[16px\]{--tw-leading:16px;line-height:16px}.leading-\[18px\]{--tw-leading:18px;line-height:18px}.leading-\[20px\]{--tw-leading:20px;line-height:20px}.leading-\[23\.65px\]{--tw-leading:23.65px;line-height:23.65px}.leading-\[28px\]{--tw-leading:28px;line-height:28px}.leading-\[32px\]{--tw-leading:32px;line-height:32px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\!font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.whitespace-nowrap{white-space:nowrap}.\!text-\[\#8B5CF6\]{color:#8b5cf6!important}.\!text-\[\#64748B\]{color:#64748b!important}.\!text-\[\#121212\]{color:#121212!important}.text-\[\#1FA05B\]{color:#1fa05b}.text-\[\#3C81F6\]{color:#3c81f6}.text-\[\#3C82F6\]{color:#3c82f6}.text-\[\#08B6D4\]{color:#08b6d4}.text-\[\#8B5CF6\]{color:#8b5cf6}.text-\[\#12B981\]{color:#12b981}.text-\[\#36AB6C\]{color:#36ab6c}.text-\[\#37CC6D\]{color:#37cc6d}.text-\[\#329DFF\]{color:#329dff}.text-\[\#884EA7\]{color:#884ea7}.text-\[\#64748B\]{color:#64748b}.text-\[\#121212\]{color:#121212}.text-\[\#AB0000\]{color:#ab0000}.text-\[\#D1D3D4\]{color:#d1d3d4}.text-\[\#DBB467\]{color:#dbb467}.text-\[\#E7A015\]{color:#e7a015}.text-\[\#EF4444\]{color:#ef4444}.text-\[\#F59E0B\]{color:#f59e0b}.text-\[\#F69E0A\]{color:#f69e0a}.text-\[\#FA7E28\]{color:#fa7e28}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-rose-600{color:var(--color-rose-600)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.overline{text-decoration-line:overline}.\!shadow-\[0_0_12px_0_\#EAF2FF\]{--tw-shadow:0 0 12px 0 var(--tw-shadow-color,#eaf2ff)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-\[0_0_12px_0_\#EAF2FF\]{--tw-shadow:0 0 12px 0 var(--tw-shadow-color,#eaf2ff);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media (hover:hover){.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-purple-50:hover{background-color:var(--color-purple-50)}.hover\:bg-slate-50:hover{background-color:var(--color-slate-50)}}@media (min-width:40rem){.sm\:w-auto{width:auto}.sm\:\!columns-2{-moz-columns:2!important;columns:2!important}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:px-8{padding-inline:calc(var(--spacing)*8)}}@media (min-width:48rem){.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,1\.5fr\)_minmax\(0\,3\.5fr\)\]{grid-template-columns:minmax(0,1.5fr) minmax(0,3.5fr)}.lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,4fr\)\]{grid-template-columns:minmax(0,1fr) minmax(0,4fr)}.lg\:grid-cols-\[minmax\(0\,4fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,4fr) minmax(0,1fr)}}@media (min-width:80rem){.xl\:\!columns-3{-moz-columns:3!important;columns:3!important}}}:root{--anarock-font:"Outfit"!important}body,button,input,select,textarea{font-family:var(--anarock-font)}.my-custom-class{color:#123456;padding:10px}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
1
+ @import"https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap";/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-orange-100:oklch(95.4% .038 75.164);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-green-50:oklch(98.2% .018 155.826);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-600:oklch(59.6% .145 163.225);--color-purple-50:oklch(97.7% .014 308.299);--color-rose-600:oklch(58.6% .253 17.585);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--anarock-font:"Outfit",sans-serif}body{font-family:var(--anarock-font)}}@layer components;@layer utilities{.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.\!absolute{position:absolute!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-\[20px\]{top:20px}.left-0{left:calc(var(--spacing)*0)}.isolate{isolation:isolate}.\!z-\[10\]{z-index:10!important}.\!z-\[50\]{z-index:50!important}.col-span-5{grid-column:span 5/span 5}.col-span-7{grid-column:span 7/span 7}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.\!m-0{margin:calc(var(--spacing)*0)!important}.\!my-0{margin-block:calc(var(--spacing)*0)!important}.my-4{margin-block:calc(var(--spacing)*4)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-2\.5{margin-top:calc(var(--spacing)*2.5)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-\[6px\]{margin-top:6px}.mt-\[8px\]{margin-top:8px}.mt-\[12px\]{margin-top:12px}.mt-\[16px\]{margin-top:16px}.mt-\[24px\]{margin-top:24px}.mt-\[35\.5px\]{margin-top:35.5px}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-\[16px\]{margin-bottom:16px}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.table{display:table}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-\[6px\]{height:6px}.h-\[7px\]{height:7px}.h-\[15px\]{height:15px}.h-\[48px\]{height:48px}.h-\[62px\]{height:62px}.h-\[66px\]{height:66px}.h-\[68px\]{height:68px}.h-\[76px\]{height:76px}.h-\[98px\]{height:98px}.h-\[105px\]{height:105px}.h-\[106px\]{height:106px}.h-\[110px\]{height:110px}.h-\[111px\]{height:111px}.h-\[124px\]{height:124px}.h-\[126px\]{height:126px}.h-\[128px\]{height:128px}.h-\[132px\]{height:132px}.h-\[158px\]{height:158px}.h-\[162px\]{height:162px}.h-\[170px\]{height:170px}.h-\[181px\]{height:181px}.h-\[182px\]{height:182px}.h-\[184px\]{height:184px}.h-\[186px\]{height:186px}.h-\[192px\]{height:192px}.h-\[232px\]{height:232px}.h-\[235px\]{height:235px}.h-\[238px\]{height:238px}.h-\[250px\]{height:250px}.h-\[251px\]{height:251px}.h-\[254px\]{height:254px}.h-\[259px\]{height:259px}.h-\[303px\]{height:303px}.h-\[305px\]{height:305px}.h-\[360px\]{height:360px}.h-\[362px\]{height:362px}.h-\[523px\]{height:523px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\[184px\]{max-height:184px}.max-h-\[186px\]{max-height:186px}.max-h-\[303px\]{max-height:303px}.max-h-\[305px\]{max-height:305px}.min-h-0{min-height:calc(var(--spacing)*0)}.w-2{width:calc(var(--spacing)*2)}.w-2\/3{width:66.6667%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-\[7px\]{width:7px}.w-\[15px\]{width:15px}.w-\[50\%\]{width:50%}.w-\[158px\]{width:158px}.w-\[162px\]{width:162px}.w-\[214px\]{width:214px}.w-\[215px\]{width:215px}.w-\[353px\]{width:353px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\[80px\]{min-width:80px}.min-w-\[84px\]{min-width:84px}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.\!columns-1{-moz-columns:1!important;columns:1!important}.break-inside-avoid{-moz-column-break-inside:avoid;break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.\!gap-\[0px\]{gap:0!important}.\!gap-\[16px\]{gap:16px!important}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-\[4px\]{gap:4px}.gap-\[8px\]{gap:8px}.gap-\[12px\]{gap:12px}.gap-\[16px\]{gap:16px}.gap-\[24px\]{gap:24px}.gap-\[28px\]{gap:28px}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-\[24px\]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(24px*var(--tw-space-y-reverse));margin-block-end:calc(24px*calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.\!rounded-\[12px\]{border-radius:12px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.\!border-\[0\.5px\]{border-style:var(--tw-border-style)!important;border-width:.5px!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.\!border-\[\#EBEBEB\]{border-color:#ebebeb!important}.border-\[\#EBEBEB\]{border-color:#ebebeb}.border-\[\#FAFBFD\]{border-color:#fafbfd}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-300{border-color:var(--color-gray-300)}.bg-\[\#1FA05B\]{background-color:#1fa05b}.bg-\[\#3C82F6\]{background-color:#3c82f6}.bg-\[\#8B5CF6\]{background-color:#8b5cf6}.bg-\[\#12B981\]{background-color:#12b981}.bg-\[\#121212\]{background-color:#121212}.bg-\[\#AB0000\]{background-color:#ab0000}.bg-\[\#E6F2FF\]{background-color:#e6f2ff}.bg-\[\#E6F7EE\]{background-color:#e6f7ee}.bg-\[\#E7A015\]{background-color:#e7a015}.bg-\[\#EDF6FF\]{background-color:#edf6ff}.bg-\[\#F0FFF7\]{background-color:#f0fff7}.bg-\[\#F6F6F6\]{background-color:#f6f6f6}.bg-\[\#F7FEFA\]{background-color:#f7fefa}.bg-\[\#F8FAFC\]{background-color:#f8fafc}.bg-\[\#F9FAFB\]{background-color:#f9fafb}.bg-\[\#FAFBFD\]{background-color:#fafbfd}.bg-\[\#FBF4F4\]{background-color:#fbf4f4}.bg-\[\#FBF5FF\]{background-color:#fbf5ff}.bg-\[\#FFF2F2\]{background-color:#fff2f2}.bg-\[\#FFFBF2\]{background-color:#fffbf2}.bg-black{background-color:var(--color-black)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-green-50{background-color:var(--color-green-50)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-\[16px\]{padding:16px}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-\[8px\]{padding-top:8px}.pt-\[12px\]{padding-top:12px}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-\[8px\]{padding-bottom:8px}.text-center{text-align:center}.text-right{text-align:right}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\!text-\[10px\]{font-size:10px!important}.\!text-\[12px\]{font-size:12px!important}.\!text-\[14px\]{font-size:14px!important}.\!text-\[16px\]{font-size:16px!important}.\!text-\[24px\]{font-size:24px!important}.\!text-\[28px\]{font-size:28px!important}.text-\[10\.75px\]{font-size:10.75px}.text-\[10px\]{font-size:10px}.text-\[12\.07px\]{font-size:12.07px}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[19\.35px\]{font-size:19.35px}.text-\[20px\]{font-size:20px}.text-\[28px\]{font-size:28px}.\!leading-\[14px\]{--tw-leading:14px!important;line-height:14px!important}.\!leading-\[16px\]{--tw-leading:16px!important;line-height:16px!important}.\!leading-\[20px\]{--tw-leading:20px!important;line-height:20px!important}.\!leading-\[32px\]{--tw-leading:32px!important;line-height:32px!important}.leading-\[12\.59px\]{--tw-leading:12.59px;line-height:12.59px}.leading-\[12px\]{--tw-leading:12px;line-height:12px}.leading-\[14px\]{--tw-leading:14px;line-height:14px}.leading-\[15\.05px\]{--tw-leading:15.05px;line-height:15.05px}.leading-\[16\.09px\]{--tw-leading:16.09px;line-height:16.09px}.leading-\[16px\]{--tw-leading:16px;line-height:16px}.leading-\[18px\]{--tw-leading:18px;line-height:18px}.leading-\[20px\]{--tw-leading:20px;line-height:20px}.leading-\[23\.65px\]{--tw-leading:23.65px;line-height:23.65px}.leading-\[28px\]{--tw-leading:28px;line-height:28px}.leading-\[32px\]{--tw-leading:32px;line-height:32px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\!font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.whitespace-nowrap{white-space:nowrap}.\!text-\[\#8B5CF6\]{color:#8b5cf6!important}.\!text-\[\#64748B\]{color:#64748b!important}.\!text-\[\#121212\]{color:#121212!important}.text-\[\#1FA05B\]{color:#1fa05b}.text-\[\#3C81F6\]{color:#3c81f6}.text-\[\#3C82F6\]{color:#3c82f6}.text-\[\#08B6D4\]{color:#08b6d4}.text-\[\#8B5CF6\]{color:#8b5cf6}.text-\[\#12B981\]{color:#12b981}.text-\[\#36AB6C\]{color:#36ab6c}.text-\[\#37CC6D\]{color:#37cc6d}.text-\[\#329DFF\]{color:#329dff}.text-\[\#884EA7\]{color:#884ea7}.text-\[\#64748B\]{color:#64748b}.text-\[\#121212\]{color:#121212}.text-\[\#AB0000\]{color:#ab0000}.text-\[\#D1D3D4\]{color:#d1d3d4}.text-\[\#DBB467\]{color:#dbb467}.text-\[\#E7A015\]{color:#e7a015}.text-\[\#EF4444\]{color:#ef4444}.text-\[\#F59E0B\]{color:#f59e0b}.text-\[\#F69E0A\]{color:#f69e0a}.text-\[\#FA7E28\]{color:#fa7e28}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-rose-600{color:var(--color-rose-600)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.overline{text-decoration-line:overline}.\!shadow-\[0_0_12px_0_\#EAF2FF\]{--tw-shadow:0 0 12px 0 var(--tw-shadow-color,#eaf2ff)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-\[0_0_12px_0_\#EAF2FF\]{--tw-shadow:0 0 12px 0 var(--tw-shadow-color,#eaf2ff);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media (hover:hover){.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-purple-50:hover{background-color:var(--color-purple-50)}.hover\:bg-slate-50:hover{background-color:var(--color-slate-50)}}@media (min-width:40rem){.sm\:w-auto{width:auto}.sm\:\!columns-2{-moz-columns:2!important;columns:2!important}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:px-8{padding-inline:calc(var(--spacing)*8)}}@media (min-width:48rem){.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,1\.5fr\)_minmax\(0\,3\.5fr\)\]{grid-template-columns:minmax(0,1.5fr) minmax(0,3.5fr)}.lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,4fr\)\]{grid-template-columns:minmax(0,1fr) minmax(0,4fr)}.lg\:grid-cols-\[minmax\(0\,4fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,4fr) minmax(0,1fr)}}@media (min-width:80rem){.xl\:\!columns-3{-moz-columns:3!important;columns:3!important}}}:root{--anarock-font:"Outfit"!important}body,button,input,select,textarea{font-family:var(--anarock-font)}.my-custom-class{color:#123456;padding:10px}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
package/dist/index.cjs.js CHANGED
@@ -196,7 +196,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
196
196
  *
197
197
  * This source code is licensed under the MIT license found in the
198
198
  * LICENSE file in the root directory of this source tree.
199
- */var yb;function Q8(){return yb||(yb=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;Pf.useSyncExternalStoreWithSelector=function(l,c,u,f,d){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=o(function(){function g(w){if(!v){if(v=!0,b=w,w=f(w),d!==void 0&&m.hasValue){var O=m.value;if(d(O,w))return x=O}return x=w}if(O=x,r(b,w))return O;var E=f(w);return d!==void 0&&d(O,E)?(b=w,O):(b=w,x=E)}var v=!1,b,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,f,d]);var p=n(l,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Pf}var bb;function ez(){return bb||(bb=1,process.env.NODE_ENV==="production"?hs.exports=J8():hs.exports=Q8()),hs.exports}ez();function tz(e){e()}function rz(){let e=null,t=null;return{clear(){e=null,t=null},notify(){tz(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var xb={notify(){},get:()=>[]};function nz(e,t){let r,n=xb,i=0,a=!1;function o(p){u();const g=n.subscribe(p);let v=!1;return()=>{v||(v=!0,g(),f())}}function s(){n.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return a}function u(){i++,r||(r=e.subscribe(l),n=rz())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=xb)}function d(){a||(a=!0,u())}function h(){a&&(a=!1,f())}const m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return m}var iz=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",az=iz(),oz=()=>typeof navigator<"u"&&navigator.product==="ReactNative",sz=oz(),lz=()=>az||sz?A.useLayoutEffect:A.useEffect,cz=lz(),uz=Symbol.for("react-redux-context"),fz=typeof globalThis<"u"?globalThis:{};function dz(){if(!A.createContext)return{};const e=fz[uz]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(A.createContext,t)),t}var hz=dz();function pz(e){const{children:t,context:r,serverState:n,store:i}=e,a=A.useMemo(()=>{const l=nz(i),c={store:i,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:u})}},[i,n]),o=A.useMemo(()=>i.getState(),[i]);cz(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const s=r||hz;return A.createElement(s.Provider,{value:a},t)}var mz=pz,gz=(e,t)=>t,Gp=N([gz,ue,d2,ft,nS,an,S$,ct],C$),Xp=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},rO=lr("mouseClick"),nO=wo();nO.startListening({actionCreator:rO,effect:(e,t)=>{var r=e.payload,n=Gp(t.getState(),Xp(r));n?.activeIndex!=null&&t.dispatch(M4({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var $d=lr("mouseMove"),iO=wo();iO.startListening({actionCreator:$d,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=bp(n,n.tooltip.settings.shared),a=Gp(n,Xp(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(X2({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(G2()))}});var wb={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},aO=Qt({name:"rootProps",initialState:wb,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:wb.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),vz=aO.reducer,{updateOptions:yz}=aO.actions,oO=Qt({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:bz}=oO.actions,xz=oO.reducer,sO=lr("keyDown"),lO=lr("focus"),Zp=wo();Zp.startListening({actionCreator:sO,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(xp(i,oa(r))),s=an(r);if(a==="Enter"){var l=gl(r,"axis","hover",String(i.index));t.dispatch(Cd({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:l}));return}var c=_4(r),u=c==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,d=o+f*u;if(!(s==null||d>=s.length||d<0)){var h=gl(r,"axis","hover",String(d));t.dispatch(Cd({active:!0,activeIndex:d.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}});Zp.startListening({actionCreator:lO,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=gl(r,"axis","hover",String(a));t.dispatch(Cd({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var ir=lr("externalEvent"),cO=wo();cO.startListening({actionCreator:ir,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:h$(r),activeDataKey:sS(r),activeIndex:xn(r),activeLabel:oS(r),activeTooltipIndex:xn(r),isTooltipActive:p$(r)};e.payload.handler(n,e.payload.reactEvent)}}});var wz=N([aa],e=>e.tooltipItemPayloads),_z=N([wz,No,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(s=>s.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),uO=lr("touchMove"),fO=wo();fO.startListening({actionCreator:uO,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=bp(n,n.tooltip.settings.shared);if(i==="axis"){var a=Gp(n,Xp({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(X2({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=r.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(qw),u=(o=l.getAttribute(Yw))!==null&&o!==void 0?o:void 0,f=_z(t.getState(),c,u);t.dispatch(Y2({activeDataKey:u,activeIndex:c,activeCoordinate:f}))}}});var Sz=mw({brush:s3,cartesianAxis:z6,chartData:H$,errorBars:oB,graphicalItems:o6,layout:Rj,legend:OD,options:F$,polarAxis:SF,polarOptions:xz,referenceElements:p3,rootProps:vz,tooltip:j4}),Oz=function(t){return sj({reducer:Sz,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([nO.middleware,iO.middleware,Zp.middleware,cO.middleware,fO.middleware]),devTools:En.devToolsEnabled})};function dO(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Ft(),a=k.useRef(null);if(i)return r;a.current==null&&(a.current=Oz(t));var o=ph;return A.createElement(mz,{context:o,store:a.current},r)}function hO(e){var{layout:t,width:r,height:n,margin:i}=e,a=et(),o=Ft();return k.useEffect(()=>{o||(a(Dj(t)),a(Nj({width:r,height:n})),a(jj(i)))},[a,o,t,r,n,i]),null}function pO(e){var t=et();return k.useEffect(()=>{t(yz(e))},[t,e]),null}var Az=["children"];function Ez(e,t){if(e==null)return{};var r,n,i=Pz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Pz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Al.apply(null,arguments)}var Cz={width:"100%",height:"100%"},kz=k.forwardRef((e,t)=>{var r=Xw(),n=Zw(),i=t_();if(!Wi(r)||!Wi(n))return null;var{children:a,otherAttributes:o,title:s,desc:l}=e,c,u;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?u=o.role:u=i?"application":void 0,A.createElement(R1,Al({},o,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:Cz,ref:t}),a)}),Tz=e=>{var{children:t}=e,r=G(cc);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return A.createElement(R1,{width:n,height:i,x:o,y:a},t)},_b=k.forwardRef((e,t)=>{var{children:r}=e,n=Ez(e,Az),i=Ft();return i?A.createElement(Tz,null,r):A.createElement(kz,Al({ref:t},n),r)});function Mz(){var e=et(),[t,r]=k.useState(null),n=G(fD);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Jt(a)&&a!==n&&e(Ij(a))}},[t,e,n]),r}function Sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(r),!0).forEach(function(n){Dz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dz(e,t,r){return(t=Nz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nz(e){var t=Iz(e,"string");return typeof t=="symbol"?t:t+""}function Iz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rz=k.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:m,onTouchStart:p,style:g,width:v}=e,b=et(),[x,S]=k.useState(null),[w,O]=k.useState(null);Q$();var E=Mz(),C=k.useCallback(V=>{E(V),typeof t=="function"&&t(V),S(V),O(V)},[E,t,S,O]),M=k.useCallback(V=>{b(rO(V)),b(ir({handler:a,reactEvent:V}))},[b,a]),R=k.useCallback(V=>{b($d(V)),b(ir({handler:c,reactEvent:V}))},[b,c]),j=k.useCallback(V=>{b(G2()),b(ir({handler:u,reactEvent:V}))},[b,u]),_=k.useCallback(V=>{b($d(V)),b(ir({handler:f,reactEvent:V}))},[b,f]),I=k.useCallback(()=>{b(lO())},[b]),D=k.useCallback(V=>{b(sO(V.key))},[b]),L=k.useCallback(V=>{b(ir({handler:o,reactEvent:V}))},[b,o]),W=k.useCallback(V=>{b(ir({handler:s,reactEvent:V}))},[b,s]),H=k.useCallback(V=>{b(ir({handler:l,reactEvent:V}))},[b,l]),te=k.useCallback(V=>{b(ir({handler:d,reactEvent:V}))},[b,d]),Q=k.useCallback(V=>{b(ir({handler:p,reactEvent:V}))},[b,p]),F=k.useCallback(V=>{b(uO(V)),b(ir({handler:m,reactEvent:V}))},[b,m]),U=k.useCallback(V=>{b(ir({handler:h,reactEvent:V}))},[b,h]);return A.createElement(hS.Provider,{value:x},A.createElement(Fk.Provider,{value:w},A.createElement("div",{className:he("recharts-wrapper",n),style:jz({position:"relative",cursor:"default",width:v,height:i},g),onClick:M,onContextMenu:L,onDoubleClick:W,onFocus:I,onKeyDown:D,onMouseDown:H,onMouseEnter:R,onMouseLeave:j,onMouseMove:_,onMouseUp:te,onTouchEnd:U,onTouchMove:F,onTouchStart:Q,ref:C},r)))}),$z=["children","className","width","height","style","compact","title","desc"];function Lz(e,t){if(e==null)return{};var r,n,i=Fz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Fz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var mO=k.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:o,compact:s,title:l,desc:c}=e,u=Lz(e,$z),f=Dr(u);return s?A.createElement(_b,{otherAttributes:f,title:l,desc:c},r):A.createElement(Rz,{className:n,style:o,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},A.createElement(_b,{otherAttributes:f,title:l,desc:c,ref:t},A.createElement(g3,null,r)))}),Bz=["width","height"];function Ld(){return Ld=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ld.apply(null,arguments)}function zz(e,t){if(e==null)return{};var r,n,i=Wz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Wz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Vz={top:5,right:5,bottom:5,left:5},Hz={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Vz,reverseStackOrder:!1,syncMethod:"index"},gO=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,Hz),{width:a,height:o}=i,s=zz(i,Bz);if(!Wi(a)||!Wi(o))return null;var{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,eventEmitter:void 0};return A.createElement(dO,{preloadedState:{options:h},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:l},A.createElement(US,{chartData:d.data}),A.createElement(hO,{width:a,height:o,layout:i.layout,margin:i.margin}),A.createElement(pO,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(mO,Ld({},s,{width:a,height:o,ref:r})))}),Uz=["axis"],vO=k.forwardRef((e,t)=>A.createElement(gO,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Uz,tooltipPayloadSearcher:Cp,categoricalChartProps:e,ref:t})),Kz=["axis","item"],qz=k.forwardRef((e,t)=>A.createElement(gO,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Kz,tooltipPayloadSearcher:Cp,categoricalChartProps:e,ref:t}));function Yz(e){var t=et();return k.useEffect(()=>{t(bz(e))},[t,e]),null}var Gz=["width","height","layout"];function Fd(){return Fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fd.apply(null,arguments)}function Xz(e,t){if(e==null)return{};var r,n,i=Zz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Zz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Jz={top:5,right:5,bottom:5,left:5},Qz={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Jz,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},e7=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,Qz),{width:a,height:o,layout:s}=i,l=Xz(i,Gz);if(!Wi(a)||!Wi(o))return null;var{chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d}=t,h={chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,eventEmitter:void 0};return A.createElement(dO,{preloadedState:{options:h},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:c},A.createElement(US,{chartData:i.data}),A.createElement(hO,{width:a,height:o,layout:s,margin:i.margin}),A.createElement(pO,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(Yz,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),A.createElement(mO,Fd({width:a,height:o},l,{ref:r})))}),t7=["item"],r7={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},Mc=k.forwardRef((e,t)=>{var r=_t(e,r7);return A.createElement(e7,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:t7,tooltipPayloadSearcher:Cp,categoricalChartProps:r,ref:t})});function n7({isStatic:e,data:t}){const r=Number(t?.thisMonthMoveIns??t?.lastMonthMoveIns??0),n=Number(t?.thisMonthMoveOuts??t?.lastMonthMoveOuts??0),i=Number(t?.moveInPercentChange??t?.moveInChange??0),a=Number(t?.moveOutPercentChange??t?.moveOutChange??0),o=["#8B5CF6","#EBE4F9"],s=[{name:"Move-ins",value:r,color:o[0]},{name:"Move-outs",value:n,color:o[1]}];function l(c,u){return((Number(c)+Number(u))/2).toFixed(2)+"%"}return y.jsx(hi,{title:"Community",period:"This Month",icon:y.jsx(rh,{className:"!text-[24px] text-[#329DFF]"}),className:`${e&&"max-h-[184px]"} h-[184px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Move-in/Out Count"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium !text-[#8B5CF6]",children:r+n})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(C1,{value:l(i,a)}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to last month"})]})]}),y.jsx("div",{className:"w-[50%] h-[111px] flex justify-end",children:y.jsx(yi,{width:"75%",height:"100%",children:y.jsxs(Mc,{children:[y.jsxs(Ro,{data:s,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:[y.jsx(jr,{fill:o[0]}),y.jsx(jr,{fill:o[1]})]}),y.jsx(vi,{content:y.jsx(go,{})})]})})})]})})}function i7({isStatic:e,data:t}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],n=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return y.jsx(hi,{title:"Engagement",period:"This Month",icon:y.jsx(S1,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,children:y.jsx("div",{className:"w-full h-[235px]",children:y.jsx(yi,{width:"100%",height:"100%",children:y.jsxs(qz,{data:n,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[y.jsx(kc,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),y.jsx(no,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),y.jsx(Tc,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),y.jsx(vi,{content:y.jsx(go,{}),cursor:{fill:"transparent"}}),y.jsx(VS,{dataKey:"value",barSize:40,isAnimationActive:!1,children:n.map((i,a)=>y.jsx(jr,{fill:r[a]},i.name))})]})})})})}function a7(e){if(!e)return 0;const[t,r]=e.split(" ");let[n,i]=t.split(":").map(Number);return r==="PM"&&n!==12&&(n+=12),r==="AM"&&n===12&&(n=0),n*60+i}function o7(e){return Array.from({length:24},(n,i)=>i).map(n=>{const i=e.find(l=>{const c=a7(l.slot_start_time);return Math.floor(c/60)===n}),a=n>=12?"PM":"AM";return{time:`${n%12||12} ${a}`,bookings:i?.slot_bookings||0,total:i?.total_slots||0,utilization:i?.utilization_rate||0}})}function s7({isStatic:e,data:t}){const r=Number(t?.totalBookings||0),n=Number(t?.totalSlots||0),i=Number(t?.utilizationRate||0),a=k.useMemo(()=>t?.slots?.length?o7(t.slots):[],[t]),o=u=>["1 AM","6 AM","11 AM","5 PM","10 PM"].includes(u)?u:"",s=a.length>0?Math.max(...a.map(u=>u.total),5):5;function l(u){const f=u>=12?"PM":"AM";let d=u%12;return d===0&&(d=12),`${d} ${f}`}const c=a.length?a:Array.from({length:24},(u,f)=>({time:l(f),bookings:0,total:0,utilization:0}));return y.jsxs(hi,{title:"Facilities",period:"Today",icon:y.jsx(_1,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[y.jsxs("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px]",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:r})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Total Slots"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#F59E0B]",children:n})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),y.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[i.toFixed(2),"%"]})]})]}),y.jsx("div",{className:"w-full h-[170px]",children:y.jsx(yi,{width:"100%",height:"100%",children:y.jsxs(vO,{data:c,margin:{top:0,right:-30,left:-40,bottom:0},children:[y.jsx(kc,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(Tc,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),y.jsx(no,{yAxisId:"left",domain:[0,s],tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(no,{yAxisId:"right",orientation:"right",domain:[20,100],ticks:[20,40,60,80,100],tickFormatter:u=>`${u}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(vi,{content:y.jsx(go,{})}),y.jsx(ri,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),y.jsx(ri,{yAxisId:"left",type:"monotone",dataKey:"total",name:"Total Slots",stroke:"#F59E0B",strokeWidth:2,dot:!1}),y.jsx(ri,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function l7({data:e}){const t=e?.incomeSummary||{},r=e?.expenditureSummary||{},n=["AED","USD","EUR"],i=["Rs","INR","₹"];function a(s){if(s==null||isNaN(s))return"0";const l=Number(s);return l>=1e9?(l/1e9).toFixed(l%1e9===0?0:2)+"B":l>=1e6?(l/1e6).toFixed(l%1e6===0?0:2)+"M":l>=1e3?(l/1e3).toFixed(l%1e3===0?0:2)+"K":l.toFixed(l%1===0?0:2)}function o(s,l){return l?i.includes(l)?`${l} ${a(s)}`:n.includes(l)?`${a(s)} ${l}`:`${a(s)} ${l}`:a(s)}return y.jsx(hi,{title:"Income",period:"This Month",icon:y.jsx(_g,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",children:y.jsxs("div",{children:[y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Income"}),y.jsx("div",{children:"Collection"}),y.jsx("div",{children:"Closing"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[y.jsx("div",{children:o(t.opening_balance,t?.currency_type)}),y.jsx("div",{children:o(t.income,t?.currency_type)}),y.jsx("div",{children:o(t.collection,t?.currency_type)}),y.jsx("div",{children:o(t.closing_balance,t?.currency_type)})]}),y.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),y.jsx("div",{className:"flex items-center justify-between",children:y.jsxs("div",{className:"flex items-center gap-[12px]",children:[y.jsx(_g,{className:"!text-[24px] text-red-600"}),y.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Expenditure"}),y.jsx("div",{children:"Payment"}),y.jsx("div",{children:"Outstanding"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[y.jsx("div",{children:o(r.opening_balance,r?.currency_type)}),y.jsx("div",{children:o(r.expenditure,r?.currency_type)}),y.jsx("div",{children:o(r.payment,r?.currency_type)}),y.jsx("div",{children:o(r.outstanding,r?.currency_type)})]})]})})}function c7(e){const t=e>=12?"PM":"AM";let r=e%12;return r===0&&(r=12),`${r} ${t}`}function u7(e){return Array.from({length:24},(t,r)=>{const n=e.find(i=>i.hour===r)||{};return{hour:r,time:c7(r),walkins:n.walkins??0,checkins:n.preApproved??0,staffAttendance:n.staffAttendance??0}})}const Ci={walkins:"#1FA05B",preApproved:"#E7A015",staffAttendance:"#329DFF"};function f7({type:e,data:t}){if(!e||!t)return null;const r={activeWalkins:[["Currently Inside",t.currently_inside],["Absent Today",t.absent_today],["Total Visited Today",t.total_visited_today],["Total Staff",t.total_staff]],preApprovedCheckins:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today],["No Show",t.no_show],["Total Scheduled",t.total_scheduled]],staffAttendance:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today]]};return y.jsx(hi,{title:e==="activeWalkins"?"Active Walk-ins":e==="preApprovedCheckins"?"Pre-approved Check-ins":"Staff Checked-in",period:"Today",icon:y.jsx(nh,{className:`${e==="activeWalkins"?"text-[#1FA05B]":e==="preApprovedCheckins"?"text-[#E7A015]":"text-[#329DFF]"} !text-[24px]`}),className:"!gap-[0px] !absolute top-[20px] left-0 w-[353px] z-10 transition-all duration-200",children:y.jsx("div",{className:"flex flex-col gap-[8px] mt-[12px] pt-[12px] border-t border-dashed border-[#EBEBEB]",children:r[e].map(([n,i])=>y.jsxs("div",{className:"flex justify-between !text-[14px] !text-[#64748B]",children:[y.jsx("div",{children:n}),y.jsx("div",{className:"font-semibold text-gray-800",children:i??0})]},n))})})}function d7({isStatic:e,data:t}){const[r,n]=k.useState(null),i=t?.summary?.activeWalkins||{},a=t?.summary?.preApprovedCheckins||{},o=t?.summary?.staffAttendance||{},s=u7(t?.chart||[]),l=Math.max(...s.flatMap(f=>[f.walkins,f.checkins,f.staffAttendance])),c=l>0?l:5,u=[0,Math.ceil(c/2),c];return y.jsx(hi,{title:"Gate Updates",period:"Today",icon:y.jsx(nh,{className:"!text-[24px] text-[#37CC6D]"}),className:`${e?"max-h-[303px]":""} h-[251px] mb-4 break-inside-avoid`,children:y.jsxs("div",{children:[y.jsx("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px] relative",children:[{key:"activeWalkins",data:i,color:Ci.walkins,label:"Active Walk-ins"},{key:"staffAttendance",data:o,color:Ci.staffAttendance,label:"Staff Checked-in"},{key:"preApprovedCheckins",data:a,color:Ci.preApproved,label:"Pre-approved Check-ins"}].map(f=>y.jsxs("div",{className:"flex flex-col gap-[8px] relative",onMouseEnter:()=>n(f.key),onMouseLeave:()=>n(null),children:[y.jsx("div",{className:"text-[10px] text-[#64748B] whitespace-nowrap",children:f.label}),y.jsxs("div",{className:"text-[28px] font-medium flex items-center",style:{color:f.color},children:[f.key==="activeWalkins"?f.data?.visitor_in??0:f.key==="preApprovedCheckins"?f.data?.expected_pass_scanned??0:f.data?.total_in_now??0,y.jsxs("div",{className:"text-[20px] text-[#64748B] ml-1",children:["/",f.key==="activeWalkins"?f.data?.total_pass??0:f.key==="preApprovedCheckins"?f.data?.total_expected_pass??0:f.data?.total_in_today??0]})]}),r===f.key&&y.jsx(f7,{type:f.key,data:f.data})]},f.key))}),y.jsx("div",{className:"w-full h-[105px]",children:y.jsx(yi,{width:"100%",height:"100%",children:y.jsxs(vO,{data:s,margin:{top:1,right:0,left:-40,bottom:0},children:[y.jsx(kc,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(Tc,{dataKey:"time",tickFormatter:(f,d)=>d%4===0?f:"",tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1}),y.jsx(no,{tick:{fontSize:10,fill:"#64748B",fontWeight:400},ticks:u,domain:[0,c],allowDecimals:!1,axisLine:!1,tickLine:!1}),y.jsx(vi,{content:y.jsx(go,{})}),y.jsx(ri,{type:"monotone",dataKey:"walkins",stroke:Ci.walkins,strokeWidth:2,dot:!1,name:"Active Walk-ins"}),y.jsx(ri,{type:"monotone",dataKey:"checkins",stroke:Ci.preApproved,strokeWidth:2,strokeDasharray:"5 5",dot:!1,name:"Pre-approved"}),y.jsx(ri,{type:"monotone",dataKey:"staffAttendance",stroke:Ci.staffAttendance,strokeWidth:2,dot:!1,name:"Staff Attendance"})]})})})]})})}function h7({isStatic:e,data:t}){const r=["#1FA05B","#E7A015","#FA7E28","#EF4444","#CBD5E1"],n=[{name:"L1 Level",value:Number(t?.today_L1||0),color:r[0]},{name:"L2 Level",value:Number(t?.today_L2||0),color:r[1]},{name:"L3 Level",value:Number(t?.today_L3||0),color:r[2]},{name:"L4 Level",value:Number(t?.today_L4||0),color:r[3]}];n.reduce((a,o)=>a+o.value,0);const i=n;return y.jsx(hi,{title:"Helpdesk",period:"Today",icon:y.jsx(wk,{className:"!text-[24px] text-[#FA7E28]"}),className:`${e&&"max-h-[186px]"} h-[186px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex gap-[12px] h-fit",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Un-resolved Complaints"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium text-[#FA7E28]",children:t?.today_open_complaints??0})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(C1,{value:t?.percent_change}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to yesterday"})]})]}),y.jsx("div",{className:"w-[50%] h-[110px] flex justify-end",children:y.jsx(yi,{width:"75%",height:"100%",children:y.jsxs(Mc,{children:[y.jsx(Ro,{data:i,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:i.map((a,o)=>y.jsx(jr,{fill:r[o]||"#CBD5E1"},a.name))}),y.jsx(vi,{content:y.jsx(go,{})})]})})})]})})}/*!
199
+ */var yb;function Q8(){return yb||(yb=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;Pf.useSyncExternalStoreWithSelector=function(l,c,u,f,d){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=o(function(){function g(w){if(!v){if(v=!0,b=w,w=f(w),d!==void 0&&m.hasValue){var O=m.value;if(d(O,w))return x=O}return x=w}if(O=x,r(b,w))return O;var E=f(w);return d!==void 0&&d(O,E)?(b=w,O):(b=w,x=E)}var v=!1,b,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,f,d]);var p=n(l,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Pf}var bb;function ez(){return bb||(bb=1,process.env.NODE_ENV==="production"?hs.exports=J8():hs.exports=Q8()),hs.exports}ez();function tz(e){e()}function rz(){let e=null,t=null;return{clear(){e=null,t=null},notify(){tz(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var xb={notify(){},get:()=>[]};function nz(e,t){let r,n=xb,i=0,a=!1;function o(p){u();const g=n.subscribe(p);let v=!1;return()=>{v||(v=!0,g(),f())}}function s(){n.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return a}function u(){i++,r||(r=e.subscribe(l),n=rz())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=xb)}function d(){a||(a=!0,u())}function h(){a&&(a=!1,f())}const m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return m}var iz=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",az=iz(),oz=()=>typeof navigator<"u"&&navigator.product==="ReactNative",sz=oz(),lz=()=>az||sz?A.useLayoutEffect:A.useEffect,cz=lz(),uz=Symbol.for("react-redux-context"),fz=typeof globalThis<"u"?globalThis:{};function dz(){if(!A.createContext)return{};const e=fz[uz]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(A.createContext,t)),t}var hz=dz();function pz(e){const{children:t,context:r,serverState:n,store:i}=e,a=A.useMemo(()=>{const l=nz(i),c={store:i,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:u})}},[i,n]),o=A.useMemo(()=>i.getState(),[i]);cz(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const s=r||hz;return A.createElement(s.Provider,{value:a},t)}var mz=pz,gz=(e,t)=>t,Gp=N([gz,ue,d2,ft,nS,an,S$,ct],C$),Xp=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},rO=lr("mouseClick"),nO=wo();nO.startListening({actionCreator:rO,effect:(e,t)=>{var r=e.payload,n=Gp(t.getState(),Xp(r));n?.activeIndex!=null&&t.dispatch(M4({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var $d=lr("mouseMove"),iO=wo();iO.startListening({actionCreator:$d,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=bp(n,n.tooltip.settings.shared),a=Gp(n,Xp(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(X2({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(G2()))}});var wb={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},aO=Qt({name:"rootProps",initialState:wb,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:wb.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),vz=aO.reducer,{updateOptions:yz}=aO.actions,oO=Qt({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:bz}=oO.actions,xz=oO.reducer,sO=lr("keyDown"),lO=lr("focus"),Zp=wo();Zp.startListening({actionCreator:sO,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(xp(i,oa(r))),s=an(r);if(a==="Enter"){var l=gl(r,"axis","hover",String(i.index));t.dispatch(Cd({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:l}));return}var c=_4(r),u=c==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,d=o+f*u;if(!(s==null||d>=s.length||d<0)){var h=gl(r,"axis","hover",String(d));t.dispatch(Cd({active:!0,activeIndex:d.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}});Zp.startListening({actionCreator:lO,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=gl(r,"axis","hover",String(a));t.dispatch(Cd({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var ir=lr("externalEvent"),cO=wo();cO.startListening({actionCreator:ir,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:h$(r),activeDataKey:sS(r),activeIndex:xn(r),activeLabel:oS(r),activeTooltipIndex:xn(r),isTooltipActive:p$(r)};e.payload.handler(n,e.payload.reactEvent)}}});var wz=N([aa],e=>e.tooltipItemPayloads),_z=N([wz,No,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(s=>s.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),uO=lr("touchMove"),fO=wo();fO.startListening({actionCreator:uO,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=bp(n,n.tooltip.settings.shared);if(i==="axis"){var a=Gp(n,Xp({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(X2({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=r.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(qw),u=(o=l.getAttribute(Yw))!==null&&o!==void 0?o:void 0,f=_z(t.getState(),c,u);t.dispatch(Y2({activeDataKey:u,activeIndex:c,activeCoordinate:f}))}}});var Sz=mw({brush:s3,cartesianAxis:z6,chartData:H$,errorBars:oB,graphicalItems:o6,layout:Rj,legend:OD,options:F$,polarAxis:SF,polarOptions:xz,referenceElements:p3,rootProps:vz,tooltip:j4}),Oz=function(t){return sj({reducer:Sz,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([nO.middleware,iO.middleware,Zp.middleware,cO.middleware,fO.middleware]),devTools:En.devToolsEnabled})};function dO(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Ft(),a=k.useRef(null);if(i)return r;a.current==null&&(a.current=Oz(t));var o=ph;return A.createElement(mz,{context:o,store:a.current},r)}function hO(e){var{layout:t,width:r,height:n,margin:i}=e,a=et(),o=Ft();return k.useEffect(()=>{o||(a(Dj(t)),a(Nj({width:r,height:n})),a(jj(i)))},[a,o,t,r,n,i]),null}function pO(e){var t=et();return k.useEffect(()=>{t(yz(e))},[t,e]),null}var Az=["children"];function Ez(e,t){if(e==null)return{};var r,n,i=Pz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Pz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Al.apply(null,arguments)}var Cz={width:"100%",height:"100%"},kz=k.forwardRef((e,t)=>{var r=Xw(),n=Zw(),i=t_();if(!Wi(r)||!Wi(n))return null;var{children:a,otherAttributes:o,title:s,desc:l}=e,c,u;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?u=o.role:u=i?"application":void 0,A.createElement(R1,Al({},o,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:Cz,ref:t}),a)}),Tz=e=>{var{children:t}=e,r=G(cc);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return A.createElement(R1,{width:n,height:i,x:o,y:a},t)},_b=k.forwardRef((e,t)=>{var{children:r}=e,n=Ez(e,Az),i=Ft();return i?A.createElement(Tz,null,r):A.createElement(kz,Al({ref:t},n),r)});function Mz(){var e=et(),[t,r]=k.useState(null),n=G(fD);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Jt(a)&&a!==n&&e(Ij(a))}},[t,e,n]),r}function Sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(r),!0).forEach(function(n){Dz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dz(e,t,r){return(t=Nz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nz(e){var t=Iz(e,"string");return typeof t=="symbol"?t:t+""}function Iz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rz=k.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:m,onTouchStart:p,style:g,width:v}=e,b=et(),[x,S]=k.useState(null),[w,O]=k.useState(null);Q$();var E=Mz(),C=k.useCallback(V=>{E(V),typeof t=="function"&&t(V),S(V),O(V)},[E,t,S,O]),M=k.useCallback(V=>{b(rO(V)),b(ir({handler:a,reactEvent:V}))},[b,a]),R=k.useCallback(V=>{b($d(V)),b(ir({handler:c,reactEvent:V}))},[b,c]),j=k.useCallback(V=>{b(G2()),b(ir({handler:u,reactEvent:V}))},[b,u]),_=k.useCallback(V=>{b($d(V)),b(ir({handler:f,reactEvent:V}))},[b,f]),I=k.useCallback(()=>{b(lO())},[b]),D=k.useCallback(V=>{b(sO(V.key))},[b]),L=k.useCallback(V=>{b(ir({handler:o,reactEvent:V}))},[b,o]),W=k.useCallback(V=>{b(ir({handler:s,reactEvent:V}))},[b,s]),H=k.useCallback(V=>{b(ir({handler:l,reactEvent:V}))},[b,l]),te=k.useCallback(V=>{b(ir({handler:d,reactEvent:V}))},[b,d]),Q=k.useCallback(V=>{b(ir({handler:p,reactEvent:V}))},[b,p]),F=k.useCallback(V=>{b(uO(V)),b(ir({handler:m,reactEvent:V}))},[b,m]),U=k.useCallback(V=>{b(ir({handler:h,reactEvent:V}))},[b,h]);return A.createElement(hS.Provider,{value:x},A.createElement(Fk.Provider,{value:w},A.createElement("div",{className:he("recharts-wrapper",n),style:jz({position:"relative",cursor:"default",width:v,height:i},g),onClick:M,onContextMenu:L,onDoubleClick:W,onFocus:I,onKeyDown:D,onMouseDown:H,onMouseEnter:R,onMouseLeave:j,onMouseMove:_,onMouseUp:te,onTouchEnd:U,onTouchMove:F,onTouchStart:Q,ref:C},r)))}),$z=["children","className","width","height","style","compact","title","desc"];function Lz(e,t){if(e==null)return{};var r,n,i=Fz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Fz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var mO=k.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:o,compact:s,title:l,desc:c}=e,u=Lz(e,$z),f=Dr(u);return s?A.createElement(_b,{otherAttributes:f,title:l,desc:c},r):A.createElement(Rz,{className:n,style:o,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},A.createElement(_b,{otherAttributes:f,title:l,desc:c,ref:t},A.createElement(g3,null,r)))}),Bz=["width","height"];function Ld(){return Ld=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ld.apply(null,arguments)}function zz(e,t){if(e==null)return{};var r,n,i=Wz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Wz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Vz={top:5,right:5,bottom:5,left:5},Hz={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Vz,reverseStackOrder:!1,syncMethod:"index"},gO=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,Hz),{width:a,height:o}=i,s=zz(i,Bz);if(!Wi(a)||!Wi(o))return null;var{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,eventEmitter:void 0};return A.createElement(dO,{preloadedState:{options:h},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:l},A.createElement(US,{chartData:d.data}),A.createElement(hO,{width:a,height:o,layout:i.layout,margin:i.margin}),A.createElement(pO,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(mO,Ld({},s,{width:a,height:o,ref:r})))}),Uz=["axis"],vO=k.forwardRef((e,t)=>A.createElement(gO,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Uz,tooltipPayloadSearcher:Cp,categoricalChartProps:e,ref:t})),Kz=["axis","item"],qz=k.forwardRef((e,t)=>A.createElement(gO,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Kz,tooltipPayloadSearcher:Cp,categoricalChartProps:e,ref:t}));function Yz(e){var t=et();return k.useEffect(()=>{t(bz(e))},[t,e]),null}var Gz=["width","height","layout"];function Fd(){return Fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fd.apply(null,arguments)}function Xz(e,t){if(e==null)return{};var r,n,i=Zz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Zz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Jz={top:5,right:5,bottom:5,left:5},Qz={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Jz,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},e7=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,Qz),{width:a,height:o,layout:s}=i,l=Xz(i,Gz);if(!Wi(a)||!Wi(o))return null;var{chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d}=t,h={chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,eventEmitter:void 0};return A.createElement(dO,{preloadedState:{options:h},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:c},A.createElement(US,{chartData:i.data}),A.createElement(hO,{width:a,height:o,layout:s,margin:i.margin}),A.createElement(pO,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(Yz,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),A.createElement(mO,Fd({width:a,height:o},l,{ref:r})))}),t7=["item"],r7={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},Mc=k.forwardRef((e,t)=>{var r=_t(e,r7);return A.createElement(e7,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:t7,tooltipPayloadSearcher:Cp,categoricalChartProps:r,ref:t})});function n7({isStatic:e,data:t}){const r=Number(t?.thisMonthMoveIns??t?.lastMonthMoveIns??0),n=Number(t?.thisMonthMoveOuts??t?.lastMonthMoveOuts??0),i=Number(t?.moveInPercentChange??t?.moveInChange??0),a=Number(t?.moveOutPercentChange??t?.moveOutChange??0),o=["#8B5CF6","#EBE4F9"],s=[{name:"Move-ins",value:r,color:o[0]},{name:"Move-outs",value:n,color:o[1]}];function l(c,u){return((Number(c)+Number(u))/2).toFixed(2)+"%"}return y.jsx(hi,{title:"Community",period:"This Month",icon:y.jsx(rh,{className:"!text-[24px] text-[#329DFF]"}),className:`${e&&"max-h-[184px]"} h-[184px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Move-in/Out Count"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium !text-[#8B5CF6]",children:r+n})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(C1,{value:l(i,a)}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to last month"})]})]}),y.jsx("div",{className:"w-[50%] h-[111px] flex justify-end",children:y.jsx(yi,{width:"75%",height:"100%",children:y.jsxs(Mc,{children:[y.jsxs(Ro,{data:s,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:[y.jsx(jr,{fill:o[0]}),y.jsx(jr,{fill:o[1]})]}),y.jsx(vi,{content:y.jsx(go,{})})]})})})]})})}function i7({isStatic:e,data:t}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],n=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return y.jsx(hi,{title:"Engagement",period:"This Month",icon:y.jsx(S1,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,children:y.jsx("div",{className:"w-full h-[235px]",children:y.jsx(yi,{width:"100%",height:"100%",children:y.jsxs(qz,{data:n,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[y.jsx(kc,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),y.jsx(no,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),y.jsx(Tc,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),y.jsx(vi,{content:y.jsx(go,{}),cursor:{fill:"transparent"}}),y.jsx(VS,{dataKey:"value",barSize:40,isAnimationActive:!1,children:n.map((i,a)=>y.jsx(jr,{fill:r[a]},i.name))})]})})})})}function a7(e){if(!e)return 0;const[t,r]=e.split(" ");let[n,i]=t.split(":").map(Number);return r==="PM"&&n!==12&&(n+=12),r==="AM"&&n===12&&(n=0),n*60+i}function o7(e){return Array.from({length:24},(n,i)=>i).map(n=>{const i=e.find(l=>{const c=a7(l.slot_start_time);return Math.floor(c/60)===n}),a=n>=12?"PM":"AM";return{time:`${n%12||12} ${a}`,bookings:i?.slot_bookings||0,total:i?.total_slots||0,utilization:i?.utilization_rate||0}})}function s7({isStatic:e,data:t}){const r=Number(t?.totalBookings||0),n=Number(t?.totalSlots||0),i=Number(t?.utilizationRate||0),a=k.useMemo(()=>t?.slots?.length?o7(t.slots):[],[t]),o=u=>["1 AM","6 AM","11 AM","5 PM","10 PM"].includes(u)?u:"",s=a.length>0?Math.max(...a.map(u=>u.total),5):5;function l(u){const f=u>=12?"PM":"AM";let d=u%12;return d===0&&(d=12),`${d} ${f}`}const c=a.length?a:Array.from({length:24},(u,f)=>({time:l(f),bookings:0,total:0,utilization:0}));return y.jsxs(hi,{title:"Facilities",period:"Today",icon:y.jsx(_1,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[y.jsxs("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px]",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:r})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Total Slots"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#F59E0B]",children:n})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),y.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[i.toFixed(2),"%"]})]})]}),y.jsx("div",{className:"w-full h-[170px]",children:y.jsx(yi,{width:"100%",height:"100%",children:y.jsxs(vO,{data:c,margin:{top:0,right:-30,left:-40,bottom:0},children:[y.jsx(kc,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(Tc,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),y.jsx(no,{yAxisId:"left",domain:[0,s],tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(no,{yAxisId:"right",orientation:"right",domain:[20,100],ticks:[20,40,60,80,100],tickFormatter:u=>`${u}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(vi,{content:y.jsx(go,{})}),y.jsx(ri,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),y.jsx(ri,{yAxisId:"left",type:"monotone",dataKey:"total",name:"Total Slots",stroke:"#F59E0B",strokeWidth:2,dot:!1}),y.jsx(ri,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function l7({data:e}){const t=e?.incomeSummary||{},r=e?.expenditureSummary||{},n=["AED","USD","EUR"],i=["Rs","INR","₹"];function a(s){if(s==null||isNaN(s))return"0";const l=Number(s);return l>=1e9?(l/1e9).toFixed(l%1e9===0?0:2)+"B":l>=1e6?(l/1e6).toFixed(l%1e6===0?0:2)+"M":l>=1e3?(l/1e3).toFixed(l%1e3===0?0:2)+"K":l.toFixed(l%1===0?0:2)}function o(s,l){return l?i.includes(l)?`${l} ${a(s)}`:n.includes(l)?`${a(s)} ${l}`:`${a(s)} ${l}`:a(s)}return y.jsx(hi,{title:"Income",period:"This Month",icon:y.jsx(_g,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",children:y.jsxs("div",{children:[y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Income"}),y.jsx("div",{children:"Collection"}),y.jsx("div",{children:"Closing"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[y.jsx("div",{children:o(t.opening_balance,t?.currency_type)}),y.jsx("div",{children:o(t.income,t?.currency_type)}),y.jsx("div",{children:o(t.collection,t?.currency_type)}),y.jsx("div",{children:o(t.closing_balance,t?.currency_type)})]}),y.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),y.jsx("div",{className:"flex items-center justify-between",children:y.jsxs("div",{className:"flex items-center gap-[12px]",children:[y.jsx(_g,{className:"!text-[24px] text-red-600"}),y.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Expenditure"}),y.jsx("div",{children:"Payment"}),y.jsx("div",{children:"Outstanding"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[y.jsx("div",{children:o(r.opening_balance,r?.currency_type)}),y.jsx("div",{children:o(r.expenditure,r?.currency_type)}),y.jsx("div",{children:o(r.payment,r?.currency_type)}),y.jsx("div",{children:o(r.outstanding,r?.currency_type)})]})]})})}function c7(e){const t=e>=12?"PM":"AM";let r=e%12;return r===0&&(r=12),`${r} ${t}`}function u7(e){return Array.from({length:24},(t,r)=>{const n=e.find(i=>i.hour===r)||{};return{hour:r,time:c7(r),walkins:n.walkins??0,checkins:n.preApproved??0,staffAttendance:n.staffAttendance??0}})}const Ci={walkins:"#1FA05B",preApproved:"#E7A015",staffAttendance:"#329DFF"};function f7({type:e,data:t}){if(!e||!t)return null;const r={activeWalkins:[["Currently Inside",t.currently_inside],["Absent Today",t.absent_today],["Total Visited Today",t.total_visited_today],["Total Staff",t.total_staff]],preApprovedCheckins:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today],["No Show",t.no_show],["Total Scheduled",t.total_scheduled]],staffAttendance:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today]]};return y.jsx(hi,{title:e==="activeWalkins"?"Active Walk-ins":e==="preApprovedCheckins"?"Pre-approved Check-ins":"Staff Checked-in",period:"Today",icon:y.jsx(nh,{className:`${e==="activeWalkins"?"text-[#1FA05B]":e==="preApprovedCheckins"?"text-[#E7A015]":"text-[#329DFF]"} !text-[24px]`}),className:"!gap-[0px] !absolute top-[20px] left-0 w-[353px] !z-[50] transition-all duration-200",children:y.jsx("div",{className:"flex flex-col gap-[8px] mt-[12px] pt-[12px] border-t border-dashed border-[#EBEBEB]",children:r[e].map(([n,i])=>y.jsxs("div",{className:"flex justify-between !text-[14px] !text-[#64748B]",children:[y.jsx("div",{children:n}),y.jsx("div",{className:"font-semibold text-gray-800",children:i??0})]},n))})})}function d7({isStatic:e,data:t}){const[r,n]=k.useState(null),i=t?.summary?.activeWalkins||{},a=t?.summary?.preApprovedCheckins||{},o=t?.summary?.staffAttendance||{},s=u7(t?.chart||[]),l=Math.max(...s.flatMap(f=>[f.walkins,f.checkins,f.staffAttendance])),c=l>0?l:5,u=[0,Math.ceil(c/2),c];return y.jsx(hi,{title:"Gate Updates",period:"Today",icon:y.jsx(nh,{className:"!text-[24px] text-[#37CC6D]"}),className:`${e?"max-h-[303px]":""} h-[251px] mb-4 break-inside-avoid`,children:y.jsxs("div",{children:[y.jsx("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px] relative",children:[{key:"activeWalkins",data:i,color:Ci.walkins,label:"Active Walk-ins"},{key:"staffAttendance",data:o,color:Ci.staffAttendance,label:"Staff Checked-in"},{key:"preApprovedCheckins",data:a,color:Ci.preApproved,label:"Pre-approved Check-ins"}].map(f=>y.jsxs("div",{className:"flex flex-col gap-[8px] relative",onMouseEnter:()=>n(f.key),onMouseLeave:()=>n(null),children:[y.jsx("div",{className:"text-[10px] text-[#64748B] whitespace-nowrap",children:f.label}),y.jsxs("div",{className:"text-[28px] font-medium flex items-center",style:{color:f.color},children:[f.key==="activeWalkins"?f.data?.visitor_in??0:f.key==="preApprovedCheckins"?f.data?.expected_pass_scanned??0:f.data?.total_in_now??0,y.jsxs("div",{className:"text-[20px] text-[#64748B] ml-1",children:["/",f.key==="activeWalkins"?f.data?.total_pass??0:f.key==="preApprovedCheckins"?f.data?.total_expected_pass??0:f.data?.total_in_today??0]})]}),r===f.key&&y.jsx(f7,{type:f.key,data:f.data})]},f.key))}),y.jsx("div",{className:"w-full h-[105px]",children:y.jsx(yi,{width:"100%",height:"100%",children:y.jsxs(vO,{data:s,margin:{top:1,right:0,left:-40,bottom:0},children:[y.jsx(kc,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(Tc,{dataKey:"time",tickFormatter:(f,d)=>d%4===0?f:"",tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1}),y.jsx(no,{tick:{fontSize:10,fill:"#64748B",fontWeight:400},ticks:u,domain:[0,c],allowDecimals:!1,axisLine:!1,tickLine:!1}),y.jsx(vi,{content:y.jsx(go,{})}),y.jsx(ri,{type:"monotone",dataKey:"walkins",stroke:Ci.walkins,strokeWidth:2,dot:!1,name:"Active Walk-ins"}),y.jsx(ri,{type:"monotone",dataKey:"checkins",stroke:Ci.preApproved,strokeWidth:2,strokeDasharray:"5 5",dot:!1,name:"Pre-approved"}),y.jsx(ri,{type:"monotone",dataKey:"staffAttendance",stroke:Ci.staffAttendance,strokeWidth:2,dot:!1,name:"Staff Attendance"})]})})})]})})}function h7({isStatic:e,data:t}){const r=["#1FA05B","#E7A015","#FA7E28","#EF4444","#CBD5E1"],n=[{name:"L1 Level",value:Number(t?.today_L1||0),color:r[0]},{name:"L2 Level",value:Number(t?.today_L2||0),color:r[1]},{name:"L3 Level",value:Number(t?.today_L3||0),color:r[2]},{name:"L4 Level",value:Number(t?.today_L4||0),color:r[3]}];n.reduce((a,o)=>a+o.value,0);const i=n;return y.jsx(hi,{title:"Helpdesk",period:"Today",icon:y.jsx(wk,{className:"!text-[24px] text-[#FA7E28]"}),className:`${e&&"max-h-[186px]"} h-[186px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex gap-[12px] h-fit",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Un-resolved Complaints"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium text-[#FA7E28]",children:t?.today_open_complaints??0})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(C1,{value:t?.percent_change}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to yesterday"})]})]}),y.jsx("div",{className:"w-[50%] h-[110px] flex justify-end",children:y.jsx(yi,{width:"75%",height:"100%",children:y.jsxs(Mc,{children:[y.jsx(Ro,{data:i,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:i.map((a,o)=>y.jsx(jr,{fill:r[o]||"#CBD5E1"},a.name))}),y.jsx(vi,{content:y.jsx(go,{})})]})})})]})})}/*!
200
200
  * @kurkle/color v0.3.4
201
201
  * https://github.com/kurkle/color#readme
202
202
  * (c) 2024 Jukka Kurkela
package/dist/index.es.js CHANGED
@@ -22967,7 +22967,7 @@ function b7({ type: e, data: t }) {
22967
22967
  className: `${e === "activeWalkins" ? "text-[#1FA05B]" : e === "preApprovedCheckins" ? "text-[#E7A015]" : "text-[#329DFF]"} !text-[24px]`
22968
22968
  }
22969
22969
  ),
22970
- className: "!gap-[0px] !absolute top-[20px] left-0 w-[353px] z-10 transition-all duration-200",
22970
+ className: "!gap-[0px] !absolute top-[20px] left-0 w-[353px] !z-[50] transition-all duration-200",
22971
22971
  children: /* @__PURE__ */ y.jsx("div", { className: "flex flex-col gap-[8px] mt-[12px] pt-[12px] border-t border-dashed border-[#EBEBEB]", children: r[e].map(([n, i]) => /* @__PURE__ */ y.jsxs(
22972
22972
  "div",
22973
22973
  {
package/dist/index.umd.js CHANGED
@@ -196,7 +196,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
196
196
  *
197
197
  * This source code is licensed under the MIT license found in the
198
198
  * LICENSE file in the root directory of this source tree.
199
- */var x2;function k8(){return x2||(x2=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;_p.useSyncExternalStoreWithSelector=function(l,c,u,f,d){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=o(function(){function g(w){if(!v){if(v=!0,b=w,w=f(w),d!==void 0&&m.hasValue){var O=m.value;if(d(O,w))return x=O}return x=w}if(O=x,r(b,w))return O;var E=f(w);return d!==void 0&&d(O,E)?(b=w,O):(b=w,x=E)}var v=!1,b,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,f,d]);var p=n(l,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),_p}var w2;function T8(){return w2||(w2=1,process.env.NODE_ENV==="production"?nc.exports=C8():nc.exports=k8()),nc.exports}T8();function M8(e){e()}function j8(){let e=null,t=null;return{clear(){e=null,t=null},notify(){M8(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var _2={notify(){},get:()=>[]};function D8(e,t){let r,n=_2,i=0,a=!1;function o(p){u();const g=n.subscribe(p);let v=!1;return()=>{v||(v=!0,g(),f())}}function s(){n.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return a}function u(){i++,r||(r=e.subscribe(l),n=j8())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=_2)}function d(){a||(a=!0,u())}function h(){a&&(a=!1,f())}const m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return m}var N8=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I8=N8(),$8=()=>typeof navigator<"u"&&navigator.product==="ReactNative",R8=$8(),L8=()=>I8||R8?A.useLayoutEffect:A.useEffect,F8=L8(),B8=Symbol.for("react-redux-context"),z8=typeof globalThis<"u"?globalThis:{};function W8(){if(!A.createContext)return{};const e=z8[B8]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(A.createContext,t)),t}var V8=W8();function H8(e){const{children:t,context:r,serverState:n,store:i}=e,a=A.useMemo(()=>{const l=D8(i),c={store:i,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:u})}},[i,n]),o=A.useMemo(()=>i.getState(),[i]);F8(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const s=r||V8;return A.createElement(s.Provider,{value:a},t)}var U8=H8,K8=(e,t)=>t,Sp=N([K8,ue,b1,ct,vw,Qr,Q$,st],iR),Op=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},S2=ar("mouseClick"),O2=Da();O2.startListening({actionCreator:S2,effect:(e,t)=>{var r=e.payload,n=Sp(t.getState(),Op(r));n?.activeIndex!=null&&t.dispatch(s$({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Ap=ar("mouseMove"),A2=Da();A2.startListening({actionCreator:Ap,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=xh(n,n.tooltip.settings.shared),a=Sp(n,Op(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(sw({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(ow()))}});var E2={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},P2=qt({name:"rootProps",initialState:E2,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:E2.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),q8=P2.reducer,{updateOptions:Y8}=P2.actions,C2=qt({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:G8}=C2.actions,X8=C2.reducer,k2=ar("keyDown"),T2=ar("focus"),Ep=Da();Ep.startListening({actionCreator:k2,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(Sh(i,Xi(r))),s=Qr(r);if(a==="Enter"){var l=Wl(r,"axis","hover",String(i.index));t.dispatch(_h({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:l}));return}var c=J4(r),u=c==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,d=o+f*u;if(!(s==null||d>=s.length||d<0)){var h=Wl(r,"axis","hover",String(d));t.dispatch(_h({active:!0,activeIndex:d.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}}),Ep.startListening({actionCreator:T2,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=Wl(r,"axis","hover",String(a));t.dispatch(_h({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var ur=ar("externalEvent"),M2=Da();M2.startListening({actionCreator:ur,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:V$(r),activeDataKey:ww(r),activeIndex:wn(r),activeLabel:xw(r),activeTooltipIndex:wn(r),isTooltipActive:H$(r)};e.payload.handler(n,e.payload.reactEvent)}}});var Z8=N([Gi],e=>e.tooltipItemPayloads),J8=N([Z8,so,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(s=>s.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),j2=ar("touchMove"),D2=Da();D2.startListening({actionCreator:j2,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=xh(n,n.tooltip.settings.shared);if(i==="axis"){var a=Sp(n,Op({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(sw({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=r.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(U0),u=(o=l.getAttribute(K0))!==null&&o!==void 0?o:void 0,f=J8(t.getState(),c,u);t.dispatch(aw({activeDataKey:u,activeIndex:c,activeCoordinate:f}))}}});var Q8=Yy({brush:RB,cartesianAxis:v6,chartData:xR,errorBars:$6,graphicalItems:$F,layout:hj,legend:tD,options:mR,polarAxis:QL,polarOptions:X8,referenceElements:HB,rootProps:q8,tooltip:l$}),ez=function(t){return LM({reducer:Q8,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([O2.middleware,A2.middleware,Ep.middleware,M2.middleware,D2.middleware]),devTools:dn.devToolsEnabled})};function N2(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Nt(),a=k.useRef(null);if(i)return r;a.current==null&&(a.current=ez(t));var o=yf;return A.createElement(U8,{context:o,store:a.current},r)}function I2(e){var{layout:t,width:r,height:n,margin:i}=e,a=Ze(),o=Nt();return k.useEffect(()=>{o||(a(uj(t)),a(fj({width:r,height:n})),a(cj(i)))},[a,o,t,r,n,i]),null}function $2(e){var t=Ze();return k.useEffect(()=>{t(Y8(e))},[t,e]),null}var tz=["children"];function rz(e,t){if(e==null)return{};var r,n,i=nz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(null,arguments)}var iz={width:"100%",height:"100%"},az=k.forwardRef((e,t)=>{var r=G0(),n=X0(),i=nb();if(!Ii(r)||!Ii(n))return null;var{children:a,otherAttributes:o,title:s,desc:l}=e,c,u;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?u=o.role:u=i?"application":void 0,A.createElement(mv,ic({},o,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:iz,ref:t}),a)}),oz=e=>{var{children:t}=e,r=G(tl);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return A.createElement(mv,{width:n,height:i,x:o,y:a},t)},R2=k.forwardRef((e,t)=>{var{children:r}=e,n=rz(e,tz),i=Nt();return i?A.createElement(oz,null,r):A.createElement(az,ic({ref:t},n),r)});function sz(){var e=Ze(),[t,r]=k.useState(null),n=G(Wj);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Yt(a)&&a!==n&&e(dj(a))}},[t,e,n]),r}function L2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L2(Object(r),!0).forEach(function(n){cz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cz(e,t,r){return(t=uz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uz(e){var t=fz(e,"string");return typeof t=="symbol"?t:t+""}function fz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dz=k.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:m,onTouchStart:p,style:g,width:v}=e,b=Ze(),[x,S]=k.useState(null),[w,O]=k.useState(null);kR();var E=sz(),C=k.useCallback(V=>{E(V),typeof t=="function"&&t(V),S(V),O(V)},[E,t,S,O]),M=k.useCallback(V=>{b(S2(V)),b(ur({handler:a,reactEvent:V}))},[b,a]),$=k.useCallback(V=>{b(Ap(V)),b(ur({handler:c,reactEvent:V}))},[b,c]),j=k.useCallback(V=>{b(ow()),b(ur({handler:u,reactEvent:V}))},[b,u]),_=k.useCallback(V=>{b(Ap(V)),b(ur({handler:f,reactEvent:V}))},[b,f]),I=k.useCallback(()=>{b(T2())},[b]),D=k.useCallback(V=>{b(k2(V.key))},[b]),L=k.useCallback(V=>{b(ur({handler:o,reactEvent:V}))},[b,o]),W=k.useCallback(V=>{b(ur({handler:s,reactEvent:V}))},[b,s]),H=k.useCallback(V=>{b(ur({handler:l,reactEvent:V}))},[b,l]),te=k.useCallback(V=>{b(ur({handler:d,reactEvent:V}))},[b,d]),Q=k.useCallback(V=>{b(ur({handler:p,reactEvent:V}))},[b,p]),F=k.useCallback(V=>{b(j2(V)),b(ur({handler:m,reactEvent:V}))},[b,m]),U=k.useCallback(V=>{b(ur({handler:h,reactEvent:V}))},[b,h]);return A.createElement(Tw.Provider,{value:x},A.createElement(gk.Provider,{value:w},A.createElement("div",{className:de("recharts-wrapper",n),style:lz({position:"relative",cursor:"default",width:v,height:i},g),onClick:M,onContextMenu:L,onDoubleClick:W,onFocus:I,onKeyDown:D,onMouseDown:H,onMouseEnter:$,onMouseLeave:j,onMouseMove:_,onMouseUp:te,onTouchEnd:U,onTouchMove:F,onTouchStart:Q,ref:C},r)))}),hz=["children","className","width","height","style","compact","title","desc"];function pz(e,t){if(e==null)return{};var r,n,i=mz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function mz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var F2=k.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:o,compact:s,title:l,desc:c}=e,u=pz(e,hz),f=Ar(u);return s?A.createElement(R2,{otherAttributes:f,title:l,desc:c},r):A.createElement(dz,{className:n,style:o,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},A.createElement(R2,{otherAttributes:f,title:l,desc:c,ref:t},A.createElement(KB,null,r)))}),gz=["width","height"];function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pp.apply(null,arguments)}function vz(e,t){if(e==null)return{};var r,n,i=yz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bz={top:5,right:5,bottom:5,left:5},xz={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:bz,reverseStackOrder:!1,syncMethod:"index"},B2=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,xz),{width:a,height:o}=i,s=vz(i,gz);if(!Ii(a)||!Ii(o))return null;var{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,eventEmitter:void 0};return A.createElement(N2,{preloadedState:{options:h},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:l},A.createElement(r2,{chartData:d.data}),A.createElement(I2,{width:a,height:o,layout:i.layout,margin:i.margin}),A.createElement($2,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(F2,Pp({},s,{width:a,height:o,ref:r})))}),wz=["axis"],z2=k.forwardRef((e,t)=>A.createElement(B2,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:wz,tooltipPayloadSearcher:Nh,categoricalChartProps:e,ref:t})),_z=["axis","item"],Sz=k.forwardRef((e,t)=>A.createElement(B2,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:_z,tooltipPayloadSearcher:Nh,categoricalChartProps:e,ref:t}));function Oz(e){var t=Ze();return k.useEffect(()=>{t(G8(e))},[t,e]),null}var Az=["width","height","layout"];function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cp.apply(null,arguments)}function Ez(e,t){if(e==null)return{};var r,n,i=Pz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Pz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Cz={top:5,right:5,bottom:5,left:5},kz={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Cz,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},Tz=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,kz),{width:a,height:o,layout:s}=i,l=Ez(i,Az);if(!Ii(a)||!Ii(o))return null;var{chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d}=t,h={chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,eventEmitter:void 0};return A.createElement(N2,{preloadedState:{options:h},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:c},A.createElement(r2,{chartData:i.data}),A.createElement(I2,{width:a,height:o,layout:s,margin:i.margin}),A.createElement($2,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(Oz,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),A.createElement(F2,Cp({width:a,height:o},l,{ref:r})))}),Mz=["item"],jz={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},ac=k.forwardRef((e,t)=>{var r=_t(e,jz);return A.createElement(Tz,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:Mz,tooltipPayloadSearcher:Nh,categoricalChartProps:r,ref:t})});function Dz({isStatic:e,data:t}){const r=Number(t?.thisMonthMoveIns??t?.lastMonthMoveIns??0),n=Number(t?.thisMonthMoveOuts??t?.lastMonthMoveOuts??0),i=Number(t?.moveInPercentChange??t?.moveInChange??0),a=Number(t?.moveOutPercentChange??t?.moveOutChange??0),o=["#8B5CF6","#EBE4F9"],s=[{name:"Move-ins",value:r,color:o[0]},{name:"Move-outs",value:n,color:o[1]}];function l(c,u){return((Number(c)+Number(u))/2).toFixed(2)+"%"}return y.jsx(Ln,{title:"Community",period:"This Month",icon:y.jsx(uu,{className:"!text-[24px] text-[#329DFF]"}),className:`${e&&"max-h-[184px]"} h-[184px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Move-in/Out Count"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium !text-[#8B5CF6]",children:r+n})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(Jg,{value:l(i,a)}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to last month"})]})]}),y.jsx("div",{className:"w-[50%] h-[111px] flex justify-end",children:y.jsx(ai,{width:"75%",height:"100%",children:y.jsxs(ac,{children:[y.jsxs(ho,{data:s,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:[y.jsx(kr,{fill:o[0]}),y.jsx(kr,{fill:o[1]})]}),y.jsx(ii,{content:y.jsx(Aa,{})})]})})})]})})}function Nz({isStatic:e,data:t}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],n=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return y.jsx(Ln,{title:"Engagement",period:"This Month",icon:y.jsx(Ug,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,children:y.jsx("div",{className:"w-full h-[235px]",children:y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(Sz,{data:n,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[y.jsx(Ql,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),y.jsx(go,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),y.jsx(tc,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),y.jsx(ii,{content:y.jsx(Aa,{}),cursor:{fill:"transparent"}}),y.jsx(J_,{dataKey:"value",barSize:40,isAnimationActive:!1,children:n.map((i,a)=>y.jsx(kr,{fill:r[a]},i.name))})]})})})})}function Iz(e){if(!e)return 0;const[t,r]=e.split(" ");let[n,i]=t.split(":").map(Number);return r==="PM"&&n!==12&&(n+=12),r==="AM"&&n===12&&(n=0),n*60+i}function $z(e){return Array.from({length:24},(n,i)=>i).map(n=>{const i=e.find(l=>{const c=Iz(l.slot_start_time);return Math.floor(c/60)===n}),a=n>=12?"PM":"AM";return{time:`${n%12||12} ${a}`,bookings:i?.slot_bookings||0,total:i?.total_slots||0,utilization:i?.utilization_rate||0}})}function Rz({isStatic:e,data:t}){const r=Number(t?.totalBookings||0),n=Number(t?.totalSlots||0),i=Number(t?.utilizationRate||0),a=k.useMemo(()=>t?.slots?.length?$z(t.slots):[],[t]),o=u=>["1 AM","6 AM","11 AM","5 PM","10 PM"].includes(u)?u:"",s=a.length>0?Math.max(...a.map(u=>u.total),5):5;function l(u){const f=u>=12?"PM":"AM";let d=u%12;return d===0&&(d=12),`${d} ${f}`}const c=a.length?a:Array.from({length:24},(u,f)=>({time:l(f),bookings:0,total:0,utilization:0}));return y.jsxs(Ln,{title:"Facilities",period:"Today",icon:y.jsx(Hg,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[y.jsxs("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px]",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:r})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Total Slots"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#F59E0B]",children:n})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),y.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[i.toFixed(2),"%"]})]})]}),y.jsx("div",{className:"w-full h-[170px]",children:y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(z2,{data:c,margin:{top:0,right:-30,left:-40,bottom:0},children:[y.jsx(Ql,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(tc,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),y.jsx(go,{yAxisId:"left",domain:[0,s],tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(go,{yAxisId:"right",orientation:"right",domain:[20,100],ticks:[20,40,60,80,100],tickFormatter:u=>`${u}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(ii,{content:y.jsx(Aa,{})}),y.jsx(ci,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),y.jsx(ci,{yAxisId:"left",type:"monotone",dataKey:"total",name:"Total Slots",stroke:"#F59E0B",strokeWidth:2,dot:!1}),y.jsx(ci,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function Lz({data:e}){const t=e?.incomeSummary||{},r=e?.expenditureSummary||{},n=["AED","USD","EUR"],i=["Rs","INR","₹"];function a(s){if(s==null||isNaN(s))return"0";const l=Number(s);return l>=1e9?(l/1e9).toFixed(l%1e9===0?0:2)+"B":l>=1e6?(l/1e6).toFixed(l%1e6===0?0:2)+"M":l>=1e3?(l/1e3).toFixed(l%1e3===0?0:2)+"K":l.toFixed(l%1===0?0:2)}function o(s,l){return l?i.includes(l)?`${l} ${a(s)}`:n.includes(l)?`${a(s)} ${l}`:`${a(s)} ${l}`:a(s)}return y.jsx(Ln,{title:"Income",period:"This Month",icon:y.jsx(Kg,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",children:y.jsxs("div",{children:[y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Income"}),y.jsx("div",{children:"Collection"}),y.jsx("div",{children:"Closing"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[y.jsx("div",{children:o(t.opening_balance,t?.currency_type)}),y.jsx("div",{children:o(t.income,t?.currency_type)}),y.jsx("div",{children:o(t.collection,t?.currency_type)}),y.jsx("div",{children:o(t.closing_balance,t?.currency_type)})]}),y.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),y.jsx("div",{className:"flex items-center justify-between",children:y.jsxs("div",{className:"flex items-center gap-[12px]",children:[y.jsx(Kg,{className:"!text-[24px] text-red-600"}),y.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Expenditure"}),y.jsx("div",{children:"Payment"}),y.jsx("div",{children:"Outstanding"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[y.jsx("div",{children:o(r.opening_balance,r?.currency_type)}),y.jsx("div",{children:o(r.expenditure,r?.currency_type)}),y.jsx("div",{children:o(r.payment,r?.currency_type)}),y.jsx("div",{children:o(r.outstanding,r?.currency_type)})]})]})})}function Fz(e){const t=e>=12?"PM":"AM";let r=e%12;return r===0&&(r=12),`${r} ${t}`}function Bz(e){return Array.from({length:24},(t,r)=>{const n=e.find(i=>i.hour===r)||{};return{hour:r,time:Fz(r),walkins:n.walkins??0,checkins:n.preApproved??0,staffAttendance:n.staffAttendance??0}})}const Qi={walkins:"#1FA05B",preApproved:"#E7A015",staffAttendance:"#329DFF"};function zz({type:e,data:t}){if(!e||!t)return null;const r={activeWalkins:[["Currently Inside",t.currently_inside],["Absent Today",t.absent_today],["Total Visited Today",t.total_visited_today],["Total Staff",t.total_staff]],preApprovedCheckins:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today],["No Show",t.no_show],["Total Scheduled",t.total_scheduled]],staffAttendance:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today]]};return y.jsx(Ln,{title:e==="activeWalkins"?"Active Walk-ins":e==="preApprovedCheckins"?"Pre-approved Check-ins":"Staff Checked-in",period:"Today",icon:y.jsx(fu,{className:`${e==="activeWalkins"?"text-[#1FA05B]":e==="preApprovedCheckins"?"text-[#E7A015]":"text-[#329DFF]"} !text-[24px]`}),className:"!gap-[0px] !absolute top-[20px] left-0 w-[353px] z-10 transition-all duration-200",children:y.jsx("div",{className:"flex flex-col gap-[8px] mt-[12px] pt-[12px] border-t border-dashed border-[#EBEBEB]",children:r[e].map(([n,i])=>y.jsxs("div",{className:"flex justify-between !text-[14px] !text-[#64748B]",children:[y.jsx("div",{children:n}),y.jsx("div",{className:"font-semibold text-gray-800",children:i??0})]},n))})})}function Wz({isStatic:e,data:t}){const[r,n]=k.useState(null),i=t?.summary?.activeWalkins||{},a=t?.summary?.preApprovedCheckins||{},o=t?.summary?.staffAttendance||{},s=Bz(t?.chart||[]),l=Math.max(...s.flatMap(f=>[f.walkins,f.checkins,f.staffAttendance])),c=l>0?l:5,u=[0,Math.ceil(c/2),c];return y.jsx(Ln,{title:"Gate Updates",period:"Today",icon:y.jsx(fu,{className:"!text-[24px] text-[#37CC6D]"}),className:`${e?"max-h-[303px]":""} h-[251px] mb-4 break-inside-avoid`,children:y.jsxs("div",{children:[y.jsx("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px] relative",children:[{key:"activeWalkins",data:i,color:Qi.walkins,label:"Active Walk-ins"},{key:"staffAttendance",data:o,color:Qi.staffAttendance,label:"Staff Checked-in"},{key:"preApprovedCheckins",data:a,color:Qi.preApproved,label:"Pre-approved Check-ins"}].map(f=>y.jsxs("div",{className:"flex flex-col gap-[8px] relative",onMouseEnter:()=>n(f.key),onMouseLeave:()=>n(null),children:[y.jsx("div",{className:"text-[10px] text-[#64748B] whitespace-nowrap",children:f.label}),y.jsxs("div",{className:"text-[28px] font-medium flex items-center",style:{color:f.color},children:[f.key==="activeWalkins"?f.data?.visitor_in??0:f.key==="preApprovedCheckins"?f.data?.expected_pass_scanned??0:f.data?.total_in_now??0,y.jsxs("div",{className:"text-[20px] text-[#64748B] ml-1",children:["/",f.key==="activeWalkins"?f.data?.total_pass??0:f.key==="preApprovedCheckins"?f.data?.total_expected_pass??0:f.data?.total_in_today??0]})]}),r===f.key&&y.jsx(zz,{type:f.key,data:f.data})]},f.key))}),y.jsx("div",{className:"w-full h-[105px]",children:y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(z2,{data:s,margin:{top:1,right:0,left:-40,bottom:0},children:[y.jsx(Ql,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(tc,{dataKey:"time",tickFormatter:(f,d)=>d%4===0?f:"",tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1}),y.jsx(go,{tick:{fontSize:10,fill:"#64748B",fontWeight:400},ticks:u,domain:[0,c],allowDecimals:!1,axisLine:!1,tickLine:!1}),y.jsx(ii,{content:y.jsx(Aa,{})}),y.jsx(ci,{type:"monotone",dataKey:"walkins",stroke:Qi.walkins,strokeWidth:2,dot:!1,name:"Active Walk-ins"}),y.jsx(ci,{type:"monotone",dataKey:"checkins",stroke:Qi.preApproved,strokeWidth:2,strokeDasharray:"5 5",dot:!1,name:"Pre-approved"}),y.jsx(ci,{type:"monotone",dataKey:"staffAttendance",stroke:Qi.staffAttendance,strokeWidth:2,dot:!1,name:"Staff Attendance"})]})})})]})})}function Vz({isStatic:e,data:t}){const r=["#1FA05B","#E7A015","#FA7E28","#EF4444","#CBD5E1"],n=[{name:"L1 Level",value:Number(t?.today_L1||0),color:r[0]},{name:"L2 Level",value:Number(t?.today_L2||0),color:r[1]},{name:"L3 Level",value:Number(t?.today_L3||0),color:r[2]},{name:"L4 Level",value:Number(t?.today_L4||0),color:r[3]}];n.reduce((a,o)=>a+o.value,0);const i=n;return y.jsx(Ln,{title:"Helpdesk",period:"Today",icon:y.jsx(JC,{className:"!text-[24px] text-[#FA7E28]"}),className:`${e&&"max-h-[186px]"} h-[186px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex gap-[12px] h-fit",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Un-resolved Complaints"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium text-[#FA7E28]",children:t?.today_open_complaints??0})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(Jg,{value:t?.percent_change}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to yesterday"})]})]}),y.jsx("div",{className:"w-[50%] h-[110px] flex justify-end",children:y.jsx(ai,{width:"75%",height:"100%",children:y.jsxs(ac,{children:[y.jsx(ho,{data:i,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:i.map((a,o)=>y.jsx(kr,{fill:r[o]||"#CBD5E1"},a.name))}),y.jsx(ii,{content:y.jsx(Aa,{})})]})})})]})})}/*!
199
+ */var x2;function k8(){return x2||(x2=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;_p.useSyncExternalStoreWithSelector=function(l,c,u,f,d){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=o(function(){function g(w){if(!v){if(v=!0,b=w,w=f(w),d!==void 0&&m.hasValue){var O=m.value;if(d(O,w))return x=O}return x=w}if(O=x,r(b,w))return O;var E=f(w);return d!==void 0&&d(O,E)?(b=w,O):(b=w,x=E)}var v=!1,b,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,f,d]);var p=n(l,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),_p}var w2;function T8(){return w2||(w2=1,process.env.NODE_ENV==="production"?nc.exports=C8():nc.exports=k8()),nc.exports}T8();function M8(e){e()}function j8(){let e=null,t=null;return{clear(){e=null,t=null},notify(){M8(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var _2={notify(){},get:()=>[]};function D8(e,t){let r,n=_2,i=0,a=!1;function o(p){u();const g=n.subscribe(p);let v=!1;return()=>{v||(v=!0,g(),f())}}function s(){n.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return a}function u(){i++,r||(r=e.subscribe(l),n=j8())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=_2)}function d(){a||(a=!0,u())}function h(){a&&(a=!1,f())}const m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return m}var N8=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I8=N8(),$8=()=>typeof navigator<"u"&&navigator.product==="ReactNative",R8=$8(),L8=()=>I8||R8?A.useLayoutEffect:A.useEffect,F8=L8(),B8=Symbol.for("react-redux-context"),z8=typeof globalThis<"u"?globalThis:{};function W8(){if(!A.createContext)return{};const e=z8[B8]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(A.createContext,t)),t}var V8=W8();function H8(e){const{children:t,context:r,serverState:n,store:i}=e,a=A.useMemo(()=>{const l=D8(i),c={store:i,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:u})}},[i,n]),o=A.useMemo(()=>i.getState(),[i]);F8(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const s=r||V8;return A.createElement(s.Provider,{value:a},t)}var U8=H8,K8=(e,t)=>t,Sp=N([K8,ue,b1,ct,vw,Qr,Q$,st],iR),Op=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},S2=ar("mouseClick"),O2=Da();O2.startListening({actionCreator:S2,effect:(e,t)=>{var r=e.payload,n=Sp(t.getState(),Op(r));n?.activeIndex!=null&&t.dispatch(s$({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Ap=ar("mouseMove"),A2=Da();A2.startListening({actionCreator:Ap,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=xh(n,n.tooltip.settings.shared),a=Sp(n,Op(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(sw({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(ow()))}});var E2={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},P2=qt({name:"rootProps",initialState:E2,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:E2.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),q8=P2.reducer,{updateOptions:Y8}=P2.actions,C2=qt({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:G8}=C2.actions,X8=C2.reducer,k2=ar("keyDown"),T2=ar("focus"),Ep=Da();Ep.startListening({actionCreator:k2,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(Sh(i,Xi(r))),s=Qr(r);if(a==="Enter"){var l=Wl(r,"axis","hover",String(i.index));t.dispatch(_h({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:l}));return}var c=J4(r),u=c==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,d=o+f*u;if(!(s==null||d>=s.length||d<0)){var h=Wl(r,"axis","hover",String(d));t.dispatch(_h({active:!0,activeIndex:d.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}}),Ep.startListening({actionCreator:T2,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=Wl(r,"axis","hover",String(a));t.dispatch(_h({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var ur=ar("externalEvent"),M2=Da();M2.startListening({actionCreator:ur,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:V$(r),activeDataKey:ww(r),activeIndex:wn(r),activeLabel:xw(r),activeTooltipIndex:wn(r),isTooltipActive:H$(r)};e.payload.handler(n,e.payload.reactEvent)}}});var Z8=N([Gi],e=>e.tooltipItemPayloads),J8=N([Z8,so,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(s=>s.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),j2=ar("touchMove"),D2=Da();D2.startListening({actionCreator:j2,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=xh(n,n.tooltip.settings.shared);if(i==="axis"){var a=Sp(n,Op({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(sw({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=r.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(U0),u=(o=l.getAttribute(K0))!==null&&o!==void 0?o:void 0,f=J8(t.getState(),c,u);t.dispatch(aw({activeDataKey:u,activeIndex:c,activeCoordinate:f}))}}});var Q8=Yy({brush:RB,cartesianAxis:v6,chartData:xR,errorBars:$6,graphicalItems:$F,layout:hj,legend:tD,options:mR,polarAxis:QL,polarOptions:X8,referenceElements:HB,rootProps:q8,tooltip:l$}),ez=function(t){return LM({reducer:Q8,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([O2.middleware,A2.middleware,Ep.middleware,M2.middleware,D2.middleware]),devTools:dn.devToolsEnabled})};function N2(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Nt(),a=k.useRef(null);if(i)return r;a.current==null&&(a.current=ez(t));var o=yf;return A.createElement(U8,{context:o,store:a.current},r)}function I2(e){var{layout:t,width:r,height:n,margin:i}=e,a=Ze(),o=Nt();return k.useEffect(()=>{o||(a(uj(t)),a(fj({width:r,height:n})),a(cj(i)))},[a,o,t,r,n,i]),null}function $2(e){var t=Ze();return k.useEffect(()=>{t(Y8(e))},[t,e]),null}var tz=["children"];function rz(e,t){if(e==null)return{};var r,n,i=nz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(null,arguments)}var iz={width:"100%",height:"100%"},az=k.forwardRef((e,t)=>{var r=G0(),n=X0(),i=nb();if(!Ii(r)||!Ii(n))return null;var{children:a,otherAttributes:o,title:s,desc:l}=e,c,u;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?u=o.role:u=i?"application":void 0,A.createElement(mv,ic({},o,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:iz,ref:t}),a)}),oz=e=>{var{children:t}=e,r=G(tl);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return A.createElement(mv,{width:n,height:i,x:o,y:a},t)},R2=k.forwardRef((e,t)=>{var{children:r}=e,n=rz(e,tz),i=Nt();return i?A.createElement(oz,null,r):A.createElement(az,ic({ref:t},n),r)});function sz(){var e=Ze(),[t,r]=k.useState(null),n=G(Wj);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Yt(a)&&a!==n&&e(dj(a))}},[t,e,n]),r}function L2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L2(Object(r),!0).forEach(function(n){cz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cz(e,t,r){return(t=uz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uz(e){var t=fz(e,"string");return typeof t=="symbol"?t:t+""}function fz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dz=k.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:m,onTouchStart:p,style:g,width:v}=e,b=Ze(),[x,S]=k.useState(null),[w,O]=k.useState(null);kR();var E=sz(),C=k.useCallback(V=>{E(V),typeof t=="function"&&t(V),S(V),O(V)},[E,t,S,O]),M=k.useCallback(V=>{b(S2(V)),b(ur({handler:a,reactEvent:V}))},[b,a]),$=k.useCallback(V=>{b(Ap(V)),b(ur({handler:c,reactEvent:V}))},[b,c]),j=k.useCallback(V=>{b(ow()),b(ur({handler:u,reactEvent:V}))},[b,u]),_=k.useCallback(V=>{b(Ap(V)),b(ur({handler:f,reactEvent:V}))},[b,f]),I=k.useCallback(()=>{b(T2())},[b]),D=k.useCallback(V=>{b(k2(V.key))},[b]),L=k.useCallback(V=>{b(ur({handler:o,reactEvent:V}))},[b,o]),W=k.useCallback(V=>{b(ur({handler:s,reactEvent:V}))},[b,s]),H=k.useCallback(V=>{b(ur({handler:l,reactEvent:V}))},[b,l]),te=k.useCallback(V=>{b(ur({handler:d,reactEvent:V}))},[b,d]),Q=k.useCallback(V=>{b(ur({handler:p,reactEvent:V}))},[b,p]),F=k.useCallback(V=>{b(j2(V)),b(ur({handler:m,reactEvent:V}))},[b,m]),U=k.useCallback(V=>{b(ur({handler:h,reactEvent:V}))},[b,h]);return A.createElement(Tw.Provider,{value:x},A.createElement(gk.Provider,{value:w},A.createElement("div",{className:de("recharts-wrapper",n),style:lz({position:"relative",cursor:"default",width:v,height:i},g),onClick:M,onContextMenu:L,onDoubleClick:W,onFocus:I,onKeyDown:D,onMouseDown:H,onMouseEnter:$,onMouseLeave:j,onMouseMove:_,onMouseUp:te,onTouchEnd:U,onTouchMove:F,onTouchStart:Q,ref:C},r)))}),hz=["children","className","width","height","style","compact","title","desc"];function pz(e,t){if(e==null)return{};var r,n,i=mz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function mz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var F2=k.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:o,compact:s,title:l,desc:c}=e,u=pz(e,hz),f=Ar(u);return s?A.createElement(R2,{otherAttributes:f,title:l,desc:c},r):A.createElement(dz,{className:n,style:o,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},A.createElement(R2,{otherAttributes:f,title:l,desc:c,ref:t},A.createElement(KB,null,r)))}),gz=["width","height"];function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pp.apply(null,arguments)}function vz(e,t){if(e==null)return{};var r,n,i=yz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bz={top:5,right:5,bottom:5,left:5},xz={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:bz,reverseStackOrder:!1,syncMethod:"index"},B2=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,xz),{width:a,height:o}=i,s=vz(i,gz);if(!Ii(a)||!Ii(o))return null;var{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,eventEmitter:void 0};return A.createElement(N2,{preloadedState:{options:h},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:l},A.createElement(r2,{chartData:d.data}),A.createElement(I2,{width:a,height:o,layout:i.layout,margin:i.margin}),A.createElement($2,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(F2,Pp({},s,{width:a,height:o,ref:r})))}),wz=["axis"],z2=k.forwardRef((e,t)=>A.createElement(B2,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:wz,tooltipPayloadSearcher:Nh,categoricalChartProps:e,ref:t})),_z=["axis","item"],Sz=k.forwardRef((e,t)=>A.createElement(B2,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:_z,tooltipPayloadSearcher:Nh,categoricalChartProps:e,ref:t}));function Oz(e){var t=Ze();return k.useEffect(()=>{t(G8(e))},[t,e]),null}var Az=["width","height","layout"];function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cp.apply(null,arguments)}function Ez(e,t){if(e==null)return{};var r,n,i=Pz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Pz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Cz={top:5,right:5,bottom:5,left:5},kz={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Cz,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},Tz=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,kz),{width:a,height:o,layout:s}=i,l=Ez(i,Az);if(!Ii(a)||!Ii(o))return null;var{chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d}=t,h={chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,eventEmitter:void 0};return A.createElement(N2,{preloadedState:{options:h},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:c},A.createElement(r2,{chartData:i.data}),A.createElement(I2,{width:a,height:o,layout:s,margin:i.margin}),A.createElement($2,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(Oz,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),A.createElement(F2,Cp({width:a,height:o},l,{ref:r})))}),Mz=["item"],jz={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},ac=k.forwardRef((e,t)=>{var r=_t(e,jz);return A.createElement(Tz,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:Mz,tooltipPayloadSearcher:Nh,categoricalChartProps:r,ref:t})});function Dz({isStatic:e,data:t}){const r=Number(t?.thisMonthMoveIns??t?.lastMonthMoveIns??0),n=Number(t?.thisMonthMoveOuts??t?.lastMonthMoveOuts??0),i=Number(t?.moveInPercentChange??t?.moveInChange??0),a=Number(t?.moveOutPercentChange??t?.moveOutChange??0),o=["#8B5CF6","#EBE4F9"],s=[{name:"Move-ins",value:r,color:o[0]},{name:"Move-outs",value:n,color:o[1]}];function l(c,u){return((Number(c)+Number(u))/2).toFixed(2)+"%"}return y.jsx(Ln,{title:"Community",period:"This Month",icon:y.jsx(uu,{className:"!text-[24px] text-[#329DFF]"}),className:`${e&&"max-h-[184px]"} h-[184px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Move-in/Out Count"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium !text-[#8B5CF6]",children:r+n})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(Jg,{value:l(i,a)}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to last month"})]})]}),y.jsx("div",{className:"w-[50%] h-[111px] flex justify-end",children:y.jsx(ai,{width:"75%",height:"100%",children:y.jsxs(ac,{children:[y.jsxs(ho,{data:s,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:[y.jsx(kr,{fill:o[0]}),y.jsx(kr,{fill:o[1]})]}),y.jsx(ii,{content:y.jsx(Aa,{})})]})})})]})})}function Nz({isStatic:e,data:t}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],n=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return y.jsx(Ln,{title:"Engagement",period:"This Month",icon:y.jsx(Ug,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,children:y.jsx("div",{className:"w-full h-[235px]",children:y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(Sz,{data:n,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[y.jsx(Ql,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),y.jsx(go,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),y.jsx(tc,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),y.jsx(ii,{content:y.jsx(Aa,{}),cursor:{fill:"transparent"}}),y.jsx(J_,{dataKey:"value",barSize:40,isAnimationActive:!1,children:n.map((i,a)=>y.jsx(kr,{fill:r[a]},i.name))})]})})})})}function Iz(e){if(!e)return 0;const[t,r]=e.split(" ");let[n,i]=t.split(":").map(Number);return r==="PM"&&n!==12&&(n+=12),r==="AM"&&n===12&&(n=0),n*60+i}function $z(e){return Array.from({length:24},(n,i)=>i).map(n=>{const i=e.find(l=>{const c=Iz(l.slot_start_time);return Math.floor(c/60)===n}),a=n>=12?"PM":"AM";return{time:`${n%12||12} ${a}`,bookings:i?.slot_bookings||0,total:i?.total_slots||0,utilization:i?.utilization_rate||0}})}function Rz({isStatic:e,data:t}){const r=Number(t?.totalBookings||0),n=Number(t?.totalSlots||0),i=Number(t?.utilizationRate||0),a=k.useMemo(()=>t?.slots?.length?$z(t.slots):[],[t]),o=u=>["1 AM","6 AM","11 AM","5 PM","10 PM"].includes(u)?u:"",s=a.length>0?Math.max(...a.map(u=>u.total),5):5;function l(u){const f=u>=12?"PM":"AM";let d=u%12;return d===0&&(d=12),`${d} ${f}`}const c=a.length?a:Array.from({length:24},(u,f)=>({time:l(f),bookings:0,total:0,utilization:0}));return y.jsxs(Ln,{title:"Facilities",period:"Today",icon:y.jsx(Hg,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[y.jsxs("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px]",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:r})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Total Slots"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#F59E0B]",children:n})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),y.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[i.toFixed(2),"%"]})]})]}),y.jsx("div",{className:"w-full h-[170px]",children:y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(z2,{data:c,margin:{top:0,right:-30,left:-40,bottom:0},children:[y.jsx(Ql,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(tc,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),y.jsx(go,{yAxisId:"left",domain:[0,s],tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(go,{yAxisId:"right",orientation:"right",domain:[20,100],ticks:[20,40,60,80,100],tickFormatter:u=>`${u}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(ii,{content:y.jsx(Aa,{})}),y.jsx(ci,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),y.jsx(ci,{yAxisId:"left",type:"monotone",dataKey:"total",name:"Total Slots",stroke:"#F59E0B",strokeWidth:2,dot:!1}),y.jsx(ci,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function Lz({data:e}){const t=e?.incomeSummary||{},r=e?.expenditureSummary||{},n=["AED","USD","EUR"],i=["Rs","INR","₹"];function a(s){if(s==null||isNaN(s))return"0";const l=Number(s);return l>=1e9?(l/1e9).toFixed(l%1e9===0?0:2)+"B":l>=1e6?(l/1e6).toFixed(l%1e6===0?0:2)+"M":l>=1e3?(l/1e3).toFixed(l%1e3===0?0:2)+"K":l.toFixed(l%1===0?0:2)}function o(s,l){return l?i.includes(l)?`${l} ${a(s)}`:n.includes(l)?`${a(s)} ${l}`:`${a(s)} ${l}`:a(s)}return y.jsx(Ln,{title:"Income",period:"This Month",icon:y.jsx(Kg,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",children:y.jsxs("div",{children:[y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Income"}),y.jsx("div",{children:"Collection"}),y.jsx("div",{children:"Closing"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[y.jsx("div",{children:o(t.opening_balance,t?.currency_type)}),y.jsx("div",{children:o(t.income,t?.currency_type)}),y.jsx("div",{children:o(t.collection,t?.currency_type)}),y.jsx("div",{children:o(t.closing_balance,t?.currency_type)})]}),y.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),y.jsx("div",{className:"flex items-center justify-between",children:y.jsxs("div",{className:"flex items-center gap-[12px]",children:[y.jsx(Kg,{className:"!text-[24px] text-red-600"}),y.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Expenditure"}),y.jsx("div",{children:"Payment"}),y.jsx("div",{children:"Outstanding"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[y.jsx("div",{children:o(r.opening_balance,r?.currency_type)}),y.jsx("div",{children:o(r.expenditure,r?.currency_type)}),y.jsx("div",{children:o(r.payment,r?.currency_type)}),y.jsx("div",{children:o(r.outstanding,r?.currency_type)})]})]})})}function Fz(e){const t=e>=12?"PM":"AM";let r=e%12;return r===0&&(r=12),`${r} ${t}`}function Bz(e){return Array.from({length:24},(t,r)=>{const n=e.find(i=>i.hour===r)||{};return{hour:r,time:Fz(r),walkins:n.walkins??0,checkins:n.preApproved??0,staffAttendance:n.staffAttendance??0}})}const Qi={walkins:"#1FA05B",preApproved:"#E7A015",staffAttendance:"#329DFF"};function zz({type:e,data:t}){if(!e||!t)return null;const r={activeWalkins:[["Currently Inside",t.currently_inside],["Absent Today",t.absent_today],["Total Visited Today",t.total_visited_today],["Total Staff",t.total_staff]],preApprovedCheckins:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today],["No Show",t.no_show],["Total Scheduled",t.total_scheduled]],staffAttendance:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today]]};return y.jsx(Ln,{title:e==="activeWalkins"?"Active Walk-ins":e==="preApprovedCheckins"?"Pre-approved Check-ins":"Staff Checked-in",period:"Today",icon:y.jsx(fu,{className:`${e==="activeWalkins"?"text-[#1FA05B]":e==="preApprovedCheckins"?"text-[#E7A015]":"text-[#329DFF]"} !text-[24px]`}),className:"!gap-[0px] !absolute top-[20px] left-0 w-[353px] !z-[50] transition-all duration-200",children:y.jsx("div",{className:"flex flex-col gap-[8px] mt-[12px] pt-[12px] border-t border-dashed border-[#EBEBEB]",children:r[e].map(([n,i])=>y.jsxs("div",{className:"flex justify-between !text-[14px] !text-[#64748B]",children:[y.jsx("div",{children:n}),y.jsx("div",{className:"font-semibold text-gray-800",children:i??0})]},n))})})}function Wz({isStatic:e,data:t}){const[r,n]=k.useState(null),i=t?.summary?.activeWalkins||{},a=t?.summary?.preApprovedCheckins||{},o=t?.summary?.staffAttendance||{},s=Bz(t?.chart||[]),l=Math.max(...s.flatMap(f=>[f.walkins,f.checkins,f.staffAttendance])),c=l>0?l:5,u=[0,Math.ceil(c/2),c];return y.jsx(Ln,{title:"Gate Updates",period:"Today",icon:y.jsx(fu,{className:"!text-[24px] text-[#37CC6D]"}),className:`${e?"max-h-[303px]":""} h-[251px] mb-4 break-inside-avoid`,children:y.jsxs("div",{children:[y.jsx("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px] relative",children:[{key:"activeWalkins",data:i,color:Qi.walkins,label:"Active Walk-ins"},{key:"staffAttendance",data:o,color:Qi.staffAttendance,label:"Staff Checked-in"},{key:"preApprovedCheckins",data:a,color:Qi.preApproved,label:"Pre-approved Check-ins"}].map(f=>y.jsxs("div",{className:"flex flex-col gap-[8px] relative",onMouseEnter:()=>n(f.key),onMouseLeave:()=>n(null),children:[y.jsx("div",{className:"text-[10px] text-[#64748B] whitespace-nowrap",children:f.label}),y.jsxs("div",{className:"text-[28px] font-medium flex items-center",style:{color:f.color},children:[f.key==="activeWalkins"?f.data?.visitor_in??0:f.key==="preApprovedCheckins"?f.data?.expected_pass_scanned??0:f.data?.total_in_now??0,y.jsxs("div",{className:"text-[20px] text-[#64748B] ml-1",children:["/",f.key==="activeWalkins"?f.data?.total_pass??0:f.key==="preApprovedCheckins"?f.data?.total_expected_pass??0:f.data?.total_in_today??0]})]}),r===f.key&&y.jsx(zz,{type:f.key,data:f.data})]},f.key))}),y.jsx("div",{className:"w-full h-[105px]",children:y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(z2,{data:s,margin:{top:1,right:0,left:-40,bottom:0},children:[y.jsx(Ql,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(tc,{dataKey:"time",tickFormatter:(f,d)=>d%4===0?f:"",tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1}),y.jsx(go,{tick:{fontSize:10,fill:"#64748B",fontWeight:400},ticks:u,domain:[0,c],allowDecimals:!1,axisLine:!1,tickLine:!1}),y.jsx(ii,{content:y.jsx(Aa,{})}),y.jsx(ci,{type:"monotone",dataKey:"walkins",stroke:Qi.walkins,strokeWidth:2,dot:!1,name:"Active Walk-ins"}),y.jsx(ci,{type:"monotone",dataKey:"checkins",stroke:Qi.preApproved,strokeWidth:2,strokeDasharray:"5 5",dot:!1,name:"Pre-approved"}),y.jsx(ci,{type:"monotone",dataKey:"staffAttendance",stroke:Qi.staffAttendance,strokeWidth:2,dot:!1,name:"Staff Attendance"})]})})})]})})}function Vz({isStatic:e,data:t}){const r=["#1FA05B","#E7A015","#FA7E28","#EF4444","#CBD5E1"],n=[{name:"L1 Level",value:Number(t?.today_L1||0),color:r[0]},{name:"L2 Level",value:Number(t?.today_L2||0),color:r[1]},{name:"L3 Level",value:Number(t?.today_L3||0),color:r[2]},{name:"L4 Level",value:Number(t?.today_L4||0),color:r[3]}];n.reduce((a,o)=>a+o.value,0);const i=n;return y.jsx(Ln,{title:"Helpdesk",period:"Today",icon:y.jsx(JC,{className:"!text-[24px] text-[#FA7E28]"}),className:`${e&&"max-h-[186px]"} h-[186px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex gap-[12px] h-fit",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Un-resolved Complaints"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium text-[#FA7E28]",children:t?.today_open_complaints??0})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(Jg,{value:t?.percent_change}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to yesterday"})]})]}),y.jsx("div",{className:"w-[50%] h-[110px] flex justify-end",children:y.jsx(ai,{width:"75%",height:"100%",children:y.jsxs(ac,{children:[y.jsx(ho,{data:i,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:i.map((a,o)=>y.jsx(kr,{fill:r[o]||"#CBD5E1"},a.name))}),y.jsx(ii,{content:y.jsx(Aa,{})})]})})})]})})}/*!
200
200
  * @kurkle/color v0.3.4
201
201
  * https://github.com/kurkle/color#readme
202
202
  * (c) 2024 Jukka Kurkela
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anarock-widgets",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",