@baton8/general-components 3.1.0-alpha.10 → 3.1.0-alpha.12
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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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:()=>
|
|
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:()=>Ct,BulkOperationContainer:()=>Pt,Button:()=>_e,ButtonIconContainer:()=>We,Card:()=>Dt,CardBody:()=>At,CardButton:()=>Bt,CardButtonList:()=>Tt,CardButtonListColumn:()=>Yt,CardControlContainer:()=>_t,CardGrip:()=>Wt,CardHeadnote:()=>Mt,CardList:()=>Xt,CardListAuto:()=>mn,CardListBody:()=>rn,CardListBodyAuto:()=>yn,CardListEmpty:()=>tn,CardListFooter:()=>an,CardListFooterAuto:()=>gn,CardListHeader:()=>sn,CardListHeaderLeft:()=>dn,CardListHeaderRight:()=>un,CardListLoading:()=>fn,CardTitle:()=>Jt,CheckableContainer:()=>Je,CheckableLabel:()=>Xe,Checkbox:()=>or,ContentHeader:()=>On,ContentTitle:()=>xn,ControlContainer:()=>nr,ControlErrorMessage:()=>sr,ControlGroup:()=>fr,ControlHelper:()=>dr,ControlLabel:()=>ur,CountIndicator:()=>wn,Dialog:()=>Nn,DialogBody:()=>Sn,DialogButton:()=>Cn,DialogCloseButton:()=>In,DialogFooter:()=>Dn,DialogHeader:()=>Mn,DialogTitle:()=>An,Divider:()=>yr,Drawer:()=>Tn,DrawerBody:()=>Yn,DrawerButton:()=>Un,DrawerCaption:()=>_n,DrawerCloseButton:()=>Wn,DrawerFooter:()=>Jn,DrawerHeader:()=>Xn,DrawerHeaderLeft:()=>ri,DrawerHeaderRight:()=>ti,DrawerTitle:()=>ii,FileInput:()=>Or,Footnote:()=>ci,FootnoteIconContainer:()=>bi,FootnoteList:()=>pi,FootnoteListRow:()=>mi,FractionView:()=>Oi,FractionViewDenominator:()=>xi,FractionViewNumerator:()=>wi,GeneralIcon:()=>gr,Header:()=>qi,HeaderLeft:()=>Ni,HeaderMenu:()=>Si,HeaderMenuItem:()=>zi,HeaderMenuItemIconContainer:()=>Ei,Heading:()=>jr,Icon:()=>$r,IconButton:()=>kr,Input:()=>Ir,InputLeftAddon:()=>Pr,InputRightAddon:()=>Cr,LEVELED_COLOR_SCHEMES:()=>p,Link:()=>Lr,LinkIconContainer:()=>Fr,LoadingIcon:()=>Hr,Menu:()=>Hi,MenuDivider:()=>_i,MenuItem:()=>Ai,MenuItemIconContainer:()=>Ui,Modal:()=>Gr,MultiLineText:()=>ar,NumberInput:()=>Qr,NumberInputLeftAddon:()=>Kr,PageSizeSelect:()=>st,PageSizeSelectAuto:()=>ut,Pagination:()=>Wi,PaginationAuto:()=>Qi,PasswordInput:()=>oo,PasswordInputLeftAddon:()=>Zr,PasswordInputRightAddon:()=>eo,Popover:()=>Zi,Radio:()=>ao,RadioGroup:()=>lo,RankView:()=>ea,Root:()=>Uo,SecondaryHeading:()=>_o,Segment:()=>Jo,SegmentGroup:()=>Xo,SegmentIconContainer:()=>rt,Select:()=>tt,SelectOption:()=>it,SelectOptionIconContainer:()=>lt,SimpleCard:()=>oa,SimpleCardBody:()=>na,SimpleCardButton:()=>aa,SimpleCardListAuto:()=>sa,SimpleCardListBodyAuto:()=>da,SimpleCardListFooterAuto:()=>ua,SimpleCardListHeader:()=>fa,SimpleToast:()=>_a,SingleLineText:()=>Me,SortOrderSelect:()=>pt,Stepper:()=>wa,StepperBody:()=>ka,StepperItem:()=>xa,StepperNumber:()=>Pa,StepperTitle:()=>Ca,Switch:()=>yt,Tab:()=>Da,TabIconContainer:()=>Ma,TabList:()=>Ia,Tag:()=>ht,TagIconContainer:()=>vt,TagList:()=>jt,Textarea:()=>$t,Toast:()=>Ba,ToastBody:()=>Ta,ToastMessage:()=>Ya,ToastSupplement:()=>Ga,UNLEVELED_COLOR_SCHEMES:()=>f,VisuallyHidden:()=>kt,alpha:()=>j,borderWidth:()=>q,boxShadow:()=>k,color:()=>x,createColorDefinition:()=>m,createTrans:()=>Bo,dimension:()=>Ja,fixedLineHeight:()=>C,flexHorizontal:()=>Wa,flexVertical:()=>Ka,fontFamily:()=>O,fontWeight:()=>v,intlSubject:()=>Eo,lineHeight:()=>S,localeSubject:()=>Do,margin:()=>Qa,mergeLocalizationMessages:()=>qo,resolveResponsiveValue:()=>No,size:()=>$,toResponsiveValue:()=>ko,useBehaviorSubject:()=>zo,useDialog:()=>Xa,useIntl:()=>Ro,useLocale:()=>Mo,useRadioGroup:()=>el,useResponsiveValue:()=>So,useSetLocale:()=>Lo,useSmartphone:()=>Po,useSubject:()=>Co,useToast:()=>rl,useTrans:()=>Ao,useTranslation:()=>Fo,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
|
}
|
|
@@ -1374,7 +1374,7 @@
|
|
|
1374
1374
|
row-gap: ${$(2)};
|
|
1375
1375
|
display: flex;
|
|
1376
1376
|
flex-direction: var(--qlib-flex-direction);
|
|
1377
|
-
`},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},
|
|
1377
|
+
`},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.createElement)(r.Fragment),po=(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},setRender:()=>{}}),fo=({children:o})=>{const[t,n]=(0,r.useState)(!1),[i,a]=(0,r.useState)(!1),[l,s]=(0,r.useState)((()=>uo)),c=(0,r.useRef)((()=>{})),d=(0,r.useCallback)((()=>(c.current(),new Promise((e=>{c.current=e,n(!0)})))),[]),b=(0,r.useCallback)((()=>{i||(n(!1),c.current())}),[i]),u=(0,r.useMemo)((()=>({open:d,setRender:s})),[d,s]);return(0,e.jsxs)(po.Provider,{value:u,children:[(0,r.cloneElement)(l(b,[i,a]),{isOpen:t,onClose:b}),o]})},mo=(0,r.createContext)({rootFontSize:{desktop:"16px",smartphone:"13px"},smartphoneQuery:"(max-width: 767px)"}),yo=mo.Provider,go=require("@radix-ui/react-toast"),ho={root:a.css`
|
|
1378
1378
|
inline-size: ${$(96)};
|
|
1379
1379
|
max-inline-size: calc(100vw - ${$(6)});
|
|
1380
1380
|
inset-block-start: ${$(6)};
|
|
@@ -1388,7 +1388,7 @@
|
|
|
1388
1388
|
position: fixed;
|
|
1389
1389
|
outline: none;
|
|
1390
1390
|
z-index: 2000;
|
|
1391
|
-
`},
|
|
1391
|
+
`},Oo=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(go.Viewport,{css:ho.root,label:r("viewportLabel")})},vo=(0,r.createContext)({setToastSpecs:()=>null}),xo=vo.Provider,jo=({children:o})=>{const{trans:t}=D("toast"),[n,i]=(0,r.useState)([]),a=(0,r.useMemo)((()=>({setToastSpecs:i})),[i]);return(0,e.jsx)(go.Provider,{label:t("rootLabel"),children:(0,e.jsxs)(xo,{value:a,children:[(0,e.jsx)(Oo,{}),n.map((e=>e.element)),o]})})},wo=e=>Object.fromEntries(Object.entries(e).map((([e,r])=>[`qlib.${e}`,r]))),$o={ja:wo(o(62)),en:wo(o(714))},qo=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,{})}),ko=e=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e:{desktop:e,smartphone:e},No=(e,r)=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e[r]:e,Po=()=>{const{smartphoneQuery:e}=(0,r.useContext)(mo);return(0,bo.useMedia)(e,!1)},So=e=>{const r=Po();return No(e,r?"smartphone":"desktop")},Co=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},zo=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},Io=require("rxjs"),Eo=new Io.BehaviorSubject((0,E.createIntl)({locale:"ja",onError:e=>null})),Do=new Io.BehaviorSubject("ja"),Ro=()=>zo(Eo),Mo=()=>zo(Do),Lo=()=>(0,r.useCallback)((e=>{"undefined"!=typeof localStorage&&localStorage.setItem("qlib-locale",e),Do.next(e)}),[]),Ao=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])},Fo=Ao,Bo=e=>{const r=Eo.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):""}}},Ho={resetAll:!0,font:!0,wrap:!0},To=(e,r)=>a.css`
|
|
1392
1392
|
${r.font?a.css`
|
|
1393
1393
|
@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");
|
|
1394
1394
|
`:""}
|
|
@@ -1437,18 +1437,18 @@
|
|
|
1437
1437
|
user-select: auto !important;
|
|
1438
1438
|
-webkit-user-select : auto !important;
|
|
1439
1439
|
}
|
|
1440
|
-
`,
|
|
1440
|
+
`,Vo={root:a.css`
|
|
1441
1441
|
block-size: ${$(0)};
|
|
1442
1442
|
inline-size: ${$(0)};
|
|
1443
1443
|
opacity: 0;
|
|
1444
1444
|
position: fixed;
|
|
1445
|
-
`},
|
|
1445
|
+
`},Yo=({})=>(0,e.jsxs)("svg",{css:Vo.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)})]})]}),Uo=({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=Mo(),p=Lo(),f=zo(Eo),m=So(t),y=(0,r.useMemo)((()=>({rootFontSize:ko(t),smartphoneQuery:n})),[t,n]);(0,r.useEffect)((()=>{const e=qo([null!=o?o:{},$o]),r=(0,E.createIntlCache)(),t=(0,E.createIntl)({locale:u,messages:e[u],onError:e=>null},r);Eo.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:To(m,Object.assign({},Ho,null!=s?s:{}))}),(0,e.jsx)(a.Global,{styles:h(i)}),(0,e.jsx)(a.Global,{styles:l}),(0,e.jsx)(Yo,{}),(0,e.jsx)(E.RawIntlProvider,{value:f,children:(0,e.jsx)(yo,{value:y,children:(0,e.jsx)(jo,{children:(0,e.jsx)(fo,{children:O&&b})})})})]})};const Go={root:a.css`
|
|
1446
1446
|
font-size: ${$(4.5)};
|
|
1447
1447
|
font-weight: ${v("bold")};
|
|
1448
1448
|
color: ${x("primary",6)};
|
|
1449
1449
|
display: flex;
|
|
1450
1450
|
align-items: center;
|
|
1451
|
-
`},
|
|
1451
|
+
`},_o=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:Go.root,className:t},i,{children:n}))};_o.displayName="SecondaryHeading";const Ko=(0,r.createContext)(void 0),Wo=Ko.Provider;const Qo={root:e=>a.css`
|
|
1452
1452
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
1453
1453
|
cursor: pointer;
|
|
1454
1454
|
flex: 1 1 auto;
|
|
@@ -1482,7 +1482,7 @@
|
|
|
1482
1482
|
outline: solid ${q(2)} var(--qlib-focus-color);
|
|
1483
1483
|
outline-offset: ${q(1)};
|
|
1484
1484
|
}
|
|
1485
|
-
`},
|
|
1485
|
+
`},Jo=(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)(Ko),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:Qo.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:Qo.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:Qo.input,htmlFor:b||f,"aria-hidden":"true",children:s})]}))}));Jo.displayName="Segment";const Zo=e=>a.css`
|
|
1486
1486
|
&:not(:hover) {
|
|
1487
1487
|
--qlib-marker-background-color: ${x(e,5)};
|
|
1488
1488
|
}
|
|
@@ -1508,18 +1508,18 @@
|
|
|
1508
1508
|
content: "";
|
|
1509
1509
|
z-index: 0;
|
|
1510
1510
|
}
|
|
1511
|
-
`,
|
|
1511
|
+
`,Xo=({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)(Wo,{value:s,children:(0,e.jsx)("div",{css:Zo(o),ref:l,children:i})})};Xo.displayName="SegmentGroup";const et={root:a.css`
|
|
1512
1512
|
margin-inline-end: ${$("gap")};
|
|
1513
1513
|
display: inline;
|
|
1514
1514
|
flex-grow: 0;
|
|
1515
1515
|
flex-shrink: 0;
|
|
1516
|
-
`},
|
|
1517
|
-
`},
|
|
1516
|
+
`},rt=(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:et.root,className:n,ref:o},i,{children:t}))}));rt.displayName="SegmentIconContainer";const ot={Control:H,Input:_,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ie,NoOptionsMessage:te,DropdownIndicator:V,ClearIndicator:F,IndicatorsContainer:U,IndicatorSeparator:null},tt=({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:ot,isMulti:!1,unstyled:!0,"aria-invalid":a},w))})};tt.displayName="Select";const nt={root:a.css`
|
|
1517
|
+
`},it=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:nt.root,className:a},l,{children:null!=i?i:t}))};it.displayName="SelectOption";const at={root:a.css`
|
|
1518
1518
|
margin-inline-end: ${$("gap")};
|
|
1519
1519
|
color: ${x("gray",5)};
|
|
1520
|
-
`},
|
|
1520
|
+
`},lt=(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:at.root,className:n,ref:o},i,{children:t}))}));lt.displayName="SelectOptionIconContainer";const st=({pageSize:r,defaultPageSize:o,optionPageSizes:t,isDisabled:n=!1,onSet:i,className:a})=>{const{transNumber:l}=D("pageSizeSelect");return(0,e.jsx)(tt,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:t.map((r=>(0,e.jsx)(it,{value:r,label:l(r)},r)))})};st.displayName="PageSizeSelect";const ct=(0,r.createContext)({displayedItems:[],resolvedPageProps:{isLoading:!1,isEmpty:!1,page:0,pageCount:1,pageSize:0,optionPageSizes:[],setPage:()=>null,setPageSize:()=>null}}),dt=ct.Provider,bt={root:a.css`
|
|
1521
1521
|
inline-size: ${$(16)};
|
|
1522
|
-
`},
|
|
1522
|
+
`},ut=({className:o})=>{const{resolvedPageProps:{pageSize:t,optionPageSizes:n,setPageSize:i}}=(0,r.useContext)(ct);return(0,e.jsx)(st,{css:bt.root,className:o,pageSize:t,onSet:i,defaultPageSize:n[0],optionPageSizes:n})};ut.displayName="PageSizeSelectAuto";const pt=({sortOrder:r,defaultSortOrder:o,iconType:t="number",isDisabled:n=!1,onSet:i,className:a})=>{const{trans:c}=D("sortOrderSelect");return(0,e.jsxs)(tt,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:[(0,e.jsxs)(it,{value:"ascending",label:c("ascending"),children:[(0,e.jsx)(lt,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown19:s.faArrowDownAZ,widthAuto:!0})}),c("ascending")]}),(0,e.jsxs)(it,{value:"descending",label:c("descending"),children:[(0,e.jsx)(lt,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown91:s.faArrowDownZA,widthAuto:!0})}),c("descending")]})]})};pt.displayName="SortOrderSelect";const ft=require("@radix-ui/react-switch");const mt={root:e=>a.css`
|
|
1523
1523
|
&[data-qlib-error="false"] {
|
|
1524
1524
|
--qlib-border-color: ${x("gray",5)};
|
|
1525
1525
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -1586,7 +1586,7 @@
|
|
|
1586
1586
|
border-color: var(--qlib-checked-border-color);
|
|
1587
1587
|
inset-inline-start: calc(var(--qlib-inline-size) - var(--qlib-block-size) + ${q(2)});
|
|
1588
1588
|
}
|
|
1589
|
-
`},
|
|
1589
|
+
`},yt=(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)(ft.Root,Object.assign({css:mt.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)(ft.Thumb,{css:mt.thumb})}))}));yt.displayName="Checkbox";const gt=e=>a.css`
|
|
1590
1590
|
&[data-qlib-size="small"] {
|
|
1591
1591
|
--qlib-font-size: ${$(3)};
|
|
1592
1592
|
--qlib-padding-block: ${$(.5)};
|
|
@@ -1606,16 +1606,16 @@
|
|
|
1606
1606
|
line-height: 1;
|
|
1607
1607
|
white-space: nowrap;
|
|
1608
1608
|
display: inline-block;
|
|
1609
|
-
`,
|
|
1609
|
+
`,ht=(a.css`
|
|
1610
1610
|
margin-inline-end: ${$("gap")};
|
|
1611
|
-
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",size:n="small",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,["scheme","size","children","className"]);return(0,e.jsx)("span",Object.assign({css:
|
|
1611
|
+
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",size:n="small",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,["scheme","size","children","className"]);return(0,e.jsx)("span",Object.assign({css:gt(t),className:a,ref:o,"data-qlib-size":n},l,{children:i}))})));ht.displayName="Tag";const Ot={root:a.css`
|
|
1612
1612
|
margin-inline-end: ${$("gap")};
|
|
1613
|
-
`},
|
|
1613
|
+
`},vt=(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:Ot.root,className:n,ref:o},i,{children:t}))}));vt.displayName="TagIconContainer";const xt={root:a.css`
|
|
1614
1614
|
column-gap: ${$(2)};
|
|
1615
1615
|
row-gap: ${$(1)};
|
|
1616
1616
|
display: inline-flex;
|
|
1617
1617
|
flex-wrap: wrap;
|
|
1618
|
-
`},
|
|
1618
|
+
`},jt=(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:xt.root,className:n,ref:o},i,{children:t}))}));jt.displayName="TagList";const wt={root:a.css`
|
|
1619
1619
|
&[data-qlib-error="false"] {
|
|
1620
1620
|
--qlib-border-color: ${x("gray",3)};
|
|
1621
1621
|
--qlib-focus-border-color: ${x("primary",5)};
|
|
@@ -1673,7 +1673,7 @@
|
|
|
1673
1673
|
&:disabled {
|
|
1674
1674
|
cursor: inherit;
|
|
1675
1675
|
}
|
|
1676
|
-
`}
|
|
1676
|
+
`},$t=(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:wt.root,"data-qlib-size":$,"data-qlib-disabled":N,"data-qlib-error":k,children:(0,e.jsx)("div",{css:wt.inputContainer,children:(0,e.jsx)("textarea",Object.assign({css:wt.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))})})}));$t.displayName="Textarea";const qt={root:a.css`
|
|
1677
1677
|
width: 1px;
|
|
1678
1678
|
height: 1px;
|
|
1679
1679
|
position: absolute;
|
|
@@ -1682,17 +1682,17 @@
|
|
|
1682
1682
|
opacity: 0;
|
|
1683
1683
|
clip: rect(0px, 0px, 0px, 0px);
|
|
1684
1684
|
clip-path: inset(50%);
|
|
1685
|
-
`},
|
|
1685
|
+
`},kt=(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:qt.root,className:i,ref:o},a,{children:n}))}));kt.displayName="VisuallyHidden";const Nt={root:a.css`
|
|
1686
1686
|
block-size: ${$(4.5)};
|
|
1687
1687
|
margin-inline-start: calc(${$(3)} + ${q(1)});
|
|
1688
1688
|
column-gap: ${$(3)};
|
|
1689
1689
|
display: flex;
|
|
1690
1690
|
align-items: center;
|
|
1691
|
-
`},
|
|
1691
|
+
`},Pt=(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:Nt.root,className:n,ref:o},i,{children:t}))}));Pt.displayName="BulkOperationContainer";const St={root:a.css`
|
|
1692
1692
|
`,badge:a.css`
|
|
1693
1693
|
margin-block: ${$(-1)};
|
|
1694
1694
|
margin-inline-start: ${$("gap")};
|
|
1695
|
-
`},
|
|
1695
|
+
`},Ct=(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:St.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:St.badge,children:(0,e.jsx)(qe,{scheme:"gray",size:"small",children:s(t)})})]}))}));Ct.displayName="BulkOperationButton";const zt=(0,r.createContext)({isLabel:!1,setHovered:()=>null,setFocusVisible:()=>null}),It=zt.Provider;const Et={root:a.css`
|
|
1696
1696
|
min-inline-size: ${$(64)};
|
|
1697
1697
|
min-block-size: ${$(14)};
|
|
1698
1698
|
border-radius: ${$(1)};
|
|
@@ -1715,7 +1715,7 @@
|
|
|
1715
1715
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
1716
1716
|
outline-offset: ${q(1)};
|
|
1717
1717
|
}
|
|
1718
|
-
`},
|
|
1718
|
+
`},Dt=(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:Et.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)(It,{value:m,children:s})}))}));Dt.displayName="Card";const Rt={root:a.css`
|
|
1719
1719
|
inset-block-start: ${$(0)};
|
|
1720
1720
|
inset-inline-start: ${$(0)};
|
|
1721
1721
|
padding-inline: ${$(3)};
|
|
@@ -1729,7 +1729,7 @@
|
|
|
1729
1729
|
justify-content: flex-start;
|
|
1730
1730
|
box-sizing: border-box;
|
|
1731
1731
|
position: absolute;
|
|
1732
|
-
`},
|
|
1732
|
+
`},Mt=(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:Rt.root,className:t,ref:o},i,{children:n}))}));Mt.displayName="CardHeadnote";const Lt={root:a.css`
|
|
1733
1733
|
padding-block: ${$(3)};
|
|
1734
1734
|
padding-inline: ${$(3)};
|
|
1735
1735
|
row-gap: ${$(2.5)};
|
|
@@ -1745,7 +1745,7 @@
|
|
|
1745
1745
|
&[data-qlib-has-headnote="true"] {
|
|
1746
1746
|
padding-block-start: ${$(7.5)};
|
|
1747
1747
|
}
|
|
1748
|
-
`},
|
|
1748
|
+
`},At=(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)(zt),b=(0,r.useMemo)((()=>Se(i).some((e=>e.type===Mt))),[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:Lt.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:Lt.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:Lt.root,ref:t,onMouseEnter:u,onMouseLeave:p,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},a,{children:i}))}));At.displayName="CardBody";const Ft={root:a.css`
|
|
1749
1749
|
&[data-qlib-variant="primary"] {
|
|
1750
1750
|
--qlib-color: ${x("white")};
|
|
1751
1751
|
--qlib-border-color: ${x("primary",6)};
|
|
@@ -1820,7 +1820,7 @@
|
|
|
1820
1820
|
opacity: 0.5;
|
|
1821
1821
|
cursor: inherit;
|
|
1822
1822
|
}
|
|
1823
|
-
`},
|
|
1823
|
+
`},Bt=(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:Ft.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}))}));Bt.displayName="CardButton";const Ht={root:a.css`
|
|
1824
1824
|
margin-block: ${q(-1)};
|
|
1825
1825
|
margin-inline-end: ${q(-1)};
|
|
1826
1826
|
display: flex;
|
|
@@ -1829,7 +1829,7 @@
|
|
|
1829
1829
|
order: 3;
|
|
1830
1830
|
z-index: 0;
|
|
1831
1831
|
position: relative;
|
|
1832
|
-
`},
|
|
1832
|
+
`},Tt=(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:Ht.root,ref:o},i,{children:n}))}));Tt.displayName="CardButtonList";const Vt={root:a.css`
|
|
1833
1833
|
display: flex;
|
|
1834
1834
|
flex-direction: column;
|
|
1835
1835
|
flex-shrink: 0;
|
|
@@ -1841,7 +1841,7 @@
|
|
|
1841
1841
|
--qlib-right-border-width: ${q(0)};
|
|
1842
1842
|
--qlib-right-border-radius: ${$(0)};
|
|
1843
1843
|
}
|
|
1844
|
-
`},
|
|
1844
|
+
`},Yt=(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:Vt.root,ref:o},i,{children:n}))}));Yt.displayName="CardButtonListColumn";const Ut=e=>{e.stopPropagation()};const Gt={root:a.css`
|
|
1845
1845
|
margin-inline-start: ${$(3)};
|
|
1846
1846
|
display: flex;
|
|
1847
1847
|
align-items: center;
|
|
@@ -1849,7 +1849,7 @@
|
|
|
1849
1849
|
flex-grow: 0;
|
|
1850
1850
|
flex-shrink: 0;
|
|
1851
1851
|
order: 1;
|
|
1852
|
-
`},
|
|
1852
|
+
`},_t=(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)(zt),c=(0,r.useCallback)((()=>{s(!0)}),[s]),d=(0,r.useCallback)((()=>{s(!1)}),[s]);return(0,e.jsx)("label",Object.assign({className:n,css:Gt.root,onMouseEnter:l?c:void 0,onMouseLeave:l?d:void 0,onClick:Ut,ref:t},a,{children:i}))}));_t.displayName="CardControlContainer";const Kt={root:a.css`
|
|
1853
1853
|
padding-inline-start: ${$(3)};
|
|
1854
1854
|
color: ${x("gray",5)};
|
|
1855
1855
|
display: flex;
|
|
@@ -1859,20 +1859,20 @@
|
|
|
1859
1859
|
flex-grow: 0;
|
|
1860
1860
|
flex-shrink: 0;
|
|
1861
1861
|
order: 0;
|
|
1862
|
-
`},
|
|
1862
|
+
`},Wt=(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:Kt.root,ref:o},n,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faGripVertical,widthAuto:!0})}))}));Wt.displayName="CardGrip";const Qt={root:a.css`
|
|
1863
1863
|
font-size: ${$(4)};
|
|
1864
1864
|
font-weight: ${v("bold")};
|
|
1865
|
-
`},
|
|
1865
|
+
`},Jt=(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:Qt.root,as:t,maxLineCount:n,ref:o},l,{children:a}))}));Jt.displayName="CardTitle";const Zt={root:a.css`
|
|
1866
1866
|
row-gap: ${$(3)};
|
|
1867
1867
|
display: flex;
|
|
1868
1868
|
flex-direction: column;
|
|
1869
|
-
`},
|
|
1869
|
+
`},Xt=(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:Zt.root,className:t,ref:o},i,{children:n}))}));Xt.displayName="CardList";const en=e=>a.css`
|
|
1870
1870
|
row-gap: ${$(3)};
|
|
1871
1871
|
column-gap: ${$(3)};
|
|
1872
1872
|
display: grid;
|
|
1873
1873
|
grid-template-columns: repeat(${e}, 1fr);
|
|
1874
1874
|
align-items: flex-start;
|
|
1875
|
-
`,
|
|
1875
|
+
`,rn=(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=So(t);return(0,e.jsx)("div",Object.assign({css:en(l),className:n,ref:o},a,{children:i}))}));rn.displayName="CardListBody";const on={root:a.css`
|
|
1876
1876
|
block-size: ${$(20)};
|
|
1877
1877
|
row-gap: ${$(2)};
|
|
1878
1878
|
padding-inline: ${$(4)};
|
|
@@ -1884,23 +1884,21 @@
|
|
|
1884
1884
|
align-items: center;
|
|
1885
1885
|
justify-content: center;
|
|
1886
1886
|
grid-column: 1 / -1;
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
`},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`
|
|
1890
|
-
`},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`
|
|
1887
|
+
`},tn=(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.jsx)("div",Object.assign({css:on.root,className:t,ref:o},i,{children:(0,e.jsx)(ar,{as:"p",lineHeight:"normal",children:n||a("empty")})}))}));tn.displayName="CardListEmpty";const nn={root:a.css`
|
|
1888
|
+
`},an=(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:nn.root,className:t,ref:o},i,{children:n}))}));an.displayName="CardListFooter";const ln={root:a.css`
|
|
1891
1889
|
display: flex;
|
|
1892
1890
|
align-items: flex-end;
|
|
1893
1891
|
justify-content: space-between;
|
|
1894
|
-
`},
|
|
1892
|
+
`},sn=(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:ln.root,className:t,ref:o},i,{children:n}))}));sn.displayName="CardListHeader";const cn={root:a.css`
|
|
1895
1893
|
column-gap: ${$(4)};
|
|
1896
1894
|
display: flex;
|
|
1897
1895
|
order: 1;
|
|
1898
|
-
`},
|
|
1896
|
+
`},dn=(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:cn.root,className:t,ref:o},i,{children:n}))}));dn.displayName="CardListHeaderLeft";const bn={root:a.css`
|
|
1899
1897
|
column-gap: ${$(3)};
|
|
1900
1898
|
display: flex;
|
|
1901
1899
|
order: 2;
|
|
1902
|
-
`},
|
|
1903
|
-
block-size: ${$(
|
|
1900
|
+
`},un=(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:bn.root,className:t,ref:o},i,{children:n}))}));un.displayName="CardListHeaderRight";const pn={root:a.css`
|
|
1901
|
+
block-size: ${$(20)};
|
|
1904
1902
|
row-gap: ${$(2)};
|
|
1905
1903
|
padding-inline: ${$(4)};
|
|
1906
1904
|
color: ${x("gray",5)};
|
|
@@ -1913,7 +1911,7 @@
|
|
|
1913
1911
|
grid-column: 1 / -1;
|
|
1914
1912
|
`,icon:a.css`
|
|
1915
1913
|
font-size: ${$(8)};
|
|
1916
|
-
`},
|
|
1914
|
+
`},fn=(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:pn.root,className:t,ref:o},i,{children:[(0,e.jsx)(l.FontAwesomeIcon,{css:pn.icon,icon:s.faCircleNotch,spin:!0}),(0,e.jsx)(ar,{as:"p",lineHeight:"normal",children:n||a("loading")})]}))}));fn.displayName="CardListLoading";const mn=(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)(Xt,Object.assign({className:a,ref:t},s,{children:(0,e.jsx)(dt,{value:b,children:l})}))}));mn.displayName="CardListAuto";const yn=({columnCount:o=1,className:t,children:n})=>{const{displayedItems:i,resolvedPageProps:{isLoading:a,isEmpty:l}}=(0,r.useContext)(ct),[s,...c]=Array.isArray(n)?n:[n],d=c.find((e=>e.type===tn)),b=c.find((e=>e.type===fn));return(0,e.jsx)(rn,{className:t,columnCount:o,children:a?b:l?d:i.map(((e,r)=>s(e,r)))})};yn.displayName="CardListBodyAuto";const gn=(0,r.forwardRef)((({className:o,children:t},n)=>{const{resolvedPageProps:{isLoading:i,isEmpty:a}}=(0,r.useContext)(ct);return i||a?null:(0,e.jsx)(an,{className:o,ref:n,children:t})}));gn.displayName="CardListFooterAuto";const hn={root:a.css`
|
|
1917
1915
|
inline-size: 100%;
|
|
1918
1916
|
padding-block: ${$(8)};
|
|
1919
1917
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
@@ -1924,11 +1922,11 @@
|
|
|
1924
1922
|
position: relative;
|
|
1925
1923
|
flex: 0 0 auto;
|
|
1926
1924
|
z-index: 0;
|
|
1927
|
-
`},
|
|
1925
|
+
`},On=(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:hn.root,className:n,ref:o},i,{children:t}))}));On.displayName="ContentHeader";const vn={root:a.css`
|
|
1928
1926
|
font-size: ${$(8)};
|
|
1929
1927
|
font-weight: ${v("bold")};
|
|
1930
1928
|
color: ${x("primary",7)};
|
|
1931
|
-
`},
|
|
1929
|
+
`},xn=(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:vn.root,className:n,lineHeight:"normalFixed",ref:o},i,{children:t}))}));xn.displayName="ContentTitle";const jn={root:a.css`
|
|
1932
1930
|
&[data-qlib-digit="3"] {
|
|
1933
1931
|
--qlib-inline-size: ${$(11)};
|
|
1934
1932
|
--qlib-transform-scale: 0.75;
|
|
@@ -1961,7 +1959,7 @@
|
|
|
1961
1959
|
transform: scale(var(--qlib-transform-scale), 1);
|
|
1962
1960
|
transform-origin: right center;
|
|
1963
1961
|
}
|
|
1964
|
-
`},
|
|
1962
|
+
`},wn=(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:jn.root,className:a,ref:o,"data-qlib-digit":n},s,{children:[(0,e.jsx)("span",{css:jn.icon,children:i}),(0,e.jsx)("span",{css:jn.count,"data-qlib-max":null!=t&&t>=d,children:null!=t?t<d?c(t):c(d-1)+"+":"?"})]}))}));wn.displayName="CountIndicator";const $n=(0,r.createContext)({scheme:"primary"}),qn=$n.Provider,kn={overlay:a.css`
|
|
1965
1963
|
padding-block: ${$(6)};
|
|
1966
1964
|
padding-inline: ${$(6)};
|
|
1967
1965
|
display: flex;
|
|
@@ -2007,8 +2005,8 @@
|
|
|
2007
2005
|
&.ReactModal__Content--before-close {
|
|
2008
2006
|
transform: translate(${$(0)}, ${$(2)});
|
|
2009
2007
|
}
|
|
2010
|
-
`},
|
|
2011
|
-
`},
|
|
2008
|
+
`},Nn=({label:o,scheme:t="primary",size:n="normal",isOpen:i,isForm:a=!0,onClose:l,children:s})=>{const c=a?"form":"div",d=Po(),b=(0,r.useMemo)((()=>({scheme:t,onClose:l})),[t,l]),u=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(Gr,{css:d?kn.overlaySmartphone:kn.overlay,isOpen:i,label:o,onClose:l,children:(0,e.jsx)(c,{css:kn.root,onSubmit:a?u:void 0,"data-qlib-size":n,"data-qlib-smartphone":d,children:(0,e.jsx)(qn,{value:b,children:s})})})};Nn.displayName="Dialog";const Pn={root:a.css`
|
|
2009
|
+
`},Sn=(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:Pn.root,className:n,ref:o},i,{children:t}))}));Sn.displayName="DialogBody";const Cn=_e;const zn={root:a.css`
|
|
2012
2010
|
inset-block-start: ${$(4)};
|
|
2013
2011
|
inset-inline-end: ${$(4)};
|
|
2014
2012
|
block-size: ${$(6)};
|
|
@@ -2028,7 +2026,7 @@
|
|
|
2028
2026
|
&:focus-visible {
|
|
2029
2027
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
2030
2028
|
}
|
|
2031
|
-
`},
|
|
2029
|
+
`},In=(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)($n);return(0,e.jsx)("button",Object.assign({css:zn.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})}))}));In.displayName="DialogCloseButton";const En={root:a.css`
|
|
2032
2030
|
margin-block-start: ${$(6)};
|
|
2033
2031
|
margin-block-end: ${$(-6)};
|
|
2034
2032
|
margin-inline: calc(-1 * var(--qlib-dialog-padding-inline));
|
|
@@ -2041,18 +2039,18 @@
|
|
|
2041
2039
|
flex-direction: row;
|
|
2042
2040
|
align-items: center;
|
|
2043
2041
|
justify-content: center;
|
|
2044
|
-
`},
|
|
2042
|
+
`},Dn=(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:En.root,className:n,ref:o},i,{children:t}))}));Dn.displayName="DialogFooter";const Rn={root:a.css`
|
|
2045
2043
|
margin-block-end: ${$(6)};
|
|
2046
2044
|
display: flex;
|
|
2047
2045
|
align-items: center;
|
|
2048
2046
|
justify-content: center;
|
|
2049
|
-
`},
|
|
2047
|
+
`},Mn=(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:Rn.root,className:n,ref:o},i,{children:t}))}));Mn.displayName="DialogHeader";const Ln=e=>a.css`
|
|
2050
2048
|
font-size: ${$(6)};
|
|
2051
2049
|
font-weight: ${v("bold")};
|
|
2052
2050
|
letter-spacing: 0.1em;
|
|
2053
2051
|
text-indent: 0.1em;
|
|
2054
2052
|
color: ${x(e,7)};
|
|
2055
|
-
`,
|
|
2053
|
+
`,An=(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)($n);return(0,e.jsx)(s,Object.assign({css:Ln(c),className:a,ref:t},l,{children:i}))}));An.displayName="DialogTitle";const Fn=(0,r.createContext)({scheme:"primary"}),Bn=Fn.Provider,Hn={overlay:a.css`
|
|
2056
2054
|
display: flex;
|
|
2057
2055
|
align-items: center;
|
|
2058
2056
|
justify-content: end;
|
|
@@ -2095,17 +2093,17 @@
|
|
|
2095
2093
|
&.ReactModal__Content--before-close {
|
|
2096
2094
|
transform: translate(0%, 100%);
|
|
2097
2095
|
}
|
|
2098
|
-
`},
|
|
2096
|
+
`},Tn=({label:o,scheme:t="primary",isOpen:n,isForm:i=!0,onClose:a,children:l})=>{const s=i?"form":"div",c=Po(),d=(0,r.useMemo)((()=>({scheme:t,onClose:a})),[t,a]),b=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(Gr,{css:Hn.overlay,isOpen:n,label:o,onClose:a,children:(0,e.jsx)(s,{css:[Hn.root,c?Hn.rootSmartphone:Hn.rootDesktop],onSubmit:i?b:void 0,children:(0,e.jsx)(Bn,{value:d,children:l})})})};Tn.displayName="Drawer";const Vn={root:a.css`
|
|
2099
2097
|
padding-inline: var(--qlib-padding-inline);
|
|
2100
2098
|
padding-block: ${$(8)};
|
|
2101
2099
|
flex-grow: 1;
|
|
2102
2100
|
flex-shrink: 1;
|
|
2103
2101
|
overflow-y: auto;
|
|
2104
|
-
`},
|
|
2102
|
+
`},Yn=(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:Vn.root,className:n,ref:o},i,{children:t}))}));Yn.displayName="DrawerBody";const Un=_e;const Gn=e=>a.css`
|
|
2105
2103
|
font-size: ${$(4)};
|
|
2106
2104
|
letter-spacing: 0.05em;
|
|
2107
2105
|
color: ${x(e,7)};
|
|
2108
|
-
`,
|
|
2106
|
+
`,_n=(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=Po(),{scheme:s}=(0,r.useContext)(Fn);return!l&&(0,e.jsx)("div",Object.assign({css:Gn(s),className:i,ref:t},a,{children:n}))}));_n.displayName="DrawerCaption";const Kn={root:a.css`
|
|
2109
2107
|
inset-block-start: ${$(4)};
|
|
2110
2108
|
inset-inline-end: var(--qlib-padding-inline);
|
|
2111
2109
|
block-size: ${$(8)};
|
|
@@ -2125,7 +2123,7 @@
|
|
|
2125
2123
|
&:focus-visible {
|
|
2126
2124
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
2127
2125
|
}
|
|
2128
|
-
`},
|
|
2126
|
+
`},Wn=(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)(Fn);return(0,e.jsx)("button",Object.assign({css:Kn.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})}))}));Wn.displayName="DrawerCloseButton";const Qn={root:a.css`
|
|
2129
2127
|
padding-block: ${$(4)};
|
|
2130
2128
|
padding-inline: var(--qlib-padding-inline);
|
|
2131
2129
|
column-gap: ${$(6)};
|
|
@@ -2137,7 +2135,7 @@
|
|
|
2137
2135
|
justify-content: center;
|
|
2138
2136
|
flex-grow: 0;
|
|
2139
2137
|
flex-shrink: 0;
|
|
2140
|
-
`},
|
|
2138
|
+
`},Jn=(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:Qn.root,className:n,ref:o},i,{children:t}))}));Jn.displayName="DrawerFooter";const Zn={root:a.css`
|
|
2141
2139
|
padding-block: ${$(4)};
|
|
2142
2140
|
padding-inline: var(--qlib-padding-inline);
|
|
2143
2141
|
column-gap: ${$(8)};
|
|
@@ -2147,16 +2145,16 @@
|
|
|
2147
2145
|
align-items: center;
|
|
2148
2146
|
flex-grow: 0;
|
|
2149
2147
|
flex-shrink: 0;
|
|
2150
|
-
`},
|
|
2148
|
+
`},Xn=(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:Zn.root,className:n,ref:o},i,{children:t}))}));Xn.displayName="DrawerHeader";const ei={root:a.css`
|
|
2151
2149
|
row-gap: ${$(2)};
|
|
2152
2150
|
display: flex;
|
|
2153
2151
|
flex-direction: column;
|
|
2154
2152
|
flex-grow: 1;
|
|
2155
2153
|
flex-shrink: 1;
|
|
2156
|
-
`},
|
|
2154
|
+
`},ri=(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:ei.root,className:n,ref:o},i,{children:t}))}));ri.displayName="DrawerHeaderLeft";const oi={root:a.css`
|
|
2157
2155
|
flex-grow: 0;
|
|
2158
2156
|
flex-shrink: 0;
|
|
2159
|
-
`},
|
|
2157
|
+
`},ti=(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:oi.root,className:n,ref:o},i,{children:t}))}));ti.displayName="DrawerHeaderRight";const ni=e=>a.css`
|
|
2160
2158
|
font-size: ${$(8)};
|
|
2161
2159
|
font-weight: ${v("bold")};
|
|
2162
2160
|
letter-spacing: 0.1em;
|
|
@@ -2164,7 +2162,7 @@
|
|
|
2164
2162
|
&[data-qlib-smartphone="true"] {
|
|
2165
2163
|
font-size: ${$(8)};
|
|
2166
2164
|
}
|
|
2167
|
-
`,
|
|
2165
|
+
`,ii=(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=Po(),{scheme:d}=(0,r.useContext)(Fn);return(0,e.jsx)(s,Object.assign({css:ni(d),className:a,ref:t,"data-qlib-smartphone":c},l,{children:i}))}));ii.displayName="DrawerTitle";const ai=(0,r.createContext)(void 0),li=ai.Provider;const si={root:a.css`
|
|
2168
2166
|
&[data-qlib-size="small"] {
|
|
2169
2167
|
--qlib-font-size: ${$(3)};
|
|
2170
2168
|
}
|
|
@@ -2176,12 +2174,12 @@
|
|
|
2176
2174
|
`,icon:a.css`
|
|
2177
2175
|
margin-inline-end: ${$("gap")};
|
|
2178
2176
|
display: inline;
|
|
2179
|
-
`},
|
|
2177
|
+
`},ci=(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)(ai);return(0,e.jsx)(Me,Object.assign({css:si.root,className:a,ref:t,"data-qlib-size":null!==(n=null==c?void 0:c.size)&&void 0!==n?n:i},s,{children:l}))}));ci.displayName="Footnote";const di={root:a.css`
|
|
2180
2178
|
margin-inline-end: ${$("gap")};
|
|
2181
2179
|
display: inline;
|
|
2182
2180
|
flex-grow: 0;
|
|
2183
2181
|
flex-shrink: 0;
|
|
2184
|
-
`},
|
|
2182
|
+
`},bi=(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:di.root,className:n,ref:o},i,{children:t}))}));bi.displayName="FootnoteIconContainer";const ui={root:a.css`
|
|
2185
2183
|
&[data-qlib-size="small"] {
|
|
2186
2184
|
--qlib-row-gap: ${$(1.5)};
|
|
2187
2185
|
}
|
|
@@ -2191,7 +2189,7 @@
|
|
|
2191
2189
|
row-gap: var(--qlib-row-gap);
|
|
2192
2190
|
display: flex;
|
|
2193
2191
|
flex-direction: column;
|
|
2194
|
-
`},
|
|
2192
|
+
`},pi=(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:ui.root,className:i,ref:t,"data-qlib-size":n},l,{children:(0,e.jsx)(li,{value:(0,r.useMemo)((()=>({size:n})),[n]),children:a})}))}));pi.displayName="FootnoteList";const fi={root:a.css`
|
|
2195
2193
|
&[data-qlib-size="small"] {
|
|
2196
2194
|
--qlib-column-gap: ${$(3)};
|
|
2197
2195
|
}
|
|
@@ -2200,13 +2198,13 @@
|
|
|
2200
2198
|
}
|
|
2201
2199
|
column-gap: var(--qlib-column-gap);
|
|
2202
2200
|
display: flex;
|
|
2203
|
-
`},
|
|
2201
|
+
`},mi=(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)(ai);return(0,e.jsx)("div",Object.assign({css:fi.root,className:i,ref:t,"data-qlib-size":null!==(n=null==s?void 0:s.size)&&void 0!==n?n:"small"},l,{children:a}))}));mi.displayName="FootnoteListRow";const yi=(0,r.createContext)({orientation:"horizontal"}),gi=yi.Provider;const hi={rootHorizontal:a.css`
|
|
2204
2202
|
display: inline-flex;
|
|
2205
2203
|
align-items: baseline;
|
|
2206
2204
|
`,rootVertical:a.css`
|
|
2207
2205
|
display: inline-flex;
|
|
2208
2206
|
flex-direction: column;
|
|
2209
|
-
`},
|
|
2207
|
+
`},Oi=(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?hi.rootHorizontal:hi.rootVertical,className:i,ref:t},l,{children:(0,e.jsx)(gi,{value:s,children:a})}))}));const vi={rootHorizontal:a.css`
|
|
2210
2208
|
font-size: 80%;
|
|
2211
2209
|
::before {
|
|
2212
2210
|
margin-inline: 0.25em;
|
|
@@ -2216,7 +2214,7 @@
|
|
|
2216
2214
|
padding-inline: 0.2em;
|
|
2217
2215
|
font-size: 80%;
|
|
2218
2216
|
text-align: center;
|
|
2219
|
-
`},
|
|
2217
|
+
`},xi=(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)(yi);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?vi.rootHorizontal:vi.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));xi.displayName="FractionViewDenominator";const ji={rootHorizontal:a.css`
|
|
2220
2218
|
`,rootVertical:a.css`
|
|
2221
2219
|
padding-inline: 0.2em;
|
|
2222
2220
|
padding-block-end: 0.1em;
|
|
@@ -2224,7 +2222,7 @@
|
|
|
2224
2222
|
box-sizing: border-box;
|
|
2225
2223
|
text-align: center;
|
|
2226
2224
|
border-bottom: solid ${q(1)} currentcolor;
|
|
2227
|
-
`},
|
|
2225
|
+
`},wi=(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)(yi);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?ji.rootHorizontal:ji.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));wi.displayName="FractionViewNumerator";const $i={root:a.css`
|
|
2228
2226
|
inline-size: 100%;
|
|
2229
2227
|
block-size: ${$(16)};
|
|
2230
2228
|
padding-inline: ${$(10)};
|
|
@@ -2239,14 +2237,14 @@
|
|
|
2239
2237
|
&[data-smartphone="true"] {
|
|
2240
2238
|
padding-inline: ${$(6)};
|
|
2241
2239
|
}
|
|
2242
|
-
`}
|
|
2240
|
+
`},qi=(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=Po();return(0,e.jsx)("header",Object.assign({css:$i.root,className:n,ref:o,"data-smartphone":a},i,{children:t}))}));qi.displayName="Sidebar";const ki={root:a.css`
|
|
2243
2241
|
align-self: center;
|
|
2244
2242
|
flex-grow: 0;
|
|
2245
2243
|
flex-shrink: 0;
|
|
2246
|
-
`},
|
|
2244
|
+
`},Ni=(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:ki.root,className:n,ref:o},i,{children:t}))}));Ni.displayName="HeaderLeft";const Pi={root:a.css`
|
|
2247
2245
|
column-gap: ${$(4)};
|
|
2248
2246
|
display: flex;
|
|
2249
|
-
`},
|
|
2247
|
+
`},Si=(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:Pi.root,className:n,ref:o},i,{children:t}))}));Si.displayName="HeaderMenu";const Ci=e=>a.css`
|
|
2250
2248
|
--qlib-highlight-color: transparent;
|
|
2251
2249
|
color: ${x("gray",5)};
|
|
2252
2250
|
cursor: pointer;
|
|
@@ -2271,13 +2269,13 @@
|
|
|
2271
2269
|
position: absolute;
|
|
2272
2270
|
content: "";
|
|
2273
2271
|
}
|
|
2274
|
-
`,
|
|
2272
|
+
`,zi=(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:Ci(t),href:n,ref:o,"data-active":i},s,{children:a}))}));zi.displayName="HeaderMenuItem";const Ii={root:a.css`
|
|
2275
2273
|
margin-inline-end: ${$("gap")};
|
|
2276
2274
|
color: var(--qlib-icon-color);
|
|
2277
2275
|
display: inline;
|
|
2278
2276
|
flex-grow: 0;
|
|
2279
2277
|
flex-shrink: 0;
|
|
2280
|
-
`},
|
|
2278
|
+
`},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)("span",Object.assign({css:Ii.root,className:n,ref:o},i,{children:t}))}));Ei.displayName="HeaderMenuItemIconContainer";const Di=(0,r.createContext)({setOpen:()=>null,listRef:{current:[]},activeIndex:null,getItemProps:()=>({})}),Ri=Di.Provider;var Mi=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 Li=e=>a.css`
|
|
2281
2279
|
--qlib-icon-color: ${x(null!=e?e:"gray",5)};
|
|
2282
2280
|
padding-block: ${$(2)};
|
|
2283
2281
|
padding-inline: ${$(2)};
|
|
@@ -2294,10 +2292,10 @@
|
|
|
2294
2292
|
opacity: 0.5;
|
|
2295
2293
|
cursor: inherit;
|
|
2296
2294
|
}
|
|
2297
|
-
`,
|
|
2295
|
+
`,Ai=(a.css`
|
|
2298
2296
|
margin-inline-end: ${$("gap")};
|
|
2299
2297
|
color: var(--qlib-icon-color);
|
|
2300
|
-
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:i=!1,onClick:a,children:l,className:s}=o;const c=
|
|
2298
|
+
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:i=!1,onClick:a,children:l,className:s}=o;const c=Mi(o,["scheme","isDisabled","onClick","children","className"]),{index:d}=c,b=Mi(c,["index"]),{setOpen:u,listRef:p,activeIndex:f,getItemProps:m}=(0,r.useContext)(Di),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:Li(n),className:s,ref:y},m({tabIndex:f===d?0:-1,onClick:g,disabled:i}),b,{children:l}))})));Ai.displayName="MenuItem";const Fi={root:a.css`
|
|
2301
2299
|
inline-size: ${$(48)};
|
|
2302
2300
|
max-block-size: ${$(60)};
|
|
2303
2301
|
border-radius: ${$(1)};
|
|
@@ -2316,17 +2314,17 @@
|
|
|
2316
2314
|
`,inner:a.css`
|
|
2317
2315
|
display: flex;
|
|
2318
2316
|
flex-direction: column;
|
|
2319
|
-
`},
|
|
2317
|
+
`},Bi=(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:Fi.root,className:s,style:l,ref:o,"data-qlib-status":i},d,{children:(0,e.jsx)("div",{css:Fi.inner,children:c})}))})})})),Hi=({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?[Ti()]:[]]}),{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)(Bi,Object.assign({className:i,isOpen:l,isMounted:m,status:y,context:f,style:p,ref:u.setFloating},j(),{children:(0,e.jsx)(Ri,{value:$,children:Vi(a)})}))]})},Ti=()=>(0,er.size)({apply({rects:e,elements:r}){Object.assign(r.floating.style,{width:`${e.reference.width}px`})}}),Vi=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===Ai?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};const Yi={root:a.css`
|
|
2320
2318
|
margin-inline-end: ${$("gap")};
|
|
2321
2319
|
color: var(--qlib-icon-color);
|
|
2322
2320
|
display: inline;
|
|
2323
2321
|
flex-grow: 0;
|
|
2324
2322
|
flex-shrink: 0;
|
|
2325
|
-
`},
|
|
2323
|
+
`},Ui=(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:Yi.root,className:n,ref:o},i,{children:t}))}));Ui.displayName="MenuItemIconContainer";const Gi={root:a.css`
|
|
2326
2324
|
inline-size: 100%;
|
|
2327
2325
|
margin-block: ${$(1)};
|
|
2328
2326
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
2329
|
-
`},
|
|
2327
|
+
`},_i=(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:Gi.root,className:i,ref:o,role:"separator"},a))}));_i.displayName="MenuDivider";const Ki={root:a.css`
|
|
2330
2328
|
column-gap: ${$(4)};
|
|
2331
2329
|
display: flex;
|
|
2332
2330
|
align-items: center;
|
|
@@ -2348,7 +2346,7 @@
|
|
|
2348
2346
|
flex-shrink: 1;
|
|
2349
2347
|
`,small:a.css`
|
|
2350
2348
|
font-size: 80%;
|
|
2351
|
-
`},
|
|
2349
|
+
`},Wi=(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:Ki.root,className:l,ref:t,"aria-label":c("label")},s,{children:[(0,e.jsxs)("div",{css:Ki.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:Ki.center,children:(0,e.jsxs)(Oi,{orientation:"horizontal",children:[(0,e.jsx)(wi,{children:d(n+1)}),(0,e.jsx)(xi,{children:d(i)})]})}),(0,e.jsxs)("div",{css:Ki.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"})})]})]}))}));Wi.displayName="Pagination";const Qi=(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)(ct);return a||l?null:(0,e.jsx)(Wi,Object.assign({className:n,page:s,pageCount:c,setPage:d,ref:t},i))}));Qi.displayName="PaginationAuto";const Ji={pane:a.css`
|
|
2352
2350
|
padding: ${$(2)};
|
|
2353
2351
|
border-radius: ${$(1)};
|
|
2354
2352
|
background-color: ${x("white")};
|
|
@@ -2360,7 +2358,7 @@
|
|
|
2360
2358
|
&[data-qlib-status="open"] {
|
|
2361
2359
|
opacity: 1;
|
|
2362
2360
|
}
|
|
2363
|
-
`},
|
|
2361
|
+
`},Zi=({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:Ji.pane,className:l,style:u,ref:b.setFloating,"data-qlib-status":m},j(),{children:s}))})]})};const Xi={root:a.css`
|
|
2364
2362
|
inline-size: ${1.6}em;
|
|
2365
2363
|
block-size: ${1.6}em;
|
|
2366
2364
|
vertical-align: -0.27em;
|
|
@@ -2417,7 +2415,7 @@
|
|
|
2417
2415
|
stroke: ${x(e,5)};
|
|
2418
2416
|
}
|
|
2419
2417
|
}
|
|
2420
|
-
`},
|
|
2418
|
+
`},ea=(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:Xi.root,className:a,ref:o},l,{children:(0,e.jsxs)("svg",{css:Xi.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)})]})}))}));ea.displayName="RankView";const ra={root:a.css`
|
|
2421
2419
|
min-block-size: initial;
|
|
2422
2420
|
display: grid;
|
|
2423
2421
|
grid-column: 1 / -1;
|
|
@@ -2438,7 +2436,7 @@
|
|
|
2438
2436
|
[data-qlib-hover="true"] +& {
|
|
2439
2437
|
border-block-start: solid ${q(1)} ${x("primary",1)};
|
|
2440
2438
|
}
|
|
2441
|
-
`},
|
|
2439
|
+
`},oa=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)(Dt,Object.assign({css:ra.root},t,{children:o}))};const ta={root:a.css`
|
|
2442
2440
|
padding-inline: ${$(0)};
|
|
2443
2441
|
display: grid;
|
|
2444
2442
|
grid-template-columns: subgrid;
|
|
@@ -2458,22 +2456,22 @@
|
|
|
2458
2456
|
& >:not(:first-child) {
|
|
2459
2457
|
border-inline-start: solid ${q(1)} ${x("gray",1)};
|
|
2460
2458
|
}
|
|
2461
|
-
`},
|
|
2459
|
+
`},na=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)(At,Object.assign({css:ta.root,"data-qlib-has-button":o},n,{children:t}))};const ia={root:a.css`
|
|
2462
2460
|
&:last-of-type {
|
|
2463
2461
|
border-start-end-radius: var(--qlib-border-start-end-radius);
|
|
2464
2462
|
border-end-end-radius: var(--qlib-border-end-end-radius);
|
|
2465
2463
|
}
|
|
2466
|
-
`},
|
|
2464
|
+
`},aa=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)(Bt,Object.assign({css:ia.root},t,{children:o}))};const la={root:a.css`
|
|
2467
2465
|
display: grid;
|
|
2468
|
-
`},
|
|
2466
|
+
`},sa=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:la.root},t,{children:o}))};const ca={root:a.css`
|
|
2469
2467
|
row-gap: ${$(0)};
|
|
2470
2468
|
column-gap: initial;
|
|
2471
2469
|
display: grid;
|
|
2472
2470
|
grid-column: 1 / -1;
|
|
2473
2471
|
grid-template-columns: subgrid;
|
|
2474
|
-
`},
|
|
2472
|
+
`},da=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:ca.root},t,{children:o}))};const ba={root:a.css`
|
|
2475
2473
|
grid-column: 1 / -1;
|
|
2476
|
-
`},
|
|
2474
|
+
`},ua=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)(gn,Object.assign({css:ba.root},t,{children:o}))},pa={root:a.css`
|
|
2477
2475
|
margin-block-end: ${$(-1)};
|
|
2478
2476
|
font-size: ${$(3)};
|
|
2479
2477
|
color: ${x("gray",5)};
|
|
@@ -2484,7 +2482,7 @@
|
|
|
2484
2482
|
& >* {
|
|
2485
2483
|
padding-inline: ${$(3)};
|
|
2486
2484
|
}
|
|
2487
|
-
`},
|
|
2485
|
+
`},fa=({children:r})=>(0,e.jsx)("div",{css:pa.root,children:r}),ma=(0,r.createContext)({activeIndex:-1,count:0}),ya=ma.Provider,ga=(0,r.createContext)({index:0}),ha=ga.Provider;var Oa=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 va={root:e=>a.css`
|
|
2488
2486
|
--qlib-highlight-color: ${x(e,5)};
|
|
2489
2487
|
list-style: none;
|
|
2490
2488
|
flex-grow: 0;
|
|
@@ -2498,19 +2496,19 @@
|
|
|
2498
2496
|
&[data-clickable="true"] {
|
|
2499
2497
|
cursor: pointer;
|
|
2500
2498
|
}
|
|
2501
|
-
`},
|
|
2499
|
+
`},xa=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",href:i,onClick:a,children:l,className:s}=o;const c=Oa(o,["scheme","href","onClick","children","className"]),{index:d}=c,b=Oa(c,["index"]),u=(0,r.useMemo)((()=>({index:d})),[d]);return(0,e.jsx)("li",Object.assign({css:va.root(n),className:s,ref:t},b,{children:(0,e.jsx)(ha,{value:u,children:null!=i?(0,e.jsx)("a",{css:va.inner,href:i,onClick:a,"data-clickable":!0,children:l}):null!=a?(0,e.jsx)("button",{css:va.inner,onClick:a,"data-clickable":!0,children:l}):(0,e.jsx)("div",{css:va.inner,children:l})})}))}));xa.displayName="StepperItem";const ja={root:a.css`
|
|
2502
2500
|
column-gap: ${$(4)};
|
|
2503
2501
|
row-gap: ${$(4)};
|
|
2504
2502
|
display: flex;
|
|
2505
2503
|
flex-direction: row;
|
|
2506
2504
|
flex-wrap: wrap;
|
|
2507
|
-
`},
|
|
2505
|
+
`},wa=(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=$a(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:ja.root,className:l,ref:t},s,{children:(0,e.jsx)(ya,{value:b,children:c})}))})),$a=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===xa?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};wa.displayName="Stepper";const qa={root:a.css`
|
|
2508
2506
|
margin-block-start: ${$(2)};
|
|
2509
2507
|
display: flex;
|
|
2510
2508
|
flex-direction: column;
|
|
2511
2509
|
flex-grow: 1;
|
|
2512
2510
|
flex-shrink: 1;
|
|
2513
|
-
`},
|
|
2511
|
+
`},ka=(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:qa.root,className:n,ref:o},i,{children:t}))}));ka.displayName="StepperBody";const Na={root:a.css`
|
|
2514
2512
|
column-gap: ${$(1)};
|
|
2515
2513
|
display: flex;
|
|
2516
2514
|
flex-direction: row;
|
|
@@ -2558,17 +2556,17 @@
|
|
|
2558
2556
|
&[data-highlight="true"] {
|
|
2559
2557
|
background-color: var(--qlib-highlight-color);
|
|
2560
2558
|
}
|
|
2561
|
-
`},
|
|
2559
|
+
`},Pa=(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}=Ao("stepper"),{index:d}=(0,r.useContext)(ga),{activeIndex:b,count:u}=(0,r.useContext)(ma),p=d<b?"completed":d===b?"active":"upcoming";return(0,e.jsxs)("div",Object.assign({css:Na.root,className:i,ref:t},a,{children:[(0,e.jsx)("div",{css:Na.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:Na.border,"aria-hidden":!0,"data-visible":d<u-1,"data-highlight":d+1<=b})]}))}));Pa.displayName="StepperNumber";const Sa={root:a.css`
|
|
2562
2560
|
font-size: ${$(4)};
|
|
2563
2561
|
font-weight: ${v("bold")};
|
|
2564
|
-
`},
|
|
2562
|
+
`},Ca=(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:Sa.root,className:i,as:t,lineHeight:"normal",ref:o},a,{children:n}))}));Ca.displayName="StepperTitle";const za={root:a.css`
|
|
2565
2563
|
inline-size: 100%;
|
|
2566
2564
|
margin-block-end: ${q(-1)};
|
|
2567
2565
|
column-gap: ${$(6)};
|
|
2568
2566
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
2569
2567
|
display: flex;
|
|
2570
2568
|
align-items: flex-end;
|
|
2571
|
-
`},
|
|
2569
|
+
`},Ia=(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:za.root,className:n,ref:o},i,{children:t}))}));Ia.displayName="TabList";const Ea=e=>a.css`
|
|
2572
2570
|
padding-block-end: calc(${$(3)} + ${q(4)});
|
|
2573
2571
|
padding-inline: ${$(0)};
|
|
2574
2572
|
color: ${x("gray",5)};
|
|
@@ -2601,12 +2599,12 @@
|
|
|
2601
2599
|
&[data-qlib-disabled="true"] {
|
|
2602
2600
|
opacity: 0.5;
|
|
2603
2601
|
}
|
|
2604
|
-
`,
|
|
2602
|
+
`,Da=(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:Ea(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:Ea(t),className:c,ref:o,disabled:n,onClick:l,"data-qlib-disabled":n,"data-qlib-active":i},d,{children:s}))}));Da.displayName="Tab";const Ra={root:a.css`
|
|
2605
2603
|
margin-inline-end: ${$("gap")};
|
|
2606
2604
|
display: inline;
|
|
2607
2605
|
flex-grow: 0;
|
|
2608
2606
|
flex-shrink: 0;
|
|
2609
|
-
`},
|
|
2607
|
+
`},Ma=(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:Ra.root,className:n,ref:o},i,{children:t}))}));Ma.displayName="HeaderMenuItemIconContainer";const La=a.keyframes`
|
|
2610
2608
|
from {
|
|
2611
2609
|
opacity: 0;
|
|
2612
2610
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2615,7 +2613,7 @@
|
|
|
2615
2613
|
opacity: 1;
|
|
2616
2614
|
transform: translate(${$(0)}, ${$(0)});
|
|
2617
2615
|
}
|
|
2618
|
-
`,
|
|
2616
|
+
`,Aa=a.keyframes`
|
|
2619
2617
|
to {
|
|
2620
2618
|
opacity: 0;
|
|
2621
2619
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2624,7 +2622,7 @@
|
|
|
2624
2622
|
opacity: 1;
|
|
2625
2623
|
transform: translate(${$(0)}, ${$(0)});
|
|
2626
2624
|
}
|
|
2627
|
-
`,
|
|
2625
|
+
`,Fa={root:e=>a.css`
|
|
2628
2626
|
inline-size: 100%;
|
|
2629
2627
|
border-radius: ${$(1)};
|
|
2630
2628
|
background-color: ${x("white")};
|
|
@@ -2645,10 +2643,10 @@
|
|
|
2645
2643
|
content: "";
|
|
2646
2644
|
}
|
|
2647
2645
|
&[data-state="open"] {
|
|
2648
|
-
animation: ${
|
|
2646
|
+
animation: ${La} 0.2s ease;
|
|
2649
2647
|
}
|
|
2650
2648
|
&[data-state="closed"] {
|
|
2651
|
-
animation: ${
|
|
2649
|
+
animation: ${Aa} 0.2s ease;
|
|
2652
2650
|
}
|
|
2653
2651
|
`,icon:e=>a.css`
|
|
2654
2652
|
margin-inline-start: ${$(3)};
|
|
@@ -2666,34 +2664,34 @@
|
|
|
2666
2664
|
&:first-of-type {
|
|
2667
2665
|
margin-inline-start: ${$(3)};
|
|
2668
2666
|
}
|
|
2669
|
-
`},
|
|
2667
|
+
`},Ba=(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)(go.Root,Object.assign({css:Fa.root(i),className:c,duration:null!=n?n:864e5,open:t,onOpenChange:l,ref:o},d,{children:[null!=a&&(0,e.jsx)("div",{css:Fa.icon(i),children:a}),(0,e.jsx)(go.Description,{css:Fa.container,children:s})]}))}));Ba.displayName="Toast";const Ha={root:a.css`
|
|
2670
2668
|
row-gap: ${$(2)};
|
|
2671
2669
|
display: flex;
|
|
2672
2670
|
flex-direction: column;
|
|
2673
|
-
`},
|
|
2671
|
+
`},Ta=(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:Ha.root,className:n,ref:o},i,{children:t}))}));Ta.displayName="ToastBody";const Va={root:a.css`
|
|
2674
2672
|
font-size: ${$(4)};
|
|
2675
|
-
`},
|
|
2673
|
+
`},Ya=(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:Va.root,className:n,as:"p",lineHeight:"normal",ref:o},i,{children:t}))}));Ya.displayName="ToastMessage";const Ua={root:a.css`
|
|
2676
2674
|
font-size: ${$(3)};
|
|
2677
2675
|
color: ${x("gray",5)};
|
|
2678
|
-
`},
|
|
2676
|
+
`},Ga=(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:Ua.root,className:n,as:"p",lineHeight:"narrow",ref:o},i,{children:t}))}));Ga.displayName="ToastSupplement";const _a=(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)(Ba,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)(Ta,{children:(0,e.jsx)(Ya,{children:l})})}))}));function Ka(e){return a.css`
|
|
2679
2677
|
display: flex;
|
|
2680
2678
|
flex-direction: column;
|
|
2681
|
-
${(null==e?void 0:e.gap)?a.css`row-gap: ${
|
|
2679
|
+
${(null==e?void 0:e.gap)?a.css`row-gap: ${Za(e.gap)};`:""}
|
|
2682
2680
|
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2683
2681
|
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2684
|
-
`}function
|
|
2682
|
+
`}function Wa(e){return a.css`
|
|
2685
2683
|
display: flex;
|
|
2686
2684
|
flex-direction: row;
|
|
2687
|
-
${(null==e?void 0:e.gap)?a.css`column-gap: ${
|
|
2685
|
+
${(null==e?void 0:e.gap)?a.css`column-gap: ${Za(e.gap)};`:""}
|
|
2688
2686
|
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2689
2687
|
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2690
|
-
`}function Wa(e){return a.css`
|
|
2691
|
-
${(null==e?void 0:e.top)?a.css`margin-block-start: ${Ja(e.top)};`:""}
|
|
2692
|
-
${(null==e?void 0:e.bottom)?a.css`margin-block-end: ${Ja(e.bottom)};`:""}
|
|
2693
|
-
${(null==e?void 0:e.left)?a.css`margin-inline-start: ${Ja(e.left)};`:""}
|
|
2694
|
-
${(null==e?void 0:e.right)?a.css`margin-inline-end: ${Ja(e.right)};`:""}
|
|
2695
2688
|
`}function Qa(e){return a.css`
|
|
2696
|
-
${(null==e?void 0:e.
|
|
2697
|
-
${(null==e?void 0:e.
|
|
2698
|
-
|
|
2689
|
+
${(null==e?void 0:e.top)?a.css`margin-block-start: ${Za(e.top)};`:""}
|
|
2690
|
+
${(null==e?void 0:e.bottom)?a.css`margin-block-end: ${Za(e.bottom)};`:""}
|
|
2691
|
+
${(null==e?void 0:e.left)?a.css`margin-inline-start: ${Za(e.left)};`:""}
|
|
2692
|
+
${(null==e?void 0:e.right)?a.css`margin-inline-end: ${Za(e.right)};`:""}
|
|
2693
|
+
`}function Ja(e){return a.css`
|
|
2694
|
+
${(null==e?void 0:e.width)?a.css`inline-size: ${Za(e.width)};`:""}
|
|
2695
|
+
${(null==e?void 0:e.height)?a.css`block-size: ${Za(e.height)};`:""}
|
|
2696
|
+
`}function Za(e){return"number"==typeof e?$(e):e}_a.displayName="SimpleToast";const Xa=()=>{const{open:e,setRender:o}=(0,r.useContext)(po);return(0,r.useCallback)((r=>{return t=void 0,n=void 0,a=function*(){o((()=>r)),yield e()},new((i=void 0)||(i=Promise))((function(e,r){function o(e){try{s(a.next(e))}catch(e){r(e)}}function l(e){try{s(a.throw(e))}catch(e){r(e)}}function s(r){var t;r.done?e(r.value):(t=r.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,l)}s((a=a.apply(t,n||[])).next())}));var t,n,i,a}),[e,o])},el=()=>{const e=(0,r.useContext)(to);if(void 0===e)throw new Error("Not inside `RadioGroup`");const{value:o}=e;return{value:o}},rl=()=>{const{setToastSpecs:e}=(0,r.useContext)(vo);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})})();
|
|
2699
2697
|
//# sourceMappingURL=index.js.map
|