@ctlyst.id/internal-ui 2.1.16 → 2.1.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/accordion/__stories__/accordion.stories.d.ts +9 -0
- package/dist/components/accordion/components/accordion-indicator.d.ts +1 -0
- package/dist/components/accordion/components/index.d.ts +2 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/alert/__stories__/alert.stories.d.ts +11 -0
- package/dist/components/alert/components/alert-action.d.ts +6 -0
- package/dist/components/alert/components/alert-close.d.ts +6 -0
- package/dist/components/alert/components/alert-context.d.ts +33 -0
- package/dist/components/alert/components/alert-description.d.ts +3 -0
- package/dist/components/alert/components/alert-icon.d.ts +6 -0
- package/dist/components/alert/components/alert-title.d.ts +3 -0
- package/dist/components/alert/components/alert.d.ts +25 -0
- package/dist/components/alert/components/icons.d.ts +3 -0
- package/dist/components/alert/components/index.d.ts +14 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/anchor/__stories__/anchor.stories.d.ts +9 -0
- package/dist/components/anchor/components/anchor.d.ts +20 -0
- package/dist/components/anchor/components/index.d.ts +1 -0
- package/dist/components/anchor/index.d.ts +1 -0
- package/dist/components/badge/__stories__/badge.stories.d.ts +15 -0
- package/dist/components/badge/components/badge.d.ts +11 -0
- package/dist/components/badge/components/index.d.ts +1 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/breadcrumb/__stories__/breadcrumb.stories.d.ts +8 -0
- package/dist/components/breadcrumb/components/bread-crumb.d.ts +18 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/button/__stories__/button.stories.d.ts +12 -0
- package/dist/components/button/components/button.d.ts +4 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/card/__stories__/card.stories.d.ts +8 -0
- package/dist/components/card/components/card.d.ts +8 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +13 -0
- package/dist/components/checkbox/components/checkbox-group.d.ts +18 -0
- package/dist/components/checkbox/components/checkbox.d.ts +10 -0
- package/dist/components/checkbox/index.d.ts +5 -0
- package/dist/components/chips/__stories__/chips.stories.d.ts +9 -0
- package/dist/components/chips/components/chips.d.ts +19 -0
- package/dist/components/chips/index.d.ts +2 -0
- package/dist/components/collapse/__stories__/collapse.stories.d.ts +7 -0
- package/dist/components/counter/__stories__/counter.stories.d.ts +10 -0
- package/dist/components/counter/components/counter.d.ts +15 -0
- package/dist/components/counter/index.d.ts +1 -0
- package/dist/components/data-table/__stories__/datatable.stories.d.ts +21 -0
- package/dist/components/data-table/components/data-table.d.ts +30 -0
- package/dist/components/data-table/index.d.ts +3 -0
- package/dist/components/data-table/types/table-core.d.ts +1 -0
- package/dist/components/datepicker/__stories__/datepicker.stories.d.ts +13 -0
- package/dist/components/datepicker/components/datepicker-month/datepicker-month.d.ts +9 -0
- package/dist/components/datepicker/components/datepicker-month/index.d.ts +4 -0
- package/dist/components/datepicker/components/datepicker-month/multi-datepicker-month.d.ts +9 -0
- package/dist/components/datepicker/components/datepicker.d.ts +17 -0
- package/dist/components/datepicker/components/styles.d.ts +2 -0
- package/dist/components/datepicker/components/time-input.d.ts +9 -0
- package/dist/components/datepicker/index.d.ts +3 -0
- package/dist/components/dialog/__stories__/dialog.stories.d.ts +7 -0
- package/dist/components/dialog/components/dialog.d.ts +12 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/empty-state/__stories__/dialog.stories.d.ts +7 -0
- package/dist/components/field/__stories__/field.stories.d.ts +7 -0
- package/dist/components/field/components/field.d.ts +15 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/form/__stories__/input.stories.d.ts +15 -0
- package/dist/components/form/__stories__/textarea.stories.d.ts +7 -0
- package/dist/components/form/components/input-addon.d.ts +7 -0
- package/dist/components/form/components/input-element.d.ts +2 -0
- package/dist/components/form/components/input-field.d.ts +13 -0
- package/dist/components/form/components/textarea.d.ts +8 -0
- package/dist/components/form/index.d.ts +7 -0
- package/dist/components/form/styles/input-field.d.ts +4 -0
- package/dist/components/header/__stories__/header.stories.d.ts +9 -0
- package/dist/components/header/components/header.d.ts +19 -0
- package/dist/components/header/components/logo.d.ts +10 -0
- package/dist/components/header/components/profile.d.ts +11 -0
- package/dist/components/header/components/switch-mode.d.ts +3 -0
- package/dist/components/header/components/version.d.ts +10 -0
- package/dist/components/header/index.d.ts +3 -0
- package/dist/components/header/types.d.ts +10 -0
- package/dist/components/header/utils/formatter.d.ts +2 -0
- package/dist/components/image/__stories__/image.stories.d.ts +9 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/index.d.ts +34 -0
- package/dist/components/layouting/index.d.ts +1 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/loader/__stories__/loader.stories.d.ts +9 -0
- package/dist/components/loader/components/loader.d.ts +10 -0
- package/dist/components/loader/index.d.ts +3 -0
- package/dist/components/modal/__stories__/modal.stories.d.ts +7 -0
- package/dist/components/modal/components/modal-body.d.ts +4 -0
- package/dist/components/modal/components/modal-close-button.d.ts +4 -0
- package/dist/components/modal/components/modal-footer.d.ts +4 -0
- package/dist/components/modal/components/modal-header.d.ts +4 -0
- package/dist/components/modal/index.d.ts +5 -0
- package/dist/components/navigation/__stories__/navigation.stories.d.ts +8 -0
- package/dist/components/navigation/components/customer-icon.d.ts +2 -0
- package/dist/components/navigation/components/mapping-icon.d.ts +2 -0
- package/dist/components/navigation/components/navigation-bar.d.ts +12 -0
- package/dist/components/navigation/components/navigation.d.ts +11 -0
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/components/navigation/types.d.ts +24 -0
- package/dist/components/pagination/__stories__/pagination.stories.d.ts +10 -0
- package/dist/components/pagination/components/pagination-button-trigger.d.ts +10 -0
- package/dist/components/pagination/components/pagination-button.d.ts +6 -0
- package/dist/components/pagination/components/pagination-detail.d.ts +10 -0
- package/dist/components/pagination/components/pagination-filter.d.ts +13 -0
- package/dist/components/pagination/components/pagination.d.ts +16 -0
- package/dist/components/pagination/index.d.ts +6 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/radio/__stories__/radio.stories.d.ts +13 -0
- package/dist/components/radio/components/radio-group.d.ts +18 -0
- package/dist/components/radio/components/radio.d.ts +17 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/rating/__stories__/rating.stories.d.ts +7 -0
- package/dist/components/rating/components/rating.d.ts +6 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/select/__stories__/select.stories.d.ts +10 -0
- package/dist/components/select/components/select-async-creatable.d.ts +5 -0
- package/dist/components/select/components/select-async.d.ts +6 -0
- package/dist/components/select/components/select-creatable.d.ts +5 -0
- package/dist/components/select/components/select-wrapper.d.ts +6 -0
- package/dist/components/select/components/select.d.ts +5 -0
- package/dist/components/select/components/types/select.types.d.ts +3 -0
- package/dist/components/select/components/utils.d.ts +26 -0
- package/dist/components/select/index.d.ts +8 -0
- package/dist/components/switch/__stories__/switch.stories.d.ts +10 -0
- package/dist/components/switch/components/switch.d.ts +18 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/tabs/__stories__/tabs.stories.d.ts +8 -0
- package/dist/components/tabs/components/tab.d.ts +12 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/toast/__stories__/toast.stories.d.ts +12 -0
- package/dist/components/toast/components/toast.d.ts +21 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/tooltip/__stories__/tooltip.stories.d.ts +7 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/uploader/__stories__/uploader.stories.d.ts +9 -0
- package/dist/components/uploader/components/uploader.d.ts +12 -0
- package/dist/components/uploader/constants.d.ts +8 -0
- package/dist/components/uploader/index.d.ts +2 -0
- package/dist/config/__stories__/foundations.stories.d.ts +15 -0
- package/dist/config/__stories__/globals.stories.d.ts +10 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/theme/components/accordion.d.ts +53 -0
- package/dist/config/theme/components/alert.d.ts +69 -0
- package/dist/config/theme/components/badge.d.ts +3 -0
- package/dist/config/theme/components/button.d.ts +3 -0
- package/dist/config/theme/components/card.d.ts +18 -0
- package/dist/config/theme/components/checkbox.d.ts +101 -0
- package/dist/config/theme/components/chips.d.ts +34 -0
- package/dist/config/theme/components/form-label.d.ts +20 -0
- package/dist/config/theme/components/index.d.ts +16 -0
- package/dist/config/theme/components/input.d.ts +101 -0
- package/dist/config/theme/components/loader.d.ts +85 -0
- package/dist/config/theme/components/popover.d.ts +3 -0
- package/dist/config/theme/components/radio.d.ts +102 -0
- package/dist/config/theme/components/switch.d.ts +75 -0
- package/dist/config/theme/components/table.d.ts +180 -0
- package/dist/config/theme/components/tabs.d.ts +30 -0
- package/dist/config/theme/components/textarea.d.ts +55 -0
- package/dist/config/theme/foundations/index.d.ts +5 -0
- package/dist/config/theme/foundations/radius.d.ts +8 -0
- package/dist/config/theme/foundations/shadows.d.ts +15 -0
- package/dist/config/theme/foundations/sizes.d.ts +66 -0
- package/dist/config/theme/foundations/spacing.d.ts +42 -0
- package/dist/config/theme/foundations/typography.d.ts +191 -0
- package/dist/config/theme/index.d.ts +1 -0
- package/dist/config/theme/themeConfiguration.d.ts +6 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useFetcher.d.ts +4 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +546 -547
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -73
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/common.d.ts +17 -0
- package/dist/internal-ui.cjs.development.js +6119 -0
- package/dist/internal-ui.cjs.development.js.map +1 -0
- package/dist/internal-ui.cjs.production.min.js +38 -0
- package/dist/internal-ui.cjs.production.min.js.map +1 -0
- package/dist/internal-ui.esm.js +5082 -0
- package/dist/internal-ui.esm.js.map +1 -0
- package/dist/provider/__stories__/provider.stories.d.ts +13 -0
- package/dist/provider/components/provider.d.ts +7 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/types.d.ts +14 -0
- package/package.json +1 -1
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@chakra-ui/accordion"),r=require("@chakra-ui/react"),n=require("react"),a=e(n),o=require("@chakra-ui/shared-utils"),i=require("@chakra-ui/system"),c=require("@chakra-ui/react-context"),l=require("@ctlyst.id/internal-icon"),d=require("@chakra-ui/utils"),s=require("@chakra-ui/layout"),p=require("react-icons/fi"),u=require("@chakra-ui/checkbox"),m=require("@chakra-ui/icons"),g=require("@emotion/react"),b=require("@tanstack/react-table"),h=e(require("classnames")),f=e(require("react-datepicker")),_=e(require("@emotion/styled")),x=require("@chakra-ui/radio"),y=e(require("react-select")),k=require("react-select-async-paginate"),v=e(require("react-select/async-creatable")),w=e(require("react-select/creatable")),C=require("react-dropzone"),E=require("@chakra-ui/anatomy"),S=require("@chakra-ui/styled-system"),P=require("@chakra-ui/theme-tools"),O=e(require("axios")),j=require("react-toastify");function M(){return a.createElement(l.Info,{color:"inherit",size:4})}const[T,I]=c.createContext({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[R,A]=c.createContext({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),B={info:{icon:M,colorScheme:"info"},warning:{icon:M,colorScheme:"warning"},success:{icon:function(){return a.createElement(l.CheckCircle,{color:"inherit",size:4})},colorScheme:"success"},error:{icon:function(){return a.createElement(l.AlertTriangle,{color:"inherit",size:4})},colorScheme:"danger"},neutral:{icon:M,colorScheme:"neutral"}},z=i.forwardRef((function(e,t){var r;const{status:n="info",addRole:c=!0,children:l,...d}=i.omitThemingProps(e),s=null!==(r=e.colorScheme)&&void 0!==r?r:function(e){return B[e].colorScheme}(n),p=i.useMultiStyleConfig("Alert",{...e,colorScheme:s}),u={width:"100%",display:"grid",gridTemplateColumns:"auto 1fr auto auto",alignItems:"center",position:"relative",overflow:"hidden",...p.container};return a.createElement(T,{value:{status:n}},a.createElement(R,{value:p},a.createElement(i.chakra.div,Object.assign({"data-status":n,role:c?"alert":void 0,ref:t},d,{className:o.cx("chakra-alert",e.className),__css:u}),l)))}));z.displayName="Alert";const D=r.forwardRef((e,t)=>{const n=r.useStyleConfig("LoaderStyle",e);return a.createElement(r.Box,{ref:t,__css:n})});D.defaultProps={size:"md"};const F=r.forwardRef((e,t)=>{const{children:n,variant:o,size:i,...c}=e;return a.createElement(r.Button,Object.assign({size:i,variant:o,spinner:a.createElement(D,{size:"lg"===i?"md":"md"===i?"sm":"xs",color:"primary"===o||"danger"===o?"white":"outline-danger"===o?"danger":"primary"}),ref:t},c),n)});function H({children:e,className:t}){const r=A().action;return a.createElement(F,{"data-test-id":"alert-action",className:d.cx("chakra-alert__action",t),variant:"link",fontWeight:"semibold",__css:r},e)}function L({className:e,children:t,...r}){const n=A().close;return a.createElement(i.chakra.span,Object.assign({display:"inherit","data-status":"alert-close"},r,{className:o.cx("chakra-alert__close",e),__css:n}),t||a.createElement(l.Close,{color:"inherit",size:4}))}H.displayName="AlertAction",L.displayName="AlertClose";const q=i.forwardRef((function(e,t){const r=A(),{status:n}=I(),c={display:"inline",...r.description};return a.createElement(i.chakra.div,Object.assign({ref:t,"data-status":n},e,{className:o.cx("chakra-alert__desc",e.className),__css:c}))}));function N({className:e,children:t,...r}){const{status:n}=I(),c=function(e){return B[e].icon}(n),l=A().icon;return a.createElement(i.chakra.span,Object.assign({display:"inherit","data-status":n},r,{className:o.cx("chakra-alert__icon",e),__css:l}),t||a.createElement(c,null))}q.displayName="AlertDescription",N.displayName="AlertIcon";const W=i.forwardRef((function(e,t){const r=A(),{status:n}=I();return a.createElement(i.chakra.div,Object.assign({ref:t,"data-status":n},e,{className:o.cx("chakra-alert__title",e.className),__css:r.title}))}));W.displayName="AlertTitle";const V=({children:e,leftIcon:t,rightIcon:r,isActive:a,isChild:i,...c})=>n.createElement(s.Link,Object.assign({display:"inline-block",w:"full",p:"4",pl:i?"10":"4",borderLeft:"1px solid",borderLeftColor:a?"primary.500":"neutral.400",color:a?"primary.500":"black.high",bg:a?"neutral.100":"white",className:o.cx("catalyst-anchor",c.className),_hover:{textDecoration:"none"}},c),t&&t,e,r&&r);V.displayName="Anchor",V.defaultProps={leftIcon:void 0,rightIcon:void 0,isActive:!1,isChild:!1};const $=e=>{const{children:t,pill:n,...o}=e;return a.createElement(r.Badge,Object.assign({borderRadius:n?"xl":"sm",display:"inline-flex",alignItems:"center",justifyContent:"space-between",textTransform:"none"},o),t)};$.defaultProps={pill:!1};const G=e=>{const{title:t,children:a,parents:o,className:i,disableHome:c,spacing:l=2,backButton:d}=e,[s,u]=r.useToken("colors",["neutral.600","primary.500"]);return n.createElement(r.Box,{"data-test-id":"CT_component_breadcrumb_breadcrumb",className:i,display:"flex",justifyContent:"space-between",alignItems:"center",paddingY:2},n.createElement(r.Box,{display:"flex",alignItems:"center"},d&&n.createElement(F,{variant:"icon","data-test-id":"button",size:"md",mr:"2",onClick:d},n.createElement(p.FiChevronLeft,{size:r.theme.sizes[5]})),n.createElement(r.Text,{pr:"2",textStyle:"heading.6",color:"neutral.700"},t),n.createElement(r.Box,{h:"5.5",borderLeft:"1px solid",borderColor:s}),n.createElement(r.Breadcrumb,{separator:n.createElement(p.FiChevronsRight,{color:s,size:r.theme.sizes[3.5]}),pl:"2",pr:"4",spacing:l,sx:{ol:{display:"flex",alignItems:"center"}},display:"flex",alignItems:"center",className:"breadcrumb-wrapper"},n.createElement(r.BreadcrumbItem,null,n.createElement(r.BreadcrumbLink,{href:c?void 0:"/",style:{...c&&{cursor:"default"}}},n.createElement(p.FiHome,{className:"align-top",size:r.theme.sizes[3.5],color:u}))),null==o?void 0:o.map(e=>n.createElement(r.BreadcrumbItem,{key:e.name},n.createElement(r.BreadcrumbLink,{"data-test-id":"iadKcMAul3QAdvmfIQjRE",href:e.disable?void 0:e.link,onClick:e.onClick,style:{...e.disable&&{cursor:"default"}},_hover:{textDecoration:"none"}},n.createElement(r.Text,{color:e.disable?s:u,textStyle:"text.sm"},e.name)))),n.createElement(r.BreadcrumbItem,null,n.createElement(r.BreadcrumbLink,{_hover:{textDecor:"none",cursor:"default"}},n.createElement(r.Text,{color:"neutral.600",textStyle:"text.sm"},t))))),a&&n.createElement(r.Box,null,a))};G.defaultProps={children:void 0,parents:void 0,className:void 0,disableHome:void 0,spacing:2,backButton:void 0};const U=n.forwardRef(({children:e,...t},n)=>{const o=r.useStyleConfig("Card",t);return a.createElement(r.Card,Object.assign({__css:o,backgroundColor:"white.high",ref:n},t),e)});U.defaultProps={withShadow:!0,isRounded:!0};const X=r.forwardRef(({isError:e=!1,helpText:t="",errorText:n="",boxProps:o,children:i,isDisabled:c,...l},d)=>{const s=e?"errors":"unstyled";return a.createElement(r.Box,Object.assign({},o),a.createElement(r.Box,{display:"flex"},a.createElement(r.Checkbox,Object.assign({variant:s,ref:d},l,{isDisabled:c}),i&&a.createElement(r.Text,{as:"span",display:"block",textStyle:"text.sm",color:c?"black.medium":"black.high"},i))),(e||t)&&a.createElement(r.Box,{mt:"5px",ml:"24px"},e?a.createElement(r.Text,{as:"span",display:"block",textStyle:"text.xs",color:"danger.500"},n):a.createElement(r.Text,{as:"span",display:"block",textStyle:"text.xs",color:"black.medium"},t)))});X.defaultProps={isError:!1,helpText:"",errorText:"",boxProps:{}};const Z=e=>{const{label:t,isError:n,errorMessage:o,leftHelperText:i,rightHelperText:c,isRequired:l,children:d,isSuccess:s,boxProps:p={}}=e,u=n?"danger.500":s?"success.500":"black.medium",m=c&&(!i||n&&!o)?"flex-end":"space-between";return a.createElement(r.FormControl,Object.assign({isInvalid:n},p),t&&("string"==typeof t?a.createElement(r.FormLabel,{mb:1,fontSize:"text.sm",requiredIndicator:void 0},l&&a.createElement(r.Box,{as:"span",color:"danger.500",ml:0,mr:1},"*"),t):t),d,(n&&o||i||c)&&a.createElement(r.Box,{display:"flex",width:"full",justifyContent:m},n?"string"==typeof o?a.createElement(r.FormErrorMessage,{fontSize:"text.xs",color:"danger.500",mt:1},o):o:i&&("string"==typeof i?a.createElement(r.FormHelperText,{fontSize:"text.xs",color:u,mt:1},i):i),c&&("string"==typeof c?a.createElement(r.FormHelperText,{fontSize:"text.xs",color:u,mt:1},c):c)))};function Q(e){const{children:t,label:n,helpText:o,isError:i,errorMessage:c,...l}=e;return a.createElement(Z,Object.assign({},l,{label:n,leftHelperText:o,isError:i,errorMessage:c}),a.createElement(r.Box,{mt:"12px"},a.createElement(r.CheckboxGroup,Object.assign({},l),a.createElement(r.Stack,{spacing:[1,"16px"],direction:["column","row"]},t))))}Z.defaultProps={label:"",isError:!1,isSuccess:!1,errorMessage:void 0,leftHelperText:void 0,rightHelperText:void 0,isRequired:!1,boxProps:{}},Q.defaultProps={helpText:"",isError:!1,errorMessage:""};const K=({children:e,...t})=>{const{isActive:o,isDisabled:i,onClose:c}=t,d=r.useStyleConfig("Chips",t),s=n.useMemo(()=>o?"white.high":i?"black.low":"primary.500",[o,i]);return a.createElement(r.Box,Object.assign({__css:d,display:"inline-flex",alignItems:"center",justifyContent:"center"},t),e,c&&a.createElement(r.Box,{onClick:i?void 0:c,cursor:i?"not-allowed":"pointer",ml:2,display:"flex",alignItems:"center",justifyContent:"center"},a.createElement(l.Close,{color:s,size:4})))};K.defaultProps={isDisabled:!1,isActive:!1,onClose:void 0,children:void 0,size:"sm"};const Y=e=>{const{outlineColor:t,focusColor:n}=(e=>{const{isError:t,isDisabled:r,isSuccess:n}=e;let a="neutral.400",o="primary.500";return(t||r||n)&&(t?a="danger.500":n&&(a="success.500"),o=a),{outlineColor:a,focusColor:o}})(e);return r.defineStyle({border:"1px solid",borderColor:t,borderRadius:"sm",transition:"all 0.15s",boxShadow:"none",_focusWithin:{borderColor:n}})},J=a.forwardRef((e,t)=>{const{value:o,type:i,addOnLeft:c,addOnRight:d,size:s,isRequired:p,label:u,isError:m,isSuccess:g,isDisabled:b,errorMessage:h,leftHelperText:f,rightHelperText:_,withClear:x,onClear:y,isLoading:k,...v}=e,w=Y(e),[C,E]=n.useState(!1),S=n.useMemo(()=>"password"===i&&C?"text":i,[C,i]),P=n.useMemo(()=>"password"===i&&!C&&o?"text.xl":"text.sm",[C,i,o]),O=n.useMemo(()=>b?"black.low":"black.medium",[b]);return a.createElement(Z,{label:u,isSuccess:g,isError:m,errorMessage:h,leftHelperText:f,rightHelperText:_,isRequired:p},a.createElement(r.Box,{__css:w},a.createElement(r.InputGroup,{size:s,borderRadius:"sm",backgroundColor:b?"neutral.300":"white.high",cursor:b?"not-allowed":"default"},c,a.createElement(r.Input,Object.assign({ref:t,type:S,value:o,isDisabled:b,isSuccess:g},v,{fontSize:P})),(x||k||"password"===i)&&a.createElement(r.Box,{"data-test-id":"CT_Component_ClearInput",display:"flex",alignItems:"center",justifyContent:"center",width:"16px",mr:"10px"},x&&!k&&a.createElement(r.Box,{display:"flex",justifyContent:"center",onClick:b?void 0:y,cursor:b?"not-allowed":"pointer"},a.createElement(l.Close,{size:4,color:O})),"password"===i&&!C&&!k&&a.createElement(r.Box,{"data-test-id":"q2Bj2G4FlamXyHuRKMZ1Q",onClick:()=>{b||E(!0)},cursor:b?"not-allowed":"pointer",display:"flex",justifyContent:"center"},a.createElement(l.EyeOff,{size:4,color:O})),"password"===i&&C&&!k&&a.createElement(r.Box,{"data-test-id":"sfc2388bmeXBmdla45Ibk",onClick:()=>{b||E(!1)},cursor:b?"not-allowed":"pointer",display:"flex",justifyContent:"center"},a.createElement(l.Eye,{size:4,color:O})),k&&a.createElement(D,{size:"sm"})),d)))});J.defaultProps={addOnLeft:void 0,addOnRight:void 0,withClear:void 0,isLoading:void 0,onClear:void 0};const ee=a.forwardRef((e,t)=>{const{value:n,isLoading:o,...i}=e;return a.createElement(Z,Object.assign({},i),a.createElement(r.Box,{position:"relative"},a.createElement(r.Textarea,Object.assign({ref:t,value:n},i)),o&&a.createElement(r.Box,{zIndex:999,top:2,right:2,position:"absolute"},a.createElement(D,{size:"sm"}))))});ee.defaultProps={isLoading:void 0};const te=n.forwardRef((e,t)=>{const{columns:a,dataSource:o=[],isLoading:i,withSelectedRow:c,onSelectedRow:l,onSort:d,sortDescFirst:s,styles:p,sortingState:u,headerSticky:h,manualSorting:f,onRowClick:_}=e,[x,y]=n.useState(!0),[k,v]=n.useState(null!=u?u:[]),[w,C]=n.useState({}),E=n.useMemo(()=>a,[a]),S=n.useMemo(()=>[{id:"select",header:({table:e})=>n.createElement(r.Checkbox,Object.assign({"data-test-id":"select-header-data-table"},{isChecked:e.getIsAllRowsSelected(),isIndeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler()})),cell:({row:e})=>n.createElement(r.Checkbox,Object.assign({"data-test-id":"select-data-table-"+e.index},{isChecked:e.getIsSelected(),isIndeterminate:e.getIsSomeSelected(),onChange:e.getToggleSelectedHandler()}))}],[]),P=b.useReactTable({data:o,columns:c?[...S,...E]:E,getCoreRowModel:b.getCoreRowModel(),getSortedRowModel:b.getSortedRowModel(),manualPagination:!0,manualSorting:f,sortDescFirst:s,state:{sorting:k,rowSelection:w},onRowSelectionChange:C,onSortingChange:e=>{v(e)}}),{getSelectedRowModel:O,toggleAllRowsSelected:j}=P,{flatRows:M}=O();return n.useEffect(()=>{const e=M.map(e=>e.original);l&&l(e)},[M]),n.useImperativeHandle(t,()=>({toggleAllRowsSelected:j})),n.useEffect(()=>{d&&!x&&d(k)},[k]),n.useEffect(()=>{y(!1)},[]),n.createElement(r.Box,Object.assign({},e),i&&n.createElement(r.Flex,{w:"100%",h:"100%",pos:"absolute",bg:"white",align:"center",justify:"center",zIndex:2},n.createElement(r.Spinner,{color:"primary.500",thickness:"4px",size:"lg"})),n.createElement(r.Table,Object.assign({},null==p?void 0:p.table),n.createElement(r.Thead,Object.assign({},h?{position:"sticky",top:0,bg:"white",zIndex:1}:{}),P.getHeaderGroups().map(e=>n.createElement(r.Tr,Object.assign({key:e.id,bg:r.useColorModeValue("initial","ebony-clay.700")},null==p?void 0:p.tableRow),e.headers.map(e=>{var t;return n.createElement(r.Th,Object.assign({key:e.id,colSpan:e.colSpan},null==p?void 0:p.tableColumnHeader),n.createElement(r.Flex,{"data-test-id":"CT_Container_TableHeader_"+e.id,textTransform:"capitalize",userSelect:"none",align:"center",gap:2},n.createElement(r.Text,null,b.flexRender(e.column.columnDef.header,e.getContext())),n.createElement(r.Box,{as:"span",cursor:e.column.getCanSort()?"pointer":"default","data-test-id":"CT_Container_SortingIcon_"+e.id,onClick:e.column.getToggleSortingHandler()},null!==(t=e.column.getCanSort()&&{asc:n.createElement(m.ChevronUpIcon,null),desc:n.createElement(m.ChevronDownIcon,null)}[e.column.getIsSorted()])&&void 0!==t?t:n.createElement(m.UpDownIcon,{h:2}))))})))),n.createElement(r.Tbody,Object.assign({},null==p?void 0:p.tableBody),P.getRowModel().rows.map(e=>n.createElement(r.Tr,Object.assign({"data-test-id":"6aZAeefGHBA2oG1wLuv-L",key:e.id},null==p?void 0:p.tableRow,{css:g.css`
|
2
|
+
&:last-child {
|
3
|
+
td {
|
4
|
+
border-bottom: none;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
`,onClick:()=>{_&&_(e.original)}}),e.getVisibleCells().map(e=>n.createElement(r.Td,Object.assign({key:e.id,fontSize:"text.sm",color:r.useColorModeValue("dark.800","dark.300")},null==p?void 0:p.tableCell),b.flexRender(e.column.columnDef.cell,e.getContext()))))))))});te.defaultProps={withSelectedRow:!1,overflowX:"scroll",pos:"relative",maxW:"100%",minH:400,w:"full",styles:void 0,isLoading:void 0,onSelectedRow:void 0,onSort:void 0,manualSorting:!1,sortingState:[],sortDescFirst:!1,headerSticky:!1,onRowClick:void 0};const re=()=>{const{colorMode:e}=i.useColorMode();return a.createElement(g.Global,{styles:`\n @charset "UTF-8";\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow, .react-datepicker__navigation-icon::before {\n border-color: ${"light"===e?"#6E6B7B":"#d0d1d2"};\n border-style: solid;\n border-width: 1px 1px 0 0;\n content: "";\n display: block;\n height: 7px;\n position: absolute;\n top: 13px;\n width: 7px;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n margin-left: -4px;\n position: absolute;\n width: 0;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n box-sizing: content-box;\n position: absolute;\n border: 8px solid transparent;\n height: 0;\n width: 1px;\n content: "";\n z-index: -1;\n border-width: 8px;\n left: -8px;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {\n border-bottom-color: #aeaeae;\n }\n\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {\n top: 0;\n margin-top: -8px;\n }\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n border-top: none;\n border-bottom-color: #f0f0f0;\n }\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {\n top: 0;\n }\n .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {\n top: -1px;\n border-bottom-color: #aeaeae;\n }\n\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {\n bottom: 0;\n margin-bottom: -8px;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {\n border-bottom: none;\n border-top-color: #fff;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {\n bottom: 0;\n }\n .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before {\n bottom: -1px;\n border-top-color: #aeaeae;\n }\n\n .react-datepicker-wrapper {\n display: inline-block;\n padding: 0;\n border: 0;\n width: 100%;\n }\n\n .react-datepicker {\n font-family: "inherit", helvetica, arial, sans-serif;\n font-size: 0.75;\n background-color: ${"light"===e?"#ffffff":"#283046"};\n color: ${"light"===e?"#000":"#d0d1d2"};\n filter: drop-shadow(0px 3px 10px rgba(0, 0, 0, 0.08));\n border-radius: 0.3rem;\n display: inline-block;\n position: relative;\n }\n\n .react-datepicker.inline {\n filter: none;\n }\n\n .react-datepicker--time-only .react-datepicker__triangle {\n left: 35px;\n }\n .react-datepicker--time-only .react-datepicker__time-container {\n border-left: 0;\n }\n .react-datepicker--time-only .react-datepicker__time,\n .react-datepicker--time-only .react-datepicker__time-box {\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n }\n\n .react-datepicker__triangle {\n position: absolute;\n left: 50px;\n }\n\n .react-datepicker-popper {\n z-index: 1;\n }\n .react-datepicker-popper[data-placement^=bottom] {\n padding-top: 10px;\n }\n .react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle, .react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle {\n left: auto;\n right: 50px;\n }\n .react-datepicker-popper[data-placement^=top] {\n padding-bottom: 10px;\n }\n .react-datepicker-popper[data-placement^=right] {\n padding-left: 8px;\n }\n .react-datepicker-popper[data-placement^=right] .react-datepicker__triangle {\n left: auto;\n right: 42px;\n }\n .react-datepicker-popper[data-placement^=left] {\n padding-right: 8px;\n }\n .react-datepicker-popper[data-placement^=left] .react-datepicker__triangle {\n left: 42px;\n right: auto;\n }\n\n .react-datepicker__header {\n text-align: center;\n background-color: ${"light"===e?"#ffffff":"#131620"};\n border-top-left-radius: 0.3rem;\n padding: 8px 0;\n position: relative;\n }\n .react-datepicker__header--time {\n padding-bottom: 8px;\n padding-left: 5px;\n padding-right: 5px;\n }\n .react-datepicker__header--time:not(.react-datepicker__header--time--only) {\n border-top-left-radius: 0;\n }\n .react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n border-top-right-radius: 0.3rem;\n }\n\n .react-datepicker__year-dropdown-container--select,\n .react-datepicker__month-dropdown-container--select,\n .react-datepicker__month-year-dropdown-container--select,\n .react-datepicker__year-dropdown-container--scroll,\n .react-datepicker__month-dropdown-container--scroll,\n .react-datepicker__month-year-dropdown-container--scroll {\n display: inline-block;\n margin: 0 2px;\n }\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--select {\n font-weight: 600;\n line-height: 22px;\n color: #111111;\n }\n\n .react-datepicker__current-month,\n .react-datepicker-time__header,\n .react-datepicker-year-header {\n margin-top: 0;\n color: ${"light"===e?"#111111":"#d0d1d2"};\n font-size: 0.75;\n }\n\n .react-datepicker-time__header {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n\n .react-datepicker__navigation {\n align-items: center;\n background: none;\n display: flex;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: 2px;\n padding: 0;\n border: none;\n z-index: 1;\n height: 32px;\n width: 32px;\n text-indent: -999em;\n overflow: hidden;\n }\n .react-datepicker__navigation--previous {\n left: 2px;\n }\n .react-datepicker__navigation--next {\n right: 2px;\n }\n .react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {\n right: 85px;\n }\n .react-datepicker__navigation--years {\n position: relative;\n top: 0;\n display: block;\n margin-left: auto;\n margin-right: auto;\n }\n .react-datepicker__navigation--years-previous {\n top: 4px;\n }\n .react-datepicker__navigation--years-upcoming {\n top: -4px;\n }\n .react-datepicker__navigation:hover *::before {\n border-color: #a6a6a6;\n }\n\n .react-datepicker__navigation-icon {\n position: relative;\n top: -1px;\n font-size: 20px;\n width: 0;\n }\n .react-datepicker__navigation-icon--next {\n left: -2px;\n }\n .react-datepicker__navigation-icon--next::before {\n transform: rotate(45deg);\n left: -7px;\n }\n .react-datepicker__navigation-icon--previous {\n right: -2px;\n }\n .react-datepicker__navigation-icon--previous::before {\n transform: rotate(225deg);\n right: -7px;\n }\n\n .react-datepicker__month-container {\n float: left;\n border-radius: 8px;\n }\n\n .react-datepicker__year {\n margin: 0.4rem;\n text-align: center;\n }\n .react-datepicker__year-wrapper {\n display: flex;\n flex-wrap: wrap;\n max-width: 180px;\n }\n .react-datepicker__year .react-datepicker__year-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n }\n\n .react-datepicker__month {\n margin: 0.4rem;\n text-align: center;\n }\n .react-datepicker__month .react-datepicker__month-text,\n .react-datepicker__month .react-datepicker__quarter-text {\n display: inline-block;\n width: 4rem;\n margin: 2px;\n }\n\n .react-datepicker__input-time-container {\n width: 100%;\n }\n .react-datepicker__input-time-container .react-datepicker-time__caption {\n width: 100%;\n display: inline-block;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container {\n width: 100%;\n display: inline-block;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input {\n width: 100%;\n display: inline-block;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input {\n width: auto;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time] {\n -moz-appearance: textfield;\n }\n .react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter {\n width: 100%;\n display: inline-block;\n }\n\n .react-datepicker__time-container {\n float: right;\n border-left: 1px solid #aeaeae;\n width: 85px;\n }\n .react-datepicker__time-container--with-today-button {\n display: inline;\n border: 1px solid #aeaeae;\n border-radius: 0.3rem;\n position: absolute;\n right: -72px;\n top: 0;\n }\n .react-datepicker__time-container .react-datepicker__time {\n position: relative;\n background: white;\n border-bottom-right-radius: 0.3rem;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {\n width: 85px;\n overflow-x: hidden;\n margin: 0 auto;\n text-align: center;\n border-bottom-right-radius: 0.3rem;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {\n list-style: none;\n margin: 0;\n height: calc(195px + (1.7rem / 2));\n overflow-y: scroll;\n padding-right: 0;\n padding-left: 0;\n width: 100%;\n box-sizing: content-box;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item {\n height: 30px;\n padding: 5px 10px;\n white-space: nowrap;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover {\n cursor: pointer;\n background-color: ${"light"===e?"#f0f0f0":"#131620"};\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {\n background-color: ${"light"===e?"#12784A":"#131620"};\n color: white;\n font-weight: bold;\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover {\n background-color: ${"light"===e?"#12784A":"#131620"};\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled {\n color: ${"light"===e?"#ccc":"#d0d1d2"};\n }\n .react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover {\n cursor: default;\n background-color: transparent;\n }\n\n .react-datepicker__week-number {\n color: ${"light"===e?"#ccc":"#d0d1d2"};\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n margin: 0.166rem;\n }\n .react-datepicker__week-number.react-datepicker__week-number--clickable {\n cursor: pointer;\n }\n .react-datepicker__week-number.react-datepicker__week-number--clickable:hover {\n border-radius: 0.3rem;\n background-color: ${"light"===e?"#f0f0f0":"#131620"};\n }\n\n .react-datepicker__day-names,\n .react-datepicker__week {\n white-space: nowrap;\n }\n\n .react-datepicker__day-names {\n margin-bottom: 0px;\n }\n\n .react-datepicker__day-name,\n .react-datepicker__day,\n .react-datepicker__time-name {\n color: ${"light"===e?"#000":"#d0d1d2"};\n display: inline-block;\n width: 1.7rem;\n line-height: 1.7rem;\n text-align: center;\n padding: 0.166rem;\n }\n\n .react-datepicker__month--selected, .react-datepicker__month--in-selecting-range, .react-datepicker__month--in-range,\n .react-datepicker__quarter--selected,\n .react-datepicker__quarter--in-selecting-range,\n .react-datepicker__quarter--in-range {\n border-radius: 0.3rem;\n background-color: ${"light"===e?"#12784A":"#131620"};\n color: #fff;\n }\n .react-datepicker__month--selected:hover, .react-datepicker__month--in-selecting-range:hover, .react-datepicker__month--in-range:hover,\n .react-datepicker__quarter--selected:hover,\n .react-datepicker__quarter--in-selecting-range:hover,\n .react-datepicker__quarter--in-range:hover {\n background-color: ${"light"===e?"#075331":"#131620"};\n }\n .react-datepicker__month--disabled,\n .react-datepicker__quarter--disabled {\n color: #ccc;\n pointer-events: none;\n }\n .react-datepicker__month--disabled:hover,\n .react-datepicker__quarter--disabled:hover {\n cursor: default;\n background-color: transparent;\n }\n\n .react-datepicker__day,\n .react-datepicker__month-text,\n .react-datepicker__quarter-text,\n .react-datepicker__year-text {\n cursor: pointer;\n }\n .react-datepicker__day:hover,\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover,\n .react-datepicker__year-text:hover {\n border-radius: 0.3rem;\n background-color: ${"light"===e?"#f0f0f0":"#131620"};\n }\n .react-datepicker__day--highlighted,\n .react-datepicker__month-text--highlighted,\n .react-datepicker__quarter-text--highlighted,\n .react-datepicker__year-text--highlighted {\n border-radius: 0.3rem;\n background-color: #3dcc4a;\n color: #fff;\n }\n .react-datepicker__day--highlighted:hover,\n .react-datepicker__month-text--highlighted:hover,\n .react-datepicker__quarter-text--highlighted:hover,\n .react-datepicker__year-text--highlighted:hover {\n background-color: #32be3f;\n }\n .react-datepicker__day--highlighted-custom-1,\n .react-datepicker__month-text--highlighted-custom-1,\n .react-datepicker__quarter-text--highlighted-custom-1,\n .react-datepicker__year-text--highlighted-custom-1 {\n color: magenta;\n }\n .react-datepicker__day--highlighted-custom-2,\n .react-datepicker__month-text--highlighted-custom-2,\n .react-datepicker__quarter-text--highlighted-custom-2,\n .react-datepicker__year-text--highlighted-custom-2 {\n color: green;\n }\n .react-datepicker__day--selected, .react-datepicker__day--in-selecting-range, .react-datepicker__day--in-range,\n .react-datepicker__month-text--selected,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--selected,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--selected,\n .react-datepicker__year-text--in-selecting-range,\n .react-datepicker__year-text--in-range {\n border-radius: 0.3rem;\n background-color: ${"light"===e?"#12784A":"#131620"};\n color: #fff;\n }\n .react-datepicker__day--selected:hover, .react-datepicker__day--in-selecting-range:hover, .react-datepicker__day--in-range:hover,\n .react-datepicker__month-text--selected:hover,\n .react-datepicker__month-text--in-selecting-range:hover,\n .react-datepicker__month-text--in-range:hover,\n .react-datepicker__quarter-text--selected:hover,\n .react-datepicker__quarter-text--in-selecting-range:hover,\n .react-datepicker__quarter-text--in-range:hover,\n .react-datepicker__year-text--selected:hover,\n .react-datepicker__year-text--in-selecting-range:hover,\n .react-datepicker__year-text--in-range:hover {\n background-color: ${"light"===e?"#075331":"#131620"};\n }\n .react-datepicker__day--keyboard-selected,\n .react-datepicker__month-text--keyboard-selected,\n .react-datepicker__quarter-text--keyboard-selected,\n .react-datepicker__year-text--keyboard-selected {\n border-radius: 0.3rem;\n background-color: ${"light"===e?"#075331":"#131620"};\n color: #fff;\n }\n .react-datepicker__day--keyboard-selected:hover,\n .react-datepicker__month-text--keyboard-selected:hover,\n .react-datepicker__quarter-text--keyboard-selected:hover,\n .react-datepicker__year-text--keyboard-selected:hover {\n background-color: ${"light"===e?"#075331":"#131620"};\n }\n .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range),\n .react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range),\n .react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range),\n .react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,\n .react-datepicker__month-text--in-range,\n .react-datepicker__quarter-text--in-range,\n .react-datepicker__year-text--in-range) {\n background-color: rgba(18, 120, 74, 0.1);\n color: ${"light"===e?"#000":"#d0d1d2"};\n }\n .react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range),\n .react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range),\n .react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range),\n .react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,\n .react-datepicker__month-text--in-selecting-range,\n .react-datepicker__quarter-text--in-selecting-range,\n .react-datepicker__year-text--in-selecting-range) {\n background-color: ${"light"===e?"#f0f0f0":"#131620"};\n color: ${"light"===e?"#000":"#d0d1d2"};\n }\n .react-datepicker__day--disabled,\n .react-datepicker__month-text--disabled,\n .react-datepicker__quarter-text--disabled,\n .react-datepicker__year-text--disabled {\n cursor: default;\n color: #ccc;\n }\n .react-datepicker__day--disabled:hover,\n .react-datepicker__month-text--disabled:hover,\n .react-datepicker__quarter-text--disabled:hover,\n .react-datepicker__year-text--disabled:hover {\n background-color: transparent;\n }\n\n .react-datepicker__month-text.react-datepicker__month--selected:hover, .react-datepicker__month-text.react-datepicker__month--in-range:hover, .react-datepicker__month-text.react-datepicker__quarter--selected:hover, .react-datepicker__month-text.react-datepicker__quarter--in-range:hover,\n .react-datepicker__quarter-text.react-datepicker__month--selected:hover,\n .react-datepicker__quarter-text.react-datepicker__month--in-range:hover,\n .react-datepicker__quarter-text.react-datepicker__quarter--selected:hover,\n .react-datepicker__quarter-text.react-datepicker__quarter--in-range:hover {\n background-color: ${"light"===e?"#12784A":"#131620"};\n }\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover {\n background-color: ${"light"===e?"#f0f0f0":"#131620"};\n }\n\n .react-datepicker__input-container {\n position: relative;\n display: inline-block;\n width: 100%;\n }\n\n .react-datepicker__year-read-view,\n .react-datepicker__month-read-view,\n .react-datepicker__month-year-read-view {\n border: 1px solid transparent;\n border-radius: 0.3rem;\n position: relative;\n }\n .react-datepicker__year-read-view:hover,\n .react-datepicker__month-read-view:hover,\n .react-datepicker__month-year-read-view:hover {\n cursor: pointer;\n }\n .react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow {\n border-top-color: #b3b3b3;\n }\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n transform: rotate(135deg);\n right: -16px;\n top: 5px;\n width: 5px;\n height: 5px;\n fill: #111111;\n\n }\n .react-datepicker__header:not(.react-datepicker__header--has-time-select) {\n background: ${"light"===e?"#F5F5F5":"inherit"} ;\n\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ${"light"===e?"#f0f0f0":"#131620"};\n position: absolute;\n width: 50%;\n left: 25%;\n top: 30px;\n z-index: 1;\n text-align: center;\n border-radius: 0.3rem;\n border: 1px solid #aeaeae;\n }\n .react-datepicker__year-dropdown:hover,\n .react-datepicker__month-dropdown:hover,\n .react-datepicker__month-year-dropdown:hover {\n cursor: pointer;\n }\n .react-datepicker__year-dropdown--scrollable,\n .react-datepicker__month-dropdown--scrollable,\n .react-datepicker__month-year-dropdown--scrollable {\n height: 150px;\n overflow-y: scroll;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n line-height: 20px;\n width: 100%;\n display: block;\n margin-left: auto;\n margin-right: auto;\n }\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type {\n border-top-left-radius: 0.3rem;\n border-top-right-radius: 0.3rem;\n }\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border-bottom-left-radius: 0.3rem;\n border-bottom-right-radius: 0.3rem;\n }\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: #ccc;\n }\n .react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,\n .react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,\n .react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming {\n border-bottom-color: #b3b3b3;\n }\n .react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,\n .react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,\n .react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous {\n border-top-color: #b3b3b3;\n }\n .react-datepicker__year-option--selected,\n .react-datepicker__month-option--selected,\n .react-datepicker__month-year-option--selected {\n position: absolute;\n left: 15px;\n }\n\n .react-datepicker__close-icon {\n cursor: pointer;\n background-color: transparent;\n border: 0;\n outline: 0;\n padding: 0 6px 0 0;\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n display: table-cell;\n vertical-align: middle;\n }\n .react-datepicker__close-icon::after {\n cursor: pointer;\n background-color: ${"light"===e?"#12784A":"#131620"};\n color: #fff;\n border-radius: 50%;\n height: 16px;\n width: 16px;\n padding: 2px;\n font-size: 12px;\n line-height: 1;\n text-align: center;\n display: table-cell;\n vertical-align: middle;\n content: "×";\n }\n\n .react-datepicker__today-button {\n background: #f0f0f0;\n border-top: 1px solid #aeaeae;\n cursor: pointer;\n text-align: center;\n font-weight: bold;\n padding: 5px 0;\n clear: left;\n }\n\n .react-datepicker__portal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.8);\n left: 0;\n top: 0;\n justify-content: center;\n align-items: center;\n display: flex;\n z-index: 2147483647;\n }\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 3rem;\n line-height: 3rem;\n }\n @media (max-width: 400px), (max-height: 550px) {\n .react-datepicker__portal .react-datepicker__day-name,\n .react-datepicker__portal .react-datepicker__day,\n .react-datepicker__portal .react-datepicker__time-name {\n width: 2rem;\n line-height: 2rem;\n }\n }\n .react-datepicker__portal .react-datepicker__current-month,\n .react-datepicker__portal .react-datepicker-time__header {\n font-size: 1.44rem;\n }\n\n /** injected styles **/\n .react-datepicker__day--outside-month {\n color: ${"light"===e?"#B9B9C3":"#4D4D4D"};\n }\n .react-datepicker__day.react-datepicker__day--in-range {\n border-radius: 0;\n background: rgba(18, 120, 74, 0.1);\n color: #12784A;\n }\n .react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day--in-range,\n .react-datepicker__day.react-datepicker__day--range-end.react-datepicker__day--in-range {\n background: #12784A;\n color: #fff;\n }\n .react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day--in-range {\n border-radius: 100px 0px 0px 100px;\n }\n .react-datepicker__day.react-datepicker__day--range-end.react-datepicker__day--in-range {\n border-radius: 0px 100px 100px 0px;\n }\n .react-datepicker__day.react-datepicker__day--range-start.react-datepicker__day.react-datepicker__day--range-end {\n border-radius: 100px;\n padding: 0;\n }\n .react-datepicker__day.react-datepicker__day--outside-month:empty {\n padding: 0;\n }\n .react-datepicker.inline .react-datepicker__header {\n background-color: inherit;\n }\n .react-datepicker__day--keyboard-selected, .react-datepicker__day--keyboard-selected:hover {\n background-color: inherit;\n color: inherit;\n }\n .react-datepicker__day--today, .react-datepicker__day--today:hover {\n color: #D82F23;\n }\n .react-datepicker__day--today:hover {\n background: #f0f0f0;\n }\n .react-datepicker__day--selected.react-datepicker__day--today {\n color: white;\n background: #12784A;\n }\n `})},ne=({value:e,onChange:t,label:n,rightAddon:o})=>{const[i,c]=a.useState(e||"00:00");return a.createElement(r.Flex,{flexDir:"column",alignItems:"center",justifyContent:"center",p:4,pt:0},a.createElement(r.Text,{mb:2},n),a.createElement(r.InputGroup,{alignItems:"center",justifyContent:"center"},a.createElement(r.Input,{onChange:e=>{var r,n;c((null===(r=e.target)||void 0===r?void 0:r.value)||"00:00"),t&&t((null===(n=e.target)||void 0===n?void 0:n.value)||"00:00")},type:"time",value:i,"data-test-id":"CT_Component_datepicker_input_time"}),o&&a.createElement(r.InputRightAddon,null,o)))};ne.displayName="DatepickerTimeInput",ne.defaultProps={value:"00:00",onChange:void 0,label:"Pilih Waktu",rightAddon:"WIB"};const ae=({id:e,label:t,error:n,isError:o,helperText:i,isRequired:c,withTime:l,value:d,name:s,onClear:u,showMonth:m,shortMonth:g,...b})=>{var _;const x=d?new Date(d):void 0,y=(null!==(_=b.dateFormat)&&void 0!==_?_:l)?"yyyy-MM-dd HH:mm":"yyyy-MM-dd",k=Y({}),v=a.createElement(a.Fragment,null,a.createElement(re,null),a.createElement(f,Object.assign({id:e,name:s,selected:x,customInput:a.createElement(r.Input,Object.assign({autoComplete:"off"},k)),dateFormat:y,showPopperArrow:!1,calendarClassName:h({inline:b.inline}),showMonthDropdown:m,useShortMonthInDropdown:!!m&&g},l?{timeInputLabel:"",showTimeInput:!0,customTimeInput:a.createElement(ne,null)}:{},b)));return b.inline?v:a.createElement(r.FormControl,{isRequired:c,"data-test-id":"CT_Component_datepicker_wrapper",isInvalid:o},t&&a.createElement(r.FormLabel,{fontSize:"text.sm"},t),a.createElement(r.InputGroup,null,v,a.createElement(r.InputRightElement,null,!d&&a.createElement(p.FiCalendar,null),d&&a.createElement(p.FiX,{"data-test-id":"bcpJJyCP0z_RIAGZXDU6s",onClick:u,cursor:"pointer"}))),o?a.createElement(r.FormErrorMessage,{fontSize:"text.xs",mt:1},n):a.createElement(r.FormHelperText,{fontSize:"text.xs",mt:1},i))};ae.defaultProps={id:void 0,isRequired:void 0,label:void 0,error:void 0,isError:void 0,helperText:void 0,withTime:void 0,onClear:void 0,selectsRange:void 0,shortMonth:!1,showMonth:!1};const oe=({onChange:e,min:t,max:n,...o})=>{const[i,c]=a.useState(null);return a.createElement(r.Box,{fontSize:"12px",lineHeight:"18px",css:g.css`
|
8
|
+
input[type='date']::-webkit-inner-spin-button,
|
9
|
+
input[type='date']::-webkit-calendar-picker-indicator {
|
10
|
+
display: none;
|
11
|
+
-webkit-appearance: none;
|
12
|
+
}
|
13
|
+
input[value=''] {
|
14
|
+
width: 58px;
|
15
|
+
}
|
16
|
+
`},a.createElement(r.Input,{"data-test-id":o["data-test-id"],type:"date",width:i?"51px":"58px",onChange:t=>{e(t.target.value),c(t.target.value)},p:"8px",min:t,max:n,required:!0,css:g.css`
|
17
|
+
border: 1px solid transparent;
|
18
|
+
|
19
|
+
&:focus,
|
20
|
+
&:hover {
|
21
|
+
border: 1px solid transparent;
|
22
|
+
}
|
23
|
+
|
24
|
+
&::placeholder {
|
25
|
+
color: #111111;
|
26
|
+
}
|
27
|
+
`,value:null!=i?i:""}))};oe.defaultProps={"data-test-id":""};const ie=_(r.Box)`
|
28
|
+
display: flex;
|
29
|
+
align-items: center;
|
30
|
+
width: fit-content;
|
31
|
+
border: 1px solid;
|
32
|
+
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
|
33
|
+
border-radius: 4px;
|
34
|
+
border-color: ${({isError:e})=>e?"var(--chakra-colors-danger-500)":"var(--chakra-colors-primary-500)"};
|
35
|
+
`,ce=({onChange:e,isError:t=!1,min:n="2020-01-01",max:o="2020-12-31"})=>{const[i,c]=a.useState([null,null]);return a.createElement(ie,{isError:t},a.createElement(oe,{"data-test-id":"CT_DatePickerMonth_StartDate",onChange:t=>{e(t,i[1]),c([t,i[1]])},min:n,max:o}),a.createElement(r.Box,null,"-"),a.createElement(oe,{"data-test-id":"CT_DatePickerMonth_EndDate",onChange:t=>{e(i[0],t),c([i[0],t])},min:n,max:o}))};ce.defaultProps={min:"2020-01-01",max:"2020-12-31",isError:!1};const le=({title:e,content:t,footer:n,isModalOverlay:o,width:i,isOverlayClickable:c,...l})=>a.createElement(r.Modal,Object.assign({},l),o&&a.createElement(r.ModalOverlay,{pointerEvents:c?"auto":"none"}),a.createElement(r.ModalContent,{bgColor:"neutral.50",fontFamily:"Poppins",width:i},a.createElement(r.ModalHeader,{bgColor:"neutral.200",py:2,px:4,borderTopRadius:"sm"},a.createElement(r.Text,{textStyle:"text.lg",fontWeight:"normal"},e)),a.createElement(r.ModalBody,{p:4,textStyle:"text.md"},t),a.createElement(r.ModalFooter,{bgColor:"neutral.200",p:4,borderBottomRadius:"sm"},n)));le.defaultProps={isModalOverlay:!0,width:"400px",isOverlayClickable:!0};const de=({url:e,imageUrl:t,height:n})=>e?a.createElement(r.Box,{as:"a",href:e,cursor:"pointer",target:"_self"},a.createElement(r.Image,{w:"100%",h:null!=n?n:9,maxH:null!=n?n:9,src:t,alt:t})):a.createElement(r.Image,{w:"100%",h:null!=n?n:9,maxH:null!=n?n:9,src:t,alt:t});de.defaultProps={url:void 0,height:void 0};const se=({color:e,brandColor:t,data:a,onLogout:o})=>{var i;const{isOpen:c,onToggle:l,onClose:d}=r.useDisclosure();return n.createElement(r.Popover,{placement:"bottom-end",isOpen:c,onClose:d},n.createElement(r.Box,{"data-test-id":"WE0UYbA93LOZy6S09IhDO",as:"button",cursor:"pointer",minW:0,_hover:{textDecor:"none"},m:0,onClick:l,color:e},n.createElement(r.HStack,null,n.createElement(r.VStack,{alignItems:"flex-end",spacing:0,ml:"2",color:e},n.createElement(r.Text,{textStyle:"text.xs",mb:1},null==a?void 0:a.email),n.createElement(r.Flex,{alignItems:"center"},(null==a?void 0:a.userRole)&&n.createElement(r.Text,{textStyle:"text.xs"},(null==a?void 0:a.userRole)||"user"),n.createElement(r.Box,{h:"3",mx:"1",borderLeft:"1px solid",borderColor:"neutral.400"}),"object"==typeof(null==a?void 0:a.office)?n.createElement(n.Fragment,null,n.createElement(r.Text,{textStyle:"text.xs"},a.office[0]),a.office.length>1&&n.createElement($,{ml:"1",pill:!0,variant:"neutral-light"},a.office.length-1,"+")):n.createElement(r.Text,{textStyle:"text.xs"},(null==a?void 0:a.office)||"office"))),n.createElement(r.PopoverTrigger,null,n.createElement(r.Avatar,{size:"sm",bg:t,color:"white",name:null!==(i=null==a?void 0:a.name)&&void 0!==i?i:null==a?void 0:a.email,border:"2px solid",_hover:{borderColor:"primary.50"}})))),n.createElement(r.PopoverContent,{bg:"white",maxW:200},n.createElement(r.PopoverArrow,{bg:"white"}),n.createElement(r.PopoverBody,{p:1},n.createElement(r.Flex,{"data-test-id":"gA7F9pucPX_Q3_dkgXIYZ",alignItems:"center",px:3,py:2,borderRadius:"sm",cursor:"pointer",_hover:{bg:r.useColorModeValue("primary.500","mirage.900"),color:"white"},onClick:o,textStyle:"text.xs"},n.createElement(p.FiPower,null),n.createElement(r.Text,{ml:2},"Logout")))))};se.defaultProps={brandColor:"primary.500",data:void 0,onLogout:void 0,color:void 0};const pe=()=>{const{colorMode:e,toggleColorMode:t}=r.useColorMode();return n.createElement(r.Box,{"data-test-id":"rhYuTDCiWkFqr96upiEEh",mx:5,onClick:t,cursor:"pointer"},n.createElement("light"===e?p.FiMoon:p.FiSun,{size:20}))};function ue(e){switch(e){case"DEVELOPMENT":return"Dev";case"STAGING":return"Staging";default:return null}}const me=({hideEnv:e,version:t,environment:a,onOpenModalRelease:o})=>n.createElement(n.Fragment,null,t&&n.createElement($,{fontSize:"8px","data-test-id":"dzl3esjhCphobaaIXpiUE",variant:"neutral-light",onClick:o,cursor:o?"pointer":"auto"},t),!e&&null!==ue(a)&&t&&n.createElement(r.Box,{background:"primary.50",color:"primary.500",fontSize:"text.xs",py:1,px:2.5,fontWeight:"bold",borderRadius:"md"},ue(a)));me.defaultProps={hideEnv:!1,environment:void 0,version:void 0,onOpenModalRelease:void 0};const ge=({brandColor:e,data:t,onLogout:a,onOpenModalRelease:o,hideSwitchMode:i,mainLogo:c,centerLogo:l,mainLogoSize:d,centerLogoSize:s=4,hideEnv:p=!1,urlLogo:u,children:m,profile:g,bg:b="white",...h})=>n.createElement(r.Flex,Object.assign({minH:15,bg:b,shadow:"raised",px:6,py:3,alignItems:"center"},h),n.createElement(r.Flex,{h:"auto",w:"full",alignItems:"center",justifyContent:g?"flex-end":"space-between",pos:"relative"},c&&n.createElement(r.Flex,{alignItems:"center"},n.createElement(de,{url:u,imageUrl:c,height:d}),m&&m),l&&n.createElement(r.HStack,{w:"fit-content",spacing:2,alignItems:"center",pos:"absolute",left:"50%",transform:"translate(-50%,0)"},n.createElement(de,{url:u,imageUrl:l,height:s}),n.createElement(me,{hideEnv:p,version:null==t?void 0:t.version,environment:null==t?void 0:t.environment,onOpenModalRelease:o})),g||n.createElement(r.Flex,{alignItems:"center"},!i&&n.createElement(pe,null),n.createElement(se,{color:h.color,brandColor:e,data:t,onLogout:a}))));ge.defaultProps={brandColor:void 0,data:void 0,onLogout:void 0,onOpenModalRelease:void 0,hideSwitchMode:!0,mainLogo:void 0,mainLogoSize:void 0,centerLogo:void 0,centerLogoSize:void 0,hideEnv:!1,urlLogo:void 0,profile:void 0};const be=a.forwardRef(({children:e,...t},n)=>a.createElement(r.ModalBody,Object.assign({ref:n,background:r.useColorModeValue("white","mirage.900")},t),e)),he=n.forwardRef((e,t)=>a.createElement(r.ModalCloseButton,Object.assign({ref:t,top:4,right:4,size:"sm",background:r.useColorModeValue("neutral.50","mirage.900")},e))),fe=n.forwardRef(({children:e,...t},n)=>a.createElement(r.ModalFooter,Object.assign({ref:n,background:r.useColorModeValue("neutral.200","mirage.900"),borderBottomRadius:"sm"},t),e)),_e=n.forwardRef(({children:e,...t},n)=>a.createElement(r.ModalHeader,Object.assign({ref:n,background:r.useColorModeValue("neutral.200","mirage.900"),borderTopRadius:"sm",textStyle:"text-lg"},t),e)),xe=new Map([["Order",p.FiShoppingBag],["Fulfillment",p.FiShoppingCart],["Transfer Stock",p.FiRepeat],["Stock",p.FiBox],["Product Database",p.FiLayers],["Purchasing",p.FiDollarSign],["Reseller",p.FiUsers],["Retur",p.FiRotateCcw],["Other",p.FiSettings],["Content",p.FiLayout],["Voucher",p.FiGift],["Customer",r.createIcon({displayName:"CustomerIcon",viewBox:"0 0 16 16",path:[a.createElement("path",{fill:"currentColor",fillRule:"inherit",d:"M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM.667 8a7.333 7.333 0 1 1 14.666 0A7.333 7.333 0 0 1 .667 8Z",clipRule:"inherit"}),a.createElement("path",{fill:"currentColor",d:"M12.416 12.698a1.997 1.997 0 0 0-1.75-1.031H5.334a2 2 0 0 0-1.864 1.277 7.722 7.722 0 0 1-.943-1.074 3.329 3.329 0 0 1 2.807-1.537h5.334a3.333 3.333 0 0 1 2.703 1.384c-.275.325-.594.66-.954.98Z"}),a.createElement("path",{fill:"currentColor",fillRule:"inherit",d:"M8 5.333A1.333 1.333 0 1 0 8 8a1.333 1.333 0 0 0 0-2.667ZM5.333 6.667a2.667 2.667 0 1 1 5.334 0 2.667 2.667 0 0 1-5.334 0Z",clipRule:"inherit"})]})]]),ye=({navigations:e,activePath:t,as:a,host:o,...i})=>n.createElement(r.Box,Object.assign({bg:r.useColorModeValue("white","ebony-clay.800"),boxShadow:"0 4px 20px 0 rgb(0 0 0 / 5%)",borderRadius:"md",overflowX:"auto"},i),n.createElement(r.Flex,{alignItems:"center",p:2},n.createElement(r.HStack,{spacing:2},null==e?void 0:e.map(e=>{const i=t.startsWith(e.navLink||""),c=i?"primary.500":void 0;return n.createElement(r.Popover,{key:e.title,trigger:"hover",placement:"bottom-start"},({isOpen:l})=>n.createElement(n.Fragment,null,n.createElement(r.PopoverTrigger,null,n.createElement(r.Box,{display:"flex",alignItems:"center",borderRadius:"md",cursor:"pointer",_hover:{backgroundColor:i?c:r.useColorModeValue("dove-gray.50","transparent")},backgroundColor:l&&!i?r.useColorModeValue("dove-gray.50","transparent"):c,color:i?"white":"inherit",p:2},n.createElement(r.Icon,{as:xe.get(e.title),mr:2}),n.createElement(r.Text,{whiteSpace:"nowrap",fontSize:"text.sm",fontWeight:400},e.title),n.createElement(m.ChevronDownIcon,{ml:2}))),e.children&&n.createElement(r.Portal,null,n.createElement(r.Box,{zIndex:"popover"},n.createElement(r.PopoverContent,{key:e.title,bg:r.useColorModeValue("white","ebony-clay.800"),maxW:250,border:"none",borderRadius:"md",boxShadow:"0 5px 25px rgb(0 0 0 / 10%)"},e.children.map(({title:i,navHost:c,navLink:l})=>{const d=t===l;return n.createElement(r.Link,{as:o===c?a:void 0,key:i,href:c?`${c}${l}`:l,_hover:{textDecoration:"none"}},n.createElement(r.Box,{display:"flex",position:"relative",alignItems:"center",cursor:"pointer",transition:"padding 0.35s ease 0s",_hover:{backgroundColor:r.useColorModeValue("dove-gray.50","mirage.900"),color:r.useColorModeValue("primary.500","dove-gray.600"),px:5,py:4,_first:{borderTopRadius:"md"},_last:{borderBottomRadius:"md"}},color:d?"primary.500":"inherit",css:g.css`
|
36
|
+
border-spacing: 4px;
|
37
|
+
`,px:6,py:4},n.createElement(r.Icon,{as:xe.get(e.title),mr:3}),n.createElement(r.Text,{fontSize:"text.sm"},i),d&&n.createElement(r.Box,{width:.5,height:8,position:"absolute",bg:"primary.500",right:0,zIndex:"popover"})))}))))))}))));ye.defaultProps={navigations:void 0,as:"a",host:void 0};const ke=({navigations:e,isFetched:t,pathname:n,asPath:o,mappingIcon:i,...c})=>{const d=e=>"localhost"===window.location.hostname?e.navLink:e.navHost+e.navLink;return a.createElement(r.Box,Object.assign({hidden:t&&void 0===e,backgroundRepeat:"repeat-x","data-test-id":"CT_component_navigation_cms"},c),a.createElement(r.Flex,{bg:"white",w:"full",rounded:"md",flexWrap:"wrap",alignItems:"center",shadow:"raised",gap:1,px:4,py:2},null==e?void 0:e.map(e=>{var t;const c=e.children.filter(e=>null==o?void 0:o.includes(e.navLink)),s=null==n?void 0:n.startsWith(null===(t=c[0])||void 0===t?void 0:t.navLink),p=s?"primary.500":void 0;return a.createElement(r.Popover,{isLazy:!0,key:e.id,trigger:"hover",placement:"bottom-start",openDelay:100,closeDelay:100},({isOpen:t,onClose:o})=>a.createElement(a.Fragment,null,a.createElement(r.PopoverTrigger,null,a.createElement(r.Button,{h:7.5,p:2,size:"sm",variant:"ghost","data-test-id":`CT_component_navigation_button-${e.title}${s?"-active":""}`,_hover:{backgroundColor:s?p:"neutral.400"},backgroundColor:t&&!s?"neutral.400":p,color:s?"primary.50":"black.high",leftIcon:i.get(e.title),rightIcon:a.createElement(l.ChevronDown,{size:4,color:"inherit"})},e.title)),e.children&&a.createElement(r.PopoverContent,{border:"none",shadow:"raised",py:1,width:240},e.children.map(t=>a.createElement(r.Link,{key:t.id,href:d(t),display:"flex",alignItems:"center",transition:"padding 0.35s ease 0s",_hover:{pl:6},_first:{borderTopRadius:"md"},_last:{borderBottomRadius:"md"},py:3,px:4,color:null!=n&&n.startsWith(t.navLink)?"primary.800":"black.high",onClick:o,background:null!=n&&n.startsWith(t.navLink)?"primary.50":"transparent","data-test-id":"CT_component_navigation_link-"+e.id},i.get(e.title),a.createElement(r.Text,{textStyle:"text-sm",ml:3},t.title))))))})))};ke.defaultProps={navigations:void 0};const ve=r.forwardRef(({className:e,style:t,isActive:n,children:o,...i},c)=>{const l=r.useColorModeValue("neutral.300","mirage.900"),d=r.useColorModeValue("black.high","primary.300"),s=r.useColorModeValue("secondary.50","primary.500"),p=r.useColorModeValue("primary.500","white");return a.createElement(r.Button,Object.assign({"data-test-id":"Pagination-Button",ref:c,className:e,style:t,borderRadius:"full",fontWeight:"semibold",m:0,px:3,py:2,h:8,minW:"auto",width:8,background:n?"primary.500":l,color:n?"white":d,_hover:n?{}:{background:s,color:p},_disabled:{background:r.useColorModeValue("neutral.300","mirage.900"),color:"neutral.600",pointerEvents:"none"}},i),o)});ve.displayName="PaginationButton",ve.defaultProps={isActive:void 0};const we=({color:e,isDisabled:t,onClick:a,visuallyHidden:o,icon:i})=>n.createElement(ve,{"data-test-id":"DLVCc_fBK35spHm5WxjcJ",color:e,isDisabled:t,onClick:a},n.createElement(r.VisuallyHidden,null,o),i);we.defaultProps={color:void 0,isDisabled:void 0,onClick:void 0,visuallyHidden:void 0,icon:void 0};const Ce=({className:e,current:t,total:a,onSelect:o})=>{const i=r.useColorModeValue("secondary.100","primary.500"),c=r.useColorModeValue("primary.500","secondary.100"),l=1===t,d=l?i:c,s=t===a,p=s?i:c,u=e=>{o&&o(e)};return n.createElement(r.Box,{className:e,display:"inline-flex",alignItems:"center"},n.createElement(r.Box,{mr:1},n.createElement(we,{"data-test-id":"Pagination-Button",color:d,isDisabled:l,onClick:()=>u(1),visuallyHidden:"First Page",icon:n.createElement(m.ArrowLeftIcon,{width:2})})),n.createElement(r.Box,{bg:"neutral.300",borderRadius:"full"},n.createElement(we,{"data-test-id":"Pagination-Button",color:d,isDisabled:l,onClick:()=>u(t-1),visuallyHidden:"Previous Page",icon:n.createElement(m.ChevronLeftIcon,null)}),(()=>{const e=[];let r,n;5<a?(r=Math.max(Math.min(t-Math.floor(2.5),a-5+1),1),n=r+5-1):(r=1,n=a);for(let t=r;t<=n;++t)e.push(t);return e})().map(e=>n.createElement(ve,{"data-test-id":"Pagination-Button",key:e,isActive:e===t,onClick:()=>"number"==typeof e?u(e):null},n.createElement(r.Text,{scale:300,fontSize:"text.sm",lineHeight:18,fontWeight:500},e))),n.createElement(we,{"data-test-id":"Pagination-Button",color:p,isDisabled:s,onClick:()=>u(t+1),visuallyHidden:"Next Page",icon:n.createElement(m.ChevronRightIcon,null)})),n.createElement(r.Box,{ml:1},n.createElement(we,{"data-test-id":"Pagination-Button",color:p,isDisabled:s,onClick:()=>u(a),visuallyHidden:"Last Page",icon:n.createElement(m.ArrowRightIcon,{width:2})})))};Ce.defaultProps={className:void 0,onSelect:void 0},Ce.displayName="Pagination";const Ee=({limit:e,label:t="Baris per halaman:",items:a,onChange:o,...i})=>{const[c,l]=n.useState(e);return n.createElement(r.Box,{display:"flex",flexDirection:"row",alignItems:"center"},n.createElement(r.Text,Object.assign({fontSize:"text.sm",lineHeight:18,color:r.useColorModeValue("neutral.900","white")},i),t),n.createElement(r.Select,{textAlign:"center",size:"xs",outline:"none",border:"none",boxShadow:"none",width:18,icon:n.createElement(p.FiChevronDown,null),_focusVisible:{boxShadow:"none"},onChange:e=>{const t=Number(e.target.value);o(t),l(t)},value:c},a.map(e=>n.createElement("option",{key:e,value:e},e))))};Ee.defaultProps={limit:10,label:void 0};const Se=({isError:e=!1,helpText:t="",errorText:n="",children:o,isDisabled:i,...c})=>a.createElement(r.Box,null,a.createElement(r.Box,{display:"flex"},a.createElement(r.Radio,Object.assign({variant:e?"errors":"unstyled"},c,{isDisabled:i}),o&&a.createElement(r.Text,{as:"span",display:"block",textStyle:"text.sm",color:i?"black.medium":"black.high"},o))),a.createElement(r.Box,{mt:"5px",ml:"24px"},e?a.createElement(r.Text,{as:"span",display:"block",textStyle:"text.xs",color:"danger.500"},n):a.createElement(r.Text,{as:"span",display:"block",textStyle:"text.xs",color:"black.medium"},t)));Se.displayName="Radio",Se.defaultProps={isError:!1,helpText:"",errorText:""};const Pe=({children:e,label:t,helpText:n,isError:o,errorMessage:i,...c})=>a.createElement(Z,Object.assign({},c,{label:t,leftHelperText:n,isError:o,errorMessage:i}),a.createElement(r.Box,{mt:"12px"},a.createElement(r.RadioGroup,Object.assign({},c),a.createElement(r.Stack,{spacing:[1,"16px"],direction:["column","row"]},e))));Pe.displayName="RadioGroup",Pe.defaultProps={helpText:"",isError:!1,errorMessage:""};const Oe=({children:e})=>a.createElement(r.Box,null,e);Oe.defaultProps={isError:!1};const je={fontSize:"0.75rem",lineHeight:"1.125rem",letterSpacing:0};function Me(e,t){const r=(e=!1,t=!1)=>"0 0 0 1px "+(t&&e||t?"danger.500":e?"primary.500":"neutral.400");return{control:(n,a)=>"dark"===e?{...n,...je,background:"transparent",color:"primary.300",borderColor:"secondary.500",boxShadow:a.isFocused?"none":"inherit"}:{...n,...je,borderWidth:0,boxShadow:r(a.isFocused,t)},option:(t,{isSelected:r})=>"dark"===e?{...t,...je,background:r?"primary.700":"dark.800",color:"white"}:{...t,...je},menu:t=>"dark"===e?{...t,...je,background:"dark.800",zIndex:5}:{...t,...je,zIndex:5},singleValue:t=>"dark"===e?{...t,...je,color:"white"}:{...t,...je},input:t=>"dark"===e?{...t,...je,color:"white"}:{...t,...je},dropdownIndicator:t=>"dark"===e?{...t,...je,color:"secondary.500"}:{...t,...je},indicatorSeparator:t=>"dark"===e?{...t,...je,backgroundColor:"secondary.500"}:{...t,...je},placeholder:e=>({...e,...je,color:"black.low"})}}const Te=e=>({...e,colors:{...e.colors,primary:"primary.500",primary25:"primary.50",primary50:"primary.100",primary75:"primary.200"}}),Ie=r.forwardRef((function(e,t){const i=r.useMultiStyleConfig("Switch",e),{spacing:c="0.5rem",children:d,...s}=r.omitThemingProps(e),{state:p,getInputProps:u,getCheckboxProps:m,getRootProps:g,getLabelProps:b}=r.useCheckbox(s),h=n.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),f=n.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",width:200,...i.track}),[i.track]),_=n.useMemo(()=>({userSelect:"none",marginStart:c,...i.label}),[c,i.label]),x=e=>({sm:3,md:4,lg:5}[e]);return a.createElement(r.chakra.label,Object.assign({},g(),{display:"flex",alignItems:"center",className:o.cx("chakra-switch",e.className),__css:h}),a.createElement("input",Object.assign({"data-test-id":"",className:"chakra-switch__input"},u({},t))),a.createElement(r.chakra.span,Object.assign({},m(),{className:"chakra-switch__track",pos:"relative",__css:f}),a.createElement(r.Flex,{gap:2,pos:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},a.createElement(l.Check,{color:"white",size:x(e.size)}),a.createElement(l.Close,{color:p.isDisabled?"neutral.600":"neutral.900",size:x(e.size)})),a.createElement(r.chakra.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":o.dataAttr(p.isChecked),"data-hover":o.dataAttr(p.isHovered)})),d&&a.createElement(r.chakra.span,Object.assign({className:"chakra-switch__label",color:p.isDisabled?"black.low":"black.high"},b(),{__css:_}),d))}));Ie.defaultProps={size:"sm"};const Re=r.forwardRef((e,t)=>{var a,o;const i=r.useTab({...e,ref:t}),c=!!i["aria-selected"],l=r.useMultiStyleConfig("Tabs",i);return n.createElement(r.Button,Object.assign({"data-test-id":e["data-test-id"],p:4,fontSize:"text.md",_selected:{borderColor:"primary.500",color:"primary.500",_hover:{"& .chakra-badge":{bg:"primary.500"},color:"primary.500"}},color:"black.medium",_focus:{bg:"none"},_hover:{"& .chakra-badge":{bg:"primary.400"},color:"primary.400"},__css:l.tab},i),n.createElement(r.Flex,{alignItems:"center"},null===(a=e.leftAddon)||void 0===a?void 0:a.call(e,{isSelected:c}),i.children,null===(o=e.rightAddon)||void 0===o?void 0:o.call(e,{isSelected:c})))}),Ae=({onHandleUploadFile:e,onHandleRejections:t,accept:a,multiple:o,selected:i,maxFiles:c=1,renderError:l,validator:d,...s})=>{const[p,u]=n.useState(),[m,g]=n.useState(i||!1),b=n.useCallback(t=>{t.length>0&&(null==e||e(t),o||(g(!0),u(t[0])))},[o,e]),{getRootProps:h,getInputProps:f,isDragActive:_,fileRejections:x}=C.useDropzone({onDrop:b,accept:a,maxFiles:c,multiple:o,validator:d});n.useEffect(()=>{x.length>0&&t&&t(x)},[x,t]);const y=n.useMemo(()=>{const e=x.length>0;return e&&g(!1),e},[x]);return n.useEffect(()=>{g(null!=i&&i)},[i]),n.createElement(r.Stack,{direction:"column"},n.createElement(r.Flex,Object.assign({minH:200,border:"1px dashed",borderColor:y?"danger.500":"primary.500",alignItems:"center",justifyContent:"center",cursor:"pointer"},s,h()),n.createElement("input",Object.assign({},f())),_?n.createElement(r.Text,null,"Drop file disini..."):n.createElement(r.Flex,{flexDirection:"column",alignItems:"center",color:y?"danger.500":"primary.500"},!o&&m&&n.createElement(r.Heading,{fontWeight:400,fontSize:"18px",lineHeight:28,color:"black.high",mb:2},null==p?void 0:p.name),!m&&n.createElement(r.Heading,{fontWeight:400,fontSize:"18px",lineHeight:28,mb:2},"Upload File"),n.createElement(r.Text,null,m?"(Klik atau drag untuk mengganti file)":"(Klik atau drag untuk input file)"))),null==l?void 0:l(x))};Ae.defaultProps={onHandleUploadFile:void 0,onHandleRejections:void 0,renderError:void 0,selected:!1};const{definePartsStyle:Be,defineMultiStyleConfig:ze}=S.createMultiStyleConfigHelpers(E.accordionAnatomy.keys),De=ze({baseStyle:Be({container:S.defineStyle({border:"none"}),button:S.defineStyle({height:14,transitionProperty:"common",transitionDuration:"normal",gap:4,fontSize:"text.md",bg:"neutral.50",_focusVisible:{bg:"neutral.100"},_hover:{bg:"neutral.100"},_disabled:{opacity:.4,cursor:"not-allowed"},py:2,px:4,position:"relative"}),panel:S.defineStyle({pt:"2",px:"4",pb:"5"}),icon:S.defineStyle({fontSize:"1.25em"})})}),{definePartsStyle:Fe,defineMultiStyleConfig:He}=S.createMultiStyleConfigHelpers(E.alertAnatomy.keys),Le=S.cssVar("alert-fg"),qe=S.cssVar("alert-bg"),Ne=He({baseStyle:Fe(e=>({container:{bg:qe.reference,px:"4",py:"2",borderRadius:"sm"},title:{fontWeight:"regular",textStyle:"text.sm",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Le.reference,flexShrink:0,marginEnd:"3",w:"4",h:"4"},action:{color:"neutral"===e.colorScheme&&"light"===e.variant?"primary.500":"inherit","& +.chakra-alert__close":{ml:"3"}},close:{color:Le.reference,w:"4",h:"4"},spinner:{color:Le.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}})),variants:{light:Fe(e=>{const{colorScheme:t}=e,r=function(e){const{colorScheme:t}=e;return{light:"neutral"===t?`colors.${t}.300`:`colors.${t}.50`}}(e);return{container:{[Le.variable]:`colors.${t}.700`,[qe.variable]:r.light,color:Le.reference}}}),solid:Fe(e=>{const{colorScheme:t}=e;return{container:{[Le.variable]:"colors.white.high",[qe.variable]:"neutral"===t?`colors.${t}.700`:`colors.${t}.500`}}})},defaultProps:{variant:"light",colorScheme:"info"}}),We=S.defineStyleConfig({baseStyle:{fontSize:"body.1",fontWeight:"normal",px:4,py:2.5,borderRadius:"sm",_disabled:{opacity:1,bg:"neutral.300",color:"black.low"},_hover:{_disabled:{bg:"neutral.300",color:"black.low"}}},sizes:{lg:e=>{const{variant:t}=e;return"icon"===t?{h:10,w:10,p:0}:{fontSize:"text.xl",h:12,px:4,py:2.5}},md:e=>{const{variant:t}=e;return"icon"===t?{h:9,w:9,p:0}:{fontSize:"text.md",h:9,px:3,py:"7px"}},sm:e=>{const{variant:t}=e;return"icon"===t?{h:"26px",w:"26px",p:0}:{fontSize:"text.sm",h:"26px",lineHeight:4,px:2,py:"5px"}}},variants:{primary:e=>{const{isLoading:t}=e;return t?{_disabled:{bg:"primary.500"},_hover:{_disabled:{bg:"primary.500"}}}:{color:"white.high",bg:"primary.500",_hover:{bg:"primary.600"},_active:{bg:"primary.700"}}},secondary:e=>{const{isLoading:t}=e,r={color:"primary.500",borderWidth:1,borderStyle:"inside",bg:"white.high",borderColor:"primary.500",_hover:{bg:"primary.50"},_active:{bg:"primary.100"},_disabled:{border:0},".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"}},n={...r,_disabled:{bg:"white.high"},_hover:{_disabled:{bg:"white.high"}}};return t?n:r},tertiary:e=>{const{isLoading:t}=e,r={color:"primary.500",_hover:{bg:"primary.50"},_active:{bg:"primary.100"}},n={...r,_disabled:{bg:"transparent"},_hover:{_disabled:{bg:"transparent"}}};return t?n:r},danger:e=>{const{isLoading:t}=e,r={bg:"danger.500",color:"white.high",_hover:{bg:"danger.600"},_active:{bg:"danger.700"}},n={...r,_disabled:{bg:"danger.500"},_hover:{_disabled:{bg:"danger.500"}}};return t?n:r},"outline-danger":e=>{const{isLoading:t}=e,r={color:"danger.500",borderWidth:1,borderStyle:"inside",bg:"white.high",borderColor:"danger.500",_hover:{bg:"danger.50"},_active:{bg:"danger.100"},_disabled:{border:0}},n={...r,_disabled:{bg:"white.high"},_hover:{_disabled:{bg:"white.high"}}};return t?n:r},link:{bg:"transparent",color:"primary.500",_disabled:{opacity:"1",bg:"transparent",color:"black.medium"},_hover:{_disabled:{bg:"transparent",color:"black.medium"}}},icon:{bg:"neutral.50",minW:0,borderColor:"neutral.200",borderWidth:"1px",_active:{bg:"neutral.500",borderColor:"neutral.50"},_disabled:{bg:"neutral.500",opacity:.3,borderColor:"neutral.50"},_hover:{bg:"neutral.400",_disabled:{bg:"neutral.500",opacity:.3,borderColor:"neutral.50"}}}},defaultProps:{size:"md",variant:"primary",colorScheme:"primary"}}),Ve=S.defineStyleConfig({baseStyle:e=>({shadow:e.withShadow?"raised":"none",borderRadius:e.isRounded?"sm":"none"})}),{definePartsStyle:$e,defineMultiStyleConfig:Ge}=r.createMultiStyleConfigHelpers(E.checkboxAnatomy.keys),Ue=Ge({baseStyle:$e({control:{borderRadius:"sm",w:4,h:4,border:"1px solid"},icon:{color:"neutral.50"},label:{textStyle:"text.sm",color:"black.high",ml:2},_disabled:{background:"neutral.200",border:"0",borderColor:"neutral.500",cursor:"not-allowed"}}),variants:{errors:$e({control:{borderColor:"danger.500",_checked:{borderColor:"danger.500",backgroundColor:"danger.500",_hover:{borderColor:"danger.600",backgroundColor:"danger.600"}},_indeterminate:{borderColor:"danger.500",backgroundColor:"danger.500"}},label:{textStyle:"text.xs"},icon:{fontSize:"8px"}}),unstyled:$e({control:{borderColor:"neutral.600",_checked:{borderColor:"primary.500",backgroundColor:"primary.500",_hover:{borderColor:"primary.600",backgroundColor:"primary.600"},_disabled:{backgroundColor:"primary.500",borderColor:"primary.500",opacity:.3}},_disabled:{backgroundColor:"neutral.200",borderColor:"neutral.200"},_indeterminate:{borderColor:"primary.500",backgroundColor:"primary.500",_disabled:{backgroundColor:"primary.500",borderColor:"primary.500",opacity:.3}}},label:{textStyle:"text.xs",_disabled:{opacity:1}},icon:{fontSize:"8px"}})},defaultProps:{variant:"unstyled"}}),Xe=S.defineStyleConfig({baseStyle:e=>{const{isDisabled:t,isActive:r}=e;let n={color:"primary.500",textStyle:"text.sm",borderRadius:"2xl",borderWidth:"1px",borderColor:"primary.500",bg:"white.high",px:3,py:1,cursor:"default",_hover:{bg:"primary.50"}};if(r){const e={bg:"primary.500",color:"white.high",_hover:{bg:"primary.500"}};n={...n,...e}}if(t){const e={bg:"neutral.200",color:"black.low",borderColor:"neutral.200",cursor:"not-allowed",_hover:{bg:"neutral.200"}};n={...n,...e}}return{...n}},sizes:{sm:{textStyle:"text.sm"},md:{textStyle:"text.md",py:2}},defaultProps:{size:"sm"}}),Ze=S.defineStyleConfig({baseStyle:S.defineStyle({fontSize:"field.sm",fontWeight:"normal",marginEnd:1,mb:1})}),{definePartsStyle:Qe,defineMultiStyleConfig:Ke}=S.createMultiStyleConfigHelpers(E.inputAnatomy.keys),Ye=Qe({field:{width:"100%",minWidth:0,outline:0,px:2,py:2.5,paddingInlineStart:2,paddingInlineEnd:2,position:"relative",appearance:"none",color:"black.high",_disabled:{bg:"neutral.300",border:0,cursor:"not-allowed",opacity:1,boxShadow:"none",color:"black.medium"},_placeholder:{color:"black.low"}}}),Je={lg:S.defineStyle({fontSize:"text.lg",h:12,borderRadius:"sm"}),md:S.defineStyle({fontSize:"text.md",h:10,borderRadius:"sm"}),sm:S.defineStyle({fontSize:"text.sm",h:9,borderRadius:"sm"})},et=Ke({baseStyle:Ye,sizes:{lg:Qe({field:Je.lg,addon:Je.lg}),md:Qe({field:Je.md,addon:Je.md}),sm:Qe({field:Je.sm,addon:Je.sm})},variants:{outline:Qe(e=>({field:{border:0,outline:0,bg:P.mode("white","inherit")(e),color:P.mode("inherit","white")(e),_invalid:{boxShadow:"none"},_focusVisible:{zIndex:1,boxShadow:"none"}}})),unstyled:Qe({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"sm",variant:"outline"}}),tt=g.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),rt=S.defineStyleConfig({baseStyle:e=>{const t=(e=>{if(!e)return"var(--chakra-colors-white-high)";const t=e.split(".");let r;switch(t.length){case 1:r=t[0];break;case 2:r=`var(--chakra-colors-${t[0]}-${t[1]})`;break;default:r="var(--chakra-colors-white-high)"}return"primary"===e?"var(--chakra-colors-primary-600)":"danger"===e?"var(--chakra-colors-danger-500)":"warning"===e?"var(--chakra-colors-warning-700)":r})(e.color);return{borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",animation:tt+" 1s linear infinite",background:`conic-gradient(from 180deg at 50% 50%, ${t} 0deg, rgba(217, 217, 217, 0) 360deg);`,":before":{content:"''",display:"block",borderRadius:"50%",width:"6px",height:"6px",position:"absolute",bottom:0,background:t}}},sizes:{xs:{width:"12px",height:"12px",WebkitMask:"radial-gradient(farthest-side,#0000 calc(100% - 1.4px),#000 0);",":before":{width:"1.4px",height:"1.4px"}},sm:{width:"16px",height:"16px",WebkitMask:"radial-gradient(farthest-side,#0000 calc(100% - 1.87px),#000 0);",":before":{width:"1.87px",height:"1.87px"}},md:{width:"24px",height:"24px",WebkitMask:"radial-gradient(farthest-side,#0000 calc(100% - 2.8px),#000 0);",":before":{width:"2.8px",height:"2.8px"}},lg:{width:"50px",height:"50px",WebkitMask:"radial-gradient(farthest-side,#0000 calc(100% - 5.83px),#000 0);",":before":{width:"5.83px",height:"5.83px"}},xl:{width:"75px",height:"75px",WebkitMask:"radial-gradient(farthest-side,#0000 calc(100% - 8.75px),#000 0);",":before":{width:"8.75px",height:"8.75px"}},xxl:{width:"100px",height:"100px",WebkitMask:"radial-gradient(farthest-side,#0000 calc(100% - 11.67px),#000 0);",":before":{width:"11.67px",height:"11.67px"}}},defaultProps:{size:"lg"}}),{definePartsStyle:nt}=S.createMultiStyleConfigHelpers(E.popoverAnatomy.keys),at={baseStyle:e=>nt({popper:{background:P.mode("white","inherit")(e)}})},{definePartsStyle:ot,defineMultiStyleConfig:it}=r.createMultiStyleConfigHelpers(E.radioAnatomy.keys),ct=it({baseStyle:ot({control:{border:"1px solid",width:"16px",height:"16px"},label:{marginLeft:"8px",textStyle:"text.sm",color:"black.high",_disabled:{opacity:1,color:"black.medium"}}}),variants:{errors:ot({control:{borderColor:"danger.500",_checked:{borderColor:"danger.500",bg:"white",_before:{h:"10px",w:"10px",bg:"danger.500"},_hover:{borderColor:"danger.500",bg:"neutral.200"},_disabled:{borderColor:"danger.500",bg:"white.high",_before:{h:"10px",w:"10px",bg:"primary.500",opacity:.3}}},_disabled:{borderColor:"danger.500",bg:"neutral.200"}},label:{fontSize:"12px"}}),unstyled:ot({control:{borderColor:"neutral.600",_checked:{borderColor:"primary.500",bg:"white",_before:{h:"10px",w:"10px",bg:"primary.500"},_hover:{borderColor:"primary.500",bg:"gray.200"},_disabled:{borderColor:"primary.500",bg:"white.high",opacity:.3,_before:{h:"10px",w:"10px",bg:"primary.500"}}},_disabled:{borderColor:"neutral.200",bg:"neutral.200"}},label:{fontSize:"12px"}})},defaultProps:{variant:"unstyled"}}),{defineMultiStyleConfig:lt,definePartsStyle:dt}=S.createMultiStyleConfigHelpers(E.switchAnatomy.keys),st=P.cssVar("switch-track-width"),pt=P.cssVar("switch-track-height"),ut=P.cssVar("switch-track-diff"),mt=P.calc.subtract(st,pt),gt=P.cssVar("switch-thumb-x"),bt=S.defineStyle({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[pt.reference],height:[pt.reference],_checked:{transform:`translateX(${gt.reference})`}}),ht=lt({baseStyle:dt(()=>({container:{[ut.variable]:mt,[gt.variable]:ut.reference,_rtl:{[gt.variable]:P.calc(ut).negate().toString()}},track:{bg:"neutral.400",p:1,_checked:{bg:"primary.500",_disabled:{bg:"neutral.600"}},_disabled:{bg:"neutral.500",opacity:"100%"}},thumb:bt})),sizes:{sm:dt({container:{[st.variable]:"1.875rem",[pt.variable]:"0.75rem"},thumb:{[st.variable]:"0.75rem",[pt.variable]:"0.75rem"}}),md:dt({container:{[st.variable]:"2.375rem",[pt.variable]:"1rem"},thumb:{[st.variable]:"1rem",[pt.variable]:"1rem"}}),lg:dt({container:{[st.variable]:"3.25rem",[pt.variable]:"1.375rem"},thumb:{[st.variable]:"1.375rem",[pt.variable]:"1.375rem"}})},defaultProps:{size:"md"}}),{defineMultiStyleConfig:ft,definePartsStyle:_t}=S.createMultiStyleConfigHelpers(E.tableAnatomy.keys),xt=_t({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"semibold",textTransform:"uppercase",letterSpacing:"normal",textAlign:"start",height:"50px",color:P.mode("neutral.900","white"),fontSize:"text.sm",lineHeight:"18px"},td:{textAlign:"start",height:"56px"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),yt=S.defineStyle({"&[data-is-numeric=true]":{textAlign:"end"}}),kt=ft({baseStyle:xt,variants:{simple:_t(e=>{const{colorScheme:t}=e;return{th:{color:P.mode("gray.600","gray.400")(e),borderBottom:"1px",borderColor:P.mode(t+".100",t+".700")(e),...yt},td:{borderBottom:"1px",borderColor:P.mode(t+".100",t+".700")(e),...yt},caption:{color:P.mode("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:_t(e=>{const{colorScheme:t}=e;return{th:{color:P.mode("gray.600","gray.400")(e),borderBottom:"1px",borderColor:P.mode(t+".100",t+".700")(e),...yt},td:{borderBottom:"1px",borderColor:P.mode(t+".100",t+".700")(e),...yt},caption:{color:P.mode("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:P.mode(t+".100",t+".700")(e)},td:{background:P.mode(t+".100",t+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:S.defineStyle({})},sizes:{sm:_t({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:_t({th:{px:"2",py:"4",lineHeight:"4",fontSize:"xs","&:first-of-type":{pl:6},"&:last-of-type":{pr:6}},td:{px:"2",py:"4",lineHeight:"5","&:first-of-type":{pl:6},"&:last-of-type":{pr:6}},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:_t({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:vt,definePartsStyle:wt}=S.createMultiStyleConfigHelpers(E.tabsAnatomy.keys);var Ct={__proto__:null,Accordion:De,Alert:Ne,Badge:{baseStyle:{display:"inline-block",fontSize:"text.xs",fontWeight:"semibold",lineHeight:"14",textTransform:"none",px:2,py:"0.5"},variants:{"primary-solid":{bg:"primary.500",color:"white"},"success-solid":{bg:"success.500",color:"white"},"info-solid":{bg:"info.500",color:"white"},"warning-solid":{bg:"warning.500",color:"white"},"danger-solid":{bg:"danger.500",color:"white"},"neutral-solid":{bg:"neutral.900",color:"white"},"disabled-solid":{bg:"neutral.600",color:"white"},"primary-light":{bg:"primary.50",color:"primary.500"},"success-light":{bg:"success.50",color:"success.500"},"info-light":{bg:"info.50",color:"info.500"},"warning-light":{bg:"warning.50",color:"warning.500"},"danger-light":{bg:"danger.50",color:"danger.500"},"neutral-light":{bg:"neutral.200",color:"neutral.900"},"disabled-light":{bg:"neutral.200",color:"neutral.600"}},defaultProps:{variant:"primary-solid"}},Button:We,Card:Ve,Checkbox:Ue,Chips:Xe,FormLabel:Ze,Input:et,LoaderStyle:rt,Popover:at,Radio:ct,Switch:ht,Table:kt,Tabs:vt({variants:{line:wt(e=>{const{orientation:t}=e,r="vertical"===t,n=r?"borderStart":"borderBottom";return{tablist:{[n]:"1px solid",borderColor:"inherit"},tab:{[n]:"1px solid",borderColor:"transparent",[r?"marginStart":"marginBottom"]:"-1px"}}}),unstyled:wt({})},defaultProps:{size:"md",variant:"line"}}),Textarea:r.defineStyleConfig({variants:{outline:r.defineStyle(e=>{const{focusBorderColor:t,borderColor:r}=(e=>{const{isError:t,isSuccess:r,isDisabled:n}=e;let a="neutral.400",o="primary.500";return t?(a="danger.500",o="danger.500"):r?(a="success.500",o="success.500"):!n||t||r||(a="neutral.400",o="danger.500"),{focusBorderColor:o,borderColor:a}})(e);return{background:"white.high",color:"black.high",borderColor:r,fontSize:"text.sm",padding:2,borderRadius:"sm",borderWidth:"1px",outline:"none",_disabled:{opacity:1,color:"black.medium",background:"neutral.300"},_placeholder:{color:"black.low"},_hover:{borderColor:r},_focus:{outline:"none",borderColor:t,boxShadow:"none"},_focusVisible:{outline:"none",borderColor:t,boxShadow:"none"},_focusWithin:{outline:"none",borderColor:t,boxShadow:"none"},_invalid:{outline:"none",borderColor:"danger.500",boxShadow:"none"}}})},defaultProps:{variant:"outline"}})};const Et={initialColorMode:"light",useSystemColorMode:!1},St=r.extendTheme({components:{...Ct},styles:{global:{"*::-webkit-scrollbar-thumb":{background:"neutral.400"},body:{fontSize:"text.sm",color:"black.high"}}},config:Et}),Pt=n.createContext({instance:void 0}),Ot=()=>{const{instance:e}=n.useContext(Pt);return{instance:e}},jt=({children:e,config:t,requestInterceptors:r,responseInterceptors:o})=>{const i=n.useRef(O.create(t));n.useEffect(()=>{null==r||r.forEach(e=>{i.current.interceptors.request.use(e)}),null==o||o.forEach(e=>{i.current.interceptors.response.use(e)})},[r,o]);const c=n.useMemo(()=>({instance:i.current}),[]);return a.createElement(Pt.Provider,{value:c},a.createElement(j.ToastContainer,null),e)};jt.displayName="Provider",Object.defineProperty(exports,"Accordion",{enumerable:!0,get:function(){return r.Accordion}}),Object.defineProperty(exports,"AccordionButton",{enumerable:!0,get:function(){return r.AccordionButton}}),Object.defineProperty(exports,"AccordionIcon",{enumerable:!0,get:function(){return r.AccordionIcon}}),Object.defineProperty(exports,"AccordionItem",{enumerable:!0,get:function(){return r.AccordionItem}}),Object.defineProperty(exports,"AccordionPanel",{enumerable:!0,get:function(){return r.AccordionPanel}}),Object.defineProperty(exports,"AccordionProvider",{enumerable:!0,get:function(){return r.AccordionProvider}}),Object.defineProperty(exports,"AlertDialog",{enumerable:!0,get:function(){return r.AlertDialog}}),Object.defineProperty(exports,"AlertDialogBody",{enumerable:!0,get:function(){return r.ModalBody}}),Object.defineProperty(exports,"AlertDialogCloseButton",{enumerable:!0,get:function(){return r.ModalCloseButton}}),Object.defineProperty(exports,"AlertDialogContent",{enumerable:!0,get:function(){return r.AlertDialogContent}}),Object.defineProperty(exports,"AlertDialogFooter",{enumerable:!0,get:function(){return r.ModalFooter}}),Object.defineProperty(exports,"AlertDialogHeader",{enumerable:!0,get:function(){return r.ModalHeader}}),Object.defineProperty(exports,"AlertDialogOverlay",{enumerable:!0,get:function(){return r.ModalOverlay}}),Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return r.Avatar}}),Object.defineProperty(exports,"AvatarBadge",{enumerable:!0,get:function(){return r.AvatarBadge}}),Object.defineProperty(exports,"AvatarGroup",{enumerable:!0,get:function(){return r.AvatarGroup}}),Object.defineProperty(exports,"Box",{enumerable:!0,get:function(){return r.Box}}),Object.defineProperty(exports,"ButtonGroup",{enumerable:!0,get:function(){return r.ButtonGroup}}),Object.defineProperty(exports,"Center",{enumerable:!0,get:function(){return r.Center}}),Object.defineProperty(exports,"ChakraProvider",{enumerable:!0,get:function(){return r.ChakraProvider}}),Object.defineProperty(exports,"ChakraTable",{enumerable:!0,get:function(){return r.Table}}),Object.defineProperty(exports,"CloseButton",{enumerable:!0,get:function(){return r.CloseButton}}),Object.defineProperty(exports,"Code",{enumerable:!0,get:function(){return r.Code}}),Object.defineProperty(exports,"Collapse",{enumerable:!0,get:function(){return r.Collapse}}),Object.defineProperty(exports,"ColorModeScript",{enumerable:!0,get:function(){return r.ColorModeScript}}),Object.defineProperty(exports,"Container",{enumerable:!0,get:function(){return r.Container}}),Object.defineProperty(exports,"Divider",{enumerable:!0,get:function(){return r.Divider}}),Object.defineProperty(exports,"Drawer",{enumerable:!0,get:function(){return r.Drawer}}),Object.defineProperty(exports,"DrawerBody",{enumerable:!0,get:function(){return r.ModalBody}}),Object.defineProperty(exports,"DrawerCloseButton",{enumerable:!0,get:function(){return r.ModalCloseButton}}),Object.defineProperty(exports,"DrawerContent",{enumerable:!0,get:function(){return r.DrawerContent}}),Object.defineProperty(exports,"DrawerFooter",{enumerable:!0,get:function(){return r.ModalFooter}}),Object.defineProperty(exports,"DrawerHeader",{enumerable:!0,get:function(){return r.ModalHeader}}),Object.defineProperty(exports,"DrawerOverlay",{enumerable:!0,get:function(){return r.ModalOverlay}}),Object.defineProperty(exports,"Fade",{enumerable:!0,get:function(){return r.Fade}}),Object.defineProperty(exports,"Flex",{enumerable:!0,get:function(){return r.Flex}}),Object.defineProperty(exports,"FormControl",{enumerable:!0,get:function(){return r.FormControl}}),Object.defineProperty(exports,"FormErrorMessage",{enumerable:!0,get:function(){return r.FormErrorMessage}}),Object.defineProperty(exports,"FormHelperText",{enumerable:!0,get:function(){return r.FormHelperText}}),Object.defineProperty(exports,"FormLabel",{enumerable:!0,get:function(){return r.FormLabel}}),Object.defineProperty(exports,"Grid",{enumerable:!0,get:function(){return r.Grid}}),Object.defineProperty(exports,"GridItem",{enumerable:!0,get:function(){return r.GridItem}}),Object.defineProperty(exports,"HStack",{enumerable:!0,get:function(){return r.HStack}}),Object.defineProperty(exports,"Heading",{enumerable:!0,get:function(){return r.Heading}}),Object.defineProperty(exports,"Hide",{enumerable:!0,get:function(){return r.Hide}}),Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return r.Icon}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return r.IconButton}}),Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return r.Image}}),Object.defineProperty(exports,"Img",{enumerable:!0,get:function(){return r.Img}}),Object.defineProperty(exports,"InputElementLeft",{enumerable:!0,get:function(){return r.InputLeftElement}}),Object.defineProperty(exports,"InputElementRight",{enumerable:!0,get:function(){return r.InputRightElement}}),Object.defineProperty(exports,"InputGroup",{enumerable:!0,get:function(){return r.InputGroup}}),Object.defineProperty(exports,"InputLeftAddon",{enumerable:!0,get:function(){return r.InputLeftAddon}}),Object.defineProperty(exports,"InputLeftElement",{enumerable:!0,get:function(){return r.InputLeftElement}}),Object.defineProperty(exports,"InputRightAddon",{enumerable:!0,get:function(){return r.InputRightAddon}}),Object.defineProperty(exports,"InputRightElement",{enumerable:!0,get:function(){return r.InputRightElement}}),Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return r.Link}}),Object.defineProperty(exports,"List",{enumerable:!0,get:function(){return r.List}}),Object.defineProperty(exports,"ListIcon",{enumerable:!0,get:function(){return r.ListIcon}}),Object.defineProperty(exports,"ListItem",{enumerable:!0,get:function(){return r.ListItem}}),Object.defineProperty(exports,"Modal",{enumerable:!0,get:function(){return r.Modal}}),Object.defineProperty(exports,"ModalContent",{enumerable:!0,get:function(){return r.ModalContent}}),Object.defineProperty(exports,"ModalContextProvider",{enumerable:!0,get:function(){return r.ModalContextProvider}}),Object.defineProperty(exports,"ModalFocusScope",{enumerable:!0,get:function(){return r.ModalFocusScope}}),Object.defineProperty(exports,"ModalOverlay",{enumerable:!0,get:function(){return r.ModalOverlay}}),Object.defineProperty(exports,"OrderedList",{enumerable:!0,get:function(){return r.OrderedList}}),Object.defineProperty(exports,"Popover",{enumerable:!0,get:function(){return r.Popover}}),Object.defineProperty(exports,"PopoverAnchor",{enumerable:!0,get:function(){return r.PopoverAnchor}}),Object.defineProperty(exports,"PopoverArrow",{enumerable:!0,get:function(){return r.PopoverArrow}}),Object.defineProperty(exports,"PopoverBody",{enumerable:!0,get:function(){return r.PopoverBody}}),Object.defineProperty(exports,"PopoverCloseButton",{enumerable:!0,get:function(){return r.PopoverCloseButton}}),Object.defineProperty(exports,"PopoverContent",{enumerable:!0,get:function(){return r.PopoverContent}}),Object.defineProperty(exports,"PopoverFooter",{enumerable:!0,get:function(){return r.PopoverFooter}}),Object.defineProperty(exports,"PopoverHeader",{enumerable:!0,get:function(){return r.PopoverHeader}}),Object.defineProperty(exports,"PopoverTrigger",{enumerable:!0,get:function(){return r.PopoverTrigger}}),Object.defineProperty(exports,"Portal",{enumerable:!0,get:function(){return r.Portal}}),Object.defineProperty(exports,"RequiredIndicator",{enumerable:!0,get:function(){return r.RequiredIndicator}}),Object.defineProperty(exports,"ScaleFade",{enumerable:!0,get:function(){return r.ScaleFade}}),Object.defineProperty(exports,"Show",{enumerable:!0,get:function(){return r.Show}}),Object.defineProperty(exports,"SimpleGrid",{enumerable:!0,get:function(){return r.SimpleGrid}}),Object.defineProperty(exports,"Skeleton",{enumerable:!0,get:function(){return r.Skeleton}}),Object.defineProperty(exports,"Slide",{enumerable:!0,get:function(){return r.Slide}}),Object.defineProperty(exports,"SlideFade",{enumerable:!0,get:function(){return r.SlideFade}}),Object.defineProperty(exports,"Spacer",{enumerable:!0,get:function(){return r.Spacer}}),Object.defineProperty(exports,"Stack",{enumerable:!0,get:function(){return r.Stack}}),Object.defineProperty(exports,"Step",{enumerable:!0,get:function(){return r.Step}}),Object.defineProperty(exports,"StepDescription",{enumerable:!0,get:function(){return r.StepDescription}}),Object.defineProperty(exports,"StepIcon",{enumerable:!0,get:function(){return r.StepIcon}}),Object.defineProperty(exports,"StepIndicator",{enumerable:!0,get:function(){return r.StepIndicator}}),Object.defineProperty(exports,"StepNumber",{enumerable:!0,get:function(){return r.StepNumber}}),Object.defineProperty(exports,"StepSeparator",{enumerable:!0,get:function(){return r.StepSeparator}}),Object.defineProperty(exports,"StepStatus",{enumerable:!0,get:function(){return r.StepStatus}}),Object.defineProperty(exports,"StepTitle",{enumerable:!0,get:function(){return r.StepTitle}}),Object.defineProperty(exports,"Stepper",{enumerable:!0,get:function(){return r.Stepper}}),Object.defineProperty(exports,"TabIndicator",{enumerable:!0,get:function(){return r.TabIndicator}}),Object.defineProperty(exports,"TabList",{enumerable:!0,get:function(){return r.TabList}}),Object.defineProperty(exports,"TabPanel",{enumerable:!0,get:function(){return r.TabPanel}}),Object.defineProperty(exports,"TabPanels",{enumerable:!0,get:function(){return r.TabPanels}}),Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return r.Tabs}}),Object.defineProperty(exports,"TabsDescendantsProvider",{enumerable:!0,get:function(){return r.TabsDescendantsProvider}}),Object.defineProperty(exports,"TabsProvider",{enumerable:!0,get:function(){return r.TabsProvider}}),Object.defineProperty(exports,"Tbody",{enumerable:!0,get:function(){return r.Tbody}}),Object.defineProperty(exports,"Td",{enumerable:!0,get:function(){return r.Td}}),Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return r.Text}}),Object.defineProperty(exports,"Th",{enumerable:!0,get:function(){return r.Th}}),Object.defineProperty(exports,"Thead",{enumerable:!0,get:function(){return r.Thead}}),Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return r.Tooltip}}),Object.defineProperty(exports,"Tr",{enumerable:!0,get:function(){return r.Tr}}),Object.defineProperty(exports,"UnorderedList",{enumerable:!0,get:function(){return r.UnorderedList}}),Object.defineProperty(exports,"VStack",{enumerable:!0,get:function(){return r.VStack}}),Object.defineProperty(exports,"VisuallyHidden",{enumerable:!0,get:function(){return r.VisuallyHidden}}),Object.defineProperty(exports,"VisuallyHiddenInput",{enumerable:!0,get:function(){return r.VisuallyHiddenInput}}),Object.defineProperty(exports,"Wrap",{enumerable:!0,get:function(){return r.Wrap}}),Object.defineProperty(exports,"WrapItem",{enumerable:!0,get:function(){return r.WrapItem}}),Object.defineProperty(exports,"extendTheme",{enumerable:!0,get:function(){return r.extendTheme}}),Object.defineProperty(exports,"forwardRef",{enumerable:!0,get:function(){return r.forwardRef}}),Object.defineProperty(exports,"useAccordion",{enumerable:!0,get:function(){return r.useAccordion}}),Object.defineProperty(exports,"useAccordionContext",{enumerable:!0,get:function(){return r.useAccordionContext}}),Object.defineProperty(exports,"useAccordionItem",{enumerable:!0,get:function(){return r.useAccordionItem}}),Object.defineProperty(exports,"useAccordionItemState",{enumerable:!0,get:function(){return r.useAccordionItemState}}),Object.defineProperty(exports,"useAccordionStyles",{enumerable:!0,get:function(){return r.useAccordionStyles}}),Object.defineProperty(exports,"useBoolean",{enumerable:!0,get:function(){return r.useBoolean}}),Object.defineProperty(exports,"useBreakpoint",{enumerable:!0,get:function(){return r.useBreakpoint}}),Object.defineProperty(exports,"useBreakpointValue",{enumerable:!0,get:function(){return r.useBreakpointValue}}),Object.defineProperty(exports,"useClipboard",{enumerable:!0,get:function(){return r.useClipboard}}),Object.defineProperty(exports,"useColorMode",{enumerable:!0,get:function(){return r.useColorMode}}),Object.defineProperty(exports,"useColorModePreference",{enumerable:!0,get:function(){return r.useColorModePreference}}),Object.defineProperty(exports,"useColorModeValue",{enumerable:!0,get:function(){return r.useColorModeValue}}),Object.defineProperty(exports,"useConst",{enumerable:!0,get:function(){return r.useConst}}),Object.defineProperty(exports,"useControllableProp",{enumerable:!0,get:function(){return r.useControllableProp}}),Object.defineProperty(exports,"useControllableState",{enumerable:!0,get:function(){return r.useControllableState}}),Object.defineProperty(exports,"useDimensions",{enumerable:!0,get:function(){return r.useDimensions}}),Object.defineProperty(exports,"useDisclosure",{enumerable:!0,get:function(){return r.useDisclosure}}),Object.defineProperty(exports,"useDrawerContext",{enumerable:!0,get:function(){return r.useDrawerContext}}),Object.defineProperty(exports,"useImage",{enumerable:!0,get:function(){return r.useImage}}),Object.defineProperty(exports,"useMediaQuery",{enumerable:!0,get:function(){return r.useMediaQuery}}),Object.defineProperty(exports,"useMergeRefs",{enumerable:!0,get:function(){return r.useMergeRefs}}),Object.defineProperty(exports,"useModal",{enumerable:!0,get:function(){return r.useModal}}),Object.defineProperty(exports,"useModalContext",{enumerable:!0,get:function(){return r.useModalContext}}),Object.defineProperty(exports,"useModalStyles",{enumerable:!0,get:function(){return r.useModalStyles}}),Object.defineProperty(exports,"useOutsideClick",{enumerable:!0,get:function(){return r.useOutsideClick}}),Object.defineProperty(exports,"usePrefersReducedMotion",{enumerable:!0,get:function(){return r.usePrefersReducedMotion}}),Object.defineProperty(exports,"useQuery",{enumerable:!0,get:function(){return r.useQuery}}),Object.defineProperty(exports,"useSteps",{enumerable:!0,get:function(){return r.useSteps}}),Object.defineProperty(exports,"useTab",{enumerable:!0,get:function(){return r.useTab}}),Object.defineProperty(exports,"useTabIndicator",{enumerable:!0,get:function(){return r.useTabIndicator}}),Object.defineProperty(exports,"useTabList",{enumerable:!0,get:function(){return r.useTabList}}),Object.defineProperty(exports,"useTabPanel",{enumerable:!0,get:function(){return r.useTabPanel}}),Object.defineProperty(exports,"useTabPanels",{enumerable:!0,get:function(){return r.useTabPanels}}),Object.defineProperty(exports,"useTabs",{enumerable:!0,get:function(){return r.useTabs}}),Object.defineProperty(exports,"useTabsContext",{enumerable:!0,get:function(){return r.useTabsContext}}),Object.defineProperty(exports,"useTabsDescendant",{enumerable:!0,get:function(){return r.useTabsDescendant}}),Object.defineProperty(exports,"useTabsDescendants",{enumerable:!0,get:function(){return r.useTabsDescendants}}),Object.defineProperty(exports,"useTabsDescendantsContext",{enumerable:!0,get:function(){return r.useTabsDescendantsContext}}),Object.defineProperty(exports,"useTabsStyles",{enumerable:!0,get:function(){return r.useTabsStyles}}),Object.defineProperty(exports,"useTheme",{enumerable:!0,get:function(){return r.useTheme}}),Object.defineProperty(exports,"useToken",{enumerable:!0,get:function(){return r.useToken}}),Object.defineProperty(exports,"CheckboxIcon",{enumerable:!0,get:function(){return u.CheckboxIcon}}),Object.defineProperty(exports,"useCheckbox",{enumerable:!0,get:function(){return u.useCheckbox}}),Object.defineProperty(exports,"useCheckboxGroup",{enumerable:!0,get:function(){return u.useCheckboxGroup}}),Object.defineProperty(exports,"useRadio",{enumerable:!0,get:function(){return x.useRadio}}),Object.defineProperty(exports,"useRadioGroup",{enumerable:!0,get:function(){return x.useRadioGroup}}),Object.defineProperty(exports,"useRadioGroupContext",{enumerable:!0,get:function(){return x.useRadioGroupContext}}),exports.AccordionIndicator=()=>{const{isOpen:e}=t.useAccordionItemState();return e?a.createElement(r.Box,{position:"absolute",left:0,width:"2px",height:"100%",bg:"primary.500"}):null},exports.Alert=z,exports.AlertAction=H,exports.AlertClose=L,exports.AlertDescription=q,exports.AlertIcon=N,exports.AlertTitle=W,exports.Anchor=V,exports.Badge=$,exports.BreadCrumb=G,exports.Button=F,exports.Card=U,exports.Checkbox=X,exports.CheckboxGroup=Q,exports.Chips=K,exports.Counter=({value:e,size:t="xs",min:n=0,max:o=9999,onChange:i,isError:c=!1,disabled:l=!1,error:d="",helperText:s="",isReadOnly:u=!1})=>a.createElement(r.Box,null,a.createElement(r.HStack,null,a.createElement(r.IconButton,{"aria-label":"minus","data-test-id":"CT_Component_Counter_decrement",onClick:()=>{i(e-1)},isDisabled:l||+e<=n,size:t,icon:a.createElement(p.FiMinus,null)}),a.createElement(J,{"data-test-id":"CT_Component_Counter_input",value:e,isError:c,isDisabled:l||0===o,textAlign:"center",size:"xl"===t?"lg":"lg"===t?"md":"md"===t?"sm":"xs",min:n,max:o,onChange:e=>{i(+e.target.value)},isReadOnly:u,width:12,type:"number"}),a.createElement(r.IconButton,{"aria-label":"plus","data-test-id":"CT_Component_Counter_decrement",onClick:()=>{i(e+1)},isDisabled:l||+e>=o,size:t,icon:a.createElement(p.FiPlus,null)})),c?a.createElement(r.Text,{mt:1,color:"danger.500"},d):a.createElement(r.Text,{mt:1,color:"black.medium"},s)),exports.DataTable=te,exports.DatePickerMonth=oe,exports.Datepicker=ae,exports.Dialog=le,exports.Field=Z,exports.Header=ge,exports.InputAddonLeft=({children:e})=>a.createElement(r.InputLeftAddon,{backgroundColor:"neutral.200",px:3,py:2.5,style:{border:0,marginInlineEnd:0}},e),exports.InputAddonRight=({children:e})=>a.createElement(r.InputRightAddon,{backgroundColor:"neutral.200",px:3,py:2.5,style:{border:0,marginInlineStart:0}},e),exports.InputField=J,exports.Loader=D,exports.MainMenu=ye,exports.ModalBody=be,exports.ModalCloseButton=he,exports.ModalFooter=fe,exports.ModalHeader=_e,exports.MultiDatePickerMonth=ce,exports.NavigationBar=ke,exports.Pagination=Ce,exports.PaginationDetail=({page:e,limit:t,length:a,scale:o=300,fontSize:i="xs",lineHeight:c=18,...l})=>n.createElement(r.Text,Object.assign({scale:o,fontSize:i,lineHeight:c},l),`${(e-1)*t+1}-${t*e<a?t*e:a} dari ${a} item`),exports.PaginationFilter=Ee,exports.Provider=jt,exports.ProviderContext=Pt,exports.Radio=Se,exports.RadioGroup=Pe,exports.Rating=({value:e})=>a.createElement(r.Grid,{gap:"4px",display:"flex"},[...Array(5)].map((t,r)=>a.createElement(l.Rating,{color:r<e?"#FFA230":"#E0E0E0",size:24}))),exports.Select=function({isError:e=!1,...t}){const{colorMode:r}=i.useColorMode();return a.createElement(Oe,{isError:e},a.createElement(y,Object.assign({classNamePrefix:"react-select"},t,{styles:{...Me(r,e)},theme:Te})))},exports.SelectAsync=function({styles:e,isError:t=!1,...r}){const{colorMode:n}=i.useColorMode();return a.createElement(Oe,{isError:t},a.createElement(k.AsyncPaginate,Object.assign({classNamePrefix:"react-select"},r,{styles:{...Me(n,t),...e},theme:Te})))},exports.SelectAsyncCreatable=function({styles:e,isError:t=!1,...r}){const{colorMode:n}=i.useColorMode();return a.createElement(Oe,{isError:t},a.createElement(v,Object.assign({classNamePrefix:"react-select"},r,{styles:{...Me(n,t),...e},theme:Te})))},exports.SelectCreatable=function({styles:e,isError:t=!1,...r}){const{colorMode:n}=i.useColorMode();return a.createElement(Oe,{isError:t},a.createElement(w,Object.assign({classNamePrefix:"react-select"},r,{styles:{...Me(n,t),...e},theme:Te})))},exports.Switch=Ie,exports.Tab=Re,exports.TextareaField=ee,exports.Uploader=Ae,exports.getTheme=e=>r.extendTheme({...e,components:{...Ct},styles:{global:{body:{fontSize:"text.sm",color:"black.high"}}},config:Et}),exports.theme=St,exports.useAlertStyles=A,exports.useFetcher=function(){const{instance:e}=Ot(),t=n.useMemo(()=>e||O,[e]);return{fetcher:async({url:e,data:r,method:n,headers:a,...o})=>await t.request({data:r,url:e,method:n,headers:{"Content-Type":"application/json; charset=utf-8",...a},...o})}},exports.useInternalUI=Ot;
|
38
|
+
//# sourceMappingURL=internal-ui.cjs.production.min.js.map
|