@simpoobusiness/sdk 2.0.64 → 2.0.65
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/.tsbuildinfo +1 -1
- package/dist/simpoo-sdk.css +1 -1
- package/dist/simpoo-sdk.js +1 -1
- package/dist/simpoo-sdk.js.map +1 -1
- package/package.json +1 -1
package/dist/simpoo-sdk.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
|
|
2
2
|
! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
|
|
3
|
-
*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.ReactCollapse--collapse{transition:height .3s}
|
|
3
|
+
*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{bottom:0;top:0}.-bottom-\[5px\]{bottom:-5px}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-4{top:1rem}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.col-span-10{grid-column:span 10/span 10}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem}.mb-1,.my-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[14px\]{height:14px}.h-\[163px\]{height:163px}.h-\[18px\]{height:18px}.h-\[1px\]{height:1px}.h-\[30px\]{height:30px}.h-\[38px\]{height:38px}.h-\[48px\]{height:48px}.h-\[50px\]{height:50px}.h-\[5px\]{height:5px}.h-\[79px\]{height:79px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.max-h-\[300px\]{max-height:300px}.max-h-\[90vh\]{max-height:90vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-28{width:7rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[115px\]{width:115px}.w-\[1176px\]{width:1176px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[171px\]{width:171px}.w-\[1px\]{width:1px}.w-\[200px\]{width:200px}.w-\[210px\]{width:210px}.w-\[280px\]{width:280px}.w-\[320px\]{width:320px}.w-\[326px\]{width:326px}.w-\[337px\]{width:337px}.w-\[38px\]{width:38px}.w-\[425px\]{width:425px}.w-\[440px\]{width:440px}.w-\[480px\]{width:480px}.w-\[500px\]{width:500px}.w-\[50px\]{width:50px}.w-\[896px\]{width:896px}.w-\[89px\]{width:89px}.w-\[90px\]{width:90px}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-\[280px\]{min-width:280px}.min-w-\[38px\]{min-width:38px}.min-w-\[70px\]{min-width:70px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-5xl{max-width:64rem}.max-w-\[265px\]{max-width:265px}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.table-auto{table-layout:auto}.caption-bottom{caption-side:bottom}.border-separate{border-collapse:separate}.border-spacing-x-4{--tw-border-spacing-x:1rem}.border-spacing-x-4,.border-spacing-y-3{border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.border-spacing-y-3{--tw-border-spacing-y:0.75rem}.border-spacing-y-4{--tw-border-spacing-y:1rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.-rotate-90{--tw-rotate:-90deg}.-rotate-90,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-disc{list-style-type:disc}.grid-cols-12{grid-template-columns:repeat(12,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))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-9{gap:2.25rem}.gap-\[30px\]{gap:30px}.gap-\[5px\]{gap:5px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.625rem*var(--tw-space-y-reverse));margin-top:calc(.625rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.25rem*var(--tw-space-y-reverse));margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-7>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.75rem*var(--tw-space-y-reverse));margin-top:calc(1.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.space-y-\[18px\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(18px*var(--tw-space-y-reverse));margin-top:calc(18px*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[10px\]{border-radius:10px}.rounded-\[7px\]{border-radius:7px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-l-xl{border-bottom-left-radius:.75rem;border-top-left-radius:.75rem}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.\!border-danger{--tw-border-opacity:1!important;border-color:rgb(241 65 108/var(--tw-border-opacity,1))!important}.\!border-gray-600{--tw-border-opacity:1!important;border-color:rgb(75 85 99/var(--tw-border-opacity,1))!important}.\!border-primary{--tw-border-opacity:1!important;border-color:rgb(24 104 219/var(--tw-border-opacity,1))!important}.\!border-success{--tw-border-opacity:1!important;border-color:rgb(80 205 137/var(--tw-border-opacity,1))!important}.border-\[\#E1E3EA\]{--tw-border-opacity:1;border-color:rgb(225 227 234/var(--tw-border-opacity,1))}.border-\[\#E4E7EC\]{--tw-border-opacity:1;border-color:rgb(228 231 236/var(--tw-border-opacity,1))}.border-\[\#EDEEF1\]{--tw-border-opacity:1;border-color:rgb(237 238 241/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(241 241 242/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(225 227 234/var(--tw-border-opacity,1))}.border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.border-primary{--tw-border-opacity:1;border-color:rgb(24 104 219/var(--tw-border-opacity,1))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[\#0A0D14\]{--tw-bg-opacity:1;background-color:rgb(10 13 20/var(--tw-bg-opacity,1))}.bg-\[\#1E1E1E\]\/30{background-color:rgba(30,30,30,.3)}.bg-\[\#7E8299\]{--tw-bg-opacity:1;background-color:rgb(126 130 153/var(--tw-bg-opacity,1))}.bg-\[\#C6E3D2\]{--tw-bg-opacity:1;background-color:rgb(198 227 210/var(--tw-bg-opacity,1))}.bg-\[\#D8CDF4\]{--tw-bg-opacity:1;background-color:rgb(216 205 244/var(--tw-bg-opacity,1))}.bg-\[\#E1E3EA\]{--tw-bg-opacity:1;background-color:rgb(225 227 234/var(--tw-bg-opacity,1))}.bg-\[\#E4EEFA\]{--tw-bg-opacity:1;background-color:rgb(228 238 250/var(--tw-bg-opacity,1))}.bg-\[\#EBF5EF\]{--tw-bg-opacity:1;background-color:rgb(235 245 239/var(--tw-bg-opacity,1))}.bg-\[\#EEE9FA\]{--tw-bg-opacity:1;background-color:rgb(238 233 250/var(--tw-bg-opacity,1))}.bg-\[\#EEEFF2\]{--tw-bg-opacity:1;background-color:rgb(238 239 242/var(--tw-bg-opacity,1))}.bg-\[\#EFF5FF\]{--tw-bg-opacity:1;background-color:rgb(239 245 255/var(--tw-bg-opacity,1))}.bg-\[\#F1F1F2\]{--tw-bg-opacity:1;background-color:rgb(241 241 242/var(--tw-bg-opacity,1))}.bg-\[\#F6F8FA\]{--tw-bg-opacity:1;background-color:rgb(246 248 250/var(--tw-bg-opacity,1))}.bg-\[\#F9DFDD\]{--tw-bg-opacity:1;background-color:rgb(249 223 221/var(--tw-bg-opacity,1))}.bg-\[\#F9F9F9\]{--tw-bg-opacity:1;background-color:rgb(249 249 249/var(--tw-bg-opacity,1))}.bg-\[\#FAEAE9\]{--tw-bg-opacity:1;background-color:rgb(250 234 233/var(--tw-bg-opacity,1))}.bg-\[\#f5edff\]{--tw-bg-opacity:1;background-color:rgb(245 237 255/var(--tw-bg-opacity,1))}.bg-danger{--tw-bg-opacity:1;background-color:rgb(241 65 108/var(--tw-bg-opacity,1))}.bg-danger_light{--tw-bg-opacity:1;background-color:rgb(255 245 248/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(249 249 249/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(241 241 242/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(225 227 234/var(--tw-bg-opacity,1))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-inherit{background-color:inherit}.bg-muted\/50{background-color:rgba(82,88,102,.5)}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(229 229 229/var(--tw-bg-opacity,1))}.bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(24 104 219/var(--tw-bg-opacity,1))}.bg-primary_light{--tw-bg-opacity:1;background-color:rgb(231 241 255/var(--tw-bg-opacity,1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-red_light{--tw-bg-opacity:1;background-color:rgb(253 237 240/var(--tw-bg-opacity,1))}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.bg-success-light{--tw-bg-opacity:1;background-color:rgb(232 255 243/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-warning-light{--tw-bg-opacity:1;background-color:rgb(255 248 221/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-\[url\(\'\/assets\/images\/ecstacy1\.svg\'\)\]{background-image:url(/assets/images/ecstacy1.svg)}.bg-\[url\(\'\/assets\/images\/ecstacy2\.svg\'\)\]{background-image:url(/assets/images/ecstacy2.svg)}.bg-\[url\(\'\/assets\/images\/ecstacy3\.svg\'\)\]{background-image:url(/assets/images/ecstacy3.svg)}.bg-\[url\(\'\/assets\/images\/ecstacy4\.svg\'\)\]{background-image:url(/assets/images/ecstacy4.svg)}.bg-right-bottom{background-position:100% 100%}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-\[15px\]{padding:15px}.p-\[1px\]{padding:1px}.p-\[30px\]{padding:30px}.p-\[7px\]{padding:7px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[15px\]{padding-left:15px;padding-right:15px}.px-\[5px\]{padding-left:5px;padding-right:5px}.px-\[7px\]{padding-left:7px;padding-right:7px}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-24{padding-bottom:6rem;padding-top:6rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-\[30px\]{padding-bottom:30px;padding-top:30px}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-2\.5{padding-bottom:.625rem}.pb-5{padding-bottom:1.25rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-0{padding-right:0}.pr-2{padding-right:.5rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[29px\]{font-size:29px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-\[\#0A0D14\]{--tw-text-opacity:1;color:rgb(10 13 20/var(--tw-text-opacity,1))}.text-\[\#181C32\]{--tw-text-opacity:1;color:rgb(24 28 50/var(--tw-text-opacity,1))}.text-\[\#525866\]{--tw-text-opacity:1;color:rgb(82 88 102/var(--tw-text-opacity,1))}.text-\[\#5E6278\]{--tw-text-opacity:1;color:rgb(94 98 120/var(--tw-text-opacity,1))}.text-\[\#7239EA\]{--tw-text-opacity:1;color:rgb(114 57 234/var(--tw-text-opacity,1))}.text-\[\#B5B5B5\]{--tw-text-opacity:1;color:rgb(181 181 181/var(--tw-text-opacity,1))}.text-\[\#CDD0D5\]{--tw-text-opacity:1;color:rgb(205 208 213/var(--tw-text-opacity,1))}.text-\[\#E12D39\]{--tw-text-opacity:1;color:rgb(225 45 57/var(--tw-text-opacity,1))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-danger{--tw-text-opacity:1;color:rgb(241 65 108/var(--tw-text-opacity,1))}.text-dark{--tw-text-opacity:1;color:rgb(24 28 50/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(32 33 37/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(94 98 120/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(63 66 84/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(24 28 50/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.text-orange{--tw-text-opacity:1;color:rgb(237 116 0/var(--tw-text-opacity,1))}.text-primary{--tw-text-opacity:1;color:rgb(24 104 219/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-success{--tw-text-opacity:1;color:rgb(80 205 137/var(--tw-text-opacity,1))}.text-warning{--tw-text-opacity:1;color:rgb(246 192 0/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-\[0_1px_2px_0px_\#E4E5E73D\2c _0_12px_24px_0_\#868C981F\]{--tw-shadow:0 1px 2px 0px #e4e5e73d,0 12px 24px 0 #868c981f;--tw-shadow-colored:0 1px 2px 0px var(--tw-shadow-color),0 12px 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_3px_4px_0_\#00000008\]{--tw-shadow:0 3px 4px 0 #00000008;--tw-shadow-colored:0 3px 4px 0 var(--tw-shadow-color)}.shadow-\[0_3px_4px_0_\#00000008\],.shadow-\[0_8px_14px_0_\#0F2A510A\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_8px_14px_0_\#0F2A510A\]{--tw-shadow:0 8px 14px 0 #0f2a510a;--tw-shadow-colored:0 8px 14px 0 var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-inset{--tw-ring-inset:inset}.ring-dark{--tw-ring-opacity:1;--tw-ring-color:rgb(24 28 50/var(--tw-ring-opacity,1))}.ring-offset-white{--tw-ring-offset-color:#fff}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.ease-in{animation-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ReactCollapse--collapse{transition:height .3s}.first-letter\:uppercase:first-letter{text-transform:uppercase}.placeholder\:text-xs::-moz-placeholder{font-size:.75rem;line-height:1rem}.placeholder\:text-xs::placeholder{font-size:.75rem;line-height:1rem}.placeholder\:font-medium::-moz-placeholder{font-weight:500}.placeholder\:font-medium::placeholder{font-weight:500}.placeholder\:text-\[\#7E8299\]::-moz-placeholder{--tw-text-opacity:1;color:rgb(126 130 153/var(--tw-text-opacity,1))}.placeholder\:text-\[\#7E8299\]::placeholder{--tw-text-opacity:1;color:rgb(126 130 153/var(--tw-text-opacity,1))}.placeholder\:text-neutral-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.placeholder\:text-neutral-500::placeholder{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:h-1\.5:before{content:var(--tw-content);height:.375rem}.before\:w-3:before{content:var(--tw-content);width:.75rem}.before\:-translate-x-1\/2:before{--tw-translate-x:-50%}.before\:-translate-x-1\/2:before,.before\:rotate-45:before{content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rotate-45:before{--tw-rotate:45deg}.before\:bg-white:before{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.hover\:border:hover{border-width:1px}.hover\:border-\[\#BFD7FE\]:hover{--tw-border-opacity:1;border-color:rgb(191 215 254/var(--tw-border-opacity,1))}.hover\:border-neutral-200:hover{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.hover\:border-primary_light:hover{--tw-border-opacity:1;border-color:rgb(231 241 255/var(--tw-border-opacity,1))}.hover\:border-b-neutral-200:hover{--tw-border-opacity:1;border-bottom-color:rgb(229 229 229/var(--tw-border-opacity,1))}.hover\:\!bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(249 249 249/var(--tw-bg-opacity,1))!important}.hover\:bg-\[\#F1F1F2\]\/90:hover{background-color:hsla(240,4%,95%,.9)}.hover\:bg-button:hover{--tw-bg-opacity:1;background-color:rgb(19 83 175/var(--tw-bg-opacity,1))}.hover\:bg-danger\/90:hover{background-color:rgba(241,65,108,.9)}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(249 249 249/var(--tw-bg-opacity,1))}.hover\:bg-gray-200\/90:hover{background-color:hsla(240,4%,95%,.9)}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(225 227 234/var(--tw-bg-opacity,1))}.hover\:bg-gray-300\/90:hover{background-color:rgba(225,227,234,.9)}.hover\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:rgb(216 216 229/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-muted\/50:hover{background-color:rgba(82,88,102,.5)}.hover\:bg-neutral-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.hover\:bg-neutral-100\/80:hover{background-color:hsla(0,0%,96%,.8)}.hover\:bg-neutral-900\/90:hover{background-color:hsla(0,0%,9%,.9)}.hover\:bg-primary_light:hover{--tw-bg-opacity:1;background-color:rgb(231 241 255/var(--tw-bg-opacity,1))}.hover\:bg-primary_light\/90:hover{background-color:rgba(231,241,255,.9)}.hover\:bg-red-500\/90:hover{background-color:rgba(239,68,68,.9)}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.hover\:text-button:hover{--tw-text-opacity:1;color:rgb(19 83 175/var(--tw-text-opacity,1))}.hover\:text-neutral-900:hover{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.hover\:text-primary:hover{--tw-text-opacity:1;color:rgb(24 104 219/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:ring-2:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:border-neutral-200:focus{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.focus\:border-primary:focus{--tw-border-opacity:1;border-color:rgb(24 104 219/var(--tw-border-opacity,1))}.focus\:bg-neutral-100:focus{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.focus\:bg-primary\/20:focus{background-color:rgba(24,104,219,.2)}.focus\:bg-primary_light:focus{--tw-bg-opacity:1;background-color:rgb(231 241 255/var(--tw-bg-opacity,1))}.focus\:text-danger:focus{--tw-text-opacity:1;color:rgb(241 65 108/var(--tw-text-opacity,1))}.focus\:text-neutral-900:focus{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.focus\:text-primary:focus{--tw-text-opacity:1;color:rgb(24 104 219/var(--tw-text-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-neutral-950:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(10 10 10/var(--tw-ring-opacity,1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-neutral-950:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(10 10 10/var(--tw-ring-opacity,1))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-100:disabled{opacity:1}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-70:disabled{opacity:.7}.disabled\:hover\:text-inherit:hover:disabled{color:inherit}.group:hover .group-hover\:bg-primary_light{--tw-bg-opacity:1;background-color:rgb(231 241 255/var(--tw-bg-opacity,1))}.group:hover .group-hover\:text-gray-900{--tw-text-opacity:1;color:rgb(24 28 50/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-primary{--tw-text-opacity:1;color:rgb(24 104 219/var(--tw-text-opacity,1))}.group.toaster .group-\[\.toaster\]\:border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.group.toast .group-\[\.toast\]\:bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.group.toast .group-\[\.toast\]\:bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.group.toaster .group-\[\.toaster\]\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.group.toast .group-\[\.toast\]\:text-neutral-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.group.toast .group-\[\.toast\]\:text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.group.toaster .group-\[\.toaster\]\:text-neutral-950{--tw-text-opacity:1;color:rgb(10 10 10/var(--tw-text-opacity,1))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:border-none[data-state=checked]{border-style:none}.data-\[selected\=\'true\'\]\:bg-primary_light[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(231 241 255/var(--tw-bg-opacity,1))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(24 104 219/var(--tw-bg-opacity,1))}.data-\[state\=open\]\:bg-neutral-100[data-state=open]{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.data-\[state\=selected\]\:bg-gray-100[data-state=selected]{--tw-bg-opacity:1;background-color:rgb(249 249 249/var(--tw-bg-opacity,1))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{--tw-bg-opacity:1;background-color:rgb(82 88 102/var(--tw-bg-opacity,1))}.data-\[selected\=true\]\:text-primary[data-selected=true]{--tw-text-opacity:1;color:rgb(24 104 219/var(--tw-text-opacity,1))}.data-\[state\=open\]\:text-neutral-500[data-state=open]{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-duration:.15s;animation-name:enter}.data-\[state\=closed\]\:animate-out[data-state=closed]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-duration:.15s;animation-name:exit}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.data-\[side\=bottom\]\:before\:top-0[data-side=bottom]:before{content:var(--tw-content);top:0}.data-\[side\=top\]\:before\:bottom-0[data-side=top]:before{bottom:0;content:var(--tw-content)}.dark\:border-neutral-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(38 38 38/var(--tw-border-opacity,1))}.dark\:bg-neutral-50:is(.dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.dark\:bg-neutral-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.dark\:bg-neutral-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(10 10 10/var(--tw-bg-opacity,1))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity,1))}.dark\:text-neutral-400:is(.dark *){--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.dark\:text-neutral-50:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\:text-neutral-900:is(.dark *){--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.dark\:ring-offset-neutral-950:is(.dark *){--tw-ring-offset-color:#0a0a0a}.dark\:placeholder\:text-neutral-400:is(.dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.dark\:placeholder\:text-neutral-400:is(.dark *)::placeholder{--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.dark\:hover\:bg-neutral-50\/90:hover:is(.dark *){background-color:hsla(0,0%,98%,.9)}.dark\:hover\:bg-neutral-800:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.dark\:hover\:bg-neutral-800\/80:hover:is(.dark *){background-color:rgba(38,38,38,.8)}.dark\:hover\:bg-red-900\/90:hover:is(.dark *){background-color:rgba(127,29,29,.9)}.dark\:hover\:text-neutral-50:hover:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\:focus\:bg-neutral-800:focus:is(.dark *){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.dark\:focus\:text-neutral-50:focus:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\:focus\:ring-neutral-300:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 212/var(--tw-ring-opacity,1))}.dark\:focus-visible\:ring-neutral-300:focus-visible:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(212 212 212/var(--tw-ring-opacity,1))}.group.toaster .dark\:group-\[\.toaster\]\:border-neutral-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(38 38 38/var(--tw-border-opacity,1))}.group.toast .dark\:group-\[\.toast\]\:bg-neutral-50:is(.dark *){--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.group.toast .dark\:group-\[\.toast\]\:bg-neutral-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.group.toaster .dark\:group-\[\.toaster\]\:bg-neutral-950:is(.dark *){--tw-bg-opacity:1;background-color:rgb(10 10 10/var(--tw-bg-opacity,1))}.group.toast .dark\:group-\[\.toast\]\:text-neutral-400:is(.dark *){--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.group.toast .dark\:group-\[\.toast\]\:text-neutral-900:is(.dark *){--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.group.toaster .dark\:group-\[\.toaster\]\:text-neutral-50:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\:data-\[selected\=\'true\'\]\:bg-primary_light[data-selected=true]:is(.dark *){--tw-bg-opacity:1;background-color:rgb(231 241 255/var(--tw-bg-opacity,1))}.dark\:data-\[state\=open\]\:bg-neutral-800[data-state=open]:is(.dark *){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.dark\:data-\[selected\=true\]\:text-primary[data-selected=true]:is(.dark *){--tw-text-opacity:1;color:rgb(24 104 219/var(--tw-text-opacity,1))}.dark\:data-\[state\=open\]\:text-neutral-400[data-state=open]:is(.dark *){--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\:rounded-lg{border-radius:.5rem}.sm\:text-left{text-align:left}}@media (min-width:1024px){.lg\:max-w-full{max-width:100%}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;overflow:hidden}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-neutral-500 [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.dark\:\[\&_\[cmdk-group-heading\]\]\:text-neutral-400 [cmdk-group-heading]:is(.dark *){--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}
|
package/dist/simpoo-sdk.js
CHANGED
|
@@ -241,5 +241,5 @@ to {
|
|
|
241
241
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
242
242
|
*)
|
|
243
243
|
*/
|
|
244
|
-
function dI({label:e,labelClass:t,required:n,info:r,placeholder:o,setTagArray:a,values:i=[]}){const s=i?.map(e=>({id:"1",text:e??"example",className:""})),[l,u]=D.useState(s);return D.useEffect(()=>{const e=l.map(e=>e.text);a&&a(e)},[l]),m.jsxs("div",{className:"space-y-3",children:[e&&m.jsxs("label",{className:Ko("text-dark flex items-center gap-1 first-letter:uppercase text-sm font-medium",t),children:[e," ",n&&m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}),r&&m.jsx(kv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:r})})]}),m.jsx("div",{className:"border rounded-md px-4 py-2 bg-white border-gray-300",children:m.jsx(cI,{tags:l,handleDelete:e=>{u(l.filter((t,n)=>n!==e))},separators:[WM.ENTER,WM.COMMA],onTagUpdate:(e,t)=>{const n=[...l];n.splice(e,1,t),u(n)},editable:!0,placeholder:o,allowDeleteFromEmptyInput:!0,allowDragDrop:!1,onClearAll:()=>{u([])},handleAddition:e=>{u([...l,e])},handleTagClick:e=>{console.log("The tag at index "+e+" was clicked")},inputFieldPosition:"inline"})})]})}function fI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=ex(),[o,a]=D.useState([]),i=En();return m.jsx(XC,{isOpen:e,onClose:t,title:"New Tag",className:"w-[425px] pb-5",children:m.jsxs("form",{className:"space-y-5",onSubmit:e=>{e.preventDefault(),n({url:"/inventory_metas/tags/create",payload:{names:o}},{onSuccess:()=>{i.invalidateQueries({queryKey:["itemtags"]}),t&&t()}})},action:"",children:[m.jsx("div",{className:"px-5 space-y-5",children:m.jsx(dI,{info:"Enter a name for the tag. Tags help categorize items and make them easier to search for.",label:"Tag names ",required:!0,values:o||[],setTagArray:a})}),m.jsx(gS,{}),m.jsxs("div",{className:"flex justify-end gap-2.5 px-5",children:[m.jsx(IE,{label:"Dismiss",className:"px-4 bg-gray-300 text-gray-900 hover:bg-gray-400",onClick:t,disabled:r}),m.jsx(IE,{loading:r,label:"Create",className:"px-4",type:"submit"})]})]})})}function pI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=ex(),[o,a]=D.useState(""),{apiKey:i}=Dn(),[s,l]=D.useState({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),u=(e,t)=>{l({...s,[e]:t})},{data:c}=Jw(["itemtypes",i],"/inventory_metas/types",{enabled:!!i}),d=c?.data?.data?.filter(e=>"products"===e.name||"services"===e.name)?.map(e=>({label:e.name,value:e.uuid})),f=En();return m.jsx(XC,{isOpen:e,onClose:t,title:"New Unit",className:"w-[425px]",children:m.jsxs("div",{className:"px-5 space-y-5 pb-5",children:[m.jsx(iO,{type:"text",placeholder:"e.g Kilogram",info:"Enter the name of the unit used to measure this item (e.g., pieces, kg, liters). This helps in tracking inventory accurately.",label:"Unit name ",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.name,onChange:e=>u("name",e.target.value)}),m.jsx(WC,{options:d,label:"Item type",placeholder:"select type",value:s.item_type_uuid,onValueChange:e=>u("item_type_uuid",e),info:"Select the type of item you are adding (e.g., product, service). This helps in categorizing and managing inventory efficiently.",labelClass:"text-dark font-bold"}),m.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[m.jsx(iO,{type:"text",placeholder:"e.g KG",info:"Enter a short form or symbol for the unit name (e.g., kg for kilograms, pcs for pieces). This will be used for display in reports and transactions.",label:"Abbreviation",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.abbreviation,onChange:e=>u("abbreviation",e.target.value)}),m.jsx(WC,{options:[{label:"Yes ",value:"yes"},{label:"No ",value:"no"}],label:"Allow decimal",placeholder:"Yes/ No",value:o,onValueChange:e=>a(e),info:"Enable this option if the unit can have decimal values (e.g., 2.5 kg, 1.75 liters). Disable it for whole number quantities only.",infoAlignment:"end",labelClass:"text-dark font-semibold text-[15px]",showSearch:!1})]}),m.jsx("div",{className:"flex justify-end gap-2.5",children:m.jsx(IE,{onClick:()=>{n({url:"/inventory_metas/units/create",payload:s},{onSuccess:()=>{f.invalidateQueries({queryKey:["itemunits"]}),l({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),t&&t()}})},loading:r,label:"Create",className:"px-4"})})]})})}function hI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=ex(),o=En(),{apiKey:a}=Dn(),{data:i}=Jw(["categories",a],"/inventory_metas/categories",{enabled:!!a}),{data:s}=Jw(["itemunits",a],"/inventory_metas/units",{enabled:!!a}),{data:l}=Jw(["itemtags",a],"/inventory_metas/tags",{enabled:!!a}),{data:u}=Jw(["itemtypes",a],"/inventory_metas/types",{enabled:!!a}),{data:c}=Jw(["locations",a],"/locations/get_integrated",{enabled:!!a}),d=i?.data?.data?.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))}))||[],f=s?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],p=l?.data?.data?.map(e=>({label:e.name,value:e.uuid})),h=c?.data?.data?.map(e=>({label:e.name,value:e.uuid})),g=u?.data?.data?.filter(e=>"products"===e.name||"services"===e.name).map(e=>({label:e.name,value:e.uuid}))||[],[y,v]=D.useState(""),[b,w]=M.useState([]),[x,S]=M.useState([]),[C,k]=D.useState(g?.[0]?.value||"");D.useEffect(()=>{const e=g.find(e=>e?.value===C)?.label||"";v(e)},[C]);const[_,E]=D.useState([]),[j,O]=D.useState([{name:"",itemunit_id:f?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}]),N=(e,t,n)=>{const r=[...j];r[n]={...r[n],[e]:t},O(r)},R={itemtype_id:C,itemcategory_id:b,tags:_,items:j,locations_uuid:x},P=["Item name","Item unit",..."services"!==y?["Quantity","Barcode"]:[],"Cost price (₦)","Selling price (₦)"],[T,I]=D.useState(!1),[A,F]=D.useState(!1);return m.jsxs(XC,{isOpen:e,onClose:t,title:"Quick create multiple items",className:"max-w-5xl",children:[m.jsxs("div",{className:"px-5 space-y-7 pb-5",children:[m.jsxs("div",{className:"grid grid-cols-3 gap-5 bg-gray-100 rounded-xl p-4",children:[m.jsx("div",{className:"col-span-3",children:m.jsx(uN,{label:"Locations",placeholder:"Search and Select locations",labelClass:"text-dark text-sm",options:h,values:x,onChange:S,showSearch:!0,showCount:!0,showMultiSelectValues:!0})}),m.jsx(WC,{label:"Item type",options:g,placeholder:"select item type",value:C,onValueChange:e=>k(e),required:!0,info:"Select the type of item you're creating (e.g., product, service, variations, kits ). This classification helps determine how the item is managed, displayed, or fulfilled."}),m.jsx(kO,{placeholder:"select categories",label:"Category",options:d,values:b,onChange:e=>w(e),showMultiSelectValues:!1,showCount:!0,info:"Select the category that best describes this item(s) (e.g., electronics, clothing, food). Categorizing items helps in organizing inventory and simplifies product management."}),m.jsx(uN,{label:"Item tag",placeholder:"Search and Select item tags",info:"Enter relevant keywords or labels for this item(s). Tags help in categorizing and making the item easier to find through search filters.",labelClass:"text-dark text-sm",options:p,values:_,onChange:E,showSearch:!0,showCount:!0,showMultiSelectValues:!1,actionLabel:"Create a new tag",actionLabelInfo:"Enter a new tag to help categorize the item. Tags are useful for organizing and making items easily searchable by specific attributes or keywords.",actionLabelAction:()=>I(!0)})]}),m.jsxs("div",{className:"space-y-2 overflow-auto",children:[m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-x-4 border-spacing-y-4",children:[m.jsx("thead",{children:m.jsx("tr",{children:P.map((e,t)=>m.jsx("th",{className:"text-dark text-sm font-medium text-left",children:m.jsxs("p",{className:"flex gap-1",children:[e,1===t?m.jsx(IE,{mode:"text",label:"",left_addon:Jy.plus_squared2,onClick:()=>F(!0),className:" text-sm"}):null]})},t))})}),m.jsx("tbody",{className:"text-dark text-[15px] ",children:j.map((e,t)=>m.jsxs("tr",{children:[m.jsx("td",{className:"",children:m.jsx(iO,{type:"text",placeholder:"Enter item name",value:e.name,onChange:e=>N("name",e.target.value,t)})}),m.jsx("td",{children:m.jsx(WC,{options:f,placeholder:"select item unit",value:e.itemunit_id,onValueChange:e=>N("itemunit_id",e,t)})}),"services"!==y?m.jsxs(m.Fragment,{children:[m.jsx("td",{className:"",children:m.jsx(iO,{type:"number",placeholder:"0",value:e.quantity,onChange:e=>N("quantity",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(iO,{type:"text",placeholder:"Enter barcode",value:e.barcode,onChange:e=>N("barcode",e.target.value,t)})})]}):null,m.jsx("td",{className:"",children:m.jsx(iO,{type:"number",placeholder:"0.00",value:e.cost_price,onChange:e=>N("cost_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(iO,{type:"number",placeholder:"0.00",value:e.selling_price,onChange:e=>N("selling_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx("button",{onClick:()=>(e=>{const t=j.filter((t,n)=>n!==e);O(t)})(t),disabled:1===j.length,className:"disabled:cursor-not-allowed disabled:opacity-70",children:Jy.trash2})})]},t))})]}),m.jsx("div",{className:"flex justify-between items-center gap-3",children:m.jsx(IE,{mode:"text",label:"Add more",left_addon:Jy.plus_squared2,onClick:()=>{O(e=>[...e,{name:"",itemunit_id:f?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}])},className:"font-medium text-sm ml-4"})})]})]}),m.jsxs("div",{className:"flex justify-between items-center px-5 sticky bottom-0 bg-white py-5 border-t ",children:[m.jsxs("button",{className:"text-primary text-sm font-medium flex items-center gap-1",children:[Jy.question," Need help?"]}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(IE,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t}),m.jsx(IE,{label:"Create Items",onClick:()=>{n({url:"/items/create_multiple",payload:R},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),t&&t()}})},loading:r})]})]}),m.jsx(fI,{isOpen:T,onClose:()=>I(!1)}),m.jsx(pI,{isOpen:A,onClose:()=>F(!1)})]})}function mI({isOpen:e,onClose:t,currentTab:n,loading:r,filter:o,setFiltering:a}){const[i,s]=D.useState(""),[l]=CO(i,1e3),{apiKey:u}=Dn(),{data:c}=Jw(["categories",u],"/inventory_metas/categories",{enabled:!!u}),{data:d}=Jw(["itemtypes",u],"/inventory_metas/types",{enabled:!!u}),{data:f}=Jw(["itemunits",u],"/inventory_metas/units",{enabled:!!u}),{data:p}=Jw(["suppliers",l],i?`/suppliers/search/${i}/all`:"/suppliers",{enabled:!!u}),{data:h}=Jw(["itembrands"],"/inventory_metas/brands",{enabled:!!u}),g=p?.data?.data?.map(e=>({label:e?.name,value:e?.uuid})),y=h?.data?.data?.map(e=>({label:e.name,value:e.uuid})),[v,b]=D.useState(""),[w]=CO(v,1e3),{data:x}=Jw(["itemtags",u,w],"/inventory_metas/tags",{enabled:!!u&&!!w}),S=x?.data?.data?.map(e=>({label:e.name,value:e.uuid})),C=c?.data?.data.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))})),k=d?.data?.data?.map(e=>({label:e.name,value:e.uuid})),_=f?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],[E,j]=D.useState({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),O=(e,t)=>{j(n=>({...n,[e]:t}))};return m.jsx(XC,{isOpen:e,onClose:t,children:m.jsxs("div",{className:"px-8",children:[m.jsxs("div",{className:"flex justify-between items-center sticky top-0 py-5 bg-white",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-lg",children:"Item Filter"}),m.jsxs("button",{className:"text-danger text-sm font-medium inline-flex items-center",onClick:()=>{j({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),a(!1),t&&t()},children:[m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M11.175 9.99997L14.1667 7.0333C14.3258 6.87196 14.4143 6.65401 14.4128 6.42741C14.4112 6.2008 14.3197 5.98409 14.1583 5.82497C13.997 5.66584 13.779 5.57731 13.5524 5.57888C13.3258 5.58044 13.1091 5.67196 12.95 5.8333L10 8.82497L7.05 5.89163C6.89387 5.73642 6.68266 5.6493 6.4625 5.6493C6.24235 5.6493 6.03114 5.73642 5.875 5.89163C5.79689 5.9691 5.7349 6.06127 5.69259 6.16282C5.65028 6.26437 5.6285 6.37329 5.6285 6.4833C5.6285 6.59331 5.65028 6.70223 5.69259 6.80378C5.7349 6.90533 5.79689 6.9975 5.875 7.07497L8.825 9.99997L5.83333 12.9666C5.6742 13.128 5.58568 13.3459 5.58725 13.5725C5.58881 13.7991 5.68033 14.0158 5.84167 14.175C6.00301 14.3341 6.22095 14.4226 6.44756 14.4211C6.67417 14.4195 6.89087 14.328 7.05 14.1666L10 11.175L12.95 14.1083C13.1061 14.2635 13.3173 14.3506 13.5375 14.3506C13.7577 14.3506 13.9689 14.2635 14.125 14.1083C14.2031 14.0308 14.2651 13.9387 14.3074 13.8371C14.3497 13.7356 14.3715 13.6266 14.3715 13.5166C14.3715 13.4066 14.3497 13.2977 14.3074 13.1962C14.2651 13.0946 14.2031 13.0024 14.125 12.925L11.175 9.99997Z",fill:"#F1416C"})}),"Reset"," "]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-5",children:[m.jsx(kO,{options:C,label:"Categories",placeholder:"Select categories",values:E.category,onChange:e=>O("category",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:g,label:"Supplier",placeholder:"Select Suppliers",values:E.supplier,onChange:e=>O("supplier",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>s(e.target.value)}),m.jsx(uN,{options:k,label:"Item types",placeholder:"Select types",values:E.type,onChange:e=>O("type",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:_,label:"Item units",placeholder:"Select item unit",values:E.unit,onChange:e=>O("unit",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:y,label:"Item brands",placeholder:"Select item brands",values:E.brands,onChange:e=>O("brands",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:S,label:"Item tag",placeholder:"Select item tag",values:E.tags,onChange:e=>O("tags",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>b(e.target.value)})]}),m.jsxs("div",{className:"flex justify-end gap-2.5 sticky bottom-0 py-5 bg-white",children:[m.jsx(IE,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t,disabled:r}),m.jsx(IE,{label:"Apply filter",onClick:()=>o(E),loading:r})]})]})})}let gI={};function yI(e){gI=e}const vI={inventory:({showStats:e=!0})=>{const[t,n]=M.useState(),{currentPage:r,perview:o,inline_update:a}=ne(e=>e.app),[i,s]=D.useState("all"),[l,u]=D.useState(!1),[c,d]=D.useState("all"),[f,p]=D.useState(""),[h]=CO(f,1e3),[g,y]=D.useState(!1),{apiKey:v}=Dn(),{mutate:b,isPending:w}=ex(),{data:x,isFetching:S}=Jw(["items",o.toString(),r?.toString(),i,h,v],h?`/items/search?page=${r}&paginate=${o}¶m=${h}&for=${i}&filter=all`:`/items?page=${r}&paginate=${o}&status=${i}`,{enabled:!!v}),[C,k]=D.useState(),_=e=>{y(!0),b({url:`/inventory/item/filter?page=${r}&perview=${o}`,payload:e},{onSuccess(e,t,n){k(e),u(!1)}})},[E,j]=D.useState({for:i,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]});M.useEffect(()=>{g&&!f&&_(E)},[f,a,o,r,S]);const O=g?C?.data[0]:x?.data?.[0]||[],N=O?.data?.map(e=>({item_description:e?.name,all_quantity:+e?.all_quantity,other_locations:e?.other_locations,itemcode:e?.itemcode,quantity:+e?.quantity,type:e?.item_type?.name,selling_price:+e?.selling_price,categories:e?.category||[],tags:e?.item_tags?.map(e=>e.name)||[],status:e?.status?"published":"draft",sku:e?.sku,item_image:e.images?.length>0?e.images?.[0].image:rS,barcode:e?.barcode,expired:e?.expired,expiring:e?.expiring,unit:e?.item_unit,uuid:e?.uuid,item_type_id:e?.item_type?.uuid,reorder_level:e?.reorder_level,fullData:e}))||[],{data:R,isFetching:P}=Jw(["items-tab"],"/items/count",{enabled:!!v}),T=R?.data,I=[{label:"all",count:T?.all||0,action:()=>s("all")},{label:"published",count:T?.published||0,action:()=>s("published")},{label:"out of stock",count:T?.out_of_stock||0,action:()=>s("out_of_stock")},{label:"draft",count:T?.draft||0,action:()=>s("draft")},{label:"expiring",count:T?.expiring||0,action:()=>s("expiring")},{label:"expired",count:T?.expired||0,action:()=>s("expired")}],[A,F]=D.useState(!1);return m.jsxs(tS,{className:"px-4 py-6 flex flex-col gap-8",children:[m.jsx(KC,{tabs:I,loading:S}),m.jsxs("div",{className:" flex items-center justify-between flex-wrap gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsx(xO,{placeholder:"Search Item name, barcode or sku",value:f,onChange:e=>p(e.target.value)}),S?m.jsx(na,{className:"w-20 h-6"}):m.jsxs("p",{className:"text-dark text-sm font-medium",children:[O?.meta?.total??0," ",m.jsx("span",{className:"text-gray-700",children:"Items"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(IE,{label:"Filter",left_addon:M.cloneElement(Jy.filter_edit,{fill:"#5E6278"}),onClick:()=>u(!0),className:"font-medium bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm h-12"}),m.jsx(IE,{label:"Create New",left_addon:Jy.plus_squared,className:"font-medium text-sm h-12",onClick:()=>F(!0)})]})]}),e?m.jsx(wO,{loading:S,data:x?.data?.[1],meta:O?.meta}):null,m.jsx(nv,{loading:S,columns:lO,data:N,emptyData:0===N.length,emptyProps:{header:"No item yet",subText:"Add new item to start managing your inventory."},tHeadClass:"whitespace-nowrap",tbCellClass:"text-dark font-semibold",meta:O?.meta}),m.jsx(mI,{isOpen:l,onClose:()=>u(!1),currentTab:i,loading:w,filter:e=>{_(e),j(e)},setFiltering:y}),A?m.jsx(hI,{isOpen:A,onClose:()=>F(!1)}):null]})}};async function bI(e,t,n={}){const r=vI[e];if(!r)return void console.error(`SimpooSDK: Widget "${e}" not found.`);const o=document.querySelector(t);if(!o)throw new Error(`Container "${t}" not found!`);try{await new Promise((e,t)=>{const n=document.querySelector("#simpoo-sdk-styles");if(n)return e(n);const r=document.createElement("link");r.id="simpoo-sdk-styles",r.rel="stylesheet",r.href="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css",r.onload=()=>e(r),r.onerror=()=>{document.querySelector(`#${r.id}`)||document.head.appendChild(r),e(r)};const o=setTimeout(()=>{document.querySelector(`#${r.id}`)||document.head.appendChild(r),e(r)},5e3);document.head.appendChild(r),r.addEventListener("load",()=>clearTimeout(o)),r.addEventListener("error",()=>clearTimeout(o))})}catch(e){console.warn("SimpooSDK: stylesheet failed to load, continuing to render.",e)}const a=document.createElement("div");a.className="simpoo",o.appendChild(a);T.createRoot(a).render(m.jsx(Mn,{apiKey:gI.apiKey||"",children:m.jsx(r,{...n})}))}"undefined"!=typeof window&&(window.SimpooSDK={init:yI,renderWidget:bI}),e.init=yI,e.renderWidget=bI});
|
|
244
|
+
function dI({label:e,labelClass:t,required:n,info:r,placeholder:o,setTagArray:a,values:i=[]}){const s=i?.map(e=>({id:"1",text:e??"example",className:""})),[l,u]=D.useState(s);return D.useEffect(()=>{const e=l.map(e=>e.text);a&&a(e)},[l]),m.jsxs("div",{className:"space-y-3",children:[e&&m.jsxs("label",{className:Ko("text-dark flex items-center gap-1 first-letter:uppercase text-sm font-medium",t),children:[e," ",n&&m.jsx("span",{className:"text-[#E12D39]",children:e&&"*"}),r&&m.jsx(kv,{fieldName:e,children:m.jsx("p",{className:"font-normal first-letter:uppercase",children:r})})]}),m.jsx("div",{className:"border rounded-md px-4 py-2 bg-white border-gray-300",children:m.jsx(cI,{tags:l,handleDelete:e=>{u(l.filter((t,n)=>n!==e))},separators:[WM.ENTER,WM.COMMA],onTagUpdate:(e,t)=>{const n=[...l];n.splice(e,1,t),u(n)},editable:!0,placeholder:o,allowDeleteFromEmptyInput:!0,allowDragDrop:!1,onClearAll:()=>{u([])},handleAddition:e=>{u([...l,e])},handleTagClick:e=>{console.log("The tag at index "+e+" was clicked")},inputFieldPosition:"inline"})})]})}function fI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=ex(),[o,a]=D.useState([]),i=En();return m.jsx(XC,{isOpen:e,onClose:t,title:"New Tag",className:"w-[425px] pb-5",children:m.jsxs("form",{className:"space-y-5",onSubmit:e=>{e.preventDefault(),n({url:"/inventory_metas/tags/create",payload:{names:o}},{onSuccess:()=>{i.invalidateQueries({queryKey:["itemtags"]}),t&&t()}})},action:"",children:[m.jsx("div",{className:"px-5 space-y-5",children:m.jsx(dI,{info:"Enter a name for the tag. Tags help categorize items and make them easier to search for.",label:"Tag names ",required:!0,values:o||[],setTagArray:a})}),m.jsx(gS,{}),m.jsxs("div",{className:"flex justify-end gap-2.5 px-5",children:[m.jsx(IE,{label:"Dismiss",className:"px-4 bg-gray-300 text-gray-900 hover:bg-gray-400",onClick:t,disabled:r}),m.jsx(IE,{loading:r,label:"Create",className:"px-4",type:"submit"})]})]})})}function pI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=ex(),[o,a]=D.useState(""),{apiKey:i}=Dn(),[s,l]=D.useState({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),u=(e,t)=>{l({...s,[e]:t})},{data:c}=Jw(["itemtypes",i],"/inventory_metas/types",{enabled:!!i}),d=c?.data?.data?.filter(e=>"products"===e.name||"services"===e.name)?.map(e=>({label:e.name,value:e.uuid})),f=En();return m.jsx(XC,{isOpen:e,onClose:t,title:"New Unit",className:"w-[425px]",children:m.jsxs("div",{className:"px-5 space-y-5 pb-5",children:[m.jsx(iO,{type:"text",placeholder:"e.g Kilogram",info:"Enter the name of the unit used to measure this item (e.g., pieces, kg, liters). This helps in tracking inventory accurately.",label:"Unit name ",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.name,onChange:e=>u("name",e.target.value)}),m.jsx(WC,{options:d,label:"Item type",placeholder:"select type",value:s.item_type_uuid,onValueChange:e=>u("item_type_uuid",e),info:"Select the type of item you are adding (e.g., product, service). This helps in categorizing and managing inventory efficiently.",labelClass:"text-dark font-bold"}),m.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[m.jsx(iO,{type:"text",placeholder:"e.g KG",info:"Enter a short form or symbol for the unit name (e.g., kg for kilograms, pcs for pieces). This will be used for display in reports and transactions.",label:"Abbreviation",labelClass:"text-dark font-semibold first-letter:uppercase text-[15px]",value:s.abbreviation,onChange:e=>u("abbreviation",e.target.value)}),m.jsx(WC,{options:[{label:"Yes ",value:"yes"},{label:"No ",value:"no"}],label:"Allow decimal",placeholder:"Yes/ No",value:o,onValueChange:e=>a(e),info:"Enable this option if the unit can have decimal values (e.g., 2.5 kg, 1.75 liters). Disable it for whole number quantities only.",infoAlignment:"end",labelClass:"text-dark font-semibold text-[15px]",showSearch:!1})]}),m.jsx("div",{className:"flex justify-end gap-2.5",children:m.jsx(IE,{onClick:()=>{n({url:"/inventory_metas/units/create",payload:s},{onSuccess:()=>{f.invalidateQueries({queryKey:["itemunits"]}),l({name:"",description:"",abbreviation:"",item_type_uuid:"",is_decimal:!!o.match("yes")}),t&&t()}})},loading:r,label:"Create",className:"px-4"})})]})})}function hI({isOpen:e,onClose:t}){const{mutate:n,isPending:r}=ex(),o=En(),{apiKey:a}=Dn(),{data:i}=Jw(["categories",a],"/inventory_metas/categories",{enabled:!!a}),{data:s}=Jw(["itemunits",a],"/inventory_metas/units",{enabled:!!a}),{data:l}=Jw(["itemtags",a],"/inventory_metas/tags",{enabled:!!a}),{data:u}=Jw(["itemtypes",a],"/inventory_metas/types",{enabled:!!a}),{data:c}=Jw(["locations",a],"/locations/get_integrated",{enabled:!!a}),d=i?.data?.data?.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))}))||[],f=s?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],p=l?.data?.data?.map(e=>({label:e.name,value:e.uuid})),h=c?.data?.data?.map(e=>({label:e.name,value:e.uuid})),g=u?.data?.data?.filter(e=>"products"===e.name||"services"===e.name).map(e=>({label:e.name,value:e.uuid}))||[],[y,v]=D.useState(""),[b,w]=M.useState([]),[x,S]=M.useState([]),[C,k]=D.useState(g?.[0]?.value||"");D.useEffect(()=>{const e=g.find(e=>e?.value===C)?.label||"";v(e)},[C]);const[_,E]=D.useState([]),[j,O]=D.useState([{name:"",itemunit_id:f?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}]),N=(e,t,n)=>{const r=[...j];r[n]={...r[n],[e]:t},O(r)},R={itemtype_id:C,itemcategory_id:b,tags:_,items:j,locations_uuid:x},P=["Item name","Item unit",..."services"!==y?["Quantity","Barcode"]:[],"Cost price (₦)","Selling price (₦)"],[T,I]=D.useState(!1),[A,F]=D.useState(!1);return m.jsxs(XC,{isOpen:e,onClose:t,title:"Quick create multiple items",className:"max-w-5xl",children:[m.jsxs("div",{className:"px-5 space-y-7 pb-5",children:[m.jsxs("div",{className:"grid grid-cols-3 gap-5 bg-gray-100 rounded-xl p-4",children:[m.jsx("div",{className:"col-span-3",children:m.jsx(uN,{label:"Locations",placeholder:"Search and Select locations",labelClass:"text-dark text-sm",options:h,values:x,onChange:S,showSearch:!0,showCount:!0,showMultiSelectValues:!0})}),m.jsx(WC,{label:"Item type",options:g,placeholder:"select item type",value:C,onValueChange:e=>k(e),required:!0,info:"Select the type of item you're creating (e.g., product, service, variations, kits ). This classification helps determine how the item is managed, displayed, or fulfilled."}),m.jsx(kO,{placeholder:"select categories",label:"Category",options:d,values:b,onChange:e=>w(e),showMultiSelectValues:!1,showCount:!0,info:"Select the category that best describes this item(s) (e.g., electronics, clothing, food). Categorizing items helps in organizing inventory and simplifies product management."}),m.jsx(uN,{label:"Item tag",placeholder:"Search and Select item tags",info:"Enter relevant keywords or labels for this item(s). Tags help in categorizing and making the item easier to find through search filters.",labelClass:"text-dark text-sm",options:p,values:_,onChange:E,showSearch:!0,showCount:!0,showMultiSelectValues:!1,actionLabel:"Create a new tag",actionLabelInfo:"Enter a new tag to help categorize the item. Tags are useful for organizing and making items easily searchable by specific attributes or keywords.",actionLabelAction:()=>I(!0)})]}),m.jsxs("div",{className:"space-y-2 overflow-auto",children:[m.jsxs("table",{className:"table-auto w-full border-separate border-spacing-x-4 border-spacing-y-4",children:[m.jsx("thead",{children:m.jsx("tr",{children:P.map((e,t)=>m.jsx("th",{className:"text-dark text-sm font-medium text-left",children:m.jsxs("p",{className:"flex gap-1",children:[e,1===t?m.jsx(IE,{mode:"text",label:"",left_addon:Jy.plus_squared2,onClick:()=>F(!0),className:" text-sm"}):null]})},t))})}),m.jsx("tbody",{className:"text-dark text-[15px] ",children:j.map((e,t)=>m.jsxs("tr",{children:[m.jsx("td",{className:"",children:m.jsx(iO,{type:"text",placeholder:"Enter item name",value:e.name,onChange:e=>N("name",e.target.value,t)})}),m.jsx("td",{children:m.jsx(WC,{options:f,placeholder:"select item unit",value:e.itemunit_id,onValueChange:e=>N("itemunit_id",e,t)})}),"services"!==y?m.jsxs(m.Fragment,{children:[m.jsx("td",{className:"",children:m.jsx(iO,{type:"number",placeholder:"0",value:e.quantity,onChange:e=>N("quantity",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(iO,{type:"text",placeholder:"Enter barcode",value:e.barcode,onChange:e=>N("barcode",e.target.value,t)})})]}):null,m.jsx("td",{className:"",children:m.jsx(iO,{type:"number",placeholder:"0.00",value:e.cost_price,onChange:e=>N("cost_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx(iO,{type:"number",placeholder:"0.00",value:e.selling_price,onChange:e=>N("selling_price",e.target.value,t)})}),m.jsx("td",{className:"",children:m.jsx("button",{onClick:()=>(e=>{const t=j.filter((t,n)=>n!==e);O(t)})(t),disabled:1===j.length,className:"disabled:cursor-not-allowed disabled:opacity-70",children:Jy.trash2})})]},t))})]}),m.jsx("div",{className:"flex justify-between items-center gap-3",children:m.jsx(IE,{mode:"text",label:"Add more",left_addon:Jy.plus_squared2,onClick:()=>{O(e=>[...e,{name:"",itemunit_id:f?.[0]?.value||"",quantity:"",cost_price:"",selling_price:"",barcode:""}])},className:"font-medium text-sm ml-4"})})]})]}),m.jsxs("div",{className:"flex justify-between items-center px-5 sticky bottom-0 bg-white py-5 border-t ",children:[m.jsxs("button",{className:"text-primary text-sm font-medium flex items-center gap-1",children:[Jy.question," Need help?"]}),m.jsxs("div",{className:"flex justify-end gap-2.5",children:[m.jsx(IE,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t}),m.jsx(IE,{label:"Create Items",onClick:()=>{n({url:"/items/create_multiple",payload:R},{onSuccess:()=>{o.invalidateQueries({queryKey:["items"]}),t&&t()}})},loading:r})]})]}),m.jsx(fI,{isOpen:T,onClose:()=>I(!1)}),m.jsx(pI,{isOpen:A,onClose:()=>F(!1)})]})}function mI({isOpen:e,onClose:t,currentTab:n,loading:r,filter:o,setFiltering:a}){const[i,s]=D.useState(""),[l]=CO(i,1e3),{apiKey:u}=Dn(),{data:c}=Jw(["categories",u],"/inventory_metas/categories",{enabled:!!u}),{data:d}=Jw(["itemtypes",u],"/inventory_metas/types",{enabled:!!u}),{data:f}=Jw(["itemunits",u],"/inventory_metas/units",{enabled:!!u}),{data:p}=Jw(["suppliers",l],i?`/suppliers/search/${i}/all`:"/suppliers",{enabled:!!u}),{data:h}=Jw(["itembrands"],"/inventory_metas/brands",{enabled:!!u}),g=p?.data?.data?.map(e=>({label:e?.name,value:e?.uuid})),y=h?.data?.data?.map(e=>({label:e.name,value:e.uuid})),[v,b]=D.useState(""),[w]=CO(v,1e3),{data:x}=Jw(["itemtags",u,w],"/inventory_metas/tags",{enabled:!!u&&!!w}),S=x?.data?.data?.map(e=>({label:e.name,value:e.uuid})),C=c?.data?.data.map(e=>({label:e.name,value:e.uuid,subOptions:e.subCategories.map(e=>({label:e.name,value:e.uuid}))})),k=d?.data?.data?.map(e=>({label:e.name,value:e.uuid})),_=f?.data?.data?.map(e=>({label:e.name,value:e.uuid}))||[],[E,j]=D.useState({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),O=(e,t)=>{j(n=>({...n,[e]:t}))};return m.jsx(XC,{isOpen:e,onClose:t,children:m.jsxs("div",{className:"px-8",children:[m.jsxs("div",{className:"flex justify-between items-center sticky top-0 py-5 bg-white",children:[m.jsx("h1",{className:"text-gray-900 font-semibold text-lg",children:"Item Filter"}),m.jsxs("button",{className:"text-danger text-sm font-medium inline-flex items-center",onClick:()=>{j({for:n,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]}),a(!1),t&&t()},children:[m.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M11.175 9.99997L14.1667 7.0333C14.3258 6.87196 14.4143 6.65401 14.4128 6.42741C14.4112 6.2008 14.3197 5.98409 14.1583 5.82497C13.997 5.66584 13.779 5.57731 13.5524 5.57888C13.3258 5.58044 13.1091 5.67196 12.95 5.8333L10 8.82497L7.05 5.89163C6.89387 5.73642 6.68266 5.6493 6.4625 5.6493C6.24235 5.6493 6.03114 5.73642 5.875 5.89163C5.79689 5.9691 5.7349 6.06127 5.69259 6.16282C5.65028 6.26437 5.6285 6.37329 5.6285 6.4833C5.6285 6.59331 5.65028 6.70223 5.69259 6.80378C5.7349 6.90533 5.79689 6.9975 5.875 7.07497L8.825 9.99997L5.83333 12.9666C5.6742 13.128 5.58568 13.3459 5.58725 13.5725C5.58881 13.7991 5.68033 14.0158 5.84167 14.175C6.00301 14.3341 6.22095 14.4226 6.44756 14.4211C6.67417 14.4195 6.89087 14.328 7.05 14.1666L10 11.175L12.95 14.1083C13.1061 14.2635 13.3173 14.3506 13.5375 14.3506C13.7577 14.3506 13.9689 14.2635 14.125 14.1083C14.2031 14.0308 14.2651 13.9387 14.3074 13.8371C14.3497 13.7356 14.3715 13.6266 14.3715 13.5166C14.3715 13.4066 14.3497 13.2977 14.3074 13.1962C14.2651 13.0946 14.2031 13.0024 14.125 12.925L11.175 9.99997Z",fill:"#F1416C"})}),"Reset"," "]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-5",children:[m.jsx(kO,{options:C,label:"Categories",placeholder:"Select categories",values:E.category,onChange:e=>O("category",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:g,label:"Supplier",placeholder:"Select Suppliers",values:E.supplier,onChange:e=>O("supplier",e),labelClass:"text-dark font-medium",className:"col-span-2",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>s(e.target.value)}),m.jsx(uN,{options:k,label:"Item types",placeholder:"Select types",values:E.type,onChange:e=>O("type",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:_,label:"Item units",placeholder:"Select item unit",values:E.unit,onChange:e=>O("unit",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:y,label:"Item brands",placeholder:"Select item brands",values:E.brands,onChange:e=>O("brands",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0}),m.jsx(uN,{options:S,label:"Item tag",placeholder:"Select item tag",values:E.tags,onChange:e=>O("tags",e),labelClass:"text-dark font-medium",showMultiSelectValues:!1,showCount:!0,onChangeSearch:e=>b(e.target.value)})]}),m.jsxs("div",{className:"flex justify-end gap-2.5 sticky bottom-0 py-5 bg-white",children:[m.jsx(IE,{label:"Cancel",className:"bg-[#F1F1F2] text-[#181C32] hover:bg-[#F1F1F2]/90",onClick:t,disabled:r}),m.jsx(IE,{label:"Apply filter",onClick:()=>o(E),loading:r})]})]})})}let gI={};function yI(e){gI=e}const vI={inventory:({showStats:e=!0})=>{const[t,n]=M.useState(),{currentPage:r,perview:o,inline_update:a}=ne(e=>e.app),[i,s]=D.useState("all"),[l,u]=D.useState(!1),[c,d]=D.useState("all"),[f,p]=D.useState(""),[h]=CO(f,1e3),[g,y]=D.useState(!1),{apiKey:v}=Dn(),{mutate:b,isPending:w}=ex(),{data:x,isFetching:S}=Jw(["items",o.toString(),r?.toString(),i,h,v],h?`/items/search?page=${r}&paginate=${o}¶m=${h}&for=${i}&filter=all`:`/items?page=${r}&paginate=${o}&status=${i}`,{enabled:!!v}),[C,k]=D.useState(),_=e=>{y(!0),b({url:`/inventory/item/filter?page=${r}&perview=${o}`,payload:e},{onSuccess(e,t,n){k(e),u(!1)}})},[E,j]=D.useState({for:i,category:[],supplier:[],tags:[],brands:[],type:[],unit:[]});M.useEffect(()=>{g&&!f&&_(E)},[f,a,o,r,S]);const O=g?C?.data[0]:x?.data?.[0]||[],N=O?.data?.map(e=>({item_description:e?.name,all_quantity:+e?.all_quantity,other_locations:e?.other_locations,itemcode:e?.itemcode,quantity:+e?.quantity,type:e?.item_type?.name,selling_price:+e?.selling_price,categories:e?.category||[],tags:e?.item_tags?.map(e=>e.name)||[],status:e?.status?"published":"draft",sku:e?.sku,item_image:e.images?.length>0?e.images?.[0].image:rS,barcode:e?.barcode,expired:e?.expired,expiring:e?.expiring,unit:e?.item_unit,uuid:e?.uuid,item_type_id:e?.item_type?.uuid,reorder_level:e?.reorder_level,fullData:e}))||[],{data:R,isFetching:P}=Jw(["items-tab"],"/items/count",{enabled:!!v}),T=R?.data,I=[{label:"all",count:T?.all||0,action:()=>s("all")},{label:"published",count:T?.published||0,action:()=>s("published")},{label:"out of stock",count:T?.out_of_stock||0,action:()=>s("out_of_stock")},{label:"draft",count:T?.draft||0,action:()=>s("draft")},{label:"expiring",count:T?.expiring||0,action:()=>s("expiring")},{label:"expired",count:T?.expired||0,action:()=>s("expired")}],[A,F]=D.useState(!1);return m.jsxs(tS,{className:"px-4 py-6 flex flex-col gap-8",children:[m.jsx(KC,{tabs:I,loading:S}),m.jsxs("div",{className:" flex items-center justify-between flex-wrap gap-4",children:[m.jsxs("div",{className:"flex items-center gap-2.5",children:[m.jsx(xO,{placeholder:"Search Item name, barcode or sku",value:f,onChange:e=>p(e.target.value)}),S?m.jsx(na,{className:"w-20 h-6"}):m.jsxs("p",{className:"text-dark text-sm font-medium",children:[O?.meta?.total??0," ",m.jsx("span",{className:"text-gray-700",children:"Items"})]})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx(IE,{label:"Filter",left_addon:M.cloneElement(Jy.filter_edit,{fill:"#5E6278"}),onClick:()=>u(!0),className:"font-medium bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm h-12"}),m.jsx(IE,{label:"Create New",left_addon:Jy.plus_squared,className:"font-medium text-sm h-12",onClick:()=>F(!0)})]})]}),e?m.jsx(wO,{loading:S,data:x?.data?.[1],meta:O?.meta}):null,m.jsx(nv,{loading:S,columns:lO,data:N,emptyData:0===N.length,emptyProps:{header:"No item yet",subText:"Add new item to start managing your inventory."},tHeadClass:"whitespace-nowrap",tbCellClass:"text-dark font-semibold",meta:O?.meta}),m.jsx(mI,{isOpen:l,onClose:()=>u(!1),currentTab:i,loading:w,filter:e=>{_(e),j(e)},setFiltering:y}),A?m.jsx(hI,{isOpen:A,onClose:()=>F(!1)}):null]})}};async function bI(e,t,n={}){const r=vI[e];if(!r)return void console.error(`SimpooSDK: Widget "${e}" not found.`);const o=document.querySelector(t);if(!o)throw new Error(`Container "${t}" not found!`);try{await new Promise((e,t)=>{const n=document.querySelector("#simpoo-sdk-styles");if(n)return e(n);const r=document.createElement("link");r.id="simpoo-sdk-styles",r.rel="stylesheet",r.href="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css",r.onload=()=>e(r),r.onerror=()=>{document.querySelector(`#${r.id}`)||document.head.appendChild(r),e(r)};const o=setTimeout(()=>{document.querySelector(`#${r.id}`)||document.head.appendChild(r),e(r)},5e3);document.head.appendChild(r),r.addEventListener("load",()=>clearTimeout(o)),r.addEventListener("error",()=>clearTimeout(o))})}catch(e){console.warn("SimpooSDK: stylesheet failed to load, continuing to render.",e)}const a=document.createElement("div");o.appendChild(a);T.createRoot(a).render(m.jsx(Mn,{apiKey:gI.apiKey||"",children:m.jsx(r,{...n})}))}"undefined"!=typeof window&&(window.SimpooSDK={init:yI,renderWidget:bI}),e.init=yI,e.renderWidget=bI});
|
|
245
245
|
//# sourceMappingURL=simpoo-sdk.js.map
|