streamlit-nightly 1.42.3.dev20250224__py2.py3-none-any.whl → 1.42.3.dev20250226__py2.py3-none-any.whl

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.
Files changed (99) hide show
  1. streamlit/config.py +11 -4
  2. streamlit/elements/arrow.py +16 -8
  3. streamlit/elements/widgets/chat.py +99 -17
  4. streamlit/elements/widgets/data_editor.py +12 -7
  5. streamlit/elements/widgets/file_uploader.py +20 -10
  6. streamlit/proto/ClientState_pb2.py +5 -3
  7. streamlit/proto/ClientState_pb2.pyi +29 -2
  8. streamlit/proto/NewSession_pb2.py +16 -16
  9. streamlit/proto/NewSession_pb2.pyi +9 -9
  10. streamlit/runtime/app_session.py +5 -0
  11. streamlit/runtime/caching/hashing.py +67 -5
  12. streamlit/runtime/context.py +19 -0
  13. streamlit/runtime/scriptrunner/script_runner.py +2 -0
  14. streamlit/runtime/scriptrunner_utils/script_requests.py +7 -1
  15. streamlit/runtime/scriptrunner_utils/script_run_context.py +4 -0
  16. streamlit/static/index.html +1 -1
  17. streamlit/static/static/js/{FileDownload.esm.Db6P60XC.js → FileDownload.esm.CWn5B5ZN.js} +1 -1
  18. streamlit/static/static/js/{FileHelper.LHDgAkEu.js → FileHelper.Bii_mi1A.js} +1 -1
  19. streamlit/static/static/js/{FormClearHelper.BkPbs0OF.js → FormClearHelper.BlCIuWCo.js} +1 -1
  20. streamlit/static/static/js/{Hooks.CW1Ujj-E.js → Hooks.DURid8_V.js} +1 -1
  21. streamlit/static/static/js/{InputInstructions.CHpHVupe.js → InputInstructions.gFFpIc6i.js} +1 -1
  22. streamlit/static/static/js/{ProgressBar.CSZV-k_M.js → ProgressBar.CtXtbXhv.js} +1 -1
  23. streamlit/static/static/js/{RenderInPortalIfExists.CrI9B0Qh.js → RenderInPortalIfExists.DKWNQmbm.js} +1 -1
  24. streamlit/static/static/js/{Toolbar.CfNF-56q.js → Toolbar.CKKwksQV.js} +1 -1
  25. streamlit/static/static/js/{base-input.BBFJwxWO.js → base-input.BUY9TLqO.js} +3 -3
  26. streamlit/static/static/js/checkbox.C4L_5Z9H.js +9 -0
  27. streamlit/static/static/js/{createSuper.rz8EjYR0.js → createSuper.DprEKsA6.js} +1 -1
  28. streamlit/static/static/js/data-grid-overlay-editor.BArvtwSg.js +1 -0
  29. streamlit/static/static/js/{downloader.DEY2_Oao.js → downloader.C5pxkE2v.js} +1 -1
  30. streamlit/static/static/js/{es6.Cbt8Qb0v.js → es6.DmKjMqyQ.js} +2 -2
  31. streamlit/static/static/js/{iframeResizer.contentWindow.DlY1zPt7.js → iframeResizer.contentWindow.DhqbXIl1.js} +1 -1
  32. streamlit/static/static/js/{index.LmMDdxLh.js → index.B-S4HX7x.js} +1 -1
  33. streamlit/static/static/js/{index.InwDjRN5.js → index.B-vrwvgD.js} +1 -1
  34. streamlit/static/static/js/index.BAfr2RC0.js +3865 -0
  35. streamlit/static/static/js/index.BCErGZwr.js +1 -0
  36. streamlit/static/static/js/{index.Bv1JbhEf.js → index.BEnZZwfW.js} +1 -1
  37. streamlit/static/static/js/{index.CUepHEom.js → index.BSczaRDm.js} +1 -1
  38. streamlit/static/static/js/{index.BtBNIxWC.js → index.BUnWa5Cg.js} +1 -1
  39. streamlit/static/static/js/{index.BFFhpOhV.js → index.BVHfAEko.js} +1 -1
  40. streamlit/static/static/js/{index.CIDueoC2.js → index.Bds7Anva.js} +1 -1
  41. streamlit/static/static/js/index.Bk3A478D.js +197 -0
  42. streamlit/static/static/js/{index.D2PC_wwi.js → index.BmnSGdtS.js} +1 -1
  43. streamlit/static/static/js/{index.DPZJrrNj.js → index.BoBCblDb.js} +1 -1
  44. streamlit/static/static/js/{index.Bhf5i-o4.js → index.C3l2zbST.js} +1 -1
  45. streamlit/static/static/js/{index.C9kvqGu0.js → index.CTqvpoOz.js} +1 -1
  46. streamlit/static/static/js/{index.DEz7mrAp.js → index.CXpOPWFV.js} +1 -1
  47. streamlit/static/static/js/{index.CjN5S59O.js → index.Cd03IYkG.js} +1 -1
  48. streamlit/static/static/js/{index.C41AtD-D.js → index.ChEJa75P.js} +1 -1
  49. streamlit/static/static/js/{index.DxvQWdtj.js → index.CoQjULdH.js} +18 -18
  50. streamlit/static/static/js/{index.I2Ij_yHL.js → index.CvNhwseQ.js} +1 -1
  51. streamlit/static/static/js/{index.D1sfL1bE.js → index.D2-IYCcZ.js} +1 -1
  52. streamlit/static/static/js/{index.DuUcgXrv.js → index.D2G24Udm.js} +1 -1
  53. streamlit/static/static/js/index.DNr2W0gq.js +1 -0
  54. streamlit/static/static/js/{index.jj20zRA4.js → index.DhcYAj3f.js} +1 -1
  55. streamlit/static/static/js/{index.BcIDRdbw.js → index.DtIKjlNZ.js} +1 -1
  56. streamlit/static/static/js/{index.C3FZ8TOb.js → index.EIkP6R_d.js} +2 -2
  57. streamlit/static/static/js/{index.7HEH_7fJ.js → index.KPwXWqBk.js} +7 -7
  58. streamlit/static/static/js/index.NKOzzX__.js +1 -0
  59. streamlit/static/static/js/{index.B5Q1lb1E.js → index.O5-Wn4Yr.js} +1 -1
  60. streamlit/static/static/js/index.RFfgDsnM.js +2 -0
  61. streamlit/static/static/js/{index.8pg9ijwI.js → index.RrEbViHi.js} +1 -1
  62. streamlit/static/static/js/{index.CUFUpykP.js → index.UE_L1IEZ.js} +2 -2
  63. streamlit/static/static/js/index.WAlW9lgW.js +1 -0
  64. streamlit/static/static/js/{index.CgZ_3VRU.js → index.c_V1HXTs.js} +1 -1
  65. streamlit/static/static/js/{index.Df3vkO_v.js → index.doRPQ8od.js} +1 -1
  66. streamlit/static/static/js/index.oPGa5nFU.js +1 -0
  67. streamlit/static/static/js/{index.D8mp5ppE.js → index.u1gL_Cm_.js} +1 -1
  68. streamlit/static/static/js/{index.LypQPPkP.js → index.xTncca7J.js} +1 -1
  69. streamlit/static/static/js/{input.QeLiGsyn.js → input.EkJ_AsTP.js} +1 -1
  70. streamlit/static/static/js/{memory.0fYVo8Wx.js → memory.BFs17dZE.js} +1 -1
  71. streamlit/static/static/js/{mergeWith.AOqADio_.js → mergeWith.B4u0whL-.js} +1 -1
  72. streamlit/static/static/js/number-overlay-editor.DwazN43x.js +9 -0
  73. streamlit/static/static/js/{possibleConstructorReturn.C4RsC1R8.js → possibleConstructorReturn.CZfYLVBb.js} +1 -1
  74. streamlit/static/static/js/{sandbox.DT2p3KTe.js → sandbox.PjijA1v1.js} +1 -1
  75. streamlit/static/static/js/{textarea.DQh9RYKV.js → textarea.BGGnQXtw.js} +1 -1
  76. streamlit/static/static/js/{timepicker.Br_cR0hi.js → timepicker.eLEnk1tw.js} +1 -1
  77. streamlit/static/static/js/{toConsumableArray.CzYSWELu.js → toConsumableArray.CgKj9NUY.js} +1 -1
  78. streamlit/static/static/js/uniqueId.CPmOGhdZ.js +1 -0
  79. streamlit/static/static/js/{useBasicWidgetState.6R32QW2v.js → useBasicWidgetState.Bw_fxTtX.js} +1 -1
  80. streamlit/static/static/js/{useOnInputChange.C4OiWI1_.js → useOnInputChange.D8qi7pm4.js} +1 -1
  81. streamlit/static/static/js/{withFullScreenWrapper.BLeP_b5i.js → withFullScreenWrapper.BjVufR9b.js} +1 -1
  82. streamlit/user_info.py +4 -12
  83. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250226.dist-info}/METADATA +1 -1
  84. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250226.dist-info}/RECORD +88 -87
  85. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250226.dist-info}/WHEEL +1 -1
  86. streamlit/static/static/js/data-grid-overlay-editor.DUagmDpG.js +0 -1
  87. streamlit/static/static/js/index.C29vTftb.js +0 -3865
  88. streamlit/static/static/js/index.CUWXxL_C.js +0 -1
  89. streamlit/static/static/js/index.C_SUbLL7.js +0 -1
  90. streamlit/static/static/js/index.CdiPATR3.js +0 -197
  91. streamlit/static/static/js/index.Con6tiNg.js +0 -1
  92. streamlit/static/static/js/index.DymllY6d.js +0 -2
  93. streamlit/static/static/js/index.G1PSqufB.js +0 -9
  94. streamlit/static/static/js/index.RDHMaPCV.js +0 -1
  95. streamlit/static/static/js/number-overlay-editor.DAvAckzz.js +0 -9
  96. streamlit/static/static/js/uniqueId.BdUnRe3-.js +0 -1
  97. {streamlit_nightly-1.42.3.dev20250224.data → streamlit_nightly-1.42.3.dev20250226.data}/scripts/streamlit.cmd +0 -0
  98. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250226.dist-info}/entry_points.txt +0 -0
  99. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250226.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{n as s,k as i,r as m,j as e}from"./index.7HEH_7fJ.js";import{P as c,R as l}from"./RenderInPortalIfExists.CrI9B0Qh.js";const p=""+new URL("../media/flake-0.DgWaVvm5.png",import.meta.url).href,d=""+new URL("../media/flake-1.B2r5AHMK.png",import.meta.url).href,f=""+new URL("../media/flake-2.BnWSExPC.png",import.meta.url).href,o=150,S=150,g=10,E=90,u=4e3,n=(t,a=0)=>Math.random()*(t-a)+a,w=()=>i(`from{transform:translateY(0)
1
+ import{n as s,k as i,r as m,j as e}from"./index.KPwXWqBk.js";import{P as c,R as l}from"./RenderInPortalIfExists.DKWNQmbm.js";const p=""+new URL("../media/flake-0.DgWaVvm5.png",import.meta.url).href,d=""+new URL("../media/flake-1.B2r5AHMK.png",import.meta.url).href,f=""+new URL("../media/flake-2.BnWSExPC.png",import.meta.url).href,o=150,S=150,g=10,E=90,u=4e3,n=(t,a=0)=>Math.random()*(t-a)+a,w=()=>i(`from{transform:translateY(0)
2
2
  rotateX(`,n(360),`deg)
3
3
  rotateY(`,n(360),`deg)
4
4
  rotateZ(`,n(360),"deg);}to{transform:translateY(calc(100vh + ",o,`px))
@@ -1 +1 @@
1
- import{n as e,r as a,B as t,j as r,aC as o}from"./index.7HEH_7fJ.js";import{P as i}from"./ProgressBar.CSZV-k_M.js";const l=e("div",{target:"e1675qd10"})(({theme:s})=>({paddingBottom:s.spacing.sm,lineHeight:"normal"}));function n({element:s}){return t("div",{className:"stProgress","data-testid":"stProgress",children:[r(l,{children:r(o,{source:s.text,allowHTML:!1,isLabel:!0})}),r(i,{value:s.value})]})}const m=a.memo(n);export{m as default};
1
+ import{n as e,r as a,B as t,j as r,aC as o}from"./index.KPwXWqBk.js";import{P as i}from"./ProgressBar.CtXtbXhv.js";const l=e("div",{target:"e1675qd10"})(({theme:s})=>({paddingBottom:s.spacing.sm,lineHeight:"normal"}));function n({element:s}){return t("div",{className:"stProgress","data-testid":"stProgress",children:[r(l,{children:r(o,{source:s.text,allowHTML:!1,isLabel:!0})}),r(i,{value:s.value})]})}const m=a.memo(n);export{m as default};
@@ -1 +1 @@
1
- import{n as R,r,y as M,c1 as T,c2 as W,B as C,j as l,bs as V,bF as L,bt as O,ba as P,bu as k,c0 as B,c3 as E,bY as N,c4 as $,bD as F}from"./index.7HEH_7fJ.js";import{a as A}from"./useBasicWidgetState.6R32QW2v.js";import"./FormClearHelper.BkPbs0OF.js";const D=R("div",{target:"euzcfsp0"})(({theme:s})=>({"span[aria-disabled='true']":{background:s.colors.fadedText05}})),H=(s,t)=>s.getIntArrayValue(t),U=s=>s.default??null,j=s=>s.value??null,G=(s,t,a,u)=>{t.setIntArrayValue(s,a.value,{fromUi:a.fromUi},u)},K=s=>{var S;const{element:t,widgetMgr:a,fragmentId:u}=s,e=M(),[n,g]=A({getStateFromWidgetMgr:H,getDefaultStateFromProto:U,getCurrStateFromProto:j,updateWidgetMgrState:G,element:t,widgetMgr:a,fragmentId:u}),m=t.maxSelections>0&&n.length>=t.maxSelections,y=r.useMemo(()=>{if(t.maxSelections===0)return"No results";if(n.length===t.maxSelections){const o=t.maxSelections!==1?"options":"option";return`You can only select up to ${t.maxSelections} ${o}. Remove an option first.`}return"No results"},[t.maxSelections,n.length]),f=r.useMemo(()=>n.map(o=>{const i=t.options[o];return{value:o.toString(),label:i}}),[t.options,n]),h=r.useCallback(o=>{const i=()=>{var d;const p=(d=o.option)==null?void 0:d.value;return parseInt(p,10)};switch(o.type){case"remove":return T(n,i());case"clear":return[];case"select":return n.concat([i()]);default:throw new Error(`State transition is unknown: ${o.type}`)}},[n]),v=r.useCallback(o=>{t.maxSelections&&o.type==="select"&&n.length>=t.maxSelections||g({value:h(o),fromUi:!0})},[t.maxSelections,h,g,n.length]),x=r.useCallback((o,i)=>{if(m)return[];const p=o.filter(d=>!n.includes(Number(d.value)));return W(p,i)},[m,n]),{options:c}=t,b=c.length===0?!0:s.disabled,z=c.length===0?"No options to select.":t.placeholder,w=c.map((o,i)=>({label:o,value:i.toString()})),I=c.length>10;return C("div",{className:"stMultiSelect","data-testid":"stMultiSelect",children:[l(k,{label:t.label,disabled:b,labelVisibility:V((S=t.labelVisibility)==null?void 0:S.value),children:t.help&&l(L,{children:l(O,{content:t.help,placement:P.TOP_RIGHT})})}),l(D,{children:l(B,{options:w,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:z,type:$.select,multi:!0,onChange:v,value:f,disabled:b,size:"compact",noResultsMsg:y,filterOptions:x,closeOnSelect:!1,overrides:{Popover:{props:{overrides:{Body:{style:()=>({marginTop:e.spacing.px})}}}},SelectArrow:{component:N,props:{overrides:{Svg:{style:()=>({width:e.iconSizes.xl,height:e.iconSizes.xl})}}}},IconsContainer:{style:()=>({paddingRight:e.spacing.sm})},ControlContainer:{style:{minHeight:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}},Placeholder:{style:()=>({flex:"inherit",opacity:"0.7"})},ValueContainer:{style:()=>({paddingLeft:e.spacing.sm,paddingTop:e.spacing.none,paddingBottom:e.spacing.none,paddingRight:e.spacing.none})},ClearIcon:{props:{overrides:{Svg:{style:{color:e.colors.darkGray,padding:e.spacing.threeXS,height:e.sizes.clearIconSize,width:e.sizes.clearIconSize,cursor:"pointer",":hover":{fill:e.colors.bodyText}}}}}},SearchIcon:{style:{color:e.colors.darkGray}},Tag:{props:{overrides:{Root:{style:{borderTopLeftRadius:e.radii.md,borderTopRightRadius:e.radii.md,borderBottomRightRadius:e.radii.md,borderBottomLeftRadius:e.radii.md,fontSize:e.fontSizes.md,paddingLeft:e.spacing.sm,marginLeft:e.spacing.none,marginRight:e.spacing.sm,height:`calc(${e.sizes.minElementHeight} - 2 * ${e.spacing.xs})`,maxWidth:`calc(100% - ${e.spacing.lg})`,cursor:"default !important"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"0.625em",height:"0.625em"}}}}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:e.fontSizes.sm}}}}},Input:{props:{readOnly:F.isMobile&&I===!1?"readonly":null}},Dropdown:{component:E}}})})]})},q=r.memo(K);export{q as default};
1
+ import{n as R,r,y as M,c1 as T,c2 as W,B as C,j as l,bs as V,bF as L,bt as O,ba as P,bu as k,c0 as B,c3 as E,bY as N,c4 as $,bD as F}from"./index.KPwXWqBk.js";import{a as A}from"./useBasicWidgetState.Bw_fxTtX.js";import"./FormClearHelper.BlCIuWCo.js";const D=R("div",{target:"euzcfsp0"})(({theme:s})=>({"span[aria-disabled='true']":{background:s.colors.fadedText05}})),H=(s,t)=>s.getIntArrayValue(t),U=s=>s.default??null,j=s=>s.value??null,G=(s,t,a,u)=>{t.setIntArrayValue(s,a.value,{fromUi:a.fromUi},u)},K=s=>{var S;const{element:t,widgetMgr:a,fragmentId:u}=s,e=M(),[n,g]=A({getStateFromWidgetMgr:H,getDefaultStateFromProto:U,getCurrStateFromProto:j,updateWidgetMgrState:G,element:t,widgetMgr:a,fragmentId:u}),m=t.maxSelections>0&&n.length>=t.maxSelections,y=r.useMemo(()=>{if(t.maxSelections===0)return"No results";if(n.length===t.maxSelections){const o=t.maxSelections!==1?"options":"option";return`You can only select up to ${t.maxSelections} ${o}. Remove an option first.`}return"No results"},[t.maxSelections,n.length]),f=r.useMemo(()=>n.map(o=>{const i=t.options[o];return{value:o.toString(),label:i}}),[t.options,n]),h=r.useCallback(o=>{const i=()=>{var d;const p=(d=o.option)==null?void 0:d.value;return parseInt(p,10)};switch(o.type){case"remove":return T(n,i());case"clear":return[];case"select":return n.concat([i()]);default:throw new Error(`State transition is unknown: ${o.type}`)}},[n]),v=r.useCallback(o=>{t.maxSelections&&o.type==="select"&&n.length>=t.maxSelections||g({value:h(o),fromUi:!0})},[t.maxSelections,h,g,n.length]),x=r.useCallback((o,i)=>{if(m)return[];const p=o.filter(d=>!n.includes(Number(d.value)));return W(p,i)},[m,n]),{options:c}=t,b=c.length===0?!0:s.disabled,z=c.length===0?"No options to select.":t.placeholder,w=c.map((o,i)=>({label:o,value:i.toString()})),I=c.length>10;return C("div",{className:"stMultiSelect","data-testid":"stMultiSelect",children:[l(k,{label:t.label,disabled:b,labelVisibility:V((S=t.labelVisibility)==null?void 0:S.value),children:t.help&&l(L,{children:l(O,{content:t.help,placement:P.TOP_RIGHT})})}),l(D,{children:l(B,{options:w,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:z,type:$.select,multi:!0,onChange:v,value:f,disabled:b,size:"compact",noResultsMsg:y,filterOptions:x,closeOnSelect:!1,overrides:{Popover:{props:{overrides:{Body:{style:()=>({marginTop:e.spacing.px})}}}},SelectArrow:{component:N,props:{overrides:{Svg:{style:()=>({width:e.iconSizes.xl,height:e.iconSizes.xl})}}}},IconsContainer:{style:()=>({paddingRight:e.spacing.sm})},ControlContainer:{style:{minHeight:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}},Placeholder:{style:()=>({flex:"inherit",opacity:"0.7"})},ValueContainer:{style:()=>({paddingLeft:e.spacing.sm,paddingTop:e.spacing.none,paddingBottom:e.spacing.none,paddingRight:e.spacing.none})},ClearIcon:{props:{overrides:{Svg:{style:{color:e.colors.darkGray,padding:e.spacing.threeXS,height:e.sizes.clearIconSize,width:e.sizes.clearIconSize,cursor:"pointer",":hover":{fill:e.colors.bodyText}}}}}},SearchIcon:{style:{color:e.colors.darkGray}},Tag:{props:{overrides:{Root:{style:{borderTopLeftRadius:e.radii.md,borderTopRightRadius:e.radii.md,borderBottomRightRadius:e.radii.md,borderBottomLeftRadius:e.radii.md,fontSize:e.fontSizes.md,paddingLeft:e.spacing.sm,marginLeft:e.spacing.none,marginRight:e.spacing.sm,height:`calc(${e.sizes.minElementHeight} - 2 * ${e.spacing.xs})`,maxWidth:`calc(100% - ${e.spacing.lg})`,cursor:"default !important"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"0.625em",height:"0.625em"}}}}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:e.fontSizes.sm}}}}},Input:{props:{readOnly:F.isMobile&&I===!1?"readonly":null}},Dropdown:{component:E}}})})]})},q=r.memo(K);export{q as default};
@@ -1,4 +1,4 @@
1
- import{r as m,bQ as Er,bR as Rr,bS as Tr,bT as Lr,d as Jr,bU as en,g as tn,bw as X,bK as Ae,bL as Ee,bV as rn,bJ as xr,bx as W,C as jr,bW as nn,bX as Br,bY as sr,bZ as an,by as Be,b_ as on,b$ as sn,c0 as ln,z as Fr,H as un,y as lr,aD as cn,O as Tt,K as pn,B as dn,j as We,bs as fn,bF as hn,bt as yn,ba as vn,bu as gn}from"./index.7HEH_7fJ.js";import{a as mn}from"./useBasicWidgetState.6R32QW2v.js";import{D as Pe,a as Ie,T as bn,l as rt}from"./timepicker.Br_cR0hi.js";import{I as On}from"./input.QeLiGsyn.js";import{I as Dn}from"./base-input.BBFJwxWO.js";import"./FormClearHelper.BkPbs0OF.js";import"./possibleConstructorReturn.C4RsC1R8.js";import"./createSuper.rz8EjYR0.js";var Sn=["title","size","color","overrides"];function ft(){return ft=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ft.apply(this,arguments)}function $n(t,r){if(t==null)return{};var n=_n(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function _n(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}function wn(t,r){return Pn(t)||Mn(t,r)||Cn(t,r)||kn()}function kn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as m,bQ as Er,bR as Rr,bS as Tr,bT as Lr,d as Jr,bU as en,g as tn,bw as X,bN as Ae,bO as Ee,bV as rn,bM as xr,bx as W,C as jr,bW as nn,bX as Br,bY as sr,bZ as an,by as Be,b_ as on,b$ as sn,c0 as ln,z as Fr,H as un,y as lr,aD as cn,Q as Tt,L as pn,B as dn,j as We,bs as fn,bF as hn,bt as yn,ba as vn,bu as gn}from"./index.KPwXWqBk.js";import{a as mn}from"./useBasicWidgetState.Bw_fxTtX.js";import{D as Pe,a as Ie,T as bn,l as rt}from"./timepicker.eLEnk1tw.js";import{I as On}from"./input.EkJ_AsTP.js";import{I as Dn}from"./base-input.BUY9TLqO.js";import"./FormClearHelper.BlCIuWCo.js";import"./possibleConstructorReturn.CZfYLVBb.js";import"./createSuper.DprEKsA6.js";var Sn=["title","size","color","overrides"];function ft(){return ft=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ft.apply(this,arguments)}function $n(t,r){if(t==null)return{};var n=_n(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function _n(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}function wn(t,r){return Pn(t)||Mn(t,r)||Cn(t,r)||kn()}function kn(){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 Cn(t,r){if(t){if(typeof t=="string")return ur(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(t,r)}}function ur(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=t[n];return a}function Mn(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],e=!0,o=!1,i,l;try{for(n=n.call(t);!(e=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));e=!0);}catch(u){o=!0,l=u}finally{try{!e&&n.return!=null&&n.return()}finally{if(o)throw l}}return a}}function Pn(t){if(Array.isArray(t))return t}function In(t,r){var n=Er(),a=wn(n,2),e=a[1],o=t.title,i=o===void 0?"Left":o,l=t.size,u=t.color,c=t.overrides,y=c===void 0?{}:c,p=$n(t,Sn),h=Rr({component:e.icons&&e.icons.ChevronLeft?e.icons.ChevronLeft:null},y&&y.Svg?Tr(y.Svg):{});return m.createElement(Lr,ft({viewBox:"0 0 24 24",ref:r,title:i,size:l,color:u,overrides:{Svg:h}},p),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z"}))}const cr=m.forwardRef(In);var Hn=["title","size","color","overrides"];function ht(){return ht=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ht.apply(this,arguments)}function An(t,r){if(t==null)return{};var n=En(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function En(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}function Rn(t,r){return jn(t)||xn(t,r)||Ln(t,r)||Tn()}function Tn(){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 Ln(t,r){if(t){if(typeof t=="string")return pr(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pr(t,r)}}function pr(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=t[n];return a}function xn(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],e=!0,o=!1,i,l;try{for(n=n.call(t);!(e=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));e=!0);}catch(u){o=!0,l=u}finally{try{!e&&n.return!=null&&n.return()}finally{if(o)throw l}}return a}}function jn(t){if(Array.isArray(t))return t}function Bn(t,r){var n=Er(),a=Rn(n,2),e=a[1],o=t.title,i=o===void 0?"Right":o,l=t.size,u=t.color,c=t.overrides,y=c===void 0?{}:c,p=An(t,Hn),h=Rr({component:e.icons&&e.icons.ChevronRight?e.icons.ChevronRight:null},y&&y.Svg?Tr(y.Svg):{});return m.createElement(Lr,ht({viewBox:"0 0 24 24",ref:r,title:i,size:l,color:u,overrides:{Svg:h}},p),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29289 7.29289C8.90237 7.68342 8.90237 8.31658 9.29289 8.70711L12.5858 12L9.29289 15.2929C8.90237 15.6834 8.90237 16.3166 9.29289 16.7071C9.68342 17.0976 10.3166 17.0976 10.7071 16.7071L14.7071 12.7071C14.8946 12.5196 15 12.2652 15 12C15 11.7348 14.8946 11.4804 14.7071 11.2929L10.7071 7.29289C10.3166 6.90237 9.68342 6.90237 9.29289 7.29289Z"}))}const dr=m.forwardRef(Bn);var nt={exports:{}},at,fr;function Fn(){if(fr)return at;fr=1;function t(d){return d&&typeof d=="object"&&"default"in d?d.default:d}var r=t(Jr()),n=en();function a(d,b){for(var S=Object.getOwnPropertyNames(b),f=0;f<S.length;f++){var s=S[f],M=Object.getOwnPropertyDescriptor(b,s);M&&M.configurable&&d[s]===void 0&&Object.defineProperty(d,s,M)}return d}function e(){return(e=Object.assign||function(d){for(var b=1;b<arguments.length;b++){var S=arguments[b];for(var f in S)Object.prototype.hasOwnProperty.call(S,f)&&(d[f]=S[f])}return d}).apply(this,arguments)}function o(d,b){d.prototype=Object.create(b.prototype),a(d.prototype.constructor=d,b)}function i(d,b){if(d==null)return{};var S,f,s={},M=Object.keys(d);for(f=0;f<M.length;f++)S=M[f],0<=b.indexOf(S)||(s[S]=d[S]);return s}function l(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}var u=function(d,b,S,f,s,M,Y,te){if(!d){var R;if(b===void 0)R=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var j=[S,f,s,M,Y,te],N=0;(R=new Error(b.replace(/%s/g,function(){return j[N++]}))).name="Invariant Violation"}throw R.framesToPop=1,R}},c=u;function y(d,b,S){if("selectionStart"in d&&"selectionEnd"in d)d.selectionStart=b,d.selectionEnd=S;else{var f=d.createTextRange();f.collapse(!0),f.moveStart("character",b),f.moveEnd("character",S-b),f.select()}}function p(d){var b=0,S=0;if("selectionStart"in d&&"selectionEnd"in d)b=d.selectionStart,S=d.selectionEnd;else{var f=document.selection.createRange();f.parentElement()===d&&(b=-f.moveStart("character",-d.value.length),S=-f.moveEnd("character",-d.value.length))}return{start:b,end:S,length:S-b}}var h={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},v="_";function g(d,b,S){var f="",s="",M=null,Y=[];if(b===void 0&&(b=v),S==null&&(S=h),!d||typeof d!="string")return{maskChar:b,formatChars:S,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var te=!1;return d.split("").forEach(function(R){te=!te&&R==="\\"||(te||!S[R]?(Y.push(f.length),f.length===Y.length-1&&(s+=R)):M=f.length+1,f+=R,!1)}),{maskChar:b,formatChars:S,prefix:s,mask:f,lastEditablePosition:M,permanents:Y}}function O(d,b){return d.permanents.indexOf(b)!==-1}function D(d,b,S){var f=d.mask,s=d.formatChars;if(!S)return!1;if(O(d,b))return f[b]===S;var M=s[f[b]];return new RegExp(M).test(S)}function _(d,b){return b.split("").every(function(S,f){return O(d,f)||!D(d,f,S)})}function $(d,b){var S=d.maskChar,f=d.prefix;if(!S){for(;b.length>f.length&&O(d,b.length-1);)b=b.slice(0,b.length-1);return b.length}for(var s=f.length,M=b.length;M>=f.length;M--){var Y=b[M];if(!O(d,M)&&D(d,M,Y)){s=M+1;break}}return s}function k(d,b){return $(d,b)===d.mask.length}function w(d,b){var S=d.maskChar,f=d.mask,s=d.prefix;if(!S){for((b=H(d,"",b,0)).length<s.length&&(b=s);b.length<f.length&&O(d,b.length);)b+=f[b.length];return b}if(b)return H(d,w(d,""),b,0);for(var M=0;M<f.length;M++)O(d,M)?b+=f[M]:b+=S;return b}function B(d,b,S,f){var s=S+f,M=d.maskChar,Y=d.mask,te=d.prefix,R=b.split("");if(M)return R.map(function(N,re){return re<S||s<=re?N:O(d,re)?Y[re]:M}).join("");for(var j=s;j<R.length;j++)O(d,j)&&(R[j]="");return S=Math.max(te.length,S),R.splice(S,s-S),b=R.join(""),w(d,b)}function H(d,b,S,f){var s=d.mask,M=d.maskChar,Y=d.prefix,te=S.split(""),R=k(d,b);return!M&&f>b.length&&(b+=s.slice(b.length,f)),te.every(function(j){for(;se=j,O(d,z=f)&&se!==s[z];){if(f>=b.length&&(b+=s[f]),N=j,re=f,M&&O(d,re)&&N===M)return!0;if(++f>=s.length)return!1}var N,re,z,se;return!D(d,f,j)&&j!==M||(f<b.length?b=M||R||f<Y.length?b.slice(0,f)+j+b.slice(f+1):(b=b.slice(0,f)+j+b.slice(f),w(d,b)):M||(b+=j),++f<s.length)}),b}function T(d,b,S,f){var s=d.mask,M=d.maskChar,Y=S.split(""),te=f;return Y.every(function(R){for(;N=R,O(d,j=f)&&N!==s[j];)if(++f>=s.length)return!1;var j,N;return(D(d,f,R)||R===M)&&f++,f<s.length}),f-te}function E(d,b){for(var S=b;0<=S;--S)if(!O(d,S))return S;return null}function P(d,b){for(var S=d.mask,f=b;f<S.length;++f)if(!O(d,f))return f;return null}function L(d){return d||d===0?d+"":""}function I(d,b,S,f,s){var M=d.mask,Y=d.prefix,te=d.lastEditablePosition,R=b,j="",N=0,re=0,z=Math.min(s.start,S.start);return S.end>s.start?re=(N=T(d,f,j=R.slice(s.start,S.end),z))?s.length:0:R.length<f.length&&(re=f.length-R.length),R=f,re&&(re===1&&!s.length&&(z=s.start===S.start?P(d,S.start):E(d,S.start)),R=B(d,R,z,re)),R=H(d,R,j,z),(z+=N)>=M.length?z=M.length:z<Y.length&&!N?z=Y.length:z>=Y.length&&z<te&&N&&(z=P(d,z)),j||(j=null),{value:R=w(d,R),enteredString:j,selection:{start:z,end:z}}}function A(){var d=new RegExp("windows","i"),b=new RegExp("phone","i"),S=navigator.userAgent;return d.test(S)&&b.test(S)}function x(d){return typeof d=="function"}function q(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function ve(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function ie(d){return(ve()?q():function(){return setTimeout(d,1e3/60)})(d)}function J(d){(ve()||clearTimeout)(d)}var ee=function(d){function b(f){var s=d.call(this,f)||this;s.focused=!1,s.mounted=!1,s.previousSelection=null,s.selectionDeferId=null,s.saveSelectionLoopDeferId=null,s.saveSelectionLoop=function(){s.previousSelection=s.getSelection(),s.saveSelectionLoopDeferId=ie(s.saveSelectionLoop)},s.runSaveSelectionLoop=function(){s.saveSelectionLoopDeferId===null&&s.saveSelectionLoop()},s.stopSaveSelectionLoop=function(){s.saveSelectionLoopDeferId!==null&&(J(s.saveSelectionLoopDeferId),s.saveSelectionLoopDeferId=null,s.previousSelection=null)},s.getInputDOMNode=function(){if(!s.mounted)return null;var C=n.findDOMNode(l(l(s))),F=typeof window<"u"&&C instanceof window.Element;if(C&&!F)return null;if(C.nodeName!=="INPUT"&&(C=C.querySelector("input")),!C)throw new Error("react-input-mask: inputComponent doesn't contain input node");return C},s.getInputValue=function(){var C=s.getInputDOMNode();return C?C.value:null},s.setInputValue=function(C){var F=s.getInputDOMNode();F&&(s.value=C,F.value=C)},s.setCursorToEnd=function(){var C=$(s.maskOptions,s.value),F=P(s.maskOptions,C);F!==null&&s.setCursorPosition(F)},s.setSelection=function(C,F,U){U===void 0&&(U={});var V=s.getInputDOMNode(),Q=s.isFocused();V&&Q&&(U.deferred||y(V,C,F),s.selectionDeferId!==null&&J(s.selectionDeferId),s.selectionDeferId=ie(function(){s.selectionDeferId=null,y(V,C,F)}),s.previousSelection={start:C,end:F,length:Math.abs(F-C)})},s.getSelection=function(){return p(s.getInputDOMNode())},s.getCursorPosition=function(){return s.getSelection().start},s.setCursorPosition=function(C){s.setSelection(C,C)},s.isFocused=function(){return s.focused},s.getBeforeMaskedValueChangeConfig=function(){var C=s.maskOptions,F=C.mask,U=C.maskChar,V=C.permanents,Q=C.formatChars;return{mask:F,maskChar:U,permanents:V,alwaysShowMask:!!s.props.alwaysShowMask,formatChars:Q}},s.isInputAutofilled=function(C,F,U,V){var Q=s.getInputDOMNode();try{if(Q.matches(":-webkit-autofill"))return!0}catch{}return!s.focused||V.end<U.length&&F.end===C.length},s.onChange=function(C){var F=l(l(s)).beforePasteState,U=l(l(s)).previousSelection,V=s.props.beforeMaskedValueChange,Q=s.getInputValue(),fe=s.value,he=s.getSelection();s.isInputAutofilled(Q,he,fe,U)&&(fe=w(s.maskOptions,""),U={start:0,end:0,length:0}),F&&(U=F.selection,fe=F.value,he={start:U.start+Q.length,end:U.start+Q.length,length:0},Q=fe.slice(0,U.start)+Q+fe.slice(U.end),s.beforePasteState=null);var _e=I(s.maskOptions,Q,he,fe,U),Ne=_e.enteredString,me=_e.selection,ke=_e.value;if(x(V)){var He=V({value:ke,selection:me},{value:fe,selection:U},Ne,s.getBeforeMaskedValueChangeConfig());ke=He.value,me=He.selection}s.setInputValue(ke),x(s.props.onChange)&&s.props.onChange(C),s.isWindowsPhoneBrowser?s.setSelection(me.start,me.end,{deferred:!0}):s.setSelection(me.start,me.end)},s.onFocus=function(C){var F=s.props.beforeMaskedValueChange,U=s.maskOptions,V=U.mask,Q=U.prefix;if(s.focused=!0,s.mounted=!0,V){if(s.value)$(s.maskOptions,s.value)<s.maskOptions.mask.length&&s.setCursorToEnd();else{var fe=w(s.maskOptions,Q),he=w(s.maskOptions,fe),_e=$(s.maskOptions,he),Ne=P(s.maskOptions,_e),me={start:Ne,end:Ne};if(x(F)){var ke=F({value:he,selection:me},{value:s.value,selection:null},null,s.getBeforeMaskedValueChangeConfig());he=ke.value,me=ke.selection}var He=he!==s.getInputValue();He&&s.setInputValue(he),He&&x(s.props.onChange)&&s.props.onChange(C),s.setSelection(me.start,me.end)}s.runSaveSelectionLoop()}x(s.props.onFocus)&&s.props.onFocus(C)},s.onBlur=function(C){var F=s.props.beforeMaskedValueChange,U=s.maskOptions.mask;if(s.stopSaveSelectionLoop(),s.focused=!1,U&&!s.props.alwaysShowMask&&_(s.maskOptions,s.value)){var V="";x(F)&&(V=F({value:V,selection:null},{value:s.value,selection:s.previousSelection},null,s.getBeforeMaskedValueChangeConfig()).value);var Q=V!==s.getInputValue();Q&&s.setInputValue(V),Q&&x(s.props.onChange)&&s.props.onChange(C)}x(s.props.onBlur)&&s.props.onBlur(C)},s.onMouseDown=function(C){if(!s.focused&&document.addEventListener){s.mouseDownX=C.clientX,s.mouseDownY=C.clientY,s.mouseDownTime=new Date().getTime();var F=function U(V){if(document.removeEventListener("mouseup",U),s.focused){var Q=Math.abs(V.clientX-s.mouseDownX),fe=Math.abs(V.clientY-s.mouseDownY),he=Math.max(Q,fe),_e=new Date().getTime()-s.mouseDownTime;(he<=10&&_e<=200||he<=5&&_e<=300)&&s.setCursorToEnd()}};document.addEventListener("mouseup",F)}x(s.props.onMouseDown)&&s.props.onMouseDown(C)},s.onPaste=function(C){x(s.props.onPaste)&&s.props.onPaste(C),C.defaultPrevented||(s.beforePasteState={value:s.getInputValue(),selection:s.getSelection()},s.setInputValue(""))},s.handleRef=function(C){s.props.children==null&&x(s.props.inputRef)&&s.props.inputRef(C)};var M=f.mask,Y=f.maskChar,te=f.formatChars,R=f.alwaysShowMask,j=f.beforeMaskedValueChange,N=f.defaultValue,re=f.value;s.maskOptions=g(M,Y,te),N==null&&(N=""),re==null&&(re=N);var z=L(re);if(s.maskOptions.mask&&(R||z)&&(z=w(s.maskOptions,z),x(j))){var se=f.value;f.value==null&&(se=N),z=j({value:z,selection:null},{value:se=L(se),selection:null},null,s.getBeforeMaskedValueChangeConfig()).value}return s.value=z,s}o(b,d);var S=b.prototype;return S.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=A(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},S.componentDidUpdate=function(){var f=this.previousSelection,s=this.props,M=s.beforeMaskedValueChange,Y=s.alwaysShowMask,te=s.mask,R=s.maskChar,j=s.formatChars,N=this.maskOptions,re=Y||this.isFocused(),z=this.props.value!=null,se=z?L(this.props.value):this.value,C=f?f.start:null;if(this.maskOptions=g(te,R,j),this.maskOptions.mask){!N.mask&&this.isFocused()&&this.runSaveSelectionLoop();var F=this.maskOptions.mask&&this.maskOptions.mask!==N.mask;if(N.mask||z||(se=this.getInputValue()),(F||this.maskOptions.mask&&(se||re))&&(se=w(this.maskOptions,se)),F){var U=$(this.maskOptions,se);(C===null||U<C)&&(C=k(this.maskOptions,se)?U:P(this.maskOptions,U))}!this.maskOptions.mask||!_(this.maskOptions,se)||re||z&&this.props.value||(se="");var V={start:C,end:C};if(x(M)){var Q=M({value:se,selection:V},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());se=Q.value,V=Q.selection}this.value=se;var fe=this.getInputValue()!==this.value;fe?(this.setInputValue(this.value),this.forceUpdate()):F&&this.forceUpdate();var he=!1;V.start!=null&&V.end!=null&&(he=!f||f.start!==V.start||f.end!==V.end),(he||fe)&&this.setSelection(V.start,V.end)}else N.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},S.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&J(this.selectionDeferId),this.stopSaveSelectionLoop()},S.render=function(){var f,s=this.props,M=(s.mask,s.alwaysShowMask,s.maskChar,s.formatChars,s.inputRef,s.beforeMaskedValueChange,s.children),Y=i(s,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(M){x(M)||c(!1);var te=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],R=e({},Y);te.forEach(function(N){return delete R[N]}),f=M(R),te.filter(function(N){return f.props[N]!=null&&f.props[N]!==Y[N]}).length&&c(!1)}else f=r.createElement("input",e({ref:this.handleRef},Y));var j={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(Y.disabled||Y.readOnly||(j.onChange=this.onChange,j.onPaste=this.onPaste,j.onMouseDown=this.onMouseDown),Y.value!=null&&(j.value=this.value)),f=r.cloneElement(f,j)},b}(r.Component);return at=ee,at}var hr;function Nn(){return hr||(hr=1,nt.exports=Fn()),nt.exports}var Wn=Nn();const Vn=tn(Wn);var Yn=["startEnhancer","endEnhancer","error","positive","onChange","onFocus","onBlur","value","disabled","readOnly"],zn=["Input"],Un=["mask","maskChar","overrides"];function yr(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function ot(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?yr(Object(n),!0).forEach(function(a){qn(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function qn(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function ze(t){"@babel/helpers - typeof";return ze=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},ze(t)}function Fe(){return Fe=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Fe.apply(this,arguments)}function yt(t,r){if(t==null)return{};var n=Kn(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Kn(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}var Nr=m.forwardRef(function(t,r){t.startEnhancer,t.endEnhancer,t.error,t.positive;var n=t.onChange,a=t.onFocus,e=t.onBlur,o=t.value,i=t.disabled,l=t.readOnly,u=yt(t,Yn);return m.createElement(Vn,Fe({onChange:n,onFocus:a,onBlur:e,value:o,disabled:i,readOnly:l},u),function(c){return m.createElement(Dn,Fe({ref:r,onChange:n,onFocus:a,onBlur:e,value:o,disabled:i,readOnly:l},c))})});Nr.displayName="MaskOverride";function Wr(t){var r=t.mask,n=t.maskChar,a=t.overrides;a=a===void 0?{}:a;var e=a.Input,o=e===void 0?{}:e,i=yt(a,zn),l=yt(t,Un),u=Nr,c={},y={};typeof o=="function"?u=o:ze(o)==="object"&&(u=o.component||u,c=o.props||{},y=o.style||{}),ze(c)==="object"&&(c=ot(ot({},c),{},{mask:c.mask||r,maskChar:c.maskChar||n}));var p=ot({Input:{component:u,props:c,style:y}},i);return m.createElement(On,Fe({},l,{overrides:p}))}Wr.defaultProps={maskChar:" "};var Lt=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),Vr=[0,1,2,3,4,5,6],Xn=[0,1,2,3,4,5,6,7,8,9,10,11],oe={high:"high",default:"default"},$e={startDate:"startDate",endDate:"endDate"},Qn={locked:"locked"};function vr(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function Me(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?vr(Object(n),!0).forEach(function(a){Zn(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Zn(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var xt=X("label",function(t){var r=t.$disabled,n=t.$theme,a=n.colors,e=n.typography;return Me(Me({},e.font250),{},{width:"100%",color:r?a.contentSecondary:a.contentPrimary,display:"block",paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})});xt.displayName="Label";xt.displayName="Label";var jt=X("span",function(t){var r=t.$theme.sizing;return{display:"flex",width:"100%",marginTop:r.scale300,marginRight:0,marginBottom:r.scale300,marginLeft:0}});jt.displayName="LabelContainer";jt.displayName="LabelContainer";var Bt=X("span",function(t){var r=t.$disabled,n=t.$counterError,a=t.$theme,e=a.colors,o=a.typography;return Me(Me({},o.font100),{},{flex:0,width:"100%",color:n?e.negative400:r?e.contentSecondary:e.contentPrimary})});Bt.displayName="LabelEndEnhancer";Bt.displayName="LabelEndEnhancer";var Ft=X("div",function(t){var r=t.$error,n=t.$positive,a=t.$theme,e=a.colors,o=a.sizing,i=a.typography,l=e.contentSecondary;return r?l=e.negative400:n&&(l=e.positive400),Me(Me({},i.font100),{},{color:l,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginTop:o.scale300,marginRight:0,marginBottom:o.scale300,marginLeft:0})});Ft.displayName="Caption";Ft.displayName="Caption";var Nt=X("div",function(t){var r=t.$theme.sizing;return{width:"100%",marginBottom:r.scale600}});Nt.displayName="ControlContainer";Nt.displayName="ControlContainer";function we(){return we=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},we.apply(this,arguments)}function Ue(t){"@babel/helpers - typeof";return Ue=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},Ue(t)}function Gn(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Jn(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function ea(t,r,n){return r&&Jn(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ta(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&vt(t,r)}function vt(t,r){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,e){return a.__proto__=e,a},vt(t,r)}function ra(t){var r=oa();return function(){var a=qe(t),e;if(r){var o=qe(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return na(this,e)}}function na(t,r){if(r&&(Ue(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aa(t)}function aa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oa(){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 qe(t){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qe(t)}function ia(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function sa(t,r,n,a){return r&&typeof r!="boolean"?typeof r=="function"?r(a):r:n&&typeof n!="boolean"?typeof n=="function"?n(a):n:t?typeof t=="function"?t(a):t:null}var gt=function(t){ta(n,t);var r=ra(n);function n(){return Gn(this,n),r.apply(this,arguments)}return ea(n,[{key:"render",value:function(){var e=this.props,o=e.overrides,i=o.Label,l=o.LabelEndEnhancer,u=o.LabelContainer,c=o.Caption,y=o.ControlContainer,p=e.label,h=e.caption,v=e.disabled,g=e.error,O=e.positive,D=e.htmlFor,_=e.children,$=e.counter,k=m.Children.only(_).props,w={$disabled:!!v,$error:!!g,$positive:!!O},B=Ae(i)||xt,H=Ae(l)||Bt,T=Ae(u)||jt,E=Ae(c)||Ft,P=Ae(y)||Nt,L=sa(h,g,O,w),I=this.props.labelEndEnhancer;if($){var A=null,x=null,q=null;Ue($)==="object"&&(x=$.length,A=$.maxLength,q=$.error),A=A||k.maxLength,x==null&&typeof k.value=="string"&&(x=k.value.length),x==null&&(x=0),w.$length=x,A==null?I||(I="".concat(x)):(w.$maxLength=x,I||(I="".concat(x,"/").concat(A)),x>A&&q==null&&(q=!0)),q&&(w.$error=!0,w.$counterError=!0)}return m.createElement(m.Fragment,null,p&&m.createElement(T,we({},w,Ee(u)),m.createElement(B,we({"data-baseweb":"form-control-label",htmlFor:D||k.id},w,Ee(i)),typeof p=="function"?p(w):p),!!I&&m.createElement(H,we({},w,Ee(l)),typeof I=="function"?I(w):I)),m.createElement(rn,null,function(ve){return m.createElement(P,we({"data-baseweb":"form-control-container"},w,Ee(y)),m.Children.map(_,function(ie,J){if(ie){var ee=ie.key||String(J);return m.cloneElement(ie,{key:ee,"aria-errormessage":g?ve:null,"aria-describedby":h||O?ve:null,disabled:k.disabled||v,error:typeof k.error<"u"?k.error:w.$error,positive:typeof k.positive<"u"?k.positive:w.$positive})}}),(!!h||!!g||O)&&m.createElement(E,we({"data-baseweb":"form-control-caption",id:ve},w,Ee(c)),L))}))}}]),n}(m.Component);ia(gt,"defaultProps",{overrides:{},label:null,caption:null,disabled:!1,counter:!1});function gr(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function mr(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?gr(Object(n),!0).forEach(function(a){la(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function la(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var ua=function(r){return Xn.map(function(n){return{id:n.toString(),label:r(n)}})},ca=function(r,n){return r.map(function(a){return n.includes(Number(a.id))?a:mr(mr({},a),{},{disabled:!0})})},pa=function(r){var n=r.filterMonthsList,a=r.formatMonthLabel,e=ua(a);return n&&(e=ca(e,n)),e};function da(t){var r=t.$range,n=r===void 0?!1:r,a=t.$disabled,e=a===void 0?!1:a,o=t.$isHighlighted,i=o===void 0?!1:o,l=t.$isHovered,u=l===void 0?!1:l,c=t.$selected,y=c===void 0?!1:c,p=t.$hasRangeSelected,h=p===void 0?!1:p,v=t.$startDate,g=v===void 0?!1:v,O=t.$endDate,D=O===void 0?!1:O,_=t.$pseudoSelected,$=_===void 0?!1:_,k=t.$hasRangeHighlighted,w=k===void 0?!1:k,B=t.$pseudoHighlighted,H=B===void 0?!1:B,T=t.$hasRangeOnRight,E=T===void 0?!1:T,P=t.$startOfMonth,L=P===void 0?!1:P,I=t.$endOfMonth,A=I===void 0?!1:I,x=t.$outsideMonth,q=x===void 0?!1:x;return"".concat(+n).concat(+e).concat(+(i||u)).concat(+y).concat(+h).concat(+g).concat(+D).concat(+$).concat(+w).concat(+H).concat(+(w&&!H&&E)).concat(+(w&&!H&&!E)).concat(+L).concat(+A).concat(+q)}function fa(t,r){return ga(t)||va(t,r)||ya(t,r)||ha()}function ha(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ya(t,r){if(t){if(typeof t=="string")return br(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return br(t,r)}}function br(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=t[n];return a}function va(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],e=!0,o=!1,i,l;try{for(n=n.call(t);!(e=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));e=!0);}catch(u){o=!0,l=u}finally{try{!e&&n.return!=null&&n.return()}finally{if(o)throw l}}return a}}function ga(t){if(Array.isArray(t))return t}function Or(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function ne(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Or(Object(n),!0).forEach(function(a){xe(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function xe(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var Wt=X("div",function(t){var r=t.$separateRangeInputs;return ne({width:"100%"},r?{display:"flex",justifyContent:"center"}:{})});Wt.displayName="StyledInputWrapper";Wt.displayName="StyledInputWrapper";var Vt=X("div",function(t){var r=t.$theme;return ne(ne({},r.typography.LabelMedium),{},{marginBottom:r.sizing.scale300})});Vt.displayName="StyledInputLabel";Vt.displayName="StyledInputLabel";var Yt=X("div",function(t){var r=t.$theme;return{width:"100%",marginRight:r.sizing.scale300}});Yt.displayName="StyledStartDate";Yt.displayName="StyledStartDate";var zt=X("div",function(t){return t.$theme,{width:"100%"}});zt.displayName="StyledEndDate";zt.displayName="StyledEndDate";var Ut=X("div",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=r.borders;return ne(ne({},n.font200),{},{color:a.calendarForeground,backgroundColor:a.calendarBackground,textAlign:"center",borderTopLeftRadius:e.surfaceBorderRadius,borderTopRightRadius:e.surfaceBorderRadius,borderBottomRightRadius:e.surfaceBorderRadius,borderBottomLeftRadius:e.surfaceBorderRadius,display:"inline-block"})});Ut.displayName="StyledRoot";Ut.displayName="StyledRoot";var qt=X("div",function(t){var r=t.$orientation;return{display:"flex",flexDirection:r===Lt.vertical?"column":"row"}});qt.displayName="StyledMonthContainer";qt.displayName="StyledMonthContainer";var Kt=X("div",function(t){var r=t.$theme.sizing,n=t.$density;return{paddingTop:r.scale300,paddingBottom:n===oe.high?r.scale400:r.scale300,paddingLeft:r.scale500,paddingRight:r.scale500}});Kt.displayName="StyledCalendarContainer";Kt.displayName="StyledCalendarContainer";var Ke=X("div",function(t){var r=t.$theme,n=r.direction==="rtl"?"right":"left";return{marginBottom:r.sizing.scale600,paddingLeft:r.sizing.scale600,paddingRight:r.sizing.scale600,textAlign:n}});Ke.displayName="StyledSelectorContainer";Ke.displayName="StyledSelectorContainer";var Xt=X("div",function(t){var r=t.$theme,n=r.typography,a=r.borders,e=r.colors,o=r.sizing,i=t.$density;return ne(ne({},i===oe.high?n.LabelMedium:n.LabelLarge),{},{color:e.calendarHeaderForeground,display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:o.scale600,paddingBottom:o.scale300,paddingLeft:o.scale600,paddingRight:o.scale600,backgroundColor:e.calendarHeaderBackground,borderTopLeftRadius:a.surfaceBorderRadius,borderTopRightRadius:a.surfaceBorderRadius,borderBottomRightRadius:0,borderBottomLeftRadius:0,minHeight:i===oe.high?"calc(".concat(o.scale800," + ").concat(o.scale0,")"):o.scale950})});Xt.displayName="StyledCalendarHeader";Xt.displayName="StyledCalendarHeader";var Qt=X("div",function(t){return{color:t.$theme.colors.calendarHeaderForeground,backgroundColor:t.$theme.colors.calendarHeaderBackground,whiteSpace:"nowrap"}});Qt.displayName="StyledMonthHeader";Qt.displayName="StyledMonthHeader";var Zt=X("button",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=t.$isFocusVisible,o=t.$density;return ne(ne({},o===oe.high?n.LabelMedium:n.LabelLarge),{},{alignItems:"center",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,color:a.calendarHeaderForeground,cursor:"pointer",display:"flex",outline:"none",":focus":{boxShadow:e?"0 0 0 3px ".concat(a.accent):"none"}})});Zt.displayName="StyledMonthYearSelectButton";Zt.displayName="StyledMonthYearSelectButton";var Gt=X("span",function(t){var r=t.$theme.direction==="rtl"?"marginRight":"marginLeft";return xe({alignItems:"center",display:"flex"},r,t.$theme.sizing.scale500)});Gt.displayName="StyledMonthYearSelectIconContainer";Gt.displayName="StyledMonthYearSelectIconContainer";function Yr(t){var r=t.$theme,n=t.$disabled,a=t.$isFocusVisible;return{boxSizing:"border-box",display:"flex",color:n?r.colors.calendarHeaderForegroundDisabled:r.colors.calendarHeaderForeground,cursor:n?"default":"pointer",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0",marginBottom:0,marginTop:0,outline:"none",":focus":n?{}:{boxShadow:a?"0 0 0 3px ".concat(r.colors.accent):"none"}}}var Jt=X("button",Yr);Jt.displayName="StyledPrevButton";Jt.displayName="StyledPrevButton";var er=X("button",Yr);er.displayName="StyledNextButton";er.displayName="StyledNextButton";var tr=X("div",function(t){return{display:"inline-block"}});tr.displayName="StyledMonth";tr.displayName="StyledMonth";var rr=X("div",function(t){var r=t.$theme.sizing;return{whiteSpace:"nowrap",display:"flex",marginBottom:r.scale0}});rr.displayName="StyledWeek";rr.displayName="StyledWeek";function K(t,r){var n,a=t.substr(0,12)+"1"+t.substr(13),e=t.substr(0,13)+"1"+t.substr(14);return n={},xe(n,t,r),xe(n,a,r),xe(n,e,r),n}function it(t,r){var n=r.colors,a={":before":{content:null},":after":{content:null}},e=a,o={color:n.calendarForegroundDisabled,":before":{content:null},":after":{content:null}},i={color:n.calendarForegroundDisabled,":before":{borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",backgroundColor:"transparent"},":after":{borderTopLeftRadius:"0%",borderTopRightRadius:"0%",borderBottomLeftRadius:"0%",borderBottomRightRadius:"0%",borderTopColor:"transparent",borderBottomColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}},l={":before":{content:null}},u=1;t&&t[u]==="1"&&(e=o);var c=Object.assign({},K("001000000000000",{color:n.calendarDayForegroundPseudoSelected}),K("000100000000000",{color:n.calendarDayForegroundSelected}),K("001100000000000",{color:n.calendarDayForegroundSelectedHighlighted}),{"010000000000000":{color:n.calendarForegroundDisabled,":after":{content:null}}},{"011000000000000":{color:n.calendarForegroundDisabled,":after":{content:null}}},K("000000000000001",i),K("101000000000000",l),K("101010000000000",l),K("100100000000000",{color:n.calendarDayForegroundSelected}),K("101100000000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),K("100111100000000",{color:n.calendarDayForegroundSelected,":before":{content:null}}),K("101111100000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),K("100111000000000",{color:n.calendarDayForegroundSelected}),K("100110100000000",{color:n.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),K("100100001010000",{color:n.calendarDayForegroundSelected}),K("100100001001000",{color:n.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),K("101000001010000",{":before":{left:null,right:"50%"}}),{"101000001001000":{}},{"101000001001100":{}},{"101000001001010":{}},K("100010010000000",{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),{"101000001100000":{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}},K("100000001100000",{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),K("101111000000000",{color:n.calendarDayForegroundSelectedHighlighted}),K("101110100000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{left:null,right:"50%"}}),K("101010010000000",{color:n.calendarDayForegroundPseudoSelectedHighlighted,":before":{left:"0",width:"100%"}}),K("100000000000001",i),K("100000001010001",i),K("100000001001001",i),K("100010000000001",i));return c[t]||e}var nr=X("div",function(t){var r=t.$disabled,n=t.$isFocusVisible,a=t.$isHighlighted,e=t.$peekNextMonth,o=t.$pseudoSelected,i=t.$range,l=t.$selected,u=t.$outsideMonth,c=t.$outsideMonthWithinRange,y=t.$hasDateLabel,p=t.$density,h=t.$hasLockedBehavior,v=t.$selectedInput,g=t.$value,O=t.$theme,D=O.colors,_=O.typography,$=O.sizing,k=da(t),w;y?p===oe.high?w="60px":w="70px":p===oe.high?w="40px":w="48px";var B=Array.isArray(g)?g:[g,null],H=fa(B,2),T=H[0],E=H[1],P=v===$e.startDate?E!==null&&typeof E<"u":T!==null&&typeof T<"u",L=i&&!(h&&!P);return ne(ne(ne({},p===oe.high?_.ParagraphSmall:_.ParagraphMedium),{},{boxSizing:"border-box",position:"relative",cursor:r||!e&&u?"default":"pointer",color:D.calendarForeground,display:"inline-block",width:p===oe.high?"42px":"50px",height:w,lineHeight:p===oe.high?$.scale700:$.scale900,textAlign:"center",paddingTop:$.scale300,paddingBottom:$.scale300,paddingLeft:$.scale300,paddingRight:$.scale300,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,outline:"none",backgroundColor:"transparent",transform:"scale(1)"},it(k,t.$theme)),{},{":after":ne(ne({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",boxShadow:n&&(!u||e)?"0 0 0 3px ".concat(D.accent):"none",backgroundColor:l?D.calendarDayBackgroundSelectedHighlighted:o&&a?D.calendarDayBackgroundPseudoSelectedHighlighted:D.calendarBackground,height:y?"100%":p===oe.high?"42px":"50px",width:"100%",position:"absolute",top:y?0:"-1px",left:0,paddingTop:$.scale200,paddingBottom:$.scale200,borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderTopColor:D.borderSelected,borderBottomColor:D.borderSelected,borderRightColor:D.borderSelected,borderLeftColor:D.borderSelected,borderTopLeftRadius:y?$.scale800:"100%",borderTopRightRadius:y?$.scale800:"100%",borderBottomLeftRadius:y?$.scale800:"100%",borderBottomRightRadius:y?$.scale800:"100%"},it(k,t.$theme)[":after"]||{}),c?{content:null}:{})},L?{":before":ne(ne({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",backgroundColor:D.mono300,position:"absolute",height:"100%",width:"50%",top:0,left:"50%",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftWidth:"0",borderRightWidth:"0",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopColor:"transparent",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},it(k,t.$theme)[":before"]||{}),c?{backgroundColor:D.mono300,left:"0",width:"100%",content:'""'}:{})}:{})});nr.displayName="StyledDay";nr.displayName="StyledDay";var ar=X("div",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=t.$selected;return ne(ne({},n.ParagraphXSmall),{},{color:e?a.contentInverseTertiary:a.contentTertiary})});ar.displayName="StyledDayLabel";ar.displayName="StyledDayLabel";var or=X("div",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=r.sizing,o=t.$density;return ne(ne({},n.LabelMedium),{},{color:a.contentTertiary,boxSizing:"border-box",position:"relative",cursor:"default",display:"inline-block",width:o===oe.high?"42px":"50px",height:o===oe.high?"40px":"48px",textAlign:"center",lineHeight:e.scale900,paddingTop:e.scale300,paddingBottom:e.scale300,paddingLeft:e.scale200,paddingRight:e.scale200,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,backgroundColor:"transparent"})});or.displayName="StyledWeekdayHeader";or.displayName="StyledWeekdayHeader";function mt(t){"@babel/helpers - typeof";return mt=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},mt(t)}function ye(){return ye=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ye.apply(this,arguments)}function be(t,r){return Da(t)||Oa(t,r)||ba(t,r)||ma()}function ma(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1 +1 @@
1
- import{r as i,j as c,bs as g,bP as b}from"./index.7HEH_7fJ.js";import{a as m}from"./useBasicWidgetState.6R32QW2v.js";import"./FormClearHelper.BkPbs0OF.js";const f=(t,e)=>t.getStringValue(e),p=t=>t.default??null,C=t=>t.value??null,d=(t,e,r,o)=>{e.setStringValue(t,r.value,{fromUi:r.fromUi},o)},P=({element:t,disabled:e,widgetMgr:r,fragmentId:o})=>{var l;const[s,a]=m({getStateFromWidgetMgr:f,getDefaultStateFromProto:p,getCurrStateFromProto:C,updateWidgetMgrState:d,element:t,widgetMgr:r,fragmentId:o}),u=i.useCallback(n=>{a({value:n,fromUi:!0})},[a]);return c(b,{label:t.label,labelVisibility:g((l=t.labelVisibility)==null?void 0:l.value),help:t.help,onChange:u,disabled:e,value:s})},k=i.memo(P);export{k as default};
1
+ import{r as i,j as c,bs as g,bP as b}from"./index.KPwXWqBk.js";import{a as m}from"./useBasicWidgetState.Bw_fxTtX.js";import"./FormClearHelper.BlCIuWCo.js";const f=(t,e)=>t.getStringValue(e),p=t=>t.default??null,C=t=>t.value??null,d=(t,e,r,o)=>{e.setStringValue(t,r.value,{fromUi:r.fromUi},o)},P=({element:t,disabled:e,widgetMgr:r,fragmentId:o})=>{var l;const[s,a]=m({getStateFromWidgetMgr:f,getDefaultStateFromProto:p,getCurrStateFromProto:C,updateWidgetMgrState:d,element:t,widgetMgr:r,fragmentId:o}),u=i.useCallback(n=>{a({value:n,fromUi:!0})},[a]);return c(b,{label:t.label,labelVisibility:g((l=t.labelVisibility)==null?void 0:l.value),help:t.help,onChange:u,disabled:e,value:s})},k=i.memo(P);export{k as default};
@@ -1 +1 @@
1
- import{n as V,bi as U,r as i,bj as P,j as l}from"./index.7HEH_7fJ.js";const R=V("iframe",{target:"eymnmwl0"})(({theme:a})=>({colorScheme:"normal",border:"none",padding:a.spacing.none,margin:a.spacing.none,width:"100%",aspectRatio:"16 / 9"})),w=528;function A({element:a,width:f,endpoints:m,elementMgr:c}){const n=i.useRef(null),{type:E,url:p,startTime:o,subtitles:y,endTime:d,loop:u,autoplay:T,muted:h}=a,S=i.useMemo(()=>{if(!a.id)return!0;const e=c.getElementState(a.id,"preventAutoplay");return e||c.setElementState(a.id,"preventAutoplay",!0),e??!1},[a.id,c]);i.useEffect(()=>{n.current&&(n.current.currentTime=o)},[o]),i.useEffect(()=>{const e=n.current,t=()=>{e&&(e.currentTime=a.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[a]),i.useEffect(()=>{const e=n.current;if(!e)return;let t=!1;const s=()=>{d>0&&e.currentTime>=d&&(u?(e.currentTime=o||0,e.play()):t||(t=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",s),()=>{e&&d>0&&e.removeEventListener("timeupdate",s)}},[d,u,o]),i.useEffect(()=>{const e=n.current;if(!e)return;const t=()=>{u&&(e.currentTime=o||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[u,o]);const g=e=>{const{startTime:t,endTime:s,loop:L,autoplay:b,muted:N}=a,r=new URL(e);if(t&&!isNaN(t)&&r.searchParams.append("start",t.toString()),s&&!isNaN(s)&&r.searchParams.append("end",s.toString()),L){r.searchParams.append("loop","1");const v=r.pathname.split("/").pop();v&&r.searchParams.append("playlist",v)}return b&&r.searchParams.append("autoplay","1"),N&&r.searchParams.append("mute","1"),r.toString()};return E===P.Type.YOUTUBE_IFRAME?l(R,{className:"stVideo","data-testid":"stVideo",title:p,src:g(p),allow:"autoplay; encrypted-media",allowFullScreen:!0}):l("video",{className:"stVideo","data-testid":"stVideo",ref:n,controls:!0,muted:h,autoPlay:T&&!S,src:m.buildMediaURL(p),style:{width:f,height:f===0?w:void 0},crossOrigin:void 0,children:y&&y.map((e,t)=>l("track",{kind:"captions",src:m.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0},t))})}const $=U(i.memo(A));export{$ as default};
1
+ import{n as V,bi as U,r as i,bj as P,j as l}from"./index.KPwXWqBk.js";const R=V("iframe",{target:"eymnmwl0"})(({theme:a})=>({colorScheme:"normal",border:"none",padding:a.spacing.none,margin:a.spacing.none,width:"100%",aspectRatio:"16 / 9"})),w=528;function A({element:a,width:f,endpoints:m,elementMgr:c}){const n=i.useRef(null),{type:E,url:p,startTime:o,subtitles:y,endTime:d,loop:u,autoplay:T,muted:h}=a,S=i.useMemo(()=>{if(!a.id)return!0;const e=c.getElementState(a.id,"preventAutoplay");return e||c.setElementState(a.id,"preventAutoplay",!0),e??!1},[a.id,c]);i.useEffect(()=>{n.current&&(n.current.currentTime=o)},[o]),i.useEffect(()=>{const e=n.current,t=()=>{e&&(e.currentTime=a.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[a]),i.useEffect(()=>{const e=n.current;if(!e)return;let t=!1;const s=()=>{d>0&&e.currentTime>=d&&(u?(e.currentTime=o||0,e.play()):t||(t=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",s),()=>{e&&d>0&&e.removeEventListener("timeupdate",s)}},[d,u,o]),i.useEffect(()=>{const e=n.current;if(!e)return;const t=()=>{u&&(e.currentTime=o||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[u,o]);const g=e=>{const{startTime:t,endTime:s,loop:L,autoplay:b,muted:N}=a,r=new URL(e);if(t&&!isNaN(t)&&r.searchParams.append("start",t.toString()),s&&!isNaN(s)&&r.searchParams.append("end",s.toString()),L){r.searchParams.append("loop","1");const v=r.pathname.split("/").pop();v&&r.searchParams.append("playlist",v)}return b&&r.searchParams.append("autoplay","1"),N&&r.searchParams.append("mute","1"),r.toString()};return E===P.Type.YOUTUBE_IFRAME?l(R,{className:"stVideo","data-testid":"stVideo",title:p,src:g(p),allow:"autoplay; encrypted-media",allowFullScreen:!0}):l("video",{className:"stVideo","data-testid":"stVideo",ref:n,controls:!0,muted:h,autoPlay:T&&!S,src:m.buildMediaURL(p),style:{width:f,height:f===0?w:void 0},crossOrigin:void 0,children:y&&y.map((e,t)=>l("track",{kind:"captions",src:m.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0},t))})}const $=U(i.memo(A));export{$ as default};
@@ -1 +1 @@
1
- import{r as s,bh as U,y as k,cr as x,B as A,j as l,bs as B,bF as L,bt as P,ba as D,bu as j}from"./index.7HEH_7fJ.js";import{u as w}from"./uniqueId.BdUnRe3-.js";import{u as O,a as _,b as K}from"./useOnInputChange.C4OiWI1_.js";import{I as $}from"./InputInstructions.CHpHVupe.js";import{a as q}from"./useBasicWidgetState.6R32QW2v.js";import{T as G}from"./textarea.DQh9RYKV.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.BkPbs0OF.js";import"./base-input.BBFJwxWO.js";const T=(a,t)=>a.getStringValue(t)??t.default??null,N=a=>a.default??null,J=a=>a.value??null,M=(a,t,o,u)=>{t.setStringValue(a,o.value,{fromUi:o.fromUi},u)},Q=({disabled:a,element:t,widgetMgr:o,fragmentId:u})=>{var f;const p=s.useRef(w("text_area_")).current,{values:[W],elementRef:S}=U(s.useMemo(()=>["width"],[])),[r,n]=s.useState(!1),[y,b]=s.useState(!1),[i,d]=s.useState(T(o,t)??null),I=s.useCallback(()=>{d(t.default??null),n(!0)},[t]),[F,c]=q({getStateFromWidgetMgr:T,getDefaultStateFromProto:N,getCurrStateFromProto:J,updateWidgetMgrState:M,element:t,widgetMgr:o,fragmentId:u,onFormCleared:I});O(F,i,d,r);const e=k(),m=s.useCallback(()=>{n(!1),c({value:i,fromUi:!0})},[i,c]),V=s.useCallback(()=>{r&&m(),b(!1)},[r,m]),v=s.useCallback(()=>{b(!0)},[]),C=_({formId:t.formId,maxChars:t.maxChars,setDirty:n,setUiValue:d,setValueWithSource:c}),R=K(t.formId,m,r,o,u,!0),{height:g,placeholder:z,formId:h}=t,E=x({formId:h})?o.allowFormEnterToSubmit(h):r,H=y&&W>e.breakpoints.hideWidgetDetails;return A("div",{className:"stTextArea","data-testid":"stTextArea",ref:S,children:[l(j,{label:t.label,disabled:a,labelVisibility:B((f=t.labelVisibility)==null?void 0:f.value),htmlFor:p,children:t.help&&l(L,{children:l(P,{content:t.help,placement:D.TOP_RIGHT})})}),l(G,{value:i??"",placeholder:z,onBlur:V,onFocus:v,onChange:C,onKeyDown:R,"aria-label":t.label,disabled:a,id:p,overrides:{Input:{style:{lineHeight:e.lineHeights.inputWidget,height:g?`${g}px`:"",minHeight:e.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,paddingBottom:e.spacing.lg,paddingTop:e.spacing.lg}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}}}}),H&&l($,{dirty:r,value:i??"",maxLength:t.maxChars,type:"multiline",inForm:x({formId:h}),allowEnterToSubmit:E})]})},it=s.memo(Q);export{it as default};
1
+ import{r as s,bh as U,y as k,cr as x,B as A,j as l,bs as B,bF as L,bt as P,ba as D,bu as j}from"./index.KPwXWqBk.js";import{u as w}from"./uniqueId.CPmOGhdZ.js";import{u as O,a as _,b as K}from"./useOnInputChange.D8qi7pm4.js";import{I as $}from"./InputInstructions.gFFpIc6i.js";import{a as q}from"./useBasicWidgetState.Bw_fxTtX.js";import{T as G}from"./textarea.BGGnQXtw.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.BlCIuWCo.js";import"./base-input.BUY9TLqO.js";const T=(a,t)=>a.getStringValue(t)??t.default??null,N=a=>a.default??null,J=a=>a.value??null,M=(a,t,o,u)=>{t.setStringValue(a,o.value,{fromUi:o.fromUi},u)},Q=({disabled:a,element:t,widgetMgr:o,fragmentId:u})=>{var f;const p=s.useRef(w("text_area_")).current,{values:[W],elementRef:S}=U(s.useMemo(()=>["width"],[])),[r,n]=s.useState(!1),[y,b]=s.useState(!1),[i,d]=s.useState(T(o,t)??null),I=s.useCallback(()=>{d(t.default??null),n(!0)},[t]),[F,c]=q({getStateFromWidgetMgr:T,getDefaultStateFromProto:N,getCurrStateFromProto:J,updateWidgetMgrState:M,element:t,widgetMgr:o,fragmentId:u,onFormCleared:I});O(F,i,d,r);const e=k(),m=s.useCallback(()=>{n(!1),c({value:i,fromUi:!0})},[i,c]),V=s.useCallback(()=>{r&&m(),b(!1)},[r,m]),v=s.useCallback(()=>{b(!0)},[]),C=_({formId:t.formId,maxChars:t.maxChars,setDirty:n,setUiValue:d,setValueWithSource:c}),R=K(t.formId,m,r,o,u,!0),{height:g,placeholder:z,formId:h}=t,E=x({formId:h})?o.allowFormEnterToSubmit(h):r,H=y&&W>e.breakpoints.hideWidgetDetails;return A("div",{className:"stTextArea","data-testid":"stTextArea",ref:S,children:[l(j,{label:t.label,disabled:a,labelVisibility:B((f=t.labelVisibility)==null?void 0:f.value),htmlFor:p,children:t.help&&l(L,{children:l(P,{content:t.help,placement:D.TOP_RIGHT})})}),l(G,{value:i??"",placeholder:z,onBlur:V,onFocus:v,onChange:C,onKeyDown:R,"aria-label":t.label,disabled:a,id:p,overrides:{Input:{style:{lineHeight:e.lineHeights.inputWidget,height:g?`${g}px`:"",minHeight:e.sizes.largestElementHeight,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,paddingBottom:e.spacing.lg,paddingTop:e.spacing.lg}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth}}}}),H&&l($,{dirty:r,value:i??"",maxLength:t.maxChars,type:"multiline",inForm:x({formId:h}),allowEnterToSubmit:E})]})},it=s.memo(Q);export{it as default};