@kosdev-code/base-ui-components 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/atoms/badge/badge.d.ts +15 -0
- package/components/atoms/badge/badge.d.ts.map +1 -0
- package/components/atoms/badge/index.d.ts +2 -0
- package/components/atoms/badge/index.d.ts.map +1 -0
- package/components/atoms/drawer/drawer.styles.d.ts +3 -3
- package/components/atoms/icon/common/types.d.ts +1 -1
- package/components/atoms/icon/common/types.d.ts.map +1 -1
- package/components/atoms/index.d.ts +1 -0
- package/components/atoms/index.d.ts.map +1 -1
- package/components/atoms/input/input.d.ts +1 -0
- package/components/atoms/input/input.d.ts.map +1 -1
- package/components/atoms/label/label.styles.d.ts +1 -1
- package/components/atoms/resizable-panel-group/common/hooks/use-resizable-panel-group-context/use-resizable-panel-group-context.d.ts +1 -0
- package/components/atoms/resizable-panel-group/common/hooks/use-resizable-panel-group-context/use-resizable-panel-group-context.d.ts.map +1 -1
- package/components/atoms/resizable-panel-group/components/resizable-panel.d.ts +2 -1
- package/components/atoms/resizable-panel-group/components/resizable-panel.d.ts.map +1 -1
- package/components/atoms/resizable-panel-group/index.d.ts +1 -0
- package/components/atoms/resizable-panel-group/index.d.ts.map +1 -1
- package/components/atoms/select/components/option.d.ts +3 -1
- package/components/atoms/select/components/option.d.ts.map +1 -1
- package/components/atoms/text/text.d.ts +1 -2
- package/components/atoms/text/text.d.ts.map +1 -1
- package/components/layouts/list-with-details-layout/list-with-details-layout.d.ts +2 -1
- package/components/layouts/list-with-details-layout/list-with-details-layout.d.ts.map +1 -1
- package/components/molecules/branded-header/branded-header-styles.d.ts +1 -1
- package/components/molecules/collapsible-artifact/components/artifact-version.d.ts.map +1 -1
- package/components/molecules/empty-list-message/empty-list-message.d.ts +8 -0
- package/components/molecules/empty-list-message/empty-list-message.d.ts.map +1 -0
- package/components/molecules/empty-list-message/index.d.ts +2 -0
- package/components/molecules/empty-list-message/index.d.ts.map +1 -0
- package/components/molecules/form/common/hooks/use-form-context.d.ts +1 -1
- package/components/molecules/form/common/hooks/use-form-context.d.ts.map +1 -1
- package/components/molecules/index.d.ts +1 -0
- package/components/molecules/index.d.ts.map +1 -1
- package/components/molecules/modal/common/styles/modal.styles.d.ts +4 -0
- package/components/molecules/modal/common/styles/modal.styles.d.ts.map +1 -1
- package/components/molecules/modal/confirm-delete-modal/components/confirm-delete-content.d.ts.map +1 -1
- package/components/molecules/modal/confirm-delete-modal/confirm-delete-modal.d.ts +2 -1
- package/components/molecules/modal/confirm-delete-modal/confirm-delete-modal.d.ts.map +1 -1
- package/components/molecules/modal/index.d.ts +1 -0
- package/components/molecules/modal/index.d.ts.map +1 -1
- package/components/molecules/modal/modal.d.ts +1 -1
- package/components/molecules/shell-menu/shell-menu.d.ts +3 -2
- package/components/molecules/shell-menu/shell-menu.d.ts.map +1 -1
- package/helpers/get-error-message.d.ts +7 -0
- package/helpers/get-error-message.d.ts.map +1 -0
- package/helpers/index.d.ts +1 -0
- package/helpers/index.d.ts.map +1 -1
- package/helpers/validation/password-validation.d.ts +3 -2
- package/helpers/validation/password-validation.d.ts.map +1 -1
- package/index.cjs +720 -619
- package/index.cjs.map +1 -1
- package/index.js +4558 -4287
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/style.css +1 -1
- package/styles/__deprecated__/old-styles/app-styles.d.ts +2 -2
- package/styles/__deprecated__/old-tokens/base/base-component.d.ts +2 -2
- package/styles/__deprecated__/old-tokens/base/base-generic.d.ts +1 -1
- package/styles/__deprecated__/old-tokens/base/base-semantic.d.ts +1 -1
- package/styles/__deprecated__/old-tokens/base/components/button/index.d.ts +1 -1
- package/styles/__deprecated__/old-tokens/base/components/kos-list/index.d.ts +1 -1
- package/styles/__deprecated__/old-tokens/base/components/kos-list-item/index.d.ts +1 -1
- package/styles/__deprecated__/old-tokens/base/components/kos-viewable-list-item/index.d.ts +1 -1
- package/styles/__deprecated__/old-tokens/index.d.ts +2 -2
- package/styles/tokens/component-tokens/badge/index.d.ts +17 -0
- package/styles/tokens/component-tokens/badge/index.d.ts.map +1 -0
- package/styles/tokens/component-tokens/index.d.ts +15 -0
- package/styles/tokens/component-tokens/index.d.ts.map +1 -1
- package/styles/tokens/component-tokens/modal/index.d.ts +1 -0
- package/styles/tokens/component-tokens/modal/index.d.ts.map +1 -1
- package/styles/tokens/index.d.ts +19 -4
- package/styles/tokens/index.d.ts.map +1 -1
package/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";var wi=Object.defineProperty;var Ci=(e,t,o)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var X=(e,t,o)=>(Ci(e,typeof t!="symbol"?t+"":t,o),o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@emotion/react/jsx-runtime"),d=require("react"),p=require("@emotion/styled"),T=require("@emotion/react"),Un=require("react-dom"),R=require("@floating-ui/react"),Si=require("@use-gesture/react"),W=require("react-hook-form"),B=require("@kosdev-code/kos-ui-sdk"),Z=require("mobx"),ce=require("@tanstack/react-table"),_=require("date-fns");function $i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const Vt=$i(d),ji=e=>{const t=/[\\^$.*+?()[\]{}|]/g;return RegExp(t.source).test(e)?e.replace(t,"\\$&"):e},Ti=e=>e instanceof RegExp,Di=e=>typeof e=="string",Ei=e=>{let t=[];return e.forEach(o=>{Array.isArray(o)?t=t.concat(o):o&&t.push(o)}),t},zi=(e,t,o)=>{if(e===""||t==="")return e;let n=t;Ti(n)||(n=new RegExp("("+ji(n)+")","gi"));const r=e.split(n);for(let s=1,i=r.length;s<i;s+=2){if(r[s]===void 0||r[s-1]===void 0){console.warn("Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}r[s]=o(r[s],s)}return r},Kn=(e,t,o)=>{let n=e;return Array.isArray(n)||(n=[n]),Ei(n.map(r=>Di(r)?zi(r,t,o):r))},Ut=(e,t)=>t?e:`var(${e})`,O=(e,t)=>Ut(`--studio-g-${e}`,t),c=(e,t)=>Ut(`--studio-s-${e}`,t),Mi={"actionable-blurb":{"row-gap":c("spacing-4"),"icon-column-width":c("spacing-20")}},Ii={"app-shell":{"bg-default":c("color-grey80"),"bg-offline":c("color-grey70"),"bg-locked":c("color-grey60"),color:c("color-white")}},Oi={"artifact-drawer":{"background-color":c("color-grey10"),"border-color":c("color-grey20"),"border-width":c("border-sm"),"padding-x":c("spacing-16"),"branch-padding-x":c("spacing-8"),"artifact-list-y-padding":c("spacing-10"),"artifact-items-gap":c("spacing-10"),"version-items-gap":c("spacing-8"),"version-list-padding":c("spacing-8")}},Ri={checkbox:{"background-color":c("color-white"),"border-color":c("color-grey30"),"background-color-disabled":c("color-grey15"),"background-color-checked":c("color-primary"),"border-color-checked":c("color-primary"),"background-color-checked-disabled":c("color-additional3"),"border-color-checked-disabled":c("color-additional3"),size:"14px","border-radius":c("spacing-2"),"border-width":c("border-sm")}},Ni={"collapsible-artifact":{"background-color":c("color-white"),"border-color":c("color-grey20"),"border-radius":c("spacing-6"),"border-width":c("border-xsm"),"button-left-or-right":c("spacing-4"),"button-top":"3px","name-and-desc-spacing":c("spacing-2"),"name-and-selected-spacing":c("spacing-8"),padding:`${c("spacing-6")} ${c("spacing-8")}`},"collapsible-artifact-version":{"background-color-hover":c("color-grey20"),"background-color-inherited":"#9747FF12","background-color-selected":c("color-additional3"),"background-color":c("color-grey10"),"border-color-hover":c("color-grey30"),"border-color-inherited":"#9747FF33","border-color-selected":c("color-primary"),"border-color":c("color-grey20"),"border-radius":c("spacing-2"),"border-width":c("border-sm"),padding:`${c("spacing-6")} ${c("spacing-8")}`}},Fi={"collapsible-list-container":{"border-radius":c("spacing-2"),"border-width":"0.5px","border-color":c("color-grey20")},"collapsible-list-header-container":{"background-color":c("color-grey10"),gap:c("spacing-8"),padding:"7px 8px"},"collapsible-list-toggled-container":{"background-color":c("color-white"),gap:c("spacing-8"),padding:c("spacing-8")}},Ai={drawer:{"header-height":c("spacing-30"),"header-bg":c("color-grey10"),"header-border-size":"1px","header-border-color":c("color-grey20"),"header-x-padding":c("spacing-10"),"border-width":"1px","border-color":c("color-grey20"),"left-drop-shadow":"4px 0px 8px -1px rgba(0,0,0,0.2)","right-drop-shadow":"-4px 0px 8px -1px rgba(0,0,0,0.2)"}},_i={form:{"access-toggle-gap":c("spacing-16"),"access-toggle-height":c("spacing-36"),"error-message-top-margin":c("spacing-4"),"label-column-gap":c("spacing-16"),"label-error-color":c("color-red"),"label-font-family":c("font-family-default"),"label-font-size":c("font-size-med"),"label-font-weight":c("font-weight-normal"),"label-height":"14px","label-line-height":c("line-height-default"),"label-star-padding":c("spacing-4"),"label-width":"112px","label-area-padding":`${c("spacing-7")} 0`}},Wi={"horizontal-rule":{"border-width":"0.5px","border-color":c("color-grey20")}},Li={"icon-button":{padding:"0","border-radius":c("spacing-2"),"background-color":"transparent","border-color":"transparent",cursor:"pointer","disabled-cursor":"not-allowed","badge-fill-black":c("color-black"),"badge-fill-blue":c("color-primary"),"badge-fill-green":c("color-green"),"badge-fill-grey":c("color-grey50"),"badge-fill-orange":c("color-orange"),"badge-fill-purple":c("color-purple"),"badge-fill-red":c("color-red"),"badge-fill-white":c("color-white"),"badge-fill-yellow":c("color-yellow"),"badge-right":"1px","badge-top":"1px","active-background-color":"rgba(255, 255, 255, 0.1)"}},Bi={icon:{"fill-black":c("color-black"),"fill-blue":c("color-primary"),"fill-green":c("color-green"),"fill-grey":c("color-grey50"),"fill-orange":c("color-orange"),"fill-purple":c("color-purple"),"fill-red":c("color-red"),"fill-white":c("color-white"),"fill-yellow":c("color-yellow"),"size-lrg":c("spacing-18"),"size-med":c("spacing-16"),"size-sm":c("spacing-14"),"size-xlrg":c("spacing-20"),"size-xsm":c("spacing-12"),"size-xxlrg":c("spacing-22"),"size-xxsm":c("spacing-10")}},Pi={"image-config-page-header":{gap:c("spacing-16"),"padding-bottom":c("spacing-12"),"title-gap":c("spacing-8"),bg:c("color-white")}},Hi={input:{"background-color-disabled":c("color-grey10"),"background-color":c("color-white"),"border-color-active":c("color-black"),"border-color-invalid":c("color-red"),"border-color":c("color-grey30"),"border-radius":c("spacing-2"),"border-width":c("border-sm"),"color-disabled":c("color-grey30"),"font-family":c("font-family-default"),"font-size-small":c("font-size-sm"),"font-size":c("font-size-med"),"font-weight":c("font-weight-normal"),"icon-left":c("spacing-8"),"line-height":c("line-height-default"),"padding-left-icon":c("spacing-28"),"padding-right-icon":c("spacing-28"),"padding-x":c("spacing-8"),"padding-y-small":"2px","padding-y":c("spacing-7"),color:c("color-black"),height:"28px"}},Vi={link:{"font-size-med":c("font-size-med"),"font-size-sm":c("font-size-sm"),"font-size-lrg":c("font-size-lrg"),"font-size-xlrg":c("font-size-xlrg"),"font-family":c("font-family-default"),"font-weight":c("font-weight-bold"),"line-height":c("line-height-default"),color:c("color-primary"),"color-hover":c("color-additional1"),"color-active":c("color-additional2"),"color-disabled":c("color-grey30")}},Gi={modal:{"overlay-background":"rgba(0, 0, 0, 0.8)","background-color":c("color-white"),headerPadding:c("spacing-10"),headerGap:c("spacing-8"),contentYPadding:c("spacing-10"),contentXPadding:c("spacing-12"),footerYPadding:c("spacing-10"),footerXPadding:c("spacing-12"),footerGap:c("spacing-8"),"border-width":c("border-sm"),"border-color":c("color-grey20")}},Yi={"named-section":{"border-radius":"2px","border-width":"0.5px","selected-border-width":"2px","hover-border-width":c("border-sm"),"border-color":c("color-grey20"),"selected-border-color":c("color-primary")},"named-section-header":{bg:c("color-grey10"),"border-width":"0.5px","border-color":c("color-grey20"),"border-radius":"2px",padding:"8px 10px",gap:c("spacing-8"),"row-gap":c("spacing-4")}},Ui={segmented:{"border-width":c("border-sm"),"border-radius":c("spacing-2"),padding:c("spacing-2"),"background-color":c("color-grey15"),"border-color":c("color-grey20"),"button-color":c("color-grey60"),"button-color-disabled":c("color-grey40"),"button-background-color":c("color-grey15"),"button-background-color-hover":c("color-grey20"),"button-background-color-active":c("color-grey40"),"button-padding-y":"5px","button-padding-x":"11px","button-border-width":c("border-sm"),"button-border-color":"transparent","button-font-size":c("font-size-med"),"button-font-weight":c("font-weight-normal"),"button-font-family":c("font-family-default"),"button-gap":c("spacing-4"),"indicator-background-color":c("color-white"),"indicator-color":c("color-black")}},Ki={select:{"font-size":c("font-size-med"),"border-size":c("border-sm"),"border-color":c("color-grey20")},option:{"column-gap":c("spacing-8"),"font-family":c("font-family-default"),"font-size":c("font-size-med"),"bg-color-active":c("color-grey20"),"bg-color":c("color-white"),"font-weight-selected":c("font-weight-bold"),color:c("color-black"),"color-disabled":c("color-grey40"),padding:"2px 4px"}},qi={button:{xpadding:c("spacing-16"),ypadding:c("spacing-6"),br:c("spacing-2"),cursor:"pointer","line-height":c("line-height-default"),"font-size":c("font-size-med"),"ypadding-small":c("spacing-2"),"border-width":"1px","font-weight":c("font-weight-bold"),"icon-margin":`0px ${c("spacing-4")} 0px 0px`,"flex-direction":"row",bg:c("color-primary"),"bg-hover":c("color-additional1"),"bg-active":c("color-additional2"),"bg-disabled":c("color-grey30"),border:c("color-primary"),"border-hover":c("color-additional1"),"border-active":c("color-additional2"),"border-disabled":c("color-grey30"),color:c("color-white"),"color-hover":c("color-white"),"color-active":c("color-white"),"color-disabled":c("color-white"),"bg-secondary":c("color-white"),"bg-hover-secondary":c("color-white"),"bg-active-secondary":c("color-white"),"bg-disabled-secondary":c("color-grey10"),"border-secondary":c("color-primary"),"border-hover-secondary":c("color-additional1"),"border-active-secondary":c("color-additional2"),"border-disabled-secondary":c("color-grey30"),"color-secondary":c("color-primary"),"color-hover-secondary":c("color-additional1"),"color-active-secondary":c("color-additional2"),"color-disabled-secondary":c("color-grey30"),"bg-borderless":c("color-white"),"bg-hover-borderless":c("color-white"),"bg-active-borderless":c("color-white"),"bg-disabled-borderless":c("color-white"),"border-borderless":c("color-white"),"border-hover-borderless":c("color-white"),"border-active-borderless":c("color-white"),"border-disabled-borderless":c("color-white"),"color-borderless":c("color-primary"),"color-hover-borderless":c("color-additional1"),"color-active-borderless":c("color-additional2"),"color-disabled-borderless":c("color-grey30")}},Xi={label:{gap:c("spacing-4")},"label-with-action":{gap:c("spacing-8")},"label-with-content-link":{color:c("color-primary")}},Zi={text:{"font-family":c("font-family-default"),"line-height":c("line-height-default"),"h1-size":c("font-size-xlrg"),"h2-size":c("font-size-lrg"),"body-size":c("font-size-med"),"small-size":c("font-size-sm"),"font-weight-bold":c("font-weight-bold"),"font-weight-normal":c("font-weight-normal"),"color-dark":c("color-black"),"color-light":c("color-white"),"color-green":c("color-green"),"color-red":c("color-red"),"color-blue":c("color-primary"),"color-grey":c("color-grey60"),"color-disabled":c("color-grey40"),"color-yellow":c("color-yellow"),"color-orange":c("color-orange")}},Ji={tab:{"trigger-padding-y":c("spacing-8"),"trigger-padding-x":"0","column-gap":c("spacing-8"),"indicator-height":c("border-lrg"),"indicator-color":c("color-grey60"),"trigger-list-underline-color":c("color-grey20"),"trigger-list-underline-height":c("border-sm")}},Qi={tag:{"font-family":c("font-family-default"),"bg-color-orange":c("color-orange"),"bg-color-light":c("color-white"),"bg-color-green":c("color-green"),"bg-color-red":c("color-red"),"bg-color-purple":c("color-purple"),"bg-color-blue":c("color-blue"),"bg-color-disabled":c("color-white"),"color-light":c("color-white"),"color-dark":c("color-black"),"color-disabled":c("color-grey40"),"border-radius":c("border-sm"),"border-color":c("color-grey20"),height:c("spacing-18"),padding:"0px 4px"}},ea={textarea:{padding:c("spacing-8"),"background-color":c("color-white"),"font-size":c("font-size-med"),"font-family":c("font-family-default"),"font-weight":c("font-weight-normal"),color:c("color-black"),"border-width":c("border-sm"),"border-color":c("color-grey30"),"min-height":"60px","border-color-active":c("color-black"),"border-radius":c("spacing-2"),"border-color-invalid":c("color-red"),"background-color-disabled":c("color-grey10"),"color-disabled":c("color-grey30")}},ta={"toggle-container":{gap:"4px"},"toggle-track":{"background-color-checked-disabled":c("color-additional3"),"background-color-checked-enabled":c("color-primary"),"background-color-unchecked-disabled":c("color-grey20"),"background-color-unchecked-enabled":c("color-grey50"),"border-radius":c("spacing-20"),"padding-horizontal":"3px","padding-vertical":"2px","transition-duration":"150ms"},"toggle-thumb":{"background-color-checked-enabled":c("color-white"),"background-color-checked-disabled":c("color-white"),"background-color-unchecked-enabled":c("color-white"),"background-color-unchecked-disabled":c("color-grey15"),"border-radius":"15px","box-shadow":"0px 1px 3px 0px rgba(16, 24, 40, 0.1), 0px 1px 2px -1px rgba(16, 24, 40, 0.1)",height:"8px",width:"8px","transition-duration":"150ms"}},oa={"version-list-container":{gap:c("spacing-16")},"version-list-header":{gap:c("spacing-8"),itemBorderBottom:c("color-grey20"),itemBgColor:c("color-grey10")}},na={combobox:{"background-color-active":c("color-grey15"),"background-color-selected":c("color-additional3"),"background-color":c("color-white"),"border-radius":"4px","box-shadow":"0px 0px 4px 0px rgba(0, 0, 0, 0.25)","input-border-radius":"6px","option-column-gap":c("spacing-4"),"row-gap":c("spacing-6"),"selection-border-radius":"4px",height:"22px",padding:c("spacing-8")}},ra={"radio-button":{size:c("spacing-14"),"check-size":c("spacing-8"),"border-color":c("color-grey20"),"background-color":c("color-white"),"border-width":c("border-sm"),"border-radius":"50%","border-color-checked":c("color-primary"),"background-color-disabled":c("color-grey10")}},sa={"select-view-list":{"item-height":c("spacing-36"),"padding-left":c("spacing-16"),"padding-right":c("spacing-8"),"border-width":c("border-sm"),"border-color":c("color-grey20"),"background-color":c("color-white"),"background-color-viewing":c("color-grey15"),gap:c("spacing-4")}},ia={"shell-menu":{"padding-x":c("spacing-20"),"link-gap":c("spacing-12"),"section-gap":c("spacing-8"),"link-padding-y":c("spacing-2"),"link-padding-x":c("spacing-4")}},aa={"named-list-item":{"column-gap":c("spacing-6"),"row-gap":c("spacing-4"),"color-selected":c("color-white"),"background-color-selected":c("color-primary"),"padding-y":c("spacing-4"),"padding-right":c("spacing-12"),"padding-left":c("spacing-20"),"subtext-padding-with-icon":c("spacing-20")}},la={"error-list-item":{"row-gap":c("spacing-4"),"icon-column-width":c("spacing-26"),"padding-x":c("spacing-4"),"padding-y":c("spacing-12"),"background-color":c("color-white"),"background-color-overview":c("color-grey10"),"background-color-hover":c("color-grey10"),"background-color-overview-hover":c("color-white"),"border-color":c("color-grey20"),"border-radius":c("spacing-2")}},ca={"ingredient-card":{border:c("border-sm"),"border-color":c("color-grey20"),"border-color-selected":c("color-primary"),padding:c("spacing-12"),"padding-small":c("spacing-8"),"border-radius":c("spacing-2"),"row-gap":c("spacing-4"),"column-gap":c("spacing-4")}},da={"branded-header":{"startColor-settings":"#048FEC","startColor-devices":"#9747FF","startColor-tools":"#01528A","startColor-performance":"#B4DEFA","endColor-viewBrowse":"#1C00D8","endColor-configure":"#4CC9F0","endColor-manage":"#9A99F2","endColor-troubleshoot":"#53D7C7","endColor-store":"#193C60","endColor-main":"#048FEC","border-bottom-size":c("border-sm"),"border-bottom-color":c("color-grey20"),"background-color":c("color-white"),"column-gap":c("spacing-16"),padding:"12px 20px","badge-size":"52px","badge-radius":"0","line-height":c("spacing-6"),"info-column-gap":c("spacing-10"),"text-wrapper-gap":c("spacing-4")}},ua={"artifact-store-settings":{"row-columns-published":"minmax(96px, 1fr) 64px minmax(244px, 2fr) 96px 60px","row-columns-market":"minmax(96px, 1fr) 64px minmax(244px, 2fr)","row-divider-color":c("color-grey20"),"row-gap":c("spacing-4"),"header-padding":"0px 8px 0px 4px","cell-padding":"12px 8px 12px 4px","name-column-gap":c("spacing-4")}},fa={table:{"row-border-bottom-size":c("border-xsm"),"border-color":c("color-grey20"),"header-background-color-hover":c("color-grey20"),"header-background-color":c("color-grey15"),"cell-padding-x":c("spacing-4"),"cell-padding-y":"11px","cell-padding-right-sortable":c("spacing-8"),"head-gap-sortable":c("spacing-4"),"background-color":c("color-white"),"head-font-size":c("font-size-med"),"head-color":c("color-black"),"head-font-weight":c("font-weight-bold"),"cell-font-size":c("font-size-med"),"cell-color":c("color-black"),"cell-font-weight":c("font-weight-normal"),"font-family":c("font-family-default")}},ga={"resizable-panels":{"border-color":c("color-grey20"),"border-color-hover":c("color-grey30"),"border-color-drag":c("color-grey40"),"handle-width":c("border-sm")}},ha={"file-picker":{"background-color":c("color-grey10"),"background-color-accent":c("color-white"),"selected-background":c("color-primary"),"header-x-padding":c("spacing-20"),"header-y-padding":c("spacing-12"),"header-border-size":c("border-sm"),"header-gap":c("spacing-8"),"header-border-color":c("color-grey20"),"footer-padding-x":c("spacing-12"),"footer-padding-y":c("spacing-10"),"footer-controls-gap":c("spacing-4"),"footer-border-size":c("border-xsm"),"footer-border-color":c("color-grey20"),"search-bar-height":c("spacing-36"),"search-bar-border-size":c("border-sm"),"search-bar-border-color":c("color-grey30"),"search-bar-nav-buttons-gap":c("spacing-12"),"search-bar-padding-x":c("spacing-20"),"search-bar-padding-y":"6.5px","search-bar-radius":c("spacing-2"),"search-bar-edit-button-width":c("spacing-22"),"search-bar-breadcrumb-padding-x":c("spacing-4"),"search-bar-breadcrumb-hover-border":c("color-grey50"),"search-bar-export-button-radius":c("spacing-2"),"search-bar-export-button-background":c("color-primary"),"search-bar-export-button-background-disabled":c("color-grey30"),"nav-panel-y-padding":c("spacing-20"),"nav-panel-x-padding":c("spacing-20"),"nav-panel-gap":c("spacing-40"),"nav-panel-header-bottom-margin":c("spacing-4"),"nav-panel-section-gap":c("spacing-4"),"nav-panel-item-gap":c("spacing-4"),"nav-panel-item-y-padding":c("spacing-2"),"explorer-panel-right-gutter-size":c("spacing-12"),"explorer-panel-padding-y":c("spacing-4"),"explorer-panel-padding-x":c("spacing-10"),"explorer-panel-gap":c("spacing-4"),"explorer-panel-item-padding-x":c("spacing-4"),"explorer-panel-item-padding-y":c("spacing-2"),"explorer-panel-item-icon-gap-left":c("spacing-4"),"explorer-panel-item-icon-gap-right":c("spacing-4"),"explorer-panel-kab-background":c("color-grey10"),"preview-details-gap":c("spacing-10"),"preview-details-gap-small":c("spacing-8"),"preview-icon-size":c("spacing-40"),"preview-icon-y-padding":c("spacing-40"),"preview-icon-y-padding-small":c("spacing-12"),"preview-details-x-padding":c("spacing-20"),"preview-details-x-padding-small":c("spacing-8"),"preview-details-y-padding":c("spacing-10"),"preview-details-item-gap":c("spacing-8"),"preview-details-collapsible-bg":c("color-grey10"),"preview-details-collapsible-gap":c("spacing-4"),"preview-details-collapsible-y-padding":c("spacing-4"),"preview-details-collapsible-border-color":c("color-grey20")}},pa={"shell-icon-button":{padding:"5px"}},ma={"multi-select":{"list-padding":c("spacing-4"),"padding-x":c("spacing-12"),"padding-y":c("spacing-4"),"border-radius":c("spacing-6"),border:c("border-sm"),"border-color":c("color-grey20"),"select-all-border-color":c("color-grey10"),"hover-border-color":c("color-grey40"),gap:c("spacing-4"),background:c("color-white"),"item-padding-x":c("spacing-12"),"item-padding-y":c("spacing-4"),"item-gap":c("spacing-8"),"item-hover-bg":c("color-grey10"),"selected-item-padding-y":c("spacing-2"),"selected-item-padding-x":c("spacing-4"),"selected-item-gap":c("spacing-4"),"selected-item-background":c("color-grey10"),"selected-item-background-hover":c("color-grey20"),"selected-item-radius":c("spacing-4")}},ba={...Mi,...Ii,...Oi,...Ri,...Ni,...Fi,...Ai,..._i,...Wi,...Li,...Bi,...Pi,...Hi,...Vi,...Gi,...Yi,...Ui,...Ki,...qi,...Xi,...Zi,...Ji,...Qi,...ea,...ta,...oa,...na,...ra,...sa,...ia,...aa,...la,...ca,...da,...ua,...fa,...ga,...ha,...pa,...ma},xa={color:{grey0:"#FFFFFF",grey10:"#F6F6F6",grey15:"#F1F1F1",grey20:"#DFDFDF",grey30:"#D9D9D9",grey40:"#C4C4C4",grey50:"#ABABAB",grey60:"#868686",grey65:"#676767",grey70:"#484848",grey80:"#2F2F2F",grey100:"#262626",blue0:"#E6F7FF",blue10:"#C8E8FF",blue20:"#40A9FF",blue30:"#048FEC",blue40:"#096DD9",green0:"#52C41A",red0:"#F40000",orange0:"#FF8500",purple0:"#9747FF",yellow0:"#fffd87",yellow1:"#FFD600"}},ya={"font-size":{"10px":"10px","12px":"12px","14px":"14px","16px":"16px"},"font-weight":{400:"400",700:"700"},"font-family":{Arial:"Arial, sans-serif"},"line-height":{120:"1.2"}},ka={spacing:{"0-5px":"0.5px","1px":"1px","2px":"2px","3px":"3px","4px":"4px","6px":"6px","7px":"7px","8px":"8px","10px":"10px","12px":"12px","14px":"14px","16px":"16px","18px":"18px","20px":"20px","22px":"22px","24px":"24px","26px":"26px","28px":"28px","30px":"30px","32px":"32px","34px":"34px","36px":"36px","40px":"40px"}},va={...xa,...ya,...ka},wa={color:{white:O("color-grey0"),grey10:O("color-grey10"),grey15:O("color-grey15"),grey20:O("color-grey20"),grey30:O("color-grey30"),grey40:O("color-grey40"),grey50:O("color-grey50"),grey60:O("color-grey60"),grey65:O("color-grey65"),grey70:O("color-grey70"),grey80:O("color-grey80"),black:O("color-grey100"),primary:O("color-blue30"),primaryLight:O("color-blue0"),additional1:O("color-blue20"),additional2:O("color-blue40"),additional3:O("color-blue10"),green:O("color-green0"),orange:O("color-orange0"),red:O("color-red0"),purple:O("color-purple0"),blue:O("color-blue30"),yellow:O("color-yellow0")}},Ca={"font-size":{sm:O("font-size-10px"),med:O("font-size-12px"),lrg:O("font-size-14px"),xlrg:O("font-size-16px")},"font-weight":{normal:O("font-weight-400"),bold:O("font-weight-700")},"font-family":{default:O("font-family-Arial")},"line-height":{default:O("line-height-120")}},Sa={spacing:{2:O("spacing-2px"),4:O("spacing-4px"),6:O("spacing-6px"),7:O("spacing-7px"),8:O("spacing-8px"),10:O("spacing-10px"),12:O("spacing-12px"),14:O("spacing-14px"),16:O("spacing-16px"),18:O("spacing-18px"),20:O("spacing-20px"),22:O("spacing-22px"),24:O("spacing-24px"),26:O("spacing-26px"),28:O("spacing-28px"),30:O("spacing-30px"),32:O("spacing-32px"),34:O("spacing-34px"),36:O("spacing-36px"),40:O("spacing-40px")},border:{xsm:O("spacing-0-5px"),sm:O("spacing-1px"),med:O("spacing-2px"),lrg:O("spacing-3px")}},$a={...wa,...Ca,...Sa},I=e=>e.map(t=>(o,n)=>Ut(`--studio-c-${t}-${o}`,n)),Ao=(e,t)=>Object.keys(e).flatMap(o=>Object.keys(e[o]).map(n=>`${t(`${o}-${n}`,!0)}: ${e[o][n]}`)),ja=T.css`
|
|
1
|
+
"use strict";var Ai=Object.defineProperty;var _i=(e,t,o)=>t in e?Ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var J=(e,t,o)=>(_i(e,typeof t!="symbol"?t+"":t,o),o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@emotion/react/jsx-runtime"),d=require("react"),m=require("@emotion/styled"),E=require("@emotion/react"),ir=require("react-dom"),N=require("@floating-ui/react"),Wi=require("@use-gesture/react"),P=require("react-hook-form"),V=require("@kosdev-code/kos-ui-sdk"),Q=require("mobx"),ge=require("@tanstack/react-table"),B=require("date-fns");function Li(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const Kt=Li(d),Bi=e=>{const t=/[\\^$.*+?()[\]{}|]/g;return RegExp(t.source).test(e)?e.replace(t,"\\$&"):e},Pi=e=>e instanceof RegExp,Hi=e=>typeof e=="string",Vi=e=>{let t=[];return e.forEach(o=>{Array.isArray(o)?t=t.concat(o):o&&t.push(o)}),t},Gi=(e,t,o)=>{if(e===""||t==="")return e;let n=t;Pi(n)||(n=new RegExp("("+Bi(n)+")","gi"));const r=e.split(n);for(let s=1,l=r.length;s<l;s+=2){if(r[s]===void 0||r[s-1]===void 0){console.warn("Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}r[s]=o(r[s],s)}return r},ar=(e,t,o)=>{let n=e;return Array.isArray(n)||(n=[n]),Vi(n.map(r=>Hi(r)?Gi(r,t,o):r))},Xt=(e,t)=>t?e:`var(${e})`,I=(e,t)=>Xt(`--studio-g-${e}`,t),c=(e,t)=>Xt(`--studio-s-${e}`,t),Ui={"actionable-blurb":{"row-gap":c("spacing-4"),"icon-column-width":c("spacing-20")}},Yi={"app-shell":{"bg-default":c("color-grey80"),"bg-offline":c("color-grey70"),"bg-locked":c("color-grey60"),color:c("color-white")}},Ki={"artifact-drawer":{"background-color":c("color-grey10"),"border-color":c("color-grey20"),"border-width":c("border-sm"),"padding-x":c("spacing-16"),"branch-padding-x":c("spacing-8"),"artifact-list-y-padding":c("spacing-10"),"artifact-items-gap":c("spacing-10"),"version-items-gap":c("spacing-8"),"version-list-padding":c("spacing-8")}},qi={checkbox:{"background-color":c("color-white"),"border-color":c("color-grey30"),"background-color-disabled":c("color-grey15"),"background-color-checked":c("color-primary"),"border-color-checked":c("color-primary"),"background-color-checked-disabled":c("color-additional3"),"border-color-checked-disabled":c("color-additional3"),size:"14px","border-radius":c("spacing-2"),"border-width":c("border-sm")}},Zi={"collapsible-artifact":{"background-color":c("color-white"),"border-color":c("color-grey20"),"border-radius":c("spacing-6"),"border-width":c("border-xsm"),"button-left-or-right":c("spacing-4"),"button-top":"3px","name-and-desc-spacing":c("spacing-2"),"name-and-selected-spacing":c("spacing-8"),padding:`${c("spacing-6")} ${c("spacing-8")}`},"collapsible-artifact-version":{"background-color-hover":c("color-grey20"),"background-color-inherited":"#9747FF12","background-color-selected":c("color-additional3"),"background-color":c("color-grey10"),"border-color-hover":c("color-grey30"),"border-color-inherited":"#9747FF33","border-color-selected":c("color-primary"),"border-color":c("color-grey20"),"border-radius":c("spacing-2"),"border-width":c("border-sm"),padding:`${c("spacing-6")} ${c("spacing-8")}`}},Xi={"collapsible-list-container":{"border-radius":c("spacing-2"),"border-width":"0.5px","border-color":c("color-grey20")},"collapsible-list-header-container":{"background-color":c("color-grey10"),gap:c("spacing-8"),padding:"7px 8px"},"collapsible-list-toggled-container":{"background-color":c("color-white"),gap:c("spacing-8"),padding:c("spacing-8")}},Ji={drawer:{"header-height":c("spacing-30"),"header-bg":c("color-grey10"),"header-border-size":"1px","header-border-color":c("color-grey20"),"header-x-padding":c("spacing-10"),"border-width":"1px","border-color":c("color-grey20"),"left-drop-shadow":"4px 0px 8px -1px rgba(0,0,0,0.2)","right-drop-shadow":"-4px 0px 8px -1px rgba(0,0,0,0.2)"}},Qi={form:{"access-toggle-gap":c("spacing-16"),"access-toggle-height":c("spacing-36"),"error-message-top-margin":c("spacing-4"),"label-column-gap":c("spacing-16"),"label-error-color":c("color-red"),"label-font-family":c("font-family-default"),"label-font-size":c("font-size-med"),"label-font-weight":c("font-weight-normal"),"label-height":"14px","label-line-height":c("line-height-default"),"label-star-padding":c("spacing-4"),"label-width":"112px","label-area-padding":`${c("spacing-7")} 0`}},ea={"horizontal-rule":{"border-width":"0.5px","border-color":c("color-grey20")}},ta={"icon-button":{padding:"0","border-radius":c("spacing-2"),"background-color":"transparent","border-color":"transparent",cursor:"pointer","disabled-cursor":"not-allowed","badge-fill-black":c("color-black"),"badge-fill-blue":c("color-primary"),"badge-fill-green":c("color-green"),"badge-fill-grey":c("color-grey50"),"badge-fill-orange":c("color-orange"),"badge-fill-purple":c("color-purple"),"badge-fill-red":c("color-red"),"badge-fill-white":c("color-white"),"badge-fill-yellow":c("color-yellow"),"badge-right":"1px","badge-top":"1px","active-background-color":"rgba(255, 255, 255, 0.1)"}},oa={icon:{"fill-black":c("color-black"),"fill-blue":c("color-primary"),"fill-green":c("color-green"),"fill-grey":c("color-grey50"),"fill-orange":c("color-orange"),"fill-purple":c("color-purple"),"fill-red":c("color-red"),"fill-white":c("color-white"),"fill-yellow":c("color-yellow"),"size-lrg":c("spacing-18"),"size-med":c("spacing-16"),"size-sm":c("spacing-14"),"size-xlrg":c("spacing-20"),"size-xsm":c("spacing-12"),"size-xxlrg":c("spacing-22"),"size-xxsm":c("spacing-10")}},na={"image-config-page-header":{gap:c("spacing-16"),"padding-bottom":c("spacing-12"),"title-gap":c("spacing-8"),bg:c("color-white")}},ra={input:{"background-color-disabled":c("color-grey10"),"background-color":c("color-white"),"border-color-active":c("color-black"),"border-color-invalid":c("color-red"),"border-color":c("color-grey30"),"border-radius":c("spacing-2"),"border-width":c("border-sm"),"color-disabled":c("color-grey30"),"font-family":c("font-family-default"),"font-size-small":c("font-size-sm"),"font-size":c("font-size-med"),"font-weight":c("font-weight-normal"),"icon-left":c("spacing-8"),"line-height":c("line-height-default"),"padding-left-icon":c("spacing-28"),"padding-right-icon":c("spacing-28"),"padding-x":c("spacing-8"),"padding-y-small":"2px","padding-y":c("spacing-7"),color:c("color-black"),height:"28px"}},sa={link:{"font-size-med":c("font-size-med"),"font-size-sm":c("font-size-sm"),"font-size-lrg":c("font-size-lrg"),"font-size-xlrg":c("font-size-xlrg"),"font-family":c("font-family-default"),"font-weight":c("font-weight-bold"),"line-height":c("line-height-default"),color:c("color-primary"),"color-hover":c("color-additional1"),"color-active":c("color-additional2"),"color-disabled":c("color-grey30")}},ia={modal:{"overlay-background":"rgba(0, 0, 0, 0.8)","background-color":c("color-white"),headerPadding:c("spacing-10"),headerGap:c("spacing-8"),contentYPadding:c("spacing-10"),contentXPadding:c("spacing-12"),footerYPadding:c("spacing-10"),footerXPadding:c("spacing-12"),footerGap:c("spacing-8"),"border-width":c("border-sm"),"border-color":c("color-grey20"),"base-content-width":"400xp"}},aa={"named-section":{"border-radius":"2px","border-width":"0.5px","selected-border-width":"2px","hover-border-width":c("border-sm"),"border-color":c("color-grey20"),"selected-border-color":c("color-primary")},"named-section-header":{bg:c("color-grey10"),"border-width":"0.5px","border-color":c("color-grey20"),"border-radius":"2px",padding:"8px 10px",gap:c("spacing-8"),"row-gap":c("spacing-4")}},la={segmented:{"border-width":c("border-sm"),"border-radius":c("spacing-2"),padding:c("spacing-2"),"background-color":c("color-grey15"),"border-color":c("color-grey20"),"button-color":c("color-grey60"),"button-color-disabled":c("color-grey40"),"button-background-color":c("color-grey15"),"button-background-color-hover":c("color-grey20"),"button-background-color-active":c("color-grey40"),"button-padding-y":"5px","button-padding-x":"11px","button-border-width":c("border-sm"),"button-border-color":"transparent","button-font-size":c("font-size-med"),"button-font-weight":c("font-weight-normal"),"button-font-family":c("font-family-default"),"button-gap":c("spacing-4"),"indicator-background-color":c("color-white"),"indicator-color":c("color-black")}},ca={select:{"font-size":c("font-size-med"),"border-size":c("border-sm"),"border-color":c("color-grey20")},option:{"column-gap":c("spacing-8"),"font-family":c("font-family-default"),"font-size":c("font-size-med"),"bg-color-active":c("color-grey20"),"bg-color":c("color-white"),"font-weight-selected":c("font-weight-bold"),color:c("color-black"),"color-disabled":c("color-grey40"),padding:"2px 4px"}},da={button:{xpadding:c("spacing-16"),ypadding:c("spacing-6"),br:c("spacing-2"),cursor:"pointer","line-height":c("line-height-default"),"font-size":c("font-size-med"),"ypadding-small":c("spacing-2"),"border-width":"1px","font-weight":c("font-weight-bold"),"icon-margin":`0px ${c("spacing-4")} 0px 0px`,"flex-direction":"row",bg:c("color-primary"),"bg-hover":c("color-additional1"),"bg-active":c("color-additional2"),"bg-disabled":c("color-grey30"),border:c("color-primary"),"border-hover":c("color-additional1"),"border-active":c("color-additional2"),"border-disabled":c("color-grey30"),color:c("color-white"),"color-hover":c("color-white"),"color-active":c("color-white"),"color-disabled":c("color-white"),"bg-secondary":c("color-white"),"bg-hover-secondary":c("color-white"),"bg-active-secondary":c("color-white"),"bg-disabled-secondary":c("color-grey10"),"border-secondary":c("color-primary"),"border-hover-secondary":c("color-additional1"),"border-active-secondary":c("color-additional2"),"border-disabled-secondary":c("color-grey30"),"color-secondary":c("color-primary"),"color-hover-secondary":c("color-additional1"),"color-active-secondary":c("color-additional2"),"color-disabled-secondary":c("color-grey30"),"bg-borderless":c("color-white"),"bg-hover-borderless":c("color-white"),"bg-active-borderless":c("color-white"),"bg-disabled-borderless":c("color-white"),"border-borderless":c("color-white"),"border-hover-borderless":c("color-white"),"border-active-borderless":c("color-white"),"border-disabled-borderless":c("color-white"),"color-borderless":c("color-primary"),"color-hover-borderless":c("color-additional1"),"color-active-borderless":c("color-additional2"),"color-disabled-borderless":c("color-grey30")}},ua={label:{gap:c("spacing-4")},"label-with-action":{gap:c("spacing-8")},"label-with-content-link":{color:c("color-primary")}},fa={text:{"font-family":c("font-family-default"),"line-height":c("line-height-default"),"h1-size":c("font-size-xlrg"),"h2-size":c("font-size-lrg"),"body-size":c("font-size-med"),"small-size":c("font-size-sm"),"font-weight-bold":c("font-weight-bold"),"font-weight-normal":c("font-weight-normal"),"color-dark":c("color-black"),"color-light":c("color-white"),"color-green":c("color-green"),"color-red":c("color-red"),"color-blue":c("color-primary"),"color-grey":c("color-grey60"),"color-disabled":c("color-grey40"),"color-yellow":c("color-yellow"),"color-orange":c("color-orange")}},pa={tab:{"trigger-padding-y":c("spacing-8"),"trigger-padding-x":"0","column-gap":c("spacing-8"),"indicator-height":c("border-lrg"),"indicator-color":c("color-grey60"),"trigger-list-underline-color":c("color-grey20"),"trigger-list-underline-height":c("border-sm")}},ga={tag:{"font-family":c("font-family-default"),"bg-color-orange":c("color-orange"),"bg-color-light":c("color-white"),"bg-color-green":c("color-green"),"bg-color-red":c("color-red"),"bg-color-purple":c("color-purple"),"bg-color-blue":c("color-blue"),"bg-color-disabled":c("color-white"),"color-light":c("color-white"),"color-dark":c("color-black"),"color-disabled":c("color-grey40"),"border-radius":c("border-sm"),"border-color":c("color-grey20"),height:c("spacing-18"),padding:"0px 4px"}},ha={textarea:{padding:c("spacing-8"),"background-color":c("color-white"),"font-size":c("font-size-med"),"font-family":c("font-family-default"),"font-weight":c("font-weight-normal"),color:c("color-black"),"border-width":c("border-sm"),"border-color":c("color-grey30"),"min-height":"60px","border-color-active":c("color-black"),"border-radius":c("spacing-2"),"border-color-invalid":c("color-red"),"background-color-disabled":c("color-grey10"),"color-disabled":c("color-grey30")}},ma={"toggle-container":{gap:"4px"},"toggle-track":{"background-color-checked-disabled":c("color-additional3"),"background-color-checked-enabled":c("color-primary"),"background-color-unchecked-disabled":c("color-grey20"),"background-color-unchecked-enabled":c("color-grey50"),"border-radius":c("spacing-20"),"padding-horizontal":"3px","padding-vertical":"2px","transition-duration":"150ms"},"toggle-thumb":{"background-color-checked-enabled":c("color-white"),"background-color-checked-disabled":c("color-white"),"background-color-unchecked-enabled":c("color-white"),"background-color-unchecked-disabled":c("color-grey15"),"border-radius":"15px","box-shadow":"0px 1px 3px 0px rgba(16, 24, 40, 0.1), 0px 1px 2px -1px rgba(16, 24, 40, 0.1)",height:"8px",width:"8px","transition-duration":"150ms"}},ba={"version-list-container":{gap:c("spacing-16")},"version-list-header":{gap:c("spacing-8"),itemBorderBottom:c("color-grey20"),itemBgColor:c("color-grey10")}},xa={combobox:{"background-color-active":c("color-grey15"),"background-color-selected":c("color-additional3"),"background-color":c("color-white"),"border-radius":"4px","box-shadow":"0px 0px 4px 0px rgba(0, 0, 0, 0.25)","input-border-radius":"6px","option-column-gap":c("spacing-4"),"row-gap":c("spacing-6"),"selection-border-radius":"4px",height:"22px",padding:c("spacing-8")}},ya={"radio-button":{size:c("spacing-14"),"check-size":c("spacing-8"),"border-color":c("color-grey20"),"background-color":c("color-white"),"border-width":c("border-sm"),"border-radius":"50%","border-color-checked":c("color-primary"),"background-color-disabled":c("color-grey10")}},ka={"select-view-list":{"item-height":c("spacing-36"),"padding-left":c("spacing-16"),"padding-right":c("spacing-8"),"border-width":c("border-sm"),"border-color":c("color-grey20"),"background-color":c("color-white"),"background-color-viewing":c("color-grey15"),gap:c("spacing-4")}},va={"shell-menu":{"padding-x":c("spacing-20"),"link-gap":c("spacing-12"),"section-gap":c("spacing-8"),"link-padding-y":c("spacing-2"),"link-padding-x":c("spacing-4")}},wa={"named-list-item":{"column-gap":c("spacing-6"),"row-gap":c("spacing-4"),"color-selected":c("color-white"),"background-color-selected":c("color-primary"),"padding-y":c("spacing-4"),"padding-right":c("spacing-12"),"padding-left":c("spacing-20"),"subtext-padding-with-icon":c("spacing-20")}},Ca={"error-list-item":{"row-gap":c("spacing-4"),"icon-column-width":c("spacing-26"),"padding-x":c("spacing-4"),"padding-y":c("spacing-12"),"background-color":c("color-white"),"background-color-overview":c("color-grey10"),"background-color-hover":c("color-grey10"),"background-color-overview-hover":c("color-white"),"border-color":c("color-grey20"),"border-radius":c("spacing-2")}},Sa={"ingredient-card":{border:c("border-sm"),"border-color":c("color-grey20"),"border-color-selected":c("color-primary"),padding:c("spacing-12"),"padding-small":c("spacing-8"),"border-radius":c("spacing-2"),"row-gap":c("spacing-4"),"column-gap":c("spacing-4")}},$a={"branded-header":{"startColor-settings":"#048FEC","startColor-devices":"#9747FF","startColor-tools":"#01528A","startColor-performance":"#B4DEFA","endColor-viewBrowse":"#1C00D8","endColor-configure":"#4CC9F0","endColor-manage":"#9A99F2","endColor-troubleshoot":"#53D7C7","endColor-store":"#193C60","endColor-main":"#048FEC","border-bottom-size":c("border-sm"),"border-bottom-color":c("color-grey20"),"background-color":c("color-white"),"column-gap":c("spacing-16"),padding:"12px 20px","badge-size":"52px","badge-radius":"0","line-height":c("spacing-6"),"info-column-gap":c("spacing-10"),"text-wrapper-gap":c("spacing-4")}},ja={"artifact-store-settings":{"row-columns-published":"minmax(96px, 1fr) 64px minmax(244px, 2fr) 96px 60px","row-columns-market":"minmax(96px, 1fr) 64px minmax(244px, 2fr)","row-divider-color":c("color-grey20"),"row-gap":c("spacing-4"),"header-padding":"0px 8px 0px 4px","cell-padding":"12px 8px 12px 4px","name-column-gap":c("spacing-4")}},Ta={table:{"row-border-bottom-size":c("border-xsm"),"border-color":c("color-grey20"),"header-background-color-hover":c("color-grey20"),"header-background-color":c("color-grey15"),"cell-padding-x":c("spacing-4"),"cell-padding-y":"11px","cell-padding-right-sortable":c("spacing-8"),"head-gap-sortable":c("spacing-4"),"background-color":c("color-white"),"head-font-size":c("font-size-med"),"head-color":c("color-black"),"head-font-weight":c("font-weight-bold"),"cell-font-size":c("font-size-med"),"cell-color":c("color-black"),"cell-font-weight":c("font-weight-normal"),"font-family":c("font-family-default")}},Da={"resizable-panels":{"border-color":c("color-grey20"),"border-color-hover":c("color-grey30"),"border-color-drag":c("color-grey40"),"handle-width":c("border-sm")}},Ea={"file-picker":{"background-color":c("color-grey10"),"background-color-accent":c("color-white"),"selected-background":c("color-primary"),"header-x-padding":c("spacing-20"),"header-y-padding":c("spacing-12"),"header-border-size":c("border-sm"),"header-gap":c("spacing-8"),"header-border-color":c("color-grey20"),"footer-padding-x":c("spacing-12"),"footer-padding-y":c("spacing-10"),"footer-controls-gap":c("spacing-4"),"footer-border-size":c("border-xsm"),"footer-border-color":c("color-grey20"),"search-bar-height":c("spacing-36"),"search-bar-border-size":c("border-sm"),"search-bar-border-color":c("color-grey30"),"search-bar-nav-buttons-gap":c("spacing-12"),"search-bar-padding-x":c("spacing-20"),"search-bar-padding-y":"6.5px","search-bar-radius":c("spacing-2"),"search-bar-edit-button-width":c("spacing-22"),"search-bar-breadcrumb-padding-x":c("spacing-4"),"search-bar-breadcrumb-hover-border":c("color-grey50"),"search-bar-export-button-radius":c("spacing-2"),"search-bar-export-button-background":c("color-primary"),"search-bar-export-button-background-disabled":c("color-grey30"),"nav-panel-y-padding":c("spacing-20"),"nav-panel-x-padding":c("spacing-20"),"nav-panel-gap":c("spacing-40"),"nav-panel-header-bottom-margin":c("spacing-4"),"nav-panel-section-gap":c("spacing-4"),"nav-panel-item-gap":c("spacing-4"),"nav-panel-item-y-padding":c("spacing-2"),"explorer-panel-right-gutter-size":c("spacing-12"),"explorer-panel-padding-y":c("spacing-4"),"explorer-panel-padding-x":c("spacing-10"),"explorer-panel-gap":c("spacing-4"),"explorer-panel-item-padding-x":c("spacing-4"),"explorer-panel-item-padding-y":c("spacing-2"),"explorer-panel-item-icon-gap-left":c("spacing-4"),"explorer-panel-item-icon-gap-right":c("spacing-4"),"explorer-panel-kab-background":c("color-grey10"),"preview-details-gap":c("spacing-10"),"preview-details-gap-small":c("spacing-8"),"preview-icon-size":c("spacing-40"),"preview-icon-y-padding":c("spacing-40"),"preview-icon-y-padding-small":c("spacing-12"),"preview-details-x-padding":c("spacing-20"),"preview-details-x-padding-small":c("spacing-8"),"preview-details-y-padding":c("spacing-10"),"preview-details-item-gap":c("spacing-8"),"preview-details-collapsible-bg":c("color-grey10"),"preview-details-collapsible-gap":c("spacing-4"),"preview-details-collapsible-y-padding":c("spacing-4"),"preview-details-collapsible-border-color":c("color-grey20")}},Ma={"shell-icon-button":{padding:"5px"}},za={"multi-select":{"list-padding":c("spacing-4"),"padding-x":c("spacing-12"),"padding-y":c("spacing-4"),"border-radius":c("spacing-6"),border:c("border-sm"),"border-color":c("color-grey20"),"select-all-border-color":c("color-grey10"),"hover-border-color":c("color-grey40"),gap:c("spacing-4"),background:c("color-white"),"item-padding-x":c("spacing-12"),"item-padding-y":c("spacing-4"),"item-gap":c("spacing-8"),"item-hover-bg":c("color-grey10"),"selected-item-padding-y":c("spacing-2"),"selected-item-padding-x":c("spacing-4"),"selected-item-gap":c("spacing-4"),"selected-item-background":c("color-grey10"),"selected-item-background-hover":c("color-grey20"),"selected-item-radius":c("spacing-4")}},Oa={badge:{"color-blue":c("color-blue"),"color-blue-border":"rgba(4, 143, 236, 0.5)","color-red":c("color-red"),"color-red-border":"rgba(244, 0, 0, 0.5)","color-white":c("color-white"),"color-white-border":"rgba(255, 255, 255, 0.5)","color-black":c("color-black"),"color-black-border":"rgba(0, 0, 0, 0.5)","color-orange":c("color-orange"),"color-orange-border":"rgba(255, 133, 0, 0.5)","color-green":c("color-green"),"color-green-border":"rgba(82, 196, 26, 0.5)"}},Ia={...Ui,...Yi,...Ki,...qi,...Zi,...Xi,...Ji,...Qi,...ea,...ta,...oa,...na,...ra,...sa,...ia,...aa,...la,...ca,...da,...ua,...fa,...pa,...ga,...ha,...ma,...ba,...xa,...ya,...Oa,...ka,...va,...wa,...Ca,...Sa,...$a,...ja,...Ta,...Da,...Ea,...Ma,...za},Ra={color:{grey0:"#FFFFFF",grey10:"#F6F6F6",grey15:"#F1F1F1",grey20:"#DFDFDF",grey30:"#D9D9D9",grey40:"#C4C4C4",grey50:"#ABABAB",grey60:"#868686",grey65:"#676767",grey70:"#484848",grey80:"#2F2F2F",grey100:"#262626",blue0:"#E6F7FF",blue10:"#C8E8FF",blue20:"#40A9FF",blue30:"#048FEC",blue40:"#096DD9",green0:"#52C41A",red0:"#F40000",orange0:"#FF8500",purple0:"#9747FF",yellow0:"#fffd87",yellow1:"#FFD600"}},Na={"font-size":{"10px":"10px","12px":"12px","14px":"14px","16px":"16px"},"font-weight":{400:"400",700:"700"},"font-family":{Arial:"Arial, sans-serif"},"line-height":{120:"1.2"}},Fa={spacing:{"0-5px":"0.5px","1px":"1px","2px":"2px","3px":"3px","4px":"4px","6px":"6px","7px":"7px","8px":"8px","10px":"10px","12px":"12px","14px":"14px","16px":"16px","18px":"18px","20px":"20px","22px":"22px","24px":"24px","26px":"26px","28px":"28px","30px":"30px","32px":"32px","34px":"34px","36px":"36px","40px":"40px"}},Aa={...Ra,...Na,...Fa},_a={color:{white:I("color-grey0"),grey10:I("color-grey10"),grey15:I("color-grey15"),grey20:I("color-grey20"),grey30:I("color-grey30"),grey40:I("color-grey40"),grey50:I("color-grey50"),grey60:I("color-grey60"),grey65:I("color-grey65"),grey70:I("color-grey70"),grey80:I("color-grey80"),black:I("color-grey100"),primary:I("color-blue30"),primaryLight:I("color-blue0"),additional1:I("color-blue20"),additional2:I("color-blue40"),additional3:I("color-blue10"),green:I("color-green0"),orange:I("color-orange0"),red:I("color-red0"),purple:I("color-purple0"),blue:I("color-blue30"),yellow:I("color-yellow0")}},Wa={"font-size":{sm:I("font-size-10px"),med:I("font-size-12px"),lrg:I("font-size-14px"),xlrg:I("font-size-16px")},"font-weight":{normal:I("font-weight-400"),bold:I("font-weight-700")},"font-family":{default:I("font-family-Arial")},"line-height":{default:I("line-height-120")}},La={spacing:{2:I("spacing-2px"),4:I("spacing-4px"),6:I("spacing-6px"),7:I("spacing-7px"),8:I("spacing-8px"),10:I("spacing-10px"),12:I("spacing-12px"),14:I("spacing-14px"),16:I("spacing-16px"),18:I("spacing-18px"),20:I("spacing-20px"),22:I("spacing-22px"),24:I("spacing-24px"),26:I("spacing-26px"),28:I("spacing-28px"),30:I("spacing-30px"),32:I("spacing-32px"),34:I("spacing-34px"),36:I("spacing-36px"),40:I("spacing-40px")},border:{xsm:I("spacing-0-5px"),sm:I("spacing-1px"),med:I("spacing-2px"),lrg:I("spacing-3px")}},Ba={..._a,...Wa,...La},O=e=>e.map(t=>(o,n)=>Xt(`--studio-c-${t}-${o}`,n)),Uo=(e,t)=>Object.keys(e).flatMap(o=>Object.keys(e[o]).map(n=>`${t(`${o}-${n}`,!0)}: ${e[o][n]}`)),Pa=E.css`
|
|
2
2
|
:root {
|
|
3
|
-
${
|
|
3
|
+
${Uo(Ba,c)}
|
|
4
4
|
}
|
|
5
|
-
`,
|
|
5
|
+
`,Ha=E.css`
|
|
6
6
|
:root {
|
|
7
7
|
.rdp-root {
|
|
8
8
|
--rdp-accent-color: ${c("color-primary")};
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
${
|
|
11
|
+
${Uo(Aa,I)}
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,Va=E.css`
|
|
14
14
|
:root {
|
|
15
|
-
${
|
|
15
|
+
${Uo(Ia,(e,t)=>Xt(`--studio-c-${e}`,t))}
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,Ga=E.css`
|
|
18
18
|
:root {
|
|
19
19
|
// viewable list item
|
|
20
20
|
--studio-component-viewable-list-item-padding-inline: var(
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
--studio-generic-padding-x-small
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
42
|
+
`,Ua=E.css`
|
|
43
43
|
:root {
|
|
44
44
|
// button
|
|
45
45
|
--studio-component-button-background-color-active: var(
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
--studio-component-button-gap: var(--studio-semantic-control-gap);
|
|
106
106
|
--studio-component-button-padding: 10px 40px;
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,Ya=E.css`
|
|
109
109
|
:root {
|
|
110
110
|
// list item
|
|
111
111
|
--studio-component-list-item-border-color-selected: var(
|
|
@@ -138,17 +138,17 @@
|
|
|
138
138
|
--studio-semantic-component-list-padding-inline
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
141
|
+
`,Ka=E.css`
|
|
142
142
|
:root {
|
|
143
143
|
//list
|
|
144
144
|
--studio-component-list-border-color-default: var(
|
|
145
145
|
--studio-generic-color-grey-20
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,lr=E.css`
|
|
149
149
|
:root {
|
|
150
150
|
}
|
|
151
|
-
`,
|
|
151
|
+
`,Oo=[lr,Ga,Ua,Ya,Ka],Io=E.css`
|
|
152
152
|
:root {
|
|
153
153
|
/* radius */
|
|
154
154
|
--studio-generic-border-radius-small: 4px;
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
--studio-generic-center-text-align: center;
|
|
248
248
|
// --studio-generic-center-text-align: var(--studio-generic-color-white, #f0f0f0);
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
`,Ro=E.css`
|
|
251
251
|
:root {
|
|
252
252
|
// colour
|
|
253
253
|
--studio-semantic-color-system-green: var(--studio-generic-color-green-100);
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
)
|
|
502
502
|
var(--studio-generic-padding-small);
|
|
503
503
|
}
|
|
504
|
-
`,
|
|
504
|
+
`,No=E.css`
|
|
505
505
|
::-webkit-scrollbar {
|
|
506
506
|
background-color: transparent;
|
|
507
507
|
height: 8px;
|
|
@@ -522,14 +522,14 @@
|
|
|
522
522
|
code {
|
|
523
523
|
font-family: var(--ddk-generic-font-family-code);
|
|
524
524
|
}
|
|
525
|
-
`,Oa=e=>e==="studio"?[jo,So,...Co,$o]:[jo,So,...Co,$o],Xn={"--palette-red-0":"hsl(0, 80%, 94%);","--palette-red-1":"hsl(0, 80%, 90%);","--palette-red-2":"hsl(0, 80%, 86%);","--palette-red-3":"hsl(0, 80%, 77%);","--palette-red-4":"hsl(0, 80%, 68%);","--palette-red-5":"hsl(0, 80%, 59%);","--palette-red-6":"hsl(0, 80%, 50%);","--palette-red-7":"hsl(0, 80%, 41%);","--palette-red-8":"hsl(0, 80%, 32%);","--palette-red-9":"hsl(0, 80%, 23%);","--palette-pink-0":"hsl(339, 80%, 94%);","--palette-pink-1":"hsl(339, 80%, 90%);","--palette-pink-2":"hsl(339, 80%, 86%);","--palette-pink-3":"hsl(339, 80%, 77%);","--palette-pink-4":"hsl(339, 80%, 68%);","--palette-pink-5":"hsl(339, 80%, 59%);","--palette-pink-6":"hsl(339, 80%, 50%);","--palette-pink-7":"hsl(339, 80%, 41%);","--palette-pink-8":"hsl(339, 80%, 32%);","--palette-pink-9":"hsl(339, 80%, 23%);","--palette-grape-0":"hsl(288, 80%, 94%);","--palette-grape-1":"hsl(288, 80%, 90%);","--palette-grape-2":"hsl(288, 80%, 86%);","--palette-grape-3":"hsl(288, 80%, 77%);","--palette-grape-4":"hsl(288, 80%, 68%);","--palette-grape-5":"hsl(288, 80%, 59%);","--palette-grape-6":"hsl(288, 80%, 50%);","--palette-grape-7":"hsl(288, 80%, 41%);","--palette-grape-8":"hsl(288, 80%, 32%);","--palette-grape-9":"hsl(288, 80%, 23%);","--palette-violet-0":"hsl(255, 80%, 94%);","--palette-violet-1":"hsl(255, 80%, 90%);","--palette-violet-2":"hsl(255, 80%, 86%);","--palette-violet-3":"hsl(255, 80%, 77%);","--palette-violet-4":"hsl(255, 80%, 68%);","--palette-violet-5":"hsl(255, 80%, 59%);","--palette-violet-6":"hsl(255, 80%, 50%);","--palette-violet-7":"hsl(255, 80%, 41%);","--palette-violet-8":"hsl(255, 80%, 32%);","--palette-violet-9":"hsl(255, 80%, 23%);","--palette-indigo-0":"hsl(230, 80%, 94%);","--palette-indigo-1":"hsl(230, 80%, 90%);","--palette-indigo-2":"hsl(230, 80%, 86%);","--palette-indigo-3":"hsl(230, 80%, 77%);","--palette-indigo-4":"hsl(230, 80%, 68%);","--palette-indigo-5":"hsl(230, 80%, 59%);","--palette-indigo-6":"hsl(230, 80%, 50%);","--palette-indigo-7":"hsl(230, 80%, 41%);","--palette-indigo-8":"hsl(230, 80%, 32%);","--palette-indigo-9":"hsl(230, 80%, 23%);","--palette-blue-0":"hsl(208, 80%, 94%);","--palette-blue-1":"hsl(208, 80%, 90%);","--palette-blue-2":"hsl(208, 80%, 86%);","--palette-blue-3":"hsl(208, 80%, 77%);","--palette-blue-4":"hsl(208, 80%, 68%);","--palette-blue-5":"hsl(208, 80%, 59%);","--palette-blue-6":"hsl(208, 80%, 50%);","--palette-blue-7":"hsl(208, 80%, 41%);","--palette-blue-8":"hsl(208, 80%, 32%);","--palette-blue-9":"hsl(208, 80%, 23%);","--palette-cyan-0":"hsl(188, 80%, 94%);","--palette-cyan-1":"hsl(188, 80%, 90%);","--palette-cyan-2":"hsl(188, 80%, 86%);","--palette-cyan-3":"hsl(188, 80%, 77%);","--palette-cyan-4":"hsl(188, 80%, 68%);","--palette-cyan-5":"hsl(188, 80%, 59%);","--palette-cyan-6":"hsl(188, 80%, 50%);","--palette-cyan-7":"hsl(188, 80%, 41%);","--palette-cyan-8":"hsl(188, 80%, 32%);","--palette-cyan-9":"hsl(188, 80%, 23%);","--palette-teal-0":"hsl(162, 80%, 94%);","--palette-teal-1":"hsl(162, 80%, 90%);","--palette-teal-2":"hsl(162, 80%, 86%);","--palette-teal-3":"hsl(162, 80%, 77%);","--palette-teal-4":"hsl(162, 80%, 68%);","--palette-teal-5":"hsl(162, 80%, 59%);","--palette-teal-6":"hsl(162, 80%, 50%);","--palette-teal-7":"hsl(162, 80%, 41%);","--palette-teal-8":"hsl(162, 80%, 32%);","--palette-teal-9":"hsl(162, 80%, 23%);","--palette-green-0":"hsl(131, 80%, 94%);","--palette-green-1":"hsl(131, 80%, 90%);","--palette-green-2":"hsl(131, 80%, 86%);","--palette-green-3":"hsl(131, 80%, 77%);","--palette-green-4":"hsl(131, 80%, 68%);","--palette-green-5":"hsl(131, 80%, 59%);","--palette-green-6":"hsl(131, 80%, 50%);","--palette-green-7":"hsl(131, 80%, 41%);","--palette-green-8":"hsl(131, 80%, 32%);","--palette-green-9":"hsl(131, 80%, 23%);","--palette-lime-0":"hsl(85, 80%, 94%);","--palette-lime-1":"hsl(85, 80%, 90%);","--palette-lime-2":"hsl(85, 80%, 86%);","--palette-lime-3":"hsl(85, 80%, 77%);","--palette-lime-4":"hsl(85, 80%, 68%);","--palette-lime-5":"hsl(85, 80%, 59%);","--palette-lime-6":"hsl(85, 80%, 50%);","--palette-lime-7":"hsl(85, 80%, 41%);","--palette-lime-8":"hsl(85, 80%, 32%);","--palette-lime-9":"hsl(85, 80%, 23%);","--palette-yellow-0":"hsl(39, 80%, 94%);","--palette-yellow-1":"hsl(39, 80%, 90%);","--palette-yellow-2":"hsl(39, 80%, 86%);","--palette-yellow-3":"hsl(39, 80%, 77%);","--palette-yellow-4":"hsl(39, 80%, 68%);","--palette-yellow-5":"hsl(39, 80%, 59%);","--palette-yellow-6":"hsl(39, 80%, 50%);","--palette-yellow-7":"hsl(39, 80%, 41%);","--palette-yellow-8":"hsl(39, 80%, 32%);","--palette-yellow-9":"hsl(39, 80%, 23%);","--palette-orange-0":"hsl(24, 80%, 94%);","--palette-orange-1":"hsl(24, 80%, 90%);","--palette-orange-2":"hsl(24, 80%, 86%);","--palette-orange-3":"hsl(24, 80%, 77%);","--palette-orange-4":"hsl(24, 80%, 68%);","--palette-orange-5":"hsl(24, 80%, 59%);","--palette-orange-6":"hsl(24, 80%, 50%);","--palette-orange-7":"hsl(24, 80%, 41%);","--palette-orange-8":"hsl(24, 80%, 32%);","--palette-orange-9":"hsl(24, 80%, 23%);","--palette-neutral":"hsl(0, 0%, 98%);","--palette-neutral-0":"hsl(0, 0%, 97%);","--palette-neutral-1":"hsl(0, 0%, 93%);","--palette-neutral-2":"hsl(0, 0%, 87%);","--palette-neutral-3":"hsl(0, 0%, 77%);","--palette-neutral-4":"hsl(0, 0%, 68%);","--palette-neutral-5":"hsl(0, 0%, 59%);","--palette-neutral-6":"hsl(0, 0%, 50%);","--palette-neutral-7":"hsl(0, 0%, 41%);","--palette-neutral-8":"hsl(0, 0%, 32%);","--palette-neutral-9":"hsl(0, 0%, 18%);","--color-grey-0":"var(--palette-neutral-0)","--color-grey-1":"var(--palette-neutral-1)","--color-grey-2":"var(--palette-neutral-2)","--color-grey-3":"var(--palette-neutral-3)","--color-grey-4":"var(--palette-neutral-4)","--color-grey-5":"var(--palette-neutral-5)","--color-grey-6":"var(--palette-neutral-6)","--color-grey-7":"var(--palette-neutral-7)","--color-grey-8":"var(--palette-neutral-8)","--color-grey-9":"var(--palette-neutral-9)","--color-clouds-0":"hsl(192, 15%, 99%);","--color-clouds-1":"hsl(192, 15%, 97%);","--color-clouds-2":"hsl(192, 15%, 96%);","--color-clouds-3":"hsl(192, 15%, 95%);","--color-clouds-4":"hsl(192, 15%, 94%);","--color-error":"#F40000","--color-success":"#52C41A"},Zn={"--kos-layer-1-color":"var(--palette-neutral-2);","--kos-layer-2-color":"var(--palette-neutral-1);","--kos-layer-3-color":"var(--palette-neutral-0);","--kos-primary-1":"var(--palette-neutral-1);","--kos-primary-2":"var(--palette-neutral-2);","--kos-primary-3":"var(--palette-neutral-3);","--kos-primary-4":"var(--palette-neutral-4);","--kos-primary-5":"var(--palette-neutral-5);","--kos-primary-6":"var(--palette-neutral-6);","--kos-primary-7":"var(--palette-neutral-7);","--kos-primary-8":"var(--palette-neutral-8);","--kos-primary-9":"var(--palette-neutral-9);","--kos-accent-1":"var(--palette-blue-1)","--kos-accent-2":"var(--palette-blue-2)","--kos-accent-3":"var(--palette-blue-3)","--kos-accent-4":"var(--palette-blue-4)","--kos-accent-5":"var(--palette-blue-5)","--kos-accent-6":"var(--palette-blue-6)","--kos-accent-7":"var(--palette-blue-7)","--kos-accent-8":"var(--palette-blue-8)","--kos-accent-9":"var(--palette-blue-9)","--kos-primary-color":"var(--kos-primary-8);","--kos-border-color":"var(--palette-neutral-3)","--kos-primary-color-hover":"var(--kos-primary-7);","--kos-primary-color-active":"var(--kos-primary-9);","--kos-primary-color-outline":"var(--kos-primary-6);","--kos-background-color":"var(--palette-neutral-1);","--kos-background-color-hover":"var(--palette-neutral-1);","--kos-background-color-active":"var(--palette-neutral-1);","--kos-background-color-outline":"var(--palette-neutral-1);","--kos-accent-background-color":"var(--kos-primary-9);","--kos-accent-typography-color":"white;","--kos-typography-color":"var(--palette-neutral-9);","--kos-typography-color-hover":"var(--kos-primary-color-hover);","--kos-typography-color-selected":"var(--kos-primary-color-active);","--kos-app-header-background-color":"var(--kos-accent-background-color);","--kos-app-header-typography-color":"white;","--kos-app-sidebar-background-color":"var(--kos-layer-1-color);","--kos-page-header-background-color":"var(--kos-layer-2-color);","--kos-artifact-qualifier-tag-color":"var(--kos-accent-6);","--kos-table-header-background-color":"var(--kos-accent-background-color);","--kos-table-header-typography-color":"var(--kos-accent-typography-color);","--kos-list-item-header-background-color":"white;","--kos-typography-color-link":"hsl(204, 97%, 40%);","--kos-typography-color-link-hover":"hsl(204, 97%, 60%);","--kos-list-item-color-selected":"hsl(204, 97%, 47%);","--kos-list-item-icon-color-selected":"white","--kos-accent-color":"#048FEC","--kos-primary-button-color":"#048FEC","--kos-primary-button-hover-color":"#40A9FF","--kos-primary-button-active-color":"#096DD9","--kos-primary-button-text-color":"#FFFFFF","--kos-shell-menu-button-hover-color":"var(--kos-generic-color-grey-70)"},Jn={"--kos-layer-1-color":"var(--palette-neutral-2);","--kos-layer-2-color":"var(--palette-neutral-1);","--kos-layer-3-color":"var(--palette-neutral-0);","--kos-primary-1":"var(--palette-neutral-1);","--kos-primary-2":"var(--palette-neutral-2);","--kos-primary-3":"var(--palette-neutral-3);","--kos-primary-4":"var(--palette-neutral-4);","--kos-primary-5":"var(--palette-neutral-5);","--kos-primary-6":"var(--palette-neutral-6);","--kos-primary-7":"var(--palette-neutral-7);","--kos-primary-8":"var(--palette-neutral-8);","--kos-primary-9":"var(--palette-neutral-9);","--kos-accent-1":"var(--palette-blue-1)","--kos-accent-2":"var(--palette-blue-2)","--kos-accent-3":"var(--palette-blue-3)","--kos-accent-4":"var(--palette-blue-4)","--kos-accent-5":"var(--palette-blue-5)","--kos-accent-6":"var(--palette-blue-6)","--kos-accent-7":"var(--palette-blue-7)","--kos-accent-8":"var(--palette-blue-8)","--kos-accent-9":"var(--palette-blue-9)","--kos-primary-color":"var(--kos-primary-8);","--kos-border-color":"var(--palette-neutral-3)","--kos-primary-color-hover":"var(--kos-primary-7);","--kos-primary-color-active":"var(--kos-primary-9);","--kos-primary-color-outline":"var(--kos-primary-6);","--kos-background-color":"var(--palette-neutral-1);","--kos-background-color-hover":"var(--palette-neutral-1);","--kos-background-color-active":"var(--palette-neutral-1);","--kos-background-color-outline":"var(--palette-neutral-1);","--kos-accent-background-color":"var(--kos-primary-9);","--kos-accent-typography-color":"white;","--kos-typography-color":"var(--palette-neutral-9);","--kos-typography-color-hover":"var(--kos-primary-color-hover);","--kos-typography-color-selected":"var(--kos-primary-color-active);","--kos-app-header-background-color":"var(--kos-accent-background-color);","--kos-app-header-typography-color":"white;","--kos-app-sidebar-background-color":"var(--kos-layer-1-color);","--kos-page-header-background-color":"var(--kos-layer-2-color);","--kos-artifact-qualifier-tag-color":"var(--kos-accent-6);","--kos-table-header-background-color":"var(--kos-accent-background-color);","--kos-table-header-typography-color":"var(--kos-accent-typography-color);","--kos-list-item-header-background-color":"white;","--kos-typography-color-link":"hsl(204, 97%, 40%);","--kos-typography-color-link-hover":"hsl(204, 97%, 60%);","--kos-list-item-color-selected":"hsl(204, 97%, 47%);","--kos-list-item-icon-color-selected":"white","--kos-accent-color":"var(--kos-generic-color-blue-primary)","--kos-primary-button-color":"var(--kos-generic-color-blue-primary)","--kos-primary-button-hover-color":"#40A9FF","--kos-primary-button-active-color":"#096DD9","--kos-primary-button-text-color":"#FFFFFF"},Qn={"--kos-generic-color-black":"#262626","--kos-generic-color-blue-additional-1":"#40A9FF","--kos-generic-color-blue-additional-2":"#096DD9","--kos-generic-color-blue-additional-3":"#C8E8FF","--kos-generic-color-blue-primary":"#048FEC","--kos-generic-color-grey-10":"#FAFAFA","--kos-generic-color-grey-15":"#f1f1f1","--kos-generic-color-grey-20":"#DFDFDF","--kos-generic-color-grey-30":"#D9D9D9","--kos-generic-color-grey-40":"#C4C4C4","--kos-generic-color-grey-50":"#ABABAB","--kos-generic-color-grey-60":"#868686","--kos-generic-color-grey-70":"#484848","--kos-generic-color-grey-80":"#2F2F2F","--kos-generic-color-white":"#FFFFFF","--kos-generic-table-header":"#F6F6F6","--kos-system-orange":"#FF8500","--kos-system-green":"#52C41A"},Ra={"--kos-size-xxxxs":"1.5rem","--kos-size-xxxs":"3rem","--kos-size-xxs":"6rem","--kos-size-xs":"12rem","--kos-size-s":"15rem","--kos-size-m":"20rem","--kos-size-lg":"25rem","--kos-size-xl":"40rem","--kos-size-xxl":"60rem"},Na={"--kos-border-radius-circle":"50%","--kos-border-radius-large":"0.5rem","--kos-border-radius-medium":"0.25rem","--kos-border-radius-small":"0.125rem","--kos-border-radius":"var(--kos-border-radius-medium)","--kos-spacing-xxxs":".125rem","--kos-spacing-xxs":".25rem","--kos-spacing-xs":".5rem","--kos-spacing-s":".75rem","--kos-spacing-m":"1rem","--kos-spacing-lg":"1.5rem","--kos-spacing-xlg":"2rem","--kos-spacing-xxlg":"3rem"},yn={"--kos-font-family":"Arial, Helvetica, sans-serif","--kos-line-height-body":"14.4px","--kos-line-height-small":"12px","--kos-line-height-body-modal":"14px","--kos-line-height-body-bold":"13px","--kos-line-height-card-title":"18px","--kos-line-height-card-detail":"14px","--kos-line-height-heading-small":"20px","--kos-line-height-heading-medium":"24px","--kos-line-height-heading-large":"30px","--kos-font-family-body":"var(--kos-font-family)","--kos-font-family-body-bold":"var(--kos-font-family)","--kos-font-family-card-title":"var(--kos-font-family)","--kos-font-family-card-detail":"var(--kos-font-family)","--kos-font-family-heading-small":"var(--kos-font-family)","--kos-font-family-heading-medium":"var(--kos-font-family)","--kos-font-family-heading-large":"var(--kos-font-family)","--kos-font-size-body-modal":"12px","--kos-font-size-body":"12px","--kos-font-size-body-bold":"14px","--kos-font-size-card-title":"16px","--kos-font-size-card-detail":"12px","--kos-font-size-heading-small":"14px","--kos-font-size-heading-medium":"16px","--kos-font-size-heading-large":"20px","--kos-font-weight-body":"400","--kos-font-weight-body-bold":"700","--kos-font-weight-card-title":"700","--kos-font-weight-card-detail":"400","--kos-font-weight-heading-small":"700","--kos-font-weight-heading-medium":"700","--kos-font-weight-heading-large":"700"},Fa={"--kos-connection-manager-heading-font-family":"var(--kos-font-family)","--kos-connection-manager-heading-font-size":"14px","--kos-connection-manager-heading-font-style":"","--kos-connection-manager-heading-font-weight":"","--kos-connection-manager-heading-line-height":"","--kos-connection-manager-item-heading-font-family":"","--kos-connection-manager-item-heading-font-size":"","--kos-connection-manager-item-heading-font-style":"","--kos-connection-manager-item-heading-font-weight":"","--kos-connection-manager-item-heading-line-height":"","--kos-connection-manager-image-name-font-family":"","--kos-connection-manager-image-name-font-size":"","--kos-connection-manager-image-name-font-style":"","--kos-connection-manager-image-name-font-weight":"","--kos-connection-manager-image-name-line-height":"","--kos-connection-manager-view-name-font-family":"","--kos-connection-manager-view-name-font-size":"","--kos-connection-manager-view-name-font-style":"","--kos-connection-manager-view-name-font-weight":"","--kos-connection-manager-view-name-line-height":"","--kos-connection-manager-status-label-font-family":"","--kos-connection-manager-status-label-font-size":"10px","--kos-connection-manager-status-label-font-style":"","--kos-connection-manager-status-label-font-weight":"","--kos-connection-manager-status-label-line-height":"","--kos-connection-manager-status-text-font-family":"","--kos-connection-manager-status-text-font-size":"","--kos-connection-manager-status-text-font-style":"","--kos-connection-manager-status-text-font-weight":"","--kos-connection-manager-status-text-line-height":"","--kos-connection-manager-active-tools-heading-font-family":"","--kos-connection-manager-active-tools-heading-font-size":"10px","--kos-connection-manager-active-tools-heading-font-style":"","--kos-connection-manager-active-tools-heading-font-weight":"700","--kos-connection-manager-active-tools-heading-line-height":"","--kos-connection-manager-active-tools-item-font-family":"","--kos-connection-manager-active-tools-item-font-size":"10px","--kos-connection-manager-active-tools-item-font-style":"","--kos-connection-manager-active-tools-item-font-weight":"400","--kos-connection-manager-active-tools-item-line-height":"","--kos-connection-manager-start-new-tool-font-family":"","--kos-connection-manager-start-new-tool-font-size":"12px","--kos-connection-manager-start-new-tool-font-style":"","--kos-connection-manager-start-new-tool-font-weight":"","--kos-connection-manager-start-new-tool-line-height":"","--kos-connection-manager-input-font-family":"","--kos-connection-manager-input-font-size":"","--kos-connection-manager-input-font-style":"","--kos-connection-manager-input-font-weight":"","--kos-connection-manager-input-line-height":"10px","--kos-connection-manager-icon-small-font-size":"10px","--kos-connection-manager-icon-medium-font-size":"12px","--kos-connection-manager-icon-busy-color":"#0000F4","--kos-connection-manager-icon-error-color":"#F40000","--kos-connection-manager-icon-idle-color":"#858585","--kos-connection-manager-icon-success-color":"#52C41A","--kos-connection-manager-connecting-effect-background-color":"#ECFBDF","--kos-component-button-primary-background-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-primary-background-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-primary-background-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-primary-background-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-button-primary-border-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-primary-border-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-primary-border-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-primary-border-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-button-primary-color":"var(--kos-generic-color-white)","--kos-component-button-secondary-background-color":"var(--kos-generic-color-white)","--kos-component-button-secondary-background-color-disabled":"var(--kos-generic-color-grey-10)","--kos-component-button-secondary-border-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-secondary-border-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-secondary-border-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-secondary-border-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-button-secondary-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-secondary-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-secondary-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-secondary-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-button-borderless-background-color":"transparent","--kos-component-button-borderless-border-color":"transparent","--kos-component-button-borderless-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-borderless-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-borderless-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-borderless-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-checkbox-default-background-color":"var(--kos-generic-color-white)","--kos-component-checkbox-default-border-color-default":"var(--kos-generic-color-grey-30)","--kos-component-checkbox-default-border-color-hover":"var(--kos-generic-color-grey-10)","--kos-component-checkbox-default-border-color-clicked":"var(--kos-generic-color-grey-50)","--kos-component-checkbox-default-color":"transparent","--kos-component-checkbox-filled-background-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-checkbox-filled-background-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-checkbox-filled-background-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-checkbox-filled-border-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-checkbox-filled-border-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-checkbox-filled-border-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-checkbox-filled-color":"var(--kos-generic-color-white)","--kos-component-checkbox-disabled-background-color":"var(--kos-generic-color-grey-30)","--kos-component-checkbox-disabled-border-color":"var(--kos-generic-color-grey-30)","--kos-component-checkbox-disabled-color":"var(--kos-generic-color-white)","--kos-simulator-config-details-border":"var(--kos-generic-color-grey-30)"},Aa=T.css`
|
|
525
|
+
`,qa=e=>e==="studio"?[No,Io,...Oo,Ro]:[No,Io,...Oo,Ro],cr={"--palette-red-0":"hsl(0, 80%, 94%);","--palette-red-1":"hsl(0, 80%, 90%);","--palette-red-2":"hsl(0, 80%, 86%);","--palette-red-3":"hsl(0, 80%, 77%);","--palette-red-4":"hsl(0, 80%, 68%);","--palette-red-5":"hsl(0, 80%, 59%);","--palette-red-6":"hsl(0, 80%, 50%);","--palette-red-7":"hsl(0, 80%, 41%);","--palette-red-8":"hsl(0, 80%, 32%);","--palette-red-9":"hsl(0, 80%, 23%);","--palette-pink-0":"hsl(339, 80%, 94%);","--palette-pink-1":"hsl(339, 80%, 90%);","--palette-pink-2":"hsl(339, 80%, 86%);","--palette-pink-3":"hsl(339, 80%, 77%);","--palette-pink-4":"hsl(339, 80%, 68%);","--palette-pink-5":"hsl(339, 80%, 59%);","--palette-pink-6":"hsl(339, 80%, 50%);","--palette-pink-7":"hsl(339, 80%, 41%);","--palette-pink-8":"hsl(339, 80%, 32%);","--palette-pink-9":"hsl(339, 80%, 23%);","--palette-grape-0":"hsl(288, 80%, 94%);","--palette-grape-1":"hsl(288, 80%, 90%);","--palette-grape-2":"hsl(288, 80%, 86%);","--palette-grape-3":"hsl(288, 80%, 77%);","--palette-grape-4":"hsl(288, 80%, 68%);","--palette-grape-5":"hsl(288, 80%, 59%);","--palette-grape-6":"hsl(288, 80%, 50%);","--palette-grape-7":"hsl(288, 80%, 41%);","--palette-grape-8":"hsl(288, 80%, 32%);","--palette-grape-9":"hsl(288, 80%, 23%);","--palette-violet-0":"hsl(255, 80%, 94%);","--palette-violet-1":"hsl(255, 80%, 90%);","--palette-violet-2":"hsl(255, 80%, 86%);","--palette-violet-3":"hsl(255, 80%, 77%);","--palette-violet-4":"hsl(255, 80%, 68%);","--palette-violet-5":"hsl(255, 80%, 59%);","--palette-violet-6":"hsl(255, 80%, 50%);","--palette-violet-7":"hsl(255, 80%, 41%);","--palette-violet-8":"hsl(255, 80%, 32%);","--palette-violet-9":"hsl(255, 80%, 23%);","--palette-indigo-0":"hsl(230, 80%, 94%);","--palette-indigo-1":"hsl(230, 80%, 90%);","--palette-indigo-2":"hsl(230, 80%, 86%);","--palette-indigo-3":"hsl(230, 80%, 77%);","--palette-indigo-4":"hsl(230, 80%, 68%);","--palette-indigo-5":"hsl(230, 80%, 59%);","--palette-indigo-6":"hsl(230, 80%, 50%);","--palette-indigo-7":"hsl(230, 80%, 41%);","--palette-indigo-8":"hsl(230, 80%, 32%);","--palette-indigo-9":"hsl(230, 80%, 23%);","--palette-blue-0":"hsl(208, 80%, 94%);","--palette-blue-1":"hsl(208, 80%, 90%);","--palette-blue-2":"hsl(208, 80%, 86%);","--palette-blue-3":"hsl(208, 80%, 77%);","--palette-blue-4":"hsl(208, 80%, 68%);","--palette-blue-5":"hsl(208, 80%, 59%);","--palette-blue-6":"hsl(208, 80%, 50%);","--palette-blue-7":"hsl(208, 80%, 41%);","--palette-blue-8":"hsl(208, 80%, 32%);","--palette-blue-9":"hsl(208, 80%, 23%);","--palette-cyan-0":"hsl(188, 80%, 94%);","--palette-cyan-1":"hsl(188, 80%, 90%);","--palette-cyan-2":"hsl(188, 80%, 86%);","--palette-cyan-3":"hsl(188, 80%, 77%);","--palette-cyan-4":"hsl(188, 80%, 68%);","--palette-cyan-5":"hsl(188, 80%, 59%);","--palette-cyan-6":"hsl(188, 80%, 50%);","--palette-cyan-7":"hsl(188, 80%, 41%);","--palette-cyan-8":"hsl(188, 80%, 32%);","--palette-cyan-9":"hsl(188, 80%, 23%);","--palette-teal-0":"hsl(162, 80%, 94%);","--palette-teal-1":"hsl(162, 80%, 90%);","--palette-teal-2":"hsl(162, 80%, 86%);","--palette-teal-3":"hsl(162, 80%, 77%);","--palette-teal-4":"hsl(162, 80%, 68%);","--palette-teal-5":"hsl(162, 80%, 59%);","--palette-teal-6":"hsl(162, 80%, 50%);","--palette-teal-7":"hsl(162, 80%, 41%);","--palette-teal-8":"hsl(162, 80%, 32%);","--palette-teal-9":"hsl(162, 80%, 23%);","--palette-green-0":"hsl(131, 80%, 94%);","--palette-green-1":"hsl(131, 80%, 90%);","--palette-green-2":"hsl(131, 80%, 86%);","--palette-green-3":"hsl(131, 80%, 77%);","--palette-green-4":"hsl(131, 80%, 68%);","--palette-green-5":"hsl(131, 80%, 59%);","--palette-green-6":"hsl(131, 80%, 50%);","--palette-green-7":"hsl(131, 80%, 41%);","--palette-green-8":"hsl(131, 80%, 32%);","--palette-green-9":"hsl(131, 80%, 23%);","--palette-lime-0":"hsl(85, 80%, 94%);","--palette-lime-1":"hsl(85, 80%, 90%);","--palette-lime-2":"hsl(85, 80%, 86%);","--palette-lime-3":"hsl(85, 80%, 77%);","--palette-lime-4":"hsl(85, 80%, 68%);","--palette-lime-5":"hsl(85, 80%, 59%);","--palette-lime-6":"hsl(85, 80%, 50%);","--palette-lime-7":"hsl(85, 80%, 41%);","--palette-lime-8":"hsl(85, 80%, 32%);","--palette-lime-9":"hsl(85, 80%, 23%);","--palette-yellow-0":"hsl(39, 80%, 94%);","--palette-yellow-1":"hsl(39, 80%, 90%);","--palette-yellow-2":"hsl(39, 80%, 86%);","--palette-yellow-3":"hsl(39, 80%, 77%);","--palette-yellow-4":"hsl(39, 80%, 68%);","--palette-yellow-5":"hsl(39, 80%, 59%);","--palette-yellow-6":"hsl(39, 80%, 50%);","--palette-yellow-7":"hsl(39, 80%, 41%);","--palette-yellow-8":"hsl(39, 80%, 32%);","--palette-yellow-9":"hsl(39, 80%, 23%);","--palette-orange-0":"hsl(24, 80%, 94%);","--palette-orange-1":"hsl(24, 80%, 90%);","--palette-orange-2":"hsl(24, 80%, 86%);","--palette-orange-3":"hsl(24, 80%, 77%);","--palette-orange-4":"hsl(24, 80%, 68%);","--palette-orange-5":"hsl(24, 80%, 59%);","--palette-orange-6":"hsl(24, 80%, 50%);","--palette-orange-7":"hsl(24, 80%, 41%);","--palette-orange-8":"hsl(24, 80%, 32%);","--palette-orange-9":"hsl(24, 80%, 23%);","--palette-neutral":"hsl(0, 0%, 98%);","--palette-neutral-0":"hsl(0, 0%, 97%);","--palette-neutral-1":"hsl(0, 0%, 93%);","--palette-neutral-2":"hsl(0, 0%, 87%);","--palette-neutral-3":"hsl(0, 0%, 77%);","--palette-neutral-4":"hsl(0, 0%, 68%);","--palette-neutral-5":"hsl(0, 0%, 59%);","--palette-neutral-6":"hsl(0, 0%, 50%);","--palette-neutral-7":"hsl(0, 0%, 41%);","--palette-neutral-8":"hsl(0, 0%, 32%);","--palette-neutral-9":"hsl(0, 0%, 18%);","--color-grey-0":"var(--palette-neutral-0)","--color-grey-1":"var(--palette-neutral-1)","--color-grey-2":"var(--palette-neutral-2)","--color-grey-3":"var(--palette-neutral-3)","--color-grey-4":"var(--palette-neutral-4)","--color-grey-5":"var(--palette-neutral-5)","--color-grey-6":"var(--palette-neutral-6)","--color-grey-7":"var(--palette-neutral-7)","--color-grey-8":"var(--palette-neutral-8)","--color-grey-9":"var(--palette-neutral-9)","--color-clouds-0":"hsl(192, 15%, 99%);","--color-clouds-1":"hsl(192, 15%, 97%);","--color-clouds-2":"hsl(192, 15%, 96%);","--color-clouds-3":"hsl(192, 15%, 95%);","--color-clouds-4":"hsl(192, 15%, 94%);","--color-error":"#F40000","--color-success":"#52C41A"},dr={"--kos-layer-1-color":"var(--palette-neutral-2);","--kos-layer-2-color":"var(--palette-neutral-1);","--kos-layer-3-color":"var(--palette-neutral-0);","--kos-primary-1":"var(--palette-neutral-1);","--kos-primary-2":"var(--palette-neutral-2);","--kos-primary-3":"var(--palette-neutral-3);","--kos-primary-4":"var(--palette-neutral-4);","--kos-primary-5":"var(--palette-neutral-5);","--kos-primary-6":"var(--palette-neutral-6);","--kos-primary-7":"var(--palette-neutral-7);","--kos-primary-8":"var(--palette-neutral-8);","--kos-primary-9":"var(--palette-neutral-9);","--kos-accent-1":"var(--palette-blue-1)","--kos-accent-2":"var(--palette-blue-2)","--kos-accent-3":"var(--palette-blue-3)","--kos-accent-4":"var(--palette-blue-4)","--kos-accent-5":"var(--palette-blue-5)","--kos-accent-6":"var(--palette-blue-6)","--kos-accent-7":"var(--palette-blue-7)","--kos-accent-8":"var(--palette-blue-8)","--kos-accent-9":"var(--palette-blue-9)","--kos-primary-color":"var(--kos-primary-8);","--kos-border-color":"var(--palette-neutral-3)","--kos-primary-color-hover":"var(--kos-primary-7);","--kos-primary-color-active":"var(--kos-primary-9);","--kos-primary-color-outline":"var(--kos-primary-6);","--kos-background-color":"var(--palette-neutral-1);","--kos-background-color-hover":"var(--palette-neutral-1);","--kos-background-color-active":"var(--palette-neutral-1);","--kos-background-color-outline":"var(--palette-neutral-1);","--kos-accent-background-color":"var(--kos-primary-9);","--kos-accent-typography-color":"white;","--kos-typography-color":"var(--palette-neutral-9);","--kos-typography-color-hover":"var(--kos-primary-color-hover);","--kos-typography-color-selected":"var(--kos-primary-color-active);","--kos-app-header-background-color":"var(--kos-accent-background-color);","--kos-app-header-typography-color":"white;","--kos-app-sidebar-background-color":"var(--kos-layer-1-color);","--kos-page-header-background-color":"var(--kos-layer-2-color);","--kos-artifact-qualifier-tag-color":"var(--kos-accent-6);","--kos-table-header-background-color":"var(--kos-accent-background-color);","--kos-table-header-typography-color":"var(--kos-accent-typography-color);","--kos-list-item-header-background-color":"white;","--kos-typography-color-link":"hsl(204, 97%, 40%);","--kos-typography-color-link-hover":"hsl(204, 97%, 60%);","--kos-list-item-color-selected":"hsl(204, 97%, 47%);","--kos-list-item-icon-color-selected":"white","--kos-accent-color":"#048FEC","--kos-primary-button-color":"#048FEC","--kos-primary-button-hover-color":"#40A9FF","--kos-primary-button-active-color":"#096DD9","--kos-primary-button-text-color":"#FFFFFF","--kos-shell-menu-button-hover-color":"var(--kos-generic-color-grey-70)"},ur={"--kos-layer-1-color":"var(--palette-neutral-2);","--kos-layer-2-color":"var(--palette-neutral-1);","--kos-layer-3-color":"var(--palette-neutral-0);","--kos-primary-1":"var(--palette-neutral-1);","--kos-primary-2":"var(--palette-neutral-2);","--kos-primary-3":"var(--palette-neutral-3);","--kos-primary-4":"var(--palette-neutral-4);","--kos-primary-5":"var(--palette-neutral-5);","--kos-primary-6":"var(--palette-neutral-6);","--kos-primary-7":"var(--palette-neutral-7);","--kos-primary-8":"var(--palette-neutral-8);","--kos-primary-9":"var(--palette-neutral-9);","--kos-accent-1":"var(--palette-blue-1)","--kos-accent-2":"var(--palette-blue-2)","--kos-accent-3":"var(--palette-blue-3)","--kos-accent-4":"var(--palette-blue-4)","--kos-accent-5":"var(--palette-blue-5)","--kos-accent-6":"var(--palette-blue-6)","--kos-accent-7":"var(--palette-blue-7)","--kos-accent-8":"var(--palette-blue-8)","--kos-accent-9":"var(--palette-blue-9)","--kos-primary-color":"var(--kos-primary-8);","--kos-border-color":"var(--palette-neutral-3)","--kos-primary-color-hover":"var(--kos-primary-7);","--kos-primary-color-active":"var(--kos-primary-9);","--kos-primary-color-outline":"var(--kos-primary-6);","--kos-background-color":"var(--palette-neutral-1);","--kos-background-color-hover":"var(--palette-neutral-1);","--kos-background-color-active":"var(--palette-neutral-1);","--kos-background-color-outline":"var(--palette-neutral-1);","--kos-accent-background-color":"var(--kos-primary-9);","--kos-accent-typography-color":"white;","--kos-typography-color":"var(--palette-neutral-9);","--kos-typography-color-hover":"var(--kos-primary-color-hover);","--kos-typography-color-selected":"var(--kos-primary-color-active);","--kos-app-header-background-color":"var(--kos-accent-background-color);","--kos-app-header-typography-color":"white;","--kos-app-sidebar-background-color":"var(--kos-layer-1-color);","--kos-page-header-background-color":"var(--kos-layer-2-color);","--kos-artifact-qualifier-tag-color":"var(--kos-accent-6);","--kos-table-header-background-color":"var(--kos-accent-background-color);","--kos-table-header-typography-color":"var(--kos-accent-typography-color);","--kos-list-item-header-background-color":"white;","--kos-typography-color-link":"hsl(204, 97%, 40%);","--kos-typography-color-link-hover":"hsl(204, 97%, 60%);","--kos-list-item-color-selected":"hsl(204, 97%, 47%);","--kos-list-item-icon-color-selected":"white","--kos-accent-color":"var(--kos-generic-color-blue-primary)","--kos-primary-button-color":"var(--kos-generic-color-blue-primary)","--kos-primary-button-hover-color":"#40A9FF","--kos-primary-button-active-color":"#096DD9","--kos-primary-button-text-color":"#FFFFFF"},fr={"--kos-generic-color-black":"#262626","--kos-generic-color-blue-additional-1":"#40A9FF","--kos-generic-color-blue-additional-2":"#096DD9","--kos-generic-color-blue-additional-3":"#C8E8FF","--kos-generic-color-blue-primary":"#048FEC","--kos-generic-color-grey-10":"#FAFAFA","--kos-generic-color-grey-15":"#f1f1f1","--kos-generic-color-grey-20":"#DFDFDF","--kos-generic-color-grey-30":"#D9D9D9","--kos-generic-color-grey-40":"#C4C4C4","--kos-generic-color-grey-50":"#ABABAB","--kos-generic-color-grey-60":"#868686","--kos-generic-color-grey-70":"#484848","--kos-generic-color-grey-80":"#2F2F2F","--kos-generic-color-white":"#FFFFFF","--kos-generic-table-header":"#F6F6F6","--kos-system-orange":"#FF8500","--kos-system-green":"#52C41A"},Za={"--kos-size-xxxxs":"1.5rem","--kos-size-xxxs":"3rem","--kos-size-xxs":"6rem","--kos-size-xs":"12rem","--kos-size-s":"15rem","--kos-size-m":"20rem","--kos-size-lg":"25rem","--kos-size-xl":"40rem","--kos-size-xxl":"60rem"},Xa={"--kos-border-radius-circle":"50%","--kos-border-radius-large":"0.5rem","--kos-border-radius-medium":"0.25rem","--kos-border-radius-small":"0.125rem","--kos-border-radius":"var(--kos-border-radius-medium)","--kos-spacing-xxxs":".125rem","--kos-spacing-xxs":".25rem","--kos-spacing-xs":".5rem","--kos-spacing-s":".75rem","--kos-spacing-m":"1rem","--kos-spacing-lg":"1.5rem","--kos-spacing-xlg":"2rem","--kos-spacing-xxlg":"3rem"},zn={"--kos-font-family":"Arial, Helvetica, sans-serif","--kos-line-height-body":"14.4px","--kos-line-height-small":"12px","--kos-line-height-body-modal":"14px","--kos-line-height-body-bold":"13px","--kos-line-height-card-title":"18px","--kos-line-height-card-detail":"14px","--kos-line-height-heading-small":"20px","--kos-line-height-heading-medium":"24px","--kos-line-height-heading-large":"30px","--kos-font-family-body":"var(--kos-font-family)","--kos-font-family-body-bold":"var(--kos-font-family)","--kos-font-family-card-title":"var(--kos-font-family)","--kos-font-family-card-detail":"var(--kos-font-family)","--kos-font-family-heading-small":"var(--kos-font-family)","--kos-font-family-heading-medium":"var(--kos-font-family)","--kos-font-family-heading-large":"var(--kos-font-family)","--kos-font-size-body-modal":"12px","--kos-font-size-body":"12px","--kos-font-size-body-bold":"14px","--kos-font-size-card-title":"16px","--kos-font-size-card-detail":"12px","--kos-font-size-heading-small":"14px","--kos-font-size-heading-medium":"16px","--kos-font-size-heading-large":"20px","--kos-font-weight-body":"400","--kos-font-weight-body-bold":"700","--kos-font-weight-card-title":"700","--kos-font-weight-card-detail":"400","--kos-font-weight-heading-small":"700","--kos-font-weight-heading-medium":"700","--kos-font-weight-heading-large":"700"},Ja={"--kos-connection-manager-heading-font-family":"var(--kos-font-family)","--kos-connection-manager-heading-font-size":"14px","--kos-connection-manager-heading-font-style":"","--kos-connection-manager-heading-font-weight":"","--kos-connection-manager-heading-line-height":"","--kos-connection-manager-item-heading-font-family":"","--kos-connection-manager-item-heading-font-size":"","--kos-connection-manager-item-heading-font-style":"","--kos-connection-manager-item-heading-font-weight":"","--kos-connection-manager-item-heading-line-height":"","--kos-connection-manager-image-name-font-family":"","--kos-connection-manager-image-name-font-size":"","--kos-connection-manager-image-name-font-style":"","--kos-connection-manager-image-name-font-weight":"","--kos-connection-manager-image-name-line-height":"","--kos-connection-manager-view-name-font-family":"","--kos-connection-manager-view-name-font-size":"","--kos-connection-manager-view-name-font-style":"","--kos-connection-manager-view-name-font-weight":"","--kos-connection-manager-view-name-line-height":"","--kos-connection-manager-status-label-font-family":"","--kos-connection-manager-status-label-font-size":"10px","--kos-connection-manager-status-label-font-style":"","--kos-connection-manager-status-label-font-weight":"","--kos-connection-manager-status-label-line-height":"","--kos-connection-manager-status-text-font-family":"","--kos-connection-manager-status-text-font-size":"","--kos-connection-manager-status-text-font-style":"","--kos-connection-manager-status-text-font-weight":"","--kos-connection-manager-status-text-line-height":"","--kos-connection-manager-active-tools-heading-font-family":"","--kos-connection-manager-active-tools-heading-font-size":"10px","--kos-connection-manager-active-tools-heading-font-style":"","--kos-connection-manager-active-tools-heading-font-weight":"700","--kos-connection-manager-active-tools-heading-line-height":"","--kos-connection-manager-active-tools-item-font-family":"","--kos-connection-manager-active-tools-item-font-size":"10px","--kos-connection-manager-active-tools-item-font-style":"","--kos-connection-manager-active-tools-item-font-weight":"400","--kos-connection-manager-active-tools-item-line-height":"","--kos-connection-manager-start-new-tool-font-family":"","--kos-connection-manager-start-new-tool-font-size":"12px","--kos-connection-manager-start-new-tool-font-style":"","--kos-connection-manager-start-new-tool-font-weight":"","--kos-connection-manager-start-new-tool-line-height":"","--kos-connection-manager-input-font-family":"","--kos-connection-manager-input-font-size":"","--kos-connection-manager-input-font-style":"","--kos-connection-manager-input-font-weight":"","--kos-connection-manager-input-line-height":"10px","--kos-connection-manager-icon-small-font-size":"10px","--kos-connection-manager-icon-medium-font-size":"12px","--kos-connection-manager-icon-busy-color":"#0000F4","--kos-connection-manager-icon-error-color":"#F40000","--kos-connection-manager-icon-idle-color":"#858585","--kos-connection-manager-icon-success-color":"#52C41A","--kos-connection-manager-connecting-effect-background-color":"#ECFBDF","--kos-component-button-primary-background-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-primary-background-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-primary-background-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-primary-background-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-button-primary-border-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-primary-border-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-primary-border-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-primary-border-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-button-primary-color":"var(--kos-generic-color-white)","--kos-component-button-secondary-background-color":"var(--kos-generic-color-white)","--kos-component-button-secondary-background-color-disabled":"var(--kos-generic-color-grey-10)","--kos-component-button-secondary-border-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-secondary-border-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-secondary-border-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-secondary-border-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-button-secondary-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-secondary-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-secondary-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-secondary-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-button-borderless-background-color":"transparent","--kos-component-button-borderless-border-color":"transparent","--kos-component-button-borderless-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-button-borderless-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-button-borderless-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-button-borderless-color-disabled":"var(--kos-generic-color-grey-30)","--kos-component-checkbox-default-background-color":"var(--kos-generic-color-white)","--kos-component-checkbox-default-border-color-default":"var(--kos-generic-color-grey-30)","--kos-component-checkbox-default-border-color-hover":"var(--kos-generic-color-grey-10)","--kos-component-checkbox-default-border-color-clicked":"var(--kos-generic-color-grey-50)","--kos-component-checkbox-default-color":"transparent","--kos-component-checkbox-filled-background-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-checkbox-filled-background-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-checkbox-filled-background-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-checkbox-filled-border-color-default":"var(--kos-generic-color-blue-primary)","--kos-component-checkbox-filled-border-color-hover":"var(--kos-generic-color-blue-additional-1)","--kos-component-checkbox-filled-border-color-clicked":"var(--kos-generic-color-blue-additional-2)","--kos-component-checkbox-filled-color":"var(--kos-generic-color-white)","--kos-component-checkbox-disabled-background-color":"var(--kos-generic-color-grey-30)","--kos-component-checkbox-disabled-border-color":"var(--kos-generic-color-grey-30)","--kos-component-checkbox-disabled-color":"var(--kos-generic-color-white)","--kos-simulator-config-details-border":"var(--kos-generic-color-grey-30)"},Qa=E.css`
|
|
526
526
|
scrollbar-gutter: auto;
|
|
527
527
|
//AUTO might be the one that overlays things
|
|
528
528
|
|
|
529
529
|
/* Hide scrollbar for IE, Edge, Firefox, and other browsers */
|
|
530
530
|
scrollbar-width: thin; /* Firefox */
|
|
531
531
|
overflow-y: auto;
|
|
532
|
-
`,
|
|
532
|
+
`,el=()=>E.css`
|
|
533
533
|
:root {
|
|
534
534
|
--kos-font-size-base: 10px;
|
|
535
535
|
--kos-font-size-small: 10px;
|
|
@@ -538,11 +538,11 @@
|
|
|
538
538
|
font-size: var(--kos-base-font-size);
|
|
539
539
|
}
|
|
540
540
|
:root {
|
|
541
|
-
${
|
|
542
|
-
${
|
|
543
|
-
${
|
|
544
|
-
${
|
|
545
|
-
${
|
|
541
|
+
${E.css(cr)}
|
|
542
|
+
${E.css(Xa)}
|
|
543
|
+
${E.css(Za)}
|
|
544
|
+
${E.css(fr)}
|
|
545
|
+
${E.css(Ja)}
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
::-webkit-scrollbar {
|
|
@@ -617,17 +617,17 @@
|
|
|
617
617
|
|
|
618
618
|
@media (-webkit-max-device-pixel-ratio: 1.25) {
|
|
619
619
|
:root {
|
|
620
|
-
${
|
|
620
|
+
${E.css(zn)}
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
@media (-webkit-min-device-pixel-ratio: 1.25) {
|
|
624
624
|
:root {
|
|
625
|
-
${
|
|
625
|
+
${E.css(zn)}
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
@media (prefers-color-scheme: light) {
|
|
629
629
|
:root {
|
|
630
|
-
${
|
|
630
|
+
${E.css(dr)}
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
:root {
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
}
|
|
647
647
|
@media (prefers-color-scheme: dark) {
|
|
648
648
|
:root {
|
|
649
|
-
${
|
|
649
|
+
${E.css(ur)}
|
|
650
650
|
}
|
|
651
651
|
:root {
|
|
652
652
|
--ant-primary-color: var(--kos-primary-color);
|
|
@@ -663,15 +663,15 @@
|
|
|
663
663
|
--ant-font-size-base: var(--kos-font-size-base);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
`;function
|
|
667
|
-
font-family: ${
|
|
668
|
-
line-height: ${
|
|
666
|
+
`;function pt(e){return d.forwardRef(e)}const[xe]=O(["text"]),pr=["blue","dark","disabled","green","grey","light","red","yellow","orange"],tl=({bold:e,children:t,color:o,ellipsis:n,lineClamp:r,textAlign:s,underline:l,variant:i,...u},f)=>a.jsx(E.ClassNames,{children:({cx:p})=>a.jsx(nl,{"data-variant":i,"data-alignment":s,"data-color":o,ref:f,...u,className:p(u.className,{isBold:e,isUnderlined:l,isEllipsized:n,isLineClamped:r}),children:t})}),M=pt(tl),ol=["left","right","center","justify"],nl=m.span`
|
|
667
|
+
font-family: ${xe("font-family")};
|
|
668
|
+
line-height: ${xe("line-height")};
|
|
669
669
|
vertical-align: bottom;
|
|
670
|
-
font-weight: ${
|
|
670
|
+
font-weight: ${xe("font-weight-normal")};
|
|
671
671
|
margin: 0;
|
|
672
672
|
color: inherit;
|
|
673
673
|
&.isBold {
|
|
674
|
-
font-weight: ${
|
|
674
|
+
font-weight: ${xe("font-weight-bold")};
|
|
675
675
|
}
|
|
676
676
|
&.isEllipsized {
|
|
677
677
|
text-overflow: ellipsis;
|
|
@@ -690,96 +690,96 @@
|
|
|
690
690
|
text-decoration: underline;
|
|
691
691
|
}
|
|
692
692
|
&[data-variant="h1"] {
|
|
693
|
-
font-size: ${
|
|
694
|
-
font-weight: ${
|
|
693
|
+
font-size: ${xe("h1-size")};
|
|
694
|
+
font-weight: ${xe("font-weight-bold")};
|
|
695
695
|
}
|
|
696
696
|
&[data-variant="h2"] {
|
|
697
|
-
font-size: ${
|
|
698
|
-
font-weight: ${
|
|
697
|
+
font-size: ${xe("h2-size")};
|
|
698
|
+
font-weight: ${xe("font-weight-bold")};
|
|
699
699
|
}
|
|
700
700
|
&[data-variant="body"] {
|
|
701
|
-
font-size: ${
|
|
701
|
+
font-size: ${xe("body-size")};
|
|
702
702
|
}
|
|
703
703
|
&[data-variant="small"] {
|
|
704
|
-
font-size: ${
|
|
704
|
+
font-size: ${xe("small-size")};
|
|
705
705
|
}
|
|
706
|
-
${
|
|
706
|
+
${ol.map(e=>`&[data-alignment="${e}"] {
|
|
707
707
|
text-align: ${e};
|
|
708
708
|
}`).join(`
|
|
709
709
|
`)}
|
|
710
|
-
${
|
|
711
|
-
color: ${
|
|
710
|
+
${pr.map(e=>`&[data-color="${e}"] {
|
|
711
|
+
color: ${xe(`color-${e}`)};
|
|
712
712
|
}`).join(`
|
|
713
713
|
`)}
|
|
714
|
-
`,[
|
|
715
|
-
${
|
|
716
|
-
font-size: ${
|
|
717
|
-
`,onClick:t,className:n?"isDisabled":void 0,...r,children:e}),
|
|
718
|
-
font-weight: ${
|
|
719
|
-
font-family: ${
|
|
720
|
-
line-height: ${
|
|
721
|
-
color: ${
|
|
714
|
+
`,[qe]=O(["link"]),Yo=({children:e,onClick:t,size:o="med",isDisabled:n,...r})=>a.jsx("span",{css:E.css`
|
|
715
|
+
${rl}
|
|
716
|
+
font-size: ${qe(`font-size-${o}`)};
|
|
717
|
+
`,onClick:t,className:n?"isDisabled":void 0,...r,children:e}),rl=E.css`
|
|
718
|
+
font-weight: ${qe("font-weight")};
|
|
719
|
+
font-family: ${qe("font-family")};
|
|
720
|
+
line-height: ${qe("line-height")};
|
|
721
|
+
color: ${qe("color")};
|
|
722
722
|
transition: color 0.125s ease-in-out;
|
|
723
723
|
cursor: pointer;
|
|
724
724
|
&:hover:not(.isDisabled) {
|
|
725
|
-
color: ${
|
|
725
|
+
color: ${qe("color-hover")};
|
|
726
726
|
}
|
|
727
727
|
&:active:not(.isDisabled) {
|
|
728
|
-
color: ${
|
|
728
|
+
color: ${qe("color-active")};
|
|
729
729
|
}
|
|
730
730
|
&.isDisabled {
|
|
731
|
-
color: ${
|
|
731
|
+
color: ${qe("color-disabled")};
|
|
732
732
|
pointer-events: none;
|
|
733
733
|
}
|
|
734
|
-
`,
|
|
734
|
+
`,Fo=["black","blue","green","grey","orange","purple","red","white","yellow"],sl=["xxsm","xsm","sm","med","lrg","xlrg","xxlrg"],gr=d.createContext(null),il=({children:e,publicPath:t})=>{const o=d.useMemo(()=>({basePath:t??"/ui/"}),[t]);return a.jsx(gr.Provider,{value:o,children:e})},hr=()=>{const e=d.useContext(gr);if(!e)throw new Error("BaseUIComponentsContext cannot be used outside of its provider.");return e},[vt]=O(["icon"]),al=d.forwardRef(({iconId:e,size:t="sm",color:o,...n},r)=>{const{basePath:s}=hr();return a.jsx(ll,{viewBox:"0 0 36 36",ref:r,"data-size":t,"data-color":o,xmlns:"http://www.w3.org/2000/svg",...n,children:a.jsx("use",{href:`${s}icon-sprite.svg#${e}`})})}),F=d.memo(al);F.displayName="Icon";const ll=m.svg`
|
|
735
735
|
fill: currentColor;
|
|
736
736
|
transition: fill 0.125s ease-in-out;
|
|
737
737
|
|
|
738
738
|
// Colors
|
|
739
|
-
${
|
|
740
|
-
fill: ${
|
|
739
|
+
${Fo.map(e=>`&[data-color="${e}"] {
|
|
740
|
+
fill: ${vt(`fill-${e}`)}
|
|
741
741
|
}`).join("")}
|
|
742
742
|
|
|
743
743
|
// Sizes
|
|
744
|
-
${
|
|
745
|
-
max-height: ${
|
|
746
|
-
max-width: ${
|
|
747
|
-
min-height: ${
|
|
748
|
-
min-width: ${
|
|
744
|
+
${sl.map(e=>`&[data-size="${e}"] {
|
|
745
|
+
max-height: ${vt(`size-${e}`)};
|
|
746
|
+
max-width: ${vt(`size-${e}`)};
|
|
747
|
+
min-height: ${vt(`size-${e}`)};
|
|
748
|
+
min-width: ${vt(`size-${e}`)};
|
|
749
749
|
}`).join("")}
|
|
750
|
-
`,[
|
|
750
|
+
`,[mr]=O(["actionable-blurb"]),cl=d.memo(({text:e,actions:t,icon:o,title:n,iconColor:r,iconSize:s,className:l})=>{const i=d.useMemo(()=>{if(!t)return e;let u=e;return t.forEach(({action:f,actionText:p})=>{u=ar(u,p,g=>a.jsx(Yo,{onClick:f,children:g},g))}),u},[t,e]);return a.jsxs(dl,{className:l,children:[a.jsx(ul,{children:a.jsx(F,{iconId:o,size:s??"xsm",color:r??"black"})}),a.jsxs(fl,{className:"blurb-wrapper",children:[a.jsx(M,{color:"dark",variant:"body",bold:!0,children:n}),a.jsx(M,{color:"dark",variant:"body",children:i})]})]})}),dl=m.div`
|
|
751
751
|
width: 100%;
|
|
752
752
|
display: grid;
|
|
753
|
-
grid-template-columns: ${
|
|
754
|
-
`,
|
|
753
|
+
grid-template-columns: ${mr("icon-column-width")} 1fr;
|
|
754
|
+
`,ul=m.div`
|
|
755
755
|
height: 100%;
|
|
756
756
|
display: flex;
|
|
757
757
|
align-items: flex-start;
|
|
758
758
|
justify-content: flex-start;
|
|
759
|
-
`,
|
|
759
|
+
`,fl=m.div`
|
|
760
760
|
display: flex;
|
|
761
761
|
align-items: flex-start;
|
|
762
762
|
justify-content: flex-start;
|
|
763
763
|
flex-direction: column;
|
|
764
|
-
row-gap: ${
|
|
765
|
-
`,
|
|
764
|
+
row-gap: ${mr("row-gap")};
|
|
765
|
+
`,pl=({defaultOpen:e=!1,open:t,onOpenChange:o})=>{const[n,r]=d.useState(e),s=t??n,l=o??r;return d.useMemo(()=>({open:s,setOpen:l}),[s,l])},br=d.createContext(null),Nt=()=>{const e=d.useContext(br);if(e==null)throw new Error("Collapsible components must be wrapped in <Collapsible />");return e},Jt=({children:e,...t})=>{const o=pl(t);return a.jsx(br.Provider,{value:o,children:e})},Ko=({children:e})=>{const{open:t,setOpen:o}=Nt(),n=d.useCallback(()=>{o(!t)},[t,o]);if(d.isValidElement(e))return d.cloneElement(e,{...e.props,onClick:n,"data-state":t?"open":"closed"});throw new Error("Passed CollapsibleTrigger an invalid element")},Qt=({children:e})=>{const{open:t}=Nt();return t?e:null};function xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yr={exports:{}};/*!
|
|
766
766
|
Copyright (c) 2018 Jed Watson.
|
|
767
767
|
Licensed under the MIT License (MIT), see
|
|
768
768
|
http://jedwatson.github.io/classnames
|
|
769
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var s="",
|
|
769
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var s="",l=0;l<arguments.length;l++){var i=arguments[l];i&&(s=r(s,n(i)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return o.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var i in s)t.call(s,i)&&s[i]&&(l=r(l,i));return l}function r(s,l){return l?s?s+" "+l:s+l:s}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(yr);var gl=yr.exports;const gt=xr(gl),[Ce]=O(["icon-button"]),ee=d.forwardRef(({iconId:e,badgeOffset:t,badgeBorderColor:o="white",color:n,className:r,size:s,type:l,isActive:i,badgeColor:u,hasBadge:f,...p},g)=>a.jsxs(hl,{className:gt({isActive:i},r),type:l??"button",ref:g,...p,children:[f&&a.jsx(ml,{"data-size":s,"data-border-color":o??n,"data-color":u??n,style:t?{right:t.x,top:t.y}:void 0}),a.jsx(F,{size:s,color:p.disabled?"grey":n??"white",iconId:e,className:"icon-button-icon"})]})),hl=m.button`
|
|
770
770
|
box-sizing: border-box;
|
|
771
771
|
align-items: center;
|
|
772
772
|
justify-content: center;
|
|
773
773
|
display: flex;
|
|
774
774
|
position: relative;
|
|
775
775
|
border: 0px;
|
|
776
|
-
background-color: ${
|
|
777
|
-
border-color: ${
|
|
778
|
-
border-radius: ${
|
|
779
|
-
padding: ${
|
|
780
|
-
cursor: ${
|
|
776
|
+
background-color: ${Ce("background-color")};
|
|
777
|
+
border-color: ${Ce("border-color")};
|
|
778
|
+
border-radius: ${Ce("border-radius")};
|
|
779
|
+
padding: ${Ce("padding")};
|
|
780
|
+
cursor: ${Ce("cursor")};
|
|
781
781
|
&:disabled {
|
|
782
|
-
cursor: ${
|
|
782
|
+
cursor: ${Ce("disabled-cursor")};
|
|
783
783
|
}
|
|
784
784
|
> .icon-button-icon {
|
|
785
785
|
transition: fill-opacity 0.125s ease-in-out;
|
|
@@ -790,30 +790,30 @@
|
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
&.isActive {
|
|
793
|
-
background-color: ${
|
|
793
|
+
background-color: ${Ce("active-background-color")};
|
|
794
794
|
}
|
|
795
|
-
`,
|
|
795
|
+
`,ml=m.div`
|
|
796
796
|
position: absolute;
|
|
797
797
|
border: 1.5px solid ${c("color-black")};
|
|
798
798
|
border-radius: 50%;
|
|
799
|
-
top: ${
|
|
800
|
-
right: ${
|
|
799
|
+
top: ${Ce("badge-top")};
|
|
800
|
+
right: ${Ce("badge-right")};
|
|
801
801
|
transform: translate(50%, -50%);
|
|
802
802
|
// Border Colors
|
|
803
|
-
${
|
|
804
|
-
border-color: ${
|
|
803
|
+
${Fo.map(e=>`&[data-border-color="${e}"] {
|
|
804
|
+
border-color: ${Ce(`badge-fill-${e}`)};
|
|
805
805
|
}`).join("")}
|
|
806
806
|
// Colors
|
|
807
|
-
${
|
|
808
|
-
background-color: ${
|
|
807
|
+
${Fo.map(e=>`&[data-color="${e}"] {
|
|
808
|
+
background-color: ${Ce(`badge-fill-${e}`)};
|
|
809
809
|
}`).join("")}
|
|
810
810
|
width: ${c("spacing-8")};
|
|
811
811
|
height: ${c("spacing-8")};
|
|
812
|
-
`,
|
|
812
|
+
`,bl=m(ee)`
|
|
813
813
|
&.isLocked {
|
|
814
814
|
cursor: url("/ui/custom-cursors/locked-cursor.png"), not-allowed !important;
|
|
815
815
|
}
|
|
816
|
-
`,
|
|
816
|
+
`,xl=d.memo(({description:e})=>{const{open:t}=Nt();return a.jsx(yl,{color:"grey",variant:"small","data-state":t?"open":"closed",children:e})}),yl=m(M)`
|
|
817
817
|
width: 100%;
|
|
818
818
|
overflow: hidden;
|
|
819
819
|
text-overflow: ellipsis;
|
|
@@ -824,53 +824,53 @@
|
|
|
824
824
|
white-space: normal;
|
|
825
825
|
word-break: break-word;
|
|
826
826
|
}
|
|
827
|
-
`,[
|
|
827
|
+
`,[ze]=O(["collapsible-artifact"]),kl=d.memo(({onExternalClick:e,id:t,name:o,isSelected:n,description:r,VersionList:s,className:l})=>{const i=d.useCallback(()=>{e&&e(t)},[t,e]);return a.jsx(Jt,{children:a.jsxs(vl,{className:l,children:[a.jsxs(Cl,{children:[a.jsx(Ko,{children:a.jsx(Sl,{color:"black",size:"xxsm",iconId:"CaretRight"})}),a.jsxs($l,{children:[a.jsxs(jl,{children:[a.jsx(M,{css:E.css`
|
|
828
828
|
word-break: break-all;
|
|
829
|
-
`,variant:"small",bold:!0,children:o}),!!n&&
|
|
829
|
+
`,variant:"small",bold:!0,children:o}),!!n&&a.jsx(M,{variant:"small",color:"blue",children:"Selected"})]}),r&&a.jsx(xl,{description:r})]}),!!e&&a.jsx(wl,{color:"blue",iconId:"Export",onClick:i,size:"xsm"})]}),a.jsx(Qt,{children:a.jsx(Tl,{children:a.jsx(Dl,{children:s})})})]})})}),vl=m.div`
|
|
830
830
|
align-items: flex-start;
|
|
831
|
-
background-color: ${
|
|
832
|
-
border-radius: ${
|
|
833
|
-
border: ${
|
|
831
|
+
background-color: ${ze("background-color")};
|
|
832
|
+
border-radius: ${ze("border-radius")};
|
|
833
|
+
border: ${ze("border-width")} solid ${ze("border-color")};
|
|
834
834
|
display: flex;
|
|
835
835
|
flex-direction: column;
|
|
836
836
|
justify-content: flex-start;
|
|
837
837
|
position: relative;
|
|
838
838
|
width: 100%;
|
|
839
|
-
`,
|
|
839
|
+
`,wl=m(ee)`
|
|
840
840
|
z-index: 1;
|
|
841
|
-
`,
|
|
841
|
+
`,Cl=m.div`
|
|
842
842
|
align-items: flex-start;
|
|
843
843
|
display: flex;
|
|
844
|
-
gap: ${
|
|
845
|
-
padding: ${
|
|
844
|
+
gap: ${ze("name-and-selected-spacing")};
|
|
845
|
+
padding: ${ze("padding")};
|
|
846
846
|
width: 100%;
|
|
847
|
-
`,
|
|
847
|
+
`,Sl=m(ee)`
|
|
848
848
|
z-index: 1;
|
|
849
849
|
|
|
850
850
|
&[data-state="open"] {
|
|
851
851
|
transform: rotate(90deg);
|
|
852
852
|
}
|
|
853
|
-
|
|
853
|
+
`,$l=m.div`
|
|
854
854
|
display: flex;
|
|
855
855
|
flex-direction: column;
|
|
856
856
|
flex: 1;
|
|
857
|
-
gap: ${
|
|
857
|
+
gap: ${ze("name-and-desc-spacing")};
|
|
858
858
|
overflow: hidden;
|
|
859
|
-
`,
|
|
859
|
+
`,jl=m.div`
|
|
860
860
|
align-items: center;
|
|
861
861
|
display: flex;
|
|
862
862
|
flex-wrap: wrap;
|
|
863
863
|
flex: 1;
|
|
864
|
-
gap: ${
|
|
864
|
+
gap: ${ze("name-and-selected-spacing")};
|
|
865
865
|
justify-content: flex-start;
|
|
866
866
|
width: 100%;
|
|
867
|
-
`,
|
|
868
|
-
border-top: 1px solid ${
|
|
867
|
+
`,Tl=m.div`
|
|
868
|
+
border-top: 1px solid ${ze("border-color")};
|
|
869
869
|
width: 100%;
|
|
870
|
-
`,
|
|
871
|
-
padding: ${
|
|
870
|
+
`,Dl=m.div`
|
|
871
|
+
padding: ${ze("name-and-selected-spacing")};
|
|
872
872
|
width: 100%;
|
|
873
|
-
`,
|
|
873
|
+
`,Re=()=>{},El=e=>(t,o)=>e[t][o]??t,Ml=(e,t)=>d.useReducer(El(t),e),Vt=e=>(e==null?void 0:e.animationName)||"none",zl=(e,t)=>{const[o,n]=d.useState(),r=d.useRef(),s=d.useRef(e),l=d.useRef("none"),i=d.useRef(t);d.useLayoutEffect(()=>{i.current=t},[t]);const[u,f]=Ml(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmounting"},unmounted:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounting:{MOUNT:"mounted",ANIMATION_END:"unmounted"}});d.useEffect(()=>{const h=Vt(r.current);l.current=u==="mounted"?h:"none"},[u]),d.useLayoutEffect(()=>{const h=r.current,x=s.current;if(x!==e){const y=l.current,v=Vt(h);e?f("MOUNT"):v==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(x&&y!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),d.useLayoutEffect(()=>{if(o){const h=b=>{const v=Vt(r.current).includes(b.animationName);b.target===o&&v&&ir.flushSync(()=>f("ANIMATION_END"))},x=b=>{b.target===o&&(l.current=Vt(r.current))};return o.addEventListener("animationstart",x),o.addEventListener("animationcancel",h),o.addEventListener("animationend",h),()=>{o.removeEventListener("animationstart",x),o.removeEventListener("animationcancel",h),o.removeEventListener("animationend",h)}}else return f("ANIMATION_END"),Re},[o,f]);const p=d.useCallback(h=>{h&&(r.current=getComputedStyle(h)),n(h)},[]),g=["mounted","unmounting"].includes(u);return d.useEffect(()=>{i.current&&i.current(g)},[g]),{isPresent:g,ref:p}},kr=d.memo(({present:e,children:t,onPresenceChange:o})=>{const n=zl(e,o);return n.isPresent?d.cloneElement(t,{ref:n.ref,present:e}):null});kr.displayName="AnimatePresence";const[z,de]=O(["button","icon"]),Ol=d.forwardRef(({variant:e,text:t,disabled:o,className:n,icon:r,...s},l)=>a.jsx(E.ClassNames,{children:({cx:i})=>a.jsxs(Il,{disabled:o,className:i(e,n),ref:l,...s,children:[r&&a.jsx(Rl,{children:a.jsx(F,{iconId:r,size:"sm",color:"white"})}),t]})})),Ie=d.memo(Ol);Ie.displayName="StudioButton";const Il=m.button`
|
|
874
874
|
font-weight: ${z("font-weight")};
|
|
875
875
|
font-size: ${z("font-size")};
|
|
876
876
|
line-height: ${z("line-height")};
|
|
@@ -892,7 +892,7 @@
|
|
|
892
892
|
// This token will let us flip the icon and text if we want to
|
|
893
893
|
flex-direction: ${z("flex-direction")};
|
|
894
894
|
|
|
895
|
-
${`${
|
|
895
|
+
${`${de("fill-white",!0)}: ${z("color")}`};
|
|
896
896
|
|
|
897
897
|
&.primary-small,
|
|
898
898
|
&.secondary-small,
|
|
@@ -905,14 +905,14 @@
|
|
|
905
905
|
border-color: ${z("border-hover")};
|
|
906
906
|
color: ${z("color-hover")};
|
|
907
907
|
background-color: ${z("bg-hover")};
|
|
908
|
-
${`${
|
|
908
|
+
${`${de("fill-white",!0)}: ${z("color-hover")}`};
|
|
909
909
|
}
|
|
910
910
|
|
|
911
911
|
&:active {
|
|
912
912
|
border-color: ${z("border-active")};
|
|
913
913
|
color: ${z("color-active")};
|
|
914
914
|
background-color: ${z("bg-active")};
|
|
915
|
-
${`${
|
|
915
|
+
${`${de("fill-white",!0)}: ${z("color-active")}`};
|
|
916
916
|
}
|
|
917
917
|
|
|
918
918
|
&:disabled {
|
|
@@ -920,7 +920,7 @@
|
|
|
920
920
|
border-color: ${z("border-disabled")};
|
|
921
921
|
color: ${z("color-disabled")};
|
|
922
922
|
background-color: ${z("bg-disabled")};
|
|
923
|
-
${`${
|
|
923
|
+
${`${de("fill-white",!0)}: ${z("color-disabled")}`};
|
|
924
924
|
}
|
|
925
925
|
|
|
926
926
|
// Re-assign bg and color vars for secondary buttons.
|
|
@@ -929,26 +929,26 @@
|
|
|
929
929
|
background-color: ${z("bg-secondary")};
|
|
930
930
|
color: ${z("color-secondary")};
|
|
931
931
|
border-color: ${z("border-secondary")};
|
|
932
|
-
${`${
|
|
932
|
+
${`${de("fill-white",!0)}: ${z("color-secondary")}`};
|
|
933
933
|
&:hover {
|
|
934
934
|
border-color: ${z("border-hover-secondary")};
|
|
935
935
|
color: ${z("color-hover-secondary")};
|
|
936
936
|
background-color: ${z("bg-hover-secondary")};
|
|
937
|
-
${`${
|
|
937
|
+
${`${de("fill-white",!0)}: ${z("color-hover-secondary")}`};
|
|
938
938
|
}
|
|
939
939
|
|
|
940
940
|
&:active {
|
|
941
941
|
border-color: ${z("border-active-secondary")};
|
|
942
942
|
color: ${z("color-active-secondary")};
|
|
943
943
|
background-color: ${z("bg-active-secondary")};
|
|
944
|
-
${`${
|
|
944
|
+
${`${de("fill-white",!0)}: ${z("color-active-secondary")}`};
|
|
945
945
|
}
|
|
946
946
|
|
|
947
947
|
&:disabled {
|
|
948
948
|
border-color: ${z("border-disabled-secondary")};
|
|
949
949
|
color: ${z("color-disabled-secondary")};
|
|
950
950
|
background-color: ${z("bg-disabled-secondary")};
|
|
951
|
-
${`${
|
|
951
|
+
${`${de("fill-white",!0)}: ${z("color-disabled-secondary")}`};
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
|
|
@@ -958,19 +958,19 @@
|
|
|
958
958
|
background-color: ${z("bg-borderless")};
|
|
959
959
|
color: ${z("color-borderless")};
|
|
960
960
|
border-color: ${z("border-borderless")};
|
|
961
|
-
${`${
|
|
961
|
+
${`${de("fill-white",!0)}: ${z("color-borderless")}`};
|
|
962
962
|
&:hover {
|
|
963
963
|
border-color: ${z("border-hover-borderless")};
|
|
964
964
|
color: ${z("color-hover-borderless")};
|
|
965
965
|
background-color: ${z("bg-hover-borderless")};
|
|
966
|
-
${`${
|
|
966
|
+
${`${de("fill-white",!0)}: ${z("color-hover-borderless")}`};
|
|
967
967
|
}
|
|
968
968
|
|
|
969
969
|
&:active {
|
|
970
970
|
border-color: ${z("border-active-borderless")};
|
|
971
971
|
color: ${z("color-active-borderless")};
|
|
972
972
|
background-color: ${z("bg-active-borderless")};
|
|
973
|
-
${`${
|
|
973
|
+
${`${de("fill-white",!0)}: ${z("color-active-borderless")}`};
|
|
974
974
|
}
|
|
975
975
|
|
|
976
976
|
&:disabled {
|
|
@@ -978,40 +978,40 @@
|
|
|
978
978
|
border-color: ${z("border-disabled-borderless")};
|
|
979
979
|
color: ${z("color-disabled-borderless")};
|
|
980
980
|
background-color: ${z("bg-disabled-borderless")};
|
|
981
|
-
${`${
|
|
981
|
+
${`${de("fill-white",!0)}: ${z("color-disabled-borderless")}`};
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
|
-
`,
|
|
984
|
+
`,Rl=m.span`
|
|
985
985
|
display: flex;
|
|
986
986
|
margin: ${z("icon-margin")};
|
|
987
|
-
`,[
|
|
988
|
-
height: ${
|
|
989
|
-
width: ${
|
|
987
|
+
`,[ye]=O(["checkbox"]),ht=d.forwardRef((e,t)=>a.jsxs(Nl,{children:[a.jsx(Fl,{ref:t,...e,type:"checkbox"}),a.jsx(On,{className:"check-icon",children:a.jsx(F,{iconId:"CheckSmall",size:"xsm",color:"white"})}),a.jsx(On,{className:"minus-icon",children:a.jsx(F,{iconId:"Minus",size:"xsm",color:"white"})})]})),Nl=m.div`
|
|
988
|
+
height: ${ye("size")};
|
|
989
|
+
width: ${ye("size")};
|
|
990
990
|
pointer-events: none;
|
|
991
991
|
position: relative;
|
|
992
992
|
display: flex;
|
|
993
993
|
flex-shrink: 0;
|
|
994
|
-
border: ${
|
|
995
|
-
background-color: ${
|
|
996
|
-
border-radius: ${
|
|
994
|
+
border: ${ye("border-width")} solid ${ye("border-color")};
|
|
995
|
+
background-color: ${ye("background-color")};
|
|
996
|
+
border-radius: ${ye("border-radius")};
|
|
997
997
|
overflow: hidden;
|
|
998
998
|
cursor: pointer;
|
|
999
999
|
transition: background 0.125s ease-in-out, border 0.125s ease-in-out;
|
|
1000
1000
|
:has(> input:disabled) {
|
|
1001
|
-
background-color: ${
|
|
1001
|
+
background-color: ${ye("background-color-disabled")};
|
|
1002
1002
|
cursor: not-allowed;
|
|
1003
1003
|
}
|
|
1004
1004
|
:has(> input:checked),
|
|
1005
1005
|
:has(> input:indeterminate) {
|
|
1006
|
-
background-color: ${
|
|
1007
|
-
border-color: ${
|
|
1006
|
+
background-color: ${ye("background-color-checked")};
|
|
1007
|
+
border-color: ${ye("border-color-checked")};
|
|
1008
1008
|
}
|
|
1009
1009
|
:has(> input:checked:disabled),
|
|
1010
1010
|
:has(> input:indeterminate:disabled) {
|
|
1011
|
-
border-color: ${
|
|
1012
|
-
background-color: ${
|
|
1011
|
+
border-color: ${ye("border-color-checked-disabled")};
|
|
1012
|
+
background-color: ${ye("background-color-checked-disabled")};
|
|
1013
1013
|
}
|
|
1014
|
-
`,
|
|
1014
|
+
`,On=m.div`
|
|
1015
1015
|
opacity: 0;
|
|
1016
1016
|
width: 100%;
|
|
1017
1017
|
height: 100%;
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
top: 0;
|
|
1024
1024
|
left: 0;
|
|
1025
1025
|
z-index: 1;
|
|
1026
|
-
`,
|
|
1026
|
+
`,Fl=m.input`
|
|
1027
1027
|
margin: 0px;
|
|
1028
1028
|
position: absolute;
|
|
1029
1029
|
top: 0;
|
|
@@ -1045,15 +1045,15 @@
|
|
|
1045
1045
|
opacity: 1;
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
`;var
|
|
1048
|
+
`;var Al=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,o=[],n=0;n<e.rangeCount;n++)o.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||o.forEach(function(r){e.addRange(r)}),t&&t.focus()}},_l=Al,In={"text/plain":"Text","text/html":"Url",default:"Text"},Wl="Copy to clipboard: #{key}, Enter";function Ll(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Bl(e,t){var o,n,r,s,l,i,u=!1;t||(t={}),o=t.debug||!1;try{r=_l(),s=document.createRange(),l=document.getSelection(),i=document.createElement("span"),i.textContent=e,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=In[t.format]||In.default;window.clipboardData.setData(g,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(i),s.selectNodeContents(i),l.addRange(s);var f=document.execCommand("copy");if(!f)throw new Error("copy command was unsuccessful");u=!0}catch(p){o&&console.error("unable to copy using execCommand: ",p),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(g){o&&console.error("unable to copy using clipboardData: ",g),o&&console.error("falling back to prompt"),n=Ll("message"in t?t.message:Wl),window.prompt(n,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(s):l.removeAllRanges()),i&&document.body.removeChild(i),r()}return u}var Pl=Bl;const Hl=xr(Pl),Vl=250,Gl=500,Ul=({children:e,color:t,copyable:o=!0,copyText:n,onClick:r,onMouseMove:s,onMouseOut:l,onMouseOver:i,style:u,...f})=>{const p=d.useRef(),g=d.useRef(),h=d.useRef(null),x=d.useRef(null),[b,y]=d.useState(!1),[v,w]=d.useState(!1),k=d.useCallback(T=>{const j=typeof e=="string";y(!0),Hl(n??j?String(e):"");const D=()=>{y(!1)};clearTimeout(p.current),p.current=setTimeout(D,Gl),r==null||r(T)},[e,n,r]),S=d.useCallback(T=>{if(!h.current||!x.current){s==null||s(T);return}const j=x.current.getBoundingClientRect(),D=T.clientX-j.left+9,W=T.clientY-j.top+9;h.current.style.transform=`translate(${D}px, ${W}px)`,s==null||s(T)},[s]),$=d.useCallback(T=>{y(!1),w(!1),clearTimeout(g.current),l==null||l(T)},[l]),C=d.useCallback(T=>{const j=()=>{w(!0)};return clearTimeout(g.current),g.current=setTimeout(j,Vl),i==null||i(T),()=>{clearTimeout(g.current)}},[i]);return a.jsxs("div",{style:{position:"relative"},children:[a.jsx(Yl,{ref:x,children:e,onClick:o?k:r,onMouseMove:o?S:s,onMouseOut:o?$:l,onMouseOver:o?C:i,style:o?b?{...u,opacity:.5,cursor:"default",userSelect:"none"}:{...u,cursor:"default",userSelect:"none"}:{...u,cursor:"default",userSelect:"none"},...f}),o&&a.jsx(F,{ref:h,iconId:"CopyFilled",style:{position:"absolute",transition:"opacity 150ms ease-in-out",top:"0px",left:"0px",opacity:v&&!b?"1":"0"}})]})},Yl=m(M)`
|
|
1049
1049
|
position: relative;
|
|
1050
1050
|
transition: opacity 150ms ease-in-out;
|
|
1051
|
-
`,
|
|
1051
|
+
`,Kl=({children:e,forwardedRef:t,setFloatingReference:o,getReferenceProps:n,open:r})=>{const s=e.ref,l=N.useMergeRefs([o,t,s]);if(d.isValidElement(e))return d.cloneElement(e,n({ref:l,...e.props,"data-state":r?"open":"closed"}));throw new Error("Passed useDecoratedFloatingUITrigger an invalid child element")};function vr({defaultOpen:e=!1,open:t,onOpenChange:o,dismissOptions:n}={}){const[r,s]=d.useState(e),l=t??r,i=d.useCallback(x=>{t===void 0&&s(x),o==null||o(x)},[t,o]),u=N.useFloating({open:l,onOpenChange:i}),f=u.context,p=N.useClick(f),g=N.useDismiss(f,n?{outsidePressEvent:"mousedown",...n}:{outsidePressEvent:"mousedown"}),h=N.useInteractions([p,g]);return d.useMemo(()=>({open:l,setOpen:i,...h,...u}),[l,i,h,u])}const ql=E.css`
|
|
1052
1052
|
background: rgba(0, 0, 0, 0.8);
|
|
1053
1053
|
display: grid;
|
|
1054
1054
|
place-items: center;
|
|
1055
1055
|
z-index: 1;
|
|
1056
|
-
`,
|
|
1056
|
+
`,wr=d.createContext(null),He=()=>{const e=d.useContext(wr);if(e==null)throw new Error("Dialog components must be wrapped in <Dialog />");return e},qo=d.memo(({children:e,...t})=>{const o=vr(t);return a.jsx(wr.Provider,{value:o,children:e})}),Zo=d.forwardRef(({children:e},t)=>{const o=He();return Kl({children:e,forwardedRef:t,setFloatingReference:o.refs.setReference,getReferenceProps:o.getReferenceProps,open:o.open})}),Xo=d.forwardRef(({disableScrollLock:e,modal:t,portalRoot:o,portalId:n,trapFocus:r,transitionDuration:s,OverlayStyles:l,disableFocusManagement:i,children:u,initialFocus:f,...p},g)=>{const{context:h,...x}=He(),b=N.useMergeRefs([x.refs.setFloating,g]),{isMounted:y,status:v}=N.useTransitionStatus(h,{duration:s||0});if(!d.isValidElement(u))throw new Error("Passed an invalid child element to Dialog.");if(!y)return null;const w=t?ql:l;return a.jsx(N.FloatingPortal,{id:n,root:o,children:a.jsx(N.FloatingFocusManager,{context:h,modal:r,returnFocus:!1,initialFocus:f,disabled:i,children:a.jsx(N.FloatingOverlay,{css:w,"data-status":v,lockScroll:!e,children:d.cloneElement(u,{...u.props,ref:b,"data-status":v==="initial"?"open":v,...x.getFloatingProps(p)})})})})}),Jo=300;function Qo(){const e=d.useRef(null),[t,o]=d.useState();return d.useEffect(()=>{const n=new ResizeObserver(([r])=>{r&&o(r.contentRect.width)});return e.current&&n.observe(e.current),()=>n.disconnect()},[]),[e,t]}const Zl=m.div`
|
|
1057
1057
|
background-color: transparent;
|
|
1058
1058
|
box-sizing: border-box;
|
|
1059
1059
|
cursor: ew-resize;
|
|
@@ -1073,28 +1073,28 @@
|
|
|
1073
1073
|
right: -4px;
|
|
1074
1074
|
top: 0;
|
|
1075
1075
|
}
|
|
1076
|
-
`,
|
|
1076
|
+
`,Ft=({inverse:e=!1,maxSize:t,minSize:o=200,onChange:n,size:r,...s})=>{const l=d.useRef(0),i=Wi.useDrag(({down:u,movement:[f],first:p})=>{if(!u)return;p&&(l.current=r);let g=l.current-f*(e?-1:1);g<o&&(g=o),t!==void 0&&g>t&&(g=t),n(g)});return a.jsx(Zl,{...s,...i()})},Xl=({defaultOpen:e=!1,minSize:t,mode:o,onOpenChange:n,open:r,size:s=440})=>{const[l,i]=d.useState(e),[u,f]=d.useState(s),p=r??l,g=n??i;return d.useMemo(()=>({mode:o,open:p,setOpen:g,setSize:f,size:u,minSize:t}),[t,o,p,g,u])},Ao=d.createContext(null),Xe=()=>{const e=d.useContext(Ao);if(e==null)throw new Error("Drawer components must be wrapped in <Drawer />");return e},[ne]=O(["drawer"]),Jl=m.div`
|
|
1077
1077
|
display: flex;
|
|
1078
1078
|
height: 100%;
|
|
1079
1079
|
position: absolute;
|
|
1080
1080
|
width: 100%;
|
|
1081
1081
|
z-index: 1;
|
|
1082
1082
|
pointer-events: none;
|
|
1083
|
-
`,
|
|
1083
|
+
`,Cr=E.css`
|
|
1084
1084
|
pointer-events: none;
|
|
1085
1085
|
display: grid;
|
|
1086
1086
|
overflow: hidden !important;
|
|
1087
1087
|
z-index: 1;
|
|
1088
|
-
`,
|
|
1088
|
+
`,Ql=E.css`
|
|
1089
1089
|
place-items: start;
|
|
1090
|
-
${
|
|
1091
|
-
`,
|
|
1090
|
+
${Cr};
|
|
1091
|
+
`,ec=E.css`
|
|
1092
1092
|
place-items: end;
|
|
1093
|
-
${
|
|
1094
|
-
`,
|
|
1093
|
+
${Cr};
|
|
1094
|
+
`,Sr=m.div`
|
|
1095
1095
|
align-items: flex-start;
|
|
1096
1096
|
animation-timing-function: ease-in-out;
|
|
1097
|
-
border-color: ${
|
|
1097
|
+
border-color: ${ne("border-color")};
|
|
1098
1098
|
border-style: solid;
|
|
1099
1099
|
border-width: 0px;
|
|
1100
1100
|
display: flex;
|
|
@@ -1106,61 +1106,61 @@
|
|
|
1106
1106
|
width: 100%;
|
|
1107
1107
|
// We add 50ms here to hedge against a race condition between
|
|
1108
1108
|
// the css animation finishing and the floating-ui transition helper hiding the content.
|
|
1109
|
-
animation-duration: ${
|
|
1110
|
-
|
|
1109
|
+
animation-duration: ${Jo+10}ms;
|
|
1110
|
+
`,$r=m.div`
|
|
1111
1111
|
display: flex;
|
|
1112
1112
|
height: 100%;
|
|
1113
1113
|
width: 100%;
|
|
1114
|
-
`,
|
|
1114
|
+
`,jr=m.div`
|
|
1115
1115
|
flex: 1;
|
|
1116
1116
|
width: 100%;
|
|
1117
1117
|
height: 100%;
|
|
1118
|
-
`,
|
|
1119
|
-
border-right-width: ${
|
|
1120
|
-
box-shadow: ${
|
|
1118
|
+
`,tc=d.forwardRef(({children:e,className:t,...o},n)=>{const{minSize:r,size:s,setSize:l}=Xe(),[i,u]=Qo(),f=u!==void 0,p=s/(u||1);return a.jsx($r,{ref:i,children:f&&a.jsxs(a.Fragment,{children:[a.jsx(Sr,{ref:n,className:t,style:{flexGrow:p},...o,children:e}),a.jsx(Ft,{inverse:!0,size:s,minSize:r,onChange:l}),a.jsx(jr,{style:{flexGrow:1-p}})]})})}),oc=d.forwardRef(({children:e,className:t,...o},n)=>{const{minSize:r,size:s,setSize:l}=Xe(),[i,u]=Qo(),f=u!==void 0,p=s/(u||1);return a.jsx($r,{ref:i,children:f&&a.jsxs(a.Fragment,{children:[a.jsx(jr,{style:{flexGrow:1-p}}),a.jsx(Ft,{size:s,minSize:r,onChange:l}),a.jsx(Sr,{ref:n,className:t,style:{flexGrow:p},...o,children:e})]})})}),nc=E.keyframes({"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0%)"}}),rc=E.keyframes({"0%":{transform:"translateX(0%)"},"100%":{transform:"translateX(-100%)"}}),sc=m(tc)`
|
|
1119
|
+
border-right-width: ${ne("border-width")};
|
|
1120
|
+
box-shadow: ${ne("left-drop-shadow")};
|
|
1121
1121
|
&[data-status="open"] {
|
|
1122
|
-
animation-name: ${
|
|
1122
|
+
animation-name: ${nc};
|
|
1123
1123
|
}
|
|
1124
1124
|
&[data-status="close"] {
|
|
1125
|
-
animation-name: ${
|
|
1125
|
+
animation-name: ${rc};
|
|
1126
1126
|
}
|
|
1127
|
-
`,
|
|
1128
|
-
border-left-width: ${
|
|
1129
|
-
box-shadow: ${
|
|
1127
|
+
`,ic=E.keyframes({from:{transform:"translateX(100%)"},to:{transform:"translateX(0%)"}}),ac=E.keyframes({from:{transform:"translateX(0%)"},to:{transform:"translateX(100%)"}}),lc=m(oc)`
|
|
1128
|
+
border-left-width: ${ne("border-width")};
|
|
1129
|
+
box-shadow: ${ne("right-drop-shadow")};
|
|
1130
1130
|
&[data-status="open"] {
|
|
1131
|
-
animation-name: ${
|
|
1131
|
+
animation-name: ${ic};
|
|
1132
1132
|
}
|
|
1133
1133
|
&[data-status="close"] {
|
|
1134
|
-
animation-name: ${
|
|
1134
|
+
animation-name: ${ac};
|
|
1135
1135
|
}
|
|
1136
|
-
`,
|
|
1136
|
+
`,Tr=m.div`
|
|
1137
1137
|
width: 100%;
|
|
1138
1138
|
pointer-events: all;
|
|
1139
1139
|
height: fit-content;
|
|
1140
1140
|
animation-timing-function: ease-in-out;
|
|
1141
1141
|
border-width: 0px;
|
|
1142
|
-
border-color: ${
|
|
1142
|
+
border-color: ${ne("border-color")};
|
|
1143
1143
|
border-style: solid;
|
|
1144
1144
|
// We add 50ms here to hedge against a race condition between
|
|
1145
1145
|
// the css animation finishing and the floating-ui transition helper hiding the content.
|
|
1146
|
-
animation-duration: ${
|
|
1147
|
-
`,
|
|
1148
|
-
border-bottom-width: ${
|
|
1146
|
+
animation-duration: ${Jo+10}ms;
|
|
1147
|
+
`,cc=E.keyframes({from:{transform:"translateY(-30px)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),dc=E.keyframes({from:{transform:"translateY(0)",opacity:1},to:{transform:"translateY(-30px)",opacity:0}}),uc=m(Tr)`
|
|
1148
|
+
border-bottom-width: ${ne("border-width")};
|
|
1149
1149
|
&[data-status="open"] {
|
|
1150
|
-
animation-name: ${
|
|
1150
|
+
animation-name: ${cc};
|
|
1151
1151
|
}
|
|
1152
1152
|
&[data-status="close"] {
|
|
1153
|
-
animation-name: ${
|
|
1153
|
+
animation-name: ${dc};
|
|
1154
1154
|
}
|
|
1155
|
-
`,
|
|
1156
|
-
border-top-width: ${
|
|
1155
|
+
`,Dr=E.keyframes({from:{transform:"translateY(30px)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),Er=E.keyframes({from:{transform:"translateY(0)",opacity:1},to:{transform:"translateY(30px)",opacity:0}}),fc=m(Tr)`
|
|
1156
|
+
border-top-width: ${ne("border-width")};
|
|
1157
1157
|
&[data-status="open"] {
|
|
1158
|
-
animation-name: ${
|
|
1158
|
+
animation-name: ${Dr};
|
|
1159
1159
|
}
|
|
1160
1160
|
&[data-status="close"] {
|
|
1161
|
-
animation-name: ${
|
|
1161
|
+
animation-name: ${Er};
|
|
1162
1162
|
}
|
|
1163
|
-
`,
|
|
1163
|
+
`,Mr=m.div`
|
|
1164
1164
|
display: flex;
|
|
1165
1165
|
align-items: flex-start;
|
|
1166
1166
|
justify-content: flex-start;
|
|
@@ -1169,50 +1169,50 @@
|
|
|
1169
1169
|
pointer-events: all;
|
|
1170
1170
|
width: fit-content;
|
|
1171
1171
|
border-width: 0px;
|
|
1172
|
-
border-color: ${
|
|
1172
|
+
border-color: ${ne("border-color")};
|
|
1173
1173
|
border-style: solid;
|
|
1174
|
-
`,
|
|
1175
|
-
border-right-width: ${
|
|
1176
|
-
box-shadow: ${
|
|
1177
|
-
`,
|
|
1178
|
-
border-left-width: ${
|
|
1179
|
-
box-shadow: ${
|
|
1180
|
-
`,
|
|
1174
|
+
`,pc=d.forwardRef(({children:e,className:t},o)=>{const{size:n,setSize:r}=Xe();return a.jsxs(a.Fragment,{children:[a.jsx(Ft,{inverse:!0,size:n,onChange:r}),a.jsx(Mr,{ref:o,className:t,style:{width:n},children:e})]})}),gc=d.forwardRef(({children:e,className:t},o)=>{const{size:n,setSize:r}=Xe();return a.jsxs(a.Fragment,{children:[a.jsx(Ft,{size:n,onChange:r}),a.jsx(Mr,{ref:o,className:t,style:{width:n},children:e})]})}),hc=m(pc)`
|
|
1175
|
+
border-right-width: ${ne("border-width")};
|
|
1176
|
+
box-shadow: ${ne("left-drop-shadow")};
|
|
1177
|
+
`,mc=m(gc)`
|
|
1178
|
+
border-left-width: ${ne("border-width")};
|
|
1179
|
+
box-shadow: ${ne("right-drop-shadow")};
|
|
1180
|
+
`,zr=m.div`
|
|
1181
1181
|
width: 100%;
|
|
1182
1182
|
pointer-events: all;
|
|
1183
1183
|
height: fit-content;
|
|
1184
1184
|
border-width: 0px;
|
|
1185
|
-
border-color: ${
|
|
1185
|
+
border-color: ${ne("border-color")};
|
|
1186
1186
|
border-style: solid;
|
|
1187
|
-
`,
|
|
1188
|
-
border-bottom-width: ${
|
|
1189
|
-
`,
|
|
1190
|
-
border-top-width: ${
|
|
1187
|
+
`,bc=m(zr)`
|
|
1188
|
+
border-bottom-width: ${ne("border-width")};
|
|
1189
|
+
`,xc=m(zr)`
|
|
1190
|
+
border-top-width: ${ne("border-width")};
|
|
1191
1191
|
&[data-status="open"] {
|
|
1192
|
-
animation-name: ${
|
|
1192
|
+
animation-name: ${Dr};
|
|
1193
1193
|
}
|
|
1194
1194
|
&[data-status="close"] {
|
|
1195
|
-
animation-name: ${
|
|
1195
|
+
animation-name: ${Er};
|
|
1196
1196
|
}
|
|
1197
|
-
`,
|
|
1197
|
+
`,yc={escapeKey:!0,outsidePress:!1},kc=d.memo(({children:e,...t})=>{const o=Xl(t);return t.mode==="dialog"?a.jsx(Ao.Provider,{value:o,children:a.jsx(qo,{onOpenChange:o.setOpen,open:o.open,defaultOpen:t.defaultOpen??!1,dismissOptions:yc,children:e})}):a.jsx(Ao.Provider,{value:o,children:e})}),vc=d.memo(({children:e})=>{const{mode:t,open:o,setOpen:n}=Xe(),r=d.useCallback(()=>{n(!o)},[o,n]);if(t==="dialog")return a.jsx(Zo,{children:e});if(d.isValidElement(e))return d.cloneElement(e,{...e.props,onClick:r,"data-state":o?"open":"closed"});throw new Error("Passed DialogTrigger an invalid element")}),wc=d.memo(({children:e,OverlayStyles:t,...o})=>{const{mode:n,open:r}=Xe();if(n==="dialog")return a.jsx(Xo,{disableScrollLock:!0,disableFocusManagement:!0,OverlayStyles:t,transitionDuration:Jo,...o,children:e});if(t)throw new Error("OverlayStyles are not used in inline drawers.");return r?n==="inline-float"?a.jsx(Jl,{children:e}):e:null}),[wt]=O(["drawer"]),Cc=d.memo(({children:e,className:t,closeIcon:o,showCloseButton:n=!0,title:r,textVariant:s="h2",textBold:l=!1,inheritTextColor:i=!1})=>{const{setOpen:u}=Xe(),f=d.useCallback(()=>{u(!1)},[u]);return a.jsxs(Sc,{className:t,children:[a.jsx(M,{bold:l,color:i?void 0:"dark",variant:s,children:r}),e,n&&a.jsx(ee,{onClick:f,iconId:o||"Close",size:"sm",color:i?void 0:"blue"})]})}),Sc=m.div`
|
|
1198
1198
|
width: 100%;
|
|
1199
1199
|
display: flex;
|
|
1200
1200
|
align-items: center;
|
|
1201
1201
|
justify-content: space-between;
|
|
1202
|
-
height: ${
|
|
1203
|
-
background-color: ${
|
|
1204
|
-
border-bottom: ${
|
|
1205
|
-
padding: 0px ${
|
|
1206
|
-
`,[
|
|
1202
|
+
height: ${wt("header-height")};
|
|
1203
|
+
background-color: ${wt("header-bg")};
|
|
1204
|
+
border-bottom: ${wt("header-border-size")} solid ${wt("header-border-color")};
|
|
1205
|
+
padding: 0px ${wt("header-x-padding")};
|
|
1206
|
+
`,[Rn]=O(["horizontal-rule"]),$c=m.div`
|
|
1207
1207
|
width: 100%;
|
|
1208
|
-
border-bottom: ${
|
|
1209
|
-
${
|
|
1210
|
-
`,[K]=
|
|
1208
|
+
border-bottom: ${Rn("border-width")} solid
|
|
1209
|
+
${Rn("border-color")};
|
|
1210
|
+
`,[K]=O(["input"]),mt=d.forwardRef(({className:e,type:t,prefixIconId:o,prefixIconColor:n,prefixSize:r,isSmall:s,autoCapitalize:l="off",autoComplete:i="off",autoCorrect:u="off",suffixIconColor:f,suffixIcon:p,suffixIconId:g,suffixSize:h,onSuffixIconClick:x,onEnter:b,onKeyDown:y,...v},w)=>{const k=t==="password",[S,$]=d.useState(!1),[C,T]=d.useState(t),j=d.useCallback(()=>{T(S?"password":"text"),$(!S)},[S]),D=W=>{W.key==="Enter"&&(b==null||b()),y==null||y(W)};return d.useEffect(()=>{T(t)},[t]),a.jsx(E.ClassNames,{children:({cx:W})=>a.jsxs(jc,{children:[a.jsx(Tc,{type:C,className:W(e,{isSmall:s,hasLeftIcon:!!o,hasRightIcon:!!k||!!g}),ref:w,autoCapitalize:k?"off":l,autoComplete:k?"current-password":i,autoCorrect:k?"off":u,onKeyDown:D,...v}),o&&a.jsx(Dc,{iconId:o,color:n||"black",size:r||"sm"}),(k||!!g||!!p)&&a.jsx(Ec,{children:p||(g?a.jsx(F,{iconId:g,color:f??"black",size:h||"sm",onClick:x}):a.jsx(ee,{onClick:j,iconId:S?"Eye":"EyeInvisible",size:"sm",color:n??"black"}))})]})})}),jc=m.div`
|
|
1211
1211
|
width: 100%;
|
|
1212
1212
|
height: fit-content;
|
|
1213
1213
|
position: relative;
|
|
1214
1214
|
display: flex;
|
|
1215
|
-
`,
|
|
1215
|
+
`,Tc=m.input`
|
|
1216
1216
|
border: ${K("border-width")} solid ${K("border-color")};
|
|
1217
1217
|
border-radius: ${K("border-radius")};
|
|
1218
1218
|
height: ${K("height")};
|
|
@@ -1255,14 +1255,14 @@
|
|
|
1255
1255
|
&.hasRightIcon {
|
|
1256
1256
|
padding-right: ${K("padding-right-icon")};
|
|
1257
1257
|
}
|
|
1258
|
-
`,
|
|
1258
|
+
`,Dc=m(F)`
|
|
1259
1259
|
position: absolute;
|
|
1260
1260
|
top: 50%;
|
|
1261
1261
|
transform: translateY(-50%);
|
|
1262
1262
|
pointer-events: none;
|
|
1263
1263
|
z-index: 1;
|
|
1264
1264
|
left: ${K("icon-left")};
|
|
1265
|
-
`,
|
|
1265
|
+
`,Ec=m.div`
|
|
1266
1266
|
position: absolute;
|
|
1267
1267
|
right: 8px;
|
|
1268
1268
|
top: 50%;
|
|
@@ -1270,26 +1270,26 @@
|
|
|
1270
1270
|
z-index: 1;
|
|
1271
1271
|
display: grid;
|
|
1272
1272
|
place-content: center;
|
|
1273
|
-
`;
|
|
1273
|
+
`;mt.displayName="Input";const Mc=d.forwardRef(({onSearch:e,onChange:t,value:o,placeholder:n,prefixIconColor:r,suffixIconColor:s,...l},i)=>a.jsx(mt,{...l,ref:i,autoComplete:"off",prefixIconColor:r??"black",prefixIconId:"Search",prefixSize:"xsm",suffixIconColor:s??"blue",suffixIconId:o?"Close":void 0,suffixSize:"xsm",onSuffixIconClick:()=>{t==null||t(""),e==null||e("")},placeholder:n||"Search for...",onKeyPress:u=>{u.key==="Enter"&&(u.preventDefault(),e(u.currentTarget.value))},onChange:u=>{t==null||t(u.target.value)},value:o})),[zc]=O(["label"]),Or=E.css`
|
|
1274
1274
|
align-items: center;
|
|
1275
1275
|
display: flex;
|
|
1276
|
-
gap: ${
|
|
1277
|
-
`,
|
|
1278
|
-
color: ${
|
|
1279
|
-
`,
|
|
1276
|
+
gap: ${zc("gap")};
|
|
1277
|
+
`,Ir=({variant:e="body",...t})=>a.jsx(M,{css:Or,variant:e,...t}),en=({children:e,prefix:t,suffix:o,...n})=>a.jsxs(Ir,{...n,children:[t,e,o]}),[Oc]=O(["label-with-action"]),Ic=E.css([Or,{gap:Oc("gap")}]),Rc=({action:e,variant:t="h2",...o})=>a.jsx(en,{css:Ic,suffix:e,variant:t,...o}),[Nc]=O(["label-with-content-link"]),Fc=E.css`
|
|
1278
|
+
color: ${Nc("color")};
|
|
1279
|
+
`,Ac=e=>a.jsx(en,{css:Fc,...e}),_c=new RegExp(/^[a-zA-Z0-9 _.-]*$/),Rr=new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),Wc=new RegExp(/^\d+$/),Lc=new RegExp(/^\S*$/),Bc=new RegExp(/^[a-zA-Z].*/),Nr=new RegExp(/^[-a-zA-Z0-9-_'().-]+(\s+[-a-zA-Z0-9-_'().-]+)*$/);var Fr=(e=>(e.email="email",e))(Fr||{});const Pc=()=>({email:e=>Rr.test(e)}),Hc=12;var Dt=(e=>(e.noDigit="noDigit",e.noUpperCase="noUpperCase",e.noSpecialCharacter="noSpecialCharacter",e.tooSimilar="tooSimilar",e))(Dt||{});const Vc=(e,t)=>({...e?{tooSimilar:(o,n)=>{const r=n[t??"password_current"];return r?o!==r:!0}}:{tooSimilar:()=>!0},noDigit:o=>new RegExp(/\d/).test(o),noSpecialCharacter:o=>new RegExp(/[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]+/).test(o),noUpperCase:o=>new RegExp(/[A-Z]+/).test(o)}),Ar=e=>typeof e=="object"&&e!==null&&"message"in e&&typeof e.message=="string",Gc=e=>{if(Ar(e))return e.message},Uc=()=>{let e=!1,t=[];const o=new Map,n=new window.ResizeObserver((r,s)=>{t=t.concat(r),e||window.requestAnimationFrame(()=>{const l=new Set;t.forEach(i=>{if(!l.has(i.target)){l.add(i.target);const u=o.get(i.target);u&&u.forEach(f=>f(i,s))}}),t=[],e=!1}),e=!0});return{observer:n,subscribe(r,s){n.observe(r);const l=o.get(r)??[];l.push(s),o.set(r,l)},unsubscribe(r,s){const l=o.get(r)??[];if(l.length===1){n.unobserve(r),o.delete(r);return}const i=l.indexOf(s);i!==-1&&l.splice(i,1),o.set(r,l)}}};let yo;const Yc=()=>yo||(yo=Uc()),_r=(e,t)=>{const o=Yc(),n=d.useRef(t);return d.useLayoutEffect(()=>{n.current=t},[t]),d.useLayoutEffect(()=>{let r=!1;const s=e&&"current"in e?e.current:e;if(!s)return Re;const l=(i,u)=>{r||n.current(i,u)};return o.subscribe(s,l),()=>{r=!0,o.unsubscribe(s,l)}},[e,o]),o.observer},eo=e=>{const t=d.useRef(null),o=d.useRef(null),n=d.useCallback(()=>{if(!t.current)return;const l=o.current,i=t.current;if(i!==null&&l!==null){const u=i.getAttribute("data-original");i.textContent!==u&&(i.textContent=u);const p=i.textContent,g=i.offsetWidth,h=l.offsetWidth;if(g>h&&p){const x=p.length,b=g/x,v=Math.ceil((g-h)/b)/2+1.5,w=Math.floor(x/2-v),k=Math.ceil(x/2+v),S=p.substr(0,w),$=p.substr(k);i.textContent=`${S.trim()}...${$.trim()}`}}},[]),r=d.useCallback(l=>{n()},[n]);_r(o,r),d.useEffect(()=>n(),[e.children,n]);const s=d.useCallback(l=>{t.current=l,o.current=(l==null?void 0:l.parentElement)??null},[]);return a.jsx(Kc,{"data-original":e.children,ref:s,...e})},Kc=m(M)`
|
|
1280
1280
|
white-space: nowrap;
|
|
1281
1281
|
word-break: keep-all;
|
|
1282
1282
|
overflow: visible;
|
|
1283
|
-
`,
|
|
1283
|
+
`,qc=m.div`
|
|
1284
1284
|
display: grid;
|
|
1285
1285
|
width: 100%;
|
|
1286
1286
|
height: 100%;
|
|
1287
1287
|
position: relative;
|
|
1288
1288
|
|
|
1289
1289
|
${({orientation:e})=>e==="horizontal"?"grid-template-columns: auto 2px auto;":"grid-template-rows: auto 2px auto;"}
|
|
1290
|
-
`,
|
|
1290
|
+
`,Wr=m.div`
|
|
1291
1291
|
overflow: auto;
|
|
1292
|
-
`,
|
|
1292
|
+
`,Zc=m(Wr)``,Xc=m(Wr)``,Jc=m.div`
|
|
1293
1293
|
${({orientation:e})=>e==="horizontal"?"width: 1px; cursor: col-resize;":"height: 1px; cursor: row-resize;"}
|
|
1294
1294
|
|
|
1295
1295
|
background-color: ${c("color-grey20")};
|
|
@@ -1303,7 +1303,7 @@
|
|
|
1303
1303
|
${({orientation:e})=>e==="horizontal"?"top: 0; bottom: 0; left: -4px; right: -4px;":"left: 0; right: 0; top: -4px; bottom: -4px;"}
|
|
1304
1304
|
cursor: inherit;
|
|
1305
1305
|
}
|
|
1306
|
-
`;function
|
|
1306
|
+
`;function Qc(e,t){let o,n;return function(...r){const s=this;n?(clearTimeout(o),o=setTimeout(function(){Date.now()-n>=t&&(e.apply(s,r),n=Date.now())},t-(Date.now()-n))):(e.apply(s,r),n=Date.now())}}const ed=({initialStartSizePct:e=50,startClampSizePx:t=210,minStartSizePct:o=10,minEndSizePct:n=10,startContent:r,endContent:s,orientation:l="horizontal"})=>{const i=d.useRef(null),[u,f]=d.useState(null);d.useEffect(()=>{if(i.current&&u===null){const y=i.current.getBoundingClientRect(),v=l==="horizontal"?y.width:y.height,w=e/100*v,k=Math.max(t,w),S=k/v*100;f(k);const $=S,C=100-S;l==="horizontal"?i.current.style.gridTemplateColumns=`${$}% 2px ${C}%`:i.current.style.gridTemplateRows=`${$}% 2px ${C}%`}},[e,t,u,l]);const p=d.useCallback(()=>{if(!i.current||u===null)return;const y=i.current.getBoundingClientRect(),v=l==="horizontal"?y.width:y.height;let w=Math.round(u/v*100),k=100-w;if(k<n){k=n,w=100-k;const S=Math.round(w/100*v);f(S)}if(w<o){w=o,k=100-w;const S=Math.round(w/100*v);f(S)}l==="horizontal"?i.current.style.gridTemplateColumns=`${u}px 2px auto`:i.current.style.gridTemplateRows=`${u}px 2px auto`},[u,o,n,l]),g=d.useCallback(Qc(p,50),[p]);d.useEffect(()=>(window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const h=y=>{y.preventDefault(),document.addEventListener("mousemove",x),document.addEventListener("mouseup",b)},x=y=>{if(!i.current)return;const v=i.current.getBoundingClientRect(),w=l==="horizontal"?v.width:v.height,k=l==="horizontal"?y.clientX-v.left:y.clientY-v.top,S=Math.max(t,k),$=Math.round(S/w*100),C=100-$;$>=o&&C>=n&&(f(k),l==="horizontal"?i.current.style.gridTemplateColumns=`${$}% 2px ${C}%`:i.current.style.gridTemplateRows=`${$}% 2px ${C}%`)},b=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",b)};return a.jsxs(qc,{ref:i,orientation:l,children:[a.jsx(Zc,{children:r}),a.jsx(Jc,{onMouseDown:h,orientation:l}),a.jsx(Xc,{children:s})]})};function Pe(e,t){if(!e)throw console.error(t),Error(t)}const Lr=(e,t=document)=>{const o=t.querySelector(`[data-resizable-panel-group-handle-id="${e}"]`);return o||null};function td(e,t=document){var n;if(t instanceof HTMLElement&&((n=t==null?void 0:t.dataset)==null?void 0:n.resizablePanelGroupId)===e)return t;const o=t.querySelector(`[data-resizable-panel-group][data-resizable-panel-group-id="${e}"]`);return o||null}const od=e=>e.type.startsWith("mouse"),nd=e=>e.type.startsWith("pointer"),to=e=>{if(nd(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(od(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}},Br=(e,t)=>{const o=e==="horizontal",{x:n,y:r}=to(t);return o?n:r},rd=(e,t,o,n,r)=>{const s=Lr(t,r);Pe(s,`No resize handle element found for id "${t}"`);const l=s.getAttribute("data-resizable-panel-group-id");Pe(l,"Resize handle element has no group id attribute");const{initialCursorPosition:i}=n,u=Br(o,e),f=td(l,r);return Pe(f,`No group element found for id "${l}"`),u-i},sd=(e,t,o,n,r)=>n==null?0:rd(e,t,o,n,r),Nn=(e,t,o=document)=>{const n=Array.from(o.querySelectorAll(`[data-resizable-panel-group-element][data-resizable-panel-group-id="${t}"]`)),r=n.findIndex(s=>!!(s.dataset&&s.dataset.resizablePanelGroupHandleId===e));if(r){const s=r-1,l=n[s];if(l&&l.dataset.resizablePanelGroupPanel!==void 0)return l}return null},Fn=(e,t=document)=>Array.from(t.querySelectorAll(`[data-resizable-panel-group-element][data-resizable-panel-group-id="${e}"]`)).filter(n=>n.dataset&&n.dataset.resizablePanelGroupPanel!==void 0),Et=(e,t,o)=>{const n=e.dataset[t];let r;if(n)if(n.includes("px"))r=Number(n.replace("px",""));else if(n.includes("%")){if(o){const s=Number(n.replace("%",""));r=o*(s/100)}}else r=Number(n);return r},id=(e,t,o,n,r,s)=>{t==="vertical"?(e.style.height=`${o}px`,r&&(e.style.minHeight=`${r}px`),s&&(e.style.maxHeight=`${s}px`)):(e.style.width=`${o}px`,r&&(e.style.minWidth=`${r}px`),s&&(e.style.maxWidth=`${s}px`)),e.setAttribute("data-collapsed",`${n}`)},ko=(e,t,o,n)=>{const r=t==="horizontal"?e.getBoundingClientRect().width:e.getBoundingClientRect().height,s=e.parentElement,l=t==="horizontal"?s==null?void 0:s.getBoundingClientRect().width:s==null?void 0:s.getBoundingClientRect().height,i=Et(e,"resizablePanelMinSize",l),u=Et(e,"resizablePanelMaxSize",l),f=Et(e,"resizablePanelCollapsedSize",l);let p=o??r;const g=i?i*.33:50;i&&r===i?n&&p<i&&f&&i-p>g?p=f:p<i&&(p=i):u&&r===u?p>u&&(p=u):f&&r===f&&(!n&&p>f&&i&&p-f>g?p=i:p=f);const h=p===f;p===r||!l||id(e,t,p,h,h?f:i,u)},Pr=d.createContext(null),Hr=({children:e,direction:t})=>{const o=d.useId(),n=d.useRef(null),[r,s]=d.useState(null),l=d.useRef({dragState:r,id:o,initialResizePanelSize:null,direction:t});d.useLayoutEffect(()=>{l.current.direction=t,l.current.dragState=r,l.current.id=o});const i=d.useCallback((h,x)=>{const{direction:b}=l.current;if(!n.current)return;const y=Lr(h,n.current);Pe(y,`Drag handle element not found for id "${h}"`);const v=Br(b,x);s({dragHandleId:h,dragHandleRect:y.getBoundingClientRect(),initialCursorPosition:v});const w=Nn(h,l.current.id,n.current);if(w){const k=w.getBoundingClientRect();l.current.initialResizePanelSize=b==="vertical"?k.height:k.width}},[]),u=d.useCallback(()=>{s(null),l.current.initialResizePanelSize=null},[]),f=d.useCallback(h=>{const{direction:x}=l.current,y=Fn(l.current.id,n.current??void 0).find(v=>v.dataset.resizablePanelId===h);if(y){const v=y.parentElement,w=x==="horizontal"?v==null?void 0:v.getBoundingClientRect().width:v==null?void 0:v.getBoundingClientRect().height,k=y.dataset.collapsed==="true",S=Et(y,"resizablePanelMinSize",w),$=Et(y,"resizablePanelCollapsedSize",w);ko(y,x,k?S:$,!k)}},[]);d.useEffect(()=>{const h=()=>{Fn(l.current.id,n.current??void 0).forEach(b=>{ko(b,l.current.direction)})};return window.addEventListener("resize",h),()=>{window.removeEventListener("resize",h)}},[]);const p=d.useCallback(h=>x=>{x.preventDefault();const b=n.current;if(!b)return()=>null;const{direction:y,dragState:v}=l.current,w=sd(x,h,y,v,b);if(w!==0&&n.current){const k=Nn(h,l.current.id,n.current);if(k&&l.current.initialResizePanelSize!==null){const S=l.current.initialResizePanelSize;let $=S+w;$=$<0?0:$,ko(k,y,$,S>$)}}},[]),g=d.useMemo(()=>({id:o,startDragging:i,stopDragging:u,direction:t,registerResizeHandle:p,togglePanelCollapse:f}),[o,i,u,t,p,f]);return a.jsx(Pr.Provider,{value:g,children:e(n,o)})},tn=()=>{const e=d.useContext(Pr);if(!e)throw new Error("Unable to use ResizablePanelGroupContext outside of a ResizablePanelGroupContextProvider");return e},Vr=({children:e,direction:t,className:o})=>a.jsx(Hr,{direction:t,children:(n,r)=>a.jsx(ad,{"data-resizable-panel-group":"","data-resizable-panel-group-id":r,className:gt(o,{isVertical:t==="vertical"}),ref:n,children:e})}),ad=m.div`
|
|
1307
1307
|
width: 100%;
|
|
1308
1308
|
height: 100%;
|
|
1309
1309
|
overflow: auto;
|
|
@@ -1313,58 +1313,58 @@
|
|
|
1313
1313
|
&.isVertical {
|
|
1314
1314
|
flex-direction: column;
|
|
1315
1315
|
}
|
|
1316
|
-
`,
|
|
1316
|
+
`,on=({children:e,maxSize:t,minSize:o,defaultSize:n,collapsedSize:r,className:s,panelId:l})=>{const{id:i,direction:u}=tn(),f=typeof t=="string"?t:t?`${t}px`:void 0,p=typeof o=="string"?o:o?`${o}px`:void 0,g=typeof n=="string"?n:n?`${n}px`:void 0;return a.jsx(ld,{className:s,style:u==="horizontal"?{maxWidth:f,minWidth:p,width:g??"auto",height:"100%"}:{maxHeight:f,minHeight:p,height:g??"auto",width:"100%"},"data-resizable-panel-group-element":"","data-resizable-panel-group-panel":"","data-resizable-panel-max-size":t,"data-resizable-panel-min-size":o,"data-resizable-panel-collapsed-size":r,"data-resizable-panel-id":l,"data-resizable-panel-group-id":i,"data-collapsed":!1,children:e})},ld=m.div`
|
|
1317
1317
|
flex-shrink: 0;
|
|
1318
1318
|
overflow: clip;
|
|
1319
|
-
`,
|
|
1319
|
+
`,Gr=m(on)`
|
|
1320
1320
|
flex: 1;
|
|
1321
|
-
`;let
|
|
1321
|
+
`;let _o=null,tt=null;function cd(e){switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize";default:return"auto"}}function dd(){tt!==null&&(document.head.removeChild(tt),_o=null,tt=null)}function vo(e){const t=cd(e);_o!==t&&(_o=t,tt===null&&(tt=document.createElement("style"),document.head.appendChild(tt)),tt.innerHTML=`*{cursor: ${t}!important;}`)}const ud=(e,t,o)=>e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y;function fd(e,t){if(e===t)throw new Error("Cannot compare node with itself");const o={a:Wn(e),b:Wn(t)};let n;for(;o.a.at(-1)===o.b.at(-1);)e=o.a.pop(),t=o.b.pop(),n=e;Pe(n,"Stacking order can only be calculated for elements with a common ancestor");const r={a:_n(An(o.a)),b:_n(An(o.b))};if(r.a===r.b){const s=n.childNodes,l={a:o.a.at(-1),b:o.b.at(-1)};let i=s.length;for(;i--;){const u=s[i];if(u===l.a)return 1;if(u===l.b)return-1}}return Math.sign(r.a-r.b)}const pd=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function gd(e){const t=getComputedStyle(Ur(e)??e).display;return t==="flex"||t==="inline-flex"}function hd(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||gd(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||pd.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function An(e){let t=e.length;for(;t--;){const o=e[t];if(Pe(o,"Missing node"),hd(o))return o}return null}function _n(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Wn(e){const t=[];for(;e;)t.push(e),e=Ur(e);return t}function Ur(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let dt=!1;const md=()=>{if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"},je=[],It=new Set,bd=md()==="coarse",Ze=new Map,xd=(e,t,o,n)=>{const{ownerDocument:r}=e,s={direction:t,element:e,hitAreaMargins:o,setResizeHandlerState:n},l=Ze.get(r)??0;return Ze.set(r,l+1),It.add(s),qt(),function(){It.delete(s);const u=Ze.get(r)??1;if(Ze.set(r,u-1),qt(),u===1&&Ze.delete(r),je.includes(s)){const f=je.indexOf(s);f>=0&&je.splice(f,1),rn(),n("up",!0,null)}}},nn=({target:e,x:t,y:o})=>{je.splice(0);let n=null;e instanceof HTMLElement&&(n=e),It.forEach(r=>{const{element:s,hitAreaMargins:l}=r,i=s.getBoundingClientRect(),{bottom:u,left:f,right:p,top:g}=i,h=bd?l.coarse:l.fine;if(t>=f-h&&t<=p+h&&o>=g-h&&o<=u+h){if(n!==null&&document.contains(n)&&s!==n&&!s.contains(n)&&!n.contains(s)&&fd(n,s)>0){let b=n,y=!1;for(;b&&!b.contains(s);){if(ud(b.getBoundingClientRect(),i)){y=!0;break}b=b.parentElement}if(y)return}je.push(r)}})},Ln=e=>{const{target:t}=e,{x:o,y:n}=to(e);dt=!0,nn({target:t,x:o,y:n}),qt(),je.length>0&&(Zt("down",e),e.preventDefault(),e.stopPropagation())},Ct=e=>{const{x:t,y:o}=to(e);if(dt&&e.buttons===0&&(dt=!1,Zt("up",e)),!dt){const{target:n}=e;nn({target:n,x:t,y:o})}Zt("move",e),rn(),je.length>0&&e.preventDefault()},it=e=>{const{target:t}=e,{x:o,y:n}=to(e);dt=!1,je.length>0&&e.preventDefault(),Zt("up",e),nn({target:t,x:o,y:n}),rn(),qt()},qt=()=>{Ze.forEach((e,t)=>{const{body:o}=t;o.removeEventListener("contextmenu",it),o.removeEventListener("pointerdown",Ln),o.removeEventListener("pointerleave",Ct),o.removeEventListener("pointermove",Ct)}),window.removeEventListener("pointerup",it),window.removeEventListener("pointercancel",it),It.size>0&&(dt?(je.length>0&&Ze.forEach((e,t)=>{const{body:o}=t;e>0&&(o.addEventListener("contextmenu",it),o.addEventListener("pointerleave",Ct),o.addEventListener("pointermove",Ct))}),window.addEventListener("pointerup",it),window.addEventListener("pointercancel",it)):Ze.forEach((e,t)=>{const{body:o}=t;e>0&&(o.addEventListener("pointerdown",Ln,{capture:!0}),o.addEventListener("pointermove",Ct))}))},Zt=(e,t)=>{It.forEach(o=>{const{setResizeHandlerState:n}=o,r=je.includes(o);n(e,r,t)})},rn=()=>{let e=!1,t=!1;je.forEach(o=>{const{direction:n}=o;n==="horizontal"?e=!0:t=!0}),e&&t?vo("intersection"):e?vo("horizontal"):t?vo("vertical"):dd()},[wo]=O(["resizable-panels"]),Yr=d.memo(({className:e,disabled:t})=>{const{id:o,startDragging:n,stopDragging:r,direction:s,registerResizeHandle:l}=tn(),i=d.useId(),[u,f]=d.useState("inactive"),[p,g]=d.useState(null),h=d.useRef(null),x=d.useRef({state:u});return d.useLayoutEffect(()=>{x.current.state=u}),d.useEffect(()=>{if(t)g(null);else{const b=l(i);g(()=>b)}},[t,i,l]),d.useEffect(()=>{if(t||p==null)return;const b=h.current;return Pe(b,"Element ref not attached"),xd(b,s,{coarse:15,fine:5},(v,w,k)=>{if(w)switch(v){case"down":{f("drag"),Pe(k,'Expected event to be defined for "down" action'),n(i,k);break}case"move":{const{state:S}=x.current;S!=="drag"&&f("hover"),Pe(k,'Expected event to be defined for "move" action'),p(k);break}case"up":{f("hover"),r();break}}else f("inactive")})},[s,t,i,p,n,r]),a.jsx(yd,{"data-resizable-panel-group-element":"","data-resizable-panel-group-id":o,"data-resizable-panel-group-handle-id":i,className:gt(e,{isVertical:s==="vertical",isHovered:u==="hover",isDragging:u==="drag"}),ref:h})}),yd=m.div`
|
|
1322
1322
|
height: 100%;
|
|
1323
1323
|
width: 1px;
|
|
1324
1324
|
flex-shrink: 0;
|
|
1325
|
-
background-color: ${
|
|
1325
|
+
background-color: ${wo("border-color")};
|
|
1326
1326
|
transition: background 0.125s ease-in-out;
|
|
1327
1327
|
&.isHovered {
|
|
1328
|
-
background-color: ${
|
|
1328
|
+
background-color: ${wo("border-color-hover")};
|
|
1329
1329
|
}
|
|
1330
1330
|
&.isDragging {
|
|
1331
|
-
background-color: ${
|
|
1331
|
+
background-color: ${wo("border-color-drag")};
|
|
1332
1332
|
}
|
|
1333
1333
|
&.isVertical {
|
|
1334
1334
|
width: 100%;
|
|
1335
1335
|
height: 1px;
|
|
1336
1336
|
}
|
|
1337
|
-
`,
|
|
1337
|
+
`,Kr=({children:e,open:t,disableScrollLock:o,className:n,status:r})=>t?a.jsx(N.FloatingPortal,{children:a.jsx(kd,{className:n,lockScroll:!o,"data-status":r,children:e})}):null,kd=m(N.FloatingOverlay)`
|
|
1338
1338
|
background: rgba(0, 0, 0, 0.8);
|
|
1339
1339
|
display: grid;
|
|
1340
1340
|
place-items: center;
|
|
1341
1341
|
z-index: 1;
|
|
1342
|
-
`,
|
|
1342
|
+
`,vd=[N.flip()],qr=[N.flip(),N.size({apply({rects:e,elements:t}){Object.assign(t.floating.style,{width:`${e.reference.width}px`})}})],[Wo]=O(["select"]),sn=d.createContext(null),an=()=>{const e=d.useContext(sn);if(e===null)throw new Error("Select context used outside of the SelectContextProvider");return e},wd=()=>Promise.resolve(),bt=({children:e,onSelect:t,Reference:o,disabled:n,selectedIndex:r,onSelectedIndexChange:s,className:l,matchReferenceWidth:i,isFocusTrapDisabled:u,menuPlacement:f,onOpenChange:p,onBeforeOpen:g=wd,showOpenState:h=!1})=>{const[x,b]=d.useState(!1),[y,v]=d.useState(null),[w,k]=d.useState(null),S=r??w,$=s??k,C=d.useCallback(Z=>{Z?g().then(()=>{b(Z),p&&p(Z)}):(b(Z),p&&p(Z))},[g,p]),{refs:T,floatingStyles:j,context:D}=N.useFloating({placement:f||"bottom-end",open:x,onOpenChange:C,whileElementsMounted:N.autoUpdate,middleware:i?qr:vd}),W=d.useRef([]),G=d.useRef([]),H=d.useCallback(Z=>{var st;$(Z),Z!==null&&t(((st=W.current[Z])==null?void 0:st.dataset.key)||""),b(!1),p&&p(!1)},[p,t,$]),X=N.useListNavigation(D,{listRef:W,activeIndex:y,selectedIndex:S,focusItemOnHover:!u,focusItemOnOpen:!u,onNavigate:v}),Ue=N.useClick(D,{enabled:!n}),Ye=N.useDismiss(D),Ke=N.useRole(D,{role:"listbox"}),{getReferenceProps:rt,getFloatingProps:xt,getItemProps:se}=N.useInteractions([X,Ue,Ye,Ke]),ie=d.useMemo(()=>({activeIndex:y,selectedIndex:S,open:x,getItemProps:se,handleSelect:H,setIsOpen:b}),[y,x,S,se,H]);return a.jsxs(sn.Provider,{value:ie,children:[a.jsx(Cd,{ref:T.setReference,tabIndex:0,...rt({onClick(Z){Z.stopPropagation()}}),children:h?a.jsxs($d,{children:[o??a.jsx(ee,{className:"select-reference",size:"sm",iconId:"Ellipsis",color:"blue"}),a.jsx(F,{size:"xsm",iconId:x?"CaretUp":"CaretDown"})]}):o??a.jsx(ee,{className:"select-reference",size:"sm",iconId:"Ellipsis",color:"blue"})}),x&&a.jsx(N.FloatingPortal,{children:a.jsx(N.FloatingFocusManager,{disabled:u,context:D,modal:!1,children:a.jsx(Sd,{ref:T.setFloating,style:j,className:l,...xt(),children:a.jsx(N.FloatingList,{elementsRef:W,labelsRef:G,children:e})})})})]})},Cd=m.div`
|
|
1343
1343
|
align-items: center;
|
|
1344
1344
|
display: flex;
|
|
1345
|
-
font-size: ${
|
|
1345
|
+
font-size: ${Wo("font-size")};
|
|
1346
1346
|
cursor: default;
|
|
1347
1347
|
user-select: none;
|
|
1348
|
-
`,
|
|
1348
|
+
`,Sd=m.div`
|
|
1349
1349
|
display: flex;
|
|
1350
1350
|
flex-direction: column;
|
|
1351
|
-
border: ${
|
|
1351
|
+
border: ${Wo("border-size")} solid ${Wo("border-color")};
|
|
1352
1352
|
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
|
|
1353
1353
|
outline: 0;
|
|
1354
1354
|
z-index: 2;
|
|
1355
|
-
|
|
1355
|
+
`,$d=m.div`
|
|
1356
1356
|
display: flex;
|
|
1357
1357
|
align-items: center;
|
|
1358
1358
|
justify-content: flex-start;
|
|
1359
1359
|
gap: 2px;
|
|
1360
|
-
`,[
|
|
1361
|
-
color: ${
|
|
1360
|
+
`,[Te,Bn]=O(["option","text"]),ut=d.memo(({label:e,optionKey:t,disabled:o,className:n,prefixIconId:r,prefixIconColor:s,suffixIconId:l,textColor:i,suffixIconColor:u,disableSelectionStyle:f,disableEnterSelection:p})=>{const{activeIndex:g,selectedIndex:h,getItemProps:x,handleSelect:b}=an(),{ref:y,index:v}=N.useListItem({label:t}),w=g!==null&&g!==-1&&g===v,k=!f&&h!==null&&h!==-1&&h===v,S=d.useCallback($=>{o||($.stopPropagation(),b(v))},[o,b,v]);return a.jsx(E.ClassNames,{children:({cx:$})=>a.jsxs(jd,{className:$({isActive:w,isSelected:k,disabled:o},n),ref:y,"data-key":t,role:"option","data-color":i,"aria-selected":w&&k,tabIndex:w?0:-1,...x({onClick:C=>S(C),onKeyDown:!p&&!o?C=>{C.code==="Enter"&&b(v)}:void 0}),children:[!!r&&a.jsx(F,{iconId:r,size:"sm",color:o?"grey":s??"black"}),e,!!l&&a.jsx(Td,{iconId:l,size:"sm",color:o?"grey":u??"black"})]})})}),jd=m.div`
|
|
1361
|
+
color: ${Te("color")};
|
|
1362
1362
|
cursor: pointer;
|
|
1363
1363
|
font-size: inherit;
|
|
1364
|
-
background-color: ${
|
|
1365
|
-
font-family: ${
|
|
1366
|
-
font-size: ${
|
|
1367
|
-
padding: ${
|
|
1364
|
+
background-color: ${Te("bg-color")};
|
|
1365
|
+
font-family: ${Te("font-family")};
|
|
1366
|
+
font-size: ${Te("font-size")};
|
|
1367
|
+
padding: ${Te("padding")};
|
|
1368
1368
|
min-width: 96px;
|
|
1369
1369
|
line-height: 18px;
|
|
1370
1370
|
display: flex;
|
|
@@ -1373,43 +1373,47 @@
|
|
|
1373
1373
|
text-align: left;
|
|
1374
1374
|
overflow: hidden;
|
|
1375
1375
|
outline: 0;
|
|
1376
|
-
column-gap: ${
|
|
1377
|
-
${
|
|
1376
|
+
column-gap: ${Te("column-gap")};
|
|
1377
|
+
${pr.map(e=>`&[data-color="${e}"] {
|
|
1378
|
+
color: ${Bn(`color-${e}`)};
|
|
1379
|
+
}`).join(`
|
|
1380
|
+
`)}
|
|
1381
|
+
${`${Bn("body-size",!0)}: ${Te("font-size")}`};
|
|
1378
1382
|
&.isActive {
|
|
1379
|
-
background: ${
|
|
1383
|
+
background: ${Te("bg-color-active")};
|
|
1380
1384
|
}
|
|
1381
1385
|
&.isSelected {
|
|
1382
|
-
font-weight: ${
|
|
1386
|
+
font-weight: ${Te("font-weight-selected")};
|
|
1383
1387
|
}
|
|
1384
1388
|
&.disabled {
|
|
1385
|
-
color: ${
|
|
1389
|
+
color: ${Te("color-disabled")};
|
|
1386
1390
|
cursor: not-allowed;
|
|
1387
1391
|
}
|
|
1388
|
-
`,
|
|
1392
|
+
`,Td=m(F)`
|
|
1389
1393
|
transform: translate(-2px, -1px);
|
|
1390
|
-
`,
|
|
1394
|
+
`,Dd=({actionItems:e,disabled:t,onSelect:o})=>{const n=d.useMemo(()=>e.map(r=>a.jsx(ut,{disabled:t||r.disabled,label:a.jsx(Ed,{label:r.label,iconId:r.iconId,iconSize:r.iconSize,disabled:r.disabled,level:r.level},r.key),optionKey:r.key},r.key)),[e,t]);return a.jsx(bt,{disabled:t,onSelect:o,children:n})},Gt=e=>{switch(e){case"normal":return;case"info":return"blue";case"error":return"red";case"warn":return"yellow";default:return}},Ed=d.memo(({label:e,iconId:t,level:o,disabled:n,iconSize:r})=>a.jsxs(Md,{children:[a.jsx(F,{iconId:t,size:r||"sm",color:n?"grey":Gt(o)?Gt(o):"black"}),a.jsx(M,{variant:"body",color:n?"grey":Gt(o)?Gt(o):"dark",children:e})]})),Md=m.div`
|
|
1391
1395
|
display: flex;
|
|
1392
1396
|
gap: 8px;
|
|
1393
1397
|
align-items: center;
|
|
1394
|
-
`,[
|
|
1395
|
-
padding: ${
|
|
1398
|
+
`,[zd]=O(["shell-icon-button"]),Od=m(ee)`
|
|
1399
|
+
padding: ${zd("padding")};
|
|
1396
1400
|
|
|
1397
1401
|
--studio-c-icon-button-badge-top: 6px;
|
|
1398
1402
|
--studio-c-icon-button-badge-right: 6px;
|
|
1399
|
-
`,
|
|
1403
|
+
`,Id=e=>a.jsx(Od,{badgeBorderColor:"black",...e}),Zr=d.createContext(null),oo=()=>{const e=d.useContext(Zr);if(e===null)throw new Error("Unable to use TabContext outside of a TabProvider");return e},Rd=d.memo(({children:e,activeTab:t,onTabChange:o,defaultActiveTab:n})=>{const[r,s]=d.useState(n),l=o??s,i=t??r,u=d.useMemo(()=>({onTabChange:l,activeTab:i}),[i,l]);return a.jsx(Zr.Provider,{value:u,children:e})}),[Co]=O(["tab"]),Nd=d.memo(({value:e,text:t,disabled:o,iconColor:n,iconId:r})=>{const{activeTab:s,onTabChange:l}=oo(),i=e===s,u=d.useCallback(()=>{i||l(e)},[l,e,i]);return a.jsxs(Fd,{"data-value":e,onClick:u,disabled:o,children:[!!r&&a.jsx(F,{iconId:r,color:n??"black",size:"sm"}),a.jsx(M,{color:o?"grey":"dark",variant:"body",bold:i,children:t})]})}),Fd=m.button`
|
|
1400
1404
|
cursor: pointer;
|
|
1401
1405
|
outline: none;
|
|
1402
1406
|
border: none;
|
|
1403
1407
|
display: flex;
|
|
1404
1408
|
align-items: center;
|
|
1405
1409
|
justify-content: flex-start;
|
|
1406
|
-
column-gap: ${
|
|
1410
|
+
column-gap: ${Co("column-gap")};
|
|
1407
1411
|
background-color: transparent;
|
|
1408
|
-
padding: ${
|
|
1412
|
+
padding: ${Co("trigger-padding-y")} ${Co("trigger-padding-x")};
|
|
1409
1413
|
&:disabled {
|
|
1410
1414
|
cursor: not-allowed;
|
|
1411
1415
|
}
|
|
1412
|
-
`,[
|
|
1416
|
+
`,[Mt]=O(["tab"]),Ad=({children:e,className:t})=>{const{activeTab:o}=oo(),n=d.useRef(null),r=d.useRef(null);return d.useEffect(()=>{if(r.current&&n.current){const s=r.current.querySelector(`[data-value=${o}]`);if(s){const l=s.getBoundingClientRect(),i=s.offsetLeft;n.current.style.width=`${l.width}px`,n.current.style.left=`${i}px`}}},[o,e]),a.jsxs(_d,{ref:r,className:t,children:[a.jsx(Wd,{ref:n}),e]})},_d=m.div`
|
|
1413
1417
|
width: 100%;
|
|
1414
1418
|
height: fit-content;
|
|
1415
1419
|
display: flex;
|
|
@@ -1417,127 +1421,207 @@
|
|
|
1417
1421
|
justify-content: space-between;
|
|
1418
1422
|
align-items: flex-start;
|
|
1419
1423
|
position: relative;
|
|
1420
|
-
border-bottom: ${
|
|
1421
|
-
${
|
|
1424
|
+
border-bottom: ${Mt("trigger-list-underline-height")} solid
|
|
1425
|
+
${Mt("trigger-list-underline-color")};
|
|
1422
1426
|
background-color: transparent;
|
|
1423
|
-
`,
|
|
1427
|
+
`,Wd=m.div`
|
|
1424
1428
|
position: absolute;
|
|
1425
1429
|
bottom: 0px;
|
|
1426
|
-
transform: translateY(${
|
|
1427
|
-
height: ${
|
|
1428
|
-
background-color: ${
|
|
1430
|
+
transform: translateY(${Mt("trigger-list-underline-height")});
|
|
1431
|
+
height: ${Mt("indicator-height")};
|
|
1432
|
+
background-color: ${Mt("indicator-color")};
|
|
1429
1433
|
transition: all 0.25s ease-in-out;
|
|
1430
|
-
`,
|
|
1434
|
+
`,Ld=({children:e,className:t,style:o,value:n})=>{const{activeTab:r}=oo(),s=n===r;return a.jsx(Bd,{className:t,"data-active":s?"true":"false",style:o,children:e})},Bd=m.div`
|
|
1431
1435
|
display: none;
|
|
1432
1436
|
&[data-active="true"] {
|
|
1433
1437
|
display: block;
|
|
1434
1438
|
}
|
|
1435
|
-
`,[
|
|
1436
|
-
background-color: ${e=>
|
|
1437
|
-
border-radius: ${
|
|
1438
|
-
border: 1px solid ${
|
|
1439
|
+
`,[pe]=O(["tag"]),Pd={purple:pe("color-light"),orange:pe("color-light"),light:pe("color-dark"),blue:pe("color-dark"),green:pe("color-light"),red:pe("color-light"),disabled:pe("color-disabled")},Hd={purple:"light",orange:"light",light:"dark",blue:"dark",green:"light",red:"light",disabled:"disabled"},Vd=m.div`
|
|
1440
|
+
background-color: ${e=>pe(`bg-color-${e.color}`)};
|
|
1441
|
+
border-radius: ${pe("border-radius")};
|
|
1442
|
+
border: 1px solid ${pe("border-color")};
|
|
1439
1443
|
display: flex;
|
|
1440
|
-
color: ${e=>
|
|
1441
|
-
height: ${
|
|
1444
|
+
color: ${e=>Pd[e.color]};
|
|
1445
|
+
height: ${pe("height")};
|
|
1442
1446
|
max-width: 160px;
|
|
1443
1447
|
align-items: center;
|
|
1444
|
-
padding: ${
|
|
1448
|
+
padding: ${pe("padding")};
|
|
1445
1449
|
align-items: center;
|
|
1446
1450
|
justify-content: center;
|
|
1447
1451
|
gap: 4px;
|
|
1448
|
-
`,
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1452
|
+
`,Xr=e=>{const t=typeof e.children=="string"?a.jsx(M,{color:Hd[e.color],variant:"body",children:e.children}):e.children;return a.jsx(Vd,{...e,children:t})},Gd=({tagName:e,onRemove:t,color:o="light"})=>a.jsxs(Xr,{color:o,children:[a.jsx(M,{variant:"body",children:e}),a.jsx(F,{size:"xxsm",iconId:"Close",onClick:()=>t(e)})]},`key-tag-${e}`),Ud=({search:e,style:t,children:o,highlightColor:n,highlightTextColor:r})=>{const s=n||"yellow",l=d.useMemo(()=>Array.isArray(e)?e:[e].filter(Boolean),[e]);if(!l||l.length===0)return a.jsx(a.Fragment,{children:o});const i=f=>{const p=new RegExp(`(${l.join("|")})`,"gi");return f.split(p).map((h,x)=>l.some(b=>b.toLowerCase()===h.toLowerCase())?a.jsx("span",{style:t||{backgroundColor:s,color:r??void 0},children:h},x):h)},u=f=>typeof f=="string"?i(f):d.isValidElement(f)?d.cloneElement(f,{children:d.Children.map(f.props.children,u)}):f;return a.jsx(a.Fragment,{children:d.Children.map(o,u)})},[ue]=O(["badge"]),Yd=({color:e,children:t,position:o,radius:n,hide:r})=>a.jsxs(Kd,{children:[!r&&a.jsx(qd,{"data-color":e,"data-position":o??"top-right","data-radius":n??4}),t]}),Kd=m.div`
|
|
1453
|
+
width: fit-content;
|
|
1454
|
+
height: fit-content;
|
|
1455
|
+
position: relative;
|
|
1456
|
+
`,qd=m.div`
|
|
1457
|
+
position: absolute;
|
|
1458
|
+
z-index: 2;
|
|
1459
|
+
border-radius: 50%;
|
|
1460
|
+
pointer-events: none;
|
|
1461
|
+
border-width: 1px;
|
|
1462
|
+
border-style: solid;
|
|
1463
|
+
box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075),
|
|
1464
|
+
0 2px 2px hsl(0deg 0% 0% / 0.075), 0 4px 4px hsl(0deg 0% 0% / 0.075),
|
|
1465
|
+
0 8px 8px hsl(0deg 0% 0% / 0.075), 0 16px 16px hsl(0deg 0% 0% / 0.075);
|
|
1466
|
+
// Color
|
|
1467
|
+
&[data-color="blue"] {
|
|
1468
|
+
background-color: ${ue("color-blue")};
|
|
1469
|
+
border-color: ${ue("color-blue-border")};
|
|
1470
|
+
}
|
|
1471
|
+
&[data-color="red"] {
|
|
1472
|
+
background-color: ${ue("color-red")};
|
|
1473
|
+
border-color: ${ue("color-red-border")};
|
|
1474
|
+
}
|
|
1475
|
+
&[data-color="white"] {
|
|
1476
|
+
background-color: ${ue("color-white")};
|
|
1477
|
+
border-color: ${ue("color-white-border")};
|
|
1478
|
+
}
|
|
1479
|
+
&[data-color="black"] {
|
|
1480
|
+
background-color: ${ue("color-black")};
|
|
1481
|
+
border-color: ${ue("color-black-border")};
|
|
1482
|
+
}
|
|
1483
|
+
&[data-color="orange"] {
|
|
1484
|
+
background-color: ${ue("color-orange")};
|
|
1485
|
+
border-color: ${ue("color-orange-border")};
|
|
1486
|
+
}
|
|
1487
|
+
&[data-color="green"] {
|
|
1488
|
+
background-color: ${ue("color-green")};
|
|
1489
|
+
border-color: ${ue("color-green-border")};
|
|
1490
|
+
}
|
|
1491
|
+
// Position
|
|
1492
|
+
&[data-position="top-right"] {
|
|
1493
|
+
transform: translate(var(--xform-factor), calc(var(--xform-factor) * -1));
|
|
1494
|
+
top: 0;
|
|
1495
|
+
right: 0;
|
|
1496
|
+
}
|
|
1497
|
+
&[data-position="top-left"] {
|
|
1498
|
+
transform: translate(
|
|
1499
|
+
calc(var(--xform-factor) * -1),
|
|
1500
|
+
calc(var(--xform-factor) * -1)
|
|
1501
|
+
);
|
|
1502
|
+
|
|
1503
|
+
top: 0;
|
|
1504
|
+
left: 0;
|
|
1505
|
+
}
|
|
1506
|
+
&[data-position="bottom-right"] {
|
|
1507
|
+
bottom: 0;
|
|
1508
|
+
right: 0;
|
|
1509
|
+
transform: translate(var(--xform-factor), var(--xform-factor));
|
|
1510
|
+
}
|
|
1511
|
+
&[data-position="bottom-left"] {
|
|
1512
|
+
bottom: 0;
|
|
1513
|
+
left: 0;
|
|
1514
|
+
transform: translate(calc(var(--xform-factor) * -1), var(--xform-factor));
|
|
1515
|
+
}
|
|
1516
|
+
// Size
|
|
1517
|
+
&[data-radius="4"] {
|
|
1518
|
+
width: ${c("spacing-8")};
|
|
1519
|
+
height: ${c("spacing-8")};
|
|
1520
|
+
--xform-factor: ${c("spacing-4")};
|
|
1521
|
+
}
|
|
1522
|
+
&[data-radius="6"] {
|
|
1523
|
+
width: ${c("spacing-12")};
|
|
1524
|
+
height: ${c("spacing-12")};
|
|
1525
|
+
--xform-factor: ${c("spacing-6")};
|
|
1526
|
+
}
|
|
1527
|
+
&[data-radius="8"] {
|
|
1528
|
+
width: ${c("spacing-16")};
|
|
1529
|
+
height: ${c("spacing-16")};
|
|
1530
|
+
--xform-factor: ${c("spacing-8")};
|
|
1531
|
+
}
|
|
1532
|
+
`,[ae]=O(["textarea"]),ln=d.forwardRef(({autoCapitalize:e="off",autoComplete:t="off",autoCorrect:o="off",className:n,...r},s)=>a.jsx(Zd,{autoCapitalize:e,autoComplete:t,autoCorrect:o,className:n,ref:s,...r})),Zd=m.textarea`
|
|
1533
|
+
display: flex;
|
|
1534
|
+
min-height: ${ae("min-height")};
|
|
1535
|
+
padding: ${ae("padding")};
|
|
1536
|
+
font-size: ${ae("font-size")};
|
|
1537
|
+
font-family: ${ae("font-family")};
|
|
1538
|
+
font-weight: ${ae("font-weight")};
|
|
1539
|
+
color: ${ae("color")};
|
|
1456
1540
|
width: 100%;
|
|
1457
1541
|
outline: none;
|
|
1458
1542
|
box-shadow: none;
|
|
1459
|
-
border: ${
|
|
1460
|
-
border-radius: ${
|
|
1543
|
+
border: ${ae("border-width")} solid ${ae("border-color")};
|
|
1544
|
+
border-radius: ${ae("border-radius")};
|
|
1461
1545
|
:active:not(:disabled):not(:read-only),
|
|
1462
1546
|
:focus:not(:disabled):not(:read-only) {
|
|
1463
|
-
border-color: ${
|
|
1547
|
+
border-color: ${ae("border-color-active")};
|
|
1464
1548
|
}
|
|
1465
1549
|
&[aria-invalid="true"]:not(:disabled):not(:read-only) {
|
|
1466
|
-
border-color: ${
|
|
1550
|
+
border-color: ${ae("border-color-invalid")};
|
|
1467
1551
|
}
|
|
1468
1552
|
:disabled,
|
|
1469
1553
|
:read-only {
|
|
1470
1554
|
cursor: not-allowed;
|
|
1471
|
-
color: ${
|
|
1472
|
-
background-color: ${
|
|
1555
|
+
color: ${ae("color-disabled")};
|
|
1556
|
+
background-color: ${ae("background-color-disabled")};
|
|
1473
1557
|
}
|
|
1474
|
-
`;
|
|
1558
|
+
`;ln.displayName="Textarea";const[Xd,ke,fe]=O(["toggle-container","toggle-track","toggle-thumb"]),Pn=m(F)`
|
|
1475
1559
|
opacity: 0;
|
|
1476
1560
|
position: absolute;
|
|
1477
1561
|
transition-duration: 150ms;
|
|
1478
1562
|
transition-property: opacity;
|
|
1479
1563
|
transition-timing-function: ease-in-out;
|
|
1480
|
-
`,
|
|
1564
|
+
`,Jd=m.div`
|
|
1481
1565
|
align-items: center;
|
|
1482
1566
|
display: flex;
|
|
1483
|
-
gap: ${
|
|
1567
|
+
gap: ${Xd("gap")};
|
|
1484
1568
|
justify-content: center;
|
|
1485
1569
|
position: relative;
|
|
1486
|
-
`,
|
|
1570
|
+
`,Jr=m.div`
|
|
1487
1571
|
align-items: center;
|
|
1488
|
-
border-radius: ${
|
|
1572
|
+
border-radius: ${ke("border-radius")};
|
|
1489
1573
|
cursor: pointer;
|
|
1490
1574
|
display: flex;
|
|
1491
|
-
height: calc(${
|
|
1492
|
-
padding: ${
|
|
1575
|
+
height: calc(${ke("padding-vertical")} * 2 + ${fe("height")} + 2px);
|
|
1576
|
+
padding: ${ke("padding-vertical")} ${ke("padding-horizontal")};
|
|
1493
1577
|
position: relative;
|
|
1494
|
-
transition-duration: ${
|
|
1578
|
+
transition-duration: ${ke("transition-duration")};
|
|
1495
1579
|
transition-property: background-color;
|
|
1496
1580
|
transition-timing-function: ease-in-out;
|
|
1497
1581
|
|
|
1498
1582
|
// background-color...
|
|
1499
|
-
background-color: ${
|
|
1583
|
+
background-color: ${ke("background-color-unchecked-enabled")};
|
|
1500
1584
|
&.isDisabled,
|
|
1501
1585
|
&.isReadOnly {
|
|
1502
|
-
background-color: ${
|
|
1586
|
+
background-color: ${ke("background-color-unchecked-disabled")};
|
|
1503
1587
|
cursor: initial;
|
|
1504
1588
|
}
|
|
1505
1589
|
&.isChecked {
|
|
1506
|
-
background-color: ${
|
|
1590
|
+
background-color: ${ke("background-color-checked-enabled")};
|
|
1507
1591
|
&.isDisabled,
|
|
1508
1592
|
&.isReadOnly {
|
|
1509
|
-
background-color: ${
|
|
1593
|
+
background-color: ${ke("background-color-checked-disabled")};
|
|
1510
1594
|
cursor: initial;
|
|
1511
1595
|
}
|
|
1512
1596
|
}
|
|
1513
1597
|
|
|
1514
1598
|
// width...
|
|
1515
|
-
width: calc(${
|
|
1599
|
+
width: calc(${ke("padding-horizontal")} * 2 + ${fe("width")} * 2);
|
|
1516
1600
|
&.showIcons {
|
|
1517
1601
|
width: ${`calc(
|
|
1518
|
-
${
|
|
1602
|
+
${ke("padding-horizontal")} * 2 + ${fe("width")} * 2 + 4px
|
|
1519
1603
|
)`};
|
|
1520
1604
|
}
|
|
1521
|
-
`,
|
|
1522
|
-
border-radius: ${
|
|
1523
|
-
box-shadow: ${
|
|
1524
|
-
height: ${
|
|
1525
|
-
transition-duration: ${
|
|
1605
|
+
`,Qr=m.div`
|
|
1606
|
+
border-radius: ${fe("border-radius")};
|
|
1607
|
+
box-shadow: ${fe("box-shadow")};
|
|
1608
|
+
height: ${fe("height")};
|
|
1609
|
+
transition-duration: ${fe("transition-duration")};
|
|
1526
1610
|
transition-property: transform;
|
|
1527
1611
|
transition-timing-function: ease-in-out;
|
|
1528
|
-
width: ${
|
|
1612
|
+
width: ${fe("width")};
|
|
1529
1613
|
|
|
1530
1614
|
// background-color...
|
|
1531
|
-
background-color: ${
|
|
1615
|
+
background-color: ${fe("background-color-unchecked-enabled")};
|
|
1532
1616
|
&.isDisabled,
|
|
1533
1617
|
&.isReadOnly {
|
|
1534
|
-
background-color: ${
|
|
1618
|
+
background-color: ${fe("background-color-unchecked-disabled")};
|
|
1535
1619
|
}
|
|
1536
1620
|
&.isChecked {
|
|
1537
|
-
background-color: ${
|
|
1621
|
+
background-color: ${fe("background-color-checked-enabled")};
|
|
1538
1622
|
&.isDisabled,
|
|
1539
1623
|
&.isReadOnly {
|
|
1540
|
-
background-color: ${
|
|
1624
|
+
background-color: ${fe("background-color-checked-disabled")};
|
|
1541
1625
|
}
|
|
1542
1626
|
}
|
|
1543
1627
|
|
|
@@ -1549,12 +1633,12 @@
|
|
|
1549
1633
|
transform: translate(calc(100% + 4px), 0px);
|
|
1550
1634
|
}
|
|
1551
1635
|
}
|
|
1552
|
-
`,
|
|
1636
|
+
`,no=({checked:e,disabled:t,label:o,labelVariant:n="small",onChange:r,showIcons:s,readOnly:l,id:i,...u})=>{const[f,p]=d.useState(e??!1);d.useEffect(()=>{p(e??!1)},[e]);const g=d.useCallback(()=>{t||(p(!f),r==null||r(!f))},[f,t,r]);return a.jsx(E.ClassNames,{children:({cx:h})=>a.jsxs(Jd,{children:[o&&a.jsx(M,{color:t?"disabled":"grey",variant:n,children:o}),a.jsxs(Jr,{id:i,className:h({isReadOnly:l},f&&"isChecked",t&&"isDisabled",s&&"showIcons"),...u,onClick:g,children:[s&&a.jsxs(a.Fragment,{children:[a.jsx(Pn,{color:"white",iconId:"Close",size:"xxsm",style:{opacity:f?0:1,right:"3px"}}),a.jsx(Pn,{color:"white",iconId:"Check",size:"xxsm",style:{opacity:f?1:0}})]}),a.jsx(Qr,{className:h(f&&"isChecked",s&&"showIcons",{isReadOnly:l}),...u})]})]})})},Qd=m.div`
|
|
1553
1637
|
display: inline-block;
|
|
1554
1638
|
line-height: 0;
|
|
1555
|
-
`,
|
|
1639
|
+
`,eu=m.div`
|
|
1556
1640
|
z-index: 2;
|
|
1557
|
-
`,
|
|
1641
|
+
`,es=({arrow:e,children:t,content:o,open:n,openDelay:r=250,className:s,placement:l,offset:i})=>{const u=d.useRef(null),[f,p]=d.useState(n);d.useEffect(()=>{n!==void 0&&p(n)},[n]);const{refs:g,floatingStyles:h,context:x}=N.useFloating({open:f,onOpenChange:n===void 0?p:void 0,placement:l??"top",whileElementsMounted:N.autoUpdate,middleware:[N.offset(i??12),N.flip({fallbackAxisSideDirection:"start"}),N.shift(),N.arrow({element:u})]}),b=N.useHover(x,{move:!1,restMs:r}),y=N.useFocus(x),v=N.useDismiss(x),w=N.useRole(x,{role:"tooltip"}),{getReferenceProps:k,getFloatingProps:S}=N.useInteractions([b,y,v,w]);return a.jsxs(a.Fragment,{children:[a.jsx(Qd,{className:s,ref:g.setReference,...k(),children:t}),a.jsx(N.FloatingPortal,{children:f&&a.jsxs(eu,{ref:g.setFloating,style:h,...S(),children:[a.jsx(N.FloatingArrow,{...e,ref:u,context:x}),o]})})]})},ts=m.div`
|
|
1558
1642
|
background-color: #ffffff;
|
|
1559
1643
|
border-radius: 0px;
|
|
1560
1644
|
box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.12);
|
|
@@ -1562,120 +1646,120 @@
|
|
|
1562
1646
|
display: flex;
|
|
1563
1647
|
align-items: center;
|
|
1564
1648
|
padding: ${e=>e.contain&&"7px 10px"};
|
|
1565
|
-
`,
|
|
1649
|
+
`,os={fill:"#ffffff",height:12,tipRadius:0,width:14},ro=({arrow:e=os,children:t,contain:o=!0,content:n,...r})=>a.jsx(es,{arrow:e,content:a.jsx(ts,{contain:o,children:a.jsx(M,{color:"dark",variant:"body",children:n})}),...r,children:t}),tu=m.div`
|
|
1566
1650
|
display: flex;
|
|
1567
1651
|
flex-direction: column;
|
|
1568
1652
|
min-width: 160px;
|
|
1569
|
-
`,
|
|
1653
|
+
`,ou=m.div`
|
|
1570
1654
|
display: flex;
|
|
1571
1655
|
gap: 8px;
|
|
1572
1656
|
height: 28px;
|
|
1573
1657
|
padding: 7px 10px;
|
|
1574
|
-
`,
|
|
1658
|
+
`,nu=m.div`
|
|
1575
1659
|
border-top: 1px solid #dfdfdf;
|
|
1576
|
-
`,
|
|
1660
|
+
`,ru=m.div`
|
|
1577
1661
|
padding: 7px 12px;
|
|
1578
|
-
`,
|
|
1662
|
+
`,su=e=>{switch(e){case"error":return"red";case"info":return"blue";case"success":return"green";case"warning":return"orange";default:return"blue"}},iu=e=>{switch(e){case"error":case"info":return"ExclamationCircle";case"success":return"CheckCircle";case"warning":return"Warning";default:return"ExclamationCircle"}},au=({message:e,title:t="Information",type:o="info"})=>a.jsxs(tu,{children:[a.jsxs(ou,{children:[a.jsx(F,{color:su(o),iconId:iu(o)}),a.jsx(M,{bold:!0,variant:"body",children:t})]}),a.jsx(nu,{}),a.jsx(ru,{children:a.jsx(M,{variant:"body",children:e})})]}),cn=({children:e,open:t,openDelay:o,className:n,...r})=>a.jsx(ro,{contain:!1,content:a.jsx(au,{...r}),open:t,openDelay:o,className:n,children:e}),ns=m.div`
|
|
1579
1663
|
background-color: #000000;
|
|
1580
1664
|
border-radius: 4px;
|
|
1581
1665
|
color: #ffffff;
|
|
1582
1666
|
display: flex;
|
|
1583
1667
|
gap: 8px;
|
|
1584
1668
|
padding: ${e=>e.contain&&"4px 8px"};
|
|
1585
|
-
`,
|
|
1669
|
+
`,rs={fill:"#000000",height:10,tipRadius:2,width:11},so=({arrow:e=rs,children:t,contain:o=!0,content:n,...r})=>a.jsx(es,{arrow:e,content:a.jsx(ns,{contain:o,children:a.jsx(M,{color:"light",variant:"small",children:n})}),...r,children:t}),ss=({title:e,...t})=>a.jsx(cn,{...t,title:e??"Error",type:"error"}),lu=m.div`
|
|
1586
1670
|
display: flex;
|
|
1587
1671
|
gap: 4px;
|
|
1588
|
-
`,
|
|
1672
|
+
`,cu=({label:e,value:t})=>a.jsxs(lu,{children:[a.jsx(F,{iconId:"CheckSquare",size:"sm",color:"purple"}),a.jsxs(M,{bold:!0,variant:"body",children:[e,":"]}),a.jsx(M,{variant:"body",children:t})]}),is=({children:e,open:t,openDelay:o,...n})=>a.jsx(ro,{content:a.jsx(cu,{...n}),open:t,openDelay:o,children:e}),as=({variant:e,...t})=>{let o;switch(e){case"alert":o=cn;break;case"dark":o=so;break;case"error":o=ss;break;case"light":o=ro;break;case"selector":o=is;break}return a.jsx(o,{...t})},ls=d.createContext(null),du=({children:e,value:t})=>a.jsx(ls.Provider,{value:t,children:e}),cs=()=>{const e=d.useContext(ls);if(!e)throw new Error("Unable to use MultiSelectContext outside of its provider.");return e},[St]=O(["multi-select"]),ds=m.div`
|
|
1589
1673
|
width: 100%;
|
|
1590
|
-
padding: ${
|
|
1674
|
+
padding: ${St("item-padding-y")} ${St("item-padding-x")};
|
|
1591
1675
|
display: flex;
|
|
1592
1676
|
align-items: center;
|
|
1593
1677
|
justify-content: flex-start;
|
|
1594
|
-
column-gap: ${
|
|
1595
|
-
background-color: ${
|
|
1678
|
+
column-gap: ${St("item-gap")};
|
|
1679
|
+
background-color: ${St("background")};
|
|
1596
1680
|
cursor: pointer;
|
|
1597
1681
|
transition: background 0.125s ease-in-out;
|
|
1598
1682
|
&:hover {
|
|
1599
|
-
background-color: ${
|
|
1683
|
+
background-color: ${St("item-hover-bg")};
|
|
1600
1684
|
}
|
|
1601
|
-
`,[
|
|
1602
|
-
border-bottom: ${
|
|
1685
|
+
`,[Ut]=O(["multi-select"]),uu=d.memo(({SelectAllItemTemplate:e,options:t})=>{const{selected:o,onSetSelected:n,setOpen:r}=cs(),s=d.useRef(null),{isAllSelected:l,isPartiallySelected:i}=d.useMemo(()=>{const f=t.every(p=>o.some(g=>g.value===p.value));return{isAllSelected:f,isPartiallySelected:!f&&o.length!==0}},[o,t]),u=d.useCallback(()=>{n(l?[]:t),r(!1)},[l,r,n,t]);return d.useEffect(()=>{s.current&&(s.current.indeterminate=i)},[i]),e?a.jsx(e,{onToggleSelectAll:u,isAllSelected:l,isPartiallySelected:i}):a.jsxs(fu,{onClick:u,children:[a.jsx(ht,{ref:s,onChange:Re,checked:l}),a.jsx(M,{variant:"body",color:"dark",children:l?"Deselect All":"Select All"})]})}),fu=m(ds)`
|
|
1686
|
+
border-bottom: ${Ut("border")} solid ${Ut("select-all-border-color")};
|
|
1603
1687
|
position: sticky;
|
|
1604
1688
|
top: 0;
|
|
1605
1689
|
z-index: 2;
|
|
1606
|
-
padding-top: calc(${
|
|
1607
|
-
background-color: ${
|
|
1608
|
-
`,
|
|
1609
|
-
padding: ${
|
|
1690
|
+
padding-top: calc(${Ut("item-padding-y")} * 2);
|
|
1691
|
+
background-color: ${Ut("background")};
|
|
1692
|
+
`,pu=d.memo(({value:e,label:t,isSelected:o,ListItemTemplate:n,onToggleSelect:r})=>n?a.jsx(n,{value:e,label:t,isSelected:o}):a.jsxs(ds,{onClick:()=>r({value:e,label:t}),children:[a.jsx(ht,{onChange:Re,checked:o}),a.jsx(M,{variant:"body",color:"dark",children:t})]})),[at]=O(["multi-select"]),gu=d.memo(({value:e,label:t,onRemove:o,SelectedItemTemplate:n})=>n?a.jsx(n,{value:e,label:t,onRemove:o}):a.jsxs(hu,{children:[a.jsx(M,{variant:"body",color:"dark",children:t}),a.jsx(ee,{size:"xxsm",color:"black",iconId:"Close",onClick:()=>o({value:e,label:t})})]})),hu=m.div`
|
|
1693
|
+
padding: ${at("selected-item-padding-y")} ${at("selected-item-padding-x")};
|
|
1610
1694
|
display: flex;
|
|
1611
1695
|
align-items: center;
|
|
1612
1696
|
justify-content: flex-start;
|
|
1613
|
-
column-gap: ${
|
|
1614
|
-
background-color: ${
|
|
1697
|
+
column-gap: ${at("selected-item-gap")};
|
|
1698
|
+
background-color: ${at("selected-item-background")};
|
|
1615
1699
|
transition: background 0.125s ease-in-out;
|
|
1616
|
-
border-radius: ${
|
|
1700
|
+
border-radius: ${at("selected-item-radius")};
|
|
1617
1701
|
:hover {
|
|
1618
|
-
background-color: ${
|
|
1702
|
+
background-color: ${at("selected-item-background-hover")};
|
|
1619
1703
|
}
|
|
1620
|
-
`,[
|
|
1704
|
+
`,[oe]=O(["multi-select"]),us=d.memo(({options:e,selected:t,className:o,closeOnSelect:n,onChange:r,disabled:s,selectAllHidden:l,SelectAllItemTemplate:i,ListItemTemplate:u,SelectedItemTemplate:f})=>{const[p,g]=d.useState(!1),h=d.useCallback(j=>{console.log({_open:j}),g(j)},[]),{refs:x,floatingStyles:b,context:y}=N.useFloating({placement:"bottom",open:p,onOpenChange:h,whileElementsMounted:N.autoUpdate,middleware:qr}),v=N.useClick(y,{enabled:!s,toggle:!!n}),w=N.useDismiss(y),k=N.useRole(y,{role:"listbox"}),{getReferenceProps:S,getFloatingProps:$}=N.useInteractions([v,w,k]),C=d.useCallback(j=>{t.some(D=>D.value===j.value)?r(t.filter(D=>D.value!==j.value)):r([...t,j])},[r,t]),T=d.useMemo(()=>({open:p,setOpen:g,selected:t,onToggleSelect:C,onSetSelected:r}),[C,p,t,r]);return console.log({open:p}),a.jsx(du,{value:T,children:a.jsxs(mu,{ref:x.setReference,className:o,...S({onClick(j){j.stopPropagation()}}),children:[t.map(j=>E.createElement(gu,{SelectedItemTemplate:f,...j,key:j.value,onRemove:C})),p&&a.jsx(N.FloatingPortal,{children:a.jsx(N.FloatingFocusManager,{context:y,modal:!1,children:a.jsxs(bu,{ref:x.setFloating,style:b,className:gt({selectAllHidden:!!l||!!i}),...$(),children:[!l&&a.jsx(uu,{SelectAllItemTemplate:i,options:e}),e.map(j=>a.jsx(pu,{label:j.label,value:j.value,onToggleSelect:C,isSelected:t.some(D=>j.value===D.value),ListItemTemplate:u},j.value))]})})})]})})}),mu=m.div`
|
|
1621
1705
|
width: 100%;
|
|
1622
1706
|
height: fit-content;
|
|
1623
1707
|
min-height: 28px;
|
|
1624
|
-
padding: ${
|
|
1625
|
-
border-radius: ${
|
|
1708
|
+
padding: ${oe("padding-y")} ${oe("padding-x")};
|
|
1709
|
+
border-radius: ${oe("border-radius")};
|
|
1626
1710
|
display: flex;
|
|
1627
1711
|
align-items: flex-start;
|
|
1628
1712
|
justify-content: flex-start;
|
|
1629
|
-
border-width: ${
|
|
1713
|
+
border-width: ${oe("border")};
|
|
1630
1714
|
border-style: solid;
|
|
1631
|
-
border-color: ${
|
|
1632
|
-
background-color: ${
|
|
1633
|
-
gap: ${
|
|
1715
|
+
border-color: ${oe("border-color")};
|
|
1716
|
+
background-color: ${oe("background")};
|
|
1717
|
+
gap: ${oe("gap")};
|
|
1634
1718
|
&:hover {
|
|
1635
|
-
border-color: ${
|
|
1719
|
+
border-color: ${oe("hover-border-color")};
|
|
1636
1720
|
}
|
|
1637
|
-
`,
|
|
1721
|
+
`,bu=m.div`
|
|
1638
1722
|
display: flex;
|
|
1639
1723
|
flex-direction: column;
|
|
1640
|
-
border: ${
|
|
1724
|
+
border: ${oe("border")} solid ${oe("border-color")};
|
|
1641
1725
|
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
|
|
1642
1726
|
outline: 0;
|
|
1643
|
-
border-radius: ${
|
|
1727
|
+
border-radius: ${oe("border-radius")};
|
|
1644
1728
|
z-index: 2;
|
|
1645
1729
|
max-height: 160px;
|
|
1646
1730
|
overflow: auto;
|
|
1647
|
-
padding-bottom: ${
|
|
1648
|
-
padding-left: ${
|
|
1649
|
-
padding-right: ${
|
|
1650
|
-
background-color: ${
|
|
1731
|
+
padding-bottom: ${oe("list-padding")};
|
|
1732
|
+
padding-left: ${oe("list-padding")};
|
|
1733
|
+
padding-right: ${oe("list-padding")};
|
|
1734
|
+
background-color: ${oe("background")};
|
|
1651
1735
|
&.selectAllHidden {
|
|
1652
|
-
padding-top: ${
|
|
1736
|
+
padding-top: ${oe("list-padding")};
|
|
1653
1737
|
}
|
|
1654
|
-
`,[
|
|
1738
|
+
`,[ve]=O(["collapsible-artifact-version"]),xu=d.memo(({onListItemAction:e,isSelected:t,isInherited:o,id:n,name:r,createdAt:s,description:l})=>{const i=d.useCallback(()=>{e&&!o&&e(n,t?"deselect":"select")},[n,o,t,e]);return a.jsx(E.ClassNames,{children:({cx:u})=>a.jsxs(yu,{onClick:i,className:u({isSelected:t,isInherited:o}),children:[a.jsxs(ku,{children:[a.jsxs(vu,{children:[a.jsx(M,{variant:"small",color:"dark",bold:!0,children:r}),!!s&&a.jsx(M,{color:"grey",variant:"small",children:s})]}),l&&a.jsx(eo,{color:"grey",variant:"small",children:`${l}${l}`})]}),t?a.jsx(wu,{size:"xsm",color:"blue",iconId:t?"Check":"InfoCircle"}):o?a.jsx(F,{iconId:"Inherited",color:"purple"}):null]})})}),yu=m.div`
|
|
1655
1739
|
width: 100%;
|
|
1656
1740
|
position: relative;
|
|
1657
1741
|
display: flex;
|
|
1658
|
-
padding: ${
|
|
1659
|
-
border-radius: ${
|
|
1660
|
-
background-color: ${
|
|
1661
|
-
border: ${
|
|
1742
|
+
padding: ${ve("padding")};
|
|
1743
|
+
border-radius: ${ve("border-radius")};
|
|
1744
|
+
background-color: ${ve("background-color")};
|
|
1745
|
+
border: ${ve("border-width")} solid ${ve("border-color")};
|
|
1662
1746
|
cursor: pointer;
|
|
1663
1747
|
transition: border-color 0.125s ease-in-out, background 0.125s ease-in-out;
|
|
1664
1748
|
&.isInherited {
|
|
1665
|
-
background-color: ${
|
|
1666
|
-
border-color: ${
|
|
1749
|
+
background-color: ${ve("background-color-inherited")};
|
|
1750
|
+
border-color: ${ve("border-color-inherited")};
|
|
1667
1751
|
}
|
|
1668
1752
|
&.isSelected {
|
|
1669
|
-
background-color: ${
|
|
1670
|
-
border-color: ${
|
|
1753
|
+
background-color: ${ve("background-color-selected")};
|
|
1754
|
+
border-color: ${ve("border-color-selected")};
|
|
1671
1755
|
}
|
|
1672
1756
|
:hover:not(.isSelected) {
|
|
1673
|
-
background-color: ${
|
|
1757
|
+
background-color: ${ve("background-color-hover")};
|
|
1674
1758
|
}
|
|
1675
1759
|
:hover:not(.isSelected):not(.isInherited) {
|
|
1676
|
-
border-color: ${
|
|
1760
|
+
border-color: ${ve("border-color-hover")};
|
|
1677
1761
|
}
|
|
1678
|
-
`,
|
|
1762
|
+
`,ku=m.div`
|
|
1679
1763
|
width: 100%;
|
|
1680
1764
|
display: flex;
|
|
1681
1765
|
align-items: flex-start;
|
|
@@ -1683,48 +1767,48 @@
|
|
|
1683
1767
|
flex-direction: column;
|
|
1684
1768
|
row-gap: 1px;
|
|
1685
1769
|
overflow: hidden;
|
|
1686
|
-
`,
|
|
1770
|
+
`,vu=m.div`
|
|
1687
1771
|
width: 100%;
|
|
1688
1772
|
display: flex;
|
|
1689
1773
|
align-items: center;
|
|
1690
1774
|
justify-content: flex-start;
|
|
1691
1775
|
gap: 8px;
|
|
1692
|
-
`,
|
|
1776
|
+
`,wu=m(F)`
|
|
1693
1777
|
position: absolute;
|
|
1694
1778
|
top: 50%;
|
|
1695
1779
|
transform: translateY(-50%);
|
|
1696
1780
|
right: 8px;
|
|
1697
|
-
`,[
|
|
1698
|
-
border-radius: ${
|
|
1699
|
-
border: ${
|
|
1781
|
+
`,[zt,So,Cu]=O(["collapsible-list-container","collapsible-list-header-container","collapsible-list-toggled-container"]),Su=m.div`
|
|
1782
|
+
border-radius: ${zt("border-radius")};
|
|
1783
|
+
border: ${zt("border-width")} solid ${zt("border-color")};
|
|
1700
1784
|
display: flex;
|
|
1701
1785
|
flex-direction: column;
|
|
1702
1786
|
overflow: hidden;
|
|
1703
1787
|
position: relative;
|
|
1704
|
-
|
|
1788
|
+
`,$u=m.div`
|
|
1705
1789
|
align-items: center;
|
|
1706
|
-
background-color: ${
|
|
1790
|
+
background-color: ${So("background-color")};
|
|
1707
1791
|
cursor: pointer;
|
|
1708
1792
|
display: flex;
|
|
1709
|
-
gap: ${
|
|
1710
|
-
padding: ${
|
|
1793
|
+
gap: ${So("gap")};
|
|
1794
|
+
padding: ${So("padding")};
|
|
1711
1795
|
|
|
1712
1796
|
&[data-state="open"] > .caret-button {
|
|
1713
1797
|
transform: rotate(90deg);
|
|
1714
1798
|
}
|
|
1715
1799
|
|
|
1716
1800
|
&[data-state="open"] {
|
|
1717
|
-
border-bottom: ${
|
|
1718
|
-
${
|
|
1801
|
+
border-bottom: ${zt("border-width")} solid
|
|
1802
|
+
${zt("border-color")};
|
|
1719
1803
|
}
|
|
1720
|
-
`,
|
|
1804
|
+
`,ju=m.div`
|
|
1721
1805
|
flex-direction: column;
|
|
1722
|
-
gap: ${
|
|
1723
|
-
`,
|
|
1806
|
+
gap: ${Cu("gap")};
|
|
1807
|
+
`,Tu=({headerContent:e,toggledContent:t,isOpen:o,onOpen:n})=>a.jsx(Jt,{open:o,onOpenChange:n,children:a.jsxs(Su,{children:[a.jsx(Ko,{children:a.jsxs($u,{children:[a.jsx(ee,{className:"caret-button",color:"black",size:"xsm",iconId:"CaretRight"}),e]})}),a.jsx(Qt,{children:a.jsx(ju,{children:t})})]})}),[Hn]=O(["combobox"]),Du=d.memo(({isDeletable:e,inputText:t,setInputText:o,onSelectionChange:n,placeholder:r,setIsOpen:s,tooltipText:l,onKeyDown:i})=>{const u=d.useCallback(p=>{o(p.target.value??"")},[o]),f=d.useCallback(()=>{o(""),n("select",void 0),s(!1)},[n,o,s]);return a.jsxs(Eu,{children:[a.jsx(zu,{value:t,onChange:u,onKeyDown:i,placeholder:r,autoFocus:!0,className:e?"isDeletable":void 0}),e&&a.jsx(Mu,{children:a.jsx(as,{variant:"dark",content:l,children:a.jsx(ee,{onClick:f,iconId:"DeleteOutlined",color:"red",size:"sm"})})})]})}),Eu=m.div`
|
|
1724
1808
|
width: 100%;
|
|
1725
1809
|
position: relative;
|
|
1726
1810
|
display: flex;
|
|
1727
|
-
`,
|
|
1811
|
+
`,Mu=m.div`
|
|
1728
1812
|
position: absolute;
|
|
1729
1813
|
right: 8px;
|
|
1730
1814
|
top: 50%;
|
|
@@ -1732,55 +1816,55 @@
|
|
|
1732
1816
|
align-items: center;
|
|
1733
1817
|
justify-content: center;
|
|
1734
1818
|
transform: translateY(-50%);
|
|
1735
|
-
`,
|
|
1736
|
-
border-radius: ${
|
|
1737
|
-
height: ${
|
|
1819
|
+
`,zu=m(mt)`
|
|
1820
|
+
border-radius: ${Hn("input-border-radius")};
|
|
1821
|
+
height: ${Hn("height")};
|
|
1738
1822
|
width: 100%;
|
|
1739
1823
|
|
|
1740
1824
|
&.isDeletable {
|
|
1741
1825
|
padding-right: ${c("spacing-32")};
|
|
1742
1826
|
}
|
|
1743
|
-
`,
|
|
1744
|
-
border-radius: ${
|
|
1827
|
+
`,Ou=d.memo(({name:e})=>a.jsxs(a.Fragment,{children:[a.jsx(F,{iconId:"Check",color:"black",className:"option-label-icon",size:"xsm"}),a.jsx(eo,{variant:"body",color:"dark",children:e})]})),[Se,Iu]=O(["combobox","option"]),Ru=({optionsToRender:e,inputText:t,handleSelectionChange:o,handleInputChange:n,isDeletable:r,OptionLabelComponent:s,placeholder:l,createNode:i,createText:u,className:f,onEnter:p,t:g})=>{const{setIsOpen:h,selectedIndex:x}=an(),b=d.useCallback(()=>{o("create",{id:t,name:t}),h(!1)},[t,h,o]),y=d.useMemo(()=>!e.length||!e.some(w=>w.name.toLowerCase()===t.toLowerCase()),[t,e]),v=d.useCallback(w=>{w.code==="Enter"&&t&&p&&p(t,()=>h(!1))},[t,p,h]);return a.jsxs(Fu,{className:f,children:[a.jsx(Du,{inputText:t,setIsOpen:h,onSelectionChange:o,setInputText:n,isDeletable:r,onKeyDown:p?v:void 0,placeholder:l??"Enter a name",tooltipText:(g==null?void 0:g("comboBox.tooltipText"))??"Remove?"}),e.map((w,k)=>a.jsx(Wu,{label:s?a.jsx(s,{...w,selected:x===k}):a.jsx(Ou,{name:w.name}),optionKey:w.id,disabled:w.isHeader},w.id)),y&&t?i?a.jsx(_u,{onClick:b,children:i}):a.jsx(Au,{size:"med",onClick:b,children:u??"Create?"}):null]})},fs=({children:e,deletable:t,options:o,selected:n,onInputChange:r,onSelectionChange:s,requiresSelection:l,...i})=>{const u=d.useRef(n==null?void 0:n.id),[f,p]=d.useState(l?"":(n==null?void 0:n.name)??""),g=!!n&&n.name===f,h=t!==void 0?t:g&&!l;d.useLayoutEffect(()=>{u.current!==(n==null?void 0:n.id)&&(p(l?"":(n==null?void 0:n.name)??""),u.current=n==null?void 0:n.id)},[n,l]);const x=d.useCallback(k=>{p(k),r==null||r(k)},[r]),b=d.useCallback((k,S)=>{u.current=S==null?void 0:S.id,p(l?"":(S==null?void 0:S.name)??""),s(k,S==null?void 0:S.id)},[s,l]),y=d.useCallback(k=>{const S=o.find($=>$.id===k);S&&b("select",S)},[b,o]),v=d.useMemo(()=>g?o:o.filter(k=>k.name.toLowerCase().includes(f.toLowerCase())||k.isHeader),[f,o,g]),w=d.useMemo(()=>v.findIndex(k=>k.id===(n==null?void 0:n.id)),[v,n==null?void 0:n.id]);return a.jsx(Nu,{selectedIndex:w,isFocusTrapDisabled:!0,onSelect:y,Reference:e,children:a.jsx(Ru,{...i,handleInputChange:x,handleSelectionChange:b,optionsToRender:v,isDeletable:h,inputText:f})})},Nu=m(bt)`
|
|
1828
|
+
border-radius: ${Se("border-radius")};
|
|
1745
1829
|
overflow: hidden;
|
|
1746
|
-
`,
|
|
1830
|
+
`,Fu=m.div`
|
|
1747
1831
|
width: 200px;
|
|
1748
1832
|
height: auto;
|
|
1749
1833
|
display: flex;
|
|
1750
1834
|
flex-direction: column;
|
|
1751
1835
|
align-items: flex-start;
|
|
1752
1836
|
justify-content: flex-start;
|
|
1753
|
-
background-color: ${
|
|
1754
|
-
border-radius: ${
|
|
1755
|
-
box-shadow: ${
|
|
1756
|
-
padding: ${
|
|
1757
|
-
row-gap: ${
|
|
1758
|
-
`,
|
|
1759
|
-
padding: ${
|
|
1760
|
-
`,
|
|
1837
|
+
background-color: ${Se("background-color")};
|
|
1838
|
+
border-radius: ${Se("border-radius")};
|
|
1839
|
+
box-shadow: ${Se("box-shadow")};
|
|
1840
|
+
padding: ${Se("padding")};
|
|
1841
|
+
row-gap: ${Se("row-gap")};
|
|
1842
|
+
`,Au=m(Yo)`
|
|
1843
|
+
padding: ${Iu("padding")};
|
|
1844
|
+
`,_u=m.div`
|
|
1761
1845
|
cursor: pointer;
|
|
1762
1846
|
width: 100%;
|
|
1763
|
-
`,
|
|
1847
|
+
`,Wu=m(ut)`
|
|
1764
1848
|
width: 100%;
|
|
1765
1849
|
display: flex;
|
|
1766
1850
|
align-items: center;
|
|
1767
1851
|
justify-content: flex-start;
|
|
1768
|
-
background-color: ${
|
|
1769
|
-
border-radius: ${
|
|
1770
|
-
column-gap: ${
|
|
1852
|
+
background-color: ${Se("background-color")};
|
|
1853
|
+
border-radius: ${Se("selection-border-radius")};
|
|
1854
|
+
column-gap: ${Se("option-column-gap")};
|
|
1771
1855
|
transition: background 0.125s ease-in-out;
|
|
1772
1856
|
overflow: hidden;
|
|
1773
1857
|
> .option-label-icon {
|
|
1774
1858
|
display: none;
|
|
1775
1859
|
}
|
|
1776
1860
|
&.isSelected {
|
|
1777
|
-
background-color: ${
|
|
1861
|
+
background-color: ${Se("background-color-selected")};
|
|
1778
1862
|
> .option-label-icon {
|
|
1779
1863
|
display: block;
|
|
1780
1864
|
}
|
|
1781
1865
|
}
|
|
1782
1866
|
&.isActive:not(.isSelected) {
|
|
1783
|
-
background-color: ${
|
|
1867
|
+
background-color: ${Se("background-color-active")};
|
|
1784
1868
|
}
|
|
1785
1869
|
&.disabled {
|
|
1786
1870
|
cursor: initial;
|
|
@@ -1789,7 +1873,7 @@
|
|
|
1789
1873
|
font-weight: ${c("font-weight-bold")};
|
|
1790
1874
|
}
|
|
1791
1875
|
}
|
|
1792
|
-
`,
|
|
1876
|
+
`,ps=m.div`
|
|
1793
1877
|
height: 20px;
|
|
1794
1878
|
width: 240px;
|
|
1795
1879
|
display: grid;
|
|
@@ -1810,32 +1894,32 @@
|
|
|
1810
1894
|
pointer-events: none;
|
|
1811
1895
|
background-color: ${c("color-grey10")};
|
|
1812
1896
|
}
|
|
1813
|
-
`,
|
|
1897
|
+
`,Lu=e=>typeof e=="string"?e.trim().length>0||"Required":!0,Bu=e=>{const{register:t}=e,o=d.useCallback((r,s)=>{if(!s||!s.required)return t(r,s);const l=typeof s.validate=="function"?{default:s.validate}:s.validate,i={...s,validate:{...l,whitespaces:Lu}};return t(r,i)},[t]),n=d.useMemo(()=>({...e.control,register:o}),[e.control,o]);return{...e,register:o,control:n}};function gs({children:e,onSubmit:t,onRootErrorChange:o,className:n,defaultValues:r,variant:s="submit",...l}){const i=P.useForm({shouldUnregister:!0,defaultValues:r,...l,mode:s==="blur"?"onBlur":l.mode}),u=Bu(i),f=u.formState.errors.root;d.useEffect(()=>{o&&o(f)},[f,o]);const p=d.useCallback(async g=>{await t(g,u.setError)},[u.setError,t]);return a.jsx(P.FormProvider,{...u,children:a.jsx("form",{className:n,onSubmit:s==="blur"?void 0:u.handleSubmit(p),onBlur:s==="blur"?u.handleSubmit(p):void 0,children:e})})}const Pu=d.memo(()=>a.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M5.99961 3.6001C5.35761 3.6001 4.75761 3.8481 4.30361 4.3041C3.84961 4.7581 3.59961 5.3581 3.59961 6.0001C3.59961 6.6421 3.84961 7.2421 4.30361 7.6961C4.75761 8.1481 5.35961 8.4001 5.99961 8.4001C6.63961 8.4001 7.24161 8.1501 7.69561 7.6961C8.14761 7.2421 8.39961 6.6401 8.39961 6.0001C8.39961 5.3601 8.14961 4.7581 7.69561 4.3041C7.24161 3.8481 6.64161 3.6001 5.99961 3.6001Z",fill:"#262626"})})),Hu=e=>e===void 0?a.jsx(Pu,{}):e?a.jsx(F,{iconId:"Check",color:"green",size:"sm"}):a.jsx(F,{iconId:"Close",color:"red",size:"sm"}),hs=d.memo(({isBlank:e,requirements:t,metRequirements:o,bulletGetter:n,className:r,t:s,title:l})=>a.jsxs(Vu,{className:r,children:[!!l&&a.jsx(M,{color:"dark",bold:!0,variant:"body",children:l}),a.jsx(Gu,{children:t.map(i=>{const u=e?void 0:o.includes(i.id);return a.jsxs(Uu,{children:[n?n(i.id,u):Hu(u),a.jsx(Yu,{variant:"body",color:"dark",children:s?s(i.textKey):i.id})]},i.id)})})]})),Vu=m.div`
|
|
1814
1898
|
display: flex;
|
|
1815
1899
|
align-items: flex-start;
|
|
1816
1900
|
justify-content: flex-start;
|
|
1817
1901
|
flex-direction: column;
|
|
1818
|
-
`,
|
|
1902
|
+
`,Gu=m.ul`
|
|
1819
1903
|
margin: 0px;
|
|
1820
1904
|
padding-left: 0px;
|
|
1821
1905
|
row-gap: 4px;
|
|
1822
1906
|
list-style-type: none;
|
|
1823
1907
|
list-style-position: inside;
|
|
1824
|
-
`,
|
|
1908
|
+
`,Uu=m.li`
|
|
1825
1909
|
margin: 0;
|
|
1826
1910
|
align-items: center;
|
|
1827
1911
|
display: flex;
|
|
1828
1912
|
justify-content: flex-start;
|
|
1829
|
-
`,
|
|
1913
|
+
`,Yu=m(M)`
|
|
1830
1914
|
margin-left: 4px;
|
|
1831
|
-
`,
|
|
1915
|
+
`,Ku=()=>P.useFormContext(),[Vn]=O(["form"]),dn=[{textKey:"passwordRequirements.length",id:"length"},{textKey:"passwordRequirements.uppercaseAndNumber",id:"uppercaseAndNumber"},{textKey:"passwordRequirements.specialCharacter",id:"specialCharacter"}],ms=[{textKey:"passwordRequirements.tooSimilar",id:"tooSimilar"},...dn],qu=d.memo(({name:e,t,hasLabel:o,includeTooSimilar:n})=>{const{getFieldState:r,formState:s}=Ku(),{error:l,isDirty:i}=r(e??"password",s),u=d.useMemo(()=>{const f=(l==null?void 0:l.types)??{},p=[];return!f.minLength&&!f.required&&p.push("length"),!f.tooSimilar&&n&&p.push("tooSimilar"),!f[Dt.noDigit]&&!f[Dt.noUpperCase]&&p.push("uppercaseAndNumber"),f[Dt.noSpecialCharacter]||p.push("specialCharacter"),p},[l==null?void 0:l.types,n]);return a.jsx(E.ClassNames,{children:({cx:f})=>a.jsx(Zu,{t,className:f({hasLabel:o}),isBlank:!i&&!l,requirements:n?ms:dn,title:(t==null?void 0:t("passwordRequirements.title"))??"Password Requirements",metRequirements:u})})}),Zu=m(hs)`
|
|
1832
1916
|
width: 100%;
|
|
1833
1917
|
align-items: flex-start;
|
|
1834
1918
|
justify-content: flex-start;
|
|
1835
1919
|
&.hasLabel {
|
|
1836
|
-
padding-left: calc(${
|
|
1920
|
+
padding-left: calc(${Vn("label-width")} + ${Vn("label-column-gap")});
|
|
1837
1921
|
}
|
|
1838
|
-
`,[Je]=
|
|
1922
|
+
`,[Je]=O(["form"]),be=d.forwardRef(({className:e,required:t,formItemId:o,isValid:n,...r},s)=>a.jsx(E.ClassNames,{children:({cx:l})=>a.jsx(Xu,{ref:s,"aria-required":t,"aria-invalid":!n,className:l(e,"form-label"),htmlFor:o,...r})})),Xu=m.label`
|
|
1839
1923
|
font-family: ${Je("label-font-family")};
|
|
1840
1924
|
font-size: ${Je("label-font-size")};
|
|
1841
1925
|
font-weight: ${Je("label-font-weight")};
|
|
@@ -1850,29 +1934,29 @@
|
|
|
1850
1934
|
color: ${Je("label-error-color")};
|
|
1851
1935
|
}
|
|
1852
1936
|
}
|
|
1853
|
-
`;
|
|
1937
|
+
`;be.displayName="FormLabel";const[$o]=O(["form"]),Ne=d.memo(({handleError:e,name:t,hasLabel:o})=>{const{getFieldState:n,formState:r}=P.useFormContext(),{error:s}=n(t,r);if(!s)return null;const l=e==="message"?s.message:e(s);return l?a.jsx(Ju,{className:o?"hasLabel":void 0,variant:"body",color:"red",children:l}):null}),Ju=m(M)`
|
|
1854
1938
|
width: 100%;
|
|
1855
|
-
margin-top: ${
|
|
1939
|
+
margin-top: ${$o("error-message-top-margin")};
|
|
1856
1940
|
&.hasLabel {
|
|
1857
|
-
padding-left: calc(${
|
|
1941
|
+
padding-left: calc(${$o("label-width")} + ${$o("label-column-gap")});
|
|
1858
1942
|
}
|
|
1859
|
-
`,[
|
|
1943
|
+
`,[Lo]=O(["form"]),Ve=m.div`
|
|
1860
1944
|
display: flex;
|
|
1861
1945
|
align-items: center;
|
|
1862
1946
|
justify-content: flex-start;
|
|
1863
1947
|
flex-direction: column;
|
|
1864
1948
|
width: 100%;
|
|
1865
1949
|
position: relative;
|
|
1866
|
-
`,
|
|
1950
|
+
`,Fe=m.div`
|
|
1867
1951
|
display: grid;
|
|
1868
1952
|
align-items: center;
|
|
1869
1953
|
grid-template-columns: 1fr;
|
|
1870
1954
|
width: 100%;
|
|
1871
|
-
column-gap: ${
|
|
1955
|
+
column-gap: ${Lo("label-column-gap")};
|
|
1872
1956
|
&.hasLabel {
|
|
1873
|
-
grid-template-columns: ${
|
|
1957
|
+
grid-template-columns: ${Lo("label-width")} 1fr;
|
|
1874
1958
|
}
|
|
1875
|
-
`,
|
|
1959
|
+
`,bs=m(Fe)`
|
|
1876
1960
|
align-items: flex-start;
|
|
1877
1961
|
|
|
1878
1962
|
/*
|
|
@@ -1883,63 +1967,63 @@
|
|
|
1883
1967
|
can help...
|
|
1884
1968
|
|
|
1885
1969
|
& label {
|
|
1886
|
-
padding: ${
|
|
1970
|
+
padding: ${Lo("label-area-padding")};
|
|
1887
1971
|
} */
|
|
1888
|
-
`,
|
|
1972
|
+
`,un=m.input`
|
|
1889
1973
|
visibility: hidden;
|
|
1890
1974
|
position: absolute;
|
|
1891
1975
|
right: 0;
|
|
1892
1976
|
top: 0;
|
|
1893
1977
|
pointer-events: none;
|
|
1894
|
-
`,
|
|
1978
|
+
`,Qu=({name:e,disabled:t,label:o,className:n,handleError:r,showIcons:s,readOnly:l,...i})=>{const{control:u}=P.useFormContext(),{field:{onChange:f,value:p,disabled:g},fieldState:{error:h}}=P.useController({name:e,control:u,rules:i,disabled:t}),x=d.useId();return a.jsx(E.ClassNames,{children:({cx:b})=>a.jsxs(Ve,{children:[a.jsxs(Fe,{className:b({hasLabel:!!o}),children:[o&&a.jsx(be,{formItemId:x,isValid:!h,required:!!i.required,children:o}),a.jsx(ef,{children:a.jsx(no,{checked:p,disabled:g,readOnly:l,onChange:f,showIcons:s,id:x})})]}),!!r&&a.jsx(Ne,{handleError:r,name:e,hasLabel:!!o})]})})},ef=m.div`
|
|
1895
1979
|
width: 100%;
|
|
1896
1980
|
display: flex;
|
|
1897
1981
|
align-items: center;
|
|
1898
1982
|
justify-content: flex-start;
|
|
1899
|
-
`,
|
|
1983
|
+
`,tf=({name:e,disabled:t,label:o,placeholder:n,className:r,handleError:s,autoFocus:l,wrap:i,readOnly:u,...f},p)=>{const{control:g}=P.useFormContext(),{field:{ref:h,...x},fieldState:{error:b}}=P.useController({name:e,control:g,rules:f,disabled:t}),y=d.useId(),v=N.useMergeRefs([h,p]);return a.jsx(E.ClassNames,{children:({cx:w})=>a.jsxs(Ve,{children:[a.jsxs(bs,{className:w({hasLabel:!!o}),children:[o&&a.jsx(be,{formItemId:y,isValid:!b,required:!!f.required,children:o}),a.jsx(ln,{...x,id:y,placeholder:n,ref:v,autoComplete:"off",className:w(r,"form-text-area"),"aria-invalid":!!b,autoFocus:l,readOnly:u,wrap:i})]}),!!s&&a.jsx(Ne,{handleError:s,name:e,hasLabel:!!o})]})})},of=pt(tf),nf=({onSubmit:e,enabledIfClean:t,...o},n)=>{const{handleSubmit:r,setError:s,formState:{isValid:l,isSubmitting:i,dirtyFields:u}}=P.useFormContext(),f=d.useCallback(async h=>{await e(h,s)},[s,e]),p=Object.keys(u).length>0,g=!l||i||!t&&!p;return a.jsx(Ie,{type:"submit",...o,ref:n,disabled:g,onClick:r(f)})},fn=pt(nf),xs=({disabled:e,isSmall:t,children:o,value:n,id:r,placeholder:s,prefixIcon:l,prefixIconColor:i,className:u,getLabel:f,getIcon:p,onSelect:g,onKeyDown:h})=>{var T,j;const x=d.useRef(n);d.useEffect(()=>{x.current=n},[n]);const b=d.useCallback(D=>{let W=p==null?void 0:p(D),G=f==null?void 0:f(D),H;return D&&d.Children.forEach(o,X=>{d.isValidElement(X)&&X.props.optionKey&&X.props.optionKey===D&&(H=X)}),H!==void 0&&d.isValidElement(H)&&H.props.label&&(G=G??H.props.label,W=W??H.props.prefixIconId),{label:G??"",iconId:W}},[o,p,f]),y=d.useCallback((D,W)=>{let G=null;return d.Children.forEach(D,(H,X)=>{d.isValidElement(H)&&H.props.optionKey&&H.props.optionKey===W&&(G=X)}),G},[]),[v,w]=d.useState(y(o,n));d.useEffect(()=>{w(y(o,x.current))},[o,y]);const[k,S]=d.useState((T=b(n))==null?void 0:T.label),[$,C]=d.useState((j=b(n))==null?void 0:j.iconId);return d.useEffect(()=>{const D=b(n);S(D==null?void 0:D.label),C(D==null?void 0:D.iconId)},[n,b]),a.jsx(E.ClassNames,{children:({cx:D})=>a.jsx(bt,{onSelect:g,disabled:e,matchReferenceWidth:!0,selectedIndex:v,onSelectedIndexChange:w,Reference:a.jsx(rf,{value:k??"",disabled:e,onChange:Re,id:r,onKeyDown:h,isSmall:t,prefixIconId:l||$,prefixIconColor:i,type:"text",placeholder:s,autoComplete:"off",className:D(u,"form-input"),suffixIconId:"Down",suffixIconColor:e?"grey":"black"}),children:o})})},rf=m(mt)`
|
|
1900
1984
|
caret-color: transparent;
|
|
1901
1985
|
user-select: none;
|
|
1902
1986
|
-webkit-user-select: none;
|
|
1903
|
-
`,
|
|
1987
|
+
`,sf=({name:e,disabled:t,label:o,handleError:n,children:r,placeholder:s,prefixIcon:l,prefixIconColor:i,className:u,readOnly:f,...p})=>{const{control:g}=P.useFormContext(),{field:{ref:h,...x},fieldState:{error:b}}=P.useController({name:e,control:g,rules:p,disabled:t}),y=d.useId(),{onChange:v}=x,w=d.useCallback(k=>{v(k)},[v]);return a.jsx(E.ClassNames,{children:({cx:k})=>a.jsxs(Ve,{children:[a.jsxs(Fe,{className:k({hasLabel:!!o}),children:[o&&a.jsx(be,{formItemId:y,isValid:!b,required:!!p.required,children:o}),a.jsx(xs,{disabled:t||f,onSelect:w,className:u,id:y,value:x.value,children:r})]}),!!n&&a.jsx(Ne,{handleError:n,name:e,hasLabel:!!o}),a.jsx(un,{ref:h,...x})]})})},af=({name:e,disabled:t,label:o,placeholder:n,type:r,className:s,handleError:l,prefixIconId:i,prefixIconColor:u,suffixIconColor:f,suffixIconId:p,autoFocus:g,readOnly:h,...x},b)=>{const{control:y}=P.useFormContext(),{field:{ref:v,...w},fieldState:{error:k}}=P.useController({name:e,control:y,rules:x,disabled:t}),S=d.useId(),$=N.useMergeRefs([v,b]);return a.jsx(E.ClassNames,{children:({cx:C})=>a.jsxs(Ve,{children:[a.jsxs(Fe,{className:C({hasLabel:!!o}),children:[o&&a.jsx(be,{formItemId:S,isValid:!k,required:!!x.required,children:o}),a.jsx(mt,{...w,onChange:T=>{x.autoTrim?w.onChange(T.target.value.trim()):w.onChange(T.target.value)},id:S,readOnly:h,type:r,autoFocus:g,placeholder:n,ref:$,autoComplete:"off",prefixIconColor:u,prefixIconId:i,suffixIconId:p,suffixIconColor:f,className:C(s,"form-input"),"aria-invalid":!!k})]}),!!l&&a.jsx(Ne,{handleError:l,name:e,hasLabel:!!o})]})})},pn=pt(af),lf=({areaField:e,name:t,disabled:o,readOnly:n,label:r,handleError:s,children:l,className:i,...u})=>{const{control:f}=P.useFormContext(),{field:p,fieldState:{error:g,...h}}=P.useController({name:t,control:f,rules:u,disabled:o}),x=d.useId(),b=e?bs:Fe;return a.jsx(E.ClassNames,{children:({cx:y})=>a.jsxs(Ve,{className:i,children:[a.jsxs(b,{className:y("form-input-wrapper",{hasLabel:!!r}),children:[r&&a.jsx(be,{formItemId:x,isValid:!g,required:!!u.required,children:r}),l(p,{error:g,readOnly:n,...h})]}),!!s&&a.jsx(Ne,{handleError:s,name:t,hasLabel:!!r})]})})},cf=({name:e,disabled:t,label:o,className:n,handleError:r,readOnly:s,...l},i)=>{const{control:u}=P.useFormContext(),{field:{ref:f,...p},fieldState:{error:g}}=P.useController({name:e,control:u,rules:l,disabled:t}),h=d.useId(),x=N.useMergeRefs([f,i]),b=d.useCallback(y=>{y.target.blur(),p.onChange(y)},[p]);return a.jsx(E.ClassNames,{children:({cx:y})=>a.jsxs(Ve,{children:[a.jsxs(Fe,{className:y({hasLabel:!!o}),children:[o&&a.jsx(be,{formItemId:h,isValid:!g,required:!!l.required,children:o}),a.jsx(ht,{checked:!!p.value,disabled:p.disabled||s,onChange:b,id:h,ref:x,className:y(n,"form-checkbox"),"aria-invalid":!!g})]}),!!r&&a.jsx(Ne,{handleError:r,name:e,hasLabel:!!o})]})})},df=pt(cf),[Ot]=O(["form"]),Gn=({control:e,name:t,t:o})=>{const{field:{onChange:n,value:r,disabled:s}}=P.useController({name:t,control:e,rules:{},disabled:!1}),l=d.useId();return a.jsxs(uf,{children:[a.jsx(ff,{isValid:!0,formItemId:l,children:(o==null?void 0:o(`access.${t==="locked"?"lock":"hide"}Label`))??t==="locked"?"Lock":"Hide"}),a.jsx(no,{checked:r,disabled:s,onChange:n,id:l})]})},uf=m.div`
|
|
1904
1988
|
display: flex;
|
|
1905
1989
|
align-items: center;
|
|
1906
1990
|
justify-content: flex-start;
|
|
1907
|
-
column-gap: ${
|
|
1908
|
-
`,
|
|
1991
|
+
column-gap: ${Ot("access-toggle-gap")};
|
|
1992
|
+
`,ff=m(be)`
|
|
1909
1993
|
width: auto;
|
|
1910
|
-
`,
|
|
1994
|
+
`,pf=({className:e,t,isAdmin:o,hideHide:n,hideLock:r})=>{const{control:s}=P.useFormContext();return o?a.jsxs(gf,{className:e,children:[a.jsx(M,{textAlign:"right",variant:"body",color:"dark",children:(t==null?void 0:t("access.label"))??"Access:"}),a.jsxs(hf,{children:[!n&&a.jsx(Gn,{name:"hidden",control:s}),!r&&a.jsx(Gn,{name:"locked",control:s})]})]}):null},gf=m.div`
|
|
1911
1995
|
width: 100%;
|
|
1912
1996
|
display: grid;
|
|
1913
1997
|
align-items: center;
|
|
1914
1998
|
background-color: ${c("color-grey10")};
|
|
1915
1999
|
border-radius: ${c("spacing-4")};
|
|
1916
|
-
grid-template-columns: ${
|
|
1917
|
-
height: ${
|
|
1918
|
-
column-gap: ${
|
|
1919
|
-
`,
|
|
2000
|
+
grid-template-columns: ${Ot("label-width")} 1fr;
|
|
2001
|
+
height: ${Ot("access-toggle-height")};
|
|
2002
|
+
column-gap: ${Ot("label-column-gap")};
|
|
2003
|
+
`,hf=m.div`
|
|
1920
2004
|
width: 100%;
|
|
1921
2005
|
height: 100%;
|
|
1922
2006
|
display: flex;
|
|
1923
2007
|
align-items: center;
|
|
1924
2008
|
justify-content: flex-start;
|
|
1925
|
-
column-gap: ${
|
|
1926
|
-
`,
|
|
2009
|
+
column-gap: ${Ot("label-column-gap")};
|
|
2010
|
+
`,mf=d.memo(({nameBlackList:e,maxLength:t,t:o,...n})=>{const r=d.useCallback(s=>Nr.test(s)?t&&s.length>t?(o==null?void 0:o("form.tooLongName"))??`Cannot be longer than ${t}.`:e&&e.includes(s)?(o==null?void 0:o("form.duplicateName"))??"This name is already taken":!0:(o==null?void 0:o("form.noLeadingOrTrailingSpacesName"))??"Cannot have leading or trailing spaces.",[t,e,o]);return a.jsx(pn,{validate:r,handleError:"message",name:"name",...n})}),bf=({name:e,disabled:t,label:o,placeholder:n,type:r,className:s,handleError:l,prefixIconId:i,prefixIconColor:u,suffixIconColor:f,suffixIconId:p,autoFocus:g,readOnly:h,options:x,useLabelAsValue:b,...y})=>{const{control:v}=P.useFormContext(),{field:{ref:w,...k},fieldState:{error:S}}=P.useController({name:e,control:v,rules:y,disabled:t}),$=d.useId(),C=d.useCallback((j,D)=>{k.onChange(D??"")},[k]),T=d.useMemo(()=>{if(k.value)return{id:k.value,name:k.value}},[k.value]);return a.jsx(E.ClassNames,{children:({cx:j})=>a.jsxs(Ve,{children:[a.jsxs(Fe,{className:j({hasLabel:!!o}),children:[o&&a.jsx(be,{formItemId:$,isValid:!S,required:!!y.required,children:o}),a.jsx(fs,{options:x,selected:T,onSelectionChange:C,children:a.jsxs(xf,{children:[a.jsx(eo,{variant:"body",color:"dark",children:k.value}),a.jsx(yf,{children:a.jsx(F,{iconId:"Down",size:"sm",color:"black"})})]})})]}),!!l&&a.jsx(Ne,{handleError:l,name:e,hasLabel:!!o}),a.jsx(un,{ref:w,...k})]})})},xf=m(ps)`
|
|
1927
2011
|
height: 29px;
|
|
1928
2012
|
width: 100%;
|
|
1929
|
-
`,
|
|
2013
|
+
`,yf=m.div`
|
|
1930
2014
|
width: 100%;
|
|
1931
2015
|
height: 100%;
|
|
1932
2016
|
display: flex;
|
|
1933
2017
|
align-items: center;
|
|
1934
2018
|
justify-content: center;
|
|
1935
|
-
`,
|
|
2019
|
+
`,kf=({name:e,disabled:t,label:o,handleError:n,readOnly:r,placeholder:s,...l})=>{const{control:i}=P.useFormContext(),u=d.useRef(null),{field:{ref:f,value:p,onChange:g,...h},fieldState:{error:x}}=P.useController({name:e,control:i,rules:l,disabled:t}),b=d.useId(),y=N.useMergeRefs([f,u]),v=d.useCallback(()=>{u.current&&u.current.click()},[]),w=d.useCallback($=>{$.preventDefault()},[]),k=d.useCallback($=>{$.preventDefault();let C=!1;if($.dataTransfer.items.length)for(let T=0;T<$.dataTransfer.items.length&&!C;T++){const j=$.dataTransfer.items[T];if(j.kind==="file"){const D=j.getAsFile();D&&(C=!0,g(D))}}},[g]),S=d.useCallback(()=>{g(void 0)},[g]);return a.jsx(E.ClassNames,{children:({cx:$})=>a.jsxs(Ve,{children:[a.jsxs(Fe,{className:$({hasLabel:!!o}),children:[o&&a.jsx(be,{formItemId:b,isValid:!x,required:!!l.required,children:o}),p?a.jsxs(Cf,{children:[a.jsx(F,{iconId:"File",size:"sm",color:"black"}),a.jsx(M,{variant:"body",color:"dark",children:p.name}),a.jsx(Sf,{onClick:S,iconId:"Close",size:"sm",color:"black"})]}):a.jsxs(vf,{onDrop:k,onClick:v,onDragOver:w,children:[a.jsx(F,{iconId:"File",size:"med",color:"black"}),a.jsx(M,{variant:"body",color:"dark",children:s})]}),a.jsx(wf,{value:p==null?void 0:p.fileName,...h,id:b,onChange:C=>{C.target.files&&g(C.target.files[0])},type:"file",ref:y})]}),!!n&&a.jsx(Ne,{handleError:n,name:e,hasLabel:!!o})]})})},ys=m.div`
|
|
1936
2020
|
width: 100%;
|
|
1937
2021
|
padding: ${c("spacing-12")};
|
|
1938
2022
|
display: flex;
|
|
1939
2023
|
border: 1px solid ${c("color-grey30")};
|
|
1940
2024
|
background-color: ${c("color-grey10")};
|
|
1941
2025
|
border-radius: ${c("spacing-6")};
|
|
1942
|
-
`,
|
|
2026
|
+
`,vf=m(ys)`
|
|
1943
2027
|
align-items: center;
|
|
1944
2028
|
justify-content: center;
|
|
1945
2029
|
flex-direction: column;
|
|
@@ -1949,58 +2033,58 @@
|
|
|
1949
2033
|
:hover {
|
|
1950
2034
|
border-color: ${c("color-grey50")};
|
|
1951
2035
|
}
|
|
1952
|
-
`,
|
|
2036
|
+
`,wf=m.input`
|
|
1953
2037
|
display: none;
|
|
1954
|
-
`,
|
|
2038
|
+
`,Cf=m(ys)`
|
|
1955
2039
|
align-items: flex-start;
|
|
1956
2040
|
justify-content: flex-start;
|
|
1957
2041
|
column-gap: ${c("spacing-4")};
|
|
1958
|
-
`,
|
|
2042
|
+
`,Sf=m(ee)`
|
|
1959
2043
|
margin-left: auto;
|
|
1960
|
-
|
|
2044
|
+
`,$f=({name:e,disabled:t,label:o,handleError:n,options:r,selectAllHidden:s,SelectAllItemTemplate:l,ListItemTemplate:i,SelectedItemTemplate:u,className:f,readOnly:p,closeOnSelect:g,...h})=>{const{control:x}=P.useFormContext(),{field:{value:b,onChange:y},fieldState:{error:v}}=P.useController({name:e,control:x,rules:h,disabled:t}),w=d.useId(),k=d.useCallback(S=>{y(S)},[y]);return a.jsx(E.ClassNames,{children:({cx:S})=>a.jsxs(Ve,{children:[a.jsxs(Fe,{className:S({hasLabel:!!o}),children:[o&&a.jsx(be,{formItemId:w,isValid:!v,required:!!h.required,children:o}),a.jsx(us,{disabled:t||p,options:r,closeOnSelect:g,onChange:k,selected:b,className:f,SelectAllItemTemplate:l,ListItemTemplate:i,SelectedItemTemplate:u})]}),!!n&&a.jsx(Ne,{handleError:n,name:e,hasLabel:!!o})]})})},At=(e,t)=>{const[o,n]=d.useState(!1);return d.useEffect(()=>{async function r(){var s;e!=null&&e.init&&(await((s=e.init)==null?void 0:s.call(e)),t==null||t()),n(!0)}return r(),()=>{var s;(s=e==null?void 0:e.dispose)==null||s.call(e)}},[t,e]),o},io=d.createContext({isSelected:()=>!1,selected:[],toggleSelection:Re,isDisabled:!1}),nt=()=>{const e=d.useContext(io);return e||{isSelected:()=>!1,selected:[],toggleSelection:Re,isDisabled:!1}};function Bo(e){return e.context!==void 0}const gn=d.createContext(null),hn=({children:e,dataProvider:t})=>{const[o,n]=d.useState(),r=d.useMemo(()=>t?{data:o}:{data:new Map},[t,o]);return d.useEffect(()=>{var l;const s=i=>{n(i)};if(t&&Bo(t)){const i=t.context;(l=t.addContextChangeListener)==null||l.call(t,s),i&&n(i)}return()=>{var i;t&&Bo(t)&&((i=t==null?void 0:t.removeContextChangeListener)==null||i.call(t,s))}},[t]),a.jsx(gn.Provider,{value:r,children:e})},jf=()=>{const e=d.useContext(gn);return e||V.KosLog.info("useListDataContext must be used within a DataProviderContextProvider"),e},Tf=e=>t=>o=>()=>o.call(e,t);class mn{constructor(t,o,n,r){J(this,"parent");J(this,"_itemMap");J(this,"disposer");J(this,"_items");J(this,"listeners",[]);J(this,"context");J(this,"resolvedItems");J(this,"resolver");J(this,"version");J(this,"initialized");this.parent=t,this.context=Q.observable.map(new Map(Object.entries(r||{}))),this.version=0,this._itemMap=n,this.initialized=!1,this._items=Q.observable.map(new Map),this.resolvedItems=[],this.resolver=o.bind(t),this.listeners=[],Q.makeObservable(this,{items:Q.computed,initialized:Q.observable,version:Q.observable,refresh:Q.action,resolvedItems:Q.observable,context:Q.observable})}filterByInputItem(t,o){return!!t}sortByInputItem(t,o){var n;return t.name?(n=t.name)==null?void 0:n.localeCompare(o.name):-1}refresh(){this.version=this.version+1}get items(){if(!this.initialized||this.version<0)return[];const t=this.resolvedItems,o=[...new Set(t)],n=i=>this._itemMap(i,this.context),r=i=>this.filterByInputItem(i,this.context),s=o.filter(r.bind(this)).sort(this.sortByInputItem.bind(this)).map(n);return Array.from(this._items.keys()).filter(i=>!s.find(u=>u.id===i)).forEach(i=>{V.kosAction(()=>{this._items.delete(i)})}),s.reduce((i,u)=>{if(!i.has(u.id))V.kosAction(()=>{i.set(u.id,u)});else{const f=i.get(u.id);f&&V.kosAction(()=>{const p=Object.assign(f,u);i.set(u.id,p)})}return i},this._items),s.map(i=>this._items.get(i.id))}async init(){if(!this.initialized){if(V.isKosDataModel(this.parent)&&await V.whenReady(this.parent),this.resolver){const t=Tf(this.parent)(this.context)(this.resolver);this.disposer=Q.reaction(t,o=>{this.resolvedItems=o,this.refresh()},{fireImmediately:!0})}V.kosAction(()=>{this.initialized=!0})}}whenReady(){return new Promise(t=>{const o=V.kosAutoEffect(()=>{this.initialized&&(t(),o())})})}updateContextValue(t,o){V.kosAction(()=>{this.context.set(t,o),this.refresh()})}removeContextValue(t){this.context.delete(t),this.refresh()}dispose(){this.disposer&&this.disposer(),V.kosAction(()=>{this.initialized=!1})}}const Df=e=>e.data!==void 0,ks=e=>t=>()=>{const o=[];return(Array.isArray(t)?t:[t]).forEach(r=>{const s=e[r];Df(s)?o.push(...s.data):Array.isArray(s)&&o.push(...s)}),o};class bn extends mn{constructor(o,n,r,s){super(o,ks(o)(n),r,s);J(this,"_key");this._key=Array.isArray(n)?n:[n]}}class Ef extends bn{constructor(t,o,n,r){super(t,o,n,r),Q.makeObservable(this,{groups:Q.computed,itemsByGroup:Q.computed})}get itemsByGroup(){return this.items.reduce((t,o)=>{const n=o.group.groupId;return t[n]||(t[n]=[]),t[n].push(o),t},{})}get groups(){return this.items.map(t=>t.group).sort(this.sortGroup.bind(this))}getGroupItems(t){return this.itemsByGroup[t]||[]}sortGroup(t,o){return t.name.localeCompare(o.name)}}class Mf{constructor(t,o=[]){J(this,"items");J(this,"parent");this.parent=t,this.items=o.map(n=>({id:`${this.parent.id}-${n.name.toString()}`,name:n.key||n.name.toString(),data:n,value:this.parent[n.name]}))}}function Rt(e){return e.build!==void 0}const zf=m.div`
|
|
1961
2045
|
width: 100%;
|
|
1962
|
-
`,
|
|
2046
|
+
`,Of=(e,t,o)=>e.items.map(n=>{const r=Rt(t)?t.build(n):t;return a.jsx(r,{"data-key":n.id,...n,onListItemAction:o},n.id)}),xn=V.kosComponent(({dataProvider:e,firstChild:t,ItemTemplate:o,lastChild:n,onListItemAction:r,onInit:s,emptyState:l,className:i,itemListRenderer:u=Of})=>{const f=At(e,s),p=f&&e?u(e,o,r):[];return a.jsx(hn,{dataProvider:e||void 0,children:a.jsxs(zf,{className:i,children:[t,f?p.length===0&&l?l:p:null,n]})})}),ao=V.kosComponent(({isSingleSelect:e=!0,onSelect:t,selected:o,disabled:n,autoSelectFirstItem:r,dataProvider:s,getFirstItem:l,...i})=>{const[u,f]=d.useState(o??[]),p=d.useRef(u??[]);d.useLayoutEffect(()=>{p.current=u},[u]),d.useEffect(()=>{f(o??[])},[o]);const g=d.useCallback(b=>{t(b,p.current.includes(b)?"unselected":"selected"),f(y=>e?[b]:y.includes(b)?y.filter(v=>v!==b):[...y,b])},[e,t]),h=d.useCallback(b=>p.current.includes(b),[]),x=d.useMemo(()=>({isSelected:h,selected:u,toggleSelection:g,isDisabled:!!n}),[h,u,g,n]);return d.useEffect(()=>{var b,y;if(r&&(s!=null&&s.items)&&p.current.length===0){let v;l?v=(b=l(s.items))==null?void 0:b.id:v=(y=s.items[0])==null?void 0:y.id,v&&g(v)}},[r,s==null?void 0:s.items,l,g]),a.jsx(io.Provider,{value:x,children:a.jsx(xn,{dataProvider:s,...i})})});function vs(e){return e.build!==void 0}const If=e=>(t,o,n)=>t.groups.reduce((s,l)=>s.find(i=>i.groupId===l.groupId)?s:[...s,l],[]).map(s=>{const l=vs(e)?e.build(s):e,u=t.getGroupItems(s.groupId).map(f=>{const p=Rt(o)?o.build(f):o;return a.jsx(p,{"data-key":f.id,...f,onListItemAction:n},f.id)});return a.jsx(l,{groupId:s.groupId,name:s.name,children:u},s.groupId)}),yn=d.createContext({openedGroups:[],toggleGroup:Re});function Rf(e){const t=e.supportMultipleOpen??!0,[o,n]=d.useState(e.openedGroups??[]),r=d.useCallback(l=>{var i;(i=e.onGroupOpen)==null||i.call(e,l,o.includes(l)?"closed":"opened"),n(u=>t?u.includes(l)?u.filter(f=>f!==l):[...u,l]:[l])},[o,e,t]);d.useEffect(()=>{n(e.openedGroups??[])},[e.openedGroups]);const s=d.useMemo(()=>({openedGroups:o,toggleGroup:r}),[o,r]);return a.jsx(yn.Provider,{value:s,children:a.jsx(ao,{...e,itemListRenderer:If(e.GroupTemplate)})})}const ws=()=>{const e=d.useContext(yn);return e||{openedGroups:[],toggleGroup:Re}},Nf=({children:e,name:t,groupId:o,className:n})=>{const{openedGroups:r,toggleGroup:s}=ws(),l=r.includes(o),i=d.useCallback(()=>{s(o)},[o,s]);return a.jsxs(Cs,{className:n,children:[a.jsxs(Af,{"data-open":l,className:"label-container",onClick:i,children:[l?a.jsx(F,{iconId:"CaretDown",size:"xsm"}):a.jsx(F,{iconId:"CaretRight",size:"xsm"}),a.jsx(M,{variant:"body",bold:!0,children:t})]}),a.jsx(_f,{children:l?a.jsx(Wf,{className:"list-container",children:e}):null})]},o)},Ff=({children:e,groupId:t,className:o})=>a.jsx(Cs,{className:o,children:e},t),Cs=m.div`
|
|
1963
2047
|
display: flex;
|
|
1964
2048
|
flex-direction: column;
|
|
1965
2049
|
padding-bottom: 8px;
|
|
1966
|
-
`,
|
|
2050
|
+
`,Af=m.div`
|
|
1967
2051
|
display: flex;
|
|
1968
2052
|
flex: 0;
|
|
1969
2053
|
cursor: pointer;
|
|
1970
2054
|
gap: 4px;
|
|
1971
2055
|
padding-inline: 20px 12px;
|
|
1972
2056
|
align-items: center;
|
|
1973
|
-
`,
|
|
2057
|
+
`,_f=m.div`
|
|
1974
2058
|
display: flex;
|
|
1975
2059
|
flex-direction: column;
|
|
1976
|
-
`,
|
|
2060
|
+
`,Wf=m.div`
|
|
1977
2061
|
padding-inline-start: 16px;
|
|
1978
2062
|
align-items: center;
|
|
1979
2063
|
gap: 6px;
|
|
1980
2064
|
padding-block-start: 8px;
|
|
1981
|
-
`,
|
|
2065
|
+
`,_t=m.div`
|
|
1982
2066
|
align-items: center;
|
|
1983
2067
|
align-self: stretch;
|
|
1984
2068
|
background: var(--Grey-White, #fff);
|
|
1985
2069
|
border-bottom: 0.5px solid var(--Grey-20, #dfdfdf);
|
|
1986
2070
|
display: flex;
|
|
1987
|
-
`,
|
|
2071
|
+
`,kn=m(_t)`
|
|
1988
2072
|
padding: 0 0 6px 0;
|
|
1989
|
-
`,
|
|
2073
|
+
`,Ss=m(_t)`
|
|
1990
2074
|
border-bottom: 0.5px solid var(--Grey-20, #dfdfdf);
|
|
1991
|
-
|
|
2075
|
+
`,$s=m(kn)`
|
|
1992
2076
|
border-bottom: 0.5px solid var(--Grey-20, #dfdfdf);
|
|
1993
|
-
`,
|
|
2077
|
+
`,lo=m.div`
|
|
1994
2078
|
align-items: center;
|
|
1995
2079
|
display: flex;
|
|
1996
2080
|
gap: 16px;
|
|
1997
2081
|
height: 30px;
|
|
1998
2082
|
justify-content: center;
|
|
1999
2083
|
padding: 8px;
|
|
2000
|
-
`,
|
|
2084
|
+
`,js=m(lo)`
|
|
2001
2085
|
height: initial;
|
|
2002
2086
|
padding: 0 4px 0 14px;
|
|
2003
|
-
`,
|
|
2087
|
+
`,co=m.div`
|
|
2004
2088
|
align-items: center;
|
|
2005
2089
|
align-self: stretch;
|
|
2006
2090
|
display: flex;
|
|
@@ -2009,10 +2093,10 @@
|
|
|
2009
2093
|
height: 30px;
|
|
2010
2094
|
justify-content: space-between;
|
|
2011
2095
|
padding: 8px 8px 8px 4px;
|
|
2012
|
-
`,
|
|
2096
|
+
`,Ts=m(co)`
|
|
2013
2097
|
height: initial;
|
|
2014
2098
|
padding: 0;
|
|
2015
|
-
`,
|
|
2099
|
+
`,Ds=d.memo(({className:e,disabled:t,id:o,label:n,mode:r="standard",name:s,showDivider:l=!0})=>{const{selected:i,toggleSelection:u,isDisabled:f}=nt(),p=d.useCallback(()=>{u(o)},[o,u]),g=r==="compact"?js:lo,h=r==="compact"?Ts:co,x=l?r==="compact"?$s:Ss:r==="compact"?kn:_t;return a.jsxs(x,{className:e,children:[a.jsx(g,{children:a.jsx(ht,{disabled:f||t,checked:i.includes(o),onChange:p})}),a.jsxs(h,{children:[a.jsx(M,{variant:"body",children:s}),!!n&&a.jsx(M,{color:"grey",variant:"body",children:n})]})]})}),Lf=m.div`
|
|
2016
2100
|
display: flex;
|
|
2017
2101
|
padding: 4px 12px 4px 4px;
|
|
2018
2102
|
align-items: center;
|
|
@@ -2020,14 +2104,14 @@
|
|
|
2020
2104
|
align-self: stretch;
|
|
2021
2105
|
border-bottom: 0.5px solid var(--Grey-20, #dfdfdf);
|
|
2022
2106
|
background: var(--Grey-White, #fff);
|
|
2023
|
-
|
|
2107
|
+
`,Bf=m.div`
|
|
2024
2108
|
display: flex;
|
|
2025
2109
|
height: 30px;
|
|
2026
2110
|
padding: 8px;
|
|
2027
2111
|
justify-content: center;
|
|
2028
2112
|
align-items: center;
|
|
2029
2113
|
gap: 16px;
|
|
2030
|
-
`,
|
|
2114
|
+
`,Pf=m.div`
|
|
2031
2115
|
flex: 1 1 auto;
|
|
2032
2116
|
display: flex;
|
|
2033
2117
|
align-items: center;
|
|
@@ -2036,15 +2120,15 @@
|
|
|
2036
2120
|
padding: 8px 8px 8px 4px;
|
|
2037
2121
|
gap: 4px;
|
|
2038
2122
|
align-self: stretch;
|
|
2039
|
-
`,
|
|
2123
|
+
`,Hf=e=>{const{selected:t,toggleSelection:o,isDisabled:n}=nt(),r=d.useCallback(()=>{o(e.id)},[e,o]);return a.jsxs(Lf,{children:[a.jsx(Bf,{children:a.jsx("input",{onChange:r,type:"checkbox",checked:t.includes(e.id),disabled:n})}),a.jsx(Pf,{children:a.jsx(M,{variant:"body",children:e.name})})]})},[Me]=O(["named-list-item"]),Vf=d.memo(({id:e,iconId:t,iconColor:o,suffixIcons:n,name:r,className:s,subText:l,subTextColor:i})=>{const{selected:u,toggleSelection:f,isDisabled:p}=nt(),g=d.useCallback(()=>{p||f(e)},[e,f,p]);return a.jsx(E.ClassNames,{children:({cx:h})=>a.jsxs(Gf,{className:h(s,{isSelected:u.includes(e),isDisabled:p}),onClick:g,children:[a.jsxs(Uf,{children:[t&&a.jsx(F,{size:"sm",iconId:t,color:o}),a.jsx(M,{className:"named-list-item-text",variant:"body",children:r}),!!n&&a.jsx(Kf,{children:n.map(({iconId:x,iconColor:b})=>a.jsx(F,{size:"xsm",iconId:x,color:b},x))})]}),!!l&&a.jsx(Yf,{className:h({hasIcon:!!t}),children:a.jsx(qf,{color:i??"dark",variant:"body",children:l})})]})})}),Gf=m.div`
|
|
2040
2124
|
display: flex;
|
|
2041
|
-
padding-top: ${
|
|
2042
|
-
padding-right: ${
|
|
2043
|
-
padding-bottom: ${
|
|
2044
|
-
padding-left: ${
|
|
2125
|
+
padding-top: ${Me("padding-y")};
|
|
2126
|
+
padding-right: ${Me("padding-right")};
|
|
2127
|
+
padding-bottom: ${Me("padding-y")};
|
|
2128
|
+
padding-left: ${Me("padding-left")};
|
|
2045
2129
|
align-items: flex-start;
|
|
2046
2130
|
justify-content: flex-start;
|
|
2047
|
-
gap: ${
|
|
2131
|
+
gap: ${Me("row-gap")};
|
|
2048
2132
|
color: inherit;
|
|
2049
2133
|
background-color: transparent;
|
|
2050
2134
|
flex-direction: column;
|
|
@@ -2053,37 +2137,37 @@
|
|
|
2053
2137
|
cursor: unset;
|
|
2054
2138
|
}
|
|
2055
2139
|
&.isSelected {
|
|
2056
|
-
color: ${
|
|
2057
|
-
background-color: ${
|
|
2140
|
+
color: ${Me("color-selected")};
|
|
2141
|
+
background-color: ${Me("background-color-selected")};
|
|
2058
2142
|
}
|
|
2059
|
-
`,
|
|
2143
|
+
`,Uf=m.div`
|
|
2060
2144
|
width: 100%;
|
|
2061
2145
|
display: flex;
|
|
2062
2146
|
align-items: center;
|
|
2063
2147
|
justify-content: flex-start;
|
|
2064
|
-
gap: ${
|
|
2065
|
-
`,
|
|
2148
|
+
gap: ${Me("column-gap")};
|
|
2149
|
+
`,Yf=m.div`
|
|
2066
2150
|
width: 100%;
|
|
2067
2151
|
display: flex;
|
|
2068
2152
|
align-items: center;
|
|
2069
2153
|
justify-content: flex-start;
|
|
2070
2154
|
&.hasIcon {
|
|
2071
|
-
padding-left: ${
|
|
2155
|
+
padding-left: ${Me("subtext-padding-with-icon")};
|
|
2072
2156
|
}
|
|
2073
|
-
`,
|
|
2157
|
+
`,Kf=m.div`
|
|
2074
2158
|
display: flex;
|
|
2075
2159
|
align-items: center;
|
|
2076
2160
|
justify-content: flex-end;
|
|
2077
2161
|
margin-left: auto;
|
|
2078
|
-
gap: ${
|
|
2079
|
-
`,
|
|
2162
|
+
gap: ${Me("column-gap")};
|
|
2163
|
+
`,qf=m(M)`
|
|
2080
2164
|
-webkit-box-orient: vertical;
|
|
2081
2165
|
-webkit-line-clamp: 2;
|
|
2082
2166
|
display: -webkit-box;
|
|
2083
2167
|
overflow-wrap: anywhere;
|
|
2084
2168
|
overflow: hidden;
|
|
2085
2169
|
text-overflow: ellipsis;
|
|
2086
|
-
`,
|
|
2170
|
+
`,Zf=m.div`
|
|
2087
2171
|
display: flex;
|
|
2088
2172
|
padding: ${c("spacing-8")} ${c("spacing-10")};
|
|
2089
2173
|
align-items: center;
|
|
@@ -2096,18 +2180,18 @@
|
|
|
2096
2180
|
color: ${c("color-white")};
|
|
2097
2181
|
background-color: ${c("color-primary")};
|
|
2098
2182
|
}
|
|
2099
|
-
`,
|
|
2183
|
+
`,Xf=e=>{const{selected:t,toggleSelection:o}=nt(),n=d.useCallback(()=>{o(e.id)},[e,o]);return a.jsx(E.ClassNames,{children:({cx:r})=>a.jsxs(Zf,{className:r({isSelected:t.includes(e.id)}),onClick:n,children:[e.iconId&&a.jsx(F,{size:"sm",iconId:e.iconId}),a.jsx(M,{variant:"body",children:e.name})]})})},Jf=e=>{const[t,o]=d.useState(e);return{onGroupOpen:d.useCallback(async(r,s)=>{o((l=[])=>s==="opened"&&!(l!=null&&l.includes(r))?[...l,r]:s==="closed"&&l.includes(r)?l.filter(i=>i!==r):l)},[]),openedGroups:t}},Qf=(e,t={})=>{const[o,n]=d.useState(t),r=d.useCallback((l,i)=>{var g;const u=(g=e==null?void 0:e.items.find(h=>h.id===l))==null?void 0:g.group.groupId;if(!u)return;const f=o[u]||[],p=i==="selected"?{...o,[u]:[...f,l]}:{...o,[u]:f.filter(h=>h!==l)};n(p)},[e==null?void 0:e.items,o]);return{clear:d.useCallback(()=>{n({})},[]),groupSelection:o,onSelect:r}},ep=(e=[],t=!0)=>{const[o,n]=d.useState(e),r=d.useCallback(l=>{n(i=>t?[l]:i.includes(l)?i.filter(u=>u!==l):[...i,l])},[t]);return{clear:d.useCallback(()=>{n([])},[]),onSelect:r,selected:o}};class tp extends mn{constructor(o,n,r,s,l){super(o,n,r,l);J(this,"parentIdKey");J(this,"idKey");this.parentIdKey=s.parentIdKey,this.idKey=s.idKey,Q.makeObservable(this,{tree:Q.computed,childBranchLookup:Q.computed,itemsById:Q.computed})}sortBranch(o,n){return o.name.localeCompare(n.name)}get itemsById(){return this.items.reduce((o,n)=>({...o,[n[this.idKey]]:n}),{})}get childBranchLookup(){return this.items.reduce((o,n)=>{let r=n[this.parentIdKey];return(!r||this.itemsById[r]===void 0)&&(r="ROOT"),r&&o[r]?(o[r].push(n),o):(o[r]=[n],o)},{ROOT:[]})}get tree(){const o=r=>{const s=[];for(const l in r){let i={...r[l],branches:[]};const u=this.childBranchLookup[i[this.idKey]];i&&(u&&(i={...i,branches:o(u)}),s.push(i))}return s},n=this.childBranchLookup.ROOT;return n?o(n):[]}}const Es=d.createContext(null),op=V.kosComponent(({children:e,singleBranchOnly:t,openedBranches:o,setOpenedBranches:n,dataProvider:r})=>{const[s,l]=d.useState([]),i=o??s,u=n??l,f=d.useRef(i);d.useLayoutEffect(()=>{f.current=i},[i]);const p=d.useCallback(h=>{if(!(r!=null&&r.tree))return;const x=h[r.idKey],b=f.current.includes(x),y=w=>w.branches.flatMap(k=>{const S=k[r.idKey];return k.branches.length?[S,...y(k)]:[]}),v=y(h);if(t){const w=[],k=S=>{const $=S[r.parentIdKey];if($){const C=r.itemsById[$];C&&(w.push($),k(C))}};k(h),u(b?w:[...w,x])}else{const w=b?f.current.filter(k=>x!==k&&!v.includes(k)):[...f.current,x];u(w)}},[r==null?void 0:r.idKey,r==null?void 0:r.itemsById,r==null?void 0:r.parentIdKey,r==null?void 0:r.tree,u,t]),g=d.useMemo(()=>({openedBranches:i,toggleBranch:p}),[i,p]);return a.jsx(Es.Provider,{value:g,children:e})}),Ms=()=>{const e=d.useContext(Es);if(e===null)throw new Error("TreeContext can only be used inside children of TreeContextProvider");return e};function np(e){return e.build!==void 0}const rp=e=>(t,o,n)=>{const r=(s,l)=>{if(!s.branches.length&&s.isGroup)return null;if(s.branches.length){const i=np(e)?e.build(s):e,u=s.branches.map(f=>{if(f.branches.length)return r(f,!0);{const p=Rt(o)?o.build(f):o;return a.jsx(p,{"data-key":f.id,...f,onListItemAction:n},f.id)}});return a.jsx(E.ClassNames,{children:({cx:f})=>a.jsx(i,{className:f({isNotRoot:l},s.className),...s,children:u},s.id)},s.id)}else{const i=Rt(o)?o.build(s):o;return a.jsx(i,{"data-key":s.id,...s,onListItemAction:n},s.id)}};return t.tree.map(s=>r(s))},sp=V.kosComponent(({dataProvider:e,ItemTemplate:t,onSelect:o,BranchTemplate:n,openedBranches:r,setOpenedBranches:s,singleBranchOnly:l,className:i,autoSelectFirstItem:u,selected:f,emptyState:p,getFirstItem:g,onListItemAction:h})=>a.jsx(op,{dataProvider:e,openedBranches:r,setOpenedBranches:s,singleBranchOnly:l,children:a.jsx(ao,{onSelect:o,dataProvider:e,ItemTemplate:t,autoSelectFirstItem:u,emptyState:p,className:i,selected:f,onListItemAction:h,getFirstItem:g,itemListRenderer:rp(n)})})),ip=({children:e,id:t,className:o})=>a.jsx(E.ClassNames,{children:({cx:n})=>a.jsx(ap,{className:n("anonymous-branch",o),children:e},t)}),ap=m.div`
|
|
2100
2184
|
display: flex;
|
|
2101
2185
|
flex-direction: column;
|
|
2102
2186
|
width: 100%;
|
|
2103
|
-
`,
|
|
2187
|
+
`,lp=V.kosComponent(({children:e,className:t,...o})=>{const{openedBranches:n,toggleBranch:r}=Ms(),s=n.includes(o.id),l=d.useCallback(()=>{r(o)},[o,r]);return a.jsxs(cp,{className:t,children:[a.jsxs(dp,{className:"label-container","data-open":s,onClick:l,children:[s?a.jsx(F,{iconId:"CaretDown",size:"xxsm"}):a.jsx(F,{iconId:"CaretRight",size:"xxsm"}),a.jsx(M,{variant:"body",bold:!0,children:o.name})]}),a.jsx(up,{className:"inner-container",children:s?a.jsx(fp,{className:"list-container",children:e}):null})]},o.id)}),cp=m.div`
|
|
2104
2188
|
display: flex;
|
|
2105
2189
|
flex-direction: column;
|
|
2106
2190
|
|
|
2107
2191
|
&.isNotRoot {
|
|
2108
2192
|
padding-left: 12px;
|
|
2109
2193
|
}
|
|
2110
|
-
`,
|
|
2194
|
+
`,dp=m.div`
|
|
2111
2195
|
align-items: center;
|
|
2112
2196
|
column-gap: 4px;
|
|
2113
2197
|
cursor: pointer;
|
|
@@ -2115,69 +2199,75 @@
|
|
|
2115
2199
|
flex: 0;
|
|
2116
2200
|
min-height: 22px;
|
|
2117
2201
|
padding-right: 12px;
|
|
2118
|
-
`,
|
|
2202
|
+
`,up=m.div`
|
|
2119
2203
|
display: flex;
|
|
2120
2204
|
flex-direction: column;
|
|
2121
|
-
`,
|
|
2205
|
+
`,fp=m.div`
|
|
2122
2206
|
display: flex;
|
|
2123
2207
|
flex-direction: column;
|
|
2124
2208
|
row-gap: 4px;
|
|
2125
|
-
`,
|
|
2209
|
+
`,zs=d.memo(({autoScrollToBottom:e=!1,className:t,itemCount:o,itemHeight:n,onBottom:r,overscanAmount:s,renderRow:l})=>{const[i,u]=d.useState(0),[f,p]=d.useState(0),g=d.useRef(null),h=d.useRef(null),x=o*n,b=Math.ceil(f/n),y=Math.max(Math.floor(i/n-(s??0)),0),v=Math.min(o-1,y+b+(s??0)),w=S=>{u(S.currentTarget.scrollTop)};d.useLayoutEffect(()=>{const S=()=>{g.current&&p(g.current.clientHeight)};return S(),window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)},[]),d.useEffect(()=>{e&&h.current&&(h.current.scrollTop=h.current.scrollHeight)},[o,e]);const k=[];for(let S=y;S<=v;S++)k.push(l(S,{top:S*n,height:n,position:"absolute",width:"100%"}));return d.useEffect(()=>{const S=()=>{const C=h.current;if(!C)return;const T=C.scrollHeight-C.scrollTop<=C.clientHeight+n;!e&&T&&(r==null||r())},$=h.current;return $&&$.addEventListener("scroll",S),()=>{$&&$.removeEventListener("scroll",S)}},[e,n,r]),a.jsx(pp,{ref:g,children:a.jsx(gp,{ref:h,style:{height:f},onScroll:w,className:t,children:a.jsx(hp,{style:{height:x},children:k})})})}),pp=m.div`
|
|
2126
2210
|
height: 100%;
|
|
2127
2211
|
width: 100%;
|
|
2128
2212
|
overflow-y: hidden;
|
|
2129
2213
|
position: relative;
|
|
2130
|
-
`,
|
|
2214
|
+
`,gp=m.div`
|
|
2131
2215
|
overflow-y: auto;
|
|
2132
2216
|
width: 100%;
|
|
2133
2217
|
position: relative;
|
|
2134
|
-
`,
|
|
2218
|
+
`,hp=m.div`
|
|
2135
2219
|
position: relative;
|
|
2136
2220
|
width: 100%;
|
|
2137
|
-
`,
|
|
2221
|
+
`,Os=V.kosComponent(({dataProvider:e,ItemTemplate:t,onListItemAction:o,onInit:n,emptyState:r,...s})=>{const l=At(e,n),i=d.useCallback((u,f)=>{const p=e==null?void 0:e.items.find((g,h)=>h===u);if(p){const g=Rt(t)?t.build(p):t;return a.jsx(g,{"data-key":p.id,style:f,...p,onListItemAction:o},p.id)}return null},[t,e==null?void 0:e.items,o]);return a.jsx(hn,{dataProvider:e||void 0,children:l?(e==null?void 0:e.items.length)===0&&r?r:a.jsx(zs,{itemCount:(e==null?void 0:e.items.length)??0,renderRow:i,...s}):null})}),mp=V.kosComponent(({isSingleSelect:e=!0,onSelect:t,selected:o,disabled:n,autoSelectFirstItem:r,dataProvider:s,getFirstItem:l,...i})=>{const[u,f]=d.useState(o??[]),p=d.useRef(u??[]);d.useLayoutEffect(()=>{p.current=u},[u]),d.useEffect(()=>{f(o??[])},[o]);const g=d.useCallback(b=>{t(b,p.current.includes(b)?"unselected":"selected"),f(y=>e?[b]:y.includes(b)?y.filter(v=>v!==b):[...y,b])},[e,t]),h=d.useCallback(b=>p.current.includes(b),[]),x=d.useMemo(()=>({isSelected:h,selected:u,toggleSelection:g,isDisabled:!!n}),[h,u,g,n]);return d.useEffect(()=>{var b,y;if(r&&(s!=null&&s.items)&&p.current.length===0){let v;l?v=(b=l(s.items))==null?void 0:b.id:v=(y=s.items[0])==null?void 0:y.id,v&&g(v)}},[r,s==null?void 0:s.items,l,g]),a.jsx(io.Provider,{value:x,children:a.jsx(Os,{dataProvider:s,...i})})}),[he]=O(["modal"]),Is=m.div`
|
|
2138
2222
|
width: fit-content;
|
|
2139
2223
|
height: fit-content;
|
|
2140
2224
|
display: flex;
|
|
2141
2225
|
align-items: flex-start;
|
|
2142
2226
|
justify-content: flex-start;
|
|
2143
2227
|
flex-direction: column;
|
|
2144
|
-
background-color: ${
|
|
2145
|
-
`,
|
|
2146
|
-
padding: ${
|
|
2147
|
-
column-gap: ${
|
|
2228
|
+
background-color: ${he("background-color")};
|
|
2229
|
+
`,Rs=m.div`
|
|
2230
|
+
padding: ${he("headerPadding")};
|
|
2231
|
+
column-gap: ${he("headerGap")};
|
|
2148
2232
|
width: 100%;
|
|
2149
2233
|
display: flex;
|
|
2150
2234
|
align-items: center;
|
|
2151
2235
|
justify-content: flex-start;
|
|
2152
|
-
border-bottom: ${
|
|
2153
|
-
`,
|
|
2154
|
-
padding: ${
|
|
2236
|
+
border-bottom: ${he("border-width")} solid ${he("border-color")};
|
|
2237
|
+
`,Ns=m.div`
|
|
2238
|
+
padding: ${he("contentYPadding")} ${he("contentXPadding")};
|
|
2155
2239
|
width: fit-content;
|
|
2156
|
-
`,
|
|
2157
|
-
padding: ${
|
|
2158
|
-
border-top: ${
|
|
2240
|
+
`,vn=m.div`
|
|
2241
|
+
padding: ${he("footerYPadding")} ${he("footerXPadding")};
|
|
2242
|
+
border-top: ${he("border-width")} solid ${he("border-color")};
|
|
2159
2243
|
width: 100%;
|
|
2160
2244
|
display: flex;
|
|
2161
2245
|
align-items: center;
|
|
2162
2246
|
justify-content: flex-end;
|
|
2163
|
-
`,
|
|
2164
|
-
|
|
2165
|
-
|
|
2247
|
+
`,bp=m.div`
|
|
2248
|
+
width: ${he("base-content-width")};
|
|
2249
|
+
display: flex;
|
|
2250
|
+
align-items: flex-start;
|
|
2251
|
+
justify-content: flex-start;
|
|
2252
|
+
flex-direction: column;
|
|
2253
|
+
`,uo=d.forwardRef(({header:e,footer:t,content:o,footerWrapper:n,headerWrapper:r,contentWrapper:s},l)=>{const i=r??Rs,u=s??Ns,f=n??vn;return a.jsxs(Is,{ref:l,children:[a.jsx(i,{children:e}),a.jsx(u,{children:o}),a.jsx(f,{children:t})]})}),xp=d.forwardRef(({level:e,headerText:t,content:o,acceptButtonVariant:n,acceptButtonText:r,onAccept:s},l)=>{const i=d.useMemo(()=>{if(e==="error")return{iconId:"ExclamationCircle",color:"red"};if(e==="warn")return{iconId:"Warning",color:"orange"};if(e==="success")return{iconId:"CheckCircle",color:"green"};if(e==="info")return{iconId:"InfoCircle",color:"blue"}},[e]),{setOpen:u}=He(),f=d.useCallback(()=>{s&&s(),u(!1)},[u,s]);return a.jsx(uo,{ref:l,header:a.jsxs(a.Fragment,{children:[!!i&&a.jsx(F,{iconId:i.iconId,color:i.color}),a.jsx(M,{variant:"h2",color:"dark",children:t})]}),content:o,footer:a.jsx(Ie,{onClick:f,variant:n??"primary",text:r??"Okay"})})}),[yp]=O(["modal"]),kp=d.forwardRef(({onConfirm:e,onCancel:t,headerText:o,confirmText:n,cancelText:r,content:s,confirmButtonVariant:l,cancelButtonVariant:i,confirmDisabled:u,headerIcon:f,headerIconColor:p,contentWrapper:g,cancelDisabled:h},x)=>{const{setOpen:b}=He(),y=d.useCallback(()=>{e(()=>b(!1))},[e,b]),v=d.useCallback(()=>{t&&t(),b(!1)},[t,b]);return a.jsx(uo,{ref:x,header:a.jsxs(a.Fragment,{children:[!!f&&a.jsx(F,{iconId:f,color:p??"black"}),a.jsx(M,{variant:"h2",color:"dark",children:o})]}),contentWrapper:g,content:s,footerWrapper:vp,footer:a.jsxs(a.Fragment,{children:[a.jsx(Ie,{text:r??"Cancel",onClick:v,disabled:h,variant:i??"borderless"}),a.jsx(Ie,{onClick:y,variant:l??"primary",text:n??"Confirm",disabled:u})]})})}),vp=m(vn)`
|
|
2254
|
+
column-gap: ${yp("footerGap")};
|
|
2255
|
+
`,wp=d.memo(({headerText:e})=>a.jsxs(a.Fragment,{children:[a.jsx(F,{iconId:"ExclamationCircle",color:"red",size:"lrg"}),a.jsx(M,{variant:"h2",color:"dark",children:e})]})),Cp=d.memo(({contentText:e,compareText:t,errorText:o})=>{const n=d.useCallback(s=>s.message&&s.message!==""?s.message:o??"That does not match.",[o]),r=d.useCallback(s=>s===t,[t]);return a.jsxs(Sp,{children:[a.jsx(M,{variant:"body",color:"dark",children:e}),a.jsx(pn,{name:"matchText",handleError:n,validate:r})]})}),Sp=m.div`
|
|
2166
2256
|
width: 288px;
|
|
2167
2257
|
display: flex;
|
|
2168
2258
|
align-items: flex-start;
|
|
2169
2259
|
justify-content: flex-start;
|
|
2170
2260
|
flex-direction: column;
|
|
2171
2261
|
row-gap: 8px;
|
|
2172
|
-
|
|
2262
|
+
`,$p=d.memo(({onSubmit:e})=>{const{setOpen:t}=He(),o=d.useCallback(()=>{t(!1)},[t]);return a.jsxs(a.Fragment,{children:[a.jsx(Ie,{type:"button",text:"Cancel",onClick:o,variant:"borderless"}),a.jsx(fn,{onSubmit:e,variant:"primary",text:"Delete"})]})}),jp={matchText:""},Tp=d.forwardRef(({compareText:e,headerText:t,contentText:o,errorText:n,onConfirm:r},s)=>{const{setOpen:l}=He(),i=d.useCallback((u,f)=>{r(u,()=>l(!1),f)},[r,l]);return a.jsx(Dp,{onSubmit:i,mode:"onChange",delayError:400,defaultValues:jp,children:a.jsx(uo,{ref:s,header:a.jsx(wp,{headerText:t}),content:a.jsx(Cp,{compareText:e,contentText:o,errorText:n}),footer:a.jsx($p,{onSubmit:i})})})}),Dp=m(gs)`
|
|
2173
2263
|
height: fit-content;
|
|
2174
2264
|
width: fit-content;
|
|
2175
|
-
`,
|
|
2176
|
-
background: ${
|
|
2265
|
+
`,Ep=({className:e,defaultValues:t,header:o,submitText:n,cancelText:r,onCancel:s,enabledIfClean:l,onSubmit:i,content:u,submitButtonVariant:f,cancelButtonVariant:p,variant:g="submit",ContentWrapper:h,...x},b)=>{const y=P.useForm({shouldUnregister:!0,defaultValues:t,...x,mode:g==="blur"?"onBlur":x.mode}),{setOpen:v}=He(),{setError:w,reset:k}=y,S=d.useCallback(j=>{i({data:j,closeModal:()=>v(!1),setError:w,resetForm:k})},[i,k,w,v]),$=d.useCallback(()=>{s==null||s(k),v(!1)},[s,k,v]),C=d.useCallback(j=>S(j),[S]),T=h??Ns;return a.jsx(P.FormProvider,{...y,children:a.jsxs(Is,{ref:b,as:"form",className:e,onSubmit:g==="blur"?void 0:y.handleSubmit(S),onBlur:g==="blur"?y.handleSubmit(S):void 0,children:[a.jsx(Rs,{children:o}),a.jsx(T,{children:u}),a.jsxs(vn,{children:[a.jsx(Ie,{text:r??"Cancel",onClick:$,type:"button",variant:p??"borderless"}),g!=="blur"&&a.jsx(fn,{onSubmit:C,variant:f??"primary",text:n??"Submit",enabledIfClean:l})]})]})})},Mp=pt(Ep),[zp]=O(["modal"]),Op={escapeKey:!0,outsidePress:!1,bubbles:!1};function Ip(e){const{type:t,open:o,defaultOpen:n,onOpenChange:r,children:s,initialFocus:l,...i}=e,u=t==="confirm"?kp:t==="status"?xp:t==="confirm-delete"?Tp:t==="form"?Mp:uo;return a.jsxs(qo,{dismissOptions:Op,open:o,defaultOpen:n,onOpenChange:r,children:[a.jsx(Xo,{initialFocus:l,OverlayStyles:Fs,trapFocus:!0,children:a.jsx(u,{...i})}),!!s&&s]})}const Rp=({children:e})=>a.jsx(Zo,{children:e}),Fs=E.css`
|
|
2266
|
+
background: ${zp("overlay-background")};
|
|
2177
2267
|
display: grid;
|
|
2178
2268
|
place-items: center;
|
|
2179
2269
|
z-index: 2;
|
|
2180
|
-
`,[Qe]=
|
|
2270
|
+
`,[Qe]=O(["named-section-header"]),As=m.div`
|
|
2181
2271
|
align-items: flex-start;
|
|
2182
2272
|
background-color: ${Qe("bg")};
|
|
2183
2273
|
border-bottom: ${Qe("border-width")} solid ${Qe("border-color")};
|
|
@@ -2188,11 +2278,11 @@
|
|
|
2188
2278
|
&.isCollapsed {
|
|
2189
2279
|
border-bottom-width: 0px;
|
|
2190
2280
|
}
|
|
2191
|
-
`,
|
|
2192
|
-
border-color: ${
|
|
2193
|
-
border-radius: ${
|
|
2281
|
+
`,Np=d.memo(({children:e})=>{const{setOpen:t,open:o}=Nt(),n=d.useCallback(r=>{r.stopPropagation(),t(!o)},[o,t]);return a.jsxs(As,{className:gt("header-wrapper",{isCollapsed:o}),children:[a.jsx(ee,{iconId:o?"CaretDown":"CaretUp",onClick:n,size:"xsm",color:"black"}),e]})}),[_e]=O(["named-section"]),Fp=e=>e.variant==="selectable",_s=e=>{const{variant:t,className:o,children:n,header:r,isCollapsible:s}=e,l=d.useRef(null),[i,u,f]=Fp(e)?[e.disabled,e.isSelected,e.onClick]:[e.disabled,!1,void 0],p=e.ContentWrapper??_p,g=d.useCallback(h=>{f&&l.current&&l.current.contains(h.target)&&f()},[f]);return a.jsx(E.ClassNames,{children:({cx:h})=>a.jsx(Ap,{"data-variant":t,className:h(o,{disabled:i,isSelected:u}),onClick:g,ref:l,children:s?a.jsxs(Jt,{defaultOpen:!0,children:[a.jsx(Np,{children:r}),a.jsx(Qt,{children:a.jsx(p,{children:n})})]}):a.jsxs(a.Fragment,{children:[a.jsx(As,{className:"header-wrapper",children:r}),a.jsx(p,{children:n})]})})})},Ap=m.div`
|
|
2282
|
+
border-color: ${_e("border-color")};
|
|
2283
|
+
border-radius: ${_e("border-radius")};
|
|
2194
2284
|
border-style: solid;
|
|
2195
|
-
border-width: ${
|
|
2285
|
+
border-width: ${_e("border-width")};
|
|
2196
2286
|
display: flex;
|
|
2197
2287
|
flex-direction: column;
|
|
2198
2288
|
width: 100%;
|
|
@@ -2202,19 +2292,19 @@
|
|
|
2202
2292
|
}
|
|
2203
2293
|
&[data-variant="selectable"] {
|
|
2204
2294
|
&.isSelected {
|
|
2205
|
-
outline-color: ${
|
|
2206
|
-
outline-width: ${
|
|
2207
|
-
outline-offset: calc(-1.5 * ${
|
|
2295
|
+
outline-color: ${_e("selected-border-color")};
|
|
2296
|
+
outline-width: ${_e("selected-border-width")};
|
|
2297
|
+
outline-offset: calc(-1.5 * ${_e("selected-border-width")});
|
|
2208
2298
|
}
|
|
2209
2299
|
cursor: pointer;
|
|
2210
2300
|
outline-color: transparent;
|
|
2211
|
-
outline-offset: calc(-1.5 * ${
|
|
2301
|
+
outline-offset: calc(-1.5 * ${_e("hover-border-width")});
|
|
2212
2302
|
outline-style: solid;
|
|
2213
|
-
outline-width: ${
|
|
2303
|
+
outline-width: ${_e("hover-border-width")};
|
|
2214
2304
|
|
|
2215
2305
|
&:hover {
|
|
2216
2306
|
opacity: 1;
|
|
2217
|
-
outline-color: ${
|
|
2307
|
+
outline-color: ${_e("selected-border-color")};
|
|
2218
2308
|
}
|
|
2219
2309
|
}
|
|
2220
2310
|
&[data-variant="scrollable"] {
|
|
@@ -2224,95 +2314,95 @@
|
|
|
2224
2314
|
top: 0;
|
|
2225
2315
|
}
|
|
2226
2316
|
}
|
|
2227
|
-
`,
|
|
2317
|
+
`,_p=m.div`
|
|
2228
2318
|
display: flex;
|
|
2229
2319
|
width: 100%;
|
|
2230
|
-
`,[
|
|
2320
|
+
`,[fo]=O(["named-section-header"]),Wp=d.memo(({name:e,description:t,prefix:o,suffix:n,children:r,...s})=>a.jsxs(Lp,{...s,className:t?"hasDesc":void 0,children:[a.jsxs(Bp,{children:[a.jsxs(Pp,{children:[o,a.jsx(M,{color:"dark",bold:!0,variant:"body",children:e}),n]}),!!t&&a.jsx(M,{color:"grey",variant:"small",children:t})]}),!!r&&a.jsx(Hp,{children:r})]})),Lp=m.div`
|
|
2231
2321
|
width: 100%;
|
|
2232
2322
|
display: flex;
|
|
2233
2323
|
align-items: center;
|
|
2234
|
-
column-gap: ${
|
|
2324
|
+
column-gap: ${fo("gap")};
|
|
2235
2325
|
justify-content: space-between;
|
|
2236
2326
|
&.hasDesc {
|
|
2237
2327
|
align-items: flex-start;
|
|
2238
2328
|
}
|
|
2239
|
-
`,
|
|
2329
|
+
`,Bp=m.div`
|
|
2240
2330
|
display: flex;
|
|
2241
2331
|
align-items: flex-start;
|
|
2242
2332
|
justify-content: center;
|
|
2243
2333
|
flex-direction: column;
|
|
2244
|
-
row-gap: ${
|
|
2245
|
-
|
|
2334
|
+
row-gap: ${fo("row-gap")};
|
|
2335
|
+
`,Pp=m.div`
|
|
2246
2336
|
display: flex;
|
|
2247
2337
|
align-items: center;
|
|
2248
2338
|
justify-content: flex-start;
|
|
2249
|
-
column-gap: ${
|
|
2250
|
-
`,
|
|
2339
|
+
column-gap: ${fo("row-gap")};
|
|
2340
|
+
`,Hp=m.div`
|
|
2251
2341
|
display: flex;
|
|
2252
2342
|
align-items: center;
|
|
2253
2343
|
justify-content: flex-end;
|
|
2254
|
-
row-gap: ${
|
|
2255
|
-
`,[
|
|
2344
|
+
row-gap: ${fo("row-gap")};
|
|
2345
|
+
`,[Yt]=O(["image-config-page-header"]),Vp=m.div`
|
|
2256
2346
|
align-items: center;
|
|
2257
|
-
background: ${
|
|
2347
|
+
background: ${Yt("bg")};
|
|
2258
2348
|
display: flex;
|
|
2259
|
-
gap: ${
|
|
2260
|
-
padding: 0 0 ${
|
|
2349
|
+
gap: ${Yt("gap")};
|
|
2350
|
+
padding: 0 0 ${Yt("padding-bottom")} 0;
|
|
2261
2351
|
width: 100%;
|
|
2262
|
-
`,
|
|
2352
|
+
`,Gp=m.div`
|
|
2263
2353
|
display: flex;
|
|
2264
2354
|
flex-direction: column;
|
|
2265
2355
|
flex: 1;
|
|
2266
|
-
gap: ${
|
|
2267
|
-
`,
|
|
2356
|
+
gap: ${Yt("title-gap")};
|
|
2357
|
+
`,Up=({action:e,description:t,title:o,...n})=>a.jsxs(Vp,{...n,children:[a.jsxs(Gp,{children:[a.jsx(M,{variant:"h1",children:o}),t&&a.jsx(M,{variant:"body",children:t})]}),e]}),Ws=d.createContext(null),Yp=()=>{const e=d.useContext(Ws);if(e===null)throw new Error("Unable to use SelectViewListContext outside of its provider.");return e},[we]=O(["radio-button"]),Kp=d.forwardRef(({checked:e,onChange:t,...o},n)=>a.jsx(qp,{onClick:t,ref:n,readOnly:!0,type:"radio",checked:!!e,...o})),qp=m.input`
|
|
2268
2358
|
appearance: none;
|
|
2269
2359
|
-webkit-appearance: none;
|
|
2270
2360
|
margin: 0;
|
|
2271
|
-
background-color: ${
|
|
2361
|
+
background-color: ${we("background-color")};
|
|
2272
2362
|
appearance: none;
|
|
2273
|
-
width: ${
|
|
2274
|
-
height: ${
|
|
2275
|
-
border: ${
|
|
2363
|
+
width: ${we("size")};
|
|
2364
|
+
height: ${we("size")};
|
|
2365
|
+
border: ${we("border-width")} solid ${we("border-color")};
|
|
2276
2366
|
border-radius: 50%;
|
|
2277
2367
|
display: grid;
|
|
2278
2368
|
place-content: center;
|
|
2279
2369
|
::before {
|
|
2280
2370
|
content: "";
|
|
2281
|
-
width: ${
|
|
2282
|
-
height: ${
|
|
2371
|
+
width: ${we("check-size")};
|
|
2372
|
+
height: ${we("check-size")};
|
|
2283
2373
|
border-radius: 50%;
|
|
2284
2374
|
transform: scale(0);
|
|
2285
2375
|
transition: transform 0.125s ease-in-out;
|
|
2286
|
-
background-color: ${
|
|
2376
|
+
background-color: ${we("border-color-checked")};
|
|
2287
2377
|
}
|
|
2288
2378
|
:checked::before {
|
|
2289
2379
|
transform: scale(1);
|
|
2290
2380
|
}
|
|
2291
2381
|
:checked:not(:disabled) {
|
|
2292
|
-
border-color: ${
|
|
2382
|
+
border-color: ${we("border-color-checked")};
|
|
2293
2383
|
}
|
|
2294
2384
|
:disabled {
|
|
2295
2385
|
cursor: not-allowed;
|
|
2296
2386
|
::before {
|
|
2297
|
-
background-color: ${
|
|
2387
|
+
background-color: ${we("border-color")};
|
|
2298
2388
|
}
|
|
2299
|
-
background-color: ${
|
|
2389
|
+
background-color: ${we("background-color-disabled")};
|
|
2300
2390
|
}
|
|
2301
|
-
`;function
|
|
2391
|
+
`;function Zp(e){if(e=typeof e=="number"?e:parseInt(e),e===0)return"0.00 B";const t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(2)+" "+" KMGTP".charAt(t)+"B"}const Po=new IntersectionObserver(([e])=>{const t=e.boundingClientRect.top-e.intersectionRect.top<0,o=e.boundingClientRect.bottom-e.intersectionRect.bottom>0;e.target.classList.toggle("isStuckTop",t),e.target.classList.toggle("isStuckBottom",o)},{threshold:[1]}),Xp=(e,t)=>{if(e==="\\"||e==="/")return"/";if(e.length<=1)return e;const n=e.replace(/\\/g,"/").split(/[/\\]+/);return t!==!1&&n[n.length-1]===""&&n.pop(),n.join("/")},[re]=O(["select-view-list"]),Ls=d.memo(({id:e,name:t,icon:o,onListItemAction:n,isSelectDisabled:r})=>{const{selected:s,viewing:l}=Yp(),i=d.useRef(null),u=d.useRef(null),f=d.useRef(!1),p=s===e,g=l===e;d.useEffect(()=>{u.current&&(p?(Po.observe(u.current),f.current=!0):f.current&&(f.current=!1,Po.unobserve(u.current)))},[p]);const h=d.useCallback(()=>{n==null||n(e,"select")},[n,e]),x=d.useCallback(b=>{i.current&&i.current.contains(b.target)||n==null||n(e,"view")},[e,n]);return a.jsx(E.ClassNames,{children:({cx:b})=>a.jsx(Jp,{ref:u,className:b({isSelected:p}),onClick:x,children:a.jsxs(Qp,{className:b({isViewing:g}),children:[a.jsx(Kp,{ref:i,checked:p,disabled:r,onChange:h}),a.jsxs(eg,{color:"dark",bold:p,variant:"body",children:[t,o]}),a.jsx(F,{iconId:"Right",color:"blue",size:"sm"})]})})})}),Jp=m.div`
|
|
2302
2392
|
width: 100%;
|
|
2303
2393
|
display: flex;
|
|
2304
2394
|
height: auto;
|
|
2305
2395
|
flex-shrink: 0;
|
|
2306
2396
|
align-items: center;
|
|
2307
2397
|
justify-content: flex-start;
|
|
2308
|
-
border-bottom: ${
|
|
2398
|
+
border-bottom: ${re("border-width")} solid ${re("border-color")};
|
|
2309
2399
|
|
|
2310
2400
|
&:first-of-type {
|
|
2311
|
-
border-top-color: ${
|
|
2401
|
+
border-top-color: ${re("border-color")};
|
|
2312
2402
|
}
|
|
2313
2403
|
|
|
2314
2404
|
:not(:first-of-type):not(.isStuckBottom):has(div.isViewing) {
|
|
2315
|
-
border-top-color: ${
|
|
2405
|
+
border-top-color: ${re("background-color-viewing")};
|
|
2316
2406
|
}
|
|
2317
2407
|
|
|
2318
2408
|
&.isSelected {
|
|
@@ -2323,38 +2413,38 @@
|
|
|
2323
2413
|
|
|
2324
2414
|
&.isStuckBottom {
|
|
2325
2415
|
box-shadow: 0px -6px 5px 0px rgba(0, 0, 0, 0.04);
|
|
2326
|
-
border-top: ${
|
|
2327
|
-
border-top-color: ${
|
|
2416
|
+
border-top: ${re("border-width")} solid ${re("background-color")};
|
|
2417
|
+
border-top-color: ${re("border-color")};
|
|
2328
2418
|
}
|
|
2329
2419
|
|
|
2330
2420
|
&.isStuckTop {
|
|
2331
2421
|
box-shadow: 0px 6px 5px 0px rgba(0, 0, 0, 0.04);
|
|
2332
2422
|
}
|
|
2333
|
-
`,
|
|
2423
|
+
`,Qp=m.div`
|
|
2334
2424
|
width: 100%;
|
|
2335
2425
|
display: flex;
|
|
2336
2426
|
flex-shrink: 0;
|
|
2337
2427
|
align-items: center;
|
|
2338
2428
|
justify-content: flex-start;
|
|
2339
|
-
height: ${
|
|
2340
|
-
padding-left: ${
|
|
2341
|
-
padding-right: ${
|
|
2342
|
-
background-color: ${
|
|
2429
|
+
height: ${re("item-height")};
|
|
2430
|
+
padding-left: ${re("padding-left")};
|
|
2431
|
+
padding-right: ${re("padding-right")};
|
|
2432
|
+
background-color: ${re("background-color")};
|
|
2343
2433
|
transition: background 0.125s ease-in-out;
|
|
2344
2434
|
&.isViewing {
|
|
2345
|
-
background-color: ${
|
|
2435
|
+
background-color: ${re("background-color-viewing")};
|
|
2346
2436
|
}
|
|
2347
|
-
`,
|
|
2437
|
+
`,eg=m(M)`
|
|
2348
2438
|
flex: 1;
|
|
2349
2439
|
overflow: hidden;
|
|
2350
2440
|
text-overflow: ellipsis;
|
|
2351
2441
|
white-space: nowrap;
|
|
2352
|
-
padding-left: ${
|
|
2353
|
-
padding-right: ${
|
|
2354
|
-
gap: ${
|
|
2442
|
+
padding-left: ${re("padding-left")};
|
|
2443
|
+
padding-right: ${re("padding-right")};
|
|
2444
|
+
gap: ${re("gap")};
|
|
2355
2445
|
align-items: center;
|
|
2356
2446
|
display: flex;
|
|
2357
|
-
`,
|
|
2447
|
+
`,tg=({className:e,dp:t,emptyState:o,firstChild:n,lastChild:r,onListItemAction:s,selected:l,viewing:i})=>{const u=d.useMemo(()=>({selected:l,viewing:i}),[l,i]);return a.jsx(Ws.Provider,{value:u,children:a.jsx(og,{className:e,dataProvider:t,emptyState:o,firstChild:n,ItemTemplate:Ls,lastChild:r,onListItemAction:s})})},og=m(xn)`
|
|
2358
2448
|
height: 100%;
|
|
2359
2449
|
width: 100%;
|
|
2360
2450
|
align-items: flex-start;
|
|
@@ -2370,98 +2460,99 @@
|
|
|
2370
2460
|
::-webkit-scrollbar-thumb {
|
|
2371
2461
|
border-left: 3px solid transparent;
|
|
2372
2462
|
}
|
|
2373
|
-
`,
|
|
2463
|
+
`,Bs=d.createContext(!1),ng=()=>d.useContext(Bs),rg=d.memo(({title:e,disabled:t,onToggleShowSelected:o,t:n})=>a.jsxs(sg,{children:[a.jsx(M,{variant:"h2",color:"dark",children:e}),a.jsxs(ig,{children:[a.jsx(M,{variant:"small",color:"grey",children:(n==null?void 0:n("selectedOnly"))??"MISSING T FUNC"}),a.jsx(no,{disabled:t,onChange:o})]})]})),sg=m.div`
|
|
2374
2464
|
display: flex;
|
|
2375
2465
|
align-items: center;
|
|
2376
2466
|
width: 100%;
|
|
2377
2467
|
justify-content: space-between;
|
|
2378
2468
|
gap: ${c("spacing-8")};
|
|
2379
|
-
`,
|
|
2469
|
+
`,ig=m.div`
|
|
2380
2470
|
display: flex;
|
|
2381
2471
|
align-items: center;
|
|
2382
2472
|
gap: ${c("spacing-4")};
|
|
2383
|
-
`,
|
|
2473
|
+
`,ag=d.memo(e=>{const{selected:t}=nt(),o=ng(),n=t.includes(e.id);return o&&!n?null:a.jsx(Ds,{...e})}),lg=m(_s)`
|
|
2384
2474
|
overflow: hidden;
|
|
2385
|
-
`,
|
|
2475
|
+
`,cg=m.div`
|
|
2386
2476
|
overflow-x: hidden;
|
|
2387
2477
|
overflow-y: auto;
|
|
2388
|
-
`,
|
|
2478
|
+
`,dg=V.kosComponent(({defaultShowSelected:e,disabled:t,title:o,selected:n,onSelect:r,emptyMessage:s,dataProvider:l,onSelectAll:i,t:u})=>{const[f,p]=d.useState(e??!1),g=d.useRef(null),h=d.useCallback(b=>{p(b)},[]);d.useEffect(()=>{const b=l;b&&b.updateContextValue&&(b==null||b.updateContextValue("isOnlySelectedVisible",f))},[l,f]),d.useEffect(()=>{const b=l;b&&b.updateContextValue&&(b==null||b.updateContextValue("selected",n))},[l,n]),d.useEffect(()=>{g.current&&n&&(n.length&&n.length!==(l==null?void 0:l.items.length)?g.current.indeterminate!==!0&&(l!=null&&l.items.length)&&(g.current.indeterminate=!0):g.current.indeterminate===!0&&(g.current.indeterminate=!1))},[l==null?void 0:l.items,n]);const x=d.useCallback(()=>{i&&i(n&&n.length>0?"deselect":"select")},[i,n]);return a.jsx(Bs.Provider,{value:f,children:a.jsx(lg,{className:"",variant:"display",header:a.jsx(rg,{title:o,disabled:t,t:u,onToggleShowSelected:h}),ContentWrapper:cg,children:a.jsxs(ug,{children:[!!i&&!!(l!=null&&l.items.length)&&a.jsxs(_t,{children:[a.jsx(lo,{children:a.jsx(ht,{ref:g,disabled:t,checked:!!n&&!!n.length&&n.length===l.items.length,onChange:x})}),a.jsx(co,{children:a.jsx(M,{bold:!0,variant:"body",children:(u==null?void 0:u("selectAll"))??"MISSING T FUNC"})})]}),a.jsx(ao,{disabled:t,selected:n,isSingleSelect:!1,onSelect:r,emptyState:s?a.jsx(fg,{children:a.jsx(M,{variant:"body",color:"grey",children:s})}):void 0,ItemTemplate:ag,dataProvider:l})]})})})}),ug=m.div`
|
|
2389
2479
|
width: 100%;
|
|
2390
2480
|
display: flex;
|
|
2391
2481
|
flex-direction: column;
|
|
2392
2482
|
align-items: flex-start;
|
|
2393
2483
|
justify-content: flex-start;
|
|
2394
|
-
`,
|
|
2484
|
+
`,fg=m.div`
|
|
2395
2485
|
width: 100%;
|
|
2396
2486
|
display: flex;
|
|
2397
2487
|
align-items: center;
|
|
2398
2488
|
justify-content: center;
|
|
2399
2489
|
padding: ${c("spacing-12")} ${c("spacing-20")};
|
|
2400
|
-
`;class
|
|
2401
|
-
${`${
|
|
2402
|
-
${`${
|
|
2403
|
-
${`${
|
|
2490
|
+
`;class pg extends bn{constructor(o,n,r,s){super(o,n,r,{...s,isOnlySelectedVisible:(s==null?void 0:s.isOnlySelectedVisible)??!1,selected:(s==null?void 0:s.selected)??[]});J(this,"itemMapper");J(this,"observableItems");this.itemMapper=r,this.observableItems=Q.observable.map(new Map)}get items(){if(!this.initialized||this.version<0)return[];const o=this.resolvedItems,n=[...new Set(o)],r=u=>this.itemMapper(u,this.context),s=u=>this.filterByInputItem(u,this.context),l=n.filter(s.bind(this)).filter(this.context.get("isOnlySelectedVisible")===!0?u=>(this.context.get("selected")??[]).includes(u.id):()=>!0).sort(this.sortByInputItem.bind(this)).map(r);return Array.from(this.observableItems.keys()).filter(u=>!l.find(f=>f.id===u)).forEach(u=>{V.kosAction(()=>{this.observableItems.delete(u)})}),l.reduce((u,f)=>{if(!u.has(f.id))V.kosAction(()=>{u.set(f.id,f)});else{const p=u.get(f.id);p&&V.kosAction(()=>{const g=Object.assign(p,f);u.set(f.id,g)})}return u},this.observableItems),l.map(u=>this.observableItems.get(u.id))}}const[jo,gg]=O(["option","select"]),hg=({trigger:e,onSelection:t,children:o})=>a.jsx(bg,{Reference:e,onSelect:t,menuPlacement:"bottom-start",children:o}),mg=m(ut)`
|
|
2491
|
+
${`${jo("bg-color",!0)}: ${c("color-black")}`};
|
|
2492
|
+
${`${jo("color",!0)}: ${c("color-white")}`};
|
|
2493
|
+
${`${jo("bg-color-active",!0)}: ${c("color-grey70")}`};
|
|
2404
2494
|
gap: 0px;
|
|
2405
2495
|
cursor: pointer;
|
|
2406
|
-
`,
|
|
2407
|
-
${`${
|
|
2496
|
+
`,bg=m(bt)`
|
|
2497
|
+
${`${gg("border-color",!0)}: ${c("color-black")}`};
|
|
2408
2498
|
z-index: 15;
|
|
2409
|
-
`,
|
|
2499
|
+
`,xg=m.div`
|
|
2410
2500
|
cursor: default;
|
|
2411
2501
|
border-bottom: 0.5px solid ${c("color-grey60")};
|
|
2412
2502
|
pointer-events: none;
|
|
2413
|
-
`,[
|
|
2414
|
-
width: 100%;
|
|
2415
|
-
display: flex;
|
|
2503
|
+
`,[Ho]=O(["shell-menu"]),yg=({className:e,left:t,right:o})=>a.jsxs(kg,{className:e,children:[a.jsx(Un,{children:t}),!!o&&a.jsx(Un,{children:o})]}),kg=m.div`
|
|
2416
2504
|
align-items: center;
|
|
2505
|
+
column-gap: ${Ho("section-gap")};
|
|
2506
|
+
display: flex;
|
|
2417
2507
|
height: 100%;
|
|
2418
2508
|
justify-content: space-between;
|
|
2419
|
-
padding: 0px ${
|
|
2420
|
-
|
|
2421
|
-
`,
|
|
2422
|
-
display: flex;
|
|
2509
|
+
padding: 0px ${Ho("padding-x")};
|
|
2510
|
+
width: 100%;
|
|
2511
|
+
`,Un=m.div`
|
|
2423
2512
|
align-items: center;
|
|
2513
|
+
column-gap: ${Ho("link-gap")};
|
|
2514
|
+
display: flex;
|
|
2515
|
+
height: 100%;
|
|
2424
2516
|
justify-content: flex-start;
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
padding: ${Rn("link-padding-y")} ${Rn("link-padding-x")};
|
|
2517
|
+
`,[Yn]=O(["shell-menu"]),vg=d.memo(({text:e,onClick:t,isActive:o})=>a.jsx(wg,{onClick:t,variant:"body",color:"light",bold:o,children:e})),wg=m(M)`
|
|
2518
|
+
padding: ${Yn("link-padding-y")} ${Yn("link-padding-x")};
|
|
2428
2519
|
line-height: unset;
|
|
2429
2520
|
cursor: pointer;
|
|
2430
|
-
`,[
|
|
2521
|
+
`,[We]=O(["ingredient-card"]),Cg=d.memo(({id:e,name:t,trouble:o,ingredientName:n,assigned:r,onListItemAction:s,blocked:l,isSmall:i})=>{const{selected:u,toggleSelection:f}=nt(),{t:p}=V.useKosTranslation("dispenser"),g=d.useMemo(()=>u.includes(e),[u,e]),h=d.useCallback(()=>{s&&s(e,"delete")},[e,s]),x=d.useCallback(y=>{s&&s(e,y)},[e,s]),b=d.useCallback(()=>{f(e)},[e,f]);return a.jsx(E.ClassNames,{children:({cx:y})=>a.jsxs(Sg,{className:y("holder-list-item",{isSelected:g,isSmall:i}),onClick:b,children:[a.jsxs($g,{children:[a.jsxs(jg,{children:[a.jsx(M,{variant:i?"small":"body",color:"dark",children:t}),!!o&&a.jsx(so,{content:o,children:a.jsx(F,{iconId:"ExclamationCircle",color:"red",size:i?"xsm":"sm"})})]}),!!n&&a.jsxs(Tg,{children:[a.jsx(ee,{iconId:"DeleteOutlined",color:"blue",size:i?"xsm":"sm",onClick:h,disabled:!r}),a.jsxs(bt,{Reference:a.jsx(ee,{iconId:"Ellipsis",color:"black",size:i?"xsm":"sm"}),onSelect:x,children:[a.jsx(ut,{optionKey:"remove",label:p("holder.removeOption"),disableSelectionStyle:!0,disabled:!r}),a.jsx(ut,{optionKey:"block",disableSelectionStyle:!0,disabled:!r,label:p(`holder.${l?"unblockOption":"blockOption"}`)})]})]})]}),a.jsx(Dg,{className:y({isIngredientLess:n===void 0}),children:n?a.jsx(M,{color:"dark",variant:i?"small":"body",bold:!0,children:n}):a.jsx(Ie,{variant:i?"borderless-small":"borderless",text:p("holder.assignButton"),icon:"Plus"})})]})})}),Sg=m.div`
|
|
2431
2522
|
width: 100%;
|
|
2432
2523
|
height: 100%;
|
|
2433
|
-
border: ${
|
|
2524
|
+
border: ${We("border")} solid ${We("border-color")};
|
|
2434
2525
|
transition: border 0.125s ease-in-out;
|
|
2435
|
-
border-radius: ${
|
|
2436
|
-
padding: ${
|
|
2526
|
+
border-radius: ${We("border-radius")};
|
|
2527
|
+
padding: ${We("padding")};
|
|
2437
2528
|
display: flex;
|
|
2438
2529
|
flex-direction: column;
|
|
2439
2530
|
align-items: flex-start;
|
|
2440
2531
|
justify-content: flex-start;
|
|
2441
2532
|
cursor: pointer;
|
|
2442
2533
|
&.isSmall {
|
|
2443
|
-
padding: ${
|
|
2534
|
+
padding: ${We("padding-small")};
|
|
2444
2535
|
}
|
|
2445
2536
|
&.isSelected {
|
|
2446
|
-
border-color: ${
|
|
2537
|
+
border-color: ${We("border-color-selected")};
|
|
2447
2538
|
}
|
|
2448
|
-
|
|
2539
|
+
`,$g=m.div`
|
|
2449
2540
|
width: 100%;
|
|
2450
2541
|
display: flex;
|
|
2451
2542
|
align-items: center;
|
|
2452
2543
|
justify-content: flex-start;
|
|
2453
|
-
column-gap: ${
|
|
2454
|
-
`,
|
|
2544
|
+
column-gap: ${We("column-gap")};
|
|
2545
|
+
`,jg=m.div`
|
|
2455
2546
|
flex: 1;
|
|
2456
2547
|
display: flex;
|
|
2457
2548
|
align-items: center;
|
|
2458
2549
|
justify-content: flex-start;
|
|
2459
|
-
column-gap: ${
|
|
2460
|
-
`,
|
|
2550
|
+
column-gap: ${We("column-gap")};
|
|
2551
|
+
`,Tg=m.div`
|
|
2461
2552
|
display: flex;
|
|
2462
2553
|
align-items: center;
|
|
2463
|
-
column-gap: ${
|
|
2464
|
-
`,
|
|
2554
|
+
column-gap: ${We("column-gap")};
|
|
2555
|
+
`,Dg=m.div`
|
|
2465
2556
|
width: 100%;
|
|
2466
2557
|
display: flex;
|
|
2467
2558
|
align-items: center;
|
|
@@ -2470,25 +2561,25 @@
|
|
|
2470
2561
|
&.isIngredientLess {
|
|
2471
2562
|
justify-content: center;
|
|
2472
2563
|
}
|
|
2473
|
-
`,
|
|
2564
|
+
`,Eg=["settings","devices","tools","performance"],Mg=["viewBrowse","manage","configure","troubleshoot","store","main"],zg=Eg.map(e=>Mg.map(t=>({start:e,end:t}))).flatMap(e=>e),[me,Ps]=O(["branded-header","icon"]),Og=m.div`
|
|
2474
2565
|
width: 100%;
|
|
2475
2566
|
display: flex;
|
|
2476
2567
|
flex-direction: column;
|
|
2477
2568
|
align-items: flex-start;
|
|
2478
2569
|
justify-content: flex-start;
|
|
2479
|
-
border-bottom: ${
|
|
2480
|
-
`,
|
|
2570
|
+
border-bottom: ${me("border-bottom-size")} solid ${me("border-bottom-color")};
|
|
2571
|
+
`,Ig=m.div`
|
|
2481
2572
|
width: 100%;
|
|
2482
2573
|
display: flex;
|
|
2483
2574
|
align-items: center;
|
|
2484
2575
|
justify-content: flex-start;
|
|
2485
2576
|
max-height: 52px;
|
|
2486
|
-
`;
|
|
2577
|
+
`;m.div``;const Rg=m.div`
|
|
2487
2578
|
display: flex;
|
|
2488
2579
|
flex: 1;
|
|
2489
2580
|
gap: 16px;
|
|
2490
2581
|
padding: 12px 20px 12px 16px;
|
|
2491
|
-
`,
|
|
2582
|
+
`,Ng=m.div`
|
|
2492
2583
|
flex: 1;
|
|
2493
2584
|
display: flex;
|
|
2494
2585
|
align-items: center;
|
|
@@ -2498,39 +2589,39 @@
|
|
|
2498
2589
|
/* &.hasDescription {
|
|
2499
2590
|
align-items: flex-start;
|
|
2500
2591
|
} */
|
|
2501
|
-
`,
|
|
2592
|
+
`,Fg=m.div`
|
|
2502
2593
|
flex: 1;
|
|
2503
2594
|
overflow: hidden;
|
|
2504
2595
|
display: flex;
|
|
2505
2596
|
flex-direction: column;
|
|
2506
2597
|
align-items: flex-start;
|
|
2507
2598
|
justify-content: flex-start;
|
|
2508
|
-
row-gap: ${
|
|
2509
|
-
`;
|
|
2599
|
+
row-gap: ${me("text-wrapper-gap")};
|
|
2600
|
+
`;m.img`
|
|
2510
2601
|
height: 100%;
|
|
2511
|
-
`;const
|
|
2512
|
-
${
|
|
2602
|
+
`;const Hs=E.css`
|
|
2603
|
+
${zg.map(({start:e,end:t})=>`&[data-gradient="${e}-${t}"] {
|
|
2513
2604
|
background: linear-gradient(
|
|
2514
2605
|
90deg,
|
|
2515
|
-
${
|
|
2516
|
-
${
|
|
2606
|
+
${me(`startColor-${e}`)} 0%,
|
|
2607
|
+
${me(`endColor-${t}`)} 100%
|
|
2517
2608
|
);
|
|
2518
2609
|
}`)}
|
|
2519
|
-
`,
|
|
2610
|
+
`,Ag=m.div`
|
|
2520
2611
|
background-color: ${e=>e.color};
|
|
2521
|
-
height: ${
|
|
2522
|
-
width: ${
|
|
2523
|
-
border-radius: ${
|
|
2612
|
+
height: ${me("badge-size")};
|
|
2613
|
+
width: ${me("badge-size")};
|
|
2614
|
+
border-radius: ${me("badge-radius")};
|
|
2524
2615
|
position: relative;
|
|
2525
|
-
${`${
|
|
2526
|
-
`;
|
|
2527
|
-
height: ${
|
|
2528
|
-
width: ${
|
|
2529
|
-
border-radius: ${
|
|
2616
|
+
${`${Ps("size-xxlrg",!0)}: 52px`};
|
|
2617
|
+
`;m.div`
|
|
2618
|
+
height: ${me("badge-size")};
|
|
2619
|
+
width: ${me("badge-size")};
|
|
2620
|
+
border-radius: ${me("badge-radius")};
|
|
2530
2621
|
position: relative;
|
|
2531
|
-
${`${
|
|
2532
|
-
${
|
|
2533
|
-
`;const
|
|
2622
|
+
${`${Ps("size-xxlrg",!0)}: calc(100% - 2px)`};
|
|
2623
|
+
${Hs}
|
|
2624
|
+
`;const _g=m.div`
|
|
2534
2625
|
width: 100%;
|
|
2535
2626
|
height: 100%;
|
|
2536
2627
|
position: absolute;
|
|
@@ -2540,16 +2631,16 @@
|
|
|
2540
2631
|
align-items: center;
|
|
2541
2632
|
justify-content: center;
|
|
2542
2633
|
z-index: 2;
|
|
2543
|
-
`;
|
|
2634
|
+
`;m.div`
|
|
2544
2635
|
width: 100%;
|
|
2545
2636
|
display: flex;
|
|
2546
2637
|
align-items: center;
|
|
2547
2638
|
justify-content: center;
|
|
2548
2639
|
position: relative;
|
|
2549
|
-
height: ${
|
|
2640
|
+
height: ${me("line-height")};
|
|
2550
2641
|
overflow: hidden;
|
|
2551
|
-
${
|
|
2552
|
-
`;const
|
|
2642
|
+
${Hs}
|
|
2643
|
+
`;const Wg=m.div`
|
|
2553
2644
|
width: 100%;
|
|
2554
2645
|
height: 100%;
|
|
2555
2646
|
position: absolute;
|
|
@@ -2558,13 +2649,13 @@
|
|
|
2558
2649
|
z-index: 1;
|
|
2559
2650
|
background-color: ${c("color-grey60")};
|
|
2560
2651
|
opacity: 0.5;
|
|
2561
|
-
`,
|
|
2652
|
+
`,Lg=m(M)`
|
|
2562
2653
|
display: -webkit-box;
|
|
2563
2654
|
-webkit-line-clamp: 2;
|
|
2564
2655
|
-webkit-box-orient: vertical;
|
|
2565
2656
|
overflow: hidden;
|
|
2566
2657
|
text-overflow: ellipsis;
|
|
2567
|
-
`,
|
|
2658
|
+
`,Bg=e=>a.jsx(Lg,{...e,variant:"body",color:"dark"}),Pg=d.memo(({color:e,title:t,description:o,icon:n,Action:r,isOffline:s})=>a.jsx(E.ClassNames,{children:({cx:l})=>a.jsx(Og,{children:a.jsxs(Ig,{children:[a.jsxs(Ag,{color:e,children:[a.jsx(_g,{children:n&&a.jsx(F,{iconId:n,size:"xxlrg",color:"white"})}),!!s&&a.jsx(Wg,{})]}),a.jsxs(Rg,{children:[a.jsx(Ng,{className:l({hasDescription:!!o}),children:a.jsxs(Fg,{children:[a.jsx(M,{variant:"h1",children:t}),!!o&&a.jsx(Bg,{children:o})]})}),!!r&&a.jsx(r,{})]})]})})})),Vs=d.createContext(null),Gs=V.kosComponent(({children:e,t,isSortable:o,onListItemAction:n})=>{const r=d.useMemo(()=>({t,isSortable:!!o,onListItemAction:n}),[o,t,n]);return a.jsx(Vs.Provider,{value:r,children:e})}),wn=()=>{const e=d.useContext(Vs);if(e===null)throw new Error("TableContext must be used within a TableContextProvider");return e},[et]=O(["table"]),po=m.td`
|
|
2568
2659
|
padding: ${et("cell-padding-y")} ${et("cell-padding-x")};
|
|
2569
2660
|
background-color: ${et("background-color")};
|
|
2570
2661
|
color: ${et("cell-color")};
|
|
@@ -2573,79 +2664,79 @@
|
|
|
2573
2664
|
&.isSortable {
|
|
2574
2665
|
padding-right: ${et("cell-padding-right-sortable")};
|
|
2575
2666
|
}
|
|
2576
|
-
`,
|
|
2667
|
+
`,Cn=d.memo(({cell:e})=>{const{isSortable:t}=wn();return a.jsx(po,{className:t&&e.column.getCanSort()?"isSortable":void 0,children:ge.flexRender(e.column.columnDef.cell,e.getContext())},e.id)}),[Kn]=O(["table"]),ft=m.tr`
|
|
2577
2668
|
width: 100%;
|
|
2578
|
-
border-bottom: ${
|
|
2579
|
-
`,
|
|
2669
|
+
border-bottom: ${Kn("row-border-bottom-size")} solid ${Kn("border-color")};
|
|
2670
|
+
`,Hg=d.memo(({row:e,TdComponent:t})=>{const o=t??Cn;return a.jsx(ft,{children:e.getVisibleCells().map(n=>a.jsx(o,{cell:n},n.id))})}),[Vg]=O(["table"]),Gg=[],Ug=e=>e.id,Yg=V.kosComponent(({dataProvider:e,columns:t,getRowId:o,emptyState:n,isSortable:r,t:s,TdComponent:l,TrComponent:i,onListItemAction:u,renderEmptyAsStandalone:f,...p})=>{At(e);const[g,h]=d.useState([]),x=ge.useReactTable({columns:t,data:e?e==null?void 0:e.items:Gg,getCoreRowModel:ge.getCoreRowModel(),getSortedRowModel:r?ge.getSortedRowModel():void 0,getRowId:o??Ug,onSortingChange:r?h:void 0,state:{sorting:g}}),b=i??Hg,y=!x.getRowModel().rows.length;return y&&f?n??null:a.jsx(Gs,{onListItemAction:u,isSortable:r,t:s,children:a.jsxs(Kg,{...p,children:[a.jsx(qg,{children:x.getHeaderGroups().map(v=>a.jsx(ft,{children:v.headers.map(w=>a.jsx(d.Fragment,{children:ge.flexRender(w.column.columnDef.header,w.getContext())},w.id))},v.id))}),a.jsx(Zg,{children:y?a.jsx(ft,{children:a.jsx(po,{colSpan:t.length,children:n??null})}):x.getRowModel().rows.map(v=>a.jsx(b,{row:v,TdComponent:l??Cn},v.id))})]})})}),Kg=m.table`
|
|
2580
2671
|
width: 100%;
|
|
2581
2672
|
overflow: auto;
|
|
2582
2673
|
border-collapse: collapse;
|
|
2583
|
-
font-family: ${
|
|
2674
|
+
font-family: ${Vg("font-family")};
|
|
2584
2675
|
table-layout: fixed;
|
|
2585
|
-
`,
|
|
2676
|
+
`,qg=m.thead`
|
|
2586
2677
|
width: 100%;
|
|
2587
|
-
`,
|
|
2678
|
+
`,Zg=m.tbody`
|
|
2588
2679
|
width: 100%;
|
|
2589
|
-
`,[
|
|
2590
|
-
padding: ${
|
|
2591
|
-
background-color: ${
|
|
2680
|
+
`,[De]=O(["table"]),Xg=(e,t)=>e?e==="desc"?(t==null?void 0:t("table.sort",{direction:t==null?void 0:t("table.ascending")}))??"Click to sort ascending":(t==null?void 0:t("table.cancelSort"))??"Cancel sort":(t==null?void 0:t("table.sort",{direction:t==null?void 0:t("table.descending")}))??"Click to sort descending",Vo=d.memo(({width:e,isBlank:t,toggleSorting:o,id:n,sortValue:r,canSort:s})=>{const{isSortable:l,t:i}=wn(),u=d.useCallback(()=>{o()},[o]);return a.jsx(Jg,{className:gt({isSortable:l&&s,isSorted:r!==!1}),style:{width:e??"auto"},children:a.jsxs(Qg,{children:[!t&&((i==null?void 0:i(`table.header.${n}`))??n),l&&s&&a.jsx(so,{content:Xg(r,i),children:a.jsx(ee,{iconId:r?r==="asc"?"SortAscending":"SortDescending":"Sort",size:"sm",onClick:u,color:"grey"})})]})})}),Jg=m.th`
|
|
2681
|
+
padding: ${De("cell-padding-y")} ${De("cell-padding-x")};
|
|
2682
|
+
background-color: ${De("header-background-color")};
|
|
2592
2683
|
text-align: left;
|
|
2593
|
-
color: ${
|
|
2594
|
-
font-size: ${
|
|
2595
|
-
font-weight: ${
|
|
2684
|
+
color: ${De("head-color")};
|
|
2685
|
+
font-size: ${De("head-font-size")};
|
|
2686
|
+
font-weight: ${De("head-font-weight")};
|
|
2596
2687
|
&.isSortable {
|
|
2597
2688
|
transition: background 0.125s ease-in-out;
|
|
2598
|
-
padding-right: ${
|
|
2689
|
+
padding-right: ${De("cell-padding-right-sortable")};
|
|
2599
2690
|
cursor: pointer;
|
|
2600
2691
|
:hover {
|
|
2601
|
-
background-color: ${
|
|
2692
|
+
background-color: ${De("header-background-color-hover")};
|
|
2602
2693
|
}
|
|
2603
2694
|
}
|
|
2604
2695
|
&.isSorted {
|
|
2605
|
-
background-color: ${
|
|
2696
|
+
background-color: ${De("header-background-color-hover")};
|
|
2606
2697
|
}
|
|
2607
|
-
`,
|
|
2698
|
+
`,Qg=m.div`
|
|
2608
2699
|
display: flex;
|
|
2609
2700
|
align-items: center;
|
|
2610
2701
|
justify-content: space-between;
|
|
2611
|
-
column-gap: ${
|
|
2612
|
-
`,
|
|
2702
|
+
column-gap: ${De("head-gap-sortable")};
|
|
2703
|
+
`,eh=()=>{const e=ge.createColumnHelper();return{displayColumn:r=>s=>e.display({header:({column:l,header:i})=>{var u,f;return a.jsx(Vo,{id:i.id,canSort:l.getCanSort(),width:r!=null&&r.isVirtual?`${i.getSize()}px`:(u=l.columnDef.meta)==null?void 0:u.width,isBlank:(f=l.columnDef.meta)==null?void 0:f.isBlank,toggleSorting:l.toggleSorting,sortValue:l.getIsSorted()},i.id)},...s,meta:{...s.meta,width:"auto",...r}}),accessorColumn:r=>(s,l)=>e.accessor(s,{header:({column:i,header:u})=>{var f,p;return a.jsx(Vo,{id:u.id,canSort:i.getCanSort(),width:r!=null&&r.isVirtual?`${u.getSize()}px`:(f=i.columnDef.meta)==null?void 0:f.width,isBlank:(p=i.columnDef.meta)==null?void 0:p.isBlank,toggleSorting:i.toggleSorting,sortValue:i.getIsSorted()},u.id)},...l,meta:{...l.meta,width:"auto",...r}}),groupColumn:r=>s=>e.group({...s,meta:{...s.meta,width:"auto",...r}})}};function lt(e,t,o){let n=o.initialDeps??[],r;function s(){var l,i,u,f;let p;o.key&&((l=o.debug)!=null&&l.call(o))&&(p=Date.now());const g=e();if(!(g.length!==n.length||g.some((b,y)=>n[y]!==b)))return r;n=g;let x;if(o.key&&((i=o.debug)!=null&&i.call(o))&&(x=Date.now()),r=t(...g),o.key&&((u=o.debug)!=null&&u.call(o))){const b=Math.round((Date.now()-p)*100)/100,y=Math.round((Date.now()-x)*100)/100,v=y/16,w=(k,S)=>{for(k=String(k);k.length<S;)k=" "+k;return k};console.info(`%c⏱ ${w(y,5)} /${w(b,5)} ms`,`
|
|
2613
2704
|
font-size: .6rem;
|
|
2614
2705
|
font-weight: bold;
|
|
2615
|
-
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,o==null?void 0:o.key)}return(f=o==null?void 0:o.onChange)==null||f.call(o,r),r}return s.updateDeps=i=>{n=i},s}function Fn(e,t){if(e===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return e}const _h=(e,t)=>Math.abs(e-t)<1.01,Wh=(e,t,o)=>{let n;return function(...r){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,r),o)}},An=e=>{const{offsetWidth:t,offsetHeight:o}=e;return{width:t,height:o}},Lh=e=>e,Bh=e=>{const t=Math.max(e.startIndex-e.overscan,0),o=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let r=t;r<=o;r++)n.push(r);return n},Ph=(e,t)=>{const o=e.scrollElement;if(!o)return;const n=e.targetWindow;if(!n)return;const r=i=>{const{width:a,height:u}=i;t({width:Math.round(a),height:Math.round(u)})};if(r(An(o)),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(i=>{const a=()=>{const u=i[0];if(u!=null&&u.borderBoxSize){const f=u.borderBoxSize[0];if(f){r({width:f.inlineSize,height:f.blockSize});return}}r(An(o))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return s.observe(o,{box:"border-box"}),()=>{s.unobserve(o)}},_n={passive:!0},Wn=typeof window>"u"?!0:"onscrollend"in window,Hh=(e,t)=>{const o=e.scrollElement;if(!o)return;const n=e.targetWindow;if(!n)return;let r=0;const s=e.options.useScrollendEvent&&Wn?()=>{}:Wh(n,()=>{t(r,!1)},e.options.isScrollingResetDelay),i=g=>()=>{const{horizontal:h,isRtl:m}=e.options;r=h?o.scrollLeft*(m&&-1||1):o.scrollTop,s(),t(r,g)},a=i(!0),u=i(!1);u(),o.addEventListener("scroll",a,_n);const f=e.options.useScrollendEvent&&Wn;return f&&o.addEventListener("scrollend",u,_n),()=>{o.removeEventListener("scroll",a),f&&o.removeEventListener("scrollend",u)}},Vh=(e,t,o)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[o.options.horizontal?"inlineSize":"blockSize"])}return e[o.options.horizontal?"offsetWidth":"offsetHeight"]},Gh=(e,{adjustments:t=0,behavior:o},n)=>{var r,s;const i=e+t;(s=(r=n.scrollElement)==null?void 0:r.scrollTo)==null||s.call(r,{[n.options.horizontal?"left":"top"]:i,behavior:o})};class Yh{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let o=null;const n=()=>o||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:o=new this.targetWindow.ResizeObserver(r=>{r.forEach(s=>{const i=()=>{this._measureElement(s.target,s)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var r;(r=n())==null||r.disconnect(),o=null},observe:r=>{var s;return(s=n())==null?void 0:s.observe(r,{box:"border-box"})},unobserve:r=>{var s;return(s=n())==null?void 0:s.unobserve(r)}}})(),this.range=null,this.setOptions=o=>{Object.entries(o).forEach(([n,r])=>{typeof r>"u"&&delete o[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Lh,rangeExtractor:Bh,onChange:()=>{},measureElement:Vh,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...o}},this.notify=o=>{var n,r;(r=(n=this.options).onChange)==null||r.call(n,this,o)},this.maybeNotify=at(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),o=>{this.notify(o)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(o=>o()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((o=this.scrollElement)==null?void 0:o.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(o,n)=>{const r=new Map,s=new Map;for(let i=n-1;i>=0;i--){const a=o[i];if(r.has(a.lane))continue;const u=s.get(a.lane);if(u==null||a.end>u.end?s.set(a.lane,a):a.end<u.end&&r.set(a.lane,!0),r.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((i,a)=>i.end===a.end?i.index-a.index:i.end-a.end)[0]:void 0},this.getMeasurementOptions=at(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(o,n,r,s,i)=>(this.pendingMeasuredCacheIndexes=[],{count:o,paddingStart:n,scrollMargin:r,getItemKey:s,enabled:i}),{key:!1}),this.getMeasurements=at(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:o,paddingStart:n,scrollMargin:r,getItemKey:s,enabled:i},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,u);for(let g=u;g<o;g++){const h=s(g),m=this.options.lanes===1?f[g-1]:this.getFurthestMeasurement(f,g),y=m?m.end+this.options.gap:n+r,x=a.get(h),k=typeof x=="number"?x:this.options.estimateSize(g),v=y+k,w=m?m.lane:g%this.options.lanes;f[g]={index:g,start:y,size:k,end:v,key:h,lane:w}}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=at(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(o,n,r,s)=>this.range=o.length>0&&n>0?Uh({measurements:o,outerSize:n,scrollOffset:r,lanes:s}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=at(()=>{let o=null,n=null;const r=this.calculateRange();return r&&(o=r.startIndex,n=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,o,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,o,n]},(o,n,r,s,i)=>s===null||i===null?[]:o({startIndex:s,endIndex:i,overscan:n,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=o=>{const n=this.options.indexAttribute,r=o.getAttribute(n);return r?parseInt(r,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(o,n)=>{const r=this.indexFromElement(o),s=this.measurementsCache[r];if(!s)return;const i=s.key,a=this.elementsCache.get(i);a!==o&&(a&&this.observer.unobserve(a),this.observer.observe(o),this.elementsCache.set(i,o)),o.isConnected&&this.resizeItem(r,this.options.measureElement(o,n,this))},this.resizeItem=(o,n)=>{const r=this.measurementsCache[o];if(!r)return;const s=this.itemSizeCache.get(r.key)??r.size,i=n-s;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,i,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,n)),this.notify(!1))},this.measureElement=o=>{if(!o){this.elementsCache.forEach((n,r)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(r))});return}this._measureElement(o,void 0)},this.getVirtualItems=at(()=>[this.getVirtualIndexes(),this.getMeasurements()],(o,n)=>{const r=[];for(let s=0,i=o.length;s<i;s++){const a=o[s],u=n[a];r.push(u)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=o=>{const n=this.getMeasurements();if(n.length!==0)return Fn(n[Ms(0,n.length-1,r=>Fn(n[r]).start,o)])},this.getOffsetForAlignment=(o,n,r=0)=>{const s=this.getSize(),i=this.getScrollOffset();n==="auto"&&(n=o>=i+s?"end":"start"),n==="center"?o+=(r-s)/2:n==="end"&&(o-=s);const a=this.getTotalSize()+this.options.scrollMargin-s;return Math.max(Math.min(a,o),0)},this.getOffsetForIndex=(o,n="auto")=>{o=Math.max(0,Math.min(o,this.options.count-1));const r=this.measurementsCache[o];if(!r)return;const s=this.getSize(),i=this.getScrollOffset();if(n==="auto")if(r.end>=i+s-this.options.scrollPaddingEnd)n="end";else if(r.start<=i+this.options.scrollPaddingStart)n="start";else return[i,n];const a=n==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,n,r.size),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(o,{align:n="start",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(o,n),{adjustments:void 0,behavior:r})},this.scrollToIndex=(o,{align:n="auto",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),o=Math.max(0,Math.min(o,this.options.count-1));let s=0;const i=10,a=f=>{if(!this.targetWindow)return;const g=this.getOffsetForIndex(o,f);if(!g){console.warn("Failed to get offset for index:",o);return}const[h,m]=g;this._scrollToOffset(h,{adjustments:void 0,behavior:r}),this.targetWindow.requestAnimationFrame(()=>{const y=this.getScrollOffset(),x=this.getOffsetForIndex(o,m);if(!x){console.warn("Failed to get offset for index:",o);return}_h(x[0],y)||u(m)})},u=f=>{this.targetWindow&&(s++,s<i?this.targetWindow.requestAnimationFrame(()=>a(f)):console.warn(`Failed to scroll to index ${o} after ${i} attempts.`))};a(n)},this.scrollBy=(o,{behavior:n}={})=>{n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+o,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var o;const n=this.getMeasurements();let r;if(n.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((o=n[n.length-1])==null?void 0:o.end)??0;else{const s=Array(this.options.lanes).fill(null);let i=n.length-1;for(;i>=0&&s.some(a=>a===null);){const a=n[i];s[a.lane]===null&&(s[a.lane]=a.end),i--}r=Math.max(...s.filter(a=>a!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(o,{adjustments:n,behavior:r})=>{this.options.scrollToFn(o,{behavior:r,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const Ms=(e,t,o,n)=>{for(;e<=t;){const r=(e+t)/2|0,s=o(r);if(s<n)e=r+1;else if(s>n)t=r-1;else return r}return e>0?e-1:0};function Uh({measurements:e,outerSize:t,scrollOffset:o,lanes:n}){const r=e.length-1,s=u=>e[u].start;if(e.length<=n)return{startIndex:0,endIndex:r};let i=Ms(0,r,s,o),a=i;if(n===1)for(;a<r&&e[a].end<o+t;)a++;else if(n>1){const u=Array(n).fill(0);for(;a<r&&u.some(g=>g<o+t);){const g=e[a];u[g.lane]=g.end,a++}const f=Array(n).fill(o+t);for(;i>=0&&f.some(g=>g>=o);){const g=e[i];f[g.lane]=g.start,i--}i=Math.max(0,i-i%n),a=Math.min(r,a+(n-1-a%n))}return{startIndex:i,endIndex:a}}const Ln=typeof document<"u"?Vt.useLayoutEffect:Vt.useEffect;function Kh(e){const t=Vt.useReducer(()=>({}),{})[1],o={...e,onChange:(r,s)=>{var i;s?Un.flushSync(t):t(),(i=e.onChange)==null||i.call(e,r,s)}},[n]=Vt.useState(()=>new Yh(o));return n.setOptions(o),Ln(()=>n._didMount(),[]),Ln(()=>n._willUpdate()),n}function qh(e){return Kh({observeElementRect:Ph,observeElementOffset:Hh,scrollToFn:Gh,...e})}const[Is]=I(["table"]),Xh=[],Zh=e=>e.id,Jh=B.kosComponent(({dataProvider:e,columns:t,className:o,getRowId:n,emptyState:r,isSortable:s,t:i,TdComponent:a,TrComponent:u,onListItemAction:f,renderEmptyAsStandalone:g,...h})=>{Rt(e);const m=d.useRef(null),[y,x]=d.useState([]),k=ce.useReactTable({columns:t,data:e?e==null?void 0:e.items:Xh,getCoreRowModel:ce.getCoreRowModel(),getSortedRowModel:s?ce.getSortedRowModel():void 0,getRowId:n??Zh,onSortingChange:s?x:void 0,state:{sorting:y}}),v=!k.getRowModel().rows.length;return v&&g?r??null:l.jsx(zs,{onListItemAction:f,isSortable:s,t:i,children:l.jsx(tp,{className:o,ref:m,children:l.jsxs(op,{...h,children:[l.jsx(np,{children:k.getHeaderGroups().map(w=>l.jsx(ut,{style:{display:"flex"},children:w.headers.map(b=>l.jsx(d.Fragment,{children:ce.flexRender(b.column.columnDef.header,{...b.getContext(),style:{display:"flex",width:b.getSize()}})},b.id))},w.id))}),l.jsx(Qh,{isEmpty:v,numColumns:t.length,emptyState:r,table:k,tableContainerRef:m})]})})})}),Qh=B.kosComponent(({table:e,tableContainerRef:t,trClassName:o,isEmpty:n,emptyState:r,numColumns:s})=>{const{rows:i}=e.getRowModel(),a=qh({count:i.length,estimateSize:()=>33,getScrollElement:()=>t.current,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?u=>u==null?void 0:u.getBoundingClientRect().height:void 0,overscan:5});return l.jsx(rp,{style:{position:"relative",height:`${a.getTotalSize()}px`},children:n?l.jsx(ut,{children:l.jsx(lo,{colSpan:s,children:r??null})}):a.getVirtualItems().map(u=>{const f=i[u.index];return l.jsx(ep,{trClassName:o,row:f,virtualRow:u,rowVirtualizer:a},f.id)})})}),ep=B.kosComponent(({trClassName:e,row:t,virtualRow:o,rowVirtualizer:n})=>l.jsx(ut,{"data-index":o.index,ref:r=>n.measureElement(r),className:e,style:{display:"flex",position:"absolute",transform:`translateY(${o.start}px)`,width:"100%"},children:t.getVisibleCells().map(r=>l.jsx(lo,{style:{display:"flex",width:r.column.getSize()},children:ce.flexRender(r.column.columnDef.cell,r.getContext())},r.id))},t.id)),tp=p.div`
|
|
2706
|
+
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,o==null?void 0:o.key)}return(f=o==null?void 0:o.onChange)==null||f.call(o,r),r}return s.updateDeps=l=>{n=l},s}function qn(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const th=(e,t)=>Math.abs(e-t)<1.01,oh=(e,t,o)=>{let n;return function(...r){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,r),o)}},Zn=e=>{const{offsetWidth:t,offsetHeight:o}=e;return{width:t,height:o}},nh=e=>e,rh=e=>{const t=Math.max(e.startIndex-e.overscan,0),o=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let r=t;r<=o;r++)n.push(r);return n},sh=(e,t)=>{const o=e.scrollElement;if(!o)return;const n=e.targetWindow;if(!n)return;const r=l=>{const{width:i,height:u}=l;t({width:Math.round(i),height:Math.round(u)})};if(r(Zn(o)),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(l=>{const i=()=>{const u=l[0];if(u!=null&&u.borderBoxSize){const f=u.borderBoxSize[0];if(f){r({width:f.inlineSize,height:f.blockSize});return}}r(Zn(o))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return s.observe(o,{box:"border-box"}),()=>{s.unobserve(o)}},Xn={passive:!0},Jn=typeof window>"u"?!0:"onscrollend"in window,ih=(e,t)=>{const o=e.scrollElement;if(!o)return;const n=e.targetWindow;if(!n)return;let r=0;const s=e.options.useScrollendEvent&&Jn?()=>{}:oh(n,()=>{t(r,!1)},e.options.isScrollingResetDelay),l=p=>()=>{const{horizontal:g,isRtl:h}=e.options;r=g?o.scrollLeft*(h&&-1||1):o.scrollTop,s(),t(r,p)},i=l(!0),u=l(!1);u(),o.addEventListener("scroll",i,Xn);const f=e.options.useScrollendEvent&&Jn;return f&&o.addEventListener("scrollend",u,Xn),()=>{o.removeEventListener("scroll",i),f&&o.removeEventListener("scrollend",u)}},ah=(e,t,o)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[o.options.horizontal?"inlineSize":"blockSize"])}return e[o.options.horizontal?"offsetWidth":"offsetHeight"]},lh=(e,{adjustments:t=0,behavior:o},n)=>{var r,s;const l=e+t;(s=(r=n.scrollElement)==null?void 0:r.scrollTo)==null||s.call(r,{[n.options.horizontal?"left":"top"]:l,behavior:o})};class ch{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let o=null;const n=()=>o||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:o=new this.targetWindow.ResizeObserver(r=>{r.forEach(s=>{const l=()=>{this._measureElement(s.target,s)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var r;(r=n())==null||r.disconnect(),o=null},observe:r=>{var s;return(s=n())==null?void 0:s.observe(r,{box:"border-box"})},unobserve:r=>{var s;return(s=n())==null?void 0:s.unobserve(r)}}})(),this.range=null,this.setOptions=o=>{Object.entries(o).forEach(([n,r])=>{typeof r>"u"&&delete o[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nh,rangeExtractor:rh,onChange:()=>{},measureElement:ah,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...o}},this.notify=o=>{var n,r;(r=(n=this.options).onChange)==null||r.call(n,this,o)},this.maybeNotify=lt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),o=>{this.notify(o)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(o=>o()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((o=this.scrollElement)==null?void 0:o.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(o,n)=>{const r=new Map,s=new Map;for(let l=n-1;l>=0;l--){const i=o[l];if(r.has(i.lane))continue;const u=s.get(i.lane);if(u==null||i.end>u.end?s.set(i.lane,i):i.end<u.end&&r.set(i.lane,!0),r.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,i)=>l.end===i.end?l.index-i.index:l.end-i.end)[0]:void 0},this.getMeasurementOptions=lt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(o,n,r,s,l)=>(this.pendingMeasuredCacheIndexes=[],{count:o,paddingStart:n,scrollMargin:r,getItemKey:s,enabled:l}),{key:!1}),this.getMeasurements=lt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:o,paddingStart:n,scrollMargin:r,getItemKey:s,enabled:l},i)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,u);for(let p=u;p<o;p++){const g=s(p),h=this.options.lanes===1?f[p-1]:this.getFurthestMeasurement(f,p),x=h?h.end+this.options.gap:n+r,b=i.get(g),y=typeof b=="number"?b:this.options.estimateSize(p),v=x+y,w=h?h.lane:p%this.options.lanes;f[p]={index:p,start:x,size:y,end:v,key:g,lane:w}}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=lt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(o,n,r,s)=>this.range=o.length>0&&n>0?dh({measurements:o,outerSize:n,scrollOffset:r,lanes:s}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=lt(()=>{let o=null,n=null;const r=this.calculateRange();return r&&(o=r.startIndex,n=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,o,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,o,n]},(o,n,r,s,l)=>s===null||l===null?[]:o({startIndex:s,endIndex:l,overscan:n,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=o=>{const n=this.options.indexAttribute,r=o.getAttribute(n);return r?parseInt(r,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(o,n)=>{const r=this.indexFromElement(o),s=this.measurementsCache[r];if(!s)return;const l=s.key,i=this.elementsCache.get(l);i!==o&&(i&&this.observer.unobserve(i),this.observer.observe(o),this.elementsCache.set(l,o)),o.isConnected&&this.resizeItem(r,this.options.measureElement(o,n,this))},this.resizeItem=(o,n)=>{const r=this.measurementsCache[o];if(!r)return;const s=this.itemSizeCache.get(r.key)??r.size,l=n-s;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,l,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,n)),this.notify(!1))},this.measureElement=o=>{if(!o){this.elementsCache.forEach((n,r)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(r))});return}this._measureElement(o,void 0)},this.getVirtualItems=lt(()=>[this.getVirtualIndexes(),this.getMeasurements()],(o,n)=>{const r=[];for(let s=0,l=o.length;s<l;s++){const i=o[s],u=n[i];r.push(u)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=o=>{const n=this.getMeasurements();if(n.length!==0)return qn(n[Us(0,n.length-1,r=>qn(n[r]).start,o)])},this.getOffsetForAlignment=(o,n,r=0)=>{const s=this.getSize(),l=this.getScrollOffset();n==="auto"&&(n=o>=l+s?"end":"start"),n==="center"?o+=(r-s)/2:n==="end"&&(o-=s);const i=this.getTotalSize()+this.options.scrollMargin-s;return Math.max(Math.min(i,o),0)},this.getOffsetForIndex=(o,n="auto")=>{o=Math.max(0,Math.min(o,this.options.count-1));const r=this.measurementsCache[o];if(!r)return;const s=this.getSize(),l=this.getScrollOffset();if(n==="auto")if(r.end>=l+s-this.options.scrollPaddingEnd)n="end";else if(r.start<=l+this.options.scrollPaddingStart)n="start";else return[l,n];const i=n==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,n,r.size),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(o,{align:n="start",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(o,n),{adjustments:void 0,behavior:r})},this.scrollToIndex=(o,{align:n="auto",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),o=Math.max(0,Math.min(o,this.options.count-1));let s=0;const l=10,i=f=>{if(!this.targetWindow)return;const p=this.getOffsetForIndex(o,f);if(!p){console.warn("Failed to get offset for index:",o);return}const[g,h]=p;this._scrollToOffset(g,{adjustments:void 0,behavior:r}),this.targetWindow.requestAnimationFrame(()=>{const x=this.getScrollOffset(),b=this.getOffsetForIndex(o,h);if(!b){console.warn("Failed to get offset for index:",o);return}th(b[0],x)||u(h)})},u=f=>{this.targetWindow&&(s++,s<l?this.targetWindow.requestAnimationFrame(()=>i(f)):console.warn(`Failed to scroll to index ${o} after ${l} attempts.`))};i(n)},this.scrollBy=(o,{behavior:n}={})=>{n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+o,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var o;const n=this.getMeasurements();let r;if(n.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((o=n[n.length-1])==null?void 0:o.end)??0;else{const s=Array(this.options.lanes).fill(null);let l=n.length-1;for(;l>=0&&s.some(i=>i===null);){const i=n[l];s[i.lane]===null&&(s[i.lane]=i.end),l--}r=Math.max(...s.filter(i=>i!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(o,{adjustments:n,behavior:r})=>{this.options.scrollToFn(o,{behavior:r,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const Us=(e,t,o,n)=>{for(;e<=t;){const r=(e+t)/2|0,s=o(r);if(s<n)e=r+1;else if(s>n)t=r-1;else return r}return e>0?e-1:0};function dh({measurements:e,outerSize:t,scrollOffset:o,lanes:n}){const r=e.length-1,s=u=>e[u].start;if(e.length<=n)return{startIndex:0,endIndex:r};let l=Us(0,r,s,o),i=l;if(n===1)for(;i<r&&e[i].end<o+t;)i++;else if(n>1){const u=Array(n).fill(0);for(;i<r&&u.some(p=>p<o+t);){const p=e[i];u[p.lane]=p.end,i++}const f=Array(n).fill(o+t);for(;l>=0&&f.some(p=>p>=o);){const p=e[l];f[p.lane]=p.start,l--}l=Math.max(0,l-l%n),i=Math.min(r,i+(n-1-i%n))}return{startIndex:l,endIndex:i}}const Qn=typeof document<"u"?Kt.useLayoutEffect:Kt.useEffect;function uh(e){const t=Kt.useReducer(()=>({}),{})[1],o={...e,onChange:(r,s)=>{var l;s?ir.flushSync(t):t(),(l=e.onChange)==null||l.call(e,r,s)}},[n]=Kt.useState(()=>new ch(o));return n.setOptions(o),Qn(()=>n._didMount(),[]),Qn(()=>n._willUpdate()),n}function fh(e){return uh({observeElementRect:sh,observeElementOffset:ih,scrollToFn:lh,...e})}const[Ys]=O(["table"]),ph=[],gh=e=>e.id,hh=V.kosComponent(({dataProvider:e,columns:t,className:o,getRowId:n,emptyState:r,isSortable:s,t:l,TdComponent:i,TrComponent:u,onListItemAction:f,renderEmptyAsStandalone:p,...g})=>{At(e);const h=d.useRef(null),[x,b]=d.useState([]),y=ge.useReactTable({columns:t,data:e?e==null?void 0:e.items:ph,getCoreRowModel:ge.getCoreRowModel(),getSortedRowModel:s?ge.getSortedRowModel():void 0,getRowId:n??gh,onSortingChange:s?b:void 0,state:{sorting:x}}),v=!y.getRowModel().rows.length;return v&&p?r??null:a.jsx(Gs,{onListItemAction:f,isSortable:s,t:l,children:a.jsx(xh,{className:o,ref:h,children:a.jsxs(yh,{...g,children:[a.jsx(kh,{children:y.getHeaderGroups().map(w=>a.jsx(ft,{style:{display:"flex"},children:w.headers.map(k=>a.jsx(d.Fragment,{children:ge.flexRender(k.column.columnDef.header,{...k.getContext(),style:{display:"flex",width:k.getSize()}})},k.id))},w.id))}),a.jsx(mh,{isEmpty:v,numColumns:t.length,emptyState:r,table:y,tableContainerRef:h})]})})})}),mh=V.kosComponent(({table:e,tableContainerRef:t,trClassName:o,isEmpty:n,emptyState:r,numColumns:s})=>{const{rows:l}=e.getRowModel(),i=fh({count:l.length,estimateSize:()=>33,getScrollElement:()=>t.current,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?u=>u==null?void 0:u.getBoundingClientRect().height:void 0,overscan:5});return a.jsx(vh,{style:{position:"relative",height:`${i.getTotalSize()}px`},children:n?a.jsx(ft,{children:a.jsx(po,{colSpan:s,children:r??null})}):i.getVirtualItems().map(u=>{const f=l[u.index];return a.jsx(bh,{trClassName:o,row:f,virtualRow:u,rowVirtualizer:i},f.id)})})}),bh=V.kosComponent(({trClassName:e,row:t,virtualRow:o,rowVirtualizer:n})=>a.jsx(ft,{"data-index":o.index,ref:r=>n.measureElement(r),className:e,style:{display:"flex",position:"absolute",transform:`translateY(${o.start}px)`,width:"100%"},children:t.getVisibleCells().map(r=>a.jsx(po,{style:{display:"flex",width:r.column.getSize()},children:ge.flexRender(r.column.columnDef.cell,r.getContext())},r.id))},t.id)),xh=m.div`
|
|
2616
2707
|
width: 100%;
|
|
2617
2708
|
display: grid;
|
|
2618
2709
|
overflow: auto;
|
|
2619
|
-
`,
|
|
2710
|
+
`,yh=m.table`
|
|
2620
2711
|
width: 100%;
|
|
2621
2712
|
border-collapse: collapse;
|
|
2622
|
-
font-family: ${
|
|
2713
|
+
font-family: ${Ys("font-family")};
|
|
2623
2714
|
table-layout: fixed;
|
|
2624
|
-
`,
|
|
2715
|
+
`,kh=m.thead`
|
|
2625
2716
|
width: 100%;
|
|
2626
2717
|
position: sticky;
|
|
2627
|
-
background-color: ${
|
|
2718
|
+
background-color: ${Ys("header-background-color")};
|
|
2628
2719
|
top: 0;
|
|
2629
2720
|
z-index: 1;
|
|
2630
|
-
`,
|
|
2721
|
+
`,vh=m.tbody`
|
|
2631
2722
|
width: 100%;
|
|
2632
|
-
`,[
|
|
2723
|
+
`,[ct]=O(["button"]),wh=d.memo(({onClick:e,open:t,buttonText:o,text:n})=>a.jsx(Ch,{open:t,children:a.jsxs(Sh,{children:[a.jsx(M,{variant:"h2",color:"light",children:n}),a.jsx(Ie,{variant:"borderless",text:o,onClick:e})]})})),Ch=m(Kr)`
|
|
2633
2724
|
z-index: 5;
|
|
2634
|
-
`,
|
|
2725
|
+
`,Sh=m.div`
|
|
2635
2726
|
display: flex;
|
|
2636
2727
|
align-items: center;
|
|
2637
2728
|
justify-content: center;
|
|
2638
2729
|
flex-direction: column;
|
|
2639
2730
|
row-gap: ${c("spacing-12")};
|
|
2640
|
-
${`${
|
|
2641
|
-
${`${
|
|
2642
|
-
${`${
|
|
2643
|
-
${`${
|
|
2644
|
-
${`${
|
|
2645
|
-
${`${
|
|
2646
|
-
`;var N;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(N||(N={}));var G;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(G||(G={}));var we;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(we||(we={}));var se;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(se||(se={}));const vo={},St={};function Et(e,t){try{const n=(vo[e]||(vo[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return n in St?St[n]:Bn(n,n.split(":"))}catch{if(e in St)return St[e];const o=e==null?void 0:e.match(lp);return o?Bn(e,o.slice(1)):NaN}}const lp=/([+-]\d\d):?(\d\d)?/;function Bn(e,t){const o=+t[0],n=+(t[1]||0);return St[e]=o>0?o*60+n:o*60-n}class Ee extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Et(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Os(this),Fo(this)):this.setTime(Date.now())}static tz(t,...o){return o.length?new Ee(...o,t):new Ee(Date.now(),t)}withTimeZone(t){return new Ee(+this,t)}getTimezoneOffset(){return-Et(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Fo(this),+this}[Symbol.for("constructDateFrom")](t){return new Ee(+new Date(t),this.timeZone)}}const Pn=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Pn.test(e))return;const t=e.replace(Pn,"$1UTC");Ee.prototype[t]&&(e.startsWith("get")?Ee.prototype[e]=function(){return this.internal[t]()}:(Ee.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),cp(this),+this},Ee.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Fo(this),+this}))});function Fo(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function cp(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Os(e)}function Os(e){const t=Et(e.timeZone,e),o=new Date(+e);o.setUTCHours(o.getUTCHours()-1);const n=-new Date(+e).getTimezoneOffset(),r=-new Date(+o).getTimezoneOffset(),s=n-r,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();s&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+s);const a=n-t;a&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+a);const u=Et(e.timeZone,e),g=-new Date(+e).getTimezoneOffset()-u,h=u!==t,m=g-a;if(h&&m){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);const y=Et(e.timeZone,e),x=u-y;x&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+x),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+x))}}class ot extends Ee{static tz(t,...o){return o.length?new ot(...o,t):new ot(Date.now(),t)}toISOString(){const[t,o,n]=this.tzComponents(),r=`${t}${o}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,o,n,r]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${n} ${o} ${r}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[o,n,r]=this.tzComponents();return`${t} GMT${o}${n}${r} (${dp(this.timeZone,this)})`}toLocaleString(t,o){return Date.prototype.toLocaleString.call(this,t,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleDateString(t,o){return Date.prototype.toLocaleDateString.call(this,t,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleTimeString(t,o){return Date.prototype.toLocaleTimeString.call(this,t,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),o=t>0?"-":"+",n=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),r=String(Math.abs(t)%60).padStart(2,"0");return[o,n,r]}withTimeZone(t){return new ot(+this,t)}[Symbol.for("constructDateFrom")](t){return new ot(+new Date(t),this.timeZone)}}function dp(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}function wo(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function wt(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=o!=null&&o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[a]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return r[s]}}function Ct(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(r);if(!s)return null;const i=s[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(a)?fp(a,h=>h.test(i)):up(a,h=>h.test(i));let f;f=e.valueCallback?e.valueCallback(u):u,f=o.valueCallback?o.valueCallback(f):f;const g=t.slice(i.length);return{value:f,rest:g}}}function up(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function fp(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function gp(e){return(t,o={})=>{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=o.valueCallback?o.valueCallback(i):i;const a=t.slice(r.length);return{value:i,rest:a}}}const hp={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pp=(e,t,o)=>{let n;const r=hp[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n},mp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bp=(e,t,o,n)=>mp[e],xp={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yp={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vp={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wp={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Cp={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Sp=(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},$p={ordinalNumber:Sp,era:wt({values:xp,defaultWidth:"wide"}),quarter:wt({values:yp,defaultWidth:"wide",argumentCallback:e=>e-1}),month:wt({values:kp,defaultWidth:"wide"}),day:wt({values:vp,defaultWidth:"wide"}),dayPeriod:wt({values:wp,defaultWidth:"wide",formattingValues:Cp,defaultFormattingWidth:"wide"})},jp=/^(\d+)(th|st|nd|rd)?/i,Tp=/\d+/i,Dp={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ep={any:[/^b/i,/^(a|c)/i]},zp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Mp={any:[/1/i,/2/i,/3/i,/4/i]},Ip={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Op={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Rp={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Np={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fp={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ap={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_p={ordinalNumber:gp({matchPattern:jp,parsePattern:Tp,valueCallback:e=>parseInt(e,10)}),era:Ct({matchPatterns:Dp,defaultMatchWidth:"wide",parsePatterns:Ep,defaultParseWidth:"any"}),quarter:Ct({matchPatterns:zp,defaultMatchWidth:"wide",parsePatterns:Mp,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ct({matchPatterns:Ip,defaultMatchWidth:"wide",parsePatterns:Op,defaultParseWidth:"any"}),day:Ct({matchPatterns:Rp,defaultMatchWidth:"wide",parsePatterns:Np,defaultParseWidth:"any"}),dayPeriod:Ct({matchPatterns:Fp,defaultMatchWidth:"any",parsePatterns:Ap,defaultParseWidth:"any"})},Wp={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lp={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Bp={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pp={date:wo({formats:Wp,defaultWidth:"full"}),time:wo({formats:Lp,defaultWidth:"full"}),dateTime:wo({formats:Bp,defaultWidth:"full"})},Rs={code:"en-US",formatDistance:pp,formatLong:Pp,formatRelative:bp,localize:$p,match:_p,options:{weekStartsOn:0,firstWeekContainsDate:1}},Hn=5,Hp=4;function Vp(e,t){const o=t.startOfMonth(e),n=o.getDay()>0?o.getDay():7,r=t.addDays(e,-n+1),s=t.addDays(r,Hn*7-1);return t.getMonth(e)===t.getMonth(s)?Hn:Hp}function Ns(e,t){const o=t.startOfMonth(e),n=o.getDay();return n===1?o:n===0?t.addDays(o,-1*6):t.addDays(o,-1*(n-1))}function Gp(e,t){const o=Ns(e,t),n=Vp(e,t);return t.addDays(o,n*7-1)}class Pe{constructor(t,o){this.Date=Date,this.today=()=>{var n;return(n=this.overrides)!=null&&n.today?this.overrides.today():this.options.timeZone?ot.tz(this.options.timeZone):new this.Date},this.newDate=(n,r,s)=>{var i;return(i=this.overrides)!=null&&i.newDate?this.overrides.newDate(n,r,s):this.options.timeZone?new ot(n,r,s,this.options.timeZone):new Date(n,r,s)},this.addDays=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.addDays)==null?void 0:i.call(s,n,r))??_.addDays(n,r)},this.addMonths=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.addMonths)==null?void 0:i.call(s,n,r))??_.addMonths(n,r)},this.addWeeks=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.addWeeks)==null?void 0:i.call(s,n,r))??_.addWeeks(n,r)},this.addYears=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.addYears)==null?void 0:i.call(s,n,r))??_.addYears(n,r)},this.differenceInCalendarDays=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.differenceInCalendarDays)==null?void 0:i.call(s,n,r))??_.differenceInCalendarDays(n,r)},this.differenceInCalendarMonths=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.differenceInCalendarMonths)==null?void 0:i.call(s,n,r))??_.differenceInCalendarMonths(n,r)},this.eachMonthOfInterval=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.eachMonthOfInterval)==null?void 0:s.call(r,n))??_.eachMonthOfInterval(n)},this.endOfBroadcastWeek=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.endOfBroadcastWeek)==null?void 0:i.call(s,n,r))??Gp(n,this)},this.endOfISOWeek=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.endOfISOWeek)==null?void 0:s.call(r,n))??_.endOfISOWeek(n)},this.endOfMonth=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.endOfMonth)==null?void 0:s.call(r,n))??_.endOfMonth(n)},this.endOfWeek=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.endOfWeek)==null?void 0:i.call(s,n,r??this.options))??_.endOfWeek(n,r??this.options)},this.endOfYear=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.endOfYear)==null?void 0:s.call(r,n))??_.endOfYear(n)},this.format=(n,r,s)=>{var a,u;const i=((u=(a=this.overrides)==null?void 0:a.format)==null?void 0:u.call(a,n,r,s??this.options))??_.format(n,r,s??this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(i):i},this.getISOWeek=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.getISOWeek)==null?void 0:s.call(r,n))??_.getISOWeek(n)},this.getMonth=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.getMonth)==null?void 0:s.call(r,n))??_.getMonth(n)},this.getYear=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.getYear)==null?void 0:s.call(r,n))??_.getYear(n)},this.getWeek=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.getWeek)==null?void 0:i.call(s,n,r??this.options))??_.getWeek(n,r??this.options)},this.isAfter=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.isAfter)==null?void 0:i.call(s,n,r))??_.isAfter(n,r)},this.isBefore=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.isBefore)==null?void 0:i.call(s,n,r))??_.isBefore(n,r)},this.isDate=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.isDate)==null?void 0:s.call(r,n))??_.isDate(n)},this.isSameDay=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.isSameDay)==null?void 0:i.call(s,n,r))??_.isSameDay(n,r)},this.isSameMonth=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.isSameMonth)==null?void 0:i.call(s,n,r))??_.isSameMonth(n,r)},this.isSameYear=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.isSameYear)==null?void 0:i.call(s,n,r))??_.isSameYear(n,r)},this.max=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.max)==null?void 0:s.call(r,n))??_.max(n)},this.min=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.min)==null?void 0:s.call(r,n))??_.min(n)},this.setMonth=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.setMonth)==null?void 0:i.call(s,n,r))??_.setMonth(n,r)},this.setYear=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.setYear)==null?void 0:i.call(s,n,r))??_.setYear(n,r)},this.startOfBroadcastWeek=(n,r)=>{var s,i;return((i=(s=this.overrides)==null?void 0:s.startOfBroadcastWeek)==null?void 0:i.call(s,n,r??this))??Ns(n,r??this)},this.startOfDay=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.startOfDay)==null?void 0:s.call(r,n))??_.startOfDay(n)},this.startOfISOWeek=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.startOfISOWeek)==null?void 0:s.call(r,n))??_.startOfISOWeek(n)},this.startOfMonth=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.startOfMonth)==null?void 0:s.call(r,n))??_.startOfMonth(n)},this.startOfWeek=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.startOfWeek)==null?void 0:s.call(r,n))??_.startOfWeek(n,this.options)},this.startOfYear=n=>{var r,s;return((s=(r=this.overrides)==null?void 0:r.startOfYear)==null?void 0:s.call(r,n))??_.startOfYear(n)},this.options={locale:Rs,...t},this.overrides=o}getDigitMap(){const{numerals:t="latn"}=this.options,o=new Intl.NumberFormat("en-US",{numberingSystem:t}),n={};for(let r=0;r<10;r++)n[r.toString()]=o.format(r);return n}replaceDigits(t){const o=this.getDigitMap();return t.replace(/\d/g,n=>o[n]||n)}formatNumber(t){return this.replaceDigits(t.toString())}}const He=new Pe;function Yp(e,t,o={}){return Object.entries(e).filter(([,r])=>r===!0).reduce((r,[s])=>(o[s]?r.push(o[s]):t[G[s]]?r.push(t[G[s]]):t[we[s]]&&r.push(t[we[s]]),r),[t[N.Day]])}function Up(e){return d.createElement("button",{...e})}function Kp(e){return d.createElement("span",{...e})}function qp(e){const{size:t=24,orientation:o="left",className:n}=e;return d.createElement("svg",{className:n,width:t,height:t,viewBox:"0 0 24 24"},o==="up"&&d.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),o==="down"&&d.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),o==="left"&&d.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),o==="right"&&d.createElement("polygon",{points:"8 18.612 14.1888889 12.5 8 6.37733333 9.91111111 4.5 18 12.5 9.91111111 20.5"}))}function Xp(e){const{day:t,modifiers:o,...n}=e;return d.createElement("td",{...n})}function Zp(e){const{day:t,modifiers:o,...n}=e,r=d.useRef(null);return d.useEffect(()=>{var s;o.focused&&((s=r.current)==null||s.focus())},[o.focused]),d.createElement("button",{ref:r,...n})}function Jp(e){const{options:t,className:o,components:n,classNames:r,...s}=e,i=[r[N.Dropdown],o].join(" "),a=t==null?void 0:t.find(({value:u})=>u===s.value);return d.createElement("span",{"data-disabled":s.disabled,className:r[N.DropdownRoot]},d.createElement(n.Select,{className:i,...s},t==null?void 0:t.map(({value:u,label:f,disabled:g})=>d.createElement(n.Option,{key:u,value:u,disabled:g},f))),d.createElement("span",{className:r[N.CaptionLabel],"aria-hidden":!0},a==null?void 0:a.label,d.createElement(n.Chevron,{orientation:"down",size:18,className:r[N.Chevron]})))}function Qp(e){return d.createElement("div",{...e})}function em(e){return d.createElement("div",{...e})}function tm(e){const{calendarMonth:t,displayIndex:o,...n}=e;return d.createElement("div",{...n},e.children)}function om(e){const{calendarMonth:t,displayIndex:o,...n}=e;return d.createElement("div",{...n})}function nm(e){return d.createElement("table",{...e})}function rm(e){return d.createElement("div",{...e})}const Fs=d.createContext(void 0);function Ft(){const e=d.useContext(Fs);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function sm(e){const{components:t}=Ft();return d.createElement(t.Dropdown,{...e})}function im(e){const{onPreviousClick:t,onNextClick:o,previousMonth:n,nextMonth:r,...s}=e,{components:i,classNames:a,labels:{labelPrevious:u,labelNext:f}}=Ft(),g=d.useCallback(m=>{r&&(o==null||o(m))},[r,o]),h=d.useCallback(m=>{n&&(t==null||t(m))},[n,t]);return d.createElement("nav",{...s},d.createElement(i.PreviousMonthButton,{type:"button",className:a[N.PreviousMonthButton],tabIndex:n?void 0:-1,"aria-disabled":n?void 0:!0,"aria-label":u(n),onClick:h},d.createElement(i.Chevron,{disabled:n?void 0:!0,className:a[N.Chevron],orientation:"left"})),d.createElement(i.NextMonthButton,{type:"button",className:a[N.NextMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":f(r),onClick:g},d.createElement(i.Chevron,{disabled:r?void 0:!0,orientation:"right",className:a[N.Chevron]})))}function am(e){const{components:t}=Ft();return d.createElement(t.Button,{...e})}function lm(e){return d.createElement("option",{...e})}function cm(e){const{components:t}=Ft();return d.createElement(t.Button,{...e})}function dm(e){const{rootRef:t,...o}=e;return d.createElement("div",{...o,ref:t})}function um(e){return d.createElement("select",{...e})}function fm(e){const{week:t,...o}=e;return d.createElement("tr",{...o})}function gm(e){return d.createElement("th",{...e})}function hm(e){return d.createElement("thead",{"aria-hidden":!0},d.createElement("tr",{...e}))}function pm(e){const{week:t,...o}=e;return d.createElement("th",{...o})}function mm(e){return d.createElement("th",{...e})}function bm(e){return d.createElement("tbody",{...e})}function xm(e){const{components:t}=Ft();return d.createElement(t.Dropdown,{...e})}const ym=Object.freeze(Object.defineProperty({__proto__:null,Button:Up,CaptionLabel:Kp,Chevron:qp,Day:Xp,DayButton:Zp,Dropdown:Jp,DropdownNav:Qp,Footer:em,Month:tm,MonthCaption:om,MonthGrid:nm,Months:rm,MonthsDropdown:sm,Nav:im,NextMonthButton:am,Option:lm,PreviousMonthButton:cm,Root:dm,Select:um,Week:fm,WeekNumber:pm,WeekNumberHeader:mm,Weekday:gm,Weekdays:hm,Weeks:bm,YearsDropdown:xm},Symbol.toStringTag,{value:"Module"}));function km(e){return{...ym,...e}}function vm(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0};return Object.entries(e).forEach(([o,n])=>{o.startsWith("data-")&&(t[o]=n)}),t}function wm(){const e={};for(const t in N)e[N[t]]=`rdp-${N[t]}`;for(const t in G)e[G[t]]=`rdp-${G[t]}`;for(const t in we)e[we[t]]=`rdp-${we[t]}`;for(const t in se)e[se[t]]=`rdp-${se[t]}`;return e}function As(e,t,o){return(o??new Pe(t)).format(e,"LLLL y")}const Cm=As;function Sm(e,t,o){return(o??new Pe(t)).format(e,"d")}function $m(e,t=He){return t.format(e,"LLLL")}function jm(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`}function Tm(){return""}function Dm(e,t,o){return(o??new Pe(t)).format(e,"cccccc")}function _s(e,t=He){return t.format(e,"yyyy")}const Em=_s,zm=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:As,formatDay:Sm,formatMonthCaption:Cm,formatMonthDropdown:$m,formatWeekNumber:jm,formatWeekNumberHeader:Tm,formatWeekdayName:Dm,formatYearCaption:Em,formatYearDropdown:_s},Symbol.toStringTag,{value:"Module"}));function Mm(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...zm,...e}}function Im(e,t,o,n,r){const{startOfMonth:s,startOfYear:i,endOfYear:a,eachMonthOfInterval:u,getMonth:f}=r;return u({start:i(e),end:a(e)}).map(m=>{const y=n.formatMonthDropdown(m,r),x=f(m),k=t&&m<s(t)||o&&m>s(o)||!1;return{value:x,label:y,disabled:k}})}function Om(e,t={},o={}){let n={...t==null?void 0:t[N.Day]};return Object.entries(e).filter(([,r])=>r===!0).forEach(([r])=>{n={...n,...o==null?void 0:o[r]}}),n}function Rm(e,t,o){const n=e.today(),r=o?e.startOfBroadcastWeek(n,e):t?e.startOfISOWeek(n):e.startOfWeek(n),s=[];for(let i=0;i<7;i++){const a=e.addDays(r,i);s.push(a)}return s}function Nm(e,t,o,n){if(!e||!t)return;const{startOfYear:r,endOfYear:s,addYears:i,getYear:a,isBefore:u,isSameYear:f}=n,g=r(e),h=s(t),m=[];let y=g;for(;u(y,h)||f(y,h);)m.push(y),y=i(y,1);return m.map(x=>{const k=o.formatYearDropdown(x,n);return{value:a(x),label:k,disabled:!1}})}function Ws(e,t,o){return(o??new Pe(t)).format(e,"LLLL y")}const Fm=Ws;function Am(e,t,o,n){let r=(n??new Pe(o)).format(e,"PPPP");return t!=null&&t.today&&(r=`Today, ${r}`),r}function Ls(e,t,o,n){let r=(n??new Pe(o)).format(e,"PPPP");return t.today&&(r=`Today, ${r}`),t.selected&&(r=`${r}, selected`),r}const _m=Ls;function Wm(){return""}function Lm(e){return"Choose the Month"}function Bm(e){return"Go to the Next Month"}function Pm(e){return"Go to the Previous Month"}function Hm(e,t,o){return(o??new Pe(t)).format(e,"cccc")}function Vm(e,t){return`Week ${e}`}function Gm(e){return"Week Number"}function Ym(e){return"Choose the Year"}const Um=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Fm,labelDay:_m,labelDayButton:Ls,labelGrid:Ws,labelGridcell:Am,labelMonthDropdown:Lm,labelNav:Wm,labelNext:Bm,labelPrevious:Pm,labelWeekNumber:Vm,labelWeekNumberHeader:Gm,labelWeekday:Hm,labelYearDropdown:Ym},Symbol.toStringTag,{value:"Module"}));function Km(e,t,{classNames:o,months:n,focused:r,dateLib:s}){const i=d.useRef(null),a=d.useRef(n),u=d.useRef(!1);d.useLayoutEffect(()=>{const f=a.current;if(a.current=n,!t||!e.current||!(e.current instanceof HTMLElement))return;const g=i.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?([...h.querySelectorAll("[data-animated-month]")??[]].forEach(v=>{const w=v.querySelector("[data-animated-month]");w&&v.contains(w)&&v.removeChild(w)}),i.current=h):i.current=null,n.length===0||f.length===0||n.length!==f.length||r||u.current||s.isSameMonth(n[0].date,f[0].date))return;const y=[...(g==null?void 0:g.querySelectorAll("[data-animated-month]"))??[]],x=[...e.current.querySelectorAll("[data-animated-month]")??[]];if(x&&x.every(k=>k instanceof HTMLElement)&&y&&y.every(k=>k instanceof HTMLElement)){u.current=!0;const k=s.isAfter(n[0].date,f[0].date);x.forEach((v,w)=>{const b=y[w];if(!b)return;const C=k?o[se.caption_after_enter]:o[se.caption_before_enter],S=k?o[se.weeks_after_enter]:o[se.weeks_before_enter];v.style.position="relative",v.style.overflow="hidden";const D=v.querySelector("[data-animated-caption]");D&&D instanceof HTMLElement&&D.classList.add(C);const j=v.querySelector("[data-animated-weeks]");j&&j instanceof HTMLElement&&j.classList.add(S);const $=()=>{u.current=!1,D&&D instanceof HTMLElement&&D.classList.remove(C),j&&j instanceof HTMLElement&&j.classList.remove(S),v.style.position="",v.style.overflow="",v.contains(b)&&v.removeChild(b)};b.style.pointerEvents="none",b.style.position="absolute",b.style.overflow="hidden",b.setAttribute("aria-hidden","true");const E=b.querySelector("[data-animated-weekdays]");E&&E instanceof HTMLElement&&(E.style.opacity="0");const P=b.querySelector("[data-animated-caption]");P&&P instanceof HTMLElement&&(P.classList.add(k?o[se.caption_before_exit]:o[se.caption_after_exit]),P.addEventListener("animationend",$));const U=b.querySelector("[data-animated-weeks]");U&&U instanceof HTMLElement&&U.classList.add(k?o[se.weeks_before_exit]:o[se.weeks_after_exit]),v.insertBefore(b,v.firstChild)})}})}function qm(e,t,o,n){const r=e[0],s=e[e.length-1],{ISOWeek:i,fixedWeeks:a,broadcastCalendar:u}=o??{},{addDays:f,differenceInCalendarDays:g,differenceInCalendarMonths:h,endOfBroadcastWeek:m,endOfISOWeek:y,endOfMonth:x,endOfWeek:k,isAfter:v,startOfBroadcastWeek:w,startOfISOWeek:b,startOfWeek:C}=n,S=u?w(r,n):i?b(r):C(r),D=u?m(s,n):i?y(x(s)):k(x(s)),j=g(D,S),$=h(s,r)+1,E=[];for(let H=0;H<=j;H++){const Y=f(S,H);if(t&&v(Y,t))break;E.push(Y)}const U=(u?35:42)*$;if(a&&E.length<U){const H=U-E.length;for(let Y=0;Y<H;Y++){const Re=f(E[E.length-1],1);E.push(Re)}}return E}function Xm(e){const t=[];return e.reduce((o,n)=>{const r=[],s=n.weeks.reduce((i,a)=>[...i,...a.days],r);return[...o,...s]},t)}function Zm(e,t,o,n){const{numberOfMonths:r=1}=o,s=[];for(let i=0;i<r;i++){const a=n.addMonths(e,i);if(t&&a>t)break;s.push(a)}return s}function Vn(e,t){const{month:o,defaultMonth:n,today:r=t.today(),numberOfMonths:s=1,endMonth:i,startMonth:a}=e;let u=o||n||r;const{differenceInCalendarMonths:f,addMonths:g,startOfMonth:h}=t;if(i&&f(i,u)<0){const m=-1*(s-1);u=g(i,m)}return a&&f(u,a)<0&&(u=a),h(u)}class Bs{constructor(t,o,n=He){this.date=t,this.displayMonth=o,this.outside=!!(o&&!n.isSameMonth(t,o)),this.dateLib=n}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class Jm{constructor(t,o){this.date=t,this.weeks=o}}class Qm{constructor(t,o){this.days=o,this.weekNumber=t}}function eb(e,t,o,n){const{addDays:r,endOfBroadcastWeek:s,endOfISOWeek:i,endOfMonth:a,endOfWeek:u,getISOWeek:f,getWeek:g,startOfBroadcastWeek:h,startOfISOWeek:m,startOfWeek:y}=n,x=e.reduce((k,v)=>{const w=o.broadcastCalendar?h(v,n):o.ISOWeek?m(v):y(v),b=o.broadcastCalendar?s(v,n):o.ISOWeek?i(a(v)):u(a(v)),C=t.filter($=>$>=w&&$<=b),S=o.broadcastCalendar?35:42;if(o.fixedWeeks&&C.length<S){const $=t.filter(E=>{const P=S-C.length;return E>b&&E<=r(b,P)});C.push(...$)}const D=C.reduce(($,E)=>{const P=o.ISOWeek?f(E):g(E),U=$.find(Y=>Y.weekNumber===P),H=new Bs(E,v,n);return U?U.days.push(H):$.push(new Qm(P,[H])),$},[]),j=new Jm(v,D);return k.push(j),k},[]);return o.reverseMonths?x.reverse():x}function tb(e,t){let{startMonth:o,endMonth:n}=e;const{startOfYear:r,startOfDay:s,startOfMonth:i,endOfMonth:a,addYears:u,endOfYear:f,newDate:g,today:h}=t,{fromYear:m,toYear:y,fromMonth:x,toMonth:k}=e;!o&&x&&(o=x),!o&&m&&(o=t.newDate(m,0,1)),!n&&k&&(n=k),!n&&y&&(n=g(y,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return o?o=i(o):m?o=g(m,0,1):!o&&v&&(o=r(u(e.today??h(),-100))),n?n=a(n):y?n=g(y,11,31):!n&&v&&(n=f(e.today??h())),[o&&s(o),n&&s(n)]}function ob(e,t,o,n){if(o.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:s=1}=o,{startOfMonth:i,addMonths:a,differenceInCalendarMonths:u}=n,f=r?s:1,g=i(e);if(!t)return a(g,f);if(!(u(t,e)<s))return a(g,f)}function nb(e,t,o,n){if(o.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:s}=o,{startOfMonth:i,addMonths:a,differenceInCalendarMonths:u}=n,f=r?s??1:1,g=i(e);if(!t)return a(g,-f);if(!(u(g,t)<=0))return a(g,-f)}function rb(e){const t=[];return e.reduce((o,n)=>[...o,...n.weeks],t)}function co(e,t){const[o,n]=d.useState(e);return[t===void 0?o:t,n]}function sb(e,t){const[o,n]=tb(e,t),{startOfMonth:r,endOfMonth:s}=t,i=Vn(e,t),[a,u]=co(i,e.month?i:void 0);d.useEffect(()=>{const j=Vn(e,t);u(j)},[e.timeZone]);const f=Zm(a,n,e,t),g=qm(f,e.endMonth?s(e.endMonth):void 0,e,t),h=eb(f,g,e,t),m=rb(h),y=Xm(h),x=nb(a,o,e,t),k=ob(a,n,e,t),{disableNavigation:v,onMonthChange:w}=e,b=j=>m.some($=>$.days.some(E=>E.isEqualTo(j))),C=j=>{if(v)return;let $=r(j);o&&$<r(o)&&($=r(o)),n&&$>r(n)&&($=r(n)),u($),w==null||w($)};return{months:h,weeks:m,days:y,navStart:o,navEnd:n,previousMonth:x,nextMonth:k,goToMonth:C,goToDay:j=>{b(j)||C(j.date)}}}function ib(e,t,o,n){let r,s=0,i=!1;for(;s<e.length&&!i;){const a=e[s],u=t(a);!u[G.disabled]&&!u[G.hidden]&&!u[G.outside]&&(u[G.focused]||n!=null&&n.isEqualTo(a)||o(a.date)||u[G.today])&&(r=a,i=!0),s++}return r||(r=e.find(a=>{const u=t(a);return!u[G.disabled]&&!u[G.hidden]&&!u[G.outside]})),r}function Ae(e,t,o=!1,n=He){let{from:r,to:s}=e;const{differenceInCalendarDays:i,isSameDay:a}=n;return r&&s?(i(s,r)<0&&([r,s]=[s,r]),i(t,r)>=(o?1:0)&&i(s,t)>=(o?1:0)):!o&&s?a(s,t):!o&&r?a(r,t):!1}function Ps(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function hn(e){return!!(e&&typeof e=="object"&&"from"in e)}function Hs(e){return!!(e&&typeof e=="object"&&"after"in e)}function Vs(e){return!!(e&&typeof e=="object"&&"before"in e)}function Gs(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Ys(e,t){return Array.isArray(e)&&e.every(t.isDate)}function _e(e,t,o=He){const n=Array.isArray(t)?t:[t],{isSameDay:r,differenceInCalendarDays:s,isAfter:i}=o;return n.some(a=>{if(typeof a=="boolean")return a;if(o.isDate(a))return r(e,a);if(Ys(a,o))return a.includes(e);if(hn(a))return Ae(a,e,!1,o);if(Gs(a))return Array.isArray(a.dayOfWeek)?a.dayOfWeek.includes(e.getDay()):a.dayOfWeek===e.getDay();if(Ps(a)){const u=s(a.before,e),f=s(a.after,e),g=u>0,h=f<0;return i(a.before,a.after)?h&&g:g||h}return Hs(a)?s(e,a.after)>0:Vs(a)?s(a.before,e)>0:typeof a=="function"?a(e):!1})}function ab(e,t,o,n,r,s,i){const{ISOWeek:a,broadcastCalendar:u}=s,{addDays:f,addMonths:g,addWeeks:h,addYears:m,endOfBroadcastWeek:y,endOfISOWeek:x,endOfWeek:k,max:v,min:w,startOfBroadcastWeek:b,startOfISOWeek:C,startOfWeek:S}=i;let j={day:f,week:h,month:g,year:m,startOfWeek:$=>u?b($,i):a?C($):S($),endOfWeek:$=>u?y($,i):a?x($):k($)}[e](o,t==="after"?1:-1);return t==="before"&&n?j=v([n,j]):t==="after"&&r&&(j=w([r,j])),j}function Us(e,t,o,n,r,s,i,a=0){if(a>365)return;const u=ab(e,t,o.date,n,r,s,i),f=!!(s.disabled&&_e(u,s.disabled,i)),g=!!(s.hidden&&_e(u,s.hidden,i)),h=u,m=new Bs(u,h,i);return!f&&!g?m:Us(e,t,m,n,r,s,i,a+1)}function lb(e,t,o,n,r){const{autoFocus:s}=e,[i,a]=d.useState(),u=ib(t.days,o,n||(()=>!1),i),[f,g]=d.useState(s?u:void 0);return{isFocusTarget:k=>!!(u!=null&&u.isEqualTo(k)),setFocused:g,focused:f,blur:()=>{a(f),g(void 0)},moveFocus:(k,v)=>{if(!f)return;const w=Us(k,v,f,t.navStart,t.navEnd,e,r);w&&(t.goToDay(w),g(w))}}}function cb(e,t,o){const{disabled:n,hidden:r,modifiers:s,showOutsideDays:i,broadcastCalendar:a,today:u}=t,{isSameDay:f,isSameMonth:g,startOfMonth:h,isBefore:m,endOfMonth:y,isAfter:x}=o,k=t.startMonth&&h(t.startMonth),v=t.endMonth&&y(t.endMonth),w={[G.focused]:[],[G.outside]:[],[G.disabled]:[],[G.hidden]:[],[G.today]:[]},b={};for(const C of e){const{date:S,displayMonth:D}=C,j=!!(D&&!g(S,D)),$=!!(k&&m(S,k)),E=!!(v&&x(S,v)),P=!!(n&&_e(S,n,o)),U=!!(r&&_e(S,r,o))||$||E||!a&&!i&&j||a&&i===!1&&j,H=f(S,u??o.today());j&&w.outside.push(C),P&&w.disabled.push(C),U&&w.hidden.push(C),H&&w.today.push(C),s&&Object.keys(s).forEach(Y=>{const Re=s==null?void 0:s[Y];Re&&_e(S,Re,o)&&(b[Y]?b[Y].push(C):b[Y]=[C])})}return C=>{const S={[G.focused]:!1,[G.disabled]:!1,[G.hidden]:!1,[G.outside]:!1,[G.today]:!1},D={};for(const j in w){const $=w[j];S[j]=$.some(E=>E===C)}for(const j in b)D[j]=b[j].some($=>$===C);return{...S,...D}}}function db(e,t){const{selected:o,required:n,onSelect:r}=e,[s,i]=co(o,r?o:void 0),a=r?o:s,{isSameDay:u}=t,f=y=>(a==null?void 0:a.some(x=>u(x,y)))??!1,{min:g,max:h}=e;return{selected:a,select:(y,x,k)=>{let v=[...a??[]];if(f(y)){if((a==null?void 0:a.length)===g||n&&(a==null?void 0:a.length)===1)return;v=a==null?void 0:a.filter(w=>!u(w,y))}else(a==null?void 0:a.length)===h?v=[y]:v=[...v,y];return r||i(v),r==null||r(v,y,x,k),v},isSelected:f}}function ub(e,t,o=0,n=0,r=!1,s=He){const{from:i,to:a}=t||{},{isSameDay:u,isAfter:f,isBefore:g}=s;let h;if(!i&&!a)h={from:e,to:o>0?void 0:e};else if(i&&!a)u(i,e)?r?h={from:i,to:void 0}:h=void 0:g(e,i)?h={from:e,to:i}:h={from:i,to:e};else if(i&&a)if(u(i,e)&&u(a,e))r?h={from:i,to:a}:h=void 0;else if(u(i,e))h={from:i,to:o>0?void 0:e};else if(u(a,e))h={from:e,to:o>0?void 0:e};else if(g(e,i))h={from:e,to:a};else if(f(e,i))h={from:i,to:e};else if(f(e,a))h={from:i,to:e};else throw new Error("Invalid range");if(h!=null&&h.from&&(h!=null&&h.to)){const m=s.differenceInCalendarDays(h.to,h.from);n>0&&m>n?h={from:e,to:void 0}:o>1&&m<o&&(h={from:e,to:void 0})}return h}function fb(e,t,o=He){const n=Array.isArray(t)?t:[t];let r=e.from;const s=o.differenceInCalendarDays(e.to,e.from),i=Math.min(s,6);for(let a=0;a<=i;a++){if(n.includes(r.getDay()))return!0;r=o.addDays(r,1)}return!1}function Gn(e,t,o=He){return Ae(e,t.from,!1,o)||Ae(e,t.to,!1,o)||Ae(t,e.from,!1,o)||Ae(t,e.to,!1,o)}function gb(e,t,o=He){const n=Array.isArray(t)?t:[t];if(n.filter(a=>typeof a!="function").some(a=>typeof a=="boolean"?a:o.isDate(a)?Ae(e,a,!1,o):Ys(a,o)?a.some(u=>Ae(e,u,!1,o)):hn(a)?a.from&&a.to?Gn(e,{from:a.from,to:a.to},o):!1:Gs(a)?fb(e,a.dayOfWeek,o):Ps(a)?o.isAfter(a.before,a.after)?Gn(e,{from:o.addDays(a.after,1),to:o.addDays(a.before,-1)},o):_e(e.from,a,o)||_e(e.to,a,o):Hs(a)||Vs(a)?_e(e.from,a,o)||_e(e.to,a,o):!1))return!0;const i=n.filter(a=>typeof a=="function");if(i.length){let a=e.from;const u=o.differenceInCalendarDays(e.to,e.from);for(let f=0;f<=u;f++){if(i.some(g=>g(a)))return!0;a=o.addDays(a,1)}}return!1}function hb(e,t){const{disabled:o,excludeDisabled:n,selected:r,required:s,onSelect:i}=e,[a,u]=co(r,i?r:void 0),f=i?r:a;return{selected:f,select:(m,y,x)=>{const{min:k,max:v}=e,w=m?ub(m,f,k,v,s,t):void 0;return n&&o&&(w!=null&&w.from)&&w.to&&gb({from:w.from,to:w.to},o,t)&&(w.from=m,w.to=void 0),i||u(w),i==null||i(w,m,y,x),w},isSelected:m=>f&&Ae(f,m,!1,t)}}function pb(e,t){const{selected:o,required:n,onSelect:r}=e,[s,i]=co(o,r?o:void 0),a=r?o:s,{isSameDay:u}=t;return{selected:a,select:(h,m,y)=>{let x=h;return!n&&a&&a&&u(h,a)&&(x=void 0),r||i(x),r==null||r(x,h,m,y),x},isSelected:h=>a?u(a,h):!1}}function mb(e,t){const o=pb(e,t),n=db(e,t),r=hb(e,t);switch(e.mode){case"single":return o;case"multiple":return n;case"range":return r;default:return}}function bb(e){const{components:t,formatters:o,labels:n,dateLib:r,locale:s,classNames:i}=d.useMemo(()=>{const A={...Rs,...e.locale};return{dateLib:new Pe({locale:A,weekStartsOn:e.broadcastCalendar?1:e.weekStartsOn,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens,timeZone:e.timeZone,numerals:e.numerals},e.dateLib),components:km(e.components),formatters:Mm(e.formatters),labels:{...Um,...e.labels},locale:A,classNames:{...wm(),...e.classNames}}},[e.locale,e.broadcastCalendar,e.weekStartsOn,e.firstWeekContainsDate,e.useAdditionalWeekYearTokens,e.useAdditionalDayOfYearTokens,e.timeZone,e.numerals,e.dateLib,e.components,e.formatters,e.labels,e.classNames]),{captionLayout:a,mode:u,onDayBlur:f,onDayClick:g,onDayFocus:h,onDayKeyDown:m,onDayMouseEnter:y,onDayMouseLeave:x,onNextClick:k,onPrevClick:v,showWeekNumber:w,styles:b}=e,{formatCaption:C,formatDay:S,formatMonthDropdown:D,formatWeekNumber:j,formatWeekNumberHeader:$,formatWeekdayName:E,formatYearDropdown:P}=o,U=sb(e,r),{days:H,months:Y,navStart:Re,navEnd:bt,previousMonth:Ve,nextMonth:Ge,goToMonth:fe}=U,rt=cb(H,e,r),{isSelected:Xe,select:J,selected:Ze}=mb(e,r)??{},{blur:pn,focused:At,isFocusTarget:Ks,moveFocus:mn,setFocused:_t}=lb(e,U,rt,Xe??(()=>!1),r),{labelDayButton:qs,labelGridcell:Xs,labelGrid:Zs,labelMonthDropdown:Js,labelNav:Qs,labelWeekday:ei,labelWeekNumber:ti,labelWeekNumberHeader:oi,labelYearDropdown:ni}=n,ri=d.useMemo(()=>Rm(r,e.ISOWeek),[r,e.ISOWeek]),bn=u!==void 0||g!==void 0,si=d.useCallback(()=>{Ve&&(fe(Ve),v==null||v(Ve))},[Ve,fe,v]),ii=d.useCallback(()=>{Ge&&(fe(Ge),k==null||k(Ge))},[fe,Ge,k]),ai=d.useCallback((A,q)=>V=>{V.preventDefault(),V.stopPropagation(),_t(A),J==null||J(A.date,q,V),g==null||g(A.date,q,V)},[J,g,_t]),li=d.useCallback((A,q)=>V=>{_t(A),h==null||h(A.date,q,V)},[h,_t]),ci=d.useCallback((A,q)=>V=>{pn(),f==null||f(A.date,q,V)},[pn,f]),di=d.useCallback((A,q)=>V=>{const Ye={ArrowLeft:["day",e.dir==="rtl"?"after":"before"],ArrowRight:["day",e.dir==="rtl"?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[V.shiftKey?"year":"month","before"],PageDown:[V.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Ye[V.key]){V.preventDefault(),V.stopPropagation();const[ge,Wt]=Ye[V.key];mn(ge,Wt)}m==null||m(A.date,q,V)},[mn,m,e.dir]),ui=d.useCallback((A,q)=>V=>{y==null||y(A.date,q,V)},[y]),fi=d.useCallback((A,q)=>V=>{x==null||x(A.date,q,V)},[x]),gi=d.useCallback(A=>q=>{const V=Number(q.target.value),Ye=r.setMonth(r.startOfMonth(A),V);fe(Ye)},[r,fe]),hi=d.useCallback(A=>q=>{const V=Number(q.target.value),Ye=r.setYear(r.startOfMonth(A),V);fe(Ye)},[r,fe]),{className:pi,style:mi}=d.useMemo(()=>({className:[i[N.Root],e.className].filter(Boolean).join(" "),style:{...b==null?void 0:b[N.Root],...e.style}}),[i,e.className,e.style,b]),bi=vm(e),xn=d.useRef(null);Km(xn,!!e.animate,{classNames:i,months:Y,focused:At,dateLib:r});const xi={dayPickerProps:e,selected:Ze,select:J,isSelected:Xe,months:Y,nextMonth:Ge,previousMonth:Ve,goToMonth:fe,getModifiers:rt,components:t,classNames:i,styles:b,labels:n,formatters:o};return d.createElement(Fs.Provider,{value:xi},d.createElement(t.Root,{rootRef:e.animate?xn:void 0,className:pi,style:mi,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],...bi},d.createElement(t.Months,{className:i[N.Months],style:b==null?void 0:b[N.Months]},!e.hideNavigation&&d.createElement(t.Nav,{className:i[N.Nav],style:b==null?void 0:b[N.Nav],"aria-label":Qs(),onPreviousClick:si,onNextClick:ii,previousMonth:Ve,nextMonth:Ge}),Y.map((A,q)=>{const V=Im(A.date,Re,bt,o,r),Ye=Nm(Re,bt,o,r);return d.createElement(t.Month,{"data-animated-month":e.animate?"true":void 0,className:i[N.Month],style:b==null?void 0:b[N.Month],key:q,displayIndex:q,calendarMonth:A},d.createElement(t.MonthCaption,{"data-animated-caption":e.animate?"true":void 0,className:i[N.MonthCaption],style:b==null?void 0:b[N.MonthCaption],calendarMonth:A,displayIndex:q},a!=null&&a.startsWith("dropdown")?d.createElement(t.DropdownNav,{className:i[N.Dropdowns],style:b==null?void 0:b[N.Dropdowns]},a==="dropdown"||a==="dropdown-months"?d.createElement(t.MonthsDropdown,{className:i[N.MonthsDropdown],"aria-label":Js(),classNames:i,components:t,disabled:!!e.disableNavigation,onChange:gi(A.date),options:V,style:b==null?void 0:b[N.Dropdown],value:r.getMonth(A.date)}):d.createElement("span",{role:"status","aria-live":"polite"},D(A.date,r)),a==="dropdown"||a==="dropdown-years"?d.createElement(t.YearsDropdown,{className:i[N.YearsDropdown],"aria-label":ni(r.options),classNames:i,components:t,disabled:!!e.disableNavigation,onChange:hi(A.date),options:Ye,style:b==null?void 0:b[N.Dropdown],value:r.getYear(A.date)}):d.createElement("span",{role:"status","aria-live":"polite"},P(A.date,r))):d.createElement(t.CaptionLabel,{className:i[N.CaptionLabel],role:"status","aria-live":"polite"},C(A.date,r.options,r))),d.createElement(t.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":Zs(A.date,r.options,r)||void 0,className:i[N.MonthGrid],style:b==null?void 0:b[N.MonthGrid]},!e.hideWeekdays&&d.createElement(t.Weekdays,{"data-animated-weekdays":e.animate?"true":void 0,className:i[N.Weekdays],style:b==null?void 0:b[N.Weekdays]},w&&d.createElement(t.WeekNumberHeader,{"aria-label":oi(r.options),className:i[N.WeekNumberHeader],style:b==null?void 0:b[N.WeekNumberHeader],scope:"col"},$()),ri.map((ge,Wt)=>d.createElement(t.Weekday,{"aria-label":ei(ge,r.options,r),className:i[N.Weekday],key:Wt,style:b==null?void 0:b[N.Weekday],scope:"col"},E(ge,r.options,r)))),d.createElement(t.Weeks,{"data-animated-weeks":e.animate?"true":void 0,className:i[N.Weeks],style:b==null?void 0:b[N.Weeks]},A.weeks.map((ge,Wt)=>d.createElement(t.Week,{className:i[N.Week],key:ge.weekNumber,style:b==null?void 0:b[N.Week],week:ge},w&&d.createElement(t.WeekNumber,{week:ge,style:b==null?void 0:b[N.WeekNumber],"aria-label":ti(ge.weekNumber,{locale:s}),className:i[N.WeekNumber],scope:"row",role:"rowheader"},j(ge.weekNumber)),ge.days.map(ee=>{const{date:Se}=ee,L=rt(ee);if(L[G.focused]=!L.hidden&&!!(At!=null&&At.isEqualTo(ee)),L[we.selected]=(Xe==null?void 0:Xe(Se))||L.selected,hn(Ze)){const{from:uo,to:fo}=Ze;L[we.range_start]=!!(uo&&fo&&r.isSameDay(Se,uo)),L[we.range_end]=!!(uo&&fo&&r.isSameDay(Se,fo)),L[we.range_middle]=Ae(Ze,Se,!0,r)}const yi=Om(L,b,e.modifiersStyles),ki=Yp(L,i,e.modifiersClassNames),vi=!bn&&!L.hidden?Xs(Se,L,r.options,r):void 0;return d.createElement(t.Day,{key:`${r.format(Se,"yyyy-MM-dd")}_${r.format(ee.displayMonth,"yyyy-MM")}`,day:ee,modifiers:L,className:ki.join(" "),style:yi,role:"gridcell","aria-selected":L.selected||void 0,"aria-label":vi,"data-day":r.format(Se,"yyyy-MM-dd"),"data-month":ee.outside?r.format(Se,"yyyy-MM"):void 0,"data-selected":L.selected||void 0,"data-disabled":L.disabled||void 0,"data-hidden":L.hidden||void 0,"data-outside":ee.outside||void 0,"data-focused":L.focused||void 0,"data-today":L.today||void 0},!L.hidden&&bn?d.createElement(t.DayButton,{className:i[N.DayButton],style:b==null?void 0:b[N.DayButton],type:"button",day:ee,modifiers:L,disabled:L.disabled||void 0,tabIndex:Ks(ee)?0:-1,"aria-label":qs(Se,L,r.options,r),onClick:ai(ee,L),onBlur:ci(ee,L),onFocus:li(ee,L),onKeyDown:di(ee,L),onMouseEnter:ui(ee,L),onMouseLeave:fi(ee,L)},S(Se,r.options,r)):!L.hidden&&S(ee.date,r.options,r))}))))))})),e.footer&&d.createElement(t.Footer,{className:i[N.Footer],style:b==null?void 0:b[N.Footer],role:"status","aria-live":"polite"},e.footer)))}const xb=d.memo(({...e})=>l.jsx(yb,{mode:"single",...e})),yb=p(bb)`
|
|
2731
|
+
${`${ct("bg-borderless",!0)}: transparent`};
|
|
2732
|
+
${`${ct("border-borderless",!0)}: transparent`};
|
|
2733
|
+
${`${ct("color-borderless",!0)}: ${c("color-white")}`};
|
|
2734
|
+
${`${ct("border-hover-borderless",!0)}: ${c("color-white")}`};
|
|
2735
|
+
${`${ct("color-hover-borderless",!0)}: ${c("color-white")}`};
|
|
2736
|
+
${`${ct("bg-hover-borderless",!0)}: transparent`};
|
|
2737
|
+
`;function $h(e,t,o="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:o}).format(t).split(/\s/g).slice(2).join(" ")}const To={},Tt={};function ot(e,t){try{const n=(To[e]||(To[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return n in Tt?Tt[n]:er(n,n.split(":"))}catch{if(e in Tt)return Tt[e];const o=e==null?void 0:e.match(jh);return o?er(e,o.slice(1)):NaN}}const jh=/([+-]\d\d):?(\d\d)?/;function er(e,t){const o=+(t[0]||0),n=+(t[1]||0),r=+(t[2]||0)/60;return Tt[e]=o*60+n>0?o*60+n+r:o*60-n-r}class Oe extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(ot(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Ks(this),Go(this)):this.setTime(Date.now())}static tz(t,...o){return o.length?new Oe(...o,t):new Oe(Date.now(),t)}withTimeZone(t){return new Oe(+this,t)}getTimezoneOffset(){const t=-ot(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Go(this),+this}[Symbol.for("constructDateFrom")](t){return new Oe(+new Date(t),this.timeZone)}}const tr=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!tr.test(e))return;const t=e.replace(tr,"$1UTC");Oe.prototype[t]&&(e.startsWith("get")?Oe.prototype[e]=function(){return this.internal[t]()}:(Oe.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Th(this),+this},Oe.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Go(this),+this}))});function Go(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-ot(e.timeZone,e)*60))}function Th(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ks(e)}function Ks(e){const t=ot(e.timeZone,e),o=t>0?Math.floor(t):Math.ceil(t),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),s=-new Date(+n).getTimezoneOffset(),l=r-s,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();l&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+l);const u=r-o;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);const f=new Date(+e);f.setUTCSeconds(0);const p=r>0?f.getSeconds():(f.getSeconds()-60)%60,g=Math.round(-(ot(e.timeZone,e)*60))%60;(g||p)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+g),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+g+p));const h=ot(e.timeZone,e),x=h>0?Math.floor(h):Math.ceil(h),y=-new Date(+e).getTimezoneOffset()-x,v=x!==o,w=y-u;if(v&&w){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w);const k=ot(e.timeZone,e),S=k>0?Math.floor(k):Math.ceil(k),$=x-S;$&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+$),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+$))}}class te extends Oe{static tz(t,...o){return o.length?new te(...o,t):new te(Date.now(),t)}toISOString(){const[t,o,n]=this.tzComponents(),r=`${t}${o}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,o,n,r]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${n} ${o} ${r}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[o,n,r]=this.tzComponents();return`${t} GMT${o}${n}${r} (${$h(this.timeZone,this)})`}toLocaleString(t,o){return Date.prototype.toLocaleString.call(this,t,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleDateString(t,o){return Date.prototype.toLocaleDateString.call(this,t,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleTimeString(t,o){return Date.prototype.toLocaleTimeString.call(this,t,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),o=t>0?"-":"+",n=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),r=String(Math.abs(t)%60).padStart(2,"0");return[o,n,r]}withTimeZone(t){return new te(+this,t)}[Symbol.for("constructDateFrom")](t){return new te(+new Date(t),this.timeZone)}}const Dh={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Eh=(e,t,o)=>{let n;const r=Dh[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n};function Do(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}const Mh={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zh={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Oh={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ih={date:Do({formats:Mh,defaultWidth:"full"}),time:Do({formats:zh,defaultWidth:"full"}),dateTime:Do({formats:Oh,defaultWidth:"full"})},Rh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Nh=(e,t,o,n)=>Rh[e];function $t(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,i=o!=null&&o.width?String(o.width):l;r=e.formattingValues[i]||e.formattingValues[l]}else{const l=e.defaultWidth,i=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[i]||e.values[l]}const s=e.argumentCallback?e.argumentCallback(t):t;return r[s]}}const Fh={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ah={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_h={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wh={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Lh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Bh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ph=(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Hh={ordinalNumber:Ph,era:$t({values:Fh,defaultWidth:"wide"}),quarter:$t({values:Ah,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$t({values:_h,defaultWidth:"wide"}),day:$t({values:Wh,defaultWidth:"wide"}),dayPeriod:$t({values:Lh,defaultWidth:"wide",formattingValues:Bh,defaultFormattingWidth:"wide"})};function jt(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(r);if(!s)return null;const l=s[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?Gh(i,g=>g.test(l)):Vh(i,g=>g.test(l));let f;f=e.valueCallback?e.valueCallback(u):u,f=o.valueCallback?o.valueCallback(f):f;const p=t.slice(l.length);return{value:f,rest:p}}}function Vh(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function Gh(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function Uh(e){return(t,o={})=>{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],s=t.match(e.parsePattern);if(!s)return null;let l=e.valueCallback?e.valueCallback(s[0]):s[0];l=o.valueCallback?o.valueCallback(l):l;const i=t.slice(r.length);return{value:l,rest:i}}}const Yh=/^(\d+)(th|st|nd|rd)?/i,Kh=/\d+/i,qh={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zh={any:[/^b/i,/^(a|c)/i]},Xh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Jh={any:[/1/i,/2/i,/3/i,/4/i]},Qh={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},em={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tm={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},om={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nm={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rm={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},sm={ordinalNumber:Uh({matchPattern:Yh,parsePattern:Kh,valueCallback:e=>parseInt(e,10)}),era:jt({matchPatterns:qh,defaultMatchWidth:"wide",parsePatterns:Zh,defaultParseWidth:"any"}),quarter:jt({matchPatterns:Xh,defaultMatchWidth:"wide",parsePatterns:Jh,defaultParseWidth:"any",valueCallback:e=>e+1}),month:jt({matchPatterns:Qh,defaultMatchWidth:"wide",parsePatterns:em,defaultParseWidth:"any"}),day:jt({matchPatterns:tm,defaultMatchWidth:"wide",parsePatterns:om,defaultParseWidth:"any"}),dayPeriod:jt({matchPatterns:nm,defaultMatchWidth:"any",parsePatterns:rm,defaultParseWidth:"any"})},qs={code:"en-US",formatDistance:Eh,formatLong:Ih,formatRelative:Nh,localize:Hh,match:sm,options:{weekStartsOn:0,firstWeekContainsDate:1}},or=5,im=4;function am(e,t){const o=t.startOfMonth(e),n=o.getDay()>0?o.getDay():7,r=t.addDays(e,-n+1),s=t.addDays(r,or*7-1);return t.getMonth(e)===t.getMonth(s)?or:im}function Zs(e,t){const o=t.startOfMonth(e),n=o.getDay();return n===1?o:n===0?t.addDays(o,-1*6):t.addDays(o,-1*(n-1))}function lm(e,t){const o=Zs(e,t),n=am(e,t);return t.addDays(o,n*7-1)}class Ge{constructor(t,o){this.Date=Date,this.today=()=>{var n;return(n=this.overrides)!=null&&n.today?this.overrides.today():this.options.timeZone?te.tz(this.options.timeZone):new this.Date},this.newDate=(n,r,s)=>{var l;return(l=this.overrides)!=null&&l.newDate?this.overrides.newDate(n,r,s):this.options.timeZone?new te(n,r,s,this.options.timeZone):new Date(n,r,s)},this.addDays=(n,r)=>{var s;return(s=this.overrides)!=null&&s.addDays?this.overrides.addDays(n,r):B.addDays(n,r)},this.addMonths=(n,r)=>{var s;return(s=this.overrides)!=null&&s.addMonths?this.overrides.addMonths(n,r):B.addMonths(n,r)},this.addWeeks=(n,r)=>{var s;return(s=this.overrides)!=null&&s.addWeeks?this.overrides.addWeeks(n,r):B.addWeeks(n,r)},this.addYears=(n,r)=>{var s;return(s=this.overrides)!=null&&s.addYears?this.overrides.addYears(n,r):B.addYears(n,r)},this.differenceInCalendarDays=(n,r)=>{var s;return(s=this.overrides)!=null&&s.differenceInCalendarDays?this.overrides.differenceInCalendarDays(n,r):B.differenceInCalendarDays(n,r)},this.differenceInCalendarMonths=(n,r)=>{var s;return(s=this.overrides)!=null&&s.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(n,r):B.differenceInCalendarMonths(n,r)},this.eachMonthOfInterval=n=>{var r;return(r=this.overrides)!=null&&r.eachMonthOfInterval?this.overrides.eachMonthOfInterval(n):B.eachMonthOfInterval(n)},this.endOfBroadcastWeek=n=>{var r;return(r=this.overrides)!=null&&r.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(n):lm(n,this)},this.endOfISOWeek=n=>{var r;return(r=this.overrides)!=null&&r.endOfISOWeek?this.overrides.endOfISOWeek(n):B.endOfISOWeek(n)},this.endOfMonth=n=>{var r;return(r=this.overrides)!=null&&r.endOfMonth?this.overrides.endOfMonth(n):B.endOfMonth(n)},this.endOfWeek=(n,r)=>{var s;return(s=this.overrides)!=null&&s.endOfWeek?this.overrides.endOfWeek(n,r):B.endOfWeek(n,this.options)},this.endOfYear=n=>{var r;return(r=this.overrides)!=null&&r.endOfYear?this.overrides.endOfYear(n):B.endOfYear(n)},this.format=(n,r,s)=>{var i;const l=(i=this.overrides)!=null&&i.format?this.overrides.format(n,r,this.options):B.format(n,r,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(l):l},this.getISOWeek=n=>{var r;return(r=this.overrides)!=null&&r.getISOWeek?this.overrides.getISOWeek(n):B.getISOWeek(n)},this.getMonth=(n,r)=>{var s;return(s=this.overrides)!=null&&s.getMonth?this.overrides.getMonth(n,this.options):B.getMonth(n,this.options)},this.getYear=(n,r)=>{var s;return(s=this.overrides)!=null&&s.getYear?this.overrides.getYear(n,this.options):B.getYear(n,this.options)},this.getWeek=(n,r)=>{var s;return(s=this.overrides)!=null&&s.getWeek?this.overrides.getWeek(n,this.options):B.getWeek(n,this.options)},this.isAfter=(n,r)=>{var s;return(s=this.overrides)!=null&&s.isAfter?this.overrides.isAfter(n,r):B.isAfter(n,r)},this.isBefore=(n,r)=>{var s;return(s=this.overrides)!=null&&s.isBefore?this.overrides.isBefore(n,r):B.isBefore(n,r)},this.isDate=n=>{var r;return(r=this.overrides)!=null&&r.isDate?this.overrides.isDate(n):B.isDate(n)},this.isSameDay=(n,r)=>{var s;return(s=this.overrides)!=null&&s.isSameDay?this.overrides.isSameDay(n,r):B.isSameDay(n,r)},this.isSameMonth=(n,r)=>{var s;return(s=this.overrides)!=null&&s.isSameMonth?this.overrides.isSameMonth(n,r):B.isSameMonth(n,r)},this.isSameYear=(n,r)=>{var s;return(s=this.overrides)!=null&&s.isSameYear?this.overrides.isSameYear(n,r):B.isSameYear(n,r)},this.max=n=>{var r;return(r=this.overrides)!=null&&r.max?this.overrides.max(n):B.max(n)},this.min=n=>{var r;return(r=this.overrides)!=null&&r.min?this.overrides.min(n):B.min(n)},this.setMonth=(n,r)=>{var s;return(s=this.overrides)!=null&&s.setMonth?this.overrides.setMonth(n,r):B.setMonth(n,r)},this.setYear=(n,r)=>{var s;return(s=this.overrides)!=null&&s.setYear?this.overrides.setYear(n,r):B.setYear(n,r)},this.startOfBroadcastWeek=(n,r)=>{var s;return(s=this.overrides)!=null&&s.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(n,this):Zs(n,this)},this.startOfDay=n=>{var r;return(r=this.overrides)!=null&&r.startOfDay?this.overrides.startOfDay(n):B.startOfDay(n)},this.startOfISOWeek=n=>{var r;return(r=this.overrides)!=null&&r.startOfISOWeek?this.overrides.startOfISOWeek(n):B.startOfISOWeek(n)},this.startOfMonth=n=>{var r;return(r=this.overrides)!=null&&r.startOfMonth?this.overrides.startOfMonth(n):B.startOfMonth(n)},this.startOfWeek=(n,r)=>{var s;return(s=this.overrides)!=null&&s.startOfWeek?this.overrides.startOfWeek(n,this.options):B.startOfWeek(n,this.options)},this.startOfYear=n=>{var r;return(r=this.overrides)!=null&&r.startOfYear?this.overrides.startOfYear(n):B.startOfYear(n)},this.options={locale:qs,...t},this.overrides=o}getDigitMap(){const{numerals:t="latn"}=this.options,o=new Intl.NumberFormat("en-US",{numberingSystem:t}),n={};for(let r=0;r<10;r++)n[r.toString()]=o.format(r);return n}replaceDigits(t){const o=this.getDigitMap();return t.replace(/\d/g,n=>o[n]||n)}formatNumber(t){return this.replaceDigits(t.toString())}}const Ae=new Ge;class Xs{constructor(t,o,n=Ae){this.date=t,this.displayMonth=o,this.outside=!!(o&&!n.isSameMonth(t,o)),this.dateLib=n}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class cm{constructor(t,o){this.date=t,this.weeks=o}}class dm{constructor(t,o){this.days=o,this.weekNumber=t}}function um(e){return d.createElement("button",{...e})}function fm(e){return d.createElement("span",{...e})}function pm(e){const{size:t=24,orientation:o="left",className:n}=e;return d.createElement("svg",{className:n,width:t,height:t,viewBox:"0 0 24 24"},o==="up"&&d.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),o==="down"&&d.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),o==="left"&&d.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),o==="right"&&d.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function gm(e){const{day:t,modifiers:o,...n}=e;return d.createElement("td",{...n})}function hm(e){const{day:t,modifiers:o,...n}=e,r=d.useRef(null);return d.useEffect(()=>{var s;o.focused&&((s=r.current)==null||s.focus())},[o.focused]),d.createElement("button",{ref:r,...n})}var R;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(R||(R={}));var q;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(q||(q={}));var $e;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})($e||($e={}));var le;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(le||(le={}));function mm(e){const{options:t,className:o,components:n,classNames:r,...s}=e,l=[r[R.Dropdown],o].join(" "),i=t==null?void 0:t.find(({value:u})=>u===s.value);return d.createElement("span",{"data-disabled":s.disabled,className:r[R.DropdownRoot]},d.createElement(n.Select,{className:l,...s},t==null?void 0:t.map(({value:u,label:f,disabled:p})=>d.createElement(n.Option,{key:u,value:u,disabled:p},f))),d.createElement("span",{className:r[R.CaptionLabel],"aria-hidden":!0},i==null?void 0:i.label,d.createElement(n.Chevron,{orientation:"down",size:18,className:r[R.Chevron]})))}function bm(e){return d.createElement("div",{...e})}function xm(e){return d.createElement("div",{...e})}function ym(e){const{calendarMonth:t,displayIndex:o,...n}=e;return d.createElement("div",{...n},e.children)}function km(e){const{calendarMonth:t,displayIndex:o,...n}=e;return d.createElement("div",{...n})}function vm(e){return d.createElement("table",{...e})}function wm(e){return d.createElement("div",{...e})}const Js=d.createContext(void 0);function Wt(){const e=d.useContext(Js);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function Cm(e){const{components:t}=Wt();return d.createElement(t.Dropdown,{...e})}function Sm(e){const{onPreviousClick:t,onNextClick:o,previousMonth:n,nextMonth:r,...s}=e,{components:l,classNames:i,labels:{labelPrevious:u,labelNext:f}}=Wt(),p=d.useCallback(h=>{r&&(o==null||o(h))},[r,o]),g=d.useCallback(h=>{n&&(t==null||t(h))},[n,t]);return d.createElement("nav",{...s},d.createElement(l.PreviousMonthButton,{type:"button",className:i[R.PreviousMonthButton],tabIndex:n?void 0:-1,"aria-disabled":n?void 0:!0,"aria-label":u(n),onClick:g},d.createElement(l.Chevron,{disabled:n?void 0:!0,className:i[R.Chevron],orientation:"left"})),d.createElement(l.NextMonthButton,{type:"button",className:i[R.NextMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":f(r),onClick:p},d.createElement(l.Chevron,{disabled:r?void 0:!0,orientation:"right",className:i[R.Chevron]})))}function $m(e){const{components:t}=Wt();return d.createElement(t.Button,{...e})}function jm(e){return d.createElement("option",{...e})}function Tm(e){const{components:t}=Wt();return d.createElement(t.Button,{...e})}function Dm(e){const{rootRef:t,...o}=e;return d.createElement("div",{...o,ref:t})}function Em(e){return d.createElement("select",{...e})}function Mm(e){const{week:t,...o}=e;return d.createElement("tr",{...o})}function zm(e){return d.createElement("th",{...e})}function Om(e){return d.createElement("thead",{"aria-hidden":!0},d.createElement("tr",{...e}))}function Im(e){const{week:t,...o}=e;return d.createElement("th",{...o})}function Rm(e){return d.createElement("th",{...e})}function Nm(e){return d.createElement("tbody",{...e})}function Fm(e){const{components:t}=Wt();return d.createElement(t.Dropdown,{...e})}const Am=Object.freeze(Object.defineProperty({__proto__:null,Button:um,CaptionLabel:fm,Chevron:pm,Day:gm,DayButton:hm,Dropdown:mm,DropdownNav:bm,Footer:xm,Month:ym,MonthCaption:km,MonthGrid:vm,Months:wm,MonthsDropdown:Cm,Nav:Sm,NextMonthButton:$m,Option:jm,PreviousMonthButton:Tm,Root:Dm,Select:Em,Week:Mm,WeekNumber:Im,WeekNumberHeader:Rm,Weekday:zm,Weekdays:Om,Weeks:Nm,YearsDropdown:Fm},Symbol.toStringTag,{value:"Module"}));function Le(e,t,o=!1,n=Ae){let{from:r,to:s}=e;const{differenceInCalendarDays:l,isSameDay:i}=n;return r&&s?(l(s,r)<0&&([r,s]=[s,r]),l(t,r)>=(o?1:0)&&l(s,t)>=(o?1:0)):!o&&s?i(s,t):!o&&r?i(r,t):!1}function Qs(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Sn(e){return!!(e&&typeof e=="object"&&"from"in e)}function ei(e){return!!(e&&typeof e=="object"&&"after"in e)}function ti(e){return!!(e&&typeof e=="object"&&"before"in e)}function oi(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function ni(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Be(e,t,o=Ae){const n=Array.isArray(t)?t:[t],{isSameDay:r,differenceInCalendarDays:s,isAfter:l}=o;return n.some(i=>{if(typeof i=="boolean")return i;if(o.isDate(i))return r(e,i);if(ni(i,o))return i.includes(e);if(Sn(i))return Le(i,e,!1,o);if(oi(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(Qs(i)){const u=s(i.before,e),f=s(i.after,e),p=u>0,g=f<0;return l(i.before,i.after)?g&&p:p||g}return ei(i)?s(e,i.after)>0:ti(i)?s(i.before,e)>0:typeof i=="function"?i(e):!1})}function _m(e,t,o,n,r){const{disabled:s,hidden:l,modifiers:i,showOutsideDays:u,broadcastCalendar:f,today:p}=t,{isSameDay:g,isSameMonth:h,startOfMonth:x,isBefore:b,endOfMonth:y,isAfter:v}=r,w=o&&x(o),k=n&&y(n),S={[q.focused]:[],[q.outside]:[],[q.disabled]:[],[q.hidden]:[],[q.today]:[]},$={};for(const C of e){const{date:T,displayMonth:j}=C,D=!!(j&&!h(T,j)),W=!!(w&&b(T,w)),G=!!(k&&v(T,k)),H=!!(s&&Be(T,s,r)),X=!!(l&&Be(T,l,r))||W||G||!f&&!u&&D||f&&u===!1&&D,Ue=g(T,p??r.today());D&&S.outside.push(C),H&&S.disabled.push(C),X&&S.hidden.push(C),Ue&&S.today.push(C),i&&Object.keys(i).forEach(Ye=>{const Ke=i==null?void 0:i[Ye];Ke&&Be(T,Ke,r)&&($[Ye]?$[Ye].push(C):$[Ye]=[C])})}return C=>{const T={[q.focused]:!1,[q.disabled]:!1,[q.hidden]:!1,[q.outside]:!1,[q.today]:!1},j={};for(const D in S){const W=S[D];T[D]=W.some(G=>G===C)}for(const D in $)j[D]=$[D].some(W=>W===C);return{...T,...j}}}function Wm(e,t,o={}){return Object.entries(e).filter(([,r])=>r===!0).reduce((r,[s])=>(o[s]?r.push(o[s]):t[q[s]]?r.push(t[q[s]]):t[$e[s]]&&r.push(t[$e[s]]),r),[t[R.Day]])}function Lm(e){return{...Am,...e}}function Bm(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([o,n])=>{o.startsWith("data-")&&(t[o]=n)}),t}function Pm(){const e={};for(const t in R)e[R[t]]=`rdp-${R[t]}`;for(const t in q)e[q[t]]=`rdp-${q[t]}`;for(const t in $e)e[$e[t]]=`rdp-${$e[t]}`;for(const t in le)e[le[t]]=`rdp-${le[t]}`;return e}function ri(e,t,o){return(o??new Ge(t)).format(e,"LLLL y")}const Hm=ri;function Vm(e,t,o){return(o??new Ge(t)).format(e,"d")}function Gm(e,t=Ae){return t.format(e,"LLLL")}function Um(e,t,o){return(o??new Ge(t)).format(e,"cccccc")}function Ym(e,t=Ae){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Km(){return""}function si(e,t=Ae){return t.format(e,"yyyy")}const qm=si,Zm=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:ri,formatDay:Vm,formatMonthCaption:Hm,formatMonthDropdown:Gm,formatWeekNumber:Ym,formatWeekNumberHeader:Km,formatWeekdayName:Um,formatYearCaption:qm,formatYearDropdown:si},Symbol.toStringTag,{value:"Module"}));function Xm(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Zm,...e}}function Jm(e,t,o,n,r){const{startOfMonth:s,startOfYear:l,endOfYear:i,eachMonthOfInterval:u,getMonth:f}=r;return u({start:l(e),end:i(e)}).map(h=>{const x=n.formatMonthDropdown(h,r),b=f(h),y=t&&h<s(t)||o&&h>s(o)||!1;return{value:b,label:x,disabled:y}})}function Qm(e,t={},o={}){let n={...t==null?void 0:t[R.Day]};return Object.entries(e).filter(([,r])=>r===!0).forEach(([r])=>{n={...n,...o==null?void 0:o[r]}}),n}function eb(e,t,o){const n=e.today(),r=t?e.startOfISOWeek(n):e.startOfWeek(n),s=[];for(let l=0;l<7;l++){const i=e.addDays(r,l);s.push(i)}return s}function tb(e,t,o,n,r=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:l,addYears:i,getYear:u,isBefore:f,isSameYear:p}=n,g=s(e),h=l(t),x=[];let b=g;for(;f(b,h)||p(b,h);)x.push(b),b=i(b,1);return r&&x.reverse(),x.map(y=>{const v=o.formatYearDropdown(y,n);return{value:u(y),label:v,disabled:!1}})}function ii(e,t,o,n){let r=(n??new Ge(o)).format(e,"PPPP");return t.today&&(r=`Today, ${r}`),t.selected&&(r=`${r}, selected`),r}const ob=ii;function ai(e,t,o){return(o??new Ge(t)).format(e,"LLLL y")}const nb=ai;function rb(e,t,o,n){let r=(n??new Ge(o)).format(e,"PPPP");return t!=null&&t.today&&(r=`Today, ${r}`),r}function sb(e){return"Choose the Month"}function ib(){return""}function ab(e){return"Go to the Next Month"}function lb(e){return"Go to the Previous Month"}function cb(e,t,o){return(o??new Ge(t)).format(e,"cccc")}function db(e,t){return`Week ${e}`}function ub(e){return"Week Number"}function fb(e){return"Choose the Year"}const pb=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:nb,labelDay:ob,labelDayButton:ii,labelGrid:ai,labelGridcell:rb,labelMonthDropdown:sb,labelNav:ib,labelNext:ab,labelPrevious:lb,labelWeekNumber:db,labelWeekNumberHeader:ub,labelWeekday:cb,labelYearDropdown:fb},Symbol.toStringTag,{value:"Module"})),Lt=e=>e instanceof HTMLElement?e:null,Eo=e=>[...e.querySelectorAll("[data-animated-month]")??[]],gb=e=>Lt(e.querySelector("[data-animated-month]")),Mo=e=>Lt(e.querySelector("[data-animated-caption]")),zo=e=>Lt(e.querySelector("[data-animated-weeks]")),hb=e=>Lt(e.querySelector("[data-animated-nav]")),mb=e=>Lt(e.querySelector("[data-animated-weekdays]"));function bb(e,t,{classNames:o,months:n,focused:r,dateLib:s}){const l=d.useRef(null),i=d.useRef(n),u=d.useRef(!1);d.useLayoutEffect(()=>{const f=i.current;if(i.current=n,!t||!e.current||!(e.current instanceof HTMLElement)||n.length===0||f.length===0||n.length!==f.length)return;const p=s.isSameMonth(n[0].date,f[0].date),g=s.isAfter(n[0].date,f[0].date),h=g?o[le.caption_after_enter]:o[le.caption_before_enter],x=g?o[le.weeks_after_enter]:o[le.weeks_before_enter],b=l.current,y=e.current.cloneNode(!0);if(y instanceof HTMLElement?(Eo(y).forEach(S=>{if(!(S instanceof HTMLElement))return;const $=gb(S);$&&S.contains($)&&S.removeChild($);const C=Mo(S);C&&C.classList.remove(h);const T=zo(S);T&&T.classList.remove(x)}),l.current=y):l.current=null,u.current||p||r)return;const v=b instanceof HTMLElement?Eo(b):[],w=Eo(e.current);if(w!=null&&w.every(k=>k instanceof HTMLElement)&&v&&v.every(k=>k instanceof HTMLElement)){u.current=!0,e.current.style.isolation="isolate";const k=hb(e.current);k&&(k.style.zIndex="1"),w.forEach((S,$)=>{const C=v[$];if(!C)return;S.style.position="relative",S.style.overflow="hidden";const T=Mo(S);T&&T.classList.add(h);const j=zo(S);j&&j.classList.add(x);const D=()=>{u.current=!1,e.current&&(e.current.style.isolation=""),k&&(k.style.zIndex=""),T&&T.classList.remove(h),j&&j.classList.remove(x),S.style.position="",S.style.overflow="",S.contains(C)&&S.removeChild(C)};C.style.pointerEvents="none",C.style.position="absolute",C.style.overflow="hidden",C.setAttribute("aria-hidden","true");const W=mb(C);W&&(W.style.opacity="0");const G=Mo(C);G&&(G.classList.add(g?o[le.caption_before_exit]:o[le.caption_after_exit]),G.addEventListener("animationend",D));const H=zo(C);H&&H.classList.add(g?o[le.weeks_before_exit]:o[le.weeks_after_exit]),S.insertBefore(C,S.firstChild)})}})}function xb(e,t,o,n){const r=e[0],s=e[e.length-1],{ISOWeek:l,fixedWeeks:i,broadcastCalendar:u}=o??{},{addDays:f,differenceInCalendarDays:p,differenceInCalendarMonths:g,endOfBroadcastWeek:h,endOfISOWeek:x,endOfMonth:b,endOfWeek:y,isAfter:v,startOfBroadcastWeek:w,startOfISOWeek:k,startOfWeek:S}=n,$=u?w(r,n):l?k(r):S(r),C=u?h(s):l?x(b(s)):y(b(s)),T=p(C,$),j=g(s,r)+1,D=[];for(let H=0;H<=T;H++){const X=f($,H);if(t&&v(X,t))break;D.push(X)}const G=(u?35:42)*j;if(i&&D.length<G){const H=G-D.length;for(let X=0;X<H;X++){const Ue=f(D[D.length-1],1);D.push(Ue)}}return D}function yb(e){const t=[];return e.reduce((o,n)=>{const r=n.weeks.reduce((s,l)=>s.concat(l.days.slice()),t.slice());return o.concat(r.slice())},t.slice())}function kb(e,t,o,n){const{numberOfMonths:r=1}=o,s=[];for(let l=0;l<r;l++){const i=n.addMonths(e,l);if(t&&i>t)break;s.push(i)}return s}function nr(e,t,o,n){const{month:r,defaultMonth:s,today:l=n.today(),numberOfMonths:i=1}=e;let u=r||s||l;const{differenceInCalendarMonths:f,addMonths:p,startOfMonth:g}=n;if(o&&f(o,u)<i-1){const h=-1*(i-1);u=p(o,h)}return t&&f(u,t)<0&&(u=t),g(u)}function vb(e,t,o,n){const{addDays:r,endOfBroadcastWeek:s,endOfISOWeek:l,endOfMonth:i,endOfWeek:u,getISOWeek:f,getWeek:p,startOfBroadcastWeek:g,startOfISOWeek:h,startOfWeek:x}=n,b=e.reduce((y,v)=>{const w=o.broadcastCalendar?g(v,n):o.ISOWeek?h(v):x(v),k=o.broadcastCalendar?s(v):o.ISOWeek?l(i(v)):u(i(v)),S=t.filter(j=>j>=w&&j<=k),$=o.broadcastCalendar?35:42;if(o.fixedWeeks&&S.length<$){const j=t.filter(D=>{const W=$-S.length;return D>k&&D<=r(k,W)});S.push(...j)}const C=S.reduce((j,D)=>{const W=o.ISOWeek?f(D):p(D),G=j.find(X=>X.weekNumber===W),H=new Xs(D,v,n);return G?G.days.push(H):j.push(new dm(W,[H])),j},[]),T=new cm(v,C);return y.push(T),y},[]);return o.reverseMonths?b.reverse():b}function wb(e,t){let{startMonth:o,endMonth:n}=e;const{startOfYear:r,startOfDay:s,startOfMonth:l,endOfMonth:i,addYears:u,endOfYear:f,newDate:p,today:g}=t,{fromYear:h,toYear:x,fromMonth:b,toMonth:y}=e;!o&&b&&(o=b),!o&&h&&(o=t.newDate(h,0,1)),!n&&y&&(n=y),!n&&x&&(n=p(x,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return o?o=l(o):h?o=p(h,0,1):!o&&v&&(o=r(u(e.today??g(),-100))),n?n=i(n):x?n=p(x,11,31):!n&&v&&(n=f(e.today??g())),[o&&s(o),n&&s(n)]}function Cb(e,t,o,n){if(o.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:s=1}=o,{startOfMonth:l,addMonths:i,differenceInCalendarMonths:u}=n,f=r?s:1,p=l(e);if(!t)return i(p,f);if(!(u(t,e)<s))return i(p,f)}function Sb(e,t,o,n){if(o.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:s}=o,{startOfMonth:l,addMonths:i,differenceInCalendarMonths:u}=n,f=r?s??1:1,p=l(e);if(!t)return i(p,-f);if(!(u(p,t)<=0))return i(p,-f)}function $b(e){const t=[];return e.reduce((o,n)=>o.concat(n.weeks.slice()),t.slice())}function go(e,t){const[o,n]=d.useState(e);return[t===void 0?o:t,n]}function jb(e,t){const[o,n]=wb(e,t),{startOfMonth:r,endOfMonth:s}=t,l=nr(e,o,n,t),[i,u]=go(l,e.month?l:void 0);d.useEffect(()=>{const T=nr(e,o,n,t);u(T)},[e.timeZone]);const f=kb(i,n,e,t),p=xb(f,e.endMonth?s(e.endMonth):void 0,e,t),g=vb(f,p,e,t),h=$b(g),x=yb(g),b=Sb(i,o,e,t),y=Cb(i,n,e,t),{disableNavigation:v,onMonthChange:w}=e,k=T=>h.some(j=>j.days.some(D=>D.isEqualTo(T))),S=T=>{if(v)return;let j=r(T);o&&j<r(o)&&(j=r(o)),n&&j>r(n)&&(j=r(n)),u(j),w==null||w(j)};return{months:g,weeks:h,days:x,navStart:o,navEnd:n,previousMonth:b,nextMonth:y,goToMonth:S,goToDay:T=>{k(T)||S(T.date)}}}var Ee;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Ee||(Ee={}));function rr(e){return!e[q.disabled]&&!e[q.hidden]&&!e[q.outside]}function Tb(e,t,o,n){let r,s=-1;for(const l of e){const i=t(l);rr(i)&&(i[q.focused]&&s<Ee.FocusedModifier?(r=l,s=Ee.FocusedModifier):n!=null&&n.isEqualTo(l)&&s<Ee.LastFocused?(r=l,s=Ee.LastFocused):o(l.date)&&s<Ee.Selected?(r=l,s=Ee.Selected):i[q.today]&&s<Ee.Today&&(r=l,s=Ee.Today))}return r||(r=e.find(l=>rr(t(l)))),r}function Db(e,t,o,n,r,s,l){const{ISOWeek:i,broadcastCalendar:u}=s,{addDays:f,addMonths:p,addWeeks:g,addYears:h,endOfBroadcastWeek:x,endOfISOWeek:b,endOfWeek:y,max:v,min:w,startOfBroadcastWeek:k,startOfISOWeek:S,startOfWeek:$}=l;let T={day:f,week:g,month:p,year:h,startOfWeek:j=>u?k(j,l):i?S(j):$(j),endOfWeek:j=>u?x(j):i?b(j):y(j)}[e](o,t==="after"?1:-1);return t==="before"&&n?T=v([n,T]):t==="after"&&r&&(T=w([r,T])),T}function li(e,t,o,n,r,s,l,i=0){if(i>365)return;const u=Db(e,t,o.date,n,r,s,l),f=!!(s.disabled&&Be(u,s.disabled,l)),p=!!(s.hidden&&Be(u,s.hidden,l)),g=u,h=new Xs(u,g,l);return!f&&!p?h:li(e,t,h,n,r,s,l,i+1)}function Eb(e,t,o,n,r){const{autoFocus:s}=e,[l,i]=d.useState(),u=Tb(t.days,o,n||(()=>!1),l),[f,p]=d.useState(s?u:void 0);return{isFocusTarget:y=>!!(u!=null&&u.isEqualTo(y)),setFocused:p,focused:f,blur:()=>{i(f),p(void 0)},moveFocus:(y,v)=>{if(!f)return;const w=li(y,v,f,t.navStart,t.navEnd,e,r);w&&(t.goToDay(w),p(w))}}}function Mb(e,t){const{selected:o,required:n,onSelect:r}=e,[s,l]=go(o,r?o:void 0),i=r?o:s,{isSameDay:u}=t,f=x=>(i==null?void 0:i.some(b=>u(b,x)))??!1,{min:p,max:g}=e;return{selected:i,select:(x,b,y)=>{let v=[...i??[]];if(f(x)){if((i==null?void 0:i.length)===p||n&&(i==null?void 0:i.length)===1)return;v=i==null?void 0:i.filter(w=>!u(w,x))}else(i==null?void 0:i.length)===g?v=[x]:v=[...v,x];return r||l(v),r==null||r(v,x,b,y),v},isSelected:f}}function zb(e,t,o=0,n=0,r=!1,s=Ae){const{from:l,to:i}=t||{},{isSameDay:u,isAfter:f,isBefore:p}=s;let g;if(!l&&!i)g={from:e,to:o>0?void 0:e};else if(l&&!i)u(l,e)?o===0?g={from:l,to:e}:r?g={from:l,to:void 0}:g=void 0:p(e,l)?g={from:e,to:l}:g={from:l,to:e};else if(l&&i)if(u(l,e)&&u(i,e))r?g={from:l,to:i}:g=void 0;else if(u(l,e))g={from:l,to:o>0?void 0:e};else if(u(i,e))g={from:e,to:o>0?void 0:e};else if(p(e,l))g={from:e,to:i};else if(f(e,l))g={from:l,to:e};else if(f(e,i))g={from:l,to:e};else throw new Error("Invalid range");if(g!=null&&g.from&&(g!=null&&g.to)){const h=s.differenceInCalendarDays(g.to,g.from);n>0&&h>n?g={from:e,to:void 0}:o>1&&h<o&&(g={from:e,to:void 0})}return g}function Ob(e,t,o=Ae){const n=Array.isArray(t)?t:[t];let r=e.from;const s=o.differenceInCalendarDays(e.to,e.from),l=Math.min(s,6);for(let i=0;i<=l;i++){if(n.includes(r.getDay()))return!0;r=o.addDays(r,1)}return!1}function sr(e,t,o=Ae){return Le(e,t.from,!1,o)||Le(e,t.to,!1,o)||Le(t,e.from,!1,o)||Le(t,e.to,!1,o)}function Ib(e,t,o=Ae){const n=Array.isArray(t)?t:[t];if(n.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:o.isDate(i)?Le(e,i,!1,o):ni(i,o)?i.some(u=>Le(e,u,!1,o)):Sn(i)?i.from&&i.to?sr(e,{from:i.from,to:i.to},o):!1:oi(i)?Ob(e,i.dayOfWeek,o):Qs(i)?o.isAfter(i.before,i.after)?sr(e,{from:o.addDays(i.after,1),to:o.addDays(i.before,-1)},o):Be(e.from,i,o)||Be(e.to,i,o):ei(i)||ti(i)?Be(e.from,i,o)||Be(e.to,i,o):!1))return!0;const l=n.filter(i=>typeof i=="function");if(l.length){let i=e.from;const u=o.differenceInCalendarDays(e.to,e.from);for(let f=0;f<=u;f++){if(l.some(p=>p(i)))return!0;i=o.addDays(i,1)}}return!1}function Rb(e,t){const{disabled:o,excludeDisabled:n,selected:r,required:s,onSelect:l}=e,[i,u]=go(r,l?r:void 0),f=l?r:i;return{selected:f,select:(h,x,b)=>{const{min:y,max:v}=e,w=h?zb(h,f,y,v,s,t):void 0;return n&&o&&(w!=null&&w.from)&&w.to&&Ib({from:w.from,to:w.to},o,t)&&(w.from=h,w.to=void 0),l||u(w),l==null||l(w,h,x,b),w},isSelected:h=>f&&Le(f,h,!1,t)}}function Nb(e,t){const{selected:o,required:n,onSelect:r}=e,[s,l]=go(o,r?o:void 0),i=r?o:s,{isSameDay:u}=t;return{selected:i,select:(g,h,x)=>{let b=g;return!n&&i&&i&&u(g,i)&&(b=void 0),r||l(b),r==null||r(b,g,h,x),b},isSelected:g=>i?u(i,g):!1}}function Fb(e,t){const o=Nb(e,t),n=Mb(e,t),r=Rb(e,t);switch(e.mode){case"single":return o;case"multiple":return n;case"range":return r;default:return}}function Ab(e){var Mn;let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new te(t.today,t.timeZone)),t.month&&(t.month=new te(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new te(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new te(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new te(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new te(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=(Mn=t.selected)==null?void 0:Mn.map(_=>new te(_,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new te(t.selected.from,t.timeZone):void 0,to:t.selected.to?new te(t.selected.to,t.timeZone):void 0}));const{components:o,formatters:n,labels:r,dateLib:s,locale:l,classNames:i}=d.useMemo(()=>{const _={...qs,...t.locale};return{dateLib:new Ge({locale:_,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:Lm(t.components),formatters:Xm(t.formatters),labels:{...pb,...t.labels},locale:_,classNames:{...Pm(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:u,mode:f,navLayout:p,numberOfMonths:g=1,onDayBlur:h,onDayClick:x,onDayFocus:b,onDayKeyDown:y,onDayMouseEnter:v,onDayMouseLeave:w,onNextClick:k,onPrevClick:S,showWeekNumber:$,styles:C}=t,{formatCaption:T,formatDay:j,formatMonthDropdown:D,formatWeekNumber:W,formatWeekNumberHeader:G,formatWeekdayName:H,formatYearDropdown:X}=n,Ue=jb(t,s),{days:Ye,months:Ke,navStart:rt,navEnd:xt,previousMonth:se,nextMonth:ie,goToMonth:Z}=Ue,st=_m(Ye,t,rt,xt,s),{isSelected:yt,select:kt,selected:Bt}=Fb(t,s)??{},{blur:$n,focused:Pt,isFocusTarget:di,moveFocus:jn,setFocused:Ht}=Eb(t,Ue,st,yt??(()=>!1),s),{labelDayButton:ui,labelGridcell:fi,labelGrid:pi,labelMonthDropdown:gi,labelNav:Tn,labelPrevious:hi,labelNext:mi,labelWeekday:bi,labelWeekNumber:xi,labelWeekNumberHeader:yi,labelYearDropdown:ki}=r,vi=d.useMemo(()=>eb(s,t.ISOWeek),[s,t.ISOWeek]),Dn=f!==void 0||x!==void 0,ho=d.useCallback(()=>{se&&(Z(se),S==null||S(se))},[se,Z,S]),mo=d.useCallback(()=>{ie&&(Z(ie),k==null||k(ie))},[Z,ie,k]),wi=d.useCallback((_,U)=>A=>{A.preventDefault(),A.stopPropagation(),Ht(_),kt==null||kt(_.date,U,A),x==null||x(_.date,U,A)},[kt,x,Ht]),Ci=d.useCallback((_,U)=>A=>{Ht(_),b==null||b(_.date,U,A)},[b,Ht]),Si=d.useCallback((_,U)=>A=>{$n(),h==null||h(_.date,U,A)},[$n,h]),$i=d.useCallback((_,U)=>A=>{const Y={ArrowLeft:[A.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[A.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[A.shiftKey?"year":"week","after"],ArrowUp:[A.shiftKey?"year":"week","before"],PageUp:[A.shiftKey?"year":"month","before"],PageDown:[A.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Y[A.key]){A.preventDefault(),A.stopPropagation();const[ce,L]=Y[A.key];jn(ce,L)}y==null||y(_.date,U,A)},[jn,y,t.dir]),ji=d.useCallback((_,U)=>A=>{v==null||v(_.date,U,A)},[v]),Ti=d.useCallback((_,U)=>A=>{w==null||w(_.date,U,A)},[w]),Di=d.useCallback(_=>U=>{const A=Number(U.target.value),Y=s.setMonth(s.startOfMonth(_),A);Z(Y)},[s,Z]),Ei=d.useCallback(_=>U=>{const A=Number(U.target.value),Y=s.setYear(s.startOfMonth(_),A);Z(Y)},[s,Z]),{className:Mi,style:zi}=d.useMemo(()=>({className:[i[R.Root],t.className].filter(Boolean).join(" "),style:{...C==null?void 0:C[R.Root],...t.style}}),[i,t.className,t.style,C]),Oi=Bm(t),En=d.useRef(null);bb(En,!!t.animate,{classNames:i,months:Ke,focused:Pt,dateLib:s});const Ii={dayPickerProps:t,selected:Bt,select:kt,isSelected:yt,months:Ke,nextMonth:ie,previousMonth:se,goToMonth:Z,getModifiers:st,components:o,classNames:i,styles:C,labels:r,formatters:n};return d.createElement(Js.Provider,{value:Ii},d.createElement(o.Root,{rootRef:t.animate?En:void 0,className:Mi,style:zi,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...Oi},d.createElement(o.Months,{className:i[R.Months],style:C==null?void 0:C[R.Months]},!t.hideNavigation&&!p&&d.createElement(o.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[R.Nav],style:C==null?void 0:C[R.Nav],"aria-label":Tn(),onPreviousClick:ho,onNextClick:mo,previousMonth:se,nextMonth:ie}),Ke.map((_,U)=>d.createElement(o.Month,{"data-animated-month":t.animate?"true":void 0,className:i[R.Month],style:C==null?void 0:C[R.Month],key:U,displayIndex:U,calendarMonth:_},p==="around"&&!t.hideNavigation&&U===0&&d.createElement(o.PreviousMonthButton,{type:"button",className:i[R.PreviousMonthButton],tabIndex:se?void 0:-1,"aria-disabled":se?void 0:!0,"aria-label":hi(se),onClick:ho,"data-animated-button":t.animate?"true":void 0},d.createElement(o.Chevron,{disabled:se?void 0:!0,className:i[R.Chevron],orientation:t.dir==="rtl"?"right":"left"})),d.createElement(o.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:i[R.MonthCaption],style:C==null?void 0:C[R.MonthCaption],calendarMonth:_,displayIndex:U},u!=null&&u.startsWith("dropdown")?d.createElement(o.DropdownNav,{className:i[R.Dropdowns],style:C==null?void 0:C[R.Dropdowns]},u==="dropdown"||u==="dropdown-months"?d.createElement(o.MonthsDropdown,{className:i[R.MonthsDropdown],"aria-label":gi(),classNames:i,components:o,disabled:!!t.disableNavigation,onChange:Di(_.date),options:Jm(_.date,rt,xt,n,s),style:C==null?void 0:C[R.Dropdown],value:s.getMonth(_.date)}):d.createElement("span",null,D(_.date,s)),u==="dropdown"||u==="dropdown-years"?d.createElement(o.YearsDropdown,{className:i[R.YearsDropdown],"aria-label":ki(s.options),classNames:i,components:o,disabled:!!t.disableNavigation,onChange:Ei(_.date),options:tb(rt,xt,n,s,!!t.reverseYears),style:C==null?void 0:C[R.Dropdown],value:s.getYear(_.date)}):d.createElement("span",null,X(_.date,s)),d.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},T(_.date,s.options,s))):d.createElement(o.CaptionLabel,{className:i[R.CaptionLabel],role:"status","aria-live":"polite"},T(_.date,s.options,s))),p==="around"&&!t.hideNavigation&&U===g-1&&d.createElement(o.NextMonthButton,{type:"button",className:i[R.NextMonthButton],tabIndex:ie?void 0:-1,"aria-disabled":ie?void 0:!0,"aria-label":mi(ie),onClick:mo,"data-animated-button":t.animate?"true":void 0},d.createElement(o.Chevron,{disabled:ie?void 0:!0,className:i[R.Chevron],orientation:t.dir==="rtl"?"left":"right"})),U===g-1&&p==="after"&&!t.hideNavigation&&d.createElement(o.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[R.Nav],style:C==null?void 0:C[R.Nav],"aria-label":Tn(),onPreviousClick:ho,onNextClick:mo,previousMonth:se,nextMonth:ie}),d.createElement(o.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":pi(_.date,s.options,s)||void 0,className:i[R.MonthGrid],style:C==null?void 0:C[R.MonthGrid]},!t.hideWeekdays&&d.createElement(o.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:i[R.Weekdays],style:C==null?void 0:C[R.Weekdays]},$&&d.createElement(o.WeekNumberHeader,{"aria-label":yi(s.options),className:i[R.WeekNumberHeader],style:C==null?void 0:C[R.WeekNumberHeader],scope:"col"},G()),vi.map(A=>d.createElement(o.Weekday,{"aria-label":bi(A,s.options,s),className:i[R.Weekday],key:String(A),style:C==null?void 0:C[R.Weekday],scope:"col"},H(A,s.options,s)))),d.createElement(o.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:i[R.Weeks],style:C==null?void 0:C[R.Weeks]},_.weeks.map(A=>d.createElement(o.Week,{className:i[R.Week],key:A.weekNumber,style:C==null?void 0:C[R.Week],week:A},$&&d.createElement(o.WeekNumber,{week:A,style:C==null?void 0:C[R.WeekNumber],"aria-label":xi(A.weekNumber,{locale:l}),className:i[R.WeekNumber],scope:"row",role:"rowheader"},W(A.weekNumber,s)),A.days.map(Y=>{const{date:ce}=Y,L=st(Y);if(L[q.focused]=!L.hidden&&!!(Pt!=null&&Pt.isEqualTo(Y)),L[$e.selected]=(yt==null?void 0:yt(ce))||L.selected,Sn(Bt)){const{from:bo,to:xo}=Bt;L[$e.range_start]=!!(bo&&xo&&s.isSameDay(ce,bo)),L[$e.range_end]=!!(bo&&xo&&s.isSameDay(ce,xo)),L[$e.range_middle]=Le(Bt,ce,!0,s)}const Ri=Qm(L,C,t.modifiersStyles),Ni=Wm(L,i,t.modifiersClassNames),Fi=!Dn&&!L.hidden?fi(ce,L,s.options,s):void 0;return d.createElement(o.Day,{key:`${s.format(ce,"yyyy-MM-dd")}_${s.format(Y.displayMonth,"yyyy-MM")}`,day:Y,modifiers:L,className:Ni.join(" "),style:Ri,role:"gridcell","aria-selected":L.selected||void 0,"aria-label":Fi,"data-day":s.format(ce,"yyyy-MM-dd"),"data-month":Y.outside?s.format(ce,"yyyy-MM"):void 0,"data-selected":L.selected||void 0,"data-disabled":L.disabled||void 0,"data-hidden":L.hidden||void 0,"data-outside":Y.outside||void 0,"data-focused":L.focused||void 0,"data-today":L.today||void 0},!L.hidden&&Dn?d.createElement(o.DayButton,{className:i[R.DayButton],style:C==null?void 0:C[R.DayButton],type:"button",day:Y,modifiers:L,disabled:L.disabled||void 0,tabIndex:di(Y)?0:-1,"aria-label":ui(ce,L,s.options,s),onClick:wi(Y,L),onBlur:Si(Y,L),onFocus:Ci(Y,L),onKeyDown:$i(Y,L),onMouseEnter:ji(Y,L),onMouseLeave:Ti(Y,L)},j(ce,s.options,s)):!L.hidden&&j(Y.date,s.options,s))})))))))),t.footer&&d.createElement(o.Footer,{className:i[R.Footer],style:C==null?void 0:C[R.Footer],role:"status","aria-live":"polite"},t.footer)))}const _b=d.memo(({...e})=>a.jsx(Wb,{mode:"single",...e})),Wb=m(Ab)`
|
|
2647
2738
|
font-family: ${c("font-family-default")};
|
|
2648
|
-
`,
|
|
2739
|
+
`,Lb=({rightMenu:e,leftMenu:t,className:o})=>a.jsxs(Bb,{className:o,children:[t,a.jsx(Pb,{children:e})]}),Bb=m.div`
|
|
2649
2740
|
align-items: center;
|
|
2650
2741
|
background-color: ${c("color-black")};
|
|
2651
2742
|
display: flex;
|
|
@@ -2654,21 +2745,31 @@
|
|
|
2654
2745
|
justify-content: space-between;
|
|
2655
2746
|
padding: 0px ${c("spacing-20")};
|
|
2656
2747
|
width: 100%;
|
|
2657
|
-
`,
|
|
2748
|
+
`,Pb=m.div`
|
|
2658
2749
|
display: flex;
|
|
2659
2750
|
align-items: center;
|
|
2660
|
-
`,
|
|
2751
|
+
`,Hb=d.memo(({title:e,message:t})=>a.jsxs(Vb,{children:[a.jsx(M,{variant:"body",bold:!0,children:e}),a.jsx(M,{variant:"body",color:"grey",children:t})]})),Vb=m.div`
|
|
2752
|
+
display: flex;
|
|
2753
|
+
padding: ${c("spacing-8")} ${c("spacing-10")}
|
|
2754
|
+
${c("spacing-8")} ${c("spacing-20")};
|
|
2755
|
+
flex-direction: column;
|
|
2756
|
+
align-items: flex-start;
|
|
2757
|
+
gap: ${c("spacing-8")};
|
|
2758
|
+
align-self: stretch;
|
|
2759
|
+
`,Gb=d.memo(({listMaxSize:e,listMinSize:t,listCollapsedSize:o,List:n,Details:r,ListPanelComponent:s=on})=>a.jsx(Ub,{children:a.jsxs(Vr,{direction:"horizontal",children:[a.jsx(s,{minSize:t,maxSize:e,collapsedSize:o,children:a.jsx(ci,{children:a.jsx(n,{})})}),a.jsx(Yr,{}),a.jsx(Gr,{children:a.jsx(Yb,{children:a.jsx(r,{})})})]})})),Ub=m.div`
|
|
2661
2760
|
width: 100%;
|
|
2662
2761
|
height: 100%;
|
|
2663
2762
|
display: flex;
|
|
2664
2763
|
align-items: flex-start;
|
|
2665
2764
|
justify-content: flex-start;
|
|
2666
|
-
`,
|
|
2765
|
+
`,ci=m.div`
|
|
2667
2766
|
height: 100%;
|
|
2668
2767
|
width: 100%;
|
|
2669
2768
|
display: flex;
|
|
2670
2769
|
align-items: flex-start;
|
|
2671
2770
|
justify-content: flex-start;
|
|
2672
2771
|
flex-direction: column;
|
|
2673
|
-
|
|
2772
|
+
`,Yb=m(ci)`
|
|
2773
|
+
overflow: auto;
|
|
2774
|
+
`,Kb=({ref:e,data:t,canDrag:o=!0,transformDragData:n=u=>u,onDrop:r,onDragStart:s,onDragEnd:l,onDragOver:i})=>{const[u,f]=d.useState(!1),[p,g]=d.useState(!1),h=k=>{k.preventDefault(),k.stopPropagation()},x=d.useCallback(k=>{h(k),g(!0),k.dataTransfer&&(k.dataTransfer.dropEffect="move"),i==null||i(k)},[i]),b=d.useCallback(k=>{h(k),g(!1)},[]),y=d.useCallback(k=>{h(k),f(!1),g(!1),l==null||l(k)},[l]),v=d.useCallback(k=>{var $;h(k),f(!1),g(!1);let S=null;try{S=JSON.parse((($=k.dataTransfer)==null?void 0:$.getData("application/json"))??"null")}catch(C){console.error("Invalid drag data:",C)}S&&(r==null||r(S,k))},[r]),w=d.useCallback(k=>{var $;if(!o)return;k.stopPropagation(),f(!0),g(!1),k.dataTransfer&&(k.dataTransfer.effectAllowed="move");const S=n(t);($=k.dataTransfer)==null||$.setData("application/json",JSON.stringify(S)),s==null||s(t,k)},[o,t,s,n]);return d.useEffect(()=>{const k=e.current,S={dragover:$=>x($),dragenter:$=>x($),dragleave:$=>b($),dragstart:$=>w($),dragend:$=>y($)};return k&&Object.entries(S).forEach(([$,C])=>k.addEventListener($,C)),()=>{Object.entries(S).forEach(([$,C])=>{k&&k.removeEventListener($,C)})}},[e,x,b,v,w,y]),{dragging:u,over:p}};Object.defineProperty(exports,"useFormContext",{enumerable:!0,get:()=>P.useFormContext});Object.defineProperty(exports,"useFormController",{enumerable:!0,get:()=>P.useController});Object.defineProperty(exports,"useWatchForm",{enumerable:!0,get:()=>P.useWatch});Object.defineProperty(exports,"renderTableContents",{enumerable:!0,get:()=>ge.flexRender});exports.ActionSelect=Dd;exports.ActionableBlurb=cl;exports.AlertTooltip=cn;exports.AnimatePresence=kr;exports.AnonymousBranch=ip;exports.AnonymousGroup=Ff;exports.ArtifactVersion=xu;exports.Badge=Yd;exports.BaseModalContent=bp;exports.BaseObservableDataProvider=mn;exports.BaseUIComponentsContextProvider=il;exports.BottomDialogDrawer=fc;exports.BottomInlineDrawer=xc;exports.BrandedHeader=Pg;exports.Button=Ie;exports.CheckBox=ht;exports.CheckListItemCheck=lo;exports.CheckListItemCheckCompact=js;exports.CheckListItemContainer=_t;exports.CheckListItemContainerCompact=kn;exports.CheckListItemContainerWithDivider=Ss;exports.CheckListItemContainerWithDividerCompact=$s;exports.CheckListItemName=co;exports.CheckListItemNameCompact=Ts;exports.CheckListItemTemplate=Ds;exports.Collapsible=Jt;exports.CollapsibleArtifact=kl;exports.CollapsibleContent=Qt;exports.CollapsibleList=Tu;exports.CollapsibleTrigger=Ko;exports.ComboBox=fs;exports.CopyableText=Ul;exports.DarkTooltip=so;exports.DarkTooltipStyle=ns;exports.DatePicker=_b;exports.DescriptionListItemTemplate=Hf;exports.Dialog=qo;exports.DialogContent=Xo;exports.DialogTrigger=Zo;exports.Drawer=kc;exports.DrawerContent=wc;exports.DrawerHeader=Cc;exports.DrawerTrigger=vc;exports.Dropdown=xs;exports.DropdownMenu=hg;exports.EMAIL_PATTERN=Rr;exports.EmailRequirementKeys=Fr;exports.EmptyListMessage=Hb;exports.EndOverlayStyle=ec;exports.ErrorTooltip=ss;exports.FIRST_CHAR_ALPHA=Bc;exports.FakeInputReference=ps;exports.FlexHandle=Ft;exports.FlexResizablePanel=Gr;exports.Form=gs;exports.FormAccessToggles=pf;exports.FormCheckbox=df;exports.FormComboBox=bf;exports.FormErrorMessage=Ne;exports.FormField=lf;exports.FormFileInput=kf;exports.FormInput=pn;exports.FormInputWrapper=Fe;exports.FormLabel=be;exports.FormMultiSelect=$f;exports.FormNameInput=mf;exports.FormSelect=sf;exports.FormSubmit=fn;exports.FormTextArea=of;exports.FormToggle=Qu;exports.GroupContext=yn;exports.GroupList=Rf;exports.GroupedObservableDataProvider=Ef;exports.HiddenFormInput=un;exports.HolderListItemTemplate=Cg;exports.HorizontalRule=$c;exports.Icon=F;exports.IconButton=ee;exports.Input=mt;exports.InputSearch=Mc;exports.ItemSelectionList=dg;exports.ItemSelectionListDataProvider=pg;exports.Label=Ir;exports.LabelWithAction=Rc;exports.LabelWithContent=en;exports.LabelWithContentLink=Ac;exports.LeftDialogDrawer=sc;exports.LeftInlineDrawer=hc;exports.LightTooltip=ro;exports.LightTooltipStyle=ts;exports.Link=Yo;exports.List=xn;exports.ListContext=gn;exports.ListContextProvider=hn;exports.ListWithDetailsLayout=Gb;exports.LockedButton=bl;exports.MenuWrapper=Lb;exports.MiddleTruncateText=eo;exports.Modal=Ip;exports.ModalOverlayStyles=Fs;exports.ModalTrigger=Rp;exports.MultiSelect=us;exports.NO_LEADING_OR_TRAILING_SPACES_PATTERN=Nr;exports.NO_SPACES_PATTERN=Lc;exports.NUMBERS_ONLY_PATTERN=Wc;exports.NamedCollapsibleBranch=lp;exports.NamedCollapsibleGroup=Nf;exports.NamedListItemTemplate=Vf;exports.NamedSection=_s;exports.NamedSectionHeader=Wp;exports.ObservableDataProvider=bn;exports.Option=ut;exports.PASSWORD_MIN_LENGTH=Hc;exports.PASSWORD_REQUIREMENTS=dn;exports.PASSWORD_REQUIREMENTS_TOO_SIMILAR=ms;exports.PageHeader=Up;exports.PaneSplitter=ed;exports.PasswordRequirementKeys=Dt;exports.PasswordRequirementsList=qu;exports.PropertyDataProvider=Mf;exports.RequirementsList=hs;exports.ResizablePanel=on;exports.ResizablePanelGroup=Vr;exports.ResizablePanelGroupContextProvider=Hr;exports.ResizablePanelHandle=Yr;exports.RightDialogDrawer=lc;exports.RightInlineDrawer=mc;exports.ScreenOverlay=Kr;exports.ScreenOverlayWithAction=wh;exports.Select=bt;exports.SelectContext=sn;exports.SelectList=ao;exports.SelectListContext=io;exports.SelectSeparator=xg;exports.SelectViewList=tg;exports.SelectViewListItem=Ls;exports.SelectorTooltip=is;exports.ShellIconButton=Id;exports.ShellMenu=yg;exports.ShellMenuLink=vg;exports.StartOverlayStyle=Ql;exports.StickyObserver=Po;exports.StyledSelectOption=mg;exports.Tab=Rd;exports.TabPane=Ld;exports.TabTrigger=Nd;exports.TabTriggerList=Ad;exports.Table=Yg;exports.TableHeader=Vo;exports.TableNamedListItemTemplate=Xf;exports.TableTd=Cn;exports.Tag=Xr;exports.TagWithRemove=Gd;exports.Text=M;exports.TextHighlight=Ud;exports.Textarea=ln;exports.Toggle=no;exports.ToggleThumb=Qr;exports.ToggleTrack=Jr;exports.Tooltip=as;exports.TopDialogDrawer=uc;exports.TopInlineDrawer=bc;exports.TreeDataProvider=tp;exports.TreeList=sp;exports.USERNAME_PATTERN=_c;exports.VirtualList=zs;exports.VirtualTable=hh;exports.VirtualizedList=Os;exports.VirtualizedSelectList=mp;exports.baseComponentStyles=lr;exports.baseGenericStyles=Io;exports.baseSemanticStyles=Ro;exports.componentStudioTokenCss=Va;exports.componentStyles=Oo;exports.createTableColumnHelper=eh;exports.darkTooltipArrow=rs;exports.getByteString=Zp;exports.getComponentTokenHelpers=O;exports.getEmailValidation=Pc;exports.getErrorMessage=Gc;exports.getGlobalToken=I;exports.getPasswordValidation=Vc;exports.getSemanticToken=c;exports.getStyles=qa;exports.globalStudioTokenCss=Ha;exports.isContextAware=Bo;exports.isErrorWithMessage=Ar;exports.isGroupFactory=vs;exports.keyResolver=ks;exports.lightTooltipArrow=os;exports.noop=Re;exports.normalizePathDisplay=Xp;exports.rootStyles=No;exports.scrollbarStyle=Qa;exports.semanticStudioTokenCss=Pa;exports.stringComponentInsert=ar;exports.studioColors=cr;exports.studioDarkColors=ur;exports.studioGenericColor=fr;exports.studioLightColors=dr;exports.studioTheme=el;exports.useBaseUIComponentsContext=hr;exports.useCollapsibleContext=Nt;exports.useContainerWidth=Qo;exports.useDialogContext=He;exports.useDialogContextValue=vr;exports.useDragDrop=Kb;exports.useDrawerContext=Xe;exports.useGroupSelection=Qf;exports.useListContext=jf;exports.useListGroupContext=ws;exports.useLoadDataProvider=At;exports.useModalContext=He;exports.useMultiSelectContext=cs;exports.useOpenedGroups=Jf;exports.useResizablePanelGroupContext=tn;exports.useResizeObserver=_r;exports.useSelectContext=an;exports.useSelectListContext=nt;exports.useSelection=ep;exports.useTabContext=oo;exports.useTableContext=wn;exports.useTreeListContext=Ms;
|
|
2674
2775
|
//# sourceMappingURL=index.cjs.map
|