@stlite/desktop 0.99.1 → 0.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/bin/dump_artifacts.js +37 -37
- package/build/assets/{ArrowVegaLiteChart-B-Kd_jPH-Biiko0Ef.js → ArrowVegaLiteChart-AuhdMhKC-SeC_gJ-J.js} +1 -1
- package/build/assets/{Audio-B5gtg70U-Bh9tGjUY.js → Audio-MPOURgx8-aU_D4eY9.js} +1 -1
- package/build/assets/{AudioInput-CgFzLi-y-C8cmY_cr.js → AudioInput-D-1IugfD-BGplNYfL.js} +1 -1
- package/build/assets/{Balloons-CqQICrNd-BGoQrXhe.js → Balloons-C0le0djA-Rl3P1-Qw.js} +1 -1
- package/build/assets/{BidiComponent-CkI6DfPr-CbrqDKKX.js → BidiComponent-BsO32qTF-CaRsffwV.js} +1 -1
- package/build/assets/{Button-BOmzB5Yb-Bpnf-WZl.js → Button-AgVrhiWW-CQ3htb45.js} +1 -1
- package/build/assets/{ButtonGroup-C5sVTynN-DPa0Tx1x.js → ButtonGroup-DhgjbbBB-UV1LCvdW.js} +1 -1
- package/build/assets/{CameraInput-C1f0GN0n-Bo12mEPo.js → CameraInput-CEJ0-YBv-CmSkei37.js} +1 -1
- package/build/assets/{ChatInput-ClqoaQw2-PqG4grVV.js → ChatInput-C2YGDsKa-C1FEQeOd.js} +1 -1
- package/build/assets/{Checkbox-ClzElazy-D-AYf8eH.js → Checkbox-DpcMXROE-DSO9dPZW.js} +1 -1
- package/build/assets/{ColorPicker-mCkrAGPa-CtUHNwYp.js → ColorPicker-DfcSCXdu-BA37Ck4e.js} +1 -1
- package/build/assets/{ComponentInstance-B_1vn-IY-BM9ElpU6.js → ComponentInstance-CZJj3rmu-NhIcYIOG.js} +1 -1
- package/build/assets/{DataFrame-CXPcdw96-Crfv7wfu.js → DataFrame-BARAH3XB-CnqwPbPm.js} +5 -5
- package/build/assets/{DateInput-DzaFFasw-CiMjvLKg.js → DateInput-dJ0HrH9I-DL8FHvR-.js} +1 -1
- package/build/assets/{DateTimeInput-WmD8vSCU-K1wv6LRy.js → DateTimeInput-Dc_pZKKa-C7OxzebL.js} +1 -1
- package/build/assets/{DeckGlJsonChart-CDmFrnUQ-CKLXTmyf.js → DeckGlJsonChart-dSij3LC8-z_q2cC3l.js} +1 -1
- package/build/assets/{DownloadButton-g54AS0W2-qOKvF9wp.js → DownloadButton-5Bz1-AC5-BKem2rXk.js} +1 -1
- package/build/assets/{ErrorOutline.esm-B1NqpuZN-D4cKYVYX.js → ErrorOutline.esm-BskdUBnE-7qRVaCY5.js} +1 -1
- package/build/assets/{Feedback-DTXGrEzp-Dd_SGEH7.js → Feedback-CQYxHKC--CSr7C1Wx.js} +1 -1
- package/build/assets/{FileDownload.esm-B_usFfyI-DvbGAuNe.js → FileDownload.esm-r6GccJGR-bDEy_L2M.js} +1 -1
- package/build/assets/{FileUploader-CzCdIxed-CWWB6xZB.js → FileUploader-CFj8fg_u-D1JfDby-.js} +1 -1
- package/build/assets/{FormSubmitContent-CstMuKlS-CwJlipqn.js → FormSubmitContent-RGGkQf1N-DmLXheJT.js} +1 -1
- package/build/assets/{GraphVizChart-nJ8rg3sZ-B_FsOCth.js → GraphVizChart-BKutiaGH-CUH7s5dq.js} +1 -1
- package/build/assets/{Html-CkFoh4ns-BXVZGZ2C.js → Html-D45ILBvq-DbWAwYlg.js} +1 -1
- package/build/assets/{IFrame-BklekJPV-_sg-kw0j.js → IFrame-DK-NJrL7-0m_xaaau.js} +1 -1
- package/build/assets/{ImageList-l3ue-eW1-CIwYKSdj.js → ImageList-I3kPNHfL-D4nqsHeP.js} +1 -1
- package/build/assets/{InputInstructions-C3LBp4_M-BIHPK8ho.js → InputInstructions-C-Zf4oQL-DB03cpCg.js} +1 -1
- package/build/assets/{Json-DmaVI2eK-CplwjZhb.js → Json-DSgvYeF6-CGGD4AZF.js} +1 -1
- package/build/assets/{LinkButton-D87rEwzB-C31w_f7c.js → LinkButton-DLHHsxjM-CI62E9Lm.js} +1 -1
- package/build/assets/{MenuButton-DCWYT9Sm-Cjs_mH64.js → MenuButton-Oq8rRct9-ZWaMUcpm.js} +1 -1
- package/build/assets/{Metric-B85kD6qx-D6Bt_A2_.js → Metric-B0YF468a-CFi-iNGW.js} +1 -1
- package/build/assets/{Multiselect-Dj9HMUjc-C1tpZV37.js → Multiselect-CVHVCj3g-BAkweYLb.js} +1 -1
- package/build/assets/{NumberInput-Bz1Z4Olo-HwfUQwvD.js → NumberInput-eLkJ0pTb-Bm92Kd3x.js} +1 -1
- package/build/assets/{PageLink-DxIPOlCu-CAX1QvMp.js → PageLink--V5rxSOF-BYF5Fo3G.js} +1 -1
- package/build/assets/{Particles-CgV8FzZe-CZFoM1Ot.js → Particles-DDLlrLpr-LgL3KDiE.js} +1 -1
- package/build/assets/{PlotlyChart-DApJXgoh-msWOSLU2.js → PlotlyChart-BVhQF5xf-Bvz7Dcax.js} +1 -1
- package/build/assets/{Progress-DXRywIcj-D00Siwwp.js → Progress-BokEk05X-Bv2QkIp3.js} +1 -1
- package/build/assets/{ProgressBar-By08lmvS-BN2oE7g_.js → ProgressBar-Buvlf_pb-DyD7N0tJ.js} +1 -1
- package/build/assets/{Radio-DZEQy4hT-Cx0uGU2K.js → Radio-CUrfrjvU-B2myln1A.js} +1 -1
- package/build/assets/{Selectbox-BywNaXj9-EovVNC_I.js → Selectbox-DwkeQO0S-BhQZidV7.js} +1 -1
- package/build/assets/{Slider-sLEYxDUG-Bby7yVsF.js → Slider--afJTFYr-thOxe-ly.js} +1 -1
- package/build/assets/{Snow-MxXLnUX_-CCUTgEUd.js → Snow-dqZuIKEv-DME-mG7b.js} +1 -1
- package/build/assets/{Spinner-D-YJYPV5-qoM-yuRL.js → Spinner-Bk-w9tKQ-Bwm_Vk6T.js} +1 -1
- package/build/assets/{StreamlitSyntaxHighlighter-y_BJ441X-Do55UoZC.js → StreamlitSyntaxHighlighter-U8o3ATK--CsLsQIfZ.js} +1 -1
- package/build/assets/{Table-ah-SFAz4-BuzfN8wv.js → Table-JcIvdLi_-D87CQj8k.js} +1 -1
- package/build/assets/{TableChart.esm-x67iDGlj-hZSJidLi.js → TableChart.esm-Dpji9oSF-DM4jytuW.js} +1 -1
- package/build/assets/{TextArea-COwbG28l-yfu63ssv.js → TextArea-DnpuYIA5-BF6b1Uz8.js} +1 -1
- package/build/assets/{TextInput-CPqz-18c-DPGxqoCs.js → TextInput-BOxdqnrF-BhQogAHg.js} +1 -1
- package/build/assets/{TimeInput-BQ-fP8Yi-FMCqKedu.js → TimeInput-CjU6O1Hm-BfH2ACHB.js} +1 -1
- package/build/assets/{Toast-CGUHIZQI-39x9j5Rs.js → Toast-Dxo0ZqMx-ZaDpGanl.js} +1 -1
- package/build/assets/{Video-CWomx7KF-nGUBPGaY.js → Video-CYwcC1JG-ulcwxNbn.js} +1 -1
- package/build/assets/{WidgetLabel-DUaobbKW-DD-xWyXR.js → WidgetLabel-DTUHhtk_-EPIQC9md.js} +1 -1
- package/build/assets/{WidgetLabelHelpIcon-Dk_Qm9_8-CtMOr4fX.js → WidgetLabelHelpIcon-CfpOYjLN-CUGwBOM8.js} +1 -1
- package/build/assets/{WidgetLabelHelpIconInline-CkTH9muE-i_BwkvTR.js → WidgetLabelHelpIconInline-D4j09uRD-MZxp3LdE.js} +1 -1
- package/build/assets/{_baseAssignValue-DbpQ8D1L-D2c_-zPN.js → _baseAssignValue-CBJGGLCx-DiCzbxPi.js} +1 -1
- package/build/assets/{base-input-CUlWnT-V-BhBQbzWk.js → base-input-YEUHRI4X-r3jc5z5D.js} +1 -1
- package/build/assets/{checkbox-CEu7IJmq-3LmskyhR.js → checkbox-iHgvbvtl-BQg_ZqeS.js} +1 -1
- package/build/assets/{constants-BFZIinC9-BhIl5GAK.js → constants-PqcOHKIA-Am2_uapM.js} +1 -1
- package/build/assets/{createDownloadLinkElement-CO9Q-pa0-BNUtAwjF.js → createDownloadLinkElement-CwAYcc1e-DbJb0I6l.js} +1 -1
- package/build/assets/{createSuper-CPupKoXU-C5x8b8jJ.js → createSuper-DwpxHxg4-FoILwayq.js} +1 -1
- package/build/assets/{data-grid-overlay-editor-D7_bQukB-DqAp5wnt.js → data-grid-overlay-editor-CLo-w1F9-B0x2Sg0-.js} +1 -1
- package/build/assets/{downloader-CZ7qD7NY-DGAnDDXL.js → downloader-CZ7qD7NY-Df1O1edF.js} +1 -1
- package/build/assets/{embed-Dc8baQ26-DAsqJZrc.js → embed-Dq8jQdGh-CBVvTzpb.js} +1 -1
- package/build/assets/{es6-BxevHr5y-DDD2E1qH.js → es6-BxevHr5y-BuJv1L-s.js} +2 -2
- package/build/assets/{formatNumber-DxMjoq14-D-XVTuz9.js → formatNumber-DefaFHuv-BSZLG6Yx.js} +1 -1
- package/build/assets/{iconPosition-9UgvX_TD-BzkVt95G.js → iconPosition-BPGPKkjQ-DDZxDFyf.js} +1 -1
- package/build/assets/{iframeResizer.contentWindow-CCqu70r3-2dQhJjwY.js → iframeResizer.contentWindow-bVTYWYos-CjhKIaGT.js} +1 -1
- package/build/assets/{index-BV2WTlzI-BDu7x5w-.js → index-BxCkce84-CXTDYP74.js} +1 -1
- package/build/assets/{index-DJf52eor.js → index-CHE20_1-.js} +6 -6
- package/build/assets/{index-CDNzkMOW-Ci5P-rfD.js → index-CeKcUppy-CpcuvBWq.js} +1 -1
- package/build/assets/{index-Co96_X1M-Dl06Rnsd.js → index-D1kjTmWN-D-hzXEqP.js} +1 -1
- package/build/assets/{index-BoaYS_fk-BOYhDwkq.js → index-DJIbJyKa-D4FORpfO.js} +1 -1
- package/build/assets/{index-CJ4tMOMA-DwN410du.js → index-I7jKEriY-B-n9NbT_.js} +1 -1
- package/build/assets/{input-HUYzfsf9-BxmLV7Ek.js → input-YNBnpJ12-038QD4s4.js} +1 -1
- package/build/assets/{memory-C-LDMFc2-DmYLyk9H.js → memory-C-LDMFc2-CpCm65Br.js} +1 -1
- package/build/assets/{number-overlay-editor-BQXyYsVn-Dh7S4LVs.js → number-overlay-editor-Cdnv58wS-HWHegkI_.js} +1 -1
- package/build/assets/{pandasStylerUtils-BVB-ECxE-CDURxvwo.js → pandasStylerUtils-DjDsh9Sw-f2V2gA5b.js} +1 -1
- package/build/assets/{possibleConstructorReturn-YeRoNy63-B2FGD3ja.js → possibleConstructorReturn-p-fKXom_-BPFgGBwd.js} +1 -1
- package/build/assets/{reactJsonViewCompat-CeSrJm8p-le930912.js → reactJsonViewCompat-gGOZBlvq-BHD6wBsT.js} +1 -1
- package/build/assets/{sandbox-DbnteG5V-yqy_7sO8.js → sandbox-DbnteG5V-DKMo4DSb.js} +1 -1
- package/build/assets/{select-haj_e3M_-P2nevO2w.js → select-DbfjugKJ-C8EDw3eO.js} +1 -1
- package/build/assets/{sprintfjs-DwuHM96D-Dbm-A0ro.js → sprintfjs-D5kvUrjM--36qIaY-.js} +1 -1
- package/build/assets/{stateful-menu-DhWFcRsJ-hkmyKt6q.js → stateful-menu-DsDbGVB_-C8xJ2Uve.js} +1 -1
- package/build/assets/{styled-components-BwoIjXty-eQCTyKeV.js → styled-components-BsL0GiBO-C2azWTC8.js} +1 -1
- package/build/assets/{styled-components-CggDa8xh-DRn7YfuV.js → styled-components-CZ4GSHz4-BVEj2YLE.js} +1 -1
- package/build/assets/{styled-components-CRl5ROSi-CaifWlLZ.js → styled-components-aeDchaOw-CDmV3dyQ.js} +1 -1
- package/build/assets/{timepicker-t1TdfIJG-CM4-XB8w.js → timepicker-BIFo5a1u-DTWDwWXK.js} +1 -1
- package/build/assets/{toConsumableArray-DtFGUM3A-BLxO6YGd.js → toConsumableArray-BJ_-nsuo-BPUSYd8M.js} +1 -1
- package/build/assets/{useBasicWidgetState-Bd8NTj87-Cqs9ZQAV.js → useBasicWidgetState-oLSfk0mv-C-D-ncQp.js} +1 -1
- package/build/assets/{useIntlLocale-CXWYgGQX-B2q3sAu2.js → useIntlLocale-BELAEOpY-BzvvmoUT.js} +1 -1
- package/build/assets/{useSelectCommon-O2yZsfjb-6cuQoolB.js → useSelectCommon-_ffsRexw-DbdQDzQX.js} +1 -1
- package/build/assets/{useTextInputAutoExpand-BTuNAk3V-5wcrsLsu.js → useTextInputAutoExpand-Coetw41P-BCx9E5Py.js} +1 -1
- package/build/assets/{useUpdateUiValue-B574r2my-B36XHNQq.js → useUpdateUiValue-CAsGHNl5-wS4IfynZ.js} +1 -1
- package/build/assets/{useWaveformController-EemjKAv5-CT3VAgB8.js → useWaveformController-B-n3rX5g-BppMHOmS.js} +1 -1
- package/build/assets/{utils-DNbZWtPr-BHo82ec1.js → utils-CzD7XIpv-COJ6XrrX.js} +1 -1
- package/build/assets/{withCalculatedWidth-CswVJ4Re-BeXEmgBt.js → withCalculatedWidth-nNNFed9I-Fzz_WpIw.js} +1 -1
- package/build/assets/{withFullScreenWrapper-CKo__VbV-B1HqecCF.js → withFullScreenWrapper-jebSlaHO-C2WriMN7.js} +1 -1
- package/build/electron/main.js +2 -2
- package/build/electron/manifest.js +1 -0
- package/build/index.html +1 -1
- package/package.json +34 -39
- package/wheels/streamlit-1.56.0-cp313-none-any.whl +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,j as s,z as a,x as r}from"./index-
|
|
1
|
+
import{r as t,j as s,z as a,x as r}from"./index-CHE20_1-.js";import{q as o}from"./ProgressBar-Buvlf_pb-DyD7N0tJ.js";const i=r("div",{target:"e18r7x300"})(({theme:e})=>({paddingBottom:e.spacing.sm,lineHeight:"normal"}),"");function l({element:e}){return s.jsxs("div",{className:"stProgress","data-testid":"stProgress",children:[s.jsx(i,{children:s.jsx(a,{source:e.text,allowHTML:!1,isLabel:!0})}),s.jsx(o,{value:e.value})]})}const d=t.memo(l);export{d as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{N as ke,j as Be,cP as je,r as l,cC as p,cQ as xe,cR as V,cD as P,Q as M}from"./index-
|
|
1
|
+
import{N as ke,j as Be,cP as je,r as l,cC as p,cQ as xe,cR as V,cD as P,Q as M}from"./index-CHE20_1-.js";var h={small:"small",medium:"medium",large:"large"},$;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},k.apply(this,arguments)}function ne(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,t)}return n}function w(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ne(Object(n),!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function ae(e){var r;return(r={},R(r,h.small,"2px"),R(r,h.medium,"4px"),R(r,h.large,"8px"),r)[e]}var A=p("div",function(e){return{width:"100%"}});A.displayName="StyledRoot";A.displayName="StyledRoot";var D=p("div",function(e){var r=e.$theme,n=r.sizing;return{display:"flex",marginLeft:n.scale500,marginRight:n.scale500,marginTop:n.scale500,marginBottom:n.scale500}});D.displayName="StyledBarContainer";D.displayName="StyledBarContainer";var I=p("div",function(e){var r=e.$theme,n=e.$size,t=e.$steps,o=r.colors,a=r.sizing,s=r.borders,i=s.useRoundedCorners?a.scale0:0;return w({borderTopLeftRadius:i,borderTopRightRadius:i,borderBottomRightRadius:i,borderBottomLeftRadius:i,backgroundColor:xe(o.progressbarTrackFill,"0.16"),height:ae(n),flex:1,overflow:"hidden"},t<2?{}:{marginLeft:a.scale300,":first-child":{marginLeft:"0"}})});I.displayName="StyledBar";I.displayName="StyledBar";var H=p("div",function(e){var r=e.$theme,n=e.$value,t=e.$successValue,o=e.$steps,a=e.$index,s=e.$maxValue,i=e.$minValue,c=i===void 0?0:i,d=s||t,S=r.colors,y=r.sizing,B=r.borders,T="".concat(100-(n-c)*100/(d-c),"%"),u={default:"default",awaits:"awaits",inProgress:"inProgress",completed:"completed"},b=u.default;if(o>1){var N=(d-c)/o,X=(n-c)/(d-c)*100,j=Math.floor(X/N);a<j?b=u.completed:a===j?b=u.inProgress:b=u.awaits}var g=B.useRoundedCorners?y.scale0:0,E={transform:"translateX(-".concat(T,")")},x=b===u.inProgress?{animationDuration:"2.1s",animationIterationCount:"infinite",animationTimingFunction:r.animation.linearCurve,animationName:{"0%":{transform:"translateX(-102%)",opacity:1},"50%":{transform:"translateX(0%)",opacity:1},"100%":{transform:"translateX(0%)",opacity:0}}}:b===u.completed?{transform:"translateX(0%)"}:{transform:"translateX(-102%)"};return w({borderTopLeftRadius:g,borderTopRightRadius:g,borderBottomRightRadius:g,borderBottomLeftRadius:g,backgroundColor:S.accent,height:"100%",width:"100%",transform:"translateX(-102%)",transition:"transform 0.5s"},o>1?x:E)});H.displayName="StyledBarProgress";H.displayName="StyledBarProgress";var W=p("div",function(e){var r=e.$theme,n=e.$isLeft,t=n===void 0?!1:n,o=e.$size,a=o===void 0?h.medium:o,s=r.colors,i=r.sizing,c=r.borders,d=c.useRoundedCorners?i.scale0:0,S=ae(a),y={display:"inline-block",flex:1,marginLeft:"auto",marginRight:"auto",transitionProperty:"background-position",animationDuration:"1.5s",animationIterationCount:"infinite",animationTimingFunction:r.animation.linearCurve,backgroundSize:"300% auto",backgroundRepeat:"no-repeat",backgroundPositionX:t?"-50%":"150%",backgroundImage:"linear-gradient(".concat(t?"90":"270","deg, transparent 0%, ").concat(s.accent," 25%, ").concat(s.accent," 75%, transparent 100%)"),animationName:t?{"0%":{backgroundPositionX:"-50%"},"33%":{backgroundPositionX:"50%"},"66%":{backgroundPositionX:"50%"},"100%":{backgroundPositionX:"150%"}}:{"0%":{backgroundPositionX:"150%"},"33%":{backgroundPositionX:"50%"},"66%":{backgroundPositionX:"50%"},"100%":{backgroundPositionX:"-50%"}}};return w(w({},t?{borderTopLeftRadius:d,borderBottomLeftRadius:d}:{borderTopRightRadius:d,borderBottomRightRadius:d}),{},{height:S},y)});W.displayName="StyledInfiniteBar";W.displayName="StyledInfiniteBar";var F=p("div",function(e){return w(w({textAlign:"center"},e.$theme.typography.font150),{},{color:e.$theme.colors.contentTertiary})});F.displayName="StyledLabel";F.displayName="StyledLabel";var f=($={},R($,h.large,{d:"M47.5 4H71.5529C82.2933 4 91 12.9543 91 24C91 35.0457 82.2933 44 71.5529 44H23.4471C12.7067 44 4 35.0457 4 24C4 12.9543 12.7067 4 23.4471 4H47.5195",width:95,height:48,strokeWidth:8,typography:"LabelLarge"}),R($,h.medium,{d:"M39 2H60.5833C69.0977 2 76 9.16344 76 18C76 26.8366 69.0977 34 60.5833 34H17.4167C8.90228 34 2 26.8366 2 18C2 9.16344 8.90228 2 17.4167 2H39.0195",width:78,height:36,strokeWidth:4,typography:"LabelMedium"}),R($,h.small,{d:"M32 1H51.6271C57.9082 1 63 6.37258 63 13C63 19.6274 57.9082 25 51.6271 25H12.3729C6.09181 25 1 19.6274 1 13C1 6.37258 6.09181 1 12.3729 1H32.0195",width:64,height:26,strokeWidth:2,typography:"LabelSmall"}),$),ie=p("div",function(e){var r=e.$size,n=e.$inline;return{width:f[r].width+"px",height:f[r].height+"px",position:"relative",display:n?"inline-flex":"flex",alignItems:"center",justifyContent:"center"}});ie.displayName="StyledProgressBarRoundedRoot";ie.displayName="StyledProgressBarRoundedRoot";var q=p("svg",function(e){var r=e.$size;return{width:f[r].width+"px",height:f[r].height+"px",position:"absolute",fill:"none"}});q.displayName="_StyledProgressBarRoundedSvg";q.displayName="_StyledProgressBarRoundedSvg";V(q,function(e){return function(r){return M.createElement(e,k({viewBox:"0 0 ".concat(f[r.$size].width," ").concat(f[r.$size].height),xmlns:"http://www.w3.org/2000/svg"},r))}});var G=p("path",function(e){var r=e.$theme,n=e.$size;return{stroke:r.colors.backgroundTertiary,strokeWidth:f[n].strokeWidth+"px"}});G.displayName="_StyledProgressBarRoundedTrackBackground";G.displayName="_StyledProgressBarRoundedTrackBackground";V(G,function(e){return function(r){return M.createElement(e,k({d:f[r.$size].d},r))}});var Q=p("path",function(e){var r=e.$theme,n=e.$size,t=e.$visible,o=e.$pathLength,a=e.$pathProgress;return{visibility:t?"visible":"hidden",stroke:r.colors.borderAccent,strokeWidth:f[n].strokeWidth+"px",strokeDasharray:o,strokeDashoffset:o*(1-a)+""}});Q.displayName="_StyledProgressBarRoundedTrackForeground";Q.displayName="_StyledProgressBarRoundedTrackForeground";V(Q,function(e){return function(r){return M.createElement(e,k({d:f[r.$size].d},r))}});var se=p("div",function(e){var r=e.$theme,n=e.$size;return w({color:r.colors.contentPrimary},r.typography[f[n].typography])});se.displayName="StyledProgressBarRoundedText";se.displayName="StyledProgressBarRoundedText";function z(e){"@babel/helpers - typeof";return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},z(e)}var Le=["overrides","getProgressLabel","value","size","steps","successValue","minValue","maxValue","showLabel","infinite","errorMessage","forwardedRef"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},m.apply(this,arguments)}function O(e,r){return Xe(e)||Ne(e,r)||Te(e,r)||Ce()}function Ce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e,r){if(e){if(typeof e=="string")return oe(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,r)}}function oe(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Ne(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var t=[],o=!0,a=!1,s,i;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(t.push(s.value),!(r&&t.length===r));o=!0);}catch(c){a=!0,i=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw i}}return t}}function Xe(e){if(Array.isArray(e))return e}function Ee(e,r){if(e==null)return{};var n=ze(e,r),t,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function ze(e,r){if(e==null)return{};var n={},t=Object.keys(e),o,a;for(a=0;a<t.length;a++)o=t[a],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function _e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ve(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function Me(e,r,n){return r&&Ve(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ae(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&_(e,r)}function _(e,r){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},_(e,r)}function De(e){var r=We();return function(){var n=C(e),t;if(r){var o=C(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return Ie(this,t)}}function Ie(e,r){if(r&&(z(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return He(e)}function He(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function We(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},C(e)}function Fe(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var ue=(function(e){Ae(n,e);var r=De(n);function n(){return _e(this,n),r.apply(this,arguments)}return Me(n,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this.props,o=t.overrides,a=o===void 0?{}:o,s=t.getProgressLabel,i=t.value,c=t.size,d=t.steps,S=t.successValue,y=t.minValue,B=t.maxValue,T=t.showLabel,u=t.infinite,b=t.errorMessage,N=t.forwardedRef,X=Ee(t,Le),j=this.props["aria-label"]||this.props.ariaLabel,g=B!==100?B:S,E=P(a.Root,A),x=O(E,2),ce=x[0],de=x[1],fe=P(a.BarContainer,D),U=O(fe,2),pe=U[0],ge=U[1],me=P(a.Bar,I),Z=O(me,2),ye=Z[0],be=Z[1],he=P(a.BarProgress,H),J=O(he,2),ve=J[0],Re=J[1],we=P(a.Label,F),K=O(we,2),Pe=K[0],Oe=K[1],Se=P(a.InfiniteBar,W),Y=O(Se,2),ee=Y[0],re=Y[1],v={$infinite:u,$size:c,$steps:d,$successValue:g,$minValue:y,$maxValue:g,$value:i};function $e(){for(var te=[],L=0;L<d;L++)te.push(l.createElement(ye,m({key:L},v,be),l.createElement(ve,m({$index:L},v,Re))));return te}return l.createElement(ce,m({ref:N,"data-baseweb":"progress-bar",role:"progressbar","aria-label":j||s(i,g,y),"aria-valuenow":u?null:i,"aria-valuemin":u?null:y,"aria-valuemax":u?null:g,"aria-invalid":b?!0:null,"aria-errormessage":b},X,v,de),l.createElement(pe,m({},v,ge),u?l.createElement(l.Fragment,null,l.createElement(ee,m({$isLeft:!0,$size:v.$size},re)),l.createElement(ee,m({$size:v.$size},re))):$e()),T&&l.createElement(Pe,m({},v,Oe),s(i,g,y)))}}]),n})(l.Component);Fe(ue,"defaultProps",{getProgressLabel:function(e,r,n){return"".concat(Math.round((e-n)/(r-n)*100),"% Loaded")},infinite:!1,overrides:{},showLabel:!1,size:h.medium,steps:1,successValue:100,minValue:0,maxValue:100,value:0});var le=l.forwardRef(function(e,r){return l.createElement(ue,m({forwardedRef:r},e))});le.displayName="ProgressBar";var qe=(e=>(e.EXTRASMALL="xs",e.SMALL="sm",e))(qe||{});function Qe({value:e,size:r="sm",overrides:n}){const t=ke(),o={xs:t.spacing.twoXS,sm:t.spacing.sm,md:t.spacing.lg,lg:t.spacing.xl,xl:t.spacing.twoXL},a={BarContainer:{style:{marginTop:t.spacing.none,marginBottom:t.spacing.none,marginRight:t.spacing.none,marginLeft:t.spacing.none}},Bar:{style:({$theme:s})=>({marginTop:t.spacing.none,marginBottom:t.spacing.none,marginRight:t.spacing.none,marginLeft:t.spacing.none,height:o[r],backgroundColor:s.colors.progressbarTrackFill,borderTopLeftRadius:t.spacing.twoXS,borderTopRightRadius:t.spacing.twoXS,borderBottomLeftRadius:t.spacing.twoXS,borderBottomRightRadius:t.spacing.twoXS})},BarProgress:{style:()=>({backgroundColor:t.colors.secondary,borderTopLeftRadius:t.spacing.twoXS,borderTopRightRadius:t.spacing.twoXS,borderBottomLeftRadius:t.spacing.twoXS,borderBottomRightRadius:t.spacing.twoXS})}};return Be.jsx(le,{value:e,overrides:je(a,n)})}export{qe as G,Qe as q};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as u,i as ue,j as w,aw as ye,N as ve,av as we,z as re,w as oe,dP as ne,cC as S,cX as Oe,cD as k}from"./index-
|
|
1
|
+
import{r as u,i as ue,j as w,aw as ye,N as ve,av as we,z as re,w as oe,dP as ne,cC as S,cX as Oe,cD as k}from"./index-CHE20_1-.js";import{m as Re}from"./WidgetLabel-DTUHhtk_-EPIQC9md.js";import{d as ke}from"./WidgetLabelHelpIconInline-D4j09uRD-MZxp3LdE.js";import{N as je}from"./useBasicWidgetState-oLSfk0mv-C-D-ncQp.js";import"./styled-components-BsL0GiBO-C2azWTC8.js";var ie={vertical:"vertical",horizontal:"horizontal"};function ae(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,r)}return o}function D(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(o),!0).forEach(function(r){j(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ae(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function j(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var E=0,C=1,L=2;function A(e){return e.$isActive?L:e.$isHovered?C:E}function Se(e){var t=e.$theme.colors,o=e.$disabled,r=e.$checked,n=e.$isFocusVisible,i=e.$error;if(o)return t.tickFillDisabled;if(r)if(i)switch(A(e)){case E:return t.tickFillErrorSelected;case C:return t.tickFillErrorSelectedHover;case L:return t.tickFillErrorSelectedHoverActive}else switch(A(e)){case E:return t.tickFillSelected;case C:return t.tickFillSelectedHover;case L:return t.tickFillSelectedHoverActive}else return n?t.borderSelected:i?t.tickBorderError:t.tickBorder;return null}function $e(e){var t=e.$theme.colors;if(e.$disabled)return t.tickMarkFillDisabled;if(e.$checked)return t.tickMarkFill;if(e.$error)switch(A(e)){case E:return t.tickFillError;case C:return t.tickFillErrorHover;case L:return t.tickFillErrorHoverActive}else switch(A(e)){case E:return t.tickFill;case C:return t.tickFillHover;case L:return t.tickFillActive}}function Me(e){var t=e.$labelPlacement,o=t===void 0?"":t,r=e.$theme,n;switch(o){case"top":n="Bottom";break;case"bottom":n="Top";break;case"left":n=r.direction==="rtl"?"Left":"Right";break;default:case"right":n=r.direction==="rtl"?"Right":"Left";break}var i=r.sizing,a=i.scale300;return j({},"padding".concat(n),a)}function Pe(e){var t=e.$disabled,o=e.$theme,r=o.colors;return t?r.contentSecondary:r.contentPrimary}var W=S("div",function(e){var t=e.$disabled,o=e.$align;return{display:"flex",flexWrap:"wrap",flexDirection:o==="horizontal"?"row":"column",alignItems:o==="horizontal"?"center":"flex-start",cursor:t?"not-allowed":"pointer","-webkit-tap-highlight-color":"transparent"}});W.displayName="RadioGroupRoot";W.displayName="RadioGroupRoot";var K=S("label",function(e){var t,o=e.$disabled,r=e.$hasDescription,n=e.$labelPlacement,i=e.$theme,a=e.$align,s=i.sizing,c=a==="horizontal",d=i.direction==="rtl"?"Left":"Right";return t={flexDirection:n==="top"||n==="bottom"?"column":"row",display:"flex",alignItems:"center",cursor:o?"not-allowed":"pointer",marginTop:s.scale200},j(t,"margin".concat(d),c?s.scale200:null),j(t,"marginBottom",r&&!c?null:s.scale200),t});K.displayName="Root";K.displayName="Root";var X=S("div",function(e){var t=e.$theme,o=t.animation,r=t.sizing;return{backgroundColor:$e(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",height:e.$checked?r.scale200:r.scale550,transitionDuration:o.timing200,transitionTimingFunction:o.easeOutCurve,width:e.$checked?r.scale200:r.scale550}});X.displayName="RadioMarkInner";X.displayName="RadioMarkInner";var J=S("div",function(e){var t=e.$theme,o=t.animation,r=t.sizing;return{alignItems:"center",backgroundColor:Se(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible&&e.$checked?"0 0 0 3px ".concat(e.$theme.colors.accent):"none",display:"flex",height:r.scale700,justifyContent:"center",marginTop:r.scale0,marginRight:r.scale0,marginBottom:r.scale0,marginLeft:r.scale0,outline:"none",verticalAlign:"middle",width:r.scale700,flexShrink:0,transitionDuration:o.timing200,transitionTimingFunction:o.easeOutCurve}});J.displayName="RadioMarkOuter";J.displayName="RadioMarkOuter";var Q=S("div",function(e){var t=e.$theme.typography;return D(D({verticalAlign:"middle"},Me(e)),{},{color:Pe(e)},t.LabelMedium)});Q.displayName="Label";Q.displayName="Label";var Y=S("input",{width:0,height:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,clip:"rect(0 0 0 0)",position:"absolute"});Y.displayName="Input";Y.displayName="Input";var Z=S("div",function(e){var t,o=e.$theme,r=e.$align,n=r==="horizontal",i=o.direction==="rtl"?"Right":"Left",a=o.direction==="rtl"?"Left":"Right";return D(D({},o.typography.ParagraphSmall),{},(t={color:o.colors.contentSecondary,cursor:"auto"},j(t,"margin".concat(i),r==="horizontal"?null:o.sizing.scale900),j(t,"margin".concat(a),n?o.sizing.scale200:null),j(t,"maxWidth","240px"),t))});Z.displayName="Description";Z.displayName="Description";function H(e){"@babel/helpers - typeof";return H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(e)}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_.apply(this,arguments)}function Fe(e,t){return Le(e)||Ce(e,t)||Ee(e,t)||xe()}function xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ee(e,t){if(e){if(typeof e=="string")return se(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return se(e,t)}}function se(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function Ce(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r=[],n=!0,i=!1,a,s;try{for(o=o.call(e);!(n=(a=o.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,s=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw s}}return r}}function Le(e){if(Array.isArray(e))return e}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e,t,o){return t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function De(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},U(e,t)}function Ae(e){var t=ze();return function(){var o=V(e),r;if(t){var n=V(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return Ve(this,r)}}function Ve(e,t){if(t&&(H(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},V(e)}function B(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var ce=(function(e){De(o,e);var t=Ae(o);function o(){var r;Ie(this,o);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),B(T(r),"state",{isFocusVisible:!1,focusedRadioIndex:-1}),B(T(r),"handleFocus",function(s,c){Oe(s)&&r.setState({isFocusVisible:!0}),r.setState({focusedRadioIndex:c}),r.props.onFocus&&r.props.onFocus(s)}),B(T(r),"handleBlur",function(s,c){r.state.isFocusVisible!==!1&&r.setState({isFocusVisible:!1}),r.setState({focusedRadioIndex:-1}),r.props.onBlur&&r.props.onBlur(s)}),r}return Be(o,[{key:"render",value:function(){var r=this,n=this.props.overrides,i=n===void 0?{}:n,a=k(i.RadioGroupRoot,W),s=Fe(a,2),c=s[0],d=s[1];return u.createElement(c,_({id:this.props.id,role:"radiogroup","aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props.error||null,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],$align:this.props.align,$disabled:this.props.disabled,$error:this.props.error,$required:this.props.required},d),u.Children.map(this.props.children,function(p,h){if(!u.isValidElement(p))return null;var l=r.props.value===p.props.value;return u.cloneElement(p,{align:r.props.align,autoFocus:r.props.autoFocus,checked:l,disabled:r.props.disabled||p.props.disabled,error:r.props.error,isFocused:r.state.focusedRadioIndex===h,isFocusVisible:r.state.isFocusVisible,tabIndex:h===0&&!r.props.value||l?"0":"-1",labelPlacement:r.props.labelPlacement,name:r.props.name,onBlur:function(f){return r.handleBlur(f,h)},onFocus:function(f){return r.handleFocus(f,h)},onChange:r.props.onChange,onMouseEnter:r.props.onMouseEnter,onMouseLeave:r.props.onMouseLeave})}))}}]),o})(u.Component);B(ce,"defaultProps",{name:"",value:"",disabled:!1,autoFocus:!1,labelPlacement:"right",align:"vertical",error:!1,required:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onFocus:function(){},onBlur:function(){},overrides:{}});function q(e){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(e)}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},O.apply(this,arguments)}function M(e,t){return Ue(e)||_e(e,t)||He(e,t)||Ne()}function Ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function He(e,t){if(e){if(typeof e=="string")return le(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return le(e,t)}}function le(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function _e(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r=[],n=!0,i=!1,a,s;try{for(o=o.call(e);!(n=(a=o.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,s=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw s}}return r}}function Ue(e){if(Array.isArray(e))return e}function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t,o){return t&&Ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},G(e,t)}function Xe(e){var t=Qe();return function(){var o=z(e),r;if(t){var n=z(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return Je(this,r)}}function Je(e,t){if(t&&(q(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},z(e)}function F(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ye(e){return e==="top"||e==="left"}function Ze(e){return e==="bottom"||e==="right"}var et=function(e){return e.stopPropagation()},pe=(function(e){Ke(o,e);var t=Xe(o);function o(){var r;qe(this,o);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),F(P(r),"state",{isActive:!1,isHovered:!1}),F(P(r),"onMouseEnter",function(s){r.setState({isHovered:!0}),r.props.onMouseEnter&&r.props.onMouseEnter(s)}),F(P(r),"onMouseLeave",function(s){r.setState({isHovered:!1}),r.props.onMouseLeave&&r.props.onMouseLeave(s)}),F(P(r),"onMouseDown",function(s){r.setState({isActive:!0}),r.props.onMouseDown&&r.props.onMouseDown(s)}),F(P(r),"onMouseUp",function(s){r.setState({isActive:!1}),r.props.onMouseUp&&r.props.onMouseUp(s)}),r}return We(o,[{key:"componentDidMount",value:function(){var r;this.props.autoFocus&&(r=this.props.inputRef)!==null&&r!==void 0&&r.current&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var r=this.props.overrides,n=r===void 0?{}:r,i=k(n.Root,K),a=M(i,2),s=a[0],c=a[1],d=k(n.Label,Q),p=M(d,2),h=p[0],l=p[1],f=k(n.Input,Y),R=M(f,2),m=R[0],g=R[1],N=k(n.Description,Z),x=M(N,2),I=x[0],y=x[1],v=k(n.RadioMarkInner,X),b=M(v,2),fe=b[0],de=b[1],he=k(n.RadioMarkOuter,J),ee=M(he,2),be=ee[0],me=ee[1],$={$align:this.props.align,$checked:this.props.checked,$disabled:this.props.disabled,$hasDescription:!!this.props.description,$isActive:this.state.isActive,$error:this.props.error,$isFocused:this.props.isFocused,$isFocusVisible:this.props.isFocused&&this.props.isFocusVisible,$isHovered:this.state.isHovered,$labelPlacement:this.props.labelPlacement,$required:this.props.required,$value:this.props.value},te=u.createElement(h,O({},$,l),this.props.containsInteractiveElement?u.createElement("div",{onClick:function(ge){return ge.preventDefault()}},this.props.children):this.props.children);return u.createElement(u.Fragment,null,u.createElement(s,O({"data-baseweb":"radio",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},$,c),Ye(this.props.labelPlacement)&&te,u.createElement(be,O({},$,me),u.createElement(fe,O({},$,de))),u.createElement(m,O({"aria-invalid":this.props.error||null,checked:this.props.checked,disabled:this.props.disabled,name:this.props.name,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:et,onChange:this.props.onChange,ref:this.props.inputRef,required:this.props.required,tabIndex:this.props.tabIndex,type:"radio",value:this.props.value},$,g)),Ze(this.props.labelPlacement)&&te),!!this.props.description&&u.createElement(I,O({},$,y),this.props.description))}}]),o})(u.Component);F(pe,"defaultProps",{overrides:{},containsInteractiveElement:!1,checked:!1,disabled:!1,autoFocus:!1,inputRef:u.createRef(),align:"vertical",error:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});function tt(e){const t=parseFloat(e.sizes.checkbox),o=parseFloat(e.spacing.threeXS),r=oe(t.toString()),n=Math.round(r*.375);let i=Math.round(oe((t-o).toString()));return i>=r&&(i-=1),[ne(n,"px"),ne(i,"px")]}function rt({disabled:e,horizontal:t,value:o,onChange:r,options:n,captions:i,label:a,labelVisibility:s,help:c}){const[d,p]=u.useState(o??null);u.useEffect(()=>{o!==d&&p(o??null)},[o]);const h=u.useCallback(y=>{const v=parseInt(y.target.value,10);p(v),r(v)},[r]),l=ve(),f=i.length>0,R=n.length>0,m=R?n:["No options to select."],g=e||!R,N=y=>y==""&&t&&f?" ":y,[x,I]=tt(l);return w.jsxs("div",{className:"stRadio","data-testid":"stRadio",children:[w.jsx(Re,{label:a,disabled:g,labelVisibility:s,children:c&&w.jsx(ke,{content:c,placement:we.TOP_RIGHT,label:a})}),w.jsx(ce,{onChange:h,value:d!==null?d.toString():void 0,disabled:g,align:t?ie.horizontal:ie.vertical,"aria-label":a,"data-testid":"stRadioGroup",overrides:{RadioGroupRoot:{style:{gap:f?l.spacing.sm:l.spacing.none,minHeight:l.sizes.minElementHeight}}},children:m.map((y,v)=>w.jsxs(pe,{value:v.toString(),overrides:{Root:{style:({$isFocusVisible:b})=>({marginBottom:l.spacing.none,marginTop:l.spacing.none,marginRight:f?l.spacing.sm:l.spacing.lg,paddingLeft:l.spacing.none,alignItems:"start",paddingRight:l.spacing.threeXS,backgroundColor:b?l.colors.darkenedBgMix25:""})},RadioMarkOuter:{style:({$checked:b})=>({width:l.sizes.checkbox,height:l.sizes.checkbox,marginTop:"0.35rem",marginRight:l.spacing.none,marginLeft:l.spacing.none,backgroundColor:b&&!g?l.colors.primary:l.colors.borderColor})},RadioMarkInner:{style:({$checked:b})=>({height:b?x:I,width:b?x:I})},Label:{style:{color:g?l.colors.fadedText40:l.colors.bodyText,position:"relative",top:l.spacing.px}}},children:[w.jsx(re,{source:y,allowHTML:!1,isLabel:!0,largerLabel:!0}),f&&w.jsx(re,{source:N(i[v]),allowHTML:!1,isCaption:!0,isLabel:!0})]},v))})]})}const ot=u.memo(rt);function nt({disabled:e,element:t,widgetMgr:o,fragmentId:r}){const n=t.queryParamKey?{paramKey:t.queryParamKey,valueType:"string_value",clearable:ue(t.default)}:void 0,[i,a]=je({getStateFromWidgetMgr:it,getDefaultStateFromProto:at,getCurrStateFromProto:st,updateWidgetMgrState:lt,element:t,widgetMgr:o,fragmentId:r,formClearBehavior:"resetValueOnly",queryParamBinding:n}),{horizontal:s,options:c,captions:d,label:p,labelVisibility:h,help:l}=t,f=u.useCallback(m=>{const g=c[m]??null;a({value:g,fromUi:!0})},[a,c]),R=u.useMemo(()=>{if(i===null)return null;const m=c.lastIndexOf(i);return m>=0?m:null},[i,c]);return w.jsx(ot,{label:p,onChange:f,options:c,captions:d,disabled:e,horizontal:s,labelVisibility:ye(h?.value),value:R,help:l})}function it(e,t){return e.getStringValue(t)}function at(e){return e.options.length===0||ue(e.default)?null:e.options[e.default]}function st(e){return e.rawValue??null}function lt(e,t,o,r){t.setStringValue(e,o.value,{fromUi:o.fromUi},r)}const ht=u.memo(nt);export{ht as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,i as S,j as u,aw as R,N as j,dd as H,a9 as N,w as E,b9 as L,de as D}from"./index-
|
|
1
|
+
import{r as l,i as S,j as u,aw as R,N as j,dd as H,a9 as N,w as E,b9 as L,de as D}from"./index-CHE20_1-.js";import{X as F,c as K}from"./useSelectCommon-_ffsRexw-DbdQDzQX.js";import{m as U}from"./WidgetLabel-DTUHhtk_-EPIQC9md.js";import{j as X}from"./WidgetLabelHelpIcon-CfpOYjLN-CUGwBOM8.js";import{Y as k,Z as q}from"./select-DbfjugKJ-C8EDw3eO.js";import{N as Y}from"./useBasicWidgetState-oLSfk0mv-C-D-ncQp.js";import"./assertThisInitialized-C1dAyb4j-CzYfxWZp.js";import"./styled-components-CZ4GSHz4-BVEj2YLE.js";import"./stateful-menu-DsDbGVB_-C8xJ2Uve.js";import"./styled-components-BsL0GiBO-C2azWTC8.js";import"./constants-PqcOHKIA-Am2_uapM.js";const Z=({disabled:o,value:t,onChange:r,options:d,label:p,labelVisibility:f,help:g,placeholder:y,clearable:m,acceptNewOptions:h,filterMode:v})=>{const e=j(),x=l.useContext(H),[c,i]=l.useState(t),a=l.useRef(c);N(()=>{i(t),a.current=null},[t]);const C=l.useCallback(n=>{if(n.type==="remove"){a.current=n.option?.value,i(null);return}if(a.current=null,n.type==="clear"){i(null),r(null);return}const[s]=n.value;i(s.value),r(s.value)},[r]),W=l.useCallback(()=>{a.current!==null&&i(a.current)},[]),T=d,{placeholder:z,disabled:V,selectOptions:I,inputReadOnly:M,valueToUiSingle:B,createFilterOptions:w}=F({options:T,isMulti:!1,acceptNewOptions:h,filterMode:v,placeholderInput:y}),b=o||V,O=l.useMemo(()=>w(),[w]),P=B(c);return u.jsxs("div",{className:"stSelectbox","data-testid":"stSelectbox",children:[u.jsx(U,{label:p,labelVisibility:f,disabled:b,children:g&&u.jsx(X,{content:g,label:p})}),u.jsx(k,{creatable:h,disabled:b,labelKey:"label","aria-label":p||"",onChange:C,onBlur:W,options:I,filterOptions:O,clearable:m||!1,escapeClearsValue:m||!1,value:P,valueKey:"value",placeholder:z,ignoreCase:!1,overrides:{Root:{style:()=>({lineHeight:e.lineHeights.inputWidget,fontWeight:e.fontWeights.normal})},Dropdown:{component:K,style:{boxShadow:"none",overflow:"hidden"}},ClearIcon:{props:{overrides:{Svg:{style:{color:e.colors.grayTextColor,padding:e.spacing.threeXS,height:e.sizes.clearIconSize,width:e.sizes.clearIconSize,":hover":{fill:e.colors.bodyText}}}}}},ControlContainer:{style:({$isFocused:n})=>{const s=D(e.colors,n);return{height:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,borderTopColor:s,borderRightColor:s,borderBottomColor:s,borderLeftColor:s}}},IconsContainer:{style:()=>({paddingRight:e.spacing.sm})},ValueContainer:{style:()=>({flexGrow:1,paddingRight:e.spacing.sm,paddingLeft:e.spacing.sm,paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,marginLeft:e.sizes.tagMarginInsideBorder})},Placeholder:{style:()=>({color:b?e.colors.fadedText40:e.colors.fadedText60,position:"absolute",pointerEvents:"none"})},InputContainer:{style:()=>({marginLeft:e.spacing.none,position:"relative",minWidth:e.spacing.threeXS,flexGrow:0})},Input:{props:{readOnly:M},style:()=>({lineHeight:e.lineHeights.inputWidget,color:e.colors.bodyText,caretColor:e.colors.bodyText})},DropdownContainer:{style:()=>({...L(e),maxHeight:`min(${e.sizes.maxDropdownHeight}, 70vh)`,overflow:"hidden"})},Popover:{props:{ignoreBoundary:x,popoverMargin:E(e.spacing.twoXS),overrides:{Body:{style:()=>({overflow:"hidden"})}}}},SingleValue:{style:()=>({marginLeft:e.spacing.none})},SelectArrow:{component:q,props:{style:{...b&&{cursor:"not-allowed"}},overrides:{Svg:{style:()=>({width:e.iconSizes.xl,height:e.iconSizes.xl})}}}}}})]})},$=l.memo(Z),G=(o,t)=>o.getStringValue(t),A=o=>o.options.length===0||S(o.default)?null:o.options[o.default],_=o=>o.rawValue??null,J=(o,t,r,d)=>{t.setStringValue(o,r.value,{fromUi:r.fromUi},d)},Q=({disabled:o,element:t,widgetMgr:r,fragmentId:d})=>{const{options:p,help:f,label:g,labelVisibility:y,placeholder:m,acceptNewOptions:h,filterMode:v}=t,e=t.queryParamKey?{paramKey:t.queryParamKey,valueType:"string_value",clearable:S(t.default)}:void 0,[x,c]=Y({getStateFromWidgetMgr:G,getDefaultStateFromProto:A,getCurrStateFromProto:_,updateWidgetMgrState:J,element:t,widgetMgr:r,fragmentId:d,formClearBehavior:"resetValueOnly",queryParamBinding:e}),i=l.useCallback(C=>{c({value:C,fromUi:!0})},[c]),a=S(t.default)&&!o;return u.jsx($,{label:g,labelVisibility:R(y?.value),options:p,disabled:o,onChange:i,value:x,help:f,placeholder:m,clearable:a,acceptNewOptions:h??!1,filterMode:v})},ce=l.memo(Q);export{ce as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as R,N as vt,a9 as bt,dQ as yt,dR as wt,j as G,z as Ie,aw as Tt,dS as oe,x as se,cC as Z,dh as xt,cX as kt,cD as J,Q as Ge,d6 as Ot,d7 as Mt}from"./index-DJf52eor.js";import{l as St}from"./moment-C29_LcvN-BY3oO1nk.js";import{o as Dt}from"./withCalculatedWidth-CswVJ4Re-BeXEmgBt.js";import{m as Rt}from"./WidgetLabel-DUaobbKW-DD-xWyXR.js";import{j as Et}from"./WidgetLabelHelpIcon-Dk_Qm9_8-CtMOr4fX.js";import{N as It}from"./useBasicWidgetState-Bd8NTj87-Cqs9ZQAV.js";import{s as Ct}from"./formatMoment-DEtsTHwA-BeQagUzn.js";import{p as jt}from"./formatNumber-DxMjoq14-D-XVTuz9.js";import"./styled-components-BwoIjXty-eQCTyKeV.js";import"./numbro-CDdPhOTG-s-4vlRUZ.js";import"./sprintfjs-DwuHM96D-Dbm-A0ro.js";var ve={},H={},be={},le={},Ne;function Ce(){if(Ne)return le;Ne=1,Object.defineProperty(le,"__esModule",{value:!0}),le.Direction=void 0;var e;return(function(r){r.Right="to right",r.Left="to left",r.Down="to bottom",r.Up="to top"})(e||(le.Direction=e={})),le}var Ue;function We(){return Ue||(Ue=1,(function(e){var r=be&&be.__spreadArray||function(o,i,u){if(u||arguments.length===2)for(var g=0,y=i.length,f;g<y;g++)(f||!(g in i))&&(f||(f=Array.prototype.slice.call(i,0,g)),f[g]=i[g]);return o.concat(f||Array.prototype.slice.call(i))};Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var n=Ge,s=Ce(),h=function(o){var i=o.toString().split(".")[1];return i?i.length:0};e.getStepDecimals=h;function w(o){return o.touches&&o.touches.length||o.changedTouches&&o.changedTouches.length}e.isTouchEvent=w;function c(o,i,u){var g=(i-o)/u,y=8,f=Number(g.toFixed(y));return parseInt(f.toString(),10)===f}e.isStepDivisible=c;function p(o,i,u,g,y,f,b){var S=1e11;if(o=Math.round(o*S)/S,!f){var j=b[i-1],I=b[i+1];if(j&&j>o)return j;if(I&&I<o)return I}if(o>g)return g;if(o<u)return u;var U=Math.floor(o*S-u*S)%Math.floor(y*S),z=Math.floor(o*S-Math.abs(U)),X=U===0?o:z/S,P=Math.abs(U/S)<y/2?X:X+y,$=(0,e.getStepDecimals)(y);return parseFloat(P.toFixed($))}e.normalizeValue=p;function V(o,i,u){return(o-i)/(u-i)}e.relativeValue=V;function F(o){return o===s.Direction.Up||o===s.Direction.Down}e.isVertical=F;function _(o,i,u){if(i>=u)throw new RangeError("min (".concat(i,") is equal/bigger than max (").concat(u,")"));if(o<i)throw new RangeError("value (".concat(o,") is smaller than min (").concat(i,")"));if(o>u)throw new RangeError("value (".concat(o,") is bigger than max (").concat(u,")"))}e.checkBoundaries=_;function D(o,i,u){return o<i?i:o>u?u:o}e.checkValuesAgainstBoundaries=D;function T(o){if(!(o.length<2)&&!o.slice(1).every(function(i,u){return o[u]<=i}))throw new RangeError("values={[".concat(o,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=T;function d(o){var i=window.getComputedStyle(o);return{top:parseInt(i["margin-top"],10),bottom:parseInt(i["margin-bottom"],10),left:parseInt(i["margin-left"],10),right:parseInt(i["margin-right"],10)}}e.getMargin=d;function t(o){var i=window.getComputedStyle(o);return{top:parseInt(i["padding-top"],10)+parseInt(i["border-top-width"],10),bottom:parseInt(i["padding-bottom"],10)+parseInt(i["border-bottom-width"],10),left:parseInt(i["padding-left"],10)+parseInt(i["border-left-width"],10),right:parseInt(i["padding-right"],10)+parseInt(i["border-right-width"],10)}}e.getPaddingAndBorder=t;function a(o,i,u){var g=u?-1:1;o.forEach(function(y,f){return m(y,g*i[f].x,i[f].y)})}e.translateThumbs=a;function l(o,i,u,g){for(var y=0,f=L(o[0],i,u,g),b=1;b<o.length;b++){var S=L(o[b],i,u,g);S<f&&(f=S,y=b)}return y}e.getClosestThumbIndex=l;function m(o,i,u){o.style.transform="translate(".concat(i,"px, ").concat(u,"px)")}e.translate=m;var v=function(o){var i=[],u=null,g=function(){for(var y=[],f=0;f<arguments.length;f++)y[f]=arguments[f];i=y,!u&&(u=requestAnimationFrame(function(){u=null,o.apply(void 0,i)}))};return g};e.schd=v;function x(o,i,u){var g=o.slice(0);return g[i]=u,g}e.replaceAt=x;function C(o){var i=o.values,u=o.colors,g=o.min,y=o.max,f=o.direction,b=f===void 0?s.Direction.Right:f,S=o.rtl,j=S===void 0?!1:S;j&&b===s.Direction.Right?b=s.Direction.Left:j&&s.Direction.Left&&(b=s.Direction.Right);var I=i.slice(0).sort(function(z,X){return z-X}).map(function(z){return(z-g)/(y-g)*100}),U=I.reduce(function(z,X,P){return"".concat(z,", ").concat(u[P]," ").concat(X,"%, ").concat(u[P+1]," ").concat(X,"%")},"");return"linear-gradient(".concat(b,", ").concat(u[0]," 0%").concat(U,", ").concat(u[u.length-1]," 100%)")}e.getTrackBackground=C;function k(){}e.voidFn=k;function O(o){throw new Error("Didn't expect to get here")}e.assertUnreachable=O;var E=function(o,i,u,g,y){y===void 0&&(y=function(b){return b});var f=Math.ceil(r([o],Array.from(o.children),!0).reduce(function(b,S){var j=Math.ceil(S.getBoundingClientRect().width);if(S.innerText&&S.innerText.includes(u)&&S.childElementCount===0){var I=S.cloneNode(!0);I.innerHTML=y(i.toFixed(g)),I.style.visibility="hidden",document.body.appendChild(I),j=Math.ceil(I.getBoundingClientRect().width),document.body.removeChild(I)}return j>b?j:b},o.getBoundingClientRect().width));return f},B=function(o,i,u,g,y,f,b){b===void 0&&(b=function(I){return I});var S=[],j=function(I){var U=E(u[I],g[I],y,f,b),z=i[I].x;i.forEach(function(X,P){var $=X.x,Q=E(u[P],g[P],y,f,b);I!==P&&(z>=$&&z<=$+Q||z+U>=$&&z+U<=$+Q)&&(S.includes(P)||(S.push(I),S.push(P),S=r(r([],S,!0),[I,P],!1),j(P)))})};return j(o),Array.from(new Set(S.sort()))},M=function(o,i,u,g,y,f){g===void 0&&(g=.1),y===void 0&&(y=" - "),f===void 0&&(f=function(P){return P});var b=(0,e.getStepDecimals)(g),S=(0,n.useState)({}),j=S[0],I=S[1],U=(0,n.useState)(f(i[u].toFixed(b))),z=U[0],X=U[1];return(0,n.useEffect)(function(){if(o){var P=o.getThumbs();if(P.length<1)return;var $={},Q=o.getOffsets(),re=B(u,Q,P,i,y,b,f),de=f(i[u].toFixed(b));if(re.length){var ee=re.reduce(function(te,ue,ge,me){return te.length?r(r([],te,!0),[Q[me[ge]].x],!1):[Q[me[ge]].x]},[]);if(Math.min.apply(Math,ee)===Q[u].x){var fe=[];re.forEach(function(te){fe.push(i[te].toFixed(b))}),de=Array.from(new Set(fe.sort(function(te,ue){return parseFloat(te)-parseFloat(ue)}))).map(f).join(y);var he=Math.min.apply(Math,ee),pe=Math.max.apply(Math,ee),Ee=P[re[ee.indexOf(pe)]].getBoundingClientRect().width;$.left="".concat(Math.abs(he-(pe+Ee))/2,"px"),$.transform="translate(-50%, 0)"}else $.visibility="hidden"}X(de),I($)}},[o,i]),[z,j]};e.useThumbOverlap=M;function L(o,i,u,g){var y=o.getBoundingClientRect(),f=y.left,b=y.top,S=y.width,j=y.height;return F(g)?Math.abs(u-(b+j/2)):Math.abs(i-(f+S/2))}var N=function(){var o,i=((o=navigator.userAgentData)===null||o===void 0?void 0:o.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(i)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};e.isIOS=N})(be)),be}var He;function Bt(){if(He)return H;He=1;var e=H&&H.__extends||(function(){var D=function(T,d){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(t[l]=a[l])},D(T,d)};return function(T,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");D(T,d);function t(){this.constructor=T}T.prototype=d===null?Object.create(d):(t.prototype=d.prototype,new t)}})(),r=H&&H.__createBinding||(Object.create?function(D,T,d,t){t===void 0&&(t=d);var a=Object.getOwnPropertyDescriptor(T,d);(!a||("get"in a?!T.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return T[d]}}),Object.defineProperty(D,t,a)}:function(D,T,d,t){t===void 0&&(t=d),D[t]=T[d]}),n=H&&H.__setModuleDefault||(Object.create?function(D,T){Object.defineProperty(D,"default",{enumerable:!0,value:T})}:function(D,T){D.default=T}),s=H&&H.__importStar||function(D){if(D&&D.__esModule)return D;var T={};if(D!=null)for(var d in D)d!=="default"&&Object.prototype.hasOwnProperty.call(D,d)&&r(T,D,d);return n(T,D),T},h=H&&H.__spreadArray||function(D,T,d){if(d||arguments.length===2)for(var t=0,a=T.length,l;t<a;t++)(l||!(t in T))&&(l||(l=Array.prototype.slice.call(T,0,t)),l[t]=T[t]);return D.concat(l||Array.prototype.slice.call(T))};Object.defineProperty(H,"__esModule",{value:!0});var w=s(Ge),c=We(),p=Ce(),V=["ArrowRight","ArrowUp","k","PageUp"],F=["ArrowLeft","ArrowDown","j","PageDown"],_=(function(D){e(T,D);function T(d){var t=D.call(this,d)||this;if(t.trackRef=w.createRef(),t.thumbRefs=[],t.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(t.props.values.length).fill(0).map(function(a,l){return l}),isChanged:!1,markOffsets:[]},t.getOffsets=function(){var a=t.props,l=a.direction,m=a.values,v=a.min,x=a.max,C=t.trackRef.current;if(!C)return console.warn("No track element found."),[];var k=C.getBoundingClientRect(),O=(0,c.getPaddingAndBorder)(C);return t.getThumbs().map(function(E,B){var M={x:0,y:0},L=E.getBoundingClientRect(),N=(0,c.getMargin)(E);switch(l){case p.Direction.Right:return M.x=(N.left+O.left)*-1,M.y=((L.height-k.height)/2+O.top)*-1,M.x+=k.width*(0,c.relativeValue)(m[B],v,x)-L.width/2,M;case p.Direction.Left:return M.x=(N.right+O.right)*-1,M.y=((L.height-k.height)/2+O.top)*-1,M.x+=k.width-k.width*(0,c.relativeValue)(m[B],v,x)-L.width/2,M;case p.Direction.Up:return M.x=((L.width-k.width)/2+N.left+O.left)*-1,M.y=-O.left,M.y+=k.height-k.height*(0,c.relativeValue)(m[B],v,x)-L.height/2,M;case p.Direction.Down:return M.x=((L.width-k.width)/2+N.left+O.left)*-1,M.y=-O.left,M.y+=k.height*(0,c.relativeValue)(m[B],v,x)-L.height/2,M;default:return(0,c.assertUnreachable)(l)}})},t.getThumbs=function(){return t.trackRef&&t.trackRef.current?Array.from(t.trackRef.current.children).filter(function(a){return a.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},t.getTargetIndex=function(a){return t.getThumbs().findIndex(function(l){return l===a.target||l.contains(a.target)})},t.addTouchEvents=function(a){document.addEventListener("touchmove",t.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",t.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",t.schdOnEnd,{passive:!1})},t.addMouseEvents=function(a){document.addEventListener("mousemove",t.schdOnMouseMove),document.addEventListener("mouseup",t.schdOnEnd)},t.onMouseDownTrack=function(a){var l;if(!(a.button!==0||(0,c.isIOS)()))if(a.persist(),a.preventDefault(),t.addMouseEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(v){var x;return(x=v.current)===null||x===void 0?void 0:x.contains(a.target)}))return;t.setState({draggedTrackPos:[a.clientX,a.clientY]},function(){return t.onMove(a.clientX,a.clientY)})}else{var m=(0,c.getClosestThumbIndex)(t.thumbRefs.map(function(v){return v.current}),a.clientX,a.clientY,t.props.direction);(l=t.thumbRefs[m].current)===null||l===void 0||l.focus(),t.setState({draggedThumbIndex:m},function(){return t.onMove(a.clientX,a.clientY)})}},t.onResize=function(){(0,c.translateThumbs)(t.getThumbs(),t.getOffsets(),t.props.rtl),t.calculateMarkOffsets()},t.onTouchStartTrack=function(a){var l;if(a.persist(),t.addTouchEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(v){var x;return(x=v.current)===null||x===void 0?void 0:x.contains(a.target)}))return;t.setState({draggedTrackPos:[a.touches[0].clientX,a.touches[0].clientY]},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}else{var m=(0,c.getClosestThumbIndex)(t.thumbRefs.map(function(v){return v.current}),a.touches[0].clientX,a.touches[0].clientY,t.props.direction);(l=t.thumbRefs[m].current)===null||l===void 0||l.focus(),t.setState({draggedThumbIndex:m},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}},t.onMouseOrTouchStart=function(a){if(!t.props.disabled){var l=(0,c.isTouchEvent)(a);if(!(!l&&a.button!==0)){var m=t.getTargetIndex(a);m!==-1&&(l?t.addTouchEvents(a):t.addMouseEvents(a),t.setState({draggedThumbIndex:m,thumbZIndexes:t.state.thumbZIndexes.map(function(v,x){return x===m?Math.max.apply(Math,t.state.thumbZIndexes):v<=t.state.thumbZIndexes[m]?v:v-1})}))}}},t.onMouseMove=function(a){a.preventDefault(),t.onMove(a.clientX,a.clientY)},t.onTouchMove=function(a){a.preventDefault(),t.onMove(a.touches[0].clientX,a.touches[0].clientY)},t.onKeyDown=function(a){var l=t.props,m=l.values,v=l.onChange,x=l.step,C=l.rtl,k=l.direction,O=t.state.isChanged,E=t.getTargetIndex(a.nativeEvent),B=C||k===p.Direction.Left||k===p.Direction.Down?-1:1;E!==-1&&(V.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:E,isChanged:!0}),v((0,c.replaceAt)(m,E,t.normalizeValue(m[E]+B*(a.key==="PageUp"?x*10:x),E)))):F.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:E,isChanged:!0}),v((0,c.replaceAt)(m,E,t.normalizeValue(m[E]-B*(a.key==="PageDown"?x*10:x),E)))):a.key==="Tab"?t.setState({draggedThumbIndex:-1},function(){O&&t.fireOnFinalChange()}):O&&t.fireOnFinalChange())},t.onKeyUp=function(a){var l=t.state.isChanged;t.setState({draggedThumbIndex:-1},function(){l&&t.fireOnFinalChange()})},t.onMove=function(a,l){var m=t.state,v=m.draggedThumbIndex,x=m.draggedTrackPos,C=t.props,k=C.direction,O=C.min,E=C.max,B=C.onChange,M=C.values,L=C.step,N=C.rtl;if(v===-1&&x[0]===-1&&x[1]===-1)return null;var o=t.trackRef.current;if(!o)return null;var i=o.getBoundingClientRect(),u=(0,c.isVertical)(k)?i.height:i.width;if(x[0]!==-1&&x[1]!==-1){var g=a-x[0],y=l-x[1],f=0;switch(k){case p.Direction.Right:case p.Direction.Left:f=g/u*(E-O);break;case p.Direction.Down:case p.Direction.Up:f=y/u*(E-O);break;default:(0,c.assertUnreachable)(k)}if(N&&(f*=-1),Math.abs(f)>=L/2){for(var b=0;b<t.thumbRefs.length;b++){if(M[b]===E&&Math.sign(f)===1||M[b]===O&&Math.sign(f)===-1)return;var S=M[b]+f;S>E?f=E-M[b]:S<O&&(f=O-M[b])}for(var j=M.slice(0),b=0;b<t.thumbRefs.length;b++)j=(0,c.replaceAt)(j,b,t.normalizeValue(M[b]+f,b));t.setState({draggedTrackPos:[a,l]}),B(j)}}else{var I=0;switch(k){case p.Direction.Right:I=(a-i.left)/u*(E-O)+O;break;case p.Direction.Left:I=(u-(a-i.left))/u*(E-O)+O;break;case p.Direction.Down:I=(l-i.top)/u*(E-O)+O;break;case p.Direction.Up:I=(u-(l-i.top))/u*(E-O)+O;break;default:(0,c.assertUnreachable)(k)}N&&(I=E+O-I),Math.abs(M[v]-I)>=L/2&&B((0,c.replaceAt)(M,v,t.normalizeValue(I,v)))}},t.normalizeValue=function(a,l){var m=t.props,v=m.min,x=m.max,C=m.step,k=m.allowOverlap,O=m.values;return(0,c.normalizeValue)(a,l,v,x,C,k,O)},t.onEnd=function(a){if(a.preventDefault(),document.removeEventListener("mousemove",t.schdOnMouseMove),document.removeEventListener("touchmove",t.schdOnTouchMove),document.removeEventListener("mouseup",t.schdOnEnd),document.removeEventListener("touchend",t.schdOnEnd),document.removeEventListener("touchcancel",t.schdOnEnd),t.state.draggedThumbIndex===-1&&t.state.draggedTrackPos[0]===-1&&t.state.draggedTrackPos[1]===-1)return null;t.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){t.fireOnFinalChange()})},t.fireOnFinalChange=function(){t.setState({isChanged:!1});var a=t.props,l=a.onFinalChange,m=a.values;l&&l(m)},t.updateMarkRefs=function(a){if(!a.renderMark){t.numOfMarks=void 0,t.markRefs=void 0;return}t.numOfMarks=(a.max-a.min)/t.props.step,t.markRefs=[];for(var l=0;l<t.numOfMarks+1;l++)t.markRefs[l]=w.createRef()},t.calculateMarkOffsets=function(){if(!(!t.props.renderMark||!t.trackRef||!t.numOfMarks||!t.markRefs||t.trackRef.current===null)){for(var a=window.getComputedStyle(t.trackRef.current),l=parseInt(a.width,10),m=parseInt(a.height,10),v=parseInt(a.paddingLeft,10),x=parseInt(a.paddingTop,10),C=[],k=0;k<t.numOfMarks+1;k++){var O=9999,E=9999;if(t.markRefs[k].current){var B=t.markRefs[k].current.getBoundingClientRect();O=B.height,E=B.width}t.props.direction===p.Direction.Left||t.props.direction===p.Direction.Right?C.push([Math.round(l/t.numOfMarks*k+v-E/2),-Math.round((O-m)/2)]):C.push([Math.round(m/t.numOfMarks*k+x-O/2),-Math.round((E-l)/2)])}t.setState({markOffsets:C})}},d.step===0)throw new Error('"step" property should be a positive number');return t.schdOnMouseMove=(0,c.schd)(t.onMouseMove),t.schdOnTouchMove=(0,c.schd)(t.onTouchMove),t.schdOnEnd=(0,c.schd)(t.onEnd),t.thumbRefs=d.values.map(function(){return w.createRef()}),t.updateMarkRefs(d),t}return T.prototype.componentDidMount=function(){var d=this,t=this.props,a=t.values,l=t.min,m=t.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",d.onResize)},unobserve:function(){return window.removeEventListener("resize",d.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,c.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(v){return(0,c.checkBoundaries)(v,d.props.min,d.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,c.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),a.forEach(function(v){(0,c.isStepDivisible)(l,v,m)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},T.prototype.componentDidUpdate=function(d,t){var a=this.props,l=a.max,m=a.min,v=a.step,x=a.values,C=a.rtl;(d.max!==l||d.min!==m||d.step!==v)&&this.updateMarkRefs(this.props),(0,c.translateThumbs)(this.getThumbs(),this.getOffsets(),C),(d.max!==l||d.min!==m||d.step!==v||t.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),x.forEach(function(k){(0,c.isStepDivisible)(m,k,v)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},T.prototype.componentWillUnmount=function(){var d={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,d),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},T.prototype.render=function(){var d=this,t=this.props,a=t.label,l=t.labelledBy,m=t.renderTrack,v=t.renderThumb,x=t.renderMark,C=x===void 0?function(){return null}:x,k=t.values,O=t.min,E=t.max,B=t.allowOverlap,M=t.disabled,L=this.state,N=L.draggedThumbIndex,o=L.thumbZIndexes,i=L.markOffsets;return m({props:{style:{transform:"scale(1)",cursor:N>-1?"grabbing":this.props.draggableTrack?(0,c.isVertical)(this.props.direction)?"ns-resize":"ew-resize":k.length===1&&!M?"pointer":"inherit"},onMouseDown:M?c.voidFn:this.onMouseDownTrack,onTouchStart:M?c.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:M,children:h(h([],i.map(function(u,g,y){return C({props:{style:d.props.direction===p.Direction.Left||d.props.direction===p.Direction.Right?{position:"absolute",left:"".concat(u[0],"px"),marginTop:"".concat(u[1],"px")}:{position:"absolute",top:"".concat(u[0],"px"),marginLeft:"".concat(u[1],"px")},key:"mark".concat(g),ref:d.markRefs[g]},index:g})}),!0),k.map(function(u,g){var y=d.state.draggedThumbIndex===g;return v({index:g,value:u,isDragged:y,props:{style:{position:"absolute",zIndex:o[g],cursor:M?"inherit":y?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:g,tabIndex:M?void 0:0,"aria-valuemax":B?E:k[g+1]||E,"aria-valuemin":B?O:k[g-1]||O,"aria-valuenow":u,draggable:!1,ref:d.thumbRefs[g],"aria-label":a,"aria-labelledby":l,role:"slider",onKeyDown:M?c.voidFn:d.onKeyDown,onKeyUp:M?c.voidFn:d.onKeyUp}})}),!0)})},T.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:p.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},T})(w.Component);return H.default=_,H}var Xe;function Lt(){return Xe||(Xe=1,(function(e){var r=ve&&ve.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var n=r(Bt());e.Range=n.default;var s=We();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return s.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return s.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return s.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return s.checkValuesAgainstBoundaries}});var h=Ce();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return h.Direction}})})(ve)),ve}var Qe=Lt();function Ye(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),n.push.apply(n,s)}return n}function we(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ye(Object(n),!0).forEach(function(s){Pt(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function Pt(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var Te=Z("div",{position:"relative",width:"100%"});Te.displayName="Root";Te.displayName="Root";Te.displayName="StyledRoot";var xe=Z("div",function(e){var r=e.$theme,n=e.$value,s=n===void 0?[]:n,h=e.$disabled,w=e.$isDragged,c=r.sizing,p="inherit";return h?p="not-allowed":w?p="grabbing":s.length===1&&(p="pointer"),{paddingTop:c.scale600,paddingBottom:c.scale600,paddingRight:c.scale600,paddingLeft:c.scale600,display:"flex",cursor:p,backgroundColor:r.colors.sliderTrackFill}});xe.displayName="Track";xe.displayName="Track";xe.displayName="StyledTrack";var ce=Z("div",function(e){var r=e.$theme,n=e.$value,s=n===void 0?[]:n,h=e.$min,w=e.$max,c=e.$disabled,p=r.colors,V=r.borders,F=r.direction,_=r.borders.useRoundedCorners?V.radius100:0;return{borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,background:Qe.getTrackBackground({values:s,colors:s.length===1?[c?p.borderOpaque:p.primary,c?p.backgroundSecondary:p.borderOpaque]:[c?p.backgroundSecondary:p.borderOpaque,c?p.borderOpaque:p.primary,c?p.backgroundSecondary:p.borderOpaque],min:h||0,max:w||0,rtl:F==="rtl"}),height:"2px",width:"100%",alignSelf:"center",cursor:c?"not-allowed":"inherit"}});ce.displayName="InnerTrack";ce.displayName="InnerTrack";ce.displayName="StyledInnerTrack";var ke=Z("div",function(e){return{width:"4px",height:"2px",backgroundColor:e.$theme.colors.backgroundPrimary,marginLeft:"16px"}});ke.displayName="Mark";ke.displayName="Mark";ke.displayName="StyledMark";var Oe=Z("div",function(e){return we(we({},e.$theme.typography.font200),{},{color:e.$theme.colors.contentPrimary})});Oe.displayName="Tick";Oe.displayName="Tick";Oe.displayName="StyledTick";var Me=Z("div",function(e){var r=e.$theme,n=r.sizing;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:n.scale600,paddingLeft:n.scale600,paddingBottom:n.scale400}});Me.displayName="TickBar";Me.displayName="TickBar";Me.displayName="StyledTickBar";var Se=Z("div",function(e){var r=e.$theme,n=e.$value,s=n===void 0?[]:n,h=e.$thumbIndex,w=e.$disabled,c=s.length===2&&h===0,p=s.length===2&&h===1;return r.direction==="rtl"&&(p||c)&&(c=!c,p=!p),{height:"24px",width:"24px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:w?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleFill,outline:"none",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(r.colors.accent):"0 1px 4px rgba(0, 0, 0, 0.12)",cursor:w?"not-allowed":"inherit"}});Se.displayName="Thumb";Se.displayName="Thumb";Se.displayName="StyledThumb";var De=Z("div",function(e){var r=e.$disabled,n=e.$theme;return{position:"absolute",top:"-16px",width:"4px",height:"20px",backgroundColor:r?n.colors.sliderHandleFillDisabled:n.colors.sliderHandleInnerFill}});De.displayName="InnerThumb";De.displayName="InnerThumb";De.displayName="StyledInnerThumb";var Re=Z("div",function(e){var r=e.$disabled,n=e.$theme;return we(we({position:"absolute",top:"-".concat(n.sizing.scale1400)},n.typography.font200),{},{backgroundColor:r?n.colors.sliderHandleFillDisabled:n.colors.sliderHandleInnerFill,color:n.colors.contentInversePrimary,paddingLeft:n.sizing.scale600,paddingRight:n.sizing.scale600,paddingTop:n.sizing.scale500,paddingBottom:n.sizing.scale500,borderBottomLeftRadius:"48px",borderBottomRightRadius:"48px",borderTopLeftRadius:"48px",borderTopRightRadius:"48px",whiteSpace:"nowrap"})});Re.displayName="ThumbValue";Re.displayName="ThumbValue";Re.displayName="StyledThumbValue";function qe(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),n.push.apply(n,s)}return n}function $t(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?qe(Object(n),!0).forEach(function(s){At(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function At(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},K.apply(this,arguments)}function q(e,r){return _t(e)||zt(e,r)||Ft(e,r)||Vt()}function Vt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
import{r as R,N as vt,a9 as bt,dQ as yt,dR as wt,j as G,z as Ie,aw as Tt,dS as oe,x as se,cC as Z,dh as xt,cX as kt,cD as J,Q as Ge,d6 as Ot,d7 as Mt}from"./index-CHE20_1-.js";import{l as St}from"./moment-C29_LcvN-BY3oO1nk.js";import{o as Dt}from"./withCalculatedWidth-nNNFed9I-Fzz_WpIw.js";import{m as Rt}from"./WidgetLabel-DTUHhtk_-EPIQC9md.js";import{j as Et}from"./WidgetLabelHelpIcon-CfpOYjLN-CUGwBOM8.js";import{N as It}from"./useBasicWidgetState-oLSfk0mv-C-D-ncQp.js";import{s as Ct}from"./formatMoment-DEtsTHwA-BeQagUzn.js";import{p as jt}from"./formatNumber-DefaFHuv-BSZLG6Yx.js";import"./styled-components-BsL0GiBO-C2azWTC8.js";import"./numbro-CDdPhOTG-s-4vlRUZ.js";import"./sprintfjs-D5kvUrjM--36qIaY-.js";var ve={},H={},be={},le={},Ne;function Ce(){if(Ne)return le;Ne=1,Object.defineProperty(le,"__esModule",{value:!0}),le.Direction=void 0;var e;return(function(r){r.Right="to right",r.Left="to left",r.Down="to bottom",r.Up="to top"})(e||(le.Direction=e={})),le}var Ue;function We(){return Ue||(Ue=1,(function(e){var r=be&&be.__spreadArray||function(o,i,u){if(u||arguments.length===2)for(var g=0,y=i.length,f;g<y;g++)(f||!(g in i))&&(f||(f=Array.prototype.slice.call(i,0,g)),f[g]=i[g]);return o.concat(f||Array.prototype.slice.call(i))};Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var n=Ge,s=Ce(),h=function(o){var i=o.toString().split(".")[1];return i?i.length:0};e.getStepDecimals=h;function w(o){return o.touches&&o.touches.length||o.changedTouches&&o.changedTouches.length}e.isTouchEvent=w;function c(o,i,u){var g=(i-o)/u,y=8,f=Number(g.toFixed(y));return parseInt(f.toString(),10)===f}e.isStepDivisible=c;function p(o,i,u,g,y,f,b){var S=1e11;if(o=Math.round(o*S)/S,!f){var j=b[i-1],I=b[i+1];if(j&&j>o)return j;if(I&&I<o)return I}if(o>g)return g;if(o<u)return u;var U=Math.floor(o*S-u*S)%Math.floor(y*S),z=Math.floor(o*S-Math.abs(U)),X=U===0?o:z/S,P=Math.abs(U/S)<y/2?X:X+y,$=(0,e.getStepDecimals)(y);return parseFloat(P.toFixed($))}e.normalizeValue=p;function V(o,i,u){return(o-i)/(u-i)}e.relativeValue=V;function F(o){return o===s.Direction.Up||o===s.Direction.Down}e.isVertical=F;function _(o,i,u){if(i>=u)throw new RangeError("min (".concat(i,") is equal/bigger than max (").concat(u,")"));if(o<i)throw new RangeError("value (".concat(o,") is smaller than min (").concat(i,")"));if(o>u)throw new RangeError("value (".concat(o,") is bigger than max (").concat(u,")"))}e.checkBoundaries=_;function D(o,i,u){return o<i?i:o>u?u:o}e.checkValuesAgainstBoundaries=D;function T(o){if(!(o.length<2)&&!o.slice(1).every(function(i,u){return o[u]<=i}))throw new RangeError("values={[".concat(o,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=T;function d(o){var i=window.getComputedStyle(o);return{top:parseInt(i["margin-top"],10),bottom:parseInt(i["margin-bottom"],10),left:parseInt(i["margin-left"],10),right:parseInt(i["margin-right"],10)}}e.getMargin=d;function t(o){var i=window.getComputedStyle(o);return{top:parseInt(i["padding-top"],10)+parseInt(i["border-top-width"],10),bottom:parseInt(i["padding-bottom"],10)+parseInt(i["border-bottom-width"],10),left:parseInt(i["padding-left"],10)+parseInt(i["border-left-width"],10),right:parseInt(i["padding-right"],10)+parseInt(i["border-right-width"],10)}}e.getPaddingAndBorder=t;function a(o,i,u){var g=u?-1:1;o.forEach(function(y,f){return m(y,g*i[f].x,i[f].y)})}e.translateThumbs=a;function l(o,i,u,g){for(var y=0,f=L(o[0],i,u,g),b=1;b<o.length;b++){var S=L(o[b],i,u,g);S<f&&(f=S,y=b)}return y}e.getClosestThumbIndex=l;function m(o,i,u){o.style.transform="translate(".concat(i,"px, ").concat(u,"px)")}e.translate=m;var v=function(o){var i=[],u=null,g=function(){for(var y=[],f=0;f<arguments.length;f++)y[f]=arguments[f];i=y,!u&&(u=requestAnimationFrame(function(){u=null,o.apply(void 0,i)}))};return g};e.schd=v;function x(o,i,u){var g=o.slice(0);return g[i]=u,g}e.replaceAt=x;function C(o){var i=o.values,u=o.colors,g=o.min,y=o.max,f=o.direction,b=f===void 0?s.Direction.Right:f,S=o.rtl,j=S===void 0?!1:S;j&&b===s.Direction.Right?b=s.Direction.Left:j&&s.Direction.Left&&(b=s.Direction.Right);var I=i.slice(0).sort(function(z,X){return z-X}).map(function(z){return(z-g)/(y-g)*100}),U=I.reduce(function(z,X,P){return"".concat(z,", ").concat(u[P]," ").concat(X,"%, ").concat(u[P+1]," ").concat(X,"%")},"");return"linear-gradient(".concat(b,", ").concat(u[0]," 0%").concat(U,", ").concat(u[u.length-1]," 100%)")}e.getTrackBackground=C;function k(){}e.voidFn=k;function O(o){throw new Error("Didn't expect to get here")}e.assertUnreachable=O;var E=function(o,i,u,g,y){y===void 0&&(y=function(b){return b});var f=Math.ceil(r([o],Array.from(o.children),!0).reduce(function(b,S){var j=Math.ceil(S.getBoundingClientRect().width);if(S.innerText&&S.innerText.includes(u)&&S.childElementCount===0){var I=S.cloneNode(!0);I.innerHTML=y(i.toFixed(g)),I.style.visibility="hidden",document.body.appendChild(I),j=Math.ceil(I.getBoundingClientRect().width),document.body.removeChild(I)}return j>b?j:b},o.getBoundingClientRect().width));return f},B=function(o,i,u,g,y,f,b){b===void 0&&(b=function(I){return I});var S=[],j=function(I){var U=E(u[I],g[I],y,f,b),z=i[I].x;i.forEach(function(X,P){var $=X.x,Q=E(u[P],g[P],y,f,b);I!==P&&(z>=$&&z<=$+Q||z+U>=$&&z+U<=$+Q)&&(S.includes(P)||(S.push(I),S.push(P),S=r(r([],S,!0),[I,P],!1),j(P)))})};return j(o),Array.from(new Set(S.sort()))},M=function(o,i,u,g,y,f){g===void 0&&(g=.1),y===void 0&&(y=" - "),f===void 0&&(f=function(P){return P});var b=(0,e.getStepDecimals)(g),S=(0,n.useState)({}),j=S[0],I=S[1],U=(0,n.useState)(f(i[u].toFixed(b))),z=U[0],X=U[1];return(0,n.useEffect)(function(){if(o){var P=o.getThumbs();if(P.length<1)return;var $={},Q=o.getOffsets(),re=B(u,Q,P,i,y,b,f),de=f(i[u].toFixed(b));if(re.length){var ee=re.reduce(function(te,ue,ge,me){return te.length?r(r([],te,!0),[Q[me[ge]].x],!1):[Q[me[ge]].x]},[]);if(Math.min.apply(Math,ee)===Q[u].x){var fe=[];re.forEach(function(te){fe.push(i[te].toFixed(b))}),de=Array.from(new Set(fe.sort(function(te,ue){return parseFloat(te)-parseFloat(ue)}))).map(f).join(y);var he=Math.min.apply(Math,ee),pe=Math.max.apply(Math,ee),Ee=P[re[ee.indexOf(pe)]].getBoundingClientRect().width;$.left="".concat(Math.abs(he-(pe+Ee))/2,"px"),$.transform="translate(-50%, 0)"}else $.visibility="hidden"}X(de),I($)}},[o,i]),[z,j]};e.useThumbOverlap=M;function L(o,i,u,g){var y=o.getBoundingClientRect(),f=y.left,b=y.top,S=y.width,j=y.height;return F(g)?Math.abs(u-(b+j/2)):Math.abs(i-(f+S/2))}var N=function(){var o,i=((o=navigator.userAgentData)===null||o===void 0?void 0:o.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(i)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};e.isIOS=N})(be)),be}var He;function Bt(){if(He)return H;He=1;var e=H&&H.__extends||(function(){var D=function(T,d){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(t[l]=a[l])},D(T,d)};return function(T,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");D(T,d);function t(){this.constructor=T}T.prototype=d===null?Object.create(d):(t.prototype=d.prototype,new t)}})(),r=H&&H.__createBinding||(Object.create?function(D,T,d,t){t===void 0&&(t=d);var a=Object.getOwnPropertyDescriptor(T,d);(!a||("get"in a?!T.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return T[d]}}),Object.defineProperty(D,t,a)}:function(D,T,d,t){t===void 0&&(t=d),D[t]=T[d]}),n=H&&H.__setModuleDefault||(Object.create?function(D,T){Object.defineProperty(D,"default",{enumerable:!0,value:T})}:function(D,T){D.default=T}),s=H&&H.__importStar||function(D){if(D&&D.__esModule)return D;var T={};if(D!=null)for(var d in D)d!=="default"&&Object.prototype.hasOwnProperty.call(D,d)&&r(T,D,d);return n(T,D),T},h=H&&H.__spreadArray||function(D,T,d){if(d||arguments.length===2)for(var t=0,a=T.length,l;t<a;t++)(l||!(t in T))&&(l||(l=Array.prototype.slice.call(T,0,t)),l[t]=T[t]);return D.concat(l||Array.prototype.slice.call(T))};Object.defineProperty(H,"__esModule",{value:!0});var w=s(Ge),c=We(),p=Ce(),V=["ArrowRight","ArrowUp","k","PageUp"],F=["ArrowLeft","ArrowDown","j","PageDown"],_=(function(D){e(T,D);function T(d){var t=D.call(this,d)||this;if(t.trackRef=w.createRef(),t.thumbRefs=[],t.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(t.props.values.length).fill(0).map(function(a,l){return l}),isChanged:!1,markOffsets:[]},t.getOffsets=function(){var a=t.props,l=a.direction,m=a.values,v=a.min,x=a.max,C=t.trackRef.current;if(!C)return console.warn("No track element found."),[];var k=C.getBoundingClientRect(),O=(0,c.getPaddingAndBorder)(C);return t.getThumbs().map(function(E,B){var M={x:0,y:0},L=E.getBoundingClientRect(),N=(0,c.getMargin)(E);switch(l){case p.Direction.Right:return M.x=(N.left+O.left)*-1,M.y=((L.height-k.height)/2+O.top)*-1,M.x+=k.width*(0,c.relativeValue)(m[B],v,x)-L.width/2,M;case p.Direction.Left:return M.x=(N.right+O.right)*-1,M.y=((L.height-k.height)/2+O.top)*-1,M.x+=k.width-k.width*(0,c.relativeValue)(m[B],v,x)-L.width/2,M;case p.Direction.Up:return M.x=((L.width-k.width)/2+N.left+O.left)*-1,M.y=-O.left,M.y+=k.height-k.height*(0,c.relativeValue)(m[B],v,x)-L.height/2,M;case p.Direction.Down:return M.x=((L.width-k.width)/2+N.left+O.left)*-1,M.y=-O.left,M.y+=k.height*(0,c.relativeValue)(m[B],v,x)-L.height/2,M;default:return(0,c.assertUnreachable)(l)}})},t.getThumbs=function(){return t.trackRef&&t.trackRef.current?Array.from(t.trackRef.current.children).filter(function(a){return a.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},t.getTargetIndex=function(a){return t.getThumbs().findIndex(function(l){return l===a.target||l.contains(a.target)})},t.addTouchEvents=function(a){document.addEventListener("touchmove",t.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",t.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",t.schdOnEnd,{passive:!1})},t.addMouseEvents=function(a){document.addEventListener("mousemove",t.schdOnMouseMove),document.addEventListener("mouseup",t.schdOnEnd)},t.onMouseDownTrack=function(a){var l;if(!(a.button!==0||(0,c.isIOS)()))if(a.persist(),a.preventDefault(),t.addMouseEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(v){var x;return(x=v.current)===null||x===void 0?void 0:x.contains(a.target)}))return;t.setState({draggedTrackPos:[a.clientX,a.clientY]},function(){return t.onMove(a.clientX,a.clientY)})}else{var m=(0,c.getClosestThumbIndex)(t.thumbRefs.map(function(v){return v.current}),a.clientX,a.clientY,t.props.direction);(l=t.thumbRefs[m].current)===null||l===void 0||l.focus(),t.setState({draggedThumbIndex:m},function(){return t.onMove(a.clientX,a.clientY)})}},t.onResize=function(){(0,c.translateThumbs)(t.getThumbs(),t.getOffsets(),t.props.rtl),t.calculateMarkOffsets()},t.onTouchStartTrack=function(a){var l;if(a.persist(),t.addTouchEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(v){var x;return(x=v.current)===null||x===void 0?void 0:x.contains(a.target)}))return;t.setState({draggedTrackPos:[a.touches[0].clientX,a.touches[0].clientY]},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}else{var m=(0,c.getClosestThumbIndex)(t.thumbRefs.map(function(v){return v.current}),a.touches[0].clientX,a.touches[0].clientY,t.props.direction);(l=t.thumbRefs[m].current)===null||l===void 0||l.focus(),t.setState({draggedThumbIndex:m},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}},t.onMouseOrTouchStart=function(a){if(!t.props.disabled){var l=(0,c.isTouchEvent)(a);if(!(!l&&a.button!==0)){var m=t.getTargetIndex(a);m!==-1&&(l?t.addTouchEvents(a):t.addMouseEvents(a),t.setState({draggedThumbIndex:m,thumbZIndexes:t.state.thumbZIndexes.map(function(v,x){return x===m?Math.max.apply(Math,t.state.thumbZIndexes):v<=t.state.thumbZIndexes[m]?v:v-1})}))}}},t.onMouseMove=function(a){a.preventDefault(),t.onMove(a.clientX,a.clientY)},t.onTouchMove=function(a){a.preventDefault(),t.onMove(a.touches[0].clientX,a.touches[0].clientY)},t.onKeyDown=function(a){var l=t.props,m=l.values,v=l.onChange,x=l.step,C=l.rtl,k=l.direction,O=t.state.isChanged,E=t.getTargetIndex(a.nativeEvent),B=C||k===p.Direction.Left||k===p.Direction.Down?-1:1;E!==-1&&(V.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:E,isChanged:!0}),v((0,c.replaceAt)(m,E,t.normalizeValue(m[E]+B*(a.key==="PageUp"?x*10:x),E)))):F.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:E,isChanged:!0}),v((0,c.replaceAt)(m,E,t.normalizeValue(m[E]-B*(a.key==="PageDown"?x*10:x),E)))):a.key==="Tab"?t.setState({draggedThumbIndex:-1},function(){O&&t.fireOnFinalChange()}):O&&t.fireOnFinalChange())},t.onKeyUp=function(a){var l=t.state.isChanged;t.setState({draggedThumbIndex:-1},function(){l&&t.fireOnFinalChange()})},t.onMove=function(a,l){var m=t.state,v=m.draggedThumbIndex,x=m.draggedTrackPos,C=t.props,k=C.direction,O=C.min,E=C.max,B=C.onChange,M=C.values,L=C.step,N=C.rtl;if(v===-1&&x[0]===-1&&x[1]===-1)return null;var o=t.trackRef.current;if(!o)return null;var i=o.getBoundingClientRect(),u=(0,c.isVertical)(k)?i.height:i.width;if(x[0]!==-1&&x[1]!==-1){var g=a-x[0],y=l-x[1],f=0;switch(k){case p.Direction.Right:case p.Direction.Left:f=g/u*(E-O);break;case p.Direction.Down:case p.Direction.Up:f=y/u*(E-O);break;default:(0,c.assertUnreachable)(k)}if(N&&(f*=-1),Math.abs(f)>=L/2){for(var b=0;b<t.thumbRefs.length;b++){if(M[b]===E&&Math.sign(f)===1||M[b]===O&&Math.sign(f)===-1)return;var S=M[b]+f;S>E?f=E-M[b]:S<O&&(f=O-M[b])}for(var j=M.slice(0),b=0;b<t.thumbRefs.length;b++)j=(0,c.replaceAt)(j,b,t.normalizeValue(M[b]+f,b));t.setState({draggedTrackPos:[a,l]}),B(j)}}else{var I=0;switch(k){case p.Direction.Right:I=(a-i.left)/u*(E-O)+O;break;case p.Direction.Left:I=(u-(a-i.left))/u*(E-O)+O;break;case p.Direction.Down:I=(l-i.top)/u*(E-O)+O;break;case p.Direction.Up:I=(u-(l-i.top))/u*(E-O)+O;break;default:(0,c.assertUnreachable)(k)}N&&(I=E+O-I),Math.abs(M[v]-I)>=L/2&&B((0,c.replaceAt)(M,v,t.normalizeValue(I,v)))}},t.normalizeValue=function(a,l){var m=t.props,v=m.min,x=m.max,C=m.step,k=m.allowOverlap,O=m.values;return(0,c.normalizeValue)(a,l,v,x,C,k,O)},t.onEnd=function(a){if(a.preventDefault(),document.removeEventListener("mousemove",t.schdOnMouseMove),document.removeEventListener("touchmove",t.schdOnTouchMove),document.removeEventListener("mouseup",t.schdOnEnd),document.removeEventListener("touchend",t.schdOnEnd),document.removeEventListener("touchcancel",t.schdOnEnd),t.state.draggedThumbIndex===-1&&t.state.draggedTrackPos[0]===-1&&t.state.draggedTrackPos[1]===-1)return null;t.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){t.fireOnFinalChange()})},t.fireOnFinalChange=function(){t.setState({isChanged:!1});var a=t.props,l=a.onFinalChange,m=a.values;l&&l(m)},t.updateMarkRefs=function(a){if(!a.renderMark){t.numOfMarks=void 0,t.markRefs=void 0;return}t.numOfMarks=(a.max-a.min)/t.props.step,t.markRefs=[];for(var l=0;l<t.numOfMarks+1;l++)t.markRefs[l]=w.createRef()},t.calculateMarkOffsets=function(){if(!(!t.props.renderMark||!t.trackRef||!t.numOfMarks||!t.markRefs||t.trackRef.current===null)){for(var a=window.getComputedStyle(t.trackRef.current),l=parseInt(a.width,10),m=parseInt(a.height,10),v=parseInt(a.paddingLeft,10),x=parseInt(a.paddingTop,10),C=[],k=0;k<t.numOfMarks+1;k++){var O=9999,E=9999;if(t.markRefs[k].current){var B=t.markRefs[k].current.getBoundingClientRect();O=B.height,E=B.width}t.props.direction===p.Direction.Left||t.props.direction===p.Direction.Right?C.push([Math.round(l/t.numOfMarks*k+v-E/2),-Math.round((O-m)/2)]):C.push([Math.round(m/t.numOfMarks*k+x-O/2),-Math.round((E-l)/2)])}t.setState({markOffsets:C})}},d.step===0)throw new Error('"step" property should be a positive number');return t.schdOnMouseMove=(0,c.schd)(t.onMouseMove),t.schdOnTouchMove=(0,c.schd)(t.onTouchMove),t.schdOnEnd=(0,c.schd)(t.onEnd),t.thumbRefs=d.values.map(function(){return w.createRef()}),t.updateMarkRefs(d),t}return T.prototype.componentDidMount=function(){var d=this,t=this.props,a=t.values,l=t.min,m=t.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",d.onResize)},unobserve:function(){return window.removeEventListener("resize",d.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,c.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(v){return(0,c.checkBoundaries)(v,d.props.min,d.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,c.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),a.forEach(function(v){(0,c.isStepDivisible)(l,v,m)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},T.prototype.componentDidUpdate=function(d,t){var a=this.props,l=a.max,m=a.min,v=a.step,x=a.values,C=a.rtl;(d.max!==l||d.min!==m||d.step!==v)&&this.updateMarkRefs(this.props),(0,c.translateThumbs)(this.getThumbs(),this.getOffsets(),C),(d.max!==l||d.min!==m||d.step!==v||t.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),x.forEach(function(k){(0,c.isStepDivisible)(m,k,v)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},T.prototype.componentWillUnmount=function(){var d={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,d),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},T.prototype.render=function(){var d=this,t=this.props,a=t.label,l=t.labelledBy,m=t.renderTrack,v=t.renderThumb,x=t.renderMark,C=x===void 0?function(){return null}:x,k=t.values,O=t.min,E=t.max,B=t.allowOverlap,M=t.disabled,L=this.state,N=L.draggedThumbIndex,o=L.thumbZIndexes,i=L.markOffsets;return m({props:{style:{transform:"scale(1)",cursor:N>-1?"grabbing":this.props.draggableTrack?(0,c.isVertical)(this.props.direction)?"ns-resize":"ew-resize":k.length===1&&!M?"pointer":"inherit"},onMouseDown:M?c.voidFn:this.onMouseDownTrack,onTouchStart:M?c.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:M,children:h(h([],i.map(function(u,g,y){return C({props:{style:d.props.direction===p.Direction.Left||d.props.direction===p.Direction.Right?{position:"absolute",left:"".concat(u[0],"px"),marginTop:"".concat(u[1],"px")}:{position:"absolute",top:"".concat(u[0],"px"),marginLeft:"".concat(u[1],"px")},key:"mark".concat(g),ref:d.markRefs[g]},index:g})}),!0),k.map(function(u,g){var y=d.state.draggedThumbIndex===g;return v({index:g,value:u,isDragged:y,props:{style:{position:"absolute",zIndex:o[g],cursor:M?"inherit":y?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:g,tabIndex:M?void 0:0,"aria-valuemax":B?E:k[g+1]||E,"aria-valuemin":B?O:k[g-1]||O,"aria-valuenow":u,draggable:!1,ref:d.thumbRefs[g],"aria-label":a,"aria-labelledby":l,role:"slider",onKeyDown:M?c.voidFn:d.onKeyDown,onKeyUp:M?c.voidFn:d.onKeyUp}})}),!0)})},T.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:p.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},T})(w.Component);return H.default=_,H}var Xe;function Lt(){return Xe||(Xe=1,(function(e){var r=ve&&ve.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var n=r(Bt());e.Range=n.default;var s=We();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return s.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return s.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return s.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return s.checkValuesAgainstBoundaries}});var h=Ce();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return h.Direction}})})(ve)),ve}var Qe=Lt();function Ye(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),n.push.apply(n,s)}return n}function we(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ye(Object(n),!0).forEach(function(s){Pt(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function Pt(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var Te=Z("div",{position:"relative",width:"100%"});Te.displayName="Root";Te.displayName="Root";Te.displayName="StyledRoot";var xe=Z("div",function(e){var r=e.$theme,n=e.$value,s=n===void 0?[]:n,h=e.$disabled,w=e.$isDragged,c=r.sizing,p="inherit";return h?p="not-allowed":w?p="grabbing":s.length===1&&(p="pointer"),{paddingTop:c.scale600,paddingBottom:c.scale600,paddingRight:c.scale600,paddingLeft:c.scale600,display:"flex",cursor:p,backgroundColor:r.colors.sliderTrackFill}});xe.displayName="Track";xe.displayName="Track";xe.displayName="StyledTrack";var ce=Z("div",function(e){var r=e.$theme,n=e.$value,s=n===void 0?[]:n,h=e.$min,w=e.$max,c=e.$disabled,p=r.colors,V=r.borders,F=r.direction,_=r.borders.useRoundedCorners?V.radius100:0;return{borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,background:Qe.getTrackBackground({values:s,colors:s.length===1?[c?p.borderOpaque:p.primary,c?p.backgroundSecondary:p.borderOpaque]:[c?p.backgroundSecondary:p.borderOpaque,c?p.borderOpaque:p.primary,c?p.backgroundSecondary:p.borderOpaque],min:h||0,max:w||0,rtl:F==="rtl"}),height:"2px",width:"100%",alignSelf:"center",cursor:c?"not-allowed":"inherit"}});ce.displayName="InnerTrack";ce.displayName="InnerTrack";ce.displayName="StyledInnerTrack";var ke=Z("div",function(e){return{width:"4px",height:"2px",backgroundColor:e.$theme.colors.backgroundPrimary,marginLeft:"16px"}});ke.displayName="Mark";ke.displayName="Mark";ke.displayName="StyledMark";var Oe=Z("div",function(e){return we(we({},e.$theme.typography.font200),{},{color:e.$theme.colors.contentPrimary})});Oe.displayName="Tick";Oe.displayName="Tick";Oe.displayName="StyledTick";var Me=Z("div",function(e){var r=e.$theme,n=r.sizing;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:n.scale600,paddingLeft:n.scale600,paddingBottom:n.scale400}});Me.displayName="TickBar";Me.displayName="TickBar";Me.displayName="StyledTickBar";var Se=Z("div",function(e){var r=e.$theme,n=e.$value,s=n===void 0?[]:n,h=e.$thumbIndex,w=e.$disabled,c=s.length===2&&h===0,p=s.length===2&&h===1;return r.direction==="rtl"&&(p||c)&&(c=!c,p=!p),{height:"24px",width:"24px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:w?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleFill,outline:"none",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(r.colors.accent):"0 1px 4px rgba(0, 0, 0, 0.12)",cursor:w?"not-allowed":"inherit"}});Se.displayName="Thumb";Se.displayName="Thumb";Se.displayName="StyledThumb";var De=Z("div",function(e){var r=e.$disabled,n=e.$theme;return{position:"absolute",top:"-16px",width:"4px",height:"20px",backgroundColor:r?n.colors.sliderHandleFillDisabled:n.colors.sliderHandleInnerFill}});De.displayName="InnerThumb";De.displayName="InnerThumb";De.displayName="StyledInnerThumb";var Re=Z("div",function(e){var r=e.$disabled,n=e.$theme;return we(we({position:"absolute",top:"-".concat(n.sizing.scale1400)},n.typography.font200),{},{backgroundColor:r?n.colors.sliderHandleFillDisabled:n.colors.sliderHandleInnerFill,color:n.colors.contentInversePrimary,paddingLeft:n.sizing.scale600,paddingRight:n.sizing.scale600,paddingTop:n.sizing.scale500,paddingBottom:n.sizing.scale500,borderBottomLeftRadius:"48px",borderBottomRightRadius:"48px",borderTopLeftRadius:"48px",borderTopRightRadius:"48px",whiteSpace:"nowrap"})});Re.displayName="ThumbValue";Re.displayName="ThumbValue";Re.displayName="StyledThumbValue";function qe(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),n.push.apply(n,s)}return n}function $t(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?qe(Object(n),!0).forEach(function(s){At(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function At(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},K.apply(this,arguments)}function q(e,r){return _t(e)||zt(e,r)||Ft(e,r)||Vt()}function Vt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ft(e,r){if(e){if(typeof e=="string")return Ke(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ke(e,r)}}function Ke(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,s=new Array(r);n<r;n++)s[n]=e[n];return s}function zt(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var s=[],h=!0,w=!1,c,p;try{for(n=n.call(e);!(h=(c=n.next()).done)&&(s.push(c.value),!(r&&s.length===r));h=!0);}catch(V){w=!0,p=V}finally{try{!h&&n.return!=null&&n.return()}finally{if(w)throw p}}return s}}function _t(e){if(Array.isArray(e))return e}var Nt=function(e){if(e.length>2||e.length===0)throw new Error("the value prop represents positions of thumbs, so its length can be only one or two");return e};function Ut(e){var r=e.overrides,n=r===void 0?{}:r,s=e.disabled,h=s===void 0?!1:s,w=e.marks,c=w===void 0?!1:w,p=e.onChange,V=p===void 0?function(){}:p,F=e.onFinalChange,_=F===void 0?function(){}:F,D=e.min,T=D===void 0?0:D,d=e.max,t=d===void 0?100:d,a=e.step,l=a===void 0?1:a,m=e.persistentThumb,v=m===void 0?!1:m,x=e.valueToLabel,C=x===void 0?function(A){return A}:x,k=e.value,O=R.useContext(xt),E=R.useState(!1),B=q(E,2),M=B[0],L=B[1],N=R.useState(!1),o=q(N,2),i=o[0],u=o[1],g=R.useState(!1),y=q(g,2),f=y[0],b=y[1],S=R.useState(-1),j=q(S,2),I=j[0],U=j[1],z=R.useCallback(function(A){kt(A)&&b(!0);var W=A.target.parentNode.firstChild===A.target?0:1;U(W)},[]),X=R.useCallback(function(A){f!==!1&&b(!1),U(-1)},[]),P=Nt(k),$={$disabled:h,$step:l,$min:T,$max:t,$marks:c,$value:P,$isFocusVisible:f},Q=J(n.Root,Te),re=q(Q,2),de=re[0],ee=re[1],fe=J(n.Track,xe),he=q(fe,2),pe=he[0],Ee=he[1],te=J(n.InnerTrack,ce),ue=q(te,2),ge=ue[0],me=ue[1],tt=J(n.Thumb,Se),Be=q(tt,2),rt=Be[0],nt=Be[1],at=J(n.InnerThumb,De),Le=q(at,2),ot=Le[0],it=Le[1],st=J(n.ThumbValue,Re),Pe=q(st,2),ut=Pe[0],lt=Pe[1],ct=J(n.Tick,Oe),$e=q(ct,2),Ae=$e[0],Ve=$e[1],dt=J(n.TickBar,Me),Fe=q(dt,2),ft=Fe[0],ht=Fe[1],pt=J(n.Mark,ke),ze=q(pt,2),gt=ze[0],mt=ze[1];return R.createElement(de,K({"data-baseweb":"slider"},$,ee,{onFocus:Mt(ee,z),onBlur:Ot(ee,X)}),R.createElement(Qe.Range,K({step:l,min:T,max:t,values:P,disabled:h,onChange:function(A){return V({value:A})},onFinalChange:function(A){return _({value:A})},rtl:O.direction==="rtl",renderTrack:function(A){var W=A.props,Y=A.children,ne=A.isDragged;return R.createElement(pe,K({onMouseDown:W.onMouseDown,onTouchStart:W.onTouchStart,$isDragged:ne},$,Ee),R.createElement(ge,K({$isDragged:ne,ref:W.ref},$,me),Y))},renderThumb:function(A){var W=A.props,Y=A.index,ne=A.isDragged,_e=v||(!!Y&&i||!Y&&M||ne)&&!h;return R.createElement(rt,K({},W,{onMouseEnter:function(){Y===0?L(!0):u(!0)},onMouseLeave:function(){Y===0?L(!1):u(!1)},$thumbIndex:Y,$isDragged:ne,style:$t({},W.style)},$,nt,{$isFocusVisible:f&&I===Y}),_e&&R.createElement(ut,K({$thumbIndex:Y,$isDragged:ne},$,lt),C(P[Y])),_e&&R.createElement(ot,K({$thumbIndex:Y,$isDragged:ne},$,it)))}},c?{renderMark:function(A){var W=A.props,Y=A.index;return R.createElement(gt,K({$markIndex:Y},W,$,mt))}}:{})),R.createElement(ft,K({},$,ht),R.createElement(Ae,K({},$,Ve),C(T)),R.createElement(Ae,K({},$,Ve),C(t))))}const Ht=se("div",{target:"ew7r33m5"})({name:"igqoeg",styles:"position:relative;:focus-within:has(:focus-visible){--slider-focused:1;}"}),Xt=se("div",{target:"ew7r33m4"})(({disabled:e,theme:r,isDragged:n})=>({alignItems:"center",backgroundColor:e?r.colors.gray60:r.colors.primary,borderTopLeftRadius:"100%",borderTopRightRadius:"100%",borderBottomLeftRadius:"100%",borderBottomRightRadius:"100%",borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",display:"flex",justifyContent:"center",height:r.sizes.sliderThumb,width:r.sizes.sliderThumb,boxShadow:n?r.shadows.focusRing:r.shadows.none,":focus":{outline:"none"},":focus-visible":{boxShadow:r.shadows.focusRing}}),""),Yt=se("div",{target:"ew7r33m3"})(({disabled:e,theme:r})=>({fontFamily:r.genericFonts.bodyFont,fontSize:r.fontSizes.sm,color:e?r.colors.gray60:r.colors.primary,top:"-1.6em",position:"absolute",whiteSpace:"nowrap",backgroundColor:r.colors.transparent,lineHeight:r.lineHeights.base,fontWeight:r.fontWeights.normal,pointerEvents:"none"}),""),qt=se("div",{target:"ew7r33m2"})({name:"82a6rk",styles:"flex:1"}),Kt=se("div",{target:"ew7r33m1"})(({theme:e})=>({position:"absolute",height:e.spacing.twoXS,left:`calc(${e.sizes.sliderThumb} / 2)`,right:`calc(${e.sizes.sliderThumb} / 2)`}),""),Gt=se("div",{target:"ew7r33m0"})(({theme:e,isHovered:r,isDisabled:n})=>({position:"absolute",left:0,right:0,top:"100%",display:"flex",justifyContent:"space-between",pointerEvents:"none",marginTop:`-${e.spacing.md}`,fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.base,fontWeight:e.fontWeights.normal,color:n?e.colors.fadedText40:e.colors.fadedText60,opacity:r?1:"var(--slider-focused, 0)",transition:r?"none":"opacity 300ms 200ms"}),"");function Wt({minLabel:e,maxLabel:r,isHovered:n,isDisabled:s}){return G.jsxs(Gt,{"data-testid":"stSliderTickBar",isHovered:n,isDisabled:s,children:[G.jsx(Ie,{source:e,allowHTML:!1,inheritFont:!0,isLabel:!0}),G.jsx(Ie,{source:r,allowHTML:!1,inheritFont:!0,isLabel:!0})]})}function ie(e){return e.type===oe.Type.SELECT_SLIDER}function je(e,r,n){return e.map((s,h)=>{const w=r.indexOf(s);return w>=0?w:n[h]??0})}function Je(e,r){return e.map(n=>r[n]??"")}function Qt({disabled:e,element:r,widgetMgr:n,fragmentId:s}){const h=r.queryParamKey?{paramKey:r.queryParamKey,valueType:ie(r)?"string_array_value":"double_array_value",clearable:!1,urlFormat:"repeated",urlDefault:ie(r)?Je(r.default,r.options):void 0,dateType:Ze(r)?et(r):void 0}:void 0,[w,c]=It({getStateFromWidgetMgr:Jt,getDefaultStateFromProto:Zt,getCurrStateFromProto:er,updateWidgetMgrState:tr,element:r,widgetMgr:n,fragmentId:s,formClearBehavior:"resetValueOnly",queryParamBinding:h}),[p,V]=R.useState(w),[F,_]=R.useState(!1),[D,T]=R.useState(!1),d=R.useCallback(()=>_(!0),[]),t=R.useCallback(()=>_(!1),[]),a=R.useRef(null),[l]=R.useState([]),[m]=R.useState([]),v=vt(),x=R.useRef(r);x.current=r;const C=p.map(o=>ye(o,r)),k=ye(r.min,r),O=ye(r.max,r);R.useEffect(()=>{V(w)},[w]),bt(()=>{if(!ie(r))return;const o=n.getStringArrayValue(r);if(o===void 0)return;const i=je(o,r.options,r.default);V(i)},[r.options],(o,i)=>yt(o[0],i[0]));const E=R.useCallback(({value:o})=>{c({value:o,fromUi:!0}),T(!1)},[c]),B=R.useCallback(({value:o})=>{V(o),T(!0)},[]),M=R.useCallback(R.forwardRef(function(o,i){const{$thumbIndex:u,$value:g}=o,y=u||0;l[y]=i,m[y]||=R.createRef();const f=wt(o,["role","style","aria-valuemax","aria-valuemin","aria-valuenow","tabIndex","onKeyUp","onKeyDown","onMouseEnter","onMouseLeave","draggable"]),b=x.current,S=(g??[b.min])[y]??b.min,j=ye(S,b);return G.jsx(Xt,{...f,disabled:o.$disabled===!0,isDragged:o.$isDragged===!0,ref:l[y],"aria-valuetext":j,"aria-label":b.label,children:G.jsx(Yt,{"data-testid":"stSliderThumbValue",disabled:o.$disabled===!0,ref:m[y],children:G.jsx(Ie,{source:j,allowHTML:!1,inheritFont:!0,isLabel:!0})})})}),[]);R.useLayoutEffect(()=>{l.forEach((f,b)=>{f.current&&f.current.setAttribute("aria-valuetext",C[b])});const o=a.current??null,i=l[0].current,u=l[1]?.current,g=m[0].current,y=m[1]?.current;nr(o,i,u,g,y)});const L=R.useCallback(({$disabled:o})=>({height:v.spacing.twoXS,...o?{background:v.colors.darkenedBgMix25}:{}}),[v.colors.darkenedBgMix25,v.spacing.twoXS]),N=R.useCallback(R.forwardRef(function(o,i){const{children:u,...g}=o;return G.jsxs(qt,{children:[G.jsx(Kt,{ref:i,children:u}),G.jsx(ce,{...g,style:L({$disabled:o.$disabled})})]})}),[]);return G.jsxs(Ht,{ref:a,className:"stSlider","data-testid":"stSlider",onMouseEnter:d,onMouseLeave:t,children:[G.jsx(Rt,{label:r.label,disabled:e,labelVisibility:Tt(r.labelVisibility?.value),children:r.help&&G.jsx(Et,{content:r.help,label:r.label})}),G.jsx(Ut,{min:r.min,max:r.max,step:r.step,value:rr(p,r),onChange:B,onFinalChange:E,disabled:e,overrides:{Thumb:M,Track:{style:{backgroundColor:"none !important",paddingLeft:v.spacing.none,paddingRight:v.spacing.none,paddingTop:`calc((${v.sizes.minElementHeight} - ${v.spacing.twoXS}) / 2)`,paddingBottom:`calc((${v.sizes.minElementHeight} - ${v.spacing.twoXS}) / 2)`}},InnerTrack:N,TickBar:{component:Wt,props:{minLabel:k,maxLabel:O,isHovered:F||D,isDisabled:e}}}})]})}function Jt(e,r){if(ie(r)){const n=e.getStringArrayValue(r);return n===void 0?void 0:je(n,r.options,r.default)}return e.getDoubleArrayValue(r)}function Zt(e){return e.default}function er(e){if(ie(e)){const r=e.rawValue;return r&&r.length>0?je(r,e.options,e.default):e.default}return e.value}function tr(e,r,n,s){if(ie(e)){const h=Je(n.value,e.options);r.setStringArrayValue(e,h,{fromUi:n.fromUi},s)}else r.setDoubleArrayValue(e,n.value,{fromUi:n.fromUi},s)}function Ze(e){const{dataType:r}=e;return r===oe.DataType.DATETIME||r===oe.DataType.DATE||r===oe.DataType.TIME}function et(e){const{dataType:r}=e;return r===oe.DataType.DATE?"date":r===oe.DataType.TIME?"time":"datetime"}function ye(e,r){const{format:n,options:s}=r;if(s.length>0)return s[e]??"";if(Ze(r)){const h=St.utc(e/1e3);return Ct(h,n,et(r))}return jt(e,n)}function rr(e,r){const{min:n,max:s}=r;let h=e[0],w=e.length>1?e[1]:e[0];return h>w&&(h=w),h<n&&(h=n),h>s&&(h=s),w<n&&(w=n),w>s&&(w=s),e.length>1?[h,w]:[h]}function nr(e,r,n,s,h){!e||!r||!s||(ae(e,r,s),n&&h&&(ae(e,n,h),ar(e,r,n,s,h)))}function ae(e,r,n){const s=e.getBoundingClientRect(),h=r.getBoundingClientRect(),w=n.getBoundingClientRect(),c=h.left+h.width/2,p=c-w.width/2<s.left,V=c+w.width/2>s.right;n.style.left=p?"0":"",n.style.right=V?"0":""}function ar(e,r,n,s,h){const w=e.getBoundingClientRect(),c=r.getBoundingClientRect(),p=n.getBoundingClientRect(),V=s.getBoundingClientRect(),F=h.getBoundingClientRect(),_=w.left+w.width/2,D=c.left+c.width/2,T=p.left+p.width/2,d=D-V.width/2>=w.left,t=T+F.width/2<=w.right,a=c.left-V.width>=w.left,l=p.right+F.width<=w.right,m=d?V.width/2:V.width,v=t?F.width/2:F.width,x=D+m;if(T-v-x>24){ae(e,r,s),ae(e,n,h);return}if(a&&l){s.style.left="",s.style.right=`${Math.round(c.width)}px`,h.style.left=`${Math.round(p.width)}px`,h.style.right="";return}D<_?(ae(e,r,s),h.style.left=`${Math.round(D+m+24-T)}px`,h.style.right=""):(ae(e,n,h),s.style.left="",s.style.right=`${-Math.round(T-v-24-D)}px`)}const mr=Dt(R.memo(Qt));export{mr as default};
|