anarock-widgets 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anarock-widgets.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +33 -33
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/anarock-widgets.css
CHANGED
|
@@ -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-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-200:oklch(92.8% .006 264.531);--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}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.isolate{isolation:isolate}.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-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\[80px\]{min-width:80px}.min-w-\[84px\]{min-width:84px}.min-w-\[353px\]{min-width:353px}.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,)}.transform\!{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)!important}.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-0{gap:calc(var(--spacing)*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-200{border-color:var(--color-gray-200)}.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)}.stroke-\[\#884EA7\]{stroke:#884ea7}.stroke-\[1\.4\]{stroke-width:1.4px}.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-\[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-\[\#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{--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)}.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)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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}.blur{--tw-blur:blur(8px);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,)}.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,)}.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,)!important}.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))}.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-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-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-200:oklch(92.8% .006 264.531);--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}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.isolate{isolation:isolate}.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}.inline-flex{display:inline-flex}.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-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\[80px\]{min-width:80px}.min-w-\[84px\]{min-width:84px}.min-w-\[353px\]{min-width:353px}.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,)}.transform\!{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)!important}.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-0{gap:calc(var(--spacing)*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-200{border-color:var(--color-gray-200)}.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)}.stroke-\[\#884EA7\]{stroke:#884ea7}.stroke-\[1\.4\]{stroke-width:1.4px}.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-\[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-\[\#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}.underline{text-decoration-line:underline}.\!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{--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)}.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)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);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}.blur{--tw-blur:blur(8px);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,)}.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,)}.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,)!important}.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))}.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-ease{syntax:"*";inherits:false}
|
package/dist/index.cjs.js
CHANGED
|
@@ -306,7 +306,7 @@ Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
|
306
306
|
`))}},[qt,xe,E,x,z]),Qt&&(E?it.length===0?de=null:de=it.reduce((X,le,pe)=>(X.push(le),pe<it.length-1&&X.push(", "),X),[]):de=Tt);let hn=oe;!a&&ie&&ee&&(hn=T.clientWidth);let $t;typeof j<"u"?$t=j:$t=d?null:0;const mn=R.id||(x?`mui-component-select-${x}`:void 0),ve={...t,variant:B,value:z,open:Ue,error:p},tn=jY(ve),Lt={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(ve):y.slotProps?.paper},W={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(ve):y.slotProps?.list},se=RS();return O.jsxs(_.Fragment,{children:[O.jsx(AY,{as:"div",ref:J,tabIndex:$t,role:"combobox","aria-controls":Ue?se:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":Ue?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,mn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":p?"true":void 0,onKeyDown:tt,onMouseDown:d||D?null:te,onBlur:ke,onFocus:C,...R,ownerState:ve,className:ue(R.className,tn.select,l),id:mn,children:MY(de)?_O||(_O=O.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):de}),O.jsx(kY,{"aria-invalid":p,value:Array.isArray(z)?z.join(","):z,name:x,ref:ne,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:d,className:tn.nativeInput,autoFocus:o,required:P,...Y,ownerState:ve}),O.jsx(TY,{as:g,className:tn.icon,ownerState:ve}),O.jsx(AT,{id:`menu-${x||""}`,anchorEl:T,open:Ue,onClose:me,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:se,...W},paper:{...Lt,style:{minWidth:hn,...Lt!=null?Lt.style:null}}},children:en})]})});process.env.NODE_ENV!=="production"&&(RT.propTypes={"aria-describedby":h.string,"aria-label":h.string,autoFocus:h.bool,autoWidth:h.bool,children:h.node,classes:h.object,className:h.string,defaultOpen:h.bool,defaultValue:h.any,disabled:h.bool,displayEmpty:h.bool,error:h.bool,IconComponent:h.elementType.isRequired,inputRef:Lr,labelId:h.string,MenuProps:h.object,multiple:h.bool,name:h.string,onBlur:h.func,onChange:h.func,onClose:h.func,onFocus:h.func,onOpen:h.func,open:h.bool,readOnly:h.bool,renderValue:h.func,required:h.bool,SelectDisplayProps:h.object,tabIndex:h.oneOfType([h.number,h.string]),type:h.any,value:h.any,variant:h.oneOf(["standard","outlined","filled"])});const NY=e=>{const{classes:t}=e,r=Nt({root:["root"]},NT,t);return{...t,...r}},Ey={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Dr(e)&&e!=="variant"},RY=we(xy,Ey)(""),DY=we(Oy,Ey)(""),IY=we(by,Ey)(""),Sy=_.forwardRef(function(t,n){const r=Wt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=wq,id:d,input:f,inputProps:p,label:g,labelId:m,MenuProps:v,multiple:y=!1,native:E=!1,onClose:x,onOpen:b,open:w,renderValue:S,SelectDisplayProps:C,variant:A="outlined",...k}=r,D=E?MT:RT,M=yy(),P=vy({props:r,muiFormControl:M,states:["variant","error"]}),R=P.variant||A,j={...r,variant:R,classes:a},N=NY(j),{root:L,...B}=N,Y=f||{standard:O.jsx(RY,{ownerState:j}),outlined:O.jsx(DY,{label:g,ownerState:j}),filled:O.jsx(IY,{ownerState:j})}[R],z=Vt(n,Ba(Y));return O.jsx(_.Fragment,{children:_.cloneElement(Y,{inputComponent:D,inputProps:{children:o,error:P.error,IconComponent:u,variant:R,type:void 0,multiple:y,...E?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:v,onClose:x,onOpen:b,open:w,renderValue:S,SelectDisplayProps:{id:d,...C}},...p,classes:p?sn(B,p.classes):B,...f?f.props.inputProps:{}},...(y&&E||c)&&R==="outlined"?{notched:!0}:{},ref:z,className:ue(Y.props.className,s,N.root),...!f&&{variant:R},...k})})});process.env.NODE_ENV!=="production"&&(Sy.propTypes={autoWidth:h.bool,children:h.node,classes:h.object,className:h.string,defaultOpen:h.bool,defaultValue:h.any,displayEmpty:h.bool,IconComponent:h.elementType,id:h.string,input:h.element,inputProps:h.object,label:h.node,labelId:h.string,MenuProps:h.object,multiple:h.bool,native:h.bool,onChange:h.func,onClose:h.func,onOpen:h.func,open:h.bool,renderValue:h.func,SelectDisplayProps:h.object,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),value:h.oneOfType([h.oneOf([""]),h.any]),variant:h.oneOf(["filled","outlined","standard"])});Sy.muiName="Select";function $Y(e){return At("MuiTooltip",e)}const ht=vt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function LY(e){return Math.round(e*1e5)/1e5}const FY=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${jt(o.split("-")[0])}`],arrow:["arrow"]};return Nt(a,$Y,t)},BY=we(gy,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(cn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${ht.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ht.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ht.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ht.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${ht.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${ht.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${ht.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${ht.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),zY=we("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${jt(n.placement.split("-")[0])}`]]}})(cn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${ht.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${ht.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${ht.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${ht.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${LY(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${ht.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${ht.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${ht.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${ht.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${ht.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${ht.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${ht.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${ht.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${ht.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${ht.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),VY=we("span",{name:"MuiTooltip",slot:"Arrow"})(cn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let yc=!1;const CO=new tf;let as={x:0,y:0};function bc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Rm=_.forwardRef(function(t,n){const r=Wt({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:y=!1,id:E,leaveDelay:x=0,leaveTouchDelay:b=1500,onClose:w,onOpen:S,open:C,placement:A="bottom",PopperComponent:k,PopperProps:D={},slotProps:M={},slots:P={},title:R,TransitionComponent:j,TransitionProps:N,...L}=r,B=_.isValidElement(o)?o:O.jsx("span",{children:o}),Y=bd(),z=og(),[F,G]=_.useState(),[q,ne]=_.useState(null),Q=_.useRef(!1),ee=f||y,re=ra(),ie=ra(),oe=ra(),H=ra(),[K,J]=Nh({controlled:C,default:!1,name:"Tooltip",state:"open"});let T=K;if(process.env.NODE_ENV!=="production"){const{current:ye}=_.useRef(C!==void 0);_.useEffect(()=>{F&&F.disabled&&!ye&&R!==""&&F.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
307
307
|
`))},[R,F,ye])}const fe=RS(E),te=_.useRef(),me=Qr(()=>{te.current!==void 0&&(document.body.style.WebkitUserSelect=te.current,te.current=void 0),H.clear()});_.useEffect(()=>me,[me]);const xe=ye=>{CO.clear(),yc=!0,J(!0),S&&!T&&S(ye)},Se=Qr(ye=>{CO.start(800+x,()=>{yc=!1}),J(!1),w&&T&&w(ye),re.start(Y.transitions.duration.shortest,()=>{Q.current=!1})}),Ae=ye=>{Q.current&&ye.type!=="touchstart"||(F&&F.removeAttribute("title"),ie.clear(),oe.clear(),g||yc&&m?ie.start(yc?m:g,()=>{xe(ye)}):xe(ye))},tt=ye=>{ie.clear(),oe.start(x,()=>{Se(ye)})},[,Ue]=_.useState(!1),ke=ye=>{Bu(ye.target)||(Ue(!1),tt(ye))},de=ye=>{F||G(ye.currentTarget),Bu(ye.target)&&(Ue(!0),Ae(ye))},Tt=ye=>{Q.current=!0;const un=B.props;un.onTouchStart&&un.onTouchStart(ye)},it=ye=>{Tt(ye),oe.clear(),re.clear(),me(),te.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",H.start(v,()=>{document.body.style.WebkitUserSelect=te.current,Ae(ye)})},Qt=ye=>{B.props.onTouchEnd&&B.props.onTouchEnd(ye),me(),oe.start(b,()=>{Se(ye)})};_.useEffect(()=>{if(!T)return;function ye(un){un.key==="Escape"&&Se(un)}return document.addEventListener("keydown",ye),()=>{document.removeEventListener("keydown",ye)}},[Se,T]);const qt=Vt(Ba(B),G,n);!R&&R!==0&&(T=!1);const en=_.useRef(),hn=ye=>{const un=B.props;un.onMouseMove&&un.onMouseMove(ye),as={x:ye.clientX,y:ye.clientY},en.current&&en.current.update()},$t={},mn=typeof R=="string";c?($t.title=!T&&mn&&!d?R:null,$t["aria-describedby"]=T?fe:null):($t["aria-label"]=mn?R:null,$t["aria-labelledby"]=T&&!mn?fe:null);const ve={...$t,...L,...B.props,className:ue(L.className,B.props.className),onTouchStart:Tt,ref:qt,...y?{onMouseMove:hn}:{}};process.env.NODE_ENV!=="production"&&(ve["data-mui-internal-clone-element"]=!0,_.useEffect(()=>{F&&!F.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
308
308
|
`))},[F]));const tn={};p||(ve.onTouchStart=it,ve.onTouchEnd=Qt),d||(ve.onMouseOver=bc(Ae,ve.onMouseOver),ve.onMouseLeave=bc(tt,ve.onMouseLeave),ee||(tn.onMouseOver=Ae,tn.onMouseLeave=tt)),u||(ve.onFocus=bc(de,ve.onFocus),ve.onBlur=bc(ke,ve.onBlur),ee||(tn.onFocus=de,tn.onBlur=ke)),process.env.NODE_ENV!=="production"&&B.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${B.props.title}\` or the Tooltip component.`].join(`
|
|
309
|
-
`));const Lt={...r,isRtl:z,arrow:i,disableInteractive:ee,placement:A,PopperComponentProp:k,touch:Q.current},W=typeof M.popper=="function"?M.popper(Lt):M.popper,se=_.useMemo(()=>{let ye=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return D.popperOptions?.modifiers&&(ye=ye.concat(D.popperOptions.modifiers)),W?.popperOptions?.modifiers&&(ye=ye.concat(W.popperOptions.modifiers)),{...D.popperOptions,...W?.popperOptions,modifiers:ye}},[q,D.popperOptions,W?.popperOptions]),X=FY(Lt),le=typeof M.transition=="function"?M.transition(Lt):M.transition,pe={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...D,...W??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...le??l.transition}}},[Ye,ot]=On("popper",{elementType:BY,externalForwardedProps:pe,ownerState:Lt,className:ue(X.popper,D?.className)}),[Un,vi]=On("transition",{elementType:Js,externalForwardedProps:pe,ownerState:Lt}),[Hn,qi]=On("tooltip",{elementType:zY,className:X.tooltip,externalForwardedProps:pe,ownerState:Lt}),[Fr,mr]=On("arrow",{elementType:VY,className:X.arrow,externalForwardedProps:pe,ownerState:Lt,ref:ne});return O.jsxs(_.Fragment,{children:[_.cloneElement(B,ve),O.jsx(Ye,{as:k??gy,placement:A,anchorEl:y?{getBoundingClientRect:()=>({top:as.y,left:as.x,right:as.x,bottom:as.y,width:0,height:0})}:F,popperRef:en,open:F?T:!1,id:fe,transition:!0,...tn,...ot,popperOptions:se,children:({TransitionProps:ye})=>O.jsx(Un,{timeout:Y.transitions.duration.shorter,...ye,...vi,children:O.jsxs(Hn,{...qi,children:[R,i?O.jsx(Fr,{...mr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Rm.propTypes={arrow:h.bool,children:za.isRequired,classes:h.object,className:h.string,components:h.shape({Arrow:h.elementType,Popper:h.elementType,Tooltip:h.elementType,Transition:h.elementType}),componentsProps:h.shape({arrow:h.object,popper:h.object,tooltip:h.object,transition:h.object}),describeChild:h.bool,disableFocusListener:h.bool,disableHoverListener:h.bool,disableInteractive:h.bool,disableTouchListener:h.bool,enterDelay:h.number,enterNextDelay:h.number,enterTouchDelay:h.number,followCursor:h.bool,id:h.string,leaveDelay:h.number,leaveTouchDelay:h.number,onClose:h.func,onOpen:h.func,open:h.bool,placement:h.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:h.elementType,PopperProps:h.object,slotProps:h.shape({arrow:h.oneOfType([h.func,h.object]),popper:h.oneOfType([h.func,h.object]),tooltip:h.oneOfType([h.func,h.object]),transition:h.oneOfType([h.func,h.object])}),slots:h.shape({arrow:h.elementType,popper:h.elementType,tooltip:h.elementType,transition:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),title:h.node,TransitionComponent:h.elementType,TransitionProps:h.object});function WY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function UY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function HY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const KY=Gc(Sy)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function DT({widgetId:e,options:t=[],defaultValue:n="all",onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=sessionStorage.getItem(`${e}_community_id`),[a,s]=I.useState(o||n),l=u=>{const d=u.target.value;s(d),d==="all"?sessionStorage.removeItem(`${e}_community_id`):sessionStorage.setItem(`${e}_community_id`,d),r(d,e)},c=()=>{sessionStorage.setItem(`${e}_export`,"true"),i(e)};return O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Rm,{title:"Select a community",children:O.jsx(OT,{size:"small",children:O.jsxs(KY,{value:a,onChange:l,children:[O.jsx(Nm,{value:"all",sx:{fontWeight:600},children:"All"}),t?.map(u=>O.jsx(Nm,{value:u.id,children:u.name},u.id))]})})}),O.jsx(Rm,{title:"Export CSV for this widget",children:O.jsx("button",{onClick:c,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:O.jsx(UY,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function qY({isStatic:e,data:t}){const n=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],r=[{name:"Notice",value:Number(t?.total_notices||0),color:n[0]},{name:"Post",value:Number(t?.total_topics||0),color:n[1]},{name:"Poll",value:Number(t?.total_polls||0),color:n[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:n[3]}];return O.jsx(Ro,{title:"Engagement",period:"This Month",icon:O.jsx(qS,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:O.jsx(DT,{widgetId:"finance_summary",options:t?.communities,onFilterChange:(i,o)=>console.log(i,o),onExport:i=>console.log("Export triggered for",i)}),children:O.jsx("div",{className:"w-full h-[235px]",children:O.jsx(Fo,{width:"100%",height:"100%",children:O.jsxs(hH,{data:r,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[O.jsx(Jd,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),O.jsx(Ys,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),O.jsx(Qd,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),O.jsx(Lo,{content:O.jsx(hl,{}),cursor:{fill:"transparent"}}),O.jsx(pA,{dataKey:"value",barSize:40,isAnimationActive:!1,children:r.map((i,o)=>O.jsx(Nr,{fill:n[o]},i.name))})]})})})})}function YY({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=I.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return O.jsxs(Ro,{title:"Facilities",period:"Today",icon:O.jsx(KS,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[O.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[O.jsxs("div",{children:[O.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),O.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),O.jsxs("div",{children:[O.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),O.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),O.jsx("div",{className:"w-full h-[170px]",children:O.jsx(Fo,{width:"100%",height:"100%",children:O.jsxs(zA,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[O.jsx(Jd,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),O.jsx(Qd,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),O.jsx(Ys,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),O.jsx(Ys,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),O.jsx(Lo,{content:O.jsx(hl,{})}),O.jsx(la,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),O.jsx(la,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function GY({data:e}){const t=e?.incomeSummary||{},n=e?.expenditureSummary||{},r=["AED","USD","EUR"],i=["Rs","INR","₹"];function o(s){if(s==null||isNaN(s))return"0";const l=Number(s),c=Math.abs(l),u=l<0?"-":"";return c>=1e9?u+(c/1e9).toFixed(c%1e9===0?0:2)+"B":c>=1e6?u+(c/1e6).toFixed(c%1e6===0?0:2)+"M":c>=1e3?u+(c/1e3).toFixed(c%1e3===0?0:2)+"K":u+c.toFixed(c%1===0?0:2)}function a(s,l){return l?i.includes(l)?`${l} ${o(s)}`:r.includes(l)?`${o(s)} ${l}`:`${o(s)} ${l}`:o(s)}return O.jsx(Ro,{title:"Income",period:"This Month",icon:O.jsx(Xb,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:O.jsx(DT,{widgetId:"finance_summary",options:e?.communities,onFilterChange:(s,l)=>console.log(s,l),onExport:s=>console.log("Export triggered for",s)}),children:O.jsxs("div",{children:[O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[O.jsx("div",{children:"Opening"}),O.jsx("div",{children:"Income"}),O.jsx("div",{children:"Collection"}),O.jsx("div",{children:"Closing"})]}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[O.jsx("div",{children:a(t.opening_balance,t?.currency_type)}),O.jsx("div",{children:a(t.income,t?.currency_type)}),O.jsx("div",{children:a(t.collection,t?.currency_type)}),O.jsx("div",{children:a(t.closing_balance,t?.currency_type)})]}),O.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),O.jsx("div",{className:"flex items-center justify-between",children:O.jsxs("div",{className:"flex items-center gap-[12px]",children:[O.jsx(Xb,{className:"!text-[24px] text-red-600"}),O.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[O.jsx("div",{children:"Opening"}),O.jsx("div",{children:"Expenditure"}),O.jsx("div",{children:"Payment"}),O.jsx("div",{children:"Outstanding"})]}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[O.jsx("div",{children:a(n.opening_balance,n?.currency_type)}),O.jsx("div",{children:a(n.expenditure,n?.currency_type)}),O.jsx("div",{children:a(n.payment,n?.currency_type)}),O.jsx("div",{children:a(n.outstanding,n?.currency_type)})]})]})})}var XY="tippy-box",IT="tippy-content",ZY="tippy-backdrop",$T="tippy-arrow",LT="tippy-svg-arrow",ao={passive:!0,capture:!0},FT=function(){return document.body};function JY(e,t){return{}.hasOwnProperty.call(e,t)}function lh(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function _y(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function BT(e,t){return typeof e=="function"?e.apply(void 0,t):e}function AO(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function QY(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function eG(e){return e.split(/\s+/).filter(Boolean)}function ta(e){return[].concat(e)}function TO(e,t){e.indexOf(t)===-1&&e.push(t)}function tG(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function nG(e){return e.split("-")[0]}function qu(e){return[].slice.call(e)}function kO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function As(){return document.createElement("div")}function Qs(e){return["Element","Fragment"].some(function(t){return _y(e,t)})}function rG(e){return _y(e,"NodeList")}function iG(e){return _y(e,"MouseEvent")}function oG(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function aG(e){return Qs(e)?[e]:rG(e)?qu(e):Array.isArray(e)?e:qu(document.querySelectorAll(e))}function ch(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function MO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function sG(e){var t,n=ta(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function lG(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=nG(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-f>l,y=o.left-n+p>l,E=n-o.right-g>l;return m||v||y||E})}function uh(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function jO(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Er={isTouch:!1},NO=0;function cG(){Er.isTouch||(Er.isTouch=!0,window.performance&&document.addEventListener("mousemove",zT))}function zT(){var e=performance.now();e-NO<20&&(Er.isTouch=!1,document.removeEventListener("mousemove",zT)),NO=e}function uG(){var e=document.activeElement;if(oG(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function dG(){document.addEventListener("touchstart",cG,ao),window.addEventListener("blur",uG)}var fG=typeof window<"u"&&typeof document<"u",pG=fG?!!window.msCrypto:!1;function Xo(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function RO(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function hG(e){return RO(`
|
|
309
|
+
`));const Lt={...r,isRtl:z,arrow:i,disableInteractive:ee,placement:A,PopperComponentProp:k,touch:Q.current},W=typeof M.popper=="function"?M.popper(Lt):M.popper,se=_.useMemo(()=>{let ye=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return D.popperOptions?.modifiers&&(ye=ye.concat(D.popperOptions.modifiers)),W?.popperOptions?.modifiers&&(ye=ye.concat(W.popperOptions.modifiers)),{...D.popperOptions,...W?.popperOptions,modifiers:ye}},[q,D.popperOptions,W?.popperOptions]),X=FY(Lt),le=typeof M.transition=="function"?M.transition(Lt):M.transition,pe={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...D,...W??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...le??l.transition}}},[Ye,ot]=On("popper",{elementType:BY,externalForwardedProps:pe,ownerState:Lt,className:ue(X.popper,D?.className)}),[Un,vi]=On("transition",{elementType:Js,externalForwardedProps:pe,ownerState:Lt}),[Hn,qi]=On("tooltip",{elementType:zY,className:X.tooltip,externalForwardedProps:pe,ownerState:Lt}),[Fr,mr]=On("arrow",{elementType:VY,className:X.arrow,externalForwardedProps:pe,ownerState:Lt,ref:ne});return O.jsxs(_.Fragment,{children:[_.cloneElement(B,ve),O.jsx(Ye,{as:k??gy,placement:A,anchorEl:y?{getBoundingClientRect:()=>({top:as.y,left:as.x,right:as.x,bottom:as.y,width:0,height:0})}:F,popperRef:en,open:F?T:!1,id:fe,transition:!0,...tn,...ot,popperOptions:se,children:({TransitionProps:ye})=>O.jsx(Un,{timeout:Y.transitions.duration.shorter,...ye,...vi,children:O.jsxs(Hn,{...qi,children:[R,i?O.jsx(Fr,{...mr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Rm.propTypes={arrow:h.bool,children:za.isRequired,classes:h.object,className:h.string,components:h.shape({Arrow:h.elementType,Popper:h.elementType,Tooltip:h.elementType,Transition:h.elementType}),componentsProps:h.shape({arrow:h.object,popper:h.object,tooltip:h.object,transition:h.object}),describeChild:h.bool,disableFocusListener:h.bool,disableHoverListener:h.bool,disableInteractive:h.bool,disableTouchListener:h.bool,enterDelay:h.number,enterNextDelay:h.number,enterTouchDelay:h.number,followCursor:h.bool,id:h.string,leaveDelay:h.number,leaveTouchDelay:h.number,onClose:h.func,onOpen:h.func,open:h.bool,placement:h.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:h.elementType,PopperProps:h.object,slotProps:h.shape({arrow:h.oneOfType([h.func,h.object]),popper:h.oneOfType([h.func,h.object]),tooltip:h.oneOfType([h.func,h.object]),transition:h.oneOfType([h.func,h.object])}),slots:h.shape({arrow:h.elementType,popper:h.elementType,tooltip:h.elementType,transition:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),title:h.node,TransitionComponent:h.elementType,TransitionProps:h.object});function WY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function UY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function HY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const KY=Gc(Sy)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function DT({widgetId:e,options:t=[],defaultValue:n="all",onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=sessionStorage.getItem(`${e}_community_id`),[a,s]=I.useState(o||n),l=u=>{const d=u.target.value;s(d),d==="all"?sessionStorage.removeItem(`${e}_community_id`):sessionStorage.setItem(`${e}_community_id`,d),r(d,e)},c=()=>{sessionStorage.setItem(`${e}_export`,"true"),i(e)};return O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Rm,{title:"Select a community",children:O.jsx(OT,{size:"small",children:O.jsxs(KY,{value:a,onChange:l,children:[O.jsx(Nm,{value:"all",sx:{fontWeight:600},children:"All"}),t?.map(u=>O.jsx(Nm,{value:u.id,children:u.name},u.id))]})})}),O.jsx(Rm,{title:"Export CSV for this widget",children:O.jsx("button",{onClick:c,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:O.jsx(UY,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function qY({isStatic:e,data:t,communities:n}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],i=[{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 O.jsx(Ro,{title:"Engagement",period:"This Month",icon:O.jsx(qS,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:O.jsx(DT,{widgetId:"engagement",options:n,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:O.jsx("div",{className:"w-full h-[235px]",children:O.jsx(Fo,{width:"100%",height:"100%",children:O.jsxs(hH,{data:i,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[O.jsx(Jd,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),O.jsx(Ys,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),O.jsx(Qd,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),O.jsx(Lo,{content:O.jsx(hl,{}),cursor:{fill:"transparent"}}),O.jsx(pA,{dataKey:"value",barSize:40,isAnimationActive:!1,children:i.map((o,a)=>O.jsx(Nr,{fill:r[a]},o.name))})]})})})})}function YY({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=I.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return O.jsxs(Ro,{title:"Facilities",period:"Today",icon:O.jsx(KS,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[O.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[O.jsxs("div",{children:[O.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),O.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),O.jsxs("div",{children:[O.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),O.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),O.jsx("div",{className:"w-full h-[170px]",children:O.jsx(Fo,{width:"100%",height:"100%",children:O.jsxs(zA,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[O.jsx(Jd,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),O.jsx(Qd,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),O.jsx(Ys,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),O.jsx(Ys,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),O.jsx(Lo,{content:O.jsx(hl,{})}),O.jsx(la,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),O.jsx(la,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function GY({data:e,communities:t}){const n=e?.incomeSummary||{},r=e?.expenditureSummary||{},i=["AED","USD","EUR"],o=["Rs","INR","₹"];function a(l){if(l==null||isNaN(l))return"0";const c=Number(l),u=Math.abs(c),d=c<0?"-":"";return u>=1e9?d+(u/1e9).toFixed(u%1e9===0?0:2)+"B":u>=1e6?d+(u/1e6).toFixed(u%1e6===0?0:2)+"M":u>=1e3?d+(u/1e3).toFixed(u%1e3===0?0:2)+"K":d+u.toFixed(u%1===0?0:2)}function s(l,c){return c?o.includes(c)?`${c} ${a(l)}`:i.includes(c)?`${a(l)} ${c}`:`${a(l)} ${c}`:a(l)}return O.jsx(Ro,{title:"Income",period:"This Month",icon:O.jsx(Xb,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:O.jsx(DT,{widgetId:"finance_summary",options:t,onFilterChange:(l,c)=>console.log(l,c),onExport:l=>console.log("Export triggered for",l)}),children:O.jsxs("div",{children:[O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[O.jsx("div",{children:"Opening"}),O.jsx("div",{children:"Income"}),O.jsx("div",{children:"Collection"}),O.jsx("div",{children:"Closing"})]}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[O.jsx("div",{children:s(n.opening_balance,n?.currency_type)}),O.jsx("div",{children:s(n.income,n?.currency_type)}),O.jsx("div",{children:s(n.collection,n?.currency_type)}),O.jsx("div",{children:s(n.closing_balance,n?.currency_type)})]}),O.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),O.jsx("div",{className:"flex items-center justify-between",children:O.jsxs("div",{className:"flex items-center gap-[12px]",children:[O.jsx(Xb,{className:"!text-[24px] text-red-600"}),O.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[O.jsx("div",{children:"Opening"}),O.jsx("div",{children:"Expenditure"}),O.jsx("div",{children:"Payment"}),O.jsx("div",{children:"Outstanding"})]}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[O.jsx("div",{children:s(r.opening_balance,r?.currency_type)}),O.jsx("div",{children:s(r.expenditure,r?.currency_type)}),O.jsx("div",{children:s(r.payment,r?.currency_type)}),O.jsx("div",{children:s(r.outstanding,r?.currency_type)})]})]})})}var XY="tippy-box",IT="tippy-content",ZY="tippy-backdrop",$T="tippy-arrow",LT="tippy-svg-arrow",ao={passive:!0,capture:!0},FT=function(){return document.body};function JY(e,t){return{}.hasOwnProperty.call(e,t)}function lh(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function _y(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function BT(e,t){return typeof e=="function"?e.apply(void 0,t):e}function AO(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function QY(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function eG(e){return e.split(/\s+/).filter(Boolean)}function ta(e){return[].concat(e)}function TO(e,t){e.indexOf(t)===-1&&e.push(t)}function tG(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function nG(e){return e.split("-")[0]}function qu(e){return[].slice.call(e)}function kO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function As(){return document.createElement("div")}function Qs(e){return["Element","Fragment"].some(function(t){return _y(e,t)})}function rG(e){return _y(e,"NodeList")}function iG(e){return _y(e,"MouseEvent")}function oG(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function aG(e){return Qs(e)?[e]:rG(e)?qu(e):Array.isArray(e)?e:qu(document.querySelectorAll(e))}function ch(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function MO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function sG(e){var t,n=ta(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function lG(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=nG(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-f>l,y=o.left-n+p>l,E=n-o.right-g>l;return m||v||y||E})}function uh(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function jO(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Er={isTouch:!1},NO=0;function cG(){Er.isTouch||(Er.isTouch=!0,window.performance&&document.addEventListener("mousemove",zT))}function zT(){var e=performance.now();e-NO<20&&(Er.isTouch=!1,document.removeEventListener("mousemove",zT)),NO=e}function uG(){var e=document.activeElement;if(oG(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function dG(){document.addEventListener("touchstart",cG,ao),window.addEventListener("blur",uG)}var fG=typeof window<"u"&&typeof document<"u",pG=fG?!!window.msCrypto:!1;function Xo(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function RO(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function hG(e){return RO(`
|
|
310
310
|
%ctippy.js
|
|
311
311
|
|
|
312
312
|
%c`+RO(e)+`
|
package/dist/index.es.js
CHANGED
|
@@ -32928,19 +32928,19 @@ function XT({
|
|
|
32928
32928
|
) })
|
|
32929
32929
|
] });
|
|
32930
32930
|
}
|
|
32931
|
-
function Jee({ isStatic: e, data: t }) {
|
|
32932
|
-
const
|
|
32931
|
+
function Jee({ isStatic: e, data: t, communities: n }) {
|
|
32932
|
+
const r = ["#8B5CF6", "#22C55E", "#3B82F6", "#F59E0B"], i = [
|
|
32933
32933
|
{
|
|
32934
32934
|
name: "Notice",
|
|
32935
32935
|
value: Number(t?.total_notices || 0),
|
|
32936
|
-
color:
|
|
32936
|
+
color: r[0]
|
|
32937
32937
|
},
|
|
32938
|
-
{ name: "Post", value: Number(t?.total_topics || 0), color:
|
|
32939
|
-
{ name: "Poll", value: Number(t?.total_polls || 0), color:
|
|
32938
|
+
{ name: "Post", value: Number(t?.total_topics || 0), color: r[1] },
|
|
32939
|
+
{ name: "Poll", value: Number(t?.total_polls || 0), color: r[2] },
|
|
32940
32940
|
{
|
|
32941
32941
|
name: "Survey",
|
|
32942
32942
|
value: Number(t?.total_surveys || 0),
|
|
32943
|
-
color:
|
|
32943
|
+
color: r[3]
|
|
32944
32944
|
}
|
|
32945
32945
|
];
|
|
32946
32946
|
return /* @__PURE__ */ O.jsx(
|
|
@@ -32953,16 +32953,16 @@ function Jee({ isStatic: e, data: t }) {
|
|
|
32953
32953
|
actionButtons: /* @__PURE__ */ O.jsx(
|
|
32954
32954
|
XT,
|
|
32955
32955
|
{
|
|
32956
|
-
widgetId: "
|
|
32957
|
-
options:
|
|
32958
|
-
onFilterChange: (
|
|
32959
|
-
onExport: (
|
|
32956
|
+
widgetId: "engagement",
|
|
32957
|
+
options: n,
|
|
32958
|
+
onFilterChange: (o, a) => console.log(o, a),
|
|
32959
|
+
onExport: (o) => console.log("Export triggered for", o)
|
|
32960
32960
|
}
|
|
32961
32961
|
),
|
|
32962
32962
|
children: /* @__PURE__ */ O.jsx("div", { className: "w-full h-[235px]", children: /* @__PURE__ */ O.jsx(Yo, { width: "100%", height: "100%", children: /* @__PURE__ */ O.jsxs(
|
|
32963
32963
|
CH,
|
|
32964
32964
|
{
|
|
32965
|
-
data:
|
|
32965
|
+
data: i,
|
|
32966
32966
|
layout: "vertical",
|
|
32967
32967
|
margin: { top: 4, right: 8, left: 0, bottom: 0 },
|
|
32968
32968
|
children: [
|
|
@@ -33011,7 +33011,7 @@ function Jee({ isStatic: e, data: t }) {
|
|
|
33011
33011
|
cursor: { fill: "transparent" }
|
|
33012
33012
|
}
|
|
33013
33013
|
),
|
|
33014
|
-
/* @__PURE__ */ O.jsx(AA, { dataKey: "value", barSize: 40, isAnimationActive: !1, children:
|
|
33014
|
+
/* @__PURE__ */ O.jsx(AA, { dataKey: "value", barSize: 40, isAnimationActive: !1, children: i.map((o, a) => /* @__PURE__ */ O.jsx(zr, { fill: r[a] }, o.name)) })
|
|
33015
33015
|
]
|
|
33016
33016
|
}
|
|
33017
33017
|
) }) })
|
|
@@ -33131,15 +33131,15 @@ function Qee({ isStatic: e, data: t }) {
|
|
|
33131
33131
|
}
|
|
33132
33132
|
);
|
|
33133
33133
|
}
|
|
33134
|
-
function ete({ data: e }) {
|
|
33135
|
-
const
|
|
33136
|
-
function
|
|
33137
|
-
if (
|
|
33138
|
-
const
|
|
33139
|
-
return
|
|
33134
|
+
function ete({ data: e, communities: t }) {
|
|
33135
|
+
const n = e?.incomeSummary || {}, r = e?.expenditureSummary || {}, i = ["AED", "USD", "EUR"], o = ["Rs", "INR", "₹"];
|
|
33136
|
+
function a(l) {
|
|
33137
|
+
if (l == null || isNaN(l)) return "0";
|
|
33138
|
+
const c = Number(l), u = Math.abs(c), d = c < 0 ? "-" : "";
|
|
33139
|
+
return u >= 1e9 ? d + (u / 1e9).toFixed(u % 1e9 === 0 ? 0 : 2) + "B" : u >= 1e6 ? d + (u / 1e6).toFixed(u % 1e6 === 0 ? 0 : 2) + "M" : u >= 1e3 ? d + (u / 1e3).toFixed(u % 1e3 === 0 ? 0 : 2) + "K" : d + u.toFixed(u % 1 === 0 ? 0 : 2);
|
|
33140
33140
|
}
|
|
33141
|
-
function
|
|
33142
|
-
return
|
|
33141
|
+
function s(l, c) {
|
|
33142
|
+
return c ? o.includes(c) ? `${c} ${a(l)}` : i.includes(c) ? `${a(l)} ${c}` : `${a(l)} ${c}` : a(l);
|
|
33143
33143
|
}
|
|
33144
33144
|
return /* @__PURE__ */ O.jsx(
|
|
33145
33145
|
Vo,
|
|
@@ -33152,9 +33152,9 @@ function ete({ data: e }) {
|
|
|
33152
33152
|
XT,
|
|
33153
33153
|
{
|
|
33154
33154
|
widgetId: "finance_summary",
|
|
33155
|
-
options:
|
|
33156
|
-
onFilterChange: (
|
|
33157
|
-
onExport: (
|
|
33155
|
+
options: t,
|
|
33156
|
+
onFilterChange: (l, c) => console.log(l, c),
|
|
33157
|
+
onExport: (l) => console.log("Export triggered for", l)
|
|
33158
33158
|
}
|
|
33159
33159
|
),
|
|
33160
33160
|
children: /* @__PURE__ */ O.jsxs("div", { children: [
|
|
@@ -33165,10 +33165,10 @@ function ete({ data: e }) {
|
|
|
33165
33165
|
/* @__PURE__ */ O.jsx("div", { children: "Closing" })
|
|
33166
33166
|
] }),
|
|
33167
33167
|
/* @__PURE__ */ O.jsxs("div", { className: "grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2", children: [
|
|
33168
|
-
/* @__PURE__ */ O.jsx("div", { children:
|
|
33169
|
-
/* @__PURE__ */ O.jsx("div", { children:
|
|
33170
|
-
/* @__PURE__ */ O.jsx("div", { children:
|
|
33171
|
-
/* @__PURE__ */ O.jsx("div", { children:
|
|
33168
|
+
/* @__PURE__ */ O.jsx("div", { children: s(n.opening_balance, n?.currency_type) }),
|
|
33169
|
+
/* @__PURE__ */ O.jsx("div", { children: s(n.income, n?.currency_type) }),
|
|
33170
|
+
/* @__PURE__ */ O.jsx("div", { children: s(n.collection, n?.currency_type) }),
|
|
33171
|
+
/* @__PURE__ */ O.jsx("div", { children: s(n.closing_balance, n?.currency_type) })
|
|
33172
33172
|
] }),
|
|
33173
33173
|
/* @__PURE__ */ O.jsx("hr", { className: "my-4 border-t border-dashed border-gray-300" }),
|
|
33174
33174
|
/* @__PURE__ */ O.jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ O.jsxs("div", { className: "flex items-center gap-[12px]", children: [
|
|
@@ -33182,13 +33182,13 @@ function ete({ data: e }) {
|
|
|
33182
33182
|
/* @__PURE__ */ O.jsx("div", { children: "Outstanding" })
|
|
33183
33183
|
] }),
|
|
33184
33184
|
/* @__PURE__ */ O.jsxs("div", { className: "grid grid-cols-4 !text-[12px] font-medium text-[#121212]", children: [
|
|
33185
|
-
/* @__PURE__ */ O.jsx("div", { children:
|
|
33186
|
-
|
|
33187
|
-
|
|
33185
|
+
/* @__PURE__ */ O.jsx("div", { children: s(
|
|
33186
|
+
r.opening_balance,
|
|
33187
|
+
r?.currency_type
|
|
33188
33188
|
) }),
|
|
33189
|
-
/* @__PURE__ */ O.jsx("div", { children:
|
|
33190
|
-
/* @__PURE__ */ O.jsx("div", { children:
|
|
33191
|
-
/* @__PURE__ */ O.jsx("div", { children:
|
|
33189
|
+
/* @__PURE__ */ O.jsx("div", { children: s(r.expenditure, r?.currency_type) }),
|
|
33190
|
+
/* @__PURE__ */ O.jsx("div", { children: s(r.payment, r?.currency_type) }),
|
|
33191
|
+
/* @__PURE__ */ O.jsx("div", { children: s(r.outstanding, r?.currency_type) })
|
|
33192
33192
|
] })
|
|
33193
33193
|
] })
|
|
33194
33194
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -306,7 +306,7 @@ Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
|
306
306
|
`))}},[Qt,we,E,x,z]),ln&&(E?ut.length===0?de=null:de=ut.reduce((X,ce,he)=>(X.push(ce),he<ut.length-1&&X.push(", "),X),[]):de=$t);let Cn=oe;!a&&ie&&ee&&(Cn=T.clientWidth);let Kt;typeof j<"u"?Kt=j:Kt=d?null:0;const An=D.id||(x?`mui-component-select-${x}`:void 0),ve={...t,variant:B,value:z,open:Ye,error:p},un=EY(ve),qt={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(ve):y.slotProps?.paper},W={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(ve):y.slotProps?.list},se=d0();return O.jsxs(_.Fragment,{children:[O.jsx(bY,{as:"div",ref:J,tabIndex:Kt,role:"combobox","aria-controls":Ye?se:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":Ye?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,An].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":p?"true":void 0,onKeyDown:it,onMouseDown:d||R?null:te,onBlur:De,onFocus:C,...D,ownerState:ve,className:ue(D.className,un.select,l),id:An,children:OY(de)?QC||(QC=O.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):de}),O.jsx(wY,{"aria-invalid":p,value:Array.isArray(z)?z.join(","):z,name:x,ref:ne,"aria-hidden":!0,onChange:_e,tabIndex:-1,disabled:d,className:un.nativeInput,autoFocus:o,required:P,...Y,ownerState:ve}),O.jsx(xY,{as:g,className:un.icon,ownerState:ve}),O.jsx(KC,{id:`menu-${x||""}`,anchorEl:T,open:Ye,onClose:me,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:se,...W},paper:{...qt,style:{minWidth:Cn,...qt!=null?qt.style:null}}},children:cn})]})});process.env.NODE_ENV!=="production"&&(tA.propTypes={"aria-describedby":h.string,"aria-label":h.string,autoFocus:h.bool,autoWidth:h.bool,children:h.node,classes:h.object,className:h.string,defaultOpen:h.bool,defaultValue:h.any,disabled:h.bool,displayEmpty:h.bool,error:h.bool,IconComponent:h.elementType.isRequired,inputRef:kr,labelId:h.string,MenuProps:h.object,multiple:h.bool,name:h.string,onBlur:h.func,onChange:h.func,onClose:h.func,onFocus:h.func,onOpen:h.func,open:h.bool,readOnly:h.bool,renderValue:h.func,required:h.bool,SelectDisplayProps:h.object,tabIndex:h.oneOfType([h.number,h.string]),type:h.any,value:h.any,variant:h.oneOf(["standard","outlined","filled"])});const SY=e=>{const{classes:t}=e,r=Mt({root:["root"]},JC,t);return{...t,...r}},Yv={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Or(e)&&e!=="variant"},_Y=Oe(Wv,Yv)(""),PY=Oe(qv,Yv)(""),CY=Oe(Bv,Yv)(""),Gv=_.forwardRef(function(t,n){const r=Lt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=fq,id:d,input:f,inputProps:p,label:g,labelId:m,MenuProps:v,multiple:y=!1,native:E=!1,onClose:x,onOpen:b,open:w,renderValue:S,SelectDisplayProps:C,variant:A="outlined",...k}=r,R=E?GC:tA,M=Lv(),P=$v({props:r,muiFormControl:M,states:["variant","error"]}),D=P.variant||A,j={...r,variant:D,classes:a},N=SY(j),{root:L,...B}=N,Y=f||{standard:O.jsx(_Y,{ownerState:j}),outlined:O.jsx(PY,{label:g,ownerState:j}),filled:O.jsx(CY,{ownerState:j})}[D],z=Ft(n,Ta(Y));return O.jsx(_.Fragment,{children:_.cloneElement(Y,{inputComponent:R,inputProps:{children:o,error:P.error,IconComponent:u,variant:D,type:void 0,multiple:y,...E?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:v,onClose:x,onOpen:b,open:w,renderValue:S,SelectDisplayProps:{id:d,...C}},...p,classes:p?en(B,p.classes):B,...f?f.props.inputProps:{}},...(y&&E||c)&&D==="outlined"?{notched:!0}:{},ref:z,className:ue(Y.props.className,s,N.root),...!f&&{variant:D},...k})})});process.env.NODE_ENV!=="production"&&(Gv.propTypes={autoWidth:h.bool,children:h.node,classes:h.object,className:h.string,defaultOpen:h.bool,defaultValue:h.any,displayEmpty:h.bool,IconComponent:h.elementType,id:h.string,input:h.element,inputProps:h.object,label:h.node,labelId:h.string,MenuProps:h.object,multiple:h.bool,native:h.bool,onChange:h.func,onClose:h.func,onOpen:h.func,open:h.bool,renderValue:h.func,SelectDisplayProps:h.object,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),value:h.oneOfType([h.oneOf([""]),h.any]),variant:h.oneOf(["filled","outlined","standard"])}),Gv.muiName="Select";function AY(e){return Pt("MuiTooltip",e)}const vt=mt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function TY(e){return Math.round(e*1e5)/1e5}const kY=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${kt(o.split("-")[0])}`],arrow:["arrow"]};return Mt(a,AY,t)},MY=Oe(Rv,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(nn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${vt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${vt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${vt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${vt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${vt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${vt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${vt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${vt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),jY=Oe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${kt(n.placement.split("-")[0])}`]]}})(nn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${vt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${vt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${vt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${TY(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${vt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${vt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${vt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${vt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${vt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${vt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${vt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),NY=Oe("span",{name:"MuiTooltip",slot:"Arrow"})(nn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Id=!1;const nA=new pd;let hl={x:0,y:0};function Rd(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Xv=_.forwardRef(function(t,n){const r=Lt({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:y=!1,id:E,leaveDelay:x=0,leaveTouchDelay:b=1500,onClose:w,onOpen:S,open:C,placement:A="bottom",PopperComponent:k,PopperProps:R={},slotProps:M={},slots:P={},title:D,TransitionComponent:j,TransitionProps:N,...L}=r,B=_.isValidElement(o)?o:O.jsx("span",{children:o}),Y=Oc(),z=Uf(),[F,G]=_.useState(),[q,ne]=_.useState(null),Q=_.useRef(!1),ee=f||y,re=Sa(),ie=Sa(),oe=Sa(),H=Sa(),[K,J]=ep({controlled:C,default:!1,name:"Tooltip",state:"open"});let T=K;if(process.env.NODE_ENV!=="production"){const{current:ye}=_.useRef(C!==void 0);_.useEffect(()=>{F&&F.disabled&&!ye&&D!==""&&F.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
307
307
|
`))},[D,F,ye])}const pe=d0(E),te=_.useRef(),me=Hr(()=>{te.current!==void 0&&(document.body.style.WebkitUserSelect=te.current,te.current=void 0),H.clear()});_.useEffect(()=>me,[me]);const we=ye=>{nA.clear(),Id=!0,J(!0),S&&!T&&S(ye)},_e=Hr(ye=>{nA.start(800+x,()=>{Id=!1}),J(!1),w&&T&&w(ye),re.start(Y.transitions.duration.shortest,()=>{Q.current=!1})}),ke=ye=>{Q.current&&ye.type!=="touchstart"||(F&&F.removeAttribute("title"),ie.clear(),oe.clear(),g||Id&&m?ie.start(Id?m:g,()=>{we(ye)}):we(ye))},it=ye=>{ie.clear(),oe.start(x,()=>{_e(ye)})},[,Ye]=_.useState(!1),De=ye=>{gd(ye.target)||(Ye(!1),it(ye))},de=ye=>{F||G(ye.currentTarget),gd(ye.target)&&(Ye(!0),ke(ye))},$t=ye=>{Q.current=!0;const pn=B.props;pn.onTouchStart&&pn.onTouchStart(ye)},ut=ye=>{$t(ye),oe.clear(),re.clear(),me(),te.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",H.start(v,()=>{document.body.style.WebkitUserSelect=te.current,ke(ye)})},ln=ye=>{B.props.onTouchEnd&&B.props.onTouchEnd(ye),me(),oe.start(b,()=>{_e(ye)})};_.useEffect(()=>{if(!T)return;function ye(pn){pn.key==="Escape"&&_e(pn)}return document.addEventListener("keydown",ye),()=>{document.removeEventListener("keydown",ye)}},[_e,T]);const Qt=Ft(Ta(B),G,n);!D&&D!==0&&(T=!1);const cn=_.useRef(),Cn=ye=>{const pn=B.props;pn.onMouseMove&&pn.onMouseMove(ye),hl={x:ye.clientX,y:ye.clientY},cn.current&&cn.current.update()},Kt={},An=typeof D=="string";c?(Kt.title=!T&&An&&!d?D:null,Kt["aria-describedby"]=T?pe:null):(Kt["aria-label"]=An?D:null,Kt["aria-labelledby"]=T&&!An?pe:null);const ve={...Kt,...L,...B.props,className:ue(L.className,B.props.className),onTouchStart:$t,ref:Qt,...y?{onMouseMove:Cn}:{}};process.env.NODE_ENV!=="production"&&(ve["data-mui-internal-clone-element"]=!0,_.useEffect(()=>{F&&!F.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
308
308
|
`))},[F]));const un={};p||(ve.onTouchStart=ut,ve.onTouchEnd=ln),d||(ve.onMouseOver=Rd(ke,ve.onMouseOver),ve.onMouseLeave=Rd(it,ve.onMouseLeave),ee||(un.onMouseOver=ke,un.onMouseLeave=it)),u||(ve.onFocus=Rd(de,ve.onFocus),ve.onBlur=Rd(De,ve.onBlur),ee||(un.onFocus=de,un.onBlur=De)),process.env.NODE_ENV!=="production"&&B.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${B.props.title}\` or the Tooltip component.`].join(`
|
|
309
|
-
`));const qt={...r,isRtl:z,arrow:i,disableInteractive:ee,placement:A,PopperComponentProp:k,touch:Q.current},W=typeof M.popper=="function"?M.popper(qt):M.popper,se=_.useMemo(()=>{let ye=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return R.popperOptions?.modifiers&&(ye=ye.concat(R.popperOptions.modifiers)),W?.popperOptions?.modifiers&&(ye=ye.concat(W.popperOptions.modifiers)),{...R.popperOptions,...W?.popperOptions,modifiers:ye}},[q,R.popperOptions,W?.popperOptions]),X=kY(qt),ce=typeof M.transition=="function"?M.transition(qt):M.transition,he={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...R,...W??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...ce??l.transition}}},[Ze,dt]=xn("popper",{elementType:MY,externalForwardedProps:he,ownerState:qt,className:ue(X.popper,R?.className)}),[sr,qi]=xn("transition",{elementType:cl,externalForwardedProps:he,ownerState:qt}),[lr,Bo]=xn("tooltip",{elementType:jY,className:X.tooltip,externalForwardedProps:he,ownerState:qt}),[vi,Fr]=xn("arrow",{elementType:NY,className:X.arrow,externalForwardedProps:he,ownerState:qt,ref:ne});return O.jsxs(_.Fragment,{children:[_.cloneElement(B,ve),O.jsx(Ze,{as:k??Rv,placement:A,anchorEl:y?{getBoundingClientRect:()=>({top:hl.y,left:hl.x,right:hl.x,bottom:hl.y,width:0,height:0})}:F,popperRef:cn,open:F?T:!1,id:pe,transition:!0,...un,...dt,popperOptions:se,children:({TransitionProps:ye})=>O.jsx(sr,{timeout:Y.transitions.duration.shorter,...ye,...qi,children:O.jsxs(lr,{...Bo,children:[D,i?O.jsx(vi,{...Fr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Xv.propTypes={arrow:h.bool,children:Ma.isRequired,classes:h.object,className:h.string,components:h.shape({Arrow:h.elementType,Popper:h.elementType,Tooltip:h.elementType,Transition:h.elementType}),componentsProps:h.shape({arrow:h.object,popper:h.object,tooltip:h.object,transition:h.object}),describeChild:h.bool,disableFocusListener:h.bool,disableHoverListener:h.bool,disableInteractive:h.bool,disableTouchListener:h.bool,enterDelay:h.number,enterNextDelay:h.number,enterTouchDelay:h.number,followCursor:h.bool,id:h.string,leaveDelay:h.number,leaveTouchDelay:h.number,onClose:h.func,onOpen:h.func,open:h.bool,placement:h.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:h.elementType,PopperProps:h.object,slotProps:h.shape({arrow:h.oneOfType([h.func,h.object]),popper:h.oneOfType([h.func,h.object]),tooltip:h.oneOfType([h.func,h.object]),transition:h.oneOfType([h.func,h.object])}),slots:h.shape({arrow:h.elementType,popper:h.elementType,tooltip:h.elementType,transition:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),title:h.node,TransitionComponent:h.elementType,TransitionProps:h.object});function DY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function IY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function RY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const $Y=mc(Gv)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function rA({widgetId:e,options:t=[],defaultValue:n="all",onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=sessionStorage.getItem(`${e}_community_id`),[a,s]=I.useState(o||n),l=u=>{const d=u.target.value;s(d),d==="all"?sessionStorage.removeItem(`${e}_community_id`):sessionStorage.setItem(`${e}_community_id`,d),r(d,e)},c=()=>{sessionStorage.setItem(`${e}_export`,"true"),i(e)};return O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Xv,{title:"Select a community",children:O.jsx(DC,{size:"small",children:O.jsxs($Y,{value:a,onChange:l,children:[O.jsx(Hv,{value:"all",sx:{fontWeight:600},children:"All"}),t?.map(u=>O.jsx(Hv,{value:u.id,children:u.name},u.id))]})})}),O.jsx(Xv,{title:"Export CSV for this widget",children:O.jsx("button",{onClick:c,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:O.jsx(IY,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function LY({isStatic:e,data:t}){const n=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],r=[{name:"Notice",value:Number(t?.total_notices||0),color:n[0]},{name:"Post",value:Number(t?.total_topics||0),color:n[1]},{name:"Poll",value:Number(t?.total_polls||0),color:n[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:n[3]}];return O.jsx(Zi,{title:"Engagement",period:"This Month",icon:O.jsx($0,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:O.jsx(rA,{widgetId:"finance_summary",options:t?.communities,onFilterChange:(i,o)=>console.log(i,o),onExport:i=>console.log("Export triggered for",i)}),children:O.jsx("div",{className:"w-full h-[235px]",children:O.jsx(bo,{width:"100%",height:"100%",children:O.jsxs(oH,{data:r,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[O.jsx(od,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),O.jsx(Zs,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),O.jsx(sd,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),O.jsx(yo,{content:O.jsx(ss,{}),cursor:{fill:"transparent"}}),O.jsx(UP,{dataKey:"value",barSize:40,isAnimationActive:!1,children:r.map((i,o)=>O.jsx(Ar,{fill:n[o]},i.name))})]})})})})}function FY({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=I.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return O.jsxs(Zi,{title:"Facilities",period:"Today",icon:O.jsx(R0,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[O.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[O.jsxs("div",{children:[O.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),O.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),O.jsxs("div",{children:[O.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),O.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),O.jsx("div",{className:"w-full h-[170px]",children:O.jsx(bo,{width:"100%",height:"100%",children:O.jsxs(N2,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[O.jsx(od,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),O.jsx(sd,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),O.jsx(Zs,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),O.jsx(Zs,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),O.jsx(yo,{content:O.jsx(ss,{})}),O.jsx(xa,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),O.jsx(xa,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function BY({data:e}){const t=e?.incomeSummary||{},n=e?.expenditureSummary||{},r=["AED","USD","EUR"],i=["Rs","INR","₹"];function o(s){if(s==null||isNaN(s))return"0";const l=Number(s),c=Math.abs(l),u=l<0?"-":"";return c>=1e9?u+(c/1e9).toFixed(c%1e9===0?0:2)+"B":c>=1e6?u+(c/1e6).toFixed(c%1e6===0?0:2)+"M":c>=1e3?u+(c/1e3).toFixed(c%1e3===0?0:2)+"K":u+c.toFixed(c%1===0?0:2)}function a(s,l){return l?i.includes(l)?`${l} ${o(s)}`:r.includes(l)?`${o(s)} ${l}`:`${o(s)} ${l}`:o(s)}return O.jsx(Zi,{title:"Income",period:"This Month",icon:O.jsx(L0,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:O.jsx(rA,{widgetId:"finance_summary",options:e?.communities,onFilterChange:(s,l)=>console.log(s,l),onExport:s=>console.log("Export triggered for",s)}),children:O.jsxs("div",{children:[O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[O.jsx("div",{children:"Opening"}),O.jsx("div",{children:"Income"}),O.jsx("div",{children:"Collection"}),O.jsx("div",{children:"Closing"})]}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[O.jsx("div",{children:a(t.opening_balance,t?.currency_type)}),O.jsx("div",{children:a(t.income,t?.currency_type)}),O.jsx("div",{children:a(t.collection,t?.currency_type)}),O.jsx("div",{children:a(t.closing_balance,t?.currency_type)})]}),O.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),O.jsx("div",{className:"flex items-center justify-between",children:O.jsxs("div",{className:"flex items-center gap-[12px]",children:[O.jsx(L0,{className:"!text-[24px] text-red-600"}),O.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[O.jsx("div",{children:"Opening"}),O.jsx("div",{children:"Expenditure"}),O.jsx("div",{children:"Payment"}),O.jsx("div",{children:"Outstanding"})]}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[O.jsx("div",{children:a(n.opening_balance,n?.currency_type)}),O.jsx("div",{children:a(n.expenditure,n?.currency_type)}),O.jsx("div",{children:a(n.payment,n?.currency_type)}),O.jsx("div",{children:a(n.outstanding,n?.currency_type)})]})]})})}var zY="tippy-box",iA="tippy-content",VY="tippy-backdrop",oA="tippy-arrow",aA="tippy-svg-arrow",To={passive:!0,capture:!0},sA=function(){return document.body};function WY(e,t){return{}.hasOwnProperty.call(e,t)}function Zv(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Jv(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function lA(e,t){return typeof e=="function"?e.apply(void 0,t):e}function cA(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function UY(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function HY(e){return e.split(/\s+/).filter(Boolean)}function ja(e){return[].concat(e)}function uA(e,t){e.indexOf(t)===-1&&e.push(t)}function KY(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function qY(e){return e.split("-")[0]}function $d(e){return[].slice.call(e)}function dA(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function ml(){return document.createElement("div")}function gl(e){return["Element","Fragment"].some(function(t){return Jv(e,t)})}function YY(e){return Jv(e,"NodeList")}function GY(e){return Jv(e,"MouseEvent")}function XY(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ZY(e){return gl(e)?[e]:YY(e)?$d(e):Array.isArray(e)?e:$d(document.querySelectorAll(e))}function Qv(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function fA(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function JY(e){var t,n=ja(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function QY(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=qY(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-f>l,y=o.left-n+p>l,E=n-o.right-g>l;return m||v||y||E})}function ey(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function pA(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Dr={isTouch:!1},hA=0;function eG(){Dr.isTouch||(Dr.isTouch=!0,window.performance&&document.addEventListener("mousemove",mA))}function mA(){var e=performance.now();e-hA<20&&(Dr.isTouch=!1,document.removeEventListener("mousemove",mA)),hA=e}function tG(){var e=document.activeElement;if(XY(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function nG(){document.addEventListener("touchstart",eG,To),window.addEventListener("blur",tG)}var rG=typeof window<"u"&&typeof document<"u",iG=rG?!!window.msCrypto:!1;function Na(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function gA(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function oG(e){return gA(`
|
|
309
|
+
`));const qt={...r,isRtl:z,arrow:i,disableInteractive:ee,placement:A,PopperComponentProp:k,touch:Q.current},W=typeof M.popper=="function"?M.popper(qt):M.popper,se=_.useMemo(()=>{let ye=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return R.popperOptions?.modifiers&&(ye=ye.concat(R.popperOptions.modifiers)),W?.popperOptions?.modifiers&&(ye=ye.concat(W.popperOptions.modifiers)),{...R.popperOptions,...W?.popperOptions,modifiers:ye}},[q,R.popperOptions,W?.popperOptions]),X=kY(qt),ce=typeof M.transition=="function"?M.transition(qt):M.transition,he={slots:{popper:s.Popper,transition:s.Transition??j,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...R,...W??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...N,...ce??l.transition}}},[Ze,dt]=xn("popper",{elementType:MY,externalForwardedProps:he,ownerState:qt,className:ue(X.popper,R?.className)}),[sr,qi]=xn("transition",{elementType:cl,externalForwardedProps:he,ownerState:qt}),[lr,Bo]=xn("tooltip",{elementType:jY,className:X.tooltip,externalForwardedProps:he,ownerState:qt}),[vi,Fr]=xn("arrow",{elementType:NY,className:X.arrow,externalForwardedProps:he,ownerState:qt,ref:ne});return O.jsxs(_.Fragment,{children:[_.cloneElement(B,ve),O.jsx(Ze,{as:k??Rv,placement:A,anchorEl:y?{getBoundingClientRect:()=>({top:hl.y,left:hl.x,right:hl.x,bottom:hl.y,width:0,height:0})}:F,popperRef:cn,open:F?T:!1,id:pe,transition:!0,...un,...dt,popperOptions:se,children:({TransitionProps:ye})=>O.jsx(sr,{timeout:Y.transitions.duration.shorter,...ye,...qi,children:O.jsxs(lr,{...Bo,children:[D,i?O.jsx(vi,{...Fr}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Xv.propTypes={arrow:h.bool,children:Ma.isRequired,classes:h.object,className:h.string,components:h.shape({Arrow:h.elementType,Popper:h.elementType,Tooltip:h.elementType,Transition:h.elementType}),componentsProps:h.shape({arrow:h.object,popper:h.object,tooltip:h.object,transition:h.object}),describeChild:h.bool,disableFocusListener:h.bool,disableHoverListener:h.bool,disableInteractive:h.bool,disableTouchListener:h.bool,enterDelay:h.number,enterNextDelay:h.number,enterTouchDelay:h.number,followCursor:h.bool,id:h.string,leaveDelay:h.number,leaveTouchDelay:h.number,onClose:h.func,onOpen:h.func,open:h.bool,placement:h.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:h.elementType,PopperProps:h.object,slotProps:h.shape({arrow:h.oneOfType([h.func,h.object]),popper:h.oneOfType([h.func,h.object]),tooltip:h.oneOfType([h.func,h.object]),transition:h.oneOfType([h.func,h.object])}),slots:h.shape({arrow:h.elementType,popper:h.elementType,tooltip:h.elementType,transition:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),title:h.node,TransitionComponent:h.elementType,TransitionProps:h.object});function DY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function IY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Export"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.552,20.968a2.577,2.577,0,0,1-2.5-2.73c-.012-2.153,0-4.306,0-6.459a.5.5,0,0,1,1,0c0,2.2-.032,4.4,0,6.6.016,1.107.848,1.589,1.838,1.589H18.353A1.546,1.546,0,0,0,19.825,19a3.023,3.023,0,0,0,.1-1.061V11.779h0a.5.5,0,0,1,1,0c0,2.224.085,4.465,0,6.687a2.567,2.567,0,0,1-2.67,2.5Z"},child:[]},{tag:"path",attr:{d:"M12.337,3.176a.455.455,0,0,0-.311-.138c-.015,0-.028,0-.043-.006s-.027,0-.041.006a.457.457,0,0,0-.312.138L7.961,6.845a.5.5,0,0,0,.707.707l2.816-2.815V15.479a.5.5,0,0,0,1,0V4.737L15.3,7.552a.5.5,0,0,0,.707-.707Z"},child:[]}]}]}]})(e)}function RY(e){return qe({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}const $Y=mc(Gv)(()=>({width:"fit-content",maxWidth:"100px",height:"28px",padding:"0 6px",display:"flex",fontSize:"12px",alignItems:"center","& .MuiSelect-select":{padding:0},"& .MuiOutlinedInput-notchedOutline":{borderColor:"#C6C6C6",transition:"all 0.2s ease"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#B084CC"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#884EA7 !important",boxShadow:"0 0 0 3px rgba(136, 78, 167, 0.2)"}}));function rA({widgetId:e,options:t=[],defaultValue:n="all",onFilterChange:r=()=>{},onExport:i=()=>{}}){const o=sessionStorage.getItem(`${e}_community_id`),[a,s]=I.useState(o||n),l=u=>{const d=u.target.value;s(d),d==="all"?sessionStorage.removeItem(`${e}_community_id`):sessionStorage.setItem(`${e}_community_id`,d),r(d,e)},c=()=>{sessionStorage.setItem(`${e}_export`,"true"),i(e)};return O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Xv,{title:"Select a community",children:O.jsx(DC,{size:"small",children:O.jsxs($Y,{value:a,onChange:l,children:[O.jsx(Hv,{value:"all",sx:{fontWeight:600},children:"All"}),t?.map(u=>O.jsx(Hv,{value:u.id,children:u.name},u.id))]})})}),O.jsx(Xv,{title:"Export CSV for this widget",children:O.jsx("button",{onClick:c,className:"px-3 py-2 bg-[#FBF5FF] rounded cursor-pointer",children:O.jsx(IY,{className:"stroke-[#884EA7] stroke-[1.4]"})})})]})}function LY({isStatic:e,data:t,communities:n}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],i=[{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 O.jsx(Zi,{title:"Engagement",period:"This Month",icon:O.jsx($0,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,actionButtons:O.jsx(rA,{widgetId:"engagement",options:n,onFilterChange:(o,a)=>console.log(o,a),onExport:o=>console.log("Export triggered for",o)}),children:O.jsx("div",{className:"w-full h-[235px]",children:O.jsx(bo,{width:"100%",height:"100%",children:O.jsxs(oH,{data:i,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[O.jsx(od,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),O.jsx(Zs,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),O.jsx(sd,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),O.jsx(yo,{content:O.jsx(ss,{}),cursor:{fill:"transparent"}}),O.jsx(UP,{dataKey:"value",barSize:40,isAnimationActive:!1,children:i.map((o,a)=>O.jsx(Ar,{fill:r[a]},o.name))})]})})})})}function FY({isStatic:e,data:t}){const n=Number(t?.totalBookings||0),r=Number(t?.averageUtilizationPercentage||0),i=I.useMemo(()=>{if(!t?.graph)return[];const{labels:s=[],bookings:l=[],utilization:c=[]}=t.graph;return s.map((u,d)=>({time:u,bookings:l[d]||0,utilization:c[d]||0}))},[t]),o=s=>["12 AM","6 AM","12 PM","6 PM","11 PM"].includes(s)?s:"",a=i.length?i:Array.from({length:24},(s,l)=>({time:`${l%12||12} ${l>=12?"PM":"AM"}`,bookings:0,utilization:0}));return O.jsxs(Zi,{title:"Facilities",period:"Today",icon:O.jsx(R0,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[O.jsxs("div",{className:"grid grid-cols-2 gap-[24px] mb-[16px]",children:[O.jsxs("div",{children:[O.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),O.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:n})]}),O.jsxs("div",{children:[O.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),O.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[r.toFixed(2),"%"]})]})]}),O.jsx("div",{className:"w-full h-[170px]",children:O.jsx(bo,{width:"100%",height:"100%",children:O.jsxs(N2,{data:a,margin:{top:5,right:-30,left:-35,bottom:0},children:[O.jsx(od,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),O.jsx(sd,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),O.jsx(Zs,{yAxisId:"left",tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),O.jsx(Zs,{yAxisId:"right",orientation:"right",domain:[0,100],ticks:[0,20,40,60,80,100],tickFormatter:s=>`${s}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),O.jsx(yo,{content:O.jsx(ss,{})}),O.jsx(xa,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),O.jsx(xa,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function BY({data:e,communities:t}){const n=e?.incomeSummary||{},r=e?.expenditureSummary||{},i=["AED","USD","EUR"],o=["Rs","INR","₹"];function a(l){if(l==null||isNaN(l))return"0";const c=Number(l),u=Math.abs(c),d=c<0?"-":"";return u>=1e9?d+(u/1e9).toFixed(u%1e9===0?0:2)+"B":u>=1e6?d+(u/1e6).toFixed(u%1e6===0?0:2)+"M":u>=1e3?d+(u/1e3).toFixed(u%1e3===0?0:2)+"K":d+u.toFixed(u%1===0?0:2)}function s(l,c){return c?o.includes(c)?`${c} ${a(l)}`:i.includes(c)?`${a(l)} ${c}`:`${a(l)} ${c}`:a(l)}return O.jsx(Zi,{title:"Income",period:"This Month",icon:O.jsx(L0,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",actionButtons:O.jsx(rA,{widgetId:"finance_summary",options:t,onFilterChange:(l,c)=>console.log(l,c),onExport:l=>console.log("Export triggered for",l)}),children:O.jsxs("div",{children:[O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[O.jsx("div",{children:"Opening"}),O.jsx("div",{children:"Income"}),O.jsx("div",{children:"Collection"}),O.jsx("div",{children:"Closing"})]}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[O.jsx("div",{children:s(n.opening_balance,n?.currency_type)}),O.jsx("div",{children:s(n.income,n?.currency_type)}),O.jsx("div",{children:s(n.collection,n?.currency_type)}),O.jsx("div",{children:s(n.closing_balance,n?.currency_type)})]}),O.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),O.jsx("div",{className:"flex items-center justify-between",children:O.jsxs("div",{className:"flex items-center gap-[12px]",children:[O.jsx(L0,{className:"!text-[24px] text-red-600"}),O.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[O.jsx("div",{children:"Opening"}),O.jsx("div",{children:"Expenditure"}),O.jsx("div",{children:"Payment"}),O.jsx("div",{children:"Outstanding"})]}),O.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[O.jsx("div",{children:s(r.opening_balance,r?.currency_type)}),O.jsx("div",{children:s(r.expenditure,r?.currency_type)}),O.jsx("div",{children:s(r.payment,r?.currency_type)}),O.jsx("div",{children:s(r.outstanding,r?.currency_type)})]})]})})}var zY="tippy-box",iA="tippy-content",VY="tippy-backdrop",oA="tippy-arrow",aA="tippy-svg-arrow",To={passive:!0,capture:!0},sA=function(){return document.body};function WY(e,t){return{}.hasOwnProperty.call(e,t)}function Zv(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Jv(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function lA(e,t){return typeof e=="function"?e.apply(void 0,t):e}function cA(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function UY(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function HY(e){return e.split(/\s+/).filter(Boolean)}function ja(e){return[].concat(e)}function uA(e,t){e.indexOf(t)===-1&&e.push(t)}function KY(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function qY(e){return e.split("-")[0]}function $d(e){return[].slice.call(e)}function dA(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function ml(){return document.createElement("div")}function gl(e){return["Element","Fragment"].some(function(t){return Jv(e,t)})}function YY(e){return Jv(e,"NodeList")}function GY(e){return Jv(e,"MouseEvent")}function XY(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ZY(e){return gl(e)?[e]:YY(e)?$d(e):Array.isArray(e)?e:$d(document.querySelectorAll(e))}function Qv(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function fA(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function JY(e){var t,n=ja(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function QY(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=qY(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,g=c==="left"?u.right.x:0,m=o.top-r+d>l,v=r-o.bottom-f>l,y=o.left-n+p>l,E=n-o.right-g>l;return m||v||y||E})}function ey(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function pA(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Dr={isTouch:!1},hA=0;function eG(){Dr.isTouch||(Dr.isTouch=!0,window.performance&&document.addEventListener("mousemove",mA))}function mA(){var e=performance.now();e-hA<20&&(Dr.isTouch=!1,document.removeEventListener("mousemove",mA)),hA=e}function tG(){var e=document.activeElement;if(XY(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function nG(){document.addEventListener("touchstart",eG,To),window.addEventListener("blur",tG)}var rG=typeof window<"u"&&typeof document<"u",iG=rG?!!window.msCrypto:!1;function Na(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function gA(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function oG(e){return gA(`
|
|
310
310
|
%ctippy.js
|
|
311
311
|
|
|
312
312
|
%c`+gA(e)+`
|