@anoki/fse-ui 1.0.0-beta1.38.2 → 1.0.0-beta1.38.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs101.js.map +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs132.js +1 -1
- package/dist/index.cjs133.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs184.js +1 -1
- package/dist/index.cjs185.js +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs217.js.map +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs219.js.map +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs221.js.map +1 -1
- package/dist/index.cjs222.js +1 -1
- package/dist/index.cjs222.js.map +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs225.js.map +1 -1
- package/dist/index.cjs229.js +1 -1
- package/dist/index.cjs229.js.map +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/{index.cjs286.js → index.cjs241.js} +2 -2
- package/dist/{index.cjs286.js.map → index.cjs241.js.map} +1 -1
- package/dist/index.cjs243.js +2 -0
- package/dist/index.cjs243.js.map +1 -0
- package/dist/{index.cjs289.js → index.cjs244.js} +2 -2
- package/dist/{index.cjs289.js.map → index.cjs244.js.map} +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs251.js +2 -0
- package/dist/index.cjs251.js.map +1 -0
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs252.js.map +1 -1
- package/dist/index.cjs257.js +2 -0
- package/dist/index.cjs257.js.map +1 -0
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs261.js.map +1 -1
- package/dist/{index.cjs306.js → index.cjs262.js} +2 -2
- package/dist/{index.cjs306.js.map → index.cjs262.js.map} +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs263.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs264.js.map +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs267.js.map +1 -1
- package/dist/{index.cjs313.js → index.cjs269.js} +2 -2
- package/dist/{index.cjs313.js.map → index.cjs269.js.map} +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs270.js.map +1 -1
- package/dist/{index.cjs315.js → index.cjs271.js} +2 -2
- package/dist/{index.cjs315.js.map → index.cjs271.js.map} +1 -1
- package/dist/{index.cjs316.js → index.cjs272.js} +2 -2
- package/dist/{index.cjs316.js.map → index.cjs272.js.map} +1 -1
- package/dist/{index.cjs317.js → index.cjs273.js} +2 -2
- package/dist/{index.cjs317.js.map → index.cjs273.js.map} +1 -1
- package/dist/index.cjs275.js +2 -0
- package/dist/index.cjs275.js.map +1 -0
- package/dist/index.cjs276.js +2 -0
- package/dist/index.cjs276.js.map +1 -0
- package/dist/{index.cjs321.js → index.cjs277.js} +2 -2
- package/dist/{index.cjs321.js.map → index.cjs277.js.map} +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/{index.cjs324.js → index.cjs280.js} +2 -2
- package/dist/{index.cjs324.js.map → index.cjs280.js.map} +1 -1
- package/dist/index.cjs281.js +2 -0
- package/dist/{index.cjs325.js.map → index.cjs281.js.map} +1 -1
- package/dist/{index.cjs329.js → index.cjs285.js} +2 -2
- package/dist/{index.cjs329.js.map → index.cjs285.js.map} +1 -1
- package/dist/{index.cjs331.js → index.cjs287.js} +2 -2
- package/dist/{index.cjs331.js.map → index.cjs287.js.map} +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs288.js.map +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/{index.cjs334.js → index.cjs290.js} +2 -2
- package/dist/{index.cjs334.js.map → index.cjs290.js.map} +1 -1
- package/dist/{index.cjs335.js → index.cjs291.js} +2 -2
- package/dist/{index.cjs335.js.map → index.cjs291.js.map} +1 -1
- package/dist/index.cjs292.js +2 -0
- package/dist/{index.cjs336.js.map → index.cjs292.js.map} +1 -1
- package/dist/{index.cjs338.js → index.cjs294.js} +2 -2
- package/dist/{index.cjs338.js.map → index.cjs294.js.map} +1 -1
- package/dist/{index.cjs339.js → index.cjs295.js} +2 -2
- package/dist/{index.cjs339.js.map → index.cjs295.js.map} +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs296.js.map +1 -1
- package/dist/index.cjs298.js +2 -0
- package/dist/index.cjs298.js.map +1 -0
- package/dist/{index.cjs343.js → index.cjs299.js} +2 -2
- package/dist/{index.cjs343.js.map → index.cjs299.js.map} +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/{index.cjs344.js → index.cjs300.js} +2 -2
- package/dist/{index.cjs344.js.map → index.cjs300.js.map} +1 -1
- package/dist/{index.cjs248.js → index.cjs302.js} +1 -1
- package/dist/{index.cjs248.js.map → index.cjs302.js.map} +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs311.js +1 -1
- package/dist/index.cjs311.js.map +1 -1
- package/dist/index.cjs319.js +1 -1
- package/dist/index.cjs319.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs342.js +7 -1
- package/dist/index.cjs342.js.map +1 -1
- package/dist/{index.cjs391.js → index.cjs348.js} +2 -2
- package/dist/index.cjs348.js.map +1 -0
- package/dist/index.cjs35.js +1 -1
- package/dist/{index.cjs394.js → index.cjs351.js} +2 -2
- package/dist/{index.cjs394.js.map → index.cjs351.js.map} +1 -1
- package/dist/index.cjs353.js +2 -0
- package/dist/index.cjs353.js.map +1 -0
- package/dist/index.cjs354.js +1 -1
- package/dist/index.cjs354.js.map +1 -1
- package/dist/{index.cjs398.js → index.cjs355.js} +2 -2
- package/dist/{index.cjs398.js.map → index.cjs355.js.map} +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/{index.cjs403.js → index.cjs360.js} +1 -1
- package/dist/{index.cjs403.js.map → index.cjs360.js.map} +1 -1
- package/dist/index.cjs366.js +2 -0
- package/dist/index.cjs366.js.map +1 -0
- package/dist/index.cjs368.js +2 -0
- package/dist/index.cjs368.js.map +1 -0
- package/dist/index.cjs369.js +2 -0
- package/dist/index.cjs369.js.map +1 -0
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs374.js +2 -0
- package/dist/index.cjs374.js.map +1 -0
- package/dist/{index.cjs253.js → index.cjs376.js} +2 -2
- package/dist/{index.cjs253.js.map → index.cjs376.js.map} +1 -1
- package/dist/{index.cjs254.js → index.cjs377.js} +2 -2
- package/dist/{index.cjs254.js.map → index.cjs377.js.map} +1 -1
- package/dist/{index.cjs255.js → index.cjs378.js} +2 -2
- package/dist/{index.cjs255.js.map → index.cjs378.js.map} +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs388.js +2 -0
- package/dist/{index.cjs425.js.map → index.cjs388.js.map} +1 -1
- package/dist/{index.cjs426.js → index.cjs389.js} +2 -2
- package/dist/{index.cjs426.js.map → index.cjs389.js.map} +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/{index.cjs429.js → index.cjs392.js} +2 -2
- package/dist/{index.cjs429.js.map → index.cjs392.js.map} +1 -1
- package/dist/{index.cjs432.js → index.cjs395.js} +2 -2
- package/dist/{index.cjs432.js.map → index.cjs395.js.map} +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs397.js +1 -1
- package/dist/index.cjs397.js.map +1 -1
- package/dist/index.cjs399.js +2 -0
- package/dist/index.cjs399.js.map +1 -0
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/{index.cjs439.js → index.cjs402.js} +2 -2
- package/dist/{index.cjs439.js.map → index.cjs402.js.map} +1 -1
- package/dist/index.cjs404.js +2 -0
- package/dist/index.cjs404.js.map +1 -0
- package/dist/index.cjs405.js +2 -0
- package/dist/index.cjs405.js.map +1 -0
- package/dist/{index.cjs220.js → index.cjs406.js} +2 -2
- package/dist/{index.cjs220.js.map → index.cjs406.js.map} +1 -1
- package/dist/index.cjs407.js +2 -0
- package/dist/index.cjs407.js.map +1 -0
- package/dist/index.cjs408.js +2 -0
- package/dist/index.cjs408.js.map +1 -0
- package/dist/index.cjs409.js +1 -1
- package/dist/index.cjs409.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/{index.cjs224.js → index.cjs410.js} +2 -2
- package/dist/{index.cjs224.js.map → index.cjs410.js.map} +1 -1
- package/dist/index.cjs411.js +1 -1
- package/dist/index.cjs411.js.map +1 -1
- package/dist/index.cjs412.js +1 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/{index.cjs227.js → index.cjs413.js} +2 -2
- package/dist/{index.cjs227.js.map → index.cjs413.js.map} +1 -1
- package/dist/{index.cjs228.js → index.cjs414.js} +1 -1
- package/dist/{index.cjs228.js.map → index.cjs414.js.map} +1 -1
- package/dist/index.cjs415.js +2 -0
- package/dist/index.cjs415.js.map +1 -0
- package/dist/{index.cjs230.js → index.cjs416.js} +1 -1
- package/dist/{index.cjs230.js.map → index.cjs416.js.map} +1 -1
- package/dist/index.cjs417.js +1 -1
- package/dist/index.cjs417.js.map +1 -1
- package/dist/{index.cjs232.js → index.cjs418.js} +2 -2
- package/dist/{index.cjs232.js.map → index.cjs418.js.map} +1 -1
- package/dist/index.cjs419.js +2 -0
- package/dist/index.cjs419.js.map +1 -0
- package/dist/index.cjs42.js +1 -1
- package/dist/{index.cjs234.js → index.cjs420.js} +2 -2
- package/dist/{index.cjs234.js.map → index.cjs420.js.map} +1 -1
- package/dist/{index.cjs235.js → index.cjs421.js} +1 -1
- package/dist/{index.cjs235.js.map → index.cjs421.js.map} +1 -1
- package/dist/index.cjs424.js +2 -0
- package/dist/index.cjs424.js.map +1 -0
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs431.js +2 -0
- package/dist/index.cjs431.js.map +1 -0
- package/dist/index.cjs435.js +2 -0
- package/dist/index.cjs435.js.map +1 -0
- package/dist/index.cjs436.js +1 -1
- package/dist/index.cjs436.js.map +1 -1
- package/dist/index.cjs438.js +2 -0
- package/dist/index.cjs438.js.map +1 -0
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs440.js +2 -0
- package/dist/index.cjs440.js.map +1 -0
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs441.js.map +1 -1
- package/dist/index.cjs442.js +1 -1
- package/dist/index.cjs442.js.map +1 -1
- package/dist/index.cjs443.js +9 -1
- package/dist/index.cjs443.js.map +1 -1
- package/dist/index.cjs444.js +8 -3
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -2
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +1 -27
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs449.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs456.js +1 -1
- package/dist/index.cjs456.js.map +1 -1
- package/dist/index.cjs457.js +1 -1
- package/dist/index.cjs457.js.map +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs458.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/{index.cjs475.js → index.cjs463.js} +2 -2
- package/dist/{index.cjs475.js.map → index.cjs463.js.map} +1 -1
- package/dist/{index.cjs476.js → index.cjs464.js} +2 -2
- package/dist/{index.cjs476.js.map → index.cjs464.js.map} +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/{index.cjs480.js → index.cjs468.js} +2 -2
- package/dist/{index.cjs480.js.map → index.cjs468.js.map} +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/{index.cjs498.js → index.cjs484.js} +2 -2
- package/dist/{index.cjs498.js.map → index.cjs484.js.map} +1 -1
- package/dist/index.cjs485.js +2 -0
- package/dist/index.cjs485.js.map +1 -0
- package/dist/{index.cjs499.js → index.cjs486.js} +1 -1
- package/dist/index.cjs486.js.map +1 -0
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs492.js +2 -0
- package/dist/index.cjs492.js.map +1 -0
- package/dist/index.cjs493.js +2 -0
- package/dist/index.cjs493.js.map +1 -0
- package/dist/index.cjs494.js +2 -0
- package/dist/index.cjs494.js.map +1 -0
- package/dist/index.cjs495.js +2 -0
- package/dist/index.cjs495.js.map +1 -0
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs500.js +1 -1
- package/dist/index.cjs500.js.map +1 -1
- package/dist/index.cjs501.js +1 -1
- package/dist/index.cjs502.js +28 -0
- package/dist/index.cjs502.js.map +1 -0
- package/dist/index.cjs503.js +2 -0
- package/dist/index.cjs503.js.map +1 -0
- package/dist/index.cjs504.js +2 -0
- package/dist/index.cjs504.js.map +1 -0
- package/dist/index.cjs505.js +3 -0
- package/dist/index.cjs505.js.map +1 -0
- package/dist/index.cjs506.js +1 -1
- package/dist/index.cjs506.js.map +1 -1
- package/dist/index.cjs507.js +1 -1
- package/dist/index.cjs508.js +1 -1
- package/dist/index.cjs508.js.map +1 -1
- package/dist/index.cjs509.js +1 -1
- package/dist/index.cjs509.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs510.js +1 -1
- package/dist/index.cjs510.js.map +1 -1
- package/dist/index.cjs511.js +1 -1
- package/dist/index.cjs511.js.map +1 -1
- package/dist/index.cjs512.js +1 -1
- package/dist/index.cjs512.js.map +1 -1
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs513.js.map +1 -1
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs514.js.map +1 -1
- package/dist/index.cjs515.js +1 -1
- package/dist/index.cjs515.js.map +1 -1
- package/dist/index.cjs516.js +1 -1
- package/dist/index.cjs516.js.map +1 -1
- package/dist/index.cjs517.js +1 -1
- package/dist/index.cjs517.js.map +1 -1
- package/dist/index.cjs518.js +1 -1
- package/dist/index.cjs518.js.map +1 -1
- package/dist/index.cjs519.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs526.js +1 -1
- package/dist/index.cjs527.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs536.js +1 -1
- package/dist/index.cjs537.js +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs544.js +1 -1
- package/dist/index.cjs549.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs551.js +1 -1
- package/dist/index.cjs553.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs570.js +1 -1
- package/dist/index.cjs570.js.map +1 -1
- package/dist/index.cjs571.js +1 -1
- package/dist/index.cjs571.js.map +1 -1
- package/dist/index.cjs572.js +1 -1
- package/dist/index.cjs572.js.map +1 -1
- package/dist/index.cjs573.js +1 -1
- package/dist/index.cjs573.js.map +1 -1
- package/dist/index.cjs574.js +1 -1
- package/dist/index.cjs575.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs583.js +1 -1
- package/dist/index.cjs583.js.map +1 -1
- package/dist/index.cjs584.js +1 -1
- package/dist/index.cjs584.js.map +1 -1
- package/dist/index.cjs585.js +1 -1
- package/dist/index.cjs585.js.map +1 -1
- package/dist/index.cjs586.js +1 -1
- package/dist/index.cjs586.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es10.js +5 -5
- package/dist/index.es100.js +1 -1
- package/dist/index.es101.js +43 -34
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +3 -3
- package/dist/index.es104.js +5 -5
- package/dist/index.es105.js +2 -2
- package/dist/index.es106.js +1 -1
- package/dist/index.es107.js +1 -1
- package/dist/index.es108.js +2 -2
- package/dist/index.es109.js +2 -2
- package/dist/index.es11.js +2 -2
- package/dist/index.es110.js +4 -4
- package/dist/index.es111.js +2 -2
- package/dist/index.es112.js +2 -2
- package/dist/index.es113.js +2 -2
- package/dist/index.es114.js +2 -2
- package/dist/index.es115.js +1 -1
- package/dist/index.es116.js +3 -3
- package/dist/index.es117.js +2 -2
- package/dist/index.es118.js +2 -2
- package/dist/index.es119.js +1 -1
- package/dist/index.es12.js +3 -3
- package/dist/index.es120.js +2 -2
- package/dist/index.es121.js +1 -1
- package/dist/index.es122.js +4 -4
- package/dist/index.es123.js +2 -2
- package/dist/index.es124.js +2 -2
- package/dist/index.es125.js +4 -4
- package/dist/index.es126.js +2 -2
- package/dist/index.es127.js +4 -4
- package/dist/index.es128.js +2 -2
- package/dist/index.es129.js +3 -3
- package/dist/index.es13.js +2 -2
- package/dist/index.es130.js +2 -2
- package/dist/index.es131.js +4 -4
- package/dist/index.es132.js +2 -2
- package/dist/index.es133.js +1 -1
- package/dist/index.es134.js +2 -2
- package/dist/index.es135.js +3 -3
- package/dist/index.es136.js +1 -1
- package/dist/index.es137.js +3 -3
- package/dist/index.es138.js +2 -2
- package/dist/index.es139.js +2 -2
- package/dist/index.es14.js +2 -2
- package/dist/index.es140.js +3 -3
- package/dist/index.es141.js +2 -2
- package/dist/index.es142.js +1 -1
- package/dist/index.es143.js +1 -1
- package/dist/index.es144.js +3 -3
- package/dist/index.es145.js +1 -1
- package/dist/index.es146.js +2 -2
- package/dist/index.es147.js +1 -1
- package/dist/index.es148.js +2 -2
- package/dist/index.es149.js +7 -7
- package/dist/index.es15.js +3 -3
- package/dist/index.es150.js +2 -2
- package/dist/index.es151.js +1 -1
- package/dist/index.es152.js +1 -1
- package/dist/index.es153.js +3 -3
- package/dist/index.es154.js +3 -3
- package/dist/index.es155.js +3 -3
- package/dist/index.es156.js +3 -3
- package/dist/index.es157.js +3 -3
- package/dist/index.es158.js +3 -3
- package/dist/index.es159.js +3 -3
- package/dist/index.es16.js +3 -3
- package/dist/index.es160.js +3 -3
- package/dist/index.es161.js +3 -3
- package/dist/index.es162.js +3 -3
- package/dist/index.es163.js +3 -3
- package/dist/index.es164.js +3 -3
- package/dist/index.es165.js +3 -3
- package/dist/index.es166.js +3 -3
- package/dist/index.es167.js +3 -3
- package/dist/index.es168.js +3 -3
- package/dist/index.es169.js +3 -3
- package/dist/index.es17.js +2 -2
- package/dist/index.es170.js +3 -3
- package/dist/index.es171.js +3 -3
- package/dist/index.es172.js +3 -3
- package/dist/index.es173.js +3 -3
- package/dist/index.es174.js +3 -3
- package/dist/index.es175.js +3 -3
- package/dist/index.es176.js +2 -2
- package/dist/index.es177.js +2 -2
- package/dist/index.es178.js +2 -2
- package/dist/index.es179.js +3 -3
- package/dist/index.es18.js +3 -3
- package/dist/index.es180.js +3 -3
- package/dist/index.es181.js +3 -3
- package/dist/index.es182.js +1 -1
- package/dist/index.es183.js +3 -3
- package/dist/index.es184.js +3 -3
- package/dist/index.es185.js +3 -3
- package/dist/index.es186.js +3 -3
- package/dist/index.es187.js +3 -3
- package/dist/index.es188.js +3 -3
- package/dist/index.es189.js +3 -3
- package/dist/index.es19.js +3 -3
- package/dist/index.es190.js +3 -3
- package/dist/index.es191.js +3 -3
- package/dist/index.es192.js +2 -2
- package/dist/index.es193.js +3 -3
- package/dist/index.es194.js +3 -3
- package/dist/index.es195.js +3 -3
- package/dist/index.es196.js +3 -3
- package/dist/index.es197.js +3 -3
- package/dist/index.es198.js +3 -3
- package/dist/index.es199.js +3 -3
- package/dist/index.es20.js +2 -2
- package/dist/index.es200.js +2 -2
- package/dist/index.es201.js +2 -2
- package/dist/index.es202.js +3 -3
- package/dist/index.es203.js +3 -3
- package/dist/index.es204.js +3 -3
- package/dist/index.es205.js +3 -3
- package/dist/index.es206.js +3 -3
- package/dist/index.es207.js +3 -3
- package/dist/index.es208.js +3 -3
- package/dist/index.es209.js +3 -3
- package/dist/index.es21.js +3 -3
- package/dist/index.es210.js +1 -1
- package/dist/index.es211.js +1 -1
- package/dist/index.es212.js +1 -1
- package/dist/index.es213.js +1 -1
- package/dist/index.es214.js +1 -1
- package/dist/index.es215.js +3 -3
- package/dist/index.es216.js +1 -1
- package/dist/index.es217.js +3 -1801
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +13 -472
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +27 -178
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es221.js +2 -123
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +2 -285
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es225.js +15 -34
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es229.js +22 -38
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es233.js +22 -39
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es238.js +207 -15
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es24.js +4 -4
- package/dist/{index.es286.js → index.es241.js} +4 -4
- package/dist/{index.es286.js.map → index.es241.js.map} +1 -1
- package/dist/index.es243.js +147 -0
- package/dist/index.es243.js.map +1 -0
- package/dist/{index.es289.js → index.es244.js} +5 -5
- package/dist/{index.es289.js.map → index.es244.js.map} +1 -1
- package/dist/index.es25.js +3 -3
- package/dist/index.es251.js +136 -0
- package/dist/index.es251.js.map +1 -0
- package/dist/index.es252.js +19 -8
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es257.js +1804 -0
- package/dist/index.es257.js.map +1 -0
- package/dist/index.es26.js +3 -3
- package/dist/index.es261.js +4 -47
- package/dist/index.es261.js.map +1 -1
- package/dist/{index.es306.js → index.es262.js} +2 -2
- package/dist/{index.es306.js.map → index.es262.js.map} +1 -1
- package/dist/index.es263.js +5 -44
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +5 -2
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es267.js +51 -2
- package/dist/index.es267.js.map +1 -1
- package/dist/{index.es313.js → index.es269.js} +16 -16
- package/dist/{index.es313.js.map → index.es269.js.map} +1 -1
- package/dist/index.es27.js +3 -3
- package/dist/index.es270.js +80 -15
- package/dist/index.es270.js.map +1 -1
- package/dist/{index.es315.js → index.es271.js} +2 -2
- package/dist/{index.es315.js.map → index.es271.js.map} +1 -1
- package/dist/{index.es316.js → index.es272.js} +3 -3
- package/dist/{index.es316.js.map → index.es272.js.map} +1 -1
- package/dist/{index.es317.js → index.es273.js} +3 -3
- package/dist/{index.es317.js.map → index.es273.js.map} +1 -1
- package/dist/index.es275.js +30 -0
- package/dist/index.es275.js.map +1 -0
- package/dist/index.es276.js +7 -0
- package/dist/index.es276.js.map +1 -0
- package/dist/{index.es321.js → index.es277.js} +3 -3
- package/dist/{index.es321.js.map → index.es277.js.map} +1 -1
- package/dist/index.es28.js +3 -3
- package/dist/{index.es324.js → index.es280.js} +3 -3
- package/dist/{index.es324.js.map → index.es280.js.map} +1 -1
- package/dist/index.es281.js +7 -0
- package/dist/{index.es325.js.map → index.es281.js.map} +1 -1
- package/dist/{index.es329.js → index.es285.js} +3 -3
- package/dist/{index.es329.js.map → index.es285.js.map} +1 -1
- package/dist/{index.es331.js → index.es287.js} +3 -3
- package/dist/{index.es331.js.map → index.es287.js.map} +1 -1
- package/dist/index.es288.js +28 -144
- package/dist/index.es288.js.map +1 -1
- package/dist/index.es29.js +2 -2
- package/dist/{index.es334.js → index.es290.js} +3 -3
- package/dist/{index.es334.js.map → index.es290.js.map} +1 -1
- package/dist/{index.es335.js → index.es291.js} +3 -3
- package/dist/{index.es335.js.map → index.es291.js.map} +1 -1
- package/dist/index.es292.js +9 -0
- package/dist/{index.es336.js.map → index.es292.js.map} +1 -1
- package/dist/{index.es338.js → index.es294.js} +3 -3
- package/dist/{index.es338.js.map → index.es294.js.map} +1 -1
- package/dist/{index.es339.js → index.es295.js} +3 -3
- package/dist/{index.es339.js.map → index.es295.js.map} +1 -1
- package/dist/index.es296.js +6 -133
- package/dist/index.es296.js.map +1 -1
- package/dist/index.es298.js +30 -0
- package/dist/index.es298.js.map +1 -0
- package/dist/{index.es343.js → index.es299.js} +4 -4
- package/dist/{index.es343.js.map → index.es299.js.map} +1 -1
- package/dist/index.es3.js +6 -6
- package/dist/index.es30.js +2 -2
- package/dist/{index.es344.js → index.es300.js} +9 -9
- package/dist/{index.es344.js.map → index.es300.js.map} +1 -1
- package/dist/{index.es248.js → index.es302.js} +1 -1
- package/dist/{index.es248.js.map → index.es302.js.map} +1 -1
- package/dist/index.es31.js +1 -1
- package/dist/index.es311.js +1 -53
- package/dist/index.es311.js.map +1 -1
- package/dist/index.es319.js +25 -27
- package/dist/index.es319.js.map +1 -1
- package/dist/index.es32.js +3 -3
- package/dist/index.es320.js +6 -4
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es33.js +3 -3
- package/dist/index.es34.js +2 -2
- package/dist/index.es342.js +123 -26
- package/dist/index.es342.js.map +1 -1
- package/dist/index.es348.js +6 -0
- package/dist/index.es348.js.map +1 -0
- package/dist/index.es35.js +3 -3
- package/dist/{index.es394.js → index.es351.js} +3 -3
- package/dist/{index.es394.js.map → index.es351.js.map} +1 -1
- package/dist/index.es353.js +29 -0
- package/dist/index.es353.js.map +1 -0
- package/dist/index.es354.js +19 -1
- package/dist/index.es354.js.map +1 -1
- package/dist/{index.es398.js → index.es355.js} +2 -2
- package/dist/{index.es398.js.map → index.es355.js.map} +1 -1
- package/dist/index.es36.js +3 -3
- package/dist/{index.es403.js → index.es360.js} +1 -1
- package/dist/{index.es403.js.map → index.es360.js.map} +1 -1
- package/dist/index.es366.js +38 -0
- package/dist/index.es366.js.map +1 -0
- package/dist/index.es368.js +12 -0
- package/dist/index.es368.js.map +1 -0
- package/dist/index.es369.js +20 -0
- package/dist/index.es369.js.map +1 -0
- package/dist/index.es37.js +2 -2
- package/dist/index.es374.js +53 -0
- package/dist/index.es374.js.map +1 -0
- package/dist/{index.es253.js → index.es376.js} +4 -4
- package/dist/{index.es253.js.map → index.es376.js.map} +1 -1
- package/dist/{index.es254.js → index.es377.js} +3 -3
- package/dist/{index.es254.js.map → index.es377.js.map} +1 -1
- package/dist/{index.es255.js → index.es378.js} +4 -4
- package/dist/{index.es255.js.map → index.es378.js.map} +1 -1
- package/dist/index.es38.js +2 -2
- package/dist/index.es388.js +9 -0
- package/dist/{index.es425.js.map → index.es388.js.map} +1 -1
- package/dist/{index.es426.js → index.es389.js} +3 -3
- package/dist/{index.es426.js.map → index.es389.js.map} +1 -1
- package/dist/index.es39.js +6 -6
- package/dist/{index.es429.js → index.es392.js} +4 -4
- package/dist/{index.es429.js.map → index.es392.js.map} +1 -1
- package/dist/{index.es432.js → index.es395.js} +4 -4
- package/dist/{index.es432.js.map → index.es395.js.map} +1 -1
- package/dist/index.es396.js +104 -26
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es397.js +5 -17
- package/dist/index.es397.js.map +1 -1
- package/dist/index.es399.js +36 -0
- package/dist/index.es399.js.map +1 -0
- package/dist/index.es4.js +7 -7
- package/dist/index.es40.js +6 -6
- package/dist/{index.es439.js → index.es402.js} +2 -2
- package/dist/{index.es439.js.map → index.es402.js.map} +1 -1
- package/dist/index.es404.js +477 -0
- package/dist/index.es404.js.map +1 -0
- package/dist/index.es405.js +181 -0
- package/dist/index.es405.js.map +1 -0
- package/dist/{index.es220.js → index.es406.js} +4 -4
- package/dist/{index.es220.js.map → index.es406.js.map} +1 -1
- package/dist/index.es407.js +126 -0
- package/dist/index.es407.js.map +1 -0
- package/dist/index.es408.js +288 -0
- package/dist/index.es408.js.map +1 -0
- package/dist/index.es409.js +204 -35
- package/dist/index.es409.js.map +1 -1
- package/dist/index.es41.js +2 -2
- package/dist/{index.es224.js → index.es410.js} +7 -7
- package/dist/{index.es224.js.map → index.es410.js.map} +1 -1
- package/dist/index.es411.js +34 -9
- package/dist/index.es411.js.map +1 -1
- package/dist/index.es412.js +342 -17
- package/dist/index.es412.js.map +1 -1
- package/dist/{index.es227.js → index.es413.js} +4 -4
- package/dist/{index.es227.js.map → index.es413.js.map} +1 -1
- package/dist/{index.es228.js → index.es414.js} +1 -1
- package/dist/{index.es228.js.map → index.es414.js.map} +1 -1
- package/dist/index.es415.js +41 -0
- package/dist/index.es415.js.map +1 -0
- package/dist/{index.es230.js → index.es416.js} +1 -1
- package/dist/{index.es230.js.map → index.es416.js.map} +1 -1
- package/dist/index.es417.js +179 -50
- package/dist/index.es417.js.map +1 -1
- package/dist/{index.es232.js → index.es418.js} +2 -2
- package/dist/{index.es232.js.map → index.es418.js.map} +1 -1
- package/dist/index.es419.js +42 -0
- package/dist/index.es419.js.map +1 -0
- package/dist/index.es42.js +1 -1
- package/dist/{index.es234.js → index.es420.js} +3 -3
- package/dist/{index.es234.js.map → index.es420.js.map} +1 -1
- package/dist/{index.es235.js → index.es421.js} +1 -1
- package/dist/{index.es235.js.map → index.es421.js.map} +1 -1
- package/dist/index.es424.js +6 -0
- package/dist/index.es424.js.map +1 -0
- package/dist/index.es43.js +2 -2
- package/dist/index.es431.js +8 -0
- package/dist/index.es431.js.map +1 -0
- package/dist/index.es435.js +12 -0
- package/dist/index.es435.js.map +1 -0
- package/dist/index.es436.js +189 -33
- package/dist/index.es436.js.map +1 -1
- package/dist/index.es438.js +50 -0
- package/dist/index.es438.js.map +1 -0
- package/dist/index.es44.js +6 -6
- package/dist/index.es440.js +48 -0
- package/dist/index.es440.js.map +1 -0
- package/dist/index.es441.js +7 -135
- package/dist/index.es441.js.map +1 -1
- package/dist/index.es442.js +2 -8
- package/dist/index.es442.js.map +1 -1
- package/dist/index.es443.js +33 -2
- package/dist/index.es443.js.map +1 -1
- package/dist/index.es444.js +235 -23
- package/dist/index.es444.js.map +1 -1
- package/dist/index.es446.js +6 -5
- package/dist/index.es446.js.map +1 -1
- package/dist/index.es447.js +24 -518
- package/dist/index.es447.js.map +1 -1
- package/dist/index.es448.js +66 -3673
- package/dist/index.es448.js.map +1 -1
- package/dist/index.es449.js +29 -5
- package/dist/index.es449.js.map +1 -1
- package/dist/index.es45.js +5 -5
- package/dist/index.es450.js +33 -2
- package/dist/index.es450.js.map +1 -1
- package/dist/index.es451.js +610 -2020
- package/dist/index.es451.js.map +1 -1
- package/dist/index.es452.js +10 -59
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +15 -189
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es456.js +4 -66
- package/dist/index.es456.js.map +1 -1
- package/dist/index.es457.js +24 -29
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es458.js +67 -31
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es46.js +4 -4
- package/dist/index.es462.js +124 -14
- package/dist/index.es462.js.map +1 -1
- package/dist/{index.es475.js → index.es463.js} +5 -5
- package/dist/{index.es475.js.map → index.es463.js.map} +1 -1
- package/dist/{index.es476.js → index.es464.js} +4 -4
- package/dist/{index.es476.js.map → index.es464.js.map} +1 -1
- package/dist/index.es465.js +14 -5
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +9 -25
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +47 -66
- package/dist/index.es467.js.map +1 -1
- package/dist/{index.es480.js → index.es468.js} +3 -3
- package/dist/{index.es480.js.map → index.es468.js.map} +1 -1
- package/dist/index.es47.js +3 -3
- package/dist/index.es48.js +3 -3
- package/dist/{index.es498.js → index.es484.js} +3 -3
- package/dist/{index.es498.js.map → index.es484.js.map} +1 -1
- package/dist/index.es485.js +9 -0
- package/dist/index.es485.js.map +1 -0
- package/dist/{index.es499.js → index.es486.js} +1 -1
- package/dist/index.es486.js.map +1 -0
- package/dist/index.es49.js +4 -4
- package/dist/index.es492.js +139 -0
- package/dist/index.es492.js.map +1 -0
- package/dist/index.es493.js +2035 -0
- package/dist/index.es493.js.map +1 -0
- package/dist/index.es494.js +63 -0
- package/dist/index.es494.js.map +1 -0
- package/dist/index.es495.js +192 -0
- package/dist/index.es495.js.map +1 -0
- package/dist/index.es5.js +4 -4
- package/dist/index.es50.js +4 -4
- package/dist/index.es500.js +5 -2
- package/dist/index.es500.js.map +1 -1
- package/dist/index.es501.js +2 -4
- package/dist/index.es501.js.map +1 -1
- package/dist/index.es502.js +3678 -0
- package/dist/index.es502.js.map +1 -0
- package/dist/index.es503.js +5 -0
- package/dist/index.es503.js.map +1 -0
- package/dist/index.es504.js +9 -0
- package/dist/index.es504.js.map +1 -0
- package/dist/index.es505.js +524 -0
- package/dist/index.es505.js.map +1 -0
- package/dist/index.es506.js +2 -5
- package/dist/index.es506.js.map +1 -1
- package/dist/index.es507.js +4 -2
- package/dist/index.es507.js.map +1 -1
- package/dist/index.es508.js +10 -9
- package/dist/index.es508.js.map +1 -1
- package/dist/index.es509.js +42 -174
- package/dist/index.es509.js.map +1 -1
- package/dist/index.es51.js +5 -5
- package/dist/index.es510.js +13 -3
- package/dist/index.es510.js.map +1 -1
- package/dist/index.es511.js +212 -127
- package/dist/index.es511.js.map +1 -1
- package/dist/index.es512.js +177 -10
- package/dist/index.es512.js.map +1 -1
- package/dist/index.es513.js +4 -46
- package/dist/index.es513.js.map +1 -1
- package/dist/index.es514.js +11 -13
- package/dist/index.es514.js.map +1 -1
- package/dist/index.es515.js +9 -217
- package/dist/index.es515.js.map +1 -1
- package/dist/index.es516.js +171 -171
- package/dist/index.es516.js.map +1 -1
- package/dist/index.es517.js +4 -4
- package/dist/index.es517.js.map +1 -1
- package/dist/index.es518.js +131 -10
- package/dist/index.es518.js.map +1 -1
- package/dist/index.es519.js +1 -1
- package/dist/index.es52.js +5 -5
- package/dist/index.es521.js +2 -2
- package/dist/index.es522.js +3 -3
- package/dist/index.es526.js +1 -1
- package/dist/index.es527.js +1 -1
- package/dist/index.es53.js +2 -2
- package/dist/index.es532.js +1 -1
- package/dist/index.es536.js +2 -2
- package/dist/index.es537.js +16 -16
- package/dist/index.es54.js +3 -3
- package/dist/index.es544.js +9 -9
- package/dist/index.es549.js +9 -9
- package/dist/index.es55.js +2 -2
- package/dist/index.es551.js +2 -2
- package/dist/index.es553.js +1 -1
- package/dist/index.es56.js +4 -4
- package/dist/index.es57.js +2 -2
- package/dist/index.es570.js +54 -512
- package/dist/index.es570.js.map +1 -1
- package/dist/index.es571.js +509 -113
- package/dist/index.es571.js.map +1 -1
- package/dist/index.es572.js +121 -123
- package/dist/index.es572.js.map +1 -1
- package/dist/index.es573.js +125 -61
- package/dist/index.es573.js.map +1 -1
- package/dist/index.es574.js +1 -1
- package/dist/index.es575.js +1 -1
- package/dist/index.es58.js +2 -2
- package/dist/index.es583.js +21 -11
- package/dist/index.es583.js.map +1 -1
- package/dist/index.es584.js +11 -26
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +27 -4
- package/dist/index.es585.js.map +1 -1
- package/dist/index.es586.js +4 -22
- package/dist/index.es586.js.map +1 -1
- package/dist/index.es59.js +2 -2
- package/dist/index.es6.js +3 -3
- package/dist/index.es60.js +3 -3
- package/dist/index.es61.js +2 -2
- package/dist/index.es62.js +2 -2
- package/dist/index.es63.js +2 -2
- package/dist/index.es64.js +3 -3
- package/dist/index.es65.js +1 -1
- package/dist/index.es66.js +2 -2
- package/dist/index.es67.js +3 -3
- package/dist/index.es68.js +2 -2
- package/dist/index.es69.js +4 -4
- package/dist/index.es7.js +3 -3
- package/dist/index.es70.js +1 -1
- package/dist/index.es71.js +2 -2
- package/dist/index.es72.js +1 -1
- package/dist/index.es73.js +2 -2
- package/dist/index.es74.js +2 -2
- package/dist/index.es75.js +4 -4
- package/dist/index.es76.js +1 -1
- package/dist/index.es77.js +3 -3
- package/dist/index.es78.js +2 -2
- package/dist/index.es79.js +2 -2
- package/dist/index.es8.js +3 -3
- package/dist/index.es80.js +2 -2
- package/dist/index.es81.js +1 -1
- package/dist/index.es82.js +1 -1
- package/dist/index.es83.js +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es85.js +1 -1
- package/dist/index.es86.js +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es89.js +1 -1
- package/dist/index.es9.js +5 -5
- package/dist/index.es90.js +1 -1
- package/dist/index.es91.js +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es93.js +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es97.js +2 -2
- package/dist/index.es98.js +2 -2
- package/dist/index.es99.js +2 -2
- package/package.json +1 -1
- package/dist/index.cjs223.js +0 -2
- package/dist/index.cjs223.js.map +0 -1
- package/dist/index.cjs226.js +0 -2
- package/dist/index.cjs226.js.map +0 -1
- package/dist/index.cjs231.js +0 -2
- package/dist/index.cjs231.js.map +0 -1
- package/dist/index.cjs236.js +0 -2
- package/dist/index.cjs236.js.map +0 -1
- package/dist/index.cjs240.js +0 -2
- package/dist/index.cjs240.js.map +0 -1
- package/dist/index.cjs247.js +0 -2
- package/dist/index.cjs247.js.map +0 -1
- package/dist/index.cjs256.js +0 -2
- package/dist/index.cjs256.js.map +0 -1
- package/dist/index.cjs265.js +0 -2
- package/dist/index.cjs265.js.map +0 -1
- package/dist/index.cjs274.js +0 -2
- package/dist/index.cjs274.js.map +0 -1
- package/dist/index.cjs278.js +0 -2
- package/dist/index.cjs278.js.map +0 -1
- package/dist/index.cjs283.js +0 -2
- package/dist/index.cjs283.js.map +0 -1
- package/dist/index.cjs297.js +0 -2
- package/dist/index.cjs297.js.map +0 -1
- package/dist/index.cjs305.js +0 -2
- package/dist/index.cjs305.js.map +0 -1
- package/dist/index.cjs307.js +0 -2
- package/dist/index.cjs307.js.map +0 -1
- package/dist/index.cjs308.js +0 -2
- package/dist/index.cjs308.js.map +0 -1
- package/dist/index.cjs314.js +0 -2
- package/dist/index.cjs314.js.map +0 -1
- package/dist/index.cjs325.js +0 -2
- package/dist/index.cjs332.js +0 -2
- package/dist/index.cjs332.js.map +0 -1
- package/dist/index.cjs336.js +0 -2
- package/dist/index.cjs340.js +0 -2
- package/dist/index.cjs340.js.map +0 -1
- package/dist/index.cjs362.js +0 -2
- package/dist/index.cjs362.js.map +0 -1
- package/dist/index.cjs363.js +0 -2
- package/dist/index.cjs363.js.map +0 -1
- package/dist/index.cjs385.js +0 -8
- package/dist/index.cjs385.js.map +0 -1
- package/dist/index.cjs391.js.map +0 -1
- package/dist/index.cjs425.js +0 -2
- package/dist/index.cjs433.js +0 -2
- package/dist/index.cjs433.js.map +0 -1
- package/dist/index.cjs434.js +0 -2
- package/dist/index.cjs434.js.map +0 -1
- package/dist/index.cjs445.js +0 -15
- package/dist/index.cjs445.js.map +0 -1
- package/dist/index.cjs454.js +0 -2
- package/dist/index.cjs454.js.map +0 -1
- package/dist/index.cjs455.js +0 -2
- package/dist/index.cjs455.js.map +0 -1
- package/dist/index.cjs459.js +0 -2
- package/dist/index.cjs459.js.map +0 -1
- package/dist/index.cjs460.js +0 -2
- package/dist/index.cjs460.js.map +0 -1
- package/dist/index.cjs474.js +0 -2
- package/dist/index.cjs474.js.map +0 -1
- package/dist/index.cjs477.js +0 -2
- package/dist/index.cjs477.js.map +0 -1
- package/dist/index.cjs478.js +0 -2
- package/dist/index.cjs478.js.map +0 -1
- package/dist/index.cjs479.js +0 -2
- package/dist/index.cjs479.js.map +0 -1
- package/dist/index.cjs499.js.map +0 -1
- package/dist/index.es223.js +0 -207
- package/dist/index.es223.js.map +0 -1
- package/dist/index.es226.js +0 -345
- package/dist/index.es226.js.map +0 -1
- package/dist/index.es231.js +0 -182
- package/dist/index.es231.js.map +0 -1
- package/dist/index.es236.js +0 -6
- package/dist/index.es236.js.map +0 -1
- package/dist/index.es240.js +0 -6
- package/dist/index.es240.js.map +0 -1
- package/dist/index.es247.js +0 -8
- package/dist/index.es247.js.map +0 -1
- package/dist/index.es256.js +0 -192
- package/dist/index.es256.js.map +0 -1
- package/dist/index.es265.js +0 -30
- package/dist/index.es265.js.map +0 -1
- package/dist/index.es274.js +0 -25
- package/dist/index.es274.js.map +0 -1
- package/dist/index.es278.js +0 -25
- package/dist/index.es278.js.map +0 -1
- package/dist/index.es283.js +0 -210
- package/dist/index.es283.js.map +0 -1
- package/dist/index.es297.js +0 -23
- package/dist/index.es297.js.map +0 -1
- package/dist/index.es305.js +0 -7
- package/dist/index.es305.js.map +0 -1
- package/dist/index.es307.js +0 -9
- package/dist/index.es307.js.map +0 -1
- package/dist/index.es308.js +0 -8
- package/dist/index.es308.js.map +0 -1
- package/dist/index.es314.js +0 -83
- package/dist/index.es314.js.map +0 -1
- package/dist/index.es325.js +0 -7
- package/dist/index.es332.js +0 -31
- package/dist/index.es332.js.map +0 -1
- package/dist/index.es336.js +0 -9
- package/dist/index.es340.js +0 -9
- package/dist/index.es340.js.map +0 -1
- package/dist/index.es362.js +0 -28
- package/dist/index.es362.js.map +0 -1
- package/dist/index.es363.js +0 -9
- package/dist/index.es363.js.map +0 -1
- package/dist/index.es385.js +0 -127
- package/dist/index.es385.js.map +0 -1
- package/dist/index.es391.js +0 -6
- package/dist/index.es391.js.map +0 -1
- package/dist/index.es425.js +0 -9
- package/dist/index.es433.js +0 -107
- package/dist/index.es433.js.map +0 -1
- package/dist/index.es434.js +0 -8
- package/dist/index.es434.js.map +0 -1
- package/dist/index.es445.js +0 -248
- package/dist/index.es445.js.map +0 -1
- package/dist/index.es454.js +0 -10
- package/dist/index.es454.js.map +0 -1
- package/dist/index.es455.js +0 -30
- package/dist/index.es455.js.map +0 -1
- package/dist/index.es459.js +0 -625
- package/dist/index.es459.js.map +0 -1
- package/dist/index.es460.js +0 -14
- package/dist/index.es460.js.map +0 -1
- package/dist/index.es474.js +0 -128
- package/dist/index.es474.js.map +0 -1
- package/dist/index.es477.js +0 -18
- package/dist/index.es477.js.map +0 -1
- package/dist/index.es478.js +0 -12
- package/dist/index.es478.js.map +0 -1
- package/dist/index.es479.js +0 -53
- package/dist/index.es479.js.map +0 -1
- package/dist/index.es499.js.map +0 -1
- /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.
|
|
1
|
+
{"version":3,"file":"index.cjs389.js","sources":["../src/components/ui/CreateReservationModal/CreateReservationModalContent/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./CreateReservationModalContent.scss\";\r\n\r\ntype CreateReservationModalContentProps = {\r\n overrideClassNames?: string;\r\n children?: React.ReactNode;\r\n};\r\n\r\nexport const CreateReservationModalContent = ({\r\n overrideClassNames,\r\n children,\r\n}: CreateReservationModalContentProps) => {\r\n return (\r\n <div className={clsx(\"ui-consent-modal-body\", overrideClassNames)}>\r\n {children}\r\n </div>\r\n );\r\n};\r\n"],"names":["CreateReservationModalContent","overrideClassNames","children","clsx"],"mappings":"iLAQO,MAAMA,EAAgC,CAAC,CAC5C,mBAAAC,EACA,SAAAC,CACF,4BAEK,MAAI,CAAA,UAAWC,OAAK,wBAAyBF,CAAkB,EAC7D,SAAAC,EACH"}
|
package/dist/index.cjs39.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AuthorWithImage/AuthorWithImage.css');const i=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AuthorWithImage/AuthorWithImage.css');const i=require("./index.cjs217.js"),r=require("react"),B=require("./index.cjs102.js");;/* empty css */const k=require("./index.cjs261.js"),A=require("./index.cjs262.js"),D=require("./index.cjs263.js"),L=require("./index.cjs9.js"),M=require("./index.cjs264.js"),S=require("./index.cjs67.js"),p=require("./index.cjs218.js"),U=require("./index.cjs123.js"),F=require("./index.cjs202.js"),O=require("./index.cjs143.js"),P=require("./index.cjs10.js"),W=require("./index.cjs30.js"),V=({data:e={},ImageComponent:a="img",imageProps:j={},variant:v="service",publishedLabel:g="Pubblicato",readingTimeLabel:d="Tempo di lettura",readingMinuteLabel:h="min",tagsLabelTitle:T="Argomenti trattati",shareLabel:R="Condividi",copyLinkLabel:E="Copia link",copiedTextLabel:I="Link copiato",isPreview:t=!1,modeAuthenticated:n=!1,eventCardDescriptionTitle:w,tags:C})=>{var m,c,u;const{copyToClipboard:N,isCopied:f}=A.useCopyToClipboardCurrentPage(),q=r.useMemo(()=>e!=null&&e.updatedBy?D.getFullNameInitials(e.updatedBy.name??"",e.updatedBy.surname??""):"-",[e.updatedBy]),[y,o]=r.useMemo(()=>!e.previewImageTitle||e.previewImageTitle.trim()===""?[null,null]:e.previewImageTitle.trim().split(/\s+/).length>=4?M.splitInTwo(e.previewImageTitle.toUpperCase()):[e.previewImageTitle.toUpperCase(),null],[e.previewImageTitle]),b=r.useMemo(()=>{const s=e.readingTime??0;return Math.ceil(Number(s)/60)||0},[e]),$=()=>{if(!e.previewImageUrl)return null;if(v==="event"){const s=x=>"eventCardTitle"in x||"eventTitle"in x;return i.jsxRuntimeExports.jsxs("div",{className:p.clsx(t?"event-preview":"event-image-container",n?"margin-authenticated ratio-authenticated":""),children:[i.jsxRuntimeExports.jsx("img",{className:"event-background",src:e.previewImageUrl,alt:`Evento ${e.name}`}),i.jsxRuntimeExports.jsx("div",{className:"event-content-overlay",children:i.jsxRuntimeExports.jsxs("div",{className:"event-content",children:[i.jsxRuntimeExports.jsx("img",{className:"event-main-image",src:e.previewImageUrl,alt:`Evento ${e.name}`}),i.jsxRuntimeExports.jsx("div",{className:"event-card-container",children:i.jsxRuntimeExports.jsxs(P.Col,{gap:"x32",children:[s(e)&&(e.eventCardTitle||e.eventCardDescription)&&i.jsxRuntimeExports.jsx(W.CardCategory,{title:s(e)?e.eventCardTitle??"-":"-",className:"w-full",description:s(e)?w??"-":"-",description2:s(e)?e.eventCardDescription??"-":"-",classNameTitle:"text-slate-20 fs-5 md-fs-custom-2",classNameDescriptionTitle:"text-slate-28 fw-bold fs-6 md-fs-custom"}),i.jsxRuntimeExports.jsx(O.Tags,{title:T,items:C??[]})]})})]})})]})}return i.jsxRuntimeExports.jsxs("div",{className:p.clsx(t?"service-detail-image":"fullscreen-image-container",n?"margin-authenticated":""),children:[i.jsxRuntimeExports.jsx(a,{alt:`Service ${e.name} image`,src:e.previewImageUrl,style:{aspectRatio:21/9},...j}),e.previewImageTitle&&e.previewImageTitle.trim()!==""&&i.jsxRuntimeExports.jsxs("p",{className:"short-title",children:[i.jsxRuntimeExports.jsx("span",{children:y}),o&&i.jsxRuntimeExports.jsx("span",{children:o})]})]})},l=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsxs("div",{className:"action-author",children:[i.jsxRuntimeExports.jsx(B.AuthorBlock,{authorName:(m=e==null?void 0:e.updatedBy)!=null&&m.name?`${(c=e==null?void 0:e.updatedBy)==null?void 0:c.name} ${(u=e==null?void 0:e.updatedBy)==null?void 0:u.surname}`:"-",avatar:{initials:q},publishedLabel:g,publishedDate:k.fromISODateToDateFormatted(e.updatedAt??"","it")??"-",readingTimeLabel:d,readingTimeValue:b,readingMinuteLabel:h}),i.jsxRuntimeExports.jsxs(L.Row,{gap:"x8",className:"action-link",children:[i.jsxRuntimeExports.jsx(U.ShareButton,{textLabel:R,titleShared:e.name}),i.jsxRuntimeExports.jsx("div",{className:"share-divider",children:i.jsxRuntimeExports.jsx(S.ActionIconText,{textLabel:f?I:E,icon:i.jsxRuntimeExports.jsx(F.CopyLink,{}),handleAction:N,classNameText:"fw-bold"})})]})]}),$()]});return t?i.jsxRuntimeExports.jsx("div",{className:"author-with-image-container-preview",children:l}):l};exports.AuthorWithImage=V;
|
|
2
2
|
//# sourceMappingURL=index.cjs39.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
2
|
-
//# sourceMappingURL=index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs217.js"),n=require("./index.cjs218.js"),x=require("./index.cjs221.js"),c=({width:r=24,height:s=24,className:t,color:o="primary"})=>{const i=x.createColorClasses({color:o});return e.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",className:n.clsx(t,i),"aria-hidden":"true",children:[e.jsxRuntimeExports.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",ry:"2",stroke:"#06C"}),e.jsxRuntimeExports.jsx("line",{x1:"2",y1:"9",x2:"22",y2:"9",stroke:"#06C"}),e.jsxRuntimeExports.jsx("line",{x1:"6",y1:"14",x2:"10",y2:"14",stroke:"#06C"})]})};exports.CreditCard=c;
|
|
2
|
+
//# sourceMappingURL=index.cjs392.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.
|
|
1
|
+
{"version":3,"file":"index.cjs392.js","sources":["../src/icons/CreditCard/CreditCard.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport { IconProps } from \"@/types/icons\";\r\nimport { createColorClasses } from \"@/theme/colors\";\r\n\r\nexport const CreditCard = ({\r\n width = 24,\r\n height = 24,\r\n className,\r\n color = \"primary\",\r\n}: IconProps) => {\r\n const classes = createColorClasses({ color });\r\n\r\n return (\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width={width}\r\n height={height}\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n strokeWidth=\"1.3\"\r\n strokeLinecap=\"round\"\r\n strokeLinejoin=\"round\"\r\n className={clsx(className, classes)}\r\n aria-hidden=\"true\"\r\n >\r\n <rect x=\"2\" y=\"4\" width=\"20\" height=\"16\" rx=\"2\" ry=\"2\" stroke=\"#06C\" />\r\n <line x1=\"2\" y1=\"9\" x2=\"22\" y2=\"9\" stroke=\"#06C\" />\r\n <line x1=\"6\" y1=\"14\" x2=\"10\" y2=\"14\" stroke=\"#06C\" />\r\n </svg>\r\n );\r\n};\r\n"],"names":["CreditCard","width","height","className","color","classes","createColorClasses","jsxs","clsx","jsx"],"mappings":"mLAIaA,EAAa,CAAC,CACzB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,MAAAC,EAAQ,SACV,IAAiB,CACf,MAAMC,EAAUC,EAAAA,mBAAmB,CAAE,MAAAF,EAAO,EAG1C,OAAAG,EAAA,kBAAA,KAAC,MAAA,CACC,MAAM,6BACN,MAAAN,EACA,OAAAC,EACA,QAAQ,YACR,KAAK,OACL,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACf,UAAWM,EAAAA,KAAKL,EAAWE,CAAO,EAClC,cAAY,OAEZ,SAAA,CAAAI,EAAA,kBAAA,IAAC,OAAK,CAAA,EAAE,IAAI,EAAE,IAAI,MAAM,KAAK,OAAO,KAAK,GAAG,IAAI,GAAG,IAAI,OAAO,OAAO,EACrEA,EAAAA,kBAAAA,IAAC,OAAK,CAAA,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,OAAO,MAAO,CAAA,EACjDA,EAAAA,kBAAAA,IAAC,OAAK,CAAA,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,OAAO,MAAO,CAAA,CAAA,CAAA,CACrD,CAEJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/Feedback/Rating.css');const e=require("./index.
|
|
2
|
-
//# sourceMappingURL=index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/Feedback/Rating.css');const e=require("./index.cjs217.js");;/* empty css */const r=require("./index.cjs424.js"),o=require("./index.cjs218.js"),t=5,x=r.lodashExports.range(1,t+1);function c({onClick:i,rating:n=0}){const l=s=>s<=n;return e.jsxRuntimeExports.jsxs("fieldset",{className:"rating",children:[e.jsxRuntimeExports.jsx("legend",{className:"visually-hidden",children:"Valutazione"}),x.map((s,a)=>e.jsxRuntimeExports.jsxs("button",{onClick:()=>i(s),className:o.clsx("star black-focus",{active:l(s)}),"aria-label":`${s} ${s===1?"punto":"punti"} di valutazione su ${t} punti`,children:[e.jsxRuntimeExports.jsx("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24",className:"icon icon-sm",children:e.jsxRuntimeExports.jsx("g",{children:e.jsxRuntimeExports.jsx("path",{d:"M12,1.7L9.5,9.2H1.6L8,13.9l-2.4,7.6l6.4-4.7l6.4,4.7L16,13.9l6.4-4.7h-7.9L12,1.7z"})})}),e.jsxRuntimeExports.jsxs("span",{className:"visually-hidden",children:["Valuta ",s," stelle su ",t]})]},a))]})}exports.Rating=c;
|
|
2
|
+
//# sourceMappingURL=index.cjs395.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.
|
|
1
|
+
{"version":3,"file":"index.cjs395.js","sources":["../src/components/ui/Feedback/Rating.tsx"],"sourcesContent":["import \"./Rating.scss\";\r\nimport { range } from \"lodash\";\r\nimport { clsx } from \"clsx\";\r\n\r\nexport type RatingProps = {\r\n onClick: (value: number) => void;\r\n rating?: number;\r\n};\r\n\r\nconst STAR_QUANTITY = 5;\r\nconst STARS = range(1, STAR_QUANTITY + 1);\r\n\r\nexport function Rating({ onClick, rating = 0 }: RatingProps) {\r\n const isRatingActive = (num: number) => num <= rating;\r\n\r\n return (\r\n <fieldset className=\"rating\">\r\n <legend className=\"visually-hidden\">Valutazione</legend>\r\n {STARS.map((num, index) => (\r\n <button\r\n key={index}\r\n onClick={() => onClick(num)}\r\n className={clsx(\"star black-focus\", {\r\n active: isRatingActive(num),\r\n })}\r\n aria-label={`${num} ${num === 1 ? \"punto\" : \"punti\"} di valutazione su ${STAR_QUANTITY} punti`}\r\n >\r\n <svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 24 24\"\r\n className=\"icon icon-sm\"\r\n >\r\n <g>\r\n <path d=\"M12,1.7L9.5,9.2H1.6L8,13.9l-2.4,7.6l6.4-4.7l6.4,4.7L16,13.9l6.4-4.7h-7.9L12,1.7z\" />\r\n </g>\r\n </svg>\r\n\r\n <span className=\"visually-hidden\">\r\n Valuta {num} stelle su {STAR_QUANTITY}\r\n </span>\r\n </button>\r\n ))}\r\n </fieldset>\r\n );\r\n}\r\n"],"names":["STAR_QUANTITY","STARS","range","Rating","onClick","rating","isRatingActive","num","jsxs","jsx","index","clsx"],"mappings":"sNASMA,EAAgB,EAChBC,EAAQC,EAAA,cAAA,MAAM,EAAGF,EAAgB,CAAC,EAEjC,SAASG,EAAO,CAAE,QAAAC,EAAS,OAAAC,EAAS,GAAkB,CACrD,MAAAC,EAAkBC,GAAgBA,GAAOF,EAG7C,OAAAG,EAAA,kBAAA,KAAC,WAAS,CAAA,UAAU,SAClB,SAAA,CAACC,EAAA,kBAAA,IAAA,SAAA,CAAO,UAAU,kBAAkB,SAAW,cAAA,EAC9CR,EAAM,IAAI,CAACM,EAAKG,IACfF,EAAA,kBAAA,KAAC,SAAA,CAEC,QAAS,IAAMJ,EAAQG,CAAG,EAC1B,UAAWI,OAAK,mBAAoB,CAClC,OAAQL,EAAeC,CAAG,CAAA,CAC3B,EACD,aAAY,GAAGA,CAAG,IAAIA,IAAQ,EAAI,QAAU,OAAO,sBAAsBP,CAAa,SAEtF,SAAA,CAAAS,EAAA,kBAAA,IAAC,MAAA,CACC,QAAQ,MACR,MAAM,6BACN,EAAE,MACF,EAAE,MACF,QAAQ,YACR,UAAU,eAEV,iCAAC,IACC,CAAA,SAAAA,wBAAC,OAAK,CAAA,EAAE,mFAAmF,CAC7F,CAAA,CAAA,CACF,EAEAD,EAAAA,kBAAAA,KAAC,OAAK,CAAA,UAAU,kBAAkB,SAAA,CAAA,UACxBD,EAAI,cAAYP,CAAA,CAC1B,CAAA,CAAA,CAAA,EAtBKU,CAwBR,CAAA,CAAA,EACH,CAEJ"}
|
package/dist/index.cjs396.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/Feedback/Questions.css');const t=require("./index.cjs217.js");;/* empty css */const p=require("react"),d=require("./index.cjs28.js");function N({questions:n,onChangeAnswer:l,onSend:h,values:i,openAnswer:a,handleOpenAnswer:j,buttons:c,maxCharactersMessage:o,openAnswerPlaceholder:f}){const[e,x]=p.useState(0),g=p.useCallback((s,r)=>{l(s,r)},[l]),b=()=>{h()},v=()=>{!i[e]&&n[e].type!=="OPEN"||(e<n.length-1&&x(e+1),e===n.length-1&&b())},E=()=>{e>0&&x(e-1)};return t.jsxRuntimeExports.jsxs("div",{className:"steppers",children:[t.jsxRuntimeExports.jsxs("div",{className:"steppers-header pb-2 align-items-center",children:[t.jsxRuntimeExports.jsx("p",{className:"steppers-header-question-title",children:n[e].question}),t.jsxRuntimeExports.jsxs("span",{className:"steppers-header-question-number",children:[e+1,"/",n.length]})]}),t.jsxRuntimeExports.jsx("div",{className:"steppers-content","aria-live":"polite",children:n[e].type==="CLOSE"?t.jsxRuntimeExports.jsx("div",{className:"list-group",children:n[e].answers.map((s,r)=>{var u,m;return t.jsxRuntimeExports.jsxs("label",{htmlFor:`checkbox-${s.id}`,className:" fw-regular fs-6 list-group-item ",children:[t.jsxRuntimeExports.jsx("input",{type:"radio",id:`checkbox-${s.id}`,name:`question-${e}`,value:s.answer,checked:((m=(u=i==null?void 0:i[e])==null?void 0:u.answer)==null?void 0:m.includes(s))||!1,onChange:()=>g(n[e].id,s),className:"custom-control-input form-check-input me-2 black-focus"}),s.answer]},`${n[e].id}-${r}`)})}):t.jsxRuntimeExports.jsxs("div",{className:"form-group d-flex flex-column gap-1",children:[t.jsxRuntimeExports.jsx("input",{type:"text",placeholder:f,className:"form-control black-focus",value:a,onChange:s=>s.target.value.length<=200&&j(s.target.value),autoFocus:!0}),t.jsxRuntimeExports.jsxs("div",{className:"d-flex justify-content-between align-items-center max-chars-container",children:[o&&t.jsxRuntimeExports.jsx("p",{className:" fs-6 fw-normal ",children:o}),a&&a.length>0&&t.jsxRuntimeExports.jsxs("p",{className:"active fs-6 fw-normal ",children:[a.length,"/200"]})]})]})}),t.jsxRuntimeExports.jsxs("nav",{className:"steppers-nav no-border shadow-none align-items-center justify-content-center gap-4 flex-wrap",children:[t.jsxRuntimeExports.jsx(d.Button,{className:"feedback-button-back",onClick:E,disabled:e===0,children:c.previous}),t.jsxRuntimeExports.jsx(d.Button,{className:"feedback-button-next",onClick:v,disabled:e===n.length,children:c.next})]})]})}exports.Questions=N;
|
|
2
2
|
//# sourceMappingURL=index.cjs396.js.map
|
package/dist/index.cjs396.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs396.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.cjs396.js","sources":["../src/components/ui/Feedback/Questions.tsx"],"sourcesContent":["import \"./Questions.scss\";\r\nimport { useCallback, useState } from \"react\";\r\nimport { Answer, QuestionsProps } from \"@anoki/fse-common\";\r\nimport { Button } from \"@/components\";\r\n\r\nexport function Questions({\r\n questions,\r\n onChangeAnswer,\r\n onSend,\r\n values: selectedAnswers,\r\n openAnswer,\r\n handleOpenAnswer,\r\n buttons,\r\n maxCharactersMessage,\r\n openAnswerPlaceholder,\r\n}: QuestionsProps) {\r\n const [currentStep, setCurrentStep] = useState(0);\r\n\r\n const handleAnswerChange = useCallback(\r\n (questionId: string, answer: Answer) => {\r\n onChangeAnswer(questionId, answer);\r\n },\r\n [onChangeAnswer],\r\n );\r\n\r\n const onConfirm = () => {\r\n onSend();\r\n };\r\n\r\n const handleNext = () => {\r\n if (!selectedAnswers[currentStep] && questions[currentStep].type !== \"OPEN\")\r\n return;\r\n\r\n if (currentStep < questions.length - 1) {\r\n setCurrentStep(currentStep + 1);\r\n }\r\n\r\n if (currentStep === questions.length - 1) {\r\n onConfirm();\r\n }\r\n };\r\n\r\n const handlePrevious = () => {\r\n if (currentStep > 0) {\r\n setCurrentStep(currentStep - 1);\r\n }\r\n };\r\n\r\n return (\r\n <div className=\"steppers\">\r\n <div className=\"steppers-header pb-2 align-items-center\">\r\n <p className={\"steppers-header-question-title\"}>\r\n {questions[currentStep].question}\r\n </p>\r\n <span className={\"steppers-header-question-number\"}>\r\n {currentStep + 1}/{questions.length}\r\n </span>\r\n </div>\r\n <div className=\"steppers-content\" aria-live=\"polite\">\r\n {questions[currentStep].type === \"CLOSE\" ? (\r\n <div className=\"list-group\">\r\n {questions[currentStep].answers.map((answer, index) => (\r\n <label\r\n key={`${questions[currentStep].id}-${index}`}\r\n htmlFor={`checkbox-${answer.id}`}\r\n className=\" fw-regular fs-6 list-group-item \"\r\n >\r\n <input\r\n type=\"radio\"\r\n id={`checkbox-${answer.id}`}\r\n name={`question-${currentStep}`}\r\n value={answer.answer}\r\n checked={\r\n selectedAnswers?.[currentStep]?.answer?.includes(answer) ||\r\n false\r\n }\r\n onChange={() =>\r\n handleAnswerChange(questions[currentStep].id, answer)\r\n }\r\n className=\"custom-control-input form-check-input me-2 black-focus\"\r\n />\r\n {answer.answer}\r\n </label>\r\n ))}\r\n </div>\r\n ) : (\r\n <div className=\"form-group d-flex flex-column gap-1\">\r\n <input\r\n type=\"text\"\r\n placeholder={openAnswerPlaceholder}\r\n className=\"form-control black-focus\"\r\n value={openAnswer}\r\n onChange={(e) =>\r\n e.target.value.length <= 200 && handleOpenAnswer(e.target.value)\r\n }\r\n autoFocus\r\n />\r\n\r\n <div className=\"d-flex justify-content-between align-items-center max-chars-container\">\r\n {maxCharactersMessage && (\r\n <p className=\" fs-6 fw-normal \">{maxCharactersMessage}</p>\r\n )}\r\n {openAnswer && openAnswer.length > 0 && (\r\n <p className=\"active fs-6 fw-normal \">\r\n {openAnswer.length}/200\r\n </p>\r\n )}\r\n </div>\r\n </div>\r\n )}\r\n </div>\r\n <nav className=\"steppers-nav no-border shadow-none align-items-center justify-content-center gap-4 flex-wrap\">\r\n <Button\r\n className=\"feedback-button-back\"\r\n onClick={handlePrevious}\r\n disabled={currentStep === 0}\r\n >\r\n {buttons.previous}\r\n </Button>\r\n\r\n <Button\r\n className=\"feedback-button-next\"\r\n onClick={handleNext}\r\n disabled={currentStep === questions.length}\r\n >\r\n {buttons.next}\r\n </Button>\r\n </nav>\r\n </div>\r\n );\r\n}\r\n"],"names":["Questions","questions","onChangeAnswer","onSend","selectedAnswers","openAnswer","handleOpenAnswer","buttons","maxCharactersMessage","openAnswerPlaceholder","currentStep","setCurrentStep","useState","handleAnswerChange","useCallback","questionId","answer","onConfirm","handleNext","handlePrevious","jsxs","jsx","index","_b","_a","e","Button"],"mappings":"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"}
|
package/dist/index.cjs397.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs500.js"),t={Root:o.CardRoot};exports.CardComponent=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs397.js.map
|
package/dist/index.cjs397.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs397.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.cjs397.js","sources":["../src/components/ui/card/index.ts"],"sourcesContent":["import { CardRoot } from \"./CardRoot\";\r\n\r\nexport const CardComponent = {\r\n Root: CardRoot,\r\n};\r\n"],"names":["CardComponent","CardRoot"],"mappings":"qHAEaA,EAAgB,CAC3B,KAAMC,EAAAA,QACR"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs217.js"),s=({className:e})=>t.jsxRuntimeExports.jsxs("svg",{className:e,width:"121",height:"49",viewBox:"0 0 121 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxRuntimeExports.jsx("rect",{width:"121",height:"49",fill:"#C5C7C9"}),t.jsxRuntimeExports.jsxs("g",{clipPath:"url(#clip0_16364_119694)",children:[t.jsxRuntimeExports.jsx("rect",{width:"1440",height:"35228",transform:"translate(-608 -31452)",fill:"white"}),t.jsxRuntimeExports.jsx("rect",{width:"1440",height:"29722",transform:"translate(-608 -29136)",fill:"white"}),t.jsxRuntimeExports.jsx("rect",{width:"1055",height:"29848.1",transform:"translate(-223 -29136)",fill:"white"}),t.jsxRuntimeExports.jsx("rect",{width:"900",height:"29848.1",transform:"translate(-223 -29136)",fill:"white"}),t.jsxRuntimeExports.jsxs("g",{clipPath:"url(#clip1_16364_119694)",filter:"url(#filter0_d_16364_119694)",children:[t.jsxRuntimeExports.jsx("rect",{x:"-199",y:"-47.9004",width:"320",height:"96",rx:"4",fill:"#0066CC"}),t.jsxRuntimeExports.jsx("mask",{id:"path-2-inside-1_16364_119694",fill:"white",children:t.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M103.231 7.5H44.0314V44.1287L7.40001 44.1287L7.40001 103.329H44.0314V140.7H103.231V103.329H140.6V44.1287L103.231 44.1287V7.5Z"})}),t.jsxRuntimeExports.jsx("path",{d:"M44.0314 7.5V3.5H40.0314V7.5H44.0314ZM103.231 7.5H107.231V3.5H103.231V7.5ZM44.0314 44.1287V48.1287H48.0314V44.1287H44.0314ZM7.40001 44.1287L7.40001 40.1287H3.40001L3.40001 44.1287H7.40001ZM7.40001 103.329H3.40001V107.329H7.40001V103.329ZM44.0314 103.329H48.0314V99.3287H44.0314V103.329ZM44.0314 140.7H40.0314V144.7H44.0314V140.7ZM103.231 140.7V144.7H107.231V140.7H103.231ZM103.231 103.329V99.3287H99.2314V103.329H103.231ZM140.6 103.329V107.329H144.6V103.329H140.6ZM140.6 44.1287H144.6V40.1287H140.6V44.1287ZM103.231 44.1287H99.2314V48.1287H103.231V44.1287ZM44.0314 11.5H103.231V3.5H44.0314V11.5ZM48.0314 44.1287V7.5H40.0314V44.1287H48.0314ZM7.40001 48.1287L44.0314 48.1287V40.1287L7.40001 40.1287L7.40001 48.1287ZM11.4 103.329L11.4 44.1287H3.40001L3.40001 103.329H11.4ZM44.0314 99.3287H7.40001V107.329H44.0314V99.3287ZM48.0314 140.7V103.329H40.0314V140.7H48.0314ZM103.231 136.7H44.0314V144.7H103.231V136.7ZM99.2314 103.329V140.7H107.231V103.329H99.2314ZM140.6 99.3287H103.231V107.329H140.6V99.3287ZM136.6 44.1287V103.329H144.6V44.1287H136.6ZM103.231 48.1287L140.6 48.1287V40.1287L103.231 40.1287V48.1287ZM99.2314 7.5V44.1287H107.231V7.5H99.2314Z",fill:"white",mask:"url(#path-2-inside-1_16364_119694)"}),t.jsxRuntimeExports.jsxs("g",{opacity:"0.4",children:[t.jsxRuntimeExports.jsx("mask",{id:"path-4-inside-2_16364_119694",fill:"white",children:t.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M75.363 6.85156H53.363V20.4641L39.75 20.4641V42.4641H53.363V56.3516H75.363V42.4641H89.25V20.4641L75.363 20.4641V6.85156Z"})}),t.jsxRuntimeExports.jsx("path",{d:"M53.363 6.85156V3.85156H50.363V6.85156H53.363ZM75.363 6.85156H78.363V3.85156H75.363V6.85156ZM53.363 20.4641V23.4641H56.363V20.4641H53.363ZM39.75 20.4641L39.75 17.4641H36.75V20.4641H39.75ZM39.75 42.4641H36.75V45.4641H39.75V42.4641ZM53.363 42.4641H56.363V39.4641H53.363V42.4641ZM53.363 56.3516H50.363V59.3516H53.363V56.3516ZM75.363 56.3516V59.3516H78.363V56.3516H75.363ZM75.363 42.4641V39.4641H72.363V42.4641H75.363ZM89.25 42.4641V45.4641H92.25V42.4641H89.25ZM89.25 20.4641H92.25V17.4641H89.25V20.4641ZM75.363 20.4641H72.363V23.4641H75.363V20.4641ZM53.363 9.85156H75.363V3.85156H53.363V9.85156ZM56.363 20.4641V6.85156H50.363V20.4641H56.363ZM39.75 23.4641L53.363 23.4641V17.4641L39.75 17.4641L39.75 23.4641ZM42.75 42.4641V20.4641H36.75V42.4641H42.75ZM53.363 39.4641H39.75V45.4641H53.363V39.4641ZM56.363 56.3516V42.4641H50.363V56.3516H56.363ZM75.363 53.3516H53.363V59.3516H75.363V53.3516ZM72.363 42.4641V56.3516H78.363V42.4641H72.363ZM89.25 39.4641H75.363V45.4641H89.25V39.4641ZM86.25 20.4641V42.4641H92.25V20.4641H86.25ZM75.363 23.4641H89.25V17.4641L75.363 17.4641V23.4641ZM72.363 6.85156V20.4641H78.363V6.85156H72.363Z",fill:"white",mask:"url(#path-4-inside-2_16364_119694)"})]})]})]}),t.jsxRuntimeExports.jsxs("defs",{children:[t.jsxRuntimeExports.jsxs("filter",{id:"filter0_d_16364_119694",x:"-215",y:"-63.9004",width:"352",height:"128",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[t.jsxRuntimeExports.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t.jsxRuntimeExports.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsxRuntimeExports.jsx("feOffset",{}),t.jsxRuntimeExports.jsx("feGaussianBlur",{stdDeviation:"8"}),t.jsxRuntimeExports.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),t.jsxRuntimeExports.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_16364_119694"}),t.jsxRuntimeExports.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_16364_119694",result:"shape"})]}),t.jsxRuntimeExports.jsx("clipPath",{id:"clip0_16364_119694",children:t.jsxRuntimeExports.jsx("rect",{width:"1440",height:"35228",fill:"white",transform:"translate(-608 -31452)"})}),t.jsxRuntimeExports.jsx("clipPath",{id:"clip1_16364_119694",children:t.jsxRuntimeExports.jsx("rect",{width:"320",height:"96",fill:"white",transform:"translate(-199 -47.9004)"})})]})]});exports.CtaCardIcon=s;
|
|
2
|
+
//# sourceMappingURL=index.cjs399.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs399.js","sources":["../src/icons/CtaCardIcon/index.tsx"],"sourcesContent":["import { IconProps } from \"@/types/icons.ts\";\r\n\r\nexport const CtaCardIcon = ({className}: IconProps) => {\r\n return (\r\n <svg className={className} width=\"121\" height=\"49\" viewBox=\"0 0 121 49\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect width=\"121\" height=\"49\" fill=\"#C5C7C9\" />\r\n <g clipPath=\"url(#clip0_16364_119694)\">\r\n <rect width=\"1440\" height=\"35228\" transform=\"translate(-608 -31452)\" fill=\"white\" />\r\n <rect width=\"1440\" height=\"29722\" transform=\"translate(-608 -29136)\" fill=\"white\" />\r\n <rect width=\"1055\" height=\"29848.1\" transform=\"translate(-223 -29136)\" fill=\"white\" />\r\n <rect width=\"900\" height=\"29848.1\" transform=\"translate(-223 -29136)\" fill=\"white\" />\r\n <g clipPath=\"url(#clip1_16364_119694)\" filter=\"url(#filter0_d_16364_119694)\">\r\n <rect x=\"-199\" y=\"-47.9004\" width=\"320\" height=\"96\" rx=\"4\" fill=\"#0066CC\" />\r\n <mask id=\"path-2-inside-1_16364_119694\" fill=\"white\">\r\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M103.231 7.5H44.0314V44.1287L7.40001 44.1287L7.40001 103.329H44.0314V140.7H103.231V103.329H140.6V44.1287L103.231 44.1287V7.5Z\" />\r\n </mask>\r\n <path d=\"M44.0314 7.5V3.5H40.0314V7.5H44.0314ZM103.231 7.5H107.231V3.5H103.231V7.5ZM44.0314 44.1287V48.1287H48.0314V44.1287H44.0314ZM7.40001 44.1287L7.40001 40.1287H3.40001L3.40001 44.1287H7.40001ZM7.40001 103.329H3.40001V107.329H7.40001V103.329ZM44.0314 103.329H48.0314V99.3287H44.0314V103.329ZM44.0314 140.7H40.0314V144.7H44.0314V140.7ZM103.231 140.7V144.7H107.231V140.7H103.231ZM103.231 103.329V99.3287H99.2314V103.329H103.231ZM140.6 103.329V107.329H144.6V103.329H140.6ZM140.6 44.1287H144.6V40.1287H140.6V44.1287ZM103.231 44.1287H99.2314V48.1287H103.231V44.1287ZM44.0314 11.5H103.231V3.5H44.0314V11.5ZM48.0314 44.1287V7.5H40.0314V44.1287H48.0314ZM7.40001 48.1287L44.0314 48.1287V40.1287L7.40001 40.1287L7.40001 48.1287ZM11.4 103.329L11.4 44.1287H3.40001L3.40001 103.329H11.4ZM44.0314 99.3287H7.40001V107.329H44.0314V99.3287ZM48.0314 140.7V103.329H40.0314V140.7H48.0314ZM103.231 136.7H44.0314V144.7H103.231V136.7ZM99.2314 103.329V140.7H107.231V103.329H99.2314ZM140.6 99.3287H103.231V107.329H140.6V99.3287ZM136.6 44.1287V103.329H144.6V44.1287H136.6ZM103.231 48.1287L140.6 48.1287V40.1287L103.231 40.1287V48.1287ZM99.2314 7.5V44.1287H107.231V7.5H99.2314Z\" fill=\"white\" mask=\"url(#path-2-inside-1_16364_119694)\" />\r\n <g opacity=\"0.4\">\r\n <mask id=\"path-4-inside-2_16364_119694\" fill=\"white\">\r\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M75.363 6.85156H53.363V20.4641L39.75 20.4641V42.4641H53.363V56.3516H75.363V42.4641H89.25V20.4641L75.363 20.4641V6.85156Z\" />\r\n </mask>\r\n <path d=\"M53.363 6.85156V3.85156H50.363V6.85156H53.363ZM75.363 6.85156H78.363V3.85156H75.363V6.85156ZM53.363 20.4641V23.4641H56.363V20.4641H53.363ZM39.75 20.4641L39.75 17.4641H36.75V20.4641H39.75ZM39.75 42.4641H36.75V45.4641H39.75V42.4641ZM53.363 42.4641H56.363V39.4641H53.363V42.4641ZM53.363 56.3516H50.363V59.3516H53.363V56.3516ZM75.363 56.3516V59.3516H78.363V56.3516H75.363ZM75.363 42.4641V39.4641H72.363V42.4641H75.363ZM89.25 42.4641V45.4641H92.25V42.4641H89.25ZM89.25 20.4641H92.25V17.4641H89.25V20.4641ZM75.363 20.4641H72.363V23.4641H75.363V20.4641ZM53.363 9.85156H75.363V3.85156H53.363V9.85156ZM56.363 20.4641V6.85156H50.363V20.4641H56.363ZM39.75 23.4641L53.363 23.4641V17.4641L39.75 17.4641L39.75 23.4641ZM42.75 42.4641V20.4641H36.75V42.4641H42.75ZM53.363 39.4641H39.75V45.4641H53.363V39.4641ZM56.363 56.3516V42.4641H50.363V56.3516H56.363ZM75.363 53.3516H53.363V59.3516H75.363V53.3516ZM72.363 42.4641V56.3516H78.363V42.4641H72.363ZM89.25 39.4641H75.363V45.4641H89.25V39.4641ZM86.25 20.4641V42.4641H92.25V20.4641H86.25ZM75.363 23.4641H89.25V17.4641L75.363 17.4641V23.4641ZM72.363 6.85156V20.4641H78.363V6.85156H72.363Z\" fill=\"white\" mask=\"url(#path-4-inside-2_16364_119694)\" />\r\n </g>\r\n </g>\r\n </g>\r\n <defs>\r\n <filter id=\"filter0_d_16364_119694\" x=\"-215\" y=\"-63.9004\" width=\"352\" height=\"128\" filterUnits=\"userSpaceOnUse\" colorInterpolationFilters=\"sRGB\">\r\n <feFlood floodOpacity=\"0\" result=\"BackgroundImageFix\" />\r\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\" />\r\n <feOffset />\r\n <feGaussianBlur stdDeviation=\"8\" />\r\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0\" />\r\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_16364_119694\" />\r\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_16364_119694\" result=\"shape\" />\r\n </filter>\r\n <clipPath id=\"clip0_16364_119694\">\r\n <rect width=\"1440\" height=\"35228\" fill=\"white\" transform=\"translate(-608 -31452)\" />\r\n </clipPath>\r\n <clipPath id=\"clip1_16364_119694\">\r\n <rect width=\"320\" height=\"96\" fill=\"white\" transform=\"translate(-199 -47.9004)\" />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n );\r\n};\r\n"],"names":["CtaCardIcon","className","jsxs","jsx"],"mappings":"qHAEaA,EAAc,CAAC,CAAC,UAAAC,KAExBC,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAAD,EAAsB,MAAM,MAAM,OAAO,KAAK,QAAQ,aAAa,KAAK,OAAO,MAAM,6BACxF,SAAA,CAAAE,wBAAC,QAAK,MAAM,MAAM,OAAO,KAAK,KAAK,UAAU,EAC7CD,EAAAA,kBAAAA,KAAC,IAAE,CAAA,SAAS,2BACV,SAAA,CAACC,EAAAA,kBAAAA,IAAA,OAAA,CAAK,MAAM,OAAO,OAAO,QAAQ,UAAU,yBAAyB,KAAK,OAAQ,CAAA,EAClFA,EAAAA,kBAAAA,IAAC,QAAK,MAAM,OAAO,OAAO,QAAQ,UAAU,yBAAyB,KAAK,OAAQ,CAAA,EAClFA,EAAAA,kBAAAA,IAAC,QAAK,MAAM,OAAO,OAAO,UAAU,UAAU,yBAAyB,KAAK,OAAQ,CAAA,EACpFA,EAAAA,kBAAAA,IAAC,QAAK,MAAM,MAAM,OAAO,UAAU,UAAU,yBAAyB,KAAK,OAAQ,CAAA,EAClFD,EAAA,kBAAA,KAAA,IAAA,CAAE,SAAS,2BAA2B,OAAO,+BAC5C,SAAA,CAAAC,EAAA,kBAAA,IAAC,OAAK,CAAA,EAAE,OAAO,EAAE,WAAW,MAAM,MAAM,OAAO,KAAK,GAAG,IAAI,KAAK,UAAU,EACzEA,EAAA,kBAAA,IAAA,OAAA,CAAK,GAAG,+BAA+B,KAAK,QAC3C,SAAAA,EAAA,kBAAA,IAAC,OAAK,CAAA,SAAS,UAAU,SAAS,UAAU,EAAE,+HAAgI,CAAA,EAChL,0BACC,OAAK,CAAA,EAAE,4nCAA4nC,KAAK,QAAQ,KAAK,qCAAqC,EAC3rCD,EAAAA,kBAAAA,KAAC,IAAE,CAAA,QAAQ,MACT,SAAA,CAAAC,EAAA,kBAAA,IAAC,OAAK,CAAA,GAAG,+BAA+B,KAAK,QAC3C,SAAAA,EAAA,kBAAA,IAAC,OAAK,CAAA,SAAS,UAAU,SAAS,UAAU,EAAE,0HAA2H,CAAA,EAC3K,0BACC,OAAK,CAAA,EAAE,+lCAA+lC,KAAK,QAAQ,KAAK,oCAAqC,CAAA,CAAA,CAChqC,CAAA,CAAA,CACF,CAAA,CAAA,EACF,2BACC,OACC,CAAA,SAAA,CAAAD,EAAA,kBAAA,KAAC,SAAO,CAAA,GAAG,yBAAyB,EAAE,OAAO,EAAE,WAAW,MAAM,MAAM,OAAO,MAAM,YAAY,iBAAiB,0BAA0B,OACxI,SAAA,CAAAC,EAAA,kBAAA,IAAC,UAAQ,CAAA,aAAa,IAAI,OAAO,qBAAqB,EACtDA,EAAAA,kBAAAA,IAAC,iBAAc,GAAG,cAAc,KAAK,SAAS,OAAO,4CAA4C,OAAO,WAAY,CAAA,0BACnH,WAAS,EAAA,EACVA,EAAAA,kBAAAA,IAAC,iBAAe,CAAA,aAAa,GAAI,CAAA,EAChCA,EAAA,kBAAA,IAAA,gBAAA,CAAc,KAAK,SAAS,OAAO,6CAA6C,0BAChF,UAAQ,CAAA,KAAK,SAAS,IAAI,qBAAqB,OAAO,kCAAkC,EACzFA,EAAAA,kBAAAA,IAAC,WAAQ,KAAK,SAAS,GAAG,gBAAgB,IAAI,kCAAkC,OAAO,OAAQ,CAAA,CAAA,EACjG,EACCA,EAAA,kBAAA,IAAA,WAAA,CAAS,GAAG,qBACX,iCAAC,OAAK,CAAA,MAAM,OAAO,OAAO,QAAQ,KAAK,QAAQ,UAAU,wBAAyB,CAAA,EACpF,EACCA,EAAA,kBAAA,IAAA,WAAA,CAAS,GAAG,qBACX,iCAAC,OAAK,CAAA,MAAM,MAAM,OAAO,KAAK,KAAK,QAAQ,UAAU,2BAA2B,CAClF,CAAA,CAAA,CACF,CAAA,CAAA,EACF"}
|
package/dist/index.cjs4.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const c=require("./index.
|
|
1
|
+
"use strict";const c=require("./index.cjs420.js"),o=require("./index.cjs417.js"),d=require("./index.cjs408.js"),f=require("./index.cjs257.js"),g=require("./index.cjs410.js"),C=require("./index.cjs409.js"),m=require("./index.cjs421.js");let e=()=>Date.now(),a="system",s=null,i=null,n=null,r=60,u,l=null;class w{static get now(){return e}static set now(t){e=t}static set defaultZone(t){a=t}static get defaultZone(){return g.normalizeZone(a,c.instance)}static get defaultLocale(){return s}static set defaultLocale(t){s=t}static get defaultNumberingSystem(){return i}static set defaultNumberingSystem(t){i=t}static get defaultOutputCalendar(){return n}static set defaultOutputCalendar(t){n=t}static get defaultWeekSettings(){return l}static set defaultWeekSettings(t){l=C.validateWeekSettings(t)}static get twoDigitCutoffYear(){return r}static set twoDigitCutoffYear(t){r=t%100}static get throwOnInvalid(){return u}static set throwOnInvalid(t){u=t}static resetCaches(){d.resetCache(),o.resetCache(),f.default.resetCache(),m.resetDigitRegexCache()}}module.exports=w;
|
|
2
2
|
//# sourceMappingURL=index.cjs4.js.map
|
package/dist/index.cjs40.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/HeroContentCard/HeroContentCard.css');const i=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/HeroContentCard/HeroContentCard.css');const i=require("./index.cjs217.js"),t=require("react"),B=require("./index.cjs102.js");;/* empty css */const k=require("./index.cjs261.js"),D=require("./index.cjs262.js"),L=require("./index.cjs263.js"),M=require("./index.cjs9.js"),S=require("./index.cjs264.js"),U=require("./index.cjs67.js"),p=require("./index.cjs218.js"),A=require("./index.cjs123.js"),F=require("./index.cjs202.js"),H=require("./index.cjs10.js"),O=require("./index.cjs30.js"),P=require("./index.cjs143.js"),V=({data:e={},ImageComponent:a="img",imageProps:j={},variant:v="service",publishedLabel:g="Pubblicato",readingTimeLabel:d="Tempo di lettura",readingMinuteLabel:h="min",tagsLabelTitle:T="Argomenti trattati",shareLabel:R="Condividi",copyLinkLabel:E="Copia link",copiedTextLabel:C="Link copiato",isPreview:s=!1,modeAuthenticated:n=!1,eventCardDescriptionTitle:I,tags:w})=>{var c,m,u;const{copyToClipboard:N,isCopied:f}=D.useCopyToClipboardCurrentPage(),q=t.useMemo(()=>e!=null&&e.updatedBy?L.getFullNameInitials(e.updatedBy.name??"",e.updatedBy.surname??""):"-",[e.updatedBy]),[y,o]=t.useMemo(()=>!e.previewImageTitle||e.previewImageTitle.trim()===""?[null,null]:e.previewImageTitle.trim().split(/\s+/).length>=4?S.splitInTwo(e.previewImageTitle.toUpperCase()):[e.previewImageTitle.toUpperCase(),null],[e.previewImageTitle]),b=t.useMemo(()=>{const r=e.readingTime??0;return Math.ceil(Number(r)/60)||0},[e]),$=()=>{if(!e.previewImageUrl)return null;if(v==="event"){const r=x=>"eventCardTitle"in x||"eventTitle"in x;return i.jsxRuntimeExports.jsxs("div",{className:p.clsx(s?"hero-event-preview":"hero-event-container",n?"margin-authenticated ratio-authenticated":""),children:[i.jsxRuntimeExports.jsx("img",{className:"hero-event-background",src:e.previewImageUrl,alt:`Evento ${e.name}`}),i.jsxRuntimeExports.jsxs("div",{className:"hero-event-content",children:[i.jsxRuntimeExports.jsx("img",{className:"hero-event-main-image",src:e.previewImageUrl,alt:`Evento ${e.name}`}),i.jsxRuntimeExports.jsx("div",{className:"hero-event-card-container",children:i.jsxRuntimeExports.jsxs(H.Col,{gap:"x32",children:[r(e)&&(e.eventCardTitle||e.eventCardDescription)&&i.jsxRuntimeExports.jsx(O.CardCategory,{title:r(e)?e.eventCardTitle??"-":"-",className:"w-full",description:r(e)?I??"-":"-",description2:r(e)?e.eventCardDescription??"-":"-",classNameTitle:"text-slate-20 fs-5 md-fs-custom-2",classNameDescriptionTitle:"text-slate-28 fw-bold fs-6 md-fs-custom"}),i.jsxRuntimeExports.jsx(P.Tags,{title:T,items:w??[]})]})})]})]})}return i.jsxRuntimeExports.jsxs("div",{className:p.clsx(s?"hero-service-detail-image":"hero-fullscreen-image-container",n?"margin-authenticated":""),children:[i.jsxRuntimeExports.jsx(a,{alt:`Service ${e.name} image`,src:e.previewImageUrl,style:{aspectRatio:21/9},...j}),e.previewImageTitle&&e.previewImageTitle.trim()!==""&&i.jsxRuntimeExports.jsxs("p",{className:"short-title",children:[i.jsxRuntimeExports.jsx("span",{children:y}),o&&i.jsxRuntimeExports.jsx("span",{children:o})]})]})},l=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsxs("div",{className:"hero-action-author",children:[i.jsxRuntimeExports.jsx(B.AuthorBlock,{authorName:(c=e==null?void 0:e.updatedBy)!=null&&c.name?`${(m=e==null?void 0:e.updatedBy)==null?void 0:m.name} ${(u=e==null?void 0:e.updatedBy)==null?void 0:u.surname}`:"-",avatar:{initials:q},publishedLabel:g,publishedDate:k.fromISODateToDateFormatted(e.updatedAt??"","it")??"-",readingTimeLabel:d,readingTimeValue:b,readingMinuteLabel:h}),i.jsxRuntimeExports.jsxs(M.Row,{gap:"x8",className:"hero-action-link",children:[i.jsxRuntimeExports.jsx(A.ShareButton,{textLabel:R,titleShared:e.name}),i.jsxRuntimeExports.jsx("div",{className:"share-divider",children:i.jsxRuntimeExports.jsx(U.ActionIconText,{textLabel:f?C:E,icon:i.jsxRuntimeExports.jsx(F.CopyLink,{}),handleAction:N,classNameText:"fw-bold"})})]})]}),$()]});return s?i.jsxRuntimeExports.jsx("div",{className:"hero-content-card-container-preview",children:l}):l};exports.HeroContentCard=V;
|
|
2
2
|
//# sourceMappingURL=index.cjs40.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");require("./index.
|
|
2
|
-
//# sourceMappingURL=index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");require("./index.cjs501.js");function u(){const[l,e]=r.useState(null),o=r.useCallback(async t=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(t),e(t),!0}catch(a){return console.warn("Copy failed",a),e(null),!1}},[]);return[l,o]}function n(l){const[e,o]=r.useState(!1),t=r.useCallback(()=>{o(a=>!a)},[]);return[e,t,o]}exports.useCopyToClipboard=u;exports.useToggle=n;
|
|
2
|
+
//# sourceMappingURL=index.cjs402.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs439.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error","useToggle","defaultValue","value","setValue","toggle","x"],"mappings":"sIAgDA,SAASA,GAAqB,CAC5B,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SAAS,IAAI,EAC3CC,EAAOC,cAAY,MAAOC,GAAS,CACvC,GAAI,EAAE,WAAa,MAAgB,UAAU,WAC3C,eAAQ,KAAK,yBAAyB,EAC/B,GAET,GAAI,CACF,aAAM,UAAU,UAAU,UAAUA,CAAI,EACxCJ,EAAcI,CAAI,EACX,EACR,OAAQC,EAAO,CACd,eAAQ,KAAK,cAAeA,CAAK,EACjCL,EAAc,IAAI,EACX,EACb,CACG,EAAE,EAAE,EACL,MAAO,CAACD,EAAYG,CAAI,CAC1B,CAw6BA,SAASI,EAAUC,EAAc,CAC/B,KAAM,CAACC,EAAOC,CAAQ,EAAIR,EAAAA,SAAS,EAAc,EAC3CS,EAASP,EAAAA,YAAY,IAAM,CAC/BM,EAAUE,GAAM,CAACA,CAAC,CACnB,EAAE,EAAE,EACL,MAAO,CAACH,EAAOE,EAAQD,CAAQ,CACjC","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs402.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error","useToggle","defaultValue","value","setValue","toggle","x"],"mappings":"sIAgDA,SAASA,GAAqB,CAC5B,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SAAS,IAAI,EAC3CC,EAAOC,cAAY,MAAOC,GAAS,CACvC,GAAI,EAAE,WAAa,MAAgB,UAAU,WAC3C,eAAQ,KAAK,yBAAyB,EAC/B,GAET,GAAI,CACF,aAAM,UAAU,UAAU,UAAUA,CAAI,EACxCJ,EAAcI,CAAI,EACX,EACR,OAAQC,EAAO,CACd,eAAQ,KAAK,cAAeA,CAAK,EACjCL,EAAc,IAAI,EACX,EACb,CACG,EAAE,EAAE,EACL,MAAO,CAACD,EAAYG,CAAI,CAC1B,CAw6BA,SAASI,EAAUC,EAAc,CAC/B,KAAM,CAACC,EAAOC,CAAQ,EAAIR,EAAAA,SAAS,EAAc,EAC3CS,EAASP,EAAAA,YAAY,IAAM,CAC/BM,EAAUE,GAAM,CAACA,CAAC,CACnB,EAAE,EAAE,EACL,MAAO,CAACH,EAAOE,EAAQD,CAAQ,CACjC","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("./index.cjs257.js"),h=require("./index.cjs3.js"),v=require("./index.cjs4.js"),m=require("./index.cjs415.js"),V=require("./index.cjs416.js"),S=require("./index.cjs406.js"),O=require("./index.cjs414.js"),f="Invalid Interval";function D(c,t){return!c||!c.isValid?a.invalid("missing or invalid start"):!t||!t.isValid?a.invalid("missing or invalid end"):t<c?a.invalid("end before start",`The end of an interval must be after its start, but you had start=${c.toISO()} and end=${t.toISO()}`):null}class a{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,i=null){if(!t)throw new m.InvalidArgumentError("need to specify a reason the Interval is invalid");const e=t instanceof V?t:new V(t,i);if(v.throwOnInvalid)throw new m.InvalidIntervalError(e);return new a({invalid:e})}static fromDateTimes(t,i){const e=o.friendlyDateTime(t),s=o.friendlyDateTime(i),r=D(e,s);return r??new a({start:e,end:s})}static after(t,i){const e=h.default.fromDurationLike(i),s=o.friendlyDateTime(t);return a.fromDateTimes(s,s.plus(e))}static before(t,i){const e=h.default.fromDurationLike(i),s=o.friendlyDateTime(t);return a.fromDateTimes(s.minus(e),s)}static fromISO(t,i){const[e,s]=(t||"").split("/",2);if(e&&s){let r,n;try{r=o.default.fromISO(e,i),n=r.isValid}catch{n=!1}let u,l;try{u=o.default.fromISO(s,i),l=u.isValid}catch{l=!1}if(n&&l)return a.fromDateTimes(r,u);if(n){const d=h.default.fromISO(s,i);if(d.isValid)return a.after(r,d)}else if(l){const d=h.default.fromISO(e,i);if(d.isValid)return a.before(u,d)}}return a.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",i){if(!this.isValid)return NaN;const e=this.start.startOf(t,i);let s;return i!=null&&i.useLocaleWeeks?s=this.end.reconfigure({locale:e.locale}):s=this.end,s=s.startOf(t,i),Math.floor(s.diff(e,t).get(t))+(s.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:i}={}){return this.isValid?a.fromDateTimes(t||this.s,i||this.e):this}splitAt(...t){if(!this.isValid)return[];const i=t.map(o.friendlyDateTime).filter(n=>this.contains(n)).sort((n,u)=>n.toMillis()-u.toMillis()),e=[];let{s}=this,r=0;for(;s<this.e;){const n=i[r]||this.e,u=+n>+this.e?this.e:n;e.push(a.fromDateTimes(s,u)),s=u,r+=1}return e}splitBy(t){const i=h.default.fromDurationLike(t);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:e}=this,s=1,r;const n=[];for(;e<this.e;){const u=this.start.plus(i.mapUnits(l=>l*s));r=+u>+this.e?this.e:u,n.push(a.fromDateTimes(e,r)),e=r,s+=1}return n}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const i=this.s>t.s?this.s:t.s,e=this.e<t.e?this.e:t.e;return i>=e?null:a.fromDateTimes(i,e)}union(t){if(!this.isValid)return this;const i=this.s<t.s?this.s:t.s,e=this.e>t.e?this.e:t.e;return a.fromDateTimes(i,e)}static merge(t){const[i,e]=t.sort((s,r)=>s.s-r.s).reduce(([s,r],n)=>r?r.overlaps(n)||r.abutsStart(n)?[s,r.union(n)]:[s.concat([r]),n]:[s,n],[[],null]);return e&&i.push(e),i}static xor(t){let i=null,e=0;const s=[],r=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),n=Array.prototype.concat(...r),u=n.sort((l,d)=>l.time-d.time);for(const l of u)e+=l.type==="s"?1:-1,e===1?i=l.time:(i&&+i!=+l.time&&s.push(a.fromDateTimes(i,l.time)),i=null);return a.merge(s)}difference(...t){return a.xor([this].concat(t)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:f}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=O.DATE_SHORT,i={}){return this.isValid?S.create(this.s.loc.clone(i),t).formatInterval(this):f}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:f}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:f}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:f}toFormat(t,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${i}${this.e.toFormat(t)}`:f}toDuration(t,i){return this.isValid?this.e.diff(this.s,t,i):h.default.invalid(this.invalidReason)}mapEndpoints(t){return a.fromDateTimes(t(this.s),t(this.e))}}module.exports=a;
|
|
2
|
+
//# sourceMappingURL=index.cjs404.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs404.js","sources":["../node_modules/luxon/src/interval.js"],"sourcesContent":["import DateTime, { friendlyDateTime } from \"./datetime.js\";\nimport Duration from \"./duration.js\";\nimport Settings from \"./settings.js\";\nimport { InvalidArgumentError, InvalidIntervalError } from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport * as Formats from \"./impl/formats.js\";\n\nconst INVALID = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\n \"end before start\",\n `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`\n );\n } else {\n return null;\n }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.\n * * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval.merge}, {@link Interval.xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.\n * * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}\n * * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toLocaleString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.\n */\nexport default class Interval {\n /**\n * @private\n */\n constructor(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n this.e = config.end;\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.isLuxonInterval = true;\n }\n\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({ invalid });\n }\n }\n\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */\n static fromDateTimes(start, end) {\n const builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n\n const validateError = validateStartEnd(builtStart, builtEnd);\n\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd,\n });\n } else {\n return validateError;\n }\n }\n\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static after(start, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static before(end, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */\n static fromISO(text, opts) {\n const [s, e] = (text || \"\").split(\"/\", 2);\n if (s && e) {\n let start, startIsValid;\n try {\n start = DateTime.fromISO(s, opts);\n startIsValid = start.isValid;\n } catch (e) {\n startIsValid = false;\n }\n\n let end, endIsValid;\n try {\n end = DateTime.fromISO(e, opts);\n endIsValid = end.isValid;\n } catch (e) {\n endIsValid = false;\n }\n\n if (startIsValid && endIsValid) {\n return Interval.fromDateTimes(start, end);\n }\n\n if (startIsValid) {\n const dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (endIsValid) {\n const dur = Duration.fromISO(s, opts);\n if (dur.isValid) {\n return Interval.before(end, dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isInterval(o) {\n return (o && o.isLuxonInterval) || false;\n }\n\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */\n get start() {\n return this.isValid ? this.s : null;\n }\n\n /**\n * Returns the end of the Interval\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns the last DateTime included in the interval (since end is not part of the interval)\n * @type {DateTime}\n */\n get lastDateTime() {\n return this.isValid ? (this.e ? this.e.minus(1) : null) : null;\n }\n\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n get isValid() {\n return this.invalidReason === null;\n }\n\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n length(unit = \"milliseconds\") {\n return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n }\n\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime\n * @return {number}\n */\n count(unit = \"milliseconds\", opts) {\n if (!this.isValid) return NaN;\n const start = this.start.startOf(unit, opts);\n let end;\n if (opts?.useLocaleWeeks) {\n end = this.end.reconfigure({ locale: start.locale });\n } else {\n end = this.end;\n }\n end = end.startOf(unit, opts);\n return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf());\n }\n\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */\n hasSame(unit) {\n return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;\n }\n\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */\n isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */\n set({ start, end } = {}) {\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...DateTime} dateTimes - the unit of time to count.\n * @return {Array}\n */\n splitAt(...dateTimes) {\n if (!this.isValid) return [];\n const sorted = dateTimes\n .map(friendlyDateTime)\n .filter((d) => this.contains(d))\n .sort((a, b) => a.toMillis() - b.toMillis()),\n results = [];\n let { s } = this,\n i = 0;\n\n while (s < this.e) {\n const added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {Array}\n */\n splitBy(duration) {\n const dur = Duration.fromDurationLike(duration);\n\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n\n let { s } = this,\n idx = 1,\n next;\n\n const results = [];\n while (s < this.e) {\n const added = this.start.plus(dur.mapUnits((x) => x * idx));\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n idx += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {Array}\n */\n divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */\n overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n\n /**\n * Returns true if this Interval fully contains the specified Interval, specifically if the intersect (of this Interval and the other Interval) is equal to the other Interval; false otherwise.\n * @param {Interval} other\n * @return {boolean}\n */\n engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */\n intersection(other) {\n if (!this.isValid) return this;\n const s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n\n if (s >= e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */\n union(other) {\n if (!this.isValid) return this;\n const s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n\n /**\n * Merge an array of Intervals into an equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * The resulting array will contain the Intervals in ascending order, that is, starting with the earliest Interval\n * and ending with the latest.\n *\n * @param {Array} intervals\n * @return {Array}\n */\n static merge(intervals) {\n const [found, final] = intervals\n .sort((a, b) => a.s - b.s)\n .reduce(\n ([sofar, current], item) => {\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n },\n [[], null]\n );\n if (final) {\n found.push(final);\n }\n return found;\n }\n\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static xor(intervals) {\n let start = null,\n currentCount = 0;\n const results = [],\n ends = intervals.map((i) => [\n { time: i.s, type: \"s\" },\n { time: i.e, type: \"e\" },\n ]),\n flattened = Array.prototype.concat(...ends),\n arr = flattened.sort((a, b) => a.time - b.time);\n\n for (const i of arr) {\n currentCount += i.type === \"s\" ? 1 : -1;\n\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n\n start = null;\n }\n }\n\n return Interval.merge(results);\n }\n\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {Array}\n */\n difference(...intervals) {\n return Interval.xor([this].concat(intervals))\n .map((i) => this.intersection(i))\n .filter((i) => i && !i.isEmpty());\n }\n\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */\n toString() {\n if (!this.isValid) return INVALID;\n return `[${this.s.toISO()} – ${this.e.toISO()})`;\n }\n\n /**\n * Returns a string representation of this Interval appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`;\n } else {\n return `Interval { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns a localized string representing this Interval. Accepts the same options as the\n * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as\n * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method\n * is browser-specific, but in general it will return an appropriate representation of the\n * Interval in the assigned locale. Defaults to the system's locale if no locale has been\n * specified.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or\n * Intl.DateTimeFormat constructor options.\n * @param {Object} opts - Options to override the configuration of the start DateTime.\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p\n * @return {string}\n */\n toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this)\n : INVALID;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISO(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */\n toISODate() {\n if (!this.isValid) return INVALID;\n return `${this.s.toISODate()}/${this.e.toISODate()}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISOTime(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this Interval formatted according to the specified format\n * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible\n * formatting tool.\n * @param {string} dateFormat - The format string. This string formats the start and end time.\n * See {@link DateTime#toFormat} for details.\n * @param {Object} opts - Options.\n * @param {string} [opts.separator = ' – '] - A separator to place between the start and end\n * representations.\n * @return {string}\n */\n toFormat(dateFormat, { separator = \" – \" } = {}) {\n if (!this.isValid) return INVALID;\n return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n }\n\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */\n toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */\n mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n }\n}\n"],"names":["INVALID","validateStartEnd","start","end","Interval","config","reason","explanation","InvalidArgumentError","invalid","Invalid","Settings","InvalidIntervalError","builtStart","friendlyDateTime","builtEnd","validateError","duration","dur","Duration","dt","text","opts","s","e","startIsValid","DateTime","endIsValid","o","unit","dateTime","dateTimes","sorted","d","a","b","results","i","added","next","idx","x","numberOfParts","other","intervals","found","final","sofar","current","item","currentCount","ends","flattened","arr","formatOpts","Formats.DATE_SHORT","Formatter","dateFormat","separator","mapFn"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const u=require("./index.cjs257.js"),s=require("./index.cjs4.js"),l=require("./index.cjs408.js"),c=require("./index.cjs417.js"),i=require("./index.cjs410.js"),o=require("./index.cjs409.js");class g{static hasDST(e=s.defaultZone){const t=u.default.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return c.isValidZone(e)}static normalizeZone(e){return i.normalizeZone(e,s.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||l.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||l.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||l.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:a="gregory"}={}){return(r||l.create(t,n,a)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:a="gregory"}={}){return(r||l.create(t,n,a)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||l.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||l.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return l.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return l.create(t,null,"gregory").eras(e)}static features(){return{relative:o.hasRelative(),localeWeek:o.hasLocaleWeekInfo()}}}module.exports=g;
|
|
2
|
+
//# sourceMappingURL=index.cjs405.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs405.js","sources":["../node_modules/luxon/src/info.js"],"sourcesContent":["import DateTime from \"./datetime.js\";\nimport Settings from \"./settings.js\";\nimport Locale from \"./impl/locale.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\n\nimport { hasLocaleWeekInfo, hasRelative } from \"./impl/util.js\";\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nexport default class Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.now().setZone(zone).set({ month: 12 });\n\n return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone#isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Get the weekday on which the week starts according to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number} the start of the week, 1 for Monday through 7 for Sunday\n */\n static getStartOfWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getStartOfWeek();\n }\n\n /**\n * Get the minimum number of days necessary in a week before it is considered part of the next year according\n * to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number}\n */\n static getMinimumDaysInFirstWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getMinDaysInFirstWeek();\n }\n\n /**\n * Get the weekdays, which are considered the weekend according to the given locale\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday\n */\n static getWeekendWeekdays({ locale = null, locObj = null } = {}) {\n // copy the array, because we cache it internally\n return (locObj || Locale.create(locale)).getWeekendDays().slice();\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {Array}\n */\n static months(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link Info#months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {Array}\n */\n static monthsFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {Array}\n */\n static weekdays(length = \"long\", { locale = null, numberingSystem = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link Info#weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @return {Array}\n */\n static weekdaysFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {Array}\n */\n static meridiems({ locale = null } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {Array}\n */\n static eras(length = \"short\", { locale = null } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `relative`: whether this environment supports relative time formatting\n * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale\n * @example Info.features() //=> { relative: false, localeWeek: true }\n * @return {Object}\n */\n static features() {\n return { relative: hasRelative(), localeWeek: hasLocaleWeekInfo() };\n }\n}\n"],"names":["Info","zone","Settings","proto","DateTime","IANAZone","input","normalizeZone","locale","locObj","Locale","length","numberingSystem","outputCalendar","hasRelative","hasLocaleWeekInfo"],"mappings":"2MAWe,MAAMA,CAAK,CAMxB,OAAO,OAAOC,EAAOC,EAAS,YAAa,CACzC,MAAMC,EAAQC,EAAAA,QAAS,IAAG,EAAG,QAAQH,CAAI,EAAE,IAAI,CAAE,MAAO,GAAI,EAE5D,MAAO,CAACA,EAAK,aAAeE,EAAM,SAAWA,EAAM,IAAI,CAAE,MAAO,CAAC,CAAE,EAAE,MACzE,CAOE,OAAO,gBAAgBF,EAAM,CAC3B,OAAOI,EAAS,YAAYJ,CAAI,CACpC,CAgBE,OAAO,cAAcK,EAAO,CAC1B,OAAOC,gBAAcD,EAAOJ,EAAS,WAAW,CACpD,CASE,OAAO,eAAe,CAAA,OAAEM,EAAS,KAAM,OAAAC,EAAS,IAAM,EAAG,GAAI,CAC3D,OAAQA,GAAUC,EAAO,OAAOF,CAAM,GAAG,eAAgB,CAC7D,CAUE,OAAO,0BAA0B,CAAA,OAAEA,EAAS,KAAM,OAAAC,EAAS,IAAM,EAAG,GAAI,CACtE,OAAQA,GAAUC,EAAO,OAAOF,CAAM,GAAG,sBAAuB,CACpE,CASE,OAAO,mBAAmB,CAAA,OAAEA,EAAS,KAAM,OAAAC,EAAS,IAAM,EAAG,GAAI,CAE/D,OAAQA,GAAUC,EAAO,OAAOF,CAAM,GAAG,eAAgB,EAAC,MAAO,CACrE,CAmBE,OAAO,OACLG,EAAS,OACT,QAAEH,EAAS,KAAM,gBAAAI,EAAkB,KAAM,OAAAH,EAAS,KAAM,eAAAI,EAAiB,WAAc,CAAA,EACvF,CACA,OAAQJ,GAAUC,EAAO,OAAOF,EAAQI,EAAiBC,CAAc,GAAG,OAAOF,CAAM,CAC3F,CAeE,OAAO,aACLA,EAAS,OACT,QAAEH,EAAS,KAAM,gBAAAI,EAAkB,KAAM,OAAAH,EAAS,KAAM,eAAAI,EAAiB,WAAc,CAAA,EACvF,CACA,OAAQJ,GAAUC,EAAO,OAAOF,EAAQI,EAAiBC,CAAc,GAAG,OAAOF,EAAQ,EAAI,CACjG,CAgBE,OAAO,SAASA,EAAS,OAAQ,CAAEH,OAAAA,EAAS,KAAM,gBAAAI,EAAkB,KAAM,OAAAH,EAAS,IAAI,EAAK,CAAA,EAAI,CAC9F,OAAQA,GAAUC,EAAO,OAAOF,EAAQI,EAAiB,IAAI,GAAG,SAASD,CAAM,CACnF,CAcE,OAAO,eACLA,EAAS,OACT,CAAEH,OAAAA,EAAS,KAAM,gBAAAI,EAAkB,KAAM,OAAAH,EAAS,MAAS,CAAA,EAC3D,CACA,OAAQA,GAAUC,EAAO,OAAOF,EAAQI,EAAiB,IAAI,GAAG,SAASD,EAAQ,EAAI,CACzF,CAUE,OAAO,UAAU,CAAEH,OAAAA,EAAS,IAAI,EAAK,CAAA,EAAI,CACvC,OAAOE,EAAO,OAAOF,CAAM,EAAE,UAAW,CAC5C,CAYE,OAAO,KAAKG,EAAS,QAAS,CAAEH,OAAAA,EAAS,IAAM,EAAG,GAAI,CACpD,OAAOE,EAAO,OAAOF,EAAQ,KAAM,SAAS,EAAE,KAAKG,CAAM,CAC7D,CAWE,OAAO,UAAW,CAChB,MAAO,CAAE,SAAUG,EAAAA,YAAa,EAAE,WAAYC,EAAiB,kBAAA,CAAI,CACvE,CACA","x_google_ignoreList":[0]}
|