@baton8/general-components 3.1.0-alpha.7 → 3.1.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/generalIcon/generalIcon.d.ts +5 -0
- package/dist/components/atoms/icon/icon.d.ts +5 -0
- package/dist/components/atoms/segmentGroup/index.d.ts +3 -0
- package/dist/components/atoms/segmentGroup/segment.d.ts +32 -0
- package/dist/components/atoms/segmentGroup/segmentGroup.d.ts +21 -0
- package/dist/components/atoms/segmentGroup/segmentIconContainer.d.ts +15 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/contexts/segmentGroup/context.d.ts +11 -0
- package/dist/index.js +213 -148
- package/dist/index.js.map +1 -1
- package/dist/stories/atoms/segmentGroup/segmentGroup.stories.d.ts +7 -0
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(()=>{var e={714:e=>{e.exports={"dialogCloseButton.close":"Close dialog","loadingIcon.label":"Loading","select.select":"Select","select.noOption":"No options","select.loading":"Loading","sortOrderSelect.ascending":"Asc","sortOrderSelect.descending":"Desc","bulkOperationButton.text":"Action","cardListEmpty.empty":"No data found","cardListLoading.loading":"Loading","pagination.label":"Pagination","pagination.first":"First","pagination.previous":"Previous","pagination.next":"Next","pagination.last":"Last","rankView.label":"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} place","toast.rootLabel":"Notification","toast.viewportLabel":"Notifications (F8)","quizCardTitle.emptyQuestion":"No question","quizCardTitle.emptyAnswer":"No correct options","groupFootnote.noGroup":"Deleted group","privateFootnote.private":"Limited","privateFootnote.public":"Public","userFootnote.noUser":"Deleted user","imageView.noImage":"No image found","mediumView.unsupported":"Unsupported media"}},62:e=>{e.exports={"dialogCloseButton.close":"ダイアログを閉じる","loadingIcon.label":"読み込み中","select.select":"選択してください","select.noOption":"該当する項目がありません","select.loading":"読み込み中","sortOrderSelect.ascending":"昇順","sortOrderSelect.descending":"降順","bulkOperationButton.text":"一括操作","cardListEmpty.empty":"該当するデータがありません","cardListLoading.loading":"読み込み中","pagination.label":"ページネーション","pagination.first":"最初へ","pagination.previous":"前へ","pagination.next":"次へ","pagination.last":"最後へ","rankView.label":"{rank, number}位","toast.rootLabel":"お知らせ","toast.viewportLabel":"お知らせ (F8)","quizCardTitle.emptyQuestion":"問題文がありません","quizCardTitle.emptyAnswer":"正答選択肢がありません","groupFootnote.noGroup":"削除されたグループ","privateFootnote.private":"限定公開","privateFootnote.public":"全体公開","userFootnote.noUser":"退会したユーザー","imageView.noImage":"画像がありません","mediumView.unsupported":"サポートされていないメディアです"}}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{"use strict";o.r(t),o.d(t,{AlignedRadioGroup:()=>co,AsyncSelect:()=>de,AsyncSelectOption:()=>
|
|
1
|
+
(()=>{var e={714:e=>{e.exports={"dialogCloseButton.close":"Close dialog","loadingIcon.label":"Loading","select.select":"Select","select.noOption":"No options","select.loading":"Loading","sortOrderSelect.ascending":"Asc","sortOrderSelect.descending":"Desc","bulkOperationButton.text":"Action","cardListEmpty.empty":"No data found","cardListLoading.loading":"Loading","pagination.label":"Pagination","pagination.first":"First","pagination.previous":"Previous","pagination.next":"Next","pagination.last":"Last","rankView.label":"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} place","toast.rootLabel":"Notification","toast.viewportLabel":"Notifications (F8)","quizCardTitle.emptyQuestion":"No question","quizCardTitle.emptyAnswer":"No correct options","groupFootnote.noGroup":"Deleted group","privateFootnote.private":"Limited","privateFootnote.public":"Public","userFootnote.noUser":"Deleted user","imageView.noImage":"No image found","mediumView.unsupported":"Unsupported media"}},62:e=>{e.exports={"dialogCloseButton.close":"ダイアログを閉じる","loadingIcon.label":"読み込み中","select.select":"選択してください","select.noOption":"該当する項目がありません","select.loading":"読み込み中","sortOrderSelect.ascending":"昇順","sortOrderSelect.descending":"降順","bulkOperationButton.text":"一括操作","cardListEmpty.empty":"該当するデータがありません","cardListLoading.loading":"読み込み中","pagination.label":"ページネーション","pagination.first":"最初へ","pagination.previous":"前へ","pagination.next":"次へ","pagination.last":"最後へ","rankView.label":"{rank, number}位","toast.rootLabel":"お知らせ","toast.viewportLabel":"お知らせ (F8)","quizCardTitle.emptyQuestion":"問題文がありません","quizCardTitle.emptyAnswer":"正答選択肢がありません","groupFootnote.noGroup":"削除されたグループ","privateFootnote.private":"限定公開","privateFootnote.public":"全体公開","userFootnote.noUser":"退会したユーザー","imageView.noImage":"画像がありません","mediumView.unsupported":"サポートされていないメディアです"}}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{"use strict";o.r(t),o.d(t,{AlignedRadioGroup:()=>co,AsyncSelect:()=>de,AsyncSelectOption:()=>pe,Avatar:()=>ye,AvatarFallbackIcon:()=>Oe,AvatarFallbackLetter:()=>we,Badge:()=>qe,BadgeIconContainer:()=>Ne,BarMeter:()=>De,BarMeterValue:()=>Ae,BarMeterValueIconContainer:()=>Be,BarProgress:()=>Te,BulkOperationButton:()=>St,BulkOperationContainer:()=>Nt,Button:()=>_e,ButtonIconContainer:()=>We,Card:()=>Et,CardBody:()=>Lt,CardButton:()=>Ft,CardButtonList:()=>Ht,CardButtonListColumn:()=>Vt,CardControlContainer:()=>Gt,CardGrip:()=>Kt,CardHeadnote:()=>Rt,CardList:()=>Zt,CardListAuto:()=>fn,CardListBody:()=>en,CardListBodyAuto:()=>mn,CardListEmpty:()=>on,CardListFooter:()=>nn,CardListFooterAuto:()=>yn,CardListHeader:()=>ln,CardListHeaderLeft:()=>cn,CardListHeaderRight:()=>bn,CardListLoading:()=>pn,CardTitle:()=>Qt,CheckableContainer:()=>Je,CheckableLabel:()=>Xe,Checkbox:()=>or,ContentHeader:()=>hn,ContentTitle:()=>vn,ControlContainer:()=>nr,ControlErrorMessage:()=>sr,ControlGroup:()=>fr,ControlHelper:()=>dr,ControlLabel:()=>ur,CountIndicator:()=>jn,Dialog:()=>kn,DialogBody:()=>Pn,DialogButton:()=>Sn,DialogCloseButton:()=>zn,DialogFooter:()=>En,DialogHeader:()=>Rn,DialogTitle:()=>Ln,Divider:()=>yr,Drawer:()=>Hn,DrawerBody:()=>Vn,DrawerButton:()=>Yn,DrawerCaption:()=>Gn,DrawerCloseButton:()=>Kn,DrawerFooter:()=>Qn,DrawerHeader:()=>Zn,DrawerHeaderLeft:()=>ei,DrawerHeaderRight:()=>oi,DrawerTitle:()=>ni,FileInput:()=>Or,Footnote:()=>si,FootnoteIconContainer:()=>di,FootnoteList:()=>ui,FootnoteListRow:()=>fi,FractionView:()=>hi,FractionViewDenominator:()=>vi,FractionViewNumerator:()=>ji,GeneralIcon:()=>gr,Header:()=>$i,HeaderLeft:()=>ki,HeaderMenu:()=>Pi,HeaderMenuItem:()=>Ci,HeaderMenuItemIconContainer:()=>Ii,Heading:()=>jr,Icon:()=>$r,IconButton:()=>kr,Input:()=>Ir,InputLeftAddon:()=>Pr,InputRightAddon:()=>Cr,LEVELED_COLOR_SCHEMES:()=>p,Link:()=>Lr,LinkIconContainer:()=>Fr,LoadingIcon:()=>Hr,Menu:()=>Bi,MenuDivider:()=>Gi,MenuItem:()=>Li,MenuItemIconContainer:()=>Yi,Modal:()=>Gr,MultiLineText:()=>ar,NumberInput:()=>Qr,NumberInputLeftAddon:()=>Kr,PageSizeSelect:()=>lt,PageSizeSelectAuto:()=>bt,Pagination:()=>Ki,PaginationAuto:()=>Wi,PasswordInput:()=>oo,PasswordInputLeftAddon:()=>Zr,PasswordInputRightAddon:()=>eo,Popover:()=>Ji,Radio:()=>ao,RadioGroup:()=>lo,RankView:()=>Xi,Root:()=>Yo,SecondaryHeading:()=>Go,Segment:()=>Qo,SegmentGroup:()=>Zo,SegmentIconContainer:()=>et,Select:()=>ot,SelectOption:()=>nt,SelectOptionIconContainer:()=>at,SimpleCard:()=>ra,SimpleCardBody:()=>ta,SimpleCardButton:()=>ia,SimpleCardListAuto:()=>la,SimpleCardListBodyAuto:()=>ca,SimpleCardListFooterAuto:()=>ba,SimpleCardListHeader:()=>pa,SimpleToast:()=>Ga,SingleLineText:()=>Me,SortOrderSelect:()=>ut,Stepper:()=>ja,StepperBody:()=>qa,StepperItem:()=>va,StepperNumber:()=>Na,StepperTitle:()=>Sa,Switch:()=>mt,Tab:()=>Ea,TabIconContainer:()=>Ra,TabList:()=>za,Tag:()=>gt,TagIconContainer:()=>Ot,TagList:()=>xt,Textarea:()=>wt,Toast:()=>Fa,ToastBody:()=>Ha,ToastMessage:()=>Va,ToastSupplement:()=>Ua,UNLEVELED_COLOR_SCHEMES:()=>f,VisuallyHidden:()=>qt,alpha:()=>j,borderWidth:()=>q,boxShadow:()=>k,color:()=>x,createColorDefinition:()=>m,createTrans:()=>Fo,dimension:()=>Qa,fixedLineHeight:()=>C,flexHorizontal:()=>Ka,flexVertical:()=>_a,fontFamily:()=>O,fontWeight:()=>v,intlSubject:()=>Io,lineHeight:()=>S,localeSubject:()=>Eo,margin:()=>Wa,mergeLocalizationMessages:()=>$o,resolveResponsiveValue:()=>ko,size:()=>$,toResponsiveValue:()=>qo,useBehaviorSubject:()=>Co,useDialog:()=>Za,useIntl:()=>Do,useLocale:()=>Ro,useRadioGroup:()=>Xa,useResponsiveValue:()=>Po,useSetLocale:()=>Mo,useSmartphone:()=>No,useSubject:()=>So,useToast:()=>el,useTrans:()=>Lo,useTranslation:()=>Ao,whenDesktop:()=>P,whenSmartphone:()=>N});const e=require("@emotion/react/jsx-runtime"),r=require("react"),n=require("react-select/async");var i=o.n(n);const a=require("@emotion/react"),l=require("@fortawesome/react-fontawesome"),s=require("@fortawesome/sharp-regular-svg-icons"),c=require("react-select");var d=o.n(c);const b=require("color");var u=o.n(b);const p=["primary","secondary","blue","red","green","pink","yellow","purple","orange","gray","gold","silver","bronze"],f=["white","black","whiteText","blackText","background","deepBackground"],m=(e,r)=>{const o=u()(e),t=u()("black"),n=u()("white");return{9:o.saturate(4*r.dark.saturation/4).mix(t,4*r.dark.mix/4).hex(),8:o.saturate(3*r.dark.saturation/4).mix(t,3*r.dark.mix/4).hex(),7:o.saturate(2*r.dark.saturation/4).mix(t,2*r.dark.mix/4).hex(),6:o.saturate(1*r.dark.saturation/4).mix(t,1*r.dark.mix/4).hex(),5:o.hex(),4:o.saturate(1*r.light.saturation/5).mix(n,1*r.light.mix/5).hex(),3:o.saturate(2*r.light.saturation/5).mix(n,2*r.light.mix/5).hex(),2:o.saturate(3*r.light.saturation/5).mix(n,3*r.light.mix/5).hex(),1:o.saturate(4*r.light.saturation/5).mix(n,4*r.light.mix/5).hex(),0:o.saturate(5*r.light.saturation/5).mix(n,5*r.light.mix/5).hex()}},y={primary:m("hsl(203, 100%, 38%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),secondary:m("hsl(2, 77%, 64%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),blue:m("hsl(230, 70%, 55%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),red:m("hsl(0, 65%, 60%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),green:m("hsl(110, 45%, 45%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),pink:m("hsl(340, 60%, 60%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.2}}),yellow:m("hsl(60, 65%, 50%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.1}}),purple:m("hsl(260, 55%, 57%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),orange:m("hsl(30, 75%, 55%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.2}}),gray:m("hsl(203, 20%, 65%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.3}}),gold:m("hsl(50, 80%, 43%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),silver:m("hsl(240, 15%, 65%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.3}}),bronze:m("hsl(20, 50%, 50%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),white:u()("hsl(203, 0%, 100%)").hex(),black:u()("hsl(203, 33%, 10%)").hex(),whiteText:u()("hsl(203, 0%, 87%)").hex(),blackText:u()("hsl(203, 0%, 27%)").hex(),background:u()("hsl(203, 20%, 98%)").hex(),deepBackground:u()("hsl(203, 20%, 96%)").hex()},g=(e,r)=>null!=r?`var(--qlib-cs-${e}-${r})`:`var(--qlib-cs-${e})`,h=e=>{const r=[],o=Object.assign(Object.assign({},y),e);for(const[e,t]of Object.entries(o))if("string"==typeof t)r.push(`--qlib-cs-${e}: ${u()(t).rgb().array().join(", ")};`);else for(const[o,n]of Object.entries(t))r.push(`--qlib-cs-${e}-${o}: ${u()(n).rgb().array().join(", ")};`);return a.css`
|
|
2
2
|
:root {
|
|
3
3
|
${r.join("\n")}
|
|
4
4
|
}
|
|
5
|
-
`};function O(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function v(e){return"normal"===e?400:700}function x(e,r){return f.includes(e)?`rgb(${g(e,void 0)})`:`rgb(${g(e,r)})`}function j(e,r){return e.startsWith("rgb(")?`rgba(${e.slice(4,-1)}, ${r})`:
|
|
5
|
+
`};function O(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function v(e){return"normal"===e?400:700}function x(e,r){return f.includes(e)?`rgb(${g(e,void 0)})`:`rgb(${g(e,r)})`}function j(e,r){return e.startsWith("rgb(")?`rgba(${e.slice(4,-1)}, ${r})`:u()(e).alpha(r).rgb().string()}const w={gap:"0.375em",unitGap:"0.25em",max:"1000em"};function $(e){return"number"==typeof e?e/4+"rem":w[e]}function q(e){return e/16+"rem"}function k(e,r,o){return o?`0rem ${-r/8}rem ${r/4}rem ${e} inset`:`0rem ${r/8}rem ${r/4}rem ${e}`}function N(){return'html[data-qlib-smartphone="true"] &'}function P(){return'html[data-qlib-smartphone="false"] &'}function S(e,r){return a.css`
|
|
6
6
|
line-height: ${e};
|
|
7
7
|
&::before {
|
|
8
8
|
block-size: ${$(0)};
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
display: block;
|
|
35
35
|
content: "";
|
|
36
36
|
}
|
|
37
|
-
`}const z=require("dayjs");var I=o.n(z);const E=require("react-intl"),D=e=>{const o=(0,E.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const i="qlib."+(r.includes(":")?r.replace(":","."):(null!=e?`${e}.`:"")+r),a=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${i}>`;return o.formatMessage({id:i,defaultMessage:a},t)}),[o,e]),n=(0,r.useCallback)(((e,r)=>{if(null==e)return"";{const t=o.locale;if("ja"===t)switch(r){case"datetime":return I()(e).locale("ja").format("YYYY/MM/DD HH:mm");case"date":case void 0:return I()(e).locale("ja").format("YYYY/MM/DD");case"shortDate":return I()(e).locale("ja").format("MM/DD");case"time":return I()(e).locale("ja").format("HH:mm");default:throw new Error}else switch(r){case"datetime":return I()(e).locale(t).format("DD/MM/YYYY HH:mm");case"date":case void 0:return I()(e).locale(t).format("DD/MM/YYYY");case"shortDate":return I()(e).locale(t).format("DD/MM");case"time":return I()(e).locale(t).format("HH:mm");default:throw new Error}}}),[o]),i=(0,r.useCallback)(((e,r)=>{const t={minimumFractionDigits:null==r?void 0:r.digit,maximumFractionDigits:null==r?void 0:r.digit};return null!=e?e>0?((null==r?void 0:r.withSign)?"+":"")+o.formatNumber(e,t):0===e?((null==r?void 0:r.withSign)?"±":"")+o.formatNumber(e,t):"−"+o.formatNumber(-e,t):""}),[o]);return(0,r.useMemo)((()=>({trans:t,transNode:t,transDate:n,transNumber:i})),[t,n,i])};const
|
|
37
|
+
`}const z=require("dayjs");var I=o.n(z);const E=require("react-intl"),D=e=>{const o=(0,E.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const i="qlib."+(r.includes(":")?r.replace(":","."):(null!=e?`${e}.`:"")+r),a=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${i}>`;return o.formatMessage({id:i,defaultMessage:a},t)}),[o,e]),n=(0,r.useCallback)(((e,r)=>{if(null==e)return"";{const t=o.locale;if("ja"===t)switch(r){case"datetime":return I()(e).locale("ja").format("YYYY/MM/DD HH:mm");case"date":case void 0:return I()(e).locale("ja").format("YYYY/MM/DD");case"shortDate":return I()(e).locale("ja").format("MM/DD");case"time":return I()(e).locale("ja").format("HH:mm");default:throw new Error}else switch(r){case"datetime":return I()(e).locale(t).format("DD/MM/YYYY HH:mm");case"date":case void 0:return I()(e).locale(t).format("DD/MM/YYYY");case"shortDate":return I()(e).locale(t).format("DD/MM");case"time":return I()(e).locale(t).format("HH:mm");default:throw new Error}}}),[o]),i=(0,r.useCallback)(((e,r)=>{const t={minimumFractionDigits:null==r?void 0:r.digit,maximumFractionDigits:null==r?void 0:r.digit};return null!=e?e>0?((null==r?void 0:r.withSign)?"+":"")+o.formatNumber(e,t):0===e?((null==r?void 0:r.withSign)?"±":"")+o.formatNumber(e,t):"−"+o.formatNumber(-e,t):""}),[o]);return(0,r.useMemo)((()=>({trans:t,transNode:t,transDate:n,transNumber:i})),[t,n,i])};const R={root:a.css`
|
|
38
38
|
padding-block: ${$(2)};
|
|
39
39
|
padding-inline: ${$(2)};
|
|
40
40
|
color: ${x("gray",5)};
|
|
41
|
-
`},
|
|
41
|
+
`},M=(0,r.createContext)({variant:"outline",optionAlignment:"left",isMenuOpen:!1,isError:!1}),L=M.Provider;const A={root:a.css`
|
|
42
42
|
font-size: ${$(4)};
|
|
43
43
|
color: ${x("primary",5)};
|
|
44
44
|
display: flex;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
outline: solid ${q(2)} ${j(x("primary",4),.6)};
|
|
56
56
|
outline-offset: ${q(1)};
|
|
57
57
|
}
|
|
58
|
-
`},
|
|
58
|
+
`},F=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.ClearIndicator,Object.assign({css:A.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes,widthAuto:!0})}))},B={root:a.css`
|
|
59
59
|
column-gap: ${$("gap")};
|
|
60
60
|
display: flex;
|
|
61
61
|
flex-wrap: wrap;
|
|
@@ -88,37 +88,37 @@
|
|
|
88
88
|
`,rootMinimal:a.css`
|
|
89
89
|
min-block-size: initial;
|
|
90
90
|
font-size: ${$(4)};
|
|
91
|
-
`},H=({isFocused:o,isDisabled:t,menuIsOpen:n,innerRef:i,innerProps:a,children:l})=>{const{variant:s,isError:c}=(0,r.useContext)(
|
|
91
|
+
`},H=({isFocused:o,isDisabled:t,menuIsOpen:n,innerRef:i,innerProps:a,children:l})=>{const{variant:s,isError:c}=(0,r.useContext)(M);return(0,e.jsx)("div",Object.assign({css:[B.root,"outline"===s?B.rootOutline:B.rootMinimal],ref:i,"data-qlib-focused":o,"data-qlib-error":c},a,{children:l}))};const T={root:a.css`
|
|
92
92
|
font-size: var(--qlib-font-size);
|
|
93
93
|
color: ${x("gray",5)};
|
|
94
|
-
`},V=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.DropdownIndicator,Object.assign({css:T.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})}))},Y={root:a.css`
|
|
94
|
+
`},V=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.DropdownIndicator,Object.assign({css:T.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown,widthAuto:!0})}))},Y={root:a.css`
|
|
95
95
|
column-gap: ${$("gap")};
|
|
96
96
|
display: flex;
|
|
97
97
|
align-items: center;
|
|
98
98
|
align-self: stretch;
|
|
99
99
|
flex-grow: 0;
|
|
100
100
|
flex-shrink: 0;
|
|
101
|
-
`},U=({innerProps:r,children:o})=>(0,e.jsx)("div",Object.assign({css:Y.root},r,{children:o}));const
|
|
101
|
+
`},U=({innerProps:r,children:o})=>(0,e.jsx)("div",Object.assign({css:Y.root},r,{children:o}));const G={rootOutline:a.css`
|
|
102
102
|
height: 1em;
|
|
103
103
|
line-height: 1;
|
|
104
104
|
`,rootMinimal:a.css`
|
|
105
105
|
height: 1em;
|
|
106
106
|
line-height: 1;
|
|
107
|
-
`},
|
|
107
|
+
`},_=o=>{var{children:t}=o,n=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["children"]);const{variant:i}=(0,r.useContext)(M);return(0,e.jsx)(c.components.Input,Object.assign({css:"outline"===i?G.rootOutline:G.rootMinimal},n,{children:t}))},K=a.keyframes`
|
|
108
108
|
from {
|
|
109
109
|
opacity: 0;
|
|
110
110
|
}
|
|
111
111
|
to {
|
|
112
112
|
opacity: 1;
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`,W=a.keyframes`
|
|
115
115
|
to {
|
|
116
116
|
opacity: 0;
|
|
117
117
|
}
|
|
118
118
|
from {
|
|
119
119
|
opacity: 1;
|
|
120
120
|
}
|
|
121
|
-
`,
|
|
121
|
+
`,Q={root:a.css`
|
|
122
122
|
inline-size: 100%;
|
|
123
123
|
margin-block-start: ${q(2)};
|
|
124
124
|
display: flex;
|
|
@@ -136,10 +136,10 @@
|
|
|
136
136
|
opacity: 1;
|
|
137
137
|
}
|
|
138
138
|
&[data-qlib-open="false"] {
|
|
139
|
-
animation: ${
|
|
139
|
+
animation: ${W} 0.2s ease;
|
|
140
140
|
opacity: 0;
|
|
141
141
|
}
|
|
142
|
-
`},J=({innerRef:o,innerProps:t,children:n})=>{const{optionAlignment:i,isMenuOpen:a}=(0,r.useContext)(
|
|
142
|
+
`},J=({innerRef:o,innerProps:t,children:n})=>{const{optionAlignment:i,isMenuOpen:a}=(0,r.useContext)(M);return(0,e.jsx)("div",Object.assign({css:Q.root,ref:o,"data-qlib-open":a,"data-qlib-alignment":i},t,{children:n}))},Z={root:a.css`
|
|
143
143
|
inline-size: 100%;
|
|
144
144
|
min-inline-size: ${$(24)};
|
|
145
145
|
max-block-size: ${$(60)};
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
white-space: nowrap;
|
|
177
177
|
text-overflow: ellipsis;
|
|
178
178
|
overflow: hidden;
|
|
179
|
-
`},le=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.Placeholder,Object.assign({css:ae.root},t,{children:o}))},se=e=>{const[o,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),a=(0,r.useRef)(null);return{isMenuOpen:o,menuIsOpen:n,onMenuOpen:(0,r.useCallback)((()=>{t(!0),i(!0),null!=a.current&&clearTimeout(a.current)}),[]),onMenuClose:(0,r.useCallback)((()=>{t(!1),a.current=setTimeout((()=>{i(!1)}),e)}),[e])}};const ce={Control:H,Input:
|
|
180
|
-
`},
|
|
179
|
+
`},le=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.Placeholder,Object.assign({css:ae.root},t,{children:o}))},se=e=>{const[o,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),a=(0,r.useRef)(null);return{isMenuOpen:o,menuIsOpen:n,onMenuOpen:(0,r.useCallback)((()=>{t(!0),i(!0),null!=a.current&&clearTimeout(a.current)}),[]),onMenuClose:(0,r.useCallback)((()=>{t(!1),a.current=setTimeout((()=>{i(!1)}),e)}),[e])}};const ce={Control:H,Input:_,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ie,NoOptionsMessage:te,LoadingMessage:r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);const{trans:n}=D("select");return(0,e.jsx)(c.components.LoadingMessage,Object.assign({css:R.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})}))},DropdownIndicator:V,ClearIndicator:F,IndicatorsContainer:U,IndicatorSeparator:null,LoadingIndicator:null},de=({value:o,defaultValue:t,searchOptions:n,variant:a="outline",optionAlignment:l="left",isError:s=!1,isClearable:c=!1,isDisabled:d=!1,onSet:b,children:u,className:p})=>{const{trans:f}=D("select"),m=null!=o?be(o,u):o,y=null!=t?be(t,u):t,g=(0,r.useCallback)((e=>{return r=void 0,o=void 0,i=function*(){const r=(yield n(e)).map((e=>be(e,u)));return r},new((t=void 0)||(t=Promise))((function(e,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function l(e){try{s(i.throw(e))}catch(e){n(e)}}function s(r){var o;r.done?e(r.value):(o=r.value,o instanceof t?o:new t((function(e){e(o)}))).then(a,l)}s((i=i.apply(r,o||[])).next())}));var r,o,t,i}),[n,u]),h=(0,r.useCallback)((e=>{null==b||b(null!==e?e.value:null)}),[b]),O=se(200),{isMenuOpen:v}=O,x=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(O,["isMenuOpen"]),j=(0,r.useMemo)((()=>({variant:a,optionAlignment:l,isMenuOpen:v,isError:s})),[a,l,v,s]);return(0,e.jsx)(L,{value:j,children:(0,e.jsx)(i(),Object.assign({className:p,classNamePrefix:"qlib-select",value:m,defaultValue:y,loadOptions:g,onChange:null!=b?h:void 0,isClearable:c,isDisabled:d,defaultOptions:!0,placeholder:f("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:ce,isMulti:!1,unstyled:!0,"aria-invalid":s},x))})},be=(e,r)=>{const o=r(e);return{value:e,label:o.props.label,node:o}};de.displayName="AsyncSelect";const ue={root:a.css`
|
|
180
|
+
`},pe=r=>{var{label:o,isDisabled:t=!1,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["label","isDisabled","children","className"]);return(0,e.jsx)("div",Object.assign({css:ue.root,className:i},a,{children:null!=n?n:o}))};pe.displayName="AsyncSelectOption";const fe=require("@radix-ui/react-avatar");const me={root:a.css`
|
|
181
181
|
inline-size: 1.5em;
|
|
182
182
|
block-size: 1.5em;
|
|
183
183
|
border-radius: ${$("max")};
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
justify-content: center;
|
|
210
210
|
`,icon:a.css`
|
|
211
211
|
font-size: 1.2em;
|
|
212
|
-
`},Oe=(0,r.forwardRef)(((r,o)=>{var{hue:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["hue","className"]);return(0,e.jsx)(fe.Fallback,Object.assign({css:he.fallback,ref:o,delayMs:500,style:{color:`hsl(${t}, 100%, 95%)`,backgroundColor:`hsl(${t}, 30%, 50%)`}},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{css:he.icon,icon:ge.faUser})}))}));Oe.displayName="AvatarFallbackIcon";const ve=require("graphemesplit");var xe=o.n(ve);const je={fallback:a.css`
|
|
212
|
+
`},Oe=(0,r.forwardRef)(((r,o)=>{var{hue:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["hue","className"]);return(0,e.jsx)(fe.Fallback,Object.assign({css:he.fallback,ref:o,delayMs:500,style:{color:`hsl(${t}, 100%, 95%)`,backgroundColor:`hsl(${t}, 30%, 50%)`}},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{css:he.icon,icon:ge.faUser,widthAuto:!0})}))}));Oe.displayName="AvatarFallbackIcon";const ve=require("graphemesplit");var xe=o.n(ve);const je={fallback:a.css`
|
|
213
213
|
width: 100%;
|
|
214
214
|
height: 100%;
|
|
215
215
|
font-size: 0.8em;
|
|
@@ -263,14 +263,14 @@
|
|
|
263
263
|
inline-size: 100%;
|
|
264
264
|
display: flex;
|
|
265
265
|
overflow: hidden;
|
|
266
|
-
`},De=(0,r.forwardRef)(((o,t)=>{var{isPale:n=!0,children:i,className:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isPale","children","className"]);const s=(0,r.useMemo)((()=>Se(i).reduce(((e,r)=>e+ +r.props.value),0)),[i]),c=(0,r.useMemo)((()=>({isPale:n,totalValue:s})),[n,s]);return(0,e.jsx)("div",Object.assign({css:Ee.root,className:a,ref:t},l,{children:(0,e.jsx)(Ie,{value:c,children:i})}))}));De.displayName="BarMeter";const
|
|
266
|
+
`},De=(0,r.forwardRef)(((o,t)=>{var{isPale:n=!0,children:i,className:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isPale","children","className"]);const s=(0,r.useMemo)((()=>Se(i).reduce(((e,r)=>e+ +r.props.value),0)),[i]),c=(0,r.useMemo)((()=>({isPale:n,totalValue:s})),[n,s]);return(0,e.jsx)("div",Object.assign({css:Ee.root,className:a,ref:t},l,{children:(0,e.jsx)(Ie,{value:c,children:i})}))}));De.displayName="BarMeter";const Re={root:a.css`
|
|
267
267
|
${S(1.5)}
|
|
268
268
|
`,inner:a.css`
|
|
269
269
|
display: -webkit-box;
|
|
270
270
|
-webkit-box-orient: vertical;
|
|
271
271
|
-webkit-line-clamp: 1;
|
|
272
272
|
overflow: hidden;
|
|
273
|
-
`},
|
|
273
|
+
`},Me=(0,r.forwardRef)(((r,o)=>{var{as:t="div",children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","children","className"]);const l=t;return(0,e.jsx)(l,Object.assign({css:Re.root,className:i,ref:o},a,{children:(0,e.jsx)("span",{css:Re.inner,children:n})}))}));Me.displayName="SingleLineText";const Le={root:e=>a.css`
|
|
274
274
|
&[data-qlib-pale="true"] {
|
|
275
275
|
--qlib-bar-color: ${x(e,3)};
|
|
276
276
|
}
|
|
@@ -330,9 +330,9 @@
|
|
|
330
330
|
`,icon:a.css`
|
|
331
331
|
margin-inline-end: ${$("gap")};
|
|
332
332
|
display: inline;
|
|
333
|
-
`},
|
|
333
|
+
`},Ae=(0,r.forwardRef)(((o,t)=>{var{scheme:n="gray",value:i,children:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","value","children","className"]);const{isPale:c,totalValue:d}=(0,r.useContext)(ze),b=d>0?i/d*100:0;return(0,e.jsxs)("div",Object.assign({css:Le.root(n),className:l,ref:t,"data-qlib-pale":c,style:{inlineSize:`${b}%`}},s,{children:[(0,e.jsxs)("div",{css:Le.barContainer,"aria-hidden":!0,children:[(0,e.jsx)("div",{css:Le.spacer}),(0,e.jsx)("div",{css:Le.bar})]}),(0,e.jsx)(Me,{css:Le.legend,children:a})]}))}));Ae.displayName="BarMeterValue";const Fe={root:a.css`
|
|
334
334
|
margin-inline-end: ${$("gap")};
|
|
335
|
-
`},
|
|
335
|
+
`},Be=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("span",Object.assign({css:Fe.root,className:t,ref:o},i,{children:n}))}));Be.displayName="BarMeterValueIconContainer";const He={root:a.css`
|
|
336
336
|
inline-size: 100%;
|
|
337
337
|
block-size: ${$(1.5)};
|
|
338
338
|
border-radius: ${$("max")};
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
--qlib-bar-color: ${x(e,5)};
|
|
348
348
|
}
|
|
349
349
|
background-color: var(--qlib-bar-color);
|
|
350
|
-
`},Te=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",value:n,minValue:i,maxValue:a,isPale:l=!0,className:s}=r,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","value","minValue","maxValue","isPale","className"]);const d=Math.min(Math.max((n-i)/(a-i)*100,0),100);return(0,e.jsx)("div",Object.assign({css:He.root,className:s,ref:o,role:"progressbar","aria-valuenow":n,"aria-valuemin":i,"aria-valuemax":a},c,{children:(0,e.jsx)("div",{css:He.bar(t),style:{inlineSize:`${d}%`},"data-qlib-pale":l,"aria-hidden":!0})}))}));Te.displayName="BarProgress";const Ve=(0,r.createContext)(void 0),Ye=Ve.Provider,Ue=()=>`\n --qlib-left-border-radius: ${$(1)};\n --qlib-right-border-radius: ${$(1)};\n --qlib-right-border-width: ${q(1)};\n .qlib-control-group >& {\n &:first-child {\n --qlib-left-border-radius: ${$(1)};\n }\n &:not(:first-child) {\n --qlib-left-border-radius: ${$(0)};\n }\n &:last-child {\n --qlib-right-border-radius: ${$(1)};\n }\n &:not(:last-child) {\n --qlib-right-border-radius: ${$(0)};\n --qlib-right-border-width: ${q(0)};\n }\n }\n `;const
|
|
350
|
+
`},Te=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",value:n,minValue:i,maxValue:a,isPale:l=!0,className:s}=r,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","value","minValue","maxValue","isPale","className"]);const d=Math.min(Math.max((n-i)/(a-i)*100,0),100);return(0,e.jsx)("div",Object.assign({css:He.root,className:s,ref:o,role:"progressbar","aria-valuenow":n,"aria-valuemin":i,"aria-valuemax":a},c,{children:(0,e.jsx)("div",{css:He.bar(t),style:{inlineSize:`${d}%`},"data-qlib-pale":l,"aria-hidden":!0})}))}));Te.displayName="BarProgress";const Ve=(0,r.createContext)(void 0),Ye=Ve.Provider,Ue=()=>`\n --qlib-left-border-radius: ${$(1)};\n --qlib-right-border-radius: ${$(1)};\n --qlib-right-border-width: ${q(1)};\n .qlib-control-group >& {\n &:first-child {\n --qlib-left-border-radius: ${$(1)};\n }\n &:not(:first-child) {\n --qlib-left-border-radius: ${$(0)};\n }\n &:last-child {\n --qlib-right-border-radius: ${$(1)};\n }\n &:not(:last-child) {\n --qlib-right-border-radius: ${$(0)};\n --qlib-right-border-width: ${q(0)};\n }\n }\n `;const Ge={rootBox:e=>a.css`
|
|
351
351
|
// 文字サイズ
|
|
352
352
|
&[data-qlib-size="small"] {
|
|
353
353
|
--qlib-font-size: ${$(3)};
|
|
@@ -496,16 +496,16 @@
|
|
|
496
496
|
&[data-qlib-loading="true"] {
|
|
497
497
|
display: flex;
|
|
498
498
|
}
|
|
499
|
-
`},
|
|
499
|
+
`},_e=(0,r.forwardRef)(((o,t)=>{var n,{scheme:i="primary",variant:a="solid",size:c="medium",isCompact:d=!1,type:b="button",isDisabled:u,isLoading:p=!1,onClick:f,onKeyDown:m,onKeyUp:y,onMouseDown:g,onPointerDown:h,children:O,className:v}=o,x=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","variant","size","isCompact","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const j=(0,r.useContext)(Ve),w=null!==(n=null!=u?u:null==j?void 0:j.isDisabled)&&void 0!==n&&n,$=(0,r.useMemo)((()=>"solid"===a||"light"===a?Ge.rootBox(i):"underline"===a||"simple"===a?Ge.rootText(i):Ge.rootUnstyled(i)),[i,a]);return(0,e.jsxs)("button",Object.assign({className:v,css:$,type:b,disabled:w||p,onClick:f,onKeyDown:m,onKeyUp:y,onMouseDown:g,onPointerDown:h,ref:t,"data-qlib-variant":a,"data-qlib-size":c,"data-qlib-compact":d,"data-qlib-loading":p},x,{children:[O,(0,e.jsx)("div",{css:Ge.loading,"data-qlib-loading":p,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));_e.displayName="Button";const Ke={root:a.css`
|
|
500
500
|
margin-inline-end: ${$("gap")};
|
|
501
501
|
display: inline;
|
|
502
502
|
flex-grow: 0;
|
|
503
503
|
flex-shrink: 0;
|
|
504
|
-
`},
|
|
504
|
+
`},We=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Ke.root,className:n,ref:o},i,{children:t}))}));We.displayName="ButtonIconContainer";const Qe={root:a.css`
|
|
505
505
|
column-gap: ${$("gap")};
|
|
506
506
|
display: flex;
|
|
507
507
|
align-items: center;
|
|
508
|
-
`},Je=(0,r.forwardRef)(((o,t)=>{var{isError:n,isDisabled:i,children:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isError","isDisabled","children","className"]);return(0,e.jsx)("label",Object.assign({className:l,css:
|
|
508
|
+
`},Je=(0,r.forwardRef)(((o,t)=>{var{isError:n,isDisabled:i,children:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isError","isDisabled","children","className"]);return(0,e.jsx)("label",Object.assign({className:l,css:Qe.root,ref:t},s,{children:(0,e.jsx)(Ye,{value:(0,r.useMemo)((()=>({isError:n,isDisabled:i})),[n,i]),children:a})}))}));Je.displayName="CheckableContainer";const Ze={root:a.css`
|
|
509
509
|
&[data-qlib-disabled="true"] {
|
|
510
510
|
opacity: 0.5;
|
|
511
511
|
}
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
input:indeterminate +* >& {
|
|
590
590
|
color: var(--qlib-checked-background-color);
|
|
591
591
|
}
|
|
592
|
-
`},or=(0,r.forwardRef)(((o,t)=>{var n,i,{scheme:a="primary",isChecked:s,name:c,value:d,isError:b,isRequired:
|
|
592
|
+
`},or=(0,r.forwardRef)(((o,t)=>{var n,i,{scheme:a="primary",isChecked:s,name:c,value:d,isError:b,isRequired:u,isDisabled:p,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","inputClassName","inputId"]);const x=(0,r.useContext)(Ve),j=null!==(n=null!=b?b:null==x?void 0:x.isError)&&void 0!==n&&n,w=null!==(i=null!=p?p:null==x?void 0:x.isDisabled)&&void 0!==i&&i,$=(0,er.useId)(),q=(0,r.useRef)(null),k=(0,er.useMergeRefs)([t,q]),N=(0,r.useCallback)((e=>{const r=e.target.checked;null==f||f(r),null==m||m(e)}),[f,m]);return(0,r.useEffect)((()=>{null!=q.current&&(q.current.indeterminate="indeterminate"===s)}),[s]),(0,e.jsxs)("div",Object.assign({css:rr.root(a),className:g,"data-qlib-disabled":w,"data-qlib-error":j},v,{children:[(0,e.jsx)("input",{type:"checkbox",css:rr.original,ref:k,className:h,id:O||$,checked:null!=s?!0===s:void 0,name:c,value:d,required:u,disabled:w,onChange:null!=f||null!=m?N:void 0,onBlur:y,"aria-invalid":j}),(0,e.jsx)("label",{css:rr.input,htmlFor:O||$,"aria-hidden":"true",children:(0,e.jsx)(l.FontAwesomeIcon,{css:rr.icon,icon:"indeterminate"===s?ge.faMinus:ge.faCheck,widthAuto:!0})})]}))}));or.displayName="Checkbox";const tr={root:a.css`
|
|
593
593
|
row-gap: ${$(2)};
|
|
594
594
|
display: flex;
|
|
595
595
|
flex-direction: column;
|
|
@@ -636,11 +636,11 @@
|
|
|
636
636
|
font-size: ${$(4)};
|
|
637
637
|
font-weight: ${v("bold")};
|
|
638
638
|
color: ${x("gray",7)};
|
|
639
|
-
`},
|
|
639
|
+
`},ur=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(Me,Object.assign({className:n,css:br.root,as:"div",ref:o},i,{children:t}))}));ur.displayName="ControlLabel";const pr={root:a.css`
|
|
640
640
|
display: flex;
|
|
641
641
|
position: relative;
|
|
642
642
|
z-index: 0;
|
|
643
|
-
`},fr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:
|
|
643
|
+
`},fr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:pr.root,className:["qlib-control-group",n].join(" "),ref:o},i,{children:t}))}));fr.displayName="ControlGroup";const mr={root:a.css`
|
|
644
644
|
&[data-qlib-orientation="vertical"] {
|
|
645
645
|
block-size: 100%;
|
|
646
646
|
border-inline-start: solid ${q(1)} ${x("gray",1)};
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
651
651
|
}
|
|
652
652
|
`},yr=(0,r.forwardRef)(((r,o)=>{var{orientation:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["orientation","className"]);return(0,e.jsx)("div",Object.assign({css:mr.root,className:n,role:"separator",ref:o,"data-qlib-orientation":t},i))}));yr.displayName="Divider";a.css`
|
|
653
|
-
`;const gr=(0,r.forwardRef)(((r,o)=>{var{icon:t,label:n,flip:i="none",rotation:a=0,spin:s=!1,className:
|
|
653
|
+
`;const gr=(0,r.forwardRef)(((r,o)=>{var{icon:t,label:n,flip:i="none",rotation:a=0,spin:s=!1,isFixedWidth:c=!1,className:d}=r,b=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["icon","label","flip","rotation","spin","isFixedWidth","className"]);return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:d,icon:t,title:n,flip:"none"===i?void 0:i,rotation:0===a?void 0:a,spin:s,widthAuto:!c,ref:o},b))}));gr.displayName="GeneralIcon";const hr={root:a.css`
|
|
654
654
|
&[data-qlib-size="small"] {
|
|
655
655
|
--qlib-font-size: ${$(3)};
|
|
656
656
|
--qlib-padding-block: ${$(1.5)};
|
|
@@ -719,7 +719,7 @@
|
|
|
719
719
|
color: ${x("gray",5)};
|
|
720
720
|
flex-grow: 0;
|
|
721
721
|
flex-shrink: 0;
|
|
722
|
-
`},Or=o=>{var t,n,{value:i,name:a,size:l="medium",multiple:c,accept:d,autoFocus:b,isError:
|
|
722
|
+
`},Or=o=>{var t,n,{value:i,name:a,size:l="medium",multiple:c,accept:d,autoFocus:b,isError:u,isRequired:p,isDisabled:f,onSet:m,onChange:y,onBlur:g,children:h,className:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","multiple","accept","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const x=(0,r.useContext)(Ve),j=null!==(t=null!=u?u:null==x?void 0:x.isError)&&void 0!==t&&t,w=null!==(n=null!=f?f:null==x?void 0:x.isDisabled)&&void 0!==n&&n,$=(0,r.useRef)(null),[q,k]=(0,r.useState)(""),N=(0,r.useCallback)((function(e){var r,o;const t=Array.from(null!==(r=e.target.files)&&void 0!==r?r:[]);c?null==m||m(t):null==m||m(null!==(o=t[0])&&void 0!==o?o:null),null==y||y(e),k(vr(t))}),[c,m,y]),P=(0,r.useCallback)((function(){var e;null===(e=$.current)||void 0===e||e.click()}),[]);return(0,e.jsx)("div",{className:O,css:hr.root,"data-qlib-size":l,"data-qlib-disabled":w,"data-qlib-error":j,children:(0,e.jsxs)("div",{css:hr.inputContainer,children:[(0,e.jsx)("input",Object.assign({css:hr.input,ref:$,name:a,type:"file",multiple:c,accept:d,autoFocus:b,required:p,disabled:w,onChange:N,onBlur:g,"aria-invalid":j},v)),(0,e.jsx)("button",{css:hr.button,disabled:w,onClick:P,"aria-hidden":!0,children:q}),(0,e.jsx)("div",{css:hr.builtinAddon,children:(0,e.jsx)(gr,{icon:c?s.faFiles:s.faFile})})]})})};function vr(e){return Array.isArray(e)?e.map(vr).join(", "):null!=e?e.name:""}Or.displayName="FileInput";const xr={root:a.css`
|
|
723
723
|
padding-block: ${$(1)};
|
|
724
724
|
padding-inline-start: ${$(3)};
|
|
725
725
|
font-size: ${$(5)};
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
flex-grow: 1;
|
|
735
735
|
content: "";
|
|
736
736
|
}
|
|
737
|
-
`},jr=(0,r.forwardRef)(((r,o)=>{var{as:t="h2",className:n,children:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","className","children"]);const l=t;return(0,e.jsx)(l,Object.assign({css:xr.root,className:n,ref:o},a,{children:i}))}));jr.displayName="Heading";const wr={plus:s.faPlus,minus:s.faTimes,edit:s.faPen,delete:s.faTrashAlt,search:s.faSearch,upload:s.faUpload,copy:s.faCopy,confirm:s.faCheck,accept:s.faThumbsUp,refuse:s.faBan,move:s.faArrowsUpDownLeftRight,bulk:s.faBucket,login:s.faSignInAlt,logout:s.faSignOutAlt,correct:s.faO,wrong:s.faTimes,first:s.faArrowLeftToLine,previous:s.faArrowLeft,next:s.faArrowRight,last:s.faArrowRightToLine,success:s.faCircleCheck,error:s.faTriangleExclamation,caution:s.faTriangleExclamation,info:s.faCircleInfo,more:s.faAngleDown,less:s.faAngleUp,back:s.faLeft,empty:s.faFaceDotted,menu:s.faChevronDown,grip:s.faGripVertical,ellipsis:s.faEllipsisH};const $r=(0,r.forwardRef)(((r,o)=>{var{name:t,label:n,className:
|
|
737
|
+
`},jr=(0,r.forwardRef)(((r,o)=>{var{as:t="h2",className:n,children:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","className","children"]);const l=t;return(0,e.jsx)(l,Object.assign({css:xr.root,className:n,ref:o},a,{children:i}))}));jr.displayName="Heading";const wr={plus:s.faPlus,minus:s.faTimes,edit:s.faPen,delete:s.faTrashAlt,search:s.faSearch,upload:s.faUpload,copy:s.faCopy,confirm:s.faCheck,accept:s.faThumbsUp,refuse:s.faBan,move:s.faArrowsUpDownLeftRight,bulk:s.faBucket,login:s.faSignInAlt,logout:s.faSignOutAlt,correct:s.faO,wrong:s.faTimes,first:s.faArrowLeftToLine,previous:s.faArrowLeft,next:s.faArrowRight,last:s.faArrowRightToLine,success:s.faCircleCheck,error:s.faTriangleExclamation,caution:s.faTriangleExclamation,info:s.faCircleInfo,more:s.faAngleDown,less:s.faAngleUp,back:s.faLeft,empty:s.faFaceDotted,menu:s.faChevronDown,grip:s.faGripVertical,ellipsis:s.faEllipsisH};const $r=(0,r.forwardRef)(((r,o)=>{var{name:t,label:n,isFixedWidth:i=!1,className:a}=r,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["name","label","isFixedWidth","className"]);const c=wr[t];return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:a,icon:c,title:n,ref:o,widthAuto:!i},s))}));$r.displayName="Icon";const qr={rootBox:e=>a.css`
|
|
738
738
|
// 文字サイズ
|
|
739
739
|
&[data-qlib-size="small"] {
|
|
740
740
|
--qlib-font-size: ${$(3)};
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
&[data-qlib-loading="true"] {
|
|
815
815
|
display: flex;
|
|
816
816
|
}
|
|
817
|
-
`},kr=(0,r.forwardRef)(((o,t)=>{var{label:n,scheme:i="primary",variant:a="solid",size:c="medium",type:d="button",isDisabled:b,isLoading:
|
|
817
|
+
`},kr=(0,r.forwardRef)(((o,t)=>{var{label:n,scheme:i="primary",variant:a="solid",size:c="medium",type:d="button",isDisabled:b,isLoading:u=!1,onClick:p,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,className:h,children:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["label","scheme","variant","size","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","className","children"]);const x=(0,r.useContext)(Ve);return null!=b?b:null==x?void 0:x.isDisabled,(0,e.jsxs)("button",Object.assign({className:h,css:qr.rootBox(i),type:d,disabled:b||u,onClick:p,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,ref:t,"aria-label":n,"data-qlib-variant":a,"data-qlib-size":c,"data-qlib-loading":u},v,{children:[O,(0,e.jsx)("div",{css:qr.loading,"data-qlib-loading":u,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));kr.displayName="IconButton";const Nr={root:a.css`
|
|
818
818
|
flex-grow: 0;
|
|
819
819
|
flex-shrink: 0;
|
|
820
820
|
`},Pr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Nr.root,className:n,ref:o},i,{children:t}))}));Pr.displayName="InputLeftAddon";const Sr={root:a.css`
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
color: ${x("gray",5)};
|
|
910
910
|
flex-grow: 0;
|
|
911
911
|
flex-shrink: 0;
|
|
912
|
-
`},Ir=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:l,size:c="medium",isCompact:d=!1,type:b="text",inputMode:
|
|
912
|
+
`},Ir=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:l,size:c="medium",isCompact:d=!1,type:b="text",inputMode:u,placeholder:p,autoComplete:f="off",autoFocus:m,isError:y,isRequired:g,isDisabled:h,onSet:O,onChange:v,onBlur:x,children:j,className:w,inputClassName:$,inputId:q}=o,k=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","isCompact","type","inputMode","placeholder","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className","inputClassName","inputId"]);const N=(0,r.useContext)(Ve),P=null!==(n=null!=y?y:null==N?void 0:N.isError)&&void 0!==n&&n,S=null!==(i=null!=h?h:null==N?void 0:N.isDisabled)&&void 0!==i&&i,C=(0,r.useCallback)((e=>{const r=e.target.value;null==O||O(r),null==v||v(e)}),[O,v]),z=Se(j),I=z.find((e=>e.type===Pr)),E=z.find((e=>e.type===Cr));return(0,e.jsx)("label",{className:w,css:zr.root,"data-qlib-size":c,"data-qlib-compact":d,"data-qlib-disabled":S,"data-qlib-error":P,children:(0,e.jsxs)("div",{css:zr.inputContainer,children:[I,(0,e.jsx)("input",Object.assign({css:zr.input,className:$,id:q,ref:t,value:a,name:l,type:b,inputMode:u,placeholder:p,autoComplete:f,autoFocus:m,required:g,disabled:S,onChange:null!=O||null!=v?C:void 0,onBlur:x,"aria-invalid":P},k)),Er(b)&&(0,e.jsx)("div",{css:zr.builtinAddon,children:(0,e.jsx)(gr,{icon:"time"===b?s.faClock:s.faCalendar})}),E]})})}));Ir.displayName="Input";const Er=e=>"date"===e||"time"===e||"datetime-local"===e||"month"===e||"week"===e;const Dr=e=>a.css`
|
|
913
913
|
// 文字サイズ
|
|
914
914
|
&[data-qlib-size="small"] {
|
|
915
915
|
--qlib-font-size: ${$(3)};
|
|
@@ -991,7 +991,7 @@
|
|
|
991
991
|
opacity: 0.5;
|
|
992
992
|
cursor: inherit;
|
|
993
993
|
}
|
|
994
|
-
`,
|
|
994
|
+
`,Rr=e=>a.css`
|
|
995
995
|
&[data-qlib-variant="underline"] {
|
|
996
996
|
--qlib-color: ${x(e,5)};
|
|
997
997
|
--qlib-hover-color: ${x(e,4)};
|
|
@@ -1021,7 +1021,7 @@
|
|
|
1021
1021
|
opacity: 0.5;
|
|
1022
1022
|
cursor: inherit;
|
|
1023
1023
|
}
|
|
1024
|
-
`,
|
|
1024
|
+
`,Mr=e=>a.css`
|
|
1025
1025
|
&[data-qlib-variant="underline"] {
|
|
1026
1026
|
--qlib-hover-decoration-color: currentcolor;
|
|
1027
1027
|
}
|
|
@@ -1056,14 +1056,14 @@
|
|
|
1056
1056
|
&[data-qlib-loading="true"] {
|
|
1057
1057
|
display: flex;
|
|
1058
1058
|
}
|
|
1059
|
-
`,(0,r.forwardRef)(((o,t)=>{var{href:n,target:i,scheme:a="primary",variant:l="underline",size:s="medium",download:c,isCompact:d=!1,onClick:b,onKeyDown:
|
|
1059
|
+
`,(0,r.forwardRef)(((o,t)=>{var{href:n,target:i,scheme:a="primary",variant:l="underline",size:s="medium",download:c,isCompact:d=!1,onClick:b,onKeyDown:u,onKeyUp:p,onMouseDown:f,onPointerDown:m,children:y,className:g}=o,h=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["href","target","scheme","variant","size","download","isCompact","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const O=(0,r.useMemo)((()=>"solid"===l||"light"===l?Dr(a):"underline"===l||"simple"===l?Rr(a):Mr(a)),[a,l]);return(0,e.jsx)("a",Object.assign({className:g,css:O,href:n,target:i,download:c,onClick:b,onKeyDown:u,onKeyUp:p,onMouseDown:f,onPointerDown:m,ref:t,"data-qlib-variant":l,"data-qlib-size":s,"data-qlib-compact":d},h,{children:y}))})));Lr.displayName="Link";const Ar={root:a.css`
|
|
1060
1060
|
margin-inline-end: ${$("gap")};
|
|
1061
1061
|
display: inline;
|
|
1062
1062
|
flex-grow: 0;
|
|
1063
1063
|
flex-shrink: 0;
|
|
1064
|
-
`},
|
|
1064
|
+
`},Fr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Ar.root,className:n,ref:o},i,{children:t}))}));Fr.displayName="LinkIconContainer";const Br=e=>a.css`
|
|
1065
1065
|
color: ${null!=e?x(e,5):"inherit"};
|
|
1066
|
-
`,Hr=(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","className"]);const{trans:a}=D("loadingIcon");return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:n,css:
|
|
1066
|
+
`,Hr=(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","className"]);const{trans:a}=D("loadingIcon");return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:n,css:Br(t),icon:s.faCircleNotch,spin:!0,ref:o,"aria-label":a("label")},i))}));Hr.displayName="LoadingIcon";const Tr=require("body-scroll-lock"),Vr=require("react-modal");var Yr=o.n(Vr);const Ur={overlay:a.css`
|
|
1067
1067
|
background-color: ${j(x("black"),.6)};
|
|
1068
1068
|
position: fixed;
|
|
1069
1069
|
inset: 0rem;
|
|
@@ -1075,10 +1075,10 @@
|
|
|
1075
1075
|
&.ReactModal__Overlay--before-close {
|
|
1076
1076
|
opacity: 0;
|
|
1077
1077
|
}
|
|
1078
|
-
`},
|
|
1078
|
+
`},Gr=({isOpen:o,label:t,onClose:n,children:i,className:l})=>{const[s,c]=(0,r.useState)(!0),d=(0,r.useCallback)((()=>{c(!1),null==n||n()}),[n]),b=void 0!==o?o:s;return(0,r.useEffect)((()=>{b?Tr.disableBodyScroll(document.body,{reserveScrollBarGap:!0}):Tr.enableBodyScroll(document.body)}),[b]),(0,e.jsx)(a.ClassNames,{children:({css:n})=>(0,e.jsx)(Yr(),{isOpen:void 0!==o?o:s,contentLabel:t,onRequestClose:d,className:"qlib-modal",overlayClassName:[l,n(Ur.overlay)].join(" "),portalClassName:"qlib-modal-portal",bodyOpenClassName:null,htmlOpenClassName:null,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,contentElement:e=>(0,r.cloneElement)(i,e),closeTimeoutMS:200})})};Gr.displayName="Modal";const _r={root:a.css`
|
|
1079
1079
|
flex-grow: 0;
|
|
1080
1080
|
flex-shrink: 0;
|
|
1081
|
-
`},Kr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:
|
|
1081
|
+
`},Kr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:_r.root,className:n,ref:o},i,{children:t}))}));Kr.displayName="NumberInputLeftAddon";const Wr={root:a.css`
|
|
1082
1082
|
&[data-qlib-size="small"] {
|
|
1083
1083
|
--qlib-font-size: ${$(3)};
|
|
1084
1084
|
}
|
|
@@ -1207,7 +1207,7 @@
|
|
|
1207
1207
|
&:hover:not([data-disabled="true"]) {
|
|
1208
1208
|
background-color: ${x("gray",0)};
|
|
1209
1209
|
}
|
|
1210
|
-
`},
|
|
1210
|
+
`},Qr=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:c,size:d="medium",isCompact:b=!1,controlPosition:u="vertical",max:p,min:f,step:m,autoComplete:y="off",autoFocus:g,isError:h,isRequired:O,isDisabled:v,onSet:x,onChange:j,onBlur:w,children:$,className:q}=o,k=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","isCompact","controlPosition","max","min","step","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const N=(0,r.useContext)(Ve),P=null!==(n=null!=h?h:null==N?void 0:N.isError)&&void 0!==n&&n,S=null!==(i=null!=v?v:null==N?void 0:N.isDisabled)&&void 0!==i&&i,C=(0,r.useRef)(null),z=(0,er.useMergeRefs)([t,C]),I=(0,r.useCallback)((e=>{const r=e.target.value;null==x||x(r),null==j||j(e)}),[x,j]),E=(0,r.useCallback)((e=>{null!=C.current&&(C.current.stepUp(),C.current.dispatchEvent(new Event("change",{bubbles:!0})),null==x||x(C.current.value))}),[x]),D=(0,r.useCallback)((e=>{null!=C.current&&(C.current.stepDown(),C.current.dispatchEvent(new Event("change",{bubbles:!0})),null==x||x(C.current.value))}),[x]),R=Se($).find((e=>e.type===Kr));return(0,e.jsx)("label",{className:q,css:Wr.root,"data-qlib-size":d,"data-qlib-compact":b,"data-qlib-disabled":S,"data-qlib-error":P,children:(0,e.jsxs)("div",{css:Wr.inputContainer,children:[R,(0,e.jsx)("input",Object.assign({css:Wr.input,ref:z,value:a,name:c,type:"number",max:p,min:f,step:m,autoComplete:y,autoFocus:g,required:O,disabled:S,onChange:null!=x||null!=j?I:void 0,onBlur:w,"aria-invalid":P},k)),"horizontal"===u&&(0,e.jsx)("button",{css:Wr.horizontalButton,type:"button",onClick:D,tabIndex:-1,"data-position":"left","data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleLeft,widthAuto:!0})}),"horizontal"===u&&(0,e.jsx)("button",{css:Wr.horizontalButton,type:"button",onClick:E,tabIndex:-1,"data-position":"right","data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleRight,widthAuto:!0})}),"vertical"===u&&(0,e.jsxs)("div",{css:Wr.vertivalButtonList,children:[(0,e.jsx)("button",{css:Wr.verticalButton,type:"button",onClick:E,tabIndex:-1,"data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleUp,widthAuto:!0})}),(0,e.jsx)("hr",{css:Wr.verticalButtonDivider,"aria-hidden":!0}),(0,e.jsx)("button",{css:Wr.verticalButton,type:"button",onClick:D,tabIndex:-1,"data-disabled":S,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown,widthAuto:!0})})]})]})})}));Qr.displayName="NumberInput";const Jr={root:a.css`
|
|
1211
1211
|
flex-grow: 0;
|
|
1212
1212
|
flex-shrink: 0;
|
|
1213
1213
|
`},Zr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Jr.root,className:n,ref:o},i,{children:t}))}));Zr.displayName="PasswordInputLeftAddon";const Xr={root:a.css`
|
|
@@ -1283,7 +1283,7 @@
|
|
|
1283
1283
|
outline: solid ${q(2)} ${j(x("primary",4),.6)};
|
|
1284
1284
|
outline-offset: ${q(1)};
|
|
1285
1285
|
}
|
|
1286
|
-
`},oo=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:c,size:d="medium",initialReveal:b=!1,inputMode:
|
|
1286
|
+
`},oo=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:c,size:d="medium",initialReveal:b=!1,inputMode:u,autoComplete:p="current-password",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:O,onBlur:v,children:x,className:j}=o,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","initialReveal","inputMode","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const $=(0,r.useContext)(Ve),q=null!==(n=null!=m?m:null==$?void 0:$.isError)&&void 0!==n&&n,k=null!==(i=null!=g?g:null==$?void 0:$.isDisabled)&&void 0!==i&&i,N=(0,r.useId)(),[P,S]=(0,r.useState)(b),C=(0,r.useCallback)((()=>{S((e=>!e))}),[]),z=(0,r.useCallback)((e=>{const r=e.target.value;null==h||h(r),null==O||O(e)}),[h,O]),I=Se(x),E=I.find((e=>e.type===Zr)),D=I.find((e=>e.type===eo));return(0,e.jsx)("label",Object.assign({className:j,css:ro.root,"data-qlib-size":d,"data-qlib-disabled":k,"data-qlib-error":q},w,{children:(0,e.jsxs)("div",{css:ro.inputContainer,children:[E,(0,e.jsx)("input",Object.assign({css:ro.input,id:N,ref:t,value:a,name:c,type:P?"input":"password",inputMode:u,autoComplete:p,autoFocus:f,required:y,disabled:k,onChange:null!=h||null!=O?z:void 0,onBlur:v,"aria-invalid":q},w)),(0,e.jsx)("button",{css:ro.button,type:"button",onClick:C,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:P?s.faEyeSlash:s.faEye,widthAuto:!0})}),D]})}))}));oo.displayName="PasswordInput";const to=(0,r.createContext)(void 0),no=to.Provider;const io={root:e=>a.css`
|
|
1287
1287
|
&[data-qlib-error="false"] {
|
|
1288
1288
|
--qlib-border-color: ${x("gray",5)};
|
|
1289
1289
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -1361,7 +1361,7 @@
|
|
|
1361
1361
|
input:checked +* >& {
|
|
1362
1362
|
opacity: 1;
|
|
1363
1363
|
}
|
|
1364
|
-
`},ao=(0,r.forwardRef)(((o,t)=>{var n,i,a,{scheme:l="primary",isChecked:s,name:c,value:d,isError:b,isRequired:
|
|
1364
|
+
`},ao=(0,r.forwardRef)(((o,t)=>{var n,i,a,{scheme:l="primary",isChecked:s,name:c,value:d,isError:b,isRequired:u,isDisabled:p,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","inputClassName","inputId"]);const x=(0,r.useContext)(to),j=(0,r.useContext)(Ve),w=null!==(n=null!=b?b:null==j?void 0:j.isError)&&void 0!==n&&n,$=null!==(i=null!=p?p:null==j?void 0:j.isDisabled)&&void 0!==i&&i,q=(0,er.useId)(),k=(0,r.useCallback)((e=>{if(null!=(null==x?void 0:x.onSet)&&null!=d)x.onSet(d);else{const r=e.target.checked;null==f||f(r)}null==m||m(e)}),[d,x,f,m]);return(0,e.jsxs)("div",Object.assign({css:io.root(l),className:g,"data-qlib-disabled":$,"data-qlib-error":w},v,{children:[(0,e.jsx)("input",{type:"radio",css:io.original,ref:t,className:h,id:O||q,value:d,name:null!==(a=null==x?void 0:x.name)&&void 0!==a?a:c,checked:null!=(null==x?void 0:x.value)?x.value===d:null!=s?!0===s:void 0,required:u,disabled:$,onChange:null!=(null==x?void 0:x.onSet)||null!=f||null!=m?k:void 0,onBlur:y,"aria-invalid":w}),(0,e.jsx)("label",{css:io.input,htmlFor:O||q,"aria-hidden":"true",children:(0,e.jsx)("div",{css:io.icon})})]}))}));ao.displayName="Radio";const lo=({value:o,onSet:t,children:n})=>{const i=(0,er.useId)(),a=(0,r.useMemo)((()=>({name:i,value:o,onSet:t})),[i,o,t]);return(0,e.jsx)(no,{value:a,children:n})};lo.displayName="RadioGroup";const so={root:a.css`
|
|
1365
1365
|
&[data-qlib-orientation="horizontal"] {
|
|
1366
1366
|
--qlib-flex-direction: row;
|
|
1367
1367
|
}
|
|
@@ -1373,7 +1373,7 @@
|
|
|
1373
1373
|
row-gap: ${$(2)};
|
|
1374
1374
|
display: flex;
|
|
1375
1375
|
flex-direction: var(--qlib-flex-direction);
|
|
1376
|
-
`},co=(0,r.forwardRef)((({orientation:r="vertical",children:o},t)=>(0,e.jsx)(lo,{children:(0,e.jsx)("div",{css:so.root,ref:t,"aria-orientation":r,"data-qlib-orientation":r,children:o})})));co.displayName="AlignedRadioGroup";const bo=require("react-use");const
|
|
1376
|
+
`},co=(0,r.forwardRef)((({orientation:r="vertical",children:o},t)=>(0,e.jsx)(lo,{children:(0,e.jsx)("div",{css:so.root,ref:t,"aria-orientation":r,"data-qlib-orientation":r,children:o})})));co.displayName="AlignedRadioGroup";const bo=require("react-use");const uo=(0,r.createContext)({open:()=>{return e=void 0,r=void 0,t=function*(){},new((o=void 0)||(o=Promise))((function(n,i){function a(e){try{s(t.next(e))}catch(e){i(e)}}function l(e){try{s(t.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?n(e.value):(r=e.value,r instanceof o?r:new o((function(e){e(r)}))).then(a,l)}s((t=t.apply(e,r||[])).next())}));var e,r,o,t},close:()=>{},setDialogSpec:()=>{}}),po=({children:o})=>{const[t,n]=(0,r.useState)(!1),i=(0,r.useRef)((()=>{})),a=(0,r.useCallback)((()=>(i.current(),new Promise((e=>{i.current=e,n(!0)})))),[]),l=(0,r.useCallback)((()=>{n(!1),i.current()}),[]),[s,c]=(0,r.useState)(null),d=(0,r.useMemo)((()=>({open:a,close:l,setDialogSpec:c})),[a,l,c]);return(0,e.jsxs)(uo.Provider,{value:d,children:[null!=s&&(0,r.cloneElement)(s.element,{isOpen:t,onClose:l}),o]})},fo=(0,r.createContext)({rootFontSize:{desktop:"16px",smartphone:"13px"},smartphoneQuery:"(max-width: 767px)"}),mo=fo.Provider,yo=require("@radix-ui/react-toast"),go={root:a.css`
|
|
1377
1377
|
inline-size: ${$(96)};
|
|
1378
1378
|
max-inline-size: calc(100vw - ${$(6)});
|
|
1379
1379
|
inset-block-start: ${$(6)};
|
|
@@ -1387,7 +1387,7 @@
|
|
|
1387
1387
|
position: fixed;
|
|
1388
1388
|
outline: none;
|
|
1389
1389
|
z-index: 2000;
|
|
1390
|
-
`},ho=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(yo.Viewport,{css:go.root,label:r("viewportLabel")})},Oo=(0,r.createContext)({setToastSpecs:()=>null}),vo=Oo.Provider,xo=({children:o})=>{const{trans:t}=D("toast"),[n,i]=(0,r.useState)([]),a=(0,r.useMemo)((()=>({setToastSpecs:i})),[i]);return(0,e.jsx)(yo.Provider,{label:t("rootLabel"),children:(0,e.jsxs)(vo,{value:a,children:[(0,e.jsx)(ho,{}),n.map((e=>e.element)),o]})})},jo=e=>Object.fromEntries(Object.entries(e).map((([e,r])=>[`qlib.${e}`,r]))),wo={ja:jo(o(62)),en:jo(o(714))},$o=e=>({ja:e.map((e=>{var r;return null!==(r=e.ja)&&void 0!==r?r:{}})).reduce(Object.assign,{}),en:e.map((e=>{var r;return null!==(r=e.en)&&void 0!==r?r:{}})).reduce(Object.assign,{})}),qo=e=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e:{desktop:e,smartphone:e},ko=(e,r)=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e[r]:e,No=()=>{const{smartphoneQuery:e}=(0,r.useContext)(fo);return(0,bo.useMedia)(e,!1)},Po=e=>{const r=No();return ko(e,r?"smartphone":"desktop")},So=e=>{const[o,t]=(0,r.useState)(void 0);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},Co=e=>{const[o,t]=(0,r.useState)(e.value);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},zo=require("rxjs"),Io=new zo.BehaviorSubject((0,E.createIntl)({locale:"ja",onError:e=>null})),Eo=new zo.BehaviorSubject("ja"),Do=()=>Co(Io),
|
|
1390
|
+
`},ho=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(yo.Viewport,{css:go.root,label:r("viewportLabel")})},Oo=(0,r.createContext)({setToastSpecs:()=>null}),vo=Oo.Provider,xo=({children:o})=>{const{trans:t}=D("toast"),[n,i]=(0,r.useState)([]),a=(0,r.useMemo)((()=>({setToastSpecs:i})),[i]);return(0,e.jsx)(yo.Provider,{label:t("rootLabel"),children:(0,e.jsxs)(vo,{value:a,children:[(0,e.jsx)(ho,{}),n.map((e=>e.element)),o]})})},jo=e=>Object.fromEntries(Object.entries(e).map((([e,r])=>[`qlib.${e}`,r]))),wo={ja:jo(o(62)),en:jo(o(714))},$o=e=>({ja:e.map((e=>{var r;return null!==(r=e.ja)&&void 0!==r?r:{}})).reduce(Object.assign,{}),en:e.map((e=>{var r;return null!==(r=e.en)&&void 0!==r?r:{}})).reduce(Object.assign,{})}),qo=e=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e:{desktop:e,smartphone:e},ko=(e,r)=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e[r]:e,No=()=>{const{smartphoneQuery:e}=(0,r.useContext)(fo);return(0,bo.useMedia)(e,!1)},Po=e=>{const r=No();return ko(e,r?"smartphone":"desktop")},So=e=>{const[o,t]=(0,r.useState)(void 0);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},Co=e=>{const[o,t]=(0,r.useState)(e.value);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},zo=require("rxjs"),Io=new zo.BehaviorSubject((0,E.createIntl)({locale:"ja",onError:e=>null})),Eo=new zo.BehaviorSubject("ja"),Do=()=>Co(Io),Ro=()=>Co(Eo),Mo=()=>(0,r.useCallback)((e=>{"undefined"!=typeof localStorage&&localStorage.setItem("qlib-locale",e),Eo.next(e)}),[]),Lo=e=>{const o=(0,E.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const i=r.includes(":")?r.replace(":","."):(null!=e?`${e}.`:"")+r,a=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${i}>`;return o.formatMessage({id:i,defaultMessage:a},t)}),[o,e]),n=(0,r.useCallback)(((e,r)=>{if(null==e)return"";{const t=o.locale;if("ja"===t)switch(r){case"datetime":return I()(e).locale("ja").format("YYYY/MM/DD HH:mm");case"date":case void 0:return I()(e).locale("ja").format("YYYY/MM/DD");case"shortDate":return I()(e).locale("ja").format("MM/DD");case"time":return I()(e).locale("ja").format("HH:mm");default:throw new Error}else switch(r){case"datetime":return I()(e).locale(t).format("DD/MM/YYYY HH:mm");case"date":case void 0:return I()(e).locale(t).format("DD/MM/YYYY");case"shortDate":return I()(e).locale(t).format("DD/MM");case"time":return I()(e).locale(t).format("HH:mm");default:throw new Error}}}),[o]),i=(0,r.useCallback)(((e,r)=>{const t={minimumFractionDigits:null==r?void 0:r.digit,maximumFractionDigits:null==r?void 0:r.digit};return null!=e?e>0?((null==r?void 0:r.withSign)?"+":"")+o.formatNumber(e,t):0===e?((null==r?void 0:r.withSign)?"±":"")+o.formatNumber(e,t):"−"+o.formatNumber(-e,t):""}),[o]);return(0,r.useMemo)((()=>({trans:t,transNode:t,transDate:n,transNumber:i})),[t,n,i])},Ao=Lo,Fo=e=>{const r=Io.value;return{trans:(o,t)=>{var n;const i=o.includes(":")?o.replace(":","."):(null!=e?`${e}.`:"")+o,a=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${i}>`;return r.formatMessage({id:i,defaultMessage:a},t)},transDate:(e,o)=>{if(null==e)return"";{const t=r.locale;if("ja"===t)switch(o){case"datetime":return I()(e).locale("ja").format("YYYY/MM/DD HH:mm");case"date":case void 0:return I()(e).locale("ja").format("YYYY/MM/DD");case"shortDate":return I()(e).locale("ja").format("MM/DD");case"time":return I()(e).locale("ja").format("HH:mm");default:throw new Error}else switch(o){case"datetime":return I()(e).locale(t).format("DD/MM/YYYY HH:mm");case"date":case void 0:return I()(e).locale(t).format("DD/MM/YYYY");case"shortDate":return I()(e).locale(t).format("DD/MM");case"time":return I()(e).locale(t).format("HH:mm");default:throw new Error}}},transNumber:(e,o)=>{const t={minimumFractionDigits:null==o?void 0:o.digit,maximumFractionDigits:null==o?void 0:o.digit};return null!=e?e>0?((null==o?void 0:o.withSign)?"+":"")+r.formatNumber(e,t):0===e?((null==o?void 0:o.withSign)?"±":"")+r.formatNumber(e,t):"−"+r.formatNumber(-e,t):""}}},Bo={resetAll:!0,font:!0,wrap:!0},Ho=(e,r)=>a.css`
|
|
1391
1391
|
${r.font?a.css`
|
|
1392
1392
|
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans+JP:wght@400;700&family=Noto+Sans:wght@400;700&display=swap");
|
|
1393
1393
|
`:""}
|
|
@@ -1441,19 +1441,84 @@
|
|
|
1441
1441
|
inline-size: ${$(0)};
|
|
1442
1442
|
opacity: 0;
|
|
1443
1443
|
position: fixed;
|
|
1444
|
-
`},Vo=({})=>(0,e.jsxs)("svg",{css:To.root,viewBox:"0 0 1 1","aria-hidden":!0,children:[(0,e.jsxs)("linearGradient",{id:"qlib-rank-gold",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("gold",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("gold",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("gold",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-silver",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("silver",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("silver",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("silver",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-bronze",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("bronze",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("bronze",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("bronze",5)})]})]}),Yo=({messages:o,rootFontSize:t={desktop:"16px",smartphone:"13px"},smartphoneQuery:n="(max-width: 767px)",colorDefinitions:i={},globalStyle:l,globalCssSetting:s,appElement:c,defaultReady:d=!1,children:b})=>{const
|
|
1444
|
+
`},Vo=({})=>(0,e.jsxs)("svg",{css:To.root,viewBox:"0 0 1 1","aria-hidden":!0,children:[(0,e.jsxs)("linearGradient",{id:"qlib-rank-gold",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("gold",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("gold",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("gold",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-silver",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("silver",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("silver",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("silver",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-bronze",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("bronze",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("bronze",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("bronze",5)})]})]}),Yo=({messages:o,rootFontSize:t={desktop:"16px",smartphone:"13px"},smartphoneQuery:n="(max-width: 767px)",colorDefinitions:i={},globalStyle:l,globalCssSetting:s,appElement:c,defaultReady:d=!1,children:b})=>{const u=Ro(),p=Mo(),f=Co(Io),m=Po(t),y=(0,r.useMemo)((()=>({rootFontSize:qo(t),smartphoneQuery:n})),[t,n]);(0,r.useEffect)((()=>{const e=$o([null!=o?o:{},wo]),r=(0,E.createIntlCache)(),t=(0,E.createIntl)({locale:u,messages:e[u],onError:e=>null},r);Io.next(t)}),[u,o]);const g=(0,bo.useMedia)(n,!1);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-qlib-smartphone",g.toString())}),[g]),(0,r.useEffect)((()=>{var e;"undefined"!=typeof localStorage&&p(null!==(e=localStorage.getItem("qlib-locale"))&&void 0!==e?e:"ja")}),[p]),(0,r.useEffect)((()=>{const e="next"in window?"#__next":c;e&&Yr().setAppElement(e)}),[c]);const[O,v]=(0,r.useState)(d);return(0,r.useEffect)((()=>{v(!0)}),[]),(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)(a.Global,{styles:Ho(m,Object.assign({},Bo,null!=s?s:{}))}),(0,e.jsx)(a.Global,{styles:h(i)}),(0,e.jsx)(a.Global,{styles:l}),(0,e.jsx)(Vo,{}),(0,e.jsx)(E.RawIntlProvider,{value:f,children:(0,e.jsx)(mo,{value:y,children:(0,e.jsx)(xo,{children:(0,e.jsx)(po,{children:O&&b})})})})]})};const Uo={root:a.css`
|
|
1445
1445
|
font-size: ${$(4.5)};
|
|
1446
1446
|
font-weight: ${v("bold")};
|
|
1447
1447
|
color: ${x("primary",6)};
|
|
1448
1448
|
display: flex;
|
|
1449
1449
|
align-items: center;
|
|
1450
|
-
`},
|
|
1451
|
-
|
|
1450
|
+
`},Go=r=>{var{as:o="h3",className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","className","children"]);const a=o;return(0,e.jsx)(a,Object.assign({css:Uo.root,className:t},i,{children:n}))};Go.displayName="SecondaryHeading";const _o=(0,r.createContext)(void 0),Ko=_o.Provider;const Wo={root:e=>a.css`
|
|
1451
|
+
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
1452
|
+
cursor: pointer;
|
|
1453
|
+
flex: 1 1 auto;
|
|
1454
|
+
z-index: 1;
|
|
1455
|
+
`,original:a.css`
|
|
1456
|
+
inline-size: 1px;
|
|
1457
|
+
block-size: 1px;
|
|
1458
|
+
position: absolute;
|
|
1459
|
+
white-space: nowrap;
|
|
1460
|
+
overflow: hidden;
|
|
1461
|
+
opacity: 0;
|
|
1462
|
+
clip: rect(0px, 0px, 0px, 0px);
|
|
1463
|
+
clip-path: inset(50%);
|
|
1464
|
+
`,input:a.css`
|
|
1465
|
+
input:not(:checked) +& {
|
|
1466
|
+
--qlib-text-color: ${x("gray",5)};
|
|
1467
|
+
}
|
|
1468
|
+
input:checked +& {
|
|
1469
|
+
--qlib-text-color: ${x("white")};
|
|
1470
|
+
}
|
|
1471
|
+
padding-block: ${$(1.5)};
|
|
1472
|
+
padding-inline: ${$(3)};
|
|
1473
|
+
border-radius: ${$(1)};
|
|
1474
|
+
color: var(--qlib-text-color);
|
|
1475
|
+
line-height: 1;
|
|
1476
|
+
display: flex;
|
|
1477
|
+
align-items: center;
|
|
1478
|
+
justify-content: center;
|
|
1479
|
+
transition: color 0.2s ease, background-color 0.2s ease;
|
|
1480
|
+
input:focus-visible +& {
|
|
1481
|
+
outline: solid ${q(2)} var(--qlib-focus-color);
|
|
1482
|
+
outline-offset: ${q(1)};
|
|
1483
|
+
}
|
|
1484
|
+
`},Qo=(0,r.forwardRef)(((o,t)=>{var n,{value:i,onChange:a,onBlur:l,children:s,className:c,inputClassName:d,inputId:b}=o,u=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","onChange","onBlur","children","className","inputClassName","inputId"]);const p=(0,r.useContext)(_o),f=(0,er.useId)(),m=(0,r.useCallback)((e=>{null!=(null==p?void 0:p.onSet)&&null!=i&&p.onSet(i),null==a||a(e)}),[i,p,a]);return(0,e.jsxs)("div",Object.assign({css:Wo.root(null!==(n=null==p?void 0:p.scheme)&&void 0!==n?n:"primary"),className:c,"data-qlib-value":i},u,{children:[(0,e.jsx)("input",{type:"radio",css:Wo.original,ref:t,className:d,id:b||f,value:i,name:null==p?void 0:p.name,checked:null!=(null==p?void 0:p.value)&&p.value===i,onChange:m,onBlur:l}),(0,e.jsx)("label",{css:Wo.input,htmlFor:b||f,"aria-hidden":"true",children:s})]}))}));Qo.displayName="Segment";const Jo=e=>a.css`
|
|
1485
|
+
&:not(:hover) {
|
|
1486
|
+
--qlib-marker-background-color: ${x(e,5)};
|
|
1487
|
+
}
|
|
1488
|
+
&:hover {
|
|
1489
|
+
--qlib-marker-background-color: ${x(e,4)};
|
|
1490
|
+
}
|
|
1491
|
+
padding-block: ${$(.5)};
|
|
1492
|
+
padding-inline: ${$(.5)};
|
|
1493
|
+
border-radius: ${$(1)};
|
|
1494
|
+
border: solid ${q(1)} ${x("gray",3)};
|
|
1495
|
+
background-color: ${x("white")};
|
|
1496
|
+
display: flex;
|
|
1497
|
+
position: relative;
|
|
1498
|
+
z-index: 0;
|
|
1499
|
+
&::before {
|
|
1500
|
+
width: var(--qlib-marker-width);
|
|
1501
|
+
inset-inline-start: var(--qlib-marker-x);
|
|
1502
|
+
inset-block: ${$(.5)};
|
|
1503
|
+
border-radius: ${$(1)};
|
|
1504
|
+
background-color: var(--qlib-marker-background-color);
|
|
1505
|
+
transition: width 0.2s ease, inset-inline-start 0.2s ease, background-color 0.2s ease;
|
|
1506
|
+
position: absolute;
|
|
1507
|
+
content: "";
|
|
1508
|
+
z-index: 0;
|
|
1509
|
+
}
|
|
1510
|
+
`,Zo=({scheme:o="primary",value:t,onSet:n,children:i})=>{const a=(0,er.useId)(),l=(0,r.useRef)(null),s=(0,r.useMemo)((()=>({scheme:o,name:a,value:t,onSet:n})),[o,a,t,n]);return(0,r.useEffect)((()=>{if(null!=l.current){const e=l.current.querySelector(`[data-qlib-value="${t}"]`);if(null!=e){const r=e.getBoundingClientRect().width,o=e.offsetLeft;l.current.style.setProperty("--qlib-marker-width",`${r}px`),l.current.style.setProperty("--qlib-marker-x",`${o}px`)}}}),[t]),(0,e.jsx)(Ko,{value:s,children:(0,e.jsx)("div",{css:Jo(o),ref:l,children:i})})};Zo.displayName="SegmentGroup";const Xo={root:a.css`
|
|
1511
|
+
margin-inline-end: ${$("gap")};
|
|
1512
|
+
display: inline;
|
|
1513
|
+
flex-grow: 0;
|
|
1514
|
+
flex-shrink: 0;
|
|
1515
|
+
`},et=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Xo.root,className:n,ref:o},i,{children:t}))}));et.displayName="SegmentIconContainer";const rt={Control:H,Input:_,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ie,NoOptionsMessage:te,DropdownIndicator:V,ClearIndicator:F,IndicatorsContainer:U,IndicatorSeparator:null},ot=({value:o,defaultValue:t,variant:n="outline",optionAlignment:i="left",isError:a=!1,isClearable:l=!1,isDisabled:s=!1,onSet:c,children:b,className:u})=>{var p,f;const{trans:m}=D("select"),y=(0,r.useMemo)((()=>{const e=Se(b),r=new Map(e.map((e=>{const r={value:e.props.value,label:e.props.label,node:e};return[e.props.value,r]})));return r}),[b]),g=(0,r.useMemo)((()=>[...y.values()]),[y]),h=void 0!==o?null!==(p=y.get(o))&&void 0!==p?p:null:void 0,O=void 0!==t?null!==(f=y.get(t))&&void 0!==f?f:null:void 0,v=(0,r.useCallback)((e=>{null==c||c(null!==e?e.value:null)}),[c]),x=se(200),{isMenuOpen:j}=x,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(x,["isMenuOpen"]),$=(0,r.useMemo)((()=>({variant:n,optionAlignment:i,isMenuOpen:j,isError:a})),[n,i,j,a]);return(0,e.jsx)(L,{value:$,children:(0,e.jsx)(d(),Object.assign({className:u,classNamePrefix:"qlib-select",value:h,defaultValue:O,options:g,onChange:null!=c?v:void 0,isClearable:l,isDisabled:s,placeholder:m("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:rt,isMulti:!1,unstyled:!0,"aria-invalid":a},w))})};ot.displayName="Select";const tt={root:a.css`
|
|
1516
|
+
`},nt=r=>{var{value:o,label:t,isDisabled:n=!1,children:i,className:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["value","label","isDisabled","children","className"]);return(0,e.jsx)("div",Object.assign({css:tt.root,className:a},l,{children:null!=i?i:t}))};nt.displayName="SelectOption";const it={root:a.css`
|
|
1452
1517
|
margin-inline-end: ${$("gap")};
|
|
1453
1518
|
color: ${x("gray",5)};
|
|
1454
|
-
`},
|
|
1519
|
+
`},at=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:it.root,className:n,ref:o},i,{children:t}))}));at.displayName="SelectOptionIconContainer";const lt=({pageSize:r,defaultPageSize:o,optionPageSizes:t,isDisabled:n=!1,onSet:i,className:a})=>{const{transNumber:l}=D("pageSizeSelect");return(0,e.jsx)(ot,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:t.map((r=>(0,e.jsx)(nt,{value:r,label:l(r)},r)))})};lt.displayName="PageSizeSelect";const st=(0,r.createContext)({displayedItems:[],resolvedPageProps:{isLoading:!1,isEmpty:!1,page:0,pageCount:1,pageSize:0,optionPageSizes:[],setPage:()=>null,setPageSize:()=>null}}),ct=st.Provider,dt={root:a.css`
|
|
1455
1520
|
inline-size: ${$(16)};
|
|
1456
|
-
`},
|
|
1521
|
+
`},bt=({className:o})=>{const{resolvedPageProps:{pageSize:t,optionPageSizes:n,setPageSize:i}}=(0,r.useContext)(st);return(0,e.jsx)(lt,{css:dt.root,className:o,pageSize:t,onSet:i,defaultPageSize:n[0],optionPageSizes:n})};bt.displayName="PageSizeSelectAuto";const ut=({sortOrder:r,defaultSortOrder:o,iconType:t="number",isDisabled:n=!1,onSet:i,className:a})=>{const{trans:c}=D("sortOrderSelect");return(0,e.jsxs)(ot,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:[(0,e.jsxs)(nt,{value:"ascending",label:c("ascending"),children:[(0,e.jsx)(at,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown19:s.faArrowDownAZ,widthAuto:!0})}),c("ascending")]}),(0,e.jsxs)(nt,{value:"descending",label:c("descending"),children:[(0,e.jsx)(at,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown91:s.faArrowDownZA,widthAuto:!0})}),c("descending")]})]})};ut.displayName="SortOrderSelect";const pt=require("@radix-ui/react-switch");const ft={root:e=>a.css`
|
|
1457
1522
|
&[data-qlib-error="false"] {
|
|
1458
1523
|
--qlib-border-color: ${x("gray",5)};
|
|
1459
1524
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -1520,7 +1585,7 @@
|
|
|
1520
1585
|
border-color: var(--qlib-checked-border-color);
|
|
1521
1586
|
inset-inline-start: calc(var(--qlib-inline-size) - var(--qlib-block-size) + ${q(2)});
|
|
1522
1587
|
}
|
|
1523
|
-
`},
|
|
1588
|
+
`},mt=(0,r.forwardRef)(((o,t)=>{var n,i,{scheme:a="primary",isChecked:l,name:s,isError:c,isRequired:d,isDisabled:b,onSet:u,onChange:p,onBlur:f,className:m}=o,y=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const g=(0,r.useContext)(Ve),h=null!==(n=null!=c?c:null==g?void 0:g.isError)&&void 0!==n&&n,O=null!==(i=null!=b?b:null==g?void 0:g.isDisabled)&&void 0!==i&&i;return(0,e.jsx)(pt.Root,Object.assign({css:ft.root(a),className:m,ref:t,name:s,checked:l,required:d,disabled:O,onCheckedChange:u,"data-qlib-disabled":O,"data-qlib-error":h},y,{children:(0,e.jsx)(pt.Thumb,{css:ft.thumb})}))}));mt.displayName="Checkbox";const yt=e=>a.css`
|
|
1524
1589
|
padding-block: ${$(.5)};
|
|
1525
1590
|
padding-inline: ${$(1)};
|
|
1526
1591
|
font-size: ${$(3)};
|
|
@@ -1531,16 +1596,16 @@
|
|
|
1531
1596
|
white-space: nowrap;
|
|
1532
1597
|
line-height: 1;
|
|
1533
1598
|
display: inline-block;
|
|
1534
|
-
`,
|
|
1599
|
+
`,gt=(a.css`
|
|
1535
1600
|
margin-inline-end: ${$("gap")};
|
|
1536
|
-
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","children","className"]);return(0,e.jsx)("span",Object.assign({css:
|
|
1601
|
+
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","children","className"]);return(0,e.jsx)("span",Object.assign({css:yt(t),className:i,ref:o},a,{children:n}))})));gt.displayName="Tag";const ht={root:a.css`
|
|
1537
1602
|
margin-inline-end: ${$("gap")};
|
|
1538
|
-
`},
|
|
1603
|
+
`},Ot=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:ht.root,className:n,ref:o},i,{children:t}))}));Ot.displayName="TagIconContainer";const vt={root:a.css`
|
|
1539
1604
|
column-gap: ${$(2)};
|
|
1540
1605
|
row-gap: ${$(1)};
|
|
1541
1606
|
display: inline-flex;
|
|
1542
1607
|
flex-wrap: wrap;
|
|
1543
|
-
`},
|
|
1608
|
+
`},xt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:vt.root,className:n,ref:o},i,{children:t}))}));xt.displayName="TagList";const jt={root:a.css`
|
|
1544
1609
|
&[data-qlib-error="false"] {
|
|
1545
1610
|
--qlib-border-color: ${x("gray",3)};
|
|
1546
1611
|
--qlib-focus-border-color: ${x("primary",5)};
|
|
@@ -1598,7 +1663,7 @@
|
|
|
1598
1663
|
&:disabled {
|
|
1599
1664
|
cursor: inherit;
|
|
1600
1665
|
}
|
|
1601
|
-
`},
|
|
1666
|
+
`},wt=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:l,rowCount:s=4,resize:c="vertical",inputMode:d,autoComplete:b="off",autoFocus:u,isWrapped:p=!0,isError:f=!1,isRequired:m,isDisabled:y,onSet:g,onChange:h,onBlur:O,className:v,textareaClassName:x,textareaId:j}=o,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","rowCount","resize","inputMode","autoComplete","autoFocus","isWrapped","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","textareaClassName","textareaId"]);const q=(0,r.useContext)(Ve),k=null!==(n=null!=f?f:null==q?void 0:q.isError)&&void 0!==n&&n,N=null!==(i=null!=y?y:null==q?void 0:q.isDisabled)&&void 0!==i&&i,P=(0,r.useCallback)((e=>{const r=e.target.value;null==g||g(r),null==h||h(e)}),[g,h]);return(0,e.jsx)("label",{className:v,css:jt.root,"data-qlib-size":$,"data-qlib-disabled":N,"data-qlib-error":k,children:(0,e.jsx)("div",{css:jt.inputContainer,children:(0,e.jsx)("textarea",Object.assign({css:jt.input,className:x,id:j,ref:t,value:a,name:l,rows:s,inputMode:d,autoComplete:b,autoFocus:u,required:m,disabled:N,onChange:null!=g||null!=h?P:void 0,onBlur:O,"aria-invalid":k,"data-qlib-wrapped":p,"data-qlib-resize":c},w))})})}));wt.displayName="Textarea";const $t={root:a.css`
|
|
1602
1667
|
width: 1px;
|
|
1603
1668
|
height: 1px;
|
|
1604
1669
|
position: absolute;
|
|
@@ -1607,17 +1672,17 @@
|
|
|
1607
1672
|
opacity: 0;
|
|
1608
1673
|
clip: rect(0px, 0px, 0px, 0px);
|
|
1609
1674
|
clip-path: inset(50%);
|
|
1610
|
-
`},
|
|
1675
|
+
`},qt=(0,r.forwardRef)(((r,o)=>{var{as:t="span",children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","children","className"]);const l=t;return(0,e.jsx)(l,Object.assign({css:$t.root,className:i,ref:o},a,{children:n}))}));qt.displayName="VisuallyHidden";const kt={root:a.css`
|
|
1611
1676
|
block-size: ${$(4.5)};
|
|
1612
1677
|
margin-inline-start: calc(${$(3)} + ${q(1)});
|
|
1613
1678
|
column-gap: ${$(3)};
|
|
1614
1679
|
display: flex;
|
|
1615
1680
|
align-items: center;
|
|
1616
|
-
`},
|
|
1681
|
+
`},Nt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:kt.root,className:n,ref:o},i,{children:t}))}));Nt.displayName="BulkOperationContainer";const Pt={root:a.css`
|
|
1617
1682
|
`,badge:a.css`
|
|
1618
1683
|
margin-block: ${$(-1)};
|
|
1619
1684
|
margin-inline-start: ${$("gap")};
|
|
1620
|
-
`},
|
|
1685
|
+
`},St=(0,r.forwardRef)(((r,o)=>{var{count:t,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["count","children","className"]);const{trans:l,transNumber:s}=D("bulkOperationButton");return(0,e.jsxs)(_e,Object.assign({css:Pt.root,className:i,scheme:"gray",variant:"light",isCompact:!0,ref:o},a,{children:[(0,e.jsx)(We,{children:(0,e.jsx)($r,{name:"bulk"})}),l("text"),(0,e.jsx)("span",{css:Pt.badge,children:(0,e.jsx)(qe,{scheme:"gray",size:"small",children:s(t)})})]}))}));St.displayName="BulkOperationButton";const Ct=(0,r.createContext)({isLabel:!1,setHovered:()=>null,setFocusVisible:()=>null}),zt=Ct.Provider;const It={root:a.css`
|
|
1621
1686
|
min-inline-size: ${$(64)};
|
|
1622
1687
|
min-block-size: ${$(14)};
|
|
1623
1688
|
border-radius: ${$(1)};
|
|
@@ -1640,7 +1705,7 @@
|
|
|
1640
1705
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
1641
1706
|
outline-offset: ${q(1)};
|
|
1642
1707
|
}
|
|
1643
|
-
`},
|
|
1708
|
+
`},Et=(0,r.forwardRef)(((o,t)=>{var{isLabel:n=!1,href:i,onClick:a,className:l,children:s}=o,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isLabel","href","onClick","className","children"]);const[d,b]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1),f=n?"label":"article",m=(0,r.useMemo)((()=>({isLabel:n,href:i,onClick:a,setHovered:b,setFocusVisible:p})),[n,i,a,b,p]);return(0,e.jsx)(f,Object.assign({css:It.root,className:l,ref:t,"data-qlib-hover":d,"data-qlib-focus-visible":u,"data-qlib-label":n,"data-qlib-clickable":null!=i||null!=a},c,{children:(0,e.jsx)(zt,{value:m,children:s})}))}));Et.displayName="Card";const Dt={root:a.css`
|
|
1644
1709
|
inset-block-start: ${$(0)};
|
|
1645
1710
|
inset-inline-start: ${$(0)};
|
|
1646
1711
|
padding-inline: ${$(3)};
|
|
@@ -1654,7 +1719,7 @@
|
|
|
1654
1719
|
justify-content: flex-start;
|
|
1655
1720
|
box-sizing: border-box;
|
|
1656
1721
|
position: absolute;
|
|
1657
|
-
`},
|
|
1722
|
+
`},Rt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Dt.root,className:t,ref:o},i,{children:n}))}));Rt.displayName="CardHeadnote";const Mt={root:a.css`
|
|
1658
1723
|
padding-block: ${$(3)};
|
|
1659
1724
|
padding-inline: ${$(3)};
|
|
1660
1725
|
row-gap: ${$(2.5)};
|
|
@@ -1670,7 +1735,7 @@
|
|
|
1670
1735
|
&[data-qlib-has-headnote="true"] {
|
|
1671
1736
|
padding-block-start: ${$(7.5)};
|
|
1672
1737
|
}
|
|
1673
|
-
`},
|
|
1738
|
+
`},Lt=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{href:l,onClick:s,setHovered:c,setFocusVisible:d}=(0,r.useContext)(Ct),b=(0,r.useMemo)((()=>Se(i).some((e=>e.type===Rt))),[i]),u=(0,r.useCallback)((()=>{c(!0)}),[c]),p=(0,r.useCallback)((()=>{c(!1)}),[c]),f=(0,r.useCallback)((e=>{if(null!=l||null!=s){const r=e.target.matches(":focus-visible");d(r)}}),[l,s,d]),m=(0,r.useCallback)((e=>{d(!1)}),[d]);return null!=l?(0,e.jsx)("a",Object.assign({className:n,css:Mt.root,href:l,ref:t,onMouseEnter:u,onMouseLeave:p,onFocus:f,onBlur:m,onClick:s,"data-qlib-clickable":!0,"data-qlib-has-headnote":b},a,{children:i})):null!=s?(0,e.jsx)("button",Object.assign({className:n,css:Mt.root,ref:t,onMouseEnter:u,onMouseLeave:p,onFocus:f,onBlur:m,onClick:s,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},a,{children:i})):(0,e.jsx)("div",Object.assign({className:n,css:Mt.root,ref:t,onMouseEnter:u,onMouseLeave:p,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},a,{children:i}))}));Lt.displayName="CardBody";const At={root:a.css`
|
|
1674
1739
|
&[data-qlib-variant="primary"] {
|
|
1675
1740
|
--qlib-color: ${x("white")};
|
|
1676
1741
|
--qlib-border-color: ${x("primary",6)};
|
|
@@ -1745,7 +1810,7 @@
|
|
|
1745
1810
|
opacity: 0.5;
|
|
1746
1811
|
cursor: inherit;
|
|
1747
1812
|
}
|
|
1748
|
-
`},
|
|
1813
|
+
`},Ft=(0,r.forwardRef)(((r,o)=>{var{label:t,variant:n="primary",type:i="button",isStretched:a=!0,isDisabled:l=!1,onClick:s,onKeyDown:c,onKeyUp:d,onMouseDown:b,onPointerDown:u,children:p,className:f}=r,m=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["label","variant","type","isStretched","isDisabled","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);return(0,e.jsx)("button",Object.assign({className:f,css:At.root,type:i,disabled:l,onClick:s,onKeyDown:c,onKeyUp:d,onMouseDown:b,onPointerDown:u,ref:o,"aria-label":t,"data-qlib-variant":n,"data-qlib-stretched":a},m,{children:p}))}));Ft.displayName="CardButton";const Bt={root:a.css`
|
|
1749
1814
|
margin-block: ${q(-1)};
|
|
1750
1815
|
margin-inline-end: ${q(-1)};
|
|
1751
1816
|
display: flex;
|
|
@@ -1754,7 +1819,7 @@
|
|
|
1754
1819
|
order: 3;
|
|
1755
1820
|
z-index: 0;
|
|
1756
1821
|
position: relative;
|
|
1757
|
-
`},
|
|
1822
|
+
`},Ht=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({className:t,css:Bt.root,ref:o},i,{children:n}))}));Ht.displayName="CardButtonList";const Tt={root:a.css`
|
|
1758
1823
|
display: flex;
|
|
1759
1824
|
flex-direction: column;
|
|
1760
1825
|
flex-shrink: 0;
|
|
@@ -1766,7 +1831,7 @@
|
|
|
1766
1831
|
--qlib-right-border-width: ${q(0)};
|
|
1767
1832
|
--qlib-right-border-radius: ${$(0)};
|
|
1768
1833
|
}
|
|
1769
|
-
`},
|
|
1834
|
+
`},Vt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({className:t,css:Tt.root,ref:o},i,{children:n}))}));Vt.displayName="CardButtonListColumn";const Yt=e=>{e.stopPropagation()};const Ut={root:a.css`
|
|
1770
1835
|
margin-inline-start: ${$(3)};
|
|
1771
1836
|
display: flex;
|
|
1772
1837
|
align-items: center;
|
|
@@ -1774,7 +1839,7 @@
|
|
|
1774
1839
|
flex-grow: 0;
|
|
1775
1840
|
flex-shrink: 0;
|
|
1776
1841
|
order: 1;
|
|
1777
|
-
`},
|
|
1842
|
+
`},Gt=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{isLabel:l,setHovered:s}=(0,r.useContext)(Ct),c=(0,r.useCallback)((()=>{s(!0)}),[s]),d=(0,r.useCallback)((()=>{s(!1)}),[s]);return(0,e.jsx)("label",Object.assign({className:n,css:Ut.root,onMouseEnter:l?c:void 0,onMouseLeave:l?d:void 0,onClick:Yt,ref:t},a,{children:i}))}));Gt.displayName="CardControlContainer";const _t={root:a.css`
|
|
1778
1843
|
padding-inline-start: ${$(3)};
|
|
1779
1844
|
color: ${x("gray",5)};
|
|
1780
1845
|
display: flex;
|
|
@@ -1784,20 +1849,20 @@
|
|
|
1784
1849
|
flex-grow: 0;
|
|
1785
1850
|
flex-shrink: 0;
|
|
1786
1851
|
order: 0;
|
|
1787
|
-
`},
|
|
1852
|
+
`},Kt=(0,r.forwardRef)(((r,o)=>{var{className:t}=r,n=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className"]);return(0,e.jsx)("div",Object.assign({className:t,css:_t.root,ref:o},n,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faGripVertical,widthAuto:!0})}))}));Kt.displayName="CardGrip";const Wt={root:a.css`
|
|
1788
1853
|
font-size: ${$(4)};
|
|
1789
1854
|
font-weight: ${v("bold")};
|
|
1790
|
-
`},
|
|
1855
|
+
`},Qt=(0,r.forwardRef)(((r,o)=>{var{as:t="h3",maxLineCount:n=null,className:i,children:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","maxLineCount","className","children"]);return(0,e.jsx)(ar,Object.assign({className:i,css:Wt.root,as:t,maxLineCount:n,ref:o},l,{children:a}))}));Qt.displayName="CardTitle";const Jt={root:a.css`
|
|
1791
1856
|
row-gap: ${$(3)};
|
|
1792
1857
|
display: flex;
|
|
1793
1858
|
flex-direction: column;
|
|
1794
|
-
`},
|
|
1859
|
+
`},Zt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Jt.root,className:t,ref:o},i,{children:n}))}));Zt.displayName="CardList";const Xt=e=>a.css`
|
|
1795
1860
|
row-gap: ${$(3)};
|
|
1796
1861
|
column-gap: ${$(3)};
|
|
1797
1862
|
display: grid;
|
|
1798
1863
|
grid-template-columns: repeat(${e}, 1fr);
|
|
1799
1864
|
align-items: flex-start;
|
|
1800
|
-
`,
|
|
1865
|
+
`,en=(0,r.forwardRef)(((r,o)=>{var{columnCount:t=1,className:n,children:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["columnCount","className","children"]);const l=Po(t);return(0,e.jsx)("div",Object.assign({css:Xt(l),className:n,ref:o},a,{children:i}))}));en.displayName="CardListBody";const rn={root:a.css`
|
|
1801
1866
|
block-size: ${$(24)};
|
|
1802
1867
|
row-gap: ${$(2)};
|
|
1803
1868
|
padding-inline: ${$(4)};
|
|
@@ -1811,20 +1876,20 @@
|
|
|
1811
1876
|
grid-column: 1 / -1;
|
|
1812
1877
|
`,icon:a.css`
|
|
1813
1878
|
font-size: ${$(8)};
|
|
1814
|
-
`},
|
|
1815
|
-
`},
|
|
1879
|
+
`},on=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);const{trans:a}=D("cardListEmpty");return(0,e.jsxs)("div",Object.assign({css:rn.root,className:t,ref:o},i,{children:[(0,e.jsx)($r,{css:rn.icon,name:"empty"}),(0,e.jsx)(ar,{as:"p",lineHeight:"normal",children:n||a("empty")})]}))}));on.displayName="CardListEmpty";const tn={root:a.css`
|
|
1880
|
+
`},nn=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:tn.root,className:t,ref:o},i,{children:n}))}));nn.displayName="CardListFooter";const an={root:a.css`
|
|
1816
1881
|
display: flex;
|
|
1817
1882
|
align-items: flex-end;
|
|
1818
1883
|
justify-content: space-between;
|
|
1819
|
-
`},
|
|
1884
|
+
`},ln=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:an.root,className:t,ref:o},i,{children:n}))}));ln.displayName="CardListHeader";const sn={root:a.css`
|
|
1820
1885
|
column-gap: ${$(4)};
|
|
1821
1886
|
display: flex;
|
|
1822
1887
|
order: 1;
|
|
1823
|
-
`},
|
|
1888
|
+
`},cn=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:sn.root,className:t,ref:o},i,{children:n}))}));cn.displayName="CardListHeaderLeft";const dn={root:a.css`
|
|
1824
1889
|
column-gap: ${$(3)};
|
|
1825
1890
|
display: flex;
|
|
1826
1891
|
order: 2;
|
|
1827
|
-
`},
|
|
1892
|
+
`},bn=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:dn.root,className:t,ref:o},i,{children:n}))}));bn.displayName="CardListHeaderRight";const un={root:a.css`
|
|
1828
1893
|
block-size: ${$(24)};
|
|
1829
1894
|
row-gap: ${$(2)};
|
|
1830
1895
|
padding-inline: ${$(4)};
|
|
@@ -1838,7 +1903,7 @@
|
|
|
1838
1903
|
grid-column: 1 / -1;
|
|
1839
1904
|
`,icon:a.css`
|
|
1840
1905
|
font-size: ${$(8)};
|
|
1841
|
-
`},
|
|
1906
|
+
`},pn=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);const{trans:a}=D("cardListLoading");return(0,e.jsxs)("div",Object.assign({css:un.root,className:t,ref:o},i,{children:[(0,e.jsx)(l.FontAwesomeIcon,{css:un.icon,icon:s.faCircleNotch,spin:!0}),(0,e.jsx)(ar,{as:"p",lineHeight:"normal",children:n||a("loading")})]}))}));pn.displayName="CardListLoading";const fn=(0,r.forwardRef)(((o,t)=>{var{items:n,pageProps:i,className:a,children:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["items","pageProps","className","children"]);const[c,d]=((e,{page:o,pageCount:t,pageSize:n,optionPageSizes:i,setPage:a,setPageSize:l})=>{const s=(0,r.useMemo)((()=>null!=e?e:[]),[e]),c=null!=n&&null!=o&&null!=t&&null!=l&&null!=a,[d,b]=(0,r.useState)(i[0]),[u,p]=(0,r.useState)(0),f=Math.floor((s.length-1)/d)+1,m=(0,r.useMemo)((()=>s.slice(d*u,d*u+d)),[s,d,u]),y=c?s:m,g=c?n:d,h=c?o:u,O=c?t:f,v=c?l:b,x=c?a:p,j=null==e,w=s.length<=0;return[y,(0,r.useMemo)((()=>({isLoading:j,isEmpty:w,pageSize:g,page:h,pageCount:O,optionPageSizes:i,setPageSize:v,setPage:x})),[j,w,g,h,O,i,x,v])]})(n,i),b=(0,r.useMemo)((()=>({displayedItems:c,resolvedPageProps:d})),[c,d]);return(0,e.jsx)(Zt,Object.assign({className:a,ref:t},s,{children:(0,e.jsx)(ct,{value:b,children:l})}))}));fn.displayName="CardListAuto";const mn=({columnCount:o=1,className:t,children:n})=>{const{displayedItems:i,resolvedPageProps:{isLoading:a,isEmpty:l}}=(0,r.useContext)(st),[s,...c]=Array.isArray(n)?n:[n],d=c.find((e=>e.type===on)),b=c.find((e=>e.type===pn));return(0,e.jsx)(en,{className:t,columnCount:o,children:a?b:l?d:i.map(((e,r)=>s(e,r)))})};mn.displayName="CardListBodyAuto";const yn=(0,r.forwardRef)((({className:o,children:t},n)=>{const{resolvedPageProps:{isLoading:i,isEmpty:a}}=(0,r.useContext)(st);return i||a?null:(0,e.jsx)(nn,{className:o,ref:n,children:t})}));yn.displayName="CardListFooterAuto";const gn={root:a.css`
|
|
1842
1907
|
inline-size: 100%;
|
|
1843
1908
|
padding-block: ${$(8)};
|
|
1844
1909
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
@@ -1849,11 +1914,11 @@
|
|
|
1849
1914
|
position: relative;
|
|
1850
1915
|
flex: 0 0 auto;
|
|
1851
1916
|
z-index: 0;
|
|
1852
|
-
`},
|
|
1917
|
+
`},hn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:gn.root,className:n,ref:o},i,{children:t}))}));hn.displayName="ContentHeader";const On={root:a.css`
|
|
1853
1918
|
font-size: ${$(8)};
|
|
1854
1919
|
font-weight: ${v("bold")};
|
|
1855
1920
|
color: ${x("primary",7)};
|
|
1856
|
-
`},
|
|
1921
|
+
`},vn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(ar,Object.assign({css:On.root,className:n,lineHeight:"normalFixed",ref:o},i,{children:t}))}));vn.displayName="ContentTitle";const xn={root:a.css`
|
|
1857
1922
|
&[data-qlib-digit="3"] {
|
|
1858
1923
|
--qlib-inline-size: ${$(11)};
|
|
1859
1924
|
--qlib-transform-scale: 0.75;
|
|
@@ -1886,7 +1951,7 @@
|
|
|
1886
1951
|
transform: scale(var(--qlib-transform-scale), 1);
|
|
1887
1952
|
transform-origin: right center;
|
|
1888
1953
|
}
|
|
1889
|
-
`},
|
|
1954
|
+
`},jn=(0,r.forwardRef)(((r,o)=>{var{count:t,digitSize:n=3,iconNode:i,className:a,children:l}=r,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["count","digitSize","iconNode","className","children"]);const{transNumber:c}=D("countBadge"),d=Math.pow(10,n);return(0,e.jsxs)("div",Object.assign({css:xn.root,className:a,ref:o,"data-qlib-digit":n},s,{children:[(0,e.jsx)("span",{css:xn.icon,children:i}),(0,e.jsx)("span",{css:xn.count,"data-qlib-max":null!=t&&t>=d,children:null!=t?t<d?c(t):c(d-1)+"+":"?"})]}))}));jn.displayName="CountIndicator";const wn=(0,r.createContext)({scheme:"primary"}),$n=wn.Provider,qn={overlay:a.css`
|
|
1890
1955
|
padding-block: ${$(6)};
|
|
1891
1956
|
padding-inline: ${$(6)};
|
|
1892
1957
|
display: flex;
|
|
@@ -1932,8 +1997,8 @@
|
|
|
1932
1997
|
&.ReactModal__Content--before-close {
|
|
1933
1998
|
transform: translate(${$(0)}, ${$(2)});
|
|
1934
1999
|
}
|
|
1935
|
-
`},
|
|
1936
|
-
`},
|
|
2000
|
+
`},kn=({label:o,scheme:t="primary",size:n="normal",isOpen:i,isForm:a=!0,onClose:l,children:s})=>{const c=a?"form":"div",d=No(),b=(0,r.useMemo)((()=>({scheme:t,onClose:l})),[t,l]),u=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(Gr,{css:d?qn.overlaySmartphone:qn.overlay,isOpen:i,label:o,onClose:l,children:(0,e.jsx)(c,{css:qn.root,onSubmit:a?u:void 0,"data-qlib-size":n,"data-qlib-smartphone":d,children:(0,e.jsx)($n,{value:b,children:s})})})};kn.displayName="Dialog";const Nn={root:a.css`
|
|
2001
|
+
`},Pn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("section",Object.assign({css:Nn.root,className:n,ref:o},i,{children:t}))}));Pn.displayName="DialogBody";const Sn=_e;const Cn={root:a.css`
|
|
1937
2002
|
inset-block-start: ${$(4)};
|
|
1938
2003
|
inset-inline-end: ${$(4)};
|
|
1939
2004
|
block-size: ${$(6)};
|
|
@@ -1953,7 +2018,7 @@
|
|
|
1953
2018
|
&:focus-visible {
|
|
1954
2019
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
1955
2020
|
}
|
|
1956
|
-
`},
|
|
2021
|
+
`},zn=(0,r.forwardRef)(((o,t)=>{var{className:n}=o,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className"]);const{trans:a}=D("dialogCloseButton"),{onClose:c}=(0,r.useContext)(wn);return(0,e.jsx)("button",Object.assign({css:Cn.root,className:n,type:"button",onClick:c,ref:t,"aria-label":a("close")},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes,widthAuto:!0})}))}));zn.displayName="DialogCloseButton";const In={root:a.css`
|
|
1957
2022
|
margin-block-start: ${$(6)};
|
|
1958
2023
|
margin-block-end: ${$(-6)};
|
|
1959
2024
|
margin-inline: calc(-1 * var(--qlib-dialog-padding-inline));
|
|
@@ -1966,18 +2031,18 @@
|
|
|
1966
2031
|
flex-direction: row;
|
|
1967
2032
|
align-items: center;
|
|
1968
2033
|
justify-content: center;
|
|
1969
|
-
`},
|
|
2034
|
+
`},En=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:In.root,className:n,ref:o},i,{children:t}))}));En.displayName="DialogFooter";const Dn={root:a.css`
|
|
1970
2035
|
margin-block-end: ${$(6)};
|
|
1971
2036
|
display: flex;
|
|
1972
2037
|
align-items: center;
|
|
1973
2038
|
justify-content: center;
|
|
1974
|
-
`},
|
|
2039
|
+
`},Rn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Dn.root,className:n,ref:o},i,{children:t}))}));Rn.displayName="DialogHeader";const Mn=e=>a.css`
|
|
1975
2040
|
font-size: ${$(6)};
|
|
1976
2041
|
font-weight: ${v("bold")};
|
|
1977
2042
|
letter-spacing: 0.1em;
|
|
1978
2043
|
text-indent: 0.1em;
|
|
1979
2044
|
color: ${x(e,7)};
|
|
1980
|
-
`,
|
|
2045
|
+
`,Ln=(0,r.forwardRef)(((o,t)=>{var{as:n="h3",children:i,className:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["as","children","className"]);const s=n,{scheme:c}=(0,r.useContext)(wn);return(0,e.jsx)(s,Object.assign({css:Mn(c),className:a,ref:t},l,{children:i}))}));Ln.displayName="DialogTitle";const An=(0,r.createContext)({scheme:"primary"}),Fn=An.Provider,Bn={overlay:a.css`
|
|
1981
2046
|
display: flex;
|
|
1982
2047
|
align-items: center;
|
|
1983
2048
|
justify-content: end;
|
|
@@ -2020,17 +2085,17 @@
|
|
|
2020
2085
|
&.ReactModal__Content--before-close {
|
|
2021
2086
|
transform: translate(0%, 100%);
|
|
2022
2087
|
}
|
|
2023
|
-
`},
|
|
2088
|
+
`},Hn=({label:o,scheme:t="primary",isOpen:n,isForm:i=!0,onClose:a,children:l})=>{const s=i?"form":"div",c=No(),d=(0,r.useMemo)((()=>({scheme:t,onClose:a})),[t,a]),b=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(Gr,{css:Bn.overlay,isOpen:n,label:o,onClose:a,children:(0,e.jsx)(s,{css:[Bn.root,c?Bn.rootSmartphone:Bn.rootDesktop],onSubmit:i?b:void 0,children:(0,e.jsx)(Fn,{value:d,children:l})})})};Hn.displayName="Drawer";const Tn={root:a.css`
|
|
2024
2089
|
padding-inline: var(--qlib-padding-inline);
|
|
2025
2090
|
padding-block: ${$(8)};
|
|
2026
2091
|
flex-grow: 1;
|
|
2027
2092
|
flex-shrink: 1;
|
|
2028
2093
|
overflow-y: auto;
|
|
2029
|
-
`},
|
|
2094
|
+
`},Vn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Tn.root,className:n,ref:o},i,{children:t}))}));Vn.displayName="DrawerBody";const Yn=_e;const Un=e=>a.css`
|
|
2030
2095
|
font-size: ${$(4)};
|
|
2031
2096
|
letter-spacing: 0.05em;
|
|
2032
2097
|
color: ${x(e,7)};
|
|
2033
|
-
`,
|
|
2098
|
+
`,Gn=(0,r.forwardRef)(((o,t)=>{var{children:n,className:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["children","className"]);const l=No(),{scheme:s}=(0,r.useContext)(An);return!l&&(0,e.jsx)("div",Object.assign({css:Un(s),className:i,ref:t},a,{children:n}))}));Gn.displayName="DrawerCaption";const _n={root:a.css`
|
|
2034
2099
|
inset-block-start: ${$(4)};
|
|
2035
2100
|
inset-inline-end: var(--qlib-padding-inline);
|
|
2036
2101
|
block-size: ${$(8)};
|
|
@@ -2050,7 +2115,7 @@
|
|
|
2050
2115
|
&:focus-visible {
|
|
2051
2116
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
2052
2117
|
}
|
|
2053
|
-
`},
|
|
2118
|
+
`},Kn=(0,r.forwardRef)(((o,t)=>{var{className:n}=o,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className"]);const{trans:a}=D("drawerCloseButton"),{onClose:c}=(0,r.useContext)(An);return(0,e.jsx)("button",Object.assign({css:_n.root,className:n,type:"button",onClick:c,ref:t,"aria-label":a("close")},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes,widthAuto:!0})}))}));Kn.displayName="DrawerCloseButton";const Wn={root:a.css`
|
|
2054
2119
|
padding-block: ${$(4)};
|
|
2055
2120
|
padding-inline: var(--qlib-padding-inline);
|
|
2056
2121
|
column-gap: ${$(6)};
|
|
@@ -2062,7 +2127,7 @@
|
|
|
2062
2127
|
justify-content: center;
|
|
2063
2128
|
flex-grow: 0;
|
|
2064
2129
|
flex-shrink: 0;
|
|
2065
|
-
`},
|
|
2130
|
+
`},Qn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Wn.root,className:n,ref:o},i,{children:t}))}));Qn.displayName="DrawerFooter";const Jn={root:a.css`
|
|
2066
2131
|
padding-block: ${$(4)};
|
|
2067
2132
|
padding-inline: var(--qlib-padding-inline);
|
|
2068
2133
|
column-gap: ${$(8)};
|
|
@@ -2072,16 +2137,16 @@
|
|
|
2072
2137
|
align-items: center;
|
|
2073
2138
|
flex-grow: 0;
|
|
2074
2139
|
flex-shrink: 0;
|
|
2075
|
-
`},
|
|
2140
|
+
`},Zn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Jn.root,className:n,ref:o},i,{children:t}))}));Zn.displayName="DrawerHeader";const Xn={root:a.css`
|
|
2076
2141
|
row-gap: ${$(2)};
|
|
2077
2142
|
display: flex;
|
|
2078
2143
|
flex-direction: column;
|
|
2079
2144
|
flex-grow: 1;
|
|
2080
2145
|
flex-shrink: 1;
|
|
2081
|
-
`},
|
|
2146
|
+
`},ei=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Xn.root,className:n,ref:o},i,{children:t}))}));ei.displayName="DrawerHeaderLeft";const ri={root:a.css`
|
|
2082
2147
|
flex-grow: 0;
|
|
2083
2148
|
flex-shrink: 0;
|
|
2084
|
-
`},
|
|
2149
|
+
`},oi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:ri.root,className:n,ref:o},i,{children:t}))}));oi.displayName="DrawerHeaderRight";const ti=e=>a.css`
|
|
2085
2150
|
font-size: ${$(8)};
|
|
2086
2151
|
font-weight: ${v("bold")};
|
|
2087
2152
|
letter-spacing: 0.1em;
|
|
@@ -2089,7 +2154,7 @@
|
|
|
2089
2154
|
&[data-qlib-smartphone="true"] {
|
|
2090
2155
|
font-size: ${$(8)};
|
|
2091
2156
|
}
|
|
2092
|
-
`,
|
|
2157
|
+
`,ni=(0,r.forwardRef)(((o,t)=>{var{as:n="h3",children:i,className:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["as","children","className"]);const s=n,c=No(),{scheme:d}=(0,r.useContext)(An);return(0,e.jsx)(s,Object.assign({css:ti(d),className:a,ref:t,"data-qlib-smartphone":c},l,{children:i}))}));ni.displayName="DrawerTitle";const ii=(0,r.createContext)(void 0),ai=ii.Provider;const li={root:a.css`
|
|
2093
2158
|
&[data-qlib-size="small"] {
|
|
2094
2159
|
--qlib-font-size: ${$(3)};
|
|
2095
2160
|
}
|
|
@@ -2101,12 +2166,12 @@
|
|
|
2101
2166
|
`,icon:a.css`
|
|
2102
2167
|
margin-inline-end: ${$("gap")};
|
|
2103
2168
|
display: inline;
|
|
2104
|
-
`},
|
|
2169
|
+
`},si=(0,r.forwardRef)(((o,t)=>{var n,{size:i="small",className:a,children:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["size","className","children"]);const c=(0,r.useContext)(ii);return(0,e.jsx)(Me,Object.assign({css:li.root,className:a,ref:t,"data-qlib-size":null!==(n=null==c?void 0:c.size)&&void 0!==n?n:i},s,{children:l}))}));si.displayName="Footnote";const ci={root:a.css`
|
|
2105
2170
|
margin-inline-end: ${$("gap")};
|
|
2106
2171
|
display: inline;
|
|
2107
2172
|
flex-grow: 0;
|
|
2108
2173
|
flex-shrink: 0;
|
|
2109
|
-
`},
|
|
2174
|
+
`},di=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:ci.root,className:n,ref:o},i,{children:t}))}));di.displayName="FootnoteIconContainer";const bi={root:a.css`
|
|
2110
2175
|
&[data-qlib-size="small"] {
|
|
2111
2176
|
--qlib-row-gap: ${$(1.5)};
|
|
2112
2177
|
}
|
|
@@ -2116,7 +2181,7 @@
|
|
|
2116
2181
|
row-gap: var(--qlib-row-gap);
|
|
2117
2182
|
display: flex;
|
|
2118
2183
|
flex-direction: column;
|
|
2119
|
-
`},
|
|
2184
|
+
`},ui=(0,r.forwardRef)(((o,t)=>{var{size:n="small",className:i,children:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["size","className","children"]);return(0,e.jsx)("div",Object.assign({css:bi.root,className:i,ref:t,"data-qlib-size":n},l,{children:(0,e.jsx)(ai,{value:(0,r.useMemo)((()=>({size:n})),[n]),children:a})}))}));ui.displayName="FootnoteList";const pi={root:a.css`
|
|
2120
2185
|
&[data-qlib-size="small"] {
|
|
2121
2186
|
--qlib-column-gap: ${$(3)};
|
|
2122
2187
|
}
|
|
@@ -2125,13 +2190,13 @@
|
|
|
2125
2190
|
}
|
|
2126
2191
|
column-gap: var(--qlib-column-gap);
|
|
2127
2192
|
display: flex;
|
|
2128
|
-
`},
|
|
2193
|
+
`},fi=(0,r.forwardRef)(((o,t)=>{var n,{className:i,children:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const s=(0,r.useContext)(ii);return(0,e.jsx)("div",Object.assign({css:pi.root,className:i,ref:t,"data-qlib-size":null!==(n=null==s?void 0:s.size)&&void 0!==n?n:"small"},l,{children:a}))}));fi.displayName="FootnoteListRow";const mi=(0,r.createContext)({orientation:"horizontal"}),yi=mi.Provider;const gi={rootHorizontal:a.css`
|
|
2129
2194
|
display: inline-flex;
|
|
2130
2195
|
align-items: baseline;
|
|
2131
2196
|
`,rootVertical:a.css`
|
|
2132
2197
|
display: inline-flex;
|
|
2133
2198
|
flex-direction: column;
|
|
2134
|
-
`},
|
|
2199
|
+
`},hi=(0,r.forwardRef)(((o,t)=>{var{orientation:n,className:i,children:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["orientation","className","children"]);const s=(0,r.useMemo)((()=>({orientation:n})),[n]);return(0,e.jsx)("span",Object.assign({css:"horizontal"===n?gi.rootHorizontal:gi.rootVertical,className:i,ref:t},l,{children:(0,e.jsx)(yi,{value:s,children:a})}))}));const Oi={rootHorizontal:a.css`
|
|
2135
2200
|
font-size: 80%;
|
|
2136
2201
|
::before {
|
|
2137
2202
|
margin-inline: 0.25em;
|
|
@@ -2141,7 +2206,7 @@
|
|
|
2141
2206
|
padding-inline: 0.2em;
|
|
2142
2207
|
font-size: 80%;
|
|
2143
2208
|
text-align: center;
|
|
2144
|
-
`},
|
|
2209
|
+
`},vi=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{transNumber:l}=D("fractionView"),{orientation:s}=(0,r.useContext)(mi);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?Oi.rootHorizontal:Oi.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));vi.displayName="FractionViewDenominator";const xi={rootHorizontal:a.css`
|
|
2145
2210
|
`,rootVertical:a.css`
|
|
2146
2211
|
padding-inline: 0.2em;
|
|
2147
2212
|
padding-block-end: 0.1em;
|
|
@@ -2149,7 +2214,7 @@
|
|
|
2149
2214
|
box-sizing: border-box;
|
|
2150
2215
|
text-align: center;
|
|
2151
2216
|
border-bottom: solid ${q(1)} currentcolor;
|
|
2152
|
-
`},
|
|
2217
|
+
`},ji=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{transNumber:l}=D("fractionView"),{orientation:s}=(0,r.useContext)(mi);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?xi.rootHorizontal:xi.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));ji.displayName="FractionViewNumerator";const wi={root:a.css`
|
|
2153
2218
|
inline-size: 100%;
|
|
2154
2219
|
block-size: ${$(16)};
|
|
2155
2220
|
padding-inline: ${$(10)};
|
|
@@ -2164,14 +2229,14 @@
|
|
|
2164
2229
|
&[data-smartphone="true"] {
|
|
2165
2230
|
padding-inline: ${$(6)};
|
|
2166
2231
|
}
|
|
2167
|
-
`}
|
|
2232
|
+
`},$i=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);const a=No();return(0,e.jsx)("header",Object.assign({css:wi.root,className:n,ref:o,"data-smartphone":a},i,{children:t}))}));$i.displayName="Sidebar";const qi={root:a.css`
|
|
2168
2233
|
align-self: center;
|
|
2169
2234
|
flex-grow: 0;
|
|
2170
2235
|
flex-shrink: 0;
|
|
2171
|
-
`},
|
|
2236
|
+
`},ki=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("h1",Object.assign({css:qi.root,className:n,ref:o},i,{children:t}))}));ki.displayName="HeaderLeft";const Ni={root:a.css`
|
|
2172
2237
|
column-gap: ${$(4)};
|
|
2173
2238
|
display: flex;
|
|
2174
|
-
`},
|
|
2239
|
+
`},Pi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Ni.root,className:n,ref:o},i,{children:t}))}));Pi.displayName="HeaderMenu";const Si=e=>a.css`
|
|
2175
2240
|
--qlib-highlight-color: transparent;
|
|
2176
2241
|
color: ${x("gray",5)};
|
|
2177
2242
|
cursor: pointer;
|
|
@@ -2196,13 +2261,13 @@
|
|
|
2196
2261
|
position: absolute;
|
|
2197
2262
|
content: "";
|
|
2198
2263
|
}
|
|
2199
|
-
`,
|
|
2264
|
+
`,Ci=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",href:n,isActive:i=!1,children:a,className:l}=r,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","href","isActive","children","className"]);return(0,e.jsx)("a",Object.assign({css:Si(t),href:n,ref:o,"data-active":i},s,{children:a}))}));Ci.displayName="HeaderMenuItem";const zi={root:a.css`
|
|
2200
2265
|
margin-inline-end: ${$("gap")};
|
|
2201
2266
|
color: var(--qlib-icon-color);
|
|
2202
2267
|
display: inline;
|
|
2203
2268
|
flex-grow: 0;
|
|
2204
2269
|
flex-shrink: 0;
|
|
2205
|
-
`}
|
|
2270
|
+
`},Ii=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:zi.root,className:n,ref:o},i,{children:t}))}));Ii.displayName="HeaderMenuItemIconContainer";const Ei=(0,r.createContext)({setOpen:()=>null,listRef:{current:[]},activeIndex:null,getItemProps:()=>({})}),Di=Ei.Provider;var Ri=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o};const Mi=e=>a.css`
|
|
2206
2271
|
--qlib-icon-color: ${x(null!=e?e:"gray",5)};
|
|
2207
2272
|
padding-block: ${$(2)};
|
|
2208
2273
|
padding-inline: ${$(2)};
|
|
@@ -2219,10 +2284,10 @@
|
|
|
2219
2284
|
opacity: 0.5;
|
|
2220
2285
|
cursor: inherit;
|
|
2221
2286
|
}
|
|
2222
|
-
`,
|
|
2287
|
+
`,Li=(a.css`
|
|
2223
2288
|
margin-inline-end: ${$("gap")};
|
|
2224
2289
|
color: var(--qlib-icon-color);
|
|
2225
|
-
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:i=!1,onClick:a,children:l,className:s}=o;const c=
|
|
2290
|
+
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:i=!1,onClick:a,children:l,className:s}=o;const c=Ri(o,["scheme","isDisabled","onClick","children","className"]),{index:d}=c,b=Ri(c,["index"]),{setOpen:u,listRef:p,activeIndex:f,getItemProps:m}=(0,r.useContext)(Ei),y=(0,er.useMergeRefs)([t,e=>p.current[d]=e]),g=(0,r.useCallback)((e=>{u(!1),null==a||a(e)}),[u,a]);return(0,e.jsx)("button",Object.assign({css:Mi(n),className:s,ref:y},m({tabIndex:f===d?0:-1,onClick:g,disabled:i}),b,{children:l}))})));Li.displayName="MenuItem";const Ai={root:a.css`
|
|
2226
2291
|
inline-size: ${$(48)};
|
|
2227
2292
|
max-block-size: ${$(60)};
|
|
2228
2293
|
border-radius: ${$(1)};
|
|
@@ -2241,17 +2306,17 @@
|
|
|
2241
2306
|
`,inner:a.css`
|
|
2242
2307
|
display: flex;
|
|
2243
2308
|
flex-direction: column;
|
|
2244
|
-
`},
|
|
2309
|
+
`},Fi=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,isMounted:n,status:i,context:a,style:l,className:s,children:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isOpen","isMounted","status","context","style","className","children"]);return n&&(0,e.jsx)(er.FloatingPortal,{children:(0,e.jsx)(er.FloatingFocusManager,{context:a,children:(0,e.jsx)("div",Object.assign({css:Ai.root,className:s,style:l,ref:o,"data-qlib-status":i},d,{children:(0,e.jsx)("div",{css:Ai.inner,children:c})}))})})})),Bi=({trigger:o,placement:t="bottom-start",fitWidth:n=!1,className:i,children:a})=>{const[l,s]=(0,r.useState)(!1),c=(0,r.useRef)([]),[d,b]=(0,r.useState)(null),{refs:u,floatingStyles:p,context:f}=(0,er.useFloating)({open:l,onOpenChange:s,placement:t,middleware:[(0,er.offset)(2),...n?[Hi()]:[]]}),{isMounted:m,status:y}=(0,er.useTransitionStatus)(f,{duration:200}),g=(0,er.useClick)(f),h=(0,er.useDismiss)(f),O=(0,er.useListNavigation)(f,{listRef:c,activeIndex:d,onNavigate:b}),v=(0,er.useRole)(f,{role:"menu"}),{getReferenceProps:x,getFloatingProps:j,getItemProps:w}=(0,er.useInteractions)([g,h,O,v]),$=(0,r.useMemo)((()=>({setOpen:s,listRef:c,activeIndex:d,getItemProps:w})),[s,c,d,w]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:u.setReference},x())),(0,e.jsx)(Fi,Object.assign({className:i,isOpen:l,isMounted:m,status:y,context:f,style:p,ref:u.setFloating},j(),{children:(0,e.jsx)(Di,{value:$,children:Ti(a)})}))]})},Hi=()=>(0,er.size)({apply({rects:e,elements:r}){Object.assign(r.floating.style,{width:`${e.reference.width}px`})}}),Ti=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===Li?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};const Vi={root:a.css`
|
|
2245
2310
|
margin-inline-end: ${$("gap")};
|
|
2246
2311
|
color: var(--qlib-icon-color);
|
|
2247
2312
|
display: inline;
|
|
2248
2313
|
flex-grow: 0;
|
|
2249
2314
|
flex-shrink: 0;
|
|
2250
|
-
`},
|
|
2315
|
+
`},Yi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Vi.root,className:n,ref:o},i,{children:t}))}));Yi.displayName="MenuItemIconContainer";const Ui={root:a.css`
|
|
2251
2316
|
inline-size: 100%;
|
|
2252
2317
|
margin-block: ${$(1)};
|
|
2253
2318
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
2254
|
-
`},
|
|
2319
|
+
`},Gi=(0,r.forwardRef)(((r,o)=>{var{scheme:t=null,onClick:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","onClick","className"]);return(0,e.jsx)("div",Object.assign({css:Ui.root,className:i,ref:o,role:"separator"},a))}));Gi.displayName="MenuDivider";const _i={root:a.css`
|
|
2255
2320
|
column-gap: ${$(4)};
|
|
2256
2321
|
display: flex;
|
|
2257
2322
|
align-items: center;
|
|
@@ -2273,7 +2338,7 @@
|
|
|
2273
2338
|
flex-shrink: 1;
|
|
2274
2339
|
`,small:a.css`
|
|
2275
2340
|
font-size: 80%;
|
|
2276
|
-
`},
|
|
2341
|
+
`},Ki=(0,r.forwardRef)(((o,t)=>{var{page:n,pageCount:i,setPage:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["page","pageCount","setPage","className"]);const{trans:c,transNumber:d}=D("pagination"),b=i>=2&&n>0,u=n<i-1,p=(0,r.useCallback)((()=>{null==a||a(0)}),[a]),f=(0,r.useCallback)((()=>{null==a||a(i-1)}),[a,i]),m=(0,r.useCallback)((()=>{null==a||a((e=>Math.max(e-1,0)))}),[a]),y=(0,r.useCallback)((()=>{null==a||a((e=>Math.min(e+1,i-1)))}),[a,i]);return(0,e.jsxs)("nav",Object.assign({css:_i.root,className:l,ref:t,"aria-label":c("label")},s,{children:[(0,e.jsxs)("div",{css:_i.button,children:[(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("first"),isDisabled:!b,onClick:p,children:(0,e.jsx)($r,{name:"first"})}),(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("previous"),isDisabled:!b,onClick:m,children:(0,e.jsx)($r,{name:"previous"})})]}),(0,e.jsx)("div",{css:_i.center,children:(0,e.jsxs)(hi,{orientation:"horizontal",children:[(0,e.jsx)(ji,{children:d(n+1)}),(0,e.jsx)(vi,{children:d(i)})]})}),(0,e.jsxs)("div",{css:_i.button,children:[(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("next"),isDisabled:!u,onClick:y,children:(0,e.jsx)($r,{name:"next"})}),(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("last"),isDisabled:!u,onClick:f,children:(0,e.jsx)($r,{name:"last"})})]})]}))}));Ki.displayName="Pagination";const Wi=(0,r.forwardRef)(((o,t)=>{var{className:n}=o,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className"]);const{resolvedPageProps:{isLoading:a,isEmpty:l,page:s,pageCount:c,setPage:d}}=(0,r.useContext)(st);return a||l?null:(0,e.jsx)(Ki,Object.assign({className:n,page:s,pageCount:c,setPage:d,ref:t},i))}));Wi.displayName="PaginationAuto";const Qi={pane:a.css`
|
|
2277
2342
|
padding: ${$(2)};
|
|
2278
2343
|
border-radius: ${$(1)};
|
|
2279
2344
|
background-color: ${x("white")};
|
|
@@ -2285,7 +2350,7 @@
|
|
|
2285
2350
|
&[data-qlib-status="open"] {
|
|
2286
2351
|
opacity: 1;
|
|
2287
2352
|
}
|
|
2288
|
-
`},
|
|
2353
|
+
`},Ji=({trigger:o,triggerType:t="click",triggerRest:n=null,isInline:i=!1,placement:a="bottom-start",className:l,children:s})=>{const[c,d]=(0,r.useState)(!1),{refs:b,floatingStyles:u,context:p}=(0,er.useFloating)({open:c,onOpenChange:d,placement:a,whileElementsMounted:er.autoUpdate,middleware:[(0,er.offset)(2),(0,er.flip)(),i&&(0,er.inline)()]}),{isMounted:f,status:m}=(0,er.useTransitionStatus)(p,{duration:200}),y=(0,er.useClick)(p,{enabled:"click"===t}),g=(0,er.useFocus)(p,{enabled:"focus"===t}),h=(0,er.useHover)(p,{enabled:"hover"===t,restMs:null!=n?n:0,handleClose:(0,er.safePolygon)()}),O=(0,er.useDismiss)(p),v=(0,er.useRole)(p,{role:"tooltip"}),{getReferenceProps:x,getFloatingProps:j}=(0,er.useInteractions)([y,g,h,O,v]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:b.setReference},x())),f&&(0,e.jsx)(er.FloatingPortal,{children:(0,e.jsx)("div",Object.assign({css:Qi.pane,className:l,style:u,ref:b.setFloating,"data-qlib-status":m},j(),{children:s}))})]})};const Zi={root:a.css`
|
|
2289
2354
|
inline-size: ${1.6}em;
|
|
2290
2355
|
block-size: ${1.6}em;
|
|
2291
2356
|
vertical-align: -0.27em;
|
|
@@ -2342,7 +2407,7 @@
|
|
|
2342
2407
|
stroke: ${x(e,5)};
|
|
2343
2408
|
}
|
|
2344
2409
|
}
|
|
2345
|
-
`},
|
|
2410
|
+
`},Xi=(0,r.forwardRef)(((r,o)=>{var{rank:t,scheme:n="primary",useMedalColors:i=!0,className:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["rank","scheme","useMedalColors","className"]);const{trans:s,transNumber:c}=D("rankView"),d=i?t<=1?"gold":t<=2?"silver":t<=3?"bronze":"normal":"normal";return(0,e.jsx)("span",Object.assign({css:Zi.root,className:a,ref:o},l,{children:(0,e.jsxs)("svg",{css:Zi.icon(n),viewBox:"0 0 576 512","aria-label":s("label",{rank:t}),"data-qlib-type":d,children:[(0,e.jsx)("path",{d:"M309 106c11.4-7 19-19.7 19-34c0-22.1-17.9-40-40-40s-40 17.9-40 40c0 14.4 7.6 27 19 34L209.7 220.6c-9.1 18.2-32.7 23.4-48.6 10.7L72 160c5-6.7 8-15 8-24c0-22.1-17.9-40-40-40S0 113.9 0 136s17.9 40 40 40c.2 0 .5 0 .7 0L86.4 427.4c5.5 30.4 32 52.6 63 52.6H426.6c30.9 0 57.4-22.1 63-52.6L535.3 176c.2 0 .5 0 .7 0c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40c0 9 3 17.3 8 24l-89.1 71.3c-15.9 12.7-39.5 7.5-48.6-10.7L309 106z"}),(0,e.jsx)("text",{x:"50%",y:"62%",fontSize:"320",textAnchor:"middle",dominantBaseline:"central","aria-hidden":!0,children:c(t)}),(0,e.jsx)("text",{x:"50%",y:"62%",fontSize:"320",textAnchor:"middle",dominantBaseline:"central","aria-hidden":!0,children:c(t)})]})}))}));Xi.displayName="RankView";const ea={root:a.css`
|
|
2346
2411
|
min-block-size: initial;
|
|
2347
2412
|
display: grid;
|
|
2348
2413
|
grid-column: 1 / -1;
|
|
@@ -2363,7 +2428,7 @@
|
|
|
2363
2428
|
[data-qlib-hover="true"] +& {
|
|
2364
2429
|
border-block-start: solid ${q(1)} ${x("primary",1)};
|
|
2365
2430
|
}
|
|
2366
|
-
`},
|
|
2431
|
+
`},ra=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(Et,Object.assign({css:ea.root},t,{children:o}))};const oa={root:a.css`
|
|
2367
2432
|
padding-inline: ${$(0)};
|
|
2368
2433
|
display: grid;
|
|
2369
2434
|
grid-template-columns: subgrid;
|
|
@@ -2383,22 +2448,22 @@
|
|
|
2383
2448
|
& >:not(:first-child) {
|
|
2384
2449
|
border-inline-start: solid ${q(1)} ${x("gray",1)};
|
|
2385
2450
|
}
|
|
2386
|
-
`},
|
|
2451
|
+
`},ta=r=>{var{hasButton:o=!1,children:t}=r,n=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["hasButton","children"]);return(0,e.jsx)(Lt,Object.assign({css:oa.root,"data-qlib-has-button":o},n,{children:t}))};const na={root:a.css`
|
|
2387
2452
|
&:last-of-type {
|
|
2388
2453
|
border-start-end-radius: var(--qlib-border-start-end-radius);
|
|
2389
2454
|
border-end-end-radius: var(--qlib-border-end-end-radius);
|
|
2390
2455
|
}
|
|
2391
|
-
`},
|
|
2456
|
+
`},ia=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(Ft,Object.assign({css:na.root},t,{children:o}))};const aa={root:a.css`
|
|
2392
2457
|
display: grid;
|
|
2393
|
-
`},
|
|
2458
|
+
`},la=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(fn,Object.assign({css:aa.root},t,{children:o}))};const sa={root:a.css`
|
|
2394
2459
|
row-gap: ${$(0)};
|
|
2395
2460
|
column-gap: initial;
|
|
2396
2461
|
display: grid;
|
|
2397
2462
|
grid-column: 1 / -1;
|
|
2398
2463
|
grid-template-columns: subgrid;
|
|
2399
|
-
`},
|
|
2464
|
+
`},ca=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(mn,Object.assign({css:sa.root},t,{children:o}))};const da={root:a.css`
|
|
2400
2465
|
grid-column: 1 / -1;
|
|
2401
|
-
`},
|
|
2466
|
+
`},ba=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(yn,Object.assign({css:da.root},t,{children:o}))},ua={root:a.css`
|
|
2402
2467
|
margin-block-end: ${$(-1)};
|
|
2403
2468
|
font-size: ${$(3)};
|
|
2404
2469
|
color: ${x("gray",5)};
|
|
@@ -2409,7 +2474,7 @@
|
|
|
2409
2474
|
& >* {
|
|
2410
2475
|
padding-inline: ${$(3)};
|
|
2411
2476
|
}
|
|
2412
|
-
`},
|
|
2477
|
+
`},pa=({children:r})=>(0,e.jsx)("div",{css:ua.root,children:r}),fa=(0,r.createContext)({activeIndex:-1,count:0}),ma=fa.Provider,ya=(0,r.createContext)({index:0}),ga=ya.Provider;var ha=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o};const Oa={root:e=>a.css`
|
|
2413
2478
|
--qlib-highlight-color: ${x(e,5)};
|
|
2414
2479
|
list-style: none;
|
|
2415
2480
|
flex-grow: 0;
|
|
@@ -2423,19 +2488,19 @@
|
|
|
2423
2488
|
&[data-clickable="true"] {
|
|
2424
2489
|
cursor: pointer;
|
|
2425
2490
|
}
|
|
2426
|
-
`},
|
|
2491
|
+
`},va=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",href:i,onClick:a,children:l,className:s}=o;const c=ha(o,["scheme","href","onClick","children","className"]),{index:d}=c,b=ha(c,["index"]),u=(0,r.useMemo)((()=>({index:d})),[d]);return(0,e.jsx)("li",Object.assign({css:Oa.root(n),className:s,ref:t},b,{children:(0,e.jsx)(ga,{value:u,children:null!=i?(0,e.jsx)("a",{css:Oa.inner,href:i,onClick:a,"data-clickable":!0,children:l}):null!=a?(0,e.jsx)("button",{css:Oa.inner,onClick:a,"data-clickable":!0,children:l}):(0,e.jsx)("div",{css:Oa.inner,children:l})})}))}));va.displayName="StepperItem";const xa={root:a.css`
|
|
2427
2492
|
column-gap: ${$(4)};
|
|
2428
2493
|
row-gap: ${$(4)};
|
|
2429
2494
|
display: flex;
|
|
2430
2495
|
flex-direction: row;
|
|
2431
2496
|
flex-wrap: wrap;
|
|
2432
|
-
`},
|
|
2497
|
+
`},ja=(0,r.forwardRef)(((o,t)=>{var n,{activeIndex:i=-1,children:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["activeIndex","children","className"]);const c=wa(a),d=null!==(n=null==c?void 0:c.length)&&void 0!==n?n:0,b=(0,r.useMemo)((()=>({activeIndex:i,count:d})),[i,d]);return(0,e.jsx)("ol",Object.assign({css:xa.root,className:l,ref:t},s,{children:(0,e.jsx)(ma,{value:b,children:c})}))})),wa=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===va?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};ja.displayName="Stepper";const $a={root:a.css`
|
|
2433
2498
|
margin-block-start: ${$(2)};
|
|
2434
2499
|
display: flex;
|
|
2435
2500
|
flex-direction: column;
|
|
2436
2501
|
flex-grow: 1;
|
|
2437
2502
|
flex-shrink: 1;
|
|
2438
|
-
`},
|
|
2503
|
+
`},qa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:$a.root,className:n,ref:o},i,{children:t}))}));qa.displayName="StepperBody";const ka={root:a.css`
|
|
2439
2504
|
column-gap: ${$(1)};
|
|
2440
2505
|
display: flex;
|
|
2441
2506
|
flex-direction: row;
|
|
@@ -2483,17 +2548,17 @@
|
|
|
2483
2548
|
&[data-highlight="true"] {
|
|
2484
2549
|
background-color: var(--qlib-highlight-color);
|
|
2485
2550
|
}
|
|
2486
|
-
`},
|
|
2551
|
+
`},Na=(0,r.forwardRef)(((o,t)=>{var{children:n,className:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["children","className"]);const{transNumber:c}=Lo("stepper"),{index:d}=(0,r.useContext)(ya),{activeIndex:b,count:u}=(0,r.useContext)(fa),p=d<b?"completed":d===b?"active":"upcoming";return(0,e.jsxs)("div",Object.assign({css:ka.root,className:i,ref:t},a,{children:[(0,e.jsx)("div",{css:ka.number,"data-status":p,children:d<b?(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCheck,widthAuto:!0}):null!=n?n:c(d+1)}),(0,e.jsx)("div",{css:ka.border,"aria-hidden":!0,"data-visible":d<u-1,"data-highlight":d+1<=b})]}))}));Na.displayName="StepperNumber";const Pa={root:a.css`
|
|
2487
2552
|
font-size: ${$(4)};
|
|
2488
2553
|
font-weight: ${v("bold")};
|
|
2489
|
-
`},
|
|
2554
|
+
`},Sa=(0,r.forwardRef)(((r,o)=>{var{as:t,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","children","className"]);return(0,e.jsx)(ar,Object.assign({css:Pa.root,className:i,as:t,lineHeight:"normal",ref:o},a,{children:n}))}));Sa.displayName="StepperTitle";const Ca={root:a.css`
|
|
2490
2555
|
inline-size: 100%;
|
|
2491
2556
|
margin-block-end: ${q(-1)};
|
|
2492
2557
|
column-gap: ${$(6)};
|
|
2493
2558
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
2494
2559
|
display: flex;
|
|
2495
2560
|
align-items: flex-end;
|
|
2496
|
-
`},
|
|
2561
|
+
`},za=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Ca.root,className:n,ref:o},i,{children:t}))}));za.displayName="TabList";const Ia=e=>a.css`
|
|
2497
2562
|
padding-block-end: calc(${$(3)} + ${q(4)});
|
|
2498
2563
|
padding-inline: ${$(0)};
|
|
2499
2564
|
color: ${x("gray",5)};
|
|
@@ -2526,12 +2591,12 @@
|
|
|
2526
2591
|
&[data-qlib-disabled="true"] {
|
|
2527
2592
|
opacity: 0.5;
|
|
2528
2593
|
}
|
|
2529
|
-
`,
|
|
2594
|
+
`,Ea=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",isDisabled:n=!1,isActive:i=!1,href:a,onClick:l,children:s,className:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","isDisabled","isActive","href","onClick","children","className"]);return null!=a?(0,e.jsx)("a",Object.assign({css:Ia(t),className:c,ref:o,href:n?void 0:a,role:n?"link":void 0,onClick:l,"data-qlib-disabled":n,"data-qlib-active":i,"aria-disabled":n},d,{children:s})):(0,e.jsx)("button",Object.assign({css:Ia(t),className:c,ref:o,disabled:n,onClick:l,"data-qlib-disabled":n,"data-qlib-active":i},d,{children:s}))}));Ea.displayName="Tab";const Da={root:a.css`
|
|
2530
2595
|
margin-inline-end: ${$("gap")};
|
|
2531
2596
|
display: inline;
|
|
2532
2597
|
flex-grow: 0;
|
|
2533
2598
|
flex-shrink: 0;
|
|
2534
|
-
`},
|
|
2599
|
+
`},Ra=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Da.root,className:n,ref:o},i,{children:t}))}));Ra.displayName="HeaderMenuItemIconContainer";const Ma=a.keyframes`
|
|
2535
2600
|
from {
|
|
2536
2601
|
opacity: 0;
|
|
2537
2602
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2540,7 +2605,7 @@
|
|
|
2540
2605
|
opacity: 1;
|
|
2541
2606
|
transform: translate(${$(0)}, ${$(0)});
|
|
2542
2607
|
}
|
|
2543
|
-
`,
|
|
2608
|
+
`,La=a.keyframes`
|
|
2544
2609
|
to {
|
|
2545
2610
|
opacity: 0;
|
|
2546
2611
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2549,7 +2614,7 @@
|
|
|
2549
2614
|
opacity: 1;
|
|
2550
2615
|
transform: translate(${$(0)}, ${$(0)});
|
|
2551
2616
|
}
|
|
2552
|
-
`,
|
|
2617
|
+
`,Aa={root:e=>a.css`
|
|
2553
2618
|
inline-size: 100%;
|
|
2554
2619
|
border-radius: ${$(1)};
|
|
2555
2620
|
background-color: ${x("white")};
|
|
@@ -2570,10 +2635,10 @@
|
|
|
2570
2635
|
content: "";
|
|
2571
2636
|
}
|
|
2572
2637
|
&[data-state="open"] {
|
|
2573
|
-
animation: ${
|
|
2638
|
+
animation: ${Ma} 0.2s ease;
|
|
2574
2639
|
}
|
|
2575
2640
|
&[data-state="closed"] {
|
|
2576
|
-
animation: ${
|
|
2641
|
+
animation: ${La} 0.2s ease;
|
|
2577
2642
|
}
|
|
2578
2643
|
`,icon:e=>a.css`
|
|
2579
2644
|
margin-inline-start: ${$(3)};
|
|
@@ -2591,34 +2656,34 @@
|
|
|
2591
2656
|
&:first-of-type {
|
|
2592
2657
|
margin-inline-start: ${$(3)};
|
|
2593
2658
|
}
|
|
2594
|
-
`},
|
|
2659
|
+
`},Fa=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,duration:n=5e3,scheme:i="primary",iconNode:a,onOpenSet:l,children:s,className:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isOpen","duration","scheme","iconNode","onOpenSet","children","className"]);return(0,e.jsxs)(yo.Root,Object.assign({css:Aa.root(i),className:c,duration:null!=n?n:864e5,open:t,onOpenChange:l,ref:o},d,{children:[null!=a&&(0,e.jsx)("div",{css:Aa.icon(i),children:a}),(0,e.jsx)(yo.Description,{css:Aa.container,children:s})]}))}));Fa.displayName="Toast";const Ba={root:a.css`
|
|
2595
2660
|
row-gap: ${$(2)};
|
|
2596
2661
|
display: flex;
|
|
2597
2662
|
flex-direction: column;
|
|
2598
|
-
`},
|
|
2663
|
+
`},Ha=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Ba.root,className:n,ref:o},i,{children:t}))}));Ha.displayName="ToastBody";const Ta={root:a.css`
|
|
2599
2664
|
font-size: ${$(4)};
|
|
2600
|
-
`},
|
|
2665
|
+
`},Va=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(ar,Object.assign({css:Ta.root,className:n,as:"p",lineHeight:"normal",ref:o},i,{children:t}))}));Va.displayName="ToastMessage";const Ya={root:a.css`
|
|
2601
2666
|
font-size: ${$(3)};
|
|
2602
2667
|
color: ${x("gray",5)};
|
|
2603
|
-
`},
|
|
2668
|
+
`},Ua=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(ar,Object.assign({css:Ya.root,className:n,as:"p",lineHeight:"narrow",ref:o},i,{children:t}))}));Ua.displayName="ToastSupplement";const Ga=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,duration:n=5e3,intent:i="success",onOpenSet:a,children:l,className:s}=r,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isOpen","duration","intent","onOpenSet","children","className"]);return(0,e.jsx)(Fa,Object.assign({className:s,isOpen:t,duration:n,scheme:"success"===i?"green":"error"===i?"red":"primary",iconNode:(0,e.jsx)($r,{name:i}),onOpenSet:a,ref:o},c,{children:(0,e.jsx)(Ha,{children:(0,e.jsx)(Va,{children:l})})}))}));function _a(e){return a.css`
|
|
2604
2669
|
display: flex;
|
|
2605
2670
|
flex-direction: column;
|
|
2606
|
-
${(null==e?void 0:e.gap)?a.css`row-gap: ${
|
|
2671
|
+
${(null==e?void 0:e.gap)?a.css`row-gap: ${Ja(e.gap)};`:""}
|
|
2607
2672
|
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2608
2673
|
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2609
|
-
`}function
|
|
2674
|
+
`}function Ka(e){return a.css`
|
|
2610
2675
|
display: flex;
|
|
2611
2676
|
flex-direction: row;
|
|
2612
|
-
${(null==e?void 0:e.gap)?a.css`column-gap: ${
|
|
2677
|
+
${(null==e?void 0:e.gap)?a.css`column-gap: ${Ja(e.gap)};`:""}
|
|
2613
2678
|
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2614
2679
|
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2615
|
-
`}function
|
|
2616
|
-
${(null==e?void 0:e.top)?a.css`margin-block-start: ${
|
|
2617
|
-
${(null==e?void 0:e.bottom)?a.css`margin-block-end: ${
|
|
2618
|
-
${(null==e?void 0:e.left)?a.css`margin-inline-start: ${
|
|
2619
|
-
${(null==e?void 0:e.right)?a.css`margin-inline-end: ${
|
|
2620
|
-
`}function
|
|
2621
|
-
${(null==e?void 0:e.width)?a.css`inline-size: ${
|
|
2622
|
-
${(null==e?void 0:e.height)?a.css`block-size: ${
|
|
2623
|
-
`}function
|
|
2680
|
+
`}function Wa(e){return a.css`
|
|
2681
|
+
${(null==e?void 0:e.top)?a.css`margin-block-start: ${Ja(e.top)};`:""}
|
|
2682
|
+
${(null==e?void 0:e.bottom)?a.css`margin-block-end: ${Ja(e.bottom)};`:""}
|
|
2683
|
+
${(null==e?void 0:e.left)?a.css`margin-inline-start: ${Ja(e.left)};`:""}
|
|
2684
|
+
${(null==e?void 0:e.right)?a.css`margin-inline-end: ${Ja(e.right)};`:""}
|
|
2685
|
+
`}function Qa(e){return a.css`
|
|
2686
|
+
${(null==e?void 0:e.width)?a.css`inline-size: ${Ja(e.width)};`:""}
|
|
2687
|
+
${(null==e?void 0:e.height)?a.css`block-size: ${Ja(e.height)};`:""}
|
|
2688
|
+
`}function Ja(e){return"number"==typeof e?$(e):e}Ga.displayName="SimpleToast";const Za=()=>{const{open:e,close:o,setDialogSpec:t}=(0,r.useContext)(uo);return(0,r.useCallback)((r=>{return n=void 0,i=void 0,l=function*(){const n={element:r(o)};t(n),yield e()},new((a=void 0)||(a=Promise))((function(e,r){function o(e){try{s(l.next(e))}catch(e){r(e)}}function t(e){try{s(l.throw(e))}catch(e){r(e)}}function s(r){var n;r.done?e(r.value):(n=r.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,t)}s((l=l.apply(n,i||[])).next())}));var n,i,a,l}),[e,o,t])},Xa=()=>{const e=(0,r.useContext)(to);if(void 0===e)throw new Error("Not inside `RadioGroup`");const{value:o}=e;return{value:o}},el=()=>{const{setToastSpecs:e}=(0,r.useContext)(Oo);return(0,r.useCallback)((o=>{const t=I()().valueOf().toString(),n={element:(0,r.cloneElement)(o,{key:t,onOpenChange:r=>{r||setTimeout((()=>{e((e=>e.filter((e=>e!==n))))}),200)}})};e((e=>[...e,n]))}),[e])}})();var n=exports;for(var i in t)n[i]=t[i];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
2624
2689
|
//# sourceMappingURL=index.js.map
|